@cgi-learning-hub/ui 0.0.1-dev.1708942498 → 0.0.1-dev.1708959744
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/{Button-X7eWZQfX.js → Button-CmBnwwn3.js} +12 -12
- package/dist/{Button-Tkz5NkF_.cjs → Button-wMPAZpnO.cjs} +1 -1
- package/dist/ButtonBase-Bw43M3TO.js +831 -0
- package/dist/ButtonBase-XPViWbp_.cjs +75 -0
- package/dist/CircularProgress-BCdQaPFF.cjs +28 -0
- package/dist/CircularProgress-DRE9BLTL.js +215 -0
- package/dist/Input-DHic6dYE.cjs +1 -0
- package/dist/{Input-CbYjsRHK.js → Input-Dk-cN0Fb.js} +10 -10
- package/dist/{InputBase-B13Nzzhk.js → InputBase-BbXy6VDy.js} +138 -157
- package/dist/InputBase-WBNJQn8V.cjs +4 -0
- package/dist/Tab-C2Tmr8Sv.cjs +1 -0
- package/dist/Tab-CWxCqAvH.js +237 -0
- package/dist/TransitionGroupContext-C7wWJ6l7.js +14 -0
- package/dist/TransitionGroupContext-g4tmk10h.cjs +1 -0
- package/dist/Typography-B1bdo7yt.js +177 -0
- package/dist/Typography-CO64FVmw.cjs +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/AnotherComponent/AnotherComponent.cjs.js +1 -1
- package/dist/components/AnotherComponent/AnotherComponent.es.js +3 -3
- package/dist/components/BasicButtons/BasicButtons.cjs.js +1 -1
- package/dist/components/BasicButtons/BasicButtons.es.js +10 -10
- package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -0
- package/dist/components/Dropzone/Dropzone.d.ts +9 -0
- package/dist/components/Dropzone/Dropzone.es.js +1209 -0
- package/dist/components/Dropzone/index.cjs.js +1 -0
- package/dist/components/Dropzone/index.d.ts +2 -0
- package/dist/components/Dropzone/index.es.js +4 -0
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -28
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +126 -333
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +8 -8
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.es.js +20 -12
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +77 -247
- package/dist/components/inputs/TextInput/TextInput.cjs.js +11 -13
- package/dist/components/inputs/TextInput/TextInput.es.js +367 -404
- package/dist/components/lists/FileList/FileList.cjs.js +1 -0
- package/dist/components/lists/FileList/FileList.d.ts +7 -0
- package/dist/components/lists/FileList/FileList.es.js +19 -0
- package/dist/components/lists/FileList/FileListItem.cjs.js +2 -0
- package/dist/components/lists/FileList/FileListItem.d.ts +13 -0
- package/dist/components/lists/FileList/FileListItem.es.js +216 -0
- package/dist/components/lists/FileList/index.cjs.js +1 -0
- package/dist/components/lists/FileList/index.d.ts +4 -0
- package/dist/components/lists/FileList/index.es.js +6 -0
- package/dist/components/lists/index.cjs.js +1 -0
- package/dist/components/lists/index.d.ts +1 -0
- package/dist/components/lists/index.es.js +6 -0
- package/dist/createSvgIcon-9NfUaq9H.js +143 -0
- package/dist/createSvgIcon-B7HVs3ZC.cjs +2 -0
- package/dist/{createSvgIcon-jvI3LIfI.cjs → createSvgIcon-BivvPRyr.cjs} +1 -1
- package/dist/{createSvgIcon-qXNZi4k1.js → createSvgIcon-DLZM3vHe.js} +14 -14
- package/dist/{extendSxProp-BRHiEwyk.js → extendSxProp-CVD6j4mA.js} +1 -1
- package/dist/{extendSxProp-CvhhU9Vb.cjs → extendSxProp-D5gpnasP.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +18 -10
- package/dist/ownerWindow-BoRkeomM.js +23 -0
- package/dist/ownerWindow-Dk_4aaak.cjs +1 -0
- package/dist/refType-CMQbzE37.js +29 -0
- package/dist/refType-dllUCpD8.cjs +1 -0
- package/dist/useControlled-BsLcOmhe.js +48 -0
- package/dist/useControlled-jN3fqFfv.cjs +3 -0
- package/dist/useForkRef-CGd3Nhyb.cjs +1 -0
- package/dist/useForkRef-DwN_Iz9R.js +17 -0
- package/dist/useIsFocusVisible-BF0lT08B.cjs +1 -0
- package/dist/useIsFocusVisible-D8ksiuhS.js +69 -0
- package/dist/useTheme-BSwuVDD3.js +9 -0
- package/dist/useTheme-C-LTLVMt.cjs +1 -0
- package/dist/{useThemeProps-CDriK9TK.cjs → useThemeProps-C6ClLEqN.cjs} +14 -14
- package/dist/{useThemeProps-B6yTTpAe.js → useThemeProps-kb_vU-1P.js} +741 -714
- package/dist/useTimeout-KN97abZR.js +47 -0
- package/dist/useTimeout-qjxkiZZn.cjs +1 -0
- package/package.json +2 -1
- package/dist/ButtonBase-CKfcGhaU.js +0 -892
- package/dist/ButtonBase-Cg8cBMzO.cjs +0 -75
- package/dist/Input-CAb0EFzc.cjs +0 -1
- package/dist/InputBase-CKlCw9fj.cjs +0 -4
- package/dist/useForkRef-82uiK71d.cjs +0 -1
- package/dist/useForkRef-CLcOhrzI.js +0 -44
- package/dist/useTheme-BWRyHzdn.js +0 -65
- package/dist/useTheme-BpLcDNG1.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime");require("react");const o=require("./FileListItem.cjs.js"),c=require("../../../createSvgIcon-B7HVs3ZC.cjs"),n=({files:i=[],...s})=>r.jsx(c.Box,{sx:{display:"flex",flexDirection:"column",rowGap:"0.5rem"},children:i.map((t,e)=>r.jsx(o,{file:t,uploading:e%2===0,...s},e))});module.exports=n;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type File } from "./FileListItem";
|
|
2
|
+
export interface FileListProps<T extends File> {
|
|
3
|
+
files: T[];
|
|
4
|
+
onDelete?: (file: T) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const FileList: <T extends File>({ files, ...otherProps }: FileListProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default FileList;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import e from "./FileListItem.es.js";
|
|
4
|
+
import { B as l } from "../../../createSvgIcon-9NfUaq9H.js";
|
|
5
|
+
const n = ({
|
|
6
|
+
files: i = [],
|
|
7
|
+
...t
|
|
8
|
+
}) => /* @__PURE__ */ r(l, { sx: { display: "flex", flexDirection: "column", rowGap: "0.5rem" }, children: i.map((m, o) => /* @__PURE__ */ r(
|
|
9
|
+
e,
|
|
10
|
+
{
|
|
11
|
+
file: m,
|
|
12
|
+
uploading: o % 2 === 0,
|
|
13
|
+
...t
|
|
14
|
+
},
|
|
15
|
+
o
|
|
16
|
+
)) });
|
|
17
|
+
export {
|
|
18
|
+
n as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),i=require("../../../createSvgIcon-B7HVs3ZC.cjs"),b=require("react"),v=require("../../../Typography-CO64FVmw.cjs"),e=require("../../../useThemeProps-C6ClLEqN.cjs"),_=require("../../../ButtonBase-XPViWbp_.cjs"),j=require("../../../refType-dllUCpD8.cjs"),I=require("../../../CircularProgress-BCdQaPFF.cjs");function C(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>o[t]})}}return r.default=o,Object.freeze(r)}const p=C(b);var d={},O=i.interopRequireDefaultExports;Object.defineProperty(d,"__esModule",{value:!0});var T=d.default=void 0,$=O(i.requireCreateSvgIcon()),B=a;T=d.default=(0,$.default)((0,B.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");var u={},q=i.interopRequireDefaultExports;Object.defineProperty(u,"__esModule",{value:!0});var h=u.default=void 0,M=q(i.requireCreateSvgIcon()),k=a;h=u.default=(0,M.default)((0,k.jsx)("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile");function S(o){return e.generateUtilityClass("MuiIconButton",o)}const E=e.generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),N=["edge","children","className","color","disabled","disableFocusRipple","size"],D=o=>{const{classes:r,disabled:t,color:s,edge:n,size:l}=o,c={root:["root",t&&"disabled",s!=="default"&&`color${e.capitalize(s)}`,n&&`edge${e.capitalize(n)}`,`size${e.capitalize(l)}`]};return e.composeClasses(c,S,r)},F=e.styled(_.ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.root,t.color!=="default"&&r[`color${e.capitalize(t.color)}`],t.edge&&r[`edge${e.capitalize(t.edge)}`],r[`size${e.capitalize(t.size)}`]]}})(({theme:o,ownerState:r})=>e._extends({textAlign:"center",flex:"0 0 auto",fontSize:o.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(o.vars||o).palette.action.active,transition:o.transitions.create("background-color",{duration:o.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},r.edge==="start"&&{marginLeft:r.size==="small"?-3:-12},r.edge==="end"&&{marginRight:r.size==="small"?-3:-12}),({theme:o,ownerState:r})=>{var t;const s=(t=(o.vars||o).palette)==null?void 0:t[r.color];return e._extends({},r.color==="inherit"&&{color:"inherit"},r.color!=="inherit"&&r.color!=="default"&&e._extends({color:s==null?void 0:s.main},!r.disableRipple&&{"&:hover":e._extends({},s&&{backgroundColor:o.vars?`rgba(${s.mainChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(s.main,o.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),r.size==="small"&&{padding:5,fontSize:o.typography.pxToRem(18)},r.size==="large"&&{padding:12,fontSize:o.typography.pxToRem(28)},{[`&.${E.disabled}`]:{backgroundColor:"transparent",color:(o.vars||o).palette.action.disabled}})}),m=p.forwardRef(function(r,t){const s=e.useThemeProps({props:r,name:"MuiIconButton"}),{edge:n=!1,children:l,className:c,color:x="default",disabled:f=!1,disableFocusRipple:y=!1,size:P="medium"}=s,z=e._objectWithoutPropertiesLoose(s,N),g=e._extends({},s,{edge:n,color:x,disabled:f,disableFocusRipple:y,size:P}),R=D(g);return a.jsx(F,e._extends({className:e.clsx(R.root,c),centerRipple:!0,focusRipple:!y,disabled:f,ref:t,ownerState:g},z,{children:l}))});process.env.NODE_ENV!=="production"&&(m.propTypes={children:j.chainPropTypes(e.PropTypes.node,o=>p.Children.toArray(o.children).some(t=>p.isValidElement(t)&&t.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
2
|
+
`)):null),classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,disableRipple:e.PropTypes.bool,edge:e.PropTypes.oneOf(["end","start",!1]),size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["small","medium","large"]),e.PropTypes.string]),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 L=m,U=({file:o,uploading:r,onDelete:t})=>{const s=`${o.size} octets`,n=()=>t==null?void 0:t(o);return a.jsxs(i.Box,{sx:{display:"flex",alignItems:"center",columnGap:"1rem"},children:[a.jsx(h,{color:"primary"}),a.jsxs("div",{className:"text-start w-full",children:[a.jsx(v.Typography,{children:o.name}),a.jsx(v.Typography,{fontSize:"0.875rem",color:"grey",children:s})]}),a.jsx(L,{onClick:n,disabled:r,children:r?a.jsx(I.CircularProgress,{size:24}):a.jsx(T,{})})]})},V=b.memo(U);module.exports=V;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface File {
|
|
3
|
+
name: string;
|
|
4
|
+
size: number;
|
|
5
|
+
uploading?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface FileListItemProps<T extends File> {
|
|
8
|
+
file: T;
|
|
9
|
+
uploading?: boolean;
|
|
10
|
+
onDelete?: (file: T) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: React.MemoExoticComponent<(<T extends File>({ file, uploading, onDelete, }: FileListItemProps<T>) => import("react/jsx-runtime").JSX.Element)>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import z, { jsx as s, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import { r as R, i as x, B as T } from "../../../createSvgIcon-9NfUaq9H.js";
|
|
3
|
+
import * as p from "react";
|
|
4
|
+
import M from "react";
|
|
5
|
+
import { T as y } from "../../../Typography-B1bdo7yt.js";
|
|
6
|
+
import { g as k, c as P, s as E, e as l, a as n, x as h, f as F, _ as L, h as N, P as r, j as q } from "../../../useThemeProps-kb_vU-1P.js";
|
|
7
|
+
import { B as S } from "../../../ButtonBase-Bw43M3TO.js";
|
|
8
|
+
import { c as U } from "../../../refType-CMQbzE37.js";
|
|
9
|
+
import { C as V } from "../../../CircularProgress-DRE9BLTL.js";
|
|
10
|
+
var u = {}, D = x;
|
|
11
|
+
Object.defineProperty(u, "__esModule", {
|
|
12
|
+
value: !0
|
|
13
|
+
});
|
|
14
|
+
var I = u.default = void 0, A = D(R()), H = z;
|
|
15
|
+
I = u.default = (0, A.default)(/* @__PURE__ */ (0, H.jsx)("path", {
|
|
16
|
+
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
17
|
+
}), "Delete");
|
|
18
|
+
var f = {}, W = x;
|
|
19
|
+
Object.defineProperty(f, "__esModule", {
|
|
20
|
+
value: !0
|
|
21
|
+
});
|
|
22
|
+
var C = f.default = void 0, G = W(R()), Y = z;
|
|
23
|
+
C = f.default = (0, G.default)(/* @__PURE__ */ (0, Y.jsx)("path", {
|
|
24
|
+
d: "M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"
|
|
25
|
+
}), "InsertDriveFile");
|
|
26
|
+
function w(e) {
|
|
27
|
+
return P("MuiIconButton", e);
|
|
28
|
+
}
|
|
29
|
+
const J = k("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), K = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], Q = (e) => {
|
|
30
|
+
const {
|
|
31
|
+
classes: o,
|
|
32
|
+
disabled: t,
|
|
33
|
+
color: a,
|
|
34
|
+
edge: i,
|
|
35
|
+
size: c
|
|
36
|
+
} = e, d = {
|
|
37
|
+
root: ["root", t && "disabled", a !== "default" && `color${l(a)}`, i && `edge${l(i)}`, `size${l(c)}`]
|
|
38
|
+
};
|
|
39
|
+
return q(d, w, o);
|
|
40
|
+
}, X = E(S, {
|
|
41
|
+
name: "MuiIconButton",
|
|
42
|
+
slot: "Root",
|
|
43
|
+
overridesResolver: (e, o) => {
|
|
44
|
+
const {
|
|
45
|
+
ownerState: t
|
|
46
|
+
} = e;
|
|
47
|
+
return [o.root, t.color !== "default" && o[`color${l(t.color)}`], t.edge && o[`edge${l(t.edge)}`], o[`size${l(t.size)}`]];
|
|
48
|
+
}
|
|
49
|
+
})(({
|
|
50
|
+
theme: e,
|
|
51
|
+
ownerState: o
|
|
52
|
+
}) => n({
|
|
53
|
+
textAlign: "center",
|
|
54
|
+
flex: "0 0 auto",
|
|
55
|
+
fontSize: e.typography.pxToRem(24),
|
|
56
|
+
padding: 8,
|
|
57
|
+
borderRadius: "50%",
|
|
58
|
+
overflow: "visible",
|
|
59
|
+
// Explicitly set the default value to solve a bug on IE11.
|
|
60
|
+
color: (e.vars || e).palette.action.active,
|
|
61
|
+
transition: e.transitions.create("background-color", {
|
|
62
|
+
duration: e.transitions.duration.shortest
|
|
63
|
+
})
|
|
64
|
+
}, !o.disableRipple && {
|
|
65
|
+
"&:hover": {
|
|
66
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})` : h(e.palette.action.active, e.palette.action.hoverOpacity),
|
|
67
|
+
// Reset on touch devices, it doesn't add specificity
|
|
68
|
+
"@media (hover: none)": {
|
|
69
|
+
backgroundColor: "transparent"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}, o.edge === "start" && {
|
|
73
|
+
marginLeft: o.size === "small" ? -3 : -12
|
|
74
|
+
}, o.edge === "end" && {
|
|
75
|
+
marginRight: o.size === "small" ? -3 : -12
|
|
76
|
+
}), ({
|
|
77
|
+
theme: e,
|
|
78
|
+
ownerState: o
|
|
79
|
+
}) => {
|
|
80
|
+
var t;
|
|
81
|
+
const a = (t = (e.vars || e).palette) == null ? void 0 : t[o.color];
|
|
82
|
+
return n({}, o.color === "inherit" && {
|
|
83
|
+
color: "inherit"
|
|
84
|
+
}, o.color !== "inherit" && o.color !== "default" && n({
|
|
85
|
+
color: a == null ? void 0 : a.main
|
|
86
|
+
}, !o.disableRipple && {
|
|
87
|
+
"&:hover": n({}, a && {
|
|
88
|
+
backgroundColor: e.vars ? `rgba(${a.mainChannel} / ${e.vars.palette.action.hoverOpacity})` : h(a.main, e.palette.action.hoverOpacity)
|
|
89
|
+
}, {
|
|
90
|
+
// Reset on touch devices, it doesn't add specificity
|
|
91
|
+
"@media (hover: none)": {
|
|
92
|
+
backgroundColor: "transparent"
|
|
93
|
+
}
|
|
94
|
+
})
|
|
95
|
+
}), o.size === "small" && {
|
|
96
|
+
padding: 5,
|
|
97
|
+
fontSize: e.typography.pxToRem(18)
|
|
98
|
+
}, o.size === "large" && {
|
|
99
|
+
padding: 12,
|
|
100
|
+
fontSize: e.typography.pxToRem(28)
|
|
101
|
+
}, {
|
|
102
|
+
[`&.${J.disabled}`]: {
|
|
103
|
+
backgroundColor: "transparent",
|
|
104
|
+
color: (e.vars || e).palette.action.disabled
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}), _ = /* @__PURE__ */ p.forwardRef(function(o, t) {
|
|
108
|
+
const a = F({
|
|
109
|
+
props: o,
|
|
110
|
+
name: "MuiIconButton"
|
|
111
|
+
}), {
|
|
112
|
+
edge: i = !1,
|
|
113
|
+
children: c,
|
|
114
|
+
className: d,
|
|
115
|
+
color: $ = "default",
|
|
116
|
+
disabled: v = !1,
|
|
117
|
+
disableFocusRipple: g = !1,
|
|
118
|
+
size: B = "medium"
|
|
119
|
+
} = a, O = L(a, K), m = n({}, a, {
|
|
120
|
+
edge: i,
|
|
121
|
+
color: $,
|
|
122
|
+
disabled: v,
|
|
123
|
+
disableFocusRipple: g,
|
|
124
|
+
size: B
|
|
125
|
+
}), j = Q(m);
|
|
126
|
+
return /* @__PURE__ */ s(X, n({
|
|
127
|
+
className: N(j.root, d),
|
|
128
|
+
centerRipple: !0,
|
|
129
|
+
focusRipple: !g,
|
|
130
|
+
disabled: v,
|
|
131
|
+
ref: t,
|
|
132
|
+
ownerState: m
|
|
133
|
+
}, O, {
|
|
134
|
+
children: c
|
|
135
|
+
}));
|
|
136
|
+
});
|
|
137
|
+
process.env.NODE_ENV !== "production" && (_.propTypes = {
|
|
138
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
139
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
140
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
141
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
142
|
+
/**
|
|
143
|
+
* The icon to display.
|
|
144
|
+
*/
|
|
145
|
+
children: U(r.node, (e) => p.Children.toArray(e.children).some((t) => /* @__PURE__ */ p.isValidElement(t) && t.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
146
|
+
`)) : null),
|
|
147
|
+
/**
|
|
148
|
+
* Override or extend the styles applied to the component.
|
|
149
|
+
*/
|
|
150
|
+
classes: r.object,
|
|
151
|
+
/**
|
|
152
|
+
* @ignore
|
|
153
|
+
*/
|
|
154
|
+
className: r.string,
|
|
155
|
+
/**
|
|
156
|
+
* The color of the component.
|
|
157
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
158
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
159
|
+
* @default 'default'
|
|
160
|
+
*/
|
|
161
|
+
color: r.oneOfType([r.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
|
|
162
|
+
/**
|
|
163
|
+
* If `true`, the component is disabled.
|
|
164
|
+
* @default false
|
|
165
|
+
*/
|
|
166
|
+
disabled: r.bool,
|
|
167
|
+
/**
|
|
168
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
169
|
+
* @default false
|
|
170
|
+
*/
|
|
171
|
+
disableFocusRipple: r.bool,
|
|
172
|
+
/**
|
|
173
|
+
* If `true`, the ripple effect is disabled.
|
|
174
|
+
*
|
|
175
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
176
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
177
|
+
* @default false
|
|
178
|
+
*/
|
|
179
|
+
disableRipple: r.bool,
|
|
180
|
+
/**
|
|
181
|
+
* If given, uses a negative margin to counteract the padding on one
|
|
182
|
+
* side (this is often helpful for aligning the left or right
|
|
183
|
+
* side of the icon with content above or below, without ruining the border
|
|
184
|
+
* size and shape).
|
|
185
|
+
* @default false
|
|
186
|
+
*/
|
|
187
|
+
edge: r.oneOf(["end", "start", !1]),
|
|
188
|
+
/**
|
|
189
|
+
* The size of the component.
|
|
190
|
+
* `small` is equivalent to the dense button styling.
|
|
191
|
+
* @default 'medium'
|
|
192
|
+
*/
|
|
193
|
+
size: r.oneOfType([r.oneOf(["small", "medium", "large"]), r.string]),
|
|
194
|
+
/**
|
|
195
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
196
|
+
*/
|
|
197
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
|
|
198
|
+
});
|
|
199
|
+
const Z = _, ee = ({
|
|
200
|
+
file: e,
|
|
201
|
+
uploading: o,
|
|
202
|
+
onDelete: t
|
|
203
|
+
}) => {
|
|
204
|
+
const a = `${e.size} octets`, i = () => t == null ? void 0 : t(e);
|
|
205
|
+
return /* @__PURE__ */ b(T, { sx: { display: "flex", alignItems: "center", columnGap: "1rem" }, children: [
|
|
206
|
+
/* @__PURE__ */ s(C, { color: "primary" }),
|
|
207
|
+
/* @__PURE__ */ b("div", { className: "text-start w-full", children: [
|
|
208
|
+
/* @__PURE__ */ s(y, { children: e.name }),
|
|
209
|
+
/* @__PURE__ */ s(y, { fontSize: "0.875rem", color: "grey", children: a })
|
|
210
|
+
] }),
|
|
211
|
+
/* @__PURE__ */ s(Z, { onClick: i, disabled: o, children: o ? /* @__PURE__ */ s(V, { size: 24 }) : /* @__PURE__ */ s(I, {}) })
|
|
212
|
+
] });
|
|
213
|
+
}, ce = M.memo(ee);
|
|
214
|
+
export {
|
|
215
|
+
ce as default
|
|
216
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./FileList.cjs.js"),t=require("./FileListItem.cjs.js");exports.FileList=e;exports.FileListItem=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./FileList/FileList.cjs.js"),t=require("./FileList/FileListItem.cjs.js");exports.FileList=e;exports.FileListItem=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FileList";
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { a as _, z as E, A as T, u as b, _ as C, h as P, g as S, B as I, T as $, C as v, P as r, e as O, D as B } from "./useThemeProps-kb_vU-1P.js";
|
|
2
|
+
import * as D from "react";
|
|
3
|
+
import { jsx as w } from "react/jsx-runtime";
|
|
4
|
+
import { e as R } from "./extendSxProp-CVD6j4mA.js";
|
|
5
|
+
import { c as M } from "./createSvgIcon-DLZM3vHe.js";
|
|
6
|
+
import { c as q, i as F, u as j } from "./useControlled-BsLcOmhe.js";
|
|
7
|
+
import { d as V, a as k, o as G } from "./ownerWindow-BoRkeomM.js";
|
|
8
|
+
import { s as z, u as A, a as U } from "./useForkRef-DwN_Iz9R.js";
|
|
9
|
+
import { u as W } from "./useId-BW-oWmul.js";
|
|
10
|
+
import { a as H } from "./useTimeout-KN97abZR.js";
|
|
11
|
+
import { u as L } from "./useIsFocusVisible-D8ksiuhS.js";
|
|
12
|
+
function Y(e, t) {
|
|
13
|
+
return process.env.NODE_ENV === "production" ? () => null : (o, u, s, n, i) => {
|
|
14
|
+
const a = s || "<<anonymous>>", c = i || u;
|
|
15
|
+
return typeof o[u] < "u" ? new Error(`The ${n} \`${c}\` of \`${a}\` is deprecated. ${t}`) : null;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function J(e, t) {
|
|
19
|
+
if (process.env.NODE_ENV === "production")
|
|
20
|
+
return () => null;
|
|
21
|
+
const o = t ? _({}, t.propTypes) : null;
|
|
22
|
+
return (s) => (n, i, a, c, p, ...l) => {
|
|
23
|
+
const f = p || i, m = o == null ? void 0 : o[f];
|
|
24
|
+
if (m) {
|
|
25
|
+
const d = m(n, i, a, c, p, ...l);
|
|
26
|
+
if (d)
|
|
27
|
+
return d;
|
|
28
|
+
}
|
|
29
|
+
return typeof n[i] < "u" && !n[s] ? new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${s}\` prop.`) : null;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function K(e, t, o, u, s) {
|
|
33
|
+
if (process.env.NODE_ENV === "production")
|
|
34
|
+
return null;
|
|
35
|
+
const n = s || t;
|
|
36
|
+
return typeof e[t] < "u" ? new Error(`The prop \`${n}\` is not supported. Please remove it.`) : null;
|
|
37
|
+
}
|
|
38
|
+
const Q = ["className", "component"];
|
|
39
|
+
function X(e = {}) {
|
|
40
|
+
const {
|
|
41
|
+
themeId: t,
|
|
42
|
+
defaultTheme: o,
|
|
43
|
+
defaultClassName: u = "MuiBox-root",
|
|
44
|
+
generateClassName: s
|
|
45
|
+
} = e, n = E("div", {
|
|
46
|
+
shouldForwardProp: (a) => a !== "theme" && a !== "sx" && a !== "as"
|
|
47
|
+
})(T);
|
|
48
|
+
return /* @__PURE__ */ D.forwardRef(function(c, p) {
|
|
49
|
+
const l = b(o), f = R(c), {
|
|
50
|
+
className: m,
|
|
51
|
+
component: d = "div"
|
|
52
|
+
} = f, N = C(f, Q);
|
|
53
|
+
return /* @__PURE__ */ w(n, _({
|
|
54
|
+
as: d,
|
|
55
|
+
ref: p,
|
|
56
|
+
className: P(m, s ? s(u) : u),
|
|
57
|
+
theme: t && l[t] || l
|
|
58
|
+
}, N));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
const Z = S("MuiBox", ["root"]), ee = Z, te = I(), y = X({
|
|
62
|
+
themeId: $,
|
|
63
|
+
defaultTheme: te,
|
|
64
|
+
defaultClassName: ee.root,
|
|
65
|
+
generateClassName: v.generate
|
|
66
|
+
});
|
|
67
|
+
process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
68
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
69
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
70
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
71
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
72
|
+
/**
|
|
73
|
+
* @ignore
|
|
74
|
+
*/
|
|
75
|
+
children: r.node,
|
|
76
|
+
/**
|
|
77
|
+
* The component used for the root node.
|
|
78
|
+
* Either a string to use a HTML element or a component.
|
|
79
|
+
*/
|
|
80
|
+
component: r.elementType,
|
|
81
|
+
/**
|
|
82
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
83
|
+
*/
|
|
84
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
|
|
85
|
+
});
|
|
86
|
+
const he = y;
|
|
87
|
+
var g = { exports: {} };
|
|
88
|
+
(function(e) {
|
|
89
|
+
function t(o) {
|
|
90
|
+
return o && o.__esModule ? o : {
|
|
91
|
+
default: o
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
95
|
+
})(g);
|
|
96
|
+
var xe = g.exports, h = {};
|
|
97
|
+
const oe = {
|
|
98
|
+
configure: (e) => {
|
|
99
|
+
process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
100
|
+
`)), v.configure(e);
|
|
101
|
+
}
|
|
102
|
+
}, re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
103
|
+
__proto__: null,
|
|
104
|
+
capitalize: O,
|
|
105
|
+
createChainedFunction: q,
|
|
106
|
+
createSvgIcon: M,
|
|
107
|
+
debounce: V,
|
|
108
|
+
deprecatedPropType: Y,
|
|
109
|
+
isMuiElement: F,
|
|
110
|
+
ownerDocument: k,
|
|
111
|
+
ownerWindow: G,
|
|
112
|
+
requirePropFactory: J,
|
|
113
|
+
setRef: z,
|
|
114
|
+
unstable_ClassNameGenerator: oe,
|
|
115
|
+
unstable_useEnhancedEffect: A,
|
|
116
|
+
unstable_useId: W,
|
|
117
|
+
unsupportedProp: K,
|
|
118
|
+
useControlled: j,
|
|
119
|
+
useEventCallback: H,
|
|
120
|
+
useForkRef: U,
|
|
121
|
+
useIsFocusVisible: L
|
|
122
|
+
}, Symbol.toStringTag, { value: "Module" })), se = /* @__PURE__ */ B(re);
|
|
123
|
+
var x;
|
|
124
|
+
function _e() {
|
|
125
|
+
return x || (x = 1, function(e) {
|
|
126
|
+
"use client";
|
|
127
|
+
Object.defineProperty(e, "__esModule", {
|
|
128
|
+
value: !0
|
|
129
|
+
}), Object.defineProperty(e, "default", {
|
|
130
|
+
enumerable: !0,
|
|
131
|
+
get: function() {
|
|
132
|
+
return t.createSvgIcon;
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
var t = se;
|
|
136
|
+
}(h)), h;
|
|
137
|
+
}
|
|
138
|
+
export {
|
|
139
|
+
he as B,
|
|
140
|
+
xe as i,
|
|
141
|
+
_e as r,
|
|
142
|
+
K as u
|
|
143
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("./useThemeProps-C6ClLEqN.cjs"),E=require("react"),N=require("react/jsx-runtime"),C=require("./extendSxProp-D5gpnasP.cjs"),q=require("./createSvgIcon-BivvPRyr.cjs"),y=require("./useControlled-jN3fqFfv.cjs"),h=require("./ownerWindow-Dk_4aaak.cjs"),x=require("./useForkRef-CGd3Nhyb.cjs"),S=require("./useId-Cw0TtD-8.cjs"),I=require("./useTimeout-qjxkiZZn.cjs"),O=require("./useIsFocusVisible-BF0lT08B.cjs");function $(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return o.default=t,Object.freeze(o)}const w=$(E);function R(t,o){return process.env.NODE_ENV==="production"?()=>null:(r,n,s,u,a)=>{const c=s||"<<anonymous>>",i=a||n;return typeof r[n]<"u"?new Error(`The ${u} \`${i}\` of \`${c}\` is deprecated. ${o}`):null}}function D(t,o){if(process.env.NODE_ENV==="production")return()=>null;const r=o?e._extends({},o.propTypes):null;return s=>(u,a,c,i,d,...l)=>{const p=d||a,f=r==null?void 0:r[p];if(f){const m=f(u,a,c,i,d,...l);if(m)return m}return typeof u[a]<"u"&&!u[s]?new Error(`The prop \`${p}\` of \`${t}\` can only be used together with the \`${s}\` prop.`):null}}function _(t,o,r,n,s){if(process.env.NODE_ENV==="production")return null;const u=s||o;return typeof t[o]<"u"?new Error(`The prop \`${u}\` is not supported. Please remove it.`):null}const F=["className","component"];function M(t={}){const{themeId:o,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:s}=t,u=e.styled$1("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(e.styleFunctionSx);return w.forwardRef(function(i,d){const l=e.useTheme(r),p=C.extendSxProp(i),{className:f,component:m="div"}=p,P=e._objectWithoutPropertiesLoose(p,F);return N.jsx(u,e._extends({as:m,ref:d,className:e.clsx(f,s?s(n):n),theme:o&&l[o]||l},P))})}const j=e.generateUtilityClasses("MuiBox",["root"]),B=j,k=e.createTheme$1(),g=M({themeId:e.THEME_ID,defaultTheme:k,defaultClassName:B.root,generateClassName:e.ClassNameGenerator.generate});process.env.NODE_ENV!=="production"&&(g.propTypes={children:e.PropTypes.node,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 V=g;var b={exports:{}};(function(t){function o(r){return r&&r.__esModule?r:{default:r}}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports})(b);var G=b.exports,T={};const z={configure:t=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
2
|
+
`)),e.ClassNameGenerator.configure(t)}},W=Object.freeze(Object.defineProperty({__proto__:null,capitalize:e.capitalize,createChainedFunction:y.createChainedFunction,createSvgIcon:q.createSvgIcon,debounce:h.debounce,deprecatedPropType:R,isMuiElement:y.isMuiElement,ownerDocument:h.ownerDocument,ownerWindow:h.ownerWindow,requirePropFactory:D,setRef:x.setRef,unstable_ClassNameGenerator:z,unstable_useEnhancedEffect:x.useEnhancedEffect,unstable_useId:S.useId,unsupportedProp:_,useControlled:y.useControlled,useEventCallback:I.useEventCallback,useForkRef:x.useForkRef,useIsFocusVisible:O.useIsFocusVisible},Symbol.toStringTag,{value:"Module"})),U=e.getAugmentedNamespace(W);var v;function A(){return v||(v=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.createSvgIcon}});var o=U}(T)),T}exports.Box=V;exports.interopRequireDefaultExports=G;exports.requireCreateSvgIcon=A;exports.unsupportedProp=_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./useThemeProps-
|
|
1
|
+
"use strict";const e=require("./useThemeProps-C6ClLEqN.cjs"),x=require("react"),v=require("react/jsx-runtime");function _(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>o[r]})}}return t.default=o,Object.freeze(t)}const g=_(x);function $(o){return e.generateUtilityClass("MuiSvgIcon",o)}e.generateUtilityClasses("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const z=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],b=o=>{const{color:t,fontSize:r,classes:i}=o,n={root:["root",t!=="inherit"&&`color${e.capitalize(t)}`,`fontSize${e.capitalize(r)}`]};return e.composeClasses(n,$,i)},I=e.styled("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:r}=o;return[t.root,r.color!=="inherit"&&t[`color${e.capitalize(r.color)}`],t[`fontSize${e.capitalize(r.fontSize)}`]]}})(({theme:o,ownerState:t})=>{var r,i,n,u,f,a,m,d,y,l,c,p,s;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=o.transitions)==null||(i=r.create)==null?void 0:i.call(r,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(f=u.pxToRem)==null?void 0:f.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(m=a.pxToRem)==null?void 0:m.call(a,24))||"1.5rem",large:((d=o.typography)==null||(y=d.pxToRem)==null?void 0:y.call(d,35))||"2.1875rem"}[t.fontSize],color:(l=(c=(o.vars||o).palette)==null||(c=c[t.color])==null?void 0:c.main)!=null?l:{action:(p=(o.vars||o).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(s=(o.vars||o).palette)==null||(s=s.action)==null?void 0:s.disabled,inherit:void 0}[t.color]}}),h=g.forwardRef(function(t,r){const i=e.useThemeProps({props:t,name:"MuiSvgIcon"}),{children:n,className:u,color:f="inherit",component:a="svg",fontSize:m="medium",htmlColor:d,inheritViewBox:y=!1,titleAccess:l,viewBox:c="0 0 24 24"}=i,p=e._objectWithoutPropertiesLoose(i,z),s=g.isValidElement(n)&&n.type==="svg",T=e._extends({},i,{color:f,component:a,fontSize:m,instanceFontSize:t.fontSize,inheritViewBox:y,viewBox:c,hasSvgAsChild:s}),S={};y||(S.viewBox=c);const P=b(T);return v.jsxs(I,e._extends({as:a,className:e.clsx(P.root,u),focusable:"false",color:d,"aria-hidden":l?void 0:!0,role:l?"img":void 0,ref:r},S,p,s&&n.props,{ownerState:T,children:[s?n.props.children:n,l?v.jsx("title",{children:l}):null]}))});process.env.NODE_ENV!=="production"&&(h.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),component:e.PropTypes.elementType,fontSize:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","large","medium","small"]),e.PropTypes.string]),htmlColor:e.PropTypes.string,inheritViewBox:e.PropTypes.bool,shapeRendering:e.PropTypes.string,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]),titleAccess:e.PropTypes.string,viewBox:e.PropTypes.string});h.muiName="SvgIcon";function O(o,t){function r(i,n){return v.jsx(h,e._extends({"data-testid":`${t}Icon`,ref:n},i,{children:o}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=h.muiName,g.memo(g.forwardRef(r))}exports.createSvgIcon=O;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as I, g as b, s as w, e as g, f as C, _ as T, a as S, h as N, P as o, j as R } from "./useThemeProps-kb_vU-1P.js";
|
|
2
2
|
import * as v from "react";
|
|
3
3
|
import { jsxs as O, jsx as _ } from "react/jsx-runtime";
|
|
4
|
-
function
|
|
5
|
-
return
|
|
4
|
+
function j(e) {
|
|
5
|
+
return I("MuiSvgIcon", e);
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
const
|
|
7
|
+
b("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
8
|
+
const B = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], A = (e) => {
|
|
9
9
|
const {
|
|
10
10
|
color: n,
|
|
11
11
|
fontSize: t,
|
|
@@ -13,7 +13,7 @@ const j = ["children", "className", "color", "component", "fontSize", "htmlColor
|
|
|
13
13
|
} = e, i = {
|
|
14
14
|
root: ["root", n !== "inherit" && `color${g(n)}`, `fontSize${g(t)}`]
|
|
15
15
|
};
|
|
16
|
-
return R(i,
|
|
16
|
+
return R(i, j, r);
|
|
17
17
|
}, E = w("svg", {
|
|
18
18
|
name: "MuiSvgIcon",
|
|
19
19
|
slot: "Root",
|
|
@@ -27,7 +27,7 @@ const j = ["children", "className", "color", "component", "fontSize", "htmlColor
|
|
|
27
27
|
theme: e,
|
|
28
28
|
ownerState: n
|
|
29
29
|
}) => {
|
|
30
|
-
var t, r, i,
|
|
30
|
+
var t, r, i, d, f, c, h, u, m, s, a, p, l;
|
|
31
31
|
return {
|
|
32
32
|
userSelect: "none",
|
|
33
33
|
width: "1em",
|
|
@@ -42,9 +42,9 @@ const j = ["children", "className", "color", "component", "fontSize", "htmlColor
|
|
|
42
42
|
}),
|
|
43
43
|
fontSize: {
|
|
44
44
|
inherit: "inherit",
|
|
45
|
-
small: ((
|
|
45
|
+
small: ((d = e.typography) == null || (f = d.pxToRem) == null ? void 0 : f.call(d, 20)) || "1.25rem",
|
|
46
46
|
medium: ((c = e.typography) == null || (h = c.pxToRem) == null ? void 0 : h.call(c, 24)) || "1.5rem",
|
|
47
|
-
large: ((
|
|
47
|
+
large: ((u = e.typography) == null || (m = u.pxToRem) == null ? void 0 : m.call(u, 35)) || "2.1875rem"
|
|
48
48
|
}[n.fontSize],
|
|
49
49
|
// TODO v5 deprecate, v6 remove for sx
|
|
50
50
|
color: (s = (a = (e.vars || e).palette) == null || (a = a[n.color]) == null ? void 0 : a.main) != null ? s : {
|
|
@@ -59,15 +59,15 @@ const j = ["children", "className", "color", "component", "fontSize", "htmlColor
|
|
|
59
59
|
name: "MuiSvgIcon"
|
|
60
60
|
}), {
|
|
61
61
|
children: i,
|
|
62
|
-
className:
|
|
62
|
+
className: d,
|
|
63
63
|
color: f = "inherit",
|
|
64
64
|
component: c = "svg",
|
|
65
65
|
fontSize: h = "medium",
|
|
66
|
-
htmlColor:
|
|
66
|
+
htmlColor: u,
|
|
67
67
|
inheritViewBox: m = !1,
|
|
68
68
|
titleAccess: s,
|
|
69
69
|
viewBox: a = "0 0 24 24"
|
|
70
|
-
} = r, p = T(r,
|
|
70
|
+
} = r, p = T(r, B), l = /* @__PURE__ */ v.isValidElement(i) && i.type === "svg", x = S({}, r, {
|
|
71
71
|
color: f,
|
|
72
72
|
component: c,
|
|
73
73
|
fontSize: h,
|
|
@@ -80,9 +80,9 @@ const j = ["children", "className", "color", "component", "fontSize", "htmlColor
|
|
|
80
80
|
const z = A(x);
|
|
81
81
|
return /* @__PURE__ */ O(E, S({
|
|
82
82
|
as: c,
|
|
83
|
-
className: N(z.root,
|
|
83
|
+
className: N(z.root, d),
|
|
84
84
|
focusable: "false",
|
|
85
|
-
color:
|
|
85
|
+
color: u,
|
|
86
86
|
"aria-hidden": s ? void 0 : !0,
|
|
87
87
|
role: s ? "img" : void 0,
|
|
88
88
|
ref: t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./useThemeProps-
|
|
1
|
+
"use strict";const o=require("./useThemeProps-C6ClLEqN.cjs"),c=["sx"],x=t=>{var s,r;const n={systemProps:{},otherProps:{}},i=(s=t==null||(r=t.theme)==null?void 0:r.unstable_sxConfig)!=null?s:o.defaultSxConfig;return Object.keys(t).forEach(e=>{i[e]?n.systemProps[e]=t[e]:n.otherProps[e]=t[e]}),n};function f(t){const{sx:s}=t,r=o._objectWithoutPropertiesLoose(t,c),{systemProps:n,otherProps:i}=x(r);let e;return Array.isArray(s)?e=[n,...s]:typeof s=="function"?e=(...u)=>{const l=s(...u);return o.isPlainObject(l)?o._extends({},n,l):n}:e=o._extends({},n,s),o._extends({},i,{sx:e})}exports.extendSxProp=f;
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a=require("./assets/index.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./components/AnotherComponent/AnotherComponent.cjs.js"),n=require("./components/BasicButtons/BasicButtons.cjs.js"),o=require("./components/Dropzone/Dropzone.cjs.js"),e=require("./components/buttons/DefaultButton/DefaultButton.cjs.js"),r=require("./components/buttons/PrimaryButton/PrimaryButton.cjs.js"),s=require("./components/buttons/SecondaryButton/SecondaryButton.cjs.js"),u=require("./components/inputs/SearchInput/SearchInput.cjs.js"),i=require("./components/inputs/TextInput/TextInput.cjs.js"),c=require("./components/lists/FileList/FileList.cjs.js"),_=require("./components/lists/FileList/FileListItem.cjs.js"),p=require("./Tab-C2Tmr8Sv.cjs");exports.AnotherComponent=t;exports.BasicButtons=n;exports.Dropzone=o;exports.DefaultButton=e;exports.PrimaryButton=r;exports.SecondaryButton=s;exports.SearchInput=u;exports.TextInput=i;exports.FileList=c;exports.FileListItem=_;exports.Tab=p.Tab;
|
package/dist/index.es.js
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import "./assets/index.css";
|
|
2
2
|
import { default as r } from "./components/AnotherComponent/AnotherComponent.es.js";
|
|
3
3
|
import { default as f } from "./components/BasicButtons/BasicButtons.es.js";
|
|
4
|
-
import { default as p } from "./components/
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
4
|
+
import { default as p } from "./components/Dropzone/Dropzone.es.js";
|
|
5
|
+
import { default as s } from "./components/buttons/DefaultButton/DefaultButton.es.js";
|
|
6
|
+
import { default as x } from "./components/buttons/PrimaryButton/PrimaryButton.es.js";
|
|
7
|
+
import { default as n } from "./components/buttons/SecondaryButton/SecondaryButton.es.js";
|
|
8
|
+
import { default as B } from "./components/inputs/SearchInput/SearchInput.es.js";
|
|
9
|
+
import { default as I } from "./components/inputs/TextInput/TextInput.es.js";
|
|
10
|
+
import { default as h } from "./components/lists/FileList/FileList.es.js";
|
|
11
|
+
import { default as D } from "./components/lists/FileList/FileListItem.es.js";
|
|
12
|
+
import { T as L } from "./Tab-CWxCqAvH.js";
|
|
9
13
|
export {
|
|
10
14
|
r as AnotherComponent,
|
|
11
15
|
f as BasicButtons,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
s as DefaultButton,
|
|
17
|
+
p as Dropzone,
|
|
18
|
+
h as FileList,
|
|
19
|
+
D as FileListItem,
|
|
20
|
+
x as PrimaryButton,
|
|
21
|
+
B as SearchInput,
|
|
22
|
+
n as SecondaryButton,
|
|
23
|
+
L as Tab,
|
|
24
|
+
I as TextInput
|
|
17
25
|
};
|