@iamfiro/design 0.3.0 → 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 +76 -76
  4. package/lib/components/ActionBar/ActionBar2.js +43 -43
  5. package/lib/components/Alert/Alert2.js +46 -46
  6. package/lib/components/AppShell/AppShell2.js +58 -58
  7. package/lib/components/AreaChart/AreaChart.js +39 -40
  8. package/lib/components/BarChart/BarChart2.js +169 -169
  9. package/lib/components/BarList/BarList2.js +99 -99
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +65 -66
  11. package/lib/components/Calendar/Calendar2.js +172 -171
  12. package/lib/components/Calendar/DatePicker2.js +101 -102
  13. package/lib/components/Calendar/date.js +71 -71
  14. package/lib/components/Card/Card2.js +55 -56
  15. package/lib/components/CardFrame/CardFrame2.js +52 -52
  16. package/lib/components/Chart/ChartParts.js +90 -90
  17. package/lib/components/Chart/chart2.js +52 -52
  18. package/lib/components/Chart/useChartInteraction.js +44 -44
  19. package/lib/components/ChatBubble/ChatBubble2.js +112 -112
  20. package/lib/components/ChatBubble/formatChatTime.js +44 -42
  21. package/lib/components/ChatComposer/ChatComposer2.js +94 -94
  22. package/lib/components/CodeBlock/CodeBlock2.js +66 -66
  23. package/lib/components/CodeBlock/highlight.js +67 -70
  24. package/lib/components/ColorPicker/ColorPicker2.js +404 -405
  25. package/lib/components/ColorPicker/color.js +81 -81
  26. package/lib/components/ColorPicker/presets.js +44 -43
  27. package/lib/components/Combobox/Combobox2.js +128 -128
  28. package/lib/components/CommandMenu/CommandMenu.js +137 -137
  29. package/lib/components/Comment/Comment2.js +55 -80
  30. package/lib/components/ContextMenu/ContextMenu2.js +93 -94
  31. package/lib/components/DataGrid/DataGrid2.js +1181 -1180
  32. package/lib/components/DataGrid/GridPopover.js +112 -112
  33. package/lib/components/DataGrid/anchor.js +23 -25
  34. package/lib/components/DataGrid/model.js +274 -275
  35. package/lib/components/DataGrid/panels.js +423 -423
  36. package/lib/components/DataGrid/typeMeta.js +21 -22
  37. package/lib/components/DataGrid/types.js +38 -37
  38. package/lib/components/DescriptionList/DescriptionList2.js +107 -107
  39. package/lib/components/Dialog/AlertDialog.js +53 -53
  40. package/lib/components/Dialog/Dialog2.js +71 -70
  41. package/lib/components/Dialog/modal.js +59 -58
  42. package/lib/components/Drawer/Drawer2.js +123 -124
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +198 -200
  44. package/lib/components/DropdownMenu/menuCore.js +46 -47
  45. package/lib/components/Dropzone/Dropzone2.js +77 -77
  46. package/lib/components/EmptyState/EmptyState2.js +57 -56
  47. package/lib/components/FileChip/FileChip2.js +71 -71
  48. package/lib/components/FileUpload/FileUpload.js +119 -119
  49. package/lib/components/FilterChips/FilterChips2.js +61 -61
  50. package/lib/components/FunnelChart/FunnelChart2.js +141 -141
  51. package/lib/components/FunnelChart/funnel.js +51 -51
  52. package/lib/components/Highlight/Highlight2.js +54 -54
  53. package/lib/components/HoverCard/HoverCard.js +108 -83
  54. package/lib/components/InlineDiff/InlineDiff2.js +126 -126
  55. package/lib/components/InlineDiff/diff.js +82 -82
  56. package/lib/components/InlineDiff/useDiffReview.js +62 -60
  57. package/lib/components/Kanban/Kanban2.js +382 -382
  58. package/lib/components/Kanban/KanbanCard.js +92 -92
  59. package/lib/components/Kanban/move.js +45 -49
  60. package/lib/components/LineChart/LineChart2.js +207 -207
  61. package/lib/components/List/List2.js +71 -71
  62. package/lib/components/Listbox/Listbox2.js +115 -115
  63. package/lib/components/Marker/Marker2.js +67 -60
  64. package/lib/components/Menubar/Menubar2.js +130 -133
  65. package/lib/components/MultiSelect/MultiSelect2.js +104 -104
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +261 -262
  67. package/lib/components/NoticeStack/NoticeStack2.js +105 -105
  68. package/lib/components/NumberStepper/NumberStepper2.js +67 -67
  69. package/lib/components/OtpInput/OtpInput2.js +66 -67
  70. package/lib/components/Pagination/Pagination2.js +90 -90
  71. package/lib/components/Pagination/paginationRange.js +24 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +74 -74
  73. package/lib/components/PieChart/PieChart2.js +119 -119
  74. package/lib/components/PieChart/arc.js +63 -42
  75. package/lib/components/PieChart/useArcTween.js +56 -54
  76. package/lib/components/Popover/Popover2.js +61 -61
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +127 -127
  78. package/lib/components/Rating/Rating2.js +81 -81
  79. package/lib/components/Resizable/Resizable2.js +112 -110
  80. package/lib/components/Resizable/layout.js +50 -50
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +49 -50
  82. package/lib/components/ScatterChart/ScatterChart2.js +226 -227
  83. package/lib/components/ScatterChart/scatter.js +59 -57
  84. package/lib/components/ScrollArea/ScrollArea2.js +112 -112
  85. package/lib/components/Select/Select2.js +79 -79
  86. package/lib/components/Sidebar/Sidebar2.js +79 -79
  87. package/lib/components/Skeleton/Skeleton2.js +68 -68
  88. package/lib/components/Slider/Slider2.js +78 -77
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +65 -66
  90. package/lib/components/SparkChart/SparkChart2.js +146 -145
  91. package/lib/components/SparkChart/spark.js +41 -67
  92. package/lib/components/Sparkbar/Sparkbar2.js +61 -60
  93. package/lib/components/SplitView/SplitView2.js +53 -53
  94. package/lib/components/Stat/Stat2.js +94 -94
  95. package/lib/components/StepList/StepList2.js +70 -70
  96. package/lib/components/Table/Table2.js +63 -63
  97. package/lib/components/Tabs/Tabs2.js +70 -70
  98. package/lib/components/TagInput/TagInput2.js +236 -239
  99. package/lib/components/TimePicker/TimePicker2.js +231 -232
  100. package/lib/components/TimePicker/time.js +63 -65
  101. package/lib/components/Timeline/Timeline2.js +167 -167
  102. package/lib/components/Timeline/scale.js +55 -55
  103. package/lib/components/Toast/Toaster.js +151 -152
  104. package/lib/components/Toast/store.js +90 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +91 -91
  106. package/lib/components/Toolbar/Toolbar2.js +145 -145
  107. package/lib/components/Tracker/Tracker2.js +76 -76
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +112 -111
  109. package/lib/components/TreeView/TreeView2.js +124 -124
  110. package/lib/hooks/timing.js +30 -29
  111. package/lib/hooks/useControllableState.js +37 -36
  112. package/lib/hooks/useCountdown.js +56 -59
  113. package/lib/hooks/useDigitInput.js +52 -78
  114. package/lib/hooks/useDismiss.js +58 -57
  115. package/lib/hooks/useElapsed.js +54 -54
  116. package/lib/hooks/useFloating.js +26 -26
  117. package/lib/hooks/useFocusTrap.js +42 -42
  118. package/lib/hooks/usePresence.js +49 -48
  119. package/lib/hooks/usePressToOpen.js +42 -41
  120. package/lib/hooks/useScrollLock.js +45 -44
  121. package/lib/hooks/useSelection.js +45 -39
  122. package/lib/index.js +71 -71
  123. package/lib/primitives/AspectRatio2.js +60 -60
  124. package/lib/primitives/BrandIcon.js +161 -161
  125. package/lib/primitives/ColorDot2.js +42 -45
  126. package/lib/primitives/CopyButton2.js +57 -56
  127. package/lib/primitives/CountBadge2.js +55 -51
  128. package/lib/primitives/Countdown2.js +41 -46
  129. package/lib/primitives/Delta2.js +36 -36
  130. package/lib/primitives/Elapsed.js +49 -49
  131. package/lib/primitives/FileIcon2.js +96 -96
  132. package/lib/primitives/Flag2.js +135 -135
  133. package/lib/primitives/IconStack2.js +38 -60
  134. package/lib/primitives/IconTile2.js +28 -29
  135. package/lib/primitives/Kbd2.js +50 -50
  136. package/lib/primitives/Layout2.js +71 -71
  137. package/lib/primitives/Link2.js +32 -31
  138. package/lib/primitives/MaskedText2.js +49 -74
  139. package/lib/primitives/Progress2.js +65 -66
  140. package/lib/primitives/RelativeTime.js +58 -57
  141. package/lib/primitives/SearchInput2.js +65 -65
  142. package/lib/primitives/SelectorButton2.js +74 -73
  143. package/lib/primitives/Spinner2.js +50 -50
  144. package/lib/primitives/StatusIcon2.js +68 -68
  145. package/lib/primitives/Swatch2.js +59 -55
  146. package/lib/primitives/Tooltip2.js +81 -81
  147. package/lib/primitives/Typography2.js +53 -53
  148. package/lib/primitives/formatCountdown.js +21 -22
  149. package/lib/primitives/formatElapsed.js +43 -42
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +82 -82
  152. package/lib/primitives/index.js +193 -174
  153. package/lib/primitives/maskValue.js +28 -28
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -2,26 +2,26 @@
2
2
  (function(e, n) {
3
3
  let r = t, i = e();
4
4
  for (;;) try {
5
- if (-parseInt(r(467)) / 1 * (-parseInt(r(496)) / 2) + -parseInt(r(501)) / 3 * (-parseInt(r(511)) / 4) + parseInt(r(477)) / 5 + -parseInt(r(508)) / 6 + -parseInt(r(472)) / 7 * (parseInt(r(507)) / 8) + -parseInt(r(451)) / 9 * (parseInt(r(498)) / 10) + parseInt(r(491)) / 11 == n) break;
5
+ if (-parseInt(r(377)) / 1 * (parseInt(r(410)) / 2) + -parseInt(r(406)) / 3 + -parseInt(r(369)) / 4 + -parseInt(r(402)) / 5 * (parseInt(r(346)) / 6) + parseInt(r(362)) / 7 * (-parseInt(r(413)) / 8) + parseInt(r(350)) / 9 * (-parseInt(r(381)) / 10) + -parseInt(r(405)) / 11 * (-parseInt(r(389)) / 12) == n) break;
6
6
  i.push(i.shift());
7
7
  } catch {
8
8
  i.push(i.shift());
9
9
  }
10
- })(f, 138557);
10
+ })(f, 634547);
11
11
  import { Text as e } from "../../primitives/Typography2.js";
