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