@cgi-learning-hub/ui 1.2.0-dev.1725543340 → 1.2.0-dev.1725543764

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 (163) hide show
  1. package/dist/Box-BDMtAH2P.cjs +1 -0
  2. package/dist/{Box-BJvmuM0Y.js → Box-CONPkck2.js} +32 -30
  3. package/dist/Button-By3A0teb.js +454 -0
  4. package/dist/Button-CBAa7bmK.cjs +1 -0
  5. package/dist/ButtonBase-D0vqeM8I.js +890 -0
  6. package/dist/ButtonBase-DePtV_m6.cjs +75 -0
  7. package/dist/CircularProgress-BRnSv2J2.cjs +28 -0
  8. package/dist/CircularProgress-BrfcRJbv.js +251 -0
  9. package/dist/DatePicker-Cw1xQ3Sn.cjs +19 -0
  10. package/dist/{DatePicker-vhA6Fe5s.js → DatePicker-wZ1VHlXF.js} +4665 -4520
  11. package/dist/DefaultButton-B2fD87Nn.cjs +1 -0
  12. package/dist/DefaultButton-B8Qi2O0K.js +353 -0
  13. package/dist/DefaultPropsProvider-B6IbLm7M.cjs +17 -0
  14. package/dist/DefaultPropsProvider-QV6PDjPd.js +468 -0
  15. package/dist/IconButton-BiLAYORS.js +239 -0
  16. package/dist/IconButton-DE-QtB3Q.cjs +2 -0
  17. package/dist/{InputAdornment-zaw7AFWU.js → InputAdornment-7ED2C-w1.js} +81 -65
  18. package/dist/InputAdornment-CJbpwt2R.cjs +1 -0
  19. package/dist/InputBase-LZPaeC-A.cjs +3 -0
  20. package/dist/InputBase-jbXydPMc.js +802 -0
  21. package/dist/{Stack-Dlgk5t_M.js → Stack-BzF_6-v5.js} +62 -60
  22. package/dist/Stack-D6Kv6y1D.cjs +1 -0
  23. package/dist/Tabs-CV_eM5RY.js +1222 -0
  24. package/dist/Tabs-DcqpjpXb.cjs +4 -0
  25. package/dist/TextField-DAxS82qf.cjs +12 -0
  26. package/dist/{TextField-DG1754qQ.js → TextField-G9MOGCdw.js} +3033 -2408
  27. package/dist/{Tooltip-C7ZUZylZ.js → Tooltip-D_4ANHAc.js} +4682 -3406
  28. package/dist/Tooltip-Ma-NowZd.cjs +100 -0
  29. package/dist/TransitionGroupContext-B5aSBz0G.js +64 -0
  30. package/dist/TransitionGroupContext-gQFtuZSh.cjs +1 -0
  31. package/dist/Typography-4kqbsc6q.js +258 -0
  32. package/dist/Typography-CNQVeQXr.cjs +1 -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/EmptyState/EmptyState.cjs.js +1 -1
  48. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  49. package/dist/components/FileList/FileList.cjs.js +1 -1
  50. package/dist/components/FileList/FileList.es.js +1 -1
  51. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  52. package/dist/components/FileList/FileListItem.es.js +10 -11
  53. package/dist/components/IconButton.stories.cjs.js +1 -1
  54. package/dist/components/IconButton.stories.es.js +13 -14
  55. package/dist/components/Loader/Loader.cjs.js +1 -1
  56. package/dist/components/Loader/Loader.es.js +1 -1
  57. package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
  58. package/dist/components/PaperHeader/PaperHeader.d.ts +3 -1
  59. package/dist/components/PaperHeader/PaperHeader.es.js +26 -28
  60. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
  61. package/dist/components/PaperHeader/PaperHeader.stories.es.js +7 -7
  62. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  63. package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
  64. package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
  65. package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
  66. package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  67. package/dist/components/PrimaryButton/PrimaryButton.stories.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 +100 -87
  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.d.ts +2 -0
  80. package/dist/components/index.es.js +244 -236
  81. package/dist/composeClasses-B_ETVugV.cjs +1 -0
  82. package/dist/composeClasses-zmPRtZOg.js +16 -0
  83. package/dist/createSvgIcon-B6bEgasO.js +249 -0
  84. package/dist/createSvgIcon-C92jLZ0q.cjs +2 -0
  85. package/dist/createSvgIcon-Cdsg9tFu.js +88 -0
  86. package/dist/createSvgIcon-CrOALbij.cjs +1 -0
  87. package/dist/extendSxProp-BpSXIdup.js +37 -0
  88. package/dist/extendSxProp-DVE8Tgj8.cjs +1 -0
  89. package/dist/{fr-CXEmlY0d.js → fr-D92L3a1M.js} +13 -13
  90. package/dist/{fr-C4bcUC-9.cjs → fr-EMw1nUC-.cjs} +1 -1
  91. package/dist/identifier-7NboR24y.cjs +59 -0
  92. package/dist/identifier-Bsv46xiT.js +2930 -0
  93. package/dist/index-C9spydU3.js +89 -0
  94. package/dist/index-DHDspyh-.cjs +1 -0
  95. package/dist/index.cjs.js +1 -1
  96. package/dist/index.es.js +244 -236
  97. package/dist/{ownerWindow-C7EH1lr6.js → ownerWindow-BoRkeomM.js} +2 -2
  98. package/dist/{refType-DiVIFcsY.js → refType-BnS1d2D8.js} +1 -1
  99. package/dist/{refType-D1DDOFsy.cjs → refType-YgbJS0xl.cjs} +1 -1
  100. package/dist/useControlled-Bf7_InaL.cjs +3 -0
  101. package/dist/useControlled-D59BLg1S.js +48 -0
  102. package/dist/useEventCallback-BgMlqKLP.js +14 -0
  103. package/dist/useEventCallback-CrCf96iG.cjs +1 -0
  104. package/dist/useId-CyGZMA-F.js +19 -0
  105. package/dist/useId-D5Txt-1B.cjs +1 -0
  106. package/dist/useTheme-A9inJAFh.cjs +1 -0
  107. package/dist/useTheme-C0nMwKpp.js +128 -0
  108. package/dist/{useTheme-1gSw-INq.js → useTheme-DzMeSzHc.js} +5 -5
  109. package/dist/useTheme-Zq6D7sUp.cjs +1 -0
  110. package/dist/useThemeProps-YFPF1eJp.js +40 -0
  111. package/dist/useThemeProps-r2yCksSx.cjs +1 -0
  112. package/package.json +15 -15
  113. package/dist/Box-2ZrLOc7U.cjs +0 -1
  114. package/dist/Button-HyZp1VKI.js +0 -359
  115. package/dist/Button-NhaA68Of.cjs +0 -1
  116. package/dist/ButtonBase-CnINN-P4.cjs +0 -75
  117. package/dist/ButtonBase-cOL6Mpcp.js +0 -827
  118. package/dist/CircularProgress-01RZzfpF.cjs +0 -28
  119. package/dist/CircularProgress-DO4r9-x8.js +0 -217
  120. package/dist/DatePicker-GTtXZK-p.cjs +0 -19
  121. package/dist/DefaultButton-BMmuKPgA.cjs +0 -1
  122. package/dist/DefaultButton-CKY6tuni.js +0 -258
  123. package/dist/IconButton-3v-0zgZW.cjs +0 -2
  124. package/dist/IconButton-BBfmzBP6.js +0 -184
  125. package/dist/InputAdornment-DHmtETz3.cjs +0 -1
  126. package/dist/InputBase-BpGQgBej.cjs +0 -3
  127. package/dist/InputBase-COUxfhh1.js +0 -794
  128. package/dist/Stack-D9IYPfJ8.cjs +0 -1
  129. package/dist/Tabs-Blo-8Ro5.js +0 -1091
  130. package/dist/Tabs-D0e7cB4l.cjs +0 -4
  131. package/dist/TextField-8AuRLRIK.cjs +0 -12
  132. package/dist/Tooltip-CFVJXplM.cjs +0 -95
  133. package/dist/TransitionGroupContext-BkoHK5Kx.js +0 -14
  134. package/dist/TransitionGroupContext-mYDSzffd.cjs +0 -1
  135. package/dist/Typography-DjrvRhOr.js +0 -178
  136. package/dist/Typography-YHooSvuR.cjs +0 -1
  137. package/dist/createStyled--XbpooZB.js +0 -142
  138. package/dist/createStyled-CuYz_ckk.cjs +0 -1
  139. package/dist/createSvgIcon-CUiH3cta.cjs +0 -1
  140. package/dist/createSvgIcon-D29Io9jD.js +0 -183
  141. package/dist/createSvgIcon-DTc4Xvfk.cjs +0 -2
  142. package/dist/createSvgIcon-DvOXtgXV.js +0 -76
  143. package/dist/identifier-CAQ9PWqs.js +0 -3046
  144. package/dist/identifier-CWIj084w.cjs +0 -50
  145. package/dist/isHostComponent-PydJW4A4.cjs +0 -1
  146. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  147. package/dist/styled-Bt4oYVnF.cjs +0 -17
  148. package/dist/styled-Co-8YWfm.js +0 -533
  149. package/dist/useControlled-DKpcyPsg.cjs +0 -3
  150. package/dist/useControlled-DoRrpN8o.js +0 -48
  151. package/dist/useId-BW-oWmul.js +0 -19
  152. package/dist/useId-Cw0TtD-8.cjs +0 -1
  153. package/dist/useIsFocusVisible-Bv_7uvif.cjs +0 -1
  154. package/dist/useIsFocusVisible-DhASXQ4o.js +0 -69
  155. package/dist/useTheme-Dm6RnXrf.cjs +0 -1
  156. package/dist/useTheme-HJhneR9g.js +0 -99
  157. package/dist/useTheme-T2P7WhLG.cjs +0 -1
  158. package/dist/useThemeProps-BKIVQv3E.js +0 -17
  159. package/dist/useThemeProps-BfZ3lLQs.js +0 -27
  160. package/dist/useThemeProps-BpFUkYqe.cjs +0 -1
  161. package/dist/useThemeProps-Co5ylM0H.cjs +0 -1
  162. package/dist/useTimeout-BdvDipeg.js +0 -47
  163. package/dist/useTimeout-XUWYBnl6.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";const a=require("react/jsx-runtime"),w=require("react"),L=require("./components/DefaultButton/DefaultButtonIcon.cjs.js"),s=require("./DefaultPropsProvider-B6IbLm7M.cjs"),n=require("./identifier-7NboR24y.cjs"),T=require("./Button-CBAa7bmK.cjs"),M=require("./useId-D5Txt-1B.cjs"),S=require("./refType-YgbJS0xl.cjs"),E=require("./composeClasses-B_ETVugV.cjs"),O=require("./CircularProgress-BRnSv2J2.cjs");function q(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const e=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(o,i,e.get?e:{enumerable:!0,get:()=>t[i]})}}return o.default=t,Object.freeze(o)}const v=q(w);function h(t){return n.generateUtilityClass("MuiLoadingButton",t)}const z=n.generateUtilityClasses("MuiLoadingButton",["root","label","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),r=z,R=t=>{const{loading:o,loadingPosition:i,classes:e}=t,u={root:["root",o&&"loading"],label:["label"],startIcon:[o&&`startIconLoading${n.capitalize(i)}`],endIcon:[o&&`endIconLoading${n.capitalize(i)}`],loadingIndicator:["loadingIndicator",o&&`loadingIndicator${n.capitalize(i)}`]},d=E.composeClasses(u,h,e);return{...e,...d}},D=t=>t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"&&t!=="classes",k=s.styled(T.Button,{shouldForwardProp:t=>D(t)||t==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(t,o)=>[o.root,o.startIconLoadingStart&&{[`& .${r.startIconLoadingStart}`]:o.startIconLoadingStart},o.endIconLoadingEnd&&{[`& .${r.endIconLoadingEnd}`]:o.endIconLoadingEnd}]})(s.memoTheme(({theme:t})=>({display:"inline-flex",[`& .${r.startIconLoadingStart}, & .${r.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0},variants:[{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${r.loading}`]:{color:"transparent"}}},{props:({ownerState:o})=>o.loadingPosition==="start"&&o.fullWidth,style:{[`& .${r.startIconLoadingStart}, & .${r.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}}},{props:({ownerState:o})=>o.loadingPosition==="end"&&o.fullWidth,style:{[`& .${r.startIconLoadingStart}, & .${r.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}}}]}))),U=s.styled("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(t,o)=>{const{ownerState:i}=t;return[o.loadingIndicator,o[`loadingIndicator${n.capitalize(i.loadingPosition)}`]]}})(s.memoTheme(({theme:t})=>({position:"absolute",visibility:"visible",display:"flex",variants:[{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:({loadingPosition:o,ownerState:i})=>o==="start"&&i.size!=="small",style:{left:14}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:({loadingPosition:o,ownerState:i})=>o==="end"&&i.size!=="small",style:{right:14}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:({ownerState:o})=>o.loadingPosition==="start"&&o.fullWidth,style:{position:"relative",left:-10}},{props:({ownerState:o})=>o.loadingPosition==="end"&&o.fullWidth,style:{position:"relative",right:-10}}]}))),B=s.styled("span",{name:"MuiLoadingButton",slot:"Label",overridesResolver:(t,o)=>[o.label]})({display:"inherit",alignItems:"inherit",justifyContent:"inherit"}),g=v.forwardRef(function(o,i){const e=v.useContext(T.ButtonGroupContext),u=s.resolveProps(e,o),d=s.useDefaultProps({props:u,name:"MuiLoadingButton"}),{children:y,disabled:P=!1,id:C,loading:p=!1,loadingIndicator:x,loadingPosition:j="center",variant:f="text",...$}=d,b=M.useId(C),I=x??a.jsx(O.CircularProgress,{"aria-labelledby":b,color:"inherit",size:16}),l={...d,disabled:P,loading:p,loadingIndicator:I,loadingPosition:j,variant:f},c=R(l),m=p?a.jsx(U,{className:c.loadingIndicator,ownerState:l,children:I}):null;return a.jsxs(k,{disabled:P||p,id:b,ref:i,...$,variant:f,classes:c,ownerState:l,children:[l.loadingPosition==="end"?a.jsx(B,{className:c.label,children:y}):m,l.loadingPosition==="end"?m:a.jsx(B,{className:c.label,children:y})]})});process.env.NODE_ENV!=="production"&&(g.propTypes={children:n.PropTypes.node,classes:n.PropTypes.object,disabled:n.PropTypes.bool,id:n.PropTypes.string,loading:n.PropTypes.bool,loadingIndicator:n.PropTypes.node,loadingPosition:S.chainPropTypes(n.PropTypes.oneOf(["start","end","center"]),t=>t.loadingPosition==="start"&&!t.startIcon?new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.'):t.loadingPosition==="end"&&!t.endIcon?new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.'):null),sx:n.PropTypes.oneOfType([n.PropTypes.arrayOf(n.PropTypes.oneOfType([n.PropTypes.func,n.PropTypes.object,n.PropTypes.bool])),n.PropTypes.func,n.PropTypes.object]),variant:n.PropTypes.oneOfType([n.PropTypes.oneOf(["contained","outlined","text"]),n.PropTypes.string])});const N=s.styled(g)(({color:t,theme:o})=>({justifyContent:"center",alignItems:"center",minHeight:38,textTransform:"none",color:t,borderColor:t,borderRadius:5,borderWidth:2,transition:"all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&.MuiButton-contained":{color:o.palette.common.white},"&.MuiButton-outlined":{borderRadius:5,borderWidth:2,"&.MuiButton-colorPrimary":{"&:active":{borderColor:o.palette.primary.main,color:o.palette.primary.main},"&:hover":{backgroundColor:o.palette.primary.dark,borderColor:o.palette.primary.dark,color:o.palette.common.white}},"&.MuiButton-colorSecondary":{"&:active":{borderColor:o.palette.secondary.main,color:o.palette.secondary.main},"&:hover":{backgroundColor:o.palette.secondary.main,color:o.palette.common.white}},"&.MuiButton-colorError":{"&:active":{borderColor:o.palette.error.main,color:o.palette.error.main},"&:hover":{backgroundColor:o.palette.error.main,color:o.palette.common.white}}}})),W=({icon:t,text:o,...i})=>{const e=i.color??"primary";return a.jsx(N,{...i,color:e,startIcon:(t==null?void 0:t.position)==="left"?a.jsx(L,{...t}):void 0,endIcon:(t==null?void 0:t.position)==="right"?a.jsx(L,{...t}):void 0,children:o})};exports.DefaultButton=W;exports.LoadingButton=g;exports.getLoadingButtonUtilityClass=h;exports.loadingButtonClasses=r;
