@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,84 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Avatar as e } from "@base-ui/react/avatar";
|
|
3
|
+
import { cn as s } from "cn";
|
|
4
|
+
import r from "./Avatar.module.css.js";
|
|
5
|
+
const n = {
|
|
6
|
+
sm: r.sizeSm,
|
|
7
|
+
default: r.sizeDefault,
|
|
8
|
+
lg: r.sizeLg
|
|
9
|
+
};
|
|
10
|
+
function v({ className: t, size: a = "default", ...l }) {
|
|
11
|
+
return /* @__PURE__ */ o(
|
|
12
|
+
e.Root,
|
|
13
|
+
{
|
|
14
|
+
"data-slot": "avatar",
|
|
15
|
+
"data-size": a,
|
|
16
|
+
className: s(r.root, n[a], t),
|
|
17
|
+
...l
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
function f({ className: t, ...a }) {
|
|
22
|
+
return /* @__PURE__ */ o(
|
|
23
|
+
e.Image,
|
|
24
|
+
{
|
|
25
|
+
"data-slot": "avatar-image",
|
|
26
|
+
className: s(r.image, t),
|
|
27
|
+
...a
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
function d({
|
|
32
|
+
className: t,
|
|
33
|
+
...a
|
|
34
|
+
}) {
|
|
35
|
+
return /* @__PURE__ */ o(
|
|
36
|
+
e.Fallback,
|
|
37
|
+
{
|
|
38
|
+
"data-slot": "avatar-fallback",
|
|
39
|
+
className: s(r.fallback, t),
|
|
40
|
+
...a
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
function g({ className: t, ...a }) {
|
|
45
|
+
return /* @__PURE__ */ o(
|
|
46
|
+
"span",
|
|
47
|
+
{
|
|
48
|
+
"data-slot": "avatar-badge",
|
|
49
|
+
className: s(r.badge, t),
|
|
50
|
+
...a
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
function p({ className: t, ...a }) {
|
|
55
|
+
return /* @__PURE__ */ o(
|
|
56
|
+
"div",
|
|
57
|
+
{
|
|
58
|
+
"data-slot": "avatar-group",
|
|
59
|
+
className: s(r.group, t),
|
|
60
|
+
...a
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
function A({
|
|
65
|
+
className: t,
|
|
66
|
+
...a
|
|
67
|
+
}) {
|
|
68
|
+
return /* @__PURE__ */ o(
|
|
69
|
+
"div",
|
|
70
|
+
{
|
|
71
|
+
"data-slot": "avatar-group-count",
|
|
72
|
+
className: s(r.groupCount, t),
|
|
73
|
+
...a
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
export {
|
|
78
|
+
v as Avatar,
|
|
79
|
+
g as AvatarBadge,
|
|
80
|
+
d as AvatarFallback,
|
|
81
|
+
p as AvatarGroup,
|
|
82
|
+
A as AvatarGroupCount,
|
|
83
|
+
f as AvatarImage
|
|
84
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const o = "labdsnov_root_fXu-J", s = "labdsnov_sizeSm_Rs-fa", a = "labdsnov_sizeDefault_2UcHX", e = "labdsnov_sizeLg_LuK6q", n = "labdsnov_image_ieqGp", t = "labdsnov_fallback_BWBXY", l = "labdsnov_badge_Oal8V", _ = "labdsnov_group_LHuq2", u = "labdsnov_groupCount_9Qka7", b = {
|
|
2
|
+
root: o,
|
|
3
|
+
sizeSm: s,
|
|
4
|
+
sizeDefault: a,
|
|
5
|
+
sizeLg: e,
|
|
6
|
+
image: n,
|
|
7
|
+
fallback: t,
|
|
8
|
+
badge: l,
|
|
9
|
+
group: _,
|
|
10
|
+
groupCount: u
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
l as badge,
|
|
14
|
+
b as default,
|
|
15
|
+
t as fallback,
|
|
16
|
+
_ as group,
|
|
17
|
+
u as groupCount,
|
|
18
|
+
n as image,
|
|
19
|
+
o as root,
|
|
20
|
+
a as sizeDefault,
|
|
21
|
+
e as sizeLg,
|
|
22
|
+
s as sizeSm
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Avatar";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
declare const variantClass: {
|
|
3
|
+
readonly default: string;
|
|
4
|
+
readonly secondary: string;
|
|
5
|
+
readonly outline: string;
|
|
6
|
+
readonly destructive: string;
|
|
7
|
+
readonly success: string;
|
|
8
|
+
readonly warning: string;
|
|
9
|
+
};
|
|
10
|
+
type BadgeVariant = keyof typeof variantClass;
|
|
11
|
+
type BadgeProps = useRender.ComponentProps<"span"> & {
|
|
12
|
+
/** Meaning of the label: `success` / `warning` / `destructive` for statuses and risk levels. */
|
|
13
|
+
variant?: BadgeVariant;
|
|
14
|
+
};
|
|
15
|
+
/** Short status label. Use `render={<a href="…" />}` to make it a link. */
|
|
16
|
+
declare function Badge({ className, variant, render, ...props }: BadgeProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
17
|
+
export { Badge, type BadgeProps, type BadgeVariant };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { mergeProps as s } from "@base-ui/react/merge-props";
|
|
3
|
+
import { useRender as o } from "@base-ui/react/use-render";
|
|
4
|
+
import { cn as i } from "cn";
|
|
5
|
+
import t from "./Badge.module.css.js";
|
|
6
|
+
const u = {
|
|
7
|
+
default: t.variantDefault,
|
|
8
|
+
secondary: t.variantSecondary,
|
|
9
|
+
outline: t.variantOutline,
|
|
10
|
+
destructive: t.variantDestructive,
|
|
11
|
+
success: t.variantSuccess,
|
|
12
|
+
warning: t.variantWarning
|
|
13
|
+
};
|
|
14
|
+
function f({
|
|
15
|
+
className: e,
|
|
16
|
+
variant: a = "default",
|
|
17
|
+
render: r,
|
|
18
|
+
...n
|
|
19
|
+
}) {
|
|
20
|
+
return o({
|
|
21
|
+
defaultTagName: "span",
|
|
22
|
+
props: s(
|
|
23
|
+
{
|
|
24
|
+
className: i(t.root, u[a], e)
|
|
25
|
+
},
|
|
26
|
+
n
|
|
27
|
+
),
|
|
28
|
+
render: r,
|
|
29
|
+
state: {
|
|
30
|
+
slot: "badge",
|
|
31
|
+
variant: a
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
f as Badge
|
|
37
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const a = "labdsnov_root_5osNT", n = "labdsnov_variantDefault_U2Duo", t = "labdsnov_variantSecondary_mWYji", r = "labdsnov_variantOutline_kFcuI", i = "labdsnov_variantDestructive_MxSKa", s = "labdsnov_variantSuccess_iVpS2", v = "labdsnov_variantWarning_pxExD", o = {
|
|
2
|
+
root: a,
|
|
3
|
+
variantDefault: n,
|
|
4
|
+
variantSecondary: t,
|
|
5
|
+
variantOutline: r,
|
|
6
|
+
variantDestructive: i,
|
|
7
|
+
variantSuccess: s,
|
|
8
|
+
variantWarning: v
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
o as default,
|
|
12
|
+
a as root,
|
|
13
|
+
n as variantDefault,
|
|
14
|
+
i as variantDestructive,
|
|
15
|
+
r as variantOutline,
|
|
16
|
+
t as variantSecondary,
|
|
17
|
+
s as variantSuccess,
|
|
18
|
+
v as variantWarning
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Badge";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
3
|
+
/** Trail of links from the home page to the current page. Named "เส้นทางนำทาง" for screen readers. */
|
|
4
|
+
declare function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
|
|
5
|
+
declare function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">): React.JSX.Element;
|
|
6
|
+
declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
|
|
7
|
+
/** A link to an earlier page. Use `render={<Link href="…" />}` for Next.js links. */
|
|
8
|
+
declare function BreadcrumbLink({ className, render, ...props }: useRender.ComponentProps<"a">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
9
|
+
/** The current page: plain text, marked `aria-current="page"`. */
|
|
10
|
+
declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
11
|
+
/** Chevron between items (pass children to use another symbol). Hidden from screen readers. */
|
|
12
|
+
declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
|
|
13
|
+
/** "…" in place of hidden middle items. */
|
|
14
|
+
declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
15
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, };
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { mergeProps as l } from "@base-ui/react/merge-props";
|
|
4
|
+
import { useRender as c } from "@base-ui/react/use-render";
|
|
5
|
+
import { MoreHorizontalCircle01Icon as m, ArrowRight01Icon as u } from "@hugeicons/core-free-icons";
|
|
6
|
+
import { HugeiconsIcon as s } from "@hugeicons/react";
|
|
7
|
+
import { cn as i } from "cn";
|
|
8
|
+
import t from "./Breadcrumb.module.css.js";
|
|
9
|
+
function B({ className: r, ...e }) {
|
|
10
|
+
return /* @__PURE__ */ a(
|
|
11
|
+
"nav",
|
|
12
|
+
{
|
|
13
|
+
"aria-label": "เส้นทางนำทาง",
|
|
14
|
+
"data-slot": "breadcrumb",
|
|
15
|
+
className: r,
|
|
16
|
+
...e
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
function k({ className: r, ...e }) {
|
|
21
|
+
return /* @__PURE__ */ a(
|
|
22
|
+
"ol",
|
|
23
|
+
{
|
|
24
|
+
"data-slot": "breadcrumb-list",
|
|
25
|
+
className: i(t.list, r),
|
|
26
|
+
...e
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
function I({ className: r, ...e }) {
|
|
31
|
+
return /* @__PURE__ */ a(
|
|
32
|
+
"li",
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "breadcrumb-item",
|
|
35
|
+
className: i(t.item, r),
|
|
36
|
+
...e
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
function x({
|
|
41
|
+
className: r,
|
|
42
|
+
render: e,
|
|
43
|
+
...o
|
|
44
|
+
}) {
|
|
45
|
+
return c({
|
|
46
|
+
defaultTagName: "a",
|
|
47
|
+
props: l({ className: i(t.link, r) }, o),
|
|
48
|
+
render: e,
|
|
49
|
+
state: {
|
|
50
|
+
slot: "breadcrumb-link"
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function j({ className: r, ...e }) {
|
|
55
|
+
return /* @__PURE__ */ a(
|
|
56
|
+
"span",
|
|
57
|
+
{
|
|
58
|
+
"data-slot": "breadcrumb-page",
|
|
59
|
+
role: "link",
|
|
60
|
+
"aria-disabled": "true",
|
|
61
|
+
"aria-current": "page",
|
|
62
|
+
className: i(t.page, r),
|
|
63
|
+
...e
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
function y({
|
|
68
|
+
children: r,
|
|
69
|
+
className: e,
|
|
70
|
+
...o
|
|
71
|
+
}) {
|
|
72
|
+
return /* @__PURE__ */ a(
|
|
73
|
+
"li",
|
|
74
|
+
{
|
|
75
|
+
"data-slot": "breadcrumb-separator",
|
|
76
|
+
role: "presentation",
|
|
77
|
+
"aria-hidden": "true",
|
|
78
|
+
className: i(t.separator, e),
|
|
79
|
+
...o,
|
|
80
|
+
children: r ?? /* @__PURE__ */ a(s, { icon: u, strokeWidth: 2 })
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
function H({
|
|
85
|
+
className: r,
|
|
86
|
+
...e
|
|
87
|
+
}) {
|
|
88
|
+
return /* @__PURE__ */ n(
|
|
89
|
+
"span",
|
|
90
|
+
{
|
|
91
|
+
"data-slot": "breadcrumb-ellipsis",
|
|
92
|
+
role: "presentation",
|
|
93
|
+
"aria-hidden": "true",
|
|
94
|
+
className: i(t.ellipsis, r),
|
|
95
|
+
...e,
|
|
96
|
+
children: [
|
|
97
|
+
/* @__PURE__ */ a(s, { icon: m, strokeWidth: 2 }),
|
|
98
|
+
/* @__PURE__ */ a("span", { className: t.srOnly, children: "เพิ่มเติม" })
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
export {
|
|
104
|
+
B as Breadcrumb,
|
|
105
|
+
H as BreadcrumbEllipsis,
|
|
106
|
+
I as BreadcrumbItem,
|
|
107
|
+
x as BreadcrumbLink,
|
|
108
|
+
k as BreadcrumbList,
|
|
109
|
+
j as BreadcrumbPage,
|
|
110
|
+
y as BreadcrumbSeparator
|
|
111
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const s = "labdsnov_list_0leIR", l = "labdsnov_item_ZczhA", n = "labdsnov_link_nDu8Y", t = "labdsnov_page_xJmNz", o = "labdsnov_separator_qrUX-", a = "labdsnov_ellipsis_B03-K", e = "labdsnov_srOnly_cDt-S", i = {
|
|
2
|
+
list: s,
|
|
3
|
+
item: l,
|
|
4
|
+
link: n,
|
|
5
|
+
page: t,
|
|
6
|
+
separator: o,
|
|
7
|
+
ellipsis: a,
|
|
8
|
+
srOnly: e
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
i as default,
|
|
12
|
+
a as ellipsis,
|
|
13
|
+
l as item,
|
|
14
|
+
n as link,
|
|
15
|
+
s as list,
|
|
16
|
+
t as page,
|
|
17
|
+
o as separator,
|
|
18
|
+
e as srOnly
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Breadcrumb";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
2
|
+
declare const variantClass: {
|
|
3
|
+
readonly default: string;
|
|
4
|
+
readonly outline: string;
|
|
5
|
+
readonly secondary: string;
|
|
6
|
+
readonly ghost: string;
|
|
7
|
+
readonly destructive: string;
|
|
8
|
+
readonly link: string;
|
|
9
|
+
};
|
|
10
|
+
declare const sizeClass: {
|
|
11
|
+
readonly default: string;
|
|
12
|
+
readonly xs: string;
|
|
13
|
+
readonly sm: string;
|
|
14
|
+
readonly lg: string;
|
|
15
|
+
readonly icon: string;
|
|
16
|
+
readonly "icon-xs": string;
|
|
17
|
+
readonly "icon-sm": string;
|
|
18
|
+
readonly "icon-lg": string;
|
|
19
|
+
};
|
|
20
|
+
type ButtonVariant = keyof typeof variantClass;
|
|
21
|
+
type ButtonSize = keyof typeof sizeClass;
|
|
22
|
+
type ButtonStyleOptions = {
|
|
23
|
+
/** Visual emphasis. */
|
|
24
|
+
variant?: ButtonVariant;
|
|
25
|
+
/** Height and padding; `icon*` sizes are square. */
|
|
26
|
+
size?: ButtonSize;
|
|
27
|
+
/** Stretch to the container width, e.g. Login/Register submit buttons. */
|
|
28
|
+
fullWidth?: boolean;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Class names for a button look. Use on elements that aren't a `<Button>`,
|
|
32
|
+
* e.g. a Next.js `<Link className={buttonVariants({ variant: "outline" })}>`.
|
|
33
|
+
*/
|
|
34
|
+
declare function buttonVariants({ variant, size, fullWidth, className, }?: ButtonStyleOptions & {
|
|
35
|
+
className?: string;
|
|
36
|
+
}): string;
|
|
37
|
+
type ButtonProps = ButtonPrimitive.Props & ButtonStyleOptions;
|
|
38
|
+
declare function Button({ className, variant, size, fullWidth, ...props }: ButtonProps): import("react").JSX.Element;
|
|
39
|
+
export { Button, buttonVariants, type ButtonProps, type ButtonSize, type ButtonVariant, };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { Button as c } from "@base-ui/react/button";
|
|
3
|
+
import { cn as l } from "cn";
|
|
4
|
+
import t from "./Button.module.css.js";
|
|
5
|
+
const f = {
|
|
6
|
+
default: t.variantDefault,
|
|
7
|
+
outline: t.variantOutline,
|
|
8
|
+
secondary: t.variantSecondary,
|
|
9
|
+
ghost: t.variantGhost,
|
|
10
|
+
destructive: t.variantDestructive,
|
|
11
|
+
link: t.variantLink
|
|
12
|
+
}, d = {
|
|
13
|
+
default: t.sizeDefault,
|
|
14
|
+
xs: t.sizeXs,
|
|
15
|
+
sm: t.sizeSm,
|
|
16
|
+
lg: t.sizeLg,
|
|
17
|
+
icon: t.sizeIcon,
|
|
18
|
+
"icon-xs": t.sizeIconXs,
|
|
19
|
+
"icon-sm": t.sizeIconSm,
|
|
20
|
+
"icon-lg": t.sizeIconLg
|
|
21
|
+
};
|
|
22
|
+
function s({
|
|
23
|
+
variant: n = "default",
|
|
24
|
+
size: o = "default",
|
|
25
|
+
fullWidth: a = !1,
|
|
26
|
+
className: i
|
|
27
|
+
} = {}) {
|
|
28
|
+
return l(
|
|
29
|
+
t.root,
|
|
30
|
+
f[n],
|
|
31
|
+
d[o],
|
|
32
|
+
a && t.fullWidth,
|
|
33
|
+
i
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
function g({
|
|
37
|
+
className: n,
|
|
38
|
+
variant: o,
|
|
39
|
+
size: a,
|
|
40
|
+
fullWidth: i,
|
|
41
|
+
...e
|
|
42
|
+
}) {
|
|
43
|
+
return /* @__PURE__ */ u(
|
|
44
|
+
c,
|
|
45
|
+
{
|
|
46
|
+
"data-slot": "button",
|
|
47
|
+
"data-variant": o ?? "default",
|
|
48
|
+
"data-size": a ?? "default",
|
|
49
|
+
className: typeof n == "function" ? (r) => s({
|
|
50
|
+
variant: o,
|
|
51
|
+
size: a,
|
|
52
|
+
fullWidth: i,
|
|
53
|
+
className: n(r)
|
|
54
|
+
}) : s({ variant: o, size: a, fullWidth: i, className: n }),
|
|
55
|
+
...e
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
g as Button,
|
|
61
|
+
s as buttonVariants
|
|
62
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const n = "labdsnov_root_Q2R8-", s = "labdsnov_variantDefault_9lG2N", a = "labdsnov_variantOutline_INGdB", t = "labdsnov_variantSecondary_-ltng", o = "labdsnov_variantGhost_TpjI6", i = "labdsnov_variantDestructive_GVWDb", e = "labdsnov_variantLink_mUBqB", v = "labdsnov_sizeDefault_iwWOV", c = "labdsnov_sizeXs_LBvuQ", l = "labdsnov_sizeSm_NLIhO", _ = "labdsnov_sizeLg_O7Azz", r = "labdsnov_sizeIcon_psuwO", z = "labdsnov_sizeIconXs_BorMf", d = "labdsnov_sizeIconSm_hmuYd", u = "labdsnov_sizeIconLg_e8NaG", b = "labdsnov_fullWidth_36oJT", I = {
|
|
2
|
+
root: n,
|
|
3
|
+
variantDefault: s,
|
|
4
|
+
variantOutline: a,
|
|
5
|
+
variantSecondary: t,
|
|
6
|
+
variantGhost: o,
|
|
7
|
+
variantDestructive: i,
|
|
8
|
+
variantLink: e,
|
|
9
|
+
sizeDefault: v,
|
|
10
|
+
sizeXs: c,
|
|
11
|
+
sizeSm: l,
|
|
12
|
+
sizeLg: _,
|
|
13
|
+
sizeIcon: r,
|
|
14
|
+
sizeIconXs: z,
|
|
15
|
+
sizeIconSm: d,
|
|
16
|
+
sizeIconLg: u,
|
|
17
|
+
fullWidth: b
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
I as default,
|
|
21
|
+
b as fullWidth,
|
|
22
|
+
n as root,
|
|
23
|
+
v as sizeDefault,
|
|
24
|
+
r as sizeIcon,
|
|
25
|
+
u as sizeIconLg,
|
|
26
|
+
d as sizeIconSm,
|
|
27
|
+
z as sizeIconXs,
|
|
28
|
+
_ as sizeLg,
|
|
29
|
+
l as sizeSm,
|
|
30
|
+
c as sizeXs,
|
|
31
|
+
s as variantDefault,
|
|
32
|
+
i as variantDestructive,
|
|
33
|
+
o as variantGhost,
|
|
34
|
+
e as variantLink,
|
|
35
|
+
a as variantOutline,
|
|
36
|
+
t as variantSecondary
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Button";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
import { Separator } from "../Separator";
|
|
3
|
+
declare const orientationClass: {
|
|
4
|
+
readonly horizontal: string;
|
|
5
|
+
readonly vertical: string;
|
|
6
|
+
};
|
|
7
|
+
type ButtonGroupOrientation = keyof typeof orientationClass;
|
|
8
|
+
type ButtonGroupProps = React.ComponentProps<"div"> & {
|
|
9
|
+
/** `horizontal`: one row. `vertical`: one column. */
|
|
10
|
+
orientation?: ButtonGroupOrientation;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Joins related buttons (and inputs or selects) into one bar.
|
|
14
|
+
* It's a `role="group"`: name it with `aria-label`.
|
|
15
|
+
*/
|
|
16
|
+
declare function ButtonGroup({ className, orientation, ...props }: ButtonGroupProps): import("react").JSX.Element;
|
|
17
|
+
/** A non-interactive label or unit inside the group, e.g. "AU$". */
|
|
18
|
+
declare function ButtonGroupText({ className, render, ...props }: useRender.ComponentProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
19
|
+
/** Line between buttons that have no border of their own (e.g. `default` or `secondary`). */
|
|
20
|
+
declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): import("react").JSX.Element;
|
|
21
|
+
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonGroupOrientation, type ButtonGroupProps, };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { mergeProps as s } from "@base-ui/react/merge-props";
|
|
4
|
+
import { useRender as u } from "@base-ui/react/use-render";
|
|
5
|
+
import { cn as e } from "cn";
|
|
6
|
+
import a from "./ButtonGroup.module.css.js";
|
|
7
|
+
import { Separator as p } from "../Separator/Separator.js";
|
|
8
|
+
const i = {
|
|
9
|
+
horizontal: a.horizontal,
|
|
10
|
+
vertical: a.vertical
|
|
11
|
+
};
|
|
12
|
+
function v({
|
|
13
|
+
className: o,
|
|
14
|
+
orientation: t = "horizontal",
|
|
15
|
+
...r
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ n(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
role: "group",
|
|
21
|
+
"data-slot": "button-group",
|
|
22
|
+
"data-orientation": t,
|
|
23
|
+
className: e(a.root, i[t], o),
|
|
24
|
+
...r
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
function x({
|
|
29
|
+
className: o,
|
|
30
|
+
render: t,
|
|
31
|
+
...r
|
|
32
|
+
}) {
|
|
33
|
+
return u({
|
|
34
|
+
defaultTagName: "div",
|
|
35
|
+
props: s({ className: e(a.text, o) }, r),
|
|
36
|
+
render: t,
|
|
37
|
+
state: { slot: "button-group-text" }
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function N({
|
|
41
|
+
className: o,
|
|
42
|
+
orientation: t = "vertical",
|
|
43
|
+
...r
|
|
44
|
+
}) {
|
|
45
|
+
return /* @__PURE__ */ n(
|
|
46
|
+
p,
|
|
47
|
+
{
|
|
48
|
+
"data-slot": "button-group-separator",
|
|
49
|
+
orientation: t,
|
|
50
|
+
className: e(a.separator, o),
|
|
51
|
+
...r
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
v as ButtonGroup,
|
|
57
|
+
N as ButtonGroupSeparator,
|
|
58
|
+
x as ButtonGroupText
|
|
59
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const t = "labdsnov_root_hx3hs", o = "labdsnov_horizontal_ayP77", a = "labdsnov_vertical_3XLPp", s = "labdsnov_text_FI5tg", r = "labdsnov_separator_r9q2u", n = {
|
|
2
|
+
root: t,
|
|
3
|
+
horizontal: o,
|
|
4
|
+
vertical: a,
|
|
5
|
+
text: s,
|
|
6
|
+
separator: r
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
n as default,
|
|
10
|
+
o as horizontal,
|
|
11
|
+
t as root,
|
|
12
|
+
r as separator,
|
|
13
|
+
s as text,
|
|
14
|
+
a as vertical
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ButtonGroup";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DayPicker, type DayButton, type Locale } from "react-day-picker";
|
|
3
|
+
import { Button } from "../Button";
|
|
4
|
+
type CalendarProps = React.ComponentProps<typeof DayPicker> & {
|
|
5
|
+
/** Button variant of the previous/next month arrows. */
|
|
6
|
+
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Month grid for picking a date or a range (react-day-picker). Thai by
|
|
10
|
+
* default, with Buddhist-era years. Pass `mode="single"` or `mode="range"`
|
|
11
|
+
* with `selected` / `onSelect`.
|
|
12
|
+
*/
|
|
13
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, labels, components, ...props }: CalendarProps): React.JSX.Element;
|
|
14
|
+
declare function CalendarDayButton({ className, day, modifiers, locale, ...props }: React.ComponentProps<typeof DayButton> & {
|
|
15
|
+
locale?: Partial<Locale>;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
|
+
export { Calendar, CalendarDayButton, type CalendarProps };
|