@amateescu/portal-ui-components 0.0.25-react19 → 0.0.26-beta0

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 (44) hide show
  1. package/dist/Box-C1OwXVV-.js +68 -0
  2. package/dist/Button-CIvE-fcO.js +355 -0
  3. package/dist/ButtonBase-BeQnmGXr.js +966 -0
  4. package/dist/{EllipsisOutlined-DfTPoz8U.js → EllipsisOutlined-DZsCEqiL.js} +724 -722
  5. package/dist/{PurePanel-ByiFMw5U.js → PurePanel-iUNZWTe_.js} +3 -3
  6. package/dist/{Skeleton-Imy-56Lv.js → Skeleton-CfEiGUkR.js} +2 -2
  7. package/dist/{UserInfoDropdown-6aB5cQyF.js → UserInfoDropdown-CoZutJAR.js} +191 -191
  8. package/dist/assertThisInitialized-BUtkG-md.js +13 -0
  9. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  10. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
  11. package/dist/components/CustomButton/CustomButton.js +1 -1
  12. package/dist/components/CustomPagination/CustomPagination.js +372 -483
  13. package/dist/components/ErrorModal/ErrorModal.js +1 -1
  14. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  15. package/dist/components/InfoModal/InfoModal.js +1 -1
  16. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  17. package/dist/components/KpiCard/KpiCard.js +4 -4
  18. package/dist/components/LoadingAnimation/LoadingAnimation.js +215 -6
  19. package/dist/components/Login/Login.js +3837 -4489
  20. package/dist/components/Login/Login.stories.js +1 -1
  21. package/dist/components/SideMenu/SideMenu.js +1 -1
  22. package/dist/components/SideMenu/SideMenu.types.d.ts +0 -1
  23. package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
  24. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  25. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  26. package/dist/components/index.js +1 -1
  27. package/dist/{context-D_FWkiDE.js → context-Crxhk7DD.js} +9 -8
  28. package/dist/createSvgIcon-Db107M0j.js +250 -0
  29. package/dist/generateUtilityClasses-DY-qyzNG.js +3427 -0
  30. package/dist/{index-CR8gh-dS.js → index-BxiDYyNJ.js} +4 -4
  31. package/dist/index-DpDv68WZ.js +19153 -0
  32. package/dist/main.js +1 -1
  33. package/dist/objectWithoutPropertiesLoose-DYizGgyG.js +46 -0
  34. package/dist/types/Column.d.ts +2 -0
  35. package/package.json +28 -26
  36. package/dist/Box-DQNjUj2G.js +0 -102
  37. package/dist/Button-D2XVkO19.js +0 -676
  38. package/dist/ButtonBase-D-XlpvIZ.js +0 -954
  39. package/dist/CircularProgress-BOkP0juA.js +0 -247
  40. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  41. package/dist/createSimplePaletteValueFilter-CshNo3IR.js +0 -3439
  42. package/dist/index-CyFfYou3.js +0 -411
  43. package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +0 -33
  44. package/dist/useSlot-kDVPuVrn.js +0 -431
package/dist/main.js CHANGED
@@ -10,7 +10,7 @@ import { LoadingAnimation as L } from "./components/LoadingAnimation/LoadingAnim
10
10
  import { Login as P } from "./components/Login/Login.js";
11
11
  import { SideMenu as h } from "./components/SideMenu/SideMenu.js";
12
12
  import { TotalDataGrid as A } from "./components/TotalDataGrid/TotalDataGrid.js";
13
- import { U as I } from "./UserInfoDropdown-6aB5cQyF.js";
13
+ import { U as I } from "./UserInfoDropdown-CoZutJAR.js";
14
14
  import { chunkArray as b } from "./portal-utils/chunkArray.js";
15
15
  import { cn as v } from "./portal-utils/cn.js";
16
16
  import { currency as B, date as E, datetime as F, decimal as G, fuelUnitPrice as S, fuelVolume as T, hours as V, number as W, time as j } from "./portal-utils/formatters.js";
