@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
@@ -1,7 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import '../../assets/theme.css';import '../../assets/ErrorModal.css';/* empty css */
3
3
  import { useState as x } from "react";
4
- import { M as h } from "../../index-CR8gh-dS.js";
4
+ import { M as h } from "../../index-BxiDYyNJ.js";
5
5
  const p = "_flexRowCenter_1ixx3_43", d = "_text18_1ixx3_57", m = "_content_1ixx3_61", t = {
6
6
  flexRowCenter: p,
7
7
  text18: d,
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { ErrorModal as t } from "./ErrorModal.js";
3
- import { C as e } from "../../context-D_FWkiDE.js";
3
+ import { C as e } from "../../context-Crxhk7DD.js";
4
4
  const a = ({ isRtl: o }) => /* @__PURE__ */ r(e, { direction: o ? "rtl" : "ltr", children: /* @__PURE__ */ r(
5
5
  t,
6
6
  {
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
2
  import * as r from "react";
3
3
  import { S as i } from "../../VModalIcon-D7L4bQLO.js";
4
4
  import '../../assets/theme.css';import '../../assets/ErrorModal.css';/* empty css */
5
- import { M as x } from "../../index-CR8gh-dS.js";
5
+ import { M as x } from "../../index-BxiDYyNJ.js";
6
6
  const m = (o) => /* @__PURE__ */ r.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...o }, /* @__PURE__ */ r.createElement("path", { d: "M13 16H12V12H11M12 8H12.01M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z", stroke: "#045529", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), d = "_flexRowCenter_1ixx3_43", p = "_mr10_1ixx3_49", f = "_text18_1ixx3_57", h = "_content_1ixx3_61", t = {
7
7
  flexRowCenter: d,
8
8
  mr10: p,
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { InfoModal as e } from "./InfoModal.js";
3
- import { C as r } from "../../context-D_FWkiDE.js";
3
+ import { C as r } from "../../context-Crxhk7DD.js";
4
4
  const n = ({ isRtl: t }) => /* @__PURE__ */ o(r, { direction: t ? "rtl" : "ltr", children: /* @__PURE__ */ o(
5
5
  e,
6
6
  {
@@ -3,10 +3,10 @@ import { LoadingAnimation as ga } from "../LoadingAnimation/LoadingAnimation.js"
3
3
  import { cn as pa } from "../../portal-utils/cn.js";
4
4
  import * as l from "react";
5
5
  import ha, { createContext as $a, useState as Z, useRef as te, useEffect as me, useMemo as Gt } from "react";
6
- import { a as Me, V as ya, d as Sa, I as _a, _ as M, w as Pt, e as se, f as xa, h as nt, i as ne, c as A, j as Se, k as Ca, l as Tt, n as wa, p as He, q as Ea, r as Pa, s as Nt, t as Ta, v as rt, x as Na, g as Ht, m as Wt, u, y as it, z as ot, A as Vt, B as tt, D as Oa, E as Kt, F as We, o as Ra } from "../../context-D_FWkiDE.js";
7
- import { R as Ia, S as za } from "../../Skeleton-Imy-56Lv.js";
8
- import { E as Ma, M as La, D as Da, R as et, i as Ba, a as Ot, b as ja } from "../../EllipsisOutlined-DfTPoz8U.js";
9
- import { _ as pe } from "../../objectWithoutPropertiesLoose-BTau6TOn.js";
6
+ import { a as Me, V as ya, d as Sa, I as _a, _ as M, w as Pt, e as se, f as xa, h as nt, i as ne, c as A, j as Se, k as Ca, l as Tt, n as wa, p as He, q as Ea, r as Pa, s as Nt, t as Ta, v as rt, x as Na, g as Ht, m as Wt, u, y as it, z as ot, A as Vt, B as tt, D as Oa, E as Kt, F as We, o as Ra } from "../../context-Crxhk7DD.js";
7
+ import { R as Ia, S as za } from "../../Skeleton-CfEiGUkR.js";
8
+ import { E as Ma, M as La, D as Da, R as et, i as Ba, a as Ot, b as ja } from "../../EllipsisOutlined-DZsCEqiL.js";
9
+ import { a as pe } from "../../objectWithoutPropertiesLoose-DYizGgyG.js";
10
10
  import '../../assets/KpiCard.css';const Aa = function(e, t) {
11
11
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0;
12
12
  var a, r;
@@ -1,9 +1,218 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { B as i } from "../../Box-DQNjUj2G.js";
3
- import { C as t } from "../../CircularProgress-BOkP0juA.js";
4
- function m() {
5
- return /* @__PURE__ */ r(i, { display: "flex", justifyContent: "center", alignItems: "center", minHeight: "100%", children: /* @__PURE__ */ r(t, {}) });
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { B as T } from "../../Box-C1OwXVV-.js";
3
+ import { _ as j, a as n } from "../../objectWithoutPropertiesLoose-DYizGgyG.js";
4
+ import * as I from "react";
5
+ import { g as U, a as z, u as E, s as y, c as B, b as d, d as F, P as e, e as K } from "../../generateUtilityClasses-DY-qyzNG.js";
6
+ import { css as w, keyframes as _ } from "@emotion/react";
7
+ function L(r) {
8
+ return U("MuiCircularProgress", r);
9
+ }
10
+ z("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
11
+ const V = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
12
+ let m = (r) => r, P, S, D, $;
13
+ const o = 44, W = _(P || (P = m`
14
+ 0% {
15
+ transform: rotate(0deg);
16
+ }
17
+
18
+ 100% {
19
+ transform: rotate(360deg);
20
+ }
21
+ `)), A = _(S || (S = m`
22
+ 0% {
23
+ stroke-dasharray: 1px, 200px;
24
+ stroke-dashoffset: 0;
25
+ }
26
+
27
+ 50% {
28
+ stroke-dasharray: 100px, 200px;
29
+ stroke-dashoffset: -15px;
30
+ }
31
+
32
+ 100% {
33
+ stroke-dasharray: 100px, 200px;
34
+ stroke-dashoffset: -125px;
35
+ }
36
+ `)), G = (r) => {
37
+ const {
38
+ classes: s,
39
+ variant: t,
40
+ color: a,
41
+ disableShrink: u
42
+ } = r, f = {
43
+ root: ["root", t, `color${d(a)}`],
44
+ svg: ["svg"],
45
+ circle: ["circle", `circle${d(t)}`, u && "circleDisableShrink"]
46
+ };
47
+ return F(f, L, s);
48
+ }, H = y("span", {
49
+ name: "MuiCircularProgress",
50
+ slot: "Root",
51
+ overridesResolver: (r, s) => {
52
+ const {
53
+ ownerState: t
54
+ } = r;
55
+ return [s.root, s[t.variant], s[`color${d(t.color)}`]];
56
+ }
57
+ })(({
58
+ ownerState: r,
59
+ theme: s
60
+ }) => n({
61
+ display: "inline-block"
62
+ }, r.variant === "determinate" && {
63
+ transition: s.transitions.create("transform")
64
+ }, r.color !== "inherit" && {
65
+ color: (s.vars || s).palette[r.color].main
66
+ }), ({
67
+ ownerState: r
68
+ }) => r.variant === "indeterminate" && w(D || (D = m`
69
+ animation: ${0} 1.4s linear infinite;
70
+ `), W)), Y = y("svg", {
71
+ name: "MuiCircularProgress",
72
+ slot: "Svg",
73
+ overridesResolver: (r, s) => s.svg
74
+ })({
75
+ display: "block"
76
+ // Keeps the progress centered
77
+ }), Z = y("circle", {
78
+ name: "MuiCircularProgress",
79
+ slot: "Circle",
80
+ overridesResolver: (r, s) => {
81
+ const {
82
+ ownerState: t
83
+ } = r;
84
+ return [s.circle, s[`circle${d(t.variant)}`], t.disableShrink && s.circleDisableShrink];
85
+ }
86
+ })(({
87
+ ownerState: r,
88
+ theme: s
89
+ }) => n({
90
+ stroke: "currentColor"
91
+ }, r.variant === "determinate" && {
92
+ transition: s.transitions.create("stroke-dashoffset")
93
+ }, r.variant === "indeterminate" && {
94
+ // Some default value that looks fine waiting for the animation to kicks in.
95
+ strokeDasharray: "80px, 200px",
96
+ strokeDashoffset: 0
97
+ // Add the unit to fix a Edge 16 and below bug.
98
+ }), ({
99
+ ownerState: r
100
+ }) => r.variant === "indeterminate" && !r.disableShrink && w($ || ($ = m`
101
+ animation: ${0} 1.4s ease-in-out infinite;
102
+ `), A)), M = /* @__PURE__ */ I.forwardRef(function(s, t) {
103
+ const a = E({
104
+ props: s,
105
+ name: "MuiCircularProgress"
106
+ }), {
107
+ className: u,
108
+ color: f = "primary",
109
+ disableShrink: N = !1,
110
+ size: p = 40,
111
+ style: O,
112
+ thickness: c = 3.6,
113
+ value: h = 0,
114
+ variant: k = "indeterminate"
115
+ } = a, R = j(a, V), l = n({}, a, {
116
+ color: f,
117
+ disableShrink: N,
118
+ size: p,
119
+ thickness: c,
120
+ value: h,
121
+ variant: k
122
+ }), v = G(l), g = {}, b = {}, x = {};
123
+ if (k === "determinate") {
124
+ const C = 2 * Math.PI * ((o - c) / 2);
125
+ g.strokeDasharray = C.toFixed(3), x["aria-valuenow"] = Math.round(h), g.strokeDashoffset = `${((100 - h) / 100 * C).toFixed(3)}px`, b.transform = "rotate(-90deg)";
126
+ }
127
+ return /* @__PURE__ */ i(H, n({
128
+ className: B(v.root, u),
129
+ style: n({
130
+ width: p,
131
+ height: p
132
+ }, b, O),
133
+ ownerState: l,
134
+ ref: t,
135
+ role: "progressbar"
136
+ }, x, R, {
137
+ children: /* @__PURE__ */ i(Y, {
138
+ className: v.svg,
139
+ ownerState: l,
140
+ viewBox: `${o / 2} ${o / 2} ${o} ${o}`,
141
+ children: /* @__PURE__ */ i(Z, {
142
+ className: v.circle,
143
+ style: g,
144
+ ownerState: l,
145
+ cx: o,
146
+ cy: o,
147
+ r: (o - c) / 2,
148
+ fill: "none",
149
+ strokeWidth: c
150
+ })
151
+ })
152
+ }));
153
+ });
154
+ process.env.NODE_ENV !== "production" && (M.propTypes = {
155
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
156
+ // │ These PropTypes are generated from the TypeScript type definitions. │
157
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
158
+ // └─────────────────────────────────────────────────────────────────────┘
159
+ /**
160
+ * Override or extend the styles applied to the component.
161
+ */
162
+ classes: e.object,
163
+ /**
164
+ * @ignore
165
+ */
166
+ className: e.string,
167
+ /**
168
+ * The color of the component.
169
+ * It supports both default and custom theme colors, which can be added as shown in the
170
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
171
+ * @default 'primary'
172
+ */
173
+ color: e.oneOfType([e.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
174
+ /**
175
+ * If `true`, the shrink animation is disabled.
176
+ * This only works if variant is `indeterminate`.
177
+ * @default false
178
+ */
179
+ disableShrink: K(e.bool, (r) => r.disableShrink && r.variant && r.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
180
+ /**
181
+ * The size of the component.
182
+ * If using a number, the pixel unit is assumed.
183
+ * If using a string, you need to provide the CSS unit, for example '3rem'.
184
+ * @default 40
185
+ */
186
+ size: e.oneOfType([e.number, e.string]),
187
+ /**
188
+ * @ignore
189
+ */
190
+ style: e.object,
191
+ /**
192
+ * The system prop that allows defining system overrides as well as additional CSS styles.
193
+ */
194
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
195
+ /**
196
+ * The thickness of the circle.
197
+ * @default 3.6
198
+ */
199
+ thickness: e.number,
200
+ /**
201
+ * The value of the progress indicator for the determinate variant.
202
+ * Value between 0 and 100.
203
+ * @default 0
204
+ */
205
+ value: e.number,
206
+ /**
207
+ * The variant to use.
208
+ * Use indeterminate when there is no progress value.
209
+ * @default 'indeterminate'
210
+ */
211
+ variant: e.oneOf(["determinate", "indeterminate"])
212
+ });
213
+ function er() {
214
+ return /* @__PURE__ */ i(T, { display: "flex", justifyContent: "center", alignItems: "center", minHeight: "100%", children: /* @__PURE__ */ i(M, {}) });
6
215
  }
7
216
  export {
8
- m as LoadingAnimation
217
+ er as LoadingAnimation
9
218
  };