@px-ui/core 1.29.7 → 2.1.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.
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { n as __reExport, t as __export } from "./chunk-CYeTv9WL.js";
2
2
  import * as React$2 from "react";
3
- import React$1 from "react";
3
+ import React$1, { ChangeEvent, DragEvent, InputHTMLAttributes } from "react";
4
4
  import { Dialog } from "@base-ui-components/react";
5
5
  import { ArgumentArray } from "classnames";
6
6
  import { VariantProps } from "class-variance-authority";
7
- import * as react_jsx_runtime28 from "react/jsx-runtime";
7
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
8
8
  import { Popover } from "@base-ui-components/react/popover";
9
9
  import { Combobox } from "@base-ui-components/react/combobox";
10
10
  import * as _tanstack_react_query0 from "@tanstack/react-query";
@@ -22,79 +22,79 @@ import { useRender } from "@base-ui-components/react/use-render";
22
22
  import { DayPickerProps } from "react-day-picker";
23
23
  import { Avatar as Avatar$1 } from "@base-ui-components/react/avatar";
24
24
  import { Switch as Switch$1 } from "@base-ui-components/react/switch";
25
- import * as class_variance_authority_types10 from "class-variance-authority/types";
25
+ import * as class_variance_authority_types11 from "class-variance-authority/types";
26
26
  export * from "class-variance-authority";
27
27
 
28
28
  //#region src/components/dialog.d.ts
29
29
  declare namespace dialog_d_exports {
30
- export { Close$1 as Close, Content$6 as Content, Description$3 as Description, Footer$1 as Footer, Header$3 as Header, HeaderContent, HeaderIcon, Overlay, Portal, Root$9 as Root, Title$3 as Title, Trigger$6 as Trigger };
30
+ export { Close$1 as Close, Content$6 as Content, Description$3 as Description, Footer$1 as Footer, Header$3 as Header, HeaderContent, HeaderIcon, Overlay, Portal, Root$10 as Root, Title$3 as Title, Trigger$7 as Trigger };
31
31
  }
32
- declare function Root$9({
32
+ declare function Root$10({
33
33
  ...props
34
- }: React$2.ComponentProps<typeof Dialog.Root>): react_jsx_runtime28.JSX.Element;
34
+ }: React$2.ComponentProps<typeof Dialog.Root>): react_jsx_runtime0.JSX.Element;
35
35
  declare function Portal({
36
36
  ...props
37
- }: React$2.ComponentProps<typeof Dialog.Portal>): react_jsx_runtime28.JSX.Element;
38
- declare function Trigger$6({
37
+ }: React$2.ComponentProps<typeof Dialog.Portal>): react_jsx_runtime0.JSX.Element;
38
+ declare function Trigger$7({
39
39
  ...props
40
- }: React$2.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime28.JSX.Element;
40
+ }: React$2.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime0.JSX.Element;
41
41
  declare function Close$1({
42
42
  ...props
43
- }: React$2.ComponentProps<typeof Dialog.Close>): react_jsx_runtime28.JSX.Element;
43
+ }: React$2.ComponentProps<typeof Dialog.Close>): react_jsx_runtime0.JSX.Element;
44
44
  declare function Overlay({
45
45
  className,
46
46
  ...props
47
- }: React$2.ComponentProps<typeof Dialog.Backdrop>): react_jsx_runtime28.JSX.Element;
47
+ }: React$2.ComponentProps<typeof Dialog.Backdrop>): react_jsx_runtime0.JSX.Element;
48
48
  declare function Content$6({
49
49
  className,
50
50
  children,
51
51
  ...props
52
- }: React$2.ComponentProps<typeof Dialog.Popup>): react_jsx_runtime28.JSX.Element;
52
+ }: React$2.ComponentProps<typeof Dialog.Popup>): react_jsx_runtime0.JSX.Element;
53
53
  declare function Header$3({
54
54
  className,
55
55
  ...props
56
- }: React$2.ComponentProps<"div">): react_jsx_runtime28.JSX.Element;
56
+ }: React$2.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
57
57
  declare function HeaderContent({
58
58
  className,
59
59
  children,
60
60
  ...props
61
- }: React$2.ComponentProps<"div">): react_jsx_runtime28.JSX.Element;
61
+ }: React$2.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
62
62
  declare function HeaderIcon({
63
63
  className,
64
64
  children,
65
65
  ...props
66
- }: React$2.ComponentProps<"div">): react_jsx_runtime28.JSX.Element;
66
+ }: React$2.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
67
67
  declare function Footer$1({
68
68
  className,
69
69
  ...props
70
- }: React$2.ComponentProps<"div">): react_jsx_runtime28.JSX.Element;
70
+ }: React$2.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
71
71
  declare function Title$3({
72
72
  className,
73
73
  ...props
74
- }: React$2.ComponentProps<typeof Dialog.Title>): react_jsx_runtime28.JSX.Element;
74
+ }: React$2.ComponentProps<typeof Dialog.Title>): react_jsx_runtime0.JSX.Element;
75
75
  declare function Description$3({
76
76
  className,
77
77
  ...props
78
- }: React$2.ComponentProps<typeof Dialog.Description>): react_jsx_runtime28.JSX.Element;
78
+ }: React$2.ComponentProps<typeof Dialog.Description>): react_jsx_runtime0.JSX.Element;
79
79
  declare namespace popover_d_exports {
80
- export { Close, CloseIconButton, Content$5 as Content, Description$2 as Description, Footer, Header$2 as Header, Root$8 as Root, Title$2 as Title, Trigger$5 as Trigger };
80
+ export { Close, CloseIconButton, Content$5 as Content, Description$2 as Description, Footer, Header$2 as Header, Root$9 as Root, Title$2 as Title, Trigger$6 as Trigger };
81
81
  }
82
- declare function Root$8(props: React.ComponentProps<typeof Popover.Root>): react_jsx_runtime28.JSX.Element;
83
- declare function Trigger$5(props: React.ComponentProps<typeof Popover.Trigger>): react_jsx_runtime28.JSX.Element;
84
- declare function Close(props: React.ComponentProps<typeof Popover.Close>): react_jsx_runtime28.JSX.Element;
85
- declare function Positioner(props: React.ComponentProps<typeof Popover.Positioner>): react_jsx_runtime28.JSX.Element;
82
+ declare function Root$9(props: React.ComponentProps<typeof Popover.Root>): react_jsx_runtime0.JSX.Element;
83
+ declare function Trigger$6(props: React.ComponentProps<typeof Popover.Trigger>): react_jsx_runtime0.JSX.Element;
84
+ declare function Close(props: React.ComponentProps<typeof Popover.Close>): react_jsx_runtime0.JSX.Element;
85
+ declare function Positioner(props: React.ComponentProps<typeof Popover.Positioner>): react_jsx_runtime0.JSX.Element;
86
86
  declare function Header$2({
87
87
  className,
88
88
  ...props
89
- }: React.ComponentProps<"div">): react_jsx_runtime28.JSX.Element;
89
+ }: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
90
90
  declare function Title$2({
91
91
  className,
92
92
  ...props
93
- }: React.ComponentProps<typeof Popover.Title>): react_jsx_runtime28.JSX.Element;
93
+ }: React.ComponentProps<typeof Popover.Title>): react_jsx_runtime0.JSX.Element;
94
94
  declare function Description$2({
95
95
  className,
96
96
  ...props
97
- }: React.ComponentProps<typeof Popover.Description>): react_jsx_runtime28.JSX.Element;
97
+ }: React.ComponentProps<typeof Popover.Description>): react_jsx_runtime0.JSX.Element;
98
98
  declare function Content$5({
99
99
  children,
100
100
  className,
@@ -109,42 +109,42 @@ declare function Content$5({
109
109
  children: React.ReactNode;
110
110
  arrow?: boolean;
111
111
  className?: string;
112
- }): react_jsx_runtime28.JSX.Element;
112
+ }): react_jsx_runtime0.JSX.Element;
113
113
  declare function CloseIconButton({
114
114
  className,
115
115
  ...props
116
- }: React.ComponentProps<"button">): react_jsx_runtime28.JSX.Element;
116
+ }: React.ComponentProps<"button">): react_jsx_runtime0.JSX.Element;
117
117
  declare function Footer({
118
118
  className,
119
119
  ...props
120
- }: React.ComponentProps<"div">): react_jsx_runtime28.JSX.Element;
120
+ }: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
121
121
  //#endregion
122
122
  //#region src/tw-styles/dropdown.d.ts
123
123
  declare const triggerVariants: (props?: ({
124
124
  size?: "default" | "sm" | null | undefined;
125
125
  widthVariant?: "enforced" | "full" | "fit" | null | undefined;
126
- } & class_variance_authority_types10.ClassProp) | undefined) => string;
126
+ } & class_variance_authority_types11.ClassProp) | undefined) => string;
127
127
  //#endregion
