figma-kit 1.0.0-beta.16 → 1.0.0-beta.18

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.mjs CHANGED
@@ -1,24 +1,24 @@
1
- import { jsx as n, jsxs as b, Fragment as Ve } from "react/jsx-runtime";
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 K, useId as io, useState as ee, useRef as H, useMemo as Oe, useEffect as _e } from "react";
3
+ import i, { useCallback as K, useId as ct, useState as ee, useRef as G, useMemo as Oe, useEffect as _e } from "react";
4
4
  import * as ie 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 Ge from "@radix-ui/react-radio-group";
9
- import * as y from "@radix-ui/react-select";
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 R from "@radix-ui/react-context-menu";
11
+ import * as y from "@radix-ui/react-context-menu";
12
12
  import * as U from "@radix-ui/react-popover";
13
- import * as j from "@radix-ui/react-tooltip";
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 J, round as z, clamp as I, isDeepEqual as ze, pick as co } from "remeda";
17
- import po from "@emmetio/math-expression";
18
- import He from "merge-props";
19
- import * as ge from "@radix-ui/react-slider";
16
+ import { pipe as J, 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 uo from "react-textarea-autosize";
21
+ import ut from "react-textarea-autosize";
22
22
  import * as Ae from "@radix-ui/react-switch";
23
23
  /**
24
24
  * @license
@@ -26,44 +26,44 @@ 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 fo(t, o) {
30
- typeof t == "function" ? t(o) : t != null && (t.current = o);
29
+ function gt(r, t) {
30
+ typeof r == "function" ? r(t) : r != null && (r.current = t);
31
31
  }
32
- function je(...t) {
33
- return (o) => t.forEach((e) => fo(e, o));
32
+ function He(...r) {
33
+ return (t) => r.forEach((e) => gt(e, t));
34
34
  }
35
- function ce(...t) {
36
- return A.useCallback(je(...t), t);
35
+ function ce(...r) {
36
+ return A.useCallback(He(...r), r);
37
37
  }
38
- const Ue = i.forwardRef((t, o) => {
39
- const { className: e, ...r } = t;
40
- return /* @__PURE__ */ n(ie.Root, { ref: o, className: p(e, "fp-TabsRoot"), ...r });
41
- }), We = i.forwardRef((t, o) => {
42
- const { className: e, ...r } = t;
43
- return /* @__PURE__ */ n(ie.List, { ref: o, className: p(e, "fp-TabsList"), ...r });
44
- }), qe = i.forwardRef((t, o) => {
45
- const { className: e, ...r } = t, a = mo(), s = je(o, a);
46
- return /* @__PURE__ */ n(ie.Trigger, { ref: s, className: p(e, "fp-TabsTrigger"), ...r });
38
+ const Ue = i.forwardRef((r, t) => {
39
+ const { className: e, ...o } = r;
40
+ return /* @__PURE__ */ n(ie.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(ie.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(ie.Trigger, { ref: s, className: p(e, "fp-TabsTrigger"), ...o });
47
47
  });
48
- function mo() {
49
- return K((t) => {
50
- t !== null && (t.style.width = t.getBoundingClientRect().width + "px");
48
+ function mt() {
49
+ return K((r) => {
50
+ r !== null && (r.style.width = r.getBoundingClientRect().width + "px");
51
51
  }, []);
52
52
  }
53
- const Xe = i.forwardRef((t, o) => {
54
- const { className: e, ...r } = t;
55
- return /* @__PURE__ */ n(ie.Content, { ref: o, className: p(e, "fp-TabsContent"), ...r });
53
+ const Xe = i.forwardRef((r, t) => {
54
+ const { className: e, ...o } = r;
55
+ return /* @__PURE__ */ n(ie.Content, { ref: t, className: p(e, "fp-TabsContent"), ...o });
56
56
  });
57
57
  Ue.displayName = "Tabs.Root";
58
- We.displayName = "Tabs.List";
59
- qe.displayName = "Tabs.Trigger";
58
+ qe.displayName = "Tabs.List";
59
+ We.displayName = "Tabs.Trigger";
60
60
  Xe.displayName = "Tabs.Content";
61
- const Kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
61
+ const Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
62
62
  __proto__: null,
63
63
  Content: Xe,
64
- List: We,
64
+ List: qe,
65
65
  Root: Ue,
66
- Trigger: qe
66
+ Trigger: We
67
67
  }, Symbol.toStringTag, { value: "Module" })), pe = V("fp-Text", {
68
68
  variants: {
69
69
  size: {
@@ -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((t, o) => {
88
- const { asChild: e, className: r, size: a, weight: s, align: l, block: c, ...d } = t;
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: o,
92
+ ref: t,
93
93
  className: pe({
94
- className: r,
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 Re = i.forwardRef((t, o) => {
106
- const { className: e, size: r, weight: a, align: s, block: l, ...c } = t;
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: o,
110
+ ref: t,
111
111
  className: pe({
112
112
  className: e,
113
- size: r,
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
- Re.displayName = "Label";
123
- const go = i.forwardRef((t, o) => {
124
- const { className: e, size: r, weight: a, align: s, block: l, ...c } = t;
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: o,
128
+ ref: t,
129
129
  className: pe({
130
130
  className: e,
131
- size: r,
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
- go.displayName = "Paragraph";
141
- const ho = i.forwardRef((t, o) => {
142
- const { asChild: e, className: r, size: a, weight: s, align: l, block: c, ...d } = t;
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: o,
146
+ ref: t,
147
147
  className: p(
148
148
  pe({
149
- className: r,
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
- ho.displayName = "Link";
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(t) {
169
- const o = A.useRef(t);
168
+ function Ke(r) {
169
+ const t = A.useRef(r);
170
170
  return A.useEffect(() => {
171
- o.current = t;
171
+ t.current = r;
172
172
  }), A.useMemo(() => (...e) => {
173
- var r;
174
- return (r = o.current) == null ? void 0 : r.call(o, ...e);
173
+ var o;
174
+ return (o = t.current) == null ? void 0 : o.call(t, ...e);
175
175
  }, []);
176
176
  }
177
- function be({ prop: t, defaultProp: o, onChange: e = () => {
177
+ function he({ prop: r, defaultProp: t, onChange: e = () => {
178
178
  } }) {
179
- const [r, a] = bo({ defaultProp: o, onChange: e }), s = t !== void 0, l = s ? t : r, c = Ke(e), d = A.useCallback(
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 g = typeof u == "function" ? u(t) : u;
183
- g !== t && c(g);
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, t, a, c]
187
+ [s, r, a, c]
188
188
  );
189
189
  return [l, d];
190
190
  }
191
- function bo({ defaultProp: t, onChange: o }) {
192
- const e = A.useState(t), [r] = e, a = A.useRef(r), s = Ke(o);
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 !== r && (s(r), a.current = r);
195
- }, [r, a, s]), e;
194
+ a.current !== o && (s(o), a.current = o);
195
+ }, [o, a, s]), e;
196
196
  }
197
- const Ye = i.forwardRef((t, o) => {
198
- const { className: e, fullWidth: r, value: a, defaultValue: s, onValueChange: l, ...c } = t, [d, u] = be({
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: o,
207
- className: p(e, "fp-SegmentedControlRoot", { "fp-full-width": r }),
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: (f) => {
212
- f && u(f);
211
+ onValueChange: (g) => {
212
+ g && u(g);
213
213
  }
214
214
  }
215
215
  );
216
- }), Ze = i.forwardRef((t, o) => {
217
- const { className: e, ...r } = t;
218
- return /* @__PURE__ */ n(Be.Item, { ref: o, className: p(e, "fp-SegmentedControlItem"), ...r });
219
- }), Je = i.forwardRef((t, o) => {
220
- const { className: e, ...r } = t;
221
- return /* @__PURE__ */ n(F, { ref: o, className: p(e, "fp-SegmentedControlText"), ...r });
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 Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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 de(t, o) {
233
- const e = i.createContext(o);
234
- function r(s) {
232
+ function de(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 (o !== void 0)
243
- return o;
244
- throw new Error(`\`${s}\` must be used within \`${t}\``);
242
+ if (t !== void 0)
243
+ return t;
244
+ throw new Error(`\`${s}\` must be used within \`${r}\``);
245
245
  }
246
- return r.displayName = t + "Provider", [r, a];
246
+ return o.displayName = r + "Provider", [o, a];
247
247
  }
248
- const [Co, No] = de("RadioGroup"), Qe = i.forwardRef((t, o) => {
249
- const { orientation: e = "horizontal", disabled: r, className: a, ...s } = t;
250
- return /* @__PURE__ */ n(Co, { orientation: e, disabled: r, children: /* @__PURE__ */ n(
251
- Ge.Root,
248
+ const [Ct, Nt] = de("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: o,
253
+ ref: t,
254
254
  orientation: e,
255
- disabled: r,
255
+ disabled: o,
256
256
  className: p(a, "fp-RadioGroupRoot"),
257
257
  ...s
258
258
  }
259
259
  ) });
260
- }), et = i.forwardRef((t, o) => {
261
- const { className: e, ...r } = t;
262
- return /* @__PURE__ */ n(Ge.Item, { ref: o, className: p(e, "fp-RadioGroupItem"), ...r });
263
- }), tt = i.forwardRef((t, o) => {
264
- const { orientation: e, disabled: r } = No("Label"), { className: a, ...s } = t;
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
- Re,
266
+ ye,
267
267
  {
268
- ref: o,
268
+ ref: t,
269
269
  className: p(a, "fp-RadioGroupLabel"),
270
270
  "data-orientation": e,
271
- "data-disabled": r ? "" : void 0,
271
+ "data-disabled": o ? "" : void 0,
272
272
  ...s
273
273
  }
274
274
  );
275
275
  });
276
276
  Qe.displayName = "RadioGroup.Root";
277
- et.displayName = "RadioGroup.Item";
278
- tt.displayName = "RadioGroup.Label";
279
- const Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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: et,
282
- Label: tt,
281
+ Item: er,
282
+ Label: rr,
283
283
  Root: Qe
284
- }, Symbol.toStringTag, { value: "Module" })), Ro = "6", yo = "0 0 24 24", wo = V("fp-Icon", {
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: Ro
302
+ size: yt
303
303
  }
304
304
  });
305
- function G(t) {
306
- const { path: o, viewBox: e = yo, displayName: r } = t, a = i.forwardRef((s, l) => {
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: wo({ className: d, size: c }),
314
+ className: Rt({ className: d, size: c }),
315
315
  fill: "none",
316
316
  ...u,
317
- children: o
317
+ children: t
318
318
  }
319
319
  );
320
320
  });
321
- return a.displayName = r || "Icon", a;
321
+ return a.displayName = o || "Icon", a;
322
322
  }
323
- const ot = G({
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
- }), ye = G({
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
- }), vo = G({
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
- }), rt = G({
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
- }), ue = G({
335
+ }), ue = 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
- }), at = G({
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
- }), xo = G({
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
- }), [Po, we] = de("Checkbox"), nt = i.forwardRef((t, o) => {
356
- const { className: e, id: r, ...a } = t, s = io();
357
- return /* @__PURE__ */ n(Po, { id: r ?? s, children: /* @__PURE__ */ n("div", { ref: o, className: p(e, "fp-CheckboxRoot"), ...a }) });
358
- }), st = i.forwardRef((t, o) => {
359
- const { className: e, indeterminate: r, ...a } = t, { id: s } = we("Input"), l = To(r), c = ce(o, l);
360
- return /* @__PURE__ */ b(Ve, { children: [
355
+ }), [Pt, Re] = de("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 = ce(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(lt, {})
373
+ /* @__PURE__ */ n(lr, {})
374
374
  ] });
375
- }), lt = () => /* @__PURE__ */ b("span", { className: "fp-CheckboxIndicator", "aria-hidden": "true", children: [
375
+ }), lr = () => /* @__PURE__ */ h("span", { className: "fp-CheckboxIndicator", "aria-hidden": "true", children: [
376
376
  /* @__PURE__ */ n(ue, { className: "fp-CheckboxCheckmark", size: "4" }),
377
- /* @__PURE__ */ n(xo, { className: "fp-CheckboxIndeterminate", size: "4" })
378
- ] }), it = i.forwardRef((t, o) => {
379
- const { className: e, ...r } = t, { id: a } = we("Input");
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
- Re,
381
+ ye,
382
382
  {
383
383
  "aria-hidden": "true",
384
- ref: o,
384
+ ref: t,
385
385
  className: p(e, "fp-CheckboxLabel"),
386
386
  htmlFor: a,
387
387
  id: `checkbox-label-${a}`,
388
- ...r
388
+ ...o
389
389
  }
390
390
  );
391
- }), ct = i.forwardRef((t, o) => {
392
- const { className: e, ...r } = t, { id: a } = we("Description");
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: o,
397
+ ref: t,
398
398
  className: p(e, "fp-CheckboxDescription"),
399
399
  id: `checkbox-description-${a}`,
400
- ...r
400
+ ...o
401
401
  }
402
402
  );
403
403
  });
404
- function To(t) {
404
+ function Tt(r) {
405
405
  return K(
406
- (o) => {
407
- o && (o.indeterminate = !!t);
406
+ (t) => {
407
+ t && (t.indeterminate = !!r);
408
408
  },
409
- [t]
409
+ [r]
410
410
  );
411
411
  }
412
- nt.displayName = "Checkbox.Root";
413
- st.displayName = "Checkbox.Input";
414
- lt.displayName = "Checkbox.Indicator";
415
- it.displayName = "Checkbox.Label";
416
- ct.displayName = "Checkbox.Description";
417
- const Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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: ct,
420
- Input: st,
421
- Label: it,
422
- Root: nt
423
- }, Symbol.toStringTag, { value: "Module" })), pt = y.Root, So = y.Arrow, ve = i.forwardRef((t, o) => {
424
- const { placeholder: e, className: r, ...a } = t;
425
- return /* @__PURE__ */ b(y.Trigger, { ref: o, ...a, className: p(r, "fp-SelectTrigger"), children: [
426
- /* @__PURE__ */ n(y.Value, { placeholder: e }),
427
- /* @__PURE__ */ n(y.Icon, { className: "fp-SelectTriggerIcon", children: /* @__PURE__ */ n(rt, {}) })
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((t, o) => {
430
- const { children: e, portal: r = !1, className: a, ...s } = t, l = r ? y.Portal : i.Fragment;
431
- return /* @__PURE__ */ n(l, { children: /* @__PURE__ */ b(y.Content, { ref: o, ...s, className: p(a, "fp-MenuContent"), children: [
432
- /* @__PURE__ */ n(y.ScrollUpButton, { className: "fp-SelectScrollUpButton", children: /* @__PURE__ */ n(vo, {}) }),
433
- /* @__PURE__ */ n(y.Viewport, { children: e }),
434
- /* @__PURE__ */ n(y.ScrollDownButton, { className: "fp-SelectScrollDownButton", children: /* @__PURE__ */ n(rt, {}) })
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((t, o) => {
437
- const { children: e, className: r, ...a } = t;
438
- return /* @__PURE__ */ b(y.Item, { ref: o, ...a, className: p(r, "fp-MenuItem fp-MenuCheckboxItem"), children: [
439
- /* @__PURE__ */ n(y.ItemIndicator, { className: "fp-MenuItemIndicator", children: /* @__PURE__ */ n(ue, { size: "4" }) }),
440
- /* @__PURE__ */ n(y.ItemText, { children: e })
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(ue, { size: "4" }) }),
440
+ /* @__PURE__ */ n(w.ItemText, { children: e })
441
441
  ] });
442
- }), dt = i.forwardRef((t, o) => {
443
- const { className: e, ...r } = t;
444
- return /* @__PURE__ */ n(y.Separator, { ref: o, className: p(e, "fp-MenuSeparator"), ...r });
445
- }), ut = i.forwardRef((t, o) => {
446
- const { className: e, ...r } = t;
447
- return /* @__PURE__ */ n(y.Label, { ref: o, className: p(e, "fp-MenuLabel"), ...r });
448
- }), ft = i.forwardRef((t, o) => {
449
- const { className: e, ...r } = t;
450
- return /* @__PURE__ */ n(y.Group, { ref: o, className: p(e, "fp-MenuGroup"), ...r });
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
- dt.displayName = "Select.Separator";
456
- ft.displayName = "Select.Group";
457
- ut.displayName = "Select.Label";
458
- const Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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: So,
460
+ Arrow: St,
461
461
  Content: xe,
462
- Group: ft,
462
+ Group: gr,
463
463
  Item: Pe,
464
- Label: ut,
465
- Root: pt,
466
- Separator: dt,
464
+ Label: ur,
465
+ Root: pr,
466
+ Separator: dr,
467
467
  Trigger: ve
468
- }, Symbol.toStringTag, { value: "Module" })), Mo = N.Root, Io = N.Trigger, $o = N.Sub, Do = N.RadioGroup, mt = i.forwardRef((t, o) => {
469
- const { children: e, className: r, ...a } = t;
470
- return /* @__PURE__ */ n(N.Portal, { children: /* @__PURE__ */ n(N.Content, { ref: o, sideOffset: 6, ...a, className: p(r, "fp-MenuContent"), children: e }) });
471
- }), gt = i.forwardRef((t, o) => {
472
- const { className: e, ...r } = t;
473
- return /* @__PURE__ */ n(N.Item, { ref: o, ...r, className: p(e, "fp-MenuItem") });
474
- }), ht = i.forwardRef((t, o) => {
475
- const { className: e, ...r } = t;
476
- return /* @__PURE__ */ n(N.Separator, { ref: o, className: p(e, "fp-MenuSeparator"), ...r });
477
- }), bt = i.forwardRef((t, o) => {
478
- const { className: e, ...r } = t;
479
- return /* @__PURE__ */ n(N.Label, { ref: o, className: p(e, "fp-MenuLabel"), ...r });
480
- }), Ct = i.forwardRef((t, o) => {
481
- const { className: e, ...r } = t;
482
- return /* @__PURE__ */ n(N.Group, { ref: o, className: p(e, "fp-MenuGroup"), ...r });
483
- }), Nt = i.forwardRef((t, o) => {
484
- const { children: e, className: r, ...a } = t;
485
- return /* @__PURE__ */ b(N.SubTrigger, { ref: o, ...a, className: p(r, "fp-MenuItem"), children: [
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(ye, { className: "fp-MenuSubtriggerCaret" })
487
+ /* @__PURE__ */ n(we, { className: "fp-MenuSubtriggerCaret" })
488
488
  ] });
489
- }), Rt = i.forwardRef((t, o) => {
490
- const { className: e, ...r } = t;
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: o,
495
- ...r,
494
+ ref: t,
495
+ ...o,
496
496
  className: p(e, "fp-MenuContent"),
497
497
  sideOffset: 12
498
498
  }
499
499
  ) });
500
- }), yt = i.forwardRef((t, o) => {
501
- const { children: e, className: r, ...a } = t;
502
- return /* @__PURE__ */ b(N.CheckboxItem, { ref: o, ...a, className: p(r, "fp-MenuItem fp-MenuCheckboxItem"), children: [
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
503
  /* @__PURE__ */ n(N.ItemIndicator, { className: "fp-MenuItemIndicator", children: /* @__PURE__ */ n(ue, { size: "4" }) }),
504
504
  e
505
505
  ] });
506
- }), wt = i.forwardRef((t, o) => {
507
- const { children: e, className: r, ...a } = t;
508
- return /* @__PURE__ */ b(N.RadioItem, { ref: o, ...a, className: p(r, "fp-MenuItem fp-MenuRadioItem"), children: [
509
- /* @__PURE__ */ n(N.ItemIndicator, { className: "fp-MenuItemIndicator", children: /* @__PURE__ */ n(at, { size: "4" }) }),
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
- mt.displayName = "DropdownMenu.Content";
514
- gt.displayName = "DropdownMenu.Item";
515
- ht.displayName = "DropdownMenu.Separator";
516
- Ct.displayName = "DropdownMenu.Group";
517
- bt.displayName = "DropdownMenu.Label";
518
- Nt.displayName = "DropdownMenu.SubTrigger";
519
- Rt.displayName = "DropdownMenu.SubContent";
520
- yt.displayName = "DropdownMenu.CheckboxItem";
521
- wt.displayName = "DropdownMenu.RadioItem";
522
- const ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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: yt,
525
- Content: mt,
526
- Group: Ct,
527
- Item: gt,
528
- Label: bt,
529
- RadioGroup: Do,
530
- RadioItem: wt,
531
- Root: Mo,
532
- Separator: ht,
533
- Sub: $o,
534
- SubContent: Rt,
535
- SubTrigger: Nt,
536
- Trigger: Io
537
- }, Symbol.toStringTag, { value: "Module" })), ko = R.Root, _o = R.Trigger, zo = R.Sub, Ao = R.RadioGroup, vt = i.forwardRef((t, o) => {
538
- const { children: e, className: r, ...a } = t;
539
- return /* @__PURE__ */ n(R.Portal, { children: /* @__PURE__ */ n(R.Content, { ref: o, ...a, className: p(r, "fp-MenuContent"), children: e }) });
540
- }), xt = i.forwardRef((t, o) => {
541
- const { className: e, ...r } = t;
542
- return /* @__PURE__ */ n(R.Item, { ref: o, ...r, className: p(e, "fp-MenuItem") });
543
- }), Pt = i.forwardRef((t, o) => {
544
- const { className: e, ...r } = t;
545
- return /* @__PURE__ */ n(R.Separator, { ref: o, className: p(e, "fp-MenuSeparator"), ...r });
546
- }), Tt = i.forwardRef((t, o) => {
547
- const { className: e, ...r } = t;
548
- return /* @__PURE__ */ n(R.Label, { ref: o, className: p(e, "fp-MenuLabel"), ...r });
549
- }), St = i.forwardRef((t, o) => {
550
- const { className: e, ...r } = t;
551
- return /* @__PURE__ */ n(R.Group, { ref: o, className: p(e, "fp-MenuGroup"), ...r });
552
- }), Mt = i.forwardRef((t, o) => {
553
- const { children: e, className: r, ...a } = t;
554
- return /* @__PURE__ */ b(R.SubTrigger, { ref: o, ...a, className: p(r, "fp-MenuItem"), children: [
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(ye, { className: "fp-MenuSubtriggerCaret" })
556
+ /* @__PURE__ */ n(we, { className: "fp-MenuSubtriggerCaret" })
557
557
  ] });
558
- }), It = i.forwardRef((t, o) => {
559
- const { className: e, ...r } = t;
560
- return /* @__PURE__ */ n(R.Portal, { children: /* @__PURE__ */ n(
561
- R.SubContent,
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: o,
564
- ...r,
563
+ ref: t,
564
+ ...o,
565
565
  className: p(e, "fp-MenuContent"),
566
566
  sideOffset: 12
567
567
  }
568
568
  ) });
569
- }), $t = i.forwardRef((t, o) => {
570
- const { children: e, className: r, ...a } = t;
571
- return /* @__PURE__ */ b(R.CheckboxItem, { ref: o, ...a, className: p(r, "fp-MenuItem fp-MenuCheckboxItem"), children: [
572
- /* @__PURE__ */ n(R.ItemIndicator, { className: "fp-MenuItemIndicator", children: /* @__PURE__ */ n(ue, { size: "4" }) }),
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(ue, { size: "4" }) }),
573
573
  e
574
574
  ] });
575
- }), Dt = i.forwardRef((t, o) => {
576
- const { children: e, className: r, ...a } = t;
577
- return /* @__PURE__ */ b(R.RadioItem, { ref: o, ...a, className: p(r, "fp-MenuItem fp-MenuRadioItem"), children: [
578
- /* @__PURE__ */ n(R.ItemIndicator, { className: "fp-MenuItemIndicator", children: /* @__PURE__ */ n(at, { size: "4" }) }),
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
- vt.displayName = "ContextMenu.Content";
583
- xt.displayName = "ContextMenu.Item";
584
- Pt.displayName = "ContextMenu.Separator";
585
- Tt.displayName = "ContextMenu.Label";
586
- St.displayName = "ContextMenu.Group";
587
- Mt.displayName = "ContextMenu.SubTrigger";
588
- It.displayName = "ContextMenu.SubContent";
589
- $t.displayName = "ContextMenu.CheckboxItem";
590
- Dt.displayName = "ContextMenu.RadioItem";
591
- const ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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: $t,
594
- Content: vt,
595
- Group: St,
596
- Item: xt,
597
- Label: Tt,
598
- RadioGroup: Ao,
599
- RadioItem: Dt,
600
- Root: ko,
601
- Separator: Pt,
602
- Sub: zo,
603
- SubContent: It,
604
- SubTrigger: Mt,
605
- Trigger: _o
606
- }, Symbol.toStringTag, { value: "Module" })), { TooltipProvider: oa } = j, Eo = i.forwardRef((t, o) => {
607
- const { className: e, ...r } = t;
608
- return /* @__PURE__ */ n(j.Content, { ref: o, className: p(e, "fp-tooltip"), ...r });
609
- }), Lo = (t) => {
610
- const { className: o, ...e } = t;
611
- return /* @__PURE__ */ n(j.Arrow, { className: p(o, "fp-tooltip-arrow"), ...e });
612
- }, kt = i.forwardRef((t, o) => {
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: r,
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: f,
623
- ...g
624
- } = t, v = { open: r, defaultOpen: e, onOpenChange: a, delayDuration: s, disableHoverableContent: l };
625
- return /* @__PURE__ */ b(j.Root, { ...v, children: [
626
- /* @__PURE__ */ n(j.Trigger, { asChild: !0, children: u }),
627
- /* @__PURE__ */ n(j.Portal, { forceMount: d, container: c, children: /* @__PURE__ */ b(Eo, { ref: o, arrowPadding: 10, ...g, children: [
628
- f,
629
- /* @__PURE__ */ n(Lo, {})
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
- kt.displayName = "Tooltip";
634
- const Vo = V("fp-IconButton", {
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((t, o) => {
649
+ }), Te = i.forwardRef((r, t) => {
650
650
  const {
651
651
  className: e,
652
- size: r,
652
+ size: o,
653
653
  activeAppearance: a,
654
654
  "aria-label": s,
655
655
  tooltipContent: l,
656
656
  disableTooltip: c,
657
657
  ...d
658
- } = t, u = /* @__PURE__ */ n(
658
+ } = r, u = /* @__PURE__ */ n(
659
659
  "button",
660
660
  {
661
- ref: o,
662
- className: Vo({ className: e, size: r, activeAppearance: a }),
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(kt, { content: l ?? s, children: u });
667
+ return c ? u : /* @__PURE__ */ n(Dr, { content: l ?? s, children: u });
668
668
  });
669
669
  Te.displayName = "IconButton";
670
- const Se = i.forwardRef((t, o) => {
671
- const { children: e, className: r, ...a } = t;
672
- return /* @__PURE__ */ n("header", { ref: o, className: p(r, "fp-DialogBaseHeader"), ...a, children: e });
673
- }), Me = i.forwardRef((t, o) => {
674
- const { className: e, size: r, ...a } = t;
675
- return /* @__PURE__ */ n("div", { ref: o, className: Oo({ className: e, size: r }), ...a });
676
- }), Ie = i.forwardRef((t, o) => {
677
- const { className: e, ...r } = t;
678
- return /* @__PURE__ */ n("div", { ref: o, className: p(e, "fp-DialogBaseControls"), ...r });
679
- }), Oo = V("fp-DialogBaseSection", {
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 Bo = U.Root, Fo = U.Anchor, Go = U.Portal, _t = i.forwardRef((t, o) => /* @__PURE__ */ n(U.Trigger, { ref: o, ...t, asChild: !0 })), zt = i.forwardRef((t, o) => {
694
- const { className: e, style: r, width: a, height: s, maxWidth: l, maxHeight: c, ...d } = t;
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: o,
698
+ ref: t,
699
699
  className: p(e, "fp-DialogBaseContent"),
700
- style: { ...r, width: a, height: s, maxWidth: l, maxHeight: c },
700
+ style: { ...o, width: a, height: s, maxWidth: l, maxHeight: c },
701
701
  ...d
702
702
  }
703
703
  );
704
- }), At = i.forwardRef((t, o) => {
705
- const { className: e, ...r } = t;
706
- return /* @__PURE__ */ n(F, { ref: o, className: p(e, "fp-DialogBaseTitle"), weight: "strong", ...r });
707
- }), Et = i.forwardRef((t, o) => {
708
- const { children: e, ...r } = t;
709
- return /* @__PURE__ */ n(U.Close, { ref: o, asChild: !0, ...r, children: e || /* @__PURE__ */ n(Te, { "aria-label": "Close", disableTooltip: !0, children: /* @__PURE__ */ n(ot, {}) }) });
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
- _t.displayName = "Popover.Trigger";
712
- zt.displayName = "Popover.Content";
713
- At.displayName = "Popover.Title";
714
- Et.displayName = "Popover.Close";
715
- const ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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: Fo,
718
- Close: Et,
719
- Content: zt,
717
+ Anchor: Ft,
718
+ Close: Er,
719
+ Content: zr,
720
720
  Controls: Ie,
721
721
  Header: Se,
722
- Portal: Go,
723
- Root: Bo,
722
+ Portal: jt,
723
+ Root: Bt,
724
724
  Section: Me,
725
- Title: At,
726
- Trigger: _t
727
- }, Symbol.toStringTag, { value: "Module" })), Ho = B.Root, jo = B.Portal, Lt = i.forwardRef((t, o) => /* @__PURE__ */ n(B.Trigger, { ref: o, ...t, asChild: !0 })), Uo = V(["fp-DialogBaseContent", "fp-DialogContent"], {
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
- }), Vt = i.forwardRef((t, o) => {
745
- const { children: e, className: r, size: a, placement: s, style: l, width: c, height: d, maxWidth: u, maxHeight: f, ...g } = t;
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: o,
750
- className: Uo({ className: r, size: a, placement: s }),
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: f },
753
- ...g,
752
+ style: { ...l, width: c, height: d, maxWidth: u, maxHeight: g },
753
+ ...f,
754
754
  children: e
755
755
  }
756
756
  );
757
- }), Ot = i.forwardRef((t, o) => {
758
- const { className: e, ...r } = t;
759
- return /* @__PURE__ */ n(B.Overlay, { ref: o, className: p(e, "fp-DialogBaseOverlay"), ...r });
760
- }), Bt = i.forwardRef((t, o) => {
761
- const { children: e, className: r, ...a } = t;
762
- return /* @__PURE__ */ n(B.Title, { ref: o, className: p(r, "fp-DialogBaseTitle"), ...a, asChild: !0, children: /* @__PURE__ */ n(F, { weight: "strong", children: e }) });
763
- }), Ft = i.forwardRef((t, o) => {
764
- const { children: e, ...r } = t;
765
- return /* @__PURE__ */ n(B.Close, { ref: o, asChild: !0, ...r, children: e || /* @__PURE__ */ n(Te, { "aria-label": "Close", disableTooltip: !0, children: /* @__PURE__ */ n(ot, {}) }) });
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
- Lt.displayName = "Dialog.Trigger";
768
- Vt.displayName = "Dialog.Content";
769
- Ot.displayName = "Dialog.Overlay";
770
- Bt.displayName = "Dialog.Title";
771
- Ft.displayName = "Dialog.Close";
772
- const aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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: Ft,
775
- Content: Vt,
774
+ Close: Fr,
775
+ Content: Vr,
776
776
  Controls: Ie,
777
777
  Header: Se,
778
- Overlay: Ot,
779
- Portal: jo,
780
- Root: Ho,
778
+ Overlay: Or,
779
+ Portal: Ht,
780
+ Root: Gt,
781
781
  Section: Me,
782
- Title: Bt,
783
- Trigger: Lt
784
- }, Symbol.toStringTag, { value: "Module" })), Wo = $.Root, qo = $.Portal, Gt = i.forwardRef((t, o) => /* @__PURE__ */ n($.Trigger, { ref: o, ...t, asChild: !0 })), Xo = V(["fp-DialogBaseContent", "fp-AlertDialogContent"], {
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,146 +797,146 @@ const aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
797
797
  size: "2",
798
798
  placement: "top"
799
799
  }
800
- }), Ht = i.forwardRef((t, o) => {
801
- const { className: e, size: r, placement: a, style: s, width: l, height: c, maxWidth: d, maxHeight: u, ...f } = t;
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: o,
806
- className: Xo({ className: e, size: r, placement: a }),
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
- ...f
808
+ ...g
809
809
  }
810
810
  );
811
- }), jt = i.forwardRef((t, o) => {
812
- const { className: e, ...r } = t;
813
- return /* @__PURE__ */ n($.Overlay, { ref: o, className: p(e, "fp-DialogBaseOverlay"), ...r });
814
- }), Ut = i.forwardRef((t, o) => {
815
- const { children: e, className: r, ...a } = t;
816
- return /* @__PURE__ */ n($.Title, { ref: o, className: p(r, "fp-AlertDialogTitle"), ...a, asChild: !0, children: /* @__PURE__ */ n(F, { weight: "strong", children: e }) });
817
- }), Wt = i.forwardRef((t, o) => {
818
- const { children: e, className: r, ...a } = t;
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: o,
823
- className: p(r, "fp-AlertDialogDescription"),
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
- }), qt = i.forwardRef((t, o) => {
830
- const { className: e, ...r } = t;
831
- return /* @__PURE__ */ n("div", { ref: o, className: p(e, "fp-AlertDialogActions"), ...r });
832
- }), Xt = i.forwardRef((t, o) => /* @__PURE__ */ n($.Cancel, { ref: o, asChild: !0, ...t })), Kt = i.forwardRef((t, o) => /* @__PURE__ */ n($.Action, { ref: o, asChild: !0, ...t }));
833
- Gt.displayName = "AlertDialog.Trigger";
834
- Ht.displayName = "AlertDialog.Content";
835
- jt.displayName = "AlertDialog.Overlay";
836
- Ut.displayName = "AlertDialog.Title";
837
- Wt.displayName = "AlertDialog.Description";
838
- qt.displayName = "AlertDialog.Actions";
839
- Xt.displayName = "AlertDialog.Cancel";
840
- Kt.displayName = "AlertDialog.Action";
841
- const na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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: Kt,
844
- Actions: qt,
845
- Cancel: Xt,
846
- Content: Ht,
847
- Description: Wt,
848
- Overlay: jt,
849
- Portal: qo,
850
- Root: Wo,
851
- Title: Ut,
852
- Trigger: Gt
853
- }, Symbol.toStringTag, { value: "Module" })), [Yt, $e] = de(
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] = de(
854
854
  "ValueFieldProvider",
855
855
  null
856
- ), w = i.forwardRef((t, o) => {
857
- const { className: e, disabled: r, ...a } = t, s = $e("Root");
858
- return /* @__PURE__ */ n(Yt, { disabled: r, children: /* @__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: o,
861
+ ref: t,
862
862
  className: p(e, "fp-ValueFieldRoot"),
863
- "data-disabled": r || s != null && s.disabled ? "" : void 0,
863
+ "data-disabled": o || s != null && s.disabled ? "" : void 0,
864
864
  ...a
865
865
  }
866
866
  ) });
867
- }), W = i.forwardRef((t, o) => {
868
- const { className: e, disabled: r, ...a } = t;
869
- return /* @__PURE__ */ n(Yt, { disabled: r, children: /* @__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: o,
872
+ ref: t,
873
873
  className: p(e, "fp-ValueFieldMulti"),
874
- "data-disabled": r ? "" : void 0,
874
+ "data-disabled": o ? "" : void 0,
875
875
  ...a
876
876
  }
877
877
  ) });
878
- }), q = i.forwardRef((t, o) => {
879
- const { className: e, ...r } = t, a = $e("Root");
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: o,
883
+ ref: t,
884
884
  className: p(e, "fp-ValueFieldLabel"),
885
885
  "data-disabled": a != null && a.disabled ? "" : void 0,
886
- ...r
886
+ ...o
887
887
  }
888
888
  );
889
889
  });
890
- w.displayName = "ValueField.Root";
891
- q.displayName = "ValueField.Label";
892
- W.displayName = "ValueField.Multi";
893
- function E(t, o) {
894
- const [e, r] = t, [a, s] = o;
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 === r || a === s ? a : (l - e) / (r - e) * (s - a) + a;
896
+ return e === o || a === s ? a : (l - e) / (o - e) * (s - a) + a;
897
897
  };
898
898
  }
899
- function Ko() {
900
- const [t, o] = ee(!0), e = K(() => {
901
- o(!0);
902
- }, []), r = K(() => {
903
- o(!1);
899
+ function Kt() {
900
+ const [r, t] = ee(!0), e = K(() => {
901
+ t(!0);
902
+ }, []), o = K(() => {
903
+ t(!1);
904
904
  }, []), a = K(
905
905
  (s) => {
906
- t && s.currentTarget.selectionStart === s.currentTarget.selectionEnd && (s.currentTarget.select(), o(!1));
906
+ r && s.currentTarget.selectionStart === s.currentTarget.selectionEnd && (s.currentTarget.select(), t(!1));
907
907
  },
908
- [t]
908
+ [r]
909
909
  );
910
910
  return {
911
- onMouseLeave: r,
911
+ onMouseLeave: o,
912
912
  onMouseUp: a,
913
913
  onFocus: e
914
914
  };
915
915
  }
916
- const Zt = i.forwardRef((t, o) => {
917
- const { type: e = "text", className: r, selectOnClick: a = !1, ...s } = t, l = H(null), c = ce(l, o), { onMouseLeave: d, onMouseUp: u, onFocus: f } = Ko(), g = a ? He({ onMouseLeave: d, onMouseUp: u, onFocus: f }, s) : s;
918
- return /* @__PURE__ */ n("input", { ref: c, type: e, className: p(r, "fp-Input"), ...g });
916
+ const Zr = i.forwardRef((r, t) => {
917
+ const { type: e = "text", className: o, selectOnClick: a = !1, ...s } = r, l = G(null), c = ce(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
- Zt.displayName = "Input";
921
- const Yo = 1, Zo = 10, De = (t) => {
920
+ Zr.displayName = "Input";
921
+ const Yt = 1, Zt = 10, ke = (r) => {
922
922
  const {
923
- className: o,
923
+ className: t,
924
924
  inputRef: e,
925
- value: r,
925
+ value: o,
926
926
  onChange: a,
927
- smallNudge: s = Yo,
928
- bigNudge: l = Zo,
927
+ smallNudge: s = Yt,
928
+ bigNudge: l = Zt,
929
929
  formatter: c,
930
930
  disabled: d,
931
931
  ...u
932
- } = t, f = H(null), g = ce(e, f), [v, T] = ee(null), h = v ?? c.format(r), C = $e("ValueField"), S = (m) => {
933
- const P = c.parse(m, r);
934
- if (m.length === 0 || !P.valid || P.value === r)
932
+ } = r, g = G(null), f = ce(e, g), [v, T] = ee(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 = () => {
938
938
  T(null);
939
- }, te = (m) => {
939
+ }, re = (m) => {
940
940
  T(m.currentTarget.value);
941
941
  }, X = (m) => {
942
942
  const P = m.currentTarget;
@@ -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 oe = c.parse(P.value, r), fe = oe.valid ? oe.value : r, re = m.shiftKey ? l : s, k = m.key === "ArrowUp" ? re : -re, _ = c.getIncrementTargets ? c.getIncrementTargets(P) : null, me = c.incrementBy(fe, k, _);
949
+ const te = c.parse(P.value, o), ge = te.valid ? te.value : o, oe = m.shiftKey ? l : s, D = m.key === "ArrowUp" ? oe : -oe, _ = c.getIncrementTargets ? c.getIncrementTargets(P) : null, me = c.incrementBy(ge, D, _);
950
950
  S(c.format(me)), requestAnimationFrame(() => {
951
951
  if (_ && c.getIncrementSelection) {
952
- const [so, lo] = c.getIncrementSelection(_);
953
- P.setSelectionRange(so, lo);
952
+ const [lt, it] = c.getIncrementSelection(_);
953
+ P.setSelectionRange(lt, it);
954
954
  } else
955
955
  P.select();
956
956
  });
@@ -959,47 +959,47 @@ const Yo = 1, Zo = 10, De = (t) => {
959
959
  S(m.currentTarget.value);
960
960
  };
961
961
  return /* @__PURE__ */ n(
962
- Zt,
962
+ Zr,
963
963
  {
964
- ref: g,
964
+ ref: f,
965
965
  dir: "auto",
966
966
  autoComplete: "off",
967
967
  spellCheck: "false",
968
968
  selectOnClick: !0,
969
- className: p(o, "fp-ValueFieldBase"),
970
- value: h,
971
- onChange: te,
969
+ className: p(t, "fp-ValueFieldBase"),
970
+ value: b,
971
+ onChange: re,
972
972
  disabled: d || (C == null ? void 0 : C.disabled),
973
- ...He(u, { onBlur: O, onKeyDown: X })
973
+ ...Ge(u, { onBlur: O, onKeyDown: X })
974
974
  }
975
975
  );
976
976
  };
977
- De.displayName = "ValueField.Base";
978
- const Jo = 15, x = i.forwardRef((t, o) => {
979
- const { value: e, onChange: r, min: a, max: s, targetRange: l, precision: c, suffix: d, allowedUnits: u, ...f } = t, g = Oe(
980
- () => Qo({ min: a, max: s, precision: c, targetRange: l, suffix: d, allowedUnits: u }),
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(De, { inputRef: o, value: e, onChange: r, formatter: g, ...f });
983
+ return /* @__PURE__ */ n(ke, { inputRef: t, value: e, onChange: o, formatter: f, ...g });
984
984
  });
985
- function Qo(t = {}) {
986
- const { min: o, max: e, targetRange: r, precision: a = Jo, suffix: s, allowedUnits: l = [] } = t, { toDisplayValue: c, fromDisplayValue: d } = er({ min: o, max: e, targetRange: r });
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, f) => {
988
+ parse: (u, g) => {
989
989
  try {
990
990
  return {
991
991
  valid: !0,
992
992
  value: J(
993
993
  u,
994
- (g) => or({
995
- expression: g,
996
- displayValue: c(f),
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: o, max: e })
1002
+ I({ min: t, max: e })
1003
1003
  )
1004
1004
  };
1005
1005
  } catch {
@@ -1008,57 +1008,212 @@ function Qo(t = {}) {
1008
1008
  },
1009
1009
  format: (u) => J(
1010
1010
  u,
1011
- I({ min: o, max: e }),
1011
+ I({ min: t, max: e }),
1012
1012
  c,
1013
1013
  z(a),
1014
- (f) => tr(f, s)
1014
+ (g) => ro(g, s)
1015
1015
  ),
1016
- incrementBy(u, f) {
1017
- return u + d(f);
1016
+ incrementBy(u, g) {
1017
+ return u + d(g);
1018
1018
  }
1019
1019
  };
1020
1020
  }
1021
- function er(t) {
1022
- const { min: o, max: e, targetRange: r } = t;
1023
- if (!r)
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 o != "number" || typeof e != "number")
1028
+ if (typeof t != "number" || typeof e != "number")
1029
1029
  throw Error("'targetRange' requires specifying 'min' and 'max'.");
1030
- if (o === e)
1030
+ if (t === e)
1031
1031
  throw Error("'min' and 'max' cannot be equal.");
1032
1032
  return {
1033
- toDisplayValue: E([o, e], r),
1034
- fromDisplayValue: E(r, [o, e])
1033
+ toDisplayValue: E([t, e], o),
1034
+ fromDisplayValue: E(o, [t, e])
1035
1035
  };
1036
1036
  }
1037
- function tr(t, o) {
1038
- return Number.isNaN(t) ? "" : o ? `${t}${o}` : `${t}`;
1037
+ function ro(r, t) {
1038
+ return Number.isNaN(r) ? "" : t ? `${r}${t}` : `${r}`;
1039
1039
  }
1040
- function or(t) {
1041
- const { displayValue: o, expression: e, suffix: r = "", allowedUnits: a = [] } = t, s = "(\\d*\\.?\\d+)", l = `(?:${[...a, r].join("|")})*`, c = e.replace(new RegExp(`${s}${l}`, "gi"), (u, f) => f).replace(new RegExp(`${l}${s}`, "gi"), (u, f) => f).replace(new RegExp(`${s}%`, "gi"), (u, f) => `(${o}*${f}/100)`).replace(new RegExp(`%${s}`, "gi"), (u, f) => `(${o}*${f}/100)`).replace(new RegExp(`${s}x`, "gi"), (u, f) => `(${o}*${f})`).replace(new RegExp(`x${s}`, "gi"), (u, f) => `(${o}*${f})`).replace(new RegExp("(?<!\\d)x(?!\\d)", "gi"), `${o}`).trim(), d = po(c);
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 Jt = i.forwardRef((t, o) => {
1047
- const { value: e, onChange: r, ignoreAlpha: a = !1, ...s } = t, l = Oe(() => rr({ ignoreAlpha: a }), [a]);
1048
- return /* @__PURE__ */ n(De, { inputRef: o, value: e, onChange: r, formatter: l, ...s });
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 rr(t) {
1051
- const { ignoreAlpha: o } = t;
1198
+ function oo(r) {
1199
+ const { ignoreAlpha: t } = r;
1052
1200
  return {
1053
- parse(e, r) {
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
1211
  value: J(
1057
1212
  e,
1058
- ar,
1059
- (a) => nr(a, r),
1060
- sr,
1061
- (a) => o ? { ...a, a: 1 } : 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,184 +1224,187 @@ 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, r, a) {
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) + r, { min: 0, max: 255 }) / 255 : e.r,
1075
- g: a.g ? I(Math.round(e.g * 255) + r, { min: 0, max: 255 }) / 255 : e.g,
1076
- b: a.b ? I(Math.round(e.b * 255) + r, { min: 0, max: 255 }) / 255 : e.b,
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 r = e.selectionStart, a = e.selectionEnd;
1082
- return r === null || a === null ? null : {
1083
- r: r < 2 || r === 2 && a === 2,
1084
- g: r < 4 && a >= 3 || r === 4 && a === 4,
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 r, a;
1090
- return e ? (e.r ? r = 0 : e.g ? r = 2 : r = 4, e.b ? a = 6 : e.g ? a = 4 : a = 2, [r, a]) : [0, 6];
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 ar(t) {
1249
+ function ao(r) {
1250
+ return Object.keys(Jr).includes(r);
1251
+ }
1252
+ function no(r) {
1095
1253
  var e;
1096
- const o = /[0-9a-f]+/gi;
1097
- return ((e = t.match(o)) == null ? void 0 : e[0]) ?? "";
1254
+ const t = /[0-9a-f]+/gi;
1255
+ return ((e = r.match(t)) == null ? void 0 : e[0]) ?? "";
1098
1256
  }
1099
- function nr(t, o) {
1100
- if (!/^[0-9a-f]{1,8}$/i.test(t))
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 (t.length) {
1260
+ switch (r.length) {
1103
1261
  case 1:
1104
- return t.repeat(6) + ae(o.a);
1262
+ return r.repeat(6) + ae(t.a);
1105
1263
  case 2:
1106
- return t.repeat(3) + ae(o.a);
1264
+ return r.repeat(3) + ae(t.a);
1107
1265
  case 3:
1108
- return t.split("").map((e) => e.repeat(2)).join("") + ae(o.a);
1266
+ return r.split("").map((e) => e.repeat(2)).join("") + ae(t.a);
1109
1267
  case 4:
1110
- return t.slice(0, 3).split("").map((e) => e.repeat(2)).join("") + t[3].repeat(2);
1268
+ return r.slice(0, 3).split("").map((e) => e.repeat(2)).join("") + r[3].repeat(2);
1111
1269
  case 5:
1112
- return t.slice(0, 3).split("").map((e) => e.repeat(2)).join("") + t.slice(-2);
1270
+ return r.slice(0, 3).split("").map((e) => e.repeat(2)).join("") + r.slice(-2);
1113
1271
  case 6:
1114
- return t + ae(o.a);
1272
+ return r + ae(t.a);
1115
1273
  case 7:
1116
- return t.slice(0, 6) + t[6].repeat(2);
1274
+ return r.slice(0, 6) + r[6].repeat(2);
1117
1275
  case 8:
1118
- return t;
1276
+ return r;
1119
1277
  default:
1120
1278
  throw new Error("Invalid hex substring");
1121
1279
  }
1122
1280
  }
1123
- function sr(t) {
1281
+ function lo(r) {
1124
1282
  return {
1125
- r: parseInt(t.substring(0, 2), 16) / 255,
1126
- g: parseInt(t.substring(2, 4), 16) / 255,
1127
- b: parseInt(t.substring(4, 6), 16) / 255,
1128
- a: parseInt(t.substring(6, 8), 16) / 255
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 ae(t) {
1132
- return Math.round(t * 255).toString(16);
1289
+ function ae(r) {
1290
+ return Math.round(r * 255).toString(16);
1133
1291
  }
1134
- const sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1292
+ const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1135
1293
  __proto__: null,
1136
- Hex: Jt,
1137
- Label: q,
1138
- Multi: W,
1294
+ Hex: Qr,
1295
+ Label: W,
1296
+ Multi: q,
1139
1297
  Numeric: x,
1140
- Root: w
1298
+ Root: R
1141
1299
  }, Symbol.toStringTag, { value: "Module" }));
1142
- function ne(t) {
1143
- const o = z(t * 255, 0).toString(16);
1144
- return o.length < 2 ? "0" + o : o;
1300
+ function ne(r) {
1301
+ const t = z(r * 255, 0).toString(16);
1302
+ return t.length < 2 ? "0" + t : t;
1145
1303
  }
1146
- function le({ r: t, g: o, b: e, a: r }) {
1147
- const a = r < 1 ? ne(r) : "";
1148
- return "#" + ne(t) + ne(o) + ne(e) + a;
1304
+ function le({ r, g: t, b: e, a: o }) {
1305
+ const a = o < 1 ? ne(o) : "";
1306
+ return "#" + ne(r) + ne(t) + ne(e) + a;
1149
1307
  }
1150
- function lr(t) {
1151
- return le(Ce(t));
1308
+ function io(r) {
1309
+ return le(Ce(r));
1152
1310
  }
1153
- function ir(t) {
1154
- return le(L(t));
1311
+ function co(r) {
1312
+ return le(L(r));
1155
1313
  }
1156
- function Q({ r: t, g: o, b: e, a: r }) {
1157
- const a = Math.max(t, o, e), s = a - Math.min(t, o, e), l = s ? a === t ? (o - e) / s : a === o ? 2 + (e - t) / s : 4 + (t - o) / s : 0;
1314
+ function Q({ 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: r
1320
+ a: o
1163
1321
  };
1164
1322
  }
1165
- function L({ h: t, s: o, v: e, a: r }) {
1166
- t = t / 360 * 6, o = o / 100, e = e / 100;
1167
- const a = Math.floor(t), s = e * (1 - o), l = e * (1 - (t - a) * o), c = e * (1 - (1 - t + a) * o), d = a % 6;
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: r
1330
+ a: o
1173
1331
  };
1174
1332
  }
1175
- function Qt({ h: t, s: o, l: e, a: r }) {
1176
- return o *= (e < 50 ? e : 100 - e) / 100, {
1177
- h: t,
1178
- s: o > 0 ? 2 * o / (e + o) * 100 : 0,
1179
- v: e + o,
1180
- a: r
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 eo({ h: t, s: o, v: e, a: r }) {
1184
- const a = (200 - o) * e / 100;
1341
+ function rt({ h: r, s: t, v: e, a: o }) {
1342
+ const a = (200 - t) * e / 100;
1185
1343
  return {
1186
- h: t,
1187
- s: a > 0 && a < 200 ? o * e / 100 / (a <= 100 ? a : 200 - a) * 100 : 0,
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: r
1347
+ a: o
1190
1348
  };
1191
1349
  }
1192
- function Ce(t) {
1193
- return L(Qt(t));
1350
+ function Ce(r) {
1351
+ return L(et(r));
1194
1352
  }
1195
- function Ee(t) {
1196
- return eo(Q(t));
1353
+ function Ee(r) {
1354
+ return rt(Q(r));
1197
1355
  }
1198
- function Y(t) {
1199
- const o = z(t.r, 4), e = z(t.g, 4), r = z(t.b, 4), a = z(t.a, 2);
1200
- return a < 1 ? `color(display-p3 ${o} ${e} ${r} / ${a})` : `color(display-p3 ${o} ${e} ${r})`;
1356
+ function Y(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 Z(t) {
1203
- const o = Math.round(t.r * 255), e = Math.round(t.g * 255), r = Math.round(t.b * 255), a = t.a;
1204
- return a < 1 ? `rgb(${o} ${e} ${r} / ${a})` : `rgb(${o} ${e} ${r})`;
1360
+ function Z(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(t) {
1207
- const { r: o, g: e, b: r, a } = t;
1364
+ function Le(r) {
1365
+ const { r: t, g: e, b: o, a } = r;
1208
1366
  return {
1209
- r: o + (1 - o) * (1 - a),
1367
+ r: t + (1 - t) * (1 - a),
1210
1368
  g: e + (1 - e) * (1 - a),
1211
- b: r + (1 - r) * (1 - a),
1369
+ b: o + (1 - o) * (1 - a),
1212
1370
  a: 1
1213
1371
  };
1214
1372
  }
1215
- const cr = { r: 0, g: 0, b: 0, a: 1 }, pr = ["hex", "rgb", "hsl", "hsv"], [dr, D] = de("ColorPicker"), ur = (t) => {
1373
+ const po = { r: 0, g: 0, b: 0, a: 1 }, uo = ["hex", "rgb", "hsl", "hsv"], [go, k] = de("ColorPicker"), mo = (r) => {
1216
1374
  const {
1217
- colorSpace: o,
1218
- models: e = pr,
1219
- defaultActiveModel: r,
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
- } = t;
1227
- fr(a, r, e);
1228
- const [f = cr, g] = be({
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] = be({
1390
+ }), [v = e[0], T] = he({
1233
1391
  prop: a,
1234
- defaultProp: r,
1392
+ defaultProp: o,
1235
1393
  onChange: s
1236
- }), [h, C] = ee({}), S = {
1237
- hsv: h.hsv ?? Q(f),
1238
- hsl: h.hsl ?? Ee(f),
1239
- rgb: h.rgb ?? f,
1240
- hex: h.hex ?? le(f)
1394
+ }), [b, C] = ee({}), S = {
1395
+ hsv: b.hsv ?? Q(g),
1396
+ hsl: b.hsl ?? Ee(g),
1397
+ rgb: b.rgb ?? g,
1398
+ hex: b.hex ?? le(g)
1241
1399
  }, M = S.hsv.h;
1242
1400
  return /* @__PURE__ */ n(
1243
- dr,
1401
+ go,
1244
1402
  {
1245
- colorSpace: o,
1403
+ colorSpace: t,
1246
1404
  models: e,
1247
1405
  activeModel: v,
1248
1406
  onActiveModelChange: T,
1249
- color: f,
1407
+ color: g,
1250
1408
  onColorChange: (X) => {
1251
1409
  const { mode: O, value: m } = X;
1252
1410
  O === "rgb" ? (C({
@@ -1254,17 +1412,17 @@ const cr = { r: 0, g: 0, b: 0, a: 1 }, pr = ["hex", "rgb", "hsl", "hsv"], [dr, D
1254
1412
  hsv: Q(m),
1255
1413
  hsl: Ee(m),
1256
1414
  hex: le(m)
1257
- }), g(m)) : O === "hsv" ? (C({
1415
+ }), f(m)) : O === "hsv" ? (C({
1258
1416
  hsv: m,
1259
- hsl: eo(m),
1417
+ hsl: rt(m),
1260
1418
  rgb: L(m),
1261
- hex: ir(m)
1262
- }), g(L(m))) : O === "hsl" && (C({
1263
- hsv: Qt(m),
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: lr(m)
1267
- }), g(Ce(m)));
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 fr(t, o, e) {
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 (t && !e.includes(t))
1438
+ if (r && !e.includes(r))
1281
1439
  throw new Error(
1282
- `Invalid 'activeModel': '${t}' is not present in the 'models' array. Make sure 'activeModel' matches a model name in 'models'.`
1440
+ `Invalid 'activeModel': '${r}' is not present in the 'models' array. Make sure 'activeModel' matches a model name in 'models'.`
1283
1441
  );
1284
- if (o && !e.includes(o))
1442
+ if (t && !e.includes(t))
1285
1443
  throw new Error(
1286
- `Invalid 'defaultActiveModel': '${o}' is not present in the 'models' array. Make sure 'activeModel' matches a model name in 'models'.`
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 mr = 2, gr = 0, hr = 100, br = "horizontal", Cr = "ltr", ke = i.forwardRef((t, o) => {
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: r = gr,
1293
- max: a = hr,
1294
- defaultValue: s = [r],
1450
+ min: o = ho,
1451
+ max: a = Co,
1452
+ defaultValue: s = [o],
1295
1453
  value: l,
1296
1454
  onValueChange: c,
1297
- orientation: d = br,
1298
- dir: u = Cr,
1299
- inverted: f,
1300
- disabled: g,
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: h,
1461
+ baseValue: b,
1304
1462
  hints: C,
1305
1463
  ...S
1306
- } = t, M = H(null), te = ce(M, o), { onPointerDown: X, focusVisible: O } = wr(M), [m, P] = ee(l ?? s), oe = H(l), fe = H(s);
1464
+ } = r, M = G(null), re = ce(M, t), { onPointerDown: X, focusVisible: O } = xo(M), [m, P] = ee(l ?? s), te = G(l), ge = G(s);
1307
1465
  _e(() => {
1308
- ze(l, oe.current) && ze(s, fe.current) || P(l ?? s);
1466
+ ze(l, te.current) && ze(s, ge.current) || P(l ?? s);
1309
1467
  }, [l, s]), _e(() => {
1310
1468
  M.current && M.current.style.setProperty(
1311
1469
  "--radix-slider-thumb-transform",
1312
- yr(d, u, f)
1470
+ vo(d, u, g)
1313
1471
  );
1314
- }, [M, d, u, f]);
1315
- const re = (k) => {
1316
- const _ = k.map((me) => vr(me, C, r, a));
1472
+ }, [M, d, u, g]);
1473
+ const oe = (D) => {
1474
+ const _ = D.map((me) => Po(me, C, o, a));
1317
1475
  c == null || c(_), P(_);
1318
1476
  };
1319
- return /* @__PURE__ */ b(
1320
- ge.Root,
1477
+ return /* @__PURE__ */ h(
1478
+ fe.Root,
1321
1479
  {
1322
1480
  tabIndex: -1,
1323
- ref: te,
1481
+ ref: re,
1324
1482
  className: p(e, "fp-SliderRoot"),
1325
1483
  value: m,
1326
- onValueChange: re,
1484
+ onValueChange: oe,
1327
1485
  onPointerDown: X,
1328
- min: r,
1486
+ min: o,
1329
1487
  max: a,
1330
1488
  orientation: d,
1331
1489
  dir: u,
1332
- inverted: f,
1333
- disabled: g,
1490
+ inverted: g,
1491
+ disabled: f,
1334
1492
  ...S,
1335
1493
  children: [
1336
- /* @__PURE__ */ n(ge.Track, { className: "fp-SliderTrack" }),
1494
+ /* @__PURE__ */ n(fe.Track, { className: "fp-SliderTrack" }),
1337
1495
  v && /* @__PURE__ */ n(
1338
- Rr,
1496
+ Ro,
1339
1497
  {
1340
1498
  dir: u,
1341
1499
  value: m,
1342
- min: r,
1500
+ min: o,
1343
1501
  max: a,
1344
1502
  orientation: d,
1345
- inverted: f,
1503
+ inverted: g,
1346
1504
  rangeAnchor: T,
1347
- disabled: g
1505
+ disabled: f
1348
1506
  }
1349
1507
  ),
1350
- C && C.map((k) => /* @__PURE__ */ n(
1351
- Nr,
1508
+ C && C.map((D) => /* @__PURE__ */ n(
1509
+ wo,
1352
1510
  {
1353
- hint: k,
1354
- baseValue: h,
1355
- min: r,
1511
+ hint: D,
1512
+ baseValue: b,
1513
+ min: o,
1356
1514
  max: a,
1357
1515
  orientation: d,
1358
1516
  dir: u,
1359
- inverted: f
1517
+ inverted: g
1360
1518
  },
1361
- k
1519
+ D
1362
1520
  )),
1363
- m.map((k, _) => /* @__PURE__ */ n(
1364
- ge.Thumb,
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": k === h
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
- ke.displayName = "Slider";
1378
- const Nr = (t) => {
1379
- const { baseValue: o, dir: e, inverted: r, max: a, min: s, orientation: l, hint: c } = t, { startEdge: d } = to(l, e, r), u = E([s, a], [0, 100])(c), f = 4;
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 === o }),
1541
+ className: p("fp-SliderHint", { "fp-SliderHint-baseValue": c === t }),
1384
1542
  "data-orientation": l,
1385
- style: { [d]: `calc(${u}% - ${f / 2}px)` }
1543
+ style: { [d]: `calc(${u}% - ${g / 2}px)` }
1386
1544
  }
1387
1545
  ) });
1388
- }, Rr = (t) => {
1389
- const { min: o, max: e, value: r, rangeAnchor: a = o, orientation: s, dir: l, inverted: c, disabled: d } = t, u = r.length > 1 ? Math.min(...r) : Math.min(a, ...r), f = r.length > 1 ? Math.max(...r) : Math.max(a, ...r), g = E([o, e], [0, 100])(u), v = 100 - E([o, e], [0, 100])(f), T = to(s, l, c);
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]: `${g}%`,
1555
+ [T.startEdge]: `${f}%`,
1398
1556
  [T.endEdge]: `${v}%`
1399
1557
  }
1400
1558
  }
1401
1559
  );
1402
1560
  };
1403
- function to(t, o, e) {
1404
- const r = e ? "inverted" : "normal";
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: o === "ltr" ? "left" : "right",
1419
- endEdge: o === "ltr" ? "right" : "left"
1576
+ startEdge: t === "ltr" ? "left" : "right",
1577
+ endEdge: t === "ltr" ? "right" : "left"
1420
1578
  },
1421
1579
  inverted: {
1422
- startEdge: o === "ltr" ? "right" : "left",
1423
- endEdge: o === "ltr" ? "left" : "right"
1580
+ startEdge: t === "ltr" ? "right" : "left",
1581
+ endEdge: t === "ltr" ? "left" : "right"
1424
1582
  }
1425
1583
  }
1426
- }[t][r];
1584
+ }[r][o];
1427
1585
  }
1428
- function yr(t, o, e) {
1429
- const r = e ? "inverted" : "normal";
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: o === "ltr" ? "translateX(-50%)" : "translateX(50%)",
1437
- inverted: o === "ltr" ? "translateX(50%)" : "translateX(-50%)"
1594
+ normal: t === "ltr" ? "translateX(-50%)" : "translateX(50%)",
1595
+ inverted: t === "ltr" ? "translateX(50%)" : "translateX(-50%)"
1438
1596
  }
1439
- }[t][r];
1597
+ }[r][o];
1440
1598
  }
1441
- function wr(t) {
1442
- const [o, e] = ee(!1), r = () => {
1599
+ function xo(r) {
1600
+ const [t, e] = ee(!1), o = () => {
1443
1601
  var s;
1444
- e(!1), window.removeEventListener("pointerup", r), (s = t.current) == null || s.focus();
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", r);
1448
- }, focusVisible: !o };
1605
+ e(!0), window.addEventListener("pointerup", o);
1606
+ }, focusVisible: !t };
1449
1607
  }
1450
- function vr(t, o, e, r) {
1451
- const a = E([0, 100], [0, r - e])(mr), s = o == null ? void 0 : o.find((l) => Math.abs(l - t) <= a);
1452
- return typeof s == "number" ? s : t;
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 xr = (t) => {
1455
- const { className: o, style: e } = t, { activeModel: r, colorSpace: a, hue: s, color: l, onColorChange: c } = D("Hue"), d = Pr[r], u = (g) => {
1456
- const v = d.setHue(l, g[0]);
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
- }, f = d.getThumbColor(s, a);
1616
+ }, g = d.getThumbColor(s, a);
1459
1617
  return /* @__PURE__ */ n(
1460
- ke,
1618
+ De,
1461
1619
  {
1462
1620
  "aria-label": "hue",
1463
1621
  range: !1,
@@ -1465,27 +1623,27 @@ const xr = (t) => {
1465
1623
  max: 359,
1466
1624
  value: [s],
1467
1625
  onValueChange: u,
1468
- className: `fp-ColorPickerHueSlider fp-color-model-${r} fp-color-space-${a} ${o}`,
1469
- style: { "--slider-thumb-bg": f, ...e }
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
1630
  }, se = {
1473
- getHue: (t) => Math.round(Q(t).h),
1474
- setHue: (t, o) => {
1475
- const { s: e, v: r } = Q(t);
1476
- return L({ h: o, s: e, v: r, a: t.a });
1631
+ getHue: (r) => Math.round(Q(r).h),
1632
+ setHue: (r, t) => {
1633
+ const { s: e, v: o } = Q(r);
1634
+ return L({ h: t, s: e, v: o, a: r.a });
1477
1635
  },
1478
- getThumbColor: (t, o) => {
1479
- const { r: e, g: r, b: a } = L({ h: t, s: 100, v: 100, a: 1 });
1480
- return o === "display-p3" ? `color(display-p3 ${+e.toFixed(4)} ${+r.toFixed(4)} ${+a.toFixed(4)})` : `rgb(${Math.round(e * 255)} ${Math.round(r * 255)} ${Math.round(a * 255)})`;
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
- }, Pr = {
1640
+ }, So = {
1483
1641
  rgb: se,
1484
1642
  hsl: se,
1485
1643
  hsv: se,
1486
1644
  hex: se
1487
- }, Tr = (t) => {
1488
- const { className: o, style: e } = t, { colorSpace: r, color: a, onColorChange: s } = D("Hue"), l = {
1645
+ }, Mo = (r) => {
1646
+ const { className: t, style: e } = r, { colorSpace: o, color: a, onColorChange: s } = k("Hue"), l = {
1489
1647
  srgb: {
1490
1648
  transparent: Z({ ...a, a: 0 }),
1491
1649
  opaque: Z({ ...a, a: 1 })
@@ -1501,7 +1659,7 @@ const xr = (t) => {
1501
1659
  s({ mode: "rgb", value: { ...a, a: z(u[0] / 100, 2) } });
1502
1660
  };
1503
1661
  return /* @__PURE__ */ n(
1504
- ke,
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-${r} ${o}`,
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
- }, Sr = 8, Mr = (t) => {
1525
- const { onColorChange: o, colorsByModel: e, hue: r, colorSpace: a, activeModel: s } = D("ColorPicker.Area"), l = {
1526
- srgb: Z(L({ h: r, s: 100, v: 100, a: 1 })),
1527
- p3: Y(L({ h: r, s: 100, v: 100, a: 1 }))
1682
+ }, Io = 8, $o = (r) => {
1683
+ const { onColorChange: t, colorsByModel: e, hue: o, colorSpace: a, activeModel: s } = k("ColorPicker.Area"), l = {
1684
+ srgb: Z(L({ h: o, s: 100, v: 100, a: 1 })),
1685
+ p3: Y(L({ h: o, s: 100, v: 100, a: 1 }))
1528
1686
  }, c = {
1529
1687
  srgb: Z(e.rgb),
1530
1688
  p3: Y(e.rgb)
1531
- }, d = Ir(e, s), u = H(null), { size: f } = $r(u), g = (h) => {
1532
- o(s === "hsl" ? {
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: r, s: h.x, l: 100 - h.y, a: e.rgb.a }
1692
+ value: { h: o, s: b.x, l: 100 - b.y, a: e.rgb.a }
1535
1693
  } : {
1536
1694
  mode: "hsv",
1537
- value: { h: r, s: h.x, v: 100 - h.y, a: e.rgb.a }
1695
+ value: { h: o, s: b.x, v: 100 - b.y, a: e.rgb.a }
1538
1696
  });
1539
- }, v = (h) => {
1540
- if (h.type === "pointerdown" && h.currentTarget.setPointerCapture(h.pointerId), h.type === "pointermove" && !h.currentTarget.hasPointerCapture(h.pointerId))
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 = h.currentTarget.getBoundingClientRect();
1543
- g({
1544
- x: J(h.clientX - C.x, E([0, f], [0, 100]), I({ min: 0, max: 100 })),
1700
+ const C = b.currentTarget.getBoundingClientRect();
1701
+ f({
1702
+ x: J(b.clientX - C.x, E([0, g], [0, 100]), I({ min: 0, max: 100 })),
1545
1703
  y: J(
1546
- h.clientY - C.y - Sr,
1547
- E([0, f], [0, 100]),
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 = (h) => {
1552
- const C = h.shiftKey ? 10 : 1, S = {
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
- }[h.key];
1558
- S && g({
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__ */ b(
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 Ir(t, o) {
1595
- if (o === "hsl") {
1596
- const e = t.hsl;
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 = t.hsv;
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 $r(t) {
1610
- const [o, e] = i.useState(0);
1767
+ function Do(r) {
1768
+ const [t, e] = i.useState(0);
1611
1769
  return i.useLayoutEffect(() => {
1612
- const r = t.current;
1613
- if (!r)
1770
+ const o = r.current;
1771
+ if (!o)
1614
1772
  return;
1615
- e(r.getBoundingClientRect().width);
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(r), () => {
1621
- a.unobserve(r);
1778
+ return a.observe(o), () => {
1779
+ a.unobserve(o);
1622
1780
  };
1623
- }, [t]), { size: o };
1781
+ }, [r]), { size: t };
1624
1782
  }
1625
- const he = {
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
- }, Dr = V("fp-Flex", {
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: he,
1675
- columnGap: he,
1676
- rowGap: he
1832
+ gap: be,
1833
+ columnGap: be,
1834
+ rowGap: be
1677
1835
  },
1678
1836
  defaultVariants: {
1679
1837
  direction: "row"
1680
1838
  }
1681
- }), oo = i.forwardRef((t, o) => {
1682
- const { className: e, direction: r, align: a, justify: s, wrap: l, gap: c, columnGap: d, rowGap: u, ...f } = t;
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: o,
1687
- className: Dr({ className: e, direction: r, align: a, justify: s, wrap: l, gap: c, columnGap: d, rowGap: u }),
1688
- ...f
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
- oo.displayName = "Flex";
1693
- const kr = (t) => {
1694
- const { models: o, activeModel: e, onActiveModelChange: r } = D("ColorPicker.Input"), a = co(
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: _r,
1697
- hsv: Ar,
1698
- hsl: Er,
1699
- rgb: zr
1854
+ hex: Ao,
1855
+ hsv: Lo,
1856
+ hsl: Vo,
1857
+ rgb: Eo
1700
1858
  },
1701
- o
1859
+ t
1702
1860
  )[e];
1703
- return /* @__PURE__ */ b(oo, { gap: "2.5", className: t.className, style: t.style, children: [
1704
- o.length > 1 && /* @__PURE__ */ b(pt, { value: e, onValueChange: r, children: [
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: o.map((s) => /* @__PURE__ */ n(Pe, { value: s, children: s.toUpperCase() }, s)) })
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
- }, _r = () => {
1711
- const { colorsByModel: t, onColorChange: o } = D("ColorPicker.HEX"), e = t.rgb;
1712
- return /* @__PURE__ */ b(W, { children: [
1713
- /* @__PURE__ */ n(w, { children: /* @__PURE__ */ n(Jt, { onChange: (s) => {
1714
- o({ mode: "rgb", value: s });
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__ */ b(w, { style: { flex: "0 0 52px" }, children: [
1874
+ /* @__PURE__ */ h(R, { style: { flex: "0 0 52px" }, children: [
1717
1875
  /* @__PURE__ */ n(
1718
1876
  x,
1719
1877
  {
1720
1878
  onChange: (s) => {
1721
- o({ mode: "rgb", value: { ...e, a: s } });
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(q, { children: "%" })
1889
+ /* @__PURE__ */ n(W, { children: "%" })
1732
1890
  ] })
1733
1891
  ] });
1734
- }, zr = () => {
1735
- const { colorsByModel: t, onColorChange: o } = D("ColorPicker.RGBA"), e = t.rgb, r = (a) => (s) => {
1736
- o({ mode: "rgb", value: { ...e, [a]: s } });
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__ */ b(W, { children: [
1739
- /* @__PURE__ */ n(w, { children: /* @__PURE__ */ n(
1896
+ return /* @__PURE__ */ h(q, { children: [
1897
+ /* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(
1740
1898
  x,
1741
1899
  {
1742
- onChange: r("r"),
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(w, { children: /* @__PURE__ */ n(
1908
+ /* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(
1751
1909
  x,
1752
1910
  {
1753
- onChange: r("g"),
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(w, { children: /* @__PURE__ */ n(
1919
+ /* @__PURE__ */ n(R, { children: /* @__PURE__ */ n(
1762
1920
  x,
1763
1921
  {
1764
- onChange: r("b"),
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__ */ b(w, { style: { flex: "0 0 52px" }, children: [
1930
+ /* @__PURE__ */ h(R, { style: { flex: "0 0 52px" }, children: [
1773
1931
  /* @__PURE__ */ n(
1774
1932
  x,
1775
1933
  {
1776
- onChange: r("a"),
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(q, { children: "%" })
1943
+ /* @__PURE__ */ n(W, { children: "%" })
1786
1944
  ] })
1787
1945
  ] });
1788
- }, Ar = () => {
1789
- const { colorsByModel: t, onColorChange: o } = D("ColorPicker.HSVA"), e = t.hsv, r = (a) => (s) => {
1790
- o({ mode: "hsv", value: { ...e, [a]: s } });
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__ */ b(W, { children: [
1793
- /* @__PURE__ */ n(w, { children: /* @__PURE__ */ n(x, { onChange: r("h"), value: e.h, min: 0, max: 360, precision: 0 }) }),
1794
- /* @__PURE__ */ n(w, { children: /* @__PURE__ */ n(x, { onChange: r("s"), value: e.s, min: 0, max: 100, precision: 0 }) }),
1795
- /* @__PURE__ */ n(w, { children: /* @__PURE__ */ n(x, { onChange: r("v"), value: e.v, min: 0, max: 100, precision: 0 }) }),
1796
- /* @__PURE__ */ b(w, { style: { flex: "0 0 52px" }, children: [
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: r("a"),
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(q, { children: "%" })
1967
+ /* @__PURE__ */ n(W, { children: "%" })
1810
1968
  ] })
1811
1969
  ] });
1812
- }, Er = () => {
1813
- const { colorsByModel: t, onColorChange: o } = D("ColorPicker.HSLA"), e = t.hsl, r = (a) => (s) => {
1814
- o({ mode: "hsl", value: { ...e, [a]: s } });
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__ */ b(W, { children: [
1817
- /* @__PURE__ */ n(w, { children: /* @__PURE__ */ n(x, { onChange: r("h"), value: e.h, min: 0, max: 360, precision: 0 }) }),
1818
- /* @__PURE__ */ n(w, { children: /* @__PURE__ */ n(x, { onChange: r("s"), value: e.s, min: 0, max: 100, precision: 0 }) }),
1819
- /* @__PURE__ */ n(w, { children: /* @__PURE__ */ n(x, { onChange: r("l"), value: e.l, min: 0, max: 100, precision: 0 }) }),
1820
- /* @__PURE__ */ b(w, { style: { flex: "0 0 52px" }, children: [
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: r("a"),
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(q, { children: "%" })
1991
+ /* @__PURE__ */ n(W, { children: "%" })
1834
1992
  ] })
1835
1993
  ] });
1836
- }, la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1994
+ }, ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1837
1995
  __proto__: null,
1838
- Alpha: Tr,
1839
- Area: Mr,
1840
- Hue: xr,
1841
- Input: kr,
1842
- Root: ur,
1843
- useColorPickerContext: D
1844
- }, Symbol.toStringTag, { value: "Module" })), ro = i.forwardRef((t, o) => {
1845
- const { className: e, ...r } = t;
1846
- return /* @__PURE__ */ n(Ne.Root, { ref: o, className: p(e, "fp-CollapsibleRoot"), ...r });
1847
- }), ao = i.forwardRef((t, o) => {
1848
- const { className: e, children: r, ...a } = t;
1849
- return /* @__PURE__ */ b(Ne.Trigger, { ref: o, className: p(e, "fp-CollapsibleTrigger"), ...a, children: [
1850
- /* @__PURE__ */ n(ye, { viewBox: "4 4 16 16", size: "4", className: "fp-CollapsibleIndicator" }),
1851
- r
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
- }), no = i.forwardRef((t, o) => {
1854
- const { className: e, ...r } = t;
1855
- return /* @__PURE__ */ n(Ne.Content, { ref: o, className: p(e, "fp-CollapsibleContent"), ...r });
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
- ro.displayName = "Collapsible.Root";
1858
- ao.displayName = "Collapsible.Trigger";
1859
- no.displayName = "Collapsible.Content";
1860
- const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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: no,
1863
- Root: ro,
1864
- Trigger: ao
1865
- }, Symbol.toStringTag, { value: "Module" })), Lr = V("fp-Button", {
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
- }), Vr = i.forwardRef((t, o) => {
1888
- const { className: e, variant: r, size: a, fullWidth: s, ...l } = t;
1889
- return /* @__PURE__ */ n("button", { ref: o, className: Lr({ className: e, variant: r, size: a, fullWidth: s }), ...l });
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
- Vr.displayName = "Button";
1892
- const Or = i.forwardRef((t, o) => {
1893
- const { className: e, ...r } = t;
1894
- return /* @__PURE__ */ n(uo, { className: p(e, "fp-textarea"), ref: o, ...r });
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
- Or.displayName = "Textarea";
1897
- const Br = i.forwardRef((t, o) => {
1898
- const { className: e, ...r } = t;
1899
- return /* @__PURE__ */ n(Ae.Root, { ref: o, className: p(e, "fp-switchRoot"), ...r, children: /* @__PURE__ */ n(Ae.Thumb, { ref: o, className: p(e, "fp-switchThumb") }) });
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
- Br.displayName = "Switch";
2059
+ jo.displayName = "Switch";
1902
2060
  export {
1903
- na as AlertDialog,
1904
- Vr as Button,
1905
- Jr as Checkbox,
1906
- ia as Collapsible,
1907
- la as ColorPicker,
1908
- ta as ContextMenu,
1909
- aa as Dialog,
1910
- ea as DropdownMenu,
1911
- oo as Flex,
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
- Zt as Input,
1914
- Re as Label,
1915
- ho as Link,
1916
- go as Paragraph,
1917
- ra as Popover,
1918
- Zr as RadioGroup,
1919
- Yr as SegmentedControl,
1920
- Qr as Select,
1921
- ke as Slider,
1922
- Br as Switch,
1923
- Kr as Tabs,
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
- Or as Textarea,
1926
- kt as Tooltip,
1927
- oa as TooltipProvider,
1928
- sa as ValueField,
1929
- G as createIcon
2083
+ Fo as Textarea,
2084
+ Dr as Tooltip,
2085
+ aa as TooltipProvider,
2086
+ ia as ValueField,
2087
+ j as createIcon
1930
2088
  };