@iamfiro/design 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/lib/components/Accordion/Accordion2.js +86 -86
  2. package/lib/components/ActionBar/ActionBar2.js +44 -43
  3. package/lib/components/Alert/Alert2.js +79 -79
  4. package/lib/components/AppShell/AppShell2.js +58 -58
  5. package/lib/components/AreaChart/AreaChart.js +41 -41
  6. package/lib/components/BarChart/BarChart2.js +110 -110
  7. package/lib/components/BarList/BarList2.js +95 -95
  8. package/lib/components/Breadcrumb/Breadcrumb2.js +62 -59
  9. package/lib/components/Calendar/Calendar2.js +202 -202
  10. package/lib/components/Calendar/DatePicker2.js +122 -123
  11. package/lib/components/Calendar/date.js +57 -60
  12. package/lib/components/Card/Card2.js +62 -63
  13. package/lib/components/CardFrame/CardFrame2.js +43 -48
  14. package/lib/components/Chart/ChartParts.js +80 -80
  15. package/lib/components/Chart/chart2.js +57 -57
  16. package/lib/components/Chart/useChartInteraction.js +49 -49
  17. package/lib/components/ChatBubble/ChatBubble2.js +87 -87
  18. package/lib/components/ChatBubble/formatChatTime.js +34 -39
  19. package/lib/components/ChatComposer/ChatComposer2.js +97 -97
  20. package/lib/components/CodeBlock/CodeBlock2.js +60 -60
  21. package/lib/components/CodeBlock/highlight.js +75 -78
  22. package/lib/components/ColorPicker/ColorPicker2.js +383 -384
  23. package/lib/components/ColorPicker/color.js +74 -74
  24. package/lib/components/ColorPicker/presets.js +41 -46
  25. package/lib/components/Combobox/Combobox2.js +130 -131
  26. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  27. package/lib/components/Comment/Comment2.js +64 -88
  28. package/lib/components/ContextMenu/ContextMenu2.js +87 -87
  29. package/lib/components/DataGrid/DataGrid2.js +911 -909
  30. package/lib/components/DataGrid/GridPopover.js +114 -114
  31. package/lib/components/DataGrid/anchor.js +25 -25
  32. package/lib/components/DataGrid/model.js +281 -282
  33. package/lib/components/DataGrid/panels.js +427 -429
  34. package/lib/components/DataGrid/typeMeta.js +50 -51
  35. package/lib/components/DataGrid/types.js +39 -40
  36. package/lib/components/DescriptionList/DescriptionList2.js +104 -104
  37. package/lib/components/Dialog/AlertDialog.js +85 -84
  38. package/lib/components/Dialog/Dialog2.js +72 -71
  39. package/lib/components/Dialog/modal.js +68 -68
  40. package/lib/components/Drawer/Drawer2.js +100 -100
  41. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -268
  42. package/lib/components/DropdownMenu/menuCore.js +36 -36
  43. package/lib/components/Dropzone/Dropzone2.js +66 -65
  44. package/lib/components/EmptyState/EmptyState2.js +52 -54
  45. package/lib/components/FileChip/FileChip2.js +42 -66
  46. package/lib/components/FileUpload/FileUpload.js +171 -170
  47. package/lib/components/FilterChips/FilterChips2.js +54 -54
  48. package/lib/components/FunnelChart/FunnelChart2.js +144 -144
  49. package/lib/components/FunnelChart/funnel.js +56 -53
  50. package/lib/components/Highlight/Highlight2.js +60 -60
  51. package/lib/components/HoverCard/HoverCard.js +72 -72
  52. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  53. package/lib/components/InlineDiff/diff.js +81 -81
  54. package/lib/components/InlineDiff/useDiffReview.js +54 -53
  55. package/lib/components/Kanban/Kanban2.js +372 -372
  56. package/lib/components/Kanban/KanbanCard.js +80 -80
  57. package/lib/components/Kanban/move.js +55 -55
  58. package/lib/components/LineChart/LineChart2.js +167 -167
  59. package/lib/components/List/List2.js +64 -65
  60. package/lib/components/Listbox/Listbox2.js +105 -105
  61. package/lib/components/Marker/Marker2.js +54 -54
  62. package/lib/components/Menubar/Menubar2.js +112 -113
  63. package/lib/components/MultiSelect/MultiSelect2.js +106 -106
  64. package/lib/components/NavigationMenu/NavigationMenu2.js +227 -227
  65. package/lib/components/NoticeStack/NoticeStack2.js +115 -115
  66. package/lib/components/NumberStepper/NumberStepper2.js +69 -70
  67. package/lib/components/OtpInput/OtpInput2.js +87 -87
  68. package/lib/components/Pagination/Pagination2.js +97 -97
  69. package/lib/components/Pagination/paginationRange.js +23 -24
  70. package/lib/components/PhoneInput/PhoneInput.js +85 -85
  71. package/lib/components/PieChart/PieChart2.js +116 -116
  72. package/lib/components/PieChart/arc.js +80 -56
  73. package/lib/components/PieChart/useArcTween.js +57 -59
  74. package/lib/components/Popover/Popover2.js +59 -60
  75. package/lib/components/ProgressTracker/ProgressTracker2.js +116 -116
  76. package/lib/components/Rating/Rating2.js +93 -93
  77. package/lib/components/Resizable/Resizable2.js +136 -134
  78. package/lib/components/Resizable/layout.js +73 -73
  79. package/lib/components/ScaledPreview/ScaledPreview2.js +57 -58
  80. package/lib/components/ScatterChart/ScatterChart2.js +252 -253
  81. package/lib/components/ScatterChart/scatter.js +58 -56
  82. package/lib/components/ScrollArea/ScrollArea2.js +133 -134
  83. package/lib/components/Select/Select2.js +89 -89
  84. package/lib/components/Sidebar/Sidebar2.js +76 -76
  85. package/lib/components/Skeleton/Skeleton2.js +67 -67
  86. package/lib/components/Slider/Slider2.js +67 -67
  87. package/lib/components/SocialLoginButton/SocialLoginButton.js +46 -47
  88. package/lib/components/SparkChart/SparkChart2.js +130 -130
  89. package/lib/components/SparkChart/spark.js +57 -62
  90. package/lib/components/Sparkbar/Sparkbar2.js +44 -44
  91. package/lib/components/SplitView/SplitView2.js +53 -53
  92. package/lib/components/Stat/Stat2.js +83 -83
  93. package/lib/components/StepList/StepList2.js +73 -73
  94. package/lib/components/Table/Table2.js +45 -45
  95. package/lib/components/Tabs/Tabs2.js +87 -87
  96. package/lib/components/TagInput/TagInput2.js +231 -234
  97. package/lib/components/TimePicker/TimePicker2.js +195 -195
  98. package/lib/components/TimePicker/time.js +60 -62
  99. package/lib/components/Timeline/Timeline2.js +199 -199
  100. package/lib/components/Timeline/scale.js +56 -58
  101. package/lib/components/Toast/Toaster.js +153 -152
  102. package/lib/components/Toast/store.js +57 -58
  103. package/lib/components/ToggleGroup/ToggleGroup2.js +74 -74
  104. package/lib/components/Toolbar/Toolbar2.js +135 -133
  105. package/lib/components/Tracker/Tracker2.js +83 -83
  106. package/lib/components/TreeDiagram/TreeDiagram2.js +103 -103
  107. package/lib/components/TreeView/TreeView2.js +165 -163
  108. package/lib/hooks/timing.js +33 -31
  109. package/lib/hooks/useControllableState.js +42 -42
  110. package/lib/hooks/useCountdown.js +58 -63
  111. package/lib/hooks/useDigitInput.js +75 -77
  112. package/lib/hooks/useDismiss.js +50 -52
  113. package/lib/hooks/useElapsed.js +58 -56
  114. package/lib/hooks/useFloating.js +44 -44
  115. package/lib/hooks/useFocusTrap.js +64 -40
  116. package/lib/hooks/usePresence.js +48 -50
  117. package/lib/hooks/usePressToOpen.js +52 -51
  118. package/lib/hooks/useScrollLock.js +49 -48
  119. package/lib/hooks/useSelection.js +37 -40
  120. package/lib/index.js +70 -69
  121. package/lib/primitives/AspectRatio2.js +50 -54
  122. package/lib/primitives/BrandIcon.js +153 -153
  123. package/lib/primitives/ColorDot2.js +49 -48
  124. package/lib/primitives/CopyButton2.js +59 -58
  125. package/lib/primitives/CountBadge2.js +57 -55
  126. package/lib/primitives/Countdown2.js +45 -49
  127. package/lib/primitives/Delta2.js +71 -46
  128. package/lib/primitives/Elapsed.js +43 -43
  129. package/lib/primitives/FileIcon2.js +93 -93
  130. package/lib/primitives/Flag2.js +95 -95
  131. package/lib/primitives/IconStack2.js +55 -55
  132. package/lib/primitives/IconTile2.js +46 -45
  133. package/lib/primitives/Kbd2.js +55 -55
  134. package/lib/primitives/Layout2.js +80 -80
  135. package/lib/primitives/Link2.js +36 -34
  136. package/lib/primitives/MaskedText2.js +65 -64
  137. package/lib/primitives/Progress2.js +80 -80
  138. package/lib/primitives/RelativeTime.js +52 -54
  139. package/lib/primitives/SearchInput2.js +55 -54
  140. package/lib/primitives/SelectorButton2.js +64 -65
  141. package/lib/primitives/Spinner2.js +55 -59
  142. package/lib/primitives/StatusIcon2.js +65 -65
  143. package/lib/primitives/Swatch2.js +50 -50
  144. package/lib/primitives/Tooltip2.js +85 -85
  145. package/lib/primitives/Typography2.js +66 -66
  146. package/lib/primitives/formatCountdown.js +43 -40
  147. package/lib/primitives/formatElapsed.js +24 -27
  148. package/lib/primitives/formatRelativeTime.js +43 -43
  149. package/lib/primitives/hotkey.js +71 -71
  150. package/lib/primitives/index.js +156 -157
  151. package/lib/primitives/maskValue.js +38 -34
  152. package/lib/style.css +1 -1
  153. package/package.json +1 -1