12
12
  function t(e, n) {
13
- e -= 441;
13
+ e -= 340;
14
14
  let r = f(), i = r[e];
15
- t.WyRAzY === void 0 && (t.escXQr = function(e) {
15
+ t.hiJLhL === void 0 && (t.vlFiYe = function(e) {
16
16
  let t = "", n = "";
17
17
  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);
18
18
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
19
19
  return decodeURIComponent(n);
20
- }, t.LXOqSO = {}, t.WyRAzY = !0);
20
+ }, t.OcimWI = {}, t.hiJLhL = !0);
21
21
  let a = r[0];
22
- t.sJniRO !== a && (t.LXOqSO = {}, t.sJniRO = a);
23
- let o = t.LXOqSO[e];
24
- return o === void 0 ? (i = t.escXQr(i), t.LXOqSO[e] = i) : i = o, i;
22
+ t.GbonbX !== a && (t.OcimWI = {}, t.GbonbX = a);
23
+ let o = t.OcimWI[e];
24
+ return o === void 0 ? (i = t.vlFiYe(i), t.OcimWI[e] = i) : i = o, i;
25
25
  }
26
26
  import { Progress as n } from "../../primitives/Progress2.js";
27
27
  import { FileIcon as r } from "../../primitives/FileIcon2.js";
