@designil/labdsnov 0.0.0-stage → 1.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/LICENSE +21 -0
- package/README.md +150 -2
- package/dist/components/Accordion/Accordion.d.ts +8 -0
- package/dist/components/Accordion/Accordion.js +82 -0
- package/dist/components/Accordion/Accordion.module.css.js +23 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Alert/Alert.d.ts +17 -0
- package/dist/components/Alert/Alert.js +58 -0
- package/dist/components/Alert/Alert.module.css.js +17 -0
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/AlertDialog/AlertDialog.d.ts +29 -0
- package/dist/components/AlertDialog/AlertDialog.js +150 -0
- package/dist/components/AlertDialog/AlertDialog.module.css.js +23 -0
- package/dist/components/AlertDialog/index.d.ts +1 -0
- package/dist/components/Avatar/Avatar.d.ts +23 -0
- package/dist/components/Avatar/Avatar.js +84 -0
- package/dist/components/Avatar/Avatar.module.css.js +23 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Badge/Badge.d.ts +17 -0
- package/dist/components/Badge/Badge.js +37 -0
- package/dist/components/Badge/Badge.module.css.js +19 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +15 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +111 -0
- package/dist/components/Breadcrumb/Breadcrumb.module.css.js +19 -0
- package/dist/components/Breadcrumb/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +39 -0
- package/dist/components/Button/Button.js +62 -0
- package/dist/components/Button/Button.module.css.js +37 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +21 -0
- package/dist/components/ButtonGroup/ButtonGroup.js +59 -0
- package/dist/components/ButtonGroup/ButtonGroup.module.css.js +15 -0
- package/dist/components/ButtonGroup/index.d.ts +1 -0
- package/dist/components/Calendar/Calendar.d.ts +17 -0
- package/dist/components/Calendar/Calendar.js +154 -0
- package/dist/components/Calendar/Calendar.module.css.js +67 -0
- package/dist/components/Calendar/index.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +20 -0
- package/dist/components/Card/Card.js +87 -0
- package/dist/components/Card/Card.module.css.js +23 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Chart/Chart.d.ts +59 -0
- package/dist/components/Chart/Chart.js +199 -0
- package/dist/components/Chart/Chart.module.css.js +47 -0
- package/dist/components/Chart/index.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +4 -0
- package/dist/components/Checkbox/Checkbox.js +44 -0
- package/dist/components/Checkbox/Checkbox.module.css.js +13 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Collapsible/Collapsible.d.ts +8 -0
- package/dist/components/Collapsible/Collapsible.js +28 -0
- package/dist/components/Collapsible/Collapsible.module.css.js +7 -0
- package/dist/components/Collapsible/index.d.ts +1 -0
- package/dist/components/Combobox/Combobox.d.ts +36 -0
- package/dist/components/Combobox/Combobox.js +296 -0
- package/dist/components/Combobox/Combobox.module.css.js +39 -0
- package/dist/components/Combobox/index.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +28 -0
- package/dist/components/DatePicker/DatePicker.js +73 -0
- package/dist/components/DatePicker/DatePicker.module.css.js +9 -0
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/Dialog/Dialog.d.ts +27 -0
- package/dist/components/Dialog/Dialog.js +144 -0
- package/dist/components/Dialog/Dialog.module.css.js +29 -0
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Drawer/Drawer.d.ts +22 -0
- package/dist/components/Drawer/Drawer.js +166 -0
- package/dist/components/Drawer/Drawer.module.css.js +23 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +32 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +245 -0
- package/dist/components/DropdownMenu/DropdownMenu.module.css.js +33 -0
- package/dist/components/DropdownMenu/index.d.ts +1 -0
- package/dist/components/Empty/Empty.d.ts +18 -0
- package/dist/components/Empty/Empty.js +76 -0
- package/dist/components/Empty/Empty.module.css.js +21 -0
- package/dist/components/Empty/index.d.ts +1 -0
- package/dist/components/Field/Field.d.ts +53 -0
- package/dist/components/Field/Field.js +172 -0
- package/dist/components/Field/Field.module.css.js +41 -0
- package/dist/components/Field/index.d.ts +1 -0
- package/dist/components/FundCard/FundCard.d.ts +18 -0
- package/dist/components/FundCard/FundCard.js +66 -0
- package/dist/components/FundCard/FundCard.module.css.js +25 -0
- package/dist/components/FundCard/index.d.ts +1 -0
- package/dist/components/HoverCard/HoverCard.d.ts +8 -0
- package/dist/components/HoverCard/HoverCard.js +42 -0
- package/dist/components/HoverCard/HoverCard.module.css.js +9 -0
- package/dist/components/HoverCard/index.d.ts +1 -0
- package/dist/components/Input/Input.d.ts +12 -0
- package/dist/components/Input/Input.js +23 -0
- package/dist/components/Input/Input.module.css.js +11 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/InputGroup/InputGroup.d.ts +39 -0
- package/dist/components/InputGroup/InputGroup.js +103 -0
- package/dist/components/InputGroup/InputGroup.module.css.js +31 -0
- package/dist/components/InputGroup/index.d.ts +1 -0
- package/dist/components/InputOTP/InputOTP.d.ts +18 -0
- package/dist/components/InputOTP/InputOTP.js +72 -0
- package/dist/components/InputOTP/InputOTP.module.css.js +19 -0
- package/dist/components/InputOTP/index.d.ts +1 -0
- package/dist/components/Kbd/Kbd.d.ts +5 -0
- package/dist/components/Kbd/Kbd.js +20 -0
- package/dist/components/Kbd/Kbd.module.css.js +9 -0
- package/dist/components/Kbd/index.d.ts +1 -0
- package/dist/components/Label/Label.d.ts +7 -0
- package/dist/components/Label/Label.js +17 -0
- package/dist/components/Label/Label.module.css.js +9 -0
- package/dist/components/Label/index.d.ts +1 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +20 -0
- package/dist/components/NavigationMenu/NavigationMenu.js +153 -0
- package/dist/components/NavigationMenu/NavigationMenu.module.css.js +29 -0
- package/dist/components/NavigationMenu/index.d.ts +1 -0
- package/dist/components/Pagination/Pagination.d.ts +29 -0
- package/dist/components/Pagination/Pagination.js +133 -0
- package/dist/components/Pagination/Pagination.module.css.js +19 -0
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/Popover/Popover.d.ts +10 -0
- package/dist/components/Popover/Popover.js +78 -0
- package/dist/components/Popover/Popover.module.css.js +15 -0
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Progress/Progress.d.ts +12 -0
- package/dist/components/Progress/Progress.js +74 -0
- package/dist/components/Progress/Progress.module.css.js +15 -0
- package/dist/components/Progress/index.d.ts +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +6 -0
- package/dist/components/RadioGroup/RadioGroup.js +37 -0
- package/dist/components/RadioGroup/RadioGroup.module.css.js +13 -0
- package/dist/components/RadioGroup/index.d.ts +1 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +9 -0
- package/dist/components/ScrollArea/ScrollArea.js +60 -0
- package/dist/components/ScrollArea/ScrollArea.module.css.js +17 -0
- package/dist/components/ScrollArea/index.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +23 -0
- package/dist/components/Select/Select.js +188 -0
- package/dist/components/Select/Select.module.css.js +37 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Separator/Separator.d.ts +4 -0
- package/dist/components/Separator/Separator.js +22 -0
- package/dist/components/Separator/Separator.module.css.js +7 -0
- package/dist/components/Separator/index.d.ts +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +4 -0
- package/dist/components/Skeleton/Skeleton.js +16 -0
- package/dist/components/Skeleton/Skeleton.module.css.js +7 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Slider/Slider.d.ts +13 -0
- package/dist/components/Slider/Slider.js +61 -0
- package/dist/components/Slider/Slider.module.css.js +15 -0
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/Spinner/Spinner.d.ts +6 -0
- package/dist/components/Spinner/Spinner.js +22 -0
- package/dist/components/Spinner/Spinner.module.css.js +7 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/Switch/Switch.d.ts +13 -0
- package/dist/components/Switch/Switch.js +29 -0
- package/dist/components/Switch/Switch.module.css.js +13 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +12 -0
- package/dist/components/Table/Table.js +96 -0
- package/dist/components/Table/Table.module.css.js +23 -0
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts +16 -0
- package/dist/components/Tabs/Tabs.js +55 -0
- package/dist/components/Tabs/Tabs.module.css.js +17 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/Textarea/Textarea.d.ts +4 -0
- package/dist/components/Textarea/Textarea.js +16 -0
- package/dist/components/Textarea/Textarea.module.css.js +7 -0
- package/dist/components/Textarea/index.d.ts +1 -0
- package/dist/components/Toaster/Toaster.d.ts +8 -0
- package/dist/components/Toaster/Toaster.js +85 -0
- package/dist/components/Toaster/Toaster.module.css.js +11 -0
- package/dist/components/Toaster/index.d.ts +1 -0
- package/dist/components/Toggle/Toggle.d.ts +26 -0
- package/dist/components/Toggle/Toggle.js +35 -0
- package/dist/components/Toggle/Toggle.module.css.js +17 -0
- package/dist/components/Toggle/index.d.ts +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +20 -0
- package/dist/components/ToggleGroup/ToggleGroup.js +64 -0
- package/dist/components/ToggleGroup/ToggleGroup.module.css.js +11 -0
- package/dist/components/ToggleGroup/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +8 -0
- package/dist/components/Tooltip/Tooltip.js +61 -0
- package/dist/components/Tooltip/Tooltip.module.css.js +11 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +265 -0
- package/dist/styles.css +1 -0
- package/docs/Accessibility.md +129 -0
- package/docs/Colors.md +149 -0
- package/docs/ComponentTokens.md +191 -0
- package/docs/Contributing.md +104 -0
- package/docs/GettingStarted.md +106 -0
- package/docs/Radius.md +25 -0
- package/docs/Typography.md +38 -0
- package/package.json +88 -4
- package/src/components/Accordion/Accordion.dsds.yaml +195 -0
- package/src/components/Accordion/Accordion.md +102 -0
- package/src/components/Alert/Alert.dsds.yaml +206 -0
- package/src/components/Alert/Alert.md +90 -0
- package/src/components/AlertDialog/AlertDialog.dsds.yaml +243 -0
- package/src/components/AlertDialog/AlertDialog.md +131 -0
- package/src/components/Avatar/Avatar.dsds.yaml +172 -0
- package/src/components/Avatar/Avatar.md +77 -0
- package/src/components/Badge/Badge.dsds.yaml +191 -0
- package/src/components/Badge/Badge.md +124 -0
- package/src/components/Breadcrumb/Breadcrumb.dsds.yaml +162 -0
- package/src/components/Breadcrumb/Breadcrumb.md +110 -0
- package/src/components/Button/Button.dsds.yaml +350 -0
- package/src/components/Button/Button.md +165 -0
- package/src/components/ButtonGroup/ButtonGroup.dsds.yaml +193 -0
- package/src/components/ButtonGroup/ButtonGroup.md +96 -0
- package/src/components/Calendar/Calendar.dsds.yaml +236 -0
- package/src/components/Calendar/Calendar.md +111 -0
- package/src/components/Card/Card.dsds.yaml +199 -0
- package/src/components/Card/Card.md +99 -0
- package/src/components/Chart/Chart.dsds.yaml +216 -0
- package/src/components/Chart/Chart.md +112 -0
- package/src/components/Checkbox/Checkbox.dsds.yaml +215 -0
- package/src/components/Checkbox/Checkbox.md +105 -0
- package/src/components/Collapsible/Collapsible.dsds.yaml +146 -0
- package/src/components/Collapsible/Collapsible.md +86 -0
- package/src/components/Combobox/Combobox.dsds.yaml +241 -0
- package/src/components/Combobox/Combobox.md +143 -0
- package/src/components/DatePicker/DatePicker.dsds.yaml +179 -0
- package/src/components/DatePicker/DatePicker.md +82 -0
- package/src/components/Dialog/Dialog.dsds.yaml +300 -0
- package/src/components/Dialog/Dialog.md +193 -0
- package/src/components/Drawer/Drawer.dsds.yaml +207 -0
- package/src/components/Drawer/Drawer.md +125 -0
- package/src/components/DropdownMenu/DropdownMenu.dsds.yaml +265 -0
- package/src/components/DropdownMenu/DropdownMenu.md +151 -0
- package/src/components/Empty/Empty.dsds.yaml +171 -0
- package/src/components/Empty/Empty.md +90 -0
- package/src/components/Field/Field.dsds.yaml +285 -0
- package/src/components/Field/Field.md +139 -0
- package/src/components/FundCard/FundCard.dsds.yaml +195 -0
- package/src/components/FundCard/FundCard.md +93 -0
- package/src/components/HoverCard/HoverCard.dsds.yaml +157 -0
- package/src/components/HoverCard/HoverCard.md +100 -0
- package/src/components/Input/Input.dsds.yaml +235 -0
- package/src/components/Input/Input.md +115 -0
- package/src/components/InputGroup/InputGroup.dsds.yaml +234 -0
- package/src/components/InputGroup/InputGroup.md +115 -0
- package/src/components/InputOTP/InputOTP.dsds.yaml +184 -0
- package/src/components/InputOTP/InputOTP.md +105 -0
- package/src/components/Kbd/Kbd.dsds.yaml +119 -0
- package/src/components/Kbd/Kbd.md +85 -0
- package/src/components/Label/Label.dsds.yaml +141 -0
- package/src/components/Label/Label.md +75 -0
- package/src/components/NavigationMenu/NavigationMenu.dsds.yaml +196 -0
- package/src/components/NavigationMenu/NavigationMenu.md +128 -0
- package/src/components/Pagination/Pagination.dsds.yaml +172 -0
- package/src/components/Pagination/Pagination.md +115 -0
- package/src/components/Popover/Popover.dsds.yaml +168 -0
- package/src/components/Popover/Popover.md +111 -0
- package/src/components/Progress/Progress.dsds.yaml +169 -0
- package/src/components/Progress/Progress.md +83 -0
- package/src/components/RadioGroup/RadioGroup.dsds.yaml +215 -0
- package/src/components/RadioGroup/RadioGroup.md +123 -0
- package/src/components/ScrollArea/ScrollArea.dsds.yaml +153 -0
- package/src/components/ScrollArea/ScrollArea.md +88 -0
- package/src/components/Select/Select.dsds.yaml +239 -0
- package/src/components/Select/Select.md +170 -0
- package/src/components/Separator/Separator.dsds.yaml +121 -0
- package/src/components/Separator/Separator.md +68 -0
- package/src/components/Skeleton/Skeleton.dsds.yaml +124 -0
- package/src/components/Skeleton/Skeleton.md +68 -0
- package/src/components/Slider/Slider.dsds.yaml +194 -0
- package/src/components/Slider/Slider.md +107 -0
- package/src/components/Spinner/Spinner.dsds.yaml +126 -0
- package/src/components/Spinner/Spinner.md +64 -0
- package/src/components/Switch/Switch.dsds.yaml +198 -0
- package/src/components/Switch/Switch.md +101 -0
- package/src/components/Table/Table.dsds.yaml +195 -0
- package/src/components/Table/Table.md +117 -0
- package/src/components/Tabs/Tabs.dsds.yaml +239 -0
- package/src/components/Tabs/Tabs.md +173 -0
- package/src/components/Textarea/Textarea.dsds.yaml +167 -0
- package/src/components/Textarea/Textarea.md +89 -0
- package/src/components/Toaster/Toaster.dsds.yaml +226 -0
- package/src/components/Toaster/Toaster.md +107 -0
- package/src/components/Toggle/Toggle.dsds.yaml +224 -0
- package/src/components/Toggle/Toggle.md +103 -0
- package/src/components/ToggleGroup/ToggleGroup.dsds.yaml +230 -0
- package/src/components/ToggleGroup/ToggleGroup.md +95 -0
- package/src/components/Tooltip/Tooltip.dsds.yaml +202 -0
- package/src/components/Tooltip/Tooltip.md +104 -0
- package/src/index.dsds.yaml +467 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { Dialog as l } from "@base-ui/react/dialog";
|
|
4
|
+
import { Cancel01Icon as g } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon as u } from "@hugeicons/react";
|
|
6
|
+
import { cn as i } from "cn";
|
|
7
|
+
import a from "./Dialog.module.css.js";
|
|
8
|
+
import { Button as c } from "../Button/Button.js";
|
|
9
|
+
const m = {
|
|
10
|
+
sm: a.sizeSm,
|
|
11
|
+
default: a.sizeDefault,
|
|
12
|
+
lg: a.sizeLg,
|
|
13
|
+
xl: a.sizeXl
|
|
14
|
+
};
|
|
15
|
+
function x({ ...o }) {
|
|
16
|
+
return /* @__PURE__ */ t(l.Root, { "data-slot": "dialog", ...o });
|
|
17
|
+
}
|
|
18
|
+
function T({ ...o }) {
|
|
19
|
+
return /* @__PURE__ */ t(l.Trigger, { "data-slot": "dialog-trigger", ...o });
|
|
20
|
+
}
|
|
21
|
+
function f({ ...o }) {
|
|
22
|
+
return /* @__PURE__ */ t(l.Portal, { "data-slot": "dialog-portal", ...o });
|
|
23
|
+
}
|
|
24
|
+
function B({ ...o }) {
|
|
25
|
+
return /* @__PURE__ */ t(l.Close, { "data-slot": "dialog-close", ...o });
|
|
26
|
+
}
|
|
27
|
+
function p({
|
|
28
|
+
className: o,
|
|
29
|
+
...e
|
|
30
|
+
}) {
|
|
31
|
+
return /* @__PURE__ */ t(
|
|
32
|
+
l.Backdrop,
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "dialog-overlay",
|
|
35
|
+
className: i(a.overlay, o),
|
|
36
|
+
...e
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
function P({
|
|
41
|
+
className: o,
|
|
42
|
+
children: e,
|
|
43
|
+
size: r = "default",
|
|
44
|
+
showCloseButton: s = !0,
|
|
45
|
+
...d
|
|
46
|
+
}) {
|
|
47
|
+
return /* @__PURE__ */ n(f, { children: [
|
|
48
|
+
/* @__PURE__ */ t(p, {}),
|
|
49
|
+
/* @__PURE__ */ n(
|
|
50
|
+
l.Popup,
|
|
51
|
+
{
|
|
52
|
+
"data-slot": "dialog-content",
|
|
53
|
+
"data-size": r,
|
|
54
|
+
className: i(a.content, m[r], o),
|
|
55
|
+
...d,
|
|
56
|
+
children: [
|
|
57
|
+
e,
|
|
58
|
+
s && /* @__PURE__ */ n(
|
|
59
|
+
l.Close,
|
|
60
|
+
{
|
|
61
|
+
"data-slot": "dialog-close",
|
|
62
|
+
render: /* @__PURE__ */ t(
|
|
63
|
+
c,
|
|
64
|
+
{
|
|
65
|
+
variant: "ghost",
|
|
66
|
+
size: "icon-sm",
|
|
67
|
+
className: a.closeButton
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ t(u, { icon: g, strokeWidth: 2 }),
|
|
72
|
+
/* @__PURE__ */ t("span", { className: a.srOnly, children: "ปิด" })
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
] });
|
|
80
|
+
}
|
|
81
|
+
function j({ className: o, ...e }) {
|
|
82
|
+
return /* @__PURE__ */ t(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
"data-slot": "dialog-header",
|
|
86
|
+
className: i(a.header, o),
|
|
87
|
+
...e
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
function k({
|
|
92
|
+
className: o,
|
|
93
|
+
showCloseButton: e = !1,
|
|
94
|
+
children: r,
|
|
95
|
+
...s
|
|
96
|
+
}) {
|
|
97
|
+
return /* @__PURE__ */ n(
|
|
98
|
+
"div",
|
|
99
|
+
{
|
|
100
|
+
"data-slot": "dialog-footer",
|
|
101
|
+
className: i(a.footer, o),
|
|
102
|
+
...s,
|
|
103
|
+
children: [
|
|
104
|
+
r,
|
|
105
|
+
e && /* @__PURE__ */ t(l.Close, { render: /* @__PURE__ */ t(c, { variant: "outline" }), children: "ปิด" })
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
function H({ className: o, ...e }) {
|
|
111
|
+
return /* @__PURE__ */ t(
|
|
112
|
+
l.Title,
|
|
113
|
+
{
|
|
114
|
+
"data-slot": "dialog-title",
|
|
115
|
+
className: i(a.title, o),
|
|
116
|
+
...e
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
function I({
|
|
121
|
+
className: o,
|
|
122
|
+
...e
|
|
123
|
+
}) {
|
|
124
|
+
return /* @__PURE__ */ t(
|
|
125
|
+
l.Description,
|
|
126
|
+
{
|
|
127
|
+
"data-slot": "dialog-description",
|
|
128
|
+
className: i(a.description, o),
|
|
129
|
+
...e
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
export {
|
|
134
|
+
x as Dialog,
|
|
135
|
+
B as DialogClose,
|
|
136
|
+
P as DialogContent,
|
|
137
|
+
I as DialogDescription,
|
|
138
|
+
k as DialogFooter,
|
|
139
|
+
j as DialogHeader,
|
|
140
|
+
p as DialogOverlay,
|
|
141
|
+
f as DialogPortal,
|
|
142
|
+
H as DialogTitle,
|
|
143
|
+
T as DialogTrigger
|
|
144
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const s = "labdsnov_overlay_6zjBZ", o = "labdsnov_content_eXA1D", e = "labdsnov_sizeSm_S1CRD", t = "labdsnov_sizeDefault_n4cQc", n = "labdsnov_sizeLg_9nThy", l = "labdsnov_sizeXl_gcLir", c = "labdsnov_closeButton_-Z3o-", a = "labdsnov_header_bdJRp", _ = "labdsnov_footer_uRLHM", i = "labdsnov_title_glVA6", d = "labdsnov_description_6Bsa9", r = "labdsnov_srOnly_FQJCx", v = {
|
|
2
|
+
overlay: s,
|
|
3
|
+
content: o,
|
|
4
|
+
sizeSm: e,
|
|
5
|
+
sizeDefault: t,
|
|
6
|
+
sizeLg: n,
|
|
7
|
+
sizeXl: l,
|
|
8
|
+
closeButton: c,
|
|
9
|
+
header: a,
|
|
10
|
+
footer: _,
|
|
11
|
+
title: i,
|
|
12
|
+
description: d,
|
|
13
|
+
srOnly: r
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
c as closeButton,
|
|
17
|
+
o as content,
|
|
18
|
+
v as default,
|
|
19
|
+
d as description,
|
|
20
|
+
_ as footer,
|
|
21
|
+
a as header,
|
|
22
|
+
s as overlay,
|
|
23
|
+
t as sizeDefault,
|
|
24
|
+
n as sizeLg,
|
|
25
|
+
e as sizeSm,
|
|
26
|
+
l as sizeXl,
|
|
27
|
+
r as srOnly,
|
|
28
|
+
i as title
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Dialog";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer";
|
|
3
|
+
type DrawerProps = DrawerPrimitive.Root.Props & {
|
|
4
|
+
/** Show the grab bar the user can drag to close the drawer. */
|
|
5
|
+
showSwipeHandle?: boolean;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Panel that slides in from an edge (from the bottom by default) and can be
|
|
9
|
+
* swiped away. Good on phones; on large screens consider `Dialog`.
|
|
10
|
+
*/
|
|
11
|
+
declare function Drawer({ modal, showSwipeHandle, snapPoints, swipeDirection, ...props }: DrawerProps): React.JSX.Element;
|
|
12
|
+
declare function DrawerTrigger({ ...props }: DrawerPrimitive.Trigger.Props): React.JSX.Element;
|
|
13
|
+
declare function DrawerPortal({ ...props }: DrawerPrimitive.Portal.Props): React.JSX.Element;
|
|
14
|
+
declare function DrawerClose({ ...props }: DrawerPrimitive.Close.Props): React.JSX.Element;
|
|
15
|
+
declare function DrawerOverlay({ className, ...props }: DrawerPrimitive.Backdrop.Props): React.JSX.Element;
|
|
16
|
+
declare function DrawerSwipeHandle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
17
|
+
declare function DrawerContent({ className, children, ...props }: DrawerPrimitive.Popup.Props): React.JSX.Element;
|
|
18
|
+
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
19
|
+
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
20
|
+
declare function DrawerTitle({ className, ...props }: DrawerPrimitive.Title.Props): React.JSX.Element;
|
|
21
|
+
declare function DrawerDescription({ className, ...props }: DrawerPrimitive.Description.Props): React.JSX.Element;
|
|
22
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerSwipeHandle, DrawerTitle, DrawerTrigger, type DrawerProps, };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as t, jsxs as w } from "react/jsx-runtime";
|
|
3
|
+
import * as u from "react";
|
|
4
|
+
import { Drawer as a } from "@base-ui/react/drawer";
|
|
5
|
+
import { cn as n } from "cn";
|
|
6
|
+
import o from "./Drawer.module.css.js";
|
|
7
|
+
const p = u.createContext(null);
|
|
8
|
+
function m() {
|
|
9
|
+
const r = u.useContext(p);
|
|
10
|
+
if (!r)
|
|
11
|
+
throw new Error("useDrawer must be used within a Drawer.");
|
|
12
|
+
return r;
|
|
13
|
+
}
|
|
14
|
+
function y({
|
|
15
|
+
modal: r = !0,
|
|
16
|
+
showSwipeHandle: e = !1,
|
|
17
|
+
snapPoints: d,
|
|
18
|
+
swipeDirection: s = "down",
|
|
19
|
+
...i
|
|
20
|
+
}) {
|
|
21
|
+
const l = d != null && d.length > 0, c = u.useMemo(
|
|
22
|
+
() => ({ hasSnapPoints: l, modal: r, showSwipeHandle: e, swipeDirection: s }),
|
|
23
|
+
[l, r, e, s]
|
|
24
|
+
);
|
|
25
|
+
return /* @__PURE__ */ t(p.Provider, { value: c, children: /* @__PURE__ */ t(
|
|
26
|
+
a.Root,
|
|
27
|
+
{
|
|
28
|
+
"data-slot": "drawer",
|
|
29
|
+
modal: r,
|
|
30
|
+
snapPoints: d,
|
|
31
|
+
swipeDirection: s,
|
|
32
|
+
...i
|
|
33
|
+
}
|
|
34
|
+
) });
|
|
35
|
+
}
|
|
36
|
+
function P({ ...r }) {
|
|
37
|
+
return /* @__PURE__ */ t(a.Trigger, { "data-slot": "drawer-trigger", ...r });
|
|
38
|
+
}
|
|
39
|
+
function D({ ...r }) {
|
|
40
|
+
return /* @__PURE__ */ t(a.Portal, { "data-slot": "drawer-portal", ...r });
|
|
41
|
+
}
|
|
42
|
+
function T({ ...r }) {
|
|
43
|
+
return /* @__PURE__ */ t(a.Close, { "data-slot": "drawer-close", ...r });
|
|
44
|
+
}
|
|
45
|
+
function h({
|
|
46
|
+
className: r,
|
|
47
|
+
...e
|
|
48
|
+
}) {
|
|
49
|
+
return /* @__PURE__ */ t(
|
|
50
|
+
a.Backdrop,
|
|
51
|
+
{
|
|
52
|
+
"data-slot": "drawer-overlay",
|
|
53
|
+
className: n(o.overlay, r),
|
|
54
|
+
...e
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
function v({
|
|
59
|
+
className: r,
|
|
60
|
+
...e
|
|
61
|
+
}) {
|
|
62
|
+
return /* @__PURE__ */ t(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
"data-slot": "drawer-swipe-handle",
|
|
66
|
+
"aria-hidden": "true",
|
|
67
|
+
className: n(o.handle, r),
|
|
68
|
+
...e
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
function S({
|
|
73
|
+
className: r,
|
|
74
|
+
children: e,
|
|
75
|
+
...d
|
|
76
|
+
}) {
|
|
77
|
+
const { hasSnapPoints: s, modal: i, showSwipeHandle: l, swipeDirection: c } = m(), f = c === "down" || c === "up" ? "y" : "x";
|
|
78
|
+
return /* @__PURE__ */ w(D, { "data-slot": "drawer-portal", children: [
|
|
79
|
+
i === !0 && /* @__PURE__ */ t(h, { "data-snap-points": s ? "" : void 0 }),
|
|
80
|
+
/* @__PURE__ */ t(
|
|
81
|
+
a.Viewport,
|
|
82
|
+
{
|
|
83
|
+
"data-slot": "drawer-viewport",
|
|
84
|
+
"data-modal": i,
|
|
85
|
+
className: o.viewport,
|
|
86
|
+
children: /* @__PURE__ */ w(
|
|
87
|
+
a.Popup,
|
|
88
|
+
{
|
|
89
|
+
"data-slot": "drawer-popup",
|
|
90
|
+
"data-swipe-axis": f,
|
|
91
|
+
"data-snap-points": s ? "" : void 0,
|
|
92
|
+
className: n(o.popup, r),
|
|
93
|
+
...d,
|
|
94
|
+
children: [
|
|
95
|
+
l && /* @__PURE__ */ t(v, {}),
|
|
96
|
+
/* @__PURE__ */ t(
|
|
97
|
+
a.Content,
|
|
98
|
+
{
|
|
99
|
+
"data-slot": "drawer-content",
|
|
100
|
+
className: o.content,
|
|
101
|
+
children: e
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
] });
|
|
110
|
+
}
|
|
111
|
+
function j({ className: r, ...e }) {
|
|
112
|
+
return /* @__PURE__ */ t(
|
|
113
|
+
"div",
|
|
114
|
+
{
|
|
115
|
+
"data-slot": "drawer-header",
|
|
116
|
+
className: n(o.header, r),
|
|
117
|
+
...e
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
function H({ className: r, ...e }) {
|
|
122
|
+
return /* @__PURE__ */ t(
|
|
123
|
+
"div",
|
|
124
|
+
{
|
|
125
|
+
"data-slot": "drawer-footer",
|
|
126
|
+
className: n(o.footer, r),
|
|
127
|
+
...e
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
function R({ className: r, ...e }) {
|
|
132
|
+
return /* @__PURE__ */ t(
|
|
133
|
+
a.Title,
|
|
134
|
+
{
|
|
135
|
+
"data-slot": "drawer-title",
|
|
136
|
+
className: n(o.title, r),
|
|
137
|
+
...e
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
function V({
|
|
142
|
+
className: r,
|
|
143
|
+
...e
|
|
144
|
+
}) {
|
|
145
|
+
return /* @__PURE__ */ t(
|
|
146
|
+
a.Description,
|
|
147
|
+
{
|
|
148
|
+
"data-slot": "drawer-description",
|
|
149
|
+
className: n(o.description, r),
|
|
150
|
+
...e
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
export {
|
|
155
|
+
y as Drawer,
|
|
156
|
+
T as DrawerClose,
|
|
157
|
+
S as DrawerContent,
|
|
158
|
+
V as DrawerDescription,
|
|
159
|
+
H as DrawerFooter,
|
|
160
|
+
j as DrawerHeader,
|
|
161
|
+
h as DrawerOverlay,
|
|
162
|
+
D as DrawerPortal,
|
|
163
|
+
v as DrawerSwipeHandle,
|
|
164
|
+
R as DrawerTitle,
|
|
165
|
+
P as DrawerTrigger
|
|
166
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const o = "labdsnov_overlay_hcG1G", t = "labdsnov_viewport_JqUFQ", n = "labdsnov_popup_Z-udn", e = "labdsnov_handle_5B-TB", s = "labdsnov_content_hXFVS", a = "labdsnov_header_sYoP1", d = "labdsnov_footer_AuvUP", l = "labdsnov_title_LqUOu", _ = "labdsnov_description_haipn", c = {
|
|
2
|
+
overlay: o,
|
|
3
|
+
viewport: t,
|
|
4
|
+
popup: n,
|
|
5
|
+
handle: e,
|
|
6
|
+
content: s,
|
|
7
|
+
header: a,
|
|
8
|
+
footer: d,
|
|
9
|
+
title: l,
|
|
10
|
+
description: _
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
s as content,
|
|
14
|
+
c as default,
|
|
15
|
+
_ as description,
|
|
16
|
+
d as footer,
|
|
17
|
+
e as handle,
|
|
18
|
+
a as header,
|
|
19
|
+
o as overlay,
|
|
20
|
+
n as popup,
|
|
21
|
+
l as title,
|
|
22
|
+
t as viewport
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Drawer";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
3
|
+
declare const itemVariantClass: {
|
|
4
|
+
readonly default: string;
|
|
5
|
+
readonly destructive: string;
|
|
6
|
+
};
|
|
7
|
+
type DropdownMenuItemVariant = keyof typeof itemVariantClass;
|
|
8
|
+
type InsetProps = {
|
|
9
|
+
/** Indent to line up with items that have an icon or check mark. */
|
|
10
|
+
inset?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare function DropdownMenu({ ...props }: MenuPrimitive.Root.Props): React.JSX.Element;
|
|
13
|
+
declare function DropdownMenuPortal({ ...props }: MenuPrimitive.Portal.Props): React.JSX.Element;
|
|
14
|
+
declare function DropdownMenuTrigger({ ...props }: MenuPrimitive.Trigger.Props): React.JSX.Element;
|
|
15
|
+
/** The menu panel. Opens below the trigger, aligned to its start edge, at least 192px wide. */
|
|
16
|
+
declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, ...props }: MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React.JSX.Element;
|
|
17
|
+
declare function DropdownMenuGroup({ ...props }: MenuPrimitive.Group.Props): React.JSX.Element;
|
|
18
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: MenuPrimitive.GroupLabel.Props & InsetProps): React.JSX.Element;
|
|
19
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: MenuPrimitive.Item.Props & InsetProps & {
|
|
20
|
+
/** `destructive`: red text, for actions that delete or can't be undone. */
|
|
21
|
+
variant?: DropdownMenuItemVariant;
|
|
22
|
+
}): React.JSX.Element;
|
|
23
|
+
declare function DropdownMenuSub({ ...props }: MenuPrimitive.SubmenuRoot.Props): React.JSX.Element;
|
|
24
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: MenuPrimitive.SubmenuTrigger.Props & InsetProps): React.JSX.Element;
|
|
25
|
+
declare function DropdownMenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: React.ComponentProps<typeof DropdownMenuContent>): React.JSX.Element;
|
|
26
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: MenuPrimitive.CheckboxItem.Props & InsetProps): React.JSX.Element;
|
|
27
|
+
declare function DropdownMenuRadioGroup({ ...props }: MenuPrimitive.RadioGroup.Props): React.JSX.Element;
|
|
28
|
+
declare function DropdownMenuRadioItem({ className, children, inset, ...props }: MenuPrimitive.RadioItem.Props & InsetProps): React.JSX.Element;
|
|
29
|
+
declare function DropdownMenuSeparator({ className, ...props }: MenuPrimitive.Separator.Props): React.JSX.Element;
|
|
30
|
+
/** Keyboard shortcut hint at the end of an item. */
|
|
31
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
32
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownMenuItemVariant, };
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { Menu as e } from "@base-ui/react/menu";
|
|
3
|
+
import { Tick02Icon as p, ArrowRight01Icon as l } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon as m } from "@hugeicons/react";
|
|
5
|
+
import { cn as u } from "cn";
|
|
6
|
+
import r from "./DropdownMenu.module.css.js";
|
|
7
|
+
const w = {
|
|
8
|
+
default: r.itemDefault,
|
|
9
|
+
destructive: r.itemDestructive
|
|
10
|
+
};
|
|
11
|
+
function N({ ...o }) {
|
|
12
|
+
return /* @__PURE__ */ t(e.Root, { "data-slot": "dropdown-menu", ...o });
|
|
13
|
+
}
|
|
14
|
+
function k({ ...o }) {
|
|
15
|
+
return /* @__PURE__ */ t(e.Portal, { "data-slot": "dropdown-menu-portal", ...o });
|
|
16
|
+
}
|
|
17
|
+
function x({ ...o }) {
|
|
18
|
+
return /* @__PURE__ */ t(e.Trigger, { "data-slot": "dropdown-menu-trigger", ...o });
|
|
19
|
+
}
|
|
20
|
+
function h({
|
|
21
|
+
align: o = "start",
|
|
22
|
+
alignOffset: n = 0,
|
|
23
|
+
side: a = "bottom",
|
|
24
|
+
sideOffset: d = 4,
|
|
25
|
+
className: i,
|
|
26
|
+
...s
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ t(
|
|
29
|
+
e.Positioner,
|
|
30
|
+
{
|
|
31
|
+
className: r.positioner,
|
|
32
|
+
align: o,
|
|
33
|
+
alignOffset: n,
|
|
34
|
+
side: a,
|
|
35
|
+
sideOffset: d,
|
|
36
|
+
children: /* @__PURE__ */ t(
|
|
37
|
+
e.Popup,
|
|
38
|
+
{
|
|
39
|
+
"data-slot": "dropdown-menu-content",
|
|
40
|
+
className: u(r.content, i),
|
|
41
|
+
...s
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
) });
|
|
46
|
+
}
|
|
47
|
+
function R({ ...o }) {
|
|
48
|
+
return /* @__PURE__ */ t(e.Group, { "data-slot": "dropdown-menu-group", ...o });
|
|
49
|
+
}
|
|
50
|
+
function S({
|
|
51
|
+
className: o,
|
|
52
|
+
inset: n,
|
|
53
|
+
...a
|
|
54
|
+
}) {
|
|
55
|
+
return /* @__PURE__ */ t(
|
|
56
|
+
e.GroupLabel,
|
|
57
|
+
{
|
|
58
|
+
"data-slot": "dropdown-menu-label",
|
|
59
|
+
"data-inset": n,
|
|
60
|
+
className: u(r.label, n && r.inset, o),
|
|
61
|
+
...a
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
function C({
|
|
66
|
+
className: o,
|
|
67
|
+
inset: n,
|
|
68
|
+
variant: a = "default",
|
|
69
|
+
...d
|
|
70
|
+
}) {
|
|
71
|
+
return /* @__PURE__ */ t(
|
|
72
|
+
e.Item,
|
|
73
|
+
{
|
|
74
|
+
"data-slot": "dropdown-menu-item",
|
|
75
|
+
"data-inset": n,
|
|
76
|
+
"data-variant": a,
|
|
77
|
+
className: u(
|
|
78
|
+
r.item,
|
|
79
|
+
w[a],
|
|
80
|
+
n && r.inset,
|
|
81
|
+
o
|
|
82
|
+
),
|
|
83
|
+
...d
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
function T({ ...o }) {
|
|
88
|
+
return /* @__PURE__ */ t(e.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...o });
|
|
89
|
+
}
|
|
90
|
+
function G({
|
|
91
|
+
className: o,
|
|
92
|
+
inset: n,
|
|
93
|
+
children: a,
|
|
94
|
+
...d
|
|
95
|
+
}) {
|
|
96
|
+
return /* @__PURE__ */ c(
|
|
97
|
+
e.SubmenuTrigger,
|
|
98
|
+
{
|
|
99
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
100
|
+
"data-inset": n,
|
|
101
|
+
className: u(r.subTrigger, n && r.inset, o),
|
|
102
|
+
...d,
|
|
103
|
+
children: [
|
|
104
|
+
a,
|
|
105
|
+
/* @__PURE__ */ t(
|
|
106
|
+
m,
|
|
107
|
+
{
|
|
108
|
+
icon: l,
|
|
109
|
+
strokeWidth: 2,
|
|
110
|
+
className: r.subTriggerIcon
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
function P({
|
|
118
|
+
align: o = "start",
|
|
119
|
+
alignOffset: n = -3,
|
|
120
|
+
side: a = "right",
|
|
121
|
+
sideOffset: d = 0,
|
|
122
|
+
className: i,
|
|
123
|
+
...s
|
|
124
|
+
}) {
|
|
125
|
+
return /* @__PURE__ */ t(
|
|
126
|
+
h,
|
|
127
|
+
{
|
|
128
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
129
|
+
className: u(r.subContent, i),
|
|
130
|
+
align: o,
|
|
131
|
+
alignOffset: n,
|
|
132
|
+
side: a,
|
|
133
|
+
sideOffset: d,
|
|
134
|
+
...s
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
function W({
|
|
139
|
+
className: o,
|
|
140
|
+
children: n,
|
|
141
|
+
checked: a,
|
|
142
|
+
inset: d,
|
|
143
|
+
...i
|
|
144
|
+
}) {
|
|
145
|
+
return /* @__PURE__ */ c(
|
|
146
|
+
e.CheckboxItem,
|
|
147
|
+
{
|
|
148
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
149
|
+
"data-inset": d,
|
|
150
|
+
className: u(r.choiceItem, d && r.inset, o),
|
|
151
|
+
checked: a,
|
|
152
|
+
...i,
|
|
153
|
+
children: [
|
|
154
|
+
/* @__PURE__ */ t(
|
|
155
|
+
"span",
|
|
156
|
+
{
|
|
157
|
+
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
158
|
+
className: r.choiceIndicator,
|
|
159
|
+
children: /* @__PURE__ */ t(e.CheckboxItemIndicator, { children: /* @__PURE__ */ t(m, { icon: p, strokeWidth: 2 }) })
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
n
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
function j({ ...o }) {
|
|
168
|
+
return /* @__PURE__ */ t(
|
|
169
|
+
e.RadioGroup,
|
|
170
|
+
{
|
|
171
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
172
|
+
...o
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
function v({
|
|
177
|
+
className: o,
|
|
178
|
+
children: n,
|
|
179
|
+
inset: a,
|
|
180
|
+
...d
|
|
181
|
+
}) {
|
|
182
|
+
return /* @__PURE__ */ c(
|
|
183
|
+
e.RadioItem,
|
|
184
|
+
{
|
|
185
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
186
|
+
"data-inset": a,
|
|
187
|
+
className: u(r.choiceItem, a && r.inset, o),
|
|
188
|
+
...d,
|
|
189
|
+
children: [
|
|
190
|
+
/* @__PURE__ */ t(
|
|
191
|
+
"span",
|
|
192
|
+
{
|
|
193
|
+
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
194
|
+
className: r.choiceIndicator,
|
|
195
|
+
children: /* @__PURE__ */ t(e.RadioItemIndicator, { children: /* @__PURE__ */ t(m, { icon: p, strokeWidth: 2 }) })
|
|
196
|
+
}
|
|
197
|
+
),
|
|
198
|
+
n
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
function L({
|
|
204
|
+
className: o,
|
|
205
|
+
...n
|
|
206
|
+
}) {
|
|
207
|
+
return /* @__PURE__ */ t(
|
|
208
|
+
e.Separator,
|
|
209
|
+
{
|
|
210
|
+
"data-slot": "dropdown-menu-separator",
|
|
211
|
+
className: u(r.separator, o),
|
|
212
|
+
...n
|
|
213
|
+
}
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
function y({
|
|
217
|
+
className: o,
|
|
218
|
+
...n
|
|
219
|
+
}) {
|
|
220
|
+
return /* @__PURE__ */ t(
|
|
221
|
+
"span",
|
|
222
|
+
{
|
|
223
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
224
|
+
className: u(r.shortcut, o),
|
|
225
|
+
...n
|
|
226
|
+
}
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
export {
|
|
230
|
+
N as DropdownMenu,
|
|
231
|
+
W as DropdownMenuCheckboxItem,
|
|
232
|
+
h as DropdownMenuContent,
|
|
233
|
+
R as DropdownMenuGroup,
|
|
234
|
+
C as DropdownMenuItem,
|
|
235
|
+
S as DropdownMenuLabel,
|
|
236
|
+
k as DropdownMenuPortal,
|
|
237
|
+
j as DropdownMenuRadioGroup,
|
|
238
|
+
v as DropdownMenuRadioItem,
|
|
239
|
+
L as DropdownMenuSeparator,
|
|
240
|
+
y as DropdownMenuShortcut,
|
|
241
|
+
T as DropdownMenuSub,
|
|
242
|
+
P as DropdownMenuSubContent,
|
|
243
|
+
G as DropdownMenuSubTrigger,
|
|
244
|
+
x as DropdownMenuTrigger
|
|
245
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const t = "labdsnov_positioner_l0s0H", o = "labdsnov_content_LRgHM", s = "labdsnov_subContent_-iLxh", e = "labdsnov_label_6yP76", n = "labdsnov_item_T-QPZ", c = "labdsnov_subTrigger_nmDwN", i = "labdsnov_choiceItem_d0C8x", a = "labdsnov_itemDefault_18GRj", r = "labdsnov_itemDestructive_eg-Hr", l = "labdsnov_subTriggerIcon_Swlf6", _ = "labdsnov_choiceIndicator_SO-SI", b = "labdsnov_inset_Li7Ih", d = "labdsnov_separator_RimQa", u = "labdsnov_shortcut_NBjlt", v = {
|
|
2
|
+
positioner: t,
|
|
3
|
+
content: o,
|
|
4
|
+
subContent: s,
|
|
5
|
+
label: e,
|
|
6
|
+
item: n,
|
|
7
|
+
subTrigger: c,
|
|
8
|
+
choiceItem: i,
|
|
9
|
+
itemDefault: a,
|
|
10
|
+
itemDestructive: r,
|
|
11
|
+
subTriggerIcon: l,
|
|
12
|
+
choiceIndicator: _,
|
|
13
|
+
inset: b,
|
|
14
|
+
separator: d,
|
|
15
|
+
shortcut: u
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
_ as choiceIndicator,
|
|
19
|
+
i as choiceItem,
|
|
20
|
+
o as content,
|
|
21
|
+
v as default,
|
|
22
|
+
b as inset,
|
|
23
|
+
n as item,
|
|
24
|
+
a as itemDefault,
|
|
25
|
+
r as itemDestructive,
|
|
26
|
+
e as label,
|
|
27
|
+
t as positioner,
|
|
28
|
+
d as separator,
|
|
29
|
+
u as shortcut,
|
|
30
|
+
s as subContent,
|
|
31
|
+
c as subTrigger,
|
|
32
|
+
l as subTriggerIcon
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DropdownMenu";
|