@iamfiro/design 0.3.4 → 0.3.5

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 (158) hide show
  1. package/agents/app-shell/AGENTS.md +99 -1
  2. package/lib/components/Accordion/Accordion2.js +93 -93
  3. package/lib/components/ActionBar/ActionBar2.js +44 -40
  4. package/lib/components/Alert/Alert2.js +64 -64
  5. package/lib/components/AppShell/AppShell2.js +73 -66
  6. package/lib/components/AreaChart/AreaChart.js +49 -47
  7. package/lib/components/BarChart/BarChart2.js +107 -107
  8. package/lib/components/BarList/BarList2.js +99 -99
  9. package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
  10. package/lib/components/Calendar/Calendar2.js +164 -164
  11. package/lib/components/Calendar/DatePicker2.js +76 -77
  12. package/lib/components/Calendar/date.js +49 -70
  13. package/lib/components/Card/Card2.js +104 -77
  14. package/lib/components/CardFrame/CardFrame2.js +46 -42
  15. package/lib/components/Chart/ChartParts.js +73 -73
  16. package/lib/components/Chart/chart2.js +53 -53
  17. package/lib/components/Chart/useChartInteraction.js +49 -49
  18. package/lib/components/ChatBubble/ChatBubble2.js +118 -118
  19. package/lib/components/ChatBubble/formatChatTime.js +42 -41
  20. package/lib/components/ChatComposer/ChatComposer2.js +102 -102
  21. package/lib/components/CodeBlock/CodeBlock2.js +51 -51
  22. package/lib/components/CodeBlock/highlight.js +85 -85
  23. package/lib/components/ColorPicker/ColorPicker2.js +373 -374
  24. package/lib/components/ColorPicker/color.js +94 -94
  25. package/lib/components/ColorPicker/presets.js +47 -46
  26. package/lib/components/Combobox/Combobox2.js +118 -117
  27. package/lib/components/CommandMenu/CommandMenu.js +121 -122
  28. package/lib/components/Comment/Comment2.js +56 -81
  29. package/lib/components/ContextMenu/ContextMenu2.js +91 -93
  30. package/lib/components/DataGrid/DataGrid2.js +845 -845
  31. package/lib/components/DataGrid/GridPopover.js +97 -97
  32. package/lib/components/DataGrid/anchor.js +34 -36
  33. package/lib/components/DataGrid/model.js +299 -299
  34. package/lib/components/DataGrid/panels.js +393 -393
  35. package/lib/components/DataGrid/typeMeta.js +53 -53
  36. package/lib/components/DataGrid/types.js +22 -22
  37. package/lib/components/DescriptionList/DescriptionList2.js +57 -57
  38. package/lib/components/Dialog/AlertDialog.js +56 -56
  39. package/lib/components/Dialog/Dialog2.js +68 -69
  40. package/lib/components/Dialog/modal.js +61 -57
  41. package/lib/components/Drawer/Drawer2.js +161 -161
  42. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
  43. package/lib/components/DropdownMenu/menuCore.js +42 -68
  44. package/lib/components/Dropzone/Dropzone2.js +81 -81
  45. package/lib/components/EmptyState/EmptyState2.js +55 -54
  46. package/lib/components/FileChip/FileChip2.js +39 -63
  47. package/lib/components/FileUpload/FileUpload.js +157 -156
  48. package/lib/components/FilterChips/FilterChips2.js +51 -51
  49. package/lib/components/FunnelChart/FunnelChart2.js +171 -171
  50. package/lib/components/FunnelChart/funnel.js +55 -57
  51. package/lib/components/Highlight/Highlight2.js +48 -48
  52. package/lib/components/HoverCard/HoverCard.js +59 -59
  53. package/lib/components/InlineDiff/InlineDiff2.js +110 -111
  54. package/lib/components/InlineDiff/diff.js +89 -89
  55. package/lib/components/InlineDiff/useDiffReview.js +63 -65
  56. package/lib/components/Kanban/Kanban2.js +424 -425
  57. package/lib/components/Kanban/KanbanCard.js +98 -73
  58. package/lib/components/Kanban/move.js +52 -49
  59. package/lib/components/LineChart/LineChart2.js +222 -222
  60. package/lib/components/List/List2.js +60 -59
  61. package/lib/components/Listbox/Listbox2.js +117 -117
  62. package/lib/components/Marker/Marker2.js +58 -59
  63. package/lib/components/Menubar/Menubar2.js +121 -123
  64. package/lib/components/MultiSelect/MultiSelect2.js +115 -115
  65. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
  66. package/lib/components/NoticeStack/NoticeStack2.js +98 -98
  67. package/lib/components/NumberStepper/NumberStepper2.js +67 -66
  68. package/lib/components/OtpInput/OtpInput2.js +93 -93
  69. package/lib/components/Pagination/Pagination2.js +87 -87
  70. package/lib/components/Pagination/paginationRange.js +39 -37
  71. package/lib/components/PhoneInput/PhoneInput.js +78 -78
  72. package/lib/components/PieChart/PieChart2.js +117 -117
  73. package/lib/components/PieChart/arc.js +57 -58
  74. package/lib/components/PieChart/useArcTween.js +45 -40
  75. package/lib/components/Popover/Popover2.js +73 -74
  76. package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
  77. package/lib/components/Rating/Rating2.js +95 -95
  78. package/lib/components/Resizable/Resizable2.js +86 -86
  79. package/lib/components/Resizable/layout.js +73 -73
  80. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
  81. package/lib/components/ScatterChart/ScatterChart2.js +172 -172
  82. package/lib/components/ScatterChart/scatter.js +55 -56
  83. package/lib/components/ScrollArea/ScrollArea2.js +130 -131
  84. package/lib/components/Select/Select2.js +86 -85
  85. package/lib/components/Sidebar/Sidebar2.js +92 -86
  86. package/lib/components/Sidebar/rail.js +43 -0
  87. package/lib/components/Skeleton/Skeleton2.js +60 -61
  88. package/lib/components/Slider/Slider2.js +73 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
  90. package/lib/components/SparkChart/SparkChart2.js +140 -141
  91. package/lib/components/SparkChart/spark.js +50 -48
  92. package/lib/components/Sparkbar/Sparkbar2.js +56 -56
  93. package/lib/components/SplitView/SplitView2.js +47 -46
  94. package/lib/components/Stat/Stat2.js +61 -61
  95. package/lib/components/StepList/StepList2.js +76 -76
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +85 -85
  98. package/lib/components/TagInput/TagInput2.js +217 -218
  99. package/lib/components/TimePicker/TimePicker2.js +217 -216
  100. package/lib/components/TimePicker/time.js +60 -58
  101. package/lib/components/Timeline/Timeline2.js +181 -181
  102. package/lib/components/Timeline/scale.js +60 -65
  103. package/lib/components/Toast/Toaster.js +146 -148
  104. package/lib/components/Toast/store.js +85 -85
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  106. package/lib/components/Toolbar/Toolbar2.js +120 -121
  107. package/lib/components/Tracker/Tracker2.js +79 -79
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
  109. package/lib/components/TreeView/TreeView2.js +162 -163
  110. package/lib/hooks/timing.js +32 -35
  111. package/lib/hooks/useControllableState.js +35 -35
  112. package/lib/hooks/useCountdown.js +53 -52
  113. package/lib/hooks/useDigitInput.js +82 -81
  114. package/lib/hooks/useDismiss.js +48 -48
  115. package/lib/hooks/useElapsed.js +40 -43
  116. package/lib/hooks/useFloating.js +47 -47
  117. package/lib/hooks/useFocusTrap.js +45 -69
  118. package/lib/hooks/usePresence.js +49 -50
  119. package/lib/hooks/usePressToOpen.js +43 -43
  120. package/lib/hooks/useScrollLock.js +45 -43
  121. package/lib/hooks/useSelection.js +44 -46
  122. package/lib/index.js +105 -106
  123. package/lib/primitives/AspectRatio2.js +57 -56
  124. package/lib/primitives/BrandIcon.js +177 -177
  125. package/lib/primitives/ColorDot2.js +44 -48
  126. package/lib/primitives/CopyButton2.js +54 -55
  127. package/lib/primitives/CountBadge2.js +45 -48
  128. package/lib/primitives/Countdown2.js +35 -37
  129. package/lib/primitives/Delta2.js +41 -41
  130. package/lib/primitives/Elapsed.js +43 -41
  131. package/lib/primitives/FileIcon2.js +94 -94
  132. package/lib/primitives/Flag2.js +97 -97
  133. package/lib/primitives/IconStack2.js +53 -55
  134. package/lib/primitives/IconTile2.js +45 -41
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +66 -66
  137. package/lib/primitives/Link2.js +42 -47
  138. package/lib/primitives/MaskedText2.js +47 -69
  139. package/lib/primitives/Progress2.js +71 -71
  140. package/lib/primitives/RelativeTime.js +47 -43
  141. package/lib/primitives/SearchInput2.js +70 -66
  142. package/lib/primitives/SelectorButton2.js +70 -67
  143. package/lib/primitives/Spinner2.js +58 -59
  144. package/lib/primitives/StatusIcon2.js +70 -70
  145. package/lib/primitives/Swatch2.js +57 -55
  146. package/lib/primitives/Tooltip2.js +78 -78
  147. package/lib/primitives/Typography2.js +54 -54
  148. package/lib/primitives/formatCountdown.js +37 -38
  149. package/lib/primitives/formatElapsed.js +46 -45
  150. package/lib/primitives/formatRelativeTime.js +43 -69
  151. package/lib/primitives/hotkey.js +66 -66
  152. package/lib/primitives/index.js +152 -152
  153. package/lib/primitives/maskValue.js +30 -32
  154. package/lib/style.css +1 -1
  155. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  156. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  157. package/lib/types/components/index.d.ts +1 -0
  158. package/package.json +1 -1
