@cgi-learning-hub/ui 0.0.1-dev.1713359037 → 0.0.1-dev.1716882954
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-B5JvteYc.cjs +1 -0
- package/dist/{Box-CcD_sRqe.js → Box-w9A3CGWz.js} +24 -26
- package/dist/{ButtonBase-BBqNg9BC.js → ButtonBase-ClqFvN38.js} +102 -107
- package/dist/ButtonBase-DLRUHDp_.cjs +75 -0
- package/dist/{CircularProgress-G9G_loET.js → CircularProgress-CKU4oqMn.js} +4 -4
- package/dist/{CircularProgress-DVnd6kxt.cjs → CircularProgress-LIVNb3Un.cjs} +1 -1
- package/dist/DefaultButton-Bk1TaeJZ.cjs +1 -0
- package/dist/{DefaultButton-DDeufcNs.js → DefaultButton-Pk7aXp0l.js} +94 -95
- package/dist/{IconButton-B6XIqj_T.js → IconButton-SMmmWi-o.js} +28 -29
- package/dist/IconButton-djnEGxm7.cjs +2 -0
- package/dist/InputBase-BPq0sWTY.cjs +3 -0
- package/dist/{InputBase-CdKFPwS3.js → InputBase-BnfifOOr.js} +280 -320
- package/dist/{LocalizationProvider-CNYbKILJ.cjs → LocalizationProvider-BqBo3ogt.cjs} +1 -1
- package/dist/{LocalizationProvider-0zrjdh3x.js → LocalizationProvider-DabIC_L5.js} +2 -2
- package/dist/{SearchInput-Q5BP0X0K.js → SearchInput-BEYRgfVH.js} +25 -25
- package/dist/SearchInput-CoPiN90W.cjs +1 -0
- package/dist/Tabs-Cr7s6H3h.cjs +4 -0
- package/dist/{Tabs-CDBEadDu.js → Tabs-NsW3-ZTG.js} +264 -265
- package/dist/TextInput-DMTI0kNm.cjs +12 -0
- package/dist/{TextInput-BNe_BIm9.js → TextInput-Db4gwAZh.js} +1388 -1397
- package/dist/{TimePicker-CLYqSUwA.js → TimePicker-BFhOku5y.js} +5172 -4988
- package/dist/TimePicker-UQHnH9uN.cjs +73 -0
- package/dist/{TransitionGroupContext-C7wWJ6l7.js → TransitionGroupContext-BkoHK5Kx.js} +2 -2
- package/dist/{TransitionGroupContext-g4tmk10h.cjs → TransitionGroupContext-mYDSzffd.cjs} +1 -1
- package/dist/Typography-DOPsRNd4.cjs +1 -0
- package/dist/{Typography-CkEznQ8f.js → Typography-dcZWbxlM.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/Icons/MoodleIcon/MoodleIcon.cjs.js +1 -0
- package/dist/components/Icons/MoodleIcon/MoodleIcon.d.ts +6 -0
- package/dist/components/Icons/MoodleIcon/MoodleIcon.es.js +14 -0
- package/dist/components/Icons/MoodleIcon/MoodleIcon.stories.cjs.js +1 -0
- package/dist/components/Icons/MoodleIcon/MoodleIcon.stories.d.ts +5 -0
- package/dist/components/Icons/MoodleIcon/MoodleIcon.stories.es.js +14 -0
- package/dist/components/Icons/MoodleIcon/index.cjs.js +1 -0
- package/dist/components/Icons/MoodleIcon/index.d.ts +2 -0
- package/dist/components/Icons/MoodleIcon/index.es.js +4 -0
- 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 +16 -16
- 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 +111 -110
- package/dist/components/index.es.js +140 -138
- 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 +3 -2
- package/dist/components/lists/FileList/FileList.es.js +9 -11
- 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-DfXrmzRs.js → createSvgIcon-B7iWPHJ8.js} +3 -3
- package/dist/createSvgIcon-BI_WIb5V.js +74 -0
- package/dist/{createSvgIcon-10LjrjuM.cjs → createSvgIcon-DxmHHVAO.cjs} +1 -1
- package/dist/createSvgIcon-bF0lGTlg.cjs +2 -0
- package/dist/{fr-BNYi5x0Z.cjs → fr-BunYFA4w.cjs} +1 -1
- package/dist/{fr-HqFYdKZp.js → fr-CxSZx9ZV.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +178 -176
- package/dist/{refType-B-3PavG_.cjs → refType-B2Uz1rXB.cjs} +1 -1
- package/dist/{refType-BklAUjsY.js → refType-BZaHOHyZ.js} +7 -7
- package/dist/styled-C9DDL6BK.cjs +26 -0
- package/dist/styled-DIjdzFBV.js +1218 -0
- package/dist/useSlotProps-B8ywiWUP.js +87 -0
- package/dist/useSlotProps-CYib4OeI.cjs +1 -0
- package/dist/{useThemeProps-DDcolYEZ.js → useThemeProps-B20BBUTu.js} +1035 -927
- package/dist/useThemeProps-zi1FRI5J.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
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as v from "react";
|
|
2
|
+
import { P as S, d as x, T as g, h as E, _ as l, b as R } from "./useThemeProps-B20BBUTu.js";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import { i as C } from "./isHostComponent-kiaBvYVo.js";
|
|
5
|
+
import { c as h } from "./styled-DIjdzFBV.js";
|
|
6
|
+
import { a as _ } from "./useForkRef-CQ5u1_mH.js";
|
|
7
|
+
const k = /* @__PURE__ */ v.createContext();
|
|
8
|
+
process.env.NODE_ENV !== "production" && (S.node, S.bool);
|
|
9
|
+
const Z = () => {
|
|
10
|
+
const e = v.useContext(k);
|
|
11
|
+
return e ?? !1;
|
|
12
|
+
};
|
|
13
|
+
function $() {
|
|
14
|
+
const e = x(E);
|
|
15
|
+
return process.env.NODE_ENV !== "production" && v.useDebugValue(e), e[g] || e;
|
|
16
|
+
}
|
|
17
|
+
function H(e, s, t) {
|
|
18
|
+
return e === void 0 || C(e) ? s : l({}, s, {
|
|
19
|
+
ownerState: l({}, s.ownerState, t)
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function O(e, s = []) {
|
|
23
|
+
if (e === void 0)
|
|
24
|
+
return {};
|
|
25
|
+
const t = {};
|
|
26
|
+
return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !s.includes(n)).forEach((n) => {
|
|
27
|
+
t[n] = e[n];
|
|
28
|
+
}), t;
|
|
29
|
+
}
|
|
30
|
+
function T(e, s, t) {
|
|
31
|
+
return typeof e == "function" ? e(s, t) : e;
|
|
32
|
+
}
|
|
33
|
+
function N(e) {
|
|
34
|
+
if (e === void 0)
|
|
35
|
+
return {};
|
|
36
|
+
const s = {};
|
|
37
|
+
return Object.keys(e).filter((t) => !(t.match(/^on[A-Z]/) && typeof e[t] == "function")).forEach((t) => {
|
|
38
|
+
s[t] = e[t];
|
|
39
|
+
}), s;
|
|
40
|
+
}
|
|
41
|
+
function w(e) {
|
|
42
|
+
const {
|
|
43
|
+
getSlotProps: s,
|
|
44
|
+
additionalProps: t,
|
|
45
|
+
externalSlotProps: n,
|
|
46
|
+
externalForwardedProps: o,
|
|
47
|
+
className: i
|
|
48
|
+
} = e;
|
|
49
|
+
if (!s) {
|
|
50
|
+
const y = h(t == null ? void 0 : t.className, i, o == null ? void 0 : o.className, n == null ? void 0 : n.className), P = l({}, t == null ? void 0 : t.style, o == null ? void 0 : o.style, n == null ? void 0 : n.style), m = l({}, t, o, n);
|
|
51
|
+
return y.length > 0 && (m.className = y), Object.keys(P).length > 0 && (m.style = P), {
|
|
52
|
+
props: m,
|
|
53
|
+
internalRef: void 0
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
const c = O(l({}, o, n)), a = N(n), d = N(o), r = s(c), u = h(r == null ? void 0 : r.className, t == null ? void 0 : t.className, i, o == null ? void 0 : o.className, n == null ? void 0 : n.className), f = l({}, r == null ? void 0 : r.style, t == null ? void 0 : t.style, o == null ? void 0 : o.style, n == null ? void 0 : n.style), p = l({}, r, t, d, a);
|
|
57
|
+
return u.length > 0 && (p.className = u), Object.keys(f).length > 0 && (p.style = f), {
|
|
58
|
+
props: p,
|
|
59
|
+
internalRef: r.ref
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
const D = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
63
|
+
function j(e) {
|
|
64
|
+
var s;
|
|
65
|
+
const {
|
|
66
|
+
elementType: t,
|
|
67
|
+
externalSlotProps: n,
|
|
68
|
+
ownerState: o,
|
|
69
|
+
skipResolvingSlotProps: i = !1
|
|
70
|
+
} = e, c = R(e, D), a = i ? {} : T(n, o), {
|
|
71
|
+
props: d,
|
|
72
|
+
internalRef: r
|
|
73
|
+
} = w(l({}, c, {
|
|
74
|
+
externalSlotProps: a
|
|
75
|
+
})), u = _(r, a == null ? void 0 : a.ref, (s = e.additionalProps) == null ? void 0 : s.ref);
|
|
76
|
+
return H(t, l({}, d, {
|
|
77
|
+
ref: u
|
|
78
|
+
}), o);
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
j as a,
|
|
82
|
+
$ as b,
|
|
83
|
+
H as c,
|
|
84
|
+
O as e,
|
|
85
|
+
T as r,
|
|
86
|
+
Z as u
|
|
87
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const N=require("react"),o=require("./useThemeProps-zi1FRI5J.cjs");require("react/jsx-runtime");const E=require("./isHostComponent-PydJW4A4.cjs"),P=require("./styled-C9DDL6BK.cjs"),O=require("./useForkRef-DfdM2MN5.cjs");function R(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const m=R(N),C=m.createContext();process.env.NODE_ENV!=="production"&&(o.PropTypes.node,o.PropTypes.bool);const T=()=>{const e=m.useContext(C);return e??!1};function k(){const e=o.useTheme(o.defaultTheme);return process.env.NODE_ENV!=="production"&&m.useDebugValue(e),e[o.THEME_ID]||e}function _(e,s,t){return e===void 0||E.isHostComponent(e)?s:o._extends({},s,{ownerState:o._extends({},s.ownerState,t)})}function g(e,s=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!s.includes(n)).forEach(n=>{t[n]=e[n]}),t}function h(e,s,t){return typeof e=="function"?e(s,t):e}function S(e){if(e===void 0)return{};const s={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{s[t]=e[t]}),s}function H(e){const{getSlotProps:s,additionalProps:t,externalSlotProps:n,externalForwardedProps:l,className:i}=e;if(!s){const y=P.clsx(t==null?void 0:t.className,i,l==null?void 0:l.className,n==null?void 0:n.className),x=o._extends({},t==null?void 0:t.style,l==null?void 0:l.style,n==null?void 0:n.style),v=o._extends({},t,l,n);return y.length>0&&(v.className=y),Object.keys(x).length>0&&(v.style=x),{props:v,internalRef:void 0}}const a=g(o._extends({},l,n)),u=S(n),d=S(l),r=s(a),c=P.clsx(r==null?void 0:r.className,t==null?void 0:t.className,i,l==null?void 0:l.className,n==null?void 0:n.className),f=o._extends({},r==null?void 0:r.style,t==null?void 0:t.style,l==null?void 0:l.style,n==null?void 0:n.style),p=o._extends({},r,t,d,u);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:r.ref}}const w=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function b(e){var s;const{elementType:t,externalSlotProps:n,ownerState:l,skipResolvingSlotProps:i=!1}=e,a=o._objectWithoutPropertiesLoose(e,w),u=i?{}:h(n,l),{props:d,internalRef:r}=H(o._extends({},a,{externalSlotProps:u})),c=O.useForkRef(r,u==null?void 0:u.ref,(s=e.additionalProps)==null?void 0:s.ref);return _(t,o._extends({},d,{ref:c}),l)}exports.appendOwnerState=_;exports.extractEventHandlers=g;exports.resolveComponentProps=h;exports.useRtl=T;exports.useSlotProps=b;exports.useTheme=k;
|