@iamfiro/design 0.3.2 → 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 (163) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/app-shell/AGENTS.md +99 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/lib/components/Accordion/Accordion2.js +74 -74
  6. package/lib/components/ActionBar/ActionBar2.js +44 -42
  7. package/lib/components/Alert/Alert2.js +67 -67
  8. package/lib/components/AppShell/AppShell2.js +72 -66
  9. package/lib/components/AreaChart/AreaChart.js +45 -45
  10. package/lib/components/BarChart/BarChart2.js +128 -128
  11. package/lib/components/BarList/BarList2.js +105 -105
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +63 -64
  13. package/lib/components/Calendar/Calendar2.js +197 -197
  14. package/lib/components/Calendar/DatePicker2.js +100 -100
  15. package/lib/components/Calendar/date.js +47 -70
  16. package/lib/components/Card/Card2.js +101 -74
  17. package/lib/components/CardFrame/CardFrame2.js +52 -56
  18. package/lib/components/Chart/ChartParts.js +88 -88
  19. package/lib/components/Chart/chart2.js +63 -63
  20. package/lib/components/Chart/useChartInteraction.js +43 -43
  21. package/lib/components/ChatBubble/ChatBubble2.js +111 -111
  22. package/lib/components/ChatBubble/formatChatTime.js +38 -43
  23. package/lib/components/ChatComposer/ChatComposer2.js +96 -96
  24. package/lib/components/CodeBlock/CodeBlock2.js +65 -65
  25. package/lib/components/CodeBlock/highlight.js +84 -84
  26. package/lib/components/ColorPicker/ColorPicker2.js +263 -263
  27. package/lib/components/ColorPicker/color.js +92 -92
  28. package/lib/components/ColorPicker/presets.js +35 -39
  29. package/lib/components/Combobox/Combobox2.js +134 -134
  30. package/lib/components/CommandMenu/CommandMenu.js +130 -131
  31. package/lib/components/Comment/Comment2.js +64 -63
  32. package/lib/components/ContextMenu/ContextMenu2.js +84 -84
  33. package/lib/components/DataGrid/DataGrid2.js +1182 -1180
  34. package/lib/components/DataGrid/GridPopover.js +84 -84
  35. package/lib/components/DataGrid/anchor.js +29 -28
  36. package/lib/components/DataGrid/model.js +308 -307
  37. package/lib/components/DataGrid/panels.js +398 -399
  38. package/lib/components/DataGrid/typeMeta.js +41 -40
  39. package/lib/components/DataGrid/types.js +39 -40
  40. package/lib/components/DescriptionList/DescriptionList2.js +105 -105
  41. package/lib/components/Dialog/AlertDialog.js +90 -89
  42. package/lib/components/Dialog/Dialog2.js +71 -72
  43. package/lib/components/Dialog/modal.js +62 -60
  44. package/lib/components/Drawer/Drawer2.js +167 -166
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +260 -258
  46. package/lib/components/DropdownMenu/menuCore.js +29 -28
  47. package/lib/components/Dropzone/Dropzone2.js +78 -77
  48. package/lib/components/EmptyState/EmptyState2.js +57 -57
  49. package/lib/components/FileChip/FileChip2.js +53 -77
  50. package/lib/components/FileUpload/FileUpload.js +168 -167
  51. package/lib/components/FilterChips/FilterChips2.js +60 -60
  52. package/lib/components/FunnelChart/FunnelChart2.js +174 -174
  53. package/lib/components/FunnelChart/funnel.js +44 -42
  54. package/lib/components/Highlight/Highlight2.js +55 -55
  55. package/lib/components/HoverCard/HoverCard.js +71 -96
  56. package/lib/components/InlineDiff/InlineDiff2.js +128 -129
  57. package/lib/components/InlineDiff/diff.js +79 -79
  58. package/lib/components/InlineDiff/useDiffReview.js +61 -62
  59. package/lib/components/Kanban/Kanban2.js +387 -389
  60. package/lib/components/Kanban/KanbanCard.js +84 -84
  61. package/lib/components/Kanban/move.js +32 -25
  62. package/lib/components/LineChart/LineChart2.js +228 -228
  63. package/lib/components/List/List2.js +62 -62
  64. package/lib/components/Listbox/Listbox2.js +92 -92
  65. package/lib/components/Marker/Marker2.js +50 -56
  66. package/lib/components/Menubar/Menubar2.js +117 -116
  67. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +231 -231
  69. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  70. package/lib/components/NumberStepper/NumberStepper2.js +60 -60
  71. package/lib/components/OtpInput/OtpInput2.js +90 -89
  72. package/lib/components/Pagination/Pagination2.js +105 -105
  73. package/lib/components/Pagination/paginationRange.js +37 -37
  74. package/lib/components/PhoneInput/PhoneInput.js +75 -76
  75. package/lib/components/PieChart/PieChart2.js +166 -166
  76. package/lib/components/PieChart/arc.js +71 -69
  77. package/lib/components/PieChart/useArcTween.js +60 -62
  78. package/lib/components/Popover/Popover2.js +85 -86
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +134 -134
  80. package/lib/components/Rating/Rating2.js +90 -89
  81. package/lib/components/Resizable/Resizable2.js +128 -129
  82. package/lib/components/Resizable/layout.js +51 -51
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -48
  84. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  85. package/lib/components/ScatterChart/scatter.js +49 -52
  86. package/lib/components/ScrollArea/ScrollArea2.js +115 -117
  87. package/lib/components/Select/Select2.js +82 -82
  88. package/lib/components/Sidebar/Sidebar2.js +91 -85
  89. package/lib/components/Sidebar/rail.js +43 -0
  90. package/lib/components/Skeleton/Skeleton2.js +63 -64
  91. package/lib/components/Slider/Slider2.js +65 -66
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -69
  93. package/lib/components/SparkChart/SparkChart2.js +126 -127
  94. package/lib/components/SparkChart/spark.js +66 -42
  95. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  96. package/lib/components/SplitView/SplitView2.js +51 -51
  97. package/lib/components/Stat/Stat2.js +79 -79
  98. package/lib/components/StepList/StepList2.js +75 -75
  99. package/lib/components/Table/Table2.js +71 -71
  100. package/lib/components/Tabs/Tabs2.js +74 -74
  101. package/lib/components/TagInput/TagInput2.js +223 -221
  102. package/lib/components/TimePicker/TimePicker2.js +197 -195
  103. package/lib/components/TimePicker/time.js +59 -56
  104. package/lib/components/Timeline/Timeline2.js +195 -195
  105. package/lib/components/Timeline/scale.js +64 -66
  106. package/lib/components/Toast/Toaster.js +139 -139
  107. package/lib/components/Toast/store.js +72 -76
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  109. package/lib/components/Toolbar/Toolbar2.js +165 -164
  110. package/lib/components/Tracker/Tracker2.js +72 -72
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +96 -97
  112. package/lib/components/TreeView/TreeView2.js +152 -151
  113. package/lib/hooks/timing.js +34 -36
  114. package/lib/hooks/useControllableState.js +29 -30
  115. package/lib/hooks/useCountdown.js +51 -53
  116. package/lib/hooks/useDigitInput.js +81 -55
  117. package/lib/hooks/useDismiss.js +53 -56
  118. package/lib/hooks/useElapsed.js +48 -49
  119. package/lib/hooks/useFloating.js +36 -36
  120. package/lib/hooks/useFocusTrap.js +32 -32
  121. package/lib/hooks/usePresence.js +49 -49
  122. package/lib/hooks/usePressToOpen.js +40 -40
  123. package/lib/hooks/useScrollLock.js +50 -49
  124. package/lib/hooks/useSelection.js +42 -47
  125. package/lib/index.js +138 -139
  126. package/lib/primitives/AspectRatio2.js +58 -57
  127. package/lib/primitives/BrandIcon.js +210 -179
  128. package/lib/primitives/ColorDot2.js +42 -41
  129. package/lib/primitives/CopyButton2.js +59 -58
  130. package/lib/primitives/CountBadge2.js +58 -63
  131. package/lib/primitives/Countdown2.js +38 -37
  132. package/lib/primitives/Delta2.js +37 -37
  133. package/lib/primitives/Elapsed.js +42 -40
  134. package/lib/primitives/FileIcon2.js +102 -102
  135. package/lib/primitives/Flag2.js +124 -124
  136. package/lib/primitives/IconStack2.js +45 -23
  137. package/lib/primitives/IconTile2.js +45 -41
  138. package/lib/primitives/Kbd2.js +48 -48
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +40 -42
  141. package/lib/primitives/MaskedText2.js +50 -50
  142. package/lib/primitives/Progress2.js +78 -77
  143. package/lib/primitives/RelativeTime.js +55 -58
  144. package/lib/primitives/SearchInput2.js +72 -68
  145. package/lib/primitives/SelectorButton2.js +60 -61
  146. package/lib/primitives/Spinner2.js +48 -49
  147. package/lib/primitives/StatusIcon2.js +69 -69
  148. package/lib/primitives/Swatch2.js +65 -69
  149. package/lib/primitives/Tooltip2.js +92 -92
  150. package/lib/primitives/Typography2.js +37 -37
  151. package/lib/primitives/formatCountdown.js +38 -38
  152. package/lib/primitives/formatElapsed.js +43 -45
  153. package/lib/primitives/formatRelativeTime.js +54 -54
  154. package/lib/primitives/hotkey.js +77 -77
  155. package/lib/primitives/index.js +162 -161
  156. package/lib/primitives/maskValue.js +54 -51
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  159. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  160. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  161. package/lib/types/components/index.d.ts +1 -0
  162. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  163. package/package.json +1 -1
