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