@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,87 +1,101 @@
1
1
  "use client";
2
- const e = y;
3
- (function(e, t) {
4
- let n = y, r = e();
2
+ const e = t;
3
+ function t(e, n) {
4
+ e -= 420;
5
+ let r = l(), i = r[e];
6
+ t.ZDraIZ === void 0 && (t.pOPEZq = function(e) {
7
+ let t = "", n = "";
8
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
9
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
10
+ return decodeURIComponent(n);
11
+ }, t.mKbgbZ = {}, t.ZDraIZ = !0);
12
+ let a = r[0];
13
+ t.GiFWsB !== a && (t.mKbgbZ = {}, t.GiFWsB = a);
14
+ let o = t.mKbgbZ[e];
15
+ return o === void 0 ? (i = t.pOPEZq(i), t.mKbgbZ[e] = i) : i = o, i;
16
+ }
17
+ (function(e, n) {
18
+ let r = t, i = e();
5
19
  for (;;) try {
6
- if (-parseInt(n(505)) / 1 * (parseInt(n(511)) / 2) + -parseInt(n(518)) / 3 * (parseInt(n(512)) / 4) + -parseInt(n(528)) / 5 + -parseInt(n(526)) / 6 * (parseInt(n(525)) / 7) + parseInt(n(522)) / 8 + -parseInt(n(503)) / 9 + parseInt(n(523)) / 10 * (parseInt(n(514)) / 11) == t) break;
7
- r.push(r.shift());
20
+ if (parseInt(r(436)) / 1 + parseInt(r(447)) / 2 + -parseInt(r(449)) / 3 * (-parseInt(r(448)) / 4) + parseInt(r(440)) / 5 * (parseInt(r(429)) / 6) + -parseInt(r(423)) / 7 * (-parseInt(r(427)) / 8) + -parseInt(r(450)) / 9 * (parseInt(r(451)) / 10) + parseInt(r(420)) / 11 * (-parseInt(r(445)) / 12) == n) break;
21
+ i.push(i.shift());
8
22
  } catch {
9
- r.push(r.shift());
23
+ i.push(i.shift());
10
24
  }
11
- })(l, 260131);
12
- var t = (t, n, r) => Math[e(507)](r, Math[e(509)](n, t)), n = (t, n = 0) => {
25
+ })(l, 943696);
26
+ var n = (t, n, r) => Math.min(r, Math[e(428)](n, t)), r = (t, n = 0) => {
13
27
  let r = e, i = 10 ** n;
14
- return Math[r(502)](t * i) / i;
15
- }, r = /^#?([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
16
- function i(t) {
17
- let i = e, a = r.exec(t[i(516)]());
28
+ return Math[r(425)](t * i) / i;
29
+ }, i = /^#?([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
30
+ function a(t) {
31
+ let n = e, a = i[n(434)](t.trim());
18
32
  if (!a) return null;
19
33
  let o = a[1];
20
- o.length <= 4 && (o = [...o][i(524)]((e) => e + e).join(""));
21
- let s = (e) => parseInt(o[i(501)](e, e + 2), 16);
34
+ o[n(435)] <= 4 && (o = [...o][n(431)]((e) => e + e)[n(421)](""));
35
+ let s = (e) => parseInt(o[n(422)](e, e + 2), 16);
22
36
  return {
23
37
  r: s(0),
24
38
  g: s(2),
25
39
  b: s(4),
26
- a: o[i(500)] === 8 ? n(s(6) / 255, 3) : 1
40
+ a: o.length === 8 ? r(s(6) / 255, 3) : 1
27
41
  };
28
42
  }
29
- var a = (t, n) => {
30
- let r = e, i = t[r(516)]();
31
- return /^-?\d*\.?\d+%?$/[r(508)](i) ? i.endsWith("%") ? parseFloat(i) / 100 * n : parseFloat(i) : NaN;
32
- }, o = (t) => t[e(499)](/[\s,/]+/)[e(520)](Boolean), s = (e) => e === void 0 ? 1 : a(e, 1);
33
- function c(t) {
34
- let n = e, r = /^(?:rgba?\()?\s*([^)]*?)\s*\)?$/i.exec(t[n(516)]());
43
+ var o = (t, n) => {
44
+ let r = e, i = t[r(438)]();
45
+ return /^-?\d*\.?\d+%?$/[r(442)](i) ? i[r(424)]("%") ? parseFloat(i) / 100 * n : parseFloat(i) : NaN;
46
+ }, s = (t) => t.split(/[\s,/]+/)[e(426)](Boolean), c = (e) => e === void 0 ? 1 : o(e, 1);
47
+ function l() {
48
+ let e = /* @__PURE__ */ "ota2nZG4mhb1yNzgsa.Bwf4.mZu1nta2uKXrD2fQ.AhnS.BwfW.BwLU.Axnoyu4.zxHLyW.BgvUz3rO.mta5odu2mhDRsfrlDG.CgfKu3rHCNq.DhjPBq.C29Tzq.nuvRsfPIuW.CMDIysG.DgvZDa.CMDI.AhnSka.mtjyAgLwEgS.Dg9tDhjPBMC.mti4mta4ofvKA0PoCG.mJHvz2PnA0W.mZq2nZq5wfPXDNbo.mtHLAfbos0S.mtiWotCXmgHUww9UqG.mJGXmdGXmtnwqxjXzNq.AM9PBG.C2XPy2u.n0z0zNLYqW.zw5KC1DPDgG.CM91BMq.zMLSDgvY".split(".");
49
+ return l = function() {
50
+ return e;
51
+ }, l();
52
+ }
53
+ function u(t) {
54
+ let n = e, r = /^(?:rgba?\()?\s*([^)]*?)\s*\)?$/i[n(434)](t[n(438)]());
35
55
  if (!r) return null;
36
- let i = o(r[1]);
37
- if (i[n(500)] < 3 || i[n(500)] > 4) return null;
38
- let [c, l, u] = i[n(501)](0, 3)[n(524)]((e) => a(e, 255)), d = s(i[3]);
56
+ let i = s(r[1]);
57
+ if (i.length < 3 || i[n(435)] > 4) return null;
58
+ let [a, l, u] = i.slice(0, 3).map((e) => o(e, 255)), d = c(i[3]);
39
59
  return [
40
- c,
60
+ a,
41
61
  l,
42
62
  u,
43
63
  d
44
- ][n(498)]((e) => Number[n(497)](e)) || [
45
- c,
64
+ ][n(439)]((e) => Number[n(433)](e)) || [
65
+ a,
46
66
  l,
47
67
  u
48
- ][n(498)]((e) => e < 0 || e > 255) || d < 0 || d > 1 ? null : {
49
- r: c,
68
+ ].some((e) => e < 0 || e > 255) || d < 0 || d > 1 ? null : {
69
+ r: a,
50
70
  g: l,
51
71
  b: u,
52
72
  a: d
53
73
  };
54
74
  }
