@classytic/fluid 0.4.1 → 0.5.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 (51) hide show
  1. package/README.md +21 -1
  2. package/dist/client/calendar.d.mts +1 -2
  3. package/dist/client/calendar.mjs +4 -4
  4. package/dist/client/color-picker.d.mts +94 -0
  5. package/dist/client/color-picker.mjs +392 -0
  6. package/dist/client/core.d.mts +243 -557
  7. package/dist/client/core.mjs +351 -1462
  8. package/dist/client/error.d.mts +41 -41
  9. package/dist/client/error.mjs +35 -35
  10. package/dist/client/gallery.d.mts +175 -0
  11. package/dist/client/gallery.mjs +546 -0
  12. package/dist/client/hooks.d.mts +57 -39
  13. package/dist/client/hooks.mjs +29 -7
  14. package/dist/client/spreadsheet.d.mts +30 -27
  15. package/dist/client/spreadsheet.mjs +80 -80
  16. package/dist/client/table.d.mts +66 -33
  17. package/dist/client/table.mjs +87 -54
  18. package/dist/client/theme.mjs +1 -1
  19. package/dist/command.d.mts +6 -4
  20. package/dist/command.mjs +3 -3
  21. package/dist/compact.d.mts +97 -95
  22. package/dist/compact.mjs +336 -322
  23. package/dist/dashboard.d.mts +614 -422
  24. package/dist/dashboard.mjs +1051 -762
  25. package/dist/{dropdown-wrapper-B86u9Fri.mjs → dropdown-wrapper-B9nRDUlz.mjs} +25 -35
  26. package/dist/forms.d.mts +1037 -972
  27. package/dist/forms.mjs +2849 -2721
  28. package/dist/index.d.mts +218 -152
  29. package/dist/index.mjs +357 -264
  30. package/dist/layouts.d.mts +94 -94
  31. package/dist/layouts.mjs +115 -110
  32. package/dist/phone-input-B9_XPNvv.mjs +429 -0
  33. package/dist/phone-input-CLH_UjQZ.d.mts +31 -0
  34. package/dist/{search-context-DR7DBs7S.mjs → search-context-1g3ZmOvx.mjs} +1 -1
  35. package/dist/search.d.mts +168 -164
  36. package/dist/search.mjs +305 -301
  37. package/dist/{sheet-wrapper-C13Y-Q6w.mjs → sheet-wrapper-B2uxookb.mjs} +1 -1
  38. package/dist/timeline-Bgu1mIe9.d.mts +373 -0
  39. package/dist/timeline-HJtWf4Op.mjs +804 -0
  40. package/dist/{use-base-search-BGgWnWaF.d.mts → use-base-search-DFC4QKYU.d.mts} +1 -1
  41. package/dist/{use-media-query-BnVNIKT4.mjs → use-media-query-ChLfFChU.mjs} +6 -7
  42. package/package.json +10 -2
  43. /package/dist/{api-pagination-CJ0vR_w6.d.mts → api-pagination-C30ser2L.d.mts} +0 -0
  44. /package/dist/{filter-utils-DqMmy_v-.mjs → filter-utils-BGIvtq1R.mjs} +0 -0
  45. /package/dist/{filter-utils-IZ0GtuPo.d.mts → filter-utils-DOFTBWm1.d.mts} +0 -0
  46. /package/dist/{use-debounce-xmZucz5e.mjs → use-debounce-BNoNiEon.mjs} +0 -0
  47. /package/dist/{use-keyboard-shortcut-Bl6YM5Q7.mjs → use-keyboard-shortcut-C_Vk-36P.mjs} +0 -0
  48. /package/dist/{use-keyboard-shortcut-_mRCh3QO.d.mts → use-keyboard-shortcut-Q4CSPzSI.d.mts} +0 -0
  49. /package/dist/{use-mobile-BX3SQVo2.mjs → use-mobile-CnEmFiQx.mjs} +0 -0
  50. /package/dist/{use-scroll-detection-CsgsQYvy.mjs → use-scroll-detection-BKfqkmEC.mjs} +0 -0
  51. /package/dist/{utils-CDue7cEt.d.mts → utils-rqvYP1by.d.mts} +0 -0
