@iamfiro/design 0.3.2 → 0.3.4

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/INDEX.md +1 -1
  2. package/agents/brand-icon/AGENTS.md +1 -1
  3. package/agents/social-login-button/AGENTS.md +4 -3
  4. package/lib/components/Accordion/Accordion2.js +87 -87
  5. package/lib/components/ActionBar/ActionBar2.js +42 -44
  6. package/lib/components/Alert/Alert2.js +61 -61
  7. package/lib/components/AppShell/AppShell2.js +70 -71
  8. package/lib/components/AreaChart/AreaChart.js +38 -40
  9. package/lib/components/BarChart/BarChart2.js +126 -126
  10. package/lib/components/BarList/BarList2.js +95 -95
  11. package/lib/components/Breadcrumb/Breadcrumb2.js +68 -66
  12. package/lib/components/Calendar/Calendar2.js +164 -164
  13. package/lib/components/Calendar/DatePicker2.js +103 -102
  14. package/lib/components/Calendar/date.js +64 -66
  15. package/lib/components/Card/Card2.js +67 -67
  16. package/lib/components/CardFrame/CardFrame2.js +43 -51
  17. package/lib/components/Chart/ChartParts.js +94 -94
  18. package/lib/components/Chart/chart2.js +52 -52
  19. package/lib/components/Chart/useChartInteraction.js +54 -54
  20. package/lib/components/ChatBubble/ChatBubble2.js +92 -92
  21. package/lib/components/ChatBubble/formatChatTime.js +35 -41
  22. package/lib/components/ChatComposer/ChatComposer2.js +63 -63
  23. package/lib/components/CodeBlock/CodeBlock2.js +61 -61
  24. package/lib/components/CodeBlock/highlight.js +84 -84
  25. package/lib/components/ColorPicker/ColorPicker2.js +387 -386
  26. package/lib/components/ColorPicker/color.js +71 -71
  27. package/lib/components/ColorPicker/presets.js +41 -46
  28. package/lib/components/Combobox/Combobox2.js +117 -118
  29. package/lib/components/CommandMenu/CommandMenu.js +127 -127
  30. package/lib/components/Comment/Comment2.js +86 -60
  31. package/lib/components/ContextMenu/ContextMenu2.js +77 -75
  32. package/lib/components/DataGrid/DataGrid2.js +1192 -1190
  33. package/lib/components/DataGrid/GridPopover.js +94 -94
  34. package/lib/components/DataGrid/anchor.js +34 -31
  35. package/lib/components/DataGrid/model.js +284 -283
  36. package/lib/components/DataGrid/panels.js +398 -399
  37. package/lib/components/DataGrid/typeMeta.js +51 -50
  38. package/lib/components/DataGrid/types.js +38 -39
  39. package/lib/components/DescriptionList/DescriptionList2.js +103 -103
  40. package/lib/components/Dialog/AlertDialog.js +79 -78
  41. package/lib/components/Dialog/Dialog2.js +59 -59
  42. package/lib/components/Dialog/modal.js +44 -46
  43. package/lib/components/Drawer/Drawer2.js +130 -129
  44. package/lib/components/DropdownMenu/DropdownMenu2.js +235 -233
  45. package/lib/components/DropdownMenu/menuCore.js +69 -42
  46. package/lib/components/Dropzone/Dropzone2.js +79 -78
  47. package/lib/components/EmptyState/EmptyState2.js +34 -35
  48. package/lib/components/FileChip/FileChip2.js +73 -73
  49. package/lib/components/FileUpload/FileUpload.js +159 -159
  50. package/lib/components/FilterChips/FilterChips2.js +61 -61
  51. package/lib/components/FunnelChart/FunnelChart2.js +161 -161
  52. package/lib/components/FunnelChart/funnel.js +48 -44
  53. package/lib/components/Highlight/Highlight2.js +43 -43
  54. package/lib/components/HoverCard/HoverCard.js +59 -84
  55. package/lib/components/InlineDiff/InlineDiff2.js +112 -112
  56. package/lib/components/InlineDiff/diff.js +90 -90
  57. package/lib/components/InlineDiff/useDiffReview.js +64 -63
  58. package/lib/components/Kanban/Kanban2.js +386 -387
  59. package/lib/components/Kanban/KanbanCard.js +70 -95
  60. package/lib/components/Kanban/move.js +50 -46
  61. package/lib/components/LineChart/LineChart2.js +211 -211
  62. package/lib/components/List/List2.js +53 -54
  63. package/lib/components/Listbox/Listbox2.js +115 -115
  64. package/lib/components/Marker/Marker2.js +56 -61
  65. package/lib/components/Menubar/Menubar2.js +144 -141
  66. package/lib/components/MultiSelect/MultiSelect2.js +108 -108
  67. package/lib/components/NavigationMenu/NavigationMenu2.js +298 -299
  68. package/lib/components/NoticeStack/NoticeStack2.js +84 -84
  69. package/lib/components/NumberStepper/NumberStepper2.js +65 -66
  70. package/lib/components/OtpInput/OtpInput2.js +70 -69
  71. package/lib/components/Pagination/Pagination2.js +106 -106
  72. package/lib/components/Pagination/paginationRange.js +37 -39
  73. package/lib/components/PhoneInput/PhoneInput.js +87 -88
  74. package/lib/components/PieChart/PieChart2.js +160 -160
  75. package/lib/components/PieChart/arc.js +65 -62
  76. package/lib/components/PieChart/useArcTween.js +53 -60
  77. package/lib/components/Popover/Popover2.js +62 -62
  78. package/lib/components/ProgressTracker/ProgressTracker2.js +121 -121
  79. package/lib/components/Rating/Rating2.js +82 -81
  80. package/lib/components/Resizable/Resizable2.js +126 -127
  81. package/lib/components/Resizable/layout.js +73 -73
  82. package/lib/components/ScaledPreview/ScaledPreview2.js +68 -67
  83. package/lib/components/ScatterChart/ScatterChart2.js +214 -213
  84. package/lib/components/ScatterChart/scatter.js +47 -49
  85. package/lib/components/ScrollArea/ScrollArea2.js +117 -118
  86. package/lib/components/Select/Select2.js +78 -79
  87. package/lib/components/Sidebar/Sidebar2.js +69 -69
  88. package/lib/components/Skeleton/Skeleton2.js +57 -57
  89. package/lib/components/Slider/Slider2.js +73 -74
  90. package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -68
  91. package/lib/components/SparkChart/SparkChart2.js +145 -145
  92. package/lib/components/SparkChart/spark.js +64 -42
  93. package/lib/components/Sparkbar/Sparkbar2.js +60 -60
  94. package/lib/components/SplitView/SplitView2.js +51 -52
  95. package/lib/components/Stat/Stat2.js +90 -90
  96. package/lib/components/StepList/StepList2.js +70 -70
  97. package/lib/components/Table/Table2.js +70 -70
  98. package/lib/components/Tabs/Tabs2.js +81 -81
  99. package/lib/components/TagInput/TagInput2.js +220 -217
  100. package/lib/components/TimePicker/TimePicker2.js +187 -186
  101. package/lib/components/TimePicker/time.js +63 -62
  102. package/lib/components/Timeline/Timeline2.js +199 -199
  103. package/lib/components/Timeline/scale.js +67 -64
  104. package/lib/components/Toast/Toaster.js +100 -98
  105. package/lib/components/Toast/store.js +90 -94
  106. package/lib/components/ToggleGroup/ToggleGroup2.js +76 -76
  107. package/lib/components/Toolbar/Toolbar2.js +163 -161
  108. package/lib/components/Tracker/Tracker2.js +82 -82
  109. package/lib/components/TreeDiagram/TreeDiagram2.js +123 -124
  110. package/lib/components/TreeView/TreeView2.js +154 -152
  111. package/lib/hooks/timing.js +31 -30
  112. package/lib/hooks/useControllableState.js +37 -38
  113. package/lib/hooks/useCountdown.js +53 -56
  114. package/lib/hooks/useDigitInput.js +66 -41
  115. package/lib/hooks/useDismiss.js +55 -58
  116. package/lib/hooks/useElapsed.js +57 -55
  117. package/lib/hooks/useFloating.js +44 -44
  118. package/lib/hooks/useFocusTrap.js +70 -46
  119. package/lib/hooks/usePresence.js +23 -22
  120. package/lib/hooks/usePressToOpen.js +51 -51
  121. package/lib/hooks/useScrollLock.js +57 -58
  122. package/lib/hooks/useSelection.js +49 -52
  123. package/lib/index.js +65 -65
  124. package/lib/primitives/AspectRatio2.js +57 -57
  125. package/lib/primitives/BrandIcon.js +189 -158
  126. package/lib/primitives/ColorDot2.js +50 -45
  127. package/lib/primitives/CopyButton2.js +52 -50
  128. package/lib/primitives/CountBadge2.js +53 -55
  129. package/lib/primitives/Countdown2.js +28 -25
  130. package/lib/primitives/Delta2.js +41 -41
  131. package/lib/primitives/Elapsed.js +47 -47
  132. package/lib/primitives/FileIcon2.js +86 -86
  133. package/lib/primitives/Flag2.js +122 -122
  134. package/lib/primitives/IconStack2.js +55 -31
  135. package/lib/primitives/IconTile2.js +43 -43
  136. package/lib/primitives/Kbd2.js +55 -55
  137. package/lib/primitives/Layout2.js +78 -78
  138. package/lib/primitives/Link2.js +39 -36
  139. package/lib/primitives/MaskedText2.js +74 -52
  140. package/lib/primitives/Progress2.js +67 -66
  141. package/lib/primitives/RelativeTime.js +54 -61
  142. package/lib/primitives/SearchInput2.js +45 -45
  143. package/lib/primitives/SelectorButton2.js +72 -76
  144. package/lib/primitives/Spinner2.js +56 -56
  145. package/lib/primitives/StatusIcon2.js +63 -63
  146. package/lib/primitives/Swatch2.js +55 -61
  147. package/lib/primitives/Tooltip2.js +78 -78
  148. package/lib/primitives/Typography2.js +53 -53
  149. package/lib/primitives/formatCountdown.js +30 -29
  150. package/lib/primitives/formatElapsed.js +46 -49
  151. package/lib/primitives/formatRelativeTime.js +76 -50
  152. package/lib/primitives/hotkey.js +80 -80
  153. package/lib/primitives/index.js +169 -168
  154. package/lib/primitives/maskValue.js +55 -50
  155. package/lib/style.css +1 -1
  156. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
  157. package/lib/types/primitives/BrandIcon.d.ts +1 -1
  158. package/package.json +1 -1
