@iamfiro/design 0.3.1 → 0.3.2

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 (156) hide show
  1. package/agents/avatar/AGENTS.md +29 -1
  2. package/agents/tooltip/AGENTS.md +1 -1
  3. package/lib/components/Accordion/Accordion2.js +81 -81
  4. package/lib/components/ActionBar/ActionBar2.js +38 -39
  5. package/lib/components/Alert/Alert2.js +79 -79
  6. package/lib/components/AppShell/AppShell2.js +45 -45
  7. package/lib/components/AreaChart/AreaChart.js +45 -46
  8. package/lib/components/BarChart/BarChart2.js +166 -166
  9. package/lib/components/BarList/BarList2.js +83 -83
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -72
  11. package/lib/components/Calendar/Calendar2.js +166 -165
  12. package/lib/components/Calendar/DatePicker2.js +139 -139
  13. package/lib/components/Calendar/date.js +61 -58
  14. package/lib/components/Card/Card2.js +47 -47
  15. package/lib/components/CardFrame/CardFrame2.js +50 -45
  16. package/lib/components/Chart/ChartParts.js +78 -78
  17. package/lib/components/Chart/chart2.js +62 -62
  18. package/lib/components/Chart/useChartInteraction.js +56 -56
  19. package/lib/components/ChatBubble/ChatBubble2.js +116 -116
  20. package/lib/components/ChatBubble/formatChatTime.js +46 -39
  21. package/lib/components/ChatComposer/ChatComposer2.js +43 -43
  22. package/lib/components/CodeBlock/CodeBlock2.js +57 -57
  23. package/lib/components/CodeBlock/highlight.js +74 -74
  24. package/lib/components/ColorPicker/ColorPicker2.js +357 -357
  25. package/lib/components/ColorPicker/color.js +83 -83
  26. package/lib/components/ColorPicker/presets.js +47 -41
  27. package/lib/components/Combobox/Combobox2.js +143 -142
  28. package/lib/components/CommandMenu/CommandMenu.js +100 -100
  29. package/lib/components/Comment/Comment2.js +59 -60
  30. package/lib/components/ContextMenu/ContextMenu2.js +95 -96
  31. package/lib/components/DataGrid/DataGrid2.js +1202 -1203
  32. package/lib/components/DataGrid/GridPopover.js +87 -87
  33. package/lib/components/DataGrid/anchor.js +17 -19
  34. package/lib/components/DataGrid/model.js +261 -261
  35. package/lib/components/DataGrid/panels.js +397 -395
  36. package/lib/components/DataGrid/typeMeta.js +51 -51
  37. package/lib/components/DataGrid/types.js +38 -36
  38. package/lib/components/DescriptionList/DescriptionList2.js +74 -74
  39. package/lib/components/Dialog/AlertDialog.js +81 -82
  40. package/lib/components/Dialog/Dialog2.js +63 -63
  41. package/lib/components/Dialog/modal.js +70 -69
  42. package/lib/components/Drawer/Drawer2.js +122 -123
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +257 -258
  44. package/lib/components/DropdownMenu/menuCore.js +43 -44
  45. package/lib/components/Dropzone/Dropzone2.js +76 -77
  46. package/lib/components/EmptyState/EmptyState2.js +59 -56
  47. package/lib/components/FileChip/FileChip2.js +73 -49
  48. package/lib/components/FileUpload/FileUpload.js +149 -150
  49. package/lib/components/FilterChips/FilterChips2.js +59 -59
  50. package/lib/components/FunnelChart/FunnelChart2.js +123 -123
  51. package/lib/components/FunnelChart/funnel.js +44 -47
  52. package/lib/components/Highlight/Highlight2.js +48 -48
  53. package/lib/components/HoverCard/HoverCard.js +89 -64
  54. package/lib/components/InlineDiff/InlineDiff2.js +123 -123
  55. package/lib/components/InlineDiff/diff.js +76 -76
  56. package/lib/components/InlineDiff/useDiffReview.js +69 -68
  57. package/lib/components/Kanban/Kanban2.js +366 -366
  58. package/lib/components/Kanban/KanbanCard.js +67 -67
  59. package/lib/components/Kanban/move.js +41 -45
  60. package/lib/components/LineChart/LineChart2.js +196 -196
  61. package/lib/components/List/List2.js +60 -59
  62. package/lib/components/Listbox/Listbox2.js +94 -94
  63. package/lib/components/Marker/Marker2.js +59 -52
  64. package/lib/components/Menubar/Menubar2.js +110 -112
  65. package/lib/components/MultiSelect/MultiSelect2.js +112 -112
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +239 -240
  67. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  68. package/lib/components/NumberStepper/NumberStepper2.js +66 -65
  69. package/lib/components/OtpInput/OtpInput2.js +87 -88
  70. package/lib/components/Pagination/Pagination2.js +81 -81
  71. package/lib/components/Pagination/paginationRange.js +25 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +77 -77
  73. package/lib/components/PieChart/PieChart2.js +101 -101
  74. package/lib/components/PieChart/arc.js +73 -76
  75. package/lib/components/PieChart/useArcTween.js +61 -57
  76. package/lib/components/Popover/Popover2.js +65 -64
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +119 -119
  78. package/lib/components/Rating/Rating2.js +85 -85
  79. package/lib/components/Resizable/Resizable2.js +139 -139
  80. package/lib/components/Resizable/layout.js +68 -68
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +55 -55
  82. package/lib/components/ScatterChart/ScatterChart2.js +249 -249
  83. package/lib/components/ScatterChart/scatter.js +55 -55
  84. package/lib/components/ScrollArea/ScrollArea2.js +132 -131
  85. package/lib/components/Select/Select2.js +81 -81
  86. package/lib/components/Sidebar/Sidebar2.js +61 -61
  87. package/lib/components/Skeleton/Skeleton2.js +46 -46
  88. package/lib/components/Slider/Slider2.js +74 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +70 -70
  90. package/lib/components/SparkChart/SparkChart2.js +138 -137
  91. package/lib/components/SparkChart/spark.js +40 -61
  92. package/lib/components/Sparkbar/Sparkbar2.js +60 -59
  93. package/lib/components/SplitView/SplitView2.js +42 -42
  94. package/lib/components/Stat/Stat2.js +88 -88
  95. package/lib/components/StepList/StepList2.js +71 -71
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +89 -89
  98. package/lib/components/TagInput/TagInput2.js +154 -154
  99. package/lib/components/TimePicker/TimePicker2.js +225 -226
  100. package/lib/components/TimePicker/time.js +50 -50
  101. package/lib/components/Timeline/Timeline2.js +201 -201
  102. package/lib/components/Timeline/scale.js +55 -53
  103. package/lib/components/Toast/Toaster.js +90 -92
  104. package/lib/components/Toast/store.js +91 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +84 -84
  106. package/lib/components/Toolbar/Toolbar2.js +166 -168
  107. package/lib/components/Tracker/Tracker2.js +89 -89
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +126 -125
  109. package/lib/components/TreeView/TreeView2.js +154 -156
  110. package/lib/hooks/timing.js +35 -36
  111. package/lib/hooks/useControllableState.js +40 -39
  112. package/lib/hooks/useCountdown.js +57 -55
  113. package/lib/hooks/useDigitInput.js +59 -83
  114. package/lib/hooks/useDismiss.js +49 -46
  115. package/lib/hooks/useElapsed.js +53 -55
  116. package/lib/hooks/useFloating.js +44 -44
  117. package/lib/hooks/useFocusTrap.js +46 -70
  118. package/lib/hooks/usePresence.js +32 -29
  119. package/lib/hooks/usePressToOpen.js +50 -50
  120. package/lib/hooks/useScrollLock.js +51 -51
  121. package/lib/hooks/useSelection.js +55 -46
  122. package/lib/index.js +34 -35
  123. package/lib/primitives/AspectRatio2.js +59 -55
  124. package/lib/primitives/BrandIcon.js +160 -160
  125. package/lib/primitives/ColorDot2.js +38 -42
  126. package/lib/primitives/CopyButton2.js +56 -56
  127. package/lib/primitives/CountBadge2.js +66 -64
  128. package/lib/primitives/Countdown2.js +31 -32
  129. package/lib/primitives/Delta2.js +46 -71
  130. package/lib/primitives/Elapsed.js +44 -44
  131. package/lib/primitives/FileIcon2.js +82 -82
  132. package/lib/primitives/Flag2.js +134 -134
  133. package/lib/primitives/IconStack2.js +31 -53
  134. package/lib/primitives/IconTile2.js +46 -48
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +78 -78
  137. package/lib/primitives/Link2.js +29 -30
  138. package/lib/primitives/MaskedText2.js +47 -73
  139. package/lib/primitives/Progress2.js +77 -78
  140. package/lib/primitives/RelativeTime.js +49 -46
  141. package/lib/primitives/SearchInput2.js +58 -59
  142. package/lib/primitives/SelectorButton2.js +76 -74
  143. package/lib/primitives/Spinner2.js +62 -58
  144. package/lib/primitives/StatusIcon2.js +56 -56
  145. package/lib/primitives/Swatch2.js +69 -65
  146. package/lib/primitives/Tooltip2.js +92 -92
  147. package/lib/primitives/Typography2.js +68 -68
  148. package/lib/primitives/formatCountdown.js +39 -43
  149. package/lib/primitives/formatElapsed.js +43 -39
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +76 -76
  152. package/lib/primitives/index.js +201 -181
  153. package/lib/primitives/maskValue.js +35 -39
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,128 +1,128 @@
1
1
  "use client";
