@iamfiro/design 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/agents/app-shell/AGENTS.md +99 -1
  2. package/lib/components/Accordion/Accordion2.js +93 -93
  3. package/lib/components/ActionBar/ActionBar2.js +44 -40
  4. package/lib/components/Alert/Alert2.js +64 -64
  5. package/lib/components/AppShell/AppShell2.js +73 -66
  6. package/lib/components/AreaChart/AreaChart.js +49 -47
  7. package/lib/components/BarChart/BarChart2.js +107 -107
  8. package/lib/components/BarList/BarList2.js +99 -99
  9. package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
  10. package/lib/components/Calendar/Calendar2.js +164 -164
  11. package/lib/components/Calendar/DatePicker2.js +76 -77
  12. package/lib/components/Calendar/date.js +49 -70
  13. package/lib/components/Card/Card2.js +104 -77
  14. package/lib/components/CardFrame/CardFrame2.js +46 -42
  15. package/lib/components/Chart/ChartParts.js +73 -73
  16. package/lib/components/Chart/chart2.js +53 -53
  17. package/lib/components/Chart/useChartInteraction.js +49 -49
  18. package/lib/components/ChatBubble/ChatBubble2.js +118 -118
  19. package/lib/components/ChatBubble/formatChatTime.js +42 -41
  20. package/lib/components/ChatComposer/ChatComposer2.js +102 -102
  21. package/lib/components/CodeBlock/CodeBlock2.js +51 -51
  22. package/lib/components/CodeBlock/highlight.js +85 -85
  23. package/lib/components/ColorPicker/ColorPicker2.js +373 -374
  24. package/lib/components/ColorPicker/color.js +94 -94
  25. package/lib/components/ColorPicker/presets.js +47 -46
  26. package/lib/components/Combobox/Combobox2.js +118 -117
  27. package/lib/components/CommandMenu/CommandMenu.js +121 -122
  28. package/lib/components/Comment/Comment2.js +56 -81
  29. package/lib/components/ContextMenu/ContextMenu2.js +91 -93
  30. package/lib/components/DataGrid/DataGrid2.js +845 -845
  31. package/lib/components/DataGrid/GridPopover.js +97 -97
  32. package/lib/components/DataGrid/anchor.js +34 -36
  33. package/lib/components/DataGrid/model.js +299 -299
  34. package/lib/components/DataGrid/panels.js +393 -393
  35. package/lib/components/DataGrid/typeMeta.js +53 -53
  36. package/lib/components/DataGrid/types.js +22 -22
  37. package/lib/components/DescriptionList/DescriptionList2.js +57 -57
  38. package/lib/components/Dialog/AlertDialog.js +56 -56
  39. package/lib/components/Dialog/Dialog2.js +68 -69
  40. package/lib/components/Dialog/modal.js +61 -57
  41. package/lib/components/Drawer/Drawer2.js +161 -161
  42. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
  43. package/lib/components/DropdownMenu/menuCore.js +42 -68
  44. package/lib/components/Dropzone/Dropzone2.js +81 -81
  45. package/lib/components/EmptyState/EmptyState2.js +55 -54
  46. package/lib/components/FileChip/FileChip2.js +39 -63
  47. package/lib/components/FileUpload/FileUpload.js +157 -156
  48. package/lib/components/FilterChips/FilterChips2.js +51 -51
  49. package/lib/components/FunnelChart/FunnelChart2.js +171 -171
  50. package/lib/components/FunnelChart/funnel.js +55 -57
  51. package/lib/components/Highlight/Highlight2.js +48 -48
  52. package/lib/components/HoverCard/HoverCard.js +59 -59
  53. package/lib/components/InlineDiff/InlineDiff2.js +110 -111
  54. package/lib/components/InlineDiff/diff.js +89 -89
  55. package/lib/components/InlineDiff/useDiffReview.js +63 -65
  56. package/lib/components/Kanban/Kanban2.js +424 -425
  57. package/lib/components/Kanban/KanbanCard.js +98 -73
  58. package/lib/components/Kanban/move.js +52 -49
  59. package/lib/components/LineChart/LineChart2.js +222 -222
  60. package/lib/components/List/List2.js +60 -59
  61. package/lib/components/Listbox/Listbox2.js +117 -117
  62. package/lib/components/Marker/Marker2.js +58 -59
  63. package/lib/components/Menubar/Menubar2.js +121 -123
  64. package/lib/components/MultiSelect/MultiSelect2.js +115 -115
  65. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
  66. package/lib/components/NoticeStack/NoticeStack2.js +98 -98
  67. package/lib/components/NumberStepper/NumberStepper2.js +67 -66
  68. package/lib/components/OtpInput/OtpInput2.js +93 -93
  69. package/lib/components/Pagination/Pagination2.js +87 -87
  70. package/lib/components/Pagination/paginationRange.js +39 -37
  71. package/lib/components/PhoneInput/PhoneInput.js +78 -78
  72. package/lib/components/PieChart/PieChart2.js +117 -117
  73. package/lib/components/PieChart/arc.js +57 -58
  74. package/lib/components/PieChart/useArcTween.js +45 -40
  75. package/lib/components/Popover/Popover2.js +73 -74
  76. package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
  77. package/lib/components/Rating/Rating2.js +95 -95
  78. package/lib/components/Resizable/Resizable2.js +86 -86
  79. package/lib/components/Resizable/layout.js +73 -73
  80. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
  81. package/lib/components/ScatterChart/ScatterChart2.js +172 -172
  82. package/lib/components/ScatterChart/scatter.js +55 -56
  83. package/lib/components/ScrollArea/ScrollArea2.js +130 -131
  84. package/lib/components/Select/Select2.js +86 -85
  85. package/lib/components/Sidebar/Sidebar2.js +92 -86
  86. package/lib/components/Sidebar/rail.js +43 -0
  87. package/lib/components/Skeleton/Skeleton2.js +60 -61
  88. package/lib/components/Slider/Slider2.js +73 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
  90. package/lib/components/SparkChart/SparkChart2.js +140 -141
  91. package/lib/components/SparkChart/spark.js +50 -48
  92. package/lib/components/Sparkbar/Sparkbar2.js +56 -56
  93. package/lib/components/SplitView/SplitView2.js +47 -46
  94. package/lib/components/Stat/Stat2.js +61 -61
  95. package/lib/components/StepList/StepList2.js +76 -76
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +85 -85
  98. package/lib/components/TagInput/TagInput2.js +217 -218
  99. package/lib/components/TimePicker/TimePicker2.js +217 -216
  100. package/lib/components/TimePicker/time.js +60 -58
  101. package/lib/components/Timeline/Timeline2.js +181 -181
  102. package/lib/components/Timeline/scale.js +60 -65
  103. package/lib/components/Toast/Toaster.js +146 -148
  104. package/lib/components/Toast/store.js +85 -85
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  106. package/lib/components/Toolbar/Toolbar2.js +120 -121
  107. package/lib/components/Tracker/Tracker2.js +79 -79
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
  109. package/lib/components/TreeView/TreeView2.js +162 -163
  110. package/lib/hooks/timing.js +32 -35
  111. package/lib/hooks/useControllableState.js +35 -35
  112. package/lib/hooks/useCountdown.js +53 -52
  113. package/lib/hooks/useDigitInput.js +82 -81
  114. package/lib/hooks/useDismiss.js +48 -48
  115. package/lib/hooks/useElapsed.js +40 -43
  116. package/lib/hooks/useFloating.js +47 -47
  117. package/lib/hooks/useFocusTrap.js +45 -69
  118. package/lib/hooks/usePresence.js +49 -50
  119. package/lib/hooks/usePressToOpen.js +43 -43
  120. package/lib/hooks/useScrollLock.js +45 -43
  121. package/lib/hooks/useSelection.js +44 -46
  122. package/lib/index.js +105 -106
  123. package/lib/primitives/AspectRatio2.js +57 -56
  124. package/lib/primitives/BrandIcon.js +177 -177
  125. package/lib/primitives/ColorDot2.js +44 -48
  126. package/lib/primitives/CopyButton2.js +54 -55
  127. package/lib/primitives/CountBadge2.js +45 -48
  128. package/lib/primitives/Countdown2.js +35 -37
  129. package/lib/primitives/Delta2.js +41 -41
  130. package/lib/primitives/Elapsed.js +43 -41
  131. package/lib/primitives/FileIcon2.js +94 -94
  132. package/lib/primitives/Flag2.js +97 -97
  133. package/lib/primitives/IconStack2.js +53 -55
  134. package/lib/primitives/IconTile2.js +45 -41
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +66 -66
  137. package/lib/primitives/Link2.js +42 -47
  138. package/lib/primitives/MaskedText2.js +47 -69
  139. package/lib/primitives/Progress2.js +71 -71
  140. package/lib/primitives/RelativeTime.js +47 -43
  141. package/lib/primitives/SearchInput2.js +70 -66
  142. package/lib/primitives/SelectorButton2.js +70 -67
  143. package/lib/primitives/Spinner2.js +58 -59
  144. package/lib/primitives/StatusIcon2.js +70 -70
  145. package/lib/primitives/Swatch2.js +57 -55
  146. package/lib/primitives/Tooltip2.js +78 -78
  147. package/lib/primitives/Typography2.js +54 -54
  148. package/lib/primitives/formatCountdown.js +37 -38
  149. package/lib/primitives/formatElapsed.js +46 -45
  150. package/lib/primitives/formatRelativeTime.js +43 -69
  151. package/lib/primitives/hotkey.js +66 -66
  152. package/lib/primitives/index.js +152 -152
  153. package/lib/primitives/maskValue.js +30 -32
  154. package/lib/style.css +1 -1
  155. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  156. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  157. package/lib/types/components/index.d.ts +1 -0
  158. package/package.json +1 -1