128
128
  //#region src/components/button.d.ts
129
129
  declare const buttonVariants: (props?: ({
130
130
  variant?: "link" | "default" | "primary" | "destructive" | "outline" | "primary-outline" | "ghost" | null | undefined;
131
131
  size?: "default" | "sm" | "lg" | "icon-sm" | "icon" | null | undefined;
132
- } & class_variance_authority_types10.ClassProp) | undefined) => string;
132
+ } & class_variance_authority_types11.ClassProp) | undefined) => string;
133
133
  interface ButtonProps extends React$2.ComponentProps<"button">, VariantProps<typeof buttonVariants> {}
134
134
  declare function Button({
135
135
  className,
136
136
  variant,
137
137
  size,
138
138
  ...props
139
- }: ButtonProps): react_jsx_runtime28.JSX.Element;
139
+ }: ButtonProps): react_jsx_runtime0.JSX.Element;
140
140
  declare namespace input_group_d_exports {
141
- export { Addon, Button$1 as Button, Input$1 as Input, Root$7 as Root, Text };
141
+ export { Addon, Button$1 as Button, Input$1 as Input, Root$8 as Root, Text };
142
142
  }
143
143
  declare const inputGroupVariants: (props?: ({
144
144
  size?: "default" | "sm" | null | undefined;
145
145
  widthVariant?: "enforced" | "full" | "fit" | null | undefined;
146
- } & class_variance_authority_types10.ClassProp) | undefined) => string;
147
- declare function Root$7({
146
+ } & class_variance_authority_types11.ClassProp) | undefined) => string;
147
+ declare function Root$8({
148
148
  className,
149
149
  size,
150
150
  disabled,
@@ -152,37 +152,37 @@ declare function Root$7({
152
152
  ...props
153
153
  }: React$2.ComponentProps<"div"> & VariantProps<typeof inputGroupVariants> & {
154
154
  disabled?: boolean;
155
- }): react_jsx_runtime28.JSX.Element;
155
+ }): react_jsx_runtime0.JSX.Element;
156
156
  declare const inputGroupAddonVariants: (props?: ({
157
157
  align?: "inline-start" | "inline-end" | null | undefined;
158
- } & class_variance_authority_types10.ClassProp) | undefined) => string;
158
+ } & class_variance_authority_types11.ClassProp) | undefined) => string;
159
159
  interface AddonProps extends React$2.ComponentProps<"div">, VariantProps<typeof inputGroupAddonVariants> {}
160
160
  declare function Addon({
161
161
  className,
162
162
  align,
163
163
  ...props
164
- }: AddonProps): react_jsx_runtime28.JSX.Element;
164
+ }: AddonProps): react_jsx_runtime0.JSX.Element;
165
165
  declare const inputGroupButtonVariants: (props?: ({
166
166
  size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
167
- } & class_variance_authority_types10.ClassProp) | undefined) => string;
167
+ } & class_variance_authority_types11.ClassProp) | undefined) => string;
168
168
  declare function Button$1({
169
169
  className,
170
170
  type,
171
171
  variant,
172
172
  size,
173
173
  ...props
174
- }: Omit<React$2.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): react_jsx_runtime28.JSX.Element;
174
+ }: Omit<React$2.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): react_jsx_runtime0.JSX.Element;
175
175
  declare function Text({
176
176
  className,
177
177
  ...props
178
- }: React$2.ComponentProps<"span">): react_jsx_runtime28.JSX.Element;
178
+ }: React$2.ComponentProps<"span">): react_jsx_runtime0.JSX.Element;
179
179
  declare function Input$1({
180
180
  className,
181
181
  invalid,
182
182
  ...props
183
183
  }: React$2.ComponentProps<"input"> & {
184
184
  invalid?: boolean;
185
- }): react_jsx_runtime28.JSX.Element;
185
+ }): react_jsx_runtime0.JSX.Element;
186
186
  //#endregion
187
187
  //#region src/hooks/use-async-options.d.ts
