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

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 (109) hide show
  1. package/dist/{Box-P3WhGgSH.cjs → Box-BDMtAH2P.cjs} +1 -1
  2. package/dist/{Box-B6xx2g1Y.js → Box-CONPkck2.js} +3 -3
  3. package/dist/{Button-BlSyZq45.js → Button-By3A0teb.js} +3 -3
  4. package/dist/{Button-CZO3I5oS.cjs → Button-CBAa7bmK.cjs} +1 -1
  5. package/dist/{ButtonBase-Mr4S_NG8.js → ButtonBase-D0vqeM8I.js} +13 -13
  6. package/dist/{ButtonBase-C-IxZjoy.cjs → ButtonBase-DePtV_m6.cjs} +3 -3
  7. package/dist/{CircularProgress-D1dO7At_.cjs → CircularProgress-BRnSv2J2.cjs} +1 -1
  8. package/dist/{CircularProgress-bltZBt14.js → CircularProgress-BrfcRJbv.js} +3 -3
  9. package/dist/DatePicker-Cw1xQ3Sn.cjs +19 -0
  10. package/dist/{DatePicker-BM4qYpPt.js → DatePicker-wZ1VHlXF.js} +2710 -2656
  11. package/dist/DefaultButton-B1wjXZO7.cjs +1 -0
  12. package/dist/DefaultButton-dbnwLtyd.js +351 -0
  13. package/dist/{DefaultPropsProvider-DwweZ7qj.cjs → DefaultPropsProvider-B6IbLm7M.cjs} +1 -1
  14. package/dist/{DefaultPropsProvider-BDdV3S11.js → DefaultPropsProvider-QV6PDjPd.js} +1 -1
  15. package/dist/{IconButton-DeGwRNnI.js → IconButton-BiLAYORS.js} +4 -4
  16. package/dist/{IconButton-8pelIq63.cjs → IconButton-DE-QtB3Q.cjs} +1 -1
  17. package/dist/{InputAdornment-Dd24Ymt-.js → InputAdornment-7ED2C-w1.js} +4 -4
  18. package/dist/{InputAdornment-BhrFtLIz.cjs → InputAdornment-CJbpwt2R.cjs} +1 -1
  19. package/dist/{InputBase-OefmcFzX.cjs → InputBase-LZPaeC-A.cjs} +1 -1
  20. package/dist/{InputBase-BUzAEUpC.js → InputBase-jbXydPMc.js} +4 -4
  21. package/dist/{Stack-D_hQlRGm.js → Stack-BzF_6-v5.js} +4 -4
  22. package/dist/{Stack-BnpqP5GW.cjs → Stack-D6Kv6y1D.cjs} +1 -1
  23. package/dist/{Tabs-D0SZWveL.js → Tabs-CV_eM5RY.js} +6 -6
  24. package/dist/{Tabs-BqbRbRmo.cjs → Tabs-DcqpjpXb.cjs} +1 -1
  25. package/dist/{TextField-DXEOL4uC.cjs → TextField-DAxS82qf.cjs} +1 -1
  26. package/dist/{TextField-cX-VBTii.js → TextField-G9MOGCdw.js} +8 -8
  27. package/dist/{Tooltip-B3_y8U1N.js → Tooltip-D_4ANHAc.js} +18 -18
  28. package/dist/{Tooltip-DiglEjt6.cjs → Tooltip-Ma-NowZd.cjs} +1 -1
  29. package/dist/{TransitionGroupContext-SbAHUhOx.js → TransitionGroupContext-B5aSBz0G.js} +13 -13
  30. package/dist/TransitionGroupContext-gQFtuZSh.cjs +1 -0
  31. package/dist/{Typography-kwaQt8VQ.js → Typography-4kqbsc6q.js} +3 -3
  32. package/dist/{Typography-DWgJpyZG.cjs → Typography-CNQVeQXr.cjs} +1 -1
  33. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  34. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  35. package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
  36. package/dist/components/DatePicker/DatePicker.stories.es.js +1 -1
  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 +2 -2
  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 +1 -1
  46. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  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 +5 -5
  51. package/dist/components/IconButton.stories.cjs.js +1 -1
  52. package/dist/components/IconButton.stories.es.js +2 -2
  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.es.js +2 -2
  57. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
  58. package/dist/components/PaperHeader/PaperHeader.stories.es.js +2 -2
  59. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  60. package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
  61. package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
  62. package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
  63. package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  64. package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  65. package/dist/components/QueryError/QueryError.cjs.js +1 -1
  66. package/dist/components/QueryError/QueryError.es.js +1 -1
  67. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  68. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  69. package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -1
  70. package/dist/components/SecondaryButton/SecondaryButton.es.js +1 -1
  71. package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  72. package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  73. package/dist/components/TabList.stories.cjs.js +1 -1
  74. package/dist/components/TabList.stories.es.js +87 -77
  75. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  76. package/dist/components/TextInput/TextInput.es.js +1 -1
  77. package/dist/components/index.cjs.js +1 -1
  78. package/dist/components/index.es.js +16 -16
  79. package/dist/composeClasses-B_ETVugV.cjs +1 -0
  80. package/dist/composeClasses-zmPRtZOg.js +16 -0
  81. package/dist/{createSvgIcon-BwYG_otT.js → createSvgIcon-B6bEgasO.js} +2 -2
  82. package/dist/{createSvgIcon-BNfyXTi3.cjs → createSvgIcon-C92jLZ0q.cjs} +1 -1
  83. package/dist/{createSvgIcon-DIHNjNhw.js → createSvgIcon-Cdsg9tFu.js} +3 -3
  84. package/dist/{createSvgIcon-DMxj0zKp.cjs → createSvgIcon-CrOALbij.cjs} +1 -1
  85. package/dist/{extendSxProp-BkIEJBCN.js → extendSxProp-BpSXIdup.js} +1 -1
  86. package/dist/{extendSxProp-DhEbeVWY.cjs → extendSxProp-DVE8Tgj8.cjs} +1 -1
  87. package/dist/{fr-BmQdNgE2.js → fr-D92L3a1M.js} +1 -1
  88. package/dist/{fr-BwBKunbe.cjs → fr-EMw1nUC-.cjs} +1 -1
  89. package/dist/{identifier-Dx5_fEyA.cjs → identifier-7NboR24y.cjs} +3 -3
  90. package/dist/{identifier-SatcAo-F.js → identifier-Bsv46xiT.js} +27 -27
  91. package/dist/{index-C1wNRRuv.js → index-C9spydU3.js} +4 -4
  92. package/dist/{index-D30fIOec.cjs → index-DHDspyh-.cjs} +1 -1
  93. package/dist/index.cjs.js +1 -1
  94. package/dist/index.es.js +16 -16
  95. package/dist/{refType-Dv9Yduc2.js → refType-BnS1d2D8.js} +1 -1
  96. package/dist/{refType-CVYH4raj.cjs → refType-YgbJS0xl.cjs} +1 -1
  97. package/dist/{useTheme-pRydhCrj.cjs → useTheme-A9inJAFh.cjs} +1 -1
  98. package/dist/{useTheme-C3EDRRFw.js → useTheme-C0nMwKpp.js} +3 -3
  99. package/dist/{useTheme-5-WD2s8Q.js → useTheme-DzMeSzHc.js} +1 -1
  100. package/dist/{useTheme-C8ZuVDEs.cjs → useTheme-Zq6D7sUp.cjs} +1 -1
  101. package/dist/{useThemeProps-uqUSigAC.js → useThemeProps-YFPF1eJp.js} +3 -3
  102. package/dist/{useThemeProps-D26oU7wL.cjs → useThemeProps-r2yCksSx.cjs} +1 -1
  103. package/package.json +8 -8
  104. package/dist/DatePicker-B8FaO6N3.cjs +0 -19
  105. package/dist/DefaultButton-BbTf0WK8.cjs +0 -1
  106. package/dist/DefaultButton-Crs2UW2V.js +0 -278
  107. package/dist/TransitionGroupContext-LWgXgADB.cjs +0 -1
  108. package/dist/generateUtilityClasses-BwskEdpL.js +0 -58
  109. package/dist/generateUtilityClasses-CzQVzFT6.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";const c=require("react/jsx-runtime"),m=require("react"),T=require("./components/DefaultButton/DefaultButtonIcon.cjs.js"),g=require("./DefaultPropsProvider-DwweZ7qj.cjs"),M=require("./TransitionGroupContext-LWgXgADB.cjs"),d=require("./ButtonBase-C-IxZjoy.cjs"),r=require("./identifier-Dx5_fEyA.cjs"),f=require("./generateUtilityClasses-CzQVzFT6.cjs"),C=require("./Button-CZO3I5oS.cjs"),q=require("./useId-D5Txt-1B.cjs"),k=require("./CircularProgress-D1dO7At_.cjs");function R(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(o,i,n.get?n:{enumerable:!0,get:()=>t[i]})}}return o.default=t,Object.freeze(o)}const h=R(m);function D(t,o){return process.env.NODE_ENV==="production"?()=>null:function(...n){return t(...n)||o(...n)}}function j(t,o){const i=d._extends({},o);return Object.keys(t).forEach(n=>{if(n.toString().match(/^(components|slots)$/))i[n]=d._extends({},t[n],i[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const s=t[n]||{},a=o[n];i[n]={},!a||!Object.keys(a)?i[n]=s:!s||!Object.keys(s)?i[n]=a:(i[n]=d._extends({},a),Object.keys(s).forEach(l=>{i[n][l]=j(s[l],a[l])}))}else i[n]===void 0&&(i[n]=t[n])}),i}function $(t){return f.generateUtilityClass("MuiLoadingButton",t)}const z=f.generateUtilityClasses("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),e=z,U=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],W=t=>{const{loading:o,loadingPosition:i,classes:n}=t,s={root:["root",o&&"loading"],startIcon:[o&&`startIconLoading${r.capitalize(i)}`],endIcon:[o&&`endIconLoading${r.capitalize(i)}`],loadingIndicator:["loadingIndicator",o&&`loadingIndicator${r.capitalize(i)}`]},a=f.composeClasses(s,$,n);return d._extends({},n,a)},G=t=>t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"&&t!=="classes",F=g.styled(C.Button,{shouldForwardProp:t=>G(t)||t==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(t,o)=>[o.root,o.startIconLoadingStart&&{[`& .${e.startIconLoadingStart}`]:o.startIconLoadingStart},o.endIconLoadingEnd&&{[`& .${e.endIconLoadingEnd}`]:o.endIconLoadingEnd}]})(({ownerState:t,theme:o})=>d._extends({[`& .${e.startIconLoadingStart}, & .${e.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0}},t.loadingPosition==="center"&&{transition:o.transitions.create(["background-color","box-shadow","border-color"],{duration:o.transitions.duration.short}),[`&.${e.loading}`]:{color:"transparent"}},t.loadingPosition==="start"&&t.fullWidth&&{[`& .${e.startIconLoadingStart}, & .${e.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginRight:-8}},t.loadingPosition==="end"&&t.fullWidth&&{[`& .${e.startIconLoadingStart}, & .${e.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginLeft:-8}})),V=g.styled("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(t,o)=>{const{ownerState:i}=t;return[o.loadingIndicator,o[`loadingIndicator${r.capitalize(i.loadingPosition)}`]]}})(({theme:t,ownerState:o})=>d._extends({position:"absolute",visibility:"visible",display:"flex"},o.loadingPosition==="start"&&(o.variant==="outlined"||o.variant==="contained")&&{left:o.size==="small"?10:14},o.loadingPosition==="start"&&o.variant==="text"&&{left:6},o.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled},o.loadingPosition==="end"&&(o.variant==="outlined"||o.variant==="contained")&&{right:o.size==="small"?10:14},o.loadingPosition==="end"&&o.variant==="text"&&{right:6},o.loadingPosition==="start"&&o.fullWidth&&{position:"relative",left:-10},o.loadingPosition==="end"&&o.fullWidth&&{position:"relative",right:-10})),y=h.forwardRef(function(o,i){const n=h.useContext(C.ButtonGroupContext),s=j(n,o),a=g.useDefaultProps({props:s,name:"MuiLoadingButton"}),{children:l,disabled:P=!1,id:E,loading:p=!1,loadingIndicator:b,loadingPosition:O="center",variant:I="text"}=a,_=M._objectWithoutPropertiesLoose(a,U),L=q.useId(E),v=b??c.jsx(k.CircularProgress,{"aria-labelledby":L,color:"inherit",size:16}),u=d._extends({},a,{disabled:P,loading:p,loadingIndicator:v,loadingPosition:O,variant:I}),B=W(u),x=p?c.jsx(V,{className:B.loadingIndicator,ownerState:u,children:v}):null;return c.jsxs(F,d._extends({disabled:P||p,id:L,ref:i},_,{variant:I,classes:B,ownerState:u,children:[u.loadingPosition==="end"?l:x,u.loadingPosition==="end"?x:l]}))});process.env.NODE_ENV!=="production"&&(y.propTypes={children:r.PropTypes.node,classes:r.PropTypes.object,disabled:r.PropTypes.bool,id:r.PropTypes.string,loading:r.PropTypes.bool,loadingIndicator:r.PropTypes.node,loadingPosition:D(r.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:r.PropTypes.oneOfType([r.PropTypes.arrayOf(r.PropTypes.oneOfType([r.PropTypes.func,r.PropTypes.object,r.PropTypes.bool])),r.PropTypes.func,r.PropTypes.object]),variant:r.PropTypes.oneOfType([r.PropTypes.oneOf(["contained","outlined","text"]),r.PropTypes.string])});const H=g.styled(y)(({color:t,theme:o})=>({justifyContent:"center",alignItems:"center",columnGap:8,minHeight:38,paddingLeft:12,paddingRight:12,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}}}})),S=({icon:t,text:o,...i})=>{const n=i.color??"primary";return c.jsxs(H,{...i,color:n,children:[(t==null?void 0:t.position)==="left"?c.jsx(T,{...t}):null,o,(t==null?void 0:t.position)==="right"?c.jsx(T,{...t}):null]})};exports.DefaultButton=S;exports.LoadingButton=y;exports.getLoadingButtonUtilityClass=$;exports.loadingButtonClasses=e;
