@amateescu/portal-ui-components 0.0.29 → 0.0.30-beta

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 (45) hide show
  1. package/dist/Box-ZFRI9JCw.js +102 -0
  2. package/dist/Button-CNfTnafe.js +676 -0
  3. package/dist/ButtonBase-DWpUn0eT.js +965 -0
  4. package/dist/CircularProgress-D6RyizwS.js +247 -0
  5. package/dist/{EllipsisOutlined-DZsCEqiL.js → EllipsisOutlined-CzFuvGH_.js} +3 -3
  6. package/dist/{PurePanel-iUNZWTe_.js → PurePanel-CxlAi3G7.js} +3 -3
  7. package/dist/{Skeleton-CfEiGUkR.js → Skeleton-dypyF9G2.js} +2 -2
  8. package/dist/{UserInfoDropdown-CoZutJAR.js → UserInfoDropdown-DPyds49a.js} +763 -769
  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/CustomButton/CustomButton.stories.js +14 -28
  14. package/dist/components/CustomPagination/CustomPagination.js +464 -353
  15. package/dist/components/ErrorModal/ErrorModal.js +1 -1
  16. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  17. package/dist/components/InfoModal/InfoModal.js +1 -1
  18. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  19. package/dist/components/KpiCard/KpiCard.js +355 -351
  20. package/dist/components/LoadingAnimation/LoadingAnimation.js +6 -215
  21. package/dist/components/Login/Login.js +4598 -3690
  22. package/dist/components/Login/Login.stories.js +15693 -14785
  23. package/dist/components/SideMenu/SideMenu.js +1 -1
  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-Crxhk7DD.js → context-Bk4VnwMB.js} +7 -7
  29. package/dist/createSimplePaletteValueFilter-rq2_biPF.js +3443 -0
  30. package/dist/createSvgIcon-jB7EUYpq.js +248 -0
  31. package/dist/{index-BxiDYyNJ.js → index-DLbr86ak.js} +511 -513
  32. package/dist/{index-DpDv68WZ.js → index-xh_JY2OQ.js} +1 -1
  33. package/dist/main.js +1 -1
  34. package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +33 -0
  35. package/dist/useSlot-CT4096EK.js +188 -0
  36. package/package.json +31 -31
  37. package/dist/Box-5HNe2k-0.js +0 -68
  38. package/dist/Button-BPyfMt4k.js +0 -355
  39. package/dist/ButtonBase-CJNjsL6d.js +0 -966
  40. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  41. package/dist/createSvgIcon-DAETaHdH.js +0 -131
  42. package/dist/createSvgIcon-KoZ8TVCY.js +0 -211
  43. package/dist/generateUtilityClasses-DRfbjUGr.js +0 -3427
  44. package/dist/index-DrCfXZ3h.js +0 -44
  45. package/dist/objectWithoutPropertiesLoose-DYizGgyG.js +0 -46
