@iamfiro/design 0.3.2 → 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 (163) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/app-shell/AGENTS.md +99 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/lib/components/Accordion/Accordion2.js +74 -74
  6. package/lib/components/ActionBar/ActionBar2.js +44 -42
  7. package/lib/components/Alert/Alert2.js +67 -67
  8. package/lib/components/AppShell/AppShell2.js +72 -66
  9. package/lib/components/AreaChart/AreaChart.js +45 -45
  10. package/lib/components/BarChart/BarChart2.js +128 -128
  11. package/lib/components/BarList/BarList2.js +105 -105
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +63 -64
  13. package/lib/components/Calendar/Calendar2.js +197 -197
  14. package/lib/components/Calendar/DatePicker2.js +100 -100
  15. package/lib/components/Calendar/date.js +47 -70
  16. package/lib/components/Card/Card2.js +101 -74
  17. package/lib/components/CardFrame/CardFrame2.js +52 -56
  18. package/lib/components/Chart/ChartParts.js +88 -88
  19. package/lib/components/Chart/chart2.js +63 -63
  20. package/lib/components/Chart/useChartInteraction.js +43 -43
  21. package/lib/components/ChatBubble/ChatBubble2.js +111 -111
  22. package/lib/components/ChatBubble/formatChatTime.js +38 -43
  23. package/lib/components/ChatComposer/ChatComposer2.js +96 -96
  24. package/lib/components/CodeBlock/CodeBlock2.js +65 -65
  25. package/lib/components/CodeBlock/highlight.js +84 -84
  26. package/lib/components/ColorPicker/ColorPicker2.js +263 -263
  27. package/lib/components/ColorPicker/color.js +92 -92
  28. package/lib/components/ColorPicker/presets.js +35 -39
  29. package/lib/components/Combobox/Combobox2.js +134 -134
  30. package/lib/components/CommandMenu/CommandMenu.js +130 -131
  31. package/lib/components/Comment/Comment2.js +64 -63
  32. package/lib/components/ContextMenu/ContextMenu2.js +84 -84
  33. package/lib/components/DataGrid/DataGrid2.js +1182 -1180
  34. package/lib/components/DataGrid/GridPopover.js +84 -84
  35. package/lib/components/DataGrid/anchor.js +29 -28
  36. package/lib/components/DataGrid/model.js +308 -307
  37. package/lib/components/DataGrid/panels.js +398 -399
  38. package/lib/components/DataGrid/typeMeta.js +41 -40
  39. package/lib/components/DataGrid/types.js +39 -40
  40. package/lib/components/DescriptionList/DescriptionList2.js +105 -105
  41. package/lib/components/Dialog/AlertDialog.js +90 -89
  42. package/lib/components/Dialog/Dialog2.js +71 -72
  43. package/lib/components/Dialog/modal.js +62 -60
  44. package/lib/components/Drawer/Drawer2.js +167 -166
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +260 -258
  46. package/lib/components/DropdownMenu/menuCore.js +29 -28
  47. package/lib/components/Dropzone/Dropzone2.js +78 -77
  48. package/lib/components/EmptyState/EmptyState2.js +57 -57
  49. package/lib/components/FileChip/FileChip2.js +53 -77
  50. package/lib/components/FileUpload/FileUpload.js +168 -167
  51. package/lib/components/FilterChips/FilterChips2.js +60 -60
  52. package/lib/components/FunnelChart/FunnelChart2.js +174 -174
  53. package/lib/components/FunnelChart/funnel.js +44 -42
  54. package/lib/components/Highlight/Highlight2.js +55 -55
  55. package/lib/components/HoverCard/HoverCard.js +71 -96
  56. package/lib/components/InlineDiff/InlineDiff2.js +128 -129
  57. package/lib/components/InlineDiff/diff.js +79 -79
  58. package/lib/components/InlineDiff/useDiffReview.js +61 -62
  59. package/lib/components/Kanban/Kanban2.js +387 -389
  60. package/lib/components/Kanban/KanbanCard.js +84 -84
  61. package/lib/components/Kanban/move.js +32 -25
  62. package/lib/components/LineChart/LineChart2.js +228 -228
  63. package/lib/components/List/List2.js +62 -62
  64. package/lib/components/Listbox/Listbox2.js +92 -92
  65. package/lib/components/Marker/Marker2.js +50 -56
  66. package/lib/components/Menubar/Menubar2.js +117 -116
  67. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +231 -231
  69. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  70. package/lib/components/NumberStepper/NumberStepper2.js +60 -60
  71. package/lib/components/OtpInput/OtpInput2.js +90 -89
  72. package/lib/components/Pagination/Pagination2.js +105 -105
  73. package/lib/components/Pagination/paginationRange.js +37 -37
  74. package/lib/components/PhoneInput/PhoneInput.js +75 -76
  75. package/lib/components/PieChart/PieChart2.js +166 -166
  76. package/lib/components/PieChart/arc.js +71 -69
  77. package/lib/components/PieChart/useArcTween.js +60 -62
  78. package/lib/components/Popover/Popover2.js +85 -86
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +134 -134
  80. package/lib/components/Rating/Rating2.js +90 -89
  81. package/lib/components/Resizable/Resizable2.js +128 -129
  82. package/lib/components/Resizable/layout.js +51 -51
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -48
  84. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  85. package/lib/components/ScatterChart/scatter.js +49 -52
  86. package/lib/components/ScrollArea/ScrollArea2.js +115 -117
  87. package/lib/components/Select/Select2.js +82 -82
  88. package/lib/components/Sidebar/Sidebar2.js +91 -85
  89. package/lib/components/Sidebar/rail.js +43 -0
  90. package/lib/components/Skeleton/Skeleton2.js +63 -64
  91. package/lib/components/Slider/Slider2.js +65 -66
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -69
  93. package/lib/components/SparkChart/SparkChart2.js +126 -127
  94. package/lib/components/SparkChart/spark.js +66 -42
  95. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  96. package/lib/components/SplitView/SplitView2.js +51 -51
  97. package/lib/components/Stat/Stat2.js +79 -79
  98. package/lib/components/StepList/StepList2.js +75 -75
  99. package/lib/components/Table/Table2.js +71 -71
  100. package/lib/components/Tabs/Tabs2.js +74 -74
  101. package/lib/components/TagInput/TagInput2.js +223 -221
  102. package/lib/components/TimePicker/TimePicker2.js +197 -195
  103. package/lib/components/TimePicker/time.js +59 -56
  104. package/lib/components/Timeline/Timeline2.js +195 -195
  105. package/lib/components/Timeline/scale.js +64 -66
  106. package/lib/components/Toast/Toaster.js +139 -139
  107. package/lib/components/Toast/store.js +72 -76
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  109. package/lib/components/Toolbar/Toolbar2.js +165 -164
  110. package/lib/components/Tracker/Tracker2.js +72 -72
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +96 -97
  112. package/lib/components/TreeView/TreeView2.js +152 -151
  113. package/lib/hooks/timing.js +34 -36
  114. package/lib/hooks/useControllableState.js +29 -30
  115. package/lib/hooks/useCountdown.js +51 -53
  116. package/lib/hooks/useDigitInput.js +81 -55
  117. package/lib/hooks/useDismiss.js +53 -56
  118. package/lib/hooks/useElapsed.js +48 -49
  119. package/lib/hooks/useFloating.js +36 -36
  120. package/lib/hooks/useFocusTrap.js +32 -32
  121. package/lib/hooks/usePresence.js +49 -49
  122. package/lib/hooks/usePressToOpen.js +40 -40
  123. package/lib/hooks/useScrollLock.js +50 -49
  124. package/lib/hooks/useSelection.js +42 -47
  125. package/lib/index.js +138 -139
  126. package/lib/primitives/AspectRatio2.js +58 -57
  127. package/lib/primitives/BrandIcon.js +210 -179
  128. package/lib/primitives/ColorDot2.js +42 -41
  129. package/lib/primitives/CopyButton2.js +59 -58
  130. package/lib/primitives/CountBadge2.js +58 -63
  131. package/lib/primitives/Countdown2.js +38 -37
  132. package/lib/primitives/Delta2.js +37 -37
  133. package/lib/primitives/Elapsed.js +42 -40
  134. package/lib/primitives/FileIcon2.js +102 -102
  135. package/lib/primitives/Flag2.js +124 -124
  136. package/lib/primitives/IconStack2.js +45 -23
  137. package/lib/primitives/IconTile2.js +45 -41
  138. package/lib/primitives/Kbd2.js +48 -48
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +40 -42
  141. package/lib/primitives/MaskedText2.js +50 -50
  142. package/lib/primitives/Progress2.js +78 -77
  143. package/lib/primitives/RelativeTime.js +55 -58
  144. package/lib/primitives/SearchInput2.js +72 -68
  145. package/lib/primitives/SelectorButton2.js +60 -61
  146. package/lib/primitives/Spinner2.js +48 -49
  147. package/lib/primitives/StatusIcon2.js +69 -69
  148. package/lib/primitives/Swatch2.js +65 -69
  149. package/lib/primitives/Tooltip2.js +92 -92
  150. package/lib/primitives/Typography2.js +37 -37
  151. package/lib/primitives/formatCountdown.js +38 -38
  152. package/lib/primitives/formatElapsed.js +43 -45
  153. package/lib/primitives/formatRelativeTime.js +54 -54
  154. package/lib/primitives/hotkey.js +77 -77
  155. package/lib/primitives/index.js +162 -161
  156. package/lib/primitives/maskValue.js +54 -51
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  159. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  160. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  161. package/lib/types/components/index.d.ts +1 -0
  162. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  163. package/package.json +1 -1
