@duro-app/ui 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/components/ButtonGroup/ButtonGroup.meta.d.ts.map +1 -1
  2. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
  3. package/dist/components/CheckboxGroup/CheckboxGroup.meta.d.ts.map +1 -1
  4. package/dist/components/Combobox/Combobox.d.ts +44 -0
  5. package/dist/components/Combobox/Combobox.d.ts.map +1 -0
  6. package/dist/components/Combobox/Combobox.meta.d.ts +3 -0
  7. package/dist/components/Combobox/Combobox.meta.d.ts.map +1 -0
  8. package/dist/components/Combobox/Combobox.stories.d.ts +9 -0
  9. package/dist/components/Combobox/Combobox.stories.d.ts.map +1 -0
  10. package/dist/components/Combobox/ComboboxContext.d.ts +19 -0
  11. package/dist/components/Combobox/ComboboxContext.d.ts.map +1 -0
  12. package/dist/components/Combobox/styles.css.d.ts +112 -0
  13. package/dist/components/Combobox/styles.css.d.ts.map +1 -0
  14. package/dist/components/Combobox/useComboboxRoot.d.ts +15 -0
  15. package/dist/components/Combobox/useComboboxRoot.d.ts.map +1 -0
  16. package/dist/components/Field/Field.d.ts +4 -0
  17. package/dist/components/Field/Field.d.ts.map +1 -1
  18. package/dist/components/Field/Field.stories.d.ts +3 -0
  19. package/dist/components/Field/Field.stories.d.ts.map +1 -1
  20. package/dist/components/Field/FieldContext.d.ts +5 -0
  21. package/dist/components/Field/FieldContext.d.ts.map +1 -1
  22. package/dist/components/Field/styles.css.d.ts +26 -0
  23. package/dist/components/Field/styles.css.d.ts.map +1 -1
  24. package/dist/components/Form/Form.d.ts +7 -2
  25. package/dist/components/Form/Form.d.ts.map +1 -1
  26. package/dist/components/Form/Form.stories.d.ts +6 -0
  27. package/dist/components/Form/Form.stories.d.ts.map +1 -1
  28. package/dist/components/Form/FormContext.d.ts +9 -2
  29. package/dist/components/Form/FormContext.d.ts.map +1 -1
  30. package/dist/components/Input/Input.d.ts.map +1 -1
  31. package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  32. package/dist/components/RadioGroup/RadioGroup.meta.d.ts.map +1 -1
  33. package/dist/components/Table/SortIndicator.d.ts.map +1 -1
  34. package/dist/components/Table/Table.d.ts.map +1 -1
  35. package/dist/components/Table/Table.stories.d.ts.map +1 -1
  36. package/dist/components/Table/useDataTable.d.ts.map +1 -1
  37. package/dist/components/Tag/Tag.d.ts +18 -0
  38. package/dist/components/Tag/Tag.d.ts.map +1 -0
  39. package/dist/components/Tag/Tag.meta.d.ts +3 -0
  40. package/dist/components/Tag/Tag.meta.d.ts.map +1 -0
  41. package/dist/components/Tag/Tag.stories.d.ts +11 -0
  42. package/dist/components/Tag/Tag.stories.d.ts.map +1 -0
  43. package/dist/components/Tag/styles.css.d.ts +80 -0
  44. package/dist/components/Tag/styles.css.d.ts.map +1 -0
  45. package/dist/components/TagGroup/TagGroup.d.ts +30 -0
  46. package/dist/components/TagGroup/TagGroup.d.ts.map +1 -0
  47. package/dist/components/TagGroup/TagGroup.meta.d.ts +3 -0
  48. package/dist/components/TagGroup/TagGroup.meta.d.ts.map +1 -0
  49. package/dist/components/TagGroup/TagGroup.stories.d.ts +11 -0
  50. package/dist/components/TagGroup/TagGroup.stories.d.ts.map +1 -0
  51. package/dist/components/TagGroup/TagGroupContext.d.ts +17 -0
  52. package/dist/components/TagGroup/TagGroupContext.d.ts.map +1 -0
  53. package/dist/components/TagGroup/styles.css.d.ts +75 -0
  54. package/dist/components/TagGroup/styles.css.d.ts.map +1 -0
  55. package/dist/components/Textarea/Textarea.d.ts.map +1 -1
  56. package/dist/index.css +1 -1
  57. package/dist/index.d.ts +4 -0
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +3256 -2318
  60. package/dist/index.js.map +1 -1
  61. package/package.json +2 -2
  62. package/src/components/ButtonGroup/ButtonGroup.meta.ts +10 -2
  63. package/src/components/CheckboxGroup/CheckboxGroup.meta.ts +4 -1
  64. package/src/components/CheckboxGroup/CheckboxGroup.tsx +2 -9
  65. package/src/components/Combobox/Combobox.meta.ts +41 -0
  66. package/src/components/Combobox/Combobox.stories.tsx +157 -0
  67. package/src/components/Combobox/Combobox.tsx +235 -0
  68. package/src/components/Combobox/ComboboxContext.ts +26 -0
  69. package/src/components/Combobox/styles.css.ts +119 -0
  70. package/src/components/Combobox/useComboboxRoot.ts +235 -0
  71. package/src/components/Field/Field.stories.tsx +62 -0
  72. package/src/components/Field/Field.tsx +94 -9
  73. package/src/components/Field/FieldContext.ts +5 -0
  74. package/src/components/Field/styles.css.ts +26 -0
  75. package/src/components/Form/Form.stories.tsx +275 -0
  76. package/src/components/Form/Form.tsx +69 -7
  77. package/src/components/Form/FormContext.ts +10 -1
  78. package/src/components/Input/Input.tsx +2 -1
  79. package/src/components/RadioGroup/RadioGroup.meta.ts +4 -1
  80. package/src/components/RadioGroup/RadioGroup.tsx +1 -4
  81. package/src/components/Table/SortIndicator.tsx +1 -4
  82. package/src/components/Table/Table.stories.tsx +190 -84
  83. package/src/components/Table/Table.tsx +10 -5
  84. package/src/components/Table/useDataTable.ts +34 -48
  85. package/src/components/Tag/Tag.meta.ts +22 -0
  86. package/src/components/Tag/Tag.stories.tsx +92 -0
  87. package/src/components/Tag/Tag.tsx +139 -0
  88. package/src/components/Tag/styles.css.ts +99 -0
  89. package/src/components/TagGroup/TagGroup.meta.ts +27 -0
  90. package/src/components/TagGroup/TagGroup.stories.tsx +193 -0
  91. package/src/components/TagGroup/TagGroup.tsx +302 -0
  92. package/src/components/TagGroup/TagGroupContext.ts +22 -0
  93. package/src/components/TagGroup/styles.css.ts +97 -0
  94. package/src/components/Textarea/Textarea.tsx +2 -1
  95. package/src/index.ts +4 -0
  96. package/src/strict.css +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonGroup.meta.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonGroup/ButtonGroup.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aAqBlB,CAAA"}