2
- const e = d;
2
+ const e = n;
3
3
  (function(e, t) {
4
- let n = d, r = e();
4
+ let r = n, i = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(293)) / 1 + parseInt(n(287)) / 2 + -parseInt(n(271)) / 3 * (-parseInt(n(288)) / 4) + -parseInt(n(276)) / 5 + parseInt(n(275)) / 6 * (-parseInt(n(267)) / 7) + -parseInt(n(290)) / 8 + parseInt(n(277)) / 9 == t) break;
7
- r.push(r.shift());
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
8
  } catch {
9
- r.push(r.shift());
9
+ i.push(i.shift());
10
10
  }
11
- })(i, 156791);
11
+ })(s, 974946);
12
12
  import { Text as t } from "../../primitives/Typography2.js";
13
- import { Inline as n, Stack as r } from "../../primitives/Layout2.js";
14
- function i() {
15
- let e = /* @__PURE__ */ "C3rLCa.BNvTyMvY.yM9KEs1SzW.zgL2.zhmTC3rLCc1SAxn0.yM9KEs1Tza.mZaXC0DyveXk.zhmTC3rLCc1SAxn0ls0.BwvKAxvT.yM9KEs14CW.mJaWnte3vfzYy2vm.zMLSDgvY.y2fWDgLVBG.Dg9bCNjHEq.mJuYmJrQqMnRCKm.nZq1nJa1DNvNEhzg.nti3nZeWnuPSvvvrAG.C3rHDhvZ.zhmTC3rLCc1SAxn0x19JB250zw50.yMv0D2vLBG.zhmTC3rLCc1SAxn0x190AxrSzq.BwfW.zhmTC3rLCc1SAxn0x19IB2r5.C3bHBG.DgvYDgLHCNK.yM9KEs1ZBq.ntm5ndm4zLD5B25e.ohzWuwnzqG.uhjVDMLKzxi.mJaXnZe2ogTdzundAq.C2L6zq.zgvMyxvSDa.mJuWoteYBgfprMr0".split(".");
16
- return i = function() {
17
- return e;
18
- }, i();
19
- }
20
- import { StatusIcon as a } from "../../primitives/StatusIcon2.js";
21
- import { cx as o } from "../../primitives/index.js";
22
- /* empty css */
23
- import { Children as s, createContext as c, isValidElement as l, useContext as u } from "react";
24
- function d(e, t) {
25
- e -= 267;
26
- let n = i(), r = n[e];
27
- d.TctDWK === void 0 && (d.GFsSwj = function(e) {
13
+ function n(e, t) {
14
+ e -= 425;
15
+ let r = s(), i = r[e];
16
+ n.wfkQqv === void 0 && (n.JDbRHG = function(e) {
28
17
  let t = "", n = "";
29
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);
30
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
31
20
  return decodeURIComponent(n);
32
- }, d.vZZEMO = {}, d.TctDWK = !0);
33
- let a = n[0];
34
- d.HFgVcx !== a && (d.vZZEMO = {}, d.HFgVcx = a);
35
- let o = d.vZZEMO[e];
36
- return o === void 0 ? (r = d.GFsSwj(r), d.vZZEMO[e] = r) : r = o, r;
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;
26
+ }
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() {
34
+ return e;
35
+ }, s();
37
36
  }
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 = {
40
40
  sm: 16,
41
41
  md: 18,
42
42
  lg: 22
43
43
  }, h = {
44
- sm: e(286),
45
- md: "body-md",
46
- lg: e(296)
44
+ sm: e(454),
45
+ md: e(446),
46
+ lg: e(439)
47
47
  }, g = {
48
- sm: e(270),
49
- md: e(286),
50
- lg: e(299)
51
- }, _ = c({
52
- marker: e(278),
48
+ sm: "body-xs",
49
+ md: e(454),
50
+ lg: e(446)
51
+ }, _ = l({
52
+ marker: e(461),
53
53
  size: "md"
54
- }), v = c(void 0);
55
- function y({ steps: t, children: n, marker: r = "status", connector: i = "default", size: a = "md", density: c = e(292), start: u = 1, "aria-label": d, className: p, style: h }) {
56
- let g = e, y = t ? t[g(282)](({ id: e, ...t }) => f(b, { ...t }, e)) : s[g(274)](n)[g(272)]((e) => l(e));
57
- return f(_[g(289)], {
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)], {
58
58
  value: {
59
59
  marker: r,
60
60
  size: a
61
61
  },
62
62
  children: f("ol", {
63
- className: o(g(298), "ds-step-list--" + a, g(268) + c, "ds-step-list--connector-" + i, p),
63
+ className: o(g(459), "ds-step-list--" + a, "ds-step-list--" + s, g(436) + i, p),
64
64
  style: {
65
65
  "--_m": m[a] + "px",
66
66
  ...h
67
67
  },
68
68
  "aria-label": d,
69
- children: y[g(282)]((e, t) => f(v[g(289)], {
70
- value: u + t,
69
+ children: y.map((e, t) => f(v[g(441)], {
70
+ value: l + t,
71
71
  children: e
72
72
  }, e.key ?? t))
73
73
  })
74
74
  });
75
75
  }
76
- function b({ status: i, title: s, description: c, meta: l, children: d, marker: y, number: b, progress: x, className: S, style: C }) {
77
- let w = e, T = u(_), E = u(v), D = y ?? T.marker, O = b ?? E, k = m[T[w(291)]], A;
78
- return A = D === w(278) || D === w(295) || D === "status-number" ? f(a, {
79
- status: i,
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,
80
80
  size: k,
81
81
  progress: x,
82
- number: D === w(278) ? void 0 : O,
83
- persistNumber: D === w(295)
82
+ number: D === w(461) ? void 0 : O,
83
+ persistNumber: D === "number"
84
84
  }) : D, p("li", {
85
- className: o("ds-step-list__item", S),
85
+ className: o(w(462), S),
86
86
  style: C,
87
- "data-status": i,
88
- "aria-current": i === "active" ? w(294) : void 0,
89
- children: [f("span", {
90
- className: "ds-step-list__marker",
87
+ "data-status": n,
88
+ "aria-current": n === w(445) ? w(438) : void 0,
89
+ children: [f(w(458), {
90
+ className: w(451),
91
91
  children: A
92
- }), p(r, {
92
+ }), p(i, {
93
93
  gap: 1,
94
- className: w(283),
94
+ className: w(428),
95
95
  children: [
96
- p(n, {
96
+ p(r, {
97
97
  gap: 3,
98
- justify: w(280),
99
- align: "baseline",
98
+ justify: w(448),
99
+ align: w(432),
100
100
  wrap: !1,
101
101
  children: [f(t, {
102
- as: w(284),
103
- variant: h[T[w(291)]],
104
- weight: w(269),
105
- className: w(281),
102
+ as: w(458),
103
+ variant: h[T[w(450)]],
104
+ weight: "medium",
105
+ className: w(457),
106
106
  children: s
107
107
  }), l != null && f(t, {
108
- as: w(284),
109
- variant: w(273),
110
- tone: w(285),
108
+ as: "span",
109
+ variant: "caption",
110
+ tone: w(449),
111
111
  numeric: !0,
112
- className: "ds-step-list__meta",
112
+ className: w(455),
113
113
  children: l
114
114
  })]
115
115
  }),
116
116
  c != null && f(t, {
117
- as: w(297),
118
- variant: g[T[w(291)]],
119
- tone: "secondary",
117
+ as: w(442),
118
+ variant: g[T[w(450)]],
119
+ tone: w(456),
120
120
  children: c
121
121
  }),
122
- d != null && f(r, {
122
+ u != null && f(i, {
123
123
  gap: 1,
124
- className: w(279),
125
- children: d
124
+ className: w(430),
125
+ children: u
126
126
  })
127
127
  ]
128
128
  })]
@@ -1,104 +1,104 @@
1
1
  "use client";
2
- const e = i;
2
+ const e = r;
3
3
  (function(e, t) {
4
- let n = i, r = e();
4
+ let n = r, i = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(289)) / 1 * (parseInt(n(279)) / 2) + -parseInt(n(298)) / 3 * (-parseInt(n(264)) / 4) + -parseInt(n(282)) / 5 * (-parseInt(n(275)) / 6) + parseInt(n(271)) / 7 + -parseInt(n(292)) / 8 + parseInt(n(284)) / 9 * (-parseInt(n(294)) / 10) + parseInt(n(270)) / 11 == t) break;
7
- r.push(r.shift());
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());
8
8
  } catch {
9
- r.push(r.shift());
9
+ i.push(i.shift());
10
10
  }
11
- })(r, 551821);
11
+ })(l, 985532);
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() {
16
- let e = /* @__PURE__ */ "y2fWDgLVBG.mteXodu1nMvUthbnsW.C3bHBG.D2LKDgG.ywXPz24.BwfW.zw5K.mte1nJK4mJjkBLLrrLa.nJmYmdy3muXgC090uG.AgvHzgvY.BgvUz3rO.zhmTDgfIBguTlw92zxjSAw5L.ndG2q29hrwTb.CMLNAhq.CMvUzgvY.BNvTzxjPyW.mtm5otK1mg5AAuDotG.y29S.B3zLCMXPBMu.mtiWntv0CKDjsLi.ChjLDMvUDerLzMf1Bhq.ou9Ns016za.DgjVzhK.zhmTDgfIBgvFx251Bq.BgvHzgLUzW.zhmTDgfIBguTD3jHCa.mxnJAg5TsW.AgvHzgvYtgvHzgLUzW.C3rHCNq.ntGWmdm4ngfnwezfCG.zhmTDgfIBgvFx2vTChr5.nduYodqXmeHyq2LfDG.DgHLywq.DgfIBgu.A2v5.m21QCfHywq.BgfIzwW.y2vUDgvY.zhmTDgfIBgu.rw50zxi".split(".");
17
- return r = function() {
18
- return e;
19
- }, r();
20
- }
21
- function i(e, t) {
22
- e -= 262;
23
- let n = r(), a = n[e];
24
- i.uwkASa === void 0 && (i.zkEqFX = function(e) {
15
+ function r(e, t) {
16
+ e -= 419;
17
+ let n = l(), i = n[e];
18
+ r.vBFykT === void 0 && (r.QDvdkV = function(e) {
25
19
  let t = "", n = "";
26
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);
27
21
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
28
22
  return decodeURIComponent(n);
29
- }, i.sCveho = {}, i.uwkASa = !0);
30
- let o = n[0];
31
- i.DjsIgc !== o && (i.sCveho = {}, i.DjsIgc = o);
32
- let s = i.sCveho[e];
33
- return s === void 0 ? (a = i.zkEqFX(a), i.sCveho[e] = a) : a = s, a;
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;
34
28
  }
35
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
36
- var s = {
37
- start: e(291),
38
- center: e(300),
39
- end: e(269)
40
- }, c = {
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 = {
41
35
  start: void 0,
42
- center: "center",
43
- end: e(276)
36
+ center: e(426),
37
+ end: e(431)
44
38
  };
45
- function l({ columns: r, rows: l, rowKey: u, density: d = "default", striped: f = !0, headerVariant: p = e(299), selectedKey: m, onRowClick: h, empty: g, caption: _, className: v, style: y }) {
46
- let b = e, x = (e) => e[b(267)] ?? (e[b(278)] ? b(269) : b(291)), S = !!h, C = (e, t, n) => {
47
- let r = b;
48
- e.target !== e.currentTarget || e[r(297)] !== r(262) && e.key !== " " || (e[r(283)](), h?.(t, n));
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));
49
43
  };
50
- return a("div", {
51
- className: n(b(288), "ds-scroll", v),
52
- style: y,
53
- children: o(b(296), {
54
- className: n(b(301), "ds-table--" + d, f && "ds-table--striped", p === b(281) && b(274), S && "ds-table--interactive"),
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)),
55
49
  children: [
56
- _ && a(b(263), { children: _ }),
57
- a(b(295), { children: a("tr", { children: r[b(268)]((e) => {
58
- let n = b, r = x(e);
59
- return a("th", {
60
- scope: n(280),
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),
61
55
  style: {
62
- width: e[n(266)],
63
- textAlign: c[r]
56
+ width: e[n(458)],
57
+ textAlign: s[r]
64
58
  },
65
- children: e[n(290)] == null ? e[n(272)] : o(t, {
59
+ children: e[n(423)] == null ? e[n(419)] : a(t, {
66
60
  gap: 2,
67
61
  wrap: !1,
68
- justify: s[r],
69
- children: [e[n(290)], a(n(265), { children: e.header })]
62
+ justify: o[r],
63
+ children: [e[n(423)], i(n(450), { children: e.header })]
70
64
  })
71
- }, e[n(297)]);
65
+ }, e[n(438)]);
72
66
  }) }) }),
73
- o(b(285), { children: [l[b(268)]((e, n) => {
74
- let l = u ? u(e, n) : n, d = m != null && m === l;
75
- return a("tr", {
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", {
76
70
  "data-selected": d || void 0,
77
71
  "aria-current": d || void 0,
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: r.map((r) => {
82
- let l = i, u = x(r), d = r[l(277)] ? r[l(277)](e, n) : e[r.key] ?? null, f = r[l(287)]?.(e, n);
83
- return a("td", {
84
- className: r[l(278)] ? l(286) : void 0,
85
- style: { textAlign: c[u] },
86
- children: f == null ? d : o(t, {
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, {
87
81
  gap: 3,
88
82
  wrap: !1,
89
- justify: s[u],
90
- children: [f, a(l(265), { children: d })]
83
+ justify: o[u],
84
+ children: [f, i(l(450), { children: d })]
91
85
  })
92
- }, r[l(297)]);
86
+ }, r.key);
93
87
  })
94
- }, l);
95
- }), !l[b(273)] && g && a("tr", { children: a("td", {
96
- colSpan: r.length,
97
- className: b(293),
98
- children: g
88
+ }, u);
89
+ }), !c[y(430)] && h && i("tr", { children: i("td", {
90
+ colSpan: r[y(430)],
91
+ className: y(437),
92
+ children: h
99
93
  }) })] })
100
94
  ]
101
95
  })
102
96
  });
103
97
  }
104
- export { l as Table };
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 };
@@ -1,131 +1,131 @@
1
1
  "use client";
2
- const e = t;
3
- function t(e, n) {
4
- e -= 432;
5
- let r = i(), a = r[e];
6
- t.FIfLXP === void 0 && (t.BcWXHk = function(e) {
7
- let t = "", n = "";
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);
9
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
10
- return decodeURIComponent(n);
11
- }, t.ulcyIz = {}, t.FIfLXP = !0);
12
- let o = r[0];
13
- t.Yxwcwt !== o && (t.ulcyIz = {}, t.Yxwcwt = o);
14
- let s = t.ulcyIz[e];
15
- return s === void 0 ? (a = t.BcWXHk(a), t.ulcyIz[e] = a) : a = s, a;
16
- }
17
- (function(e, n) {
18
- let r = t, i = e();
2
+ const e = _;
3
+ (function(e, t) {
4
+ let n = _, r = e();
19
5
  for (;;) try {
20
- if (parseInt(r(464)) / 1 * (parseInt(r(441)) / 2) + parseInt(r(434)) / 3 * (parseInt(r(470)) / 4) + -parseInt(r(451)) / 5 * (parseInt(r(448)) / 6) + -parseInt(r(474)) / 7 + parseInt(r(475)) / 8 * (parseInt(r(469)) / 9) + parseInt(r(452)) / 10 * (-parseInt(r(453)) / 11) + parseInt(r(447)) / 12 == n) break;
21
- i.push(i.shift());
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;
7
+ r.push(r.shift());
22
8
  } catch {
23
- i.push(i.shift());
9
+ r.push(r.shift());
24
10
  }
25
- })(i, 959278);
26
- import { useControllableState as n } from "../../hooks/useControllableState.js";
27
- import { cx as r } from "../../primitives/index.js";
11
+ })(l, 789753);
12
+ import { useControllableState as t } from "../../hooks/useControllableState.js";
13
+ import { cx as n } from "../../primitives/index.js";
28
14
  /* empty css */
29
- function i() {
30
- let e = /* @__PURE__ */ "mJvAtw1lC2u.DgfICgfUzwW.y3vYCMvUDa.qxjYB3Dmzwz0.lxbHBMvSlq.mJqYmwjszNresW.nejIvxLuzW.tgLZDa.ywn0AxzLrwXLBwvUDa.lxrHyI0.mta4mZKXnw5vuMf3qq.mZy2odbfuKPtzei.w3jVBgu9iNrHyIjDw2fYAweTC2vSzwn0zwq9iNrYDwuIxq.yxv0BW.zhmTDgfIx19JB3vUDa.zM9JDxm.rw5K.zhmTDgfIBgLZDc0TzML0DgvK.oteXotu4uMPoEg5Z.BgvUz3rO.DgfIBgLZDa.zhmTDgfIBgLZDa.DMfSDwu.zhmTDgfI.CxvLCNLtzwXLy3rVCKfSBa.nJG3ndj6y1zTDNO.A2v5.zgL2.vgfIihbHCNrZig11C3qGyMuGDxnLzcbPBNnPzguGpfrHyNm+.CMvWBgfJzq.w3jVBgu9iNrHyIjDoM5VDcG6zgLZywjSzwqP.mJKYndKZntjwCvPUuMK.mJKZmZC2zfnUr2fL.D2LKDgG.CxvLCNLtzwXLy3rVCG.mtK1rvnuvNbQ.otbKD1jqEuu.mJiXntG5nxflu3rKqW.vgfI.uhjVDMLKzxi.qxjYB3DsAwDODa.zgLZy29UBMvJDa.yNv0Dg9U.C3bHBG.zhmTDgfIBgLZDc0T.ugfUzwW.zgf0yxnLDa.B2jZzxj2zq".split(".");
31
- return i = function() {
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() {
32
19
  return e;
33
- }, i();
20
+ }, l();
34
21
  }
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 = t, n = o(p);
39
- if (!n) throw Error(e(444));
40
- return n;
41
- }, h = (t) => t[e(445)](/[^\w-]/g, "_");
42
- function g({ value: t, defaultValue: i = "", onValueChange: a, activation: o = "auto", children: c, className: l }) {
43
- let u = e, [f, m] = n(t, i, a), h = s();
44
- return d(p[u(455)], {
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)], {
45
31
  value: {
46
- value: f,
32
+ value: p,
47
33
  select: m,
48
34
  baseId: h,
49
- activation: o
35
+ activation: s
50
36
  },
51
- children: d(u(443), {
52
- className: r("ds-tabs", l),
37
+ children: u(d(231), {
38
+ className: n("ds-tabs", l),
53
39
  children: c
54
40
  })
55
41
  });
56
42
  }
57
- function _({ children: n, variant: i = "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 = t, n = y[e(466)];
61
- if (!n) return;
62
- if (!n[e(450)](e(476))) {
63
- let t = n[e(450)](e(446))?.[e(462)].value;
64
- t !== void 0 && _(t);
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)];
47
+ 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);
65
51
  }
66
- let r = () => {
67
- let t = n[e(450)]("[role=\"tab\"][aria-selected=\"true\"]");
68
- x(t ? {
69
- left: t.offsetLeft,
70
- width: t.offsetWidth
52
+ let n = () => {
53
+ let n = e, r = t[n(228)](n(242));
54
+ x(r ? {
55
+ left: r[n(216)],
56
+ width: r[n(256)]
71
57
  } : null);
72
58
  };
73
- r();
74
- let i = new ResizeObserver(r);
75
- return i[e(463)](n), () => i[e(457)]();
76
- }, [g, _]), f(h(443), {
59
+ n();
60
+ let r = new ResizeObserver(n);
61
+ return r[e(251)](t), () => r[e(240)]();
62
+ }, [h, g]), d(m(231), {
77
63
  ref: y,
78
- role: h(436),
79
- "aria-label": s,
80
- className: r(h(437), h(460) + i, h(460) + a, o && h(433), p),
64
+ role: m(248),
65
+ "aria-label": l,
66
+ className: n("ds-tablist", m(234) + r, m(234) + i, a && m(245), f),
81
67
  onKeyDown: (e) => {
82
- let n = t, r = [...y.current?.[n(440)](n(446)) ?? []], i = r.indexOf(document[n(472)]), a;
83
- e[n(442)] === n(456) ? a = r[(i + 1) % r[n(435)]] : e[n(442)] === n(467) ? a = r[(i - 1 + r[n(435)]) % r[n(435)]] : e[n(442)] === "Home" ? a = r[0] : e.key === n(432) && (a = r[r[n(435)] - 1]), a && (e.preventDefault(), a[n(479)](), v === n(477) && a[n(462)][n(438)] && _(a[n(462)][n(438)]));
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)]));
84
70
  },
85
- children: [b && d("span", {
86
- className: "ds-tablist__thumb",
71
+ children: [b && u(m(239), {
72
+ className: m(214),
87
73
  "aria-hidden": !0,
88
74
  style: {
89
- left: b.left,
90
- width: b[h(449)]
75
+ left: b[m(230)],
76
+ width: b[m(236)]
91
77
  }
92
- }), n]
78
+ }), t]
93
79
  });