@@ -0,0 +1,46 @@
1
+ function a(e) {
2
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
+ }
4
+ function s(e) {
5
+ if (e.__esModule) return e;
6
+ var n = e.default;
7
+ if (typeof n == "function") {
8
+ var r = function t() {
9
+ return this instanceof t ? Reflect.construct(n, arguments, this.constructor) : n.apply(this, arguments);
10
+ };
11
+ r.prototype = n.prototype;
12
+ } else r = {};
13
+ return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(t) {
14
+ var o = Object.getOwnPropertyDescriptor(e, t);
15
+ Object.defineProperty(r, t, o.get ? o : {
16
+ enumerable: !0,
17
+ get: function() {
18
+ return e[t];
19
+ }
20
+ });
21
+ }), r;
22
+ }
23
+ function u() {
24
+ return u = Object.assign ? Object.assign.bind() : function(e) {
25
+ for (var n = 1; n < arguments.length; n++) {
26
+ var r = arguments[n];
27
+ for (var t in r) ({}).hasOwnProperty.call(r, t) && (e[t] = r[t]);
28
+ }
29
+ return e;
30
+ }, u.apply(null, arguments);
31
+ }
32
+ function i(e, n) {
33
+ if (e == null) return {};
34
+ var r = {};
35
+ for (var t in e) if ({}.hasOwnProperty.call(e, t)) {
36
+ if (n.indexOf(t) !== -1) continue;
37
+ r[t] = e[t];
38
+ }
39
+ return r;
40
+ }
41
+ export {
42
+ i as _,
43
+ u as a,
44
+ s as b,
45
+ a as g
46
+ };
@@ -9,4 +9,6 @@ export interface Column {
9
9
  maxWidth?: number;
10
10
  hide?: boolean;
11
11
  headerName?: string;
12
+ cellClassName?: string;
13
+ getActions?: (row: any) => any[];
12
14
  }
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.25-react19",
5
+ "version": "0.0.26-beta0",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist",
@@ -29,48 +29,50 @@
29
29
  "i18next": ">=23.10.1",
30
30
  "react": ">=18.2.0",
31
31
  "react-dom": ">=18.2.0",
32
- "react-i18next": ">=14.1.0"
32
+ "react-i18next": ">=14.1.0",
33
+ "antd": ">=5.16.2",
34
+ "@mui/material": ">=5.15.12"
33
35
  },
