@iamfiro/design 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/agents/avatar/AGENTS.md +29 -1
  2. package/agents/tooltip/AGENTS.md +1 -1
  3. package/lib/components/Accordion/Accordion2.js +76 -76
  4. package/lib/components/ActionBar/ActionBar2.js +43 -43
  5. package/lib/components/Alert/Alert2.js +46 -46
  6. package/lib/components/AppShell/AppShell2.js +58 -58
  7. package/lib/components/AreaChart/AreaChart.js +39 -40
  8. package/lib/components/BarChart/BarChart2.js +169 -169
  9. package/lib/components/BarList/BarList2.js +99 -99
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +65 -66
  11. package/lib/components/Calendar/Calendar2.js +172 -171
  12. package/lib/components/Calendar/DatePicker2.js +101 -102
  13. package/lib/components/Calendar/date.js +71 -71
  14. package/lib/components/Card/Card2.js +55 -56
  15. package/lib/components/CardFrame/CardFrame2.js +52 -52
  16. package/lib/components/Chart/ChartParts.js +90 -90
  17. package/lib/components/Chart/chart2.js +52 -52
  18. package/lib/components/Chart/useChartInteraction.js +44 -44
  19. package/lib/components/ChatBubble/ChatBubble2.js +112 -112
  20. package/lib/components/ChatBubble/formatChatTime.js +44 -42
  21. package/lib/components/ChatComposer/ChatComposer2.js +94 -94
  22. package/lib/components/CodeBlock/CodeBlock2.js +66 -66
  23. package/lib/components/CodeBlock/highlight.js +67 -70
  24. package/lib/components/ColorPicker/ColorPicker2.js +404 -405
  25. package/lib/components/ColorPicker/color.js +81 -81
  26. package/lib/components/ColorPicker/presets.js +44 -43
  27. package/lib/components/Combobox/Combobox2.js +128 -128
  28. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  29. package/lib/components/Comment/Comment2.js +55 -80
  30. package/lib/components/ContextMenu/ContextMenu2.js +93 -94
  31. package/lib/components/DataGrid/DataGrid2.js +1181 -1180
  32. package/lib/components/DataGrid/GridPopover.js +112 -112
  33. package/lib/components/DataGrid/anchor.js +23 -25
  34. package/lib/components/DataGrid/model.js +274 -275
  35. package/lib/components/DataGrid/panels.js +423 -423
  36. package/lib/components/DataGrid/typeMeta.js +21 -22
  37. package/lib/components/DataGrid/types.js +38 -37
  38. package/lib/components/DescriptionList/DescriptionList2.js +107 -107
  39. package/lib/components/Dialog/AlertDialog.js +53 -53
  40. package/lib/components/Dialog/Dialog2.js +71 -70
  41. package/lib/components/Dialog/modal.js +59 -58
  42. package/lib/components/Drawer/Drawer2.js +123 -124
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +198 -200
  44. package/lib/components/DropdownMenu/menuCore.js +46 -47
  45. package/lib/components/Dropzone/Dropzone2.js +77 -77
  46. package/lib/components/EmptyState/EmptyState2.js +57 -56
  47. package/lib/components/FileChip/FileChip2.js +71 -71
  48. package/lib/components/FileUpload/FileUpload.js +119 -119
  49. package/lib/components/FilterChips/FilterChips2.js +61 -61
  50. package/lib/components/FunnelChart/FunnelChart2.js +141 -141
  51. package/lib/components/FunnelChart/funnel.js +51 -51
  52. package/lib/components/Highlight/Highlight2.js +54 -54
  53. package/lib/components/HoverCard/HoverCard.js +108 -83
  54. package/lib/components/InlineDiff/InlineDiff2.js +126 -126
  55. package/lib/components/InlineDiff/diff.js +82 -82
  56. package/lib/components/InlineDiff/useDiffReview.js +62 -60
  57. package/lib/components/Kanban/Kanban2.js +382 -382
  58. package/lib/components/Kanban/KanbanCard.js +92 -92
  59. package/lib/components/Kanban/move.js +45 -49
  60. package/lib/components/LineChart/LineChart2.js +207 -207
  61. package/lib/components/List/List2.js +71 -71
  62. package/lib/components/Listbox/Listbox2.js +115 -115
  63. package/lib/components/Marker/Marker2.js +67 -60
  64. package/lib/components/Menubar/Menubar2.js +130 -133
  65. package/lib/components/MultiSelect/MultiSelect2.js +104 -104
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +261 -262
  67. package/lib/components/NoticeStack/NoticeStack2.js +105 -105
  68. package/lib/components/NumberStepper/NumberStepper2.js +67 -67
  69. package/lib/components/OtpInput/OtpInput2.js +66 -67
  70. package/lib/components/Pagination/Pagination2.js +90 -90
  71. package/lib/components/Pagination/paginationRange.js +24 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +74 -74
  73. package/lib/components/PieChart/PieChart2.js +119 -119
  74. package/lib/components/PieChart/arc.js +63 -42
  75. package/lib/components/PieChart/useArcTween.js +56 -54
  76. package/lib/components/Popover/Popover2.js +61 -61
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +127 -127
  78. package/lib/components/Rating/Rating2.js +81 -81
  79. package/lib/components/Resizable/Resizable2.js +112 -110
  80. package/lib/components/Resizable/layout.js +50 -50
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -50
  82. package/lib/components/ScatterChart/ScatterChart2.js +226 -227
  83. package/lib/components/ScatterChart/scatter.js +59 -57
  84. package/lib/components/ScrollArea/ScrollArea2.js +112 -112
  85. package/lib/components/Select/Select2.js +79 -79
  86. package/lib/components/Sidebar/Sidebar2.js +79 -79
  87. package/lib/components/Skeleton/Skeleton2.js +68 -68
  88. package/lib/components/Slider/Slider2.js +78 -77
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +65 -66
  90. package/lib/components/SparkChart/SparkChart2.js +146 -145
  91. package/lib/components/SparkChart/spark.js +41 -67
  92. package/lib/components/Sparkbar/Sparkbar2.js +61 -60
  93. package/lib/components/SplitView/SplitView2.js +53 -53
  94. package/lib/components/Stat/Stat2.js +94 -94
  95. package/lib/components/StepList/StepList2.js +70 -70
  96. package/lib/components/Table/Table2.js +63 -63
  97. package/lib/components/Tabs/Tabs2.js +70 -70
  98. package/lib/components/TagInput/TagInput2.js +236 -239
  99. package/lib/components/TimePicker/TimePicker2.js +231 -232
  100. package/lib/components/TimePicker/time.js +63 -65
  101. package/lib/components/Timeline/Timeline2.js +167 -167
  102. package/lib/components/Timeline/scale.js +55 -55
  103. package/lib/components/Toast/Toaster.js +151 -152
  104. package/lib/components/Toast/store.js +90 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +91 -91
  106. package/lib/components/Toolbar/Toolbar2.js +145 -145
  107. package/lib/components/Tracker/Tracker2.js +76 -76
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +112 -111
  109. package/lib/components/TreeView/TreeView2.js +124 -124
  110. package/lib/hooks/timing.js +30 -29
  111. package/lib/hooks/useControllableState.js +37 -36
  112. package/lib/hooks/useCountdown.js +56 -59
  113. package/lib/hooks/useDigitInput.js +52 -78
  114. package/lib/hooks/useDismiss.js +58 -57
  115. package/lib/hooks/useElapsed.js +54 -54
  116. package/lib/hooks/useFloating.js +26 -26
  117. package/lib/hooks/useFocusTrap.js +42 -42
  118. package/lib/hooks/usePresence.js +49 -48
  119. package/lib/hooks/usePressToOpen.js +42 -41
  120. package/lib/hooks/useScrollLock.js +45 -44
  121. package/lib/hooks/useSelection.js +45 -39
  122. package/lib/index.js +71 -71
  123. package/lib/primitives/AspectRatio2.js +60 -60
  124. package/lib/primitives/BrandIcon.js +161 -161
  125. package/lib/primitives/ColorDot2.js +42 -45
  126. package/lib/primitives/CopyButton2.js +57 -56
  127. package/lib/primitives/CountBadge2.js +55 -51
  128. package/lib/primitives/Countdown2.js +41 -46
  129. package/lib/primitives/Delta2.js +36 -36
  130. package/lib/primitives/Elapsed.js +49 -49
  131. package/lib/primitives/FileIcon2.js +96 -96
  132. package/lib/primitives/Flag2.js +135 -135
  133. package/lib/primitives/IconStack2.js +38 -60
  134. package/lib/primitives/IconTile2.js +28 -29
  135. package/lib/primitives/Kbd2.js +50 -50
  136. package/lib/primitives/Layout2.js +71 -71
  137. package/lib/primitives/Link2.js +32 -31
  138. package/lib/primitives/MaskedText2.js +49 -74
  139. package/lib/primitives/Progress2.js +65 -66
  140. package/lib/primitives/RelativeTime.js +58 -57
  141. package/lib/primitives/SearchInput2.js +65 -65
  142. package/lib/primitives/SelectorButton2.js +74 -73
  143. package/lib/primitives/Spinner2.js +50 -50
  144. package/lib/primitives/StatusIcon2.js +68 -68
  145. package/lib/primitives/Swatch2.js +59 -55
  146. package/lib/primitives/Tooltip2.js +81 -81
  147. package/lib/primitives/Typography2.js +53 -53
  148. package/lib/primitives/formatCountdown.js +21 -22
  149. package/lib/primitives/formatElapsed.js +43 -42
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +82 -82
  152. package/lib/primitives/index.js +193 -174
  153. package/lib/primitives/maskValue.js +28 -28
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,79 +1,83 @@
1
1
  "use client";
