@obosbbl/grunnmuren-react 1.13.0 → 1.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/grunnmuren.mjs +149 -158
  2. package/package.json +2 -2
@@ -1,89 +1,12 @@
1
1
  'use client';
2
2
  import { jsx as a, jsxs as g, Fragment as Z } from "react/jsx-runtime";
3
- import he, { useState as k, useCallback as q, useEffect as pe, useId as ee, createContext as I, useContext as A, forwardRef as b, Children as W, isValidElement as te, cloneElement as K, useRef as L, useMemo as M } from "react";
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
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 ye from "react-collapsed";
5
+ import { useCollapse as ye } from "react-collapsed";
6
6
  import l from "clsx";
7
7
  import Y from "@react-hook/merged-ref";
8
8
  const y = () => {
9
- };
10
- var se = {}, N = {};
11
- Object.defineProperty(N, "__esModule", { value: !0 });
12
- N.isNavigator = N.isBrowser = N.off = N.on = N.noop = void 0;
13
- var Ie = function() {
14
- };
15
- N.noop = Ie;
16
- function Ce(e) {
17
- for (var r = [], t = 1; t < arguments.length; t++)
18
- r[t - 1] = arguments[t];
19
- e && e.addEventListener && e.addEventListener.apply(e, r);
20
- }
21
- N.on = Ce;
22
- function Ee(e) {
23
- for (var r = [], t = 1; t < arguments.length; t++)
24
- r[t - 1] = arguments[t];
25
- e && e.removeEventListener && e.removeEventListener.apply(e, r);
26
- }
27
- N.off = Ee;
28
- N.isBrowser = typeof window < "u";
29
- N.isNavigator = typeof navigator < "u";
30
- Object.defineProperty(se, "__esModule", { value: !0 });
31
- var D = he, Re = N, qe = function(e, r) {
32
- return r !== void 0 ? r : Re.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);
33
- }, ke = function(e, r) {
34
- var t = D.useState(qe(e, r)), n = t[0], s = t[1];
35
- return D.useEffect(function() {
36
- var o = !0, i = window.matchMedia(e), c = function() {
37
- o && s(!!i.matches);
38
- };
39
- return i.addListener(c), s(i.matches), function() {
40
- o = !1, i.removeListener(c);
41
- };
42
- }, [e]), n;
43
- }, oe = se.default = ke;
44
- const Le = "(prefers-reduced-motion: reduce)", Me = (e = !1) => oe(Le, e);
45
- function ie(e) {
46
- switch (e) {
47
- case "gray":
48
- return "bg-gray-lightest";
49
- case "green":
50
- case "mint":
51
- return "bg-mint-light";
52
- case "yellow":
53
- return "bg-yellow";
54
- case "blue":
55
- case "sky":
56
- return "bg-sky-light";
57
- }
58
- }
59
- const ze = (e) => oe("(max-width: 767.9px)", e);
60
- function z(e, r = !0) {
61
- const [t, n] = k("indeterminate"), [s, o] = k(), i = q((d) => {
62
- d.target.checkValidity() && (n("valid"), o(void 0));
63
- }, []), c = q(
64
- (d) => {
65
- t !== "indeterminate" && d.target.checkValidity() && (n("valid"), o(void 0));
66
- },
67
- [t]
68
- ), u = q((d) => {
69
- d.preventDefault();
70
- const m = d.target.validationMessage;
71
- o(m), n("invalid");
72
- }, []);
73
- return pe(() => {
74
- var m;
75
- const { current: d } = e;
76
- return r && // @ts-expect-error respect the <form noValidate> attribute if we are rendered inside a form
77
- ((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)), () => {
78
- d == null || d.removeEventListener("blur", i), d == null || d.removeEventListener("input", c), d == null || d.removeEventListener("invalid", u);
79
- };
80
- }, [r, c]), { validity: t, validationMessage: s };
81
- }
82
- function C(e) {
83
- const r = ee();
84
- return e ?? r;
85
- }
86
- const Pe = 300, Se = "duration-300", X = (e) => {
9
+ }, Ie = 300, Ce = "duration-300", X = (e) => {
87
10
  const { className: r, ...t } = e;
88
11
  return /* @__PURE__ */ a("div", { className: l(r, "flex flex-col gap-2"), ...t });
89
12
  }, B = I({
@@ -94,26 +17,25 @@ const Pe = 300, Se = "duration-300", X = (e) => {
94
17
  // @ts-expect-error noop
95
18
  getToggleProps: y,
96
19
  onChange: y
97
- }), Ve = (e) => {
98
- const r = Me(), { className: t, defaultOpen: n, onChange: s = y, open: o, ...i } = e, c = ye({
99
- defaultExpanded: n,
100
- isExpanded: o,
101
- duration: Pe,
102
- hasDisabledAnimation: r,
20
+ }), Ee = (e) => {
21
+ const { className: r, defaultOpen: t, onChange: n = y, open: s, ...o } = e, i = ye({
22
+ defaultExpanded: t,
23
+ isExpanded: s,
24
+ duration: Ie,
103
25
  easing: "cubic-bezier(0.25, 0.1, 0.25, 1)"
104
26
  });
105
- return /* @__PURE__ */ a(B.Provider, { value: { onChange: s, ...c }, children: /* @__PURE__ */ a(
27
+ return /* @__PURE__ */ a(B.Provider, { value: { onChange: n, ...i }, children: /* @__PURE__ */ a(
106
28
  "div",
107
29
  {
108
30
  className: l(
109
- t,
31
+ r,
110
32
  "rounded-sm border-b-2 border-l-4 border-solid",
111
- c.isExpanded ? "border-l-green-dark" : "border-l-green"
33
+ i.isExpanded ? "border-l-green-dark" : "border-l-green"
112
34
  ),
113
- ...i
35
+ ...o
114
36
  }
115
37
  ) });
116
- }, Je = (e) => {
38
+ }, Re = (e) => {
117
39
  const { children: r, className: t, as: n = "h3", ...s } = e, { getToggleProps: o, onChange: i, isExpanded: c } = A(B), u = o({ onClick: () => i(!c) });
118
40
  return /* @__PURE__ */ a(n, { children: /* @__PURE__ */ g(
119
41
  "button",
@@ -124,34 +46,26 @@ const Pe = 300, Se = "duration-300", X = (e) => {
124
46
  ),
125
47
  ...s,
126
48
  ...u,
127
- id: le(u["aria-controls"]),
49
+ id: se(u["aria-controls"]),
128
50
  children: [
129
51
  r,
130
52
  /* @__PURE__ */ a(
131
53
  re,
132
54
  {
133
- className: `shrink-0 text-sm ${Se} group-aria-expanded:rotate-180`
55
+ className: `shrink-0 text-sm ${Ce} group-aria-expanded:rotate-180`
134
56
  }
135
57
  )
136
58
  ]
137
59
  }
138
60
  ) });
139
- }, Oe = (e) => {
61
+ }, qe = (e) => {
140
62
  const { getCollapseProps: r } = A(B), { className: t, ...n } = e, s = r();
141
- return /* @__PURE__ */ a(
142
- "div",
143
- {
144
- ...s,
145
- role: "region",
146
- "aria-labelledby": le(s.id),
147
- children: /* @__PURE__ */ a("div", { className: l(t, "p-5 pb-10"), ...n })
148
- }
149
- );
150
- }, le = (e) => e + "toggle";
151
- X.Item = Ve;
152
- X.Header = Je;
153
- X.Content = Oe;
154
- const mt = (e) => {
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) => {
155
69
  const { className: r, children: t, heading: n, severity: s = "alert", ...o } = e;
156
70
  return /* @__PURE__ */ a(
157
71
  "section",
@@ -164,7 +78,7 @@ const mt = (e) => {
164
78
  ...o,
165
79
  children: /* @__PURE__ */ g("div", { className: "flex justify-center", children: [
166
80
  /* @__PURE__ */ a(
167
- Te,
81
+ ke,
168
82
  {
169
83
  className: "mr-4 flex-none md:mr-8 md:text-2xl",
170
84
  severity: s
@@ -177,7 +91,84 @@ const mt = (e) => {
177
91
  ] })
178
92
  }
179
93
  );
180
- }, Te = ({ severity: e, className: r }) => e === "alert" ? /* @__PURE__ */ a(ne, { className: l(r, "text-red") }) : /* @__PURE__ */ a(ae, { className: l(r, "text-orange") }), ut = (e) => {
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 = {};
96
+ Object.defineProperty(N, "__esModule", { value: !0 });
97
+ N.isNavigator = N.isBrowser = N.off = N.on = N.noop = void 0;
98
+ var Le = function() {
99
+ };
100
+ N.noop = Le;
101
+ function Me(e) {
102
+ for (var r = [], t = 1; t < arguments.length; t++)
103
+ r[t - 1] = arguments[t];
104
+ e && e.addEventListener && e.addEventListener.apply(e, r);
105
+ }
106
+ N.on = Me;
107
+ function ze(e) {
108
+ for (var r = [], t = 1; t < arguments.length; t++)
109
+ r[t - 1] = arguments[t];
110
+ e && e.removeEventListener && e.removeEventListener.apply(e, r);
111
+ }
112
+ N.off = ze;
113
+ N.isBrowser = typeof window < "u";
114
+ 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);
123
+ };
124
+ return i.addListener(c), s(i.matches), function() {
125
+ o = !1, i.removeListener(c);
126
+ };
127
+ }, [e]), n;
128
+ }, ie = oe.default = Ve;
129
+ const Je = "(prefers-reduced-motion: reduce)", mt = (e = !1) => ie(Je, e);
130
+ function le(e) {
131
+ switch (e) {
132
+ case "gray":
133
+ return "bg-gray-lightest";
134
+ case "green":
135
+ case "mint":
136
+ return "bg-mint-light";
137
+ case "yellow":
138
+ return "bg-yellow";
139
+ case "blue":
140
+ case "sky":
141
+ return "bg-sky-light";
142
+ }
143
+ }
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(
149
+ (d) => {
150
+ t !== "indeterminate" && d.target.checkValidity() && (n("valid"), o(void 0));
151
+ },
152
+ [t]
153
+ ), u = q((d) => {
154
+ d.preventDefault();
155
+ const m = d.target.validationMessage;
156
+ o(m), n("invalid");
157
+ }, []);
158
+ return pe(() => {
159
+ var m;
160
+ const { current: d } = e;
161
+ return r && // @ts-expect-error respect the <form noValidate> attribute if we are rendered inside a form
162
+ ((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
+ d == null || d.removeEventListener("blur", i), d == null || d.removeEventListener("input", c), d == null || d.removeEventListener("invalid", u);
164
+ };
165
+ }, [r, c]), { validity: t, validationMessage: s };
166
+ }
167
+ function C(e) {
168
+ const r = ee();
169
+ return e ?? r;
170
+ }
171
+ const ut = (e) => {
181
172
  const {
182
173
  bgColor: r,
183
174
  className: t,
@@ -185,7 +176,7 @@ const mt = (e) => {
185
176
  heading: s,
186
177
  image: o,
187
178
  ...i
188
- } = e, c = ie(r);
179
+ } = e, c = le(r);
189
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: [
190
181
  o,
191
182
  /* @__PURE__ */ g("div", { className: "max-w-prose", children: [
@@ -201,7 +192,7 @@ const mt = (e) => {
201
192
  className: "w-20 flex-none self-center md:w-32 md:self-start",
202
193
  ...e
203
194
  }
204
- ), je = {
195
+ ), Te = {
205
196
  "standard-primary": "bg-green border-green text-white",
206
197
  "standard-secondary": "bg-white border-green text-black",
207
198
  "mint-primary": "bg-mint border-mint text-black",
@@ -220,7 +211,7 @@ const mt = (e) => {
220
211
  type: c = "button",
221
212
  variant: u = "primary",
222
213
  ...d
223
- } = e, m = A(P), f = je[`${s ?? m}-${u}`], p = l(n, f, "button"), v = i ? /* @__PURE__ */ a(Fe, { children: t }) : t;
214
+ } = e, m = A(P), f = Te[`${s ?? m}-${u}`], p = l(n, f, "button"), v = i ? /* @__PURE__ */ a(je, { children: t }) : t;
224
215
  return /* @__PURE__ */ a(Z, { children: o ? /* @__PURE__ */ a(
225
216
  "a",
226
217
  {
@@ -242,7 +233,7 @@ const mt = (e) => {
242
233
  children: v
243
234
  }
244
235
  ) });
245
- }), Fe = (e) => /* @__PURE__ */ g(Z, { children: [
236
+ }), je = (e) => /* @__PURE__ */ g(Z, { children: [
246
237
  de(e.children),
247
238
  /* @__PURE__ */ a(
248
239
  "span",
@@ -266,7 +257,7 @@ function de(e) {
266
257
  return r;
267
258
  });
268
259
  }
269
- const P = I("standard"), ce = I(!0), Ze = (e, r) => {
260
+ const P = I("standard"), ce = I(!0), Fe = (e, r) => {
270
261
  const {
271
262
  as: t = "div",
272
263
  body: n,
@@ -290,7 +281,7 @@ const P = I("standard"), ce = I(!0), Ze = (e, r) => {
290
281
  ]
291
282
  }
292
283
  );
293
- }, We = b(Ze), Ke = b(
284
+ }, Ze = b(Fe), We = b(
294
285
  (e, r) => {
295
286
  const { className: t, ...n } = e;
296
287
  return /* @__PURE__ */ a(
@@ -302,7 +293,7 @@ const P = I("standard"), ce = I(!0), Ze = (e, r) => {
302
293
  }
303
294
  );
304
295
  }
305
- ), Ye = b(
296
+ ), Ke = b(
306
297
  (e, r) => {
307
298
  const { className: t, children: n, ...s } = e, o = A(ce), i = l(
308
299
  t,
@@ -320,10 +311,10 @@ const P = I("standard"), ce = I(!0), Ze = (e, r) => {
320
311
  }
321
312
  return /* @__PURE__ */ a("img", { className: i, ref: r, ...s });
322
313
  }
323
- ), bt = Object.assign({}, We, {
324
- Body: Ke,
325
- Image: Ye
326
- }), Xe = (e, r) => {
314
+ ), bt = Object.assign({}, Ze, {
315
+ Body: We,
316
+ Image: Ke
317
+ }), Ye = (e, r) => {
327
318
  const {
328
319
  as: t = "div",
329
320
  className: n,
@@ -341,7 +332,7 @@ const P = I("standard"), ce = I(!0), Ze = (e, r) => {
341
332
  ref: r
342
333
  }
343
334
  );
344
- }, ht = b(Xe), pt = b(
335
+ }, ht = b(Ye), pt = b(
345
336
  (e, r) => {
346
337
  const { className: t, ...n } = e;
347
338
  return /* @__PURE__ */ a(
@@ -356,7 +347,7 @@ const P = I("standard"), ce = I(!0), Ze = (e, r) => {
356
347
  }
357
348
  ), At = b(
358
349
  (e, r) => {
359
- const { bgColor: t, className: n, ...s } = e, o = ie(t);
350
+ const { bgColor: t, className: n, ...s } = e, o = le(t);
360
351
  return /* @__PURE__ */ a("div", { className: l(o, n), children: /* @__PURE__ */ a(
361
352
  "div",
362
353
  {
@@ -422,14 +413,14 @@ const P = I("standard"), ce = I(!0), Ze = (e, r) => {
422
413
  p && /* @__PURE__ */ a(E, { id: f, children: p })
423
414
  ] });
424
415
  }
425
- ), Be = {
416
+ ), Xe = {
426
417
  sky: "bg-sky border-sky",
427
418
  "red-light": "bg-red-light border-red-light",
428
419
  mint: "bg-mint border-mint",
429
420
  "orange-light": "bg-orange-light border-orange-light",
430
421
  "green-light": "bg-green-light border-green-light",
431
422
  "blue-light": "bg-blue-light border-blue-light"
432
- }, Qe = {
423
+ }, Be = {
433
424
  sky: "text-blue-dark",
434
425
  "red-light": "text-red",
435
426
  mint: "text-green",
@@ -437,7 +428,7 @@ const P = I("standard"), ce = I(!0), Ze = (e, r) => {
437
428
  "green-light": "text-green",
438
429
  "blue-light": "text-blue-dark"
439
430
  }, wt = (e) => {
440
- const { className: r, color: t, icon: n, children: s, variant: o = "filled" } = e, i = t && Be[t], c = t && Qe[t];
431
+ const { className: r, color: t, icon: n, children: s, variant: o = "filled" } = e, i = t && Xe[t], c = t && Be[t];
441
432
  return /* @__PURE__ */ g(
442
433
  "div",
443
434
  {
@@ -485,12 +476,12 @@ const P = I("standard"), ce = I(!0), Ze = (e, r) => {
485
476
  ),
486
477
  ...s,
487
478
  children: [
488
- r && /* @__PURE__ */ a(Ue, { children: r }),
479
+ r && /* @__PURE__ */ a(Qe, { children: r }),
489
480
  /* @__PURE__ */ a("div", { className: "p-6 md:p-10", children: t })
490
481
  ]
491
482
  }
492
483
  );
493
- }, Ue = (e) => {
484
+ }, Qe = (e) => {
494
485
  const { className: r, ...t } = e;
495
486
  return /* @__PURE__ */ a(
496
487
  "h2",
@@ -732,7 +723,7 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
732
723
  rightAddon: c,
733
724
  leftAddon: u,
734
725
  ...d
735
- } = e, m = o ?? "input", h = Ge(m, i);
726
+ } = e, m = o ?? "input", h = Ue(m, i);
736
727
  return /* @__PURE__ */ g(
737
728
  "div",
738
729
  {
@@ -766,7 +757,7 @@ const J = I({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
766
757
  }
767
758
  );
768
759
  });
769
- function Ge(e, r) {
760
+ function Ue(e, r) {
770
761
  if (r != null)
771
762
  return r;
772
763
  if (e === "input")
@@ -834,7 +825,7 @@ const Mt = (e) => {
834
825
  }
835
826
  );
836
827
  }
837
- ), He = () => {
828
+ ), Ge = () => {
838
829
  const { isExpanded: e, setIsExpanded: r, collapsibleId: t } = A(R);
839
830
  let n = xe, s = "Meny";
840
831
  return e && (n = ve, s = "Lukk"), /* @__PURE__ */ g(
@@ -861,7 +852,7 @@ const Mt = (e) => {
861
852
  children: [
862
853
  n,
863
854
  /* @__PURE__ */ a("div", { className: "hidden md:block", children: t }),
864
- /* @__PURE__ */ a(He, {})
855
+ /* @__PURE__ */ a(Ge, {})
865
856
  ]
866
857
  }
867
858
  );
@@ -880,7 +871,7 @@ const Mt = (e) => {
880
871
  }
881
872
  );
882
873
  }, Ot = (e) => {
883
- const { isExpanded: r } = A(R), t = ze(!1);
874
+ const { isExpanded: r } = A(R), t = Oe(!1);
884
875
  return !r || !t ? null : /* @__PURE__ */ a(Z, { children: e.children });
885
876
  }, w = 2, O = I({ currentPage: 0, pageCount: 0 }), Tt = (e) => {
886
877
  const {
@@ -909,7 +900,7 @@ const Mt = (e) => {
909
900
  ...d,
910
901
  children: [
911
902
  /* @__PURE__ */ a(
912
- _e,
903
+ De,
913
904
  {
914
905
  "aria-label": u,
915
906
  href: o(t - 1),
@@ -926,8 +917,8 @@ const Mt = (e) => {
926
917
  selected: t === 1
927
918
  }
928
919
  ),
929
- n > 2 + w * 2 && t > w + 2 && /* @__PURE__ */ a($e, {}),
930
- /* @__PURE__ */ a(et, { children: (f) => /* @__PURE__ */ a(
920
+ n > 2 + w * 2 && t > w + 2 && /* @__PURE__ */ a(_e, {}),
921
+ /* @__PURE__ */ a($e, { children: (f) => /* @__PURE__ */ a(
931
922
  _,
932
923
  {
933
924
  href: o(f),
@@ -939,7 +930,7 @@ const Mt = (e) => {
939
930
  f
940
931
  ) }),
941
932
  /* @__PURE__ */ a(
942
- De,
933
+ He,
943
934
  {
944
935
  "aria-label": c,
945
936
  href: o(t + 1),
@@ -949,7 +940,7 @@ const Mt = (e) => {
949
940
  ]
950
941
  }
951
942
  ) });
952
- }, De = b((e, r) => {
943
+ }, He = b((e, r) => {
953
944
  const { currentPage: t, pageCount: n } = A(O), s = t >= n;
954
945
  return /* @__PURE__ */ a(
955
946
  Q,
@@ -962,7 +953,7 @@ const Mt = (e) => {
962
953
  children: /* @__PURE__ */ a(Ne, {})
963
954
  }
964
955
  );
965
- }), _e = b((e, r) => {
956
+ }), De = b((e, r) => {
966
957
  const { currentPage: t } = A(O), n = t <= 1;
967
958
  return /* @__PURE__ */ a(
968
959
  Q,
@@ -988,7 +979,7 @@ const Mt = (e) => {
988
979
  ...n
989
980
  }
990
981
  );
991
- }), $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: "..." }), et = ({ children: e }) => {
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 }) => {
992
983
  const { currentPage: r, pageCount: t } = A(O), n = Math.min(
993
984
  Math.max(2 + w * 2, r + w),
994
985
  t
@@ -1083,7 +1074,7 @@ const Mt = (e) => {
1083
1074
  }
1084
1075
  ) });
1085
1076
  }
1086
- ), tt = b(
1077
+ ), et = b(
1087
1078
  (e, r) => {
1088
1079
  const { children: t, className: n, isInvalid: s, size: o, ...i } = e, c = o === "small";
1089
1080
  return /* @__PURE__ */ g("div", { className: l(n, "relative", c && "text-sm"), children: [
@@ -1137,7 +1128,7 @@ const Mt = (e) => {
1137
1128
  ),
1138
1129
  t && /* @__PURE__ */ a(S, { id: p, children: t }),
1139
1130
  /* @__PURE__ */ a(
1140
- tt,
1131
+ et,
1141
1132
  {
1142
1133
  id: f,
1143
1134
  ref: d,
@@ -1198,12 +1189,12 @@ const Mt = (e) => {
1198
1189
  ...e,
1199
1190
  children: e.children
1200
1191
  }
1201
- ), rt = (e) => {
1192
+ ), tt = (e) => {
1202
1193
  const { align: r = "center", children: t, className: n, ...s } = e;
1203
1194
  return /* @__PURE__ */ a("ol", { className: l(n, "flex flex-col gap-8 md:gap-12"), ...s, children: W.map(t, (o) => K(o, {
1204
1195
  align: r
1205
1196
  })) });
1206
- }, nt = (e) => {
1197
+ }, rt = (e) => {
1207
1198
  const { className: r, children: t, bullet: n, align: s = "center", ...o } = e;
1208
1199
  return /* @__PURE__ */ g(
1209
1200
  "li",
@@ -1215,12 +1206,12 @@ const Mt = (e) => {
1215
1206
  ),
1216
1207
  ...o,
1217
1208
  children: [
1218
- /* @__PURE__ */ a(at, { align: s, children: n }),
1209
+ /* @__PURE__ */ a(nt, { align: s, children: n }),
1219
1210
  t
1220
1211
  ]
1221
1212
  }
1222
1213
  );
1223
- }, at = ({ align: e, ...r }) => /* @__PURE__ */ a(
1214
+ }, nt = ({ align: e, ...r }) => /* @__PURE__ */ a(
1224
1215
  "span",
1225
1216
  {
1226
1217
  "aria-hidden": !0,
@@ -1234,7 +1225,7 @@ const Mt = (e) => {
1234
1225
  ...r
1235
1226
  }
1236
1227
  );
1237
- rt.Item = nt;
1228
+ tt.Item = rt;
1238
1229
  const Yt = b(
1239
1230
  (e, r) => {
1240
1231
  const {
@@ -1321,10 +1312,10 @@ const Yt = b(
1321
1312
  );
1322
1313
  export {
1323
1314
  X as Accordion,
1324
- Oe as AccordionContent,
1325
- Je as AccordionHeader,
1326
- Ve as AccordionItem,
1327
- mt as Alert,
1315
+ qe as AccordionContent,
1316
+ Re as AccordionHeader,
1317
+ Ee as AccordionItem,
1318
+ ct as Alert,
1328
1319
  ut as Banner,
1329
1320
  ft as BannerImage,
1330
1321
  gt as Button,
@@ -1341,7 +1332,7 @@ export {
1341
1332
  It as Form,
1342
1333
  Ct as FormError,
1343
1334
  E as FormErrorMessage,
1344
- Ue as FormHeading,
1335
+ Qe as FormHeading,
1345
1336
  S as FormHelperText,
1346
1337
  V as FormLabel,
1347
1338
  Et as FormSuccess,
@@ -1365,14 +1356,14 @@ export {
1365
1356
  Wt as Snackbar,
1366
1357
  $ as SnackbarButton,
1367
1358
  Kt as SnackbarContent,
1368
- rt as StepList,
1369
- nt as StepListItem,
1359
+ tt as StepList,
1360
+ rt as StepListItem,
1370
1361
  Yt as TextArea,
1371
1362
  Xt as TextField,
1372
- ie as useBlockBackgroundColor,
1363
+ le as useBlockBackgroundColor,
1373
1364
  C as useFallbackId,
1374
1365
  z as useFormControlValidity,
1375
- oe as useMedia,
1376
- Me as usePrefersReducedMotion,
1377
- ze as useScreenMaxWidthMd
1366
+ ie as useMedia,
1367
+ mt as usePrefersReducedMotion,
1368
+ Oe as useScreenMaxWidthMd
1378
1369
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obosbbl/grunnmuren-react",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "OBOS Grunnmuren design system React components",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@react-hook/merged-ref": "1.3.2",
43
43
  "clsx": "1.2.1",
44
- "react-collapsed": "3.5.0",
44
+ "react-collapsed": "4.0.2",
45
45
  "react-use": "17.4.0",
46
46
  "@obosbbl/grunnmuren-icons": "^0.6.0"
47
47
  },