@iamfiro/design 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/agents/app-shell/AGENTS.md +99 -1
  2. package/lib/components/Accordion/Accordion2.js +93 -93
  3. package/lib/components/ActionBar/ActionBar2.js +44 -40
  4. package/lib/components/Alert/Alert2.js +64 -64
  5. package/lib/components/AppShell/AppShell2.js +73 -66
  6. package/lib/components/AreaChart/AreaChart.js +49 -47
  7. package/lib/components/BarChart/BarChart2.js +107 -107
  8. package/lib/components/BarList/BarList2.js +99 -99
  9. package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
  10. package/lib/components/Calendar/Calendar2.js +164 -164
  11. package/lib/components/Calendar/DatePicker2.js +76 -77
  12. package/lib/components/Calendar/date.js +49 -70
  13. package/lib/components/Card/Card2.js +104 -77
  14. package/lib/components/CardFrame/CardFrame2.js +46 -42
  15. package/lib/components/Chart/ChartParts.js +73 -73
  16. package/lib/components/Chart/chart2.js +53 -53
  17. package/lib/components/Chart/useChartInteraction.js +49 -49
  18. package/lib/components/ChatBubble/ChatBubble2.js +118 -118
  19. package/lib/components/ChatBubble/formatChatTime.js +42 -41
  20. package/lib/components/ChatComposer/ChatComposer2.js +102 -102
  21. package/lib/components/CodeBlock/CodeBlock2.js +51 -51
  22. package/lib/components/CodeBlock/highlight.js +85 -85
  23. package/lib/components/ColorPicker/ColorPicker2.js +373 -374
  24. package/lib/components/ColorPicker/color.js +94 -94
  25. package/lib/components/ColorPicker/presets.js +47 -46
  26. package/lib/components/Combobox/Combobox2.js +118 -117
  27. package/lib/components/CommandMenu/CommandMenu.js +121 -122
  28. package/lib/components/Comment/Comment2.js +56 -81
  29. package/lib/components/ContextMenu/ContextMenu2.js +91 -93
  30. package/lib/components/DataGrid/DataGrid2.js +845 -845
  31. package/lib/components/DataGrid/GridPopover.js +97 -97
  32. package/lib/components/DataGrid/anchor.js +34 -36
  33. package/lib/components/DataGrid/model.js +299 -299
  34. package/lib/components/DataGrid/panels.js +393 -393
  35. package/lib/components/DataGrid/typeMeta.js +53 -53
  36. package/lib/components/DataGrid/types.js +22 -22
  37. package/lib/components/DescriptionList/DescriptionList2.js +57 -57
  38. package/lib/components/Dialog/AlertDialog.js +56 -56
  39. package/lib/components/Dialog/Dialog2.js +68 -69
  40. package/lib/components/Dialog/modal.js +61 -57
  41. package/lib/components/Drawer/Drawer2.js +161 -161
  42. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
  43. package/lib/components/DropdownMenu/menuCore.js +42 -68
  44. package/lib/components/Dropzone/Dropzone2.js +81 -81
  45. package/lib/components/EmptyState/EmptyState2.js +55 -54
  46. package/lib/components/FileChip/FileChip2.js +39 -63
  47. package/lib/components/FileUpload/FileUpload.js +157 -156
  48. package/lib/components/FilterChips/FilterChips2.js +51 -51
  49. package/lib/components/FunnelChart/FunnelChart2.js +171 -171
  50. package/lib/components/FunnelChart/funnel.js +55 -57
  51. package/lib/components/Highlight/Highlight2.js +48 -48
  52. package/lib/components/HoverCard/HoverCard.js +59 -59
  53. package/lib/components/InlineDiff/InlineDiff2.js +110 -111
  54. package/lib/components/InlineDiff/diff.js +89 -89
  55. package/lib/components/InlineDiff/useDiffReview.js +63 -65
  56. package/lib/components/Kanban/Kanban2.js +424 -425
  57. package/lib/components/Kanban/KanbanCard.js +98 -73
  58. package/lib/components/Kanban/move.js +52 -49
  59. package/lib/components/LineChart/LineChart2.js +222 -222
  60. package/lib/components/List/List2.js +60 -59
  61. package/lib/components/Listbox/Listbox2.js +117 -117
  62. package/lib/components/Marker/Marker2.js +58 -59
  63. package/lib/components/Menubar/Menubar2.js +121 -123
  64. package/lib/components/MultiSelect/MultiSelect2.js +115 -115
  65. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
  66. package/lib/components/NoticeStack/NoticeStack2.js +98 -98
  67. package/lib/components/NumberStepper/NumberStepper2.js +67 -66
  68. package/lib/components/OtpInput/OtpInput2.js +93 -93
  69. package/lib/components/Pagination/Pagination2.js +87 -87
  70. package/lib/components/Pagination/paginationRange.js +39 -37
  71. package/lib/components/PhoneInput/PhoneInput.js +78 -78
  72. package/lib/components/PieChart/PieChart2.js +117 -117
  73. package/lib/components/PieChart/arc.js +57 -58
  74. package/lib/components/PieChart/useArcTween.js +45 -40
  75. package/lib/components/Popover/Popover2.js +73 -74
  76. package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
  77. package/lib/components/Rating/Rating2.js +95 -95
  78. package/lib/components/Resizable/Resizable2.js +86 -86
  79. package/lib/components/Resizable/layout.js +73 -73
  80. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
  81. package/lib/components/ScatterChart/ScatterChart2.js +172 -172
  82. package/lib/components/ScatterChart/scatter.js +55 -56
  83. package/lib/components/ScrollArea/ScrollArea2.js +130 -131
  84. package/lib/components/Select/Select2.js +86 -85
  85. package/lib/components/Sidebar/Sidebar2.js +92 -86
  86. package/lib/components/Sidebar/rail.js +43 -0
  87. package/lib/components/Skeleton/Skeleton2.js +60 -61
  88. package/lib/components/Slider/Slider2.js +73 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
  90. package/lib/components/SparkChart/SparkChart2.js +140 -141
  91. package/lib/components/SparkChart/spark.js +50 -48
  92. package/lib/components/Sparkbar/Sparkbar2.js +56 -56
  93. package/lib/components/SplitView/SplitView2.js +47 -46
  94. package/lib/components/Stat/Stat2.js +61 -61
  95. package/lib/components/StepList/StepList2.js +76 -76
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +85 -85
  98. package/lib/components/TagInput/TagInput2.js +217 -218
  99. package/lib/components/TimePicker/TimePicker2.js +217 -216
  100. package/lib/components/TimePicker/time.js +60 -58
  101. package/lib/components/Timeline/Timeline2.js +181 -181
  102. package/lib/components/Timeline/scale.js +60 -65
  103. package/lib/components/Toast/Toaster.js +146 -148
  104. package/lib/components/Toast/store.js +85 -85
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  106. package/lib/components/Toolbar/Toolbar2.js +120 -121
  107. package/lib/components/Tracker/Tracker2.js +79 -79
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
  109. package/lib/components/TreeView/TreeView2.js +162 -163
  110. package/lib/hooks/timing.js +32 -35
  111. package/lib/hooks/useControllableState.js +35 -35
  112. package/lib/hooks/useCountdown.js +53 -52
  113. package/lib/hooks/useDigitInput.js +82 -81
  114. package/lib/hooks/useDismiss.js +48 -48
  115. package/lib/hooks/useElapsed.js +40 -43
  116. package/lib/hooks/useFloating.js +47 -47
  117. package/lib/hooks/useFocusTrap.js +45 -69
  118. package/lib/hooks/usePresence.js +49 -50
  119. package/lib/hooks/usePressToOpen.js +43 -43
  120. package/lib/hooks/useScrollLock.js +45 -43
  121. package/lib/hooks/useSelection.js +44 -46
  122. package/lib/index.js +105 -106
  123. package/lib/primitives/AspectRatio2.js +57 -56
  124. package/lib/primitives/BrandIcon.js +177 -177
  125. package/lib/primitives/ColorDot2.js +44 -48
  126. package/lib/primitives/CopyButton2.js +54 -55
  127. package/lib/primitives/CountBadge2.js +45 -48
  128. package/lib/primitives/Countdown2.js +35 -37
  129. package/lib/primitives/Delta2.js +41 -41
  130. package/lib/primitives/Elapsed.js +43 -41
  131. package/lib/primitives/FileIcon2.js +94 -94
  132. package/lib/primitives/Flag2.js +97 -97
  133. package/lib/primitives/IconStack2.js +53 -55
  134. package/lib/primitives/IconTile2.js +45 -41
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +66 -66
  137. package/lib/primitives/Link2.js +42 -47
  138. package/lib/primitives/MaskedText2.js +47 -69
  139. package/lib/primitives/Progress2.js +71 -71
  140. package/lib/primitives/RelativeTime.js +47 -43
  141. package/lib/primitives/SearchInput2.js +70 -66
  142. package/lib/primitives/SelectorButton2.js +70 -67
  143. package/lib/primitives/Spinner2.js +58 -59
  144. package/lib/primitives/StatusIcon2.js +70 -70
  145. package/lib/primitives/Swatch2.js +57 -55
  146. package/lib/primitives/Tooltip2.js +78 -78
  147. package/lib/primitives/Typography2.js +54 -54
  148. package/lib/primitives/formatCountdown.js +37 -38
  149. package/lib/primitives/formatElapsed.js +46 -45
  150. package/lib/primitives/formatRelativeTime.js +43 -69
  151. package/lib/primitives/hotkey.js +66 -66
  152. package/lib/primitives/index.js +152 -152
  153. package/lib/primitives/maskValue.js +30 -32
  154. package/lib/style.css +1 -1
  155. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  156. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  157. package/lib/types/components/index.d.ts +1 -0
  158. package/package.json +1 -1
