@iamfiro/design 0.3.4 → 0.3.5

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