@@ -1,224 +1,225 @@
1
1
  "use client";
2
- const e = c;
2
+ const e = w;
3
3
  (function(e, t) {
4
- let n = c, r = e();
4
+ let n = w, r = e();
5
5
  for (;;) try {
6
- if (-parseInt(n(487)) / 1 + -parseInt(n(412)) / 2 * (parseInt(n(394)) / 3) + parseInt(n(462)) / 4 + -parseInt(n(406)) / 5 * (parseInt(n(395)) / 6) + -parseInt(n(443)) / 7 + parseInt(n(410)) / 8 * (parseInt(n(467)) / 9) + -parseInt(n(399)) / 10 * (-parseInt(n(439)) / 11) == t) break;
6
+ if (parseInt(n(428)) / 1 * (-parseInt(n(421)) / 2) + parseInt(n(369)) / 3 * (-parseInt(n(365)) / 4) + -parseInt(n(418)) / 5 * (parseInt(n(449)) / 6) + parseInt(n(394)) / 7 + parseInt(n(419)) / 8 + -parseInt(n(436)) / 9 + parseInt(n(380)) / 10 == t) break;
7
7
  r.push(r.shift());
8
8
  } catch {
9
9
  r.push(r.shift());
10
10
  }
11
- })(P, 135004);
11
+ })(D, 203626);
12
12
  import { Tooltip as t } from "../../primitives/Tooltip2.js";
13
13
  import { Text as n } from "../../primitives/Typography2.js";
14
14
  import { CopyButton as r } from "../../primitives/CopyButton2.js";
15
15
  import { Grid as i, Inline as a, Stack as o } from "../../primitives/Layout2.js";
16
16
  import { useControllableState as s } from "../../hooks/useControllableState.js";
17
- function c(e, t) {
18
- e -= 390;
19
- let n = P(), r = n[e];
20
- c.FjCEAS === void 0 && (c.Gthyel = function(e) {
17
+ import { Button as c, Input as l, SegmentedControl as u, cx as d } from "../../primitives/index.js";
18
+ import { Popover as ee } from "../Popover/Popover2.js";
19
+ import { clamp as f, formatColor as te, formatHex as p, hslToRgb as m, hsvToRgb as h, isLight as g, parseColor as _, parseHex as v, rgbToHsl as y, rgbToHsv as b } from "./color.js";
20
+ /* empty css */
21
+ import { CHART_COLOR_PRESETS as ne } from "./presets.js";
22
+ import { useLayoutEffect as x, useRef as S, useState as C } from "react";
23
+ function w(e, t) {
24
+ e -= 365;
25
+ let n = D(), r = n[e];
26
+ w.ufqCSB === void 0 && (w.lonbVt = function(e) {
21
27
  let t = "", n = "";
22
28
  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);
23
29
  for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
24
30
  return decodeURIComponent(n);
25
- }, c.sySgaa = {}, c.FjCEAS = !0);
31
+ }, w.bXQlWE = {}, w.ufqCSB = !0);
26
32
  let i = n[0];
27
- c.pWlKZS !== i && (c.sySgaa = {}, c.pWlKZS = i);
28
- let a = c.sySgaa[e];
29
- return a === void 0 ? (r = c.Gthyel(r), c.sySgaa[e] = r) : r = a, r;
33
+ w.OlOlYP !== i && (w.bXQlWE = {}, w.OlOlYP = i);
34
+ let a = w.bXQlWE[e];
35
+ return a === void 0 ? (r = w.lonbVt(r), w.bXQlWE[e] = r) : r = a, r;
30
36
  }
31
- import { Button as l, Input as u, SegmentedControl as d, cx as f } from "../../primitives/index.js";
32
- import { Popover as ee } from "../Popover/Popover2.js";
33
- import { clamp as p, formatColor as m, formatHex as h, hslToRgb as g, hsvToRgb as _, isLight as v, parseColor as y, parseHex as te, rgbToHsl as ne, rgbToHsv as b } from "./color.js";
34
- /* empty css */
35
- import { CHART_COLOR_PRESETS as x } from "./presets.js";
36
- import { useLayoutEffect as S, useRef as C, useState as w } from "react";
37
37
  import { Check as T, ChevronDown as re, Pipette as E } from "lucide-react";