@@ -1,104 +1,104 @@
1
1
  "use client";
2
- const e = r;
3
- (function(e, t) {
4
- let n = r, i = e();
2
+ function e(t, n) {
3
+ t -= 373;
4
+ let r = i(), a = r[t];
5
+ e.HjvkNa === void 0 && (e.dPEZNJ = function(e) {
6
+ let t = "", n = "";
7
+ 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);
8
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
+ return decodeURIComponent(n);
10
+ }, e.QRGKdM = {}, e.HjvkNa = !0);
11
+ let o = r[0];
12
+ e.pqNIhv !== o && (e.QRGKdM = {}, e.pqNIhv = o);
13
+ let s = e.QRGKdM[t];
14
+ return s === void 0 ? (a = e.dPEZNJ(a), e.QRGKdM[t] = a) : a = s, a;
15
+ }
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
5
19
  for (;;) try {
6
- if (-parseInt(n(424)) / 1 + -parseInt(n(441)) / 2 * (parseInt(n(434)) / 3) + -parseInt(n(429)) / 4 * (-parseInt(n(435)) / 5) + parseInt(n(455)) / 6 * (-parseInt(n(454)) / 7) + -parseInt(n(452)) / 8 + parseInt(n(457)) / 9 + parseInt(n(432)) / 10 * (parseInt(n(444)) / 11) == t) break;
20
+ if (parseInt(r(412)) / 1 + parseInt(r(402)) / 2 + parseInt(r(393)) / 3 + -parseInt(r(373)) / 4 * (parseInt(r(376)) / 5) + -parseInt(r(390)) / 6 + -parseInt(r(391)) / 7 + -parseInt(r(406)) / 8 * (-parseInt(r(404)) / 9) == n) break;
7
21
  i.push(i.shift());
8
22
  } catch {
9
23
  i.push(i.shift());
10
24
  }
11
- })(l, 985532);
12
- import { Inline as t } from "../../primitives/Layout2.js";
13
- import { cx as n } from "../../primitives/index.js";
14
- /* empty css */
15
- function r(e, t) {
16
- e -= 419;
17
- let n = l(), i = n[e];
18
- r.vBFykT === void 0 && (r.QDvdkV = function(e) {
19
- let t = "", n = "";
20
- 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);
21
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
22
- return decodeURIComponent(n);
23
- }, r.JRMhxj = {}, r.vBFykT = !0);
24
- let a = n[0];
25
- r.zMwXxU !== a && (r.JRMhxj = {}, r.zMwXxU = a);
26
- let o = r.JRMhxj[e];
27
- return o === void 0 ? (i = r.QDvdkV(i), r.JRMhxj[e] = i) : i = o, i;
25
+ })(i, 119304);
26
+ import { Inline as n } from "../../primitives/Layout2.js";
27
+ import { cx as r } from "../../primitives/index.js";
28
+ function i() {
29
+ let e = /* @__PURE__ */ "zhmTDgfIBguTD3jHCa.B3zLCMXPBMu.CMLNAhq.BwfW.y2vUDgvY.nZy2ntz0weXOveS.otC2nJbcCez5uw8.BNvTzxjPyW.zhmTDgfIBguTlq.mJvNAwrRzwW.rw50zxi.zhmTDgfIBguTlwLUDgvYywn0AxzL.AgvHzgvYtgvHzgLUzW.zhmTDgfIBgu.A2v5.BgvUz3rO.DgHLywq.zhmTDgfIBguTlxn0CMLWzwq.zhmTDgfIBgvFx2vTChr5.C3bHBG.CMvUzgvY.y2fWDgLVBG.C3rHCNq.mta0mtmZmhDwtLjYtW.nZa2mZqYy2PbsMjl.ywXPz24.ndmXndmWq3P6rxPH.ChjLDMvUDerLzMf1Bhq.zgvMyxvSDa.DgfYz2v0.zhmTC2nYB2XS.y29S.D2LKDgG.zhmTDgfIBguTlw92zxjSAw5L.zw5K.mJi3odq0CLDwAxHX.zgL2.owfpD2nHEa.AgvHzgvY.mtq1mtyXnLLSELPbrq".split(".");
30
+ return i = function() {
31
+ return e;
32
+ }, i();
28
33
  }