55
- function l() {
56
- let e = /* @__PURE__ */ "Bwf4.CMDI.mtm1nejoDuvotq.mJC0nZjlC0zRrfi.zw5KC1DPDgG.mtm5odmYCvHnqMPk.Dg9tDhjPBMC.DhjPBq.CMvWBgfJzq.mtiWwMLVtM1P.zxHLyW.zMLSDgvY.AhnS.mZq4nteYmfvuyKDdwG.mtaXmhjiA3Hsuq.BwfW.mZCXtvD1yK1I.otm3mLLHAg5xDW.AhnSysG.mJa3oduWmgjpvfnvqW.CMDIka.Axnoyu4.C29Tzq.C3bSAxq.BgvUz3rO.C2XPy2u.CM91BMq.mZKZotGWnffwr0fryW.jsWG.mZy3EfH0CLri.CgfKu3rHCNq.BwLU.DgvZDa".split(".");
57
- return l = function() {
58
- return e;
59
- }, l();
60
- }
61
- function u(t) {
62
- let n = e, r = /^(?:hsla?\()?\s*([^)]*?)\s*\)?$/i[n(519)](t[n(516)]());
75
+ function d(t) {
76
+ let n = e, r = /^(?:hsla?\()?\s*([^)]*?)\s*\)?$/i[n(434)](t[n(438)]());
63
77
  if (!r) return null;
