@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,39 +1,39 @@
1
1
  "use client";
2
- const e = n;
3
- (function(e, t) {
4
- let r = n, i = e();
5
- for (;;) try {
6
- if (-parseInt(r(453)) / 1 * (-parseInt(r(437)) / 2) + -parseInt(r(426)) / 3 * (-parseInt(r(435)) / 4) + -parseInt(r(434)) / 5 * (-parseInt(r(452)) / 6) + -parseInt(r(443)) / 7 + parseInt(r(431)) / 8 * (-parseInt(r(447)) / 9) + parseInt(r(440)) / 10 + -parseInt(r(425)) / 11 * (parseInt(r(460)) / 12) == t) break;
7
- i.push(i.shift());
8
- } catch {
9
- i.push(i.shift());
10
- }
11
- })(s, 974946);
12
- import { Text as t } from "../../primitives/Typography2.js";
13
- function n(e, t) {
14
- e -= 425;
15
- let r = s(), i = r[e];
16
- n.wfkQqv === void 0 && (n.JDbRHG = function(e) {
2
+ const e = t;
3
+ function t(e, r) {
4
+ e -= 147;
5
+ let i = n(), a = i[e];
6
+ t.jqogzh === void 0 && (t.XgZzjM = function(e) {
17
7
  let t = "", n = "";
18
8
  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
9
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
10
  return decodeURIComponent(n);
21
- }, n.zRflTv = {}, n.wfkQqv = !0);
22
- let a = r[0];
23
- n.tOZvIq !== a && (n.zRflTv = {}, n.tOZvIq = a);
24
- let o = n.zRflTv[e];
25
- return o === void 0 ? (i = n.JDbRHG(i), n.zRflTv[e] = i) : i = o, i;
11
+ }, t.jtcfwv = {}, t.jqogzh = !0);
12
+ let o = i[0];
13
+ t.tGykyx !== o && (t.jtcfwv = {}, t.tGykyx = o);
14
+ let s = t.jtcfwv[e];
15
+ return s === void 0 ? (a = t.XgZzjM(a), t.jtcfwv[e] = a) : a = s, a;
26
16
  }
27
- import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
28
- import { StatusIcon as a } from "../../primitives/StatusIcon2.js";
29
- import { cx as o } from "../../primitives/index.js";
30
- /* empty css */
31
- function s() {
32
- let e = /* @__PURE__ */ "zhmTC3rLCc1SAxn0x19TyxjRzxi.mtjZsfDRwNC.mtzVtMz3BNG.yM9KEs1ZBq.zhmTC3rLCc1SAxn0x19TzxrH.C2vJB25Kyxj5.zhmTC3rLCc1SAxn0x190AxrSzq.C3bHBG.zhmTC3rLCc1SAxn0.odrKqxzYrKe.C3rHDhvZ.zhmTC3rLCc1SAxn0x19PDgvT.mtG3ody3ouv2s1HevG.mJeZB2vLB1LT.zMLSDgvY.zhmTC3rLCc1SAxn0x19IB2r5.zgvMyxvSDa.zhmTC3rLCc1SAxn0x19JB250zw50.mtuYD3bQCwvy.yMfZzwXPBMu.Dg9bCNjHEq.mZCYnde0mfjPq0zLuW.mta2otjxyMPTDwy.zhmTC3rLCc1SAxn0ls1JB25Uzwn0B3iT.otmXmtrRyuTrEuu.C3rLCa.yM9KEs1SzW.mty1odK2mtbSq2jbA2i.uhjVDMLKzxi.zgL2.otuXody3mfrKC0LzAq.BwfW.ywn0AxzL.yM9KEs1Tza.mJyXotyZtK5SBfz6.yMv0D2vLBG.DgvYDgLHCNK.C2L6zq".split(".");
33
- return s = function() {
17
+ (function(e, n) {
18
+ let r = t, i = e();
19
+ for (;;) try {
20
+ if (-parseInt(r(149)) / 1 * (-parseInt(r(168)) / 2) + -parseInt(r(178)) / 3 + -parseInt(r(179)) / 4 + -parseInt(r(150)) / 5 + parseInt(r(176)) / 6 + parseInt(r(147)) / 7 * (parseInt(r(170)) / 8) + -parseInt(r(171)) / 9 * (-parseInt(r(158)) / 10) == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(n, 185455);
26
+ function n() {
27
+ let e = /* @__PURE__ */ "yM9KEs14CW.yM9KEs1Tza.zhmTC3rLCc1SAxn0x19PDgvT.yM9KEs1ZBq.C3bHBG.mtK5nZbHqLnez2K.zhmTC3rLCc1SAxn0x19JB250zw50.Dg9bCNjHEq.C3rLCa.zhmTC3rLCc1SAxn0x19TyxjRzxi.yMfZzwXPBMu.zhmTC3rLCc1SAxn0ls1JB25Uzwn0B3iT.zgL2.yM9KEs1SzW.zhmTC3rLCc1SAxn0x19IB2r5.nZK2swX0wgLH.BwfYA2vY.ogLlDgr2ra.mta4ounPqLrqDq.ywn0AxzL.C2L6zq.zhmTC3rLCc1SAxn0x190AxrSzq.BwfW.nZuYoteWuuzwqMLn.C2vJB25Kyxj5.mtaZmJy3mMD2EfbvyG.mJe0ote2ExrAqwTs.zgvMyxvSDa.uhjVDMLKzxi.BNvTyMvY.C3rHDhvZ.mtCYntC4n3zlugLtAW.zhmTC3rLCc1SAxn0x19TzxrH.ntGZzuXQCMH3.mtmXmtq0nuvMvxzqsG.yMv0D2vLBG.zhmTC3rLCc1SAxn0ls0".split(".");
28
+ return n = function() {
34
29
  return e;
35
- }, s();
30
+ }, n();
36
31
  }
32
+ import { Text as r } from "../../primitives/Typography2.js";
33
+ import { Inline as i, Stack as a } from "../../primitives/Layout2.js";
34
+ import { StatusIcon as o } from "../../primitives/StatusIcon2.js";
35
+ import { cx as s } from "../../primitives/index.js";
36
+ /* empty css */
37
37
  import { Children as c, createContext as l, isValidElement as u, useContext as d } from "react";
38
38
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
39
39
  var m = {
@@ -41,87 +41,87 @@ var m = {
41
41
  md: 18,
42
42
  lg: 22
43
43
  }, h = {
44
- sm: e(454),
45
- md: e(446),
46
- lg: e(439)
44
+ sm: e(156),
45
+ md: e(154),
46
+ lg: e(166)
47
47
  }, g = {
48
- sm: "body-xs",
49
- md: e(454),
50
- lg: e(446)
48
+ sm: e(153),
49
+ md: "body-sm",
50
+ lg: "body-md"
51
51
  }, _ = l({
52
- marker: e(461),
52
+ marker: "status",
53
53
  size: "md"
54
54
  }), v = l(void 0);
55
- function y({ steps: t, children: n, marker: r = e(461), connector: i = e(429), size: a = "md", density: s = "default", start: l = 1, "aria-label": d, className: p, style: h }) {
56
- let g = e, y = t ? t[g(444)](({ id: e, ...t }) => f(b, { ...t }, e)) : c[g(433)](n)[g(427)]((e) => u(e));
57
- return f(_[g(441)], {
55
+ function y({ steps: t, children: n, marker: r = e(183), connector: i = e(180), size: a = "md", density: o = e(180), start: l = 1, "aria-label": d, className: p, style: h }) {
56
+ let g = e, y = t ? t[g(175)](({ id: e, ...t }) => f(b, { ...t }, e)) : c[g(160)](n).filter((e) => u(e));
57
+ return f(_[g(181)], {
58
58
  value: {
59
59
  marker: r,
60
60
  size: a
61
61
  },
62
62
  children: f("ol", {
63
- className: o(g(459), "ds-step-list--" + a, "ds-step-list--" + s, g(436) + i, p),
63
+ className: s("ds-step-list", g(152) + a, g(152) + o, g(164) + i, p),
64
64
  style: {
65
65
  "--_m": m[a] + "px",
66
66
  ...h
67
67
  },
68
68
  "aria-label": d,
69
- children: y.map((e, t) => f(v[g(441)], {
69
+ children: y[g(175)]((e, t) => f(v[g(181)], {
70
70
  value: l + t,
71
71
  children: e
72
72
  }, e.key ?? t))
73
73
  })
74
74
  });
75
75
  }
76
- function b({ status: n, title: s, description: c, meta: l, children: u, marker: y, number: b, progress: x, className: S, style: C }) {
77
- let w = e, T = d(_), E = d(v), D = y ?? T.marker, O = b ?? E, k = m[T[w(450)]], A;
78
- return A = D === w(461) || D === "number" || D === "status-number" ? f(a, {
79
- status: n,
76
+ function b({ status: t, title: n, description: c, meta: l, children: u, marker: y, number: b, progress: x, className: S, style: C }) {
77
+ let w = e, T = d(_), E = d(v), D = y ?? T[w(169)], O = b ?? E, k = m[T[w(173)]], A;
78
+ return A = D === w(183) || D === "number" || D === "status-number" ? f(o, {
79
+ status: t,
80
80
  size: k,
81
81
  progress: x,
82
- number: D === w(461) ? void 0 : O,
83
- persistNumber: D === "number"
82
+ number: D === w(183) ? void 0 : O,
83
+ persistNumber: D === w(182)
84
84
  }) : D, p("li", {
85
- className: o(w(462), S),
85
+ className: s(w(155), S),
86
86
  style: C,
87
- "data-status": n,
88
- "aria-current": n === w(445) ? w(438) : void 0,
89
- children: [f(w(458), {
90
- className: w(451),
87
+ "data-status": t,
88
+ "aria-current": t === w(172) ? w(161) : void 0,
89
+ children: [f("span", {
90
+ className: w(162),
91
91
  children: A
92
- }), p(i, {
92
+ }), p(a, {
93
93
  gap: 1,
94
- className: w(428),
94
+ className: w(167),
95
95
  children: [
96
- p(r, {
96
+ p(i, {
97
97
  gap: 3,
98
- justify: w(448),
99
- align: w(432),
98
+ justify: w(151),
99
+ align: w(163),
100
100
  wrap: !1,
101
- children: [f(t, {
102
- as: w(458),
103
- variant: h[T[w(450)]],
101
+ children: [f(r, {
102
+ as: w(157),
103
+ variant: h[T[w(173)]],
104
104
  weight: "medium",
105
- className: w(457),
106
- children: s
107
- }), l != null && f(t, {
105
+ className: w(174),
106
+ children: n
107
+ }), l != null && f(r, {
108
108
  as: "span",
109
109
  variant: "caption",
110
- tone: w(449),
110
+ tone: "tertiary",
111
111
  numeric: !0,
112
- className: w(455),
112
+ className: w(148),
113
113
  children: l
114
114
  })]
115
115
  }),
116
- c != null && f(t, {
117
- as: w(442),
118
- variant: g[T[w(450)]],
119
- tone: w(456),
116
+ c != null && f(r, {
117
+ as: w(165),
118
+ variant: g[T[w(173)]],
119
+ tone: w(177),
120
120
  children: c
121
121
  }),
122
- u != null && f(i, {
122
+ u != null && f(a, {
123
123
  gap: 1,
124
- className: w(430),
124
+ className: w(159),
125
125
  children: u
126
126
  })
127
127
  ]
@@ -1,104 +1,104 @@
1
1
  "use client";
2
- const e = r;
2
+ const e = a;
3
3
  (function(e, t) {
4
- let n = r, i = e();
4
+ let n = a, r = e();
5
5
  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;
7
- i.push(i.shift());
6
+ if (parseInt(n(510)) / 1 + parseInt(n(508)) / 2 + -parseInt(n(485)) / 3 * (-parseInt(n(479)) / 4) + -parseInt(n(490)) / 5 * (-parseInt(n(506)) / 6) + parseInt(n(493)) / 7 + parseInt(n(498)) / 8 + -parseInt(n(511)) / 9 == t) break;
7
+ r.push(r.shift());
8
8
  } catch {
9
- i.push(i.shift());
9
+ r.push(r.shift());
10
10
  }
11
- })(l, 985532);
11
+ })(o, 914261);
12
12
  import { Inline as t } from "../../primitives/Layout2.js";
13
13
  import { cx as n } from "../../primitives/index.js";
14
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) {
15
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
16
+ function a(e, t) {
17
+ e -= 476;
18
+ let n = o(), r = n[e];
19
+ a.bLswmi === void 0 && (a.neCFOM = function(e) {
19
20
  let t = "", n = "";
20
21
  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
22
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
22
23
  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;
24
+ }, a.XcGICC = {}, a.bLswmi = !0);
25
+ let i = n[0];
26
+ a.EMlJbS !== i && (a.XcGICC = {}, a.EMlJbS = i);
27
+ let s = a.XcGICC[e];
28
+ return s === void 0 ? (r = a.neCFOM(r), a.XcGICC[e] = r) : r = s, r;
28
29
  }
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 = {
30
+ function o() {
31
+ let e = /* @__PURE__ */ "DgjVzhK.otqZnZu5mKfYqLLTAq.zhmTDgfIBguTlw92zxjSAw5L.A2v5.rw50zxi.BgvUz3rO.zhmTDgfIBguTD3jHCa.ChjLDMvUDerLzMf1Bhq.zhmTDgfIBgvFx251Bq.otyXnta1nhHpD0j4wq.BgfIzwW.mty1ndm0nerQwfjOua.C3rHCNq.nZm5mde2DMDoC2rZ.ndyYote2mJz5C0zZEKS.zgL2.AgvHzgvY.y29S.ne9kvwnYwG.zgvMyxvSDa.y2vUDgvY.CMLNAhq.C3bHBG.ywXPz24.mJe0nZK5n3DAzgTIzW.D2LKDgG.zw5K.AgvHzgvYtgvHzgLUzW.zhmTC2nYB2XS.nurHDxHAuq.B3zLCMXPBMu.BwfW.nJK1mZy2mgDHEw5IsG.DgHLywq.CMvUzgvY.BNvTzxjPyW".split(".");
32
+ return o = function() {
33
+ return e;
34
+ }, o();
35
+ }
36
+ var s = {
37
+ start: e(509),
38
+ center: e(481),
39
+ end: e(487)
40
+ }, c = {
35
41
  start: void 0,
36
- center: e(426),
37
- end: e(431)
42
+ center: e(481),
43
+ end: e(482)
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) => {
41
- let r = y;
42
- e[r(428)] !== e[r(449)] || e.key !== r(460) && e[r(438)] !== " " || (e[r(448)](), m?.(t, n));
45
+ function l({ columns: o, rows: l, rowKey: u, density: d = e(480), striped: f = !0, headerVariant: p = e(507), selectedKey: m, onRowClick: h, empty: g, caption: _, className: v, style: y }) {
46
+ let b = e, x = (e) => e[b(484)] ?? (e[b(496)] ? b(487) : b(509)), S = !!h, C = (e, t, n) => {
47
+ let r = b;
48
+ e.target !== e.currentTarget || e[r(500)] !== r(501) && e[r(500)] !== " " || (e[r(504)](), h?.(t, n));
43
49
  };
44
- return i(y(439), {
45
- className: n(y(436), y(461), _),
46
- 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)),
50
+ return r(b(476), {
51
+ className: n(b(503), b(489), v),
52
+ style: y,
53
+ children: i("table", {
54
+ className: n("ds-table", "ds-table--" + d, f && "ds-table--striped", p === b(491) && b(499), S && "ds-table--interactive"),
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
+ _ && r("caption", { children: _ }),
57
+ r(b(494), { children: r("tr", { children: o[b(492)]((e) => {
58
+ let n = b, a = x(e);
59
+ return r("th", {
60
+ scope: n(478),
55
61
  style: {
56
- width: e[n(458)],
57
- textAlign: s[r]
62
+ width: e[n(486)],
63
+ textAlign: c[a]
58
64
  },
59
- children: e[n(423)] == null ? e[n(419)] : a(t, {
65
+ children: e[n(488)] == null ? e[n(477)] : i(t, {
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[a],
69
+ children: [e[n(488)], r("span", { children: e.header })]
64
70
  })
65
- }, e[n(438)]);
71
+ }, e[n(500)]);
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
+ i(b(497), { children: [l.map((e, n) => {
74
+ let l = u ? u(e, n) : n, d = m != null && m === l;
75
+ return r("tr", {
70
76
  "data-selected": d || void 0,
71
77
  "aria-current": d || void 0,
72
- 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, {
78
+ tabIndex: S ? 0 : void 0,
79
+ onClick: h ? () => h(e, n) : void 0,
80
+ onKeyDown: S ? (t) => C(t, e, n) : void 0,
81
+ children: o.map((o) => {
82
+ let l = a, u = x(o), d = o[l(495)] ? o[l(495)](e, n) : e[o[l(500)]] ?? null, f = o.leading?.(e, n);
83
+ return r("td", {
84
+ className: o[l(496)] ? l(505) : void 0,
85
+ style: { textAlign: c[u] },
86
+ children: f == null ? d : i(t, {
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, r(l(483), { children: d })]
85
91
  })
86
- }, r.key);
92
+ }, o[l(500)]);
87
93
  })
88
- }, u);
89
- }), !c[y(430)] && h && i("tr", { children: i("td", {
90
- colSpan: r[y(430)],
91
- className: y(437),
92
- children: h
94
+ }, l);
95
+ }), !l[b(502)] && g && r("tr", { children: r("td", {
96
+ colSpan: o[b(502)],
97
+ className: "ds-table__empty",
98
+ children: g
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,106 +1,106 @@
1
1
  "use client";
2
- const e = _;
2
+ const e = i;
3
3
  (function(e, t) {
4
- let n = _, r = e();
4
+ let n = i, 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(235)) / 1 * (parseInt(n(251)) / 2) + parseInt(n(242)) / 3 + -parseInt(n(218)) / 4 + parseInt(n(249)) / 5 * (parseInt(n(215)) / 6) + -parseInt(n(214)) / 7 * (-parseInt(n(250)) / 8) + -parseInt(n(229)) / 9 * (-parseInt(n(247)) / 10) + -parseInt(n(236)) / 11 == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(l, 789753);
11
+ })(n, 485115);
12
12
  import { useControllableState as t } from "../../hooks/useControllableState.js";
13
- import { cx as n } from "../../primitives/index.js";
14
- /* empty css */
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() {
13
+ function n() {
14
+ let e = /* @__PURE__ */ "A2v5.odKXnwLRAvH4AW.otq5odmYzvDZA0zL.ndaYseHTru16.yxv0BW.ywn0AxzLrwXLBwvUDa.DgfICgfUzwW.CMvWBgfJzq.DMfSDwu.ChjLDMvUDerLzMf1Bhq.DgfIBgLZDa.CxvLCNLtzwXLy3rVCG.zgf0yxnLDa.y3vYCMvUDa.mJfsDwHmtuC.nMXWvu9esa.sg9Tzq.zgLZy29UBMvJDa.mJiYntu3mM9UvNfvuG.ugfUzwW.rw5K.zhmTDgfIBgLZDf9FDgH1Bwi.zhmTDgfIBgLZDa.qxjYB3Dmzwz0.CxvLCNLtzwXLy3rVCKfSBa.lxbHBMvSlq.zgL2.C3bHBG.B2jZzxj2zq.ndC2mtK5DLriEujb.BgvMDa.lxrHyI0.DgfI.qxjYB3DsAwDODa.w3jVBgu9iNrHyIjDw2fYAweTC2vSzwn0zwq9iNrYDwuIxq.mZG1nKT2AwLqAa.mtuXndaZodLyrMfJwM4.w3jVBgu9iNrHyIjDoM5VDcG6zgLZywjSzwqP.zM9JDxm.tgLZDa.D2LKDgG.BgvUz3rO.mte1nJe4mNfwsKv2uW.zhmTDgfIBgLZDc0T.B2zMC2v0v2LKDgG.vgfIihbHCNrZig11C3qGyMuGDxnLzcbPBNnPzguGpfrHyNm+.zhmTDgfIx19JB3vUDa.mtCWrMfVs3Dq".split(".");
15
+ return n = function() {
19
16
  return e;
20
- }, l();
17
+ }, n();
18
+ }
19
+ import { cx as r } from "../../primitives/index.js";
20
+ function i(e, t) {
21
+ e -= 214;
22
+ let r = n(), a = r[e];
23
+ i.mMkfPh === void 0 && (i.VWnmRg = function(e) {
24
+ let t = "", n = "";
25
+ 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);
26
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
27
+ return decodeURIComponent(n);
28
+ }, i.nuAucc = {}, i.mMkfPh = !0);
29
+ let o = r[0];
30
+ i.CqbWBB !== o && (i.nuAucc = {}, i.CqbWBB = o);
31
+ let s = i.nuAucc[e];
32
+ return s === void 0 ? (a = i.VWnmRg(a), i.nuAucc[e] = a) : a = s, a;
21
33
  }
22
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
23
- var f = r(null), p = () => {
24
- let e = i(f);
25
- if (!e) throw Error("Tab parts must be used inside <Tabs>");
26
- 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)], {
34
+ /* empty css */
35
+ import { createContext as a, useContext as o, useId as s, useLayoutEffect as c, useRef as l, useState as u } from "react";
36
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
37
+ var p = a(null), m = () => {
38
+ let e = i, t = o(p);
39
+ if (!t) throw Error(e(245));
40
+ return t;
41
+ }, h = (t) => t[e(255)](/[^\w-]/g, "_");
42
+ function g({ value: e, defaultValue: n = "", onValueChange: i, activation: a = "auto", children: o, className: c }) {
43
+ let [l, u] = t(e, n, i), f = s();
44
+ return d(p.Provider, {
31
45
  value: {
32
- value: p,
33
- select: m,
34
- baseId: h,
35
- activation: s
46
+ value: l,
47
+ select: u,
48
+ baseId: f,
49
+ activation: a
36
50
  },
37
- children: u(d(231), {
38
- className: n("ds-tabs", l),
39
- children: c
51
+ children: d("div", {
52
+ className: r("ds-tabs", c),
53
+ children: o
40
54
  })
41
55
  });
42
56
  }
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);
45
- return o(() => {
46
- let e = _, t = y[e(255)];
57
+ function _({ children: t, variant: n = "underline", size: a = "md", fitted: o, "aria-label": s, className: p }) {
58
+ let h = e, { value: g, select: _, activation: v } = m(), y = l(null), [b, x] = u(null);
59
+ return c(() => {
60
+ let e = i, t = y[e(261)];
47
61
  if (!t) return;
48
- if (!t[e(228)](e(242))) {
49
- let n = t.querySelector("[role=\"tab\"]:not(:disabled)")?.[e(223)].value;
50
- n !== void 0 && g(n);
62
+ if (!t.querySelector(e(234))) {
63
+ let n = t[e(259)]("[role=\"tab\"]:not(:disabled)")?.[e(260)].value;
64
+ n !== void 0 && _(n);
51
65
  }
52
66
  let n = () => {
53
- let n = e, r = t[n(228)](n(242));
67
+ let n = e, r = t[n(259)](n(234));
54
68
  x(r ? {
55
- left: r[n(216)],
56
- width: r[n(256)]
69
+ left: r.offsetLeft,
70
+ width: r[n(244)]
57
71
  } : null);
58
72
  };
59
73
  n();
60
74
  let r = new ResizeObserver(n);
61
- return r[e(251)](t), () => r[e(240)]();
62
- }, [h, g]), d(m(231), {
75
+ return r[e(228)](t), () => r[e(217)]();
76
+ }, [g, _]), f(h(226), {
63
77
  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),
78
+ role: h(258),
79
+ "aria-label": s,
80
+ className: r(h(222), h(243) + n, h(243) + a, o && "ds-tablist--fitted", p),
67
81
  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)]));
82
+ let t = i, n = [...y.current?.[t(224)](t(237)) ?? []], r = n.indexOf(document[t(253)]), a;
83
+ e[t(248)] === t(233) ? a = n[(r + 1) % n[t(241)]] : e.key === t(223) ? a = n[(r - 1 + n[t(241)]) % n[t(241)]] : e[t(248)] === t(216) ? a = n[0] : e.key === t(220) && (a = n[n[t(241)] - 1]), a && (e[t(257)](), a[t(238)](), v === t(252) && a[t(260)].value && _(a[t(260)][t(256)]));
70
84
  },
71
- children: [b && u(m(239), {
72
- className: m(214),
85
+ children: [b && d(h(227), {
86
+ className: h(221),
73
87
  "aria-hidden": !0,
74
88
  style: {
75
- left: b[m(230)],
76
- width: b[m(236)]
89
+ left: b[h(230)],
90
+ width: b[h(240)]
77
91
  }
78
92
  }), t]
79
93
  });
80
94
  }
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
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), {
96
+ let o = e, { value: s, select: c, baseId: l } = m(), u = s === t;
97
+ return f("button", {
98
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,
99
+ role: o(232),
100
+ id: l + o(231) + h(t),
101
+ "aria-controls": l + o(225) + h(t),
102
+ "aria-selected": u,
103
+ tabIndex: u ? 0 : -1,
104
104
  disabled: a,
105
105
  "data-value": t,
106
106
  className: "ds-tab",
@@ -108,24 +108,24 @@ function v({ value: t, children: n, icon: r, count: i, disabled: a }) {
108
108
  children: [
109
109
  r,
110
110
  n,
111
- i != null && u("span", {
112
- className: o(226),
111
+ i != null && d(o(227), {
112
+ className: o(246),
113
113
  children: i
114
114
  })
115
115
  ]
116
116
  });
117
117
  }
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),
118
+ function y({ value: t, children: n, keepMounted: i, className: a }) {
119
+ let o = e, { value: s, baseId: c } = m(), l = s === t;
120
+ return !l && !i ? null : d("div", {
121
+ role: o(254),
122
+ id: c + o(225) + h(t),
123
+ "aria-labelledby": c + o(231) + h(t),
124
124
  tabIndex: 0,
125
125
  hidden: !l,
126
- className: n(o(241), a),
127
- children: r
126
+ className: r("ds-tabpanel", a),
127
+ children: n
128
128
  });
129
129
  }
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 };
130
+ g[e(239)] = _, g.Tab = v, g[e(219)] = y;
131
+ export { v as Tab, _ as TabList, y as TabPanel, g as Tabs };