+
-
+
{{ option.label }}
@@ -22,40 +30,50 @@
-
-
-
+
+
diff --git a/apps/tailwind-components/pages/Form.story.vue b/apps/tailwind-components/pages/Form.story.vue
index 7c3df99dfa..ae2da76c46 100644
--- a/apps/tailwind-components/pages/Form.story.vue
+++ b/apps/tailwind-components/pages/Form.story.vue
@@ -172,19 +172,21 @@ watch(
Values
-
+
- - {{ key }}:
- - {{ value }}
+ - {{ key }}:
+ -
+ {{ value }}
+
Errors
-
+
- - {{ key }}:
+ - {{ key }}:
- {{ value }}
diff --git a/apps/tailwind-components/pages/input/Boolean.story.vue b/apps/tailwind-components/pages/input/Boolean.story.vue
new file mode 100644
index 0000000000..194f19c25d
--- /dev/null
+++ b/apps/tailwind-components/pages/input/Boolean.story.vue
@@ -0,0 +1,25 @@
+
+
+ intit empty: {{ modelValue1 }}
+
+
+ init true: {{ modelValue2 }}
+
+
+ init false: {{ modelValue3 }}
+
+
+ Be polite: {{ politeBoolean }}
+
+
+
diff --git a/apps/tailwind-components/tests/components/form/renderForm.spec.ts b/apps/tailwind-components/tests/components/form/renderForm.spec.ts
index 61f4e9bb31..74601776e7 100644
--- a/apps/tailwind-components/tests/components/form/renderForm.spec.ts
+++ b/apps/tailwind-components/tests/components/form/renderForm.spec.ts
@@ -14,15 +14,12 @@ test("it should render the form", async ({ page }) => {
await expect(page.getByRole("main")).toContainText("name");
await expect(page.getByRole("main")).toContainText("the name");
await expect(page.getByRole("main")).toContainText("date");
- await expect(page.getByRole("main")).toContainText("Required");
await expect(page.getByLabel("name")).toBeVisible();
});
test("it should handle input", async ({ page }) => {
await page.getByLabel("name").pressSequentially("test");
await expect(page.getByLabel("name")).toHaveValue("test");
- await page.getByRole("heading", { name: "Values" }).click();
- await expect(page.getByRole("definition")).toContainText("test");
});
test("it should show the chapters in the legend", async ({ page }) => {
diff --git a/apps/tailwind-components/types/types.ts b/apps/tailwind-components/types/types.ts
index 1795d5ee3d..324180c596 100644
--- a/apps/tailwind-components/types/types.ts
+++ b/apps/tailwind-components/types/types.ts
@@ -1,4 +1,5 @@
import type { IColumn } from "../../metadata-utils/dist";
+import type { columnValue } from "../../metadata-utils/src/types";
export type Resp = {
data: Record;
@@ -91,4 +92,10 @@ export interface IDocumentation {
file: IFile;
}
+export interface IRadioOptionsData {
+ value: columnValue;
+ label?: string;
+ checked?: boolean | undefined;
+}
+
\ No newline at end of file