@iamfiro/design 0.3.0 → 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 +76 -76
  4. package/lib/components/ActionBar/ActionBar2.js +43 -43
  5. package/lib/components/Alert/Alert2.js +46 -46
  6. package/lib/components/AppShell/AppShell2.js +58 -58
  7. package/lib/components/AreaChart/AreaChart.js +39 -40
  8. package/lib/components/BarChart/BarChart2.js +169 -169
  9. package/lib/components/BarList/BarList2.js +99 -99
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +65 -66
  11. package/lib/components/Calendar/Calendar2.js +172 -171
  12. package/lib/components/Calendar/DatePicker2.js +101 -102
  13. package/lib/components/Calendar/date.js +71 -71
  14. package/lib/components/Card/Card2.js +55 -56
  15. package/lib/components/CardFrame/CardFrame2.js +52 -52
  16. package/lib/components/Chart/ChartParts.js +90 -90
  17. package/lib/components/Chart/chart2.js +52 -52
  18. package/lib/components/Chart/useChartInteraction.js +44 -44
  19. package/lib/components/ChatBubble/ChatBubble2.js +112 -112
  20. package/lib/components/ChatBubble/formatChatTime.js +44 -42
  21. package/lib/components/ChatComposer/ChatComposer2.js +94 -94
  22. package/lib/components/CodeBlock/CodeBlock2.js +66 -66
  23. package/lib/components/CodeBlock/highlight.js +67 -70
  24. package/lib/components/ColorPicker/ColorPicker2.js +404 -405
  25. package/lib/components/ColorPicker/color.js +81 -81
  26. package/lib/components/ColorPicker/presets.js +44 -43
  27. package/lib/components/Combobox/Combobox2.js +128 -128
  28. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  29. package/lib/components/Comment/Comment2.js +55 -80
  30. package/lib/components/ContextMenu/ContextMenu2.js +93 -94
  31. package/lib/components/DataGrid/DataGrid2.js +1181 -1180
  32. package/lib/components/DataGrid/GridPopover.js +112 -112
  33. package/lib/components/DataGrid/anchor.js +23 -25
  34. package/lib/components/DataGrid/model.js +274 -275
  35. package/lib/components/DataGrid/panels.js +423 -423
  36. package/lib/components/DataGrid/typeMeta.js +21 -22
  37. package/lib/components/DataGrid/types.js +38 -37
  38. package/lib/components/DescriptionList/DescriptionList2.js +107 -107
  39. package/lib/components/Dialog/AlertDialog.js +53 -53
  40. package/lib/components/Dialog/Dialog2.js +71 -70
  41. package/lib/components/Dialog/modal.js +59 -58
  42. package/lib/components/Drawer/Drawer2.js +123 -124
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +198 -200
  44. package/lib/components/DropdownMenu/menuCore.js +46 -47
  45. package/lib/components/Dropzone/Dropzone2.js +77 -77
  46. package/lib/components/EmptyState/EmptyState2.js +57 -56
  47. package/lib/components/FileChip/FileChip2.js +71 -71
  48. package/lib/components/FileUpload/FileUpload.js +119 -119
  49. package/lib/components/FilterChips/FilterChips2.js +61 -61
  50. package/lib/components/FunnelChart/FunnelChart2.js +141 -141
  51. package/lib/components/FunnelChart/funnel.js +51 -51
  52. package/lib/components/Highlight/Highlight2.js +54 -54
  53. package/lib/components/HoverCard/HoverCard.js +108 -83
  54. package/lib/components/InlineDiff/InlineDiff2.js +126 -126
  55. package/lib/components/InlineDiff/diff.js +82 -82
  56. package/lib/components/InlineDiff/useDiffReview.js +62 -60
  57. package/lib/components/Kanban/Kanban2.js +382 -382
  58. package/lib/components/Kanban/KanbanCard.js +92 -92
  59. package/lib/components/Kanban/move.js +45 -49
  60. package/lib/components/LineChart/LineChart2.js +207 -207
  61. package/lib/components/List/List2.js +71 -71
  62. package/lib/components/Listbox/Listbox2.js +115 -115
  63. package/lib/components/Marker/Marker2.js +67 -60
  64. package/lib/components/Menubar/Menubar2.js +130 -133
  65. package/lib/components/MultiSelect/MultiSelect2.js +104 -104
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +261 -262
  67. package/lib/components/NoticeStack/NoticeStack2.js +105 -105
  68. package/lib/components/NumberStepper/NumberStepper2.js +67 -67
  69. package/lib/components/OtpInput/OtpInput2.js +66 -67
  70. package/lib/components/Pagination/Pagination2.js +90 -90
  71. package/lib/components/Pagination/paginationRange.js +24 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +74 -74
  73. package/lib/components/PieChart/PieChart2.js +119 -119
  74. package/lib/components/PieChart/arc.js +63 -42
  75. package/lib/components/PieChart/useArcTween.js +56 -54
  76. package/lib/components/Popover/Popover2.js +61 -61
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +127 -127
  78. package/lib/components/Rating/Rating2.js +81 -81
  79. package/lib/components/Resizable/Resizable2.js +112 -110
  80. package/lib/components/Resizable/layout.js +50 -50
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -50
  82. package/lib/components/ScatterChart/ScatterChart2.js +226 -227
  83. package/lib/components/ScatterChart/scatter.js +59 -57
  84. package/lib/components/ScrollArea/ScrollArea2.js +112 -112
  85. package/lib/components/Select/Select2.js +79 -79
  86. package/lib/components/Sidebar/Sidebar2.js +79 -79
  87. package/lib/components/Skeleton/Skeleton2.js +68 -68
  88. package/lib/components/Slider/Slider2.js +78 -77
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +65 -66
  90. package/lib/components/SparkChart/SparkChart2.js +146 -145
  91. package/lib/components/SparkChart/spark.js +41 -67
  92. package/lib/components/Sparkbar/Sparkbar2.js +61 -60
  93. package/lib/components/SplitView/SplitView2.js +53 -53
  94. package/lib/components/Stat/Stat2.js +94 -94
  95. package/lib/components/StepList/StepList2.js +70 -70
  96. package/lib/components/Table/Table2.js +63 -63
  97. package/lib/components/Tabs/Tabs2.js +70 -70
  98. package/lib/components/TagInput/TagInput2.js +236 -239
  99. package/lib/components/TimePicker/TimePicker2.js +231 -232
  100. package/lib/components/TimePicker/time.js +63 -65
  101. package/lib/components/Timeline/Timeline2.js +167 -167
  102. package/lib/components/Timeline/scale.js +55 -55
  103. package/lib/components/Toast/Toaster.js +151 -152
  104. package/lib/components/Toast/store.js +90 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +91 -91
  106. package/lib/components/Toolbar/Toolbar2.js +145 -145
  107. package/lib/components/Tracker/Tracker2.js +76 -76
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +112 -111
  109. package/lib/components/TreeView/TreeView2.js +124 -124
  110. package/lib/hooks/timing.js +30 -29
  111. package/lib/hooks/useControllableState.js +37 -36
  112. package/lib/hooks/useCountdown.js +56 -59
  113. package/lib/hooks/useDigitInput.js +52 -78
  114. package/lib/hooks/useDismiss.js +58 -57
  115. package/lib/hooks/useElapsed.js +54 -54
  116. package/lib/hooks/useFloating.js +26 -26
  117. package/lib/hooks/useFocusTrap.js +42 -42
  118. package/lib/hooks/usePresence.js +49 -48
  119. package/lib/hooks/usePressToOpen.js +42 -41
  120. package/lib/hooks/useScrollLock.js +45 -44
  121. package/lib/hooks/useSelection.js +45 -39
  122. package/lib/index.js +71 -71
  123. package/lib/primitives/AspectRatio2.js +60 -60
  124. package/lib/primitives/BrandIcon.js +161 -161
  125. package/lib/primitives/ColorDot2.js +42 -45
  126. package/lib/primitives/CopyButton2.js +57 -56
  127. package/lib/primitives/CountBadge2.js +55 -51
  128. package/lib/primitives/Countdown2.js +41 -46
  129. package/lib/primitives/Delta2.js +36 -36
  130. package/lib/primitives/Elapsed.js +49 -49
  131. package/lib/primitives/FileIcon2.js +96 -96
  132. package/lib/primitives/Flag2.js +135 -135
  133. package/lib/primitives/IconStack2.js +38 -60
  134. package/lib/primitives/IconTile2.js +28 -29
  135. package/lib/primitives/Kbd2.js +50 -50
  136. package/lib/primitives/Layout2.js +71 -71
  137. package/lib/primitives/Link2.js +32 -31
  138. package/lib/primitives/MaskedText2.js +49 -74
  139. package/lib/primitives/Progress2.js +65 -66
  140. package/lib/primitives/RelativeTime.js +58 -57
  141. package/lib/primitives/SearchInput2.js +65 -65
  142. package/lib/primitives/SelectorButton2.js +74 -73
  143. package/lib/primitives/Spinner2.js +50 -50
  144. package/lib/primitives/StatusIcon2.js +68 -68
  145. package/lib/primitives/Swatch2.js +59 -55
  146. package/lib/primitives/Tooltip2.js +81 -81
  147. package/lib/primitives/Typography2.js +53 -53
  148. package/lib/primitives/formatCountdown.js +21 -22
  149. package/lib/primitives/formatElapsed.js +43 -42
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +82 -82
  152. package/lib/primitives/index.js +193 -174
  153. package/lib/primitives/maskValue.js +28 -28
  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 = t;