@@ -0,0 +1,353 @@
1
+ import { jsxs as M, jsx as r } from "react/jsx-runtime";
2
+ import * as P from "react";
3
+ import v from "./components/DefaultButton/DefaultButtonIcon.es.js";
4
+ import { s as g, m as B, r as S, u as R } from "./DefaultPropsProvider-QV6PDjPd.js";
5
+ import { I as T, J as j, K as c, P as n } from "./identifier-Bsv46xiT.js";
6
+ import { B as z, a as O } from "./Button-By3A0teb.js";
7
+ import { u as k } from "./useId-CyGZMA-F.js";
8
+ import { c as U } from "./refType-BnS1d2D8.js";
9
+ import { c as W } from "./composeClasses-zmPRtZOg.js";
10
+ import { C as D } from "./CircularProgress-BrfcRJbv.js";
11
+ function N(t) {
12
+ return T("MuiLoadingButton", t);
13
+ }
14
+ const F = j("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), a = F, G = (t) => {
15
+ const {
16
+ loading: o,
17
+ loadingPosition: i,
18
+ classes: s
19
+ } = t, u = {
20
+ root: ["root", o && "loading"],
21
+ label: ["label"],
22
+ startIcon: [o && `startIconLoading${c(i)}`],
23
+ endIcon: [o && `endIconLoading${c(i)}`],
24
+ loadingIndicator: ["loadingIndicator", o && `loadingIndicator${c(i)}`]
25
+ }, d = W(u, N, s);
26
+ return {
27
+ ...s,
28
+ // forward the outlined, color, etc. classes to Button
29
+ ...d
30
+ };
31
+ }, H = (t) => t !== "ownerState" && t !== "theme" && t !== "sx" && t !== "as" && t !== "classes", J = g(z, {
32
+ shouldForwardProp: (t) => H(t) || t === "classes",
33
+ name: "MuiLoadingButton",
34
+ slot: "Root",
35
+ overridesResolver: (t, o) => [o.root, o.startIconLoadingStart && {
36
+ [`& .${a.startIconLoadingStart}`]: o.startIconLoadingStart
37
+ }, o.endIconLoadingEnd && {
38
+ [`& .${a.endIconLoadingEnd}`]: o.endIconLoadingEnd
39
+ }]
40
+ })(B(({
41
+ theme: t
42
+ }) => ({
43
+ display: "inline-flex",
44
+ [`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
45
+ transition: t.transitions.create(["opacity"], {
46
+ duration: t.transitions.duration.short
47
+ }),
48
+ opacity: 0
49
+ },
50
+ variants: [{
51
+ props: {
52
+ loadingPosition: "center"
53
+ },
54
+ style: {
55
+ transition: t.transitions.create(["background-color", "box-shadow", "border-color"], {
56
+ duration: t.transitions.duration.short
57
+ }),
58
+ [`&.${a.loading}`]: {
59
+ color: "transparent"
60
+ }
61
+ }
62
+ }, {
63
+ props: ({
64
+ ownerState: o
65
+ }) => o.loadingPosition === "start" && o.fullWidth,
66
+ style: {
67
+ [`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
68
+ transition: t.transitions.create(["opacity"], {
69
+ duration: t.transitions.duration.short
70
+ }),
71
+ opacity: 0,
72
+ marginRight: -8
73
+ }
74
+ }
75
+ }, {
76
+ props: ({
77
+ ownerState: o
78
+ }) => o.loadingPosition === "end" && o.fullWidth,
79
+ style: {
80
+ [`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
81
+ transition: t.transitions.create(["opacity"], {
82
+ duration: t.transitions.duration.short
83
+ }),
84
+ opacity: 0,
85
+ marginLeft: -8
86
+ }
87
+ }
88
+ }]
89
+ }))), K = g("span", {
90
+ name: "MuiLoadingButton",
91
+ slot: "LoadingIndicator",
92
+ overridesResolver: (t, o) => {
93
+ const {
94
+ ownerState: i
95
+ } = t;
96
+ return [o.loadingIndicator, o[`loadingIndicator${c(i.loadingPosition)}`]];
97
+ }
98
+ })(B(({
99
+ theme: t
100
+ }) => ({
101
+ position: "absolute",
102
+ visibility: "visible",
103
+ display: "flex",
104
+ variants: [{
105
+ props: {
106
+ loadingPosition: "start",
107
+ size: "small"
108
+ },
109
+ style: {
110
+ left: 10
111
+ }
112
+ }, {
113
+ props: ({
114
+ loadingPosition: o,
115
+ ownerState: i
116
+ }) => o === "start" && i.size !== "small",
117
+ style: {
118
+ left: 14
119
+ }
120
+ }, {
121
+ props: {
122
+ variant: "text",
123
+ loadingPosition: "start"
124
+ },
125
+ style: {
126
+ left: 6
127
+ }
128
+ }, {
129
+ props: {
130
+ loadingPosition: "center"
131
+ },
132
+ style: {
133
+ left: "50%",
134
+ transform: "translate(-50%)",
135
+ color: (t.vars || t).palette.action.disabled
136
+ }
137
+ }, {
138
+ props: {
139
+ loadingPosition: "end",
140
+ size: "small"
141
+ },
142
+ style: {
143
+ right: 10
144
+ }
145
+ }, {
146
+ props: ({
147
+ loadingPosition: o,
148
+ ownerState: i
149
+ }) => o === "end" && i.size !== "small",
150
+ style: {
151
+ right: 14
152
+ }
153
+ }, {
154
+ props: {
155
+ variant: "text",
156
+ loadingPosition: "end"
157
+ },
158
+ style: {
159
+ right: 6
160
+ }
161
+ }, {
162
+ props: ({
163
+ ownerState: o
164
+ }) => o.loadingPosition === "start" && o.fullWidth,
165
+ style: {
166
+ position: "relative",
167
+ left: -10
168
+ }
169
+ }, {
170
+ props: ({
171
+ ownerState: o
172
+ }) => o.loadingPosition === "end" && o.fullWidth,
173
+ style: {
174
+ position: "relative",
175
+ right: -10
176
+ }
177
+ }]
178
+ }))), h = g("span", {
179
+ name: "MuiLoadingButton",
180
+ slot: "Label",
181
+ overridesResolver: (t, o) => [o.label]
182
+ })({
183
+ display: "inherit",
184
+ alignItems: "inherit",
185
+ justifyContent: "inherit"
186
+ }), C = /* @__PURE__ */ P.forwardRef(function(o, i) {
187
+ const s = P.useContext(O), u = S(s, o), d = R({
188
+ props: u,
189
+ name: "MuiLoadingButton"
190
+ }), {
191
+ children: m,
192
+ disabled: I = !1,
193
+ id: x,
194
+ loading: p = !1,
195
+ loadingIndicator: $,
196
+ loadingPosition: w = "center",
197
+ variant: f = "text",
198
+ ...E
199
+ } = d, b = k(x), y = $ ?? /* @__PURE__ */ r(D, {
200
+ "aria-labelledby": b,
201
+ color: "inherit",
202
+ size: 16
203
+ }), e = {
204
+ ...d,
205
+ disabled: I,
206
+ loading: p,
207
+ loadingIndicator: y,
208
+ loadingPosition: w,
209
+ variant: f
210
+ }, l = G(e), L = p ? /* @__PURE__ */ r(K, {
211
+ className: l.loadingIndicator,
212
+ ownerState: e,
213
+ children: y
214
+ }) : null;
215
+ return /* @__PURE__ */ M(J, {
216
+ disabled: I || p,
217
+ id: b,
218
+ ref: i,
219
+ ...E,
220
+ variant: f,
221
+ classes: l,
222
+ ownerState: e,
223
+ children: [e.loadingPosition === "end" ? /* @__PURE__ */ r(h, {
224
+ className: l.label,
225
+ children: m
226
+ }) : L, e.loadingPosition === "end" ? L : /* @__PURE__ */ r(h, {
227
+ className: l.label,
228
+ children: m
229
+ })]
230
+ });
231
+ });
232
+ process.env.NODE_ENV !== "production" && (C.propTypes = {
233
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
234
+ // │ These PropTypes are generated from the TypeScript type definitions. │
235
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
236
+ // └─────────────────────────────────────────────────────────────────────┘
237
+ /**
238
+ * The content of the component.
239
+ */
240
+ children: n.node,
241
+ /**
242
+ * Override or extend the styles applied to the component.
243
+ */
244
+ classes: n.object,
245
+ /**
246
+ * If `true`, the component is disabled.
247
+ * @default false
248
+ */
249
+ disabled: n.bool,
250
+ /**
251
+ * @ignore
252
+ */
253
+ id: n.string,
254
+ /**
255
+ * If `true`, the loading indicator is shown and the button becomes disabled.
256
+ * @default false
257
+ */
258
+ loading: n.bool,
259
+ /**
260
+ * Element placed before the children if the button is in loading state.
261
+ * The node should contain an element with `role="progressbar"` with an accessible name.
262
+ * By default we render a `CircularProgress` that is labelled by the button itself.
263
+ * @default <CircularProgress color="inherit" size={16} />
264
+ */
265
+ loadingIndicator: n.node,
266
+ /**
267
+ * The loading indicator can be positioned on the start, end, or the center of the button.
268
+ * @default 'center'
269
+ */
270
+ loadingPosition: U(n.oneOf(["start", "end", "center"]), (t) => t.loadingPosition === "start" && !t.startIcon ? new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.') : t.loadingPosition === "end" && !t.endIcon ? new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.') : null),
271
+ /**
272
+ * The system prop that allows defining system overrides as well as additional CSS styles.
273
+ */
274
+ sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object]),
275
+ /**
276
+ * The variant to use.
277
+ * @default 'text'
278
+ */
279
+ variant: n.oneOfType([n.oneOf(["contained", "outlined", "text"]), n.string])
280
+ });
281
+ const V = g(C)(
282
+ ({ color: t, theme: o }) => ({
283
+ justifyContent: "center",
284
+ alignItems: "center",
285
+ minHeight: 38,
286
+ textTransform: "none",
287
+ color: t,
288
+ borderColor: t,
289
+ borderRadius: 5,
290
+ borderWidth: 2,
291
+ transition: "all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
292
+ "&.MuiButton-contained": {
293
+ color: o.palette.common.white
294
+ },
295
+ "&.MuiButton-outlined": {
296
+ borderRadius: 5,
297
+ borderWidth: 2,
298
+ "&.MuiButton-colorPrimary": {
299
+ "&:active": {
300
+ borderColor: o.palette.primary.main,
301
+ color: o.palette.primary.main
302
+ },
303
+ "&:hover": {
304
+ backgroundColor: o.palette.primary.dark,
305
+ borderColor: o.palette.primary.dark,
306
+ color: o.palette.common.white
307
+ }
308
+ },
309
+ "&.MuiButton-colorSecondary": {
310
+ "&:active": {
311
+ borderColor: o.palette.secondary.main,
312
+ color: o.palette.secondary.main
313
+ },
314
+ "&:hover": {
315
+ backgroundColor: o.palette.secondary.main,
316
+ color: o.palette.common.white
317
+ }
318
+ },
319
+ "&.MuiButton-colorError": {
320
+ "&:active": {
321
+ borderColor: o.palette.error.main,
322
+ color: o.palette.error.main
323
+ },
324
+ "&:hover": {
325
+ backgroundColor: o.palette.error.main,
326
+ color: o.palette.common.white
327
+ }
328
+ }
329
+ }
330
+ })
331
+ ), no = ({
332
+ icon: t,
333
+ text: o,
334
+ ...i
335
+ }) => {
336
+ const s = i.color ?? "primary";
337
+ return /* @__PURE__ */ r(
338
+ V,
339
+ {
340
+ ...i,
341
+ color: s,
342
+ startIcon: (t == null ? void 0 : t.position) === "left" ? /* @__PURE__ */ r(v, { ...t }) : void 0,
343
+ endIcon: (t == null ? void 0 : t.position) === "right" ? /* @__PURE__ */ r(v, { ...t }) : void 0,
344
+ children: o
345
+ }
346
+ );
347
+ };
348
+ export {
349
+ no as D,
350
+ C as L,
351
+ N as g,
352
+ a as l
353
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";const P=require("./identifier-7NboR24y.cjs"),be=require("react"),we=require("react/jsx-runtime");function Ce(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const te=Ce(be);var U={exports:{}},u={};/**
2
+ * @license React
3
+ * react-is.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var B;function $e(){if(B)return u;B=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),m=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),O;O=Symbol.for("react.module.reference");function y(t){if(typeof t=="object"&&t!==null){var b=t.$$typeof;switch(b){case e:switch(t=t.type,t){case r:case s:case i:case c:case l:return t;default:switch(t=t&&t.$$typeof,t){case m:case f:case p:case _:case h:case d:return t;default:return b}}case n:return b}}}return u.ContextConsumer=f,u.ContextProvider=d,u.Element=e,u.ForwardRef=p,u.Fragment=r,u.Lazy=_,u.Memo=h,u.Portal=n,u.Profiler=s,u.StrictMode=i,u.Suspense=c,u.SuspenseList=l,u.isAsyncMode=function(){return!1},u.isConcurrentMode=function(){return!1},u.isContextConsumer=function(t){return y(t)===f},u.isContextProvider=function(t){return y(t)===d},u.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===e},u.isForwardRef=function(t){return y(t)===p},u.isFragment=function(t){return y(t)===r},u.isLazy=function(t){return y(t)===_},u.isMemo=function(t){return y(t)===h},u.isPortal=function(t){return y(t)===n},u.isProfiler=function(t){return y(t)===s},u.isStrictMode=function(t){return y(t)===i},u.isSuspense=function(t){return y(t)===c},u.isSuspenseList=function(t){return y(t)===l},u.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===r||t===s||t===i||t===c||t===l||t===A||typeof t=="object"&&t!==null&&(t.$$typeof===_||t.$$typeof===h||t.$$typeof===d||t.$$typeof===f||t.$$typeof===p||t.$$typeof===O||t.getModuleId!==void 0)},u.typeOf=y,u}var a={};/**
10
+ * @license React
11
+ * react-is.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var J;function Ae(){return J||(J=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),f=Symbol.for("react.context"),m=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),O=!1,y=!1,t=!1,b=!1,x=!1,F;F=Symbol.for("react.module.reference");function D(o){return!!(typeof o=="string"||typeof o=="function"||o===r||o===s||x||o===i||o===c||o===l||b||o===A||O||y||t||typeof o=="object"&&o!==null&&(o.$$typeof===_||o.$$typeof===h||o.$$typeof===d||o.$$typeof===f||o.$$typeof===p||o.$$typeof===F||o.getModuleId!==void 0))}function v(o){if(typeof o=="object"&&o!==null){var W=o.$$typeof;switch(W){case e:var V=o.type;switch(V){case r:case s:case i:case c:case l:return V;default:var Z=V&&V.$$typeof;switch(Z){case m:case f:case p:case _:case h:case d:return Z;default:return W}}case n:return W}}}var E=f,T=d,M=e,w=p,I=r,g=_,S=h,R=n,C=s,$=i,N=c,L=l,X=!1,G=!1;function fe(o){return X||(X=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function le(o){return G||(G=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function de(o){return v(o)===f}function me(o){return v(o)===d}function pe(o){return typeof o=="object"&&o!==null&&o.$$typeof===e}function ye(o){return v(o)===p}function Se(o){return v(o)===r}function ve(o){return v(o)===_}function Ee(o){return v(o)===h}function he(o){return v(o)===n}function Pe(o){return v(o)===s}function _e(o){return v(o)===i}function Te(o){return v(o)===c}function Re(o){return v(o)===l}a.ContextConsumer=E,a.ContextProvider=T,a.Element=M,a.ForwardRef=w,a.Fragment=I,a.Lazy=g,a.Memo=S,a.Portal=R,a.Profiler=C,a.StrictMode=$,a.Suspense=N,a.SuspenseList=L,a.isAsyncMode=fe,a.isConcurrentMode=le,a.isContextConsumer=de,a.isContextProvider=me,a.isElement=pe,a.isForwardRef=ye,a.isFragment=Se,a.isLazy=ve,a.isMemo=Ee,a.isPortal=he,a.isProfiler=Pe,a.isStrictMode=_e,a.isSuspense=Te,a.isSuspenseList=Re,a.isValidElementType=D,a.typeOf=v}()),a}process.env.NODE_ENV==="production"?U.exports=$e():U.exports=Ae();var H=U.exports;function ne(e,n=""){return e.displayName||e.name||n}function Q(e,n,r){const i=ne(n);return e.displayName||(i!==""?`${r}(${i})`:r)}function Oe(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ne(e,"Component");if(typeof e=="object")switch(e.$$typeof){case H.ForwardRef:return Q(e,e.render,"ForwardRef");case H.Memo:return Q(e,e.type,"memo");default:return}}}function z(e,n){const r={...n};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=i;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const d=e[s],f=n[s];if(!f)r[s]=d||{};else if(!d)r[s]=f;else{r[s]={...f};for(const m in d)if(Object.prototype.hasOwnProperty.call(d,m)){const p=m;r[s][p]=z(d[p],f[p])}}}else r[s]===void 0&&(r[s]=e[s])}return r}function xe(e,n,r=void 0){const i={};for(const s in e){const d=e[s];let f="",m=!0;for(let p=0;p<d.length;p+=1){const c=d[p];c&&(f+=(m===!0?"":" ")+n(c),m=!1,r&&r[c]&&(f+=" "+r[c]))}i[s]=f}return i}const Fe=P.createTheme$1();function k(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function K(e,n,r){return Me(n)?r:n[e]||n}const j=Symbol("mui.processed_props");function Y(e,n,r){if(j in e)return e[j];const i={...e,theme:K(n,e.theme,r)};return e[j]=i,i[j]=i,i}function Ne(e){return e?(n,r)=>r[e]:null}function q(e,n){var i;const r=typeof e=="function"?e(n):e;if(Array.isArray(r))return r.flatMap(s=>q(s,n));if(Array.isArray(r==null?void 0:r.variants)){const{variants:s,...d}=r;let f=d,m;e:for(let p=0;p<s.length;p+=1){const c=s[p];if(typeof c.props=="function"){if(m??(m={...n,...n.ownerState,ownerState:n.ownerState}),!c.props(m))continue}else for(const l in c.props)if(n[l]!==c.props[l]&&((i=n.ownerState)==null?void 0:i[l])!==c.props[l])continue e;Array.isArray(f)||(f=[f]),typeof c.style=="function"?(m??(m={...n,...n.ownerState,ownerState:n.ownerState}),f.push(c.style(m))):f.push(c.style)}return f}return r}function oe(e={}){const{themeId:n,defaultTheme:r=Fe,rootShouldForwardProp:i=k,slotShouldForwardProp:s=k}=e,d=m=>P.styleFunctionSx(Y(m,n,r));return d.__mui_systemSx=!0,(m,p={})=>{P.internal_processStyles(m,E=>E.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:c,slot:l,skipVariantsResolver:h,skipSx:_,overridesResolver:A=Ne(ee(l)),...O}=p,y=h!==void 0?h:l&&l!=="Root"&&l!=="root"||!1,t=_||!1;let b;process.env.NODE_ENV!=="production"&&c&&(b=`${c}-${ee(l||"Root")}`);let x=k;l==="Root"||l==="root"?x=i:l?x=s:ge(m)&&(x=void 0);const F=P.styled(m,{shouldForwardProp:x,label:b,...O}),D=E=>typeof E=="function"&&E.__emotion_real!==E||P.isPlainObject(E)?T=>q(E,Y(T,n,r)):E,v=(E,...T)=>{let M=D(E);const w=T?T.map(D):[];c&&A&&w.push(S=>{const R=K(n,S.theme,r);if(!R.components||!R.components[c]||!R.components[c].styleOverrides)return null;const C=R.components[c].styleOverrides,$={},N=Y(S,n,r);for(const L in C)$[L]=q(C[L],N);return A(S,$)}),c&&!y&&w.push(S=>{var $,N;const R=K(n,S.theme,r),C=(N=($=R==null?void 0:R.components)==null?void 0:$[c])==null?void 0:N.variants;return C?q({variants:C},Y(S,n,r)):null}),t||w.push(d);const I=w.length-T.length;if(Array.isArray(E)&&I>0){const S=new Array(I).fill("");M=[...E,...S],M.raw=[...E.raw,...S]}const g=F(M,...w);if(process.env.NODE_ENV!=="production"){let S;c&&(S=`${c}${P.capitalize(l||"")}`),S===void 0&&(S=`Styled(${Oe(m)})`),g.displayName=S}return m.muiName&&(g.muiName=m.muiName),g};return F.withConfig&&(v.withConfig=F.withConfig),v}}function Me(e){for(const n in e)return!1;return!0}function ge(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ee(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const se=te.createContext(void 0);function ie({value:e,children:n}){return we.jsx(se.Provider,{value:e,children:n})}process.env.NODE_ENV!=="production"&&(ie.propTypes={children:P.PropTypes.node,value:P.PropTypes.object});function De(e){const{theme:n,name:r,props:i}=e;if(!n||!n.components||!n.components[r])return i;const s=n.components[r];return s.defaultProps?z(s.defaultProps,i):!s.styleOverrides&&!s.variants?z(s,i):i}function Ie({props:e,name:n}){const r=te.useContext(se);return De({props:e,name:n,theme:{components:r}})}const ce=P.createTheme();function ue(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ae=e=>ue(e)&&e!=="classes",Le=oe({themeId:P.THEME_ID,defaultTheme:ce,rootShouldForwardProp:ae}),re={theme:void 0};function Ve(e){let n,r;return i=>{let s=n;return(s===void 0||i.theme!==r)&&(re.theme=i.theme,s=e(re),n=s,r=i.theme),s}}process.env.NODE_ENV!=="production"&&(P.PropTypes.node,P.PropTypes.object.isRequired);function je(e){return Ie(e)}exports.DefaultPropsProvider=ie;exports.composeClasses=xe;exports.createStyled=oe;exports.defaultTheme=ce;exports.memoTheme=Ve;exports.reactIsExports=H;exports.resolveProps=z;exports.rootShouldForwardProp=ae;exports.shouldForwardProp=k;exports.slotShouldForwardProp=ue;exports.styled=Le;exports.useDefaultProps=je;