@@ -1,195 +1,194 @@
1
1
  "use client";
2
- const e = i;
2
+ const e = r;
3
3
  (function(e, t) {
4
- let n = i, r = e();
4
+ let n = r, i = e();
5
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());
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());
8
8
  } catch {
9
- r.push(r.shift());
9
+ i.push(i.shift());
10
10
  }
11
- })(h, 306184);
11
+ })(a, 967689);
12
12
  import { usePresence as t } from "../../hooks/usePresence.js";
13
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) {
14
+ function r(e, t) {
15
+ e -= 134;
16
+ let n = a(), i = n[e];
17
+ r.szlFZZ === void 0 && (r.wyJLAW = function(e) {
19
18
  let t = "", n = "";
20
19
  for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
21
20
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
22
21
  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;
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
27
  }
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() {
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() {
39
32
  return e;
40
- }, h();
33
+ }, a();
41
34
  }
42
- var g = (t) => t[e(345)]().replace(/\s+/g, ""), _ = (t, n) => {
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
43
  let r = e, i = g(n);
44
- return [t[r(318)], ...t.keywords ?? []][r(370)]((e) => g(e)[r(343)](i));
44
+ return [t[r(134)], ...t[r(197)] ?? []][r(188)]((e) => g(e)[r(189)](i));
45
45
  };
46
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)])
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)])
52
52
  ] });
