@ogcio/design-system-react 1.33.0 → 1.34.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 (52) hide show
  1. package/dist/accordion/accordion-item.js +1 -1
  2. package/dist/alert/alert.js +1 -1
  3. package/dist/alert/variants.js +1 -1
  4. package/dist/atoms/Button.js +1 -1
  5. package/dist/atoms/heading/styles.js +1 -1
  6. package/dist/atoms/storybook/Heading.meta.d.ts +1 -1
  7. package/dist/atoms/storybook/Heading.meta.js +4 -4
  8. package/dist/atoms/storybook/Icons.meta.d.ts +1 -1
  9. package/dist/atoms/storybook/Icons.meta.js +7 -7
  10. package/dist/atoms/storybook/InsetText.meta.d.ts +1 -1
  11. package/dist/atoms/storybook/InsetText.meta.js +1 -1
  12. package/dist/atoms/storybook/Logos.meta.d.ts +1 -1
  13. package/dist/atoms/storybook/Logos.meta.js +1 -1
  14. package/dist/autocomplete/autocomplete.js +1 -1
  15. package/dist/autocomplete/use-autocomplete-controller.js +2 -2
  16. package/dist/browser-support/browser-support.js +202 -30
  17. package/dist/chip/chip.js +1 -1
  18. package/dist/data-table/data-table-footer.js +2 -2
  19. package/dist/data-table/data-table-header.js +1 -1
  20. package/dist/data-table/data-table-selected-rows.js +1 -1
  21. package/dist/data-table/editable-table-cell.js +1 -1
  22. package/dist/details/details.js +13 -16
  23. package/dist/drawer/drawer.js +1 -1
  24. package/dist/error-text/error-text.js +1 -1
  25. package/dist/header/header-legacy.js +6 -6
  26. package/dist/header/header-next/header-next.js +3 -3
  27. package/dist/header/variants.js +1 -1
  28. package/dist/hint-text/hint-text.js +1 -1
  29. package/dist/i18n/config.js +2 -2
  30. package/dist/i18n/utility.js +1 -1
  31. package/dist/{i18nInstance-AYICsHJu.js → i18nInstance-DiZ0lVPL.js} +2 -2
  32. package/dist/i18next-zBkzxGW1.js +1388 -0
  33. package/dist/{index-CB-zPpNk.js → index-C7W4ssMN.js} +1 -1
  34. package/dist/index-DqBV2TCd.js +23108 -0
  35. package/dist/index.js +1 -1
  36. package/dist/label/label.js +1 -1
  37. package/dist/{lodash-82PmXrjJ.js → lodash-DTZaBYO8.js} +289 -272
  38. package/dist/modal/modal.content.js +1 -1
  39. package/dist/pagination/pagination.js +59 -56
  40. package/dist/progress-stepper/progress-stepper.js +1 -1
  41. package/dist/select/select-native.js +1 -1
  42. package/dist/spinner/spinner.js +1 -1
  43. package/dist/stack/stack.js +2 -2
  44. package/dist/styles.css +1 -1
  45. package/dist/table/table.js +1 -1
  46. package/dist/tabs/variants.js +1 -1
  47. package/dist/toast/ds-toast.js +1 -1
  48. package/dist/tooltip/variants.js +1 -1
  49. package/dist/{useTranslation-DiBQuy8S.js → useTranslation-CRbS3UeG.js} +94 -85
  50. package/package.json +14 -7
  51. package/dist/i18next-Bfi2-LyH.js +0 -1370
  52. package/dist/index-Bh2cTIps.js +0 -33899
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { c as d } from "../index-CB-zPpNk.js";
2
+ import { c as d } from "../index-C7W4ssMN.js";
3
3
  import { cn as f } from "../cn.js";
