@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,258 +1,259 @@
1
1
  "use client";
2
- (function(e, n) {
3
- let r = t, i = e();
2
+ (function(e, t) {
3
+ let n = C, r = 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;
6
- i.push(i.shift());
5
+ if (-parseInt(n(246)) / 1 * (-parseInt(n(208)) / 2) + parseInt(n(214)) / 3 + parseInt(n(266)) / 4 + -parseInt(n(245)) / 5 + parseInt(n(213)) / 6 + -parseInt(n(260)) / 7 * (parseInt(n(248)) / 8) + parseInt(n(253)) / 9 * (-parseInt(n(251)) / 10) == t) break;
6
+ r.push(r.shift());
7
7
  } catch {
8
- i.push(i.shift());
8
+ r.push(r.shift());
9
9
  }
10
- })(f, 138557);
10
+ })(w, 682961);
11
11
  import { Text as e } from "../../primitives/Typography2.js";
12
- function t(e, n) {
13
- e -= 441;
14
- let r = f(), i = r[e];
15
- t.WyRAzY === void 0 && (t.escXQr = function(e) {
16
- let t = "", n = "";
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
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
19
- return decodeURIComponent(n);
20
- }, t.LXOqSO = {}, t.WyRAzY = !0);
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;
25
- }
26
- import { Progress as n } from "../../primitives/Progress2.js";
27
- import { FileIcon as r } from "../../primitives/FileIcon2.js";
28
- import { Inline as i, Stack as a } from "../../primitives/Layout2.js";
29
- import { useControllableState as o } from "../../hooks/useControllableState.js";
30
- import { Button as s } from "../../primitives/index.js";
31
- import { Card as c, CardBody as l, CardFooter as ee } from "../Card/Card2.js";
12
+ import { Progress as t } from "../../primitives/Progress2.js";
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";
32
18
  import { List as u, ListItem as d } from "../List/List2.js";
33
- import { Dropzone as te } from "../Dropzone/Dropzone2.js";
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(".");
36
- return f = function() {
37
- return e;
38
- }, f();
39
- }
19
+ import { Dropzone as f } from "../Dropzone/Dropzone2.js";
40
20
  import { useEffect as p, useRef as m, useState as h } from "react";
41
21
  import { RotateCw as g, X as _ } from "lucide-react";
42
22
  import { jsx as v, jsxs as y } from "react/jsx-runtime";
43
23
  var b = 260, x = 0;
44
24
  function S(e) {
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";
25
+ let t = C;
26
+ return e < 1024 ? e + "B" : e < 1024 ** 2 ? Math.round(e / 1024) + "KB" : e < 1024 ** 3 ? +(e / 1024 ** 2).toFixed(1) + "MB" : +(e / 1024 ** 3)[t(261)](1) + "GB";
27
+ }
28
+ function C(e, t) {
29
+ e -= 194;
30
+ let n = w(), r = n[e];
31
+ C.ppTtAl === void 0 && (C.LtjMyz = function(e) {
32
+ let t = "", n = "";
33
+ 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);
34
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
35
+ return decodeURIComponent(n);
36
+ }, C.dQevCM = {}, C.ppTtAl = !0);
37
+ let i = n[0];
38
+ C.ZqKxsz !== i && (C.dQevCM = {}, C.ZqKxsz = i);
39
+ let a = C.dQevCM[e];
40
+ return a === void 0 ? (r = C.LtjMyz(r), C.dQevCM[e] = r) : r = a, r;
47
41
  }