@@ -32,7 +32,7 @@ import { Card as c, CardBody as l, CardFooter as ee } from "../Card/Card2.js";
32
32
  import { List as u, ListItem as d } from "../List/List2.js";
33
33
  import { Dropzone as te } from "../Dropzone/Dropzone2.js";
34
34
  function f() {
35
- let e = /* @__PURE__ */ "C3rHCNq.ioUlPoYlNcdSI5ZRJ4q.DxbSB2fKAw5N.mtmZmZy2mMnwDe9zzW.Dg9gAxHLza.DgvYDgLHCNK.Dg9vChbLCKnHC2u.BMfTzq.mJiXmte2BwvLwLrQ.zMLSDgvY.mJyXntyZmeDVBuXovq.6RcCioYKKsa.ywjVCNq.m1nJrhHMzG.6RcCioYxHEUHNoUtNcdSPjeGWRCG.ioYxHEUHNoUtNcdST6JSHOW.z2HVC3q.C2v0vgLTzw91Da.64+z7jIb7iob.mJr3reH4D0K.ntqZodm0BMXntg1r.C2XPy2u.67AeioUcQoYDJa.mtK1mZG4y2zcs1jT.imk3ia.BgvUz3rO.ioUQQEUHNEYxKoYeNcdRUBZQUla.7kEa7jUq7zwy7kEaioYvIUUkLcdTMjxSI53SNBtSL5dSMPq.Bwf4.C2v0.7ywn7iQK7yQ4.C3bSAxq.7lsiioUcQoYDJa.y3vYCMvUDa.owLZuKPjDa.y2vPBa.BwvZC2fNzq.y2f0y2G.C3bHBG.ywjVCNrLza.7zwCioUYIoYxKca.BwfW.CM91BMq.Cg9SAxrL.7jIS66AWio2mJoYDVa.AM9PBG.DxbSB2fKlq.6RcC6RMm7kEaioYyRoUMTcdSIjGG7j6i7jA07jQu.Bg9HzgvK.zxjYB3i.mLHqsLHMua.zg9Uzq.7jIK65su7jIK.ywnJzw50.yM9KEs1ZBq.mtK4mtyZD0niAxnJ.imk3ioYxHEUHNoUtNcdSMytRO4W.C3rHCNrZv2L0Aa.z2v0.CMvKDwnL.otiYnda1uNPWtfDY.zgvSzxrL.zMLSzq.C2LNBMfS.64si66Y0ioY7PoYALcdcTYdSTzZRJiaG.ioYxHEUHNoUtNa.Aw5JBhvKzxm.6RcCioYxHEUHNoUtNcdSMytRO4WGWRCG.C2L6zq.7yYm7j2864U5ioY1NoUmGca.C3rHDhvZ".split(".");
35
+ let e = /* @__PURE__ */ "Bwf4.AM9PBG.7zwCioUYIoYxKca.ndiWqNnTDxLe.Dg9vChbLCKnHC2u.7yYm7j2864U5ioY1NoUmGca.C3bHBG.z2v0.zxjYB3i.7kEa7jUq7zwy7kEaioYvIUUkLcdTMjxSI53SNBtSL5dSMPq.mJq0nZaWngP3r2jtqq.Cg9SAxrL.7jIK65su7jIK.ioYxHEUHNoUtNa.zg9Uzq.BgvUz3rO.ywnJzw50.z2HVC3q.mty0nJmZr05jC1jS.64+z7jIb7iob.y3vYCMvUDa.y2f0y2G.nJa5oduWCxbIzhfA.Dg9gAxHLza.ioUlPoYlNcdSI5ZRJ4q.ywjVCNrLza.ic8G.zMLSzq.Bg9HzgvK.C3rHCNrZv2L0Aa.mJm3nJK5nMj3C3nMqq.7ywn7iQK7yQ4.C2v0.6RcCioYKKsa.CMvKDwnL.6RcCioYxHEUHNoUtNcdSMytRO4WGWRCG.7ksa67MeioYKKq.C3rHCNq.DgvYDgLHCNK.C2L6zq.64si66Y0ioY7PoYALcdcTYdSTzZRJiaG.zMLUywXSEq.DhjPBq.mJC3meDJDwTrCq.7jEf66gC65oC7zwy7kEaioUQU+2wIoYwToYALa.CM91BMq.mtC2C25or1jz.mJu2mdG1mwndA3nfvW.DgHLBG.BwvZC2fNzq.BMfTzq.nhjJt2L1vq.ioYxHEUHNoUtNcdST6JSHOW.6RcCioYxHEUHNoUtNcdSPjeGWRCG.mJKWmJrzufLArgu.DxbSB2fKAw5N.ioUQQEUHNEYxKoYeNcdRUBZQUla.C2v0vgLTzw91Da.imk3ioYxHEUHNoUtNcdSMytRO4W.C3rHDhvZ.BwfW.C2XPy2u.imk3ia.ndK5oe5hwwvfzW.Aw5JBhvKzxm.7jIS66AWio2mJoYDVa.7lsiioUcQoYDJa.oxHLrefXDW.ywjVCNq.y2vPBa.7j2066+47kEa.zMLSDgvY.zgfUz2vY.yM9KEs1ZBq.zM9YrwfJAa.C2LNBMfS".split(".");
36
36
  return f = function() {
37
37
  return e;
38
38
  }, f();
@@ -43,129 +43,129 @@ import { jsx as v, jsxs as y } from "react/jsx-runtime";
43
43
  var b = 260, x = 0;
44
44
  function S(e) {
45
45
  let n = t;
46
- return e < 1024 ? e + "B" : e < 1024 ** 2 ? Math.round(e / 1024) + "KB" : e < 1024 ** 3 ? +(e / 1024 ** 2)[n(492)](1) + "MB" : +(e / 1024 ** 3)[n(492)](1) + "GB";
46
+ return e < 1024 ? e + "B" : e < 1024 ** 2 ? Math[n(404)](e / 1024) + "KB" : e < 1024 ** 3 ? +(e / 1024 ** 2).toFixed(1) + "MB" : +(e / 1024 ** 3)[n(382)](1) + "GB";
47
47
  }
48
48
  function C(e, n) {
49
49
  let r = t, i = n < 1024 ** 2 ? 1024 : n < 1024 ** 3 ? 1024 ** 2 : 1024 ** 3, a = e / i;
50
- return (i === 1024 ? Math[r(459)](a) : +a[r(492)](1)) + " / " + S(n);
50
+ return (i === 1024 ? Math[r(404)](a) : +a[r(382)](1)) + r(385) + S(n);
51
51
  }
52
52
  function w(e) {
53
53
  let n = t;
54
- return e < 60 ? Math[n(445)](1, Math[n(452)](e)) + n(449) : Math[n(452)](e / 60) + n(510);
54
+ return e < 60 ? Math[n(359)](1, Math[n(352)](e)) + n(349) : Math[n(352)](e / 60) + "분 남음";
55
55
  }
56
56
  function T(e) {
57
57
  let n = t;
58
- return e[n(448)](",")[n(458)]((e) => e.trim()).filter(Boolean)[n(458)]((e) => {
58
+ return e.split(",")[n(343)]((e) => e[n(401)]())[n(354)](Boolean)[n(343)]((e) => {
59
59
  let t = n;
60
- if (e[t(474)](".")) return e[t(509)](1)[t(494)]();
61
- let [r, i] = e[t(448)]("/");
60
+ if (e[t(388)](".")) return e[t(344)](1)[t(363)]();
61
+ let [r, i] = e.split("/");
62
62
  return i === "*" ? {
63
- image: "이미지",
64
- video: t(506),
65
- audio: t(469),
66
- text: t(447)
67
- }[r] ?? r : i.toUpperCase();
68
- }).join(", ");
63
+ image: t(353),
64
+ video: t(378),
65
+ audio: t(371),
66
+ text: t(390)
67
+ }[r] ?? r : i[t(363)]();
68
+ })[n(360)](", ");
69
69
  }
