@amateescu/portal-ui-components 0.0.23 → 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 (51) 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 +33 -30
  33. package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +33 -0
  34. package/dist/portal-utils/formatters.js +68 -0
  35. package/dist/portal-utils/index.d.ts +1 -0
  36. package/dist/portal-utils/index.js +13 -10
  37. package/dist/portal-utils/loggerService.d.ts +12 -0
  38. package/dist/portal-utils/loggerService.js +16 -0
  39. package/dist/useSlot-kDVPuVrn.js +431 -0
  40. package/package.json +38 -38
  41. package/dist/Box-CmKt1PwF.js +0 -68
  42. package/dist/Button-BT8r3F_d.js +0 -355
  43. package/dist/ButtonBase-By486Sca.js +0 -966
  44. package/dist/PurePanel-CfZ1n-M8.js +0 -4782
  45. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  46. package/dist/createSvgIcon-B8ya7kb4.js +0 -250
  47. package/dist/generateUtilityClasses-Bhjgm_6-.js +0 -3270
  48. package/dist/index-1vDmwq0E.js +0 -19089
  49. package/dist/index-DsP9yT3s.js +0 -1551
  50. package/dist/objectWithoutPropertiesLoose-CIT-1_kH.js +0 -227
  51. package/dist/useId-DbfH3PlN.js +0 -5397
@@ -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-CshNo3IR.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
+ };