48
- function C(e, n) {
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);
42
+ function w() {
43
+ let e = /* @__PURE__ */ "ofHJsxjcEG.C2L6zq.CMvKDwnL.mtaWodiXotbkvKjKDxa.7lsiioUcQoYDJa.oxHTAMv0qW.7ksa67MeioYKKq.Bwf4.y2f0y2G.C3rHDhvZ.ioUQQEUHNEYxKoYeNcdRUBZQUla.ioYxHEUHNoUtNa.mJaYnJGYovPArfnRyW.Dg9gAxHLza.Cg9SAxrL.ywnJzw50.y2XLyxi.BwfW.mJG0otaWq0jhzhLe.C2LNBMfS.z2HVC3q.BM93.y2vPBa.7jIS66AWio2mJoYDVa.zMLSzq.ywjVCNrLza.zMLUywXSEq.C2XPy2u.zMLSDgvY.y3vYCMvUDa.7ywn7iQK7yQ4.ywjVCNq.imk3ia.BMfTzq.odjzswrHB3a.ioYxHEUHNoUtNcdST6JSHOW.ic8G.7kEa7jUq7zwy7kEaioYvIUUkLcdTMjxSI53SNBtSL5dSMPq.Dg9vChbLCKnHC2u.ntu1mZuYogntzvnNzG.mZmWode4n1bfEKHsua.ioUlPoYlNcdSI5ZRJ4q.C3rHCNq.zM9YrwfJAa.C2v0.BwvZC2fNzq.CM91BMq.7j2066+47kEa.67AeioUcQoYDJa.C3bSAxq.7jEf66gC65oC7zwy7kEaioUQU+2wIoYwToYALa.z2v0.DgvYDgLHCNK.64+z7jIb7iob.DxbSB2fKlq.DxbSB2fKAw5N.Bg9HzgvK.AM9PBG.7yYm7j2864U5ioY1NoUmGca.64si66Y0ioY7PoYALcdcTYdSTzZRJiaG.C2v0vgLTzw91Da.DhjPBq.Aw5JBhvKzxm.6RcC6RMm7kEaioYyRoUMTcdSIjGG7j6i7jA07jQu.C3rHCNrZv2L0Aa.zgfUz2vY.BgvUz3rO.zxjYB3i.zgvSzxrL.yM9KEs1ZBq.C3bHBG.nJy2mdmWwuTXrMz5.mZuXEvvkrfbJ.zg9Uzq".split(".");
44
+ return w = function() {
45
+ return e;
46
+ }, w();
47
+ }
48
+ function T(e, t) {
49
+ let n = C, r = t < 1024 ** 2 ? 1024 : t < 1024 ** 3 ? 1024 ** 2 : 1024 ** 3, i = e / r;
50
+ return (r === 1024 ? Math[n(220)](i) : +i[n(261)](1)) + n(210) + S(t);
51
51
  }
52
- function w(e) {
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);
52
+ function E(e) {
53
+ let t = C;
54
+ return e < 60 ? Math[t(255)](1, Math[t(196)](e)) + t(252) : Math[t(196)](e / 60) + t(222);
55
55
  }
