@cgi-learning-hub/ui 0.0.1-dev.1708959157 → 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-C5ROgtyW.js → Button-CmBnwwn3.js} +2 -2
- package/dist/{ButtonBase-C5_-KI-D.js → ButtonBase-Bw43M3TO.js} +2 -2
- package/dist/CircularProgress-BCdQaPFF.cjs +28 -0
- package/dist/CircularProgress-DRE9BLTL.js +215 -0
- package/dist/{Input-CGU1Xw4s.js → Input-Dk-cN0Fb.js} +3 -3
- package/dist/{InputBase-D8YZOKOt.js → InputBase-BbXy6VDy.js} +2 -2
- package/dist/{Tab-Dgd9jYEq.js → Tab-CWxCqAvH.js} +3 -3
- package/dist/{Typography-Di0hlj32.js → Typography-B1bdo7yt.js} +2 -2
- package/dist/components/AnotherComponent/AnotherComponent.es.js +3 -3
- package/dist/components/BasicButtons/BasicButtons.es.js +4 -4
- package/dist/components/Dropzone/Dropzone.es.js +3 -3
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +229 -7
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +1 -1
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.es.js +2 -2
- 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.es.js +1 -1
- 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.es.js +1 -1
- 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.es.js +15 -17
- package/dist/components/inputs/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/inputs/TextInput/TextInput.es.js +6 -6
- package/dist/components/lists/FileList/FileList.es.js +1 -1
- package/dist/components/lists/FileList/FileListItem.cjs.js +2 -1
- package/dist/components/lists/FileList/FileListItem.es.js +201 -25
- package/dist/{createSvgIcon-D3HDfwCm.js → createSvgIcon-9NfUaq9H.js} +3 -3
- package/dist/{createSvgIcon-D4Mxh_r9.js → createSvgIcon-DLZM3vHe.js} +1 -1
- package/dist/{extendSxProp-DCdWqtQk.js → extendSxProp-CVD6j4mA.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +15 -17
- package/dist/{refType-hKctx4k0.js → refType-CMQbzE37.js} +1 -1
- package/dist/{useTheme-BZek68TX.js → useTheme-BSwuVDD3.js} +1 -1
- package/dist/{useThemeProps-CHytz5pp.js → useThemeProps-kb_vU-1P.js} +2 -2
- package/package.json +1 -1
- package/dist/DefaultButton-BD9W4fvr.cjs +0 -28
- package/dist/DefaultButton-BlGFPRC7.js +0 -439
- 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/IconButton.es.js +0 -187
- 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
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
-
import * as d from "react";
|
|
3
|
-
import { g as B, c as C, s as v, e as s, a as n, l as g, f as I, _ as O, h as T, P as r, j as $ } from "../../../useThemeProps-CHytz5pp.js";
|
|
4
|
-
import { B as x } from "../../../ButtonBase-C5_-KI-D.js";
|
|
5
|
-
import { c as k } from "../../../refType-hKctx4k0.js";
|
|
6
|
-
function j(o) {
|
|
7
|
-
return C("MuiIconButton", o);
|
|
8
|
-
}
|
|
9
|
-
const M = B("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), P = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], E = (o) => {
|
|
10
|
-
const {
|
|
11
|
-
classes: e,
|
|
12
|
-
disabled: t,
|
|
13
|
-
color: a,
|
|
14
|
-
edge: i,
|
|
15
|
-
size: l
|
|
16
|
-
} = o, c = {
|
|
17
|
-
root: ["root", t && "disabled", a !== "default" && `color${s(a)}`, i && `edge${s(i)}`, `size${s(l)}`]
|
|
18
|
-
};
|
|
19
|
-
return $(c, j, e);
|
|
20
|
-
}, N = v(x, {
|
|
21
|
-
name: "MuiIconButton",
|
|
22
|
-
slot: "Root",
|
|
23
|
-
overridesResolver: (o, e) => {
|
|
24
|
-
const {
|
|
25
|
-
ownerState: t
|
|
26
|
-
} = o;
|
|
27
|
-
return [e.root, t.color !== "default" && e[`color${s(t.color)}`], t.edge && e[`edge${s(t.edge)}`], e[`size${s(t.size)}`]];
|
|
28
|
-
}
|
|
29
|
-
})(({
|
|
30
|
-
theme: o,
|
|
31
|
-
ownerState: e
|
|
32
|
-
}) => n({
|
|
33
|
-
textAlign: "center",
|
|
34
|
-
flex: "0 0 auto",
|
|
35
|
-
fontSize: o.typography.pxToRem(24),
|
|
36
|
-
padding: 8,
|
|
37
|
-
borderRadius: "50%",
|
|
38
|
-
overflow: "visible",
|
|
39
|
-
// Explicitly set the default value to solve a bug on IE11.
|
|
40
|
-
color: (o.vars || o).palette.action.active,
|
|
41
|
-
transition: o.transitions.create("background-color", {
|
|
42
|
-
duration: o.transitions.duration.shortest
|
|
43
|
-
})
|
|
44
|
-
}, !e.disableRipple && {
|
|
45
|
-
"&:hover": {
|
|
46
|
-
backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : g(o.palette.action.active, o.palette.action.hoverOpacity),
|
|
47
|
-
// Reset on touch devices, it doesn't add specificity
|
|
48
|
-
"@media (hover: none)": {
|
|
49
|
-
backgroundColor: "transparent"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}, e.edge === "start" && {
|
|
53
|
-
marginLeft: e.size === "small" ? -3 : -12
|
|
54
|
-
}, e.edge === "end" && {
|
|
55
|
-
marginRight: e.size === "small" ? -3 : -12
|
|
56
|
-
}), ({
|
|
57
|
-
theme: o,
|
|
58
|
-
ownerState: e
|
|
59
|
-
}) => {
|
|
60
|
-
var t;
|
|
61
|
-
const a = (t = (o.vars || o).palette) == null ? void 0 : t[e.color];
|
|
62
|
-
return n({}, e.color === "inherit" && {
|
|
63
|
-
color: "inherit"
|
|
64
|
-
}, e.color !== "inherit" && e.color !== "default" && n({
|
|
65
|
-
color: a == null ? void 0 : a.main
|
|
66
|
-
}, !e.disableRipple && {
|
|
67
|
-
"&:hover": n({}, a && {
|
|
68
|
-
backgroundColor: o.vars ? `rgba(${a.mainChannel} / ${o.vars.palette.action.hoverOpacity})` : g(a.main, o.palette.action.hoverOpacity)
|
|
69
|
-
}, {
|
|
70
|
-
// Reset on touch devices, it doesn't add specificity
|
|
71
|
-
"@media (hover: none)": {
|
|
72
|
-
backgroundColor: "transparent"
|
|
73
|
-
}
|
|
74
|
-
})
|
|
75
|
-
}), e.size === "small" && {
|
|
76
|
-
padding: 5,
|
|
77
|
-
fontSize: o.typography.pxToRem(18)
|
|
78
|
-
}, e.size === "large" && {
|
|
79
|
-
padding: 12,
|
|
80
|
-
fontSize: o.typography.pxToRem(28)
|
|
81
|
-
}, {
|
|
82
|
-
[`&.${M.disabled}`]: {
|
|
83
|
-
backgroundColor: "transparent",
|
|
84
|
-
color: (o.vars || o).palette.action.disabled
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
}), y = /* @__PURE__ */ d.forwardRef(function(e, t) {
|
|
88
|
-
const a = I({
|
|
89
|
-
props: e,
|
|
90
|
-
name: "MuiIconButton"
|
|
91
|
-
}), {
|
|
92
|
-
edge: i = !1,
|
|
93
|
-
children: l,
|
|
94
|
-
className: c,
|
|
95
|
-
color: m = "default",
|
|
96
|
-
disabled: p = !1,
|
|
97
|
-
disableFocusRipple: u = !1,
|
|
98
|
-
size: h = "medium"
|
|
99
|
-
} = a, z = O(a, P), f = n({}, a, {
|
|
100
|
-
edge: i,
|
|
101
|
-
color: m,
|
|
102
|
-
disabled: p,
|
|
103
|
-
disableFocusRipple: u,
|
|
104
|
-
size: h
|
|
105
|
-
}), R = E(f);
|
|
106
|
-
return /* @__PURE__ */ b(N, n({
|
|
107
|
-
className: T(R.root, c),
|
|
108
|
-
centerRipple: !0,
|
|
109
|
-
focusRipple: !u,
|
|
110
|
-
disabled: p,
|
|
111
|
-
ref: t,
|
|
112
|
-
ownerState: f
|
|
113
|
-
}, z, {
|
|
114
|
-
children: l
|
|
115
|
-
}));
|
|
116
|
-
});
|
|
117
|
-
process.env.NODE_ENV !== "production" && (y.propTypes = {
|
|
118
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
119
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
120
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
121
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
122
|
-
/**
|
|
123
|
-
* The icon to display.
|
|
124
|
-
*/
|
|
125
|
-
children: k(r.node, (o) => d.Children.toArray(o.children).some((t) => /* @__PURE__ */ d.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(`
|
|
126
|
-
`)) : null),
|
|
127
|
-
/**
|
|
128
|
-
* Override or extend the styles applied to the component.
|
|
129
|
-
*/
|
|
130
|
-
classes: r.object,
|
|
131
|
-
/**
|
|
132
|
-
* @ignore
|
|
133
|
-
*/
|
|
134
|
-
className: r.string,
|
|
135
|
-
/**
|
|
136
|
-
* The color of the component.
|
|
137
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
138
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
139
|
-
* @default 'default'
|
|
140
|
-
*/
|
|
141
|
-
color: r.oneOfType([r.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
|
|
142
|
-
/**
|
|
143
|
-
* If `true`, the component is disabled.
|
|
144
|
-
* @default false
|
|
145
|
-
*/
|
|
146
|
-
disabled: r.bool,
|
|
147
|
-
/**
|
|
148
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
149
|
-
* @default false
|
|
150
|
-
*/
|
|
151
|
-
disableFocusRipple: r.bool,
|
|
152
|
-
/**
|
|
153
|
-
* If `true`, the ripple effect is disabled.
|
|
154
|
-
*
|
|
155
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
156
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
157
|
-
* @default false
|
|
158
|
-
*/
|
|
159
|
-
disableRipple: r.bool,
|
|
160
|
-
/**
|
|
161
|
-
* If given, uses a negative margin to counteract the padding on one
|
|
162
|
-
* side (this is often helpful for aligning the left or right
|
|
163
|
-
* side of the icon with content above or below, without ruining the border
|
|
164
|
-
* size and shape).
|
|
165
|
-
* @default false
|
|
166
|
-
*/
|
|
167
|
-
edge: r.oneOf(["end", "start", !1]),
|
|
168
|
-
/**
|
|
169
|
-
* The size of the component.
|
|
170
|
-
* `small` is equivalent to the dense button styling.
|
|
171
|
-
* @default 'medium'
|
|
172
|
-
*/
|
|
173
|
-
size: r.oneOfType([r.oneOf(["small", "medium", "large"]), r.string]),
|
|
174
|
-
/**
|
|
175
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
176
|
-
*/
|
|
177
|
-
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
|
|
178
|
-
});
|
|
179
|
-
const _ = y, U = v(_)(({ theme: o }) => ({
|
|
180
|
-
color: o.palette.secondary.main,
|
|
181
|
-
"&:hover": {
|
|
182
|
-
color: o.palette.primary.main
|
|
183
|
-
}
|
|
184
|
-
})), W = (o) => /* @__PURE__ */ b(U, { ...o });
|
|
185
|
-
export {
|
|
186
|
-
W as default
|
|
187
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./IconButton.cjs.js");exports.IconButton=t;
|