@cgi-learning-hub/ui 0.0.1-dev.1713359037 → 0.0.1-dev.1715078279
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-DL1-mhd_.cjs +1 -0
- package/dist/{Box-CcD_sRqe.js → Box-Mup7NS_A.js} +24 -26
- package/dist/{ButtonBase-BBqNg9BC.js → ButtonBase-CjZVRZ1j.js} +102 -107
- package/dist/ButtonBase-h89TFQ74.cjs +75 -0
- package/dist/{CircularProgress-G9G_loET.js → CircularProgress-B5dLec9p.js} +4 -4
- package/dist/{CircularProgress-DVnd6kxt.cjs → CircularProgress-DvSP1TlK.cjs} +1 -1
- package/dist/{DefaultButton-DDeufcNs.js → DefaultButton-Bm_9J15r.js} +94 -95
- package/dist/DefaultButton-DpAQ3D3A.cjs +1 -0
- package/dist/{IconButton-B6XIqj_T.js → IconButton-BTwUbULL.js} +28 -29
- package/dist/IconButton-DwyJkFK6.cjs +2 -0
- package/dist/{InputBase-CdKFPwS3.js → InputBase-DQZzB50R.js} +280 -320
- package/dist/InputBase-pgeQJ7f1.cjs +3 -0
- package/dist/{LocalizationProvider-CNYbKILJ.cjs → LocalizationProvider-DESNnS1V.cjs} +1 -1
- package/dist/{LocalizationProvider-0zrjdh3x.js → LocalizationProvider-DFtKYTy5.js} +2 -2
- package/dist/SearchInput-CwKQj1FS.cjs +1 -0
- package/dist/{SearchInput-Q5BP0X0K.js → SearchInput-DFha51RP.js} +25 -25
- package/dist/Tabs-BnINEF7f.cjs +4 -0
- package/dist/{Tabs-CDBEadDu.js → Tabs-LRPQPGjl.js} +264 -265
- package/dist/TextInput-C6fc3CHh.cjs +12 -0
- package/dist/{TextInput-BNe_BIm9.js → TextInput-UE9eu-Sh.js} +1388 -1397
- package/dist/{TimePicker-CLYqSUwA.js → TimePicker-DgWZLyZU.js} +4848 -4664
- package/dist/TimePicker-DqFt1DP_.cjs +73 -0
- package/dist/Typography-BAJIrofJ.cjs +1 -0
- package/dist/{Typography-CkEznQ8f.js → Typography-BWCcreVc.js} +74 -100
- package/dist/assets/index.css +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.d.ts +3 -2
- package/dist/components/Dropzone/Dropzone.es.js +9 -9
- package/dist/components/Dropzone/Dropzone.stories.d.ts +2 -1
- package/dist/components/Dropzone/index.d.ts +2 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +2 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -0
- package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.d.ts +2 -1
- package/dist/components/LoaderBackdrop/index.d.ts +2 -2
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.d.ts +2 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +2 -2
- package/dist/components/LocalizationProvider/index.cjs.js +1 -1
- package/dist/components/LocalizationProvider/index.d.ts +2 -2
- package/dist/components/LocalizationProvider/index.es.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.d.ts +3 -2
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.d.ts +2 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +8 -8
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/index.d.ts +2 -2
- package/dist/components/buttons/DefaultButton/index.es.js +1 -1
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
- package/dist/components/buttons/IconButton.stories.d.ts +2 -1
- package/dist/components/buttons/IconButton.stories.es.js +10 -9
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.d.ts +2 -2
- 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.d.ts +2 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/index.d.ts +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.d.ts +2 -2
- 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.d.ts +2 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/index.d.ts +2 -2
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.d.ts +3 -3
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/feedback/Alert/Alert.d.ts +2 -1
- package/dist/components/feedback/Alert/Alert.stories.d.ts +2 -1
- package/dist/components/feedback/Alert/index.d.ts +2 -2
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +110 -110
- package/dist/components/index.es.js +11 -11
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.d.ts +2 -1
- package/dist/components/inputs/PasswordInput/PasswordInput.es.js +7 -6
- package/dist/components/inputs/PasswordInput/PasswordInput.stories.d.ts +2 -1
- package/dist/components/inputs/PasswordInput/index.d.ts +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.d.ts +2 -2
- package/dist/components/inputs/SearchInput/SearchInput.es.js +3 -3
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +2 -1
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
- package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/index.d.ts +2 -2
- package/dist/components/inputs/SearchInput/index.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.d.ts +2 -2
- package/dist/components/inputs/TextInput/TextInput.es.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
- package/dist/components/inputs/TextInput/TextInput.stories.d.ts +2 -1
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
- package/dist/components/inputs/TextInput/index.cjs.js +1 -1
- package/dist/components/inputs/TextInput/index.d.ts +2 -2
- package/dist/components/inputs/TextInput/index.es.js +1 -1
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.d.ts +3 -3
- package/dist/components/inputs/index.es.js +2 -2
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.d.ts +2 -1
- package/dist/components/lists/FileList/FileList.es.js +1 -1
- package/dist/components/lists/FileList/FileList.stories.d.ts +2 -1
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.d.ts +2 -1
- package/dist/components/lists/FileList/FileListItem.es.js +11 -10
- package/dist/components/lists/FileList/index.d.ts +4 -4
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.d.ts +2 -1
- package/dist/components/lists/TabList.stories.es.js +48 -49
- package/dist/components/lists/index.d.ts +1 -1
- package/dist/createSvgIcon-Bmh1dZN3.cjs +2 -0
- package/dist/createSvgIcon-BuZnNhW1.js +74 -0
- package/dist/{createSvgIcon-10LjrjuM.cjs → createSvgIcon-Ch5OwvT5.cjs} +1 -1
- package/dist/{createSvgIcon-DfXrmzRs.js → createSvgIcon-CwlWc9q-.js} +3 -3
- package/dist/{fr-HqFYdKZp.js → fr-1JMu1aWG.js} +1 -1
- package/dist/{fr-BNYi5x0Z.cjs → fr-BTDmq9ek.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +184 -184
- package/dist/{refType-BklAUjsY.js → refType-BatLLQAf.js} +7 -7
- package/dist/{refType-B-3PavG_.cjs → refType-BbhHflrD.cjs} +1 -1
- package/dist/styled-BBsrnZJ1.js +1218 -0
- package/dist/styled-CJ2HJ-9N.cjs +26 -0
- package/dist/useSlotProps-Ds0ykcZp.js +87 -0
- package/dist/useSlotProps-DykCCTRs.cjs +1 -0
- package/dist/{useThemeProps-DDcolYEZ.js → useThemeProps-C59ZmJTM.js} +1034 -926
- package/dist/useThemeProps-C5iFxIYI.cjs +42 -0
- package/package.json +16 -16
- package/dist/Box-C0uoTW0F.cjs +0 -1
- package/dist/ButtonBase-C_YtHw1h.cjs +0 -75
- package/dist/DefaultButton-DlTnxizc.cjs +0 -1
- package/dist/IconButton-Cz-zGz0v.cjs +0 -2
- package/dist/InputBase-DCjJT6Ht.cjs +0 -4
- package/dist/SearchInput-sybrE3fq.cjs +0 -1
- package/dist/Tabs-DX6Gm63O.cjs +0 -4
- package/dist/TextInput-Bla-t0jF.cjs +0 -12
- package/dist/TimePicker-EGYtgZTn.cjs +0 -71
- package/dist/Typography-B7jZzwxf.cjs +0 -1
- package/dist/createSvgIcon-Cy5_B3av.cjs +0 -2
- package/dist/createSvgIcon-MpAknZJY.js +0 -84
- package/dist/styled-CCfndrS2.js +0 -424
- package/dist/styled-jkrYOquU.cjs +0 -24
- package/dist/useSlotProps-Br7yUp1t.js +0 -78
- package/dist/useSlotProps-I3uiiCEn.cjs +0 -1
- package/dist/useThemeProps-BYFHMDRd.cjs +0 -42
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { g as
|
|
1
|
+
import { g as h, c as n, _ as t, a as f, u as z, b as R, P as r } from "./useThemeProps-C59ZmJTM.js";
|
|
2
2
|
import * as d from "react";
|
|
3
|
-
import { g as
|
|
3
|
+
import { g as C, s as B, c as I, a as O } from "./styled-BBsrnZJ1.js";
|
|
4
4
|
import { jsx as T } from "react/jsx-runtime";
|
|
5
|
-
import { B as
|
|
6
|
-
import { c as
|
|
7
|
-
function
|
|
8
|
-
return
|
|
5
|
+
import { B as $ } from "./ButtonBase-CjZVRZ1j.js";
|
|
6
|
+
import { c as x } from "./refType-BatLLQAf.js";
|
|
7
|
+
function k(o) {
|
|
8
|
+
return h("MuiIconButton", o);
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const P = C("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), _ = P, j = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], E = (o) => {
|
|
11
11
|
const {
|
|
12
12
|
classes: e,
|
|
13
13
|
disabled: s,
|
|
@@ -17,8 +17,8 @@ const j = B("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
17
17
|
} = o, c = {
|
|
18
18
|
root: ["root", s && "disabled", a !== "default" && `color${n(a)}`, i && `edge${n(i)}`, `size${n(l)}`]
|
|
19
19
|
};
|
|
20
|
-
return
|
|
21
|
-
},
|
|
20
|
+
return O(c, k, e);
|
|
21
|
+
}, M = B($, {
|
|
22
22
|
name: "MuiIconButton",
|
|
23
23
|
slot: "Root",
|
|
24
24
|
overridesResolver: (o, e) => {
|
|
@@ -80,42 +80,42 @@ const j = B("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary"
|
|
|
80
80
|
padding: 12,
|
|
81
81
|
fontSize: o.typography.pxToRem(28)
|
|
82
82
|
}, {
|
|
83
|
-
[`&.${
|
|
83
|
+
[`&.${_.disabled}`]: {
|
|
84
84
|
backgroundColor: "transparent",
|
|
85
85
|
color: (o.vars || o).palette.action.disabled
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
|
-
}),
|
|
89
|
-
const a =
|
|
88
|
+
}), N = /* @__PURE__ */ d.forwardRef(function(e, s) {
|
|
89
|
+
const a = z({
|
|
90
90
|
props: e,
|
|
91
91
|
name: "MuiIconButton"
|
|
92
92
|
}), {
|
|
93
93
|
edge: i = !1,
|
|
94
94
|
children: l,
|
|
95
95
|
className: c,
|
|
96
|
-
color:
|
|
96
|
+
color: b = "default",
|
|
97
97
|
disabled: p = !1,
|
|
98
98
|
disableFocusRipple: u = !1,
|
|
99
|
-
size:
|
|
100
|
-
} = a,
|
|
99
|
+
size: v = "medium"
|
|
100
|
+
} = a, m = R(a, j), g = t({}, a, {
|
|
101
101
|
edge: i,
|
|
102
|
-
color:
|
|
102
|
+
color: b,
|
|
103
103
|
disabled: p,
|
|
104
104
|
disableFocusRipple: u,
|
|
105
|
-
size:
|
|
106
|
-
}),
|
|
107
|
-
return /* @__PURE__ */ T(
|
|
108
|
-
className:
|
|
105
|
+
size: v
|
|
106
|
+
}), y = E(g);
|
|
107
|
+
return /* @__PURE__ */ T(M, t({
|
|
108
|
+
className: I(y.root, c),
|
|
109
109
|
centerRipple: !0,
|
|
110
110
|
focusRipple: !u,
|
|
111
111
|
disabled: p,
|
|
112
|
-
ref: s
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
ref: s
|
|
113
|
+
}, m, {
|
|
114
|
+
ownerState: g,
|
|
115
115
|
children: l
|
|
116
116
|
}));
|
|
117
117
|
});
|
|
118
|
-
process.env.NODE_ENV !== "production" && (
|
|
118
|
+
process.env.NODE_ENV !== "production" && (N.propTypes = {
|
|
119
119
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
120
120
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
121
121
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -123,7 +123,7 @@ process.env.NODE_ENV !== "production" && (b.propTypes = {
|
|
|
123
123
|
/**
|
|
124
124
|
* The icon to display.
|
|
125
125
|
*/
|
|
126
|
-
children:
|
|
126
|
+
children: x(r.node, (o) => d.Children.toArray(o.children).some((s) => /* @__PURE__ */ d.isValidElement(s) && s.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(`
|
|
127
127
|
`)) : null),
|
|
128
128
|
/**
|
|
129
129
|
* Override or extend the styles applied to the component.
|
|
@@ -177,9 +177,8 @@ process.env.NODE_ENV !== "production" && (b.propTypes = {
|
|
|
177
177
|
*/
|
|
178
178
|
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
|
|
179
179
|
});
|
|
180
|
-
const W = b;
|
|
181
180
|
export {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
181
|
+
N as I,
|
|
182
|
+
k as g,
|
|
183
|
+
_ as i
|
|
185
184
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("./useThemeProps-C5iFxIYI.cjs"),z=require("react"),a=require("./styled-CJ2HJ-9N.cjs"),h=require("react/jsx-runtime"),m=require("./ButtonBase-h89TFQ74.cjs"),C=require("./refType-BbhHflrD.cjs");function R(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 c=R(z);function y(o){return e.generateUtilityClass("MuiIconButton",o)}const B=a.generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),g=B,O=["edge","children","className","color","disabled","disableFocusRipple","size"],x=o=>{const{classes:r,disabled:t,color:s,edge:n,size:i}=o,l={root:["root",t&&"disabled",s!=="default"&&`color${e.capitalize(s)}`,n&&`edge${e.capitalize(n)}`,`size${e.capitalize(i)}`]};return a.composeClasses(l,y,r)},_=a.styled(m.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_1(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_1(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)},{[`&.${g.disabled}`]:{backgroundColor:"transparent",color:(o.vars||o).palette.action.disabled}})}),f=c.forwardRef(function(r,t){const s=e.useThemeProps({props:r,name:"MuiIconButton"}),{edge:n=!1,children:i,className:l,color:b="default",disabled:p=!1,disableFocusRipple:d=!1,size:T="medium"}=s,v=e._objectWithoutPropertiesLoose(s,O),u=e._extends({},s,{edge:n,color:b,disabled:p,disableFocusRipple:d,size:T}),P=x(u);return h.jsx(_,e._extends({className:a.clsx(P.root,l),centerRipple:!0,focusRipple:!d,disabled:p,ref:t},v,{ownerState:u,children:i}))});process.env.NODE_ENV!=="production"&&(f.propTypes={children:C.chainPropTypes(e.PropTypes.node,o=>c.Children.toArray(o.children).some(t=>c.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])});exports.IconButton=f;exports.getIconButtonUtilityClass=y;exports.iconButtonClasses=g;
|