@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,103 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cn as u } from "cn";
|
|
3
|
+
import t from "./InputGroup.module.css.js";
|
|
4
|
+
import { Button as l } from "../Button/Button.js";
|
|
5
|
+
import { Input as p } from "../Input/Input.js";
|
|
6
|
+
import { Textarea as c } from "../Textarea/Textarea.js";
|
|
7
|
+
const i = {
|
|
8
|
+
"inline-start": t.addonInlineStart,
|
|
9
|
+
"inline-end": t.addonInlineEnd,
|
|
10
|
+
"block-start": t.addonBlockStart,
|
|
11
|
+
"block-end": t.addonBlockEnd
|
|
12
|
+
}, d = {
|
|
13
|
+
xs: t.buttonXs,
|
|
14
|
+
sm: t.buttonSm,
|
|
15
|
+
"icon-xs": t.buttonIconXs,
|
|
16
|
+
"icon-sm": t.buttonIconSm
|
|
17
|
+
};
|
|
18
|
+
function G({ className: n, ...o }) {
|
|
19
|
+
return /* @__PURE__ */ r(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
"data-slot": "input-group",
|
|
23
|
+
role: "group",
|
|
24
|
+
className: u(t.root, n),
|
|
25
|
+
...o
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function N({
|
|
30
|
+
className: n,
|
|
31
|
+
align: o = "inline-start",
|
|
32
|
+
onClick: e,
|
|
33
|
+
...s
|
|
34
|
+
}) {
|
|
35
|
+
return /* @__PURE__ */ r(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
role: "group",
|
|
39
|
+
"data-slot": "input-group-addon",
|
|
40
|
+
"data-align": o,
|
|
41
|
+
className: u(t.addon, i[o], n),
|
|
42
|
+
onClick: (a) => {
|
|
43
|
+
e?.(a), !a.target.closest("button") && a.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
44
|
+
},
|
|
45
|
+
...s
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
function S({
|
|
50
|
+
className: n,
|
|
51
|
+
type: o = "button",
|
|
52
|
+
variant: e = "ghost",
|
|
53
|
+
size: s = "xs",
|
|
54
|
+
...a
|
|
55
|
+
}) {
|
|
56
|
+
return /* @__PURE__ */ r(
|
|
57
|
+
l,
|
|
58
|
+
{
|
|
59
|
+
type: o,
|
|
60
|
+
"data-size": s,
|
|
61
|
+
variant: e,
|
|
62
|
+
className: u(t.button, d[s], n),
|
|
63
|
+
...a
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
function k({ className: n, ...o }) {
|
|
68
|
+
return /* @__PURE__ */ r("span", { className: u(t.text, n), ...o });
|
|
69
|
+
}
|
|
70
|
+
function T({
|
|
71
|
+
className: n,
|
|
72
|
+
...o
|
|
73
|
+
}) {
|
|
74
|
+
return /* @__PURE__ */ r(
|
|
75
|
+
p,
|
|
76
|
+
{
|
|
77
|
+
"data-slot": "input-group-control",
|
|
78
|
+
className: u(t.control, n),
|
|
79
|
+
...o
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
function B({
|
|
84
|
+
className: n,
|
|
85
|
+
...o
|
|
86
|
+
}) {
|
|
87
|
+
return /* @__PURE__ */ r(
|
|
88
|
+
c,
|
|
89
|
+
{
|
|
90
|
+
"data-slot": "input-group-control",
|
|
91
|
+
className: u(t.control, t.controlTextarea, n),
|
|
92
|
+
...o
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
export {
|
|
97
|
+
G as InputGroup,
|
|
98
|
+
N as InputGroupAddon,
|
|
99
|
+
S as InputGroupButton,
|
|
100
|
+
T as InputGroupInput,
|
|
101
|
+
k as InputGroupText,
|
|
102
|
+
B as InputGroupTextarea
|
|
103
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const o = "labdsnov_root_posWH", n = "labdsnov_control_Yvu6c", t = "labdsnov_controlTextarea_69CON", d = "labdsnov_addon_LvF7G", a = "labdsnov_addonInlineStart_2BkIM", s = "labdsnov_addonInlineEnd_VRal0", l = "labdsnov_addonBlockStart_urNnj", c = "labdsnov_addonBlockEnd_2soY4", b = "labdsnov_button_mCbqX", _ = "labdsnov_buttonXs_NqljX", r = "labdsnov_buttonIconXs_KU4cu", e = "labdsnov_buttonIconSm_NqS6Y", u = "labdsnov_text_UVXkQ", v = {
|
|
2
|
+
root: o,
|
|
3
|
+
control: n,
|
|
4
|
+
controlTextarea: t,
|
|
5
|
+
addon: d,
|
|
6
|
+
addonInlineStart: a,
|
|
7
|
+
addonInlineEnd: s,
|
|
8
|
+
addonBlockStart: l,
|
|
9
|
+
addonBlockEnd: c,
|
|
10
|
+
button: b,
|
|
11
|
+
buttonXs: _,
|
|
12
|
+
buttonIconXs: r,
|
|
13
|
+
buttonIconSm: e,
|
|
14
|
+
text: u
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
d as addon,
|
|
18
|
+
c as addonBlockEnd,
|
|
19
|
+
l as addonBlockStart,
|
|
20
|
+
s as addonInlineEnd,
|
|
21
|
+
a as addonInlineStart,
|
|
22
|
+
b as button,
|
|
23
|
+
e as buttonIconSm,
|
|
24
|
+
r as buttonIconXs,
|
|
25
|
+
_ as buttonXs,
|
|
26
|
+
n as control,
|
|
27
|
+
t as controlTextarea,
|
|
28
|
+
v as default,
|
|
29
|
+
o as root,
|
|
30
|
+
u as text
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./InputGroup";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { OTPInput } from "input-otp";
|
|
3
|
+
/**
|
|
4
|
+
* One-time code field (e.g. a 6-digit sign-in code), one box per character.
|
|
5
|
+
* Wraps the `input-otp` library: pass `maxLength` and render one
|
|
6
|
+
* `InputOTPSlot` per character.
|
|
7
|
+
*/
|
|
8
|
+
declare function InputOTP({ className, containerClassName, ...props }: React.ComponentProps<typeof OTPInput> & {
|
|
9
|
+
containerClassName?: string;
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
declare function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
12
|
+
/** One character box. `index` is its position, from 0. */
|
|
13
|
+
declare function InputOTPSlot({ index, className, ...props }: React.ComponentProps<"div"> & {
|
|
14
|
+
index: number;
|
|
15
|
+
}): React.JSX.Element;
|
|
16
|
+
/** Dash between groups of boxes. */
|
|
17
|
+
declare function InputOTPSeparator({ ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
18
|
+
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r, jsxs as u } from "react/jsx-runtime";
|
|
3
|
+
import * as l from "react";
|
|
4
|
+
import { MinusSignIcon as m } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon as d } from "@hugeicons/react";
|
|
6
|
+
import { cn as n } from "cn";
|
|
7
|
+
import { OTPInput as f, OTPInputContext as I } from "input-otp";
|
|
8
|
+
import o from "./InputOTP.module.css.js";
|
|
9
|
+
function x({
|
|
10
|
+
className: t,
|
|
11
|
+
containerClassName: a,
|
|
12
|
+
...s
|
|
13
|
+
}) {
|
|
14
|
+
return /* @__PURE__ */ r(
|
|
15
|
+
f,
|
|
16
|
+
{
|
|
17
|
+
"data-slot": "input-otp",
|
|
18
|
+
containerClassName: n(o.container, a),
|
|
19
|
+
spellCheck: !1,
|
|
20
|
+
className: n(o.input, t),
|
|
21
|
+
...s
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
function C({ className: t, ...a }) {
|
|
26
|
+
return /* @__PURE__ */ r(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
"data-slot": "input-otp-group",
|
|
30
|
+
className: n(o.group, t),
|
|
31
|
+
...a
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
function g({
|
|
36
|
+
index: t,
|
|
37
|
+
className: a,
|
|
38
|
+
...s
|
|
39
|
+
}) {
|
|
40
|
+
const e = l.useContext(I), { char: i, hasFakeCaret: p, isActive: c } = e?.slots[t] ?? {};
|
|
41
|
+
return /* @__PURE__ */ u(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
"data-slot": "input-otp-slot",
|
|
45
|
+
"data-active": c,
|
|
46
|
+
className: n(o.slot, a),
|
|
47
|
+
...s,
|
|
48
|
+
children: [
|
|
49
|
+
i,
|
|
50
|
+
p && /* @__PURE__ */ r("div", { className: o.caretWrap, children: /* @__PURE__ */ r("div", { className: o.caret }) })
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
function k({ ...t }) {
|
|
56
|
+
return /* @__PURE__ */ r(
|
|
57
|
+
"div",
|
|
58
|
+
{
|
|
59
|
+
"data-slot": "input-otp-separator",
|
|
60
|
+
className: o.separator,
|
|
61
|
+
role: "separator",
|
|
62
|
+
...t,
|
|
63
|
+
children: /* @__PURE__ */ r(d, { icon: m, strokeWidth: 2 })
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
x as InputOTP,
|
|
69
|
+
C as InputOTPGroup,
|
|
70
|
+
k as InputOTPSeparator,
|
|
71
|
+
g as InputOTPSlot
|
|
72
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const o = "labdsnov_container_XgkoZ", t = "labdsnov_input_GURRg", a = "labdsnov_group_F3UGo", n = "labdsnov_slot_djlMS", s = "labdsnov_caretWrap_ZH1Xw", r = "labdsnov_caret_tUH3q", c = "labdsnov_separator_F2JVv", e = {
|
|
2
|
+
container: o,
|
|
3
|
+
input: t,
|
|
4
|
+
group: a,
|
|
5
|
+
slot: n,
|
|
6
|
+
caretWrap: s,
|
|
7
|
+
caret: r,
|
|
8
|
+
separator: c
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
r as caret,
|
|
12
|
+
s as caretWrap,
|
|
13
|
+
o as container,
|
|
14
|
+
e as default,
|
|
15
|
+
a as group,
|
|
16
|
+
t as input,
|
|
17
|
+
c as separator,
|
|
18
|
+
n as slot
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./InputOTP";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** One keyboard key, e.g. `<Kbd>⌘</Kbd>` or `<Kbd>Enter</Kbd>`. */
|
|
2
|
+
declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): import("react").JSX.Element;
|
|
3
|
+
/** Keys pressed together, e.g. ⌘ + K. Put the keys (and any "+" text) inside. */
|
|
4
|
+
declare function KbdGroup({ className, ...props }: React.ComponentProps<"kbd">): import("react").JSX.Element;
|
|
5
|
+
export { Kbd, KbdGroup };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { cn as s } from "cn";
|
|
3
|
+
import a from "./Kbd.module.css.js";
|
|
4
|
+
function p({ className: o, ...r }) {
|
|
5
|
+
return /* @__PURE__ */ t("kbd", { "data-slot": "kbd", className: s(a.root, o), ...r });
|
|
6
|
+
}
|
|
7
|
+
function u({ className: o, ...r }) {
|
|
8
|
+
return /* @__PURE__ */ t(
|
|
9
|
+
"kbd",
|
|
10
|
+
{
|
|
11
|
+
"data-slot": "kbd-group",
|
|
12
|
+
className: s(a.group, o),
|
|
13
|
+
...r
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
p as Kbd,
|
|
19
|
+
u as KbdGroup
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Kbd";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type LabelProps = React.ComponentProps<"label"> & {
|
|
3
|
+
/** Marks the field as required with a red asterisk. */
|
|
4
|
+
required?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare function Label({ className, required, ...props }: LabelProps): React.JSX.Element;
|
|
7
|
+
export { Label, type LabelProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import { cn as a } from "cn";
|
|
4
|
+
import e from "./Label.module.css.js";
|
|
5
|
+
function f({ className: r, required: o = !1, ...t }) {
|
|
6
|
+
return /* @__PURE__ */ l(
|
|
7
|
+
"label",
|
|
8
|
+
{
|
|
9
|
+
"data-slot": "label",
|
|
10
|
+
className: a(e.root, o && e.required, r),
|
|
11
|
+
...t
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
f as Label
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Label";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
|
|
3
|
+
/**
|
|
4
|
+
* Site navigation bar. Items are plain links or triggers that open a panel
|
|
5
|
+
* of links; panels share one popup that animates between them.
|
|
6
|
+
*/
|
|
7
|
+
declare function NavigationMenu({ align, className, children, ...props }: NavigationMenuPrimitive.Root.Props & Pick<NavigationMenuPrimitive.Positioner.Props, "align">): React.JSX.Element;
|
|
8
|
+
declare function NavigationMenuList({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.List>): React.JSX.Element;
|
|
9
|
+
declare function NavigationMenuItem({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Item>): React.JSX.Element;
|
|
10
|
+
/** Class names for a top-level link that should look like a trigger. */
|
|
11
|
+
declare function navigationMenuTriggerStyle(): string;
|
|
12
|
+
/** Opens its item's `NavigationMenuContent`. The chevron flips while open. */
|
|
13
|
+
declare function NavigationMenuTrigger({ className, children, ...props }: NavigationMenuPrimitive.Trigger.Props): React.JSX.Element;
|
|
14
|
+
declare function NavigationMenuContent({ className, ...props }: NavigationMenuPrimitive.Content.Props): React.JSX.Element;
|
|
15
|
+
/** The shared popup that holds the open panel. Rendered by `NavigationMenu`. */
|
|
16
|
+
declare function NavigationMenuPositioner({ className, side, sideOffset, align, alignOffset, ...props }: NavigationMenuPrimitive.Positioner.Props): React.JSX.Element;
|
|
17
|
+
/** A link, top-level or inside a panel. `active` marks the current page. */
|
|
18
|
+
declare function NavigationMenuLink({ className, ...props }: NavigationMenuPrimitive.Link.Props): React.JSX.Element;
|
|
19
|
+
declare function NavigationMenuIndicator({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Icon>): React.JSX.Element;
|
|
20
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, navigationMenuTriggerStyle, };
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { NavigationMenu as o } from "@base-ui/react/navigation-menu";
|
|
3
|
+
import { ArrowDown01Icon as g } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon as l } from "@hugeicons/react";
|
|
5
|
+
import { cn as e } from "cn";
|
|
6
|
+
import i from "./NavigationMenu.module.css.js";
|
|
7
|
+
function I({
|
|
8
|
+
align: n = "start",
|
|
9
|
+
className: t,
|
|
10
|
+
children: r,
|
|
11
|
+
...s
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ c(
|
|
14
|
+
o.Root,
|
|
15
|
+
{
|
|
16
|
+
"data-slot": "navigation-menu",
|
|
17
|
+
className: e(i.root, t),
|
|
18
|
+
...s,
|
|
19
|
+
children: [
|
|
20
|
+
r,
|
|
21
|
+
/* @__PURE__ */ a(N, { align: n })
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
function k({
|
|
27
|
+
className: n,
|
|
28
|
+
...t
|
|
29
|
+
}) {
|
|
30
|
+
return /* @__PURE__ */ a(
|
|
31
|
+
o.List,
|
|
32
|
+
{
|
|
33
|
+
"data-slot": "navigation-menu-list",
|
|
34
|
+
className: e(i.list, n),
|
|
35
|
+
...t
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
function w({
|
|
40
|
+
className: n,
|
|
41
|
+
...t
|
|
42
|
+
}) {
|
|
43
|
+
return /* @__PURE__ */ a(
|
|
44
|
+
o.Item,
|
|
45
|
+
{
|
|
46
|
+
"data-slot": "navigation-menu-item",
|
|
47
|
+
className: e(i.item, n),
|
|
48
|
+
...t
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
function L() {
|
|
53
|
+
return i.trigger;
|
|
54
|
+
}
|
|
55
|
+
function P({
|
|
56
|
+
className: n,
|
|
57
|
+
children: t,
|
|
58
|
+
...r
|
|
59
|
+
}) {
|
|
60
|
+
return /* @__PURE__ */ c(
|
|
61
|
+
o.Trigger,
|
|
62
|
+
{
|
|
63
|
+
"data-slot": "navigation-menu-trigger",
|
|
64
|
+
className: e(i.trigger, n),
|
|
65
|
+
...r,
|
|
66
|
+
children: [
|
|
67
|
+
t,
|
|
68
|
+
" ",
|
|
69
|
+
/* @__PURE__ */ a(
|
|
70
|
+
l,
|
|
71
|
+
{
|
|
72
|
+
icon: g,
|
|
73
|
+
strokeWidth: 2,
|
|
74
|
+
className: i.triggerIcon,
|
|
75
|
+
"aria-hidden": "true"
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
function x({
|
|
83
|
+
className: n,
|
|
84
|
+
...t
|
|
85
|
+
}) {
|
|
86
|
+
return /* @__PURE__ */ a(
|
|
87
|
+
o.Content,
|
|
88
|
+
{
|
|
89
|
+
"data-slot": "navigation-menu-content",
|
|
90
|
+
className: e(i.content, n),
|
|
91
|
+
...t
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
function N({
|
|
96
|
+
className: n,
|
|
97
|
+
side: t = "bottom",
|
|
98
|
+
sideOffset: r = 8,
|
|
99
|
+
align: s = "start",
|
|
100
|
+
alignOffset: u = 0,
|
|
101
|
+
...m
|
|
102
|
+
}) {
|
|
103
|
+
return /* @__PURE__ */ a(o.Portal, { children: /* @__PURE__ */ a(
|
|
104
|
+
o.Positioner,
|
|
105
|
+
{
|
|
106
|
+
side: t,
|
|
107
|
+
sideOffset: r,
|
|
108
|
+
align: s,
|
|
109
|
+
alignOffset: u,
|
|
110
|
+
className: e(i.positioner, n),
|
|
111
|
+
...m,
|
|
112
|
+
children: /* @__PURE__ */ a(o.Popup, { className: i.popup, children: /* @__PURE__ */ a(o.Viewport, { className: i.viewport }) })
|
|
113
|
+
}
|
|
114
|
+
) });
|
|
115
|
+
}
|
|
116
|
+
function T({
|
|
117
|
+
className: n,
|
|
118
|
+
...t
|
|
119
|
+
}) {
|
|
120
|
+
return /* @__PURE__ */ a(
|
|
121
|
+
o.Link,
|
|
122
|
+
{
|
|
123
|
+
"data-slot": "navigation-menu-link",
|
|
124
|
+
className: e(i.link, n),
|
|
125
|
+
...t
|
|
126
|
+
}
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
function j({
|
|
130
|
+
className: n,
|
|
131
|
+
...t
|
|
132
|
+
}) {
|
|
133
|
+
return /* @__PURE__ */ a(
|
|
134
|
+
o.Icon,
|
|
135
|
+
{
|
|
136
|
+
"data-slot": "navigation-menu-indicator",
|
|
137
|
+
className: e(i.indicator, n),
|
|
138
|
+
...t,
|
|
139
|
+
children: /* @__PURE__ */ a("div", { className: i.indicatorArrow })
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
export {
|
|
144
|
+
I as NavigationMenu,
|
|
145
|
+
x as NavigationMenuContent,
|
|
146
|
+
j as NavigationMenuIndicator,
|
|
147
|
+
w as NavigationMenuItem,
|
|
148
|
+
T as NavigationMenuLink,
|
|
149
|
+
k as NavigationMenuList,
|
|
150
|
+
N as NavigationMenuPositioner,
|
|
151
|
+
P as NavigationMenuTrigger,
|
|
152
|
+
L as navigationMenuTriggerStyle
|
|
153
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const o = "labdsnov_root_Nosqs", t = "labdsnov_list_v9FNC", n = "labdsnov_item_9RzZ7", s = "labdsnov_trigger_2gBDu", i = "labdsnov_triggerIcon_8bQez", r = "labdsnov_content_Av3Es", c = "labdsnov_positioner_XlwMW", _ = "labdsnov_popup_7glkr", e = "labdsnov_viewport_SIelp", l = "labdsnov_link_67ULr", a = "labdsnov_indicator_W1Z6F", d = "labdsnov_indicatorArrow_bZ18Q", p = {
|
|
2
|
+
root: o,
|
|
3
|
+
list: t,
|
|
4
|
+
item: n,
|
|
5
|
+
trigger: s,
|
|
6
|
+
triggerIcon: i,
|
|
7
|
+
content: r,
|
|
8
|
+
positioner: c,
|
|
9
|
+
popup: _,
|
|
10
|
+
viewport: e,
|
|
11
|
+
link: l,
|
|
12
|
+
indicator: a,
|
|
13
|
+
indicatorArrow: d
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
r as content,
|
|
17
|
+
p as default,
|
|
18
|
+
a as indicator,
|
|
19
|
+
d as indicatorArrow,
|
|
20
|
+
n as item,
|
|
21
|
+
l as link,
|
|
22
|
+
t as list,
|
|
23
|
+
_ as popup,
|
|
24
|
+
c as positioner,
|
|
25
|
+
o as root,
|
|
26
|
+
s as trigger,
|
|
27
|
+
i as triggerIcon,
|
|
28
|
+
e as viewport
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./NavigationMenu";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ButtonSize } from "../Button";
|
|
3
|
+
/** Page links for a long list. Named "การแบ่งหน้า" for screen readers. */
|
|
4
|
+
declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
|
|
5
|
+
declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
|
|
6
|
+
declare function PaginationItem({ ...props }: React.ComponentProps<"li">): React.JSX.Element;
|
|
7
|
+
type PaginationLinkProps = {
|
|
8
|
+
/** The current page: outline button with `aria-current="page"`. */
|
|
9
|
+
isActive?: boolean;
|
|
10
|
+
/** Button size; `icon` for page numbers, `default` for previous/next. */
|
|
11
|
+
size?: ButtonSize;
|
|
12
|
+
} & React.ComponentProps<"a">;
|
|
13
|
+
/**
|
|
14
|
+
* A page link, styled as a ghost icon button (outline when active). It is a
|
|
15
|
+
* plain `<a>` with button styles: rendering it through `Button` (as shadcn
|
|
16
|
+
* does) would give it `role="button"`, and screen readers would not call it a link.
|
|
17
|
+
*/
|
|
18
|
+
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): React.JSX.Element;
|
|
19
|
+
/** "ก่อนหน้า" link. The text hides below 640px, leaving the arrow. */
|
|
20
|
+
declare function PaginationPrevious({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
|
|
21
|
+
text?: string;
|
|
22
|
+
}): React.JSX.Element;
|
|
23
|
+
/** "ถัดไป" link. The text hides below 640px, leaving the arrow. */
|
|
24
|
+
declare function PaginationNext({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
|
|
25
|
+
text?: string;
|
|
26
|
+
}): React.JSX.Element;
|
|
27
|
+
/** "…" between page numbers. */
|
|
28
|
+
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
29
|
+
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PaginationLinkProps, };
|