@cgi-learning-hub/ui 1.2.0-dev.1725451328 → 1.2.0-dev.1725543340
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-2ZrLOc7U.cjs +1 -0
- package/dist/{Box-CONPkck2.js → Box-BJvmuM0Y.js} +30 -32
- package/dist/Button-HyZp1VKI.js +359 -0
- package/dist/Button-NhaA68Of.cjs +1 -0
- package/dist/ButtonBase-CnINN-P4.cjs +75 -0
- package/dist/ButtonBase-cOL6Mpcp.js +827 -0
- package/dist/CircularProgress-01RZzfpF.cjs +28 -0
- package/dist/CircularProgress-DO4r9-x8.js +217 -0
- package/dist/DatePicker-GTtXZK-p.cjs +19 -0
- package/dist/{DatePicker-wZ1VHlXF.js → DatePicker-vhA6Fe5s.js} +4373 -4518
- package/dist/DefaultButton-BMmuKPgA.cjs +1 -0
- package/dist/DefaultButton-CKY6tuni.js +258 -0
- package/dist/IconButton-3v-0zgZW.cjs +2 -0
- package/dist/IconButton-BBfmzBP6.js +184 -0
- package/dist/InputAdornment-DHmtETz3.cjs +1 -0
- package/dist/{InputAdornment-7ED2C-w1.js → InputAdornment-zaw7AFWU.js} +65 -81
- package/dist/InputBase-BpGQgBej.cjs +3 -0
- package/dist/InputBase-COUxfhh1.js +794 -0
- package/dist/Stack-D9IYPfJ8.cjs +1 -0
- package/dist/{Stack-BzF_6-v5.js → Stack-Dlgk5t_M.js} +60 -62
- package/dist/Tabs-Blo-8Ro5.js +1091 -0
- package/dist/Tabs-D0e7cB4l.cjs +4 -0
- package/dist/TextField-8AuRLRIK.cjs +12 -0
- package/dist/{TextField-G9MOGCdw.js → TextField-DG1754qQ.js} +2408 -3033
- package/dist/{Tooltip-D_4ANHAc.js → Tooltip-C7ZUZylZ.js} +3421 -4697
- package/dist/Tooltip-CFVJXplM.cjs +95 -0
- package/dist/TransitionGroupContext-BkoHK5Kx.js +14 -0
- package/dist/TransitionGroupContext-mYDSzffd.cjs +1 -0
- package/dist/Typography-DjrvRhOr.js +178 -0
- package/dist/Typography-YHooSvuR.cjs +1 -0
- package/dist/client-error-BUtdld5f.cjs +1 -0
- package/dist/client-error-B_-qjgAB.js +395 -0
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +3 -3
- package/dist/components/DatePicker/DatePicker.stories.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.stories.es.js +3 -3
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButton.es.js +2 -2
- package/dist/components/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/DefaultButton/DefaultButtonIcon.es.js +67 -108
- package/dist/components/DefaultButton/index.cjs.js +1 -1
- package/dist/components/DefaultButton/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +8 -8
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +13 -0
- package/dist/components/EmptyState/EmptyState.es.js +31 -0
- package/dist/components/EmptyState/EmptyState.stories.cjs.js +1 -0
- package/dist/components/EmptyState/EmptyState.stories.d.ts +5 -0
- package/dist/components/EmptyState/EmptyState.stories.es.js +17 -0
- package/dist/components/EmptyState/index.cjs.js +1 -0
- package/dist/components/EmptyState/index.d.ts +2 -0
- package/dist/components/EmptyState/index.es.js +4 -0
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +11 -10
- package/dist/components/IconButton.stories.cjs.js +1 -1
- package/dist/components/IconButton.stories.es.js +14 -13
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.d.ts +1 -3
- package/dist/components/PaperHeader/PaperHeader.es.js +28 -26
- package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -1
- package/dist/components/PaperHeader/PaperHeader.stories.es.js +7 -7
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
- package/dist/components/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/PrimaryButton/PrimaryButton.stories.es.js +1 -1
- package/dist/components/QueryError/QueryError.cjs.js +1 -1
- package/dist/components/QueryError/QueryError.es.js +38 -14
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/TabList.stories.cjs.js +1 -1
- package/dist/components/TabList.stories.es.js +87 -100
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/components/index.es.js +237 -243
- package/dist/createStyled--XbpooZB.js +142 -0
- package/dist/createStyled-CuYz_ckk.cjs +1 -0
- package/dist/createSvgIcon-CUiH3cta.cjs +1 -0
- package/dist/createSvgIcon-D29Io9jD.js +183 -0
- package/dist/createSvgIcon-DTc4Xvfk.cjs +2 -0
- package/dist/createSvgIcon-DvOXtgXV.js +76 -0
- package/dist/error-CRNeivL7.js +5 -0
- package/dist/error-Dk3o6ber.cjs +1 -0
- package/dist/{fr-EMw1nUC-.cjs → fr-C4bcUC-9.cjs} +1 -1
- package/dist/{fr-D92L3a1M.js → fr-CXEmlY0d.js} +13 -13
- package/dist/hooks/lazySvgImport.cjs.js +1 -0
- package/dist/hooks/lazySvgImport.d.ts +7 -0
- package/dist/hooks/lazySvgImport.es.js +34 -0
- package/dist/identifier-CAQ9PWqs.js +3046 -0
- package/dist/identifier-CWIj084w.cjs +50 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +236 -242
- 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-YgbJS0xl.cjs → refType-D1DDOFsy.cjs} +1 -1
- package/dist/{refType-BnS1d2D8.js → refType-DiVIFcsY.js} +1 -1
- package/dist/server-error-CeAtUo4S.cjs +1 -0
- package/dist/server-error-DMyaPFs8.js +400 -0
- package/dist/styled-Bt4oYVnF.cjs +17 -0
- package/dist/styled-Co-8YWfm.js +533 -0
- package/dist/useControlled-DKpcyPsg.cjs +3 -0
- package/dist/useControlled-DoRrpN8o.js +48 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useId-Cw0TtD-8.cjs +1 -0
- package/dist/useIsFocusVisible-Bv_7uvif.cjs +1 -0
- package/dist/useIsFocusVisible-DhASXQ4o.js +69 -0
- package/dist/{useTheme-DzMeSzHc.js → useTheme-1gSw-INq.js} +5 -5
- package/dist/useTheme-Dm6RnXrf.cjs +1 -0
- package/dist/useTheme-HJhneR9g.js +99 -0
- package/dist/useTheme-T2P7WhLG.cjs +1 -0
- package/dist/useThemeProps-BKIVQv3E.js +17 -0
- package/dist/useThemeProps-BfZ3lLQs.js +27 -0
- package/dist/useThemeProps-BpFUkYqe.cjs +1 -0
- package/dist/useThemeProps-Co5ylM0H.cjs +1 -0
- package/dist/useTimeout-BdvDipeg.js +47 -0
- package/dist/useTimeout-XUWYBnl6.cjs +1 -0
- package/package.json +15 -15
- package/dist/Box-BDMtAH2P.cjs +0 -1
- package/dist/Button-By3A0teb.js +0 -454
- package/dist/Button-CBAa7bmK.cjs +0 -1
- package/dist/ButtonBase-D0vqeM8I.js +0 -890
- package/dist/ButtonBase-DePtV_m6.cjs +0 -75
- package/dist/CircularProgress-BRnSv2J2.cjs +0 -28
- package/dist/CircularProgress-BrfcRJbv.js +0 -251
- package/dist/DatePicker-Cw1xQ3Sn.cjs +0 -19
- package/dist/DefaultButton-B1wjXZO7.cjs +0 -1
- package/dist/DefaultButton-dbnwLtyd.js +0 -351
- package/dist/DefaultPropsProvider-B6IbLm7M.cjs +0 -17
- package/dist/DefaultPropsProvider-QV6PDjPd.js +0 -468
- package/dist/IconButton-BiLAYORS.js +0 -239
- package/dist/IconButton-DE-QtB3Q.cjs +0 -2
- package/dist/InputAdornment-CJbpwt2R.cjs +0 -1
- package/dist/InputBase-LZPaeC-A.cjs +0 -3
- package/dist/InputBase-jbXydPMc.js +0 -802
- package/dist/Stack-D6Kv6y1D.cjs +0 -1
- package/dist/Tabs-CV_eM5RY.js +0 -1222
- package/dist/Tabs-DcqpjpXb.cjs +0 -4
- package/dist/TextField-DAxS82qf.cjs +0 -12
- package/dist/Tooltip-Ma-NowZd.cjs +0 -100
- package/dist/TransitionGroupContext-B5aSBz0G.js +0 -64
- package/dist/TransitionGroupContext-gQFtuZSh.cjs +0 -1
- package/dist/Typography-4kqbsc6q.js +0 -258
- package/dist/Typography-CNQVeQXr.cjs +0 -1
- package/dist/composeClasses-B_ETVugV.cjs +0 -1
- package/dist/composeClasses-zmPRtZOg.js +0 -16
- package/dist/createSvgIcon-B6bEgasO.js +0 -249
- package/dist/createSvgIcon-C92jLZ0q.cjs +0 -2
- package/dist/createSvgIcon-Cdsg9tFu.js +0 -88
- package/dist/createSvgIcon-CrOALbij.cjs +0 -1
- package/dist/extendSxProp-BpSXIdup.js +0 -37
- package/dist/extendSxProp-DVE8Tgj8.cjs +0 -1
- package/dist/identifier-7NboR24y.cjs +0 -59
- package/dist/identifier-Bsv46xiT.js +0 -2930
- package/dist/index-C9spydU3.js +0 -89
- package/dist/index-DHDspyh-.cjs +0 -1
- package/dist/useControlled-Bf7_InaL.cjs +0 -3
- package/dist/useControlled-D59BLg1S.js +0 -48
- package/dist/useEventCallback-BgMlqKLP.js +0 -14
- package/dist/useEventCallback-CrCf96iG.cjs +0 -1
- package/dist/useId-CyGZMA-F.js +0 -19
- package/dist/useId-D5Txt-1B.cjs +0 -1
- package/dist/useTheme-A9inJAFh.cjs +0 -1
- package/dist/useTheme-C0nMwKpp.js +0 -128
- package/dist/useTheme-Zq6D7sUp.cjs +0 -1
- package/dist/useThemeProps-YFPF1eJp.js +0 -40
- package/dist/useThemeProps-r2yCksSx.cjs +0 -1
- package/dist/vite-env.d.cjs.js +0 -1
- package/dist/vite-env.d.es.js +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
import { ThemeContext as o } from "@emotion/react";
|
|
3
|
+
import { n as m } from "./identifier-CAQ9PWqs.js";
|
|
4
4
|
function r(e) {
|
|
5
5
|
return Object.keys(e).length === 0;
|
|
6
6
|
}
|
|
7
7
|
function s(e = null) {
|
|
8
|
-
const t =
|
|
8
|
+
const t = n.useContext(o);
|
|
9
9
|
return !t || r(t) ? e : t;
|
|
10
10
|
}
|
|
11
|
-
const u =
|
|
11
|
+
const u = m();
|
|
12
12
|
function f(e = u) {
|
|
13
13
|
return s(e);
|
|
14
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./identifier-CWIj084w.cjs"),N=require("./useForkRef-CGd3Nhyb.cjs"),R=require("./isHostComponent-PydJW4A4.cjs"),E=require("react"),O=require("react/jsx-runtime"),T=require("./styled-Bt4oYVnF.cjs"),k=require("./useTheme-T2P7WhLG.cjs");function C(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const m=C(E);function S(e,n,t){return e===void 0||R.isHostComponent(e)?n:o._extends({},n,{ownerState:o._extends({},n.ownerState,t)})}function _(e,n=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(s=>s.match(/^on[A-Z]/)&&typeof e[s]=="function"&&!n.includes(s)).forEach(s=>{t[s]=e[s]}),t}function P(e){if(e===void 0)return{};const n={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{n[t]=e[t]}),n}function H(e){const{getSlotProps:n,additionalProps:t,externalSlotProps:s,externalForwardedProps:r,className:i}=e;if(!n){const y=o.clsx(t==null?void 0:t.className,i,r==null?void 0:r.className,s==null?void 0:s.className),x=o._extends({},t==null?void 0:t.style,r==null?void 0:r.style,s==null?void 0:s.style),v=o._extends({},t,r,s);return y.length>0&&(v.className=y),Object.keys(x).length>0&&(v.style=x),{props:v,internalRef:void 0}}const a=_(o._extends({},r,s)),u=P(s),d=P(r),l=n(a),c=o.clsx(l==null?void 0:l.className,t==null?void 0:t.className,i,r==null?void 0:r.className,s==null?void 0:s.className),f=o._extends({},l==null?void 0:l.style,t==null?void 0:t.style,r==null?void 0:r.style,s==null?void 0:s.style),p=o._extends({},l,t,d,u);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:l.ref}}function b(e,n,t){return typeof e=="function"?e(n,t):e}const q=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function w(e){var n;const{elementType:t,externalSlotProps:s,ownerState:r,skipResolvingSlotProps:i=!1}=e,a=o._objectWithoutPropertiesLoose(e,q),u=i?{}:b(s,r),{props:d,internalRef:l}=H(o._extends({},a,{externalSlotProps:u})),c=N.useForkRef(l,u==null?void 0:u.ref,(n=e.additionalProps)==null?void 0:n.ref);return S(t,o._extends({},d,{ref:c}),r)}const j=["value"],h=m.createContext();function g(e){let{value:n}=e,t=o._objectWithoutPropertiesLoose(e,j);return O.jsx(h.Provider,o._extends({value:n??!0},t))}process.env.NODE_ENV!=="production"&&(g.propTypes={children:o.PropTypes.node,value:o.PropTypes.bool});const D=()=>{const e=m.useContext(h);return e??!1};function $(){const e=k.useTheme(T.defaultTheme);return process.env.NODE_ENV!=="production"&&m.useDebugValue(e),e[o.THEME_ID]||e}exports.RtlProvider=g;exports.appendOwnerState=S;exports.extractEventHandlers=_;exports.useRtl=D;exports.useSlotProps=w;exports.useTheme=$;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { m as l, y as S, _ as N, P as h, T as E } from "./identifier-CAQ9PWqs.js";
|
|
2
|
+
import { a as R } from "./useForkRef-DwN_Iz9R.js";
|
|
3
|
+
import { i as C } from "./isHostComponent-kiaBvYVo.js";
|
|
4
|
+
import * as v from "react";
|
|
5
|
+
import { jsx as T } from "react/jsx-runtime";
|
|
6
|
+
import { d as _ } from "./styled-Co-8YWfm.js";
|
|
7
|
+
import { u as k } from "./useTheme-1gSw-INq.js";
|
|
8
|
+
function H(e, s, t) {
|
|
9
|
+
return e === void 0 || C(e) ? s : l({}, s, {
|
|
10
|
+
ownerState: l({}, s.ownerState, t)
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function O(e, s = []) {
|
|
14
|
+
if (e === void 0)
|
|
15
|
+
return {};
|
|
16
|
+
const t = {};
|
|
17
|
+
return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !s.includes(n)).forEach((n) => {
|
|
18
|
+
t[n] = e[n];
|
|
19
|
+
}), t;
|
|
20
|
+
}
|
|
21
|
+
function x(e) {
|
|
22
|
+
if (e === void 0)
|
|
23
|
+
return {};
|
|
24
|
+
const s = {};
|
|
25
|
+
return Object.keys(e).filter((t) => !(t.match(/^on[A-Z]/) && typeof e[t] == "function")).forEach((t) => {
|
|
26
|
+
s[t] = e[t];
|
|
27
|
+
}), s;
|
|
28
|
+
}
|
|
29
|
+
function w(e) {
|
|
30
|
+
const {
|
|
31
|
+
getSlotProps: s,
|
|
32
|
+
additionalProps: t,
|
|
33
|
+
externalSlotProps: n,
|
|
34
|
+
externalForwardedProps: o,
|
|
35
|
+
className: i
|
|
36
|
+
} = e;
|
|
37
|
+
if (!s) {
|
|
38
|
+
const y = S(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);
|
|
39
|
+
return y.length > 0 && (m.className = y), Object.keys(P).length > 0 && (m.style = P), {
|
|
40
|
+
props: m,
|
|
41
|
+
internalRef: void 0
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
const c = O(l({}, o, n)), a = x(n), d = x(o), r = s(c), u = S(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);
|
|
45
|
+
return u.length > 0 && (p.className = u), Object.keys(f).length > 0 && (p.style = f), {
|
|
46
|
+
props: p,
|
|
47
|
+
internalRef: r.ref
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function D(e, s, t) {
|
|
51
|
+
return typeof e == "function" ? e(s, t) : e;
|
|
52
|
+
}
|
|
53
|
+
const V = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
54
|
+
function L(e) {
|
|
55
|
+
var s;
|
|
56
|
+
const {
|
|
57
|
+
elementType: t,
|
|
58
|
+
externalSlotProps: n,
|
|
59
|
+
ownerState: o,
|
|
60
|
+
skipResolvingSlotProps: i = !1
|
|
61
|
+
} = e, c = N(e, V), a = i ? {} : D(n, o), {
|
|
62
|
+
props: d,
|
|
63
|
+
internalRef: r
|
|
64
|
+
} = w(l({}, c, {
|
|
65
|
+
externalSlotProps: a
|
|
66
|
+
})), u = R(r, a == null ? void 0 : a.ref, (s = e.additionalProps) == null ? void 0 : s.ref);
|
|
67
|
+
return H(t, l({}, d, {
|
|
68
|
+
ref: u
|
|
69
|
+
}), o);
|
|
70
|
+
}
|
|
71
|
+
const W = ["value"], g = /* @__PURE__ */ v.createContext();
|
|
72
|
+
function $(e) {
|
|
73
|
+
let {
|
|
74
|
+
value: s
|
|
75
|
+
} = e, t = N(e, W);
|
|
76
|
+
return /* @__PURE__ */ T(g.Provider, l({
|
|
77
|
+
value: s ?? !0
|
|
78
|
+
}, t));
|
|
79
|
+
}
|
|
80
|
+
process.env.NODE_ENV !== "production" && ($.propTypes = {
|
|
81
|
+
children: h.node,
|
|
82
|
+
value: h.bool
|
|
83
|
+
});
|
|
84
|
+
const M = () => {
|
|
85
|
+
const e = v.useContext(g);
|
|
86
|
+
return e ?? !1;
|
|
87
|
+
};
|
|
88
|
+
function q() {
|
|
89
|
+
const e = k(_);
|
|
90
|
+
return process.env.NODE_ENV !== "production" && v.useDebugValue(e), e[E] || e;
|
|
91
|
+
}
|
|
92
|
+
export {
|
|
93
|
+
$ as R,
|
|
94
|
+
M as a,
|
|
95
|
+
L as b,
|
|
96
|
+
H as c,
|
|
97
|
+
O as e,
|
|
98
|
+
q as u
|
|
99
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("react"),o=require("@emotion/react"),s=require("./identifier-CWIj084w.cjs");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=i(u);function f(e){return Object.keys(e).length===0}function c(e=null){const t=a.useContext(o.ThemeContext);return!t||f(t)?e:t}const m=s.createTheme$1();function l(e=m){return c(e)}exports.useTheme=l;exports.useTheme$1=c;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { d as m } from "./styled-Co-8YWfm.js";
|
|
2
|
+
import { T as o } from "./identifier-CAQ9PWqs.js";
|
|
3
|
+
import { u as s } from "./useThemeProps-BfZ3lLQs.js";
|
|
4
|
+
function a({
|
|
5
|
+
props: e,
|
|
6
|
+
name: r
|
|
7
|
+
}) {
|
|
8
|
+
return s({
|
|
9
|
+
props: e,
|
|
10
|
+
name: r,
|
|
11
|
+
defaultTheme: m,
|
|
12
|
+
themeId: o
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
a as u
|
|
17
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { r as n } from "./styled-Co-8YWfm.js";
|
|
2
|
+
import { u as p } from "./useTheme-1gSw-INq.js";
|
|
3
|
+
function m(t) {
|
|
4
|
+
const {
|
|
5
|
+
theme: e,
|
|
6
|
+
name: o,
|
|
7
|
+
props: r
|
|
8
|
+
} = t;
|
|
9
|
+
return !e || !e.components || !e.components[o] || !e.components[o].defaultProps ? r : n(e.components[o].defaultProps, r);
|
|
10
|
+
}
|
|
11
|
+
function a({
|
|
12
|
+
props: t,
|
|
13
|
+
name: e,
|
|
14
|
+
defaultTheme: o,
|
|
15
|
+
themeId: r
|
|
16
|
+
}) {
|
|
17
|
+
let s = p(o);
|
|
18
|
+
return r && (s = s[r] || s), m({
|
|
19
|
+
theme: s,
|
|
20
|
+
name: e,
|
|
21
|
+
props: t
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
m as g,
|
|
26
|
+
a as u
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const p=require("./styled-Bt4oYVnF.cjs"),m=require("./useTheme-T2P7WhLG.cjs");function n(t){const{theme:e,name:s,props:o}=t;return!e||!e.components||!e.components[s]||!e.components[s].defaultProps?o:p.resolveProps(e.components[s].defaultProps,o)}function u({props:t,name:e,defaultTheme:s,themeId:o}){let r=m.useTheme(s);return o&&(r=r[o]||r),n({theme:r,name:e,props:t})}exports.getThemeProps=n;exports.useThemeProps=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./styled-Bt4oYVnF.cjs"),t=require("./identifier-CWIj084w.cjs"),u=require("./useThemeProps-BpFUkYqe.cjs");function i({props:e,name:r}){return u.useThemeProps({props:e,name:r,defaultTheme:s.defaultTheme,themeId:t.THEME_ID})}exports.useThemeProps=i;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { u as c } from "./useForkRef-DwN_Iz9R.js";
|
|
3
|
+
function l(t) {
|
|
4
|
+
const r = u.useRef(t);
|
|
5
|
+
return c(() => {
|
|
6
|
+
r.current = t;
|
|
7
|
+
}), u.useRef((...e) => (
|
|
8
|
+
// @ts-expect-error hide `this`
|
|
9
|
+
(0, r.current)(...e)
|
|
10
|
+
)).current;
|
|
11
|
+
}
|
|
12
|
+
const s = {};
|
|
13
|
+
function i(t, r) {
|
|
14
|
+
const e = u.useRef(s);
|
|
15
|
+
return e.current === s && (e.current = t(r)), e;
|
|
16
|
+
}
|
|
17
|
+
const o = [];
|
|
18
|
+
function f(t) {
|
|
19
|
+
u.useEffect(t, o);
|
|
20
|
+
}
|
|
21
|
+
class n {
|
|
22
|
+
constructor() {
|
|
23
|
+
this.currentId = null, this.clear = () => {
|
|
24
|
+
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
25
|
+
}, this.disposeEffect = () => this.clear;
|
|
26
|
+
}
|
|
27
|
+
static create() {
|
|
28
|
+
return new n();
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
32
|
+
*/
|
|
33
|
+
start(r, e) {
|
|
34
|
+
this.clear(), this.currentId = setTimeout(() => {
|
|
35
|
+
this.currentId = null, e();
|
|
36
|
+
}, r);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function h() {
|
|
40
|
+
const t = i(n.create).current;
|
|
41
|
+
return f(t.disposeEffect), t;
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
n as T,
|
|
45
|
+
h as a,
|
|
46
|
+
l as u
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("react"),o=require("./useForkRef-CGd3Nhyb.cjs");function f(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=f(i);function a(e){const r=n.useRef(e);return o.useEnhancedEffect(()=>{r.current=e}),n.useRef((...t)=>(0,r.current)(...t)).current}const s={};function l(e,r){const t=n.useRef(s);return t.current===s&&(t.current=e(r)),t}const d=[];function h(e){n.useEffect(e,d)}class u{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new u}start(r,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},r)}}function m(){const e=l(u.create).current;return h(e.disposeEffect),e}exports.Timeout=u;exports.useEventCallback=a;exports.useTimeout=m;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "1.2.0-dev.
|
|
3
|
+
"version": "1.2.0-dev.1725543340",
|
|
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",
|
|
@@ -30,26 +30,26 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@emotion/react": "11.
|
|
34
|
-
"@emotion/styled": "11.
|
|
35
|
-
"@mui/icons-material": "
|
|
36
|
-
"@mui/lab": "
|
|
37
|
-
"@mui/x-date-pickers": "7.
|
|
38
|
-
"dayjs": "1.11.
|
|
33
|
+
"@emotion/react": "11.11.4",
|
|
34
|
+
"@emotion/styled": "11.11.5",
|
|
35
|
+
"@mui/icons-material": "5.16.4",
|
|
36
|
+
"@mui/lab": "5.0.0-alpha.172",
|
|
37
|
+
"@mui/x-date-pickers": "7.10.0",
|
|
38
|
+
"dayjs": "1.11.11",
|
|
39
39
|
"react-dropzone": "14.2.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@reduxjs/toolkit": "2.2.
|
|
43
|
-
"@types/react": "18.3.
|
|
42
|
+
"@reduxjs/toolkit": "2.2.6",
|
|
43
|
+
"@types/react": "18.3.3",
|
|
44
44
|
"@types/react-dom": "18.3.0",
|
|
45
|
-
"autoprefixer": "10.4.
|
|
46
|
-
"postcss": "8.4.
|
|
47
|
-
"tailwindcss": "3.4.
|
|
45
|
+
"autoprefixer": "10.4.19",
|
|
46
|
+
"postcss": "8.4.39",
|
|
47
|
+
"tailwindcss": "3.4.6"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@mui/material": "^
|
|
51
|
-
"react": "^18",
|
|
52
|
-
"react-dom": "^18"
|
|
50
|
+
"@mui/material": "^5.0.0",
|
|
51
|
+
"react": "^18.0.0",
|
|
52
|
+
"react-dom": "^18.0.0"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"dev": "vite",
|
package/dist/Box-BDMtAH2P.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./identifier-7NboR24y.cjs"),y=require("react"),T=require("react/jsx-runtime"),P=require("./useTheme-Zq6D7sUp.cjs"),h=require("./extendSxProp-DVE8Tgj8.cjs");function b(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:()=>o[s]})}}return t.default=o,Object.freeze(t)}const B=b(y);function N(o={}){const{themeId:t,defaultTheme:s,defaultClassName:r="MuiBox-root",generateClassName:c}=o,l=e.styled("div",{shouldForwardProp:n=>n!=="theme"&&n!=="sx"&&n!=="as"})(e.styleFunctionSx);return B.forwardRef(function(i,d){const a=P.useTheme(s),{className:f,component:m="div",...x}=h.extendSxProp(i);return T.jsx(l,{as:m,ref:d,className:e.clsx(f,c?c(r):r),theme:t&&a[t]||a,...x})})}const g=e.generateUtilityClasses("MuiBox",["root"]),p=g,C=e.createTheme(),u=N({themeId:e.THEME_ID,defaultTheme:C,defaultClassName:p.root,generateClassName:e.ClassNameGenerator.generate});process.env.NODE_ENV!=="production"&&(u.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 O=u;exports.Box=O;exports.boxClasses=p;
|