@iamfiro/design 0.3.4 → 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 (158) hide show
  1. package/agents/app-shell/AGENTS.md +99 -1
  2. package/lib/components/Accordion/Accordion2.js +93 -93
  3. package/lib/components/ActionBar/ActionBar2.js +44 -40
  4. package/lib/components/Alert/Alert2.js +64 -64
  5. package/lib/components/AppShell/AppShell2.js +73 -66
  6. package/lib/components/AreaChart/AreaChart.js +49 -47
  7. package/lib/components/BarChart/BarChart2.js +107 -107
  8. package/lib/components/BarList/BarList2.js +99 -99
  9. package/lib/components/Breadcrumb/Breadcrumb2.js +53 -56
  10. package/lib/components/Calendar/Calendar2.js +164 -164
  11. package/lib/components/Calendar/DatePicker2.js +76 -77
  12. package/lib/components/Calendar/date.js +49 -70
  13. package/lib/components/Card/Card2.js +104 -77
  14. package/lib/components/CardFrame/CardFrame2.js +46 -42
  15. package/lib/components/Chart/ChartParts.js +73 -73
  16. package/lib/components/Chart/chart2.js +53 -53
  17. package/lib/components/Chart/useChartInteraction.js +49 -49
  18. package/lib/components/ChatBubble/ChatBubble2.js +118 -118
  19. package/lib/components/ChatBubble/formatChatTime.js +42 -41
  20. package/lib/components/ChatComposer/ChatComposer2.js +102 -102
  21. package/lib/components/CodeBlock/CodeBlock2.js +51 -51
  22. package/lib/components/CodeBlock/highlight.js +85 -85
  23. package/lib/components/ColorPicker/ColorPicker2.js +373 -374
  24. package/lib/components/ColorPicker/color.js +94 -94
  25. package/lib/components/ColorPicker/presets.js +47 -46
  26. package/lib/components/Combobox/Combobox2.js +118 -117
  27. package/lib/components/CommandMenu/CommandMenu.js +121 -122
  28. package/lib/components/Comment/Comment2.js +56 -81
  29. package/lib/components/ContextMenu/ContextMenu2.js +91 -93
  30. package/lib/components/DataGrid/DataGrid2.js +845 -845
  31. package/lib/components/DataGrid/GridPopover.js +97 -97
  32. package/lib/components/DataGrid/anchor.js +34 -36
  33. package/lib/components/DataGrid/model.js +299 -299
  34. package/lib/components/DataGrid/panels.js +393 -393
  35. package/lib/components/DataGrid/typeMeta.js +53 -53
  36. package/lib/components/DataGrid/types.js +22 -22
  37. package/lib/components/DescriptionList/DescriptionList2.js +57 -57
  38. package/lib/components/Dialog/AlertDialog.js +56 -56
  39. package/lib/components/Dialog/Dialog2.js +68 -69
  40. package/lib/components/Dialog/modal.js +61 -57
  41. package/lib/components/Drawer/Drawer2.js +161 -161
  42. package/lib/components/DropdownMenu/DropdownMenu2.js +267 -267
  43. package/lib/components/DropdownMenu/menuCore.js +42 -68
  44. package/lib/components/Dropzone/Dropzone2.js +81 -81
  45. package/lib/components/EmptyState/EmptyState2.js +55 -54
  46. package/lib/components/FileChip/FileChip2.js +39 -63
  47. package/lib/components/FileUpload/FileUpload.js +157 -156
  48. package/lib/components/FilterChips/FilterChips2.js +51 -51
  49. package/lib/components/FunnelChart/FunnelChart2.js +171 -171
  50. package/lib/components/FunnelChart/funnel.js +55 -57
  51. package/lib/components/Highlight/Highlight2.js +48 -48
  52. package/lib/components/HoverCard/HoverCard.js +59 -59
  53. package/lib/components/InlineDiff/InlineDiff2.js +110 -111
  54. package/lib/components/InlineDiff/diff.js +89 -89
  55. package/lib/components/InlineDiff/useDiffReview.js +63 -65
  56. package/lib/components/Kanban/Kanban2.js +424 -425
  57. package/lib/components/Kanban/KanbanCard.js +98 -73
  58. package/lib/components/Kanban/move.js +52 -49
  59. package/lib/components/LineChart/LineChart2.js +222 -222
  60. package/lib/components/List/List2.js +60 -59
  61. package/lib/components/Listbox/Listbox2.js +117 -117
  62. package/lib/components/Marker/Marker2.js +58 -59
  63. package/lib/components/Menubar/Menubar2.js +121 -123
  64. package/lib/components/MultiSelect/MultiSelect2.js +115 -115
  65. package/lib/components/NavigationMenu/NavigationMenu2.js +277 -276
  66. package/lib/components/NoticeStack/NoticeStack2.js +98 -98
  67. package/lib/components/NumberStepper/NumberStepper2.js +67 -66
  68. package/lib/components/OtpInput/OtpInput2.js +93 -93
  69. package/lib/components/Pagination/Pagination2.js +87 -87
  70. package/lib/components/Pagination/paginationRange.js +39 -37
  71. package/lib/components/PhoneInput/PhoneInput.js +78 -78
  72. package/lib/components/PieChart/PieChart2.js +117 -117
  73. package/lib/components/PieChart/arc.js +57 -58
  74. package/lib/components/PieChart/useArcTween.js +45 -40
  75. package/lib/components/Popover/Popover2.js +73 -74
  76. package/lib/components/ProgressTracker/ProgressTracker2.js +128 -128
  77. package/lib/components/Rating/Rating2.js +95 -95
  78. package/lib/components/Resizable/Resizable2.js +86 -86
  79. package/lib/components/Resizable/layout.js +73 -73
  80. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -68
  81. package/lib/components/ScatterChart/ScatterChart2.js +172 -172
  82. package/lib/components/ScatterChart/scatter.js +55 -56
  83. package/lib/components/ScrollArea/ScrollArea2.js +130 -131
  84. package/lib/components/Select/Select2.js +86 -85
  85. package/lib/components/Sidebar/Sidebar2.js +92 -86
  86. package/lib/components/Sidebar/rail.js +43 -0
  87. package/lib/components/Skeleton/Skeleton2.js +60 -61
  88. package/lib/components/Slider/Slider2.js +73 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -55
  90. package/lib/components/SparkChart/SparkChart2.js +140 -141
  91. package/lib/components/SparkChart/spark.js +50 -48
  92. package/lib/components/Sparkbar/Sparkbar2.js +56 -56
  93. package/lib/components/SplitView/SplitView2.js +47 -46
  94. package/lib/components/Stat/Stat2.js +61 -61
  95. package/lib/components/StepList/StepList2.js +76 -76
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +85 -85
  98. package/lib/components/TagInput/TagInput2.js +217 -218
  99. package/lib/components/TimePicker/TimePicker2.js +217 -216
  100. package/lib/components/TimePicker/time.js +60 -58
  101. package/lib/components/Timeline/Timeline2.js +181 -181
  102. package/lib/components/Timeline/scale.js +60 -65
  103. package/lib/components/Toast/Toaster.js +146 -148
  104. package/lib/components/Toast/store.js +85 -85
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +79 -79
  106. package/lib/components/Toolbar/Toolbar2.js +120 -121
  107. package/lib/components/Tracker/Tracker2.js +79 -79
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +116 -116
  109. package/lib/components/TreeView/TreeView2.js +162 -163
  110. package/lib/hooks/timing.js +32 -35
  111. package/lib/hooks/useControllableState.js +35 -35
  112. package/lib/hooks/useCountdown.js +53 -52
  113. package/lib/hooks/useDigitInput.js +82 -81
  114. package/lib/hooks/useDismiss.js +48 -48
  115. package/lib/hooks/useElapsed.js +40 -43
  116. package/lib/hooks/useFloating.js +47 -47
  117. package/lib/hooks/useFocusTrap.js +45 -69
  118. package/lib/hooks/usePresence.js +49 -50
  119. package/lib/hooks/usePressToOpen.js +43 -43
  120. package/lib/hooks/useScrollLock.js +45 -43
  121. package/lib/hooks/useSelection.js +44 -46
  122. package/lib/index.js +105 -106
  123. package/lib/primitives/AspectRatio2.js +57 -56
  124. package/lib/primitives/BrandIcon.js +177 -177
  125. package/lib/primitives/ColorDot2.js +44 -48
  126. package/lib/primitives/CopyButton2.js +54 -55
  127. package/lib/primitives/CountBadge2.js +45 -48
  128. package/lib/primitives/Countdown2.js +35 -37
  129. package/lib/primitives/Delta2.js +41 -41
  130. package/lib/primitives/Elapsed.js +43 -41
  131. package/lib/primitives/FileIcon2.js +94 -94
  132. package/lib/primitives/Flag2.js +97 -97
  133. package/lib/primitives/IconStack2.js +53 -55
  134. package/lib/primitives/IconTile2.js +45 -41
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +66 -66
  137. package/lib/primitives/Link2.js +42 -47
  138. package/lib/primitives/MaskedText2.js +47 -69
  139. package/lib/primitives/Progress2.js +71 -71
  140. package/lib/primitives/RelativeTime.js +47 -43
  141. package/lib/primitives/SearchInput2.js +70 -66
  142. package/lib/primitives/SelectorButton2.js +70 -67
  143. package/lib/primitives/Spinner2.js +58 -59
  144. package/lib/primitives/StatusIcon2.js +70 -70
  145. package/lib/primitives/Swatch2.js +57 -55
  146. package/lib/primitives/Tooltip2.js +78 -78
  147. package/lib/primitives/Typography2.js +54 -54
  148. package/lib/primitives/formatCountdown.js +37 -38
  149. package/lib/primitives/formatElapsed.js +46 -45
  150. package/lib/primitives/formatRelativeTime.js +43 -69
  151. package/lib/primitives/hotkey.js +66 -66
  152. package/lib/primitives/index.js +152 -152
  153. package/lib/primitives/maskValue.js +30 -32
  154. package/lib/style.css +1 -1
  155. package/lib/types/components/AppShell/AppShell.d.ts +9 -2
  156. package/lib/types/components/Sidebar/rail.d.ts +4 -0
  157. package/lib/types/components/index.d.ts +1 -0
  158. package/package.json +1 -1
