@iamfiro/design 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/agents/avatar/AGENTS.md +29 -1
  2. package/agents/tooltip/AGENTS.md +1 -1
  3. package/lib/components/Accordion/Accordion2.js +81 -81
  4. package/lib/components/ActionBar/ActionBar2.js +38 -39
  5. package/lib/components/Alert/Alert2.js +79 -79
  6. package/lib/components/AppShell/AppShell2.js +45 -45
  7. package/lib/components/AreaChart/AreaChart.js +45 -46
  8. package/lib/components/BarChart/BarChart2.js +166 -166
  9. package/lib/components/BarList/BarList2.js +83 -83
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -72
  11. package/lib/components/Calendar/Calendar2.js +166 -165
  12. package/lib/components/Calendar/DatePicker2.js +139 -139
  13. package/lib/components/Calendar/date.js +61 -58
  14. package/lib/components/Card/Card2.js +47 -47
  15. package/lib/components/CardFrame/CardFrame2.js +50 -45
  16. package/lib/components/Chart/ChartParts.js +78 -78
  17. package/lib/components/Chart/chart2.js +62 -62
  18. package/lib/components/Chart/useChartInteraction.js +56 -56
  19. package/lib/components/ChatBubble/ChatBubble2.js +116 -116
  20. package/lib/components/ChatBubble/formatChatTime.js +46 -39
  21. package/lib/components/ChatComposer/ChatComposer2.js +43 -43
  22. package/lib/components/CodeBlock/CodeBlock2.js +57 -57
  23. package/lib/components/CodeBlock/highlight.js +74 -74
  24. package/lib/components/ColorPicker/ColorPicker2.js +357 -357
  25. package/lib/components/ColorPicker/color.js +83 -83
  26. package/lib/components/ColorPicker/presets.js +47 -41
  27. package/lib/components/Combobox/Combobox2.js +143 -142
  28. package/lib/components/CommandMenu/CommandMenu.js +100 -100
  29. package/lib/components/Comment/Comment2.js +59 -60
  30. package/lib/components/ContextMenu/ContextMenu2.js +95 -96
  31. package/lib/components/DataGrid/DataGrid2.js +1202 -1203
  32. package/lib/components/DataGrid/GridPopover.js +87 -87
  33. package/lib/components/DataGrid/anchor.js +17 -19
  34. package/lib/components/DataGrid/model.js +261 -261
  35. package/lib/components/DataGrid/panels.js +397 -395
  36. package/lib/components/DataGrid/typeMeta.js +51 -51
  37. package/lib/components/DataGrid/types.js +38 -36
  38. package/lib/components/DescriptionList/DescriptionList2.js +74 -74
  39. package/lib/components/Dialog/AlertDialog.js +81 -82
  40. package/lib/components/Dialog/Dialog2.js +63 -63
  41. package/lib/components/Dialog/modal.js +70 -69
  42. package/lib/components/Drawer/Drawer2.js +122 -123
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +257 -258
  44. package/lib/components/DropdownMenu/menuCore.js +43 -44
  45. package/lib/components/Dropzone/Dropzone2.js +76 -77
  46. package/lib/components/EmptyState/EmptyState2.js +59 -56
  47. package/lib/components/FileChip/FileChip2.js +73 -49
  48. package/lib/components/FileUpload/FileUpload.js +149 -150
  49. package/lib/components/FilterChips/FilterChips2.js +59 -59
  50. package/lib/components/FunnelChart/FunnelChart2.js +123 -123
  51. package/lib/components/FunnelChart/funnel.js +44 -47
  52. package/lib/components/Highlight/Highlight2.js +48 -48
  53. package/lib/components/HoverCard/HoverCard.js +89 -64
  54. package/lib/components/InlineDiff/InlineDiff2.js +123 -123
  55. package/lib/components/InlineDiff/diff.js +76 -76
  56. package/lib/components/InlineDiff/useDiffReview.js +69 -68
  57. package/lib/components/Kanban/Kanban2.js +366 -366
  58. package/lib/components/Kanban/KanbanCard.js +67 -67
  59. package/lib/components/Kanban/move.js +41 -45
  60. package/lib/components/LineChart/LineChart2.js +196 -196
  61. package/lib/components/List/List2.js +60 -59
  62. package/lib/components/Listbox/Listbox2.js +94 -94
  63. package/lib/components/Marker/Marker2.js +59 -52
  64. package/lib/components/Menubar/Menubar2.js +110 -112
  65. package/lib/components/MultiSelect/MultiSelect2.js +112 -112
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +239 -240
  67. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  68. package/lib/components/NumberStepper/NumberStepper2.js +66 -65
  69. package/lib/components/OtpInput/OtpInput2.js +87 -88
  70. package/lib/components/Pagination/Pagination2.js +81 -81
  71. package/lib/components/Pagination/paginationRange.js +25 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +77 -77
  73. package/lib/components/PieChart/PieChart2.js +101 -101
  74. package/lib/components/PieChart/arc.js +73 -76
  75. package/lib/components/PieChart/useArcTween.js +61 -57
  76. package/lib/components/Popover/Popover2.js +65 -64
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +119 -119
  78. package/lib/components/Rating/Rating2.js +85 -85
  79. package/lib/components/Resizable/Resizable2.js +139 -139
  80. package/lib/components/Resizable/layout.js +68 -68
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +55 -55
  82. package/lib/components/ScatterChart/ScatterChart2.js +249 -249
  83. package/lib/components/ScatterChart/scatter.js +55 -55
  84. package/lib/components/ScrollArea/ScrollArea2.js +132 -131
  85. package/lib/components/Select/Select2.js +81 -81
  86. package/lib/components/Sidebar/Sidebar2.js +61 -61
  87. package/lib/components/Skeleton/Skeleton2.js +46 -46
  88. package/lib/components/Slider/Slider2.js +74 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +70 -70
  90. package/lib/components/SparkChart/SparkChart2.js +138 -137
  91. package/lib/components/SparkChart/spark.js +40 -61
  92. package/lib/components/Sparkbar/Sparkbar2.js +60 -59
  93. package/lib/components/SplitView/SplitView2.js +42 -42
  94. package/lib/components/Stat/Stat2.js +88 -88
  95. package/lib/components/StepList/StepList2.js +71 -71
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +89 -89
  98. package/lib/components/TagInput/TagInput2.js +154 -154
  99. package/lib/components/TimePicker/TimePicker2.js +225 -226
  100. package/lib/components/TimePicker/time.js +50 -50
  101. package/lib/components/Timeline/Timeline2.js +201 -201
  102. package/lib/components/Timeline/scale.js +55 -53
  103. package/lib/components/Toast/Toaster.js +90 -92
  104. package/lib/components/Toast/store.js +91 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +84 -84
  106. package/lib/components/Toolbar/Toolbar2.js +166 -168
  107. package/lib/components/Tracker/Tracker2.js +89 -89
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +126 -125
  109. package/lib/components/TreeView/TreeView2.js +154 -156
  110. package/lib/hooks/timing.js +35 -36
  111. package/lib/hooks/useControllableState.js +40 -39
  112. package/lib/hooks/useCountdown.js +57 -55
  113. package/lib/hooks/useDigitInput.js +59 -83
  114. package/lib/hooks/useDismiss.js +49 -46
  115. package/lib/hooks/useElapsed.js +53 -55
  116. package/lib/hooks/useFloating.js +44 -44
  117. package/lib/hooks/useFocusTrap.js +46 -70
  118. package/lib/hooks/usePresence.js +32 -29
  119. package/lib/hooks/usePressToOpen.js +50 -50
  120. package/lib/hooks/useScrollLock.js +51 -51
  121. package/lib/hooks/useSelection.js +55 -46
  122. package/lib/index.js +34 -35
  123. package/lib/primitives/AspectRatio2.js +59 -55
  124. package/lib/primitives/BrandIcon.js +160 -160
  125. package/lib/primitives/ColorDot2.js +38 -42
  126. package/lib/primitives/CopyButton2.js +56 -56
  127. package/lib/primitives/CountBadge2.js +66 -64
  128. package/lib/primitives/Countdown2.js +31 -32
  129. package/lib/primitives/Delta2.js +46 -71
  130. package/lib/primitives/Elapsed.js +44 -44
  131. package/lib/primitives/FileIcon2.js +82 -82
  132. package/lib/primitives/Flag2.js +134 -134
  133. package/lib/primitives/IconStack2.js +31 -53
  134. package/lib/primitives/IconTile2.js +46 -48
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +78 -78
  137. package/lib/primitives/Link2.js +29 -30
  138. package/lib/primitives/MaskedText2.js +47 -73
  139. package/lib/primitives/Progress2.js +77 -78
  140. package/lib/primitives/RelativeTime.js +49 -46
  141. package/lib/primitives/SearchInput2.js +58 -59
  142. package/lib/primitives/SelectorButton2.js +76 -74
  143. package/lib/primitives/Spinner2.js +62 -58
  144. package/lib/primitives/StatusIcon2.js +56 -56
  145. package/lib/primitives/Swatch2.js +69 -65
  146. package/lib/primitives/Tooltip2.js +92 -92
  147. package/lib/primitives/Typography2.js +68 -68
  148. package/lib/primitives/formatCountdown.js +39 -43
  149. package/lib/primitives/formatElapsed.js +43 -39
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +76 -76
  152. package/lib/primitives/index.js +201 -181
  153. package/lib/primitives/maskValue.js +35 -39
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,132 +1,133 @@
1
1
  "use client";
