@iamfiro/design 0.3.1 → 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 +81 -81
  4. package/lib/components/ActionBar/ActionBar2.js +38 -39
  5. package/lib/components/Alert/Alert2.js +79 -79
  6. package/lib/components/AppShell/AppShell2.js +45 -45
  7. package/lib/components/AreaChart/AreaChart.js +45 -46
  8. package/lib/components/BarChart/BarChart2.js +166 -166
  9. package/lib/components/BarList/BarList2.js +83 -83
  10. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -72
  11. package/lib/components/Calendar/Calendar2.js +166 -165
  12. package/lib/components/Calendar/DatePicker2.js +139 -139
  13. package/lib/components/Calendar/date.js +61 -58
  14. package/lib/components/Card/Card2.js +47 -47
  15. package/lib/components/CardFrame/CardFrame2.js +50 -45
  16. package/lib/components/Chart/ChartParts.js +78 -78
  17. package/lib/components/Chart/chart2.js +62 -62
  18. package/lib/components/Chart/useChartInteraction.js +56 -56
  19. package/lib/components/ChatBubble/ChatBubble2.js +116 -116
  20. package/lib/components/ChatBubble/formatChatTime.js +46 -39
  21. package/lib/components/ChatComposer/ChatComposer2.js +43 -43
  22. package/lib/components/CodeBlock/CodeBlock2.js +57 -57
  23. package/lib/components/CodeBlock/highlight.js +74 -74
  24. package/lib/components/ColorPicker/ColorPicker2.js +357 -357
  25. package/lib/components/ColorPicker/color.js +83 -83
  26. package/lib/components/ColorPicker/presets.js +47 -41
  27. package/lib/components/Combobox/Combobox2.js +143 -142
  28. package/lib/components/CommandMenu/CommandMenu.js +100 -100
  29. package/lib/components/Comment/Comment2.js +59 -60
  30. package/lib/components/ContextMenu/ContextMenu2.js +95 -96
  31. package/lib/components/DataGrid/DataGrid2.js +1202 -1203
  32. package/lib/components/DataGrid/GridPopover.js +87 -87
  33. package/lib/components/DataGrid/anchor.js +17 -19
  34. package/lib/components/DataGrid/model.js +261 -261
  35. package/lib/components/DataGrid/panels.js +397 -395
  36. package/lib/components/DataGrid/typeMeta.js +51 -51
  37. package/lib/components/DataGrid/types.js +38 -36
  38. package/lib/components/DescriptionList/DescriptionList2.js +74 -74
  39. package/lib/components/Dialog/AlertDialog.js +81 -82
  40. package/lib/components/Dialog/Dialog2.js +63 -63
  41. package/lib/components/Dialog/modal.js +70 -69
  42. package/lib/components/Drawer/Drawer2.js +122 -123
  43. package/lib/components/DropdownMenu/DropdownMenu2.js +257 -258
  44. package/lib/components/DropdownMenu/menuCore.js +43 -44
  45. package/lib/components/Dropzone/Dropzone2.js +76 -77
  46. package/lib/components/EmptyState/EmptyState2.js +59 -56
  47. package/lib/components/FileChip/FileChip2.js +73 -49
  48. package/lib/components/FileUpload/FileUpload.js +149 -150
  49. package/lib/components/FilterChips/FilterChips2.js +59 -59
  50. package/lib/components/FunnelChart/FunnelChart2.js +123 -123
  51. package/lib/components/FunnelChart/funnel.js +44 -47
  52. package/lib/components/Highlight/Highlight2.js +48 -48
  53. package/lib/components/HoverCard/HoverCard.js +89 -64
  54. package/lib/components/InlineDiff/InlineDiff2.js +123 -123
  55. package/lib/components/InlineDiff/diff.js +76 -76
  56. package/lib/components/InlineDiff/useDiffReview.js +69 -68
  57. package/lib/components/Kanban/Kanban2.js +366 -366
  58. package/lib/components/Kanban/KanbanCard.js +67 -67
  59. package/lib/components/Kanban/move.js +41 -45
  60. package/lib/components/LineChart/LineChart2.js +196 -196
  61. package/lib/components/List/List2.js +60 -59
  62. package/lib/components/Listbox/Listbox2.js +94 -94
  63. package/lib/components/Marker/Marker2.js +59 -52
  64. package/lib/components/Menubar/Menubar2.js +110 -112
  65. package/lib/components/MultiSelect/MultiSelect2.js +112 -112
  66. package/lib/components/NavigationMenu/NavigationMenu2.js +239 -240
  67. package/lib/components/NoticeStack/NoticeStack2.js +99 -99
  68. package/lib/components/NumberStepper/NumberStepper2.js +66 -65
  69. package/lib/components/OtpInput/OtpInput2.js +87 -88
  70. package/lib/components/Pagination/Pagination2.js +81 -81
  71. package/lib/components/Pagination/paginationRange.js +25 -24
  72. package/lib/components/PhoneInput/PhoneInput.js +77 -77
  73. package/lib/components/PieChart/PieChart2.js +101 -101
  74. package/lib/components/PieChart/arc.js +73 -76
  75. package/lib/components/PieChart/useArcTween.js +61 -57
  76. package/lib/components/Popover/Popover2.js +65 -64
  77. package/lib/components/ProgressTracker/ProgressTracker2.js +119 -119
  78. package/lib/components/Rating/Rating2.js +85 -85
  79. package/lib/components/Resizable/Resizable2.js +139 -139
  80. package/lib/components/Resizable/layout.js +68 -68
  81. package/lib/components/ScaledPreview/ScaledPreview2.js +55 -55
  82. package/lib/components/ScatterChart/ScatterChart2.js +249 -249
  83. package/lib/components/ScatterChart/scatter.js +55 -55
  84. package/lib/components/ScrollArea/ScrollArea2.js +132 -131
  85. package/lib/components/Select/Select2.js +81 -81
  86. package/lib/components/Sidebar/Sidebar2.js +61 -61
  87. package/lib/components/Skeleton/Skeleton2.js +46 -46
  88. package/lib/components/Slider/Slider2.js +74 -73
  89. package/lib/components/SocialLoginButton/SocialLoginButton.js +70 -70
  90. package/lib/components/SparkChart/SparkChart2.js +138 -137
  91. package/lib/components/SparkChart/spark.js +40 -61
  92. package/lib/components/Sparkbar/Sparkbar2.js +60 -59
  93. package/lib/components/SplitView/SplitView2.js +42 -42
  94. package/lib/components/Stat/Stat2.js +88 -88
  95. package/lib/components/StepList/StepList2.js +71 -71
  96. package/lib/components/Table/Table2.js +70 -70
  97. package/lib/components/Tabs/Tabs2.js +89 -89
  98. package/lib/components/TagInput/TagInput2.js +154 -154
  99. package/lib/components/TimePicker/TimePicker2.js +225 -226
  100. package/lib/components/TimePicker/time.js +50 -50
  101. package/lib/components/Timeline/Timeline2.js +201 -201
  102. package/lib/components/Timeline/scale.js +55 -53
  103. package/lib/components/Toast/Toaster.js +90 -92
  104. package/lib/components/Toast/store.js +91 -87
  105. package/lib/components/ToggleGroup/ToggleGroup2.js +84 -84
  106. package/lib/components/Toolbar/Toolbar2.js +166 -168
  107. package/lib/components/Tracker/Tracker2.js +89 -89
  108. package/lib/components/TreeDiagram/TreeDiagram2.js +126 -125
  109. package/lib/components/TreeView/TreeView2.js +154 -156
  110. package/lib/hooks/timing.js +35 -36
  111. package/lib/hooks/useControllableState.js +40 -39
  112. package/lib/hooks/useCountdown.js +57 -55
  113. package/lib/hooks/useDigitInput.js +59 -83
  114. package/lib/hooks/useDismiss.js +49 -46
  115. package/lib/hooks/useElapsed.js +53 -55
  116. package/lib/hooks/useFloating.js +44 -44
  117. package/lib/hooks/useFocusTrap.js +46 -70
  118. package/lib/hooks/usePresence.js +32 -29
  119. package/lib/hooks/usePressToOpen.js +50 -50
  120. package/lib/hooks/useScrollLock.js +51 -51
  121. package/lib/hooks/useSelection.js +55 -46
  122. package/lib/index.js +34 -35
  123. package/lib/primitives/AspectRatio2.js +59 -55
  124. package/lib/primitives/BrandIcon.js +160 -160
  125. package/lib/primitives/ColorDot2.js +38 -42
  126. package/lib/primitives/CopyButton2.js +56 -56
  127. package/lib/primitives/CountBadge2.js +66 -64
  128. package/lib/primitives/Countdown2.js +31 -32
  129. package/lib/primitives/Delta2.js +46 -71
  130. package/lib/primitives/Elapsed.js +44 -44
  131. package/lib/primitives/FileIcon2.js +82 -82
  132. package/lib/primitives/Flag2.js +134 -134
  133. package/lib/primitives/IconStack2.js +31 -53
  134. package/lib/primitives/IconTile2.js +46 -48
  135. package/lib/primitives/Kbd2.js +57 -57
  136. package/lib/primitives/Layout2.js +78 -78
  137. package/lib/primitives/Link2.js +29 -30
  138. package/lib/primitives/MaskedText2.js +47 -73
  139. package/lib/primitives/Progress2.js +77 -78
  140. package/lib/primitives/RelativeTime.js +49 -46
  141. package/lib/primitives/SearchInput2.js +58 -59
  142. package/lib/primitives/SelectorButton2.js +76 -74
  143. package/lib/primitives/Spinner2.js +62 -58
  144. package/lib/primitives/StatusIcon2.js +56 -56
  145. package/lib/primitives/Swatch2.js +69 -65
  146. package/lib/primitives/Tooltip2.js +92 -92
  147. package/lib/primitives/Typography2.js +68 -68
  148. package/lib/primitives/formatCountdown.js +39 -43
  149. package/lib/primitives/formatElapsed.js +43 -39
  150. package/lib/primitives/formatRelativeTime.js +50 -50
  151. package/lib/primitives/hotkey.js +76 -76
  152. package/lib/primitives/index.js +201 -181
  153. package/lib/primitives/maskValue.js +35 -39
  154. package/lib/style.css +1 -1
  155. package/lib/types/primitives/index.d.ts +6 -2
  156. package/package.json +1 -1
