@iamfiro/design 0.3.2 → 0.3.4

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/INDEX.md +1 -1
  2. package/agents/brand-icon/AGENTS.md +1 -1
  3. package/agents/social-login-button/AGENTS.md +4 -3
  4. package/lib/components/Accordion/Accordion2.js +87 -87
  5. package/lib/components/ActionBar/ActionBar2.js +42 -44
  6. package/lib/components/Alert/Alert2.js +61 -61
  7. package/lib/components/AppShell/AppShell2.js +70 -71
  8. package/lib/components/AreaChart/AreaChart.js +38 -40
  9. package/lib/components/BarChart/BarChart2.js +126 -126
  10. package/lib/components/BarList/BarList2.js +95 -95
  11. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -66
  12. package/lib/components/Calendar/Calendar2.js +164 -164
  13. package/lib/components/Calendar/DatePicker2.js +103 -102
  14. package/lib/components/Calendar/date.js +64 -66
  15. package/lib/components/Card/Card2.js +67 -67
  16. package/lib/components/CardFrame/CardFrame2.js +43 -51
  17. package/lib/components/Chart/ChartParts.js +94 -94
  18. package/lib/components/Chart/chart2.js +52 -52
  19. package/lib/components/Chart/useChartInteraction.js +54 -54
  20. package/lib/components/ChatBubble/ChatBubble2.js +92 -92
  21. package/lib/components/ChatBubble/formatChatTime.js +35 -41
  22. package/lib/components/ChatComposer/ChatComposer2.js +63 -63
  23. package/lib/components/CodeBlock/CodeBlock2.js +61 -61
  24. package/lib/components/CodeBlock/highlight.js +84 -84
  25. package/lib/components/ColorPicker/ColorPicker2.js +387 -386
  26. package/lib/components/ColorPicker/color.js +71 -71
  27. package/lib/components/ColorPicker/presets.js +41 -46
  28. package/lib/components/Combobox/Combobox2.js +117 -118
  29. package/lib/components/CommandMenu/CommandMenu.js +127 -127
  30. package/lib/components/Comment/Comment2.js +86 -60
  31. package/lib/components/ContextMenu/ContextMenu2.js +77 -75
  32. package/lib/components/DataGrid/DataGrid2.js +1192 -1190
  33. package/lib/components/DataGrid/GridPopover.js +94 -94
  34. package/lib/components/DataGrid/anchor.js +34 -31
  35. package/lib/components/DataGrid/model.js +284 -283
  36. package/lib/components/DataGrid/panels.js +398 -399
  37. package/lib/components/DataGrid/typeMeta.js +51 -50
  38. package/lib/components/DataGrid/types.js +38 -39
  39. package/lib/components/DescriptionList/DescriptionList2.js +103 -103
  40. package/lib/components/Dialog/AlertDialog.js +79 -78
  41. package/lib/components/Dialog/Dialog2.js +59 -59
  42. package/lib/components/Dialog/modal.js +44 -46
  43. package/lib/components/Drawer/Drawer2.js +130 -129
  44. package/lib/components/DropdownMenu/DropdownMenu2.js +235 -233
  45. package/lib/components/DropdownMenu/menuCore.js +69 -42
  46. package/lib/components/Dropzone/Dropzone2.js +79 -78
  47. package/lib/components/EmptyState/EmptyState2.js +34 -35
  48. package/lib/components/FileChip/FileChip2.js +73 -73
  49. package/lib/components/FileUpload/FileUpload.js +159 -159
  50. package/lib/components/FilterChips/FilterChips2.js +61 -61
  51. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  52. package/lib/components/FunnelChart/funnel.js +48 -44
  53. package/lib/components/Highlight/Highlight2.js +43 -43
  54. package/lib/components/HoverCard/HoverCard.js +59 -84
  55. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  56. package/lib/components/InlineDiff/diff.js +90 -90
  57. package/lib/components/InlineDiff/useDiffReview.js +64 -63
  58. package/lib/components/Kanban/Kanban2.js +386 -387
  59. package/lib/components/Kanban/KanbanCard.js +70 -95
  60. package/lib/components/Kanban/move.js +50 -46
  61. package/lib/components/LineChart/LineChart2.js +211 -211
  62. package/lib/components/List/List2.js +53 -54
  63. package/lib/components/Listbox/Listbox2.js +115 -115
  64. package/lib/components/Marker/Marker2.js +56 -61
  65. package/lib/components/Menubar/Menubar2.js +144 -141
  66. package/lib/components/MultiSelect/MultiSelect2.js +108 -108
  67. package/lib/components/NavigationMenu/NavigationMenu2.js +298 -299
  68. package/lib/components/NoticeStack/NoticeStack2.js +84 -84
  69. package/lib/components/NumberStepper/NumberStepper2.js +65 -66
  70. package/lib/components/OtpInput/OtpInput2.js +70 -69
  71. package/lib/components/Pagination/Pagination2.js +106 -106
  72. package/lib/components/Pagination/paginationRange.js +37 -39
  73. package/lib/components/PhoneInput/PhoneInput.js +87 -88
  74. package/lib/components/PieChart/PieChart2.js +160 -160
  75. package/lib/components/PieChart/arc.js +65 -62
  76. package/lib/components/PieChart/useArcTween.js +53 -60
  77. package/lib/components/Popover/Popover2.js +62 -62
  78. package/lib/components/ProgressTracker/ProgressTracker2.js +121 -121
  79. package/lib/components/Rating/Rating2.js +82 -81
  80. package/lib/components/Resizable/Resizable2.js +126 -127
  81. package/lib/components/Resizable/layout.js +73 -73
  82. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -67
  83. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  84. package/lib/components/ScatterChart/scatter.js +47 -49
  85. package/lib/components/ScrollArea/ScrollArea2.js +117 -118
  86. package/lib/components/Select/Select2.js +78 -79
  87. package/lib/components/Sidebar/Sidebar2.js +69 -69
  88. package/lib/components/Skeleton/Skeleton2.js +57 -57
  89. package/lib/components/Slider/Slider2.js +73 -74
  90. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -68
  91. package/lib/components/SparkChart/SparkChart2.js +145 -145
  92. package/lib/components/SparkChart/spark.js +64 -42
  93. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  94. package/lib/components/SplitView/SplitView2.js +51 -52
  95. package/lib/components/Stat/Stat2.js +90 -90
  96. package/lib/components/StepList/StepList2.js +70 -70
  97. package/lib/components/Table/Table2.js +70 -70
  98. package/lib/components/Tabs/Tabs2.js +81 -81
  99. package/lib/components/TagInput/TagInput2.js +220 -217
  100. package/lib/components/TimePicker/TimePicker2.js +187 -186
  101. package/lib/components/TimePicker/time.js +63 -62
  102. package/lib/components/Timeline/Timeline2.js +199 -199
  103. package/lib/components/Timeline/scale.js +67 -64
  104. package/lib/components/Toast/Toaster.js +100 -98
  105. package/lib/components/Toast/store.js +90 -94
  106. package/lib/components/ToggleGroup/ToggleGroup2.js +76 -76
  107. package/lib/components/Toolbar/Toolbar2.js +163 -161
  108. package/lib/components/Tracker/Tracker2.js +82 -82
  109. package/lib/components/TreeDiagram/TreeDiagram2.js +123 -124
  110. package/lib/components/TreeView/TreeView2.js +154 -152
  111. package/lib/hooks/timing.js +31 -30
  112. package/lib/hooks/useControllableState.js +37 -38
  113. package/lib/hooks/useCountdown.js +53 -56
  114. package/lib/hooks/useDigitInput.js +66 -41
  115. package/lib/hooks/useDismiss.js +55 -58
  116. package/lib/hooks/useElapsed.js +57 -55
  117. package/lib/hooks/useFloating.js +44 -44
  118. package/lib/hooks/useFocusTrap.js +70 -46
  119. package/lib/hooks/usePresence.js +23 -22
  120. package/lib/hooks/usePressToOpen.js +51 -51
  121. package/lib/hooks/useScrollLock.js +57 -58
  122. package/lib/hooks/useSelection.js +49 -52
  123. package/lib/index.js +65 -65
  124. package/lib/primitives/AspectRatio2.js +57 -57
  125. package/lib/primitives/BrandIcon.js +189 -158
  126. package/lib/primitives/ColorDot2.js +50 -45
  127. package/lib/primitives/CopyButton2.js +52 -50
  128. package/lib/primitives/CountBadge2.js +53 -55
  129. package/lib/primitives/Countdown2.js +28 -25
  130. package/lib/primitives/Delta2.js +41 -41
  131. package/lib/primitives/Elapsed.js +47 -47
  132. package/lib/primitives/FileIcon2.js +86 -86
  133. package/lib/primitives/Flag2.js +122 -122
  134. package/lib/primitives/IconStack2.js +55 -31
  135. package/lib/primitives/IconTile2.js +43 -43
  136. package/lib/primitives/Kbd2.js +55 -55
  137. package/lib/primitives/Layout2.js +78 -78
  138. package/lib/primitives/Link2.js +39 -36
  139. package/lib/primitives/MaskedText2.js +74 -52
  140. package/lib/primitives/Progress2.js +67 -66
  141. package/lib/primitives/RelativeTime.js +54 -61
  142. package/lib/primitives/SearchInput2.js +45 -45
  143. package/lib/primitives/SelectorButton2.js +72 -76
  144. package/lib/primitives/Spinner2.js +56 -56
  145. package/lib/primitives/StatusIcon2.js +63 -63
  146. package/lib/primitives/Swatch2.js +55 -61
  147. package/lib/primitives/Tooltip2.js +78 -78
  148. package/lib/primitives/Typography2.js +53 -53
  149. package/lib/primitives/formatCountdown.js +30 -29
  150. package/lib/primitives/formatElapsed.js +46 -49
  151. package/lib/primitives/formatRelativeTime.js +76 -50
  152. package/lib/primitives/hotkey.js +80 -80
  153. package/lib/primitives/index.js +169 -168
  154. package/lib/primitives/maskValue.js +55 -50
  155. package/lib/style.css +1 -1
  156. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  157. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  158. package/package.json +1 -1
