@arkitektbedriftene/fe-lib 5.2.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui/components/Button.d.ts +1 -1
- package/dist/ui/components/Toolbar.d.ts +1 -1
- package/dist/ui.es.js +119 -103
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const ButtonStyled: import('@stitches/react/types/styled-component').StyledComponent<"button", {
|
|
2
|
-
color?: "primary" | "secondary" | "success" | "danger" | "warning" | undefined;
|
|
2
|
+
color?: "primary" | "secondary" | "success" | "danger" | "warning" | "NEW_primary" | "NEW_tertiary" | undefined;
|
|
3
3
|
size?: "sm" | "md" | "lg" | undefined;
|
|
4
4
|
variant?: "outline" | "transparent" | "primary" | undefined;
|
|
5
5
|
icon?: boolean | "true" | undefined;
|
|
@@ -369,7 +369,7 @@ export declare const ToolbarSeparator: import('@stitches/react/types/styled-comp
|
|
|
369
369
|
};
|
|
370
370
|
}, import('@stitches/react/types/config').DefaultThemeMap, {}>>;
|
|
371
371
|
export declare const ButtonInToolbar: import('react').ForwardRefExoticComponent<Omit<Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color" | "css" | "size" | "icon" | "variant"> & import('@stitches/react/types/styled-component').TransformProps<{
|
|
372
|
-
color?: "primary" | "secondary" | "success" | "danger" | "warning" | undefined;
|
|
372
|
+
color?: "primary" | "secondary" | "success" | "danger" | "warning" | "NEW_primary" | "NEW_tertiary" | undefined;
|
|
373
373
|
size?: "sm" | "md" | "lg" | undefined;
|
|
374
374
|
variant?: "outline" | "transparent" | "primary" | undefined;
|
|
375
375
|
icon?: boolean | "true" | undefined;
|
package/dist/ui.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { k as h, s as n, c as f } from "./stitches.config-DWJUNIbU.js";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as Me, g as Pe } from "./stitches.config-DWJUNIbU.js";
|
|
3
3
|
import { jsx as t, jsxs as c, Fragment as K } from "react/jsx-runtime";
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { useFloating as
|
|
4
|
+
import { forwardRef as u, createContext as U, useMemo as k, useContext as D, isValidElement as _, cloneElement as q, useState as J, useId as w } from "react";
|
|
5
|
+
import { useFloating as Q, autoUpdate as Z, offset as oo, flip as eo, shift as ro, useTransitionStyles as to, useClick as no, useHover as ao, safePolygon as io, useDismiss as so, useRole as lo, useInteractions as co, FloatingPortal as $o } from "@floating-ui/react";
|
|
6
6
|
import * as y from "@radix-ui/react-toolbar";
|
|
7
|
-
import { m as mo, n as
|
|
7
|
+
import { m as mo, n as uo, o as B, p as go, q as po } from "./index.esm-Dzt91gSZ.js";
|
|
8
8
|
import * as p from "@radix-ui/react-dialog";
|
|
9
9
|
import * as m from "@radix-ui/react-dropdown-menu";
|
|
10
10
|
import ho from "react-select";
|
|
11
11
|
import * as F from "@radix-ui/react-checkbox";
|
|
12
|
-
import * as
|
|
12
|
+
import * as W from "@radix-ui/react-switch";
|
|
13
13
|
const bo = h({
|
|
14
14
|
"0%": {
|
|
15
15
|
transform: "rotate(0)"
|
|
@@ -73,7 +73,7 @@ const bo = h({
|
|
|
73
73
|
size: "sm",
|
|
74
74
|
color: "dark"
|
|
75
75
|
}
|
|
76
|
-
}), ko =
|
|
76
|
+
}), ko = u(
|
|
77
77
|
(o, e) => /* @__PURE__ */ t(
|
|
78
78
|
vo,
|
|
79
79
|
{
|
|
@@ -168,6 +168,22 @@ const bo = h({
|
|
|
168
168
|
$$outlineHover: "$colors$yellow50",
|
|
169
169
|
$$outlineText: "$colors$yellow600",
|
|
170
170
|
$$disabled: "$colors$yellow100"
|
|
171
|
+
},
|
|
172
|
+
NEW_primary: {
|
|
173
|
+
$$solid: "$colors$flask",
|
|
174
|
+
$$solidHover: "$colors$flaskHover",
|
|
175
|
+
$$outline: "$colors$flask",
|
|
176
|
+
$$outlineHover: "$colors$flaskHover",
|
|
177
|
+
$$outlineText: "$colors$flask",
|
|
178
|
+
$$disabled: "$colors$clay"
|
|
179
|
+
},
|
|
180
|
+
NEW_tertiary: {
|
|
181
|
+
$$solid: "$colors$sand",
|
|
182
|
+
$$solidHover: "$colors$sandHover",
|
|
183
|
+
$$outline: "$colors$sand",
|
|
184
|
+
$$outlineHover: "$colors$sandHover",
|
|
185
|
+
$$outlineText: "$colors$black",
|
|
186
|
+
$$disabled: "$colors$clay"
|
|
171
187
|
}
|
|
172
188
|
},
|
|
173
189
|
size: {
|
|
@@ -255,7 +271,7 @@ const bo = h({
|
|
|
255
271
|
color: "secondary",
|
|
256
272
|
size: "md"
|
|
257
273
|
}
|
|
258
|
-
}),
|
|
274
|
+
}), M = u(
|
|
259
275
|
({ children: o, disabled: e, isLoading: r, variant: a, color: i, ...s }, l) => (!i && a === "primary" && (i = "primary"), /* @__PURE__ */ c(
|
|
260
276
|
wo,
|
|
261
277
|
{
|
|
@@ -311,7 +327,7 @@ const bo = h({
|
|
|
311
327
|
color: "info",
|
|
312
328
|
size: "md"
|
|
313
329
|
}
|
|
314
|
-
}), se =
|
|
330
|
+
}), se = u(
|
|
315
331
|
({ children: o, ...e }, r) => /* @__PURE__ */ t(
|
|
316
332
|
Co,
|
|
317
333
|
{
|
|
@@ -343,7 +359,7 @@ const bo = h({
|
|
|
343
359
|
// so for other popups that uses `OverlayCard` to work
|
|
344
360
|
// we need to explicitly set this.
|
|
345
361
|
pointerEvents: "auto"
|
|
346
|
-
}),
|
|
362
|
+
}), Ho = f({
|
|
347
363
|
animationDuration: "400ms",
|
|
348
364
|
animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
349
365
|
willChange: "transform, opacity",
|
|
@@ -353,13 +369,13 @@ const bo = h({
|
|
|
353
369
|
'&[data-side="bottom"]': { animationName: So },
|
|
354
370
|
'&[data-side="left"]': { animationName: zo }
|
|
355
371
|
}
|
|
356
|
-
}),
|
|
372
|
+
}), P = n(
|
|
357
373
|
"div",
|
|
358
374
|
To,
|
|
359
|
-
|
|
375
|
+
Ho
|
|
360
376
|
), d = n("div"), C = U(
|
|
361
377
|
{}
|
|
362
|
-
),
|
|
378
|
+
), Do = ({
|
|
363
379
|
children: o,
|
|
364
380
|
offset: e,
|
|
365
381
|
open: r,
|
|
@@ -369,11 +385,11 @@ const bo = h({
|
|
|
369
385
|
placement: l = "bottom",
|
|
370
386
|
role: $ = "dialog"
|
|
371
387
|
}) => {
|
|
372
|
-
const { refs:
|
|
388
|
+
const { refs: g, floatingStyles: x, context: b } = Q({
|
|
373
389
|
open: r,
|
|
374
390
|
onOpenChange: a,
|
|
375
391
|
placement: l,
|
|
376
|
-
whileElementsMounted:
|
|
392
|
+
whileElementsMounted: Z,
|
|
377
393
|
middleware: [oo(e), eo(), ro()]
|
|
378
394
|
}), { isMounted: z, styles: I } = to(b, {
|
|
379
395
|
initial: ({ side: G }) => ({
|
|
@@ -385,21 +401,21 @@ const bo = h({
|
|
|
385
401
|
left: "translateX(-0.5rem)"
|
|
386
402
|
}[G]
|
|
387
403
|
})
|
|
388
|
-
}),
|
|
404
|
+
}), X = no(b, { enabled: i === "click" }), j = ao(b, {
|
|
389
405
|
enabled: i === "hover",
|
|
390
406
|
delay: s,
|
|
391
407
|
handleClose: io()
|
|
392
|
-
}),
|
|
408
|
+
}), E = so(b), L = lo(b, { role: $ }), { getFloatingProps: R, getReferenceProps: T } = co([
|
|
409
|
+
X,
|
|
393
410
|
j,
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
]), E = k(
|
|
411
|
+
E,
|
|
412
|
+
L
|
|
413
|
+
]), Y = k(
|
|
398
414
|
() => ({
|
|
399
415
|
getFloatingProps: R,
|
|
400
416
|
getReferenceProps: T,
|
|
401
417
|
floatingStyles: x,
|
|
402
|
-
refs:
|
|
418
|
+
refs: g,
|
|
403
419
|
isMounted: z,
|
|
404
420
|
transitionStyles: I
|
|
405
421
|
}),
|
|
@@ -407,15 +423,15 @@ const bo = h({
|
|
|
407
423
|
R,
|
|
408
424
|
T,
|
|
409
425
|
z,
|
|
410
|
-
|
|
426
|
+
g,
|
|
411
427
|
x,
|
|
412
428
|
I
|
|
413
429
|
]
|
|
414
430
|
);
|
|
415
|
-
return /* @__PURE__ */ t(C.Provider, { value:
|
|
416
|
-
},
|
|
417
|
-
const { getReferenceProps: e, refs: r } =
|
|
418
|
-
return /* @__PURE__ */ t(K, { children:
|
|
431
|
+
return /* @__PURE__ */ t(C.Provider, { value: Y, children: o });
|
|
432
|
+
}, Bo = ({ children: o }) => {
|
|
433
|
+
const { getReferenceProps: e, refs: r } = D(C);
|
|
434
|
+
return /* @__PURE__ */ t(K, { children: _(o) && q(o, {
|
|
419
435
|
ref: r.setReference,
|
|
420
436
|
...e()
|
|
421
437
|
}) });
|
|
@@ -426,7 +442,7 @@ const bo = h({
|
|
|
426
442
|
refs: i,
|
|
427
443
|
floatingStyles: s,
|
|
428
444
|
transitionStyles: l
|
|
429
|
-
} =
|
|
445
|
+
} = D(C);
|
|
430
446
|
return a ? /* @__PURE__ */ t($o, { children: /* @__PURE__ */ t(
|
|
431
447
|
d,
|
|
432
448
|
{
|
|
@@ -436,13 +452,13 @@ const bo = h({
|
|
|
436
452
|
css: {
|
|
437
453
|
zIndex: "$overlayCard"
|
|
438
454
|
},
|
|
439
|
-
children: /* @__PURE__ */ t(
|
|
455
|
+
children: /* @__PURE__ */ t(P, { ...e, style: l, children: o })
|
|
440
456
|
}
|
|
441
457
|
) }) : null;
|
|
442
458
|
}, le = ({ children: o, content: e }) => {
|
|
443
|
-
const [r, a] =
|
|
459
|
+
const [r, a] = J(!1);
|
|
444
460
|
return /* @__PURE__ */ c(
|
|
445
|
-
|
|
461
|
+
Do,
|
|
446
462
|
{
|
|
447
463
|
open: r,
|
|
448
464
|
onOpenChange: a,
|
|
@@ -451,7 +467,7 @@ const bo = h({
|
|
|
451
467
|
offset: { mainAxis: 8 },
|
|
452
468
|
role: "tooltip",
|
|
453
469
|
children: [
|
|
454
|
-
/* @__PURE__ */ t(
|
|
470
|
+
/* @__PURE__ */ t(Bo, { children: o }),
|
|
455
471
|
/* @__PURE__ */ t(Fo, { overlayCardProps: {
|
|
456
472
|
css: {
|
|
457
473
|
background: "rgba(0,0,0, 0.9)",
|
|
@@ -516,8 +532,8 @@ const bo = h({
|
|
|
516
532
|
my: "$1",
|
|
517
533
|
mx: "$1",
|
|
518
534
|
backgroundColor: "$border"
|
|
519
|
-
}),
|
|
520
|
-
|
|
535
|
+
}), A = u(({ css: o, ...e }, r) => /* @__PURE__ */ t(
|
|
536
|
+
M,
|
|
521
537
|
{
|
|
522
538
|
ref: r,
|
|
523
539
|
icon: !0,
|
|
@@ -531,14 +547,14 @@ const bo = h({
|
|
|
531
547
|
},
|
|
532
548
|
...e
|
|
533
549
|
}
|
|
534
|
-
)),
|
|
550
|
+
)), ue = u(
|
|
535
551
|
({ children: o, dropdown: e, ...r }, a) => /* @__PURE__ */ t(
|
|
536
552
|
y.Button,
|
|
537
553
|
{
|
|
538
554
|
asChild: !0,
|
|
539
555
|
ref: a,
|
|
540
556
|
children: /* @__PURE__ */ c(
|
|
541
|
-
|
|
557
|
+
A,
|
|
542
558
|
{
|
|
543
559
|
variant: "transparent",
|
|
544
560
|
color: "primary",
|
|
@@ -551,7 +567,7 @@ const bo = h({
|
|
|
551
567
|
)
|
|
552
568
|
}
|
|
553
569
|
)
|
|
554
|
-
),
|
|
570
|
+
), ge = u(({
|
|
555
571
|
children: o,
|
|
556
572
|
value: e,
|
|
557
573
|
...r
|
|
@@ -562,7 +578,7 @@ const bo = h({
|
|
|
562
578
|
asChild: !0,
|
|
563
579
|
ref: a,
|
|
564
580
|
children: /* @__PURE__ */ t(
|
|
565
|
-
|
|
581
|
+
A,
|
|
566
582
|
{
|
|
567
583
|
variant: "transparent",
|
|
568
584
|
color: "primary",
|
|
@@ -617,7 +633,7 @@ const bo = h({
|
|
|
617
633
|
elevation: "raised",
|
|
618
634
|
rounded: "md"
|
|
619
635
|
}
|
|
620
|
-
}),
|
|
636
|
+
}), Wo = n("div", {
|
|
621
637
|
borderRadius: "$md",
|
|
622
638
|
padding: "$1",
|
|
623
639
|
border: "2px solid $blue100",
|
|
@@ -625,12 +641,12 @@ const bo = h({
|
|
|
625
641
|
display: "flex",
|
|
626
642
|
alignItems: "center",
|
|
627
643
|
gap: "$1"
|
|
628
|
-
}), he = (o) => /* @__PURE__ */ t(
|
|
644
|
+
}), he = (o) => /* @__PURE__ */ t(Wo, { ...o }), be = ({
|
|
629
645
|
children: o,
|
|
630
646
|
active: e = !1,
|
|
631
647
|
...r
|
|
632
648
|
}) => /* @__PURE__ */ t(
|
|
633
|
-
|
|
649
|
+
M,
|
|
634
650
|
{
|
|
635
651
|
variant: "transparent",
|
|
636
652
|
color: "primary",
|
|
@@ -643,12 +659,12 @@ const bo = h({
|
|
|
643
659
|
...r,
|
|
644
660
|
children: o
|
|
645
661
|
}
|
|
646
|
-
),
|
|
662
|
+
), Mo = n(p.Overlay, {
|
|
647
663
|
backgroundColor: "rgba(0, 0, 0, 0.7)",
|
|
648
664
|
position: "fixed",
|
|
649
665
|
zIndex: "$overlayCard",
|
|
650
666
|
inset: 0
|
|
651
|
-
}),
|
|
667
|
+
}), Po = n(p.Content, {
|
|
652
668
|
backgroundColor: "white",
|
|
653
669
|
borderRadius: "$md",
|
|
654
670
|
position: "fixed",
|
|
@@ -672,8 +688,8 @@ const bo = h({
|
|
|
672
688
|
}) => /* @__PURE__ */ c(p.Root, { open: e, onOpenChange: r, children: [
|
|
673
689
|
a && /* @__PURE__ */ t(p.Trigger, { asChild: !0, children: a }),
|
|
674
690
|
/* @__PURE__ */ c(p.Portal, { children: [
|
|
675
|
-
/* @__PURE__ */ t(
|
|
676
|
-
/* @__PURE__ */ t(
|
|
691
|
+
/* @__PURE__ */ t(Mo, {}),
|
|
692
|
+
/* @__PURE__ */ t(Po, { css: i, "aria-describedby": void 0, ...s, children: o })
|
|
677
693
|
] })
|
|
678
694
|
] }), ye = n(p.Title, {
|
|
679
695
|
fontSize: "$xl",
|
|
@@ -688,7 +704,7 @@ const bo = h({
|
|
|
688
704
|
padding: "$4",
|
|
689
705
|
borderBottomRightRadius: "$md",
|
|
690
706
|
borderBottomLeftRadius: "$md"
|
|
691
|
-
}),
|
|
707
|
+
}), Ao = n("div", {
|
|
692
708
|
display: "flex",
|
|
693
709
|
variants: {
|
|
694
710
|
direction: {
|
|
@@ -723,16 +739,16 @@ const bo = h({
|
|
|
723
739
|
direction: "column",
|
|
724
740
|
gap: 4
|
|
725
741
|
}
|
|
726
|
-
}),
|
|
727
|
-
const e =
|
|
742
|
+
}), H = /* @__PURE__ */ new Map(), Vo = (o) => {
|
|
743
|
+
const e = H.get(o);
|
|
728
744
|
if (e)
|
|
729
745
|
return e;
|
|
730
746
|
let r = 0;
|
|
731
747
|
for (let $ = 0; $ < o.length; $++)
|
|
732
748
|
r = o.charCodeAt($) + ((r << 5) - r);
|
|
733
749
|
const l = `hsl(${r % 360}, 80%, 40%)`;
|
|
734
|
-
return
|
|
735
|
-
},
|
|
750
|
+
return H.set(o, l), l;
|
|
751
|
+
}, No = n("div", {
|
|
736
752
|
flex: "0 0 auto",
|
|
737
753
|
display: "inline-flex",
|
|
738
754
|
alignItems: "center",
|
|
@@ -769,11 +785,11 @@ const bo = h({
|
|
|
769
785
|
...r
|
|
770
786
|
}) => {
|
|
771
787
|
const a = k(
|
|
772
|
-
() => e ?
|
|
788
|
+
() => e ? Vo(e) : "$gray200",
|
|
773
789
|
[e]
|
|
774
790
|
);
|
|
775
|
-
return /* @__PURE__ */ t(
|
|
776
|
-
},
|
|
791
|
+
return /* @__PURE__ */ t(No, { css: { backgroundColor: a, ...o }, ...r });
|
|
792
|
+
}, Oo = n(P, {
|
|
777
793
|
minWidth: "max(var(--radix-popper-anchor-width), 12rem)",
|
|
778
794
|
padding: "$1"
|
|
779
795
|
}), S = f({
|
|
@@ -817,10 +833,10 @@ const bo = h({
|
|
|
817
833
|
align: e,
|
|
818
834
|
collisionPadding: 10,
|
|
819
835
|
sideOffset: i,
|
|
820
|
-
children: /* @__PURE__ */ t(
|
|
836
|
+
children: /* @__PURE__ */ t(Oo, { children: a })
|
|
821
837
|
}
|
|
822
838
|
) })
|
|
823
|
-
] }),
|
|
839
|
+
] }), Xo = n(m.ItemIndicator, {
|
|
824
840
|
position: "absolute",
|
|
825
841
|
left: 0,
|
|
826
842
|
top: 0,
|
|
@@ -838,17 +854,17 @@ const bo = h({
|
|
|
838
854
|
display: "flex",
|
|
839
855
|
alignItems: "center",
|
|
840
856
|
gap: "$2"
|
|
841
|
-
}),
|
|
857
|
+
}), jo = n(m.CheckboxItem, S), ze = ({
|
|
842
858
|
value: o,
|
|
843
859
|
onChange: e,
|
|
844
860
|
children: r
|
|
845
861
|
}) => /* @__PURE__ */ c(
|
|
846
|
-
|
|
862
|
+
jo,
|
|
847
863
|
{
|
|
848
864
|
checked: o,
|
|
849
865
|
onCheckedChange: e,
|
|
850
866
|
children: [
|
|
851
|
-
/* @__PURE__ */ t(
|
|
867
|
+
/* @__PURE__ */ t(Xo, { children: /* @__PURE__ */ t(uo, { size: "0.75rem" }) }),
|
|
852
868
|
r
|
|
853
869
|
]
|
|
854
870
|
}
|
|
@@ -903,7 +919,7 @@ const bo = h({
|
|
|
903
919
|
...o,
|
|
904
920
|
zIndex: "var(--zIndices-overlayCard)"
|
|
905
921
|
})
|
|
906
|
-
},
|
|
922
|
+
}, Eo = {
|
|
907
923
|
control: (o, e) => {
|
|
908
924
|
var r;
|
|
909
925
|
return {
|
|
@@ -912,9 +928,9 @@ const bo = h({
|
|
|
912
928
|
boxShadow: e.isFocused ? "0 0 0 4px var(--colors-red100)" : "none"
|
|
913
929
|
};
|
|
914
930
|
}
|
|
915
|
-
},
|
|
931
|
+
}, Lo = {
|
|
916
932
|
IndicatorSeparator: () => null
|
|
917
|
-
},
|
|
933
|
+
}, V = ({
|
|
918
934
|
styles: o,
|
|
919
935
|
components: e,
|
|
920
936
|
error: r,
|
|
@@ -924,18 +940,18 @@ const bo = h({
|
|
|
924
940
|
() => ({
|
|
925
941
|
...v,
|
|
926
942
|
...o,
|
|
927
|
-
...r ?
|
|
943
|
+
...r ? Eo : void 0
|
|
928
944
|
}),
|
|
929
945
|
[o, r]
|
|
930
946
|
), s = k(
|
|
931
947
|
() => ({
|
|
932
|
-
...
|
|
948
|
+
...Lo,
|
|
933
949
|
...e
|
|
934
950
|
}),
|
|
935
951
|
[e]
|
|
936
952
|
);
|
|
937
953
|
return /* @__PURE__ */ t(ho, { components: s, styles: i, ...a });
|
|
938
|
-
}, Ie = (o) => /* @__PURE__ */ t(
|
|
954
|
+
}, Ie = (o) => /* @__PURE__ */ t(V, { ...o, isSearchable: !0 }), Re = ({
|
|
939
955
|
label: o,
|
|
940
956
|
css: e,
|
|
941
957
|
error: r,
|
|
@@ -954,7 +970,7 @@ const bo = h({
|
|
|
954
970
|
}
|
|
955
971
|
),
|
|
956
972
|
/* @__PURE__ */ t(
|
|
957
|
-
|
|
973
|
+
V,
|
|
958
974
|
{
|
|
959
975
|
...a,
|
|
960
976
|
error: r,
|
|
@@ -963,7 +979,7 @@ const bo = h({
|
|
|
963
979
|
}
|
|
964
980
|
),
|
|
965
981
|
typeof r == "string" && /* @__PURE__ */ t(d, { css: { color: "$red600", fontSize: "$sm", marginTop: "$2" }, children: r })
|
|
966
|
-
] }),
|
|
982
|
+
] }), N = f({
|
|
967
983
|
display: "block",
|
|
968
984
|
width: "100%",
|
|
969
985
|
padding: "0.5rem 0.75rem",
|
|
@@ -975,7 +991,7 @@ const bo = h({
|
|
|
975
991
|
"-webkit-appearance": "none",
|
|
976
992
|
"-moz-appearance": "none",
|
|
977
993
|
appearance: "none"
|
|
978
|
-
}),
|
|
994
|
+
}), O = f({
|
|
979
995
|
display: "block",
|
|
980
996
|
width: "100%",
|
|
981
997
|
background: "#fff",
|
|
@@ -999,13 +1015,13 @@ const bo = h({
|
|
|
999
1015
|
}
|
|
1000
1016
|
}
|
|
1001
1017
|
}
|
|
1002
|
-
}),
|
|
1018
|
+
}), Yo = n("input", N), Go = n("div", O, {
|
|
1003
1019
|
display: "flex",
|
|
1004
1020
|
alignItems: "center",
|
|
1005
1021
|
gap: "$2",
|
|
1006
1022
|
width: "100%"
|
|
1007
|
-
}), Te =
|
|
1008
|
-
({ type: o = "text", label: e, error: r, style: a, css: i, suffix: s, id: l, ...$ },
|
|
1023
|
+
}), Te = u(
|
|
1024
|
+
({ type: o = "text", label: e, error: r, style: a, css: i, suffix: s, id: l, ...$ }, g) => {
|
|
1009
1025
|
const x = w();
|
|
1010
1026
|
return l = l || x, /* @__PURE__ */ c(d, { css: i, children: [
|
|
1011
1027
|
e && /* @__PURE__ */ t(
|
|
@@ -1023,10 +1039,10 @@ const bo = h({
|
|
|
1023
1039
|
),
|
|
1024
1040
|
/* @__PURE__ */ c(Go, { error: !!r, children: [
|
|
1025
1041
|
/* @__PURE__ */ t(
|
|
1026
|
-
|
|
1042
|
+
Yo,
|
|
1027
1043
|
{
|
|
1028
1044
|
id: l,
|
|
1029
|
-
ref:
|
|
1045
|
+
ref: g,
|
|
1030
1046
|
type: o,
|
|
1031
1047
|
"aria-invalid": r ? "true" : "false",
|
|
1032
1048
|
...$
|
|
@@ -1046,7 +1062,7 @@ const bo = h({
|
|
|
1046
1062
|
r && /* @__PURE__ */ t(
|
|
1047
1063
|
d,
|
|
1048
1064
|
{
|
|
1049
|
-
as:
|
|
1065
|
+
as: B,
|
|
1050
1066
|
css: { color: "$red600", marginRight: "$2" },
|
|
1051
1067
|
size: 24
|
|
1052
1068
|
}
|
|
@@ -1055,15 +1071,15 @@ const bo = h({
|
|
|
1055
1071
|
typeof r == "string" && /* @__PURE__ */ t(d, { css: { color: "$red600", fontSize: "$sm", marginTop: "$2" }, children: r })
|
|
1056
1072
|
] });
|
|
1057
1073
|
}
|
|
1058
|
-
), Ko = n("textarea",
|
|
1074
|
+
), Ko = n("textarea", N), Uo = n("div", O, {
|
|
1059
1075
|
display: "flex",
|
|
1060
1076
|
alignItems: "center",
|
|
1061
1077
|
gap: "$2",
|
|
1062
1078
|
width: "100%"
|
|
1063
|
-
}),
|
|
1079
|
+
}), He = u(
|
|
1064
1080
|
({ label: o, error: e, style: r, css: a, suffix: i, id: s, ...l }, $) => {
|
|
1065
|
-
const
|
|
1066
|
-
return s = s ||
|
|
1081
|
+
const g = w();
|
|
1082
|
+
return s = s || g, /* @__PURE__ */ c(d, { css: a, children: [
|
|
1067
1083
|
o && /* @__PURE__ */ t(
|
|
1068
1084
|
d,
|
|
1069
1085
|
{
|
|
@@ -1101,7 +1117,7 @@ const bo = h({
|
|
|
1101
1117
|
e && /* @__PURE__ */ t(
|
|
1102
1118
|
d,
|
|
1103
1119
|
{
|
|
1104
|
-
as:
|
|
1120
|
+
as: B,
|
|
1105
1121
|
css: { color: "$red600", marginRight: "$2" },
|
|
1106
1122
|
size: 24
|
|
1107
1123
|
}
|
|
@@ -1110,7 +1126,7 @@ const bo = h({
|
|
|
1110
1126
|
typeof e == "string" && /* @__PURE__ */ t(d, { css: { color: "$red600", fontSize: "$sm", marginTop: "$2" }, children: e })
|
|
1111
1127
|
] });
|
|
1112
1128
|
}
|
|
1113
|
-
),
|
|
1129
|
+
), _o = n(F.Root, {
|
|
1114
1130
|
display: "flex",
|
|
1115
1131
|
alignItems: "center",
|
|
1116
1132
|
justifyContent: "center",
|
|
@@ -1158,14 +1174,14 @@ const bo = h({
|
|
|
1158
1174
|
size: "md",
|
|
1159
1175
|
color: "primary"
|
|
1160
1176
|
}
|
|
1161
|
-
}),
|
|
1177
|
+
}), qo = n(F.Indicator, {
|
|
1162
1178
|
"[data-icon]": {
|
|
1163
1179
|
display: "none"
|
|
1164
1180
|
},
|
|
1165
1181
|
"&[data-state=checked] [data-icon=checked], &[data-state=indeterminate] [data-icon=indeterminate]": {
|
|
1166
1182
|
display: "block"
|
|
1167
1183
|
}
|
|
1168
|
-
}),
|
|
1184
|
+
}), Jo = n("label", {
|
|
1169
1185
|
flex: "0 1 auto",
|
|
1170
1186
|
paddingLeft: "$2",
|
|
1171
1187
|
variants: {
|
|
@@ -1184,7 +1200,7 @@ const bo = h({
|
|
|
1184
1200
|
defaultVariants: {
|
|
1185
1201
|
size: "md"
|
|
1186
1202
|
}
|
|
1187
|
-
}),
|
|
1203
|
+
}), De = ({
|
|
1188
1204
|
id: o,
|
|
1189
1205
|
size: e,
|
|
1190
1206
|
label: r,
|
|
@@ -1192,13 +1208,13 @@ const bo = h({
|
|
|
1192
1208
|
}) => {
|
|
1193
1209
|
const i = w();
|
|
1194
1210
|
return o = o || i, /* @__PURE__ */ c(d, { css: { display: "flex", alignItems: "center" }, children: [
|
|
1195
|
-
/* @__PURE__ */ t(
|
|
1196
|
-
/* @__PURE__ */ t(
|
|
1211
|
+
/* @__PURE__ */ t(_o, { id: o, size: e, ...a, children: /* @__PURE__ */ c(qo, { children: [
|
|
1212
|
+
/* @__PURE__ */ t(go, { "data-icon": "indeterminate" }),
|
|
1197
1213
|
/* @__PURE__ */ t(po, { "data-icon": "checked" })
|
|
1198
1214
|
] }) }),
|
|
1199
|
-
r && /* @__PURE__ */ t(
|
|
1215
|
+
r && /* @__PURE__ */ t(Jo, { htmlFor: o, size: e, children: r })
|
|
1200
1216
|
] });
|
|
1201
|
-
},
|
|
1217
|
+
}, Qo = n(W.Root, {
|
|
1202
1218
|
width: "42px",
|
|
1203
1219
|
height: "25px",
|
|
1204
1220
|
backgroundColor: "$gray200",
|
|
@@ -1212,7 +1228,7 @@ const bo = h({
|
|
|
1212
1228
|
"&[data-state='checked']": {
|
|
1213
1229
|
backgroundColor: "$green400"
|
|
1214
1230
|
}
|
|
1215
|
-
}),
|
|
1231
|
+
}), Zo = n(W.Thumb, {
|
|
1216
1232
|
display: "block",
|
|
1217
1233
|
width: "21px",
|
|
1218
1234
|
height: "21px",
|
|
@@ -1243,25 +1259,25 @@ const bo = h({
|
|
|
1243
1259
|
defaultVariants: {
|
|
1244
1260
|
size: "md"
|
|
1245
1261
|
}
|
|
1246
|
-
}),
|
|
1262
|
+
}), Be = ({
|
|
1247
1263
|
label: o,
|
|
1248
1264
|
stackProps: e,
|
|
1249
1265
|
labelProps: r,
|
|
1250
1266
|
size: a,
|
|
1251
1267
|
...i
|
|
1252
|
-
}) => /* @__PURE__ */ c(
|
|
1268
|
+
}) => /* @__PURE__ */ c(Ao, { direction: "row", align: "center", ...e, children: [
|
|
1253
1269
|
o && /* @__PURE__ */ t(oe, { size: a, ...r, children: o }),
|
|
1254
|
-
/* @__PURE__ */ t(
|
|
1270
|
+
/* @__PURE__ */ t(Qo, { ...i, children: /* @__PURE__ */ t(Zo, {}) })
|
|
1255
1271
|
] });
|
|
1256
1272
|
export {
|
|
1257
1273
|
se as Alert,
|
|
1258
1274
|
ve as Avatar,
|
|
1259
1275
|
de as Badge,
|
|
1260
1276
|
d as Box,
|
|
1261
|
-
|
|
1262
|
-
|
|
1277
|
+
M as Button,
|
|
1278
|
+
A as ButtonInToolbar,
|
|
1263
1279
|
pe as Card,
|
|
1264
|
-
|
|
1280
|
+
De as Checkbox,
|
|
1265
1281
|
Ie as Combobox,
|
|
1266
1282
|
fe as Dialog,
|
|
1267
1283
|
xe as DialogActions,
|
|
@@ -1271,29 +1287,29 @@ export {
|
|
|
1271
1287
|
Se as DropdownMenuIconItem,
|
|
1272
1288
|
Ce as DropdownMenuItem,
|
|
1273
1289
|
we as DropdownMenuSeparator,
|
|
1274
|
-
|
|
1290
|
+
Oo as MenuOverlayCard,
|
|
1275
1291
|
he as NavBar,
|
|
1276
1292
|
be as NavBarItem,
|
|
1277
|
-
|
|
1278
|
-
|
|
1293
|
+
P as OverlayCard,
|
|
1294
|
+
Do as Popover,
|
|
1279
1295
|
Fo as PopoverContent,
|
|
1280
1296
|
C as PopoverContext,
|
|
1281
|
-
|
|
1297
|
+
Bo as PopoverTrigger,
|
|
1282
1298
|
Re as Select,
|
|
1283
1299
|
ko as Spinner,
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1300
|
+
Ao as Stack,
|
|
1301
|
+
Be as Switch,
|
|
1302
|
+
He as TextArea,
|
|
1287
1303
|
Te as TextInput,
|
|
1288
1304
|
ce as Toolbar,
|
|
1289
|
-
|
|
1305
|
+
ue as ToolbarButton,
|
|
1290
1306
|
me as ToolbarSeparator,
|
|
1291
1307
|
$e as ToolbarToggleGroup,
|
|
1292
|
-
|
|
1308
|
+
ge as ToolbarToggleItem,
|
|
1293
1309
|
le as Tooltip,
|
|
1294
1310
|
f as css,
|
|
1295
|
-
|
|
1296
|
-
|
|
1311
|
+
Me as getCssText,
|
|
1312
|
+
Pe as globalCss,
|
|
1297
1313
|
h as keyframes,
|
|
1298
1314
|
S as menuItemStyles,
|
|
1299
1315
|
n as styled
|