package/dist/search.d.mts CHANGED
@@ -1,134 +1,7 @@
1
- import { n as UseBaseSearchReturn } from "./use-base-search-BGgWnWaF.mjs";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import { n as UseBaseSearchReturn } from "./use-base-search-DFC4QKYU.mjs";
3
2
  import { KeyboardEvent, ReactNode } from "react";
3
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
- //#region src/components/search/search-root.d.ts
6
- interface SearchRootProps {
7
- children: ReactNode;
8
- hook: UseBaseSearchReturn;
9
- className?: string;
10
- /**
11
- * When true, automatically triggers `handleSearch` (debounced) whenever
12
- * `searchValue` or `filters` change. Removes the need for a manual
13
- * "Search" button — useful for DataTableToolbar-style UIs.
14
- */
15
- autoSearch?: boolean;
16
- /** Debounce delay in ms for auto-search (default: 300) */
17
- autoSearchDelay?: number;
18
- }
19
- /**
20
- * Root search component that provides context to all child components
21
- *
22
- * @example
23
- * // Manual mode (default)
24
- * <Search.Root hook={useMySearch()}>
25
- * <Search.Input />
26
- * <Search.Actions />
27
- * </Search.Root>
28
- *
29
- * @example
30
- * // Auto-search mode — no Search button needed
31
- * <Search.Root hook={useMySearch()} autoSearch>
32
- * <Search.Input />
33
- * <Search.ActiveFilters />
34
- * </Search.Root>
35
- */
36
- declare function SearchRoot({
37
- children,
38
- hook,
39
- className,
40
- autoSearch,
41
- autoSearchDelay
42
- }: SearchRootProps): react_jsx_runtime0.JSX.Element;
43
- //#endregion
44
- //#region src/components/search/search-input.d.ts
45
- interface SearchInputProps {
46
- placeholder?: string;
47
- className?: string;
48
- disabled?: boolean;
49
- showIcon?: boolean;
50
- showClearButton?: boolean;
51
- onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
52
- }
53
- /**
54
- * Search input component using modern shadcn InputGroup pattern
55
- *
56
- * @example
57
- * <Search.Input placeholder="Search..." />
58
- */
59
- declare function SearchInput({
60
- placeholder,
61
- className,
62
- disabled,
63
- showIcon,
64
- showClearButton,
65
- onKeyDown,
66
- ...props
67
- }: SearchInputProps): react_jsx_runtime0.JSX.Element;
68
- //#endregion
69
- //#region src/components/search/search-type-input.d.ts
70
- interface SearchTypeOption {
71
- value: string;
72
- label: string;
73
- }
74
- interface SearchTypeInputProps {
75
- placeholder?: string;
76
- className?: string;
77
- disabled?: boolean;
78
- showIcon?: boolean;
79
- showClearButton?: boolean;
80
- searchTypeOptions?: SearchTypeOption[];
81
- onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
82
- }
83
- /**
84
- * Search input component with type selector using InputGroup pattern
85
- *
86
- * @example
87
- * <Search.TypeInput
88
- * placeholder="Search..."
89
- * searchTypeOptions={[
90
- * { value: "_id", label: "ID" },
91
- * { value: "customerPhone", label: "Phone" },
92
- * { value: "customerEmail", label: "Email" },
93
- * ]}
94
- * />
95
- */
96
- declare function SearchTypeInput({
97
- placeholder,
98
- className,
99
- disabled,
100
- showIcon,
101
- showClearButton,
102
- searchTypeOptions,
103
- onKeyDown,
104
- ...props
105
- }: SearchTypeInputProps): react_jsx_runtime0.JSX.Element;
106
- //#endregion
107
- //#region src/components/search/search-filters.d.ts
108
- interface SearchFiltersProps {
109
- children: ReactNode;
110
- title?: string;
111
- description?: string;
112
- disabled?: boolean;
113
- className?: string;
114
- }
115
- /**
116
- * Search filters component with mobile sheet support
117
- *
118
- * @example
119
- * <Search.Filters>
120
- * <TagChoiceInput label="Category" ... />
121
- * <SelectInput label="Status" ... />
122
- * </Search.Filters>
123
- */
124
- declare function SearchFilters({
125
- children,
126
- title,
127
- description,
128
- disabled,
129
- className
130
- }: SearchFiltersProps): react_jsx_runtime0.JSX.Element;
131
- //#endregion
132
5
  //#region src/components/search/search-actions.d.ts
