@iamfiro/design 0.3.1 → 0.3.4

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 (161) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/avatar/AGENTS.md +29 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/agents/tooltip/AGENTS.md +1 -1
  6. package/lib/components/Accordion/Accordion2.js +92 -92
  7. package/lib/components/ActionBar/ActionBar2.js +42 -45
  8. package/lib/components/Alert/Alert2.js +77 -77
  9. package/lib/components/AppShell/AppShell2.js +70 -71
  10. package/lib/components/AreaChart/AreaChart.js +32 -35
  11. package/lib/components/BarChart/BarChart2.js +155 -155
  12. package/lib/components/BarList/BarList2.js +93 -93
  13. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -64
  14. package/lib/components/Calendar/Calendar2.js +183 -182
  15. package/lib/components/Calendar/DatePicker2.js +116 -115
  16. package/lib/components/Calendar/date.js +67 -66
  17. package/lib/components/Card/Card2.js +67 -67
  18. package/lib/components/CardFrame/CardFrame2.js +34 -37
  19. package/lib/components/Chart/ChartParts.js +90 -90
  20. package/lib/components/Chart/chart2.js +62 -62
  21. package/lib/components/Chart/useChartInteraction.js +51 -51
  22. package/lib/components/ChatBubble/ChatBubble2.js +117 -117
  23. package/lib/components/ChatBubble/formatChatTime.js +37 -36
  24. package/lib/components/ChatComposer/ChatComposer2.js +55 -55
  25. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  26. package/lib/components/CodeBlock/highlight.js +72 -72
  27. package/lib/components/ColorPicker/ColorPicker2.js +232 -231
  28. package/lib/components/ColorPicker/color.js +67 -67
  29. package/lib/components/ColorPicker/presets.js +25 -24
  30. package/lib/components/Combobox/Combobox2.js +140 -140
  31. package/lib/components/CommandMenu/CommandMenu.js +135 -135
  32. package/lib/components/Comment/Comment2.js +82 -57
  33. package/lib/components/ContextMenu/ContextMenu2.js +101 -100
  34. package/lib/components/DataGrid/DataGrid2.js +872 -871
  35. package/lib/components/DataGrid/GridPopover.js +98 -98
  36. package/lib/components/DataGrid/anchor.js +34 -33
  37. package/lib/components/DataGrid/model.js +291 -290
  38. package/lib/components/DataGrid/panels.js +337 -336
  39. package/lib/components/DataGrid/typeMeta.js +49 -48
  40. package/lib/components/DataGrid/types.js +34 -33
  41. package/lib/components/DescriptionList/DescriptionList2.js +109 -109
  42. package/lib/components/Dialog/AlertDialog.js +53 -53
  43. package/lib/components/Dialog/Dialog2.js +72 -72
  44. package/lib/components/Dialog/modal.js +67 -68
  45. package/lib/components/Drawer/Drawer2.js +117 -117
  46. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -266
  47. package/lib/components/DropdownMenu/menuCore.js +68 -42
  48. package/lib/components/Dropzone/Dropzone2.js +78 -78
  49. package/lib/components/EmptyState/EmptyState2.js +58 -56
  50. package/lib/components/FileChip/FileChip2.js +72 -48
  51. package/lib/components/FileUpload/FileUpload.js +137 -138
  52. package/lib/components/FilterChips/FilterChips2.js +61 -61
  53. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  54. package/lib/components/FunnelChart/funnel.js +50 -49
  55. package/lib/components/Highlight/Highlight2.js +56 -56
  56. package/lib/components/HoverCard/HoverCard.js +73 -73
  57. package/lib/components/InlineDiff/InlineDiff2.js +129 -129
  58. package/lib/components/InlineDiff/diff.js +87 -87
  59. package/lib/components/InlineDiff/useDiffReview.js +54 -52
  60. package/lib/components/Kanban/Kanban2.js +383 -384
  61. package/lib/components/Kanban/KanbanCard.js +68 -93
  62. package/lib/components/Kanban/move.js +43 -43
  63. package/lib/components/LineChart/LineChart2.js +164 -164
  64. package/lib/components/List/List2.js +60 -60
  65. package/lib/components/Listbox/Listbox2.js +108 -108
  66. package/lib/components/Marker/Marker2.js +59 -57
  67. package/lib/components/Menubar/Menubar2.js +120 -119
  68. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  69. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -279
  70. package/lib/components/NoticeStack/NoticeStack2.js +109 -109
  71. package/lib/components/NumberStepper/NumberStepper2.js +70 -70
  72. package/lib/components/OtpInput/OtpInput2.js +94 -94
  73. package/lib/components/Pagination/Pagination2.js +109 -109
  74. package/lib/components/Pagination/paginationRange.js +37 -38
  75. package/lib/components/PhoneInput/PhoneInput.js +83 -84
  76. package/lib/components/PieChart/PieChart2.js +157 -157
  77. package/lib/components/PieChart/arc.js +72 -72
  78. package/lib/components/PieChart/useArcTween.js +50 -53
  79. package/lib/components/Popover/Popover2.js +62 -61
  80. package/lib/components/ProgressTracker/ProgressTracker2.js +104 -104
  81. package/lib/components/Rating/Rating2.js +89 -88
  82. package/lib/components/Resizable/Resizable2.js +133 -134
  83. package/lib/components/Resizable/layout.js +56 -56
  84. package/lib/components/ScaledPreview/ScaledPreview2.js +64 -63
  85. package/lib/components/ScatterChart/ScatterChart2.js +252 -251
  86. package/lib/components/ScatterChart/scatter.js +50 -52
  87. package/lib/components/ScrollArea/ScrollArea2.js +122 -122
  88. package/lib/components/Select/Select2.js +84 -85
  89. package/lib/components/Sidebar/Sidebar2.js +79 -79
  90. package/lib/components/Skeleton/Skeleton2.js +56 -56
  91. package/lib/components/Slider/Slider2.js +63 -63
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -46
  93. package/lib/components/SparkChart/SparkChart2.js +129 -128
  94. package/lib/components/SparkChart/spark.js +49 -48
  95. package/lib/components/Sparkbar/Sparkbar2.js +59 -58
  96. package/lib/components/SplitView/SplitView2.js +54 -55
  97. package/lib/components/Stat/Stat2.js +59 -59
  98. package/lib/components/StepList/StepList2.js +78 -78
  99. package/lib/components/Table/Table2.js +55 -55
  100. package/lib/components/Tabs/Tabs2.js +76 -76
  101. package/lib/components/TagInput/TagInput2.js +218 -215
  102. package/lib/components/TimePicker/TimePicker2.js +204 -204
  103. package/lib/components/TimePicker/time.js +59 -58
  104. package/lib/components/Timeline/Timeline2.js +179 -179
  105. package/lib/components/Timeline/scale.js +60 -55
  106. package/lib/components/Toast/Toaster.js +103 -103
  107. package/lib/components/Toast/store.js +47 -47
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +77 -77
  109. package/lib/components/Toolbar/Toolbar2.js +138 -138
  110. package/lib/components/Tracker/Tracker2.js +99 -99
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +117 -117
  112. package/lib/components/TreeView/TreeView2.js +145 -145
  113. package/lib/hooks/timing.js +33 -33
  114. package/lib/hooks/useControllableState.js +33 -33
  115. package/lib/hooks/useCountdown.js +54 -55
  116. package/lib/hooks/useDigitInput.js +85 -84
  117. package/lib/hooks/useDismiss.js +55 -55
  118. package/lib/hooks/useElapsed.js +55 -55
  119. package/lib/hooks/useFloating.js +21 -21
  120. package/lib/hooks/useFocusTrap.js +67 -67
  121. package/lib/hooks/usePresence.js +33 -29
  122. package/lib/hooks/usePressToOpen.js +33 -33
  123. package/lib/hooks/useScrollLock.js +54 -55
  124. package/lib/hooks/useSelection.js +54 -48
  125. package/lib/index.js +67 -68
  126. package/lib/primitives/AspectRatio2.js +58 -54
  127. package/lib/primitives/BrandIcon.js +189 -158
  128. package/lib/primitives/ColorDot2.js +52 -51
  129. package/lib/primitives/CopyButton2.js +66 -64
  130. package/lib/primitives/CountBadge2.js +56 -56
  131. package/lib/primitives/Countdown2.js +36 -34
  132. package/lib/primitives/Delta2.js +41 -66
  133. package/lib/primitives/Elapsed.js +32 -32
  134. package/lib/primitives/FileIcon2.js +90 -90
  135. package/lib/primitives/Flag2.js +157 -157
  136. package/lib/primitives/IconStack2.js +60 -58
  137. package/lib/primitives/IconTile2.js +46 -48
  138. package/lib/primitives/Kbd2.js +51 -51
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +37 -35
  141. package/lib/primitives/MaskedText2.js +71 -75
  142. package/lib/primitives/Progress2.js +72 -72
  143. package/lib/primitives/RelativeTime.js +60 -64
  144. package/lib/primitives/SearchInput2.js +55 -56
  145. package/lib/primitives/SelectorButton2.js +69 -71
  146. package/lib/primitives/Spinner2.js +63 -59
  147. package/lib/primitives/StatusIcon2.js +66 -66
  148. package/lib/primitives/Swatch2.js +54 -56
  149. package/lib/primitives/Tooltip2.js +77 -77
  150. package/lib/primitives/Typography2.js +67 -67
  151. package/lib/primitives/formatCountdown.js +38 -41
  152. package/lib/primitives/formatElapsed.js +41 -40
  153. package/lib/primitives/formatRelativeTime.js +74 -48
  154. package/lib/primitives/hotkey.js +81 -81
  155. package/lib/primitives/index.js +220 -199
  156. package/lib/primitives/maskValue.js +53 -52
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  159. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  160. package/lib/types/primitives/index.d.ts +6 -2
  161. package/package.json +1 -1