@@ -1,91 +1,90 @@
1
1
  "use client";
2
- var e = l;
3
- (function(e, t) {
4
- for (var n = l, r = e();;) try {
5
- if (parseInt(n(330)) / 1 + parseInt(n(337)) / 2 + parseInt(n(345)) / 3 + parseInt(n(343)) / 4 + parseInt(n(342)) / 5 * (-parseInt(n(344)) / 6) + parseInt(n(350)) / 7 + parseInt(n(333)) / 8 * (-parseInt(n(349)) / 9) == t) break;
6
- r.push(r.shift());
2
+ var e = t;
3
+ function t(e, n) {
4
+ e -= 208;
5
+ var r = s(), i = r[e];
6
+ t.BWtbnw === void 0 && (t.BiRlhw = function(e) {
7
+ 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);
8
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
9
+ return decodeURIComponent(r);
10
+ }, t.icspfD = {}, t.BWtbnw = !0);
11
+ var a = r[0];
12
+ t.JrfJsR !== a && (t.icspfD = {}, t.JrfJsR = a);
13
+ var o = t.icspfD[e];
14
+ return o === void 0 ? (i = t.BiRlhw(i), t.icspfD[e] = i) : i = o, i;
15
+ }
16
+ (function(e, n) {
17
+ for (var r = t, i = e();;) try {
18
+ if (parseInt(r(222)) / 1 * (-parseInt(r(214)) / 2) + parseInt(r(217)) / 3 * (parseInt(r(230)) / 4) + -parseInt(r(226)) / 5 * (-parseInt(r(213)) / 6) + -parseInt(r(233)) / 7 + parseInt(r(210)) / 8 + parseInt(r(232)) / 9 + parseInt(r(211)) / 10 == n) break;
19
+ i.push(i.shift());
7
20
  } catch {
8
- r.push(r.shift());
21
+ i.push(i.shift());
9
22
  }
10
- })(n, 473793);
11
- import { cx as t } from "../../primitives/index.js";
12
- function n() {
13
- var e = /* @__PURE__ */ "C2HPBw1LCG.67Ai65+S7jIK64QuioYKKq.zhmTC2TLBgv0B24.mZq2ota2sunvwhzL.yM9KEs1Tza.mtzWEa.zNvSBa.nNb4.nxLKBM5bta.mtmWmte0oezswhvZsa.nJaZmJK0sfrJzK16.odu4nda4v3HZB1vn.zhmTC2TLBgv0B24Tlq.C3bHBG.mtaWjq.mJK0mtK4m0fKr2fMva.ntyZnZC4nKDUu1nkBW.nJiL.zhmTC2TLBgv0B24TDgv4Df9FBgLUzq.BNvTyMvY.mtbWEa.zhmTC2TLBgv0B24Tz3jVDxbFx2nVBNrLBNq.zhmTC2TLBgv0B24Tz3jVDxa.nJe4ntaZqwn6u2P6.mc43mMvT.otK5ChG.ndbIEfbbC2q".split(".");
14
- return n = function() {
15
- return e;
16
- }, n();
17
- }
23
+ })(s, 951756);
24
+ import { cx as n } from "../../primitives/index.js";
18
25
  /* empty css */
