@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
@@ -0,0 +1,247 @@
1
+ import * as O from "react";
2
+ import { g as T, a as R, u as N, s as g, c as j, b as c, d as U, m as P, e as E, P as r, f as I } from "./createSimplePaletteValueFilter-rq2_biPF.js";
3
+ import { jsx as h } from "react/jsx-runtime";
4
+ import { css as x, keyframes as w } from "@emotion/react";
5
+ function z(e) {
6
+ return T("MuiCircularProgress", e);
7
+ }
8
+ R("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
9
+ const a = 44, y = w`
10
+ 0% {
11
+ transform: rotate(0deg);
12
+ }
13
+
14
+ 100% {
15
+ transform: rotate(360deg);
16
+ }
17
+ `, v = w`
18
+ 0% {
19
+ stroke-dasharray: 1px, 200px;
20
+ stroke-dashoffset: 0;
21
+ }
22
+
23
+ 50% {
24
+ stroke-dasharray: 100px, 200px;
25
+ stroke-dashoffset: -15px;
26
+ }
27
+
28
+ 100% {
29
+ stroke-dasharray: 1px, 200px;
30
+ stroke-dashoffset: -126px;
31
+ }
32
+ `, F = typeof y != "string" ? x`
33
+ animation: ${y} 1.4s linear infinite;
34
+ ` : null, V = typeof v != "string" ? x`
35
+ animation: ${v} 1.4s ease-in-out infinite;
36
+ ` : null, A = (e) => {
37
+ const {
38
+ classes: s,
39
+ variant: t,
40
+ color: i,
41
+ disableShrink: l
42
+ } = e, p = {
43
+ root: ["root", t, `color${c(i)}`],
44
+ svg: ["svg"],
45
+ circle: ["circle", `circle${c(t)}`, l && "circleDisableShrink"]
46
+ };
47
+ return U(p, z, s);
48
+ }, K = g("span", {
49
+ name: "MuiCircularProgress",
50
+ slot: "Root",
51
+ overridesResolver: (e, s) => {
52
+ const {
53
+ ownerState: t
54
+ } = e;
55
+ return [s.root, s[t.variant], s[`color${c(t.color)}`]];
56
+ }
57
+ })(P(({
58
+ theme: e
59
+ }) => ({
60
+ display: "inline-block",
61
+ variants: [{
62
+ props: {
63
+ variant: "determinate"
64
+ },
65
+ style: {
66
+ transition: e.transitions.create("transform")
67
+ }
68
+ }, {
69
+ props: {
70
+ variant: "indeterminate"
71
+ },
72
+ style: F || {
73
+ animation: `${y} 1.4s linear infinite`
74
+ }
75
+ }, ...Object.entries(e.palette).filter(E()).map(([s]) => ({
76
+ props: {
77
+ color: s
78
+ },
79
+ style: {
80
+ color: (e.vars || e).palette[s].main
81
+ }
82
+ }))]
83
+ }))), B = g("svg", {
84
+ name: "MuiCircularProgress",
85
+ slot: "Svg",
86
+ overridesResolver: (e, s) => s.svg
87
+ })({
88
+ display: "block"
89
+ // Keeps the progress centered
90
+ }), G = g("circle", {
91
+ name: "MuiCircularProgress",
92
+ slot: "Circle",
93
+ overridesResolver: (e, s) => {
94
+ const {
95
+ ownerState: t
96
+ } = e;
97
+ return [s.circle, s[`circle${c(t.variant)}`], t.disableShrink && s.circleDisableShrink];
98
+ }
99
+ })(P(({
100
+ theme: e
101
+ }) => ({
102
+ stroke: "currentColor",
103
+ variants: [{
104
+ props: {
105
+ variant: "determinate"
106
+ },
107
+ style: {
108
+ transition: e.transitions.create("stroke-dashoffset")
109
+ }
110
+ }, {
111
+ props: {
112
+ variant: "indeterminate"
113
+ },
114
+ style: {
115
+ // Some default value that looks fine waiting for the animation to kicks in.
116
+ strokeDasharray: "80px, 200px",
117
+ strokeDashoffset: 0
118
+ // Add the unit to fix a Edge 16 and below bug.
119
+ }
120
+ }, {
121
+ props: ({
122
+ ownerState: s
123
+ }) => s.variant === "indeterminate" && !s.disableShrink,
124
+ style: V || {
125
+ // At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
126
+ animation: `${v} 1.4s ease-in-out infinite`
127
+ }
128
+ }]
129
+ }))), W = /* @__PURE__ */ O.forwardRef(function(s, t) {
130
+ const i = N({
131
+ props: s,
132
+ name: "MuiCircularProgress"
133
+ }), {
134
+ className: l,
135
+ color: p = "primary",
136
+ disableShrink: $ = !1,
137
+ size: m = 40,
138
+ style: D,
139
+ thickness: o = 3.6,
140
+ value: f = 0,
141
+ variant: k = "indeterminate",
142
+ ...M
143
+ } = i, n = {
144
+ ...i,
145
+ color: p,
146
+ disableShrink: $,
147
+ size: m,
148
+ thickness: o,
149
+ value: f,
150
+ variant: k
151
+ }, d = A(n), u = {}, b = {}, S = {};
152
+ if (k === "determinate") {
153
+ const C = 2 * Math.PI * ((a - o) / 2);
154
+ u.strokeDasharray = C.toFixed(3), S["aria-valuenow"] = Math.round(f), u.strokeDashoffset = `${((100 - f) / 100 * C).toFixed(3)}px`, b.transform = "rotate(-90deg)";
155
+ }
156
+ return /* @__PURE__ */ h(K, {
157
+ className: j(d.root, l),
158
+ style: {
159
+ width: m,
160
+ height: m,
161
+ ...b,
162
+ ...D
163
+ },
164
+ ownerState: n,
165
+ ref: t,
166
+ role: "progressbar",
167
+ ...S,
168
+ ...M,
169
+ children: /* @__PURE__ */ h(B, {
170
+ className: d.svg,
171
+ ownerState: n,
172
+ viewBox: `${a / 2} ${a / 2} ${a} ${a}`,
173
+ children: /* @__PURE__ */ h(G, {
174
+ className: d.circle,
175
+ style: u,
176
+ ownerState: n,
177
+ cx: a,
178
+ cy: a,
179
+ r: (a - o) / 2,
180
+ fill: "none",
181
+ strokeWidth: o
182
+ })
183
+ })
184
+ });
185
+ });
186
+ process.env.NODE_ENV !== "production" && (W.propTypes = {
187
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
188
+ // │ These PropTypes are generated from the TypeScript type definitions. │
189
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
190
+ // └─────────────────────────────────────────────────────────────────────┘
191
+ /**
192
+ * Override or extend the styles applied to the component.
193
+ */
194
+ classes: r.object,
195
+ /**
196
+ * @ignore
197
+ */
198
+ className: r.string,
199
+ /**
200
+ * The color of the component.
201
+ * It supports both default and custom theme colors, which can be added as shown in the
202
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
203
+ * @default 'primary'
204
+ */
205
+ color: r.oneOfType([r.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
206
+ /**
207
+ * If `true`, the shrink animation is disabled.
208
+ * This only works if variant is `indeterminate`.
209
+ * @default false
210
+ */
211
+ disableShrink: I(r.bool, (e) => e.disableShrink && e.variant && e.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
212
+ /**
213
+ * The size of the component.
214
+ * If using a number, the pixel unit is assumed.
215
+ * If using a string, you need to provide the CSS unit, for example '3rem'.
216
+ * @default 40
217
+ */
218
+ size: r.oneOfType([r.number, r.string]),
219
+ /**
220
+ * @ignore
221
+ */
222
+ style: r.object,
223
+ /**
224
+ * The system prop that allows defining system overrides as well as additional CSS styles.
225
+ */
226
+ sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
227
+ /**
228
+ * The thickness of the circle.
229
+ * @default 3.6
230
+ */
231
+ thickness: r.number,
232
+ /**
233
+ * The value of the progress indicator for the determinate variant.
234
+ * Value between 0 and 100.
235
+ * @default 0
236
+ */
237
+ value: r.number,
238
+ /**
239
+ * The variant to use.
240
+ * Use indeterminate when there is no progress value.
241
+ * @default 'indeterminate'
242
+ */
243
+ variant: r.oneOf(["determinate", "indeterminate"])
244
+ });
245
+ export {
246
+ W as C
247
+ };
@@ -1,8 +1,8 @@
1
- import { a6 as Tr, a7 as Lr, a8 as Ar, a9 as $r, a3 as $n, a4 as zn, n as ur, e as T, ag as Gn, h as zr, x as Vr, M as Zn, K as Lt, H as ba, p as De, c as ke, w as Ht, _ as k, k as Kt, ah as it, q as cr, a2 as fr, ai as pa, aj as Qn, a5 as Wr, l as Rt, ak as Yn, N as Ca, P as Fr, j as st, i as he, al as wa, am as Hr, r as un, s as Dn, o as vr, I as Ma } from "./context-Crxhk7DD.js";
1
+ import { a6 as Tr, a7 as Lr, a8 as Ar, a9 as $r, a3 as $n, a4 as zn, n as ur, e as T, ag as Gn, h as zr, x as Vr, M as Zn, K as Lt, H as ba, p as De, c as ke, w as Ht, _ as k, k as Kt, ah as it, q as cr, a2 as fr, ai as pa, aj as Qn, a5 as Wr, l as Rt, ak as Yn, N as Ca, P as Fr, j as st, i as he, al as wa, am as Hr, r as un, s as Dn, o as vr, I as Ma } from "./context-Bk4VnwMB.js";
2
2
  import * as a from "react";
3
3
  import qe, { useState as Jn, useMemo as Xn, useCallback as Tt, forwardRef as Ra, useRef as xn, useImperativeHandle as Ea } from "react";
4
- import { a as ae } from "./objectWithoutPropertiesLoose-DYizGgyG.js";
5
- import { r as Br } from "./index-DpDv68WZ.js";
4
+ import { _ as ae } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
5
+ import { r as Br } from "./index-xh_JY2OQ.js";
6
6
  var er = /* @__PURE__ */ a.createContext(null);
7
7
  function Sa(e) {
8
8
  var n = e.children, t = e.onBatchResize, r = a.useRef(0), i = a.useRef([]), o = a.useContext(er), s = a.useCallback(function(l, u, c) {
@@ -1,8 +1,8 @@
1
1
  import * as m from "react";
2
2
  import c, { useContext as _e, useRef as D, forwardRef as me, useState as je, useEffect as te, useMemo as oe, Children as kt } from "react";
3
- import { I as eo, U as We, v as Ge, e as M, Z as pt, $ as le, h as vt, Y as to, a0 as oo, a1 as ro, w as ce, q as bt, c as N, a2 as Ct, a as re, k as Fe, a3 as no, a4 as ao, a5 as io, g as ht, m as ne, E as yt, x as so, l as lo, a6 as co, a7 as uo, a8 as St, a9 as xt, p as Et, aa as Ot, _ as J, i as Te, s as $t, H as mo, K as T, ab as Re, u as ue, ac as go, B as fo, ad as po, T as vo, b as bo, ae as Co, n as ho, o as yo, af as So, C as xo } from "./context-Crxhk7DD.js";
4
- import { R as It } from "./index-DpDv68WZ.js";
5
- import { a as se } from "./objectWithoutPropertiesLoose-DYizGgyG.js";
3
+ import { I as eo, U as We, v as Ge, e as M, Z as pt, $ as le, h as vt, Y as to, a0 as oo, a1 as ro, w as ce, q as bt, c as N, a2 as Ct, a as re, k as Fe, a3 as no, a4 as ao, a5 as io, g as ht, m as ne, E as yt, x as so, l as lo, a6 as co, a7 as uo, a8 as St, a9 as xt, p as Et, aa as Ot, _ as J, i as Te, s as $t, H as mo, K as T, ab as Re, u as ue, ac as go, B as fo, ad as po, T as vo, b as bo, ae as Co, n as ho, o as yo, af as So, C as xo } from "./context-Bk4VnwMB.js";
4
+ import { R as It } from "./index-xh_JY2OQ.js";
5
+ import { _ as se } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
6
6
  const Ve = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
7
7
  function Eo(e) {
8
8
  return e && /* @__PURE__ */ c.isValidElement(e) && e.type === c.Fragment;
@@ -1,6 +1,6 @@
1
- import { a as G } from "./objectWithoutPropertiesLoose-DYizGgyG.js";
1
+ import { _ as G } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
2
2
  import * as r from "react";
3
- import { I as W, c as p, g as D, m as _, K as X, u as K, a as k, o as M, b as J } from "./context-Crxhk7DD.js";
3
+ import { I as W, c as p, g as D, m as _, K as X, u as K, a as k, o as M, b as J } from "./context-Bk4VnwMB.js";
4
4
  var Q = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" }, U = function(t, s) {
5
5
  return /* @__PURE__ */ r.createElement(W, G({}, t, {
6
6
  ref: s,