@obosbbl/grunnmuren-react 1.14.0-beta.4 → 1.14.0

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.
@@ -5,6 +5,7 @@ interface FormStepProps extends FormProps {
5
5
  heading: string;
6
6
  formStatus: FormStatus;
7
7
  onSubmit: FormEventHandler<HTMLFormElement>;
8
+ onHeaderClick?: (step: number) => void;
8
9
  }
9
10
  export interface FormStepData<T> {
10
11
  formId: string;
@@ -3,13 +3,13 @@ import { jsx as o, jsxs as f, Fragment as O } from "react/jsx-runtime";
3
3
  import { createContext as w, useContext as A, useState as q, useCallback as N, useEffect as fe, useId as $, forwardRef as h, Children as Z, isValidElement as ee, cloneElement as W, useRef as E, useMemo as C, useReducer as ge } from "react";
4
4
  import { ChevronDown as te, Warning as re, InfoCircle as ne, LoadingSpinner as he, CheckCircle as pe, MenuAlt as Ae, Close as xe, ChevronRight as ve, ChevronLeft as Ne } from "@obosbbl/grunnmuren-icons";
5
5
  import { useCollapse as we } from "react-collapsed";
6
- import l from "clsx";
6
+ import c from "clsx";
7
7
  import { useMediaQuery as ae, useUpdateEffect as ye } from "@react-hookz/web";
8
8
  import { mergeRefs as K } from "react-merge-refs";
9
9
  const I = () => {
10
10
  }, Ie = 300, Ce = "duration-300", X = (e) => {
11
11
  const { className: r, ...t } = e;
12
- return /* @__PURE__ */ o("div", { className: l(r, "flex flex-col gap-2"), ...t });
12
+ return /* @__PURE__ */ o("div", { className: c(r, "flex flex-col gap-2"), ...t });
13
13
  }, Y = w({
14
14
  isExpanded: !1,
15
15
  setExpanded: I,
@@ -28,7 +28,7 @@ const I = () => {
28
28
  return /* @__PURE__ */ o(Y.Provider, { value: { onChange: n, ...i }, children: /* @__PURE__ */ o(
29
29
  "div",
30
30
  {
31
- className: l(
31
+ className: c(
32
32
  r,
33
33
  "rounded-sm border-b-2 border-l-4 border-solid",
34
34
  i.isExpanded ? "border-l-green-dark" : "border-l-green"
@@ -37,17 +37,17 @@ const I = () => {
37
37
  }
38
38
  ) });
39
39
  }, Re = (e) => {
40
- const { children: r, className: t, as: n = "h3", ...a } = e, { getToggleProps: s, onChange: i, isExpanded: d } = A(Y), m = s({ onClick: () => i(!d) });
40
+ const { children: r, className: t, as: n = "h3", ...a } = e, { getToggleProps: s, onChange: i, isExpanded: d } = A(Y), u = s({ onClick: () => i(!d) });
41
41
  return /* @__PURE__ */ o(n, { children: /* @__PURE__ */ f(
42
42
  "button",
43
43
  {
44
- className: l(
44
+ className: c(
45
45
  t,
46
46
  "focus-visible:outline-blue-dark aria-expanded:bg-green-dark group flex min-h-[4rem] w-full items-center justify-between px-5 py-4 text-left text-lg font-semibold focus:outline-none focus-visible:outline-4 focus-visible:outline-offset-0 aria-expanded:text-white"
47
47
  ),
48
48
  ...a,
49
- ...m,
50
- id: oe(m["aria-controls"]),
49
+ ...u,
50
+ id: oe(u["aria-controls"]),
51
51
  children: [
52
52
  r,
53
53
  /* @__PURE__ */ o(
@@ -59,19 +59,19 @@ const I = () => {
59
59
  ]
60
60
  }
61
61
  ) });
62
- }, ke = (e) => {
62
+ }, Se = (e) => {
63
63
  const { getCollapseProps: r } = A(Y), { className: t, ...n } = e, a = r();
64
- return /* @__PURE__ */ o("div", { ...a, "aria-labelledby": oe(a.id), children: /* @__PURE__ */ o("div", { className: l(t, "p-5 pb-10"), ...n }) });
64
+ return /* @__PURE__ */ o("div", { ...a, "aria-labelledby": oe(a.id), children: /* @__PURE__ */ o("div", { className: c(t, "p-5 pb-10"), ...n }) });
65
65
  }, oe = (e) => e + "toggle";
66
66
  X.Item = Ee;
67
67
  X.Header = Re;
68
- X.Content = ke;
68
+ X.Content = Se;
69
69
  const ct = (e) => {
70
70
  const { className: r, children: t, heading: n, severity: a = "alert", ...s } = e;
71
71
  return /* @__PURE__ */ o(
72
72
  "section",
73
73
  {
74
- className: l(r, "p-4 md:py-8", {
74
+ className: c(r, "p-4 md:py-8", {
75
75
  "bg-orange-light": a === "info",
76
76
  "bg-red-light": a === "alert"
77
77
  }),
@@ -79,7 +79,7 @@ const ct = (e) => {
79
79
  ...s,
80
80
  children: /* @__PURE__ */ f("div", { className: "flex justify-center", children: [
81
81
  /* @__PURE__ */ o(
82
- Se,
82
+ ke,
83
83
  {
84
84
  className: "mr-4 flex-none md:mr-8 md:text-2xl",
85
85
  severity: a
@@ -92,7 +92,7 @@ const ct = (e) => {
92
92
  ] })
93
93
  }
94
94
  );
95
- }, Se = ({ severity: e, className: r }) => e === "alert" ? /* @__PURE__ */ o(re, { className: l(r, "text-red") }) : /* @__PURE__ */ o(ne, { className: l(r, "text-orange") }), qe = "(prefers-reduced-motion: reduce)", dt = (e = !1) => ae(qe, { initializeWithValue: e });
95
+ }, ke = ({ severity: e, className: r }) => e === "alert" ? /* @__PURE__ */ o(re, { className: c(r, "text-red") }) : /* @__PURE__ */ o(ne, { className: c(r, "text-orange") }), qe = "(prefers-reduced-motion: reduce)", dt = (e = !1) => ae(qe, { initializeWithValue: e });
96
96
  function se(e) {
97
97
  switch (e) {
98
98
  case "gray":
@@ -109,24 +109,24 @@ function se(e) {
109
109
  }
110
110
  const Le = (e) => ae("(max-width: 767.9px)", { initializeWithValue: e });
111
111
  function L(e, r = !0) {
112
- const [t, n] = q("indeterminate"), [a, s] = q(), i = N((c) => {
113
- c.target.checkValidity() && (n("valid"), s(void 0));
112
+ const [t, n] = q("indeterminate"), [a, s] = q(), i = N((l) => {
113
+ l.target.checkValidity() && (n("valid"), s(void 0));
114
114
  }, []), d = N(
115
- (c) => {
116
- t !== "indeterminate" && c.target.checkValidity() && (n("valid"), s(void 0));
115
+ (l) => {
116
+ t !== "indeterminate" && l.target.checkValidity() && (n("valid"), s(void 0));
117
117
  },
118
118
  [t]
119
- ), m = N((c) => {
120
- c.preventDefault();
121
- const u = c.target.validationMessage;
122
- s(u), n("invalid");
119
+ ), u = N((l) => {
120
+ l.preventDefault();
121
+ const m = l.target.validationMessage;
122
+ s(m), n("invalid");
123
123
  }, []);
124
124
  return fe(() => {
125
- var u;
126
- const { current: c } = e;
125
+ var m;
126
+ const { current: l } = e;
127
127
  return r && // @ts-expect-error respect the <form noValidate> attribute if we are rendered inside a form
128
- ((u = c == null ? void 0 : c.form) == null ? void 0 : u.noValidate) !== !0 && (c == null || c.addEventListener("blur", i), c == null || c.addEventListener("input", d), c == null || c.addEventListener("invalid", m)), () => {
129
- c == null || c.removeEventListener("blur", i), c == null || c.removeEventListener("input", d), c == null || c.removeEventListener("invalid", m);
128
+ ((m = l == null ? void 0 : l.form) == null ? void 0 : m.noValidate) !== !0 && (l == null || l.addEventListener("blur", i), l == null || l.addEventListener("input", d), l == null || l.addEventListener("invalid", u)), () => {
129
+ l == null || l.removeEventListener("blur", i), l == null || l.removeEventListener("input", d), l == null || l.removeEventListener("invalid", u);
130
130
  };
131
131
  }, [r, d]), { validity: t, validationMessage: a };
132
132
  }
@@ -143,7 +143,7 @@ const mt = (e) => {
143
143
  image: s,
144
144
  ...i
145
145
  } = e, d = se(r);
146
- return /* @__PURE__ */ o("article", { className: l(t, d, "px-4 py-8 md:py-14"), ...i, children: /* @__PURE__ */ f("div", { className: "container flex flex-col justify-center gap-4 md:flex-row md:gap-12", children: [
146
+ return /* @__PURE__ */ o("article", { className: c(t, d, "px-4 py-8 md:py-14"), ...i, children: /* @__PURE__ */ f("div", { className: "container flex flex-col justify-center gap-4 md:flex-row md:gap-12", children: [
147
147
  s,
148
148
  /* @__PURE__ */ f("div", { className: "max-w-prose", children: [
149
149
  a && /* @__PURE__ */ o("h2", { className: "h3 mb-4", children: a }),
@@ -175,28 +175,28 @@ const mt = (e) => {
175
175
  href: s,
176
176
  loading: i,
177
177
  type: d = "button",
178
- variant: m = "primary",
179
- ...c
180
- } = e, u = A(P), b = Pe[`${a ?? u}-${m}`], p = l(n, b, "button"), v = i ? /* @__PURE__ */ o(Me, { children: t }) : t;
178
+ variant: u = "primary",
179
+ ...l
180
+ } = e, m = A(P), b = Pe[`${a ?? m}-${u}`], p = c(n, b, "button"), x = i ? /* @__PURE__ */ o(Me, { children: t }) : t;
181
181
  return /* @__PURE__ */ o(O, { children: s ? /* @__PURE__ */ o(
182
182
  "a",
183
183
  {
184
184
  "aria-busy": i ? !0 : void 0,
185
- ...c,
185
+ ...l,
186
186
  href: s,
187
187
  ref: r,
188
188
  className: p,
189
- children: v
189
+ children: x
190
190
  }
191
191
  ) : /* @__PURE__ */ o(
192
192
  "button",
193
193
  {
194
194
  "aria-busy": i ? !0 : void 0,
195
- ...c,
195
+ ...l,
196
196
  type: d,
197
197
  ref: r,
198
198
  className: p,
199
- children: v
199
+ children: x
200
200
  }
201
201
  ) });
202
202
  }), Me = (e) => /* @__PURE__ */ f(O, { children: [
@@ -235,7 +235,7 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
235
235
  return /* @__PURE__ */ f(
236
236
  t,
237
237
  {
238
- className: l(
238
+ className: c(
239
239
  a,
240
240
  "grid gap-8 md:grid-flow-col md:grid-cols-[50%,50%] md:gap-0"
241
241
  ),
@@ -253,7 +253,7 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
253
253
  return /* @__PURE__ */ o(
254
254
  "div",
255
255
  {
256
- className: l(t, "md:mx-18 self-center"),
256
+ className: c(t, "md:mx-18 self-center"),
257
257
  ref: r,
258
258
  ...n
259
259
  }
@@ -261,7 +261,7 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
261
261
  }
262
262
  ), Fe = h(
263
263
  (e, r) => {
264
- const { className: t, children: n, ...a } = e, s = A(le), i = l(
264
+ const { className: t, children: n, ...a } = e, s = A(le), i = c(
265
265
  t,
266
266
  "max-md:rounded-b-3xl w-full",
267
267
  s ? "md:rounded-r-3xl" : "md:rounded-l-3xl md:order-1"
@@ -290,7 +290,7 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
290
290
  return /* @__PURE__ */ o(
291
291
  t,
292
292
  {
293
- className: l(n, "relative overflow-hidden rounded-3xl", {
293
+ className: c(n, "relative overflow-hidden rounded-3xl", {
294
294
  "border-2 border-solid bg-white": a === "white",
295
295
  "bg-gray-light": a === "gray"
296
296
  }),
@@ -304,7 +304,7 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
304
304
  return /* @__PURE__ */ o(
305
305
  "img",
306
306
  {
307
- className: l(t, "w-full object-cover"),
307
+ className: c(t, "w-full object-cover"),
308
308
  loading: "lazy",
309
309
  ...n,
310
310
  ref: r
@@ -314,7 +314,7 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
314
314
  ), pt = h(
315
315
  (e, r) => {
316
316
  const { bgColor: t, className: n, ...a } = e, s = se(t);
317
- return /* @__PURE__ */ o("div", { className: l(s, n), children: /* @__PURE__ */ o(
317
+ return /* @__PURE__ */ o("div", { className: c(s, n), children: /* @__PURE__ */ o(
318
318
  "div",
319
319
  {
320
320
  className: "container grid grid-cols-1 gap-12 py-16 md:grid-cols-2 md:py-20 lg:py-24",
@@ -326,14 +326,14 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
326
326
  ), At = h(
327
327
  (e, r) => {
328
328
  const { className: t, ...n } = e;
329
- return /* @__PURE__ */ o("div", { className: l(t, "p-8 md:px-10"), ...n, ref: r });
329
+ return /* @__PURE__ */ o("div", { className: c(t, "p-8 md:px-10"), ...n, ref: r });
330
330
  }
331
331
  ), xt = h((e, r) => {
332
332
  const { className: t, ...n } = e;
333
333
  return /* @__PURE__ */ o(
334
334
  "a",
335
335
  {
336
- className: l(
336
+ className: c(
337
337
  t,
338
338
  "no-underline before:absolute before:left-0 before:top-0 before:block before:h-full before:w-full hover:underline"
339
339
  ),
@@ -350,17 +350,17 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
350
350
  id: s,
351
351
  disableValidation: i = !1,
352
352
  ...d
353
- } = e, m = E(null), { validity: c, validationMessage: u } = L(
354
- m,
353
+ } = e, u = E(null), { validity: l, validationMessage: m } = L(
354
+ u,
355
355
  !i
356
- ), g = R(s), b = g + "err", p = a || u;
356
+ ), g = R(s), b = g + "err", p = a || m;
357
357
  return /* @__PURE__ */ f("div", { className: "grid gap-2", children: [
358
- /* @__PURE__ */ f("label", { className: l(n, "flex cursor-pointer gap-2.5"), children: [
358
+ /* @__PURE__ */ f("label", { className: c(n, "flex cursor-pointer gap-2.5"), children: [
359
359
  /* @__PURE__ */ o(
360
360
  "input",
361
361
  {
362
362
  id: g,
363
- className: l(
363
+ className: c(
364
364
  "checkbox checked:bg-green checked:border-green grid h-[1.25em] w-[1.25em] flex-none translate-y-[0.1em] cursor-pointer appearance-none place-content-center rounded border-2 border-solid bg-white text-white focus:outline-none focus:ring-2",
365
365
  {
366
366
  "border-gray-dark focus:ring-black": !a,
@@ -371,12 +371,12 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
371
371
  type: "checkbox",
372
372
  ...d,
373
373
  "aria-describedby": p ? b : void 0,
374
- "aria-invalid": !!a || c === "invalid"
374
+ "aria-invalid": !!a || l === "invalid"
375
375
  }
376
376
  ),
377
377
  t
378
378
  ] }),
379
- p && /* @__PURE__ */ o(k, { id: b, children: p })
379
+ p && /* @__PURE__ */ o(S, { id: b, children: p })
380
380
  ] });
381
381
  }
382
382
  ), je = {
@@ -398,17 +398,17 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
398
398
  return /* @__PURE__ */ f(
399
399
  "div",
400
400
  {
401
- className: l(
401
+ className: c(
402
402
  "inline-flex items-center gap-0.5 overflow-hidden rounded-lg border-2 text-sm font-semibold",
403
403
  i,
404
404
  r
405
405
  ),
406
406
  children: [
407
- n && /* @__PURE__ */ o("div", { className: l("px-3 py-2", d), children: n }),
407
+ n && /* @__PURE__ */ o("div", { className: c("px-3 py-2", d), children: n }),
408
408
  /* @__PURE__ */ o(
409
409
  "div",
410
410
  {
411
- className: l("flex-1 px-4 py-2", {
411
+ className: c("flex-1 px-4 py-2", {
412
412
  "bg-white": s === "outline"
413
413
  }),
414
414
  children: a
@@ -422,7 +422,7 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
422
422
  return /* @__PURE__ */ o(P.Provider, { value: "white", children: /* @__PURE__ */ o(
423
423
  "footer",
424
424
  {
425
- className: l(
425
+ className: c(
426
426
  r,
427
427
  // calculated height for psuedo element fixes rendering artifict that sometimes occurs on specific screen sizes and zoom levels
428
428
  "bg-blue pt-18 relative pb-12 text-white before:absolute before:-top-px before:left-0 before:right-0 before:h-[calc(1.5rem_+_1px)] before:rounded-b-3xl before:bg-white "
@@ -436,7 +436,7 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
436
436
  return /* @__PURE__ */ f(
437
437
  "form",
438
438
  {
439
- className: l(
439
+ className: c(
440
440
  n,
441
441
  "border-blue-dark block overflow-hidden rounded-b-lg rounded-t-3xl border-2"
442
442
  ),
@@ -452,7 +452,7 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
452
452
  return /* @__PURE__ */ o(
453
453
  "h2",
454
454
  {
455
- className: l(
455
+ className: c(
456
456
  r,
457
457
  "bg-blue-dark p-6 text-xl font-bold text-white md:px-10 md:py-8 md:text-2xl"
458
458
  ),
@@ -465,7 +465,7 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
465
465
  "div",
466
466
  {
467
467
  "aria-live": "polite",
468
- className: l(
468
+ className: c(
469
469
  r,
470
470
  "border-red bg-red-light rounded-lg border-2 p-6 text-sm"
471
471
  ),
@@ -473,12 +473,12 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
473
473
  children: "Beklager! Noe gikk dessverre galt under innesendingen av skjemaet. Prøv gjerne igjen om en stund."
474
474
  }
475
475
  );
476
- }, k = (e) => {
476
+ }, S = (e) => {
477
477
  const { children: r, className: t, ...n } = e;
478
478
  return /* @__PURE__ */ f(
479
479
  "div",
480
480
  {
481
- className: l(
481
+ className: c(
482
482
  t,
483
483
  "bg-red-light text-red flex items-center gap-2 rounded px-2 py-1 text-sm"
484
484
  ),
@@ -492,19 +492,19 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
492
492
  );
493
493
  }, M = (e) => {
494
494
  const { className: r, children: t, ...n } = e;
495
- return /* @__PURE__ */ o("div", { className: l(r, "text-gray-dark text-sm"), ...n, children: t });
495
+ return /* @__PURE__ */ o("div", { className: c(r, "text-gray-dark text-sm"), ...n, children: t });
496
496
  }, z = (e) => {
497
497
  const { className: r, children: t, isRequired: n, isInvalid: a, ...s } = e;
498
498
  return /* @__PURE__ */ f(
499
499
  "label",
500
500
  {
501
- className: l(r, "block cursor-pointer font-semibold"),
501
+ className: c(r, "block cursor-pointer font-semibold"),
502
502
  ...s,
503
503
  children: [
504
504
  n && /* @__PURE__ */ o(
505
505
  "span",
506
506
  {
507
- className: l(
507
+ className: c(
508
508
  "mr-1 select-none",
509
509
  a ? "text-red" : "text-blue"
510
510
  ),
@@ -520,7 +520,7 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
520
520
  return /* @__PURE__ */ f(
521
521
  "div",
522
522
  {
523
- className: l(
523
+ className: c(
524
524
  r,
525
525
  "bg-gray-lightest flex flex-col gap-8 p-8 text-center"
526
526
  ),
@@ -549,7 +549,7 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
549
549
  type: "button",
550
550
  "aria-disabled": t,
551
551
  onClick: a,
552
- className: l(
552
+ className: c(
553
553
  r,
554
554
  "border-blue-dark w-full rounded-t-lg border-2 py-4 pl-4 md:py-8 ",
555
555
  {
@@ -592,7 +592,7 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
592
592
  return /* @__PURE__ */ f(
593
593
  "h2",
594
594
  {
595
- className: l(
595
+ className: c(
596
596
  "grid grid-cols-[auto_1fr] grid-rows-[1fr_auto] items-center text-left text-xl font-bold md:text-2xl",
597
597
  {
598
598
  "text-white": !r
@@ -602,7 +602,7 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
602
602
  /* @__PURE__ */ o(
603
603
  "div",
604
604
  {
605
- className: l(
605
+ className: c(
606
606
  "row-span-2 mr-4 flex h-10 w-10 items-center justify-center self-center rounded-full border-2 font-bold md:h-12 md:w-12",
607
607
  {
608
608
  "border-white text-white": !r,
@@ -618,7 +618,7 @@ const P = w("standard"), le = w(!0), ze = (e, r) => {
618
618
  r && /* @__PURE__ */ o(
619
619
  "div",
620
620
  {
621
- className: l(
621
+ className: c(
622
622
  "text-base font-normal",
623
623
  a === "completed" ? "text-white" : "text-black"
624
624
  ),
@@ -708,7 +708,7 @@ function Rt({ children: e }) {
708
708
  }), n = C(() => [r, t], [r, t]);
709
709
  return /* @__PURE__ */ o(Q.Provider, { value: n, children: e });
710
710
  }
711
- const kt = (e) => {
711
+ const St = (e) => {
712
712
  const {
713
713
  children: r,
714
714
  heading: t,
@@ -716,34 +716,35 @@ const kt = (e) => {
716
716
  formStatus: a = "blank",
717
717
  onSubmit: s,
718
718
  className: i,
719
- ...d
720
- } = e, { isActive: m, setActiveStep: c, activeStep: u } = Xe(n), g = E(null), b = N(() => {
721
- n < u && c(n);
722
- }, [u, n, c]);
719
+ onHeaderClick: d,
720
+ ...u
721
+ } = e, { isActive: l, setActiveStep: m, activeStep: g } = Xe(n), b = E(null), p = N(() => {
722
+ n < g && (d == null || d(n), m(n));
723
+ }, [g, n, m, d]);
723
724
  return ye(() => {
724
- var p;
725
- m && ((p = g.current) == null || p.scrollIntoView({ behavior: "smooth" }));
726
- }, [m]), /* @__PURE__ */ f(
725
+ var x;
726
+ l && ((x = b.current) == null || x.scrollIntoView({ behavior: "smooth" }));
727
+ }, [l]), /* @__PURE__ */ f(
727
728
  "form",
728
729
  {
729
- className: l("block", i, {
730
- "border-none": a === "completed" && !m
730
+ className: c("block", i, {
731
+ "border-none": a === "completed" && !l
731
732
  }),
732
733
  onSubmit: s,
733
- ref: g,
734
- ...d,
734
+ ref: b,
735
+ ...u,
735
736
  children: [
736
737
  /* @__PURE__ */ o(
737
738
  We,
738
739
  {
739
740
  step: n,
740
741
  formStatus: a,
741
- collapsed: !m,
742
- onClick: b,
742
+ collapsed: !l,
743
+ onClick: p,
743
744
  children: t
744
745
  }
745
746
  ),
746
- m && /* @__PURE__ */ o("div", { className: "border-blue-dark relative rounded-b-lg border-2 p-6 md:p-10", children: r })
747
+ l && /* @__PURE__ */ o("div", { className: "border-blue-dark relative rounded-b-lg border-2 p-6 md:p-10", children: r })
747
748
  ]
748
749
  }
749
750
  );
@@ -751,7 +752,7 @@ const kt = (e) => {
751
752
  function ce(e) {
752
753
  return e !== "vertical-split" && e !== "below-center" && e !== "below-left";
753
754
  }
754
- const V = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 }), St = h((e, r) => {
755
+ const V = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 }), kt = h((e, r) => {
755
756
  const {
756
757
  bgColor: t = "white",
757
758
  children: n,
@@ -759,30 +760,30 @@ const V = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
759
760
  contentPosition: s = "below-center",
760
761
  image: i,
761
762
  ...d
762
- } = e, m = i != null, c = m ? s : "below-center", u = C(
763
+ } = e, u = i != null, l = u ? s : "below-center", m = C(
763
764
  () => ({
764
765
  bgColor: t,
765
- contentPosition: c,
766
- hasImage: m
766
+ contentPosition: l,
767
+ hasImage: u
767
768
  }),
768
- [t, c, m]
769
+ [t, l, u]
769
770
  );
770
771
  return /* @__PURE__ */ o(
771
772
  P.Provider,
772
773
  {
773
774
  value: t === "white" ? "standard" : "mint",
774
- children: /* @__PURE__ */ o(V.Provider, { value: u, children: /* @__PURE__ */ f(
775
+ children: /* @__PURE__ */ o(V.Provider, { value: m, children: /* @__PURE__ */ f(
775
776
  "div",
776
777
  {
777
- className: l(
778
+ className: c(
778
779
  a,
779
780
  // disable padding on small screens so the hero image is flush with the screen edges
780
781
  "container px-0 md:grid lg:px-4",
781
782
  {
782
- "md:grid-cols-[50%,50%]": c === "vertical-split"
783
+ "md:grid-cols-[50%,50%]": l === "vertical-split"
783
784
  }
784
785
  ),
785
- style: ce(c) ? { gridTemplateAreas: '"hero"' } : void 0,
786
+ style: ce(l) ? { gridTemplateAreas: '"hero"' } : void 0,
786
787
  ...d,
787
788
  ref: r,
788
789
  children: [
@@ -799,7 +800,7 @@ const V = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
799
800
  return /* @__PURE__ */ f(
800
801
  "picture",
801
802
  {
802
- className: l(e.className, "aspect-w-6 aspect-h-7 block", {
803
+ className: c(e.className, "aspect-w-6 aspect-h-7 block", {
803
804
  "sm:aspect-w-8 sm:aspect-h-4": t !== "vertical-split",
804
805
  // calculate a square aspect ratio
805
806
  "sm:aspect-w-8 sm:aspect-h-8": t === "vertical-split"
@@ -823,11 +824,11 @@ const V = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
823
824
  }
824
825
  ), Lt = h(
825
826
  (e, r) => {
826
- const { bgColor: t, contentPosition: n, hasImage: a } = A(V), { children: s, className: i, heading: d, description: m, ...c } = e, u = ce(n);
827
+ const { bgColor: t, contentPosition: n, hasImage: a } = A(V), { children: s, className: i, heading: d, description: u, ...l } = e, m = ce(n);
827
828
  return /* @__PURE__ */ f(
828
829
  "div",
829
830
  {
830
- className: l(
831
+ className: c(
831
832
  i,
832
833
  "relative grid grid-flow-row grid-cols-[minmax(auto,_37rem)] content-center gap-6 rounded-3xl px-6 py-10 text-center max-md:mx-4 md:p-12",
833
834
  {
@@ -846,7 +847,7 @@ const V = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
846
847
  // Below left style
847
848
  "md:-mt-32 md:ml-[8%] md:max-w-[58%] md:text-left": n === "below-left",
848
849
  // styles for when the contain is fully contained within the image
849
- "md:mx-32 md:my-9 md:w-2/5": u,
850
+ "md:mx-32 md:my-9 md:w-2/5": m,
850
851
  "self-end justify-self-start": n === "bottom-left",
851
852
  "self-start justify-self-start": n === "top-left",
852
853
  "self-start justify-self-end": n === "top-right",
@@ -854,12 +855,12 @@ const V = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
854
855
  "self-center justify-self-center": n === "center"
855
856
  }
856
857
  ),
857
- ...c,
858
- style: u ? { gridArea: "hero" } : void 0,
858
+ ...l,
859
+ style: m ? { gridArea: "hero" } : void 0,
859
860
  ref: r,
860
861
  children: [
861
862
  /* @__PURE__ */ o("h1", { children: d }),
862
- m && /* @__PURE__ */ o("p", { className: "text-lg font-semibold md:text-xl", children: m }),
863
+ u && /* @__PURE__ */ o("p", { className: "text-lg font-semibold md:text-xl", children: u }),
863
864
  s
864
865
  ]
865
866
  }
@@ -871,7 +872,7 @@ const V = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
871
872
  return /* @__PURE__ */ o(
872
873
  "div",
873
874
  {
874
- className: l(
875
+ className: c(
875
876
  t,
876
877
  "grid items-center justify-center justify-items-center gap-4 md:grid-flow-col",
877
878
  // Left align actions/buttons
@@ -892,13 +893,13 @@ const V = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
892
893
  as: s,
893
894
  type: i,
894
895
  rightAddon: d,
895
- leftAddon: m,
896
- ...c
897
- } = e, u = s ?? "input", g = Qe(u, i);
896
+ leftAddon: u,
897
+ ...l
898
+ } = e, m = s ?? "input", g = Qe(m, i);
898
899
  return /* @__PURE__ */ f(
899
900
  "div",
900
901
  {
901
- className: l(
902
+ className: c(
902
903
  t,
903
904
  "relative flex items-center rounded-lg border border-b-[3px] focus-within:-ml-[2px] focus-within:-mt-[2px] focus-within:border-[3px] focus-within:shadow",
904
905
  {
@@ -906,21 +907,21 @@ const V = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
906
907
  "border-red focus-within:border-red": n,
907
908
  "w-fit": a != null,
908
909
  "w-full": a == null,
909
- "pl-4": m,
910
+ "pl-4": u,
910
911
  "pr-4": d
911
912
  }
912
913
  ),
913
914
  children: [
914
- m,
915
+ u,
915
916
  /* @__PURE__ */ o(
916
- u,
917
+ m,
917
918
  {
918
919
  "aria-invalid": n,
919
920
  ref: r,
920
921
  className: "focus:none placeholder-gray w-full rounded-lg border-none px-4 py-3.5 focus:outline-none",
921
922
  size: a,
922
923
  type: g,
923
- ...c
924
+ ...l
924
925
  }
925
926
  ),
926
927
  d
@@ -940,7 +941,7 @@ const Mt = (e) => {
940
941
  e.icon,
941
942
  e.children
942
943
  ] });
943
- }, S = w({
944
+ }, k = w({
944
945
  setIsExpanded: I,
945
946
  isExpanded: !1,
946
947
  collapsibleId: ""
@@ -949,10 +950,10 @@ const Mt = (e) => {
949
950
  () => ({ isExpanded: s, setIsExpanded: i, collapsibleId: a }),
950
951
  [s, a]
951
952
  );
952
- return /* @__PURE__ */ o(P.Provider, { value: "white", children: /* @__PURE__ */ o(S.Provider, { value: d, children: /* @__PURE__ */ o(
953
+ return /* @__PURE__ */ o(P.Provider, { value: "white", children: /* @__PURE__ */ o(k.Provider, { value: d, children: /* @__PURE__ */ o(
953
954
  "div",
954
955
  {
955
- className: l(
956
+ className: c(
956
957
  r,
957
958
  "bg-blue relative pb-12 pt-6 text-white before:absolute before:bottom-0 before:left-0 before:right-0 before:h-6 before:rounded-t-3xl before:bg-white md:pb-14 md:pt-8"
958
959
  ),
@@ -961,11 +962,11 @@ const Mt = (e) => {
961
962
  }
962
963
  ) }) });
963
964
  }, Vt = (e) => {
964
- const { className: r, children: t, ...n } = e, { isExpanded: a } = A(S);
965
+ const { className: r, children: t, ...n } = e, { isExpanded: a } = A(k);
965
966
  return /* @__PURE__ */ o(
966
967
  "nav",
967
968
  {
968
- className: l(
969
+ className: c(
969
970
  r,
970
971
  "my-8 flex flex-col md:mb-0 md:flex md:flex-row md:flex-wrap md:gap-x-8",
971
972
  {
@@ -983,7 +984,7 @@ const Mt = (e) => {
983
984
  "a",
984
985
  {
985
986
  "aria-current": t ? "page" : void 0,
986
- className: l(
987
+ className: c(
987
988
  n,
988
989
  "border-b border-[#0156E0] py-3 no-underline md:border-b-2 md:border-transparent md:py-2 md:hover:border-white",
989
990
  {
@@ -997,7 +998,7 @@ const Mt = (e) => {
997
998
  );
998
999
  }
999
1000
  ), Ue = () => {
1000
- const { isExpanded: e, setIsExpanded: r, collapsibleId: t } = A(S);
1001
+ const { isExpanded: e, setIsExpanded: r, collapsibleId: t } = A(k);
1001
1002
  let n = Ae, a = "Meny";
1002
1003
  return e && (n = xe, a = "Lukk"), /* @__PURE__ */ f(
1003
1004
  "button",
@@ -1018,7 +1019,7 @@ const Mt = (e) => {
1018
1019
  return /* @__PURE__ */ f(
1019
1020
  "div",
1020
1021
  {
1021
- className: l(r, "flex items-center justify-between gap-8"),
1022
+ className: c(r, "flex items-center justify-between gap-8"),
1022
1023
  ...a,
1023
1024
  children: [
1024
1025
  n,
@@ -1028,13 +1029,13 @@ const Mt = (e) => {
1028
1029
  }
1029
1030
  );
1030
1031
  }, Jt = (e) => {
1031
- const { className: r, children: t, ...n } = e, { collapsibleId: a, isExpanded: s } = A(S);
1032
+ const { className: r, children: t, ...n } = e, { collapsibleId: a, isExpanded: s } = A(k);
1032
1033
  return /* @__PURE__ */ o(
1033
1034
  "div",
1034
1035
  {
1035
1036
  ...n,
1036
1037
  "aria-hidden": !s,
1037
- className: l(r, "md:-mb-8 md:block", {
1038
+ className: c(r, "md:-mb-8 md:block", {
1038
1039
  hidden: !s
1039
1040
  }),
1040
1041
  id: a,
@@ -1042,7 +1043,7 @@ const Mt = (e) => {
1042
1043
  }
1043
1044
  );
1044
1045
  }, jt = (e) => {
1045
- const { isExpanded: r } = A(S), t = Le(!1);
1046
+ const { isExpanded: r } = A(k), t = Le(!1);
1046
1047
  return !r || !t ? null : /* @__PURE__ */ o(O, { children: e.children });
1047
1048
  }, y = 2, T = w({ currentPage: 0, pageCount: 0 }), Ot = (e) => {
1048
1049
  const {
@@ -1053,9 +1054,9 @@ const Mt = (e) => {
1053
1054
  getItemHref: s,
1054
1055
  getItemAriaLabel: i,
1055
1056
  nextPageAriaLabel: d,
1056
- prevPageAriaLabel: m,
1057
- ...c
1058
- } = e, u = C(
1057
+ prevPageAriaLabel: u,
1058
+ ...l
1059
+ } = e, m = C(
1059
1060
  () => ({
1060
1061
  currentPage: Math.max(1, Math.min(t, n)),
1061
1062
  pageCount: Math.max(1, n)
@@ -1064,16 +1065,16 @@ const Mt = (e) => {
1064
1065
  ), g = (b) => (p) => {
1065
1066
  a && (p.preventDefault(), a(b));
1066
1067
  };
1067
- return /* @__PURE__ */ o(T.Provider, { value: u, children: /* @__PURE__ */ f(
1068
+ return /* @__PURE__ */ o(T.Provider, { value: m, children: /* @__PURE__ */ f(
1068
1069
  "nav",
1069
1070
  {
1070
- className: l("flex justify-center gap-2 sm:gap-4", r),
1071
- ...c,
1071
+ className: c("flex justify-center gap-2 sm:gap-4", r),
1072
+ ...l,
1072
1073
  children: [
1073
1074
  /* @__PURE__ */ o(
1074
- He,
1075
+ De,
1075
1076
  {
1076
- "aria-label": m,
1077
+ "aria-label": u,
1077
1078
  href: s(t - 1),
1078
1079
  onClick: g(t - 1)
1079
1080
  }
@@ -1088,7 +1089,7 @@ const Mt = (e) => {
1088
1089
  selected: t === 1
1089
1090
  }
1090
1091
  ),
1091
- n > 2 + y * 2 && t > y + 2 && /* @__PURE__ */ o(De, {}),
1092
+ n > 2 + y * 2 && t > y + 2 && /* @__PURE__ */ o(He, {}),
1092
1093
  /* @__PURE__ */ o(Ge, { children: (b) => /* @__PURE__ */ o(
1093
1094
  G,
1094
1095
  {
@@ -1124,7 +1125,7 @@ const Mt = (e) => {
1124
1125
  children: /* @__PURE__ */ o(ve, {})
1125
1126
  }
1126
1127
  );
1127
- }), He = h((e, r) => {
1128
+ }), De = h((e, r) => {
1128
1129
  const { currentPage: t } = A(T), n = t <= 1;
1129
1130
  return /* @__PURE__ */ o(
1130
1131
  U,
@@ -1142,7 +1143,7 @@ const Mt = (e) => {
1142
1143
  return /* @__PURE__ */ o(
1143
1144
  "a",
1144
1145
  {
1145
- className: l(
1146
+ className: c(
1146
1147
  t,
1147
1148
  "aria-[current]:border-green hover:bg-gray-lightest flex h-9 w-9 items-center justify-center rounded-lg border-2 border-transparent no-underline sm:h-10 sm:w-10"
1148
1149
  ),
@@ -1150,7 +1151,7 @@ const Mt = (e) => {
1150
1151
  ...n
1151
1152
  }
1152
1153
  );
1153
- }), De = () => /* @__PURE__ */ o("span", { className: "flex h-9 w-9 cursor-default items-center justify-center border-2 border-transparent sm:h-10 sm:w-10", children: "..." }), Ge = ({ children: e }) => {
1154
+ }), He = () => /* @__PURE__ */ o("span", { className: "flex h-9 w-9 cursor-default items-center justify-center border-2 border-transparent sm:h-10 sm:w-10", children: "..." }), Ge = ({ children: e }) => {
1154
1155
  const { currentPage: r, pageCount: t } = A(T), n = Math.min(
1155
1156
  Math.max(2 + y * 2, r + y),
1156
1157
  t
@@ -1172,17 +1173,17 @@ const Mt = (e) => {
1172
1173
  value: void 0,
1173
1174
  error: !1
1174
1175
  }), Zt = h((e, r) => {
1175
- const { children: t, className: n, ...a } = e, { defaultValue: s, isControlled: i, name: d, onChange: m, required: c, value: u, error: g } = A(me);
1176
- return /* @__PURE__ */ f("label", { className: l(n, "flex cursor-pointer gap-2.5"), children: [
1176
+ const { children: t, className: n, ...a } = e, { defaultValue: s, isControlled: i, name: d, onChange: u, required: l, value: m, error: g } = A(me);
1177
+ return /* @__PURE__ */ f("label", { className: c(n, "flex cursor-pointer gap-2.5"), children: [
1177
1178
  /* @__PURE__ */ o(
1178
1179
  "input",
1179
1180
  {
1180
- className: l("radio", g && "border-red"),
1181
+ className: c("radio", g && "border-red"),
1181
1182
  defaultChecked: i ? void 0 : a.value === s,
1182
- checked: i ? a.value === u : void 0,
1183
+ checked: i ? a.value === m : void 0,
1183
1184
  name: d,
1184
- onChange: i ? m : void 0,
1185
- required: c,
1185
+ onChange: i ? u : void 0,
1186
+ required: l,
1186
1187
  type: "radio",
1187
1188
  ref: r,
1188
1189
  ...a
@@ -1198,14 +1199,14 @@ const Mt = (e) => {
1198
1199
  description: s,
1199
1200
  error: i,
1200
1201
  id: d,
1201
- children: m,
1202
- label: c,
1203
- name: u,
1202
+ children: u,
1203
+ label: l,
1204
+ name: m,
1204
1205
  onChange: g,
1205
1206
  required: b,
1206
1207
  value: p,
1207
- ...v
1208
- } = e, x = N(
1208
+ ...x
1209
+ } = e, v = N(
1209
1210
  (ue) => {
1210
1211
  const be = ue.target.value;
1211
1212
  g == null || g(be);
@@ -1215,32 +1216,32 @@ const Mt = (e) => {
1215
1216
  () => ({
1216
1217
  defaultValue: a,
1217
1218
  isControlled: t,
1218
- name: u,
1219
- onChange: x,
1219
+ name: m,
1220
+ onChange: v,
1220
1221
  required: b,
1221
1222
  value: p,
1222
1223
  error: !!i
1223
1224
  }),
1224
- [a, t, u, x, b, p, i]
1225
- ), J = R(d), B = `${J}:label`, H = `${J}:help`, D = J + "err", j = i;
1225
+ [a, t, m, v, b, p, i]
1226
+ ), J = R(d), B = `${J}:label`, D = `${J}:help`, H = J + "err", j = i;
1226
1227
  return /* @__PURE__ */ o(me.Provider, { value: F, children: /* @__PURE__ */ f(
1227
1228
  "div",
1228
1229
  {
1229
- "aria-describedby": l({
1230
- [D]: j,
1231
- [H]: s
1230
+ "aria-describedby": c({
1231
+ [H]: j,
1232
+ [D]: s
1232
1233
  }) || void 0,
1233
1234
  "aria-invalid": !!i,
1234
- "aria-labelledby": c ? B : void 0,
1235
- className: l(n, "flex flex-col gap-4"),
1235
+ "aria-labelledby": l ? B : void 0,
1236
+ className: c(n, "flex flex-col gap-4"),
1236
1237
  role: "radiogroup",
1237
1238
  ref: r,
1238
- ...v,
1239
+ ...x,
1239
1240
  children: [
1240
- c && /* @__PURE__ */ o(z, { id: B, isRequired: b, isInvalid: !!i, children: c }),
1241
- s && /* @__PURE__ */ o(M, { id: H, children: s }),
1242
- m,
1243
- j && /* @__PURE__ */ o(k, { id: D, children: j })
1241
+ l && /* @__PURE__ */ o(z, { id: B, isRequired: b, isInvalid: !!i, children: l }),
1242
+ s && /* @__PURE__ */ o(M, { id: D, children: s }),
1243
+ u,
1244
+ j && /* @__PURE__ */ o(S, { id: H, children: j })
1244
1245
  ]
1245
1246
  }
1246
1247
  ) });
@@ -1248,13 +1249,13 @@ const Mt = (e) => {
1248
1249
  ), _e = h(
1249
1250
  (e, r) => {
1250
1251
  const { children: t, className: n, isInvalid: a, size: s, ...i } = e, d = s === "small";
1251
- return /* @__PURE__ */ f("div", { className: l(n, "relative", d && "text-sm"), children: [
1252
+ return /* @__PURE__ */ f("div", { className: c(n, "relative", d && "text-sm"), children: [
1252
1253
  /* @__PURE__ */ o(
1253
1254
  "select",
1254
1255
  {
1255
1256
  "aria-invalid": a,
1256
1257
  ...i,
1257
- className: l(
1258
+ className: c(
1258
1259
  "w-full cursor-pointer appearance-none border border-b-[3px] bg-white focus:-ml-0.5 focus:-mt-0.5 focus:border-[3px] focus:shadow focus:outline-none",
1259
1260
  d ? "rounded px-3.5 py-2" : "rounded-lg px-4 py-3.5",
1260
1261
  a ? "border-red focus:border-red" : "focus:border-blue-dark border-black"
@@ -1266,7 +1267,7 @@ const Mt = (e) => {
1266
1267
  /* @__PURE__ */ o(
1267
1268
  te,
1268
1269
  {
1269
- className: l(
1270
+ className: c(
1270
1271
  "pointer-events-none absolute bottom-0 top-0 my-auto",
1271
1272
  d ? "right-3.5" : "right-4"
1272
1273
  )
@@ -1283,17 +1284,17 @@ const Mt = (e) => {
1283
1284
  label: s,
1284
1285
  disableValidation: i = !1,
1285
1286
  ...d
1286
- } = e, m = E(null), c = K([m, r]), { validity: u, validationMessage: g } = L(
1287
- m,
1287
+ } = e, u = E(null), l = K([u, r]), { validity: m, validationMessage: g } = L(
1288
+ u,
1288
1289
  !i
1289
- ), b = R(a), p = b + "help", v = b + "err", x = n || g;
1290
+ ), b = R(a), p = b + "help", x = b + "err", v = n || g;
1290
1291
  return /* @__PURE__ */ f("div", { className: "grid gap-2", children: [
1291
1292
  /* @__PURE__ */ o(
1292
1293
  z,
1293
1294
  {
1294
1295
  htmlFor: b,
1295
1296
  isRequired: e.required,
1296
- isInvalid: !!n || u === "invalid",
1297
+ isInvalid: !!n || m === "invalid",
1297
1298
  children: s
1298
1299
  }
1299
1300
  ),
@@ -1302,16 +1303,16 @@ const Mt = (e) => {
1302
1303
  _e,
1303
1304
  {
1304
1305
  id: b,
1305
- ref: c,
1306
+ ref: l,
1306
1307
  ...d,
1307
- isInvalid: !!n || u === "invalid",
1308
- "aria-describedby": l({
1309
- [v]: x,
1308
+ isInvalid: !!n || m === "invalid",
1309
+ "aria-describedby": c({
1310
+ [x]: v,
1310
1311
  [p]: t
1311
1312
  }) || void 0
1312
1313
  }
1313
1314
  ),
1314
- x && /* @__PURE__ */ o(k, { id: v, children: x })
1315
+ v && /* @__PURE__ */ o(S, { id: x, children: v })
1315
1316
  ] });
1316
1317
  }
1317
1318
  ), Xt = (e) => {
@@ -1321,7 +1322,7 @@ const Mt = (e) => {
1321
1322
  /* @__PURE__ */ o(
1322
1323
  "h3",
1323
1324
  {
1324
- className: l(
1325
+ className: c(
1325
1326
  "snackbar-header min-w-0 max-w-prose text-base font-medium",
1326
1327
  {
1327
1328
  "overflow-hidden overflow-ellipsis whitespace-nowrap": !a
@@ -1346,7 +1347,7 @@ const Mt = (e) => {
1346
1347
  }, _ = (e) => /* @__PURE__ */ o(
1347
1348
  "button",
1348
1349
  {
1349
- className: l(
1350
+ className: c(
1350
1351
  e.className,
1351
1352
  "focus-visible:ring-offset flex-shrink-0 underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-black"
1352
1353
  ),
@@ -1362,7 +1363,7 @@ const Mt = (e) => {
1362
1363
  }
1363
1364
  ), $e = (e) => {
1364
1365
  const { align: r = "center", children: t, className: n, ...a } = e;
1365
- return /* @__PURE__ */ o("ol", { className: l(n, "flex flex-col gap-8 md:gap-12"), ...a, children: Z.map(t, (s) => W(s, {
1366
+ return /* @__PURE__ */ o("ol", { className: c(n, "flex flex-col gap-8 md:gap-12"), ...a, children: Z.map(t, (s) => W(s, {
1366
1367
  align: r
1367
1368
  })) });
1368
1369
  }, et = (e) => {
@@ -1370,7 +1371,7 @@ const Mt = (e) => {
1370
1371
  return /* @__PURE__ */ f(
1371
1372
  "li",
1372
1373
  {
1373
- className: l(
1374
+ className: c(
1374
1375
  r,
1375
1376
  "group relative flex gap-4 text-sm md:gap-8 md:text-base",
1376
1377
  { "items-center": a === "center" }
@@ -1386,7 +1387,7 @@ const Mt = (e) => {
1386
1387
  "span",
1387
1388
  {
1388
1389
  "aria-hidden": !0,
1389
- className: l(
1390
+ className: c(
1390
1391
  "text-green after:bg-gray-light before:bg-gray-light grid h-10 w-10 flex-none place-content-center justify-items-center rounded-full border-2 text-sm font-bold after:absolute after:bottom-0 after:w-0.5 after:translate-x-1/2 group-last:after:hidden md:h-20 md:w-20 md:text-xl",
1391
1392
  {
1392
1393
  "before:absolute before:bottom-1/2 before:top-0 before:w-0.5 before:-translate-y-5 before:translate-x-1/2 after:top-1/2 after:translate-y-5 group-first:before:hidden before:md:-translate-y-10 after:md:translate-y-10": e === "center",
@@ -1406,17 +1407,17 @@ const Qt = h(
1406
1407
  label: s,
1407
1408
  disableValidation: i = !1,
1408
1409
  ...d
1409
- } = e, m = E(null), c = K([m, r]), { validity: u, validationMessage: g } = L(
1410
- m,
1410
+ } = e, u = E(null), l = K([u, r]), { validity: m, validationMessage: g } = L(
1411
+ u,
1411
1412
  !i
1412
- ), b = R(a), p = b + "help", v = b + "err", x = n || g;
1413
+ ), b = R(a), p = b + "help", x = b + "err", v = n || g;
1413
1414
  return /* @__PURE__ */ f("div", { className: "grid gap-2", children: [
1414
1415
  /* @__PURE__ */ o(
1415
1416
  z,
1416
1417
  {
1417
1418
  htmlFor: b,
1418
1419
  isRequired: e.required,
1419
- isInvalid: !!n || u === "invalid",
1420
+ isInvalid: !!n || m === "invalid",
1420
1421
  children: s
1421
1422
  }
1422
1423
  ),
@@ -1425,17 +1426,17 @@ const Qt = h(
1425
1426
  de,
1426
1427
  {
1427
1428
  as: "textarea",
1428
- ref: c,
1429
+ ref: l,
1429
1430
  id: b,
1430
1431
  ...d,
1431
- isInvalid: !!n || u === "invalid",
1432
- "aria-describedby": l({
1433
- [v]: x,
1432
+ isInvalid: !!n || m === "invalid",
1433
+ "aria-describedby": c({
1434
+ [x]: v,
1434
1435
  [p]: t
1435
1436
  }) || void 0
1436
1437
  }
1437
1438
  ),
1438
- x && /* @__PURE__ */ o(k, { id: v, children: x })
1439
+ v && /* @__PURE__ */ o(S, { id: x, children: v })
1439
1440
  ] });
1440
1441
  }
1441
1442
  ), Ut = h(
@@ -1447,18 +1448,18 @@ const Qt = h(
1447
1448
  label: s,
1448
1449
  type: i = "text",
1449
1450
  disableValidation: d = !1,
1450
- ...m
1451
- } = e, c = E(null), { validity: u, validationMessage: g } = L(
1452
- c,
1451
+ ...u
1452
+ } = e, l = E(null), { validity: m, validationMessage: g } = L(
1453
+ l,
1453
1454
  !d
1454
- ), b = R(a), p = b + "help", v = b + "err", x = n || g, F = K([c, r]);
1455
+ ), b = R(a), p = b + "help", x = b + "err", v = n || g, F = K([l, r]);
1455
1456
  return /* @__PURE__ */ f("div", { className: "grid gap-2", children: [
1456
1457
  /* @__PURE__ */ o(
1457
1458
  z,
1458
1459
  {
1459
1460
  htmlFor: b,
1460
1461
  isRequired: e.required,
1461
- isInvalid: !!n || u === "invalid",
1462
+ isInvalid: !!n || m === "invalid",
1462
1463
  children: s
1463
1464
  }
1464
1465
  ),
@@ -1469,21 +1470,21 @@ const Qt = h(
1469
1470
  id: b,
1470
1471
  ref: F,
1471
1472
  type: i,
1472
- ...m,
1473
- isInvalid: !!n || u === "invalid",
1474
- "aria-describedby": l({
1475
- [v]: x,
1473
+ ...u,
1474
+ isInvalid: !!n || m === "invalid",
1475
+ "aria-describedby": c({
1476
+ [x]: v,
1476
1477
  [p]: t
1477
1478
  }) || void 0
1478
1479
  }
1479
1480
  ),
1480
- x && /* @__PURE__ */ o(k, { id: v, children: x })
1481
+ v && /* @__PURE__ */ o(S, { id: x, children: v })
1481
1482
  ] });
1482
1483
  }
1483
1484
  );
1484
1485
  export {
1485
1486
  X as Accordion,
1486
- ke as AccordionContent,
1487
+ Se as AccordionContent,
1487
1488
  Re as AccordionHeader,
1488
1489
  Ee as AccordionItem,
1489
1490
  ct as Alert,
@@ -1502,16 +1503,16 @@ export {
1502
1503
  wt as Footer,
1503
1504
  yt as Form,
1504
1505
  It as FormError,
1505
- k as FormErrorMessage,
1506
+ S as FormErrorMessage,
1506
1507
  Ze as FormHeading,
1507
1508
  M as FormHelperText,
1508
1509
  z as FormLabel,
1509
- kt as FormStep,
1510
+ St as FormStep,
1510
1511
  We as FormStepHeader,
1511
1512
  Ke as FormStepHeaderContent,
1512
1513
  Rt as FormStepProvider,
1513
1514
  Ct as FormSuccess,
1514
- St as Hero,
1515
+ kt as Hero,
1515
1516
  Pt as HeroActions,
1516
1517
  Lt as HeroContent,
1517
1518
  V as HeroContext,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obosbbl/grunnmuren-react",
3
- "version": "1.14.0-beta.4",
3
+ "version": "1.14.0",
4
4
  "description": "OBOS Grunnmuren design system React components",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -17,25 +17,25 @@
17
17
  ],
18
18
  "types": "./dist/index.d.ts",
19
19
  "devDependencies": {
20
- "@storybook/addon-controls": "7.0.22",
21
- "@storybook/addon-docs": "7.0.22",
22
- "@storybook/addon-styling": "1.3.0",
23
- "@storybook/builder-vite": "7.0.22",
24
- "@storybook/react": "7.0.22",
25
- "@storybook/react-vite": "7.0.22",
26
- "@types/react": "18.2.12",
27
- "@types/react-dom": "18.2.5",
28
- "@vitejs/plugin-react": "4.0.0",
20
+ "@storybook/addon-controls": "7.0.26",
21
+ "@storybook/addon-docs": "7.0.26",
22
+ "@storybook/addon-styling": "1.3.2",
23
+ "@storybook/builder-vite": "7.0.26",
24
+ "@storybook/react": "7.0.26",
25
+ "@storybook/react-vite": "7.0.26",
26
+ "@types/react": "18.2.14",
27
+ "@types/react-dom": "18.2.6",
28
+ "@vitejs/plugin-react": "4.0.2",
29
29
  "autoprefixer": "10.4.14",
30
- "postcss": "8.4.24",
30
+ "postcss": "8.4.25",
31
31
  "react": "18.2.0",
32
32
  "react-dom": "18.2.0",
33
33
  "require-from-string": "2.0.2",
34
34
  "rimraf": "5.0.1",
35
- "storybook": "7.0.22",
35
+ "storybook": "7.0.26",
36
36
  "tailwindcss": "3.3.2",
37
37
  "type-fest": "3.12.0",
38
- "vite": "4.3.9",
38
+ "vite": "4.4.2",
39
39
  "@obosbbl/grunnmuren-tailwind": "0.9.1"
40
40
  },
41
41
  "dependencies": {