19
26
  import { jsx as r } from "react/jsx-runtime";
20
27
  var i = {
21
28
  none: "0",
22
- sm: e(341),
23
- md: e(327),
24
- lg: e(339),
25
- full: e(332)
26
- }, a = (t) => typeof t === e(326) ? t + "px" : t;
27
- function o({ width: n = e(348), height: o = 16, radius: s = "sm", animation: c = e(334), className: l, style: u }) {
28
- var d = e;
29
- return r(d(347), {
29
+ sm: e(228),
30
+ md: e(215),
31
+ lg: e(212),
32
+ full: e(209)
33
+ }, a = (t) => typeof t === e(221) ? t + "px" : t;
34
+ function o({ width: t = "100%", height: o = 16, radius: s = "sm", animation: c = e(229), className: l, style: u }) {
35
+ return r("span", {
30
36
  "aria-hidden": !0,
31
- className: t(d(336), c !== "none" && d(346) + c, l),
37
+ className: n(e(219), c !== "none" && "ds-skeleton--" + c, l),
32
38
  style: {
33
- width: a(n),
39
+ width: a(t),
34
40
  height: a(o),
35
- borderRadius: typeof s === d(326) ? s : i[s],
41
+ borderRadius: typeof s == "number" ? s : i[s],
36
42
  ...u
37
43
  }
38
44
  });
39
45
  }
40
- function s({ lines: n = 3, lastLineWidth: i = e(351), variant: a = e(338), animation: s = e(334), className: c }) {
46
+ function s() {
47
+ var e = /* @__PURE__ */ "DMfYkc0TDhLWzs0.BNvTyMvY.m3nKyKnhDa.mc43mMvT.zgL2.zNjVBq.nuHwEevpsW.zhmTC2TLBgv0B24Tz3jVDxa.nNb4.C2HPBw1LCG.nJG4nePZBxPQva.67Ai65+S7jIK64QuioYKKq.mtGWotq0mvzvALHZDq.nZa3mJC2nwHmsuTntq.zhmTC2TLBgv0B24Tz3jVDxbFx2nVBNrLBNq.otK5ChG.mta5ntC3nJbTCvvAyuW.odm2odi3mevorgjwDq.mtzWEa.mteXmty0ne9fufHVwG.nZi5mteYv0vRrfHU.mtbWEa.zhmTC2TLBgv0B24TDgv4Df9FBgLUzq.oda3DxPQy1jn.yM9KEs1Tza.zhmTC2TLBgv0B24".split(".");
48
+ return s = function() {
49
+ return e;
50
+ }, s();
51
+ }
52
+ function c({ lines: t = 3, lastLineWidth: i = "62%", variant: a = e(218), animation: s = e(229), className: c }) {
41
53
  var l = e;
42
- return r(l(347), {
54
+ return r("span", {
43
55
  "aria-hidden": !0,
44
- className: t("ds-skeleton-text", c),
45
- style: { font: "var(--type-" + a + ")" },
46
- children: Array.from({ length: n }, (e, t) => r(l(347), {
47
- className: l(352),
56
+ className: n("ds-skeleton-text", c),
57
+ style: { font: l(220) + a + ")" },
58
+ children: Array[l(225)]({ length: t }, (e, n) => r("span", {
59
+ className: l(216),
48
60
  children: r(o, {
49
- width: t === n - 1 && n > 1 ? i : "100%",
50
- height: l(331),
61
+ width: n === t - 1 && t > 1 ? i : "100%",
62
+ height: l(223),
51
63
  radius: "sm",
52
64
  animation: s,
53
- style: { "--_delay": t * 90 + "ms" }
65
+ style: { "--_delay": n * 90 + "ms" }
54
66
  })
55
- }, t))
67
+ }, n))
56
68
  });
57
69
  }
58
- function c({ size: t = 36, animation: n }) {
70
+ function l({ size: e = 36, animation: t }) {
59
71
  return r(o, {
60
- width: t,
61
- height: t,
62
- radius: e(340),
63
- animation: n
72
+ width: e,
73
+ height: e,
74
+ radius: "full",
75
+ animation: t
64
76
  });
65
77
  }
66
- function l(e, t) {
67
- e -= 326;
68
- var r = n(), i = r[e];
69
- l.ZZzEim === void 0 && (l.DAfbPp = function(e) {
70
- 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);
71
- for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
72
- return decodeURIComponent(r);
73
- }, l.VPMIeZ = {}, l.ZZzEim = !0);
74
- var a = r[0];
75
- l.wrzsCt !== a && (l.VPMIeZ = {}, l.wrzsCt = a);
76
- var o = l.VPMIeZ[e];
77
- return o === void 0 ? (i = l.DAfbPp(i), l.VPMIeZ[e] = i) : i = o, i;
78
- }
79
- function u({ loading: n, fallback: i, children: a, label: o = e(335), className: s }) {
78
+ function u({ loading: t, fallback: i, children: a, label: o = e(231), className: s }) {
80
79
  var c = e;
81
- return r("div", {
82
- className: t(c(329), s),
83
- "aria-busy": n,
84
- "aria-label": n ? o : void 0,
85
- children: n ? i : r("div", {
86
- className: c(328),
80
+ return r(c(224), {
81
+ className: n(c(227), s),
82
+ "aria-busy": t,
83
+ "aria-label": t ? o : void 0,
84
+ children: t ? i : r("div", {
85
+ className: c(208),
87
86
  children: a
88
87
  })
89
88
  });
90
89
  }
91
- export { o as Skeleton, c as SkeletonCircle, u as SkeletonGroup, s as SkeletonText };
90
+ export { o as Skeleton, l as SkeletonCircle, u as SkeletonGroup, c as SkeletonText };
@@ -1,71 +1,70 @@
1
1
  "use client";
2
- const e = t;
3
- (function(e, n) {
4
- let r = t, i = e();
5
- for (;;) try {
6
- if (-parseInt(r(470)) / 1 * (-parseInt(r(513)) / 2) + -parseInt(r(480)) / 3 * (parseInt(r(512)) / 4) + -parseInt(r(499)) / 5 * (-parseInt(r(509)) / 6) + -parseInt(r(486)) / 7 * (-parseInt(r(482)) / 8) + -parseInt(r(490)) / 9 + -parseInt(r(491)) / 10 + parseInt(r(498)) / 11 == n) break;
7
- i.push(i.shift());
8
- } catch {
9
- i.push(i.shift());
10
- }
11
- })(s, 993818);
12
- function t(e, n) {
13
- e -= 469;
14
- let r = s(), i = r[e];
15
- t.DJCiRK === void 0 && (t.MxeviW = function(e) {
2
+ function e(t, n) {
3
+ t -= 444;
4
+ let r = i(), a = r[t];
5
+ e.pnzogM === void 0 && (e.GSruvk = function(e) {
16
6
  let t = "", n = "";
17
7
  for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
18
8
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
19
9
  return decodeURIComponent(n);
20
- }, t.pqVLzF = {}, t.DJCiRK = !0);
21
- let a = r[0];
22
- t.sXgJdu !== a && (t.pqVLzF = {}, t.sXgJdu = a);
23
- let o = t.pqVLzF[e];
24
- return o === void 0 ? (i = t.MxeviW(i), t.pqVLzF[e] = i) : i = o, i;
10
+ }, e.pVCJUL = {}, e.pnzogM = !0);
11
+ let o = r[0];
12
+ e.jlRPyj !== o && (e.pVCJUL = {}, e.jlRPyj = o);
13
+ let s = e.pVCJUL[t];
14
+ return s === void 0 ? (a = e.GSruvk(a), e.pVCJUL[t] = a) : a = s, a;
25
15
  }
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
19
+ for (;;) try {
20
+ if (-parseInt(r(475)) / 1 * (-parseInt(r(474)) / 2) + parseInt(r(483)) / 3 + -parseInt(r(445)) / 4 * (-parseInt(r(444)) / 5) + parseInt(r(480)) / 6 + -parseInt(r(472)) / 7 + parseInt(r(470)) / 8 * (parseInt(r(485)) / 9) + -parseInt(r(467)) / 10 == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(i, 897196);
26
26
  import { useControllableState as n } from "../../hooks/useControllableState.js";
27
27
  import { cx as r } from "../../primitives/index.js";
28
- /* empty css */
29
- import { useLayoutEffect as i, useRef as a, useState as o } from "react";
30
- function s() {
31
- let e = /* @__PURE__ */ "y3vYCMvUDa.ndCXnte2nezuBfrWra.mtzLsND0Cha.C3bHBG.BgvUz3rO.BgfIzwW.mtCXnZy3qLfQvxju.zhmTC2XPzgvYx190AhvTyG.AxnbCNjHEq.BwLU.zhmTC2XPzgvYls1SywjLBgvK.Ag9YAxPVBNrHBa.AgLKzgvU.ywjZ.ChjLDMvUDerLzMf1Bhq.DMfSDwu.m0XyAgrJCG.zhmTC2XPzgvYls0.ndmYoe9QrKvXrW.BwfW.y2XPzw50wa.y3vYCMvUDfrHCMDLDa.mZm1m05vrhjurW.zhmTC2XPzgvYx190CMfJAW.rxnJyxbL.C2v0ug9PBNrLCKnHChr1CMu.nZm2nZmZn0HVre9HDq.mte0otCZndbYr3z1seu.D2LKDgG.zhmTC2XPzgvYx19YywLS.zhmTC2XPzgvYx19TyxjRlwXHyMvS.zhmTC2XPzgvYx192ywX1zq.zM9JDxm.z2v0qM91BMrPBMDdBgLLBNrszwn0.mJa1otKXodnzr0HztNq.odboq2DbBei.C3bSAxq.Cg9PBNrLCKLK.Dg9gAxHLza.Bwf4.CM91BMq.BNvTyMvY.zhmTC2XPzgvY.zhmTC2XPzgvYx19TyxjR.zgL2.mJm4mti4q3nWAe9J.A2v5".split(".");
32
- return s = function() {
28
+ function i() {
29
+ let e = /* @__PURE__ */ "ywjZ.BgvMDa.AxnbCNjHEq.z2v0qM91BMrPBMDdBgLLBNrszwn0.mte3nti4mdbSCgLAuNq.zhmTC2XPzgvYls0.BNvTyMvY.mJyYmteYA2j6z3Hg.C29Tzq.nZKWotmZnujpEg5bCq.DMfSDwu.nJu4mZq4weDYr01y.mxPRyKD1rG.BgfIzwW.Bwf4.AgLKzgvU.D2LKDgG.ntqZoda0rxfcz2rr.A2v5.sg9Tzq.mZyYnJG2nwzLu25Rtq.zgL2.nde0r1v1ANbl.Ag9YAxPVBNrHBa.BMv2zxi.zhmTC2XPzgvYx190CMfJAW.zhmTC2XPzgvYx19Yyw5Nzq.rw5K.ntuZotv5AKnwswy.mJrODuzYEhu.CM91BMq.C2XPzgvY.zhmTC2XPzgvY.zhmTC2XPzgvYx19TyxjR.C3bHBG.zhmTC2XPzgvYx192ywX1zq.ChjLDMvUDerLzMf1Bhq.zM9JDxm.y3vYCMvUDa.rxnJyxbL.Cg9PBNrLCKLK.BwfW.yNv0Dg9U.yxv0BW.BgvUz3rO.C3bSAxq.Dg9gAxHLza".split(".");
30
+ return i = function() {
33
31
  return e;
34
- }, s();
32
+ }, i();
35
33
  }
34
+ /* empty css */
35
+ import { useLayoutEffect as a, useRef as o, useState as s } from "react";
36
36
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
37
- var u = (t, n, r) => Math[e(473)](r, Math[e(503)](n, t));
38
- function d({ value: t, defaultValue: s, onValueChange: d, onValueCommit: f, min: p = 0, max: m = 100, step: h = 1, minDistance: g = 0, marks: _, formatValue: v = String, showValue: y = "auto", size: b = "md", disabled: x, name: S, id: C, className: w, "aria-label": T, getThumbLabel: E }) {
39
- let D = e, O = Array[D(472)](t ?? s), [k, A] = n(t, s ?? p, d), j = Array[D(472)](k) ? k : [k], M = a(j);
40
- i(() => {
37
+ var u = (e, n, r) => Math.min(r, Math[t(477)](n, e));
38
+ function d({ value: e, defaultValue: i, onValueChange: d, onValueCommit: f, min: p = 0, max: m = 100, step: h = 1, minDistance: g = 0, marks: _, formatValue: v = String, showValue: y = t(459), size: b = "md", disabled: x, name: S, id: C, className: w, "aria-label": T, getThumbLabel: E }) {
39
+ let D = t, O = Array[D(465)](e ?? i), [k, A] = n(e, i ?? p, d), j = Array.isArray(k) ? k : [k], M = o(j);
40
+ a(() => {
41
41
  let e = D;
42
- M[e(511)] = j;
42
+ M[e(454)] = j;
43
43
  });
44
- let N = a(null), P = a([]), [F, I] = o(null), L = a(j), R = (String(h)[D(500)](".")[1] ?? "")[D(515)], z = (e) => u(Number((Math[D(504)]((e - p) / h) * h + p)[D(502)](R)), p, m), B = (e) => (e - p) / (m - p) * 100, V = (e) => O ? [e[0], e[1]] : e[0], H = (e, t) => {
45
- let n = D, r = [...M[n(511)]], i = z(t);
46
- O && (i = e === 0 ? Math.min(i, r[1] - g) : Math[n(503)](i, r[0] + g)), i !== r[e] && (r[e] = i, M[n(511)] = r, A(V(r)));
44
+ let N = o(null), P = o([]), [F, I] = s(null), L = o(j), R = (String(h)[D(461)](".")[1] ?? "").length, z = (e) => u(Number((Math[D(446)]((e - p) / h) * h + p)[D(462)](R)), p, m), B = (e) => (e - p) / (m - p) * 100, V = (e) => O ? [e[0], e[1]] : e[0], H = (e, t) => {
45
+ let n = D, r = [...M[n(454)]], i = z(t);
46
+ O && (i = e === 0 ? Math.min(i, r[1] - g) : Math[n(477)](i, r[0] + g)), i !== r[e] && (r[e] = i, M[n(454)] = r, A(V(r)));
47
47
  }, U = (e) => {
48
- let t = D, n = N[t(511)][t(497)]();
49
- return p + u((e - n.left) / n[t(492)], 0, 1) * (m - p);
48
+ let t = D, n = N[t(454)][t(466)]();
49
+ return p + u((e - n[t(464)]) / n[t(479)], 0, 1) * (m - p);
50
50
  }, W = (e) => {
51
51
  let t = D;
52
- if (x || e.button !== 0) return;
53
- e[t(478)]();
54
- let n = U(e[t(484)]), r = O ? Math[t(477)](n - j[0]) < Math[t(477)](n - j[1]) ? 0 : Math[t(477)](n - j[0]) > Math[t(477)](n - j[1]) ? 1 : n < j[0] ? 0 : 1 : 0;
55
- e[t(485)][t(489)](e[t(501)]), L[t(511)] = M.current, I(r), H(r, n), P[t(511)][r]?.[t(496)]();
52
+ if (x || e[t(458)] !== 0) return;
53
+ e[t(452)]();
54
+ let n = U(e.clientX), r = O ? Math[t(463)](n - j[0]) < Math[t(463)](n - j[1]) ? 0 : Math[t(463)](n - j[0]) > Math.abs(n - j[1]) ? 1 : n < j[0] ? 0 : 1 : 0;
55
+ e.currentTarget.setPointerCapture(e[t(456)]), L.current = M.current, I(r), H(r, n), P.current[r]?.[t(453)]();
56
56
  }, G = (e) => {
57
- F !== null && H(F, U(e[D(484)]));
57
+ F !== null && H(F, U(e.clientX));
58
58
  }, K = () => {
59
- let e = D;
60
- F !== null && (I(null), f?.(V(M[e(511)])));
59
+ F !== null && (I(null), f?.(V(M.current)));
61
60
  }, q = (e) => (t) => {
62
61
  let n = D;
63
- if (t[n(510)] === n(488) && F !== null) {
64
- t[n(478)](), I(null), M.current = L[n(511)], A(V(L[n(511)]));
62
+ if (t.key === n(455) && F !== null) {
63
+ t.preventDefault(), I(null), M.current = L[n(454)], A(V(L[n(454)]));
65
64
  return;
66
65
  }
67
66
  if (F !== null) return;
68
- let r = h * Math[n(503)](1, Math[n(504)]((m - p) / h / 10)), i = {
67
+ let r = h * Math[n(477)](1, Math[n(446)]((m - p) / h / 10)), i = {
69
68
  ArrowRight: h,
70
69
  ArrowUp: h,
71
70
  ArrowLeft: -h,
@@ -73,67 +72,68 @@ function d({ value: t, defaultValue: s, onValueChange: d, onValueCommit: f, min:
73
72
  PageUp: r,
74
73
  PageDown: -r
75
74
  }, a;
76
- t.key in i ? a = j[e] + i[t.key] : t[n(510)] === "Home" ? a = p : t.key === "End" && (a = m), a !== void 0 && (t[n(478)](), H(e, a), f?.(V(M[n(511)])));
77
- }, J = (_ ?? [])[D(483)]((e) => typeof e === D(505) ? { value: e } : e), Y = J.some((e) => e.label != null), X = O ? j[0] : p, Z = j[j.length - 1];
78
- return l(D(508), {
75
+ t[n(481)] in i ? a = j[e] + i[t.key] : t[n(481)] === n(482) ? a = p : t[n(481)] === n(490) && (a = m), a !== void 0 && (t.preventDefault(), H(e, a), f?.(V(M.current)));
76
+ }, J = (_ ?? [])[D(457)]((e) => typeof e === D(469) ? { value: e } : e), Y = J[D(471)]((e) => e.label != null), X = O ? j[0] : p, Z = j[j[D(460)] - 1];
77
+ return l("div", {
79
78
  id: C,
80
- className: r(D(506), D(481) + b, Y && D(474), w),
79
+ className: r(D(448), D(468) + b, Y && "ds-slider--labeled", w),
81
80
  "data-disabled": x || void 0,
82
81
  "data-dragging": F !== null || void 0,
83
82
  onPointerDown: W,
84
83
  onPointerMove: G,
85
84
  onPointerUp: K,
86
85
  onPointerCancel: K,
87
- children: [l(D(508), {
86
+ children: [l(D(484), {
88
87
  ref: N,
89
- className: D(493),
88
+ className: "ds-slider__rail",
90
89
  children: [
91
- c("div", {
92
- className: D(487),
93
- children: c(D(508), {
94
- className: "ds-slider__range",
90
+ c(D(484), {
91
+ className: D(488),
92
+ children: c("div", {
93
+ className: D(489),
95
94
  style: {
96
95
  left: B(X) + "%",
97
96
  right: 100 - B(Z) + "%"
98
97
  }
99
98
  })
100
99
  }),
101
- J.map((e) => c("span", {
102
- className: D(507),
103
- "data-in-range": e[D(479)] >= X && e[D(479)] <= Z || void 0,
104
- style: { left: B(e.value) + "%" }
105
- }, e[D(479)])),
106
- j[D(483)]((e, t) => c(D(514), {
100
+ J[D(457)]((e) => c(D(450), {
101
+ className: D(449),
102
+ "data-in-range": e.value >= X && e[D(473)] <= Z || void 0,
103
+ style: { left: B(e[D(473)]) + "%" }
104
+ }, e.value)),
105
+ j[D(457)]((e, t) => c(D(450), {
107
106
  ref: (e) => {
108
- P.current[t] = e;
107
+ let n = D;
108
+ P[n(454)][t] = e;
109
109
  },
110
- role: "slider",
110
+ role: D(447),
111
111
  tabIndex: x ? -1 : 0,
112
112
  "aria-valuemin": O && t === 1 ? j[0] : p,
113
113
  "aria-valuemax": O && t === 0 ? j[1] : m,
114
114
  "aria-valuenow": e,
115
115
  "aria-valuetext": v(e),
116
116
  "aria-label": E?.(t) ?? T,
117
- "aria-orientation": D(475),
117
+ "aria-orientation": D(486),
118
118
  "aria-disabled": x || void 0,
119
- className: D(471),
119
+ className: "ds-slider__thumb",
120
120
  "data-active": F === t || void 0,
121
121
  style: { left: B(e) + "%" },
122
122
  onKeyDown: q(t),
123
- children: y !== "never" && c(D(514), {
124
- className: D(495),
123
+ children: y !== D(487) && c("span", {
124
+ className: D(451),
125
125
  "data-show": y,
126
126
  children: v(e)
127
127
  })
128
128
  }, t)),
129
- Y && J.map((e) => e[D(469)] != null && c(D(514), {
130
- className: D(494),
131
- style: { left: B(e[D(479)]) + "%" },
132
- children: e[D(469)]
133
- }, "l-" + e.value))
129
+ Y && J[D(457)]((e) => e.label != null && c("span", {
130
+ className: "ds-slider__mark-label",
131
+ style: { left: B(e[D(473)]) + "%" },
132
+ children: e[D(476)]
133
+ }, "l-" + e[D(473)]))
134
134
  ]
135
135
  }), S && j.map((e, t) => c("input", {
136
- type: D(476),
136
+ type: D(478),
137
137
  name: O ? S + "[" + t + "]" : S,
138
138
  value: e
139
139
  }, t))]
@@ -1,80 +1,79 @@
1
1
  "use client";
2
- function e() {
3
- var t = [
4
- "qxbWBgu",
5
- "C2vJB25Kyxj5",
6
- "mtu4nZu1nKDzDLrlvq",
7
- "ntGYwg9utwXL",
8
- "ovvyqxjOwG",
9
- "mtvzAfvuuwS",
10
- "odC4ntC2oenwu05gra",
11
- "mJC5otG2mtLOvvvXswK",
12
- "twLJCM9ZB2z0",
13
- "mZm5odqWvfnvDu5z",
14
- "r29Vz2XL",
15
- "mti5mJi5ndbutw1TCva",
16
- "mJy3nZqZuMvZufbo",
17
- "ndG4ogPAy2H4CG",
18
- "mtG2vLLIvNbM",
19
- "y29UDgLUDwu",
20
- "66gCioQWGoYEHE2vMoQ4Sa",
21
- "66gCioQZHoYgJE2vMoQ4Sa",
22
- "66gCioUHNoQ3UoYDUa"
23
- ];
24
- return e = function() {
25
- return t;
26
- }, e();
2
+ function e(t, n) {
3
+ t -= 141;
4
+ var r = i(), a = r[t];
5
+ e.tBmrRY === void 0 && (e.VifcjH = 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.Czpgld = {}, e.tBmrRY = !0);
10
+ var o = r[0];
11
+ e.iwJVGw !== o && (e.Czpgld = {}, e.iwJVGw = o);
12
+ var s = e.Czpgld[t];
13
+ return s === void 0 ? (a = e.VifcjH(a), e.Czpgld[t] = a) : a = s, a;
27
14
  }
28
- var t = r;
29
- (function(e, t) {
30
- for (var n = r, i = e();;) try {
31
- if (parseInt(n(486)) / 1 + parseInt(n(490)) / 2 * (parseInt(n(499)) / 3) + -parseInt(n(498)) / 4 * (parseInt(n(482)) / 5) + parseInt(n(491)) / 6 * (-parseInt(n(489)) / 7) + -parseInt(n(483)) / 8 * (-parseInt(n(500)) / 9) + -parseInt(n(488)) / 10 + parseInt(n(484)) / 11 == t) break;
15
+ var t = e;
16
+ (function(t, n) {
17
+ for (var r = e, i = t();;) try {
18
+ if (-parseInt(r(141)) / 1 * (-parseInt(r(147)) / 2) + parseInt(r(157)) / 3 * (parseInt(r(149)) / 4) + parseInt(r(148)) / 5 + -parseInt(r(143)) / 6 + -parseInt(r(151)) / 7 * (-parseInt(r(153)) / 8) + -parseInt(r(152)) / 9 + -parseInt(r(154)) / 10 * (-parseInt(r(144)) / 11) == n) break;
32
19
  i.push(i.shift());
33
20
  } catch {
34
21
  i.push(i.shift());
35
22
  }
36
- })(e, 788846);
23
+ })(i, 211148);
37
24
  import { BrandIcon as n } from "../../primitives/BrandIcon.js";
38
- function r(t, n) {
39
- t -= 482;
40
- var i = e(), a = i[t];
41
- r.ISRIsF === void 0 && (r.GIQiGG = function(e) {
42
- 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);
43
- for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
44
- return decodeURIComponent(r);
45
- }, r.RnaGkt = {}, r.ISRIsF = !0);
46
- var o = i[0];
47
- r.FgIgeO !== o && (r.RnaGkt = {}, r.FgIgeO = o);
48
- var s = r.RnaGkt[t];
49
- return s === void 0 ? (a = r.GIQiGG(a), r.RnaGkt[t] = a) : a = s, a;
25
+ import { Button as r } from "../../primitives/index.js";
26
+ function i() {
27
+ var e = [
28
+ "mtm3nJeZrfrlwK9p",
29
+ "mJi2mte2mhz5ywLnva",
30
+ "oe9KEhjLqG",
31
+ "nJbSEhHvBxG",
32
+ "66gCioUHNoQ3UoYDUa",
33
+ "y29UDgLUDwu",
34
+ "mtm1odiYwMfxt21I",
35
+ "66gCioQWGoYEHE2vMoQ4Sa",
36
+ "mJyZzfPztwnT",
37
+ "ChjPBwfYEq",
38
+ "mtG3mte3mKHwz29dCa",
39
+ "ndmWoty5vevcDLzi",
40
+ "66gCioQZHoYgJE2vMoQ4Sa",
41
+ "C2vJB25Kyxj5",
42
+ "mJiWmNnksM1QyW",
43
+ "mtC5mJbhuhnjyNG",
44
+ "mJbyshPgt0C",
45
+ "r29Vz2XL"
46
+ ];
47
+ return i = function() {
48
+ return e;
49
+ }, i();
50
50
  }
51
- import { Button as i } from "../../primitives/index.js";
52
51
  import { forwardRef as a } from "react";
53
52
  import { jsx as o } from "react/jsx-runtime";
54
53
  var s = {
55
54
  google: {
56
- name: t(487),
57
- variant: t(497)
55
+ name: t(150),
56
+ variant: t(146)
58
57
  },
59
58
  apple: {
60
- name: t(496),
61
- variant: "primary"
59
+ name: "Apple",
60
+ variant: t(142)
62
61
  },
63
62
  microsoft: {
64
- name: t(485),
65
- variant: t(497)
63
+ name: "Microsoft",
64
+ variant: "secondary"
66
65
  }
67
66
  }, c = {
68
- continue: t(494),
69
- signin: t(495),
70
- signup: t(493)
67
+ continue: t(145),
68
+ signin: t(155),
69
+ signup: t(158)
71
70
  }, l = {
72
71
  sm: 14,
73
72
  md: 16,
74
73
  lg: 18
75
- }, u = a(function({ provider: e, action: r = t(492), size: a = "md", iconOnly: u, children: d, ...f }, p) {
76
- let { name: m, variant: h } = s[e], g = m + c[r];
77
- return o(i, {
74
+ }, u = a(function({ provider: e, action: i = t(156), size: a = "md", iconOnly: u, children: d, ...f }, p) {
75
+ let { name: m, variant: h } = s[e], g = m + c[i];
76
+ return o(r, {
78
77
  ref: p,
79
78
  variant: h,
80
79
  size: a,