1
+ {"version":3,"file":"ButtonGroup.meta.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonGroup/ButtonGroup.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aA6BlB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../../src/components/CheckboxGroup/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAAyC,MAAM,OAAO,CAAA;AA0B5E,UAAU,SAAS;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACzC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EACZ,KAAK,EAAE,eAAe,EACtB,YAAiB,EACjB,aAAa,EACb,WAAwB,EACxB,QAAgB,EAChB,QAAQ,GACT,EAAE,SAAS,2CAyBX;AAID,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAE,YAAoB,EAAE,QAAQ,EAAC,EAAE,SAAS,2CAsBzE;AAED,eAAO,MAAM,aAAa;;;CAGzB,CAAA"}
1
+ {"version":3,"file":"CheckboxGroup.d.ts","sourceRoot":"","sources":["../../../src/components/CheckboxGroup/CheckboxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAAyC,MAAM,OAAO,CAAA;AA0B5E,UAAU,SAAS;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACzC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EACZ,KAAK,EAAE,eAAe,EACtB,YAAiB,EACjB,aAAa,EACb,WAAwB,EACxB,QAAgB,EAChB,QAAQ,GACT,EAAE,SAAS,2CAuBX;AAID,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAE,YAAoB,EAAE,QAAQ,EAAC,EAAE,SAAS,2CAiBzE;AAED,eAAO,MAAM,aAAa;;;CAGzB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxGroup.meta.d.ts","sourceRoot":"","sources":["../../../src/components/CheckboxGroup/CheckboxGroup.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aAsBlB,CAAA"}
1
+ {"version":3,"file":"CheckboxGroup.meta.d.ts","sourceRoot":"","sources":["../../../src/components/CheckboxGroup/CheckboxGroup.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aAyBlB,CAAA"}
@@ -0,0 +1,44 @@
1
+ import { ReactNode } from 'react';
2
+ interface RootProps {
3
+ name?: string;
4
+ defaultValue?: string;
5
+ value?: string;
6
+ onValueChange?: (value: string | null) => void;
7
+ inputValue?: string;
8
+ onInputChange?: (value: string) => void;
9
+ initialLabels?: Record<string, string>;
10
+ children: ReactNode;
11
+ }
12
+ declare function Root({ name, defaultValue, value, onValueChange, inputValue, onInputChange, initialLabels, children, }: RootProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function Input({ placeholder, children }: {
14
+ placeholder?: string;
15
+ children?: ReactNode;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ declare function Trigger({ children }: {
18
+ children?: ReactNode;
19
+ }): import("react/jsx-runtime").JSX.Element;
20
+ declare function Popup({ children }: {
21
+ children: ReactNode;
22
+ }): import("react/jsx-runtime").JSX.Element | null;
23
+ interface ItemProps {
24
+ value: string;
25
+ children: ReactNode;
26
+ }
27
+ declare function Item({ value: itemValue, children }: ItemProps): import("react/jsx-runtime").JSX.Element | null;
28
+ declare function ItemText({ children }: {
29
+ children: ReactNode;
30
+ }): import("react/jsx-runtime").JSX.Element;
31
+ declare function Empty({ children }: {
32
+ children: ReactNode;
33
+ }): import("react/jsx-runtime").JSX.Element | null;
34
+ export declare const Combobox: {
35
+ Root: typeof Root;
36
+ Input: typeof Input;
37
+ Trigger: typeof Trigger;
38
+ Popup: typeof Popup;
39
+ Item: typeof Item;
40
+ ItemText: typeof ItemText;
41
+ Empty: typeof Empty;
42
+ };
43
+ export {};
44
+ //# sourceMappingURL=Combobox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAAqC,MAAM,OAAO,CAAA;AAOxE,UAAU,SAAS;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC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import { ComponentMeta } from '../component-meta';
2
+ export declare const meta: ComponentMeta;
3
+ //# sourceMappingURL=Combobox.meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Combobox.meta.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aAsClB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ type Story = StoryObj;
5
+ export declare const Default: Story;
6
+ export declare const WithDefaultValue: Story;
7
+ export declare const Controlled: Story;
8
+ export declare const ManyItems: Story;
9
+ //# sourceMappingURL=Combobox.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Combobox.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAIpD,QAAA,MAAM,IAAI,EAAE,IAEX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAIrB,eAAO,MAAM,OAAO,EAAE,KAqBrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAoB9B,CAAA;AAmCD,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAyDvB,CAAA"}
@@ -0,0 +1,19 @@
1
+ export interface ComboboxContextValue {
2
+ open: boolean;
3
+ openPopup: () => void;
4
+ close: () => void;
5
+ value: string | null;
6
+ setValue: (value: string) => void;
7
+ inputValue: string;
8
+ setInputValue: (value: string) => void;
9
+ labels: Record<string, string>;
10
+ registerLabel: (value: string, label: string) => void;
11
+ listboxId: string;
12
+ highlightedId: string | null;
13
+ setHighlightedId: (id: string | null) => void;
14
+ registerItem: (id: string, value: string, element: HTMLElement) => () => void;
15
+ inputRef: React.RefObject<HTMLInputElement | null>;
16
+ }
17
+ export declare const ComboboxContext: import('react').Context<ComboboxContextValue | null>;
18
+ export declare function useCombobox(): ComboboxContextValue;
19
+ //# sourceMappingURL=ComboboxContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComboboxContext.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxContext.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,OAAO,CAAA;IACb,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrD,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC7C,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,KAAK,MAAM,IAAI,CAAA;IAC7E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAA;CACnD;AAED,eAAO,MAAM,eAAe,sDAAmD,CAAA;AAE/E,wBAAgB,WAAW,yBAI1B"}
@@ -0,0 +1,112 @@
1
+ import { css } from 'react-strict-dom';
2
+ export declare const styles: Readonly<{
3
+ readonly root: Readonly<{
4
+ readonly position: css.StyleXClassNameFor<"position", "relative">;
5
+ readonly display: css.StyleXClassNameFor<"display", "inline-flex">;
6
+ }>;
7
+ readonly inputWrapper: Readonly<{
8
+ readonly display: css.StyleXClassNameFor<"display", "inline-flex">;
9
+ readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
10
+ readonly gap: css.StyleXClassNameFor<"gap", string>;
11
+ readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
12
+ readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
13
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
14
+ readonly borderWidth: css.StyleXClassNameFor<"borderWidth", 1>;
15
+ readonly borderStyle: css.StyleXClassNameFor<"borderStyle", "solid">;
16
+ readonly borderColor: css.StyleXClassNameFor<"borderColor", string>;
17
+ readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
18
+ readonly transitionProperty: css.StyleXClassNameFor<"transitionProperty", "border-color">;
19
+ readonly transitionDuration: css.StyleXClassNameFor<"transitionDuration", "150ms">;
20
+ }>;
21
+ readonly inputWrapperFocused: Readonly<{
22
+ readonly borderColor: css.StyleXClassNameFor<"borderColor", string>;
23
+ }>;
24
+ readonly input: Readonly<{
25
+ readonly flex: css.StyleXClassNameFor<"flex", 1>;
26
+ readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
27
+ readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
28
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
29
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
30
+ readonly color: css.StyleXClassNameFor<"color", string>;
31
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", "transparent">;
32
+ readonly borderWidth: css.StyleXClassNameFor<"borderWidth", 0>;
33
+ readonly outline: css.StyleXClassNameFor<"outline", "none">;
34
+ readonly minWidth: css.StyleXClassNameFor<"minWidth", 0>;
35
+ }>;
36
+ readonly trigger: Readonly<{
37
+ readonly display: css.StyleXClassNameFor<"display", "flex">;
38
+ readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
39
+ readonly justifyContent: css.StyleXClassNameFor<"justifyContent", "center">;
40
+ readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
41
+ readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
42
+ readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
43
+ readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
44
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", "transparent">;
45
+ readonly borderWidth: css.StyleXClassNameFor<"borderWidth", 0>;
46
+ readonly color: css.StyleXClassNameFor<"color", string>;
47
+ readonly cursor: css.StyleXClassNameFor<"cursor", "pointer">;
48
+ }>;
49
+ readonly backdrop: Readonly<{
50
+ readonly position: css.StyleXClassNameFor<"position", "fixed">;
51
+ readonly top: css.StyleXClassNameFor<"top", 0>;
52
+ readonly left: css.StyleXClassNameFor<"left", 0>;
53
+ readonly right: css.StyleXClassNameFor<"right", 0>;
54
+ readonly bottom: css.StyleXClassNameFor<"bottom", 0>;
55
+ readonly zIndex: css.StyleXClassNameFor<"zIndex", 49>;
56
+ }>;
57
+ readonly popup: Readonly<{
58
+ readonly position: css.StyleXClassNameFor<"position", "absolute">;
59
+ readonly top: css.StyleXClassNameFor<"top", "100%">;
60
+ readonly left: css.StyleXClassNameFor<"left", 0>;
61
+ readonly right: css.StyleXClassNameFor<"right", 0>;
62
+ readonly marginTop: css.StyleXClassNameFor<"marginTop", string>;
63
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
64
+ readonly borderWidth: css.StyleXClassNameFor<"borderWidth", 1>;
65
+ readonly borderStyle: css.StyleXClassNameFor<"borderStyle", "solid">;
66
+ readonly borderColor: css.StyleXClassNameFor<"borderColor", string>;
67
+ readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
68
+ readonly boxShadow: css.StyleXClassNameFor<"boxShadow", string>;
69
+ readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
70
+ readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
71
+ readonly maxHeight: css.StyleXClassNameFor<"maxHeight", 200>;
72
+ readonly overflowY: css.StyleXClassNameFor<"overflowY", "auto">;
73
+ readonly zIndex: css.StyleXClassNameFor<"zIndex", 50>;
74
+ }>;
75
+ readonly item: Readonly<{
76
+ readonly display: css.StyleXClassNameFor<"display", "flex">;
77
+ readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
78
+ readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
79
+ readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
80
+ readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
81
+ readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
82
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
83
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
84
+ readonly color: css.StyleXClassNameFor<"color", string>;
85
+ readonly cursor: css.StyleXClassNameFor<"cursor", "pointer">;
86
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", "transparent">;
87
+ readonly transitionProperty: css.StyleXClassNameFor<"transitionProperty", "background-color">;
88
+ readonly transitionDuration: css.StyleXClassNameFor<"transitionDuration", "150ms">;
89
+ }>;
90
+ readonly itemSelected: Readonly<{
91
+ readonly color: css.StyleXClassNameFor<"color", string>;
92
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
93
+ }>;
94
+ readonly itemHighlighted: Readonly<{
95
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
96
+ }>;
97
+ readonly itemHidden: Readonly<{
98
+ readonly display: css.StyleXClassNameFor<"display", "none">;
99
+ }>;
100
+ readonly empty: Readonly<{
101
+ readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
102
+ readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
103
+ readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
104
+ readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
105
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
106
+ readonly color: css.StyleXClassNameFor<"color", string>;
107
+ }>;
108
+ readonly hidden: Readonly<{
109
+ readonly display: css.StyleXClassNameFor<"display", "none">;
110
+ }>;
111
+ }>;
112
+ //# sourceMappingURL=styles.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAMpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgHjB,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { ComboboxContextValue } from './ComboboxContext';
2
+ interface UseComboboxRootOptions {
3
+ defaultValue?: string;
4
+ value?: string;
5
+ onValueChange?: (value: string | null) => void;
6
+ inputValue?: string;
7
+ onInputChange?: (value: string) => void;
8
+ initialLabels?: Record<string, string>;
9
+ }
10
+ export declare function useComboboxRoot({ defaultValue, value: controlledValue, onValueChange, inputValue: controlledInputValue, onInputChange, initialLabels, }: UseComboboxRootOptions): {
11
+ ctx: ComboboxContextValue;
12
+ rootRef: import('react').RefObject<HTMLDivElement | null>;
13
+ };
14
+ export {};
15
+ //# sourceMappingURL=useComboboxRoot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useComboboxRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/useComboboxRoot.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAA;AAE3D,UAAU,sBAAsB;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACvC;AAED,wBAAgB,eAAe,CAAC,EAC9B,YAAY,EACZ,KAAK,EAAE,eAAe,EACtB,aAAa,EACb,UAAU,EAAE,oBAAoB,EAChC,aAAa,EACb,aAAa,GACd,EAAE,sBAAsB;;;EAsNxB"}
@@ -1,7 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
+ import { LabelPosition } from '../Form/FormContext';
2
3
  interface RootProps {
3
4
  name?: string;
4
5
  invalid?: boolean;
6
+ required?: boolean;
7
+ disabled?: boolean;
8
+ labelPosition?: LabelPosition;
5
9
  children: ReactNode;
6
10
  }
7
11
  declare function Root({ name, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/components/Field/Field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAAiB,MAAM,OAAO,CAAA;AAQpD,UAAU,SAAS;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,IAAI,EAAE,GAAG,KAAK,EAAC,EAAE,SAAS,2CAMxC;AAwED,UAAU,UAAU;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,KAAK,CAAC,EAAC,QAAQ,EAAC,EAAE,UAAU,2CAOpC;AAGD,UAAU,gBAAgB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
5
  export declare const Default: Story;
6
6
  export declare const WithError: Story;
7
7
  export declare const FormExample: Story;
8
+ export declare const WithNecessityIcon: Story;
9
+ export declare const LabelSide: Story;
10
+ export declare const Disabled: Story;
8
11
  //# sourceMappingURL=Field.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Field.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Field/Field.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAMpD,QAAA,MAAM,IAAI,EAAE,IAQX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAErB,eAAO,MAAM,OAAO,EAAE,KAuBrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAiBvB,CAAA;AAMD,eAAO,MAAM,WAAW,EAAE,KA8BzB,CAAA"}
1
+ {"version":3,"file":"Field.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Field/Field.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAMpD,QAAA,MAAM,IAAI,EAAE,IAQX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAErB,eAAO,MAAM,OAAO,EAAE,KAuBrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAiBvB,CAAA;AAOD,eAAO,MAAM,WAAW,EAAE,KA8BzB,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAkB/B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAsBvB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAetB,CAAA"}
@@ -1,8 +1,13 @@
1
+ import { LabelPosition, NecessityIndicator } from '../Form/FormContext';
1
2
  interface FieldContextValue {
2
3
  controlId: string;
3
4
  descriptionId: string;
4
5
  errorId: string;
5
6
  invalid: boolean;
7
+ required?: boolean;
8
+ disabled?: boolean;
9
+ labelPosition?: LabelPosition;
10
+ necessityIndicator?: NecessityIndicator;
6
11
  field?: {
7
12
  value: unknown;
8
13
  onChange: (...event: unknown[]) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"FieldContext.d.ts","sourceRoot":"","sources":["../../../src/components/Field/FieldContext.ts"],"names":[],"mappings":"AAEA,UAAU,iBAAiB;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,OAAO,CAAA;QACd,QAAQ,EAAE,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;QACvC,MAAM,EAAE,MAAM,IAAI,CAAA;QAClB,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;QAC/B,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,YAAY,EAAC,iBAAiB,EAAC,CAAA;AAE/B,eAAO,MAAM,YAAY,mDAAgD,CAAA;AAEzE,wBAAgB,eAAe,6BAE9B"}
1
+ {"version":3,"file":"FieldContext.d.ts","sourceRoot":"","sources":["../../../src/components/Field/FieldContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,kBAAkB,EAAC,MAAM,qBAAqB,CAAA;AAE1E,UAAU,iBAAiB;IACzB,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,kBAAkB,CAAC,EAAE,kBAAkB,CAAA;IACvC,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,OAAO,CAAA;QACd,QAAQ,EAAE,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;QACvC,MAAM,EAAE,MAAM,IAAI,CAAA;QAClB,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAA;QAC/B,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;IACD,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,YAAY,EAAC,iBAAiB,EAAC,CAAA;AAE/B,eAAO,MAAM,YAAY,mDAAgD,CAAA;AAEzE,wBAAgB,eAAe,6BAE9B"}
@@ -5,11 +5,22 @@ export declare const styles: Readonly<{
5
5
  readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "column">;
6
6
  readonly gap: css.StyleXClassNameFor<"gap", string>;
7
7
  }>;
8
+ readonly rootSide: Readonly<{
9
+ readonly display: css.StyleXClassNameFor<"display", "flex">;
10
+ readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "row">;
11
+ readonly alignItems: css.StyleXClassNameFor<"alignItems", "flex-start">;
12
+ readonly gap: css.StyleXClassNameFor<"gap", string>;
13
+ }>;
8
14
  readonly label: Readonly<{
9
15
  readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
10
16
  readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
11
17
  readonly color: css.StyleXClassNameFor<"color", string>;
12
18
  }>;
19
+ readonly labelSide: Readonly<{
20
+ readonly minWidth: css.StyleXClassNameFor<"minWidth", 120>;
21
+ readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
22
+ readonly flexShrink: css.StyleXClassNameFor<"flexShrink", 0>;
23
+ }>;
13
24
  readonly description: Readonly<{
14
25
  readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
15
26
  readonly color: css.StyleXClassNameFor<"color", string>;
@@ -18,5 +29,20 @@ export declare const styles: Readonly<{
18
29
  readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
19
30
  readonly color: css.StyleXClassNameFor<"color", string>;
20
31
  }>;
32
+ readonly fieldContent: Readonly<{
33
+ readonly display: css.StyleXClassNameFor<"display", "flex">;
34
+ readonly flexDirection: css.StyleXClassNameFor<"flexDirection", "column">;
35
+ readonly gap: css.StyleXClassNameFor<"gap", string>;
36
+ readonly flex: css.StyleXClassNameFor<"flex", 1>;
37
+ readonly minWidth: css.StyleXClassNameFor<"minWidth", 0>;
38
+ }>;
39
+ readonly necessityIcon: Readonly<{
40
+ readonly color: css.StyleXClassNameFor<"color", string>;
41
+ }>;
42
+ readonly necessityLabel: Readonly<{
43
+ readonly color: css.StyleXClassNameFor<"color", string>;
44
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
45
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
46
+ }>;
21
47
  }>;
22
48
  //# sourceMappingURL=styles.css.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Field/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAKpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;EAmBjB,CAAA"}
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Field/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAKpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CjB,CAAA"}
@@ -1,11 +1,16 @@
1
1
  import { ReactNode } from 'react';
2
- import { UseFormReturn, DefaultValues, FieldValues } from 'react-hook-form';
2
+ import { UseFormReturn, DefaultValues, FieldValues, Path } from 'react-hook-form';
3
3
  import { Schema } from 'effect';
4
+ import { LabelPosition, NecessityIndicator } from './FormContext';
4
5
  export interface FormProps<T extends FieldValues> {
5
6
  schema: Schema.Schema<T>;
6
7
  defaultValues: DefaultValues<T>;
7
8
  onSubmit: (data: T) => void | Promise<void>;
9
+ disabled?: boolean;
10
+ labelPosition?: LabelPosition;
11
+ necessityIndicator?: NecessityIndicator;
12
+ validationErrors?: Partial<Record<Path<T>, string>>;
8
13
  children: ReactNode | ((methods: UseFormReturn<T>) => ReactNode);
9
14
  }
10
- export declare function Form<T extends FieldValues>({ schema, defaultValues, onSubmit, children, }: FormProps<T>): import("react/jsx-runtime").JSX.Element;
15
+ export declare function Form<T extends FieldValues>({ schema, defaultValues, onSubmit, disabled, labelPosition, necessityIndicator, validationErrors, children, }: FormProps<T>): import("react/jsx-runtime").JSX.Element;
11
16
  //# sourceMappingURL=Form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAAiC,MAAM,OAAO,CAAA;AAEpE,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAA;AAExB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAA;AAGlC,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,WAAW;IAC9C,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;IACxB,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,CAAA;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3C,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAA;CACjE;AAED,wBAAgB,IAAI,CAAC,CAAC,SAAS,WAAW,EAAE,EAC1C,MAAM,EACN,aAAa,EACb,QAAQ,EACR,QAAQ,GACT,EAAE,SAAS,CAAC,CAAC,CAAC,2CAiCd"}
1
+ {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAA0C,MAAM,OAAO,CAAA;AAE7E,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,WAAW,EAEhB,KAAK,IAAI,EACV,MAAM,iBAAiB,CAAA;AAExB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAA;AAClC,OAAO,EAAc,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAC,MAAM,eAAe,CAAA;AAEtF,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,WAAW;IAC9C,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;IACxB,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,CAAA;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,kBAAkB,CAAC,EAAE,kBAAkB,CAAA;IACvC,gBAAgB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAA;IACnD,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAA;CACjE;AASD,wBAAgB,IAAI,CAAC,CAAC,SAAS,WAAW,EAAE,EAC1C,MAAM,EACN,aAAa,EACb,QAAQ,EACR,QAAgB,EAChB,aAAqB,EACrB,kBAA0B,EAC1B,gBAAgB,EAChB,QAAQ,GACT,EAAE,SAAS,CAAC,CAAC,CAAC,2CA8Ed"}
@@ -7,4 +7,10 @@ export declare const ValidationOnBlur: Story;
7
7
  export declare const WithTextarea: Story;
8
8
  export declare const SuccessfulSubmit: Story;
9
9
  export declare const StandaloneFieldStillWorks: Story;
10
+ export declare const NecessityIndicatorIcon: Story;
11
+ export declare const NecessityIndicatorLabel: Story;
12
+ export declare const FocusFirstInvalid: Story;
13
+ export declare const FormDisabled: Story;
14
+ export declare const LabelPositionSide: Story;
15
+ export declare const ServerValidationErrors: Story;
10
16
  //# sourceMappingURL=Form.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Form.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAWpD,QAAA,MAAM,IAAI,EAAE,IAEX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AA4BrB,eAAO,MAAM,OAAO,EAAE,KA6CrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAsD9B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAmC1B,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAqC9B,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,KAmBvC,CAAA"}
1
+ {"version":3,"file":"Form.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAWpD,QAAA,MAAM,IAAI,EAAE,IAEX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAuCrB,eAAO,MAAM,OAAO,EAAE,KA6CrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAsD9B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAmC1B,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAqC9B,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,KAmBvC,CAAA;AAID,eAAO,MAAM,sBAAsB,EAAE,KA6CpC,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,KAyCrC,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAgC/B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAgC1B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KA2C/B,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,KAwDpC,CAAA"}
@@ -1,3 +1,10 @@
1
- export declare const FormContext: import('react').Context<boolean>;
2
- export declare function useFormContext(): boolean;
1
+ export type LabelPosition = 'top' | 'side';
2
+ export type NecessityIndicator = 'icon' | 'label' | false;
3
+ export interface FormContextValue {
4
+ disabled: boolean;
5
+ labelPosition: LabelPosition;
6
+ necessityIndicator: NecessityIndicator;
7
+ }
8
+ export declare const FormContext: import('react').Context<FormContextValue | null>;
9
+ export declare function useFormContext(): FormContextValue | null;
3
10
  //# sourceMappingURL=FormContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormContext.d.ts","sourceRoot":"","sources":["../../../src/components/Form/FormContext.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,kCAAuB,CAAA;AAE/C,wBAAgB,cAAc,YAE7B"}
1
+ {"version":3,"file":"FormContext.d.ts","sourceRoot":"","sources":["../../../src/components/Form/FormContext.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,MAAM,CAAA;AAC1C,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAA;AAEzD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,aAAa,CAAA;IAC5B,kBAAkB,EAAE,kBAAkB,CAAA;CACvC;AAED,eAAO,MAAM,WAAW,kDAA+C,CAAA;AAEvE,wBAAgB,cAAc,4BAE7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"Input.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Y,EACZ,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,GAAG,GACJ,EAAE,UAAU,2CAwCZ"}
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAAyC,MAAM,OAAO,CAAA;AAyB5E,UAAU,SAAS;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EACZ,KAAK,EAAE,eAAe,EACtB,YAAiB,EACjB,aAAa,EACb,WAAwB,EACxB,QAAgB,EAChB,QAAQ,GACT,EAAE,SAAS,2CAuBX;AAID,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAE,YAAoB,EAAE,QAAQ,EAAC,EAAE,SAAS,2CAiCzE;AAED,eAAO,MAAM,UAAU;;;CAGtB,CAAA"}
1
+ {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAAyC,MAAM,OAAO,CAAA;AAyB5E,UAAU,SAAS;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EACZ,KAAK,EAAE,eAAe,EACtB,YAAiB,EACjB,aAAa,EACb,WAAwB,EACxB,QAAgB,EAChB,QAAQ,GACT,EAAE,SAAS,2CAuBX;AAID,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAE,YAAoB,EAAE,QAAQ,EAAC,EAAE,SAAS,2CA8BzE;AAED,eAAO,MAAM,UAAU;;;CAGtB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.meta.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aAsBlB,CAAA"}
1
+ {"version":3,"file":"RadioGroup.meta.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aAyBlB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"SortIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/Table/SortIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAA;AA0BjD,UAAU,kBAAkB,CAAC,KAAK;IAChC,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;CAC/B;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,EAAC,MAAM,EAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,kDAgBvE"}
1
+ {"version":3,"file":"SortIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/Table/SortIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAA;AA0BjD,UAAU,kBAAkB,CAAC,KAAK;IAChC,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;CAC/B;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,EAAC,MAAM,EAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,kDAavE"}
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAAqF,MAAM,OAAO,CAAA;AAGxH,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAA;AACvC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAA;AAI3C,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAA;AAC7D,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,CAAA;AA6BnC,UAAU,SAAS;IACjB,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AA2BD,iBAAS,IAAI,CAAC,EAAC,QAAQ,EAAE,OAAmB,EAAE,IAAW,EAAC,EAAE,SAAS,2CAsBpE;AAID,iBAAS,MAAM,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAC,2CAQhD;AAID,iBAAS,IAAI,CAAC,EAA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A2DD,eAAO,MAAM,aAAa,EAAE,KAO3B,CAAA;AA+HD,eAAO,MAAM,YAAY,EAAE,KAkB1B,CAAA"}
1
+ {"version":3,"file":"Table.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AA2BpD,QAAA,MAAM,IAAI,EAAE,IAkBX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAuBrB,eAAO,MAAM,OAAO,EAAE,KAmDrB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KA+BrB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAgCtB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KA+BrB,CAAA;AA4FD,eAAO,MAAM,cAAc,EAAE,KAQ5B,CAAA;AAOD,eAAO,MAAM,WAAW,EAAE,KAkHzB,CAAA;AAmED,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAwID,eAAO,MAAM,cAAc,EAAE,KAM5B,CAAA;AA2DD,eAAO,MAAM,aAAa,EAAE,KAO3B,CAAA;AAyID,eAAO,MAAM,YAAY,EAAE,KAkB1B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useDataTable.d.ts","sourceRoot":"","sources":["../../../src/components/Table/useDataTable.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,SAAS,EAId,KAAK,iBAAiB,EAEtB,KAAK,KAAK,EACX,MAAM,uBAAuB,CAAA;AAE9B,MAAM,WAAW,mBAAmB,CAAC,KAAK;IACxC,+BAA+B;IAC/B,UAAU,CAAC,EAAE;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAC,CAAA;IACpD,iEAAiE;IACjE,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,8BAA8B;IAC9B,eAAe,CAA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EAAE,EAChC,OAAO,GAAE,mBAAmB,CAAC,KAAK,CAAM,GACvC,KAAK,CAAC,KAAK,CAAC,CAoDd"}
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ export type TagVariant = 'default' | 'success' | 'warning' | 'error' | 'info';
3
+ export type TagSize = 'sm' | 'md';
4
+ interface TagProps {
5
+ /** Value identifier — required when used inside TagGroup */
6
+ value?: string;
7
+ variant?: TagVariant;
8
+ size?: TagSize;
9
+ /** Show remove button. Auto-derived from TagGroup context when inside one. */
10
+ removable?: boolean;
11
+ /** Called when remove button is clicked. Auto-wired to TagGroup when inside one. */
12
+ onRemove?: () => void;
13
+ disabled?: boolean;
14
+ children: ReactNode;
15
+ }
16
+ export declare function Tag({ value, variant, size, removable: removableProp, onRemove: onRemoveProp, disabled: disabledProp, children, }: TagProps): import("react/jsx-runtime").JSX.Element;
17
+ export {};
18
+ //# sourceMappingURL=Tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAA;AAKzD,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAC7E,MAAM,MAAM,OAAO,GAAG,IAAI,GAAG,IAAI,CAAA;AAEjC,UAAU,QAAQ;IAChB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,oFAAoF;IACpF,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAYD,wBAAgB,GAAG,CAAC,EAClB,KAAK,EACL,OAAmB,EACnB,IAAW,EACX,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,YAAoB,EAC9B,QAAQ,GACT,EAAE,QAAQ,2CAmGV"}
@@ -0,0 +1,3 @@
1
+ import { ComponentMeta } from '../component-meta';
2
+ export declare const meta: ComponentMeta;
3
+ //# sourceMappingURL=Tag.meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tag.meta.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aAmBlB,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Tag } from './Tag';
3
+ declare const meta: Meta<typeof Tag>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Tag>;
6
+ export declare const Default: Story;
7
+ export declare const Removable: Story;
8
+ export declare const Disabled: Story;
9
+ export declare const Small: Story;
10
+ export declare const AllVariants: Story;
11
+ //# sourceMappingURL=Tag.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tag.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAGpD,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAA;AAEzB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,GAAG,CAe1B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAA;AAEjC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAA;AAOD,eAAO,MAAM,WAAW,EAAE,KAsCzB,CAAA"}