@@ -1,194 +1,188 @@
1
1
  "use client";
2
- const e = r;
2
+ const e = c;
3
3
  (function(e, t) {
4
- let n = r, i = e();
4
+ let n = c, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(161)) / 1 + -parseInt(n(199)) / 2 + -parseInt(n(150)) / 3 + parseInt(n(174)) / 4 + parseInt(n(143)) / 5 + -parseInt(n(198)) / 6 * (parseInt(n(156)) / 7) + parseInt(n(158)) / 8 == t) break;
7
- i.push(i.shift());
6
+ if (parseInt(n(332)) / 1 * (-parseInt(n(368)) / 2) + -parseInt(n(365)) / 3 * (parseInt(n(344)) / 4) + parseInt(n(376)) / 5 + parseInt(n(329)) / 6 * (-parseInt(n(337)) / 7) + -parseInt(n(325)) / 8 * (-parseInt(n(352)) / 9) + -parseInt(n(378)) / 10 * (-parseInt(n(328)) / 11) + -parseInt(n(333)) / 12 * (parseInt(n(327)) / 13) == t) break;
7
+ r.push(r.shift());
8
8
  } catch {
9
- i.push(i.shift());
9
+ r.push(r.shift());
10
10
  }
11
- })(a, 967689);
11
+ })(x, 249237);
12
12
  import { usePresence as t } from "../../hooks/usePresence.js";
