@iamfiro/design 0.3.2 → 0.3.5

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 (163) hide show
  1. package/agents/INDEX.md +1 -1
  2. package/agents/app-shell/AGENTS.md +99 -1
  3. package/agents/brand-icon/AGENTS.md +1 -1
  4. package/agents/social-login-button/AGENTS.md +4 -3
  5. package/lib/components/Accordion/Accordion2.js +74 -74
  6. package/lib/components/ActionBar/ActionBar2.js +44 -42
  7. package/lib/components/Alert/Alert2.js +67 -67
  8. package/lib/components/AppShell/AppShell2.js +72 -66
  9. package/lib/components/AreaChart/AreaChart.js +45 -45
  10. package/lib/components/BarChart/BarChart2.js +128 -128
  11. package/lib/components/BarList/BarList2.js +105 -105
  12. package/lib/components/Breadcrumb/Breadcrumb2.js +63 -64
  13. package/lib/components/Calendar/Calendar2.js +197 -197
  14. package/lib/components/Calendar/DatePicker2.js +100 -100
  15. package/lib/components/Calendar/date.js +47 -70
  16. package/lib/components/Card/Card2.js +101 -74
  17. package/lib/components/CardFrame/CardFrame2.js +52 -56
  18. package/lib/components/Chart/ChartParts.js +88 -88
  19. package/lib/components/Chart/chart2.js +63 -63
  20. package/lib/components/Chart/useChartInteraction.js +43 -43
  21. package/lib/components/ChatBubble/ChatBubble2.js +111 -111
  22. package/lib/components/ChatBubble/formatChatTime.js +38 -43
  23. package/lib/components/ChatComposer/ChatComposer2.js +96 -96
  24. package/lib/components/CodeBlock/CodeBlock2.js +65 -65
  25. package/lib/components/CodeBlock/highlight.js +84 -84
  26. package/lib/components/ColorPicker/ColorPicker2.js +263 -263
  27. package/lib/components/ColorPicker/color.js +92 -92
  28. package/lib/components/ColorPicker/presets.js +35 -39
  29. package/lib/components/Combobox/Combobox2.js +134 -134
  30. package/lib/components/CommandMenu/CommandMenu.js +130 -131
  31. package/lib/components/Comment/Comment2.js +64 -63
  32. package/lib/components/ContextMenu/ContextMenu2.js +84 -84
  33. package/lib/components/DataGrid/DataGrid2.js +1182 -1180
  34. package/lib/components/DataGrid/GridPopover.js +84 -84
  35. package/lib/components/DataGrid/anchor.js +29 -28
  36. package/lib/components/DataGrid/model.js +308 -307
  37. package/lib/components/DataGrid/panels.js +398 -399
  38. package/lib/components/DataGrid/typeMeta.js +41 -40
  39. package/lib/components/DataGrid/types.js +39 -40
  40. package/lib/components/DescriptionList/DescriptionList2.js +105 -105
  41. package/lib/components/Dialog/AlertDialog.js +90 -89
  42. package/lib/components/Dialog/Dialog2.js +71 -72
  43. package/lib/components/Dialog/modal.js +62 -60
  44. package/lib/components/Drawer/Drawer2.js +167 -166
  45. package/lib/components/DropdownMenu/DropdownMenu2.js +260 -258
  46. package/lib/components/DropdownMenu/menuCore.js +29 -28
  47. package/lib/components/Dropzone/Dropzone2.js +78 -77
  48. package/lib/components/EmptyState/EmptyState2.js +57 -57
  49. package/lib/components/FileChip/FileChip2.js +53 -77
  50. package/lib/components/FileUpload/FileUpload.js +168 -167
  51. package/lib/components/FilterChips/FilterChips2.js +60 -60
  52. package/lib/components/FunnelChart/FunnelChart2.js +174 -174
  53. package/lib/components/FunnelChart/funnel.js +44 -42
  54. package/lib/components/Highlight/Highlight2.js +55 -55
  55. package/lib/components/HoverCard/HoverCard.js +71 -96
  56. package/lib/components/InlineDiff/InlineDiff2.js +128 -129
  57. package/lib/components/InlineDiff/diff.js +79 -79
  58. package/lib/components/InlineDiff/useDiffReview.js +61 -62
  59. package/lib/components/Kanban/Kanban2.js +387 -389
  60. package/lib/components/Kanban/KanbanCard.js +84 -84
  61. package/lib/components/Kanban/move.js +32 -25
  62. package/lib/components/LineChart/LineChart2.js +228 -228
  63. package/lib/components/List/List2.js +62 -62
  64. package/lib/components/Listbox/Listbox2.js +92 -92
  65. package/lib/components/Marker/Marker2.js +50 -56
  66. package/lib/components/Menubar/Menubar2.js +117 -116
  67. package/lib/components/MultiSelect/MultiSelect2.js +111 -111
  68. package/lib/components/NavigationMenu/NavigationMenu2.js +231 -231
  69. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  70. package/lib/components/NumberStepper/NumberStepper2.js +60 -60
  71. package/lib/components/OtpInput/OtpInput2.js +90 -89
  72. package/lib/components/Pagination/Pagination2.js +105 -105
  73. package/lib/components/Pagination/paginationRange.js +37 -37
  74. package/lib/components/PhoneInput/PhoneInput.js +75 -76
  75. package/lib/components/PieChart/PieChart2.js +166 -166
  76. package/lib/components/PieChart/arc.js +71 -69
  77. package/lib/components/PieChart/useArcTween.js +60 -62
  78. package/lib/components/Popover/Popover2.js +85 -86
  79. package/lib/components/ProgressTracker/ProgressTracker2.js +134 -134
  80. package/lib/components/Rating/Rating2.js +90 -89
  81. package/lib/components/Resizable/Resizable2.js +128 -129
  82. package/lib/components/Resizable/layout.js +51 -51
  83. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -48
  84. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  85. package/lib/components/ScatterChart/scatter.js +49 -52
  86. package/lib/components/ScrollArea/ScrollArea2.js +115 -117
  87. package/lib/components/Select/Select2.js +82 -82
  88. package/lib/components/Sidebar/Sidebar2.js +91 -85
  89. package/lib/components/Sidebar/rail.js +43 -0
  90. package/lib/components/Skeleton/Skeleton2.js +63 -64
  91. package/lib/components/Slider/Slider2.js +65 -66
  92. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -69
  93. package/lib/components/SparkChart/SparkChart2.js +126 -127
  94. package/lib/components/SparkChart/spark.js +66 -42
  95. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  96. package/lib/components/SplitView/SplitView2.js +51 -51
  97. package/lib/components/Stat/Stat2.js +79 -79
  98. package/lib/components/StepList/StepList2.js +75 -75
  99. package/lib/components/Table/Table2.js +71 -71
  100. package/lib/components/Tabs/Tabs2.js +74 -74
  101. package/lib/components/TagInput/TagInput2.js +223 -221
  102. package/lib/components/TimePicker/TimePicker2.js +197 -195
  103. package/lib/components/TimePicker/time.js +59 -56
  104. package/lib/components/Timeline/Timeline2.js +195 -195
  105. package/lib/components/Timeline/scale.js +64 -66
  106. package/lib/components/Toast/Toaster.js +139 -139
  107. package/lib/components/Toast/store.js +72 -76
  108. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  109. package/lib/components/Toolbar/Toolbar2.js +165 -164
  110. package/lib/components/Tracker/Tracker2.js +72 -72
  111. package/lib/components/TreeDiagram/TreeDiagram2.js +96 -97
  112. package/lib/components/TreeView/TreeView2.js +152 -151
  113. package/lib/hooks/timing.js +34 -36
  114. package/lib/hooks/useControllableState.js +29 -30
  115. package/lib/hooks/useCountdown.js +51 -53
  116. package/lib/hooks/useDigitInput.js +81 -55
  117. package/lib/hooks/useDismiss.js +53 -56
  118. package/lib/hooks/useElapsed.js +48 -49
  119. package/lib/hooks/useFloating.js +36 -36
  120. package/lib/hooks/useFocusTrap.js +32 -32
  121. package/lib/hooks/usePresence.js +49 -49
  122. package/lib/hooks/usePressToOpen.js +40 -40
  123. package/lib/hooks/useScrollLock.js +50 -49
  124. package/lib/hooks/useSelection.js +42 -47
  125. package/lib/index.js +138 -139
  126. package/lib/primitives/AspectRatio2.js +58 -57
  127. package/lib/primitives/BrandIcon.js +210 -179
  128. package/lib/primitives/ColorDot2.js +42 -41
  129. package/lib/primitives/CopyButton2.js +59 -58
  130. package/lib/primitives/CountBadge2.js +58 -63
  131. package/lib/primitives/Countdown2.js +38 -37
  132. package/lib/primitives/Delta2.js +37 -37
  133. package/lib/primitives/Elapsed.js +42 -40
  134. package/lib/primitives/FileIcon2.js +102 -102
  135. package/lib/primitives/Flag2.js +124 -124
  136. package/lib/primitives/IconStack2.js +45 -23
  137. package/lib/primitives/IconTile2.js +45 -41
  138. package/lib/primitives/Kbd2.js +48 -48
  139. package/lib/primitives/Layout2.js +71 -71
  140. package/lib/primitives/Link2.js +40 -42
  141. package/lib/primitives/MaskedText2.js +50 -50
  142. package/lib/primitives/Progress2.js +78 -77
  143. package/lib/primitives/RelativeTime.js +55 -58
  144. package/lib/primitives/SearchInput2.js +72 -68
  145. package/lib/primitives/SelectorButton2.js +60 -61
  146. package/lib/primitives/Spinner2.js +48 -49
  147. package/lib/primitives/StatusIcon2.js +69 -69
  148. package/lib/primitives/Swatch2.js +65 -69
  149. package/lib/primitives/Tooltip2.js +92 -92
  150. package/lib/primitives/Typography2.js +37 -37
  151. package/lib/primitives/formatCountdown.js +38 -38
  152. package/lib/primitives/formatElapsed.js +43 -45
  153. package/lib/primitives/formatRelativeTime.js +54 -54
  154. package/lib/primitives/hotkey.js +77 -77
  155. package/lib/primitives/index.js +162 -161
  156. package/lib/primitives/maskValue.js +54 -51
  157. package/lib/style.css +1 -1
  158. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  159. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  160. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  161. package/lib/types/components/index.d.ts +1 -0
  162. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  163. package/package.json +1 -1
