@obosbbl/grunnmuren-react 1.13.1 → 1.14.0-beta.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.
Files changed (54) hide show
  1. package/dist/Accordion/Accordion.d.ts +7 -7
  2. package/dist/Accordion/stories/Accordion.stories.d.ts +2 -3
  3. package/dist/Alert/Alert.d.ts +1 -1
  4. package/dist/Alert/stories/Alert.stories.d.ts +1 -2
  5. package/dist/Banner/Banner.d.ts +1 -1
  6. package/dist/Banner/BannerImage.d.ts +1 -1
  7. package/dist/Banner/stories/Banner.stories.d.ts +1 -2
  8. package/dist/Button/stories/Button.stories.d.ts +1 -2
  9. package/dist/Campaign/stories/Campaign.stories.d.ts +2 -3
  10. package/dist/Card/stories/Card.stories.d.ts +3 -4
  11. package/dist/Checkbox/stories/Checkbox.stories.d.ts +1 -2
  12. package/dist/Chip/Chip.d.ts +1 -1
  13. package/dist/Chip/stories/Chip.stories.d.ts +1 -2
  14. package/dist/Footer/Footer.d.ts +1 -1
  15. package/dist/Footer/stories/Footer.stories.d.ts +1 -2
  16. package/dist/Form/Form.d.ts +2 -2
  17. package/dist/Form/FormError.d.ts +1 -1
  18. package/dist/Form/FormErrorMessage.d.ts +1 -1
  19. package/dist/Form/FormHelperText.d.ts +1 -1
  20. package/dist/Form/FormLabel.d.ts +1 -1
  21. package/dist/Form/FormSuccess.d.ts +1 -1
  22. package/dist/Form/MultiStep/FormStep.d.ts +16 -0
  23. package/dist/Form/MultiStep/FormStepContext.d.ts +13 -0
  24. package/dist/Form/MultiStep/FormStepHeader.d.ts +18 -0
  25. package/dist/Form/MultiStep/index.d.ts +3 -0
  26. package/dist/Form/index.d.ts +1 -0
  27. package/dist/Form/stories/Form.stories.d.ts +7 -7
  28. package/dist/Hero/stories/Hero.stories.d.ts +2 -3
  29. package/dist/Input/stories/Input.stories.d.ts +1 -2
  30. package/dist/Link/Link.d.ts +1 -1
  31. package/dist/Navbar/Navbar.d.ts +1 -1
  32. package/dist/Navbar/NavbarCollapsible.d.ts +1 -1
  33. package/dist/Navbar/NavbarContent.d.ts +1 -1
  34. package/dist/Navbar/NavbarExpandedMobileContent.d.ts +1 -1
  35. package/dist/Navbar/NavbarItems.d.ts +1 -1
  36. package/dist/Navbar/NavbarMenuButton.d.ts +1 -2
  37. package/dist/Navbar/stories/Navbar.stories.d.ts +1 -2
  38. package/dist/Pagination/Pagination.d.ts +1 -1
  39. package/dist/Pagination/stories/Pagination.stories.d.ts +1 -2
  40. package/dist/Radio/stories/Radio.stories.d.ts +5 -6
  41. package/dist/Select/stories/Select.stories.d.ts +1 -2
  42. package/dist/Snackbar/Snackbar.d.ts +1 -1
  43. package/dist/Snackbar/SnackbarButton.d.ts +1 -1
  44. package/dist/Snackbar/SnackbarContent.d.ts +1 -1
  45. package/dist/Snackbar/stories/Snackbar.stories.d.ts +2 -3
  46. package/dist/StepList/StepList.d.ts +3 -3
  47. package/dist/StepList/stories/StepList.stories.d.ts +2 -3
  48. package/dist/TextArea/stories/TextArea.stories.d.ts +1 -2
  49. package/dist/TextField/stories/TextField.stories.d.ts +2 -3
  50. package/dist/__stories__/Icon.stories.d.ts +1 -2
  51. package/dist/__stories__/PageLayout.stories.d.ts +1 -2
  52. package/dist/__stories__/Typography.stories.d.ts +2 -3
  53. package/dist/grunnmuren.mjs +642 -452
  54. package/package.json +15 -15
@@ -1,30 +1,31 @@
1
1
  'use client';
2
- import { jsx as a, jsxs as g, Fragment as Z } from "react/jsx-runtime";
3
- import he, { createContext as I, useContext as A, useState as k, useCallback as q, useEffect as pe, useId as ee, forwardRef as b, Children as W, isValidElement as te, cloneElement as K, useRef as L, useMemo as M } from "react";
4
- import { ChevronDown as re, Warning as ne, InfoCircle as ae, LoadingSpinner as Ae, MenuAlt as xe, Close as ve, ChevronRight as Ne, ChevronLeft as we } from "@obosbbl/grunnmuren-icons";
5
- import { useCollapse as ye } from "react-collapsed";
2
+ import { jsx as o, jsxs as b, Fragment as Z } from "react/jsx-runtime";
3
+ import pe, { createContext as w, useContext as A, useState as M, useCallback as E, useEffect as Ae, useId as ee, forwardRef as g, Children as W, isValidElement as te, cloneElement as K, useRef as R, useMemo as C, useReducer as ve } from "react";
4
+ import { ChevronDown as re, Warning as ne, InfoCircle as ae, LoadingSpinner as xe, CheckCircle as Ne, MenuAlt as we, Close as ye, ChevronRight as Ie, ChevronLeft as Ee } from "@obosbbl/grunnmuren-icons";
5
+ import { useCollapse as Ce } from "react-collapsed";
6
6
  import l from "clsx";