@@ -1,258 +1,259 @@
1
1
  "use client";
2
2
  (function(e, t) {
3
- let n = u, r = e();
3
+ let n = w, r = e();
4
4
  for (;;) try {
5
- if (-parseInt(n(193)) / 1 * (-parseInt(n(209)) / 2) + parseInt(n(177)) / 3 + parseInt(n(183)) / 4 + -parseInt(n(178)) / 5 + -parseInt(n(191)) / 6 + parseInt(n(153)) / 7 * (parseInt(n(176)) / 8) + -parseInt(n(216)) / 9 * (parseInt(n(201)) / 10) == t) break;
5
+ if (parseInt(n(396)) / 1 + parseInt(n(369)) / 2 + parseInt(n(352)) / 3 + -parseInt(n(374)) / 4 * (parseInt(n(360)) / 5) + parseInt(n(388)) / 6 * (parseInt(n(354)) / 7) + parseInt(n(380)) / 8 * (-parseInt(n(401)) / 9) + parseInt(n(358)) / 10 == t) break;
6
6
  r.push(r.shift());
7
7
  } catch {
8
8
  r.push(r.shift());
9
9
  }
10
- })(m, 372053);
10
+ })(r, 781535);
11
11
  import { Text as e } from "../../primitives/Typography2.js";