94
80
  }
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 } = m(), u = s === t;
97
- return f(o(458), {
98
- type: o(458),
99
- role: "tab",
100
- id: l + o(473) + h(t),
101
- "aria-controls": l + o(468) + h(t),
102
- "aria-selected": u,
103
- tabIndex: u ? 0 : -1,
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,
104
104
  disabled: a,
105
105
  "data-value": t,
106
- className: o(439),
106
+ className: "ds-tab",
107
107
  onClick: () => c(t),
108
108
  children: [
109
109
  r,
110
110
  n,
111
- i != null && d(o(459), {
112
- className: o(478),
111
+ i != null && u("span", {
112
+ className: o(226),
113
113
  children: i
114
114
  })
115
115
  ]
116
116
  });
117
117
  }
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(465),
122
- id: c + "-panel-" + h(t),
123
- "aria-labelledby": c + o(473) + h(t),
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),
124
124
  tabIndex: 0,
125
125
  hidden: !l,
126
- className: r("ds-tabpanel", a),
127
- children: n
126
+ className: n(o(241), a),
127
+ children: r
128
128
  });
129
129
  }
130
- g[e(471)] = _, g[e(454)] = v, g[e(461)] = y;
131
- export { v as Tab, _ as TabList, y as TabPanel, g as Tabs };
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 };