@iamfiro/design 0.3.1 → 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 (161) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/avatar/AGENTS.md +29 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/agents/tooltip/AGENTS.md +1 -1
  6. package/lib/components/Accordion/Accordion2.js +92 -92
  7. package/lib/components/ActionBar/ActionBar2.js +42 -45
  8. package/lib/components/Alert/Alert2.js +77 -77
  9. package/lib/components/AppShell/AppShell2.js +70 -71
  10. package/lib/components/AreaChart/AreaChart.js +32 -35
  11. package/lib/components/BarChart/BarChart2.js +155 -155
  12. package/lib/components/BarList/BarList2.js +93 -93
  13. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -64
  14. package/lib/components/Calendar/Calendar2.js +183 -182
  15. package/lib/components/Calendar/DatePicker2.js +116 -115
  16. package/lib/components/Calendar/date.js +67 -66
  17. package/lib/components/Card/Card2.js +67 -67
  18. package/lib/components/CardFrame/CardFrame2.js +34 -37
  19. package/lib/components/Chart/ChartParts.js +90 -90
  20. package/lib/components/Chart/chart2.js +62 -62
  21. package/lib/components/Chart/useChartInteraction.js +51 -51
  22. package/lib/components/ChatBubble/ChatBubble2.js +117 -117
  23. package/lib/components/ChatBubble/formatChatTime.js +37 -36
  24. package/lib/components/ChatComposer/ChatComposer2.js +55 -55
  25. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  26. package/lib/components/CodeBlock/highlight.js +72 -72
  27. package/lib/components/ColorPicker/ColorPicker2.js +232 -231
  28. package/lib/components/ColorPicker/color.js +67 -67
  29. package/lib/components/ColorPicker/presets.js +25 -24
  30. package/lib/components/Combobox/Combobox2.js +140 -140
  31. package/lib/components/CommandMenu/CommandMenu.js +135 -135
  32. package/lib/components/Comment/Comment2.js +82 -57
  33. package/lib/components/ContextMenu/ContextMenu2.js +101 -100
  34. package/lib/components/DataGrid/DataGrid2.js +872 -871
  35. package/lib/components/DataGrid/GridPopover.js +98 -98
  36. package/lib/components/DataGrid/anchor.js +34 -33
  37. package/lib/components/DataGrid/model.js +291 -290
  38. package/lib/components/DataGrid/panels.js +337 -336
  39. package/lib/components/DataGrid/typeMeta.js +49 -48
  40. package/lib/components/DataGrid/types.js +34 -33
  41. package/lib/components/DescriptionList/DescriptionList2.js +109 -109
  42. package/lib/components/Dialog/AlertDialog.js +53 -53
  43. package/lib/components/Dialog/Dialog2.js +72 -72
  44. package/lib/components/Dialog/modal.js +67 -68
  45. package/lib/components/Drawer/Drawer2.js +117 -117
  46. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -266
  47. package/lib/components/DropdownMenu/menuCore.js +68 -42
  48. package/lib/components/Dropzone/Dropzone2.js +78 -78
  49. package/lib/components/EmptyState/EmptyState2.js +58 -56
  50. package/lib/components/FileChip/FileChip2.js +72 -48
  51. package/lib/components/FileUpload/FileUpload.js +137 -138
  52. package/lib/components/FilterChips/FilterChips2.js +61 -61
  53. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  54. package/lib/components/FunnelChart/funnel.js +50 -49
  55. package/lib/components/Highlight/Highlight2.js +56 -56
  56. package/lib/components/HoverCard/HoverCard.js +73 -73
  57. package/lib/components/InlineDiff/InlineDiff2.js +129 -129
  58. package/lib/components/InlineDiff/diff.js +87 -87
  59. package/lib/components/InlineDiff/useDiffReview.js +54 -52
  60. package/lib/components/Kanban/Kanban2.js +383 -384
  61. package/lib/components/Kanban/KanbanCard.js +68 -93
  62. package/lib/components/Kanban/move.js +43 -43
  63. package/lib/components/LineChart/LineChart2.js +164 -164
  64. package/lib/components/List/List2.js +60 -60
  65. package/lib/components/Listbox/Listbox2.js +108 -108
  66. package/lib/components/Marker/Marker2.js +59 -57
  67. package/lib/components/Menubar/Menubar2.js +120 -119
  68. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  69. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -279
  70. package/lib/components/NoticeStack/NoticeStack2.js +109 -109
  71. package/lib/components/NumberStepper/NumberStepper2.js +70 -70
  72. package/lib/components/OtpInput/OtpInput2.js +94 -94
  73. package/lib/components/Pagination/Pagination2.js +109 -109
  74. package/lib/components/Pagination/paginationRange.js +37 -38
  75. package/lib/components/PhoneInput/PhoneInput.js +83 -84
  76. package/lib/components/PieChart/PieChart2.js +157 -157
  77. package/lib/components/PieChart/arc.js +72 -72
  78. package/lib/components/PieChart/useArcTween.js +50 -53
  79. package/lib/components/Popover/Popover2.js +62 -61
  80. package/lib/components/ProgressTracker/ProgressTracker2.js +104 -104
  81. package/lib/components/Rating/Rating2.js +89 -88
  82. package/lib/components/Resizable/Resizable2.js +133 -134
  83. package/lib/components/Resizable/layout.js +56 -56
  84. package/lib/components/ScaledPreview/ScaledPreview2.js +64 -63
  85. package/lib/components/ScatterChart/ScatterChart2.js +252 -251
  86. package/lib/components/ScatterChart/scatter.js +50 -52
  87. package/lib/components/ScrollArea/ScrollArea2.js +122 -122
  88. package/lib/components/Select/Select2.js +84 -85
  89. package/lib/components/Sidebar/Sidebar2.js +79 -79
  90. package/lib/components/Skeleton/Skeleton2.js +56 -56
  91. package/lib/components/Slider/Slider2.js +63 -63
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -46
  93. package/lib/components/SparkChart/SparkChart2.js +129 -128
  94. package/lib/components/SparkChart/spark.js +49 -48
  95. package/lib/components/Sparkbar/Sparkbar2.js +59 -58
  96. package/lib/components/SplitView/SplitView2.js +54 -55
  97. package/lib/components/Stat/Stat2.js +59 -59
  98. package/lib/components/StepList/StepList2.js +78 -78
  99. package/lib/components/Table/Table2.js +55 -55
  100. package/lib/components/Tabs/Tabs2.js +76 -76
  101. package/lib/components/TagInput/TagInput2.js +218 -215
  102. package/lib/components/TimePicker/TimePicker2.js +204 -204
  103. package/lib/components/TimePicker/time.js +59 -58
  104. package/lib/components/Timeline/Timeline2.js +179 -179
  105. package/lib/components/Timeline/scale.js +60 -55
  106. package/lib/components/Toast/Toaster.js +103 -103
  107. package/lib/components/Toast/store.js +47 -47
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +77 -77
  109. package/lib/components/Toolbar/Toolbar2.js +138 -138
  110. package/lib/components/Tracker/Tracker2.js +99 -99
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +117 -117
  112. package/lib/components/TreeView/TreeView2.js +145 -145
  113. package/lib/hooks/timing.js +33 -33
  114. package/lib/hooks/useControllableState.js +33 -33
  115. package/lib/hooks/useCountdown.js +54 -55
  116. package/lib/hooks/useDigitInput.js +85 -84
  117. package/lib/hooks/useDismiss.js +55 -55
  118. package/lib/hooks/useElapsed.js +55 -55
  119. package/lib/hooks/useFloating.js +21 -21
  120. package/lib/hooks/useFocusTrap.js +67 -67
  121. package/lib/hooks/usePresence.js +33 -29
  122. package/lib/hooks/usePressToOpen.js +33 -33
  123. package/lib/hooks/useScrollLock.js +54 -55
  124. package/lib/hooks/useSelection.js +54 -48
  125. package/lib/index.js +67 -68
  126. package/lib/primitives/AspectRatio2.js +58 -54
  127. package/lib/primitives/BrandIcon.js +189 -158
  128. package/lib/primitives/ColorDot2.js +52 -51
  129. package/lib/primitives/CopyButton2.js +66 -64
  130. package/lib/primitives/CountBadge2.js +56 -56
  131. package/lib/primitives/Countdown2.js +36 -34
  132. package/lib/primitives/Delta2.js +41 -66
  133. package/lib/primitives/Elapsed.js +32 -32
  134. package/lib/primitives/FileIcon2.js +90 -90
  135. package/lib/primitives/Flag2.js +157 -157
  136. package/lib/primitives/IconStack2.js +60 -58
  137. package/lib/primitives/IconTile2.js +46 -48
  138. package/lib/primitives/Kbd2.js +51 -51
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +37 -35
  141. package/lib/primitives/MaskedText2.js +71 -75
  142. package/lib/primitives/Progress2.js +72 -72
  143. package/lib/primitives/RelativeTime.js +60 -64
  144. package/lib/primitives/SearchInput2.js +55 -56
  145. package/lib/primitives/SelectorButton2.js +69 -71
  146. package/lib/primitives/Spinner2.js +63 -59
  147. package/lib/primitives/StatusIcon2.js +66 -66
  148. package/lib/primitives/Swatch2.js +54 -56
  149. package/lib/primitives/Tooltip2.js +77 -77
  150. package/lib/primitives/Typography2.js +67 -67
  151. package/lib/primitives/formatCountdown.js +38 -41
  152. package/lib/primitives/formatElapsed.js +41 -40
  153. package/lib/primitives/formatRelativeTime.js +74 -48
  154. package/lib/primitives/hotkey.js +81 -81
  155. package/lib/primitives/index.js +220 -199
  156. package/lib/primitives/maskValue.js +53 -52
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  159. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  160. package/lib/types/primitives/index.d.ts +6 -2
  161. package/package.json +1 -1