53
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: [
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: [
56
56
  "‘",
57
- p(u(347), { children: e }),
57
+ m(a(192), { children: e }),
58
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
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
64
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 = () => {
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 = () => {
70
70
  L(!1), F(!1), j || N("");
71
71
  };
72
- o(I, [V, U], X);
72
+ s(I, [V, U], X);
73
73
  let Z = (e = ne(Y)) => {
74
- x || (B(e), L(!0));
74
+ b || (B(e), L(!0));
75
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()));
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()));
78
78
  }, $ = () => {
79
- w?.(K), N(""), j || X();
79
+ C?.(K), N(""), j || X();
80
80
  }, ge = J ? {
81
- label: ue(K),
82
- icon: p(ce, {}),
81
+ label: de(K),
82
+ icon: m(ce, {}),
83
83
  onSelect: $
84
84
  } : void 0, _e = () => {
85
- z < 0 || (z < q[u(338)] ? Q(q[z]) : J && $());
85
+ z < 0 || (z < q[a(165)] ? Q(q[z]) : J && $());
86
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();
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();
91
91
  break;
92
- case t(317):
93
- e.preventDefault(), I ? B(s(Y, z, -1)) : Z(re(Y));
92
+ case t(171):
93
+ e[t(193)](), I ? B(c(Y, z, -1)) : Z(re(Y));
94
94
  break;
95
- case "Enter":
96
- I && (e.preventDefault(), _e());
95
+ case t(148):
96
+ I && (e[t(193)](), _e());
97
97
  break;
98
- case t(333):
99
- (I || P) && (e[t(356)](), X());
98
+ case "Escape":
99
+ (I || P) && (e[t(193)](), X());
100
100
  break;
101
- case t(377):
102
- j && !M && W[t(338)] && A.toggle(W[W[t(338)] - 1][t(322)]);
101
+ case t(167):
102
+ j && !M && W[t(165)] && A[t(169)](W[W[t(165)] - 1][t(147)]);
103
103
  break;
104
- case t(328): I && X();
104
+ case t(159): I && X();
105
105
  }
