@amateescu/portal-ui-components 0.0.7-beta0 → 0.0.7-beta1

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.
@@ -1,9 +1,10 @@
1
1
  import { a as m, _ as ne } from "./index-kNWC7pFF.js";
2
2
  import * as c from "react";
3
3
  import G, { Children as it, isValidElement as ee, cloneElement as te } from "react";
4
- import { P as n, n as rt, c as M, g as fe, u as he, k as A, m as be, h as Ne, j as $e, r as st, i as B, o as at, p as Z } from "./generateUtilityClasses-sdN6xOVt.js";
4
+ import { P as n, k as rt, c as M, g as fe, u as he, j as A, f as Ne, i as $e, r as st, h as B, l as at, m as Z } from "./generateUtilityClasses-yRWzVVZS.js";
5
5
  import { jsx as _, jsxs as Ve } from "react/jsx-runtime";
6
6
  import { _ as lt, a as ct } from "./assertThisInitialized-BUtkG-md.js";
7
+ import { keyframes as be } from "@emotion/react";
7
8
  const ut = n.oneOfType([n.func, n.object]);
8
9
  function pt(e) {
9
10
  const {
@@ -1,5 +1,6 @@
1
1
  import * as $ from "react";
2
- import { d as N, f as R, h as E, g as U, u as z, i as l, j as I, k as g, l as w, m as O, c as F, P as s, n as K } from "./generateUtilityClasses-sdN6xOVt.js";
2
+ import { ThemeContext as N, css as w, keyframes as O } from "@emotion/react";
3
+ import { d as R, f as E, g as U, u as z, h as l, i as I, j as g, c as F, P as t, k as K } from "./generateUtilityClasses-yRWzVVZS.js";
3
4
  import { _ as V, a as i } from "./index-kNWC7pFF.js";
4
5
  import { jsx as y } from "react/jsx-runtime";
5
6
  function W(e) {
@@ -10,7 +11,7 @@ function B(e = null) {
10
11
  return !r || W(r) ? e : r;
11
12
  }
12
13
  const G = R();
13
- function te(e = G) {
14
+ function oe(e = G) {
14
15
  return B(e);
15
16
  }
16
17
  function L(e) {
@@ -19,7 +20,7 @@ function L(e) {
19
20
  U("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
20
21
  const Y = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
21
22
  let u = (e) => e, P, S, T, D;
22
- const a = 44, Z = O(P || (P = u`
23
+ const o = 44, Z = O(P || (P = u`
23
24
  0% {
24
25
  transform: rotate(0deg);
25
26
  }
@@ -45,13 +46,13 @@ const a = 44, Z = O(P || (P = u`
45
46
  `)), A = (e) => {
46
47
  const {
47
48
  classes: r,
48
- variant: t,
49
- color: o,
49
+ variant: s,
50
+ color: a,
50
51
  disableShrink: m
51
52
  } = e, d = {
52
- root: ["root", t, `color${l(o)}`],
53
+ root: ["root", s, `color${l(a)}`],
53
54
  svg: ["svg"],
54
- circle: ["circle", `circle${l(t)}`, m && "circleDisableShrink"]
55
+ circle: ["circle", `circle${l(s)}`, m && "circleDisableShrink"]
55
56
  };
56
57
  return I(d, L, r);
57
58
  }, H = g("span", {
@@ -59,9 +60,9 @@ const a = 44, Z = O(P || (P = u`
59
60
  slot: "Root",
60
61
  overridesResolver: (e, r) => {
61
62
  const {
62
- ownerState: t
63
+ ownerState: s
63
64
  } = e;
64
- return [r.root, r[t.variant], r[`color${l(t.color)}`]];
65
+ return [r.root, r[s.variant], r[`color${l(s.color)}`]];
65
66
  }
66
67
  })(({
67
68
  ownerState: e,
@@ -88,9 +89,9 @@ const a = 44, Z = O(P || (P = u`
88
89
  slot: "Circle",
89
90
  overridesResolver: (e, r) => {
90
91
  const {
91
- ownerState: t
92
+ ownerState: s
92
93
  } = e;
93
- return [r.circle, r[`circle${l(t.variant)}`], t.disableShrink && r.circleDisableShrink];
94
+ return [r.circle, r[`circle${l(s.variant)}`], s.disableShrink && r.circleDisableShrink];
94
95
  }
95
96
  })(({
96
97
  ownerState: e,
@@ -108,8 +109,8 @@ const a = 44, Z = O(P || (P = u`
108
109
  ownerState: e
109
110
  }) => e.variant === "indeterminate" && !e.disableShrink && w(D || (D = u`
110
111
  animation: ${0} 1.4s ease-in-out infinite;
111
- `), q)), X = /* @__PURE__ */ $.forwardRef(function(r, t) {
112
- const o = z({
112
+ `), q)), X = /* @__PURE__ */ $.forwardRef(function(r, s) {
113
+ const a = z({
113
114
  props: r,
114
115
  name: "MuiCircularProgress"
115
116
  }), {
@@ -121,7 +122,7 @@ const a = 44, Z = O(P || (P = u`
121
122
  thickness: n = 3.6,
122
123
  value: h = 0,
123
124
  variant: k = "indeterminate"
124
- } = o, M = V(o, Y), c = i({}, o, {
125
+ } = a, M = V(a, Y), c = i({}, a, {
125
126
  color: d,
126
127
  disableShrink: _,
127
128
  size: f,
@@ -130,7 +131,7 @@ const a = 44, Z = O(P || (P = u`
130
131
  variant: k
131
132
  }), p = A(c), v = {}, b = {}, x = {};
132
133
  if (k === "determinate") {
133
- const C = 2 * Math.PI * ((a - n) / 2);
134
+ const C = 2 * Math.PI * ((o - n) / 2);
134
135
  v.strokeDasharray = C.toFixed(3), x["aria-valuenow"] = Math.round(h), v.strokeDashoffset = `${((100 - h) / 100 * C).toFixed(3)}px`, b.transform = "rotate(-90deg)";
135
136
  }
136
137
  return /* @__PURE__ */ y(H, i({
@@ -140,20 +141,20 @@ const a = 44, Z = O(P || (P = u`
140
141
  height: f
141
142
  }, b, j),
142
143
  ownerState: c,
143
- ref: t,
144
+ ref: s,
144
145
  role: "progressbar"
145
146
  }, x, M, {
146
147
  children: /* @__PURE__ */ y(J, {
147
148
  className: p.svg,
148
149
  ownerState: c,
149
- viewBox: `${a / 2} ${a / 2} ${a} ${a}`,
150
+ viewBox: `${o / 2} ${o / 2} ${o} ${o}`,
150
151
  children: /* @__PURE__ */ y(Q, {
151
152
  className: p.circle,
152
153
  style: v,
153
154
  ownerState: c,
154
- cx: a,
155
- cy: a,
156
- r: (a - n) / 2,
155
+ cx: o,
156
+ cy: o,
157
+ r: (o - n) / 2,
157
158
  fill: "none",
158
159
  strokeWidth: n
159
160
  })
@@ -168,58 +169,58 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
168
169
  /**
169
170
  * Override or extend the styles applied to the component.
170
171
  */
171
- classes: s.object,
172
+ classes: t.object,
172
173
  /**
173
174
  * @ignore
174
175
  */
175
- className: s.string,
176
+ className: t.string,
176
177
  /**
177
178
  * The color of the component.
178
179
  * It supports both default and custom theme colors, which can be added as shown in the
179
180
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
180
181
  * @default 'primary'
181
182
  */
182
- color: s.oneOfType([s.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), s.string]),
183
+ color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
183
184
  /**
184
185
  * If `true`, the shrink animation is disabled.
185
186
  * This only works if variant is `indeterminate`.
186
187
  * @default false
187
188
  */
188
- disableShrink: K(s.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),
189
+ disableShrink: K(t.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),
189
190
  /**
190
191
  * The size of the component.
191
192
  * If using a number, the pixel unit is assumed.
192
193
  * If using a string, you need to provide the CSS unit, for example '3rem'.
193
194
  * @default 40
194
195
  */
195
- size: s.oneOfType([s.number, s.string]),
196
+ size: t.oneOfType([t.number, t.string]),
196
197
  /**
197
198
  * @ignore
198
199
  */
199
- style: s.object,
200
+ style: t.object,
200
201
  /**
201
202
  * The system prop that allows defining system overrides as well as additional CSS styles.
202
203
  */
203
- sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object]),
204
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
204
205
  /**
205
206
  * The thickness of the circle.
206
207
  * @default 3.6
207
208
  */
208
- thickness: s.number,
209
+ thickness: t.number,
209
210
  /**
210
211
  * The value of the progress indicator for the determinate variant.
211
212
  * Value between 0 and 100.
212
213
  * @default 0
213
214
  */
214
- value: s.number,
215
+ value: t.number,
215
216
  /**
216
217
  * The variant to use.
217
218
  * Use indeterminate when there is no progress value.
218
219
  * @default 'indeterminate'
219
220
  */
220
- variant: s.oneOf(["determinate", "indeterminate"])
221
+ variant: t.oneOf(["determinate", "indeterminate"])
221
222
  });
222
223
  export {
223
224
  X as C,
224
- te as u
225
+ oe as u
225
226
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { B as a } from "../../Button-BgbkoKxR.js";
2
+ import { B as a } from "../../Button-DL5BII6f.js";
3
3
  const d = ({ content: o, height: r = "40px", width: t = "120px", direction: n = "left", ...e }) => /* @__PURE__ */ i(
4
4
  a,
5
5
  {
@@ -1,8 +1,8 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { s as y, a as C, e as T, c as N, g, C as B, b as P, T as _, P as e } from "../../generateUtilityClasses-sdN6xOVt.js";
2
+ import { s as y, a as C, e as T, c as N, g, C as B, b as P, T as _, P as e } from "../../generateUtilityClasses-yRWzVVZS.js";
3
3
  import { _ as b, a as j } from "../../index-kNWC7pFF.js";
4
4
  import * as v from "react";
5
- import { u as E, C as I } from "../../CircularProgress-BsBIRj7X.js";
5
+ import { u as E, C as I } from "../../CircularProgress-CSYOC8B8.js";
6
6
  const O = ["className", "component"];
7
7
  function M(i = {}) {
8
8
  const {