38
- import { Fragment as ie, jsx as D, jsxs as O } from "react/jsx-runtime";
39
- var ae = e(438), k = (e) => {
40
- let t = y(e);
38
+ function D() {
39
+ let e = /* @__PURE__ */ "CMvWBgfJzq.AM9PBG.zhmTy29SB3iTCgLJA2vYx19JAgvJAW.C2XPzgvY.7lsi66gDkddIGjmYntuP.CMvSyxrLzfrHCMDLDa.mJa4mZy1BLPjv0H5.ntiYnJG4DejKyNHw.BgfIzwW.mti5mJGYquDHtuHu.sevyioQWKG.7yYm656rkddIGjmYntuP.D2LKDgG.zhmTy29SB3iTCgLJA2vYx19OyxnO.rw5K.A2v5.nu9OqKDnqG.rw50zxi.z2HVC3q.7lge64+e7jMaioUWNEQ4Sa.z3jVDxa.yNv0Dg9U.zhmTy29SB3iTzMLLBgqTlq.y2fWDgLVBG.mty2mdK3n0ftqwPrAW.ioYeOo2dNq.mUYWQoYBKcdSIQZRNBZSNBtRJzq.y3vYCMvUDa.zhmTy29SB3iTCgLJA2vYx190CMfJAYbKCY1JB2XVCI1WAwnRzxjFx3rYywnRls1HBhbOyq.DgvZDa.C3bHBG.y2fUy2vS.BgvUz3rO.zMLSDgvY.zhmTy29SB3iTzMLLBgrFx2nOzxzYB24.C2vJB25Kyxj5.AhnS.mZbxBe5cA1y.DgvYDgLHCNK.zhmTy29UDhjVBa.ChjLDMvUDerLzMf1Bhq.sg9Tzq.DMfYka.C2vSzwn0.BwfW.BgfIzwWTEhm.AgfUzgXLCNm.zhmTy29SB3iTzMLLBgrFx2nOAxa.zhmTy29SB3iTzMLLBgq.y2XPzw50wa.C3bSAxq.zhjHz2DPBMC.7lge64+ekcuP.7lwC6RE8ioYcRoYAQq.AxndB21WB3nPBMC.yMv0D2vLBG.Dw5KzwzPBMvK.7ioj7iobkddIGjmZnJaP.zgLHBg9N.CM91BMq.zhmTy29SB3iTCgLJA2vYx19YywLS.7iojioYeOo2dNq.zhmTy29SB3iTCgLJA2vYx190AhvTyIbKCY1JB2XVCI1WAwnRzxjFx3rODw1Ils10CMfJAW.nhrIsvHtBq.67MO6RcvkddIGjmYntuP.Agv4.z2v0uhjVCgvYDhLwywX1zq.nta3mdaZvg9AAuDK.7zMu66M07jEq7isCioYdIsdQS6dRPBtQUla.7ioj7iobia.BMf0AxzLrxzLBNq.ideWmcuGntaLkq.sevy.zM9JDxm.C3rHCNq.6Rcsio2yLEYlNq.C2XPy2u.iZnIodjMnG.otqWndi3mgvzBvzWyG.y2vUDgvY.y2XPzw50wq.zhmTy29SB3iTCgLJA2vYx19HCMvH.Dg9mB3DLCKnHC2u.y29SB3i.6RIW67o4ioYdIq.Ag9YAxPVBNrHBa.C3rHCNrZv2L0Aa.66Qf64+ekcuP.jsWG67cD6RIWia.uKDc.zhmTy29SB3iTCgLJA2vYx19WCMv2Awv3.zhmTy29SB3iTzMLLBgrFx3zHBhvL.ntGWota5BgDrA3z4.C3rYAw5N.zgL2.zhmTy29SB3iTCgLJA2vY.zhmTy29SB3iTCgLJA2vYx19ZD2f0y2HLCW.Aw5WDxq.Cg9PBNrLCKLK.CMDI.B2zM.rxLLrhjVChbLCG.Dg9vChbLCKnHC2u.zhmTy29SB3iTCgLJA2vYx190CMfJAYbKCY1JB2XVCI1WAwnRzxjFx3rYywnRls1ODwu.DhjPBq.zw5K.rxnJyxbL.67Ai7yIS66Qf64+ekcuP.y3vYCMvUDfrHCMDLDa.AgvPz2H0".split(".");
40
+ return D = function() {
41
+ return e;
42
+ }, D();
43
+ }
44
+ import { Fragment as ie, jsx as O, jsxs as k } from "react/jsx-runtime";
45
+ var ae = e(379), A = (e) => {
46
+ let t = _(e);
41
47
  return t ? b(t) : null;
42
- }, A = (e, t) => ({
48
+ }, j = (e, t) => ({
43
49
  ...e,
44
50
  h: e.s === 0 || e.v === 0 ? t.h : e.h,
45
51
  s: e.v === 0 ? t.s : e.s
46
- }), j = (t) => Math[e(496)](t * 100);
47
- function M({ ref: e, thumbRef: t, disabled: n, onMove: r, onStart: i, onEnd: a, onCancel: o }) {
48
- let s = C(!1), [l, u] = w(!1), d = (e) => {
49
- s.current = e, u(e);
50
- }, f = (t) => {
51
- let n = c, i = e[n(390)][n(459)]();
52
- r(p((t.clientX - i[n(481)]) / i[n(441)], 0, 1), p((t.clientY - i[n(416)]) / i[n(413)], 0, 1));
52
+ }), M = (t) => Math[e(471)](t * 100);
53
+ function N({ ref: e, thumbRef: t, disabled: n, onMove: r, onStart: i, onEnd: a, onCancel: o }) {
54
+ let s = S(!1), [c, l] = C(!1), u = (e) => {
55
+ let t = w;
56
+ s[t(439)] = e, l(e);
57
+ }, d = (t) => {
58
+ let n = w, i = e[n(439)].getBoundingClientRect();
59
+ r(f((t[n(461)] - i.left) / i[n(424)], 0, 1), f((t[n(382)] - i.top) / i[n(411)], 0, 1));
53
60
  };
54
61
  return {
55
- dragging: l,
62
+ dragging: c,
56
63
  handlers: {
57
64
  onPointerDown: (e) => {
58
- let r = c;
59
- n || e[r(429)] !== 0 || (e[r(466)](), e[r(446)][r(469)](e.pointerId), d(!0), i(), f(e), t[r(390)]?.[r(427)]({ preventScroll: !0 }));
65
+ let r = w;
66
+ n || e[r(433)] !== 0 || (e[r(452)](), e[r(410)].setPointerCapture(e[r(400)]), u(!0), i(), d(e), t[r(439)]?.[r(375)]({ preventScroll: !0 }));
60
67
  },
61
68
  onPointerMove: (e) => {
62
- s.current && f(e);
69
+ s[w(439)] && d(e);
63
70
  },
64
71
  onPointerUp: () => {
65
- s[c(390)] && (d(!1), a());
72
+ s.current && (u(!1), a());
66
73
  },
67
74
  onPointerCancel: () => {
68
- s[c(390)] && (d(!1), a());
75
+ s[w(439)] && (u(!1), a());
69
76
  }
70
77
  },
71
- cancel: () => s[c(390)] ? (d(!1), o(), !0) : !1
78
+ cancel: () => s[w(439)] ? (u(!1), o(), !0) : !1
72
79
  };
73
80
  }
74
- function N({ display: t, parse: r, onPreview: i, onSettle: a, onRevert: s, onBegin: c, label: l, caption: d, leading: f, disabled: ee, maxLength: p }) {
75
- let m = e, [h, g] = w(null), _ = h !== null && r(h) === null, v = () => {
76
- g(null), a();
77
- }, y = D(u, {
81
+ function P({ display: t, parse: r, onPreview: i, onSettle: a, onRevert: s, onBegin: c, label: u, caption: d, leading: ee, disabled: f, maxLength: te }) {
82
+ let p = e, [m, h] = C(null), g = m !== null && r(m) === null, _ = () => {
83
+ h(null), a();
84
+ }, v = O(l, {
78
85
  size: "sm",
79
- value: h ?? t,
80
- "aria-label": l,
81
- invalid: _,
82
- disabled: ee,
83
- leading: f,
84
- maxLength: p,
86
+ value: m ?? t,
87
+ "aria-label": u,
88
+ invalid: g,
89
+ disabled: f,
90
+ leading: ee,
91
+ maxLength: te,
85
92
  spellCheck: !1,
86
- autoComplete: m(408),
87
- wrapperClassName: m(431),
93
+ autoComplete: p(402),
94
+ wrapperClassName: "ds-color-picker__field",
88
95
  onFocus: (e) => {
89
- let t = m;
90
- c(), e[t(446)][t(460)]();
96
+ let t = p;
97
+ c(), e[t(410)][t(455)]();
91
98
  },
92
99
  onChange: (e) => {
93
- let t = m, n = e[t(458)][t(442)];
94
- g(n);
95
- let a = r(n);
96
- a && i(a);
100
+ let t = e.target.value;
101
+ h(t);
102
+ let n = r(t);
103
+ n && i(n);
97
104
  },
98
- onBlur: v,
105
+ onBlur: _,
99
106
  onKeyDown: (e) => {
100
- let t = m;
101
- e[t(488)][t(422)] || (e[t(437)] === "Enter" ? (e[t(466)](), v()) : e[t(437)] === t(420) && h !== null && (e[t(466)](), g(null), s()));
107
+ let t = p;
108
+ e[t(372)][t(466)] || (e[t(427)] === t(429) ? (e.preventDefault(), _()) : e[t(427)] === t(408) && m !== null && (e[t(452)](), h(null), s()));
102
109
  }
103
110
  });
104
- return d ? O(o, {
111
+ return d ? k(o, {
105
112
  gap: 1,
106
- align: m(448),
107
- children: [y, D(n, {
108
- variant: "caption",
109
- tone: m(426),
113
+ align: p(381),
114
+ children: [v, O(n, {
115
+ variant: p(435),
116
+ tone: p(450),
110
117
  children: d
111
118
  })]
112
- }) : y;
119
+ }) : v;
113
120
  }
114
- function oe({ css: n, rgb: r, label: i, selected: a, disabled: o, onPick: s }) {
121
+ function F({ css: n, rgb: r, label: i, selected: a, disabled: o, onPick: s }) {
115
122
  let c = e;
116
- return D(t, {
123
+ return O(t, {
117
124
  content: i,
118
- children: D(c(429), {
125
+ children: O("button", {
119
126
  type: "button",
120
- className: c(411),
127
+ className: "ds-color-picker__swatch",
121
128
  style: { "--_c": n },
122
129
  "aria-label": i,
123
130
  "aria-pressed": a,
124
131
  disabled: o,
125
- "data-light": r && v(r) || void 0,
132
+ "data-light": r && g(r) || void 0,
126
133
  onClick: s,
127
- children: D(T, { className: c(401) })
134
+ children: O(T, { className: c(414) })
128
135
  })
129
136
  });
130
137
  }
131
- function P() {
132
- let e = /* @__PURE__ */ "ChjLDMvUDerLzMf1Bhq.mtiZntDZv2viANa.CMvWBgfJzq.C2v0ug9PBNrLCKnHChr1CMu.ideWmcuGntaLkq.z3jVDxa.zg9JDw1LBNrfBgvTzw50.C3rHCNrZv2L0Aa.67Ai7yIS66Qf64+ekcuP.zhmTy29SB3iTCgLJA2vYx190CMfJAYbKCY1JB2XVCI1WAwnRzxjFx3rYywnRls1ODwu.BgfIzwW.sfnm.zhmTy29SB3iTCgLJA2vYx19ZD2f0y2HLCW.7zMu66M07jEq7isCioYdIsdQS6dRPBtQUla.C3bHBG.BgvMDa.rxLLrhjVChbLCG.BgfIzwWTEhm.zhmTy29SB3iTCgLJA2vYx19HCMvH.zhmTy29SB3iTCgLJA2vYx19OyxnO.zhmTy29SB3iTCgLJA2vYx190AhvTyIbKCY1JB2XVCI1WAwnRzxjFx3rODw1Ils10CMfJAW.mJq0ntuZsK5AuxLr.BMf0AxzLrxzLBNq.AgfUzgXLCNm.C3rHCNq.zgL2.y29SB3i.7ioj7iobia.AhnS.sevyioQWKG.CM91BMq.66Qf64+ekcuP.BgvUz3rO.zhmTy29SB3iTzMLLBgrFx2nOzxzYB24.DMfYka.C2XPy2u.C3bSAxq.y3vYCMvUDa.Dg9vChbLCKnHC2u.CMDI.zhmTy29SB3iTCgLJA2vY.mJq4mJj5zvvcqvu.nLfNB3nWta.67Ai7yIS66Qf64+e.Agv4.AgLKzgvU.mJbJA3jPwwG.7lsi66gDkddIGjmYntuP.zhmTy29SB3iTCgLJA2vYx19JAgvJAW.AhnSka.sg9Tzq.zMLSDgvY.DgvZDa.mti3ntvVwLnpBxi.zhmTy29SB3iTzMLLBgqTlq.B2zM.7lge64+eia.mJrQrvftze8.zhmTy29SB3iTCgLJA2vYx19ZD2f0y2G.ndjztLH5D24.AgvPz2H0.AM9PBG.yMv0D2vLBG.Dg9W.CMvSyxrLzfrHCMDLDa.zhjHz2DPBMC.y2fUy2vS.rxnJyxbL.rw5K.AxndB21WB3nPBMC.7yYm656rkddIGjmYntuP.7lge64+ekcuP.BwfW.DgvYDgLHCNK.zM9JDxm.Dg9mB3DLCKnHC2u.yNv0Dg9U.Aw5WDxq.zhmTy29SB3iTCgLJA2vYx19MAwvSza.B3bLBG.ioYeOo2dNq.67Ai7yIS66Qf64+eia.zhmTy29SB3iTCgLJA2vYx19YywLS.uKDc.A2v5.iZnIodjMnG.mJu4mJq1ow5MtwTiBa.7ioj7iobkddIGjmZnJaP.D2LKDgG.DMfSDwu.nJKZmZK5uuvgzLb6.C2XPzgvY.C2vJB25Kyxj5.y3vYCMvUDfrHCMDLDa.C2HPzNrlzxK.y2vUDgvY.67MO6RcvkddIGjmYntuP.C3rYAw5N.Ag9YAxPVBNrHBa.Dw5KzwzPBMvK.DhjPBq.y29UDgfPBNm.zhmTy29SB3iTCgLJA2vYx190CMfJAYbKCY1JB2XVCI1WAwnRzxjFx3rYywnRls1HBhbOyq.sevy.zhmTy29UDhjVBa.DgfYz2v0.z2v0qM91BMrPBMDdBgLLBNrszwn0.C2vSzwn0.7lwC6RE8ioYcRoYAQq.nZi1mdq4t0zMDeHt.zhmTy29SB3iTCgLJA2vYx19WCMv2Awv3.jsWG67cD6RIWia.zw5K".split(".");
133
- return P = function() {
134
- return e;
135
- }, P();
136
- }
137
- var se = () => typeof window !== e(452) && e(482) in window ? window.EyeDropper : null, ce = [
138
+ var oe = () => typeof window !== e(468) && e(403) in window ? window.EyeDropper : null, se = [
138
139
  {
139
140
  value: "hex",
140
- label: e(456)
141
+ label: e(374)
141
142
  },
142
143
  {
143
- value: e(392),
144
- label: e(436)
144
+ value: e(401),
145
+ label: e(391)
145
146
  },
146
147
  {
147
- value: e(494),
148
- label: e(477)
148
+ value: e(448),
149
+ label: "HSL"
149
150
  }
150
151
  ];
151
- function le({ value: u, defaultValue: ee = ae, onValueChange: v, onValueCommit: x, alpha: T = !1, format: re, defaultFormat: ie = e(397), onFormatChange: P, presets: le, presetsLabel: F = "기본 색", recentColors: de, defaultRecentColors: fe = [], onRecentColorsChange: pe, showRecent: me = !0, maxRecent: he = 8, eyeDropper: ge = !0, copyable: _e = !0, disabled: I, className: ve, style: ye, "aria-label": be = "색 선택" }) {
152
- let L = e, [R, xe] = s(u, ee, v), [z, Se] = s(re, ie, P), [Ce, we] = s(de, fe, pe), [B, Te] = w(() => k(R) ?? k(ae)), [Ee, De] = w(R);
153
- if (R !== Ee) {
154
- De(R);
155
- let e = k(R);
156
- e && Te(A(e, B));
152
+ function ce({ value: l, defaultValue: ee = ae, onValueChange: g, onValueCommit: ne, alpha: T = !1, format: re, defaultFormat: D = e(367), onFormatChange: ie, presets: ce, presetsLabel: I = e(386), recentColors: ue, defaultRecentColors: de = [], onRecentColorsChange: fe, showRecent: pe = !0, maxRecent: me = 8, eyeDropper: he = !0, copyable: ge = !0, disabled: L, className: _e, style: ve, "aria-label": ye = e(473) }) {
153
+ let R = e, [z, be] = s(l, ee, g), [B, xe] = s(re, D, ie), [Se, Ce] = s(ue, de, fe), [V, we] = C(() => A(z) ?? A(ae)), [Te, Ee] = C(z);
154
+ if (z !== Te) {
155
+ Ee(z);
156
+ let e = A(z);
157
+ e && we(j(e, V));
157
158
  }
158
- let V = C(B);
159
- S(() => {
160
- let e = c;
161
- V[e(390)] = B;
159
+ let H = S(V);
160
+ x(() => {
161
+ let e = w;
162
+ H[e(439)] = V;
162
163
  });
163
- let H = (e) => h(_(e), T), U = (e) => {
164
- let t = c, n = T ? e : {
164
+ let U = (e) => p(h(e), T), W = (e) => {
165
+ let t = w, n = T ? e : {
165
166
  ...e,
166
167
  a: 1
167
168
  };
168
- V[t(390)] = n, Te(n);
169
- let r = H(n);
170
- De(r), r !== R && xe(r);
171
- }, W = () => x?.(H(V.current)), G = C(B), K = () => {
172
- let e = c;
173
- G[e(390)] = V[e(390)];
174
- }, Oe = () => {
175
- let e = c;
176
- H(G[e(390)]) !== H(V[e(390)]) && W(), G.current = V[e(390)];
177
- }, q = () => U(G.current), J = _(B), ke = h({
178
- ...J,
169
+ H[t(439)] = n, we(n);
170
+ let r = U(n);
171
+ Ee(r), r !== z && be(r);
172
+ }, G = () => ne?.(U(H[R(439)])), K = S(V), q = () => {
173
+ let e = R;
174
+ K[e(439)] = H[e(439)];
175
+ }, De = () => {
176
+ let e = R;
177
+ U(K[e(439)]) !== U(H[e(439)]) && G(), K[e(439)] = H[e(439)];
178
+ }, J = () => W(K[R(439)]), Y = h(V), Oe = p({
179
+ ...Y,
179
180
  a: 1
180
- }, !1), Ae = L(402) + B.h + L(470), je = C(null), Me = C(null), Ne = C(null), Pe = C(null), Fe = C(null), Ie = C(null), Le = M({
181
- ref: je,
182
- thumbRef: Me,
183
- disabled: I,
184
- onStart: K,
185
- onMove: (e, t) => U({
186
- ...V.current,
181
+ }, !1), ke = "hsl(" + V.h + R(373), Ae = S(null), je = S(null), Me = S(null), Ne = S(null), Pe = S(null), Fe = S(null), Ie = N({
182
+ ref: Ae,
183
+ thumbRef: je,
184
+ disabled: L,
185
+ onStart: q,
186
+ onMove: (e, t) => W({
187
+ ...H[R(439)],
187
188
  s: e,
188
189
  v: 1 - t
189
190
  }),
190
- onEnd: W,
191
- onCancel: q
192
- }), Re = M({
193
- ref: Ne,
194
- thumbRef: Pe,
195
- disabled: I,
196
- onStart: K,
197
- onMove: (e) => U({
198
- ...V[L(390)],
191
+ onEnd: G,
192
+ onCancel: J
193
+ }), Le = N({
194
+ ref: Me,
195
+ thumbRef: Ne,
196
+ disabled: L,
197
+ onStart: q,
198
+ onMove: (e) => W({
199
+ ...H[R(439)],
199
200
  h: e * 360
200
201
  }),
201
- onEnd: W,
202
- onCancel: q
203
- }), ze = M({
204
- ref: Fe,
205
- thumbRef: Ie,
206
- disabled: I,
207
- onStart: K,
208
- onMove: (e) => U({
209
- ...V[L(390)],
210
- a: Math.round(e * 100) / 100
202
+ onEnd: G,
203
+ onCancel: J
204
+ }), Re = N({
205
+ ref: Pe,
206
+ thumbRef: Fe,
207
+ disabled: L,
208
+ onStart: q,
209
+ onMove: (e) => W({
210
+ ...H.current,
211
+ a: Math[R(471)](e * 100) / 100
211
212
  }),
212
- onEnd: W,
213
- onCancel: q
214
- }), Be = (e, t) => (n) => {
215
- let r = L;
216
- if (n.key === r(420)) {
217
- e[r(419)]() && n[r(466)]();
213
+ onEnd: G,
214
+ onCancel: J
215
+ }), ze = (e, t) => (n) => {
216
+ let r = R;
217
+ if (n.key === "Escape") {
218
+ e[r(443)]() && n.preventDefault();
218
219
  return;
219
220
  }
220
- if (e[r(418)] || I) return;
221
- let i = n[r(447)] ? 10 : 1, a = {
221
+ if (e[r(463)] || L) return;
222
+ let i = n.shiftKey ? 10 : 1, a = {
222
223
  ArrowRight: [i, 0],
223
224
  ArrowLeft: [-i, 0],
224
225
  ArrowUp: [0, i],
@@ -226,322 +227,322 @@ function le({ value: u, defaultValue: ee = ae, onValueChange: v, onValueCommit:
226
227
  PageUp: [0, 10],
227
228
  PageDown: [0, -10]
228
229
  }, o;
229
- if (n[r(437)] in a) o = t(V.current, ...a[n[r(437)]]);
230
- else if (n[r(437)] === "Home" || n[r(437)] === r(421)) o = t(V[r(390)], 0, 0, n[r(437)] === r(403) ? r(490) : r(465));
230
+ if (n.key in a) o = t(H[r(439)], ...a[n[r(427)]]);
231
+ else if (n[r(427)] === "Home" || n[r(427)] === r(426)) o = t(H[r(439)], 0, 0, n[r(427)] === r(453) ? r(376) : r(407));
231
232
  else return;
232
- n.preventDefault(), U(o), W();
233
- }, Ve = Be(Le, (e, t, n, r) => r ? {
233
+ n[r(452)](), W(o), G();
234
+ }, Be = ze(Ie, (e, t, n, r) => r ? {
234
235
  ...e,
235
- s: r === "start" ? 0 : 1
236
+ s: r === R(376) ? 0 : 1
236
237
  } : {
237
238
  ...e,
238
- s: p(e.s + t / 100, 0, 1),
239
- v: p(e.v + n / 100, 0, 1)
240
- }), He = Be(Re, (e, t, n, r) => ({
239
+ s: f(e.s + t / 100, 0, 1),
240
+ v: f(e.v + n / 100, 0, 1)
241
+ }), Ve = ze(Le, (e, t, n, r) => ({
241
242
  ...e,
242
- h: r ? r === "start" ? 0 : 360 : p(Math[L(496)](e.h) + t + n, 0, 360)
243
- })), Ue = Be(ze, (e, t, n, r) => ({
243
+ h: r ? r === R(376) ? 0 : 360 : f(Math[R(471)](e.h) + t + n, 0, 360)
244
+ })), He = ze(Re, (e, t, n, r) => ({
244
245
  ...e,
245
- a: r ? r === L(490) ? 0 : 1 : p(Math[L(496)](e.a * 100 + t + n) / 100, 0, 1)
246
- })), We = ne(J), Y = (e) => A(b(e), V[L(390)]), Ge = (e) => (t) => {
247
- let n = L, r = t[n(453)]()[n(468)](/%$/, "");
248
- if (!/^\d+(\.\d+)?$/[n(405)](r)) return null;
246
+ a: r ? r === R(376) ? 0 : 1 : f(Math.round(e.a * 100 + t + n) / 100, 0, 1)
247
+ })), Ue = y(Y), X = (e) => j(b(e), H.current), We = (e) => (t) => {
248
+ let n = R, r = t[n(406)]()[n(412)](/%$/, "");
249
+ if (!/^\d+(\.\d+)?$/[n(441)](r)) return null;
249
250
  let i = Number(r);
250
251
  return i >= 0 && i <= e ? i : null;
251
- }, Ke = (e, t, n) => {
252
- let r = L, i = Ge(255);
253
- return D(N, {
254
- display: String(Math[r(496)](J[e])),
252
+ }, Ge = (e, t, n) => {
253
+ let r = We(255);
254
+ return O(P, {
255
+ display: String(Math.round(Y[e])),
255
256
  parse: (t) => {
256
- let n = i(t);
257
- return n === null ? null : Y({
258
- ..._(V.current),
257
+ let n = r(t);
258
+ return n === null ? null : X({
259
+ ...h(H.current),
259
260
  [e]: n
260
261
  });
261
262
  },
262
- ...X,
263
+ ...Z,
263
264
  label: n,
264
265
  caption: t,
265
266
  maxLength: 3
266
267
  }, e);
267
- }, qe = (e, t, n) => {
268
- let r = L, i = Ge(e === "h" ? 360 : 100), a = e === "h" ? Math.round(B.h) % 360 : Math[r(496)](We[e] * 100);
269
- return D(N, {
268
+ }, Ke = (e, t, n) => {
269
+ let r = R, i = We(e === "h" ? 360 : 100), a = e === "h" ? Math.round(V.h) % 360 : Math[r(471)](Ue[e] * 100);
270
+ return O(P, {
270
271
  display: String(a),
271
272
  parse: (t) => {
272
- let n = i(t);
273
- if (n === null) return null;
274
- let r = ne(_(V.current)), a = e === "h" ? {
275
- ...r,
276
- h: n
273
+ let n = r, a = i(t);
274
+ if (a === null) return null;
275
+ let o = y(h(H[n(439)])), s = e === "h" ? {
276
+ ...o,
277
+ h: a
277
278
  } : {
278
- ...r,
279
- [e]: n / 100
280
- }, o = b(g(a));
281
- return e === "h" ? {
282
279
  ...o,
283
- h: n % 360
284
- } : A(o, V.current);
280
+ [e]: a / 100
281
+ }, c = b(m(s));
282
+ return e === "h" ? {
283
+ ...c,
284
+ h: a % 360
285
+ } : j(c, H[n(439)]);
285
286
  },
286
- ...X,
287
+ ...Z,
287
288
  label: n,
288
289
  caption: t,
289
290
  maxLength: 3
290
291
  }, e);
291
- }, X = {
292
- onPreview: U,
293
- onSettle: Oe,
294
- onRevert: q,
295
- onBegin: K,
296
- disabled: I
297
- }, Je = D(N, {
298
- display: ke[L(501)](1)[L(391)](),
292
+ }, Z = {
293
+ onPreview: W,
294
+ onSettle: De,
295
+ onRevert: J,
296
+ onBegin: q,
297
+ disabled: L
298
+ }, qe = O(P, {
299
+ display: Oe.slice(1).toUpperCase(),
299
300
  parse: (e) => {
300
- let t = L, n = te(e);
301
+ let t = R, n = v(e);
301
302
  if (!n) return null;
302
- let r = e[t(453)]()[t(468)]("#", "")[t(498)], i = r === 4 || r === 8;
303
+ let r = e.trim()[t(412)]("#", "").length, i = r === 4 || r === 8;
303
304
  return {
304
- ...Y(n),
305
- a: T && i ? n.a : V[t(390)].a
305
+ ...X(n),
306
+ a: T && i ? n.a : H[t(439)].a
306
307
  };
307
308
  },
308
- ...X,
309
- label: L(495),
310
- caption: z === L(397) && T ? L(456) : void 0,
311
- leading: D("span", {
312
- className: L(485),
309
+ ...Z,
310
+ label: R(422),
311
+ caption: B === R(367) && T ? R(374) : void 0,
312
+ leading: O(R(442), {
313
+ className: R(425),
313
314
  children: "#"
314
315
  }),
315
316
  maxLength: 9
316
- }), Ye = T && D(N, {
317
- display: j(B.a) + "%",
317
+ }), Je = T && O(P, {
318
+ display: M(V.a) + "%",
318
319
  parse: (e) => {
319
- let t = L, n = Ge(100)(e);
320
+ let t = R, n = We(100)(e);
320
321
  return n === null ? null : {
321
- ...V[t(390)],
322
+ ...H[t(439)],
322
323
  a: n / 100
323
324
  };
324
325
  },
325
- ...X,
326
- label: L(474),
326
+ ...Z,
327
+ label: R(409),
327
328
  caption: "A",
328
329
  maxLength: 4
329
- }), Xe = C(null), Ze = (le ?? [])[L(425)]((e) => typeof e === L(450) ? { color: e } : e), Z = ue(Xe, Ze[L(425)]((e) => e[L(492)])), Qe = (e) => {
330
- let t = y(e);
331
- t && (K(), U({
332
- ...Y(t),
330
+ }), Ye = S(null), Xe = (ce ?? [])[R(456)]((e) => typeof e === R(395) ? { color: e } : e), Q = le(Ye, Xe.map((e) => e.color)), Ze = (e) => {
331
+ let t = _(e);
332
+ t && (q(), W({
333
+ ...X(t),
333
334
  a: T ? t.a : 1
334
- }), W());
335
- }, Q = H(B), $ = C(null), $e = (e) => {
336
- let t = L;
337
- e[t(446)][t(454)](e[t(417)]) || ($[t(390)] = H(V.current));
335
+ }), G());
336
+ }, $ = U(V), Qe = S(null), $e = (e) => {
337
+ let t = R;
338
+ e[t(410)].contains(e[t(417)]) || (Qe[t(439)] = U(H[t(439)]));
338
339
  }, et = (e) => {
339
- let t = L;
340
- if (e[t(446)].contains(e[t(417)])) return;
341
- let n = H(V[t(390)]);
342
- $[t(390)] !== null && $.current !== n && we([n, ...Ce[t(404)]((e) => e[t(428)]() !== n)][t(501)](0, he)), $[t(390)] = null;
343
- }, [tt] = w(() => se() !== null), nt = async () => {
344
- let e = L, t = se();
340
+ let t = R;
341
+ if (e.currentTarget.contains(e.relatedTarget)) return;
342
+ let n = U(H[t(439)]);
343
+ Qe[t(439)] !== null && Qe[t(439)] !== n && Ce([n, ...Se[t(445)]((e) => e[t(384)]() !== n)][t(378)](0, me)), Qe[t(439)] = null;
344
+ }, [tt] = C(() => oe() !== null), nt = async () => {
345
+ let e = R, t = oe();
345
346
  if (t) try {
346
- let { sRGBHex: n } = await new t()[e(432)](), r = y(n);
347
+ let { sRGBHex: n } = await new t().open(), r = _(n);
347
348
  if (!r) return;
348
- K(), U({
349
- ...Y(r),
350
- a: V[e(390)].a
351
- }), W();
349
+ q(), W({
350
+ ...X(r),
351
+ a: H[e(439)].a
352
+ }), G();
352
353
  } catch {}
353
- }, rt = m(J, z, T);
354
- return O(o, {
355
- ref: Xe,
354
+ }, rt = te(Y, B, T);
355
+ return k(o, {
356
+ ref: Ye,
356
357
  gap: 3,
357
- role: L(471),
358
- "aria-label": be,
359
- className: f(L(393), ve),
360
- style: ye,
361
- "data-disabled": I || void 0,
358
+ role: R(432),
359
+ "aria-label": ye,
360
+ className: d(R(397), _e),
361
+ style: ve,
362
+ "data-disabled": L || void 0,
362
363
  onFocus: $e,
363
364
  onBlur: et,
364
365
  children: [
365
- D("div", {
366
- ref: je,
367
- className: L(484),
368
- style: { "--_hue": Ae },
369
- "data-dragging": Le[L(418)] || void 0,
370
- ...Le[L(489)],
371
- children: D(L(491), {
372
- ref: Me,
373
- role: "slider",
374
- tabIndex: I ? -1 : 0,
375
- "aria-label": "채도와 밝기",
376
- "aria-roledescription": "2차원 슬라이더",
366
+ O(R(396), {
367
+ ref: Ae,
368
+ className: R(383),
369
+ style: { "--_hue": ke },
370
+ "data-dragging": Ie[R(463)] || void 0,
371
+ ...Ie[R(458)],
372
+ children: O(R(396), {
373
+ ref: je,
374
+ role: R(415),
375
+ tabIndex: L ? -1 : 0,
376
+ "aria-label": R(431),
377
+ "aria-roledescription": R(438),
377
378
  "aria-valuemin": 0,
378
379
  "aria-valuemax": 100,
379
- "aria-valuenow": j(B.s),
380
- "aria-valuetext": L(409) + j(B.s) + L(464) + j(B.v) + "%",
381
- "aria-disabled": I || void 0,
380
+ "aria-valuenow": M(V.s),
381
+ "aria-valuetext": "채도 " + M(V.s) + R(390) + M(V.v) + "%",
382
+ "aria-disabled": L || void 0,
382
383
  className: "ds-color-picker__thumb",
383
384
  style: {
384
- left: B.s * 100 + "%",
385
- top: (1 - B.v) * 100 + "%",
386
- "--_c": ke
385
+ left: V.s * 100 + "%",
386
+ top: (1 - V.v) * 100 + "%",
387
+ "--_c": Oe
387
388
  },
388
- onKeyDown: Ve
389
+ onKeyDown: Be
389
390
  })
390
391
  }),
391
- O(a, {
392
+ k(a, {
392
393
  gap: 3,
393
394
  wrap: !1,
394
- children: [D(L(480), {
395
- className: L(463),
396
- style: { "--_c": Q },
395
+ children: [O("span", {
396
+ className: R(392),
397
+ style: { "--_c": $ },
397
398
  "aria-hidden": !0
398
- }), O(o, {
399
+ }), k(o, {
399
400
  gap: T ? 2 : 0,
400
401
  style: {
401
402
  flex: 1,
402
403
  minWidth: 0
403
404
  },
404
- children: [D(L(491), {
405
- className: L(475),
406
- "data-dragging": Re[L(418)] || void 0,
407
- ...Re.handlers,
408
- children: D(L(491), {
409
- ref: Ne,
410
- className: L(435),
411
- children: D(L(491), {
412
- ref: Pe,
413
- role: L(444),
414
- tabIndex: I ? -1 : 0,
405
+ children: [O(R(396), {
406
+ className: R(405),
407
+ "data-dragging": Le[R(463)] || void 0,
408
+ ...Le[R(458)],
409
+ children: O(R(396), {
410
+ ref: Me,
411
+ className: R(472),
412
+ children: O(R(396), {
413
+ ref: Ne,
414
+ role: R(415),
415
+ tabIndex: L ? -1 : 0,
415
416
  "aria-label": "색상",
416
- "aria-orientation": "horizontal",
417
+ "aria-orientation": R(387),
417
418
  "aria-valuemin": 0,
418
419
  "aria-valuemax": 360,
419
- "aria-valuenow": Math[L(496)](B.h),
420
- "aria-valuetext": L(493) + Math.round(B.h) + "도",
421
- "aria-disabled": I || void 0,
422
- className: L(486),
420
+ "aria-valuenow": Math[R(471)](V.h),
421
+ "aria-valuetext": R(371) + Math[R(471)](V.h) + "도",
422
+ "aria-disabled": L || void 0,
423
+ className: R(474),
423
424
  style: {
424
- left: B.h / 360 * 100 + "%",
425
- "--_c": Ae
425
+ left: V.h / 360 * 100 + "%",
426
+ "--_c": ke
426
427
  },
427
- onKeyDown: He
428
+ onKeyDown: Ve
428
429
  })
429
430
  })
430
- }), T && D("div", {
431
- className: L(455),
432
- style: { "--_c": ke },
433
- "data-dragging": ze[L(418)] || void 0,
434
- ...ze[L(489)],
435
- children: D(L(491), {
436
- ref: Fe,
437
- className: L(435),
438
- children: D(L(491), {
439
- ref: Ie,
440
- role: "slider",
441
- tabIndex: I ? -1 : 0,
442
- "aria-label": L(396),
443
- "aria-orientation": L(451),
431
+ }), T && O(R(396), {
432
+ className: R(440),
433
+ style: { "--_c": Oe },
434
+ "data-dragging": Re.dragging || void 0,
435
+ ...Re[R(458)],
436
+ children: O("div", {
437
+ ref: Pe,
438
+ className: "ds-color-picker__rail",
439
+ children: O(R(396), {
440
+ ref: Fe,
441
+ role: R(415),
442
+ tabIndex: L ? -1 : 0,
443
+ "aria-label": "불투명도",
444
+ "aria-orientation": R(387),
444
445
  "aria-valuemin": 0,
445
446
  "aria-valuemax": 100,
446
- "aria-valuenow": j(B.a),
447
- "aria-valuetext": L(434) + j(B.a) + "%",
448
- "aria-disabled": I || void 0,
449
- className: "ds-color-picker__thumb ds-color-picker__thumb--track",
447
+ "aria-valuenow": M(V.a),
448
+ "aria-valuetext": "불투명도 " + M(V.a) + "%",
449
+ "aria-disabled": L || void 0,
450
+ className: R(474),
450
451
  style: {
451
- left: B.a * 100 + "%",
452
- "--_c": Q
452
+ left: V.a * 100 + "%",
453
+ "--_c": $
453
454
  },
454
- onKeyDown: Ue
455
+ onKeyDown: He
455
456
  })
456
457
  })
457
458
  })]
458
459
  })]
459
460
  }),
460
- O(a, {
461
- justify: L(415),
461
+ k(a, {
462
+ justify: R(467),
462
463
  wrap: !1,
463
- children: [D(d, {
464
- options: ce,
465
- value: z,
466
- onChange: Se,
467
- ariaLabel: "값 형식"
468
- }), O(a, {
464
+ children: [O(u, {
465
+ options: se,
466
+ value: B,
467
+ onChange: xe,
468
+ ariaLabel: R(377)
469
+ }), k(a, {
469
470
  gap: 1,
470
471
  wrap: !1,
471
- children: [ge && tt && D(t, {
472
- content: L(479),
473
- children: D(l, {
474
- variant: "ghost",
472
+ children: [he && tt && O(t, {
473
+ content: "화면에서 색 고르기",
474
+ children: O(c, {
475
+ variant: R(430),
475
476
  size: "sm",
476
477
  iconOnly: !0,
477
- icon: D(E, {}),
478
- "aria-label": L(479),
479
- disabled: I,
478
+ icon: O(E, {}),
479
+ "aria-label": R(370),
480
+ disabled: L,
480
481
  onClick: nt
481
482
  })
482
- }), _e && D(r, {
483
+ }), ge && O(r, {
483
484
  value: rt,
484
- disabled: I
485
+ disabled: L
485
486
  })]
486
487
  })]
487
488
  }),
488
- z === "hex" ? T ? O(i, {
489
+ B === R(367) ? T ? k(i, {
489
490
  columns: "minmax(0, 1fr) 64px",
490
491
  gap: 2,
491
- align: L(490),
492
- children: [Je, Ye]
493
- }) : Je : O(i, {
492
+ align: R(376),
493
+ children: [qe, Je]
494
+ }) : qe : k(i, {
494
495
  columns: T ? 4 : 3,
495
496
  gap: 2,
496
- align: L(490),
497
- children: [z === L(392) ? [
498
- Ke("r", "R", L(449)),
499
- Ke("g", "G", L(400)),
500
- Ke("b", "B", L(423))
497
+ align: R(376),
498
+ children: [B === R(401) ? [
499
+ Ge("r", "R", R(366)),
500
+ Ge("g", "G", R(416)),
501
+ Ge("b", "B", R(423))
501
502
  ] : [
502
- qe("h", "H", L(440)),
503
- qe("s", "S", L(424)),
504
- qe("l", "L", L(497))
505
- ], Ye]
503
+ Ke("h", "H", R(469)),
504
+ Ke("s", "S", R(464)),
505
+ Ke("l", "L", R(389))
506
+ ], Je]
506
507
  }),
507
- Ze[L(498)] > 0 && O(o, {
508
+ Xe[R(444)] > 0 && k(o, {
508
509
  gap: 2,
509
- children: [D(n, {
510
- variant: L(483),
511
- tone: L(445),
512
- children: F
513
- }), D(L(491), {
514
- className: "ds-color-picker__swatches",
515
- children: Ze[L(425)]((e, t) => {
516
- let n = L, r = Z[t] ? y(Z[t]) : null;
517
- return D(oe, {
518
- css: e[n(492)].startsWith("--") ? n(500) + e.color + ")" : e[n(492)],
510
+ children: [O(n, {
511
+ variant: R(457),
512
+ tone: R(447),
513
+ children: I
514
+ }), O(R(396), {
515
+ className: R(398),
516
+ children: Xe[R(456)]((e, t) => {
517
+ let n = R, r = Q[t] ? _(Q[t]) : null;
518
+ return O(F, {
519
+ css: e.color[n(388)]("--") ? n(454) + e[n(385)] + ")" : e.color,
519
520
  rgb: r,
520
- label: e[n(476)] ?? e[n(492)],
521
- selected: r !== null && h(r, T) === Q,
522
- disabled: I,
523
- onPick: () => Z[t] && Qe(Z[t])
524
- }, e.color);
521
+ label: e[n(420)] ?? e[n(385)],
522
+ selected: r !== null && p(r, T) === $,
523
+ disabled: L,
524
+ onPick: () => Q[t] && Ze(Q[t])
525
+ }, e[n(385)]);
525
526
  })
526
527
  })]
527
528
  }),
528
- me && Ce.length > 0 && O(o, {
529
+ pe && Se[R(444)] > 0 && k(o, {
529
530
  gap: 2,
530
- children: [D(n, {
531
- variant: "label-xs",
532
- tone: L(445),
533
- children: L(461)
534
- }), D("div", {
535
- className: L(478),
536
- children: Ce[L(425)]((e) => {
537
- let t = L, n = y(e);
538
- return D(oe, {
531
+ children: [O(n, {
532
+ variant: R(457),
533
+ tone: R(447),
534
+ children: R(465)
535
+ }), O(R(396), {
536
+ className: R(398),
537
+ children: Se[R(456)]((e) => {
538
+ let t = R, n = _(e);
539
+ return O(F, {
539
540
  css: e,
540
541
  rgb: n,
541
- label: e[t(391)](),
542
- selected: n !== null && h(n, T) === Q,
543
- disabled: I,
544
- onPick: () => Qe(e)
542
+ label: e[t(404)](),
543
+ selected: n !== null && p(n, T) === $,
544
+ disabled: L,
545
+ onPick: () => Ze(e)
545
546
  }, e);
546
547
  })
547
548
  })]
@@ -549,61 +550,61 @@ function le({ value: u, defaultValue: ee = ae, onValueChange: v, onValueCommit:
549
550
  ]
550
551
  });
551
552
  }
552
- function ue(t, n) {
553
- let r = e, i = n[r(414)]("|"), [a, o] = w(() => n[r(425)]((e) => e[r(473)]("--") ? "" : e));
554
- return S(() => {
555
- let e = r, n = t[e(390)] ?? document[e(472)], a = getComputedStyle(n), s = i ? i[e(502)]("|")[e(425)]((t) => t[e(473)]("--") ? a.getPropertyValue(t)[e(453)]() : t) : [];
556
- o((t) => t[e(414)]("|") === s[e(414)]("|") ? t : s);
553
+ function le(t, n) {
554
+ let r = e, i = n[r(413)]("|"), [a, o] = C(() => n[r(456)]((e) => e[r(388)]("--") ? "" : e));
555
+ return x(() => {
556
+ let e = r, n = t[e(439)] ?? document.documentElement, a = getComputedStyle(n), s = i ? i[e(462)]("|")[e(456)]((t) => t.startsWith("--") ? a[e(368)](t)[e(406)]() : t) : [];
557
+ o((e) => e.join("|") === s.join("|") ? e : s);
557
558
  }, [t, i]), a;
558
559
  }
559
- function F({ value: t, defaultValue: n = ae, onValueChange: r, format: i, defaultFormat: a = e(397), onFormatChange: o, recentColors: c, defaultRecentColors: l = [], onRecentColorsChange: u, open: d, defaultOpen: p = !1, onOpenChange: h, size: g = "md", invalid: _, popoverWidth: v = 264, name: te, id: ne, className: b, disabled: x, alpha: S, "aria-label": C = "색", "aria-labelledby": w, ...T }) {
560
- let E = e, [k, A] = s(t, n, r), [j, M] = s(i, a, o), [N, oe] = s(c, l, u), [P, se] = s(d, p, h), ce = y(k), ue = ce ? m(ce, j, S) : k, F = j === E(397) ? ue[E(391)]() : ue;
561
- return O(ie, { children: [D(ee, {
562
- open: P,
563
- onOpenChange: (e) => !x && se(e),
560
+ function I({ value: t, defaultValue: n = ae, onValueChange: r, format: i, defaultFormat: a = "hex", onFormatChange: o, recentColors: c, defaultRecentColors: l = [], onRecentColorsChange: u, open: f, defaultOpen: p = !1, onOpenChange: m, size: h = "md", invalid: g, popoverWidth: v = 264, name: y, id: b, className: ne, disabled: x, alpha: S, "aria-label": C = "색", "aria-labelledby": w, ...T }) {
561
+ let E = e, [D, A] = s(t, n, r), [j, M] = s(i, a, o), [N, P] = s(c, l, u), [F, oe] = s(f, p, m), se = _(D), le = se ? te(se, j, S) : D, I = j === E(367) ? le[E(404)]() : le;
562
+ return k(ie, { children: [O(ee, {
563
+ open: F,
564
+ onOpenChange: (e) => !x && oe(e),
564
565
  width: v,
565
- "aria-label": C + " 선택",
566
- trigger: O("button", {
567
- id: ne,
568
- type: "button",
569
- "aria-haspopup": "dialog",
570
- "aria-expanded": P,
571
- "aria-label": w ? void 0 : C + ": " + F,
566
+ "aria-label": C + E(437),
567
+ trigger: k(E(433), {
568
+ id: b,
569
+ type: E(433),
570
+ "aria-haspopup": E(470),
571
+ "aria-expanded": F,
572
+ "aria-label": w ? void 0 : C + ": " + I,
572
573
  "aria-labelledby": w,
573
- "aria-invalid": _ || void 0,
574
+ "aria-invalid": g || void 0,
574
575
  disabled: x,
575
- className: f(E(457), "ds-color-field", g !== "md" && E(407) + g, b),
576
- "data-open": P || void 0,
577
- "data-invalid": _ || void 0,
576
+ className: d(E(451), E(460), h !== "md" && E(434) + h, ne),
577
+ "data-open": F || void 0,
578
+ "data-invalid": g || void 0,
578
579
  "data-disabled": x || void 0,
579
580
  children: [
580
- D("span", {
581
- className: "ds-color-field__chip",
582
- style: { "--_c": k }
581
+ O(E(442), {
582
+ className: E(459),
583
+ style: { "--_c": D }
583
584
  }),
584
- D(E(480), {
585
- className: "ds-color-field__value",
586
- children: F
585
+ O(E(442), {
586
+ className: E(393),
587
+ children: I
587
588
  }),
588
- D(re, { className: E(499) })
589
+ O(re, { className: E(446) })
589
590
  ]
590
591
  }),
591
- children: D(le, {
592
+ children: O(ce, {
592
593
  ...T,
593
- value: k,
594
+ value: D,
594
595
  onValueChange: A,
595
596
  alpha: S,
596
597
  format: j,
597
598
  onFormatChange: M,
598
599
  recentColors: N,
599
- onRecentColorsChange: oe,
600
+ onRecentColorsChange: P,
600
601
  disabled: x,
601
- "aria-label": C + E(433)
602
+ "aria-label": C + E(437)
602
603
  })
603
- }), te && D(E(430), {
604
- type: E(398),
605
- name: te,
606
- value: k
604
+ }), y && O(E(399), {
605
+ type: "hidden",
606
+ name: y,
607
+ value: D
607
608
  })] });
608
609
  }
609
- export { x as CHART_COLOR_PRESETS, F as ColorField, le as ColorPicker };
610
+ export { ne as CHART_COLOR_PRESETS, I as ColorField, ce as ColorPicker };