figma-kit 1.0.0-beta.17 → 1.0.0-beta.19
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/dist/index.cjs +3 -3
- package/dist/index.d.ts +13 -6
- package/dist/index.mjs +1042 -884
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
1
|
+
import { jsx as n, jsxs as h, Fragment as Ve } from "react/jsx-runtime";
|
|
2
2
|
import * as A from "react";
|
|
3
|
-
import i, { useCallback as
|
|
4
|
-
import * as
|
|
3
|
+
import i, { useCallback as Y, useId as ct, useState as re, useRef as G, useMemo as Oe, useEffect as _e } from "react";
|
|
4
|
+
import * as ce from "@radix-ui/react-tabs";
|
|
5
5
|
import { cx as p, cva as V } from "class-variance-authority";
|
|
6
6
|
import * as Be from "@radix-ui/react-toggle-group";
|
|
7
7
|
import { Slot as Fe } from "@radix-ui/react-slot";
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
8
|
+
import * as je from "@radix-ui/react-radio-group";
|
|
9
|
+
import * as w from "@radix-ui/react-select";
|
|
10
10
|
import * as N from "@radix-ui/react-dropdown-menu";
|
|
11
|
-
import * as
|
|
11
|
+
import * as y from "@radix-ui/react-context-menu";
|
|
12
12
|
import * as U from "@radix-ui/react-popover";
|
|
13
|
-
import * as
|
|
13
|
+
import * as H from "@radix-ui/react-tooltip";
|
|
14
14
|
import * as B from "@radix-ui/react-dialog";
|
|
15
15
|
import * as $ from "@radix-ui/react-alert-dialog";
|
|
16
|
-
import { pipe as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import * as
|
|
16
|
+
import { pipe as Q, round as z, clamp as I, isDeepEqual as ze, pick as pt } from "remeda";
|
|
17
|
+
import dt from "@emmetio/math-expression";
|
|
18
|
+
import Ge from "merge-props";
|
|
19
|
+
import * as fe from "@radix-ui/react-slider";
|
|
20
20
|
import * as Ne from "@radix-ui/react-collapsible";
|
|
21
|
-
import
|
|
21
|
+
import ut from "react-textarea-autosize";
|
|
22
22
|
import * as Ae from "@radix-ui/react-switch";
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
@@ -26,45 +26,45 @@ import * as Ae from "@radix-ui/react-switch";
|
|
|
26
26
|
* Copyright (c) 2022 WorkOS
|
|
27
27
|
* https://github.com/radix-ui/primitives/blob/main/LICENSE
|
|
28
28
|
* */
|
|
29
|
-
function
|
|
30
|
-
typeof
|
|
29
|
+
function gt(r, t) {
|
|
30
|
+
typeof r == "function" ? r(t) : r != null && (r.current = t);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return (
|
|
32
|
+
function He(...r) {
|
|
33
|
+
return (t) => r.forEach((e) => gt(e, t));
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return A.useCallback(
|
|
35
|
+
function pe(...r) {
|
|
36
|
+
return A.useCallback(He(...r), r);
|
|
37
37
|
}
|
|
38
|
-
const Ue = i.forwardRef((
|
|
39
|
-
const { className: e, ...
|
|
40
|
-
return /* @__PURE__ */ n(
|
|
41
|
-
}),
|
|
42
|
-
const { className: e, ...
|
|
43
|
-
return /* @__PURE__ */ n(
|
|
44
|
-
}),
|
|
45
|
-
const { className: e, ...
|
|
46
|
-
return /* @__PURE__ */ n(
|
|
38
|
+
const Ue = i.forwardRef((r, t) => {
|
|
39
|
+
const { className: e, ...o } = r;
|
|
40
|
+
return /* @__PURE__ */ n(ce.Root, { ref: t, className: p(e, "fp-TabsRoot"), ...o });
|
|
41
|
+
}), qe = i.forwardRef((r, t) => {
|
|
42
|
+
const { className: e, ...o } = r;
|
|
43
|
+
return /* @__PURE__ */ n(ce.List, { ref: t, className: p(e, "fp-TabsList"), ...o });
|
|
44
|
+
}), We = i.forwardRef((r, t) => {
|
|
45
|
+
const { className: e, ...o } = r, a = mt(), s = He(t, a);
|
|
46
|
+
return /* @__PURE__ */ n(ce.Trigger, { ref: s, className: p(e, "fp-TabsTrigger"), ...o });
|
|
47
47
|
});
|
|
48
|
-
function
|
|
49
|
-
return
|
|
50
|
-
|
|
48
|
+
function mt() {
|
|
49
|
+
return Y((r) => {
|
|
50
|
+
r !== null && (r.style.width = r.getBoundingClientRect().width + "px");
|
|
51
51
|
}, []);
|
|
52
52
|
}
|
|
53
|
-
const Xe = i.forwardRef((
|
|
54
|
-
const { className: e, ...
|
|
55
|
-
return /* @__PURE__ */ n(
|
|
53
|
+
const Xe = i.forwardRef((r, t) => {
|
|
54
|
+
const { className: e, ...o } = r;
|
|
55
|
+
return /* @__PURE__ */ n(ce.Content, { ref: t, className: p(e, "fp-TabsContent"), ...o });
|
|
56
56
|
});
|
|
57
57
|
Ue.displayName = "Tabs.Root";
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
qe.displayName = "Tabs.List";
|
|
59
|
+
We.displayName = "Tabs.Trigger";
|
|
60
60
|
Xe.displayName = "Tabs.Content";
|
|
61
|
-
const
|
|
61
|
+
const Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
62
62
|
__proto__: null,
|
|
63
63
|
Content: Xe,
|
|
64
|
-
List:
|
|
64
|
+
List: qe,
|
|
65
65
|
Root: Ue,
|
|
66
|
-
Trigger:
|
|
67
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
66
|
+
Trigger: We
|
|
67
|
+
}, Symbol.toStringTag, { value: "Module" })), de = V("fp-Text", {
|
|
68
68
|
variants: {
|
|
69
69
|
size: {
|
|
70
70
|
small: "fp-size-small",
|
|
@@ -84,14 +84,14 @@ const Kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
84
84
|
true: "fp-block"
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
}), F = i.forwardRef((
|
|
88
|
-
const { asChild: e, className:
|
|
87
|
+
}), F = i.forwardRef((r, t) => {
|
|
88
|
+
const { asChild: e, className: o, size: a, weight: s, align: l, block: c, ...d } = r;
|
|
89
89
|
return /* @__PURE__ */ n(
|
|
90
90
|
e ? Fe : "span",
|
|
91
91
|
{
|
|
92
|
-
ref:
|
|
93
|
-
className:
|
|
94
|
-
className:
|
|
92
|
+
ref: t,
|
|
93
|
+
className: de({
|
|
94
|
+
className: o,
|
|
95
95
|
size: a,
|
|
96
96
|
weight: s,
|
|
97
97
|
align: l,
|
|
@@ -102,15 +102,15 @@ const Kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
102
102
|
);
|
|
103
103
|
});
|
|
104
104
|
F.displayName = "Text";
|
|
105
|
-
const
|
|
106
|
-
const { className: e, size:
|
|
105
|
+
const ye = i.forwardRef((r, t) => {
|
|
106
|
+
const { className: e, size: o, weight: a, align: s, block: l, ...c } = r;
|
|
107
107
|
return /* @__PURE__ */ n(
|
|
108
108
|
"label",
|
|
109
109
|
{
|
|
110
|
-
ref:
|
|
111
|
-
className:
|
|
110
|
+
ref: t,
|
|
111
|
+
className: de({
|
|
112
112
|
className: e,
|
|
113
|
-
size:
|
|
113
|
+
size: o,
|
|
114
114
|
weight: a,
|
|
115
115
|
align: s,
|
|
116
116
|
block: l
|
|
@@ -119,16 +119,16 @@ const Re = i.forwardRef((t, o) => {
|
|
|
119
119
|
}
|
|
120
120
|
);
|
|
121
121
|
});
|
|
122
|
-
|
|
123
|
-
const
|
|
124
|
-
const { className: e, size:
|
|
122
|
+
ye.displayName = "Label";
|
|
123
|
+
const ft = i.forwardRef((r, t) => {
|
|
124
|
+
const { className: e, size: o, weight: a, align: s, block: l, ...c } = r;
|
|
125
125
|
return /* @__PURE__ */ n(
|
|
126
126
|
"p",
|
|
127
127
|
{
|
|
128
|
-
ref:
|
|
129
|
-
className:
|
|
128
|
+
ref: t,
|
|
129
|
+
className: de({
|
|
130
130
|
className: e,
|
|
131
|
-
size:
|
|
131
|
+
size: o,
|
|
132
132
|
weight: a,
|
|
133
133
|
align: s,
|
|
134
134
|
block: l
|
|
@@ -137,16 +137,16 @@ const go = i.forwardRef((t, o) => {
|
|
|
137
137
|
}
|
|
138
138
|
);
|
|
139
139
|
});
|
|
140
|
-
|
|
141
|
-
const
|
|
142
|
-
const { asChild: e, className:
|
|
140
|
+
ft.displayName = "Paragraph";
|
|
141
|
+
const bt = i.forwardRef((r, t) => {
|
|
142
|
+
const { asChild: e, className: o, size: a, weight: s, align: l, block: c, ...d } = r;
|
|
143
143
|
return /* @__PURE__ */ n(
|
|
144
144
|
e ? Fe : "a",
|
|
145
145
|
{
|
|
146
|
-
ref:
|
|
146
|
+
ref: t,
|
|
147
147
|
className: p(
|
|
148
|
-
|
|
149
|
-
className:
|
|
148
|
+
de({
|
|
149
|
+
className: o,
|
|
150
150
|
size: a,
|
|
151
151
|
weight: s,
|
|
152
152
|
align: l,
|
|
@@ -158,44 +158,44 @@ const ho = i.forwardRef((t, o) => {
|
|
|
158
158
|
}
|
|
159
159
|
);
|
|
160
160
|
});
|
|
161
|
-
|
|
161
|
+
bt.displayName = "Link";
|
|
162
162
|
/**
|
|
163
163
|
* @license
|
|
164
164
|
* MIT License
|
|
165
165
|
* Copyright (c) 2022 WorkOS
|
|
166
166
|
* https://github.com/radix-ui/primitives/blob/main/LICENSE
|
|
167
167
|
* */
|
|
168
|
-
function Ke(
|
|
169
|
-
const
|
|
168
|
+
function Ke(r) {
|
|
169
|
+
const t = A.useRef(r);
|
|
170
170
|
return A.useEffect(() => {
|
|
171
|
-
|
|
171
|
+
t.current = r;
|
|
172
172
|
}), A.useMemo(() => (...e) => {
|
|
173
|
-
var
|
|
174
|
-
return (
|
|
173
|
+
var o;
|
|
174
|
+
return (o = t.current) == null ? void 0 : o.call(t, ...e);
|
|
175
175
|
}, []);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function he({ prop: r, defaultProp: t, onChange: e = () => {
|
|
178
178
|
} }) {
|
|
179
|
-
const [
|
|
179
|
+
const [o, a] = ht({ defaultProp: t, onChange: e }), s = r !== void 0, l = s ? r : o, c = Ke(e), d = A.useCallback(
|
|
180
180
|
(u) => {
|
|
181
181
|
if (s) {
|
|
182
|
-
const
|
|
183
|
-
|
|
182
|
+
const f = typeof u == "function" ? u(r) : u;
|
|
183
|
+
f !== r && c(f);
|
|
184
184
|
} else
|
|
185
185
|
a(u);
|
|
186
186
|
},
|
|
187
|
-
[s,
|
|
187
|
+
[s, r, a, c]
|
|
188
188
|
);
|
|
189
189
|
return [l, d];
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
const e = A.useState(
|
|
191
|
+
function ht({ defaultProp: r, onChange: t }) {
|
|
192
|
+
const e = A.useState(r), [o] = e, a = A.useRef(o), s = Ke(t);
|
|
193
193
|
return A.useEffect(() => {
|
|
194
|
-
a.current !==
|
|
195
|
-
}, [
|
|
194
|
+
a.current !== o && (s(o), a.current = o);
|
|
195
|
+
}, [o, a, s]), e;
|
|
196
196
|
}
|
|
197
|
-
const Ye = i.forwardRef((
|
|
198
|
-
const { className: e, fullWidth:
|
|
197
|
+
const Ye = i.forwardRef((r, t) => {
|
|
198
|
+
const { className: e, fullWidth: o, value: a, defaultValue: s, onValueChange: l, ...c } = r, [d, u] = he({
|
|
199
199
|
prop: a,
|
|
200
200
|
defaultProp: s,
|
|
201
201
|
onChange: l
|
|
@@ -203,35 +203,35 @@ const Ye = i.forwardRef((t, o) => {
|
|
|
203
203
|
return /* @__PURE__ */ n(
|
|
204
204
|
Be.Root,
|
|
205
205
|
{
|
|
206
|
-
ref:
|
|
207
|
-
className: p(e, "fp-SegmentedControlRoot", { "fp-full-width":
|
|
206
|
+
ref: t,
|
|
207
|
+
className: p(e, "fp-SegmentedControlRoot", { "fp-full-width": o }),
|
|
208
208
|
...c,
|
|
209
209
|
type: "single",
|
|
210
210
|
value: d,
|
|
211
|
-
onValueChange: (
|
|
212
|
-
|
|
211
|
+
onValueChange: (g) => {
|
|
212
|
+
g && u(g);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
);
|
|
216
|
-
}), Ze = i.forwardRef((
|
|
217
|
-
const { className: e, ...
|
|
218
|
-
return /* @__PURE__ */ n(Be.Item, { ref:
|
|
219
|
-
}), Je = i.forwardRef((
|
|
220
|
-
const { className: e, ...
|
|
221
|
-
return /* @__PURE__ */ n(F, { ref:
|
|
216
|
+
}), Ze = i.forwardRef((r, t) => {
|
|
217
|
+
const { className: e, ...o } = r;
|
|
218
|
+
return /* @__PURE__ */ n(Be.Item, { ref: t, className: p(e, "fp-SegmentedControlItem"), ...o });
|
|
219
|
+
}), Je = i.forwardRef((r, t) => {
|
|
220
|
+
const { className: e, ...o } = r;
|
|
221
|
+
return /* @__PURE__ */ n(F, { ref: t, className: p(e, "fp-SegmentedControlText"), ...o });
|
|
222
222
|
});
|
|
223
223
|
Ye.displayName = "SegmentedControl.Root";
|
|
224
224
|
Ze.displayName = "SegmentedControl.Item";
|
|
225
225
|
Je.displayName = "SegmentedControl.Text";
|
|
226
|
-
const
|
|
226
|
+
const Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
227
227
|
__proto__: null,
|
|
228
228
|
Item: Ze,
|
|
229
229
|
Root: Ye,
|
|
230
230
|
Text: Je
|
|
231
231
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
232
|
-
function
|
|
233
|
-
const e = i.createContext(
|
|
234
|
-
function
|
|
232
|
+
function ue(r, t) {
|
|
233
|
+
const e = i.createContext(t);
|
|
234
|
+
function o(s) {
|
|
235
235
|
const { children: l, ...c } = s, d = i.useMemo(() => c, Object.values(c));
|
|
236
236
|
return /* @__PURE__ */ n(e.Provider, { value: d, children: l });
|
|
237
237
|
}
|
|
@@ -239,49 +239,49 @@ function de(t, o) {
|
|
|
239
239
|
const l = i.useContext(e);
|
|
240
240
|
if (l)
|
|
241
241
|
return l;
|
|
242
|
-
if (
|
|
243
|
-
return
|
|
244
|
-
throw new Error(`\`${s}\` must be used within \`${
|
|
242
|
+
if (t !== void 0)
|
|
243
|
+
return t;
|
|
244
|
+
throw new Error(`\`${s}\` must be used within \`${r}\``);
|
|
245
245
|
}
|
|
246
|
-
return
|
|
246
|
+
return o.displayName = r + "Provider", [o, a];
|
|
247
247
|
}
|
|
248
|
-
const [
|
|
249
|
-
const { orientation: e = "horizontal", disabled:
|
|
250
|
-
return /* @__PURE__ */ n(
|
|
251
|
-
|
|
248
|
+
const [Ct, Nt] = ue("RadioGroup"), Qe = i.forwardRef((r, t) => {
|
|
249
|
+
const { orientation: e = "horizontal", disabled: o, className: a, ...s } = r;
|
|
250
|
+
return /* @__PURE__ */ n(Ct, { orientation: e, disabled: o, children: /* @__PURE__ */ n(
|
|
251
|
+
je.Root,
|
|
252
252
|
{
|
|
253
|
-
ref:
|
|
253
|
+
ref: t,
|
|
254
254
|
orientation: e,
|
|
255
|
-
disabled:
|
|
255
|
+
disabled: o,
|
|
256
256
|
className: p(a, "fp-RadioGroupRoot"),
|
|
257
257
|
...s
|
|
258
258
|
}
|
|
259
259
|
) });
|
|
260
|
-
}),
|
|
261
|
-
const { className: e, ...
|
|
262
|
-
return /* @__PURE__ */ n(
|
|
263
|
-
}),
|
|
264
|
-
const { orientation: e, disabled:
|
|
260
|
+
}), er = i.forwardRef((r, t) => {
|
|
261
|
+
const { className: e, ...o } = r;
|
|
262
|
+
return /* @__PURE__ */ n(je.Item, { ref: t, className: p(e, "fp-RadioGroupItem"), ...o });
|
|
263
|
+
}), rr = i.forwardRef((r, t) => {
|
|
264
|
+
const { orientation: e, disabled: o } = Nt("Label"), { className: a, ...s } = r;
|
|
265
265
|
return /* @__PURE__ */ n(
|
|
266
|
-
|
|
266
|
+
ye,
|
|
267
267
|
{
|
|
268
|
-
ref:
|
|
268
|
+
ref: t,
|
|
269
269
|
className: p(a, "fp-RadioGroupLabel"),
|
|
270
270
|
"data-orientation": e,
|
|
271
|
-
"data-disabled":
|
|
271
|
+
"data-disabled": o ? "" : void 0,
|
|
272
272
|
...s
|
|
273
273
|
}
|
|
274
274
|
);
|
|
275
275
|
});
|
|
276
276
|
Qe.displayName = "RadioGroup.Root";
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
const
|
|
277
|
+
er.displayName = "RadioGroup.Item";
|
|
278
|
+
rr.displayName = "RadioGroup.Label";
|
|
279
|
+
const Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
280
280
|
__proto__: null,
|
|
281
|
-
Item:
|
|
282
|
-
Label:
|
|
281
|
+
Item: er,
|
|
282
|
+
Label: rr,
|
|
283
283
|
Root: Qe
|
|
284
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
284
|
+
}, Symbol.toStringTag, { value: "Module" })), yt = "6", wt = "0 0 24 24", Rt = V("fp-Icon", {
|
|
285
285
|
variants: {
|
|
286
286
|
size: {
|
|
287
287
|
1: "fp-size-1",
|
|
@@ -299,11 +299,11 @@ const Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
299
299
|
}
|
|
300
300
|
},
|
|
301
301
|
defaultVariants: {
|
|
302
|
-
size:
|
|
302
|
+
size: yt
|
|
303
303
|
}
|
|
304
304
|
});
|
|
305
|
-
function
|
|
306
|
-
const { path:
|
|
305
|
+
function j(r) {
|
|
306
|
+
const { path: t, viewBox: e = wt, displayName: o } = r, a = i.forwardRef((s, l) => {
|
|
307
307
|
const { size: c, className: d, ...u } = s;
|
|
308
308
|
return /* @__PURE__ */ n(
|
|
309
309
|
"svg",
|
|
@@ -311,28 +311,28 @@ function G(t) {
|
|
|
311
311
|
xmlns: "http://www.w3.org/2000/svg",
|
|
312
312
|
ref: l,
|
|
313
313
|
viewBox: e,
|
|
314
|
-
className:
|
|
314
|
+
className: Rt({ className: d, size: c }),
|
|
315
315
|
fill: "none",
|
|
316
316
|
...u,
|
|
317
|
-
children:
|
|
317
|
+
children: t
|
|
318
318
|
}
|
|
319
319
|
);
|
|
320
320
|
});
|
|
321
|
-
return a.displayName =
|
|
321
|
+
return a.displayName = o || "Icon", a;
|
|
322
322
|
}
|
|
323
|
-
const
|
|
323
|
+
const tr = j({
|
|
324
324
|
displayName: "Close",
|
|
325
325
|
path: /* @__PURE__ */ n("path", { stroke: "var(--color-icon)", strokeLinecap: "round", strokeLinejoin: "round", d: "M17 7 7 17M7 7l10 10" })
|
|
326
|
-
}),
|
|
326
|
+
}), we = j({
|
|
327
327
|
displayName: "ChevronRight",
|
|
328
328
|
path: /* @__PURE__ */ n("path", { stroke: "var(--color-icon)", strokeLinecap: "round", d: "M11.121 14.121L13.243 12L11.12 9.879" })
|
|
329
|
-
}),
|
|
329
|
+
}), vt = j({
|
|
330
330
|
displayName: "ChevronUp",
|
|
331
331
|
path: /* @__PURE__ */ n("path", { stroke: "var(--color-icon)", strokeLinecap: "round", d: "M14.121 12.879L12 10.757L9.87903 12.88" })
|
|
332
|
-
}),
|
|
332
|
+
}), or = j({
|
|
333
333
|
displayName: "ChevronDown",
|
|
334
334
|
path: /* @__PURE__ */ n("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n("path", { stroke: "var(--color-icon)", strokeLinecap: "round", d: "M9.87897 11.121L12 13.243L14.121 11.12" }) })
|
|
335
|
-
}),
|
|
335
|
+
}), ge = j({
|
|
336
336
|
displayName: "Checkmark",
|
|
337
337
|
viewBox: "0 0 16 16",
|
|
338
338
|
path: /* @__PURE__ */ n(
|
|
@@ -344,20 +344,20 @@ const ot = G({
|
|
|
344
344
|
d: "M11.777 4.08399C11.8873 4.1575 11.9639 4.27178 11.99 4.40172C12.016 4.53167 11.9894 4.66665 11.916 4.77699L7.91602 10.777C7.87506 10.8387 7.82091 10.8905 7.75748 10.9287C7.69405 10.9669 7.62294 10.9905 7.54926 10.9979C7.47559 11.0053 7.40119 10.9962 7.33146 10.9713C7.26172 10.9464 7.19839 10.9063 7.14602 10.854L4.14602 7.85399C4.09953 7.80751 4.06266 7.75232 4.0375 7.69158C4.01234 7.63084 3.99939 7.56574 3.99939 7.49999C3.99939 7.43425 4.01234 7.36915 4.0375 7.30841C4.06266 7.24767 4.09953 7.19248 4.14602 7.14599C4.19251 7.09951 4.2477 7.06263 4.30844 7.03747C4.36918 7.01231 4.43428 6.99936 4.50002 6.99936C4.56577 6.99936 4.63087 7.01231 4.6916 7.03747C4.75234 7.06263 4.80753 7.09951 4.85402 7.14599L7.42202 9.71599L11.084 4.22299C11.1575 4.11271 11.2718 4.03612 11.4018 4.01006C11.5317 3.98399 11.6667 4.01059 11.777 4.08399Z"
|
|
345
345
|
}
|
|
346
346
|
)
|
|
347
|
-
}),
|
|
347
|
+
}), ar = j({
|
|
348
348
|
displayName: "Circle",
|
|
349
349
|
viewBox: "0 0 16 16",
|
|
350
350
|
path: /* @__PURE__ */ n("circle", { fill: "var(--color-icon)", cx: "8", cy: "8", r: "3" })
|
|
351
|
-
}),
|
|
351
|
+
}), xt = j({
|
|
352
352
|
displayName: "CheckmarkIndeterminate",
|
|
353
353
|
viewBox: "0 0 16 16",
|
|
354
354
|
path: /* @__PURE__ */ n("path", { fill: "var(--color-icon)", d: "M4 8a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z" })
|
|
355
|
-
}), [
|
|
356
|
-
const { className: e, id:
|
|
357
|
-
return /* @__PURE__ */ n(
|
|
358
|
-
}),
|
|
359
|
-
const { className: e, indeterminate:
|
|
360
|
-
return /* @__PURE__ */
|
|
355
|
+
}), [Pt, Re] = ue("Checkbox"), nr = i.forwardRef((r, t) => {
|
|
356
|
+
const { className: e, id: o, ...a } = r, s = ct();
|
|
357
|
+
return /* @__PURE__ */ n(Pt, { id: o ?? s, children: /* @__PURE__ */ n("div", { ref: t, className: p(e, "fp-CheckboxRoot"), ...a }) });
|
|
358
|
+
}), sr = i.forwardRef((r, t) => {
|
|
359
|
+
const { className: e, indeterminate: o, ...a } = r, { id: s } = Re("Input"), l = Tt(o), c = pe(t, l);
|
|
360
|
+
return /* @__PURE__ */ h(Ve, { children: [
|
|
361
361
|
/* @__PURE__ */ n(
|
|
362
362
|
"input",
|
|
363
363
|
{
|
|
@@ -370,268 +370,268 @@ const ot = G({
|
|
|
370
370
|
type: "checkbox"
|
|
371
371
|
}
|
|
372
372
|
),
|
|
373
|
-
/* @__PURE__ */ n(
|
|
373
|
+
/* @__PURE__ */ n(lr, {})
|
|
374
374
|
] });
|
|
375
|
-
}),
|
|
376
|
-
/* @__PURE__ */ n(
|
|
377
|
-
/* @__PURE__ */ n(
|
|
378
|
-
] }),
|
|
379
|
-
const { className: e, ...
|
|
375
|
+
}), lr = () => /* @__PURE__ */ h("span", { className: "fp-CheckboxIndicator", "aria-hidden": "true", children: [
|
|
376
|
+
/* @__PURE__ */ n(ge, { className: "fp-CheckboxCheckmark", size: "4" }),
|
|
377
|
+
/* @__PURE__ */ n(xt, { className: "fp-CheckboxIndeterminate", size: "4" })
|
|
378
|
+
] }), ir = i.forwardRef((r, t) => {
|
|
379
|
+
const { className: e, ...o } = r, { id: a } = Re("Input");
|
|
380
380
|
return /* @__PURE__ */ n(
|
|
381
|
-
|
|
381
|
+
ye,
|
|
382
382
|
{
|
|
383
383
|
"aria-hidden": "true",
|
|
384
|
-
ref:
|
|
384
|
+
ref: t,
|
|
385
385
|
className: p(e, "fp-CheckboxLabel"),
|
|
386
386
|
htmlFor: a,
|
|
387
387
|
id: `checkbox-label-${a}`,
|
|
388
|
-
...
|
|
388
|
+
...o
|
|
389
389
|
}
|
|
390
390
|
);
|
|
391
|
-
}),
|
|
392
|
-
const { className: e, ...
|
|
391
|
+
}), cr = i.forwardRef((r, t) => {
|
|
392
|
+
const { className: e, ...o } = r, { id: a } = Re("Description");
|
|
393
393
|
return /* @__PURE__ */ n(
|
|
394
394
|
F,
|
|
395
395
|
{
|
|
396
396
|
"aria-hidden": "true",
|
|
397
|
-
ref:
|
|
397
|
+
ref: t,
|
|
398
398
|
className: p(e, "fp-CheckboxDescription"),
|
|
399
399
|
id: `checkbox-description-${a}`,
|
|
400
|
-
...
|
|
400
|
+
...o
|
|
401
401
|
}
|
|
402
402
|
);
|
|
403
403
|
});
|
|
404
|
-
function
|
|
405
|
-
return
|
|
406
|
-
(
|
|
407
|
-
|
|
404
|
+
function Tt(r) {
|
|
405
|
+
return Y(
|
|
406
|
+
(t) => {
|
|
407
|
+
t && (t.indeterminate = !!r);
|
|
408
408
|
},
|
|
409
|
-
[
|
|
409
|
+
[r]
|
|
410
410
|
);
|
|
411
411
|
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
const
|
|
412
|
+
nr.displayName = "Checkbox.Root";
|
|
413
|
+
sr.displayName = "Checkbox.Input";
|
|
414
|
+
lr.displayName = "Checkbox.Indicator";
|
|
415
|
+
ir.displayName = "Checkbox.Label";
|
|
416
|
+
cr.displayName = "Checkbox.Description";
|
|
417
|
+
const ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
418
418
|
__proto__: null,
|
|
419
|
-
Description:
|
|
420
|
-
Input:
|
|
421
|
-
Label:
|
|
422
|
-
Root:
|
|
423
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
424
|
-
const { placeholder: e, className:
|
|
425
|
-
return /* @__PURE__ */
|
|
426
|
-
/* @__PURE__ */ n(
|
|
427
|
-
/* @__PURE__ */ n(
|
|
419
|
+
Description: cr,
|
|
420
|
+
Input: sr,
|
|
421
|
+
Label: ir,
|
|
422
|
+
Root: nr
|
|
423
|
+
}, Symbol.toStringTag, { value: "Module" })), pr = w.Root, St = w.Arrow, ve = i.forwardRef((r, t) => {
|
|
424
|
+
const { placeholder: e, className: o, ...a } = r;
|
|
425
|
+
return /* @__PURE__ */ h(w.Trigger, { ref: t, ...a, className: p(o, "fp-SelectTrigger"), children: [
|
|
426
|
+
/* @__PURE__ */ n(w.Value, { placeholder: e }),
|
|
427
|
+
/* @__PURE__ */ n(w.Icon, { className: "fp-SelectTriggerIcon", children: /* @__PURE__ */ n(or, {}) })
|
|
428
428
|
] });
|
|
429
|
-
}), xe = i.forwardRef((
|
|
430
|
-
const { children: e, portal:
|
|
431
|
-
return /* @__PURE__ */ n(l, { children: /* @__PURE__ */
|
|
432
|
-
/* @__PURE__ */ n(
|
|
433
|
-
/* @__PURE__ */ n(
|
|
434
|
-
/* @__PURE__ */ n(
|
|
429
|
+
}), xe = i.forwardRef((r, t) => {
|
|
430
|
+
const { children: e, portal: o = !1, className: a, ...s } = r, l = o ? w.Portal : i.Fragment;
|
|
431
|
+
return /* @__PURE__ */ n(l, { children: /* @__PURE__ */ h(w.Content, { ref: t, ...s, className: p(a, "fp-MenuContent"), children: [
|
|
432
|
+
/* @__PURE__ */ n(w.ScrollUpButton, { className: "fp-SelectScrollUpButton", children: /* @__PURE__ */ n(vt, {}) }),
|
|
433
|
+
/* @__PURE__ */ n(w.Viewport, { children: e }),
|
|
434
|
+
/* @__PURE__ */ n(w.ScrollDownButton, { className: "fp-SelectScrollDownButton", children: /* @__PURE__ */ n(or, {}) })
|
|
435
435
|
] }) });
|
|
436
|
-
}), Pe = i.forwardRef((
|
|
437
|
-
const { children: e, className:
|
|
438
|
-
return /* @__PURE__ */
|
|
439
|
-
/* @__PURE__ */ n(
|
|
440
|
-
/* @__PURE__ */ n(
|
|
436
|
+
}), Pe = i.forwardRef((r, t) => {
|
|
437
|
+
const { children: e, className: o, ...a } = r;
|
|
438
|
+
return /* @__PURE__ */ h(w.Item, { ref: t, ...a, className: p(o, "fp-MenuItem fp-MenuCheckboxItem"), children: [
|
|
439
|
+
/* @__PURE__ */ n(w.ItemIndicator, { className: "fp-MenuItemIndicator", children: /* @__PURE__ */ n(ge, { size: "4" }) }),
|
|
440
|
+
/* @__PURE__ */ n(w.ItemText, { children: e })
|
|
441
441
|
] });
|
|
442
|
-
}),
|
|
443
|
-
const { className: e, ...
|
|
444
|
-
return /* @__PURE__ */ n(
|
|
445
|
-
}),
|
|
446
|
-
const { className: e, ...
|
|
447
|
-
return /* @__PURE__ */ n(
|
|
448
|
-
}),
|
|
449
|
-
const { className: e, ...
|
|
450
|
-
return /* @__PURE__ */ n(
|
|
442
|
+
}), dr = i.forwardRef((r, t) => {
|
|
443
|
+
const { className: e, ...o } = r;
|
|
444
|
+
return /* @__PURE__ */ n(w.Separator, { ref: t, className: p(e, "fp-MenuSeparator"), ...o });
|
|
445
|
+
}), ur = i.forwardRef((r, t) => {
|
|
446
|
+
const { className: e, ...o } = r;
|
|
447
|
+
return /* @__PURE__ */ n(w.Label, { ref: t, className: p(e, "fp-MenuLabel"), ...o });
|
|
448
|
+
}), gr = i.forwardRef((r, t) => {
|
|
449
|
+
const { className: e, ...o } = r;
|
|
450
|
+
return /* @__PURE__ */ n(w.Group, { ref: t, className: p(e, "fp-MenuGroup"), ...o });
|
|
451
451
|
});
|
|
452
452
|
ve.displayName = "Select.Trigger";
|
|
453
453
|
xe.displayName = "Select.Content";
|
|
454
454
|
Pe.displayName = "Select.Item";
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
const
|
|
455
|
+
dr.displayName = "Select.Separator";
|
|
456
|
+
gr.displayName = "Select.Group";
|
|
457
|
+
ur.displayName = "Select.Label";
|
|
458
|
+
const ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
459
459
|
__proto__: null,
|
|
460
|
-
Arrow:
|
|
460
|
+
Arrow: St,
|
|
461
461
|
Content: xe,
|
|
462
|
-
Group:
|
|
462
|
+
Group: gr,
|
|
463
463
|
Item: Pe,
|
|
464
|
-
Label:
|
|
465
|
-
Root:
|
|
466
|
-
Separator:
|
|
464
|
+
Label: ur,
|
|
465
|
+
Root: pr,
|
|
466
|
+
Separator: dr,
|
|
467
467
|
Trigger: ve
|
|
468
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
469
|
-
const { children: e, className:
|
|
470
|
-
return /* @__PURE__ */ n(N.Portal, { children: /* @__PURE__ */ n(N.Content, { ref:
|
|
471
|
-
}),
|
|
472
|
-
const { className: e, ...
|
|
473
|
-
return /* @__PURE__ */ n(N.Item, { ref:
|
|
474
|
-
}),
|
|
475
|
-
const { className: e, ...
|
|
476
|
-
return /* @__PURE__ */ n(N.Separator, { ref:
|
|
477
|
-
}),
|
|
478
|
-
const { className: e, ...
|
|
479
|
-
return /* @__PURE__ */ n(N.Label, { ref:
|
|
480
|
-
}),
|
|
481
|
-
const { className: e, ...
|
|
482
|
-
return /* @__PURE__ */ n(N.Group, { ref:
|
|
483
|
-
}),
|
|
484
|
-
const { children: e, className:
|
|
485
|
-
return /* @__PURE__ */
|
|
468
|
+
}, Symbol.toStringTag, { value: "Module" })), Mt = N.Root, It = N.Trigger, $t = N.Sub, kt = N.RadioGroup, mr = i.forwardRef((r, t) => {
|
|
469
|
+
const { children: e, className: o, ...a } = r;
|
|
470
|
+
return /* @__PURE__ */ n(N.Portal, { children: /* @__PURE__ */ n(N.Content, { ref: t, sideOffset: 6, ...a, className: p(o, "fp-MenuContent"), children: e }) });
|
|
471
|
+
}), fr = i.forwardRef((r, t) => {
|
|
472
|
+
const { className: e, ...o } = r;
|
|
473
|
+
return /* @__PURE__ */ n(N.Item, { ref: t, ...o, className: p(e, "fp-MenuItem") });
|
|
474
|
+
}), br = i.forwardRef((r, t) => {
|
|
475
|
+
const { className: e, ...o } = r;
|
|
476
|
+
return /* @__PURE__ */ n(N.Separator, { ref: t, className: p(e, "fp-MenuSeparator"), ...o });
|
|
477
|
+
}), hr = i.forwardRef((r, t) => {
|
|
478
|
+
const { className: e, ...o } = r;
|
|
479
|
+
return /* @__PURE__ */ n(N.Label, { ref: t, className: p(e, "fp-MenuLabel"), ...o });
|
|
480
|
+
}), Cr = i.forwardRef((r, t) => {
|
|
481
|
+
const { className: e, ...o } = r;
|
|
482
|
+
return /* @__PURE__ */ n(N.Group, { ref: t, className: p(e, "fp-MenuGroup"), ...o });
|
|
483
|
+
}), Nr = i.forwardRef((r, t) => {
|
|
484
|
+
const { children: e, className: o, ...a } = r;
|
|
485
|
+
return /* @__PURE__ */ h(N.SubTrigger, { ref: t, ...a, className: p(o, "fp-MenuItem"), children: [
|
|
486
486
|
e,
|
|
487
|
-
/* @__PURE__ */ n(
|
|
487
|
+
/* @__PURE__ */ n(we, { className: "fp-MenuSubtriggerCaret" })
|
|
488
488
|
] });
|
|
489
|
-
}),
|
|
490
|
-
const { className: e, ...
|
|
489
|
+
}), yr = i.forwardRef((r, t) => {
|
|
490
|
+
const { className: e, ...o } = r;
|
|
491
491
|
return /* @__PURE__ */ n(N.Portal, { children: /* @__PURE__ */ n(
|
|
492
492
|
N.SubContent,
|
|
493
493
|
{
|
|
494
|
-
ref:
|
|
495
|
-
...
|
|
494
|
+
ref: t,
|
|
495
|
+
...o,
|
|
496
496
|
className: p(e, "fp-MenuContent"),
|
|
497
497
|
sideOffset: 12
|
|
498
498
|
}
|
|
499
499
|
) });
|
|
500
|
-
}),
|
|
501
|
-
const { children: e, className:
|
|
502
|
-
return /* @__PURE__ */
|
|
503
|
-
/* @__PURE__ */ n(N.ItemIndicator, { className: "fp-MenuItemIndicator", children: /* @__PURE__ */ n(
|
|
500
|
+
}), wr = i.forwardRef((r, t) => {
|
|
501
|
+
const { children: e, className: o, ...a } = r;
|
|
502
|
+
return /* @__PURE__ */ h(N.CheckboxItem, { ref: t, ...a, className: p(o, "fp-MenuItem fp-MenuCheckboxItem"), children: [
|
|
503
|
+
/* @__PURE__ */ n(N.ItemIndicator, { className: "fp-MenuItemIndicator", children: /* @__PURE__ */ n(ge, { size: "4" }) }),
|
|
504
504
|
e
|
|
505
505
|
] });
|
|
506
|
-
}),
|
|
507
|
-
const { children: e, className:
|
|
508
|
-
return /* @__PURE__ */
|
|
509
|
-
/* @__PURE__ */ n(N.ItemIndicator, { className: "fp-MenuItemIndicator", children: /* @__PURE__ */ n(
|
|
506
|
+
}), Rr = i.forwardRef((r, t) => {
|
|
507
|
+
const { children: e, className: o, ...a } = r;
|
|
508
|
+
return /* @__PURE__ */ h(N.RadioItem, { ref: t, ...a, className: p(o, "fp-MenuItem fp-MenuRadioItem"), children: [
|
|
509
|
+
/* @__PURE__ */ n(N.ItemIndicator, { className: "fp-MenuItemIndicator", children: /* @__PURE__ */ n(ar, { size: "4" }) }),
|
|
510
510
|
e
|
|
511
511
|
] });
|
|
512
512
|
});
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
const
|
|
513
|
+
mr.displayName = "DropdownMenu.Content";
|
|
514
|
+
fr.displayName = "DropdownMenu.Item";
|
|
515
|
+
br.displayName = "DropdownMenu.Separator";
|
|
516
|
+
Cr.displayName = "DropdownMenu.Group";
|
|
517
|
+
hr.displayName = "DropdownMenu.Label";
|
|
518
|
+
Nr.displayName = "DropdownMenu.SubTrigger";
|
|
519
|
+
yr.displayName = "DropdownMenu.SubContent";
|
|
520
|
+
wr.displayName = "DropdownMenu.CheckboxItem";
|
|
521
|
+
Rr.displayName = "DropdownMenu.RadioItem";
|
|
522
|
+
const ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
523
523
|
__proto__: null,
|
|
524
|
-
CheckboxItem:
|
|
525
|
-
Content:
|
|
526
|
-
Group:
|
|
527
|
-
Item:
|
|
528
|
-
Label:
|
|
529
|
-
RadioGroup:
|
|
530
|
-
RadioItem:
|
|
531
|
-
Root:
|
|
532
|
-
Separator:
|
|
533
|
-
Sub: $
|
|
534
|
-
SubContent:
|
|
535
|
-
SubTrigger:
|
|
536
|
-
Trigger:
|
|
537
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
538
|
-
const { children: e, className:
|
|
539
|
-
return /* @__PURE__ */ n(
|
|
540
|
-
}),
|
|
541
|
-
const { className: e, ...
|
|
542
|
-
return /* @__PURE__ */ n(
|
|
543
|
-
}),
|
|
544
|
-
const { className: e, ...
|
|
545
|
-
return /* @__PURE__ */ n(
|
|
546
|
-
}),
|
|
547
|
-
const { className: e, ...
|
|
548
|
-
return /* @__PURE__ */ n(
|
|
549
|
-
}),
|
|
550
|
-
const { className: e, ...
|
|
551
|
-
return /* @__PURE__ */ n(
|
|
552
|
-
}),
|
|
553
|
-
const { children: e, className:
|
|
554
|
-
return /* @__PURE__ */
|
|
524
|
+
CheckboxItem: wr,
|
|
525
|
+
Content: mr,
|
|
526
|
+
Group: Cr,
|
|
527
|
+
Item: fr,
|
|
528
|
+
Label: hr,
|
|
529
|
+
RadioGroup: kt,
|
|
530
|
+
RadioItem: Rr,
|
|
531
|
+
Root: Mt,
|
|
532
|
+
Separator: br,
|
|
533
|
+
Sub: $t,
|
|
534
|
+
SubContent: yr,
|
|
535
|
+
SubTrigger: Nr,
|
|
536
|
+
Trigger: It
|
|
537
|
+
}, Symbol.toStringTag, { value: "Module" })), Dt = y.Root, _t = y.Trigger, zt = y.Sub, At = y.RadioGroup, vr = i.forwardRef((r, t) => {
|
|
538
|
+
const { children: e, className: o, ...a } = r;
|
|
539
|
+
return /* @__PURE__ */ n(y.Portal, { children: /* @__PURE__ */ n(y.Content, { ref: t, ...a, className: p(o, "fp-MenuContent"), children: e }) });
|
|
540
|
+
}), xr = i.forwardRef((r, t) => {
|
|
541
|
+
const { className: e, ...o } = r;
|
|
542
|
+
return /* @__PURE__ */ n(y.Item, { ref: t, ...o, className: p(e, "fp-MenuItem") });
|
|
543
|
+
}), Pr = i.forwardRef((r, t) => {
|
|
544
|
+
const { className: e, ...o } = r;
|
|
545
|
+
return /* @__PURE__ */ n(y.Separator, { ref: t, className: p(e, "fp-MenuSeparator"), ...o });
|
|
546
|
+
}), Tr = i.forwardRef((r, t) => {
|
|
547
|
+
const { className: e, ...o } = r;
|
|
548
|
+
return /* @__PURE__ */ n(y.Label, { ref: t, className: p(e, "fp-MenuLabel"), ...o });
|
|
549
|
+
}), Sr = i.forwardRef((r, t) => {
|
|
550
|
+
const { className: e, ...o } = r;
|
|
551
|
+
return /* @__PURE__ */ n(y.Group, { ref: t, className: p(e, "fp-MenuGroup"), ...o });
|
|
552
|
+
}), Mr = i.forwardRef((r, t) => {
|
|
553
|
+
const { children: e, className: o, ...a } = r;
|
|
554
|
+
return /* @__PURE__ */ h(y.SubTrigger, { ref: t, ...a, className: p(o, "fp-MenuItem"), children: [
|
|
555
555
|
e,
|
|
556
|
-
/* @__PURE__ */ n(
|
|
556
|
+
/* @__PURE__ */ n(we, { className: "fp-MenuSubtriggerCaret" })
|
|
557
557
|
] });
|
|
558
|
-
}),
|
|
559
|
-
const { className: e, ...
|
|
560
|
-
return /* @__PURE__ */ n(
|
|
561
|
-
|
|
558
|
+
}), Ir = i.forwardRef((r, t) => {
|
|
559
|
+
const { className: e, ...o } = r;
|
|
560
|
+
return /* @__PURE__ */ n(y.Portal, { children: /* @__PURE__ */ n(
|
|
561
|
+
y.SubContent,
|
|
562
562
|
{
|
|
563
|
-
ref:
|
|
564
|
-
...
|
|
563
|
+
ref: t,
|
|
564
|
+
...o,
|
|
565
565
|
className: p(e, "fp-MenuContent"),
|
|
566
566
|
sideOffset: 12
|
|
567
567
|
}
|
|
568
568
|
) });
|
|
569
|
-
}), $
|
|
570
|
-
const { children: e, className:
|
|
571
|
-
return /* @__PURE__ */
|
|
572
|
-
/* @__PURE__ */ n(
|
|
569
|
+
}), $r = i.forwardRef((r, t) => {
|
|
570
|
+
const { children: e, className: o, ...a } = r;
|
|
571
|
+
return /* @__PURE__ */ h(y.CheckboxItem, { ref: t, ...a, className: p(o, "fp-MenuItem fp-MenuCheckboxItem"), children: [
|
|
572
|
+
/* @__PURE__ */ n(y.ItemIndicator, { className: "fp-MenuItemIndicator", children: /* @__PURE__ */ n(ge, { size: "4" }) }),
|
|
573
573
|
e
|
|
574
574
|
] });
|
|
575
|
-
}),
|
|
576
|
-
const { children: e, className:
|
|
577
|
-
return /* @__PURE__ */
|
|
578
|
-
/* @__PURE__ */ n(
|
|
575
|
+
}), kr = i.forwardRef((r, t) => {
|
|
576
|
+
const { children: e, className: o, ...a } = r;
|
|
577
|
+
return /* @__PURE__ */ h(y.RadioItem, { ref: t, ...a, className: p(o, "fp-MenuItem fp-MenuRadioItem"), children: [
|
|
578
|
+
/* @__PURE__ */ n(y.ItemIndicator, { className: "fp-MenuItemIndicator", children: /* @__PURE__ */ n(ar, { size: "4" }) }),
|
|
579
579
|
e
|
|
580
580
|
] });
|
|
581
581
|
});
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
$
|
|
590
|
-
|
|
591
|
-
const
|
|
582
|
+
vr.displayName = "ContextMenu.Content";
|
|
583
|
+
xr.displayName = "ContextMenu.Item";
|
|
584
|
+
Pr.displayName = "ContextMenu.Separator";
|
|
585
|
+
Tr.displayName = "ContextMenu.Label";
|
|
586
|
+
Sr.displayName = "ContextMenu.Group";
|
|
587
|
+
Mr.displayName = "ContextMenu.SubTrigger";
|
|
588
|
+
Ir.displayName = "ContextMenu.SubContent";
|
|
589
|
+
$r.displayName = "ContextMenu.CheckboxItem";
|
|
590
|
+
kr.displayName = "ContextMenu.RadioItem";
|
|
591
|
+
const oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
592
592
|
__proto__: null,
|
|
593
|
-
CheckboxItem: $
|
|
594
|
-
Content:
|
|
595
|
-
Group:
|
|
596
|
-
Item:
|
|
597
|
-
Label:
|
|
598
|
-
RadioGroup:
|
|
599
|
-
RadioItem:
|
|
600
|
-
Root:
|
|
601
|
-
Separator:
|
|
602
|
-
Sub:
|
|
603
|
-
SubContent:
|
|
604
|
-
SubTrigger:
|
|
605
|
-
Trigger:
|
|
606
|
-
}, Symbol.toStringTag, { value: "Module" })), { TooltipProvider:
|
|
607
|
-
const { className: e, ...
|
|
608
|
-
return /* @__PURE__ */ n(
|
|
609
|
-
}),
|
|
610
|
-
const { className:
|
|
611
|
-
return /* @__PURE__ */ n(
|
|
612
|
-
},
|
|
593
|
+
CheckboxItem: $r,
|
|
594
|
+
Content: vr,
|
|
595
|
+
Group: Sr,
|
|
596
|
+
Item: xr,
|
|
597
|
+
Label: Tr,
|
|
598
|
+
RadioGroup: At,
|
|
599
|
+
RadioItem: kr,
|
|
600
|
+
Root: Dt,
|
|
601
|
+
Separator: Pr,
|
|
602
|
+
Sub: zt,
|
|
603
|
+
SubContent: Ir,
|
|
604
|
+
SubTrigger: Mr,
|
|
605
|
+
Trigger: _t
|
|
606
|
+
}, Symbol.toStringTag, { value: "Module" })), { TooltipProvider: aa } = H, Et = i.forwardRef((r, t) => {
|
|
607
|
+
const { className: e, ...o } = r;
|
|
608
|
+
return /* @__PURE__ */ n(H.Content, { ref: t, className: p(e, "fp-tooltip"), ...o });
|
|
609
|
+
}), Lt = (r) => {
|
|
610
|
+
const { className: t, ...e } = r;
|
|
611
|
+
return /* @__PURE__ */ n(H.Arrow, { className: p(t, "fp-tooltip-arrow"), ...e });
|
|
612
|
+
}, Dr = i.forwardRef((r, t) => {
|
|
613
613
|
const {
|
|
614
614
|
defaultOpen: e,
|
|
615
|
-
open:
|
|
615
|
+
open: o,
|
|
616
616
|
onOpenChange: a,
|
|
617
617
|
delayDuration: s,
|
|
618
618
|
disableHoverableContent: l,
|
|
619
619
|
container: c,
|
|
620
620
|
forceMount: d,
|
|
621
621
|
children: u,
|
|
622
|
-
content:
|
|
623
|
-
...
|
|
624
|
-
} =
|
|
625
|
-
return /* @__PURE__ */
|
|
626
|
-
/* @__PURE__ */ n(
|
|
627
|
-
/* @__PURE__ */ n(
|
|
628
|
-
|
|
629
|
-
/* @__PURE__ */ n(
|
|
622
|
+
content: g,
|
|
623
|
+
...f
|
|
624
|
+
} = r, v = { open: o, defaultOpen: e, onOpenChange: a, delayDuration: s, disableHoverableContent: l };
|
|
625
|
+
return /* @__PURE__ */ h(H.Root, { ...v, children: [
|
|
626
|
+
/* @__PURE__ */ n(H.Trigger, { asChild: !0, children: u }),
|
|
627
|
+
/* @__PURE__ */ n(H.Portal, { forceMount: d, container: c, children: /* @__PURE__ */ h(Et, { ref: t, arrowPadding: 10, ...f, children: [
|
|
628
|
+
g,
|
|
629
|
+
/* @__PURE__ */ n(Lt, {})
|
|
630
630
|
] }) })
|
|
631
631
|
] });
|
|
632
632
|
});
|
|
633
|
-
|
|
634
|
-
const
|
|
633
|
+
Dr.displayName = "Tooltip";
|
|
634
|
+
const Vt = V("fp-IconButton", {
|
|
635
635
|
variants: {
|
|
636
636
|
size: {
|
|
637
637
|
small: "fp-size-small",
|
|
@@ -646,37 +646,37 @@ const Vo = V("fp-IconButton", {
|
|
|
646
646
|
size: "small",
|
|
647
647
|
activeAppearance: "subtle"
|
|
648
648
|
}
|
|
649
|
-
}), Te = i.forwardRef((
|
|
649
|
+
}), Te = i.forwardRef((r, t) => {
|
|
650
650
|
const {
|
|
651
651
|
className: e,
|
|
652
|
-
size:
|
|
652
|
+
size: o,
|
|
653
653
|
activeAppearance: a,
|
|
654
654
|
"aria-label": s,
|
|
655
655
|
tooltipContent: l,
|
|
656
656
|
disableTooltip: c,
|
|
657
657
|
...d
|
|
658
|
-
} =
|
|
658
|
+
} = r, u = /* @__PURE__ */ n(
|
|
659
659
|
"button",
|
|
660
660
|
{
|
|
661
|
-
ref:
|
|
662
|
-
className:
|
|
661
|
+
ref: t,
|
|
662
|
+
className: Vt({ className: e, size: o, activeAppearance: a }),
|
|
663
663
|
"aria-label": s,
|
|
664
664
|
...d
|
|
665
665
|
}
|
|
666
666
|
);
|
|
667
|
-
return c ? u : /* @__PURE__ */ n(
|
|
667
|
+
return c ? u : /* @__PURE__ */ n(Dr, { content: l ?? s, children: u });
|
|
668
668
|
});
|
|
669
669
|
Te.displayName = "IconButton";
|
|
670
|
-
const Se = i.forwardRef((
|
|
671
|
-
const { children: e, className:
|
|
672
|
-
return /* @__PURE__ */ n("header", { ref:
|
|
673
|
-
}), Me = i.forwardRef((
|
|
674
|
-
const { className: e, size:
|
|
675
|
-
return /* @__PURE__ */ n("div", { ref:
|
|
676
|
-
}), Ie = i.forwardRef((
|
|
677
|
-
const { className: e, ...
|
|
678
|
-
return /* @__PURE__ */ n("div", { ref:
|
|
679
|
-
}),
|
|
670
|
+
const Se = i.forwardRef((r, t) => {
|
|
671
|
+
const { children: e, className: o, ...a } = r;
|
|
672
|
+
return /* @__PURE__ */ n("header", { ref: t, className: p(o, "fp-DialogBaseHeader"), ...a, children: e });
|
|
673
|
+
}), Me = i.forwardRef((r, t) => {
|
|
674
|
+
const { className: e, size: o, ...a } = r;
|
|
675
|
+
return /* @__PURE__ */ n("div", { ref: t, className: Ot({ className: e, size: o }), ...a });
|
|
676
|
+
}), Ie = i.forwardRef((r, t) => {
|
|
677
|
+
const { className: e, ...o } = r;
|
|
678
|
+
return /* @__PURE__ */ n("div", { ref: t, className: p(e, "fp-DialogBaseControls"), ...o });
|
|
679
|
+
}), Ot = V("fp-DialogBaseSection", {
|
|
680
680
|
variants: {
|
|
681
681
|
size: {
|
|
682
682
|
base: "fp-DialogBaseSection-base",
|
|
@@ -690,41 +690,41 @@ const Se = i.forwardRef((t, o) => {
|
|
|
690
690
|
Se.displayName = "Dialog.Header";
|
|
691
691
|
Me.displayName = "Dialog.Section";
|
|
692
692
|
Ie.displayName = "Dialog.Controls";
|
|
693
|
-
const
|
|
694
|
-
const { className: e, style:
|
|
693
|
+
const Bt = U.Root, Ft = U.Anchor, jt = U.Portal, _r = i.forwardRef((r, t) => /* @__PURE__ */ n(U.Trigger, { ref: t, ...r, asChild: !0 })), zr = i.forwardRef((r, t) => {
|
|
694
|
+
const { className: e, style: o, width: a, height: s, maxWidth: l, maxHeight: c, ...d } = r;
|
|
695
695
|
return /* @__PURE__ */ n(
|
|
696
696
|
U.Content,
|
|
697
697
|
{
|
|
698
|
-
ref:
|
|
698
|
+
ref: t,
|
|
699
699
|
className: p(e, "fp-DialogBaseContent"),
|
|
700
|
-
style: { ...
|
|
700
|
+
style: { ...o, width: a, height: s, maxWidth: l, maxHeight: c },
|
|
701
701
|
...d
|
|
702
702
|
}
|
|
703
703
|
);
|
|
704
|
-
}),
|
|
705
|
-
const { className: e, ...
|
|
706
|
-
return /* @__PURE__ */ n(F, { ref:
|
|
707
|
-
}),
|
|
708
|
-
const { children: e, ...
|
|
709
|
-
return /* @__PURE__ */ n(U.Close, { ref:
|
|
704
|
+
}), Ar = i.forwardRef((r, t) => {
|
|
705
|
+
const { className: e, ...o } = r;
|
|
706
|
+
return /* @__PURE__ */ n(F, { ref: t, className: p(e, "fp-DialogBaseTitle"), weight: "strong", ...o });
|
|
707
|
+
}), Er = i.forwardRef((r, t) => {
|
|
708
|
+
const { children: e, ...o } = r;
|
|
709
|
+
return /* @__PURE__ */ n(U.Close, { ref: t, asChild: !0, ...o, children: e || /* @__PURE__ */ n(Te, { "aria-label": "Close", disableTooltip: !0, children: /* @__PURE__ */ n(tr, {}) }) });
|
|
710
710
|
});
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
const
|
|
711
|
+
_r.displayName = "Popover.Trigger";
|
|
712
|
+
zr.displayName = "Popover.Content";
|
|
713
|
+
Ar.displayName = "Popover.Title";
|
|
714
|
+
Er.displayName = "Popover.Close";
|
|
715
|
+
const na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
716
716
|
__proto__: null,
|
|
717
|
-
Anchor:
|
|
718
|
-
Close:
|
|
719
|
-
Content:
|
|
717
|
+
Anchor: Ft,
|
|
718
|
+
Close: Er,
|
|
719
|
+
Content: zr,
|
|
720
720
|
Controls: Ie,
|
|
721
721
|
Header: Se,
|
|
722
|
-
Portal:
|
|
723
|
-
Root:
|
|
722
|
+
Portal: jt,
|
|
723
|
+
Root: Bt,
|
|
724
724
|
Section: Me,
|
|
725
|
-
Title:
|
|
726
|
-
Trigger:
|
|
727
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
725
|
+
Title: Ar,
|
|
726
|
+
Trigger: _r
|
|
727
|
+
}, Symbol.toStringTag, { value: "Module" })), Gt = B.Root, Ht = B.Portal, Lr = i.forwardRef((r, t) => /* @__PURE__ */ n(B.Trigger, { ref: t, ...r, asChild: !0 })), Ut = V(["fp-DialogBaseContent", "fp-DialogContent"], {
|
|
728
728
|
variants: {
|
|
729
729
|
size: {
|
|
730
730
|
1: "fp-size-1",
|
|
@@ -741,47 +741,47 @@ const ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
741
741
|
size: "2",
|
|
742
742
|
placement: "top"
|
|
743
743
|
}
|
|
744
|
-
}),
|
|
745
|
-
const { children: e, className:
|
|
744
|
+
}), Vr = i.forwardRef((r, t) => {
|
|
745
|
+
const { children: e, className: o, size: a, placement: s, style: l, width: c, height: d, maxWidth: u, maxHeight: g, ...f } = r;
|
|
746
746
|
return /* @__PURE__ */ n(
|
|
747
747
|
B.Content,
|
|
748
748
|
{
|
|
749
|
-
ref:
|
|
750
|
-
className:
|
|
749
|
+
ref: t,
|
|
750
|
+
className: Ut({ className: o, size: a, placement: s }),
|
|
751
751
|
"aria-describedby": void 0,
|
|
752
|
-
style: { ...l, width: c, height: d, maxWidth: u, maxHeight:
|
|
753
|
-
...
|
|
752
|
+
style: { ...l, width: c, height: d, maxWidth: u, maxHeight: g },
|
|
753
|
+
...f,
|
|
754
754
|
children: e
|
|
755
755
|
}
|
|
756
756
|
);
|
|
757
|
-
}),
|
|
758
|
-
const { className: e, ...
|
|
759
|
-
return /* @__PURE__ */ n(B.Overlay, { ref:
|
|
760
|
-
}),
|
|
761
|
-
const { children: e, className:
|
|
762
|
-
return /* @__PURE__ */ n(B.Title, { ref:
|
|
763
|
-
}),
|
|
764
|
-
const { children: e, ...
|
|
765
|
-
return /* @__PURE__ */ n(B.Close, { ref:
|
|
757
|
+
}), Or = i.forwardRef((r, t) => {
|
|
758
|
+
const { className: e, ...o } = r;
|
|
759
|
+
return /* @__PURE__ */ n(B.Overlay, { ref: t, className: p(e, "fp-DialogBaseOverlay"), ...o });
|
|
760
|
+
}), Br = i.forwardRef((r, t) => {
|
|
761
|
+
const { children: e, className: o, ...a } = r;
|
|
762
|
+
return /* @__PURE__ */ n(B.Title, { ref: t, className: p(o, "fp-DialogBaseTitle"), ...a, asChild: !0, children: /* @__PURE__ */ n(F, { weight: "strong", children: e }) });
|
|
763
|
+
}), Fr = i.forwardRef((r, t) => {
|
|
764
|
+
const { children: e, ...o } = r;
|
|
765
|
+
return /* @__PURE__ */ n(B.Close, { ref: t, asChild: !0, ...o, children: e || /* @__PURE__ */ n(Te, { "aria-label": "Close", disableTooltip: !0, children: /* @__PURE__ */ n(tr, {}) }) });
|
|
766
766
|
});
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
const
|
|
767
|
+
Lr.displayName = "Dialog.Trigger";
|
|
768
|
+
Vr.displayName = "Dialog.Content";
|
|
769
|
+
Or.displayName = "Dialog.Overlay";
|
|
770
|
+
Br.displayName = "Dialog.Title";
|
|
771
|
+
Fr.displayName = "Dialog.Close";
|
|
772
|
+
const sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
773
773
|
__proto__: null,
|
|
774
|
-
Close:
|
|
775
|
-
Content:
|
|
774
|
+
Close: Fr,
|
|
775
|
+
Content: Vr,
|
|
776
776
|
Controls: Ie,
|
|
777
777
|
Header: Se,
|
|
778
|
-
Overlay:
|
|
779
|
-
Portal:
|
|
780
|
-
Root:
|
|
778
|
+
Overlay: Or,
|
|
779
|
+
Portal: Ht,
|
|
780
|
+
Root: Gt,
|
|
781
781
|
Section: Me,
|
|
782
|
-
Title:
|
|
783
|
-
Trigger:
|
|
784
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
782
|
+
Title: Br,
|
|
783
|
+
Trigger: Lr
|
|
784
|
+
}, Symbol.toStringTag, { value: "Module" })), qt = $.Root, Wt = $.Portal, jr = i.forwardRef((r, t) => /* @__PURE__ */ n($.Trigger, { ref: t, ...r, asChild: !0 })), Xt = V(["fp-DialogBaseContent", "fp-AlertDialogContent"], {
|
|
785
785
|
variants: {
|
|
786
786
|
size: {
|
|
787
787
|
1: "fp-size-1",
|
|
@@ -797,141 +797,141 @@ const aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
797
797
|
size: "2",
|
|
798
798
|
placement: "top"
|
|
799
799
|
}
|
|
800
|
-
}),
|
|
801
|
-
const { className: e, size:
|
|
800
|
+
}), Gr = i.forwardRef((r, t) => {
|
|
801
|
+
const { className: e, size: o, placement: a, style: s, width: l, height: c, maxWidth: d, maxHeight: u, ...g } = r;
|
|
802
802
|
return /* @__PURE__ */ n(
|
|
803
803
|
$.Content,
|
|
804
804
|
{
|
|
805
|
-
ref:
|
|
806
|
-
className:
|
|
805
|
+
ref: t,
|
|
806
|
+
className: Xt({ className: e, size: o, placement: a }),
|
|
807
807
|
style: { ...s, width: l, height: c, maxWidth: d, maxHeight: u },
|
|
808
|
-
...
|
|
808
|
+
...g
|
|
809
809
|
}
|
|
810
810
|
);
|
|
811
|
-
}),
|
|
812
|
-
const { className: e, ...
|
|
813
|
-
return /* @__PURE__ */ n($.Overlay, { ref:
|
|
814
|
-
}),
|
|
815
|
-
const { children: e, className:
|
|
816
|
-
return /* @__PURE__ */ n($.Title, { ref:
|
|
817
|
-
}),
|
|
818
|
-
const { children: e, className:
|
|
811
|
+
}), Hr = i.forwardRef((r, t) => {
|
|
812
|
+
const { className: e, ...o } = r;
|
|
813
|
+
return /* @__PURE__ */ n($.Overlay, { ref: t, className: p(e, "fp-DialogBaseOverlay"), ...o });
|
|
814
|
+
}), Ur = i.forwardRef((r, t) => {
|
|
815
|
+
const { children: e, className: o, ...a } = r;
|
|
816
|
+
return /* @__PURE__ */ n($.Title, { ref: t, className: p(o, "fp-AlertDialogTitle"), ...a, asChild: !0, children: /* @__PURE__ */ n(F, { weight: "strong", children: e }) });
|
|
817
|
+
}), qr = i.forwardRef((r, t) => {
|
|
818
|
+
const { children: e, className: o, ...a } = r;
|
|
819
819
|
return /* @__PURE__ */ n(
|
|
820
820
|
$.Description,
|
|
821
821
|
{
|
|
822
|
-
ref:
|
|
823
|
-
className: p(
|
|
822
|
+
ref: t,
|
|
823
|
+
className: p(o, "fp-AlertDialogDescription"),
|
|
824
824
|
...a,
|
|
825
825
|
asChild: !0,
|
|
826
826
|
children: /* @__PURE__ */ n(F, { children: e })
|
|
827
827
|
}
|
|
828
828
|
);
|
|
829
|
-
}),
|
|
830
|
-
const { className: e, ...
|
|
831
|
-
return /* @__PURE__ */ n("div", { ref:
|
|
832
|
-
}),
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
const
|
|
829
|
+
}), Wr = i.forwardRef((r, t) => {
|
|
830
|
+
const { className: e, ...o } = r;
|
|
831
|
+
return /* @__PURE__ */ n("div", { ref: t, className: p(e, "fp-AlertDialogActions"), ...o });
|
|
832
|
+
}), Xr = i.forwardRef((r, t) => /* @__PURE__ */ n($.Cancel, { ref: t, asChild: !0, ...r })), Kr = i.forwardRef((r, t) => /* @__PURE__ */ n($.Action, { ref: t, asChild: !0, ...r }));
|
|
833
|
+
jr.displayName = "AlertDialog.Trigger";
|
|
834
|
+
Gr.displayName = "AlertDialog.Content";
|
|
835
|
+
Hr.displayName = "AlertDialog.Overlay";
|
|
836
|
+
Ur.displayName = "AlertDialog.Title";
|
|
837
|
+
qr.displayName = "AlertDialog.Description";
|
|
838
|
+
Wr.displayName = "AlertDialog.Actions";
|
|
839
|
+
Xr.displayName = "AlertDialog.Cancel";
|
|
840
|
+
Kr.displayName = "AlertDialog.Action";
|
|
841
|
+
const la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
842
842
|
__proto__: null,
|
|
843
|
-
Action:
|
|
844
|
-
Actions:
|
|
845
|
-
Cancel:
|
|
846
|
-
Content:
|
|
847
|
-
Description:
|
|
848
|
-
Overlay:
|
|
849
|
-
Portal:
|
|
850
|
-
Root:
|
|
851
|
-
Title:
|
|
852
|
-
Trigger:
|
|
853
|
-
}, Symbol.toStringTag, { value: "Module" })), [
|
|
843
|
+
Action: Kr,
|
|
844
|
+
Actions: Wr,
|
|
845
|
+
Cancel: Xr,
|
|
846
|
+
Content: Gr,
|
|
847
|
+
Description: qr,
|
|
848
|
+
Overlay: Hr,
|
|
849
|
+
Portal: Wt,
|
|
850
|
+
Root: qt,
|
|
851
|
+
Title: Ur,
|
|
852
|
+
Trigger: jr
|
|
853
|
+
}, Symbol.toStringTag, { value: "Module" })), [Yr, $e] = ue(
|
|
854
854
|
"ValueFieldProvider",
|
|
855
855
|
null
|
|
856
|
-
),
|
|
857
|
-
const { className: e, disabled:
|
|
858
|
-
return /* @__PURE__ */ n(
|
|
856
|
+
), R = i.forwardRef((r, t) => {
|
|
857
|
+
const { className: e, disabled: o, ...a } = r, s = $e("Root");
|
|
858
|
+
return /* @__PURE__ */ n(Yr, { disabled: o, children: /* @__PURE__ */ n(
|
|
859
859
|
"label",
|
|
860
860
|
{
|
|
861
|
-
ref:
|
|
861
|
+
ref: t,
|
|
862
862
|
className: p(e, "fp-ValueFieldRoot"),
|
|
863
|
-
"data-disabled":
|
|
863
|
+
"data-disabled": o || s != null && s.disabled ? "" : void 0,
|
|
864
864
|
...a
|
|
865
865
|
}
|
|
866
866
|
) });
|
|
867
|
-
}),
|
|
868
|
-
const { className: e, disabled:
|
|
869
|
-
return /* @__PURE__ */ n(
|
|
867
|
+
}), q = i.forwardRef((r, t) => {
|
|
868
|
+
const { className: e, disabled: o, ...a } = r;
|
|
869
|
+
return /* @__PURE__ */ n(Yr, { disabled: o, children: /* @__PURE__ */ n(
|
|
870
870
|
"div",
|
|
871
871
|
{
|
|
872
|
-
ref:
|
|
872
|
+
ref: t,
|
|
873
873
|
className: p(e, "fp-ValueFieldMulti"),
|
|
874
|
-
"data-disabled":
|
|
874
|
+
"data-disabled": o ? "" : void 0,
|
|
875
875
|
...a
|
|
876
876
|
}
|
|
877
877
|
) });
|
|
878
|
-
}),
|
|
879
|
-
const { className: e, ...
|
|
878
|
+
}), W = i.forwardRef((r, t) => {
|
|
879
|
+
const { className: e, ...o } = r, a = $e("Root");
|
|
880
880
|
return /* @__PURE__ */ n(
|
|
881
881
|
"span",
|
|
882
882
|
{
|
|
883
|
-
ref:
|
|
883
|
+
ref: t,
|
|
884
884
|
className: p(e, "fp-ValueFieldLabel"),
|
|
885
885
|
"data-disabled": a != null && a.disabled ? "" : void 0,
|
|
886
|
-
...
|
|
886
|
+
...o
|
|
887
887
|
}
|
|
888
888
|
);
|
|
889
889
|
});
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
function E(
|
|
894
|
-
const [e,
|
|
890
|
+
R.displayName = "ValueField.Root";
|
|
891
|
+
W.displayName = "ValueField.Label";
|
|
892
|
+
q.displayName = "ValueField.Multi";
|
|
893
|
+
function E(r, t) {
|
|
894
|
+
const [e, o] = r, [a, s] = t;
|
|
895
895
|
return function(l) {
|
|
896
|
-
return e ===
|
|
896
|
+
return e === o || a === s ? a : (l - e) / (o - e) * (s - a) + a;
|
|
897
897
|
};
|
|
898
898
|
}
|
|
899
|
-
function
|
|
900
|
-
const [
|
|
901
|
-
|
|
902
|
-
}, []),
|
|
903
|
-
|
|
904
|
-
}, []), a =
|
|
899
|
+
function Kt() {
|
|
900
|
+
const [r, t] = re(!0), e = Y(() => {
|
|
901
|
+
t(!0);
|
|
902
|
+
}, []), o = Y(() => {
|
|
903
|
+
t(!1);
|
|
904
|
+
}, []), a = Y(
|
|
905
905
|
(s) => {
|
|
906
|
-
|
|
906
|
+
r && s.currentTarget.selectionStart === s.currentTarget.selectionEnd && (s.currentTarget.select(), t(!1));
|
|
907
907
|
},
|
|
908
|
-
[
|
|
908
|
+
[r]
|
|
909
909
|
);
|
|
910
910
|
return {
|
|
911
|
-
onMouseLeave:
|
|
911
|
+
onMouseLeave: o,
|
|
912
912
|
onMouseUp: a,
|
|
913
913
|
onFocus: e
|
|
914
914
|
};
|
|
915
915
|
}
|
|
916
|
-
const
|
|
917
|
-
const { type: e = "text", className:
|
|
918
|
-
return /* @__PURE__ */ n("input", { ref: c, type: e, className: p(
|
|
916
|
+
const Zr = i.forwardRef((r, t) => {
|
|
917
|
+
const { type: e = "text", className: o, selectOnClick: a = !1, ...s } = r, l = G(null), c = pe(l, t), { onMouseLeave: d, onMouseUp: u, onFocus: g } = Kt(), f = a ? Ge({ onMouseLeave: d, onMouseUp: u, onFocus: g }, s) : s;
|
|
918
|
+
return /* @__PURE__ */ n("input", { ref: c, type: e, className: p(o, "fp-Input"), ...f });
|
|
919
919
|
});
|
|
920
|
-
|
|
921
|
-
const
|
|
920
|
+
Zr.displayName = "Input";
|
|
921
|
+
const Yt = 1, Zt = 10, ke = (r) => {
|
|
922
922
|
const {
|
|
923
|
-
className:
|
|
923
|
+
className: t,
|
|
924
924
|
inputRef: e,
|
|
925
|
-
value:
|
|
925
|
+
value: o,
|
|
926
926
|
onChange: a,
|
|
927
|
-
smallNudge: s =
|
|
928
|
-
bigNudge: l =
|
|
927
|
+
smallNudge: s = Yt,
|
|
928
|
+
bigNudge: l = Zt,
|
|
929
929
|
formatter: c,
|
|
930
930
|
disabled: d,
|
|
931
931
|
...u
|
|
932
|
-
} =
|
|
933
|
-
const P = c.parse(m,
|
|
934
|
-
if (m.length === 0 || !P.valid || P.value ===
|
|
932
|
+
} = r, g = G(null), f = pe(e, g), [v, T] = re(null), b = v ?? c.format(o), C = $e("ValueField"), S = (m) => {
|
|
933
|
+
const P = c.parse(m, o);
|
|
934
|
+
if (m.length === 0 || !P.valid || P.value === o)
|
|
935
935
|
return M();
|
|
936
936
|
T(null), a(P.value);
|
|
937
937
|
}, M = () => {
|
|
@@ -946,11 +946,11 @@ const Yo = 1, Zo = 10, De = (t) => {
|
|
|
946
946
|
if (!c.incrementBy)
|
|
947
947
|
return;
|
|
948
948
|
m.preventDefault();
|
|
949
|
-
const
|
|
949
|
+
const K = c.parse(P.value, o), oe = K.valid ? K.value : o, ae = m.shiftKey ? l : s, D = m.key === "ArrowUp" ? ae : -ae, _ = c.getIncrementTargets ? c.getIncrementTargets(P) : null, me = c.incrementBy(oe, D, _);
|
|
950
950
|
S(c.format(me)), requestAnimationFrame(() => {
|
|
951
951
|
if (_ && c.getIncrementSelection) {
|
|
952
|
-
const [
|
|
953
|
-
P.setSelectionRange(
|
|
952
|
+
const [lt, it] = c.getIncrementSelection(_);
|
|
953
|
+
P.setSelectionRange(lt, it);
|
|
954
954
|
} else
|
|
955
955
|
P.select();
|
|
956
956
|
});
|
|
@@ -959,106 +959,261 @@ const Yo = 1, Zo = 10, De = (t) => {
|
|
|
959
959
|
S(m.currentTarget.value);
|
|
960
960
|
};
|
|
961
961
|
return /* @__PURE__ */ n(
|
|
962
|
-
|
|
962
|
+
Zr,
|
|
963
963
|
{
|
|
964
|
-
ref:
|
|
964
|
+
ref: f,
|
|
965
965
|
dir: "auto",
|
|
966
966
|
autoComplete: "off",
|
|
967
967
|
spellCheck: "false",
|
|
968
968
|
selectOnClick: !0,
|
|
969
|
-
className: p(
|
|
970
|
-
value:
|
|
969
|
+
className: p(t, "fp-ValueFieldBase"),
|
|
970
|
+
value: b,
|
|
971
971
|
onChange: te,
|
|
972
972
|
disabled: d || (C == null ? void 0 : C.disabled),
|
|
973
|
-
...
|
|
973
|
+
...Ge(u, { onBlur: O, onKeyDown: X })
|
|
974
974
|
}
|
|
975
975
|
);
|
|
976
976
|
};
|
|
977
|
-
|
|
978
|
-
const
|
|
979
|
-
const { value: e, onChange:
|
|
980
|
-
() =>
|
|
977
|
+
ke.displayName = "ValueField.Base";
|
|
978
|
+
const Jt = 15, x = i.forwardRef((r, t) => {
|
|
979
|
+
const { value: e, onChange: o, min: a, max: s, targetRange: l, precision: c, suffix: d, allowedUnits: u, ...g } = r, f = Oe(
|
|
980
|
+
() => Qt({ min: a, max: s, precision: c, targetRange: l, suffix: d, allowedUnits: u }),
|
|
981
981
|
[a, s, c, l, d, u]
|
|
982
982
|
);
|
|
983
|
-
return /* @__PURE__ */ n(
|
|
983
|
+
return /* @__PURE__ */ n(ke, { inputRef: t, value: e, onChange: o, formatter: f, ...g });
|
|
984
984
|
});
|
|
985
|
-
function
|
|
986
|
-
const { min:
|
|
985
|
+
function Qt(r = {}) {
|
|
986
|
+
const { min: t, max: e, targetRange: o, precision: a = Jt, suffix: s, allowedUnits: l = [] } = r, { toDisplayValue: c, fromDisplayValue: d } = eo({ min: t, max: e, targetRange: o });
|
|
987
987
|
return {
|
|
988
|
-
parse: (u,
|
|
988
|
+
parse: (u, g) => {
|
|
989
989
|
try {
|
|
990
990
|
return {
|
|
991
991
|
valid: !0,
|
|
992
|
-
value:
|
|
992
|
+
value: Q(
|
|
993
993
|
u,
|
|
994
|
-
(
|
|
995
|
-
expression:
|
|
996
|
-
displayValue: c(
|
|
994
|
+
(f) => to({
|
|
995
|
+
expression: f,
|
|
996
|
+
displayValue: c(g),
|
|
997
997
|
suffix: s,
|
|
998
998
|
allowedUnits: l
|
|
999
999
|
}),
|
|
1000
1000
|
z(a),
|
|
1001
1001
|
d,
|
|
1002
|
-
I({ min:
|
|
1002
|
+
I({ min: t, max: e })
|
|
1003
1003
|
)
|
|
1004
1004
|
};
|
|
1005
1005
|
} catch {
|
|
1006
1006
|
return { valid: !1 };
|
|
1007
1007
|
}
|
|
1008
1008
|
},
|
|
1009
|
-
format: (u) =>
|
|
1009
|
+
format: (u) => Q(
|
|
1010
1010
|
u,
|
|
1011
|
-
I({ min:
|
|
1011
|
+
I({ min: t, max: e }),
|
|
1012
1012
|
c,
|
|
1013
1013
|
z(a),
|
|
1014
|
-
(
|
|
1014
|
+
(g) => ro(g, s)
|
|
1015
1015
|
),
|
|
1016
|
-
incrementBy(u,
|
|
1017
|
-
return u + d(
|
|
1016
|
+
incrementBy(u, g) {
|
|
1017
|
+
return u + d(g);
|
|
1018
1018
|
}
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1022
|
-
const { min:
|
|
1023
|
-
if (!
|
|
1021
|
+
function eo(r) {
|
|
1022
|
+
const { min: t, max: e, targetRange: o } = r;
|
|
1023
|
+
if (!o)
|
|
1024
1024
|
return {
|
|
1025
1025
|
toDisplayValue: (a) => a,
|
|
1026
1026
|
fromDisplayValue: (a) => a
|
|
1027
1027
|
};
|
|
1028
|
-
if (typeof
|
|
1028
|
+
if (typeof t != "number" || typeof e != "number")
|
|
1029
1029
|
throw Error("'targetRange' requires specifying 'min' and 'max'.");
|
|
1030
|
-
if (
|
|
1030
|
+
if (t === e)
|
|
1031
1031
|
throw Error("'min' and 'max' cannot be equal.");
|
|
1032
1032
|
return {
|
|
1033
|
-
toDisplayValue: E([
|
|
1034
|
-
fromDisplayValue: E(
|
|
1033
|
+
toDisplayValue: E([t, e], o),
|
|
1034
|
+
fromDisplayValue: E(o, [t, e])
|
|
1035
1035
|
};
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1038
|
-
return Number.isNaN(
|
|
1037
|
+
function ro(r, t) {
|
|
1038
|
+
return Number.isNaN(r) ? "" : t ? `${r}${t}` : `${r}`;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1041
|
-
const { displayValue:
|
|
1040
|
+
function to(r) {
|
|
1041
|
+
const { displayValue: t, expression: e, suffix: o = "", allowedUnits: a = [] } = r, s = "(\\d*\\.?\\d+)", l = `(?:${[...a, o].join("|")})*`, c = e.replace(new RegExp(`${s}${l}`, "gi"), (u, g) => g).replace(new RegExp(`${l}${s}`, "gi"), (u, g) => g).replace(new RegExp(`${s}%`, "gi"), (u, g) => `(${t}*${g}/100)`).replace(new RegExp(`%${s}`, "gi"), (u, g) => `(${t}*${g}/100)`).replace(new RegExp(`${s}x`, "gi"), (u, g) => `(${t}*${g})`).replace(new RegExp(`x${s}`, "gi"), (u, g) => `(${t}*${g})`).replace(new RegExp("(?<!\\d)x(?!\\d)", "gi"), `${t}`).trim(), d = dt(c);
|
|
1042
1042
|
if (d === null)
|
|
1043
1043
|
throw new Error("Invalid expression.");
|
|
1044
1044
|
return d;
|
|
1045
1045
|
}
|
|
1046
|
-
const
|
|
1047
|
-
|
|
1048
|
-
|
|
1046
|
+
const Jr = {
|
|
1047
|
+
aliceblue: { r: 240, g: 248, b: 255 },
|
|
1048
|
+
antiquewhite: { r: 250, g: 235, b: 215 },
|
|
1049
|
+
aqua: { r: 0, g: 255, b: 255 },
|
|
1050
|
+
aquamarine: { r: 127, g: 255, b: 212 },
|
|
1051
|
+
azure: { r: 240, g: 255, b: 255 },
|
|
1052
|
+
beige: { r: 245, g: 245, b: 220 },
|
|
1053
|
+
bisque: { r: 255, g: 228, b: 196 },
|
|
1054
|
+
black: { r: 0, g: 0, b: 0 },
|
|
1055
|
+
blanchedalmond: { r: 255, g: 235, b: 205 },
|
|
1056
|
+
blue: { r: 0, g: 0, b: 255 },
|
|
1057
|
+
blueviolet: { r: 138, g: 43, b: 226 },
|
|
1058
|
+
brown: { r: 165, g: 42, b: 42 },
|
|
1059
|
+
burlywood: { r: 222, g: 184, b: 135 },
|
|
1060
|
+
cadetblue: { r: 95, g: 158, b: 160 },
|
|
1061
|
+
chartreuse: { r: 127, g: 255, b: 0 },
|
|
1062
|
+
chocolate: { r: 210, g: 105, b: 30 },
|
|
1063
|
+
coral: { r: 255, g: 127, b: 80 },
|
|
1064
|
+
cornflowerblue: { r: 100, g: 149, b: 237 },
|
|
1065
|
+
cornsilk: { r: 255, g: 248, b: 220 },
|
|
1066
|
+
crimson: { r: 220, g: 20, b: 60 },
|
|
1067
|
+
cyan: { r: 0, g: 255, b: 255 },
|
|
1068
|
+
darkblue: { r: 0, g: 0, b: 139 },
|
|
1069
|
+
darkcyan: { r: 0, g: 139, b: 139 },
|
|
1070
|
+
darkgoldenrod: { r: 184, g: 134, b: 11 },
|
|
1071
|
+
darkgray: { r: 169, g: 169, b: 169 },
|
|
1072
|
+
darkgreen: { r: 0, g: 100, b: 0 },
|
|
1073
|
+
darkgrey: { r: 169, g: 169, b: 169 },
|
|
1074
|
+
darkkhaki: { r: 189, g: 183, b: 107 },
|
|
1075
|
+
darkmagenta: { r: 139, g: 0, b: 139 },
|
|
1076
|
+
darkolivegreen: { r: 85, g: 107, b: 47 },
|
|
1077
|
+
darkorange: { r: 255, g: 140, b: 0 },
|
|
1078
|
+
darkorchid: { r: 153, g: 50, b: 204 },
|
|
1079
|
+
darkred: { r: 139, g: 0, b: 0 },
|
|
1080
|
+
darksalmon: { r: 233, g: 150, b: 122 },
|
|
1081
|
+
darkseagreen: { r: 143, g: 188, b: 143 },
|
|
1082
|
+
darkslateblue: { r: 72, g: 61, b: 139 },
|
|
1083
|
+
darkslategray: { r: 47, g: 79, b: 79 },
|
|
1084
|
+
darkslategrey: { r: 47, g: 79, b: 79 },
|
|
1085
|
+
darkturquoise: { r: 0, g: 206, b: 209 },
|
|
1086
|
+
darkviolet: { r: 148, g: 0, b: 211 },
|
|
1087
|
+
deeppink: { r: 255, g: 20, b: 147 },
|
|
1088
|
+
deepskyblue: { r: 0, g: 191, b: 255 },
|
|
1089
|
+
dimgray: { r: 105, g: 105, b: 105 },
|
|
1090
|
+
dimgrey: { r: 105, g: 105, b: 105 },
|
|
1091
|
+
dodgerblue: { r: 30, g: 144, b: 255 },
|
|
1092
|
+
firebrick: { r: 178, g: 34, b: 34 },
|
|
1093
|
+
floralwhite: { r: 255, g: 250, b: 240 },
|
|
1094
|
+
forestgreen: { r: 34, g: 139, b: 34 },
|
|
1095
|
+
fuchsia: { r: 255, g: 0, b: 255 },
|
|
1096
|
+
gainsboro: { r: 220, g: 220, b: 220 },
|
|
1097
|
+
ghostwhite: { r: 248, g: 248, b: 255 },
|
|
1098
|
+
gold: { r: 255, g: 215, b: 0 },
|
|
1099
|
+
goldenrod: { r: 218, g: 165, b: 32 },
|
|
1100
|
+
gray: { r: 128, g: 128, b: 128 },
|
|
1101
|
+
green: { r: 0, g: 128, b: 0 },
|
|
1102
|
+
greenyellow: { r: 173, g: 255, b: 47 },
|
|
1103
|
+
grey: { r: 128, g: 128, b: 128 },
|
|
1104
|
+
honeydew: { r: 240, g: 255, b: 240 },
|
|
1105
|
+
hotpink: { r: 255, g: 105, b: 180 },
|
|
1106
|
+
indianred: { r: 205, g: 92, b: 92 },
|
|
1107
|
+
indigo: { r: 75, g: 0, b: 130 },
|
|
1108
|
+
ivory: { r: 255, g: 255, b: 240 },
|
|
1109
|
+
khaki: { r: 240, g: 230, b: 140 },
|
|
1110
|
+
lavender: { r: 230, g: 230, b: 250 },
|
|
1111
|
+
lavenderblush: { r: 255, g: 240, b: 245 },
|
|
1112
|
+
lawngreen: { r: 124, g: 252, b: 0 },
|
|
1113
|
+
lemonchiffon: { r: 255, g: 250, b: 205 },
|
|
1114
|
+
lightblue: { r: 173, g: 216, b: 230 },
|
|
1115
|
+
lightcoral: { r: 240, g: 128, b: 128 },
|
|
1116
|
+
lightcyan: { r: 224, g: 255, b: 255 },
|
|
1117
|
+
lightgoldenrodyellow: { r: 250, g: 250, b: 210 },
|
|
1118
|
+
lightgray: { r: 211, g: 211, b: 211 },
|
|
1119
|
+
lightgreen: { r: 144, g: 238, b: 144 },
|
|
1120
|
+
lightgrey: { r: 211, g: 211, b: 211 },
|
|
1121
|
+
lightpink: { r: 255, g: 182, b: 193 },
|
|
1122
|
+
lightsalmon: { r: 255, g: 160, b: 122 },
|
|
1123
|
+
lightseagreen: { r: 32, g: 178, b: 170 },
|
|
1124
|
+
lightskyblue: { r: 135, g: 206, b: 250 },
|
|
1125
|
+
lightslategray: { r: 119, g: 136, b: 153 },
|
|
1126
|
+
lightslategrey: { r: 119, g: 136, b: 153 },
|
|
1127
|
+
lightsteelblue: { r: 176, g: 196, b: 222 },
|
|
1128
|
+
lightyellow: { r: 255, g: 255, b: 224 },
|
|
1129
|
+
lime: { r: 0, g: 255, b: 0 },
|
|
1130
|
+
limegreen: { r: 50, g: 205, b: 50 },
|
|
1131
|
+
linen: { r: 250, g: 240, b: 230 },
|
|
1132
|
+
magenta: { r: 255, g: 0, b: 255 },
|
|
1133
|
+
maroon: { r: 128, g: 0, b: 0 },
|
|
1134
|
+
mediumaquamarine: { r: 102, g: 205, b: 170 },
|
|
1135
|
+
mediumblue: { r: 0, g: 0, b: 205 },
|
|
1136
|
+
mediumorchid: { r: 186, g: 85, b: 211 },
|
|
1137
|
+
mediumpurple: { r: 147, g: 112, b: 219 },
|
|
1138
|
+
mediumseagreen: { r: 60, g: 179, b: 113 },
|
|
1139
|
+
mediumslateblue: { r: 123, g: 104, b: 238 },
|
|
1140
|
+
mediumspringgreen: { r: 0, g: 250, b: 154 },
|
|
1141
|
+
mediumturquoise: { r: 72, g: 209, b: 204 },
|
|
1142
|
+
mediumvioletred: { r: 199, g: 21, b: 133 },
|
|
1143
|
+
midnightblue: { r: 25, g: 25, b: 112 },
|
|
1144
|
+
mintcream: { r: 245, g: 255, b: 250 },
|
|
1145
|
+
mistyrose: { r: 255, g: 228, b: 225 },
|
|
1146
|
+
moccasin: { r: 255, g: 228, b: 181 },
|
|
1147
|
+
navajowhite: { r: 255, g: 222, b: 173 },
|
|
1148
|
+
navy: { r: 0, g: 0, b: 128 },
|
|
1149
|
+
oldlace: { r: 253, g: 245, b: 230 },
|
|
1150
|
+
olive: { r: 128, g: 128, b: 0 },
|
|
1151
|
+
olivedrab: { r: 107, g: 142, b: 35 },
|
|
1152
|
+
orange: { r: 255, g: 165, b: 0 },
|
|
1153
|
+
orangered: { r: 255, g: 69, b: 0 },
|
|
1154
|
+
orchid: { r: 218, g: 112, b: 214 },
|
|
1155
|
+
palegoldenrod: { r: 238, g: 232, b: 170 },
|
|
1156
|
+
palegreen: { r: 152, g: 251, b: 152 },
|
|
1157
|
+
paleturquoise: { r: 175, g: 238, b: 238 },
|
|
1158
|
+
palevioletred: { r: 219, g: 112, b: 147 },
|
|
1159
|
+
papayawhip: { r: 255, g: 239, b: 213 },
|
|
1160
|
+
peachpuff: { r: 255, g: 218, b: 185 },
|
|
1161
|
+
peru: { r: 205, g: 133, b: 63 },
|
|
1162
|
+
pink: { r: 255, g: 192, b: 203 },
|
|
1163
|
+
plum: { r: 221, g: 160, b: 221 },
|
|
1164
|
+
powderblue: { r: 176, g: 224, b: 230 },
|
|
1165
|
+
purple: { r: 128, g: 0, b: 128 },
|
|
1166
|
+
red: { r: 255, g: 0, b: 0 },
|
|
1167
|
+
rosybrown: { r: 188, g: 143, b: 143 },
|
|
1168
|
+
royalblue: { r: 65, g: 105, b: 225 },
|
|
1169
|
+
saddlebrown: { r: 139, g: 69, b: 19 },
|
|
1170
|
+
salmon: { r: 250, g: 128, b: 114 },
|
|
1171
|
+
sandybrown: { r: 244, g: 164, b: 96 },
|
|
1172
|
+
seagreen: { r: 46, g: 139, b: 87 },
|
|
1173
|
+
seashell: { r: 255, g: 245, b: 238 },
|
|
1174
|
+
sienna: { r: 160, g: 82, b: 45 },
|
|
1175
|
+
silver: { r: 192, g: 192, b: 192 },
|
|
1176
|
+
skyblue: { r: 135, g: 206, b: 235 },
|
|
1177
|
+
slateblue: { r: 106, g: 90, b: 205 },
|
|
1178
|
+
slategray: { r: 112, g: 128, b: 144 },
|
|
1179
|
+
slategrey: { r: 112, g: 128, b: 144 },
|
|
1180
|
+
snow: { r: 255, g: 250, b: 250 },
|
|
1181
|
+
springgreen: { r: 0, g: 255, b: 127 },
|
|
1182
|
+
steelblue: { r: 70, g: 130, b: 180 },
|
|
1183
|
+
tan: { r: 210, g: 180, b: 140 },
|
|
1184
|
+
teal: { r: 0, g: 128, b: 128 },
|
|
1185
|
+
thistle: { r: 216, g: 191, b: 216 },
|
|
1186
|
+
tomato: { r: 255, g: 99, b: 71 },
|
|
1187
|
+
turquoise: { r: 64, g: 224, b: 208 },
|
|
1188
|
+
violet: { r: 238, g: 130, b: 238 },
|
|
1189
|
+
wheat: { r: 245, g: 222, b: 179 },
|
|
1190
|
+
white: { r: 255, g: 255, b: 255 },
|
|
1191
|
+
whitesmoke: { r: 245, g: 245, b: 245 },
|
|
1192
|
+
yellow: { r: 255, g: 255, b: 0 },
|
|
1193
|
+
yellowgreen: { r: 154, g: 205, b: 50 }
|
|
1194
|
+
}, Qr = i.forwardRef((r, t) => {
|
|
1195
|
+
const { value: e, onChange: o, ignoreAlpha: a = !1, ...s } = r, l = Oe(() => oo({ ignoreAlpha: a }), [a]);
|
|
1196
|
+
return /* @__PURE__ */ n(ke, { inputRef: t, value: e, onChange: o, formatter: l, ...s });
|
|
1049
1197
|
});
|
|
1050
|
-
function
|
|
1051
|
-
const { ignoreAlpha:
|
|
1198
|
+
function oo(r) {
|
|
1199
|
+
const { ignoreAlpha: t } = r;
|
|
1052
1200
|
return {
|
|
1053
|
-
parse(e,
|
|
1201
|
+
parse(e, o) {
|
|
1202
|
+
if (ao(e)) {
|
|
1203
|
+
const { r: a, g: s, b: l } = Jr[e];
|
|
1204
|
+
return {
|
|
1205
|
+
valid: !0,
|
|
1206
|
+
value: { r: a / 255, g: s / 255, b: l / 255, a: o.a }
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1054
1209
|
try {
|
|
1055
1210
|
return {
|
|
1056
|
-
value:
|
|
1211
|
+
value: Q(
|
|
1057
1212
|
e,
|
|
1058
|
-
|
|
1059
|
-
(a) =>
|
|
1060
|
-
|
|
1061
|
-
(a) =>
|
|
1213
|
+
no,
|
|
1214
|
+
(a) => so(a, o),
|
|
1215
|
+
lo,
|
|
1216
|
+
(a) => t ? { ...a, a: 1 } : a
|
|
1062
1217
|
),
|
|
1063
1218
|
valid: !0
|
|
1064
1219
|
};
|
|
@@ -1069,202 +1224,205 @@ function rr(t) {
|
|
|
1069
1224
|
format(e) {
|
|
1070
1225
|
return (Math.round(e.r * 255).toString(16).padStart(2, "0") + Math.round(e.g * 255).toString(16).padStart(2, "0") + Math.round(e.b * 255).toString(16).padStart(2, "0")).toUpperCase();
|
|
1071
1226
|
},
|
|
1072
|
-
incrementBy(e,
|
|
1227
|
+
incrementBy(e, o, a) {
|
|
1073
1228
|
return a ?? (a = { r: !0, g: !0, b: !0 }), {
|
|
1074
|
-
r: a.r ? I(Math.round(e.r * 255) +
|
|
1075
|
-
g: a.g ? I(Math.round(e.g * 255) +
|
|
1076
|
-
b: a.b ? I(Math.round(e.b * 255) +
|
|
1229
|
+
r: a.r ? I(Math.round(e.r * 255) + o, { min: 0, max: 255 }) / 255 : e.r,
|
|
1230
|
+
g: a.g ? I(Math.round(e.g * 255) + o, { min: 0, max: 255 }) / 255 : e.g,
|
|
1231
|
+
b: a.b ? I(Math.round(e.b * 255) + o, { min: 0, max: 255 }) / 255 : e.b,
|
|
1077
1232
|
a: e.a
|
|
1078
1233
|
};
|
|
1079
1234
|
},
|
|
1080
1235
|
getIncrementTargets(e) {
|
|
1081
|
-
const
|
|
1082
|
-
return
|
|
1083
|
-
r:
|
|
1084
|
-
g:
|
|
1236
|
+
const o = e.selectionStart, a = e.selectionEnd;
|
|
1237
|
+
return o === null || a === null ? null : {
|
|
1238
|
+
r: o < 2 || o === 2 && a === 2,
|
|
1239
|
+
g: o < 4 && a >= 3 || o === 4 && a === 4,
|
|
1085
1240
|
b: a >= 5
|
|
1086
1241
|
};
|
|
1087
1242
|
},
|
|
1088
1243
|
getIncrementSelection(e) {
|
|
1089
|
-
let
|
|
1090
|
-
return e ? (e.r ?
|
|
1244
|
+
let o, a;
|
|
1245
|
+
return e ? (e.r ? o = 0 : e.g ? o = 2 : o = 4, e.b ? a = 6 : e.g ? a = 4 : a = 2, [o, a]) : [0, 6];
|
|
1091
1246
|
}
|
|
1092
1247
|
};
|
|
1093
1248
|
}
|
|
1094
|
-
function
|
|
1249
|
+
function ao(r) {
|
|
1250
|
+
return Object.keys(Jr).includes(r);
|
|
1251
|
+
}
|
|
1252
|
+
function no(r) {
|
|
1095
1253
|
var e;
|
|
1096
|
-
const
|
|
1097
|
-
return ((e =
|
|
1254
|
+
const t = /[0-9a-f]+/gi;
|
|
1255
|
+
return ((e = r.match(t)) == null ? void 0 : e[0]) ?? "";
|
|
1098
1256
|
}
|
|
1099
|
-
function
|
|
1100
|
-
if (!/^[0-9a-f]{1,8}$/i.test(
|
|
1257
|
+
function so(r, t) {
|
|
1258
|
+
if (!/^[0-9a-f]{1,8}$/i.test(r))
|
|
1101
1259
|
throw new Error("Invalid hex substring");
|
|
1102
|
-
switch (
|
|
1260
|
+
switch (r.length) {
|
|
1103
1261
|
case 1:
|
|
1104
|
-
return
|
|
1262
|
+
return r.repeat(6) + ne(t.a);
|
|
1105
1263
|
case 2:
|
|
1106
|
-
return
|
|
1264
|
+
return r.repeat(3) + ne(t.a);
|
|
1107
1265
|
case 3:
|
|
1108
|
-
return
|
|
1266
|
+
return r.split("").map((e) => e.repeat(2)).join("") + ne(t.a);
|
|
1109
1267
|
case 4:
|
|
1110
|
-
return
|
|
1268
|
+
return r.slice(0, 3).split("").map((e) => e.repeat(2)).join("") + r[3].repeat(2);
|
|
1111
1269
|
case 5:
|
|
1112
|
-
return
|
|
1270
|
+
return r.slice(0, 3).split("").map((e) => e.repeat(2)).join("") + r.slice(-2);
|
|
1113
1271
|
case 6:
|
|
1114
|
-
return
|
|
1272
|
+
return r + ne(t.a);
|
|
1115
1273
|
case 7:
|
|
1116
|
-
return
|
|
1274
|
+
return r.slice(0, 6) + r[6].repeat(2);
|
|
1117
1275
|
case 8:
|
|
1118
|
-
return
|
|
1276
|
+
return r;
|
|
1119
1277
|
default:
|
|
1120
1278
|
throw new Error("Invalid hex substring");
|
|
1121
1279
|
}
|
|
1122
1280
|
}
|
|
1123
|
-
function
|
|
1281
|
+
function lo(r) {
|
|
1124
1282
|
return {
|
|
1125
|
-
r: parseInt(
|
|
1126
|
-
g: parseInt(
|
|
1127
|
-
b: parseInt(
|
|
1128
|
-
a: parseInt(
|
|
1283
|
+
r: parseInt(r.substring(0, 2), 16) / 255,
|
|
1284
|
+
g: parseInt(r.substring(2, 4), 16) / 255,
|
|
1285
|
+
b: parseInt(r.substring(4, 6), 16) / 255,
|
|
1286
|
+
a: parseInt(r.substring(6, 8), 16) / 255
|
|
1129
1287
|
};
|
|
1130
1288
|
}
|
|
1131
|
-
function
|
|
1132
|
-
return Math.round(
|
|
1289
|
+
function ne(r) {
|
|
1290
|
+
return Math.round(r * 255).toString(16);
|
|
1133
1291
|
}
|
|
1134
|
-
const
|
|
1292
|
+
const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1135
1293
|
__proto__: null,
|
|
1136
|
-
Hex:
|
|
1137
|
-
Label:
|
|
1138
|
-
Multi:
|
|
1294
|
+
Hex: Qr,
|
|
1295
|
+
Label: W,
|
|
1296
|
+
Multi: q,
|
|
1139
1297
|
Numeric: x,
|
|
1140
|
-
Root:
|
|
1298
|
+
Root: R
|
|
1141
1299
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1142
|
-
function
|
|
1143
|
-
const
|
|
1144
|
-
return
|
|
1300
|
+
function se(r) {
|
|
1301
|
+
const t = z(r * 255, 0).toString(16);
|
|
1302
|
+
return t.length < 2 ? "0" + t : t;
|
|
1145
1303
|
}
|
|
1146
|
-
function
|
|
1147
|
-
const a =
|
|
1148
|
-
return "#" +
|
|
1304
|
+
function ie({ r, g: t, b: e, a: o }) {
|
|
1305
|
+
const a = o < 1 ? se(o) : "";
|
|
1306
|
+
return "#" + se(r) + se(t) + se(e) + a;
|
|
1149
1307
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
1308
|
+
function io(r) {
|
|
1309
|
+
return ie(Ce(r));
|
|
1152
1310
|
}
|
|
1153
|
-
function
|
|
1154
|
-
return
|
|
1311
|
+
function co(r) {
|
|
1312
|
+
return ie(L(r));
|
|
1155
1313
|
}
|
|
1156
|
-
function
|
|
1157
|
-
const a = Math.max(
|
|
1314
|
+
function ee({ r, g: t, b: e, a: o }) {
|
|
1315
|
+
const a = Math.max(r, t, e), s = a - Math.min(r, t, e), l = s ? a === r ? (t - e) / s : a === t ? 2 + (e - r) / s : 4 + (r - t) / s : 0;
|
|
1158
1316
|
return {
|
|
1159
1317
|
h: 60 * (l < 0 ? l + 6 : l),
|
|
1160
1318
|
s: a ? s / a * 100 : 0,
|
|
1161
1319
|
v: a * 100,
|
|
1162
|
-
a:
|
|
1320
|
+
a: o
|
|
1163
1321
|
};
|
|
1164
1322
|
}
|
|
1165
|
-
function L({ h:
|
|
1166
|
-
|
|
1167
|
-
const a = Math.floor(
|
|
1323
|
+
function L({ h: r, s: t, v: e, a: o }) {
|
|
1324
|
+
r = r / 360 * 6, t = t / 100, e = e / 100;
|
|
1325
|
+
const a = Math.floor(r), s = e * (1 - t), l = e * (1 - (r - a) * t), c = e * (1 - (1 - r + a) * t), d = a % 6;
|
|
1168
1326
|
return {
|
|
1169
1327
|
r: [e, l, s, s, c, e][d],
|
|
1170
1328
|
g: [c, e, e, l, s, s][d],
|
|
1171
1329
|
b: [s, s, c, e, e, l][d],
|
|
1172
|
-
a:
|
|
1330
|
+
a: o
|
|
1173
1331
|
};
|
|
1174
1332
|
}
|
|
1175
|
-
function
|
|
1176
|
-
return
|
|
1177
|
-
h:
|
|
1178
|
-
s:
|
|
1179
|
-
v: e +
|
|
1180
|
-
a:
|
|
1333
|
+
function et({ h: r, s: t, l: e, a: o }) {
|
|
1334
|
+
return t *= (e < 50 ? e : 100 - e) / 100, {
|
|
1335
|
+
h: r,
|
|
1336
|
+
s: t > 0 ? 2 * t / (e + t) * 100 : 0,
|
|
1337
|
+
v: e + t,
|
|
1338
|
+
a: o
|
|
1181
1339
|
};
|
|
1182
1340
|
}
|
|
1183
|
-
function
|
|
1184
|
-
const a = (200 -
|
|
1341
|
+
function rt({ h: r, s: t, v: e, a: o }) {
|
|
1342
|
+
const a = (200 - t) * e / 100;
|
|
1185
1343
|
return {
|
|
1186
|
-
h:
|
|
1187
|
-
s: a > 0 && a < 200 ?
|
|
1344
|
+
h: r,
|
|
1345
|
+
s: a > 0 && a < 200 ? t * e / 100 / (a <= 100 ? a : 200 - a) * 100 : 0,
|
|
1188
1346
|
l: a / 2,
|
|
1189
|
-
a:
|
|
1347
|
+
a: o
|
|
1190
1348
|
};
|
|
1191
1349
|
}
|
|
1192
|
-
function Ce(
|
|
1193
|
-
return L(
|
|
1350
|
+
function Ce(r) {
|
|
1351
|
+
return L(et(r));
|
|
1194
1352
|
}
|
|
1195
|
-
function Ee(
|
|
1196
|
-
return
|
|
1353
|
+
function Ee(r) {
|
|
1354
|
+
return rt(ee(r));
|
|
1197
1355
|
}
|
|
1198
|
-
function
|
|
1199
|
-
const
|
|
1200
|
-
return a < 1 ? `color(display-p3 ${
|
|
1356
|
+
function Z(r) {
|
|
1357
|
+
const t = z(r.r, 4), e = z(r.g, 4), o = z(r.b, 4), a = z(r.a, 2);
|
|
1358
|
+
return a < 1 ? `color(display-p3 ${t} ${e} ${o} / ${a})` : `color(display-p3 ${t} ${e} ${o})`;
|
|
1201
1359
|
}
|
|
1202
|
-
function
|
|
1203
|
-
const
|
|
1204
|
-
return a < 1 ? `rgb(${
|
|
1360
|
+
function J(r) {
|
|
1361
|
+
const t = Math.round(r.r * 255), e = Math.round(r.g * 255), o = Math.round(r.b * 255), a = r.a;
|
|
1362
|
+
return a < 1 ? `rgb(${t} ${e} ${o} / ${a})` : `rgb(${t} ${e} ${o})`;
|
|
1205
1363
|
}
|
|
1206
|
-
function Le(
|
|
1207
|
-
const { r:
|
|
1364
|
+
function Le(r) {
|
|
1365
|
+
const { r: t, g: e, b: o, a } = r;
|
|
1208
1366
|
return {
|
|
1209
|
-
r:
|
|
1367
|
+
r: t + (1 - t) * (1 - a),
|
|
1210
1368
|
g: e + (1 - e) * (1 - a),
|
|
1211
|
-
b:
|
|
1369
|
+
b: o + (1 - o) * (1 - a),
|
|
1212
1370
|
a: 1
|
|
1213
1371
|
};
|
|
1214
1372
|
}
|
|
1215
|
-
const
|
|
1373
|
+
const po = { r: 0, g: 0, b: 0, a: 1 }, uo = ["hex", "rgb", "hsl", "hsv"], [go, k] = ue("ColorPicker"), mo = (r) => {
|
|
1216
1374
|
const {
|
|
1217
|
-
colorSpace:
|
|
1218
|
-
models: e =
|
|
1219
|
-
defaultActiveModel:
|
|
1375
|
+
colorSpace: t,
|
|
1376
|
+
models: e = uo,
|
|
1377
|
+
defaultActiveModel: o,
|
|
1220
1378
|
activeModel: a,
|
|
1221
1379
|
onActiveModelChange: s,
|
|
1222
1380
|
defaultColor: l,
|
|
1223
1381
|
color: c,
|
|
1224
1382
|
onColorChange: d,
|
|
1225
1383
|
children: u
|
|
1226
|
-
} =
|
|
1227
|
-
|
|
1228
|
-
const [
|
|
1384
|
+
} = r;
|
|
1385
|
+
fo(a, o, e);
|
|
1386
|
+
const [g = po, f] = he({
|
|
1229
1387
|
prop: c,
|
|
1230
1388
|
defaultProp: l,
|
|
1231
1389
|
onChange: d
|
|
1232
|
-
}), [v = e[0], T] =
|
|
1390
|
+
}), [v = e[0], T] = he({
|
|
1233
1391
|
prop: a,
|
|
1234
|
-
defaultProp:
|
|
1392
|
+
defaultProp: o,
|
|
1235
1393
|
onChange: s
|
|
1236
|
-
}), [
|
|
1237
|
-
hsv:
|
|
1238
|
-
hsl:
|
|
1239
|
-
rgb:
|
|
1240
|
-
hex:
|
|
1394
|
+
}), [b, C] = re({}), S = {
|
|
1395
|
+
hsv: b.hsv ?? ee(g),
|
|
1396
|
+
hsl: b.hsl ?? Ee(g),
|
|
1397
|
+
rgb: b.rgb ?? g,
|
|
1398
|
+
hex: b.hex ?? ie(g)
|
|
1241
1399
|
}, M = S.hsv.h;
|
|
1242
1400
|
return /* @__PURE__ */ n(
|
|
1243
|
-
|
|
1401
|
+
go,
|
|
1244
1402
|
{
|
|
1245
|
-
colorSpace:
|
|
1403
|
+
colorSpace: t,
|
|
1246
1404
|
models: e,
|
|
1247
1405
|
activeModel: v,
|
|
1248
1406
|
onActiveModelChange: T,
|
|
1249
|
-
color:
|
|
1407
|
+
color: g,
|
|
1250
1408
|
onColorChange: (X) => {
|
|
1251
1409
|
const { mode: O, value: m } = X;
|
|
1252
1410
|
O === "rgb" ? (C({
|
|
1253
1411
|
rgb: m,
|
|
1254
|
-
hsv:
|
|
1412
|
+
hsv: ee(m),
|
|
1255
1413
|
hsl: Ee(m),
|
|
1256
|
-
hex:
|
|
1257
|
-
}),
|
|
1414
|
+
hex: ie(m)
|
|
1415
|
+
}), f(m)) : O === "hsv" ? (C({
|
|
1258
1416
|
hsv: m,
|
|
1259
|
-
hsl:
|
|
1417
|
+
hsl: rt(m),
|
|
1260
1418
|
rgb: L(m),
|
|
1261
|
-
hex:
|
|
1262
|
-
}),
|
|
1263
|
-
hsv:
|
|
1419
|
+
hex: co(m)
|
|
1420
|
+
}), f(L(m))) : O === "hsl" && (C({
|
|
1421
|
+
hsv: et(m),
|
|
1264
1422
|
hsl: m,
|
|
1265
1423
|
rgb: Ce(m),
|
|
1266
|
-
hex:
|
|
1267
|
-
}),
|
|
1424
|
+
hex: io(m)
|
|
1425
|
+
}), f(Ce(m)));
|
|
1268
1426
|
},
|
|
1269
1427
|
hue: M,
|
|
1270
1428
|
colorsByModel: S,
|
|
@@ -1272,100 +1430,100 @@ const cr = { r: 0, g: 0, b: 0, a: 1 }, pr = ["hex", "rgb", "hsl", "hsv"], [dr, D
|
|
|
1272
1430
|
}
|
|
1273
1431
|
);
|
|
1274
1432
|
};
|
|
1275
|
-
function
|
|
1433
|
+
function fo(r, t, e) {
|
|
1276
1434
|
if (e.length === 0)
|
|
1277
1435
|
throw new Error(
|
|
1278
1436
|
"The 'models' prop must contain at least one color model. Omit the 'models' prop entirely to use default models."
|
|
1279
1437
|
);
|
|
1280
|
-
if (
|
|
1438
|
+
if (r && !e.includes(r))
|
|
1281
1439
|
throw new Error(
|
|
1282
|
-
`Invalid 'activeModel': '${
|
|
1440
|
+
`Invalid 'activeModel': '${r}' is not present in the 'models' array. Make sure 'activeModel' matches a model name in 'models'.`
|
|
1283
1441
|
);
|
|
1284
|
-
if (
|
|
1442
|
+
if (t && !e.includes(t))
|
|
1285
1443
|
throw new Error(
|
|
1286
|
-
`Invalid 'defaultActiveModel': '${
|
|
1444
|
+
`Invalid 'defaultActiveModel': '${t}' is not present in the 'models' array. Make sure 'activeModel' matches a model name in 'models'.`
|
|
1287
1445
|
);
|
|
1288
1446
|
}
|
|
1289
|
-
const
|
|
1447
|
+
const bo = 2, ho = 0, Co = 100, No = "horizontal", yo = "ltr", De = i.forwardRef((r, t) => {
|
|
1290
1448
|
const {
|
|
1291
1449
|
className: e,
|
|
1292
|
-
min:
|
|
1293
|
-
max: a =
|
|
1294
|
-
defaultValue: s = [
|
|
1450
|
+
min: o = ho,
|
|
1451
|
+
max: a = Co,
|
|
1452
|
+
defaultValue: s = [o],
|
|
1295
1453
|
value: l,
|
|
1296
1454
|
onValueChange: c,
|
|
1297
|
-
orientation: d =
|
|
1298
|
-
dir: u =
|
|
1299
|
-
inverted:
|
|
1300
|
-
disabled:
|
|
1455
|
+
orientation: d = No,
|
|
1456
|
+
dir: u = yo,
|
|
1457
|
+
inverted: g,
|
|
1458
|
+
disabled: f,
|
|
1301
1459
|
range: v = !0,
|
|
1302
1460
|
rangeAnchor: T,
|
|
1303
|
-
baseValue:
|
|
1461
|
+
baseValue: b,
|
|
1304
1462
|
hints: C,
|
|
1305
1463
|
...S
|
|
1306
|
-
} =
|
|
1464
|
+
} = r, M = G(null), te = pe(M, t), { onPointerDown: X, focusVisible: O } = xo(M), [m, P] = re(l ?? s), K = G(l), oe = G(s);
|
|
1307
1465
|
_e(() => {
|
|
1308
|
-
ze(l,
|
|
1466
|
+
ze(l, K.current) && ze(s, oe.current) || (P(l ?? s), K.current = l, oe.current = s);
|
|
1309
1467
|
}, [l, s]), _e(() => {
|
|
1310
1468
|
M.current && M.current.style.setProperty(
|
|
1311
1469
|
"--radix-slider-thumb-transform",
|
|
1312
|
-
|
|
1470
|
+
vo(d, u, g)
|
|
1313
1471
|
);
|
|
1314
|
-
}, [M, d, u,
|
|
1315
|
-
const
|
|
1316
|
-
const _ =
|
|
1472
|
+
}, [M, d, u, g]);
|
|
1473
|
+
const ae = (D) => {
|
|
1474
|
+
const _ = D.map((me) => Po(me, C, o, a));
|
|
1317
1475
|
c == null || c(_), P(_);
|
|
1318
1476
|
};
|
|
1319
|
-
return /* @__PURE__ */
|
|
1320
|
-
|
|
1477
|
+
return /* @__PURE__ */ h(
|
|
1478
|
+
fe.Root,
|
|
1321
1479
|
{
|
|
1322
1480
|
tabIndex: -1,
|
|
1323
1481
|
ref: te,
|
|
1324
1482
|
className: p(e, "fp-SliderRoot"),
|
|
1325
1483
|
value: m,
|
|
1326
|
-
onValueChange:
|
|
1484
|
+
onValueChange: ae,
|
|
1327
1485
|
onPointerDown: X,
|
|
1328
|
-
min:
|
|
1486
|
+
min: o,
|
|
1329
1487
|
max: a,
|
|
1330
1488
|
orientation: d,
|
|
1331
1489
|
dir: u,
|
|
1332
|
-
inverted:
|
|
1333
|
-
disabled:
|
|
1490
|
+
inverted: g,
|
|
1491
|
+
disabled: f,
|
|
1334
1492
|
...S,
|
|
1335
1493
|
children: [
|
|
1336
|
-
/* @__PURE__ */ n(
|
|
1494
|
+
/* @__PURE__ */ n(fe.Track, { className: "fp-SliderTrack" }),
|
|
1337
1495
|
v && /* @__PURE__ */ n(
|
|
1338
|
-
|
|
1496
|
+
Ro,
|
|
1339
1497
|
{
|
|
1340
1498
|
dir: u,
|
|
1341
1499
|
value: m,
|
|
1342
|
-
min:
|
|
1500
|
+
min: o,
|
|
1343
1501
|
max: a,
|
|
1344
1502
|
orientation: d,
|
|
1345
|
-
inverted:
|
|
1503
|
+
inverted: g,
|
|
1346
1504
|
rangeAnchor: T,
|
|
1347
|
-
disabled:
|
|
1505
|
+
disabled: f
|
|
1348
1506
|
}
|
|
1349
1507
|
),
|
|
1350
|
-
C && C.map((
|
|
1351
|
-
|
|
1508
|
+
C && C.map((D) => /* @__PURE__ */ n(
|
|
1509
|
+
wo,
|
|
1352
1510
|
{
|
|
1353
|
-
hint:
|
|
1354
|
-
baseValue:
|
|
1355
|
-
min:
|
|
1511
|
+
hint: D,
|
|
1512
|
+
baseValue: b,
|
|
1513
|
+
min: o,
|
|
1356
1514
|
max: a,
|
|
1357
1515
|
orientation: d,
|
|
1358
1516
|
dir: u,
|
|
1359
|
-
inverted:
|
|
1517
|
+
inverted: g
|
|
1360
1518
|
},
|
|
1361
|
-
|
|
1519
|
+
D
|
|
1362
1520
|
)),
|
|
1363
|
-
m.map((
|
|
1364
|
-
|
|
1521
|
+
m.map((D, _) => /* @__PURE__ */ n(
|
|
1522
|
+
fe.Thumb,
|
|
1365
1523
|
{
|
|
1366
1524
|
className: p("fp-SliderThumb", {
|
|
1367
1525
|
"fp-SliderThumb-focusVisible": O,
|
|
1368
|
-
"fp-SliderThumb-baseValue":
|
|
1526
|
+
"fp-SliderThumb-baseValue": D === b
|
|
1369
1527
|
})
|
|
1370
1528
|
},
|
|
1371
1529
|
_
|
|
@@ -1374,19 +1532,19 @@ const mr = 2, gr = 0, hr = 100, br = "horizontal", Cr = "ltr", ke = i.forwardRef
|
|
|
1374
1532
|
}
|
|
1375
1533
|
);
|
|
1376
1534
|
});
|
|
1377
|
-
|
|
1378
|
-
const
|
|
1379
|
-
const { baseValue:
|
|
1535
|
+
De.displayName = "Slider";
|
|
1536
|
+
const wo = (r) => {
|
|
1537
|
+
const { baseValue: t, dir: e, inverted: o, max: a, min: s, orientation: l, hint: c } = r, { startEdge: d } = tt(l, e, o), u = E([s, a], [0, 100])(c), g = 4;
|
|
1380
1538
|
return /* @__PURE__ */ n(Ve, { children: /* @__PURE__ */ n(
|
|
1381
1539
|
"span",
|
|
1382
1540
|
{
|
|
1383
|
-
className: p("fp-SliderHint", { "fp-SliderHint-baseValue": c ===
|
|
1541
|
+
className: p("fp-SliderHint", { "fp-SliderHint-baseValue": c === t }),
|
|
1384
1542
|
"data-orientation": l,
|
|
1385
|
-
style: { [d]: `calc(${u}% - ${
|
|
1543
|
+
style: { [d]: `calc(${u}% - ${g / 2}px)` }
|
|
1386
1544
|
}
|
|
1387
1545
|
) });
|
|
1388
|
-
},
|
|
1389
|
-
const { min:
|
|
1546
|
+
}, Ro = (r) => {
|
|
1547
|
+
const { min: t, max: e, value: o, rangeAnchor: a = t, orientation: s, dir: l, inverted: c, disabled: d } = r, u = o.length > 1 ? Math.min(...o) : Math.min(a, ...o), g = o.length > 1 ? Math.max(...o) : Math.max(a, ...o), f = E([t, e], [0, 100])(u), v = 100 - E([t, e], [0, 100])(g), T = tt(s, l, c);
|
|
1390
1548
|
return /* @__PURE__ */ n(
|
|
1391
1549
|
"span",
|
|
1392
1550
|
{
|
|
@@ -1394,14 +1552,14 @@ const Nr = (t) => {
|
|
|
1394
1552
|
"data-orientation": s,
|
|
1395
1553
|
"data-disabled": d ? "" : void 0,
|
|
1396
1554
|
style: {
|
|
1397
|
-
[T.startEdge]: `${
|
|
1555
|
+
[T.startEdge]: `${f}%`,
|
|
1398
1556
|
[T.endEdge]: `${v}%`
|
|
1399
1557
|
}
|
|
1400
1558
|
}
|
|
1401
1559
|
);
|
|
1402
1560
|
};
|
|
1403
|
-
function
|
|
1404
|
-
const
|
|
1561
|
+
function tt(r, t, e) {
|
|
1562
|
+
const o = e ? "inverted" : "normal";
|
|
1405
1563
|
return {
|
|
1406
1564
|
vertical: {
|
|
1407
1565
|
normal: {
|
|
@@ -1415,49 +1573,49 @@ function to(t, o, e) {
|
|
|
1415
1573
|
},
|
|
1416
1574
|
horizontal: {
|
|
1417
1575
|
normal: {
|
|
1418
|
-
startEdge:
|
|
1419
|
-
endEdge:
|
|
1576
|
+
startEdge: t === "ltr" ? "left" : "right",
|
|
1577
|
+
endEdge: t === "ltr" ? "right" : "left"
|
|
1420
1578
|
},
|
|
1421
1579
|
inverted: {
|
|
1422
|
-
startEdge:
|
|
1423
|
-
endEdge:
|
|
1580
|
+
startEdge: t === "ltr" ? "right" : "left",
|
|
1581
|
+
endEdge: t === "ltr" ? "left" : "right"
|
|
1424
1582
|
}
|
|
1425
1583
|
}
|
|
1426
|
-
}[
|
|
1584
|
+
}[r][o];
|
|
1427
1585
|
}
|
|
1428
|
-
function
|
|
1429
|
-
const
|
|
1586
|
+
function vo(r, t, e) {
|
|
1587
|
+
const o = e ? "inverted" : "normal";
|
|
1430
1588
|
return {
|
|
1431
1589
|
vertical: {
|
|
1432
1590
|
normal: "translateY(50%)",
|
|
1433
1591
|
inverted: "translateY(-50%)"
|
|
1434
1592
|
},
|
|
1435
1593
|
horizontal: {
|
|
1436
|
-
normal:
|
|
1437
|
-
inverted:
|
|
1594
|
+
normal: t === "ltr" ? "translateX(-50%)" : "translateX(50%)",
|
|
1595
|
+
inverted: t === "ltr" ? "translateX(50%)" : "translateX(-50%)"
|
|
1438
1596
|
}
|
|
1439
|
-
}[
|
|
1597
|
+
}[r][o];
|
|
1440
1598
|
}
|
|
1441
|
-
function
|
|
1442
|
-
const [
|
|
1599
|
+
function xo(r) {
|
|
1600
|
+
const [t, e] = re(!1), o = () => {
|
|
1443
1601
|
var s;
|
|
1444
|
-
e(!1), window.removeEventListener("pointerup",
|
|
1602
|
+
e(!1), window.removeEventListener("pointerup", o), (s = r.current) == null || s.focus();
|
|
1445
1603
|
};
|
|
1446
1604
|
return { onPointerDown: () => {
|
|
1447
|
-
e(!0), window.addEventListener("pointerup",
|
|
1448
|
-
}, focusVisible: !
|
|
1605
|
+
e(!0), window.addEventListener("pointerup", o);
|
|
1606
|
+
}, focusVisible: !t };
|
|
1449
1607
|
}
|
|
1450
|
-
function
|
|
1451
|
-
const a = E([0, 100], [0,
|
|
1452
|
-
return typeof s == "number" ? s :
|
|
1608
|
+
function Po(r, t, e, o) {
|
|
1609
|
+
const a = E([0, 100], [0, o - e])(bo), s = t == null ? void 0 : t.find((l) => Math.abs(l - r) <= a);
|
|
1610
|
+
return typeof s == "number" ? s : r;
|
|
1453
1611
|
}
|
|
1454
|
-
const
|
|
1455
|
-
const { className:
|
|
1456
|
-
const v = d.setHue(l,
|
|
1612
|
+
const To = (r) => {
|
|
1613
|
+
const { className: t, style: e } = r, { activeModel: o, colorSpace: a, hue: s, color: l, onColorChange: c } = k("Hue"), d = So[o], u = (f) => {
|
|
1614
|
+
const v = d.setHue(l, f[0]);
|
|
1457
1615
|
c({ mode: "rgb", value: v });
|
|
1458
|
-
},
|
|
1616
|
+
}, g = d.getThumbColor(s, a);
|
|
1459
1617
|
return /* @__PURE__ */ n(
|
|
1460
|
-
|
|
1618
|
+
De,
|
|
1461
1619
|
{
|
|
1462
1620
|
"aria-label": "hue",
|
|
1463
1621
|
range: !1,
|
|
@@ -1465,43 +1623,43 @@ const xr = (t) => {
|
|
|
1465
1623
|
max: 359,
|
|
1466
1624
|
value: [s],
|
|
1467
1625
|
onValueChange: u,
|
|
1468
|
-
className: `fp-ColorPickerHueSlider fp-color-model-${
|
|
1469
|
-
style: { "--slider-thumb-bg":
|
|
1626
|
+
className: `fp-ColorPickerHueSlider fp-color-model-${o} fp-color-space-${a} ${t}`,
|
|
1627
|
+
style: { "--slider-thumb-bg": g, ...e }
|
|
1470
1628
|
}
|
|
1471
1629
|
);
|
|
1472
|
-
},
|
|
1473
|
-
getHue: (
|
|
1474
|
-
setHue: (
|
|
1475
|
-
const { s: e, v:
|
|
1476
|
-
return L({ h:
|
|
1630
|
+
}, le = {
|
|
1631
|
+
getHue: (r) => Math.round(ee(r).h),
|
|
1632
|
+
setHue: (r, t) => {
|
|
1633
|
+
const { s: e, v: o } = ee(r);
|
|
1634
|
+
return L({ h: t, s: e, v: o, a: r.a });
|
|
1477
1635
|
},
|
|
1478
|
-
getThumbColor: (
|
|
1479
|
-
const { r: e, g:
|
|
1480
|
-
return
|
|
1636
|
+
getThumbColor: (r, t) => {
|
|
1637
|
+
const { r: e, g: o, b: a } = L({ h: r, s: 100, v: 100, a: 1 });
|
|
1638
|
+
return t === "display-p3" ? `color(display-p3 ${+e.toFixed(4)} ${+o.toFixed(4)} ${+a.toFixed(4)})` : `rgb(${Math.round(e * 255)} ${Math.round(o * 255)} ${Math.round(a * 255)})`;
|
|
1481
1639
|
}
|
|
1482
|
-
},
|
|
1483
|
-
rgb:
|
|
1484
|
-
hsl:
|
|
1485
|
-
hsv:
|
|
1486
|
-
hex:
|
|
1487
|
-
},
|
|
1488
|
-
const { className:
|
|
1640
|
+
}, So = {
|
|
1641
|
+
rgb: le,
|
|
1642
|
+
hsl: le,
|
|
1643
|
+
hsv: le,
|
|
1644
|
+
hex: le
|
|
1645
|
+
}, Mo = (r) => {
|
|
1646
|
+
const { className: t, style: e } = r, { colorSpace: o, color: a, onColorChange: s } = k("Hue"), l = {
|
|
1489
1647
|
srgb: {
|
|
1490
|
-
transparent:
|
|
1491
|
-
opaque:
|
|
1648
|
+
transparent: J({ ...a, a: 0 }),
|
|
1649
|
+
opaque: J({ ...a, a: 1 })
|
|
1492
1650
|
},
|
|
1493
1651
|
p3: {
|
|
1494
|
-
transparent:
|
|
1495
|
-
opaque:
|
|
1652
|
+
transparent: Z({ ...a, a: 0 }),
|
|
1653
|
+
opaque: Z({ ...a, a: 1 })
|
|
1496
1654
|
}
|
|
1497
1655
|
}, c = {
|
|
1498
|
-
srgb:
|
|
1499
|
-
p3:
|
|
1656
|
+
srgb: J(Le(a)),
|
|
1657
|
+
p3: Z(Le(a))
|
|
1500
1658
|
}, d = (u) => {
|
|
1501
1659
|
s({ mode: "rgb", value: { ...a, a: z(u[0] / 100, 2) } });
|
|
1502
1660
|
};
|
|
1503
1661
|
return /* @__PURE__ */ n(
|
|
1504
|
-
|
|
1662
|
+
De,
|
|
1505
1663
|
{
|
|
1506
1664
|
"aria-label": "alpha",
|
|
1507
1665
|
min: 0,
|
|
@@ -1509,7 +1667,7 @@ const xr = (t) => {
|
|
|
1509
1667
|
range: !1,
|
|
1510
1668
|
value: [a.a * 100],
|
|
1511
1669
|
onValueChange: d,
|
|
1512
|
-
className: `fp-ColorPickerAlphaSlider fp-color-space-${
|
|
1670
|
+
className: `fp-ColorPickerAlphaSlider fp-color-space-${o} ${t}`,
|
|
1513
1671
|
style: {
|
|
1514
1672
|
"--track-bg-transparent-srgb": l.srgb.transparent,
|
|
1515
1673
|
"--track-bg-opaque-srgb": l.srgb.opaque,
|
|
@@ -1521,46 +1679,46 @@ const xr = (t) => {
|
|
|
1521
1679
|
}
|
|
1522
1680
|
}
|
|
1523
1681
|
);
|
|
1524
|
-
},
|
|
1525
|
-
const { onColorChange:
|
|
1526
|
-
srgb:
|
|
1527
|
-
p3:
|
|
1682
|
+
}, Io = 8, $o = (r) => {
|
|
1683
|
+
const { onColorChange: t, colorsByModel: e, hue: o, colorSpace: a, activeModel: s } = k("ColorPicker.Area"), l = {
|
|
1684
|
+
srgb: J(L({ h: o, s: 100, v: 100, a: 1 })),
|
|
1685
|
+
p3: Z(L({ h: o, s: 100, v: 100, a: 1 }))
|
|
1528
1686
|
}, c = {
|
|
1529
|
-
srgb:
|
|
1530
|
-
p3:
|
|
1531
|
-
}, d =
|
|
1532
|
-
|
|
1687
|
+
srgb: J(e.rgb),
|
|
1688
|
+
p3: Z(e.rgb)
|
|
1689
|
+
}, d = ko(e, s), u = G(null), { size: g } = Do(u), f = (b) => {
|
|
1690
|
+
t(s === "hsl" ? {
|
|
1533
1691
|
mode: "hsl",
|
|
1534
|
-
value: { h:
|
|
1692
|
+
value: { h: o, s: b.x, l: 100 - b.y, a: e.rgb.a }
|
|
1535
1693
|
} : {
|
|
1536
1694
|
mode: "hsv",
|
|
1537
|
-
value: { h:
|
|
1695
|
+
value: { h: o, s: b.x, v: 100 - b.y, a: e.rgb.a }
|
|
1538
1696
|
});
|
|
1539
|
-
}, v = (
|
|
1540
|
-
if (
|
|
1697
|
+
}, v = (b) => {
|
|
1698
|
+
if (b.type === "pointerdown" && b.currentTarget.setPointerCapture(b.pointerId), b.type === "pointermove" && !b.currentTarget.hasPointerCapture(b.pointerId))
|
|
1541
1699
|
return;
|
|
1542
|
-
const C =
|
|
1543
|
-
|
|
1544
|
-
x:
|
|
1545
|
-
y:
|
|
1546
|
-
|
|
1547
|
-
E([0,
|
|
1700
|
+
const C = b.currentTarget.getBoundingClientRect();
|
|
1701
|
+
f({
|
|
1702
|
+
x: Q(b.clientX - C.x, E([0, g], [0, 100]), I({ min: 0, max: 100 })),
|
|
1703
|
+
y: Q(
|
|
1704
|
+
b.clientY - C.y - Io,
|
|
1705
|
+
E([0, g], [0, 100]),
|
|
1548
1706
|
I({ min: 0, max: 100 })
|
|
1549
1707
|
)
|
|
1550
1708
|
});
|
|
1551
|
-
}, T = (
|
|
1552
|
-
const C =
|
|
1709
|
+
}, T = (b) => {
|
|
1710
|
+
const C = b.shiftKey ? 10 : 1, S = {
|
|
1553
1711
|
ArrowRight: { x: 1, y: 0 },
|
|
1554
1712
|
ArrowLeft: { x: -1, y: 0 },
|
|
1555
1713
|
ArrowDown: { x: 0, y: 1 },
|
|
1556
1714
|
ArrowUp: { x: 0, y: -1 }
|
|
1557
|
-
}[
|
|
1558
|
-
S &&
|
|
1715
|
+
}[b.key];
|
|
1716
|
+
S && f({
|
|
1559
1717
|
x: I(d.x + S.x * C, { min: 0, max: 100 }),
|
|
1560
1718
|
y: I(d.y + S.y * C, { min: 0, max: 100 })
|
|
1561
1719
|
});
|
|
1562
1720
|
};
|
|
1563
|
-
return /* @__PURE__ */
|
|
1721
|
+
return /* @__PURE__ */ h(
|
|
1564
1722
|
"div",
|
|
1565
1723
|
{
|
|
1566
1724
|
ref: u,
|
|
@@ -1591,38 +1749,38 @@ const xr = (t) => {
|
|
|
1591
1749
|
}
|
|
1592
1750
|
);
|
|
1593
1751
|
};
|
|
1594
|
-
function
|
|
1595
|
-
if (
|
|
1596
|
-
const e =
|
|
1752
|
+
function ko(r, t) {
|
|
1753
|
+
if (t === "hsl") {
|
|
1754
|
+
const e = r.hsl;
|
|
1597
1755
|
return {
|
|
1598
1756
|
x: e.s,
|
|
1599
1757
|
y: 100 - e.l
|
|
1600
1758
|
};
|
|
1601
1759
|
} else {
|
|
1602
|
-
const e =
|
|
1760
|
+
const e = r.hsv;
|
|
1603
1761
|
return {
|
|
1604
1762
|
x: e.s,
|
|
1605
1763
|
y: 100 - e.v
|
|
1606
1764
|
};
|
|
1607
1765
|
}
|
|
1608
1766
|
}
|
|
1609
|
-
function
|
|
1610
|
-
const [
|
|
1767
|
+
function Do(r) {
|
|
1768
|
+
const [t, e] = i.useState(0);
|
|
1611
1769
|
return i.useLayoutEffect(() => {
|
|
1612
|
-
const
|
|
1613
|
-
if (!
|
|
1770
|
+
const o = r.current;
|
|
1771
|
+
if (!o)
|
|
1614
1772
|
return;
|
|
1615
|
-
e(
|
|
1773
|
+
e(o.getBoundingClientRect().width);
|
|
1616
1774
|
const a = new ResizeObserver((s) => {
|
|
1617
1775
|
for (const l of s)
|
|
1618
1776
|
e(l.contentRect.width);
|
|
1619
1777
|
});
|
|
1620
|
-
return a.observe(
|
|
1621
|
-
a.unobserve(
|
|
1778
|
+
return a.observe(o), () => {
|
|
1779
|
+
a.unobserve(o);
|
|
1622
1780
|
};
|
|
1623
|
-
}, [
|
|
1781
|
+
}, [r]), { size: t };
|
|
1624
1782
|
}
|
|
1625
|
-
const
|
|
1783
|
+
const be = {
|
|
1626
1784
|
0: "fp-gap-0",
|
|
1627
1785
|
px: "fp-gap-px",
|
|
1628
1786
|
"0.5": "fp-gap-0_5",
|
|
@@ -1645,7 +1803,7 @@ const he = {
|
|
|
1645
1803
|
14: "fp-gap-14",
|
|
1646
1804
|
15: "fp-gap-15",
|
|
1647
1805
|
16: "fp-gap-16"
|
|
1648
|
-
},
|
|
1806
|
+
}, _o = V("fp-Flex", {
|
|
1649
1807
|
variants: {
|
|
1650
1808
|
direction: {
|
|
1651
1809
|
row: "fp-direction-row",
|
|
@@ -1671,54 +1829,54 @@ const he = {
|
|
|
1671
1829
|
wrap: "fp-wrap-wrap",
|
|
1672
1830
|
wrapReverse: "fp-wrap-wrap-reverse"
|
|
1673
1831
|
},
|
|
1674
|
-
gap:
|
|
1675
|
-
columnGap:
|
|
1676
|
-
rowGap:
|
|
1832
|
+
gap: be,
|
|
1833
|
+
columnGap: be,
|
|
1834
|
+
rowGap: be
|
|
1677
1835
|
},
|
|
1678
1836
|
defaultVariants: {
|
|
1679
1837
|
direction: "row"
|
|
1680
1838
|
}
|
|
1681
|
-
}),
|
|
1682
|
-
const { className: e, direction:
|
|
1839
|
+
}), ot = i.forwardRef((r, t) => {
|
|
1840
|
+
const { className: e, direction: o, align: a, justify: s, wrap: l, gap: c, columnGap: d, rowGap: u, ...g } = r;
|
|
1683
1841
|
return /* @__PURE__ */ n(
|
|
1684
1842
|
"div",
|
|
1685
1843
|
{
|
|
1686
|
-
ref:
|
|
1687
|
-
className:
|
|
1688
|
-
...
|
|
1844
|
+
ref: t,
|
|
1845
|
+
className: _o({ className: e, direction: o, align: a, justify: s, wrap: l, gap: c, columnGap: d, rowGap: u }),
|
|
1846
|
+
...g
|
|
1689
1847
|
}
|
|
1690
1848
|
);
|
|
1691
1849
|
});
|
|
1692
|
-
|
|
1693
|
-
const
|
|
1694
|
-
const { models:
|
|
1850
|
+
ot.displayName = "Flex";
|
|
1851
|
+
const zo = (r) => {
|
|
1852
|
+
const { models: t, activeModel: e, onActiveModelChange: o } = k("ColorPicker.Input"), a = pt(
|
|
1695
1853
|
{
|
|
1696
|
-
hex:
|
|
1697
|
-
hsv:
|
|
1698
|
-
hsl:
|
|
1699
|
-
rgb:
|
|
1854
|
+
hex: Ao,
|
|
1855
|
+
hsv: Lo,
|
|
1856
|
+
hsl: Vo,
|
|
1857
|
+
rgb: Eo
|
|
1700
1858
|
},
|
|
1701
|
-
|
|
1859
|
+
t
|
|
1702
1860
|
)[e];
|
|
1703
|
-
return /* @__PURE__ */
|
|
1704
|
-
|
|
1861
|
+
return /* @__PURE__ */ h(ot, { gap: "2.5", className: r.className, style: r.style, children: [
|
|
1862
|
+
t.length > 1 && /* @__PURE__ */ h(pr, { value: e, onValueChange: o, children: [
|
|
1705
1863
|
/* @__PURE__ */ n(ve, { style: { width: 56 } }),
|
|
1706
|
-
/* @__PURE__ */ n(xe, { children:
|
|
1864
|
+
/* @__PURE__ */ n(xe, { children: t.map((s) => /* @__PURE__ */ n(Pe, { value: s, children: s.toUpperCase() }, s)) })
|
|
1707
1865
|
] }),
|
|
1708
1866
|
/* @__PURE__ */ n(a, {})
|
|
1709
1867
|
] });
|
|
1710
|
-
},
|
|
1711
|
-
const { colorsByModel:
|
|
1712
|
-
return /* @__PURE__ */
|
|
1713
|
-
/* @__PURE__ */ n(
|
|
1714
|
-
|
|
1868
|
+
}, Ao = () => {
|
|
1869
|
+
const { colorsByModel: r, onColorChange: t } = k("ColorPicker.HEX"), e = r.rgb;
|
|
1870
|
+
return /* @__PURE__ */ h(q, { children: [
|
|
1871
|
+
/* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(Qr, { onChange: (s) => {
|
|
1872
|
+
t({ mode: "rgb", value: s });
|
|
1715
1873
|
}, value: e }) }),
|
|
1716
|
-
/* @__PURE__ */
|
|
1874
|
+
/* @__PURE__ */ h(R, { style: { flex: "0 0 52px" }, children: [
|
|
1717
1875
|
/* @__PURE__ */ n(
|
|
1718
1876
|
x,
|
|
1719
1877
|
{
|
|
1720
1878
|
onChange: (s) => {
|
|
1721
|
-
|
|
1879
|
+
t({ mode: "rgb", value: { ...e, a: s } });
|
|
1722
1880
|
},
|
|
1723
1881
|
value: e.a,
|
|
1724
1882
|
min: 0,
|
|
@@ -1728,18 +1886,18 @@ const kr = (t) => {
|
|
|
1728
1886
|
allowedUnits: ["%"]
|
|
1729
1887
|
}
|
|
1730
1888
|
),
|
|
1731
|
-
/* @__PURE__ */ n(
|
|
1889
|
+
/* @__PURE__ */ n(W, { children: "%" })
|
|
1732
1890
|
] })
|
|
1733
1891
|
] });
|
|
1734
|
-
},
|
|
1735
|
-
const { colorsByModel:
|
|
1736
|
-
|
|
1892
|
+
}, Eo = () => {
|
|
1893
|
+
const { colorsByModel: r, onColorChange: t } = k("ColorPicker.RGBA"), e = r.rgb, o = (a) => (s) => {
|
|
1894
|
+
t({ mode: "rgb", value: { ...e, [a]: s } });
|
|
1737
1895
|
};
|
|
1738
|
-
return /* @__PURE__ */
|
|
1739
|
-
/* @__PURE__ */ n(
|
|
1896
|
+
return /* @__PURE__ */ h(q, { children: [
|
|
1897
|
+
/* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(
|
|
1740
1898
|
x,
|
|
1741
1899
|
{
|
|
1742
|
-
onChange:
|
|
1900
|
+
onChange: o("r"),
|
|
1743
1901
|
value: e.r,
|
|
1744
1902
|
min: 0,
|
|
1745
1903
|
max: 1,
|
|
@@ -1747,10 +1905,10 @@ const kr = (t) => {
|
|
|
1747
1905
|
precision: 0
|
|
1748
1906
|
}
|
|
1749
1907
|
) }),
|
|
1750
|
-
/* @__PURE__ */ n(
|
|
1908
|
+
/* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(
|
|
1751
1909
|
x,
|
|
1752
1910
|
{
|
|
1753
|
-
onChange:
|
|
1911
|
+
onChange: o("g"),
|
|
1754
1912
|
value: e.g,
|
|
1755
1913
|
min: 0,
|
|
1756
1914
|
max: 1,
|
|
@@ -1758,10 +1916,10 @@ const kr = (t) => {
|
|
|
1758
1916
|
precision: 0
|
|
1759
1917
|
}
|
|
1760
1918
|
) }),
|
|
1761
|
-
/* @__PURE__ */ n(
|
|
1919
|
+
/* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(
|
|
1762
1920
|
x,
|
|
1763
1921
|
{
|
|
1764
|
-
onChange:
|
|
1922
|
+
onChange: o("b"),
|
|
1765
1923
|
value: e.b,
|
|
1766
1924
|
min: 0,
|
|
1767
1925
|
max: 1,
|
|
@@ -1769,11 +1927,11 @@ const kr = (t) => {
|
|
|
1769
1927
|
precision: 0
|
|
1770
1928
|
}
|
|
1771
1929
|
) }),
|
|
1772
|
-
/* @__PURE__ */
|
|
1930
|
+
/* @__PURE__ */ h(R, { style: { flex: "0 0 52px" }, children: [
|
|
1773
1931
|
/* @__PURE__ */ n(
|
|
1774
1932
|
x,
|
|
1775
1933
|
{
|
|
1776
|
-
onChange:
|
|
1934
|
+
onChange: o("a"),
|
|
1777
1935
|
value: e.a,
|
|
1778
1936
|
min: 0,
|
|
1779
1937
|
max: 1,
|
|
@@ -1782,22 +1940,22 @@ const kr = (t) => {
|
|
|
1782
1940
|
allowedUnits: ["%"]
|
|
1783
1941
|
}
|
|
1784
1942
|
),
|
|
1785
|
-
/* @__PURE__ */ n(
|
|
1943
|
+
/* @__PURE__ */ n(W, { children: "%" })
|
|
1786
1944
|
] })
|
|
1787
1945
|
] });
|
|
1788
|
-
},
|
|
1789
|
-
const { colorsByModel:
|
|
1790
|
-
|
|
1946
|
+
}, Lo = () => {
|
|
1947
|
+
const { colorsByModel: r, onColorChange: t } = k("ColorPicker.HSVA"), e = r.hsv, o = (a) => (s) => {
|
|
1948
|
+
t({ mode: "hsv", value: { ...e, [a]: s } });
|
|
1791
1949
|
};
|
|
1792
|
-
return /* @__PURE__ */
|
|
1793
|
-
/* @__PURE__ */ n(
|
|
1794
|
-
/* @__PURE__ */ n(
|
|
1795
|
-
/* @__PURE__ */ n(
|
|
1796
|
-
/* @__PURE__ */
|
|
1950
|
+
return /* @__PURE__ */ h(q, { children: [
|
|
1951
|
+
/* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(x, { onChange: o("h"), value: e.h, min: 0, max: 360, precision: 0 }) }),
|
|
1952
|
+
/* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(x, { onChange: o("s"), value: e.s, min: 0, max: 100, precision: 0 }) }),
|
|
1953
|
+
/* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(x, { onChange: o("v"), value: e.v, min: 0, max: 100, precision: 0 }) }),
|
|
1954
|
+
/* @__PURE__ */ h(R, { style: { flex: "0 0 52px" }, children: [
|
|
1797
1955
|
/* @__PURE__ */ n(
|
|
1798
1956
|
x,
|
|
1799
1957
|
{
|
|
1800
|
-
onChange:
|
|
1958
|
+
onChange: o("a"),
|
|
1801
1959
|
value: e.a,
|
|
1802
1960
|
min: 0,
|
|
1803
1961
|
max: 1,
|
|
@@ -1806,22 +1964,22 @@ const kr = (t) => {
|
|
|
1806
1964
|
allowedUnits: ["%"]
|
|
1807
1965
|
}
|
|
1808
1966
|
),
|
|
1809
|
-
/* @__PURE__ */ n(
|
|
1967
|
+
/* @__PURE__ */ n(W, { children: "%" })
|
|
1810
1968
|
] })
|
|
1811
1969
|
] });
|
|
1812
|
-
},
|
|
1813
|
-
const { colorsByModel:
|
|
1814
|
-
|
|
1970
|
+
}, Vo = () => {
|
|
1971
|
+
const { colorsByModel: r, onColorChange: t } = k("ColorPicker.HSLA"), e = r.hsl, o = (a) => (s) => {
|
|
1972
|
+
t({ mode: "hsl", value: { ...e, [a]: s } });
|
|
1815
1973
|
};
|
|
1816
|
-
return /* @__PURE__ */
|
|
1817
|
-
/* @__PURE__ */ n(
|
|
1818
|
-
/* @__PURE__ */ n(
|
|
1819
|
-
/* @__PURE__ */ n(
|
|
1820
|
-
/* @__PURE__ */
|
|
1974
|
+
return /* @__PURE__ */ h(q, { children: [
|
|
1975
|
+
/* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(x, { onChange: o("h"), value: e.h, min: 0, max: 360, precision: 0 }) }),
|
|
1976
|
+
/* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(x, { onChange: o("s"), value: e.s, min: 0, max: 100, precision: 0 }) }),
|
|
1977
|
+
/* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(x, { onChange: o("l"), value: e.l, min: 0, max: 100, precision: 0 }) }),
|
|
1978
|
+
/* @__PURE__ */ h(R, { style: { flex: "0 0 52px" }, children: [
|
|
1821
1979
|
/* @__PURE__ */ n(
|
|
1822
1980
|
x,
|
|
1823
1981
|
{
|
|
1824
|
-
onChange:
|
|
1982
|
+
onChange: o("a"),
|
|
1825
1983
|
value: e.a,
|
|
1826
1984
|
min: 0,
|
|
1827
1985
|
max: 1,
|
|
@@ -1830,39 +1988,39 @@ const kr = (t) => {
|
|
|
1830
1988
|
allowedUnits: ["%"]
|
|
1831
1989
|
}
|
|
1832
1990
|
),
|
|
1833
|
-
/* @__PURE__ */ n(
|
|
1991
|
+
/* @__PURE__ */ n(W, { children: "%" })
|
|
1834
1992
|
] })
|
|
1835
1993
|
] });
|
|
1836
|
-
},
|
|
1994
|
+
}, ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1837
1995
|
__proto__: null,
|
|
1838
|
-
Alpha:
|
|
1839
|
-
Area:
|
|
1840
|
-
Hue:
|
|
1841
|
-
Input:
|
|
1842
|
-
Root:
|
|
1843
|
-
useColorPickerContext:
|
|
1844
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1845
|
-
const { className: e, ...
|
|
1846
|
-
return /* @__PURE__ */ n(Ne.Root, { ref:
|
|
1847
|
-
}),
|
|
1848
|
-
const { className: e, children:
|
|
1849
|
-
return /* @__PURE__ */
|
|
1850
|
-
/* @__PURE__ */ n(
|
|
1851
|
-
|
|
1996
|
+
Alpha: Mo,
|
|
1997
|
+
Area: $o,
|
|
1998
|
+
Hue: To,
|
|
1999
|
+
Input: zo,
|
|
2000
|
+
Root: mo,
|
|
2001
|
+
useColorPickerContext: k
|
|
2002
|
+
}, Symbol.toStringTag, { value: "Module" })), at = i.forwardRef((r, t) => {
|
|
2003
|
+
const { className: e, ...o } = r;
|
|
2004
|
+
return /* @__PURE__ */ n(Ne.Root, { ref: t, className: p(e, "fp-CollapsibleRoot"), ...o });
|
|
2005
|
+
}), nt = i.forwardRef((r, t) => {
|
|
2006
|
+
const { className: e, children: o, ...a } = r;
|
|
2007
|
+
return /* @__PURE__ */ h(Ne.Trigger, { ref: t, className: p(e, "fp-CollapsibleTrigger"), ...a, children: [
|
|
2008
|
+
/* @__PURE__ */ n(we, { viewBox: "4 4 16 16", size: "4", className: "fp-CollapsibleIndicator" }),
|
|
2009
|
+
o
|
|
1852
2010
|
] });
|
|
1853
|
-
}),
|
|
1854
|
-
const { className: e, ...
|
|
1855
|
-
return /* @__PURE__ */ n(Ne.Content, { ref:
|
|
2011
|
+
}), st = i.forwardRef((r, t) => {
|
|
2012
|
+
const { className: e, ...o } = r;
|
|
2013
|
+
return /* @__PURE__ */ n(Ne.Content, { ref: t, className: p(e, "fp-CollapsibleContent"), ...o });
|
|
1856
2014
|
});
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
const
|
|
2015
|
+
at.displayName = "Collapsible.Root";
|
|
2016
|
+
nt.displayName = "Collapsible.Trigger";
|
|
2017
|
+
st.displayName = "Collapsible.Content";
|
|
2018
|
+
const pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1861
2019
|
__proto__: null,
|
|
1862
|
-
Content:
|
|
1863
|
-
Root:
|
|
1864
|
-
Trigger:
|
|
1865
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2020
|
+
Content: st,
|
|
2021
|
+
Root: at,
|
|
2022
|
+
Trigger: nt
|
|
2023
|
+
}, Symbol.toStringTag, { value: "Module" })), Oo = V("fp-Button", {
|
|
1866
2024
|
variants: {
|
|
1867
2025
|
variant: {
|
|
1868
2026
|
primary: "fp-variant-primary",
|
|
@@ -1884,47 +2042,47 @@ const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1884
2042
|
variant: "secondary",
|
|
1885
2043
|
size: "small"
|
|
1886
2044
|
}
|
|
1887
|
-
}),
|
|
1888
|
-
const { className: e, variant:
|
|
1889
|
-
return /* @__PURE__ */ n("button", { ref:
|
|
2045
|
+
}), Bo = i.forwardRef((r, t) => {
|
|
2046
|
+
const { className: e, variant: o, size: a, fullWidth: s, ...l } = r;
|
|
2047
|
+
return /* @__PURE__ */ n("button", { ref: t, className: Oo({ className: e, variant: o, size: a, fullWidth: s }), ...l });
|
|
1890
2048
|
});
|
|
1891
|
-
|
|
1892
|
-
const
|
|
1893
|
-
const { className: e, ...
|
|
1894
|
-
return /* @__PURE__ */ n(
|
|
2049
|
+
Bo.displayName = "Button";
|
|
2050
|
+
const Fo = i.forwardRef((r, t) => {
|
|
2051
|
+
const { className: e, ...o } = r;
|
|
2052
|
+
return /* @__PURE__ */ n(ut, { className: p(e, "fp-textarea"), ref: t, ...o });
|
|
1895
2053
|
});
|
|
1896
|
-
|
|
1897
|
-
const
|
|
1898
|
-
const { className: e, ...
|
|
1899
|
-
return /* @__PURE__ */ n(Ae.Root, { ref:
|
|
2054
|
+
Fo.displayName = "Textarea";
|
|
2055
|
+
const jo = i.forwardRef((r, t) => {
|
|
2056
|
+
const { className: e, ...o } = r;
|
|
2057
|
+
return /* @__PURE__ */ n(Ae.Root, { ref: t, className: p(e, "fp-switchRoot"), ...o, children: /* @__PURE__ */ n(Ae.Thumb, { ref: t, className: p(e, "fp-switchThumb") }) });
|
|
1900
2058
|
});
|
|
1901
|
-
|
|
2059
|
+
jo.displayName = "Switch";
|
|
1902
2060
|
export {
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
2061
|
+
la as AlertDialog,
|
|
2062
|
+
Bo as Button,
|
|
2063
|
+
ea as Checkbox,
|
|
2064
|
+
pa as Collapsible,
|
|
2065
|
+
ca as ColorPicker,
|
|
2066
|
+
oa as ContextMenu,
|
|
2067
|
+
sa as Dialog,
|
|
2068
|
+
ta as DropdownMenu,
|
|
2069
|
+
ot as Flex,
|
|
1912
2070
|
Te as IconButton,
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
2071
|
+
Zr as Input,
|
|
2072
|
+
ye as Label,
|
|
2073
|
+
bt as Link,
|
|
2074
|
+
ft as Paragraph,
|
|
2075
|
+
na as Popover,
|
|
2076
|
+
Qo as RadioGroup,
|
|
2077
|
+
Jo as SegmentedControl,
|
|
2078
|
+
ra as Select,
|
|
2079
|
+
De as Slider,
|
|
2080
|
+
jo as Switch,
|
|
2081
|
+
Zo as Tabs,
|
|
1924
2082
|
F as Text,
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
2083
|
+
Fo as Textarea,
|
|
2084
|
+
Dr as Tooltip,
|
|
2085
|
+
aa as TooltipProvider,
|
|
2086
|
+
ia as ValueField,
|
|
2087
|
+
j as createIcon
|
|
1930
2088
|
};
|