@@ -1,195 +1,195 @@
1
1
  "use client";
2
- const e = d;
3
- (function(e, t) {
4
- let n = d, r = e();
2
+ const e = t;
3
+ function t(e, n) {
4
+ e -= 306;
5
+ let r = d(), i = r[e];
6
+ t.oPmFvI === void 0 && (t.lKouTI = function(e) {
7
+ let t = "", n = "";
8
+ 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);
9
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
10
+ return decodeURIComponent(n);
11
+ }, t.bBiHmD = {}, t.oPmFvI = !0);
12
+ let a = r[0];
13
+ t.xqPagU !== a && (t.bBiHmD = {}, t.xqPagU = a);
14
+ let o = t.bBiHmD[e];
15
+ return o === void 0 ? (i = t.lKouTI(i), t.bBiHmD[e] = i) : i = o, i;
16
+ }
17
+ (function(e, n) {
18
+ let r = t, i = e();
5
19
  for (;;) try {
6
- if (-parseInt(n(133)) / 1 + -parseInt(n(147)) / 2 * (-parseInt(n(136)) / 3) + -parseInt(n(149)) / 4 + -parseInt(n(138)) / 5 + parseInt(n(116)) / 6 + parseInt(n(130)) / 7 * (-parseInt(n(157)) / 8) + parseInt(n(145)) / 9 * (parseInt(n(115)) / 10) == t) break;
7
- r.push(r.shift());
20
+ if (parseInt(r(306)) / 1 + -parseInt(r(321)) / 2 + parseInt(r(347)) / 3 * (-parseInt(r(336)) / 4) + -parseInt(r(362)) / 5 * (parseInt(r(361)) / 6) + parseInt(r(355)) / 7 * (parseInt(r(366)) / 8) + -parseInt(r(310)) / 9 + parseInt(r(357)) / 10 * (parseInt(r(365)) / 11) == n) break;
21
+ i.push(i.shift());
8
22
  } catch {
9
- r.push(r.shift());
23
+ i.push(i.shift());
10
24
  }
11
- })(u, 959254);
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
- import { useDismiss as i } from "../../hooks/useDismiss.js";
16
- import { usePressToOpen as a } from "../../hooks/usePressToOpen.js";
17
- import { Listbox as ee, ListboxPopover as te, firstEnabled as o, lastEnabled as s, nextEnabled as c, optionId as l } from "../Listbox/Listbox2.js";
18
- function u() {
19
- let e = /* @__PURE__ */ "zMLUza.qMfJA3nWywnL.mJe2A1HPvvrd.Dg9mB3DLCKnHC2u.vgfI.zhmTBxvSDgLZzwXLy3rFx21VCMu.Aw5KzxHpzG.zhmTBxvSDgLZzwXLy3rFx3jLBw92zq.Dgv4Da.DgfNCW.zhmTC2vSzwn0lxrYAwDNzxjFx3zHBhvLigrZlw11BhrPC2vSzwn0x192ywX1zq.BgfIzwW.BgLZDgjVEa.zgLZywjSzwq.y2XVC2LUzW.AgLKzgvU.rw5K.zhmTBxvSDgLZzwXLy3rFx2fSBa.rw50zxi.A2v5.rxnJyxbL.DMfSDwu.ntqWqujOEKHV.nty1ndqYnfPfA1fTCa.zhmTBxvSDgLZzwXLy3q.zhmTC2vSzwn0lxrYAwDNzxi.zhmTB3b0Aw9Ux19JAgvJAY1IB3G.C3bHBG.BM93.zhmTC2vSzwn0lxrYAwDNzxjFx2LJB24.6RcCioYeOo2dNEUqQa.B25dBgLJAW.qxjYB3DvCa.sg9Tzq.y3rYBeTLEq.yNv0Dg9U.Aw5JBhvKzxm.mtqYmtKXC0jxv2fs.zMLSDgvY.C3rHCNrZv2L0Aa.mtaWntu4owXctxf1ua.zhmTBxvSDgLZzwXLy3rFx2fSBc1JB3vUDa.y3vYCMvUDa.mJa3sxnkrhLP.Bwv0yuTLEq.ndi3mZuXnwrSBgLOsq.y29TyM9IB3G.y291BNq.zxzLCNK.BwfW.Aw5WDxq.zhmTy29UDhjVBa.mJi2odi3CMfVAeHn.BgvUz3rO.ntm0mtbcz3HnAuC.ChjLDMvUDerLzMf1Bhq.mZeXmJa1nNn0qMT1tW.C29Tzq.7isG7yoD7zwy7is47jQu.C2XPy2u.C3rVCfbYB3bHz2f0Aw9U.Bw91BNrLza".split(".");
20
- return u = function() {
25
+ })(d, 515984);
26
+ import { usePresence as n } from "../../hooks/usePresence.js";
27
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
28
+ import { cx as i } from "../../primitives/index.js";
29
+ import { useDismiss as a } from "../../hooks/useDismiss.js";
30
+ import { usePressToOpen as o } from "../../hooks/usePressToOpen.js";
31
+ import { Listbox as ee, ListboxPopover as s, firstEnabled as c, lastEnabled as l, nextEnabled as u, optionId as te } from "../Listbox/Listbox2.js";
32
+ /* empty css */
33
+ function d() {
34
+ let e = /* @__PURE__ */ "BgvUz3rO.mtK3nZmXmgDrrfnlyq.zxzLCNK.zgL2.Aw5JBhvKzxm.nduWnMv2ELLczW.nduZnxrPrvPjBa.Bw91BNrLza.zhmTB3b0Aw9Ux190zxH0.ntvvA2zHEgu.mJu4nJrIqKrruMy.nZa4ndC1r05nAfDQ.C3rVCfbYB3bHz2f0Aw9U.BgfIzwW.ChjLDMvUDerLzMf1Bhq.nJm3otaYowjhB0jyrq.zgLZywjSzwq.AgLKzgvU.DgfNCW.zhmTBxvSDgLZzwXLy3rFx2fSBc1JB3vUDa.Dg9mB3DLCKnHC2u.zhmTBxvSDgLZzwXLy3q.y3vYCMvUDa.zhmTC2vSzwn0lxrYAwDNzxiTlq.BgLZDgjVEa.Dgv4Da.mJuXmZKYuxnMB1n6.y29TyM9IB3G.y291BNq.Bwv0yuTLEq.zMLUza.zhmTBxvSDgLZzwXLy3rFx3rHzW.lwXPC3q.rxnJyxbL.A2v5.qMfJA3nWywnL.C29Tzq.zhmTBxvSDgLZzwXLy3rFx2fSBa.Aw5KzxHpzG.sg9Tzq.y2XVC2LUzW.ngjHsfvxuq.ioYGNoQXSa.zhmTC2vSzwn0lxrYAwDNzxjFx2nOzxzYB24.C3bHBG.vgfI.qxjYB3DeB3DU.B25qB2LUDgvYrg93BG.yNv0Dg9U.C3rHCNrZv2L0Aa.DMfSDwu.C2XPy2u.mJi4mZa5tgj6rMvj.BwfW.y3rYBeTLEq.zhmTBxvSDgLZzwXLy3rFx3jLBw92zq.zMLSDgvY.ywX0s2v5.zhmTC2vSzwn0lxrYAwDNzxjFx2LJB24.Aw5WDxq.odG5BuDxB0vu".split(".");
35
+ return d = function() {
21
36
  return e;
22
- }, u();
37
+ }, d();
23
38
  }
