@cgi-learning-hub/ui 1.2.0-dev.1725006670 → 1.2.0-dev.1725450842

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 (161) hide show
  1. package/dist/{Box-BJvmuM0Y.js → Box-B6xx2g1Y.js} +32 -30
  2. package/dist/Box-P3WhGgSH.cjs +1 -0
  3. package/dist/Button-BlSyZq45.js +454 -0
  4. package/dist/Button-CZO3I5oS.cjs +1 -0
  5. package/dist/ButtonBase-C-IxZjoy.cjs +75 -0
  6. package/dist/ButtonBase-Mr4S_NG8.js +890 -0
  7. package/dist/CircularProgress-D1dO7At_.cjs +28 -0
  8. package/dist/CircularProgress-bltZBt14.js +251 -0
  9. package/dist/DatePicker-B8FaO6N3.cjs +19 -0
  10. package/dist/{DatePicker-xLT3dl8F.js → DatePicker-BM4qYpPt.js} +3809 -3722
  11. package/dist/DefaultButton-BbTf0WK8.cjs +1 -0
  12. package/dist/{DefaultButton-CKY6tuni.js → DefaultButton-Crs2UW2V.js} +95 -75
  13. package/dist/DefaultPropsProvider-BDdV3S11.js +468 -0
  14. package/dist/DefaultPropsProvider-DwweZ7qj.cjs +17 -0
  15. package/dist/IconButton-8pelIq63.cjs +2 -0
  16. package/dist/IconButton-DeGwRNnI.js +239 -0
  17. package/dist/InputAdornment-BhrFtLIz.cjs +1 -0
  18. package/dist/{InputAdornment-zaw7AFWU.js → InputAdornment-Dd24Ymt-.js} +81 -65
  19. package/dist/InputBase-BUzAEUpC.js +802 -0
  20. package/dist/InputBase-OefmcFzX.cjs +3 -0
  21. package/dist/Stack-BnpqP5GW.cjs +1 -0
  22. package/dist/{Stack-Dlgk5t_M.js → Stack-D_hQlRGm.js} +62 -60
  23. package/dist/Tabs-BqbRbRmo.cjs +4 -0
  24. package/dist/Tabs-D0SZWveL.js +1222 -0
  25. package/dist/TextField-DXEOL4uC.cjs +12 -0
  26. package/dist/{TextField-DG1754qQ.js → TextField-cX-VBTii.js} +3033 -2408
  27. package/dist/{Tooltip-BjTwTSrD.js → Tooltip-B3_y8U1N.js} +4682 -3406
  28. package/dist/Tooltip-DiglEjt6.cjs +100 -0
  29. package/dist/TransitionGroupContext-LWgXgADB.cjs +1 -0
  30. package/dist/TransitionGroupContext-SbAHUhOx.js +64 -0
  31. package/dist/Typography-DWgJpyZG.cjs +1 -0
  32. package/dist/Typography-kwaQt8VQ.js +258 -0
  33. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  34. package/dist/components/DatePicker/DatePicker.es.js +3 -3
  35. package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
  36. package/dist/components/DatePicker/DatePicker.stories.es.js +3 -3
  37. package/dist/components/DatePicker/index.cjs.js +1 -1
  38. package/dist/components/DatePicker/index.es.js +1 -1
  39. package/dist/components/DefaultButton/DefaultButton.cjs.js +1 -1
  40. package/dist/components/DefaultButton/DefaultButton.es.js +2 -2
  41. package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  42. package/dist/components/DefaultButton/DefaultButtonIcon.es.js +108 -67
  43. package/dist/components/DefaultButton/index.cjs.js +1 -1
  44. package/dist/components/DefaultButton/index.es.js +1 -1
  45. package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
  46. package/dist/components/Dropzone/Dropzone.es.js +8 -8
  47. package/dist/components/FileList/FileList.cjs.js +1 -1
  48. package/dist/components/FileList/FileList.es.js +1 -1
  49. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  50. package/dist/components/FileList/FileListItem.es.js +10 -11
  51. package/dist/components/IconButton.stories.cjs.js +1 -1
  52. package/dist/components/IconButton.stories.es.js +13 -14
  53. package/dist/components/Loader/Loader.cjs.js +1 -1
  54. package/dist/components/Loader/Loader.es.js +1 -1
  55. package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
  56. package/dist/components/PaperHeader/PaperHeader.d.ts +3 -1
  57. package/dist/components/PaperHeader/PaperHeader.es.js +26 -28
  58. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
  59. package/dist/components/PaperHeader/PaperHeader.stories.es.js +7 -7
  60. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  61. package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
  62. package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
  63. package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
  64. package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  65. package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  66. package/dist/components/QueryError/QueryError.cjs.js +1 -1
  67. package/dist/components/QueryError/QueryError.es.js +1 -1
  68. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  69. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  70. package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -1
  71. package/dist/components/SecondaryButton/SecondaryButton.es.js +1 -1
  72. package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  73. package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  74. package/dist/components/TabList.stories.cjs.js +1 -1
  75. package/dist/components/TabList.stories.es.js +62 -59
  76. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  77. package/dist/components/TextInput/TextInput.es.js +1 -1
  78. package/dist/components/index.cjs.js +1 -1
  79. package/dist/components/index.es.js +240 -235
  80. package/dist/createSvgIcon-BNfyXTi3.cjs +2 -0
  81. package/dist/createSvgIcon-BwYG_otT.js +249 -0
  82. package/dist/createSvgIcon-DIHNjNhw.js +88 -0
  83. package/dist/createSvgIcon-DMxj0zKp.cjs +1 -0
  84. package/dist/extendSxProp-BkIEJBCN.js +37 -0
  85. package/dist/extendSxProp-DhEbeVWY.cjs +1 -0
  86. package/dist/{fr-CXEmlY0d.js → fr-BmQdNgE2.js} +13 -13
  87. package/dist/{fr-C4bcUC-9.cjs → fr-BwBKunbe.cjs} +1 -1
  88. package/dist/generateUtilityClasses-BwskEdpL.js +58 -0
  89. package/dist/generateUtilityClasses-CzQVzFT6.cjs +1 -0
  90. package/dist/identifier-Dx5_fEyA.cjs +59 -0
  91. package/dist/identifier-SatcAo-F.js +2930 -0
  92. package/dist/index-C1wNRRuv.js +89 -0
  93. package/dist/index-D30fIOec.cjs +1 -0
  94. package/dist/index.cjs.js +1 -1
  95. package/dist/index.es.js +238 -233
  96. package/dist/{ownerWindow-C7EH1lr6.js → ownerWindow-BoRkeomM.js} +2 -2
  97. package/dist/{refType-D1DDOFsy.cjs → refType-CVYH4raj.cjs} +1 -1
  98. package/dist/{refType-DiVIFcsY.js → refType-Dv9Yduc2.js} +1 -1
  99. package/dist/useControlled-Bf7_InaL.cjs +3 -0
  100. package/dist/useControlled-D59BLg1S.js +48 -0
  101. package/dist/useEventCallback-BgMlqKLP.js +14 -0
  102. package/dist/useEventCallback-CrCf96iG.cjs +1 -0
  103. package/dist/useId-CyGZMA-F.js +19 -0
  104. package/dist/useId-D5Txt-1B.cjs +1 -0
  105. package/dist/{useTheme-1gSw-INq.js → useTheme-5-WD2s8Q.js} +5 -5
  106. package/dist/useTheme-C3EDRRFw.js +128 -0
  107. package/dist/useTheme-C8ZuVDEs.cjs +1 -0
  108. package/dist/useTheme-pRydhCrj.cjs +1 -0
  109. package/dist/useThemeProps-D26oU7wL.cjs +1 -0
  110. package/dist/useThemeProps-uqUSigAC.js +40 -0
  111. package/package.json +8 -8
  112. package/dist/Box-2ZrLOc7U.cjs +0 -1
  113. package/dist/Button-HyZp1VKI.js +0 -359
  114. package/dist/Button-NhaA68Of.cjs +0 -1
  115. package/dist/ButtonBase-CnINN-P4.cjs +0 -75
  116. package/dist/ButtonBase-cOL6Mpcp.js +0 -827
  117. package/dist/CircularProgress-01RZzfpF.cjs +0 -28
  118. package/dist/CircularProgress-DO4r9-x8.js +0 -217
  119. package/dist/DatePicker-DZBeZYG6.cjs +0 -19
  120. package/dist/DefaultButton-BMmuKPgA.cjs +0 -1
  121. package/dist/IconButton-3v-0zgZW.cjs +0 -2
  122. package/dist/IconButton-BBfmzBP6.js +0 -184
  123. package/dist/InputAdornment-DHmtETz3.cjs +0 -1
  124. package/dist/InputBase-BpGQgBej.cjs +0 -3
  125. package/dist/InputBase-COUxfhh1.js +0 -794
  126. package/dist/Stack-D9IYPfJ8.cjs +0 -1
  127. package/dist/Tabs-Blo-8Ro5.js +0 -1091
  128. package/dist/Tabs-D0e7cB4l.cjs +0 -4
  129. package/dist/TextField-8AuRLRIK.cjs +0 -12
  130. package/dist/Tooltip-Cp3Dh6LR.cjs +0 -95
  131. package/dist/TransitionGroupContext-BkoHK5Kx.js +0 -14
  132. package/dist/TransitionGroupContext-mYDSzffd.cjs +0 -1
  133. package/dist/Typography-DjrvRhOr.js +0 -178
  134. package/dist/Typography-YHooSvuR.cjs +0 -1
  135. package/dist/createStyled--XbpooZB.js +0 -142
  136. package/dist/createStyled-CuYz_ckk.cjs +0 -1
  137. package/dist/createSvgIcon-CUiH3cta.cjs +0 -1
  138. package/dist/createSvgIcon-D29Io9jD.js +0 -183
  139. package/dist/createSvgIcon-DTc4Xvfk.cjs +0 -2
  140. package/dist/createSvgIcon-DvOXtgXV.js +0 -76
  141. package/dist/identifier-CAQ9PWqs.js +0 -3046
  142. package/dist/identifier-CWIj084w.cjs +0 -50
  143. package/dist/isHostComponent-PydJW4A4.cjs +0 -1
  144. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  145. package/dist/styled-Bt4oYVnF.cjs +0 -17
  146. package/dist/styled-Co-8YWfm.js +0 -533
  147. package/dist/useControlled-DKpcyPsg.cjs +0 -3
  148. package/dist/useControlled-DoRrpN8o.js +0 -48
  149. package/dist/useId-BW-oWmul.js +0 -19
  150. package/dist/useId-Cw0TtD-8.cjs +0 -1
  151. package/dist/useIsFocusVisible-Bv_7uvif.cjs +0 -1
  152. package/dist/useIsFocusVisible-DhASXQ4o.js +0 -69
  153. package/dist/useTheme-Dm6RnXrf.cjs +0 -1
  154. package/dist/useTheme-HJhneR9g.js +0 -99
  155. package/dist/useTheme-T2P7WhLG.cjs +0 -1
  156. package/dist/useThemeProps-BKIVQv3E.js +0 -17
  157. package/dist/useThemeProps-BfZ3lLQs.js +0 -27
  158. package/dist/useThemeProps-BpFUkYqe.cjs +0 -1
  159. package/dist/useThemeProps-Co5ylM0H.cjs +0 -1
  160. package/dist/useTimeout-BdvDipeg.js +0 -47
  161. package/dist/useTimeout-XUWYBnl6.cjs +0 -1
