@iamfiro/design 0.3.1 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agents/INDEX.md +1 -1
- package/agents/avatar/AGENTS.md +29 -1
- package/agents/brand-icon/AGENTS.md +1 -1
- package/agents/social-login-button/AGENTS.md +4 -3
- package/agents/tooltip/AGENTS.md +1 -1
- package/lib/components/Accordion/Accordion2.js +92 -92
- package/lib/components/ActionBar/ActionBar2.js +42 -45
- package/lib/components/Alert/Alert2.js +77 -77
- package/lib/components/AppShell/AppShell2.js +70 -71
- package/lib/components/AreaChart/AreaChart.js +32 -35
- package/lib/components/BarChart/BarChart2.js +155 -155
- package/lib/components/BarList/BarList2.js +93 -93
- package/lib/components/Breadcrumb/Breadcrumb2.js +62 -64
- package/lib/components/Calendar/Calendar2.js +183 -182
- package/lib/components/Calendar/DatePicker2.js +116 -115
- package/lib/components/Calendar/date.js +67 -66
- package/lib/components/Card/Card2.js +67 -67
- package/lib/components/CardFrame/CardFrame2.js +34 -37
- package/lib/components/Chart/ChartParts.js +90 -90
- package/lib/components/Chart/chart2.js +62 -62
- package/lib/components/Chart/useChartInteraction.js +51 -51
- package/lib/components/ChatBubble/ChatBubble2.js +117 -117
- package/lib/components/ChatBubble/formatChatTime.js +37 -36
- package/lib/components/ChatComposer/ChatComposer2.js +55 -55
- package/lib/components/CodeBlock/CodeBlock2.js +60 -60
- package/lib/components/CodeBlock/highlight.js +72 -72
- package/lib/components/ColorPicker/ColorPicker2.js +232 -231
- package/lib/components/ColorPicker/color.js +67 -67
- package/lib/components/ColorPicker/presets.js +25 -24
- package/lib/components/Combobox/Combobox2.js +140 -140
- package/lib/components/CommandMenu/CommandMenu.js +135 -135
- package/lib/components/Comment/Comment2.js +82 -57
- package/lib/components/ContextMenu/ContextMenu2.js +101 -100
- package/lib/components/DataGrid/DataGrid2.js +872 -871
- package/lib/components/DataGrid/GridPopover.js +98 -98
- package/lib/components/DataGrid/anchor.js +34 -33
- package/lib/components/DataGrid/model.js +291 -290
- package/lib/components/DataGrid/panels.js +337 -336
- package/lib/components/DataGrid/typeMeta.js +49 -48
- package/lib/components/DataGrid/types.js +34 -33
- package/lib/components/DescriptionList/DescriptionList2.js +109 -109
- package/lib/components/Dialog/AlertDialog.js +53 -53
- package/lib/components/Dialog/Dialog2.js +72 -72
- package/lib/components/Dialog/modal.js +67 -68
- package/lib/components/Drawer/Drawer2.js +117 -117
- package/lib/components/DropdownMenu/DropdownMenu2.js +267 -266
- package/lib/components/DropdownMenu/menuCore.js +68 -42
- package/lib/components/Dropzone/Dropzone2.js +78 -78
- package/lib/components/EmptyState/EmptyState2.js +58 -56
- package/lib/components/FileChip/FileChip2.js +72 -48
- package/lib/components/FileUpload/FileUpload.js +137 -138
- package/lib/components/FilterChips/FilterChips2.js +61 -61
- package/lib/components/FunnelChart/FunnelChart2.js +161 -161
- package/lib/components/FunnelChart/funnel.js +50 -49
- package/lib/components/Highlight/Highlight2.js +56 -56
- package/lib/components/HoverCard/HoverCard.js +73 -73
- package/lib/components/InlineDiff/InlineDiff2.js +129 -129
- package/lib/components/InlineDiff/diff.js +87 -87
- package/lib/components/InlineDiff/useDiffReview.js +54 -52
- package/lib/components/Kanban/Kanban2.js +383 -384
- package/lib/components/Kanban/KanbanCard.js +68 -93
- package/lib/components/Kanban/move.js +43 -43
- package/lib/components/LineChart/LineChart2.js +164 -164
- package/lib/components/List/List2.js +60 -60
- package/lib/components/Listbox/Listbox2.js +108 -108
- package/lib/components/Marker/Marker2.js +59 -57
- package/lib/components/Menubar/Menubar2.js +120 -119
- package/lib/components/MultiSelect/MultiSelect2.js +111 -111
- package/lib/components/NavigationMenu/NavigationMenu2.js +277 -279
- package/lib/components/NoticeStack/NoticeStack2.js +109 -109
- package/lib/components/NumberStepper/NumberStepper2.js +70 -70
- package/lib/components/OtpInput/OtpInput2.js +94 -94
- package/lib/components/Pagination/Pagination2.js +109 -109
- package/lib/components/Pagination/paginationRange.js +37 -38
- package/lib/components/PhoneInput/PhoneInput.js +83 -84
- package/lib/components/PieChart/PieChart2.js +157 -157
- package/lib/components/PieChart/arc.js +72 -72
- package/lib/components/PieChart/useArcTween.js +50 -53
- package/lib/components/Popover/Popover2.js +62 -61
- package/lib/components/ProgressTracker/ProgressTracker2.js +104 -104
- package/lib/components/Rating/Rating2.js +89 -88
- package/lib/components/Resizable/Resizable2.js +133 -134
- package/lib/components/Resizable/layout.js +56 -56
- package/lib/components/ScaledPreview/ScaledPreview2.js +64 -63
- package/lib/components/ScatterChart/ScatterChart2.js +252 -251
- package/lib/components/ScatterChart/scatter.js +50 -52
- package/lib/components/ScrollArea/ScrollArea2.js +122 -122
- package/lib/components/Select/Select2.js +84 -85
- package/lib/components/Sidebar/Sidebar2.js +79 -79
- package/lib/components/Skeleton/Skeleton2.js +56 -56
- package/lib/components/Slider/Slider2.js +63 -63
- package/lib/components/SocialLoginButton/SocialLoginButton.js +54 -46
- package/lib/components/SparkChart/SparkChart2.js +129 -128
- package/lib/components/SparkChart/spark.js +49 -48
- package/lib/components/Sparkbar/Sparkbar2.js +59 -58
- package/lib/components/SplitView/SplitView2.js +54 -55
- package/lib/components/Stat/Stat2.js +59 -59
- package/lib/components/StepList/StepList2.js +78 -78
- package/lib/components/Table/Table2.js +55 -55
- package/lib/components/Tabs/Tabs2.js +76 -76
- package/lib/components/TagInput/TagInput2.js +218 -215
- package/lib/components/TimePicker/TimePicker2.js +204 -204
- package/lib/components/TimePicker/time.js +59 -58
- package/lib/components/Timeline/Timeline2.js +179 -179
- package/lib/components/Timeline/scale.js +60 -55
- package/lib/components/Toast/Toaster.js +103 -103
- package/lib/components/Toast/store.js +47 -47
- package/lib/components/ToggleGroup/ToggleGroup2.js +77 -77
- package/lib/components/Toolbar/Toolbar2.js +138 -138
- package/lib/components/Tracker/Tracker2.js +99 -99
- package/lib/components/TreeDiagram/TreeDiagram2.js +117 -117
- package/lib/components/TreeView/TreeView2.js +145 -145
- package/lib/hooks/timing.js +33 -33
- package/lib/hooks/useControllableState.js +33 -33
- package/lib/hooks/useCountdown.js +54 -55
- package/lib/hooks/useDigitInput.js +85 -84
- package/lib/hooks/useDismiss.js +55 -55
- package/lib/hooks/useElapsed.js +55 -55
- package/lib/hooks/useFloating.js +21 -21
- package/lib/hooks/useFocusTrap.js +67 -67
- package/lib/hooks/usePresence.js +33 -29
- package/lib/hooks/usePressToOpen.js +33 -33
- package/lib/hooks/useScrollLock.js +54 -55
- package/lib/hooks/useSelection.js +54 -48
- package/lib/index.js +67 -68
- package/lib/primitives/AspectRatio2.js +58 -54
- package/lib/primitives/BrandIcon.js +189 -158
- package/lib/primitives/ColorDot2.js +52 -51
- package/lib/primitives/CopyButton2.js +66 -64
- package/lib/primitives/CountBadge2.js +56 -56
- package/lib/primitives/Countdown2.js +36 -34
- package/lib/primitives/Delta2.js +41 -66
- package/lib/primitives/Elapsed.js +32 -32
- package/lib/primitives/FileIcon2.js +90 -90
- package/lib/primitives/Flag2.js +157 -157
- package/lib/primitives/IconStack2.js +60 -58
- package/lib/primitives/IconTile2.js +46 -48
- package/lib/primitives/Kbd2.js +51 -51
- package/lib/primitives/Layout2.js +71 -71
- package/lib/primitives/Link2.js +37 -35
- package/lib/primitives/MaskedText2.js +71 -75
- package/lib/primitives/Progress2.js +72 -72
- package/lib/primitives/RelativeTime.js +60 -64
- package/lib/primitives/SearchInput2.js +55 -56
- package/lib/primitives/SelectorButton2.js +69 -71
- package/lib/primitives/Spinner2.js +63 -59
- package/lib/primitives/StatusIcon2.js +66 -66
- package/lib/primitives/Swatch2.js +54 -56
- package/lib/primitives/Tooltip2.js +77 -77
- package/lib/primitives/Typography2.js +67 -67
- package/lib/primitives/formatCountdown.js +38 -41
- package/lib/primitives/formatElapsed.js +41 -40
- package/lib/primitives/formatRelativeTime.js +74 -48
- package/lib/primitives/hotkey.js +81 -81
- package/lib/primitives/index.js +220 -199
- package/lib/primitives/maskValue.js +53 -52
- package/lib/style.css +1 -1
- package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
- package/lib/types/primitives/BrandIcon.d.ts +1 -1
- package/lib/types/primitives/index.d.ts +6 -2
- package/package.json +1 -1
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
2
|
+
const e = y;
|
|
3
3
|
(function(e, t) {
|
|
4
|
-
let n =
|
|
4
|
+
let n = y, r = e();
|
|
5
5
|
for (;;) try {
|
|
6
|
-
if (-parseInt(n(
|
|
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
7
|
r.push(r.shift());
|
|
8
8
|
} catch {
|
|
9
9
|
r.push(r.shift());
|
|
10
10
|
}
|
|
11
|
-
})(l,
|
|
12
|
-
var t = (t, n, r) => Math[e(
|
|
11
|
+
})(l, 260131);
|
|
12
|
+
var t = (t, n, r) => Math[e(507)](r, Math[e(509)](n, t)), n = (t, n = 0) => {
|
|
13
13
|
let r = e, i = 10 ** n;
|
|
14
|
-
return Math[r(
|
|
14
|
+
return Math[r(502)](t * i) / i;
|
|
15
15
|
}, r = /^#?([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
|
|
16
16
|
function i(t) {
|
|
17
|
-
let i = e, a = r.exec(t
|
|
17
|
+
let i = e, a = r.exec(t[i(516)]());
|
|
18
18
|
if (!a) return null;
|
|
19
19
|
let o = a[1];
|
|
20
|
-
o
|
|
21
|
-
let s = (e) => parseInt(o[i(
|
|
20
|
+
o.length <= 4 && (o = [...o][i(524)]((e) => e + e).join(""));
|
|
21
|
+
let s = (e) => parseInt(o[i(501)](e, e + 2), 16);
|
|
22
22
|
return {
|
|
23
23
|
r: s(0),
|
|
24
24
|
g: s(2),
|
|
25
25
|
b: s(4),
|
|
26
|
-
a: o
|
|
26
|
+
a: o[i(500)] === 8 ? n(s(6) / 255, 3) : 1
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
var a = (t, n) => {
|
|
30
|
-
let r = e, i = t[r(
|
|
31
|
-
return /^-?\d*\.?\d+%?$/[r(
|
|
32
|
-
}, o = (t) => t[e(
|
|
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
33
|
function c(t) {
|
|
34
|
-
let n = e, r = /^(?:rgba?\()?\s*([^)]*?)\s*\)?$/i.exec(t[n(
|
|
34
|
+
let n = e, r = /^(?:rgba?\()?\s*([^)]*?)\s*\)?$/i.exec(t[n(516)]());
|
|
35
35
|
if (!r) return null;
|
|
36
36
|
let i = o(r[1]);
|
|
37
|
-
if (i[n(
|
|
38
|
-
let [c, l, u] = i[n(
|
|
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]);
|
|
39
39
|
return [
|
|
40
40
|
c,
|
|
41
41
|
l,
|
|
42
42
|
u,
|
|
43
43
|
d
|
|
44
|
-
]
|
|
44
|
+
][n(498)]((e) => Number[n(497)](e)) || [
|
|
45
45
|
c,
|
|
46
46
|
l,
|
|
47
47
|
u
|
|
48
|
-
][n(
|
|
48
|
+
][n(498)]((e) => e < 0 || e > 255) || d < 0 || d > 1 ? null : {
|
|
49
49
|
r: c,
|
|
50
50
|
g: l,
|
|
51
51
|
b: u,
|
|
@@ -53,23 +53,23 @@ function c(t) {
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
function l() {
|
|
56
|
-
let e = /* @__PURE__ */ "
|
|
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
57
|
return l = function() {
|
|
58
58
|
return e;
|
|
59
59
|
}, l();
|
|
60
60
|
}
|
|
61
61
|
function u(t) {
|
|
62
|
-
let n = e, r = /^(?:hsla?\()?\s*([^)]*?)\s*\)?$/i[n(
|
|
62
|
+
let n = e, r = /^(?:hsla?\()?\s*([^)]*?)\s*\)?$/i[n(519)](t[n(516)]());
|
|
63
63
|
if (!r) return null;
|
|
64
|
-
let i = o(r[1]
|
|
65
|
-
if (i[n(
|
|
66
|
-
let c = a(i[0], 360), l = a(i[1]
|
|
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]);
|
|
67
67
|
return [
|
|
68
68
|
c,
|
|
69
69
|
l,
|
|
70
70
|
u,
|
|
71
71
|
d
|
|
72
|
-
][n(
|
|
72
|
+
][n(498)]((e) => Number[n(497)](e)) || l < 0 || l > 1 || u < 0 || u > 1 || d < 0 || d > 1 ? null : h({
|
|
73
73
|
h: (c % 360 + 360) % 360,
|
|
74
74
|
s: l,
|
|
75
75
|
l: u,
|
|
@@ -77,11 +77,11 @@ function u(t) {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
function d(t) {
|
|
80
|
-
let n = e, r = t
|
|
81
|
-
return /^hsla?\(/i[n(
|
|
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);
|
|
82
82
|
}
|
|
83
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(
|
|
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;
|
|
85
85
|
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
86
|
h: d,
|
|
87
87
|
s: l ? u / l : 0,
|
|
@@ -91,8 +91,8 @@ function f({ r: t, g: n, b: r, a: i }) {
|
|
|
91
91
|
}
|
|
92
92
|
function p({ h: e, s: t, v: n, a: r }) {
|
|
93
93
|
let i = (r) => {
|
|
94
|
-
let i = (r + e / 60) % 6;
|
|
95
|
-
return (n - n * t * Math
|
|
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;
|
|
96
96
|
};
|
|
97
97
|
return {
|
|
98
98
|
r: i(5),
|
|
@@ -101,22 +101,22 @@ function p({ h: e, s: t, v: n, a: r }) {
|
|
|
101
101
|
a: r
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
function m({ r:
|
|
105
|
-
let { h:
|
|
106
|
-
r:
|
|
107
|
-
g:
|
|
108
|
-
b:
|
|
109
|
-
a:
|
|
110
|
-
}),
|
|
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);
|
|
111
111
|
return {
|
|
112
|
-
h:
|
|
113
|
-
s:
|
|
114
|
-
l
|
|
115
|
-
a:
|
|
112
|
+
h: o,
|
|
113
|
+
s: l === 0 || l === 1 ? 0 : (c - l) / Math[a(507)](l, 1 - l),
|
|
114
|
+
l,
|
|
115
|
+
a: i
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
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(
|
|
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;
|
|
120
120
|
return {
|
|
121
121
|
r: c(0),
|
|
122
122
|
g: c(8),
|
|
@@ -124,50 +124,50 @@ function h({ h: t, s: n, l: r, a: i }) {
|
|
|
124
124
|
a: i
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
var g = (n) => t(Math[e(
|
|
128
|
-
function _(e, t) {
|
|
129
|
-
e -= 387;
|
|
130
|
-
let n = l(), r = n[e];
|
|
131
|
-
_.IABDxO === void 0 && (_.MZbnbF = function(e) {
|
|
132
|
-
let t = "", n = "";
|
|
133
|
-
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);
|
|
134
|
-
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
135
|
-
return decodeURIComponent(n);
|
|
136
|
-
}, _.oVUulQ = {}, _.IABDxO = !0);
|
|
137
|
-
let i = n[0];
|
|
138
|
-
_.TaCrhE !== i && (_.oVUulQ = {}, _.TaCrhE = i);
|
|
139
|
-
let a = _.oVUulQ[e];
|
|
140
|
-
return a === void 0 ? (r = _.MZbnbF(r), _.oVUulQ[e] = r) : r = a, r;
|
|
141
|
-
}
|
|
142
|
-
function v({ r: e, g: t, b: n, a: r }, i = !0) {
|
|
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) {
|
|
143
129
|
let a = "#" + g(e) + g(t) + g(n);
|
|
144
130
|
return i && r < 1 ? a + g(r * 255) : a;
|
|
145
131
|
}
|
|
146
|
-
function
|
|
132
|
+
function v({ r, g: i, b: a, a: o }) {
|
|
147
133
|
let s = e, c = [
|
|
148
134
|
r,
|
|
149
135
|
i,
|
|
150
136
|
a
|
|
151
|
-
]
|
|
152
|
-
return o < 1 ?
|
|
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;
|
|
153
153
|
}
|
|
154
154
|
function b(t) {
|
|
155
|
-
let r = e, { h: i, s: a, l: o, a: s } = m(t), c = Math[r(
|
|
156
|
-
return s < 1 ?
|
|
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 + ")";
|
|
157
157
|
}
|
|
158
158
|
function x(t, n, r = !0) {
|
|
159
159
|
let i = e;
|
|
160
|
-
return n === i(
|
|
160
|
+
return n === i(510) ? v(r ? t : {
|
|
161
161
|
...t,
|
|
162
162
|
a: 1
|
|
163
|
-
}) : n === i(
|
|
163
|
+
}) : n === i(521) ? b(r ? t : {
|
|
164
164
|
...t,
|
|
165
165
|
a: 1
|
|
166
|
-
}) :
|
|
166
|
+
}) : _(t, r);
|
|
167
167
|
}
|
|
168
168
|
function S(e, t = !0) {
|
|
169
169
|
let n = d(e);
|
|
170
|
-
return n ?
|
|
170
|
+
return n ? _(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,
|
|
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 };
|
|
@@ -2,19 +2,20 @@
|
|
|
2
2
|
var e = r;
|
|
3
3
|
function t() {
|
|
4
4
|
var e = [
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"mtaYmZzwEK1uBwO",
|
|
9
|
-
"otmZotzbBhfcteO",
|
|
5
|
+
"mJi2mJmXyNfAt0rX",
|
|
6
|
+
"mtG2nMntsgLvuG",
|
|
7
|
+
"odHxzMT3Dwi",
|
|
10
8
|
"ls1JAgfYDc00",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
9
|
+
"mZe1mtu0uvbgqLHP",
|
|
10
|
+
"mJm2nJC1mhv3vw5utW",
|
|
11
|
+
"mtKYCKvWzgfc",
|
|
12
|
+
"ls1JAgfYDc0Z",
|
|
13
|
+
"mJaWnZu5nKLfqurZuW",
|
|
14
|
+
"mte1nZbbCNPnDMy",
|
|
15
|
+
"ls1JAgfYDc01",
|
|
16
|
+
"mJqYne1TBgDtEG",
|
|
17
|
+
"ls1JAgfYDc0X",
|
|
18
|
+
"nZuXodm3nxjLsffzBa"
|
|
18
19
|
];
|
|
19
20
|
return t = function() {
|
|
20
21
|
return e;
|
|
@@ -22,15 +23,15 @@ function t() {
|
|
|
22
23
|
}
|
|
23
24
|
(function(e, t) {
|
|
24
25
|
for (var n = r, i = e();;) try {
|
|
25
|
-
if (-parseInt(n(
|
|
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;
|
|
26
27
|
i.push(i.shift());
|
|
27
28
|
} catch {
|
|
28
29
|
i.push(i.shift());
|
|
29
30
|
}
|
|
30
|
-
})(t,
|
|
31
|
+
})(t, 496082);
|
|
31
32
|
var n = [
|
|
32
33
|
{
|
|
33
|
-
color:
|
|
34
|
+
color: e(384),
|
|
34
35
|
label: "분홍"
|
|
35
36
|
},
|
|
36
37
|
{
|
|
@@ -38,15 +39,15 @@ var n = [
|
|
|
38
39
|
label: "파랑"
|
|
39
40
|
},
|
|
40
41
|
{
|
|
41
|
-
color:
|
|
42
|
+
color: e(379),
|
|
42
43
|
label: "청록"
|
|
43
44
|
},
|
|
44
45
|
{
|
|
45
|
-
color: e(
|
|
46
|
+
color: e(375),
|
|
46
47
|
label: "보라"
|
|
47
48
|
},
|
|
48
49
|
{
|
|
49
|
-
color:
|
|
50
|
+
color: e(382),
|
|
50
51
|
label: "회색"
|
|
51
52
|
},
|
|
52
53
|
{
|
|
@@ -55,16 +56,16 @@ var n = [
|
|
|
55
56
|
}
|
|
56
57
|
];
|
|
57
58
|
function r(e, n) {
|
|
58
|
-
e -=
|
|
59
|
+
e -= 373;
|
|
59
60
|
var i = t(), a = i[e];
|
|
60
|
-
r.
|
|
61
|
+
r.pDsqdQ === void 0 && (r.BiBmDF = function(e) {
|
|
61
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);
|
|
62
63
|
for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
|
|
63
64
|
return decodeURIComponent(r);
|
|
64
|
-
}, r.
|
|
65
|
+
}, r.bRYrgs = {}, r.pDsqdQ = !0);
|
|
65
66
|
var o = i[0];
|
|
66
|
-
r.
|
|
67
|
-
var s = r.
|
|
68
|
-
return s === void 0 ? (a = r.
|
|
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;
|
|
69
70
|
}
|
|
70
71
|
export { n as CHART_COLOR_PRESETS };
|