3
- function t(e, n) {
4
- e -= 301;
5
- let r = d(), i = r[e];
6
- t.OGxpFk === void 0 && (t.RCohly = function(e) {
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) {
7
17
  let t = "", n = "";
8
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);
9
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
10
20
  return decodeURIComponent(n);
11
- }, t.oThobZ = {}, t.OGxpFk = !0);
21
+ }, n.zRflTv = {}, n.wfkQqv = !0);
12
22
  let a = r[0];
13
- t.AdYtbs !== a && (t.oThobZ = {}, t.AdYtbs = a);
14
- let o = t.oThobZ[e];
15
- return o === void 0 ? (i = t.RCohly(i), t.oThobZ[e] = i) : i = o, i;
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;
16
26
  }
17
- (function(e, n) {
18
- let r = t, i = e();
19
- for (;;) try {
20
- if (parseInt(r(301)) / 1 * (-parseInt(r(333)) / 2) + parseInt(r(335)) / 3 + parseInt(r(321)) / 4 + -parseInt(r(339)) / 5 * (-parseInt(r(331)) / 6) + -parseInt(r(319)) / 7 + -parseInt(r(305)) / 8 + -parseInt(r(334)) / 9 * (parseInt(r(320)) / 10) == n) break;
21
- i.push(i.shift());
22
- } catch {
23
- i.push(i.shift());
24
- }
25
- })(d, 128665);
26
- import { Text as n } from "../../primitives/Typography2.js";
27
27
  import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
