@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,77 +1,82 @@
1
1
  "use client";
2
- const e = l;
3
- (function(e, t) {
4
- let n = l, r = e();
2
+ (function(e, n) {
3
+ let r = t, i = e();
5
4
  for (;;) try {
6
- if (-parseInt(n(451)) / 1 + parseInt(n(476)) / 2 + parseInt(n(464)) / 3 + -parseInt(n(473)) / 4 + parseInt(n(465)) / 5 * (-parseInt(n(447)) / 6) + -parseInt(n(484)) / 7 + parseInt(n(456)) / 8 * (parseInt(n(481)) / 9) == t) break;
7
- r.push(r.shift());
5
+ if (parseInt(r(295)) / 1 * (parseInt(r(287)) / 2) + -parseInt(r(289)) / 3 * (parseInt(r(283)) / 4) + -parseInt(r(285)) / 5 * (parseInt(r(303)) / 6) + parseInt(r(322)) / 7 * (parseInt(r(318)) / 8) + parseInt(r(290)) / 9 + parseInt(r(325)) / 10 + parseInt(r(284)) / 11 == n) break;
6
+ i.push(i.shift());
8
7
  } catch {
9
- r.push(r.shift());
8
+ i.push(i.shift());
10
9
  }
11
- })(f, 700011);
12
- import { useControllableState as t } from "../../hooks/useControllableState.js";
13
- import { cx as n } from "../../primitives/index.js";
14
- /* empty css */
15
- import { forwardRef as r, useImperativeHandle as i, useRef as a, useState as o } from "react";
16
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
17
- function l(e, t) {
18
- e -= 442;
19
- let n = f(), r = n[e];
20
- l.xOLFOy === void 0 && (l.dcjMbr = function(e) {
10
+ })(s, 883412);
11
+ import { useControllableState as e } from "../../hooks/useControllableState.js";
12
+ function t(e, n) {
13
+ e -= 282;
14
+ let r = s(), i = r[e];
15
+ t.KIpnsQ === void 0 && (t.bMQrsy = function(e) {
21
16
  let t = "", n = "";
22
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);
23
18
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
24
19
  return decodeURIComponent(n);
25
- }, l.PQxSeB = {}, l.xOLFOy = !0);
26
- let i = n[0];
27
- l.iznGNZ !== i && (l.PQxSeB = {}, l.iznGNZ = i);
28
- let a = l.PQxSeB[e];
29
- return a === void 0 ? (r = l.dcjMbr(r), l.PQxSeB[e] = r) : r = a, r;
20
+ }, t.iizvsO = {}, t.KIpnsQ = !0);
21
+ let a = r[0];
22
+ t.eafCTg !== a && (t.iizvsO = {}, t.eafCTg = a);
23
+ let o = t.iizvsO[e];
24
+ return o === void 0 ? (i = t.bMQrsy(i), t.iizvsO[e] = i) : i = o, i;
25
+ }
26
+ import { cx as n } from "../../primitives/index.js";
27
+ /* empty css */
28
+ import { forwardRef as r, useImperativeHandle as i, useRef as a, useState as o } from "react";
29
+ function s() {
30
+ let e = /* @__PURE__ */ "qxjYB3Dmzwz0.zhmTB3rWx19ZBg90.DgfYz2v0.AwrSzq.y2HHCMfJDgvYCW.qxjYB3DvCa.BNvTzxjPyW.sg9Tzq.zNjVBq.CMvKDwnL.Aw5JBhvKzxm.zhmTB3rWx19PBNb1Da.mtuYz29eBK5M.BwLU.qxjYB3DeB3DU.Aw5WDxq.mZyXodC5wfPczuTN.BgvUz3rO.zgL2.mJu3ota1mhHltKj4tW.BwfW.CMvWBgfJzq.zhmTB3rWx19KB3q.C3bHBG.y3vYCMvUDa.mtaZnJCWmevxA1bQCW.nJG0nJuZmLHXC3Lyva.nJyXnZiWAer5Aefv.zhmTB3rWx19Zzxa.nJyZmdjyquXnsfO.zhmTB3rWx19JAgfY.mtHRAvrywKu.nZi1mdu3mw5QrhHLqG.C2XPy2u.qxjYB3DsAwDODa.zhmTB3rW.Dg9vChbLCKnHC2u.mJLZAvfHqvq.DMfSDwu.Dgv4Da.zhmTB3rWx19NCM91Ca.zhmTB3rWls1SzW.Bg9HzgLUzW.ChjLDMvUDerLzMf1Bhq.zhmTB3rWx19ZBg90CW.ntrWvMzUuxe.C2v0u2vSzwn0Aw9UuMfUz2u.C3vJy2vZCW".split(".");
31
+ return s = function() {
32
+ return e;
33
+ }, s();
30
34
  }