12
12
  import { Progress as t } from "../../primitives/Progress2.js";
13
13
  import { FileIcon as n } from "../../primitives/FileIcon2.js";
14
- import { Inline as r, Stack as i } from "../../primitives/Layout2.js";
15
- import { useControllableState as a } from "../../hooks/useControllableState.js";
16
- import { Button as o } from "../../primitives/index.js";
17
- import { Card as s, CardBody as c, CardFooter as l } from "../Card/Card2.js";
18
- function u(e, t) {
19
- e -= 153;
20
- let n = m(), r = n[e];
21
- u.MKEZBm === void 0 && (u.aYxuSV = function(e) {
22
- let t = "", n = "";
23
- 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);
24
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
25
- return decodeURIComponent(n);
26
- }, u.UuYfCx = {}, u.MKEZBm = !0);
27
- let i = n[0];
28
- u.PdTTQR !== i && (u.UuYfCx = {}, u.PdTTQR = i);
29
- let a = u.UuYfCx[e];
30
- return a === void 0 ? (r = u.aYxuSV(r), u.UuYfCx[e] = r) : r = a, r;
14
+ function r() {
15
+ let e = /* @__PURE__ */ "mtvNrKTwBNG.y3vYCMvUDa.7yYm7j2864U5ioY1NoUmGca.z2v0.C3bSAxq.C3rHCNrZv2L0Aa.Bwf4.zg9Uzq.BwvZC2fNzq.nZu1ntu0Def0t3Lv.imk3ia.ioYxHEUHNoUtNcdST6JSHOW.DxbSB2fKAw5N.AM9PBG.mtC3mtqWnerzuuP1Eq.zM9YrwfJAa.7j2066+47kEa.DgvYDgLHCNK.7ywn7iQK7yQ4.ic8G.mtiZodGYmtzmver5z3O.ywjVCNq.64si66Y0ioY7PoYALcdcTYdSTzZRJiaG.Bg9HzgvK.7jEf66gC65oC7zwy7kEaioUQU+2wIoYwToYALa.zMLSDgvY.Dg9gAxHLza.C2v0vgLTzw91Da.mZyWmZKXmLDZswLduG.C2L6zq.z2HVC3q.C2LNBMfS.C3bHBG.DxbSB2fKlq.C2XPy2u.zxjYB3i.mtiXodG2D2TMAhDJ.BMfTzq.ioYxHEUHNoUtNa.CMvKDwnL.6RcC6RMm7kEaioYyRoUMTcdSIjGG7j6i7jA07jQu.ounotg5KDa.BwfW.7kEa7jUq7zwy7kEaioYvIUUkLcdTMjxSI53SNBtSL5dSMPq.yM9KEs1ZBq.y2f0y2G.C3rHDhvZ.CM91BMq.BgvUz3rO.7jIK65su7jIK.BM93.6RcCioYKKsa.C3rHCNq.6RcCioYxHEUHNoUtNcdSPjeGWRCG.ioUQQEUHNEYxKoYeNcdRUBZQUla.Aw5JBhvKzxm.zMLUywXSEq.C2v0.ywjVCNrLza.7zwCioUYIoYxKca.ywnJzw50.67AeioUcQoYDJa.zgfUz2vY.nJG4nZCWwuDrwhHf.y2vPBa.n05QBvPcEq.Dg9vChbLCKnHC2u.AgfZ.zMLSzq.mJmYodCXmdblsuDYrKu.y2XLyxi".split(".");
16
+ return r = function() {
17
+ return e;
18
+ }, r();
31
19
  }
20
+ import { Inline as i, Stack as a } from "../../primitives/Layout2.js";
21
+ import { useControllableState as o } from "../../hooks/useControllableState.js";
22
+ import { Button as s } from "../../primitives/index.js";
23
+ import { Card as c, CardBody as l, CardFooter as u } from "../Card/Card2.js";
32
24
  import { List as d, ListItem as f } from "../List/List2.js";
33
25
  import { Dropzone as p } from "../Dropzone/Dropzone2.js";