@@ -1,13 +0,0 @@
1
- function n(e, r) {
2
- return n = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, i) {
3
- return t.__proto__ = i, t;
4
- }, n(e, r);
5
- }
6
- function o(e) {
7
- if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8
- return e;
9
- }
10
- export {
11
- n as _,
12
- o as a
13
- };
@@ -1,131 +0,0 @@
1
- import { a as E, b as _ } from "./objectWithoutPropertiesLoose-DYizGgyG.js";
2
- import { c as I, u as N } from "./createSvgIcon-KoZ8TVCY.js";
3
- import { C as S, b as T } from "./generateUtilityClasses-DRfbjUGr.js";
4
- import * as s from "react";
5
- import { s as $, u as w, a as C, b as P, c as D } from "./ButtonBase-CJNjsL6d.js";
6
- function F(...e) {
7
- return e.reduce((t, n) => n == null ? t : function(...r) {
8
- t.apply(this, r), n.apply(this, r);
9
- }, () => {
10
- });
11
- }
12
- function V(e, t = 166) {
13
- let n;
14
- function u(...r) {
15
- const o = () => {
16
- e.apply(this, r);
17
- };
18
- clearTimeout(n), n = setTimeout(o, t);
19
- }
20
- return u.clear = () => {
21
- clearTimeout(n);
22
- }, u;
23
- }
24
- function O(e, t) {
25
- return process.env.NODE_ENV === "production" ? () => null : (n, u, r, o, a) => {
26
- const i = r || "<<anonymous>>", c = a || u;
27
- return typeof n[u] < "u" ? new Error(`The ${o} \`${c}\` of \`${i}\` is deprecated. ${t}`) : null;
28
- };
29
- }
30
- function R(e, t) {
31
- var n, u;
32
- return /* @__PURE__ */ s.isValidElement(e) && t.indexOf(
33
- // For server components `muiName` is avaialble in element.type._payload.value.muiName
34
- // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
35
- // eslint-disable-next-line no-underscore-dangle
36
- (n = e.type.muiName) != null ? n : (u = e.type) == null || (u = u._payload) == null || (u = u.value) == null ? void 0 : u.muiName
37
- ) !== -1;
38
- }
39
- function v(e) {
40
- return e && e.ownerDocument || document;
41
- }
42
- function j(e) {
43
- return v(e).defaultView || window;
44
- }
45
- function q(e, t) {
46
- if (process.env.NODE_ENV === "production")
47
- return () => null;
48
- const n = t ? E({}, t.propTypes) : null;
49
- return (r) => (o, a, i, c, f, ...g) => {
50
- const d = f || a, m = n == null ? void 0 : n[d];
51
- if (m) {
52
- const p = m(o, a, i, c, f, ...g);
53
- if (p)
54
- return p;
55
- }
56
- return typeof o[a] < "u" && !o[r] ? new Error(`The prop \`${d}\` of \`${e}\` can only be used together with the \`${r}\` prop.`) : null;
57
- };
58
- }
59
- let h = 0;
60
- function G(e) {
61
- const [t, n] = s.useState(e), u = e || t;
62
- return s.useEffect(() => {
63
- t == null && (h += 1, n(`mui-${h}`));
64
- }, [t]), u;
65
- }
66
- const y = s.useId;
67
- function k(e) {
68
- if (y !== void 0) {
69
- const t = y();
70
- return e ?? t;
71
- }
72
- return G(e);
73
- }
74
- function M(e, t, n, u, r) {
75
- if (process.env.NODE_ENV === "production")
76
- return null;
77
- const o = r || t;
78
- return typeof e[t] < "u" ? new Error(`The prop \`${o}\` is not supported. Please remove it.`) : null;
79
- }
80
- const x = {
81
- configure: (e) => {
82
- process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
83
- `)), S.configure(e);
84
- }
85
- }, z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
86
- __proto__: null,
87
- capitalize: T,
88
- createChainedFunction: F,
89
- createSvgIcon: I,
90
- debounce: V,
91
- deprecatedPropType: O,
92
- isMuiElement: R,
93
- ownerDocument: v,
94
- ownerWindow: j,
95
- requirePropFactory: q,
96
- setRef: $,
97
- unstable_ClassNameGenerator: x,
98
- unstable_useEnhancedEffect: w,
99
- unstable_useId: k,
100
- unsupportedProp: M,
101
- useControlled: N,
102
- useEventCallback: C,
103
- useForkRef: P,
104
- useIsFocusVisible: D
105
- }, Symbol.toStringTag, { value: "Module" }));
106
- var l = {};
107
- const U = /* @__PURE__ */ _(z);
108
- var b;
109
- function H() {
110
- return b || (b = 1, function(e) {
111
- "use client";
112
- Object.defineProperty(e, "__esModule", {
113
- value: !0
114
- }), Object.defineProperty(e, "default", {
115
- enumerable: !0,
116
- get: function() {
117
- return t.createSvgIcon;
118
- }
119
- });
120
- var t = U;
121
- }(l)), l;
122
- }
123
- export {
124
- v as a,
125
- F as c,
126
- V as d,
127
- R as i,
128
- j as o,
129
- H as r,
130
- k as u
131
- };
@@ -1,211 +0,0 @@
1
- import * as l from "react";
2
- import { _ as z, a as S } from "./objectWithoutPropertiesLoose-DYizGgyG.js";
3
- import { jsxs as I, jsx as _ } from "react/jsx-runtime";
4
- import { g as w, a as C, u as N, s as T, c as O, b as v, d as R, P as o } from "./generateUtilityClasses-DRfbjUGr.js";
5
- function D({
6
- controlled: e,
7
- default: n,
8
- name: t,
9
- state: r = "value"
10
- }) {
11
- const {
12
- current: i
13
- } = l.useRef(e !== void 0), [u, p] = l.useState(n), c = i ? e : u;
14
- if (process.env.NODE_ENV !== "production") {
15
- l.useEffect(() => {
16
- i !== (e !== void 0) && console.error([`MUI: A component is changing the ${i ? "" : "un"}controlled ${r} state of ${t} to be ${i ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${t} 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
- }, [r, t, e]);
19
- const {
20
- current: s
21
- } = l.useRef(n);
22
- l.useEffect(() => {
23
- !i && !Object.is(s, n) && console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`].join(`
24
- `));
25
- }, [JSON.stringify(n)]);
26
- }
27
- const m = l.useCallback((s) => {
28
- i || p(s);
29
- }, []);
30
- return [c, m];
31
- }
32
- function E(e) {
33
- return w("MuiSvgIcon", e);
34
- }
35
- C("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
36
- const V = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], j = (e) => {
37
- const {
38
- color: n,
39
- fontSize: t,
40
- classes: r
41
- } = e, i = {
42
- root: ["root", n !== "inherit" && `color${v(n)}`, `fontSize${v(t)}`]
43
- };
44
- return R(i, E, r);
45
- }, A = T("svg", {
46
- name: "MuiSvgIcon",
47
- slot: "Root",
48
- overridesResolver: (e, n) => {
49
- const {
50
- ownerState: t
51
- } = e;
52
- return [n.root, t.color !== "inherit" && n[`color${v(t.color)}`], n[`fontSize${v(t.fontSize)}`]];
53
- }
54
- })(({
55
- theme: e,
56
- ownerState: n
57
- }) => {
58
- var t, r, i, u, p, c, m, s, g, d, f, h, a;
59
- return {
60
- userSelect: "none",
61
- width: "1em",
62
- height: "1em",
63
- display: "inline-block",
64
- // the <svg> will define the property that has `currentColor`
65
- // for example heroicons uses fill="none" and stroke="currentColor"
66
- fill: n.hasSvgAsChild ? void 0 : "currentColor",
67
- flexShrink: 0,
68
- transition: (t = e.transitions) == null || (r = t.create) == null ? void 0 : r.call(t, "fill", {
69
- duration: (i = e.transitions) == null || (i = i.duration) == null ? void 0 : i.shorter
70
- }),
71
- fontSize: {
72
- inherit: "inherit",
73
- small: ((u = e.typography) == null || (p = u.pxToRem) == null ? void 0 : p.call(u, 20)) || "1.25rem",
74
- medium: ((c = e.typography) == null || (m = c.pxToRem) == null ? void 0 : m.call(c, 24)) || "1.5rem",
75
- large: ((s = e.typography) == null || (g = s.pxToRem) == null ? void 0 : g.call(s, 35)) || "2.1875rem"
76
- }[n.fontSize],
77
- // TODO v5 deprecate, v6 remove for sx
78
- color: (d = (f = (e.vars || e).palette) == null || (f = f[n.color]) == null ? void 0 : f.main) != null ? d : {
79
- action: (h = (e.vars || e).palette) == null || (h = h.action) == null ? void 0 : h.active,
80
- disabled: (a = (e.vars || e).palette) == null || (a = a.action) == null ? void 0 : a.disabled,
81
- inherit: void 0
82
- }[n.color]
83
- };
84
- }), y = /* @__PURE__ */ l.forwardRef(function(n, t) {
85
- const r = N({
86
- props: n,
87
- name: "MuiSvgIcon"
88
- }), {
89
- children: i,
90
- className: u,
91
- color: p = "inherit",
92
- component: c = "svg",
93
- fontSize: m = "medium",
94
- htmlColor: s,
95
- inheritViewBox: g = !1,
96
- titleAccess: d,
97
- viewBox: f = "0 0 24 24"
98
- } = r, h = z(r, V), a = /* @__PURE__ */ l.isValidElement(i) && i.type === "svg", $ = S({}, r, {
99
- color: p,
100
- component: c,
101
- fontSize: m,
102
- instanceFontSize: n.fontSize,
103
- inheritViewBox: g,
104
- viewBox: f,
105
- hasSvgAsChild: a
106
- }), x = {};
107
- g || (x.viewBox = f);
108
- const b = j($);
109
- return /* @__PURE__ */ I(A, S({
110
- as: c,
111
- className: O(b.root, u),
112
- focusable: "false",
113
- color: s,
114
- "aria-hidden": d ? void 0 : !0,
115
- role: d ? "img" : void 0,
116
- ref: t
117
- }, x, h, a && i.props, {
118
- ownerState: $,
119
- children: [a ? i.props.children : i, d ? /* @__PURE__ */ _("title", {
120
- children: d
121
- }) : null]
122
- }));
123
- });
124
- process.env.NODE_ENV !== "production" && (y.propTypes = {
125
- // ┌────────────────────────────── Warning ──────────────────────────────┐
126
- // │ These PropTypes are generated from the TypeScript type definitions. │
127
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
128
- // └─────────────────────────────────────────────────────────────────────┘
129
- /**
130
- * Node passed into the SVG element.
131
- */
132
- children: o.node,
133
- /**
134
- * Override or extend the styles applied to the component.
135
- */
136
- classes: o.object,
137
- /**
138
- * @ignore
139
- */
140
- className: o.string,
141
- /**
142
- * The color of the component.
143
- * It supports both default and custom theme colors, which can be added as shown in the
144
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
145
- * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
146
- * @default 'inherit'
147
- */
148
- color: o.oneOfType([o.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), o.string]),
149
- /**
150
- * The component used for the root node.
151
- * Either a string to use a HTML element or a component.
152
- */
153
- component: o.elementType,
154
- /**
155
- * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
156
- * @default 'medium'
157
- */
158
- fontSize: o.oneOfType([o.oneOf(["inherit", "large", "medium", "small"]), o.string]),
159
- /**
160
- * Applies a color attribute to the SVG element.
161
- */
162
- htmlColor: o.string,
163
- /**
164
- * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
165
- * prop will be ignored.
166
- * Useful when you want to reference a custom `component` and have `SvgIcon` pass that
167
- * `component`'s viewBox to the root node.
168
- * @default false
169
- */
170
- inheritViewBox: o.bool,
171
- /**
172
- * The shape-rendering attribute. The behavior of the different options is described on the
173
- * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
174
- * If you are having issues with blurry icons you should investigate this prop.
175
- */
176
- shapeRendering: o.string,
177
- /**
178
- * The system prop that allows defining system overrides as well as additional CSS styles.
179
- */
180
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
181
- /**
182
- * Provides a human-readable title for the element that contains it.
183
- * https://www.w3.org/TR/SVG-access/#Equivalent
184
- */
185
- titleAccess: o.string,
186
- /**
187
- * Allows you to redefine what the coordinates without units mean inside an SVG element.
188
- * For example, if the SVG element is 500 (width) by 200 (height),
189
- * and you pass viewBox="0 0 50 20",
190
- * this means that the coordinates inside the SVG will go from the top left corner (0,0)
191
- * to bottom right (50,20) and each unit will be worth 10px.
192
- * @default '0 0 24 24'
193
- */
194
- viewBox: o.string
195
- });
196
- y.muiName = "SvgIcon";
197
- function k(e, n) {
198
- function t(r, i) {
199
- return /* @__PURE__ */ _(y, S({
200
- "data-testid": `${n}Icon`,
201
- ref: i
202
- }, r, {
203
- children: e
204
- }));
205
- }
206
- return process.env.NODE_ENV !== "production" && (t.displayName = `${n}Icon`), t.muiName = y.muiName, /* @__PURE__ */ l.memo(/* @__PURE__ */ l.forwardRef(t));
207
- }
208
- export {
209
- k as c,
210
- D as u
211
- };