35
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
31
36
  var u = {
32
37
  numeric: /[^0-9]/g,
33
38
  alphanumeric: /[^a-zA-Z0-9]/g
34
- }, d = r(function({ length: r = 6, groups: l, value: d, defaultValue: f = "", onValueChange: p, onComplete: m, pattern: h = e(453), status: g, mask: _, size: v = "md", disabled: y, autoFocus: b, name: x, id: S, className: C, "aria-label": w = e(457) }, T) {
35
- let E = e, D = a(null);
36
- i(T, () => D[E(483)]);
39
+ }, d = r(function({ length: r = 6, groups: s, value: d, defaultValue: f = "", onValueChange: p, onComplete: m, pattern: h = "numeric", status: g, mask: _, size: v = "md", disabled: y, autoFocus: b, name: x, id: S, className: C, "aria-label": w = "인증번호" }, T) {
40
+ let E = t, D = a(null);
41
+ i(T, () => D[E(282)]);
37
42
  let O = (e) => {
38
- let t = E, n = e.replace(u[h], "").slice(0, r);
39
- return h === t(482) ? n[t(454)]() : n;
40
- }, [k, A] = t(d, O(f), p), [j, M] = o(!1), N = (e) => {
43
+ let t = E, n = e[t(327)](u[h], "")[t(291)](0, r);
44
+ return h === "alphanumeric" ? n[t(294)]() : n;
45
+ }, [k, A] = e(d, O(f), p), [j, M] = o(!1), N = (e) => {
41
46
  let t = O(e);
42
47
  t !== k && (A(t), t.length === r && m?.(t));
43
48
  }, P = () => {
44
- let e = E, t = D[e(483)];
45
- t && t[e(467)](t[e(450)][e(472)], t[e(450)].length);
46
- }, F = g === "loading", I = F || g === E(462), L = j && !I ? Math[E(446)](k.length, r - 1) : -1, R = l && l.reduce((e, t) => e + t, 0) === r ? l : [r], z = R[E(463)]((e, t) => {
47
- let n = R[E(443)](0, t).reduce((e, t) => e + t, 0);
48
- return [n, n + e];
49
+ let e = E, t = D[e(282)];
50
+ t && t[e(304)](t[e(296)][e(323)], t[e(296)][e(323)]);
51
+ }, F = g === E(300), I = F || g === E(305), L = j && !I ? Math[E(319)](k[E(323)], r - 1) : -1, R = s && s[E(315)]((e, t) => e + t, 0) === r ? s : [r], z = R[E(326)]((e, t) => {
52
+ let n = E, r = R[n(291)](0, t)[n(315)]((e, t) => e + t, 0);
53
+ return [r, r + e];
49
54
  });
50
- return c(E(460), {
51
- className: n("ds-otp", v === "lg" && E(452), C),
55
+ return l("div", {
56
+ className: n(E(293), v === "lg" && E(299), C),
52
57
  "data-status": g,
53
58
  "data-disabled": y || void 0,
54
59
  onPointerDown: (e) => {
55
60
  let t = E;
56
- y || (e[t(477)](), D[t(483)]?.[t(479)](), P());
61
+ y || (e.preventDefault(), D[t(282)]?.focus(), P());
57
62
  },
58
- children: [s("input", {
63
+ children: [c(E(321), {
59
64
  ref: D,
60
65
  id: S,
61
66
  name: x,
62
- className: E(455),
67
+ className: E(317),
63
68
  value: k,
64
- inputMode: h === E(453) ? "numeric" : E(478),
69
+ inputMode: h === E(312) ? E(312) : E(297),
65
70
  autoComplete: "one-time-code",
66
- autoCapitalize: E(449),
71
+ autoCapitalize: E(310),
67
72
  spellCheck: !1,
68
73
  "aria-label": w + " " + r + "자리",
69
- "aria-invalid": g === E(469) || void 0,
74
+ "aria-invalid": g === "error" || void 0,
70
75
  "aria-busy": F || void 0,
71
76
  readOnly: I,
72
77
  disabled: y,
73
78
  autoFocus: b,
74
- onChange: (e) => N(e[E(471)][E(450)]),
79
+ onChange: (e) => N(e[E(308)].value),
75
80
  onFocus: () => {
76
81
  M(!0), P();
77
82
  },
@@ -80,43 +85,37 @@ var u = {
80
85
  onKeyDown: (e) => {
81
86
  let t = E;
82
87
  [
83
- t(461),
84
- t(466),
85
- "Home",
88
+ t(306),
89
+ t(292),
90
+ t(313),
86
91
  "End",
87
- t(470),
88
- t(442)
89
- ][t(480)](e.key) && e[t(477)]();
92
+ t(311),
93
+ t(320)
94
+ ][t(316)](e.key) && e[t(301)]();
90
95
  }
91
- }), s(E(460), {
92
- className: "ds-otp__slots",
93
- children: z[E(463)](([e, t], n) => c("div", {
94
- className: E(485),
95
- children: [n > 0 && s(E(459), {
96
- className: E(458),
96
+ }), c(E(324), {
97
+ className: E(302),
98
+ children: z.map(([e, t], n) => l(E(324), {
99
+ className: E(298),
100
+ children: [n > 0 && c(E(329), {
101
+ className: E(286),
97
102
  "aria-hidden": !0
98
- }), Array[E(444)]({ length: t - e }, (t, n) => {
103
+ }), Array[E(314)]({ length: t - e }, (t, n) => {
99
104
  let r = E, i = e + n, a = k[i];
100
- return c(r(460), {
101
- className: r(468),
105
+ return l(r(324), {
106
+ className: r(307),
102
107
  "data-filled": a != null || void 0,
103
108
  "data-active": i === L || void 0,
104
109
  style: { "--_i": i },
105
110
  "aria-hidden": !0,
106
- children: [a != null && s(r(459), {
107
- className: r(445),
108
- children: _ ? s(r(459), { className: r(474) }) : a
109
- }, a + i), i === L && a == null && s(r(459), { className: r(448) })]
111
+ children: [a != null && c("span", {
112
+ className: r(288),
113
+ children: _ ? c(r(329), { className: r(328) }) : a
114
+ }, a + i), i === L && a == null && c("span", { className: "ds-otp__caret" })]
110
115
  }, i);
111
116
  })]
112
117
  }, n))
113
- }, g ? g + "-" + k : E(475))]
118
+ }, g ? g + "-" + k : E(309))]
114
119
  });
115
120
  });
116
- function f() {
117
- let e = /* @__PURE__ */ "BgvUz3rO.ntaZodGYnffMqKD5uq.zhmTB3rWx19KB3q.AwrSzq.odm4nduWBLntB2PZ.ChjLDMvUDerLzMf1Bhq.Dgv4Da.zM9JDxm.Aw5JBhvKzxm.mZe2mti1B3fnt0nT.ywXWAgfUDw1LCMLJ.y3vYCMvUDa.otaWntaZmwrpBMLVua.zhmTB3rWx19NCM91Ca.qxjYB3DeB3DU.C2XPy2u.zNjVBq.zhmTB3rWx19JAgfY.BwLU.ntKXotm2t1HWvvvf.zhmTB3rWx19JyxjLDa.y2HHCMfJDgvYCW.DMfSDwu.mJa0ode3CvPdyxbZ.zhmTB3rWls1SzW.BNvTzxjPyW.Dg9vChbLCKnHC2u.zhmTB3rWx19PBNb1Da.nJu2uujPsuj5.7j247kAD67ki7zI4.zhmTB3rWx19Zzxa.C3bHBG.zgL2.qxjYB3Dmzwz0.C3vJy2vZCW.BwfW.mJuYnJi1mMjQtK9lAW.mZvvu29zr0K.qxjYB3DsAwDODa.C2v0u2vSzwn0Aw9UuMfUz2u.zhmTB3rWx19ZBg90.zxjYB3i.qxjYB3DvCa.DgfYz2v0".split(".");
118
- return f = function() {
119
- return e;
120
- }, f();
121
- }
122
121
  export { d as OtpInput };
@@ -1,51 +1,51 @@
1
1
  "use client";
2
- const e = p;
2
+ const e = i;
3
3
  (function(e, t) {
4
- let n = p, r = e();
4
+ let n = i, r = e();
5
5
  for (;;) try {
6
- if (parseInt(n(460)) / 1 + -parseInt(n(518)) / 2 + parseInt(n(462)) / 3 * (-parseInt(n(485)) / 4) + parseInt(n(480)) / 5 + -parseInt(n(486)) / 6 * (-parseInt(n(507)) / 7) + parseInt(n(501)) / 8 + -parseInt(n(478)) / 9 * (parseInt(n(461)) / 10) == t) break;
6
+ if (parseInt(n(316)) / 1 + parseInt(n(286)) / 2 + -parseInt(n(326)) / 3 + -parseInt(n(335)) / 4 * (-parseInt(n(323)) / 5) + -parseInt(n(283)) / 6 + -parseInt(n(334)) / 7 + parseInt(n(318)) / 8 == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(l, 539255);
11
+ })(a, 987521);
12
12
  import { Text as t } from "../../primitives/Typography2.js";
13
13
  import { Inline as n } from "../../primitives/Layout2.js";
14
14
  import { useControllableState as r } from "../../hooks/useControllableState.js";
15
- import { Button as i, Input as a, cx as o } from "../../primitives/index.js";
16
- import { Select as s } from "../Select/Select2.js";
17
- import { paginationRange as c } from "./paginationRange.js";
18
- /* empty css */
19
- function l() {
20
- let e = /* @__PURE__ */ "zhmTCgfNAw5HDgLVBL9FCgfNzq.zhmTCgfNAw5HDgLVBI0T.BgvMDa.BMv1DhjHBa.mty1mMXMAuz4za.Cg9SAxrL.DgfYz2v0.7y6y7j207kEa64U5io2vREUQQsdSIjG.zMXVB3i.BNvTyMvY.yM9KEs1ZBq.zhmTCgfNAw5HDgLVBL9FC2LTCgXL.y3vYCMvUDa.zw5K.ic8G.mtK2mZe2EK5ZyNvS.BMf2.7y6y7j207kEa64U5ia.zhmTCgfNAw5HDgLVBL9FDgH1Bwi.BNvTzxjPyW.A2v5.C2vJB25Kyxj5.C3bHBG.Bwf4.BwLU.B2zMC2v0tgvMDa.mJy0nJmZDfjpChv3.mti2ndG3mfbtthvmwq.mtjTvwnSyue.DgvYDgLHCNK.Dg9mB2nHBgvtDhjPBMC.BwfW.BMf0AxzLrxzLBNq.rw50zxi.yMv0D2vLBG.BgfIzwWTBwq.7j2064+z7zwGio2oMoYDToYNGcaOmEkaKW.zhmTCgfNAw5HDgLVBL9FANvTCa.66Ei7kEa66Ejio2oMoYDToYNGa.zhmTCgfNAw5HDgLVBL9FCgfNzxm.Dg90ywW.rxnJyxbL.64UK7j2mio2oMoYDToYNGa.D2LKDgG.mti2teLMEeHo.C2LTCgXL.nduYotmYmgHnwfz6rq.DMfSDwu.B2zMC2v0v2LKDgG.ChjPBwfYEq.zgL2.mZuYnJq0uKDMrhP3.mtK5nZrQsfHNBhO.7y6y7j207kEa.y2vPBa.C3rHCNq.zhmTCgfNAw5HDgLVBL9FzwXSAxbZAxm.Axnoyu4.zgLZy29UBMvJDa.BgfIzwW.CxvLCNLtzwXLy3rVCG.z2HVC3q.7lkRio2oMoYDToYNGa.zhmTCgfNAw5HDgLVBI0TChjPBwfYEq.zgvMyxvSDa.7j207kceio2oMoYDToYNGa.A28Ts1i.nJqZnZG3mMXLDKHYBq.CgfNzq".split(".");
21
- return l = function() {
22
- return e;
23
- }, l();
24
- }
25
- import { useLayoutEffect as u, useRef as d, useState as f } from "react";
26
- function p(e, t) {
27
- e -= 456;
28
- let n = l(), r = n[e];
29
- p.FAevzn === void 0 && (p.ydFkvj = function(e) {
15
+ function i(e, t) {
16
+ e -= 281;
17
+ let n = a(), r = n[e];
18
+ i.QXLSpR === void 0 && (i.PcJzhn = function(e) {
30
19
  let t = "", n = "";
31
20
  for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
32
21
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
33
22
  return decodeURIComponent(n);
34
- }, p.FQMuED = {}, p.FAevzn = !0);
35
- let i = n[0];
36
- p.FpXFJR !== i && (p.FQMuED = {}, p.FpXFJR = i);
37
- let a = p.FQMuED[e];
38
- return a === void 0 ? (r = p.ydFkvj(r), p.FQMuED[e] = r) : r = a, r;
23
+ }, i.Kvbfla = {}, i.QXLSpR = !0);
24
+ let o = n[0];
25
+ i.HfIjSz !== o && (i.Kvbfla = {}, i.HfIjSz = o);
26
+ let s = i.Kvbfla[e];
27
+ return s === void 0 ? (r = i.PcJzhn(r), i.Kvbfla[e] = r) : r = s, r;
39
28
  }
29
+ function a() {
30
+ let e = /* @__PURE__ */ "BgfIzwW.BgfIzwWTBwq.7y6y7j207kEa64U5io2vREUQQsdSIjG.yM9KEs1ZBq.yMv0D2vLBG.64UK7j2mio2oMoYDToYNGa.BNvTyMvY.ic8G.zgvMyxvSDa.A2v5.zMXVB3i.C2vJB25Kyxj5.A28Ts1i.BNvTzxjPyW.B2jZzxj2zq.BMv1DhjHBa.y2vPBa.BMf0AxzLrxzLBNq.7j2064+z7zwGio2oMoYDToYNGcaOmEkaKW.D2LKDgG.Dg90ywW.odeXmZm2CxPyzhLS.BwfW.mtm2nte5otjJyw1Jtu8.zhmTCgfNAw5HDgLVBL9FzwXSAxbZAxm.Bwf4.B2zMC2v0tgvMDa.zgLZy29UBMvJDa.mtq1y3LlrNjh.BgvMDa.C3rHCNq.mZyWodG4nKv3vw1RrW.zhmTCgfNAw5HDgLVBL9FDgH1Bwi.7lkRio2oMoYDToYNGa.7y6y7j207kEa64U5ia.DMfSDwu.CxvLCNLtzwXLy3rVCG.z2HVC3q.Dg9mB2nHBgvtDhjPBMC.nZKXmJy3nhzmEM9vyq.mJi5odC2v0DyDgfI.C3bHBG.Cg9SAxrL.w2fYAweTy3vYCMvUDd0ICgfNzsjD.BwLU.nti1mJa3meHiChvuta.ChjPBwfYEq.yNv0Dg9U.mJm1ndHdzu16thO.DgfYz2v0.zhmTCgfNAw5HDgLVBI0TChjPBwfYEq.rw50zxi.AxndB21WB3nPBMC.zhmTCgfNAw5HDgLVBL9FC2LTCgXL.7y6y7j207kEa.DgvYDgLHCNK.zhmTCgfNAw5HDgLVBL9FCgfNzxm".split(".");
31
+ return a = function() {
32
+ return e;
33
+ }, a();
34
+ }
35
+ import { Button as o, Input as s, cx as c } from "../../primitives/index.js";
36
+ import { Select as l } from "../Select/Select2.js";
37
+ import { paginationRange as u } from "./paginationRange.js";
38
+ /* empty css */
39
+ import { useLayoutEffect as d, useRef as f, useState as p } from "react";
40
40
  import { ChevronLeft as m, ChevronRight as h, ChevronsLeft as g, ChevronsRight as _ } from "lucide-react";
41
41
  import { jsx as v, jsxs as y } from "react/jsx-runtime";
42
- var b = (t) => t[e(464)](e(500));
43
- function x({ page: a, defaultPage: c = 1, onPageChange: l, totalPages: u, totalItems: d, pageSize: f, defaultPageSize: p = 20, onPageSizeChange: x, pageSizeOptions: w, siblingCount: T = 1, boundaryCount: E = 1, variant: D = e(498), tone: O = e(506), size: k = "md", showFirstLast: A, showRange: j, showJump: M, formatRange: N, disabled: P, "aria-label": F = e(487), className: I, style: L }) {
44
- let R = e, [z, B] = r(a, c, l), [V, H] = r(f, p, x), U = Math.max(1, u ?? (d == null ? 1 : Math[R(488)](d / V))), W = Math[R(458)](Math[R(457)](1, z), U), G = (e) => {
45
- let t = R, n = Math[t(458)](Math[t(457)](1, e), U);
42
+ var b = (t) => t[e(333)](e(307));
43
+ function x({ page: i, defaultPage: a = 1, onPageChange: s, totalPages: u, totalItems: d, pageSize: f, defaultPageSize: p = 20, onPageSizeChange: x, pageSizeOptions: w, siblingCount: T = 1, boundaryCount: E = 1, variant: D = e(303), tone: O = e(310), size: k = "md", showFirstLast: A, showRange: j, showJump: M, formatRange: N, disabled: P, "aria-label": F = e(292), className: I, style: L }) {
44
+ let R = e, [z, B] = r(i, a, s), [V, H] = r(f, p, x), U = Math.max(1, u ?? (d == null ? 1 : Math[R(311)](d / V))), W = Math[R(282)](Math.max(1, z), U), G = (e) => {
45
+ let t = R, n = Math[t(282)](Math[t(320)](1, e), U);
46
46
  n !== W && B(n);
47
- }, K = (e, t, n, r) => v(i, {
48
- variant: R(495),
47
+ }, K = (e, t, n, r) => v(o, {
48
+ variant: R(332),
49
49
  size: k,
50
50
  iconOnly: !0,
51
51
  icon: t,
@@ -54,40 +54,40 @@ function x({ page: a, defaultPage: c = 1, onPageChange: l, totalPages: u, totalI
54
54
  onClick: () => G(n)
55
55
  }), q = (j ?? d != null) && d != null, J = d == null ? null : {
56
56
  start: d === 0 ? 0 : (W - 1) * V + 1,
57
- end: Math[R(458)](W * V, d),
57
+ end: Math[R(282)](W * V, d),
58
58
  total: d
59
59
  }, Y = (e) => {
60
60
  let t = R, n = (W - 1) * V;
61
61
  H(e);
62
- let r = Math[t(511)](n / e) + 1;
62
+ let r = Math[t(305)](n / e) + 1;
63
63
  r !== W && B(r);
64
64
  }, X = q && J || w ? y(n, {
65
65
  gap: 3,
66
66
  children: [q && J && v(t, {
67
67
  variant: "body-sm",
68
- tone: "secondary",
68
+ tone: R(306),
69
69
  numeric: !0,
70
- "aria-live": R(508),
71
- children: N ? N(J) : b(J[R(489)]) + "–" + b(J[R(516)]) + R(517) + b(J[R(474)]) + "개"
72
- }), w && v(s, {
70
+ "aria-live": R(337),
71
+ children: N ? N(J) : b(J.start) + "–" + b(J.end) + R(302) + b(J[R(315)]) + "개"
72
+ }), w && v(l, {
73
73
  size: "sm",
74
- "aria-label": R(510),
74
+ "aria-label": R(297),
75
75
  disabled: P,
76
- options: w[R(465)]((e) => ({
76
+ options: w[R(317)]((e) => ({
77
77
  value: String(e),
78
78
  label: e + "개"
79
79
  })),
80
80
  value: String(V),
81
81
  onValueChange: (e) => Y(Number(e)),
82
- renderValue: (e) => R(520) + e[R(493)]
82
+ renderValue: (e) => R(329) + e[R(295)]
83
83
  })]
84
84
  }) : null;
85
85
  return y(n, {
86
- as: R(519),
86
+ as: "nav",
87
87
  gap: 4,
88
- justify: R(X ? 468 : 489),
88
+ justify: R(X ? 299 : 325),
89
89
  "aria-label": F,
90
- className: o("ds-pagination", R(504) + k, O === R(483) && R(497), I),
90
+ className: c("ds-pagination", "ds-pagination--" + k, O === R(284) && R(288), I),
91
91
  style: L,
92
92
  children: [X, y(n, {
93
93
  gap: 4,
@@ -95,17 +95,17 @@ function x({ page: a, defaultPage: c = 1, onPageChange: l, totalPages: u, totalI
95
95
  gap: 1,
96
96
  wrap: !1,
97
97
  children: [
98
- A && K(R(496), v(g, {}), 1, W <= 1),
99
- K(R(499), v(m, {}), W - 1, W <= 1),
100
- D === R(479) ? y(t, {
101
- variant: R(469),
98
+ A && K(R(328), v(g, {}), 1, W <= 1),
99
+ K("이전 페이지", v(m, {}), W - 1, W <= 1),
100
+ D === "simple" ? y(t, {
101
+ variant: R(296),
102
102
  numeric: !0,
103
- className: R(514),
104
- "aria-live": R(508),
103
+ className: R(291),
104
+ "aria-live": "polite",
105
105
  children: [W, y(t, {
106
- as: R(456),
107
- variant: R(469),
108
- tone: R(463),
106
+ as: "span",
107
+ variant: R(296),
108
+ tone: R(293),
109
109
  numeric: !0,
110
110
  children: [
111
111
  " ",
@@ -121,8 +121,8 @@ function x({ page: a, defaultPage: c = 1, onPageChange: l, totalPages: u, totalI
121
121
  disabled: P,
122
122
  onPick: G
123
123
  }),
124
- K(R(476), v(h, {}), W + 1, W >= U),
125
- A && K(R(472), v(_, {}), U, W >= U)
124
+ K(R(300), v(h, {}), W + 1, W >= U),
125
+ A && K("마지막 페이지", v(_, {}), U, W >= U)
126
126
  ]
127
127
  }), M && v(C, {
128
128
  count: U,
@@ -132,76 +132,76 @@ function x({ page: a, defaultPage: c = 1, onPageChange: l, totalPages: u, totalI
132
132
  })]
133
133
  });
134
134
  }
135
- function S({ page: t, count: n, siblingCount: r, boundaryCount: i, disabled: a, onPick: o }) {
136
- let s = e, l = d(null), [m, h] = f(null), g = c(t, n, r, i);
137
- return u(() => {
138
- let e = p, t = l[e(515)];
135
+ function S({ page: t, count: n, siblingCount: r, boundaryCount: a, disabled: o, onPick: s }) {
136
+ let c = e, l = f(null), [m, h] = p(null), g = u(t, n, r, a);
137
+ return d(() => {
138
+ let e = i, t = l.current;
139
139
  if (!t) return;
140
140
  let n = () => {
141
- let n = e, r = t[n(494)]("[aria-current=\"page\"]");
142
- r && h({
143
- left: r[n(459)],
144
- width: r[n(482)]
141
+ let e = i, n = t[e(331)](e(281));
142
+ n && h({
143
+ left: n[e(321)],
144
+ width: n.offsetWidth
145
145
  });
146
146
  };
147
147
  n();
148
148
  let r = new ResizeObserver(n);
149
- return r.observe(t), () => r[e(492)]();
149
+ return r[e(309)](t), () => r[e(322)]();
150
150
  }, [
151
151
  t,
152
152
  n,
153
153
  r,
154
- i
155
- ]), y(s(484), {
154
+ a
155
+ ]), y("div", {
156
156
  ref: l,
157
- className: s(473),
158
- children: [m && v(s(456), {
159
- className: s(521),
157
+ className: c(294),
158
+ children: [m && v(c(336), {
159
+ className: c(327),
160
160
  "aria-hidden": !0,
161
161
  style: {
162
- left: m[s(505)],
163
- width: m[s(477)]
162
+ left: m[c(324)],
163
+ width: m[c(314)]
164
164
  }
165
- }), g.map((e) => typeof e === s(512) ? v("button", {
165
+ }), g[c(317)]((e) => typeof e === c(301) ? v(c(285), {
166
166
  type: "button",
167
- className: s(503),
168
- "aria-current": e === t ? s(502) : void 0,
169
- "aria-label": e + s(487),
170
- disabled: a,
171
- onClick: () => o(e),
167
+ className: "ds-pagination__page",
168
+ "aria-current": e === t ? "page" : void 0,
169
+ "aria-label": e + "페이지",
170
+ disabled: o,
171
+ onClick: () => s(e),
172
172
  children: e
173
- }, e) : v("span", {
174
- className: s(490),
173
+ }, e) : v(c(336), {
174
+ className: c(319),
175
175
  "aria-hidden": !0,
176
176
  children: "…"
177
177
  }, e))]
178
178
  });
179
179
  }
180
- function C({ count: r, disabled: i, onJump: o }) {
181
- let s = e, [c, l] = f(""), u = () => {
182
- let e = p, t = parseInt(c, 10);
183
- Number[e(491)](t) || o(t), l("");
180
+ function C({ count: r, disabled: i, onJump: a }) {
181
+ let o = e, [c, l] = p(""), u = () => {
182
+ let e = parseInt(c, 10);
183
+ Number.isNaN(e) || a(e), l("");
184
184
  };
185
185
  return y(n, {
186
186
  gap: 2,
187
187
  wrap: !1,
188
188
  children: [v(t, {
189
- variant: s(513),
190
- tone: s(524),
189
+ variant: o(298),
190
+ tone: o(306),
191
191
  "aria-hidden": !0,
192
192
  children: "이동"
193
- }), v(a, {
193
+ }), v(s, {
194
194
  size: "sm",
195
- inputMode: s(522),
196
- "aria-label": s(470) + r + ")",
195
+ inputMode: o(308),
196
+ "aria-label": o(313) + r + ")",
197
197
  placeholder: "1–" + r,
198
198
  disabled: i,
199
199
  value: c,
200
- wrapperClassName: s(471),
201
- onChange: (e) => l(e[s(509)][s(481)].replace(/[^0-9]/g, "")),
200
+ wrapperClassName: "ds-pagination__jump",
201
+ onChange: (e) => l(e[o(287)][o(330)].replace(/[^0-9]/g, "")),
202
202
  onKeyDown: (e) => {
203
- let t = s;
204
- e[t(523)] === t(467) && !e[t(466)].isComposing && u(), e.key === t(475) && l("");
203
+ let t = o;
204
+ e[t(304)] === t(289) && !e[t(312)][t(290)] && u(), e[t(304)] === "Escape" && l("");
205
205
  },
206
206
  onBlur: () => l("")
207
207
  })]
@@ -1,51 +1,51 @@
1
1
  "use client";
2
2
  function e(t, r) {
3
- t -= 260;
3
+ t -= 246;
4
4
  let i = n(), a = i[t];
5
- e.aIrWeu === void 0 && (e.UOPkbj = function(e) {
5
+ e.KVfVeG === void 0 && (e.PrwRFG = 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.yYqvtE = {}, e.aIrWeu = !0);
10
+ }, e.LOttkD = {}, e.KVfVeG = !0);
11
11
  let o = i[0];
12
- e.awoEhY !== o && (e.yYqvtE = {}, e.awoEhY = o);
13
- let s = e.yYqvtE[t];
14
- return s === void 0 ? (a = e.UOPkbj(a), e.yYqvtE[t] = a) : a = s, a;
12
+ e.JcoVzR !== o && (e.LOttkD = {}, e.JcoVzR = o);
13
+ let s = e.LOttkD[t];
14
+ return s === void 0 ? (a = e.PrwRFG(a), e.LOttkD[t] = 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(275)) / 1 + parseInt(r(263)) / 2 + parseInt(r(267)) / 3 + -parseInt(r(270)) / 4 * (parseInt(r(264)) / 5) + -parseInt(r(276)) / 6 * (-parseInt(r(265)) / 7) + parseInt(r(266)) / 8 * (-parseInt(r(269)) / 9) + -parseInt(r(274)) / 10 * (-parseInt(r(271)) / 11) == n) break;
19
+ if (parseInt(r(259)) / 1 + parseInt(r(260)) / 2 + -parseInt(r(250)) / 3 * (parseInt(r(257)) / 4) + parseInt(r(262)) / 5 * (parseInt(r(251)) / 6) + -parseInt(r(252)) / 7 * (-parseInt(r(256)) / 8) + -parseInt(r(248)) / 9 + -parseInt(r(247)) / 10 == n) break;
20
20
  i.push(i.shift());
21
21
  } catch {
22
22
  i.push(i.shift());
23
23
  }
24
- })(n, 402858);
24
+ })(n, 883735);
25
25
  function t(t, n, r = 1, i = 1) {
26
- let a = e, o = (e, t) => Array[a(273)]({ length: Math[a(272)](t - e + 1, 0) }, (t, n) => e + n), s = o(1, Math[a(262)](i, n)), c = o(Math[a(272)](n - i + 1, i + 1), n), l = Math[a(272)](Math.min(t - r, n - i - r * 2 - 1), i + 2), u = Math[a(262)](Math.max(t + r, i + r * 2 + 2), c.length > 0 ? c[0] - 2 : n - 1), d = [...s];
27
- return l > i + 2 ? d[a(261)](a(260)) : i + 1 < n - i && d[a(261)](i + 1), d[a(261)](...o(l, u)), u < n - i - 1 ? d.push(a(268)) : n - i > i && d.push(n - i), d[a(261)](...c), d;
26
+ let a = e, o = (e, t) => Array[a(249)]({ length: Math[a(261)](t - e + 1, 0) }, (t, n) => e + n), s = o(1, Math[a(246)](i, n)), c = o(Math.max(n - i + 1, i + 1), n), l = Math[a(261)](Math[a(246)](t - r, n - i - r * 2 - 1), i + 2), u = Math.min(Math[a(261)](t + r, i + r * 2 + 2), c[a(253)] > 0 ? c[0] - 2 : n - 1), d = [...s];
27
+ return l > i + 2 ? d[a(254)](a(255)) : i + 1 < n - i && d.push(i + 1), d[a(254)](...o(l, u)), u < n - i - 1 ? d[a(254)](a(258)) : n - i > i && d.push(n - i), d.push(...c), d;
28
28
  }
29
29
  export { t as paginationRange };
30
30
  function n() {
31
31
  let e = [
32
- "ovDrq1Lxva",
33
- "mJG4mZqXnLv4rK9Rwq",
34
- "mtq1mZfdsMLtEKO",
32
+ "mtzrrffZt0C",
33
+ "ntC0ntjzBg1fswW",
34
+ "zw5KlwvSBgLWC2LZ",
35
+ "mtC0nZeZv3nvuNbM",
36
+ "mty2nti2nhvHwe1KBW",
35
37
  "Bwf4",
38
+ "nZy3mg1wBMTVsW",
39
+ "BwLU",
40
+ "mteWmJiWndbeu0vjy0i",
41
+ "mJqZota4mwrTz3z3rW",
36
42
  "zNjVBq",
37
- "ntK5mfLntg1WqW",
38
- "nta0nJGZDev1BuHL",
39
- "mti2nZuXmM9nr29LDW",
40
- "C3rHCNqTzwXSAxbZAxm",
43
+ "mZiXzuXTCKHg",
44
+ "ntKXmhrAtgfpBG",
45
+ "ndq2nda4ouHyBgnhBq",
46
+ "BgvUz3rO",
41
47
  "ChvZAa",
42
- "BwLU",
43
- "odiYnJa0z1b5EM5f",
44
- "nuziCNLswG",
45
- "mtrxDMXHyNe",
46
- "mtuXntG0ohDxBvnHyG",
47
- "ntC4mZCZyM5Qr2TK",
48
- "zw5KlwvSBgLWC2LZ"
48
+ "C3rHCNqTzwXSAxbZAxm"
49
49
  ];
50
50
  return n = function() {
51
51
  return e;