@@ -1,89 +1,88 @@
1
1
  "use client";
2
- var e = s;
3
- (function(e, t) {
4
- for (var n = s, r = e();;) try {
5
- if (-parseInt(n(311)) / 1 * (-parseInt(n(306)) / 2) + parseInt(n(299)) / 3 * (-parseInt(n(302)) / 4) + -parseInt(n(291)) / 5 * (parseInt(n(292)) / 6) + parseInt(n(294)) / 7 + -parseInt(n(319)) / 8 + parseInt(n(314)) / 9 + -parseInt(n(290)) / 10 * (-parseInt(n(315)) / 11) == 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
- })(a, 514418);
11
- import { cx as t } from "../../primitives/index.js";
23
+ })(s, 951756);
24
+ import { cx as n } from "../../primitives/index.js";
12
25
  /* empty css */
13
- import { jsx as n } from "react/jsx-runtime";
14
- var r = {
26
+ import { jsx as r } from "react/jsx-runtime";
27
+ var i = {
15
28
  none: "0",
16
- sm: e(297),
17
- md: "10px",
18
- lg: e(317),
19
- full: e(309)
20
- }, i = (t) => typeof t === e(307) ? t + "px" : t;
21
- function a() {
22
- var e = /* @__PURE__ */ "nJiL.mtvfEwfItuS.zgL2.zNvSBa.mtu2nJuYAwjTu2Tm.BM9Uzq.zhmTC2TLBgv0B24TDgv4Da.67Ai65+S7jIK64QuioYKKq.mtrysLzYCMi.BNvTyMvY.zhmTC2TLBgv0B24.otK5ChG.zhmTC2TLBgv0B24Tz3jVDxa.mJKXodHuAvbJwMq.yM9KEs1Tza.zhmTC2TLBgv0B24Tz3jVDxbFx2nVBNrLBNq.mJG0mZyWnfbfDxjxwq.nJaXn3PuB3zorG.zhmTC2TLBgv0B24Tlq.mtzWEa.DMfYkc0TDhLWzs0.mte4nJy5nM5XBNjVtG.mtaWjq.mti1nZbgq25VqNi.mte1wuPbqwzJ.mJa0nZyYAwLeDxrb.zhmTC2TLBgv0B24TDgv4Df9FBgLUzq.mZa0otq4mgX5s0jLBq.C3bHBG.C2HPBw1LCG.nNb4".split(".");
23
- return a = function() {
24
- return e;
25
- }, a();
26
- }
27
- function o({ width: a = e(289), height: o = 16, radius: s = "sm", animation: c = e(296), className: l, style: u }) {
28
- var d = e;
29
- return n(d(295), {
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(308), c !== d(303) && d(316) + c, l),
37
+ className: n(e(219), c !== "none" && "ds-skeleton--" + c, l),
32
38
  style: {
33
- width: i(a),
34
- height: i(o),
35
- borderRadius: typeof s === d(307) ? s : r[s],
39
+ width: a(t),
40
+ height: a(o),
41
+ borderRadius: typeof s == "number" ? s : i[s],
36
42
  ...u
37
43
  }
38
44
  });
39
45
  }