64
- let i = o(r[1][n(517)](/deg/gi, ""));
65
- if (i[n(500)] < 3 || i.length > 4) return null;
66
- let c = a(i[0], 360), l = a(i[1][n(513)]("%") ? i[1] : i[1] + "%", 1), u = a(i[2].endsWith("%") ? i[2] : i[2] + "%", 1), d = s(i[3]);
78
+ let i = s(r[1].replace(/deg/gi, ""));
79
+ if (i[n(435)] < 3 || i[n(435)] > 4) return null;
80
+ let a = o(i[0], 360), l = o(i[1][n(424)]("%") ? i[1] : i[1] + "%", 1), u = o(i[2].endsWith("%") ? i[2] : i[2] + "%", 1), d = c(i[3]);
67
81
  return [
68
- c,
82
+ a,
69
83
  l,
70
84
  u,
71
85
  d
72
- ][n(498)]((e) => Number[n(497)](e)) || l < 0 || l > 1 || u < 0 || u > 1 || d < 0 || d > 1 ? null : h({
73
- h: (c % 360 + 360) % 360,
86
+ ][n(439)]((e) => Number[n(433)](e)) || l < 0 || l > 1 || u < 0 || u > 1 || d < 0 || d > 1 ? null : g({
87
+ h: (a % 360 + 360) % 360,
74
88
  s: l,
75
89
  l: u,
76
90
  a: d
77
91
  });
78
92
  }
