@amateescu/portal-ui-components 0.0.28 → 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.d.ts +1 -0
  14. package/dist/components/CustomButton/CustomButton.stories.js +21 -7
  15. package/dist/components/CustomFooter/CustomFooter.js +1 -1
  16. package/dist/components/CustomPagination/CustomPagination.js +484 -372
  17. package/dist/components/ErrorModal/ErrorModal.js +1 -1
  18. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  19. package/dist/components/InfoModal/InfoModal.js +1 -1
  20. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  21. package/dist/components/KpiCard/KpiCard.js +355 -351
  22. package/dist/components/LoadingAnimation/LoadingAnimation.js +6 -215
  23. package/dist/components/Login/Login.js +4638 -3844
  24. package/dist/components/Login/Login.stories.js +15693 -14785
  25. package/dist/components/SideMenu/SideMenu.js +1 -1
  26. package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
  27. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  28. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  29. package/dist/components/index.js +1 -1
  30. package/dist/{context-Crxhk7DD.js → context-Bk4VnwMB.js} +7 -7
  31. package/dist/createSimplePaletteValueFilter-rq2_biPF.js +3443 -0
  32. package/dist/createSvgIcon-jB7EUYpq.js +248 -0
  33. package/dist/{index-BxiDYyNJ.js → index-DLbr86ak.js} +511 -513
  34. package/dist/{index-DpDv68WZ.js → index-xh_JY2OQ.js} +1 -1
  35. package/dist/main.js +1 -1
  36. package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +33 -0
  37. package/dist/useSlot-CT4096EK.js +188 -0
  38. package/package.json +31 -31
  39. package/dist/Box-C1OwXVV-.js +0 -68
  40. package/dist/Button-CIvE-fcO.js +0 -355
  41. package/dist/ButtonBase-BeQnmGXr.js +0 -966
  42. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  43. package/dist/createSvgIcon-Db107M0j.js +0 -250
  44. package/dist/generateUtilityClasses-DY-qyzNG.js +0 -3427
  45. package/dist/objectWithoutPropertiesLoose-DYizGgyG.js +0 -46
@@ -1,218 +1,9 @@
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, {}) });
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { B as i } from "../../Box-ZFRI9JCw.js";
3
+ import { C as t } from "../../CircularProgress-D6RyizwS.js";
4
+ function m() {
5
+ return /* @__PURE__ */ r(i, { display: "flex", justifyContent: "center", alignItems: "center", minHeight: "100%", children: /* @__PURE__ */ r(t, {}) });
215
6
  }
216
7
  export {
217
- er as LoadingAnimation
8
+ m as LoadingAnimation
218
9
  };