29
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
30
- var o = {
31
- start: e(422),
32
- center: e(426),
33
- end: e(440)
34
- }, s = {
34
+ /* empty css */
35
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
36
+ var s = {
37
+ start: t(389),
38
+ center: "center",
39
+ end: "end"
40
+ }, c = {
35
41
  start: void 0,
36
- center: e(426),
37
- end: e(431)
42
+ center: t(411),
43
+ end: t(409)
38
44
  };
39
- function c({ columns: r, rows: c, rowKey: l, density: u = e(433), striped: d = !0, headerVariant: f = "label", selectedKey: p, onRowClick: m, empty: h, caption: g, className: _, style: v }) {
40
- let y = e, b = (e) => e.align ?? (e.numeric ? y(440) : "start"), x = !!m, S = (e, t, n) => {
45
+ function l({ columns: e, rows: i, rowKey: l, density: u = t(395), striped: d = !0, headerVariant: f = "label", selectedKey: p, onRowClick: m, empty: h, caption: g, className: _, style: v }) {
46
+ let y = t, b = (e) => e[y(392)] ?? (e.numeric ? y(401) : y(389)), x = !!m, S = (e, t, n) => {
41
47
  let r = y;
42
- e[r(428)] !== e[r(449)] || e.key !== r(460) && e[r(438)] !== " " || (e[r(448)](), m?.(t, n));
48
+ e[r(396)] !== e.currentTarget || e[r(381)] !== r(377) && e[r(381)] !== " " || (e[r(394)](), m?.(t, n));
43
49
  };
44
- return i(y(439), {
45
- className: n(y(436), y(461), _),
50
+ return a(y(403), {
51
+ className: r(y(407), y(397), _),
46
52
  style: v,
47
- children: a(y(447), {
48
- className: n(y(462), y(445) + u, d && y(420), f === y(443) && "ds-table--overline", x && y(442)),
53
+ children: o("table", {
54
+ className: r(y(380), y(375) + u, d && y(384), f === y(408) && y(400), x && y(378)),
49
55
  children: [
50
- g && i(y(459), { children: g }),
51
- i("thead", { children: i("tr", { children: r[y(456)]((e) => {
52
- let n = y, r = b(e);
53
- return i("th", {
54
- scope: n(427),
56
+ g && a(y(388), { children: g }),
57
+ a(y(383), { children: a("tr", { children: e[y(410)]((e) => {
58
+ let t = y, r = b(e);
59
+ return a("th", {
60
+ scope: t(398),
55
61
  style: {
56
- width: e[n(458)],
57
- textAlign: s[r]
62
+ width: e[t(399)],
63
+ textAlign: c[r]
58
64
  },
59
- children: e[n(423)] == null ? e[n(419)] : a(t, {
65
+ children: e.headerLeading == null ? e[t(405)] : o(n, {
60
66
  gap: 2,
61
67
  wrap: !1,
62
- justify: o[r],
63
- children: [e[n(423)], i(n(450), { children: e.header })]
68
+ justify: s[r],
69
+ children: [e[t(379)], a(t(386), { children: e[t(405)] })]
64
70
  })
65
- }, e[n(438)]);
71
+ }, e[t(381)]);
66
72
  }) }) }),
67
- a(y(453), { children: [c[y(456)]((e, n) => {
68
- let c = y, u = l ? l(e, n) : n, d = p != null && p === u;
69
- return i("tr", {
73
+ o("tbody", { children: [i[y(410)]((t, r) => {
74
+ let i = y, u = l ? l(t, r) : r, d = p != null && p === u;
75
+ return a("tr", {
70
76
  "data-selected": d || void 0,
71
77
  "aria-current": d || void 0,
72
78
  tabIndex: x ? 0 : void 0,
73
- onClick: m ? () => m(e, n) : void 0,
74
- onKeyDown: x ? (t) => S(t, e, n) : void 0,
75
- children: r[c(456)]((r) => {
76
- let l = c, u = b(r), d = r.render ? r[l(421)](e, n) : e[r[l(438)]] ?? null, f = r[l(446)]?.(e, n);
77
- return i("td", {
78
- className: r[l(451)] ? l(425) : void 0,
79
- style: { textAlign: s[u] },
80
- children: f == null ? d : a(t, {
79
+ onClick: m ? () => m(t, r) : void 0,
80
+ onKeyDown: x ? (e) => S(e, t, r) : void 0,
81
+ children: e[i(410)]((e) => {
82
+ let l = i, u = b(e), d = e.render ? e[l(387)](t, r) : t[e[l(381)]] ?? null, f = e.leading?.(t, r);
83
+ return a("td", {
84
+ className: e[l(374)] ? "ds-table__num" : void 0,
85
+ style: { textAlign: c[u] },
86
+ children: f == null ? d : o(n, {
81
87
  gap: 3,
82
88
  wrap: !1,
83
- justify: o[u],
84
- children: [f, i(l(450), { children: d })]
89
+ justify: s[u],
90
+ children: [f, a(l(386), { children: d })]
85
91
  })
86
- }, r.key);
92
+ }, e[l(381)]);
87
93
  })
88
94
  }, u);
89
- }), !c[y(430)] && h && i("tr", { children: i("td", {
90
- colSpan: r[y(430)],
91
- className: y(437),
95
+ }), !i.length && h && a("tr", { children: a("td", {
96
+ colSpan: e[y(382)],
97
+ className: y(385),
92
98
  children: h
93
99
  }) })] })
94
100
  ]
95
101
  })
96
102
  });
97
103
  }
98
- function l() {
99
- let e = /* @__PURE__ */ "zhmTDgfIBguTlq.BgvHzgLUzW.DgfIBgu.ChjLDMvUDerLzMf1Bhq.y3vYCMvUDfrHCMDLDa.C3bHBG.BNvTzxjPyW.mti0mte4ndb4zNLzreW.DgjVzhK.n3HeBgrSvG.mtG3nJyZogvMvfLTwa.BwfW.otuXmtG4nhj4z2LUAG.D2LKDgG.y2fWDgLVBG.rw50zxi.zhmTC2nYB2XS.zhmTDgfIBgu.AgvHzgvY.zhmTDgfIBguTlxn0CMLWzwq.CMvUzgvY.C3rHCNq.AgvHzgvYtgvHzgLUzW.mtm3nJmXoePdwvfnAq.zhmTDgfIBgvFx251Bq.y2vUDgvY.y29S.DgfYz2v0.mtmZmtu2r3PjrMPP.BgvUz3rO.CMLNAhq.mtuWqwvJtgTR.zgvMyxvSDa.m1fTzgz1BW.mJe1vvHgD0n5.zhmTDgfIBguTD3jHCa.zhmTDgfIBgvFx2vTChr5.A2v5.zgL2.zw5K.mZCYntGXmgT2zNLqsq.zhmTDgfIBguTlwLUDgvYywn0AxzL.B3zLCMXPBMu.mJy0mduXn1DrC1rUrW".split(".");
100
- return l = function() {
101
- return e;
102
- }, l();
103
- }
104
- export { c as Table };
104
+ export { l as Table };
@@ -1,131 +1,131 @@
1
1
  "use client";
2
- const e = _;
2
+ const e = v;
3
3
  (function(e, t) {
4
- let n = _, r = e();
4
+ let n = v, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(244)) / 1 + parseInt(n(220)) / 2 + -parseInt(n(219)) / 3 + -parseInt(n(238)) / 4 + parseInt(n(253)) / 5 + parseInt(n(224)) / 6 + -parseInt(n(243)) / 7 == t) break;
6
+ if (-parseInt(n(226)) / 1 * (-parseInt(n(225)) / 2) + -parseInt(n(211)) / 3 + -parseInt(n(245)) / 4 * (-parseInt(n(233)) / 5) + parseInt(n(238)) / 6 + -parseInt(n(218)) / 7 * (-parseInt(n(214)) / 8) + -parseInt(n(224)) / 9 + -parseInt(n(207)) / 10 == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(l, 789753);
11
+ })(y, 748281);
12
12
  import { useControllableState as t } from "../../hooks/useControllableState.js";
13
13
  import { cx as n } from "../../primitives/index.js";
14
14
  /* empty css */
15
15
  import { createContext as r, useContext as i, useId as a, useLayoutEffect as o, useRef as s, useState as c } from "react";
16
- function l() {
17
- let e = /* @__PURE__ */ "B2zMC2v0tgvMDa.qxjYB3DsAwDODa.yNv0Dg9U.mJqXmtC4n0jTuhD3Cq.mJe3ndG5mgjmBK9uEa.DgfI.A2v5.zgf0yxnLDa.ota1ndyWmhbKAvzIyW.lxrHyI0.zhmTDgfIx19JB3vUDa.uhjVDMLKzxi.CxvLCNLtzwXLy3rVCG.CMvWBgfJzq.BgvMDa.zgL2.DMfSDwu.ChjLDMvUDerLzMf1Bhq.zhmTDgfIBgLZDc0T.rw5K.D2LKDgG.lxbHBMvSlq.mJC3mtm2oe9ky1zPqW.C3bHBG.zgLZy29UBMvJDa.zhmTDgfICgfUzwW.w3jVBgu9iNrHyIjDw2fYAweTC2vSzwn0zwq9iNrYDwuIxq.mJi0ndmXmNHSswjgyW.mtm3ntK3ovPisfn0zq.zhmTDgfIBgLZDc0TzML0DgvK.vgfI.CxvLCNLtzwXLy3rVCKfSBa.DgfIBgLZDa.ugfUzwW.zM9JDxm.B2jZzxj2zq.BgvUz3rO.nJKZmJG3mhjTs1DZEG.yxv0BW.y3vYCMvUDa.B2zMC2v0v2LKDgG.DgfICgfUzwW.zhmTDgfIBgLZDf9FDgH1Bwi.tgLZDa".split(".");
18
- return l = function() {
19
- return e;
20
- }, l();
21
- }
22
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
23
- var f = r(null), p = () => {
24
- let e = i(f);
16
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
17
+ var d = r(null), f = () => {
18
+ let e = i(d);
25
19
  if (!e) throw Error("Tab parts must be used inside <Tabs>");
26
20
  return e;
27
- }, m = (t) => t[e(229)](/[^\w-]/g, "_");
28
- function h({ value: r, defaultValue: i = "", onValueChange: o, activation: s = e(254), children: c, className: l }) {
29
- let d = e, [p, m] = t(r, i, o), h = a();
30
- return u(f[d(227)], {
21
+ }, p = (e) => e.replace(/[^\w-]/g, "_");
22
+ function m({ value: r, defaultValue: i = "", onValueChange: o, activation: s = e(215), children: c, className: u }) {
23
+ let f = e, [p, m] = t(r, i, o), h = a();
24
+ return l(d.Provider, {
31
25
  value: {
32
26
  value: p,
33
27
  select: m,
34
28
  baseId: h,
35
29
  activation: s
36
30
  },
37
- children: u(d(231), {
38
- className: n("ds-tabs", l),
31
+ children: l(f(241), {
32
+ className: n(f(242), u),
39
33
  children: c
40
34
  })
41
35
  });
42
36
  }
43
- function g({ children: t, variant: r = "underline", size: i = "md", fitted: a, "aria-label": l, className: f }) {
44
- let m = e, { value: h, select: g, activation: v } = p(), y = s(null), [b, x] = c(null);
37
+ function h({ children: t, variant: r = "underline", size: i = "md", fitted: a, "aria-label": d, className: p }) {
38
+ let m = e, { value: h, select: g, activation: _ } = f(), y = s(null), [b, x] = c(null);
45
39
  return o(() => {
46
- let e = _, t = y[e(255)];
40
+ let e = v, t = y[e(250)];
47
41
  if (!t) return;
48
- if (!t[e(228)](e(242))) {
49
- let n = t.querySelector("[role=\"tab\"]:not(:disabled)")?.[e(223)].value;
42
+ if (!t[e(235)](e(221))) {
43
+ let n = t[e(235)](e(206))?.dataset[e(234)];
50
44
  n !== void 0 && g(n);
51
45
  }
52
46
  let n = () => {
53
- let n = e, r = t[n(228)](n(242));
47
+ let n = e, r = t[n(235)](n(221));
54
48
  x(r ? {
55
- left: r[n(216)],
56
- width: r[n(256)]
49
+ left: r.offsetLeft,
50
+ width: r[n(212)]
57
51
  } : null);
58
52
  };
59
53
  n();
60
54
  let r = new ResizeObserver(n);
61
- return r[e(251)](t), () => r[e(240)]();
62
- }, [h, g]), d(m(231), {
55
+ return r[e(248)](t), () => r[e(246)]();
56
+ }, [h, g]), u(m(241), {
63
57
  ref: y,
64
- role: m(248),
65
- "aria-label": l,
66
- className: n("ds-tablist", m(234) + r, m(234) + i, a && m(245), f),
58
+ role: m(247),
59
+ "aria-label": d,
60
+ className: n(m(209), m(251) + r, "ds-tablist--" + i, a && m(229), p),
67
61
  onKeyDown: (e) => {
68
- let t = _, n = [...y[t(255)]?.[t(247)]("[role=\"tab\"]:not(:disabled)") ?? []], r = n.indexOf(document.activeElement), i;
69
- e[t(222)] === t(217) ? i = n[(r + 1) % n[t(252)]] : e.key === "ArrowLeft" ? i = n[(r - 1 + n[t(252)]) % n[t(252)]] : e[t(222)] === "Home" ? i = n[0] : e[t(222)] === t(235) && (i = n[n.length - 1]), i && (e[t(233)](), i[t(250)](), v === t(254) && i.dataset[t(232)] && g(i[t(223)][t(232)]));
62
+ let t = v, n = [...y.current?.[t(249)](t(206)) ?? []], r = n[t(219)](document[t(205)]), i;
63
+ e[t(239)] === t(213) ? i = n[(r + 1) % n[t(217)]] : e.key === t(244) ? i = n[(r - 1 + n[t(217)]) % n[t(217)]] : e.key === t(222) ? i = n[0] : e.key === "End" && (i = n[n.length - 1]), i && (e.preventDefault(), i[t(216)](), _ === t(215) && i[t(210)][t(234)] && g(i[t(210)][t(234)]));
70
64
  },
71
- children: [b && u(m(239), {
72
- className: m(214),
65
+ children: [b && l(m(232), {
66
+ className: m(240),
73
67
  "aria-hidden": !0,
74
68
  style: {
75
- left: b[m(230)],
76
- width: b[m(236)]
69
+ left: b[m(243)],
70
+ width: b.width
77
71
  }
78
72
  }), t]
79
73
  });
80
74
  }
81
- function _(e, t) {
82
- e -= 213;
83
- let n = l(), r = n[e];
84
- _.BEcidJ === void 0 && (_.UjzjSo = function(e) {
85
- let t = "", n = "";
86
- 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);
87
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
88
- return decodeURIComponent(n);
89
- }, _.PnnkZP = {}, _.BEcidJ = !0);
90
- let i = n[0];
91
- _.QNVUua !== i && (_.PnnkZP = {}, _.QNVUua = i);
92
- let a = _.PnnkZP[e];
93
- return a === void 0 ? (r = _.UjzjSo(r), _.PnnkZP[e] = r) : r = a, r;
94
- }
95
- function v({ value: t, children: n, icon: r, count: i, disabled: a }) {
96
- let o = e, { value: s, select: c, baseId: l } = p(), f = s === t;
97
- return d(o(218), {
98
- type: "button",
99
- role: o(221),
100
- id: l + "-tab-" + m(t),
101
- "aria-controls": l + "-panel-" + m(t),
102
- "aria-selected": f,
103
- tabIndex: f ? 0 : -1,
75
+ function g({ value: t, children: n, icon: r, count: i, disabled: a }) {
76
+ let o = e, { value: s, select: c, baseId: d } = f(), m = s === t;
77
+ return u(o(252), {
78
+ type: o(252),
79
+ role: o(228),
80
+ id: d + "-tab-" + p(t),
81
+ "aria-controls": d + o(208) + p(t),
82
+ "aria-selected": m,
83
+ tabIndex: m ? 0 : -1,
104
84
  disabled: a,
105
85
  "data-value": t,
106
- className: "ds-tab",
86
+ className: o(223),
107
87
  onClick: () => c(t),
108
88
  children: [
109
89
  r,
110
90
  n,
111
- i != null && u("span", {
112
- className: o(226),
91
+ i != null && l("span", {
92
+ className: o(237),
113
93
  children: i
114
94
  })
115
95
  ]
116
96
  });
117
97
  }
118
- function y({ value: t, children: r, keepMounted: i, className: a }) {
119
- let o = e, { value: s, baseId: c } = p(), l = s === t;
120
- return !l && !i ? null : u(o(231), {
121
- role: o(213),
122
- id: c + o(237) + m(t),
123
- "aria-labelledby": c + o(225) + m(t),
98
+ function _({ value: t, children: r, keepMounted: i, className: a }) {
99
+ let o = e, { value: s, baseId: c } = f(), u = s === t;
100
+ return !u && !i ? null : l(o(241), {
101
+ role: o(236),
102
+ id: c + o(208) + p(t),
103
+ "aria-labelledby": c + o(230) + p(t),
124
104
  tabIndex: 0,
125
- hidden: !l,
126
- className: n(o(241), a),
105
+ hidden: !u,
106
+ className: n(o(227), a),
127
107
  children: r
128
108
  });
129
109
  }
130
- h[e(215)] = g, h[e(246)] = v, h[e(249)] = y;
131
- export { v as Tab, g as TabList, y as TabPanel, h as Tabs };
110
+ function v(e, t) {
111
+ e -= 205;
112
+ let n = y(), r = n[e];
113
+ v.BYNygx === void 0 && (v.kQflLY = function(e) {
114
+ let t = "", n = "";
115
+ 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);
116
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
117
+ return decodeURIComponent(n);
118
+ }, v.BTAGgO = {}, v.BYNygx = !0);
119
+ let i = n[0];
120
+ v.GlomNm !== i && (v.BTAGgO = {}, v.GlomNm = i);
121
+ let a = v.BTAGgO[e];
122
+ return a === void 0 ? (r = v.kQflLY(r), v.BTAGgO[e] = r) : r = a, r;
123
+ }
124
+ m[e(231)] = h, m[e(220)] = g, m.Panel = _;
125
+ export { g as Tab, h as TabList, _ as TabPanel, m as Tabs };
126
+ function y() {
127
+ let e = /* @__PURE__ */ "DgfIBgLZDa.B2jZzxj2zq.CxvLCNLtzwXLy3rVCKfSBa.y3vYCMvUDa.zhmTDgfIBgLZDc0T.yNv0Dg9U.ywn0AxzLrwXLBwvUDa.w3jVBgu9iNrHyIjDoM5VDcG6zgLZywjSzwqP.mte2nJG4ntb6re1QDe8.lxbHBMvSlq.zhmTDgfIBgLZDa.zgf0yxnLDa.mZy2nde5n3ziAfb3ra.B2zMC2v0v2LKDgG.qxjYB3DsAwDODa.mJKZodqWqwjeCeDk.yxv0BW.zM9JDxm.BgvUz3rO.mtyXueDWt2Lk.Aw5KzxHpzG.vgfI.w3jVBgu9iNrHyIjDw2fYAweTC2vSzwn0zwq9iNrYDwuIxq.sg9Tzq.zhmTDgfI.mJuWmJiYnuvhtufYuq.mLLOChbdyG.ntC3nZy3Cgnlzhf1.zhmTDgfICgfUzwW.DgfI.zhmTDgfIBgLZDc0TzML0DgvK.lxrHyI0.tgLZDa.C3bHBG.mZe3otCYmg1sv2nrzG.DMfSDwu.CxvLCNLtzwXLy3rVCG.DgfICgfUzwW.zhmTDgfIx19JB3vUDa.ndmYmdG3mfHNvgjqtq.A2v5.zhmTDgfIBgLZDf9FDgH1Bwi.zgL2.zhmTDgfICW.BgvMDa.qxjYB3Dmzwz0.oenfCujArG.zgLZy29UBMvJDa".split(".");
128
+ return y = function() {
129
+ return e;
130
+ }, y();
131
+ }