106
- }, ye = G ? M : W[0]?.[u(318)] ?? "";
107
- return m(f, { children: [m(u(376), {
106
+ }, ye = G ? M : W[0]?.[a(134)] ?? "";
107
+ return h(p, { children: [h(a(153), {
108
108
  ref: V,
109
- className: r(u(320), u(323), y !== "md" && u(371) + y, j && u(341), me),
109
+ className: i(a(185), a(184), y !== "md" && a(168) + y, j && a(177), E),
110
110
  "data-open": I || void 0,
111
- "data-invalid": S || void 0,
112
- "data-disabled": x || void 0,
111
+ "data-invalid": x || void 0,
112
+ "data-disabled": b || void 0,
113
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());
114
+ let t = a;
115
+ b || e.target === H[t(155)] || (e.preventDefault(), H[t(155)]?.[t(187)](), I || Z());
116
116
  },
117
117
  children: [
118
- C && p(u(372), {
119
- className: "ds-combobox__icon",
120
- children: C
118
+ S && m(a(149), {
119
+ className: a(194),
120
+ children: S
121
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",
122
+ j && W[a(142)]((e) => h("span", {
123
+ className: a(176),
124
+ children: [e[a(134)], m("button", {
125
+ type: a(183),
126
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, {})
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, {})
132
132
  })]
133
- }, e[u(322)])),
134
- p(u(361), {
133
+ }, e[a(147)])),
134
+ m(a(170), {
135
135
  ref: H,
136
- id: pe,
137
- role: u(314),
136
+ id: me,
137
+ role: a(186),
138
138
  "aria-expanded": I,
139
139
  "aria-controls": I ? k : void 0,
140
- "aria-autocomplete": u(352),
140
+ "aria-autocomplete": a(173),
141
141
  "aria-activedescendant": I && z >= 0 ? ie(k, z) : void 0,
142
- "aria-invalid": S || void 0,
142
+ "aria-invalid": x || void 0,
143
143
  "aria-label": D,
144
144
  "aria-labelledby": O,
145
- autoComplete: u(374),
146
- disabled: x,
145
+ autoComplete: a(137),
146
+ disabled: b,
147
147
  className: "ds-combobox__input",
148
- placeholder: j && W[u(338)] ? "" : v,
148
+ placeholder: j && W[a(165)] ? "" : v,
149
149
  value: ye,
150
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);
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);
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.length > 0 && !P && !x && p("button", {
159
+ !j && W[a(165)] > 0 && !P && !b && m(a(183), {
160
160
  type: "button",
161
161
  tabIndex: -1,
162
- className: "ds-combobox__clear",
163
- "aria-label": u(310),
162
+ className: a(181),
163
+ "aria-label": "선택 해제",
164
164
  onPointerDown: (e) => {
165
- let t = u;
166
- e[t(356)](), e[t(351)]();
165
+ e[a(193)](), e.stopPropagation();
167
166
  },
168
167
  onClick: () => A.clear(),
169
- children: p(d, {})
168
+ children: m(f, {})
170
169
  }),
171
- p(se, { className: u(315) })
170
+ m(se, { className: a(136) })
172
171
  ]
173
- }), R[u(367)] && p(te, {
172
+ }), R.mounted && m(te, {
174
173
  ref: U,
175
- closing: R[u(327)],
174
+ closing: R[a(190)],
176
175
  anchorRef: V,
177
- maxHeight: fe,
178
- children: p(ee, {
176
+ maxHeight: T,
177
+ children: m(ee, {
179
178
  id: k,
180
179
  options: q,
181
180
  activeIndex: z,
182
- isSelected: A[u(313)],
181
+ isSelected: A[a(141)],
183
182
  onSelect: Q,
184
183
  onActiveChange: B,
185
184
  multiple: j,
186
185
  action: ge,
187
- emptyText: de,
186
+ emptyText: fe,
188
187
  "aria-label": D,
189
- renderOption: E ? (e, t) => E(e, {
188
+ renderOption: w ? (e, t) => w(e, {
190
189
  ...t,
191
190
  query: K
192
- }) : T && K ? (e, t) => p(b, {
191
+ }) : pe && K ? (e, t) => m(le, {
193
192
  option: e,
194
193
  state: t,
195
194
  query: K,
@@ -198,32 +197,32 @@ function y(i) {
198
197
  })
199
198
  })] });
200
199
  }
201
- function b({ option: t, state: n, query: r, multiple: i }) {
200
+ function le({ option: t, state: n, query: r, multiple: i }) {
202
201
  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, {})
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, {})
208
207
  }),
209
- t[a(346)] && p(a(372), {
210
- className: a(329),
211
- children: t[a(346)]
208
+ t[a(151)] && m(a(149), {
209
+ className: "ds-option__icon",
210
+ children: t[a(151)]
212
211
  }),
213
- m(a(372), {
212
+ h(a(149), {
214
213
  className: "ds-option__text",
215
- children: [p("span", {
216
- className: a(340),
217
- children: p(v, {
218
- text: t[a(318)],
214
+ children: [m("span", {
215
+ className: "ds-option__label",
216
+ children: m(v, {
217
+ text: t[a(134)],
219
218
  query: r
220
219
  })
221
- }), t[a(348)] && p(a(372), {
222
- className: a(332),
223
- children: t.description
220
+ }), t[a(191)] && m(a(149), {
221
+ className: a(163),
222
+ children: t[a(191)]
224
223
  })]
225
224
  }),
226
- !i && n[a(342)] && p(u, { className: a(363) })
225
+ !i && n[a(146)] && m(d, { className: a(178) })
227
226
  ] });
228
227
  }
229
228
  export { y as Combobox, _ as defaultComboboxFilter };