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