@vlrc-fe/components 1.0.1 → 1.0.2

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 (161) hide show
  1. package/dist/ConfirmModal.d.ts +16 -0
  2. package/dist/ConfirmModal.d.ts.map +1 -0
  3. package/dist/DataTable/DataTable.d.ts +7 -0
  4. package/dist/DataTable/DataTable.d.ts.map +1 -0
  5. package/dist/DataTable/components/DataTablePagination.d.ts +9 -0
  6. package/dist/DataTable/components/DataTablePagination.d.ts.map +1 -0
  7. package/dist/DataTable/components/DataTableRowActions.d.ts +6 -0
  8. package/dist/DataTable/components/DataTableRowActions.d.ts.map +1 -0
  9. package/dist/DataTable/components/DataTableTable.d.ts +11 -0
  10. package/dist/DataTable/components/DataTableTable.d.ts.map +1 -0
  11. package/dist/DataTable/components/DataTableToolbar.d.ts +9 -0
  12. package/dist/DataTable/components/DataTableToolbar.d.ts.map +1 -0
  13. package/dist/DataTable/components/DataTableViewOptions.d.ts +6 -0
  14. package/dist/DataTable/components/DataTableViewOptions.d.ts.map +1 -0
  15. package/dist/DataTable/index.d.ts +5 -0
  16. package/dist/DataTable/index.d.ts.map +1 -0
  17. package/dist/DataTable/render/createColumns.d.ts +6 -0
  18. package/dist/DataTable/render/createColumns.d.ts.map +1 -0
  19. package/dist/DataTable/render/defaults.d.ts +10 -0
  20. package/dist/DataTable/render/defaults.d.ts.map +1 -0
  21. package/dist/DataTable/types.d.ts +71 -0
  22. package/dist/DataTable/types.d.ts.map +1 -0
  23. package/dist/Form/Form.d.ts +14 -0
  24. package/dist/Form/Form.d.ts.map +1 -0
  25. package/dist/Form/FormDatePicker/FormDatePicker.d.ts +5 -0
  26. package/dist/Form/FormDatePicker/FormDatePicker.d.ts.map +1 -0
  27. package/dist/Form/FormDatePicker/RangeDatePicker.d.ts +21 -0
  28. package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -0
  29. package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +23 -0
  30. package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -0
  31. package/dist/Form/FormDatePicker/TimeInput.d.ts +11 -0
  32. package/dist/Form/FormDatePicker/TimeInput.d.ts.map +1 -0
  33. package/dist/Form/FormDatePicker/TimePicker.d.ts +10 -0
  34. package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -0
  35. package/dist/Form/FormDatePicker/index.d.ts +4 -0
  36. package/dist/Form/FormDatePicker/index.d.ts.map +1 -0
  37. package/dist/Form/FormDatePicker/types.d.ts +58 -0
  38. package/dist/Form/FormDatePicker/types.d.ts.map +1 -0
  39. package/dist/Form/FormDatePicker/useFormDatePicker.d.ts +18 -0
  40. package/dist/Form/FormDatePicker/useFormDatePicker.d.ts.map +1 -0
  41. package/dist/Form/FormFileUpload/FileUpload.d.ts +115 -0
  42. package/dist/Form/FormFileUpload/FileUpload.d.ts.map +1 -0
  43. package/dist/Form/FormFileUpload/index.d.ts +7 -0
  44. package/dist/Form/FormFileUpload/index.d.ts.map +1 -0
  45. package/dist/Form/FormMultiSelect/FormMultiSelect.d.ts +5 -0
  46. package/dist/Form/FormMultiSelect/FormMultiSelect.d.ts.map +1 -0
  47. package/dist/Form/FormMultiSelect/index.d.ts +2 -0
  48. package/dist/Form/FormMultiSelect/index.d.ts.map +1 -0
  49. package/dist/Form/FormNumberInput/FormNumberInput.d.ts +4 -0
  50. package/dist/Form/FormNumberInput/FormNumberInput.d.ts.map +1 -0
  51. package/dist/Form/FormNumberInput/StepperControls.d.ts +9 -0
  52. package/dist/Form/FormNumberInput/StepperControls.d.ts.map +1 -0
  53. package/dist/Form/FormNumberInput/index.d.ts +4 -0
  54. package/dist/Form/FormNumberInput/index.d.ts.map +1 -0
  55. package/dist/Form/FormNumberInput/types.d.ts +20 -0
  56. package/dist/Form/FormNumberInput/types.d.ts.map +1 -0
  57. package/dist/Form/FormNumberInput/useFormNumberInput.d.ts +34 -0
  58. package/dist/Form/FormNumberInput/useFormNumberInput.d.ts.map +1 -0
  59. package/dist/Form/FormRadioGroup/FormRadio.d.ts +4 -0
  60. package/dist/Form/FormRadioGroup/FormRadio.d.ts.map +1 -0
  61. package/dist/Form/FormRadioGroup/index.d.ts +4 -0
  62. package/dist/Form/FormRadioGroup/index.d.ts.map +1 -0
  63. package/dist/Form/FormRadioGroup/types.d.ts +25 -0
  64. package/dist/Form/FormRadioGroup/types.d.ts.map +1 -0
  65. package/dist/Form/FormRadioGroup/useFormRadio.d.ts +12 -0
  66. package/dist/Form/FormRadioGroup/useFormRadio.d.ts.map +1 -0
  67. package/dist/Form/FormSelect/FormSelect.d.ts +7 -0
  68. package/dist/Form/FormSelect/FormSelect.d.ts.map +1 -0
  69. package/dist/Form/FormSelect/index.d.ts +4 -0
  70. package/dist/Form/FormSelect/index.d.ts.map +1 -0
  71. package/dist/Form/FormSelect/types.d.ts +43 -0
  72. package/dist/Form/FormSelect/types.d.ts.map +1 -0
  73. package/dist/Form/FormSelect/useFormSelect.d.ts +16 -0
  74. package/dist/Form/FormSelect/useFormSelect.d.ts.map +1 -0
  75. package/dist/Form/index.d.ts +8 -0
  76. package/dist/Form/index.d.ts.map +1 -0
  77. package/dist/Icons/Icons.d.ts +114 -0
  78. package/dist/Icons/Icons.d.ts.map +1 -0
  79. package/dist/Icons/index.d.ts +2 -0
  80. package/dist/Icons/index.d.ts.map +1 -0
  81. package/dist/Modal.d.ts +16 -0
  82. package/dist/Modal.d.ts.map +1 -0
  83. package/dist/MultiSelect/MultiSelect.d.ts +31 -0
  84. package/dist/MultiSelect/MultiSelect.d.ts.map +1 -0
  85. package/dist/MultiSelect/index.d.ts +2 -0
  86. package/dist/MultiSelect/index.d.ts.map +1 -0
  87. package/dist/MultiSelect/renderers.d.ts +45 -0
  88. package/dist/MultiSelect/renderers.d.ts.map +1 -0
  89. package/dist/MultiSelect/type.d.ts +228 -0
  90. package/dist/MultiSelect/type.d.ts.map +1 -0
  91. package/dist/MultiSelect/useMultiSelect.d.ts +52 -0
  92. package/dist/MultiSelect/useMultiSelect.d.ts.map +1 -0
  93. package/dist/MultiSelect/utils.d.ts +25 -0
  94. package/dist/MultiSelect/utils.d.ts.map +1 -0
  95. package/dist/Select/BaseSelect.d.ts +5 -0
  96. package/dist/Select/BaseSelect.d.ts.map +1 -0
  97. package/dist/Select/MultiSelectTags.d.ts +13 -0
  98. package/dist/Select/MultiSelectTags.d.ts.map +1 -0
  99. package/dist/Select/index.d.ts +3 -0
  100. package/dist/Select/index.d.ts.map +1 -0
  101. package/dist/index.d.ts +18 -0
  102. package/dist/index.d.ts.map +1 -0
  103. package/dist/lazyLoad.d.ts +5 -0
  104. package/dist/lazyLoad.d.ts.map +1 -0
  105. package/dist/ui/accordion.d.ts +8 -0
  106. package/dist/ui/accordion.d.ts.map +1 -0
  107. package/dist/ui/badge.d.ts +10 -0
  108. package/dist/ui/badge.d.ts.map +1 -0
  109. package/dist/ui/button.d.ts +11 -0
  110. package/dist/ui/button.d.ts.map +1 -0
  111. package/dist/ui/calendar.d.ts +9 -0
  112. package/dist/ui/calendar.d.ts.map +1 -0
  113. package/dist/ui/card.d.ts +14 -0
  114. package/dist/ui/card.d.ts.map +1 -0
  115. package/dist/ui/checkbox.d.ts +5 -0
  116. package/dist/ui/checkbox.d.ts.map +1 -0
  117. package/dist/ui/command.d.ts +19 -0
  118. package/dist/ui/command.d.ts.map +1 -0
  119. package/dist/ui/dialog.d.ts +16 -0
  120. package/dist/ui/dialog.d.ts.map +1 -0
  121. package/dist/ui/dropdown-menu.d.ts +26 -0
  122. package/dist/ui/dropdown-menu.d.ts.map +1 -0
  123. package/dist/ui/field.d.ts +26 -0
  124. package/dist/ui/field.d.ts.map +1 -0
  125. package/dist/ui/file-upload.d.ts +88 -0
  126. package/dist/ui/file-upload.d.ts.map +1 -0
  127. package/dist/ui/form.d.ts +25 -0
  128. package/dist/ui/form.d.ts.map +1 -0
  129. package/dist/ui/index.d.ts +27 -0
  130. package/dist/ui/index.d.ts.map +1 -0
  131. package/dist/ui/input.d.ts +4 -0
  132. package/dist/ui/input.d.ts.map +1 -0
  133. package/dist/ui/item.d.ts +24 -0
  134. package/dist/ui/item.d.ts.map +1 -0
  135. package/dist/ui/label.d.ts +5 -0
  136. package/dist/ui/label.d.ts.map +1 -0
  137. package/dist/ui/popover.d.ts +8 -0
  138. package/dist/ui/popover.d.ts.map +1 -0
  139. package/dist/ui/progress.d.ts +7 -0
  140. package/dist/ui/progress.d.ts.map +1 -0
  141. package/dist/ui/radio-group.d.ts +6 -0
  142. package/dist/ui/radio-group.d.ts.map +1 -0
  143. package/dist/ui/scroll-area.d.ts +6 -0
  144. package/dist/ui/scroll-area.d.ts.map +1 -0
  145. package/dist/ui/select.d.ts +16 -0
  146. package/dist/ui/select.d.ts.map +1 -0
  147. package/dist/ui/separator.d.ts +5 -0
  148. package/dist/ui/separator.d.ts.map +1 -0
  149. package/dist/ui/sonner.d.ts +4 -0
  150. package/dist/ui/sonner.d.ts.map +1 -0
  151. package/dist/ui/spinner.d.ts +3 -0
  152. package/dist/ui/spinner.d.ts.map +1 -0
  153. package/dist/ui/table.d.ts +11 -0
  154. package/dist/ui/table.d.ts.map +1 -0
  155. package/dist/ui/textarea.d.ts +4 -0
  156. package/dist/ui/textarea.d.ts.map +1 -0
  157. package/dist/ui/tooltip.d.ts +8 -0
  158. package/dist/ui/tooltip.d.ts.map +1 -0
  159. package/dist/utils.d.ts +3 -0
  160. package/dist/utils.d.ts.map +1 -0
  161. package/package.json +2 -2