2
2
  (function(e, t) {
3
- let n = i, r = e();
3
+ let n = a, r = e();
4
4
  for (;;) try {
5
- if (parseInt(n(118)) / 1 * (parseInt(n(110)) / 2) + parseInt(n(103)) / 3 * (-parseInt(n(104)) / 4) + parseInt(n(119)) / 5 + parseInt(n(115)) / 6 + -parseInt(n(116)) / 7 * (parseInt(n(108)) / 8) + parseInt(n(107)) / 9 + -parseInt(n(122)) / 10 == t) break;
5
+ if (parseInt(n(118)) / 1 * (parseInt(n(137)) / 2) + -parseInt(n(115)) / 3 * (parseInt(n(128)) / 4) + -parseInt(n(125)) / 5 + parseInt(n(139)) / 6 * (parseInt(n(119)) / 7) + -parseInt(n(131)) / 8 + -parseInt(n(122)) / 9 * (-parseInt(n(123)) / 10) + parseInt(n(138)) / 11 * (parseInt(n(121)) / 12) == t) break;
6
6
  r.push(r.shift());
7
7
  } catch {
8
8
  r.push(r.shift());
9
9
  }
10
- })(o, 250094);
10
+ })(n, 951759);
11
11
  /* empty css */
12
12
  import { useEffect as e, useRef as t } from "react";