@@ -1,132 +1,128 @@
1
1
  "use client";
2
- function e(t, n) {
3
- t -= 192;
4
- var r = h(), i = r[t];
5
- e.PrJWzb === void 0 && (e.PAoWpC = function(e) {
6
- 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);
7
- for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
8
- return decodeURIComponent(r);
9
- }, e.CaqlxU = {}, e.PrJWzb = !0);
10
- var a = r[0];
11
- e.kaDrxZ !== a && (e.CaqlxU = {}, e.kaDrxZ = a);
12
- var o = e.CaqlxU[t];
13
- return o === void 0 ? (i = e.PAoWpC(i), e.CaqlxU[t] = i) : i = o, i;
14
- }
15
- var t = e;
16
- (function(t, n) {
17
- for (var r = e, i = t();;) try {
18
- if (parseInt(r(203)) / 1 + -parseInt(r(210)) / 2 * (parseInt(r(219)) / 3) + -parseInt(r(195)) / 4 * (-parseInt(r(207)) / 5) + -parseInt(r(224)) / 6 + -parseInt(r(196)) / 7 * (-parseInt(r(220)) / 8) + -parseInt(r(200)) / 9 * (-parseInt(r(209)) / 10) + parseInt(r(198)) / 11 * (-parseInt(r(193)) / 12) == n) break;
19
- i.push(i.shift());
2
+ var e = _;
3
+ (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;
6
+ r.push(r.shift());
20
7
  } catch {
21
- i.push(i.shift());
8
+ r.push(r.shift());
22
9
  }
23
- })(h, 997957);
24
- import { TIMING as n } from "../../hooks/timing.js";
25
- var r = [], i = /* @__PURE__ */ new Set(), a = () => i.forEach((e) => e()), o = (t) => {
26
- var n = e;
27
- return i[n(204)](t), () => {
28
- i[n(213)](t);
29
- };
30
- }, s = () => r, c = 0;
31
- function l(t, n = {}) {
32
- var i = e;
33
- let o = n.id ?? i(211) + ++c;
34
- return r.some((e) => e.id === o) ? (u(o, {
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, {
35
19
  title: t,
36
- ...n
37
- }), o) : (r = [{
38
- type: i(215),
39
- ...n,
20
+ ...r
21
+ }), o) : (n = [{
22
+ type: a(260),
23
+ ...r,
40
24
  id: o,
41
25
  title: t,
42
26
  version: 0
43
- }, ...r], a(), o);
27
+ }, ...n], i(), o);
44
28
  }
