@iamfiro/design 0.3.1 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/avatar/AGENTS.md +29 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/agents/tooltip/AGENTS.md +1 -1
  6. package/lib/components/Accordion/Accordion2.js +92 -92
  7. package/lib/components/ActionBar/ActionBar2.js +42 -45
  8. package/lib/components/Alert/Alert2.js +77 -77
  9. package/lib/components/AppShell/AppShell2.js +70 -71
  10. package/lib/components/AreaChart/AreaChart.js +32 -35
  11. package/lib/components/BarChart/BarChart2.js +155 -155
  12. package/lib/components/BarList/BarList2.js +93 -93
  13. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -64
  14. package/lib/components/Calendar/Calendar2.js +183 -182
  15. package/lib/components/Calendar/DatePicker2.js +116 -115
  16. package/lib/components/Calendar/date.js +67 -66
  17. package/lib/components/Card/Card2.js +67 -67
  18. package/lib/components/CardFrame/CardFrame2.js +34 -37
  19. package/lib/components/Chart/ChartParts.js +90 -90
  20. package/lib/components/Chart/chart2.js +62 -62
  21. package/lib/components/Chart/useChartInteraction.js +51 -51
  22. package/lib/components/ChatBubble/ChatBubble2.js +117 -117
  23. package/lib/components/ChatBubble/formatChatTime.js +37 -36
  24. package/lib/components/ChatComposer/ChatComposer2.js +55 -55
  25. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  26. package/lib/components/CodeBlock/highlight.js +72 -72
  27. package/lib/components/ColorPicker/ColorPicker2.js +232 -231
  28. package/lib/components/ColorPicker/color.js +67 -67
  29. package/lib/components/ColorPicker/presets.js +25 -24
  30. package/lib/components/Combobox/Combobox2.js +140 -140
  31. package/lib/components/CommandMenu/CommandMenu.js +135 -135
  32. package/lib/components/Comment/Comment2.js +82 -57
  33. package/lib/components/ContextMenu/ContextMenu2.js +101 -100
  34. package/lib/components/DataGrid/DataGrid2.js +872 -871
  35. package/lib/components/DataGrid/GridPopover.js +98 -98
  36. package/lib/components/DataGrid/anchor.js +34 -33
  37. package/lib/components/DataGrid/model.js +291 -290
  38. package/lib/components/DataGrid/panels.js +337 -336
  39. package/lib/components/DataGrid/typeMeta.js +49 -48
  40. package/lib/components/DataGrid/types.js +34 -33
  41. package/lib/components/DescriptionList/DescriptionList2.js +109 -109
  42. package/lib/components/Dialog/AlertDialog.js +53 -53
  43. package/lib/components/Dialog/Dialog2.js +72 -72
  44. package/lib/components/Dialog/modal.js +67 -68
  45. package/lib/components/Drawer/Drawer2.js +117 -117
  46. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -266
  47. package/lib/components/DropdownMenu/menuCore.js +68 -42
  48. package/lib/components/Dropzone/Dropzone2.js +78 -78
  49. package/lib/components/EmptyState/EmptyState2.js +58 -56
  50. package/lib/components/FileChip/FileChip2.js +72 -48
  51. package/lib/components/FileUpload/FileUpload.js +137 -138
  52. package/lib/components/FilterChips/FilterChips2.js +61 -61
  53. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  54. package/lib/components/FunnelChart/funnel.js +50 -49
  55. package/lib/components/Highlight/Highlight2.js +56 -56
  56. package/lib/components/HoverCard/HoverCard.js +73 -73
  57. package/lib/components/InlineDiff/InlineDiff2.js +129 -129
  58. package/lib/components/InlineDiff/diff.js +87 -87
  59. package/lib/components/InlineDiff/useDiffReview.js +54 -52
  60. package/lib/components/Kanban/Kanban2.js +383 -384
  61. package/lib/components/Kanban/KanbanCard.js +68 -93
  62. package/lib/components/Kanban/move.js +43 -43
  63. package/lib/components/LineChart/LineChart2.js +164 -164
  64. package/lib/components/List/List2.js +60 -60
  65. package/lib/components/Listbox/Listbox2.js +108 -108
  66. package/lib/components/Marker/Marker2.js +59 -57
  67. package/lib/components/Menubar/Menubar2.js +120 -119
  68. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  69. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -279
  70. package/lib/components/NoticeStack/NoticeStack2.js +109 -109
  71. package/lib/components/NumberStepper/NumberStepper2.js +70 -70
  72. package/lib/components/OtpInput/OtpInput2.js +94 -94
  73. package/lib/components/Pagination/Pagination2.js +109 -109
  74. package/lib/components/Pagination/paginationRange.js +37 -38
  75. package/lib/components/PhoneInput/PhoneInput.js +83 -84
  76. package/lib/components/PieChart/PieChart2.js +157 -157
  77. package/lib/components/PieChart/arc.js +72 -72
  78. package/lib/components/PieChart/useArcTween.js +50 -53
  79. package/lib/components/Popover/Popover2.js +62 -61
  80. package/lib/components/ProgressTracker/ProgressTracker2.js +104 -104
  81. package/lib/components/Rating/Rating2.js +89 -88
  82. package/lib/components/Resizable/Resizable2.js +133 -134
  83. package/lib/components/Resizable/layout.js +56 -56
  84. package/lib/components/ScaledPreview/ScaledPreview2.js +64 -63
  85. package/lib/components/ScatterChart/ScatterChart2.js +252 -251
  86. package/lib/components/ScatterChart/scatter.js +50 -52
  87. package/lib/components/ScrollArea/ScrollArea2.js +122 -122
  88. package/lib/components/Select/Select2.js +84 -85
  89. package/lib/components/Sidebar/Sidebar2.js +79 -79
  90. package/lib/components/Skeleton/Skeleton2.js +56 -56
  91. package/lib/components/Slider/Slider2.js +63 -63
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -46
  93. package/lib/components/SparkChart/SparkChart2.js +129 -128
  94. package/lib/components/SparkChart/spark.js +49 -48
  95. package/lib/components/Sparkbar/Sparkbar2.js +59 -58
  96. package/lib/components/SplitView/SplitView2.js +54 -55
  97. package/lib/components/Stat/Stat2.js +59 -59
  98. package/lib/components/StepList/StepList2.js +78 -78
  99. package/lib/components/Table/Table2.js +55 -55
  100. package/lib/components/Tabs/Tabs2.js +76 -76
  101. package/lib/components/TagInput/TagInput2.js +218 -215
  102. package/lib/components/TimePicker/TimePicker2.js +204 -204
  103. package/lib/components/TimePicker/time.js +59 -58
  104. package/lib/components/Timeline/Timeline2.js +179 -179
  105. package/lib/components/Timeline/scale.js +60 -55
  106. package/lib/components/Toast/Toaster.js +103 -103
  107. package/lib/components/Toast/store.js +47 -47
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +77 -77
  109. package/lib/components/Toolbar/Toolbar2.js +138 -138
  110. package/lib/components/Tracker/Tracker2.js +99 -99
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +117 -117
  112. package/lib/components/TreeView/TreeView2.js +145 -145
  113. package/lib/hooks/timing.js +33 -33
  114. package/lib/hooks/useControllableState.js +33 -33
  115. package/lib/hooks/useCountdown.js +54 -55
  116. package/lib/hooks/useDigitInput.js +85 -84
  117. package/lib/hooks/useDismiss.js +55 -55
  118. package/lib/hooks/useElapsed.js +55 -55
  119. package/lib/hooks/useFloating.js +21 -21
  120. package/lib/hooks/useFocusTrap.js +67 -67
  121. package/lib/hooks/usePresence.js +33 -29
  122. package/lib/hooks/usePressToOpen.js +33 -33
  123. package/lib/hooks/useScrollLock.js +54 -55
  124. package/lib/hooks/useSelection.js +54 -48
  125. package/lib/index.js +67 -68
  126. package/lib/primitives/AspectRatio2.js +58 -54
  127. package/lib/primitives/BrandIcon.js +189 -158
  128. package/lib/primitives/ColorDot2.js +52 -51
  129. package/lib/primitives/CopyButton2.js +66 -64
  130. package/lib/primitives/CountBadge2.js +56 -56
  131. package/lib/primitives/Countdown2.js +36 -34
  132. package/lib/primitives/Delta2.js +41 -66
  133. package/lib/primitives/Elapsed.js +32 -32
  134. package/lib/primitives/FileIcon2.js +90 -90
  135. package/lib/primitives/Flag2.js +157 -157
  136. package/lib/primitives/IconStack2.js +60 -58
  137. package/lib/primitives/IconTile2.js +46 -48
  138. package/lib/primitives/Kbd2.js +51 -51
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +37 -35
  141. package/lib/primitives/MaskedText2.js +71 -75
  142. package/lib/primitives/Progress2.js +72 -72
  143. package/lib/primitives/RelativeTime.js +60 -64
  144. package/lib/primitives/SearchInput2.js +55 -56
  145. package/lib/primitives/SelectorButton2.js +69 -71
  146. package/lib/primitives/Spinner2.js +63 -59
  147. package/lib/primitives/StatusIcon2.js +66 -66
  148. package/lib/primitives/Swatch2.js +54 -56
  149. package/lib/primitives/Tooltip2.js +77 -77
  150. package/lib/primitives/Typography2.js +67 -67
  151. package/lib/primitives/formatCountdown.js +38 -41
  152. package/lib/primitives/formatElapsed.js +41 -40
  153. package/lib/primitives/formatRelativeTime.js +74 -48
  154. package/lib/primitives/hotkey.js +81 -81
  155. package/lib/primitives/index.js +220 -199
  156. package/lib/primitives/maskValue.js +53 -52
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  159. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  160. package/lib/types/primitives/index.d.ts +6 -2
  161. package/package.json +1 -1