13
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
14
- function i(e, t) {
15
- e -= 102;
16
- let n = o(), r = n[e];
17
- i.zGjubF === void 0 && (i.WrSBNp = function(e) {
13
+ function n() {
14
+ let e = [
15
+ "C3rHCNrZv2L0Aa",
16
+ "zhmTC3DHDgnOx19Uyw1L",
17
+ "C3bHBG",
18
+ "z2v0uhjVCgvYDhLwywX1zq",
19
+ "mty2mtm3ognnC251rG",
20
+ "mtmZmZG0ou1UtxzHCq",
21
+ "mtyWmduWnLrYuu9qwa",
22
+ "mJGXn2vsu0rkAG",
23
+ "DMfYka",
24
+ "zg9JDw1LBNrfBgvTzw50",
25
+ "mwn1EMHqsG",
26
+ "n3rlwerJvG",
27
+ "zhmTC3DHDgnOx19JAgLW",
28
+ "mJuYyufQue5Q",
29
+ "mZi0owf5zMDjuG",
30
+ "mZmXnZbuCfHpALq",
31
+ "zhmTC3DHDgnOx192ywX1zq",
32
+ "nJu2nZq1nwrisgfSza",
33
+ "Dgv4DenVBNrLBNq",
34
+ "zMLNDxjL",
35
+ "mZaZnNr2rxn4Ea",
36
+ "y3vYCMvUDa",
37
+ "zMLNy2fWDgLVBG",
38
+ "mtq5mdy5mJbOqu5IqMK",
39
+ "DhjPBq"
40
+ ];
41
+ return n = function() {
42
+ return e;
43
+ }, n();
44
+ }
45
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
46
+ function a(e, t) {
47
+ e -= 115;
48
+ let r = n(), i = r[e];
49
+ a.ahYsrW === void 0 && (a.pQvZXM = function(e) {
18
50
  let t = "", n = "";
19
51
  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);
20
52
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
21
53
  return decodeURIComponent(n);
22
- }, i.XJkKqw = {}, i.zGjubF = !0);
23
- let a = n[0];
24
- i.VdQvht !== a && (i.XJkKqw = {}, i.VdQvht = a);
25
- let s = i.XJkKqw[e];
26
- return s === void 0 ? (r = i.WrSBNp(r), i.XJkKqw[e] = r) : r = s, r;
54
+ }, a.RLQfEb = {}, a.ahYsrW = !0);
55
+ let o = r[0];
56
+ a.poXGcU !== o && (a.RLQfEb = {}, a.poXGcU = o);
57
+ let s = a.RLQfEb[e];
58
+ return s === void 0 ? (i = a.pQvZXM(i), a.RLQfEb[e] = i) : i = s, i;
27
59
  }
