@amateescu/portal-ui-components 0.0.24 → 0.0.25-react19

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 (47) hide show
  1. package/dist/Box-DQNjUj2G.js +102 -0
  2. package/dist/Button-D2XVkO19.js +676 -0
  3. package/dist/ButtonBase-D-XlpvIZ.js +954 -0
  4. package/dist/CircularProgress-BOkP0juA.js +247 -0
  5. package/dist/{EllipsisOutlined-CtmB5yDB.js → EllipsisOutlined-DfTPoz8U.js} +667 -672
  6. package/dist/PurePanel-ByiFMw5U.js +2213 -0
  7. package/dist/{Skeleton-XFbjx7LJ.js → Skeleton-Imy-56Lv.js} +161 -158
  8. package/dist/{UserInfoDropdown-DGaplQo6.js → UserInfoDropdown-6aB5cQyF.js} +1540 -1505
  9. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  10. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  11. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
  12. package/dist/components/CustomButton/CustomButton.js +1 -1
  13. package/dist/components/CustomPagination/CustomPagination.js +455 -344
  14. package/dist/components/ErrorModal/ErrorModal.js +5 -6
  15. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  16. package/dist/components/InfoModal/InfoModal.js +1 -1
  17. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  18. package/dist/components/KpiCard/KpiCard.js +1003 -892
  19. package/dist/components/LoadingAnimation/LoadingAnimation.js +6 -215
  20. package/dist/components/Login/Login.js +4485 -3820
  21. package/dist/components/Login/Login.stories.js +1586 -1546
  22. package/dist/components/SideMenu/SideMenu.js +1 -1
  23. package/dist/components/SideMenu/SideMenu.types.d.ts +1 -0
  24. package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
  25. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  26. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  27. package/dist/components/index.js +1 -1
  28. package/dist/context-D_FWkiDE.js +7383 -0
  29. package/dist/createSimplePaletteValueFilter-CshNo3IR.js +3439 -0
  30. package/dist/index-CR8gh-dS.js +1689 -0
  31. package/dist/index-CyFfYou3.js +411 -0
  32. package/dist/main.js +1 -1
  33. package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +33 -0
  34. package/dist/portal-utils/formatters.js +68 -0
  35. package/dist/useSlot-kDVPuVrn.js +431 -0
  36. package/package.json +38 -38
  37. package/dist/Box-CmKt1PwF.js +0 -68
  38. package/dist/Button-BT8r3F_d.js +0 -355
  39. package/dist/ButtonBase-By486Sca.js +0 -966
  40. package/dist/PurePanel-CfZ1n-M8.js +0 -4782
  41. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  42. package/dist/createSvgIcon-B8ya7kb4.js +0 -250
  43. package/dist/generateUtilityClasses-Bhjgm_6-.js +0 -3270
  44. package/dist/index-1vDmwq0E.js +0 -19089
  45. package/dist/index-DsP9yT3s.js +0 -1551
  46. package/dist/objectWithoutPropertiesLoose-CIT-1_kH.js +0 -227
  47. package/dist/useId-DbfH3PlN.js +0 -5397
