@designil/labdsnov 0.0.0-stage → 1.0.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 +133 -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 +96 -0
- package/docs/ComponentTokens.md +191 -0
- package/docs/Contributing.md +97 -0
- package/docs/GettingStarted.md +106 -0
- package/docs/Radius.md +25 -0
- package/docs/Typography.md +38 -0
- package/package.json +79 -3
- package/src/components/Accordion/Accordion.md +102 -0
- package/src/components/Alert/Alert.md +90 -0
- package/src/components/AlertDialog/AlertDialog.md +131 -0
- package/src/components/Avatar/Avatar.md +77 -0
- package/src/components/Badge/Badge.md +124 -0
- package/src/components/Breadcrumb/Breadcrumb.md +110 -0
- package/src/components/Button/Button.md +165 -0
- package/src/components/ButtonGroup/ButtonGroup.md +96 -0
- package/src/components/Calendar/Calendar.md +111 -0
- package/src/components/Card/Card.md +99 -0
- package/src/components/Chart/Chart.md +112 -0
- package/src/components/Checkbox/Checkbox.md +105 -0
- package/src/components/Collapsible/Collapsible.md +86 -0
- package/src/components/Combobox/Combobox.md +143 -0
- package/src/components/DatePicker/DatePicker.md +82 -0
- package/src/components/Dialog/Dialog.md +193 -0
- package/src/components/Drawer/Drawer.md +125 -0
- package/src/components/DropdownMenu/DropdownMenu.md +151 -0
- package/src/components/Empty/Empty.md +90 -0
- package/src/components/Field/Field.md +139 -0
- package/src/components/FundCard/FundCard.md +93 -0
- package/src/components/HoverCard/HoverCard.md +100 -0
- package/src/components/Input/Input.md +115 -0
- package/src/components/InputGroup/InputGroup.md +115 -0
- package/src/components/InputOTP/InputOTP.md +105 -0
- package/src/components/Kbd/Kbd.md +85 -0
- package/src/components/Label/Label.md +75 -0
- package/src/components/NavigationMenu/NavigationMenu.md +128 -0
- package/src/components/Pagination/Pagination.md +115 -0
- package/src/components/Popover/Popover.md +111 -0
- package/src/components/Progress/Progress.md +83 -0
- package/src/components/RadioGroup/RadioGroup.md +123 -0
- package/src/components/ScrollArea/ScrollArea.md +88 -0
- package/src/components/Select/Select.md +170 -0
- package/src/components/Separator/Separator.md +68 -0
- package/src/components/Skeleton/Skeleton.md +68 -0
- package/src/components/Slider/Slider.md +107 -0
- package/src/components/Spinner/Spinner.md +64 -0
- package/src/components/Switch/Switch.md +101 -0
- package/src/components/Table/Table.md +117 -0
- package/src/components/Tabs/Tabs.md +173 -0
- package/src/components/Textarea/Textarea.md +89 -0
- package/src/components/Toaster/Toaster.md +107 -0
- package/src/components/Toggle/Toggle.md +103 -0
- package/src/components/ToggleGroup/ToggleGroup.md +95 -0
- package/src/components/Tooltip/Tooltip.md +104 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
3
|
+
import * as p from "react";
|
|
4
|
+
import { ArrowLeft01Icon as f, ArrowRight01Icon as k, ArrowDown01Icon as N } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon as v } from "@hugeicons/react";
|
|
6
|
+
import { cn as t } from "cn";
|
|
7
|
+
import { getDefaultClassNames as g, DayPicker as D } from "react-day-picker";
|
|
8
|
+
import { th as C } from "react-day-picker/locale";
|
|
9
|
+
import e from "./Calendar.module.css.js";
|
|
10
|
+
import { buttonVariants as _, Button as F } from "../Button/Button.js";
|
|
11
|
+
const T = new Intl.DateTimeFormat("th-TH", {
|
|
12
|
+
month: "long",
|
|
13
|
+
year: "numeric"
|
|
14
|
+
}), B = new Intl.DateTimeFormat("th-TH", { month: "short" }), I = new Intl.DateTimeFormat("th-TH", { year: "numeric" }), H = (s) => I.formatToParts(s).find((m) => m.type === "year")?.value ?? "", x = new Intl.DateTimeFormat("th-TH", { dateStyle: "full" });
|
|
15
|
+
function z({
|
|
16
|
+
className: s,
|
|
17
|
+
classNames: m,
|
|
18
|
+
showOutsideDays: n = !0,
|
|
19
|
+
captionLayout: l = "label",
|
|
20
|
+
buttonVariant: c = "ghost",
|
|
21
|
+
locale: i = C,
|
|
22
|
+
formatters: u,
|
|
23
|
+
labels: y,
|
|
24
|
+
components: b,
|
|
25
|
+
...w
|
|
26
|
+
}) {
|
|
27
|
+
const a = g();
|
|
28
|
+
return /* @__PURE__ */ d(
|
|
29
|
+
D,
|
|
30
|
+
{
|
|
31
|
+
showOutsideDays: n,
|
|
32
|
+
className: t(e.calendar, s),
|
|
33
|
+
captionLayout: l,
|
|
34
|
+
locale: i,
|
|
35
|
+
formatters: {
|
|
36
|
+
formatCaption: (o) => T.format(o),
|
|
37
|
+
formatMonthDropdown: (o) => B.format(o),
|
|
38
|
+
formatYearDropdown: H,
|
|
39
|
+
...u
|
|
40
|
+
},
|
|
41
|
+
labels: {
|
|
42
|
+
labelDayButton: (o, r) => [
|
|
43
|
+
x.format(o),
|
|
44
|
+
r.today && "วันนี้",
|
|
45
|
+
r.selected && "เลือกแล้ว"
|
|
46
|
+
].filter(Boolean).join(", "),
|
|
47
|
+
labelPrevious: () => "เดือนก่อนหน้า",
|
|
48
|
+
labelNext: () => "เดือนถัดไป",
|
|
49
|
+
...y
|
|
50
|
+
},
|
|
51
|
+
classNames: {
|
|
52
|
+
root: t(e.root, a.root),
|
|
53
|
+
months: t(e.months, a.months),
|
|
54
|
+
month: t(e.month, a.month),
|
|
55
|
+
nav: t(e.nav, a.nav),
|
|
56
|
+
button_previous: t(
|
|
57
|
+
_({ variant: c }),
|
|
58
|
+
e.navButton,
|
|
59
|
+
a.button_previous
|
|
60
|
+
),
|
|
61
|
+
button_next: t(
|
|
62
|
+
_({ variant: c }),
|
|
63
|
+
e.navButton,
|
|
64
|
+
a.button_next
|
|
65
|
+
),
|
|
66
|
+
month_caption: t(e.monthCaption, a.month_caption),
|
|
67
|
+
dropdowns: t(e.dropdowns, a.dropdowns),
|
|
68
|
+
dropdown_root: t(e.dropdownRoot, a.dropdown_root),
|
|
69
|
+
dropdown: t(e.dropdown, a.dropdown),
|
|
70
|
+
caption_label: t(
|
|
71
|
+
e.captionLabel,
|
|
72
|
+
l !== "label" && e.captionLabelDropdown,
|
|
73
|
+
a.caption_label
|
|
74
|
+
),
|
|
75
|
+
month_grid: t(e.monthGrid, a.month_grid),
|
|
76
|
+
weekdays: t(e.weekdays, a.weekdays),
|
|
77
|
+
weekday: t(e.weekday, a.weekday),
|
|
78
|
+
week: t(e.week, a.week),
|
|
79
|
+
week_number_header: t(
|
|
80
|
+
e.weekNumberHeader,
|
|
81
|
+
a.week_number_header
|
|
82
|
+
),
|
|
83
|
+
week_number: t(e.weekNumber, a.week_number),
|
|
84
|
+
day: t(
|
|
85
|
+
e.day,
|
|
86
|
+
w.showWeekNumber ? e.dayWithWeekNumber : e.dayFirst,
|
|
87
|
+
a.day
|
|
88
|
+
),
|
|
89
|
+
range_start: t(e.rangeStart, a.range_start),
|
|
90
|
+
range_middle: t(e.rangeMiddle, a.range_middle),
|
|
91
|
+
range_end: t(e.rangeEnd, a.range_end),
|
|
92
|
+
today: t(e.today, a.today),
|
|
93
|
+
outside: t(e.outside, a.outside),
|
|
94
|
+
disabled: t(e.disabled, a.disabled),
|
|
95
|
+
hidden: t(e.hidden, a.hidden),
|
|
96
|
+
...m
|
|
97
|
+
},
|
|
98
|
+
components: {
|
|
99
|
+
Root: ({ className: o, rootRef: r, ...h }) => /* @__PURE__ */ d(
|
|
100
|
+
"div",
|
|
101
|
+
{
|
|
102
|
+
"data-slot": "calendar",
|
|
103
|
+
ref: r,
|
|
104
|
+
className: o,
|
|
105
|
+
...h
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
Chevron: ({ className: o, orientation: r, ...h }) => /* @__PURE__ */ d(
|
|
109
|
+
v,
|
|
110
|
+
{
|
|
111
|
+
icon: r === "left" ? f : r === "right" ? k : N,
|
|
112
|
+
strokeWidth: 2,
|
|
113
|
+
className: t(e.chevron, o),
|
|
114
|
+
...h
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
DayButton: ({ ...o }) => /* @__PURE__ */ d(R, { locale: i, ...o }),
|
|
118
|
+
WeekNumber: ({ children: o, ...r }) => /* @__PURE__ */ d("td", { ...r, children: /* @__PURE__ */ d("div", { className: e.weekNumberCell, children: o }) }),
|
|
119
|
+
...b
|
|
120
|
+
},
|
|
121
|
+
...w
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
function R({
|
|
126
|
+
className: s,
|
|
127
|
+
day: m,
|
|
128
|
+
modifiers: n,
|
|
129
|
+
locale: l,
|
|
130
|
+
...c
|
|
131
|
+
}) {
|
|
132
|
+
const i = g(), u = p.useRef(null);
|
|
133
|
+
return p.useEffect(() => {
|
|
134
|
+
n.focused && u.current?.focus();
|
|
135
|
+
}, [n.focused]), /* @__PURE__ */ d(
|
|
136
|
+
F,
|
|
137
|
+
{
|
|
138
|
+
ref: u,
|
|
139
|
+
variant: "ghost",
|
|
140
|
+
size: "icon",
|
|
141
|
+
"data-day": m.date.toLocaleDateString(l?.code),
|
|
142
|
+
"data-selected-single": n.selected && !n.range_start && !n.range_end && !n.range_middle,
|
|
143
|
+
"data-range-start": n.range_start,
|
|
144
|
+
"data-range-end": n.range_end,
|
|
145
|
+
"data-range-middle": n.range_middle,
|
|
146
|
+
className: t(e.dayButton, i.day, s),
|
|
147
|
+
...c
|
|
148
|
+
}
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
export {
|
|
152
|
+
z as Calendar,
|
|
153
|
+
R as CalendarDayButton
|
|
154
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const d = "dsadv_calendar_oplxF", o = "dsadv_root_ObO-Z", e = "dsadv_months_tRgui", a = "dsadv_month_oHrDD", n = "dsadv_nav_4h58I", t = "dsadv_navButton_n6C1d", s = "dsadv_monthCaption_DTvJi", _ = "dsadv_dropdowns_r9aa9", r = "dsadv_dropdownRoot_J27BF", c = "dsadv_dropdown_Lj7Ht", v = "dsadv_captionLabel_eLoFg", i = "dsadv_captionLabelDropdown_po0IM", w = "dsadv_chevron_ZkOxr", m = "dsadv_monthGrid_eeOIY", p = "dsadv_weekdays_YzRfx", k = "dsadv_weekday_k-7Vr", l = "dsadv_week_Pm548", u = "dsadv_weekNumberHeader_eUxDY", y = "dsadv_weekNumber_ZC9Zz", b = "dsadv_weekNumberCell_DAqfS", h = "dsadv_day_ao-IC", N = "dsadv_dayFirst_2f3g2", g = "dsadv_dayWithWeekNumber_N6kfu", C = "dsadv_rangeStart_wKRKN", L = "dsadv_rangeMiddle_L3m6q", D = "dsadv_rangeEnd_I6wyM", B = "dsadv_today_p18-m", F = "dsadv_outside_HkC-6", H = "dsadv_disabled_P2vJv", R = "dsadv_hidden_02lZp", W = "dsadv_dayButton_Tg4uP", f = {
|
|
2
|
+
calendar: d,
|
|
3
|
+
root: o,
|
|
4
|
+
months: e,
|
|
5
|
+
month: a,
|
|
6
|
+
nav: n,
|
|
7
|
+
navButton: t,
|
|
8
|
+
monthCaption: s,
|
|
9
|
+
dropdowns: _,
|
|
10
|
+
dropdownRoot: r,
|
|
11
|
+
dropdown: c,
|
|
12
|
+
captionLabel: v,
|
|
13
|
+
captionLabelDropdown: i,
|
|
14
|
+
chevron: w,
|
|
15
|
+
monthGrid: m,
|
|
16
|
+
weekdays: p,
|
|
17
|
+
weekday: k,
|
|
18
|
+
week: l,
|
|
19
|
+
weekNumberHeader: u,
|
|
20
|
+
weekNumber: y,
|
|
21
|
+
weekNumberCell: b,
|
|
22
|
+
day: h,
|
|
23
|
+
dayFirst: N,
|
|
24
|
+
dayWithWeekNumber: g,
|
|
25
|
+
rangeStart: C,
|
|
26
|
+
rangeMiddle: L,
|
|
27
|
+
rangeEnd: D,
|
|
28
|
+
today: B,
|
|
29
|
+
outside: F,
|
|
30
|
+
disabled: H,
|
|
31
|
+
hidden: R,
|
|
32
|
+
dayButton: W
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
d as calendar,
|
|
36
|
+
v as captionLabel,
|
|
37
|
+
i as captionLabelDropdown,
|
|
38
|
+
w as chevron,
|
|
39
|
+
h as day,
|
|
40
|
+
W as dayButton,
|
|
41
|
+
N as dayFirst,
|
|
42
|
+
g as dayWithWeekNumber,
|
|
43
|
+
f as default,
|
|
44
|
+
H as disabled,
|
|
45
|
+
c as dropdown,
|
|
46
|
+
r as dropdownRoot,
|
|
47
|
+
_ as dropdowns,
|
|
48
|
+
R as hidden,
|
|
49
|
+
a as month,
|
|
50
|
+
s as monthCaption,
|
|
51
|
+
m as monthGrid,
|
|
52
|
+
e as months,
|
|
53
|
+
n as nav,
|
|
54
|
+
t as navButton,
|
|
55
|
+
F as outside,
|
|
56
|
+
D as rangeEnd,
|
|
57
|
+
L as rangeMiddle,
|
|
58
|
+
C as rangeStart,
|
|
59
|
+
o as root,
|
|
60
|
+
B as today,
|
|
61
|
+
l as week,
|
|
62
|
+
y as weekNumber,
|
|
63
|
+
b as weekNumberCell,
|
|
64
|
+
u as weekNumberHeader,
|
|
65
|
+
k as weekday,
|
|
66
|
+
p as weekdays
|
|
67
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Calendar";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const sizeClass: {
|
|
3
|
+
readonly default: string;
|
|
4
|
+
readonly sm: string;
|
|
5
|
+
};
|
|
6
|
+
type CardSize = keyof typeof sizeClass;
|
|
7
|
+
type CardProps = React.ComponentProps<"div"> & {
|
|
8
|
+
/** Inner spacing: `default` 24px, `sm` 16px. */
|
|
9
|
+
size?: CardSize;
|
|
10
|
+
};
|
|
11
|
+
/** Surface that groups related content, e.g. an account summary. */
|
|
12
|
+
declare function Card({ className, size, ...props }: CardProps): React.JSX.Element;
|
|
13
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
14
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
15
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
16
|
+
/** Top-right slot in the header, e.g. a ghost icon button or a `Badge`. */
|
|
17
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
18
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
19
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
20
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CardProps, type CardSize, };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as o } from "cn";
|
|
3
|
+
import r from "./Card.module.css.js";
|
|
4
|
+
const n = {
|
|
5
|
+
default: r.sizeDefault,
|
|
6
|
+
sm: r.sizeSm
|
|
7
|
+
};
|
|
8
|
+
function l({ className: a, size: t = "default", ...d }) {
|
|
9
|
+
return /* @__PURE__ */ e(
|
|
10
|
+
"div",
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "card",
|
|
13
|
+
"data-size": t,
|
|
14
|
+
className: o(r.root, n[t], a),
|
|
15
|
+
...d
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
function u({ className: a, ...t }) {
|
|
20
|
+
return /* @__PURE__ */ e(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
"data-slot": "card-header",
|
|
24
|
+
className: o(r.header, a),
|
|
25
|
+
...t
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function f({ className: a, ...t }) {
|
|
30
|
+
return /* @__PURE__ */ e(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
"data-slot": "card-title",
|
|
34
|
+
className: o(r.title, a),
|
|
35
|
+
...t
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
function m({ className: a, ...t }) {
|
|
40
|
+
return /* @__PURE__ */ e(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
"data-slot": "card-description",
|
|
44
|
+
className: o(r.description, a),
|
|
45
|
+
...t
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
function C({ className: a, ...t }) {
|
|
50
|
+
return /* @__PURE__ */ e(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
"data-slot": "card-action",
|
|
54
|
+
className: o(r.action, a),
|
|
55
|
+
...t
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
function p({ className: a, ...t }) {
|
|
60
|
+
return /* @__PURE__ */ e(
|
|
61
|
+
"div",
|
|
62
|
+
{
|
|
63
|
+
"data-slot": "card-content",
|
|
64
|
+
className: o(r.content, a),
|
|
65
|
+
...t
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
function v({ className: a, ...t }) {
|
|
70
|
+
return /* @__PURE__ */ e(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
"data-slot": "card-footer",
|
|
74
|
+
className: o(r.footer, a),
|
|
75
|
+
...t
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
export {
|
|
80
|
+
l as Card,
|
|
81
|
+
C as CardAction,
|
|
82
|
+
p as CardContent,
|
|
83
|
+
m as CardDescription,
|
|
84
|
+
v as CardFooter,
|
|
85
|
+
u as CardHeader,
|
|
86
|
+
f as CardTitle
|
|
87
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const t = "dsadv_root_c9KvZ", o = "dsadv_sizeDefault_aoX-3", s = "dsadv_sizeSm_5UqdK", e = "dsadv_header_PTXf2", d = "dsadv_title_mSgoo", n = "dsadv_description_C6XYF", a = "dsadv_action_O1AnC", c = "dsadv_content_oFIQa", i = "dsadv_footer_Mu-JC", _ = {
|
|
2
|
+
root: t,
|
|
3
|
+
sizeDefault: o,
|
|
4
|
+
sizeSm: s,
|
|
5
|
+
header: e,
|
|
6
|
+
title: d,
|
|
7
|
+
description: n,
|
|
8
|
+
action: a,
|
|
9
|
+
content: c,
|
|
10
|
+
footer: i
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
a as action,
|
|
14
|
+
c as content,
|
|
15
|
+
_ as default,
|
|
16
|
+
n as description,
|
|
17
|
+
i as footer,
|
|
18
|
+
e as header,
|
|
19
|
+
t as root,
|
|
20
|
+
o as sizeDefault,
|
|
21
|
+
s as sizeSm,
|
|
22
|
+
d as title
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Card";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as RechartsPrimitive from "recharts";
|
|
3
|
+
import type { TooltipValueType } from "recharts";
|
|
4
|
+
declare const THEMES: {
|
|
5
|
+
readonly light: "";
|
|
6
|
+
readonly dark: ".dark";
|
|
7
|
+
};
|
|
8
|
+
declare const indicatorClass: {
|
|
9
|
+
readonly dot: string;
|
|
10
|
+
readonly line: string;
|
|
11
|
+
readonly dashed: string;
|
|
12
|
+
};
|
|
13
|
+
type ChartTooltipIndicator = keyof typeof indicatorClass;
|
|
14
|
+
type TooltipNameType = number | string;
|
|
15
|
+
/**
|
|
16
|
+
* One entry per data key: its label (Thai) and colour. Colours become
|
|
17
|
+
* `--color-<key>` on the chart, so series use `var(--color-<key>)`.
|
|
18
|
+
* Prefer tokens, e.g. `{ color: "var(--chart-1)" }`.
|
|
19
|
+
*/
|
|
20
|
+
export type ChartConfig = Record<string, {
|
|
21
|
+
label?: React.ReactNode;
|
|
22
|
+
icon?: React.ComponentType;
|
|
23
|
+
} & ({
|
|
24
|
+
color?: string;
|
|
25
|
+
theme?: never;
|
|
26
|
+
} | {
|
|
27
|
+
color?: never;
|
|
28
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
29
|
+
})>;
|
|
30
|
+
/** Wraps a Recharts chart: sizes it (16:9 by default), themes it with tokens and supplies `config`. */
|
|
31
|
+
declare function ChartContainer({ id, className, children, config, initialDimension, ...props }: React.ComponentProps<"div"> & {
|
|
32
|
+
config: ChartConfig;
|
|
33
|
+
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
34
|
+
initialDimension?: {
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
};
|
|
38
|
+
}): React.JSX.Element;
|
|
39
|
+
/** Writes the `--color-<key>` variables for light and dark mode. Rendered by `ChartContainer`. */
|
|
40
|
+
declare const ChartStyle: ({ id, config }: {
|
|
41
|
+
id: string;
|
|
42
|
+
config: ChartConfig;
|
|
43
|
+
}) => React.JSX.Element | null;
|
|
44
|
+
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
45
|
+
/** Tooltip box for `<ChartTooltip content={<ChartTooltipContent />} />`. Numbers use Thai formatting. */
|
|
46
|
+
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React.ComponentProps<typeof RechartsPrimitive.Tooltip> & React.ComponentProps<"div"> & {
|
|
47
|
+
hideLabel?: boolean;
|
|
48
|
+
hideIndicator?: boolean;
|
|
49
|
+
indicator?: ChartTooltipIndicator;
|
|
50
|
+
nameKey?: string;
|
|
51
|
+
labelKey?: string;
|
|
52
|
+
} & Omit<RechartsPrimitive.DefaultTooltipContentProps<TooltipValueType, TooltipNameType>, "accessibilityLayer">): React.JSX.Element | null;
|
|
53
|
+
declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
|
|
54
|
+
/** Legend for `<ChartLegend content={<ChartLegendContent />} />`, labelled from `config`. */
|
|
55
|
+
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<"div"> & {
|
|
56
|
+
hideIcon?: boolean;
|
|
57
|
+
nameKey?: string;
|
|
58
|
+
} & RechartsPrimitive.DefaultLegendContentProps): React.JSX.Element | null;
|
|
59
|
+
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, type ChartTooltipIndicator, };
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as i, jsxs as p, Fragment as R } from "react/jsx-runtime";
|
|
3
|
+
import * as N from "react";
|
|
4
|
+
import { cn as d } from "cn";
|
|
5
|
+
import * as $ from "recharts";
|
|
6
|
+
import n from "./Chart.module.css.js";
|
|
7
|
+
const E = { light: "", dark: ".dark" }, P = { width: 320, height: 200 }, M = {
|
|
8
|
+
dot: n.indicatorDot,
|
|
9
|
+
line: n.indicatorLine,
|
|
10
|
+
dashed: n.indicatorDashed
|
|
11
|
+
}, T = N.createContext(null);
|
|
12
|
+
function y() {
|
|
13
|
+
const c = N.useContext(T);
|
|
14
|
+
if (!c)
|
|
15
|
+
throw new Error("useChart must be used within a <ChartContainer />");
|
|
16
|
+
return c;
|
|
17
|
+
}
|
|
18
|
+
function K({
|
|
19
|
+
id: c,
|
|
20
|
+
className: t,
|
|
21
|
+
children: r,
|
|
22
|
+
config: o,
|
|
23
|
+
initialDimension: s = P,
|
|
24
|
+
...u
|
|
25
|
+
}) {
|
|
26
|
+
const l = N.useId(), a = `chart-${c ?? l.replace(/:/g, "")}`;
|
|
27
|
+
return /* @__PURE__ */ i(T.Provider, { value: { config: o }, children: /* @__PURE__ */ p(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
"data-slot": "chart",
|
|
31
|
+
"data-chart": a,
|
|
32
|
+
className: d(n.container, t),
|
|
33
|
+
...u,
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ i(D, { id: a, config: o }),
|
|
36
|
+
/* @__PURE__ */ i(
|
|
37
|
+
$.ResponsiveContainer,
|
|
38
|
+
{
|
|
39
|
+
initialDimension: s,
|
|
40
|
+
children: r
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
) });
|
|
46
|
+
}
|
|
47
|
+
const D = ({ id: c, config: t }) => {
|
|
48
|
+
const r = Object.entries(t).filter(
|
|
49
|
+
([, o]) => o.theme ?? o.color
|
|
50
|
+
);
|
|
51
|
+
return r.length ? /* @__PURE__ */ i(
|
|
52
|
+
"style",
|
|
53
|
+
{
|
|
54
|
+
dangerouslySetInnerHTML: {
|
|
55
|
+
__html: Object.entries(E).map(
|
|
56
|
+
([o, s]) => `
|
|
57
|
+
${s} [data-chart=${c}] {
|
|
58
|
+
${r.map(([u, l]) => {
|
|
59
|
+
const a = l.theme?.[o] ?? l.color;
|
|
60
|
+
return a ? ` --color-${u}: ${a};` : null;
|
|
61
|
+
}).join(`
|
|
62
|
+
`)}
|
|
63
|
+
}
|
|
64
|
+
`
|
|
65
|
+
).join(`
|
|
66
|
+
`)
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
) : null;
|
|
70
|
+
}, q = $.Tooltip;
|
|
71
|
+
function A({
|
|
72
|
+
active: c,
|
|
73
|
+
payload: t,
|
|
74
|
+
className: r,
|
|
75
|
+
indicator: o = "dot",
|
|
76
|
+
hideLabel: s = !1,
|
|
77
|
+
hideIndicator: u = !1,
|
|
78
|
+
label: l,
|
|
79
|
+
labelFormatter: a,
|
|
80
|
+
labelClassName: m,
|
|
81
|
+
formatter: f,
|
|
82
|
+
color: S,
|
|
83
|
+
nameKey: x,
|
|
84
|
+
labelKey: I
|
|
85
|
+
}) {
|
|
86
|
+
const { config: g } = y(), j = N.useMemo(() => {
|
|
87
|
+
if (s || !t?.length)
|
|
88
|
+
return null;
|
|
89
|
+
const [e] = t, C = `${I ?? e?.dataKey ?? e?.name ?? "value"}`, L = b(g, e, C), h = !I && typeof l == "string" ? g[l]?.label ?? l : L?.label;
|
|
90
|
+
return a ? /* @__PURE__ */ i("div", { className: d(n.tooltipLabel, m), children: a(h, t) }) : h ? /* @__PURE__ */ i("div", { className: d(n.tooltipLabel, m), children: h }) : null;
|
|
91
|
+
}, [
|
|
92
|
+
l,
|
|
93
|
+
a,
|
|
94
|
+
t,
|
|
95
|
+
s,
|
|
96
|
+
m,
|
|
97
|
+
g,
|
|
98
|
+
I
|
|
99
|
+
]);
|
|
100
|
+
if (!c || !t?.length)
|
|
101
|
+
return null;
|
|
102
|
+
const v = t.length === 1 && o !== "dot";
|
|
103
|
+
return /* @__PURE__ */ p("div", { className: d(n.tooltip, r), children: [
|
|
104
|
+
v ? null : j,
|
|
105
|
+
/* @__PURE__ */ i("div", { className: n.tooltipItems, children: t.filter((e) => e.type !== "none").map((e, C) => {
|
|
106
|
+
const L = `${x ?? e.name ?? e.dataKey ?? "value"}`, h = b(g, e, L), w = S ?? e.payload?.fill ?? e.color;
|
|
107
|
+
return /* @__PURE__ */ i(
|
|
108
|
+
"div",
|
|
109
|
+
{
|
|
110
|
+
className: d(
|
|
111
|
+
n.tooltipItem,
|
|
112
|
+
o === "dot" && n.tooltipItemCentered
|
|
113
|
+
),
|
|
114
|
+
children: f && e?.value !== void 0 && e.name ? f(e.value, e.name, e, C, e.payload) : /* @__PURE__ */ p(R, { children: [
|
|
115
|
+
h?.icon ? /* @__PURE__ */ i(h.icon, {}) : !u && /* @__PURE__ */ i(
|
|
116
|
+
"div",
|
|
117
|
+
{
|
|
118
|
+
className: d(
|
|
119
|
+
n.indicator,
|
|
120
|
+
M[o],
|
|
121
|
+
v && o === "dashed" && n.indicatorNested
|
|
122
|
+
),
|
|
123
|
+
style: {
|
|
124
|
+
"--color-bg": w,
|
|
125
|
+
"--color-border": w
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
/* @__PURE__ */ p(
|
|
130
|
+
"div",
|
|
131
|
+
{
|
|
132
|
+
className: d(
|
|
133
|
+
n.tooltipRow,
|
|
134
|
+
v ? n.tooltipRowEnd : n.tooltipRowCenter
|
|
135
|
+
),
|
|
136
|
+
children: [
|
|
137
|
+
/* @__PURE__ */ p("div", { className: n.tooltipItems, children: [
|
|
138
|
+
v ? j : null,
|
|
139
|
+
/* @__PURE__ */ i("span", { className: n.tooltipName, children: h?.label ?? e.name })
|
|
140
|
+
] }),
|
|
141
|
+
e.value != null && /* @__PURE__ */ i("span", { className: n.tooltipValue, children: typeof e.value == "number" ? e.value.toLocaleString("th-TH") : String(e.value) })
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
)
|
|
145
|
+
] })
|
|
146
|
+
},
|
|
147
|
+
C
|
|
148
|
+
);
|
|
149
|
+
}) })
|
|
150
|
+
] });
|
|
151
|
+
}
|
|
152
|
+
const B = $.Legend;
|
|
153
|
+
function V({
|
|
154
|
+
className: c,
|
|
155
|
+
hideIcon: t = !1,
|
|
156
|
+
payload: r,
|
|
157
|
+
verticalAlign: o = "bottom",
|
|
158
|
+
nameKey: s
|
|
159
|
+
}) {
|
|
160
|
+
const { config: u } = y();
|
|
161
|
+
return r?.length ? /* @__PURE__ */ i(
|
|
162
|
+
"div",
|
|
163
|
+
{
|
|
164
|
+
className: d(
|
|
165
|
+
n.legend,
|
|
166
|
+
o === "top" ? n.legendTop : n.legendBottom,
|
|
167
|
+
c
|
|
168
|
+
),
|
|
169
|
+
children: r.filter((l) => l.type !== "none").map((l, a) => {
|
|
170
|
+
const m = `${s ?? l.dataKey ?? "value"}`, f = b(u, l, m);
|
|
171
|
+
return /* @__PURE__ */ p("div", { className: n.legendItem, children: [
|
|
172
|
+
f?.icon && !t ? /* @__PURE__ */ i(f.icon, {}) : /* @__PURE__ */ i(
|
|
173
|
+
"div",
|
|
174
|
+
{
|
|
175
|
+
className: n.legendSwatch,
|
|
176
|
+
style: { backgroundColor: l.color }
|
|
177
|
+
}
|
|
178
|
+
),
|
|
179
|
+
f?.label
|
|
180
|
+
] }, a);
|
|
181
|
+
})
|
|
182
|
+
}
|
|
183
|
+
) : null;
|
|
184
|
+
}
|
|
185
|
+
function b(c, t, r) {
|
|
186
|
+
if (typeof t != "object" || t === null)
|
|
187
|
+
return;
|
|
188
|
+
const o = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0;
|
|
189
|
+
let s = r;
|
|
190
|
+
return r in t && typeof t[r] == "string" ? s = t[r] : o && r in o && typeof o[r] == "string" && (s = o[r]), s in c ? c[s] : c[r];
|
|
191
|
+
}
|
|
192
|
+
export {
|
|
193
|
+
K as ChartContainer,
|
|
194
|
+
B as ChartLegend,
|
|
195
|
+
V as ChartLegendContent,
|
|
196
|
+
D as ChartStyle,
|
|
197
|
+
q as ChartTooltip,
|
|
198
|
+
A as ChartTooltipContent
|
|
199
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const t = "dsadv_container_J3s0j", o = "dsadv_tooltip_qIA6A", d = "dsadv_tooltipLabel_-AGPq", e = "dsadv_tooltipItems_2GGeQ", n = "dsadv_tooltipItem_riGqv", i = "dsadv_tooltipItemCentered_P4y2q", a = "dsadv_tooltipRow_zNdJa", s = "dsadv_tooltipRowEnd_gz4VL", l = "dsadv_tooltipRowCenter_XNANr", c = "dsadv_tooltipName_5aQ8y", _ = "dsadv_tooltipValue_iZpxb", p = "dsadv_indicator_Z8oUk", r = "dsadv_indicatorDot_mK7Fh", v = "dsadv_indicatorLine_ppnvY", m = "dsadv_indicatorDashed_NL-QL", g = "dsadv_indicatorNested_v0OzV", I = "dsadv_legend_3n9-N", w = "dsadv_legendTop_i59NI", N = "dsadv_legendBottom_KyKhy", h = "dsadv_legendItem_DsYoD", L = "dsadv_legendSwatch_hac7G", R = {
|
|
2
|
+
container: t,
|
|
3
|
+
tooltip: o,
|
|
4
|
+
tooltipLabel: d,
|
|
5
|
+
tooltipItems: e,
|
|
6
|
+
tooltipItem: n,
|
|
7
|
+
tooltipItemCentered: i,
|
|
8
|
+
tooltipRow: a,
|
|
9
|
+
tooltipRowEnd: s,
|
|
10
|
+
tooltipRowCenter: l,
|
|
11
|
+
tooltipName: c,
|
|
12
|
+
tooltipValue: _,
|
|
13
|
+
indicator: p,
|
|
14
|
+
indicatorDot: r,
|
|
15
|
+
indicatorLine: v,
|
|
16
|
+
indicatorDashed: m,
|
|
17
|
+
indicatorNested: g,
|
|
18
|
+
legend: I,
|
|
19
|
+
legendTop: w,
|
|
20
|
+
legendBottom: N,
|
|
21
|
+
legendItem: h,
|
|
22
|
+
legendSwatch: L
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
t as container,
|
|
26
|
+
R as default,
|
|
27
|
+
p as indicator,
|
|
28
|
+
m as indicatorDashed,
|
|
29
|
+
r as indicatorDot,
|
|
30
|
+
v as indicatorLine,
|
|
31
|
+
g as indicatorNested,
|
|
32
|
+
I as legend,
|
|
33
|
+
N as legendBottom,
|
|
34
|
+
h as legendItem,
|
|
35
|
+
L as legendSwatch,
|
|
36
|
+
w as legendTop,
|
|
37
|
+
o as tooltip,
|
|
38
|
+
n as tooltipItem,
|
|
39
|
+
i as tooltipItemCentered,
|
|
40
|
+
e as tooltipItems,
|
|
41
|
+
d as tooltipLabel,
|
|
42
|
+
c as tooltipName,
|
|
43
|
+
a as tooltipRow,
|
|
44
|
+
l as tooltipRowCenter,
|
|
45
|
+
s as tooltipRowEnd,
|
|
46
|
+
_ as tooltipValue
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Chart";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
|
|
2
|
+
/** Single on/off choice. Pair with `Label` or put it in a `Field`. */
|
|
3
|
+
declare function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props): import("react").JSX.Element;
|
|
4
|
+
export { Checkbox };
|