2
- const e = n;
3
- (function(e, t) {
4
- let r = n, i = e();
2
+ const e = t;
3
+ (function(e, n) {
4
+ let r = t, i = e();
5
5
  for (;;) try {
6
- if (-parseInt(r(503)) / 1 + -parseInt(r(500)) / 2 * (parseInt(r(485)) / 3) + parseInt(r(492)) / 4 + parseInt(r(479)) / 5 + -parseInt(r(477)) / 6 * (parseInt(r(473)) / 7) + parseInt(r(476)) / 8 + parseInt(r(510)) / 9 * (parseInt(r(483)) / 10) == t) break;
6
+ if (parseInt(r(283)) / 1 + parseInt(r(291)) / 2 + -parseInt(r(290)) / 3 * (-parseInt(r(285)) / 4) + parseInt(r(261)) / 5 + -parseInt(r(264)) / 6 + -parseInt(r(272)) / 7 * (-parseInt(r(280)) / 8) + -parseInt(r(289)) / 9 * (parseInt(r(273)) / 10) == n) break;
7
7
  i.push(i.shift());
8
8
  } catch {
9
9
  i.push(i.shift());
10
10
  }
11
- })(l, 832732);
12
- import { cx as t } from "../../primitives/index.js";
13
- function n(e, t) {
14
- e -= 467;
15
- let r = l(), i = r[e];
16
- n.FeUUHX === void 0 && (n.xMFXGE = function(e) {
11
+ })(u, 689518);
12
+ function t(e, n) {
13
+ e -= 256;
14
+ let r = u(), i = r[e];
15
+ t.phjRMd === void 0 && (t.WsJHCA = function(e) {
17
16
  let t = "", n = "";
18
17
  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
18
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
19
  return decodeURIComponent(n);
21
- }, n.AfNchw = {}, n.FeUUHX = !0);
20
+ }, t.sHrgda = {}, t.phjRMd = !0);
22
21
  let a = r[0];
23
- n.wqoXyr !== a && (n.AfNchw = {}, n.wqoXyr = a);
24
- let o = n.AfNchw[e];
25
- return o === void 0 ? (i = n.xMFXGE(i), n.AfNchw[e] = i) : i = o, i;
22
+ t.ZbXAxd !== a && (t.sHrgda = {}, t.ZbXAxd = a);
23
+ let o = t.sHrgda[e];
24
+ return o === void 0 ? (i = t.WsJHCA(i), t.sHrgda[e] = i) : i = o, i;
26
25
  }
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() {
32
- let e = /* @__PURE__ */ "zhmTBgLZDc1PDgvTx19TzxrH.zhmTBgLZDc1PDgvTx190CMfPBgLUzW.y3vYCMvUDa.zhmTBgLZDa.zhmTBgLZDc1PDgvTx19MAwXS.ndaXngDIr3zTrG.zhmTBgLZDc1PDgvTx19JAgv2CM9U.zhmTBgLZDc1PDgvTls1ZDgfYDa.C3rHCNq.mhb4.zhmTBgLZDf9FCM93CW.zhmTBgLZDc1PDgvTls1YywLZzwq.C3r5Bgu.mteWndyZmJLICMfIy3m.B2zMC2v0sgvPz2H0.zhmTBgLZDc1PDgvTls1WCM9NCMvZCW.mta0mtC0ndbZuKHNww8.nMrYrNrJvW.CMfPC2vK.mJeXmZeXnwvSv2rsDG.yNv0Dg9U.sxrLBq.y2vUDgvY.mti1nZbwvLbNtfG.zgL2.nZvcqMvcAfu.rw50zxi.BwLU.CgfNzq.zhmTBgLZDc1PDgvTls1PBNrLCMfJDgL2zq.CgXHAw4.zhmTBgLZDc1PDgvT.ndmZmde1mKTTAxLxyq.C3bHBG.zhmTBgLZDf9FBgfIzwW.zhmTBgLZDc0Tyw5PBwf0zwq.zhmTBgLZDc0T.zhmTBgLZDc1PDgvTx190AxrSzq.zhmTBgLZDc1PDgvTx190zxH0.A2v5.nZi1mtrrCLnOrNm.zhmTBgLZDc1PDgvTx19TywLU.zgvMyxvSDa.nta3ntLOt3bSAMO.ywnJzw50".split(".");
33
- return l = function() {
34
- return e;
35
- }, l();
36
- }
37
- function u({ children: n, variant: r = e(490), density: i = e(502), label: a, animated: o, className: l, style: u, "aria-label": d }) {
38
- let f = e;
39
- return c(f(484), {
40
- className: t(f(508), "ds-list--" + r, f(496) + i, o && f(495), l),
31
+ function l({ children: e, variant: r = "plain", density: i = "default", label: a, animated: o, className: l, style: u, "aria-label": d }) {
32
+ let f = t;
33
+ return c(f(256), {
34
+ className: n(f(278), f(258) + r, "ds-list--" + i, o && "ds-list--animated", l),
41
35
  style: u,
42
- children: [a && s("div", {
43
- className: f(494),
36
+ children: [a && s(f(256), {
37
+ className: "ds-list__label",
44
38
  children: a
45
39
  }), s("ul", {
46
- className: f(470),
40
+ className: f(257),
47
41
  "aria-label": d,
48
- children: n
42
+ children: e
49
43
  })]
50
44
  });
51
45
  }
52
- function d({ title: l, description: u, leading: d, meta: f, trailing: p, href: m, onClick: h, chevron: g, selected: _, disabled: v, align: y = e(482), leaving: b, variant: x = e(502), progress: S, progressTone: C = e(504), className: w }) {
46
+ function u() {
47
+ let e = /* @__PURE__ */ "ndi2mZGXnxHfr1LlEG.C3rHCNq.zhmTBgLZDc1PDgvTx19TywLU.nJa2ota2mhfjy2LyCW.C3r5Bgu.CgfNzq.Bwf4.B2zMC2v0sgvPz2H0.y2vUDgvY.zgvMyxvSDa.yNv0Dg9U.nZuZotDRzeHKDKi.mtiYmtuYmZbKy0jZsfq.zhmTBgLZDc1PDgvTx190AxrSzq.C3bHBG.zhmTBgLZDc1PDgvTx19JAgv2CM9U.A2v5.zhmTBgLZDa.CMfPC2vK.mZi4yKTJr1Hl.ywnJzw50.AgvPz2H0.otq4ntq4AKnnzMzc.zhmTBgLZDc1PDgvTls1WCM9NCMvZCW.ngrqz0PQBq.zhmTBgLZDc1PDgvTx190zxH0.zhmTBgLZDc1PDgvTls1PBNrLCMfJDgL2zq.sxrLBq.mtHxEgfuuLq.mJCYndq4m05lqMXtyq.mtK4ntK4mLvVtKvAAa.zgL2.zhmTBgLZDf9FCM93CW.zhmTBgLZDc0T.zhmTBgLZDc1PDgvTx19TzxrH.zhmTBgLZDc1PDgvT".split(".");
48
+ return u = function() {
49
+ return e;
50
+ }, u();
51
+ }
52
+ function d({ title: l, description: u, leading: d, meta: f, trailing: p, href: m, onClick: h, chevron: g, selected: _, disabled: v, align: y = e(269), leaving: b, variant: x = e(270), progress: S, progressTone: C = e(281), className: w }) {
53
53
  let T = e, E = i(null);
54
54
  r(() => {
55
- let e = n, t = E[e(507)];
56
- if (!b || !t) return;
57
- t[e(472)].height = t[e(474)] + "px";
55
+ let e = t, n = E.current;
56
+ if (!b || !n) return;
57
+ n[e(265)][e(282)] = n[e(268)] + "px";
58
58
  let r = requestAnimationFrame(() => {
59
- let n = e;
60
- t[n(472)].height = n(469);
59
+ let t = e;
60
+ n[t(265)][t(282)] = "0px";
61
61
  });
62
62
  return () => {
63
- cancelAnimationFrame(r), t.style.height = "";
63
+ let t = e;
64
+ cancelAnimationFrame(r), n.style[t(282)] = "";
64
65
  };
65
66
  }, [b]);
66
67
  let D = !v && (!!m || !!h), O = c(o, { children: [
67
- d && s(T(493), {
68
+ d && s(T(275), {
68
69
  className: "ds-list-item__leading",
69
70
  children: d
70
71
  }),
71
- c(T(493), {
72
- className: T(498),
73
- children: [s(T(493), {
74
- className: T(497),
72
+ c(T(275), {
73
+ className: T(286),
74
+ children: [s("span", {
75
+ className: T(274),
75
76
  children: l
76
- }), u && s(T(493), {
77
+ }), u && s("span", {
77
78
  className: "ds-list-item__desc",
78
79
  children: u
79
80
  })]
80
81
  }),
81
- f && s("span", {
82
- className: T(505),
82
+ f && s(T(275), {
83
+ className: T(259),
83
84
  children: f
84
85
  })
85
86
  ] });
86
87
  return c("li", {
87
88
  ref: E,
88
- className: t(T(491), D && T(489), y === T(468) && T(467), x === T(478) && T(471), S !== void 0 && T(475), w),
89
+ className: n(T(260), D && T(287), y === T(262) && "ds-list-item--start", x === T(279) && "ds-list-item--raised", S !== void 0 && T(284), w),
89
90
  "data-selected": _ || void 0,
90
91
  "data-disabled": v || void 0,
91
92
  "data-leaving": b || void 0,
92
93
  inert: b || void 0,
93
94
  children: [
94
- S !== void 0 && s(T(493), {
95
- className: T(509),
95
+ S !== void 0 && s("span", {
96
+ className: "ds-list-item__fill",
96
97
  "data-tone": C,
97
98
  "aria-hidden": !0,
98
- style: { width: Math.max(0, Math[T(487)](1, S)) * 100 + "%" }
99
+ style: { width: Math[T(267)](0, Math.min(1, S)) * 100 + "%" }
99
100
  }),
100
101
  m && !v ? s("a", {
101
102
  href: m,
102
- className: T(501),
103
- "aria-current": _ ? T(488) : void 0,
103
+ className: T(263),
104
+ "aria-current": _ ? T(266) : void 0,
104
105
  onClick: h,
105
106
  children: O
106
- }) : h && !v ? s(T(484), {
107
- role: T(480),
107
+ }) : h && !v ? s(T(256), {
108
+ role: T(271),
108
109
  tabIndex: 0,
109
- className: T(501),
110
+ className: "ds-list-item__main",
110
111
  "aria-pressed": _,
111
112
  onClick: h,
112
113
  onKeyDown: (e) => {
113
114
  let t = T;
114
- (e[t(499)] === t(486) || e[t(499)] === " ") && (e.preventDefault(), h?.());
115
+ (e[t(277)] === "Enter" || e[t(277)] === " ") && (e.preventDefault(), h?.());
115
116
  },
116
117
  children: O
117
- }) : s("div", {
118
+ }) : s(T(256), {
118
119
  className: "ds-list-item__main",
119
120
  children: O
120
121
  }),
121
- (p || g) && c(T(493), {
122
- className: T(506),
122
+ (p || g) && c(T(275), {
123
+ className: "ds-list-item__trailing",
123
124
  children: [p, g && s(a, {
124
- className: T(511),
125
+ className: T(276),
125
126
  "aria-hidden": !0
126
127
  })]
127
128
  })
128
129
  ]
129
130
  });
130
131
  }
131
- u[e(481)] = d;
132
- export { u as List, d as ListItem };
132
+ l[e(288)] = d;
133
+ export { l as List, d as ListItem };
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- const e = d;
2
+ const e = p;
3
3
  (function(e, t) {
4
- let n = d, r = e();
4
+ let n = p, r = e();
5
5
  for (;;) try {
6
- if (parseInt(n(369)) / 1 + -parseInt(n(394)) / 2 * (-parseInt(n(395)) / 3) + -parseInt(n(374)) / 4 + -parseInt(n(378)) / 5 * (parseInt(n(401)) / 6) + -parseInt(n(391)) / 7 + parseInt(n(392)) / 8 * (-parseInt(n(377)) / 9) + parseInt(n(399)) / 10 == t) break;
6
+ if (-parseInt(n(169)) / 1 + parseInt(n(194)) / 2 * (parseInt(n(168)) / 3) + -parseInt(n(188)) / 4 * (-parseInt(n(181)) / 5) + parseInt(n(182)) / 6 + -parseInt(n(167)) / 7 * (parseInt(n(196)) / 8) + -parseInt(n(170)) / 9 * (-parseInt(n(165)) / 10) + -parseInt(n(166)) / 11 * (-parseInt(n(152)) / 12) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(f, 856009);
11
+ })(g, 199027);
12
12
  import { cx as t } from "../../primitives/index.js";
13
13
  import { useFloating as n } from "../../hooks/useFloating.js";
14
14
  /* empty css */
@@ -16,116 +16,116 @@ import { forwardRef as r, useEffect as i } from "react";
16
16
  import { Check as a } from "lucide-react";
17
17
  import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
18
18
  import { createPortal as l } from "react-dom";
19
- var u = (t, n) => t + e(376) + n;
20
- function d(e, t) {
21
- e -= 357;
22
- let n = f(), r = n[e];
23
- d.cprpEA === void 0 && (d.rhYBat = function(e) {
19
+ var u = (e, t) => e + "-opt-" + t;
20
+ function d(e, t, n) {
21
+ let r = p, i = e[r(176)], a = t < 0 ? n === 1 ? -1 : i : t;
22
+ for (let t = 0; t < i; t++) if (a = ((a + n) % i + i) % i, !e[a][r(154)]) return a;
23
+ return -1;
24
+ }
25
+ var f = (t) => t[e(185)]((t) => !t[e(154)]);
26
+ function p(e, t) {
27
+ e -= 150;
28
+ let n = g(), r = n[e];
29
+ p.fVUnhW === void 0 && (p.iWdXlu = function(e) {
24
30
  let t = "", n = "";
25
31
  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
32
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
27
33
  return decodeURIComponent(n);
28
- }, d.naGwhV = {}, d.cprpEA = !0);
34
+ }, p.SwTeeS = {}, p.fVUnhW = !0);
29
35
  let i = n[0];
30
- d.YUnAoc !== i && (d.naGwhV = {}, d.YUnAoc = i);
31
- let a = d.naGwhV[e];
32
- return a === void 0 ? (r = d.rhYBat(r), d.naGwhV[e] = r) : r = a, r;
33
- }
34
- function f() {
35
- let e = /* @__PURE__ */ "Bwv0yq.zhmTC2nYB2XS.zhmTB3b0Aw9Ux190zxH0.C2vSzwn0zwq.mtaXnJi2qwj0wMTj.BgLZDgjVEa.zhmTB3b0Aw9UigrZlw9WDgLVBI0Tywn0Aw9U.BgvUz3rO.ChjLDMvUDerLzMf1Bhq.mJa3nZK4mgLXELngCa.ChvZAa.lw9WDc0.mJm4nJyYB0Pys3fj.mJGWuNrXDNLw.zhmTB3b0Aw9Ux19Py29U.zhmTB3b0Aw9Ux19JAgvJAY1IB3G.z2v0rwXLBwvUDej5swq.z3jVDxa.zM9YrwfJAa.zgLZywjSzwq.BgfIzwW.C2nYB2XSsw50B1zPzxC.zhmTB3b0Aw9Ux19JAgvJAW.yM9KEq.zgL2.C3bHBG.nZe1ndi4n2DjvMHtDG.ofzpuxfQDa.zgvZy3jPChrPB24.mJaYt2ToB21R.mJC0mMvRseffAG.B3b0Aw9U.6RkW6Ro86RcaioYxHUYwToYALa.AwnVBG.mJi0oty2nZb1wvjJt24.ywn0AxzL.mJa5nezhCgXeva.BMvHCMvZDa.B25tzwXLy3q.zMLUzeLUzgv4.ChjLC2vUDgf0Aw9U.DMfSDwu.zhmTB3b0Aw9Ux19SywjLBa.zhmTBgLZDgjVEf9Fzw1WDhK.B3bLBG".split(".");
36
- return f = function() {
37
- return e;
38
- }, f();
36
+ p.EMSlOW !== i && (p.SwTeeS = {}, p.EMSlOW = i);
37
+ let a = p.SwTeeS[e];
38
+ return a === void 0 ? (r = p.iWdXlu(r), p.SwTeeS[e] = r) : r = a, r;
39
39
  }
40
- function p(t, n, r) {
41
- let i = e, a = t[i(372)], 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(384)]) return o;
43
- return -1;
44
- }
45
- var m = (t) => t[e(359)]((t) => !t[e(384)]);
46
- function h(t) {
40
+ function m(t) {
47
41
  let n = e;
48
- for (let e = t[n(372)] - 1; e >= 0; e--) if (!t[e][n(384)]) return e;
42
+ for (let e = t[n(176)] - 1; e >= 0; e--) if (!t[e][n(154)]) return e;
49
43
  return -1;
50
44
  }
51
- var g = r(function({ anchorRef: r, closing: i, className: a, children: o, ...c }, u) {
45
+ var h = r(function({ anchorRef: r, closing: i, className: a, children: o, ...c }, u) {
52
46
  let d = e, { style: f, side: p } = n(r, !0, c);
53
- return l(s(d(389), {
47
+ return l(s(d(164), {
54
48
  ref: u,
55
- className: t("ds-popover", d(366), a),
49
+ className: t("ds-popover", "ds-scroll", a),
56
50
  "data-side": p,
57
- "data-state": i ? "closed" : d(364),
51
+ "data-state": d(i ? 150 : 192),
58
52
  style: f,
59
- onPointerDown: (e) => e[d(373)](),
53
+ onPointerDown: (e) => e[d(171)](),
60
54
  children: o
61
- }), document[d(388)]);
55
+ }), document.body);
62
56
  });
63
- function _({ id: t, options: n, activeIndex: r, isSelected: a, onSelect: o, onActiveChange: l, multiple: f, renderOption: p, emptyText: m = e(397), action: h, style: g, "aria-label": _ }) {
57
+ function g() {
58
+ let e = /* @__PURE__ */ "mtu2mdu1mKn0thf5Aq.C3bHBG.zhmTB3b0Aw9Ux190zxH0.zMLUzeLUzgv4.zhmTB3b0Aw9Ux19Py29U.zhmTB3b0Aw9Ux19JAgvJAY1IB3G.mZqZmMX5uezQza.BgLZDgjVEa.AwnVBG.zgvZy3jPChrPB24.B3bLBG.C2vSzwn0zwq.otC0nLDPAuDbzq.ywn0AxzL.oePprK1Pwa.ChjLC2vUDgf0Aw9U.zhmTB3b0Aw9U.y2XVC2vK.DMfSDwu.ote3otC2B1vlt3fo.BgfIzwW.zgLZywjSzwq.C2nYB2XSsw50B1zPzxC.zhmTBgLZDgjVEf9Fzw1WDhK.B3b0Aw9U.z2v0rwXLBwvUDej5swq.zM9YrwfJAa.zhmTBgLZDgjVEa.zhmTB3b0Aw9Ux19SywjLBa.BMvHCMvZDa.zhmTB3b0Aw9Ux19KzxnJ.zgL2.otbwuK5Hq1u.mJjbyxDXruu.nZCWmdiXyNHXC0jI.mJDhB2Llqwe.mZiZmdy0quLWsejA.mZG3mJDvBeLZEhC.ChjLDMvUDerLzMf1Bhq.ChvZAa.z3jVDxa.zhmTBgLZDgjVEf9Fz3jVDxa.6RkW6Ro86RcaioYxHUYwToYALa.BgvUz3rO.B25tzwXLy3q.zhmTB3b0Aw9Ux19TzxrH.zhmTB3b0Aw9UigrZlw9WDgLVBI0Tywn0Aw9U.Bwv0yq.nZK1uNnPCvvA".split(".");
59
+ return g = function() {
60
+ return e;
61
+ }, g();
62
+ }
63
+ function _({ id: t, options: n, activeIndex: r, isSelected: a, onSelect: o, onActiveChange: l, multiple: d, renderOption: f, emptyText: m = e(175), action: h, style: g, "aria-label": _ }) {
64
64
  let y = e;
65
65
  i(() => {
66
- let e = d;
67
- r < 0 || document[e(381)](u(t, r))?.[e(386)]({ block: e(357) });
66
+ let e = p;
67
+ r < 0 || document[e(158)](u(t, r))?.[e(155)]({ block: e(162) });
68
68
  }, [t, r]);
69
69
  let b = [];
70
- n[y(383)]((e, i) => {
70
+ n[y(159)]((e, i) => {
71
71
  let c = y;
72
- e[c(382)] && e[c(382)] !== n[i - 1]?.[c(382)] && b[c(375)](s(c(389), {
73
- className: "ds-listbox__group",
74
- role: c(360),
75
- children: e.group
76
- }, "g-" + e[c(382)]));
77
- let d = {
72
+ e[c(173)] && e[c(173)] !== n[i - 1]?.[c(173)] && b[c(172)](s("div", {
73
+ className: c(174),
74
+ role: c(197),
75
+ children: e[c(173)]
76
+ }, "g-" + e[c(173)]));
77
+ let p = {
78
78
  active: i === r,
79
- selected: a(e[c(361)]),
80
- disabled: !!e.disabled
79
+ selected: a(e[c(151)]),
80
+ disabled: !!e[c(154)]
81
81
  };
82
- b.push(s(c(389), {
82
+ b[c(172)](s(c(164), {
83
83
  id: u(t, i),
84
84
  "data-index": i,
85
- role: c(396),
86
- "aria-selected": d.selected,
87
- "aria-disabled": d[c(384)] || void 0,
88
- "data-active": d.active || void 0,
89
- className: "ds-option",
90
- onPointerDown: (e) => e[c(373)](),
91
- onPointerMove: () => !d.disabled && !d[c(400)] && l(i),
92
- onClick: () => !d[c(384)] && o(e),
93
- children: p ? p(e, d) : s(v, {
85
+ role: c(157),
86
+ "aria-selected": p[c(193)],
87
+ "aria-disabled": p[c(154)] || void 0,
88
+ "data-active": p[c(195)] || void 0,
89
+ className: c(198),
90
+ onPointerDown: (e) => e[c(171)](),
91
+ onPointerMove: () => !p[c(154)] && !p[c(195)] && l(i),
92
+ onClick: () => !p[c(154)] && o(e),
93
+ children: f ? f(e, p) : s(v, {
94
94
  option: e,
95
- state: d,
96
- multiple: f
95
+ state: p,
96
+ multiple: d
97
97
  })
98
- }, e[c(361)]));
98
+ }, e[c(151)]));
99
99
  });
100
- let x = n.length;
101
- return c(y(389), {
100
+ let x = n[y(176)];
101
+ return c(y(164), {
102
102
  id: t,
103
- role: y(370),
103
+ role: y(189),
104
104
  "aria-label": _,
105
- "aria-multiselectable": f || void 0,
106
- className: "ds-listbox",
105
+ "aria-multiselectable": d || void 0,
106
+ className: y(160),
107
107
  style: g,
108
108
  children: [
109
109
  b,
110
- h && c(y(389), {
110
+ h && c(y(164), {
111
111
  id: u(t, x),
112
- role: y(396),
112
+ role: "option",
113
113
  "aria-selected": !1,
114
114
  "data-active": r === x || void 0,
115
- className: y(371),
115
+ className: y(179),
116
116
  onPointerDown: (e) => e.preventDefault(),
117
117
  onPointerMove: () => r !== x && l(x),
118
- onClick: h[y(358)],
119
- children: [h.icon && s(y(390), {
120
- className: y(379),
121
- children: h[y(398)]
122
- }), s(y(390), {
123
- className: y(367),
124
- children: h[y(385)]
118
+ onClick: h[y(177)],
119
+ children: [h.icon && s(y(183), {
120
+ className: y(186),
121
+ children: h[y(190)]
122
+ }), s(y(183), {
123
+ className: y(184),
124
+ children: h[y(153)]
125
125
  })]
126
126
  }),
127
- !n[y(372)] && !h && s("div", {
128
- className: y(363),
127
+ !n[y(176)] && !h && s(y(164), {
128
+ className: y(156),
129
129
  children: m
130
130
  })
131
131
  ]
@@ -134,30 +134,30 @@ function _({ id: t, options: n, activeIndex: r, isSelected: a, onSelect: o, onAc
134
134
  function v({ option: t, state: n, multiple: r }) {
135
135
  let i = e;
136
136
  return c(o, { children: [
137
- r && s(i(390), {
138
- className: i(380),
139
- "data-checked": n[i(368)] || void 0,
137
+ r && s("span", {
138
+ className: i(187),
139
+ "data-checked": n[i(193)] || void 0,
140
140
  children: s(a, {})
141
141
  }),
142
- t[i(398)] && s(i(390), {
143
- className: "ds-option__icon",
144
- children: t[i(398)]
142
+ t.icon && s(i(183), {
143
+ className: i(186),
144
+ children: t.icon
145
145
  }),
146
- c("span", {
147
- className: i(367),
148
- children: [s(i(390), {
149
- className: i(362),
150
- children: t[i(385)]
151
- }), t[i(393)] && s(i(390), {
152
- className: "ds-option__desc",
153
- children: t[i(393)]
146
+ c(i(183), {
147
+ className: i(184),
148
+ children: [s("span", {
149
+ className: i(161),
150
+ children: t[i(153)]
151
+ }), t[i(191)] && s(i(183), {
152
+ className: i(163),
153
+ children: t[i(191)]
154
154
  })]
155
155
  }),
156
- t[i(365)] && s(i(390), {
157
- className: "ds-option__meta",
158
- children: t[i(365)]
156
+ t[i(180)] && s(i(183), {
157
+ className: i(178),
158
+ children: t[i(180)]
159
159
  }),
160
- !r && n[i(368)] && s(a, { className: i(387) })
160
+ !r && n.selected && 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, u as optionId };
163
+ export { _ as Listbox, h as ListboxPopover, f as firstEnabled, m as lastEnabled, d as nextEnabled, u as optionId };
@@ -1,82 +1,89 @@
1
1
  "use client";
2
- (function(e, n) {
3
- for (var r = t, i = e();;) try {
4
- if (parseInt(r(222)) / 1 + parseInt(r(221)) / 2 * (parseInt(r(229)) / 3) + parseInt(r(223)) / 4 * (-parseInt(r(230)) / 5) + -parseInt(r(224)) / 6 + parseInt(r(225)) / 7 * (parseInt(r(218)) / 8) + parseInt(r(227)) / 9 * (parseInt(r(231)) / 10) + -parseInt(r(234)) / 11 == n) break;
5
- i.push(i.shift());
2
+ var e = u;
3
+ (function(e, t) {
4
+ for (var n = u, r = e();;) try {
5
+ if (-parseInt(n(427)) / 1 * (-parseInt(n(433)) / 2) + parseInt(n(430)) / 3 * (-parseInt(n(425)) / 4) + -parseInt(n(422)) / 5 * (parseInt(n(418)) / 6) + -parseInt(n(432)) / 7 * (-parseInt(n(423)) / 8) + -parseInt(n(431)) / 9 * (-parseInt(n(414)) / 10) + -parseInt(n(416)) / 11 + parseInt(n(419)) / 12 * (-parseInt(n(421)) / 13) == t) break;
6
+ r.push(r.shift());
6
7
  } catch {
7
- i.push(i.shift());
8
+ r.push(r.shift());
8
9
  }
9
- })(c, 966037);
10
- import { Text as e } from "../../primitives/Typography2.js";
11
- function t(e, n) {
12
- e -= 218;
13
- var r = c(), i = r[e];
14
- t.MqMEZb === void 0 && (t.dosXSS = function(e) {
15
- 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);
16
- for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
17
- return decodeURIComponent(r);
18
- }, t.CjScAh = {}, t.MqMEZb = !0);
19
- var a = r[0];
20
- t.VlWKfD !== a && (t.CjScAh = {}, t.VlWKfD = a);
21
- var o = t.CjScAh[e];
22
- return o === void 0 ? (i = t.dosXSS(i), t.CjScAh[e] = i) : i = o, i;
23
- }
10
+ })(a, 766572);
11
+ import { Text as t } from "../../primitives/Typography2.js";
24
12
  import { Inline as n } from "../../primitives/Layout2.js";
25
13
  import { RelativeTime as r } from "../../primitives/RelativeTime.js";
26
14
  import { cx as i } from "../../primitives/index.js";
27
- /* empty css */
28
- import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
29
- function c() {
15
+ function a() {
30
16
  var e = [
31
- "nteYndi3ow5Ou2X4tW",
32
- "nJvTBvP4CNO",
33
- "mtbSzM9Mu20",
17
+ "mte1mdbbugDqwhC",
18
+ "zhmTBwfYA2vY",
19
+ "murNs0TYBG",
34
20
  "C3bHBG",
21
+ "yM9KEs1Tza",
22
+ "mtq0EgHmELbk",
23
+ "ovzQuuHWuG",
24
+ "ntK2mJCWnxvzv2LpyG",
25
+ "mJeWnJi4oeXurfPHvG",
26
+ "zhmTBwfYA2vYx19KyxrL",
27
+ "C3rHCNq",
28
+ "BMv1DhjHBa",
29
+ "odmWnJu3mgTOtLb0uq",
35
30
  "C2vJB25Kyxj5",
36
- "mtiYntq3odfpuKPqrK0",
37
- "ohbszejIvW",
31
+ "mZyZnZm3mgfVzvbzCG",
38
32
  "zhmTBwfYA2vYx190zxH0",
33
+ "mJe1otrqC0nfuhK",
34
+ "mtu2zxLuDLz4",
39
35
  "zhmTBwfYA2vYls0",
40
- "mKHXqNzLEG",
41
- "nZu1mJq5BeDQq09V",
42
- "ndy3odq0A3jkuezd",
43
- "nJK3ndqYnfPVtu5UqW",
44
- "nJe2ody0nu52vvfvqq",
45
- "BM90zq",
46
- "mti3nJu4ntjUrhbUuve",
47
- "C3rHCNq"
36
+ "mtq4ntK3og5ZB0nvvG",
37
+ "mJbpz1ndBLO",
38
+ "ofvUDe1pvW",
39
+ "BM90zq"
48
40
  ];
49
- return c = function() {
41
+ return a = function() {
50
42
  return e;
51
- }, c();
43
+ }, a();
52
44
  }
53
- function l({ icon: c, tone: l = "neutral", children: u, date: d, gutter: f, appear: p, className: m, style: h }) {
54
- var g = t;
55
- return s(n, {
45
+ /* empty css */
46
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
47
+ function l({ icon: a, tone: l = e(413), children: u, date: d, gutter: f, appear: p, className: m, style: h }) {
48
+ var g = e;
49
+ return c(n, {
56
50
  gap: f ? 3 : 2,
57
- align: g(228),
51
+ align: g(435),
58
52
  wrap: !1,
59
- role: g(226),
60
- className: i("ds-marker", g(220) + l, m),
53
+ role: g(424),
54
+ className: i(g(426), g(420) + l, m),
61
55
  "data-appear": p || void 0,
62
56
  style: f ? {
63
57
  "--_gutter": f + "px",
64
58
  ...h
65
59
  } : h,
66
- children: [c && o(g(232), {
60
+ children: [a && s(g(428), {
67
61
  className: "ds-marker__icon",
68
62
  "data-gutter": f ? !0 : void 0,
69
63
  "aria-hidden": !0,
70
- children: c
71
- }), s(e, {
72
- variant: "body-md",
73
- tone: g(233),
74
- className: g(219),
75
- children: [u, d != null && s(a, { children: [" ", o(r, {
64
+ children: a
65
+ }), c(t, {
66
+ variant: g(429),
67
+ tone: g(415),
68
+ className: g(417),
69
+ children: [u, d != null && c(o, { children: [" ", s(r, {
76
70
  date: d,
77
- className: "ds-marker__date"
71
+ className: g(434)
78
72
  })] })]
79
73
  })]
80
74
  });
81
75
  }
76
+ function u(e, t) {
77
+ e -= 413;
78
+ var n = a(), r = n[e];
79
+ u.kRGGSx === void 0 && (u.IydjzP = function(e) {
80
+ 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);
81
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
82
+ return decodeURIComponent(r);
83
+ }, u.aZUoqa = {}, u.kRGGSx = !0);
84
+ var i = n[0];
85
+ u.YDHcyn !== i && (u.aZUoqa = {}, u.YDHcyn = i);
86
+ var o = u.aZUoqa[e];
87
+ return o === void 0 ? (r = u.IydjzP(r), u.aZUoqa[e] = r) : r = o, r;
88
+ }
82
89
  export { l as Marker };