@iamfiro/design 0.1.0 → 0.3.0

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 +65 -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 +87 -0
  13. package/lib/components/Calendar/Calendar2.js +309 -0
  14. package/lib/components/Calendar/DatePicker2.js +229 -0
  15. package/lib/components/Calendar/date.js +121 -0
  16. package/lib/components/Card/Card2.js +104 -0
  17. package/lib/components/CardFrame/CardFrame2.js +72 -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 +53 -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 +114 -0
  26. package/lib/components/ColorPicker/ColorPicker2.js +610 -0
  27. package/lib/components/ColorPicker/color.js +180 -0
  28. package/lib/components/ColorPicker/presets.js +75 -0
  29. package/lib/components/Combobox/Combobox2.js +229 -0
  30. package/lib/components/CommandMenu/CommandMenu.js +267 -0
  31. package/lib/components/Comment/Comment2.js +134 -0
  32. package/lib/components/ContextMenu/ContextMenu2.js +168 -0
  33. package/lib/components/DataGrid/DataGrid2.js +1996 -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 +558 -0
  37. package/lib/components/DataGrid/panels.js +703 -0
  38. package/lib/components/DataGrid/typeMeta.js +76 -0
  39. package/lib/components/DataGrid/types.js +54 -0
  40. package/lib/components/DescriptionList/DescriptionList2.js +180 -0
  41. package/lib/components/Dialog/AlertDialog.js +118 -0
  42. package/lib/components/Dialog/Dialog2.js +109 -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 +394 -0
  46. package/lib/components/DropdownMenu/menuCore.js +63 -0
  47. package/lib/components/Dropzone/Dropzone2.js +144 -0
  48. package/lib/components/EmptyState/EmptyState2.js +72 -0
  49. package/lib/components/FileChip/FileChip2.js +118 -0
  50. package/lib/components/FileUpload/FileUpload.js +258 -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 +69 -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 +109 -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 +133 -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 +223 -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 +129 -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 +53 -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 +66 -0
  77. package/lib/components/PieChart/useArcTween.js +94 -0
  78. package/lib/components/Popover/Popover2.js +112 -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 +236 -0
  82. package/lib/components/Resizable/layout.js +115 -0
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +100 -0
  84. package/lib/components/ScatterChart/ScatterChart2.js +356 -0
  85. package/lib/components/ScatterChart/scatter.js +83 -0
  86. package/lib/components/ScrollArea/ScrollArea2.js +218 -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 +85 -0
  92. package/lib/components/SparkChart/SparkChart2.js +217 -0
  93. package/lib/components/SparkChart/spark.js +76 -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 +360 -0
  101. package/lib/components/TimePicker/TimePicker2.js +388 -0
  102. package/lib/components/TimePicker/time.js +83 -0
  103. package/lib/components/Timeline/Timeline2.js +369 -0
  104. package/lib/components/Timeline/scale.js +83 -0
  105. package/lib/components/Toast/Toaster.js +212 -0
  106. package/lib/components/Toast/store.js +129 -0
  107. package/lib/components/ToggleGroup/ToggleGroup2.js +125 -0
  108. package/lib/components/Toolbar/Toolbar2.js +281 -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 +284 -0
  112. package/lib/hooks/timing.js +55 -0
  113. package/lib/hooks/useControllableState.js +49 -0
  114. package/lib/hooks/useCountdown.js +80 -0
  115. package/lib/hooks/useDigitInput.js +105 -0
  116. package/lib/hooks/useDismiss.js +71 -0
  117. package/lib/hooks/useElapsed.js +83 -0
  118. package/lib/hooks/useFloating.js +70 -0
  119. package/lib/hooks/useFocusTrap.js +61 -0
  120. package/lib/hooks/usePresence.js +60 -0
  121. package/lib/hooks/usePressToOpen.js +69 -0
  122. package/lib/hooks/useScrollLock.js +70 -0
  123. package/lib/hooks/useSelection.js +68 -0
  124. package/lib/index.js +175 -17911
  125. package/lib/primitives/AspectRatio2.js +80 -0
  126. package/lib/primitives/BrandIcon.js +245 -0
  127. package/lib/primitives/ColorDot2.js +70 -0
  128. package/lib/primitives/CopyButton2.js +85 -0
  129. package/lib/primitives/CountBadge2.js +78 -0
  130. package/lib/primitives/Countdown2.js +65 -0
  131. package/lib/primitives/Delta2.js +67 -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 +68 -0
  137. package/lib/primitives/Kbd2.js +88 -0
  138. package/lib/primitives/Layout2.js +118 -0
  139. package/lib/primitives/Link2.js +53 -0
  140. package/lib/primitives/MaskedText2.js +120 -0
  141. package/lib/primitives/Progress2.js +137 -0
  142. package/lib/primitives/RelativeTime.js +84 -0
  143. package/lib/primitives/SearchInput2.js +84 -0
  144. package/lib/primitives/SelectorButton2.js +97 -0
  145. package/lib/primitives/Spinner2.js +98 -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 +51 -0
  151. package/lib/primitives/formatElapsed.js +66 -0
  152. package/lib/primitives/formatRelativeTime.js +64 -0
  153. package/lib/primitives/hotkey.js +94 -0
  154. package/lib/primitives/index.js +352 -0
  155. package/lib/primitives/maskValue.js +65 -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,76 @@