70
70
  function E({ upload: f, items: E, defaultItems: D = [], onItemsChange: O, onRemove: k, accept: A, maxSize: j, maxFiles: M, multiple: ne = !0, disabled: N, title: P, description: F, showSummary: I = !0, className: L, style: R }) {
71
71
  let z = t, [B, V] = o(E, D, O), H = m(B);
72
72
  p(() => {
73
73
  let e = t;
74
- H[e(450)] = B;
74
+ H[e(379)] = B;
75
75
  }, [B]);
76
76
  let U = (e) => {
77
77
  H.current = e, V(e);
78
- }, W = (e, t) => U(H.current.map((n) => n.id === e ? {
78
+ }, W = (e, t) => U(H[z(379)][z(343)]((n) => n.id === e ? {
79
79
  ...n,
80
80
  ...t
81
81
  } : n)), G = m(/* @__PURE__ */ new Map()), K = m(/* @__PURE__ */ new Map()), [q, J] = h({}), [Y, X] = h([]);
82
82
  p(() => {
83
- let e = t, n = G[e(450)];
83
+ let e = G.current;
84
84
  return () => {
85
- let t = e;
86
- n.forEach((e) => e[t(500)]()), n.clear();
85
+ let n = t;
86
+ e[n(357)]((e) => e[n(351)]()), e.clear();
87
87
  };
88
88
  }, []);
89
89
  let re = (e) => {
90
- let n = t;
91
- if (!f || !e[n(479)]) return;
92
- let r = new AbortController();
93
- G[n(450)].set(e.id, r), K[n(450)][n(446)](e.id, performance.now()), f(e[n(479)], {
94
- signal: r[n(480)],
95
- onProgress: (t) => {
96
- let i = n;
97
- if (r[i(480)][i(456)]) return;
98
- W(e.id, { loaded: t });
99
- let a = (performance.now() - (K.current[i(475)](e.id) ?? 0)) / 1e3;
100
- t > 0 && a > .3 && J((n) => ({
101
- ...n,
102
- [e.id]: (e[i(485)] - t) * a / t
90
+ let t = z;
91
+ if (!f || !e.file) return;
92
+ let n = new AbortController();
93
+ G[t(379)][t(391)](e.id, n), K[t(379)][t(391)](e.id, performance.now()), f(e[t(386)], {
94
+ signal: n[t(358)],
95
+ onProgress: (r) => {
96
+ let i = t;
97
+ if (n[i(358)][i(384)]) return;
98
+ W(e.id, { loaded: r });
99
+ let a = (performance.now() - (K[i(379)][i(366)](e.id) ?? 0)) / 1e3;
100
+ r > 0 && a > .3 && J((t) => ({
101
+ ...t,
102
+ [e.id]: (e[i(398)] - r) * a / r
103
103
  }));
104
104
  }
105
- }).then(() => {
106
- let t = n;
107
- r[t(480)].aborted || W(e.id, {
108
- status: "done",
109
- loaded: e[t(485)]
105
+ })[t(407)](() => {
106
+ let r = t;
107
+ n.signal[r(384)] || W(e.id, {
108
+ status: r(373),
109
+ loaded: e[r(398)]
110
110
  });
111
- })[n(454)]((t) => {
112
- let i = n;
113
- r[i(480)].aborted || W(e.id, {
114
- status: i(466),
115
- error: t instanceof Error && t[i(453)] ? t[i(453)] : "업로드하지 못했어요"
111
+ })[t(380)]((r) => {
112
+ let i = t;
113
+ n[i(358)].aborted || W(e.id, {
114
+ status: "error",
115
+ error: r instanceof Error && r[i(408)] ? r[i(408)] : i(403)
116
116
  });
117
- }).finally(() => {
118
- let t = n;
119
- G.current[t(475)](e.id) === r && G[t(450)][t(478)](e.id);
117
+ })[t(400)](() => {
118
+ let r = t;
119
+ G[r(379)].get(e.id) === n && G[r(379)].delete(e.id);
120
120
  });
121
121
  };
122
122
  p(() => {
123
- let e = t;
124
- B[e(497)]((t) => t[e(487)] === "uploading" && !G[e(450)].has(t.id) && !Y[e(483)](t.id)).forEach(re);
123
+ let e = z;
124
+ B[e(354)]((t) => t.status === "uploading" && !G[e(379)].has(t.id) && !Y[e(347)](t.id)).forEach(re);
125
125
  });
126
- let ie = (e, n) => {
127
- let r = t, i = M ? M - H[r(450)][r(497)]((e) => e.status !== r(466))[r(442)] : Infinity, a = (e) => ({
128
- id: r(463) + ++x,
129
- name: e[r(495)],
130
- size: e[r(485)],
126
+ let ie = (e, t) => {
127
+ let n = z, r = M ? M - H[n(379)][n(354)]((e) => e[n(342)] !== "error")[n(374)] : Infinity, i = (e) => ({
128
+ id: "upload-" + ++x,
129
+ name: e[n(409)],
130
+ size: e[n(398)],
131
131
  loaded: 0,
132
- status: r(466)
133
- }), o = [...e[r(458)]((e) => {
134
- let t = r;
132
+ status: n(367)
133
+ }), a = [...e[n(343)]((e) => {
134
+ let t = n;
135
135
  return j && e.size > j ? {
136
- ...a(e),
137
- error: t(481) + S(j)
138
- } : i-- <= 0 ? {
139
- ...a(e),
140
- error: t(457) + M + t(464)
136
+ ...i(e),
137
+ error: t(399) + S(j)
138
+ } : r-- <= 0 ? {
139
+ ...i(e),
140
+ error: t(361) + M + "개까지 올릴 수 있어요"
141
141
  } : {
142
- ...a(e),
142
+ ...i(e),
143
143
  file: e,
144
- status: f ? "uploading" : t(468),
145
- loaded: f ? 0 : e[t(485)]
144
+ status: f ? "uploading" : "done",
145
+ loaded: f ? 0 : e[t(398)]
146
146
  };
147
- }), ...n[r(458)]((e) => ({
148
- ...a(e),
149
- error: r(444)
147
+ }), ...t.map((e) => ({
148
+ ...i(e),
149
+ error: n(368)
150
150
  }))];
151
- o[r(442)] && U([...H[r(450)], ...o]);
151
+ a.length && U([...H.current, ...a]);
152
152
  }, ae = (e) => {
153
- let n = t;
154
- G[n(450)][n(475)](e.id)?.abort(), k?.(e), X((t) => [...t, e.id]), window[n(505)](() => {
155
- let t = n;
156
- X((n) => n[t(497)]((t) => t !== e.id)), U(H[t(450)].filter((t) => t.id !== e.id));
153
+ let t = z;
154
+ G.current[t(366)](e.id)?.[t(351)](), k?.(e), X((t) => [...t, e.id]), window[t(340)](() => {
155
+ let n = t;
156
+ X((t) => t.filter((t) => t !== e.id)), U(H.current[n(354)]((t) => t.id !== e.id));
157
157
  }, b);
158
158
  }, oe = (e) => {
159
- let n = t;
159
+ let t = z;
160
160
  J((t) => {
161
161
  let n = { ...t };
162
162
  return delete n[e.id], n;
163
163
  }), W(e.id, {
164
- status: n(490),
164
+ status: t(414),
165
165
  loaded: 0,
166
166
  error: void 0
167
167
  });
168
- }, Z = B[z(497)]((e) => e[z(487)] !== z(466)), Q = Z[z(497)]((e) => e[z(487)] === z(490)), $ = Z[z(476)]((e, t) => e + t[z(485)], 0), se = Z[z(476)]((e, t) => e + (t.status === z(468) ? t[z(485)] : t.loaded ?? 0), 0), ce = F ?? ([A && "" + T(A), j && z(486) + S(j)][z(497)](Boolean)[z(462)](z(441)) || void 0);
168
+ }, Z = B[z(354)]((e) => e[z(342)] !== z(367)), Q = Z[z(354)]((e) => e.status === z(414)), $ = Z.reduce((e, t) => e + t[z(398)], 0), se = Z[z(393)]((e, t) => e + (t[z(342)] === "done" ? t[z(398)] : t[z(387)] ?? 0), 0), ce = F ?? ([A && "" + T(A), j && z(364) + S(j)][z(354)](Boolean)[z(360)](z(345)) || void 0);
169
169
  return y(c, {
170
170
  padding: "sm",
171
171
  className: L,
@@ -179,78 +179,78 @@ function E({ upload: f, items: E, defaultItems: D = [], onItemsChange: O, onRemo
179
179
  disabled: N,
180
180
  title: P,
181
181
  description: ce
182
- }), B[z(442)] > 0 && v(u, {
182
+ }), B[z(374)] > 0 && v(u, {
183
183
  animated: !0,
184
- "aria-label": z(461),
185
- children: B[z(458)]((t) => {
186
- let o = z, c = t[o(465)] ?? 0;
184
+ "aria-label": z(348),
185
+ children: B[z(343)]((t) => {
186
+ let o = z, c = t.loaded ?? 0;
187
187
  return v(d, {
188
- align: o(488),
189
- leaving: Y[o(483)](t.id),
190
- leading: v(r, { name: t[o(495)] }),
191
- title: t[o(495)],
192
- description: t[o(487)] === "error" ? v(e, {
193
- as: "span",
194
- variant: o(471),
195
- tone: "danger",
196
- children: t[o(466)]
197
- }) : t.status === o(468) ? y(e, {
198
- as: o(455),
199
- variant: o(471),
200
- tone: "tertiary",
188
+ align: o(396),
189
+ leaving: Y.includes(t.id),
190
+ leading: v(r, { name: t[o(409)] }),
191
+ title: t[o(409)],
192
+ description: t.status === o(367) ? v(e, {
193
+ as: o(365),
194
+ variant: "body-sm",
195
+ tone: o(355),
196
+ children: t.error
197
+ }) : t.status === o(373) ? y(e, {
198
+ as: o(365),
199
+ variant: o(356),
200
+ tone: o(397),
201
201
  numeric: !0,
202
- children: [S(t.size), o(473)]
202
+ children: [S(t.size), o(341)]
203
203
  }) : y(a, {
204
- as: o(455),
204
+ as: o(365),
205
205
  gap: 2,
206
206
  children: [y(e, {
207
- as: o(455),
208
- variant: o(471),
209
- tone: o(493),
207
+ as: o(365),
208
+ variant: o(356),
209
+ tone: o(397),
210
210
  numeric: !0,
211
211
  children: [
212
- C(c, t.size),
213
- o(441),
214
- q[t.id] == null ? "준비 중" : w(q[t.id])
212
+ C(c, t[o(398)]),
213
+ o(345),
214
+ q[t.id] == null ? o(395) : w(q[t.id])
215
215
  ]
216
216
  }), v(n, {
217
217
  value: c,
218
- max: t[o(485)],
218
+ max: t.size,
219
219
  size: "sm",
220
- tone: o(470),
221
- "aria-label": t[o(495)] + o(482)
220
+ tone: o(375),
221
+ "aria-label": t[o(409)] + o(372)
222
222
  })]
223
223
  }),
224
224
  trailing: y(i, {
225
225
  gap: 1,
226
226
  wrap: !1,
227
- children: [t[o(487)] === o(466) && t[o(479)] && f && v(s, {
228
- variant: "ghost",
227
+ children: [t[o(342)] === o(367) && t[o(386)] && f && v(s, {
228
+ variant: o(376),
229
229
  size: "sm",
230
230
  iconOnly: !0,
231
231
  icon: v(g, {}),
232
- "aria-label": t[o(495)] + o(489),
232
+ "aria-label": t[o(409)] + o(383),
233
233
  onClick: () => oe(t)
234
234
  }), v(s, {
235
- variant: o(504),
235
+ variant: "ghost",
236
236
  size: "sm",
237
237
  iconOnly: !0,
238
238
  icon: v(_, {}),
239
- "aria-label": t[o(487)] === o(490) ? t.name + o(503) : t[o(495)] + o(443),
239
+ "aria-label": t[o(342)] === "uploading" ? t[o(409)] + o(411) : t.name + o(415),
240
240
  onClick: () => ae(t)
241
241
  })]
242
242
  })
243
243
  }, t.id);
244
244
  })
245
245
  })]
246
- }) }), I && Z[z(442)] > 0 && v(ee, {
247
- align: "start",
246
+ }) }), I && Z[z(374)] > 0 && v(ee, {
247
+ align: z(396),
248
248
  children: v(e, {
249
249
  variant: "body-sm",
250
- tone: z(493),
250
+ tone: z(397),
251
251
  numeric: !0,
252
- "aria-live": z(460),
253
- children: Q.length > 0 ? Z.length + z(499) + Q.length + z(502) + C(se, $) : Z[z(442)] + z(484) + S($)
252
+ "aria-live": z(370),
253
+ children: Q[z(374)] > 0 ? Z[z(374)] + z(392) + Q.length + z(412) + C(se, $) : Z[z(374)] + z(394) + S($)
254
254
  })
255
255
  })]
256
256
  });
@@ -1,101 +1,101 @@
1
1
  "use client";
2
- const e = f;
3
- (function(e, t) {
4
- let n = f, r = e();
2
+ const e = t;
3
+ function t(e, n) {
4
+ e -= 108;
5
+ let r = u(), i = r[e];
6
+ t.zkpGVa === void 0 && (t.DTSHhh = 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.CzpABh = {}, t.zkpGVa = !0);
12
+ let a = r[0];
13
+ t.JWAncm !== a && (t.CzpABh = {}, t.JWAncm = a);
14
+ let o = t.CzpABh[e];
15
+ return o === void 0 ? (i = t.DTSHhh(i), t.CzpABh[e] = i) : i = o, i;
16
+ }
17
+ (function(e, n) {
18
+ let r = t, i = e();
5
19
  for (;;) try {
6
- if (parseInt(n(410)) / 1 * (parseInt(n(391)) / 2) + parseInt(n(400)) / 3 * (-parseInt(n(407)) / 4) + parseInt(n(390)) / 5 * (-parseInt(n(388)) / 6) + -parseInt(n(412)) / 7 * (-parseInt(n(384)) / 8) + -parseInt(n(409)) / 9 * (-parseInt(n(395)) / 10) + parseInt(n(399)) / 11 * (-parseInt(n(397)) / 12) + parseInt(n(394)) / 13 == t) break;
7
- r.push(r.shift());
20
+ if (parseInt(r(128)) / 1 * (parseInt(r(131)) / 2) + parseInt(r(114)) / 3 * (-parseInt(r(137)) / 4) + -parseInt(r(132)) / 5 * (-parseInt(r(126)) / 6) + parseInt(r(116)) / 7 + parseInt(r(124)) / 8 * (-parseInt(r(117)) / 9) + -parseInt(r(125)) / 10 + parseInt(r(122)) / 11 * (-parseInt(r(127)) / 12) == n) break;
21
+ i.push(i.shift());
8
22
  } catch {
9
- r.push(r.shift());
23
+ i.push(i.shift());
10
24
  }
11
- })(t, 333142);
12
- function t() {
13
- let e = /* @__PURE__ */ "zgvMyxvSDfbYzxzLBNrLza.q2HPCa.C3bHBG.yxjPys1SywjLBa.ndHuwNvYu1a.zhmTzMLSDgvYlwnOAxbZx19JBgvHCG.mZe3mZq3mKPKreHWvG.m2nsqK9wwG.zhmTzMLSDgvYlwnOAxbFx2XLywq.n3bWyMvUDq.zhmTzMLSDgvYlwnOAxbZ.zhmTzMLSDgvYlwnOAxaTlq.uhjVDMLKzxi.7zwe7ysWioYGNoQXSa.C2vSzwn0zwq.mZG4otu4nhj1ChHlwG.C29SAwq.DMfYAwfUDa.Dg9Nz2XL.mZi0nNzRDff3vW.zgLZywjSzwq.ndy1nw1csg9tCq.mZm0odjoAuLQEeq.zhmTzMLSDgvYlwnOAxa.zgL2.mtmWnZiZmdzIEwnlsvO.mtbbyM1iDLy.y2XLyxi.mJrrzgTPwLy.C2L6zq.mJCYodi1m0jJu2nHEG.mtqWndmZyNn6ugrz.yNv0Dg9U.AxntzwXLy3rLza".split(".");
14
- return t = function() {
15
- return e;
16
- }, t();
17
- }
25
+ })(u, 321537);
18
26
  import { cx as n } from "../../primitives/index.js";
19
27
  import { useSelection as r } from "../../hooks/useSelection.js";
20
28
  /* empty css */
21
29
  import { createContext as i, useContext as a } from "react";
22
30
  import { Check as o, X as s } from "lucide-react";
23
31
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
24
- var u = i(null);
25
- function d(e) {
26
- let t = f, { variant: i = t(385), size: a = "md", disabled: o, clearable: s, clearLabel: d = "초기화", className: p, children: m } = e, h = r(e);
27
- return c(u[t(381)], {
32
+ function u() {
33
+ let e = /* @__PURE__ */ "C29SAwq.zgL2.7zwe7ysWioYGNoQXSa.BgvUz3rO.mJu1mJK5C2zwC1zL.zhmTzMLSDgvYlwnOAxbZx19JBgvHCG.otG5nda4EuvHuwzx.ndCWnJu5mfLcv25zrW.nti5mM1AB2n5sa.mtiWr2T5q3jv.mtbrv0nZrwi.zhmTzMLSDgvYlwnOAxbFx2XLywq.z3jVDxa.otCYotrNu0PNAKi.mJmXmfnSD2LTtG.uhjVDMLKzxi.zgvMyxvSDfbYzxzLBNrLza.yNv0Dg9U.zhmTzMLSDgvYlwnOAxbFx2nVDw50.mtzZs2zwyNC.Dg9Nz2XL.C3bHBG.zhmTzMLSDgvYlwnOAxbZ.AxntzwXLy3rLza.zhmTzMLSDgvYlwnOAxa.yxjPys1SywjLBa.zhmTzMLSDgvYlwnOAxbFx3jLBw92zq.DMfYAwfUDa.C2vSzwn0zwq.y2XLyxi.mJGWmdyYB0HIqvv4.zhmTzMLSDgvYlwnOAxaTlq.ndm5mtK2oeTpDfzzqq.oxLsq29VAG".split(".");
34
+ return u = function() {
35
+ return e;
36
+ }, u();
37
+ }
38
+ var d = i(null);
39
+ function f(e) {
40
+ let i = t, { variant: a = "solid", size: o = "md", disabled: s, clearable: u, clearLabel: f = "초기화", className: p, children: m } = e, h = r(e);
41
+ return c(d[i(133)], {
28
42
  value: {
29
- isSelected: (e) => h.isSelected(e),
30
- toggle: (e) => h[t(387)](e),
31
- variant: i,
32
- size: a,
33
- disabled: o
43
+ isSelected: (e) => h[i(141)](e),
44
+ toggle: (e) => h[i(138)](e),
45
+ variant: a,
46
+ size: o,
47
+ disabled: s
34
48
  },
35
- children: l(t(393), {
36
- role: "group",
37
- "aria-label": e[t(406)],
38
- className: n(t(413), p),
39
- children: [m, s && h[t(383)].length > 0 && c("button", {
40
- type: t(401),
41
- className: t(408),
42
- onClick: h[t(396)],
43
- children: d
49
+ children: l(i(119), {
50
+ role: i(130),
51
+ "aria-label": e[i(109)],
52
+ className: n(i(140), p),
53
+ children: [m, u && h[i(112)][i(121)] > 0 && c(i(135), {
54
+ type: i(135),
55
+ className: i(123),
56
+ onClick: h[i(113)],
57
+ children: f
44
58
  })]
45
59
  })
46
60
  });
47
61
  }
48
- function f(e, n) {
49
- e -= 381;
50
- let r = t(), i = r[e];
51
- f.DKpvum === void 0 && (f.jrFbuh = function(e) {
52
- let t = "", n = "";
53
- 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);
54
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
55
- return decodeURIComponent(n);
56
- }, f.pecHGA = {}, f.DKpvum = !0);
57
- let a = r[0];
58
- f.JWKotU !== a && (f.pecHGA = {}, f.JWKotU = a);
59
- let o = f.pecHGA[e];
60
- return o === void 0 ? (i = f.jrFbuh(i), f.pecHGA[e] = i) : i = o, i;
61
- }
62
- function p({ value: t, selected: r, onSelectedChange: i, onRemove: d, removeLabel: f = e(382), icon: p, count: m, variant: h, size: g, disabled: _, className: v, children: y, onClick: b, ...x }) {
63
- let S = e, C = a(u), w = C != null && t !== void 0, T = w ? C[S(402)](t) : !!r, E = h ?? C?.[S(386)] ?? S(385), D = g ?? C?.[S(398)] ?? "md", O = _ || C?.[S(389)];
64
- return l(S(405), {
65
- className: n(S(392), "ds-filter-chip--" + E, S(414) + D, v),
62
+ function p({ value: t, selected: r, onSelectedChange: i, onRemove: u, removeLabel: f = e(120), icon: p, count: m, variant: h, size: g, disabled: _, className: v, children: y, onClick: b, ...x }) {
63
+ let S = e, C = a(d), w = C != null && t !== void 0, T = w ? C[S(141)](t) : !!r, E = h ?? C?.[S(111)] ?? S(118), D = g ?? C?.size ?? "md", O = _ || C?.disabled;
64
+ return l(S(139), {
65
+ className: n(S(108), S(115) + E, S(115) + D, v),
66
66
  "data-selected": T || void 0,
67
67
  "data-disabled": O || void 0,
68
- children: [l(S(401), {
69
- type: S(401),
68
+ children: [l("button", {
69
+ type: S(135),
70
70
  className: "ds-filter-chip__main",
71
71
  "aria-pressed": T,
72
72
  disabled: O,
73
73
  onClick: (e) => {
74
74
  let n = S;
75
- b?.(e), !e[n(403)] && (w && C.toggle(t), i?.(!T));
75
+ b?.(e), !e[n(134)] && (w && C[n(138)](t), i?.(!T));
76
76
  },
77
77
  ...x,
78
78
  children: [
79
79
  c("span", {
80
- className: S(411),
80
+ className: S(129),
81
81
  "aria-hidden": !0,
82
82
  children: T ? c(o, {}) : p
83
83
  }),
84
84
  y,
85
- m != null && c(S(405), {
86
- className: "ds-filter-chip__count",
85
+ m != null && c("span", {
86
+ className: S(136),
87
87
  children: m
88
88
  })
89
89
  ]
90
- }), d && c(S(401), {
91
- type: S(401),
92
- className: "ds-filter-chip__remove",
90
+ }), u && c("button", {
91
+ type: "button",
92
+ className: S(110),
93
93
  "aria-label": f,
94
94
  disabled: O,
95
- onClick: d,
95
+ onClick: u,
96
96
  children: c(s, {})
97
97
  })]
98
98
  });
99
99
  }
100
- d[e(404)] = p;
101
- export { p as FilterChip, d as FilterChipGroup };
100
+ f.Chip = p;
101
+ export { p as FilterChip, f as FilterChipGroup };