79
- function d(t) {
80
- let n = e, r = t[n(516)]();
81
- return /^hsla?\(/i[n(508)](r) ? u(r) : /^rgba?\(/i[n(508)](r) ? c(r) : i(r);
93
+ function f(t) {
94
+ let n = e, r = t[n(438)]();
95
+ return /^hsla?\(/i[n(442)](r) ? d(r) : /^rgba?\(/i[n(442)](r) ? u(r) : a(r);
82
96
  }
83
- function f({ r: t, g: n, b: r, a: i }) {
84
- let a = e, o = t / 255, s = n / 255, c = r / 255, l = Math[a(509)](o, s, c), u = l - Math[a(507)](o, s, c), d = 0;
97
+ function p({ r: t, g: n, b: r, a: i }) {
98
+ let a = e, o = t / 255, s = n / 255, c = r / 255, l = Math[a(428)](o, s, c), u = l - Math[a(432)](o, s, c), d = 0;
85
99
  return u && (d = l === o ? (s - c) / u % 6 : l === s ? (c - o) / u + 2 : (o - s) / u + 4, d = (d * 60 + 360) % 360), {
86
100
  h: d,
87
101
  s: l ? u / l : 0,
@@ -89,10 +103,10 @@ function f({ r: t, g: n, b: r, a: i }) {
89
103
  a: i
90
104
  };
91
105
  }
92
- function p({ h: e, s: t, v: n, a: r }) {
106
+ function m({ h: e, s: t, v: n, a: r }) {
93
107
  let i = (r) => {
94
- let i = y, a = (r + e / 60) % 6;
95
- return (n - n * t * Math[i(509)](0, Math.min(a, 4 - a, 1))) * 255;
108
+ let i = (r + e / 60) % 6;
109
+ return (n - n * t * Math.max(0, Math.min(i, 4 - i, 1))) * 255;
96
110
  };
97
111
  return {
98
112
  r: i(5),
@@ -101,22 +115,22 @@ function p({ h: e, s: t, v: n, a: r }) {
101
115
  a: r
102
116
  };
103
117
  }
104
- function m({ r: t, g: n, b: r, a: i }) {
105
- let a = e, { h: o, s, v: c } = f({
106
- r: t,
107
- g: n,
108
- b: r,
109
- a: i
110
- }), l = c * (1 - s / 2);
118
+ function h({ r: e, g: t, b: n, a: r }) {
119
+ let { h: i, s: a, v: o } = p({
120
+ r: e,
121
+ g: t,
122
+ b: n,
123
+ a: r
124
+ }), s = o * (1 - a / 2);
111
125
  return {
112
- h: o,
113
- s: l === 0 || l === 1 ? 0 : (c - l) / Math[a(507)](l, 1 - l),
114
- l,
115
- a: i
126
+ h: i,
127
+ s: s === 0 || s === 1 ? 0 : (o - s) / Math.min(s, 1 - s),
128
+ l: s,
129
+ a: r
116
130
  };
117
131
  }
118
- function h({ h: t, s: n, l: r, a: i }) {
119
- let a = e, o = (e) => (e + t / 30) % 12, s = n * Math[a(507)](r, 1 - r), c = (e) => (r - s * Math[a(509)](-1, Math[a(507)](o(e) - 3, 9 - o(e), 1))) * 255;
132
+ function g({ h: t, s: n, l: r, a: i }) {
133
+ let a = e, o = (e) => (e + t / 30) % 12, s = n * Math[a(432)](r, 1 - r), c = (e) => (r - s * Math[a(428)](-1, Math[a(432)](o(e) - 3, 9 - o(e), 1))) * 255;
120
134
  return {
121
135
  r: c(0),
122
136
  g: c(8),
@@ -124,50 +138,36 @@ function h({ h: t, s: n, l: r, a: i }) {
124
138
  a: i
125
139
  };
126
140
  }
127
- var g = (n) => t(Math[e(502)](n), 0, 255)[e(515)](16)[e(506)](2, "0");
128
- function _({ r: e, g: t, b: n, a: r }, i = !0) {
129
- let a = "#" + g(e) + g(t) + g(n);
130
- return i && r < 1 ? a + g(r * 255) : a;
141
+ var _ = (t) => n(Math[e(425)](t), 0, 255)[e(446)](16)[e(437)](2, "0");
142
+ function v({ r: e, g: t, b: n, a: r }, i = !0) {
143
+ let a = "#" + _(e) + _(t) + _(n);
144
+ return i && r < 1 ? a + _(r * 255) : a;
131
145
  }
132
- function v({ r, g: i, b: a, a: o }) {
146
+ function y({ r: t, g: i, b: a, a: o }) {
133
147
  let s = e, c = [
134
- r,
148
+ t,
135
149
  i,
136
150
  a
137
- ][s(524)]((e) => t(Math.round(e), 0, 255)).join(", ");
138
- return o < 1 ? "rgba(" + c + ", " + n(o, 2) + ")" : s(529) + c + ")";
139
- }
140
- function y(e, t) {
141
- e -= 497;
142
- let n = l(), r = n[e];
143
- y.EAsMhy === void 0 && (y.UNRHXH = function(e) {
144
- let t = "", n = "";
145
- 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);
146
- for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
147
- return decodeURIComponent(n);
148
- }, y.SnfgEr = {}, y.EAsMhy = !0);
149
- let i = n[0];
150
- y.IstJLu !== i && (y.SnfgEr = {}, y.IstJLu = i);
151
- let a = y.SnfgEr[e];
152
- return a === void 0 ? (r = y.UNRHXH(r), y.SnfgEr[e] = r) : r = a, r;
151
+ ][s(431)]((e) => n(Math[s(425)](e), 0, 255))[s(421)](", ");
152
+ return o < 1 ? s(441) + c + ", " + r(o, 2) + ")" : "rgb(" + c + ")";
153
153
  }
154
154
  function b(t) {
155
- let r = e, { h: i, s: a, l: o, a: s } = m(t), c = Math[r(502)](i) % 360 + ", " + Math[r(502)](a * 100) + r(504) + Math[r(502)](o * 100) + "%";
156
- return s < 1 ? r(527) + c + ", " + n(s, 2) + ")" : "hsl(" + c + ")";
155
+ let n = e, { h: i, s: a, l: o, a: s } = h(t), c = Math[n(425)](i) % 360 + ", " + Math[n(425)](a * 100) + "%, " + Math[n(425)](o * 100) + "%";
156
+ return s < 1 ? "hsla(" + c + ", " + r(s, 2) + ")" : n(444) + c + ")";
157
157
  }
158
158
  function x(t, n, r = !0) {
159
159
  let i = e;
160
- return n === i(510) ? v(r ? t : {
160
+ return n === i(443) ? y(r ? t : {
161
161
  ...t,
162
162
  a: 1
163
- }) : n === i(521) ? b(r ? t : {
163
+ }) : n === i(430) ? b(r ? t : {
164
164
  ...t,
165
165
  a: 1
166
- }) : _(t, r);
166
+ }) : v(t, r);
167
167
  }
168
168
  function S(e, t = !0) {
169
- let n = d(e);
170
- return n ? _(n, t) : null;
169
+ let n = f(e);
170
+ return n ? v(n, t) : null;
171
171
  }
172
172
  function C({ r: e, g: t, b: n }) {
173
173
  let r = (e) => {
@@ -177,4 +177,4 @@ function C({ r: e, g: t, b: n }) {
177
177
  return .2126 * r(e) + .7152 * r(t) + .0722 * r(n);
178
178
  }
179
179
  var w = (e) => e.a < .5 || C(e) > .4;
180
- export { t as clamp, x as formatColor, _ as formatHex, b as formatHsl, v as formatRgb, h as hslToRgb, p as hsvToRgb, w as isLight, C as luminance, S as normalizeHex, d as parseColor, i as parseHex, u as parseHsl, c as parseRgb, m as rgbToHsl, f as rgbToHsv };
180
+ export { n as clamp, x as formatColor, v as formatHex, b as formatHsl, y as formatRgb, g as hslToRgb, m as hsvToRgb, w as isLight, C as luminance, S as normalizeHex, f as parseColor, a as parseHex, d as parseHsl, u as parseRgb, h as rgbToHsl, p as rgbToHsv };
@@ -1,71 +1,72 @@
1
1
  "use client";
2
- var e = r;
3
- function t() {
2
+ var e = t;
3
+ (function(e, n) {
4
+ for (var r = t, i = e();;) try {
5
+ if (-parseInt(r(414)) / 1 * (parseInt(r(421)) / 2) + parseInt(r(417)) / 3 * (-parseInt(r(415)) / 4) + parseInt(r(411)) / 5 + -parseInt(r(416)) / 6 + parseInt(r(422)) / 7 + -parseInt(r(419)) / 8 * (-parseInt(r(412)) / 9) + parseInt(r(413)) / 10 == n) break;
6
+ i.push(i.shift());
7
+ } catch {
8
+ i.push(i.shift());
9
+ }
10
+ })(n, 276381);
11
+ function t(e, r) {
12
+ e -= 408;
13
+ var i = n(), a = i[e];
14
+ t.LuiaPM === void 0 && (t.fLdzgc = function(e) {
15
+ for (var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=", n = "", r = "", i = 0, a, o, s = 0; o = e.charAt(s++); ~o && (a = i % 4 ? a * 64 + o : o, i++ % 4) && (n += String.fromCharCode(255 & a >> (-2 * i & 6)))) o = t.indexOf(o);
16
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
17
+ return decodeURIComponent(r);
18
+ }, t.AUAQDW = {}, t.LuiaPM = !0);
19
+ var o = i[0];
20
+ t.IqkAGe !== o && (t.AUAQDW = {}, t.IqkAGe = o);
21
+ var s = t.AUAQDW[e];
22
+ return s === void 0 ? (a = t.fLdzgc(a), t.AUAQDW[e] = a) : a = s, a;
23
+ }
24
+ function n() {
4
25
  var e = [
5
- "mJi2mJmXyNfAt0rX",
6
- "mtG2nMntsgLvuG",
7
- "odHxzMT3Dwi",
8
- "ls1JAgfYDc00",
9
- "mZe1mtu0uvbgqLHP",
10
- "mJm2nJC1mhv3vw5utW",
11
- "mtKYCKvWzgfc",
12
- "ls1JAgfYDc0Z",
13
- "mJaWnZu5nKLfqurZuW",
14
- "mte1nZbbCNPnDMy",
15
26
  "ls1JAgfYDc01",
16
- "mJqYne1TBgDtEG",
17
- "ls1JAgfYDc0X",
18
- "nZuXodm3nxjLsffzBa"
27
+ "ls1JAgfYDc02",
28
+ "mJK0nZGWDKX0t295",
29
+ "ou9YtMXHqW",
30
+ "mtaYmdeZmtbtDMThtuC",
31
+ "mJCXq0nUtMzw",
32
+ "ndrerKPxyKG",
33
+ "mJCYodq5nhjWDfP5qW",
34
+ "odCWntfpqwD4D2K",
35
+ "ls1JAgfYDc0Z",
36
+ "nZqXmti4wvvSD1bn",
37
+ "ls1JAgfYDc0Y",
38
+ "mti1nMTHvKjtsq",
39
+ "mZqXndm5EMnRq092",
40
+ "ls1JAgfYDc00"
19
41
  ];
20
- return t = function() {
42
+ return n = function() {
21
43
  return e;
22
- }, t();
44
+ }, n();
23
45
  }
24
- (function(e, t) {
25
- for (var n = r, i = e();;) try {
26
- if (-parseInt(n(386)) / 1 + -parseInt(n(383)) / 2 * (-parseInt(n(378)) / 3) + parseInt(n(380)) / 4 + parseInt(n(381)) / 5 * (parseInt(n(373)) / 6) + parseInt(n(376)) / 7 * (parseInt(n(374)) / 8) + -parseInt(n(385)) / 9 + -parseInt(n(377)) / 10 == t) break;
27
- i.push(i.shift());
28
- } catch {
29
- i.push(i.shift());
30
- }
31
- })(t, 496082);
32
- var n = [
46
+ var r = [
33
47
  {
34
- color: e(384),
48
+ color: "--chart-1",
35
49
  label: "분홍"
36
50
  },
37
51
  {
38
- color: "--chart-2",
52
+ color: e(420),
39
53
  label: "파랑"
40
54
  },
41
55
  {
42
- color: e(379),
56
+ color: e(418),
43
57
  label: "청록"
44
58
  },
45
59
  {
46
- color: e(375),
60
+ color: e(408),
47
61
  label: "보라"
48
62
  },
49
63
  {
50
- color: e(382),
64
+ color: e(409),
51
65
  label: "회색"
52
66
  },
53
67
  {
54
- color: "--chart-6",
68
+ color: e(410),
55
69
  label: "주황"
56
70
  }
57
71
  ];
58
- function r(e, n) {
59
- e -= 373;
60
- var i = t(), a = i[e];
61
- r.pDsqdQ === void 0 && (r.BiBmDF = function(e) {
62
- for (var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=", n = "", r = "", i = 0, a, o, s = 0; o = e.charAt(s++); ~o && (a = i % 4 ? a * 64 + o : o, i++ % 4) && (n += String.fromCharCode(255 & a >> (-2 * i & 6)))) o = t.indexOf(o);
63
- for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
64
- return decodeURIComponent(r);
65
- }, r.bRYrgs = {}, r.pDsqdQ = !0);
66
- var o = i[0];
67
- r.DdbSDi !== o && (r.bRYrgs = {}, r.DdbSDi = o);
68
- var s = r.bRYrgs[e];
69
- return s === void 0 ? (a = r.BiBmDF(a), r.bRYrgs[e] = a) : a = s, a;
70
- }
71
- export { n as CHART_COLOR_PRESETS };
72
+ export { r as CHART_COLOR_PRESETS };