@customafk/lunas-ui 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/button-B2FJrOBP.mjs +2 -0
- package/dist/button-B2FJrOBP.mjs.map +1 -0
- package/dist/{button-D0YsVKtm.d.cts → button-BnFROtRM.d.cts} +3 -3
- package/dist/button-CYw2AqT0.cjs +2 -0
- package/dist/button-CYw2AqT0.cjs.map +1 -0
- package/dist/{button-L3Ts3X9d.d.mts → button-IfNjnUO-.d.mts} +3 -3
- package/dist/{calendar-D3hTjPxn.mjs → calendar-Bt6qXSZb.mjs} +2 -2
- package/dist/{calendar-D3hTjPxn.mjs.map → calendar-Bt6qXSZb.mjs.map} +1 -1
- package/dist/{calendar-CO20ceyB.cjs → calendar-BwWfk_Zk.cjs} +2 -2
- package/dist/{calendar-CO20ceyB.cjs.map → calendar-BwWfk_Zk.cjs.map} +1 -1
- package/dist/cards/grid-product-card.cjs +1 -1
- package/dist/cards/grid-product-card.mjs +1 -1
- package/dist/cards/product-card.cjs +1 -1
- package/dist/cards/product-card.mjs +1 -1
- package/dist/data-display/statistic.d.cts +2 -2
- package/dist/{dialog-C3T_1iTB.d.cts → dialog-CyLgmqny.d.cts} +12 -12
- package/dist/{dialog-COoKGA4Q.d.mts → dialog-lFDfcYPP.d.mts} +12 -12
- package/dist/dialogs/detail-dialog/components/sidebar.cjs +1 -1
- package/dist/dialogs/detail-dialog/components/sidebar.d.cts +26 -26
- package/dist/dialogs/detail-dialog/components/sidebar.d.mts +24 -24
- package/dist/dialogs/detail-dialog/components/sidebar.mjs +1 -1
- package/dist/dialogs/detail-dialog/index.cjs +1 -1
- package/dist/dialogs/detail-dialog/index.mjs +1 -1
- package/dist/features/descriptions/index.d.cts +4 -4
- package/dist/features/search-modal/index.d.cts +2 -2
- package/dist/features/search-modal/index.d.mts +2 -2
- package/dist/features/tables/index.cjs +1 -1
- package/dist/features/tables/index.d.cts +1 -1
- package/dist/features/tables/index.d.mts +23 -23
- package/dist/features/tables/index.mjs +1 -1
- package/dist/features/tanstack-form/index.cjs +1 -1
- package/dist/features/tanstack-form/index.cjs.map +1 -1
- package/dist/features/tanstack-form/index.d.cts +224 -224
- package/dist/features/tanstack-form/index.d.mts +224 -224
- package/dist/features/tanstack-form/index.mjs +1 -1
- package/dist/features/tanstack-form/index.mjs.map +1 -1
- package/dist/{input-C9dS5env.d.mts → input-Bm0YXroi.d.cts} +6 -6
- package/dist/{input-C3M7uZqX.d.cts → input-CLlVXOR2.d.mts} +6 -6
- package/dist/layouts/cms-layout/index.cjs +1 -1
- package/dist/layouts/cms-layout/index.mjs +1 -1
- package/dist/layouts/flex.d.cts +2 -2
- package/dist/layouts/flex.d.mts +2 -2
- package/dist/layouts/payment-layout/index.cjs +1 -1
- package/dist/layouts/payment-layout/index.mjs +1 -1
- package/dist/pages/FeatureDeveloping.cjs +1 -1
- package/dist/pages/FeatureDeveloping.d.cts +2 -2
- package/dist/pages/FeatureDeveloping.d.mts +2 -2
- package/dist/pages/FeatureDeveloping.mjs +1 -1
- package/dist/pages/FeatureFixing.cjs +1 -1
- package/dist/pages/FeatureFixing.d.cts +2 -2
- package/dist/pages/FeatureFixing.d.mts +2 -2
- package/dist/pages/FeatureFixing.mjs +1 -1
- package/dist/pages/NotAuthorized.cjs +1 -1
- package/dist/pages/NotAuthorized.d.cts +2 -2
- package/dist/pages/NotAuthorized.d.mts +2 -2
- package/dist/pages/NotAuthorized.mjs +1 -1
- package/dist/pages/NotFound.cjs +1 -1
- package/dist/pages/NotFound.d.cts +2 -2
- package/dist/pages/NotFound.d.mts +2 -2
- package/dist/pages/NotFound.mjs +1 -1
- package/dist/typography/paragraph.d.cts +5 -5
- package/dist/typography/paragraph.d.mts +5 -5
- package/dist/typography/title.d.cts +2 -2
- package/dist/typography/title.d.mts +2 -2
- package/dist/ui/alert-dialog.d.cts +12 -12
- package/dist/ui/alert-dialog.d.mts +12 -12
- package/dist/ui/alert.d.cts +4 -4
- package/dist/ui/alert.d.mts +4 -4
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.mts +2 -2
- package/dist/ui/avatar.d.cts +4 -4
- package/dist/ui/avatar.d.mts +4 -4
- package/dist/ui/badge.d.cts +4 -4
- package/dist/ui/badge.d.mts +4 -4
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.mts +8 -8
- package/dist/ui/button-group.d.cts +6 -6
- package/dist/ui/button-group.d.mts +6 -6
- package/dist/ui/button.cjs +1 -1
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.mts +1 -1
- package/dist/ui/button.mjs +1 -1
- package/dist/ui/buttons/add-new.cjs +1 -1
- package/dist/ui/buttons/add-new.mjs +1 -1
- package/dist/ui/buttons/edit.cjs +1 -1
- package/dist/ui/buttons/edit.mjs +1 -1
- package/dist/ui/buttons/refresh.cjs +1 -1
- package/dist/ui/buttons/refresh.mjs +1 -1
- package/dist/ui/buttons/trash.cjs +1 -1
- package/dist/ui/buttons/trash.mjs +1 -1
- package/dist/ui/buttons/upload-image.cjs +1 -1
- package/dist/ui/buttons/upload-image.mjs +1 -1
- package/dist/ui/calendar.cjs +1 -1
- package/dist/ui/calendar.d.cts +4 -4
- package/dist/ui/calendar.d.mts +4 -4
- package/dist/ui/calendar.mjs +1 -1
- package/dist/ui/card.d.cts +8 -8
- package/dist/ui/card.d.mts +8 -8
- package/dist/ui/carousel.cjs +1 -1
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.mts +7 -7
- package/dist/ui/carousel.mjs +1 -1
- package/dist/ui/checkbox.d.cts +2 -2
- package/dist/ui/checkbox.d.mts +2 -2
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.mts +4 -4
- package/dist/ui/command.d.cts +11 -11
- package/dist/ui/command.d.mts +11 -11
- package/dist/ui/context-menu.d.cts +16 -16
- package/dist/ui/context-menu.d.mts +16 -16
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.mts +1 -1
- package/dist/ui/drawer.d.cts +11 -11
- package/dist/ui/drawer.d.mts +11 -11
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.mts +16 -16
- package/dist/ui/empty.d.cts +9 -9
- package/dist/ui/empty.d.mts +9 -9
- package/dist/ui/field.d.cts +13 -13
- package/dist/ui/field.d.mts +24 -24
- package/dist/ui/file-uploader.cjs +1 -1
- package/dist/ui/file-uploader.d.cts +2 -2
- package/dist/ui/file-uploader.d.mts +2 -2
- package/dist/ui/file-uploader.mjs +1 -1
- package/dist/ui/form.d.cts +7 -7
- package/dist/ui/form.d.mts +11 -11
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/hover-card.d.mts +4 -4
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.mts +5 -5
- package/dist/ui/input.d.cts +1 -1
- package/dist/ui/input.d.mts +1 -1
- package/dist/ui/inputs/search-input.d.cts +3 -3
- package/dist/ui/inputs/search-input.d.mts +3 -3
- package/dist/ui/item.d.cts +14 -14
- package/dist/ui/item.d.mts +14 -14
- package/dist/ui/label.d.cts +2 -2
- package/dist/ui/label.d.mts +2 -2
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.mts +17 -17
- package/dist/ui/multi-select.cjs +1 -1
- package/dist/ui/multi-select.d.cts +2 -2
- package/dist/ui/multi-select.d.mts +3 -3
- package/dist/ui/multi-select.mjs +1 -1
- package/dist/ui/navigation-menu.d.cts +9 -9
- package/dist/ui/navigation-menu.d.mts +11 -11
- package/dist/ui/pagination.d.cts +9 -9
- package/dist/ui/pagination.d.mts +9 -9
- package/dist/ui/popover.d.cts +6 -6
- package/dist/ui/popover.d.mts +6 -6
- package/dist/ui/progress.d.cts +2 -2
- package/dist/ui/progress.d.mts +2 -2
- package/dist/ui/radio-group.d.cts +3 -3
- package/dist/ui/radio-group.d.mts +3 -3
- package/dist/ui/resizable.d.cts +9 -9
- package/dist/ui/resizable.d.mts +9 -9
- package/dist/ui/scroll-area.d.cts +3 -3
- package/dist/ui/scroll-area.d.mts +3 -3
- package/dist/ui/select.d.cts +9 -9
- package/dist/ui/select.d.mts +9 -9
- package/dist/ui/separator.d.cts +2 -2
- package/dist/ui/separator.d.mts +2 -2
- package/dist/ui/sheet.d.cts +9 -9
- package/dist/ui/sheet.d.mts +9 -9
- package/dist/ui/sidebar.cjs +1 -1
- package/dist/ui/sidebar.d.cts +26 -26
- package/dist/ui/sidebar.d.mts +28 -28
- package/dist/ui/sidebar.mjs +1 -1
- package/dist/ui/skeleton.d.cts +2 -2
- package/dist/ui/skeleton.d.mts +2 -2
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.mts +2 -2
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.d.mts +2 -2
- package/dist/ui/spinner.d.cts +2 -2
- package/dist/ui/spinner.d.mts +2 -2
- package/dist/ui/switch.d.cts +2 -2
- package/dist/ui/switch.d.mts +2 -2
- package/dist/ui/table.d.cts +9 -9
- package/dist/ui/table.d.mts +18 -18
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.mts +5 -5
- package/dist/ui/textarea.d.cts +2 -2
- package/dist/ui/textarea.d.mts +2 -2
- package/dist/ui/toggle-group.d.cts +3 -3
- package/dist/ui/toggle-group.d.mts +3 -3
- package/dist/ui/toggle.d.cts +2 -2
- package/dist/ui/toggle.d.mts +4 -4
- package/dist/ui/tooltip.d.cts +5 -5
- package/dist/ui/tooltip.d.mts +5 -5
- package/package.json +1 -1
- package/dist/button-6-3G2PiR.mjs +0 -2
- package/dist/button-6-3G2PiR.mjs.map +0 -1
- package/dist/button-D0WaocKO.cjs +0 -2
- package/dist/button-D0WaocKO.cjs.map +0 -1
package/dist/ui/dialog.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as DialogFooter, c as DialogPortal, i as DialogDescription, l as DialogTitle, n as DialogClose, o as DialogHeader, r as DialogContent, s as DialogOverlay, t as Dialog, u as DialogTrigger } from "../dialog-
|
|
1
|
+
import { a as DialogFooter, c as DialogPortal, i as DialogDescription, l as DialogTitle, n as DialogClose, o as DialogHeader, r as DialogContent, s as DialogOverlay, t as Dialog, u as DialogTrigger } from "../dialog-CyLgmqny.cjs";
|
|
2
2
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
package/dist/ui/dialog.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as DialogFooter, c as DialogPortal, i as DialogDescription, l as DialogTitle, n as DialogClose, o as DialogHeader, r as DialogContent, s as DialogOverlay, t as Dialog, u as DialogTrigger } from "../dialog-
|
|
1
|
+
import { a as DialogFooter, c as DialogPortal, i as DialogDescription, l as DialogTitle, n as DialogClose, o as DialogHeader, r as DialogContent, s as DialogOverlay, t as Dialog, u as DialogTrigger } from "../dialog-lFDfcYPP.mjs";
|
|
2
2
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
package/dist/ui/drawer.d.cts
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime103 from "react/jsx-runtime";
|
|
2
2
|
import { Drawer as Drawer$1 } from "vaul";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/drawer.d.ts
|
|
5
5
|
declare function Drawer({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof Drawer$1.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime103.JSX.Element;
|
|
8
8
|
declare function DrawerTrigger({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof Drawer$1.Trigger>):
|
|
10
|
+
}: React.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime103.JSX.Element;
|
|
11
11
|
declare function DrawerPortal({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof Drawer$1.Portal>):
|
|
13
|
+
}: React.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime103.JSX.Element;
|
|
14
14
|
declare function DrawerClose({
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<typeof Drawer$1.Close>):
|
|
16
|
+
}: React.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime103.JSX.Element;
|
|
17
17
|
declare function DrawerOverlay({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<typeof Drawer$1.Overlay>):
|
|
20
|
+
}: React.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime103.JSX.Element;
|
|
21
21
|
declare function DrawerContent({
|
|
22
22
|
className,
|
|
23
23
|
children,
|
|
24
24
|
...props
|
|
25
|
-
}: React.ComponentProps<typeof Drawer$1.Content>):
|
|
25
|
+
}: React.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime103.JSX.Element;
|
|
26
26
|
declare function DrawerHeader({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<'div'>):
|
|
29
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime103.JSX.Element;
|
|
30
30
|
declare function DrawerFooter({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<'div'>):
|
|
33
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime103.JSX.Element;
|
|
34
34
|
declare function DrawerTitle({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof Drawer$1.Title>):
|
|
37
|
+
}: React.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime103.JSX.Element;
|
|
38
38
|
declare function DrawerDescription({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<typeof Drawer$1.Description>):
|
|
41
|
+
}: React.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime103.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
44
44
|
//# sourceMappingURL=drawer.d.cts.map
|
package/dist/ui/drawer.d.mts
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime115 from "react/jsx-runtime";
|
|
2
2
|
import { Drawer as Drawer$1 } from "vaul";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/drawer.d.ts
|
|
5
5
|
declare function Drawer({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof Drawer$1.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime115.JSX.Element;
|
|
8
8
|
declare function DrawerTrigger({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof Drawer$1.Trigger>):
|
|
10
|
+
}: React.ComponentProps<typeof Drawer$1.Trigger>): react_jsx_runtime115.JSX.Element;
|
|
11
11
|
declare function DrawerPortal({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof Drawer$1.Portal>):
|
|
13
|
+
}: React.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime115.JSX.Element;
|
|
14
14
|
declare function DrawerClose({
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<typeof Drawer$1.Close>):
|
|
16
|
+
}: React.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime115.JSX.Element;
|
|
17
17
|
declare function DrawerOverlay({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<typeof Drawer$1.Overlay>):
|
|
20
|
+
}: React.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime115.JSX.Element;
|
|
21
21
|
declare function DrawerContent({
|
|
22
22
|
className,
|
|
23
23
|
children,
|
|
24
24
|
...props
|
|
25
|
-
}: React.ComponentProps<typeof Drawer$1.Content>):
|
|
25
|
+
}: React.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime115.JSX.Element;
|
|
26
26
|
declare function DrawerHeader({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<'div'>):
|
|
29
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime115.JSX.Element;
|
|
30
30
|
declare function DrawerFooter({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<'div'>):
|
|
33
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime115.JSX.Element;
|
|
34
34
|
declare function DrawerTitle({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof Drawer$1.Title>):
|
|
37
|
+
}: React.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime115.JSX.Element;
|
|
38
38
|
declare function DrawerDescription({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<typeof Drawer$1.Description>):
|
|
41
|
+
}: React.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime115.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
44
44
|
//# sourceMappingURL=drawer.d.mts.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime164 from "react/jsx-runtime";
|
|
2
2
|
import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/dropdown-menu.d.ts
|
|
5
5
|
declare function DropdownMenu({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime164.JSX.Element;
|
|
8
8
|
declare function DropdownMenuPortal({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Portal>):
|
|
10
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime164.JSX.Element;
|
|
11
11
|
declare function DropdownMenuTrigger({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Trigger>):
|
|
13
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime164.JSX.Element;
|
|
14
14
|
declare function DropdownMenuContent({
|
|
15
15
|
className,
|
|
16
16
|
sideOffset,
|
|
17
17
|
align,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Content>):
|
|
19
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime164.JSX.Element;
|
|
20
20
|
declare function DropdownMenuGroup({
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Group>):
|
|
22
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime164.JSX.Element;
|
|
23
23
|
declare function DropdownMenuItem({
|
|
24
24
|
className,
|
|
25
25
|
inset,
|
|
@@ -28,39 +28,39 @@ declare function DropdownMenuItem({
|
|
|
28
28
|
}: React.ComponentProps<typeof DropdownMenu$1.Item> & {
|
|
29
29
|
inset?: boolean;
|
|
30
30
|
variant?: 'default' | 'destructive';
|
|
31
|
-
}):
|
|
31
|
+
}): react_jsx_runtime164.JSX.Element;
|
|
32
32
|
declare function DropdownMenuCheckboxItem({
|
|
33
33
|
className,
|
|
34
34
|
children,
|
|
35
35
|
checked,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>):
|
|
37
|
+
}: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime164.JSX.Element;
|
|
38
38
|
declare function DropdownMenuRadioGroup({
|
|
39
39
|
...props
|
|
40
|
-
}: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>):
|
|
40
|
+
}: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime164.JSX.Element;
|
|
41
41
|
declare function DropdownMenuRadioItem({
|
|
42
42
|
className,
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof DropdownMenu$1.RadioItem>):
|
|
45
|
+
}: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime164.JSX.Element;
|
|
46
46
|
declare function DropdownMenuLabel({
|
|
47
47
|
className,
|
|
48
48
|
inset,
|
|
49
49
|
...props
|
|
50
50
|
}: React.ComponentProps<typeof DropdownMenu$1.Label> & {
|
|
51
51
|
inset?: boolean;
|
|
52
|
-
}):
|
|
52
|
+
}): react_jsx_runtime164.JSX.Element;
|
|
53
53
|
declare function DropdownMenuSeparator({
|
|
54
54
|
className,
|
|
55
55
|
...props
|
|
56
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Separator>):
|
|
56
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime164.JSX.Element;
|
|
57
57
|
declare function DropdownMenuShortcut({
|
|
58
58
|
className,
|
|
59
59
|
...props
|
|
60
|
-
}: React.ComponentProps<'span'>):
|
|
60
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime164.JSX.Element;
|
|
61
61
|
declare function DropdownMenuSub({
|
|
62
62
|
...props
|
|
63
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Sub>):
|
|
63
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime164.JSX.Element;
|
|
64
64
|
declare function DropdownMenuSubTrigger({
|
|
65
65
|
className,
|
|
66
66
|
inset,
|
|
@@ -68,11 +68,11 @@ declare function DropdownMenuSubTrigger({
|
|
|
68
68
|
...props
|
|
69
69
|
}: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
|
|
70
70
|
inset?: boolean;
|
|
71
|
-
}):
|
|
71
|
+
}): react_jsx_runtime164.JSX.Element;
|
|
72
72
|
declare function DropdownMenuSubContent({
|
|
73
73
|
className,
|
|
74
74
|
...props
|
|
75
|
-
}: React.ComponentProps<typeof DropdownMenu$1.SubContent>):
|
|
75
|
+
}: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime164.JSX.Element;
|
|
76
76
|
//#endregion
|
|
77
77
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
78
78
|
//# sourceMappingURL=dropdown-menu.d.cts.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime152 from "react/jsx-runtime";
|
|
2
2
|
import { DropdownMenu as DropdownMenu$1 } from "radix-ui";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/dropdown-menu.d.ts
|
|
5
5
|
declare function DropdownMenu({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime152.JSX.Element;
|
|
8
8
|
declare function DropdownMenuPortal({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Portal>):
|
|
10
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime152.JSX.Element;
|
|
11
11
|
declare function DropdownMenuTrigger({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Trigger>):
|
|
13
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime152.JSX.Element;
|
|
14
14
|
declare function DropdownMenuContent({
|
|
15
15
|
className,
|
|
16
16
|
sideOffset,
|
|
17
17
|
align,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Content>):
|
|
19
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime152.JSX.Element;
|
|
20
20
|
declare function DropdownMenuGroup({
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Group>):
|
|
22
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime152.JSX.Element;
|
|
23
23
|
declare function DropdownMenuItem({
|
|
24
24
|
className,
|
|
25
25
|
inset,
|
|
@@ -28,39 +28,39 @@ declare function DropdownMenuItem({
|
|
|
28
28
|
}: React.ComponentProps<typeof DropdownMenu$1.Item> & {
|
|
29
29
|
inset?: boolean;
|
|
30
30
|
variant?: 'default' | 'destructive';
|
|
31
|
-
}):
|
|
31
|
+
}): react_jsx_runtime152.JSX.Element;
|
|
32
32
|
declare function DropdownMenuCheckboxItem({
|
|
33
33
|
className,
|
|
34
34
|
children,
|
|
35
35
|
checked,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>):
|
|
37
|
+
}: React.ComponentProps<typeof DropdownMenu$1.CheckboxItem>): react_jsx_runtime152.JSX.Element;
|
|
38
38
|
declare function DropdownMenuRadioGroup({
|
|
39
39
|
...props
|
|
40
|
-
}: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>):
|
|
40
|
+
}: React.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime152.JSX.Element;
|
|
41
41
|
declare function DropdownMenuRadioItem({
|
|
42
42
|
className,
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<typeof DropdownMenu$1.RadioItem>):
|
|
45
|
+
}: React.ComponentProps<typeof DropdownMenu$1.RadioItem>): react_jsx_runtime152.JSX.Element;
|
|
46
46
|
declare function DropdownMenuLabel({
|
|
47
47
|
className,
|
|
48
48
|
inset,
|
|
49
49
|
...props
|
|
50
50
|
}: React.ComponentProps<typeof DropdownMenu$1.Label> & {
|
|
51
51
|
inset?: boolean;
|
|
52
|
-
}):
|
|
52
|
+
}): react_jsx_runtime152.JSX.Element;
|
|
53
53
|
declare function DropdownMenuSeparator({
|
|
54
54
|
className,
|
|
55
55
|
...props
|
|
56
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Separator>):
|
|
56
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Separator>): react_jsx_runtime152.JSX.Element;
|
|
57
57
|
declare function DropdownMenuShortcut({
|
|
58
58
|
className,
|
|
59
59
|
...props
|
|
60
|
-
}: React.ComponentProps<'span'>):
|
|
60
|
+
}: React.ComponentProps<'span'>): react_jsx_runtime152.JSX.Element;
|
|
61
61
|
declare function DropdownMenuSub({
|
|
62
62
|
...props
|
|
63
|
-
}: React.ComponentProps<typeof DropdownMenu$1.Sub>):
|
|
63
|
+
}: React.ComponentProps<typeof DropdownMenu$1.Sub>): react_jsx_runtime152.JSX.Element;
|
|
64
64
|
declare function DropdownMenuSubTrigger({
|
|
65
65
|
className,
|
|
66
66
|
inset,
|
|
@@ -68,11 +68,11 @@ declare function DropdownMenuSubTrigger({
|
|
|
68
68
|
...props
|
|
69
69
|
}: React.ComponentProps<typeof DropdownMenu$1.SubTrigger> & {
|
|
70
70
|
inset?: boolean;
|
|
71
|
-
}):
|
|
71
|
+
}): react_jsx_runtime152.JSX.Element;
|
|
72
72
|
declare function DropdownMenuSubContent({
|
|
73
73
|
className,
|
|
74
74
|
...props
|
|
75
|
-
}: React.ComponentProps<typeof DropdownMenu$1.SubContent>):
|
|
75
|
+
}: React.ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime152.JSX.Element;
|
|
76
76
|
//#endregion
|
|
77
77
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
|
78
78
|
//# sourceMappingURL=dropdown-menu.d.mts.map
|
package/dist/ui/empty.d.cts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime78 from "react/jsx-runtime";
|
|
2
|
+
import * as class_variance_authority_types3 from "class-variance-authority/types";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/empty.d.ts
|
|
6
6
|
declare function Empty({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<'div'>):
|
|
9
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime78.JSX.Element;
|
|
10
10
|
declare function EmptyHeader({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<'div'>):
|
|
13
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime78.JSX.Element;
|
|
14
14
|
declare const emptyMediaVariants: (props?: ({
|
|
15
15
|
variant?: "default" | "icon" | null | undefined;
|
|
16
|
-
} &
|
|
16
|
+
} & class_variance_authority_types3.ClassProp) | undefined) => string;
|
|
17
17
|
declare function EmptyMedia({
|
|
18
18
|
className,
|
|
19
19
|
variant,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>):
|
|
21
|
+
}: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime78.JSX.Element;
|
|
22
22
|
declare function EmptyTitle({
|
|
23
23
|
className,
|
|
24
24
|
...props
|
|
25
|
-
}: React.ComponentProps<'div'>):
|
|
25
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime78.JSX.Element;
|
|
26
26
|
declare function EmptyDescription({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<'p'>):
|
|
29
|
+
}: React.ComponentProps<'p'>): react_jsx_runtime78.JSX.Element;
|
|
30
30
|
declare function EmptyContent({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<'div'>):
|
|
33
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime78.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
|
|
36
36
|
//# sourceMappingURL=empty.d.cts.map
|
package/dist/ui/empty.d.mts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime177 from "react/jsx-runtime";
|
|
3
|
+
import * as class_variance_authority_types8 from "class-variance-authority/types";
|
|
4
4
|
|
|
5
5
|
//#region packages/components/ui/empty.d.ts
|
|
6
6
|
declare function Empty({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<'div'>):
|
|
9
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime177.JSX.Element;
|
|
10
10
|
declare function EmptyHeader({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<'div'>):
|
|
13
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime177.JSX.Element;
|
|
14
14
|
declare const emptyMediaVariants: (props?: ({
|
|
15
15
|
variant?: "default" | "icon" | null | undefined;
|
|
16
|
-
} &
|
|
16
|
+
} & class_variance_authority_types8.ClassProp) | undefined) => string;
|
|
17
17
|
declare function EmptyMedia({
|
|
18
18
|
className,
|
|
19
19
|
variant,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>):
|
|
21
|
+
}: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime177.JSX.Element;
|
|
22
22
|
declare function EmptyTitle({
|
|
23
23
|
className,
|
|
24
24
|
...props
|
|
25
|
-
}: React.ComponentProps<'div'>):
|
|
25
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime177.JSX.Element;
|
|
26
26
|
declare function EmptyDescription({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<'p'>):
|
|
29
|
+
}: React.ComponentProps<'p'>): react_jsx_runtime177.JSX.Element;
|
|
30
30
|
declare function EmptyContent({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<'div'>):
|
|
33
|
+
}: React.ComponentProps<'div'>): react_jsx_runtime177.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
|
|
36
36
|
//# sourceMappingURL=empty.d.mts.map
|
package/dist/ui/field.d.cts
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import { Label } from "./label.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime93 from "react/jsx-runtime";
|
|
3
3
|
import * as react1 from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types4 from "class-variance-authority/types";
|
|
5
5
|
import { VariantProps } from "class-variance-authority";
|
|
6
6
|
|
|
7
7
|
//#region packages/components/ui/field.d.ts
|
|
8
8
|
declare const FieldSet: react1.MemoExoticComponent<({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<"fieldset">) =>
|
|
11
|
+
}: React.ComponentProps<"fieldset">) => react_jsx_runtime93.JSX.Element>;
|
|
12
12
|
declare const FieldLegend: react1.MemoExoticComponent<({
|
|
13
13
|
className,
|
|
14
14
|
variant,
|
|
15
15
|
...props
|
|
16
16
|
}: React.ComponentProps<"legend"> & {
|
|
17
17
|
variant?: "legend" | "label";
|
|
18
|
-
}) =>
|
|
18
|
+
}) => react_jsx_runtime93.JSX.Element>;
|
|
19
19
|
declare const FieldGroup: react1.MemoExoticComponent<({
|
|
20
20
|
className,
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<"div">) =>
|
|
22
|
+
}: React.ComponentProps<"div">) => react_jsx_runtime93.JSX.Element>;
|
|
23
23
|
declare const fieldVariants: (props?: ({
|
|
24
24
|
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
25
|
-
} &
|
|
25
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string;
|
|
26
26
|
declare const Field: react1.MemoExoticComponent<({
|
|
27
27
|
className,
|
|
28
28
|
orientation,
|
|
29
29
|
...props
|
|
30
|
-
}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) =>
|
|
30
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime93.JSX.Element>;
|
|
31
31
|
declare const FieldContent: react1.MemoExoticComponent<({
|
|
32
32
|
className,
|
|
33
33
|
...props
|
|
34
|
-
}: React.ComponentProps<"div">) =>
|
|
34
|
+
}: React.ComponentProps<"div">) => react_jsx_runtime93.JSX.Element>;
|
|
35
35
|
declare const FieldLabel: react1.MemoExoticComponent<({
|
|
36
36
|
className,
|
|
37
37
|
...props
|
|
38
|
-
}: React.ComponentProps<typeof Label>) =>
|
|
38
|
+
}: React.ComponentProps<typeof Label>) => react_jsx_runtime93.JSX.Element>;
|
|
39
39
|
declare const FieldTitle: react1.MemoExoticComponent<({
|
|
40
40
|
className,
|
|
41
41
|
...props
|
|
42
|
-
}: React.ComponentProps<"div">) =>
|
|
42
|
+
}: React.ComponentProps<"div">) => react_jsx_runtime93.JSX.Element>;
|
|
43
43
|
declare const FieldDescription: react1.MemoExoticComponent<({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}: React.ComponentProps<"p">) =>
|
|
46
|
+
}: React.ComponentProps<"p">) => react_jsx_runtime93.JSX.Element>;
|
|
47
47
|
declare const FieldSeparator: react1.MemoExoticComponent<({
|
|
48
48
|
children,
|
|
49
49
|
className,
|
|
50
50
|
...props
|
|
51
51
|
}: React.ComponentProps<"div"> & {
|
|
52
52
|
children?: React.ReactNode;
|
|
53
|
-
}) =>
|
|
53
|
+
}) => react_jsx_runtime93.JSX.Element>;
|
|
54
54
|
declare const FieldError: react1.MemoExoticComponent<({
|
|
55
55
|
className,
|
|
56
56
|
children,
|
|
@@ -60,7 +60,7 @@ declare const FieldError: react1.MemoExoticComponent<({
|
|
|
60
60
|
errors?: Array<{
|
|
61
61
|
message?: string;
|
|
62
62
|
} | undefined>;
|
|
63
|
-
}) =>
|
|
63
|
+
}) => react_jsx_runtime93.JSX.Element | null>;
|
|
64
64
|
//#endregion
|
|
65
65
|
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
|
|
66
66
|
//# sourceMappingURL=field.d.cts.map
|
package/dist/ui/field.d.mts
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import { Label } from "./label.mjs";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
3
|
+
import * as react1 from "react";
|
|
4
|
+
import * as react_jsx_runtime128 from "react/jsx-runtime";
|
|
5
|
+
import * as class_variance_authority_types4 from "class-variance-authority/types";
|
|
6
6
|
|
|
7
7
|
//#region packages/components/ui/field.d.ts
|
|
8
|
-
declare const FieldSet:
|
|
8
|
+
declare const FieldSet: react1.MemoExoticComponent<({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<"fieldset">) =>
|
|
12
|
-
declare const FieldLegend:
|
|
11
|
+
}: React.ComponentProps<"fieldset">) => react_jsx_runtime128.JSX.Element>;
|
|
12
|
+
declare const FieldLegend: react1.MemoExoticComponent<({
|
|
13
13
|
className,
|
|
14
14
|
variant,
|
|
15
15
|
...props
|
|
16
16
|
}: React.ComponentProps<"legend"> & {
|
|
17
17
|
variant?: "legend" | "label";
|
|
18
|
-
}) =>
|
|
19
|
-
declare const FieldGroup:
|
|
18
|
+
}) => react_jsx_runtime128.JSX.Element>;
|
|
19
|
+
declare const FieldGroup: react1.MemoExoticComponent<({
|
|
20
20
|
className,
|
|
21
21
|
...props
|
|
22
|
-
}: React.ComponentProps<"div">) =>
|
|
22
|
+
}: React.ComponentProps<"div">) => react_jsx_runtime128.JSX.Element>;
|
|
23
23
|
declare const fieldVariants: (props?: ({
|
|
24
24
|
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
25
|
-
} &
|
|
26
|
-
declare const Field:
|
|
25
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string;
|
|
26
|
+
declare const Field: react1.MemoExoticComponent<({
|
|
27
27
|
className,
|
|
28
28
|
orientation,
|
|
29
29
|
...props
|
|
30
|
-
}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) =>
|
|
31
|
-
declare const FieldContent:
|
|
30
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>) => react_jsx_runtime128.JSX.Element>;
|
|
31
|
+
declare const FieldContent: react1.MemoExoticComponent<({
|
|
32
32
|
className,
|
|
33
33
|
...props
|
|
34
|
-
}: React.ComponentProps<"div">) =>
|
|
35
|
-
declare const FieldLabel:
|
|
34
|
+
}: React.ComponentProps<"div">) => react_jsx_runtime128.JSX.Element>;
|
|
35
|
+
declare const FieldLabel: react1.MemoExoticComponent<({
|
|
36
36
|
className,
|
|
37
37
|
...props
|
|
38
|
-
}: React.ComponentProps<typeof Label>) =>
|
|
39
|
-
declare const FieldTitle:
|
|
38
|
+
}: React.ComponentProps<typeof Label>) => react_jsx_runtime128.JSX.Element>;
|
|
39
|
+
declare const FieldTitle: react1.MemoExoticComponent<({
|
|
40
40
|
className,
|
|
41
41
|
...props
|
|
42
|
-
}: React.ComponentProps<"div">) =>
|
|
43
|
-
declare const FieldDescription:
|
|
42
|
+
}: React.ComponentProps<"div">) => react_jsx_runtime128.JSX.Element>;
|
|
43
|
+
declare const FieldDescription: react1.MemoExoticComponent<({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}: React.ComponentProps<"p">) =>
|
|
47
|
-
declare const FieldSeparator:
|
|
46
|
+
}: React.ComponentProps<"p">) => react_jsx_runtime128.JSX.Element>;
|
|
47
|
+
declare const FieldSeparator: react1.MemoExoticComponent<({
|
|
48
48
|
children,
|
|
49
49
|
className,
|
|
50
50
|
...props
|
|
51
51
|
}: React.ComponentProps<"div"> & {
|
|
52
52
|
children?: React.ReactNode;
|
|
53
|
-
}) =>
|
|
54
|
-
declare const FieldError:
|
|
53
|
+
}) => react_jsx_runtime128.JSX.Element>;
|
|
54
|
+
declare const FieldError: react1.MemoExoticComponent<({
|
|
55
55
|
className,
|
|
56
56
|
children,
|
|
57
57
|
errors,
|
|
@@ -60,7 +60,7 @@ declare const FieldError: react26.MemoExoticComponent<({
|
|
|
60
60
|
errors?: Array<{
|
|
61
61
|
message?: string;
|
|
62
62
|
} | undefined>;
|
|
63
|
-
}) =>
|
|
63
|
+
}) => react_jsx_runtime128.JSX.Element | null>;
|
|
64
64
|
//#endregion
|
|
65
65
|
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
|
|
66
66
|
//# sourceMappingURL=field.d.mts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-rdXrPUao.cjs`);const t=require(`../button-
|
|
1
|
+
"use client";const e=require(`../chunk-Bmb41Sf3.cjs`);require(`../button.variants-rdXrPUao.cjs`);const t=require(`../button-CYw2AqT0.cjs`),n=require(`./progress.cjs`);let r=require(`@customafk/react-toolkit/utils`),i=require(`react`),a=require(`react/jsx-runtime`),o=require(`lucide-react`),s=require(`react-dropzone`);s=e.t(s);let c=require(`@customafk/react-toolkit/hooks/useControllableState`),l=require(`sonner`);function u(e){let{value:t,onValueChange:n,onUpload:u,progresses:p,accept:m={"image/*":[]},maxSize:h=1024*1024*2,maxFileCount:g=1,multiple:_=!1,disabled:v=!1,showText:y=!0,iconSize:b,className:x,...S}=e,[C,w]=(0,c.useControllableState)({prop:t,onChange:n}),T=(0,i.useCallback)((e,t)=>{if(!_&&g===1&&e.length>1){l.toast.error(`Cannot upload more than 1 file at a time`);return}if((C?.length??0)+e.length>g){l.toast.error(`Cannot upload more than ${g} files`);return}let n=e.map(e=>Object.assign(e,{preview:URL.createObjectURL(e)})),r=C?[...C,...n]:n;if(w(r),t.length>0&&t.forEach(({file:e})=>{l.toast.error(`File ${e.name} was rejected`)}),u&&r.length>0&&r.length<=g){let e=r.length>0?`${r.length} files`:`file`;u(r).then(()=>{w([]),(0,l.toast)(`${e} uploaded`)})}},[C,g,_,u,w]);function E(e){if(!C)return;f(C[e])&&URL.revokeObjectURL(C[e].preview);let t=C.filter((t,n)=>n!==e);w(t),n?.(t)}(0,i.useEffect)(()=>()=>{C&&C.forEach(e=>{f(e)&&URL.revokeObjectURL(e.preview)})},[]);let D=v||(C?.length??0)>=g;return(0,a.jsxs)(`div`,{className:`relative flex w-full flex-col gap-6`,children:[(0,a.jsx)(s.default,{onDrop:T,accept:m,maxSize:h,maxFiles:g,multiple:g>1||_,disabled:D,children:({getRootProps:e,getInputProps:t,isDragActive:n})=>(0,a.jsxs)(`div`,{...e(),className:(0,r.cn)(`group`,`border-border-weak`,`hover:bg-border-weak/20`,`relative grid h-52 w-full cursor-pointer place-items-center rounded-lg border-2 border-dashed px-5 py-2.5 text-center transition`,`ring-offset-background`,`focus-visible:ring-primary-weak`,`focus-visible:ring-2`,`focus-visible:ring-offset-2`,`focus-visible:outline-hidden`,n&&`border-border-primary-strong bg-border-weak/40`,D&&`pointer-events-none opacity-60`,x),...S,children:[(0,a.jsx)(`input`,{...t()}),n?(0,a.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[(0,a.jsx)(`div`,{className:`rounded-full border border-dashed p-3`,children:(0,a.jsx)(o.Upload,{className:`text-text-positive-muted size-7`,"aria-hidden":`true`})}),(0,a.jsx)(`p`,{className:`text-text-positive-muted font-medium`,children:`Drop the files here`})]}):(0,a.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-4 sm:px-5`,children:[(0,a.jsx)(`div`,{className:`rounded-full border border-dashed p-3`,children:(0,a.jsx)(o.Upload,{size:b||24,className:`text-muted-foreground`,"aria-hidden":`true`})}),y&&(0,a.jsxs)(`div`,{className:`flex flex-col gap-px`,children:[(0,a.jsxs)(`p`,{className:`text-text-positive-weak text-xs font-medium`,children:[`Drag `,`'n'`,` drop files here, or click to select files`]}),(0,a.jsxs)(`p`,{className:`text-text-positive-muted text-xs`,children:[`You can upload`,g>1?` ${g===1/0?`multiple`:g}
|
|
2
2
|
files (up to ${(0,r.formatBytes)(h)} each)`:` a file with ${(0,r.formatBytes)(h)}`]})]})]})]})}),C?.length?(0,a.jsxs)(`div`,{className:`h-fit w-full overflow-y-auto`,children:[(0,a.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-2.5`,children:[(0,a.jsxs)(`div`,{className:`text-text-positive-weak flex items-center gap-1`,children:[(0,a.jsx)(o.Image,{size:16,"aria-hidden":`true`}),(0,a.jsxs)(`p`,{className:`text-sm`,children:[`Ảnh đã tải lên (`,C.length,`)`]})]}),(0,a.jsxs)(`button`,{className:`hover:text-text-positive text-text-positive-muted flex cursor-pointer items-center gap-1 transition-colors duration-200`,onClick:()=>{C&&(C.forEach(e=>{f(e)&&URL.revokeObjectURL(e.preview)}),w([]),n?.([]))},children:[(0,a.jsx)(o.Trash2,{size:16,"aria-hidden":`true`}),(0,a.jsx)(`p`,{className:`text-sm`,children:`Xóa tất cả`})]})]}),(0,a.jsx)(`div`,{className:`flex flex-col gap-2.5`,children:C?.map((e,t)=>(0,a.jsx)(d,{file:e,onRemove:()=>E(t),progress:p?.[e.name]},t))})]}):null]})}function d({file:e,progress:i,onRemove:s}){return(0,a.jsxs)(`div`,{className:`border-border-weak hover:border-border relative flex items-center gap-4 rounded-md border py-2 pr-3 pl-2 shadow-xs transition-colors`,children:[(0,a.jsxs)(`div`,{className:`flex flex-1 gap-2.5`,children:[f(e)?(0,a.jsx)(p,{file:e}):null,(0,a.jsxs)(`div`,{className:`flex w-full flex-col gap-2`,children:[(0,a.jsxs)(`div`,{className:`flex flex-col gap-y-0.5`,children:[(0,a.jsx)(`p`,{className:`text-text-positive line-clamp-1 text-sm`,children:e.name}),(0,a.jsx)(`p`,{className:`text-text-positive-muted text-xs`,children:(0,r.formatBytes)(e.size)})]}),i?(0,a.jsx)(n.Progress,{value:i}):null]})]}),(0,a.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,a.jsxs)(t.t,{type:`button`,variant:`ghost`,color:`secondary`,size:`icon`,className:`size-7`,onClick:s,children:[(0,a.jsx)(o.Trash2,{size:16,className:`text-text-positive-muted`,"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:`sr-only`,children:`Remove file`})]})})]})}function f(e){return`preview`in e&&typeof e.preview==`string`}function p({file:e}){return e.type.startsWith(`image/`)?(0,a.jsx)(`img`,{src:e.preview,className:`border-border aspect-square size-10 shrink-0 rounded border object-cover object-top shadow-sm`}):(0,a.jsx)(o.FileText,{className:`text-text-positive-muted size-10 border`,"aria-hidden":`true`})}exports.FileUploader=u;
|
|
3
3
|
//# sourceMappingURL=file-uploader.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime119 from "react/jsx-runtime";
|
|
2
2
|
import { DropzoneProps } from "react-dropzone";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/file-uploader.d.ts
|
|
@@ -72,7 +72,7 @@ interface FileUploaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
72
72
|
showText?: boolean;
|
|
73
73
|
iconSize?: number;
|
|
74
74
|
}
|
|
75
|
-
declare function FileUploader(props: FileUploaderProps):
|
|
75
|
+
declare function FileUploader(props: FileUploaderProps): react_jsx_runtime119.JSX.Element;
|
|
76
76
|
//#endregion
|
|
77
77
|
export { FileUploader };
|
|
78
78
|
//# sourceMappingURL=file-uploader.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime251 from "react/jsx-runtime";
|
|
2
2
|
import { DropzoneProps } from "react-dropzone";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/file-uploader.d.ts
|
|
@@ -72,7 +72,7 @@ interface FileUploaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
72
72
|
showText?: boolean;
|
|
73
73
|
iconSize?: number;
|
|
74
74
|
}
|
|
75
|
-
declare function FileUploader(props: FileUploaderProps):
|
|
75
|
+
declare function FileUploader(props: FileUploaderProps): react_jsx_runtime251.JSX.Element;
|
|
76
76
|
//#endregion
|
|
77
77
|
export { FileUploader };
|
|
78
78
|
//# sourceMappingURL=file-uploader.d.mts.map
|