45
- function u(t, n) {
46
- var i = e;
47
- r = r.map((e) => e.id === t ? {
29
+ function l(t, r) {
30
+ var a = e;
31
+ n = n[a(267)]((e) => e.id === t ? {
48
32
  ...e,
49
- ...n,
33
+ ...r,
50
34
  exiting: !1,
51
- version: e[i(208)] + 1
52
- } : e), a();
35
+ version: e[a(274)] + 1
36
+ } : e), i();
53
37
  }
54
- function d(t) {
55
- var n = e;
56
- let i = r.filter((e) => (t == null || e.id === t) && !e[n(202)]);
57
- i[n(199)] && (r = r[n(228)]((e) => i[n(223)](e) ? {
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) ? {
58
42
  ...e,
59
43
  exiting: !0
60
- } : e), a(), i[n(194)]((e) => e[n(201)]?.()), window.setTimeout(() => {
61
- var e = n;
62
- r = r.filter((t) => !(i[e(218)]((e) => e.id === t.id) && t[e(202)])), a();
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();
63
47
  }, 320));
64
48
  }
65
- var f = (e) => e != null && typeof e === t(222) && t(205) in e ? e : {
66
- title: e,
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 : {
56
+ title: t,
67
57
  description: void 0
68
- }, p = (e) => (t, n) => l(t, {
58
+ }, p = (e) => (t, n) => c(t, {
69
59
  ...n,
70
60
  type: e
71
61
  });
72
- function m(e, n, r) {
73
- var i = t;
74
- let a = l(f(n[i(197)])[i(205)], {
62
+ function m(t, n, r) {
63
+ var i = e;
64
+ let a = c(f(n[i(254)])[i(256)], {
75
65
  ...r,
76
- description: f(n[i(197)]).description,
77
- type: "loading"
66
+ description: f(n[i(254)])[i(253)],
67
+ type: i(254)
78
68
  });
79
- return e[i(221)]((e) => {
69
+ return t.then((e) => {
80
70
  var t = i;
81
- let r = f(typeof n[t(206)] == "function" ? n[t(206)](e) : n[t(206)]);
82
- u(a, {
83
- type: t(206),
84
- title: r[t(205)],
85
- description: r[t(216)]
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
86
76
  });
87
77
  }, (e) => {
88
78
  var t = i;
89
- let r = f(typeof n.error === t(226) ? n[t(192)](e) : n[t(192)]);
90
- u(a, {
91
- type: "error",
92
- title: r.title,
93
- description: r[t(216)]
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)]
94
84
  });
95
- }), e;
96
- }
97
- function h() {
98
- var e = /* @__PURE__ */ "DgHLBG.B2jQzwn0.Aw5JBhvKzxm.mZqZmdCZnhvwv1LKyq.Aw5MBW.zNvUy3rPB24.7iUK7zAjioY3QoYgJa.BwfW.zxjYB3i.mtjLqwr1s2q.zM9YrwfJAa.nJbYyu9ksvK.nty2mdL1wMP0zMC.Bg9HzgLUzW.mJq2mtyYnZnjr1fyBNa.BgvUz3rO.mtHTvuT2zwO.B25eAxnTAxnZ.zxHPDgLUzW.mte2nZm2nKrJweTUuG.ywrK.DgL0Bgu.C3vJy2vZCW.ntq3nJCWwgTWEK1r.DMvYC2LVBG.otiXotC5mhLjDLDcEa.mJbhDNPcuxi.Dg9HC3qT.Dw5KBW.zgvSzxrL.D2fYBMLUzW.zgvMyxvSDa.zgvZy3jPChrPB24.yxnZAwDU.C29Tzq.ndeXnZiWEK95DwXq.ntiWtMDmBuXv".split(".");
99
- return h = function() {
100
- return e;
101
- }, h();
85
+ }), t;
102
86
  }
103
- function g(e, { onUndo: i, onCommit: o, undoLabel: s = t(227), ...c }) {
104
- var u = t;
105
- let d = !1, f = l(e, {
106
- duration: n[u(212)],
107
- ...c,
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,
108
91
  action: {
109
92
  label: s,
110
93
  onClick: () => {
111
- d = !0, i();
94
+ u = !0, a();
112
95
  }
113
96
  },
114
- onDismiss: () => !d && o?.()
97
+ onDismiss: () => !u && o?.()
115
98
  });
116
- return r = r[u(228)]((e) => e.id === f ? {
99
+ return n = n.map((e) => e.id === d ? {
117
100
  ...e,
118
101
  undoable: !0
119
- } : e), a(), f;
102
+ } : e), i(), d;
120
103
  }
121
- var _ = Object[t(217)]((e, t) => l(e, t), {
122
- success: p(t(206)),
123
- error: p(t(192)),
124
- warning: p(t(214)),
125
- info: p(t(225)),
126
- loading: p("loading"),
127
- update: u,
128
- dismiss: d,
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,
129
112
  promise: m,
130
- undo: g
113
+ undo: h
131
114
  });
132
- export { s as getToasts, o as subscribe, _ as toast };
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 };
@@ -3,122 +3,122 @@ const e = n;
3
3
  (function(e, t) {
4
4
  let r = n, i = e();
5
5
  for (;;) try {
6
- if (-parseInt(r(178)) / 1 * (parseInt(r(211)) / 2) + parseInt(r(177)) / 3 * (-parseInt(r(161)) / 4) + -parseInt(r(149)) / 5 + -parseInt(r(151)) / 6 * (-parseInt(r(200)) / 7) + -parseInt(r(207)) / 8 + parseInt(r(187)) / 9 + parseInt(r(163)) / 10 * (parseInt(r(190)) / 11) == t) break;
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
7
  i.push(i.shift());
8
8
  } catch {
9
9
  i.push(i.shift());
10
10
  }
11
- })(t, 181493);
12
- function t() {
13
- let e = /* @__PURE__ */ "AM9PBG.vg9Nz2XLr3jVDxbjDgvTig11C3qGyMuGDxnLzcbPBNnPzguGpfrVz2DSzuDYB3vWpG.CMfKAw8.BgvMDa.zgL2.zgf0yxnLDa.A2v5.w2rHDgeTDgCTAxrLBv1Bzgf0ys1ZDgf0zt0IB24Ixq.nduXotzAteT1B1e.w2rHDgeTDgCTAxrLBv0.nJuXmJiXmeXSDMfqEG.zMLUza.DMfSDwvuExbL.D2LKDgG.C3rHDgu.zhmTDg9Nz2XLlwDYB3vWx19PDgvTls1Py29U.uhjVDMLKzxi.Ag9YAxPVBNrHBa.zgvMyxvSDfbYzxzLBNrLza.zMLSDgvY.zhmTDg9Nz2XLlwDYB3vWx19PDgvT.Dg9W.BgvUz3rO.C3bHBG.otnZDwrAEfO.nJvXC1jHzwu.B2zMC2v0vg9W.rw5K.y3vYCMvUDa.Dg9Nz2XL.zgLZywjSzwq.zhmTDg9Nz2XLlwDYB3vW.DMvYDgLJywW.Aw5KzxHpzG.mJq5nZC0m29Ws29era.C29MDa.sg9Tzq.mtfoAuDJs1O.B2jZzxj2zq.qxjYB3DsAwDODa.yxjPys1SywjLBa.w3jVBgu9iNrVB2XIyxiIxq.B2zM.C2LUz2XL.B2zMC2v0tgvMDa.qxjYB3DeB3DU.BNvTyMvY.ntztsu5osvG.AgvPz2H0.zhmTDg9Nz2XLlwDYB3vWls12zxj0AwnHBa.y2XVC2vZDa.C2v0u2vSzwn0zwq.zhmTDg9Nz2XLlwDYB3vWls0.qxjYB3DvCa.mtmYnZKYC1D1A0DH.CgfYzw50rwXLBwvUDa.BxvSDgLWBgu.z3jVDxa.ntK2nM1tAujpsW.zgLZy29UBMvJDa.B2zMC2v0sgvPz2H0.mti4mJuWmhjpA0r4za.AxntzwXLy3rLza.nti1mdzKrLD6yxO.zM9JDxm".split(".");
14
- return t = function() {
15
- return e;
16
- }, t();
17
- }
18
- function n(e, r) {
19
- e -= 147;
20
- let i = t(), a = i[e];
21
- n.crsQRc === void 0 && (n.uQNqml = function(e) {
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) {
22
17
  let t = "", n = "";
23
18
  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);
24
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
25
20
  return decodeURIComponent(n);
26
- }, n.GAgfeT = {}, n.crsQRc = !0);
27
- let o = i[0];
28
- n.bHdbOn !== o && (n.GAgfeT = {}, n.bHdbOn = o);
29
- let s = n.GAgfeT[e];
30
- return s === void 0 ? (a = n.uQNqml(a), n.GAgfeT[e] = a) : a = s, a;
21
+ }, n.renbSn = {}, n.WpaqNw = !0);
22
+ 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;
31
26
  }