133
6
  interface SearchActionsProps {
134
7
  showSearchButton?: boolean;
@@ -164,41 +37,6 @@ declare function SearchActions({
164
37
  className
165
38
  }: SearchActionsProps): react_jsx_runtime0.JSX.Element;
166
39
  //#endregion
167
- //#region src/components/search/search-container.d.ts
168
- interface SearchContainerProps {
169
- children: ReactNode;
170
- className?: string;
171
- }
172
- /**
173
- * Container for search input and action buttons
174
- * Provides responsive layout
175
- *
176
- * @example
177
- * <Search.Container>
178
- * <Search.Input />
179
- * <Search.Filters />
180
- * <Search.Actions />
181
- * </Search.Container>
182
- */
183
- declare function SearchContainer({
184
- children,
185
- className
186
- }: SearchContainerProps): react_jsx_runtime0.JSX.Element;
187
- //#endregion
188
- //#region src/components/search/search-filter-actions.d.ts
189
- interface SearchFilterActionsProps {
190
- onClose?: () => void;
191
- disabled?: boolean;
192
- }
193
- /**
194
- * Filter actions component (Reset/Apply buttons)
195
- * Used inside filter popovers/sheets
196
- */
197
- declare function SearchFilterActions({
198
- onClose,
199
- disabled
200
- }: SearchFilterActionsProps): react_jsx_runtime0.JSX.Element;
201
- //#endregion
202
40
  //#region src/components/search/search-active-filters.d.ts
203
41
  interface SearchActiveFiltersProps {
204
42
  /** Override labels for filter keys (falls back to FilterConfig.label, then capitalized key) */
@@ -237,6 +75,27 @@ declare function SearchActiveFilters({
237
75
  className
238
76
  }: SearchActiveFiltersProps): react_jsx_runtime0.JSX.Element | null;
239
77
  //#endregion
78
+ //#region src/components/search/search-container.d.ts
79
+ interface SearchContainerProps {
80
+ children: ReactNode;
81
+ className?: string;
82
+ }
83
+ /**
84
+ * Container for search input and action buttons
85
+ * Provides responsive layout
86
+ *
87
+ * @example
88
+ * <Search.Container>
89
+ * <Search.Input />
90
+ * <Search.Filters />
91
+ * <Search.Actions />
92
+ * </Search.Container>
93
+ */
94
+ declare function SearchContainer({
95
+ children,
96
+ className
97
+ }: SearchContainerProps): react_jsx_runtime0.JSX.Element;
98
+ //#endregion
240
99
  //#region src/components/search/search-context.d.ts
241
100
  interface SearchProviderProps {
242
101
  children: ReactNode;
@@ -247,6 +106,151 @@ declare function SearchProvider({
247
106
  value
248
107
  }: SearchProviderProps): react_jsx_runtime0.JSX.Element;
249
108
  declare function useSearch(): UseBaseSearchReturn;
109
+ //#endregion
110
+ //#region src/components/search/search-filter-actions.d.ts
111
+ interface SearchFilterActionsProps {
112
+ onClose?: () => void;
113
+ disabled?: boolean;
114
+ }
115
+ /**
116
+ * Filter actions component (Reset/Apply buttons)
117
+ * Used inside filter popovers/sheets
118
+ */
119
+ declare function SearchFilterActions({
120
+ onClose,
121
+ disabled
122
+ }: SearchFilterActionsProps): react_jsx_runtime0.JSX.Element;
123
+ //#endregion
124
+ //#region src/components/search/search-filters.d.ts
125
+ interface SearchFiltersProps {
126
+ children: ReactNode;
127
+ title?: string;
128
+ description?: string;
129
+ disabled?: boolean;
130
+ className?: string;
131
+ }
132
+ /**
133
+ * Search filters component with mobile sheet support
134
+ *
135
+ * @example
136
+ * <Search.Filters>
137
+ * <TagChoiceInput label="Category" ... />
138
+ * <SelectInput label="Status" ... />
139
+ * </Search.Filters>
140
+ */
141
+ declare function SearchFilters({
142
+ children,
143
+ title,
144
+ description,
145
+ disabled,
146
+ className
147
+ }: SearchFiltersProps): react_jsx_runtime0.JSX.Element;
148
+ //#endregion
149
+ //#region src/components/search/search-input.d.ts
150
+ interface SearchInputProps {
151
+ placeholder?: string;
152
+ className?: string;
153
+ inputClassName?: string;
154
+ disabled?: boolean;
155
+ showIcon?: boolean;
156
+ showClearButton?: boolean;
157
+ onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
158
+ }
159
+ /**
160
+ * Search input component using modern shadcn InputGroup pattern
161
+ *
162
+ * @example
163
+ * <Search.Input placeholder="Search..." />
164
+ */
165
+ declare function SearchInput({
166
+ placeholder,
167
+ className,
168
+ inputClassName,
169
+ disabled,
170
+ showIcon,
171
+ showClearButton,
172
+ onKeyDown,
173
+ ...props
174
+ }: SearchInputProps): react_jsx_runtime0.JSX.Element;
175
+ //#endregion
176
+ //#region src/components/search/search-root.d.ts
177
+ interface SearchRootProps {
178
+ children: ReactNode;
179
+ hook: UseBaseSearchReturn;
180
+ className?: string;
181
+ /**
182
+ * When true, automatically triggers `handleSearch` (debounced) whenever
183
+ * `searchValue` or `filters` change. Removes the need for a manual
184
+ * "Search" button — useful for DataTableToolbar-style UIs.
185
+ */
186
+ autoSearch?: boolean;
187
+ /** Debounce delay in ms for auto-search (default: 300) */
188
+ autoSearchDelay?: number;
189
+ }
190
+ /**
191
+ * Root search component that provides context to all child components
192
+ *
193
+ * @example
194
+ * // Manual mode (default)
195
+ * <Search.Root hook={useMySearch()}>
196
+ * <Search.Input />
197
+ * <Search.Actions />
198
+ * </Search.Root>
199
+ *
200
+ * @example
201
+ * // Auto-search mode — no Search button needed
202
+ * <Search.Root hook={useMySearch()} autoSearch>
203
+ * <Search.Input />
204
+ * <Search.ActiveFilters />
205
+ * </Search.Root>
206
+ */
207
+ declare function SearchRoot({
208
+ children,
209
+ hook,
210
+ className,
211
+ autoSearch,
212
+ autoSearchDelay
213
+ }: SearchRootProps): react_jsx_runtime0.JSX.Element;
214
+ //#endregion
215
+ //#region src/components/search/search-type-input.d.ts
216
+ interface SearchTypeOption {
217
+ value: string;
218
+ label: string;
219
+ }
220
+ interface SearchTypeInputProps {
221
+ placeholder?: string;
222
+ className?: string;
223
+ inputClassName?: string;
224
+ disabled?: boolean;
225
+ showIcon?: boolean;
226
+ showClearButton?: boolean;
227
+ searchTypeOptions?: SearchTypeOption[];
228
+ onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
229
+ }
230
+ /**
231
+ * Search input component with type selector using InputGroup pattern
232
+ *
233
+ * @example
234
+ * <Search.TypeInput
235
+ * placeholder="Search..."
236
+ * searchTypeOptions={[
237
+ * { value: "_id", label: "ID" },
238
+ * { value: "customerPhone", label: "Phone" },
239
+ * { value: "customerEmail", label: "Email" },
240
+ * ]}
241
+ * />
242
+ */
243
+ declare function SearchTypeInput({
244
+ placeholder,
245
+ className,
246
+ inputClassName,
247
+ disabled,
248
+ showIcon,
249
+ showClearButton,
250
+ searchTypeOptions,
251
+ onKeyDown,
252
+ ...props
253
+ }: SearchTypeInputProps): react_jsx_runtime0.JSX.Element;
250
254
  declare namespace index_d_exports {
251
255
  export { SearchActions as Actions, SearchActiveFilters as ActiveFilters, SearchContainer as Container, SearchFilterActions as FilterActions, SearchFilters as Filters, SearchInput as Input, SearchRoot as Root, SearchActionsProps, SearchActiveFiltersProps, SearchContainerProps, SearchFilterActionsProps, SearchFiltersProps, SearchInputProps, SearchProvider, SearchProviderProps, SearchRootProps, SearchTypeInputProps, SearchTypeOption, SearchTypeInput as TypeInput, useSearch };
252
256
  }