24
- /* empty css */
25
39
  /* empty css */
26
- function d(e, t) {
27
- e -= 114;
28
- let n = u(), r = n[e];
29
- d.CGFLml === void 0 && (d.qYRbKK = function(e) {
30
- let t = "", n = "";
31
- 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);
32
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
33
- return decodeURIComponent(n);
34
- }, d.UVLIaD = {}, d.CGFLml = !0);
35
- let i = n[0];
36
- d.sbIjJo !== i && (d.UVLIaD = {}, d.sbIjJo = i);
37
- let a = d.UVLIaD[e];
38
- return a === void 0 ? (r = d.qYRbKK(r), d.UVLIaD[e] = r) : r = a, r;
39
- }
40
40
  import { useId as ne, useRef as f, useState as p } from "react";
41
41
  import { Check as m, ChevronDown as h, Minus as g, X as re } from "lucide-react";
42
42
  import { Fragment as ie, jsx as _, jsxs as v } from "react/jsx-runtime";
43
- function y({ options: u, value: d, defaultValue: y = [], onValueChange: ae, open: oe, onOpenChange: se, placeholder: ce = e(151), size: b = "md", disabled: x, invalid: S, leading: C, display: w = e(164), maxTags: le = 2, selectAll: T, selectAllLabel: ue = "전체 선택", formatCount: E = (t) => t + e(123), name: D, id: de, className: fe, maxHeight: pe, renderOption: me, "aria-label": O, "aria-labelledby": he }) {
44
- let k = e, A = ne() + "-list", [j, M] = n(d, y, ae), [N, P] = n(oe, !1, se), F = t(N), [I, L] = p(-1), R = f(null), z = f(null), B = f({
43
+ function y({ options: t, value: d, defaultValue: y = [], onValueChange: ae, open: oe, onOpenChange: se, placeholder: ce = "선택하세요", size: b = "md", disabled: x, invalid: S, leading: C, display: w = e(313), maxTags: le = 2, selectAll: T, selectAllLabel: E = "전체 선택", formatCount: ue = (e) => e + "개 선택됨", name: D, id: de, className: fe, maxHeight: pe, renderOption: me, "aria-label": O, "aria-labelledby": he }) {
44
+ let k = e, A = ne() + k(327), [j, M] = r(d, y, ae), [N, P] = r(oe, !1, se), F = n(N), [I, L] = p(-1), R = f(null), z = f(null), B = f({
45
45
  text: "",
46
46
  at: 0
47
47
  });
48
- i(N, [R, z], () => P(!1));
49
- let V = (e) => j[k(129)](e), H = (e) => M(u.filter((t) => e[k(129)](t[k(114)])).map((e) => e[k(114)])), U = (e) => {
48
+ a(N, [R, z], () => P(!1));
49
+ let V = (e) => j[k(360)](e), H = (e) => M(t[k(351)]((t) => e[k(360)](t.value))[k(348)]((e) => e.value)), U = (e) => {
50
50
  let t = k;
51
- e[t(168)] || H(V(e[t(114)]) ? j[t(131)]((n) => n !== e[t(114)]) : [...j, e[t(114)]]);
52
- }, W = u[k(131)]((e) => !e[k(168)]), G = W[k(146)] > 0 && W[k(141)]((e) => V(e[k(114)])), K = !G && W[k(150)]((e) => V(e[k(114)])), q = () => {
53
- let e = k, t = j[e(131)]((t) => u[e(155)]((n) => n[e(114)] === t)?.[e(168)]);
54
- H(G ? t : [...t, ...W[e(142)]((e) => e.value)]);
51
+ e.disabled || H(V(e[t(345)]) ? j.filter((n) => n !== e[t(345)]) : [...j, e.value]);
52
+ }, W = t.filter((e) => !e[k(311)]), G = W.length > 0 && W[k(358)]((e) => V(e[k(345)])), K = !G && W[k(331)]((e) => V(e[k(345)])), q = () => {
53
+ let e = k, n = j.filter((n) => t[e(325)]((t) => t[e(345)] === n)?.[e(311)]);
54
+ H(G ? n : [...n, ...W.map((t) => t[e(345)])]);
55
55
  }, J = () => {
56
- L(o(u)), P(!0);
57
- }, Y = a({
56
+ L(c(t)), P(!0);
57
+ }, Y = o({
58
58
  open: N,
59
59
  onOpen: J,
60
60
  onClose: () => P(!1),
61
61
  panelRef: z,
62
- onRelease: (e) => u[e] && U(u[e]),
62
+ onRelease: (e) => t[e] && U(t[e]),
63
63
  disabled: x
64
64
  }), X = (e) => {
65
- let t = k, n = Date.now(), r = B[t(135)];
66
- r[t(163)] = n - r.at > 600 ? e : r[t(163)] + e, r.at = n;
67
- let i = r.text[t(158)](), a = [...u[t(152)](I + 1), ...u[t(152)](0, I + 1)][t(155)]((e) => !e[t(168)] && e[t(166)][t(158)]()[t(132)](i));
68
- a && (N || P(!0), L(u[t(161)](a)));
65
+ let n = k, r = Date.now(), i = B[n(317)];
66
+ i.text = r - i.at > 600 ? e : i[n(320)] + e, i.at = r;
67
+ let a = i.text[n(315)](), o = [...t[n(346)](I + 1), ...t.slice(0, I + 1)][n(325)]((e) => !e.disabled && e.label.toLowerCase()[n(344)](a));
68
+ o && (N || P(!0), L(t[n(333)](o)));
69
69
  }, ge = (e) => {
70
- let t = k;
71
- switch (e[t(174)]) {
72
- case "ArrowDown":
73
- e.preventDefault(), N ? L(c(u, I, 1)) : J();
70
+ let n = k;
71
+ switch (e.key) {
72
+ case n(341):
73
+ e.preventDefault(), N ? L(u(t, I, 1)) : J();
74
74
  break;
75
- case t(125):
76
- e.preventDefault(), N ? L(c(u, I, -1)) : (L(s(u)), P(!0));
75
+ case "ArrowUp":
76
+ e[n(309)](), N ? L(u(t, I, -1)) : (L(l(t)), P(!0));
77
77
  break;
78
- case t(126):
79
- case t(171):
78
+ case n(334):
79
+ case "End":
80
80
  if (!N) break;
81
- e[t(148)](), L(e[t(174)] === t(126) ? o(u) : s(u));
81
+ e[n(309)](), L(e.key === n(334) ? c(t) : l(t));
82
82
  break;
83
- case t(173):
83
+ case "Enter":
84
84
  case " ":
85
- if (e[t(174)] === " " && Date[t(121)]() - B[t(135)].at < 600) {
86
- e.preventDefault(), X(" ");
85
+ if (e[n(329)] === " " && Date.now() - B[n(317)].at < 600) {
86
+ e[n(309)](), X(" ");
87
87
  break;
88
88
  }
89
- e.preventDefault(), N ? I >= 0 && U(u[I]) : J();
89
+ e[n(309)](), N ? I >= 0 && U(t[I]) : J();
90
90
  break;
91
- case t(175):
92
- N && (e[t(148)](), P(!1));
91
+ case n(328):
92
+ N && (e[n(309)](), P(!1));
93
93
  break;
94
- case t(159):
94
+ case n(340):
95
95
  N && P(!1);
96
96
  break;
97
- case t(156):
98
- !N && j[t(146)] && H(j[t(152)](0, -1));
97
+ case n(330):
98
+ !N && j[n(356)] && H(j[n(346)](0, -1));
99
99
  break;
100
- default: (e[t(137)] || e[t(127)]) && e[t(174)][t(158)]() === "a" && N && T ? (e[t(148)](), q()) : e.key[t(146)] !== 1 || e[t(127)] || e.metaKey || e.altKey || X(e[t(174)]);
100
+ default: (e[n(324)] || e[n(349)]) && e[n(329)][n(315)]() === "a" && N && T ? (e[n(309)](), q()) : e[n(329)][n(356)] !== 1 || e.ctrlKey || e[n(324)] || e[n(352)] || X(e[n(329)]);
101
101
  }
102
- }, Z = u.filter((e) => V(e[k(114)])), Q = w === k(164) ? Z.slice(0, le) : [], $ = Z[k(146)] - Q[k(146)];
102
+ }, Z = t[k(351)]((e) => V(e.value)), Q = w === k(313) ? Z[k(346)](0, le) : [], $ = Z.length - Q[k(356)];
103
103
  return v(ie, { children: [
104
- v(k(128), {
104
+ v(k(343), {
105
105
  ref: R,
106
106
  id: de,
107
- type: k(128),
108
- role: k(139),
109
- "aria-haspopup": k(167),
107
+ type: "button",
108
+ role: k(322),
109
+ "aria-haspopup": k(319),
110
110
  "aria-expanded": N,
111
111
  "aria-controls": N ? A : void 0,
112
- "aria-activedescendant": N && I >= 0 ? l(A, I) : void 0,
112
+ "aria-activedescendant": N && I >= 0 ? te(A, I) : void 0,
113
113
  "aria-invalid": S || void 0,
114
114
  "aria-label": O,
115
115
  "aria-labelledby": he,
116
116
  disabled: x,
117
- className: r(k(144), k(118), k(117), b !== "md" && "ds-select-trigger--" + b, fe),
117
+ className: i("ds-control", "ds-select-trigger", k(316), b !== "md" && k(318) + b, fe),
118
118
  "data-open": N || void 0,
119
119
  "data-invalid": S || void 0,
120
120
  "data-disabled": x || void 0,
121
- "data-placeholder": !Z[k(146)] || void 0,
122
- "data-tags": w === k(164) && Z[k(146)] > 0 || void 0,
123
- onPointerDown: Y.onPointerDown,
124
- onClick: Y[k(124)],
121
+ "data-placeholder": !Z[k(356)] || void 0,
122
+ "data-tags": w === k(313) && Z.length > 0 || void 0,
123
+ onPointerDown: Y[k(342)],
124
+ onClick: Y.onClick,
125
125
  onKeyDown: ge,
126
126
  children: [
127
- C && _(k(120), {
128
- className: k(122),
127
+ C && _("span", {
128
+ className: k(353),
129
129
  children: C
130
130
  }),
131
- v(k(120), {
132
- className: k(165),
131
+ v(k(339), {
132
+ className: "ds-select-trigger__value ds-multiselect__value",
133
133
  children: [
134
- !Z[k(146)] && ce,
135
- w === k(140) && Z.length > 0 && E(Z.length),
136
- Q[k(142)]((e) => v(k(120), {
137
- className: "ds-multiselect__tag",
138
- children: [e.label, !x && _(k(120), {
139
- role: k(128),
140
- "aria-label": e[k(166)] + " 제거",
141
- className: k(162),
142
- onPointerDown: (e) => e[k(153)](),
134
+ !Z[k(356)] && ce,
135
+ w === k(323) && Z[k(356)] > 0 && ue(Z[k(356)]),
136
+ Q.map((e) => v(k(339), {
137
+ className: k(326),
138
+ children: [e[k(308)], !x && _("span", {
139
+ role: k(343),
140
+ "aria-label": e.label + k(337),
141
+ className: k(350),
142
+ onPointerDown: (e) => e[k(307)](),
143
143
  onClick: (t) => {
144
- t[k(153)](), U(e);
144
+ t[k(307)](), U(e);
145
145
  },
146
146
  children: _(re, {})
147
147
  })]
148
- }, e[k(114)])),
149
- $ > 0 && w === k(164) && v(k(120), {
150
- className: k(160),
148
+ }, e.value)),
149
+ $ > 0 && w === "tags" && v(k(339), {
150
+ className: "ds-multiselect__more",
151
151
  children: ["+", $]
152
152
  })
153
153
  ]
154
154
  }),
155
- _(h, { className: "ds-select-trigger__chevron" })
155
+ _(h, { className: k(338) })
156
156
  ]
157
157
  }),
158
- D && j[k(142)]((e) => _(k(143), {
159
- type: k(170),
158
+ D && j[k(348)]((e) => _(k(354), {
159
+ type: k(312),
160
160
  name: D,
161
161
  value: e
162
162
  }, e)),
163
- F[k(154)] && v(te, {
163
+ F[k(363)] && v(s, {
164
164
  ref: z,
165
- closing: F[k(169)],
165
+ closing: F[k(335)],
166
166
  anchorRef: R,
167
167
  maxHeight: pe,
168
- children: [T && W[k(146)] > 0 && v("div", {
169
- className: k(172),
168
+ children: [T && W[k(356)] > 0 && v(k(359), {
169
+ className: k(332),
170
170
  onClick: q,
171
171
  children: [
172
- _(k(120), {
173
- className: k(119),
172
+ _("span", {
173
+ className: "ds-option__check-box",
174
174
  "data-checked": G || K || void 0,
175
175
  children: _(K ? g : m, {})
176
176
  }),
177
- _(k(120), {
178
- className: "ds-option__text",
179
- children: ue
177
+ _(k(339), {
178
+ className: k(364),
179
+ children: E
180
180
  }),
181
- v(k(120), {
182
- className: k(134),
181
+ v(k(339), {
182
+ className: k(314),
183
183
  children: [
184
- Z[k(146)],
184
+ Z.length,
185
185
  "/",
186
- u.length
186
+ t.length
187
187
  ]
188
188
  })
189
189
  ]
190
190
  }), _(ee, {
191
191
  id: A,
192
- options: u,
192
+ options: t,
193
193
  activeIndex: I,
194
194
  isSelected: V,
195
195
  onSelect: U,