@@ -1,132 +1,132 @@
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(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
- })(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
+ })(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) {
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.fQSWMJ = {}, t.ouPFgA = !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.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;
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 }) {
31
+ function l({ children: t, variant: r = e(393), density: i = e(385), label: a, animated: o, className: l, style: u, "aria-label": d }) {
38
32
  let f = e;
39
- return c(f(484), {
40
- className: t(f(508), "ds-list--" + r, f(496) + i, o && f(495), l),
33
+ return c(f(414), {
34
+ className: n("ds-list", f(405) + r, "ds-list--" + i, o && f(391), l),
41
35
  style: u,
42
- children: [a && s("div", {
43
- className: f(494),
36
+ children: [a && s(f(414), {
37
+ className: f(406),
44
38
  children: a
45
39
  }), s("ul", {
46
- className: f(470),
40
+ className: f(375),
47
41
  "aria-label": d,
48
- children: n
42
+ children: t
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({ 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 = n, t = E[e(507)];
56
- if (!b || !t) return;
57
- t[e(472)].height = t[e(474)] + "px";
49
+ let e = t, n = E[e(378)];
50
+ if (!b || !n) return;
51
+ n.style[e(399)] = n.offsetHeight + "px";
58
52
  let r = requestAnimationFrame(() => {
59
- let n = e;
60
- t[n(472)].height = n(469);
53
+ let t = e;
54
+ n[t(413)].height = t(410);
61
55
  });
62
56
  return () => {
63
- cancelAnimationFrame(r), t.style.height = "";
57
+ cancelAnimationFrame(r), n.style.height = "";
64
58
  };
65
59
  }, [b]);
66
60
  let D = !v && (!!m || !!h), O = c(o, { children: [
67
- d && s(T(493), {
68
- className: "ds-list-item__leading",
61
+ d && s(T(403), {
62
+ className: T(412),
69
63
  children: d
70
64
  }),
71
- c(T(493), {
72
- className: T(498),
73
- children: [s(T(493), {
74
- className: T(497),
65
+ c("span", {
66
+ className: T(380),
67
+ children: [s(T(403), {
68
+ className: T(397),
75
69
  children: l
76
- }), u && s(T(493), {
70
+ }), u && s(T(403), {
77
71
  className: "ds-list-item__desc",
78
72
  children: u
79
73
  })]
80
74
  }),
81
- f && s("span", {
82
- className: T(505),
75
+ f && s(T(403), {
76
+ className: "ds-list-item__meta",
83
77
  children: f
84
78
  })
85
79
  ] });
86
80
  return c("li", {
87
81
  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),
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),
89
83
  "data-selected": _ || void 0,
90
84
  "data-disabled": v || void 0,
91
85
  "data-leaving": b || void 0,
92
86
  inert: b || void 0,
93
87
  children: [
94
- S !== void 0 && s(T(493), {
95
- className: T(509),
88
+ S !== void 0 && s(T(403), {
89
+ className: "ds-list-item__fill",
96
90
  "data-tone": C,
97
91
  "aria-hidden": !0,
98
- style: { width: Math.max(0, Math[T(487)](1, S)) * 100 + "%" }
92
+ style: { width: Math[T(386)](0, Math.min(1, S)) * 100 + "%" }
99
93
  }),
100
94
  m && !v ? s("a", {
101
95
  href: m,
102
- className: T(501),
103
- "aria-current": _ ? T(488) : void 0,
96
+ className: T(392),
97
+ "aria-current": _ ? "page" : void 0,
104
98
  onClick: h,
105
99
  children: O
106
- }) : h && !v ? s(T(484), {
107
- role: T(480),
100
+ }) : h && !v ? s(T(414), {
101
+ role: T(373),
108
102
  tabIndex: 0,
109
- className: T(501),
103
+ className: T(392),
110
104
  "aria-pressed": _,
111
105
  onClick: h,
112
106
  onKeyDown: (e) => {
113
107
  let t = T;
114
- (e[t(499)] === t(486) || e[t(499)] === " ") && (e.preventDefault(), h?.());
108
+ (e[t(390)] === t(384) || e[t(390)] === " ") && (e[t(383)](), h?.());
115
109
  },
116
110
  children: O
117
- }) : s("div", {
118
- className: "ds-list-item__main",
111
+ }) : s(T(414), {
112
+ className: T(392),
119
113
  children: O
120
114
  }),
121
- (p || g) && c(T(493), {
122
- className: T(506),
115
+ (p || g) && c(T(403), {
116
+ className: T(381),
123
117
  children: [p, g && s(a, {
124
- className: T(511),
118
+ className: T(409),
125
119
  "aria-hidden": !0
126
120
  })]
127
121
  })
128
122
  ]
129
123
  });
130
124
  }
131
- u[e(481)] = d;
132
- export { u 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 = d;
2
+ const e = n;
3
3
  (function(e, t) {
4
- let n = d, r = e();
4
+ let r = n, i = 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;
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
- })(f, 856009);
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 = (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) {
13
+ function n(e, t) {
14
+ e -= 471;
15
+ let r = o(), i = r[e];
16
+ n.uljGqv === void 0 && (n.rHdcMF = function(e) {
24
17
  let t = "", n = "";
25
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);
26
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
27
20
  return decodeURIComponent(n);
28
- }, d.naGwhV = {}, d.cprpEA = !0);
29
- 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;
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;
33
26
  }
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() {
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() {
37
33
  return e;
38
- }, f();
34
+ }, o();
39
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
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;
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
43
  return -1;
44
44
  }
45
- var m = (t) => t[e(359)]((t) => !t[e(384)]);
45
+ var m = (t) => t.findIndex((t) => !t[e(472)]);
46
46
  function h(t) {
47
47
  let n = e;
48
- for (let e = t[n(372)] - 1; e >= 0; e--) if (!t[e][n(384)]) return e;
48
+ for (let e = t[n(500)] - 1; e >= 0; e--) if (!t[e][n(472)]) return e;
49
49
  return -1;
50
50
  }
51
- var g = r(function({ anchorRef: r, closing: i, className: a, children: o, ...c }, u) {
52
- let d = e, { style: f, side: p } = n(r, !0, c);
53
- return l(s(d(389), {
54
- ref: u,
55
- className: t("ds-popover", d(366), 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),
56
56
  "data-side": p,
57
- "data-state": i ? "closed" : d(364),
57
+ "data-state": i ? u(497) : "open",
58
58
  style: f,
59
- onPointerDown: (e) => e[d(373)](),
59
+ onPointerDown: (e) => e[u(482)](),
60
60
  children: o
61
- }), document[d(388)]);
61
+ }), document[u(501)]);
62
62
  });
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": _ }) {
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 = d;
67
- r < 0 || document[e(381)](u(t, r))?.[e(386)]({ block: e(357) });
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(383)]((e, i) => {
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 = {
78
- active: i === r,
79
- selected: a(e[c(361)]),
80
- disabled: !!e.disabled
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.push(s(c(389), {
83
- id: u(t, i),
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,
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
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, {
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: d,
96
- multiple: f
95
+ state: u,
96
+ multiple: d
97
97
  })
98
- }, e[c(361)]));
98
+ }, e.value));
99
99
  });
100
- let x = n.length;
101
- return c(y(389), {
100
+ let x = r[y(500)];
101
+ return u("div", {
102
102
  id: t,
103
- role: y(370),
103
+ role: y(481),
104
104
  "aria-label": _,
105
- "aria-multiselectable": f || void 0,
105
+ "aria-multiselectable": d || void 0,
106
106
  className: "ds-listbox",
107
107
  style: g,
108
108
  children: [
109
109
  b,
110
- h && c(y(389), {
111
- id: u(t, x),
112
- role: y(396),
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(371),
116
- onPointerDown: (e) => e.preventDefault(),
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)]
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(372)] && !h && s("div", {
128
- className: y(363),
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(i(390), {
138
- className: i(380),
139
- "data-checked": n[i(368)] || 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[i(398)] && s(i(390), {
142
+ t[i(505)] && l("span", {
143
143
  className: "ds-option__icon",
144
- children: t[i(398)]
144
+ children: t[i(505)]
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
+ 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(365)] && s(i(390), {
157
- className: "ds-option__meta",
158
- children: t[i(365)]
156
+ t[i(480)] && l(i(474), {
157
+ className: i(507),
158
+ children: t.meta
159
159
  }),
160
- !r && n[i(368)] && s(a, { className: i(387) })
160
+ !r && n[i(473)] && l(s, { className: i(496) })
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, g as ListboxPopover, m as firstEnabled, h as lastEnabled, p as nextEnabled, f as optionId };
@@ -1,82 +1,84 @@
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());
6
- } catch {
7
- i.push(i.shift());
8
- }
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) {
2
+ function e(t, n) {
3
+ t -= 426;
4
+ var r = a(), i = r[t];
5
+ e.Weirsw === void 0 && (e.HRHYup = function(e) {
15
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);
16
7
  for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
17
8
  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;
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;
23
14
  }
24
- import { Inline as n } from "../../primitives/Layout2.js";
25
- import { RelativeTime as r } from "../../primitives/RelativeTime.js";
26
- 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
+ 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());
20
+ } catch {
21
+ i.push(i.shift());
22
+ }
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() {
30
28
  var e = [
31
- "nteYndi3ow5Ou2X4tW",
32
- "nJvTBvP4CNO",
33
- "mtbSzM9Mu20",
34
- "C3bHBG",
35
- "C2vJB25Kyxj5",
36
- "mtiYntq3odfpuKPqrK0",
37
- "ohbszejIvW",
29
+ "mtbXvMrksMm",
30
+ "mte5otGYmffsyu11AG",
31
+ "zhmTBwfYA2vYx19KyxrL",
32
+ "zhmTBwfYA2vY",
38
33
  "zhmTBwfYA2vYx190zxH0",
39
- "zhmTBwfYA2vYls0",
40
- "mKHXqNzLEG",
41
- "nZu1mJq5BeDQq09V",
42
- "ndy3odq0A3jkuezd",
43
- "nJK3ndqYnfPVtu5UqW",
44
- "nJe2ody0nu52vvfvqq",
45
- "BM90zq",
46
- "mti3nJu4ntjUrhbUuve",
47
- "C3rHCNq"
34
+ "ntu4ntC4n0vjzvLQzG",
35
+ "mtiXmZG4tMXUsejp",
36
+ "nLnXC2zOuG",
37
+ "mZvhzvfSBhC",
38
+ "BMv1DhjHBa",
39
+ "mteWnty3neXhv0ffzG",
40
+ "nMDtD0fwDW",
41
+ "yM9KEs1Tza",
42
+ "zhmTBwfYA2vYx19Py29U",
43
+ "mJu5mZm4mefdsezpCq",
44
+ "mtq1ode3mtbyBwTtuxe",
45
+ "nJy4ndi4mfD6t1zouq",
46
+ "BM90zq"
48
47
  ];
49
- return c = function() {
48
+ return a = function() {
50
49
  return e;
51
- }, c();
50
+ }, a();
52
51
  }
53
- function l({ icon: c, tone: l = "neutral", children: u, date: d, gutter: f, appear: p, className: m, style: h }) {
52
+ import { cx as o } from "../../primitives/index.js";
53
+ /* 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 }) {
54
56
  var g = t;
55
- return s(n, {
57
+ return l(r, {
56
58
  gap: f ? 3 : 2,
57
- align: g(228),
59
+ align: "start",
58
60
  wrap: !1,
59
- role: g(226),
60
- className: i("ds-marker", g(220) + l, m),
61
+ role: g(430),
62
+ className: o(g(434), "ds-marker--" + a, m),
61
63
  "data-appear": p || void 0,
62
64
  style: f ? {
63
65
  "--_gutter": f + "px",
64
66
  ...h
65
67
  } : h,
66
- children: [c && o(g(232), {
67
- className: "ds-marker__icon",
68
+ children: [e && c("span", {
69
+ className: g(426),
68
70
  "data-gutter": f ? !0 : void 0,
69
71
  "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, {
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, {
76
78
  date: d,
77
- className: "ds-marker__date"
79
+ className: g(433)
78
80
  })] })]
79
81
  })]
80
82
  });
81
83
  }
82
- export { l as Marker };
84
+ export { u as Marker };