@iamfiro/design 0.1.0 → 0.3.1

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 (160) hide show
  1. package/AGENTS.md +1 -0
  2. package/agents/INDEX.md +1 -0
  3. package/agents/brand-icon/AGENTS.md +2 -2
  4. package/agents/social-login-button/AGENTS.md +156 -0
  5. package/lib/components/Accordion/Accordion2.js +135 -0
  6. package/lib/components/ActionBar/ActionBar2.js +66 -0
  7. package/lib/components/Alert/Alert2.js +131 -0
  8. package/lib/components/AppShell/AppShell2.js +94 -0
  9. package/lib/components/AreaChart/AreaChart.js +59 -0
  10. package/lib/components/BarChart/BarChart2.js +243 -0
  11. package/lib/components/BarList/BarList2.js +172 -0
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +90 -0
  13. package/lib/components/Calendar/Calendar2.js +309 -0
  14. package/lib/components/Calendar/DatePicker2.js +228 -0
  15. package/lib/components/Calendar/date.js +118 -0
  16. package/lib/components/Card/Card2.js +103 -0
  17. package/lib/components/CardFrame/CardFrame2.js +67 -0
  18. package/lib/components/Chart/ChartParts.js +150 -0
  19. package/lib/components/Chart/chart2.js +96 -0
  20. package/lib/components/Chart/useChartInteraction.js +94 -0
  21. package/lib/components/ChatBubble/ChatBubble2.js +174 -0
  22. package/lib/components/ChatBubble/formatChatTime.js +48 -0
  23. package/lib/components/ChatComposer/ChatComposer2.js +153 -0
  24. package/lib/components/CodeBlock/CodeBlock2.js +93 -0
  25. package/lib/components/CodeBlock/highlight.js +111 -0
  26. package/lib/components/ColorPicker/ColorPicker2.js +609 -0
  27. package/lib/components/ColorPicker/color.js +180 -0
  28. package/lib/components/ColorPicker/presets.js +70 -0
  29. package/lib/components/Combobox/Combobox2.js +228 -0
  30. package/lib/components/CommandMenu/CommandMenu.js +267 -0
  31. package/lib/components/Comment/Comment2.js +110 -0
  32. package/lib/components/ContextMenu/ContextMenu2.js +168 -0
  33. package/lib/components/DataGrid/DataGrid2.js +1998 -0
  34. package/lib/components/DataGrid/GridPopover.js +154 -0
  35. package/lib/components/DataGrid/anchor.js +50 -0
  36. package/lib/components/DataGrid/model.js +557 -0
  37. package/lib/components/DataGrid/panels.js +701 -0
  38. package/lib/components/DataGrid/typeMeta.js +75 -0
  39. package/lib/components/DataGrid/types.js +53 -0
  40. package/lib/components/DescriptionList/DescriptionList2.js +180 -0
  41. package/lib/components/Dialog/AlertDialog.js +119 -0
  42. package/lib/components/Dialog/Dialog2.js +110 -0
  43. package/lib/components/Dialog/modal.js +92 -0
  44. package/lib/components/Drawer/Drawer2.js +244 -0
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +393 -0
  46. package/lib/components/DropdownMenu/menuCore.js +63 -0
  47. package/lib/components/Dropzone/Dropzone2.js +145 -0
  48. package/lib/components/EmptyState/EmptyState2.js +70 -0
  49. package/lib/components/FileChip/FileChip2.js +94 -0
  50. package/lib/components/FileUpload/FileUpload.js +259 -0
  51. package/lib/components/FilterChips/FilterChips2.js +101 -0
  52. package/lib/components/FunnelChart/FunnelChart2.js +283 -0
  53. package/lib/components/FunnelChart/funnel.js +72 -0
  54. package/lib/components/Highlight/Highlight2.js +100 -0
  55. package/lib/components/HoverCard/HoverCard.js +134 -0
  56. package/lib/components/InlineDiff/InlineDiff2.js +215 -0
  57. package/lib/components/InlineDiff/diff.js +126 -0
  58. package/lib/components/InlineDiff/useDiffReview.js +110 -0
  59. package/lib/components/Kanban/Kanban2.js +691 -0
  60. package/lib/components/Kanban/KanbanCard.js +159 -0
  61. package/lib/components/Kanban/move.js +69 -0
  62. package/lib/components/LineChart/LineChart2.js +342 -0
  63. package/lib/components/List/List2.js +132 -0
  64. package/lib/components/Listbox/Listbox2.js +163 -0
  65. package/lib/components/Marker/Marker2.js +82 -0
  66. package/lib/components/Menubar/Menubar2.js +222 -0
  67. package/lib/components/MultiSelect/MultiSelect2.js +204 -0
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +481 -0
  69. package/lib/components/NoticeStack/NoticeStack2.js +178 -0
  70. package/lib/components/NumberStepper/NumberStepper2.js +128 -0
  71. package/lib/components/OtpInput/OtpInput2.js +122 -0
  72. package/lib/components/Pagination/Pagination2.js +210 -0
  73. package/lib/components/Pagination/paginationRange.js +52 -0
  74. package/lib/components/PhoneInput/PhoneInput.js +175 -0
  75. package/lib/components/PieChart/PieChart2.js +246 -0
  76. package/lib/components/PieChart/arc.js +90 -0
  77. package/lib/components/PieChart/useArcTween.js +92 -0
  78. package/lib/components/Popover/Popover2.js +111 -0
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +226 -0
  80. package/lib/components/Rating/Rating2.js +186 -0
  81. package/lib/components/Resizable/Resizable2.js +238 -0
  82. package/lib/components/Resizable/layout.js +115 -0
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +99 -0
  84. package/lib/components/ScatterChart/ScatterChart2.js +355 -0
  85. package/lib/components/ScatterChart/scatter.js +85 -0
  86. package/lib/components/ScrollArea/ScrollArea2.js +217 -0
  87. package/lib/components/Select/Select2.js +153 -0
  88. package/lib/components/Sidebar/Sidebar2.js +127 -0
  89. package/lib/components/Skeleton/Skeleton2.js +91 -0
  90. package/lib/components/Slider/Slider2.js +142 -0
  91. package/lib/components/SocialLoginButton/SocialLoginButton.js +84 -0
  92. package/lib/components/SparkChart/SparkChart2.js +217 -0
  93. package/lib/components/SparkChart/spark.js +71 -0
  94. package/lib/components/Sparkbar/Sparkbar2.js +111 -0
  95. package/lib/components/SplitView/SplitView2.js +95 -0
  96. package/lib/components/Stat/Stat2.js +164 -0
  97. package/lib/components/StepList/StepList2.js +131 -0
  98. package/lib/components/Table/Table2.js +104 -0
  99. package/lib/components/Tabs/Tabs2.js +131 -0
  100. package/lib/components/TagInput/TagInput2.js +357 -0
  101. package/lib/components/TimePicker/TimePicker2.js +388 -0
  102. package/lib/components/TimePicker/time.js +81 -0
  103. package/lib/components/Timeline/Timeline2.js +369 -0
  104. package/lib/components/Timeline/scale.js +81 -0
  105. package/lib/components/Toast/Toaster.js +213 -0
  106. package/lib/components/Toast/store.js +128 -0
  107. package/lib/components/ToggleGroup/ToggleGroup2.js +125 -0
  108. package/lib/components/Toolbar/Toolbar2.js +283 -0
  109. package/lib/components/Tracker/Tracker2.js +172 -0
  110. package/lib/components/TreeDiagram/TreeDiagram2.js +223 -0
  111. package/lib/components/TreeView/TreeView2.js +286 -0
  112. package/lib/hooks/timing.js +57 -0
  113. package/lib/hooks/useControllableState.js +49 -0
  114. package/lib/hooks/useCountdown.js +75 -0
  115. package/lib/hooks/useDigitInput.js +103 -0
  116. package/lib/hooks/useDismiss.js +69 -0
  117. package/lib/hooks/useElapsed.js +85 -0
  118. package/lib/hooks/useFloating.js +70 -0
  119. package/lib/hooks/useFocusTrap.js +85 -0
  120. package/lib/hooks/usePresence.js +58 -0
  121. package/lib/hooks/usePressToOpen.js +70 -0
  122. package/lib/hooks/useScrollLock.js +71 -0
  123. package/lib/hooks/useSelection.js +65 -0
  124. package/lib/index.js +176 -17911
  125. package/lib/primitives/AspectRatio2.js +76 -0
  126. package/lib/primitives/BrandIcon.js +245 -0
  127. package/lib/primitives/ColorDot2.js +71 -0
  128. package/lib/primitives/CopyButton2.js +86 -0
  129. package/lib/primitives/CountBadge2.js +80 -0
  130. package/lib/primitives/Countdown2.js +61 -0
  131. package/lib/primitives/Delta2.js +92 -0
  132. package/lib/primitives/Elapsed.js +62 -0
  133. package/lib/primitives/FileIcon2.js +125 -0
  134. package/lib/primitives/Flag2.js +263 -0
  135. package/lib/primitives/IconStack2.js +85 -0
  136. package/lib/primitives/IconTile2.js +69 -0
  137. package/lib/primitives/Kbd2.js +88 -0
  138. package/lib/primitives/Layout2.js +118 -0
  139. package/lib/primitives/Link2.js +55 -0
  140. package/lib/primitives/MaskedText2.js +121 -0
  141. package/lib/primitives/Progress2.js +137 -0
  142. package/lib/primitives/RelativeTime.js +82 -0
  143. package/lib/primitives/SearchInput2.js +85 -0
  144. package/lib/primitives/SelectorButton2.js +96 -0
  145. package/lib/primitives/Spinner2.js +94 -0
  146. package/lib/primitives/StatusIcon2.js +126 -0
  147. package/lib/primitives/Swatch2.js +79 -0
  148. package/lib/primitives/Tooltip2.js +132 -0
  149. package/lib/primitives/Typography2.js +97 -0
  150. package/lib/primitives/formatCountdown.js +54 -0
  151. package/lib/primitives/formatElapsed.js +63 -0
  152. package/lib/primitives/formatRelativeTime.js +64 -0
  153. package/lib/primitives/hotkey.js +94 -0
  154. package/lib/primitives/index.js +351 -0
  155. package/lib/primitives/maskValue.js +69 -0
  156. package/lib/style.css +1 -1
  157. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +10 -0
  158. package/lib/types/components/index.d.ts +2 -0
  159. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  160. package/package.json +2 -1