@@ -1,128 +1,128 @@
1
1
  "use client";
2
- const e = d;
3
- (function(e, t) {
4
- let n = d, r = 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) {
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.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;
16
+ }
17
+ (function(e, n) {
18
+ let r = t, i = e();
5
19
  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());
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());
8
22
  } catch {
9
- r.push(r.shift());
23
+ i.push(i.shift());
10
24
  }
11
- })(i, 156791);
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() {
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() {
17
29
  return e;
18
- }, i();
30
+ }, n();
19
31
  }
20
- import { StatusIcon as a } from "../../primitives/StatusIcon2.js";
21
- import { cx as o } from "../../primitives/index.js";
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";
22
36
  /* 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) {
28
- let t = "", n = "";
29
- 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
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
31
- 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;
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 = {
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(156),
45
+ md: e(154),
46
+ lg: e(166)
47
47
  }, g = {
48
- sm: e(270),
49
- md: e(286),
50
- lg: e(299)
51
- }, _ = c({
52
- marker: e(278),
48
+ sm: e(153),
49
+ md: "body-sm",
50
+ lg: "body-md"
51
+ }, _ = l({
52
+ marker: "status",
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(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(298), "ds-step-list--" + a, g(268) + c, "ds-step-list--connector-" + 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[g(282)]((e, t) => f(v[g(289)], {
70
- value: u + t,
69
+ children: y[g(175)]((e, t) => f(v[g(181)], {
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: 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(278) ? void 0 : O,
83
- persistNumber: D === w(295)
82
+ number: D === w(183) ? void 0 : O,
83
+ persistNumber: D === w(182)
84
84
  }) : D, p("li", {
85
- className: o("ds-step-list__item", S),
85
+ className: s(w(155), S),
86
86
  style: C,
87
- "data-status": i,
88
- "aria-current": i === "active" ? w(294) : void 0,
87
+ "data-status": t,
88
+ "aria-current": t === w(172) ? w(161) : void 0,
89
89
  children: [f("span", {
90
- className: "ds-step-list__marker",
90
+ className: w(162),
91
91
  children: A
92
- }), p(r, {
92
+ }), p(a, {
93
93
  gap: 1,
94
- className: w(283),
94
+ className: w(167),
95
95
  children: [
96
- p(n, {
96
+ p(i, {
97
97
  gap: 3,
98
- justify: w(280),
99
- align: "baseline",
98
+ justify: w(151),
99
+ align: w(163),
100
100
  wrap: !1,
101
- children: [f(t, {
102
- as: w(284),
103
- variant: h[T[w(291)]],
104
- weight: w(269),
105
- className: w(281),
106
- children: s
107
- }), l != null && f(t, {
108
- as: w(284),
109
- variant: w(273),
110
- tone: w(285),
101
+ children: [f(r, {
102
+ as: w(157),
103
+ variant: h[T[w(173)]],
104
+ weight: "medium",
105
+ className: w(174),
106
+ children: n
107
+ }), l != null && f(r, {
108
+ as: "span",
109
+ variant: "caption",
110
+ tone: "tertiary",
111
111
  numeric: !0,
112
- className: "ds-step-list__meta",
112
+ className: w(148),
113
113
  children: l
114
114
  })]
115
115
  }),
116
- c != null && f(t, {
117
- as: w(297),
118
- variant: g[T[w(291)]],
119
- tone: "secondary",
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
- d != null && f(r, {
122
+ u != null && f(a, {
123
123
  gap: 1,
124
- className: w(279),
125
- children: d
124
+ className: w(159),
125
+ children: u
126
126
  })
127
127
  ]
128
128
  })]
@@ -1,100 +1,100 @@
1
1
  "use client";
2
- const e = i;
2
+ const e = a;
3
3
  (function(e, t) {
4
- let n = i, r = e();
4
+ let n = a, r = 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;
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
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(r, 551821);
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() {
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
+ 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) {
25
20
  let t = "", n = "";
26
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);
27
22
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
28
23
  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;
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;
29
+ }
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();
34
35
  }
35
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
36
36
  var s = {
37
- start: e(291),
38
- center: e(300),
39
- end: e(269)
37
+ start: e(509),
38
+ center: e(481),
39
+ end: e(487)
40
40
  }, c = {
41
41
  start: void 0,
42
- center: "center",
43
- end: e(276)
42
+ center: e(481),
43
+ end: e(482)
44
44
  };
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) => {
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
47
  let r = b;
48
- e.target !== e.currentTarget || e[r(297)] !== r(262) && e.key !== " " || (e[r(283)](), h?.(t, n));
48
+ e.target !== e.currentTarget || e[r(500)] !== r(501) && e[r(500)] !== " " || (e[r(504)](), h?.(t, n));
49
49
  };
50
- return a("div", {
51
- className: n(b(288), "ds-scroll", v),
50
+ return r(b(476), {
51
+ className: n(b(503), b(489), v),
52
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"),
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"),
55
55
  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),
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),
61
61
  style: {
62
- width: e[n(266)],
63
- textAlign: c[r]
62
+ width: e[n(486)],
63
+ textAlign: c[a]
64
64
  },
65
- children: e[n(290)] == null ? e[n(272)] : o(t, {
65
+ children: e[n(488)] == null ? e[n(477)] : i(t, {
66
66
  gap: 2,
67
67
  wrap: !1,
68
- justify: s[r],
69
- children: [e[n(290)], a(n(265), { children: e.header })]
68
+ justify: s[a],
69
+ children: [e[n(488)], r("span", { children: e.header })]
70
70
  })
71
- }, e[n(297)]);
71
+ }, e[n(500)]);
72
72
  }) }) }),
73
- o(b(285), { children: [l[b(268)]((e, n) => {
73
+ i(b(497), { children: [l.map((e, n) => {
74
74
  let l = u ? u(e, n) : n, d = m != null && m === l;
75
- return a("tr", {
75
+ return r("tr", {
76
76
  "data-selected": d || void 0,
77
77
  "aria-current": d || void 0,
78
78
  tabIndex: S ? 0 : void 0,
79
79
  onClick: h ? () => h(e, n) : void 0,
80
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,
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
85
  style: { textAlign: c[u] },
86
- children: f == null ? d : o(t, {
86
+ children: f == null ? d : i(t, {
87
87
  gap: 3,
88
88
  wrap: !1,
89
89
  justify: s[u],
90
- children: [f, a(l(265), { children: d })]
90
+ children: [f, r(l(483), { children: d })]
91
91
  })
92
- }, r[l(297)]);
92
+ }, o[l(500)]);
93
93
  })
94
94
  }, l);
95
- }), !l[b(273)] && g && a("tr", { children: a("td", {
96
- colSpan: r.length,
97
- className: b(293),
95
+ }), !l[b(502)] && g && r("tr", { children: r("td", {
96
+ colSpan: o[b(502)],
97
+ className: "ds-table__empty",
98
98
  children: g
99
99
  }) })] })
100
100
  ]
@@ -1,115 +1,115 @@
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) {
2
+ const e = i;
3
+ (function(e, t) {
4
+ let n = i, r = e();
5
+ for (;;) try {
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
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(n, 485115);
12
+ import { useControllableState as t } from "../../hooks/useControllableState.js";
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() {
16
+ return e;
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) {
7
24
  let t = "", n = "";
8
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);
9
26
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
10
27
  return decodeURIComponent(n);
11
- }, t.ulcyIz = {}, t.FIfLXP = !0);
28
+ }, i.nuAucc = {}, i.mMkfPh = !0);
12
29
  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;
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;
16
33
  }
17
- (function(e, n) {
18
- let r = t, i = e();
19
- 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());
22
- } catch {
23
- i.push(i.shift());
24
- }
25
- })(i, 959278);
26
- import { useControllableState as n } from "../../hooks/useControllableState.js";
27
- import { cx as r } from "../../primitives/index.js";
28
34
  /* 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() {
32
- return e;
33
- }, i();
34
- }
35
35
  import { createContext as a, useContext as o, useId as s, useLayoutEffect as c, useRef as l, useState as u } from "react";
36
36
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
37
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)], {
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, {
45
45
  value: {
46
- value: f,
47
- select: m,
48
- baseId: h,
49
- activation: o
46
+ value: l,
47
+ select: u,
48
+ baseId: f,
49
+ activation: a
50
50
  },
51
- children: d(u(443), {
52
- className: r("ds-tabs", l),
53
- children: c
51
+ children: d("div", {
52
+ className: r("ds-tabs", c),
53
+ children: o
54
54
  })
55
55
  });
56
56
  }
57
- function _({ children: n, variant: i = "underline", size: a = "md", fitted: o, "aria-label": s, className: p }) {
57
+ function _({ children: t, variant: n = "underline", size: a = "md", fitted: o, "aria-label": s, className: p }) {
58
58
  let h = e, { value: g, select: _, activation: v } = m(), y = l(null), [b, x] = u(null);
59
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);
60
+ let e = i, t = y[e(261)];
61
+ if (!t) return;
62
+ if (!t.querySelector(e(234))) {
63
+ let n = t[e(259)]("[role=\"tab\"]:not(:disabled)")?.[e(260)].value;
64
+ n !== void 0 && _(n);
65
65
  }
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
66
+ let n = () => {
67
+ let n = e, r = t[n(259)](n(234));
68
+ x(r ? {
69
+ left: r.offsetLeft,
70
+ width: r[n(244)]
71
71
  } : null);
72
72
  };
73
- r();
74
- let i = new ResizeObserver(r);
75
- return i[e(463)](n), () => i[e(457)]();
76
- }, [g, _]), f(h(443), {
73
+ n();
74
+ let r = new ResizeObserver(n);
75
+ return r[e(228)](t), () => r[e(217)]();
76
+ }, [g, _]), f(h(226), {
77
77
  ref: y,
78
- role: h(436),
78
+ role: h(258),
79
79
  "aria-label": s,
80
- className: r(h(437), h(460) + i, h(460) + a, o && h(433), p),
80
+ className: r(h(222), h(243) + n, h(243) + a, o && "ds-tablist--fitted", p),
81
81
  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)]));
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)]));
84
84
  },
85
- children: [b && d("span", {
86
- className: "ds-tablist__thumb",
85
+ children: [b && d(h(227), {
86
+ className: h(221),
87
87
  "aria-hidden": !0,
88
88
  style: {
89
- left: b.left,
90
- width: b[h(449)]
89
+ left: b[h(230)],
90
+ width: b[h(240)]
91
91
  }
92
- }), n]
92
+ }), t]
93
93
  });
94
94
  }
95
95
  function v({ value: t, children: n, icon: r, count: i, disabled: a }) {
96
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),
97
+ return f("button", {
98
+ type: "button",
99
+ role: o(232),
100
+ id: l + o(231) + h(t),
101
+ "aria-controls": l + o(225) + h(t),
102
102
  "aria-selected": u,
103
103
  tabIndex: u ? 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 && d(o(227), {
112
+ className: o(246),
113
113
  children: i
114
114
  })
115
115
  ]
@@ -118,14 +118,14 @@ function v({ value: t, children: n, icon: r, count: i, disabled: a }) {
118
118
  function y({ value: t, children: n, keepMounted: i, className: a }) {
119
119
  let o = e, { value: s, baseId: c } = m(), l = s === t;
120
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),
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
126
  className: r("ds-tabpanel", a),
127
127
  children: n
128
128
  });
129
129
  }
130
- g[e(471)] = _, g[e(454)] = v, g[e(461)] = y;
130
+ g[e(239)] = _, g.Tab = v, g[e(219)] = y;
131
131
  export { v as Tab, _ as TabList, y as TabPanel, g as Tabs };