28
28
  import { StatusIcon as a } from "../../primitives/StatusIcon2.js";
29
29
  import { cx as o } from "../../primitives/index.js";
30
30
  /* empty css */
31
- import { Children as s, createContext as c, isValidElement as l, useContext as u } from "react";
32
- function d() {
33
- let e = /* @__PURE__ */ "zgL2.zMLSDgvY.A2v5.zhmTC3rLCc1SAxn0x190AxrSzq.yMv0D2vLBG.C3rHDhvZ.mteZmtm4mLfXvhfTAa.mtb5su9mtMq.odC3ode2CvjkDhbc.zhmTC3rLCc1SAxn0x19TzxrH.BNvTyMvY.C2vJB25Kyxj5.BwfYA2vY.yMfZzwXPBMu.C3rLCa.zhmTC3rLCc1SAxn0x19IB2r5.zgvMyxvSDa.zhmTC3rLCc1SAxn0x19JB250zw50.nda1mfz2CNjyzq.C3rHDhvZlw51BwjLCG.mtyXmtm4Ee1SDwjq.mte0odCZm0Dyr0Pkyq.nZi4mtKWzu5pBvfX.yM9KEs1Tza.zhmTC3rLCc1SAxn0ls1JB25Uzwn0B3iT.y2fWDgLVBG.mtm5mhndre5YAq.mu9LEMPtza.BwvKAxvT.uhjVDMLKzxi.yM9KEs1SzW.mtiXmdy5nNrwDhbRtG.zhmTC3rLCc1SAxn0x19PDgvT.C2L6zq.zhmTC3rLCc1SAxn0ls0.BwfW.zhmTC3rLCc1SAxn0x19TyxjRzxi.ywn0AxzL.C3bHBG".split(".");
34
- return d = function() {
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() {
35
34
  return e;
36
- }, d();
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: "body-sm",
45
- md: e(336),
46
- lg: e(304)
44
+ sm: e(454),
45
+ md: e(446),
46
+ lg: e(439)
47
47
  }, g = {
48
48
  sm: "body-xs",
49
- md: "body-sm",
50
- lg: "body-md"
51
- }, _ = c({
52
- marker: e(318),
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 = e(318), connector: i = e(329), size: a = "md", density: c = e(329), start: u = 1, "aria-label": d, className: p, style: h }) {
56
- let g = e, y = t ? t[g(309)](({ id: e, ...t }) => f(b, { ...t }, e)) : s.toArray(n)[g(314)]((e) => l(e));
57
- return f(_[g(303)], {
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("ds-step-list", g(308) + a, g(308) + c, g(337) + 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.map((e, t) => f(v[g(303)], {
70
- value: u + t,
69
+ children: y.map((e, t) => f(v[g(441)], {
70
+ value: l + t,
71
71
  children: e
72
- }, e[g(315)] ?? t))
72
+ }, e.key ?? t))
73
73
  })
74
74
  });
75
75
  }
