@genai-fi/base 4.0.2 → 4.0.3

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.
@@ -1,4 +1,4 @@
1
- import { c as s } from "../createTheme-a85zdZWm.js";
1
+ import { c as s } from "../createTheme-DV959X3d.js";
2
2
  import '../assets/theme.css';const t = "#008297", a = {
3
3
  primary: t
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genai-fi/base",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -38,21 +38,21 @@
38
38
  "peerDependencies": {
39
39
  "@emotion/react": "^11.14.0",
40
40
  "@emotion/styled": "^11.14.0",
41
- "@mui/icons-material": "^7.1.0",
42
- "@mui/material": "^7.1.0",
41
+ "@mui/icons-material": "^7.3.1",
42
+ "@mui/material": "^7.3.1",
43
43
  "@mui/x-charts": "^8.5.2",
44
- "react": "^19.1.0",
45
- "react-dom": "^19.1.0",
44
+ "react": "^19.1.1",
45
+ "react-dom": "^19.1.1",
46
46
  "react-i18next": "^15.5.1",
47
- "react-router": "^7.6.2",
48
- "react-router-dom": "^7.6.2"
47
+ "react-router": "^7.8.1",
48
+ "react-router-dom": "^7.8.1"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@emotion/react": "^11.14.0",
52
52
  "@emotion/styled": "^11.14.0",
53
53
  "@ladle/react": "^5.0.3",
54
- "@mui/icons-material": "^7.1.0",
55
- "@mui/material": "^7.1.0",
54
+ "@mui/icons-material": "^7.3.1",
55
+ "@mui/material": "^7.3.1",
56
56
  "@mui/x-charts": "^8.5.2",
57
57
  "@testing-library/jest-dom": "^6.6.3",
58
58
  "@testing-library/react": "^16.3.0",
@@ -72,11 +72,11 @@
72
72
  "eslint-plugin-react-refresh": "^0.4.7",
73
73
  "glob": "^11.0.0",
74
74
  "jsdom": "^26.1.0",
75
- "react": "^19.1.0",
76
- "react-dom": "^19.1.0",
75
+ "react": "^19.1.1",
76
+ "react-dom": "^19.1.1",
77
77
  "react-i18next": "^15.5.1",
78
- "react-router": "^7.6.2",
79
- "react-router-dom": "^7.6.2",
78
+ "react-router": "^7.8.1",
79
+ "react-router-dom": "^7.8.1",
80
80
  "typescript": "^5.8.3",
81
81
  "vite": "^6.3.5",
82
82
  "vite-plugin-dts": "^4.5.0",
@@ -1,524 +0,0 @@
1
- import { g as oe, r as D, d as se, s as j, i as ie, a as ae, P as A, c as fe } from "./createTheme-a85zdZWm.js";
2
- import ue from "@emotion/styled";
3
- import "@emotion/react";
4
- import * as U from "react";
5
- import "react/jsx-runtime";
6
- function K(e) {
7
- var n, t, r = "";
8
- if (typeof e == "string" || typeof e == "number") r += e;
9
- else if (typeof e == "object") if (Array.isArray(e)) {
10
- var o = e.length;
11
- for (n = 0; n < o; n++) e[n] && (t = K(e[n])) && (r && (r += " "), r += t);
12
- } else for (t in e) e[t] && (r && (r += " "), r += t);
13
- return r;
14
- }
15
- function Ge() {
16
- for (var e, n, t = 0, r = "", o = arguments.length; t < o; t++) (e = arguments[t]) && (n = K(e)) && (r && (r += " "), r += n);
17
- return r;
18
- }
19
- function ke(e, n, t = void 0) {
20
- const r = {};
21
- for (const o in e) {
22
- const s = e[o];
23
- let i = "", a = !0;
24
- for (let f = 0; f < s.length; f += 1) {
25
- const u = s[f];
26
- u && (i += (a === !0 ? "" : " ") + n(u), a = !1, t && t[u] && (i += " " + t[u]));
27
- }
28
- r[o] = i;
29
- }
30
- return r;
31
- }
32
- function ce(e) {
33
- for (var n = 0, t, r = 0, o = e.length; o >= 4; ++r, o -= 4)
34
- t = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, t = /* Math.imul(k, m): */
35
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
36
- t >>> 24, n = /* Math.imul(k, m): */
37
- (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
38
- (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16);
39
- switch (o) {
40
- case 3:
41
- n ^= (e.charCodeAt(r + 2) & 255) << 16;
42
- case 2:
43
- n ^= (e.charCodeAt(r + 1) & 255) << 8;
44
- case 1:
45
- n ^= e.charCodeAt(r) & 255, n = /* Math.imul(h, m): */
46
- (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16);
47
- }
48
- return n ^= n >>> 13, n = /* Math.imul(h, m): */
49
- (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), ((n ^ n >>> 15) >>> 0).toString(36);
50
- }
51
- var le = {
52
- animationIterationCount: 1,
53
- aspectRatio: 1,
54
- borderImageOutset: 1,
55
- borderImageSlice: 1,
56
- borderImageWidth: 1,
57
- boxFlex: 1,
58
- boxFlexGroup: 1,
59
- boxOrdinalGroup: 1,
60
- columnCount: 1,
61
- columns: 1,
62
- flex: 1,
63
- flexGrow: 1,
64
- flexPositive: 1,
65
- flexShrink: 1,
66
- flexNegative: 1,
67
- flexOrder: 1,
68
- gridRow: 1,
69
- gridRowEnd: 1,
70
- gridRowSpan: 1,
71
- gridRowStart: 1,
72
- gridColumn: 1,
73
- gridColumnEnd: 1,
74
- gridColumnSpan: 1,
75
- gridColumnStart: 1,
76
- msGridRow: 1,
77
- msGridRowSpan: 1,
78
- msGridColumn: 1,
79
- msGridColumnSpan: 1,
80
- fontWeight: 1,
81
- lineHeight: 1,
82
- opacity: 1,
83
- order: 1,
84
- orphans: 1,
85
- scale: 1,
86
- tabSize: 1,
87
- widows: 1,
88
- zIndex: 1,
89
- zoom: 1,
90
- WebkitLineClamp: 1,
91
- // SVG-related properties
92
- fillOpacity: 1,
93
- floodOpacity: 1,
94
- stopOpacity: 1,
95
- strokeDasharray: 1,
96
- strokeDashoffset: 1,
97
- strokeMiterlimit: 1,
98
- strokeOpacity: 1,
99
- strokeWidth: 1
100
- };
101
- function de(e) {
102
- var n = /* @__PURE__ */ Object.create(null);
103
- return function(t) {
104
- return n[t] === void 0 && (n[t] = e(t)), n[t];
105
- };
106
- }
107
- var me = /[A-Z]|^ms/g, he = /_EMO_([^_]+?)_([^]*?)_EMO_/g, q = function(n) {
108
- return n.charCodeAt(1) === 45;
109
- }, M = function(n) {
110
- return n != null && typeof n != "boolean";
111
- }, R = /* @__PURE__ */ de(function(e) {
112
- return q(e) ? e : e.replace(me, "-$&").toLowerCase();
113
- }), z = function(n, t) {
114
- switch (n) {
115
- case "animation":
116
- case "animationName":
117
- if (typeof t == "string")
118
- return t.replace(he, function(r, o, s) {
119
- return y = {
120
- name: o,
121
- styles: s,
122
- next: y
123
- }, o;
124
- });
125
- }
126
- return le[n] !== 1 && !q(n) && typeof t == "number" && t !== 0 ? t + "px" : t;
127
- };
128
- function _(e, n, t) {
129
- if (t == null)
130
- return "";
131
- var r = t;
132
- if (r.__emotion_styles !== void 0)
133
- return r;
134
- switch (typeof t) {
135
- case "boolean":
136
- return "";
137
- case "object": {
138
- var o = t;
139
- if (o.anim === 1)
140
- return y = {
141
- name: o.name,
142
- styles: o.styles,
143
- next: y
144
- }, o.name;
145
- var s = t;
146
- if (s.styles !== void 0) {
147
- var i = s.next;
148
- if (i !== void 0)
149
- for (; i !== void 0; )
150
- y = {
151
- name: i.name,
152
- styles: i.styles,
153
- next: y
154
- }, i = i.next;
155
- var a = s.styles + ";";
156
- return a;
157
- }
158
- return ye(e, n, t);
159
- }
160
- }
161
- var f = t;
162
- return f;
163
- }
164
- function ye(e, n, t) {
165
- var r = "";
166
- if (Array.isArray(t))
167
- for (var o = 0; o < t.length; o++)
168
- r += _(e, n, t[o]) + ";";
169
- else
170
- for (var s in t) {
171
- var i = t[s];
172
- if (typeof i != "object") {
173
- var a = i;
174
- M(a) && (r += R(s) + ":" + z(s, a) + ";");
175
- } else if (Array.isArray(i) && typeof i[0] == "string" && n == null)
176
- for (var f = 0; f < i.length; f++)
177
- M(i[f]) && (r += R(s) + ":" + z(s, i[f]) + ";");
178
- else {
179
- var u = _(e, n, i);
180
- switch (s) {
181
- case "animation":
182
- case "animationName": {
183
- r += R(s) + ":" + u + ";";
184
- break;
185
- }
186
- default:
187
- r += s + "{" + u + "}";
188
- }
189
- }
190
- }
191
- return r;
192
- }
193
- var G = /label:\s*([^\s;{]+)\s*(;|$)/g, y;
194
- function pe(e, n, t) {
195
- if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
196
- return e[0];
197
- var r = !0, o = "";
198
- y = void 0;
199
- var s = e[0];
200
- if (s == null || s.raw === void 0)
201
- r = !1, o += _(t, n, s);
202
- else {
203
- var i = s;
204
- o += i[0];
205
- }
206
- for (var a = 1; a < e.length; a++)
207
- if (o += _(t, n, e[a]), r) {
208
- var f = s;
209
- o += f[a];
210
- }
211
- G.lastIndex = 0;
212
- for (var u = "", c; (c = G.exec(o)) !== null; )
213
- u += "-" + c[1];
214
- var g = ce(o) + u;
215
- return {
216
- name: g,
217
- styles: o,
218
- next: y
219
- };
220
- }
221
- /**
222
- * @mui/styled-engine v7.1.0
223
- *
224
- * @license MIT
225
- * This source code is licensed under the MIT license found in the
226
- * LICENSE file in the root directory of this source tree.
227
- */
228
- function ve(e, n) {
229
- const t = ue(e, n);
230
- return process.env.NODE_ENV !== "production" ? (...r) => {
231
- const o = typeof e == "string" ? `"${e}"` : "component";
232
- return r.length === 0 ? console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
233
- `)) : r.some((s) => s === void 0) && console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`), t(...r);
234
- } : t;
235
- }
236
- function xe(e, n) {
237
- Array.isArray(e.__emotion_styles) && (e.__emotion_styles = n(e.__emotion_styles));
238
- }
239
- const k = [];
240
- function L(e) {
241
- return k[0] = e, pe(k);
242
- }
243
- function Le(e, n, t = "Mui") {
244
- const r = {};
245
- return n.forEach((o) => {
246
- r[o] = oe(e, o, t);
247
- }), r;
248
- }
249
- function Y(e, n = "") {
250
- return e.displayName || e.name || n;
251
- }
252
- function W(e, n, t) {
253
- const r = Y(n);
254
- return e.displayName || (r !== "" ? `${t}(${r})` : t);
255
- }
256
- function Se(e) {
257
- if (e != null) {
258
- if (typeof e == "string")
259
- return e;
260
- if (typeof e == "function")
261
- return Y(e, "Component");
262
- if (typeof e == "object")
263
- switch (e.$$typeof) {
264
- case D.ForwardRef:
265
- return W(e, e.render, "ForwardRef");
266
- case D.Memo:
267
- return W(e, e.type, "memo");
268
- default:
269
- return;
270
- }
271
- }
272
- }
273
- function B(e) {
274
- const {
275
- variants: n,
276
- ...t
277
- } = e, r = {
278
- variants: n,
279
- style: L(t),
280
- isProcessed: !0
281
- };
282
- return r.style === t || n && n.forEach((o) => {
283
- typeof o.style != "function" && (o.style = L(o.style));
284
- }), r;
285
- }
286
- const we = se();
287
- function E(e) {
288
- return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
289
- }
290
- function ge(e) {
291
- return e ? (n, t) => t[e] : null;
292
- }
293
- function be(e, n, t) {
294
- e.theme = _e(e.theme) ? t : e.theme[n] || e.theme;
295
- }
296
- function O(e, n) {
297
- const t = typeof n == "function" ? n(e) : n;
298
- if (Array.isArray(t))
299
- return t.flatMap((r) => O(e, r));
300
- if (Array.isArray(t == null ? void 0 : t.variants)) {
301
- let r;
302
- if (t.isProcessed)
303
- r = t.style;
304
- else {
305
- const {
306
- variants: o,
307
- ...s
308
- } = t;
309
- r = s;
310
- }
311
- return Z(e, t.variants, [r]);
312
- }
313
- return t != null && t.isProcessed ? t.style : t;
314
- }
315
- function Z(e, n, t = []) {
316
- var o;
317
- let r;
318
- e: for (let s = 0; s < n.length; s += 1) {
319
- const i = n[s];
320
- if (typeof i.props == "function") {
321
- if (r ?? (r = {
322
- ...e,
323
- ...e.ownerState,
324
- ownerState: e.ownerState
325
- }), !i.props(r))
326
- continue;
327
- } else
328
- for (const a in i.props)
329
- if (e[a] !== i.props[a] && ((o = e.ownerState) == null ? void 0 : o[a]) !== i.props[a])
330
- continue e;
331
- typeof i.style == "function" ? (r ?? (r = {
332
- ...e,
333
- ...e.ownerState,
334
- ownerState: e.ownerState
335
- }), t.push(i.style(r))) : t.push(i.style);
336
- }
337
- return t;
338
- }
339
- function Pe(e = {}) {
340
- const {
341
- themeId: n,
342
- defaultTheme: t = we,
343
- rootShouldForwardProp: r = E,
344
- slotShouldForwardProp: o = E
345
- } = e;
346
- function s(a) {
347
- be(a, n, t);
348
- }
349
- return (a, f = {}) => {
350
- xe(a, (l) => l.filter((d) => d !== j));
351
- const {
352
- name: u,
353
- slot: c,
354
- skipVariantsResolver: g,
355
- skipSx: Q,
356
- // TODO v6: remove `lowercaseFirstLetter()` in the next major release
357
- // For more details: https://github.com/mui/material-ui/pull/37908
358
- overridesResolver: $ = ge(J(c)),
359
- ...X
360
- } = f, ee = g !== void 0 ? g : (
361
- // TODO v6: remove `Root` in the next major release
362
- // For more details: https://github.com/mui/material-ui/pull/37908
363
- c && c !== "Root" && c !== "root" || !1
364
- ), te = Q || !1;
365
- let b = E;
366
- c === "Root" || c === "root" ? b = r : c ? b = o : Ne(a) && (b = void 0);
367
- const N = ve(a, {
368
- shouldForwardProp: b,
369
- label: Ae(u, c),
370
- ...X
371
- }), ne = (l) => {
372
- if (typeof l == "function" && l.__emotion_real !== l)
373
- return function(x) {
374
- return O(x, l);
375
- };
376
- if (ie(l)) {
377
- const d = B(l);
378
- return d.variants ? function(p) {
379
- return O(p, d);
380
- } : d.style;
381
- }
382
- return l;
383
- }, F = (...l) => {
384
- const d = [], x = l.map(ne), p = [];
385
- if (d.push(s), u && $ && p.push(function(h) {
386
- var w, V;
387
- const m = (V = (w = h.theme.components) == null ? void 0 : w[u]) == null ? void 0 : V.styleOverrides;
388
- if (!m)
389
- return null;
390
- const S = {};
391
- for (const I in m)
392
- S[I] = O(h, m[I]);
393
- return $(h, S);
394
- }), u && !ee && p.push(function(h) {
395
- var S, w;
396
- const v = h.theme, m = (w = (S = v == null ? void 0 : v.components) == null ? void 0 : S[u]) == null ? void 0 : w.variants;
397
- return m ? Z(h, m) : null;
398
- }), te || p.push(j), Array.isArray(x[0])) {
399
- const P = x.shift(), h = new Array(d.length).fill(""), v = new Array(p.length).fill("");
400
- let m;
401
- m = [...h, ...P, ...v], m.raw = [...h, ...P.raw, ...v], d.unshift(m);
402
- }
403
- const re = [...d, ...x, ...p], C = N(...re);
404
- return a.muiName && (C.muiName = a.muiName), process.env.NODE_ENV !== "production" && (C.displayName = Oe(u, c, a)), C;
405
- };
406
- return N.withConfig && (F.withConfig = N.withConfig), F;
407
- };
408
- }
409
- function Oe(e, n, t) {
410
- return e ? `${e}${ae(n || "")}` : `Styled(${Se(t)})`;
411
- }
412
- function Ae(e, n) {
413
- let t;
414
- return process.env.NODE_ENV !== "production" && e && (t = `${e}-${J(n || "Root")}`), t;
415
- }
416
- function _e(e) {
417
- for (const n in e)
418
- return !1;
419
- return !0;
420
- }
421
- function Ne(e) {
422
- return typeof e == "string" && // 96 is one less than the char code
423
- // for "a" so this is checking that
424
- // it's a lowercase character
425
- e.charCodeAt(0) > 96;
426
- }
427
- function J(e) {
428
- return e && e.charAt(0).toLowerCase() + e.slice(1);
429
- }
430
- function T(e, n) {
431
- const t = {
432
- ...n
433
- };
434
- for (const r in e)
435
- if (Object.prototype.hasOwnProperty.call(e, r)) {
436
- const o = r;
437
- if (o === "components" || o === "slots")
438
- t[o] = {
439
- ...e[o],
440
- ...t[o]
441
- };
442
- else if (o === "componentsProps" || o === "slotProps") {
443
- const s = e[o], i = n[o];
444
- if (!i)
445
- t[o] = s || {};
446
- else if (!s)
447
- t[o] = i;
448
- else {
449
- t[o] = {
450
- ...i
451
- };
452
- for (const a in s)
453
- if (Object.prototype.hasOwnProperty.call(s, a)) {
454
- const f = a;
455
- t[o][f] = T(s[f], i[f]);
456
- }
457
- }
458
- } else t[o] === void 0 && (t[o] = e[o]);
459
- }
460
- return t;
461
- }
462
- const Ce = /* @__PURE__ */ U.createContext(void 0);
463
- process.env.NODE_ENV !== "production" && (A.node, A.object);
464
- function Re(e) {
465
- const {
466
- theme: n,
467
- name: t,
468
- props: r
469
- } = e;
470
- if (!n || !n.components || !n.components[t])
471
- return r;
472
- const o = n.components[t];
473
- return o.defaultProps ? T(o.defaultProps, r) : !o.styleOverrides && !o.variants ? T(o, r) : r;
474
- }
475
- function Ee({
476
- props: e,
477
- name: n
478
- }) {
479
- const t = U.useContext(Ce);
480
- return Re({
481
- props: e,
482
- name: n,
483
- theme: {
484
- components: t
485
- }
486
- });
487
- }
488
- const H = {
489
- theme: void 0
490
- };
491
- function Te(e) {
492
- let n, t;
493
- return function(o) {
494
- let s = n;
495
- return (s === void 0 || o.theme !== t) && (H.theme = o.theme, s = B(e(H)), n = s, t = o.theme), s;
496
- };
497
- }
498
- const $e = fe(), Fe = "$$material";
499
- function Ve(e) {
500
- return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
501
- }
502
- const Ie = (e) => Ve(e) && e !== "classes", We = Pe({
503
- themeId: Fe,
504
- defaultTheme: $e,
505
- rootShouldForwardProp: Ie
506
- }), He = Te;
507
- process.env.NODE_ENV !== "production" && (A.node, A.object.isRequired);
508
- function Ue(e) {
509
- return Ee(e);
510
- }
511
- export {
512
- Fe as T,
513
- ke as a,
514
- Ie as b,
515
- Ge as c,
516
- $e as d,
517
- Ve as e,
518
- E as f,
519
- Le as g,
520
- He as m,
521
- T as r,
522
- We as s,
523
- Ue as u
524
- };