4
4
  const m = d({
5
5
  base: "gi-table",
@@ -1,4 +1,4 @@
1
- import { c as e } from "../index-CB-zPpNk.js";
1
+ import { c as e } from "../index-C7W4ssMN.js";
2
2
  const r = e({
3
3
  slots: {
4
4
  base: [
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsxs as t, jsx as i } from "react/jsx-runtime";
3
- import { c as u } from "../index-CB-zPpNk.js";
3
+ import { c as u } from "../index-C7W4ssMN.js";
4
4
  import { Icon as p } from "../icon/icon.js";
5
5
  import { IconButton as v } from "../icon-button/icon-button.js";
6
6
  import { Link as w } from "../link/link.js";
@@ -1,4 +1,4 @@
1
- import { c as t } from "../index-CB-zPpNk.js";
1
+ import { c as t } from "../index-C7W4ssMN.js";
2
2
  const e = t({
3
3
  slots: {
4
4
  wrapper: "gi-relative gi-inline-block gi-overflow-visible gi-text-lg",
@@ -1,17 +1,17 @@
1
- import W, { createContext as J, useContext as Q, useMemo as A, useRef as C, useCallback as q, useState as Z, useEffect as ee } from "react";
2
- import { g as te, b as ne } from "./i18nInstance-AYICsHJu.js";
3
- const re = (e, n, r, g) => {
4
- var t, S, h, _;
1
+ import F, { createContext as J, useContext as Q, useMemo as j, useRef as C, useCallback as q, useState as Z, useEffect as ee } from "react";
2
+ import { g as te, b as ne } from "./i18nInstance-DiZ0lVPL.js";
3
+ const re = (e, n, r, p) => {
4
+ var t, S, y, _;
5
5
  const c = [r, {
6
6
  code: n,
7
- ...g || {}
7
+ ...p || {}
8
8
  }];
9
9
  if ((S = (t = e == null ? void 0 : e.services) == null ? void 0 : t.logger) != null && S.forward)
10
10
  return e.services.logger.forward(c, "warn", "react-i18next::", !0);
11
- w(c[0]) && (c[0] = `react-i18next:: ${c[0]}`), (_ = (h = e == null ? void 0 : e.services) == null ? void 0 : h.logger) != null && _.warn ? e.services.logger.warn(...c) : console != null && console.warn && console.warn(...c);
12
- }, z = {}, $ = (e, n, r, g) => {
13
- w(r) && z[r] || (w(r) && (z[r] = /* @__PURE__ */ new Date()), re(e, n, r, g));
14
- }, F = (e, n) => () => {
11
+ L(c[0]) && (c[0] = `react-i18next:: ${c[0]}`), (_ = (y = e == null ? void 0 : e.services) == null ? void 0 : y.logger) != null && _.warn ? e.services.logger.warn(...c) : console != null && console.warn && console.warn(...c);
12
+ }, z = {}, G = (e, n, r, p) => {
13
+ L(r) && z[r] || (L(r) && (z[r] = /* @__PURE__ */ new Date()), re(e, n, r, p));
14
+ }, $ = (e, n) => () => {
15
15
  if (e.isInitialized)
16
16
  n();
17
17
  else {
@@ -22,21 +22,21 @@ const re = (e, n, r, g) => {
22
22
  };
23
23
  e.on("initialized", r);
24
24
  }
25
- }, D = (e, n, r) => {
26
- e.loadNamespaces(n, F(e, r));
27
- }, B = (e, n, r, g) => {
28
- if (w(r) && (r = [r]), e.options.preload && e.options.preload.indexOf(n) > -1) return D(e, r, g);
25
+ }, k = (e, n, r) => {
26
+ e.loadNamespaces(n, $(e, r));
27
+ }, H = (e, n, r, p) => {
28
+ if (L(r) && (r = [r]), e.options.preload && e.options.preload.indexOf(n) > -1) return k(e, r, p);
29
29
  r.forEach((c) => {
30
30
  e.options.ns.indexOf(c) < 0 && e.options.ns.push(c);
31
- }), e.loadLanguages(n, F(e, g));
32
- }, ae = (e, n, r = {}) => !n.languages || !n.languages.length ? ($(n, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
31
+ }), e.loadLanguages(n, $(e, p));
32
+ }, ae = (e, n, r = {}) => !n.languages || !n.languages.length ? (G(n, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
33
33
  languages: n.languages
34
34
  }), !0) : n.hasLoadedNamespace(e, {
35
35
  lng: r.lng,
36
- precheck: (g, c) => {
37
- if (r.bindI18n && r.bindI18n.indexOf("languageChanging") > -1 && g.services.backendConnector.backend && g.isLanguageChangingTo && !c(g.isLanguageChangingTo, e)) return !1;
36
+ precheck: (p, c) => {
37
+ if (r.bindI18n && r.bindI18n.indexOf("languageChanging") > -1 && p.services.backendConnector.backend && p.isLanguageChangingTo && !c(p.isLanguageChangingTo, e)) return !1;
38
38
  }
39
- }), w = (e) => typeof e == "string", oe = (e) => typeof e == "object" && e !== null, se = J();
39
+ }), L = (e) => typeof e == "string", oe = (e) => typeof e == "object" && e !== null, se = J();
40
40
  class ce {
41
41
  constructor() {
42
42
  this.usedNamespaces = {};
@@ -50,7 +50,7 @@ class ce {
50
50
  return Object.keys(this.usedNamespaces);
51
51
  }
52
52
  }
53
- var R = { exports: {} }, j = {};
53
+ var I = { exports: {} }, U = {};
54
54
  /**
55
55
  * @license React
56
56
  * use-sync-external-store-shim.production.js
@@ -60,26 +60,26 @@ var R = { exports: {} }, j = {};
60
60
  * This source code is licensed under the MIT license found in the
61
61
  * LICENSE file in the root directory of this source tree.
62
62
  */
63
- var H;
63
+ var K;
64
64
  function ue() {
65
- if (H) return j;
66
- H = 1;
67
- var e = W;
65
+ if (K) return U;
66
+ K = 1;
67
+ var e = F;
68
68
  function n(a, d) {
69
69
  return a === d && (a !== 0 || 1 / a === 1 / d) || a !== a && d !== d;
70
70
  }
71
- var r = typeof Object.is == "function" ? Object.is : n, g = e.useState, c = e.useEffect, t = e.useLayoutEffect, S = e.useDebugValue;
72
- function h(a, d) {
73
- var o = d(), u = g({ inst: { value: o, getSnapshot: d } }), l = u[0].inst, y = u[1];
71
+ var r = typeof Object.is == "function" ? Object.is : n, p = e.useState, c = e.useEffect, t = e.useLayoutEffect, S = e.useDebugValue;
72
+ function y(a, d) {
73
+ var o = d(), u = p({ inst: { value: o, getSnapshot: d } }), l = u[0].inst, h = u[1];
74
74
  return t(
75
75
  function() {
76
- l.value = o, l.getSnapshot = d, _(l) && y({ inst: l });
76
+ l.value = o, l.getSnapshot = d, _(l) && h({ inst: l });
77
77
  },
78
78
  [a, o, d]
79
79
  ), c(
80
80
  function() {
81
- return _(l) && y({ inst: l }), a(function() {
82
- _(l) && y({ inst: l });
81
+ return _(l) && h({ inst: l }), a(function() {
82
+ _(l) && h({ inst: l });
83
83
  });
84
84
  },
85
85
  [a]
@@ -95,13 +95,13 @@ function ue() {
95
95
  return !0;
96
96
  }
97
97
  }
98
- function O(a, d) {
98
+ function m(a, d) {
99
99
  return d();
100
100
  }
101
- var m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? O : h;
102
- return j.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : m, j;
101
+ var v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? m : y;
102
+ return U.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : v, U;
103
103
  }
104
- var U = {};
104
+ var D = {};
105
105
  /**
106
106
  * @license React
107
107
  * use-sync-external-store-shim.development.js
@@ -111,40 +111,40 @@ var U = {};
111
111
  * This source code is licensed under the MIT license found in the
112
112
  * LICENSE file in the root directory of this source tree.
113
113
  */
114
- var K;
114
+ var M;
115
115
  function ie() {
116
- return K || (K = 1, process.env.NODE_ENV !== "production" && (function() {
116
+ return M || (M = 1, process.env.NODE_ENV !== "production" && (function() {
117
117
  function e(o, u) {
118
118
  return o === u && (o !== 0 || 1 / o === 1 / u) || o !== o && u !== u;
119
119
  }
120
120
  function n(o, u) {
121
- m || c.startTransition === void 0 || (m = !0, console.error(
121
+ v || c.startTransition === void 0 || (v = !0, console.error(
122
122
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
123
123
  ));
124
124
  var l = u();
125
125
  if (!a) {
126
- var y = u();
127
- t(l, y) || (console.error(
126
+ var h = u();
127
+ t(l, h) || (console.error(
128
128
  "The result of getSnapshot should be cached to avoid an infinite loop"
129
129
  ), a = !0);
130
130
  }
131
- y = S({
131
+ h = S({
132
132
  inst: { value: l, getSnapshot: u }
133
133
  });
134
- var E = y[0].inst, v = y[1];
134
+ var E = h[0].inst, w = h[1];
135
135
  return _(
136
136
  function() {
137
- E.value = l, E.getSnapshot = u, r(E) && v({ inst: E });
137
+ E.value = l, E.getSnapshot = u, r(E) && w({ inst: E });
138
138
  },
139
139
  [o, l, u]
140
- ), h(
140
+ ), y(
141
141
  function() {
142
- return r(E) && v({ inst: E }), o(function() {
143
- r(E) && v({ inst: E });
142
+ return r(E) && w({ inst: E }), o(function() {
143
+ r(E) && w({ inst: E });
144
144
  });
145
145
  },
146
146
  [o]
147
- ), O(l), l;
147
+ ), m(l), l;
148
148
  }
149
149
  function r(o) {
150
150
  var u = o.getSnapshot;
@@ -156,80 +156,89 @@ function ie() {
156
156
  return !0;
157
157
  }
158
158
  }
159
- function g(o, u) {
159
+ function p(o, u) {
160
160
  return u();
161
161
  }
162
162
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
163
- var c = W, t = typeof Object.is == "function" ? Object.is : e, S = c.useState, h = c.useEffect, _ = c.useLayoutEffect, O = c.useDebugValue, m = !1, a = !1, d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? g : n;
164
- U.useSyncExternalStore = c.useSyncExternalStore !== void 0 ? c.useSyncExternalStore : d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
165
- })()), U;
163
+ var c = F, t = typeof Object.is == "function" ? Object.is : e, S = c.useState, y = c.useEffect, _ = c.useLayoutEffect, m = c.useDebugValue, v = !1, a = !1, d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? p : n;
164
+ D.useSyncExternalStore = c.useSyncExternalStore !== void 0 ? c.useSyncExternalStore : d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
165
+ })()), D;
166
166
  }
167
- var M;
167
+ var W;
168
168
  function le() {
169
- return M || (M = 1, process.env.NODE_ENV === "production" ? R.exports = ue() : R.exports = ie()), R.exports;
169
+ return W || (W = 1, process.env.NODE_ENV === "production" ? I.exports = ue() : I.exports = ie()), I.exports;
170
170
  }
171
171
  var fe = le();
172
- const de = (e, n) => w(n) ? n : oe(n) && w(n.defaultValue) ? n.defaultValue : Array.isArray(e) ? e[e.length - 1] : e, pe = {
172
+ const de = (e, n) => {
173
+ if (L(n)) return n;
174
+ if (oe(n) && L(n.defaultValue)) return n.defaultValue;
175
+ if (typeof e == "function") return "";
176
+ if (Array.isArray(e)) {
177
+ const r = e[e.length - 1];
178
+ return typeof r == "function" ? "" : r;
179
+ }
180
+ return e;
181
+ }, pe = {
173
182
  t: de,
174
183
  ready: !1
175
184
  }, ge = () => () => {
176
185
  }, ye = (e, n = {}) => {
177
- var k, N, P;
186
+ var B, T, V;
178
187
  const {
179
188
  i18n: r
180
189
  } = n, {
181
- i18n: g,
190
+ i18n: p,
182
191
  defaultNS: c
183
- } = Q(se) || {}, t = r || g || te();
184
- t && !t.reportNamespaces && (t.reportNamespaces = new ce()), t || $(t, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
185
- const S = A(() => {
192
+ } = Q(se) || {}, t = r || p || ne();
193
+ t && !t.reportNamespaces && (t.reportNamespaces = new ce()), t || G(t, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
194
+ const S = j(() => {
186
195
  var s;
187
196
  return {
188
- ...ne(),
197
+ ...te(),
189
198
  ...(s = t == null ? void 0 : t.options) == null ? void 0 : s.react,
190
199
  ...n
191
200
  };
192
201
  }, [t, n]), {
193
- useSuspense: h,
202
+ useSuspense: y,
194
203
  keyPrefix: _
195
- } = S, O = c || ((k = t == null ? void 0 : t.options) == null ? void 0 : k.defaultNS), m = w(O) ? [O] : O || ["translation"], a = A(() => m, m);
196
- (P = (N = t == null ? void 0 : t.reportNamespaces) == null ? void 0 : N.addUsedNamespaces) == null || P.call(N, a);
204
+ } = S, m = c || ((B = t == null ? void 0 : t.options) == null ? void 0 : B.defaultNS), v = L(m) ? [m] : m || ["translation"], a = j(() => v, v);
205
+ (V = (T = t == null ? void 0 : t.reportNamespaces) == null ? void 0 : T.addUsedNamespaces) == null || V.call(T, a);
197
206
  const d = C(0), o = q((s) => {
198
207
  if (!t) return ge;
199
208
  const {
200
209
  bindI18n: i,
201
210
  bindI18nStore: f
202
- } = S, p = () => {
211
+ } = S, g = () => {
203
212
  d.current += 1, s();
204
213
  };
205
- return i && t.on(i, p), f && t.store.on(f, p), () => {
206
- i && i.split(" ").forEach((T) => t.off(T, p)), f && f.split(" ").forEach((T) => t.store.off(T, p));
214
+ return i && t.on(i, g), f && t.store.on(f, g), () => {
215
+ i && i.split(" ").forEach((O) => t.off(O, g)), f && f.split(" ").forEach((O) => t.store.off(O, g));
207
216
  };
208
217
  }, [t, S]), u = C(), l = q(() => {
209
218
  if (!t)
210
219
  return pe;
211
- const s = !!(t.isInitialized || t.initializedStoreOnce) && a.every((X) => ae(X, t, S)), i = n.lng || t.language, f = d.current, p = u.current;
212
- if (p && p.ready === s && p.lng === i && p.keyPrefix === _ && p.revision === f)
213
- return p;
214
- const V = {
220
+ const s = !!(t.isInitialized || t.initializedStoreOnce) && a.every((X) => ae(X, t, S)), i = n.lng || t.language, f = d.current, g = u.current;
221
+ if (g && g.ready === s && g.lng === i && g.keyPrefix === _ && g.revision === f)
222
+ return g;
223
+ const R = {
215
224
  t: t.getFixedT(i, S.nsMode === "fallback" ? a : a[0], _),
216
225
  ready: s,
217
226
  lng: i,
218
227
  keyPrefix: _,
219
228
  revision: f
220
229
  };
221
- return u.current = V, V;
222
- }, [t, a, _, S, n.lng]), [y, E] = Z(0), {
223
- t: v,
224
- ready: L
230
+ return u.current = R, R;
231
+ }, [t, a, _, S, n.lng]), [h, E] = Z(0), {
232
+ t: w,
233
+ ready: b
225
234
  } = fe.useSyncExternalStore(o, l, l);
226
235
  ee(() => {
227
- if (t && !L && !h) {
236
+ if (t && !b && !y) {
228
237
  const s = () => E((i) => i + 1);
229
- n.lng ? B(t, n.lng, a, s) : D(t, a, s);
238
+ n.lng ? H(t, n.lng, a, s) : k(t, a, s);
230
239
  }
231
- }, [t, n.lng, a, L, h, y]);
232
- const x = t || {}, b = C(null), I = C(), G = (s) => {
240
+ }, [t, n.lng, a, b, y, h]);
241
+ const x = t || {}, N = C(null), A = C(), P = (s) => {
233
242
  const i = Object.getOwnPropertyDescriptors(s);
234
243
  i.__original && delete i.__original;
235
244
  const f = Object.create(Object.getPrototypeOf(s), i);
@@ -244,17 +253,17 @@ const de = (e, n) => w(n) ? n : oe(n) && w(n.defaultValue) ? n.defaultValue : Ar
244
253
  } catch {
245
254
  }
246
255
  return f;
247
- }, Y = A(() => {
256
+ }, Y = j(() => {
248
257
  const s = x, i = s == null ? void 0 : s.language;
249
258
  let f = s;
250
- s && (b.current && b.current.__original === s ? I.current !== i ? (f = G(s), b.current = f, I.current = i) : f = b.current : (f = G(s), b.current = f, I.current = i));
251
- const p = [v, f, L];
252
- return p.t = v, p.i18n = f, p.ready = L, p;
253
- }, [v, x, L, x.resolvedLanguage, x.language, x.languages]);
254
- if (t && h && !L)
259
+ s && (N.current && N.current.__original === s ? A.current !== i ? (f = P(s), N.current = f, A.current = i) : f = N.current : (f = P(s), N.current = f, A.current = i));
260
+ const g = !b && !y ? (...R) => (G(t, "USE_T_BEFORE_READY", "useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."), w(...R)) : w, O = [g, f, b];
261
+ return O.t = g, O.i18n = f, O.ready = b, O;
262
+ }, [w, x, b, x.resolvedLanguage, x.language, x.languages]);
263
+ if (t && y && !b)
255
264
  throw new Promise((s) => {
256
265
  const i = () => s();
257
- n.lng ? B(t, n.lng, a, i) : D(t, a, i);
266
+ n.lng ? H(t, n.lng, a, i) : k(t, a, i);
258
267
  });
259
268
  return Y;
260
269
  };
@@ -262,7 +271,7 @@ export {
262
271
  se as I,
263
272
  re as a,
264
273
  oe as b,
265
- w as i,
274
+ L as i,
266
275
  ye as u,
267
- $ as w
276
+ G as w
268
277
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ogcio/design-system-react",
3
- "version": "1.33.0",
3
+ "version": "1.34.0",
4
4
  "description": "The Government of Ireland Design System React components.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -48,7 +48,14 @@
48
48
  "rollup-preserve-directives": "^1.1.2"
49
49
  },
50
50
  "devDependencies": {
51
- "@storybook/types": "^8.6.14",
51
+ "@chromatic-com/storybook": "^5.1.1",
52
+ "@storybook/addon-a11y": "^10.3.3",
53
+ "@storybook/addon-coverage": "^3.0.1",
54
+ "@storybook/addon-docs": "^10.3.3",
55
+ "@storybook/addon-links": "^10.3.3",
56
+ "@storybook/addon-themes": "^10.3.3",
57
+ "@storybook/addon-vitest": "^10.3.3",
58
+ "@storybook/react-vite": "^10.3.3",
52
59
  "@testing-library/jest-dom": "^6.4.8",
53
60
  "@testing-library/react": "^16.0.1",
54
61
  "@testing-library/user-event": "^14.5.2",
@@ -56,18 +63,19 @@
56
63
  "autoprefixer": "^10.4.19",
57
64
  "axe-core": "^4.10.0",
58
65
  "eslint": "^9.23.0",
59
- "eslint-plugin-storybook": "^0.12.0",
66
+ "eslint-plugin-storybook": "^10.2.19",
60
67
  "glob": "^11.0.1",
61
- "http-server": "^14.1.1",
62
68
  "i18next": "^25.6.2",
63
69
  "postcss": "^8.4.40",
64
70
  "postcss-import": "^16.1.0",
65
71
  "react": "19.0.0",
66
72
  "react-dom": "19.0.0",
73
+ "storybook": "^10.3.3",
74
+ "storybook-addon-pseudo-states": "^10.3.3",
67
75
  "@ogcio/design-system-eslint-config": "1.4.0",
68
76
  "@ogcio/design-system-prettier-config": "1.1.1",
69
- "@ogcio/design-system-tailwind": "1.23.0",
70
77
  "@ogcio/theme-doete": "1.0.0",
78
+ "@ogcio/design-system-tailwind": "1.24.0",
71
79
  "@ogcio/theme-govie": "1.21.4"
72
80
  },
73
81
  "scripts": {
@@ -81,8 +89,7 @@
81
89
  "build:styles": "tailwindcss -i ./styles.css -o ./dist/styles.css --minify && node scripts/build-styles.js",
82
90
  "build:ts": "vite build",
83
91
  "storybook:dev": "storybook dev -p 6006",
84
- "storybook:build": "storybook build --stats-json",
85
- "storybook:serve": "http-server storybook-static -p 6006 -c-1",
92
+ "storybook:build": "NODE_OPTIONS=--max-old-space-size=4096 storybook build --stats-json",
86
93
  "playwright:test": "playwright test",
87
94
  "playwright:update-snapshots": "playwright test --update-snapshots",
88
95
  "typecheck": "tsc -p tsconfig.json --noEmit"