@@ -1,48 +1,55 @@
1
1
  "use client";
2
+ function e() {
3
+ var t = [
4
+ "otaXmJCWy21Qz2Dn",
5
+ "mI1KAwDPDa",
6
+ "muPht2LMva",
7
+ "mZbRqLrNvwC",
8
+ "zM9YBwf0",
9
+ "mti0vvDPvLrS",
10
+ "A28Ts1i",
11
+ "mteYmZG1nvrps2f4DW",
12
+ "ndG1mJHVruzMqu4",
13
+ "rgf0zvrPBwvgB3jTyxq",
14
+ "ndmWm0jorLDWsG",
15
+ "otbNA2jWEKy",
16
+ "odG0otm5mePRB0DpwG",
17
+ "BNvTzxjPyW",
18
+ "nJKYmJj6uwDKrey",
19
+ "ntuZqKDxquTw",
20
+ "mtaYmtKYmhDACKf1ra",
21
+ "mtaYmZi4BeHWsxHS"
22
+ ];
23
+ return e = function() {
24
+ return t;
25
+ }, e();
26
+ }
27
+ function t(n, r) {
28
+ n -= 232;
29
+ var i = e(), a = i[n];
30
+ t.zodsLH === void 0 && (t.iZfybt = function(e) {
31
+ for (var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=", n = "", r = "", i = 0, a, o, s = 0; o = e.charAt(s++); ~o && (a = i % 4 ? a * 64 + o : o, i++ % 4) && (n += String.fromCharCode(255 & a >> (-2 * i & 6)))) o = t.indexOf(o);
32
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
33
+ return decodeURIComponent(r);
34
+ }, t.TKMWJG = {}, t.zodsLH = !0);
35
+ var o = i[0];
36
+ t.oPuMxO !== o && (t.TKMWJG = {}, t.oPuMxO = o);
37
+ var s = t.TKMWJG[n];
38
+ return s === void 0 ? (a = t.iZfybt(a), t.TKMWJG[n] = a) : a = s, a;
39
+ }
2
40
  (function(e, n) {
3
41
  for (var r = t, i = e();;) try {
4
- if (-parseInt(r(140)) / 1 + parseInt(r(143)) / 2 + parseInt(r(141)) / 3 + parseInt(r(139)) / 4 + parseInt(r(136)) / 5 * (-parseInt(r(144)) / 6) + parseInt(r(142)) / 7 + -parseInt(r(135)) / 8 == n) break;
42
+ if (-parseInt(r(244)) / 1 * (-parseInt(r(242)) / 2) + -parseInt(r(238)) / 3 * (parseInt(r(247)) / 4) + parseInt(r(249)) / 5 * (-parseInt(r(245)) / 6) + parseInt(r(239)) / 7 * (parseInt(r(241)) / 8) + -parseInt(r(235)) / 9 * (parseInt(r(240)) / 10) + parseInt(r(236)) / 11 + parseInt(r(232)) / 12 * (parseInt(r(234)) / 13) == n) break;
5
43
  i.push(i.shift());
6
44
  } catch {
7
45
  i.push(i.shift());
8
46
  }
9
- })(n, 936314);
10
- function e(e) {
47
+ })(e, 743109);
48
+ function n(e) {
11
49
  var n = t;
12
- return new Intl.DateTimeFormat(n(137), {
13
- hour: "numeric",
14
- minute: n(138)
15
- })[n(134)](e);
16
- }
17
- export { e as formatChatTime };
18
- function t(e, r) {
19
- e -= 134;
20
- var i = n(), a = i[e];
21
- t.qzSMGM === void 0 && (t.EhURdZ = function(e) {
22
- for (var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=", n = "", r = "", i = 0, a, o, s = 0; o = e.charAt(s++); ~o && (a = i % 4 ? a * 64 + o : o, i++ % 4) && (n += String.fromCharCode(255 & a >> (-2 * i & 6)))) o = t.indexOf(o);
23
- for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
24
- return decodeURIComponent(r);
25
- }, t.rOXkAc = {}, t.qzSMGM = !0);
26
- var o = i[0];
27
- t.sTYwel !== o && (t.rOXkAc = {}, t.sTYwel = o);
28
- var s = t.rOXkAc[e];
29
- return s === void 0 ? (a = t.EhURdZ(a), t.rOXkAc[e] = a) : a = s, a;
30
- }
31
- function n() {
32
- var e = [
33
- "mZm3nJaYovzVuNbfAa",
34
- "otqZodGWmfbKy2nVra",
35
- "mtGYmtG0ofHZzxf1rG",
36
- "nZyYtg9hs2vt",
37
- "zM9YBwf0",
38
- "mty1nZGXmtjJufbtv3q",
39
- "mJG3mdvftKHeywu",
40
- "A28Ts1i",
41
- "mI1KAwDPDa",
42
- "mtu4nZiYoe1bBNbdrq",
43
- "ndm3odL5Cvjzrey"
44
- ];
45
- return n = function() {
46
- return e;
47
- }, n();
50
+ return new Intl[n(233)](n(248), {
51
+ hour: n(237),
52
+ minute: n(243)
53
+ })[n(246)](e);
48
54
  }
55
+ export { n as formatChatTime };
@@ -1,34 +1,34 @@
1
1
  "use client";
2
- const e = t;
3
- function t(e, n) {
4
- e -= 418;
2
+ const e = n;
3
+ (function(e, t) {
4
+ let r = n, i = e();
5
+ for (;;) try {
6
+ if (parseInt(r(146)) / 1 + -parseInt(r(157)) / 2 * (-parseInt(r(133)) / 3) + -parseInt(r(162)) / 4 * (parseInt(r(154)) / 5) + -parseInt(r(172)) / 6 * (-parseInt(r(167)) / 7) + -parseInt(r(164)) / 8 * (parseInt(r(135)) / 9) + -parseInt(r(144)) / 10 + parseInt(r(139)) / 11 == t) break;
7
+ i.push(i.shift());
8
+ } catch {
9
+ i.push(i.shift());
10
+ }
11
+ })(c, 222738);
12
+ import { Kbd as t } from "../../primitives/Kbd2.js";
13
+ function n(e, t) {
14
+ e -= 133;
5
15
  let r = c(), i = r[e];
6
- t.BjikyN === void 0 && (t.jWUtUI = function(e) {
16
+ n.rZQDzh === void 0 && (n.CwXlxU = function(e) {
7
17
  let t = "", n = "";
8
18
  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
19
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
10
20
  return decodeURIComponent(n);
11
- }, t.OywVaV = {}, t.BjikyN = !0);
21
+ }, n.KoaNUE = {}, n.rZQDzh = !0);
12
22
  let a = r[0];
13
- t.zRjTmT !== a && (t.OywVaV = {}, t.zRjTmT = a);
14
- let o = t.OywVaV[e];
15
- return o === void 0 ? (i = t.jWUtUI(i), t.OywVaV[e] = i) : i = o, i;
23
+ n.xPsWzL !== a && (n.KoaNUE = {}, n.xPsWzL = a);
24
+ let o = n.KoaNUE[e];
25
+ return o === void 0 ? (i = n.CwXlxU(i), n.KoaNUE[e] = i) : i = o, i;
16
26
  }
17
- (function(e, n) {
18
- let r = t, i = e();
19
- for (;;) try {
20
- if (-parseInt(r(440)) / 1 + parseInt(r(421)) / 2 * (parseInt(r(437)) / 3) + -parseInt(r(419)) / 4 + parseInt(r(445)) / 5 + parseInt(r(426)) / 6 + parseInt(r(439)) / 7 * (parseInt(r(452)) / 8) + -parseInt(r(423)) / 9 == n) break;
21
- i.push(i.shift());
22
- } catch {
23
- i.push(i.shift());
24
- }
25
- })(c, 397919);
26
- import { Kbd as n } from "../../primitives/Kbd2.js";
27
27
  import { Tooltip as r } from "../../primitives/Tooltip2.js";
28
28
  import { Box as i, Inline as a, Stack as o } from "../../primitives/Layout2.js";
29
29
  import { useControllableState as s } from "../../hooks/useControllableState.js";
30
30
  function c() {
31
- let e = /* @__PURE__ */ "mJG3mZG3nfnTvxjusq.DhjPBq.67o064k06RIWia.zhmTy29TCg9ZzxiTlxnT.zw50zxi.y3vYCMvUDfrHCMDLDa.7yYm7j28ioYYQoU2Ga.ChjLDMvUDerLzMf1Bhq.y3vYCMvUDa.ChjPBwfYEq.yNv0Dg9UlcbHlcbPBNb1DcWGDgv4DgfYzweSifTYB2XLpsjTzw51iL0.ntaZmZeZv015u0ft.DgfYz2v0.ndLfsNDyv0C.mZaZndz5q29QrK4.y2XVC2vZDa.67o064k06RIW.zgL2.zhmTy29TCg9ZzxjFx2LUChv0.mte4mtuZmhfZqNzgva.zxnJ.66Y07jEh7j2065oGioUSVoYwToUZToYeUoYALa.BMf0AxzLrxzLBNq.zM9JDxm.A2v5.rxnJyxbL.mZe5otKYA2LhDKj1.zw5K.nJeXoti4BMriy0fx.zhmTy29TCg9ZzxjFx3nLBMq.neTPvvz3rG.zhmTy29TCg9ZzxjFx2zVB3rLCG.nJC0nJe1n0XwyunlEG.rw50zxi.66Mu7iUC7kEa".split(".");
31
+ let e = /* @__PURE__ */ "nfzbDg1quW.DhjPBq.66Y07jEh7j2065oGioUSVoYwToUZToYeUoYALa.zhmTy29UDhjVBcbKCY1JB21WB3nLCG.DMfSDwu.nZa3ntq4s3jyExn6.ChjLDMvUDerLzMf1Bhq.mJyYngr0DLfOta.z2HVC3q.7yYm7j28ioYYQoU2Ga.ndKWrLfAs1Ds.67o064k06RIWia.y29UDgfPBNm.zhmTy29TCg9ZzxjFx3nLBMq.yMv0D2vLBG.mtC3mZzYsNPhq0W.DgfYz2v0.mtaXmZaXB2jhywvl.7ksr7kEaia.nZe1nwTcruP4AW.ChjPBwfYEq.A2v5.zhmTy29TCg9ZzxjFx2zVB3rLCG.mteWmdqXohbRvhDNvG.zhmTy29TCg9ZzxiTlxnT.7j2r64U1ioYKKEYNGa.yNv0Dg9UlcbHlcbPBNb1DcWGDgv4DgfYzweSifTYB2XLpsjTzw51iL0.y3vYCMvUDa.nJK1nJbWu3fgEKy.C2HPzNrlzxK.mJKYodq5s0P2sLPO.AxndB21WB3nPBMC.BMf0AxzLrxzLBNq.zM9JDxm.y3vYCMvUDfrHCMDLDa.zgL2.zw50zxi.rw50zxi.nuXMDNbYsW.zxnJ.y3vYCMvUDenVBg9Y".split(".");
32
32
  return c = function() {
33
33
  return e;
34
34
  }, c();
@@ -38,23 +38,23 @@ import { Button as l, Textarea as u, cx as d } from "../../primitives/index.js";
38
38
  import { useRef as f } from "react";
39
39
  import { ArrowUp as p, Plus as m, Square as h } from "lucide-react";
40
40
  import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
41
- function y({ value: t, defaultValue: c = "", onValueChange: y, onSubmit: b, placeholder: x = e(447), disabled: S, pending: C, onStop: w, onAttach: T, attachLabel: E = e(432), tools: D, actions: O, attachments: k, footer: A, maxRows: j, size: M = "md", autoFocus: N, name: P, "aria-label": F = e(425), className: I }) {
42
- let L = e, [R, z] = s(t, c, y), B = f(null), V = !S && !C && R[L(427)]() !== "", H = M === "sm", U = () => {
41
+ function y({ value: n, defaultValue: c = "", onValueChange: y, onSubmit: b, placeholder: x = e(159), disabled: S, pending: C, onStop: w, onAttach: T, attachLabel: E = e(166), tools: D, actions: O, attachments: k, footer: A, maxRows: j, size: M = "md", autoFocus: N, name: P, "aria-label": F = "메시지", className: I }) {
42
+ let L = e, [R, z] = s(n, c, y), B = f(null), V = !S && !C && R[L(158)]() !== "", H = M === "sm", U = () => {
43
43
  V && (b?.(R), z(""));
44
44
  }, W = (e) => {
45
45
  let t = L;
46
- e[t(448)].isComposing || (e.key === t(424) && !e.shiftKey ? (e[t(433)](), U()) : e[t(450)] === t(451) && C && w?.());
46
+ e[t(148)][t(147)] || (e[t(137)] === t(153) && !e[t(145)] ? (e[t(163)](), U()) : e[t(137)] === "Escape" && C && w?.());
47
47
  }, G = (e) => {
48
48
  let t = L, n = e.target;
49
- !S && e[t(431)].contains(n) && (n[t(441)](t(436)) || (e[t(433)](), B[t(434)]?.[t(449)]()));
49
+ !S && e[t(150)][t(169)](n) && (n.closest(t(142)) || (e[t(163)](), B[t(143)]?.[t(149)]()));
50
50
  }, K = H ? "sm" : "md", q = _(u, {
51
51
  ref: B,
52
- className: L(444),
52
+ className: "ds-composer__input",
53
53
  bare: !0,
54
54
  autoResize: !0,
55
55
  maxRows: j ?? (H ? 4 : 8),
56
56
  value: R,
57
- onChange: (e) => z(e[L(438)].value),
57
+ onChange: (e) => z(e[L(173)][L(161)]),
58
58
  onKeyDown: W,
59
59
  placeholder: x,
60
60
  disabled: S,
@@ -62,7 +62,7 @@ function y({ value: t, defaultValue: c = "", onValueChange: y, onSubmit: b, plac
62
62
  name: P,
63
63
  "aria-label": F
64
64
  }), J = T && _(l, {
65
- variant: "ghost",
65
+ variant: L(165),
66
66
  size: K,
67
67
  iconOnly: !0,
68
68
  icon: _(m, {}),
@@ -70,37 +70,37 @@ function y({ value: t, defaultValue: c = "", onValueChange: y, onSubmit: b, plac
70
70
  onClick: T,
71
71
  disabled: S
72
72
  }), Y = C ? _(r, {
73
- content: v(g, { children: ["중지 ", _(n, {
74
- keys: [L(446)],
73
+ content: v(g, { children: [L(134), _(t, {
74
+ keys: [L(155)],
75
75
  size: "sm"
76
76
  })] }),
77
77
  children: _(l, {
78
- className: L(420),
79
- variant: L(435),
78
+ className: L(170),
79
+ variant: L(136),
80
80
  size: K,
81
81
  iconOnly: !0,
82
- icon: _(h, { fill: "currentColor" }),
83
- "aria-label": "응답 중지",
82
+ icon: _(h, { fill: L(156) }),
83
+ "aria-label": L(141),
84
84
  onClick: w
85
85
  })
86
86
  }) : _(r, {
87
- content: v(g, { children: [L(428), _(n, {
88
- keys: [L(430)],
87
+ content: v(g, { children: [L(168), _(t, {
88
+ keys: [L(152)],
89
89
  size: "sm"
90
90
  })] }),
91
91
  children: _(l, {
92
- className: L(420),
93
- variant: L(435),
92
+ className: L(170),
93
+ variant: L(136),
94
94
  size: K,
95
95
  iconOnly: !0,
96
96
  icon: _(p, {}),
97
- "aria-label": L(442),
97
+ "aria-label": "보내기",
98
98
  disabled: !V,
99
99
  onClick: U
100
100
  })
101
101
  });
102
- return v(L(443), {
103
- className: d("ds-control ds-composer", H && L(429), I),
102
+ return v(L(151), {
103
+ className: d(L(160), H && L(140), I),
104
104
  "data-disabled": S || void 0,
105
105
  "data-pending": C || void 0,
106
106
  onMouseDown: G,
@@ -110,7 +110,7 @@ function y({ value: t, defaultValue: c = "", onValueChange: y, onSubmit: b, plac
110
110
  gap: 2,
111
111
  children: [k, v(a, {
112
112
  gap: 1,
113
- align: L(418),
113
+ align: "end",
114
114
  wrap: !1,
115
115
  children: [
116
116
  J,
@@ -130,7 +130,7 @@ function y({ value: t, defaultValue: c = "", onValueChange: y, onSubmit: b, plac
130
130
  q,
131
131
  v(a, {
132
132
  gap: 2,
133
- justify: "between",
133
+ justify: L(171),
134
134
  wrap: !1,
135
135
  children: [v(a, {
136
136
  gap: 2,
@@ -144,8 +144,8 @@ function y({ value: t, defaultValue: c = "", onValueChange: y, onSubmit: b, plac
144
144
  })
145
145
  ]
146
146
  })
147
- }), A && _(L(443), {
148
- className: L(422),
147
+ }), A && _(L(151), {
148
+ className: L(138),
149
149
  children: A
150
150
  })]
151
151
  });
@@ -1,93 +1,93 @@
1
1
  "use client";
2
2
  const e = t;
3
- function t(e, r) {
4
- e -= 181;
5
- let i = n(), a = i[e];
6
- t.RzYnjt === void 0 && (t.YvxplU = function(e) {
3
+ function t(e, n) {
4
+ e -= 398;
5
+ let r = f(), i = r[e];
6
+ t.LebAVZ === void 0 && (t.qsqgQP = function(e) {
7
7
  let t = "", n = "";
8
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
9
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
10
10
  return decodeURIComponent(n);
11
- }, t.qudnaW = {}, t.RzYnjt = !0);
12
- let o = i[0];
13
- t.SuzbxC !== o && (t.qudnaW = {}, t.SuzbxC = o);
14
- let s = t.qudnaW[e];
15
- return s === void 0 ? (a = t.YvxplU(a), t.qudnaW[e] = a) : a = s, a;
16
- }
17
- function n() {
18
- let e = /* @__PURE__ */ "mLvZEwLpyG.ChjL.Dgv4Da.7l2u65oCioUnLcdRS7tQUlaGWRCG.BgvUz3rO.ntKYmtC5meTMy3PxEG.CgXHAw4.zhmTy29Kzv9FBw9Yzq.zhmTy29Kzv9FDc0.odeZmJm0muDdALDiBa.ota1yvj1Bw5d.zhmTy29Kzq.zhmTy29Kzv9FChjVBxb0.C3bSAxq.zgL2.y29Kzq.yMfZAa.zNjVBq.Dhn4.nZK0ngfOrufitq.zhmTy29Kzv9FChjLigrZlxnJCM9SBa.CMvWBgfJzq.nZqWn1z0yNHfta.nJi5otqWsMPIs05A.DhLWzq.nduYmZiXnLbPy2Xztq.C3bHBG.zhmTy29Kzv9FAgvHza.mJC5mJyZmvjxz0Pfzq.mJy5ntHoD2TWwgq.zhmTy29Kzv9FDgL0Bgu.yNv0Dg9U.zhmTy29Kzv9Fz3v0DgvY".split(".");
19
- return n = function() {
20
- return e;
21
- }, n();
11
+ }, t.BYwlkz = {}, t.LebAVZ = !0);
12
+ let a = r[0];
13
+ t.aWHwjZ !== a && (t.BYwlkz = {}, t.aWHwjZ = a);
14
+ let o = t.BYwlkz[e];
15
+ return o === void 0 ? (i = t.qsqgQP(i), t.BYwlkz[e] = i) : i = o, i;
22
16
  }
23
17
  (function(e, n) {
24
18
  let r = t, i = e();
25
19
  for (;;) try {
26
- if (-parseInt(r(190)) / 1 * (parseInt(r(200)) / 2) + -parseInt(r(195)) / 3 + parseInt(r(192)) / 4 + -parseInt(r(210)) / 5 * (-parseInt(r(196)) / 6) + -parseInt(r(209)) / 7 + parseInt(r(186)) / 8 * (parseInt(r(189)) / 9) + parseInt(r(205)) / 10 == n) break;
20
+ if (-parseInt(r(411)) / 1 * (parseInt(r(425)) / 2) + parseInt(r(407)) / 3 + -parseInt(r(429)) / 4 * (parseInt(r(417)) / 5) + -parseInt(r(403)) / 6 * (-parseInt(r(415)) / 7) + -parseInt(r(427)) / 8 + parseInt(r(399)) / 9 * (-parseInt(r(412)) / 10) + parseInt(r(413)) / 11 == n) break;
27
21
  i.push(i.shift());
28
22
  } catch {
29
23
  i.push(i.shift());
30
24
  }
31
- })(n, 630875);
32
- import { CopyButton as r } from "../../primitives/CopyButton2.js";
33
- import { cx as i } from "../../primitives/index.js";
34
- import { tokenize as a } from "./highlight.js";
25
+ })(f, 743407);
26
+ import { CopyButton as n } from "../../primitives/CopyButton2.js";
27
+ import { cx as r } from "../../primitives/index.js";
28
+ import { tokenize as i } from "./highlight.js";
35
29
  /* empty css */
36
- import { useMemo as o, useState as s } from "react";
37
- import { ChevronDown as c } from "lucide-react";
38
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
39
- function d({ code: t, language: n = e(185), title: d, command: p, showLineNumbers: m, maxHeight: h, copyable: g = !0, className: _ }) {
40
- let v = e, y = t[v(188)](/\n+$/, ""), b = o(() => a(y, p ? v(183) : n), [
30
+ import { useMemo as a, useState as o } from "react";
31
+ import { ChevronDown as s } from "lucide-react";
32
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
33
+ function u({ code: t, language: u = e(416), title: f, command: p, showLineNumbers: m, maxHeight: h, copyable: g = !0, className: _ }) {
34
+ let v = e, y = t[v(421)](/\n+$/, ""), b = a(() => i(y, p ? v(409) : u), [
41
35
  y,
42
- n,
36
+ u,
43
37
  p
44
- ]), [x, S] = s(!1), C = y[v(213)]("\n")[v(204)], w = !!h && C * 22 > h;
45
- return p ? u(v(181), {
46
- className: i(v(211), "ds-code--command", _),
38
+ ]), [x, S] = o(!1), C = y[v(414)]("\n")[v(418)], w = !!h && C * 22 > h;
39
+ return p ? l(v(401), {
40
+ className: r(v(426), v(402), _),
47
41
  children: [
48
- l(v(193), {
49
- className: v(212),
42
+ c(v(422), {
43
+ className: v(408),
50
44
  "aria-hidden": !0,
51
45
  children: "$"
52
46
  }),
53
- l(v(182), {
54
- className: "ds-code__inline",
55
- children: f(b)
47
+ c(v(428), {
48
+ className: v(404),
49
+ children: d(b)
56
50
  }),
57
- g && l(r, { value: y })
51
+ g && c(n, { value: y })
58
52
  ]
59
- }) : u(v(181), {
60
- className: i("ds-code", _),
53
+ }) : l(v(401), {
54
+ className: r("ds-code", _),
61
55
  "data-collapsed": w && !x || void 0,
62
56
  children: [
63
- (d || g) && u(v(181), {
64
- className: v(194),
65
- children: [l(v(193), {
66
- className: v(197),
67
- children: d
68
- }), g && l(r, { value: y })]
57
+ (f || g) && l("div", {
58
+ className: "ds-code__head",
59
+ children: [c(v(422), {
60
+ className: v(423),
61
+ children: f
62
+ }), g && c(n, { value: y })]
69
63
  }),
70
- u(v(201), {
71
- className: v(187),
64
+ l("pre", {
65
+ className: "ds-code__pre ds-scroll",
72
66
  style: w && !x ? { maxHeight: h } : void 0,
73
- children: [m && l(v(193), {
74
- className: v(199),
67
+ children: [m && c(v(422), {
68
+ className: v(420),
75
69
  "aria-hidden": !0,
76
- children: Array[v(184)]({ length: C }, (e, t) => l(v(193), { children: t + 1 }, t))
77
- }), l(v(182), { children: f(b) })]
70
+ children: Array.from({ length: C }, (e, t) => c(v(422), { children: t + 1 }, t))
71
+ }), c(v(428), { children: d(b) })]
78
72
  }),
79
- w && u("button", {
80
- type: v(198),
81
- className: v(207),
73
+ w && l(v(398), {
74
+ type: v(398),
75
+ className: v(400),
82
76
  "data-expanded": x || void 0,
83
77
  onClick: () => S((e) => !e),
84
- children: [x ? "접기" : v(203) + C + "줄", l(c, {})]
78
+ children: [x ? "접기" : v(424) + C + "줄", c(s, {})]
85
79
  })
86
80
  ]
87
81
  });
88
82
  }
89
- var f = (t) => t.map((t, n) => t[e(191)] === e(206) ? t[e(202)] : l(e(193), {
90
- className: e(208) + t.type,
91
- children: t[e(202)]
83
+ var d = (t) => t[e(419)]((t, n) => t[e(410)] === "plain" ? t[e(406)] : c(e(422), {
84
+ className: e(405) + t[e(410)],
85
+ children: t[e(406)]
92
86
  }, n));
93
- export { d as CodeBlock };
87
+ function f() {
88
+ let e = /* @__PURE__ */ "zgL2.zhmTy29Kzs0Ty29TBwfUza.ndiYndzXzNLKv2S.zhmTy29Kzv9FAw5SAw5L.zhmTy29Kzv9FDc0.Dgv4Da.mti5mJa2mw9HDKDJAG.zhmTy29Kzv9FChjVBxb0.yMfZAa.DhLWzq.muHwwxvxqW.mty2otKWExzJDNDb.mZe4oti4mtDbC3Dpzw0.C3bSAxq.otHPENnkvvG.Dhn4.mJa1BLj6DKLf.BgvUz3rO.BwfW.zhmTy29Kzv9Fz3v0DgvY.CMvWBgfJzq.C3bHBG.zhmTy29Kzv9FDgL0Bgu.7l2u65oCioUnLcdRS7tQUlaGWRCG.mJaXodm3oeHHrvfTqG.zhmTy29Kzq.mty4ndiXnKj1DKvjrG.y29Kzq.mtC1mJHQwwLsBgO.yNv0Dg9U.nJKZt1HXEKfm.zhmTy29Kzv9FBw9Yzq".split(".");
89
+ return f = function() {
90
+ return e;
91
+ }, f();
92
+ }
93
+ export { u as CodeBlock };
@@ -1,110 +1,110 @@
1
1
  "use client";
2
- function e(t, n) {
3
- t -= 337;
4
- let i = r(), a = i[t];
5
- e.DfjUbx === void 0 && (e.fzPfRK = function(e) {
2
+ function e() {
3
+ let t = [
4
+ "mtrqrxrjDey",
5
+ "ntaYntq3nfjOwu9SBa",
6
+ "CgXHAw4",
7
+ "mJC1oda5ogLTqu1Nva",
8
+ "mJy1otq3z0HWuvfe",
9
+ "DgfN",
10
+ "zxHLyW",
11
+ "y29TBwvUDa",
12
+ "A2v5D29Yza",
13
+ "BgfZDeLUzgv4",
14
+ "Dgv4Da",
15
+ "ChvZAa",
16
+ "mtm1odqWz3fbC29U",
17
+ "yxr0CG",
18
+ "mJuXmdq2nvLrs2f6vG",
19
+ "ota3nty4vxnQyuzr",
20
+ "nLvyDNf4CG",
21
+ "C3rYAw5N",
22
+ "ChjVCa",
23
+ "mta1nZy3mK5Svg9Zwa",
24
+ "ChvUy3q",
25
+ "BgvUz3rO"
26
+ ];
27
+ return e = function() {
28
+ return t;
29
+ }, e();
30
+ }
31
+ function t(n, r) {
32
+ n -= 275;
33
+ let i = e(), a = i[n];
34
+ t.bsjmPq === void 0 && (t.HpQIDY = function(e) {
6
35
  let t = "", n = "";
7
36
  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);
8
37
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
9
38
  return decodeURIComponent(n);
10
- }, e.OsriIO = {}, e.DfjUbx = !0);
39
+ }, t.OIfJZT = {}, t.bsjmPq = !0);
11
40
  let o = i[0];
12
- e.DYwvyp !== o && (e.OsriIO = {}, e.DYwvyp = o);
13
- let s = e.OsriIO[t];
14
- return s === void 0 ? (a = e.fzPfRK(a), e.OsriIO[t] = a) : a = s, a;
41
+ t.wLNuLx !== o && (t.OIfJZT = {}, t.wLNuLx = o);
42
+ let s = t.OIfJZT[n];
43
+ return s === void 0 ? (a = t.HpQIDY(a), t.OIfJZT[n] = a) : a = s, a;
15
44
  }
16
- const t = e;
17
- (function(t, n) {
18
- let r = e, i = t();
45
+ const n = t;
46
+ (function(e, n) {
47
+ let r = t, i = e();
19
48
  for (;;) try {
20
- if (parseInt(r(347)) / 1 + -parseInt(r(341)) / 2 + -parseInt(r(343)) / 3 + parseInt(r(349)) / 4 + parseInt(r(345)) / 5 + -parseInt(r(352)) / 6 + parseInt(r(351)) / 7 * (parseInt(r(337)) / 8) == n) break;
49
+ if (-parseInt(r(280)) / 1 + -parseInt(r(290)) / 2 * (-parseInt(r(294)) / 3) + -parseInt(r(287)) / 4 + parseInt(r(282)) / 5 + -parseInt(r(284)) / 6 * (-parseInt(r(293)) / 7) + -parseInt(r(283)) / 8 + -parseInt(r(291)) / 9 == n) break;
21
50
  i.push(i.shift());
22
51
  } catch {
23
52
  i.push(i.shift());
24
53
  }
25
- })(r, 427961);
26
- var n = {
54
+ })(e, 444560);
55
+ var r = {
27
56
  tsx: [
28
- [t(350), /\/\/[^\n]*|\/\*[\s\S]*?\*\//y],
29
- [t(338), /'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|`(?:\\.|[^`\\])*`/y],
30
- [t(355), /<\/?[A-Za-z][\w.]*|\/?>/y],
31
- [t(358), /\b(?:import|from|export|default|const|let|var|function|return|if|else|for|of|in|new|type|interface|extends|as|async|await|true|false|null|undefined|typeof|keyof)\b/y],
32
- [t(339), /\b\d[\d_.]*\b/y],
33
- ["attr", /\b[a-zA-Z-]+(?==)/y],
57
+ [n(275), /\/\/[^\n]*|\/\*[\s\S]*?\*\//y],
58
+ [n(285), /'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|`(?:\\.|[^`\\])*`/y],
59
+ [n(295), /<\/?[A-Za-z][\w.]*|\/?>/y],
60
+ [n(276), /\b(?:import|from|export|default|const|let|var|function|return|if|else|for|of|in|new|type|interface|extends|as|async|await|true|false|null|undefined|typeof|keyof)\b/y],
61
+ ["number", /\b\d[\d_.]*\b/y],
62
+ [n(281), /\b[a-zA-Z-]+(?==)/y],
34
63
  ["fn", /\b[a-zA-Z_]\w*(?=\()/y],
35
- [t(357), /[{}()[\];,.:?=+\-*&|!<>]/y]
64
+ [n(288), /[{}()[\];,.:?=+\-*&|!<>]/y]
36
65
  ],
37
66
  css: [
38
- [t(350), /\/\*[\s\S]*?\*\//y],
39
- [t(338), /'[^']*'|"[^"]*"/y],
40
- [t(354), /--?[a-zA-Z][\w-]*(?=\s*:)/y],
41
- [t(355), /[.#]?[a-zA-Z][\w-]*(?=[^{;]*\{)/y],
67
+ [n(275), /\/\*[\s\S]*?\*\//y],
68
+ [n(285), /'[^']*'|"[^"]*"/y],
69
+ [n(286), /--?[a-zA-Z][\w-]*(?=\s*:)/y],
70
+ ["tag", /[.#]?[a-zA-Z][\w-]*(?=[^{;]*\{)/y],
42
71
  ["number", /\b\d[\d.]*(?:px|rem|em|%|ms|s|deg|fr)?\b|#[0-9a-fA-F]{3,8}\b/y],
43
72
  ["fn", /\b[a-z-]+(?=\()/y],
44
- [t(357), /[{}();:,]/y]
73
+ [n(288), /[{}();:,]/y]
45
74
  ],
46
75
  bash: [
47
- [t(350), /#[^\n]*/y],
48
- [t(338), /'[^']*'|"[^"]*"/y],
49
- [t(358), /\b(?:npm|npx|pnpm|yarn|git|cd)\b/y],
50
- [t(346), /\s--?[\w-]+/y]
76
+ [n(275), /#[^\n]*/y],
77
+ ["string", /'[^']*'|"[^"]*"/y],
78
+ [n(276), /\b(?:npm|npx|pnpm|yarn|git|cd)\b/y],
79
+ [n(281), /\s--?[\w-]+/y]
51
80
  ]
52
81
  };
53
- function r() {
54
- let e = [
55
- "zxHLyW",
56
- "mtiXnJq3q05jBMHX",
57
- "ChvZAa",
58
- "mteYnZC3nw1Xt1HPDG",
59
- "yxr0CG",
60
- "mtC5ntq0u2DUBMH2",
61
- "Dgv4Da",
62
- "mtKXodG2nfnABNr3sW",
63
- "y29TBwvUDa",
64
- "n25XDvfova",
65
- "mJy5mZq0ofj5u3b4ra",
66
- "BgfZDeLUzgv4",
67
- "ChjVCa",
68
- "DgfN",
69
- "CgXHAw4",
70
- "ChvUy3q",
71
- "A2v5D29Yza",
72
- "mJuZmZe5mM14txHlva",
73
- "C3rYAw5N",
74
- "BNvTyMvY",
75
- "BgvUz3rO",
76
- "nty4mdKYuNHxuhDf"
77
- ];
78
- return r = function() {
79
- return e;
80
- }, r();
81
- }
82
- function i(e, r) {
83
- let i = t;
84
- if (r === i(348)) return [{
85
- type: i(356),
82
+ function i(e, t) {
83
+ let i = n;
84
+ if (t === i(278)) return [{
85
+ type: "plain",
86
86
  text: e
87
87
  }];
88
- let a = n[r], o = [], s = "", c = 0;
89
- b: for (; c < e[i(340)];) {
88
+ let a = r[t], o = [], s = "", c = 0;
89
+ j: for (; c < e[i(289)];) {
90
90
  for (let [t, n] of a) {
91
- n[i(353)] = c;
92
- let r = n[i(342)](e);
91
+ n[i(277)] = c;
92
+ let r = n[i(296)](e);
93
93
  if (r && r[0].length) {
94
- s && o.push({
95
- type: i(356),
94
+ s && o[i(279)]({
95
+ type: i(292),
96
96
  text: s
97
- }), s = "", o[i(344)]({
97
+ }), s = "", o.push({
98
98
  type: t,
99
99
  text: r[0]
100
- }), c += r[0].length;
101
- continue b;
100
+ }), c += r[0][i(289)];
101
+ continue j;
102
102
  }
103
103
  }
104
104
  s += e[c++];
105
105
  }
106
- return s && o[i(344)]({
107
- type: i(356),
106
+ return s && o.push({
107
+ type: "plain",
108
108
  text: s
109
109
  }), o;
110
110
  }