@@ -1,37 +1,39 @@
1
- import { s as h, t as T, z as y, _ as B, m as N, y as C, w as b, d as _, T as P, C as g, P as e } from "./identifier-CAQ9PWqs.js";
2
- import * as j from "react";
3
- import { u as v } from "./useTheme-1gSw-INq.js";
4
- import { jsx as E } from "react/jsx-runtime";
5
- const O = ["className", "component"];
6
- function w(m = {}) {
1
+ import { N as p, O as h, L as T, J as B, u as N, T as y, Q as C, P as e } from "./identifier-SatcAo-F.js";
2
+ import * as b from "react";
3
+ import { jsx as O } from "react/jsx-runtime";
4
+ import { u as g } from "./useTheme-5-WD2s8Q.js";
5
+ import { e as v } from "./extendSxProp-BkIEJBCN.js";
6
+ function E(m = {}) {
7
7
  const {
8
8
  themeId: t,
9
- defaultTheme: l,
9
+ defaultTheme: c,
10
10
  defaultClassName: a = "MuiBox-root",
11
- generateClassName: n
12
- } = m, x = h("div", {
11
+ generateClassName: r
12
+ } = m, l = p("div", {
13
13
  shouldForwardProp: (o) => o !== "theme" && o !== "sx" && o !== "as"
14
- })(T);
15
- return /* @__PURE__ */ j.forwardRef(function(d, u) {
16
- const s = v(l), r = y(d), {
17
- className: f,
18
- component: i = "div"
19
- } = r, p = B(r, O);
20
- return /* @__PURE__ */ E(x, N({
21
- as: i,
22
- ref: u,
23
- className: C(f, n ? n(a) : a),
24
- theme: t && s[t] || s
25
- }, p));
14
+ })(h);
15
+ return /* @__PURE__ */ b.forwardRef(function(f, x) {
16
+ const s = g(c), {
17
+ className: u,
18
+ component: d = "div",
19
+ ...i
20
+ } = v(f);
21
+ return /* @__PURE__ */ O(l, {
22
+ as: d,
23
+ ref: x,
24
+ className: T(u, r ? r(a) : a),
25
+ theme: t && s[t] || s,
26
+ ...i
27
+ });
26
28
  });
27
29
  }
28
- const I = b("MuiBox", ["root"]), M = I, R = _(), c = w({
29
- themeId: P,
30
- defaultTheme: R,
31
- defaultClassName: M.root,
32
- generateClassName: g.generate
30
+ const P = B("MuiBox", ["root"]), j = P, I = N(), n = E({
31
+ themeId: y,
32
+ defaultTheme: I,
33
+ defaultClassName: j.root,
34
+ generateClassName: C.generate
33
35
  });
34
- process.env.NODE_ENV !== "production" && (c.propTypes = {
36
+ process.env.NODE_ENV !== "production" && (n.propTypes = {
35
37
  // ┌────────────────────────────── Warning ──────────────────────────────┐
36
38
  // │ These PropTypes are generated from the TypeScript type definitions. │
37
39
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -50,8 +52,8 @@ process.env.NODE_ENV !== "production" && (c.propTypes = {
50
52
  */
51
53
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
52
54
  });
53
- const z = c;
55
+ const S = n;
54
56
  export {
55
- z as B,
56
- M as b
57
+ S as B,
58
+ j as b
57
59
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./identifier-Dx5_fEyA.cjs"),y=require("react"),T=require("react/jsx-runtime"),P=require("./useTheme-C8ZuVDEs.cjs"),h=require("./extendSxProp-DhEbeVWY.cjs");function b(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:()=>o[s]})}}return t.default=o,Object.freeze(t)}const B=b(y);function N(o={}){const{themeId:t,defaultTheme:s,defaultClassName:r="MuiBox-root",generateClassName:c}=o,l=e.styled("div",{shouldForwardProp:n=>n!=="theme"&&n!=="sx"&&n!=="as"})(e.styleFunctionSx);return B.forwardRef(function(i,d){const a=P.useTheme(s),{className:f,component:m="div",...x}=h.extendSxProp(i);return T.jsx(l,{as:m,ref:d,className:e.clsx(f,c?c(r):r),theme:t&&a[t]||a,...x})})}const g=e.generateUtilityClasses("MuiBox",["root"]),p=g,C=e.createTheme(),u=N({themeId:e.THEME_ID,defaultTheme:C,defaultClassName:p.root,generateClassName:e.ClassNameGenerator.generate});process.env.NODE_ENV!=="production"&&(u.propTypes={children:e.PropTypes.node,component:e.PropTypes.elementType,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])});const O=u;exports.Box=O;exports.boxClasses=p;
@@ -0,0 +1,454 @@
1
+ import * as u from "react";
2
+ import { I as j, J as D, K as e, n as c, L as I, P as a } from "./identifier-SatcAo-F.js";
3
+ import { s as b, b as G, m as F, r as U, u as _, c as H } from "./DefaultPropsProvider-BDdV3S11.js";
4
+ import { jsxs as A, jsx as $ } from "react/jsx-runtime";
5
+ import { B as J } from "./ButtonBase-Mr4S_NG8.js";
6
+ function K(o) {
7
+ return j("MuiButton", o);
8
+ }
9
+ const q = D("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), l = q, w = /* @__PURE__ */ u.createContext({});
10
+ process.env.NODE_ENV !== "production" && (w.displayName = "ButtonGroupContext");
11
+ const m = /* @__PURE__ */ u.createContext(void 0);
12
+ process.env.NODE_ENV !== "production" && (m.displayName = "ButtonGroupButtonContext");
13
+ const Q = (o) => {
14
+ const {
15
+ color: n,
16
+ disableElevation: r,
17
+ fullWidth: s,
18
+ size: i,
19
+ variant: t,
20
+ classes: d
21
+ } = o, g = {
22
+ root: ["root", t, `${t}${e(n)}`, `size${e(i)}`, `${t}Size${e(i)}`, `color${e(n)}`, r && "disableElevation", s && "fullWidth"],
23
+ label: ["label"],
24
+ startIcon: ["icon", "startIcon", `iconSize${e(i)}`],
25
+ endIcon: ["icon", "endIcon", `iconSize${e(i)}`]
26
+ }, x = H(g, K, d);
27
+ return {
28
+ ...d,
29
+ // forward the focused, disabled, etc. classes to the ButtonBase
30
+ ...x
31
+ };
32
+ }, O = [{
33
+ props: {
34
+ size: "small"
35
+ },
36
+ style: {
37
+ "& > *:nth-of-type(1)": {
38
+ fontSize: 18
39
+ }
40
+ }
41
+ }, {
42
+ props: {
43
+ size: "medium"
44
+ },
45
+ style: {
46
+ "& > *:nth-of-type(1)": {
47
+ fontSize: 20
48
+ }
49
+ }
50
+ }, {
51
+ props: {
52
+ size: "large"
53
+ },
54
+ style: {
55
+ "& > *:nth-of-type(1)": {
56
+ fontSize: 22
57
+ }
58
+ }
59
+ }], X = b(J, {
60
+ shouldForwardProp: (o) => G(o) || o === "classes",
61
+ name: "MuiButton",
62
+ slot: "Root",
63
+ overridesResolver: (o, n) => {
64
+ const {
65
+ ownerState: r
66
+ } = o;
67
+ return [n.root, n[r.variant], n[`${r.variant}${e(r.color)}`], n[`size${e(r.size)}`], n[`${r.variant}Size${e(r.size)}`], r.color === "inherit" && n.colorInherit, r.disableElevation && n.disableElevation, r.fullWidth && n.fullWidth];
68
+ }
69
+ })(F(({
70
+ theme: o
71
+ }) => {
72
+ var s, i;
73
+ const n = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], r = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
74
+ return {
75
+ ...o.typography.button,
76
+ minWidth: 64,
77
+ padding: "6px 16px",
78
+ border: 0,
79
+ borderRadius: (o.vars || o).shape.borderRadius,
80
+ transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
81
+ duration: o.transitions.duration.short
82
+ }),
83
+ "&:hover": {
84
+ textDecoration: "none"
85
+ },
86
+ [`&.${l.disabled}`]: {
87
+ color: (o.vars || o).palette.action.disabled
88
+ },
89
+ variants: [{
90
+ props: {
91
+ variant: "contained"
92
+ },
93
+ style: {
94
+ color: "var(--variant-containedColor)",
95
+ backgroundColor: "var(--variant-containedBg)",
96
+ boxShadow: (o.vars || o).shadows[2],
97
+ "&:hover": {
98
+ boxShadow: (o.vars || o).shadows[4],
99
+ // Reset on touch devices, it doesn't add specificity
100
+ "@media (hover: none)": {
101
+ boxShadow: (o.vars || o).shadows[2]
102
+ }
103
+ },
104
+ "&:active": {
105
+ boxShadow: (o.vars || o).shadows[8]
106
+ },
107
+ [`&.${l.focusVisible}`]: {
108
+ boxShadow: (o.vars || o).shadows[6]
109
+ },
110
+ [`&.${l.disabled}`]: {
111
+ color: (o.vars || o).palette.action.disabled,
112
+ boxShadow: (o.vars || o).shadows[0],
113
+ backgroundColor: (o.vars || o).palette.action.disabledBackground
114
+ }
115
+ }
116
+ }, {
117
+ props: {
118
+ variant: "outlined"
119
+ },
120
+ style: {
121
+ padding: "5px 15px",
122
+ border: "1px solid currentColor",
123
+ borderColor: "var(--variant-outlinedBorder, currentColor)",
124
+ backgroundColor: "var(--variant-outlinedBg)",
125
+ color: "var(--variant-outlinedColor)",
126
+ [`&.${l.disabled}`]: {
127
+ border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
128
+ }
129
+ }
130
+ }, {
131
+ props: {
132
+ variant: "text"
133
+ },
134
+ style: {
135
+ padding: "6px 8px",
136
+ color: "var(--variant-textColor)",
137
+ backgroundColor: "var(--variant-textBg)"
138
+ }
139
+ }, ...Object.entries(o.palette).filter(([, t]) => t && t.main && t.dark && t.contrastText).map(([t]) => ({
140
+ props: {
141
+ color: t
142
+ },
143
+ style: {
144
+ "--variant-textColor": (o.vars || o).palette[t].main,
145
+ "--variant-outlinedColor": (o.vars || o).palette[t].main,
146
+ "--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[t].mainChannel} / 0.5)` : c(o.palette[t].main, 0.5),
147
+ "--variant-containedColor": (o.vars || o).palette[t].contrastText,
148
+ "--variant-containedBg": (o.vars || o).palette[t].main,
149
+ "@media (hover: hover)": {
150
+ "&:hover": {
151
+ "--variant-containedBg": (o.vars || o).palette[t].dark,
152
+ "--variant-textBg": o.vars ? `rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : c(o.palette[t].main, o.palette.action.hoverOpacity),
153
+ "--variant-outlinedBorder": (o.vars || o).palette[t].main,
154
+ "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : c(o.palette[t].main, o.palette.action.hoverOpacity)
155
+ }
156
+ }
157
+ }
158
+ })), {
159
+ props: {
160
+ color: "inherit"
161
+ },
162
+ style: {
163
+ "--variant-containedColor": o.vars ? (
164
+ // this is safe because grey does not change between default light/dark mode
165
+ o.vars.palette.text.primary
166
+ ) : (i = (s = o.palette).getContrastText) == null ? void 0 : i.call(s, n),
167
+ "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : n,
168
+ "@media (hover: hover)": {
169
+ "&:hover": {
170
+ "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : r,
171
+ "--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : c(o.palette.text.primary, o.palette.action.hoverOpacity),
172
+ "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : c(o.palette.text.primary, o.palette.action.hoverOpacity)
173
+ }
174
+ }
175
+ }
176
+ }, {
177
+ props: {
178
+ size: "small",
179
+ variant: "text"
180
+ },
181
+ style: {
182
+ padding: "4px 5px",
183
+ fontSize: o.typography.pxToRem(13)
184
+ }
185
+ }, {
186
+ props: {
187
+ size: "large",
188
+ variant: "text"
189
+ },
190
+ style: {
191
+ padding: "8px 11px",
192
+ fontSize: o.typography.pxToRem(15)
193
+ }
194
+ }, {
195
+ props: {
196
+ size: "small",
197
+ variant: "outlined"
198
+ },
199
+ style: {
200
+ padding: "3px 9px",
201
+ fontSize: o.typography.pxToRem(13)
202
+ }
203
+ }, {
204
+ props: {
205
+ size: "large",
206
+ variant: "outlined"
207
+ },
208
+ style: {
209
+ padding: "7px 21px",
210
+ fontSize: o.typography.pxToRem(15)
211
+ }
212
+ }, {
213
+ props: {
214
+ size: "small",
215
+ variant: "contained"
216
+ },
217
+ style: {
218
+ padding: "4px 10px",
219
+ fontSize: o.typography.pxToRem(13)
220
+ }
221
+ }, {
222
+ props: {
223
+ size: "large",
224
+ variant: "contained"
225
+ },
226
+ style: {
227
+ padding: "8px 22px",
228
+ fontSize: o.typography.pxToRem(15)
229
+ }
230
+ }, {
231
+ props: {
232
+ disableElevation: !0
233
+ },
234
+ style: {
235
+ boxShadow: "none",
236
+ "&:hover": {
237
+ boxShadow: "none"
238
+ },
239
+ [`&.${l.focusVisible}`]: {
240
+ boxShadow: "none"
241
+ },
242
+ "&:active": {
243
+ boxShadow: "none"
244
+ },
245
+ [`&.${l.disabled}`]: {
246
+ boxShadow: "none"
247
+ }
248
+ }
249
+ }, {
250
+ props: {
251
+ fullWidth: !0
252
+ },
253
+ style: {
254
+ width: "100%"
255
+ }
256
+ }]
257
+ };
258
+ })), Y = b("span", {
259
+ name: "MuiButton",
260
+ slot: "StartIcon",
261
+ overridesResolver: (o, n) => {
262
+ const {
263
+ ownerState: r
264
+ } = o;
265
+ return [n.startIcon, n[`iconSize${e(r.size)}`]];
266
+ }
267
+ })({
268
+ display: "inherit",
269
+ marginRight: 8,
270
+ marginLeft: -4,
271
+ variants: [{
272
+ props: {
273
+ size: "small"
274
+ },
275
+ style: {
276
+ marginLeft: -2
277
+ }
278
+ }, ...O]
279
+ }), Z = b("span", {
280
+ name: "MuiButton",
281
+ slot: "EndIcon",
282
+ overridesResolver: (o, n) => {
283
+ const {
284
+ ownerState: r
285
+ } = o;
286
+ return [n.endIcon, n[`iconSize${e(r.size)}`]];
287
+ }
288
+ })({
289
+ display: "inherit",
290
+ marginRight: -4,
291
+ marginLeft: 8,
292
+ variants: [{
293
+ props: {
294
+ size: "small"
295
+ },
296
+ style: {
297
+ marginRight: -2
298
+ }
299
+ }, ...O]
300
+ }), R = /* @__PURE__ */ u.forwardRef(function(n, r) {
301
+ const s = u.useContext(w), i = u.useContext(m), t = U(s, n), d = _({
302
+ props: t,
303
+ name: "MuiButton"
304
+ }), {
305
+ children: g,
306
+ color: x = "primary",
307
+ component: y = "button",
308
+ className: E,
309
+ disabled: f = !1,
310
+ disableElevation: N = !1,
311
+ disableFocusRipple: S = !1,
312
+ endIcon: z,
313
+ focusVisibleClassName: T,
314
+ fullWidth: P = !1,
315
+ size: h = "medium",
316
+ startIcon: C,
317
+ type: B,
318
+ variant: W = "text",
319
+ ...k
320
+ } = d, v = {
321
+ ...d,
322
+ color: x,
323
+ component: y,
324
+ disabled: f,
325
+ disableElevation: N,
326
+ disableFocusRipple: S,
327
+ fullWidth: P,
328
+ size: h,
329
+ type: B,
330
+ variant: W
331
+ }, p = Q(v), M = C && /* @__PURE__ */ $(Y, {
332
+ className: p.startIcon,
333
+ ownerState: v,
334
+ children: C
335
+ }), V = z && /* @__PURE__ */ $(Z, {
336
+ className: p.endIcon,
337
+ ownerState: v,
338
+ children: z
339
+ }), L = i || "";
340
+ return /* @__PURE__ */ A(X, {
341
+ ownerState: v,
342
+ className: I(s.className, p.root, E, L),
343
+ component: y,
344
+ disabled: f,
345
+ focusRipple: !S,
346
+ focusVisibleClassName: I(p.focusVisible, T),
347
+ ref: r,
348
+ type: B,
349
+ ...k,
350
+ classes: p,
351
+ children: [M, g, V]
352
+ });
353
+ });
354
+ process.env.NODE_ENV !== "production" && (R.propTypes = {
355
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
356
+ // │ These PropTypes are generated from the TypeScript type definitions. │
357
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
358
+ // └─────────────────────────────────────────────────────────────────────┘
359
+ /**
360
+ * The content of the component.
361
+ */
362
+ children: a.node,
363
+ /**
364
+ * Override or extend the styles applied to the component.
365
+ */
366
+ classes: a.object,
367
+ /**
368
+ * @ignore
369
+ */
370
+ className: a.string,
371
+ /**
372
+ * The color of the component.
373
+ * It supports both default and custom theme colors, which can be added as shown in the
374
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
375
+ * @default 'primary'
376
+ */
377
+ color: a.oneOfType([a.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), a.string]),
378
+ /**
379
+ * The component used for the root node.
380
+ * Either a string to use a HTML element or a component.
381
+ */
382
+ component: a.elementType,
383
+ /**
384
+ * If `true`, the component is disabled.
385
+ * @default false
386
+ */
387
+ disabled: a.bool,
388
+ /**
389
+ * If `true`, no elevation is used.
390
+ * @default false
391
+ */
392
+ disableElevation: a.bool,
393
+ /**
394
+ * If `true`, the keyboard focus ripple is disabled.
395
+ * @default false
396
+ */
397
+ disableFocusRipple: a.bool,
398
+ /**
399
+ * If `true`, the ripple effect is disabled.
400
+ *
401
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
402
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
403
+ * @default false
404
+ */
405
+ disableRipple: a.bool,
406
+ /**
407
+ * Element placed after the children.
408
+ */
409
+ endIcon: a.node,
410
+ /**
411
+ * @ignore
412
+ */
413
+ focusVisibleClassName: a.string,
414
+ /**
415
+ * If `true`, the button will take up the full width of its container.
416
+ * @default false
417
+ */
418
+ fullWidth: a.bool,
419
+ /**
420
+ * The URL to link to when the button is clicked.
421
+ * If defined, an `a` element will be used as the root node.
422
+ */
423
+ href: a.string,
424
+ /**
425
+ * The size of the component.
426
+ * `small` is equivalent to the dense button styling.
427
+ * @default 'medium'
428
+ */
429
+ size: a.oneOfType([a.oneOf(["small", "medium", "large"]), a.string]),
430
+ /**
431
+ * Element placed before the children.
432
+ */
433
+ startIcon: a.node,
434
+ /**
435
+ * The system prop that allows defining system overrides as well as additional CSS styles.
436
+ */
437
+ sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
438
+ /**
439
+ * @ignore
440
+ */
441
+ type: a.oneOfType([a.oneOf(["button", "reset", "submit"]), a.string]),
442
+ /**
443
+ * The variant to use.
444
+ * @default 'text'
445
+ */
446
+ variant: a.oneOfType([a.oneOf(["contained", "outlined", "text"]), a.string])
447
+ });
448
+ const ro = R;
449
+ export {
450
+ ro as B,
451
+ w as a,
452
+ l as b,
453
+ K as g
454
+ };
@@ -0,0 +1 @@
1
+ "use strict";const j=require("react"),t=require("./identifier-Dx5_fEyA.cjs"),s=require("./DefaultPropsProvider-DwweZ7qj.cjs"),g=require("react/jsx-runtime"),V=require("./ButtonBase-C-IxZjoy.cjs");function D(o){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const e in o)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:()=>o[e]})}}return a.default=o,Object.freeze(a)}const d=D(j);function P(o){return t.generateUtilityClass("MuiButton",o)}const L=t.generateUtilityClasses("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),l=L,b=d.createContext({});process.env.NODE_ENV!=="production"&&(b.displayName="ButtonGroupContext");const B=d.createContext(void 0);process.env.NODE_ENV!=="production"&&(B.displayName="ButtonGroupButtonContext");const q=o=>{const{color:a,disableElevation:e,fullWidth:r,size:i,variant:n,classes:p}=o,v={root:["root",n,`${n}${t.capitalize(a)}`,`size${t.capitalize(i)}`,`${n}Size${t.capitalize(i)}`,`color${t.capitalize(a)}`,e&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${t.capitalize(i)}`],endIcon:["icon","endIcon",`iconSize${t.capitalize(i)}`]},y=s.composeClasses(v,P,p);return{...p,...y}},$=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],G=s.styled(V.ButtonBase,{shouldForwardProp:o=>s.rootShouldForwardProp(o)||o==="classes",name:"MuiButton",slot:"Root",overridesResolver:(o,a)=>{const{ownerState:e}=o;return[a.root,a[e.variant],a[`${e.variant}${t.capitalize(e.color)}`],a[`size${t.capitalize(e.size)}`],a[`${e.variant}Size${t.capitalize(e.size)}`],e.color==="inherit"&&a.colorInherit,e.disableElevation&&a.disableElevation,e.fullWidth&&a.fullWidth]}})(s.memoTheme(({theme:o})=>{var r,i;const a=o.palette.mode==="light"?o.palette.grey[300]:o.palette.grey[800],e=o.palette.mode==="light"?o.palette.grey.A100:o.palette.grey[700];return{...o.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(o.vars||o).shape.borderRadius,transition:o.transitions.create(["background-color","box-shadow","border-color","color"],{duration:o.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${l.disabled}`]:{color:(o.vars||o).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(o.vars||o).shadows[2],"&:hover":{boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2]}},"&:active":{boxShadow:(o.vars||o).shadows[8]},[`&.${l.focusVisible}`]:{boxShadow:(o.vars||o).shadows[6]},[`&.${l.disabled}`]:{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${l.disabled}`]:{border:`1px solid ${(o.vars||o).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(o.palette).filter(([,n])=>n&&n.main&&n.dark&&n.contrastText).map(([n])=>({props:{color:n},style:{"--variant-textColor":(o.vars||o).palette[n].main,"--variant-outlinedColor":(o.vars||o).palette[n].main,"--variant-outlinedBorder":o.vars?`rgba(${o.vars.palette[n].mainChannel} / 0.5)`:t.alpha(o.palette[n].main,.5),"--variant-containedColor":(o.vars||o).palette[n].contrastText,"--variant-containedBg":(o.vars||o).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(o.vars||o).palette[n].dark,"--variant-textBg":o.vars?`rgba(${o.vars.palette[n].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:t.alpha(o.palette[n].main,o.palette.action.hoverOpacity),"--variant-outlinedBorder":(o.vars||o).palette[n].main,"--variant-outlinedBg":o.vars?`rgba(${o.vars.palette[n].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:t.alpha(o.palette[n].main,o.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{"--variant-containedColor":o.vars?o.vars.palette.text.primary:(i=(r=o.palette).getContrastText)==null?void 0:i.call(r,a),"--variant-containedBg":o.vars?o.vars.palette.Button.inheritContainedBg:a,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":o.vars?o.vars.palette.Button.inheritContainedHoverBg:e,"--variant-textBg":o.vars?`rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})`:t.alpha(o.palette.text.primary,o.palette.action.hoverOpacity),"--variant-outlinedBg":o.vars?`rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})`:t.alpha(o.palette.text.primary,o.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:o.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:o.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:o.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:o.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:o.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:o.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${l.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${l.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),_=s.styled("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(o,a)=>{const{ownerState:e}=o;return[a.startIcon,a[`iconSize${t.capitalize(e.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...$]}),U=s.styled("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(o,a)=>{const{ownerState:e}=o;return[a.endIcon,a[`iconSize${t.capitalize(e.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...$]}),I=d.forwardRef(function(a,e){const r=d.useContext(b),i=d.useContext(B),n=s.resolveProps(r,a),p=s.useDefaultProps({props:n,name:"MuiButton"}),{children:v,color:y="primary",component:x="button",className:w,disabled:f=!1,disableElevation:O=!1,disableFocusRipple:S=!1,endIcon:z,focusVisibleClassName:R,fullWidth:E=!1,size:N="medium",startIcon:T,type:C,variant:h="text",...m}=p,u={...p,color:y,component:x,disabled:f,disableElevation:O,disableFocusRipple:S,fullWidth:E,size:N,type:C,variant:h},c=q(u),W=T&&g.jsx(_,{className:c.startIcon,ownerState:u,children:T}),k=z&&g.jsx(U,{className:c.endIcon,ownerState:u,children:z}),M=i||"";return g.jsxs(G,{ownerState:u,className:t.clsx(r.className,c.root,w,M),component:x,disabled:f,focusRipple:!S,focusVisibleClassName:t.clsx(c.focusVisible,R),ref:e,type:C,...m,classes:c,children:[W,v,k]})});process.env.NODE_ENV!=="production"&&(I.propTypes={children:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,color:t.PropTypes.oneOfType([t.PropTypes.oneOf(["inherit","primary","secondary","success","error","info","warning"]),t.PropTypes.string]),component:t.PropTypes.elementType,disabled:t.PropTypes.bool,disableElevation:t.PropTypes.bool,disableFocusRipple:t.PropTypes.bool,disableRipple:t.PropTypes.bool,endIcon:t.PropTypes.node,focusVisibleClassName:t.PropTypes.string,fullWidth:t.PropTypes.bool,href:t.PropTypes.string,size:t.PropTypes.oneOfType([t.PropTypes.oneOf(["small","medium","large"]),t.PropTypes.string]),startIcon:t.PropTypes.node,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]),type:t.PropTypes.oneOfType([t.PropTypes.oneOf(["button","reset","submit"]),t.PropTypes.string]),variant:t.PropTypes.oneOfType([t.PropTypes.oneOf(["contained","outlined","text"]),t.PropTypes.string])});const F=I;exports.Button=F;exports.ButtonGroupContext=b;exports.buttonClasses=l;exports.getButtonUtilityClass=P;
@@ -0,0 +1,75 @@
1
+ "use strict";var je=Object.defineProperty;var ke=(n,t,o)=>t in n?je(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o;var ue=(n,t,o)=>ke(n,typeof t!="symbol"?t+"":t,o);const m=require("react"),e=require("./identifier-Dx5_fEyA.cjs"),L=require("react/jsx-runtime"),I=require("./DefaultPropsProvider-DwweZ7qj.cjs"),U=require("./TransitionGroupContext-LWgXgADB.cjs"),oe=require("@emotion/react"),ae=require("./useForkRef-CGd3Nhyb.cjs"),H=require("./useEventCallback-CrCf96iG.cjs"),pe=require("./refType-CVYH4raj.cjs");function Se(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const o in n)if(o!=="default"){const u=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(t,o,u.get?u:{enumerable:!0,get:()=>n[o]})}}return t.default=n,Object.freeze(t)}const d=Se(m);function J(){return J=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var u in o)({}).hasOwnProperty.call(o,u)&&(n[u]=o[u])}return n},J.apply(null,arguments)}function te(n){try{return n.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
2
+ `))}return!1}class Q{constructor(){ue(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Q}static use(){const t=U.useLazyRef(Q.create).current,[o,u]=d.useState(!1);return t.shouldMount=o,t.setShouldMount=u,d.useEffect(t.mountEffect,[o]),t}mount(){return this.mounted||(this.mounted=Be(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.start(...t)})}stop(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.stop(...t)})}pulsate(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.pulsate(...t)})}}function Oe(){return Q.use()}function Be(){let n,t;const o=new Promise((u,r)=>{n=u,t=r});return o.resolve=n,o.reject=t,o}function Le(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function se(n,t){var o=function(s){return t&&m.isValidElement(s)?t(s):s},u=Object.create(null);return n&&m.Children.map(n,function(r){return r}).forEach(function(r){u[r.key]=o(r)}),u}function Fe(n,t){n=n||{},t=t||{};function o(h){return h in t?t[h]:n[h]}var u=Object.create(null),r=[];for(var s in n)s in t?r.length&&(u[s]=r,r=[]):r.push(s);var i,c={};for(var a in t){if(u[a])for(i=0;i<u[a].length;i++){var f=u[a][i];c[u[a][i]]=o(f)}c[a]=o(a)}for(i=0;i<r.length;i++)c[r[i]]=o(r[i]);return c}function B(n,t,o){return o[t]!=null?o[t]:n.props[t]}function $e(n,t){return se(n.children,function(o){return m.cloneElement(o,{onExited:t.bind(null,o),in:!0,appear:B(o,"appear",n),enter:B(o,"enter",n),exit:B(o,"exit",n)})})}function qe(n,t,o){var u=se(n.children),r=Fe(t,u);return Object.keys(r).forEach(function(s){var i=r[s];if(m.isValidElement(i)){var c=s in t,a=s in u,f=t[s],h=m.isValidElement(f)&&!f.props.in;a&&(!c||h)?r[s]=m.cloneElement(i,{onExited:o.bind(null,i),in:!0,exit:B(i,"exit",n),enter:B(i,"enter",n)}):!a&&c&&!h?r[s]=m.cloneElement(i,{in:!1}):a&&c&&m.isValidElement(f)&&(r[s]=m.cloneElement(i,{onExited:o.bind(null,i),in:f.props.in,exit:B(i,"exit",n),enter:B(i,"enter",n)}))}}),r}var Ue=Object.values||function(n){return Object.keys(n).map(function(t){return n[t]})},Ie={component:"div",childFactory:function(t){return t}},Z=function(n){U._inheritsLoose(t,n);function t(u,r){var s;s=n.call(this,u,r)||this;var i=s.handleExited.bind(Le(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var o=t.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,s){var i=s.children,c=s.handleExited,a=s.firstRender;return{children:a?$e(r,c):qe(r,i,c),firstRender:!1}},o.handleExited=function(r,s){var i=se(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(s),this.mounted&&this.setState(function(c){var a=J({},c.children);return delete a[r.key],{children:a}}))},o.render=function(){var r=this.props,s=r.component,i=r.childFactory,c=U._objectWithoutPropertiesLoose(r,["component","childFactory"]),a=this.state.contextValue,f=Ue(this.state.children).map(i);return delete c.appear,delete c.enter,delete c.exit,s===null?m.createElement(U.TransitionGroupContext.Provider,{value:a},f):m.createElement(U.TransitionGroupContext.Provider,{value:a},m.createElement(s,c,f))},t}(m.Component);Z.propTypes=process.env.NODE_ENV!=="production"?{component:e.PropTypes.any,children:e.PropTypes.node,appear:e.PropTypes.bool,enter:e.PropTypes.bool,exit:e.PropTypes.bool,childFactory:e.PropTypes.func}:{};Z.defaultProps=Ie;function ce(n){const{className:t,classes:o,pulsate:u=!1,rippleX:r,rippleY:s,rippleSize:i,in:c,onExited:a,timeout:f}=n,[h,g]=d.useState(!1),T=e.clsx(t,o.ripple,o.rippleVisible,u&&o.ripplePulsate),D={width:i,height:i,top:-(i/2)+s,left:-(i/2)+r},y=e.clsx(o.child,h&&o.childLeaving,u&&o.childPulsate);return!c&&!h&&g(!0),d.useEffect(()=>{if(!c&&a!=null){const j=setTimeout(a,f);return()=>{clearTimeout(j)}}},[a,c,f]),L.jsx("span",{className:T,style:D,children:L.jsx("span",{className:y})})}process.env.NODE_ENV!=="production"&&(ce.propTypes={classes:e.PropTypes.object.isRequired,className:e.PropTypes.string,in:e.PropTypes.bool,onExited:e.PropTypes.func,pulsate:e.PropTypes.bool,rippleSize:e.PropTypes.number,rippleX:e.PropTypes.number,rippleY:e.PropTypes.number,timeout:e.PropTypes.number.isRequired});const b=e.generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ne=550,ze=80,_e=oe.keyframes`
3
+ 0% {
4
+ transform: scale(0);
5
+ opacity: 0.1;
6
+ }
7
+
8
+ 100% {
9
+ transform: scale(1);
10
+ opacity: 0.3;
11
+ }
12
+ `,Ae=oe.keyframes`
13
+ 0% {
14
+ opacity: 1;
15
+ }
16
+
17
+ 100% {
18
+ opacity: 0;
19
+ }
20
+ `,Xe=oe.keyframes`
21
+ 0% {
22
+ transform: scale(1);
23
+ }
24
+
25
+ 50% {
26
+ transform: scale(0.92);
27
+ }
28
+
29
+ 100% {
30
+ transform: scale(1);
31
+ }
32
+ `,Ye=I.styled("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ke=I.styled(ce,{name:"MuiTouchRipple",slot:"Ripple"})`
33
+ opacity: 0;
34
+ position: absolute;
35
+
36
+ &.${b.rippleVisible} {
37
+ opacity: 0.3;
38
+ transform: scale(1);
39
+ animation-name: ${_e};
40
+ animation-duration: ${ne}ms;
41
+ animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
42
+ }
43
+
44
+ &.${b.ripplePulsate} {
45
+ animation-duration: ${({theme:n})=>n.transitions.duration.shorter}ms;
46
+ }
47
+
48
+ & .${b.child} {
49
+ opacity: 1;
50
+ display: block;
51
+ width: 100%;
52
+ height: 100%;
53
+ border-radius: 50%;
54
+ background-color: currentColor;
55
+ }
56
+
57
+ & .${b.childLeaving} {
58
+ opacity: 0;
59
+ animation-name: ${Ae};
60
+ animation-duration: ${ne}ms;
61
+ animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
62
+ }
63
+
64
+ & .${b.childPulsate} {
65
+ position: absolute;
66
+ /* @noflip */
67
+ left: 0px;
68
+ top: 0;
69
+ animation-name: ${Xe};
70
+ animation-duration: 2500ms;
71
+ animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
72
+ animation-iteration-count: infinite;
73
+ animation-delay: 200ms;
74
+ }
75
+ `,fe=d.forwardRef(function(t,o){const u=I.useDefaultProps({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:i,...c}=u,[a,f]=d.useState([]),h=d.useRef(0),g=d.useRef(null);d.useEffect(()=>{g.current&&(g.current(),g.current=null)},[a]);const T=d.useRef(!1),D=U.useTimeout(),y=d.useRef(null),j=d.useRef(null),E=d.useCallback(p=>{const{pulsate:M,rippleX:P,rippleY:q,rippleSize:k,cb:z}=p;f(R=>[...R,L.jsx(Ke,{classes:{ripple:e.clsx(s.ripple,b.ripple),rippleVisible:e.clsx(s.rippleVisible,b.rippleVisible),ripplePulsate:e.clsx(s.ripplePulsate,b.ripplePulsate),child:e.clsx(s.child,b.child),childLeaving:e.clsx(s.childLeaving,b.childLeaving),childPulsate:e.clsx(s.childPulsate,b.childPulsate)},timeout:ne,pulsate:M,rippleX:P,rippleY:q,rippleSize:k},h.current)]),h.current+=1,g.current=z},[s]),F=d.useCallback((p={},M={},P=()=>{})=>{const{pulsate:q=!1,center:k=r||M.pulsate,fakeElement:z=!1}=M;if((p==null?void 0:p.type)==="mousedown"&&T.current){T.current=!1;return}(p==null?void 0:p.type)==="touchstart"&&(T.current=!0);const R=z?null:j.current,V=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,x,w;if(k||p===void 0||p.clientX===0&&p.clientY===0||!p.clientX&&!p.touches)N=Math.round(V.width/2),x=Math.round(V.height/2);else{const{clientX:_,clientY:S}=p.touches&&p.touches.length>0?p.touches[0]:p;N=Math.round(_-V.left),x=Math.round(S-V.top)}if(k)w=Math.sqrt((2*V.width**2+V.height**2)/3),w%2===0&&(w+=1);else{const _=Math.max(Math.abs((R?R.clientWidth:0)-N),N)*2+2,S=Math.max(Math.abs((R?R.clientHeight:0)-x),x)*2+2;w=Math.sqrt(_**2+S**2)}p!=null&&p.touches?y.current===null&&(y.current=()=>{E({pulsate:q,rippleX:N,rippleY:x,rippleSize:w,cb:P})},D.start(ze,()=>{y.current&&(y.current(),y.current=null)})):E({pulsate:q,rippleX:N,rippleY:x,rippleSize:w,cb:P})},[r,E,D]),K=d.useCallback(()=>{F({},{pulsate:!0})},[F]),$=d.useCallback((p,M)=>{if(D.clear(),(p==null?void 0:p.type)==="touchend"&&y.current){y.current(),y.current=null,D.start(0,()=>{$(p,M)});return}y.current=null,f(P=>P.length>0?P.slice(1):P),g.current=M},[D]);return d.useImperativeHandle(o,()=>({pulsate:K,start:F,stop:$}),[K,F,$]),L.jsx(Ye,{className:e.clsx(b.root,s.root,i),ref:j,...c,children:L.jsx(Z,{component:null,exit:!0,children:a})})});process.env.NODE_ENV!=="production"&&(fe.propTypes={center:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string});function Ge(n){return e.generateUtilityClass("MuiButtonBase",n)}const We=e.generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),He=n=>{const{disabled:t,focusVisible:o,focusVisibleClassName:u,classes:r}=n,s={root:["root",t&&"disabled",o&&"focusVisible"]},i=I.composeClasses(s,Ge,r);return o&&u&&(i.root+=` ${u}`),i},Je=I.styled("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(n,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${We.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),de=d.forwardRef(function(t,o){const u=I.useDefaultProps({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:i,className:c,component:a="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:g=!1,focusRipple:T=!1,focusVisibleClassName:D,LinkComponent:y="a",onBlur:j,onClick:E,onContextMenu:F,onDragLeave:K,onFocus:$,onFocusVisible:p,onKeyDown:M,onKeyUp:P,onMouseDown:q,onMouseLeave:k,onMouseUp:z,onTouchEnd:R,onTouchMove:V,onTouchStart:N,tabIndex:x=0,TouchRippleProps:w,touchRippleRef:_,type:S,...A}=u,X=d.useRef(null),C=Oe(),he=ae.useForkRef(C.ref,_),[O,G]=d.useState(!1);f&&O&&G(!1),d.useImperativeHandle(r,()=>({focusVisible:()=>{G(!0),X.current.focus()}}),[]);const me=C.shouldMount&&!h&&!f;d.useEffect(()=>{O&&T&&!h&&C.pulsate()},[h,T,O,C]);function v(l,ie,we=g){return H.useEventCallback(le=>(ie&&ie(le),we||C[l](le),!0))}const ye=v("start",q),be=v("stop",F),Te=v("stop",K),Pe=v("stop",z),ge=v("stop",l=>{O&&l.preventDefault(),k&&k(l)}),Me=v("start",N),Re=v("stop",R),Ee=v("stop",V),xe=v("stop",l=>{te(l.target)||G(!1),j&&j(l)},!1),Ce=H.useEventCallback(l=>{X.current||(X.current=l.currentTarget),te(l.target)&&(G(!0),p&&p(l)),$&&$(l)}),ee=()=>{const l=X.current;return a&&a!=="button"&&!(l.tagName==="A"&&l.href)},ve=H.useEventCallback(l=>{T&&!l.repeat&&O&&l.key===" "&&C.stop(l,()=>{C.start(l)}),l.target===l.currentTarget&&ee()&&l.key===" "&&l.preventDefault(),M&&M(l),l.target===l.currentTarget&&ee()&&l.key==="Enter"&&!f&&(l.preventDefault(),E&&E(l))}),De=H.useEventCallback(l=>{T&&l.key===" "&&O&&!l.defaultPrevented&&C.stop(l,()=>{C.pulsate(l)}),P&&P(l),E&&l.target===l.currentTarget&&ee()&&l.key===" "&&!l.defaultPrevented&&E(l)});let W=a;W==="button"&&(A.href||A.to)&&(W=y);const Y={};W==="button"?(Y.type=S===void 0?"button":S,Y.disabled=f):(!A.href&&!A.to&&(Y.role="button"),f&&(Y["aria-disabled"]=f));const Ve=ae.useForkRef(o,X),re={...u,centerRipple:s,component:a,disabled:f,disableRipple:h,disableTouchRipple:g,focusRipple:T,tabIndex:x,focusVisible:O},Ne=He(re);return L.jsxs(Je,{as:W,className:e.clsx(Ne.root,c),ownerState:re,onBlur:xe,onClick:E,onContextMenu:be,onFocus:Ce,onKeyDown:ve,onKeyUp:De,onMouseDown:ye,onMouseLeave:ge,onMouseUp:Pe,onDragLeave:Te,onTouchEnd:Re,onTouchMove:Ee,onTouchStart:Me,ref:Ve,tabIndex:f?-1:x,type:S,...Y,...A,children:[i,me?L.jsx(fe,{ref:he,center:s,...w}):null]})});process.env.NODE_ENV!=="production"&&(de.propTypes={action:pe.refType,centerRipple:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:pe.elementTypeAcceptingRef,disabled:e.PropTypes.bool,disableRipple:e.PropTypes.bool,disableTouchRipple:e.PropTypes.bool,focusRipple:e.PropTypes.bool,focusVisibleClassName:e.PropTypes.string,href:e.PropTypes.any,LinkComponent:e.PropTypes.elementType,onBlur:e.PropTypes.func,onClick:e.PropTypes.func,onContextMenu:e.PropTypes.func,onDragLeave:e.PropTypes.func,onFocus:e.PropTypes.func,onFocusVisible:e.PropTypes.func,onKeyDown:e.PropTypes.func,onKeyUp:e.PropTypes.func,onMouseDown:e.PropTypes.func,onMouseLeave:e.PropTypes.func,onMouseUp:e.PropTypes.func,onTouchEnd:e.PropTypes.func,onTouchMove:e.PropTypes.func,onTouchStart:e.PropTypes.func,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]),tabIndex:e.PropTypes.number,TouchRippleProps:e.PropTypes.object,touchRippleRef:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.shape({current:e.PropTypes.shape({pulsate:e.PropTypes.func.isRequired,start:e.PropTypes.func.isRequired,stop:e.PropTypes.func.isRequired})})]),type:e.PropTypes.oneOfType([e.PropTypes.oneOf(["button","reset","submit"]),e.PropTypes.string])});exports.ButtonBase=de;exports.TransitionGroup=Z;exports._extends=J;exports.isFocusVisible=te;