@iamfiro/design 0.3.2 → 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 (158) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/brand-icon/AGENTS.md +1 -1
  3. package/agents/social-login-button/AGENTS.md +4 -3
  4. package/lib/components/Accordion/Accordion2.js +87 -87
  5. package/lib/components/ActionBar/ActionBar2.js +42 -44
  6. package/lib/components/Alert/Alert2.js +61 -61
  7. package/lib/components/AppShell/AppShell2.js +70 -71
  8. package/lib/components/AreaChart/AreaChart.js +38 -40
  9. package/lib/components/BarChart/BarChart2.js +126 -126
  10. package/lib/components/BarList/BarList2.js +95 -95
  11. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -66
  12. package/lib/components/Calendar/Calendar2.js +164 -164
  13. package/lib/components/Calendar/DatePicker2.js +103 -102
  14. package/lib/components/Calendar/date.js +64 -66
  15. package/lib/components/Card/Card2.js +67 -67
  16. package/lib/components/CardFrame/CardFrame2.js +43 -51
  17. package/lib/components/Chart/ChartParts.js +94 -94
  18. package/lib/components/Chart/chart2.js +52 -52
  19. package/lib/components/Chart/useChartInteraction.js +54 -54
  20. package/lib/components/ChatBubble/ChatBubble2.js +92 -92
  21. package/lib/components/ChatBubble/formatChatTime.js +35 -41
  22. package/lib/components/ChatComposer/ChatComposer2.js +63 -63
  23. package/lib/components/CodeBlock/CodeBlock2.js +61 -61
  24. package/lib/components/CodeBlock/highlight.js +84 -84
  25. package/lib/components/ColorPicker/ColorPicker2.js +387 -386
  26. package/lib/components/ColorPicker/color.js +71 -71
  27. package/lib/components/ColorPicker/presets.js +41 -46
  28. package/lib/components/Combobox/Combobox2.js +117 -118
  29. package/lib/components/CommandMenu/CommandMenu.js +127 -127
  30. package/lib/components/Comment/Comment2.js +86 -60
  31. package/lib/components/ContextMenu/ContextMenu2.js +77 -75
  32. package/lib/components/DataGrid/DataGrid2.js +1192 -1190
  33. package/lib/components/DataGrid/GridPopover.js +94 -94
  34. package/lib/components/DataGrid/anchor.js +34 -31
  35. package/lib/components/DataGrid/model.js +284 -283
  36. package/lib/components/DataGrid/panels.js +398 -399
  37. package/lib/components/DataGrid/typeMeta.js +51 -50
  38. package/lib/components/DataGrid/types.js +38 -39
  39. package/lib/components/DescriptionList/DescriptionList2.js +103 -103
  40. package/lib/components/Dialog/AlertDialog.js +79 -78
  41. package/lib/components/Dialog/Dialog2.js +59 -59
  42. package/lib/components/Dialog/modal.js +44 -46
  43. package/lib/components/Drawer/Drawer2.js +130 -129
  44. package/lib/components/DropdownMenu/DropdownMenu2.js +235 -233
  45. package/lib/components/DropdownMenu/menuCore.js +69 -42
  46. package/lib/components/Dropzone/Dropzone2.js +79 -78
  47. package/lib/components/EmptyState/EmptyState2.js +34 -35
  48. package/lib/components/FileChip/FileChip2.js +73 -73
  49. package/lib/components/FileUpload/FileUpload.js +159 -159
  50. package/lib/components/FilterChips/FilterChips2.js +61 -61
  51. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  52. package/lib/components/FunnelChart/funnel.js +48 -44
  53. package/lib/components/Highlight/Highlight2.js +43 -43
  54. package/lib/components/HoverCard/HoverCard.js +59 -84
  55. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  56. package/lib/components/InlineDiff/diff.js +90 -90
  57. package/lib/components/InlineDiff/useDiffReview.js +64 -63
  58. package/lib/components/Kanban/Kanban2.js +386 -387
  59. package/lib/components/Kanban/KanbanCard.js +70 -95
  60. package/lib/components/Kanban/move.js +50 -46
  61. package/lib/components/LineChart/LineChart2.js +211 -211
  62. package/lib/components/List/List2.js +53 -54
  63. package/lib/components/Listbox/Listbox2.js +115 -115
  64. package/lib/components/Marker/Marker2.js +56 -61
  65. package/lib/components/Menubar/Menubar2.js +144 -141
  66. package/lib/components/MultiSelect/MultiSelect2.js +108 -108
  67. package/lib/components/NavigationMenu/NavigationMenu2.js +298 -299
  68. package/lib/components/NoticeStack/NoticeStack2.js +84 -84
  69. package/lib/components/NumberStepper/NumberStepper2.js +65 -66
  70. package/lib/components/OtpInput/OtpInput2.js +70 -69
  71. package/lib/components/Pagination/Pagination2.js +106 -106
  72. package/lib/components/Pagination/paginationRange.js +37 -39
  73. package/lib/components/PhoneInput/PhoneInput.js +87 -88
  74. package/lib/components/PieChart/PieChart2.js +160 -160
  75. package/lib/components/PieChart/arc.js +65 -62
  76. package/lib/components/PieChart/useArcTween.js +53 -60
  77. package/lib/components/Popover/Popover2.js +62 -62
  78. package/lib/components/ProgressTracker/ProgressTracker2.js +121 -121
  79. package/lib/components/Rating/Rating2.js +82 -81
  80. package/lib/components/Resizable/Resizable2.js +126 -127
  81. package/lib/components/Resizable/layout.js +73 -73
  82. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -67
  83. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  84. package/lib/components/ScatterChart/scatter.js +47 -49
  85. package/lib/components/ScrollArea/ScrollArea2.js +117 -118
  86. package/lib/components/Select/Select2.js +78 -79
  87. package/lib/components/Sidebar/Sidebar2.js +69 -69
  88. package/lib/components/Skeleton/Skeleton2.js +57 -57
  89. package/lib/components/Slider/Slider2.js +73 -74
  90. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -68
  91. package/lib/components/SparkChart/SparkChart2.js +145 -145
  92. package/lib/components/SparkChart/spark.js +64 -42
  93. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  94. package/lib/components/SplitView/SplitView2.js +51 -52
  95. package/lib/components/Stat/Stat2.js +90 -90
  96. package/lib/components/StepList/StepList2.js +70 -70
  97. package/lib/components/Table/Table2.js +70 -70
  98. package/lib/components/Tabs/Tabs2.js +81 -81
  99. package/lib/components/TagInput/TagInput2.js +220 -217
  100. package/lib/components/TimePicker/TimePicker2.js +187 -186
  101. package/lib/components/TimePicker/time.js +63 -62
  102. package/lib/components/Timeline/Timeline2.js +199 -199
  103. package/lib/components/Timeline/scale.js +67 -64
  104. package/lib/components/Toast/Toaster.js +100 -98
  105. package/lib/components/Toast/store.js +90 -94
  106. package/lib/components/ToggleGroup/ToggleGroup2.js +76 -76
  107. package/lib/components/Toolbar/Toolbar2.js +163 -161
  108. package/lib/components/Tracker/Tracker2.js +82 -82
  109. package/lib/components/TreeDiagram/TreeDiagram2.js +123 -124
  110. package/lib/components/TreeView/TreeView2.js +154 -152
  111. package/lib/hooks/timing.js +31 -30
  112. package/lib/hooks/useControllableState.js +37 -38
  113. package/lib/hooks/useCountdown.js +53 -56
  114. package/lib/hooks/useDigitInput.js +66 -41
  115. package/lib/hooks/useDismiss.js +55 -58
  116. package/lib/hooks/useElapsed.js +57 -55
  117. package/lib/hooks/useFloating.js +44 -44
  118. package/lib/hooks/useFocusTrap.js +70 -46
  119. package/lib/hooks/usePresence.js +23 -22
  120. package/lib/hooks/usePressToOpen.js +51 -51
  121. package/lib/hooks/useScrollLock.js +57 -58
  122. package/lib/hooks/useSelection.js +49 -52
  123. package/lib/index.js +65 -65
  124. package/lib/primitives/AspectRatio2.js +57 -57
  125. package/lib/primitives/BrandIcon.js +189 -158
  126. package/lib/primitives/ColorDot2.js +50 -45
  127. package/lib/primitives/CopyButton2.js +52 -50
  128. package/lib/primitives/CountBadge2.js +53 -55
  129. package/lib/primitives/Countdown2.js +28 -25
  130. package/lib/primitives/Delta2.js +41 -41
  131. package/lib/primitives/Elapsed.js +47 -47
  132. package/lib/primitives/FileIcon2.js +86 -86
  133. package/lib/primitives/Flag2.js +122 -122
  134. package/lib/primitives/IconStack2.js +55 -31
  135. package/lib/primitives/IconTile2.js +43 -43
  136. package/lib/primitives/Kbd2.js +55 -55
  137. package/lib/primitives/Layout2.js +78 -78
  138. package/lib/primitives/Link2.js +39 -36
  139. package/lib/primitives/MaskedText2.js +74 -52
  140. package/lib/primitives/Progress2.js +67 -66
  141. package/lib/primitives/RelativeTime.js +54 -61
  142. package/lib/primitives/SearchInput2.js +45 -45
  143. package/lib/primitives/SelectorButton2.js +72 -76
  144. package/lib/primitives/Spinner2.js +56 -56
  145. package/lib/primitives/StatusIcon2.js +63 -63
  146. package/lib/primitives/Swatch2.js +55 -61
  147. package/lib/primitives/Tooltip2.js +78 -78
  148. package/lib/primitives/Typography2.js +53 -53
  149. package/lib/primitives/formatCountdown.js +30 -29
  150. package/lib/primitives/formatElapsed.js +46 -49
  151. package/lib/primitives/formatRelativeTime.js +76 -50
  152. package/lib/primitives/hotkey.js +80 -80
  153. package/lib/primitives/index.js +169 -168
  154. package/lib/primitives/maskValue.js +55 -50
  155. package/lib/style.css +1 -1
  156. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  157. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  158. package/package.json +1 -1