@@ -0,0 +1,431 @@
1
+ import * as p from "react";
2
+ import { c as E, P as r, g as V, a as j, u as A, s as M, b, d as k, m as x } from "./createSimplePaletteValueFilter-CshNo3IR.js";
3
+ import { jsxs as D, jsx as R } from "react/jsx-runtime";
4
+ import { u as U } from "./ButtonBase-D-XlpvIZ.js";
5
+ function Y({
6
+ controlled: e,
7
+ default: t,
8
+ name: n,
9
+ state: s = "value"
10
+ }) {
11
+ const {
12
+ current: o
13
+ } = p.useRef(e !== void 0), [l, m] = p.useState(t), a = o ? e : l;
14
+ if (process.env.NODE_ENV !== "production") {
15
+ p.useEffect(() => {
16
+ o !== (e !== void 0) && console.error([`MUI: A component is changing the ${o ? "" : "un"}controlled ${s} state of ${n} to be ${o ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
17
+ `));
18
+ }, [s, n, e]);
19
+ const {
20
+ current: i
21
+ } = p.useRef(t);
22
+ p.useEffect(() => {
23
+ !o && !Object.is(i, t) && console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
24
+ `));
25
+ }, [JSON.stringify(t)]);
26
+ }
27
+ const g = p.useCallback((i) => {
28
+ o || m(i);
29
+ }, []);
30
+ return [a, g];
31
+ }
32
+ function B(e) {
33
+ const t = typeof e;
34
+ switch (t) {
35
+ case "number":
36
+ return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
37
+ case "object":
38
+ return e === null ? "null" : e.constructor.name;
39
+ default:
40
+ return t;
41
+ }
42
+ }
43
+ function O(e, t, n, s) {
44
+ const o = e[t];
45
+ if (o == null || !Number.isInteger(o)) {
46
+ const l = B(o);
47
+ return new RangeError(`Invalid ${s} \`${t}\` of type \`${l}\` supplied to \`${n}\`, expected \`integer\`.`);
48
+ }
49
+ return null;
50
+ }
51
+ function T(e, t, ...n) {
52
+ return e[t] === void 0 ? null : O(e, t, ...n);
53
+ }
54
+ function z() {
55
+ return null;
56
+ }
57
+ T.isRequired = O;
58
+ z.isRequired = z;
59
+ const P = process.env.NODE_ENV === "production" ? z : T;
60
+ function H(e) {
61
+ return typeof e == "string";
62
+ }
63
+ function _(e, t, n) {
64
+ return e === void 0 || H(e) ? t : {
65
+ ...t,
66
+ ownerState: {
67
+ ...t.ownerState,
68
+ ...n
69
+ }
70
+ };
71
+ }
72
+ function q(e, t = []) {
73
+ if (e === void 0)
74
+ return {};
75
+ const n = {};
76
+ return Object.keys(e).filter((s) => s.match(/^on[A-Z]/) && typeof e[s] == "function" && !t.includes(s)).forEach((s) => {
77
+ n[s] = e[s];
78
+ }), n;
79
+ }
80
+ function I(e) {
81
+ if (e === void 0)
82
+ return {};
83
+ const t = {};
84
+ return Object.keys(e).filter((n) => !(n.match(/^on[A-Z]/) && typeof e[n] == "function")).forEach((n) => {
85
+ t[n] = e[n];
86
+ }), t;
87
+ }
88
+ function L(e) {
89
+ const {
90
+ getSlotProps: t,
91
+ additionalProps: n,
92
+ externalSlotProps: s,
93
+ externalForwardedProps: o,
94
+ className: l
95
+ } = e;
96
+ if (!t) {
97
+ const h = E(n == null ? void 0 : n.className, l, o == null ? void 0 : o.className, s == null ? void 0 : s.className), u = {
98
+ ...n == null ? void 0 : n.style,
99
+ ...o == null ? void 0 : o.style,
100
+ ...s == null ? void 0 : s.style
101
+ }, c = {
102
+ ...n,
103
+ ...o,
104
+ ...s
105
+ };
106
+ return h.length > 0 && (c.className = h), Object.keys(u).length > 0 && (c.style = u), {
107
+ props: c,
108
+ internalRef: void 0
109
+ };
110
+ }
111
+ const m = q({
112
+ ...o,
113
+ ...s
114
+ }), a = I(s), g = I(o), i = t(m), f = E(i == null ? void 0 : i.className, n == null ? void 0 : n.className, l, o == null ? void 0 : o.className, s == null ? void 0 : s.className), d = {
115
+ ...i == null ? void 0 : i.style,
116
+ ...n == null ? void 0 : n.style,
117
+ ...o == null ? void 0 : o.style,
118
+ ...s == null ? void 0 : s.style
119
+ }, y = {
120
+ ...i,
121
+ ...n,
122
+ ...g,
123
+ ...a
124
+ };
125
+ return f.length > 0 && (y.className = f), Object.keys(d).length > 0 && (y.style = d), {
126
+ props: y,
127
+ internalRef: i.ref
128
+ };
129
+ }
130
+ function W(e, t, n) {
131
+ return typeof e == "function" ? e(t, n) : e;
132
+ }
133
+ const Z = /* @__PURE__ */ p.createContext();
134
+ process.env.NODE_ENV !== "production" && (r.node, r.bool);
135
+ const ee = () => p.useContext(Z) ?? !1;
136
+ function J(e) {
137
+ return V("MuiSvgIcon", e);
138
+ }
139
+ j("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
140
+ const F = (e) => {
141
+ const {
142
+ color: t,
143
+ fontSize: n,
144
+ classes: s
145
+ } = e, o = {
146
+ root: ["root", t !== "inherit" && `color${b(t)}`, `fontSize${b(n)}`]
147
+ };
148
+ return k(o, J, s);
149
+ }, G = M("svg", {
150
+ name: "MuiSvgIcon",
151
+ slot: "Root",
152
+ overridesResolver: (e, t) => {
153
+ const {
154
+ ownerState: n
155
+ } = e;
156
+ return [t.root, n.color !== "inherit" && t[`color${b(n.color)}`], t[`fontSize${b(n.fontSize)}`]];
157
+ }
158
+ })(x(({
159
+ theme: e
160
+ }) => {
161
+ var t, n, s, o, l, m, a, g, i, f, d, y, h, u;
162
+ return {
163
+ userSelect: "none",
164
+ width: "1em",
165
+ height: "1em",
166
+ display: "inline-block",
167
+ flexShrink: 0,
168
+ transition: (o = (t = e.transitions) == null ? void 0 : t.create) == null ? void 0 : o.call(t, "fill", {
169
+ duration: (s = (n = (e.vars ?? e).transitions) == null ? void 0 : n.duration) == null ? void 0 : s.shorter
170
+ }),
171
+ variants: [
172
+ {
173
+ props: (c) => !c.hasSvgAsChild,
174
+ style: {
175
+ // the <svg> will define the property that has `currentColor`
176
+ // for example heroicons uses fill="none" and stroke="currentColor"
177
+ fill: "currentColor"
178
+ }
179
+ },
180
+ {
181
+ props: {
182
+ fontSize: "inherit"
183
+ },
184
+ style: {
185
+ fontSize: "inherit"
186
+ }
187
+ },
188
+ {
189
+ props: {
190
+ fontSize: "small"
191
+ },
192
+ style: {
193
+ fontSize: ((m = (l = e.typography) == null ? void 0 : l.pxToRem) == null ? void 0 : m.call(l, 20)) || "1.25rem"
194
+ }
195
+ },
196
+ {
197
+ props: {
198
+ fontSize: "medium"
199
+ },
200
+ style: {
201
+ fontSize: ((g = (a = e.typography) == null ? void 0 : a.pxToRem) == null ? void 0 : g.call(a, 24)) || "1.5rem"
202
+ }
203
+ },
204
+ {
205
+ props: {
206
+ fontSize: "large"
207
+ },
208
+ style: {
209
+ fontSize: ((f = (i = e.typography) == null ? void 0 : i.pxToRem) == null ? void 0 : f.call(i, 35)) || "2.1875rem"
210
+ }
211
+ },
212
+ // TODO v5 deprecate color prop, v6 remove for sx
213
+ ...Object.entries((e.vars ?? e).palette).filter(([, c]) => c && c.main).map(([c]) => {
214
+ var v, S;
215
+ return {
216
+ props: {
217
+ color: c
218
+ },
219
+ style: {
220
+ color: (S = (v = (e.vars ?? e).palette) == null ? void 0 : v[c]) == null ? void 0 : S.main
221
+ }
222
+ };
223
+ }),
224
+ {
225
+ props: {
226
+ color: "action"
227
+ },
228
+ style: {
229
+ color: (y = (d = (e.vars ?? e).palette) == null ? void 0 : d.action) == null ? void 0 : y.active
230
+ }
231
+ },
232
+ {
233
+ props: {
234
+ color: "disabled"
235
+ },
236
+ style: {
237
+ color: (u = (h = (e.vars ?? e).palette) == null ? void 0 : h.action) == null ? void 0 : u.disabled
238
+ }
239
+ },
240
+ {
241
+ props: {
242
+ color: "inherit"
243
+ },
244
+ style: {
245
+ color: void 0
246
+ }
247
+ }
248
+ ]
249
+ };
250
+ })), C = /* @__PURE__ */ p.forwardRef(function(t, n) {
251
+ const s = A({
252
+ props: t,
253
+ name: "MuiSvgIcon"
254
+ }), {
255
+ children: o,
256
+ className: l,
257
+ color: m = "inherit",
258
+ component: a = "svg",
259
+ fontSize: g = "medium",
260
+ htmlColor: i,
261
+ inheritViewBox: f = !1,
262
+ titleAccess: d,
263
+ viewBox: y = "0 0 24 24",
264
+ ...h
265
+ } = s, u = /* @__PURE__ */ p.isValidElement(o) && o.type === "svg", c = {
266
+ ...s,
267
+ color: m,
268
+ component: a,
269
+ fontSize: g,
270
+ instanceFontSize: t.fontSize,
271
+ inheritViewBox: f,
272
+ viewBox: y,
273
+ hasSvgAsChild: u
274
+ }, v = {};
275
+ f || (v.viewBox = y);
276
+ const S = F(c);
277
+ return /* @__PURE__ */ D(G, {
278
+ as: a,
279
+ className: E(S.root, l),
280
+ focusable: "false",
281
+ color: i,
282
+ "aria-hidden": d ? void 0 : !0,
283
+ role: d ? "img" : void 0,
284
+ ref: n,
285
+ ...v,
286
+ ...h,
287
+ ...u && o.props,
288
+ ownerState: c,
289
+ children: [u ? o.props.children : o, d ? /* @__PURE__ */ R("title", {
290
+ children: d
291
+ }) : null]
292
+ });
293
+ });
294
+ process.env.NODE_ENV !== "production" && (C.propTypes = {
295
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
296
+ // │ These PropTypes are generated from the TypeScript type definitions. │
297
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
298
+ // └─────────────────────────────────────────────────────────────────────┘
299
+ /**
300
+ * Node passed into the SVG element.
301
+ */
302
+ children: r.node,
303
+ /**
304
+ * Override or extend the styles applied to the component.
305
+ */
306
+ classes: r.object,
307
+ /**
308
+ * @ignore
309
+ */
310
+ className: r.string,
311
+ /**
312
+ * The color of the component.
313
+ * It supports both default and custom theme colors, which can be added as shown in the
314
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
315
+ * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
316
+ * @default 'inherit'
317
+ */
318
+ color: r.oneOfType([r.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
319
+ /**
320
+ * The component used for the root node.
321
+ * Either a string to use a HTML element or a component.
322
+ */
323
+ component: r.elementType,
324
+ /**
325
+ * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
326
+ * @default 'medium'
327
+ */
328
+ fontSize: r.oneOfType([r.oneOf(["inherit", "large", "medium", "small"]), r.string]),
329
+ /**
330
+ * Applies a color attribute to the SVG element.
331
+ */
332
+ htmlColor: r.string,
333
+ /**
334
+ * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
335
+ * prop will be ignored.
336
+ * Useful when you want to reference a custom `component` and have `SvgIcon` pass that
337
+ * `component`'s viewBox to the root node.
338
+ * @default false
339
+ */
340
+ inheritViewBox: r.bool,
341
+ /**
342
+ * The shape-rendering attribute. The behavior of the different options is described on the
343
+ * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
344
+ * If you are having issues with blurry icons you should investigate this prop.
345
+ */
346
+ shapeRendering: r.string,
347
+ /**
348
+ * The system prop that allows defining system overrides as well as additional CSS styles.
349
+ */
350
+ sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
351
+ /**
352
+ * Provides a human-readable title for the element that contains it.
353
+ * https://www.w3.org/TR/SVG-access/#Equivalent
354
+ */
355
+ titleAccess: r.string,
356
+ /**
357
+ * Allows you to redefine what the coordinates without units mean inside an SVG element.
358
+ * For example, if the SVG element is 500 (width) by 200 (height),
359
+ * and you pass viewBox="0 0 50 20",
360
+ * this means that the coordinates inside the SVG will go from the top left corner (0,0)
361
+ * to bottom right (50,20) and each unit will be worth 10px.
362
+ * @default '0 0 24 24'
363
+ */
364
+ viewBox: r.string
365
+ });
366
+ C.muiName = "SvgIcon";
367
+ function ne(e, t) {
368
+ function n(s, o) {
369
+ return /* @__PURE__ */ R(C, {
370
+ "data-testid": `${t}Icon`,
371
+ ref: o,
372
+ ...s,
373
+ children: e
374
+ });
375
+ }
376
+ return process.env.NODE_ENV !== "production" && (n.displayName = `${t}Icon`), n.muiName = C.muiName, /* @__PURE__ */ p.memo(/* @__PURE__ */ p.forwardRef(n));
377
+ }
378
+ function te(e, t) {
379
+ const {
380
+ className: n,
381
+ elementType: s,
382
+ ownerState: o,
383
+ externalForwardedProps: l,
384
+ internalForwardedProps: m,
385
+ shouldForwardComponentProp: a = !1,
386
+ ...g
387
+ } = t, {
388
+ component: i,
389
+ slots: f = {
390
+ [e]: void 0
391
+ },
392
+ slotProps: d = {
393
+ [e]: void 0
394
+ },
395
+ ...y
396
+ } = l, h = f[e] || s, u = W(d[e], o), {
397
+ props: {
398
+ component: c,
399
+ ...v
400
+ },
401
+ internalRef: S
402
+ } = L({
403
+ className: n,
404
+ ...g,
405
+ externalForwardedProps: e === "root" ? y : void 0,
406
+ externalSlotProps: u
407
+ }), w = U(S, u == null ? void 0 : u.ref, t.ref), N = e === "root" ? c || i : c, $ = _(h, {
408
+ ...e === "root" && !i && !f[e] && m,
409
+ ...e !== "root" && !f[e] && m,
410
+ ...v,
411
+ ...N && !a && {
412
+ as: N
413
+ },
414
+ ...N && a && {
415
+ component: N
416
+ },
417
+ ref: w
418
+ }, o);
419
+ return [h, $];
420
+ }
421
+ export {
422
+ ee as a,
423
+ te as b,
424
+ ne as c,
425
+ _ as d,
426
+ q as e,
427
+ P as i,
428
+ L as m,
429
+ W as r,
430
+ Y as u
431
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@amateescu/portal-ui-components",
3
3
  "main": "dist/main.js",
4
4
  "types": "dist/main.d.ts",
5
- "version": "0.0.24",
5
+ "version": "0.0.25-react19",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist",
@@ -27,51 +27,51 @@
27
27
  },
28
28
  "peerDependencies": {
29
29
  "i18next": ">=23.10.1",
30
- "react": "^18.2.0",
31
- "react-dom": "^18.2.0",
30
+ "react": ">=18.2.0",
31
+ "react-dom": ">=18.2.0",
32
32
  "react-i18next": ">=14.1.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@chromatic-com/storybook": "^3.2.3",
36
- "@emotion/react": "^11.13.0",
37
- "@emotion/styled": "^11.13.0",
38
- "@eslint/js": "^9.15.0",
39
- "@mui/icons-material": "^5.15.12",
40
- "@mui/material": "^5.15.12",
41
- "@mui/x-data-grid": "^6.19.8",
42
- "@storybook/addon-essentials": "^8.5.0",
43
- "@storybook/addon-interactions": "^8.5.0",
44
- "@storybook/addon-onboarding": "^8.5.0",
45
- "@storybook/blocks": "^8.5.0",
46
- "@storybook/react": "^8.5.0",
47
- "@storybook/react-vite": "^8.5.0",
48
- "@storybook/test": "^8.5.0",
35
+ "@chromatic-com/storybook": "^3.2.4",
36
+ "@emotion/react": "^11.14.0",
37
+ "@emotion/styled": "^11.14.0",
38
+ "@eslint/js": "^9.20.0",
39
+ "@mui/icons-material": "^6.4.4",
40
+ "@mui/material": "^6.4.4",
41
+ "@mui/x-data-grid": "^7.27.0",
42
+ "@storybook/addon-essentials": "^8.5.6",
43
+ "@storybook/addon-interactions": "^8.5.6",
44
+ "@storybook/addon-onboarding": "^8.5.6",
45
+ "@storybook/blocks": "^8.5.6",
46
+ "@storybook/react": "^8.5.6",
47
+ "@storybook/react-vite": "^8.5.6",
48
+ "@storybook/test": "^8.5.6",
49
49
  "@types/postcss-import": "^14.0.3",
50
- "@types/react": "^18.3.1",
51
- "@types/react-dom": "^18.3.1",
52
- "@vitejs/plugin-react": "^4.3.3",
53
- "antd": "^5.21.6",
50
+ "@types/react": "^19.0.10",
51
+ "@types/react-dom": "^19.0.4",
52
+ "@vitejs/plugin-react": "^4.3.4",
53
+ "antd": "^5.24.1",
54
54
  "date-fns": "^4.1.0",
55
- "eslint": "^9.15.0",
56
- "eslint-plugin-react": "^7.37.2",
57
- "eslint-plugin-react-hooks": "^5.0.0",
58
- "eslint-plugin-react-refresh": "^0.4.14",
59
- "eslint-plugin-storybook": "^0.11.2",
60
- "glob": "^10.4.5",
61
- "globals": "^15.12.0",
62
- "i18next": "^24.2.1",
63
- "postcss": "^8.4.49",
55
+ "eslint": "^9.20.1",
56
+ "eslint-plugin-react": "^7.37.4",
57
+ "eslint-plugin-react-hooks": "^5.1.0",
58
+ "eslint-plugin-react-refresh": "^0.4.19",
59
+ "eslint-plugin-storybook": "^0.11.3",
60
+ "glob": "^11.0.1",
61
+ "globals": "^15.15.0",
62
+ "i18next": "^24.2.2",
63
+ "postcss": "^8.5.2",
64
64
  "postcss-import": "^16.1.0",
65
- "postcss-preset-env": "^10.1.1",
66
- "react": "^18.3.1",
67
- "react-dom": "^18.3.1",
65
+ "postcss-preset-env": "^10.1.4",
66
+ "react": "^19.0.0",
67
+ "react-dom": "^19.0.0",
68
68
  "react-i18next": "^15.4.0",
69
69
  "rimraf": "6.0.1",
70
- "sass-embedded": "^1.81.0",
71
- "storybook": "^8.5.0",
72
- "typescript": "^5.6.3",
73
- "vite": "^5.4.11",
74
- "vite-plugin-dts": "^4.3.0",
70
+ "sass-embedded": "^1.85.0",
71
+ "storybook": "^8.5.6",
72
+ "typescript": "^5.7.3",
73
+ "vite": "^6.1.0",
74
+ "vite-plugin-dts": "^4.5.0",
75
75
  "vite-plugin-lib-inject-css": "^2.2.1",
76
76
  "vite-plugin-svgr": "^4.3.0"
77
77
  },
@@ -1,68 +0,0 @@
1
- import { i as h, j as T, k as y, l as C, d as N, a as B, C as b, m as j, T as _, P as e } from "./generateUtilityClasses-Bhjgm_6-.js";
2
- import { _ as O, a as P } from "./objectWithoutPropertiesLoose-CIT-1_kH.js";
3
- import * as m from "react";
4
- import { ThemeContext as g } from "@emotion/react";
5
- import { jsx as E } from "react/jsx-runtime";
6
- function v(t) {
7
- return Object.keys(t).length === 0;
8
- }
9
- function D(t = null) {
10
- const o = m.useContext(g);
11
- return !o || v(o) ? t : o;
12
- }
13
- const I = h();
14
- function M(t = I) {
15
- return D(t);
16
- }
17
- const R = ["className", "component"];
18
- function S(t = {}) {
19
- const {
20
- themeId: o,
21
- defaultTheme: u,
22
- defaultClassName: a = "MuiBox-root",
23
- generateClassName: r
24
- } = t, l = T("div", {
25
- shouldForwardProp: (s) => s !== "theme" && s !== "sx" && s !== "as"
26
- })(y);
27
- return /* @__PURE__ */ m.forwardRef(function(i, x) {
28
- const n = M(u), c = C(i), {
29
- className: f,
30
- component: d = "div"
31
- } = c, p = O(c, R);
32
- return /* @__PURE__ */ E(l, P({
33
- as: d,
34
- ref: x,
35
- className: N(f, r ? r(a) : a),
36
- theme: o && n[o] || n
37
- }, p));
38
- });
39
- }
40
- const k = B("MuiBox", ["root"]), w = j(), F = S({
41
- themeId: _,
42
- defaultTheme: w,
43
- defaultClassName: k.root,
44
- generateClassName: b.generate
45
- });
46
- process.env.NODE_ENV !== "production" && (F.propTypes = {
47
- // ┌────────────────────────────── Warning ──────────────────────────────┐
48
- // │ These PropTypes are generated from the TypeScript type definitions. │
49
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
50
- // └─────────────────────────────────────────────────────────────────────┘
51
- /**
52
- * @ignore
53
- */
54
- children: e.node,
55
- /**
56
- * The component used for the root node.
57
- * Either a string to use a HTML element or a component.
58
- */
59
- component: e.elementType,
60
- /**
61
- * The system prop that allows defining system overrides as well as additional CSS styles.
62
- */
63
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
64
- });
65
- export {
66
- F as B,
67
- M as u
68
- };