@cgi-learning-hub/ui 1.4.0-dev.1742200292 → 1.4.0-dev.1742203139
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/{Alert-BCd1tHk0.js → Alert-DdpAZix8.js} +9 -9
- package/dist/{Backdrop-CjDitjBW.js → Backdrop-BctCVgLy.js} +19 -20
- package/dist/Backdrop-DWp3AktL.cjs +1 -0
- package/dist/{Box-GMNejc_m.js → Box-DgqaLb7j.js} +7 -7
- package/dist/{Button-x5rtZxJN.js → Button-B7kOjNW1.js} +6 -6
- package/dist/{ButtonBase-CU1npQuI.js → ButtonBase-IZ_QjbpE.js} +4 -4
- package/dist/{CardContent-CL_61cm-.js → CardContent-F4-KcZH8.js} +3 -3
- package/dist/{Checkbox-CtRSDqOe.js → Checkbox-qUSjau0g.js} +7 -7
- package/dist/{Chip-ZIBpWC4I.js → Chip-OpRIs-sL.js} +6 -6
- package/dist/{CircularProgress-B28FKeiH.js → CircularProgress-CQxzJquv.js} +4 -4
- package/dist/{CloseRounded-pP8asZiP.js → CloseRounded-BMEGLs8y.js} +1 -1
- package/dist/DatePicker-DrLKgvkx.cjs +14 -0
- package/dist/{DatePicker-XdCuICxv.js → DatePicker-fFsWvNFc.js} +2535 -2117
- package/dist/{DefaultPropsProvider-CQixa6JQ.js → DefaultPropsProvider-Cqcb4sws.js} +7 -7
- package/dist/{Dialog-CgEvhrbZ.cjs → Dialog-B1wnk5BT.cjs} +1 -1
- package/dist/{Dialog-C-Ptqtq-.js → Dialog-CKS7yjT5.js} +9 -9
- package/dist/{DialogContent-1sjO2rQK.js → DialogContent-BzPaz5G8.js} +3 -3
- package/dist/{DialogTitle-CGpa_QH9.js → DialogTitle-D3E_lDHD.js} +5 -5
- package/dist/{DialogTitle-F6JD1f_z.cjs → DialogTitle-mr9xn4JZ.cjs} +1 -1
- package/dist/{Divider-CNGfzZqD.js → Divider-D-pZeQTm.js} +8 -8
- package/dist/{FormLabel-BlaPVlwX.js → FormLabel-3-CC-ZGw.js} +76 -67
- package/dist/FormLabel-BV7-a0i5.cjs +2 -0
- package/dist/{Grow-D5UIC41W.js → Grow-DKgYCxiY.js} +13 -14
- package/dist/Grow-Z3KzFaK5.cjs +1 -0
- package/dist/{IconButton-CFUIddNg.js → IconButton-CCNUMz2l.js} +6 -6
- package/dist/{InputAdornment-GcbiriFv.js → InputAdornment-DL8XIM8r.js} +5 -5
- package/dist/{InputBase-DJuF09Rf.js → InputBase-By7jMrFP.js} +7 -7
- package/dist/{Link-DtsZ0d_s.js → Link-C_GPIs0q.js} +7 -7
- package/dist/{Menu-DD_bqi6q.js → Menu-BunOW0ot.js} +428 -306
- package/dist/Menu-Cngt8Va9.cjs +7 -0
- package/dist/MenuItem-Bha8aBMr.cjs +1 -0
- package/dist/{MenuItem-Byj-2QQd.js → MenuItem-Cu3FTLl8.js} +77 -72
- package/dist/{Modal-S2P14Nsp.js → Modal-DTJd7JJ6.js} +8 -8
- package/dist/{Modal-BG3hPYyH.cjs → Modal-u82Ss4h_.cjs} +1 -1
- package/dist/MoreVert-CrM_1EkN.js +8 -0
- package/dist/MoreVert-CxgmXooO.cjs +1 -0
- package/dist/{Paper-BrsaeLlu.js → Paper-BiZq6EF2.js} +4 -4
- package/dist/Popper-BVYscbsI.cjs +4 -0
- package/dist/{Popper-BNftxeQ5.js → Popper-DjwR55WH.js} +30 -31
- package/dist/{Portal-BLEnzj1v.js → Portal-BByeByPq.js} +2 -2
- package/dist/Portal-DUHpWdY1.cjs +1 -0
- package/dist/{Radio-CRTKwNe5.js → Radio-DSRS-tjj.js} +9 -9
- package/dist/{RadioGroup-NjI5PlIb.js → RadioGroup-cPdOWdYD.js} +3 -3
- package/dist/{Select-C0jrZLRg.js → Select-CZnKFG3o.js} +30 -30
- package/dist/{Select-8kBUq_SZ.cjs → Select-DZAzJA0y.cjs} +1 -1
- package/dist/{Stack-Bm7M81n8.js → Stack-hbAJHQhq.js} +22 -22
- package/dist/{Switch-D5FnE7HW.js → Switch-B9uT9-d0.js} +6 -6
- package/dist/{SwitchBase-91Mand9t.js → SwitchBase-CDkmnGAP.js} +5 -5
- package/dist/Tabs-AyJ_tKtV.cjs +4 -0
- package/dist/{Tabs-C5VIdTSp.js → Tabs-BYfDlOR9.js} +24 -25
- package/dist/{TextField-D5jS5WjF.js → TextField-BKfXjPdH.js} +8 -8
- package/dist/{TextField-BzqflYRV.cjs → TextField-CwcPgdgD.cjs} +1 -1
- package/dist/{ToggleButtonGroup-CipWZLXf.js → ToggleButtonGroup-B1yghh29.js} +3886 -2652
- package/dist/ToggleButtonGroup-NqurNgWT.cjs +140 -0
- package/dist/{Tooltip-DgTrUaHJ.js → Tooltip-B1NGvrJP.js} +10 -10
- package/dist/Tooltip-oNmnF7Bc.cjs +4 -0
- package/dist/{Typography-Ct2Sc9KM.js → Typography-SIQ6eleU.js} +5 -5
- package/dist/{capitalize-BJ0FEsU7.js → capitalize-3KLkrEtk.js} +1 -1
- package/dist/components/Alert/Alert.es.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.es.js +3 -3
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -0
- package/dist/components/FolderCard/FolderCard.d.ts +10 -0
- package/dist/components/FolderCard/FolderCard.es.js +77 -0
- package/dist/components/FolderCard/index.cjs.js +1 -0
- package/dist/components/FolderCard/index.d.ts +2 -0
- package/dist/components/FolderCard/index.es.js +4 -0
- package/dist/components/FolderCard/styles.cjs.js +1 -0
- package/dist/components/FolderCard/styles.d.ts +10 -0
- package/dist/components/FolderCard/styles.es.js +13 -0
- package/dist/components/FolderCard/types.cjs.js +1 -0
- package/dist/components/FolderCard/types.d.ts +11 -0
- package/dist/components/FolderCard/types.es.js +14 -0
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +46 -45
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.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 +4 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +16 -18
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.es.js +299 -302
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- 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 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FolderCard.stories.cjs.js +1 -0
- package/dist/components/stories/FolderCard.stories.d.ts +7 -0
- package/dist/components/stories/FolderCard.stories.es.js +71 -0
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- 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 +3 -3
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- 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 +4 -4
- 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 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-B62eln-G.js → createSvgIcon-K2ZAdASa.js} +6 -6
- package/dist/{dividerClasses-DjJZQ2Lt.js → dividerClasses-afsB3Yy1.js} +1 -1
- package/dist/{elementTypeAcceptingRef-B04tk6ag.js → elementTypeAcceptingRef-5ESWTE79.js} +1 -1
- package/dist/{extendSxProp-CgS-3O19.js → extendSxProp-dlShX1xL.js} +1 -1
- package/dist/{generateUtilityClasses-EXBFO7eY.js → generateUtilityClasses-DotvgSDH.js} +9 -9
- package/dist/{index-DcwdJ8a_.js → index-B1u7G33_.js} +1 -1
- package/dist/{index-BZ7ldAwE.js → index-DTTmpNYg.js} +4 -4
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +299 -302
- package/dist/{memoTheme-DJWQ754x.js → memoTheme-CqmIydD-.js} +1 -1
- package/dist/{refType-Bpj8bod6.js → refType-C210ipRY.js} +1 -1
- package/dist/{resolveComponentProps-CIdMNno4.js → resolveComponentProps-CPmhKPdH.js} +1 -1
- package/dist/{useSlot-RbAtahZu.js → useSlot-GZu0V5wJ.js} +1 -1
- package/dist/useSlotProps-C9tsxDNg.js +45 -0
- package/dist/useSlotProps-CvOxvhyy.cjs +1 -0
- package/dist/useTheme-BA7tMglY.js +11 -0
- package/dist/{useTheme-CUKf8NYA.js → useTheme-tdgDVH1p.js} +1 -1
- package/dist/{useThemeProps-Bxjrhw9q.js → useThemeProps-BQlPXzo3.js} +2 -2
- package/dist/useThemeProps-BTfGtNci.js +17 -0
- package/dist/utils-CFI_-FMV.cjs +1 -0
- package/dist/{utils-B2jSugkj.js → utils-CXhh35wP.js} +104 -76
- package/package.json +1 -2
- package/dist/Backdrop-DOdBqGqq.cjs +0 -1
- package/dist/Collapse-Bvxtq7n-.cjs +0 -1
- package/dist/Collapse-wS8A5zc5.js +0 -334
- package/dist/CustomTreeItem-dmAy1wfu.cjs +0 -3
- package/dist/CustomTreeItem-kFMLEWpp.js +0 -1003
- package/dist/DatePicker-64gpvkmk.cjs +0 -13
- package/dist/Delete-BQA9--_t.js +0 -8
- package/dist/Delete-DmeDAs0n.cjs +0 -1
- package/dist/FormLabel-XpwTqbs8.cjs +0 -2
- package/dist/Grow-wjlsaPJ-.cjs +0 -1
- package/dist/List-BTPrBGqY.js +0 -130
- package/dist/List-Bo4pzQqG.cjs +0 -1
- package/dist/ListItem-C9OfYRAP.js +0 -423
- package/dist/ListItem-CB4JyjSb.cjs +0 -1
- package/dist/ListItemText-B_hEVsaT.js +0 -928
- package/dist/ListItemText-Bjd08uk4.cjs +0 -1
- package/dist/Menu-XypIRgTl.cjs +0 -7
- package/dist/MenuItem-vb36Ljmd.cjs +0 -1
- package/dist/Popper-BaxEpkdE.cjs +0 -4
- package/dist/Portal-Bw9XOIah.cjs +0 -1
- package/dist/Tabs-Csp29aqN.cjs +0 -4
- package/dist/ToggleButtonGroup-Bpi3kmko.cjs +0 -140
- package/dist/Tooltip-DJmbLjU6.cjs +0 -4
- package/dist/components/TreeView/TreeView.cjs.js +0 -7
- package/dist/components/TreeView/TreeView.d.ts +0 -4
- package/dist/components/TreeView/TreeView.es.js +0 -1892
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +0 -1
- package/dist/components/TreeView/components/CustomTreeItem.d.ts +0 -3
- package/dist/components/TreeView/components/CustomTreeItem.es.js +0 -9
- package/dist/components/TreeView/index.cjs.js +0 -1
- package/dist/components/TreeView/index.d.ts +0 -2
- package/dist/components/TreeView/index.es.js +0 -6
- package/dist/components/TreeView/style.cjs.js +0 -1
- package/dist/components/TreeView/style.d.ts +0 -12
- package/dist/components/TreeView/style.es.js +0 -24
- package/dist/components/TreeView/types.cjs.js +0 -1
- package/dist/components/TreeView/types.d.ts +0 -37
- package/dist/components/TreeView/types.es.js +0 -4
- package/dist/components/TreeView/utils.cjs.js +0 -1
- package/dist/components/TreeView/utils.d.ts +0 -6
- package/dist/components/TreeView/utils.es.js +0 -51
- package/dist/components/stories/TreeView.stories.cjs.js +0 -63
- package/dist/components/stories/TreeView.stories.d.ts +0 -12
- package/dist/components/stories/TreeView.stories.es.js +0 -663
- package/dist/getReactElementRef-CTRMtaOQ.cjs +0 -1
- package/dist/getReactElementRef-DjLvttrJ.js +0 -31
- package/dist/index-Cr54V0sz.cjs +0 -1
- package/dist/index-D_xl88AE.js +0 -22
- package/dist/isMuiElement-BzDAj3yJ.cjs +0 -1
- package/dist/isMuiElement-DnSE4qG4.js +0 -13
- package/dist/listItemTextClasses-BCuJjsDp.cjs +0 -1
- package/dist/listItemTextClasses-Kxu3VILo.js +0 -9
- package/dist/useSlotProps-BTRhbYwP.cjs +0 -1
- package/dist/useSlotProps-U2Iu6E0j.js +0 -25
- package/dist/useTheme-Czi7oO55.js +0 -11
- package/dist/useThemeProps-v-SfXuGn.js +0 -17
- package/dist/utils-lBmb5bp_.cjs +0 -1
- package/dist/warning-C8W811fV.js +0 -11
- package/dist/warning-DMUNDgRg.cjs +0 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as n from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { u as Ze } from "./
|
|
4
|
-
import { u as eo } from "./useTheme-
|
|
2
|
+
import { H as Je, I as Qe, G as ge, n as ve, P as e } from "./generateUtilityClasses-DotvgSDH.js";
|
|
3
|
+
import { u as Ze } from "./useSlotProps-C9tsxDNg.js";
|
|
4
|
+
import { u as eo } from "./useTheme-BA7tMglY.js";
|
|
5
5
|
import { jsx as L, jsxs as Te } from "react/jsx-runtime";
|
|
6
|
-
import { u as oo, s as G, c as to } from "./DefaultPropsProvider-
|
|
7
|
-
import { m as Y } from "./memoTheme-
|
|
8
|
-
import { u as I } from "./useSlot-
|
|
6
|
+
import { u as oo, s as G, c as to } from "./DefaultPropsProvider-Cqcb4sws.js";
|
|
7
|
+
import { m as Y } from "./memoTheme-CqmIydD-.js";
|
|
8
|
+
import { u as I } from "./useSlot-GZu0V5wJ.js";
|
|
9
9
|
import { u as j, T as ro } from "./useTimeout-CrCYVizI.js";
|
|
10
10
|
import { u as po } from "./useControlled-BYdyS7Pn.js";
|
|
11
11
|
import { u as no } from "./useId-CK6Kn3Tn.js";
|
|
12
12
|
import { u as be } from "./useEventCallback-BAQJJ3ye.js";
|
|
13
13
|
import { u as so } from "./useForkRef-C_4o__cU.js";
|
|
14
|
-
import { g as io, e as ao } from "./
|
|
15
|
-
import { G as lo } from "./Grow-
|
|
16
|
-
import { P as Re } from "./Popper-
|
|
17
|
-
import { c as Oe } from "./capitalize-
|
|
14
|
+
import { g as io, e as ao } from "./utils-CXhh35wP.js";
|
|
15
|
+
import { G as lo } from "./Grow-DKgYCxiY.js";
|
|
16
|
+
import { P as Re } from "./Popper-DjwR55WH.js";
|
|
17
|
+
import { c as Oe } from "./capitalize-3KLkrEtk.js";
|
|
18
18
|
import { i as ye } from "./isFocusVisible-CPZqtjv2.js";
|
|
19
19
|
function co(r) {
|
|
20
20
|
return Qe("MuiTooltip", r);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const Je=require("react"),e=require("./generateUtilityClasses-De8NU9_E.cjs"),Qe=require("./useSlotProps-CvOxvhyy.cjs"),Ze=require("./useTheme-CIf2b2wK.cjs"),g=require("react/jsx-runtime"),x=require("./DefaultPropsProvider-wpBXjN8r.cjs"),Y=require("./memoTheme-DrjvJtTP.cjs"),I=require("./useSlot-CC2AaOjN.cjs"),O=require("./useTimeout-COCrDKz-.cjs"),eo=require("./useControlled-Ysk4KqoX.cjs"),oo=require("./useId-DNXtOFeX.cjs"),ye=require("./useEventCallback-C0-Qw3Sm.cjs"),to=require("./useForkRef-CTI33h-3.cjs"),be=require("./utils-CFI_-FMV.cjs"),ro=require("./Grow-Z3KzFaK5.cjs"),Pe=require("./Popper-BVYscbsI.cjs"),we=require("./capitalize-CEByPz9F.cjs"),he=require("./isFocusVisible-DlSijby6.cjs");function po(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const s in r)if(s!=="default"){const l=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(o,s,l.get?l:{enumerable:!0,get:()=>r[s]})}}return o.default=r,Object.freeze(o)}const n=po(Je);function ve(r){return e.generateUtilityClass("MuiTooltip",r)}const p=e.generateUtilityClasses("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function so(r){return Math.round(r*1e5)/1e5}const no=r=>{const{classes:o,disableInteractive:s,arrow:l,touch:C,placement:b}=r,G={popper:["popper",!s&&"popperInteractive",l&&"popperArrow"],tooltip:["tooltip",l&&"tooltipArrow",C&&"touch",`tooltipPlacement${we.capitalize(b.split("-")[0])}`],arrow:["arrow"]};return x.composeClasses(G,ve,o)},io=x.styled(Pe.Popper,{name:"MuiTooltip",slot:"Popper",overridesResolver:(r,o)=>{const{ownerState:s}=r;return[o.popper,!s.disableInteractive&&o.popperInteractive,s.arrow&&o.popperArrow,!s.open&&o.popperClose]}})(Y.memoTheme(({theme:r})=>({zIndex:(r.vars||r).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:o})=>!o.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:o})=>!o,style:{pointerEvents:"none"}},{props:({ownerState:o})=>o.arrow,style:{[`&[data-popper-placement*="bottom"] .${p.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${p.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${p.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${p.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:o})=>o.arrow&&!o.isRtl,style:{[`&[data-popper-placement*="right"] .${p.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:o})=>o.arrow&&!!o.isRtl,style:{[`&[data-popper-placement*="right"] .${p.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:o})=>o.arrow&&!o.isRtl,style:{[`&[data-popper-placement*="left"] .${p.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:o})=>o.arrow&&!!o.isRtl,style:{[`&[data-popper-placement*="left"] .${p.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),ao=x.styled("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(r,o)=>{const{ownerState:s}=r;return[o.tooltip,s.touch&&o.touch,s.arrow&&o.tooltipArrow,o[`tooltipPlacement${we.capitalize(s.placement.split("-")[0])}`]]}})(Y.memoTheme(({theme:r})=>({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:e.alpha(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium,[`.${p.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${p.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${p.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${p.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:o})=>o.arrow,style:{position:"relative",margin:0}},{props:({ownerState:o})=>o.touch,style:{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:`${so(16/14)}em`,fontWeight:r.typography.fontWeightRegular}},{props:({ownerState:o})=>!o.isRtl,style:{[`.${p.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${p.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:o})=>!o.isRtl&&o.touch,style:{[`.${p.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${p.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:o})=>!!o.isRtl,style:{[`.${p.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${p.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:o})=>!!o.isRtl&&o.touch,style:{[`.${p.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${p.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:o})=>o.touch,style:{[`.${p.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:o})=>o.touch,style:{[`.${p.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),lo=x.styled("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(r,o)=>o.arrow})(Y.memoTheme(({theme:r})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:r.vars?r.vars.palette.Tooltip.bg:e.alpha(r.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let q=!1;const ge=new O.Timeout;let R={x:0,y:0};function k(r,o){return(s,...l)=>{o&&o(s,...l),r(s,...l)}}const Re=n.forwardRef(function(o,s){const l=x.useDefaultProps({props:o,name:"MuiTooltip"}),{arrow:C=!1,children:b,classes:G,components:S={},componentsProps:E={},describeChild:Oe=!1,disableFocusListener:xe=!1,disableHoverListener:K=!1,disableInteractive:Ce=!1,disableTouchListener:Se=!1,enterDelay:X=100,enterNextDelay:J=0,enterTouchDelay:Ee=700,followCursor:A=!1,id:Me,leaveDelay:Q=0,leaveTouchDelay:je=1500,onClose:Z,onOpen:ee,open:oe,placement:te="bottom",PopperComponent:re,PopperProps:f={},slotProps:T={},slots:$e={},title:y,TransitionComponent:Ne,TransitionProps:Le,...pe}=l,d=n.isValidElement(b)?b:g.jsx("span",{children:b}),se=Ze.useTheme(),De=Qe.useRtl(),[i,ne]=n.useState(),[F,Ie]=n.useState(null),M=n.useRef(!1),U=Ce||A,ie=O.useTimeout(),W=O.useTimeout(),j=O.useTimeout(),ae=O.useTimeout(),[qe,le]=eo.useControlled({controlled:oe,default:!1,name:"Tooltip",state:"open"});let m=qe;if(process.env.NODE_ENV!=="production"){const{current:t}=n.useRef(oe!==void 0);n.useEffect(()=>{i&&i.disabled&&!t&&y!==""&&i.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
2
|
+
`))},[y,i,t])}const B=oo.useId(Me),P=n.useRef(),$=ye.useEventCallback(()=>{P.current!==void 0&&(document.body.style.WebkitUserSelect=P.current,P.current=void 0),ae.clear()});n.useEffect(()=>$,[$]);const ce=t=>{ge.clear(),q=!0,le(!0),ee&&!m&&ee(t)},N=ye.useEventCallback(t=>{ge.start(800+Q,()=>{q=!1}),le(!1),Z&&m&&Z(t),ie.start(se.transitions.duration.shortest,()=>{M.current=!1})}),L=t=>{M.current&&t.type!=="touchstart"||(i&&i.removeAttribute("title"),W.clear(),j.clear(),X||q&&J?W.start(q?J:X,()=>{ce(t)}):ce(t))},z=t=>{W.clear(),j.start(Q,()=>{N(t)})},[,ue]=n.useState(!1),de=t=>{he.isFocusVisible(t.target)||(ue(!1),z(t))},me=t=>{i||ne(t.currentTarget),he.isFocusVisible(t.target)&&(ue(!0),L(t))},fe=t=>{M.current=!0;const u=d.props;u.onTouchStart&&u.onTouchStart(t)},ke=t=>{fe(t),j.clear(),ie.clear(),$(),P.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ae.start(Ee,()=>{document.body.style.WebkitUserSelect=P.current,L(t)})},Ae=t=>{d.props.onTouchEnd&&d.props.onTouchEnd(t),$(),j.start(je,()=>{N(t)})};n.useEffect(()=>{if(!m)return;function t(u){u.key==="Escape"&&N(u)}return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[N,m]);const Fe=to.useForkRef(be.getReactElementRef(d),ne,s);!y&&y!==0&&(m=!1);const V=n.useRef(),Ue=t=>{const u=d.props;u.onMouseMove&&u.onMouseMove(t),R={x:t.clientX,y:t.clientY},V.current&&V.current.update()},w={},_=typeof y=="string";Oe?(w.title=!m&&_&&!K?y:null,w["aria-describedby"]=m?B:null):(w["aria-label"]=_?y:null,w["aria-labelledby"]=m&&!_?B:null);const a={...w,...pe,...d.props,className:e.clsx(pe.className,d.props.className),onTouchStart:fe,ref:Fe,...A?{onMouseMove:Ue}:{}};process.env.NODE_ENV!=="production"&&(a["data-mui-internal-clone-element"]=!0,n.useEffect(()=>{i&&!i.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
3
|
+
`))},[i]));const v={};Se||(a.onTouchStart=ke,a.onTouchEnd=Ae),K||(a.onMouseOver=k(L,a.onMouseOver),a.onMouseLeave=k(z,a.onMouseLeave),U||(v.onMouseOver=L,v.onMouseLeave=z)),xe||(a.onFocus=k(me,a.onFocus),a.onBlur=k(de,a.onBlur),U||(v.onFocus=me,v.onBlur=de)),process.env.NODE_ENV!=="production"&&d.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${d.props.title}\` or the Tooltip component.`].join(`
|
|
4
|
+
`));const h={...l,isRtl:De,arrow:C,disableInteractive:U,placement:te,PopperComponentProp:re,touch:M.current},c=typeof T.popper=="function"?T.popper(h):T.popper,We=n.useMemo(()=>{var u,Te;let t=[{name:"arrow",enabled:!!F,options:{element:F,padding:4}}];return(u=f.popperOptions)!=null&&u.modifiers&&(t=t.concat(f.popperOptions.modifiers)),(Te=c==null?void 0:c.popperOptions)!=null&&Te.modifiers&&(t=t.concat(c.popperOptions.modifiers)),{...f.popperOptions,...c==null?void 0:c.popperOptions,modifiers:t}},[F,f.popperOptions,c==null?void 0:c.popperOptions]),H=no(h),Be=typeof T.transition=="function"?T.transition(h):T.transition,D={slots:{popper:S.Popper,transition:S.Transition??Ne,tooltip:S.Tooltip,arrow:S.Arrow,...$e},slotProps:{arrow:T.arrow??E.arrow,popper:{...f,...c??E.popper},tooltip:T.tooltip??E.tooltip,transition:{...Le,...Be??E.transition}}},[ze,Ve]=I.useSlot("popper",{elementType:io,externalForwardedProps:D,ownerState:h,className:e.clsx(H.popper,f==null?void 0:f.className)}),[_e,He]=I.useSlot("transition",{elementType:ro.Grow,externalForwardedProps:D,ownerState:h}),[Ye,Ge]=I.useSlot("tooltip",{elementType:ao,className:H.tooltip,externalForwardedProps:D,ownerState:h}),[Ke,Xe]=I.useSlot("arrow",{elementType:lo,className:H.arrow,externalForwardedProps:D,ownerState:h,ref:Ie});return g.jsxs(n.Fragment,{children:[n.cloneElement(d,a),g.jsx(ze,{as:re??Pe.Popper,placement:te,anchorEl:A?{getBoundingClientRect:()=>({top:R.y,left:R.x,right:R.x,bottom:R.y,width:0,height:0})}:i,popperRef:V,open:i?m:!1,id:B,transition:!0,...v,...Ve,popperOptions:We,children:({TransitionProps:t})=>g.jsx(_e,{timeout:se.transitions.duration.shorter,...t,...He,children:g.jsxs(Ye,{...Ge,children:[y,C?g.jsx(Ke,{...Xe}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Re.propTypes={arrow:e.PropTypes.bool,children:be.elementAcceptingRef.isRequired,classes:e.PropTypes.object,className:e.PropTypes.string,components:e.PropTypes.shape({Arrow:e.PropTypes.elementType,Popper:e.PropTypes.elementType,Tooltip:e.PropTypes.elementType,Transition:e.PropTypes.elementType}),componentsProps:e.PropTypes.shape({arrow:e.PropTypes.object,popper:e.PropTypes.object,tooltip:e.PropTypes.object,transition:e.PropTypes.object}),describeChild:e.PropTypes.bool,disableFocusListener:e.PropTypes.bool,disableHoverListener:e.PropTypes.bool,disableInteractive:e.PropTypes.bool,disableTouchListener:e.PropTypes.bool,enterDelay:e.PropTypes.number,enterNextDelay:e.PropTypes.number,enterTouchDelay:e.PropTypes.number,followCursor:e.PropTypes.bool,id:e.PropTypes.string,leaveDelay:e.PropTypes.number,leaveTouchDelay:e.PropTypes.number,onClose:e.PropTypes.func,onOpen:e.PropTypes.func,open:e.PropTypes.bool,placement:e.PropTypes.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:e.PropTypes.elementType,PopperProps:e.PropTypes.object,slotProps:e.PropTypes.shape({arrow:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),popper:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),tooltip:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),transition:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({arrow:e.PropTypes.elementType,popper:e.PropTypes.elementType,tooltip:e.PropTypes.elementType,transition: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]),title:e.PropTypes.node,TransitionComponent:e.PropTypes.elementType,TransitionProps:e.PropTypes.object});exports.Tooltip=Re;exports.getTooltipUtilityClass=ve;exports.tooltipClasses=p;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as O from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { i as S } from "./index-
|
|
4
|
-
import { m as w } from "./memoTheme-
|
|
2
|
+
import { H as j, I as B, G as C, P as r } from "./generateUtilityClasses-DotvgSDH.js";
|
|
3
|
+
import { i as S } from "./index-DTTmpNYg.js";
|
|
4
|
+
import { m as w } from "./memoTheme-CqmIydD-.js";
|
|
5
5
|
import { c as P } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
6
6
|
import { jsx as W } from "react/jsx-runtime";
|
|
7
|
-
import { u as M, s as R, c as N } from "./DefaultPropsProvider-
|
|
8
|
-
import { c } from "./capitalize-
|
|
7
|
+
import { u as M, s as R, c as N } from "./DefaultPropsProvider-Cqcb4sws.js";
|
|
8
|
+
import { c } from "./capitalize-3KLkrEtk.js";
|
|
9
9
|
function D(e) {
|
|
10
10
|
return B("MuiTypography", e);
|
|
11
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e } from "./generateUtilityClasses-
|
|
1
|
+
import { J as e } from "./generateUtilityClasses-DotvgSDH.js";
|
|
2
2
|
function o(r) {
|
|
3
3
|
if (typeof r != "string")
|
|
4
4
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : e(7));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { s as e } from "../../DefaultPropsProvider-
|
|
3
|
-
import { B as n } from "../../Button-
|
|
2
|
+
import { s as e } from "../../DefaultPropsProvider-Cqcb4sws.js";
|
|
3
|
+
import { B as n } from "../../Button-B7kOjNW1.js";
|
|
4
4
|
const i = e(n)(({ color: t, theme: o }) => ({
|
|
5
5
|
minHeight: 38,
|
|
6
6
|
textTransform: "none",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime");const e=require("../../DatePicker-
|
|
1
|
+
"use strict";require("react/jsx-runtime");const e=require("../../DatePicker-DrLKgvkx.cjs");module.exports=e.DatePicker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../DatePicker-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../DatePicker-DrLKgvkx.cjs");exports.DatePicker=e.DatePicker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),t=require("../../CloseRounded-BRXBizmR.cjs"),c=require("@mui/material"),u=require("../../Dialog-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),t=require("../../CloseRounded-BRXBizmR.cjs"),c=require("@mui/material"),u=require("../../Dialog-B1wnk5BT.cjs"),a=({children:s,showCloseButton:i=!0,...e})=>{const o=()=>{var l;return(l=e.onClose)==null?void 0:l.call(e,{},"escapeKeyDown")};return n.jsxs(u.Dialog,{...e,children:[i?n.jsx(c.IconButton,{"aria-label":"close",onClick:o,sx:{position:"absolute",right:24,top:24},children:n.jsx(t.CloseRounded,{})}):null,s]})};module.exports=a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as i, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { C as s } from "../../CloseRounded-
|
|
2
|
+
import { C as s } from "../../CloseRounded-BMEGLs8y.js";
|
|
3
3
|
import { IconButton as t } from "@mui/material";
|
|
4
|
-
import { D as c } from "../../Dialog-
|
|
4
|
+
import { D as c } from "../../Dialog-CKS7yjT5.js";
|
|
5
5
|
const f = ({
|
|
6
6
|
children: e,
|
|
7
7
|
showCloseButton: a = !0,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r, jsxs as e, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as t } from "../../createSvgIcon-
|
|
3
|
-
import { u } from "../../index-
|
|
4
|
-
import { S as g } from "../../Stack-
|
|
5
|
-
import { T as o } from "../../Typography-
|
|
2
|
+
import { c as t } from "../../createSvgIcon-K2ZAdASa.js";
|
|
3
|
+
import { u } from "../../index-B1u7G33_.js";
|
|
4
|
+
import { S as g } from "../../Stack-hbAJHQhq.js";
|
|
5
|
+
import { T as o } from "../../Typography-SIQ6eleU.js";
|
|
6
6
|
const f = t(/* @__PURE__ */ r("path", {
|
|
7
7
|
d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"
|
|
8
8
|
}), "FileUpload"), z = t(/* @__PURE__ */ r("path", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { S as l } from "../../Stack-
|
|
3
|
-
import { B as g } from "../../Box-
|
|
4
|
-
import { T as o } from "../../Typography-
|
|
2
|
+
import { S as l } from "../../Stack-hbAJHQhq.js";
|
|
3
|
+
import { B as g } from "../../Box-DgqaLb7j.js";
|
|
4
|
+
import { T as o } from "../../Typography-SIQ6eleU.js";
|
|
5
5
|
const y = ({
|
|
6
6
|
image: e,
|
|
7
7
|
imageProps: i,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as e } from "../../createSvgIcon-
|
|
2
|
+
import { c as e } from "../../createSvgIcon-K2ZAdASa.js";
|
|
3
3
|
const t = e(/* @__PURE__ */ c("path", {
|
|
4
4
|
d: "M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M8 11H4V6h4zm6 0h-4V6h4zm6 0h-4V6h4zM8 18H4v-5h4zm6 0h-4v-5h4zm6 0h-4v-5h4z"
|
|
5
5
|
}), "CalendarViewMonthRounded"), n = e(/* @__PURE__ */ c("path", {
|
|
@@ -4,10 +4,10 @@ import w from "../EllipsisWithTooltip/EllipsisWithTooltip.es.js";
|
|
|
4
4
|
import { FileIcon as S } from "./FileIcon.es.js";
|
|
5
5
|
import { FileInfosSeparator as h } from "./FileInfosSeparator.es.js";
|
|
6
6
|
import { displaySize as R, displayExtension as v } from "./utils.es.js";
|
|
7
|
-
import { S as a } from "../../Stack-
|
|
8
|
-
import { T as p } from "../../Typography-
|
|
9
|
-
import { c as C } from "../../createSvgIcon-
|
|
10
|
-
import { C as j } from "../../CloseRounded-
|
|
7
|
+
import { S as a } from "../../Stack-hbAJHQhq.js";
|
|
8
|
+
import { T as p } from "../../Typography-SIQ6eleU.js";
|
|
9
|
+
import { c as C } from "../../createSvgIcon-K2ZAdASa.js";
|
|
10
|
+
import { C as j } from "../../CloseRounded-BMEGLs8y.js";
|
|
11
11
|
const z = C(/* @__PURE__ */ r("path", {
|
|
12
12
|
d: "M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71M5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1"
|
|
13
13
|
}), "DownloadRounded"), H = u(b)(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),u=require("../../createSvgIcon-DJMYlO0S.cjs"),x=require("../../MoreVert-CxgmXooO.cjs"),s=require("@mui/material"),a=require("../EllipsisWithTooltip/EllipsisWithTooltip.cjs.js"),p=require("./styles.cjs.js"),c=require("../ResourceCard/style.cjs.js"),i=require("./types.cjs.js"),h=u.createSvgIcon(r.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder"),m=({isSelected:o=!1,onSelect:n=()=>{},title:d,subtitle:l,width:y,onClick:t=()=>{}})=>r.jsx(s.Box,{sx:{width:y||"320px"},children:r.jsxs(c.StyledCard,{selected:o,onClick:t,onKeyDown:e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),t==null||t())},role:"button",tabIndex:0,"aria-labelledby":"folder-title folder-subtitle","aria-pressed":o,children:[r.jsx(c.SelectedIcon,{onClick:e=>{e.preventDefault(),e.stopPropagation(),n()},onKeyDown:e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),n())},className:"selected-icon",selected:o,role:"button",tabIndex:0,"aria-label":o?"Unselect folder":"Select folder","aria-pressed":o,children:r.jsx(x.MoreVertIcon,{})}),r.jsxs(s.CardContent,{sx:p.FolderBodyStyle,children:[r.jsx(h,{color:"primary",sx:p.FolderIconStyle,"aria-hidden":"true"}),r.jsxs(s.Box,{children:[r.jsx(a,{typographyProps:i.titleTypographyProps,tooltipProps:{placement:"bottom",arrow:!0},children:d}),l&&r.jsx(a,{typographyProps:i.subtitleTypographyProps,tooltipProps:{placement:"bottom",arrow:!0},children:l})]})]})]})});module.exports=m;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type FolderCardProps = {
|
|
2
|
+
isSelected?: boolean;
|
|
3
|
+
onSelect?: () => void;
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
width?: string;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare const FolderCard: React.FunctionComponent<FolderCardProps>;
|
|
10
|
+
export default FolderCard;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx as o, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../createSvgIcon-K2ZAdASa.js";
|
|
3
|
+
import { M as m } from "../../MoreVert-CrM_1EkN.js";
|
|
4
|
+
import { Box as n, CardContent as y } from "@mui/material";
|
|
5
|
+
import d from "../EllipsisWithTooltip/EllipsisWithTooltip.es.js";
|
|
6
|
+
import { FolderBodyStyle as f, FolderIconStyle as h } from "./styles.es.js";
|
|
7
|
+
import { StyledCard as u, SelectedIcon as b } from "../ResourceCard/style.es.js";
|
|
8
|
+
import { titleTypographyProps as x, subtitleTypographyProps as P } from "./types.es.js";
|
|
9
|
+
const g = c(/* @__PURE__ */ o("path", {
|
|
10
|
+
d: "M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"
|
|
11
|
+
}), "Folder"), j = ({
|
|
12
|
+
isSelected: e = !1,
|
|
13
|
+
onSelect: p = () => {
|
|
14
|
+
},
|
|
15
|
+
title: i,
|
|
16
|
+
subtitle: l,
|
|
17
|
+
width: s,
|
|
18
|
+
onClick: t = () => {
|
|
19
|
+
}
|
|
20
|
+
}) => /* @__PURE__ */ o(n, { sx: { width: s || "320px" }, children: /* @__PURE__ */ a(
|
|
21
|
+
u,
|
|
22
|
+
{
|
|
23
|
+
selected: e,
|
|
24
|
+
onClick: t,
|
|
25
|
+
onKeyDown: (r) => {
|
|
26
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), t == null || t());
|
|
27
|
+
},
|
|
28
|
+
role: "button",
|
|
29
|
+
tabIndex: 0,
|
|
30
|
+
"aria-labelledby": "folder-title folder-subtitle",
|
|
31
|
+
"aria-pressed": e,
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ o(
|
|
34
|
+
b,
|
|
35
|
+
{
|
|
36
|
+
onClick: (r) => {
|
|
37
|
+
r.preventDefault(), r.stopPropagation(), p();
|
|
38
|
+
},
|
|
39
|
+
onKeyDown: (r) => {
|
|
40
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), p());
|
|
41
|
+
},
|
|
42
|
+
className: "selected-icon",
|
|
43
|
+
selected: e,
|
|
44
|
+
role: "button",
|
|
45
|
+
tabIndex: 0,
|
|
46
|
+
"aria-label": e ? "Unselect folder" : "Select folder",
|
|
47
|
+
"aria-pressed": e,
|
|
48
|
+
children: /* @__PURE__ */ o(m, {})
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ a(y, { sx: f, children: [
|
|
52
|
+
/* @__PURE__ */ o(g, { color: "primary", sx: h, "aria-hidden": "true" }),
|
|
53
|
+
/* @__PURE__ */ a(n, { children: [
|
|
54
|
+
/* @__PURE__ */ o(
|
|
55
|
+
d,
|
|
56
|
+
{
|
|
57
|
+
typographyProps: x,
|
|
58
|
+
tooltipProps: { placement: "bottom", arrow: !0 },
|
|
59
|
+
children: i
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
l && /* @__PURE__ */ o(
|
|
63
|
+
d,
|
|
64
|
+
{
|
|
65
|
+
typographyProps: P,
|
|
66
|
+
tooltipProps: { placement: "bottom", arrow: !0 },
|
|
67
|
+
children: l
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
] })
|
|
71
|
+
] })
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
) });
|
|
75
|
+
export {
|
|
76
|
+
j as default
|
|
77
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./FolderCard.cjs.js");exports.FolderCard=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={display:"flex",padding:"16px !important",width:"100%",alignItems:"center"},t={marginRight:".8rem",fontSize:"2rem"};exports.FolderBodyStyle=e;exports.FolderIconStyle=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={fontWeight:"700",fontSize:"1.1rem",id:"folder-title"},e={fontWeight:"400",fontSize:".8rem",fontStyle:"italic",id:"folder-subtitle"};exports.subtitleTypographyProps=e;exports.titleTypographyProps=t;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
fontWeight: "700",
|
|
3
|
+
fontSize: "1.1rem",
|
|
4
|
+
id: "folder-title"
|
|
5
|
+
}, e = {
|
|
6
|
+
fontWeight: "400",
|
|
7
|
+
fontSize: ".8rem",
|
|
8
|
+
fontStyle: "italic",
|
|
9
|
+
id: "folder-subtitle"
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
e as subtitleTypographyProps,
|
|
13
|
+
t as titleTypographyProps
|
|
14
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as x, jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { S } from "../../Stack-
|
|
3
|
-
import { T as b } from "../../Typography-
|
|
2
|
+
import { S } from "../../Stack-hbAJHQhq.js";
|
|
3
|
+
import { T as b } from "../../Typography-SIQ6eleU.js";
|
|
4
4
|
const y = ({
|
|
5
5
|
title: n,
|
|
6
6
|
IconComponent: g,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),l=require("../../createSvgIcon-DJMYlO0S.cjs"),o=require("@mui/material"),h=require("react"),S=require("../../index-CVFzneYe.cjs"),C=require("../../Stack-B82ckLGm.cjs"),c=require("../../Typography-DPij13XT.cjs"),g=l.createSvgIcon(e.jsx("path",{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"}),"AddPhotoAlternate"),w=l.createSvgIcon(e.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Create"),D=l.createSvgIcon(e.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),F=()=>e.jsxs(c.Typography,{textAlign:"center",fontSize:"14px",color:"grey.darker",children:[e.jsx(o.Box,{component:"span",fontWeight:"bold",children:"Glissez-déposez"})," ","ou"," ",e.jsx(o.Box,{component:"span",fontWeight:"bold",children:"cliquez"})," ","pour choisir une image"]}),A=()=>e.jsxs(c.Typography,{textAlign:"center",fontSize:"14px",color:"grey.darker",children:[e.jsx(o.Box,{component:"span",fontWeight:"bold",children:"Glissez"})," ","une image"]}),P=({defaultLabel:x=e.jsx(F,{}),dragLabel:m=e.jsx(A,{}),information:n,onFileChange:a=t=>{},width:u="160px",height:j="160px",initialFile:s=null,...y})=>{const[t,i]=h.useState(s);h.useEffect(()=>{i(s)},[s]);const f=r=>{const p=r[0]||null;i(p),a(p)},b=r=>{r.stopPropagation(),i(null),a(null)},k=r=>{r.stopPropagation(),d()},{open:d,getRootProps:z,getInputProps:v,isDragActive:I}=S.useDropzone({...y,maxFiles:1,onDropAccepted:f,accept:{"image/*":[".png",".jpeg",".jpg",".gif"]},noClick:!0});return e.jsxs(C.Stack,{direction:"column",justifyContent:"center",alignItems:"center",width:u,minWidth:"150px",minHeight:"150px",height:j,borderRadius:1,sx:{cursor:"pointer",position:"relative",background:`${!t&&"linear-gradient(180deg, #F5F7F9 0%, #FFF 100%)"}`,border:`${!t&&"1px dashed"}`,borderColor:r=>!t&&r.palette.grey.main},...z({onClick:d}),children:[e.jsx("input",{...v()}),t?e.jsxs(e.Fragment,{children:[e.jsxs(o.Box,{sx:{position:"absolute",top:"0.5rem",right:"0.5rem",display:"flex",gap:"0.3rem"},children:[e.jsx(o.Box,{onClick:k,sx:{backgroundColor:"common.white",display:"flex",borderRadius:"3px",alignItems:"center",justifyContent:"center",boxShadow:1,width:"2rem",height:"2rem",cursor:"pointer","&:hover":{backgroundColor:"grey.darker","& .MuiSvgIcon-root":{fill:r=>r.palette.common.white}}},children:e.jsx(w,{fontSize:"small"})}),e.jsx(o.Box,{onClick:b,sx:{backgroundColor:"common.white",display:"flex",borderRadius:"3px",alignItems:"center",boxShadow:1,justifyContent:"center",width:"2rem",height:"2rem",cursor:"pointer","&:hover":{backgroundColor:"grey.darker","& .MuiSvgIcon-root":{fill:r=>r.palette.common.white}}},children:e.jsx(D,{fontSize:"small"})})]}),e.jsx("img",{src:typeof t=="string"?t:URL.createObjectURL(t),alt:typeof t=="string"?t:t.name,style:{width:"100%",height:"100%",maxWidth:"100%",objectFit:"cover",borderRadius:"5px"}})]}):e.jsx(e.Fragment,{children:I?e.jsxs(e.Fragment,{children:[e.jsx(g,{color:"primary",style:{width:"2.5rem",height:"2.5rem"}}),m,n&&e.jsx(c.Typography,{textAlign:"center",fontSize:"12px",color:"grey",children:n})]}):e.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",padding:"0.5rem",gap:"0.3rem"},children:[e.jsx(g,{color:"primary",style:{width:"2.5rem",height:"2.5rem"}}),x,n&&e.jsx(c.Typography,{textAlign:"center",fontSize:"12px",color:"grey",children:n})]})})]})};module.exports=P;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as s } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { D as w } from "../../Delete-BQA9--_t.js";
|
|
2
|
+
import { c as d } from "../../createSvgIcon-K2ZAdASa.js";
|
|
4
3
|
import { Box as n } from "@mui/material";
|
|
5
|
-
import { useState as
|
|
6
|
-
import { u as
|
|
7
|
-
import { S as
|
|
8
|
-
import { T as l } from "../../Typography-
|
|
9
|
-
const
|
|
4
|
+
import { useState as w, useEffect as D } from "react";
|
|
5
|
+
import { u as A } from "../../index-B1u7G33_.js";
|
|
6
|
+
import { S as j } from "../../Stack-hbAJHQhq.js";
|
|
7
|
+
import { T as l } from "../../Typography-SIQ6eleU.js";
|
|
8
|
+
const g = d(/* @__PURE__ */ e("path", {
|
|
10
9
|
d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"
|
|
11
|
-
}), "AddPhotoAlternate"),
|
|
10
|
+
}), "AddPhotoAlternate"), F = d(/* @__PURE__ */ e("path", {
|
|
12
11
|
d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
|
|
13
|
-
}), "Create"),
|
|
12
|
+
}), "Create"), P = d(/* @__PURE__ */ e("path", {
|
|
13
|
+
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
14
|
+
}), "Delete"), M = () => /* @__PURE__ */ o(l, { textAlign: "center", fontSize: "14px", color: "grey.darker", children: [
|
|
14
15
|
/* @__PURE__ */ e(n, { component: "span", fontWeight: "bold", children: "Glissez-déposez" }),
|
|
15
16
|
" ",
|
|
16
17
|
"ou",
|
|
@@ -18,45 +19,45 @@ const h = g(/* @__PURE__ */ e("path", {
|
|
|
18
19
|
/* @__PURE__ */ e(n, { component: "span", fontWeight: "bold", children: "cliquez" }),
|
|
19
20
|
" ",
|
|
20
21
|
"pour choisir une image"
|
|
21
|
-
] }),
|
|
22
|
+
] }), R = () => /* @__PURE__ */ o(l, { textAlign: "center", fontSize: "14px", color: "grey.darker", children: [
|
|
22
23
|
/* @__PURE__ */ e(n, { component: "span", fontWeight: "bold", children: "Glissez" }),
|
|
23
24
|
" ",
|
|
24
25
|
"une image"
|
|
25
|
-
] }),
|
|
26
|
-
defaultLabel: u = /* @__PURE__ */ e(
|
|
27
|
-
dragLabel: x = /* @__PURE__ */ e(
|
|
26
|
+
] }), U = ({
|
|
27
|
+
defaultLabel: u = /* @__PURE__ */ e(M, {}),
|
|
28
|
+
dragLabel: x = /* @__PURE__ */ e(R, {}),
|
|
28
29
|
information: i,
|
|
29
|
-
onFileChange:
|
|
30
|
+
onFileChange: p = (t) => {
|
|
30
31
|
},
|
|
31
32
|
width: f = "160px",
|
|
32
33
|
height: y = "160px",
|
|
33
34
|
initialFile: c = null,
|
|
34
35
|
...b
|
|
35
36
|
}) => {
|
|
36
|
-
const [
|
|
37
|
+
const [t, a] = w(
|
|
37
38
|
c
|
|
38
39
|
);
|
|
39
|
-
|
|
40
|
+
D(() => {
|
|
40
41
|
a(c);
|
|
41
42
|
}, [c]);
|
|
42
|
-
const
|
|
43
|
-
const m =
|
|
44
|
-
a(m),
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
}, { open:
|
|
43
|
+
const z = (r) => {
|
|
44
|
+
const m = r[0] || null;
|
|
45
|
+
a(m), p(m);
|
|
46
|
+
}, k = (r) => {
|
|
47
|
+
r.stopPropagation(), a(null), p(null);
|
|
48
|
+
}, v = (r) => {
|
|
49
|
+
r.stopPropagation(), h();
|
|
50
|
+
}, { open: h, getRootProps: C, getInputProps: I, isDragActive: S } = A({
|
|
50
51
|
...b,
|
|
51
52
|
maxFiles: 1,
|
|
52
|
-
onDropAccepted:
|
|
53
|
+
onDropAccepted: z,
|
|
53
54
|
accept: {
|
|
54
55
|
"image/*": [".png", ".jpeg", ".jpg", ".gif"]
|
|
55
56
|
},
|
|
56
57
|
noClick: !0
|
|
57
58
|
});
|
|
58
59
|
return /* @__PURE__ */ o(
|
|
59
|
-
|
|
60
|
+
j,
|
|
60
61
|
{
|
|
61
62
|
direction: "column",
|
|
62
63
|
justifyContent: "center",
|
|
@@ -69,16 +70,16 @@ const h = g(/* @__PURE__ */ e("path", {
|
|
|
69
70
|
sx: {
|
|
70
71
|
cursor: "pointer",
|
|
71
72
|
position: "relative",
|
|
72
|
-
background: `${!
|
|
73
|
-
border: `${!
|
|
74
|
-
borderColor: (
|
|
73
|
+
background: `${!t && "linear-gradient(180deg, #F5F7F9 0%, #FFF 100%)"}`,
|
|
74
|
+
border: `${!t && "1px dashed"}`,
|
|
75
|
+
borderColor: (r) => !t && r.palette.grey.main
|
|
75
76
|
},
|
|
76
|
-
...
|
|
77
|
-
onClick:
|
|
77
|
+
...C({
|
|
78
|
+
onClick: h
|
|
78
79
|
}),
|
|
79
80
|
children: [
|
|
80
|
-
/* @__PURE__ */ e("input", { ...
|
|
81
|
-
|
|
81
|
+
/* @__PURE__ */ e("input", { ...I() }),
|
|
82
|
+
t ? /* @__PURE__ */ o(s, { children: [
|
|
82
83
|
/* @__PURE__ */ o(
|
|
83
84
|
n,
|
|
84
85
|
{
|
|
@@ -93,7 +94,7 @@ const h = g(/* @__PURE__ */ e("path", {
|
|
|
93
94
|
/* @__PURE__ */ e(
|
|
94
95
|
n,
|
|
95
96
|
{
|
|
96
|
-
onClick:
|
|
97
|
+
onClick: v,
|
|
97
98
|
sx: {
|
|
98
99
|
backgroundColor: "common.white",
|
|
99
100
|
display: "flex",
|
|
@@ -107,17 +108,17 @@ const h = g(/* @__PURE__ */ e("path", {
|
|
|
107
108
|
"&:hover": {
|
|
108
109
|
backgroundColor: "grey.darker",
|
|
109
110
|
"& .MuiSvgIcon-root": {
|
|
110
|
-
fill: (
|
|
111
|
+
fill: (r) => r.palette.common.white
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
},
|
|
114
|
-
children: /* @__PURE__ */ e(
|
|
115
|
+
children: /* @__PURE__ */ e(F, { fontSize: "small" })
|
|
115
116
|
}
|
|
116
117
|
),
|
|
117
118
|
/* @__PURE__ */ e(
|
|
118
119
|
n,
|
|
119
120
|
{
|
|
120
|
-
onClick:
|
|
121
|
+
onClick: k,
|
|
121
122
|
sx: {
|
|
122
123
|
backgroundColor: "common.white",
|
|
123
124
|
display: "flex",
|
|
@@ -131,11 +132,11 @@ const h = g(/* @__PURE__ */ e("path", {
|
|
|
131
132
|
"&:hover": {
|
|
132
133
|
backgroundColor: "grey.darker",
|
|
133
134
|
"& .MuiSvgIcon-root": {
|
|
134
|
-
fill: (
|
|
135
|
+
fill: (r) => r.palette.common.white
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
138
|
},
|
|
138
|
-
children: /* @__PURE__ */ e(
|
|
139
|
+
children: /* @__PURE__ */ e(P, { fontSize: "small" })
|
|
139
140
|
}
|
|
140
141
|
)
|
|
141
142
|
]
|
|
@@ -144,8 +145,8 @@ const h = g(/* @__PURE__ */ e("path", {
|
|
|
144
145
|
/* @__PURE__ */ e(
|
|
145
146
|
"img",
|
|
146
147
|
{
|
|
147
|
-
src: typeof
|
|
148
|
-
alt: typeof
|
|
148
|
+
src: typeof t == "string" ? t : URL.createObjectURL(t),
|
|
149
|
+
alt: typeof t == "string" ? t : t.name,
|
|
149
150
|
style: {
|
|
150
151
|
width: "100%",
|
|
151
152
|
height: "100%",
|
|
@@ -155,9 +156,9 @@ const h = g(/* @__PURE__ */ e("path", {
|
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
158
|
)
|
|
158
|
-
] }) : /* @__PURE__ */ e(s, { children:
|
|
159
|
+
] }) : /* @__PURE__ */ e(s, { children: S ? /* @__PURE__ */ o(s, { children: [
|
|
159
160
|
/* @__PURE__ */ e(
|
|
160
|
-
|
|
161
|
+
g,
|
|
161
162
|
{
|
|
162
163
|
color: "primary",
|
|
163
164
|
style: {
|
|
@@ -180,7 +181,7 @@ const h = g(/* @__PURE__ */ e("path", {
|
|
|
180
181
|
},
|
|
181
182
|
children: [
|
|
182
183
|
/* @__PURE__ */ e(
|
|
183
|
-
|
|
184
|
+
g,
|
|
184
185
|
{
|
|
185
186
|
color: "primary",
|
|
186
187
|
style: {
|
|
@@ -199,5 +200,5 @@ const h = g(/* @__PURE__ */ e("path", {
|
|
|
199
200
|
);
|
|
200
201
|
};
|
|
201
202
|
export {
|
|
202
|
-
|
|
203
|
+
U as default
|
|
203
204
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as e } from "react/jsx-runtime";
|
|
2
|
-
import { B as r } from "../../Box-
|
|
2
|
+
import { B as r } from "../../Box-DgqaLb7j.js";
|
|
3
3
|
import '../../assets/Loader.css';const o = ({}) => /* @__PURE__ */ l(r, { className: "cs-loader", color: "primary.main", children: /* @__PURE__ */ e(r, { className: "cs-loader-inner", children: [
|
|
4
4
|
/* @__PURE__ */ l("label", { children: "●" }),
|
|
5
5
|
/* @__PURE__ */ l("label", { children: "●" }),
|