@iamfiro/design 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/agents/avatar/AGENTS.md +29 -1
  2. package/agents/tooltip/AGENTS.md +1 -1
  3. package/lib/components/Accordion/Accordion2.js +81 -81
  4. package/lib/components/ActionBar/ActionBar2.js +38 -39
  5. package/lib/components/Alert/Alert2.js +79 -79
  6. package/lib/components/AppShell/AppShell2.js +45 -45
  7. package/lib/components/AreaChart/AreaChart.js +45 -46
  8. package/lib/components/BarChart/BarChart2.js +166 -166
  9. package/lib/components/BarList/BarList2.js +83 -83
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -72
  11. package/lib/components/Calendar/Calendar2.js +166 -165
  12. package/lib/components/Calendar/DatePicker2.js +139 -139
  13. package/lib/components/Calendar/date.js +61 -58
  14. package/lib/components/Card/Card2.js +47 -47
  15. package/lib/components/CardFrame/CardFrame2.js +50 -45
  16. package/lib/components/Chart/ChartParts.js +78 -78
  17. package/lib/components/Chart/chart2.js +62 -62
  18. package/lib/components/Chart/useChartInteraction.js +56 -56
  19. package/lib/components/ChatBubble/ChatBubble2.js +116 -116
  20. package/lib/components/ChatBubble/formatChatTime.js +46 -39
  21. package/lib/components/ChatComposer/ChatComposer2.js +43 -43
  22. package/lib/components/CodeBlock/CodeBlock2.js +57 -57
  23. package/lib/components/CodeBlock/highlight.js +74 -74
  24. package/lib/components/ColorPicker/ColorPicker2.js +357 -357
  25. package/lib/components/ColorPicker/color.js +83 -83
  26. package/lib/components/ColorPicker/presets.js +47 -41
  27. package/lib/components/Combobox/Combobox2.js +143 -142
  28. package/lib/components/CommandMenu/CommandMenu.js +100 -100
  29. package/lib/components/Comment/Comment2.js +59 -60
  30. package/lib/components/ContextMenu/ContextMenu2.js +95 -96
  31. package/lib/components/DataGrid/DataGrid2.js +1202 -1203
  32. package/lib/components/DataGrid/GridPopover.js +87 -87
  33. package/lib/components/DataGrid/anchor.js +17 -19
  34. package/lib/components/DataGrid/model.js +261 -261
  35. package/lib/components/DataGrid/panels.js +397 -395
  36. package/lib/components/DataGrid/typeMeta.js +51 -51
  37. package/lib/components/DataGrid/types.js +38 -36
  38. package/lib/components/DescriptionList/DescriptionList2.js +74 -74
  39. package/lib/components/Dialog/AlertDialog.js +81 -82
  40. package/lib/components/Dialog/Dialog2.js +63 -63
  41. package/lib/components/Dialog/modal.js +70 -69
  42. package/lib/components/Drawer/Drawer2.js +122 -123
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +257 -258
  44. package/lib/components/DropdownMenu/menuCore.js +43 -44
  45. package/lib/components/Dropzone/Dropzone2.js +76 -77
  46. package/lib/components/EmptyState/EmptyState2.js +59 -56
  47. package/lib/components/FileChip/FileChip2.js +73 -49
  48. package/lib/components/FileUpload/FileUpload.js +149 -150
  49. package/lib/components/FilterChips/FilterChips2.js +59 -59
  50. package/lib/components/FunnelChart/FunnelChart2.js +123 -123
  51. package/lib/components/FunnelChart/funnel.js +44 -47
  52. package/lib/components/Highlight/Highlight2.js +48 -48
  53. package/lib/components/HoverCard/HoverCard.js +89 -64
  54. package/lib/components/InlineDiff/InlineDiff2.js +123 -123
  55. package/lib/components/InlineDiff/diff.js +76 -76
  56. package/lib/components/InlineDiff/useDiffReview.js +69 -68
  57. package/lib/components/Kanban/Kanban2.js +366 -366
  58. package/lib/components/Kanban/KanbanCard.js +67 -67
  59. package/lib/components/Kanban/move.js +41 -45
  60. package/lib/components/LineChart/LineChart2.js +196 -196
  61. package/lib/components/List/List2.js +60 -59
  62. package/lib/components/Listbox/Listbox2.js +94 -94
  63. package/lib/components/Marker/Marker2.js +59 -52
  64. package/lib/components/Menubar/Menubar2.js +110 -112
  65. package/lib/components/MultiSelect/MultiSelect2.js +112 -112
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +239 -240
  67. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  68. package/lib/components/NumberStepper/NumberStepper2.js +66 -65
  69. package/lib/components/OtpInput/OtpInput2.js +87 -88
  70. package/lib/components/Pagination/Pagination2.js +81 -81
  71. package/lib/components/Pagination/paginationRange.js +25 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +77 -77
  73. package/lib/components/PieChart/PieChart2.js +101 -101
  74. package/lib/components/PieChart/arc.js +73 -76
  75. package/lib/components/PieChart/useArcTween.js +61 -57
  76. package/lib/components/Popover/Popover2.js +65 -64
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +119 -119
  78. package/lib/components/Rating/Rating2.js +85 -85
  79. package/lib/components/Resizable/Resizable2.js +139 -139
  80. package/lib/components/Resizable/layout.js +68 -68
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +55 -55
  82. package/lib/components/ScatterChart/ScatterChart2.js +249 -249
  83. package/lib/components/ScatterChart/scatter.js +55 -55
  84. package/lib/components/ScrollArea/ScrollArea2.js +132 -131
  85. package/lib/components/Select/Select2.js +81 -81
  86. package/lib/components/Sidebar/Sidebar2.js +61 -61
  87. package/lib/components/Skeleton/Skeleton2.js +46 -46
  88. package/lib/components/Slider/Slider2.js +74 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +70 -70
  90. package/lib/components/SparkChart/SparkChart2.js +138 -137
  91. package/lib/components/SparkChart/spark.js +40 -61
  92. package/lib/components/Sparkbar/Sparkbar2.js +60 -59
  93. package/lib/components/SplitView/SplitView2.js +42 -42
  94. package/lib/components/Stat/Stat2.js +88 -88
  95. package/lib/components/StepList/StepList2.js +71 -71
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +89 -89
  98. package/lib/components/TagInput/TagInput2.js +154 -154
  99. package/lib/components/TimePicker/TimePicker2.js +225 -226
  100. package/lib/components/TimePicker/time.js +50 -50
  101. package/lib/components/Timeline/Timeline2.js +201 -201
  102. package/lib/components/Timeline/scale.js +55 -53
  103. package/lib/components/Toast/Toaster.js +90 -92
  104. package/lib/components/Toast/store.js +91 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +84 -84
  106. package/lib/components/Toolbar/Toolbar2.js +166 -168
  107. package/lib/components/Tracker/Tracker2.js +89 -89
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +126 -125
  109. package/lib/components/TreeView/TreeView2.js +154 -156
  110. package/lib/hooks/timing.js +35 -36
  111. package/lib/hooks/useControllableState.js +40 -39
  112. package/lib/hooks/useCountdown.js +57 -55
  113. package/lib/hooks/useDigitInput.js +59 -83
  114. package/lib/hooks/useDismiss.js +49 -46
  115. package/lib/hooks/useElapsed.js +53 -55
  116. package/lib/hooks/useFloating.js +44 -44
  117. package/lib/hooks/useFocusTrap.js +46 -70
  118. package/lib/hooks/usePresence.js +32 -29
  119. package/lib/hooks/usePressToOpen.js +50 -50
  120. package/lib/hooks/useScrollLock.js +51 -51
  121. package/lib/hooks/useSelection.js +55 -46
  122. package/lib/index.js +34 -35
  123. package/lib/primitives/AspectRatio2.js +59 -55
  124. package/lib/primitives/BrandIcon.js +160 -160
  125. package/lib/primitives/ColorDot2.js +38 -42
  126. package/lib/primitives/CopyButton2.js +56 -56
  127. package/lib/primitives/CountBadge2.js +66 -64
  128. package/lib/primitives/Countdown2.js +31 -32
  129. package/lib/primitives/Delta2.js +46 -71
  130. package/lib/primitives/Elapsed.js +44 -44
  131. package/lib/primitives/FileIcon2.js +82 -82
  132. package/lib/primitives/Flag2.js +134 -134
  133. package/lib/primitives/IconStack2.js +31 -53
  134. package/lib/primitives/IconTile2.js +46 -48
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +78 -78
  137. package/lib/primitives/Link2.js +29 -30
  138. package/lib/primitives/MaskedText2.js +47 -73
  139. package/lib/primitives/Progress2.js +77 -78
  140. package/lib/primitives/RelativeTime.js +49 -46
  141. package/lib/primitives/SearchInput2.js +58 -59
  142. package/lib/primitives/SelectorButton2.js +76 -74
  143. package/lib/primitives/Spinner2.js +62 -58
  144. package/lib/primitives/StatusIcon2.js +56 -56
  145. package/lib/primitives/Swatch2.js +69 -65
  146. package/lib/primitives/Tooltip2.js +92 -92
  147. package/lib/primitives/Typography2.js +68 -68
  148. package/lib/primitives/formatCountdown.js +39 -43
  149. package/lib/primitives/formatElapsed.js +43 -39
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +76 -76
  152. package/lib/primitives/index.js +201 -181
  153. package/lib/primitives/maskValue.js +35 -39
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,194 +1,195 @@
1
1
  "use client";
