@cgi-learning-hub/ui 1.6.0-dev.1747905194 → 1.6.0-dev.1747921053
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Alert-DBgzh1CV.js → Alert-CBW5GoJI.js} +131 -128
- package/dist/{Alert-B42sqOEW.cjs → Alert-DHG4SpUx.cjs} +1 -1
- package/dist/{Autocomplete-vH2Up7_E.js → Autocomplete-BY5PBnFO.js} +8 -7
- package/dist/{Autocomplete-DWREh3mY.cjs → Autocomplete-E2lL4isp.cjs} +4 -4
- package/dist/{CardContent-DaZl2i3G.js → CardContent-BiCWtbyk.js} +1 -1
- package/dist/{CardContent-ji0_AneN.cjs → CardContent-DfNASczU.cjs} +1 -1
- package/dist/{DatePicker-ehvdOpes.cjs → DatePicker-BBFC1Zoi.cjs} +1 -1
- package/dist/{DatePicker-Bw2Q4r7J.js → DatePicker-CwDmetzW.js} +4 -4
- package/dist/{Dialog-D6WzY_HJ.cjs → Dialog-CdrDjE9Y.cjs} +1 -1
- package/dist/{Dialog-TIA9lSzZ.js → Dialog-i7-wUv6w.js} +1 -1
- package/dist/{DialogTitle-3J6aq9qI.cjs → DialogTitle-CjrNCn9F.cjs} +1 -1
- package/dist/{DialogTitle-Dwy3CaSV.js → DialogTitle-DRNVW7R2.js} +1 -1
- package/dist/{Menu-DL9W9Ad_.cjs → Menu-B5k8imF-.cjs} +5 -5
- package/dist/{Menu-B43ouCWx.js → Menu-BBziZ0k7.js} +14 -13
- package/dist/Paper-DWhwBCNx.cjs +2 -0
- package/dist/Paper-fiQZbcci.js +158 -0
- package/dist/{Select-DaVDiPRr.js → Select-B7uzsMmD.js} +1 -1
- package/dist/{Select-AcDK5nam.cjs → Select-C1DzOJfC.cjs} +1 -1
- package/dist/Stepper-DOTvtRRL.js +971 -0
- package/dist/Stepper-Dk1iWstN.cjs +1 -0
- package/dist/{TextField-C8VKBQV3.cjs → TextField-C8gcAU1R.cjs} +1 -1
- package/dist/{TextField-J1kMLPQz.js → TextField-EWjMXgtu.js} +1 -1
- package/dist/ToggleButtonGroup-DcXHH5wq.cjs +138 -0
- package/dist/{ToggleButtonGroup-BLPwuacW.js → ToggleButtonGroup-Ddg6NHao.js} +2721 -3564
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +1 -1
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +1 -1
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.es.js +12 -11
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +4 -2
- package/dist/components/index.es.js +392 -388
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +1 -1
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +1 -1
- package/dist/components/stories/Stepper.stories.cjs.js +1 -0
- package/dist/components/stories/Stepper.stories.d.ts +7 -0
- package/dist/components/stories/Stepper.stories.es.js +161 -0
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/TreeView.stories.cjs.js +1 -1
- package/dist/components/stories/TreeView.stories.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +392 -388
- package/dist/integerPropType-Ched4o4e.cjs +1 -0
- package/dist/integerPropType-D-nm5Xmm.js +31 -0
- package/package.json +1 -1
- package/dist/Paper-984iTz4H.js +0 -186
- package/dist/Paper-Bh9CKUCb.cjs +0 -2
- package/dist/ToggleButtonGroup-D5EDQM0v.cjs +0 -138
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function s(e){const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return r}}function o(e,r,n,i){const t=e[r];if(t==null||!Number.isInteger(t)){const l=s(t);return new RangeError(`Invalid ${i} \`${r}\` of type \`${l}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function c(e,r,...n){return e[r]===void 0?null:o(e,r,...n)}function u(){return null}c.isRequired=o;u.isRequired=u;const f=process.env.NODE_ENV==="production"?u:c;exports.integerPropType=f;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
function f(e) {
|
|
2
|
+
const r = typeof e;
|
|
3
|
+
switch (r) {
|
|
4
|
+
case "number":
|
|
5
|
+
return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
|
|
6
|
+
case "object":
|
|
7
|
+
return e === null ? "null" : e.constructor.name;
|
|
8
|
+
default:
|
|
9
|
+
return r;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function o(e, r, n, i) {
|
|
13
|
+
const t = e[r];
|
|
14
|
+
if (t == null || !Number.isInteger(t)) {
|
|
15
|
+
const l = f(t);
|
|
16
|
+
return new RangeError(`Invalid ${i} \`${r}\` of type \`${l}\` supplied to \`${n}\`, expected \`integer\`.`);
|
|
17
|
+
}
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
function c(e, r, ...n) {
|
|
21
|
+
return e[r] === void 0 ? null : o(e, r, ...n);
|
|
22
|
+
}
|
|
23
|
+
function u() {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
c.isRequired = o;
|
|
27
|
+
u.isRequired = u;
|
|
28
|
+
const s = process.env.NODE_ENV === "production" ? u : c;
|
|
29
|
+
export {
|
|
30
|
+
s as i
|
|
31
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "1.6.0-dev.
|
|
3
|
+
"version": "1.6.0-dev.1747921053",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "CGI Learning-hub Team",
|
|
6
6
|
"description": "@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features",
|
package/dist/Paper-984iTz4H.js
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import * as h from "react";
|
|
2
|
-
import { P as t } from "./index-Sy88PpwE.js";
|
|
3
|
-
import { F as w, G as N, n as f, H as T, A as m } from "./generateUtilityClasses-DngCqveO.js";
|
|
4
|
-
import { u as $ } from "./useTheme-C59wIJ3-.js";
|
|
5
|
-
import { jsx as R } from "react/jsx-runtime";
|
|
6
|
-
import { u as x, s as E, c as O } from "./DefaultPropsProvider-hFv1J_xl.js";
|
|
7
|
-
import { m as q } from "./memoTheme-nmt7i1dS.js";
|
|
8
|
-
import { c as C } from "./chainPropTypes-D9lkm76m.js";
|
|
9
|
-
function j(e) {
|
|
10
|
-
const o = typeof e;
|
|
11
|
-
switch (o) {
|
|
12
|
-
case "number":
|
|
13
|
-
return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
|
|
14
|
-
case "object":
|
|
15
|
-
return e === null ? "null" : e.constructor.name;
|
|
16
|
-
default:
|
|
17
|
-
return o;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
function y(e, o, a, n) {
|
|
21
|
-
const r = e[o];
|
|
22
|
-
if (r == null || !Number.isInteger(r)) {
|
|
23
|
-
const s = j(r);
|
|
24
|
-
return new RangeError(`Invalid ${n} \`${o}\` of type \`${s}\` supplied to \`${a}\`, expected \`integer\`.`);
|
|
25
|
-
}
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
function b(e, o, ...a) {
|
|
29
|
-
return e[o] === void 0 ? null : y(e, o, ...a);
|
|
30
|
-
}
|
|
31
|
-
function l() {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
b.isRequired = y;
|
|
35
|
-
l.isRequired = l;
|
|
36
|
-
const I = process.env.NODE_ENV === "production" ? l : b;
|
|
37
|
-
function M(e) {
|
|
38
|
-
return N("MuiPaper", e);
|
|
39
|
-
}
|
|
40
|
-
const H = w("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]), V = (e) => {
|
|
41
|
-
const {
|
|
42
|
-
square: o,
|
|
43
|
-
elevation: a,
|
|
44
|
-
variant: n,
|
|
45
|
-
classes: r
|
|
46
|
-
} = e, s = {
|
|
47
|
-
root: ["root", n, !o && "rounded", n === "elevation" && `elevation${a}`]
|
|
48
|
-
};
|
|
49
|
-
return O(s, M, r);
|
|
50
|
-
}, U = E("div", {
|
|
51
|
-
name: "MuiPaper",
|
|
52
|
-
slot: "Root",
|
|
53
|
-
overridesResolver: (e, o) => {
|
|
54
|
-
const {
|
|
55
|
-
ownerState: a
|
|
56
|
-
} = e;
|
|
57
|
-
return [o.root, o[a.variant], !a.square && o.rounded, a.variant === "elevation" && o[`elevation${a.elevation}`]];
|
|
58
|
-
}
|
|
59
|
-
})(q(({
|
|
60
|
-
theme: e
|
|
61
|
-
}) => ({
|
|
62
|
-
backgroundColor: (e.vars || e).palette.background.paper,
|
|
63
|
-
color: (e.vars || e).palette.text.primary,
|
|
64
|
-
transition: e.transitions.create("box-shadow"),
|
|
65
|
-
variants: [{
|
|
66
|
-
props: ({
|
|
67
|
-
ownerState: o
|
|
68
|
-
}) => !o.square,
|
|
69
|
-
style: {
|
|
70
|
-
borderRadius: e.shape.borderRadius
|
|
71
|
-
}
|
|
72
|
-
}, {
|
|
73
|
-
props: {
|
|
74
|
-
variant: "outlined"
|
|
75
|
-
},
|
|
76
|
-
style: {
|
|
77
|
-
border: `1px solid ${(e.vars || e).palette.divider}`
|
|
78
|
-
}
|
|
79
|
-
}, {
|
|
80
|
-
props: {
|
|
81
|
-
variant: "elevation"
|
|
82
|
-
},
|
|
83
|
-
style: {
|
|
84
|
-
boxShadow: "var(--Paper-shadow)",
|
|
85
|
-
backgroundImage: "var(--Paper-overlay)"
|
|
86
|
-
}
|
|
87
|
-
}]
|
|
88
|
-
}))), k = /* @__PURE__ */ h.forwardRef(function(o, a) {
|
|
89
|
-
var d;
|
|
90
|
-
const n = x({
|
|
91
|
-
props: o,
|
|
92
|
-
name: "MuiPaper"
|
|
93
|
-
}), r = $(), {
|
|
94
|
-
className: s,
|
|
95
|
-
component: p = "div",
|
|
96
|
-
elevation: i = 1,
|
|
97
|
-
square: P = !1,
|
|
98
|
-
variant: u = "elevation",
|
|
99
|
-
...v
|
|
100
|
-
} = n, c = {
|
|
101
|
-
...n,
|
|
102
|
-
component: p,
|
|
103
|
-
elevation: i,
|
|
104
|
-
square: P,
|
|
105
|
-
variant: u
|
|
106
|
-
}, g = V(c);
|
|
107
|
-
return process.env.NODE_ENV !== "production" && r.shadows[i] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${i}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${i}]\` is defined.`].join(`
|
|
108
|
-
`)), /* @__PURE__ */ R(U, {
|
|
109
|
-
as: p,
|
|
110
|
-
ownerState: c,
|
|
111
|
-
className: T(g.root, s),
|
|
112
|
-
ref: a,
|
|
113
|
-
...v,
|
|
114
|
-
style: {
|
|
115
|
-
...u === "elevation" && {
|
|
116
|
-
"--Paper-shadow": (r.vars || r).shadows[i],
|
|
117
|
-
...r.vars && {
|
|
118
|
-
"--Paper-overlay": (d = r.vars.overlays) == null ? void 0 : d[i]
|
|
119
|
-
},
|
|
120
|
-
...!r.vars && r.palette.mode === "dark" && {
|
|
121
|
-
"--Paper-overlay": `linear-gradient(${f("#fff", m(i))}, ${f("#fff", m(i))})`
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
...v.style
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
process.env.NODE_ENV !== "production" && (k.propTypes = {
|
|
129
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
130
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
131
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
132
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
133
|
-
/**
|
|
134
|
-
* The content of the component.
|
|
135
|
-
*/
|
|
136
|
-
children: t.node,
|
|
137
|
-
/**
|
|
138
|
-
* Override or extend the styles applied to the component.
|
|
139
|
-
*/
|
|
140
|
-
classes: t.object,
|
|
141
|
-
/**
|
|
142
|
-
* @ignore
|
|
143
|
-
*/
|
|
144
|
-
className: t.string,
|
|
145
|
-
/**
|
|
146
|
-
* The component used for the root node.
|
|
147
|
-
* Either a string to use a HTML element or a component.
|
|
148
|
-
*/
|
|
149
|
-
component: t.elementType,
|
|
150
|
-
/**
|
|
151
|
-
* Shadow depth, corresponds to `dp` in the spec.
|
|
152
|
-
* It accepts values between 0 and 24 inclusive.
|
|
153
|
-
* @default 1
|
|
154
|
-
*/
|
|
155
|
-
elevation: C(I, (e) => {
|
|
156
|
-
const {
|
|
157
|
-
elevation: o,
|
|
158
|
-
variant: a
|
|
159
|
-
} = e;
|
|
160
|
-
return o > 0 && a === "outlined" ? new Error(`MUI: Combining \`elevation={${o}}\` with \`variant="${a}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
|
|
161
|
-
}),
|
|
162
|
-
/**
|
|
163
|
-
* If `true`, rounded corners are disabled.
|
|
164
|
-
* @default false
|
|
165
|
-
*/
|
|
166
|
-
square: t.bool,
|
|
167
|
-
/**
|
|
168
|
-
* @ignore
|
|
169
|
-
*/
|
|
170
|
-
style: t.object,
|
|
171
|
-
/**
|
|
172
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
173
|
-
*/
|
|
174
|
-
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
175
|
-
/**
|
|
176
|
-
* The variant to use.
|
|
177
|
-
* @default 'elevation'
|
|
178
|
-
*/
|
|
179
|
-
variant: t.oneOfType([t.oneOf(["elevation", "outlined"]), t.string])
|
|
180
|
-
});
|
|
181
|
-
export {
|
|
182
|
-
k as P,
|
|
183
|
-
M as g,
|
|
184
|
-
I as i,
|
|
185
|
-
H as p
|
|
186
|
-
};
|
package/dist/Paper-Bh9CKUCb.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const w=require("react"),t=require("./index-DLnSn8GT.cjs"),i=require("./generateUtilityClasses-CMlilM6r.cjs"),N=require("./useTheme-ClhInrO2.cjs"),O=require("react/jsx-runtime"),u=require("./DefaultPropsProvider-B1crdkTC.cjs"),$=require("./memoTheme-BAbn60Cb.cjs"),j=require("./chainPropTypes-CEUi6Jb4.cjs");function R(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const C=R(w);function x(e){const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return r}}function P(e,r,o,a){const n=e[r];if(n==null||!Number.isInteger(n)){const l=x(n);return new RangeError(`Invalid ${a} \`${r}\` of type \`${l}\` supplied to \`${o}\`, expected \`integer\`.`)}return null}function T(e,r,...o){return e[r]===void 0?null:P(e,r,...o)}function p(){return null}T.isRequired=P;p.isRequired=p;const b=process.env.NODE_ENV==="production"?p:T;function g(e){return i.generateUtilityClass("MuiPaper",e)}const E=i.generateUtilityClasses("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]),M=e=>{const{square:r,elevation:o,variant:a,classes:n}=e,l={root:["root",a,!r&&"rounded",a==="elevation"&&`elevation${o}`]};return u.composeClasses(l,g,n)},U=u.styled("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[r.root,r[o.variant],!o.square&&r.rounded,o.variant==="elevation"&&r[`elevation${o.elevation}`]]}})($.memoTheme(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:r})=>!r.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),m=C.forwardRef(function(r,o){var y;const a=u.useDefaultProps({props:r,name:"MuiPaper"}),n=N.useTheme(),{className:l,component:c="div",elevation:s=1,square:h=!1,variant:v="elevation",...d}=a,f={...a,component:c,elevation:s,square:h,variant:v},q=M(f);return process.env.NODE_ENV!=="production"&&n.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
|
|
2
|
-
`)),O.jsx(U,{as:c,ownerState:f,className:i.clsx(q.root,l),ref:o,...d,style:{...v==="elevation"&&{"--Paper-shadow":(n.vars||n).shadows[s],...n.vars&&{"--Paper-overlay":(y=n.vars.overlays)==null?void 0:y[s]},...!n.vars&&n.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${i.alpha("#fff",i.getOverlayAlpha(s))}, ${i.alpha("#fff",i.getOverlayAlpha(s))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(m.propTypes={children:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,component:t.PropTypes.elementType,elevation:j.chainPropTypes(b,e=>{const{elevation:r,variant:o}=e;return r>0&&o==="outlined"?new Error(`MUI: Combining \`elevation={${r}}\` with \`variant="${o}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:t.PropTypes.bool,style:t.PropTypes.object,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),variant:t.PropTypes.oneOfType([t.PropTypes.oneOf(["elevation","outlined"]),t.PropTypes.string])});exports.Paper=m;exports.getPaperUtilityClass=g;exports.integerPropType=b;exports.paperClasses=E;
|