34
- function m() {
35
- let e = /* @__PURE__ */ "ywjVCNrLza.6RcCioYxHEUHNoUtNcdSPjeGWRCG.DxbSB2fKAw5N.7kEa7jUq7zwy7kEaioYvIUUkLcdTMjxSI53SNBtSL5dSMPq.BgvUz3rO.zMLSDgvY.7lsiioUcQoYDJa.67AeioUcQoYDJa.ic8G.Aw5JBhvKzxm.7j2066+47kEa.6RcC6RMm7kEaioYyRoUMTcdSIjGG7j6i7jA07jQu.z2HVC3q.BwvZC2fNzq.AgfZ.DgvYDgLHCNK.C2L6zq.zMLSzq.7jIK65su7jIK.ioUQQEUHNEYxKoYeNcdRUBZQUla.ntaZmdK2CgfoCLzp.odiZmK9fzvPpsG.ode5mZvoDgTitvG.ywnJzw50.BwfW.yM9KEs1ZBq.y2vPBa.mJqXmJe2oePetwfruG.Dg9gAxHLza.CM91BMq.DhjPBq.7jIS66AWio2mJoYDVa.DgHLBG.zM9YrwfJAa.C3bSAxq.mtqWmtGWngzSuwX1Aa.C2LNBMfS.mMT1whL4tq.zgfUz2vY.y3vYCMvUDa.zg9Uzq.C3rHCNq.C3bHBG.CMvKDwnL.C3rHCNrZv2L0Aa.mJq3mZbxzeL1yuK.7ywn7iQK7yQ4.6RcCioYxHEUHNoUtNcdSMytRO4WGWRCG.Dg9vChbLCKnHC2u.zMLUywXSEq.7ksa67MeioYKKq.C3rHDhvZ.BM93.mZa0ote2rw5crgrZ.BMfTzq.y2f0y2G.C2XPy2u.ioUlPoYlNcdSI5ZRJ4q.zxjYB3i.ioYxHEUHNoUtNcdST6JSHOW.mtCZn3zXCgPprW.64+z7jIb7iob.z2v0.imk3ia.7jEf66gC65oC7zwy7kEaioUQU+2wIoYwToYALa.AM9PBG.mJfpugfyz2O.Cg9SAxrL.6RcCioYKKsa".split(".");
36
- return m = function() {
37
- return e;
38
- }, m();
26
+ import { useEffect as m, useRef as h, useState as g } from "react";
27
+ import { RotateCw as _, X as v } from "lucide-react";
28
+ import { jsx as y, jsxs as b } from "react/jsx-runtime";
29
+ var x = 260, S = 0;
30
+ function C(e) {
31
+ let t = w;
32
+ return e < 1024 ? e + "B" : e < 1024 ** 2 ? Math[t(407)](e / 1024) + "KB" : e < 1024 ** 3 ? +(e / 1024 ** 2)[t(386)](1) + "MB" : +(e / 1024 ** 3)[t(386)](1) + "GB";
39
33
  }
40
- import { useEffect as h, useRef as g, useState as _ } from "react";
41
- import { RotateCw as v, X as y } from "lucide-react";
42
- import { jsx as b, jsxs as x } from "react/jsx-runtime";
43
- var S = 260, C = 0;
44
- function w(e) {
45
- let t = u;
46
- return e < 1024 ? e + "B" : e < 1024 ** 2 ? Math[t(185)](e / 1024) + "KB" : e < 1024 ** 3 ? +(e / 1024 ** 2)[t(184)](1) + "MB" : +(e / 1024 ** 3)[t(184)](1) + "GB";
34
+ function w(e, t) {
35
+ e -= 348;
36
+ let n = r(), i = n[e];
37
+ w.Vlyytf === void 0 && (w.OCQGSZ = function(e) {
38
+ let t = "", n = "";
39
+ 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);
40
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
41
+ return decodeURIComponent(n);
42
+ }, w.jfDMNv = {}, w.Vlyytf = !0);
43
+ let a = n[0];
44
+ w.CuQhAG !== a && (w.jfDMNv = {}, w.CuQhAG = a);
45
+ let o = w.jfDMNv[e];
46
+ return o === void 0 ? (i = w.OCQGSZ(i), w.jfDMNv[e] = i) : i = o, i;
47
47
  }
48
48
  function T(e, t) {
49
- let n = u, r = t < 1024 ** 2 ? 1024 : t < 1024 ** 3 ? 1024 ** 2 : 1024 ** 3, i = e / r;
50
- return (r === 1024 ? Math.round(i) : +i[n(184)](1)) + n(164) + w(t);
49
+ let n = w, r = t < 1024 ** 2 ? 1024 : t < 1024 ** 3 ? 1024 ** 2 : 1024 ** 3, i = e / r;
50
+ return (r === 1024 ? Math[n(407)](i) : +i[n(386)](1)) + n(379) + C(t);
51
51
  }
52
52
  function E(e) {
53
- let t = u;
54
- return e < 60 ? Math.max(1, Math[t(182)](e)) + t(162) : Math.ceil(e / 60) + t(163);
53
+ let t = w;
54
+ return e < 60 ? Math[t(366)](1, Math[t(353)](e)) + "초 남음" : Math[t(353)](e / 60) + t(350);
55
55
  }
56
56
  function D(e) {
57
- let t = u;
58
- return e.split(",")[t(180)]((e) => e[t(186)]())[t(161)](Boolean).map((e) => {
57
+ let t = w;
58
+ return e[t(364)](",")[t(402)]((e) => e.trim())[t(385)](Boolean)[t(402)]((e) => {
59
59
  let n = t;
60
- if (e[n(200)](".")) return e[n(212)](1)[n(204)]();
61
- let [r, i] = e[n(190)]("/");
60
+ if (e[n(365)](".")) return e[n(394)](1)[n(355)]();
61
+ let [r, i] = e[n(364)]("/");
62
62
  return i === "*" ? {
63
- image: n(166),
64
- video: n(217),
65
- audio: n(174),
66
- text: n(202)
67
- }[r] ?? r : i[n(204)]();
68
- })[t(221)](", ");
63
+ image: n(376),
64
+ video: "동영상",
65
+ audio: n(409),
66
+ text: n(378)
67
+ }[r] ?? r : i[n(355)]();
68
+ })[t(373)](", ");
69
69
  }