188
188
  type LoadOptionsData<TData$1> = {
@@ -244,7 +244,7 @@ declare function defineLoadOptions<TData$1 = any>(loadOptions: LoadOptionsConfig
244
244
  type InferOption<T> = T extends LoadOptionsConfig<infer TData> ? TData : never;
245
245
  type InferOptions<T> = T extends LoadOptionsConfig<infer TData> ? TData[] : never;
246
246
  declare namespace combobox_d_exports {
247
- export { BaseCombobox, Chip, ChipsTrigger, Content$4 as Content, Item$6 as Item, List$2 as List, LoadingIndicator, MultiItem$1 as MultiItem, Root$6 as Root, Search, SearchableTrigger, SearchableTriggerDropdownAddon, Trigger$4 as Trigger, Value$2 as Value, useComboboxContext };
247
+ export { BaseCombobox, Chip, ChipsTrigger, Content$4 as Content, Item$7 as Item, List$2 as List, LoadingIndicator, MultiItem$1 as MultiItem, Root$7 as Root, Search, SearchableTrigger, SearchableTriggerDropdownAddon, Trigger$5 as Trigger, Value$2 as Value, useComboboxContext };
248
248
  }
249
249
  declare const List$2: React$2.ForwardRefExoticComponent<Combobox.List.Props & React$2.RefAttributes<HTMLDivElement>>;
250
250
  type ComboboxContextValues = React$2.ComponentProps<typeof Combobox.Root<any, any, any>> & {
@@ -257,12 +257,12 @@ type ComboboxContextValues = React$2.ComponentProps<typeof Combobox.Root<any, an
257
257
  hasMore?: boolean;
258
258
  onLoadMore?: () => void;
259
259
  };
260
- declare function Root$6<ItemValue, SelectedValue$1 = ItemValue, Multiple extends boolean | undefined = false>({
260
+ declare function Root$7<ItemValue, SelectedValue$1 = ItemValue, Multiple extends boolean | undefined = false>({
261
261
  children,
262
262
  ...props
263
263
  }: React$2.ComponentProps<typeof Combobox.Root<ItemValue, SelectedValue$1, Multiple>> & Pick<ComboboxContextValues, "isLoading" | "isLoadingMore" | "isError" | "onLoadMore" | "hasMore" | "invalid"> & {
264
264
  loadOptions?: LoadOptionsConfig<ItemValue>;
265
- }): react_jsx_runtime28.JSX.Element;
265
+ }): react_jsx_runtime0.JSX.Element;
266
266
  declare function Content$4({
267
267
  empty,
268
268
  portalProps,
@@ -276,34 +276,34 @@ declare function Content$4({
276
276
  positionerProps?: React$2.ComponentProps<typeof Combobox.Positioner>;
277
277
  popupProps?: React$2.ComponentProps<typeof Combobox.Popup>;
278
278
  widthVariant?: "trigger" | "fit" | "enforced";
279
- }>): react_jsx_runtime28.JSX.Element;
280
- declare function Item$6({
279
+ }>): react_jsx_runtime0.JSX.Element;
280
+ declare function Item$7({
281
281
  className,
282
282
  ...props
283
- }: React$2.ComponentProps<typeof Combobox.Item>): react_jsx_runtime28.JSX.Element;
283
+ }: React$2.ComponentProps<typeof Combobox.Item>): react_jsx_runtime0.JSX.Element;
284
284
  declare function MultiItem$1({
285
285
  className,
286
286
  ...props
287
- }: React$2.ComponentProps<typeof Combobox.Item>): react_jsx_runtime28.JSX.Element;
287
+ }: React$2.ComponentProps<typeof Combobox.Item>): react_jsx_runtime0.JSX.Element;
288
288
  declare function LoadingIndicator(props: {
289
289
  className?: string;
290
- }): react_jsx_runtime28.JSX.Element;
290
+ }): react_jsx_runtime0.JSX.Element;
291
291
  declare function SearchableTrigger(props: {
292
292
  placeholder?: string;
293
- size?: React$2.ComponentProps<typeof Root$7>["size"];
294
- widthVariant?: React$2.ComponentProps<typeof Root$7>["widthVariant"];
293
+ size?: React$2.ComponentProps<typeof Root$8>["size"];
294
+ widthVariant?: React$2.ComponentProps<typeof Root$8>["widthVariant"];
295
295
  className?: string;
296
296
  addons?: React$2.ReactNode;
297
- }): react_jsx_runtime28.JSX.Element;
298
- declare function SearchableTriggerDropdownAddon(): react_jsx_runtime28.JSX.Element;
299
- interface TriggerProps$1 extends Combobox.Trigger.Props, VariantProps<typeof triggerVariants> {}
300
- declare function Trigger$4({
297
+ }): react_jsx_runtime0.JSX.Element;
298
+ declare function SearchableTriggerDropdownAddon(): react_jsx_runtime0.JSX.Element;
299
+ interface TriggerProps$2 extends Combobox.Trigger.Props, VariantProps<typeof triggerVariants> {}
300
+ declare function Trigger$5({
301
301
  size,
302
302
  widthVariant,
303
303
  children,
304
304
  className,
305
305
  ...props
306
- }: TriggerProps$1): react_jsx_runtime28.JSX.Element;
306
+ }: TriggerProps$2): react_jsx_runtime0.JSX.Element;
307
307
  /**
308
308
  * Renders the value, if `value` is a string or an object with `label` property in it,
309
309
  * then renders that value else you should provide a render function to render your custom value
@@ -317,11 +317,11 @@ declare function Value$2({
317
317
  placeholder?: string;
318
318
  children: React$2.ReactNode | ((selectedValue: any) => React$2.ReactNode);
319
319
  className?: string;
320
- }): react_jsx_runtime28.JSX.Element;
320
+ }): react_jsx_runtime0.JSX.Element;
321
321
  declare const chipsTriggerVariants: (props?: ({
322
322
  size?: "default" | "sm" | null | undefined;
323
323
  widthVariant?: "enforced" | "full" | null | undefined;
324
- } & class_variance_authority_types10.ClassProp) | undefined) => string;
324
+ } & class_variance_authority_types11.ClassProp) | undefined) => string;
325
325
  declare function ChipsTrigger({
326
326
  size,
327
327
  widthVariant,
@@ -330,26 +330,26 @@ declare function ChipsTrigger({
330
330
  children: React$2.ReactNode | ((selectedValue: any) => React$2.ReactNode);
331
331
  placeholder?: string;
332
332
  className?: string;
333
- } & VariantProps<typeof chipsTriggerVariants>): react_jsx_runtime28.JSX.Element;
333
+ } & VariantProps<typeof chipsTriggerVariants>): react_jsx_runtime0.JSX.Element;
334
334
  declare function Chip(props: React$2.ComponentProps<typeof Combobox.Chip> & {
335
335
  key: React$2.Key;
336
- }): react_jsx_runtime28.JSX.Element;
336
+ }): react_jsx_runtime0.JSX.Element;
337
337
  declare function Search({
338
338
  placeholder,
339
339
  ...props
340
- }: React$2.ComponentProps<typeof Combobox.Input>): react_jsx_runtime28.JSX.Element;
340
+ }: React$2.ComponentProps<typeof Combobox.Input>): react_jsx_runtime0.JSX.Element;
341
341
  declare function useComboboxContext(): ComboboxContextValues;
342
342
  declare const BaseCombobox: typeof Combobox;
343
343
  declare namespace select_d_exports {
344
- export { BaseSelect, Content$3 as Content, Item$5 as Item, List$1 as List, MultiItem, MultiSelectedValue, Root$5 as Root, SelectedValue, Trigger$3 as Trigger, TriggerProps, Value$1 as Value };
344
+ export { BaseSelect, Content$3 as Content, Item$6 as Item, List$1 as List, MultiItem, MultiSelectedValue, Root$6 as Root, SelectedValue, Trigger$4 as Trigger, TriggerProps$1 as TriggerProps, Value$1 as Value };
345
345
  }
346
- declare function Root$5<Value$3 = any, Multiple extends boolean | undefined = false>({
346
+ declare function Root$6<Value$3 = any, Multiple extends boolean | undefined = false>({
347
347
  children,
348
348
  invalid,
349
349
  ...props
350
350
  }: React$2.ComponentPropsWithoutRef<typeof Select.Root<Value$3, Multiple>> & {
351
351
  invalid?: boolean;
352
- }): react_jsx_runtime28.JSX.Element;
352
+ }): react_jsx_runtime0.JSX.Element;
353
353
  declare function Content$3({
354
354
  portalProps,
355
355
  positionerProps,
@@ -361,29 +361,29 @@ declare function Content$3({
361
361
  positionerProps?: React$2.ComponentProps<typeof Select.Positioner>;
362
362
  popupProps?: React$2.ComponentProps<typeof Select.Popup>;
363
363
  widthVariant?: "trigger" | "fit" | "enforced";
364
- }>): react_jsx_runtime28.JSX.Element;
364
+ }>): react_jsx_runtime0.JSX.Element;
365
365
  declare const List$1: React$2.ForwardRefExoticComponent<Select.List.Props & React$2.RefAttributes<HTMLDivElement>>;
366
- declare function Item$5({
366
+ declare function Item$6({
367
367
  className,
368
368
  ...props
369
- }: React$2.ComponentProps<typeof Select.Item>): react_jsx_runtime28.JSX.Element;
369
+ }: React$2.ComponentProps<typeof Select.Item>): react_jsx_runtime0.JSX.Element;
370
370
  declare function MultiItem({
371
371
  className,
372
372
  ...props
373
- }: React$2.ComponentProps<typeof Select.Item>): react_jsx_runtime28.JSX.Element;
374
- interface TriggerProps extends Select.Trigger.Props, VariantProps<typeof triggerVariants> {}
375
- declare function Trigger$3({
373
+ }: React$2.ComponentProps<typeof Select.Item>): react_jsx_runtime0.JSX.Element;
374
+ interface TriggerProps$1 extends Select.Trigger.Props, VariantProps<typeof triggerVariants> {}
375
+ declare function Trigger$4({
376
376
  size,
377
377
  widthVariant,
378
378
  ...props
379
- }: TriggerProps): react_jsx_runtime28.JSX.Element;
379
+ }: TriggerProps$1): react_jsx_runtime0.JSX.Element;
380
380
  declare function MultiSelectedValue({
381
381
  selectedValue,
382
382
  maxItems
383
383
  }: {
384
384
  selectedValue: any;
385
385
  maxItems: number;
386
- }): react_jsx_runtime28.JSX.Element | null;
386
+ }): react_jsx_runtime0.JSX.Element | null;
387
387
  /**
388
388
  * Renders the value, if `value` is a string or an object with `label` property in it,
389
389
  * then renders that value else you should provide a render function to render your custom value
@@ -395,20 +395,20 @@ declare function Value$1({
395
395
  ...props
396
396
  }: Select.Value.Props & {
397
397
  placeholder?: string;
398
- }): react_jsx_runtime28.JSX.Element;
398
+ }): react_jsx_runtime0.JSX.Element;
399
399
  type SelectedValue<TValue> = TValue | null | undefined;
400
400
  declare const BaseSelect: typeof Select;
401
401
  declare namespace menu_d_exports {
402
- export { BaseMenu, BaseTrigger, Content$2 as Content, DropdownIndicator, Group$3 as Group, GroupLabel, Item$4 as Item, RadioGroup$1 as RadioGroup, RadioItem, Root$4 as Root, Separator$1 as Separator, Trigger$2 as Trigger };
402
+ export { BaseMenu, BaseTrigger, Content$2 as Content, DropdownIndicator, Group$3 as Group, GroupLabel, Item$5 as Item, RadioGroup$1 as RadioGroup, RadioItem, Root$5 as Root, Separator$1 as Separator, Trigger$3 as Trigger };
403
403
  }
404
- declare const Root$4: React$2.FC<Menu.Root.Props>;
405
- declare function Trigger$2({
404
+ declare const Root$5: React$2.FC<Menu.Root.Props>;
405
+ declare function Trigger$3({
406
406
  className,
407
407
  children,
408
408
  size,
409
409
  widthVariant,
410
410
  ...props
411
- }: React$2.ComponentProps<typeof Menu.Trigger> & VariantProps<typeof triggerVariants>): react_jsx_runtime28.JSX.Element;
411
+ }: React$2.ComponentProps<typeof Menu.Trigger> & VariantProps<typeof triggerVariants>): react_jsx_runtime0.JSX.Element;
412
412
  declare function Content$2({
413
413
  portalProps,
414
414
  positionerProps,
@@ -420,67 +420,67 @@ declare function Content$2({
420
420
  positionerProps?: React$2.ComponentProps<typeof Menu.Positioner>;
421
421
  popupProps?: React$2.ComponentProps<typeof Menu.Popup>;
422
422
  widthVariant?: "trigger" | "fit" | "enforced";
423
- }>): react_jsx_runtime28.JSX.Element;
424
- declare function DropdownIndicator(): react_jsx_runtime28.JSX.Element;
425
- declare function Item$4({
423
+ }>): react_jsx_runtime0.JSX.Element;
424
+ declare function DropdownIndicator(): react_jsx_runtime0.JSX.Element;
425
+ declare function Item$5({
426
426
  className,
427
427
  children,
428
428
  ...props
429
- }: React$2.ComponentProps<typeof Menu.Item>): react_jsx_runtime28.JSX.Element;
429
+ }: React$2.ComponentProps<typeof Menu.Item>): react_jsx_runtime0.JSX.Element;
430
430
  declare function Separator$1({
431
431
  className,
432
432
  ...props
433
- }: React$2.ComponentProps<typeof Menu.Separator>): react_jsx_runtime28.JSX.Element;
433
+ }: React$2.ComponentProps<typeof Menu.Separator>): react_jsx_runtime0.JSX.Element;
434
434
  declare const Group$3: React$2.ForwardRefExoticComponent<Menu.Group.Props & React$2.RefAttributes<Element>>;
435
435
  declare function GroupLabel({
436
436
  className,
437
437
  ...props
438
- }: React$2.ComponentProps<typeof Menu.GroupLabel>): react_jsx_runtime28.JSX.Element;
438
+ }: React$2.ComponentProps<typeof Menu.GroupLabel>): react_jsx_runtime0.JSX.Element;
439
439
  declare const RadioGroup$1: React$2.NamedExoticComponent<Menu.RadioGroup.Props & React$2.RefAttributes<Element>>;
440
440
  declare function RadioItem({
441
441
  className,
442
442
  ...props
443
- }: React$2.ComponentProps<typeof Menu.RadioItem>): react_jsx_runtime28.JSX.Element;
443
+ }: React$2.ComponentProps<typeof Menu.RadioItem>): react_jsx_runtime0.JSX.Element;
444
444
  declare const BaseTrigger: React$2.ForwardRefExoticComponent<Menu.Trigger.Props & React$2.RefAttributes<HTMLElement>>;
445
445
  declare const BaseMenu: typeof Menu;
446
446
  declare namespace progress_d_exports {
447
- export { BaseProgress, Indicator, Label$1 as Label, Root$3 as Root, Track, Value };
447
+ export { BaseProgress, Indicator, Label$1 as Label, Root$4 as Root, Track, Value };
448
448
  }
449
449
  declare const progressTrackVariants: (props?: ({
450
450
  size?: "default" | "sm" | "lg" | null | undefined;
451
- } & class_variance_authority_types10.ClassProp) | undefined) => string;
452
- declare const Root$3: React$2.ForwardRefExoticComponent<Progress.Root.Props & React$2.RefAttributes<HTMLDivElement>>;
451
+ } & class_variance_authority_types11.ClassProp) | undefined) => string;
452
+ declare const Root$4: React$2.ForwardRefExoticComponent<Progress.Root.Props & React$2.RefAttributes<HTMLDivElement>>;
453
453
  declare function Track({
454
454
  className,
455
455
  size,
456
456
  children,
457
457
  ...props
458
- }: React$2.ComponentProps<typeof Progress.Track> & VariantProps<typeof progressTrackVariants>): react_jsx_runtime28.JSX.Element;
458
+ }: React$2.ComponentProps<typeof Progress.Track> & VariantProps<typeof progressTrackVariants>): react_jsx_runtime0.JSX.Element;
459
459
  declare function Indicator({
460
460
  className,
461
461
  ...props
462
- }: React$2.ComponentProps<typeof Progress.Indicator>): react_jsx_runtime28.JSX.Element;
462
+ }: React$2.ComponentProps<typeof Progress.Indicator>): react_jsx_runtime0.JSX.Element;
463
463
  declare function Label$1({
464
464
  className,
465
465
  ...props
466
- }: React$2.ComponentProps<typeof Progress.Label>): react_jsx_runtime28.JSX.Element;
466
+ }: React$2.ComponentProps<typeof Progress.Label>): react_jsx_runtime0.JSX.Element;
467
467
  declare function Value({
468
468
  className,
469
469
  ...props
470
- }: React$2.ComponentProps<typeof Progress.Value>): react_jsx_runtime28.JSX.Element;
470
+ }: React$2.ComponentProps<typeof Progress.Value>): react_jsx_runtime0.JSX.Element;
471
471
  declare const BaseProgress: typeof Progress;
472
472
  declare namespace segmented_control_d_exports {
473
- export { Item$3 as Item, Root$2 as Root };
473
+ export { Item$4 as Item, Root$3 as Root };
474
474
  }
475
475
  declare const segmentedControlItemVariants: (props?: ({
476
476
  variant?: "default" | null | undefined;
477
477
  size?: "default" | "sm" | "lg" | null | undefined;
478
- } & class_variance_authority_types10.ClassProp) | undefined) => string;
479
- declare function Root$2({
478
+ } & class_variance_authority_types11.ClassProp) | undefined) => string;
479
+ declare function Root$3({
480
480
  className,
481
481
  ...props
482
- }: React$2.ComponentProps<typeof RadioGroup>): react_jsx_runtime28.JSX.Element;
483
- declare function Item$3({
482
+ }: React$2.ComponentProps<typeof RadioGroup>): react_jsx_runtime0.JSX.Element;
483
+ declare function Item$4({
484
484
  children,
485
485
  className,
486
486
  variant,
@@ -488,42 +488,42 @@ declare function Item$3({
488
488
  ...props
489
489
  }: React$2.ComponentProps<typeof Radio.Root> & VariantProps<typeof segmentedControlItemVariants> & {
490
490
  children: React$2.ReactNode;
491
- }): react_jsx_runtime28.JSX.Element;
491
+ }): react_jsx_runtime0.JSX.Element;
492
492
  declare namespace tabs_d_exports {
493
- export { Content$1 as Content, List, Root$1 as Root, Trigger$1 as Trigger };
493
+ export { Content$1 as Content, List, Root$2 as Root, Trigger$2 as Trigger };
494
494
  }
495
495
  type TabsVariant = "underline";
496
- declare function Root$1({
496
+ declare function Root$2({
497
497
  variant,
498
498
  className,
499
499
  ...props
500
500
  }: React$2.ComponentProps<typeof Tabs.Root> & {
501
501
  variant?: TabsVariant;
502
- }): react_jsx_runtime28.JSX.Element;
502
+ }): react_jsx_runtime0.JSX.Element;
503
503
  declare function List({
504
504
  className,
505
505
  children,
506
506
  ...props
507
- }: React$2.ComponentProps<typeof Tabs.List>): react_jsx_runtime28.JSX.Element;
508
- declare function Trigger$1({
507
+ }: React$2.ComponentProps<typeof Tabs.List>): react_jsx_runtime0.JSX.Element;
508
+ declare function Trigger$2({
509
509
  className,
510
510
  ...props
511
- }: React$2.ComponentProps<typeof Tabs.Tab>): react_jsx_runtime28.JSX.Element;
511
+ }: React$2.ComponentProps<typeof Tabs.Tab>): react_jsx_runtime0.JSX.Element;
512
512
  declare function Content$1({
513
513
  className,
514
514
  ...props
515
- }: React$2.ComponentProps<typeof Tabs.Panel>): react_jsx_runtime28.JSX.Element;
515
+ }: React$2.ComponentProps<typeof Tabs.Panel>): react_jsx_runtime0.JSX.Element;
516
516
  declare namespace tooltip_d_exports {
517
- export { BaseProvider, BaseRoot, Content, Root, Trigger };
517
+ export { BaseProvider, BaseRoot, Content, Root$1 as Root, Trigger$1 as Trigger };
518
518
  }
519
- declare function Root({
519
+ declare function Root$1({
520
520
  ...props
521
- }: React$2.ComponentProps<typeof Tooltip.Root>): react_jsx_runtime28.JSX.Element;
521
+ }: React$2.ComponentProps<typeof Tooltip.Root>): react_jsx_runtime0.JSX.Element;
522
522
  declare const BaseRoot: typeof Tooltip.Root;
523
523
  declare const BaseProvider: React$2.FC<Tooltip.Provider.Props>;
524
- declare function Trigger({
524
+ declare function Trigger$1({
525
525
  ...props
526
- }: React$2.ComponentProps<typeof Tooltip.Trigger>): react_jsx_runtime28.JSX.Element;
526
+ }: React$2.ComponentProps<typeof Tooltip.Trigger>): react_jsx_runtime0.JSX.Element;
527
527
  declare function Content({
528
528
  className,
529
529
  align,
@@ -535,26 +535,26 @@ declare function Content({
535
535
  align?: Tooltip.Positioner.Props["align"];
536
536
  side?: Tooltip.Positioner.Props["side"];
537
537
  sideOffset?: Tooltip.Positioner.Props["sideOffset"];
538
- }): react_jsx_runtime28.JSX.Element;
538
+ }): react_jsx_runtime0.JSX.Element;
539
539
  //#endregion
540
540
  //#region src/components/checkbox.d.ts
541
541
  declare const checkboxVariants: (props?: ({
542
542
  variant?: "default" | null | undefined;
543
543
  size?: "default" | "sm" | "lg" | null | undefined;
544
- } & class_variance_authority_types10.ClassProp) | undefined) => string;
544
+ } & class_variance_authority_types11.ClassProp) | undefined) => string;
545
545
  interface CheckboxProps extends React.ComponentProps<typeof Checkbox$1.Root>, VariantProps<typeof checkboxVariants> {}
546
546
  declare function Checkbox({
547
547
  className,
548
548
  ...props
549
- }: CheckboxProps): react_jsx_runtime28.JSX.Element;
549
+ }: CheckboxProps): react_jsx_runtime0.JSX.Element;
550
550
  declare namespace block_checkbox_group_d_exports {
551
- export { Description$1 as Description, Group$2 as Group, Header$1 as Header, Item$2 as Item, Title$1 as Title };
551
+ export { Description$1 as Description, Group$2 as Group, Header$1 as Header, Item$3 as Item, Title$1 as Title };
552
552
  }
553
553
  declare function Group$2({
554
554
  className,
555
555
  ...props
556
- }: React.ComponentProps<typeof CheckboxGroup>): react_jsx_runtime28.JSX.Element;
557
- declare function Item$2({
556
+ }: React.ComponentProps<typeof CheckboxGroup>): react_jsx_runtime0.JSX.Element;
557
+ declare function Item$3({
558
558
  className,
559
559
  invalid,
560
560
  children,
@@ -562,72 +562,73 @@ declare function Item$2({
562
562
  }: React.PropsWithChildren<React.ComponentProps<typeof Checkbox>> & {
563
563
  className?: string;
564
564
  invalid?: boolean;
565
- }): react_jsx_runtime28.JSX.Element;
565
+ }): react_jsx_runtime0.JSX.Element;
566
566
  declare function Header$1(props: React.PropsWithChildren<{
567
567
  className?: string;
568
- }>): react_jsx_runtime28.JSX.Element;
568
+ }>): react_jsx_runtime0.JSX.Element;
569
569
  declare function Title$1(props: React.PropsWithChildren<{
570
570
  className?: string;
571
- }>): react_jsx_runtime28.JSX.Element;
571
+ }>): react_jsx_runtime0.JSX.Element;
572
572
  declare function Description$1(props: React.PropsWithChildren<{
573
573
  className?: string;
574
- }>): react_jsx_runtime28.JSX.Element;
575
- //#endregion
576
- //#region src/components/radio-group.d.ts
577
- declare function Group({
574
+ }>): react_jsx_runtime0.JSX.Element;
575
+ declare namespace radio_group_d_exports {
576
+ export { Group$1 as Group, Item$1 as Item };
577
+ }
578
+ declare function Group$1({
578
579
  className,
579
580
  ...props
580
- }: React$2.ComponentProps<typeof RadioGroup>): react_jsx_runtime28.JSX.Element;
581
+ }: React$2.ComponentProps<typeof RadioGroup>): react_jsx_runtime0.JSX.Element;
581
582
  declare const radioVariants: (props?: ({
582
583
  variant?: "default" | null | undefined;
583
584
  size?: "default" | "sm" | "lg" | null | undefined;
584
- } & class_variance_authority_types10.ClassProp) | undefined) => string;
585
+ } & class_variance_authority_types11.ClassProp) | undefined) => string;
585
586
  interface RadioGroupItemProps extends React$2.ComponentProps<typeof Radio.Root>, VariantProps<typeof radioVariants> {}
586
- declare function Item({
587
+ declare function Item$1({
587
588
  className,
588
589
  variant,
589
590
  size,
590
591
  ...props
591
- }: RadioGroupItemProps): react_jsx_runtime28.JSX.Element;
592
+ }: RadioGroupItemProps): react_jsx_runtime0.JSX.Element;
592
593
  declare namespace block_radio_group_d_exports {
593
- export { Description, Group$1 as Group, Header, Item$1 as Item, Title };
594
+ export { Description, Group, Header, Item$2 as Item, Title };
594
595
  }
595
- declare function Group$1({
596
+ declare function Group({
596
597
  className,
597
598
  ...props
598
- }: React.ComponentProps<typeof RadioGroup>): react_jsx_runtime28.JSX.Element;
599
- declare function Item$1({
599
+ }: React.ComponentProps<typeof RadioGroup>): react_jsx_runtime0.JSX.Element;
600
+ declare function Item$2({
600
601
  className,
601
602
  invalid,
602
603
  children,
603
604
  ...rest
604
- }: React.PropsWithChildren<React.ComponentProps<typeof Item>> & {
605
+ }: React.PropsWithChildren<React.ComponentProps<typeof Item$1>> & {
605
606
  className?: string;
606
607
  invalid?: boolean;
607
- }): react_jsx_runtime28.JSX.Element;
608
+ }): react_jsx_runtime0.JSX.Element;
608
609
  declare function Header(props: React.PropsWithChildren<{
609
610
  className?: string;
610
- }>): react_jsx_runtime28.JSX.Element;
611
+ }>): react_jsx_runtime0.JSX.Element;
611
612
  declare function Title(props: React.PropsWithChildren<{
612
613
  className?: string;
613
- }>): react_jsx_runtime28.JSX.Element;
614
+ }>): react_jsx_runtime0.JSX.Element;
614
615
  declare function Description(props: React.PropsWithChildren<{
615
616
  className?: string;
616
- }>): react_jsx_runtime28.JSX.Element;
617
+ }>): react_jsx_runtime0.JSX.Element;
617
618
  declare namespace breadcrumbs_d_exports {
618
619
  export { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
619
620
  }
620
621
  declare function Breadcrumb({
621
622
  ...props
622
- }: React$2.ComponentProps<"nav">): react_jsx_runtime28.JSX.Element;
623
+ }: React$2.ComponentProps<"nav">): react_jsx_runtime0.JSX.Element;
623
624
  declare function BreadcrumbList({
624
625
  className,
625
626
  ...props
626
- }: React$2.ComponentProps<"ol">): react_jsx_runtime28.JSX.Element;
627
+ }: React$2.ComponentProps<"ol">): react_jsx_runtime0.JSX.Element;
627
628
  declare function BreadcrumbItem({
628
629
  className,
629
630
  ...props
630
- }: React$2.ComponentProps<"li">): react_jsx_runtime28.JSX.Element;
631
+ }: React$2.ComponentProps<"li">): react_jsx_runtime0.JSX.Element;
631
632
  declare function BreadcrumbLink({
632
633
  className,
633
634
  render,
@@ -636,12 +637,12 @@ declare function BreadcrumbLink({
636
637
  declare function BreadcrumbPage({
637
638
  className,
638
639
  ...props
639
- }: React$2.ComponentProps<"span">): react_jsx_runtime28.JSX.Element;
640
+ }: React$2.ComponentProps<"span">): react_jsx_runtime0.JSX.Element;
640
641
  declare function BreadcrumbSeparator({
641
642
  children,
642
643
  className,
643
644
  ...props
644
- }: React$2.ComponentProps<"li">): react_jsx_runtime28.JSX.Element;
645
+ }: React$2.ComponentProps<"li">): react_jsx_runtime0.JSX.Element;
645
646
  //#endregion
646
647
  //#region src/components/calendar.d.ts
647
648
  declare function Calendar({
@@ -652,19 +653,19 @@ declare function Calendar({
652
653
  formatters,
653
654
  components,
654
655
  ...props
655
- }: DayPickerProps): react_jsx_runtime28.JSX.Element;
656
+ }: DayPickerProps): react_jsx_runtime0.JSX.Element;
656
657
  //#endregion
657
658
  //#region src/components/label.d.ts
658
659
  declare function Label({
659
660
  className,
660
661
  ...props
661
- }: React.ComponentProps<"label">): react_jsx_runtime28.JSX.Element;
662
+ }: React.ComponentProps<"label">): react_jsx_runtime0.JSX.Element;
662
663
  //#endregion
663
664
  //#region src/components/input.d.ts
664
665
  declare const inputVariants: (props?: ({
665
666
  size?: "default" | "sm" | null | undefined;
666
667
  widthVariant?: "enforced" | "full" | null | undefined;
667
- } & class_variance_authority_types10.ClassProp) | undefined) => string;
668
+ } & class_variance_authority_types11.ClassProp) | undefined) => string;
668
669
  interface InputProps extends Omit<React$2.ComponentProps<"input">, "size">, VariantProps<typeof inputVariants> {
669
670
  invalid?: boolean;
670
671
  }
@@ -674,13 +675,13 @@ declare function Input({
674
675
  invalid,
675
676
  widthVariant,
676
677
  ...props
677
- }: InputProps): react_jsx_runtime28.JSX.Element;
678
+ }: InputProps): react_jsx_runtime0.JSX.Element;
678
679
  //#endregion
679
680
  //#region src/components/textarea.d.ts
680
681
  declare const textareaVariants: (props?: ({
681
682
  size?: "default" | "sm" | null | undefined;
682
683
  widthVariant?: "enforced" | "full" | null | undefined;
683
- } & class_variance_authority_types10.ClassProp) | undefined) => string;
684
+ } & class_variance_authority_types11.ClassProp) | undefined) => string;
684
685
  interface TextareaProps extends React$2.ComponentProps<"textarea">, VariantProps<typeof textareaVariants> {
685
686
  invalid?: boolean;
686
687
  }
@@ -690,7 +691,7 @@ declare function Textarea({
690
691
  invalid,
691
692
  widthVariant,
692
693
  ...props
693
- }: TextareaProps): react_jsx_runtime28.JSX.Element;
694
+ }: TextareaProps): react_jsx_runtime0.JSX.Element;
694
695
  //#endregion
695
696
  //#region src/components/avatar.d.ts
696
697
  type AvatarVariant = "squared" | "rounded";
@@ -703,11 +704,11 @@ interface AvatarProps {
703
704
  children?: React.ReactNode;
704
705
  hideTooltip?: boolean;
705
706
  }
706
- declare function Avatar(props: AvatarProps): react_jsx_runtime28.JSX.Element;
707
+ declare function Avatar(props: AvatarProps): react_jsx_runtime0.JSX.Element;
707
708
  type AvatarImplProps = Omit<AvatarProps, "hideTooltip"> & {
708
709
  avatarRootProps?: React.ComponentProps<typeof Avatar$1.Root>;
709
710
  };
710
- declare function AvatarImpl(props: AvatarImplProps): react_jsx_runtime28.JSX.Element;
711
+ declare function AvatarImpl(props: AvatarImplProps): react_jsx_runtime0.JSX.Element;
711
712
  //#endregion
712
713
  //#region src/components/avatar-group.d.ts
713
714
  interface AvatarGroupProps {
@@ -719,7 +720,7 @@ declare function AvatarGroup({
719
720
  max,
720
721
  avatars,
721
722
  className
722
- }: AvatarGroupProps): react_jsx_runtime28.JSX.Element;
723
+ }: AvatarGroupProps): react_jsx_runtime0.JSX.Element;
723
724
  //#endregion
724
725
  //#region src/components/spinner.d.ts
725
726
  interface SpinnerProps {
@@ -729,7 +730,7 @@ interface SpinnerProps {
729
730
  declare function Spinner({
730
731
  size,
731
732
  className
732
- }: SpinnerProps): react_jsx_runtime28.JSX.Element;
733
+ }: SpinnerProps): react_jsx_runtime0.JSX.Element;
733
734
  //#endregion
734
735
  //#region src/components/switch.d.ts
735
736
  declare function Switch({
@@ -738,7 +739,7 @@ declare function Switch({
738
739
  ...props
739
740
  }: React$2.ComponentProps<typeof Switch$1.Root> & {
740
741
  size?: "sm" | "lg";
741
- }): react_jsx_runtime28.JSX.Element;
742
+ }): react_jsx_runtime0.JSX.Element;
742
743
  //#endregion
743
744
  //#region src/components/separator.d.ts
744
745
  declare function Separator({
@@ -749,7 +750,7 @@ declare function Separator({
749
750
  }: React$2.ComponentProps<"div"> & {
750
751
  orientation: "horizontal" | "vertical";
751
752
  decorative?: boolean;
752
- }): react_jsx_runtime28.JSX.Element;
753
+ }): react_jsx_runtime0.JSX.Element;
753
754
  declare namespace Separator {
754
755
  var displayName: string;
755
756
  }
@@ -766,7 +767,7 @@ type DatePickerProps = {
766
767
  disabled?: boolean;
767
768
  };
768
769
  renderTriggerContent?: React$2.ReactNode;
769
- popoverRootProps?: Omit<React$2.ComponentProps<typeof Root$8>, "children">;
770
+ popoverRootProps?: Omit<React$2.ComponentProps<typeof Root$9>, "children">;
770
771
  popoverContentProps?: React$2.ComponentProps<typeof Content$5>;
771
772
  } & CalendarProps;
772
773
  declare function DatePicker({
@@ -779,7 +780,357 @@ declare function DatePicker({
779
780
  popoverRootProps,
780
781
  popoverContentProps,
781
782
  ...calendarProps
782
- }: DatePickerProps): react_jsx_runtime28.JSX.Element;
783
+ }: DatePickerProps): react_jsx_runtime0.JSX.Element;
784
+ //#endregion
785
+ //#region src/hooks/use-file-upload.d.ts
786
+ type FileMetadata = {
787
+ name: string;
788
+ size: number;
789
+ type: string;
790
+ url: string;
791
+ id: string;
792
+ };
793
+ type FileWithPreview = {
794
+ file: File | FileMetadata;
795
+ id: string;
796
+ preview?: string;
797
+ };
798
+ type FileUploadOptions = {
799
+ maxFiles?: number;
800
+ maxSize?: number;
801
+ accept?: string;
802
+ multiple?: boolean;
803
+ initialFiles?: FileMetadata[];
804
+ onFilesChange?: (files: FileWithPreview[]) => void;
805
+ onFilesAdded?: (addedFiles: FileWithPreview[]) => void;
806
+ };
807
+ type FileUploadState = {
808
+ files: FileWithPreview[];
809
+ isDragging: boolean;
810
+ errors: string[];
811
+ };
812
+ type FileUploadActions = {
813
+ addFiles: (files: FileList | File[]) => void;
814
+ removeFile: (id: string) => void;
815
+ clearFiles: () => void;
816
+ clearErrors: () => void;
817
+ handleDragEnter: (e: DragEvent<HTMLElement>) => void;
818
+ handleDragLeave: (e: DragEvent<HTMLElement>) => void;
819
+ handleDragOver: (e: DragEvent<HTMLElement>) => void;
820
+ handleDrop: (e: DragEvent<HTMLElement>) => void;
821
+ handleFileChange: (e: ChangeEvent<HTMLInputElement>) => void;
822
+ openFileDialog: () => void;
823
+ getInputProps: (props?: InputHTMLAttributes<HTMLInputElement>) => InputHTMLAttributes<HTMLInputElement> & {
824
+ ref: any;
825
+ };
826
+ };
827
+ declare const formatBytes: (bytes: number, decimals?: number) => string;
828
+ type UploadStatus = "idle" | "uploading" | "success" | "error";
829
+ type FileWithUploadStatus = FileWithPreview & {
830
+ progress: number;
831
+ status: UploadStatus;
832
+ error?: string;
833
+ uploadedUrl?: string;
834
+ };
835
+ type PresignedUrlResponse = {
836
+ url: string;
837
+ fullPath: string;
838
+ [key: string]: unknown;
839
+ };
840
+ type UploadConfig = {
841
+ /**
842
+ * Function to get a presigned URL for uploading
843
+ * Called before uploading each file
844
+ * @param params - Parameters including filename, contentType, size, and optional AbortSignal
845
+ * @param params.signal - Optional AbortSignal to cancel the request
846
+ */
847
+ getPresignedUrl: (params: {
848
+ filename: string;
849
+ contentType: string;
850
+ size: number;
851
+ signal?: AbortSignal;
852
+ }) => Promise<{
853
+ result?: PresignedUrlResponse | null;
854
+ error?: unknown;
855
+ }>;
856
+ /**
857
+ * Function to upload the file to the storage
858
+ * Receives the presigned URL and the file
859
+ * @param url - The presigned URL to upload to
860
+ * @param file - The file to upload
861
+ * @param presignedData - The full presigned URL response data
862
+ * @param onProgress - Optional callback for upload progress
863
+ * @param signal - Optional AbortSignal to cancel the upload
864
+ */
865
+ uploadFile: (url: string, file: File, presignedData: PresignedUrlResponse, onProgress?: (progress: number) => void, signal?: AbortSignal) => Promise<{
866
+ result?: {
867
+ url: string;
868
+ [key: string]: unknown;
869
+ };
870
+ error?: unknown;
871
+ }>;
872
+ /**
873
+ * Whether to auto-upload files when they are added
874
+ * @default true
875
+ */
876
+ autoUpload?: boolean;
877
+ /**
878
+ * Called when a single file upload completes
879
+ */
880
+ onUploadComplete?: (file: FileWithUploadStatus) => void;
881
+ /**
882
+ * Called when a single file upload fails
883
+ */
884
+ onUploadError?: (file: FileWithUploadStatus, error: unknown) => void;
885
+ /**
886
+ * Called when all files finish uploading
887
+ */
888
+ onAllUploadsComplete?: (files: FileWithUploadStatus[]) => void;
889
+ };
890
+ type FileUploadWithUploaderOptions = FileUploadOptions & {
891
+ upload?: UploadConfig;
892
+ };
893
+ type FileUploadWithUploaderState = Omit<FileUploadState, "files"> & {
894
+ files: FileWithUploadStatus[];
895
+ isUploading: boolean;
896
+ };
897
+ type FileUploadWithUploaderActions = Omit<FileUploadActions, "addFiles"> & {
898
+ addFiles: (files: FileList | File[]) => void;
899
+ uploadFiles: (files?: FileWithUploadStatus[]) => Promise<FileWithUploadStatus[]>;
900
+ retryUpload: (id: string) => Promise<void>;
901
+ cancelUpload: (id: string) => void;
902
+ };
903
+ declare const useFileUpload: (options?: FileUploadWithUploaderOptions) => [FileUploadWithUploaderState, FileUploadWithUploaderActions];
904
+ //#endregion
905
+ //#region src/components/file-upload.d.ts
906
+ interface FileUploadFile {
907
+ id: string;
908
+ file: File | {
909
+ name: string;
910
+ size: number;
911
+ type: string;
912
+ url?: string;
913
+ };
914
+ progress?: number;
915
+ status?: "idle" | "uploading" | "success" | "error";
916
+ preview?: string;
917
+ error?: string;
918
+ uploadedUrl?: string;
919
+ }
920
+ interface RootProps {
921
+ children: React$2.ReactNode;
922
+ /** Files from the useFileUpload hook */
923
+ files: FileUploadFile[] | FileWithUploadStatus[];
924
+ /** Add files action from the hook */
925
+ addFiles: (files: FileList | File[]) => void;
926
+ /** Remove file action from the hook */
927
+ removeFile: (id: string) => void;
928
+ /** Clear files action from the hook */
929
+ clearFiles: () => void;
930
+ /** Retry upload action from the hook */
931
+ retryUpload?: (id: string) => Promise<void>;
932
+ /** Open file dialog action from the hook */
933
+ openFileDialog: () => void;
934
+ /** Get input props from the hook */
935
+ getInputProps: FileUploadWithUploaderActions["getInputProps"];
936
+ /** Handle drag enter from the hook */
937
+ handleDragEnter: FileUploadWithUploaderActions["handleDragEnter"];
938
+ /** Handle drag leave from the hook */
939
+ handleDragLeave: FileUploadWithUploaderActions["handleDragLeave"];
940
+ /** Handle drag over from the hook */
941
+ handleDragOver: FileUploadWithUploaderActions["handleDragOver"];
942
+ /** Handle drop from the hook */
943
+ handleDrop: FileUploadWithUploaderActions["handleDrop"];
944
+ /** Whether dragging is active (from hook state) */
945
+ isDragActive?: boolean;
946
+ /** Whether upload is in progress (from hook state) */
947
+ isUploading?: boolean;
948
+ /** Accepted file types (e.g., "image/*,.pdf") */
949
+ accept?: string;
950
+ /** Allow multiple file selection */
951
+ multiple?: boolean;
952
+ /** Whether the upload is disabled */
953
+ disabled?: boolean;
954
+ className?: string;
955
+ }
956
+ declare function Root({
957
+ children,
958
+ files,
959
+ addFiles,
960
+ removeFile,
961
+ clearFiles,
962
+ retryUpload,
963
+ openFileDialog,
964
+ getInputProps,
965
+ handleDragEnter,
966
+ handleDragLeave,
967
+ handleDragOver,
968
+ handleDrop,
969
+ isDragActive,
970
+ isUploading,
971
+ accept,
972
+ multiple,
973
+ disabled,
974
+ className
975
+ }: RootProps): react_jsx_runtime0.JSX.Element;
976
+ declare const dropzoneVariants: (props?: ({
977
+ size?: "default" | "sm" | "lg" | null | undefined;
978
+ isDragActive?: boolean | null | undefined;
979
+ } & class_variance_authority_types11.ClassProp) | undefined) => string;
980
+ interface DropzoneProps extends Omit<React$2.ComponentProps<"div">, "children">, Omit<VariantProps<typeof dropzoneVariants>, "isDragActive"> {
981
+ children?: React$2.ReactNode;
982
+ /** Custom text for the dropzone */
983
+ dropzoneText?: string;
984
+ /** Custom text for the browse button */
985
+ browseText?: string;
986
+ /** Hide the default content */
987
+ hideDefaultContent?: boolean;
988
+ }
989
+ declare function Dropzone({
990
+ className,
991
+ size,
992
+ children,
993
+ dropzoneText,
994
+ browseText,
995
+ hideDefaultContent,
996
+ ...props
997
+ }: DropzoneProps): react_jsx_runtime0.JSX.Element;
998
+ interface TriggerProps extends React$2.ComponentProps<typeof Button> {
999
+ /** Text to show while uploading */
1000
+ uploadingText?: string;
1001
+ /** Show uploading state */
1002
+ showUploadingState?: boolean;
1003
+ }
1004
+ declare function Trigger({
1005
+ children,
1006
+ uploadingText,
1007
+ showUploadingState,
1008
+ ...props
1009
+ }: TriggerProps): react_jsx_runtime0.JSX.Element;
1010
+ interface ItemListProps extends Omit<React$2.ComponentProps<"div">, "children"> {
1011
+ children?: React$2.ReactNode | ((files: FileUploadFile[]) => React$2.ReactNode);
1012
+ }
1013
+ declare function ItemList({
1014
+ className,
1015
+ children,
1016
+ ...props
1017
+ }: ItemListProps): react_jsx_runtime0.JSX.Element | null;
1018
+ interface ItemProps extends React$2.ComponentProps<"div"> {
1019
+ file: FileUploadFile;
1020
+ /** Apply error styling based on file status */
1021
+ statusStyles?: boolean;
1022
+ }
1023
+ declare function Item({
1024
+ file,
1025
+ className,
1026
+ children,
1027
+ statusStyles,
1028
+ ...props
1029
+ }: ItemProps): react_jsx_runtime0.JSX.Element;
1030
+ interface ItemPreviewProps extends React$2.ComponentProps<"div"> {
1031
+ /** Fallback icon when no preview is available */
1032
+ fallback?: React$2.ReactNode;
1033
+ }
1034
+ declare function ItemPreview({
1035
+ className,
1036
+ fallback,
1037
+ ...props
1038
+ }: ItemPreviewProps): react_jsx_runtime0.JSX.Element;
1039
+ interface ItemNameProps extends React$2.ComponentProps<"span"> {}
1040
+ declare function ItemName({
1041
+ className,
1042
+ ...props
1043
+ }: ItemNameProps): react_jsx_runtime0.JSX.Element;
1044
+ interface ItemSizeProps extends React$2.ComponentProps<"span"> {}
1045
+ declare function ItemSize({
1046
+ className,
1047
+ ...props
1048
+ }: ItemSizeProps): react_jsx_runtime0.JSX.Element;
1049
+ interface ItemRemoveProps extends React$2.ComponentProps<typeof Button> {}
1050
+ declare function ItemRemove({
1051
+ className,
1052
+ children,
1053
+ ...props
1054
+ }: ItemRemoveProps): react_jsx_runtime0.JSX.Element;
1055
+ interface ItemProgressProps extends React$2.ComponentProps<"div"> {}
1056
+ declare function ItemProgress({
1057
+ className,
1058
+ ...props
1059
+ }: ItemProgressProps): react_jsx_runtime0.JSX.Element | null;
1060
+ interface ItemStatusProps extends React$2.ComponentProps<"div"> {
1061
+ /** Custom success icon */
1062
+ successIcon?: React$2.ReactNode;
1063
+ /** Custom uploading text/element */
1064
+ uploadingContent?: React$2.ReactNode;
1065
+ /** Custom error text/element */
1066
+ errorContent?: React$2.ReactNode;
1067
+ }
1068
+ declare function ItemStatus({
1069
+ className,
1070
+ successIcon,
1071
+ uploadingContent,
1072
+ errorContent,
1073
+ ...props
1074
+ }: ItemStatusProps): react_jsx_runtime0.JSX.Element | null;
1075
+ interface ItemErrorProps extends React$2.ComponentProps<"span"> {}
1076
+ declare function ItemError({
1077
+ className,
1078
+ ...props
1079
+ }: ItemErrorProps): react_jsx_runtime0.JSX.Element | null;
1080
+ interface ItemRetryProps extends React$2.ComponentProps<typeof Button> {}
1081
+ declare function ItemRetry({
1082
+ className,
1083
+ children,
1084
+ ...props
1085
+ }: ItemRetryProps): react_jsx_runtime0.JSX.Element | null;
1086
+ interface ClearButtonProps extends React$2.ComponentProps<typeof Button> {}
1087
+ declare function ClearButton({
1088
+ children,
1089
+ ...props
1090
+ }: ClearButtonProps): react_jsx_runtime0.JSX.Element | null;
1091
+ interface ImageGridProps extends Omit<React$2.ComponentProps<"div">, "children"> {
1092
+ children?: React$2.ReactNode | ((files: FileUploadFile[]) => React$2.ReactNode);
1093
+ }
1094
+ declare function ImageGrid({
1095
+ className,
1096
+ children,
1097
+ ...props
1098
+ }: ImageGridProps): react_jsx_runtime0.JSX.Element | null;
1099
+ interface ImageGridItemProps extends React$2.ComponentProps<"div"> {
1100
+ file: FileUploadFile;
1101
+ /** Show status overlays (uploading/error) */
1102
+ showStatusOverlay?: boolean;
1103
+ }
1104
+ declare function ImageGridItem({
1105
+ file,
1106
+ className,
1107
+ showStatusOverlay,
1108
+ ...props
1109
+ }: ImageGridItemProps): react_jsx_runtime0.JSX.Element;
1110
+ declare const FileUpload: {
1111
+ Root: typeof Root;
1112
+ Dropzone: typeof Dropzone;
1113
+ Trigger: typeof Trigger;
1114
+ ItemList: typeof ItemList;
1115
+ Item: typeof Item;
1116
+ ItemPreview: typeof ItemPreview;
1117
+ ItemName: typeof ItemName;
1118
+ ItemSize: typeof ItemSize;
1119
+ ItemRemove: typeof ItemRemove;
1120
+ ItemProgress: typeof ItemProgress;
1121
+ ItemStatus: typeof ItemStatus;
1122
+ ItemError: typeof ItemError;
1123
+ ItemRetry: typeof ItemRetry;
1124
+ ClearButton: typeof ClearButton;
1125
+ ImageGrid: typeof ImageGrid;
1126
+ ImageGridItem: typeof ImageGridItem;
1127
+ };
1128
+ //#endregion
1129
+ //#region src/icons/file-icon.d.ts
1130
+ declare function FileIcon(props: React.ComponentProps<"svg">): react_jsx_runtime0.JSX.Element;
1131
+ //#endregion
1132
+ //#region src/icons/upload-icon.d.ts
1133
+ declare function UploadIcon(props: React.ComponentProps<"svg">): react_jsx_runtime0.JSX.Element;
783
1134
  //#endregion