34
36
  "devDependencies": {
35
37
  "@chromatic-com/storybook": "^3.2.4",
36
38
  "@emotion/react": "^11.14.0",
37
39
  "@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",
40
+ "@eslint/js": "^9.21.0",
41
+ "@mui/icons-material": "^5.15.12",
42
+ "@mui/material": "^5.15.12",
43
+ "@mui/x-data-grid": "^6.19.8",
44
+ "@storybook/addon-essentials": "^8.5.8",
45
+ "@storybook/addon-interactions": "^8.5.8",
46
+ "@storybook/addon-onboarding": "^8.5.8",
47
+ "@storybook/blocks": "^8.5.8",
48
+ "@storybook/react": "^8.5.8",
49
+ "@storybook/react-vite": "^8.5.8",
50
+ "@storybook/test": "^8.5.8",
49
51
  "@types/postcss-import": "^14.0.3",
50
- "@types/react": "^19.0.10",
51
- "@types/react-dom": "^19.0.4",
52
+ "@types/react": "^18.3.12",
53
+ "@types/react-dom": "^18.3.1",
52
54
  "@vitejs/plugin-react": "^4.3.4",
53
- "antd": "^5.24.1",
55
+ "antd": "^5.24.2",
54
56
  "date-fns": "^4.1.0",
55
- "eslint": "^9.20.1",
57
+ "eslint": "^9.21.0",
56
58
  "eslint-plugin-react": "^7.37.4",
57
59
  "eslint-plugin-react-hooks": "^5.1.0",
58
60
  "eslint-plugin-react-refresh": "^0.4.19",
59
61
  "eslint-plugin-storybook": "^0.11.3",
60
62
  "glob": "^11.0.1",
61
- "globals": "^15.15.0",
63
+ "globals": "^16.0.0",
62
64
  "i18next": "^24.2.2",
63
- "postcss": "^8.5.2",
65
+ "postcss": "^8.5.3",
64
66
  "postcss-import": "^16.1.0",
65
- "postcss-preset-env": "^10.1.4",
66
- "react": "^19.0.0",
67
- "react-dom": "^19.0.0",
68
- "react-i18next": "^15.4.0",
67
+ "postcss-preset-env": "^10.1.5",
68
+ "react": "^18.3.1",
69
+ "react-dom": "^18.3.1",
70
+ "react-i18next": "^15.4.1",
69
71
  "rimraf": "6.0.1",
70
- "sass-embedded": "^1.85.0",
71
- "storybook": "^8.5.6",
72
+ "sass-embedded": "^1.85.1",
73
+ "storybook": "^8.5.8",
72
74
  "typescript": "^5.7.3",
73
- "vite": "^6.1.0",
75
+ "vite": "^6.2.0",
74
76
  "vite-plugin-dts": "^4.5.0",
75
77
  "vite-plugin-lib-inject-css": "^2.2.1",
76
78
  "vite-plugin-svgr": "^4.3.0"
@@ -1,102 +0,0 @@
1
- import { j as d, k as T, l as C, n as P, o as b, c as B, a as N, C as g, T as j, p as O, P as n } from "./createSimplePaletteValueFilter-CshNo3IR.js";
2
- import * as u from "react";
3
- import { jsx as E } from "react/jsx-runtime";
4
- import { ThemeContext as S } from "@emotion/react";
5
- const p = (e) => {
6
- var s;
7
- const t = {
8
- systemProps: {},
9
- otherProps: {}
10
- }, c = ((s = e == null ? void 0 : e.theme) == null ? void 0 : s.unstable_sxConfig) ?? T;
11
- return Object.keys(e).forEach((o) => {
12
- c[o] ? t.systemProps[o] = e[o] : t.otherProps[o] = e[o];
13
- }), t;
14
- };
15
- function v(e) {
16
- const {
17
- sx: t,
18
- ...c
19
- } = e, {
20
- systemProps: s,
21
- otherProps: o
22
- } = p(c);
23
- let r;
24
- return Array.isArray(t) ? r = [s, ...t] : typeof t == "function" ? r = (...l) => {
25
- const a = t(...l);
26
- return d(a) ? {
27
- ...s,
28
- ...a
29
- } : s;
30
- } : r = {
31
- ...s,
32
- ...t
33
- }, {
34
- ...o,
35
- sx: r
36
- };
37
- }
38
- function k(e) {
39
- return Object.keys(e).length === 0;
40
- }
41
- function D(e = null) {
42
- const t = u.useContext(S);
43
- return !t || k(t) ? e : t;
44
- }
45
- const I = C();
46
- function M(e = I) {
47
- return D(e);
48
- }
49
- function R(e = {}) {
50
- const {
51
- themeId: t,
52
- defaultTheme: c,
53
- defaultClassName: s = "MuiBox-root",
54
- generateClassName: o
55
- } = e, r = P("div", {
56
- shouldForwardProp: (a) => a !== "theme" && a !== "sx" && a !== "as"
57
- })(b);
58
- return /* @__PURE__ */ u.forwardRef(function(f, i) {
59
- const m = M(c), {
60
- className: x,
61
- component: h = "div",
62
- ...y
63
- } = v(f);
64
- return /* @__PURE__ */ E(r, {
65
- as: h,
66
- ref: i,
67
- className: B(x, o ? o(s) : s),
68
- theme: t && m[t] || m,
69
- ...y
70
- });
71
- });
72
- }
73
- const _ = N("MuiBox", ["root"]), w = O(), A = R({
74
- themeId: j,
75
- defaultTheme: w,
76
- defaultClassName: _.root,
77
- generateClassName: g.generate
78
- });
79
- process.env.NODE_ENV !== "production" && (A.propTypes = {
80
- // ┌────────────────────────────── Warning ──────────────────────────────┐
81
- // │ These PropTypes are generated from the TypeScript type definitions. │
82
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
83
- // └─────────────────────────────────────────────────────────────────────┘
84
- /**
85
- * @ignore
86
- */
87
- children: n.node,
88
- /**
89
- * The component used for the root node.
90
- * Either a string to use a HTML element or a component.
91
- */
92
- component: n.elementType,
93
- /**
94
- * The system prop that allows defining system overrides as well as additional CSS styles.
95
- */
96
- sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
97
- });
98
- export {
99
- A as B,
100
- v as e,
101
- M as u
102
- };