@@ -0,0 +1,228 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ /**
4
+ * Animation types and configurations
5
+ */
6
+ export interface AnimationConfig {
7
+ /** Badge animation type */
8
+ badgeAnimation?: 'bounce' | 'pulse' | 'wiggle' | 'fade' | 'slide' | 'none';
9
+ /** Popover animation type */
10
+ popoverAnimation?: 'scale' | 'slide' | 'fade' | 'flip' | 'none';
11
+ /** Option hover animation type */
12
+ optionHoverAnimation?: 'highlight' | 'scale' | 'glow' | 'none';
13
+ /** Animation duration in seconds */
14
+ duration?: number;
15
+ /** Animation delay in seconds */
16
+ delay?: number;
17
+ }
18
+ /**
19
+ * Variants for the multi-select component to handle different styles.
20
+ * Uses class-variance-authority (cva) to define different styles based on "variant" prop.
21
+ */
22
+ export declare const multiSelectVariants: (props?: ({
23
+ variant?: "default" | "secondary" | "destructive" | "inverted" | null | undefined;
24
+ badgeAnimation?: "none" | "bounce" | "pulse" | "wiggle" | "fade" | "slide" | null | undefined;
25
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
26
+ /**
27
+ * Option interface for MultiSelect component
28
+ */
29
+ export interface MultiSelectOption {
30
+ /** The text to display for the option. */
31
+ label: string;
32
+ /** The unique value associated with the option. */
33
+ value: string;
34
+ /** Optional icon component to display alongside the option. */
35
+ icon?: React.ComponentType<{
36
+ className?: string;
37
+ }>;
38
+ /** Whether this option is disabled */
39
+ disabled?: boolean;
40
+ /** Custom styling for the option */
41
+ style?: {
42
+ /** Custom badge color */
43
+ badgeColor?: string;
44
+ /** Custom icon color */
45
+ iconColor?: string;
46
+ /** Gradient background for badge */
47
+ gradient?: string;
48
+ };
49
+ }
50
+ /**
51
+ * Group interface for organizing options
52
+ */
53
+ export interface MultiSelectGroup {
54
+ /** Group heading */
55
+ heading: string;
56
+ /** Options in this group */
57
+ options: MultiSelectOption[];
58
+ }
59
+ /**
60
+ * Props for MultiSelect component
61
+ */
62
+ export interface MultiSelectProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'animationConfig'>, VariantProps<typeof multiSelectVariants> {
63
+ /**
64
+ * An array of option objects or groups to be displayed in the multi-select component.
65
+ */
66
+ options: MultiSelectOption[] | MultiSelectGroup[];
67
+ /**
68
+ * Callback function triggered when the selected values change.
69
+ * Receives an array of the new selected values.
70
+ */
71
+ onValueChange: (value: string[]) => void;
72
+ /** The default selected values when the component mounts. */
73
+ defaultValue?: string[];
74
+ /**
75
+ * Placeholder text to be displayed when no values are selected.
76
+ * Optional, defaults to "Select options".
77
+ */
78
+ placeholder?: string;
79
+ /**
80
+ * Animation duration in seconds for the visual effects (e.g., bouncing badges).
81
+ * Optional, defaults to 0 (no animation).
82
+ */
83
+ animation?: number;
84
+ /**
85
+ * Advanced animation configuration for different component parts.
86
+ * Optional, allows fine-tuning of various animation effects.
87
+ */
88
+ animationConfig?: AnimationConfig;
89
+ /**
90
+ * Maximum number of items to display. Extra selected items will be summarized.
91
+ * Optional, defaults to 3.
92
+ */
93
+ maxCount?: number;
94
+ /**
95
+ * The modality of the popover. When set to true, interaction with outside elements
96
+ * will be disabled and only popover content will be visible to screen readers.
97
+ * Optional, defaults to false.
98
+ */
99
+ modalPopover?: boolean;
100
+ /**
101
+ * If true, renders the multi-select component as a child of another component.
102
+ * Optional, defaults to false.
103
+ */
104
+ asChild?: boolean;
105
+ /**
106
+ * Additional class names to apply custom styles to the multi-select component.
107
+ * Optional, can be used to add custom styles.
108
+ */
109
+ className?: string;
110
+ /**
111
+ * If true, disables the select all functionality.
112
+ * Optional, defaults to false.
113
+ */
114
+ hideSelectAll?: boolean;
115
+ /**
116
+ * If true, shows search functionality in the popover.
117
+ * If false, hides the search input completely.
118
+ * Optional, defaults to true.
119
+ */
120
+ searchable?: boolean;
121
+ /**
122
+ * Custom empty state message when no options match search.
123
+ * Optional, defaults to "No results found."
124
+ */
125
+ emptyIndicator?: ReactNode;
126
+ /**
127
+ * If true, allows the component to grow and shrink with its content.
128
+ * If false, uses fixed width behavior.
129
+ * Optional, defaults to false.
130
+ */
131
+ autoSize?: boolean;
132
+ /**
133
+ * If true, shows badges in a single line with horizontal scroll.
134
+ * If false, badges wrap to multiple lines.
135
+ * Optional, defaults to false.
136
+ */
137
+ singleLine?: boolean;
138
+ /**
139
+ * Custom CSS class for the popover content.
140
+ * Optional, can be used to customize popover appearance.
141
+ */
142
+ popoverClassName?: string;
143
+ /**
144
+ * If true, disables the component completely.
145
+ * Optional, defaults to false.
146
+ */
147
+ disabled?: boolean;
148
+ /**
149
+ * Responsive configuration for different screen sizes.
150
+ * Allows customizing maxCount and other properties based on viewport.
151
+ * Can be boolean true for default responsive behavior or an object for custom configuration.
152
+ */
153
+ responsive?: boolean | {
154
+ /** Configuration for mobile devices (< 640px) */
155
+ mobile?: {
156
+ maxCount?: number;
157
+ hideIcons?: boolean;
158
+ compactMode?: boolean;
159
+ };
160
+ /** Configuration for tablet devices (640px - 1024px) */
161
+ tablet?: {
162
+ maxCount?: number;
163
+ hideIcons?: boolean;
164
+ compactMode?: boolean;
165
+ };
166
+ /** Configuration for desktop devices (> 1024px) */
167
+ desktop?: {
168
+ maxCount?: number;
169
+ hideIcons?: boolean;
170
+ compactMode?: boolean;
171
+ };
172
+ };
173
+ /**
174
+ * Minimum width for the component.
175
+ * Optional, defaults to auto-sizing based on content.
176
+ * When set, component will not shrink below this width.
177
+ */
178
+ minWidth?: string;
179
+ /**
180
+ * Maximum width for the component.
181
+ * Optional, defaults to 100% of container.
182
+ * Component will not exceed container boundaries.
183
+ */
184
+ maxWidth?: string;
185
+ /**
186
+ * If true, automatically removes duplicate options based on their value.
187
+ * Optional, defaults to false (shows warning in dev mode instead).
188
+ */
189
+ deduplicateOptions?: boolean;
190
+ /**
191
+ * If true, the component will reset its internal state when defaultValue changes.
192
+ * Useful for React Hook Form integration and form reset functionality.
193
+ * Optional, defaults to true.
194
+ */
195
+ resetOnDefaultValueChange?: boolean;
196
+ /**
197
+ * If true, automatically closes the popover after selecting an option.
198
+ * Useful for single-selection-like behavior or mobile UX.
199
+ * Optional, defaults to false.
200
+ */
201
+ closeOnSelect?: boolean;
202
+ }
203
+ /**
204
+ * Imperative methods exposed through ref
205
+ */
206
+ export interface MultiSelectRef {
207
+ /**
208
+ * Programmatically reset the component to its default value
209
+ */
210
+ reset: () => void;
211
+ /**
212
+ * Get current selected values
213
+ */
214
+ getSelectedValues: () => string[];
215
+ /**
216
+ * Set selected values programmatically
217
+ */
218
+ setSelectedValues: (values: string[]) => void;
219
+ /**
220
+ * Clear all selected values
221
+ */
222
+ clear: () => void;
223
+ /**
224
+ * Focus the component
225
+ */
226
+ focus: () => void;
227
+ }
228
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/MultiSelect/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,2BAA2B;IAC3B,cAAc,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAC3E,6BAA6B;IAC7B,gBAAgB,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAChE,kCAAkC;IAClC,oBAAoB,CAAC,EAAE,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAC/D,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;8EAuB9B,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnD,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oCAAoC;IACpC,KAAK,CAAC,EAAE;QACN,yBAAyB;QACzB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,wBAAwB;QACxB,SAAS,CAAC,E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KeyboardEvent, type Ref, type RefObject, type SetStateAction } from 'react';
2
+ import { type ResponsiveSettings, type ScreenSize, type WidthConstraints } from './utils';
3
+ import { type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef } from './type';
4
+ export interface UseMultiSelectParams extends MultiSelectProps {
5
+ forwardedRef?: Ref<MultiSelectRef>;
6
+ }
7
+ export interface UseMultiSelectResult {
8
+ ids: {
9
+ multiSelectId: string;
10
+ listboxId: string;
11
+ triggerDescriptionId: string;
12
+ selectedCountId: string;
13
+ };
14
+ state: {
15
+ selectedValues: string[];
16
+ isPopoverOpen: boolean;
17
+ isAnimating: boolean;
18
+ searchValue: string;
19
+ screenSize: ScreenSize;
20
+ };
21
+ derived: {
22
+ filteredOptions: MultiSelectOption[] | MultiSelectGroup[];
23
+ responsiveSettings: ResponsiveSettings;
24
+ widthConstraints: WidthConstraints;
25
+ badgeAnimationClass: string;
26
+ popoverAnimationClass: string;
27
+ };
28
+ refs: {
29
+ buttonRef: RefObject<HTMLButtonElement | null>;
30
+ };
31
+ helpers: {
32
+ getAllOptions: () => MultiSelectOption[];
33
+ getOptionByValue: (value: string) => MultiSelectOption | undefined;
34
+ };
35
+ a11yMessages: {
36
+ politeMessage: string;
37
+ assertiveMessage: string;
38
+ };
39
+ handlers: {
40
+ setIsPopoverOpen: Dispatch<SetStateAction<boolean>>;
41
+ handleTogglePopover: () => void;
42
+ handleInputKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void;
43
+ toggleOption: (optionValue: string) => void;
44
+ handleClear: () => void;
45
+ clearExtraOptions: () => void;
46
+ toggleAll: () => void;
47
+ setSearchValue: Dispatch<SetStateAction<string>>;
48
+ setIsAnimating: Dispatch<SetStateAction<boolean>>;
49
+ };
50
+ }
51
+ export declare const useMultiSelect: ({ forwardedRef, ...props }: UseMultiSelectParams) => UseMultiSelectResult;
52
+ //# sourceMappingURL=useMultiSelect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMultiSelect.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AAC;QACzC,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,iBAAiB,GAAG,SAAS,CAAC;KACpE,CAAC;IACF,YAAY,EAAE;QACZ,aAAa,EAAE,MAAM,CAAC;QACtB,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,QAAQ,EAAE;QACR,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;QACpD,mBAAmB,EAAE,MAAM,IAAI,CAAC;QAChC,kBAAkB,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;QACrE,YAAY,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;QAC5C,WAAW,EAAE,MAAM,IAAI,CAAC;QACxB,iBAAiB,EAAE,MAAM,IAAI,CAAC;QAC9B,SAAS,EAAE,MAAM,IAAI,CAAC;QACtB,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;QACjD,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;KACnD,CAAC;CACH;AAED,eAAO,MAAM,cAAc,GAAI,4BAG5B,oBAAoB,KAAG,oBAyUzB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { type MultiSelectProps, type MultiSelectGroup, type MultiSelectOption, type AnimationConfig } from './type';
2
+ export type ScreenSize = 'mobile' | 'tablet' | 'desktop';
3
+ export interface ResponsiveSettings {
4
+ maxCount: number;
5
+ hideIcons: boolean;
6
+ compactMode: boolean;
7
+ }
8
+ export interface WidthConstraints {
9
+ minWidth: string;
10
+ maxWidth: string;
11
+ width: string;
12
+ }
13
+ export declare const isGroupedOptions: (opts: MultiSelectOption[] | MultiSelectGroup[]) => opts is MultiSelectGroup[];
14
+ export declare const arraysEqual: (a: string[], b: string[]) => boolean;
15
+ export declare const buildAllOptions: (options: MultiSelectOption[] | MultiSelectGroup[], deduplicateOptions: boolean) => {
16
+ options: MultiSelectOption[];
17
+ duplicates: string[];
18
+ };
19
+ export declare const computeResponsiveSettings: (responsive: MultiSelectProps["responsive"], maxCount: number, screenSize: ScreenSize) => ResponsiveSettings;
20
+ export declare const buildBadgeAnimationClass: (isAnimating: boolean, animationConfig?: AnimationConfig) => string;
21
+ export declare const buildPopoverAnimationClass: (animationConfig?: AnimationConfig) => string;
22
+ export declare const filterOptions: (options: MultiSelectOption[] | MultiSelectGroup[], searchValue: string, searchable: boolean) => MultiSelectOption[] | MultiSelectGroup[];
23
+ export declare const buildWidthConstraints: (screenSize: ScreenSize, autoSize: boolean, minWidth?: string, maxWidth?: string) => WidthConstraints;
24
+ export declare const countMatchingOptions: (options: MultiSelectOption[], searchValue: string) => number;
25
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/MultiSelect/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACrB,MAAM,QAAQ,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEzD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,gBAAgB,GAC3B,MAAM,iBAAiB,EAAE,GAAG,gBAAgB,EAAE,KAC7C,IAAI,IAAI,gBAAgB,EAE1B,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,GAAG,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE,KAAG,OAKtD,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,SAAS,iBAAiB,EAAE,GAAG,gBAAgB,EAAE,EACjD,oBAAoB,OAAO,KAC1B;IAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAuBtD,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,YAAY,gBAAgB,CAAC,YAAY,CAAC,EAC1C,UAAU,MAAM,EAChB,YAAY,UAAU,KACrB,kBA8BF,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,aAAa,OAAO,EACpB,kBAAkB,eAAe,KAChC,MAqBF,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,kBAAkB,eAAe,KAAG,MAmB9E,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,SAAS,iBAAiB,EAAE,GAAG,gBAAgB,EAAE,EACjD,aAAa,MAAM,EACnB,YAAY,OAAO,KAClB,iBAAiB,EAAE,GAAG,gBAAgB,EAsBxC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,YAAY,UAAU,EACtB,UAAU,OAAO,EACjB,WAAW,MAAM,EACjB,WAAW,MAAM,KAChB,gBAUF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,SAAS,iBAAiB,EAAE,EAAE,aAAa,MAAM,KAAG,MAMxF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { BaseMultiSelectProps, BaseSingleSelectProps, SelectValue } from './type';
3
+ export declare function BaseSelect<T extends SelectValue = SelectValue>(props: BaseMultiSelectProps<T>): React.ReactElement;
4
+ export declare function BaseSelect<T extends SelectValue = SelectValue>(props: BaseSingleSelectProps<T>): React.ReactElement;
5
+ //# sourceMappingURL=BaseSelect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseSelect.d.ts","sourceRoot":"","sources":["../../src/Select/BaseSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAMzD,OAAO,KAAK,EACV,oBAAoB,EAGpB,qBAAqB,EACrB,WAAW,EACZ,MAAM,QAAQ,CAAC;AAQhB,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EAC5D,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAC7B,KAAK,CAAC,YAAY,CAAC;AACtB,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EAC5D,KAAK,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAC9B,KAAK,CAAC,YAAY,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { BaseSelectOption, SelectValue } from './type';
3
+ /**
4
+ * Component to render tags for multi-select with responsive behavior
5
+ */
6
+ export declare function MultiSelectTags<T extends SelectValue = SelectValue>({ selectedOptions, maxTagCount, onRemove, disabled, tagRender }: {
7
+ selectedOptions: BaseSelectOption<T>[];
8
+ maxTagCount?: number | 'responsive';
9
+ onRemove: (value: T) => void;
10
+ disabled?: boolean;
11
+ tagRender?: (option: BaseSelectOption<T>, onRemove: () => void) => ReactNode;
12
+ }): import("react").JSX.Element;
13
+ //# sourceMappingURL=MultiSelectTags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultiSelectTags.d.ts","sourceRoot":"","sources":["../../src/Select/MultiSelectTags.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE5D;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EAAE,EACnE,eAAe,EACf,WAA0B,EAC1B,QAAQ,EACR,QAAQ,EACR,SAAS,EACV,EAAE;IACD,eAAe,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACpC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC;CAC9E,+BAyFA"}
@@ -0,0 +1,3 @@
1
+ export { BaseSelect as default } from './BaseSelect';
2
+ export type { BaseSelectCommonProps, SelectValue, BaseSelectOption } from './type';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,qBAAqB,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,18 @@
1
+ export { default as ConfirmModal } from './ConfirmModal';
2
+ export { default as ConfirmationDialog } from './ConfirmModal';
3
+ export type { ConfirmationDialogProps } from './ConfirmModal';
4
+ export { Modal } from './Modal';
5
+ export type { ModalProps } from './Modal';
6
+ export { lazyLoad } from './lazyLoad';
7
+ export { DataTable } from './DataTable';
8
+ export type { DataTableQuery } from './DataTable';
9
+ export { createExpanderColumn, createRowActionsColumn, createSelectionColumn } from './DataTable';
10
+ export { default as Icons } from './Icons';
11
+ export type { IconNames } from './Icons';
12
+ export * from './ui';
13
+ export * from './Form';
14
+ export { default as Select } from './Select';
15
+ export type { BaseSelectCommonProps, SelectValue, BaseSelectOption } from './Select/type';
16
+ export { default as MultiSelect } from './MultiSelect';
17
+ export type { MultiSelectProps } from './MultiSelect/type';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,YAAY,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,qBAAqB,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type ComponentProps, type ComponentType, type ReactNode } from 'react';
2
+ export declare function lazyLoad<T extends ComponentType<any>>(importFunc: () => Promise<{
3
+ default: T;
4
+ }>, fallback?: ReactNode): (props: ComponentProps<T>) => import("react").JSX.Element;
5
+ //# sourceMappingURL=lazyLoad.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazyLoad.d.ts","sourceRoot":"","sources":["../src/lazyLoad.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIhG,wBAAgB,QAAQ,CAAC,CAAC,SAAS,aAAa,CAAC,GAAG,CAAC,EACnD,UAAU,EAAE,MAAM,OAAO,CAAC;IAAE,OAAO,EAAE,CAAC,CAAA;CAAE,CAAC,EACzC,QAAQ,GAAE,SAAiC,IAIP,OAAO,cAAc,CAAC,CAAC,CAAC,iCAO7D"}
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
+ declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): React.JSX.Element;
4
+ declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): React.JSX.Element;
5
+ declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): React.JSX.Element;
6
+ declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): React.JSX.Element;
7
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
8
+ //# sourceMappingURL=accordion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../src/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAK/D,iBAAS,SAAS,CAAC,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,qBAEtD;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,qBAQtD;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,qBAgBzD;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,qBAUzD;AAED,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAA"}
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
7
+ asChild?: boolean;
8
+ }): React.JSX.Element;
9
+ export { Badge, badgeVariants };
10
+ //# sourceMappingURL=badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,aAAa;;8EAmBlB,CAAA;AAED,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,GAC7B,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,qBAU3D;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | "accent" | "accent-cta" | "gradient" | "gradient-success" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | "xl" | "2xl" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
8
+ asChild?: boolean;
9
+ }): React.JSX.Element;
10
+ export { Button, buttonVariants };
11
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;8EAqCnB,CAAC;AAEF,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAmB,EACnB,IAAgB,EAChB,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAC/B,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,qBAYF;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { DayPicker, type DayButton } from 'react-day-picker';
3
+ import { Button } from './button';
4
+ declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
5
+ buttonVariant?: React.ComponentProps<typeof Button>['variant'];
6
+ }): React.JSX.Element;
7
+ declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): React.JSX.Element;
8
+ export { Calendar, CalendarDayButton };
9
+ //# sourceMappingURL=calendar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../src/ui/calendar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAwB,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGnF,OAAO,EAAE,MAAM,EAAkB,MAAM,UAAU,CAAC;AAElD,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,UAAU,EACV,eAAsB,EACtB,aAAuB,EACvB,aAAuB,EACvB,UAAU,EACV,UAAU,EACV,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IAC1C,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;CAChE,qBAsHA;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,EACH,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,qBA+BxC;AAED,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const cardVariants: (props?: ({
4
+ variant?: "default" | "glass" | "glass-strong" | "elevated" | "elevated-glass" | "auth" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ declare function Card({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof cardVariants>): React.JSX.Element;
7
+ declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
8
+ declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
9
+ declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
10
+ declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
11
+ declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
12
+ declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
13
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, cardVariants };
14
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,YAAY;;8EAgBhB,CAAC;AAEH,iBAAS,IAAI,CAAC,EACZ,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,qBASjE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWvE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQ5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAExE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQvE;AAED,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,EACX,YAAY,EACb,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
3
+ declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): React.JSX.Element;
4
+ export { Checkbox };
5
+ //# sourceMappingURL=checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../src/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAA;AAK7D,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,qBAkBrD;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ import { Command as CommandPrimitive } from "cmdk";
3
+ import { Dialog } from "./dialog";
4
+ declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): React.JSX.Element;
5
+ declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
6
+ title?: string;
7
+ description?: string;
8
+ className?: string;
9
+ showCloseButton?: boolean;
10
+ }): React.JSX.Element;
11
+ declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): React.JSX.Element;
12
+ declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): React.JSX.Element;
13
+ declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): React.JSX.Element;
14
+ declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): React.JSX.Element;
15
+ declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): React.JSX.Element;
16
+ declare function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): React.JSX.Element;
17
+ declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
18
+ export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
19
+ //# sourceMappingURL=command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/ui/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAA;AAIlD,OAAO,EACL,MAAM,EAKP,MAAM,UAAU,CAAA;AAEjB,iBAAS,OAAO,CAAC,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,qBAW/C;AAED,iBAAS,aAAa,CAAC,EACrB,KAAyB,EACzB,WAA8C,EAC9C,QAAQ,EACR,SAAS,EACT,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACvC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,qBAiBA;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,qBAiBrD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,qBAWpD;AAED,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,qBAQrD;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,qBAWrD;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,qBAQzD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,qBAWpD;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBAW9B;AAED,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GACjB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import * as React from "react";
2
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
3
+ declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
4
+ declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
5
+ declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
6
+ declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
7
+ declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
8
+ declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
9
+ showCloseButton?: boolean;
10
+ }): React.JSX.Element;
11
+ declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
12
+ declare function DialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
13
+ declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
14
+ declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
15
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
16
+ //# sourceMappingURL=dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/ui/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAKzD,iBAAS,MAAM,CAAC,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,qBAEnD;AAED,iBAAS,aAAa,CAAC,EACrB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,qBAEtD;AAED,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,qBAErD;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,qBAEpD;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,qBAWtD;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IACxD,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,qBAyBA;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQzE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWzE;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,qBAQpD;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,qBAQ1D;AAED,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACd,CAAA"}
@@ -0,0 +1,26 @@
1
+ import * as React from "react";
2
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
+ declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
4
+ declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): React.JSX.Element;
5
+ declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React.JSX.Element;
6
+ declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): React.JSX.Element;
7
+ declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): React.JSX.Element;
8
+ declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
9
+ inset?: boolean;
10
+ variant?: "default" | "destructive";
11
+ }): React.JSX.Element;
12
+ declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): React.JSX.Element;
13
+ declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): React.JSX.Element;
14
+ declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): React.JSX.Element;
15
+ declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
16
+ inset?: boolean;
17
+ }): React.JSX.Element;
18
+ declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
19
+ declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
20
+ declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React.JSX.Element;
21
+ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
22
+ inset?: boolean;
23
+ }): React.JSX.Element;
24
+ declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React.JSX.Element;
25
+ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
26
+ //# sourceMappingURL=dropdown-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../src/ui/dropdown-menu.tsx"],"names":[],"mappings":"AAAA,OA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,sBAAsB,EACtB,sBAAsB,GACvB,CAAA"}
@@ -0,0 +1,26 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ import { Label } from './label';
4
+ declare function FieldSet({ className, ...props }: React.ComponentProps<'fieldset'>): import("react").JSX.Element;
5
+ declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<'legend'> & {
6
+ variant?: 'legend' | 'label';
7
+ }): import("react").JSX.Element;
8
+ declare function FieldGroup({ className, ...props }: React.ComponentProps<'div'>): import("react").JSX.Element;
9
+ declare const fieldVariants: (props?: ({
10
+ orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
+ declare function Field({ className, orientation, ...props }: React.ComponentProps<'div'> & VariantProps<typeof fieldVariants>): import("react").JSX.Element;
13
+ declare function FieldContent({ className, ...props }: React.ComponentProps<'div'>): import("react").JSX.Element;
14
+ declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): import("react").JSX.Element;
15
+ declare function FieldTitle({ className, ...props }: React.ComponentProps<'div'>): import("react").JSX.Element;
16
+ declare function FieldDescription({ className, ...props }: React.ComponentProps<'p'>): import("react").JSX.Element;
17
+ declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<'div'> & {
18
+ children?: ReactNode;
19
+ }): import("react").JSX.Element;
20
+ declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<'div'> & {
21
+ errors?: Array<{
22
+ message?: string;
23
+ } | undefined>;
24
+ }): import("react").JSX.Element | null;
25
+ export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle };
26
+ //# sourceMappingURL=field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../src/ui/field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAA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