@overdoser/react-toolkit 0.21.0 → 0.22.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/AGENTS.md +1 -0
- package/CHANGELOG.md +27 -0
- package/components/Accordion/Accordion.js +48 -48
- package/components/ActionButton/ActionButton.js +23 -23
- package/components/ActionButton/CopyButton.js +5 -5
- package/components/Alert/Alert.js +13 -13
- package/components/Avatar/Avatar.js +12 -12
- package/components/Badge/Badge.js +6 -6
- package/components/Breadcrumbs/Breadcrumbs.js +15 -15
- package/components/Button/Button.js +14 -14
- package/components/Card/Card.js +26 -26
- package/components/Chart/AreaChart.js +103 -103
- package/components/Chart/Axis.js +7 -7
- package/components/Chart/BarChart.js +62 -62
- package/components/Chart/ChartContainer.js +11 -11
- package/components/Chart/ChartLegend.js +7 -7
- package/components/Chart/ChartTooltip.js +13 -13
- package/components/Chart/LineChart.js +88 -88
- package/components/Chart/PieChart.js +25 -25
- package/components/Chart/RadarChart.js +42 -42
- package/components/Chart/Sparkline.js +11 -11
- package/components/Chart/TradingChart.js +126 -126
- package/components/Chart/trading/period.js +3 -3
- package/components/Chip/Chip.js +24 -24
- package/components/CodeBlock/CodeBlock.js +31 -31
- package/components/CommandPalette/CommandPalette.js +166 -166
- package/components/ConfirmDialog/ConfirmDialog.js +60 -60
- package/components/Divider/Divider.js +10 -10
- package/components/Draggable/Draggable.js +29 -29
- package/components/Drawer/Drawer.js +53 -53
- package/components/Dropdown/Dropdown.js +66 -66
- package/components/Dropdown/DropdownItem.js +13 -13
- package/components/Dropdown/DropdownLabel.js +5 -5
- package/components/Dropdown/DropdownSeparator.js +5 -5
- package/components/Dropzone/Dropzone.js +15 -15
- package/components/EmptyState/EmptyState.js +11 -11
- package/components/Form/Form.js +17 -17
- package/components/Form/FormField.js +21 -21
- package/components/Form/FormRow.js +3 -3
- package/components/ImageViewer/ImageViewer.js +118 -118
- package/components/Kbd/Kbd.js +11 -11
- package/components/KeyValueList/KeyValueList.js +32 -32
- package/components/Link/Link.js +7 -7
- package/components/List/List.js +7 -7
- package/components/Loader/Loader.js +39 -39
- package/components/Modal/Modal.js +48 -48
- package/components/PageHeader/PageHeader.js +18 -18
- package/components/Pagination/Pagination.js +23 -23
- package/components/Popover/Popover.js +25 -25
- package/components/ProgressBar/ProgressBar.js +17 -17
- package/components/RelativeTime/RelativeTime.js +10 -10
- package/components/SegmentedControl/SegmentedControl.js +38 -38
- package/components/Skeleton/Skeleton.js +10 -10
- package/components/Spinner/Spinner.js +7 -7
- package/components/SplitButton/SplitButton.js +63 -63
- package/components/SplitPane/SplitPane.js +50 -50
- package/components/StatCard/StatCard.js +32 -32
- package/components/StatusDot/StatusDot.js +7 -7
- package/components/Table/Table.js +174 -174
- package/components/Tabs/Tabs.js +47 -47
- package/components/ThemeToggle/ThemeToggle.js +31 -31
- package/components/Timeline/GanttTimeline.js +213 -213
- package/components/Timeline/HistoryTimeline.js +306 -306
- package/components/Timeline/TimelineShared.js +103 -103
- package/components/Timeline/TraceEventDetails.js +103 -103
- package/components/Timeline/TraceTimeline.js +546 -546
- package/components/Timeline/historyLayout.js +2 -2
- package/components/Timer/Timer.js +39 -39
- package/components/Toast/Toast.js +59 -59
- package/components/ToggleIconButton/ToggleIconButton.js +9 -9
- package/components/Tooltip/Tooltip.js +16 -16
- package/components/Typography/Typography.js +5 -5
- package/components/inputs/Checkbox/Checkbox.js +11 -11
- package/components/inputs/Checkbox/CheckboxGroup.js +21 -21
- package/components/inputs/DatePicker/CalendarPanel.js +113 -113
- package/components/inputs/DatePicker/DatePicker.js +39 -39
- package/components/inputs/DateTimePicker/DateTimePicker.js +119 -119
- package/components/inputs/DateTimePicker/DateTimeSegments.js +40 -40
- package/components/inputs/DateTimePicker/TimeField.js +34 -34
- package/components/inputs/Input/Input.js +13 -13
- package/components/inputs/NumberInput/NumberInput.js +16 -16
- package/components/inputs/Radio/Radio.js +17 -17
- package/components/inputs/SearchInput/SearchInput.js +25 -25
- package/components/inputs/Select/Select.d.ts +55 -3
- package/components/inputs/Select/Select.js +485 -344
- package/components/inputs/Select/{Select.module.js → Select.module.scss.js} +15 -3
- package/components/inputs/Slider/Slider.js +21 -21
- package/components/inputs/Switch/Switch.js +4 -4
- package/components/inputs/Textarea/Textarea.js +8 -8
- package/hooks/usePortalPosition.d.ts +2 -1
- package/hooks/usePortalPosition.js +6 -3
- package/hooks/useResizable.js +1 -1
- package/hooks/useTheme.js +7 -7
- package/index.css +1 -1
- package/index.js +1 -1
- package/index.layered.css +1 -1
- package/llms.txt +25 -4
- package/manifest.json +33 -4
- package/package.json +1 -1
- /package/components/Accordion/{Accordion.module.js → Accordion.module.scss.js} +0 -0
- /package/components/ActionButton/{ActionButton.module.js → ActionButton.module.scss.js} +0 -0
- /package/components/Alert/{Alert.module.js → Alert.module.scss.js} +0 -0
- /package/components/Avatar/{Avatar.module.js → Avatar.module.scss.js} +0 -0
- /package/components/Badge/{Badge.module.js → Badge.module.scss.js} +0 -0
- /package/components/Breadcrumbs/{Breadcrumbs.module.js → Breadcrumbs.module.scss.js} +0 -0
- /package/components/Button/{Button.module.js → Button.module.scss.js} +0 -0
- /package/components/Card/{Card.module.js → Card.module.scss.js} +0 -0
- /package/components/Chart/{Chart.module.js → Chart.module.scss.js} +0 -0
- /package/components/Chip/{Chip.module.js → Chip.module.scss.js} +0 -0
- /package/components/CodeBlock/{CodeBlock.module.js → CodeBlock.module.scss.js} +0 -0
- /package/components/CommandPalette/{CommandPalette.module.js → CommandPalette.module.scss.js} +0 -0
- /package/components/ConfirmDialog/{ConfirmDialog.module.js → ConfirmDialog.module.scss.js} +0 -0
- /package/components/Divider/{Divider.module.js → Divider.module.scss.js} +0 -0
- /package/components/Draggable/{Draggable.module.js → Draggable.module.scss.js} +0 -0
- /package/components/Drawer/{Drawer.module.js → Drawer.module.scss.js} +0 -0
- /package/components/Dropdown/{Dropdown.module.js → Dropdown.module.scss.js} +0 -0
- /package/components/Dropzone/{Dropzone.module.js → Dropzone.module.scss.js} +0 -0
- /package/components/EmptyState/{EmptyState.module.js → EmptyState.module.scss.js} +0 -0
- /package/components/Form/{Form.module.js → Form.module.scss.js} +0 -0
- /package/components/ImageViewer/{ImageViewer.module.js → ImageViewer.module.scss.js} +0 -0
- /package/components/Kbd/{Kbd.module.js → Kbd.module.scss.js} +0 -0
- /package/components/KeyValueList/{KeyValueList.module.js → KeyValueList.module.scss.js} +0 -0
- /package/components/Link/{Link.module.js → Link.module.scss.js} +0 -0
- /package/components/List/{List.module.js → List.module.scss.js} +0 -0
- /package/components/Loader/{Loader.module.js → Loader.module.scss.js} +0 -0
- /package/components/Modal/{Modal.module.js → Modal.module.scss.js} +0 -0
- /package/components/PageHeader/{PageHeader.module.js → PageHeader.module.scss.js} +0 -0
- /package/components/Pagination/{Pagination.module.js → Pagination.module.scss.js} +0 -0
- /package/components/Popover/{Popover.module.js → Popover.module.scss.js} +0 -0
- /package/components/ProgressBar/{ProgressBar.module.js → ProgressBar.module.scss.js} +0 -0
- /package/components/RelativeTime/{RelativeTime.module.js → RelativeTime.module.scss.js} +0 -0
- /package/components/SegmentedControl/{SegmentedControl.module.js → SegmentedControl.module.scss.js} +0 -0
- /package/components/Skeleton/{Skeleton.module.js → Skeleton.module.scss.js} +0 -0
- /package/components/Spinner/{Spinner.module.js → Spinner.module.scss.js} +0 -0
- /package/components/SplitButton/{SplitButton.module.js → SplitButton.module.scss.js} +0 -0
- /package/components/SplitPane/{SplitPane.module.js → SplitPane.module.scss.js} +0 -0
- /package/components/StatCard/{StatCard.module.js → StatCard.module.scss.js} +0 -0
- /package/components/StatusDot/{StatusDot.module.js → StatusDot.module.scss.js} +0 -0
- /package/components/Table/{Table.module.js → Table.module.scss.js} +0 -0
- /package/components/Tabs/{Tabs.module.js → Tabs.module.scss.js} +0 -0
- /package/components/ThemeToggle/{ThemeToggle.module.js → ThemeToggle.module.scss.js} +0 -0
- /package/components/Timeline/{GanttTimeline.module.js → GanttTimeline.module.scss.js} +0 -0
- /package/components/Timeline/{HistoryTimeline.module.js → HistoryTimeline.module.scss.js} +0 -0
- /package/components/Timeline/{Timeline.module.js → Timeline.module.scss.js} +0 -0
- /package/components/Timeline/{TraceTimeline.module.js → TraceTimeline.module.scss.js} +0 -0
- /package/components/Timer/{Timer.module.js → Timer.module.scss.js} +0 -0
- /package/components/Toast/{Toast.module.js → Toast.module.scss.js} +0 -0
- /package/components/ToggleIconButton/{ToggleIconButton.module.js → ToggleIconButton.module.scss.js} +0 -0
- /package/components/Tooltip/{Tooltip.module.js → Tooltip.module.scss.js} +0 -0
- /package/components/Typography/{Typography.module.js → Typography.module.scss.js} +0 -0
- /package/components/inputs/Checkbox/{Checkbox.module.js → Checkbox.module.scss.js} +0 -0
- /package/components/inputs/Checkbox/{CheckboxGroup.module.js → CheckboxGroup.module.scss.js} +0 -0
- /package/components/inputs/DatePicker/{CalendarPanel.module.js → CalendarPanel.module.scss.js} +0 -0
- /package/components/inputs/DatePicker/{DatePicker.module.js → DatePicker.module.scss.js} +0 -0
- /package/components/inputs/DateTimePicker/{DateTimePicker.module.js → DateTimePicker.module.scss.js} +0 -0
- /package/components/inputs/Input/{Input.module.js → Input.module.scss.js} +0 -0
- /package/components/inputs/NumberInput/{NumberInput.module.js → NumberInput.module.scss.js} +0 -0
- /package/components/inputs/Radio/{Radio.module.js → Radio.module.scss.js} +0 -0
- /package/components/inputs/SearchInput/{SearchInput.module.js → SearchInput.module.scss.js} +0 -0
- /package/components/inputs/Slider/{Slider.module.js → Slider.module.scss.js} +0 -0
- /package/components/inputs/Textarea/{Textarea.module.js → Textarea.module.scss.js} +0 -0
package/components/Tabs/Tabs.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import c from "
|
|
1
|
+
import { createContext as e, forwardRef as t, useCallback as n, useContext as r, useId as i, useRef as a, useState as o } from "react";
|
|
2
|
+
import s from "clsx";
|
|
3
|
+
import c from "./Tabs.module.scss.js";
|
|
4
4
|
import { jsx as l } from "react/jsx-runtime";
|
|
5
5
|
// src/components/Tabs/Tabs.tsx
|
|
6
|
-
var u =
|
|
6
|
+
var u = e(null);
|
|
7
7
|
function d(e) {
|
|
8
|
-
let t =
|
|
8
|
+
let t = r(u);
|
|
9
9
|
if (!t) throw Error(`${e} must be rendered inside a <Tabs>.`);
|
|
10
10
|
return t;
|
|
11
11
|
}
|
|
12
|
-
var f =
|
|
13
|
-
let v =
|
|
14
|
-
value: y ?
|
|
15
|
-
setValue:
|
|
16
|
-
y || x(e),
|
|
17
|
-
}, [y,
|
|
12
|
+
var f = t(({ value: e, defaultValue: t, onValueChange: r, orientation: a = "horizontal", variant: d = "line", size: f = "md", classes: p, className: m, children: h, ...g }, _) => {
|
|
13
|
+
let v = i(), y = e !== void 0, [b, x] = o(t), S = {
|
|
14
|
+
value: y ? e : b,
|
|
15
|
+
setValue: n((e) => {
|
|
16
|
+
y || x(e), r?.(e);
|
|
17
|
+
}, [y, r]),
|
|
18
18
|
baseId: v,
|
|
19
|
-
orientation:
|
|
19
|
+
orientation: a,
|
|
20
20
|
variant: d,
|
|
21
21
|
size: f,
|
|
22
22
|
classes: p
|
|
@@ -25,81 +25,81 @@ var f = n(({ value: t, defaultValue: n, onValueChange: i, orientation: o = "hori
|
|
|
25
25
|
value: S,
|
|
26
26
|
children: /* @__PURE__ */ l("div", {
|
|
27
27
|
ref: _,
|
|
28
|
-
className: c
|
|
28
|
+
className: s(c.root, a === "vertical" && c.vertical, p?.root, m),
|
|
29
29
|
...g,
|
|
30
30
|
children: h
|
|
31
31
|
})
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
34
|
f.displayName = "Tabs";
|
|
35
|
-
var p =
|
|
36
|
-
let u = d("Tabs.List"), f =
|
|
37
|
-
f.current = e, typeof
|
|
38
|
-
}, [
|
|
35
|
+
var p = t(({ className: e, children: t, onKeyDown: r, ...i }, o) => {
|
|
36
|
+
let u = d("Tabs.List"), f = a(null), p = n((e) => {
|
|
37
|
+
f.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
|
|
38
|
+
}, [o]);
|
|
39
39
|
return /* @__PURE__ */ l("div", {
|
|
40
40
|
ref: p,
|
|
41
41
|
role: "tablist",
|
|
42
42
|
"aria-orientation": u.orientation,
|
|
43
|
-
className: c
|
|
43
|
+
className: s(c.list, c[`list_${u.variant}`], c[`list_${u.size}`], u.classes?.list, e),
|
|
44
44
|
onKeyDown: (e) => {
|
|
45
|
-
if (
|
|
45
|
+
if (r?.(e), e.defaultPrevented) return;
|
|
46
46
|
let t = f.current;
|
|
47
47
|
if (!t) return;
|
|
48
48
|
let n = Array.from(t.querySelectorAll("[role=\"tab\"]:not([aria-disabled=\"true\"])"));
|
|
49
49
|
if (n.length === 0) return;
|
|
50
|
-
let
|
|
51
|
-
if (e.key ===
|
|
50
|
+
let i = u.orientation === "vertical" ? "ArrowDown" : "ArrowRight", a = u.orientation === "vertical" ? "ArrowUp" : "ArrowLeft", o = n.indexOf(document.activeElement), s = null;
|
|
51
|
+
if (e.key === i ? s = (o + 1) % n.length : e.key === a ? s = (o - 1 + n.length) % n.length : e.key === "Home" ? s = 0 : e.key === "End" && (s = n.length - 1), s === null) return;
|
|
52
52
|
e.preventDefault();
|
|
53
53
|
let c = n[s];
|
|
54
54
|
c.focus();
|
|
55
55
|
let l = c.dataset.value;
|
|
56
56
|
l !== void 0 && u.setValue(l);
|
|
57
57
|
},
|
|
58
|
-
...
|
|
59
|
-
children:
|
|
58
|
+
...i,
|
|
59
|
+
children: t
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
p.displayName = "Tabs.List";
|
|
63
|
-
var m =
|
|
64
|
-
let u = d("Tabs.Tab"), f = u.value ===
|
|
63
|
+
var m = t(({ value: e, disabled: t = !1, className: n, children: r, onClick: i, ...a }, o) => {
|
|
64
|
+
let u = d("Tabs.Tab"), f = u.value === e;
|
|
65
65
|
return /* @__PURE__ */ l("button", {
|
|
66
|
-
ref:
|
|
66
|
+
ref: o,
|
|
67
67
|
type: "button",
|
|
68
68
|
role: "tab",
|
|
69
|
-
id: `${u.baseId}-tab-${
|
|
70
|
-
"data-value":
|
|
69
|
+
id: `${u.baseId}-tab-${e}`,
|
|
70
|
+
"data-value": e,
|
|
71
71
|
"aria-selected": f,
|
|
72
|
-
"aria-controls": `${u.baseId}-panel-${
|
|
73
|
-
"aria-disabled":
|
|
72
|
+
"aria-controls": `${u.baseId}-panel-${e}`,
|
|
73
|
+
"aria-disabled": t || void 0,
|
|
74
74
|
tabIndex: f ? 0 : -1,
|
|
75
|
-
disabled:
|
|
76
|
-
className: c
|
|
77
|
-
onClick: (
|
|
78
|
-
|
|
75
|
+
disabled: t,
|
|
76
|
+
className: s(c.tab, c[`tab_${u.variant}`], f && c.tabSelected, u.classes?.tab, n),
|
|
77
|
+
onClick: (n) => {
|
|
78
|
+
i?.(n), t || u.setValue(e);
|
|
79
79
|
},
|
|
80
|
-
...
|
|
81
|
-
children:
|
|
80
|
+
...a,
|
|
81
|
+
children: r
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
m.displayName = "Tabs.Tab";
|
|
85
|
-
var h =
|
|
86
|
-
let u = d("Tabs.Panel"), f = u.value ===
|
|
87
|
-
if (!f && !
|
|
88
|
-
let p = f ?
|
|
85
|
+
var h = t(({ value: e, keepMounted: t = !1, className: n, style: r, children: i, ...a }, o) => {
|
|
86
|
+
let u = d("Tabs.Panel"), f = u.value === e;
|
|
87
|
+
if (!f && !t) return null;
|
|
88
|
+
let p = f ? r : {
|
|
89
89
|
display: "none",
|
|
90
|
-
...
|
|
90
|
+
...r
|
|
91
91
|
};
|
|
92
92
|
return /* @__PURE__ */ l("div", {
|
|
93
|
-
ref:
|
|
93
|
+
ref: o,
|
|
94
94
|
role: "tabpanel",
|
|
95
|
-
id: `${u.baseId}-panel-${
|
|
96
|
-
"aria-labelledby": `${u.baseId}-tab-${
|
|
95
|
+
id: `${u.baseId}-panel-${e}`,
|
|
96
|
+
"aria-labelledby": `${u.baseId}-tab-${e}`,
|
|
97
97
|
hidden: !f,
|
|
98
98
|
tabIndex: 0,
|
|
99
|
-
className: c
|
|
99
|
+
className: s(c.panel, u.classes?.panel, n),
|
|
100
100
|
style: p,
|
|
101
|
-
...
|
|
102
|
-
children:
|
|
101
|
+
...a,
|
|
102
|
+
children: i
|
|
103
103
|
});
|
|
104
104
|
});
|
|
105
105
|
h.displayName = "Tabs.Panel";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import r from "
|
|
1
|
+
import { forwardRef as e } from "react";
|
|
2
|
+
import t from "clsx";
|
|
3
|
+
import n from "./ThemeToggle.module.scss.js";
|
|
4
|
+
import { useTheme as r } from "../../hooks/useTheme.js";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
// src/components/ThemeToggle/ThemeToggle.tsx
|
|
7
7
|
var o = {
|
|
@@ -49,51 +49,51 @@ var o = {
|
|
|
49
49
|
rx: "2"
|
|
50
50
|
}), /* @__PURE__ */ i("path", { d: "M8 21h8M12 17v4" })]
|
|
51
51
|
})
|
|
52
|
-
}, c =
|
|
53
|
-
let { theme: b, setTheme: x } =
|
|
52
|
+
}, c = e(({ allowSystem: e = !0, variant: c = "icon", size: l = "md", labels: u, showLabel: d = !1, storageKey: f, defaultTheme: p, classes: m, className: h, style: g, onClick: _, ...v }, y) => {
|
|
53
|
+
let { theme: b, setTheme: x } = r({
|
|
54
54
|
storageKey: f,
|
|
55
55
|
defaultTheme: p
|
|
56
56
|
}), S = {
|
|
57
57
|
...o,
|
|
58
58
|
...u
|
|
59
|
-
}, C =
|
|
59
|
+
}, C = e ? [
|
|
60
60
|
"light",
|
|
61
61
|
"dark",
|
|
62
62
|
"system"
|
|
63
63
|
] : ["light", "dark"], w = C.includes(b) ? b : "light", T = C[(C.indexOf(w) + 1) % C.length];
|
|
64
64
|
if (c === "segmented") {
|
|
65
|
-
let { "aria-label":
|
|
65
|
+
let { "aria-label": e, ...r } = v;
|
|
66
66
|
return /* @__PURE__ */ i("div", {
|
|
67
67
|
ref: y,
|
|
68
68
|
role: "radiogroup",
|
|
69
|
-
"aria-label":
|
|
70
|
-
className:
|
|
69
|
+
"aria-label": e ?? "Theme",
|
|
70
|
+
className: t(n.group, n[l], m?.root, h),
|
|
71
71
|
style: g,
|
|
72
|
-
...
|
|
73
|
-
children: C.map((
|
|
74
|
-
let
|
|
72
|
+
...r,
|
|
73
|
+
children: C.map((e) => {
|
|
74
|
+
let r = e === w;
|
|
75
75
|
return /* @__PURE__ */ a("button", {
|
|
76
76
|
type: "button",
|
|
77
77
|
role: "radio",
|
|
78
|
-
"aria-checked":
|
|
79
|
-
"aria-label": d ? void 0 : S[
|
|
80
|
-
title: d ? void 0 : S[
|
|
81
|
-
tabIndex:
|
|
82
|
-
className:
|
|
83
|
-
onClick: () => x(
|
|
84
|
-
onKeyDown: (
|
|
85
|
-
let n = C.indexOf(
|
|
86
|
-
(
|
|
78
|
+
"aria-checked": r,
|
|
79
|
+
"aria-label": d ? void 0 : S[e],
|
|
80
|
+
title: d ? void 0 : S[e],
|
|
81
|
+
tabIndex: r ? 0 : -1,
|
|
82
|
+
className: t(n.option, r && n.optionSelected, m?.option, r && m?.optionSelected),
|
|
83
|
+
onClick: () => x(e),
|
|
84
|
+
onKeyDown: (t) => {
|
|
85
|
+
let n = C.indexOf(e), r;
|
|
86
|
+
(t.key === "ArrowRight" || t.key === "ArrowDown") && (r = C[(n + 1) % C.length]), (t.key === "ArrowLeft" || t.key === "ArrowUp") && (r = C[(n - 1 + C.length) % C.length]), r && (t.preventDefault(), x(r), (t.currentTarget.parentElement?.querySelector(`[data-theme-option="${r}"]`))?.focus());
|
|
87
87
|
},
|
|
88
|
-
"data-theme-option":
|
|
88
|
+
"data-theme-option": e,
|
|
89
89
|
children: [/* @__PURE__ */ i("span", {
|
|
90
|
-
className:
|
|
91
|
-
children: s[
|
|
90
|
+
className: t(n.icon, m?.icon),
|
|
91
|
+
children: s[e]
|
|
92
92
|
}), d && /* @__PURE__ */ i("span", {
|
|
93
|
-
className:
|
|
94
|
-
children: S[
|
|
93
|
+
className: t(n.label, m?.label),
|
|
94
|
+
children: S[e]
|
|
95
95
|
})]
|
|
96
|
-
},
|
|
96
|
+
}, e);
|
|
97
97
|
})
|
|
98
98
|
});
|
|
99
99
|
}
|
|
@@ -103,17 +103,17 @@ var o = {
|
|
|
103
103
|
"aria-label": `Theme: ${S[w]}, switch to ${S[T]}`,
|
|
104
104
|
title: `Theme: ${S[w]}`,
|
|
105
105
|
"data-theme-value": w,
|
|
106
|
-
className:
|
|
106
|
+
className: t(n.root, n[l], d && n.withLabel, m?.root, h),
|
|
107
107
|
style: g,
|
|
108
108
|
onClick: (e) => {
|
|
109
109
|
_?.(e), e.defaultPrevented || x(T);
|
|
110
110
|
},
|
|
111
111
|
...v,
|
|
112
112
|
children: [/* @__PURE__ */ i("span", {
|
|
113
|
-
className:
|
|
113
|
+
className: t(n.icon, m?.icon),
|
|
114
114
|
children: s[w]
|
|
115
115
|
}), d && /* @__PURE__ */ i("span", {
|
|
116
|
-
className:
|
|
116
|
+
className: t(n.label, m?.label),
|
|
117
117
|
children: S[w]
|
|
118
118
|
})]
|
|
119
119
|
});
|