@px-ui/core 4.0.0 → 4.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 +336 -371
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +936 -409
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as _base_ui_react0 from "@base-ui/react";
|
|
|
5
5
|
import { Collapsible, Dialog, Toast } from "@base-ui/react";
|
|
6
6
|
import { ArgumentArray } from "classnames";
|
|
7
7
|
import { VariantProps } from "class-variance-authority";
|
|
8
|
-
import * as
|
|
8
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
9
9
|
import { Popover } from "@base-ui/react/popover";
|
|
10
10
|
import { Combobox } from "@base-ui/react/combobox";
|
|
11
11
|
import * as _tanstack_react_query0 from "@tanstack/react-query";
|
|
@@ -30,74 +30,74 @@ export * from "input-otp";
|
|
|
30
30
|
|
|
31
31
|
//#region src/components/dialog.d.ts
|
|
32
32
|
declare namespace dialog_d_exports {
|
|
33
|
-
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$11 as Root, Title$3 as Title, Trigger$
|
|
33
|
+
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$11 as Root, Title$3 as Title, Trigger$7 as Trigger };
|
|
34
34
|
}
|
|
35
35
|
declare function Root$11({
|
|
36
36
|
...props
|
|
37
|
-
}: React$2.ComponentProps<typeof Dialog.Root>):
|
|
37
|
+
}: React$2.ComponentProps<typeof Dialog.Root>): react_jsx_runtime21.JSX.Element;
|
|
38
38
|
declare function Portal({
|
|
39
39
|
...props
|
|
40
|
-
}: React$2.ComponentProps<typeof Dialog.Portal>):
|
|
41
|
-
declare function Trigger$
|
|
40
|
+
}: React$2.ComponentProps<typeof Dialog.Portal>): react_jsx_runtime21.JSX.Element;
|
|
41
|
+
declare function Trigger$7({
|
|
42
42
|
...props
|
|
43
|
-
}: React$2.ComponentProps<typeof Dialog.Trigger>):
|
|
43
|
+
}: React$2.ComponentProps<typeof Dialog.Trigger>): react_jsx_runtime21.JSX.Element;
|
|
44
44
|
declare function Close$1({
|
|
45
45
|
...props
|
|
46
|
-
}: React$2.ComponentProps<typeof Dialog.Close>):
|
|
46
|
+
}: React$2.ComponentProps<typeof Dialog.Close>): react_jsx_runtime21.JSX.Element;
|
|
47
47
|
declare function Overlay({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: React$2.ComponentProps<typeof Dialog.Backdrop>):
|
|
50
|
+
}: React$2.ComponentProps<typeof Dialog.Backdrop>): react_jsx_runtime21.JSX.Element;
|
|
51
51
|
declare function Content$6({
|
|
52
52
|
className,
|
|
53
53
|
children,
|
|
54
54
|
...props
|
|
55
|
-
}: React$2.ComponentProps<typeof Dialog.Popup>):
|
|
55
|
+
}: React$2.ComponentProps<typeof Dialog.Popup>): react_jsx_runtime21.JSX.Element;
|
|
56
56
|
declare function Header$3({
|
|
57
57
|
className,
|
|
58
58
|
...props
|
|
59
|
-
}: React$2.ComponentProps<"div">):
|
|
59
|
+
}: React$2.ComponentProps<"div">): react_jsx_runtime21.JSX.Element;
|
|
60
60
|
declare function HeaderContent({
|
|
61
61
|
className,
|
|
62
62
|
children,
|
|
63
63
|
...props
|
|
64
|
-
}: React$2.ComponentProps<"div">):
|
|
64
|
+
}: React$2.ComponentProps<"div">): react_jsx_runtime21.JSX.Element;
|
|
65
65
|
declare function HeaderIcon({
|
|
66
66
|
className,
|
|
67
67
|
children,
|
|
68
68
|
...props
|
|
69
|
-
}: React$2.ComponentProps<"div">):
|
|
69
|
+
}: React$2.ComponentProps<"div">): react_jsx_runtime21.JSX.Element;
|
|
70
70
|
declare function Footer$1({
|
|
71
71
|
className,
|
|
72
72
|
...props
|
|
73
|
-
}: React$2.ComponentProps<"div">):
|
|
73
|
+
}: React$2.ComponentProps<"div">): react_jsx_runtime21.JSX.Element;
|
|
74
74
|
declare function Title$3({
|
|
75
75
|
className,
|
|
76
76
|
...props
|
|
77
|
-
}: React$2.ComponentProps<typeof Dialog.Title>):
|
|
77
|
+
}: React$2.ComponentProps<typeof Dialog.Title>): react_jsx_runtime21.JSX.Element;
|
|
78
78
|
declare function Description$3({
|
|
79
79
|
className,
|
|
80
80
|
...props
|
|
81
|
-
}: React$2.ComponentProps<typeof Dialog.Description>):
|
|
81
|
+
}: React$2.ComponentProps<typeof Dialog.Description>): react_jsx_runtime21.JSX.Element;
|
|
82
82
|
declare namespace popover_d_exports {
|
|
83
|
-
export { Close, CloseIconButton, Content$5 as Content, Description$2 as Description, Footer, Header$2 as Header, Root$10 as Root, Title$2 as Title, Trigger$
|
|
83
|
+
export { Close, CloseIconButton, Content$5 as Content, Description$2 as Description, Footer, Header$2 as Header, Root$10 as Root, Title$2 as Title, Trigger$6 as Trigger };
|
|
84
84
|
}
|
|
85
|
-
declare function Root$10(props: React.ComponentProps<typeof Popover.Root>):
|
|
86
|
-
declare function Trigger$
|
|
87
|
-
declare function Close(props: React.ComponentProps<typeof Popover.Close>):
|
|
88
|
-
declare function Positioner(props: React.ComponentProps<typeof Popover.Positioner>):
|
|
85
|
+
declare function Root$10(props: React.ComponentProps<typeof Popover.Root>): react_jsx_runtime21.JSX.Element;
|
|
86
|
+
declare function Trigger$6(props: React.ComponentProps<typeof Popover.Trigger>): react_jsx_runtime21.JSX.Element;
|
|
87
|
+
declare function Close(props: React.ComponentProps<typeof Popover.Close>): react_jsx_runtime21.JSX.Element;
|
|
88
|
+
declare function Positioner(props: React.ComponentProps<typeof Popover.Positioner>): react_jsx_runtime21.JSX.Element;
|
|
89
89
|
declare function Header$2({
|
|
90
90
|
className,
|
|
91
91
|
...props
|
|
92
|
-
}: React.ComponentProps<"div">):
|
|
92
|
+
}: React.ComponentProps<"div">): react_jsx_runtime21.JSX.Element;
|
|
93
93
|
declare function Title$2({
|
|
94
94
|
className,
|
|
95
95
|
...props
|
|
96
|
-
}: React.ComponentProps<typeof Popover.Title>):
|
|
96
|
+
}: React.ComponentProps<typeof Popover.Title>): react_jsx_runtime21.JSX.Element;
|
|
97
97
|
declare function Description$2({
|
|
98
98
|
className,
|
|
99
99
|
...props
|
|
100
|
-
}: React.ComponentProps<typeof Popover.Description>):
|
|
100
|
+
}: React.ComponentProps<typeof Popover.Description>): react_jsx_runtime21.JSX.Element;
|
|
101
101
|
declare function Content$5({
|
|
102
102
|
children,
|
|
103
103
|
className,
|
|
@@ -112,15 +112,15 @@ declare function Content$5({
|
|
|
112
112
|
children: React.ReactNode;
|
|
113
113
|
arrow?: boolean;
|
|
114
114
|
className?: string;
|
|
115
|
-
}):
|
|
115
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
116
116
|
declare function CloseIconButton({
|
|
117
117
|
className,
|
|
118
118
|
...props
|
|
119
|
-
}: React.ComponentProps<"button">):
|
|
119
|
+
}: React.ComponentProps<"button">): react_jsx_runtime21.JSX.Element;
|
|
120
120
|
declare function Footer({
|
|
121
121
|
className,
|
|
122
122
|
...props
|
|
123
|
-
}: React.ComponentProps<"div">):
|
|
123
|
+
}: React.ComponentProps<"div">): react_jsx_runtime21.JSX.Element;
|
|
124
124
|
//#endregion
|
|
125
125
|
//#region src/tw-styles/dropdown.d.ts
|
|
126
126
|
declare const triggerVariants: (props?: ({
|
|
@@ -139,7 +139,7 @@ declare function Button({
|
|
|
139
139
|
variant,
|
|
140
140
|
size,
|
|
141
141
|
...props
|
|
142
|
-
}: ButtonProps):
|
|
142
|
+
}: ButtonProps): react_jsx_runtime21.JSX.Element;
|
|
143
143
|
declare namespace input_group_d_exports {
|
|
144
144
|
export { Addon, Button$1 as Button, Input$1 as Input, Root$9 as Root, Text };
|
|
145
145
|
}
|
|
@@ -155,7 +155,7 @@ declare function Root$9({
|
|
|
155
155
|
...props
|
|
156
156
|
}: React$2.ComponentProps<"div"> & VariantProps<typeof inputGroupVariants> & {
|
|
157
157
|
disabled?: boolean;
|
|
158
|
-
}):
|
|
158
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
159
159
|
declare const inputGroupAddonVariants: (props?: ({
|
|
160
160
|
align?: "inline-start" | "inline-end" | null | undefined;
|
|
161
161
|
} & class_variance_authority_types12.ClassProp) | undefined) => string;
|
|
@@ -164,9 +164,9 @@ declare function Addon({
|
|
|
164
164
|
className,
|
|
165
165
|
align,
|
|
166
166
|
...props
|
|
167
|
-
}: AddonProps):
|
|
167
|
+
}: AddonProps): react_jsx_runtime21.JSX.Element;
|
|
168
168
|
declare const inputGroupButtonVariants: (props?: ({
|
|
169
|
-
size?: "sm" | "
|
|
169
|
+
size?: "sm" | "icon-sm" | "xs" | "icon-xs" | null | undefined;
|
|
170
170
|
} & class_variance_authority_types12.ClassProp) | undefined) => string;
|
|
171
171
|
declare function Button$1({
|
|
172
172
|
className,
|
|
@@ -174,18 +174,18 @@ declare function Button$1({
|
|
|
174
174
|
variant,
|
|
175
175
|
size,
|
|
176
176
|
...props
|
|
177
|
-
}: Omit<React$2.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>):
|
|
177
|
+
}: Omit<React$2.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): react_jsx_runtime21.JSX.Element;
|
|
178
178
|
declare function Text({
|
|
179
179
|
className,
|
|
180
180
|
...props
|
|
181
|
-
}: React$2.ComponentProps<"span">):
|
|
181
|
+
}: React$2.ComponentProps<"span">): react_jsx_runtime21.JSX.Element;
|
|
182
182
|
declare function Input$1({
|
|
183
183
|
className,
|
|
184
184
|
invalid,
|
|
185
185
|
...props
|
|
186
186
|
}: React$2.ComponentProps<"input"> & {
|
|
187
187
|
invalid?: boolean;
|
|
188
|
-
}):
|
|
188
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
189
189
|
//#endregion
|
|
190
190
|
//#region src/hooks/use-async-options.d.ts
|
|
191
191
|
type LoadOptionsData<TData$1> = {
|
|
@@ -247,9 +247,9 @@ declare function defineLoadOptions<TData$1 = any>(loadOptions: LoadOptionsConfig
|
|
|
247
247
|
type InferOption<T> = T extends LoadOptionsConfig<infer TData> ? TData : never;
|
|
248
248
|
type InferOptions<T> = T extends LoadOptionsConfig<infer TData> ? TData[] : never;
|
|
249
249
|
declare namespace combobox_d_exports {
|
|
250
|
-
export { BaseCombobox, Chip, ChipsTrigger, Content$4 as Content, Item$
|
|
250
|
+
export { BaseCombobox, Chip, ChipsTrigger, Content$4 as Content, Item$6 as Item, List$3 as List, LoadingIndicator, MultiItem$1 as MultiItem, Root$8 as Root, Search, SearchableTrigger, SearchableTriggerDropdownAddon, Trigger$5 as Trigger, Value$2 as Value, useComboboxContext };
|
|
251
251
|
}
|
|
252
|
-
declare const List$
|
|
252
|
+
declare const List$3: React$2.ForwardRefExoticComponent<_base_ui_react0.AutocompleteListProps & React$2.RefAttributes<HTMLDivElement>>;
|
|
253
253
|
type ComboboxContextValues = React$2.ComponentProps<typeof Combobox.Root<any, any>> & {
|
|
254
254
|
chipsTriggerRef: React$2.RefObject<HTMLDivElement | null>;
|
|
255
255
|
searchableTriggerRef: React$2.RefObject<HTMLDivElement | null>;
|
|
@@ -265,7 +265,7 @@ declare function Root$8<ItemValue, Multiple extends boolean | undefined = false>
|
|
|
265
265
|
...props
|
|
266
266
|
}: React$2.ComponentProps<typeof Combobox.Root<ItemValue, Multiple>> & Pick<ComboboxContextValues, "isLoading" | "isLoadingMore" | "isError" | "onLoadMore" | "hasMore" | "invalid"> & {
|
|
267
267
|
loadOptions?: LoadOptionsConfig<ItemValue>;
|
|
268
|
-
}):
|
|
268
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
269
269
|
declare function Content$4({
|
|
270
270
|
empty,
|
|
271
271
|
portalProps,
|
|
@@ -279,34 +279,34 @@ declare function Content$4({
|
|
|
279
279
|
positionerProps?: React$2.ComponentProps<typeof Combobox.Positioner>;
|
|
280
280
|
popupProps?: React$2.ComponentProps<typeof Combobox.Popup>;
|
|
281
281
|
widthVariant?: "trigger" | "fit" | "enforced";
|
|
282
|
-
}>):
|
|
283
|
-
declare function Item$
|
|
282
|
+
}>): react_jsx_runtime21.JSX.Element;
|
|
283
|
+
declare function Item$6({
|
|
284
284
|
className,
|
|
285
285
|
...props
|
|
286
|
-
}: React$2.ComponentProps<typeof Combobox.Item>):
|
|
286
|
+
}: React$2.ComponentProps<typeof Combobox.Item>): react_jsx_runtime21.JSX.Element;
|
|
287
287
|
declare function MultiItem$1({
|
|
288
288
|
className,
|
|
289
289
|
...props
|
|
290
|
-
}: React$2.ComponentProps<typeof Combobox.Item>):
|
|
290
|
+
}: React$2.ComponentProps<typeof Combobox.Item>): react_jsx_runtime21.JSX.Element;
|
|
291
291
|
declare function LoadingIndicator(props: {
|
|
292
292
|
className?: string;
|
|
293
|
-
}):
|
|
293
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
294
294
|
declare function SearchableTrigger(props: {
|
|
295
295
|
placeholder?: string;
|
|
296
296
|
size?: React$2.ComponentProps<typeof Root$9>["size"];
|
|
297
297
|
widthVariant?: React$2.ComponentProps<typeof Root$9>["widthVariant"];
|
|
298
298
|
className?: string;
|
|
299
299
|
addons?: React$2.ReactNode;
|
|
300
|
-
}):
|
|
301
|
-
declare function SearchableTriggerDropdownAddon():
|
|
302
|
-
interface TriggerProps$
|
|
303
|
-
declare function Trigger$
|
|
300
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
301
|
+
declare function SearchableTriggerDropdownAddon(): react_jsx_runtime21.JSX.Element;
|
|
302
|
+
interface TriggerProps$1 extends Combobox.Trigger.Props, VariantProps<typeof triggerVariants> {}
|
|
303
|
+
declare function Trigger$5({
|
|
304
304
|
size,
|
|
305
305
|
widthVariant,
|
|
306
306
|
children,
|
|
307
307
|
className,
|
|
308
308
|
...props
|
|
309
|
-
}: TriggerProps$
|
|
309
|
+
}: TriggerProps$1): react_jsx_runtime21.JSX.Element;
|
|
310
310
|
/**
|
|
311
311
|
* Renders the value, if `value` is a string or an object with `label` property in it,
|
|
312
312
|
* then renders that value else you should provide a render function to render your custom value
|
|
@@ -320,7 +320,7 @@ declare function Value$2({
|
|
|
320
320
|
placeholder?: string;
|
|
321
321
|
children?: React$2.ReactNode | ((selectedValue: any) => React$2.ReactNode);
|
|
322
322
|
className?: string;
|
|
323
|
-
}):
|
|
323
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
324
324
|
declare const chipsTriggerVariants: (props?: ({
|
|
325
325
|
size?: "default" | "sm" | null | undefined;
|
|
326
326
|
widthVariant?: "enforced" | "full" | null | undefined;
|
|
@@ -333,18 +333,18 @@ declare function ChipsTrigger({
|
|
|
333
333
|
children: React$2.ReactNode | ((selectedValue: any) => React$2.ReactNode);
|
|
334
334
|
placeholder?: string;
|
|
335
335
|
className?: string;
|
|
336
|
-
} & VariantProps<typeof chipsTriggerVariants>):
|
|
336
|
+
} & VariantProps<typeof chipsTriggerVariants>): react_jsx_runtime21.JSX.Element;
|
|
337
337
|
declare function Chip(props: React$2.ComponentProps<typeof Combobox.Chip> & {
|
|
338
338
|
key: React$2.Key;
|
|
339
|
-
}):
|
|
339
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
340
340
|
declare function Search({
|
|
341
341
|
placeholder,
|
|
342
342
|
...props
|
|
343
|
-
}: React$2.ComponentProps<typeof Combobox.Input>):
|
|
343
|
+
}: React$2.ComponentProps<typeof Combobox.Input>): react_jsx_runtime21.JSX.Element;
|
|
344
344
|
declare function useComboboxContext(): ComboboxContextValues;
|
|
345
345
|
declare const BaseCombobox: typeof Combobox;
|
|
346
346
|
declare namespace select_d_exports {
|
|
347
|
-
export { BaseSelect, Content$3 as Content, Item$
|
|
347
|
+
export { BaseSelect, Content$3 as Content, Item$5 as Item, List$2 as List, MultiItem, MultiSelectedValue, Root$7 as Root, SelectedValue, Trigger$4 as Trigger, TriggerProps, Value$1 as Value };
|
|
348
348
|
}
|
|
349
349
|
declare function Root$7<Value$3 = any, Multiple extends boolean | undefined = false>({
|
|
350
350
|
children,
|
|
@@ -352,7 +352,7 @@ declare function Root$7<Value$3 = any, Multiple extends boolean | undefined = fa
|
|
|
352
352
|
...props
|
|
353
353
|
}: React$2.ComponentPropsWithoutRef<typeof Select.Root<Value$3, Multiple>> & {
|
|
354
354
|
invalid?: boolean;
|
|
355
|
-
}):
|
|
355
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
356
356
|
declare function Content$3({
|
|
357
357
|
portalProps,
|
|
358
358
|
positionerProps,
|
|
@@ -364,29 +364,29 @@ declare function Content$3({
|
|
|
364
364
|
positionerProps?: React$2.ComponentProps<typeof Select.Positioner>;
|
|
365
365
|
popupProps?: React$2.ComponentProps<typeof Select.Popup>;
|
|
366
366
|
widthVariant?: "trigger" | "fit" | "enforced";
|
|
367
|
-
}>):
|
|
368
|
-
declare const List$
|
|
369
|
-
declare function Item$
|
|
367
|
+
}>): react_jsx_runtime21.JSX.Element;
|
|
368
|
+
declare const List$2: React$2.ForwardRefExoticComponent<_base_ui_react0.SelectListProps & React$2.RefAttributes<HTMLDivElement>>;
|
|
369
|
+
declare function Item$5({
|
|
370
370
|
className,
|
|
371
371
|
...props
|
|
372
|
-
}: React$2.ComponentProps<typeof Select.Item>):
|
|
372
|
+
}: React$2.ComponentProps<typeof Select.Item>): react_jsx_runtime21.JSX.Element;
|
|
373
373
|
declare function MultiItem({
|
|
374
374
|
className,
|
|
375
375
|
...props
|
|
376
|
-
}: React$2.ComponentProps<typeof Select.Item>):
|
|
377
|
-
interface TriggerProps
|
|
378
|
-
declare function Trigger$
|
|
376
|
+
}: React$2.ComponentProps<typeof Select.Item>): react_jsx_runtime21.JSX.Element;
|
|
377
|
+
interface TriggerProps extends Select.Trigger.Props, VariantProps<typeof triggerVariants> {}
|
|
378
|
+
declare function Trigger$4({
|
|
379
379
|
size,
|
|
380
380
|
widthVariant,
|
|
381
381
|
...props
|
|
382
|
-
}: TriggerProps
|
|
382
|
+
}: TriggerProps): react_jsx_runtime21.JSX.Element;
|
|
383
383
|
declare function MultiSelectedValue({
|
|
384
384
|
selectedValue,
|
|
385
385
|
maxItems
|
|
386
386
|
}: {
|
|
387
387
|
selectedValue: any;
|
|
388
388
|
maxItems: number;
|
|
389
|
-
}):
|
|
389
|
+
}): react_jsx_runtime21.JSX.Element | null;
|
|
390
390
|
/**
|
|
391
391
|
* Renders the value, if `value` is a string or an object with `label` property in it,
|
|
392
392
|
* then renders that value else you should provide a render function to render your custom value
|
|
@@ -398,20 +398,20 @@ declare function Value$1({
|
|
|
398
398
|
...props
|
|
399
399
|
}: Select.Value.Props & {
|
|
400
400
|
placeholder?: string;
|
|
401
|
-
}):
|
|
401
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
402
402
|
type SelectedValue<TValue> = TValue | null | undefined;
|
|
403
403
|
declare const BaseSelect: typeof Select;
|
|
404
404
|
declare namespace menu_d_exports {
|
|
405
|
-
export { BaseMenu, BaseTrigger, Content$2 as Content, DropdownIndicator, Group$3 as Group, GroupLabel, Item$
|
|
405
|
+
export { BaseMenu, BaseTrigger, Content$2 as Content, DropdownIndicator, Group$3 as Group, GroupLabel, Item$4 as Item, RadioGroup$1 as RadioGroup, RadioItem, Root$6 as Root, Separator$1 as Separator, Trigger$3 as Trigger };
|
|
406
406
|
}
|
|
407
407
|
declare const Root$6: typeof Menu.Root;
|
|
408
|
-
declare function Trigger$
|
|
408
|
+
declare function Trigger$3({
|
|
409
409
|
className,
|
|
410
410
|
children,
|
|
411
411
|
size,
|
|
412
412
|
widthVariant,
|
|
413
413
|
...props
|
|
414
|
-
}: React$2.ComponentProps<typeof Menu.Trigger> & VariantProps<typeof triggerVariants>):
|
|
414
|
+
}: React$2.ComponentProps<typeof Menu.Trigger> & VariantProps<typeof triggerVariants>): react_jsx_runtime21.JSX.Element;
|
|
415
415
|
declare function Content$2({
|
|
416
416
|
portalProps,
|
|
417
417
|
positionerProps,
|
|
@@ -423,27 +423,27 @@ declare function Content$2({
|
|
|
423
423
|
positionerProps?: React$2.ComponentProps<typeof Menu.Positioner>;
|
|
424
424
|
popupProps?: React$2.ComponentProps<typeof Menu.Popup>;
|
|
425
425
|
widthVariant?: "trigger" | "fit" | "enforced";
|
|
426
|
-
}>):
|
|
427
|
-
declare function DropdownIndicator():
|
|
428
|
-
declare function Item$
|
|
426
|
+
}>): react_jsx_runtime21.JSX.Element;
|
|
427
|
+
declare function DropdownIndicator(): react_jsx_runtime21.JSX.Element;
|
|
428
|
+
declare function Item$4({
|
|
429
429
|
className,
|
|
430
430
|
children,
|
|
431
431
|
...props
|
|
432
|
-
}: React$2.ComponentProps<typeof Menu.Item>):
|
|
432
|
+
}: React$2.ComponentProps<typeof Menu.Item>): react_jsx_runtime21.JSX.Element;
|
|
433
433
|
declare function Separator$1({
|
|
434
434
|
className,
|
|
435
435
|
...props
|
|
436
|
-
}: React$2.ComponentProps<typeof Menu.Separator>):
|
|
436
|
+
}: React$2.ComponentProps<typeof Menu.Separator>): react_jsx_runtime21.JSX.Element;
|
|
437
437
|
declare const Group$3: React$2.ForwardRefExoticComponent<_base_ui_react0.ContextMenuGroupProps & React$2.RefAttributes<Element>>;
|
|
438
438
|
declare function GroupLabel({
|
|
439
439
|
className,
|
|
440
440
|
...props
|
|
441
|
-
}: React$2.ComponentProps<typeof Menu.GroupLabel>):
|
|
441
|
+
}: React$2.ComponentProps<typeof Menu.GroupLabel>): react_jsx_runtime21.JSX.Element;
|
|
442
442
|
declare const RadioGroup$1: React$2.NamedExoticComponent<_base_ui_react0.ContextMenuRadioGroupProps & React$2.RefAttributes<Element>>;
|
|
443
443
|
declare function RadioItem({
|
|
444
444
|
className,
|
|
445
445
|
...props
|
|
446
|
-
}: React$2.ComponentProps<typeof Menu.RadioItem>):
|
|
446
|
+
}: React$2.ComponentProps<typeof Menu.RadioItem>): react_jsx_runtime21.JSX.Element;
|
|
447
447
|
declare const BaseTrigger: Menu.Trigger;
|
|
448
448
|
declare const BaseMenu: typeof Menu;
|
|
449
449
|
declare namespace progress_d_exports {
|
|
@@ -458,22 +458,22 @@ declare function Track({
|
|
|
458
458
|
size,
|
|
459
459
|
children,
|
|
460
460
|
...props
|
|
461
|
-
}: React$2.ComponentProps<typeof Progress.Track> & VariantProps<typeof progressTrackVariants>):
|
|
461
|
+
}: React$2.ComponentProps<typeof Progress.Track> & VariantProps<typeof progressTrackVariants>): react_jsx_runtime21.JSX.Element;
|
|
462
462
|
declare function Indicator({
|
|
463
463
|
className,
|
|
464
464
|
...props
|
|
465
|
-
}: React$2.ComponentProps<typeof Progress.Indicator>):
|
|
465
|
+
}: React$2.ComponentProps<typeof Progress.Indicator>): react_jsx_runtime21.JSX.Element;
|
|
466
466
|
declare function Label$1({
|
|
467
467
|
className,
|
|
468
468
|
...props
|
|
469
|
-
}: React$2.ComponentProps<typeof Progress.Label>):
|
|
469
|
+
}: React$2.ComponentProps<typeof Progress.Label>): react_jsx_runtime21.JSX.Element;
|
|
470
470
|
declare function Value({
|
|
471
471
|
className,
|
|
472
472
|
...props
|
|
473
|
-
}: React$2.ComponentProps<typeof Progress.Value>):
|
|
473
|
+
}: React$2.ComponentProps<typeof Progress.Value>): react_jsx_runtime21.JSX.Element;
|
|
474
474
|
declare const BaseProgress: typeof Progress;
|
|
475
475
|
declare namespace segmented_control_d_exports {
|
|
476
|
-
export { Item$
|
|
476
|
+
export { Item$3 as Item, Root$4 as Root };
|
|
477
477
|
}
|
|
478
478
|
declare const segmentedControlItemVariants: (props?: ({
|
|
479
479
|
variant?: "default" | null | undefined;
|
|
@@ -482,8 +482,8 @@ declare const segmentedControlItemVariants: (props?: ({
|
|
|
482
482
|
declare function Root$4({
|
|
483
483
|
className,
|
|
484
484
|
...props
|
|
485
|
-
}: React$2.ComponentProps<typeof RadioGroup>):
|
|
486
|
-
declare function Item$
|
|
485
|
+
}: React$2.ComponentProps<typeof RadioGroup>): react_jsx_runtime21.JSX.Element;
|
|
486
|
+
declare function Item$3({
|
|
487
487
|
children,
|
|
488
488
|
className,
|
|
489
489
|
variant,
|
|
@@ -491,9 +491,9 @@ declare function Item$4({
|
|
|
491
491
|
...props
|
|
492
492
|
}: React$2.ComponentProps<typeof Radio.Root> & VariantProps<typeof segmentedControlItemVariants> & {
|
|
493
493
|
children: React$2.ReactNode;
|
|
494
|
-
}):
|
|
494
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
495
495
|
declare namespace tabs_d_exports {
|
|
496
|
-
export { Content$1 as Content, List, Root$3 as Root, Trigger$
|
|
496
|
+
export { Content$1 as Content, List$1 as List, Root$3 as Root, Trigger$2 as Trigger };
|
|
497
497
|
}
|
|
498
498
|
type TabsVariant = "underline";
|
|
499
499
|
declare function Root$3({
|
|
@@ -502,31 +502,31 @@ declare function Root$3({
|
|
|
502
502
|
...props
|
|
503
503
|
}: React$2.ComponentProps<typeof Tabs.Root> & {
|
|
504
504
|
variant?: TabsVariant;
|
|
505
|
-
}):
|
|
506
|
-
declare function List({
|
|
505
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
506
|
+
declare function List$1({
|
|
507
507
|
className,
|
|
508
508
|
children,
|
|
509
509
|
...props
|
|
510
|
-
}: React$2.ComponentProps<typeof Tabs.List>):
|
|
511
|
-
declare function Trigger$
|
|
510
|
+
}: React$2.ComponentProps<typeof Tabs.List>): react_jsx_runtime21.JSX.Element;
|
|
511
|
+
declare function Trigger$2({
|
|
512
512
|
className,
|
|
513
513
|
...props
|
|
514
|
-
}: React$2.ComponentProps<typeof Tabs.Tab>):
|
|
514
|
+
}: React$2.ComponentProps<typeof Tabs.Tab>): react_jsx_runtime21.JSX.Element;
|
|
515
515
|
declare function Content$1({
|
|
516
516
|
className,
|
|
517
517
|
...props
|
|
518
|
-
}: React$2.ComponentProps<typeof Tabs.Panel>):
|
|
518
|
+
}: React$2.ComponentProps<typeof Tabs.Panel>): react_jsx_runtime21.JSX.Element;
|
|
519
519
|
declare namespace tooltip_d_exports {
|
|
520
|
-
export { BaseProvider, BaseRoot, Content, Root$2 as Root, Trigger$
|
|
520
|
+
export { BaseProvider, BaseRoot, Content, Root$2 as Root, Trigger$1 as Trigger };
|
|
521
521
|
}
|
|
522
522
|
declare function Root$2({
|
|
523
523
|
...props
|
|
524
|
-
}: React$2.ComponentProps<typeof Tooltip.Root>):
|
|
524
|
+
}: React$2.ComponentProps<typeof Tooltip.Root>): react_jsx_runtime21.JSX.Element;
|
|
525
525
|
declare const BaseRoot: typeof Tooltip.Root;
|
|
526
526
|
declare const BaseProvider: React$2.FC<_base_ui_react0.TooltipProviderProps>;
|
|
527
|
-
declare function Trigger$
|
|
527
|
+
declare function Trigger$1({
|
|
528
528
|
...props
|
|
529
|
-
}: React$2.ComponentProps<typeof Tooltip.Trigger>):
|
|
529
|
+
}: React$2.ComponentProps<typeof Tooltip.Trigger>): react_jsx_runtime21.JSX.Element;
|
|
530
530
|
declare function Content({
|
|
531
531
|
className,
|
|
532
532
|
align,
|
|
@@ -538,7 +538,7 @@ declare function Content({
|
|
|
538
538
|
align?: Tooltip.Positioner.Props["align"];
|
|
539
539
|
side?: Tooltip.Positioner.Props["side"];
|
|
540
540
|
sideOffset?: Tooltip.Positioner.Props["sideOffset"];
|
|
541
|
-
}):
|
|
541
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
542
542
|
//#endregion
|
|
543
543
|
//#region src/components/checkbox.d.ts
|
|
544
544
|
declare const checkboxVariants: (props?: ({
|
|
@@ -549,15 +549,15 @@ interface CheckboxProps extends React.ComponentProps<typeof Checkbox$1.Root>, Va
|
|
|
549
549
|
declare function Checkbox({
|
|
550
550
|
className,
|
|
551
551
|
...props
|
|
552
|
-
}: CheckboxProps):
|
|
552
|
+
}: CheckboxProps): react_jsx_runtime21.JSX.Element;
|
|
553
553
|
declare namespace block_checkbox_group_d_exports {
|
|
554
|
-
export { Description$1 as Description, Group$2 as Group, Header$1 as Header, Item$
|
|
554
|
+
export { Description$1 as Description, Group$2 as Group, Header$1 as Header, Item$2 as Item, Title$1 as Title };
|
|
555
555
|
}
|
|
556
556
|
declare function Group$2({
|
|
557
557
|
className,
|
|
558
558
|
...props
|
|
559
|
-
}: React.ComponentProps<typeof CheckboxGroup>):
|
|
560
|
-
declare function Item$
|
|
559
|
+
}: React.ComponentProps<typeof CheckboxGroup>): react_jsx_runtime21.JSX.Element;
|
|
560
|
+
declare function Item$2({
|
|
561
561
|
className,
|
|
562
562
|
invalid,
|
|
563
563
|
children,
|
|
@@ -565,73 +565,73 @@ declare function Item$3({
|
|
|
565
565
|
}: React.PropsWithChildren<React.ComponentProps<typeof Checkbox>> & {
|
|
566
566
|
className?: string;
|
|
567
567
|
invalid?: boolean;
|
|
568
|
-
}):
|
|
568
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
569
569
|
declare function Header$1(props: React.PropsWithChildren<{
|
|
570
570
|
className?: string;
|
|
571
|
-
}>):
|
|
571
|
+
}>): react_jsx_runtime21.JSX.Element;
|
|
572
572
|
declare function Title$1(props: React.PropsWithChildren<{
|
|
573
573
|
className?: string;
|
|
574
|
-
}>):
|
|
574
|
+
}>): react_jsx_runtime21.JSX.Element;
|
|
575
575
|
declare function Description$1(props: React.PropsWithChildren<{
|
|
576
576
|
className?: string;
|
|
577
|
-
}>):
|
|
577
|
+
}>): react_jsx_runtime21.JSX.Element;
|
|
578
578
|
declare namespace radio_group_d_exports {
|
|
579
|
-
export { Group$1 as Group, Item
|
|
579
|
+
export { Group$1 as Group, Item };
|
|
580
580
|
}
|
|
581
581
|
declare function Group$1({
|
|
582
582
|
className,
|
|
583
583
|
...props
|
|
584
|
-
}: React$2.ComponentProps<typeof RadioGroup>):
|
|
584
|
+
}: React$2.ComponentProps<typeof RadioGroup>): react_jsx_runtime21.JSX.Element;
|
|
585
585
|
declare const radioVariants: (props?: ({
|
|
586
586
|
variant?: "default" | null | undefined;
|
|
587
587
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
588
588
|
} & class_variance_authority_types12.ClassProp) | undefined) => string;
|
|
589
589
|
interface RadioGroupItemProps extends React$2.ComponentProps<typeof Radio.Root>, VariantProps<typeof radioVariants> {}
|
|
590
|
-
declare function Item
|
|
590
|
+
declare function Item({
|
|
591
591
|
className,
|
|
592
592
|
variant,
|
|
593
593
|
size,
|
|
594
594
|
...props
|
|
595
|
-
}: RadioGroupItemProps):
|
|
595
|
+
}: RadioGroupItemProps): react_jsx_runtime21.JSX.Element;
|
|
596
596
|
declare namespace block_radio_group_d_exports {
|
|
597
|
-
export { Description, Group, Header, Item$
|
|
597
|
+
export { Description, Group, Header, Item$1 as Item, Title };
|
|
598
598
|
}
|
|
599
599
|
declare function Group({
|
|
600
600
|
className,
|
|
601
601
|
...props
|
|
602
|
-
}: React.ComponentProps<typeof RadioGroup>):
|
|
603
|
-
declare function Item$
|
|
602
|
+
}: React.ComponentProps<typeof RadioGroup>): react_jsx_runtime21.JSX.Element;
|
|
603
|
+
declare function Item$1({
|
|
604
604
|
className,
|
|
605
605
|
invalid,
|
|
606
606
|
children,
|
|
607
607
|
...rest
|
|
608
|
-
}: React.PropsWithChildren<React.ComponentProps<typeof Item
|
|
608
|
+
}: React.PropsWithChildren<React.ComponentProps<typeof Item>> & {
|
|
609
609
|
className?: string;
|
|
610
610
|
invalid?: boolean;
|
|
611
|
-
}):
|
|
611
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
612
612
|
declare function Header(props: React.PropsWithChildren<{
|
|
613
613
|
className?: string;
|
|
614
|
-
}>):
|
|
614
|
+
}>): react_jsx_runtime21.JSX.Element;
|
|
615
615
|
declare function Title(props: React.PropsWithChildren<{
|
|
616
616
|
className?: string;
|
|
617
|
-
}>):
|
|
617
|
+
}>): react_jsx_runtime21.JSX.Element;
|
|
618
618
|
declare function Description(props: React.PropsWithChildren<{
|
|
619
619
|
className?: string;
|
|
620
|
-
}>):
|
|
620
|
+
}>): react_jsx_runtime21.JSX.Element;
|
|
621
621
|
declare namespace breadcrumbs_d_exports {
|
|
622
622
|
export { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
|
623
623
|
}
|
|
624
624
|
declare function Breadcrumb({
|
|
625
625
|
...props
|
|
626
|
-
}: React$2.ComponentProps<"nav">):
|
|
626
|
+
}: React$2.ComponentProps<"nav">): react_jsx_runtime21.JSX.Element;
|
|
627
627
|
declare function BreadcrumbList({
|
|
628
628
|
className,
|
|
629
629
|
...props
|
|
630
|
-
}: React$2.ComponentProps<"ol">):
|
|
630
|
+
}: React$2.ComponentProps<"ol">): react_jsx_runtime21.JSX.Element;
|
|
631
631
|
declare function BreadcrumbItem({
|
|
632
632
|
className,
|
|
633
633
|
...props
|
|
634
|
-
}: React$2.ComponentProps<"li">):
|
|
634
|
+
}: React$2.ComponentProps<"li">): react_jsx_runtime21.JSX.Element;
|
|
635
635
|
declare function BreadcrumbLink({
|
|
636
636
|
className,
|
|
637
637
|
render,
|
|
@@ -640,25 +640,25 @@ declare function BreadcrumbLink({
|
|
|
640
640
|
declare function BreadcrumbPage({
|
|
641
641
|
className,
|
|
642
642
|
...props
|
|
643
|
-
}: React$2.ComponentProps<"span">):
|
|
643
|
+
}: React$2.ComponentProps<"span">): react_jsx_runtime21.JSX.Element;
|
|
644
644
|
declare function BreadcrumbSeparator({
|
|
645
645
|
children,
|
|
646
646
|
className,
|
|
647
647
|
...props
|
|
648
|
-
}: React$2.ComponentProps<"li">):
|
|
648
|
+
}: React$2.ComponentProps<"li">): react_jsx_runtime21.JSX.Element;
|
|
649
649
|
declare namespace collapsible_d_exports {
|
|
650
|
-
export { Panel, Root$1 as Root, ToggleIcon, Trigger
|
|
650
|
+
export { Panel, Root$1 as Root, ToggleIcon, Trigger };
|
|
651
651
|
}
|
|
652
652
|
declare function Root$1({
|
|
653
653
|
className,
|
|
654
654
|
...props
|
|
655
|
-
}: React$2.ComponentProps<typeof Collapsible.Root>):
|
|
656
|
-
declare function Trigger
|
|
655
|
+
}: React$2.ComponentProps<typeof Collapsible.Root>): react_jsx_runtime21.JSX.Element;
|
|
656
|
+
declare function Trigger(props: React$2.ComponentProps<typeof Collapsible.Trigger>): react_jsx_runtime21.JSX.Element;
|
|
657
657
|
declare function Panel({
|
|
658
658
|
className,
|
|
659
659
|
...props
|
|
660
|
-
}: React$2.ComponentProps<typeof Collapsible.Panel>):
|
|
661
|
-
declare function ToggleIcon():
|
|
660
|
+
}: React$2.ComponentProps<typeof Collapsible.Panel>): react_jsx_runtime21.JSX.Element;
|
|
661
|
+
declare function ToggleIcon(): react_jsx_runtime21.JSX.Element;
|
|
662
662
|
//#endregion
|
|
663
663
|
//#region src/components/calendar.d.ts
|
|
664
664
|
declare function Calendar({
|
|
@@ -669,10 +669,10 @@ declare function Calendar({
|
|
|
669
669
|
formatters,
|
|
670
670
|
components,
|
|
671
671
|
...props
|
|
672
|
-
}: DayPickerProps):
|
|
672
|
+
}: DayPickerProps): react_jsx_runtime21.JSX.Element;
|
|
673
673
|
//#endregion
|
|
674
674
|
//#region src/providers/px-ui-provider.d.ts
|
|
675
|
-
declare function PXUIProvider(props: React.PropsWithChildren):
|
|
675
|
+
declare function PXUIProvider(props: React.PropsWithChildren): react_jsx_runtime21.JSX.Element;
|
|
676
676
|
//#endregion
|
|
677
677
|
//#region src/components/toast.d.ts
|
|
678
678
|
declare const toast: _base_ui_react0.ToastManager;
|
|
@@ -682,7 +682,7 @@ declare const anchoredToast: _base_ui_react0.ToastManager;
|
|
|
682
682
|
declare function Label({
|
|
683
683
|
className,
|
|
684
684
|
...props
|
|
685
|
-
}: React.ComponentProps<"label">):
|
|
685
|
+
}: React.ComponentProps<"label">): react_jsx_runtime21.JSX.Element;
|
|
686
686
|
//#endregion
|
|
687
687
|
//#region src/components/input.d.ts
|
|
688
688
|
declare const inputVariants: (props?: ({
|
|
@@ -698,7 +698,7 @@ declare function Input({
|
|
|
698
698
|
invalid,
|
|
699
699
|
widthVariant,
|
|
700
700
|
...props
|
|
701
|
-
}: InputProps):
|
|
701
|
+
}: InputProps): react_jsx_runtime21.JSX.Element;
|
|
702
702
|
//#endregion
|
|
703
703
|
//#region src/components/textarea.d.ts
|
|
704
704
|
declare const textareaVariants: (props?: ({
|
|
@@ -714,7 +714,7 @@ declare function Textarea({
|
|
|
714
714
|
invalid,
|
|
715
715
|
widthVariant,
|
|
716
716
|
...props
|
|
717
|
-
}: TextareaProps):
|
|
717
|
+
}: TextareaProps): react_jsx_runtime21.JSX.Element;
|
|
718
718
|
//#endregion
|
|
719
719
|
//#region src/components/avatar.d.ts
|
|
720
720
|
type AvatarVariant = "squared" | "rounded";
|
|
@@ -727,11 +727,11 @@ interface AvatarProps {
|
|
|
727
727
|
children?: React.ReactNode;
|
|
728
728
|
hideTooltip?: boolean;
|
|
729
729
|
}
|
|
730
|
-
declare function Avatar(props: AvatarProps):
|
|
730
|
+
declare function Avatar(props: AvatarProps): react_jsx_runtime21.JSX.Element;
|
|
731
731
|
type AvatarImplProps = Omit<AvatarProps, "hideTooltip"> & {
|
|
732
732
|
avatarRootProps?: React.ComponentProps<typeof Avatar$1.Root>;
|
|
733
733
|
};
|
|
734
|
-
declare function AvatarImpl(props: AvatarImplProps):
|
|
734
|
+
declare function AvatarImpl(props: AvatarImplProps): react_jsx_runtime21.JSX.Element;
|
|
735
735
|
//#endregion
|
|
736
736
|
//#region src/components/avatar-group.d.ts
|
|
737
737
|
interface AvatarGroupProps {
|
|
@@ -743,7 +743,7 @@ declare function AvatarGroup({
|
|
|
743
743
|
max,
|
|
744
744
|
avatars,
|
|
745
745
|
className
|
|
746
|
-
}: AvatarGroupProps):
|
|
746
|
+
}: AvatarGroupProps): react_jsx_runtime21.JSX.Element;
|
|
747
747
|
//#endregion
|
|
748
748
|
//#region src/components/spinner.d.ts
|
|
749
749
|
interface SpinnerProps {
|
|
@@ -753,7 +753,7 @@ interface SpinnerProps {
|
|
|
753
753
|
declare function Spinner({
|
|
754
754
|
size,
|
|
755
755
|
className
|
|
756
|
-
}: SpinnerProps):
|
|
756
|
+
}: SpinnerProps): react_jsx_runtime21.JSX.Element;
|
|
757
757
|
//#endregion
|
|
758
758
|
//#region src/components/switch.d.ts
|
|
759
759
|
declare function Switch({
|
|
@@ -762,7 +762,7 @@ declare function Switch({
|
|
|
762
762
|
...props
|
|
763
763
|
}: React$2.ComponentProps<typeof Switch$1.Root> & {
|
|
764
764
|
size?: "sm" | "lg" | "default";
|
|
765
|
-
}):
|
|
765
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
766
766
|
//#endregion
|
|
767
767
|
//#region src/components/separator.d.ts
|
|
768
768
|
declare function Separator({
|
|
@@ -773,7 +773,7 @@ declare function Separator({
|
|
|
773
773
|
}: React$2.ComponentProps<"div"> & {
|
|
774
774
|
orientation: "horizontal" | "vertical";
|
|
775
775
|
decorative?: boolean;
|
|
776
|
-
}):
|
|
776
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
777
777
|
declare namespace Separator {
|
|
778
778
|
var displayName: string;
|
|
779
779
|
}
|
|
@@ -803,7 +803,7 @@ declare function DatePicker({
|
|
|
803
803
|
popoverRootProps,
|
|
804
804
|
popoverContentProps,
|
|
805
805
|
...calendarProps
|
|
806
|
-
}: DatePickerProps):
|
|
806
|
+
}: DatePickerProps): react_jsx_runtime21.JSX.Element;
|
|
807
807
|
//#endregion
|
|
808
808
|
//#region src/hooks/use-file-upload.d.ts
|
|
809
809
|
type FileMetadata = {
|
|
@@ -813,59 +813,45 @@ type FileMetadata = {
|
|
|
813
813
|
url: string;
|
|
814
814
|
id: string;
|
|
815
815
|
};
|
|
816
|
-
type
|
|
816
|
+
type UploadStatus = "idle" | "uploading" | "complete" | "error";
|
|
817
|
+
type FileUploadItem = {
|
|
817
818
|
file: File | FileMetadata;
|
|
818
819
|
id: string;
|
|
819
820
|
preview?: string;
|
|
820
|
-
};
|
|
821
|
-
type FileUploadOptions = {
|
|
822
|
-
maxFiles?: number;
|
|
823
|
-
maxSize?: number;
|
|
824
|
-
accept?: string;
|
|
825
|
-
multiple?: boolean;
|
|
826
|
-
initialFiles?: FileMetadata[];
|
|
827
|
-
onFilesChange?: (files: FileWithPreview[]) => void;
|
|
828
|
-
onFilesAdded?: (addedFiles: FileWithPreview[]) => void;
|
|
829
|
-
};
|
|
830
|
-
type FileUploadState = {
|
|
831
|
-
files: FileWithPreview[];
|
|
832
|
-
isDragging: boolean;
|
|
833
|
-
errors: string[];
|
|
834
|
-
};
|
|
835
|
-
type FileUploadActions = {
|
|
836
|
-
addFiles: (files: FileList | File[]) => void;
|
|
837
|
-
removeFile: (id: string) => void;
|
|
838
|
-
clearFiles: () => void;
|
|
839
|
-
clearErrors: () => void;
|
|
840
|
-
handleDragEnter: (e: DragEvent<HTMLElement>) => void;
|
|
841
|
-
handleDragLeave: (e: DragEvent<HTMLElement>) => void;
|
|
842
|
-
handleDragOver: (e: DragEvent<HTMLElement>) => void;
|
|
843
|
-
handleDrop: (e: DragEvent<HTMLElement>) => void;
|
|
844
|
-
handleFileChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
845
|
-
openFileDialog: () => void;
|
|
846
|
-
getInputProps: (props?: InputHTMLAttributes<HTMLInputElement>) => InputHTMLAttributes<HTMLInputElement> & {
|
|
847
|
-
ref: any;
|
|
848
|
-
};
|
|
849
|
-
};
|
|
850
|
-
declare const formatBytes: (bytes: number, decimals?: number) => string;
|
|
851
|
-
type UploadStatus = "idle" | "uploading" | "success" | "error";
|
|
852
|
-
type FileWithUploadStatus = FileWithPreview & {
|
|
853
821
|
progress: number;
|
|
854
822
|
status: UploadStatus;
|
|
855
823
|
error?: string;
|
|
856
824
|
uploadedUrl?: string;
|
|
857
825
|
};
|
|
858
826
|
type PresignedUrlResponse = {
|
|
827
|
+
/** The S3 bucket URL to POST to */
|
|
859
828
|
url: string;
|
|
860
|
-
|
|
829
|
+
/** The full accessible path after upload (may include signed query params) */
|
|
830
|
+
full_path: string;
|
|
831
|
+
/** The S3 object key (e.g., "uuid/filename.pdf") */
|
|
832
|
+
key?: string;
|
|
833
|
+
/** Access control level */
|
|
834
|
+
acl?: string;
|
|
835
|
+
/** Expected response status from S3 */
|
|
836
|
+
success_action_status?: string;
|
|
837
|
+
/** Content-Type for the upload */
|
|
838
|
+
"Content-Type"?: string;
|
|
839
|
+
/** Base64-encoded policy document */
|
|
840
|
+
policy?: string;
|
|
841
|
+
/** AWS credential string */
|
|
842
|
+
"x-amz-credential"?: string;
|
|
843
|
+
/** AWS signing algorithm */
|
|
844
|
+
"x-amz-algorithm"?: string;
|
|
845
|
+
/** AWS request date */
|
|
846
|
+
"x-amz-date"?: string;
|
|
847
|
+
/** AWS request signature */
|
|
848
|
+
"x-amz-signature"?: string;
|
|
849
|
+
/** Additional fields */
|
|
861
850
|
[key: string]: unknown;
|
|
862
851
|
};
|
|
863
852
|
type UploadConfig = {
|
|
864
853
|
/**
|
|
865
854
|
* Function to get a presigned URL for uploading
|
|
866
|
-
* Called before uploading each file
|
|
867
|
-
* @param params - Parameters including filename, contentType, size, and optional AbortSignal
|
|
868
|
-
* @param params.signal - Optional AbortSignal to cancel the request
|
|
869
855
|
*/
|
|
870
856
|
getPresignedUrl: (params: {
|
|
871
857
|
filename: string;
|
|
@@ -878,12 +864,6 @@ type UploadConfig = {
|
|
|
878
864
|
}>;
|
|
879
865
|
/**
|
|
880
866
|
* Function to upload the file to the storage
|
|
881
|
-
* Receives the presigned URL and the file
|
|
882
|
-
* @param url - The presigned URL to upload to
|
|
883
|
-
* @param file - The file to upload
|
|
884
|
-
* @param presignedData - The full presigned URL response data
|
|
885
|
-
* @param onProgress - Optional callback for upload progress
|
|
886
|
-
* @param signal - Optional AbortSignal to cancel the upload
|
|
887
867
|
*/
|
|
888
868
|
uploadFile: (url: string, file: File, presignedData: PresignedUrlResponse, onProgress?: (progress: number) => void, signal?: AbortSignal) => Promise<{
|
|
889
869
|
result?: {
|
|
@@ -900,74 +880,63 @@ type UploadConfig = {
|
|
|
900
880
|
/**
|
|
901
881
|
* Called when a single file upload completes
|
|
902
882
|
*/
|
|
903
|
-
onUploadComplete?: (file:
|
|
883
|
+
onUploadComplete?: (file: FileUploadItem) => void;
|
|
904
884
|
/**
|
|
905
885
|
* Called when a single file upload fails
|
|
906
886
|
*/
|
|
907
|
-
onUploadError?: (file:
|
|
887
|
+
onUploadError?: (file: FileUploadItem, error: unknown) => void;
|
|
908
888
|
/**
|
|
909
889
|
* Called when all files finish uploading
|
|
910
890
|
*/
|
|
911
|
-
onAllUploadsComplete?: (files:
|
|
891
|
+
onAllUploadsComplete?: (files: FileUploadItem[]) => void;
|
|
912
892
|
};
|
|
913
|
-
type
|
|
893
|
+
type UseFileUploadOptions = {
|
|
894
|
+
maxFiles?: number;
|
|
895
|
+
maxSize?: number;
|
|
896
|
+
accept?: string;
|
|
897
|
+
multiple?: boolean;
|
|
898
|
+
initialFiles?: FileMetadata[];
|
|
899
|
+
onFilesChange?: (files: FileUploadItem[]) => void;
|
|
900
|
+
onFilesAdded?: (addedFiles: FileUploadItem[]) => void;
|
|
914
901
|
upload?: UploadConfig;
|
|
915
902
|
};
|
|
916
|
-
type
|
|
917
|
-
files:
|
|
903
|
+
type UseFileUploadReturn = {
|
|
904
|
+
files: FileUploadItem[];
|
|
905
|
+
isDragging: boolean;
|
|
918
906
|
isUploading: boolean;
|
|
919
|
-
|
|
920
|
-
type FileUploadWithUploaderActions = Omit<FileUploadActions, "addFiles"> & {
|
|
907
|
+
errors: string[];
|
|
921
908
|
addFiles: (files: FileList | File[]) => void;
|
|
922
|
-
|
|
909
|
+
removeFile: (id: string) => void;
|
|
910
|
+
clearFiles: () => void;
|
|
911
|
+
clearErrors: () => void;
|
|
912
|
+
reset: (newFiles?: FileMetadata[]) => void;
|
|
913
|
+
setFiles: (files: FileUploadItem[] | ((prev: FileUploadItem[]) => FileUploadItem[])) => void;
|
|
914
|
+
instanceKey: number;
|
|
915
|
+
uploadFiles: (files?: FileUploadItem[]) => Promise<FileUploadItem[]>;
|
|
923
916
|
retryUpload: (id: string) => Promise<void>;
|
|
924
917
|
cancelUpload: (id: string) => void;
|
|
918
|
+
handleDragEnter: (e: DragEvent<HTMLElement>) => void;
|
|
919
|
+
handleDragLeave: (e: DragEvent<HTMLElement>) => void;
|
|
920
|
+
handleDragOver: (e: DragEvent<HTMLElement>) => void;
|
|
921
|
+
handleDrop: (e: DragEvent<HTMLElement>) => void;
|
|
922
|
+
handleFileChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
923
|
+
openFileDialog: () => void;
|
|
924
|
+
getInputProps: (props?: InputHTMLAttributes<HTMLInputElement>) => InputHTMLAttributes<HTMLInputElement> & {
|
|
925
|
+
ref: any;
|
|
926
|
+
};
|
|
925
927
|
};
|
|
926
|
-
declare const
|
|
928
|
+
declare const formatBytes: (bytes: number, decimals?: number) => string;
|
|
929
|
+
declare const useFileUpload: (options?: UseFileUploadOptions) => UseFileUploadReturn;
|
|
930
|
+
type FileWithPreview = FileUploadItem;
|
|
931
|
+
type FileWithUploadStatus = FileUploadItem;
|
|
932
|
+
type FileUploadOptions = UseFileUploadOptions;
|
|
933
|
+
type FileUploadWithUploaderOptions = UseFileUploadOptions;
|
|
927
934
|
//#endregion
|
|
928
935
|
//#region src/components/file-upload.d.ts
|
|
929
|
-
interface FileUploadFile {
|
|
930
|
-
id: string;
|
|
931
|
-
file: File | {
|
|
932
|
-
name: string;
|
|
933
|
-
size: number;
|
|
934
|
-
type: string;
|
|
935
|
-
url?: string;
|
|
936
|
-
};
|
|
937
|
-
progress?: number;
|
|
938
|
-
status?: "idle" | "uploading" | "success" | "error";
|
|
939
|
-
preview?: string;
|
|
940
|
-
error?: string;
|
|
941
|
-
uploadedUrl?: string;
|
|
942
|
-
}
|
|
943
936
|
interface RootProps {
|
|
944
937
|
children: React$2.ReactNode;
|
|
945
|
-
/**
|
|
946
|
-
|
|
947
|
-
/** Add files action from the hook */
|
|
948
|
-
addFiles: (files: FileList | File[]) => void;
|
|
949
|
-
/** Remove file action from the hook */
|
|
950
|
-
removeFile: (id: string) => void;
|
|
951
|
-
/** Clear files action from the hook */
|
|
952
|
-
clearFiles: () => void;
|
|
953
|
-
/** Retry upload action from the hook */
|
|
954
|
-
retryUpload?: (id: string) => Promise<void>;
|
|
955
|
-
/** Open file dialog action from the hook */
|
|
956
|
-
openFileDialog: () => void;
|
|
957
|
-
/** Get input props from the hook */
|
|
958
|
-
getInputProps: FileUploadWithUploaderActions["getInputProps"];
|
|
959
|
-
/** Handle drag enter from the hook */
|
|
960
|
-
handleDragEnter: FileUploadWithUploaderActions["handleDragEnter"];
|
|
961
|
-
/** Handle drag leave from the hook */
|
|
962
|
-
handleDragLeave: FileUploadWithUploaderActions["handleDragLeave"];
|
|
963
|
-
/** Handle drag over from the hook */
|
|
964
|
-
handleDragOver: FileUploadWithUploaderActions["handleDragOver"];
|
|
965
|
-
/** Handle drop from the hook */
|
|
966
|
-
handleDrop: FileUploadWithUploaderActions["handleDrop"];
|
|
967
|
-
/** Whether dragging is active (from hook state) */
|
|
968
|
-
isDragActive?: boolean;
|
|
969
|
-
/** Whether upload is in progress (from hook state) */
|
|
970
|
-
isUploading?: boolean;
|
|
938
|
+
/** The upload hook return value */
|
|
939
|
+
upload: UseFileUploadReturn;
|
|
971
940
|
/** Accepted file types (e.g., "image/*,.pdf") */
|
|
972
941
|
accept?: string;
|
|
973
942
|
/** Allow multiple file selection */
|
|
@@ -978,178 +947,112 @@ interface RootProps {
|
|
|
978
947
|
}
|
|
979
948
|
declare function Root({
|
|
980
949
|
children,
|
|
981
|
-
|
|
982
|
-
addFiles,
|
|
983
|
-
removeFile,
|
|
984
|
-
clearFiles,
|
|
985
|
-
retryUpload,
|
|
986
|
-
openFileDialog,
|
|
987
|
-
getInputProps,
|
|
988
|
-
handleDragEnter,
|
|
989
|
-
handleDragLeave,
|
|
990
|
-
handleDragOver,
|
|
991
|
-
handleDrop,
|
|
992
|
-
isDragActive,
|
|
993
|
-
isUploading,
|
|
950
|
+
upload,
|
|
994
951
|
accept,
|
|
995
952
|
multiple,
|
|
996
953
|
disabled,
|
|
997
954
|
className
|
|
998
|
-
}: RootProps):
|
|
955
|
+
}: RootProps): react_jsx_runtime21.JSX.Element;
|
|
999
956
|
declare const dropzoneVariants: (props?: ({
|
|
1000
957
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1001
958
|
isDragActive?: boolean | null | undefined;
|
|
1002
959
|
} & class_variance_authority_types12.ClassProp) | undefined) => string;
|
|
960
|
+
/** State passed to the render prop */
|
|
961
|
+
interface DropzoneState {
|
|
962
|
+
/** Whether files are being dragged over the dropzone */
|
|
963
|
+
isDragging: boolean;
|
|
964
|
+
/** Whether files are currently uploading */
|
|
965
|
+
isUploading: boolean;
|
|
966
|
+
/** Whether the dropzone is disabled */
|
|
967
|
+
disabled: boolean;
|
|
968
|
+
/** Current files in the upload */
|
|
969
|
+
files: FileUploadItem[];
|
|
970
|
+
}
|
|
971
|
+
/** Props passed to the render prop element */
|
|
972
|
+
interface DropzoneRenderProps {
|
|
973
|
+
onDragEnter: React$2.DragEventHandler;
|
|
974
|
+
onDragLeave: React$2.DragEventHandler;
|
|
975
|
+
onDragOver: React$2.DragEventHandler;
|
|
976
|
+
onDrop: React$2.DragEventHandler;
|
|
977
|
+
onPaste: React$2.ClipboardEventHandler;
|
|
978
|
+
onKeyDown: React$2.KeyboardEventHandler;
|
|
979
|
+
onClick: React$2.MouseEventHandler;
|
|
980
|
+
tabIndex: number;
|
|
981
|
+
role: string;
|
|
982
|
+
"aria-disabled": boolean;
|
|
983
|
+
"data-dragging": boolean;
|
|
984
|
+
}
|
|
1003
985
|
interface DropzoneProps extends Omit<React$2.ComponentProps<"div">, "children">, Omit<VariantProps<typeof dropzoneVariants>, "isDragActive"> {
|
|
1004
|
-
children?: React$2.ReactNode;
|
|
1005
986
|
/** Custom text for the dropzone */
|
|
1006
987
|
dropzoneText?: string;
|
|
1007
988
|
/** Custom text for the browse button */
|
|
1008
989
|
browseText?: string;
|
|
1009
|
-
/**
|
|
1010
|
-
|
|
990
|
+
/**
|
|
991
|
+
* Render prop for complete customization.
|
|
992
|
+
* When provided, replaces the default dropzone element.
|
|
993
|
+
* Receives props to spread and state for conditional styling.
|
|
994
|
+
*/
|
|
995
|
+
render?: (props: DropzoneRenderProps, state: DropzoneState) => React$2.ReactElement;
|
|
1011
996
|
}
|
|
1012
997
|
declare function Dropzone({
|
|
1013
998
|
className,
|
|
1014
999
|
size,
|
|
1015
|
-
children,
|
|
1016
1000
|
dropzoneText,
|
|
1017
1001
|
browseText,
|
|
1018
|
-
|
|
1019
|
-
...props
|
|
1020
|
-
}: DropzoneProps): react_jsx_runtime35.JSX.Element;
|
|
1021
|
-
interface TriggerProps extends React$2.ComponentProps<typeof Button> {
|
|
1022
|
-
/** Text to show while uploading */
|
|
1023
|
-
uploadingText?: string;
|
|
1024
|
-
/** Show uploading state */
|
|
1025
|
-
showUploadingState?: boolean;
|
|
1026
|
-
/** Hide the default content */
|
|
1027
|
-
hideDefaultContent?: boolean;
|
|
1028
|
-
}
|
|
1029
|
-
declare function Trigger({
|
|
1030
|
-
children,
|
|
1031
|
-
uploadingText,
|
|
1032
|
-
showUploadingState,
|
|
1033
|
-
hideDefaultContent,
|
|
1002
|
+
render,
|
|
1034
1003
|
...props
|
|
1035
|
-
}:
|
|
1036
|
-
interface
|
|
1037
|
-
|
|
1038
|
-
}
|
|
1039
|
-
declare function ItemList({
|
|
1004
|
+
}: DropzoneProps): react_jsx_runtime21.JSX.Element;
|
|
1005
|
+
interface HiddenInputProps extends Omit<React$2.ComponentProps<"input">, "type"> {}
|
|
1006
|
+
declare function HiddenInput({
|
|
1040
1007
|
className,
|
|
1041
|
-
children,
|
|
1042
1008
|
...props
|
|
1043
|
-
}:
|
|
1044
|
-
interface
|
|
1045
|
-
|
|
1046
|
-
/** Apply error styling based on file status */
|
|
1047
|
-
statusStyles?: boolean;
|
|
1009
|
+
}: HiddenInputProps): react_jsx_runtime21.JSX.Element;
|
|
1010
|
+
interface ListProps extends Omit<React$2.ComponentProps<"div">, "children"> {
|
|
1011
|
+
children?: React$2.ReactNode | ((files: FileUploadItem[]) => React$2.ReactNode);
|
|
1048
1012
|
}
|
|
1049
|
-
declare function
|
|
1050
|
-
file,
|
|
1051
|
-
className,
|
|
1052
|
-
children,
|
|
1053
|
-
statusStyles,
|
|
1054
|
-
...props
|
|
1055
|
-
}: ItemProps): react_jsx_runtime35.JSX.Element;
|
|
1056
|
-
interface ItemPreviewProps extends React$2.ComponentProps<"div"> {
|
|
1057
|
-
/** Fallback icon when no preview is available */
|
|
1058
|
-
fallback?: React$2.ReactNode;
|
|
1059
|
-
}
|
|
1060
|
-
declare function ItemPreview({
|
|
1061
|
-
className,
|
|
1062
|
-
fallback,
|
|
1063
|
-
...props
|
|
1064
|
-
}: ItemPreviewProps): react_jsx_runtime35.JSX.Element;
|
|
1065
|
-
interface ItemNameProps extends React$2.ComponentProps<"span"> {}
|
|
1066
|
-
declare function ItemName({
|
|
1067
|
-
className,
|
|
1068
|
-
...props
|
|
1069
|
-
}: ItemNameProps): react_jsx_runtime35.JSX.Element;
|
|
1070
|
-
interface ItemSizeProps extends React$2.ComponentProps<"span"> {}
|
|
1071
|
-
declare function ItemSize({
|
|
1072
|
-
className,
|
|
1073
|
-
...props
|
|
1074
|
-
}: ItemSizeProps): react_jsx_runtime35.JSX.Element;
|
|
1075
|
-
interface ItemRemoveProps extends React$2.ComponentProps<typeof Button> {}
|
|
1076
|
-
declare function ItemRemove({
|
|
1013
|
+
declare function List({
|
|
1077
1014
|
className,
|
|
1078
1015
|
children,
|
|
1079
1016
|
...props
|
|
1080
|
-
}:
|
|
1081
|
-
interface
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
/**
|
|
1088
|
-
|
|
1089
|
-
/**
|
|
1090
|
-
|
|
1091
|
-
/**
|
|
1092
|
-
|
|
1017
|
+
}: ListProps): react_jsx_runtime21.JSX.Element | null;
|
|
1018
|
+
interface ListItemProps extends React$2.ComponentProps<"div"> {
|
|
1019
|
+
file: FileUploadItem;
|
|
1020
|
+
/** Show file type icon (default: true) */
|
|
1021
|
+
showIcon?: boolean;
|
|
1022
|
+
/** Show progress bar when uploading (default: true) */
|
|
1023
|
+
showProgress?: boolean;
|
|
1024
|
+
/** Show error message when error (default: true) */
|
|
1025
|
+
showError?: boolean;
|
|
1026
|
+
/** Show remove button (default: true) */
|
|
1027
|
+
showRemove?: boolean;
|
|
1028
|
+
/** Show retry button when error (default: true) */
|
|
1029
|
+
showRetry?: boolean;
|
|
1030
|
+
/** Custom icon component */
|
|
1031
|
+
icon?: React$2.ReactNode;
|
|
1093
1032
|
}
|
|
1094
|
-
declare function
|
|
1095
|
-
|
|
1096
|
-
successIcon,
|
|
1097
|
-
uploadingContent,
|
|
1098
|
-
errorContent,
|
|
1099
|
-
...props
|
|
1100
|
-
}: ItemStatusProps): react_jsx_runtime35.JSX.Element | null;
|
|
1101
|
-
interface ItemErrorProps extends React$2.ComponentProps<"span"> {}
|
|
1102
|
-
declare function ItemError({
|
|
1103
|
-
className,
|
|
1104
|
-
...props
|
|
1105
|
-
}: ItemErrorProps): react_jsx_runtime35.JSX.Element | null;
|
|
1106
|
-
interface ItemRetryProps extends React$2.ComponentProps<typeof Button> {}
|
|
1107
|
-
declare function ItemRetry({
|
|
1033
|
+
declare function ListItem({
|
|
1034
|
+
file,
|
|
1108
1035
|
className,
|
|
1109
|
-
|
|
1036
|
+
showIcon,
|
|
1037
|
+
showProgress,
|
|
1038
|
+
showError,
|
|
1039
|
+
showRemove,
|
|
1040
|
+
showRetry,
|
|
1041
|
+
icon,
|
|
1110
1042
|
...props
|
|
1111
|
-
}:
|
|
1112
|
-
interface
|
|
1113
|
-
declare function
|
|
1043
|
+
}: ListItemProps): react_jsx_runtime21.JSX.Element;
|
|
1044
|
+
interface ClearAllProps extends React$2.ComponentProps<typeof Button> {}
|
|
1045
|
+
declare function ClearAll({
|
|
1114
1046
|
children,
|
|
1115
1047
|
...props
|
|
1116
|
-
}:
|
|
1117
|
-
interface ImageGridProps extends Omit<React$2.ComponentProps<"div">, "children"> {
|
|
1118
|
-
children?: React$2.ReactNode | ((files: FileUploadFile[]) => React$2.ReactNode);
|
|
1119
|
-
}
|
|
1120
|
-
declare function ImageGrid({
|
|
1121
|
-
className,
|
|
1122
|
-
children,
|
|
1123
|
-
...props
|
|
1124
|
-
}: ImageGridProps): react_jsx_runtime35.JSX.Element | null;
|
|
1125
|
-
interface ImageGridItemProps extends React$2.ComponentProps<"div"> {
|
|
1126
|
-
file: FileUploadFile;
|
|
1127
|
-
/** Show status overlays (uploading/error) */
|
|
1128
|
-
showStatusOverlay?: boolean;
|
|
1129
|
-
}
|
|
1130
|
-
declare function ImageGridItem({
|
|
1131
|
-
file,
|
|
1132
|
-
className,
|
|
1133
|
-
showStatusOverlay,
|
|
1134
|
-
...props
|
|
1135
|
-
}: ImageGridItemProps): react_jsx_runtime35.JSX.Element;
|
|
1048
|
+
}: ClearAllProps): react_jsx_runtime21.JSX.Element | null;
|
|
1136
1049
|
declare const FileUpload: {
|
|
1137
1050
|
Root: typeof Root;
|
|
1138
1051
|
Dropzone: typeof Dropzone;
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
ItemName: typeof ItemName;
|
|
1144
|
-
ItemSize: typeof ItemSize;
|
|
1145
|
-
ItemRemove: typeof ItemRemove;
|
|
1146
|
-
ItemProgress: typeof ItemProgress;
|
|
1147
|
-
ItemStatus: typeof ItemStatus;
|
|
1148
|
-
ItemError: typeof ItemError;
|
|
1149
|
-
ItemRetry: typeof ItemRetry;
|
|
1150
|
-
ClearButton: typeof ClearButton;
|
|
1151
|
-
ImageGrid: typeof ImageGrid;
|
|
1152
|
-
ImageGridItem: typeof ImageGridItem;
|
|
1052
|
+
HiddenInput: typeof HiddenInput;
|
|
1053
|
+
List: typeof List;
|
|
1054
|
+
ListItem: typeof ListItem;
|
|
1055
|
+
ClearAll: typeof ClearAll;
|
|
1153
1056
|
};
|
|
1154
1057
|
//#endregion
|
|
1155
1058
|
//#region src/components/otp-input.d.ts
|
|
@@ -1178,16 +1081,78 @@ declare function OtpInput({
|
|
|
1178
1081
|
size,
|
|
1179
1082
|
"aria-invalid": ariaInvalid,
|
|
1180
1083
|
...props
|
|
1181
|
-
}: Readonly<OtpInputProps>):
|
|
1084
|
+
}: Readonly<OtpInputProps>): react_jsx_runtime21.JSX.Element;
|
|
1182
1085
|
//#endregion
|
|
1183
1086
|
//#region src/icons/file-icon.d.ts
|
|
1184
|
-
declare function FileIcon(props: React.ComponentProps<"svg">):
|
|
1087
|
+
declare function FileIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1185
1088
|
//#endregion
|
|
1186
1089
|
//#region src/icons/upload-icon.d.ts
|
|
1187
|
-
declare function UploadIcon(props: React.ComponentProps<"svg">):
|
|
1090
|
+
declare function UploadIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1188
1091
|
//#endregion
|
|
1189
1092
|
//#region src/icons/chevron-down-icon.d.ts
|
|
1190
|
-
declare function ChevronDownIcon(props: React.ComponentProps<"svg">):
|
|
1093
|
+
declare function ChevronDownIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1094
|
+
//#endregion
|
|
1095
|
+
//#region src/icons/send-icon.d.ts
|
|
1096
|
+
declare function SendIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1097
|
+
//#endregion
|
|
1098
|
+
//#region src/icons/stop-icon.d.ts
|
|
1099
|
+
declare function StopIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1100
|
+
//#endregion
|
|
1101
|
+
//#region src/icons/info-icon.d.ts
|
|
1102
|
+
declare function InfoIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1103
|
+
//#endregion
|
|
1104
|
+
//#region src/icons/pdf-icon.d.ts
|
|
1105
|
+
declare function PdfIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1106
|
+
//#endregion
|
|
1107
|
+
//#region src/icons/word-icon.d.ts
|
|
1108
|
+
declare function WordIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1109
|
+
//#endregion
|
|
1110
|
+
//#region src/icons/excel-icon.d.ts
|
|
1111
|
+
declare function ExcelIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1112
|
+
//#endregion
|
|
1113
|
+
//#region src/icons/image-file-icon.d.ts
|
|
1114
|
+
declare function ImageFileIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1115
|
+
//#endregion
|
|
1116
|
+
//#region src/icons/video-icon.d.ts
|
|
1117
|
+
declare function VideoIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1118
|
+
//#endregion
|
|
1119
|
+
//#region src/icons/audio-icon.d.ts
|
|
1120
|
+
declare function AudioIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1121
|
+
//#endregion
|
|
1122
|
+
//#region src/icons/archive-icon.d.ts
|
|
1123
|
+
declare function ArchiveIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1124
|
+
//#endregion
|
|
1125
|
+
//#region src/icons/code-file-icon.d.ts
|
|
1126
|
+
declare function CodeFileIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1127
|
+
//#endregion
|
|
1128
|
+
//#region src/icons/text-file-icon.d.ts
|
|
1129
|
+
declare function TextFileIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1130
|
+
//#endregion
|
|
1131
|
+
//#region src/icons/generic-file-icon.d.ts
|
|
1132
|
+
declare function GenericFileIcon(props: React.ComponentProps<"svg">): react_jsx_runtime21.JSX.Element;
|
|
1133
|
+
//#endregion
|
|
1134
|
+
//#region src/icons/get-file-type-icon.d.ts
|
|
1135
|
+
type FileInfo = {
|
|
1136
|
+
name: string;
|
|
1137
|
+
type?: string;
|
|
1138
|
+
};
|
|
1139
|
+
type IconComponent = React$1.ComponentType<React$1.ComponentProps<"svg">>;
|
|
1140
|
+
/**
|
|
1141
|
+
* Get the appropriate file type icon component for a file.
|
|
1142
|
+
* Uses MIME type first, then falls back to file extension.
|
|
1143
|
+
*
|
|
1144
|
+
* @param file - Object with name and optional type (MIME type)
|
|
1145
|
+
* @returns React icon component for the file type
|
|
1146
|
+
*
|
|
1147
|
+
* @example
|
|
1148
|
+
* ```tsx
|
|
1149
|
+
* import { getFileTypeIcon } from "@px-ui/core";
|
|
1150
|
+
*
|
|
1151
|
+
* const Icon = getFileTypeIcon({ name: "document.pdf", type: "application/pdf" });
|
|
1152
|
+
* <Icon className="size-5" />
|
|
1153
|
+
* ```
|
|
1154
|
+
*/
|
|
1155
|
+
declare function getFileTypeIcon(file: FileInfo): IconComponent;
|
|
1191
1156
|
//#endregion
|
|
1192
1157
|
//#region src/hooks/use-intersection-observer.d.ts
|
|
1193
1158
|
interface UseIntersectionObserverOptions {
|
|
@@ -1212,5 +1177,5 @@ declare function useIsMobile(): boolean;
|
|
|
1212
1177
|
//#region src/utils/classnames.d.ts
|
|
1213
1178
|
declare function cn(...inputs: ArgumentArray): string;
|
|
1214
1179
|
//#endregion
|
|
1215
|
-
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, ChevronDownIcon,
|
|
1180
|
+
export { ArchiveIcon, AudioIcon, 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, ChevronDownIcon, ClearAllProps, CodeFileIcon, collapsible_d_exports as Collapsible, combobox_d_exports as Combobox, DatePicker, dialog_d_exports as Dialog, DropzoneProps, DropzoneRenderProps, DropzoneState, ExcelIcon, FileIcon, FileMetadata, FileUpload, FileUploadItem, FileUploadOptions, FileUploadWithUploaderOptions, FileWithPreview, FileWithUploadStatus, GenericFileIcon, HiddenInputProps, ImageFileIcon, InferOption, InferOptions, InfoIcon, Input, input_group_d_exports as InputGroup, Label, ListItemProps, ListProps, LoadOptionsConfig, menu_d_exports as Menu, OtpInput, PXUIProvider, PdfIcon, 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, SendIcon, Separator, Spinner, StopIcon, Switch, tabs_d_exports as Tabs, TextFileIcon, Textarea, TextareaProps, tooltip_d_exports as Tooltip, UploadConfig, UploadIcon, UploadStatus, UseFileUploadOptions, UseFileUploadReturn, UseInfiniteScrollHookArgs, UseIntersectionObserverOptions, UseIntersectionObserverReturn, VideoIcon, WordIcon, anchoredToast, buttonVariants, cn, defineLoadOptions, formatBytes, getFileTypeIcon, toast, useAsyncOptions, useFileUpload, useIntersectionObserver, useIsMobile };
|
|
1216
1181
|
//# sourceMappingURL=index.d.ts.map
|