28
- function a({ color: a, name: o, showValue: s = !0 }) {
29
- let c = i, l = a[c(102)]("--"), u = t(null);
60
+ function o({ color: n, name: o, showValue: s = !0 }) {
61
+ let c = a, l = n[c(133)]("--"), u = t(null);
30
62
  return e(() => {
31
63
  let e = c;
32
- s && u[e(111)] && (u[e(111)][e(117)] = l ? getComputedStyle(document.documentElement)[e(112)](a)[e(106)]() : a);
64
+ s && u[e(129)] && (u[e(129)][e(126)] = l ? getComputedStyle(document[e(117)])[e(136)](n)[e(132)]() : n);
33
65
  }, [
34
- a,
66
+ n,
35
67
  l,
36
68
  s
37
- ]), r(c(114), {
69
+ ]), i(c(127), {
38
70
  className: "ds-swatch",
39
- children: [n(c(120), {
40
- className: c(121),
41
- style: { background: l ? "var(" + a + ")" : a }
42
- }), r(c(113), { children: [n("span", {
43
- className: c(109),
44
- children: o ?? a
45
- }), s && n(c(120), {
71
+ children: [r(c(135), {
72
+ className: c(120),
73
+ style: { background: l ? c(116) + n + ")" : n }
74
+ }), i(c(130), { children: [r(c(135), {
75
+ className: c(134),
76
+ children: o ?? n
77
+ }), s && r(c(135), {
46
78
  ref: u,
47
- className: c(105)
79
+ className: c(124)
48
80
  })] })]
49
81
  });
50
82
  }
51
- export { a as Swatch };
52
- function o() {
53
- let e = [
54
- "mJG1D2zcqLnw",
55
- "mtuWnJH5DNjhDKu",
56
- "zhmTC3DHDgnOx192ywX1zq",
57
- "DhjPBq",
58
- "mZaWnte1ne1ADKzItG",
59
- "mti1nZiWohbfB0PeEa",
60
- "zhmTC3DHDgnOx19Uyw1L",
61
- "mtGXmKvkuLzZuq",
62
- "y3vYCMvUDa",
63
- "z2v0uhjVCgvYDhLwywX1zq",
64
- "zMLNy2fWDgLVBG",
65
- "zMLNDxjL",
66
- "mJiYmtC3mgrdwMfrEa",
67
- "n1fAEvLXvG",
68
- "Dgv4DenVBNrLBNq",
69
- "nduZDwfHq3nW",
70
- "mZeXndyWvuXuvMfx",
71
- "C3bHBG",
72
- "zhmTC3DHDgnOx19JAgLW",
73
- "ndeXodaXmhn3tuHyqW",
74
- "C3rHCNrZv2L0Aa"
75
- ];
76
- return o = function() {
77
- return e;
78
- }, o();
79
- }
83
+ export { o as Swatch };
@@ -1,132 +1,132 @@
1
1
  "use client";
2
- const e = f;
2
+ const e = n;
3
3
  (function(e, t) {
4
- let n = f, r = e();
4
+ let r = n, i = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(358)) / 1 * (-parseInt(n(384)) / 2) + parseInt(n(387)) / 3 * (parseInt(n(348)) / 4) + parseInt(n(347)) / 5 * (-parseInt(n(383)) / 6) + -parseInt(n(390)) / 7 + parseInt(n(343)) / 8 + -parseInt(n(349)) / 9 * (-parseInt(n(350)) / 10) + -parseInt(n(345)) / 11 * (parseInt(n(354)) / 12) == t) break;
7
- r.push(r.shift());
6
+ if (parseInt(r(543)) / 1 + parseInt(r(520)) / 2 * (-parseInt(r(511)) / 3) + -parseInt(r(525)) / 4 * (-parseInt(r(506)) / 5) + parseInt(r(544)) / 6 + parseInt(r(535)) / 7 * (-parseInt(r(503)) / 8) + parseInt(r(498)) / 9 * (parseInt(r(545)) / 10) + parseInt(r(531)) / 11 == t) break;
7
+ i.push(i.shift());
8
8
  } catch {
9
- r.push(r.shift());
9
+ i.push(i.shift());
10
10
  }
11
- })(r, 761908);
12
- import { TIMING as t } from "../hooks/timing.js";
13
- import { usePresence as n } from "../hooks/usePresence.js";
14
- function r() {
15
- let e = /* @__PURE__ */ "DMLZAwjPBgL0Eq.Cg9PBNrLCLr5Cgu.CMvZAxPL.A2v5zg93BG.CMvTB3zLrxzLBNrmAxn0zw5LCG.BM93.AgLKzgvU.ywrKrxzLBNrmAxn0zw5LCG.BwLU.B2zMC2v0v2LKDgG.Dg9VBhrPCfnRAxa.mZmWmJa0rwHHu0Dj.mKDMuejkrG.AgvPz2H0.CMLNAhq.mZLhsfP1qw8.Bwf0y2HLCW.C2nYB2XS.mZK4nti2mvjQCgzPtG.DMLZAwjSzq.Aw5UzxjizwLNAhq.mtuZnZi5nKrhuerAzq.C2v0vgLTzw91Da.mtiYnJyXDvPisuvS.C3r5Bgu.mJbvA3jnyMe.mtqZode2B2zbrg5d.mtaXmZK2nZLgsNb1Aw4.mtbmwvPSzeW.C3bHBG.Bw91C2u.B2zMC2v0sgvPz2H0.mtu5nK5bs1L3DG.yM9KEq.y2XLyxjuAw1LB3v0.B3bLBG.mti0odi1nwzuuwDJCa.yM90Dg9T.Aw5UzxjxAwr0Aa.Dg9VBhrPCerLBgf5.zhmTDgLW.Bwf4.C2LKzq.z2v0qM91BMrPBMDdBgLLBNrszwn0.rxnJyxbL.DgfYz2v0.y3vYCMvUDa.BgvMDa.Dg9W.zhmTDgLWx19IDwjIBgu".split(".");
16
- return r = function() {
11
+ })(t, 852029);
12
+ function t() {
13
+ let e = /* @__PURE__ */ "mZzRwhLcyMy.Bw91C2u.Dg9VBhrPCerLBgf5.Bwf4.CMvTB3zLrxzLBNrmAxn0zw5LCG.ndHRr1vnyNG.Dg9VBhrPCa.yM9KEq.nZb1vfblDMu.A2v5zg93BG.ywrKrxzLBNrmAxn0zw5LCG.B2zMC2v0sgvPz2H0.AgvPz2H0.m3jcy1LtDW.AgLKzgvU.yM90Dg9T.zhmTDgLWx19IDwjIBgu.y2XLyxjuAw1LB3v0.Aw5UzxjizwLNAhq.D2LKDgG.y3vYCMvUDa.DMLZAwjSzq.mJaXnZC3ne9NCuTeEa.C3r5Bgu.DgfYz2v0.Dg9W.BM93.mJGWndi0zwXkrLzV.Dg9VBhrPCfnRAxa.Bwf0y2HLCW.Cg9PBNrLCLr5Cgu.CMLNAhq.BgvMDa.ntCYnZeXn2D3zNzrDG.Aw5UzxjxAwr0Aa.zhmTDgLW.rxnJyxbL.mtiZota3n1ngr2XzqW.BwLU.C2nYB2XS.C3bHBG.zgf0yxnLDa.A2v5.B2zMC2v0v2LKDgG.C2v0vgLTzw91Da.nZK4mtm0zvLOCKzo.mtuXmJK2nLnuueTAAG.oti2mZKWD3HTDNLx.C2LKzq.CMvZAxPL".split(".");
14
+ return t = function() {
17
15
  return e;
18
- }, r();
16
+ }, t();
19
17
  }
20
- /* empty css */
21
- import { useEffect as i, useId as a, useLayoutEffect as o, useRef as s, useState as c } from "react";
22
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
23
- import { createPortal as d } from "react-dom";
24
- function f(e, t) {
25
- e -= 341;
26
- let n = r(), i = n[e];
27
- f.PsFFWL === void 0 && (f.aXWZlS = function(e) {
18
+ function n(e, r) {
19
+ e -= 498;
20
+ let i = t(), a = i[e];
21
+ n.KsofIW === void 0 && (n.xJMNCI = function(e) {
28
22
  let t = "", n = "";
29
23
  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);
30
24
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
31
25
  return decodeURIComponent(n);
32
- }, f.JvInub = {}, f.PsFFWL = !0);
33
- let a = n[0];
34
- f.ezBWDp !== a && (f.JvInub = {}, f.ezBWDp = a);
35
- let o = f.JvInub[e];
36
- return o === void 0 ? (i = f.aXWZlS(i), f.JvInub[e] = i) : i = o, i;
26
+ }, n.FBaBKq = {}, n.KsofIW = !0);
27
+ let o = i[0];
28
+ n.PjnTXT !== o && (n.FBaBKq = {}, n.PjnTXT = o);
29
+ let s = n.FBaBKq[e];
30
+ return s === void 0 ? (a = n.xJMNCI(a), n.FBaBKq[e] = a) : a = s, a;
37
31
  }
32
+ import { TIMING as r } from "../hooks/timing.js";
33
+ import { usePresence as i } from "../hooks/usePresence.js";
34
+ /* empty css */
35
+ import { useEffect as a, useId as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
36
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
37
+ import { createPortal as f } from "react-dom";
38
38
  var p = 0, m = 0, h = 0, g = 8, _ = 8, v = {
39
- top: e(359),
40
- bottom: e(370),
41
- left: e(386),
42
- right: e(369)
39
+ top: e(513),
40
+ bottom: e(523),
41
+ left: e(529),
42
+ right: "left"
43
43
  };
44
44
  function y(t, n, r, i) {
45
- let a = e, o = (e) => e === a(370) || e === a(359) ? {
46
- left: t[a(369)] + t.width / 2 - n / 2,
47
- top: e === a(370) ? t[a(370)] - g - r : t.bottom + g
45
+ let a = e, o = (e) => e === a(523) || e === "bottom" ? {
46
+ left: t[a(530)] + t[a(517)] / 2 - n / 2,
47
+ top: e === "top" ? t[a(523)] - g - r : t[a(513)] + g
48
48
  } : {
49
- left: e === a(369) ? t[a(369)] - g - n : t[a(386)] + g,
50
- top: t.top + t[a(385)] / 2 - r / 2
51
- }, s = ({ left: e, top: t }, i) => i === a(370) ? t >= _ : i === "bottom" ? t + r <= window[a(342)] - _ : i === a(369) ? e >= _ : e + n <= window[a(360)] - _, c = i;
49
+ left: e === a(530) ? t[a(530)] - g - n : t[a(529)] + g,
50
+ top: t[a(523)] + t[a(510)] / 2 - r / 2
51
+ }, s = ({ left: e, top: t }, i) => i === a(523) ? t >= _ : i === "bottom" ? t + r <= window[a(516)] - _ : i === a(530) ? e >= _ : e + n <= window.innerWidth - _, c = i;
52
52
  !s(o(c), c) && s(o(v[c]), v[c]) && (c = v[c]);
53
- let { left: l, top: u } = o(c), d = (e, t, n) => Math[a(363)](_, Math[a(380)](e, n - t - _));
53
+ let { left: l, top: u } = o(c), d = (e, t, n) => Math[a(501)](_, Math[a(536)](e, n - t - _));
54
54
  return {
55
55
  side: c,
56
- left: d(l, n, window[a(360)]),
57
- top: d(u, r, window[a(342)])
56
+ left: d(l, n, window[a(532)]),
57
+ top: d(u, r, window[a(516)])
58
58
  };
59
59
  }
60
- function b({ content: r, side: g = e(370), delay: _ = t[e(361)], children: v }) {
61
- let b = e, [x, S] = c(!1), C = s(0), w = s(!1), T = s(null), E = s(null), D = a(), { mounted: O } = n(x, 160), k = (e) => {
62
- let t = f;
63
- window[t(356)](C[t(368)]), e !== w[t(368)] && (w.current = e, m += e ? 1 : -1, e || (p = Date.now()), S(e));
60
+ function b({ content: t, side: g = "top", delay: _ = r[e(500)], children: v }) {
61
+ let b = e, [x, S] = l(!1), C = c(0), w = c(!1), T = c(null), E = c(null), D = o(), { mounted: O } = i(x, 160), k = (e) => {
62
+ let t = n;
63
+ window[t(515)](C[t(518)]), e !== w[t(518)] && (w[t(518)] = e, m += e ? 1 : -1, e || (p = Date[t(524)]()), S(e));
64
64
  }, A = () => {
65
- let e = f;
66
- window[e(356)](C[e(368)]);
67
- let n = m > 0 || Date[e(377)]() - p < t[e(382)] ? h : 0, r = Math[e(363)](0, _ - n), i = () => {
68
- h = n + r, k(!0);
65
+ let e = n;
66
+ window[e(515)](C[e(518)]);
67
+ let t = m > 0 || Date[e(524)]() - p < r[e(526)] ? h : 0, i = Math.max(0, _ - t), a = () => {
68
+ h = t + i, k(!0);
69
69
  };
70
- r === 0 ? i() : C[e(368)] = window[e(344)](i, r);
70
+ i === 0 ? a() : C[e(518)] = window[e(542)](a, i);
71
71
  };
72
- return i(() => () => {
73
- let e = f;
74
- window[e(356)](C.current), w[e(368)] && m--;
75
- }, []), i(() => {
76
- let e = f;
72
+ return a(() => () => {
73
+ let e = n;
74
+ window[e(515)](C.current), w[e(518)] && m--;
75
+ }, []), a(() => {
76
+ let e = n;
77
77
  if (!x) return;
78
- let t = (t) => t.key === e(366) && k(!1);
79
- return document[e(379)](e(375), t), () => document[e(376)](e(375), t);
80
- }), o(() => {
81
- let e = f;
78
+ let t = (t) => t[e(540)] === e(534) && k(!1);
79
+ return document[e(508)](e(507), t), () => document[e(502)]("keydown", t);
80
+ }), s(() => {
81
+ let e = n;
82
82
  if (!O) return;
83
83
  let t = () => {
84
- let e = f, t = T[e(368)], n = E.current;
85
- if (!t || !n) return;
86
- let r = y(t[e(365)](), n[e(381)], n[e(353)], g);
87
- n.dataset.side = r[e(364)], n[e(346)][e(369)] = r[e(369)] + "px", n[e(346)][e(370)] = r.top + "px", n.style[e(372)] = e(341);
84
+ let e = n, t = T[e(518)], r = E[e(518)];
85
+ if (!t || !r) return;
86
+ let i = y(t.getBoundingClientRect(), r[e(541)], r[e(509)], g);
87
+ r[e(539)][e(546)] = i[e(546)], r[e(521)].left = i[e(530)] + "px", r[e(521)][e(523)] = i[e(523)] + "px", r[e(521)].visibility = e(519);
88
88
  };
89
- return t(), window[e(379)](e(374), t), window.addEventListener(e(389), t, !0), () => {
89
+ return t(), window[e(508)](e(547), t), window.addEventListener(e(537), t, !0), () => {
90
90
  let n = e;
91
- window.removeEventListener("resize", t), window[n(376)](n(389), t, !0);
91
+ window.removeEventListener(n(547), t), window[n(502)]("scroll", t, !0);
92
92
  };
93
93
  }, [
94
94
  O,
95
95
  g,
96
- r
97
- ]), i(() => {
98
- let e = f, t = E[e(368)];
96
+ t
97
+ ]), a(() => {
98
+ let e = n, t = E.current;
99
99
  if (!t) return;
100
100
  if (!x) {
101
- delete t.dataset[e(357)];
101
+ delete t[e(539)].open;
102
102
  return;
103
103
  }
104
- let n = requestAnimationFrame(() => {
105
- n = requestAnimationFrame(() => {
106
- let e = f;
107
- t.dataset[e(357)] = "";
104
+ let r = requestAnimationFrame(() => {
105
+ r = requestAnimationFrame(() => {
106
+ let e = n;
107
+ t[e(539)].open = "";
108
108
  });
109
109
  });
110
- return () => cancelAnimationFrame(n);
111
- }, [x, O]), u(b(351), {
110
+ return () => cancelAnimationFrame(r);
111
+ }, [x, O]), d("span", {
112
112
  ref: T,
113
- className: b(362),
113
+ className: b(533),
114
114
  "data-open": x || void 0,
115
115
  "aria-describedby": x ? D : void 0,
116
- onPointerEnter: (e) => e[b(373)] === b(352) && A(),
116
+ onPointerEnter: (e) => e[b(528)] === b(499) && A(),
117
117
  onPointerLeave: () => k(!1),
118
118
  onPointerDown: () => k(!1),
119
- onFocus: (e) => e[b(367)][b(388)](":focus-visible") && k(!0),
119
+ onFocus: (e) => e[b(522)][b(527)](":focus-visible") && k(!0),
120
120
  onBlur: () => k(!1),
121
- children: [v, O && d(l("span", {
121
+ children: [v, O && f(u(b(538), {
122
122
  ref: E,
123
123
  id: D,
124
- className: b(371),
125
- role: "tooltip",
124
+ className: b(514),
125
+ role: b(504),
126
126
  "data-side": g,
127
- style: { visibility: b(378) },
128
- children: r
129
- }), document[b(355)])]
127
+ style: { visibility: b(512) },
128
+ children: t
129
+ }), document[b(505)])]
130
130
  });
131
131
  }
132
132
  export { b as Tooltip };
@@ -1,61 +1,61 @@
1
1
  "use client";
2
- const e = n;
3
- function t() {
4
- let e = /* @__PURE__ */ "BNvTyMvY.ndy2nZGWtNrzBgXz.AgvHzgLUzY14Ba.yMfSyw5Jzq.nJi4mZeYv3LKvKHH.zhmTDgv4Dc0TC3rYAwTHyMXL.AM9PBG.ndK4mZa5zhvXz0Lq.C3bHBG.zhmTChjVC2u.zgL2.zhmTDgv4Dc0TBNvTzxjPyW.mti3ode3ngzSzfrRra.zhmTDgv4Dc0TDg9Uzs0.nhDduhP0BW.yM9KEs1Tza.C3bSAxq.zhmTDgv4Dc0TDhj1BMnHDgu.AgvHzgLUzY1SzW.AgvHzgLUzY14CW.zhmTChjVC2uTlq.zhmTDgv4Dc0TywXPz24T.C3rHCNrZv2L0Aa.zhmTDgv4Dc0T.zhmTDgv4Dc0TC3rYDwnR.zhmTDgv4Da.mJmZntq3m2niwLvhvq.AgvHzgLUzY1ZBq.zMLSDgvY.ode0ntK2sfPozuXK.ntaXntC2ofPpCuTorW".split(".");
5
- return t = function() {
6
- return e;
7
- }, t();
8
- }
9
- (function(e, t) {
10
- let r = n, i = e();
2
+ const e = t;
3
+ (function(e, n) {
4
+ let r = t, i = e();
11
5
  for (;;) try {
12
- if (parseInt(r(214)) / 1 + -parseInt(r(211)) / 2 + parseInt(r(219)) / 3 * (-parseInt(r(221)) / 4) + parseInt(r(208)) / 5 + parseInt(r(205)) / 6 + -parseInt(r(233)) / 7 + parseInt(r(206)) / 8 == t) break;
6
+ if (-parseInt(r(112)) / 1 * (-parseInt(r(107)) / 2) + -parseInt(r(133)) / 3 * (-parseInt(r(126)) / 4) + parseInt(r(122)) / 5 * (parseInt(r(119)) / 6) + parseInt(r(124)) / 7 * (parseInt(r(127)) / 8) + -parseInt(r(128)) / 9 * (-parseInt(r(113)) / 10) + parseInt(r(123)) / 11 + -parseInt(r(125)) / 12 == n) break;
13
7
  i.push(i.shift());
14
8
  } catch {
15
9
  i.push(i.shift());
16
10
  }
17
- })(t, 280549);
18
- /* empty css */
19
- function n(e, r) {
20
- e -= 204;
21
- let i = t(), a = i[e];
22
- n.seDElS === void 0 && (n.sfuVbl = function(e) {
11
+ })(n, 734310);
12
+ function t(e, r) {
13
+ e -= 107;
14
+ let i = n(), a = i[e];
15
+ t.TIsDPC === void 0 && (t.gsdbYz = function(e) {
23
16
  let t = "", n = "";
24
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);
25
18
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
26
19
  return decodeURIComponent(n);
27
- }, n.jBGAfS = {}, n.seDElS = !0);
20
+ }, t.WwIskN = {}, t.TIsDPC = !0);
28
21
  let o = i[0];
29
- n.KdqiRS !== o && (n.jBGAfS = {}, n.KdqiRS = o);
30
- let s = n.jBGAfS[e];
31
- return s === void 0 ? (a = n.sfuVbl(a), n.jBGAfS[e] = a) : a = s, a;
22
+ t.hpOHsL !== o && (t.WwIskN = {}, t.hpOHsL = o);
23
+ let s = t.WwIskN[e];
24
+ return s === void 0 ? (a = t.gsdbYz(a), t.WwIskN[e] = a) : a = s, a;
32
25
  }
26
+ function n() {
27
+ let e = /* @__PURE__ */ "nJq2mtqYmKD4y3bOqq.mJHLvMvutei.mJmXmdC4mJrezLPssve.mJm2mJy0uevpzvff.mtC4mJy0rKrPuMHW.mty3mdG1AwTTqMLS.zhmTDgv4Dc0TywXPz24T.BNvTyMvY.zgL2.AgvHzgLUzY1Tza.mJDcBvzwCfm.C3rHCNrZv2L0Aa.C3bSAxq.C3bHBG.zhmTChjVC2uTlq.zhmTDgv4Dc0T.mJa3mZeYvKr3vNDO.AgvHzgLUzY14CW.yM9KEs1Tza.zhmTDgv4Dc0TDY0.zhmTDgv4Dc0TDg9Uzs0.m2HHD01brW.mtmWsKDLq3L6.zhmTDgv4Dc0TD3jHCc0.zhmTDgv4Dc0TC3rYDwnR.zhmTDgv4Dc0Ty2XHBxa.AgvHzgLUzY14Ba.zMLSDgvY.ndjKyLnHrvK.AM9PBG.zgvMyxvSDa.nJqYnte1wM9Mrfr3".split(".");
28
+ return n = function() {
29
+ return e;
30
+ }, n();
31
+ }
32
+ /* empty css */
33
33
  import { jsx as r } from "react/jsx-runtime";
34
34
  var i = {
35
35
  display: "h1",
36
36
  heading: "h2",
37
37
  body: "p",
38
- label: "span",
39
- caption: e(215),
40
- overline: e(215),
38
+ label: e(136),
39
+ caption: "span",
40
+ overline: e(136),
41
41
  number: "span",
42
42
  code: "code"
43
43
  };
44
- function a({ as: t, variant: n = e(222), tone: a = "default", weight: o, align: s, truncate: c, lineClamp: l, numeric: u, wrap: d, strike: f, className: p, style: m, children: h, ...g }) {
45
- let _ = e, v = t ?? i[n[_(223)]("-")[0]] ?? _(215), y = [
46
- _(232),
47
- _(230) + n,
48
- a !== "default" && _(220) + a,
49
- o && "ds-text--w-" + o,
50
- s && _(228) + s,
51
- c && _(224),
52
- l && "ds-text--clamp",
53
- (u || n[_(229)](_(207))) && _(218),
54
- d && "ds-text--wrap-" + d,
55
- f !== void 0 && _(212),
56
- f && _(231),
44
+ function a({ as: t, variant: n = e(109), tone: a = e(121), weight: o, align: s, truncate: c, lineClamp: l, numeric: u, wrap: d, strike: f, className: p, style: m, children: h, ...g }) {
45
+ let _ = e, v = t ?? i[n[_(135)]("-")[0]] ?? _(136), y = [
46
+ "ds-text",
47
+ _(138) + n,
48
+ a !== "default" && _(111) + a,
49
+ o && _(110) + o,
50
+ s && _(129) + s,
51
+ c && "ds-text--truncate",
52
+ l && _(116),
53
+ (u || n[_(134)](_(130))) && "ds-text--numeric",
54
+ d && _(114) + d,
55
+ f !== void 0 && "ds-text--strikable",
56
+ f && _(115),
57
57
  p
58
- ][_(204)](Boolean)[_(213)](" ");
58
+ ].filter(Boolean)[_(120)](" ");
59
59
  return r(v, {
60
60
  className: y,
61
61
  style: l ? {
@@ -67,30 +67,30 @@ function a({ as: t, variant: n = e(222), tone: a = "default", weight: o, align:
67
67
  });
68
68
  }
69
69
  var o = {
70
- 1: e(209),
71
- 2: e(225),
72
- 3: "heading-md",
73
- 4: e(234),
74
- 5: e(226),
75
- 6: e(226)
70
+ 1: e(117),
71
+ 2: "heading-lg",
72
+ 3: e(132),
73
+ 4: "heading-sm",
74
+ 5: e(108),
75
+ 6: "heading-xs"
76
76
  };
77
- function s({ level: t = 2, size: n, wrap: i = e(210), ...s }) {
78
- let c = "h" + t;
77
+ function s({ level: e = 2, size: t, wrap: n = "balance", ...i }) {
78
+ let s = "h" + e;
79
79
  return r(a, {
80
- as: c,
81
- variant: n ?? o[t],
82
- wrap: i,
83
- ...s
80
+ as: s,
81
+ variant: t ?? o[e],
82
+ wrap: n,
83
+ ...i
84
84
  });
85
85
  }
86
86
  function c({ size: t = "md", className: n, ...i }) {
87
87
  let a = e;
88
- return r(a(217), {
88
+ return r(a(131), {
89
89
  className: [
90
- a(216),
91
- a(227) + t,
90
+ "ds-prose",
91
+ a(137) + t,
92
92
  n
93
- ][a(204)](Boolean)[a(213)](" "),
93
+ ][a(118)](Boolean)[a(120)](" "),
94
94
  ...i
95
95
  });
96
96
  }
@@ -1,51 +1,50 @@
1
1
  "use client";
2
2
  function e(n, r) {
3
- n -= 500;
3
+ n -= 213;
4
4
  let i = t(), a = i[n];
5
- e.YLXfBk === void 0 && (e.uzXybX = function(e) {
5
+ e.QVQFFU === void 0 && (e.UsMVbe = 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.Fnuldb = {}, e.YLXfBk = !0);
10
+ }, e.ZnZKsM = {}, e.QVQFFU = !0);
11
11
  let o = i[0];
12
- e.vqQjeO !== o && (e.Fnuldb = {}, e.vqQjeO = o);
13
- let s = e.Fnuldb[n];
14
- return s === void 0 ? (a = e.uzXybX(a), e.Fnuldb[n] = a) : a = s, a;
12
+ e.OElOYa !== o && (e.ZnZKsM = {}, e.OElOYa = o);
13
+ let s = e.ZnZKsM[n];
14
+ return s === void 0 ? (a = e.UsMVbe(a), e.ZnZKsM[n] = a) : a = s, a;
15
15
  }
16
16
  (function(t, n) {
17
17
  let r = e, i = t();
18
18
  for (;;) try {
19
- if (-parseInt(r(503)) / 1 + parseInt(r(510)) / 2 + parseInt(r(501)) / 3 * (-parseInt(r(502)) / 4) + -parseInt(r(512)) / 5 + -parseInt(r(505)) / 6 + -parseInt(r(506)) / 7 * (parseInt(r(511)) / 8) + parseInt(r(508)) / 9 == n) break;
19
+ if (-parseInt(r(218)) / 1 * (-parseInt(r(219)) / 2) + parseInt(r(213)) / 3 * (parseInt(r(222)) / 4) + parseInt(r(224)) / 5 + -parseInt(r(220)) / 6 + -parseInt(r(217)) / 7 + -parseInt(r(216)) / 8 + -parseInt(r(214)) / 9 * (parseInt(r(221)) / 10) == n) break;
20
20
  i.push(i.shift());
21
21
  } catch {
22
22
  i.push(i.shift());
23
23
  }
24
- })(t, 499654);
24
+ })(t, 342839);
25
25
  function t() {
26
26
  let e = [
27
- "ngj4s0DLCq",
28
- "ota4ota1DNrcy0vU",
27
+ "mteYoervzu9eCW",
29
28
  "zMXVB3i",
30
- "mJC5oti0meTdr2TrBa",
31
- "n253B2nMBq",
32
- "y2vPBa",
33
- "mJm3mdKXntbIwu5jt3C",
29
+ "mJi1otyYmfj3qMDxvq",
30
+ "nJGXm3P0BvDjAq",
31
+ "mtm2ndq4mu11CwfUwG",
34
32
  "CgfKu3rHCNq",
35
- "mtq5mZqXnK9Uq3vgrG",
36
- "mtm4mJyZmKX2zw9brW",
37
- "mJy3mJK3mhjvwfrKAq",
38
- "Bwf4",
39
- "mJm5ntyWofHKyKjIwG"
33
+ "ndy0ntmWngHnCgvADa",
34
+ "ndC3mJG4rvfQr05u",
35
+ "mvzgweHtsa",
36
+ "mteZmJa1nhjcBMrOBG",
37
+ "mJe4mdGXnhbpqu56uq",
38
+ "mJbZzKPyr1m"
40
39
  ];
41
40
  return t = function() {
42
41
  return e;
43
42
  }, t();
44
43
  }
45
44
  function n(t) {
46
- let n = e, r = Math[n(500)](0, Math[n(507)](t));
45
+ let n = e, r = Math.max(0, Math.ceil(t));
47
46
  if (r < 60) return r + "초";
48
- let i = Math[n(504)](r / 3600), a = Math[n(504)](r % 3600 / 60), o = String(r % 60)[n(509)](2, "0");
49
- return i > 0 ? i + ":" + String(a)[n(509)](2, "0") + ":" + o : a + ":" + o;
47
+ let i = Math[n(223)](r / 3600), a = Math[n(223)](r % 3600 / 60), o = String(r % 60)[n(215)](2, "0");
48
+ return i > 0 ? i + ":" + String(a)[n(215)](2, "0") + ":" + o : a + ":" + o;
50
49
  }
51
50
  export { n as formatCountdown };