@cgi-learning-hub/ui 1.0.0-dev.1721824898 → 1.0.0-dev.1721901545
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.
- package/dist/{Box-vGRO-On_.js → Box-BwHGDK_A.js} +10 -10
- package/dist/Button-BF7P0rje.js +359 -0
- package/dist/Button-BtjHaBJr.cjs +1 -0
- package/dist/{ButtonBase-vONl_zxO.js → ButtonBase-CWCHPphi.js} +36 -36
- package/dist/{CircularProgress-BDwTzcEn.js → CircularProgress-C_9OsPYJ.js} +17 -17
- package/dist/DatePicker-BE1RETq3.cjs +19 -0
- package/dist/DatePicker-DXoI-rbr.js +12663 -0
- package/dist/DefaultButton-BYqGgydF.cjs +1 -0
- package/dist/DefaultButton-CKAvlaVi.js +253 -0
- package/dist/{IconButton-Ctm1Peef.js → IconButton-De3-6K2r.js} +7 -7
- package/dist/{SearchInput-Clr0qHPm.js → InputAdornment-CdamqNqi.js} +55 -87
- package/dist/InputAdornment-UyNuc0Mc.cjs +1 -0
- package/dist/{InputBase-Dqfior4W.js → InputBase-DYf00QVg.js} +25 -25
- package/dist/Stack-D1lCED40.cjs +1 -0
- package/dist/Stack-DIH86N4F.js +172 -0
- package/dist/{Tabs-D-RPVuW4.js → Tabs-D1zibo7D.js} +118 -131
- package/dist/Tabs-DZDo7UqF.cjs +4 -0
- package/dist/{TextInput-BxI4zwrY.js → TextField-BAVYnvQj.js} +411 -414
- package/dist/{TextInput-Ba5ly1H9.cjs → TextField-CH-kzN1l.cjs} +11 -11
- package/dist/Tooltip-BEg5oYwE.js +7463 -0
- package/dist/Tooltip-DppWsdRm.cjs +95 -0
- package/dist/{Typography-Cl3kH-A8.js → Typography-CbZkNGSr.js} +11 -11
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +2 -2
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +2 -2
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +2 -2
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.es.js +1 -1
- package/dist/components/buttons/IconButton.stories.es.js +3 -3
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/feedback/QueryError/QueryError.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +1 -5
- package/dist/components/index.es.js +269 -278
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.es.js +18 -16
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +36 -5
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +4 -4
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.es.js +2 -2
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.es.js +4 -3
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
- package/dist/components/inputs/TextInput/index.cjs.js +1 -1
- package/dist/components/inputs/TextInput/index.es.js +2 -2
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.es.js +6 -6
- package/dist/components/lists/FileList/FileList.es.js +1 -1
- package/dist/components/lists/FileList/FileListItem.es.js +6 -6
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.es.js +16 -15
- package/dist/components/pickers/DatePicker/DatePicker.cjs.js +1 -0
- package/dist/components/pickers/DatePicker/DatePicker.d.ts +8 -0
- package/dist/components/pickers/DatePicker/DatePicker.es.js +6 -0
- package/dist/components/pickers/DatePicker/DatePicker.stories.cjs.js +1 -0
- package/dist/components/pickers/DatePicker/DatePicker.stories.d.ts +5 -0
- package/dist/components/pickers/DatePicker/DatePicker.stories.es.js +16 -0
- package/dist/components/pickers/DatePicker/index.cjs.js +1 -0
- package/dist/components/pickers/DatePicker/index.d.ts +2 -0
- package/dist/components/pickers/DatePicker/index.es.js +4 -0
- package/dist/components/pickers/index.cjs.js +1 -0
- package/dist/components/pickers/index.d.ts +1 -0
- package/dist/components/pickers/index.es.js +4 -0
- package/dist/createStyled-CXNF_m2b.js +142 -0
- package/dist/createStyled-CcHh6cyo.cjs +1 -0
- package/dist/{createSvgIcon-BwGNMrhW.js → createSvgIcon-B6V0jwwg.js} +5 -5
- package/dist/{createSvgIcon-Blbo0WDd.js → createSvgIcon-CGvnINlY.js} +15 -15
- package/dist/fr-BWMVjh4G.js +307 -0
- package/dist/fr-CzL4IYLw.cjs +1 -0
- package/dist/{identifier-wKuu0zOr.js → identifier-C_DzvlWx.js} +24 -24
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +270 -279
- package/dist/{refType-Bqz8QGtc.js → refType-KXZNSMpq.js} +1 -1
- package/dist/{styled-CFCmdTd8.js → styled-DCjqF2JO.js} +29 -29
- package/dist/{useTheme-DWyCcDbs.js → useTheme-8G-WLfhQ.js} +7 -7
- package/dist/{useTheme-D5vjhuQC.js → useTheme-D2TR379g.js} +1 -1
- package/dist/useThemeProps-DhHzyU0Y.cjs +1 -0
- package/dist/useThemeProps-DjJkz40D.js +17 -0
- package/dist/{useThemeProps-CZSYSmRG.js → useThemeProps-fXKB99fl.js} +2 -2
- package/package.json +1 -1
- package/dist/DefaultButton-BD1TIeNP.js +0 -604
- package/dist/DefaultButton-DV0j1bMY.cjs +0 -1
- package/dist/SearchInput-CruiB2CO.cjs +0 -1
- package/dist/Stack-CwklSaeG.js +0 -308
- package/dist/Stack-v4g12Xre.cjs +0 -1
- package/dist/Tabs-CLr003cV.cjs +0 -4
- package/dist/TimePicker-DK-Q99ep.js +0 -26252
- package/dist/TimePicker-DYEkxpHp.cjs +0 -113
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),j=require("react"),B=require("./components/buttons/DefaultButton/DefaultButtonIcon.cjs.js"),s=require("./styled-C04Dz9vm.cjs"),n=require("./identifier-J0ZxxQLU.cjs"),m=require("./Button-BtjHaBJr.cjs"),_=require("./useId-Cw0TtD-8.cjs"),E=require("./refType-DNJbSwsx.cjs"),M=require("./CircularProgress-C0MOR9P7.cjs");function O(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(o,i,r.get?r:{enumerable:!0,get:()=>t[i]})}}return o.default=t,Object.freeze(o)}const T=O(j);function h(t){return n.generateUtilityClass("MuiLoadingButton",t)}const R=n.generateUtilityClasses("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),a=R,q=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],z=t=>{const{loading:o,loadingPosition:i,classes:r}=t,c={root:["root",o&&"loading"],startIcon:[o&&`startIconLoading${n.capitalize(i)}`],endIcon:[o&&`endIconLoading${n.capitalize(i)}`],loadingIndicator:["loadingIndicator",o&&`loadingIndicator${n.capitalize(i)}`]},d=s.composeClasses(c,h,r);return n._extends({},r,d)},D=t=>t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"&&t!=="classes",U=s.styled(m.Button,{shouldForwardProp:t=>D(t)||t==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(t,o)=>[o.root,o.startIconLoadingStart&&{[`& .${a.startIconLoadingStart}`]:o.startIconLoadingStart},o.endIconLoadingEnd&&{[`& .${a.endIconLoadingEnd}`]:o.endIconLoadingEnd}]})(({ownerState:t,theme:o})=>n._extends({[`& .${a.startIconLoadingStart}, & .${a.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}),[`&.${a.loading}`]:{color:"transparent"}},t.loadingPosition==="start"&&t.fullWidth&&{[`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginRight:-8}},t.loadingPosition==="end"&&t.fullWidth&&{[`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]:{transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.short}),opacity:0,marginLeft:-8}})),W=s.styled("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(t,o)=>{const{ownerState:i}=t;return[o.loadingIndicator,o[`loadingIndicator${n.capitalize(i.loadingPosition)}`]]}})(({theme:t,ownerState:o})=>n._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})),g=T.forwardRef(function(o,i){const r=T.useContext(m.ButtonGroupContext),c=s.resolveProps(r,o),d=s.useDefaultProps({props:c,name:"MuiLoadingButton"}),{children:p,disabled:y=!1,id:x,loading:u=!1,loadingIndicator:P,loadingPosition:C="center",variant:f="text"}=d,$=n._objectWithoutPropertiesLoose(d,q),I=_.useId(x),b=P??e.jsx(M.CircularProgress,{"aria-labelledby":I,color:"inherit",size:16}),l=n._extends({},d,{disabled:y,loading:u,loadingIndicator:b,loadingPosition:C,variant:f}),L=z(l),v=u?e.jsx(W,{className:L.loadingIndicator,ownerState:l,children:b}):null;return e.jsxs(U,n._extends({disabled:y||u,id:I,ref:i},$,{variant:f,classes:L,ownerState:l,children:[l.loadingPosition==="end"?p:v,l.loadingPosition==="end"?v:p]}))});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:E.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 k=s.styled(g)(({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-outlinedPrimary":{"&: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-outlinedSecondary":{"&:active":{borderColor:o.palette.secondary.main,color:o.palette.secondary.main},"&:hover":{backgroundColor:o.palette.secondary.main,color:o.palette.common.white}}}})),N=({icon:t,text:o,...i})=>{const r=i.color??"primary";return e.jsxs(k,{...i,color:r,children:[(t==null?void 0:t.position)==="left"?e.jsx(B,{...t}):null,o,(t==null?void 0:t.position)==="right"?e.jsx(B,{...t}):null]})};exports.DefaultButton=N;exports.LoadingButton=g;exports.getLoadingButtonUtilityClass=h;exports.loadingButtonClasses=a;
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { jsx as c, jsxs as C } from "react/jsx-runtime";
|
|
2
|
+
import * as h from "react";
|
|
3
|
+
import B from "./components/buttons/DefaultButton/DefaultButtonIcon.es.js";
|
|
4
|
+
import { s as p, r as R, u as T, c as j } from "./styled-DCjqF2JO.js";
|
|
5
|
+
import { w as O, v as W, m as l, q as e, _ as U, P as t } from "./identifier-C_DzvlWx.js";
|
|
6
|
+
import { B as k, a as z } from "./Button-BF7P0rje.js";
|
|
7
|
+
import { u as D } from "./useId-BW-oWmul.js";
|
|
8
|
+
import { c as _ } from "./refType-KXZNSMpq.js";
|
|
9
|
+
import { C as N } from "./CircularProgress-C_9OsPYJ.js";
|
|
10
|
+
function F(n) {
|
|
11
|
+
return O("MuiLoadingButton", n);
|
|
12
|
+
}
|
|
13
|
+
const G = W("MuiLoadingButton", ["root", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), a = G, q = ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"], H = (n) => {
|
|
14
|
+
const {
|
|
15
|
+
loading: o,
|
|
16
|
+
loadingPosition: i,
|
|
17
|
+
classes: r
|
|
18
|
+
} = n, g = {
|
|
19
|
+
root: ["root", o && "loading"],
|
|
20
|
+
startIcon: [o && `startIconLoading${e(i)}`],
|
|
21
|
+
endIcon: [o && `endIconLoading${e(i)}`],
|
|
22
|
+
loadingIndicator: ["loadingIndicator", o && `loadingIndicator${e(i)}`]
|
|
23
|
+
}, s = j(g, F, r);
|
|
24
|
+
return l({}, r, s);
|
|
25
|
+
}, V = (n) => n !== "ownerState" && n !== "theme" && n !== "sx" && n !== "as" && n !== "classes", A = p(k, {
|
|
26
|
+
shouldForwardProp: (n) => V(n) || n === "classes",
|
|
27
|
+
name: "MuiLoadingButton",
|
|
28
|
+
slot: "Root",
|
|
29
|
+
overridesResolver: (n, o) => [o.root, o.startIconLoadingStart && {
|
|
30
|
+
[`& .${a.startIconLoadingStart}`]: o.startIconLoadingStart
|
|
31
|
+
}, o.endIconLoadingEnd && {
|
|
32
|
+
[`& .${a.endIconLoadingEnd}`]: o.endIconLoadingEnd
|
|
33
|
+
}]
|
|
34
|
+
})(({
|
|
35
|
+
ownerState: n,
|
|
36
|
+
theme: o
|
|
37
|
+
}) => l({
|
|
38
|
+
[`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
|
|
39
|
+
transition: o.transitions.create(["opacity"], {
|
|
40
|
+
duration: o.transitions.duration.short
|
|
41
|
+
}),
|
|
42
|
+
opacity: 0
|
|
43
|
+
}
|
|
44
|
+
}, n.loadingPosition === "center" && {
|
|
45
|
+
transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
|
|
46
|
+
duration: o.transitions.duration.short
|
|
47
|
+
}),
|
|
48
|
+
[`&.${a.loading}`]: {
|
|
49
|
+
color: "transparent"
|
|
50
|
+
}
|
|
51
|
+
}, n.loadingPosition === "start" && n.fullWidth && {
|
|
52
|
+
[`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
|
|
53
|
+
transition: o.transitions.create(["opacity"], {
|
|
54
|
+
duration: o.transitions.duration.short
|
|
55
|
+
}),
|
|
56
|
+
opacity: 0,
|
|
57
|
+
marginRight: -8
|
|
58
|
+
}
|
|
59
|
+
}, n.loadingPosition === "end" && n.fullWidth && {
|
|
60
|
+
[`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
|
|
61
|
+
transition: o.transitions.create(["opacity"], {
|
|
62
|
+
duration: o.transitions.duration.short
|
|
63
|
+
}),
|
|
64
|
+
opacity: 0,
|
|
65
|
+
marginLeft: -8
|
|
66
|
+
}
|
|
67
|
+
})), J = p("span", {
|
|
68
|
+
name: "MuiLoadingButton",
|
|
69
|
+
slot: "LoadingIndicator",
|
|
70
|
+
overridesResolver: (n, o) => {
|
|
71
|
+
const {
|
|
72
|
+
ownerState: i
|
|
73
|
+
} = n;
|
|
74
|
+
return [o.loadingIndicator, o[`loadingIndicator${e(i.loadingPosition)}`]];
|
|
75
|
+
}
|
|
76
|
+
})(({
|
|
77
|
+
theme: n,
|
|
78
|
+
ownerState: o
|
|
79
|
+
}) => l({
|
|
80
|
+
position: "absolute",
|
|
81
|
+
visibility: "visible",
|
|
82
|
+
display: "flex"
|
|
83
|
+
}, o.loadingPosition === "start" && (o.variant === "outlined" || o.variant === "contained") && {
|
|
84
|
+
left: o.size === "small" ? 10 : 14
|
|
85
|
+
}, o.loadingPosition === "start" && o.variant === "text" && {
|
|
86
|
+
left: 6
|
|
87
|
+
}, o.loadingPosition === "center" && {
|
|
88
|
+
left: "50%",
|
|
89
|
+
transform: "translate(-50%)",
|
|
90
|
+
color: (n.vars || n).palette.action.disabled
|
|
91
|
+
}, o.loadingPosition === "end" && (o.variant === "outlined" || o.variant === "contained") && {
|
|
92
|
+
right: o.size === "small" ? 10 : 14
|
|
93
|
+
}, o.loadingPosition === "end" && o.variant === "text" && {
|
|
94
|
+
right: 6
|
|
95
|
+
}, o.loadingPosition === "start" && o.fullWidth && {
|
|
96
|
+
position: "relative",
|
|
97
|
+
left: -10
|
|
98
|
+
}, o.loadingPosition === "end" && o.fullWidth && {
|
|
99
|
+
position: "relative",
|
|
100
|
+
right: -10
|
|
101
|
+
})), x = /* @__PURE__ */ h.forwardRef(function(o, i) {
|
|
102
|
+
const r = h.useContext(z), g = R(r, o), s = T({
|
|
103
|
+
props: g,
|
|
104
|
+
name: "MuiLoadingButton"
|
|
105
|
+
}), {
|
|
106
|
+
children: I,
|
|
107
|
+
disabled: f = !1,
|
|
108
|
+
id: $,
|
|
109
|
+
loading: u = !1,
|
|
110
|
+
loadingIndicator: m,
|
|
111
|
+
loadingPosition: E = "center",
|
|
112
|
+
variant: b = "text"
|
|
113
|
+
} = s, M = U(s, q), P = D($), L = m ?? /* @__PURE__ */ c(N, {
|
|
114
|
+
"aria-labelledby": P,
|
|
115
|
+
color: "inherit",
|
|
116
|
+
size: 16
|
|
117
|
+
}), d = l({}, s, {
|
|
118
|
+
disabled: f,
|
|
119
|
+
loading: u,
|
|
120
|
+
loadingIndicator: L,
|
|
121
|
+
loadingPosition: E,
|
|
122
|
+
variant: b
|
|
123
|
+
}), v = H(d), y = u ? /* @__PURE__ */ c(J, {
|
|
124
|
+
className: v.loadingIndicator,
|
|
125
|
+
ownerState: d,
|
|
126
|
+
children: L
|
|
127
|
+
}) : null;
|
|
128
|
+
return /* @__PURE__ */ C(A, l({
|
|
129
|
+
disabled: f || u,
|
|
130
|
+
id: P,
|
|
131
|
+
ref: i
|
|
132
|
+
}, M, {
|
|
133
|
+
variant: b,
|
|
134
|
+
classes: v,
|
|
135
|
+
ownerState: d,
|
|
136
|
+
children: [d.loadingPosition === "end" ? I : y, d.loadingPosition === "end" ? y : I]
|
|
137
|
+
}));
|
|
138
|
+
});
|
|
139
|
+
process.env.NODE_ENV !== "production" && (x.propTypes = {
|
|
140
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
141
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
142
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
143
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
144
|
+
/**
|
|
145
|
+
* The content of the component.
|
|
146
|
+
*/
|
|
147
|
+
children: t.node,
|
|
148
|
+
/**
|
|
149
|
+
* Override or extend the styles applied to the component.
|
|
150
|
+
*/
|
|
151
|
+
classes: t.object,
|
|
152
|
+
/**
|
|
153
|
+
* If `true`, the component is disabled.
|
|
154
|
+
* @default false
|
|
155
|
+
*/
|
|
156
|
+
disabled: t.bool,
|
|
157
|
+
/**
|
|
158
|
+
* @ignore
|
|
159
|
+
*/
|
|
160
|
+
id: t.string,
|
|
161
|
+
/**
|
|
162
|
+
* If `true`, the loading indicator is shown and the button becomes disabled.
|
|
163
|
+
* @default false
|
|
164
|
+
*/
|
|
165
|
+
loading: t.bool,
|
|
166
|
+
/**
|
|
167
|
+
* Element placed before the children if the button is in loading state.
|
|
168
|
+
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
169
|
+
* By default we render a `CircularProgress` that is labelled by the button itself.
|
|
170
|
+
* @default <CircularProgress color="inherit" size={16} />
|
|
171
|
+
*/
|
|
172
|
+
loadingIndicator: t.node,
|
|
173
|
+
/**
|
|
174
|
+
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
175
|
+
* @default 'center'
|
|
176
|
+
*/
|
|
177
|
+
loadingPosition: _(t.oneOf(["start", "end", "center"]), (n) => n.loadingPosition === "start" && !n.startIcon ? new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.') : n.loadingPosition === "end" && !n.endIcon ? new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.') : null),
|
|
178
|
+
/**
|
|
179
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
180
|
+
*/
|
|
181
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
182
|
+
/**
|
|
183
|
+
* The variant to use.
|
|
184
|
+
* @default 'text'
|
|
185
|
+
*/
|
|
186
|
+
variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
|
|
187
|
+
});
|
|
188
|
+
const K = p(x)(({ color: n, theme: o }) => ({
|
|
189
|
+
justifyContent: "center",
|
|
190
|
+
alignItems: "center",
|
|
191
|
+
columnGap: 8,
|
|
192
|
+
minHeight: 38,
|
|
193
|
+
paddingLeft: 12,
|
|
194
|
+
paddingRight: 12,
|
|
195
|
+
textTransform: "none",
|
|
196
|
+
color: n,
|
|
197
|
+
borderColor: n,
|
|
198
|
+
borderRadius: 5,
|
|
199
|
+
borderWidth: 2,
|
|
200
|
+
transition: "all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
201
|
+
"&.MuiButton-contained": {
|
|
202
|
+
color: o.palette.common.white
|
|
203
|
+
},
|
|
204
|
+
"&.MuiButton-outlined": {
|
|
205
|
+
borderRadius: 5,
|
|
206
|
+
borderWidth: 2,
|
|
207
|
+
"&.MuiButton-outlinedPrimary": {
|
|
208
|
+
"&:active": {
|
|
209
|
+
borderColor: o.palette.primary.main,
|
|
210
|
+
color: o.palette.primary.main
|
|
211
|
+
},
|
|
212
|
+
"&:hover": {
|
|
213
|
+
backgroundColor: o.palette.primary.dark,
|
|
214
|
+
borderColor: o.palette.primary.dark,
|
|
215
|
+
color: o.palette.common.white
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"&.MuiButton-outlinedSecondary": {
|
|
219
|
+
"&:active": {
|
|
220
|
+
borderColor: o.palette.secondary.main,
|
|
221
|
+
color: o.palette.secondary.main
|
|
222
|
+
},
|
|
223
|
+
"&:hover": {
|
|
224
|
+
backgroundColor: o.palette.secondary.main,
|
|
225
|
+
color: o.palette.common.white
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
})), to = ({
|
|
230
|
+
icon: n,
|
|
231
|
+
text: o,
|
|
232
|
+
...i
|
|
233
|
+
}) => {
|
|
234
|
+
const r = i.color ?? "primary";
|
|
235
|
+
return /* @__PURE__ */ C(
|
|
236
|
+
K,
|
|
237
|
+
{
|
|
238
|
+
...i,
|
|
239
|
+
color: r,
|
|
240
|
+
children: [
|
|
241
|
+
(n == null ? void 0 : n.position) === "left" ? /* @__PURE__ */ c(B, { ...n }) : null,
|
|
242
|
+
o,
|
|
243
|
+
(n == null ? void 0 : n.position) === "right" ? /* @__PURE__ */ c(B, { ...n }) : null
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
);
|
|
247
|
+
};
|
|
248
|
+
export {
|
|
249
|
+
to as D,
|
|
250
|
+
x as L,
|
|
251
|
+
F as g,
|
|
252
|
+
a as l
|
|
253
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { w as h, v as z, q as n, m as t, y as g, _ as R, x as C, P as r } from "./identifier-C_DzvlWx.js";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { s as B, u as I, c as O } from "./styled-
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { B as
|
|
6
|
-
import { c as T } from "./refType-
|
|
3
|
+
import { s as B, u as I, c as O } from "./styled-DCjqF2JO.js";
|
|
4
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
5
|
+
import { B as $ } from "./ButtonBase-CWCHPphi.js";
|
|
6
|
+
import { c as T } from "./refType-KXZNSMpq.js";
|
|
7
7
|
function k(o) {
|
|
8
8
|
return h("MuiIconButton", o);
|
|
9
9
|
}
|
|
@@ -18,7 +18,7 @@ const P = z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
18
18
|
root: ["root", s && "disabled", a !== "default" && `color${n(a)}`, i && `edge${n(i)}`, `size${n(l)}`]
|
|
19
19
|
};
|
|
20
20
|
return O(c, k, e);
|
|
21
|
-
}, M = B(
|
|
21
|
+
}, M = B($, {
|
|
22
22
|
name: "MuiIconButton",
|
|
23
23
|
slot: "Root",
|
|
24
24
|
overridesResolver: (o, e) => {
|
|
@@ -104,7 +104,7 @@ const P = z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
104
104
|
disableFocusRipple: u,
|
|
105
105
|
size: v
|
|
106
106
|
}), y = E(f);
|
|
107
|
-
return /* @__PURE__ */
|
|
107
|
+
return /* @__PURE__ */ x(M, t({
|
|
108
108
|
className: C(y.root, c),
|
|
109
109
|
centerRipple: !0,
|
|
110
110
|
focusRipple: !u,
|
|
@@ -1,107 +1,106 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as I, u as S, c as T } from "./styled-CFCmdTd8.js";
|
|
3
|
-
import { u as L, F as M, I as N } from "./InputBase-Dqfior4W.js";
|
|
4
|
-
import { m as R, k as z, _ as m, s as O, t as _, P as e, n as v } from "./identifier-wKuu0zOr.js";
|
|
1
|
+
import { v as I, w as T, m as u, _ as A, x as C, P as e, q as v } from "./identifier-C_DzvlWx.js";
|
|
5
2
|
import * as b from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { c as
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
import { u as N, F as L } from "./InputBase-DYf00QVg.js";
|
|
4
|
+
import { s as O, u as R, c as _ } from "./styled-DCjqF2JO.js";
|
|
5
|
+
import { jsx as l, jsxs as j } from "react/jsx-runtime";
|
|
6
|
+
import { T as z } from "./Typography-CbZkNGSr.js";
|
|
7
|
+
function F(t) {
|
|
8
|
+
return T("MuiInputAdornment", t);
|
|
10
9
|
}
|
|
11
|
-
const y =
|
|
10
|
+
const y = I("MuiInputAdornment", ["root", "filled", "standard", "outlined", "positionStart", "positionEnd", "disablePointerEvents", "hiddenLabel", "sizeSmall"]);
|
|
12
11
|
var g;
|
|
13
|
-
const
|
|
12
|
+
const M = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"], U = (t, o) => {
|
|
14
13
|
const {
|
|
15
|
-
ownerState:
|
|
16
|
-
} =
|
|
17
|
-
return [
|
|
18
|
-
},
|
|
14
|
+
ownerState: n
|
|
15
|
+
} = t;
|
|
16
|
+
return [o.root, o[`position${v(n.position)}`], n.disablePointerEvents === !0 && o.disablePointerEvents, o[n.variant]];
|
|
17
|
+
}, $ = (t) => {
|
|
19
18
|
const {
|
|
20
|
-
classes:
|
|
21
|
-
disablePointerEvents:
|
|
22
|
-
hiddenLabel:
|
|
23
|
-
position:
|
|
24
|
-
size:
|
|
19
|
+
classes: o,
|
|
20
|
+
disablePointerEvents: n,
|
|
21
|
+
hiddenLabel: r,
|
|
22
|
+
position: s,
|
|
23
|
+
size: a,
|
|
25
24
|
variant: p
|
|
26
|
-
} =
|
|
27
|
-
root: ["root",
|
|
25
|
+
} = t, d = {
|
|
26
|
+
root: ["root", n && "disablePointerEvents", s && `position${v(s)}`, p, r && "hiddenLabel", a && `size${v(a)}`]
|
|
28
27
|
};
|
|
29
|
-
return
|
|
30
|
-
},
|
|
28
|
+
return _(d, F, o);
|
|
29
|
+
}, w = O("div", {
|
|
31
30
|
name: "MuiInputAdornment",
|
|
32
31
|
slot: "Root",
|
|
33
|
-
overridesResolver:
|
|
32
|
+
overridesResolver: U
|
|
34
33
|
})(({
|
|
35
|
-
theme:
|
|
36
|
-
ownerState:
|
|
37
|
-
}) =>
|
|
34
|
+
theme: t,
|
|
35
|
+
ownerState: o
|
|
36
|
+
}) => u({
|
|
38
37
|
display: "flex",
|
|
39
38
|
height: "0.01em",
|
|
40
39
|
// Fix IE11 flexbox alignment. To remove at some point.
|
|
41
40
|
maxHeight: "2em",
|
|
42
41
|
alignItems: "center",
|
|
43
42
|
whiteSpace: "nowrap",
|
|
44
|
-
color: (
|
|
45
|
-
},
|
|
43
|
+
color: (t.vars || t).palette.action.active
|
|
44
|
+
}, o.variant === "filled" && {
|
|
46
45
|
// Styles applied to the root element if `variant="filled"`.
|
|
47
46
|
[`&.${y.positionStart}&:not(.${y.hiddenLabel})`]: {
|
|
48
47
|
marginTop: 16
|
|
49
48
|
}
|
|
50
|
-
},
|
|
49
|
+
}, o.position === "start" && {
|
|
51
50
|
// Styles applied to the root element if `position="start"`.
|
|
52
51
|
marginRight: 8
|
|
53
|
-
},
|
|
52
|
+
}, o.position === "end" && {
|
|
54
53
|
// Styles applied to the root element if `position="end"`.
|
|
55
54
|
marginLeft: 8
|
|
56
|
-
},
|
|
55
|
+
}, o.disablePointerEvents === !0 && {
|
|
57
56
|
// Styles applied to the root element if `disablePointerEvents={true}`.
|
|
58
57
|
pointerEvents: "none"
|
|
59
|
-
})),
|
|
60
|
-
const
|
|
61
|
-
props:
|
|
58
|
+
})), S = /* @__PURE__ */ b.forwardRef(function(o, n) {
|
|
59
|
+
const r = R({
|
|
60
|
+
props: o,
|
|
62
61
|
name: "MuiInputAdornment"
|
|
63
62
|
}), {
|
|
64
|
-
children:
|
|
65
|
-
className:
|
|
63
|
+
children: s,
|
|
64
|
+
className: a,
|
|
66
65
|
component: p = "div",
|
|
67
66
|
disablePointerEvents: d = !1,
|
|
68
67
|
disableTypography: E = !1,
|
|
69
68
|
position: f,
|
|
70
69
|
variant: c
|
|
71
|
-
} =
|
|
72
|
-
let
|
|
73
|
-
c &&
|
|
74
|
-
const h =
|
|
75
|
-
hiddenLabel:
|
|
76
|
-
size:
|
|
70
|
+
} = r, P = A(r, M), i = N() || {};
|
|
71
|
+
let m = c;
|
|
72
|
+
c && i.variant && process.env.NODE_ENV !== "production" && c === i.variant && console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."), i && !m && (m = i.variant);
|
|
73
|
+
const h = u({}, r, {
|
|
74
|
+
hiddenLabel: i.hiddenLabel,
|
|
75
|
+
size: i.size,
|
|
77
76
|
disablePointerEvents: d,
|
|
78
77
|
position: f,
|
|
79
|
-
variant:
|
|
80
|
-
}), x =
|
|
81
|
-
return /* @__PURE__ */
|
|
78
|
+
variant: m
|
|
79
|
+
}), x = $(h);
|
|
80
|
+
return /* @__PURE__ */ l(L.Provider, {
|
|
82
81
|
value: null,
|
|
83
|
-
children: /* @__PURE__ */
|
|
82
|
+
children: /* @__PURE__ */ l(w, u({
|
|
84
83
|
as: p,
|
|
85
84
|
ownerState: h,
|
|
86
|
-
className:
|
|
87
|
-
ref:
|
|
85
|
+
className: C(x.root, a),
|
|
86
|
+
ref: n
|
|
88
87
|
}, P, {
|
|
89
|
-
children: typeof
|
|
88
|
+
children: typeof s == "string" && !E ? /* @__PURE__ */ l(z, {
|
|
90
89
|
color: "text.secondary",
|
|
91
|
-
children:
|
|
92
|
-
}) : /* @__PURE__ */
|
|
90
|
+
children: s
|
|
91
|
+
}) : /* @__PURE__ */ j(b.Fragment, {
|
|
93
92
|
children: [f === "start" ? (
|
|
94
93
|
/* notranslate needed while Google Translate will not fix zero-width space issue */
|
|
95
|
-
g || (g = /* @__PURE__ */
|
|
94
|
+
g || (g = /* @__PURE__ */ l("span", {
|
|
96
95
|
className: "notranslate",
|
|
97
96
|
children: ""
|
|
98
97
|
}))
|
|
99
|
-
) : null,
|
|
98
|
+
) : null, s]
|
|
100
99
|
})
|
|
101
100
|
}))
|
|
102
101
|
});
|
|
103
102
|
});
|
|
104
|
-
process.env.NODE_ENV !== "production" && (
|
|
103
|
+
process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
105
104
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
106
105
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
107
106
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -149,37 +148,6 @@ process.env.NODE_ENV !== "production" && (C.propTypes = {
|
|
|
149
148
|
*/
|
|
150
149
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
151
150
|
});
|
|
152
|
-
const D = F(/* @__PURE__ */ n("path", {
|
|
153
|
-
d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
|
|
154
|
-
}), "Search"), V = I(N)(({ theme: o }) => ({
|
|
155
|
-
width: "auto",
|
|
156
|
-
padding: "0px 12px",
|
|
157
|
-
backgroundColor: o.palette.grey[50],
|
|
158
|
-
borderRadius: 30,
|
|
159
|
-
"& .MuiInputBase-input": {
|
|
160
|
-
padding: "8px 0px"
|
|
161
|
-
},
|
|
162
|
-
"&:hover, &.Mui-focused": {
|
|
163
|
-
"& .MuiInputAdornment-root": {
|
|
164
|
-
color: o.palette.primary.main
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
})), Q = ({
|
|
168
|
-
placeholder: o = "Rechercher",
|
|
169
|
-
...t
|
|
170
|
-
}) => /* @__PURE__ */ n(
|
|
171
|
-
V,
|
|
172
|
-
{
|
|
173
|
-
...t,
|
|
174
|
-
placeholder: o,
|
|
175
|
-
startAdornment: /* @__PURE__ */ n(C, { position: "start", disablePointerEvents: !0, children: /* @__PURE__ */ n(D, {}) }),
|
|
176
|
-
type: "search",
|
|
177
|
-
autoComplete: "off",
|
|
178
|
-
autoCorrect: "off",
|
|
179
|
-
spellCheck: !1
|
|
180
|
-
}
|
|
181
|
-
);
|
|
182
151
|
export {
|
|
183
|
-
|
|
184
|
-
Q as S
|
|
152
|
+
S as I
|
|
185
153
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./identifier-J0ZxxQLU.cjs"),j=require("react"),f=require("./InputBase-DMbFw6s1.cjs"),y=require("./styled-C04Dz9vm.cjs"),a=require("react/jsx-runtime"),I=require("./Typography-C5AoCX91.cjs");function O(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const o in n)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>n[o]})}}return t.default=n,Object.freeze(t)}const b=O(j);function A(n){return e.generateUtilityClass("MuiInputAdornment",n)}const P=e.generateUtilityClasses("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var h;const _=["children","className","component","disablePointerEvents","disableTypography","position","variant"],C=(n,t)=>{const{ownerState:o}=n;return[t.root,t[`position${e.capitalize(o.position)}`],o.disablePointerEvents===!0&&t.disablePointerEvents,t[o.variant]]},N=n=>{const{classes:t,disablePointerEvents:o,hiddenLabel:r,position:s,size:p,variant:l}=n,d={root:["root",o&&"disablePointerEvents",s&&`position${e.capitalize(s)}`,l,r&&"hiddenLabel",p&&`size${e.capitalize(p)}`]};return y.composeClasses(d,A,t)},z=y.styled("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:C})(({theme:n,ownerState:t})=>e._extends({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(n.vars||n).palette.action.active},t.variant==="filled"&&{[`&.${P.positionStart}&:not(.${P.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),T=b.forwardRef(function(t,o){const r=y.useDefaultProps({props:t,name:"MuiInputAdornment"}),{children:s,className:p,component:l="div",disablePointerEvents:d=!1,disableTypography:g=!1,position:m,variant:c}=r,x=e._objectWithoutPropertiesLoose(r,_),i=f.useFormControl()||{};let u=c;c&&i.variant&&process.env.NODE_ENV!=="production"&&c===i.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),i&&!u&&(u=i.variant);const v=e._extends({},r,{hiddenLabel:i.hiddenLabel,size:i.size,disablePointerEvents:d,position:m,variant:u}),E=N(v);return a.jsx(f.FormControlContext.Provider,{value:null,children:a.jsx(z,e._extends({as:l,ownerState:v,className:e.clsx(E.root,p),ref:o},x,{children:typeof s=="string"&&!g?a.jsx(I.Typography,{color:"text.secondary",children:s}):a.jsxs(b.Fragment,{children:[m==="start"?h||(h=a.jsx("span",{className:"notranslate",children:""})):null,s]})}))})});process.env.NODE_ENV!=="production"&&(T.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,disablePointerEvents:e.PropTypes.bool,disableTypography:e.PropTypes.bool,position:e.PropTypes.oneOf(["end","start"]).isRequired,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]),variant:e.PropTypes.oneOf(["filled","outlined","standard"])});exports.InputAdornment=T;
|