@arkitektbedriftene/fe-lib 5.2.0 → 5.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 Pe, g as Ae } from "./stitches.config-DWJUNIbU.js";
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 g, createContext as U, useMemo as k, useContext as B, isValidElement as q, cloneElement as J, useState as Q, useId as w } from "react";
5
- import { useFloating as Z, autoUpdate as _, 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";
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 go, o as H, p as uo, q as po } from "./index.esm-Dzt91gSZ.js";
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 M from "@radix-ui/react-switch";
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 = g(
76
+ }), ko = u(
77
77
  (o, e) => /* @__PURE__ */ t(
78
78
  vo,
79
79
  {
@@ -132,6 +132,7 @@ const bo = h({
132
132
  primary: {
133
133
  $$solid: "$colors$blue600",
134
134
  $$solidHover: "$colors$blue700",
135
+ $$text: "$colors$white",
135
136
  $$outline: "$colors$blue600",
136
137
  $$outlineHover: "$colors$blue100",
137
138
  $$outlineText: "$colors$blue600",
@@ -140,6 +141,7 @@ const bo = h({
140
141
  secondary: {
141
142
  $$solid: "$colors$gray600",
142
143
  $$solidHover: "$colors$gray700",
144
+ $$text: "$colors$white",
143
145
  $$outline: "$colors$gray400",
144
146
  $$outlineHover: "$colors$gray100",
145
147
  $$outlineText: "$colors$gray600",
@@ -148,6 +150,7 @@ const bo = h({
148
150
  success: {
149
151
  $$solid: "$colors$green600",
150
152
  $$solidHover: "$colors$green700",
153
+ $$text: "$colors$white",
151
154
  $$outline: "$colors$green600",
152
155
  $$outlineHover: "$colors$green100",
153
156
  $$outlineText: "$colors$green600",
@@ -156,6 +159,7 @@ const bo = h({
156
159
  danger: {
157
160
  $$solid: "$colors$red600",
158
161
  $$solidHover: "$colors$red700",
162
+ $$text: "$colors$white",
159
163
  $$outline: "$colors$red600",
160
164
  $$outlineHover: "$colors$red100",
161
165
  $$outlineText: "$colors$red600",
@@ -164,10 +168,29 @@ const bo = h({
164
168
  warning: {
165
169
  $$solid: "$colors$yellow600",
166
170
  $$solidHover: "$colors$yellow700",
171
+ $$text: "$colors$white",
167
172
  $$outline: "$colors$yellow400",
168
173
  $$outlineHover: "$colors$yellow50",
169
174
  $$outlineText: "$colors$yellow600",
170
175
  $$disabled: "$colors$yellow100"
176
+ },
177
+ NEW_primary: {
178
+ $$solid: "$colors$flask",
179
+ $$solidHover: "$colors$flaskHover",
180
+ $$text: "$colors$white",
181
+ $$outline: "$colors$flask",
182
+ $$outlineHover: "$colors$flaskHover",
183
+ $$outlineText: "$colors$flask",
184
+ $$disabled: "$colors$clay"
185
+ },
186
+ NEW_tertiary: {
187
+ $$solid: "$colors$sand",
188
+ $$solidHover: "$colors$sandHover",
189
+ $$text: "$colors$black",
190
+ $$outline: "$colors$sand",
191
+ $$outlineHover: "$colors$sandHover",
192
+ $$outlineText: "$colors$black",
193
+ $$disabled: "$colors$clay"
171
194
  }
172
195
  },
173
196
  size: {
@@ -190,7 +213,7 @@ const bo = h({
190
213
  variant: {
191
214
  primary: {
192
215
  background: "$$solid",
193
- color: "white",
216
+ color: "$$text",
194
217
  "&:hover:not(:disabled)": {
195
218
  backgroundColor: "$$solidHover"
196
219
  },
@@ -255,7 +278,7 @@ const bo = h({
255
278
  color: "secondary",
256
279
  size: "md"
257
280
  }
258
- }), P = g(
281
+ }), M = u(
259
282
  ({ children: o, disabled: e, isLoading: r, variant: a, color: i, ...s }, l) => (!i && a === "primary" && (i = "primary"), /* @__PURE__ */ c(
260
283
  wo,
261
284
  {
@@ -311,7 +334,7 @@ const bo = h({
311
334
  color: "info",
312
335
  size: "md"
313
336
  }
314
- }), se = g(
337
+ }), se = u(
315
338
  ({ children: o, ...e }, r) => /* @__PURE__ */ t(
316
339
  Co,
317
340
  {
@@ -343,7 +366,7 @@ const bo = h({
343
366
  // so for other popups that uses `OverlayCard` to work
344
367
  // we need to explicitly set this.
345
368
  pointerEvents: "auto"
346
- }), Do = f({
369
+ }), Ho = f({
347
370
  animationDuration: "400ms",
348
371
  animationTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
349
372
  willChange: "transform, opacity",
@@ -353,13 +376,13 @@ const bo = h({
353
376
  '&[data-side="bottom"]': { animationName: So },
354
377
  '&[data-side="left"]': { animationName: zo }
355
378
  }
356
- }), A = n(
379
+ }), P = n(
357
380
  "div",
358
381
  To,
359
- Do
382
+ Ho
360
383
  ), d = n("div"), C = U(
361
384
  {}
362
- ), Bo = ({
385
+ ), Do = ({
363
386
  children: o,
364
387
  offset: e,
365
388
  open: r,
@@ -369,11 +392,11 @@ const bo = h({
369
392
  placement: l = "bottom",
370
393
  role: $ = "dialog"
371
394
  }) => {
372
- const { refs: u, floatingStyles: x, context: b } = Z({
395
+ const { refs: g, floatingStyles: x, context: b } = Q({
373
396
  open: r,
374
397
  onOpenChange: a,
375
398
  placement: l,
376
- whileElementsMounted: _,
399
+ whileElementsMounted: Z,
377
400
  middleware: [oo(e), eo(), ro()]
378
401
  }), { isMounted: z, styles: I } = to(b, {
379
402
  initial: ({ side: G }) => ({
@@ -385,21 +408,21 @@ const bo = h({
385
408
  left: "translateX(-0.5rem)"
386
409
  }[G]
387
410
  })
388
- }), j = no(b, { enabled: i === "click" }), L = ao(b, {
411
+ }), X = no(b, { enabled: i === "click" }), j = ao(b, {
389
412
  enabled: i === "hover",
390
413
  delay: s,
391
414
  handleClose: io()
392
- }), N = so(b), Y = lo(b, { role: $ }), { getFloatingProps: R, getReferenceProps: T } = co([
415
+ }), E = so(b), L = lo(b, { role: $ }), { getFloatingProps: R, getReferenceProps: T } = co([
416
+ X,
393
417
  j,
394
- L,
395
- N,
396
- Y
397
- ]), E = k(
418
+ E,
419
+ L
420
+ ]), Y = k(
398
421
  () => ({
399
422
  getFloatingProps: R,
400
423
  getReferenceProps: T,
401
424
  floatingStyles: x,
402
- refs: u,
425
+ refs: g,
403
426
  isMounted: z,
404
427
  transitionStyles: I
405
428
  }),
@@ -407,15 +430,15 @@ const bo = h({
407
430
  R,
408
431
  T,
409
432
  z,
410
- u,
433
+ g,
411
434
  x,
412
435
  I
413
436
  ]
414
437
  );
415
- return /* @__PURE__ */ t(C.Provider, { value: E, children: o });
416
- }, Ho = ({ children: o }) => {
417
- const { getReferenceProps: e, refs: r } = B(C);
418
- return /* @__PURE__ */ t(K, { children: q(o) && J(o, {
438
+ return /* @__PURE__ */ t(C.Provider, { value: Y, children: o });
439
+ }, Bo = ({ children: o }) => {
440
+ const { getReferenceProps: e, refs: r } = D(C);
441
+ return /* @__PURE__ */ t(K, { children: _(o) && q(o, {
419
442
  ref: r.setReference,
420
443
  ...e()
421
444
  }) });
@@ -426,7 +449,7 @@ const bo = h({
426
449
  refs: i,
427
450
  floatingStyles: s,
428
451
  transitionStyles: l
429
- } = B(C);
452
+ } = D(C);
430
453
  return a ? /* @__PURE__ */ t($o, { children: /* @__PURE__ */ t(
431
454
  d,
432
455
  {
@@ -436,13 +459,13 @@ const bo = h({
436
459
  css: {
437
460
  zIndex: "$overlayCard"
438
461
  },
439
- children: /* @__PURE__ */ t(A, { ...e, style: l, children: o })
462
+ children: /* @__PURE__ */ t(P, { ...e, style: l, children: o })
440
463
  }
441
464
  ) }) : null;
442
465
  }, le = ({ children: o, content: e }) => {
443
- const [r, a] = Q(!1);
466
+ const [r, a] = J(!1);
444
467
  return /* @__PURE__ */ c(
445
- Bo,
468
+ Do,
446
469
  {
447
470
  open: r,
448
471
  onOpenChange: a,
@@ -451,7 +474,7 @@ const bo = h({
451
474
  offset: { mainAxis: 8 },
452
475
  role: "tooltip",
453
476
  children: [
454
- /* @__PURE__ */ t(Ho, { children: o }),
477
+ /* @__PURE__ */ t(Bo, { children: o }),
455
478
  /* @__PURE__ */ t(Fo, { overlayCardProps: {
456
479
  css: {
457
480
  background: "rgba(0,0,0, 0.9)",
@@ -516,8 +539,8 @@ const bo = h({
516
539
  my: "$1",
517
540
  mx: "$1",
518
541
  backgroundColor: "$border"
519
- }), V = g(({ css: o, ...e }, r) => /* @__PURE__ */ t(
520
- P,
542
+ }), A = u(({ css: o, ...e }, r) => /* @__PURE__ */ t(
543
+ M,
521
544
  {
522
545
  ref: r,
523
546
  icon: !0,
@@ -531,14 +554,14 @@ const bo = h({
531
554
  },
532
555
  ...e
533
556
  }
534
- )), ge = g(
557
+ )), ue = u(
535
558
  ({ children: o, dropdown: e, ...r }, a) => /* @__PURE__ */ t(
536
559
  y.Button,
537
560
  {
538
561
  asChild: !0,
539
562
  ref: a,
540
563
  children: /* @__PURE__ */ c(
541
- V,
564
+ A,
542
565
  {
543
566
  variant: "transparent",
544
567
  color: "primary",
@@ -551,7 +574,7 @@ const bo = h({
551
574
  )
552
575
  }
553
576
  )
554
- ), ue = g(({
577
+ ), ge = u(({
555
578
  children: o,
556
579
  value: e,
557
580
  ...r
@@ -562,7 +585,7 @@ const bo = h({
562
585
  asChild: !0,
563
586
  ref: a,
564
587
  children: /* @__PURE__ */ t(
565
- V,
588
+ A,
566
589
  {
567
590
  variant: "transparent",
568
591
  color: "primary",
@@ -617,7 +640,7 @@ const bo = h({
617
640
  elevation: "raised",
618
641
  rounded: "md"
619
642
  }
620
- }), Mo = n("div", {
643
+ }), Wo = n("div", {
621
644
  borderRadius: "$md",
622
645
  padding: "$1",
623
646
  border: "2px solid $blue100",
@@ -625,12 +648,12 @@ const bo = h({
625
648
  display: "flex",
626
649
  alignItems: "center",
627
650
  gap: "$1"
628
- }), he = (o) => /* @__PURE__ */ t(Mo, { ...o }), be = ({
651
+ }), he = (o) => /* @__PURE__ */ t(Wo, { ...o }), be = ({
629
652
  children: o,
630
653
  active: e = !1,
631
654
  ...r
632
655
  }) => /* @__PURE__ */ t(
633
- P,
656
+ M,
634
657
  {
635
658
  variant: "transparent",
636
659
  color: "primary",
@@ -643,12 +666,12 @@ const bo = h({
643
666
  ...r,
644
667
  children: o
645
668
  }
646
- ), Po = n(p.Overlay, {
669
+ ), Mo = n(p.Overlay, {
647
670
  backgroundColor: "rgba(0, 0, 0, 0.7)",
648
671
  position: "fixed",
649
672
  zIndex: "$overlayCard",
650
673
  inset: 0
651
- }), Ao = n(p.Content, {
674
+ }), Po = n(p.Content, {
652
675
  backgroundColor: "white",
653
676
  borderRadius: "$md",
654
677
  position: "fixed",
@@ -672,8 +695,8 @@ const bo = h({
672
695
  }) => /* @__PURE__ */ c(p.Root, { open: e, onOpenChange: r, children: [
673
696
  a && /* @__PURE__ */ t(p.Trigger, { asChild: !0, children: a }),
674
697
  /* @__PURE__ */ c(p.Portal, { children: [
675
- /* @__PURE__ */ t(Po, {}),
676
- /* @__PURE__ */ t(Ao, { css: i, "aria-describedby": void 0, ...s, children: o })
698
+ /* @__PURE__ */ t(Mo, {}),
699
+ /* @__PURE__ */ t(Po, { css: i, "aria-describedby": void 0, ...s, children: o })
677
700
  ] })
678
701
  ] }), ye = n(p.Title, {
679
702
  fontSize: "$xl",
@@ -688,7 +711,7 @@ const bo = h({
688
711
  padding: "$4",
689
712
  borderBottomRightRadius: "$md",
690
713
  borderBottomLeftRadius: "$md"
691
- }), Vo = n("div", {
714
+ }), Ao = n("div", {
692
715
  display: "flex",
693
716
  variants: {
694
717
  direction: {
@@ -723,16 +746,16 @@ const bo = h({
723
746
  direction: "column",
724
747
  gap: 4
725
748
  }
726
- }), D = /* @__PURE__ */ new Map(), Wo = (o) => {
727
- const e = D.get(o);
749
+ }), H = /* @__PURE__ */ new Map(), Vo = (o) => {
750
+ const e = H.get(o);
728
751
  if (e)
729
752
  return e;
730
753
  let r = 0;
731
754
  for (let $ = 0; $ < o.length; $++)
732
755
  r = o.charCodeAt($) + ((r << 5) - r);
733
756
  const l = `hsl(${r % 360}, 80%, 40%)`;
734
- return D.set(o, l), l;
735
- }, Oo = n("div", {
757
+ return H.set(o, l), l;
758
+ }, No = n("div", {
736
759
  flex: "0 0 auto",
737
760
  display: "inline-flex",
738
761
  alignItems: "center",
@@ -769,11 +792,11 @@ const bo = h({
769
792
  ...r
770
793
  }) => {
771
794
  const a = k(
772
- () => e ? Wo(e) : "$gray200",
795
+ () => e ? Vo(e) : "$gray200",
773
796
  [e]
774
797
  );
775
- return /* @__PURE__ */ t(Oo, { css: { backgroundColor: a, ...o }, ...r });
776
- }, Xo = n(A, {
798
+ return /* @__PURE__ */ t(No, { css: { backgroundColor: a, ...o }, ...r });
799
+ }, Oo = n(P, {
777
800
  minWidth: "max(var(--radix-popper-anchor-width), 12rem)",
778
801
  padding: "$1"
779
802
  }), S = f({
@@ -817,10 +840,10 @@ const bo = h({
817
840
  align: e,
818
841
  collisionPadding: 10,
819
842
  sideOffset: i,
820
- children: /* @__PURE__ */ t(Xo, { children: a })
843
+ children: /* @__PURE__ */ t(Oo, { children: a })
821
844
  }
822
845
  ) })
823
- ] }), jo = n(m.ItemIndicator, {
846
+ ] }), Xo = n(m.ItemIndicator, {
824
847
  position: "absolute",
825
848
  left: 0,
826
849
  top: 0,
@@ -838,17 +861,17 @@ const bo = h({
838
861
  display: "flex",
839
862
  alignItems: "center",
840
863
  gap: "$2"
841
- }), Lo = n(m.CheckboxItem, S), ze = ({
864
+ }), jo = n(m.CheckboxItem, S), ze = ({
842
865
  value: o,
843
866
  onChange: e,
844
867
  children: r
845
868
  }) => /* @__PURE__ */ c(
846
- Lo,
869
+ jo,
847
870
  {
848
871
  checked: o,
849
872
  onCheckedChange: e,
850
873
  children: [
851
- /* @__PURE__ */ t(jo, { children: /* @__PURE__ */ t(go, { size: "0.75rem" }) }),
874
+ /* @__PURE__ */ t(Xo, { children: /* @__PURE__ */ t(uo, { size: "0.75rem" }) }),
852
875
  r
853
876
  ]
854
877
  }
@@ -903,7 +926,7 @@ const bo = h({
903
926
  ...o,
904
927
  zIndex: "var(--zIndices-overlayCard)"
905
928
  })
906
- }, No = {
929
+ }, Eo = {
907
930
  control: (o, e) => {
908
931
  var r;
909
932
  return {
@@ -912,9 +935,9 @@ const bo = h({
912
935
  boxShadow: e.isFocused ? "0 0 0 4px var(--colors-red100)" : "none"
913
936
  };
914
937
  }
915
- }, Yo = {
938
+ }, Lo = {
916
939
  IndicatorSeparator: () => null
917
- }, W = ({
940
+ }, V = ({
918
941
  styles: o,
919
942
  components: e,
920
943
  error: r,
@@ -924,18 +947,18 @@ const bo = h({
924
947
  () => ({
925
948
  ...v,
926
949
  ...o,
927
- ...r ? No : void 0
950
+ ...r ? Eo : void 0
928
951
  }),
929
952
  [o, r]
930
953
  ), s = k(
931
954
  () => ({
932
- ...Yo,
955
+ ...Lo,
933
956
  ...e
934
957
  }),
935
958
  [e]
936
959
  );
937
960
  return /* @__PURE__ */ t(ho, { components: s, styles: i, ...a });
938
- }, Ie = (o) => /* @__PURE__ */ t(W, { ...o, isSearchable: !0 }), Re = ({
961
+ }, Ie = (o) => /* @__PURE__ */ t(V, { ...o, isSearchable: !0 }), Re = ({
939
962
  label: o,
940
963
  css: e,
941
964
  error: r,
@@ -954,7 +977,7 @@ const bo = h({
954
977
  }
955
978
  ),
956
979
  /* @__PURE__ */ t(
957
- W,
980
+ V,
958
981
  {
959
982
  ...a,
960
983
  error: r,
@@ -963,7 +986,7 @@ const bo = h({
963
986
  }
964
987
  ),
965
988
  typeof r == "string" && /* @__PURE__ */ t(d, { css: { color: "$red600", fontSize: "$sm", marginTop: "$2" }, children: r })
966
- ] }), O = f({
989
+ ] }), N = f({
967
990
  display: "block",
968
991
  width: "100%",
969
992
  padding: "0.5rem 0.75rem",
@@ -975,7 +998,7 @@ const bo = h({
975
998
  "-webkit-appearance": "none",
976
999
  "-moz-appearance": "none",
977
1000
  appearance: "none"
978
- }), X = f({
1001
+ }), O = f({
979
1002
  display: "block",
980
1003
  width: "100%",
981
1004
  background: "#fff",
@@ -999,13 +1022,13 @@ const bo = h({
999
1022
  }
1000
1023
  }
1001
1024
  }
1002
- }), Eo = n("input", O), Go = n("div", X, {
1025
+ }), Yo = n("input", N), Go = n("div", O, {
1003
1026
  display: "flex",
1004
1027
  alignItems: "center",
1005
1028
  gap: "$2",
1006
1029
  width: "100%"
1007
- }), Te = g(
1008
- ({ type: o = "text", label: e, error: r, style: a, css: i, suffix: s, id: l, ...$ }, u) => {
1030
+ }), Te = u(
1031
+ ({ type: o = "text", label: e, error: r, style: a, css: i, suffix: s, id: l, ...$ }, g) => {
1009
1032
  const x = w();
1010
1033
  return l = l || x, /* @__PURE__ */ c(d, { css: i, children: [
1011
1034
  e && /* @__PURE__ */ t(
@@ -1023,10 +1046,10 @@ const bo = h({
1023
1046
  ),
1024
1047
  /* @__PURE__ */ c(Go, { error: !!r, children: [
1025
1048
  /* @__PURE__ */ t(
1026
- Eo,
1049
+ Yo,
1027
1050
  {
1028
1051
  id: l,
1029
- ref: u,
1052
+ ref: g,
1030
1053
  type: o,
1031
1054
  "aria-invalid": r ? "true" : "false",
1032
1055
  ...$
@@ -1046,7 +1069,7 @@ const bo = h({
1046
1069
  r && /* @__PURE__ */ t(
1047
1070
  d,
1048
1071
  {
1049
- as: H,
1072
+ as: B,
1050
1073
  css: { color: "$red600", marginRight: "$2" },
1051
1074
  size: 24
1052
1075
  }
@@ -1055,15 +1078,15 @@ const bo = h({
1055
1078
  typeof r == "string" && /* @__PURE__ */ t(d, { css: { color: "$red600", fontSize: "$sm", marginTop: "$2" }, children: r })
1056
1079
  ] });
1057
1080
  }
1058
- ), Ko = n("textarea", O), Uo = n("div", X, {
1081
+ ), Ko = n("textarea", N), Uo = n("div", O, {
1059
1082
  display: "flex",
1060
1083
  alignItems: "center",
1061
1084
  gap: "$2",
1062
1085
  width: "100%"
1063
- }), De = g(
1086
+ }), He = u(
1064
1087
  ({ label: o, error: e, style: r, css: a, suffix: i, id: s, ...l }, $) => {
1065
- const u = w();
1066
- return s = s || u, /* @__PURE__ */ c(d, { css: a, children: [
1088
+ const g = w();
1089
+ return s = s || g, /* @__PURE__ */ c(d, { css: a, children: [
1067
1090
  o && /* @__PURE__ */ t(
1068
1091
  d,
1069
1092
  {
@@ -1101,7 +1124,7 @@ const bo = h({
1101
1124
  e && /* @__PURE__ */ t(
1102
1125
  d,
1103
1126
  {
1104
- as: H,
1127
+ as: B,
1105
1128
  css: { color: "$red600", marginRight: "$2" },
1106
1129
  size: 24
1107
1130
  }
@@ -1110,7 +1133,7 @@ const bo = h({
1110
1133
  typeof e == "string" && /* @__PURE__ */ t(d, { css: { color: "$red600", fontSize: "$sm", marginTop: "$2" }, children: e })
1111
1134
  ] });
1112
1135
  }
1113
- ), qo = n(F.Root, {
1136
+ ), _o = n(F.Root, {
1114
1137
  display: "flex",
1115
1138
  alignItems: "center",
1116
1139
  justifyContent: "center",
@@ -1158,14 +1181,14 @@ const bo = h({
1158
1181
  size: "md",
1159
1182
  color: "primary"
1160
1183
  }
1161
- }), Jo = n(F.Indicator, {
1184
+ }), qo = n(F.Indicator, {
1162
1185
  "[data-icon]": {
1163
1186
  display: "none"
1164
1187
  },
1165
1188
  "&[data-state=checked] [data-icon=checked], &[data-state=indeterminate] [data-icon=indeterminate]": {
1166
1189
  display: "block"
1167
1190
  }
1168
- }), Qo = n("label", {
1191
+ }), Jo = n("label", {
1169
1192
  flex: "0 1 auto",
1170
1193
  paddingLeft: "$2",
1171
1194
  variants: {
@@ -1184,7 +1207,7 @@ const bo = h({
1184
1207
  defaultVariants: {
1185
1208
  size: "md"
1186
1209
  }
1187
- }), Be = ({
1210
+ }), De = ({
1188
1211
  id: o,
1189
1212
  size: e,
1190
1213
  label: r,
@@ -1192,13 +1215,13 @@ const bo = h({
1192
1215
  }) => {
1193
1216
  const i = w();
1194
1217
  return o = o || i, /* @__PURE__ */ c(d, { css: { display: "flex", alignItems: "center" }, children: [
1195
- /* @__PURE__ */ t(qo, { id: o, size: e, ...a, children: /* @__PURE__ */ c(Jo, { children: [
1196
- /* @__PURE__ */ t(uo, { "data-icon": "indeterminate" }),
1218
+ /* @__PURE__ */ t(_o, { id: o, size: e, ...a, children: /* @__PURE__ */ c(qo, { children: [
1219
+ /* @__PURE__ */ t(go, { "data-icon": "indeterminate" }),
1197
1220
  /* @__PURE__ */ t(po, { "data-icon": "checked" })
1198
1221
  ] }) }),
1199
- r && /* @__PURE__ */ t(Qo, { htmlFor: o, size: e, children: r })
1222
+ r && /* @__PURE__ */ t(Jo, { htmlFor: o, size: e, children: r })
1200
1223
  ] });
1201
- }, Zo = n(M.Root, {
1224
+ }, Qo = n(W.Root, {
1202
1225
  width: "42px",
1203
1226
  height: "25px",
1204
1227
  backgroundColor: "$gray200",
@@ -1212,7 +1235,7 @@ const bo = h({
1212
1235
  "&[data-state='checked']": {
1213
1236
  backgroundColor: "$green400"
1214
1237
  }
1215
- }), _o = n(M.Thumb, {
1238
+ }), Zo = n(W.Thumb, {
1216
1239
  display: "block",
1217
1240
  width: "21px",
1218
1241
  height: "21px",
@@ -1243,25 +1266,25 @@ const bo = h({
1243
1266
  defaultVariants: {
1244
1267
  size: "md"
1245
1268
  }
1246
- }), He = ({
1269
+ }), Be = ({
1247
1270
  label: o,
1248
1271
  stackProps: e,
1249
1272
  labelProps: r,
1250
1273
  size: a,
1251
1274
  ...i
1252
- }) => /* @__PURE__ */ c(Vo, { direction: "row", align: "center", ...e, children: [
1275
+ }) => /* @__PURE__ */ c(Ao, { direction: "row", align: "center", ...e, children: [
1253
1276
  o && /* @__PURE__ */ t(oe, { size: a, ...r, children: o }),
1254
- /* @__PURE__ */ t(Zo, { ...i, children: /* @__PURE__ */ t(_o, {}) })
1277
+ /* @__PURE__ */ t(Qo, { ...i, children: /* @__PURE__ */ t(Zo, {}) })
1255
1278
  ] });
1256
1279
  export {
1257
1280
  se as Alert,
1258
1281
  ve as Avatar,
1259
1282
  de as Badge,
1260
1283
  d as Box,
1261
- P as Button,
1262
- V as ButtonInToolbar,
1284
+ M as Button,
1285
+ A as ButtonInToolbar,
1263
1286
  pe as Card,
1264
- Be as Checkbox,
1287
+ De as Checkbox,
1265
1288
  Ie as Combobox,
1266
1289
  fe as Dialog,
1267
1290
  xe as DialogActions,
@@ -1271,29 +1294,29 @@ export {
1271
1294
  Se as DropdownMenuIconItem,
1272
1295
  Ce as DropdownMenuItem,
1273
1296
  we as DropdownMenuSeparator,
1274
- Xo as MenuOverlayCard,
1297
+ Oo as MenuOverlayCard,
1275
1298
  he as NavBar,
1276
1299
  be as NavBarItem,
1277
- A as OverlayCard,
1278
- Bo as Popover,
1300
+ P as OverlayCard,
1301
+ Do as Popover,
1279
1302
  Fo as PopoverContent,
1280
1303
  C as PopoverContext,
1281
- Ho as PopoverTrigger,
1304
+ Bo as PopoverTrigger,
1282
1305
  Re as Select,
1283
1306
  ko as Spinner,
1284
- Vo as Stack,
1285
- He as Switch,
1286
- De as TextArea,
1307
+ Ao as Stack,
1308
+ Be as Switch,
1309
+ He as TextArea,
1287
1310
  Te as TextInput,
1288
1311
  ce as Toolbar,
1289
- ge as ToolbarButton,
1312
+ ue as ToolbarButton,
1290
1313
  me as ToolbarSeparator,
1291
1314
  $e as ToolbarToggleGroup,
1292
- ue as ToolbarToggleItem,
1315
+ ge as ToolbarToggleItem,
1293
1316
  le as Tooltip,
1294
1317
  f as css,
1295
- Pe as getCssText,
1296
- Ae as globalCss,
1318
+ Me as getCssText,
1319
+ Pe as globalCss,
1297
1320
  h as keyframes,
1298
1321
  S as menuItemStyles,
1299
1322
  n as styled
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkitektbedriftene/fe-lib",
3
- "version": "5.2.0",
3
+ "version": "5.2.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./oidc": {