56
- function T(e) {
57
- let n = t;
58
- return e[n(448)](",")[n(458)]((e) => e.trim()).filter(Boolean)[n(458)]((e) => {
59
- let t = n;
60
- if (e[t(474)](".")) return e[t(509)](1)[t(494)]();
61
- let [r, i] = e[t(448)]("/");
56
+ function D(e) {
57
+ let t = C;
58
+ return e[t(223)](",")[t(265)]((e) => e[t(235)]())[t(202)](Boolean)[t(265)]((e) => {
59
+ let n = t;
60
+ if (e[n(238)](".")) return e[n(201)](1).toUpperCase();
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: n(221),
64
+ video: n(227),
65
+ audio: "오디오",
66
+ text: n(204)
67
+ }[r] ?? r : i[n(212)]();
68
+ })[t(231)](", ");
69
69
  }
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
- let z = t, [B, V] = o(E, D, O), H = m(B);
70
+ function O({ upload: w, 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 = C, [B, V] = a(O, k, A), H = m(B);
72
72
  p(() => {
73
- let e = t;
74
- H[e(450)] = B;
73
+ let e = C;
74
+ H[e(203)] = B;
75
75
  }, [B]);
76
76
  let U = (e) => {
77
- H.current = e, V(e);
78
- }, W = (e, t) => U(H.current.map((n) => n.id === e ? {
77
+ let t = C;
78
+ H[t(203)] = e, V(e);
79
+ }, W = (e, t) => U(H.current[z(265)]((n) => n.id === e ? {
79
80
  ...n,
80
81
  ...t
81
82
  } : n)), G = m(/* @__PURE__ */ new Map()), K = m(/* @__PURE__ */ new Map()), [q, J] = h({}), [Y, X] = h([]);
82
83
  p(() => {
83
- let e = t, n = G[e(450)];
84
+ let e = z, t = G[e(203)];
84
85
  return () => {
85
- let t = e;
86
- n.forEach((e) => e[t(500)]()), n.clear();
86
+ let n = e;
87
+ t.forEach((e) => e[n(205)]()), t[n(264)]();
87
88
  };
88
89
  }, []);
89
90
  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
91
+ let t = z;
92
+ if (!w || !e[t(198)]) return;
93
+ let n = new AbortController();
94
+ G[t(203)][t(218)](e.id, n), K[t(203)][t(218)](e.id, performance[t(195)]()), w(e.file, {
95
+ signal: n[t(267)],
96
+ onProgress: (r) => {
97
+ let i = t;
98
+ if (n[i(267)].aborted) return;
99
+ W(e.id, { loaded: r });
100
+ let a = (performance[i(195)]() - (K[i(203)][i(225)](e.id) ?? 0)) / 1e3;
101
+ r > 0 && a > .3 && J((t) => ({
102
+ ...t,
103
+ [e.id]: (e.size - r) * a / r
103
104
  }));
104
105
  }
105
106
  }).then(() => {
106
- let t = n;
107
- r[t(480)].aborted || W(e.id, {
108
- status: "done",
109
- loaded: e[t(485)]
107
+ let r = t;
108
+ n.signal[r(199)] || W(e.id, {
109
+ status: r(247),
110
+ loaded: e[r(249)]
110
111
  });
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)] : "업로드하지 못했어요"
112
+ })[t(256)]((r) => {
113
+ let i = t;
114
+ n[i(267)][i(199)] || W(e.id, {
115
+ status: i(241),
116
+ error: r instanceof Error && r[i(219)] ? r[i(219)] : i(224)
116
117
  });
117
- }).finally(() => {
118
- let t = n;
119
- G.current[t(475)](e.id) === r && G[t(450)][t(478)](e.id);
118
+ })[t(200)](() => {
119
+ let r = t;
120
+ G.current.get(e.id) === n && G.current[r(242)](e.id);
120
121
  });
121
122
  };
122
123
  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);
124
+ let e = z;
125
+ B[e(202)]((t) => t[e(257)] === e(229) && !G[e(203)].has(t.id) && !Y[e(236)](t.id))[e(217)](re);
125
126
  });
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)],
127
+ let ie = (e, t) => {
128
+ let n = z, r = P ? P - H[n(203)][n(202)]((e) => e[n(257)] !== n(241))[n(240)] : Infinity, i = (e) => ({
129
+ id: n(228) + ++x,
130
+ name: e.name,
131
+ size: e.size,
131
132
  loaded: 0,
132
- status: r(466)
133
- }), o = [...e[r(458)]((e) => {
134
- let t = r;
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)
133
+ status: n(241)
134
+ }), a = [...e[n(265)]((e) => {
135
+ let t = n;
136
+ return N && e[t(249)] > N ? {
137
+ ...i(e),
138
+ error: t(233) + S(N)
139
+ } : r-- <= 0 ? {
140
+ ...i(e),
141
+ error: "한 번에 " + P + t(237)
141
142
  } : {
142
- ...a(e),
143
+ ...i(e),
143
144
  file: e,
144
- status: f ? "uploading" : t(468),
145
- loaded: f ? 0 : e[t(485)]
145
+ status: w ? t(229) : "done",
146
+ loaded: w ? 0 : e[t(249)]
146
147
  };
147
- }), ...n[r(458)]((e) => ({
148
- ...a(e),
149
- error: r(444)
148
+ }), ...t[n(265)]((e) => ({
149
+ ...i(e),
150
+ error: n(211)
150
151
  }))];
151
- o[r(442)] && U([...H[r(450)], ...o]);
152
+ a[n(240)] && U([...H[n(203)], ...a]);
152
153
  }, 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));
