@cgi-learning-hub/ui 1.3.3-dev.1732021842 → 1.3.3-dev.1732274173
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-DcJf9G30.js +359 -0
- package/dist/Backdrop-cE8nccLi.cjs +1 -0
- package/dist/{Box-UE-zctbJ.js → Box-D9cHa8GX.js} +9 -9
- package/dist/{Box-H49yQEt_.cjs → Box-Y_dUbq3W.cjs} +1 -1
- package/dist/{Button-Bjy0iPNm.js → Button-Cx05eP88.js} +14 -14
- package/dist/{Button-qc45QbX6.cjs → Button-TBA8S65S.cjs} +1 -1
- package/dist/ButtonBase-DKxpvXo7.cjs +74 -0
- package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-z74SMnd9.js} +232 -240
- package/dist/Card-DBGYwd3H.cjs +1 -0
- package/dist/Card-mAtxoJ0p.js +74 -0
- package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-Bmz9nh6k.js} +12 -12
- package/dist/{Checkbox-CuYTY0gd.cjs → Checkbox-OTMaikud.cjs} +1 -1
- package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-B5osG37N.js} +17 -17
- package/dist/{CircularProgress-BPHINMQw.cjs → CircularProgress-DjNvPtUm.cjs} +7 -7
- package/dist/DatePicker-Ds7y4pei.js +10815 -0
- package/dist/DatePicker-MSoGmJoG.cjs +14 -0
- package/dist/{DefaultPropsProvider-CaRoy5OV.js → DefaultPropsProvider-BYFwNPLt.js} +31 -31
- package/dist/{DefaultPropsProvider-BrX6iuA3.cjs → DefaultPropsProvider-eVMpAUQg.cjs} +1 -1
- package/dist/DialogContent-B_NH_if8.js +602 -0
- package/dist/DialogContent-C0L4r0-p.cjs +1 -0
- package/dist/DialogTitle-Bx7712Li.js +134 -0
- package/dist/DialogTitle-DemSKN6H.cjs +1 -0
- 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-B4QlkhhB.js → FormLabel-B11aqT37.js} +36 -42
- package/dist/FormLabel-DcUS1c1d.cjs +2 -0
- package/dist/Grow-BKrOFfC1.js +193 -0
- package/dist/Grow-C_nN9VuE.cjs +1 -0
- package/dist/IconButton-5LMERRPL.cjs +2 -0
- package/dist/{IconButton-Av8eJ5IG.js → IconButton-DLcGpM1F.js} +5 -5
- package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-BrvfHlzv.js} +4 -4
- package/dist/{InputAdornment-BJfpEQAa.cjs → InputAdornment-DgT008NI.cjs} +1 -1
- package/dist/{InputBase-Bbgoz8GV.js → InputBase-CHytwRH8.js} +59 -59
- package/dist/InputBase-qhWgXXNd.cjs +3 -0
- package/dist/Link-6UH3Aljp.cjs +1 -0
- package/dist/Link-D_0FIsgB.js +266 -0
- package/dist/Menu-0Hr9Yx9l.cjs +7 -0
- package/dist/Menu-ysG9uY3e.js +965 -0
- package/dist/MenuItem-BP7OsPVc.cjs +1 -0
- package/dist/{MenuItem-D7HWYhF3.js → MenuItem-DYrKaYOk.js} +69 -74
- package/dist/Modal-BLMnkdGb.cjs +2 -0
- package/dist/Modal-DT240BJZ.js +750 -0
- package/dist/Paper-n4KgM09K.cjs +2 -0
- package/dist/Paper-vlsh8Nca.js +185 -0
- package/dist/Popper-BSaTZXvX.js +1407 -0
- package/dist/Popper-DzQZEFYT.cjs +4 -0
- package/dist/Portal-C4QgaMKl.cjs +1 -0
- package/dist/Portal-meM40OhI.js +86 -0
- package/dist/Radio-CW4v1BS4.js +312 -0
- package/dist/Radio-D-wbZ6M-.cjs +1 -0
- package/dist/Select-CKsf044t.js +2602 -0
- package/dist/Select-DAHsfas2.cjs +3 -0
- package/dist/{Stack-y1PjTHKX.js → Stack-DbWQHN5i.js} +18 -18
- package/dist/{Stack-CEjx3KHM.cjs → Stack-elRjtOGk.cjs} +1 -1
- package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-DBnju71w.js} +10 -10
- package/dist/{SwitchBase-URM3X3YZ.cjs → SwitchBase-DWfUIgEW.cjs} +1 -1
- package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-ByZJO-zF.js} +2447 -3849
- package/dist/TableSortLabel-C0MAdw-j.cjs +98 -0
- package/dist/{Tabs-DK4Bc5xo.js → Tabs-BqJSX1la.js} +284 -282
- package/dist/Tabs-CUpcnsPl.cjs +4 -0
- package/dist/{TextField-BVAkADOb.cjs → TextField-C23FnJYk.cjs} +1 -1
- package/dist/{TextField-C-B529_r.js → TextField-DVUnQAd7.js} +24 -24
- package/dist/Tooltip-41rGxwva.js +697 -0
- package/dist/Tooltip-CPAH20AZ.cjs +4 -0
- package/dist/{Typography-C_ESP41L.js → Typography-CizHc1nM.js} +4 -4
- package/dist/{Typography-5OodZ94T.cjs → Typography-DyMSnhvs.cjs} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
- package/dist/chainPropTypes-D9lkm76m.js +8 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +12 -12
- 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 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- 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 +6 -6
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +2 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
- 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.es.js +282 -272
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -0
- package/dist/components/stories/Card.stories.d.ts +7 -0
- package/dist/components/stories/Card.stories.es.js +193 -0
- 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.cjs.js +1 -0
- package/dist/components/stories/Dialog.stories.d.ts +7 -0
- package/dist/components/stories/Dialog.stories.es.js +33 -0
- 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.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -0
- package/dist/components/stories/Link.stories.d.ts +7 -0
- package/dist/components/stories/Link.stories.es.js +43 -0
- 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.cjs.js +1 -0
- package/dist/components/stories/Paper.stories.d.ts +7 -0
- package/dist/components/stories/Paper.stories.es.js +28 -0
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +70 -371
- 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.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +8 -8
- 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.cjs.js +1 -0
- package/dist/components/stories/Tooltip.stories.d.ts +7 -0
- package/dist/components/stories/Tooltip.stories.es.js +46 -0
- 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/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
- package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-BS0Qe85N.js} +3 -3
- package/dist/{createSvgIcon-GU7fqNnI.cjs → createSvgIcon-DQqazotA.cjs} +1 -1
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/dividerClasses-Bp7otbbC.js +9 -0
- package/dist/dividerClasses-O0vIU6On.cjs +1 -0
- package/dist/elementTypeAcceptingRef-DOFWAguJ.js +23 -0
- package/dist/elementTypeAcceptingRef-DiSL8-Ea.cjs +1 -0
- package/dist/{extendSxProp-D11-pC6h.cjs → extendSxProp-BZ8P8fbI.cjs} +1 -1
- package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-BpXLpaGL.js} +1 -1
- package/dist/formControlState-CuX6WjAX.cjs +1 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/{fr-Nvp7C-vS.cjs → fr-CSCQhSqi.cjs} +1 -1
- package/dist/{fr-B8_MxRl5.js → fr-Djc-bU-B.js} +23 -23
- package/dist/{identifier-BqadgaK7.js → identifier-B7MO0PvI.js} +490 -489
- package/dist/{identifier-BQH88SE0.cjs → identifier-DTh6b5Gz.cjs} +17 -17
- package/dist/{index-CNv8ppur.cjs → index-B_acx8gh.cjs} +1 -1
- package/dist/{index-BUxqDIr9.js → index-CKZgd5LP.js} +4 -4
- package/dist/{index-D7nFYLYq.cjs → index-oINGa1MV.cjs} +1 -1
- package/dist/{index-CRT92bm7.js → index-yb8koCDz.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +282 -272
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isFocusVisible-DlSijby6.cjs +2 -0
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{memoTheme-DfGVDRrB.js → memoTheme-CqfvfBST.js} +1 -1
- package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-DJBS0nbO.cjs} +1 -1
- package/dist/ownerDocument-4MViGo3k.cjs +1 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-DDHucZi0.cjs +1 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/refType-BqQbA6de.js +7 -0
- package/dist/refType-DNB-r0Bp.cjs +1 -0
- package/dist/{resolveComponentProps-CxJ2yAJn.js → resolveComponentProps-CYk57pLv.js} +1 -1
- package/dist/{resolveComponentProps-DTv6xPbb.cjs → resolveComponentProps-R_l8gy3y.cjs} +1 -1
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/{useSlot-Co14PUn6.js → useSlot-BSVkAc2J.js} +2 -2
- package/dist/{useSlot-42jgZftI.cjs → useSlot-i7AZwCRV.cjs} +1 -1
- package/dist/{useTheme-CtT7O-Wk.js → useTheme-CzzAEESs.js} +3 -3
- package/dist/{useTheme-tZYpFplW.cjs → useTheme-DfN3sBzg.cjs} +1 -1
- package/dist/{useTheme-oM_SFWy4.js → useTheme-DrsmidxY.js} +1 -1
- package/dist/{useTheme-cVN-YQNB.cjs → useTheme-w4BoR6ol.cjs} +1 -1
- package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-B9UyPpzT.js} +3 -3
- package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-BFeVem33.js} +2 -2
- package/dist/{useThemeProps-r0DnR8FJ.cjs → useThemeProps-BoO3MMZc.cjs} +1 -1
- package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-CkGODfms.cjs} +1 -1
- package/dist/{useTimeout-DWEGwfTA.cjs → useTimeout-DnTtyB2y.cjs} +1 -1
- package/dist/{useTimeout-D16vpBhn.js → useTimeout-Znm_nF2D.js} +4 -4
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-D2bhwE7x.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/dist/utils-jA5a7WHN.js +391 -0
- package/package.json +1 -1
- package/dist/Backdrop-KAJqifAq.cjs +0 -1
- package/dist/Backdrop-RBPtVAPX.js +0 -744
- package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
- package/dist/DatePicker-rhgpaD-r.cjs +0 -17
- package/dist/DatePicker-u4rtXGeo.js +0 -12791
- package/dist/FormGroup-BBYEQB4C.cjs +0 -1
- package/dist/FormGroup-BVtE8Mrv.js +0 -348
- package/dist/FormLabel-D8jYibc1.cjs +0 -2
- package/dist/IconButton-CVyLtjcH.cjs +0 -2
- package/dist/InputBase-Ctmib7Br.cjs +0 -3
- package/dist/MenuItem-Els-vJZW.cjs +0 -1
- package/dist/Select-BlPQngVF.js +0 -4720
- package/dist/Select-ipcMZ4iK.cjs +0 -11
- package/dist/Tabs-Nvk94RTW.cjs +0 -4
- package/dist/Tooltip-DvPL2M0E.cjs +0 -100
- package/dist/formControlState-DCkDUdfO.cjs +0 -1
- package/dist/formControlState-DdQP43Uo.js +0 -21
- package/dist/ownerWindow-BoRkeomM.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-DlHf9HvO.js +0 -27
- package/dist/refType-Do7KaOvv.cjs +0 -1
- package/dist/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as o } from "../../createSvgIcon-
|
|
2
|
+
import { c as o } from "../../createSvgIcon-BS0Qe85N.js";
|
|
3
3
|
import e from "../Button/Button.es.js";
|
|
4
4
|
const n = o(/* @__PURE__ */ t("path", {
|
|
5
5
|
d: "M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),T=require("../Button/Button.cjs.js"),g=require("../../Card-DBGYwd3H.cjs"),m=require("react"),e=require("../../identifier-DTh6b5Gz.cjs"),a=require("../../DefaultPropsProvider-eVMpAUQg.cjs"),p=require("../../Typography-DyMSnhvs.cjs");function P(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:()=>o[s]})}}return t.default=o,Object.freeze(t)}const y=P(m);function b(o){return e.generateUtilityClass("MuiCardActions",o)}e.generateUtilityClasses("MuiCardActions",["root","spacing"]);const v=o=>{const{classes:t,disableSpacing:s}=o,n={root:["root",!s&&"spacing"]};return a.composeClasses(n,b,t)},j=a.styled("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:s}=o;return[t.root,!s.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),f=y.forwardRef(function(t,s){const n=a.useDefaultProps({props:t,name:"MuiCardActions"}),{disableSpacing:l=!1,className:c,...d}=n,i={...n,disableSpacing:l},u=v(i);return r.jsx(j,{className:e.clsx(u.root,c),ownerState:i,ref:s,...d})});process.env.NODE_ENV!=="production"&&(f.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,disableSpacing:e.PropTypes.bool,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])});function x(o){return e.generateUtilityClass("MuiCardContent",o)}e.generateUtilityClasses("MuiCardContent",["root"]);const h=o=>{const{classes:t}=o,s={root:["root"]};return a.composeClasses(s,x,t)},S=a.styled("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(o,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),C=y.forwardRef(function(t,s){const n=a.useDefaultProps({props:t,name:"MuiCardContent"}),{className:l,component:c="div",...d}=n,i={...n,component:c},u=h(i);return r.jsx(S,{as:c,className:e.clsx(u.root,l),ownerState:i,ref:s,...d})});process.env.NODE_ENV!=="production"&&(C.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});const O=o=>r.jsxs(g.Card,{sx:{minWidth:275},...o,children:[r.jsxs(C,{children:[r.jsx(p.Typography,{gutterBottom:!0,sx:{color:"text.secondary",fontSize:14},children:"Word of the Day"}),r.jsx(p.Typography,{variant:"h5",component:"div",children:"be-nev-o-lent"}),r.jsx(p.Typography,{sx:{color:"text.secondary",mb:1.5},children:"adjective"}),r.jsxs(p.Typography,{variant:"body2",children:["well meaning and kindly.",r.jsx("br",{}),'"a benevolent smile"']})]}),r.jsx(f,{children:r.jsx(T,{variant:"text",size:"small",children:"Learn More"})})]}),M={title:"Components/Card",component:O,argTypes:{elevation:{control:"number"},square:{control:"boolean"},variant:{control:"select",options:["elevation","outlined"]}}},N={args:{elevation:1,square:!1,variant:"elevation"}};exports.Default=N;exports.default=M;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CardProps } from '@mui/material/Card';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const Card: (props: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const meta: Meta<typeof Card>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Card>;
|
|
7
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { jsx as n, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import S from "../Button/Button.es.js";
|
|
3
|
+
import { C as T } from "../../Card-mAtxoJ0p.js";
|
|
4
|
+
import * as u from "react";
|
|
5
|
+
import { I as f, H as C, G as y, P as o } from "../../identifier-B7MO0PvI.js";
|
|
6
|
+
import { s as v, u as g, c as b } from "../../DefaultPropsProvider-BYFwNPLt.js";
|
|
7
|
+
import { T as c } from "../../Typography-CizHc1nM.js";
|
|
8
|
+
function N(t) {
|
|
9
|
+
return C("MuiCardActions", t);
|
|
10
|
+
}
|
|
11
|
+
f("MuiCardActions", ["root", "spacing"]);
|
|
12
|
+
const j = (t) => {
|
|
13
|
+
const {
|
|
14
|
+
classes: e,
|
|
15
|
+
disableSpacing: s
|
|
16
|
+
} = t;
|
|
17
|
+
return b({
|
|
18
|
+
root: ["root", !s && "spacing"]
|
|
19
|
+
}, N, e);
|
|
20
|
+
}, M = v("div", {
|
|
21
|
+
name: "MuiCardActions",
|
|
22
|
+
slot: "Root",
|
|
23
|
+
overridesResolver: (t, e) => {
|
|
24
|
+
const {
|
|
25
|
+
ownerState: s
|
|
26
|
+
} = t;
|
|
27
|
+
return [e.root, !s.disableSpacing && e.spacing];
|
|
28
|
+
}
|
|
29
|
+
})({
|
|
30
|
+
display: "flex",
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
padding: 8,
|
|
33
|
+
variants: [{
|
|
34
|
+
props: {
|
|
35
|
+
disableSpacing: !1
|
|
36
|
+
},
|
|
37
|
+
style: {
|
|
38
|
+
"& > :not(style) ~ :not(style)": {
|
|
39
|
+
marginLeft: 8
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}]
|
|
43
|
+
}), h = /* @__PURE__ */ u.forwardRef(function(e, s) {
|
|
44
|
+
const r = g({
|
|
45
|
+
props: e,
|
|
46
|
+
name: "MuiCardActions"
|
|
47
|
+
}), {
|
|
48
|
+
disableSpacing: l = !1,
|
|
49
|
+
className: i,
|
|
50
|
+
...d
|
|
51
|
+
} = r, a = {
|
|
52
|
+
...r,
|
|
53
|
+
disableSpacing: l
|
|
54
|
+
}, p = j(a);
|
|
55
|
+
return /* @__PURE__ */ n(M, {
|
|
56
|
+
className: y(p.root, i),
|
|
57
|
+
ownerState: a,
|
|
58
|
+
ref: s,
|
|
59
|
+
...d
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
63
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
64
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
65
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
66
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
67
|
+
/**
|
|
68
|
+
* The content of the component.
|
|
69
|
+
*/
|
|
70
|
+
children: o.node,
|
|
71
|
+
/**
|
|
72
|
+
* Override or extend the styles applied to the component.
|
|
73
|
+
*/
|
|
74
|
+
classes: o.object,
|
|
75
|
+
/**
|
|
76
|
+
* @ignore
|
|
77
|
+
*/
|
|
78
|
+
className: o.string,
|
|
79
|
+
/**
|
|
80
|
+
* If `true`, the actions do not have additional margin.
|
|
81
|
+
* @default false
|
|
82
|
+
*/
|
|
83
|
+
disableSpacing: o.bool,
|
|
84
|
+
/**
|
|
85
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
86
|
+
*/
|
|
87
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
88
|
+
});
|
|
89
|
+
function R(t) {
|
|
90
|
+
return C("MuiCardContent", t);
|
|
91
|
+
}
|
|
92
|
+
f("MuiCardContent", ["root"]);
|
|
93
|
+
const w = (t) => {
|
|
94
|
+
const {
|
|
95
|
+
classes: e
|
|
96
|
+
} = t;
|
|
97
|
+
return b({
|
|
98
|
+
root: ["root"]
|
|
99
|
+
}, R, e);
|
|
100
|
+
}, A = v("div", {
|
|
101
|
+
name: "MuiCardContent",
|
|
102
|
+
slot: "Root",
|
|
103
|
+
overridesResolver: (t, e) => e.root
|
|
104
|
+
})({
|
|
105
|
+
padding: 16,
|
|
106
|
+
"&:last-child": {
|
|
107
|
+
paddingBottom: 24
|
|
108
|
+
}
|
|
109
|
+
}), x = /* @__PURE__ */ u.forwardRef(function(e, s) {
|
|
110
|
+
const r = g({
|
|
111
|
+
props: e,
|
|
112
|
+
name: "MuiCardContent"
|
|
113
|
+
}), {
|
|
114
|
+
className: l,
|
|
115
|
+
component: i = "div",
|
|
116
|
+
...d
|
|
117
|
+
} = r, a = {
|
|
118
|
+
...r,
|
|
119
|
+
component: i
|
|
120
|
+
}, p = w(a);
|
|
121
|
+
return /* @__PURE__ */ n(A, {
|
|
122
|
+
as: i,
|
|
123
|
+
className: y(p.root, l),
|
|
124
|
+
ownerState: a,
|
|
125
|
+
ref: s,
|
|
126
|
+
...d
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
process.env.NODE_ENV !== "production" && (x.propTypes = {
|
|
130
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
131
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
132
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
133
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
134
|
+
/**
|
|
135
|
+
* The content of the component.
|
|
136
|
+
*/
|
|
137
|
+
children: o.node,
|
|
138
|
+
/**
|
|
139
|
+
* Override or extend the styles applied to the component.
|
|
140
|
+
*/
|
|
141
|
+
classes: o.object,
|
|
142
|
+
/**
|
|
143
|
+
* @ignore
|
|
144
|
+
*/
|
|
145
|
+
className: o.string,
|
|
146
|
+
/**
|
|
147
|
+
* The component used for the root node.
|
|
148
|
+
* Either a string to use a HTML element or a component.
|
|
149
|
+
*/
|
|
150
|
+
component: o.elementType,
|
|
151
|
+
/**
|
|
152
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
153
|
+
*/
|
|
154
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
155
|
+
});
|
|
156
|
+
const O = (t) => /* @__PURE__ */ m(T, { sx: { minWidth: 275 }, ...t, children: [
|
|
157
|
+
/* @__PURE__ */ m(x, { children: [
|
|
158
|
+
/* @__PURE__ */ n(c, { gutterBottom: !0, sx: { color: "text.secondary", fontSize: 14 }, children: "Word of the Day" }),
|
|
159
|
+
/* @__PURE__ */ n(c, { variant: "h5", component: "div", children: "be-nev-o-lent" }),
|
|
160
|
+
/* @__PURE__ */ n(c, { sx: { color: "text.secondary", mb: 1.5 }, children: "adjective" }),
|
|
161
|
+
/* @__PURE__ */ m(c, { variant: "body2", children: [
|
|
162
|
+
"well meaning and kindly.",
|
|
163
|
+
/* @__PURE__ */ n("br", {}),
|
|
164
|
+
'"a benevolent smile"'
|
|
165
|
+
] })
|
|
166
|
+
] }),
|
|
167
|
+
/* @__PURE__ */ n(h, { children: /* @__PURE__ */ n(S, { variant: "text", size: "small", children: "Learn More" }) })
|
|
168
|
+
] }), z = {
|
|
169
|
+
title: "Components/Card",
|
|
170
|
+
component: O,
|
|
171
|
+
argTypes: {
|
|
172
|
+
elevation: {
|
|
173
|
+
control: "number"
|
|
174
|
+
},
|
|
175
|
+
square: {
|
|
176
|
+
control: "boolean"
|
|
177
|
+
},
|
|
178
|
+
variant: {
|
|
179
|
+
control: "select",
|
|
180
|
+
options: ["elevation", "outlined"]
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}, I = {
|
|
184
|
+
args: {
|
|
185
|
+
elevation: 1,
|
|
186
|
+
square: !1,
|
|
187
|
+
variant: "elevation"
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
export {
|
|
191
|
+
I as Default,
|
|
192
|
+
z as default
|
|
193
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),s=require("../../Checkbox-OTMaikud.cjs"),r=e=>o.jsx(s.Checkbox,{...e}),c={title:"Components/Checkbox",component:r,argTypes:{checked:{control:"boolean"},color:{control:"select",options:["primary","secondary","success","error","info","warning"]},disabled:{control:"boolean"},disableRipple:{control:"boolean"},required:{control:"boolean"},size:{control:"select",options:["medium","small"]}}},l={args:{checked:void 0,color:"primary",disabled:!1,disableRipple:!1,required:!1,size:"medium"}},t={args:{checked:!0}},a={args:{disabled:!0}},i={args:{checked:!0,disabled:!0}};exports.Checked=t;exports.Default=l;exports.Disabled=a;exports.DisabledChecked=i;exports.default=c;
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),u=require("react"),t=require("../Button/Button.cjs.js"),i=require("../../DialogContent-C0L4r0-p.cjs"),l=require("../../DialogTitle-DemSKN6H.cjs"),c=a=>{const[s,o]=u.useState(!1),r=()=>o(!0),n=()=>o(!1);return e.jsxs(e.Fragment,{children:[e.jsx(t,{variant:"outlined",onClick:r,children:"Open dialog"}),e.jsxs(i.Dialog,{...a,open:s,onClose:n,children:[e.jsx(l.DialogTitle,{children:"Dialog title"}),e.jsx(i.DialogContent,{children:e.jsxs(l.DialogContentText,{children:["Dialog content text",e.jsx("br",{}),e.jsx("br",{}),"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."]})}),e.jsxs(i.DialogActions,{children:[e.jsx(t,{variant:"text",onClick:n,children:"Cancel"}),e.jsx(t,{variant:"text",onClick:()=>!0,children:"Save"})]})]})]})},d={title:"Components/Dialog",component:c},m={args:{}};exports.Default=m;exports.default=d;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DialogProps } from '@mui/material/Dialog';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const Dialog: (props: DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const meta: Meta<typeof Dialog>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Dialog>;
|
|
7
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs as t, Fragment as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as c } from "react";
|
|
3
|
+
import i from "../Button/Button.es.js";
|
|
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
|
+
const D = (a) => {
|
|
7
|
+
const [l, o] = c(!1), r = () => o(!0), n = () => o(!1);
|
|
8
|
+
return /* @__PURE__ */ t(s, { children: [
|
|
9
|
+
/* @__PURE__ */ e(i, { variant: "outlined", onClick: r, children: "Open dialog" }),
|
|
10
|
+
/* @__PURE__ */ t(u, { ...a, open: l, onClose: n, children: [
|
|
11
|
+
/* @__PURE__ */ e(p, { children: "Dialog title" }),
|
|
12
|
+
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ t(g, { children: [
|
|
13
|
+
"Dialog content text",
|
|
14
|
+
/* @__PURE__ */ e("br", {}),
|
|
15
|
+
/* @__PURE__ */ e("br", {}),
|
|
16
|
+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
|
17
|
+
] }) }),
|
|
18
|
+
/* @__PURE__ */ t(d, { children: [
|
|
19
|
+
/* @__PURE__ */ e(i, { variant: "text", onClick: n, children: "Cancel" }),
|
|
20
|
+
/* @__PURE__ */ e(i, { variant: "text", onClick: () => !0, children: "Save" })
|
|
21
|
+
] })
|
|
22
|
+
] })
|
|
23
|
+
] });
|
|
24
|
+
}, b = {
|
|
25
|
+
title: "Components/Dialog",
|
|
26
|
+
component: D
|
|
27
|
+
}, q = {
|
|
28
|
+
args: {}
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
q as Default,
|
|
32
|
+
b as default
|
|
33
|
+
};
|
|
@@ -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;
|