40
- function s(e, t) {
41
- e -= 289;
42
- var n = a(), r = n[e];
43
- s.JivDkV === void 0 && (s.GizDen = function(e) {
44
- 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);
45
- for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
46
- return decodeURIComponent(r);
47
- }, s.qUSsGT = {}, s.JivDkV = !0);
48
- var i = n[0];
49
- s.mmdwAb !== i && (s.qUSsGT = {}, s.mmdwAb = i);
50
- var o = s.qUSsGT[e];
51
- return o === void 0 ? (r = s.GizDen(r), s.qUSsGT[e] = r) : r = o, r;
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();
52
51
  }
53
- function c({ lines: r = 3, lastLineWidth: i = e(298), variant: a = e(312), animation: s = "shimmer", className: c }) {
52
+ function c({ lines: t = 3, lastLineWidth: i = "62%", variant: a = e(218), animation: s = e(229), className: c }) {
54
53
  var l = e;
55
- return n(l(295), {
54
+ return r("span", {
56
55
  "aria-hidden": !0,
57
- className: t(l(304), c),
58
- style: { font: l(318) + a + ")" },
59
- children: Array.from({ length: r }, (e, t) => n("span", {
60
- className: l(293),
61
- children: n(o, {
62
- width: t === r - 1 && r > 1 ? i : "100%",
63
- height: "0.72em",
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),
60
+ children: r(o, {
61
+ width: n === t - 1 && t > 1 ? i : "100%",
62
+ height: l(223),
64
63
  radius: "sm",
65
64
  animation: s,
66
- style: { "--_delay": t * 90 + "ms" }
65
+ style: { "--_delay": n * 90 + "ms" }
67
66
  })
68
- }, t))
67
+ }, n))
69
68
  });
70
69
  }
71
- function l({ size: t = 36, animation: r }) {
72
- return n(o, {
73
- width: t,
74
- height: t,
75
- radius: e(301),
76
- animation: r
70
+ function l({ size: e = 36, animation: t }) {
71
+ return r(o, {
72
+ width: e,
73
+ height: e,
74
+ radius: "full",
75
+ animation: t
77
76
  });
78
77
  }
79
- function u({ loading: r, fallback: i, children: a, label: o = e(305), className: s }) {
78
+ function u({ loading: t, fallback: i, children: a, label: o = e(231), className: s }) {
80
79
  var c = e;
81
- return n("div", {
82
- className: t(c(310), s),
83
- "aria-busy": r,
84
- "aria-label": r ? o : void 0,
85
- children: r ? i : n(c(300), {
86
- className: c(313),
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
  });
@@ -1,65 +1,70 @@
1
1
  "use client";
2
2
  function e(t, n) {
3
- t -= 213;
4
- let r = d(), i = r[t];
5
- e.pXiTfj === void 0 && (e.ZrfgqV = function(e) {
3
+ t -= 444;
4
+ let r = i(), a = r[t];
5
+ e.pnzogM === void 0 && (e.GSruvk = function(e) {
6
6
  let t = "", n = "";
7
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);
8
8
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
9
  return decodeURIComponent(n);
10
- }, e.XAVCoR = {}, e.pXiTfj = !0);
11
- let a = r[0];
12
- e.AeoImS !== a && (e.XAVCoR = {}, e.AeoImS = a);
13
- let o = e.XAVCoR[t];
14
- return o === void 0 ? (i = e.ZrfgqV(i), e.XAVCoR[t] = 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;
15
15
  }
16
16
  const t = e;
17
17
  (function(t, n) {
18
18
  let r = e, i = t();
19
19
  for (;;) try {
20
- if (-parseInt(r(227)) / 1 + -parseInt(r(243)) / 2 * (-parseInt(r(254)) / 3) + parseInt(r(247)) / 4 + -parseInt(r(237)) / 5 * (-parseInt(r(239)) / 6) + -parseInt(r(221)) / 7 + -parseInt(r(233)) / 8 * (parseInt(r(248)) / 9) + -parseInt(r(242)) / 10 == n) break;
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
21
  i.push(i.shift());
22
22
  } catch {
23
23
  i.push(i.shift());
24
24
  }
25
- })(d, 360291);
25
+ })(i, 897196);
26
26
  import { useControllableState as n } from "../../hooks/useControllableState.js";
27
27
  import { cx as r } from "../../primitives/index.js";
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() {
31
+ return e;
32
+ }, i();
33
+ }
28
34
  /* empty css */
29
- import { useLayoutEffect as i, useRef as a, useState as o } from "react";
30
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
31
- var l = (e, n, r) => Math[t(246)](r, Math[t(216)](n, e));
32
- function u({ value: e, defaultValue: u, 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 }) {
33
- let D = t, O = Array[D(218)](e ?? u), [k, A] = n(e, u ?? p, d), j = Array[D(218)](k) ? k : [k], M = a(j);
34
- i(() => {
35
+ import { useLayoutEffect as a, useRef as o, useState as s } from "react";
36
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
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(() => {
35
41
  let e = D;
36
- M[e(245)] = j;
42
+ M[e(454)] = j;
37
43
  });
38
- let N = a(null), P = a([]), [F, I] = o(null), L = a(j), R = (String(h)[D(250)](".")[1] ?? "")[D(234)], z = (e) => l(Number((Math[D(240)]((e - p) / h) * h + p)[D(236)](R)), p, m), B = (e) => (e - p) / (m - p) * 100, V = (e) => O ? [e[0], e[1]] : e[0], H = (e, t) => {
39
- let n = D, r = [...M.current], i = z(t);
40
- O && (i = e === 0 ? Math[n(246)](i, r[1] - g) : Math[n(216)](i, r[0] + g)), i !== r[e] && (r[e] = i, M[n(245)] = 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)));
41
47
  }, U = (e) => {
42
- let t = D, n = N[t(245)].getBoundingClientRect();
43
- return p + l((e - n[t(256)]) / n[t(225)], 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);
44
50
  }, W = (e) => {
45
51
  let t = D;
46
- if (x || e[t(257)] !== 0) return;
47
- e[t(220)]();
48
- let n = U(e.clientX), r = O ? Math[t(217)](n - j[0]) < Math[t(217)](n - j[1]) ? 0 : Math[t(217)](n - j[0]) > Math[t(217)](n - j[1]) ? 1 : n < j[0] ? 0 : 1 : 0;
49
- e[t(219)][t(230)](e[t(238)]), L.current = M[t(245)], I(r), H(r, n), P[t(245)][r]?.[t(215)]();
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)]();
50
56
  }, G = (e) => {
51
- F !== null && H(F, U(e[D(222)]));
57
+ F !== null && H(F, U(e.clientX));
52
58
  }, K = () => {
53
- let e = D;
54
- F !== null && (I(null), f?.(V(M[e(245)])));
59
+ F !== null && (I(null), f?.(V(M.current)));
55
60
  }, q = (e) => (t) => {
56
61
  let n = D;
57
- if (t[n(244)] === n(258) && F !== null) {
58
- t[n(220)](), I(null), M[n(245)] = L[n(245)], A(V(L[n(245)]));
62
+ if (t.key === n(455) && F !== null) {
63
+ t.preventDefault(), I(null), M.current = L[n(454)], A(V(L[n(454)]));
59
64
  return;
60
65
  }
61
66
  if (F !== null) return;
62
- let r = h * Math.max(1, Math[n(240)]((m - p) / h / 10)), i = {
67
+ let r = h * Math[n(477)](1, Math[n(446)]((m - p) / h / 10)), i = {
63
68
  ArrowRight: h,
64
69
  ArrowUp: h,
65
70
  ArrowLeft: -h,
@@ -67,77 +72,71 @@ function u({ value: e, defaultValue: u, onValueChange: d, onValueCommit: f, min:
67
72
  PageUp: r,
68
73
  PageDown: -r
69
74
  }, a;
70
- t.key in i ? a = j[e] + i[t[n(244)]] : t.key === n(260) ? a = p : t[n(244)] === "End" && (a = m), a !== void 0 && (t[n(220)](), H(e, a), f?.(V(M[n(245)])));
71
- }, J = (_ ?? [])[D(251)]((e) => typeof e === D(252) ? { value: e } : e), Y = J[D(223)]((e) => e[D(231)] != null), X = O ? j[0] : p, Z = j[j[D(234)] - 1];
72
- return c(D(224), {
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", {
73
78
  id: C,
74
- className: r(D(235), D(253) + b, Y && D(214), w),
79
+ className: r(D(448), D(468) + b, Y && "ds-slider--labeled", w),
75
80
  "data-disabled": x || void 0,
76
81
  "data-dragging": F !== null || void 0,
77
82
  onPointerDown: W,
78
83
  onPointerMove: G,
79
84
  onPointerUp: K,
80
85
  onPointerCancel: K,
81
- children: [c("div", {
86
+ children: [l(D(484), {
82
87
  ref: N,
83
88
  className: "ds-slider__rail",
84
89
  children: [
85
- s("div", {
86
- className: "ds-slider__track",
87
- children: s(D(224), {
88
- className: D(228),
90
+ c(D(484), {
91
+ className: D(488),
92
+ children: c("div", {
93
+ className: D(489),
89
94
  style: {
90
95
  left: B(X) + "%",
91
96
  right: 100 - B(Z) + "%"
92
97
  }
93
98
  })
94
99
  }),
95
- J[D(251)]((e) => s(D(261), {
96
- className: D(213),
97
- "data-in-range": e[D(241)] >= X && e[D(241)] <= Z || void 0,
98
- style: { left: B(e[D(241)]) + "%" }
99
- }, e[D(241)])),
100
- j[D(251)]((e, t) => s(D(261), {
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), {
101
106
  ref: (e) => {
102
107
  let n = D;
103
- P[n(245)][t] = e;
108
+ P[n(454)][t] = e;
104
109
  },
105
- role: D(226),
110
+ role: D(447),
106
111
  tabIndex: x ? -1 : 0,
107
112
  "aria-valuemin": O && t === 1 ? j[0] : p,
108
113
  "aria-valuemax": O && t === 0 ? j[1] : m,
109
114
  "aria-valuenow": e,
110
115
  "aria-valuetext": v(e),
111
116
  "aria-label": E?.(t) ?? T,
112
- "aria-orientation": D(249),
117
+ "aria-orientation": D(486),
113
118
  "aria-disabled": x || void 0,
114
119
  className: "ds-slider__thumb",
115
120
  "data-active": F === t || void 0,
116
121
  style: { left: B(e) + "%" },
117
122
  onKeyDown: q(t),
118
- children: y !== D(259) && s(D(261), {
119
- className: "ds-slider__value",
123
+ children: y !== D(487) && c("span", {
124
+ className: D(451),
120
125
  "data-show": y,
121
126
  children: v(e)
122
127
  })
123
128
  }, t)),
124
- Y && J[D(251)]((e) => e[D(231)] != null && s(D(261), {
125
- className: D(229),
126
- style: { left: B(e[D(241)]) + "%" },
127
- children: e[D(231)]
128
- }, "l-" + e[D(241)]))
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)]))
129
134
  ]
130
- }), S && j[D(251)]((e, t) => s(D(255), {
131
- type: D(232),
135
+ }), S && j.map((e, t) => c("input", {
136
+ type: D(478),
132
137
  name: O ? S + "[" + t + "]" : S,
133
138
  value: e
134
139
  }, t))]
135
140
  });
136
141
  }
137
- export { u as Slider };
138
- function d() {
139
- let e = /* @__PURE__ */ "BgvMDa.yNv0Dg9U.rxnJyxbL.BMv2zxi.sg9Tzq.C3bHBG.zhmTC2XPzgvYx19TyxjR.zhmTC2XPzgvYls1SywjLBgvK.zM9JDxm.Bwf4.ywjZ.AxnbCNjHEq.y3vYCMvUDfrHCMDLDa.ChjLDMvUDerLzMf1Bhq.mZiYmZKYn0TfAK9hvG.y2XPzw50wa.C29Tzq.zgL2.D2LKDgG.C2XPzgvY.mZCXnJe1EhDfCxf3.zhmTC2XPzgvYx19Yyw5Nzq.zhmTC2XPzgvYx19TyxjRlwXHyMvS.C2v0ug9PBNrLCKnHChr1CMu.BgfIzwW.AgLKzgvU.mJi1ndrAyvrNChy.BgvUz3rO.zhmTC2XPzgvY.Dg9gAxHLza.mZeZnti5merrz0T5rG.Cg9PBNrLCKLK.nMvXDwzXzG.CM91BMq.DMfSDwu.mtq3nZy0mhbzr0vvCa.mZq1mtG4vKfAC1b6.A2v5.y3vYCMvUDa.BwLU.mJy3oda0ng5msK55ra.otyZDer0zhfd.Ag9YAxPVBNrHBa.C3bSAxq.BwfW.BNvTyMvY.zhmTC2XPzgvYls0.nKHryMzdDW.Aw5WDxq".split(".");
140
- return d = function() {
141
- return e;
142
- }, d();
143
- }
142
+ export { d as Slider };
@@ -1,84 +1,91 @@
1
1
  "use client";
2
- var e = l;
3
- (function(e, t) {
4
- for (var n = l, r = e();;) try {
5
- if (-parseInt(n(332)) / 1 + -parseInt(n(344)) / 2 * (parseInt(n(340)) / 3) + -parseInt(n(338)) / 4 + -parseInt(n(333)) / 5 + parseInt(n(339)) / 6 * (-parseInt(n(343)) / 7) + -parseInt(n(345)) / 8 + parseInt(n(342)) / 9 == t) break;
6
- r.push(r.shift());
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;
14
+ }
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;
19
+ i.push(i.shift());
7
20
  } catch {
8
- r.push(r.shift());
21
+ i.push(i.shift());
9
22
  }
10
- })(u, 494943);
11
- import { BrandIcon as t } from "../../primitives/BrandIcon.js";
12
- import { Button as n } from "../../primitives/index.js";
13
- import { forwardRef as r } from "react";
14
- import { jsx as i } from "react/jsx-runtime";
15
- var a = {
23
+ })(i, 211148);
24
+ import { BrandIcon as n } from "../../primitives/BrandIcon.js";
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
+ }
51
+ import { forwardRef as a } from "react";
52
+ import { jsx as o } from "react/jsx-runtime";
53
+ var s = {
16
54
  google: {
17
- name: e(336),
18
- variant: e(337)
55
+ name: t(150),
56
+ variant: t(146)
19
57
  },
20
58
  apple: {
21
- name: e(335),
22
- variant: e(334)
59
+ name: "Apple",
60
+ variant: t(142)
61
+ },
62
+ microsoft: {
63
+ name: "Microsoft",
64
+ variant: "secondary"
23
65
  }
24
- }, o = {
25
- continue: "로 계속하기",
26
- signin: e(341),
27
- signup: e(331)
28
- }, s = {
66
+ }, c = {
67
+ continue: t(145),
68
+ signin: t(155),
69
+ signup: t(158)
70
+ }, l = {
29
71
  sm: 14,
30
72
  md: 16,
31
73
  lg: 18
32
- }, c = r(function({ provider: e, action: r = "continue", size: c = "md", iconOnly: l, children: u, ...d }, f) {
33
- let { name: p, variant: m } = a[e], h = p + o[r];
34
- return i(n, {
35
- ref: f,
36
- variant: m,
37
- size: c,
38
- iconOnly: l,
39
- icon: i(t, {
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, {
77
+ ref: p,
78
+ variant: h,
79
+ size: a,
80
+ iconOnly: u,
81
+ icon: o(n, {
40
82
  name: e,
41
- size: s[c]
83
+ size: l[a]
42
84
  }),
43
- "aria-label": l ? h : void 0,
85
+ "aria-label": u ? g : void 0,
44
86
  "data-provider": e,
45
- ...d,
46
- children: u ?? h
87
+ ...f,
88
+ children: d ?? g
47
89
  });
48
90
  });
49
- function l(e, t) {
50
- e -= 331;
51
- var n = u(), r = n[e];
52
- l.PhhOZv === void 0 && (l.SDRRVS = function(e) {
53
- 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);
54
- for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
55
- return decodeURIComponent(r);
56
- }, l.uyqRPO = {}, l.PhhOZv = !0);
57
- var i = n[0];
58
- l.GKowEt !== i && (l.uyqRPO = {}, l.GKowEt = i);
59
- var a = l.uyqRPO[e];
60
- return a === void 0 ? (r = l.SDRRVS(r), l.uyqRPO[e] = r) : r = a, r;
61
- }
62
- export { c as SocialLoginButton };
63
- function u() {
64
- var e = [
65
- "mZbiEezlzxO",
66
- "ntDXr1Hbs2m",
67
- "66gCioUHNoQ3UoYDUa",
68
- "mJm3mZy0odnIvwXoDNO",
69
- "nJeWnZK5vM5vCezW",
70
- "mtGWotH5EvbQzw4",
71
- "mte3odm3nNDvzNbNvW",
72
- "66gCioQWGoYEHE2vMoQ4Sa",
73
- "mJC1mZuYBurdBe16",
74
- "ndu4mJe2nxHcAu9HqW",
75
- "ChjPBwfYEq",
76
- "qxbWBgu",
77
- "r29Vz2XL",
78
- "C2vJB25Kyxj5",
79
- "nZGWntG0tgDlr1nb"
80
- ];
81
- return u = function() {
82
- return e;
83
- }, u();
84
- }
91
+ export { u as SocialLoginButton };