154
+ let t = z;
155
+ G.current[t(225)](e.id)?.[t(205)](), j?.(e), X((t) => [...t, e.id]), window[t(234)](() => {
156
+ let n = t;
157
+ X((t) => t[n(202)]((t) => t !== e.id)), U(H[n(203)][n(202)]((t) => t.id !== e.id));
157
158
  }, b);
158
159
  }, oe = (e) => {
159
- let n = t;
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: n(490),
165
+ status: t(229),
165
166
  loaded: 0,
166
167
  error: void 0
167
168
  });
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);
169
- return y(c, {
169
+ }, Z = B[z(202)]((e) => e.status !== z(241)), Q = Z[z(202)]((e) => e[z(257)] === z(229)), $ = Z[z(250)]((e, t) => e + t[z(249)], 0), se = Z[z(250)]((e, t) => e + (t[z(257)] === z(247) ? t[z(249)] : t[z(230)] ?? 0), 0), ce = F ?? ([M && "" + D(M), N && z(232) + S(N)][z(202)](Boolean).join(z(206)) || void 0);
170
+ return y(s, {
170
171
  padding: "sm",
171
172
  className: L,
172
173
  style: R,
173
- children: [v(l, { children: y(a, {
174
+ children: [v(c, { children: y(i, {
174
175
  gap: 2,
175
- children: [v(te, {
176
+ children: [v(f, {
176
177
  onFiles: ie,
177
- accept: A,
178
- multiple: ne,
179
- disabled: N,
180
- title: P,
178
+ accept: M,
179
+ multiple: ee,
180
+ disabled: te,
181
+ title: ne,
181
182
  description: ce
182
- }), B[z(442)] > 0 && v(u, {
183
+ }), B[z(240)] > 0 && v(u, {
183
184
  animated: !0,
184
- "aria-label": z(461),
185
- children: B[z(458)]((t) => {
186
- let o = z, c = t[o(465)] ?? 0;
185
+ "aria-label": z(197),
186
+ children: B[z(265)]((a) => {
187
+ let s = z, c = a[s(230)] ?? 0;
187
188
  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),
189
+ align: "start",
190
+ leaving: Y[s(236)](a.id),
191
+ leading: v(n, { name: a[s(207)] }),
192
+ title: a.name,
193
+ description: a[s(257)] === s(241) ? v(e, {
194
+ as: s(244),
195
+ variant: s(243),
196
+ tone: s(239),
197
+ children: a.error
198
+ }) : a[s(257)] === s(247) ? y(e, {
199
+ as: s(244),
200
+ variant: s(243),
200
201
  tone: "tertiary",
201
202
  numeric: !0,
202
- children: [S(t.size), o(473)]
203
- }) : y(a, {
204
- as: o(455),
203
+ children: [S(a[s(249)]), " · 업로드 완료"]
204
+ }) : y(i, {
205
+ as: s(244),
205
206
  gap: 2,
206
207
  children: [y(e, {
207
- as: o(455),
208
- variant: o(471),
209
- tone: o(493),
208
+ as: "span",
209
+ variant: s(243),
210
+ tone: s(226),
210
211
  numeric: !0,
211
212
  children: [
212
- C(c, t.size),
213
- o(441),
214
- q[t.id] == null ? "준비 중" : w(q[t.id])
213
+ T(c, a[s(249)]),
214
+ " · ",
215
+ q[a.id] == null ? s(254) : E(q[a.id])
215
216
  ]
216
- }), v(n, {
217
+ }), v(t, {
217
218
  value: c,
218
- max: t[o(485)],
219
+ max: a[s(249)],
219
220
  size: "sm",
220
- tone: o(470),
221
- "aria-label": t[o(495)] + o(482)
221
+ tone: s(263),
222
+ "aria-label": a[s(207)] + s(259)
222
223
  })]
223
224
  }),
224
- trailing: y(i, {
225
+ trailing: y(r, {
225
226
  gap: 1,
226
227
  wrap: !1,
227
- children: [t[o(487)] === o(466) && t[o(479)] && f && v(s, {
228
- variant: "ghost",
228
+ children: [a[s(257)] === s(241) && a[s(198)] && w && v(o, {
229
+ variant: s(194),
229
230
  size: "sm",
230
231
  iconOnly: !0,
231
232
  icon: v(g, {}),
232
- "aria-label": t[o(495)] + o(489),
233
- onClick: () => oe(t)
234
- }), v(s, {
235
- variant: o(504),
233
+ "aria-label": a.name + s(215),
234
+ onClick: () => oe(a)
235
+ }), v(o, {
236
+ variant: "ghost",
236
237
  size: "sm",
237
238
  iconOnly: !0,
238
239
  icon: v(_, {}),
239
- "aria-label": t[o(487)] === o(490) ? t.name + o(503) : t[o(495)] + o(443),
240
- onClick: () => ae(t)
240
+ "aria-label": a[s(257)] === s(229) ? a[s(207)] + s(209) : a[s(207)] + s(258),
241
+ onClick: () => ae(a)
241
242
  })]
242
243
  })
243
- }, t.id);
244
+ }, a.id);
244
245
  })
245
246
  })]
246
- }) }), I && Z[z(442)] > 0 && v(ee, {
247
- align: "start",
247
+ }) }), I && Z[z(240)] > 0 && v(l, {
248
+ align: z(216),
248
249
  children: v(e, {
249
- variant: "body-sm",
250
- tone: z(493),
250
+ variant: z(243),
251
+ tone: "tertiary",
251
252
  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($)
253
+ "aria-live": z(262),
254
+ children: Q[z(240)] > 0 ? Z[z(240)] + "개 중 " + Q[z(240)] + "개 업로드 중 · " + T(se, $) : Z[z(240)] + "개 업로드 완료 · " + S($)
254
255
  })
255
256
  })]
256
257
  });
257
258
  }
258
- export { E as FileUpload, S as formatBytes };
259
+ export { O as FileUpload, S as formatBytes };
@@ -1,95 +1,95 @@
1
1
  "use client";
2
- const e = f;
2
+ const e = d;
3
3
  (function(e, t) {
4
- let n = f, r = e();
4
+ let n = d, r = e();
5
5
  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;
6
+ if (parseInt(n(126)) / 1 + -parseInt(n(129)) / 2 * (-parseInt(n(139)) / 3) + -parseInt(n(134)) / 4 + parseInt(n(135)) / 5 * (parseInt(n(115)) / 6) + -parseInt(n(116)) / 7 * (parseInt(n(120)) / 8) + parseInt(n(127)) / 9 + -parseInt(n(114)) / 10 * (parseInt(n(113)) / 11) == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
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() {
11
+ })(r, 698468);
12
+ import { cx as t } from "../../primitives/index.js";
13
+ import { useSelection as n } from "../../hooks/useSelection.js";
14
+ function r() {
15
+ let e = /* @__PURE__ */ "Dg9Nz2XL.q2HPCa.mZK1ntHWCg1gr3y.DMfYAwfUDa.y2XLyxi.zhmTzMLSDgvYlwnOAxbZ.mJjLvwzWExK.mti3odG0mfH6EwDlzW.mtGZmfnywKTryW.mtaYmZrqwK9ktuC.BgvUz3rO.yxjPys1SywjLBa.zhmTzMLSDgvYlwnOAxbFx3jLBw92zq.ntu2ogzyCKjmuq.zgLZywjSzwq.zgvMyxvSDfbYzxzLBNrLza.C29SAwq.7zwe7ysWioYGNoQXSa.zhmTzMLSDgvYlwnOAxbFx2nVDw50.nJeWotq2suLxsLfM.nte5nteWnKvgtxnzBW.zhmTzMLSDgvYlwnOAxa.mte2A0zwDhLi.zhmTzMLSDgvYlwnOAxaTlq.yNv0Dg9U.C2L6zq.C3bHBG.mZi0ntu2mgjsrKHltW.mtm2mtbJsezJDfa.AxntzwXLy3rLza".split(".");
16
+ return r = function() {
15
17
  return e;
16
- }, t();
18
+ }, r();
17
19
  }
18
- import { cx as n } from "../../primitives/index.js";
19
- import { useSelection as r } from "../../hooks/useSelection.js";
20
20
  /* empty css */
21
21
  import { createContext as i, useContext as a } from "react";
22
22
  import { Check as o, X as s } from "lucide-react";
23
23
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
24
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)], {
25
+ function d(e, t) {
26
+ e -= 110;
27
+ let n = r(), i = n[e];
28
+ d.dbFhFL === void 0 && (d.jcwGim = function(e) {
29
+ let t = "", n = "";
30
+ 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);
31
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
32
+ return decodeURIComponent(n);
33
+ }, d.yasDit = {}, d.dbFhFL = !0);
34
+ let a = n[0];
35
+ d.uOQjkp !== a && (d.yasDit = {}, d.uOQjkp = a);
36
+ let o = d.yasDit[e];
37
+ return o === void 0 ? (i = d.jcwGim(i), d.yasDit[e] = i) : i = o, i;
38
+ }
39
+ function f(e) {
40
+ let r = d, { variant: i = r(123), size: a = "md", disabled: o, clearable: s, clearLabel: f = "초기화", className: p, children: m } = e, h = n(e);
41
+ return c(u.Provider, {
28
42
  value: {
29
- isSelected: (e) => h.isSelected(e),
30
- toggle: (e) => h[t(387)](e),
43
+ isSelected: (e) => h[r(136)](e),
44
+ toggle: (e) => h[r(137)](e),
31
45
  variant: i,
32
46
  size: a,
33
47
  disabled: o
34
48
  },
35
- children: l(t(393), {
49
+ children: l("div", {
36
50
  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
51
+ "aria-label": e[r(118)],
52
+ className: t(r(112), p),
53
+ children: [m, s && h.selected[r(117)] > 0 && c("button", {
54
+ type: r(131),
55
+ className: "ds-filter-chips__clear",
56
+ onClick: h[r(111)],
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: n, selected: r, onSelectedChange: i, onRemove: d, removeLabel: f = e(124), 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 && n !== void 0, T = w ? C[S(136)](n) : !!r, E = h ?? C?.[S(110)] ?? S(123), D = g ?? C?.[S(132)] ?? "md", O = _ || C?.[S(121)];
64
+ return l(S(133), {
65
+ className: t(S(128), "ds-filter-chip--" + E, S(130) + 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(131),
70
70
  className: "ds-filter-chip__main",
71
71
  "aria-pressed": T,
72
72
  disabled: O,
73
73
  onClick: (e) => {
74
- let n = S;
75
- b?.(e), !e[n(403)] && (w && C.toggle(t), i?.(!T));
74
+ let t = S;
75
+ b?.(e), !e[t(122)] && (w && C.toggle(n), i?.(!T));
76
76
  },
77
77
  ...x,
78
78
  children: [
79
- c("span", {
80
- className: S(411),
79
+ c(S(133), {
80
+ className: "ds-filter-chip__lead",
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(S(133), {
86
+ className: S(125),
87
87
  children: m
88
88
  })
89
89
  ]
90
- }), d && c(S(401), {
91
- type: S(401),
92
- className: "ds-filter-chip__remove",
90
+ }), d && c(S(131), {
91
+ type: "button",
92
+ className: S(119),
93
93
  "aria-label": f,
94
94
  disabled: O,
95
95
  onClick: d,
@@ -97,5 +97,5 @@ function p({ value: t, selected: r, onSelectedChange: i, onRemove: d, removeLabe
97
97
  })]
98
98
  });
99
99
  }
100
- d[e(404)] = p;
101
- export { p as FilterChip, d as FilterChipGroup };
100
+ f[e(138)] = p;
101
+ export { p as FilterChip, f as FilterChipGroup };