76
- function b({ status: t, 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[w(325)], O = b ?? E, k = m[T[w(307)]], A;
78
- return A = D === w(318) || D === w(323) || D === w(332) ? f(a, {
79
- status: t,
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(318) ? void 0 : O,
83
- persistNumber: D === w(323)
82
+ number: D === w(461) ? void 0 : O,
83
+ persistNumber: D === "number"
84
84
  }) : D, p("li", {
85
- className: o(w(306), S),
85
+ className: o(w(462), S),
86
86
  style: C,
87
- "data-status": t,
88
- "aria-current": t === w(311) ? w(327) : void 0,
89
- children: [f(w(312), {
90
- className: w(310),
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
92
  }), p(i, {
93
93
  gap: 1,
94
- className: w(328),
94
+ className: w(428),
95
95
  children: [
96
96
  p(r, {
97
97
  gap: 3,
98
- justify: w(317),
99
- align: w(326),
98
+ justify: w(448),
99
+ align: w(432),
100
100
  wrap: !1,
101
- children: [f(n, {
102
- as: "span",
103
- variant: h[T[w(307)]],
104
- weight: w(302),
105
- className: w(316),
101
+ children: [f(t, {
102
+ as: w(458),
103
+ variant: h[T[w(450)]],
104
+ weight: "medium",
105
+ className: w(457),
106
106
  children: s
107
- }), l != null && f(n, {
108
- as: w(312),
109
- variant: w(338),
110
- tone: "tertiary",
107
+ }), l != null && f(t, {
108
+ as: "span",
109
+ variant: "caption",
110
+ tone: w(449),
111
111
  numeric: !0,
112
- className: w(322),
112
+ className: w(455),
113
113
  children: l
114
114
  })]
115
115
  }),
116
- c != null && f(n, {
117
- as: w(313),
118
- variant: g[T[w(307)]],
119
- tone: w(324),
116
+ c != null && f(t, {
117
+ as: w(442),
118
+ variant: g[T[w(450)]],
119
+ tone: w(456),
120
120
  children: c
121
121
  }),
122
- d != null && f(i, {
122
+ u != null && f(i, {
123
123
  gap: 1,
124
- className: w(330),
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(309)) / 1 * (-parseInt(n(312)) / 2) + parseInt(n(311)) / 3 * (-parseInt(n(297)) / 4) + -parseInt(n(310)) / 5 + -parseInt(n(314)) / 6 + -parseInt(n(300)) / 7 + -parseInt(n(292)) / 8 + parseInt(n(298)) / 9 == 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, 598294);
11
+ })(l, 985532);
12
12
  import { Inline as t } from "../../primitives/Layout2.js";
13
13
  import { cx as n } from "../../primitives/index.js";
14
- function r() {
15
- let e = /* @__PURE__ */ "y29S.D2LKDgG.zw5K.DgHLywq.zgvMyxvSDa.AgvHzgvY.CMLNAhq.zhmTDgfIBguTD3jHCa.C3rHCNq.odC1ntG3mNfAsKnsAW.y2vUDgvY.AgvHzgvYtgvHzgLUzW.DgfYz2v0.ywXPz24.ngfhwwzPDG.mZqWoduYmJnSrvLlueW.BgvUz3rO.nJm2otmZnujNr1nfuW.BgfIzwW.zhmTDgfIBgu.CMvUzgvY.zhmTDgfIBguTlwLUDgvYywn0AxzL.zhmTDgfIBguTlxn0CMLWzwq.DgjVzhK.BNvTzxjPyW.zhmTDgfIBguTlq.mZv2ugXrAgi.mty2mde4meXMqMjVzW.mtq0ntqZm21jwM1Zyq.mJKXnhj1sK13BW.zhmTDgfIBgvFx2vTChr5.mtKXodmZmMHMr2voAW.C3bHBG.zhmTDgfIBgvFx251Bq.ChjLDMvUDerLzMf1Bhq.A2v5.BwfW".split(".");
16
- return r = function() {
17
- return e;
18
- }, r();
19
- }
20
- function i(e, t) {
21
- e -= 287;
22
- let n = r(), a = n[e];
23
- i.NjPyXt === void 0 && (i.yBXfDn = function(e) {
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) {
24
19
  let t = "", n = "";
25
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);
26
21
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
27
22
  return decodeURIComponent(n);
28
- }, i.sPxTGI = {}, i.NjPyXt = !0);
29
- let o = n[0];
30
- i.QZKoRK !== o && (i.sPxTGI = {}, i.QZKoRK = o);
31
- let s = i.sPxTGI[e];
32
- return s === void 0 ? (a = i.yBXfDn(a), i.sPxTGI[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;
33
28
  }
34
- /* empty css */
35
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
36
- var s = {
37
- start: e(291),
38
- center: e(293),
39
- end: "end"
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: e(293),
43
- end: e(289)
36
+ center: e(426),
37
+ end: e(431)
44
38
  };
45
- function l({ columns: r, rows: i, rowKey: l, density: u = e(287), striped: d = !0, headerVariant: f = e(301), selectedKey: p, onRowClick: m, empty: h, caption: g, className: _, style: v }) {
46
- let y = e, b = (e) => e[y(296)] ?? (e[y(307)] ? y(322) : y(291)), x = !!m, S = (e, 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) => {
47
41
  let r = y;
48
- e[r(295)] !== e.currentTarget || e[r(318)] !== "Enter" && e[r(318)] !== " " || (e[r(317)](), m?.(t, n));
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(y(290), "ds-scroll", _),
44
+ return i(y(439), {
45
+ className: n(y(436), y(461), _),
52
46
  style: v,
53
- children: o("table", {
54
- className: n(y(302), y(308) + u, d && y(305), f === "overline" && "ds-table--overline", x && y(304)),
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
- g && a("caption", { children: g }),
57
- a(y(323), { children: a("tr", { children: r[y(319)]((e) => {
50
+ g && i(y(459), { children: g }),
51
+ i("thead", { children: i("tr", { children: r[y(456)]((e) => {
58
52
  let n = y, r = b(e);
59
- return a("th", {
60
- scope: n(320),
53
+ return i("th", {
54
+ scope: n(427),
61
55
  style: {
62
- width: e[n(321)],
63
- textAlign: c[r]
56
+ width: e[n(458)],
57
+ textAlign: s[r]
64
58
  },
65
- children: e.headerLeading == null ? e[n(288)] : 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(294)], a("span", { children: e.header })]
62
+ justify: o[r],
63
+ children: [e[n(423)], i(n(450), { children: e.header })]
70
64
  })
71
- }, e[n(318)]);
65
+ }, e[n(438)]);
72
66
  }) }) }),
73
- o(y(306), { children: [i[y(319)]((e, n) => {
74
- let i = y, u = l ? l(e, n) : n, d = p != null && p === u;
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
72
  tabIndex: x ? 0 : void 0,
79
73
  onClick: m ? () => m(e, n) : void 0,
80
74
  onKeyDown: x ? (t) => S(t, e, n) : void 0,
81
- children: r[i(319)]((r) => {
82
- let l = i, u = b(r), d = r[l(303)] ? r[l(303)](e, n) : e[r[l(318)]] ?? null, f = r.leading?.(e, n);
83
- return a("td", {
84
- className: r[l(307)] ? l(316) : void 0,
85
- style: { textAlign: c[u] },
86
- children: f == null ? d : o(t, {
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(315), { children: d })]
83
+ justify: o[u],
84
+ children: [f, i(l(450), { children: d })]
91
85
  })
92
- }, r[l(318)]);
86
+ }, r.key);
93
87
  })
94
88
  }, u);
95
- }), !i[y(299)] && h && a("tr", { children: a("td", {
96
- colSpan: r[y(299)],
97
- className: y(313),
89
+ }), !c[y(430)] && h && i("tr", { children: i("td", {
90
+ colSpan: r[y(430)],
91
+ className: y(437),
98
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 = d;
2
+ const e = _;
3
3
  (function(e, t) {
4
- let n = d, r = e();
4
+ let n = _, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(475)) / 1 + -parseInt(n(457)) / 2 + -parseInt(n(459)) / 3 * (parseInt(n(451)) / 4) + parseInt(n(462)) / 5 * (parseInt(n(464)) / 6) + -parseInt(n(456)) / 7 + parseInt(n(435)) / 8 * (parseInt(n(461)) / 9) + parseInt(n(453)) / 10 * (parseInt(n(477)) / 11) == t) break;
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
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(h, 955110);
11
+ })(l, 789753);
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
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
17
- function d(e, t) {
18
- e -= 430;
19
- let n = h(), r = n[e];
20
- d.RtcHtz === void 0 && (d.vMWeNG = function(e) {
21
- let t = "", n = "";
22
- 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);
23
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
24
- return decodeURIComponent(n);
25
- }, d.sydbgW = {}, d.RtcHtz = !0);
26
- let i = n[0];
27
- d.oelsbp !== i && (d.sydbgW = {}, d.oelsbp = i);
28
- let a = d.sydbgW[e];
29
- return a === void 0 ? (r = d.vMWeNG(r), d.sydbgW[e] = r) : r = a, r;
30
- }
31
- var f = r(null), p = () => {
32
- let e = d, t = i(f);
33
- if (!t) throw Error(e(440));
34
- return t;
35
- }, m = (t) => t[e(449)](/[^\w-]/g, "_");
36
- function h() {
37
- let e = /* @__PURE__ */ "zhmTDgfIBgLZDc0TzML0DgvK.CxvLCNLtzwXLy3rVCG.zgf0yxnLDa.qxjYB3DsAwDODa.zhmTDgfIBgLZDa.w3jVBgu9iNrHyIjDw2fYAweTC2vSzwn0zwq9iNrYDwuIxq.mJuXmZC5B0jfCLvJ.BgvMDa.ndq1nJC3muXxBwnNBW.lxbHBMvSlq.sg9Tzq.A2v5.zhmTDgfIBgLZDc0T.y3vYCMvUDa.zhmTDgfIBgLZDf9FDgH1Bwi.BgvUz3rO.mZjsrvn0u2G.ugfUzwW.yxv0BW.C3bHBG.qxjYB3Dmzwz0.vgfIihbHCNrZig11C3qGyMuGDxnLzcbPBNnPzguGpfrHyNm+.DgfIBgLZDa.ChjLDMvUDerLzMf1Bhq.D2LKDgG.B2jZzxj2zq.yNv0Dg9U.zgL2.ywn0AxzLrwXLBwvUDa.DMfSDwu.CMvWBgfJzq.zM9JDxm.ndbiqwnuzfa.lxrHyI0.mZbSrKX6rMq.zhmTDgfICW.w3jVBgu9iNrHyIjDoM5VDcG6zgLZywjSzwqP.mty0odK2mLPSwLjAvG.mJiZnZy5mgryt2THBW.zgLZy29UBMvJDa.ndG4mZDUz0r6r3q.rw5K.ndq3mdC1wwLyu3PV.nJu0nZuZnvzJserSvq.zhmTDgfICgfUzwW.nNDRzNnRra.Aw5KzxHpzG.B2zMC2v0tgvMDa.zhmTDgfI.DgfICgfUzwW".split(".");
38
- return h = function() {
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() {
39
19
  return e;
40
- }, h();
20
+ }, l();
41
21
  }
42
- function g({ value: r, defaultValue: i = "", onValueChange: o, activation: s = "auto", children: c, className: u }) {
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 }) {
43
29
  let d = e, [p, m] = t(r, i, o), h = a();
44
- return l(f.Provider, {
30
+ return u(f[d(227)], {
45
31
  value: {
46
32
  value: p,
47
33
  select: m,
48
34
  baseId: h,
49
35
  activation: s
50
36
  },
51
- children: l("div", {
52
- className: n(d(454), u),
37
+ children: u(d(231), {
38
+ className: n("ds-tabs", l),
53
39
  children: c
54
40
  })
55
41
  });
56
42
  }
57
- function _({ children: t, variant: r = "underline", size: i = "md", fitted: a, "aria-label": f, className: m }) {
58
- let h = e, { value: g, select: _, activation: v } = p(), y = s(null), [b, x] = c(null);
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);
59
45
  return o(() => {
60
- let e = d, t = y[e(432)];
46
+ let e = _, t = y[e(255)];
61
47
  if (!t) return;
62
- if (!t[e(470)](e(474))) {
63
- let n = t[e(470)](e(455))?.[e(471)][e(448)];
64
- n !== void 0 && _(n);
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
52
  let n = () => {
67
- let n = e, r = t.querySelector(n(474));
53
+ let n = e, r = t[n(228)](n(242));
68
54
  x(r ? {
69
- left: r[n(466)],
70
- width: r.offsetWidth
55
+ left: r[n(216)],
56
+ width: r[n(256)]
71
57
  } : null);
72
58
  };
73
59
  n();
74
60
  let r = new ResizeObserver(n);
75
- return r[e(444)](t), () => r[e(458)]();
76
- }, [g, _]), u("div", {
61
+ return r[e(251)](t), () => r[e(240)]();
62
+ }, [h, g]), d(m(231), {
77
63
  ref: y,
78
- role: h(441),
79
- "aria-label": f,
80
- className: n(h(473), h(431) + r, h(431) + i, a && h(469), m),
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 t = d, n = [...y[t(432)]?.querySelectorAll(t(455)) ?? []], r = n[t(465)](document[t(447)]), i;
83
- e[t(430)] === t(472) ? i = n[(r + 1) % n[t(434)]] : e.key === t(439) ? i = n[(r - 1 + n[t(434)]) % n[t(434)]] : e[t(430)] === t(479) ? i = n[0] : e.key === t(460) && (i = n[n[t(434)] - 1]), i && (e[t(442)](), i[t(450)](), v === t(437) && i.dataset[t(448)] && _(i[t(471)][t(448)]));
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 && l(h(438), {
86
- className: h(433),
71
+ children: [b && u(m(239), {
72
+ className: m(214),
87
73
  "aria-hidden": !0,
88
74
  style: {
89
- left: b[h(476)],
90
- width: b[h(443)]
75
+ left: b[m(230)],
76
+ width: b[m(236)]
91
77
  }
92
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: d } = p(), f = s === t;
97
- return u(o(445), {
98
- type: o(445),
99
- role: "tab",
100
- id: d + o(452) + m(t),
101
- "aria-controls": d + o(478) + m(t),
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
102
  "aria-selected": f,
103
103
  tabIndex: f ? 0 : -1,
104
104
  disabled: a,
105
105
  "data-value": t,
106
- className: o(467),
106
+ className: "ds-tab",
107
107
  onClick: () => c(t),
108
108
  children: [
109
109
  r,
110
110
  n,
111
- i != null && l(o(438), {
112
- className: "ds-tab__count",
111
+ i != null && u("span", {
112
+ className: o(226),
113
113
  children: i
114
114
  })
115
115
  ]
116
116
  });
117
117
  }
118
118
  function y({ value: t, children: r, keepMounted: i, className: a }) {
119
- let o = e, { value: s, baseId: c } = p(), u = s === t;
120
- return !u && !i ? null : l(o(446), {
121
- role: o(468),
122
- id: c + o(478) + m(t),
123
- "aria-labelledby": c + "-tab-" + m(t),
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
- hidden: !u,
126
- className: n(o(463), a),
125
+ hidden: !l,
126
+ className: n(o(241), a),
127
127
  children: r
128
128
  });
129
129
  }
130
- g.List = _, g.Tab = v, g[e(436)] = 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 };