2
- const e = r;
2
+ const e = u;
3
3
  (function(e, t) {
4
- let n = r, i = e();
4
+ let n = u, 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(222)) / 1 + parseInt(n(256)) / 2 + -parseInt(n(258)) / 3 + parseInt(n(210)) / 4 * (-parseInt(n(206)) / 5) + -parseInt(n(245)) / 6 * (-parseInt(n(236)) / 7) + parseInt(n(216)) / 8 * (parseInt(n(220)) / 9) + parseInt(n(214)) / 10 == 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
+ })(d, 599795);
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 o, firstEnabled as te, lastEnabled as ne, nextEnabled as s, optionId as re } from "../Listbox/Listbox2.js";
18
+ /* empty css */
19
+ import { useId as ie, useMemo as ae, useRef as c, useState as l } from "react";
20
+ function u(e, t) {
21
+ e -= 196;
22
+ let n = d(), r = n[e];
23
+ u.faFrkY === void 0 && (u.cFjwIP = function(e) {
18
24
  let t = "", n = "";
19
25
  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
26
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
21
27
  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;
28
+ }, u.JmHrcZ = {}, u.faFrkY = !0);
29
+ let i = n[0];
30
+ u.zVebhr !== i && (u.JmHrcZ = {}, u.zVebhr = i);
31
+ let a = u.JmHrcZ[e];
32
+ return a === void 0 ? (r = u.cFjwIP(r), u.JmHrcZ[e] = r) : r = a, r;
27
33
  }
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() {
34
+ function d() {
35
+ let e = /* @__PURE__ */ "zM9JDxm.BMf0AxzLrxzLBNq.C2LUz2XL.mJuYv1D5DhDI.C2vSzwn0zwq.otyYntfuD2XTtMm.zgL2.7isG7yoDio2vToYGNa.C3bHBG.zhmTy29TyM9IB3G.Dg9mB3DLCKnHC2u.qxjYB3DvCa.zhmTB3b0Aw9Ux19KzxnJ.BwfYAW.BgfIzwW.DgfYz2v0.A2v5.yNv0Dg9U.rw50zxi.nZDwrgvLrwi.zgvMyxvSDfzHBhvL.BxvSDgLWBgu.zhmTB3b0Aw9Ux19SywjLBa.ioYGNoQXSa.zhmTy29TyM9IB3HFx3rHzW.C2XPy2u.qxjYB3DeB3DU.Bw91BNrLza.mZC2ndK0EMP3vfzw.C29Tzq.zhmTy29TyM9IB3HFx2LUChv0.Aw5WDxrwywX1zq.zhmTy29TyM9IB3HFx2nSzwfY.z2v0.zgLZywjSzwq.BgvUz3rO.B25wywX1zunOyw5Nzq.B2zM.BgLZDa.mty5otqZne5nr0j4yG.ChjLDMvUDerLzMf1Bhq.mtG3mdu2m3nbCfLKEa.zMLSDgvY.DMfSDwu.zhmTB3b0Aw9Ux19JAgvJAY1IB3G.Aw5KzxHpzG.4OczioY2LoQWGa.y29TyM9IB3G.6Rka7ioj7zw07isCioYeOo2dNq.y2XLyxi.BwfW.A2v5D29Yzhm.zhmTB3b0Aw9Ux19Py29U.zhmTB3b0Aw9Ux19JAgvJAW.y3vYCMvUDa.AwnVBG.C2v0u2vSzwn0zwq.mJuWmZeWvezKsMr3.Dg9Nz2XL.C3rVCfbYB3bHz2f0Aw9U.vgfI.otjPtuf3qu8.rxnJyxbL.CMvWBgfJzq.zgvZy3jPChrPB24.mJG1nZq3mgjHr2zRBW.zhmTy29UDhjVBa.mti5mZy4C0DVt0vQ".split(".");
36
+ return d = function() {
32
37
  return e;
33
- }, a();
38
+ }, d();
34
39
  }
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));
40
+ import { Check as f, ChevronDown as oe, Plus as se, X as p } from "lucide-react";
41
+ import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
42
+ var _ = (t) => t.toLowerCase()[e(212)](/\s+/g, ""), v = (t, n) => {
43
+ let r = e, i = _(n);
44
+ return [t[r(231)], ...t[r(200)] ?? []][r(246)]((e) => _(e).includes(i));
45
45
  };
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)])
46
+ function y({ text: t, query: n }) {
47
+ let r = e, i = n ? t[r(227)]()[r(262)](n[r(227)]()) : -1;
48
+ return i < 0 ? h(m, { children: t }) : g(m, { children: [
49
+ t[r(242)](0, i),
50
+ h(r(230), { children: t[r(242)](i, i + n[r(252)]) }),
51
+ t[r(242)](i + n[r(252)])
52
52
  ] });
53
53
  }
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: [
54
+ function b(u) {
55
+ let d = e, { options: f, placeholder: y = d(197), size: b = "md", disabled: x, invalid: S, leading: C, filter: le = v, onCreate: w, createLabel: ue = (e) => g(m, { children: [
56
56
  "‘",
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
57
+ h("strong", { children: e }),
58
+ d(263)
59
+ ] }), emptyText: de, highlight: fe = !0, renderOption: T, maxHeight: E, id: D, className: pe, "aria-label": O, "aria-labelledby": me } = u, k = ie() + "-list", A = i(u.multiple ? {
60
+ type: d(238),
61
+ value: u[d(260)],
62
+ defaultValue: u[d(237)],
63
+ onValueChange: u[d(253)]
64
64
  } : {
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 = () => {
65
+ type: d(219),
66
+ value: u[d(260)],
67
+ defaultValue: u[d(237)],
68
+ onValueChange: u[d(253)]
69
+ }), j = A[d(238)], [M, N] = n(u[d(248)], "", u.onInputChange), [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 = ae(() => new Map(f[d(199)]((e) => [e[d(260)], e])), [f]), W = A[d(221)][d(199)]((e) => he[d(250)](e)).filter((e) => !!e), G = j || P, K = G ? M.trim() : "", q = K ? f[d(259)]((e) => le(e, K)) : f, J = !!w && !!K && !f[d(246)]((e) => _(e[d(231)]) === _(K)), Y = J ? [...q, { disabled: !1 }] : q, X = () => {
70
70
  L(!1), F(!1), j || N("");
71
71
  };
72
- s(I, [V, U], X);
73
- let Z = (e = ne(Y)) => {
74
- b || (B(e), L(!0));
72
+ a(I, [V, U], X);
73
+ let Z = (e = te(Y)) => {
74
+ x || (B(e), L(!0));
75
75
  }, 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()));
76
+ let t = d;
77
+ e[t(251)] || (j ? (A.toggle(e.value), N(""), H.current?.[t(217)]()) : (A[t(205)]([e[t(260)]]), X()));
78
78
  }, $ = () => {
79
- C?.(K), N(""), j || X();
79
+ w?.(K), N(""), j || X();
80
80
  }, ge = J ? {
81
- label: de(K),
82
- icon: m(ce, {}),
81
+ label: ue(K),
82
+ icon: h(se, {}),
83
83
  onSelect: $
84
84
  } : void 0, _e = () => {
85
- z < 0 || (z < q[a(165)] ? Q(q[z]) : J && $());
85
+ z < 0 || (z < q.length ? Q(q[z]) : J && $());
86
86
  }, 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();
87
+ let t = d;
88
+ if (!e[t(218)].isComposing) switch (e[t(233)]) {
89
+ case t(243):
90
+ e[t(257)](), I ? B(s(Y, z, 1)) : Z();
91
91
  break;
92
- case t(171):
93
- e[t(193)](), I ? B(c(Y, z, -1)) : Z(re(Y));
92
+ case t(228):
93
+ e[t(257)](), I ? B(s(Y, z, -1)) : Z(ne(Y));
94
94
  break;
95
- case t(148):
96
- I && (e[t(193)](), _e());
95
+ case t(235):
96
+ I && (e.preventDefault(), _e());
97
97
  break;
98
- case "Escape":
99
- (I || P) && (e[t(193)](), X());
98
+ case t(211):
99
+ (I || P) && (e[t(257)](), X());
100
100
  break;
101
- case t(167):
102
- j && !M && W[t(165)] && A[t(169)](W[W[t(165)] - 1][t(147)]);
101
+ case "Backspace":
102
+ j && !M && W[t(252)] && A[t(207)](W[W[t(252)] - 1][t(260)]);
103
103
  break;
104
- case t(159): I && X();
104
+ case t(209): I && X();
105
105
  }
106
- }, ye = G ? M : W[0]?.[a(134)] ?? "";
107
- return h(p, { children: [h(a(153), {
106
+ }, ye = G ? M : W[0]?.[d(231)] ?? "";
107
+ return g(m, { children: [g(d(223), {
108
108
  ref: V,
109
- className: i(a(185), a(184), y !== "md" && a(168) + y, j && a(177), E),
109
+ className: r(d(215), d(226), b !== "md" && "ds-combobox--" + b, j && "ds-combobox--multiple", pe),
110
110
  "data-open": I || void 0,
111
- "data-invalid": x || void 0,
112
- "data-disabled": b || void 0,
111
+ "data-invalid": S || void 0,
112
+ "data-disabled": x || void 0,
113
113
  onPointerDown: (e) => {
114
- let t = a;
115
- b || e.target === H[t(155)] || (e.preventDefault(), H[t(155)]?.[t(187)](), I || Z());
114
+ let t = d;
115
+ x || e[t(232)] === H[t(203)] || (e.preventDefault(), H[t(203)]?.focus(), I || Z());
116
116
  },
117
117
  children: [
118
- S && m(a(149), {
119
- className: a(194),
120
- children: S
118
+ C && h(d(225), {
119
+ className: "ds-combobox__icon",
120
+ children: C
121
121
  }),
122
- j && W[a(142)]((e) => h("span", {
123
- className: a(176),
124
- children: [e[a(134)], m("button", {
125
- type: a(183),
122
+ j && W.map((e) => g(d(225), {
123
+ className: d(241),
124
+ children: [e.label, h("button", {
125
+ type: d(234),
126
126
  tabIndex: -1,
127
- "aria-label": e[a(134)] + a(175),
128
- disabled: b,
129
- onPointerDown: (e) => e.stopPropagation(),
130
- onClick: () => A[a(169)](e[a(147)]),
131
- children: m(f, {})
127
+ "aria-label": e[d(231)] + d(240),
128
+ disabled: x,
129
+ onPointerDown: (e) => e[d(208)](),
130
+ onClick: () => A.toggle(e[d(260)]),
131
+ children: h(p, {})
132
132
  })]
133
- }, e[a(147)])),
134
- m(a(170), {
133
+ }, e.value)),
134
+ h("input", {
135
135
  ref: H,
136
- id: me,
137
- role: a(186),
136
+ id: D,
137
+ role: d(196),
138
138
  "aria-expanded": I,
139
139
  "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,
140
+ "aria-autocomplete": d(255),
141
+ "aria-activedescendant": I && z >= 0 ? re(k, z) : void 0,
142
+ "aria-invalid": S || void 0,
143
+ "aria-label": O,
144
+ "aria-labelledby": me,
145
+ autoComplete: d(254),
146
+ disabled: x,
147
+ className: d(247),
148
+ placeholder: j && W[d(252)] ? "" : y,
149
149
  value: ye,
150
150
  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);
151
+ let t = d;
152
+ N(e[t(232)][t(260)]), F(!0), L(!0), B(e[t(232)][t(260)].trim() ? 0 : -1);
153
153
  },
154
154
  onFocus: () => !I && Z(-1),
155
155
  onClick: () => !I && Z(-1),
156
156
  onBlur: () => X(),
157
157
  onKeyDown: ve
158
158
  }),
159
- !j && W[a(165)] > 0 && !P && !b && m(a(183), {
160
- type: "button",
159
+ !j && W[d(252)] > 0 && !P && !x && h(d(234), {
160
+ type: d(234),
161
161
  tabIndex: -1,
162
- className: a(181),
163
- "aria-label": "선택 해제",
162
+ className: d(249),
163
+ "aria-label": d(224),
164
164
  onPointerDown: (e) => {
165
- e[a(193)](), e.stopPropagation();
165
+ let t = d;
166
+ e[t(257)](), e[t(208)]();
166
167
  },
167
- onClick: () => A.clear(),
168
- children: m(f, {})
168
+ onClick: () => A[d(198)](),
169
+ children: h(p, {})
169
170
  }),
170
- m(se, { className: a(136) })
171
+ h(oe, { className: "ds-combobox__chevron" })
171
172
  ]
172
- }), R.mounted && m(te, {
173
+ }), R[d(244)] && h(o, {
173
174
  ref: U,
174
- closing: R[a(190)],
175
+ closing: R.closing,
175
176
  anchorRef: V,
176
- maxHeight: T,
177
- children: m(ee, {
177
+ maxHeight: E,
178
+ children: h(ee, {
178
179
  id: k,
179
180
  options: q,
180
181
  activeIndex: z,
181
- isSelected: A[a(141)],
182
+ isSelected: A.isSelected,
182
183
  onSelect: Q,
183
184
  onActiveChange: B,
184
185
  multiple: j,
185
186
  action: ge,
186
- emptyText: fe,
187
- "aria-label": D,
188
- renderOption: w ? (e, t) => w(e, {
187
+ emptyText: de,
188
+ "aria-label": O,
189
+ renderOption: T ? (e, t) => T(e, {
189
190
  ...t,
190
191
  query: K
191
- }) : pe && K ? (e, t) => m(le, {
192
+ }) : fe && K ? (e, t) => h(ce, {
192
193
  option: e,
193
194
  state: t,
194
195
  query: K,
@@ -197,32 +198,32 @@ function y(r) {
197
198
  })
198
199
  })] });
199
200
  }
200
- function le({ option: t, state: n, query: r, multiple: i }) {
201
+ function ce({ option: t, state: n, query: r, multiple: i }) {
201
202
  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, {})
203
+ return g(m, { children: [
204
+ i && h("span", {
205
+ className: a(261),
206
+ "data-checked": n[a(221)] || void 0,
207
+ children: h(f, {})
207
208
  }),
208
- t[a(151)] && m(a(149), {
209
- className: "ds-option__icon",
210
- children: t[a(151)]
209
+ t.icon && h(a(225), {
210
+ className: a(201),
211
+ children: t[a(204)]
211
212
  }),
212
- h(a(149), {
213
+ g("span", {
213
214
  className: "ds-option__text",
214
- children: [m("span", {
215
- className: "ds-option__label",
216
- children: m(v, {
217
- text: t[a(134)],
215
+ children: [h(a(225), {
216
+ className: a(239),
217
+ children: h(y, {
218
+ text: t[a(231)],
218
219
  query: r
219
220
  })
220
- }), t[a(191)] && m(a(149), {
221
- className: a(163),
222
- children: t[a(191)]
221
+ }), t[a(213)] && h(a(225), {
222
+ className: a(229),
223
+ children: t[a(213)]
223
224
  })]
224
225
  }),
225
- !i && n[a(146)] && m(d, { className: a(178) })
226
+ !i && n[a(221)] && h(f, { className: a(202) })
226
227
  ] });
227
228
  }
228
- export { y as Combobox, _ as defaultComboboxFilter };
229
+ export { b as Combobox, v as defaultComboboxFilter };