@cgi-learning-hub/ui 0.0.1-dev.1708959157 → 0.0.1-dev.1708964890
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Box-7uR7JZiM.cjs +1 -0
- package/dist/Box-CPGTKTgx.js +56 -0
- package/dist/{ButtonBase-C5_-KI-D.js → ButtonBase-B0tkJ9zf.js} +2 -2
- package/dist/{ButtonBase-XPViWbp_.cjs → ButtonBase-DCL6Xlnm.cjs} +1 -1
- package/dist/CircularProgress-CZX5SfKt.cjs +28 -0
- package/dist/CircularProgress-CguDBnxV.js +215 -0
- package/dist/{components/buttons/IconButton/IconButton.es.js → IconButton-CJ1Nt-jf.js} +41 -46
- package/dist/IconButton-De7ZdW2q.cjs +2 -0
- package/dist/{InputBase-D8YZOKOt.js → InputBase-C_yPRkam.js} +109 -112
- package/dist/InputBase-Dvr5GnwD.cjs +4 -0
- package/dist/Tab-Bhm9hCrX.cjs +1 -0
- package/dist/{Tab-Dgd9jYEq.js → Tab-C4l6V01S.js} +9 -9
- package/dist/{Typography-Di0hlj32.js → Typography-CyFLZjnE.js} +99 -74
- package/dist/Typography-DwsN2Ttm.cjs +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +12 -11
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -0
- package/dist/components/{AnotherComponent/AnotherComponent.stories.d.ts → Dropzone/Dropzone.stories.d.ts} +1 -2
- package/dist/components/Dropzone/Dropzone.stories.es.js +17 -0
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +577 -7
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +4 -4
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.es.js +2 -2
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -0
- package/dist/components/buttons/IconButton.stories.d.ts +4 -0
- package/dist/components/buttons/IconButton.stories.es.js +27 -0
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +4 -4
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +8 -7
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +10 -9
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.d.ts +0 -1
- package/dist/components/buttons/index.es.js +6 -8
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.es.js +18 -24
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +10 -10
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -0
- package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +4 -0
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +16 -0
- package/dist/components/inputs/TextInput/TextInput.cjs.js +11 -11
- package/dist/components/inputs/TextInput/TextInput.es.js +1905 -1655
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -0
- package/dist/components/inputs/TextInput/TextInput.stories.d.ts +4 -0
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +17 -0
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.es.js +1 -1
- package/dist/components/lists/FileList/FileList.stories.cjs.js +1 -0
- package/dist/components/lists/FileList/FileList.stories.d.ts +4 -0
- package/dist/components/lists/FileList/FileList.stories.es.js +28 -0
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.es.js +18 -17
- package/dist/components/lists/TabList.stories.cjs.js +4 -0
- package/dist/components/lists/TabList.stories.d.ts +4 -0
- package/dist/components/lists/TabList.stories.es.js +1027 -0
- package/dist/{createSvgIcon-BivvPRyr.cjs → createSvgIcon-B6bZPuto.cjs} +1 -1
- package/dist/createSvgIcon-BX8WQ5r-.cjs +2 -0
- package/dist/{createSvgIcon-D4Mxh_r9.js → createSvgIcon-KaSN8JhZ.js} +7 -7
- package/dist/createSvgIcon-m_wsenOJ.js +84 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +18 -24
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{ownerWindow-BoRkeomM.js → ownerWindow-C7EH1lr6.js} +2 -2
- package/dist/{refType-dllUCpD8.cjs → refType-CHSN6ysS.cjs} +1 -1
- package/dist/{refType-hKctx4k0.js → refType-Hh9tfnoF.js} +1 -1
- package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useSlotProps-MoAYME1z.js +70 -0
- package/dist/useSlotProps-R4s13HHI.cjs +1 -0
- package/dist/{useTheme-C-LTLVMt.cjs → useTheme-BDPYLOoP.cjs} +1 -1
- package/dist/{useTheme-BZek68TX.js → useTheme-DJEDOopE.js} +1 -1
- package/dist/{useThemeProps-CHytz5pp.js → useThemeProps-Dg9Uoq7q.js} +656 -689
- package/dist/useThemeProps-jkB5q9ie.cjs +65 -0
- package/package.json +1 -1
- package/dist/Button-C5ROgtyW.js +0 -356
- package/dist/Button-wMPAZpnO.cjs +0 -1
- package/dist/DefaultButton-BD9W4fvr.cjs +0 -28
- package/dist/DefaultButton-BlGFPRC7.js +0 -439
- package/dist/Input-CGU1Xw4s.js +0 -322
- package/dist/Input-DHic6dYE.cjs +0 -1
- package/dist/InputBase-WBNJQn8V.cjs +0 -4
- package/dist/Tab-C2Tmr8Sv.cjs +0 -1
- package/dist/Typography-CO64FVmw.cjs +0 -1
- package/dist/components/AnotherComponent/AnotherComponent.cjs.js +0 -1
- package/dist/components/AnotherComponent/AnotherComponent.d.ts +0 -2
- package/dist/components/AnotherComponent/AnotherComponent.es.js +0 -15
- package/dist/components/AnotherComponent/AnotherComponent.stories.cjs.js +0 -1
- package/dist/components/AnotherComponent/AnotherComponent.stories.es.js +0 -22
- package/dist/components/AnotherComponent/index.cjs.js +0 -1
- package/dist/components/AnotherComponent/index.d.ts +0 -2
- package/dist/components/AnotherComponent/index.es.js +0 -4
- package/dist/components/BasicButtons/BasicButtons.cjs.js +0 -1
- package/dist/components/BasicButtons/BasicButtons.d.ts +0 -2
- package/dist/components/BasicButtons/BasicButtons.es.js +0 -189
- package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +0 -1
- package/dist/components/BasicButtons/BasicButtons.stories.d.ts +0 -5
- package/dist/components/BasicButtons/BasicButtons.stories.es.js +0 -22
- package/dist/components/BasicButtons/index.cjs.js +0 -1
- package/dist/components/BasicButtons/index.d.ts +0 -2
- package/dist/components/BasicButtons/index.es.js +0 -4
- package/dist/components/buttons/IconButton/IconButton.cjs.js +0 -2
- package/dist/components/buttons/IconButton/IconButton.d.ts +0 -5
- package/dist/components/buttons/IconButton/index.cjs.js +0 -1
- package/dist/components/buttons/IconButton/index.d.ts +0 -2
- package/dist/components/buttons/IconButton/index.es.js +0 -4
- package/dist/createSvgIcon-B7HVs3ZC.cjs +0 -2
- package/dist/createSvgIcon-D3HDfwCm.js +0 -143
- package/dist/extendSxProp-D5gpnasP.cjs +0 -1
- package/dist/extendSxProp-DCdWqtQk.js +0 -29
- package/dist/useThemeProps-C6ClLEqN.cjs +0 -65
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import { jsx as l, jsxs as D } from "react/jsx-runtime";
|
|
2
|
-
import * as v from "react";
|
|
3
|
-
import { m as F, P as e, n as w, a as k, o as b, p as f, q as E, k as _, t as G, _ as M, h as $, v as U, j as A, c as L, w as T, s as j, f as q } from "../../useThemeProps-CHytz5pp.js";
|
|
4
|
-
import { u as I } from "../../useTheme-BZek68TX.js";
|
|
5
|
-
import { e as W } from "../../extendSxProp-DCdWqtQk.js";
|
|
6
|
-
import { B as y } from "../../Button-C5ROgtyW.js";
|
|
7
|
-
const z = F(), H = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"], J = w(), K = z("div", {
|
|
8
|
-
name: "MuiStack",
|
|
9
|
-
slot: "Root",
|
|
10
|
-
overridesResolver: (o, r) => r.root
|
|
11
|
-
});
|
|
12
|
-
function Q(o) {
|
|
13
|
-
return U({
|
|
14
|
-
props: o,
|
|
15
|
-
name: "MuiStack",
|
|
16
|
-
defaultTheme: J
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
function X(o, r) {
|
|
20
|
-
const c = v.Children.toArray(o).filter(Boolean);
|
|
21
|
-
return c.reduce((a, i, t) => (a.push(i), t < c.length - 1 && a.push(/* @__PURE__ */ v.cloneElement(r, {
|
|
22
|
-
key: `separator-${t}`
|
|
23
|
-
})), a), []);
|
|
24
|
-
}
|
|
25
|
-
const Y = (o) => ({
|
|
26
|
-
row: "Left",
|
|
27
|
-
"row-reverse": "Right",
|
|
28
|
-
column: "Top",
|
|
29
|
-
"column-reverse": "Bottom"
|
|
30
|
-
})[o], Z = ({
|
|
31
|
-
ownerState: o,
|
|
32
|
-
theme: r
|
|
33
|
-
}) => {
|
|
34
|
-
let c = k({
|
|
35
|
-
display: "flex",
|
|
36
|
-
flexDirection: "column"
|
|
37
|
-
}, b({
|
|
38
|
-
theme: r
|
|
39
|
-
}, f({
|
|
40
|
-
values: o.direction,
|
|
41
|
-
breakpoints: r.breakpoints.values
|
|
42
|
-
}), (a) => ({
|
|
43
|
-
flexDirection: a
|
|
44
|
-
})));
|
|
45
|
-
if (o.spacing) {
|
|
46
|
-
const a = E(r), i = Object.keys(r.breakpoints.values).reduce((n, s) => ((typeof o.spacing == "object" && o.spacing[s] != null || typeof o.direction == "object" && o.direction[s] != null) && (n[s] = !0), n), {}), t = f({
|
|
47
|
-
values: o.direction,
|
|
48
|
-
base: i
|
|
49
|
-
}), u = f({
|
|
50
|
-
values: o.spacing,
|
|
51
|
-
base: i
|
|
52
|
-
});
|
|
53
|
-
typeof t == "object" && Object.keys(t).forEach((n, s, p) => {
|
|
54
|
-
if (!t[n]) {
|
|
55
|
-
const m = s > 0 ? t[p[s - 1]] : "column";
|
|
56
|
-
t[n] = m;
|
|
57
|
-
}
|
|
58
|
-
}), c = _(c, b({
|
|
59
|
-
theme: r
|
|
60
|
-
}, u, (n, s) => o.useFlexGap ? {
|
|
61
|
-
gap: T(a, n)
|
|
62
|
-
} : {
|
|
63
|
-
// The useFlexGap={false} implement relies on each child to give up control of the margin.
|
|
64
|
-
// We need to reset the margin to avoid double spacing.
|
|
65
|
-
"& > :not(style):not(style)": {
|
|
66
|
-
margin: 0
|
|
67
|
-
},
|
|
68
|
-
"& > :not(style) ~ :not(style)": {
|
|
69
|
-
[`margin${Y(s ? t[s] : o.direction)}`]: T(a, n)
|
|
70
|
-
}
|
|
71
|
-
}));
|
|
72
|
-
}
|
|
73
|
-
return c = G(r.breakpoints, c), c;
|
|
74
|
-
};
|
|
75
|
-
function ee(o = {}) {
|
|
76
|
-
const {
|
|
77
|
-
// This will allow adding custom styled fn (for example for custom sx style function)
|
|
78
|
-
createStyledComponent: r = K,
|
|
79
|
-
useThemeProps: c = Q,
|
|
80
|
-
componentName: a = "MuiStack"
|
|
81
|
-
} = o, i = () => A({
|
|
82
|
-
root: ["root"]
|
|
83
|
-
}, (n) => L(a, n), {}), t = r(Z), u = /* @__PURE__ */ v.forwardRef(function(n, s) {
|
|
84
|
-
const p = c(n), d = W(p), {
|
|
85
|
-
component: m = "div",
|
|
86
|
-
direction: C = "column",
|
|
87
|
-
spacing: P = 0,
|
|
88
|
-
divider: h,
|
|
89
|
-
children: O,
|
|
90
|
-
className: S,
|
|
91
|
-
useFlexGap: B = !1
|
|
92
|
-
} = d, V = M(d, H), N = {
|
|
93
|
-
direction: C,
|
|
94
|
-
spacing: P,
|
|
95
|
-
useFlexGap: B
|
|
96
|
-
}, R = i();
|
|
97
|
-
return /* @__PURE__ */ l(t, k({
|
|
98
|
-
as: m,
|
|
99
|
-
ownerState: N,
|
|
100
|
-
ref: s,
|
|
101
|
-
className: $(R.root, S)
|
|
102
|
-
}, V, {
|
|
103
|
-
children: h ? X(O, h) : O
|
|
104
|
-
}));
|
|
105
|
-
});
|
|
106
|
-
return process.env.NODE_ENV !== "production" && (u.propTypes = {
|
|
107
|
-
children: e.node,
|
|
108
|
-
direction: e.oneOfType([e.oneOf(["column-reverse", "column", "row-reverse", "row"]), e.arrayOf(e.oneOf(["column-reverse", "column", "row-reverse", "row"])), e.object]),
|
|
109
|
-
divider: e.node,
|
|
110
|
-
spacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
|
|
111
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
112
|
-
}), u;
|
|
113
|
-
}
|
|
114
|
-
const x = ee({
|
|
115
|
-
createStyledComponent: j("div", {
|
|
116
|
-
name: "MuiStack",
|
|
117
|
-
slot: "Root",
|
|
118
|
-
overridesResolver: (o, r) => r.root
|
|
119
|
-
}),
|
|
120
|
-
useThemeProps: (o) => q({
|
|
121
|
-
props: o,
|
|
122
|
-
name: "MuiStack"
|
|
123
|
-
})
|
|
124
|
-
});
|
|
125
|
-
process.env.NODE_ENV !== "production" && (x.propTypes = {
|
|
126
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
127
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
128
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
129
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
130
|
-
/**
|
|
131
|
-
* The content of the component.
|
|
132
|
-
*/
|
|
133
|
-
children: e.node,
|
|
134
|
-
/**
|
|
135
|
-
* The component used for the root node.
|
|
136
|
-
* Either a string to use a HTML element or a component.
|
|
137
|
-
*/
|
|
138
|
-
component: e.elementType,
|
|
139
|
-
/**
|
|
140
|
-
* Defines the `flex-direction` style property.
|
|
141
|
-
* It is applied for all screen sizes.
|
|
142
|
-
* @default 'column'
|
|
143
|
-
*/
|
|
144
|
-
direction: e.oneOfType([e.oneOf(["column-reverse", "column", "row-reverse", "row"]), e.arrayOf(e.oneOf(["column-reverse", "column", "row-reverse", "row"])), e.object]),
|
|
145
|
-
/**
|
|
146
|
-
* Add an element between each child.
|
|
147
|
-
*/
|
|
148
|
-
divider: e.node,
|
|
149
|
-
/**
|
|
150
|
-
* Defines the space between immediate children.
|
|
151
|
-
* @default 0
|
|
152
|
-
*/
|
|
153
|
-
spacing: e.oneOfType([e.arrayOf(e.oneOfType([e.number, e.string])), e.number, e.object, e.string]),
|
|
154
|
-
/**
|
|
155
|
-
* The system prop, which allows defining system overrides as well as additional CSS styles.
|
|
156
|
-
*/
|
|
157
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
158
|
-
/**
|
|
159
|
-
* If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.
|
|
160
|
-
*
|
|
161
|
-
* While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),
|
|
162
|
-
* it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.
|
|
163
|
-
*
|
|
164
|
-
* To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.
|
|
165
|
-
* @default false
|
|
166
|
-
*/
|
|
167
|
-
useFlexGap: e.bool
|
|
168
|
-
});
|
|
169
|
-
const oe = x, re = j("button")(({ theme: o }) => ({
|
|
170
|
-
backgroundColor: o.palette.primary.main
|
|
171
|
-
})), ie = () => {
|
|
172
|
-
const o = I();
|
|
173
|
-
return /* @__PURE__ */ D(oe, { spacing: 2, direction: "row", children: [
|
|
174
|
-
/* @__PURE__ */ l(re, { children: "Styled" }),
|
|
175
|
-
/* @__PURE__ */ l(
|
|
176
|
-
y,
|
|
177
|
-
{
|
|
178
|
-
variant: "text",
|
|
179
|
-
style: { backgroundColor: o.palette.primary.main },
|
|
180
|
-
children: "Text"
|
|
181
|
-
}
|
|
182
|
-
),
|
|
183
|
-
/* @__PURE__ */ l(y, { variant: "contained", children: "Contained" }),
|
|
184
|
-
/* @__PURE__ */ l(y, { variant: "outlined", children: "Outlined" })
|
|
185
|
-
] });
|
|
186
|
-
};
|
|
187
|
-
export {
|
|
188
|
-
ie as default
|
|
189
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),e=require("./BasicButtons.cjs.js"),a={title:"Components/BasicButtons",component:e,argTypes:{}},t=n=>s.jsx(e,{...n}),o=t.bind({});o.args={label:"Primary Button"};const r=t.bind({});r.args={label:"Secondary Button",secondary:!0};exports.Primary=o;exports.Secondary=r;exports.default=a;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import t from "./BasicButtons.es.js";
|
|
3
|
-
const i = {
|
|
4
|
-
title: "Components/BasicButtons",
|
|
5
|
-
component: t,
|
|
6
|
-
argTypes: {
|
|
7
|
-
// Définissez ici vos paramètres d'histoires spécifiques aux arguments (args).
|
|
8
|
-
}
|
|
9
|
-
}, o = (n) => /* @__PURE__ */ r(t, { ...n }), s = o.bind({});
|
|
10
|
-
s.args = {
|
|
11
|
-
label: "Primary Button"
|
|
12
|
-
};
|
|
13
|
-
const a = o.bind({});
|
|
14
|
-
a.args = {
|
|
15
|
-
label: "Secondary Button",
|
|
16
|
-
secondary: !0
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
s as Primary,
|
|
20
|
-
a as Secondary,
|
|
21
|
-
i as default
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./BasicButtons.cjs.js");exports.BasicButtons=t;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("react/jsx-runtime"),v=require("react"),e=require("../../../useThemeProps-C6ClLEqN.cjs"),P=require("../../../ButtonBase-XPViWbp_.cjs"),z=require("../../../refType-dllUCpD8.cjs");function m(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 l=m(v);function h(o){return e.generateUtilityClass("MuiIconButton",o)}const R=e.generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),O=["edge","children","className","color","disabled","disableFocusRipple","size"],x=o=>{const{classes:r,disabled:t,color:s,edge:n,size:a}=o,i={root:["root",t&&"disabled",s!=="default"&&`color${e.capitalize(s)}`,n&&`edge${e.capitalize(n)}`,`size${e.capitalize(a)}`]};return e.composeClasses(i,h,r)},B=e.styled(P.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)},{[`&.${R.disabled}`]:{backgroundColor:"transparent",color:(o.vars||o).palette.action.disabled}})}),y=l.forwardRef(function(r,t){const s=e.useThemeProps({props:r,name:"MuiIconButton"}),{edge:n=!1,children:a,className:i,color:g="default",disabled:c=!1,disableFocusRipple:p=!1,size:f="medium"}=s,b=e._objectWithoutPropertiesLoose(s,O),d=e._extends({},s,{edge:n,color:g,disabled:c,disableFocusRipple:p,size:f}),T=x(d);return u.jsx(B,e._extends({className:e.clsx(T.root,i),centerRipple:!0,focusRipple:!p,disabled:c,ref:t,ownerState:d},b,{children:a}))});process.env.NODE_ENV!=="production"&&(y.propTypes={children:z.chainPropTypes(e.PropTypes.node,o=>l.Children.toArray(o.children).some(t=>l.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 C=y,I=e.styled(C)(({theme:o})=>({color:o.palette.secondary.main,"&:hover":{color:o.palette.primary.main}})),$=o=>u.jsx(I,{...o});module.exports=$;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./IconButton.cjs.js");exports.IconButton=t;
|
|
@@ -1,2 +0,0 @@
|
|
|
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,143 +0,0 @@
|
|
|
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-CHytz5pp.js";
|
|
2
|
-
import * as D from "react";
|
|
3
|
-
import { jsx as w } from "react/jsx-runtime";
|
|
4
|
-
import { e as R } from "./extendSxProp-DCdWqtQk.js";
|
|
5
|
-
import { c as M } from "./createSvgIcon-D4Mxh_r9.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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { _ as a, a as i, d as c, i as f } from "./useThemeProps-CHytz5pp.js";
|
|
2
|
-
const x = ["sx"], P = (t) => {
|
|
3
|
-
var s, o;
|
|
4
|
-
const n = {
|
|
5
|
-
systemProps: {},
|
|
6
|
-
otherProps: {}
|
|
7
|
-
}, r = (s = t == null || (o = t.theme) == null ? void 0 : o.unstable_sxConfig) != null ? s : c;
|
|
8
|
-
return Object.keys(t).forEach((e) => {
|
|
9
|
-
r[e] ? n.systemProps[e] = t[e] : n.otherProps[e] = t[e];
|
|
10
|
-
}), n;
|
|
11
|
-
};
|
|
12
|
-
function m(t) {
|
|
13
|
-
const {
|
|
14
|
-
sx: s
|
|
15
|
-
} = t, o = a(t, x), {
|
|
16
|
-
systemProps: n,
|
|
17
|
-
otherProps: r
|
|
18
|
-
} = P(o);
|
|
19
|
-
let e;
|
|
20
|
-
return Array.isArray(s) ? e = [n, ...s] : typeof s == "function" ? e = (...u) => {
|
|
21
|
-
const l = s(...u);
|
|
22
|
-
return f(l) ? i({}, n, l) : n;
|
|
23
|
-
} : e = i({}, n, s), i({}, r, {
|
|
24
|
-
sx: e
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
m as e
|
|
29
|
-
};
|