@@ -0,0 +1,75 @@
1
+ "use client";
2
+ var e = d;
3
+ function t() {
4
+ var e = [
5
+ "odC3nZK3mhDmuxD6zG",
6
+ "mJa3otKWr21IEhjM",
7
+ "mtqZode2ELH6DhfJ",
8
+ "vvjm",
9
+ "mZi5rKHeAvP4",
10
+ "ntG4mdiWu1HfCMnU",
11
+ "mZeZmdKXmunWvhrpDq",
12
+ "ntu0zM9gBgPd",
13
+ "mJG2ndeYnuDVyu12yW",
14
+ "mJDdzuLoEu8",
15
+ "mtiYmLj6yKXOAG",
16
+ "7lk07ygS67cv7iQK"
17
+ ];
18
+ return t = function() {
19
+ return e;
20
+ }, t();
21
+ }
22
+ (function(e, t) {
23
+ for (var n = d, r = e();;) try {
24
+ if (parseInt(n(272)) / 1 * (parseInt(n(275)) / 2) + -parseInt(n(274)) / 3 * (-parseInt(n(282)) / 4) + -parseInt(n(273)) / 5 + -parseInt(n(278)) / 6 + parseInt(n(281)) / 7 * (parseInt(n(279)) / 8) + -parseInt(n(283)) / 9 + -parseInt(n(277)) / 10 == t) break;
25
+ r.push(r.shift());
26
+ } catch {
27
+ r.push(r.shift());
28
+ }
29
+ })(t, 673292);
30
+ import { Calendar as n, CircleChevronDown as r, Hash as i, Link as a, SquareCheck as o, Tags as s, Type as c } from "lucide-react";
31
+ import { jsx as l } from "react/jsx-runtime";
32
+ var u = {
33
+ text: {
34
+ label: "텍스트",
35
+ icon: l(c, {})
36
+ },
37
+ number: {
38
+ label: "숫자",
39
+ icon: l(i, {})
40
+ },
41
+ select: {
42
+ label: "선택",
43
+ icon: l(r, {})
44
+ },
45
+ multiSelect: {
46
+ label: "다중 선택",
47
+ icon: l(s, {})
48
+ },
49
+ checkbox: {
50
+ label: e(276),
51
+ icon: l(o, {})
52
+ },
53
+ date: {
54
+ label: "날짜",
55
+ icon: l(n, {})
56
+ },
57
+ url: {
58
+ label: e(280),
59
+ icon: l(a, {})
60
+ }
61
+ };
62
+ function d(e, n) {
63
+ e -= 272;
64
+ var r = t(), i = r[e];
65
+ d.Gvpmej === void 0 && (d.QaSEog = function(e) {
66
+ 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);
67
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
68
+ return decodeURIComponent(r);
69
+ }, d.dzZPSu = {}, d.Gvpmej = !0);
70
+ var a = r[0];
71
+ d.wCIBdz !== a && (d.dzZPSu = {}, d.wCIBdz = a);
72
+ var o = d.dzZPSu[e];
73
+ return o === void 0 ? (i = d.QaSEog(i), d.dzZPSu[e] = i) : i = o, i;
74
+ }
75
+ export { u as TYPE_META };
@@ -0,0 +1,53 @@
1
+ "use client";
2
+ function e(n, r) {
3
+ n -= 356;
4
+ var i = t(), a = i[n];
5
+ e.UIVqRd === void 0 && (e.QpHwfo = 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.zqeXOO = {}, e.UIVqRd = !0);
10
+ var o = i[0];
11
+ e.TTewAs !== o && (e.zqeXOO = {}, e.TTewAs = o);
12
+ var s = e.zqeXOO[n];
13
+ return s === void 0 ? (a = e.QpHwfo(a), e.zqeXOO[n] = a) : a = s, a;
14
+ }
15
+ function t() {
16
+ var e = [
17
+ "nJyZmZa0nuDtDu1mCa",
18
+ "mZGYnunttg93Ca",
19
+ "mtCZnZq4nNj3C3LjCq",
20
+ "zgvMyxvSDa",
21
+ "mtyXmZGYnfnqtfPcsq",
22
+ "n3vbvu1xEa",
23
+ "yw5K",
24
+ "mta3mty0A3nVr2HX",
25
+ "odu4mdGWuKPPzKzh",
26
+ "mta0nhbmCNvVzq",
27
+ "otu5ntvgDNfXsNC"
28
+ ];
29
+ return t = function() {
30
+ return e;
31
+ }, t();
32
+ }
33
+ var n = e;
34
+ (function(t, n) {
35
+ for (var r = e, i = t();;) try {
36
+ if (-parseInt(r(363)) / 1 + -parseInt(r(360)) / 2 + -parseInt(r(365)) / 3 * (parseInt(r(362)) / 4) + -parseInt(r(361)) / 5 + parseInt(r(366)) / 6 + -parseInt(r(358)) / 7 * (parseInt(r(357)) / 8) + parseInt(r(364)) / 9 == n) break;
37
+ i.push(i.shift());
38
+ } catch {
39
+ i.push(i.shift());
40
+ }
41
+ })(t, 170930);
42
+ var r = {
43
+ sorts: [],
44
+ filters: [],
45
+ filterMode: n(359),
46
+ groupBy: null,
47
+ collapsed: [],
48
+ search: "",
49
+ density: n(356),
50
+ rowNumbers: !0,
51
+ gridlines: !1
52
+ };
53
+ export { r as DEFAULT_VIEW };
@@ -0,0 +1,180 @@
1
+ "use client";
2
+ const e = _;
3
+ (function(e, t) {
4
+ let n = _, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(399)) / 1 + parseInt(n(379)) / 2 * (parseInt(n(382)) / 3) + parseInt(n(390)) / 4 + -parseInt(n(414)) / 5 * (-parseInt(n(418)) / 6) + parseInt(n(409)) / 7 * (parseInt(n(400)) / 8) + -parseInt(n(386)) / 9 + parseInt(n(384)) / 10 * (-parseInt(n(398)) / 11) == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(n, 536230);
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ function n() {
14
+ let e = /* @__PURE__ */ "DgvYDgLHCNK.zw5K.mtm2nZa4oeDeuMv0rW.AwnVBG.BwfW.Aw5SAw5L.zgvMyxvSDa.zhmTzgXFx2L0zw0TlwnVBNrLBNrZ.zhmTzgXFx2L0zw0.C3bHBG.mZeYnhb0qK94EG.mZq3nZmXsxLoALbA.oeHewM1PCq.zgL2.zhmTzgWTCgfUzwW.yM9KEs1ZBq.y2vUDgvY.B3zLCMXPBMu.BgfIzwWTBgC.BgfIzwWTBwq.zhmTzgXFx2L0zw0Tlxn0ywnRzwq.nJu2ndu3mK5frMT2yq.C3bHBIa.C3rHy2TLza.zhmTzgXFx2LJB24.Dg9Uzq.nte2ntaWnxHYz2r5uq.y2fWDgLVBG.BNvTyMvYlxnT.CgXHAw4.nLzdqw5lwG.C2vJDgLVBG.zhmTzgXFx3rLCM0.C3rHCNq.yMv0D2vLBG.C3vIDgXL.BNvTyMvYlw1K.mJaWmZHRyNbquNC.DMfSDwu.uhjVDMLKzxi.nJLet2zlyuO.yMfZzwXPBMu.nJGWmJbXAhzSD3C.BNvTyMvYlwXN.mZGWndy1mwTzrxzMCq.zhmTzgW".split(".");
15
+ return n = function() {
16
+ return e;
17
+ }, n();
18
+ }
19
+ import { Box as r, Grid as i, Inline as a, Stack as o } from "../../primitives/Layout2.js";
20
+ import { cx as s } from "../../primitives/index.js";
21
+ /* empty css */
22
+ import { createContext as c, useContext as l, useId as u } from "react";
23
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
24
+ var p = c({
25
+ layout: e(411),
26
+ labelStyle: e(405),
27
+ size: "md",
28
+ align: e(389)
29
+ }), m = {
30
+ sm: e(416),
31
+ md: e(378),
32
+ lg: e(385)
33
+ }, h = {
34
+ sm: "label-sm",
35
+ md: e(407),
36
+ lg: e(406)
37
+ }, g = {
38
+ sm: e(403),
39
+ md: "body-sm",
40
+ lg: "body-md"
41
+ };
42
+ function _(e, t) {
43
+ e -= 375;
44
+ let r = n(), i = r[e];
45
+ _.fkxjJF === void 0 && (_.QrlgoU = function(e) {
46
+ let t = "", n = "";
47
+ 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);
48
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
49
+ return decodeURIComponent(n);
50
+ }, _.PSEUaj = {}, _.fkxjJF = !0);
51
+ let a = r[0];
52
+ _.tBIfeT !== a && (_.PSEUaj = {}, _.tBIfeT = a);
53
+ let o = _.PSEUaj[e];
54
+ return o === void 0 ? (i = _.QrlgoU(i), _.PSEUaj[e] = i) : i = o, i;
55
+ }
56
+ function v({ items: t, children: n, layout: a = e(411), columns: o, minItemWidth: c, variant: l = e(417), labelStyle: u = e(405), size: m = "md", align: h = e(389), gap: g, rowGap: _, "aria-label": v, className: b, style: x }) {
57
+ let S = e, C = a === "inline", w = C && h === S(375), T = d(i, {
58
+ as: "dl",
59
+ columns: o ?? (w ? "max-content minmax(0, 1fr)" : C ? 1 : 3),
60
+ minItemWidth: w ? void 0 : c,
61
+ gap: g ?? (w ? 4 : C ? 6 : 4),
62
+ rowGap: _ ?? (C ? 2 : 4),
63
+ "aria-label": v,
64
+ className: s(S(387), l === S(417) && b),
65
+ style: l === "plain" ? x : void 0,
66
+ children: f(p[S(381)], {
67
+ value: {
68
+ layout: a,
69
+ labelStyle: u,
70
+ size: m,
71
+ align: h
72
+ },
73
+ children: [t?.[S(392)]((e, t) => d(y, {
74
+ label: e.label,
75
+ icon: e[S(391)],
76
+ tone: e[S(413)],
77
+ span: e[S(397)],
78
+ children: e[S(380)]
79
+ }, e.id ?? t)), n]
80
+ })
81
+ });
82
+ return l === S(417) ? T : d(r, {
83
+ padding: 3,
84
+ background: S(377),
85
+ className: s(S(402), b),
86
+ style: x,
87
+ children: T
88
+ });
89
+ }
90
+ function y({ label: n, icon: r, children: i, tone: c = e(394), span: u, className: _ }) {
91
+ let v = e, { layout: y, labelStyle: x, size: S, align: C } = l(p), w = u && u > 1 ? v(410) + u : void 0;
92
+ if (y === v(393)) {
93
+ let e = d(b, {
94
+ icon: r,
95
+ variant: x === "overline" ? "overline" : g[S],
96
+ children: n
97
+ }), o = d(t, {
98
+ as: "dd",
99
+ variant: h[S],
100
+ tone: c,
101
+ align: C,
102
+ numeric: !0,
103
+ children: i
104
+ });
105
+ return C === v(375) ? f(v(401), {
106
+ className: s("ds-dl__item", v(395), _),
107
+ children: [e, o]
108
+ }) : f(a, {
109
+ gap: 4,
110
+ justify: v(376),
111
+ align: v(r == null ? 383 : 404),
112
+ wrap: !1,
113
+ className: s(v(396), _),
114
+ style: { gridColumn: w },
115
+ children: [e, o]
116
+ });
117
+ }
118
+ return f(o, {
119
+ gap: 1,
120
+ className: s(v(396), v(408), _),
121
+ style: { gridColumn: w },
122
+ children: [d(b, {
123
+ icon: r,
124
+ variant: x === v(405) ? "overline" : v(415),
125
+ children: n
126
+ }), d(t, {
127
+ as: "dd",
128
+ variant: m[S],
129
+ tone: c,
130
+ children: i
131
+ })]
132
+ });
133
+ }
134
+ function b({ icon: n, variant: r, children: i }) {
135
+ let o = e;
136
+ return n == null ? d(t, {
137
+ as: "dt",
138
+ variant: r,
139
+ tone: o(388),
140
+ truncate: !0,
141
+ children: i
142
+ }) : f(a, {
143
+ as: "dt",
144
+ gap: 2,
145
+ wrap: !1,
146
+ className: o(420),
147
+ children: [d(o(397), {
148
+ className: o(412),
149
+ "aria-hidden": !0,
150
+ children: n
151
+ }), d(t, {
152
+ variant: r,
153
+ tone: o(388),
154
+ truncate: !0,
155
+ children: i
156
+ })]
157
+ });
158
+ }
159
+ function x({ title: n, children: r, className: i, style: a }) {
160
+ let s = e, c = u();
161
+ return f(o, {
162
+ as: s(419),
163
+ gap: 1,
164
+ "aria-labelledby": c,
165
+ className: i,
166
+ style: a,
167
+ children: [d(t, {
168
+ id: c,
169
+ variant: s(405),
170
+ tone: s(388),
171
+ children: n
172
+ }), d(t, {
173
+ as: s(401),
174
+ variant: s(403),
175
+ tone: "secondary",
176
+ children: r
177
+ })]
178
+ });
179
+ }
180
+ export { y as DescriptionItem, v as DescriptionList, x as DescriptionSection };
@@ -0,0 +1,119 @@
1
+ "use client";
2
+ const e = a;
3
+ (function(e, t) {
4
+ let n = a, r = e();
5
+ for (;;) try {
6
+ if (-parseInt(n(177)) / 1 * (parseInt(n(176)) / 2) + parseInt(n(166)) / 3 + -parseInt(n(164)) / 4 * (-parseInt(n(194)) / 5) + parseInt(n(168)) / 6 + -parseInt(n(184)) / 7 * (-parseInt(n(178)) / 8) + parseInt(n(179)) / 9 * (parseInt(n(183)) / 10) + -parseInt(n(169)) / 11 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(o, 154734);
12
+ import { useControllableState as t } from "../../hooks/useControllableState.js";
13
+ import { Button as n, Field as r, Input as i } from "../../primitives/index.js";
14
+ function a(e, t) {
15
+ e -= 164;
16
+ let n = o(), r = n[e];
17
+ a.cQceXk === void 0 && (a.dHZYNq = function(e) {
18
+ let t = "", n = "";
19
+ 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
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
21
+ return decodeURIComponent(n);
22
+ }, a.iuhODD = {}, a.cQceXk = !0);
23
+ let i = n[0];
24
+ a.XLKDgE !== i && (a.iuhODD = {}, a.XLKDgE = i);
25
+ let s = a.iuhODD[e];
26
+ return s === void 0 ? (r = a.dHZYNq(r), a.iuhODD[e] = r) : r = s, r;
27
+ }
28
+ function o() {
29
+ let e = /* @__PURE__ */ "B2zM.BMf0AxzLrxzLBNq.A2v5.ywXLCNq.AxndB21WB3nPBMC.zgL2.DgfYz2v0.zhmTywXLCNqTzgLHBg9Nx19IB2r5.odbWAvLVEeG.7lky66AS7zwy7kEaioUQU+2wIoYwToYALc4G64UK7iUCioYlNoUpHo2vTcdSO7ZSHlJSMPqU.nti0nZzIrg9KwgC.zgfUz2vY.ntC0nZq5wKDVChLN.zhmTywXLCNqTzgLHBg9Nx19LCNjVCG.mtC1ndm4offKBfrOsa.nZqWmJuXnMPxvuzSDq.zgvMyxvSDa.C3rYB25N.7j2ekoULVcKG7j6f66cL7zwy7is47jQu.ChjPBwfYEq.6Roe7iAn7zwy66cK66M0ia.BwvZC2fNzq.otjSD0PZr0S.mti3mgjJtNrRsW.oteZnZm2AwLfy3ft.mti2qK5tqwnS.zhmTywXLCNqTzgLHBg9Nx190AxrSzq.zhmTywXLCNqTzgLHBg9Nx19Py29U.C2vJB25Kyxj5.ntu3mJbABffsyLC.n2X2rMzdDW.C3bHBG".split(".");
30
+ return o = function() {
31
+ return e;
32
+ }, o();
33
+ }
34
+ import { Dialog as s } from "./Dialog2.js";
35
+ import { useId as c, useRef as l, useState as u } from "react";
36
+ import { AlertTriangle as d } from "lucide-react";
37
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
38
+ function h({ open: o, defaultOpen: h = !1, onOpenChange: g, trigger: _, title: v, description: y, tone: b = e(170), confirmLabel: x, cancelLabel: S = "취소", onConfirm: C, confirmationText: w, children: T }) {
39
+ let E = e, [D, O] = t(o, h, g), [k, A] = u(!1), [j, M] = u(null), [N, P] = u(""), F = l(null), I = l(null), L = l(null), R = c(), z = (e) => {
40
+ e && (M(null), P("")), O(e);
41
+ }, B = async () => {
42
+ let e = a;
43
+ M(null), A(!0);
44
+ try {
45
+ await C(), O(!1);
46
+ } catch (t) {
47
+ M(t instanceof Error ? t[e(175)] : e(195));
48
+ } finally {
49
+ A(!1);
50
+ }
51
+ }, V = w != null && N !== w, H = b === E(165);
52
+ return p(s, {
53
+ open: D,
54
+ onOpenChange: z,
55
+ trigger: _,
56
+ size: "sm",
57
+ dismissible: !k,
58
+ showClose: !1,
59
+ initialFocus: w == null ? H ? F : I : L,
60
+ className: "ds-alert-dialog",
61
+ title: m(E(185), {
62
+ className: E(180),
63
+ children: [H && p("span", {
64
+ className: E(181),
65
+ "aria-hidden": !0,
66
+ children: p(d, {})
67
+ }), v]
68
+ }),
69
+ description: y,
70
+ footer: m(f, { children: [p(n, {
71
+ ref: F,
72
+ variant: E(182),
73
+ disabled: k,
74
+ onClick: () => z(!1),
75
+ children: S
76
+ }), p(n, {
77
+ ref: I,
78
+ variant: H ? "danger" : E(173),
79
+ loading: k,
80
+ disabled: V || k,
81
+ onClick: B,
82
+ "data-tone": b,
83
+ children: x
84
+ })] }),
85
+ children: (T || w != null || j) && m(E(191), {
86
+ className: E(193),
87
+ children: [
88
+ T,
89
+ w != null && p(r, {
90
+ htmlFor: R,
91
+ label: m(f, { children: [
92
+ E(174),
93
+ p(E(171), { children: w }),
94
+ E(172)
95
+ ] }),
96
+ children: p(i, {
97
+ ref: L,
98
+ id: R,
99
+ value: N,
100
+ onChange: (e) => P(e[E(192)].value),
101
+ onKeyDown: (e) => {
102
+ let t = E;
103
+ e[t(188)] !== "Enter" || V || k || e[t(187)][t(190)] || B();
104
+ },
105
+ disabled: k,
106
+ autoComplete: E(186),
107
+ spellCheck: !1
108
+ })
109
+ }),
110
+ j && p("p", {
111
+ role: E(189),
112
+ className: E(167),
113
+ children: j
114
+ })
115
+ ]
116
+ })
117
+ });
118
+ }
119
+ export { h as AlertDialog };
@@ -0,0 +1,110 @@
1
+ "use client";
2
+ function e(t, n) {
3
+ t -= 162;
4
+ let r = h(), i = r[t];
5
+ e.uAGdLs === void 0 && (e.sxPdzC = function(e) {
6
+ let t = "", n = "";
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
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
+ return decodeURIComponent(n);
10
+ }, e.JpDnvh = {}, e.uAGdLs = !0);
11
+ let a = r[0];
12
+ e.iWODwa !== a && (e.JpDnvh = {}, e.iWODwa = a);
13
+ let o = e.JpDnvh[t];
14
+ return o === void 0 ? (i = e.sxPdzC(i), e.JpDnvh[t] = i) : i = o, i;
15
+ }
16
+ const t = e;
17
+ (function(t, n) {
18
+ let r = e, i = t();
19
+ for (;;) try {
20
+ if (parseInt(r(168)) / 1 * (parseInt(r(171)) / 2) + parseInt(r(169)) / 3 + -parseInt(r(191)) / 4 * (parseInt(r(164)) / 5) + -parseInt(r(167)) / 6 * (-parseInt(r(174)) / 7) + -parseInt(r(163)) / 8 + parseInt(r(182)) / 9 + -parseInt(r(181)) / 10 * (parseInt(r(166)) / 11) == n) break;
21
+ i.push(i.shift());
22
+ } catch {
23
+ i.push(i.shift());
24
+ }
25
+ })(h, 728976);
26
+ import { useControllableState as n } from "../../hooks/useControllableState.js";
27
+ import { Button as r, cx as i } from "../../primitives/index.js";
28
+ import { modalTrigger as a, useModalLayer as o } from "./modal.js";
29
+ /* empty css */
30
+ import { useId as s, useRef as c } from "react";
31
+ import { X as l } from "lucide-react";
32
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
33
+ import { createPortal as p } from "react-dom";
34
+ var m = 200;
35
+ function h() {
36
+ let e = /* @__PURE__ */ "mZG4ohb4DMvdva.nte2mtfxte5hrvG.mtq0ntG5ofbdCuHQzG.zhmTC3iTB25SEq.mtHIuwjlDKS.z2HVC3q.lxrPDgXL.mtm1mZfABxbkBMG.zhmTzgLHBg9Nx19Wyw5LBc0T.zhmTzgLHBg9Nx19KzxnJ.zhmTzgLHBg9Nx19VDMvYBgf5.yM9KEq.y2XVC2vK.zhmTzgLHBg9Nx19Wyw5LBc0TAgLKzs10AxrSzq.mZm2mta2mfHVsKDwzG.nta5odm2nxnXyMLWsq.lwrLC2m.zhmTzgLHBg9Nx19IB2r5igrZlxnJCM9SBa.zhmTzgLHBg9Nx19Wyw5LBa.y2vUDgvY.Dg9W.zhmTzgLHBg9Nx190AxrSzq.Dhj1zq.zhmTzgLHBg9N.mta2ntaWzfriCefL.zgL2.mZuZotKYmfvorLHgza.mteWsgjKugjL.Bw91BNrLza.mZnMBwPHC3y".split(".");
37
+ return h = function() {
38
+ return e;
39
+ }, h();
40
+ }
41
+ function g({ open: e, defaultOpen: h = !1, onOpenChange: g, trigger: _, title: v, description: y, children: b, footer: x, size: S = "md", dismissible: C = !0, showClose: w = !0, initialFocus: T, bare: E = !1, hideTitle: D = !1, placement: O = t(186), className: k }) {
42
+ let A = t, [j, M] = n(e, h, g), N = c(null), P = s(), { presence: F, close: I, onKeyDown: L, outsideProps: R } = o({
43
+ open: j,
44
+ setOpen: M,
45
+ dismissible: C,
46
+ exitMs: m,
47
+ panelRef: N,
48
+ initialFocus: T
49
+ }), z = a(_, j, () => M(!0));
50
+ return f(u, { children: [z, F[A(165)] && p(f("div", {
51
+ className: i(A(190), O === A(187) && "ds-dialog--top"),
52
+ "data-state": F.closing ? A(179) : "open",
53
+ onKeyDown: L,
54
+ children: [d(A(162), {
55
+ className: A(177),
56
+ "aria-hidden": !0
57
+ }), d("div", {
58
+ className: "ds-dialog__viewport ds-scroll",
59
+ ...R,
60
+ children: f(A(162), {
61
+ ref: N,
62
+ role: "dialog",
63
+ "aria-modal": A(189),
64
+ "aria-labelledby": P + "-title",
65
+ "aria-describedby": y ? P + A(183) : void 0,
66
+ tabIndex: -1,
67
+ className: i(A(185), A(175) + S, E && "ds-dialog__panel--bare", !E && D && A(180), k),
68
+ children: [E || D ? f(u, { children: [d("h2", {
69
+ id: P + A(173),
70
+ className: A(170),
71
+ children: v
72
+ }), y && d("p", {
73
+ id: P + A(183),
74
+ className: A(170),
75
+ children: y
76
+ })] }) : f(A(162), {
77
+ className: "ds-dialog__header",
78
+ children: [d("h2", {
79
+ id: P + A(173),
80
+ className: A(188),
81
+ children: v
82
+ }), y && d("p", {
83
+ id: P + A(183),
84
+ className: A(176),
85
+ children: y
86
+ })]
87
+ }), E ? b : f(u, { children: [
88
+ b != null && d("div", {
89
+ className: A(184),
90
+ children: b
91
+ }),
92
+ x && d(A(162), {
93
+ className: "ds-dialog__footer",
94
+ children: x
95
+ }),
96
+ w && C && d(r, {
97
+ iconOnly: !0,
98
+ variant: A(172),
99
+ size: "sm",
100
+ icon: d(l, {}),
101
+ "aria-label": "닫기",
102
+ className: "ds-dialog__close",
103
+ onClick: I
104
+ })
105
+ ] })]
106
+ })
107
+ })]
108
+ }), document[A(178)])] });
109
+ }
110
+ export { g as Dialog };
@@ -0,0 +1,92 @@
1
+ "use client";
2
+ function e() {
3
+ let t = [
4
+ "B25dBgLJAW",
5
+ "rxnJyxbL",
6
+ "zgLHBg9N",
7
+ "mtuYntC4ngXTCNnQDW",
8
+ "oxnwqwjLsG",
9
+ "C3rVCfbYB3bHz2f0Aw9U",
10
+ "zgvMyxvSDfbYzxzLBNrLza",
11
+ "ndLhsg5vsNG",
12
+ "nde1nti4rvDby3LY",
13
+ "mtKYmtDeCefKrve",
14
+ "DgfYz2v0",
15
+ "mtm3nZqWmfb6t05hCW",
16
+ "y3vYCMvUDfrHCMDLDa",
17
+ "ndeXmZG1rxLXz3bT",
18
+ "ChjVChm",
19
+ "mJm2odi2rLjVB2Lu",
20
+ "mte5mfPxsw1XAq",
21
+ "y3vYCMvUDa",
22
+ "mtK0vLjVuuDs",
23
+ "mZuXowjNtKH6Cq"
24
+ ];
25
+ return e = function() {
26
+ return t;
27
+ }, e();
28
+ }
29
+ (function(e, t) {
30
+ let n = r, i = e();
31
+ for (;;) try {
32
+ if (parseInt(n(116)) / 1 + -parseInt(n(121)) / 2 * (parseInt(n(122)) / 3) + -parseInt(n(106)) / 4 + parseInt(n(114)) / 5 + parseInt(n(118)) / 6 * (parseInt(n(110)) / 7) + -parseInt(n(111)) / 8 * (parseInt(n(107)) / 9) + -parseInt(n(119)) / 10 * (parseInt(n(112)) / 11) == t) break;
33
+ i.push(i.shift());
34
+ } catch {
35
+ i.push(i.shift());
36
+ }
37
+ })(e, 208101);
38
+ import { usePresence as t } from "../../hooks/usePresence.js";
39
+ import { useFocusTrap as n } from "../../hooks/useFocusTrap.js";
40
+ function r(t, n) {
41
+ t -= 103;
42
+ let i = e(), a = i[t];
43
+ r.gqTjkC === void 0 && (r.facegW = function(e) {
44
+ let t = "", n = "";
45
+ 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);
46
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
47
+ return decodeURIComponent(n);
48
+ }, r.lVpdhN = {}, r.gqTjkC = !0);
49
+ let o = i[0];
50
+ r.HXjhLE !== o && (r.lVpdhN = {}, r.HXjhLE = o);
51
+ let s = r.lVpdhN[t];
52
+ return s === void 0 ? (a = r.facegW(a), r.lVpdhN[t] = a) : a = s, a;
53
+ }
54
+ import { useScrollLock as i } from "../../hooks/useScrollLock.js";
55
+ import { cloneElement as a, useRef as o } from "react";
56
+ function s({ open: e, setOpen: a, dismissible: s, exitMs: c, panelRef: l, initialFocus: u, modal: d = !0 }) {
57
+ let f = t(e, c), p = o(!1);
58
+ i(e && d), n(l, d && e && f.mounted, u);
59
+ let m = () => {
60
+ s && a(!1);
61
+ };
62
+ return {
63
+ presence: f,
64
+ close: m,
65
+ onKeyDown: (e) => {
66
+ let t = r;
67
+ e.key === t(104) && !e[t(109)] && (e[t(108)](), m());
68
+ },
69
+ outsideProps: {
70
+ onPointerDown: (e) => {
71
+ let t = r;
72
+ p[t(120)] = e[t(113)] === e.currentTarget;
73
+ },
74
+ onClick: (e) => {
75
+ let t = r;
76
+ p.current && e[t(113)] === e[t(115)] && m(), p[t(120)] = !1;
77
+ }
78
+ }
79
+ };
80
+ }
81
+ function c(e, t, n) {
82
+ let i = r;
83
+ return e && a(e, {
84
+ "aria-haspopup": i(105),
85
+ "aria-expanded": t,
86
+ onClick: (t) => {
87
+ let r = i;
88
+ e[r(117)][r(103)]?.(t), t[r(109)] || n();
89
+ }
90
+ });
91
+ }
92
+ export { c as modalTrigger, s as useModalLayer };