@cgi-learning-hub/ui 0.0.1-dev.1708959157 → 0.0.1-dev.1708959744

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 (49) hide show
  1. package/dist/{Button-C5ROgtyW.js → Button-CmBnwwn3.js} +2 -2
  2. package/dist/{ButtonBase-C5_-KI-D.js → ButtonBase-Bw43M3TO.js} +2 -2
  3. package/dist/CircularProgress-BCdQaPFF.cjs +28 -0
  4. package/dist/CircularProgress-DRE9BLTL.js +215 -0
  5. package/dist/{Input-CGU1Xw4s.js → Input-Dk-cN0Fb.js} +3 -3
  6. package/dist/{InputBase-D8YZOKOt.js → InputBase-BbXy6VDy.js} +2 -2
  7. package/dist/{Tab-Dgd9jYEq.js → Tab-CWxCqAvH.js} +3 -3
  8. package/dist/{Typography-Di0hlj32.js → Typography-B1bdo7yt.js} +2 -2
  9. package/dist/components/AnotherComponent/AnotherComponent.es.js +3 -3
  10. package/dist/components/BasicButtons/BasicButtons.es.js +4 -4
  11. package/dist/components/Dropzone/Dropzone.es.js +3 -3
  12. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
  13. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +229 -7
  14. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +1 -1
  15. package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
  16. package/dist/components/buttons/DefaultButton/index.es.js +2 -2
  17. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  18. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +4 -4
  19. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  20. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  21. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
  22. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  23. package/dist/components/buttons/index.cjs.js +1 -1
  24. package/dist/components/buttons/index.d.ts +0 -1
  25. package/dist/components/buttons/index.es.js +6 -8
  26. package/dist/components/index.cjs.js +1 -1
  27. package/dist/components/index.es.js +15 -17
  28. package/dist/components/inputs/SearchInput/SearchInput.es.js +4 -4
  29. package/dist/components/inputs/TextInput/TextInput.es.js +6 -6
  30. package/dist/components/lists/FileList/FileList.es.js +1 -1
  31. package/dist/components/lists/FileList/FileListItem.cjs.js +2 -1
  32. package/dist/components/lists/FileList/FileListItem.es.js +201 -25
  33. package/dist/{createSvgIcon-D3HDfwCm.js → createSvgIcon-9NfUaq9H.js} +3 -3
  34. package/dist/{createSvgIcon-D4Mxh_r9.js → createSvgIcon-DLZM3vHe.js} +1 -1
  35. package/dist/{extendSxProp-DCdWqtQk.js → extendSxProp-CVD6j4mA.js} +1 -1
  36. package/dist/index.cjs.js +1 -1
  37. package/dist/index.es.js +15 -17
  38. package/dist/{refType-hKctx4k0.js → refType-CMQbzE37.js} +1 -1
  39. package/dist/{useTheme-BZek68TX.js → useTheme-BSwuVDD3.js} +1 -1
  40. package/dist/{useThemeProps-CHytz5pp.js → useThemeProps-kb_vU-1P.js} +2 -2
  41. package/package.json +1 -1
  42. package/dist/DefaultButton-BD9W4fvr.cjs +0 -28
  43. package/dist/DefaultButton-BlGFPRC7.js +0 -439
  44. package/dist/components/buttons/IconButton/IconButton.cjs.js +0 -2
  45. package/dist/components/buttons/IconButton/IconButton.d.ts +0 -5
  46. package/dist/components/buttons/IconButton/IconButton.es.js +0 -187
  47. package/dist/components/buttons/IconButton/index.cjs.js +0 -1
  48. package/dist/components/buttons/IconButton/index.d.ts +0 -2
  49. package/dist/components/buttons/IconButton/index.es.js +0 -4
@@ -1,7 +1,7 @@
1
- import { g as G, c as F, s as f, r as D, e as r, a as t, l as v, x as U, f as H, _ as A, h, P as n, j as q } from "./useThemeProps-CHytz5pp.js";
1
+ import { g as G, c as F, s as f, r as D, e as r, a as t, x as v, l as U, f as H, _ as A, h, P as n, j as q } from "./useThemeProps-kb_vU-1P.js";
2
2
  import * as p from "react";
3
3
  import { jsx as m, jsxs as J } from "react/jsx-runtime";
4
- import { B as K } from "./ButtonBase-C5_-KI-D.js";
4
+ import { B as K } from "./ButtonBase-Bw43M3TO.js";
5
5
  function Q(o) {
6
6
  return F("MuiButton", o);
7
7
  }
@@ -1,4 +1,4 @@
1
- import { a as Y, _ as ie, P as e, h as x, g as ye, s as re, f as Te, c as Xe, j as Ye } from "./useThemeProps-CHytz5pp.js";
1
+ import { a as Y, _ as ie, P as e, h as x, g as ye, s as re, f as Te, c as Xe, j as Ye } from "./useThemeProps-kb_vU-1P.js";
2
2
  import * as p from "react";
3
3
  import W, { Children as Ae, isValidElement as G, cloneElement as J } from "react";
4
4
  import { jsx as I, jsxs as qe } from "react/jsx-runtime";
@@ -7,7 +7,7 @@ import { _ as He, T as de } from "./TransitionGroupContext-C7wWJ6l7.js";
7
7
  import { keyframes as se } from "@emotion/react";