70
- function O({ upload: m, items: O, defaultItems: k = [], onItemsChange: A, onRemove: j, accept: M, maxSize: N, maxFiles: P, multiple: ee = !0, disabled: te, title: ne, description: F, showSummary: I = !0, className: L, style: R }) {
71
- let z = u, [B, V] = a(O, k, A), H = g(B);
72
- h(() => {
73
- let e = u;
74
- H[e(195)] = B;
70
+ function O({ upload: r, items: O, defaultItems: k = [], onItemsChange: A, onRemove: j, accept: M, maxSize: N, maxFiles: P, multiple: ee = !0, disabled: te, title: ne, description: F, showSummary: I = !0, className: L, style: R }) {
71
+ let z = w, [B, V] = o(O, k, A), H = h(B);
72
+ m(() => {
73
+ let e = w;
74
+ H[e(361)] = B;
75
75
  }, [B]);
76
76
  let U = (e) => {
77
- let t = u;
78
- H[t(195)] = e, V(e);
79
- }, W = (e, t) => U(H[z(195)][z(180)]((n) => n.id === e ? {
77
+ let t = w;
78
+ H[t(361)] = e, V(e);
79
+ }, W = (e, t) => U(H[z(361)][z(402)]((n) => n.id === e ? {
80
80
  ...n,
81
81
  ...t
82
- } : n)), G = g(/* @__PURE__ */ new Map()), K = g(/* @__PURE__ */ new Map()), [q, J] = _({}), [Y, X] = _([]);
83
- h(() => {
84
- let e = z, t = G[e(195)];
82
+ } : n)), G = h(/* @__PURE__ */ new Map()), K = h(/* @__PURE__ */ new Map()), [q, J] = g({}), [Y, X] = g([]);
83
+ m(() => {
84
+ let e = z, t = G[e(361)];
85
85
  return () => {
86
- t[e(189)]((e) => e.abort()), t.clear();
86
+ let n = e;
87
+ t[n(375)]((e) => e[n(381)]()), t[n(359)]();
87
88
  };
88
89
  }, []);
89
90
  let re = (e) => {
90
91
  let t = z;
91
- if (!m || !e.file) return;
92
+ if (!r || !e[t(357)]) return;
92
93
  let n = new AbortController();
93
- G.current.set(e.id, n), K[t(195)].set(e.id, performance[t(208)]()), m(e[t(173)], {
94
- signal: n[t(192)],
94
+ G[t(361)][t(417)](e.id, n), K[t(361)][t(417)](e.id, performance[t(410)]()), r(e[t(357)], {
95
+ signal: n[t(391)],
95
96
  onProgress: (r) => {
96
97
  let i = t;
97
- if (n[i(192)][i(156)]) return;
98
+ if (n[i(391)].aborted) return;
98
99
  W(e.id, { loaded: r });
99
- let a = (performance[i(208)]() - (K[i(195)][i(218)](e.id) ?? 0)) / 1e3;
100
+ let a = (performance[i(410)]() - (K.current[i(363)](e.id) ?? 0)) / 1e3;
100
101
  r > 0 && a > .3 && J((t) => ({
101
102
  ...t,
102
- [e.id]: (e.size - r) * a / r
103
+ [e.id]: (e[i(389)] - r) * a / r
103
104
  }));
104
105
  }
105
- })[t(188)](() => {
106
+ }).then(() => {
106
107
  let r = t;
107
- n[r(192)][r(156)] || W(e.id, {
108
- status: r(196),
109
- loaded: e[r(172)]
108
+ n[r(391)][r(418)] || W(e.id, {
109
+ status: r(367),
110
+ loaded: e[r(389)]
110
111
  });
111
- })[t(211)]((r) => {
112
+ })[t(405)]((r) => {
112
113
  let i = t;
113
- n.signal[i(156)] || W(e.id, {
114
- status: i(214),
115
- error: r instanceof Error && r[i(169)] ? r[i(169)] : i(220)
114
+ n.signal[i(418)] || W(e.id, {
115
+ status: i(395),
116
+ error: r instanceof Error && r.message ? r[i(368)] : i(384)
116
117
  });
117
- })[t(205)](() => {
118
+ })[t(416)](() => {
118
119
  let r = t;
119
- G.current[r(218)](e.id) === n && G.current.delete(e.id);
120
+ G[r(361)].get(e.id) === n && G[r(361)].delete(e.id);
120
121
  });
121
122
  };
122
- h(() => {
123
+ m(() => {
123
124
  let e = z;
124
- B[e(161)]((t) => t[e(207)] === e(158) && !G[e(195)][e(170)](t.id) && !Y[e(165)](t.id)).forEach(re);
125
+ B[e(385)]((t) => t[e(406)] === e(372) && !G.current[e(356)](t.id) && !Y[e(415)](t.id))[e(375)](re);
125
126
  });
126
127
  let ie = (e, t) => {
127
- let n = z, r = P ? P - H[n(195)].filter((e) => e.status !== n(214))[n(160)] : Infinity, i = (e) => ({
128
- id: "upload-" + ++C,
129
- name: e.name,
130
- size: e[n(172)],
128
+ let n = z, i = P ? P - H[n(361)][n(385)]((e) => e[n(406)] !== n(395)).length : Infinity, a = (e) => ({
129
+ id: n(393) + ++S,
130
+ name: e[n(397)],
131
+ size: e[n(389)],
131
132
  loaded: 0,
132
- status: n(214)
133
- }), a = [...e.map((e) => {
133
+ status: n(395)
134
+ }), o = [...e.map((e) => {
134
135
  let t = n;
135
- return N && e[t(172)] > N ? {
136
- ...i(e),
137
- error: "너무 커요 · 최대 " + w(N)
138
- } : r-- <= 0 ? {
139
- ...i(e),
140
- error: "한 번에 " + P + t(167)
136
+ return N && e.size > N ? {
137
+ ...a(e),
138
+ error: t(382) + C(N)
139
+ } : i-- <= 0 ? {
140
+ ...a(e),
141
+ error: t(348) + P + t(400)
141
142
  } : {
142
- ...i(e),
143
+ ...a(e),
143
144
  file: e,
144
- status: t(m ? 158 : 196),
145
- loaded: m ? 0 : e[t(172)]
145
+ status: r ? "uploading" : t(367),
146
+ loaded: r ? 0 : e[t(389)]
146
147
  };
147
- }), ...t[n(180)]((e) => ({
148
- ...i(e),
149
- error: n(159)
148
+ }), ...t[n(402)]((e) => ({
149
+ ...a(e),
150
+ error: n(403)
150
151
  }))];
151
- a[n(160)] && U([...H[n(195)], ...a]);
152
+ o[n(408)] && U([...H[n(361)], ...o]);
152
153
  }, ae = (e) => {
153
154
  let t = z;
154
- G[t(195)][t(218)](e.id)?.abort(), j?.(e), X((t) => [...t, e.id]), window.setTimeout(() => {
155
+ G[t(361)].get(e.id)?.abort(), j?.(e), X((t) => [...t, e.id]), window[t(387)](() => {
155
156
  let n = t;
156
- X((t) => t.filter((t) => t !== e.id)), U(H.current[n(161)]((t) => t.id !== e.id));
157
- }, S);
157
+ X((t) => t[n(385)]((t) => t !== e.id)), U(H[n(361)][n(385)]((t) => t.id !== e.id));
158
+ }, x);
158
159
  }, oe = (e) => {
159
160
  let t = z;
160
161
  J((t) => {
161
162
  let n = { ...t };
162
163
  return delete n[e.id], n;
163
164
  }), W(e.id, {
164
- status: t(158),
165
+ status: t(372),
165
166
  loaded: 0,
166
167
  error: void 0
167
168
  });
168
- }, Z = B.filter((e) => e[z(207)] !== z(214)), Q = Z[z(161)]((e) => e.status === z(158)), $ = Z[z(199)]((e, t) => e + t.size, 0), se = Z[z(199)]((e, t) => e + (t[z(207)] === "done" ? t[z(172)] : t.loaded ?? 0), 0), ce = F ?? ([M && "" + D(M), N && "파일당 최대 " + w(N)][z(161)](Boolean).join(z(219)) || void 0);
169
- return x(s, {
169
+ }, Z = B.filter((e) => e[z(406)] !== z(395)), Q = Z[z(385)]((e) => e[z(406)] === "uploading"), $ = Z[z(399)]((e, t) => e + t[z(389)], 0), se = Z[z(399)]((e, t) => e + (t.status === "done" ? t[z(389)] : t[z(383)] ?? 0), 0), ce = F ?? ([M && "" + D(M), N && z(362) + C(N)][z(385)](Boolean)[z(373)](z(370)) || void 0);
170
+ return b(c, {
170
171
  padding: "sm",
171
172
  className: L,
172
173
  style: R,
173
- children: [b(c, { children: x(i, {
174
+ children: [y(l, { children: b(a, {
174
175
  gap: 2,
175
- children: [b(p, {
176
+ children: [y(p, {
176
177
  onFiles: ie,
177
178
  accept: M,
178
179
  multiple: ee,
179
180
  disabled: te,
180
181
  title: ne,
181
182
  description: ce
182
- }), B[z(160)] > 0 && b(d, {
183
+ }), B[z(408)] > 0 && y(d, {
183
184
  animated: !0,
184
- "aria-label": z(187),
185
- children: B[z(180)]((a) => {
186
- let s = z, c = a.loaded ?? 0;
187
- return b(f, {
188
- align: "start",
189
- leaving: Y[s(165)](a.id),
190
- leading: b(n, { name: a[s(210)] }),
191
- title: a[s(210)],
192
- description: a[s(207)] === "error" ? b(e, {
193
- as: s(198),
194
- variant: s(181),
195
- tone: s(194),
196
- children: a[s(214)]
197
- }) : a[s(207)] === s(196) ? x(e, {
198
- as: s(198),
199
- variant: s(181),
200
- tone: s(171),
201
- numeric: !0,
202
- children: [w(a[s(172)]), " · 업로드 완료"]
203
- }) : x(i, {
185
+ "aria-label": "올린 파일",
186
+ children: B[z(402)]((o) => {
187
+ let c = z, l = o[c(383)] ?? 0;
188
+ return y(f, {
189
+ align: c(412),
190
+ leaving: Y[c(415)](o.id),
191
+ leading: y(n, { name: o[c(397)] }),
192
+ title: o[c(397)],
193
+ description: o[c(406)] === c(395) ? y(e, {
194
+ as: "span",
195
+ variant: c(404),
196
+ tone: c(351),
197
+ children: o.error
198
+ }) : o[c(406)] === "done" ? b(e, {
204
199
  as: "span",
200
+ variant: c(404),
201
+ tone: c(377),
202
+ numeric: !0,
203
+ children: [C(o[c(389)]), " · 업로드 완료"]
204
+ }) : b(a, {
205
+ as: c(392),
205
206
  gap: 2,
206
- children: [x(e, {
207
- as: s(198),
208
- variant: s(181),
209
- tone: s(171),
207
+ children: [b(e, {
208
+ as: c(392),
209
+ variant: c(404),
210
+ tone: c(377),
210
211
  numeric: !0,
211
212
  children: [
212
- T(c, a[s(172)]),
213
- s(219),
214
- q[a.id] == null ? s(206) : E(q[a.id])
213
+ T(l, o[c(389)]),
214
+ c(370),
215
+ q[o.id] == null ? "준비 중" : E(q[o.id])
215
216
  ]
216
- }), b(t, {
217
- value: c,
218
- max: a[s(172)],
217
+ }), y(t, {
218
+ value: l,
219
+ max: o[c(389)],
219
220
  size: "sm",
220
- tone: s(179),
221
- "aria-label": a.name + " 업로드"
221
+ tone: c(349),
222
+ "aria-label": o[c(397)] + c(398)
222
223
  })]
223
224
  }),
224
- trailing: x(r, {
225
+ trailing: b(i, {
225
226
  gap: 1,
226
227
  wrap: !1,
227
- children: [a[s(207)] === s(214) && a[s(173)] && m && b(o, {
228
- variant: s(168),
228
+ children: [o[c(406)] === c(395) && o[c(357)] && r && y(s, {
229
+ variant: c(390),
229
230
  size: "sm",
230
231
  iconOnly: !0,
231
- icon: b(v, {}),
232
- "aria-label": a[s(210)] + s(213),
233
- onClick: () => oe(a)
234
- }), b(o, {
235
- variant: s(168),
232
+ icon: y(_, {}),
233
+ "aria-label": o[c(397)] + " 다시 시도",
234
+ onClick: () => oe(o)
235
+ }), y(s, {
236
+ variant: "ghost",
236
237
  size: "sm",
237
238
  iconOnly: !0,
238
- icon: b(y, {}),
239
- "aria-label": a.status === s(158) ? a[s(210)] + s(215) : a.name + s(175),
240
- onClick: () => ae(a)
239
+ icon: y(v, {}),
240
+ "aria-label": o.status === "uploading" ? o[c(397)] + c(371) : o[c(397)] + c(414),
241
+ onClick: () => ae(o)
241
242
  })]
242
243
  })
243
- }, a.id);
244
+ }, o.id);
244
245
  })
245
246
  })]
246
- }) }), I && Z[z(160)] > 0 && b(l, {
247
- align: z(197),
248
- children: b(e, {
249
- variant: "body-sm",
250
- tone: z(171),
247
+ }) }), I && Z.length > 0 && y(u, {
248
+ align: "start",
249
+ children: y(e, {
250
+ variant: z(404),
251
+ tone: z(377),
251
252
  numeric: !0,
252
- "aria-live": z(154),
253
- children: Q.length > 0 ? Z[z(160)] + z(155) + Q[z(160)] + z(157) + T(se, $) : Z[z(160)] + z(203) + w($)
253
+ "aria-live": "polite",
254
+ children: Q[z(408)] > 0 ? Z.length + z(411) + Q[z(408)] + z(413) + T(se, $) : Z[z(408)] + "개 업로드 완료 · " + C($)
254
255
  })
255
256
  })]
256
257
  });
257
258
  }
258
- export { O as FileUpload, w as formatBytes };
259
+ export { O as FileUpload, C as formatBytes };
@@ -1,101 +1,101 @@
1
1
  "use client";
2
- function e() {
3
- let t = /* @__PURE__ */ "C3bHBG.z3jVDxa.zhmTzMLSDgvYlwnOAxbFx2XLywq.AxntzwXLy3rLza.mtf6t0HQz1a.zhmTzMLSDgvYlwnOAxa.mtHVC25Pu1y.C29SAwq.odyWnty1nNfds3zIDG.zhmTzMLSDgvYlwnOAxbZ.nZeWodb6D3fmree.zgL2.uhjVDMLKzxi.q2HPCa.yNv0Dg9U.oda0ohvwqMfwBq.ntiXnJaYmMzmCKnkvW.zgvMyxvSDfbYzxzLBNrLza.mtG4nhjNreDftW.zhmTzMLSDgvYlwnOAxbZx19JBgvHCG.zhmTzMLSDgvYlwnOAxbFx21HAw4.ntiWnwDbDLPjza.7lsi6RIW7zMu.n0T4EKLuAG.C2L6zq.mJqXndKWngfiEeD0Bq.7zwe7ysWioYGNoQXSa.zhmTzMLSDgvYlwnOAxbFx3jLBw92zq.zgLZywjSzwq.BgvUz3rO.y2XLyxi.zhmTzMLSDgvYlwnOAxaTlq.nJiXnti0mhPOBwnMwa.Dg9Nz2XL.yxjPys1SywjLBa.mte2t3vzwMLN".split(".");
4
- return e = function() {
5
- return t;
6
- }, e();
2
+ const e = o;
3
+ function t() {
4
+ let e = /* @__PURE__ */ "AxntzwXLy3rLza.C3bHBG.BgvUz3rO.C2L6zq.zhmTzMLSDgvYlwnOAxbZx19JBgvHCG.nduZmdmXmLnXtu1ZCW.7zwe7ysWioYGNoQXSa.zgvMyxvSDfbYzxzLBNrLza.mtm2mduXmtbpquT1q2m.zhmTzMLSDgvYlwnOAxaTlq.zhmTzMLSDgvYlwnOAxa.odHlEeX6vK8.zgLZywjSzwq.DMfYAwfUDa.zgL2.q2HPCa.mte4nZeWmLr0tgzvEa.otu2ovn0rxnZtq.nJeYnNjwCgLVBa.zhmTzMLSDgvYlwnOAxbFx2XLywq.zhmTzMLSDgvYlwnOAxbZ.C29SAwq.mti5nJe1wKThD2Ph.z3jVDxa.zhmTzMLSDgvYlwnOAxbFx3jLBw92zq.mZe3mtnjz1bLt08.uhjVDMLKzxi.Dg9Nz2XL.zhmTzMLSDgvYlwnOAxbFx2nVDw50.ntu1odaWmhrmtufIza.yNv0Dg9U.zhmTzMLSDgvYlwnOAxbFx21HAw4.mJHktNH5D3u".split(".");
5
+ return t = function() {
6
+ return e;
7
+ }, t();
7
8
  }
8
- const t = i;
9
9
  (function(e, t) {
10
- let n = i, r = e();
10
+ let n = o, r = e();
11
11
  for (;;) try {
12
- if (-parseInt(n(157)) / 1 * (-parseInt(n(141)) / 2) + parseInt(n(148)) / 3 * (-parseInt(n(152)) / 4) + parseInt(n(163)) / 5 * (-parseInt(n(160)) / 6) + parseInt(n(165)) / 7 * (-parseInt(n(167)) / 8) + -parseInt(n(158)) / 9 + -parseInt(n(138)) / 10 * (-parseInt(n(146)) / 11) + parseInt(n(150)) / 12 == t) break;
12
+ if (-parseInt(n(192)) / 1 + parseInt(n(208)) / 2 * (-parseInt(n(201)) / 3) + -parseInt(n(187)) / 4 * (-parseInt(n(198)) / 5) + parseInt(n(194)) / 6 * (parseInt(n(193)) / 7) + -parseInt(n(205)) / 8 + -parseInt(n(181)) / 9 + parseInt(n(184)) / 10 == t) break;
13
13
  r.push(r.shift());
14
14
  } catch {
15
15
  r.push(r.shift());
16
16
  }
17
- })(e, 490531);
17
+ })(t, 793310);
18
18
  import { cx as n } from "../../primitives/index.js";
19
19
  import { useSelection as r } from "../../hooks/useSelection.js";
20
20
  /* empty css */
21
- function i(t, n) {
22
- t -= 138;
23
- let r = e(), a = r[t];
24
- i.jjGqCH === void 0 && (i.UYSZie = function(e) {
21
+ import { createContext as i, useContext as a } from "react";
22
+ function o(e, n) {
23
+ e -= 179;
24
+ let r = t(), i = r[e];
25
+ o.scXncD === void 0 && (o.FtHPlf = function(e) {
25
26
  let t = "", n = "";
26
27
  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);
27
28
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
28
29
  return decodeURIComponent(n);
29
- }, i.ItIuie = {}, i.jjGqCH = !0);
30
- let o = r[0];
31
- i.muPSKV !== o && (i.ItIuie = {}, i.muPSKV = o);
32
- let s = i.ItIuie[t];
33
- return s === void 0 ? (a = i.UYSZie(a), i.ItIuie[t] = a) : a = s, a;
30
+ }, o.GCCFYy = {}, o.scXncD = !0);
31
+ let a = r[0];
32
+ o.kuXBJg !== a && (o.GCCFYy = {}, o.kuXBJg = a);
33
+ let s = o.GCCFYy[e];
34
+ return s === void 0 ? (i = o.FtHPlf(i), o.GCCFYy[e] = i) : i = s, i;
34
35
  }
35
- import { createContext as a, useContext as o } from "react";
36
36
  import { Check as s, X as c } from "lucide-react";
37
37
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
38
- var d = a(null);
38
+ var d = i(null);
39
39
  function f(e) {
40
- let t = i, { variant: a = t(149), size: o = "md", disabled: s, clearable: c, clearLabel: f = t(164), className: p, children: m } = e, h = r(e);
41
- return l(d[t(154)], {
40
+ let t = o, { variant: i = t(197), size: a = "md", disabled: s, clearable: c, clearLabel: f = "초기화", className: p, children: m } = e, h = r(e);
41
+ return l(d[t(202)], {
42
42
  value: {
43
- isSelected: (e) => h[t(145)](e),
44
- toggle: (e) => h[t(139)](e),
45
- variant: a,
46
- size: o,
43
+ isSelected: (e) => h[t(209)](e),
44
+ toggle: (e) => h[t(203)](e),
45
+ variant: i,
46
+ size: a,
47
47
  disabled: s
48
48
  },
49
- children: u(t(153), {
50
- role: t(143),
51
- "aria-label": e[t(140)],
52
- className: n(t(151), p),
53
- children: [m, c && h.selected[t(171)] > 0 && l(t(156), {
49
+ children: u(t(190), {
50
+ role: t(199),
51
+ "aria-label": e["aria-label"],
52
+ className: n(t(196), p),
53
+ children: [m, c && h.selected[t(211)] > 0 && l(t(206), {
54
54
  type: "button",
55
- className: t(161),
56
- onClick: h[t(172)],
55
+ className: t(180),
56
+ onClick: h.clear,
57
57
  children: f
58
58
  })]
59
59
  })
60
60
  });
61
61
  }
62
- function p({ value: e, selected: r, onSelectedChange: i, onRemove: a, removeLabel: f = t(168), icon: p, count: m, variant: h, size: g, disabled: _, className: v, children: y, onClick: b, ...x }) {
63
- let S = t, C = o(d), w = C != null && e !== void 0, T = w ? C[S(145)](e) : !!r, E = h ?? C?.variant ?? S(149), D = g ?? C?.[S(166)] ?? "md", O = _ || C?.[S(170)];
64
- return u(S(142), {
65
- className: n(S(147), S(173) + E, S(173) + D, v),
62
+ function p({ value: t, selected: r, onSelectedChange: i, onRemove: o, removeLabel: f = e(182), 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(209)](t) : !!r, E = h ?? C?.[S(189)] ?? S(197), D = g ?? C?.[S(179)] ?? "md", O = _ || C?.[S(188)];
64
+ return u(S(210), {
65
+ className: n(S(186), S(185) + E, "ds-filter-chip--" + D, v),
66
66
  "data-selected": T || void 0,
67
67
  "data-disabled": O || void 0,
68
- children: [u(S(156), {
69
- type: S(156),
70
- className: S(162),
68
+ children: [u(S(206), {
69
+ type: S(206),
70
+ className: S(207),
71
71
  "aria-pressed": T,
72
72
  disabled: O,
73
- onClick: (t) => {
73
+ onClick: (e) => {
74
74
  let n = S;
75
- b?.(t), !t[n(159)] && (w && C[n(139)](e), i?.(!T));
75
+ b?.(e), !e[n(183)] && (w && C.toggle(t), i?.(!T));
76
76
  },
77
77
  ...x,
78
78
  children: [
79
- l("span", {
80
- className: S(144),
79
+ l(S(210), {
80
+ className: S(195),
81
81
  "aria-hidden": !0,
82
82
  children: T ? l(s, {}) : p
83
83
  }),
84
84
  y,
85
- m != null && l(S(142), {
86
- className: "ds-filter-chip__count",
85
+ m != null && l(S(210), {
86
+ className: S(204),
87
87
  children: m
88
88
  })
89
89
  ]
90
- }), a && l(S(156), {
91
- type: S(156),
92
- className: S(169),
90
+ }), o && l(S(206), {
91
+ type: S(206),
92
+ className: S(200),
93
93
  "aria-label": f,
94
94
  disabled: O,
95
- onClick: a,
95
+ onClick: o,
96
96
  children: l(c, {})
97
97
  })]
98
98
  });
99
99
  }
100
- f[t(155)] = p;
100
+ f[e(191)] = p;
101
101
  export { p as FilterChip, f as FilterChipGroup };