@cgi-learning-hub/ui 1.3.3-dev.1732123246 → 1.3.3-dev.1732550407
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/{Backdrop-DorR8O-b.js → Backdrop-DcJf9G30.js} +20 -20
- package/dist/{Box-BTNw-FYi.js → Box-D9cHa8GX.js} +7 -7
- package/dist/{Button--paERYBc.js → Button-Cx05eP88.js} +14 -14
- package/dist/{ButtonBase-B0gJT_ti.js → ButtonBase-z74SMnd9.js} +17 -17
- package/dist/{Card-BVJgnURR.js → Card-mAtxoJ0p.js} +3 -3
- package/dist/{Checkbox-aBoDjdQG.js → Checkbox-Bmz9nh6k.js} +12 -12
- package/dist/{CircularProgress-CIqTwP6H.js → CircularProgress-B5osG37N.js} +16 -16
- package/dist/{DatePicker-DXgVCuAd.js → DatePicker-Ds7y4pei.js} +198 -197
- package/dist/{DatePicker-DGRD-CdO.cjs → DatePicker-MSoGmJoG.cjs} +10 -10
- package/dist/{DefaultPropsProvider-StV_SUuk.js → DefaultPropsProvider-BYFwNPLt.js} +12 -12
- package/dist/Delete-Bb_PhA6v.cjs +1 -0
- package/dist/Delete-Dip-1l7n.js +8 -0
- package/dist/{DialogContent-CP2NOfUr.js → DialogContent-B_NH_if8.js} +21 -21
- package/dist/{DialogTitle-Couh2TzJ.js → DialogTitle-Bx7712Li.js} +4 -4
- package/dist/Divider-CMuvurmv.js +296 -0
- package/dist/Divider-DlN3YfOR.cjs +1 -0
- package/dist/FormControlLabel-BDXTL5Eo.js +261 -0
- package/dist/FormControlLabel-D8GTkxJD.cjs +1 -0
- package/dist/FormGroup-CFDapyxc.cjs +1 -0
- package/dist/FormGroup-DO8m1X6w.js +95 -0
- package/dist/{FormLabel-wDh-AEMQ.js → FormLabel-B11aqT37.js} +34 -33
- package/dist/FormLabel-DcUS1c1d.cjs +2 -0
- package/dist/{Grow-4QU1bnXQ.js → Grow-BKrOFfC1.js} +4 -4
- package/dist/{IconButton-CsqR1453.js → IconButton-DLcGpM1F.js} +4 -4
- package/dist/{InputAdornment-bXTpzNQ2.js → InputAdornment-BrvfHlzv.js} +4 -4
- package/dist/{InputBase-VKt_ajuq.js → InputBase-CHytwRH8.js} +47 -49
- package/dist/InputBase-qhWgXXNd.cjs +3 -0
- package/dist/{Link-CPyeYGpa.js → Link-D_0FIsgB.js} +19 -19
- package/dist/Menu-0Hr9Yx9l.cjs +7 -0
- package/dist/Menu-ysG9uY3e.js +965 -0
- package/dist/MenuItem-BP7OsPVc.cjs +1 -0
- package/dist/{MenuItem-BFkBwBkN.js → MenuItem-DYrKaYOk.js} +69 -74
- package/dist/{Modal-BDx2_UzP.js → Modal-DT240BJZ.js} +42 -42
- package/dist/{Paper-CMUbp6SX.js → Paper-vlsh8Nca.js} +6 -6
- package/dist/{Popper-D_UryU8v.js → Popper-BSaTZXvX.js} +5 -5
- package/dist/{Portal-DVy9JFBN.js → Portal-meM40OhI.js} +3 -3
- package/dist/Radio-CW4v1BS4.js +312 -0
- package/dist/Radio-D-wbZ6M-.cjs +1 -0
- package/dist/{Select-CcnCBhBN.js → Select-CKsf044t.js} +630 -1583
- package/dist/Select-DAHsfas2.cjs +3 -0
- package/dist/{Stack-CKjrTRJB.js → Stack-DbWQHN5i.js} +22 -22
- package/dist/{SwitchBase-DYa1wGSu.js → SwitchBase-DBnju71w.js} +10 -10
- package/dist/{TableSortLabel-Czgy_sW5.js → TableSortLabel-ByZJO-zF.js} +1097 -1382
- package/dist/TableSortLabel-C0MAdw-j.cjs +98 -0
- package/dist/{Tabs-RxcUgknI.js → Tabs-BqJSX1la.js} +10 -10
- package/dist/{TextField-DvGLmvG1.cjs → TextField-C23FnJYk.cjs} +1 -1
- package/dist/{TextField-DorMAtUh.js → TextField-DVUnQAd7.js} +24 -24
- package/dist/{Tooltip-B4e9QdHI.js → Tooltip-41rGxwva.js} +44 -44
- package/dist/{Typography-B29dnCv3.js → Typography-CizHc1nM.js} +4 -4
- package/dist/components/Button/Button.es.js +11 -11
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -5
- package/dist/components/Dropzone/Dropzone.es.js +24 -2162
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +21 -22
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +9 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +148 -0
- package/dist/components/ImagePicker/index.cjs.js +1 -0
- package/dist/components/ImagePicker/index.d.ts +2 -0
- package/dist/components/ImagePicker/index.es.js +4 -0
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +7 -6
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.es.js +266 -260
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.es.js +8 -8
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +41 -12
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -0
- package/dist/components/stories/Divider.stories.d.ts +6 -0
- package/dist/components/stories/Divider.stories.es.js +41 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
- package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
- package/dist/components/stories/FormControlLabel.stories.es.js +378 -0
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/ImagePicker.stories.cjs.js +1 -0
- package/dist/components/stories/ImagePicker.stories.d.ts +6 -0
- package/dist/components/stories/ImagePicker.stories.es.js +16 -0
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -0
- package/dist/components/stories/Menu.stories.d.ts +7 -0
- package/dist/components/stories/Menu.stories.es.js +51 -0
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +70 -372
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.es.js +10 -10
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.cjs.js +1 -0
- package/dist/components/stories/Typography.stories.d.ts +6 -0
- package/dist/components/stories/Typography.stories.es.js +65 -0
- package/dist/{createSvgIcon-VByplk-r.js → createSvgIcon-BS0Qe85N.js} +3 -3
- package/dist/dividerClasses-Bp7otbbC.js +9 -0
- package/dist/dividerClasses-O0vIU6On.cjs +1 -0
- package/dist/{elementTypeAcceptingRef-BPhL72td.js → elementTypeAcceptingRef-DOFWAguJ.js} +1 -1
- package/dist/{extendSxProp-BYB-kybW.js → extendSxProp-BpXLpaGL.js} +1 -1
- package/dist/formControlState-CuX6WjAX.cjs +1 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/{fr-B4aeA9th.js → fr-Djc-bU-B.js} +1 -1
- package/dist/{identifier-BewKgEhI.js → identifier-B7MO0PvI.js} +6 -6
- package/dist/index-BtGBke8y.js +2141 -0
- package/dist/index-CEgiY5tJ.cjs +5 -0
- package/dist/{index-_oi9ph20.js → index-CKZgd5LP.js} +4 -4
- package/dist/{index-BAjSgP8k.js → index-yb8koCDz.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +266 -260
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{memoTheme-B9kDhX1-.js → memoTheme-CqfvfBST.js} +1 -1
- package/dist/{refType-3o3c-kYx.js → refType-BqQbA6de.js} +1 -1
- package/dist/{resolveComponentProps-BQQ-uUKZ.js → resolveComponentProps-CYk57pLv.js} +1 -1
- package/dist/{useSlot-B2hCpx8C.js → useSlot-BSVkAc2J.js} +1 -1
- package/dist/{useTheme-0u9_WhjM.js → useTheme-CzzAEESs.js} +3 -3
- package/dist/{useTheme-BrFhq4dW.js → useTheme-DrsmidxY.js} +1 -1
- package/dist/{useThemeProps-cERu5xHk.js → useThemeProps-B9UyPpzT.js} +3 -3
- package/dist/{useThemeProps-CwWORfXn.js → useThemeProps-BFeVem33.js} +2 -2
- package/dist/{useTimeout-Br8oWWYt.js → useTimeout-Znm_nF2D.js} +1 -1
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/dist/{utils-CH0HZgJe.js → utils-jA5a7WHN.js} +1 -1
- package/package.json +1 -1
- package/dist/FormGroup-CcM69JIS.js +0 -348
- package/dist/FormGroup-KOLND6rE.cjs +0 -1
- package/dist/FormLabel-C506NT5o.cjs +0 -2
- package/dist/InputBase-Cpx39cny.cjs +0 -3
- package/dist/MenuItem-BxXCEc8h.cjs +0 -1
- package/dist/Select-CnFa2_je.cjs +0 -9
- package/dist/TableSortLabel-Ppl9Q-SZ.cjs +0 -98
- package/dist/formControlState-DCkDUdfO.cjs +0 -1
- package/dist/formControlState-DdQP43Uo.js +0 -21
|
@@ -1,19 +1,48 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { C as
|
|
3
|
-
const s = (e) => /* @__PURE__ */
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { C as r } from "../../Checkbox-Bmz9nh6k.js";
|
|
3
|
+
const s = (e) => /* @__PURE__ */ o(r, { ...e }), t = {
|
|
4
4
|
title: "Components/Checkbox",
|
|
5
|
-
component: s
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
component: s,
|
|
6
|
+
argTypes: {
|
|
7
|
+
checked: {
|
|
8
|
+
control: "boolean"
|
|
9
|
+
},
|
|
10
|
+
color: {
|
|
11
|
+
control: "select",
|
|
12
|
+
options: ["primary", "secondary", "success", "error", "info", "warning"]
|
|
13
|
+
},
|
|
14
|
+
disabled: {
|
|
15
|
+
control: "boolean"
|
|
16
|
+
},
|
|
17
|
+
disableRipple: {
|
|
18
|
+
control: "boolean"
|
|
19
|
+
},
|
|
20
|
+
required: {
|
|
21
|
+
control: "boolean"
|
|
22
|
+
},
|
|
23
|
+
size: {
|
|
24
|
+
control: "select",
|
|
25
|
+
options: ["medium", "small"]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}, a = {
|
|
29
|
+
args: {
|
|
30
|
+
checked: void 0,
|
|
31
|
+
color: "primary",
|
|
32
|
+
disabled: !1,
|
|
33
|
+
disableRipple: !1,
|
|
34
|
+
required: !1,
|
|
35
|
+
size: "medium"
|
|
36
|
+
}
|
|
8
37
|
}, n = {
|
|
9
38
|
args: {
|
|
10
39
|
checked: !0
|
|
11
40
|
}
|
|
12
|
-
},
|
|
41
|
+
}, i = {
|
|
13
42
|
args: {
|
|
14
43
|
disabled: !0
|
|
15
44
|
}
|
|
16
|
-
},
|
|
45
|
+
}, d = {
|
|
17
46
|
args: {
|
|
18
47
|
checked: !0,
|
|
19
48
|
disabled: !0
|
|
@@ -21,8 +50,8 @@ const s = (e) => /* @__PURE__ */ t(o, { ...e }), a = {
|
|
|
21
50
|
};
|
|
22
51
|
export {
|
|
23
52
|
n as Checked,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
53
|
+
a as Default,
|
|
54
|
+
i as Disabled,
|
|
55
|
+
d as DisabledChecked,
|
|
56
|
+
t as default
|
|
28
57
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DatePicker-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DatePicker-MSoGmJoG.cjs"),t={title:"Components/DatePicker",component:e.DatePicker},a={args:{adapterLocale:"fr"}};exports.Default=a;exports.default=t;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as t, Fragment as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as c } from "react";
|
|
3
3
|
import i from "../Button/Button.es.js";
|
|
4
|
-
import { D as u, b as m, a as d } from "../../DialogContent-
|
|
5
|
-
import { a as p, D as g } from "../../DialogTitle-
|
|
4
|
+
import { D as u, b as m, a as d } from "../../DialogContent-B_NH_if8.js";
|
|
5
|
+
import { a as p, D as g } from "../../DialogTitle-Bx7712Li.js";
|
|
6
6
|
const D = (a) => {
|
|
7
7
|
const [l, o] = c(!1), r = () => o(!0), n = () => o(!1);
|
|
8
8
|
return /* @__PURE__ */ t(s, { children: [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Divider-DlN3YfOR.cjs"),t={title:"Components/Divider",component:e.Divider,argTypes:{absolute:{control:"boolean"},children:{control:"text"},flexItem:{control:"boolean"},orientation:{control:"select",options:["horizontal","vertical"]},textAlign:{control:"select",options:["center","left","right"]},variant:{control:"select",options:["fullWidth","inset","middle"]}}},o={args:{absolute:!1,children:void 0,flexItem:!1,orientation:"horizontal",textAlign:"center",variant:"fullWidth"}};exports.Default=o;exports.default=t;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { D as t } from "../../Divider-CMuvurmv.js";
|
|
2
|
+
const e = {
|
|
3
|
+
title: "Components/Divider",
|
|
4
|
+
component: t,
|
|
5
|
+
argTypes: {
|
|
6
|
+
absolute: {
|
|
7
|
+
control: "boolean"
|
|
8
|
+
},
|
|
9
|
+
children: {
|
|
10
|
+
control: "text"
|
|
11
|
+
},
|
|
12
|
+
flexItem: {
|
|
13
|
+
control: "boolean"
|
|
14
|
+
},
|
|
15
|
+
orientation: {
|
|
16
|
+
control: "select",
|
|
17
|
+
options: ["horizontal", "vertical"]
|
|
18
|
+
},
|
|
19
|
+
textAlign: {
|
|
20
|
+
control: "select",
|
|
21
|
+
options: ["center", "left", "right"]
|
|
22
|
+
},
|
|
23
|
+
variant: {
|
|
24
|
+
control: "select",
|
|
25
|
+
options: ["fullWidth", "inset", "middle"]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}, l = {
|
|
29
|
+
args: {
|
|
30
|
+
absolute: !1,
|
|
31
|
+
children: void 0,
|
|
32
|
+
flexItem: !1,
|
|
33
|
+
orientation: "horizontal",
|
|
34
|
+
textAlign: "center",
|
|
35
|
+
variant: "fullWidth"
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
l as Default,
|
|
40
|
+
e as default
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),f=require("../../Checkbox-OTMaikud.cjs"),m=require("../../Radio-D-wbZ6M-.cjs"),T=require("react"),o=require("../../identifier-DTh6b5Gz.cjs"),k=require("../../createSimplePaletteValueFilter-PTK3TAhW.cjs"),S=require("../../SwitchBase-DWfUIgEW.cjs"),p=require("../../memoTheme-DJBS0nbO.cjs"),n=require("../../DefaultPropsProvider-eVMpAUQg.cjs"),P=require("../../refType-DNB-r0Bp.cjs"),$=require("../../FormControlLabel-D8GTkxJD.cjs");function C(e){const t=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(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const x=C(T);function j(e){return o.generateUtilityClass("MuiSwitch",e)}const a=o.generateUtilityClasses("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),z=e=>{const{classes:t,edge:r,size:i,color:d,checked:u,disabled:b}=e,y={root:["root",r&&`edge${o.capitalize(r)}`,`size${o.capitalize(i)}`],switchBase:["switchBase",`color${o.capitalize(d)}`,u&&"checked",b&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},h=n.composeClasses(y,j,t);return{...t,...h}},O=n.styled("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${o.capitalize(r.edge)}`],t[`size${o.capitalize(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${a.thumb}`]:{width:16,height:16},[`& .${a.switchBase}`]:{padding:4,[`&.${a.checked}`]:{transform:"translateX(16px)"}}}}]}),R=n.styled(S.SwitchBase,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${a.input}`]:t.input},r.color!=="default"&&t[`color${o.capitalize(r.color)}`]]}})(p.memoTheme(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${a.checked}`]:{transform:"translateX(20px)"},[`&.${a.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${a.checked} + .${a.track}`]:{opacity:.5},[`&.${a.disabled} + .${a.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${a.input}`]:{left:"-100%",width:"300%"}})),p.memoTheme(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:o.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(k.createSimplePaletteValueFilter(["light"])).map(([t])=>({props:{color:t},style:{[`&.${a.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:o.alpha(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${a.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?o.lighten(e.palette[t].main,.62):o.darken(e.palette[t].main,.55)}`}},[`&.${a.checked} + .${a.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),q=n.styled("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(p.memoTheme(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),B=n.styled("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(p.memoTheme(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),v=x.forwardRef(function(t,r){const i=n.useDefaultProps({props:t,name:"MuiSwitch"}),{className:d,color:u="primary",edge:b=!1,size:y="medium",sx:h,...w}=i,c={...i,color:u,edge:b,size:y},l=z(c),g=s.jsx(B,{className:l.thumb,ownerState:c});return s.jsxs(O,{className:o.clsx(l.root,d),sx:h,ownerState:c,children:[s.jsx(R,{type:"checkbox",icon:g,checkedIcon:g,ref:r,ownerState:c,...w,classes:{...l,root:l.switchBase}}),s.jsx(q,{className:l.track,ownerState:c})]})});process.env.NODE_ENV!=="production"&&(v.propTypes={checked:o.PropTypes.bool,checkedIcon:o.PropTypes.node,classes:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOfType([o.PropTypes.oneOf(["default","primary","secondary","error","info","success","warning"]),o.PropTypes.string]),defaultChecked:o.PropTypes.bool,disabled:o.PropTypes.bool,disableRipple:o.PropTypes.bool,edge:o.PropTypes.oneOf(["end","start",!1]),icon:o.PropTypes.node,id:o.PropTypes.string,inputProps:o.PropTypes.object,inputRef:P.refType,onChange:o.PropTypes.func,required:o.PropTypes.bool,size:o.PropTypes.oneOfType([o.PropTypes.oneOf(["medium","small"]),o.PropTypes.string]),sx:o.PropTypes.oneOfType([o.PropTypes.arrayOf(o.PropTypes.oneOfType([o.PropTypes.func,o.PropTypes.object,o.PropTypes.bool])),o.PropTypes.func,o.PropTypes.object]),value:o.PropTypes.any});const M=e=>s.jsx($.FormControlLabel,{...e}),D={title:"Components/FormControlLabel",component:M,argTypes:{control:{control:"object"},disabled:{control:"boolean"},disableTypography:{control:"boolean"},label:{control:"object"},labelPlacement:{control:"select",options:["bottom","end","start","top"]},required:{control:"boolean"}}},L={args:{control:s.jsx(f.Checkbox,{}),checked:void 0,disabled:void 0,disableTypography:void 0,label:"Label",labelPlacement:"end",required:void 0}},N={args:{control:s.jsx(m.Radio,{}),label:"Label"}},F={args:{control:s.jsx(v,{}),label:"Label"}};exports.Checkbox=L;exports.Radio=N;exports.Switch=F;exports.default=D;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormControlLabelProps } from '@mui/material/FormControlLabel';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const FormControlLabel: (props: FormControlLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const meta: Meta<typeof FormControlLabel>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof FormControlLabel>;
|
|
7
|
+
export declare const Checkbox: Story;
|
|
8
|
+
export declare const Radio: Story;
|
|
9
|
+
export declare const Switch: Story;
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { jsxs as y, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { C as S } from "../../Checkbox-Bmz9nh6k.js";
|
|
3
|
+
import { a as $ } from "../../Radio-CW4v1BS4.js";
|
|
4
|
+
import * as C from "react";
|
|
5
|
+
import { I as x, H as T, L as i, P as t, n as f, s as R, q as z, G as O } from "../../identifier-B7MO0PvI.js";
|
|
6
|
+
import { c as j } from "../../createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
7
|
+
import { S as B } from "../../SwitchBase-DBnju71w.js";
|
|
8
|
+
import { m as d } from "../../memoTheme-CqfvfBST.js";
|
|
9
|
+
import { s as p, u as L, c as M } from "../../DefaultPropsProvider-BYFwNPLt.js";
|
|
10
|
+
import { r as P } from "../../refType-BqQbA6de.js";
|
|
11
|
+
import { F as N } from "../../FormControlLabel-BDXTL5Eo.js";
|
|
12
|
+
function I(o) {
|
|
13
|
+
return T("MuiSwitch", o);
|
|
14
|
+
}
|
|
15
|
+
const a = x("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), D = (o) => {
|
|
16
|
+
const {
|
|
17
|
+
classes: e,
|
|
18
|
+
edge: r,
|
|
19
|
+
size: l,
|
|
20
|
+
color: b,
|
|
21
|
+
checked: u,
|
|
22
|
+
disabled: g
|
|
23
|
+
} = o, h = {
|
|
24
|
+
root: ["root", r && `edge${i(r)}`, `size${i(l)}`],
|
|
25
|
+
switchBase: ["switchBase", `color${i(b)}`, u && "checked", g && "disabled"],
|
|
26
|
+
thumb: ["thumb"],
|
|
27
|
+
track: ["track"],
|
|
28
|
+
input: ["input"]
|
|
29
|
+
}, m = M(h, I, e);
|
|
30
|
+
return {
|
|
31
|
+
...e,
|
|
32
|
+
// forward the disabled and checked classes to the SwitchBase
|
|
33
|
+
...m
|
|
34
|
+
};
|
|
35
|
+
}, F = p("span", {
|
|
36
|
+
name: "MuiSwitch",
|
|
37
|
+
slot: "Root",
|
|
38
|
+
overridesResolver: (o, e) => {
|
|
39
|
+
const {
|
|
40
|
+
ownerState: r
|
|
41
|
+
} = o;
|
|
42
|
+
return [e.root, r.edge && e[`edge${i(r.edge)}`], e[`size${i(r.size)}`]];
|
|
43
|
+
}
|
|
44
|
+
})({
|
|
45
|
+
display: "inline-flex",
|
|
46
|
+
width: 34 + 12 * 2,
|
|
47
|
+
height: 14 + 12 * 2,
|
|
48
|
+
overflow: "hidden",
|
|
49
|
+
padding: 12,
|
|
50
|
+
boxSizing: "border-box",
|
|
51
|
+
position: "relative",
|
|
52
|
+
flexShrink: 0,
|
|
53
|
+
zIndex: 0,
|
|
54
|
+
// Reset the stacking context.
|
|
55
|
+
verticalAlign: "middle",
|
|
56
|
+
// For correct alignment with the text.
|
|
57
|
+
"@media print": {
|
|
58
|
+
colorAdjust: "exact"
|
|
59
|
+
},
|
|
60
|
+
variants: [{
|
|
61
|
+
props: {
|
|
62
|
+
edge: "start"
|
|
63
|
+
},
|
|
64
|
+
style: {
|
|
65
|
+
marginLeft: -8
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
props: {
|
|
69
|
+
edge: "end"
|
|
70
|
+
},
|
|
71
|
+
style: {
|
|
72
|
+
marginRight: -8
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
props: {
|
|
76
|
+
size: "small"
|
|
77
|
+
},
|
|
78
|
+
style: {
|
|
79
|
+
width: 40,
|
|
80
|
+
height: 24,
|
|
81
|
+
padding: 7,
|
|
82
|
+
[`& .${a.thumb}`]: {
|
|
83
|
+
width: 16,
|
|
84
|
+
height: 16
|
|
85
|
+
},
|
|
86
|
+
[`& .${a.switchBase}`]: {
|
|
87
|
+
padding: 4,
|
|
88
|
+
[`&.${a.checked}`]: {
|
|
89
|
+
transform: "translateX(16px)"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}]
|
|
94
|
+
}), q = p(B, {
|
|
95
|
+
name: "MuiSwitch",
|
|
96
|
+
slot: "SwitchBase",
|
|
97
|
+
overridesResolver: (o, e) => {
|
|
98
|
+
const {
|
|
99
|
+
ownerState: r
|
|
100
|
+
} = o;
|
|
101
|
+
return [e.switchBase, {
|
|
102
|
+
[`& .${a.input}`]: e.input
|
|
103
|
+
}, r.color !== "default" && e[`color${i(r.color)}`]];
|
|
104
|
+
}
|
|
105
|
+
})(d(({
|
|
106
|
+
theme: o
|
|
107
|
+
}) => ({
|
|
108
|
+
position: "absolute",
|
|
109
|
+
top: 0,
|
|
110
|
+
left: 0,
|
|
111
|
+
zIndex: 1,
|
|
112
|
+
// Render above the focus ripple.
|
|
113
|
+
color: o.vars ? o.vars.palette.Switch.defaultColor : `${o.palette.mode === "light" ? o.palette.common.white : o.palette.grey[300]}`,
|
|
114
|
+
transition: o.transitions.create(["left", "transform"], {
|
|
115
|
+
duration: o.transitions.duration.shortest
|
|
116
|
+
}),
|
|
117
|
+
[`&.${a.checked}`]: {
|
|
118
|
+
transform: "translateX(20px)"
|
|
119
|
+
},
|
|
120
|
+
[`&.${a.disabled}`]: {
|
|
121
|
+
color: o.vars ? o.vars.palette.Switch.defaultDisabledColor : `${o.palette.mode === "light" ? o.palette.grey[100] : o.palette.grey[600]}`
|
|
122
|
+
},
|
|
123
|
+
[`&.${a.checked} + .${a.track}`]: {
|
|
124
|
+
opacity: 0.5
|
|
125
|
+
},
|
|
126
|
+
[`&.${a.disabled} + .${a.track}`]: {
|
|
127
|
+
opacity: o.vars ? o.vars.opacity.switchTrackDisabled : `${o.palette.mode === "light" ? 0.12 : 0.2}`
|
|
128
|
+
},
|
|
129
|
+
[`& .${a.input}`]: {
|
|
130
|
+
left: "-100%",
|
|
131
|
+
width: "300%"
|
|
132
|
+
}
|
|
133
|
+
})), d(({
|
|
134
|
+
theme: o
|
|
135
|
+
}) => ({
|
|
136
|
+
"&:hover": {
|
|
137
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : f(o.palette.action.active, o.palette.action.hoverOpacity),
|
|
138
|
+
// Reset on touch devices, it doesn't add specificity
|
|
139
|
+
"@media (hover: none)": {
|
|
140
|
+
backgroundColor: "transparent"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
variants: [...Object.entries(o.palette).filter(j(["light"])).map(([e]) => ({
|
|
144
|
+
props: {
|
|
145
|
+
color: e
|
|
146
|
+
},
|
|
147
|
+
style: {
|
|
148
|
+
[`&.${a.checked}`]: {
|
|
149
|
+
color: (o.vars || o).palette[e].main,
|
|
150
|
+
"&:hover": {
|
|
151
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette[e].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : f(o.palette[e].main, o.palette.action.hoverOpacity),
|
|
152
|
+
"@media (hover: none)": {
|
|
153
|
+
backgroundColor: "transparent"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
[`&.${a.disabled}`]: {
|
|
157
|
+
color: o.vars ? o.vars.palette.Switch[`${e}DisabledColor`] : `${o.palette.mode === "light" ? R(o.palette[e].main, 0.62) : z(o.palette[e].main, 0.55)}`
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
[`&.${a.checked} + .${a.track}`]: {
|
|
161
|
+
backgroundColor: (o.vars || o).palette[e].main
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}))]
|
|
165
|
+
}))), U = p("span", {
|
|
166
|
+
name: "MuiSwitch",
|
|
167
|
+
slot: "Track",
|
|
168
|
+
overridesResolver: (o, e) => e.track
|
|
169
|
+
})(d(({
|
|
170
|
+
theme: o
|
|
171
|
+
}) => ({
|
|
172
|
+
height: "100%",
|
|
173
|
+
width: "100%",
|
|
174
|
+
borderRadius: 14 / 2,
|
|
175
|
+
zIndex: -1,
|
|
176
|
+
transition: o.transitions.create(["opacity", "background-color"], {
|
|
177
|
+
duration: o.transitions.duration.shortest
|
|
178
|
+
}),
|
|
179
|
+
backgroundColor: o.vars ? o.vars.palette.common.onBackground : `${o.palette.mode === "light" ? o.palette.common.black : o.palette.common.white}`,
|
|
180
|
+
opacity: o.vars ? o.vars.opacity.switchTrack : `${o.palette.mode === "light" ? 0.38 : 0.3}`
|
|
181
|
+
}))), E = p("span", {
|
|
182
|
+
name: "MuiSwitch",
|
|
183
|
+
slot: "Thumb",
|
|
184
|
+
overridesResolver: (o, e) => e.thumb
|
|
185
|
+
})(d(({
|
|
186
|
+
theme: o
|
|
187
|
+
}) => ({
|
|
188
|
+
boxShadow: (o.vars || o).shadows[1],
|
|
189
|
+
backgroundColor: "currentColor",
|
|
190
|
+
width: 20,
|
|
191
|
+
height: 20,
|
|
192
|
+
borderRadius: "50%"
|
|
193
|
+
}))), w = /* @__PURE__ */ C.forwardRef(function(e, r) {
|
|
194
|
+
const l = L({
|
|
195
|
+
props: e,
|
|
196
|
+
name: "MuiSwitch"
|
|
197
|
+
}), {
|
|
198
|
+
className: b,
|
|
199
|
+
color: u = "primary",
|
|
200
|
+
edge: g = !1,
|
|
201
|
+
size: h = "medium",
|
|
202
|
+
sx: m,
|
|
203
|
+
...k
|
|
204
|
+
} = l, n = {
|
|
205
|
+
...l,
|
|
206
|
+
color: u,
|
|
207
|
+
edge: g,
|
|
208
|
+
size: h
|
|
209
|
+
}, c = D(n), v = /* @__PURE__ */ s(E, {
|
|
210
|
+
className: c.thumb,
|
|
211
|
+
ownerState: n
|
|
212
|
+
});
|
|
213
|
+
return /* @__PURE__ */ y(F, {
|
|
214
|
+
className: O(c.root, b),
|
|
215
|
+
sx: m,
|
|
216
|
+
ownerState: n,
|
|
217
|
+
children: [/* @__PURE__ */ s(q, {
|
|
218
|
+
type: "checkbox",
|
|
219
|
+
icon: v,
|
|
220
|
+
checkedIcon: v,
|
|
221
|
+
ref: r,
|
|
222
|
+
ownerState: n,
|
|
223
|
+
...k,
|
|
224
|
+
classes: {
|
|
225
|
+
...c,
|
|
226
|
+
root: c.switchBase
|
|
227
|
+
}
|
|
228
|
+
}), /* @__PURE__ */ s(U, {
|
|
229
|
+
className: c.track,
|
|
230
|
+
ownerState: n
|
|
231
|
+
})]
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
235
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
236
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
237
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
238
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
239
|
+
/**
|
|
240
|
+
* If `true`, the component is checked.
|
|
241
|
+
*/
|
|
242
|
+
checked: t.bool,
|
|
243
|
+
/**
|
|
244
|
+
* The icon to display when the component is checked.
|
|
245
|
+
*/
|
|
246
|
+
checkedIcon: t.node,
|
|
247
|
+
/**
|
|
248
|
+
* Override or extend the styles applied to the component.
|
|
249
|
+
*/
|
|
250
|
+
classes: t.object,
|
|
251
|
+
/**
|
|
252
|
+
* @ignore
|
|
253
|
+
*/
|
|
254
|
+
className: t.string,
|
|
255
|
+
/**
|
|
256
|
+
* The color of the component.
|
|
257
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
258
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
259
|
+
* @default 'primary'
|
|
260
|
+
*/
|
|
261
|
+
color: t.oneOfType([t.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
|
|
262
|
+
/**
|
|
263
|
+
* The default checked state. Use when the component is not controlled.
|
|
264
|
+
*/
|
|
265
|
+
defaultChecked: t.bool,
|
|
266
|
+
/**
|
|
267
|
+
* If `true`, the component is disabled.
|
|
268
|
+
*/
|
|
269
|
+
disabled: t.bool,
|
|
270
|
+
/**
|
|
271
|
+
* If `true`, the ripple effect is disabled.
|
|
272
|
+
* @default false
|
|
273
|
+
*/
|
|
274
|
+
disableRipple: t.bool,
|
|
275
|
+
/**
|
|
276
|
+
* If given, uses a negative margin to counteract the padding on one
|
|
277
|
+
* side (this is often helpful for aligning the left or right
|
|
278
|
+
* side of the icon with content above or below, without ruining the border
|
|
279
|
+
* size and shape).
|
|
280
|
+
* @default false
|
|
281
|
+
*/
|
|
282
|
+
edge: t.oneOf(["end", "start", !1]),
|
|
283
|
+
/**
|
|
284
|
+
* The icon to display when the component is unchecked.
|
|
285
|
+
*/
|
|
286
|
+
icon: t.node,
|
|
287
|
+
/**
|
|
288
|
+
* The id of the `input` element.
|
|
289
|
+
*/
|
|
290
|
+
id: t.string,
|
|
291
|
+
/**
|
|
292
|
+
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
293
|
+
*/
|
|
294
|
+
inputProps: t.object,
|
|
295
|
+
/**
|
|
296
|
+
* Pass a ref to the `input` element.
|
|
297
|
+
*/
|
|
298
|
+
inputRef: P,
|
|
299
|
+
/**
|
|
300
|
+
* Callback fired when the state is changed.
|
|
301
|
+
*
|
|
302
|
+
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
303
|
+
* You can pull out the new value by accessing `event.target.value` (string).
|
|
304
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
305
|
+
*/
|
|
306
|
+
onChange: t.func,
|
|
307
|
+
/**
|
|
308
|
+
* If `true`, the `input` element is required.
|
|
309
|
+
* @default false
|
|
310
|
+
*/
|
|
311
|
+
required: t.bool,
|
|
312
|
+
/**
|
|
313
|
+
* The size of the component.
|
|
314
|
+
* `small` is equivalent to the dense switch styling.
|
|
315
|
+
* @default 'medium'
|
|
316
|
+
*/
|
|
317
|
+
size: t.oneOfType([t.oneOf(["medium", "small"]), t.string]),
|
|
318
|
+
/**
|
|
319
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
320
|
+
*/
|
|
321
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
322
|
+
/**
|
|
323
|
+
* The value of the component. The DOM API casts this to a string.
|
|
324
|
+
* The browser uses "on" as the default value.
|
|
325
|
+
*/
|
|
326
|
+
value: t.any
|
|
327
|
+
});
|
|
328
|
+
const A = (o) => /* @__PURE__ */ s(N, { ...o }), Z = {
|
|
329
|
+
title: "Components/FormControlLabel",
|
|
330
|
+
component: A,
|
|
331
|
+
argTypes: {
|
|
332
|
+
control: {
|
|
333
|
+
control: "object"
|
|
334
|
+
},
|
|
335
|
+
disabled: {
|
|
336
|
+
control: "boolean"
|
|
337
|
+
},
|
|
338
|
+
disableTypography: {
|
|
339
|
+
control: "boolean"
|
|
340
|
+
},
|
|
341
|
+
label: {
|
|
342
|
+
control: "object"
|
|
343
|
+
},
|
|
344
|
+
labelPlacement: {
|
|
345
|
+
control: "select",
|
|
346
|
+
options: ["bottom", "end", "start", "top"]
|
|
347
|
+
},
|
|
348
|
+
required: {
|
|
349
|
+
control: "boolean"
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}, oo = {
|
|
353
|
+
args: {
|
|
354
|
+
control: /* @__PURE__ */ s(S, {}),
|
|
355
|
+
checked: void 0,
|
|
356
|
+
disabled: void 0,
|
|
357
|
+
disableTypography: void 0,
|
|
358
|
+
label: "Label",
|
|
359
|
+
labelPlacement: "end",
|
|
360
|
+
required: void 0
|
|
361
|
+
}
|
|
362
|
+
}, to = {
|
|
363
|
+
args: {
|
|
364
|
+
control: /* @__PURE__ */ s($, {}),
|
|
365
|
+
label: "Label"
|
|
366
|
+
}
|
|
367
|
+
}, eo = {
|
|
368
|
+
args: {
|
|
369
|
+
control: /* @__PURE__ */ s(w, {}),
|
|
370
|
+
label: "Label"
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
export {
|
|
374
|
+
oo as Checkbox,
|
|
375
|
+
to as Radio,
|
|
376
|
+
eo as Switch,
|
|
377
|
+
Z as default
|
|
378
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as t } from "../../createSvgIcon-
|
|
2
|
+
import { c as t } from "../../createSvgIcon-BS0Qe85N.js";
|
|
3
3
|
import n from "../Heading/Heading.es.js";
|
|
4
|
-
import { r as c } from "../../identifier-
|
|
4
|
+
import { r as c } from "../../identifier-B7MO0PvI.js";
|
|
5
5
|
const e = t(/* @__PURE__ */ o("path", {
|
|
6
6
|
d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"
|
|
7
7
|
}), "Mood"), i = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as t } from "../../createSvgIcon-
|
|
3
|
-
import { I as o } from "../../IconButton-
|
|
2
|
+
import { c as t } from "../../createSvgIcon-BS0Qe85N.js";
|
|
3
|
+
import { I as o } from "../../IconButton-DLcGpM1F.js";
|
|
4
4
|
const s = t(/* @__PURE__ */ c("path", {
|
|
5
5
|
d: "M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28M3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7s-.54.11-.7-.12c-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21m6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39s-4.66 1.97-4.66 4.39c0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15m7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12M14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94s3.08 1.32 3.08 2.94c0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38"
|
|
6
6
|
}), "Fingerprint"), a = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../ImagePicker/ImagePicker.cjs.js"),t={title:"Components/ImagePicker",component:o},n={args:{information:"SVG, PNG, JPG, GIF",onFileChange:e=>{console.log(e?"Image uplaodé":"Image supprimé")}}};exports.Default=n;exports.default=t;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import o from "../ImagePicker/ImagePicker.es.js";
|
|
2
|
+
const n = {
|
|
3
|
+
title: "Components/ImagePicker",
|
|
4
|
+
component: o
|
|
5
|
+
}, t = {
|
|
6
|
+
args: {
|
|
7
|
+
information: "SVG, PNG, JPG, GIF",
|
|
8
|
+
onFileChange: (e) => {
|
|
9
|
+
console.log(e ? "Image uplaodé" : "Image supprimé");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
t as Default,
|
|
15
|
+
n as default
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),l=require("react"),a=require("../Button/Button.cjs.js"),d=require("../../Menu-0Hr9Yx9l.cjs"),o=require("../../MenuItem-BP7OsPVc.cjs"),m=r=>{const[u,s]=l.useState(null),t=!!u,c=i=>{s(i.currentTarget)},n=()=>s(null);return e.jsxs(e.Fragment,{children:[e.jsx(a,{variant:"text",id:"basic-button","aria-controls":t?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":t?"true":void 0,onClick:c,children:"Open menu"}),e.jsxs(d.Menu,{...r,id:"basic-menu",anchorEl:u,open:t,onClose:n,MenuListProps:{"aria-labelledby":"basic-button"},children:[e.jsx(o.MenuItem,{onClick:n,children:"Profile"}),e.jsx(o.MenuItem,{onClick:n,children:"My account"}),e.jsx(o.MenuItem,{onClick:n,children:"Logout"})]})]})},M={title:"Components/Menu",component:m},p={args:{}};exports.Default=p;exports.default=M;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuProps } from '@mui/material/Menu';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const Menu: (props: MenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const meta: Meta<typeof Menu>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Menu>;
|
|
7
|
+
export declare const Default: Story;
|