32
- import { cx as r } from "../../primitives/index.js";
33
- import { useSelection as i } from "../../hooks/useSelection.js";
27
+ import { useSelection as r } from "../../hooks/useSelection.js";
34
28
  /* empty css */
35
- import { createContext as a, useContext as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
36
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
37
- var f = a(null);
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();
36
+ }
37
+ var f = i(null);
38
38
  function p(e) {
39
- let t = n, { variant: a = t(188), size: o = "md", orientation: p = t(170), disabled: g, className: _, children: v } = e, y = i(e), b = c(null), [x, S] = l(null), C = y.selected[t(153)]("\0");
40
- s(() => {
41
- let e = t, n = b[e(181)];
42
- if (y.multiple || !n) return;
43
- let r = () => {
44
- let t = e, r = n.querySelector(t(160));
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");
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));
45
45
  S((e) => r ? {
46
- left: r[t(197)],
47
- top: r[t(179)],
48
- width: r.offsetWidth,
49
- height: r[t(148)],
46
+ left: r.offsetLeft,
47
+ top: r.offsetTop,
48
+ width: r[n(151)],
49
+ height: r[n(178)],
50
50
  shown: !0
51
51
  } : e && {
52
52
  ...e,
53
53
  shown: !1
54
54
  });
55
55
  };
56
- r();
57
- let i = new ResizeObserver(r);
58
- return i[e(191)](n), () => i[e(147)]();
59
- }, [y[t(209)], C]);
60
- let w = () => !!b[t(181)]?.[t(208)]?.[t(203)](t(194));
61
- return s(() => {
62
- let e = t;
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));
61
+ return o(() => {
62
+ let e = i;
63
63
  if (w()) return;
64
- let n = m(b.current), r = n[e(164)]((t) => t[e(158)][e(167)] === "on") ?? n[0];
65
- for (let t of b[e(181)]?.querySelectorAll(e(162)) ?? []) t.tabIndex = t === r ? 0 : -1;
66
- }), u(f[t(169)], {
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, {
67
67
  value: {
68
- single: !y[t(209)],
68
+ single: !y.multiple,
69
69
  disabled: g,
70
- isSelected: (e) => y[t(150)](e),
71
- toggle: (e) => y[t(182)](e)
70
+ isSelected: (e) => y[i(183)](e),
71
+ toggle: (e) => y[i(143)](e)
72
72
  },
73
- children: d(t(157), {
73
+ children: u("div", {
74
74
  ref: b,
75
- role: y[t(209)] ? t(210) : "radiogroup",
76
- "aria-label": e[t(193)],
75
+ role: y[i(157)] ? i(170) : i(156),
76
+ "aria-label": e[i(134)],
77
77
  "aria-orientation": p,
78
- className: r(t(184), t(205) + a, t(205) + o, p === t(185) && t(202), _),
79
- "data-glide": !y[t(209)] || void 0,
78
+ className: t(i(166), i(158) + a, i(158) + d, p === "vertical" && i(169), _),
79
+ "data-glide": !y[i(157)] || void 0,
80
80
  onKeyDown: (e) => {
81
- let n = t;
81
+ let t = i;
82
82
  if (w()) return;
83
- let r = p === n(170) ? "ArrowLeft" : n(206), i = p === n(170) ? n(192) : n(198), a = m(b[n(181)]), o = a[n(186)](document.activeElement), s;
84
- e[n(159)] === i ? s = a[(o + 1) % a[n(175)]] : e[n(159)] === r ? s = a[(o - 1 + a.length) % a[n(175)]] : e[n(159)] === n(189) ? s = a[0] : e[n(159)] === n(180) && (s = a[a.length - 1]), s && (e.preventDefault(), s[n(152)](), !y[n(209)] && s[n(158)].value != null && y[n(204)]([h(s[n(158)].value, s)]));
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)]));
85
85
  },
86
- children: [x && u(t(176), {
87
- className: "ds-toggle-group__thumb",
86
+ children: [x && l("span", {
87
+ className: i(147),
88
88
  "aria-hidden": !0,
89
89
  style: {
90
- left: x[t(156)],
91
- top: x[t(174)],
92
- width: x[t(166)],
93
- height: x[t(201)],
90
+ left: x.left,
91
+ top: x[i(142)],
92
+ width: x.width,
93
+ height: x[i(174)],
94
94
  opacity: +!!x.shown
95
95
  }
96
96
  }), v]
97
97
  })
98
98
  });
99
99
  }
100
- var m = (t) => [...t?.querySelectorAll(e(162)) ?? []][e(172)]((t) => !t[e(183)]), h = (t, n) => n.dataset[e(165)] === e(199) ? Number(t) : t;
101
- function g({ value: t, icon: n, children: i, disabled: a, className: s, onClick: c, ...l }) {
102
- let u = e, p = o(f);
103
- if (!p) throw Error(u(154));
104
- let m = p.isSelected(t);
105
- return d("button", {
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", {
106
106
  type: "button",
107
107
  "data-tg-item": "",
108
- "data-state": m ? "on" : u(195),
109
- "data-value": String(t),
110
- "data-value-type": typeof t,
111
- role: p.single ? u(155) : void 0,
112
- "aria-checked": p[u(196)] ? m : void 0,
113
- "aria-pressed": p[u(196)] ? void 0 : m,
114
- disabled: p.disabled || a,
115
- className: r(u(173), !i && u(168), s),
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
116
  onClick: (e) => {
117
- let n = u;
118
- c?.(e), e[n(171)] || p[n(182)](t);
117
+ let t = d;
118
+ c?.(e), e[t(130)] || p[t(143)](n);
119
119
  },
120
120
  ...l,
121
- children: [n, i]
121
+ children: [r, i]
122
122
  });
123
123
  }
124
124
  p.Item = g;