8
8
  import { a as he } from "./useForkRef-DwN_Iz9R.js";
9
9
  import { u as Ge } from "./useIsFocusVisible-D8ksiuhS.js";
10
- import { r as Je, e as Qe } from "./refType-hKctx4k0.js";
10
+ import { r as Je, e as Qe } from "./refType-CMQbzE37.js";
11
11
  function Ze(t) {
12
12
  if (t === void 0)
13
13
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -0,0 +1,28 @@
1
+ "use strict";const e=require("./useThemeProps-C6ClLEqN.cjs"),j=require("react"),h=require("react/jsx-runtime"),D=require("./refType-dllUCpD8.cjs"),c=require("@emotion/react");function w(r){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(s,t,o.get?o:{enumerable:!0,get:()=>r[t]})}}return s.default=r,Object.freeze(s)}const M=w(j);function N(r){return e.generateUtilityClass("MuiCircularProgress",r)}e.generateUtilityClasses("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const R=["className","color","disableShrink","size","style","thickness","value","variant"];let l=r=>r,T,b,x,C;const i=44,z=c.keyframes(T||(T=l`
2
+ 0% {
3
+ transform: rotate(0deg);
4
+ }
5
+
6
+ 100% {
7
+ transform: rotate(360deg);
8
+ }
9
+ `)),q=c.keyframes(b||(b=l`
10
+ 0% {
11
+ stroke-dasharray: 1px, 200px;
12
+ stroke-dashoffset: 0;
13
+ }
14
+
15
+ 50% {
16
+ stroke-dasharray: 100px, 200px;
17
+ stroke-dashoffset: -15px;
18
+ }
19
+
20
+ 100% {
21
+ stroke-dasharray: 100px, 200px;
22
+ stroke-dashoffset: -125px;
23
+ }
24
+ `)),U=r=>{const{classes:s,variant:t,color:o,disableShrink:p}=r,u={root:["root",t,`color${e.capitalize(o)}`],svg:["svg"],circle:["circle",`circle${e.capitalize(t)}`,p&&"circleDisableShrink"]};return e.composeClasses(u,N,s)},E=e.styled("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(r,s)=>{const{ownerState:t}=r;return[s.root,s[t.variant],s[`color${e.capitalize(t.color)}`]]}})(({ownerState:r,theme:s})=>e._extends({display:"inline-block"},r.variant==="determinate"&&{transition:s.transitions.create("transform")},r.color!=="inherit"&&{color:(s.vars||s).palette[r.color].main}),({ownerState:r})=>r.variant==="indeterminate"&&c.css(x||(x=l`
25
+ animation: ${0} 1.4s linear infinite;
26
+ `),z)),I=e.styled("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(r,s)=>s.svg})({display:"block"}),F=e.styled("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(r,s)=>{const{ownerState:t}=r;return[s.circle,s[`circle${e.capitalize(t.variant)}`],t.disableShrink&&s.circleDisableShrink]}})(({ownerState:r,theme:s})=>e._extends({stroke:"currentColor"},r.variant==="determinate"&&{transition:s.transitions.create("stroke-dashoffset")},r.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:r})=>r.variant==="indeterminate"&&!r.disableShrink&&c.css(C||(C=l`
27
+ animation: ${0} 1.4s ease-in-out infinite;
28
+ `),q)),S=M.forwardRef(function(s,t){const o=e.useThemeProps({props:s,name:"MuiCircularProgress"}),{className:p,color:u="primary",disableShrink:_=!1,size:d=40,style:$,thickness:a=3.6,value:y=0,variant:P="indeterminate"}=o,O=e._objectWithoutPropertiesLoose(o,R),n=e._extends({},o,{color:u,disableShrink:_,size:d,thickness:a,value:y,variant:P}),f=U(n),m={},v={},g={};if(P==="determinate"){const k=2*Math.PI*((i-a)/2);m.strokeDasharray=k.toFixed(3),g["aria-valuenow"]=Math.round(y),m.strokeDashoffset=`${((100-y)/100*k).toFixed(3)}px`,v.transform="rotate(-90deg)"}return h.jsx(E,e._extends({className:e.clsx(f.root,p),style:e._extends({width:d,height:d},v,$),ownerState:n,ref:t,role:"progressbar"},g,O,{children:h.jsx(I,{className:f.svg,ownerState:n,viewBox:`${i/2} ${i/2} ${i} ${i}`,children:h.jsx(F,{className:f.circle,style:m,ownerState:n,cx:i,cy:i,r:(i-a)/2,fill:"none",strokeWidth:a})})}))});process.env.NODE_ENV!=="production"&&(S.propTypes={classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),disableShrink:D.chainPropTypes(e.PropTypes.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),size:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),style:e.PropTypes.object,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),thickness:e.PropTypes.number,value:e.PropTypes.number,variant:e.PropTypes.oneOf(["determinate","indeterminate"])});const K=S;exports.CircularProgress=K;
@@ -0,0 +1,215 @@
1
+ import { c as R, g as j, s as y, e as l, a as i, f as U, _ as z, h as E, P as e, j as I } from "./useThemeProps-kb_vU-1P.js";
2
+ import * as F from "react";
3
+ import { jsx as g } from "react/jsx-runtime";
4
+ import { c as K } from "./refType-CMQbzE37.js";
5
+ import { keyframes as D, css as _ } from "@emotion/react";
6
+ function V(r) {
7
+ return R("MuiCircularProgress", r);
8
+ }
9
+ j("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
10
+ const W = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
11
+ let d = (r) => r, P, S, $, w;
12
+ const o = 44, B = D(P || (P = d`
13
+ 0% {
14
+ transform: rotate(0deg);
15
+ }
16
+
17
+ 100% {
18
+ transform: rotate(360deg);
19
+ }
20
+ `)), G = D(S || (S = d`
21
+ 0% {
22
+ stroke-dasharray: 1px, 200px;
23
+ stroke-dashoffset: 0;
24
+ }
25
+
26
+ 50% {
27
+ stroke-dasharray: 100px, 200px;
28
+ stroke-dashoffset: -15px;
29
+ }
30
+
31
+ 100% {
32
+ stroke-dasharray: 100px, 200px;
33
+ stroke-dashoffset: -125px;
34
+ }
35
+ `)), L = (r) => {
36
+ const {
37
+ classes: s,
38
+ variant: t,
39
+ color: a,
40
+ disableShrink: m
41
+ } = r, u = {
42
+ root: ["root", t, `color${l(a)}`],
43
+ svg: ["svg"],
44
+ circle: ["circle", `circle${l(t)}`, m && "circleDisableShrink"]
45
+ };
46
+ return I(u, V, s);
47
+ }, Y = y("span", {
48
+ name: "MuiCircularProgress",
49
+ slot: "Root",
50
+ overridesResolver: (r, s) => {
51
+ const {
52
+ ownerState: t
53
+ } = r;
54
+ return [s.root, s[t.variant], s[`color${l(t.color)}`]];
55
+ }
56
+ })(({
57
+ ownerState: r,
58
+ theme: s
59
+ }) => i({
60
+ display: "inline-block"
61
+ }, r.variant === "determinate" && {
62
+ transition: s.transitions.create("transform")
63
+ }, r.color !== "inherit" && {
64
+ color: (s.vars || s).palette[r.color].main
65
+ }), ({
66
+ ownerState: r
67
+ }) => r.variant === "indeterminate" && _($ || ($ = d`
68
+ animation: ${0} 1.4s linear infinite;
69
+ `), B)), Z = y("svg", {
70
+ name: "MuiCircularProgress",
71
+ slot: "Svg",
72
+ overridesResolver: (r, s) => s.svg
73
+ })({
74
+ display: "block"
75
+ // Keeps the progress centered
76
+ }), q = y("circle", {
77
+ name: "MuiCircularProgress",
78
+ slot: "Circle",
79
+ overridesResolver: (r, s) => {
80
+ const {
81
+ ownerState: t
82
+ } = r;
83
+ return [s.circle, s[`circle${l(t.variant)}`], t.disableShrink && s.circleDisableShrink];
84
+ }
85
+ })(({
86
+ ownerState: r,
87
+ theme: s
88
+ }) => i({
89
+ stroke: "currentColor"
90
+ }, r.variant === "determinate" && {
91
+ transition: s.transitions.create("stroke-dashoffset")
92
+ }, r.variant === "indeterminate" && {
93
+ // Some default value that looks fine waiting for the animation to kicks in.
94
+ strokeDasharray: "80px, 200px",
95
+ strokeDashoffset: 0
96
+ // Add the unit to fix a Edge 16 and below bug.
97
+ }), ({
98
+ ownerState: r
99
+ }) => r.variant === "indeterminate" && !r.disableShrink && _(w || (w = d`
100
+ animation: ${0} 1.4s ease-in-out infinite;
101
+ `), G)), M = /* @__PURE__ */ F.forwardRef(function(s, t) {
102
+ const a = U({
103
+ props: s,
104
+ name: "MuiCircularProgress"
105
+ }), {
106
+ className: m,
107
+ color: u = "primary",
108
+ disableShrink: T = !1,
109
+ size: f = 40,
110
+ style: N,
111
+ thickness: n = 3.6,
112
+ value: p = 0,
113
+ variant: k = "indeterminate"
114
+ } = a, O = z(a, W), c = i({}, a, {
115
+ color: u,
116
+ disableShrink: T,
117
+ size: f,
118
+ thickness: n,
119
+ value: p,
120
+ variant: k
121
+ }), h = L(c), v = {}, b = {}, C = {};
122
+ if (k === "determinate") {
123
+ const x = 2 * Math.PI * ((o - n) / 2);
124
+ v.strokeDasharray = x.toFixed(3), C["aria-valuenow"] = Math.round(p), v.strokeDashoffset = `${((100 - p) / 100 * x).toFixed(3)}px`, b.transform = "rotate(-90deg)";
125
+ }
126
+ return /* @__PURE__ */ g(Y, i({
127
+ className: E(h.root, m),
128
+ style: i({
129
+ width: f,
130
+ height: f
131
+ }, b, N),
132
+ ownerState: c,
133
+ ref: t,
134
+ role: "progressbar"
135
+ }, C, O, {
136
+ children: /* @__PURE__ */ g(Z, {
137
+ className: h.svg,
138
+ ownerState: c,
139
+ viewBox: `${o / 2} ${o / 2} ${o} ${o}`,
140
+ children: /* @__PURE__ */ g(q, {
141
+ className: h.circle,
142
+ style: v,
143
+ ownerState: c,
144
+ cx: o,
145
+ cy: o,
146
+ r: (o - n) / 2,
147
+ fill: "none",
148
+ strokeWidth: n
149
+ })
150
+ })
151
+ }));
152
+ });
153
+ process.env.NODE_ENV !== "production" && (M.propTypes = {
154
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
155
+ // │ These PropTypes are generated from the TypeScript type definitions. │
156
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
157
+ // └─────────────────────────────────────────────────────────────────────┘
158
+ /**
159
+ * Override or extend the styles applied to the component.
160
+ */
161
+ classes: e.object,
162
+ /**
163
+ * @ignore
164
+ */
165
+ className: e.string,
166
+ /**
167
+ * The color of the component.
168
+ * It supports both default and custom theme colors, which can be added as shown in the
169
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
170
+ * @default 'primary'
171
+ */
172
+ color: e.oneOfType([e.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
173
+ /**
174
+ * If `true`, the shrink animation is disabled.
175
+ * This only works if variant is `indeterminate`.
176
+ * @default false
177
+ */
178
+ 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),
179
+ /**
180
+ * The size of the component.
181
+ * If using a number, the pixel unit is assumed.
182
+ * If using a string, you need to provide the CSS unit, e.g. '3rem'.
183
+ * @default 40
184
+ */
185
+ size: e.oneOfType([e.number, e.string]),
186
+ /**
187
+ * @ignore
188
+ */
189
+ style: e.object,
190
+ /**
191
+ * The system prop that allows defining system overrides as well as additional CSS styles.
192
+ */
193
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
194
+ /**
195
+ * The thickness of the circle.
196
+ * @default 3.6
197
+ */
198
+ thickness: e.number,
199
+ /**
200
+ * The value of the progress indicator for the determinate variant.
201
+ * Value between 0 and 100.
202
+ * @default 0
203
+ */
204
+ value: e.number,
205
+ /**
206
+ * The variant to use.
207
+ * Use indeterminate when there is no progress value.
208
+ * @default 'indeterminate'
209
+ */
210
+ variant: e.oneOf(["determinate", "indeterminate"])
211
+ });
212
+ const X = M;
213
+ export {
214
+ X as C
215
+ };
@@ -1,8 +1,8 @@
1
- import { a, g as j, c as B, s as g, r as U, f as _, _ as w, k as M, P as o, j as S } from "./useThemeProps-CHytz5pp.js";
1
+ import { a, g as j, c as B, s as g, r as U, f as _, _ as w, k as M, P as o, j as S } from "./useThemeProps-kb_vU-1P.js";
2
2
  import * as W from "react";
3
- import { i as E, I as F, r as N, a as X, b as k, c as A } from "./InputBase-D8YZOKOt.js";
3
+ import { i as E, I as F, r as N, a as X, b as k, c as A } from "./InputBase-BbXy6VDy.js";
4
4
  import { jsx as L } from "react/jsx-runtime";
5
- import { r as V } from "./refType-hKctx4k0.js";
5
+ import { r as V } from "./refType-CMQbzE37.js";
6
6
  function q(t) {
7
7
  return B("MuiInput", t);
8
8
  }
@@ -1,10 +1,10 @@
1
- import { P as e, u as Pe, _ as ge, a as c, b as De, T as We, g as Ve, c as _e, s as we, f as Le, h as fe, e as ee, j as je, y as Ue } from "./useThemeProps-CHytz5pp.js";
1
+ import { P as e, u as Pe, _ as ge, a as c, b as De, T as We, g as Ve, c as _e, s as we, f as Le, h as fe, e as ee, j as je, y as Ue } from "./useThemeProps-kb_vU-1P.js";
2
2
  import * as s from "react";
3
3
  import { jsx as R, jsxs as ne } from "react/jsx-runtime";
4
4
  import { a as ve, u as oe } from "./useForkRef-DwN_Iz9R.js";
5
5
  import * as $e from "react-dom";
6
6
  import { o as me, d as Ge } from "./ownerWindow-BoRkeomM.js";
7
- import { e as Ke, r as qe } from "./refType-hKctx4k0.js";
7
+ import { e as Ke, r as qe } from "./refType-CMQbzE37.js";
8
8
  import { Global as Ye } from "@emotion/react";
9
9
  function Ze(n) {
10
10
  return n == null || Object.keys(n).length === 0;
@@ -1,8 +1,8 @@
1
- import { g as _, c as E, s as M, e as R, a as x, f as U, _ as H, h as F, P as i, j as z } from "./useThemeProps-CHytz5pp.js";
1
+ import { g as _, c as E, s as M, e as R, a as x, f as U, _ as H, h as F, P as i, j as z } from "./useThemeProps-kb_vU-1P.js";
2
2
  import * as p from "react";
3
3
  import { jsxs as C } from "react/jsx-runtime";
4
- import { B as D } from "./ButtonBase-C5_-KI-D.js";
5
- import { u as L } from "./createSvgIcon-D3HDfwCm.js";
4
+ import { B as D } from "./ButtonBase-Bw43M3TO.js";
5
+ import { u as L } from "./createSvgIcon-9NfUaq9H.js";
6
6
  function V(o) {
7
7
  return E("MuiTab", o);
8
8
  }
@@ -1,7 +1,7 @@
1
- import { c as W, g as j, s as C, e as f, a as s, f as M, _ as O, h as P, P as t, j as N } from "./useThemeProps-CHytz5pp.js";
1
+ import { c as W, g as j, s as C, e as f, a as s, f as M, _ as O, h as P, P as t, j as N } from "./useThemeProps-kb_vU-1P.js";
2
2
  import * as R from "react";
3
3
  import { jsx as _ } from "react/jsx-runtime";
4
- import { e as U } from "./extendSxProp-DCdWqtQk.js";
4
+ import { e as U } from "./extendSxProp-CVD6j4mA.js";
5
5
  function $(a) {
6
6
  return W("MuiTypography", a);
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { u as r } from "../../useTheme-BZek68TX.js";
3
- import { B as n } from "../../ButtonBase-C5_-KI-D.js";
4
- import { I as m } from "../../Input-CGU1Xw4s.js";
2
+ import { u as r } from "../../useTheme-BSwuVDD3.js";
3
+ import { B as n } from "../../ButtonBase-Bw43M3TO.js";
4
+ import { I as m } from "../../Input-Dk-cN0Fb.js";
5
5
  const i = () => {
6
6
  const o = r();
7
7
  return /* @__PURE__ */ t("div", { children: [
@@ -1,9 +1,9 @@
1
1
  import { jsx as l, jsxs as D } from "react/jsx-runtime";
2
2
  import * as v from "react";
3
- import { m as F, P as e, n as w, a as k, o as b, p as f, q as E, k as _, t as G, _ as M, h as $, v as U, j as A, c as L, w as T, s as j, f as q } from "../../useThemeProps-CHytz5pp.js";
4
- import { u as I } from "../../useTheme-BZek68TX.js";
5
- import { e as W } from "../../extendSxProp-DCdWqtQk.js";
6
- import { B as y } from "../../Button-C5ROgtyW.js";
3
+ import { m as F, P as e, n as w, a as k, o as b, p as f, q as E, k as _, t as G, _ as M, h as $, v as U, j as A, c as L, w as T, s as j, f as q } from "../../useThemeProps-kb_vU-1P.js";
4
+ import { u as I } from "../../useTheme-BSwuVDD3.js";
5
+ import { e as W } from "../../extendSxProp-CVD6j4mA.js";
6
+ import { B as y } from "../../Button-CmBnwwn3.js";
7
7
  const z = F(), H = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"], J = w(), K = z("div", {
8
8
  name: "MuiStack",
9
9
  slot: "Root",
@@ -1,8 +1,8 @@
1
1
  import nr, { jsxs as ve, jsx as T, Fragment as Ue } from "react/jsx-runtime";
2
- import { r as or, i as ir, B as xr } from "../../createSvgIcon-D3HDfwCm.js";
2
+ import { r as or, i as ir, B as xr } from "../../createSvgIcon-9NfUaq9H.js";
3
3
  import Fr, { useMemo as I, useRef as Q, useReducer as _r, useEffect as ye, useCallback as A, forwardRef as jr, useImperativeHandle as Sr, Fragment as Pr } from "react";
4
- import { P as f, s as Tr } from "../../useThemeProps-CHytz5pp.js";
5
- import { T as be } from "../../Typography-Di0hlj32.js";
4
+ import { P as f, s as Tr } from "../../useThemeProps-kb_vU-1P.js";
5
+ import { T as be } from "../../Typography-B1bdo7yt.js";
6
6
  var xe = {}, Ir = ir;
7
7
  Object.defineProperty(xe, "__esModule", {
8
8
  value: !0
@@ -1 +1 @@
1
- "use strict";require("react/jsx-runtime");require("react");require("./DefaultButtonIcon.cjs.js");require("../../../useThemeProps-C6ClLEqN.cjs");const e=require("../../../DefaultButton-BD9W4fvr.cjs");require("../../../useTheme-C-LTLVMt.cjs");module.exports=e.DefaultButton;
1
+ "use strict";const s=require("react/jsx-runtime"),C=require("react"),h=require("./DefaultButtonIcon.cjs.js"),t=require("../../../useThemeProps-C6ClLEqN.cjs"),T=require("../../../Button-wMPAZpnO.cjs"),$=require("../../../useId-Cw0TtD-8.cjs"),j=require("../../../refType-dllUCpD8.cjs"),_=require("../../../CircularProgress-BCdQaPFF.cjs"),E=require("../../../useTheme-C-LTLVMt.cjs");function O(o){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const i in o)if(i!=="default"){const a=Object.getOwnPropertyDescriptor(o,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:()=>o[i]})}}return n.default=o,Object.freeze(n)}const L=O(C);function q(o){return t.generateUtilityClass("MuiLoadingButton",o)}const R=t.generateUtilityClasses("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),e=R,z=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],M=o=>{const{loading:n,loadingPosition:i,classes:a}=o,r={root:["root",n&&"loading"],startIcon:[n&&`startIconLoading${t.capitalize(i)}`],endIcon:[n&&`endIconLoading${t.capitalize(i)}`],loadingIndicator:["loadingIndicator",n&&`loadingIndicator${t.capitalize(i)}`]},d=t.composeClasses(r,q,a);return t._extends({},a,d)},W=o=>o!=="ownerState"&&o!=="theme"&&o!=="sx"&&o!=="as"&&o!=="classes",D=t.styled(T.Button,{shouldForwardProp:o=>W(o)||o==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(o,n)=>[n.root,n.startIconLoadingStart&&{[`& .${e.startIconLoadingStart}`]:n.startIconLoadingStart},n.endIconLoadingEnd&&{[`& .${e.endIconLoadingEnd}`]:n.endIconLoadingEnd}]})(({ownerState:o,theme:n})=>t._extends({[`& .${e.startIconLoadingStart}, & .${e.endIconLoadingEnd}`]:{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0}},o.loadingPosition==="center"&&{transition:n.transitions.create(["background-color","box-shadow","border-color"],{duration:n.transitions.duration.short}),[`&.${e.loading}`]:{color:"transparent"}},o.loadingPosition==="start"&&o.fullWidth&&{[`& .${e.startIconLoadingStart}, & .${e.endIconLoadingEnd}`]:{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0,marginRight:-8}},o.loadingPosition==="end"&&o.fullWidth&&{[`& .${e.startIconLoadingStart}, & .${e.endIconLoadingEnd}`]:{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0,marginLeft:-8}})),U=t.styled("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(o,n)=>{const{ownerState:i}=o;return[n.loadingIndicator,n[`loadingIndicator${t.capitalize(i.loadingPosition)}`]]}})(({theme:o,ownerState:n})=>t._extends({position:"absolute",visibility:"visible",display:"flex"},n.loadingPosition==="start"&&(n.variant==="outlined"||n.variant==="contained")&&{left:n.size==="small"?10:14},n.loadingPosition==="start"&&n.variant==="text"&&{left:6},n.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(o.vars||o).palette.action.disabled},n.loadingPosition==="end"&&(n.variant==="outlined"||n.variant==="contained")&&{right:n.size==="small"?10:14},n.loadingPosition==="end"&&n.variant==="text"&&{right:6},n.loadingPosition==="start"&&n.fullWidth&&{position:"relative",left:-10},n.loadingPosition==="end"&&n.fullWidth&&{position:"relative",right:-10})),v=L.forwardRef(function(n,i){const a=L.useContext(T.ButtonGroupContext),r=t.resolveProps(a,n),d=t.useThemeProps({props:r,name:"MuiLoadingButton"}),{children:u,disabled:g=!1,id:x,loading:c=!1,loadingIndicator:p,loadingPosition:m="center",variant:P="text"}=d,B=t._objectWithoutPropertiesLoose(d,z),I=$.useId(x),f=p??s.jsx(_.CircularProgress,{"aria-labelledby":I,color:"inherit",size:16}),l=t._extends({},d,{disabled:g,loading:c,loadingIndicator:f,loadingPosition:m,variant:P}),y=M(l),b=c?s.jsx(U,{className:y.loadingIndicator,ownerState:l,children:f}):null;return s.jsxs(D,t._extends({disabled:g||c,id:I,ref:i},B,{variant:P,classes:y,ownerState:l,children:[l.loadingPosition==="end"?u:b,l.loadingPosition==="end"?b:u]}))});process.env.NODE_ENV!=="production"&&(v.propTypes={children:t.PropTypes.node,classes:t.PropTypes.object,disabled:t.PropTypes.bool,id:t.PropTypes.string,loading:t.PropTypes.bool,loadingIndicator:t.PropTypes.node,loadingPosition:j.chainPropTypes(t.PropTypes.oneOf(["start","end","center"]),o=>o.loadingPosition==="start"&&!o.startIcon?new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.'):o.loadingPosition==="end"&&!o.endIcon?new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.'):null),sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),variant:t.PropTypes.oneOfType([t.PropTypes.oneOf(["contained","outlined","text"]),t.PropTypes.string])});const N=v,k=t.styled(N,{shouldForwardProp:o=>o!=="contentColor"&&o!=="hoverColor"})(({contentColor:o,hoverColor:n,theme:i})=>({justifyContent:"center",alignItems:"center",columnGap:8,minHeight:38,paddingLeft:12,paddingRight:12,textTransform:"none",color:o,borderColor:o,borderRadius:5,borderWidth:2,"&:hover":{color:i.palette.common.white,backgroundColor:n,borderColor:n,borderWidth:2}})),F=({icon:o,text:n,...i})=>{const a=E.useTheme(),r=i.contentColor??a.palette.primary.main;return s.jsxs(k,{...i,variant:"outlined",contentColor:r,hoverColor:i.hoverColor??r,children:[(o==null?void 0:o.position)==="left"?s.jsx(h,{...o}):null,n,(o==null?void 0:o.position)==="right"?s.jsx(h,{...o}):null]})};module.exports=F;
@@ -1,9 +1,231 @@
1
- import "react/jsx-runtime";
2
- import "react";
3
- import "./DefaultButtonIcon.es.js";
4
- import "../../../useThemeProps-CHytz5pp.js";
5
- import { D as e } from "../../../DefaultButton-BlGFPRC7.js";
6
- import "../../../useTheme-BZek68TX.js";
1
+ import { jsx as g, jsxs as y } from "react/jsx-runtime";
2
+ import * as C from "react";
3
+ import B from "./DefaultButtonIcon.es.js";
4
+ import { g as R, c as j, s as f, a as l, e as c, l as M, f as O, _ as W, P as t, j as U } from "../../../useThemeProps-kb_vU-1P.js";
5
+ import { B as _, a as z } from "../../../Button-CmBnwwn3.js";
6
+ import { u as D } from "../../../useId-BW-oWmul.js";
7
+ import { c as F } from "../../../refType-CMQbzE37.js";
8
+ import { C as N } from "../../../CircularProgress-DRE9BLTL.js";
9
+ import { u as k } from "../../../useTheme-BSwuVDD3.js";
10
+ function G(n) {
11
+ return j("MuiLoadingButton", n);
12
+ }
13
+ const H = R("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), a = H, V = ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"], q = (n) => {
14
+ const {
15
+ loading: o,
16
+ loadingPosition: i,
17
+ classes: r
18
+ } = n, s = {
19
+ root: ["root", o && "loading"],
20
+ startIcon: [o && `startIconLoading${c(i)}`],
21
+ endIcon: [o && `endIconLoading${c(i)}`],
22
+ loadingIndicator: ["loadingIndicator", o && `loadingIndicator${c(i)}`]
23
+ }, d = U(s, G, r);
24
+ return l({}, r, d);
25
+ }, A = (n) => n !== "ownerState" && n !== "theme" && n !== "sx" && n !== "as" && n !== "classes", J = f(_, {
26
+ shouldForwardProp: (n) => A(n) || n === "classes",
27
+ name: "MuiLoadingButton",
28
+ slot: "Root",
29
+ overridesResolver: (n, o) => [o.root, o.startIconLoadingStart && {
30
+ [`& .${a.startIconLoadingStart}`]: o.startIconLoadingStart
31
+ }, o.endIconLoadingEnd && {
32
+ [`& .${a.endIconLoadingEnd}`]: o.endIconLoadingEnd
33
+ }]
34
+ })(({
35
+ ownerState: n,
36
+ theme: o
37
+ }) => l({
38
+ [`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
39
+ transition: o.transitions.create(["opacity"], {
40
+ duration: o.transitions.duration.short
41
+ }),
42
+ opacity: 0
43
+ }
44
+ }, n.loadingPosition === "center" && {
45
+ transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
46
+ duration: o.transitions.duration.short
47
+ }),
48
+ [`&.${a.loading}`]: {
49
+ color: "transparent"
50
+ }
51
+ }, n.loadingPosition === "start" && n.fullWidth && {
52
+ [`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
53
+ transition: o.transitions.create(["opacity"], {
54
+ duration: o.transitions.duration.short
55
+ }),
56
+ opacity: 0,
57
+ marginRight: -8
58
+ }
59
+ }, n.loadingPosition === "end" && n.fullWidth && {
60
+ [`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
61
+ transition: o.transitions.create(["opacity"], {
62
+ duration: o.transitions.duration.short
63
+ }),
64
+ opacity: 0,
65
+ marginLeft: -8
66
+ }
67
+ })), K = f("span", {
68
+ name: "MuiLoadingButton",
69
+ slot: "LoadingIndicator",
70
+ overridesResolver: (n, o) => {
71
+ const {
72
+ ownerState: i
73
+ } = n;
74
+ return [o.loadingIndicator, o[`loadingIndicator${c(i.loadingPosition)}`]];
75
+ }
76
+ })(({
77
+ theme: n,
78
+ ownerState: o
79
+ }) => l({
80
+ position: "absolute",
81
+ visibility: "visible",
82
+ display: "flex"
83
+ }, o.loadingPosition === "start" && (o.variant === "outlined" || o.variant === "contained") && {
84
+ left: o.size === "small" ? 10 : 14
85
+ }, o.loadingPosition === "start" && o.variant === "text" && {
86
+ left: 6
87
+ }, o.loadingPosition === "center" && {
88
+ left: "50%",
89
+ transform: "translate(-50%)",
90
+ color: (n.vars || n).palette.action.disabled
91
+ }, o.loadingPosition === "end" && (o.variant === "outlined" || o.variant === "contained") && {
92
+ right: o.size === "small" ? 10 : 14
93
+ }, o.loadingPosition === "end" && o.variant === "text" && {
94
+ right: 6
95
+ }, o.loadingPosition === "start" && o.fullWidth && {
96
+ position: "relative",
97
+ left: -10
98
+ }, o.loadingPosition === "end" && o.fullWidth && {
99
+ position: "relative",
100
+ right: -10
101
+ })), x = /* @__PURE__ */ C.forwardRef(function(o, i) {
102
+ const r = C.useContext(z), s = M(r, o), d = O({
103
+ props: s,
104
+ name: "MuiLoadingButton"
105
+ }), {
106
+ children: I,
107
+ disabled: p = !1,
108
+ id: $,
109
+ loading: u = !1,
110
+ loadingIndicator: h,
111
+ loadingPosition: E = "center",
112
+ variant: m = "text"
113
+ } = d, T = W(d, V), L = D($), P = h ?? /* @__PURE__ */ g(N, {
114
+ "aria-labelledby": L,
115
+ color: "inherit",
116
+ size: 16
117
+ }), e = l({}, d, {
118
+ disabled: p,
119
+ loading: u,
120
+ loadingIndicator: P,
121
+ loadingPosition: E,
122
+ variant: m
123
+ }), b = q(e), v = u ? /* @__PURE__ */ g(K, {
124
+ className: b.loadingIndicator,
125
+ ownerState: e,
126
+ children: P
127
+ }) : null;
128
+ return /* @__PURE__ */ y(J, l({
129
+ disabled: p || u,
130
+ id: L,
131
+ ref: i
132
+ }, T, {
133
+ variant: m,
134
+ classes: b,
135
+ ownerState: e,
136
+ children: [e.loadingPosition === "end" ? I : v, e.loadingPosition === "end" ? v : I]
137
+ }));
138
+ });
139
+ process.env.NODE_ENV !== "production" && (x.propTypes = {
140
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
141
+ // │ These PropTypes are generated from the TypeScript type definitions. │
142
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
143
+ // └─────────────────────────────────────────────────────────────────────┘
144
+ /**
145
+ * The content of the component.
146
+ */
147
+ children: t.node,
148
+ /**
149
+ * Override or extend the styles applied to the component.
150
+ */
151
+ classes: t.object,
152
+ /**
153
+ * If `true`, the component is disabled.
154
+ * @default false
155
+ */
156
+ disabled: t.bool,
157
+ /**
158
+ * @ignore
159
+ */
160
+ id: t.string,
161
+ /**
162
+ * If `true`, the loading indicator is shown and the button becomes disabled.
163
+ * @default false
164
+ */
165
+ loading: t.bool,
166
+ /**
167
+ * Element placed before the children if the button is in loading state.
168
+ * The node should contain an element with `role="progressbar"` with an accessible name.
169
+ * By default we render a `CircularProgress` that is labelled by the button itself.
170
+ * @default <CircularProgress color="inherit" size={16} />
171
+ */
172
+ loadingIndicator: t.node,
173
+ /**
174
+ * The loading indicator can be positioned on the start, end, or the center of the button.
175
+ * @default 'center'
176
+ */
177
+ loadingPosition: F(t.oneOf(["start", "end", "center"]), (n) => n.loadingPosition === "start" && !n.startIcon ? new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.') : n.loadingPosition === "end" && !n.endIcon ? new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.') : null),
178
+ /**
179
+ * The system prop that allows defining system overrides as well as additional CSS styles.
180
+ */
181
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
182
+ /**
183
+ * The variant to use.
184
+ * @default 'text'
185
+ */
186
+ variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
187
+ });
188
+ const Q = x, X = f(Q, {
189
+ shouldForwardProp: (n) => n !== "contentColor" && n !== "hoverColor"
190
+ })(({ contentColor: n, hoverColor: o, theme: i }) => ({
191
+ justifyContent: "center",
192
+ alignItems: "center",
193
+ columnGap: 8,
194
+ minHeight: 38,
195
+ paddingLeft: 12,
196
+ paddingRight: 12,
197
+ textTransform: "none",
198
+ color: n,
199
+ borderColor: n,
200
+ borderRadius: 5,
201
+ borderWidth: 2,
202
+ "&:hover": {
203
+ color: i.palette.common.white,
204
+ backgroundColor: o,
205
+ borderColor: o,
206
+ borderWidth: 2
207
+ }
208
+ })), ao = ({
209
+ icon: n,
210
+ text: o,
211
+ ...i
212
+ }) => {
213
+ const r = k(), s = i.contentColor ?? r.palette.primary.main;
214
+ return /* @__PURE__ */ y(
215
+ X,
216
+ {
217
+ ...i,
218
+ variant: "outlined",
219
+ contentColor: s,
220
+ hoverColor: i.hoverColor ?? s,
221
+ children: [
222
+ (n == null ? void 0 : n.position) === "left" ? /* @__PURE__ */ g(B, { ...n }) : null,
223
+ o,
224
+ (n == null ? void 0 : n.position) === "right" ? /* @__PURE__ */ g(B, { ...n }) : null
225
+ ]
226
+ }
227
+ );
228
+ };
7
229
  export {
8
- e as default
230
+ ao as default
9
231
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import * as S from "react";
3
- import { c as v, g as z, s as b, e as t, f as I, _ as x, a as f, h as T, P as e, j as N } from "../../../useThemeProps-CHytz5pp.js";
3
+ import { c as v, g as z, s as b, e as t, f as I, _ as x, a as f, h as T, P as e, j as N } from "../../../useThemeProps-kb_vU-1P.js";
4
4
  function C(o) {
5
5
  return v("MuiIcon", o);
6
6
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../DefaultButton-BD9W4fvr.cjs");exports.DefaultButton=t.DefaultButton;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./DefaultButton.cjs.js");exports.DefaultButton=t;
@@ -1,4 +1,4 @@
1
- import { D as a } from "../../../DefaultButton-BlGFPRC7.js";
1
+ import { default as e } from "./DefaultButton.es.js";
2
2
  export {
3
- a as DefaultButton
3
+ e as DefaultButton
4
4
  };
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime");require("react");const o=require("../../../DefaultButton-BD9W4fvr.cjs"),u=require("../../../useTheme-C-LTLVMt.cjs"),n=t=>{const e=u.useTheme();return r.jsx(o.DefaultButton,{contentColor:e.palette.primary.main,hoverColor:e.palette.primary.dark,...t})};module.exports=n;
1
+ "use strict";const r=require("react/jsx-runtime");require("react");const o=require("../DefaultButton/DefaultButton.cjs.js"),n=require("../../../useTheme-C-LTLVMt.cjs"),u=t=>{const e=n.useTheme();return r.jsx(o,{contentColor:e.palette.primary.main,hoverColor:e.palette.primary.dark,...t})};module.exports=u;