7
- import Y from "@react-hook/merged-ref";
8
- const y = () => {
9
- }, Ie = 300, Ce = "duration-300", X = (e) => {
7
+ import { useUpdateEffect as Re } from "react-use";
8
+ import X from "@react-hook/merged-ref";
9
+ const I = () => {
10
+ }, Se = 300, ke = "duration-300", Y = (e) => {
10
11
  const { className: r, ...t } = e;
11
- return /* @__PURE__ */ a("div", { className: l(r, "flex flex-col gap-2"), ...t });
12
- }, B = I({
12
+ return /* @__PURE__ */ o("div", { className: l(r, "flex flex-col gap-2"), ...t });
13
+ }, B = w({
13
14
  isExpanded: !1,
14
- setExpanded: y,
15
+ setExpanded: I,
15
16
  // @ts-expect-error noop
16
- getCollapseProps: y,
17
+ getCollapseProps: I,
17
18
  // @ts-expect-error noop
18
- getToggleProps: y,
19
- onChange: y
20
- }), Ee = (e) => {
21
- const { className: r, defaultOpen: t, onChange: n = y, open: s, ...o } = e, i = ye({
19
+ getToggleProps: I,
20
+ onChange: I
21
+ }), qe = (e) => {
22
+ const { className: r, defaultOpen: t, onChange: n = I, open: a, ...s } = e, i = Ce({
22
23
  defaultExpanded: t,
23
- isExpanded: s,
24
- duration: Ie,
24
+ isExpanded: a,
25
+ duration: Se,
25
26
  easing: "cubic-bezier(0.25, 0.1, 0.25, 1)"
26
27
  });
27
- return /* @__PURE__ */ a(B.Provider, { value: { onChange: n, ...i }, children: /* @__PURE__ */ a(
28
+ return /* @__PURE__ */ o(B.Provider, { value: { onChange: n, ...i }, children: /* @__PURE__ */ o(
28
29
  "div",
29
30
  {
30
31
  className: l(
@@ -32,101 +33,101 @@ const y = () => {
32
33
  "rounded-sm border-b-2 border-l-4 border-solid",
33
34
  i.isExpanded ? "border-l-green-dark" : "border-l-green"
34
35
  ),
35
- ...o
36
+ ...s
36
37
  }
37
38
  ) });
38
- }, Re = (e) => {
39
- const { children: r, className: t, as: n = "h3", ...s } = e, { getToggleProps: o, onChange: i, isExpanded: c } = A(B), u = o({ onClick: () => i(!c) });
40
- return /* @__PURE__ */ a(n, { children: /* @__PURE__ */ g(
39
+ }, Me = (e) => {
40
+ const { children: r, className: t, as: n = "h3", ...a } = e, { getToggleProps: s, onChange: i, isExpanded: c } = A(B), u = s({ onClick: () => i(!c) });
41
+ return /* @__PURE__ */ o(n, { children: /* @__PURE__ */ b(
41
42
  "button",
42
43
  {
43
44
  className: l(
44
45
  t,
45
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"
46
47
  ),
47
- ...s,
48
+ ...a,
48
49
  ...u,
49
- id: se(u["aria-controls"]),
50
+ id: oe(u["aria-controls"]),
50
51
  children: [
51
52
  r,
52
- /* @__PURE__ */ a(
53
+ /* @__PURE__ */ o(
53
54
  re,
54
55
  {
55
- className: `shrink-0 text-sm ${Ce} group-aria-expanded:rotate-180`
56
+ className: `shrink-0 text-sm ${ke} group-aria-expanded:rotate-180`
56
57
  }
57
58
  )
58
59
  ]
59
60
  }
60
61
  ) });
61
- }, qe = (e) => {
62
- const { getCollapseProps: r } = A(B), { className: t, ...n } = e, s = r();
63
- return /* @__PURE__ */ a("div", { ...s, "aria-labelledby": se(s.id), children: /* @__PURE__ */ a("div", { className: l(t, "p-5 pb-10"), ...n }) });
64
- }, se = (e) => e + "toggle";
65
- X.Item = Ee;
66
- X.Header = Re;
67
- X.Content = qe;
68
- const ct = (e) => {
69
- const { className: r, children: t, heading: n, severity: s = "alert", ...o } = e;
70
- return /* @__PURE__ */ a(
62
+ }, Le = (e) => {
63
+ const { getCollapseProps: r } = A(B), { 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 }) });
65
+ }, oe = (e) => e + "toggle";
66
+ Y.Item = qe;
67
+ Y.Header = Me;
68
+ Y.Content = Le;
69
+ const vt = (e) => {
70
+ const { className: r, children: t, heading: n, severity: a = "alert", ...s } = e;
71
+ return /* @__PURE__ */ o(
71
72
  "section",
72
73
  {
73
74
  className: l(r, "p-4 md:py-8", {
74
- "bg-orange-light": s === "info",
75
- "bg-red-light": s === "alert"
75
+ "bg-orange-light": a === "info",
76
+ "bg-red-light": a === "alert"
76
77
  }),
77
78
  role: "alert",
78
- ...o,
79
- children: /* @__PURE__ */ g("div", { className: "flex justify-center", children: [
80
- /* @__PURE__ */ a(
81
- ke,
79
+ ...s,
80
+ children: /* @__PURE__ */ b("div", { className: "flex justify-center", children: [
81
+ /* @__PURE__ */ o(
82
+ Pe,
82
83
  {
83
84
  className: "mr-4 flex-none md:mr-8 md:text-2xl",
84
- severity: s
85
+ severity: a
85
86
  }
86
87
  ),
87
- /* @__PURE__ */ g("div", { className: "w-prose flex-initial", children: [
88
- /* @__PURE__ */ a("h2", { className: "h4 mb-2", children: n }),
88
+ /* @__PURE__ */ b("div", { className: "w-prose flex-initial", children: [
89
+ /* @__PURE__ */ o("h2", { className: "h4 mb-2", children: n }),
89
90
  t
90
91
  ] })
91
92
  ] })
92
93
  }
93
94
  );
94
- }, ke = ({ severity: e, className: r }) => e === "alert" ? /* @__PURE__ */ a(ne, { className: l(r, "text-red") }) : /* @__PURE__ */ a(ae, { className: l(r, "text-orange") });
95
- var oe = {}, N = {};
95
+ }, Pe = ({ severity: e, className: r }) => e === "alert" ? /* @__PURE__ */ o(ne, { className: l(r, "text-red") }) : /* @__PURE__ */ o(ae, { className: l(r, "text-orange") });
96
+ var se = {}, N = {};
96
97
  Object.defineProperty(N, "__esModule", { value: !0 });
97
98
  N.isNavigator = N.isBrowser = N.off = N.on = N.noop = void 0;
98
- var Le = function() {
99
+ var ze = function() {
99
100
  };
100
- N.noop = Le;
101
- function Me(e) {
101
+ N.noop = ze;
102
+ function Ve(e) {
102
103
  for (var r = [], t = 1; t < arguments.length; t++)
103
104
  r[t - 1] = arguments[t];
104
105
  e && e.addEventListener && e.addEventListener.apply(e, r);
105
106
  }
106
- N.on = Me;
107
- function ze(e) {
107
+ N.on = Ve;
108
+ function Te(e) {
108
109
  for (var r = [], t = 1; t < arguments.length; t++)
109
110
  r[t - 1] = arguments[t];
110
111
  e && e.removeEventListener && e.removeEventListener.apply(e, r);
111
112
  }
112
- N.off = ze;
113
+ N.off = Te;
113
114
  N.isBrowser = typeof window < "u";
114
115
  N.isNavigator = typeof navigator < "u";
115
- Object.defineProperty(oe, "__esModule", { value: !0 });
116
- var D = he, Pe = N, Se = function(e, r) {
117
- return r !== void 0 ? r : Pe.isBrowser ? window.matchMedia(e).matches : (process.env.NODE_ENV !== "production" && console.warn("`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches."), !1);
118
- }, Ve = function(e, r) {
119
- var t = D.useState(Se(e, r)), n = t[0], s = t[1];
120
- return D.useEffect(function() {
121
- var o = !0, i = window.matchMedia(e), c = function() {
122
- o && s(!!i.matches);
116
+ Object.defineProperty(se, "__esModule", { value: !0 });
117
+ var G = pe, Fe = N, Je = function(e, r) {
118
+ return r !== void 0 ? r : Fe.isBrowser ? window.matchMedia(e).matches : (process.env.NODE_ENV !== "production" && console.warn("`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches."), !1);
119
+ }, Oe = function(e, r) {
120
+ var t = G.useState(Je(e, r)), n = t[0], a = t[1];
121
+ return G.useEffect(function() {
122
+ var s = !0, i = window.matchMedia(e), c = function() {
123
+ s && a(!!i.matches);
123
124
  };
124
- return i.addListener(c), s(i.matches), function() {
125
- o = !1, i.removeListener(c);
125
+ return i.addListener(c), a(i.matches), function() {
126
+ s = !1, i.removeListener(c);
126
127
  };
127
128
  }, [e]), n;
128
- }, ie = oe.default = Ve;
129
- const Je = "(prefers-reduced-motion: reduce)", mt = (e = !1) => ie(Je, e);
129
+ }, ie = se.default = Oe;
130
+ const je = "(prefers-reduced-motion: reduce)", xt = (e = !1) => ie(je, e);
130
131
  function le(e) {
131
132
  switch (e) {
132
133
  case "gray":
@@ -141,50 +142,50 @@ function le(e) {
141
142
  return "bg-sky-light";
142
143
  }
143
144
  }
144
- const Oe = (e) => ie("(max-width: 767.9px)", e);
145
- function z(e, r = !0) {
146
- const [t, n] = k("indeterminate"), [s, o] = k(), i = q((d) => {
147
- d.target.checkValidity() && (n("valid"), o(void 0));
148
- }, []), c = q(
145
+ const Ze = (e) => ie("(max-width: 767.9px)", e);
146
+ function L(e, r = !0) {
147
+ const [t, n] = M("indeterminate"), [a, s] = M(), i = E((d) => {
148
+ d.target.checkValidity() && (n("valid"), s(void 0));
149
+ }, []), c = E(
149
150
  (d) => {
150
- t !== "indeterminate" && d.target.checkValidity() && (n("valid"), o(void 0));
151
+ t !== "indeterminate" && d.target.checkValidity() && (n("valid"), s(void 0));
151
152
  },
152
153
  [t]
153
- ), u = q((d) => {
154
+ ), u = E((d) => {
154
155
  d.preventDefault();
155
156
  const m = d.target.validationMessage;
156
- o(m), n("invalid");
157
+ s(m), n("invalid");
157
158
  }, []);
158
- return pe(() => {
159
+ return Ae(() => {
159
160
  var m;
160
161
  const { current: d } = e;
161
162
  return r && // @ts-expect-error respect the <form noValidate> attribute if we are rendered inside a form
162
163
  ((m = d == null ? void 0 : d.form) == null ? void 0 : m.noValidate) !== !0 && (d == null || d.addEventListener("blur", i), d == null || d.addEventListener("input", c), d == null || d.addEventListener("invalid", u)), () => {
163
164
  d == null || d.removeEventListener("blur", i), d == null || d.removeEventListener("input", c), d == null || d.removeEventListener("invalid", u);
164
165
  };
165
- }, [r, c]), { validity: t, validationMessage: s };
166
+ }, [r, c]), { validity: t, validationMessage: a };
166
167
  }
167
- function C(e) {
168
+ function S(e) {
168
169
  const r = ee();
169
170
  return e ?? r;
170
171
  }
171
- const ut = (e) => {
172
+ const Nt = (e) => {
172
173
  const {
173
174
  bgColor: r,
174
175
  className: t,
175
176
  children: n,
176
- heading: s,
177
- image: o,
177
+ heading: a,
178
+ image: s,
178
179
  ...i
179
180
  } = e, c = le(r);
180
- return /* @__PURE__ */ a("article", { className: l(t, c, "px-4 py-8 md:py-14"), ...i, children: /* @__PURE__ */ g("div", { className: "container flex flex-col justify-center gap-4 md:flex-row md:gap-12", children: [
181
- o,
182
- /* @__PURE__ */ g("div", { className: "max-w-prose", children: [
183
- s && /* @__PURE__ */ a("h2", { className: "h3 mb-4", children: s }),
181
+ return /* @__PURE__ */ o("article", { className: l(t, c, "px-4 py-8 md:py-14"), ...i, children: /* @__PURE__ */ b("div", { className: "container flex flex-col justify-center gap-4 md:flex-row md:gap-12", children: [
182
+ s,
183
+ /* @__PURE__ */ b("div", { className: "max-w-prose", children: [
184
+ a && /* @__PURE__ */ o("h2", { className: "h3 mb-4", children: a }),
184
185
  n
185
186
  ] })
186
187
  ] }) });
187
- }, ft = (e) => /* @__PURE__ */ a(
188
+ }, wt = (e) => /* @__PURE__ */ o(
188
189
  "img",
189
190
  {
190
191
  loading: "lazy",
@@ -192,7 +193,7 @@ const ut = (e) => {
192
193
  className: "w-20 flex-none self-center md:w-32 md:self-start",
193
194
  ...e
194
195
  }
195
- ), Te = {
196
+ ), We = {
196
197
  "standard-primary": "bg-green border-green text-white",
197
198
  "standard-secondary": "bg-white border-green text-black",
198
199
  "mint-primary": "bg-mint border-mint text-black",
@@ -201,28 +202,28 @@ const ut = (e) => {
201
202
  "white-secondary": "bg-transparent border-white text-white",
202
203
  "light-green-primary": "bg-green-light border-green-light text-black",
203
204
  "light-green-secondary": "bg-transparent border-green-light text-green-light"
204
- }, gt = b((e, r) => {
205
+ }, yt = g((e, r) => {
205
206
  const {
206
207
  children: t,
207
208
  className: n,
208
- color: s,
209
- href: o,
209
+ color: a,
210
+ href: s,
210
211
  loading: i,
211
212
  type: c = "button",
212
213
  variant: u = "primary",
213
214
  ...d
214
- } = e, m = A(P), f = Te[`${s ?? m}-${u}`], p = l(n, f, "button"), v = i ? /* @__PURE__ */ a(je, { children: t }) : t;
215
- return /* @__PURE__ */ a(Z, { children: o ? /* @__PURE__ */ a(
215
+ } = e, m = A(P), f = We[`${a ?? m}-${u}`], p = l(n, f, "button"), x = i ? /* @__PURE__ */ o(Ke, { children: t }) : t;
216
+ return /* @__PURE__ */ o(Z, { children: s ? /* @__PURE__ */ o(
216
217
  "a",
217
218
  {
218
219
  "aria-busy": i ? !0 : void 0,
219
220
  ...d,
220
- href: o,
221
+ href: s,
221
222
  ref: r,
222
223
  className: p,
223
- children: v
224
+ children: x
224
225
  }
225
- ) : /* @__PURE__ */ a(
226
+ ) : /* @__PURE__ */ o(
226
227
  "button",
227
228
  {
228
229
  "aria-busy": i ? !0 : void 0,
@@ -230,24 +231,24 @@ const ut = (e) => {
230
231
  type: c,
231
232
  ref: r,
232
233
  className: p,
233
- children: v
234
+ children: x
234
235
  }
235
236
  ) });
236
- }), je = (e) => /* @__PURE__ */ g(Z, { children: [
237
+ }), Ke = (e) => /* @__PURE__ */ b(Z, { children: [
237
238
  de(e.children),
238
- /* @__PURE__ */ a(
239
+ /* @__PURE__ */ o(
239
240
  "span",
240
241
  {
241
242
  className: "!visible absolute bottom-1 left-1 right-1 top-1 grid place-items-center overflow-hidden bg-inherit",
242
243
  "aria-hidden": !0,
243
- children: /* @__PURE__ */ a(Ae, { className: "animate-spin" })
244
+ children: /* @__PURE__ */ o(xe, { className: "animate-spin" })
244
245
  }
245
246
  )
246
247
  ] });
247
248
  function de(e) {
248
249
  return W.map(e, (r) => {
249
250
  if (!te(r))
250
- return typeof r == "string" ? /* @__PURE__ */ a("span", { children: r }) : r;
251
+ return typeof r == "string" ? /* @__PURE__ */ o("span", { children: r }) : r;
251
252
  if (r.props.children) {
252
253
  const t = {
253
254
  children: de(r.props.children)
@@ -257,34 +258,34 @@ function de(e) {
257
258
  return r;
258
259
  });
259
260
  }
260
- const P = I("standard"), ce = I(!0), Fe = (e, r) => {
261
+ const P = w("standard"), ce = w(!0), Xe = (e, r) => {
261
262
  const {
262
263
  as: t = "div",
263
264
  body: n,
264
- className: s,
265
- image: o,
265
+ className: a,
266
+ image: s,
266
267
  rightAlignBody: i = !0,
267
268
  ...c
268
269
  } = e;
269
- return /* @__PURE__ */ g(
270
+ return /* @__PURE__ */ b(
270
271
  t,
271
272
  {
272
273
  className: l(
273
- s,
274
+ a,
274
275
  "grid gap-8 md:grid-flow-col md:grid-cols-[50%,50%] md:gap-0"
275
276
  ),
276
277
  ...c,
277
278
  ref: r,
278
279
  children: [
279
- /* @__PURE__ */ a(ce.Provider, { value: i, children: o }),
280
+ /* @__PURE__ */ o(ce.Provider, { value: i, children: s }),
280
281
  n
281
282
  ]
282
283
  }
283
284
  );
284
- }, Ze = b(Fe), We = b(
285
+ }, Ye = g(Xe), Be = g(
285
286
  (e, r) => {
286
287
  const { className: t, ...n } = e;
287
- return /* @__PURE__ */ a(
288
+ return /* @__PURE__ */ o(
288
289
  "div",
289
290
  {
290
291
  className: l(t, "md:mx-18 self-center"),
@@ -293,12 +294,12 @@ const P = I("standard"), ce = I(!0), Fe = (e, r) => {
293
294
  }
294
295
  );
295
296
  }
296
- ), Ke = b(
297
+ ), Ue = g(
297
298
  (e, r) => {
298
- const { className: t, children: n, ...s } = e, o = A(ce), i = l(
299
+ const { className: t, children: n, ...a } = e, s = A(ce), i = l(
299
300
  t,
300
301
  "max-md:rounded-b-3xl w-full",
301
- o ? "md:rounded-r-3xl" : "md:rounded-l-3xl md:order-1"
302
+ s ? "md:rounded-r-3xl" : "md:rounded-l-3xl md:order-1"
302
303
  );
303
304
  if (te(n)) {
304
305
  const c = W.only(n);
@@ -306,36 +307,36 @@ const P = I("standard"), ce = I(!0), Fe = (e, r) => {
306
307
  // @ts-expect-error assume className prop is allowed
307
308
  className: i,
308
309
  ref: r,
309
- ...s
310
+ ...a
310
311
  });
311
312
  }
312
- return /* @__PURE__ */ a("img", { className: i, ref: r, ...s });
313
+ return /* @__PURE__ */ o("img", { className: i, ref: r, ...a });
313
314
  }
314
- ), bt = Object.assign({}, Ze, {
315
- Body: We,
316
- Image: Ke
317
- }), Ye = (e, r) => {
315
+ ), It = Object.assign({}, Ye, {
316
+ Body: Be,
317
+ Image: Ue
318
+ }), Qe = (e, r) => {
318
319
  const {
319
320
  as: t = "div",
320
321
  className: n,
321
- bgColor: s = "white",
322
- ...o
322
+ bgColor: a = "white",
323
+ ...s
323
324
  } = e;
324
- return /* @__PURE__ */ a(
325
+ return /* @__PURE__ */ o(
325
326
  t,
326
327
  {
327
328
  className: l(n, "relative overflow-hidden rounded-3xl", {
328
- "border-2 border-solid bg-white": s === "white",
329
- "bg-gray-light": s === "gray"
329
+ "border-2 border-solid bg-white": a === "white",
330
+ "bg-gray-light": a === "gray"
330
331
  }),
331
- ...o,
332
+ ...s,
332
333
  ref: r
333
334
  }
334
335
  );
335
- }, ht = b(Ye), pt = b(
336
+ }, Et = g(Qe), Ct = g(
336
337
  (e, r) => {
337
338
  const { className: t, ...n } = e;
338
- return /* @__PURE__ */ a(
339
+ return /* @__PURE__ */ o(
339
340
  "img",
340
341
  {
341
342
  className: l(t, "w-full object-cover"),
@@ -345,26 +346,26 @@ const P = I("standard"), ce = I(!0), Fe = (e, r) => {
345
346
  }
346
347
  );
347
348
  }
348
- ), At = b(
349
+ ), Rt = g(
349
350
  (e, r) => {
350
- const { bgColor: t, className: n, ...s } = e, o = le(t);
351
- return /* @__PURE__ */ a("div", { className: l(o, n), children: /* @__PURE__ */ a(
351
+ const { bgColor: t, className: n, ...a } = e, s = le(t);
352
+ return /* @__PURE__ */ o("div", { className: l(s, n), children: /* @__PURE__ */ o(
352
353
  "div",
353
354
  {
354
355
  className: "container grid grid-cols-1 gap-12 py-16 md:grid-cols-2 md:py-20 lg:py-24",
355
- ...s,
356
+ ...a,
356
357
  ref: r
357
358
  }
358
359
  ) });
359
360
  }
360
- ), xt = b(
361
+ ), St = g(
361
362
  (e, r) => {
362
363
  const { className: t, ...n } = e;
363
- return /* @__PURE__ */ a("div", { className: l(t, "p-8 md:px-10"), ...n, ref: r });
364
+ return /* @__PURE__ */ o("div", { className: l(t, "p-8 md:px-10"), ...n, ref: r });
364
365
  }
365
- ), vt = b((e, r) => {
366
+ ), kt = g((e, r) => {
366
367
  const { className: t, ...n } = e;
367
- return /* @__PURE__ */ a(
368
+ return /* @__PURE__ */ o(
368
369
  "a",
369
370
  {
370
371
  className: l(
@@ -375,61 +376,61 @@ const P = I("standard"), ce = I(!0), Fe = (e, r) => {
375
376
  ...n
376
377
  }
377
378
  );
378
- }), Nt = b(
379
+ }), qt = g(
379
380
  (e, r) => {
380
381
  const {
381
382
  children: t,
382
383
  className: n,
383
- error: s,
384
- id: o,
384
+ error: a,
385
+ id: s,
385
386
  disableValidation: i = !1,
386
387
  ...c
387
- } = e, u = L(null), { validity: d, validationMessage: m } = z(
388
+ } = e, u = R(null), { validity: d, validationMessage: m } = L(
388
389
  u,
389
390
  !i
390
- ), h = C(o), f = h + "err", p = s || m;
391
- return /* @__PURE__ */ g("div", { className: "grid gap-2", children: [
392
- /* @__PURE__ */ g("label", { className: l(n, "flex cursor-pointer gap-2.5"), children: [
393
- /* @__PURE__ */ a(
391
+ ), h = S(s), f = h + "err", p = a || m;
392
+ return /* @__PURE__ */ b("div", { className: "grid gap-2", children: [
393
+ /* @__PURE__ */ b("label", { className: l(n, "flex cursor-pointer gap-2.5"), children: [
394
+ /* @__PURE__ */ o(
394
395
  "input",
395
396
  {
396
397
  id: h,
397
398
  className: l(
398
399
  "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",
399
400
  {
400
- "border-gray-dark focus:ring-black": !s,
401
- "border-red focus:ring-red": !!s
401
+ "border-gray-dark focus:ring-black": !a,
402
+ "border-red focus:ring-red": !!a
402
403
  }
403
404
  ),
404
405
  ref: r,
405
406
  type: "checkbox",
406
407
  ...c,
407
408
  "aria-describedby": p ? f : void 0,
408
- "aria-invalid": !!s || d === "invalid"
409
+ "aria-invalid": !!a || d === "invalid"
409
410
  }
410
411
  ),
411
412
  t
412
413
  ] }),
413
- p && /* @__PURE__ */ a(E, { id: f, children: p })
414
+ p && /* @__PURE__ */ o(k, { id: f, children: p })
414
415
  ] });
415
416
  }
416
- ), Xe = {
417
+ ), He = {
417
418
  sky: "bg-sky border-sky",
418
419
  "red-light": "bg-red-light border-red-light",
419
420
  mint: "bg-mint border-mint",
420
421
  "orange-light": "bg-orange-light border-orange-light",
421
422
  "green-light": "bg-green-light border-green-light",
422
423
  "blue-light": "bg-blue-light border-blue-light"
423
- }, Be = {
424
+ }, De = {
424
425
  sky: "text-blue-dark",
425
426
  "red-light": "text-red",
426
427
  mint: "text-green",
427
428
  "orange-light": "text-black",
428
429
  "green-light": "text-green",
429
430
  "blue-light": "text-blue-dark"
430
- }, wt = (e) => {
431
- const { className: r, color: t, icon: n, children: s, variant: o = "filled" } = e, i = t && Xe[t], c = t && Be[t];
432
- return /* @__PURE__ */ g(
431
+ }, Mt = (e) => {
432
+ const { className: r, color: t, icon: n, children: a, variant: s = "filled" } = e, i = t && He[t], c = t && De[t];
433
+ return /* @__PURE__ */ b(
433
434
  "div",
434
435
  {
435
436
  className: l(
@@ -438,22 +439,22 @@ const P = I("standard"), ce = I(!0), Fe = (e, r) => {
438
439
  r
439
440
  ),
440
441
  children: [
441
- n && /* @__PURE__ */ a("div", { className: l("px-3 py-2", c), children: n }),
442
- /* @__PURE__ */ a(
442
+ n && /* @__PURE__ */ o("div", { className: l("px-3 py-2", c), children: n }),
443
+ /* @__PURE__ */ o(
443
444
  "div",
444
445
  {
445
446
  className: l("flex-1 px-4 py-2", {
446
- "bg-white": o === "outline"
447
+ "bg-white": s === "outline"
447
448
  }),
448
- children: s
449
+ children: a
449
450
  }
450
451
  )
451
452
  ]
452
453
  }
453
454
  );
454
- }, yt = (e) => {
455
+ }, Lt = (e) => {
455
456
  const { className: r, children: t, ...n } = e;
456
- return /* @__PURE__ */ a(P.Provider, { value: "white", children: /* @__PURE__ */ a(
457
+ return /* @__PURE__ */ o(P.Provider, { value: "white", children: /* @__PURE__ */ o(
457
458
  "footer",
458
459
  {
459
460
  className: l(
@@ -462,28 +463,28 @@ const P = I("standard"), ce = I(!0), Fe = (e, r) => {
462
463
  "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 "
463
464
  ),
464
465
  ...n,
465
- children: /* @__PURE__ */ a("div", { className: "container", children: t })
466
+ children: /* @__PURE__ */ o("div", { className: "container", children: t })
466
467
  }
467
468
  ) });
468
- }, It = (e) => {
469
- const { heading: r, children: t, className: n, ...s } = e;
470
- return /* @__PURE__ */ g(
469
+ }, Pt = (e) => {
470
+ const { heading: r, children: t, className: n, ...a } = e;
471
+ return /* @__PURE__ */ b(
471
472
  "form",
472
473
  {
473
474
  className: l(
474
475
  n,
475
476
  "border-blue-dark block overflow-hidden rounded-b-lg rounded-t-3xl border-2"
476
477
  ),
477
- ...s,
478
+ ...a,
478
479
  children: [
479
- r && /* @__PURE__ */ a(Qe, { children: r }),
480
- /* @__PURE__ */ a("div", { className: "p-6 md:p-10", children: t })
480
+ r && /* @__PURE__ */ o(Ge, { children: r }),
481
+ /* @__PURE__ */ o("div", { className: "p-6 md:p-10", children: t })
481
482
  ]
482
483
  }
483
484
  );
484
- }, Qe = (e) => {
485
+ }, Ge = (e) => {
485
486
  const { className: r, ...t } = e;
486
- return /* @__PURE__ */ a(
487
+ return /* @__PURE__ */ o(
487
488
  "h2",
488
489
  {
489
490
  className: l(
@@ -493,9 +494,9 @@ const P = I("standard"), ce = I(!0), Fe = (e, r) => {
493
494
  ...t
494
495
  }
495
496
  );
496
- }, Ct = (e) => {
497
+ }, zt = (e) => {
497
498
  const { className: r, ...t } = e;
498
- return /* @__PURE__ */ a(
499
+ return /* @__PURE__ */ o(
499
500
  "div",
500
501
  {
501
502
  "aria-live": "polite",
@@ -507,9 +508,9 @@ const P = I("standard"), ce = I(!0), Fe = (e, r) => {
507
508
  children: "Beklager! Noe gikk dessverre galt under innesendingen av skjemaet. Prøv gjerne igjen om en stund."
508
509
  }
509
510
  );
510
- }, E = (e) => {
511
+ }, k = (e) => {
511
512
  const { children: r, className: t, ...n } = e;
512
- return /* @__PURE__ */ g(
513
+ return /* @__PURE__ */ b(
513
514
  "div",
514
515
  {
515
516
  className: l(
@@ -519,29 +520,28 @@ const P = I("standard"), ce = I(!0), Fe = (e, r) => {
519
520
  "aria-live": "polite",
520
521
  ...n,
521
522
  children: [
522
- /* @__PURE__ */ a(ne, { className: "text-red flex-shrink-0" }),
523
+ /* @__PURE__ */ o(ne, { className: "text-red flex-shrink-0" }),
523
524
  r
524
525
  ]
525
526
  }
526
527
  );
527
- }, S = (e) => {
528
+ }, z = (e) => {
528
529
  const { className: r, children: t, ...n } = e;
529
- return /* @__PURE__ */ a("div", { className: l(r, "text-gray-dark text-sm"), ...n, children: t });
530
+ return /* @__PURE__ */ o("div", { className: l(r, "text-gray-dark text-sm"), ...n, children: t });
530
531
  }, V = (e) => {
531
- const { className: r, children: t, isRequired: n, isInvalid: s, ...o } = e;
532
- return /* @__PURE__ */ g(
532
+ const { className: r, children: t, isRequired: n, isInvalid: a, ...s } = e;
533
+ return /* @__PURE__ */ b(
533
534
  "label",
534
535
  {
535
536
  className: l(r, "block cursor-pointer font-semibold"),
536
- ...o,
537
+ ...s,
537
538
  children: [
538
- n && /* @__PURE__ */ a(
539
+ n && /* @__PURE__ */ o(
539
540
  "span",
540
541
  {
541
- "aria-hidden": !0,
542
542
  className: l(
543
543
  "mr-1 select-none",
544
- s ? "text-red" : "text-blue"
544
+ a ? "text-red" : "text-blue"
545
545
  ),
546
546
  children: "*"
547
547
  }
@@ -550,18 +550,18 @@ const P = I("standard"), ce = I(!0), Fe = (e, r) => {
550
550
  ]
551
551
  }
552
552
  );
553
- }, Et = (e) => {
554
- const { className: r, heading: t, text: n, ...s } = e;
555
- return /* @__PURE__ */ g(
553
+ }, Vt = (e) => {
554
+ const { className: r, heading: t, text: n, ...a } = e;
555
+ return /* @__PURE__ */ b(
556
556
  "div",
557
557
  {
558
558
  className: l(
559
559
  r,
560
560
  "bg-gray-lightest flex flex-col gap-8 p-8 text-center"
561
561
  ),
562
- ...s,
562
+ ...a,
563
563
  children: [
564
- /* @__PURE__ */ a(
564
+ /* @__PURE__ */ o(
565
565
  "img",
566
566
  {
567
567
  className: "mx-auto",
@@ -571,24 +571,209 @@ const P = I("standard"), ce = I(!0), Fe = (e, r) => {
571
571
  src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmUAAAIgCAMAAADzxO7KAAABzlBMVEVHcEwfq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Aep84eqc8fq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9AeqM4fq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9Afq9AZT5oZQpMaU50cfrYZQZIZT5oYMYgdjL4aWqEen8kaWaAbc68bWJ8fqM4ZPY8chLkcerMYLocZQZIZP5AceLIenccemcUdkcEfq9AYKYQfqc4ensgeoMoYK4UepcwYLIYep80eosschboemMUcgLcYOI0aX6QZRpUdjr8ZQpMbcq4bcK0enMcYMYgdlMMZP5EbbKsaWaAcerMYNYsdiLsYO44ZSZcaXaIemsYbaaodjL4ZS5gdlsQdksEcfLQYLoccgrgcdLAdir0aW6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572
572
  }
573
573
  ),
574
- t && /* @__PURE__ */ a("h2", { className: "text-blue text-2xl", children: t }),
575
- n && /* @__PURE__ */ a("p", { className: "text-lg", children: n })
574
+ t && /* @__PURE__ */ o("h2", { className: "text-blue text-2xl", children: t }),
575
+ n && /* @__PURE__ */ o("p", { className: "text-lg", children: n })
576
+ ]
577
+ }
578
+ );
579
+ }, _e = (e) => {
580
+ const { className: r, collapsed: t, step: n, onClick: a, children: s, formStatus: i } = e;
581
+ return /* @__PURE__ */ o(
582
+ "button",
583
+ {
584
+ type: "button",
585
+ "aria-disabled": t,
586
+ onClick: a,
587
+ className: l(r, "w-full py-4 pl-4 md:py-8 ", {
588
+ "bg-blue-dark": !t,
589
+ "border-black bg-white": t && i !== "completed",
590
+ "border-green bg-green text-white": t && i === "completed"
591
+ }),
592
+ children: /* @__PURE__ */ o(
593
+ $e,
594
+ {
595
+ collapsed: t,
596
+ step: n,
597
+ formStatus: i,
598
+ children: s
599
+ }
600
+ )
601
+ }
602
+ );
603
+ }, $e = (e) => {
604
+ const { collapsed: r, step: t, children: n, formStatus: a } = e, s = C(() => {
605
+ switch (a) {
606
+ case "blank":
607
+ return "Ikke utfylt";
608
+ case "completed":
609
+ return "Fullført";
610
+ }
611
+ }, [a]), i = C(() => {
612
+ if (!r)
613
+ return /* @__PURE__ */ o("div", { children: t });
614
+ switch (a) {
615
+ case "blank":
616
+ return /* @__PURE__ */ o("div", { children: t });
617
+ case "completed":
618
+ return /* @__PURE__ */ o(Ne, { className: "h-10 w-10 md:h-12 md:w-12" });
619
+ }
620
+ }, [a, t, r]);
621
+ return /* @__PURE__ */ b(
622
+ "h2",
623
+ {
624
+ className: l(
625
+ "grid grid-cols-[auto_1fr] grid-rows-[1fr_auto] items-center text-left text-xl font-bold md:text-2xl",
626
+ {
627
+ "text-white": !r
628
+ }
629
+ ),
630
+ children: [
631
+ /* @__PURE__ */ o(
632
+ "div",
633
+ {
634
+ className: l(
635
+ "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",
636
+ {
637
+ "border-white text-white": !r,
638
+ "border-black": r && a !== "completed",
639
+ "border-none": a === "completed" && r
640
+ }
641
+ ),
642
+ role: "text",
643
+ children: i
644
+ }
645
+ ),
646
+ n,
647
+ r && /* @__PURE__ */ o(
648
+ "div",
649
+ {
650
+ className: l(
651
+ "text-base font-normal",
652
+ a === "completed" ? "text-white" : "text-black"
653
+ ),
654
+ children: s
655
+ }
656
+ )
657
+ ]
658
+ }
659
+ );
660
+ }, me = w([
661
+ {
662
+ activeStep: 1,
663
+ formData: {}
664
+ },
665
+ () => {
666
+ }
667
+ ]);
668
+ function et(e) {
669
+ const [r, t] = A(me), n = E(async () => {
670
+ t({ type: "PREV_STEP" });
671
+ }, [t]), a = E(
672
+ (s) => {
673
+ t({
674
+ type: "SET_FORM_STEP_DATA",
675
+ formId: `form${e}`,
676
+ formValues: s
677
+ }), t({ type: "NEXT_STEP" });
678
+ },
679
+ [t, e]
680
+ );
681
+ return {
682
+ isActive: r.activeStep === e,
683
+ activeStep: r.activeStep,
684
+ setActiveStep: (s) => t({ type: "SET_STEP", step: s }),
685
+ previousFormStep: n,
686
+ submitAndNextFormStep: a,
687
+ formData: r.formData
688
+ };
689
+ }
690
+ function tt(e, r) {
691
+ switch (r.type) {
692
+ case "NEXT_STEP":
693
+ return {
694
+ ...e,
695
+ activeStep: e.activeStep + 1
696
+ };
697
+ case "PREV_STEP":
698
+ return {
699
+ ...e,
700
+ activeStep: Math.max(e.activeStep - 1, 1)
701
+ };
702
+ case "SET_STEP":
703
+ return {
704
+ ...e,
705
+ activeStep: r.step
706
+ };
707
+ case "SET_FORM_STEP_DATA":
708
+ return {
709
+ ...e,
710
+ formData: {
711
+ ...e.formData,
712
+ [r.formId]: r.formValues
713
+ }
714
+ };
715
+ }
716
+ }
717
+ function Tt({ children: e }) {
718
+ const [r, t] = ve(tt, {
719
+ activeStep: 1,
720
+ formData: {}
721
+ }), n = C(() => [r, t], [r, t]);
722
+ return /* @__PURE__ */ o(me.Provider, { value: n, children: e });
723
+ }
724
+ const Ft = (e) => {
725
+ const {
726
+ children: r,
727
+ heading: t,
728
+ step: n,
729
+ formStatus: a = "blank",
730
+ onSubmit: s,
731
+ ...i
732
+ } = e, { isActive: c, setActiveStep: u, activeStep: d } = et(n), m = R(null), h = E(() => {
733
+ n < d && u(n);
734
+ }, [d, n, u]);
735
+ return Re(() => {
736
+ var f;
737
+ c && ((f = m.current) == null || f.scrollIntoView({ behavior: "smooth" }));
738
+ }, [c]), /* @__PURE__ */ b(
739
+ "form",
740
+ {
741
+ className: l(
742
+ "border-blue-dark block overflow-hidden rounded-lg border-2",
743
+ { "rounded-t-2xl md:rounded-t-3xl": n === 1 },
744
+ { "border-none": a === "completed" && !c }
745
+ ),
746
+ onSubmit: s,
747
+ ref: m,
748
+ ...i,
749
+ children: [
750
+ /* @__PURE__ */ o(
751
+ _e,
752
+ {
753
+ step: n,
754
+ formStatus: a,
755
+ collapsed: !c,
756
+ onClick: h,
757
+ children: t
758
+ }
759
+ ),
760
+ c && /* @__PURE__ */ o("div", { className: "p-6 md:p-10", children: r })
576
761
  ]
577
762
  }
578
763
  );
579
764
  };
580
- function me(e) {
765
+ function ue(e) {
581
766
  return e !== "vertical-split" && e !== "below-center" && e !== "below-left";
582
767
  }
583
- const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 }), Rt = b((e, r) => {
768
+ const T = w({ bgColor: "white", contentPosition: "below-center", hasImage: !1 }), Jt = g((e, r) => {
584
769
  const {
585
770
  bgColor: t = "white",
586
771
  children: n,
587
- className: s,
588
- contentPosition: o = "below-center",
772
+ className: a,
773
+ contentPosition: s = "below-center",
589
774
  image: i,
590
775
  ...c
591
- } = e, u = i != null, d = u ? o : "below-center", m = M(
776
+ } = e, u = i != null, d = u ? s : "below-center", m = C(
592
777
  () => ({
593
778
  bgColor: t,
594
779
  contentPosition: d,
@@ -596,22 +781,22 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
596
781
  }),
597
782
  [t, d, u]
598
783
  );
599
- return /* @__PURE__ */ a(
784
+ return /* @__PURE__ */ o(
600
785
  P.Provider,
601
786
  {
602
787
  value: t === "white" ? "standard" : "mint",
603
- children: /* @__PURE__ */ a(J.Provider, { value: m, children: /* @__PURE__ */ g(
788
+ children: /* @__PURE__ */ o(T.Provider, { value: m, children: /* @__PURE__ */ b(
604
789
  "div",
605
790
  {
606
791
  className: l(
607
- s,
792
+ a,
608
793
  // disable padding on small screens so the hero image is flush with the screen edges
609
794
  "container px-0 md:grid lg:px-4",
610
795
  {
611
796
  "md:grid-cols-[50%,50%]": d === "vertical-split"
612
797
  }
613
798
  ),
614
- style: me(d) ? { gridTemplateAreas: '"hero"' } : void 0,
799
+ style: ue(d) ? { gridTemplateAreas: '"hero"' } : void 0,
615
800
  ...c,
616
801
  ref: r,
617
802
  children: [
@@ -622,10 +807,10 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
622
807
  ) })
623
808
  }
624
809
  );
625
- }), qt = b(
810
+ }), Ot = g(
626
811
  (e, r) => {
627
- const { contentPosition: t } = A(J);
628
- return /* @__PURE__ */ g(
812
+ const { contentPosition: t } = A(T);
813
+ return /* @__PURE__ */ b(
629
814
  "picture",
630
815
  {
631
816
  className: l(e.className, "aspect-w-6 aspect-h-7 block", {
@@ -636,8 +821,8 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
636
821
  style: t !== "vertical-split" && t !== "below-center" && t !== "below-left" ? { gridArea: "hero" } : void 0,
637
822
  ref: r,
638
823
  children: [
639
- /* @__PURE__ */ a("source", { media: "(min-width: 768px)", srcSet: e.mdSrc }),
640
- /* @__PURE__ */ a(
824
+ /* @__PURE__ */ o("source", { media: "(min-width: 768px)", srcSet: e.mdSrc }),
825
+ /* @__PURE__ */ o(
641
826
  "img",
642
827
  {
643
828
  className: "object-cover",
@@ -650,10 +835,10 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
650
835
  }
651
836
  );
652
837
  }
653
- ), kt = b(
838
+ ), jt = g(
654
839
  (e, r) => {
655
- const { bgColor: t, contentPosition: n, hasImage: s } = A(J), { children: o, className: i, heading: c, description: u, ...d } = e, m = me(n);
656
- return /* @__PURE__ */ g(
840
+ const { bgColor: t, contentPosition: n, hasImage: a } = A(T), { children: s, className: i, heading: c, description: u, ...d } = e, m = ue(n);
841
+ return /* @__PURE__ */ b(
657
842
  "div",
658
843
  {
659
844
  className: l(
@@ -661,7 +846,7 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
661
846
  "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",
662
847
  {
663
848
  // On mobile we use negative margin on the content to pull the content up into the image
664
- "max-md:-mt-18": s,
849
+ "max-md:-mt-18": a,
665
850
  "text-white": t !== "white",
666
851
  "bg-green-dark": t === "green",
667
852
  "bg-blue-dark": t === "blue",
@@ -671,7 +856,7 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
671
856
  "md:z-10 md:-order-1 md:-mr-5 md:mt-0 md:justify-center md:rounded-l-none md:text-left": n === "vertical-split",
672
857
  // below center/content header
673
858
  "justify-center md:mx-auto md:w-4/5": n === "below-center",
674
- "md:-mt-18": s && n === "below-center",
859
+ "md:-mt-18": a && n === "below-center",
675
860
  // Below left style
676
861
  "md:-mt-32 md:ml-[8%] md:max-w-[58%] md:text-left": n === "below-left",
677
862
  // styles for when the contain is fully contained within the image
@@ -687,17 +872,17 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
687
872
  style: m ? { gridArea: "hero" } : void 0,
688
873
  ref: r,
689
874
  children: [
690
- /* @__PURE__ */ a("h1", { children: c }),
691
- u && /* @__PURE__ */ a("p", { className: "text-lg font-semibold md:text-xl", children: u }),
692
- o
875
+ /* @__PURE__ */ o("h1", { children: c }),
876
+ u && /* @__PURE__ */ o("p", { className: "text-lg font-semibold md:text-xl", children: u }),
877
+ s
693
878
  ]
694
879
  }
695
880
  );
696
881
  }
697
- ), Lt = b(
882
+ ), Zt = g(
698
883
  (e, r) => {
699
- const { className: t, ...n } = e, { contentPosition: s } = A(J);
700
- return /* @__PURE__ */ a(
884
+ const { className: t, ...n } = e, { contentPosition: a } = A(T);
885
+ return /* @__PURE__ */ o(
701
886
  "div",
702
887
  {
703
888
  className: l(
@@ -705,7 +890,7 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
705
890
  "grid items-center justify-center justify-items-center gap-4 md:grid-flow-col",
706
891
  // Left align actions/buttons
707
892
  {
708
- "md:justify-start": s === "vertical-split" || s === "below-left"
893
+ "md:justify-start": a === "vertical-split" || a === "below-left"
709
894
  }
710
895
  ),
711
896
  ...n,
@@ -713,18 +898,18 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
713
898
  }
714
899
  );
715
900
  }
716
- ), ue = b((e, r) => {
901
+ ), fe = g((e, r) => {
717
902
  const {
718
903
  className: t,
719
904
  isInvalid: n,
720
- size: s,
721
- as: o,
905
+ size: a,
906
+ as: s,
722
907
  type: i,
723
908
  rightAddon: c,
724
909
  leftAddon: u,
725
910
  ...d
726
- } = e, m = o ?? "input", h = Ue(m, i);
727
- return /* @__PURE__ */ g(
911
+ } = e, m = s ?? "input", h = rt(m, i);
912
+ return /* @__PURE__ */ b(
728
913
  "div",
729
914
  {
730
915
  className: l(
@@ -733,21 +918,21 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
733
918
  {
734
919
  "focus-within:border-blue-dark border-black": !n,
735
920
  "border-red focus-within:border-red": n,
736
- "w-fit": s != null,
737
- "w-full": s == null,
921
+ "w-fit": a != null,
922
+ "w-full": a == null,
738
923
  "pl-4": u,
739
924
  "pr-4": c
740
925
  }
741
926
  ),
742
927
  children: [
743
928
  u,
744
- /* @__PURE__ */ a(
929
+ /* @__PURE__ */ o(
745
930
  m,
746
931
  {
747
932
  "aria-invalid": n,
748
933
  ref: r,
749
934
  className: "focus:none placeholder-gray w-full rounded-lg border-none px-4 py-3.5 focus:outline-none",
750
- size: s,
935
+ size: a,
751
936
  type: h,
752
937
  ...d
753
938
  }
@@ -757,28 +942,28 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
757
942
  }
758
943
  );
759
944
  });
760
- function Ue(e, r) {
945
+ function rt(e, r) {
761
946
  if (r != null)
762
947
  return r;
763
948
  if (e === "input")
764
949
  return "text";
765
950
  }
766
- const Mt = (e) => {
951
+ const Wt = (e) => {
767
952
  let r = "";
768
- return e.icon && (r = "inline-flex items-center gap-2"), /* @__PURE__ */ g("a", { className: r, href: e.href, children: [
953
+ return e.icon && (r = "inline-flex items-center gap-2"), /* @__PURE__ */ b("a", { className: r, href: e.href, children: [
769
954
  e.icon,
770
955
  e.children
771
956
  ] });
772
- }, R = I({
773
- setIsExpanded: y,
957
+ }, q = w({
958
+ setIsExpanded: I,
774
959
  isExpanded: !1,
775
960
  collapsibleId: ""
776
- }), zt = (e) => {
777
- const { className: r, children: t, ...n } = e, s = ee(), [o, i] = k(!1), c = M(
778
- () => ({ isExpanded: o, setIsExpanded: i, collapsibleId: s }),
779
- [o, s]
961
+ }), Kt = (e) => {
962
+ const { className: r, children: t, ...n } = e, a = ee(), [s, i] = M(!1), c = C(
963
+ () => ({ isExpanded: s, setIsExpanded: i, collapsibleId: a }),
964
+ [s, a]
780
965
  );
781
- return /* @__PURE__ */ a(P.Provider, { value: "white", children: /* @__PURE__ */ a(R.Provider, { value: c, children: /* @__PURE__ */ a(
966
+ return /* @__PURE__ */ o(P.Provider, { value: "white", children: /* @__PURE__ */ o(q.Provider, { value: c, children: /* @__PURE__ */ o(
782
967
  "div",
783
968
  {
784
969
  className: l(
@@ -786,29 +971,29 @@ const Mt = (e) => {
786
971
  "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"
787
972
  ),
788
973
  ...n,
789
- children: /* @__PURE__ */ a("div", { className: "container", children: t })
974
+ children: /* @__PURE__ */ o("div", { className: "container", children: t })
790
975
  }
791
976
  ) }) });
792
- }, Pt = (e) => {
793
- const { className: r, children: t, ...n } = e, { isExpanded: s } = A(R);
794
- return /* @__PURE__ */ a(
977
+ }, Xt = (e) => {
978
+ const { className: r, children: t, ...n } = e, { isExpanded: a } = A(q);
979
+ return /* @__PURE__ */ o(
795
980
  "nav",
796
981
  {
797
982
  className: l(
798
983
  r,
799
984
  "my-8 flex flex-col md:mb-0 md:flex md:flex-row md:flex-wrap md:gap-x-8",
800
985
  {
801
- hidden: !s
986
+ hidden: !a
802
987
  }
803
988
  ),
804
989
  ...n,
805
990
  children: t
806
991
  }
807
992
  );
808
- }, St = b(
993
+ }, Yt = g(
809
994
  (e, r) => {
810
- const { active: t, className: n, children: s, ...o } = e;
811
- return /* @__PURE__ */ a(
995
+ const { active: t, className: n, children: a, ...s } = e;
996
+ return /* @__PURE__ */ o(
812
997
  "a",
813
998
  {
814
999
  "aria-current": t ? "page" : void 0,
@@ -820,108 +1005,108 @@ const Mt = (e) => {
820
1005
  }
821
1006
  ),
822
1007
  ref: r,
823
- ...o,
824
- children: s
1008
+ ...s,
1009
+ children: a
825
1010
  }
826
1011
  );
827
1012
  }
828
- ), Ge = () => {
829
- const { isExpanded: e, setIsExpanded: r, collapsibleId: t } = A(R);
830
- let n = xe, s = "Meny";
831
- return e && (n = ve, s = "Lukk"), /* @__PURE__ */ g(
1013
+ ), nt = () => {
1014
+ const { isExpanded: e, setIsExpanded: r, collapsibleId: t } = A(q);
1015
+ let n = we, a = "Meny";
1016
+ return e && (n = ye, a = "Lukk"), /* @__PURE__ */ b(
832
1017
  "button",
833
1018
  {
834
1019
  "aria-controls": t,
835
1020
  "aria-expanded": e,
836
1021
  className: "inline-flex items-center gap-2 md:hidden",
837
- onClick: () => r((o) => !o),
1022
+ onClick: () => r((s) => !s),
838
1023
  children: [
839
- s,
1024
+ a,
840
1025
  " ",
841
- /* @__PURE__ */ a(n, {})
1026
+ /* @__PURE__ */ o(n, {})
842
1027
  ]
843
1028
  }
844
1029
  );
845
- }, Vt = (e) => {
846
- const { className: r, children: t, logo: n, ...s } = e;
847
- return /* @__PURE__ */ g(
1030
+ }, Bt = (e) => {
1031
+ const { className: r, children: t, logo: n, ...a } = e;
1032
+ return /* @__PURE__ */ b(
848
1033
  "div",
849
1034
  {
850
1035
  className: l(r, "flex items-center justify-between gap-8"),
851
- ...s,
1036
+ ...a,
852
1037
  children: [
853
1038
  n,
854
- /* @__PURE__ */ a("div", { className: "hidden md:block", children: t }),
855
- /* @__PURE__ */ a(Ge, {})
1039
+ /* @__PURE__ */ o("div", { className: "hidden md:block", children: t }),
1040
+ /* @__PURE__ */ o(nt, {})
856
1041
  ]
857
1042
  }
858
1043
  );
859
- }, Jt = (e) => {
860
- const { className: r, children: t, ...n } = e, { collapsibleId: s, isExpanded: o } = A(R);
861
- return /* @__PURE__ */ a(
1044
+ }, Ut = (e) => {
1045
+ const { className: r, children: t, ...n } = e, { collapsibleId: a, isExpanded: s } = A(q);
1046
+ return /* @__PURE__ */ o(
862
1047
  "div",
863
1048
  {
864
1049
  ...n,
865
- "aria-hidden": !o,
1050
+ "aria-hidden": !s,
866
1051
  className: l(r, "md:-mb-8 md:block", {
867
- hidden: !o
1052
+ hidden: !s
868
1053
  }),
869
- id: s,
1054
+ id: a,
870
1055
  children: t
871
1056
  }
872
1057
  );
873
- }, Ot = (e) => {
874
- const { isExpanded: r } = A(R), t = Oe(!1);
875
- return !r || !t ? null : /* @__PURE__ */ a(Z, { children: e.children });
876
- }, w = 2, O = I({ currentPage: 0, pageCount: 0 }), Tt = (e) => {
1058
+ }, Qt = (e) => {
1059
+ const { isExpanded: r } = A(q), t = Ze(!1);
1060
+ return !r || !t ? null : /* @__PURE__ */ o(Z, { children: e.children });
1061
+ }, y = 2, F = w({ currentPage: 0, pageCount: 0 }), Ht = (e) => {
877
1062
  const {
878
1063
  className: r,
879
1064
  page: t,
880
1065
  count: n,
881
- onChange: s,
882
- getItemHref: o,
1066
+ onChange: a,
1067
+ getItemHref: s,
883
1068
  getItemAriaLabel: i,
884
1069
  nextPageAriaLabel: c,
885
1070
  prevPageAriaLabel: u,
886
1071
  ...d
887
- } = e, m = M(
1072
+ } = e, m = C(
888
1073
  () => ({
889
1074
  currentPage: Math.max(1, Math.min(t, n)),
890
1075
  pageCount: Math.max(1, n)
891
1076
  }),
892
1077
  [t, n]
893
1078
  ), h = (f) => (p) => {
894
- s && (p.preventDefault(), s(f));
1079
+ a && (p.preventDefault(), a(f));
895
1080
  };
896
- return /* @__PURE__ */ a(O.Provider, { value: m, children: /* @__PURE__ */ g(
1081
+ return /* @__PURE__ */ o(F.Provider, { value: m, children: /* @__PURE__ */ b(
897
1082
  "nav",
898
1083
  {
899
1084
  className: l("flex justify-center gap-2 sm:gap-4", r),
900
1085
  ...d,
901
1086
  children: [
902
- /* @__PURE__ */ a(
903
- De,
1087
+ /* @__PURE__ */ o(
1088
+ ot,
904
1089
  {
905
1090
  "aria-label": u,
906
- href: o(t - 1),
1091
+ href: s(t - 1),
907
1092
  onClick: h(t - 1)
908
1093
  }
909
1094
  ),
910
- /* @__PURE__ */ a(
1095
+ /* @__PURE__ */ o(
911
1096
  _,
912
1097
  {
913
1098
  page: 1,
914
- href: o(1),
1099
+ href: s(1),
915
1100
  onClick: h(1),
916
1101
  "aria-label": i(1),
917
1102
  selected: t === 1
918
1103
  }
919
1104
  ),
920
- n > 2 + w * 2 && t > w + 2 && /* @__PURE__ */ a(_e, {}),
921
- /* @__PURE__ */ a($e, { children: (f) => /* @__PURE__ */ a(
1105
+ n > 2 + y * 2 && t > y + 2 && /* @__PURE__ */ o(st, {}),
1106
+ /* @__PURE__ */ o(it, { children: (f) => /* @__PURE__ */ o(
922
1107
  _,
923
1108
  {
924
- href: o(f),
1109
+ href: s(f),
925
1110
  onClick: h(f),
926
1111
  "aria-label": i(f),
927
1112
  page: f,
@@ -929,46 +1114,46 @@ const Mt = (e) => {
929
1114
  },
930
1115
  f
931
1116
  ) }),
932
- /* @__PURE__ */ a(
933
- He,
1117
+ /* @__PURE__ */ o(
1118
+ at,
934
1119
  {
935
1120
  "aria-label": c,
936
- href: o(t + 1),
1121
+ href: s(t + 1),
937
1122
  onClick: h(t + 1)
938
1123
  }
939
1124
  )
940
1125
  ]
941
1126
  }
942
1127
  ) });
943
- }, He = b((e, r) => {
944
- const { currentPage: t, pageCount: n } = A(O), s = t >= n;
945
- return /* @__PURE__ */ a(
946
- Q,
1128
+ }, at = g((e, r) => {
1129
+ const { currentPage: t, pageCount: n } = A(F), a = t >= n;
1130
+ return /* @__PURE__ */ o(
1131
+ U,
947
1132
  {
948
- "aria-hidden": s,
949
- className: s ? "invisible" : void 0,
1133
+ "aria-hidden": a,
1134
+ className: a ? "invisible" : void 0,
950
1135
  ref: r,
951
1136
  rel: "next",
952
1137
  ...e,
953
- children: /* @__PURE__ */ a(Ne, {})
1138
+ children: /* @__PURE__ */ o(Ie, {})
954
1139
  }
955
1140
  );
956
- }), De = b((e, r) => {
957
- const { currentPage: t } = A(O), n = t <= 1;
958
- return /* @__PURE__ */ a(
959
- Q,
1141
+ }), ot = g((e, r) => {
1142
+ const { currentPage: t } = A(F), n = t <= 1;
1143
+ return /* @__PURE__ */ o(
1144
+ U,
960
1145
  {
961
1146
  "aria-hidden": n,
962
1147
  className: n ? "invisible" : void 0,
963
1148
  ref: r,
964
1149
  rel: "prev",
965
1150
  ...e,
966
- children: /* @__PURE__ */ a(we, {})
1151
+ children: /* @__PURE__ */ o(Ee, {})
967
1152
  }
968
1153
  );
969
- }), Q = b((e, r) => {
1154
+ }), U = g((e, r) => {
970
1155
  const { className: t, ...n } = e;
971
- return /* @__PURE__ */ a(
1156
+ return /* @__PURE__ */ o(
972
1157
  "a",
973
1158
  {
974
1159
  className: l(
@@ -979,52 +1164,52 @@ const Mt = (e) => {
979
1164
  ...n
980
1165
  }
981
1166
  );
982
- }), _e = () => /* @__PURE__ */ a("span", { className: "flex h-9 w-9 cursor-default items-center justify-center border-2 border-transparent sm:h-10 sm:w-10", children: "..." }), $e = ({ children: e }) => {
983
- const { currentPage: r, pageCount: t } = A(O), n = Math.min(
984
- Math.max(2 + w * 2, r + w),
1167
+ }), st = () => /* @__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: "..." }), it = ({ children: e }) => {
1168
+ const { currentPage: r, pageCount: t } = A(F), n = Math.min(
1169
+ Math.max(2 + y * 2, r + y),
985
1170
  t
986
1171
  );
987
- let s = Math.max(
988
- Math.min(r - w, n - w * 2),
1172
+ let a = Math.max(
1173
+ Math.min(r - y, n - y * 2),
989
1174
  1
990
1175
  );
991
- return s - w === 0 && (s = s - 1), Array.from({ length: n - s }, (i, c) => s + c + 1).map((i) => e(i));
992
- }, _ = b((e, r) => {
993
- const { page: t, selected: n, ...s } = e;
994
- return /* @__PURE__ */ a(Q, { "aria-current": n ? "page" : void 0, ref: r, ...s, children: t });
995
- }), fe = I({
1176
+ return a - y === 0 && (a = a - 1), Array.from({ length: n - a }, (i, c) => a + c + 1).map((i) => e(i));
1177
+ }, _ = g((e, r) => {
1178
+ const { page: t, selected: n, ...a } = e;
1179
+ return /* @__PURE__ */ o(U, { "aria-current": n ? "page" : void 0, ref: r, ...a, children: t });
1180
+ }), be = w({
996
1181
  defaultValue: void 0,
997
1182
  isControlled: !1,
998
1183
  name: void 0,
999
- onChange: y,
1184
+ onChange: I,
1000
1185
  required: !1,
1001
1186
  value: void 0,
1002
1187
  error: !1
1003
- }), jt = b((e, r) => {
1004
- const { children: t, className: n, ...s } = e, { defaultValue: o, isControlled: i, name: c, onChange: u, required: d, value: m, error: h } = A(fe);
1005
- return /* @__PURE__ */ g("label", { className: l(n, "flex cursor-pointer gap-2.5"), children: [
1006
- /* @__PURE__ */ a(
1188
+ }), Dt = g((e, r) => {
1189
+ const { children: t, className: n, ...a } = e, { defaultValue: s, isControlled: i, name: c, onChange: u, required: d, value: m, error: h } = A(be);
1190
+ return /* @__PURE__ */ b("label", { className: l(n, "flex cursor-pointer gap-2.5"), children: [
1191
+ /* @__PURE__ */ o(
1007
1192
  "input",
1008
1193
  {
1009
1194
  className: l("radio", h && "border-red"),
1010
- defaultChecked: i ? void 0 : s.value === o,
1011
- checked: i ? s.value === m : void 0,
1195
+ defaultChecked: i ? void 0 : a.value === s,
1196
+ checked: i ? a.value === m : void 0,
1012
1197
  name: c,
1013
1198
  onChange: i ? u : void 0,
1014
1199
  required: d,
1015
1200
  type: "radio",
1016
1201
  ref: r,
1017
- ...s
1202
+ ...a
1018
1203
  }
1019
1204
  ),
1020
1205
  t
1021
1206
  ] });
1022
- }), Ft = b(
1207
+ }), Gt = g(
1023
1208
  (e, r) => {
1024
1209
  const t = "value" in e, {
1025
1210
  className: n,
1026
- defaultValue: s,
1027
- description: o,
1211
+ defaultValue: a,
1212
+ description: s,
1028
1213
  error: i,
1029
1214
  id: c,
1030
1215
  children: u,
@@ -1033,66 +1218,66 @@ const Mt = (e) => {
1033
1218
  onChange: h,
1034
1219
  required: f,
1035
1220
  value: p,
1036
- ...v
1037
- } = e, x = q(
1221
+ ...x
1222
+ } = e, v = E(
1038
1223
  (ge) => {
1039
- const be = ge.target.value;
1040
- h == null || h(be);
1224
+ const he = ge.target.value;
1225
+ h == null || h(he);
1041
1226
  },
1042
1227
  [h]
1043
- ), T = M(
1228
+ ), J = C(
1044
1229
  () => ({
1045
- defaultValue: s,
1230
+ defaultValue: a,
1046
1231
  isControlled: t,
1047
1232
  name: m,
1048
- onChange: x,
1233
+ onChange: v,
1049
1234
  required: f,
1050
1235
  value: p,
1051
1236
  error: !!i
1052
1237
  }),
1053
- [s, t, m, x, f, p, i]
1054
- ), j = C(c), U = `${j}:label`, G = `${j}:help`, H = j + "err", F = i;
1055
- return /* @__PURE__ */ a(fe.Provider, { value: T, children: /* @__PURE__ */ g(
1238
+ [a, t, m, v, f, p, i]
1239
+ ), O = S(c), Q = `${O}:label`, H = `${O}:help`, D = O + "err", j = i;
1240
+ return /* @__PURE__ */ o(be.Provider, { value: J, children: /* @__PURE__ */ b(
1056
1241
  "div",
1057
1242
  {
1058
1243
  "aria-describedby": l({
1059
- [H]: F,
1060
- [G]: o
1244
+ [D]: j,
1245
+ [H]: s
1061
1246
  }) || void 0,
1062
1247
  "aria-invalid": !!i,
1063
- "aria-labelledby": d ? U : void 0,
1248
+ "aria-labelledby": d ? Q : void 0,
1064
1249
  className: l(n, "flex flex-col gap-4"),
1065
1250
  role: "radiogroup",
1066
1251
  ref: r,
1067
- ...v,
1252
+ ...x,
1068
1253
  children: [
1069
- d && /* @__PURE__ */ a(V, { id: U, isRequired: f, isInvalid: !!i, children: d }),
1070
- o && /* @__PURE__ */ a(S, { id: G, children: o }),
1254
+ d && /* @__PURE__ */ o(V, { id: Q, isRequired: f, isInvalid: !!i, children: d }),
1255
+ s && /* @__PURE__ */ o(z, { id: H, children: s }),
1071
1256
  u,
1072
- F && /* @__PURE__ */ a(E, { id: H, children: F })
1257
+ j && /* @__PURE__ */ o(k, { id: D, children: j })
1073
1258
  ]
1074
1259
  }
1075
1260
  ) });
1076
1261
  }
1077
- ), et = b(
1262
+ ), lt = g(
1078
1263
  (e, r) => {
1079
- const { children: t, className: n, isInvalid: s, size: o, ...i } = e, c = o === "small";
1080
- return /* @__PURE__ */ g("div", { className: l(n, "relative", c && "text-sm"), children: [
1081
- /* @__PURE__ */ a(
1264
+ const { children: t, className: n, isInvalid: a, size: s, ...i } = e, c = s === "small";
1265
+ return /* @__PURE__ */ b("div", { className: l(n, "relative", c && "text-sm"), children: [
1266
+ /* @__PURE__ */ o(
1082
1267
  "select",
1083
1268
  {
1084
- "aria-invalid": s,
1269
+ "aria-invalid": a,
1085
1270
  ...i,
1086
1271
  className: l(
1087
1272
  "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",
1088
1273
  c ? "rounded px-3.5 py-2" : "rounded-lg px-4 py-3.5",
1089
- s ? "border-red focus:border-red" : "focus:border-blue-dark border-black"
1274
+ a ? "border-red focus:border-red" : "focus:border-blue-dark border-black"
1090
1275
  ),
1091
1276
  ref: r,
1092
1277
  children: t
1093
1278
  }
1094
1279
  ),
1095
- /* @__PURE__ */ a(
1280
+ /* @__PURE__ */ o(
1096
1281
  re,
1097
1282
  {
1098
1283
  className: l(
@@ -1103,76 +1288,76 @@ const Mt = (e) => {
1103
1288
  )
1104
1289
  ] });
1105
1290
  }
1106
- ), Zt = b(
1291
+ ), _t = g(
1107
1292
  (e, r) => {
1108
1293
  const {
1109
1294
  description: t,
1110
1295
  error: n,
1111
- id: s,
1112
- label: o,
1296
+ id: a,
1297
+ label: s,
1113
1298
  disableValidation: i = !1,
1114
1299
  ...c
1115
- } = e, u = L(null), d = Y(u, r), { validity: m, validationMessage: h } = z(
1300
+ } = e, u = R(null), d = X(u, r), { validity: m, validationMessage: h } = L(
1116
1301
  u,
1117
1302
  !i
1118
- ), f = C(s), p = f + "help", v = f + "err", x = n || h;
1119
- return /* @__PURE__ */ g("div", { className: "grid gap-2", children: [
1120
- /* @__PURE__ */ a(
1303
+ ), f = S(a), p = f + "help", x = f + "err", v = n || h;
1304
+ return /* @__PURE__ */ b("div", { className: "grid gap-2", children: [
1305
+ /* @__PURE__ */ o(
1121
1306
  V,
1122
1307
  {
1123
1308
  htmlFor: f,
1124
1309
  isRequired: e.required,
1125
1310
  isInvalid: !!n || m === "invalid",
1126
- children: o
1311
+ children: s
1127
1312
  }
1128
1313
  ),
1129
- t && /* @__PURE__ */ a(S, { id: p, children: t }),
1130
- /* @__PURE__ */ a(
1131
- et,
1314
+ t && /* @__PURE__ */ o(z, { id: p, children: t }),
1315
+ /* @__PURE__ */ o(
1316
+ lt,
1132
1317
  {
1133
1318
  id: f,
1134
1319
  ref: d,
1135
1320
  ...c,
1136
1321
  isInvalid: !!n || m === "invalid",
1137
1322
  "aria-describedby": l({
1138
- [v]: x,
1323
+ [x]: v,
1139
1324
  [p]: t
1140
1325
  }) || void 0
1141
1326
  }
1142
1327
  ),
1143
- x && /* @__PURE__ */ a(E, { id: v, children: x })
1328
+ v && /* @__PURE__ */ o(k, { id: x, children: v })
1144
1329
  ] });
1145
1330
  }
1146
- ), Wt = (e) => {
1147
- const { heading: r, children: t, closeSnackbar: n } = e, [s, o] = k(!1);
1148
- return /* @__PURE__ */ a("div", { className: "container max-w-[59rem]", children: /* @__PURE__ */ a("div", { className: "bg-orange-light px-8 py-4 max-md:p-4", children: /* @__PURE__ */ g("div", { className: "snackbar grid items-center", children: [
1149
- /* @__PURE__ */ a(ae, { className: "text-orange snackbar-icon mr-4 self-start md:mr-8 md:text-2xl" }),
1150
- /* @__PURE__ */ a(
1331
+ ), $t = (e) => {
1332
+ const { heading: r, children: t, closeSnackbar: n } = e, [a, s] = M(!1);
1333
+ return /* @__PURE__ */ o("div", { className: "container max-w-[59rem]", children: /* @__PURE__ */ o("div", { className: "bg-orange-light px-8 py-4 max-md:p-4", children: /* @__PURE__ */ b("div", { className: "snackbar grid items-center", children: [
1334
+ /* @__PURE__ */ o(ae, { className: "text-orange snackbar-icon mr-4 self-start md:mr-8 md:text-2xl" }),
1335
+ /* @__PURE__ */ o(
1151
1336
  "h3",
1152
1337
  {
1153
1338
  className: l(
1154
1339
  "snackbar-header min-w-0 max-w-prose text-base font-medium",
1155
1340
  {
1156
- "overflow-hidden overflow-ellipsis whitespace-nowrap": !s
1341
+ "overflow-hidden overflow-ellipsis whitespace-nowrap": !a
1157
1342
  }
1158
1343
  ),
1159
1344
  children: r
1160
1345
  }
1161
1346
  ),
1162
- /* @__PURE__ */ g("div", { className: "snackbar-actions flex justify-end gap-4 max-md:mt-3 md:ml-4", children: [
1163
- /* @__PURE__ */ a(
1347
+ /* @__PURE__ */ b("div", { className: "snackbar-actions flex justify-end gap-4 max-md:mt-3 md:ml-4", children: [
1348
+ /* @__PURE__ */ o(
1164
1349
  $,
1165
1350
  {
1166
- "aria-expanded": s,
1167
- onClick: () => o(!s),
1168
- children: s ? "Les mindre" : "Les mer"
1351
+ "aria-expanded": a,
1352
+ onClick: () => s(!a),
1353
+ children: a ? "Les mindre" : "Les mer"
1169
1354
  }
1170
1355
  ),
1171
- /* @__PURE__ */ a($, { onClick: n, children: "Ok" })
1356
+ /* @__PURE__ */ o($, { onClick: n, children: "Ok" })
1172
1357
  ] }),
1173
- s && t
1358
+ a && t
1174
1359
  ] }) }) });
1175
- }, $ = (e) => /* @__PURE__ */ a(
1360
+ }, $ = (e) => /* @__PURE__ */ o(
1176
1361
  "button",
1177
1362
  {
1178
1363
  className: l(
@@ -1182,36 +1367,36 @@ const Mt = (e) => {
1182
1367
  ...e,
1183
1368
  children: e.children
1184
1369
  }
1185
- ), Kt = (e) => /* @__PURE__ */ a(
1370
+ ), er = (e) => /* @__PURE__ */ o(
1186
1371
  "div",
1187
1372
  {
1188
1373
  className: "snackbar-content my-4 max-h-[50vh] max-w-prose overflow-y-auto",
1189
1374
  ...e,
1190
1375
  children: e.children
1191
1376
  }
1192
- ), tt = (e) => {
1193
- const { align: r = "center", children: t, className: n, ...s } = e;
1194
- return /* @__PURE__ */ a("ol", { className: l(n, "flex flex-col gap-8 md:gap-12"), ...s, children: W.map(t, (o) => K(o, {
1377
+ ), dt = (e) => {
1378
+ const { align: r = "center", children: t, className: n, ...a } = e;
1379
+ return /* @__PURE__ */ o("ol", { className: l(n, "flex flex-col gap-8 md:gap-12"), ...a, children: W.map(t, (s) => K(s, {
1195
1380
  align: r
1196
1381
  })) });
1197
- }, rt = (e) => {
1198
- const { className: r, children: t, bullet: n, align: s = "center", ...o } = e;
1199
- return /* @__PURE__ */ g(
1382
+ }, ct = (e) => {
1383
+ const { className: r, children: t, bullet: n, align: a = "center", ...s } = e;
1384
+ return /* @__PURE__ */ b(
1200
1385
  "li",
1201
1386
  {
1202
1387
  className: l(
1203
1388
  r,
1204
1389
  "group relative flex gap-4 text-sm md:gap-8 md:text-base",
1205
- { "items-center": s === "center" }
1390
+ { "items-center": a === "center" }
1206
1391
  ),
1207
- ...o,
1392
+ ...s,
1208
1393
  children: [
1209
- /* @__PURE__ */ a(nt, { align: s, children: n }),
1394
+ /* @__PURE__ */ o(mt, { align: a, children: n }),
1210
1395
  t
1211
1396
  ]
1212
1397
  }
1213
1398
  );
1214
- }, nt = ({ align: e, ...r }) => /* @__PURE__ */ a(
1399
+ }, mt = ({ align: e, ...r }) => /* @__PURE__ */ o(
1215
1400
  "span",
1216
1401
  {
1217
1402
  "aria-hidden": !0,
@@ -1225,33 +1410,33 @@ const Mt = (e) => {
1225
1410
  ...r
1226
1411
  }
1227
1412
  );
1228
- tt.Item = rt;
1229
- const Yt = b(
1413
+ dt.Item = ct;
1414
+ const tr = g(
1230
1415
  (e, r) => {
1231
1416
  const {
1232
1417
  description: t,
1233
1418
  error: n,
1234
- id: s,
1235
- label: o,
1419
+ id: a,
1420
+ label: s,
1236
1421
  disableValidation: i = !1,
1237
1422
  ...c
1238
- } = e, u = L(null), d = Y(u, r), { validity: m, validationMessage: h } = z(
1423
+ } = e, u = R(null), d = X(u, r), { validity: m, validationMessage: h } = L(
1239
1424
  u,
1240
1425
  !i
1241
- ), f = C(s), p = f + "help", v = f + "err", x = n || h;
1242
- return /* @__PURE__ */ g("div", { className: "grid gap-2", children: [
1243
- /* @__PURE__ */ a(
1426
+ ), f = S(a), p = f + "help", x = f + "err", v = n || h;
1427
+ return /* @__PURE__ */ b("div", { className: "grid gap-2", children: [
1428
+ /* @__PURE__ */ o(
1244
1429
  V,
1245
1430
  {
1246
1431
  htmlFor: f,
1247
1432
  isRequired: e.required,
1248
1433
  isInvalid: !!n || m === "invalid",
1249
- children: o
1434
+ children: s
1250
1435
  }
1251
1436
  ),
1252
- t && /* @__PURE__ */ a(S, { id: p, children: t }),
1253
- /* @__PURE__ */ a(
1254
- ue,
1437
+ t && /* @__PURE__ */ o(z, { id: p, children: t }),
1438
+ /* @__PURE__ */ o(
1439
+ fe,
1255
1440
  {
1256
1441
  as: "textarea",
1257
1442
  ref: d,
@@ -1259,111 +1444,116 @@ const Yt = b(
1259
1444
  ...c,
1260
1445
  isInvalid: !!n || m === "invalid",
1261
1446
  "aria-describedby": l({
1262
- [v]: x,
1447
+ [x]: v,
1263
1448
  [p]: t
1264
1449
  }) || void 0
1265
1450
  }
1266
1451
  ),
1267
- x && /* @__PURE__ */ a(E, { id: v, children: x })
1452
+ v && /* @__PURE__ */ o(k, { id: x, children: v })
1268
1453
  ] });
1269
1454
  }
1270
- ), Xt = b(
1455
+ ), rr = g(
1271
1456
  (e, r) => {
1272
1457
  const {
1273
1458
  description: t,
1274
1459
  error: n,
1275
- id: s,
1276
- label: o,
1460
+ id: a,
1461
+ label: s,
1277
1462
  type: i = "text",
1278
1463
  disableValidation: c = !1,
1279
1464
  ...u
1280
- } = e, d = L(null), { validity: m, validationMessage: h } = z(
1465
+ } = e, d = R(null), { validity: m, validationMessage: h } = L(
1281
1466
  d,
1282
1467
  !c
1283
- ), f = C(s), p = f + "help", v = f + "err", x = n || h, T = Y(d, r);
1284
- return /* @__PURE__ */ g("div", { className: "grid gap-2", children: [
1285
- /* @__PURE__ */ a(
1468
+ ), f = S(a), p = f + "help", x = f + "err", v = n || h, J = X(d, r);
1469
+ return /* @__PURE__ */ b("div", { className: "grid gap-2", children: [
1470
+ /* @__PURE__ */ o(
1286
1471
  V,
1287
1472
  {
1288
1473
  htmlFor: f,
1289
1474
  isRequired: e.required,
1290
1475
  isInvalid: !!n || m === "invalid",
1291
- children: o
1476
+ children: s
1292
1477
  }
1293
1478
  ),
1294
- t && /* @__PURE__ */ a(S, { id: p, children: t }),
1295
- /* @__PURE__ */ a(
1296
- ue,
1479
+ t && /* @__PURE__ */ o(z, { id: p, children: t }),
1480
+ /* @__PURE__ */ o(
1481
+ fe,
1297
1482
  {
1298
1483
  id: f,
1299
- ref: T,
1484
+ ref: J,
1300
1485
  type: i,
1301
1486
  ...u,
1302
1487
  isInvalid: !!n || m === "invalid",
1303
1488
  "aria-describedby": l({
1304
- [v]: x,
1489
+ [x]: v,
1305
1490
  [p]: t
1306
1491
  }) || void 0
1307
1492
  }
1308
1493
  ),
1309
- x && /* @__PURE__ */ a(E, { id: v, children: x })
1494
+ v && /* @__PURE__ */ o(k, { id: x, children: v })
1310
1495
  ] });
1311
1496
  }
1312
1497
  );
1313
1498
  export {
1314
- X as Accordion,
1315
- qe as AccordionContent,
1316
- Re as AccordionHeader,
1317
- Ee as AccordionItem,
1318
- ct as Alert,
1319
- ut as Banner,
1320
- ft as BannerImage,
1321
- gt as Button,
1499
+ Y as Accordion,
1500
+ Le as AccordionContent,
1501
+ Me as AccordionHeader,
1502
+ qe as AccordionItem,
1503
+ vt as Alert,
1504
+ Nt as Banner,
1505
+ wt as BannerImage,
1506
+ yt as Button,
1322
1507
  P as ButtonColorContext,
1323
- bt as Campaign,
1324
- ht as Card,
1325
- xt as CardContent,
1326
- pt as CardImage,
1327
- vt as CardLinkOverlay,
1328
- At as CardList,
1329
- Nt as Checkbox,
1330
- wt as Chip,
1331
- yt as Footer,
1332
- It as Form,
1333
- Ct as FormError,
1334
- E as FormErrorMessage,
1335
- Qe as FormHeading,
1336
- S as FormHelperText,
1508
+ It as Campaign,
1509
+ Et as Card,
1510
+ St as CardContent,
1511
+ Ct as CardImage,
1512
+ kt as CardLinkOverlay,
1513
+ Rt as CardList,
1514
+ qt as Checkbox,
1515
+ Mt as Chip,
1516
+ Lt as Footer,
1517
+ Pt as Form,
1518
+ zt as FormError,
1519
+ k as FormErrorMessage,
1520
+ Ge as FormHeading,
1521
+ z as FormHelperText,
1337
1522
  V as FormLabel,
1338
- Et as FormSuccess,
1339
- Rt as Hero,
1340
- Lt as HeroActions,
1341
- kt as HeroContent,
1342
- J as HeroContext,
1343
- qt as HeroImage,
1344
- ue as Input,
1345
- Mt as Link,
1346
- zt as Navbar,
1347
- Jt as NavbarCollapsible,
1348
- Vt as NavbarContent,
1349
- Ot as NavbarExpandedMobileContent,
1350
- St as NavbarItem,
1351
- Pt as NavbarItems,
1352
- Tt as Pagination,
1353
- jt as Radio,
1354
- Ft as RadioGroup,
1355
- Zt as Select,
1356
- Wt as Snackbar,
1523
+ Ft as FormStep,
1524
+ _e as FormStepHeader,
1525
+ $e as FormStepHeaderContent,
1526
+ Tt as FormStepProvider,
1527
+ Vt as FormSuccess,
1528
+ Jt as Hero,
1529
+ Zt as HeroActions,
1530
+ jt as HeroContent,
1531
+ T as HeroContext,
1532
+ Ot as HeroImage,
1533
+ fe as Input,
1534
+ Wt as Link,
1535
+ Kt as Navbar,
1536
+ Ut as NavbarCollapsible,
1537
+ Bt as NavbarContent,
1538
+ Qt as NavbarExpandedMobileContent,
1539
+ Yt as NavbarItem,
1540
+ Xt as NavbarItems,
1541
+ Ht as Pagination,
1542
+ Dt as Radio,
1543
+ Gt as RadioGroup,
1544
+ _t as Select,
1545
+ $t as Snackbar,
1357
1546
  $ as SnackbarButton,
1358
- Kt as SnackbarContent,
1359
- tt as StepList,
1360
- rt as StepListItem,
1361
- Yt as TextArea,
1362
- Xt as TextField,
1547
+ er as SnackbarContent,
1548
+ dt as StepList,
1549
+ ct as StepListItem,
1550
+ tr as TextArea,
1551
+ rr as TextField,
1363
1552
  le as useBlockBackgroundColor,
1364
- C as useFallbackId,
1365
- z as useFormControlValidity,
1553
+ S as useFallbackId,
1554
+ L as useFormControlValidity,
1555
+ et as useFormStepContext,
1366
1556
  ie as useMedia,
1367
- mt as usePrefersReducedMotion,
1368
- Oe as useScreenMaxWidthMd
1557
+ xt as usePrefersReducedMotion,
1558
+ Ze as useScreenMaxWidthMd
1369
1559
  };