@@ -1,121 +1,122 @@
1
1
  "use client";
2
- const e = t;
3
- (function(e, n) {
4
- let r = t, i = e();
5
- for (;;) try {
6
- if (-parseInt(r(388)) / 1 * (-parseInt(r(401)) / 2) + -parseInt(r(398)) / 3 * (-parseInt(r(374)) / 4) + parseInt(r(379)) / 5 + -parseInt(r(411)) / 6 * (parseInt(r(402)) / 7) + -parseInt(r(376)) / 8 + -parseInt(r(395)) / 9 * (parseInt(r(389)) / 10) + -parseInt(r(408)) / 11 * (-parseInt(r(407)) / 12) == n) break;
7
- i.push(i.shift());
8
- } catch {
9
- i.push(i.shift());
10
- }
11
- })(d, 757256);
12
- function t(e, n) {
13
- e -= 373;
14
- let r = d(), i = r[e];
15
- t.ouPFgA === void 0 && (t.ydYIDY = function(e) {
2
+ function e(t, n) {
3
+ t -= 183;
4
+ let r = d(), i = r[t];
5
+ e.ChAInn === void 0 && (e.BXQkFN = function(e) {
16
6
  let t = "", n = "";
17
7
  for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
18
8
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
19
9
  return decodeURIComponent(n);
20
- }, t.fQSWMJ = {}, t.ouPFgA = !0);
10
+ }, e.kOnYyO = {}, e.ChAInn = !0);
21
11
  let a = r[0];
22
- t.IAXZqX !== a && (t.fQSWMJ = {}, t.IAXZqX = a);
23
- let o = t.fQSWMJ[e];
24
- return o === void 0 ? (i = t.ydYIDY(i), t.fQSWMJ[e] = i) : i = o, i;
12
+ e.pslDhO !== a && (e.kOnYyO = {}, e.pslDhO = a);
13
+ let o = e.kOnYyO[t];
14
+ return o === void 0 ? (i = e.BXQkFN(i), e.kOnYyO[t] = i) : i = o, i;
25
15
  }
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
19
+ for (;;) try {
20
+ if (-parseInt(r(191)) / 1 * (parseInt(r(205)) / 2) + -parseInt(r(200)) / 3 * (-parseInt(r(224)) / 4) + -parseInt(r(201)) / 5 * (parseInt(r(192)) / 6) + parseInt(r(188)) / 7 * (-parseInt(r(227)) / 8) + parseInt(r(218)) / 9 + -parseInt(r(206)) / 10 * (-parseInt(r(207)) / 11) + -parseInt(r(196)) / 12 * (-parseInt(r(214)) / 13) == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(d, 542959);
26
26
  import { cx as n } from "../../primitives/index.js";
27
27
  /* empty css */
28
28
  import { useLayoutEffect as r, useRef as i } from "react";
29
29
  import { ChevronRight as a } from "lucide-react";
30
30
  import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
31
- function l({ children: t, variant: r = e(393), density: i = e(385), label: a, animated: o, className: l, style: u, "aria-label": d }) {
32
- let f = e;
33
- return c(f(414), {
34
- className: n("ds-list", f(405) + r, "ds-list--" + i, o && f(391), l),
31
+ function l({ children: e, variant: r = t(228), density: i = t(202), label: a, animated: o, className: l, style: u, "aria-label": d }) {
32
+ let f = t;
33
+ return c(f(187), {
34
+ className: n(f(217), f(190) + r, f(190) + i, o && f(186), l),
35
35
  style: u,
36
- children: [a && s(f(414), {
37
- className: f(406),
36
+ children: [a && s("div", {
37
+ className: f(225),
38
38
  children: a
39
39
  }), s("ul", {
40
- className: f(375),
40
+ className: f(203),
41
41
  "aria-label": d,
42
- children: t
42
+ children: e
43
43
  })]
44
44
  });
45
45
  }
46
- function u({ title: l, description: u, leading: d, meta: f, trailing: p, href: m, onClick: h, chevron: g, selected: _, disabled: v, align: y = e(394), leaving: b, variant: x = e(385), progress: S, progressTone: C = "accent", className: w }) {
47
- let T = e, E = i(null);
46
+ function u({ title: l, description: u, leading: d, meta: f, trailing: p, href: m, onClick: h, chevron: g, selected: _, disabled: v, align: y = t(185), leaving: b, variant: x = t(202), progress: S, progressTone: C = "accent", className: w }) {
47
+ let T = t, E = i(null);
48
48
  r(() => {
49
- let e = t, n = E[e(378)];
49
+ let t = e, n = E[t(220)];
50
50
  if (!b || !n) return;
51
- n.style[e(399)] = n.offsetHeight + "px";
51
+ n[t(208)][t(195)] = n[t(193)] + "px";
52
52
  let r = requestAnimationFrame(() => {
53
- let t = e;
54
- n[t(413)].height = t(410);
53
+ let e = t;
54
+ n.style[e(195)] = "0px";
55
55
  });
56
56
  return () => {
57
- cancelAnimationFrame(r), n.style.height = "";
57
+ let e = t;
58
+ cancelAnimationFrame(r), n[e(208)][e(195)] = "";
58
59
  };
59
60
  }, [b]);
60
61
  let D = !v && (!!m || !!h), O = c(o, { children: [
61
- d && s(T(403), {
62
- className: T(412),
62
+ d && s(T(213), {
63
+ className: T(226),
63
64
  children: d
64
65
  }),
65
66
  c("span", {
66
- className: T(380),
67
- children: [s(T(403), {
68
- className: T(397),
67
+ className: T(209),
68
+ children: [s("span", {
69
+ className: T(183),
69
70
  children: l
70
- }), u && s(T(403), {
71
- className: "ds-list-item__desc",
71
+ }), u && s("span", {
72
+ className: T(222),
72
73
  children: u
73
74
  })]
74
75
  }),
75
- f && s(T(403), {
76
- className: "ds-list-item__meta",
76
+ f && s(T(213), {
77
+ className: T(221),
77
78
  children: f
78
79
  })
79
80
  ] });
80
81
  return c("li", {
81
82
  ref: E,
82
- className: n(T(377), D && T(382), y === T(404) && T(400), x === T(396) && "ds-list-item--raised", S !== void 0 && "ds-list-item--progress", w),
83
+ className: n("ds-list-item", D && T(204), y === T(198) && T(211), x === T(197) && T(219), S !== void 0 && T(210), w),
83
84
  "data-selected": _ || void 0,
84
85
  "data-disabled": v || void 0,
85
86
  "data-leaving": b || void 0,
86
87
  inert: b || void 0,
87
88
  children: [
88
- S !== void 0 && s(T(403), {
89
- className: "ds-list-item__fill",
89
+ S !== void 0 && s(T(213), {
90
+ className: T(215),
90
91
  "data-tone": C,
91
92
  "aria-hidden": !0,
92
- style: { width: Math[T(386)](0, Math.min(1, S)) * 100 + "%" }
93
+ style: { width: Math.max(0, Math[T(194)](1, S)) * 100 + "%" }
93
94
  }),
94
95
  m && !v ? s("a", {
95
96
  href: m,
96
- className: T(392),
97
- "aria-current": _ ? "page" : void 0,
97
+ className: T(216),
98
+ "aria-current": _ ? T(189) : void 0,
98
99
  onClick: h,
99
100
  children: O
100
- }) : h && !v ? s(T(414), {
101
- role: T(373),
101
+ }) : h && !v ? s(T(187), {
102
+ role: "button",
102
103
  tabIndex: 0,
103
- className: T(392),
104
+ className: "ds-list-item__main",
104
105
  "aria-pressed": _,
105
106
  onClick: h,
106
107
  onKeyDown: (e) => {
107
108
  let t = T;
108
- (e[t(390)] === t(384) || e[t(390)] === " ") && (e[t(383)](), h?.());
109
+ (e[t(212)] === t(223) || e.key === " ") && (e.preventDefault(), h?.());
109
110
  },
110
111
  children: O
111
- }) : s(T(414), {
112
- className: T(392),
112
+ }) : s("div", {
113
+ className: T(216),
113
114
  children: O
114
115
  }),
115
- (p || g) && c(T(403), {
116
- className: T(381),
116
+ (p || g) && c(T(213), {
117
+ className: T(184),
117
118
  children: [p, g && s(a, {
118
- className: T(409),
119
+ className: "ds-list-item__chevron",
119
120
  "aria-hidden": !0
120
121
  })]
121
122
  })
@@ -123,10 +124,10 @@ function u({ title: l, description: u, leading: d, meta: f, trailing: p, href: m
123
124
  });
124
125
  }
125
126
  function d() {
126
- let e = /* @__PURE__ */ "y3vYCMvUDa.mJi2mtC1nvrWDeTMwG.zhmTBgLZDc1PDgvTx190zxH0.zhmTBgLZDc1PDgvTx190CMfPBgLUzW.zhmTBgLZDc1PDgvTls1PBNrLCMfJDgL2zq.ChjLDMvUDerLzMf1Bhq.rw50zxi.zgvMyxvSDa.Bwf4.sxrLBq.owLdB3bHDq.mtbhsxnMqLG.A2v5.zhmTBgLZDc0Tyw5PBwf0zwq.zhmTBgLZDc1PDgvTx19TywLU.CgXHAw4.y2vUDgvY.nZa2ndCZs3btwxzz.CMfPC2vK.zhmTBgLZDc1PDgvTx190AxrSzq.odDSwxjTBvq.AgvPz2H0.zhmTBgLZDc1PDgvTls1ZDgfYDa.nJC3mZrYs0jywxq.ndC3otG4Cfr2qLjt.C3bHBG.C3rHCNq.zhmTBgLZDc0T.zhmTBgLZDf9FBgfIzwW.nJbjELnyvhq.ndq2nZK0n2zhC2vNqG.zhmTBgLZDc1PDgvTx19JAgv2CM9U.mhb4.otzuAhngzM8.zhmTBgLZDc1PDgvTx19SzwfKAw5N.C3r5Bgu.zgL2.yNv0Dg9U.mZa1nZjABen1zgG.zhmTBgLZDf9FCM93CW.ody1mteXmKHZENbivW.zhmTBgLZDc1PDgvT".split(".");
127
+ let e = /* @__PURE__ */ "nM5Zswngua.B2zMC2v0sgvPz2H0.BwLU.AgvPz2H0.ntC5ode2zKLdtLvg.CMfPC2vK.C3rHCNq.sxrLBq.nZv0yuXnwvq.mJGWnZm0nu9Vu0TntG.zgvMyxvSDa.zhmTBgLZDf9FCM93CW.zhmTBgLZDc1PDgvTls1PBNrLCMfJDgL2zq.mZyYndHeqwn2ufG.mJCWALrjzKP1.mJu3mdu5BMzlExHf.C3r5Bgu.zhmTBgLZDc1PDgvTx190zxH0.zhmTBgLZDc1PDgvTls1WCM9NCMvZCW.zhmTBgLZDc1PDgvTls1ZDgfYDa.A2v5.C3bHBG.otfUCK9qD0y.zhmTBgLZDc1PDgvTx19MAwXS.zhmTBgLZDc1PDgvTx19TywLU.zhmTBgLZDa.oty2ntq3og9NAgDWrq.zhmTBgLZDc1PDgvTls1YywLZzwq.y3vYCMvUDa.zhmTBgLZDc1PDgvTx19TzxrH.zhmTBgLZDc1PDgvTx19KzxnJ.rw50zxi.mZG3mdHNqxj5u3O.zhmTBgLZDf9FBgfIzwW.zhmTBgLZDc1PDgvTx19SzwfKAw5N.mta0sNbiq0vl.CgXHAw4.zhmTBgLZDc1PDgvTx190AxrSzq.zhmTBgLZDc1PDgvTx190CMfPBgLUzW.y2vUDgvY.zhmTBgLZDc0Tyw5PBwf0zwq.zgL2.ntm4mtmYu0f2sxLv.CgfNzq.zhmTBgLZDc0T.mtbZBeTMB1u".split(".");
127
128
  return d = function() {
128
129
  return e;
129
130
  }, d();
130
131
  }
131
- l[e(387)] = u;
132
+ l[t(199)] = u;
132
133
  export { l as List, u as ListItem };
@@ -1,163 +1,163 @@
1
1
  "use client";
2
- const e = n;
2
+ const e = g;
3
3
  (function(e, t) {
4
- let r = n, i = e();
4
+ let n = g, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(r(504)) / 1 + parseInt(r(475)) / 2 + -parseInt(r(512)) / 3 + -parseInt(r(502)) / 4 * (-parseInt(r(479)) / 5) + parseInt(r(489)) / 6 * (parseInt(r(509)) / 7) + parseInt(r(486)) / 8 + -parseInt(r(494)) / 9 == t) break;
7
- i.push(i.shift());
6
+ if (-parseInt(n(536)) / 1 + parseInt(n(534)) / 2 + parseInt(n(499)) / 3 * (-parseInt(n(522)) / 4) + -parseInt(n(515)) / 5 * (parseInt(n(500)) / 6) + -parseInt(n(505)) / 7 * (-parseInt(n(529)) / 8) + parseInt(n(530)) / 9 + -parseInt(n(508)) / 10 * (-parseInt(n(513)) / 11) == t) break;
7
+ r.push(r.shift());
8
8
  } catch {
9
- i.push(i.shift());
9
+ r.push(r.shift());
10
10
  }
11
- })(o, 840095);
11
+ })(h, 366922);
12
12
  import { cx as t } from "../../primitives/index.js";
13
- function n(e, t) {
14
- e -= 471;
15
- let r = o(), i = r[e];
16
- n.uljGqv === void 0 && (n.rHdcMF = function(e) {
17
- let t = "", n = "";
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);
19
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
- return decodeURIComponent(n);
21
- }, n.sqpuku = {}, n.uljGqv = !0);
22
- let a = r[0];
23
- n.OwQksp !== a && (n.sqpuku = {}, n.OwQksp = a);
24
- let s = n.sqpuku[e];
25
- return s === void 0 ? (i = n.rHdcMF(i), n.sqpuku[e] = i) : i = s, i;
26
- }
27
- import { useFloating as r } from "../../hooks/useFloating.js";
13
+ import { useFloating as n } from "../../hooks/useFloating.js";
28
14
  /* empty css */
29
- import { forwardRef as i, useEffect as a } from "react";
30
- function o() {
31
- let e = /* @__PURE__ */ "lw9WDc0.mtyYnJmWEgTtDMjc.C2nYB2XSsw50B1zPzxC.zhmTB3b0Aw9Ux19JAgvJAW.y2XVC2vK.zhmTCg9WB3zLCG.zhmTB3b0Aw9Ux19JAgvJAY1IB3G.BgvUz3rO.yM9KEq.mJHIC0fKqKG.BMvHCMvZDa.mtu0ntm3nK93u3PztG.AwnVBG.zhmTBgLZDgjVEf9Fzw1WDhK.zhmTB3b0Aw9Ux19TzxrH.z2v0rwXLBwvUDej5swq.nJnhBw5qvxy.zM9YrwfJAa.zhmTB3b0Aw9Ux190zxH0.mZeZnZq0ogf3D1reuq.6RkW6Ro86RcaioYxHUYwToYALa.zhmTB3b0Aw9UigrZlw9WDgLVBI0Tywn0Aw9U.ywn0AxzL.zgLZywjSzwq.C2vSzwn0zwq.C3bHBG.mJGXmdmXmMvSrezPtW.zhmTB3b0Aw9Ux19KzxnJ.BgfIzwW.zhmTBgLZDgjVEf9Fz3jVDxa.mtiYmdm1u0fmDLbT.Bwv0yq.BgLZDgjVEa.ChjLDMvUDerLzMf1Bhq.zhmTC2nYB2XS.B3b0Aw9U.z3jVDxa.nJaWmdeZnNzNB1nTsW.zgL2.zgvZy3jPChrPB24.nZq4odKWCuvhDePh.ChvZAa.DMfSDwu.B25tzwXLy3q".split(".");
32
- return o = function() {
33
- return e;
34
- }, o();
35
- }
36
- import { Check as s } from "lucide-react";
37
- import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
38
- import { createPortal as d } from "react-dom";
39
- var f = (t, n) => t + e(493) + n;
40
- function p(t, n, r) {
41
- let i = e, a = t[i(500)], o = n < 0 ? r === 1 ? -1 : a : n;
42
- for (let e = 0; e < a; e++) if (o = ((o + r) % a + a) % a, !t[o][i(472)]) return o;
15
+ import { forwardRef as r, useEffect as i } from "react";
16
+ import { Check as a } from "lucide-react";
17
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
18
+ import { createPortal as l } from "react-dom";
19
+ var u = (e, t) => e + "-opt-" + t;
20
+ function d(e, t, n) {
21
+ let r = e.length, i = t < 0 ? n === 1 ? -1 : r : t;
22
+ for (let t = 0; t < r; t++) if (i = ((i + n) % r + r) % r, !e[i].disabled) return i;
43
23
  return -1;
44
24
  }
45
- var m = (t) => t.findIndex((t) => !t[e(472)]);
46
- function h(t) {
25
+ var f = (t) => t.findIndex((t) => !t[e(501)]);
26
+ function p(t) {
47
27
  let n = e;
48
- for (let e = t[n(500)] - 1; e >= 0; e--) if (!t[e][n(472)]) return e;
28
+ for (let e = t[n(511)] - 1; e >= 0; e--) if (!t[e].disabled) return e;
49
29
  return -1;
50
30
  }
51
- var g = i(function({ anchorRef: n, closing: i, className: a, children: o, ...s }, c) {
52
- let u = e, { style: f, side: p } = r(n, !0, s);
53
- return d(l("div", {
54
- ref: c,
55
- className: t(u(498), u(483), a),
31
+ var m = r(function({ anchorRef: r, closing: i, className: a, children: o, ...c }, u) {
32
+ let d = e, { style: f, side: p } = n(r, !0, c);
33
+ return l(s(d(502), {
34
+ ref: u,
35
+ className: t(d(507), d(526), a),
56
36
  "data-side": p,
57
- "data-state": i ? u(497) : "open",
37
+ "data-state": d(i ? 498 : 523),
58
38
  style: f,
59
- onPointerDown: (e) => e[u(482)](),
39
+ onPointerDown: (e) => e[d(520)](),
60
40
  children: o
61
- }), document[u(501)]);
41
+ }), document[d(535)]);
62
42
  });
63
- function _({ id: t, options: r, activeIndex: i, isSelected: o, onSelect: s, onActiveChange: c, multiple: d, renderOption: p, emptyText: m = e(513), action: h, style: g, "aria-label": _ }) {
43
+ function h() {
44
+ let e = /* @__PURE__ */ "m0z0tNPnqq.mtC0zKjWAKL3.zgLZywjSzwq.zgL2.zhmTB3b0Aw9U.C2vSzwn0zwq.n2ndBNneta.zhmTBgLZDgjVEf9Fzw1WDhK.zhmTCg9WB3zLCG.nti2mtaYmhnjCur1vW.zhmTB3b0Aw9Ux19Py29U.BgLZDgjVEa.BgvUz3rO.z3jVDxa.mtfmuKTsDgC.zhmTB3b0Aw9Ux190zxH0.otK0mZbwrhjyuwO.BMvHCMvZDa.AwnVBG.zgvZy3jPChrPB24.ChjLC2vUDgf0Aw9U.ChjLDMvUDerLzMf1Bhq.C3bHBG.mJG5nZC2ngLewfrHBa.B3bLBG.zhmTB3b0Aw9Ux19JAgvJAY1IB3G.ChvZAa.zhmTC2nYB2XS.z2v0rwXLBwvUDej5swq.DMfSDwu.mZqZmteXmMLcsLjrzq.ntCWodGXn2vrEuHRsG.Bwv0yq.ywn0AxzL.zhmTB3b0Aw9Ux19SywjLBa.mJm5nJe2teHwrevl.yM9KEq.ndeWntvwD0rIt2O.6RkW6Ro86RcaioYxHUYwToYALa.B25tzwXLy3q.zhmTBgLZDgjVEa.zhmTBgLZDgjVEf9Fz3jVDxa.y2XVC2vK".split(".");
45
+ return h = function() {
46
+ return e;
47
+ }, h();
48
+ }
49
+ function g(e, t) {
50
+ e -= 495;
51
+ let n = h(), r = n[e];
52
+ g.vDKhya === void 0 && (g.avNhJs = function(e) {
53
+ let t = "", n = "";
54
+ 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);
55
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
56
+ return decodeURIComponent(n);
57
+ }, g.aqGFvE = {}, g.vDKhya = !0);
58
+ let i = n[0];
59
+ g.PrbZSP !== i && (g.aqGFvE = {}, g.PrbZSP = i);
60
+ let a = g.aqGFvE[e];
61
+ return a === void 0 ? (r = g.avNhJs(r), g.aqGFvE[e] = r) : r = a, r;
62
+ }
63
+ function _({ id: t, options: n, activeIndex: r, isSelected: a, onSelect: o, onActiveChange: l, multiple: d, renderOption: f, emptyText: p = e(537), action: m, style: h, "aria-label": _ }) {
64
64
  let y = e;
65
- a(() => {
66
- let e = n;
67
- i < 0 || document[e(508)](f(t, i))?.[e(495)]({ block: e(503) });
68
- }, [t, i]);
65
+ i(() => {
66
+ let e = g;
67
+ r < 0 || document[e(527)](u(t, r))?.scrollIntoView({ block: e(516) });
68
+ }, [t, r]);
69
69
  let b = [];
70
- r[y(510)]((e, n) => {
71
- let a = y;
72
- e[a(485)] && e[a(485)] !== r[n - 1]?.[a(485)] && b[a(490)](l(a(487), {
73
- className: a(478),
74
- role: "presentation",
75
- children: e[a(485)]
76
- }, "g-" + e[a(485)]));
77
- let u = {
78
- active: n === i,
79
- selected: o(e[a(491)]),
80
- disabled: !!e[a(472)]
70
+ n.forEach((e, i) => {
71
+ let c = g;
72
+ e[c(512)] && e.group !== n[i - 1]?.[c(512)] && b[c(525)](s("div", {
73
+ className: c(497),
74
+ role: c(519),
75
+ children: e.group
76
+ }, "g-" + e[c(512)]));
77
+ let p = {
78
+ active: i === r,
79
+ selected: a(e.value),
80
+ disabled: !!e.disabled
81
81
  };
82
- b[a(490)](l("div", {
83
- id: f(t, n),
84
- "data-index": n,
85
- role: a(484),
86
- "aria-selected": u[a(473)],
87
- "aria-disabled": u[a(472)] || void 0,
88
- "data-active": u[a(471)] || void 0,
89
- className: "ds-option",
90
- onPointerDown: (e) => e.preventDefault(),
91
- onPointerMove: () => !u[a(472)] && !u[a(471)] && c(n),
92
- onClick: () => !u[a(472)] && s(e),
93
- children: p ? p(e, u) : l(v, {
82
+ b[c(525)](s("div", {
83
+ id: u(t, i),
84
+ "data-index": i,
85
+ role: "option",
86
+ "aria-selected": p.selected,
87
+ "aria-disabled": p.disabled || void 0,
88
+ "data-active": p.active || void 0,
89
+ className: c(503),
90
+ onPointerDown: (e) => e[c(520)](),
91
+ onPointerMove: () => !p.disabled && !p[c(532)] && l(i),
92
+ onClick: () => !p[c(501)] && o(e),
93
+ children: f ? f(e, p) : s(v, {
94
94
  option: e,
95
- state: u,
95
+ state: p,
96
96
  multiple: d
97
97
  })
98
- }, e.value));
98
+ }, e[c(528)]));
99
99
  });
100
- let x = r[y(500)];
101
- return u("div", {
100
+ let x = n[y(511)];
101
+ return c("div", {
102
102
  id: t,
103
- role: y(481),
103
+ role: y(510),
104
104
  "aria-label": _,
105
105
  "aria-multiselectable": d || void 0,
106
- className: "ds-listbox",
107
- style: g,
106
+ className: y(496),
107
+ style: h,
108
108
  children: [
109
109
  b,
110
- h && u(y(487), {
111
- id: f(t, x),
112
- role: y(484),
110
+ m && c(y(502), {
111
+ id: u(t, x),
112
+ role: "option",
113
113
  "aria-selected": !1,
114
- "data-active": i === x || void 0,
115
- className: y(514),
116
- onPointerDown: (e) => e[y(482)](),
117
- onPointerMove: () => i !== x && c(x),
118
- onClick: h[y(492)],
119
- children: [h[y(505)] && l(y(474), {
114
+ "data-active": r === x || void 0,
115
+ className: "ds-option ds-option--action",
116
+ onPointerDown: (e) => e[y(520)](),
117
+ onPointerMove: () => r !== x && l(x),
118
+ onClick: m[y(495)],
119
+ children: [m[y(517)] && s(y(521), {
120
120
  className: "ds-option__icon",
121
- children: h[y(505)]
122
- }), l(y(474), {
123
- className: y(511),
124
- children: h.label
121
+ children: m[y(517)]
122
+ }), s(y(521), {
123
+ className: y(514),
124
+ children: m.label
125
125
  })]
126
126
  }),
127
- !r[y(500)] && !h && l(y(487), {
127
+ !n[y(511)] && !m && s("div", {
128
128
  className: y(506),
129
- children: m
129
+ children: p
130
130
  })
131
131
  ]
132
132
  });
133
133
  }
134
134
  function v({ option: t, state: n, multiple: r }) {
135
135
  let i = e;
136
- return u(c, { children: [
137
- r && l("span", {
138
- className: i(499),
139
- "data-checked": n[i(473)] || void 0,
140
- children: l(s, {})
136
+ return c(o, { children: [
137
+ r && s(i(521), {
138
+ className: i(524),
139
+ "data-checked": n[i(504)] || void 0,
140
+ children: s(a, {})
141
141
  }),
142
- t[i(505)] && l("span", {
143
- className: "ds-option__icon",
144
- children: t[i(505)]
142
+ t.icon && s(i(521), {
143
+ className: i(509),
144
+ children: t[i(517)]
145
145
  }),
146
- u(i(474), {
147
- className: "ds-option__text",
148
- children: [l("span", {
149
- className: "ds-option__label",
150
- children: t[i(477)]
151
- }), t[i(488)] && l("span", {
152
- className: i(476),
153
- children: t[i(488)]
146
+ c("span", {
147
+ className: i(514),
148
+ children: [s(i(521), {
149
+ className: i(533),
150
+ children: t.label
151
+ }), t[i(518)] && s("span", {
152
+ className: "ds-option__desc",
153
+ children: t[i(518)]
154
154
  })]
155
155
  }),
156
- t[i(480)] && l(i(474), {
157
- className: i(507),
158
- children: t.meta
156
+ t[i(531)] && s(i(521), {
157
+ className: "ds-option__meta",
158
+ children: t[i(531)]
159
159
  }),
160
- !r && n[i(473)] && l(s, { className: i(496) })
160
+ !r && n[i(504)] && s(a, { className: "ds-option__check" })
161
161
  ] });
162
162
  }
163
- export { _ as Listbox, g as ListboxPopover, m as firstEnabled, h as lastEnabled, p as nextEnabled, f as optionId };
163
+ export { _ as Listbox, m as ListboxPopover, f as firstEnabled, p as lastEnabled, d as nextEnabled, u as optionId };
@@ -1,84 +1,83 @@
1
1
  "use client";
2
- function e(t, n) {
3
- t -= 426;
4
- var r = a(), i = r[t];
5
- e.Weirsw === void 0 && (e.HRHYup = function(e) {
6
- for (var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=", n = "", r = "", i = 0, a, o, s = 0; o = e.charAt(s++); ~o && (a = i % 4 ? a * 64 + o : o, i++ % 4) && (n += String.fromCharCode(255 & a >> (-2 * i & 6)))) o = t.indexOf(o);
7
- for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
8
- return decodeURIComponent(r);
9
- }, e.MENGae = {}, e.Weirsw = !0);
10
- var o = r[0];
11
- e.aBAlib !== o && (e.MENGae = {}, e.aBAlib = o);
12
- var s = e.MENGae[t];
13
- return s === void 0 ? (i = e.HRHYup(i), e.MENGae[t] = i) : i = s, i;
14
- }
15
- var t = e;
16
- (function(t, n) {
17
- for (var r = e, i = t();;) try {
18
- if (parseInt(r(437)) / 1 * (parseInt(r(438)) / 2) + -parseInt(r(442)) / 3 * (parseInt(r(432)) / 4) + parseInt(r(427)) / 5 + parseInt(r(441)) / 6 * (-parseInt(r(439)) / 7) + -parseInt(r(429)) / 8 + parseInt(r(436)) / 9 * (parseInt(r(431)) / 10) + parseInt(r(428)) / 11 == n) break;
19
- i.push(i.shift());
2
+ (function(e, t) {
3
+ for (var n = a, r = e();;) try {
4
+ if (parseInt(n(245)) / 1 + -parseInt(n(244)) / 2 * (-parseInt(n(256)) / 3) + parseInt(n(250)) / 4 + -parseInt(n(248)) / 5 * (parseInt(n(243)) / 6) + -parseInt(n(254)) / 7 + parseInt(n(246)) / 8 * (parseInt(n(241)) / 9) + -parseInt(n(257)) / 10 == t) break;
5
+ r.push(r.shift());
20
6
  } catch {
21
- i.push(i.shift());
7
+ r.push(r.shift());
22
8
  }
23
- })(a, 472253);
24
- import { Text as n } from "../../primitives/Typography2.js";
25
- import { Inline as r } from "../../primitives/Layout2.js";
26
- import { RelativeTime as i } from "../../primitives/RelativeTime.js";
27
- function a() {
9
+ })(t, 181526);
10
+ import { Text as e } from "../../primitives/Typography2.js";
11
+ function t() {
28
12
  var e = [
29
- "mtbXvMrksMm",
30
- "mte5otGYmffsyu11AG",
31
- "zhmTBwfYA2vYx19KyxrL",
32
- "zhmTBwfYA2vY",
33
- "zhmTBwfYA2vYx190zxH0",
34
- "ntu4ntC4n0vjzvLQzG",
35
- "mtiXmZG4tMXUsejp",
36
- "nLnXC2zOuG",
37
- "mZvhzvfSBhC",
38
- "BMv1DhjHBa",
39
- "mteWnty3neXhv0ffzG",
40
- "nMDtD0fwDW",
41
13
  "yM9KEs1Tza",
14
+ "C2vJB25Kyxj5",
15
+ "BM90zq",
16
+ "nJy3nJa0rNjZA256",
17
+ "zhmTBwfYA2vYx190zxH0",
18
+ "oxfbB0DpAW",
19
+ "mJG3mJGWmfDHuK1Zvq",
20
+ "zhmTBwfYA2vY",
21
+ "ndvlALfLwg4",
42
22
  "zhmTBwfYA2vYx19Py29U",
43
- "mJu5mZm4mefdsezpCq",
44
- "mtq1ode3mtbyBwTtuxe",
45
- "nJy4ndi4mfD6t1zouq",
46
- "BM90zq"
23
+ "mZC3otC2u3fWDwHA",
24
+ "mtu0nte0Cxf2Cxzc",
25
+ "mJe4ntq1EgrICMvy",
26
+ "nde1mdq4q2H5BhPz",
27
+ "zhmTBwfYA2vYls0",
28
+ "mtverhbNANK",
29
+ "C3bHBG",
30
+ "mtCZnZGWru5zv3rt"
47
31
  ];
48
- return a = function() {
32
+ return t = function() {
49
33
  return e;
50
- }, a();
34
+ }, t();
35
+ }
36
+ import { Inline as n } from "../../primitives/Layout2.js";
37
+ import { RelativeTime as r } from "../../primitives/RelativeTime.js";
38
+ import { cx as i } from "../../primitives/index.js";
39
+ function a(e, n) {
40
+ e -= 241;
41
+ var r = t(), i = r[e];
42
+ a.BwfVdu === void 0 && (a.kVGTXu = function(e) {
43
+ for (var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=", n = "", r = "", i = 0, a, o, s = 0; o = e.charAt(s++); ~o && (a = i % 4 ? a * 64 + o : o, i++ % 4) && (n += String.fromCharCode(255 & a >> (-2 * i & 6)))) o = t.indexOf(o);
44
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
45
+ return decodeURIComponent(r);
46
+ }, a.qEsutA = {}, a.BwfVdu = !0);
47
+ var o = r[0];
48
+ a.cDRsrT !== o && (a.qEsutA = {}, a.cDRsrT = o);
49
+ var s = a.qEsutA[e];
50
+ return s === void 0 ? (i = a.kVGTXu(i), a.qEsutA[e] = i) : i = s, i;
51
51
  }
52
- import { cx as o } from "../../primitives/index.js";
53
52
  /* empty css */
54
- import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
55
- function u({ icon: e, tone: a = t(440), children: u, date: d, gutter: f, appear: p, className: m, style: h }) {
56
- var g = t;
57
- return l(r, {
53
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
54
+ function l({ icon: t, tone: l = "neutral", children: u, date: d, gutter: f, appear: p, className: m, style: h }) {
55
+ var g = a;
56
+ return c(n, {
58
57
  gap: f ? 3 : 2,
59
58
  align: "start",
60
59
  wrap: !1,
61
- role: g(430),
62
- className: o(g(434), "ds-marker--" + a, m),
60
+ role: g(253),
61
+ className: i(g(258), g(247) + l, m),
63
62
  "data-appear": p || void 0,
64
63
  style: f ? {
65
64
  "--_gutter": f + "px",
66
65
  ...h
67
66
  } : h,
68
- children: [e && c("span", {
69
- className: g(426),
67
+ children: [t && s(g(249), {
68
+ className: g(242),
70
69
  "data-gutter": f ? !0 : void 0,
71
70
  "aria-hidden": !0,
72
- children: e
73
- }), l(n, {
74
- variant: g(443),
75
- tone: "secondary",
76
- className: g(435),
77
- children: [u, d != null && l(s, { children: [" ", c(i, {
71
+ children: t
72
+ }), c(e, {
73
+ variant: g(251),
74
+ tone: g(252),
75
+ className: g(255),
76
+ children: [u, d != null && c(o, { children: [" ", s(r, {
78
77
  date: d,
79
- className: g(433)
78
+ className: "ds-marker__date"
80
79
  })] })]
81
80
  })]
82
81
  });
83
82
  }
84
- export { u as Marker };
83
+ export { l as Marker };