@@ -3,131 +3,130 @@ const e = t;
3
3
  (function(e, n) {
4
4
  let r = t, i = e();
5
5
  for (;;) try {
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;
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
7
  i.push(i.shift());
8
8
  } catch {
9
9
  i.push(i.shift());
10
10
  }
11
- })(u, 689518);
11
+ })(d, 757256);
12
12
  function t(e, n) {
13
- e -= 256;
14
- let r = u(), i = r[e];
15
- t.phjRMd === void 0 && (t.WsJHCA = function(e) {
13
+ e -= 373;
14
+ let r = d(), i = r[e];
15
+ t.ouPFgA === void 0 && (t.ydYIDY = function(e) {
16
16
  let t = "", n = "";
17
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);
18
18
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
19
19
  return decodeURIComponent(n);
20
- }, t.sHrgda = {}, t.phjRMd = !0);
20
+ }, t.fQSWMJ = {}, t.ouPFgA = !0);
21
21
  let a = r[0];
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;
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;
25
25
  }
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: 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),
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),
35
35
  style: u,
36
- children: [a && s(f(256), {
37
- className: "ds-list__label",
36
+ children: [a && s(f(414), {
37
+ className: f(406),
38
38
  children: a
39
39
  }), s("ul", {
40
- className: f(257),
40
+ className: f(375),
41
41
  "aria-label": d,
42
- children: e
42
+ children: t
43
43
  })]
44
44
  });
45
45
  }
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 }) {
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 }) {
53
47
  let T = e, E = i(null);
54
48
  r(() => {
55
- let e = t, n = E.current;
49
+ let e = t, n = E[e(378)];
56
50
  if (!b || !n) return;
57
- n[e(265)][e(282)] = n[e(268)] + "px";
51
+ n.style[e(399)] = n.offsetHeight + "px";
58
52
  let r = requestAnimationFrame(() => {
59
53
  let t = e;
60
- n[t(265)][t(282)] = "0px";
54
+ n[t(413)].height = t(410);
61
55
  });
62
56
  return () => {
63
- let t = e;
64
- cancelAnimationFrame(r), n.style[t(282)] = "";
57
+ cancelAnimationFrame(r), n.style.height = "";
65
58
  };
66
59
  }, [b]);
67
60
  let D = !v && (!!m || !!h), O = c(o, { children: [
68
- d && s(T(275), {
69
- className: "ds-list-item__leading",
61
+ d && s(T(403), {
62
+ className: T(412),
70
63
  children: d
71
64
  }),
72
- c(T(275), {
73
- className: T(286),
74
- children: [s("span", {
75
- className: T(274),
65
+ c("span", {
66
+ className: T(380),
67
+ children: [s(T(403), {
68
+ className: T(397),
76
69
  children: l
77
- }), u && s("span", {
70
+ }), u && s(T(403), {
78
71
  className: "ds-list-item__desc",
79
72
  children: u
80
73
  })]
81
74
  }),
82
- f && s(T(275), {
83
- className: T(259),
75
+ f && s(T(403), {
76
+ className: "ds-list-item__meta",
84
77
  children: f
85
78
  })
86
79
  ] });
87
80
  return c("li", {
88
81
  ref: E,
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),
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),
90
83
  "data-selected": _ || void 0,
91
84
  "data-disabled": v || void 0,
92
85
  "data-leaving": b || void 0,
93
86
  inert: b || void 0,
94
87
  children: [
95
- S !== void 0 && s("span", {
88
+ S !== void 0 && s(T(403), {
96
89
  className: "ds-list-item__fill",
97
90
  "data-tone": C,
98
91
  "aria-hidden": !0,
99
- style: { width: Math[T(267)](0, Math.min(1, S)) * 100 + "%" }
92
+ style: { width: Math[T(386)](0, Math.min(1, S)) * 100 + "%" }
100
93
  }),
101
94
  m && !v ? s("a", {
102
95
  href: m,
103
- className: T(263),
104
- "aria-current": _ ? T(266) : void 0,
96
+ className: T(392),
97
+ "aria-current": _ ? "page" : void 0,
105
98
  onClick: h,
106
99
  children: O
107
- }) : h && !v ? s(T(256), {
108
- role: T(271),
100
+ }) : h && !v ? s(T(414), {
101
+ role: T(373),
109
102
  tabIndex: 0,
110
- className: "ds-list-item__main",
103
+ className: T(392),
111
104
  "aria-pressed": _,
112
105
  onClick: h,
113
106
  onKeyDown: (e) => {
114
107
  let t = T;
115
- (e[t(277)] === "Enter" || e[t(277)] === " ") && (e.preventDefault(), h?.());
108
+ (e[t(390)] === t(384) || e[t(390)] === " ") && (e[t(383)](), h?.());
116
109
  },
117
110
  children: O
118
- }) : s(T(256), {
119
- className: "ds-list-item__main",
111
+ }) : s(T(414), {
112
+ className: T(392),
120
113
  children: O
121
114
  }),
122
- (p || g) && c(T(275), {
123
- className: "ds-list-item__trailing",
115
+ (p || g) && c(T(403), {
116
+ className: T(381),
124
117
  children: [p, g && s(a, {
125
- className: T(276),
118
+ className: T(409),
126
119
  "aria-hidden": !0
127
120
  })]
128
121
  })
129
122
  ]
130
123
  });
131
124
  }
132
- l[e(288)] = d;
133
- export { l as List, d as ListItem };
125
+ 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
+ return d = function() {
128
+ return e;
129
+ }, d();
130
+ }
131
+ l[e(387)] = u;
132
+ export { l as List, u as ListItem };
@@ -1,131 +1,131 @@
1
1
  "use client";
2
- const e = p;
2
+ const e = n;
3
3
  (function(e, t) {
4
- let n = p, r = e();
4
+ let r = n, i = e();
5
5
  for (;;) try {
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
- r.push(r.shift());
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());
8
8
  } catch {
9
- r.push(r.shift());
9
+ i.push(i.shift());
10
10
  }
11
- })(g, 199027);
11
+ })(o, 840095);
12
12
  import { cx as t } from "../../primitives/index.js";
13
- import { useFloating as n } from "../../hooks/useFloating.js";
14
- /* empty css */
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 = 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) {
13
+ function n(e, t) {
14
+ e -= 471;
15
+ let r = o(), i = r[e];
16
+ n.uljGqv === void 0 && (n.rHdcMF = function(e) {
30
17
  let t = "", n = "";
31
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);
32
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
33
20
  return decodeURIComponent(n);
34
- }, p.SwTeeS = {}, p.fVUnhW = !0);
35
- let i = n[0];
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;
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";
28
+ /* 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;
43
+ return -1;
39
44
  }
40
- function m(t) {
45
+ var m = (t) => t.findIndex((t) => !t[e(472)]);
46
+ function h(t) {
41
47
  let n = e;
42
- for (let e = t[n(176)] - 1; e >= 0; e--) if (!t[e][n(154)]) return e;
48
+ for (let e = t[n(500)] - 1; e >= 0; e--) if (!t[e][n(472)]) return e;
43
49
  return -1;
44
50
  }
45
- var h = r(function({ anchorRef: r, closing: i, className: a, children: o, ...c }, u) {
46
- let d = e, { style: f, side: p } = n(r, !0, c);
47
- return l(s(d(164), {
48
- ref: u,
49
- className: t("ds-popover", "ds-scroll", a),
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),
50
56
  "data-side": p,
51
- "data-state": d(i ? 150 : 192),
57
+ "data-state": i ? u(497) : "open",
52
58
  style: f,
53
- onPointerDown: (e) => e[d(171)](),
59
+ onPointerDown: (e) => e[u(482)](),
54
60
  children: o
55
- }), document.body);
61
+ }), document[u(501)]);
56
62
  });
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": _ }) {
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": _ }) {
64
64
  let y = e;
65
- i(() => {
66
- let e = p;
67
- r < 0 || document[e(158)](u(t, r))?.[e(155)]({ block: e(162) });
68
- }, [t, r]);
65
+ a(() => {
66
+ let e = n;
67
+ i < 0 || document[e(508)](f(t, i))?.[e(495)]({ block: e(503) });
68
+ }, [t, i]);
69
69
  let b = [];
70
- n[y(159)]((e, i) => {
71
- let c = y;
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
- active: i === r,
79
- selected: a(e[c(151)]),
80
- disabled: !!e[c(154)]
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)]
81
81
  };
82
- b[c(172)](s(c(164), {
83
- id: u(t, i),
84
- "data-index": i,
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, {
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, {
94
94
  option: e,
95
- state: p,
95
+ state: u,
96
96
  multiple: d
97
97
  })
98
- }, e[c(151)]));
98
+ }, e.value));
99
99
  });
100
- let x = n[y(176)];
101
- return c(y(164), {
100
+ let x = r[y(500)];
101
+ return u("div", {
102
102
  id: t,
103
- role: y(189),
103
+ role: y(481),
104
104
  "aria-label": _,
105
105
  "aria-multiselectable": d || void 0,
106
- className: y(160),
106
+ className: "ds-listbox",
107
107
  style: g,
108
108
  children: [
109
109
  b,
110
- h && c(y(164), {
111
- id: u(t, x),
112
- role: "option",
110
+ h && u(y(487), {
111
+ id: f(t, x),
112
+ role: y(484),
113
113
  "aria-selected": !1,
114
- "data-active": r === x || void 0,
115
- className: y(179),
116
- onPointerDown: (e) => e.preventDefault(),
117
- onPointerMove: () => r !== x && l(x),
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)]
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), {
120
+ className: "ds-option__icon",
121
+ children: h[y(505)]
122
+ }), l(y(474), {
123
+ className: y(511),
124
+ children: h.label
125
125
  })]
126
126
  }),
127
- !n[y(176)] && !h && s(y(164), {
128
- className: y(156),
127
+ !r[y(500)] && !h && l(y(487), {
128
+ className: y(506),
129
129
  children: m
130
130
  })
131
131
  ]
@@ -133,31 +133,31 @@ function _({ id: t, options: n, activeIndex: r, isSelected: a, onSelect: o, onAc
133
133
  }
134
134
  function v({ option: t, state: n, multiple: r }) {
135
135
  let i = e;
136
- return c(o, { children: [
137
- r && s("span", {
138
- className: i(187),
139
- "data-checked": n[i(193)] || void 0,
140
- children: s(a, {})
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, {})
141
141
  }),
142
- t.icon && s(i(183), {
143
- className: i(186),
144
- children: t.icon
142
+ t[i(505)] && l("span", {
143
+ className: "ds-option__icon",
144
+ children: t[i(505)]
145
145
  }),
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)]
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)]
154
154
  })]
155
155
  }),
156
- t[i(180)] && s(i(183), {
157
- className: i(178),
158
- children: t[i(180)]
156
+ t[i(480)] && l(i(474), {
157
+ className: i(507),
158
+ children: t.meta
159
159
  }),
160
- !r && n.selected && s(a, { className: "ds-option__check" })
160
+ !r && n[i(473)] && l(s, { className: i(496) })
161
161
  ] });
162
162
  }
163
- export { _ as Listbox, h as ListboxPopover, f as firstEnabled, m as lastEnabled, d as nextEnabled, u as optionId };
163
+ export { _ as Listbox, g as ListboxPopover, m as firstEnabled, h as lastEnabled, p as nextEnabled, f as optionId };
@@ -1,89 +1,84 @@
1
1
  "use client";
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());
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());
7
20
  } catch {
8
- r.push(r.shift());
21
+ i.push(i.shift());
9
22
  }
10
- })(a, 766572);
11
- import { Text as t } from "../../primitives/Typography2.js";
12
- import { Inline as n } from "../../primitives/Layout2.js";
13
- import { RelativeTime as r } from "../../primitives/RelativeTime.js";
14
- import { cx as i } from "../../primitives/index.js";
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";
15
27
  function a() {
16
28
  var e = [
17
- "mte1mdbbugDqwhC",
18
- "zhmTBwfYA2vY",
19
- "murNs0TYBG",
20
- "C3bHBG",
21
- "yM9KEs1Tza",
22
- "mtq0EgHmELbk",
23
- "ovzQuuHWuG",
24
- "ntK2mJCWnxvzv2LpyG",
25
- "mJeWnJi4oeXurfPHvG",
29
+ "mtbXvMrksMm",
30
+ "mte5otGYmffsyu11AG",
26
31
  "zhmTBwfYA2vYx19KyxrL",
27
- "C3rHCNq",
28
- "BMv1DhjHBa",
29
- "odmWnJu3mgTOtLb0uq",
30
- "C2vJB25Kyxj5",
31
- "mZyZnZm3mgfVzvbzCG",
32
+ "zhmTBwfYA2vY",
32
33
  "zhmTBwfYA2vYx190zxH0",
33
- "mJe1otrqC0nfuhK",
34
- "mtu2zxLuDLz4",
35
- "zhmTBwfYA2vYls0",
36
- "mtq4ntK3og5ZB0nvvG",
37
- "mJbpz1ndBLO",
38
- "ofvUDe1pvW",
34
+ "ntu4ntC4n0vjzvLQzG",
35
+ "mtiXmZG4tMXUsejp",
36
+ "nLnXC2zOuG",
37
+ "mZvhzvfSBhC",
38
+ "BMv1DhjHBa",
39
+ "mteWnty3neXhv0ffzG",
40
+ "nMDtD0fwDW",
41
+ "yM9KEs1Tza",
42
+ "zhmTBwfYA2vYx19Py29U",
43
+ "mJu5mZm4mefdsezpCq",
44
+ "mtq1ode3mtbyBwTtuxe",
45
+ "nJy4ndi4mfD6t1zouq",
39
46
  "BM90zq"
40
47
  ];
41
48
  return a = function() {
42
49
  return e;
43
50
  }, a();
44
51
  }
52
+ import { cx as o } from "../../primitives/index.js";
45
53
  /* 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, {
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, {
50
58
  gap: f ? 3 : 2,
51
- align: g(435),
59
+ align: "start",
52
60
  wrap: !1,
53
- role: g(424),
54
- className: i(g(426), g(420) + l, m),
61
+ role: g(430),
62
+ className: o(g(434), "ds-marker--" + a, m),
55
63
  "data-appear": p || void 0,
56
64
  style: f ? {
57
65
  "--_gutter": f + "px",
58
66
  ...h
59
67
  } : h,
60
- children: [a && s(g(428), {
61
- className: "ds-marker__icon",
68
+ children: [e && c("span", {
69
+ className: g(426),
62
70
  "data-gutter": f ? !0 : void 0,
63
71
  "aria-hidden": !0,
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, {
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, {
70
78
  date: d,
71
- className: g(434)
79
+ className: g(433)
72
80
  })] })]
73
81
  })]
74
82
  });
75
83
  }
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
- }
89
- export { l as Marker };
84
+ export { u as Marker };