@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,180 @@
1
+ "use client";
2
+ const e = d;
3
+ (function(e, t) {
4
+ let n = d, r = e();
5
+ for (;;) try {
6
+ if (parseInt(n(375)) / 1 + -parseInt(n(385)) / 2 + -parseInt(n(376)) / 3 * (-parseInt(n(383)) / 4) + -parseInt(n(387)) / 5 * (parseInt(n(363)) / 6) + -parseInt(n(395)) / 7 + -parseInt(n(373)) / 8 * (-parseInt(n(382)) / 9) + -parseInt(n(379)) / 10 * (-parseInt(n(390)) / 11) == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(c, 290028);
12
+ var t = (t, n, r) => Math[e(367)](r, Math[e(366)](n, t)), n = (t, n = 0) => {
13
+ let r = e, i = 10 ** n;
14
+ return Math[r(381)](t * i) / i;
15
+ }, r = /^#?([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
16
+ function i(t) {
17
+ let i = e, a = r[i(372)](t[i(365)]());
18
+ if (!a) return null;
19
+ let o = a[1];
20
+ o[i(364)] <= 4 && (o = [...o][i(396)]((e) => e + e)[i(380)](""));
21
+ let s = (e) => parseInt(o.slice(e, e + 2), 16);
22
+ return {
23
+ r: s(0),
24
+ g: s(2),
25
+ b: s(4),
26
+ a: o.length === 8 ? n(s(6) / 255, 3) : 1
27
+ };
28
+ }
29
+ var a = (t, n) => {
30
+ let r = e, i = t[r(365)]();
31
+ return /^-?\d*\.?\d+%?$/[r(362)](i) ? i[r(369)]("%") ? parseFloat(i) / 100 * n : parseFloat(i) : NaN;
32
+ }, o = (t) => t[e(386)](/[\s,/]+/)[e(371)](Boolean), s = (e) => e === void 0 ? 1 : a(e, 1);
33
+ function c() {
34
+ let e = /* @__PURE__ */ "C3bSAxq.mJvZCfnQA1O.CMvWBgfJzq.CMDIka.ndy2odyYuvbNzeD4.C29Tzq.AhnS.Dg9tDhjPBMC.AhnSka.nJaXotaYBhD6u3vy.BwfW.CgfKu3rHCNq.DgvZDa.mtKZodbWruHpyw4.BgvUz3rO.DhjPBq.Bwf4.BwLU.C2XPy2u.zw5KC1DPDgG.CMDIysG.zMLSDgvY.zxHLyW.ote3nJHLyxHXAwG.CMDI.odqWnJHsD3HozuO.ndy0ndzjuw9TrNu.jsWG.Axnoyu4.nZbpq2LerMe.AM9PBG.CM91BMq.mti2rgzAzMH0.ogD0A1ferq.AhnSysG.mZyXmteYCfvvChPk".split(".");
35
+ return c = function() {
36
+ return e;
37
+ }, c();
38
+ }
39
+ function l(t) {
40
+ let n = e, r = /^(?:rgba?\()?\s*([^)]*?)\s*\)?$/i[n(372)](t.trim());
41
+ if (!r) return null;
42
+ let i = o(r[1]);
43
+ if (i[n(364)] < 3 || i[n(364)] > 4) return null;
44
+ let [c, l, u] = i[n(368)](0, 3)[n(396)]((e) => a(e, 255)), d = s(i[3]);
45
+ return [
46
+ c,
47
+ l,
48
+ u,
49
+ d
50
+ ][n(391)]((e) => Number[n(378)](e)) || [
51
+ c,
52
+ l,
53
+ u
54
+ ][n(391)]((e) => e < 0 || e > 255) || d < 0 || d > 1 ? null : {
55
+ r: c,
56
+ g: l,
57
+ b: u,
58
+ a: d
59
+ };
60
+ }
61
+ function u(t) {
62
+ let n = e, r = /^(?:hsla?\()?\s*([^)]*?)\s*\)?$/i[n(372)](t[n(365)]());
63
+ if (!r) return null;
64
+ let i = o(r[1][n(388)](/deg/gi, ""));
65
+ if (i[n(364)] < 3 || i[n(364)] > 4) return null;
66
+ let c = a(i[0], 360), l = a(i[1][n(369)]("%") ? i[1] : i[1] + "%", 1), u = a(i[2][n(369)]("%") ? i[2] : i[2] + "%", 1), d = s(i[3]);
67
+ return [
68
+ c,
69
+ l,
70
+ u,
71
+ d
72
+ ][n(391)]((e) => Number[n(378)](e)) || l < 0 || l > 1 || u < 0 || u > 1 || d < 0 || d > 1 ? null : g({
73
+ h: (c % 360 + 360) % 360,
74
+ s: l,
75
+ l: u,
76
+ a: d
77
+ });
78
+ }
79
+ function d(e, t) {
80
+ e -= 362;
81
+ let n = c(), r = n[e];
82
+ d.IFUOYo === void 0 && (d.bgmGuf = function(e) {
83
+ let t = "", n = "";
84
+ 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);
85
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
86
+ return decodeURIComponent(n);
87
+ }, d.ZzJDjK = {}, d.IFUOYo = !0);
88
+ let i = n[0];
89
+ d.PXaUMw !== i && (d.ZzJDjK = {}, d.PXaUMw = i);
90
+ let a = d.ZzJDjK[e];
91
+ return a === void 0 ? (r = d.bgmGuf(r), d.ZzJDjK[e] = r) : r = a, r;
92
+ }
93
+ function f(t) {
94
+ let n = e, r = t.trim();
95
+ return /^hsla?\(/i[n(362)](r) ? u(r) : /^rgba?\(/i[n(362)](r) ? l(r) : i(r);
96
+ }
97
+ function p({ r: t, g: n, b: r, a: i }) {
98
+ let a = e, o = t / 255, s = n / 255, c = r / 255, l = Math[a(366)](o, s, c), u = l - Math[a(367)](o, s, c), d = 0;
99
+ return u && (d = l === o ? (s - c) / u % 6 : l === s ? (c - o) / u + 2 : (o - s) / u + 4, d = (d * 60 + 360) % 360), {
100
+ h: d,
101
+ s: l ? u / l : 0,
102
+ v: l,
103
+ a: i
104
+ };
105
+ }
106
+ function m({ h: e, s: t, v: n, a: r }) {
107
+ let i = (r) => {
108
+ let i = d, a = (r + e / 60) % 6;
109
+ return (n - n * t * Math.max(0, Math[i(367)](a, 4 - a, 1))) * 255;
110
+ };
111
+ return {
112
+ r: i(5),
113
+ g: i(3),
114
+ b: i(1),
115
+ a: r
116
+ };
117
+ }
118
+ function h({ r: t, g: n, b: r, a: i }) {
119
+ let a = e, { h: o, s, v: c } = p({
120
+ r: t,
121
+ g: n,
122
+ b: r,
123
+ a: i
124
+ }), l = c * (1 - s / 2);
125
+ return {
126
+ h: o,
127
+ s: l === 0 || l === 1 ? 0 : (c - l) / Math[a(367)](l, 1 - l),
128
+ l,
129
+ a: i
130
+ };
131
+ }
132
+ function g({ h: t, s: n, l: r, a: i }) {
133
+ let a = e, o = (e) => (e + t / 30) % 12, s = n * Math[a(367)](r, 1 - r), c = (e) => (r - s * Math[a(366)](-1, Math.min(o(e) - 3, 9 - o(e), 1))) * 255;
134
+ return {
135
+ r: c(0),
136
+ g: c(8),
137
+ b: c(4),
138
+ a: i
139
+ };
140
+ }
141
+ var _ = (n) => t(Math.round(n), 0, 255)[e(393)](16)[e(397)](2, "0");
142
+ function v({ r: e, g: t, b: n, a: r }, i = !0) {
143
+ let a = "#" + _(e) + _(t) + _(n);
144
+ return i && r < 1 ? a + _(r * 255) : a;
145
+ }
146
+ function y({ r, g: i, b: a, a: o }) {
147
+ let s = e, c = [
148
+ r,
149
+ i,
150
+ a
151
+ ][s(396)]((e) => t(Math[s(381)](e), 0, 255))[s(380)](", ");
152
+ return o < 1 ? s(370) + c + ", " + n(o, 2) + ")" : s(389) + c + ")";
153
+ }
154
+ function b(t) {
155
+ let r = e, { h: i, s: a, l: o, a: s } = h(t), c = Math[r(381)](i) % 360 + ", " + Math[r(381)](a * 100) + r(377) + Math.round(o * 100) + "%";
156
+ return s < 1 ? r(384) + c + ", " + n(s, 2) + ")" : r(394) + c + ")";
157
+ }
158
+ function x(t, n, r = !0) {
159
+ let i = e;
160
+ return n === i(374) ? y(r ? t : {
161
+ ...t,
162
+ a: 1
163
+ }) : n === i(392) ? b(r ? t : {
164
+ ...t,
165
+ a: 1
166
+ }) : v(t, r);
167
+ }
168
+ function S(e, t = !0) {
169
+ let n = f(e);
170
+ return n ? v(n, t) : null;
171
+ }
172
+ function C({ r: e, g: t, b: n }) {
173
+ let r = (e) => {
174
+ let t = e / 255;
175
+ return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
176
+ };
177
+ return .2126 * r(e) + .7152 * r(t) + .0722 * r(n);
178
+ }
179
+ var w = (e) => e.a < .5 || C(e) > .4;
180
+ export { t as clamp, x as formatColor, v as formatHex, b as formatHsl, y as formatRgb, g as hslToRgb, m as hsvToRgb, w as isLight, C as luminance, S as normalizeHex, f as parseColor, i as parseHex, u as parseHsl, l as parseRgb, h as rgbToHsl, p as rgbToHsv };
@@ -0,0 +1,75 @@
1
+ "use client";
2
+ function e(t, n) {
3
+ t -= 194;
4
+ var i = r(), a = i[t];
5
+ e.XniEDf === void 0 && (e.vbqrZj = 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.fwkTls = {}, e.XniEDf = !0);
10
+ var o = i[0];
11
+ e.ECexNl !== o && (e.fwkTls = {}, e.ECexNl = o);
12
+ var s = e.fwkTls[t];
13
+ return s === void 0 ? (a = e.vbqrZj(a), e.fwkTls[t] = a) : a = s, a;
14
+ }
15
+ var t = e;
16
+ (function(t, n) {
17
+ for (var r = e, i = t();;) try {
18
+ if (-parseInt(r(207)) / 1 * (parseInt(r(205)) / 2) + parseInt(r(208)) / 3 * (parseInt(r(206)) / 4) + -parseInt(r(200)) / 5 * (parseInt(r(211)) / 6) + parseInt(r(209)) / 7 * (parseInt(r(194)) / 8) + -parseInt(r(198)) / 9 + -parseInt(r(195)) / 10 * (-parseInt(r(196)) / 11) + parseInt(r(204)) / 12 * (parseInt(r(210)) / 13) == n) break;
19
+ i.push(i.shift());
20
+ } catch {
21
+ i.push(i.shift());
22
+ }
23
+ })(r, 215451);
24
+ var n = [
25
+ {
26
+ color: t(197),
27
+ label: "분홍"
28
+ },
29
+ {
30
+ color: t(199),
31
+ label: "파랑"
32
+ },
33
+ {
34
+ color: "--chart-3",
35
+ label: "청록"
36
+ },
37
+ {
38
+ color: t(203),
39
+ label: "보라"
40
+ },
41
+ {
42
+ color: t(201),
43
+ label: "회색"
44
+ },
45
+ {
46
+ color: t(202),
47
+ label: "주황"
48
+ }
49
+ ];
50
+ function r() {
51
+ var e = [
52
+ "mJqYotC5m2Llue5nrW",
53
+ "ls1JAgfYDc0Y",
54
+ "nwz6veDKBW",
55
+ "ls1JAgfYDc01",
56
+ "ls1JAgfYDc02",
57
+ "ls1JAgfYDc00",
58
+ "mtmYsfnevuzb",
59
+ "ndu5odrfBg9wshe",
60
+ "nde4mgLRzK1kwq",
61
+ "mNnZEwHlra",
62
+ "ntm3DxjAywXh",
63
+ "ndLuB3bUqLe",
64
+ "mtC1otGXrwDVzevP",
65
+ "mtq1mJy2nLjltK1dzG",
66
+ "ndm5odu2uufqsNvJ",
67
+ "mJC3mZbkzLznu1a",
68
+ "mJa5DwjzzunT",
69
+ "ls1JAgfYDc0X"
70
+ ];
71
+ return r = function() {
72
+ return e;
73
+ }, r();
74
+ }
75
+ export { n as CHART_COLOR_PRESETS };
@@ -0,0 +1,229 @@
1
+ "use client";
2
+ const e = i;
3
+ (function(e, t) {
4
+ let n = i, r = e();
5
+ for (;;) try {
6
+ if (-parseInt(n(335)) / 1 + parseInt(n(319)) / 2 + -parseInt(n(373)) / 3 * (-parseInt(n(350)) / 4) + parseInt(n(344)) / 5 * (-parseInt(n(321)) / 6) + -parseInt(n(354)) / 7 + parseInt(n(358)) / 8 + parseInt(n(362)) / 9 == t) break;
7
+ r.push(r.shift());
8
+ } catch {
9
+ r.push(r.shift());
10
+ }
11
+ })(h, 306184);
12
+ import { usePresence as t } from "../../hooks/usePresence.js";
13
+ import { useControllableState as n } from "../../hooks/useControllableState.js";
14
+ import { cx as r } from "../../primitives/index.js";
15
+ function i(e, t) {
16
+ e -= 310;
17
+ let n = h(), r = n[e];
18
+ i.QxJcXw === void 0 && (i.obLKru = function(e) {
19
+ let t = "", n = "";
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);
21
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
22
+ return decodeURIComponent(n);
23
+ }, i.LxAGUW = {}, i.QxJcXw = !0);
24
+ let a = n[0];
25
+ i.UoOnUz !== a && (i.LxAGUW = {}, i.UoOnUz = a);
26
+ let o = i.LxAGUW[e];
27
+ return o === void 0 ? (r = i.obLKru(r), i.LxAGUW[e] = r) : r = o, r;
28
+ }
29
+ import { useSelection as a } from "../../hooks/useSelection.js";
30
+ import { useDismiss as o } from "../../hooks/useDismiss.js";
31
+ import { Listbox as ee, ListboxPopover as te, firstEnabled as ne, lastEnabled as re, nextEnabled as s, optionId as ie } from "../Listbox/Listbox2.js";
32
+ /* empty css */
33
+ import { useId as ae, useMemo as oe, useRef as c, useState as l } from "react";
34
+ import { Check as u, ChevronDown as se, Plus as ce, X as d } from "lucide-react";
35
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
36
+ function h() {
37
+ let e = /* @__PURE__ */ "Dg9Nz2XL.zhmTB3b0Aw9Ux19SywjLBa.zhmTy29TyM9IB3GTlw11BhrPCgXL.C2vSzwn0zwq.Aw5JBhvKzxm.mtKWmdeZnufNA1vfAq.Dg9mB3DLCKnHC2u.AwnVBG.C3rYB25N.zgvZy3jPChrPB24.y3vYCMvUDa.mtGWz3rYzhDN.C3rVCfbYB3bHz2f0Aw9U.BgLZDa.yNv0Dg9U.mtC0nZy0mvDereX6tW.zhmTB3b0Aw9Ux19JAgvJAY1IB3G.ChjLDMvUDerLzMf1Bhq.zM9JDxm.mZi0nJu4neTNEwPfCa.A2v5.AxndB21WB3nPBMC.Aw5WDxq.mta0ndqXnePivxDnzW.zhmTB3b0Aw9Ux19JAgvJAW.zgvMyxvSDfzHBhvL.lwXPC3q.DgfYz2v0.Bw91BNrLza.B25wywX1zunOyw5Nzq.C2XPy2u.C29Tzq.zhmTy29TyM9IB3GTlq.C3bHBG.nJKYn3HZzgzJtW.B2zM.zhmTy29TyM9IB3HFx3rHzW.zgL2.qMfJA3nWywnL.DhjPBq.7isG7yoDio2vToYGNa.zgLZywjSzwq.6Rka7ioj7zw07isCioYeOo2dNq.AxntzwXLy3rLza.y29TyM9IB3G.zhmTy29TyM9IB3HFx2nOzxzYB24.BMf0AxzLrxzLBNq.qxjYB3DvCa.BgfIzwW.oti4ntC2BM1SDeno.zhmTy29UDhjVBa.nMzbCefAzq.DMfSDwu.zhmTy29TyM9IB3G.qxjYB3DeB3DU.BxvSDgLWBgu.zMLSDgvY.y2XVC2LUzW.vgfI.zhmTB3b0Aw9Ux19Py29U.B25jBNb1DenOyw5Nzq.z2v0.zhmTB3b0Aw9Ux19KzxnJ.rxnJyxbL.C2v0u2vSzwn0zwq.mtu0mtG4Cfr0uNvs.BwfW.C2LUz2XL.BgvUz3rO".split(".");
38
+ return h = function() {
39
+ return e;
40
+ }, h();
41
+ }
42
+ var g = (t) => t[e(345)]().replace(/\s+/g, ""), _ = (t, n) => {
43
+ let r = e, i = g(n);
44
+ return [t[r(318)], ...t.keywords ?? []][r(370)]((e) => g(e)[r(343)](i));
45
+ };
46
+ function v({ text: t, query: n }) {
47
+ let r = e, i = n ? t[r(345)]().indexOf(n[r(345)]()) : -1;
48
+ return i < 0 ? p(f, { children: t }) : m(f, { children: [
49
+ t[r(369)](0, i),
50
+ p("mark", { children: t[r(369)](i, i + n.length) }),
51
+ t[r(369)](i + n[r(338)])
52
+ ] });
53
+ }
54
+ function y(i) {
55
+ let u = e, { options: h, placeholder: v = u(312), size: y = "md", disabled: x, invalid: S, leading: C, filter: le = _, onCreate: w, createLabel: ue = (e) => m(f, { children: [
56
+ "‘",
57
+ p(u(347), { children: e }),
58
+ "’ 추가"
59
+ ] }), emptyText: de, highlight: T = !0, renderOption: E, maxHeight: fe, id: pe, className: me, "aria-label": D, "aria-labelledby": O } = i, k = ae() + u(365), A = a(i.multiple ? {
60
+ type: u(325),
61
+ value: i[u(322)],
62
+ defaultValue: i[u(364)],
63
+ onValueChange: i.onValueChange
64
+ } : {
65
+ type: u(337),
66
+ value: i.value,
67
+ defaultValue: i.defaultValue,
68
+ onValueChange: i[u(368)]
69
+ }), j = A.multiple, [M, N] = n(i.inputValue, "", i[u(330)]), [P, F] = l(!1), [I, L] = l(!1), R = t(I), [z, B] = l(-1), V = c(null), H = c(null), U = c(null), he = oe(() => new Map(h[u(336)]((e) => [e.value, e])), [h]), W = A[u(342)][u(336)]((e) => he[u(331)](e))[u(326)]((e) => !!e), G = j || P, K = G ? M[u(378)]() : "", q = K ? h[u(326)]((e) => le(e, K)) : h, J = !!w && !!K && !h[u(370)]((e) => g(e[u(318)]) === g(K)), Y = J ? [...q, { disabled: !1 }] : q, X = () => {
70
+ L(!1), F(!1), j || N("");
71
+ };
72
+ o(I, [V, U], X);
73
+ let Z = (e = ne(Y)) => {
74
+ x || (B(e), L(!0));
75
+ }, Q = (e) => {
76
+ let t = u;
77
+ e[t(311)] || (j ? (A[t(339)](e[t(322)]), N(""), H[t(349)]?.[t(357)]()) : (A[t(334)]([e[t(322)]]), X()));
78
+ }, $ = () => {
79
+ w?.(K), N(""), j || X();
80
+ }, ge = J ? {
81
+ label: ue(K),
82
+ icon: p(ce, {}),
83
+ onSelect: $
84
+ } : void 0, _e = () => {
85
+ z < 0 || (z < q[u(338)] ? Q(q[z]) : J && $());
86
+ }, ve = (e) => {
87
+ let t = u;
88
+ if (!e[t(316)][t(360)]) switch (e[t(359)]) {
89
+ case t(324):
90
+ e.preventDefault(), I ? B(s(Y, z, 1)) : Z();
91
+ break;
92
+ case t(317):
93
+ e.preventDefault(), I ? B(s(Y, z, -1)) : Z(re(Y));
94
+ break;
95
+ case "Enter":
96
+ I && (e.preventDefault(), _e());
97
+ break;
98
+ case t(333):
99
+ (I || P) && (e[t(356)](), X());
100
+ break;
101
+ case t(377):
102
+ j && !M && W[t(338)] && A.toggle(W[W[t(338)] - 1][t(322)]);
103
+ break;
104
+ case t(328): I && X();
105
+ }
106
+ }, ye = G ? M : W[0]?.[u(318)] ?? "";
107
+ return m(f, { children: [m(u(376), {
108
+ ref: V,
109
+ className: r(u(320), u(323), y !== "md" && u(371) + y, j && u(341), me),
110
+ "data-open": I || void 0,
111
+ "data-invalid": S || void 0,
112
+ "data-disabled": x || void 0,
113
+ onPointerDown: (e) => {
114
+ let t = u;
115
+ x || e[t(366)] === H[t(349)] || (e[t(356)](), H[t(349)]?.[t(357)](), I || Z());
116
+ },
117
+ children: [
118
+ C && p(u(372), {
119
+ className: "ds-combobox__icon",
120
+ children: C
121
+ }),
122
+ j && W[u(336)]((e) => m(u(372), {
123
+ className: u(375),
124
+ children: [e[u(318)], p(u(353), {
125
+ type: "button",
126
+ tabIndex: -1,
127
+ "aria-label": e[u(318)] + " 제거",
128
+ disabled: x,
129
+ onPointerDown: (e) => e[u(351)](),
130
+ onClick: () => A[u(339)](e.value),
131
+ children: p(d, {})
132
+ })]
133
+ }, e[u(322)])),
134
+ p(u(361), {
135
+ ref: H,
136
+ id: pe,
137
+ role: u(314),
138
+ "aria-expanded": I,
139
+ "aria-controls": I ? k : void 0,
140
+ "aria-autocomplete": u(352),
141
+ "aria-activedescendant": I && z >= 0 ? ie(k, z) : void 0,
142
+ "aria-invalid": S || void 0,
143
+ "aria-label": D,
144
+ "aria-labelledby": O,
145
+ autoComplete: u(374),
146
+ disabled: x,
147
+ className: "ds-combobox__input",
148
+ placeholder: j && W[u(338)] ? "" : v,
149
+ value: ye,
150
+ onChange: (e) => {
151
+ let t = u;
152
+ N(e[t(366)][t(322)]), F(!0), L(!0), B(e[t(366)][t(322)][t(378)]() ? 0 : -1);
153
+ },
154
+ onFocus: () => !I && Z(-1),
155
+ onClick: () => !I && Z(-1),
156
+ onBlur: () => X(),
157
+ onKeyDown: ve
158
+ }),
159
+ !j && W.length > 0 && !P && !x && p("button", {
160
+ type: "button",
161
+ tabIndex: -1,
162
+ className: "ds-combobox__clear",
163
+ "aria-label": u(310),
164
+ onPointerDown: (e) => {
165
+ let t = u;
166
+ e[t(356)](), e[t(351)]();
167
+ },
168
+ onClick: () => A.clear(),
169
+ children: p(d, {})
170
+ }),
171
+ p(se, { className: u(315) })
172
+ ]
173
+ }), R[u(367)] && p(te, {
174
+ ref: U,
175
+ closing: R[u(327)],
176
+ anchorRef: V,
177
+ maxHeight: fe,
178
+ children: p(ee, {
179
+ id: k,
180
+ options: q,
181
+ activeIndex: z,
182
+ isSelected: A[u(313)],
183
+ onSelect: Q,
184
+ onActiveChange: B,
185
+ multiple: j,
186
+ action: ge,
187
+ emptyText: de,
188
+ "aria-label": D,
189
+ renderOption: E ? (e, t) => E(e, {
190
+ ...t,
191
+ query: K
192
+ }) : T && K ? (e, t) => p(b, {
193
+ option: e,
194
+ state: t,
195
+ query: K,
196
+ multiple: j
197
+ }) : void 0
198
+ })
199
+ })] });
200
+ }
201
+ function b({ option: t, state: n, query: r, multiple: i }) {
202
+ let a = e;
203
+ return m(f, { children: [
204
+ i && p("span", {
205
+ className: a(355),
206
+ "data-checked": n[a(342)] || void 0,
207
+ children: p(u, {})
208
+ }),
209
+ t[a(346)] && p(a(372), {
210
+ className: a(329),
211
+ children: t[a(346)]
212
+ }),
213
+ m(a(372), {
214
+ className: "ds-option__text",
215
+ children: [p("span", {
216
+ className: a(340),
217
+ children: p(v, {
218
+ text: t[a(318)],
219
+ query: r
220
+ })
221
+ }), t[a(348)] && p(a(372), {
222
+ className: a(332),
223
+ children: t.description
224
+ })]
225
+ }),
226
+ !i && n[a(342)] && p(u, { className: a(363) })
227
+ ] });
228
+ }
229
+ export { y as Combobox, _ as defaultComboboxFilter };