@iamfiro/design 0.3.2 → 0.3.5

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