@@ -1,278 +0,0 @@
1
- import { jsx as g, jsxs as C } from "react/jsx-runtime";
2
- import * as h from "react";
3
- import B from "./components/DefaultButton/DefaultButtonIcon.es.js";
4
- import { s as I, u as j } from "./DefaultPropsProvider-BDdV3S11.js";
5
- import { _ as k } from "./TransitionGroupContext-SbAHUhOx.js";
6
- import { _ as l } from "./ButtonBase-Mr4S_NG8.js";
7
- import { K as u, P as a } from "./identifier-SatcAo-F.js";
8
- import { g as R, a as T, c as W } from "./generateUtilityClasses-BwskEdpL.js";
9
- import { B as _, a as D } from "./Button-BlSyZq45.js";
10
- import { u as U } from "./useId-CyGZMA-F.js";
11
- import { C as z } from "./CircularProgress-bltZBt14.js";
12
- function F(n, o) {
13
- return process.env.NODE_ENV === "production" ? () => null : function(...t) {
14
- return n(...t) || o(...t);
15
- };
16
- }
17
- function x(n, o) {
18
- const i = l({}, o);
19
- return Object.keys(n).forEach((t) => {
20
- if (t.toString().match(/^(components|slots)$/))
21
- i[t] = l({}, n[t], i[t]);
22
- else if (t.toString().match(/^(componentsProps|slotProps)$/)) {
23
- const s = n[t] || {}, r = o[t];
24
- i[t] = {}, !r || !Object.keys(r) ? i[t] = s : !s || !Object.keys(s) ? i[t] = r : (i[t] = l({}, r), Object.keys(s).forEach((e) => {
25
- i[t][e] = x(s[e], r[e]);
26
- }));
27
- } else i[t] === void 0 && (i[t] = n[t]);
28
- }), i;
29
- }
30
- function G(n) {
31
- return R("MuiLoadingButton", n);
32
- }
33
- const V = T("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), d = V, H = ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"], K = (n) => {
34
- const {
35
- loading: o,
36
- loadingPosition: i,
37
- classes: t
38
- } = n, s = {
39
- root: ["root", o && "loading"],
40
- startIcon: [o && `startIconLoading${u(i)}`],
41
- endIcon: [o && `endIconLoading${u(i)}`],
42
- loadingIndicator: ["loadingIndicator", o && `loadingIndicator${u(i)}`]
43
- }, r = W(s, G, t);
44
- return l({}, t, r);
45
- }, q = (n) => n !== "ownerState" && n !== "theme" && n !== "sx" && n !== "as" && n !== "classes", A = I(_, {
46
- shouldForwardProp: (n) => q(n) || n === "classes",
47
- name: "MuiLoadingButton",
48
- slot: "Root",
49
- overridesResolver: (n, o) => [o.root, o.startIconLoadingStart && {
50
- [`& .${d.startIconLoadingStart}`]: o.startIconLoadingStart
51
- }, o.endIconLoadingEnd && {
52
- [`& .${d.endIconLoadingEnd}`]: o.endIconLoadingEnd
53
- }]
54
- })(({
55
- ownerState: n,
56
- theme: o
57
- }) => l({
58
- [`& .${d.startIconLoadingStart}, & .${d.endIconLoadingEnd}`]: {
59
- transition: o.transitions.create(["opacity"], {
60
- duration: o.transitions.duration.short
61
- }),
62
- opacity: 0
63
- }
64
- }, n.loadingPosition === "center" && {
65
- transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
66
- duration: o.transitions.duration.short
67
- }),
68
- [`&.${d.loading}`]: {
69
- color: "transparent"
70
- }
71
- }, n.loadingPosition === "start" && n.fullWidth && {
72
- [`& .${d.startIconLoadingStart}, & .${d.endIconLoadingEnd}`]: {
73
- transition: o.transitions.create(["opacity"], {
74
- duration: o.transitions.duration.short
75
- }),
76
- opacity: 0,
77
- marginRight: -8
78
- }
79
- }, n.loadingPosition === "end" && n.fullWidth && {
80
- [`& .${d.startIconLoadingStart}, & .${d.endIconLoadingEnd}`]: {
81
- transition: o.transitions.create(["opacity"], {
82
- duration: o.transitions.duration.short
83
- }),
84
- opacity: 0,
85
- marginLeft: -8
86
- }
87
- })), J = I("span", {
88
- name: "MuiLoadingButton",
89
- slot: "LoadingIndicator",
90
- overridesResolver: (n, o) => {
91
- const {
92
- ownerState: i
93
- } = n;
94
- return [o.loadingIndicator, o[`loadingIndicator${u(i.loadingPosition)}`]];
95
- }
96
- })(({
97
- theme: n,
98
- ownerState: o
99
- }) => l({
100
- position: "absolute",
101
- visibility: "visible",
102
- display: "flex"
103
- }, o.loadingPosition === "start" && (o.variant === "outlined" || o.variant === "contained") && {
104
- left: o.size === "small" ? 10 : 14
105
- }, o.loadingPosition === "start" && o.variant === "text" && {
106
- left: 6
107
- }, o.loadingPosition === "center" && {
108
- left: "50%",
109
- transform: "translate(-50%)",
110
- color: (n.vars || n).palette.action.disabled
111
- }, o.loadingPosition === "end" && (o.variant === "outlined" || o.variant === "contained") && {
112
- right: o.size === "small" ? 10 : 14
113
- }, o.loadingPosition === "end" && o.variant === "text" && {
114
- right: 6
115
- }, o.loadingPosition === "start" && o.fullWidth && {
116
- position: "relative",
117
- left: -10
118
- }, o.loadingPosition === "end" && o.fullWidth && {
119
- position: "relative",
120
- right: -10
121
- })), E = /* @__PURE__ */ h.forwardRef(function(o, i) {
122
- const t = h.useContext(D), s = x(t, o), r = j({
123
- props: s,
124
- name: "MuiLoadingButton"
125
- }), {
126
- children: e,
127
- disabled: b = !1,
128
- id: $,
129
- loading: f = !1,
130
- loadingIndicator: p,
131
- loadingPosition: M = "center",
132
- variant: L = "text"
133
- } = r, O = k(r, H), P = U($), y = p ?? /* @__PURE__ */ g(z, {
134
- "aria-labelledby": P,
135
- color: "inherit",
136
- size: 16
137
- }), c = l({}, r, {
138
- disabled: b,
139
- loading: f,
140
- loadingIndicator: y,
141
- loadingPosition: M,
142
- variant: L
143
- }), m = K(c), v = f ? /* @__PURE__ */ g(J, {
144
- className: m.loadingIndicator,
145
- ownerState: c,
146
- children: y
147
- }) : null;
148
- return /* @__PURE__ */ C(A, l({
149
- disabled: b || f,
150
- id: P,
151
- ref: i
152
- }, O, {
153
- variant: L,
154
- classes: m,
155
- ownerState: c,
156
- children: [c.loadingPosition === "end" ? e : v, c.loadingPosition === "end" ? v : e]
157
- }));
158
- });
159
- process.env.NODE_ENV !== "production" && (E.propTypes = {
160
- // ┌────────────────────────────── Warning ──────────────────────────────┐
161
- // │ These PropTypes are generated from the TypeScript type definitions. │
162
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
163
- // └─────────────────────────────────────────────────────────────────────┘
164
- /**
165
- * The content of the component.
166
- */
167
- children: a.node,
168
- /**
169
- * Override or extend the styles applied to the component.
170
- */
171
- classes: a.object,
172
- /**
173
- * If `true`, the component is disabled.
174
- * @default false
175
- */
176
- disabled: a.bool,
177
- /**
178
- * @ignore
179
- */
180
- id: a.string,
181
- /**
182
- * If `true`, the loading indicator is shown and the button becomes disabled.
183
- * @default false
184
- */
185
- loading: a.bool,
186
- /**
187
- * Element placed before the children if the button is in loading state.
188
- * The node should contain an element with `role="progressbar"` with an accessible name.
189
- * By default we render a `CircularProgress` that is labelled by the button itself.
190
- * @default <CircularProgress color="inherit" size={16} />
191
- */
192
- loadingIndicator: a.node,
193
- /**
194
- * The loading indicator can be positioned on the start, end, or the center of the button.
195
- * @default 'center'
196
- */
197
- loadingPosition: F(a.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),
198
- /**
199
- * The system prop that allows defining system overrides as well as additional CSS styles.
200
- */
201
- sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
202
- /**
203
- * The variant to use.
204
- * @default 'text'
205
- */
206
- variant: a.oneOfType([a.oneOf(["contained", "outlined", "text"]), a.string])
207
- });
208
- const Q = I(E)(
209
- ({ color: n, theme: o }) => ({
210
- justifyContent: "center",
211
- alignItems: "center",
212
- columnGap: 8,
213
- minHeight: 38,
214
- paddingLeft: 12,
215
- paddingRight: 12,
216
- textTransform: "none",
217
- color: n,
218
- borderColor: n,
219
- borderRadius: 5,
220
- borderWidth: 2,
221
- transition: "all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
222
- "&.MuiButton-contained": {
223
- color: o.palette.common.white
224
- },
225
- "&.MuiButton-outlined": {
226
- borderRadius: 5,
227
- borderWidth: 2,
228
- "&.MuiButton-colorPrimary": {
229
- "&:active": {
230
- borderColor: o.palette.primary.main,
231
- color: o.palette.primary.main
232
- },
233
- "&:hover": {
234
- backgroundColor: o.palette.primary.dark,
235
- borderColor: o.palette.primary.dark,
236
- color: o.palette.common.white
237
- }
238
- },
239
- "&.MuiButton-colorSecondary": {
240
- "&:active": {
241
- borderColor: o.palette.secondary.main,
242
- color: o.palette.secondary.main
243
- },
244
- "&:hover": {
245
- backgroundColor: o.palette.secondary.main,
246
- color: o.palette.common.white
247
- }
248
- },
249
- "&.MuiButton-colorError": {
250
- "&:active": {
251
- borderColor: o.palette.error.main,
252
- color: o.palette.error.main
253
- },
254
- "&:hover": {
255
- backgroundColor: o.palette.error.main,
256
- color: o.palette.common.white
257
- }
258
- }
259
- }
260
- })
261
- ), ao = ({
262
- icon: n,
263
- text: o,
264
- ...i
265
- }) => {
266
- const t = i.color ?? "primary";
267
- return /* @__PURE__ */ C(Q, { ...i, color: t, children: [
268
- (n == null ? void 0 : n.position) === "left" ? /* @__PURE__ */ g(B, { ...n }) : null,
269
- o,
270
- (n == null ? void 0 : n.position) === "right" ? /* @__PURE__ */ g(B, { ...n }) : null
271
- ] });
272
- };
273
- export {
274
- ao as D,
275
- E as L,
276
- G as g,
277
- d as l
278
- };
@@ -1 +0,0 @@
1
- "use strict";var l=Object.defineProperty;var p=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var o=(t,e,r)=>p(t,typeof e!="symbol"?e+"":e,r);const s=require("react");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const f=d(s);function O(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;r[n]=t[n]}return r}const i={};function a(t,e){const r=f.useRef(i);return r.current===i&&(r.current=t(e)),r}const b=[];function h(t){f.useEffect(t,b)}class u{constructor(){o(this,"currentId",null);o(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});o(this,"disposeEffect",()=>this.clear)}static create(){return new u}start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}}function y(){const t=a(u.create).current;return h(t.disposeEffect),t}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},c(t,e)}function _(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,c(t,e)}const m=s.createContext(null);exports.Timeout=u;exports.TransitionGroupContext=m;exports._inheritsLoose=_;exports._objectWithoutPropertiesLoose=O;exports.useLazyRef=a;exports.useTimeout=y;
@@ -1,58 +0,0 @@
1
- function p(e, t, n = void 0) {
2
- const r = {};
3
- return Object.keys(e).forEach(
4
- // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
5
- // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
6
- (s) => {
7
- r[s] = e[s].reduce((o, a) => {
8
- if (a) {
9
- const c = t(a);
10
- c !== "" && o.push(c), n && n[a] && o.push(n[a]);
11
- }
12
- return o;
13
- }, []).join(" ");
14
- }
15
- ), r;
16
- }
17
- const i = (e) => e, u = () => {
18
- let e = i;
19
- return {
20
- configure(t) {
21
- e = t;
22
- },
23
- generate(t) {
24
- return e(t);
25
- },
26
- reset() {
27
- e = i;
28
- }
29
- };
30
- }, d = u(), l = {
31
- active: "active",
32
- checked: "checked",
33
- completed: "completed",
34
- disabled: "disabled",
35
- error: "error",
36
- expanded: "expanded",
37
- focused: "focused",
38
- focusVisible: "focusVisible",
39
- open: "open",
40
- readOnly: "readOnly",
41
- required: "required",
42
- selected: "selected"
43
- };
44
- function f(e, t, n = "Mui") {
45
- const r = l[t];
46
- return r ? `${n}-${r}` : `${d.generate(e)}-${t}`;
47
- }
48
- function g(e, t, n = "Mui") {
49
- const r = {};
50
- return t.forEach((s) => {
51
- r[s] = f(e, s, n);
52
- }), r;
53
- }
54
- export {
55
- g as a,
56
- p as c,
57
- f as g
58
- };
@@ -1 +0,0 @@
1
- "use strict";function l(e,t,s=void 0){const r={};return Object.keys(e).forEach(n=>{r[n]=e[n].reduce((i,a)=>{if(a){const o=t(a);o!==""&&i.push(o),s&&s[a]&&i.push(s[a])}return i},[]).join(" ")}),r}const c=e=>e,d=()=>{let e=c;return{configure(t){e=t},generate(t){return e(t)},reset(){e=c}}},f=d(),p={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function u(e,t,s="Mui"){const r=p[t];return r?`${s}-${r}`:`${f.generate(e)}-${t}`}function C(e,t,s="Mui"){const r={};return t.forEach(n=>{r[n]=u(e,n,s)}),r}exports.composeClasses=l;exports.generateUtilityClass=u;exports.generateUtilityClasses=C;