1
+ "use client";
2
+ var e = t;
3
+ (function(e, n) {
4
+ for (var r = t, i = e();;) try {
5
+ if (parseInt(r(239)) / 1 + parseInt(r(238)) / 2 + -parseInt(r(236)) / 3 * (parseInt(r(244)) / 4) + parseInt(r(242)) / 5 * (parseInt(r(243)) / 6) + -parseInt(r(241)) / 7 * (parseInt(r(248)) / 8) + parseInt(r(247)) / 9 * (parseInt(r(245)) / 10) + parseInt(r(237)) / 11 * (-parseInt(r(246)) / 12) == n) break;
6
+ i.push(i.shift());
7
+ } catch {
8
+ i.push(i.shift());
9
+ }
10
+ })(n, 291226);
11
+ function t(e, r) {
12
+ e -= 236;
13
+ var i = n(), a = i[e];
14
+ t.LslRnN === void 0 && (t.UdFudu = function(e) {
15
+ 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);
16
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
17
+ return decodeURIComponent(r);
18
+ }, t.UYTHco = {}, t.LslRnN = !0);
19
+ var o = i[0];
20
+ t.LpVsDp !== o && (t.UYTHco = {}, t.LpVsDp = o);
21
+ var s = t.UYTHco[e];
22
+ return s === void 0 ? (a = t.UdFudu(a), t.UYTHco[e] = a) : a = s, a;
23
+ }
24
+ function n() {
25
+ var e = [
26
+ "ntznsKzZy2e",
27
+ "ouf5rKryBq",
28
+ "mJy2nZaWnuzMC3PSyG",
29
+ "ndeYntG4sfHSCMDf",
30
+ "ndiYnZe2r3jbu3LV",
31
+ "7lk07ygS67cv7iQK",
32
+ "nda1ntmXqKDQr3rW",
33
+ "nwDdCejsrq",
34
+ "mJq4mtGXmhvvs0v3Cq",
35
+ "mtuXotK2ExLHEwr2",
36
+ "mJy0mtbfsgL2zM0",
37
+ "mtjjB1jjqvC",
38
+ "mZzNzvDdBuK"
39
+ ];
40
+ return n = function() {
41
+ return e;
42
+ }, n();
43
+ }
44
+ import { Calendar as r, CircleChevronDown as i, Hash as a, Link as o, SquareCheck as s, Tags as c, Type as l } from "lucide-react";
45
+ import { jsx as u } from "react/jsx-runtime";
46
+ var d = {
47
+ text: {
48
+ label: "텍스트",
49
+ icon: u(l, {})
50
+ },
51
+ number: {
52
+ label: "숫자",
53
+ icon: u(a, {})
54
+ },
55
+ select: {
56
+ label: "선택",
57
+ icon: u(i, {})
58
+ },
59
+ multiSelect: {
60
+ label: "다중 선택",
61
+ icon: u(c, {})
62
+ },
63
+ checkbox: {
64
+ label: e(240),
65
+ icon: u(s, {})
66
+ },
67
+ date: {
68
+ label: "날짜",
69
+ icon: u(r, {})
70
+ },
71
+ url: {
72
+ label: "URL",
73
+ icon: u(o, {})
74
+ }
75
+ };
76
+ export { d as TYPE_META };
@@ -0,0 +1,54 @@
1
+ "use client";
2
+ var e = t;
3
+ (function(e, n) {
4
+ for (var r = t, i = e();;) try {
5
+ if (parseInt(r(382)) / 1 + -parseInt(r(384)) / 2 * (-parseInt(r(389)) / 3) + -parseInt(r(386)) / 4 * (parseInt(r(381)) / 5) + -parseInt(r(383)) / 6 * (parseInt(r(380)) / 7) + parseInt(r(379)) / 8 + -parseInt(r(385)) / 9 + -parseInt(r(387)) / 10 == n) break;
6
+ i.push(i.shift());
7
+ } catch {
8
+ i.push(i.shift());
9
+ }
10
+ })(r, 371837);
11
+ function t(e, n) {
12
+ e -= 379;
13
+ var i = r(), a = i[e];
14
+ t.PgJeEK === void 0 && (t.WHqADe = function(e) {
15
+ 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);
16
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
17
+ return decodeURIComponent(r);
18
+ }, t.OWjNBd = {}, t.PgJeEK = !0);
19
+ var o = i[0];
20
+ t.ekGQjG !== o && (t.OWjNBd = {}, t.ekGQjG = o);
21
+ var s = t.OWjNBd[e];
22
+ return s === void 0 ? (a = t.WHqADe(a), t.OWjNBd[e] = a) : a = s, a;
23
+ }
24
+ var n = {
25
+ sorts: [],
26
+ filters: [],
27
+ filterMode: e(390),
28
+ groupBy: null,
29
+ collapsed: [],
30
+ search: "",
31
+ density: e(388),
32
+ rowNumbers: !0,
33
+ gridlines: !1
34
+ };
35
+ function r() {
36
+ var e = [
37
+ "ndiWotKZtgvnwgXe",
38
+ "yw5K",
39
+ "mJiXodq4ogzcBhnKAG",
40
+ "n2rWAff5Aq",
41
+ "mtC2nvHlA2PLza",
42
+ "ntaZnJu0r1nms1bY",
43
+ "mJK4otG2tejitLHW",
44
+ "mtbUBMDvwgu",
45
+ "mZyYntq2mwXmtMD0sW",
46
+ "ndq1mKnysLHvBG",
47
+ "mJy1mJm0mg1puu5AuG",
48
+ "zgvMyxvSDa"
49
+ ];
50
+ return r = function() {
51
+ return e;
52
+ }, r();
53
+ }
54
+ export { n as DEFAULT_VIEW };
@@ -0,0 +1,180 @@
1
+ "use client";
2
+ const e = f;
3
+ (function(e, t) {
4
+ let n = f, r = e();
5
+ for (;;) try {
6
+ if (-parseInt(n(517)) / 1 * (-parseInt(n(521)) / 2) + -parseInt(n(502)) / 3 + -parseInt(n(509)) / 4 + -parseInt(n(512)) / 5 + -parseInt(n(499)) / 6 * (-parseInt(n(525)) / 7) + -parseInt(n(507)) / 8 * (-parseInt(n(514)) / 9) + -parseInt(n(490)) / 10 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(y, 541845);
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ import { Box as n, Grid as r, Inline as i, Stack as a } from "../../primitives/Layout2.js";
14
+ import { cx as o } from "../../primitives/index.js";
15
+ /* empty css */
16
+ import { createContext as s, useContext as c, useId as l } from "react";
17
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
18
+ function f(e, t) {
19
+ e -= 486;
20
+ let n = y(), r = n[e];
21
+ f.BskVIN === void 0 && (f.eqJMDC = function(e) {
22
+ let t = "", n = "";
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);
24
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
25
+ return decodeURIComponent(n);
26
+ }, f.TNhWsQ = {}, f.BskVIN = !0);
27
+ let i = n[0];
28
+ f.MrmNHy !== i && (f.TNhWsQ = {}, f.MrmNHy = i);
29
+ let a = f.TNhWsQ[e];
30
+ return a === void 0 ? (r = f.eqJMDC(r), f.TNhWsQ[e] = r) : r = a, r;
31
+ }
32
+ var p = s({
33
+ layout: e(486),
34
+ labelStyle: e(511),
35
+ size: "md",
36
+ align: e(505)
37
+ }), m = {
38
+ sm: e(492),
39
+ md: e(504),
40
+ lg: e(494)
41
+ }, h = {
42
+ sm: e(520),
43
+ md: "label-md",
44
+ lg: e(496)
45
+ }, g = {
46
+ sm: e(522),
47
+ md: e(522),
48
+ lg: "body-md"
49
+ };
50
+ function _({ items: t, children: i, layout: a = "stacked", columns: s, minItemWidth: c, variant: l = e(497), labelStyle: f = e(511), size: m = "md", align: h = e(505), gap: g, rowGap: _, "aria-label": y, className: b, style: x }) {
51
+ let S = e, C = a === S(519), w = C && h === S(501), T = u(r, {
52
+ as: "dl",
53
+ columns: s ?? (w ? S(498) : C ? 1 : 3),
54
+ minItemWidth: w ? void 0 : c,
55
+ gap: g ?? (w ? 4 : C ? 6 : 4),
56
+ rowGap: _ ?? (C ? 2 : 4),
57
+ "aria-label": y,
58
+ className: o(S(523), l === S(497) && b),
59
+ style: l === S(497) ? x : void 0,
60
+ children: d(p.Provider, {
61
+ value: {
62
+ layout: a,
63
+ labelStyle: f,
64
+ size: m,
65
+ align: h
66
+ },
67
+ children: [t?.[S(524)]((e, t) => u(v, {
68
+ label: e[S(503)],
69
+ icon: e.icon,
70
+ tone: e[S(508)],
71
+ span: e[S(493)],
72
+ children: e[S(528)]
73
+ }, e.id ?? t)), i]
74
+ })
75
+ });
76
+ return l === S(497) ? T : u(n, {
77
+ padding: 3,
78
+ background: S(491),
79
+ className: o(S(487), b),
80
+ style: x,
81
+ children: T
82
+ });
83
+ }
84
+ function v({ label: n, icon: r, children: s, tone: l = e(526), span: f, className: _ }) {
85
+ let v = e, { layout: y, labelStyle: x, size: S, align: C } = c(p), w = f && f > 1 ? v(516) + f : void 0;
86
+ if (y === "inline") {
87
+ let e = u(b, {
88
+ icon: r,
89
+ variant: x === v(511) ? v(511) : g[S],
90
+ children: n
91
+ }), a = u(t, {
92
+ as: "dd",
93
+ variant: h[S],
94
+ tone: l,
95
+ align: C,
96
+ numeric: !0,
97
+ children: s
98
+ });
99
+ return C === v(501) ? d(v(489), {
100
+ className: o("ds-dl__item", v(515), _),
101
+ children: [e, a]
102
+ }) : d(i, {
103
+ gap: 4,
104
+ justify: "between",
105
+ align: v(r == null ? 510 : 518),
106
+ wrap: !1,
107
+ className: o(v(506), _),
108
+ style: { gridColumn: w },
109
+ children: [e, a]
110
+ });
111
+ }
112
+ return d(a, {
113
+ gap: 1,
114
+ className: o(v(506), v(500), _),
115
+ style: { gridColumn: w },
116
+ children: [u(b, {
117
+ icon: r,
118
+ variant: v(x === "overline" ? 511 : 513),
119
+ children: n
120
+ }), u(t, {
121
+ as: "dd",
122
+ variant: m[S],
123
+ tone: l,
124
+ children: s
125
+ })]
126
+ });
127
+ }
128
+ function y() {
129
+ let e = /* @__PURE__ */ "y2fWDgLVBG.nZyXnZyWouH4u3jQBa.zhmTzgXFx2L0zw0TlwnVBNrLBNrZ.C3bHBIa.nJeZEezquM14.y2vUDgvY.Aw5SAw5L.BgfIzwWTC20.mJq0nK5HB0HMBW.yM9KEs1ZBq.zhmTzgW.BwfW.mtu2nZy1t1vKA2nd.zgvMyxvSDa.zhmTzgXFx2LJB24.DMfSDwu.C3rHy2TLza.zhmTzgWTCgfUzwW.zhmTzgXFx3rLCM0.zgL2.mJC1ndiWmgPgq0D0Dq.C3vIDgXL.BNvTyMvYlxnT.C3bHBG.BNvTyMvYlwXN.DgvYDgLHCNK.BgfIzwWTBgC.CgXHAw4.Bwf4lwnVBNrLBNqGBwLUBwf4kdaSidfMCIK.mJa0ChPoAMrL.zhmTzgXFx2L0zw0Tlxn0ywnRzwq.C3rHCNq.mta0ntCYnwDgqw1fwG.BgfIzwW.BNvTyMvYlw1K.zw5K.zhmTzgXFx2L0zw0.ogvXCuX5AG.Dg9Uzq.mJy5nZG3mLbRuNrsta.yMfZzwXPBMu.B3zLCMXPBMu.mJu4nJeXmerXvuv2sW".split(".");
130
+ return y = function() {
131
+ return e;
132
+ }, y();
133
+ }
134
+ function b({ icon: n, variant: r, children: a }) {
135
+ let o = e;
136
+ return n == null ? u(t, {
137
+ as: "dt",
138
+ variant: r,
139
+ tone: o(495),
140
+ truncate: !0,
141
+ children: a
142
+ }) : d(i, {
143
+ as: "dt",
144
+ gap: 2,
145
+ wrap: !1,
146
+ className: o(488),
147
+ children: [u(o(493), {
148
+ className: o(527),
149
+ "aria-hidden": !0,
150
+ children: n
151
+ }), u(t, {
152
+ variant: r,
153
+ tone: o(495),
154
+ truncate: !0,
155
+ children: a
156
+ })]
157
+ });
158
+ }
159
+ function x({ title: n, children: r, className: i, style: o }) {
160
+ let s = e, c = l();
161
+ return d(a, {
162
+ as: "section",
163
+ gap: 1,
164
+ "aria-labelledby": c,
165
+ className: i,
166
+ style: o,
167
+ children: [u(t, {
168
+ id: c,
169
+ variant: s(511),
170
+ tone: s(495),
171
+ children: n
172
+ }), u(t, {
173
+ as: s(489),
174
+ variant: s(522),
175
+ tone: "secondary",
176
+ children: r
177
+ })]
178
+ });
179
+ }
180
+ export { v as DescriptionItem, _ as DescriptionList, x as DescriptionSection };
@@ -0,0 +1,118 @@
1
+ "use client";
2
+ (function(e, t) {
3
+ let n = i, r = e();
4
+ for (;;) try {
5
+ if (-parseInt(n(441)) / 1 + -parseInt(n(422)) / 2 * (-parseInt(n(414)) / 3) + parseInt(n(429)) / 4 + -parseInt(n(413)) / 5 + parseInt(n(420)) / 6 + -parseInt(n(423)) / 7 * (parseInt(n(433)) / 8) + parseInt(n(435)) / 9 * (parseInt(n(438)) / 10) == t) break;
6
+ r.push(r.shift());
7
+ } catch {
8
+ r.push(r.shift());
9
+ }
10
+ })(m, 265828);
11
+ import { useControllableState as e } from "../../hooks/useControllableState.js";
12
+ import { Button as t, Field as n, Input as r } from "../../primitives/index.js";
13
+ function i(e, t) {
14
+ e -= 412;
15
+ let n = m(), r = n[e];
16
+ i.XIsdQz === void 0 && (i.uvNsgb = function(e) {
17
+ let t = "", n = "";
18
+ 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);
19
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
+ return decodeURIComponent(n);
21
+ }, i.xnEQHl = {}, i.XIsdQz = !0);
22
+ let a = n[0];
23
+ i.DxprpA !== a && (i.xnEQHl = {}, i.DxprpA = a);
24
+ let o = i.xnEQHl[e];
25
+ return o === void 0 ? (r = i.uvNsgb(r), i.xnEQHl[e] = r) : r = o, r;
26
+ }
27
+ import { Dialog as a } from "./Dialog2.js";
28
+ import { useId as o, useRef as s, useState as c } from "react";
29
+ import { AlertTriangle as l } from "lucide-react";
30
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
31
+ function p({ open: p, defaultOpen: m = !1, onOpenChange: h, trigger: g, title: _, description: v, tone: y = "default", confirmLabel: b, cancelLabel: x = "취소", onConfirm: S, confirmationText: C, children: w }) {
32
+ let T = i, [E, D] = e(p, m, h), [O, k] = c(!1), [A, j] = c(null), [M, N] = c(""), P = s(null), F = s(null), I = s(null), L = o(), R = (e) => {
33
+ e && (j(null), N("")), D(e);
34
+ }, z = async () => {
35
+ let e = i;
36
+ j(null), k(!0);
37
+ try {
38
+ await S(), D(!1);
39
+ } catch (t) {
40
+ j(t instanceof Error ? t[e(437)] : e(432));
41
+ } finally {
42
+ k(!1);
43
+ }
44
+ }, B = C != null && M !== C, V = y === T(425);
45
+ return d(a, {
46
+ open: E,
47
+ onOpenChange: R,
48
+ trigger: g,
49
+ size: "sm",
50
+ dismissible: !O,
51
+ showClose: !1,
52
+ initialFocus: C == null ? V ? P : F : I,
53
+ className: T(428),
54
+ title: f("span", {
55
+ className: T(416),
56
+ children: [V && d(T(443), {
57
+ className: T(417),
58
+ "aria-hidden": !0,
59
+ children: d(l, {})
60
+ }), _]
61
+ }),
62
+ description: v,
63
+ footer: f(u, { children: [d(t, {
64
+ ref: P,
65
+ variant: T(418),
66
+ disabled: O,
67
+ onClick: () => R(!1),
68
+ children: x
69
+ }), d(t, {
70
+ ref: F,
71
+ variant: V ? "danger" : T(434),
72
+ loading: O,
73
+ disabled: B || O,
74
+ onClick: z,
75
+ "data-tone": y,
76
+ children: b
77
+ })] }),
78
+ children: (w || C != null || A) && f(T(415), {
79
+ className: T(439),
80
+ children: [
81
+ w,
82
+ C != null && d(n, {
83
+ htmlFor: L,
84
+ label: f(u, { children: [
85
+ T(440),
86
+ d(T(436), { children: C }),
87
+ T(426)
88
+ ] }),
89
+ children: d(r, {
90
+ ref: I,
91
+ id: L,
92
+ value: M,
93
+ onChange: (e) => N(e[T(430)][T(412)]),
94
+ onKeyDown: (e) => {
95
+ let t = T;
96
+ e[t(427)] !== "Enter" || B || O || e[t(421)][t(442)] || z();
97
+ },
98
+ disabled: O,
99
+ autoComplete: T(419),
100
+ spellCheck: !1
101
+ })
102
+ }),
103
+ A && d("p", {
104
+ role: T(431),
105
+ className: T(424),
106
+ children: A
107
+ })
108
+ ]
109
+ })
110
+ });
111
+ }
112
+ function m() {
113
+ let e = /* @__PURE__ */ "ywXLCNq.7lky66AS7zwy7kEaioUQU+2wIoYwToYALc4G64UK7iUCioYlNoUpHo2vTcdSO7ZSHlJSMPqU.ohDrz3vesq.ChjPBwfYEq.ouvvv09jsG.C3rYB25N.BwvZC2fNzq.nJi4mdqYmeHXu053sG.zhmTywXLCNqTzgLHBg9Nx19IB2r5.6Roe7iAn7zwy66cK66M0ia.mtC5ndaXyvfPthbz.AxndB21WB3nPBMC.C3bHBG.DMfSDwu.mtG0ndi3mgPpChrowG.mtj1v290uMO.zgL2.zhmTywXLCNqTzgLHBg9Nx190AxrSzq.zhmTywXLCNqTzgLHBg9Nx19Py29U.C2vJB25Kyxj5.B2zM.mtqWndCZoeHjB1rcrW.BMf0AxzLrxzLBNq.mtaXntGWwuPxDKvH.mJqYnZu5m1PIyK5jvW.zhmTywXLCNqTzgLHBg9Nx19LCNjVCG.zgfUz2vY.7j2ekoULVcKG7j6f66cL7zwy7is47jQu.A2v5.zhmTywXLCNqTzgLHBg9N.mZGYmJi4CvnIEML3.DgfYz2v0".split(".");
114
+ return m = function() {
115
+ return e;
116
+ }, m();
117
+ }
118
+ export { p as AlertDialog };
@@ -0,0 +1,109 @@
1
+ "use client";
2
+ (function(e, t) {
3
+ let n = h, r = e();
4
+ for (;;) try {
5
+ if (parseInt(n(240)) / 1 + -parseInt(n(232)) / 2 * (parseInt(n(227)) / 3) + -parseInt(n(249)) / 4 + parseInt(n(250)) / 5 * (-parseInt(n(248)) / 6) + parseInt(n(226)) / 7 * (-parseInt(n(241)) / 8) + parseInt(n(244)) / 9 * (-parseInt(n(235)) / 10) + parseInt(n(252)) / 11 == t) break;
6
+ r.push(r.shift());
7
+ } catch {
8
+ r.push(r.shift());
9
+ }
10
+ })(c, 567927);
11
+ import { useControllableState as e } from "../../hooks/useControllableState.js";
12
+ import { Button as t, cx as n } from "../../primitives/index.js";
13
+ import { modalTrigger as r, useModalLayer as i } from "./modal.js";
14
+ /* empty css */
15
+ import { useId as a, useRef as o } from "react";
16
+ import { X as s } from "lucide-react";
17
+ function c() {
18
+ let e = /* @__PURE__ */ "mJq3nZe0odnwuLntv2m.Bw91BNrLza.lwrLC2m.lxrPDgXL.y2XVC2LUzW.zhmTzgLHBg9Nx19MB290zxi.B3bLBG.mJiXotDqt05JqLm.oteWofrpvfvHAG.zhmTzgLHBg9Nls10B3a.zhmTzgLHBg9Nx190AxrSzq.zhmTzgLHBg9Nx19VDMvYBgf5.zhmTzgLHBg9Nx19Wyw5LBc0TAgLKzs10AxrSzq.odbHs1rSy1G.y2XVC2vK.zgL2.mJyWndG2meXusMrYwa.zgLHBg9N.Dg9W.zhmTC3iTB25SEq.zhmTzgLHBg9N.mta2mZCYmejRBLz0rq.mtC5mKDgt3rAAq.yM9KEq.zhmTzgLHBg9Nx19Wyw5LBc0T.mtHQBwXsD2u.zhmTzgLHBg9Nx19Wyw5LBa.zhmTzgLHBg9Nx19JBg9Zzq.z2HVC3q.mtqWmJC1mKjgzxLNDa.mJC3ndyXnNrmuhzSCG.mtvktvnSqxe.Dhj1zq".split(".");
19
+ return c = function() {
20
+ return e;
21
+ }, c();
22
+ }
23
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
24
+ import { createPortal as f } from "react-dom";
25
+ var p = 200;
26
+ function m({ open: c, defaultOpen: m = !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 = "center", className: k }) {
27
+ let A = h, [j, M] = e(c, m, g), N = o(null), P = a(), { presence: F, close: I, onKeyDown: L, outsideProps: R } = i({
28
+ open: j,
29
+ setOpen: M,
30
+ dismissible: C,
31
+ exitMs: p,
32
+ panelRef: N,
33
+ initialFocus: T
34
+ }), z = r(_, j, () => M(!0));
35
+ return d(l, { children: [z, F[A(253)] && f(d("div", {
36
+ className: n(A(239), O === A(237) && A(228)),
37
+ "data-state": F[A(256)] ? A(233) : A(225),
38
+ onKeyDown: L,
39
+ children: [u(A(234), {
40
+ className: A(230),
41
+ "aria-hidden": !0
42
+ }), u(A(234), {
43
+ className: "ds-dialog__viewport ds-scroll",
44
+ ...R,
45
+ children: d(A(234), {
46
+ ref: N,
47
+ role: A(236),
48
+ "aria-modal": A(251),
49
+ "aria-labelledby": P + "-title",
50
+ "aria-describedby": y ? P + A(254) : void 0,
51
+ tabIndex: -1,
52
+ className: n(A(245), A(243) + S, E && "ds-dialog__panel--bare", !E && D && A(231), k),
53
+ children: [E || D ? d(l, { children: [u("h2", {
54
+ id: P + A(255),
55
+ className: A(238),
56
+ children: v
57
+ }), y && u("p", {
58
+ id: P + A(254),
59
+ className: A(238),
60
+ children: y
61
+ })] }) : d(A(234), {
62
+ className: "ds-dialog__header",
63
+ children: [u("h2", {
64
+ id: P + A(255),
65
+ className: A(229),
66
+ children: v
67
+ }), y && u("p", {
68
+ id: P + "-desc",
69
+ className: "ds-dialog__desc",
70
+ children: y
71
+ })]
72
+ }), E ? b : d(l, { children: [
73
+ b != null && u(A(234), {
74
+ className: "ds-dialog__body ds-scroll",
75
+ children: b
76
+ }),
77
+ x && u(A(234), {
78
+ className: A(257),
79
+ children: x
80
+ }),
81
+ w && C && u(t, {
82
+ iconOnly: !0,
83
+ variant: A(247),
84
+ size: "sm",
85
+ icon: u(s, {}),
86
+ "aria-label": "닫기",
87
+ className: A(246),
88
+ onClick: I
89
+ })
90
+ ] })]
91
+ })
92
+ })]
93
+ }), document[A(242)])] });
94
+ }
95
+ function h(e, t) {
96
+ e -= 225;
97
+ let n = c(), r = n[e];
98
+ h.ZccXcO === void 0 && (h.pfTovr = function(e) {
99
+ let t = "", n = "";
100
+ 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);
101
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
102
+ return decodeURIComponent(n);
103
+ }, h.ufKdLe = {}, h.ZccXcO = !0);
104
+ let i = n[0];
105
+ h.UpOEVe !== i && (h.ufKdLe = {}, h.UpOEVe = i);
106
+ let a = h.ufKdLe[e];
107
+ return a === void 0 ? (r = h.pfTovr(r), h.ufKdLe[e] = r) : r = a, r;
108
+ }
109
+ export { m as Dialog };
@@ -0,0 +1,92 @@
1
+ "use client";
2
+ function e(t, n) {
3
+ t -= 219;
4
+ let r = c(), i = r[t];
5
+ e.WzRBVw === void 0 && (e.oAmFbG = 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.jRbavT = {}, e.WzRBVw = !0);
11
+ let a = r[0];
12
+ e.wCQluW !== a && (e.jRbavT = {}, e.wCQluW = a);
13
+ let o = e.jRbavT[t];
14
+ return o === void 0 ? (i = e.oAmFbG(i), e.jRbavT[t] = i) : i = o, i;
15
+ }
16
+ (function(t, n) {
17
+ let r = e, i = t();
18
+ for (;;) try {
19
+ if (-parseInt(r(230)) / 1 * (-parseInt(r(231)) / 2) + -parseInt(r(223)) / 3 * (parseInt(r(236)) / 4) + parseInt(r(227)) / 5 + -parseInt(r(224)) / 6 * (-parseInt(r(222)) / 7) + parseInt(r(237)) / 8 * (parseInt(r(221)) / 9) + parseInt(r(234)) / 10 + parseInt(r(225)) / 11 * (-parseInt(r(239)) / 12) == n) break;
20
+ i.push(i.shift());
21
+ } catch {
22
+ i.push(i.shift());
23
+ }
24
+ })(c, 629546);
25
+ import { usePresence as t } from "../../hooks/usePresence.js";
26
+ import { useFocusTrap as n } from "../../hooks/useFocusTrap.js";
27
+ import { useScrollLock as r } from "../../hooks/useScrollLock.js";
28
+ import { cloneElement as i, useRef as a } from "react";
29
+ function o({ open: i, setOpen: o, dismissible: s, exitMs: c, panelRef: l, initialFocus: u, modal: d = !0 }) {
30
+ let f = e, p = t(i, c), m = a(!1);
31
+ r(i && d), n(l, d && i && p[f(232)], u);
32
+ let h = () => {
33
+ s && o(!1);
34
+ };
35
+ return {
36
+ presence: p,
37
+ close: h,
38
+ onKeyDown: (e) => {
39
+ let t = f;
40
+ e.key === t(238) && !e[t(220)] && (e.stopPropagation(), h());
41
+ },
42
+ outsideProps: {
43
+ onPointerDown: (e) => {
44
+ m.current = e[f(228)] === e.currentTarget;
45
+ },
46
+ onClick: (e) => {
47
+ let t = f;
48
+ m[t(219)] && e[t(228)] === e[t(226)] && h(), m[t(219)] = !1;
49
+ }
50
+ }
51
+ };
52
+ }
53
+ function s(t, n, r) {
54
+ let a = e;
55
+ return t && i(t, {
56
+ "aria-haspopup": a(235),
57
+ "aria-expanded": n,
58
+ onClick: (e) => {
59
+ let n = a;
60
+ t[n(229)][n(233)]?.(e), e[n(220)] || r();
61
+ }
62
+ });
63
+ }
64
+ export { s as modalTrigger, o as useModalLayer };
65
+ function c() {
66
+ let e = [
67
+ "ndK2otj0BgvhzfO",
68
+ "y3vYCMvUDa",
69
+ "zgvMyxvSDfbYzxzLBNrLza",
70
+ "owLOrhnfra",
71
+ "mtm3ouPyq3PQCG",
72
+ "mty4wKPfDhzQ",
73
+ "mJu2ntbxqwHKD1e",
74
+ "ntu5ouLqu3LJyq",
75
+ "y3vYCMvUDfrHCMDLDa",
76
+ "mJC4nJiYnwLjuLrssW",
77
+ "DgfYz2v0",
78
+ "ChjVChm",
79
+ "nfL6rhP5rq",
80
+ "mJy4mJe4rwXiy2XI",
81
+ "Bw91BNrLza",
82
+ "B25dBgLJAW",
83
+ "mte3nJm5ndbVu1jQzNu",
84
+ "zgLHBg9N",
85
+ "mZyZmZzYB1PUC2W",
86
+ "mta3mde1mKLIwwrSza",
87
+ "rxnJyxbL"
88
+ ];
89
+ return c = function() {
90
+ return e;
91
+ }, c();
92
+ }