@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.
- package/dist/accordion/accordion-item.js +1 -1
- package/dist/alert/alert.js +1 -1
- package/dist/alert/variants.js +1 -1
- package/dist/atoms/Button.js +1 -1
- package/dist/atoms/heading/styles.js +1 -1
- package/dist/atoms/storybook/Heading.meta.d.ts +1 -1
- package/dist/atoms/storybook/Heading.meta.js +4 -4
- package/dist/atoms/storybook/Icons.meta.d.ts +1 -1
- package/dist/atoms/storybook/Icons.meta.js +7 -7
- package/dist/atoms/storybook/InsetText.meta.d.ts +1 -1
- package/dist/atoms/storybook/InsetText.meta.js +1 -1
- package/dist/atoms/storybook/Logos.meta.d.ts +1 -1
- package/dist/atoms/storybook/Logos.meta.js +1 -1
- package/dist/autocomplete/autocomplete.js +1 -1
- package/dist/autocomplete/use-autocomplete-controller.js +2 -2
- package/dist/browser-support/browser-support.js +202 -30
- package/dist/chip/chip.js +1 -1
- package/dist/data-table/data-table-footer.js +2 -2
- package/dist/data-table/data-table-header.js +1 -1
- package/dist/data-table/data-table-selected-rows.js +1 -1
- package/dist/data-table/editable-table-cell.js +1 -1
- package/dist/details/details.js +13 -16
- package/dist/drawer/drawer.js +1 -1
- package/dist/error-text/error-text.js +1 -1
- package/dist/header/header-legacy.js +6 -6
- package/dist/header/header-next/header-next.js +3 -3
- package/dist/header/variants.js +1 -1
- package/dist/hint-text/hint-text.js +1 -1
- package/dist/i18n/config.js +2 -2
- package/dist/i18n/utility.js +1 -1
- package/dist/{i18nInstance-AYICsHJu.js → i18nInstance-DiZ0lVPL.js} +2 -2
- package/dist/i18next-zBkzxGW1.js +1388 -0
- package/dist/{index-CB-zPpNk.js → index-C7W4ssMN.js} +1 -1
- package/dist/index-DqBV2TCd.js +23108 -0
- package/dist/index.js +1 -1
- package/dist/label/label.js +1 -1
- package/dist/{lodash-82PmXrjJ.js → lodash-DTZaBYO8.js} +289 -272
- package/dist/modal/modal.content.js +1 -1
- package/dist/pagination/pagination.js +59 -56
- package/dist/progress-stepper/progress-stepper.js +1 -1
- package/dist/select/select-native.js +1 -1
- package/dist/spinner/spinner.js +1 -1
- package/dist/stack/stack.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/table/table.js +1 -1
- package/dist/tabs/variants.js +1 -1
- package/dist/toast/ds-toast.js +1 -1
- package/dist/tooltip/variants.js +1 -1
- package/dist/{useTranslation-DiBQuy8S.js → useTranslation-CRbS3UeG.js} +94 -85
- package/package.json +14 -7
- package/dist/i18next-Bfi2-LyH.js +0 -1370
- package/dist/index-Bh2cTIps.js +0 -33899
package/dist/table/table.js
CHANGED
package/dist/tabs/variants.js
CHANGED
package/dist/toast/ds-toast.js
CHANGED
|
@@ -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-
|
|
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";
|
package/dist/tooltip/variants.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { g as te, b as ne } from "./i18nInstance-
|
|
3
|
-
const re = (e, n, r,
|
|
4
|
-
var t, S,
|
|
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
|
-
...
|
|
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
|
-
|
|
12
|
-
}, z = {},
|
|
13
|
-
|
|
14
|
-
},
|
|
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
|
-
},
|
|
26
|
-
e.loadNamespaces(n,
|
|
27
|
-
},
|
|
28
|
-
if (
|
|
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,
|
|
32
|
-
}, ae = (e, n, r = {}) => !n.languages || !n.languages.length ? (
|
|
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: (
|
|
37
|
-
if (r.bindI18n && r.bindI18n.indexOf("languageChanging") > -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
|
-
}),
|
|
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
|
|
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
|
|
63
|
+
var K;
|
|
64
64
|
function ue() {
|
|
65
|
-
if (
|
|
66
|
-
|
|
67
|
-
var e =
|
|
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,
|
|
72
|
-
function
|
|
73
|
-
var o = d(), u =
|
|
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) &&
|
|
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) &&
|
|
82
|
-
_(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
|
|
98
|
+
function m(a, d) {
|
|
99
99
|
return d();
|
|
100
100
|
}
|
|
101
|
-
var
|
|
102
|
-
return
|
|
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
|
|
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
|
|
114
|
+
var M;
|
|
115
115
|
function ie() {
|
|
116
|
-
return
|
|
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
|
-
|
|
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
|
|
127
|
-
t(l,
|
|
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
|
-
|
|
131
|
+
h = S({
|
|
132
132
|
inst: { value: l, getSnapshot: u }
|
|
133
133
|
});
|
|
134
|
-
var E =
|
|
134
|
+
var E = h[0].inst, w = h[1];
|
|
135
135
|
return _(
|
|
136
136
|
function() {
|
|
137
|
-
E.value = l, E.getSnapshot = u, r(E) &&
|
|
137
|
+
E.value = l, E.getSnapshot = u, r(E) && w({ inst: E });
|
|
138
138
|
},
|
|
139
139
|
[o, l, u]
|
|
140
|
-
),
|
|
140
|
+
), y(
|
|
141
141
|
function() {
|
|
142
|
-
return r(E) &&
|
|
143
|
-
r(E) &&
|
|
142
|
+
return r(E) && w({ inst: E }), o(function() {
|
|
143
|
+
r(E) && w({ inst: E });
|
|
144
144
|
});
|
|
145
145
|
},
|
|
146
146
|
[o]
|
|
147
|
-
),
|
|
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
|
|
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 =
|
|
164
|
-
|
|
165
|
-
})()),
|
|
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
|
|
167
|
+
var W;
|
|
168
168
|
function le() {
|
|
169
|
-
return
|
|
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) =>
|
|
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
|
|
186
|
+
var B, T, V;
|
|
178
187
|
const {
|
|
179
188
|
i18n: r
|
|
180
189
|
} = n, {
|
|
181
|
-
i18n:
|
|
190
|
+
i18n: p,
|
|
182
191
|
defaultNS: c
|
|
183
|
-
} = Q(se) || {}, t = r ||
|
|
184
|
-
t && !t.reportNamespaces && (t.reportNamespaces = new ce()), t ||
|
|
185
|
-
const S =
|
|
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
|
-
...
|
|
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:
|
|
202
|
+
useSuspense: y,
|
|
194
203
|
keyPrefix: _
|
|
195
|
-
} = S,
|
|
196
|
-
(
|
|
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,
|
|
211
|
+
} = S, g = () => {
|
|
203
212
|
d.current += 1, s();
|
|
204
213
|
};
|
|
205
|
-
return i && t.on(i,
|
|
206
|
-
i && i.split(" ").forEach((
|
|
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,
|
|
212
|
-
if (
|
|
213
|
-
return
|
|
214
|
-
const
|
|
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 =
|
|
222
|
-
}, [t, a, _, S, n.lng]), [
|
|
223
|
-
t:
|
|
224
|
-
ready:
|
|
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 && !
|
|
236
|
+
if (t && !b && !y) {
|
|
228
237
|
const s = () => E((i) => i + 1);
|
|
229
|
-
n.lng ?
|
|
238
|
+
n.lng ? H(t, n.lng, a, s) : k(t, a, s);
|
|
230
239
|
}
|
|
231
|
-
}, [t, n.lng, a,
|
|
232
|
-
const x = t || {},
|
|
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 =
|
|
256
|
+
}, Y = j(() => {
|
|
248
257
|
const s = x, i = s == null ? void 0 : s.language;
|
|
249
258
|
let f = s;
|
|
250
|
-
s && (
|
|
251
|
-
const
|
|
252
|
-
return
|
|
253
|
-
}, [
|
|
254
|
-
if (t &&
|
|
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 ?
|
|
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
|
-
|
|
274
|
+
L as i,
|
|
266
275
|
ye as u,
|
|
267
|
-
|
|
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.
|
|
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
|
|
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": "^
|
|
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"
|