@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,247 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
1
- function e(t) {
2
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
- }
4
- export {
5
- e as g
6
- };