@@ -1,128 +1,128 @@
1
1
  "use client";
2
- var e = _;
2
+ var e = u;
3
+ function t() {
4
+ var e = /* @__PURE__ */ "mJjfCLPlDNu.DgHLBG.zM9YrwfJAa.BgvUz3rO.mtKZsencthzV.7iUK7zAjioY3QoYgJa.mtGZvuDUv2zI.mtmYodrHuKPdyxy.BwfW.Dg9HC3qT.mJqZA2Hcyuj3.mZi5mtiWthzXwKfs.mtaYodv5wMHtCgq.DgL0Bgu.mtyYnMHPDLbZEa.B2jQzwn0.mZq1mZq2oe5sA2vIrG.yxnZAwDU.ywrK.Bg9HzgLUzW.mJrOtfDcrey.zMLSDgvY.Dw5KBW.mJHHzfHJvLi.C3vJy2vZCW.Aw5JBhvKzxm.zxHPDgLUzW.zgvZy3jPChrPB24.zNvUy3rPB24.zxjYB3i.C29Tzq.ndeYneDgvuLzEG.D2fYBMLUzW.zgvMyxvSDa.mti3mdK2ntHszvHvthO.nti0mJuXCNjeAfHk".split(".");
5
+ return t = function() {
6
+ return e;
7
+ }, t();
8
+ }
3
9
  (function(e, t) {
4
- for (var n = _, r = e();;) try {
5
- if (parseInt(n(265)) / 1 * (parseInt(n(258)) / 2) + parseInt(n(263)) / 3 + -parseInt(n(277)) / 4 + -parseInt(n(261)) / 5 + parseInt(n(259)) / 6 + parseInt(n(276)) / 7 * (-parseInt(n(271)) / 8) + parseInt(n(255)) / 9 == t) break;
10
+ for (var n = u, r = e();;) try {
11
+ if (parseInt(n(158)) / 1 * (parseInt(n(149)) / 2) + parseInt(n(160)) / 3 * (-parseInt(n(161)) / 4) + -parseInt(n(166)) / 5 * (-parseInt(n(168)) / 6) + -parseInt(n(153)) / 7 * (-parseInt(n(174)) / 8) + parseInt(n(164)) / 9 * (parseInt(n(165)) / 10) + parseInt(n(154)) / 11 * (parseInt(n(170)) / 12) + parseInt(n(152)) / 13 * (-parseInt(n(177)) / 14) == t) break;
6
12
  r.push(r.shift());
7
13
  } catch {
8
14
  r.push(r.shift());
9
15
  }
10
- })(d, 997788);
11
- import { TIMING as t } from "../../hooks/timing.js";
12
- var n = [], r = /* @__PURE__ */ new Set(), i = () => r[e(278)]((e) => e()), a = (e) => (r.add(e), () => {
13
- r.delete(e);
14
- }), o = () => n, s = 0;
15
- function c(t, r = {}) {
16
- var a = e;
17
- let o = r.id ?? a(268) + ++s;
18
- return n[a(257)]((e) => e.id === o) ? (l(o, {
16
+ })(t, 486381);
17
+ import { TIMING as n } from "../../hooks/timing.js";
18
+ var r = [], i = /* @__PURE__ */ new Set(), a = () => i[e(156)]((e) => e()), o = (t) => (i[e(172)](t), () => {
19
+ i.delete(t);
20
+ }), s = () => r, c = 0;
21
+ function l(t, n = {}) {
22
+ var i = e;
23
+ let o = n.id ?? i(163) + ++c;
24
+ return r[i(184)]((e) => e.id === o) ? (d(o, {
19
25
  title: t,
20
- ...r
21
- }), o) : (n = [{
22
- type: a(260),
23
- ...r,
26
+ ...n
27
+ }), o) : (r = [{
28
+ type: i(151),
29
+ ...n,
24
30
  id: o,
25
31
  title: t,
26
32
  version: 0
27
- }, ...n], i(), o);
33
+ }, ...r], a(), o);
34
+ }
35
+ function u(e, n) {
36
+ e -= 149;
37
+ var r = t(), i = r[e];
38
+ u.ZsAdVw === void 0 && (u.czayOY = function(e) {
39
+ for (var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=", n = "", r = "", i = 0, a, o, s = 0; o = e.charAt(s++); ~o && (a = i % 4 ? a * 64 + o : o, i++ % 4) && (n += String.fromCharCode(255 & a >> (-2 * i & 6)))) o = t.indexOf(o);
40
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
41
+ return decodeURIComponent(r);
42
+ }, u.cLCsGS = {}, u.ZsAdVw = !0);
43
+ var a = r[0];
44
+ u.rsTjXO !== a && (u.cLCsGS = {}, u.rsTjXO = a);
45
+ var o = u.cLCsGS[e];
46
+ return o === void 0 ? (i = u.czayOY(i), u.cLCsGS[e] = i) : i = o, i;
28
47
  }
29
- function l(t, r) {
30
- var a = e;
31
- n = n[a(267)]((e) => e.id === t ? {
48
+ function d(t, n) {
49
+ r = r[e(162)]((e) => e.id === t ? {
32
50
  ...e,
33
- ...r,
51
+ ...n,
34
52
  exiting: !1,
35
- version: e[a(274)] + 1
36
- } : e), i();
53
+ version: e.version + 1
54
+ } : e), a();
37
55
  }
38
- function u(t) {
39
- var r = e;
40
- let a = n.filter((e) => (t == null || e.id === t) && !e[r(264)]);
41
- a[r(266)] && (n = n[r(267)]((e) => a[r(280)](e) ? {
56
+ function f(t) {
57
+ var n = e;
58
+ let i = r.filter((e) => (t == null || e.id === t) && !e[n(180)]);
59
+ i[n(157)] && (r = r.map((e) => i[n(179)](e) ? {
42
60
  ...e,
43
61
  exiting: !0
44
- } : e), i(), a[r(278)]((e) => e[r(281)]?.()), window[r(273)](() => {
45
- var e = r;
46
- n = n.filter((t) => !(a[e(257)]((e) => e.id === t.id) && t[e(264)])), i();
62
+ } : e), a(), i[n(156)]((e) => e.onDismiss?.()), window.setTimeout(() => {
63
+ var e = n;
64
+ r = r[e(175)]((t) => !(i[e(184)]((e) => e.id === t.id) && t[e(180)])), a();
47
65
  }, 320));
48
66
  }
49
- function d() {
50
- var e = /* @__PURE__ */ "C3vJy2vZCW.nJu2nZq3C21TBwHH.ntK2nZmXnMzgy0Prvq.zM9YrwfJAa.7iUK7zAjioY3QoYgJa.Aw5JBhvKzxm.B25eAxnTAxnZ.zgvZy3jPChrPB24.Bg9HzgLUzW.mta5nJq0nJz4DhrKExi.DgL0Bgu.C29Tzq.mLvpwevMCa.nJG3nde1mNLkvu1pyW.zgvMyxvSDa.mtu1nda1uMjJtvLv.B2jQzwn0.mtaXotG1nM9Zy3zJEq.zxHPDgLUzW.mtC4nZaYmuP6rMXguq.BgvUz3rO.BwfW.Dg9HC3qT.yxnZAwDU.Aw5MBW.mty4r1rXDLjf.zxjYB3i.C2v0vgLTzw91Da.DMvYC2LVBG".split(".");
51
- return d = function() {
52
- return e;
53
- }, d();
54
- }
55
- var f = (t) => t != null && typeof t === e(262) && "title" in t ? t : {
67
+ var p = (t) => t != null && typeof t === e(169) && e(167) in t ? t : {
56
68
  title: t,
57
69
  description: void 0
58
- }, p = (e) => (t, n) => c(t, {
70
+ }, m = (e) => (t, n) => l(t, {
59
71
  ...n,
60
72
  type: e
61
73
  });
62
- function m(t, n, r) {
74
+ function h(t, n, r) {
63
75
  var i = e;
64
- let a = c(f(n[i(254)])[i(256)], {
76
+ let a = l(p(n[i(173)])[i(167)], {
65
77
  ...r,
66
- description: f(n[i(254)])[i(253)],
67
- type: i(254)
78
+ description: p(n[i(173)])[i(181)],
79
+ type: i(173)
68
80
  });
69
- return t.then((e) => {
81
+ return t[i(155)]((e) => {
70
82
  var t = i;
71
- let r = f(typeof n[t(275)] == "function" ? n.success(e) : n[t(275)]);
72
- l(a, {
73
- type: t(275),
74
- title: r[t(256)],
75
- description: r.description
83
+ let r = p(typeof n[t(178)] === t(182) ? n.success(e) : n.success);
84
+ d(a, {
85
+ type: t(178),
86
+ title: r.title,
87
+ description: r[t(181)]
76
88
  });
77
89
  }, (e) => {
78
90
  var t = i;
79
- let r = f(typeof n.error == "function" ? n[t(272)](e) : n[t(272)]);
80
- l(a, {
81
- type: t(272),
82
- title: r[t(256)],
83
- description: r[t(253)]
91
+ let r = p(typeof n[t(183)] === t(182) ? n[t(183)](e) : n[t(183)]);
92
+ d(a, {
93
+ type: "error",
94
+ title: r[t(167)],
95
+ description: r[t(181)]
84
96
  });
85
97
  }), t;
86
98
  }
87
- function h(r, { onUndo: a, onCommit: o, undoLabel: s = e(279), ...l }) {
88
- let u = !1, d = c(r, {
89
- duration: t.undo,
90
- ...l,
99
+ function g(t, { onUndo: i, onCommit: o, undoLabel: s = e(159), ...c }) {
100
+ var u = e;
101
+ let d = !1, f = l(t, {
102
+ duration: n[u(176)],
103
+ ...c,
91
104
  action: {
92
105
  label: s,
93
106
  onClick: () => {
94
- u = !0, a();
107
+ d = !0, i();
95
108
  }
96
109
  },
97
- onDismiss: () => !u && o?.()
110
+ onDismiss: () => !d && o?.()
98
111
  });
99
- return n = n.map((e) => e.id === d ? {
112
+ return r = r.map((e) => e.id === f ? {
100
113
  ...e,
101
114
  undoable: !0
102
- } : e), i(), d;
115
+ } : e), a(), f;
103
116
  }
104
- var g = Object[e(269)]((e, t) => c(e, t), {
105
- success: p(e(275)),
106
- error: p(e(272)),
107
- warning: p("warning"),
108
- info: p(e(270)),
109
- loading: p(e(254)),
110
- update: l,
111
- dismiss: u,
112
- promise: m,
113
- undo: h
117
+ var _ = Object[e(171)]((e, t) => l(e, t), {
118
+ success: m("success"),
119
+ error: m(e(183)),
120
+ warning: m(e(150)),
121
+ info: m("info"),
122
+ loading: m(e(173)),
123
+ update: d,
124
+ dismiss: f,
125
+ promise: h,
126
+ undo: g
114
127
  });
115
- function _(e, t) {
116
- e -= 253;
117
- var n = d(), r = n[e];
118
- _.CDYyLF === void 0 && (_.hkqaTt = function(e) {
119
- for (var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=", n = "", r = "", i = 0, a, o, s = 0; o = e.charAt(s++); ~o && (a = i % 4 ? a * 64 + o : o, i++ % 4) && (n += String.fromCharCode(255 & a >> (-2 * i & 6)))) o = t.indexOf(o);
120
- for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
121
- return decodeURIComponent(r);
122
- }, _.pNouCO = {}, _.CDYyLF = !0);
123
- var i = n[0];
124
- _.WRDqhU !== i && (_.pNouCO = {}, _.WRDqhU = i);
125
- var a = _.pNouCO[e];
126
- return a === void 0 ? (r = _.hkqaTt(r), _.pNouCO[e] = r) : r = a, r;
127
- }
128
- export { o as getToasts, a as subscribe, g as toast };
128
+ export { s as getToasts, o as subscribe, _ as toast };
@@ -1,125 +1,125 @@
1
1
  "use client";
2
- const e = n;
2
+ function e() {
3
+ let t = /* @__PURE__ */ "Ag9YAxPVBNrHBa.yNv0Dg9U.B2jZzxj2zq.C2v0u2vSzwn0zwq.zMLSDgvY.sg9Tzq.uhjVDMLKzxi.nJuZmZu4ug1qDwvg.yxjPys1SywjLBa.zM9JDxm.mZiZntm2txLmENPW.mZu2nJm4nxH0Bg5YAq.BxvSDgLWBgu.zgLZywjSzwq.z3jVDxa.B2zMC2v0vg9W.w2rHDgeTDgCTAxrLBv1Bzgf0ys1ZDgf0zt0IB24Ixq.w3jVBgu9iNrVB2XIyxiIxq.Aw5KzxHpzG.DMfSDwvuExbL.mJeYmtC4mK1zsKH5rG.zhmTDg9Nz2XLlwDYB3vWls0.zhmTDg9Nz2XLlwDYB3vW.B2zMC2v0v2LKDgG.C2LUz2XL.ChjLDMvUDerLzMf1Bhq.CxvLCNLtzwXLy3rVCG.CMfKAw8.DgfIsw5KzxG.BgvMDa.AxntzwXLy3rLza.nuXqA3DdEG.mtC3mdy2ogTwqKTWAq.CMfKAw9NCM91Ca.qxjYB3DvCa.C29MDa.mtK2Aw9mtxP5.w2rHDgeTDgCTAxrLBv0.vg9Nz2XLr3jVDxbjDgvTig11C3qGyMuGDxnLzcbPBNnPzguGpfrVz2DSzuDYB3vWpG.D2LKDgG.Dg9Nz2XL.ywn0AxzLrwXLBwvUDa.AgvPz2H0.mJCZmZC5ofPrwefvsa.C2HVD24.sxrLBq.zhmTDg9Nz2XLlwDYB3vWls12zxj0AwnHBa.zhmTDg9Nz2XLlwDYB3vWx19PDgvTls1Py29U.BgvUz3rO.B2zMC2v0sgvPz2H0.zgvMyxvSDfbYzxzLBNrLza.zhmTDg9Nz2XLlwDYB3vWx190AhvTyG.CgfYzw50rwXLBwvUDa.zgL2.zhmTDg9Nz2XLlwDYB3vWx19PDgvT.y3vYCMvUDa.B2zMC2v0tgvMDa.Dg9W.A2v5.DMfSDwu.zgLZy29UBMvJDa.C2vSzwn0zwq.AM9PBG.qxjYB3DsAwDODa.CxvLCNLtzwXLy3rVCKfSBa.qxjYB3Dmzwz0.zgf0yxnLDa.mte5mduWotjfv0jMvuS".split(".");
4
+ return e = function() {
5
+ return t;
6
+ }, e();
7
+ }
8
+ const t = f;
3
9
  (function(e, t) {
4
- let r = n, i = e();
10
+ let n = f, r = e();
5
11
  for (;;) try {
6
- if (-parseInt(r(175)) / 1 + -parseInt(r(149)) / 2 * (-parseInt(r(136)) / 3) + -parseInt(r(153)) / 4 + -parseInt(r(165)) / 5 * (-parseInt(r(150)) / 6) + parseInt(r(179)) / 7 * (parseInt(r(139)) / 8) + -parseInt(r(162)) / 9 * (-parseInt(r(163)) / 10) + parseInt(r(152)) / 11 == t) break;
7
- i.push(i.shift());
12
+ if (parseInt(n(170)) / 1 + parseInt(n(183)) / 2 + -parseInt(n(174)) / 3 + parseInt(n(195)) / 4 + parseInt(n(194)) / 5 * (-parseInt(n(138)) / 6) + parseInt(n(199)) / 7 * (-parseInt(n(173)) / 8) + parseInt(n(162)) / 9 == t) break;
13
+ r.push(r.shift());
8
14
  } catch {
9
- i.push(i.shift());
15
+ r.push(r.shift());
10
16
  }
11
- })(d, 254019);
12
- import { cx as t } from "../../primitives/index.js";
13
- function n(e, t) {
14
- e -= 129;
15
- let r = d(), i = r[e];
16
- n.WpaqNw === void 0 && (n.skoDch = function(e) {
17
+ })(e, 702900);
18
+ import { cx as n } from "../../primitives/index.js";
19
+ import { useSelection as r } from "../../hooks/useSelection.js";
20
+ /* empty css */
21
+ import { createContext as i, useContext as a, useLayoutEffect as o, useRef as s, useState as c } from "react";
22
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
23
+ var d = i(null);
24
+ function f(t, n) {
25
+ t -= 137;
26
+ let r = e(), i = r[t];
27
+ f.OuNgCx === void 0 && (f.WBxylm = function(e) {
17
28
  let t = "", n = "";
18
29
  for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
19
30
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
31
  return decodeURIComponent(n);
21
- }, n.renbSn = {}, n.WpaqNw = !0);
32
+ }, f.fthnRt = {}, f.OuNgCx = !0);
22
33
  let a = r[0];
23
- n.IhIfSW !== a && (n.renbSn = {}, n.IhIfSW = a);
24
- let o = n.renbSn[e];
25
- return o === void 0 ? (i = n.skoDch(i), n.renbSn[e] = i) : i = o, i;
26
- }
27
- import { useSelection as r } from "../../hooks/useSelection.js";
28
- /* empty css */
29
- import { createContext as i, useContext as a, useLayoutEffect as o, useRef as s, useState as c } from "react";
30
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
31
- function d() {
32
- let e = /* @__PURE__ */ "ohL0C2vUyW.B2jZzxj2zq.A2v5.Dg9W.Dg9Nz2XL.w2rHDgeTDgCTAxrLBv1Bzgf0ys1ZDgf0zt0IB24Ixq.qxjYB3DeB3DU.w3jVBgu9iNrVB2XIyxiIxq.zhmTDg9Nz2XLlwDYB3vWx190AhvTyG.C3rHDgu.ntu4mLPTwxf6wq.mZK4nhHTq0LSCq.B2zMC2v0v2LKDgG.mtC5otqXm0Dbq0vOAW.mti2otm0ohvHtxrJuW.B2zM.qxjYB3DsAwDODa.CMfKAw9NCM91Ca.BxvSDgLWBgu.zhmTDg9Nz2XLlwDYB3vWls0.zMLSDgvY.AM9PBG.w2rHDgeTDgCTAxrLBv0.oteZnw5RtfHzqW.ntuWDgjXDvjA.DMfSDwu.ndeWCfrjv0nv.zhmTDg9Nz2XLlwDYB3vW.Ag9YAxPVBNrHBa.C2v0u2vSzwn0zwq.zhmTDg9Nz2XLlwDYB3vWls12zxj0AwnHBa.z3jVDxa.zM9JDxm.BgvUz3rO.zgf0yxnLDa.AgvPz2H0.mJmWotG2u3vUuMfl.zgLZywjSzwq.CxvLCNLtzwXLy3rVCKfSBa.B2zMC2v0sgvPz2H0.mZeZmJGYoxHqveXgsW.CgfYzw50rwXLBwvUDa.zMLUza.BNvTyMvY.AxntzwXLy3rLza.ChjLDMvUDerLzMf1Bhq.y3vYCMvUDa.sg9Tzq.zgvMyxvSDfbYzxzLBNrLza.ywn0AxzLrwXLBwvUDa.CxvLCNLtzwXLy3rVCG.zhmTDg9Nz2XLlwDYB3vWx19PDgvT.yxjPys1SywjLBa.C2LUz2XL.odDrCKrdDuK.zhmTDg9Nz2XLlwDYB3vWx19PDgvTls1Py29U.vg9Nz2XLr3jVDxbjDgvTig11C3qGyMuGDxnLzcbPBNnPzguGpfrVz2DSzuDYB3vWpG".split(".");
33
- return d = function() {
34
- return e;
35
- }, d();
34
+ f.aylnuS !== a && (f.fthnRt = {}, f.aylnuS = a);
35
+ let o = f.fthnRt[t];
36
+ return o === void 0 ? (i = f.WBxylm(i), f.fthnRt[t] = i) : i = o, i;
36
37
  }
37
- var f = i(null);
38
38
  function p(e) {
39
- let i = n, { variant: a = "soft", size: d = "md", orientation: p = "horizontal", disabled: g, className: _, children: v } = e, y = r(e), b = s(null), [x, S] = c(null), C = y.selected[i(160)]("\0");
39
+ let t = f, { variant: i = t(198), size: a = "md", orientation: p = "horizontal", disabled: g, className: _, children: v } = e, y = r(e), b = s(null), [x, S] = c(null), C = y[t(156)][t(157)]("\0");
40
40
  o(() => {
41
- let e = i, t = b[e(185)];
42
- if (y[e(157)] || !t) return;
43
- let n = () => {
44
- let n = e, r = t[n(132)](n(144));
41
+ let e = t, n = b[e(150)];
42
+ if (y[e(175)] || !n) return;
43
+ let r = () => {
44
+ let t = e, r = n[t(189)](t(179));
45
45
  S((e) => r ? {
46
- left: r.offsetLeft,
47
- top: r.offsetTop,
48
- width: r[n(151)],
49
- height: r[n(178)],
46
+ left: r[t(151)],
47
+ top: r[t(178)],
48
+ width: r[t(186)],
49
+ height: r[t(144)],
50
50
  shown: !0
51
51
  } : e && {
52
52
  ...e,
53
53
  shown: !1
54
54
  });
55
55
  };
56
- n();
57
- let r = new ResizeObserver(n);
58
- return r[e(140)](t), () => r.disconnect();
59
- }, [y[i(157)], C]);
60
- let w = () => !!b[i(185)]?.[i(180)]?.closest(i(146));
56
+ r();
57
+ let i = new ResizeObserver(r);
58
+ return i[e(165)](n), () => i[e(155)]();
59
+ }, [y.multiple, C]);
60
+ let w = () => !!b.current?.[t(147)]?.closest(t(180));
61
61
  return o(() => {
62
- let e = i;
62
+ let e = t;
63
63
  if (w()) return;
64
- let t = m(b[e(185)]), n = t[e(181)]((t) => t[e(173)][e(148)] === "on") ?? t[0];
65
- for (let t of b[e(185)]?.querySelectorAll(e(161)) ?? []) t.tabIndex = t === n ? 0 : -1;
66
- }), l(f.Provider, {
64
+ let n = m(b.current), r = n.find((t) => t[e(161)].state === "on") ?? n[0];
65
+ for (let t of b[e(150)]?.[e(159)](e(200)) ?? []) t[e(191)] = t === r ? 0 : -1;
66
+ }), l(d[t(169)], {
67
67
  value: {
68
- single: !y.multiple,
68
+ single: !y[t(175)],
69
69
  disabled: g,
70
- isSelected: (e) => y[i(183)](e),
71
- toggle: (e) => y[i(143)](e)
70
+ isSelected: (e) => y[t(193)](e),
71
+ toggle: (e) => y[t(203)](e)
72
72
  },
73
- children: u("div", {
73
+ children: u(t(148), {
74
74
  ref: b,
75
- role: y[i(157)] ? i(170) : i(156),
76
- "aria-label": e[i(134)],
75
+ role: y[t(175)] ? t(177) : t(196),
76
+ "aria-label": e[t(171)],
77
77
  "aria-orientation": p,
78
- className: t(i(166), i(158) + a, i(158) + d, p === "vertical" && i(169), _),
79
- "data-glide": !y[i(157)] || void 0,
78
+ className: n(t(185), t(184) + i, t(184) + a, p === "vertical" && t(141), _),
79
+ "data-glide": !y[t(175)] || void 0,
80
80
  onKeyDown: (e) => {
81
- let t = i;
81
+ let n = t;
82
82
  if (w()) return;
83
- let n = p === t(167) ? "ArrowLeft" : "ArrowUp", r = t(p === "horizontal" ? 155 : 145), a = m(b.current), o = a.indexOf(document[t(131)]), s;
84
- e[t(141)] === r ? s = a[(o + 1) % a[t(172)]] : e.key === n ? s = a[(o - 1 + a[t(172)]) % a[t(172)]] : e[t(141)] === t(129) ? s = a[0] : e.key === "End" && (s = a[a.length - 1]), s && (e[t(184)](), s[t(171)](), !y[t(157)] && s[t(173)][t(164)] != null && y[t(168)]([h(s.dataset[t(164)], s)]));
83
+ let r = p === n(163) ? n(160) : n(197), i = p === "horizontal" ? n(158) : "ArrowDown", a = m(b[n(150)]), o = a[n(181)](document[n(204)]), s;
84
+ e[n(153)] === i ? s = a[(o + 1) % a[n(143)]] : e.key === r ? s = a[(o - 1 + a[n(143)]) % a[n(143)]] : e[n(153)] === n(168) ? s = a[0] : e.key === "End" && (s = a[a[n(143)] - 1]), s && (e[n(188)](), s[n(172)](), !y.multiple && s.dataset[n(154)] != null && y[n(166)]([h(s[n(161)].value, s)]));
85
85
  },
86
86
  children: [x && l("span", {
87
- className: i(147),
87
+ className: t(146),
88
88
  "aria-hidden": !0,
89
89
  style: {
90
- left: x.left,
91
- top: x[i(142)],
92
- width: x.width,
93
- height: x[i(174)],
94
- opacity: +!!x.shown
90
+ left: x[t(192)],
91
+ top: x[t(152)],
92
+ width: x[t(202)],
93
+ height: x[t(137)],
94
+ opacity: +!!x[t(139)]
95
95
  }
96
96
  }), v]
97
97
  })
98
98
  });
99
99
  }
100
- var m = (t) => [...t?.[e(177)]("[data-tg-item]") ?? []][e(159)]((t) => !t[e(176)]), h = (t, n) => n[e(173)].valueType === e(182) ? Number(t) : t;
101
- function g({ value: n, icon: r, children: i, disabled: o, className: s, onClick: c, ...l }) {
102
- let d = e, p = a(f);
103
- if (!p) throw Error(d(138));
104
- let m = p[d(183)](n);
105
- return u("button", {
100
+ var m = (e) => [...e?.[t(159)](t(200)) ?? []][t(167)]((e) => !e[t(176)]), h = (e, n) => n[t(161)][t(182)] === "number" ? Number(e) : e;
101
+ function g({ value: e, icon: r, children: i, disabled: o, className: s, onClick: c, ...l }) {
102
+ let f = t, p = a(d);
103
+ if (!p) throw Error(f(201));
104
+ let m = p[f(193)](e);
105
+ return u(f(164), {
106
106
  type: "button",
107
107
  "data-tg-item": "",
108
- "data-state": m ? "on" : d(154),
109
- "data-value": String(n),
110
- "data-value-type": typeof n,
111
- role: p[d(135)] ? "radio" : void 0,
112
- "aria-checked": p[d(135)] ? m : void 0,
113
- "aria-pressed": p[d(135)] ? void 0 : m,
114
- disabled: p[d(176)] || o,
115
- className: t(d(133), !i && d(137), s),
116
- onClick: (e) => {
117
- let t = d;
118
- c?.(e), e[t(130)] || p[t(143)](n);
108
+ "data-state": m ? "on" : "off",
109
+ "data-value": String(e),
110
+ "data-value-type": typeof e,
111
+ role: p.single ? f(190) : void 0,
112
+ "aria-checked": p[f(187)] ? m : void 0,
113
+ "aria-pressed": p[f(187)] ? void 0 : m,
114
+ disabled: p.disabled || o,
115
+ className: n(f(149), !i && f(142), s),
116
+ onClick: (t) => {
117
+ let n = f;
118
+ c?.(t), t[n(145)] || p[n(203)](e);
119
119
  },
120
120
  ...l,
121
121
  children: [r, i]
122
122
  });
123
123
  }
124
- p.Item = g;
124
+ p[t(140)] = g;
125
125
  export { p as ToggleGroup, g as ToggleGroupItem };