13
13
  import { useControllableState as n } from "../../hooks/useControllableState.js";
14
- function r(e, t) {
15
- e -= 134;
16
- let n = a(), i = n[e];
17
- r.szlFZZ === void 0 && (r.wyJLAW = function(e) {
14
+ import { cx as r } from "../../primitives/index.js";
15
+ import { useSelection as i } from "../../hooks/useSelection.js";
16
+ import { useDismiss as a } from "../../hooks/useDismiss.js";
17
+ import { Listbox as ee, ListboxPopover as te, firstEnabled as o, lastEnabled as ne, nextEnabled as s, optionId as re } from "../Listbox/Listbox2.js";
18
+ /* empty css */
19
+ function c(e, t) {
20
+ e -= 325;
21
+ let n = x(), r = n[e];
22
+ c.rAwduP === void 0 && (c.JccIuY = function(e) {
18
23
  let t = "", n = "";
19
24
  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
25
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
21
26
  return decodeURIComponent(n);
22
- }, r.GNKAuR = {}, r.szlFZZ = !0);
23
- let o = n[0];
24
- r.mkolEe !== o && (r.GNKAuR = {}, r.mkolEe = o);
25
- let s = r.GNKAuR[e];
26
- return s === void 0 ? (i = r.wyJLAW(i), r.GNKAuR[e] = i) : i = s, i;
27
- }
28
- import { cx as i } from "../../primitives/index.js";
29
- function a() {
30
- let e = /* @__PURE__ */ "B2zM.C2v0u2vSzwn0zwq.CMvWBgfJzq.BwfYAW.AxntzwXLy3rLza.BwfW.mJyXmZC1mePKtNnOvG.Aw5WDxrwywX1zq.zgLZywjSzwq.C2vSzwn0zwq.DMfSDwu.rw50zxi.C3bHBG.ndiWmta1oxbJwfLiCq.AwnVBG.6Rka7ioj7zw07isCioYeOo2dNq.zgL2.C2LUz2XL.y3vYCMvUDa.mtrcB0jPs0C.qxjYB3DeB3DU.mZiWntyZnJHvsxrYy0i.vgfI.C2XPy2u.mty3nteZm0nnwuzIyW.zMLSDgvY.zhmTB3b0Aw9Ux19KzxnJ.A2v5.BgvUz3rO.DhjPBq.qMfJA3nWywnL.zhmTy29TyM9IB3GTlq.Dg9Nz2XL.Aw5WDxq.qxjYB3DvCa.zgvMyxvSDfzHBhvL.BgLZDa.nJqWmJa0ngPTrwPnvq.ioYGNoQXSa.zhmTy29TyM9IB3HFx3rHzW.zhmTy29TyM9IB3GTlw11BhrPCgXL.zhmTB3b0Aw9Ux19JAgvJAW.zhmTB3b0Aw9Ux19JAgvJAY1IB3G.Dg9mB3DLCKnHC2u.zhmTy29TyM9IB3HFx2nSzwfY.B25wywX1zunOyw5Nzq.yNv0Dg9U.zhmTy29TyM9IB3G.zhmTy29UDhjVBa.y29TyM9IB3G.zM9JDxm.C29Tzq.Aw5JBhvKzxm.y2XVC2LUzW.zgvZy3jPChrPB24.C3rYB25N.ChjLDMvUDerLzMf1Bhq.zhmTy29TyM9IB3HFx2LJB24.DgfYz2v0.z2v0.A2v5D29Yzhm.mJeYmta1ng16q0rIwa.mJC2mdiYog5nC2DTsa.BgfIzwW.BxvSDgLWBgu.zhmTy29TyM9IB3HFx2nOzxzYB24".split(".");
31
- return a = function() {
32
- return e;
33
- }, a();
27
+ }, c.zhcBKv = {}, c.rAwduP = !0);
28
+ let i = n[0];
29
+ c.zRSlca !== i && (c.zhcBKv = {}, c.zRSlca = i);
30
+ let a = c.zhcBKv[e];
31
+ return a === void 0 ? (r = c.JccIuY(r), c.zhcBKv[e] = r) : r = a, r;
34
32
  }
35
- import { useSelection as o } from "../../hooks/useSelection.js";
36
- import { useDismiss as s } from "../../hooks/useDismiss.js";
37
- import { Listbox as ee, ListboxPopover as te, firstEnabled as ne, lastEnabled as re, nextEnabled as c, optionId as ie } from "../Listbox/Listbox2.js";
38
- /* empty css */
39
- import { useId as ae, useMemo as oe, useRef as l, useState as u } from "react";
40
- import { Check as d, ChevronDown as se, Plus as ce, X as f } from "lucide-react";
41
- import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
42
- var g = (t) => t.toLowerCase()[e(139)](/\s+/g, ""), _ = (t, n) => {
43
- let r = e, i = g(n);
44
- return [t[r(134)], ...t[r(197)] ?? []][r(188)]((e) => g(e)[r(189)](i));
33
+ import { useId as ie, useMemo as ae, useRef as l, useState as u } from "react";
34
+ import { Check as d, ChevronDown as oe, Plus as f, X as p } from "lucide-react";
35
+ import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
36
+ var _ = (t) => t[e(379)]()[e(380)](/\s+/g, ""), v = (t, n) => {
37
+ let r = e, i = _(n);
38
+ return [t[r(343)], ...t.keywords ?? []].some((e) => _(e).includes(i));
45
39
  };
46
- function v({ text: t, query: n }) {
47
- let r = e, i = n ? t[r(180)]().indexOf(n[r(180)]()) : -1;
48
- return i < 0 ? m(p, { children: t }) : h(p, { children: [
49
- t[r(160)](0, i),
50
- m(r(140), { children: t[r(160)](i, i + n.length) }),
51
- t[r(160)](i + n[r(165)])
40
+ function y({ text: t, query: n }) {
41
+ let r = e, i = n ? t.toLowerCase()[r(348)](n[r(379)]()) : -1;
42
+ return i < 0 ? h(m, { children: t }) : g(m, { children: [
43
+ t.slice(0, i),
44
+ h(r(334), { children: t[r(340)](i, i + n[r(350)]) }),
45
+ t[r(340)](i + n.length)
52
46
  ] });
53
47
  }
54
- function y(r) {
55
- let a = e, { options: d, placeholder: v = a(152), size: y = "md", disabled: b, invalid: x, leading: S, filter: ue = _, onCreate: C, createLabel: de = (e) => h(p, { children: [
48
+ function b(c) {
49
+ let d = e, { options: y, placeholder: b = d(349), size: x = "md", disabled: S, invalid: C, leading: w, filter: ce = v, onCreate: T, createLabel: le = (e) => g(m, { children: [
56
50
  "‘",
57
- m(a(192), { children: e }),
58
- "’ 추가"
59
- ] }), emptyText: fe, highlight: pe = !0, renderOption: w, maxHeight: T, id: me, className: E, "aria-label": D, "aria-labelledby": O } = r, k = ae() + "-list", A = o(r[a(135)] ? {
60
- type: "multiple",
61
- value: r[a(147)],
62
- defaultValue: r[a(172)],
63
- onValueChange: r.onValueChange
51
+ h(d(347), { children: e }),
52
+ d(370)
53
+ ] }), emptyText: ue, highlight: de = !0, renderOption: E, maxHeight: D, id: fe, className: pe, "aria-label": O, "aria-labelledby": me } = c, k = ie() + "-list", A = i(c[d(345)] ? {
54
+ type: d(345),
55
+ value: c[d(373)],
56
+ defaultValue: c[d(375)],
57
+ onValueChange: c[d(346)]
64
58
  } : {
65
- type: a(154),
66
- value: r[a(147)],
67
- defaultValue: r.defaultValue,
68
- onValueChange: r[a(182)]
69
- }), j = A[a(135)], [M, N] = n(r[a(144)], "", r.onInputChange), [P, F] = u(!1), [I, L] = u(!1), R = t(I), [z, B] = u(-1), V = l(null), H = l(null), U = l(null), he = oe(() => new Map(d[a(142)]((e) => [e[a(147)], e])), [d]), W = A[a(146)][a(142)]((e) => he[a(196)](e))[a(162)]((e) => !!e), G = j || P, K = G ? M[a(166)]() : "", q = K ? d[a(162)]((e) => ue(e, K)) : d, J = !!C && !!K && !d[a(188)]((e) => g(e[a(134)]) === g(K)), Y = J ? [...q, { disabled: !1 }] : q, X = () => {
59
+ type: d(359),
60
+ value: c.value,
61
+ defaultValue: c[d(375)],
62
+ onValueChange: c.onValueChange
63
+ }), j = A[d(345)], [M, N] = n(c[d(374)], "", c.onInputChange), [P, F] = u(!1), [I, L] = u(!1), R = t(I), [z, B] = u(-1), V = l(null), H = l(null), U = l(null), he = ae(() => new Map(y[d(388)]((e) => [e.value, e])), [y]), W = A[d(351)][d(388)]((e) => he.get(e))[d(335)]((e) => !!e), G = j || P, K = G ? M[d(357)]() : "", q = K ? y[d(335)]((e) => ce(e, K)) : y, J = !!T && !!K && !y.some((e) => _(e[d(343)]) === _(K)), Y = J ? [...q, { disabled: !1 }] : q, X = () => {
70
64
  L(!1), F(!1), j || N("");
71
65
  };
72
- s(I, [V, U], X);
73
- let Z = (e = ne(Y)) => {
74
- b || (B(e), L(!0));
66
+ a(I, [V, U], X);
67
+ let Z = (e = o(Y)) => {
68
+ S || (B(e), L(!0));
75
69
  }, Q = (e) => {
76
- let t = a;
77
- e[t(145)] || (j ? (A[t(169)](e.value), N(""), H.current?.[t(187)]()) : (A[t(138)]([e[t(147)]]), X()));
70
+ let t = d;
71
+ e.disabled || (j ? (A[t(341)](e[t(373)]), N(""), H.current?.[t(356)]()) : (A[t(372)]([e[t(373)]]), X()));
78
72
  }, $ = () => {
79
- C?.(K), N(""), j || X();
73
+ T?.(K), N(""), j || X();
80
74
  }, ge = J ? {
81
- label: de(K),
82
- icon: m(ce, {}),
75
+ label: le(K),
76
+ icon: h(f, {}),
83
77
  onSelect: $
84
78
  } : void 0, _e = () => {
85
- z < 0 || (z < q[a(165)] ? Q(q[z]) : J && $());
79
+ z < 0 || (z < q[d(350)] ? Q(q[z]) : J && $());
86
80
  }, ve = (e) => {
87
- let t = a;
88
- if (!e.nativeEvent.isComposing) switch (e[t(164)]) {
89
- case t(157):
90
- e[t(193)](), I ? B(c(Y, z, 1)) : Z();
81
+ let t = d;
82
+ if (!e[t(330)].isComposing) switch (e.key) {
83
+ case t(355):
84
+ e.preventDefault(), I ? B(s(Y, z, 1)) : Z();
91
85
  break;
92
- case t(171):
93
- e[t(193)](), I ? B(c(Y, z, -1)) : Z(re(Y));
86
+ case t(371):
87
+ e.preventDefault(), I ? B(s(Y, z, -1)) : Z(ne(Y));
94
88
  break;
95
- case t(148):
96
- I && (e[t(193)](), _e());
89
+ case t(384):
90
+ I && (e.preventDefault(), _e());
97
91
  break;
98
92
  case "Escape":
99
- (I || P) && (e[t(193)](), X());
93
+ (I || P) && (e[t(387)](), X());
100
94
  break;
101
- case t(167):
102
- j && !M && W[t(165)] && A[t(169)](W[W[t(165)] - 1][t(147)]);
95
+ case t(391):
96
+ j && !M && W[t(350)] && A.toggle(W[W.length - 1].value);
103
97
  break;
104
- case t(159): I && X();
98
+ case "Tab": I && X();
105
99
  }
106
- }, ye = G ? M : W[0]?.[a(134)] ?? "";
107
- return h(p, { children: [h(a(153), {
100
+ }, ye = G ? M : W[0]?.[d(343)] ?? "";
101
+ return g(m, { children: [g(d(353), {
108
102
  ref: V,
109
- className: i(a(185), a(184), y !== "md" && a(168) + y, j && a(177), E),
103
+ className: r(d(367), "ds-combobox", x !== "md" && "ds-combobox--" + x, j && d(342), pe),
110
104
  "data-open": I || void 0,
111
- "data-invalid": x || void 0,
112
- "data-disabled": b || void 0,
105
+ "data-invalid": C || void 0,
106
+ "data-disabled": S || void 0,
113
107
  onPointerDown: (e) => {
114
- let t = a;
115
- b || e.target === H[t(155)] || (e.preventDefault(), H[t(155)]?.[t(187)](), I || Z());
108
+ let t = d;
109
+ S || e[t(377)] === H[t(326)] || (e.preventDefault(), H.current?.[t(356)](), I || Z());
116
110
  },
117
111
  children: [
118
- S && m(a(149), {
119
- className: a(194),
120
- children: S
112
+ w && h(d(361), {
113
+ className: d(369),
114
+ children: w
121
115
  }),
122
- j && W[a(142)]((e) => h("span", {
123
- className: a(176),
124
- children: [e[a(134)], m("button", {
125
- type: a(183),
116
+ j && W.map((e) => g(d(361), {
117
+ className: "ds-combobox__tag",
118
+ children: [e[d(343)], h("button", {
119
+ type: d(362),
126
120
  tabIndex: -1,
127
- "aria-label": e[a(134)] + a(175),
128
- disabled: b,
121
+ "aria-label": e[d(343)] + d(383),
122
+ disabled: S,
129
123
  onPointerDown: (e) => e.stopPropagation(),
130
- onClick: () => A[a(169)](e[a(147)]),
131
- children: m(f, {})
124
+ onClick: () => A.toggle(e[d(373)]),
125
+ children: h(p, {})
132
126
  })]
133
- }, e[a(147)])),
134
- m(a(170), {
127
+ }, e.value)),
128
+ h(d(389), {
135
129
  ref: H,
136
- id: me,
137
- role: a(186),
130
+ id: fe,
131
+ role: d(381),
138
132
  "aria-expanded": I,
139
133
  "aria-controls": I ? k : void 0,
140
- "aria-autocomplete": a(173),
141
- "aria-activedescendant": I && z >= 0 ? ie(k, z) : void 0,
142
- "aria-invalid": x || void 0,
143
- "aria-label": D,
144
- "aria-labelledby": O,
145
- autoComplete: a(137),
146
- disabled: b,
147
- className: "ds-combobox__input",
148
- placeholder: j && W[a(165)] ? "" : v,
134
+ "aria-autocomplete": d(364),
135
+ "aria-activedescendant": I && z >= 0 ? re(k, z) : void 0,
136
+ "aria-invalid": C || void 0,
137
+ "aria-label": O,
138
+ "aria-labelledby": me,
139
+ autoComplete: "off",
140
+ disabled: S,
141
+ className: d(358),
142
+ placeholder: j && W[d(350)] ? "" : b,
149
143
  value: ye,
150
144
  onChange: (e) => {
151
- let t = a;
152
- N(e[t(195)][t(147)]), F(!0), L(!0), B(e[t(195)][t(147)][t(166)]() ? 0 : -1);
145
+ let t = d;
146
+ N(e[t(377)][t(373)]), F(!0), L(!0), B(e[t(377)].value[t(357)]() ? 0 : -1);
153
147
  },
154
148
  onFocus: () => !I && Z(-1),
155
149
  onClick: () => !I && Z(-1),
156
150
  onBlur: () => X(),
157
151
  onKeyDown: ve
158
152
  }),
159
- !j && W[a(165)] > 0 && !P && !b && m(a(183), {
153
+ !j && W.length > 0 && !P && !S && h("button", {
160
154
  type: "button",
161
155
  tabIndex: -1,
162
- className: a(181),
156
+ className: d(363),
163
157
  "aria-label": "선택 해제",
164
158
  onPointerDown: (e) => {
165
- e[a(193)](), e.stopPropagation();
159
+ e[d(387)](), e.stopPropagation();
166
160
  },
167
- onClick: () => A.clear(),
168
- children: m(f, {})
161
+ onClick: () => A[d(331)](),
162
+ children: h(p, {})
169
163
  }),
170
- m(se, { className: a(136) })
164
+ h(oe, { className: d(390) })
171
165
  ]
172
- }), R.mounted && m(te, {
166
+ }), R[d(385)] && h(te, {
173
167
  ref: U,
174
- closing: R[a(190)],
168
+ closing: R[d(338)],
175
169
  anchorRef: V,
176
- maxHeight: T,
177
- children: m(ee, {
170
+ maxHeight: D,
171
+ children: h(ee, {
178
172
  id: k,
179
173
  options: q,
180
174
  activeIndex: z,
181
- isSelected: A[a(141)],
175
+ isSelected: A[d(366)],
182
176
  onSelect: Q,
183
177
  onActiveChange: B,
184
178
  multiple: j,
185
179
  action: ge,
186
- emptyText: fe,
187
- "aria-label": D,
188
- renderOption: w ? (e, t) => w(e, {
180
+ emptyText: ue,
181
+ "aria-label": O,
182
+ renderOption: E ? (e, t) => E(e, {
189
183
  ...t,
190
184
  query: K
191
- }) : pe && K ? (e, t) => m(le, {
185
+ }) : de && K ? (e, t) => h(se, {
192
186
  option: e,
193
187
  state: t,
194
188
  query: K,
@@ -197,32 +191,38 @@ function y(r) {
197
191
  })
198
192
  })] });
199
193
  }
200
- function le({ option: t, state: n, query: r, multiple: i }) {
194
+ function x() {
195
+ let e = /* @__PURE__ */ "y3vYCMvUDa.mte5ntiYvNLpqMnA.nZGYntrHwgH1wu0.nJm2qKf2sLHV.BMf0AxzLrxzLBNq.y2XLyxi.mwfIq2jwrq.ntuYzgHKthHV.BwfYAW.zMLSDgvY.AwnVBG.ndqZmw1vrw9Qvq.y2XVC2LUzW.zhmTB3b0Aw9Ux190zxH0.C2XPy2u.Dg9Nz2XL.zhmTy29TyM9IB3GTlw11BhrPCgXL.BgfIzwW.mJbIBM93ruS.BxvSDgLWBgu.B25wywX1zunOyw5Nzq.C3rYB25N.Aw5KzxHpzG.6Rka7ioj7zw07isCioYeOo2dNq.BgvUz3rO.C2vSzwn0zwq.ndqWnJKWnfr5z3PXCa.zgL2.zhmTB3b0Aw9Ux19SywjLBa.qxjYB3DeB3DU.zM9JDxm.DhjPBq.zhmTy29TyM9IB3HFx2LUChv0.C2LUz2XL.zhmTB3b0Aw9Ux19KzxnJ.C3bHBG.yNv0Dg9U.zhmTy29TyM9IB3HFx2nSzwfY.BgLZDa.otmWDhzJt29A.AxntzwXLy3rLza.zhmTy29UDhjVBa.nJa4nJe0wLPlsxfg.zhmTy29TyM9IB3HFx2LJB24.4OczioY2LoQWGa.qxjYB3DvCa.C2v0u2vSzwn0zwq.DMfSDwu.Aw5WDxrwywX1zq.zgvMyxvSDfzHBhvL.nJa3ntmWs01qD25j.DgfYz2v0.nJeWvLLHzLfT.Dg9mB3DLCKnHC2u.CMvWBgfJzq.y29TyM9IB3G.zgvZy3jPChrPB24.ioYGNoQXSa.rw50zxi.Bw91BNrLza.zhmTB3b0Aw9Ux19JAgvJAW.ChjLDMvUDerLzMf1Bhq.BwfW.Aw5WDxq.zhmTy29TyM9IB3HFx2nOzxzYB24.qMfJA3nWywnL.oe9tzg5fzq".split(".");
196
+ return x = function() {
197
+ return e;
198
+ }, x();
199
+ }
200
+ function se({ option: t, state: n, query: r, multiple: i }) {
201
201
  let a = e;
202
- return h(p, { children: [
203
- i && m(a(149), {
204
- className: a(179),
205
- "data-checked": n[a(146)] || void 0,
206
- children: m(d, {})
202
+ return g(m, { children: [
203
+ i && h(a(361), {
204
+ className: "ds-option__check-box",
205
+ "data-checked": n[a(351)] || void 0,
206
+ children: h(d, {})
207
207
  }),
208
- t[a(151)] && m(a(149), {
208
+ t.icon && h(a(361), {
209
209
  className: "ds-option__icon",
210
- children: t[a(151)]
210
+ children: t[a(336)]
211
211
  }),
212
- h(a(149), {
213
- className: "ds-option__text",
214
- children: [m("span", {
215
- className: "ds-option__label",
216
- children: m(v, {
217
- text: t[a(134)],
212
+ g(a(361), {
213
+ className: a(339),
214
+ children: [h(a(361), {
215
+ className: a(354),
216
+ children: h(y, {
217
+ text: t[a(343)],
218
218
  query: r
219
219
  })
220
- }), t[a(191)] && m(a(149), {
221
- className: a(163),
222
- children: t[a(191)]
220
+ }), t[a(382)] && h(a(361), {
221
+ className: a(360),
222
+ children: t[a(382)]
223
223
  })]
224
224
  }),
225
- !i && n[a(146)] && m(d, { className: a(178) })
225
+ !i && n.selected && h(d, { className: a(386) })
226
226
  ] });
227
227
  }
228
- export { y as Combobox, _ as defaultComboboxFilter };
228
+ export { b as Combobox, v as defaultComboboxFilter };