784
1135
  //#region src/hooks/use-intersection-observer.d.ts
785
1136
  interface UseIntersectionObserverOptions {
@@ -801,8 +1152,8 @@ type UseInfiniteScrollHookArgs = Pick<UseIntersectionObserverOptions, "rootMargi
801
1152
  //#region src/utils/classnames.d.ts
802
1153
  declare function cn(...inputs: ArgumentArray): string;
803
1154
  declare namespace index_d_exports {
804
- export { Avatar, AvatarGroup, AvatarImpl, block_checkbox_group_d_exports as BlockCheckboxGroup, block_radio_group_d_exports as BlockRadioGroup, breadcrumbs_d_exports as Breadcrumbs, Button, Calendar, Checkbox, combobox_d_exports as Combobox, DatePicker, dialog_d_exports as Dialog, Group, InferOption, InferOptions, Input, input_group_d_exports as InputGroup, Item, Label, LoadOptionsConfig, menu_d_exports as Menu, popover_d_exports as Popover, progress_d_exports as Progress, segmented_control_d_exports as SegmentedControl, select_d_exports as Select, Separator, Spinner, Switch, tabs_d_exports as Tabs, Textarea, TextareaProps, tooltip_d_exports as Tooltip, UseInfiniteScrollHookArgs, UseIntersectionObserverOptions, UseIntersectionObserverReturn, buttonVariants, cn, defineLoadOptions, useAsyncOptions, useIntersectionObserver };
1155
+ export { Avatar, AvatarGroup, AvatarImpl, block_checkbox_group_d_exports as BlockCheckboxGroup, block_radio_group_d_exports as BlockRadioGroup, breadcrumbs_d_exports as Breadcrumbs, Button, Calendar, Checkbox, ClearButtonProps, combobox_d_exports as Combobox, DatePicker, dialog_d_exports as Dialog, DropzoneProps, FileIcon, FileMetadata, FileUpload, FileUploadActions, FileUploadFile, FileUploadOptions, FileUploadState, FileUploadWithUploaderActions, FileUploadWithUploaderOptions, FileUploadWithUploaderState, FileWithPreview, FileWithUploadStatus, ImageGridItemProps, ImageGridProps, InferOption, InferOptions, Input, input_group_d_exports as InputGroup, ItemErrorProps, ItemListProps, ItemNameProps, ItemPreviewProps, ItemProgressProps, ItemProps, ItemRemoveProps, ItemRetryProps, ItemSizeProps, ItemStatusProps, Label, LoadOptionsConfig, menu_d_exports as Menu, popover_d_exports as Popover, PresignedUrlResponse, progress_d_exports as Progress, radio_group_d_exports as RadioGroup, RootProps, segmented_control_d_exports as SegmentedControl, select_d_exports as Select, Separator, Spinner, Switch, tabs_d_exports as Tabs, Textarea, TextareaProps, tooltip_d_exports as Tooltip, TriggerProps, UploadConfig, UploadIcon, UploadStatus, UseInfiniteScrollHookArgs, UseIntersectionObserverOptions, UseIntersectionObserverReturn, buttonVariants, cn, defineLoadOptions, formatBytes, useAsyncOptions, useFileUpload, useIntersectionObserver };
805
1156
  }
806
1157
  //#endregion
807
- export { Avatar, AvatarGroup, AvatarImpl, block_checkbox_group_d_exports as BlockCheckboxGroup, block_radio_group_d_exports as BlockRadioGroup, breadcrumbs_d_exports as Breadcrumbs, Button, Calendar, Checkbox, combobox_d_exports as Combobox, DatePicker, dialog_d_exports as Dialog, Group, InferOption, InferOptions, Input, input_group_d_exports as InputGroup, Item, Label, LoadOptionsConfig, menu_d_exports as Menu, popover_d_exports as Popover, progress_d_exports as Progress, segmented_control_d_exports as SegmentedControl, select_d_exports as Select, Separator, Spinner, Switch, tabs_d_exports as Tabs, Textarea, TextareaProps, tooltip_d_exports as Tooltip, UseInfiniteScrollHookArgs, UseIntersectionObserverOptions, UseIntersectionObserverReturn, buttonVariants, cn, defineLoadOptions, useAsyncOptions, useIntersectionObserver };
1158
+ export { Avatar, AvatarGroup, AvatarImpl, block_checkbox_group_d_exports as BlockCheckboxGroup, block_radio_group_d_exports as BlockRadioGroup, breadcrumbs_d_exports as Breadcrumbs, Button, Calendar, Checkbox, ClearButtonProps, combobox_d_exports as Combobox, DatePicker, dialog_d_exports as Dialog, DropzoneProps, FileIcon, FileMetadata, FileUpload, FileUploadActions, FileUploadFile, FileUploadOptions, FileUploadState, FileUploadWithUploaderActions, FileUploadWithUploaderOptions, FileUploadWithUploaderState, FileWithPreview, FileWithUploadStatus, ImageGridItemProps, ImageGridProps, InferOption, InferOptions, Input, input_group_d_exports as InputGroup, ItemErrorProps, ItemListProps, ItemNameProps, ItemPreviewProps, ItemProgressProps, ItemProps, ItemRemoveProps, ItemRetryProps, ItemSizeProps, ItemStatusProps, Label, LoadOptionsConfig, menu_d_exports as Menu, popover_d_exports as Popover, PresignedUrlResponse, progress_d_exports as Progress, radio_group_d_exports as RadioGroup, RootProps, segmented_control_d_exports as SegmentedControl, select_d_exports as Select, Separator, Spinner, Switch, tabs_d_exports as Tabs, Textarea, TextareaProps, tooltip_d_exports as Tooltip, TriggerProps, UploadConfig, UploadIcon, UploadStatus, UseInfiniteScrollHookArgs, UseIntersectionObserverOptions, UseIntersectionObserverReturn, buttonVariants, cn, defineLoadOptions, formatBytes, useAsyncOptions, useFileUpload, useIntersectionObserver };
808
1159
  //# sourceMappingURL=index.d.ts.map