@cgi-learning-hub/ui 0.0.1-dev.1708959744 → 0.0.1-dev.1708974808
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-wMPAZpnO.cjs → Button-Tkz5NkF_.cjs} +1 -1
- package/dist/{Button-CmBnwwn3.js → Button-X7eWZQfX.js} +12 -12
- package/dist/ButtonBase-CKfcGhaU.js +892 -0
- package/dist/ButtonBase-Cg8cBMzO.cjs +75 -0
- package/dist/Input-CAb0EFzc.cjs +1 -0
- package/dist/{Input-Dk-cN0Fb.js → Input-CbYjsRHK.js} +10 -10
- package/dist/{InputBase-BbXy6VDy.js → InputBase-B13Nzzhk.js} +157 -138
- package/dist/InputBase-CKlCw9fj.cjs +4 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/AnotherComponent/AnotherComponent.cjs.js +1 -1
- package/dist/components/AnotherComponent/AnotherComponent.es.js +3 -3
- package/dist/components/BasicButtons/BasicButtons.cjs.js +1 -1
- package/dist/components/BasicButtons/BasicButtons.es.js +10 -10
- package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +28 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +333 -126
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +8 -8
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- 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.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- 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.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +0 -4
- package/dist/components/index.es.js +12 -20
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +247 -77
- package/dist/components/inputs/TextInput/TextInput.cjs.js +13 -11
- package/dist/components/inputs/TextInput/TextInput.es.js +404 -367
- package/dist/{createSvgIcon-BivvPRyr.cjs → createSvgIcon-jvI3LIfI.cjs} +1 -1
- package/dist/{createSvgIcon-DLZM3vHe.js → createSvgIcon-qXNZi4k1.js} +14 -14
- package/dist/{extendSxProp-CVD6j4mA.js → extendSxProp-BRHiEwyk.js} +1 -1
- package/dist/{extendSxProp-D5gpnasP.cjs → extendSxProp-CvhhU9Vb.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +10 -18
- package/dist/useForkRef-82uiK71d.cjs +1 -0
- package/dist/useForkRef-CLcOhrzI.js +44 -0
- package/dist/useTheme-BWRyHzdn.js +65 -0
- package/dist/useTheme-BpLcDNG1.cjs +1 -0
- package/dist/{useThemeProps-kb_vU-1P.js → useThemeProps-B6yTTpAe.js} +714 -741
- package/dist/{useThemeProps-C6ClLEqN.cjs → useThemeProps-CDriK9TK.cjs} +14 -14
- package/package.json +1 -2
- package/dist/ButtonBase-Bw43M3TO.js +0 -831
- package/dist/ButtonBase-XPViWbp_.cjs +0 -75
- package/dist/CircularProgress-BCdQaPFF.cjs +0 -28
- package/dist/CircularProgress-DRE9BLTL.js +0 -215
- package/dist/Input-DHic6dYE.cjs +0 -1
- package/dist/InputBase-WBNJQn8V.cjs +0 -4
- package/dist/Tab-C2Tmr8Sv.cjs +0 -1
- package/dist/Tab-CWxCqAvH.js +0 -237
- package/dist/TransitionGroupContext-C7wWJ6l7.js +0 -14
- package/dist/TransitionGroupContext-g4tmk10h.cjs +0 -1
- package/dist/Typography-B1bdo7yt.js +0 -177
- package/dist/Typography-CO64FVmw.cjs +0 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +0 -5
- package/dist/components/Dropzone/Dropzone.d.ts +0 -9
- package/dist/components/Dropzone/Dropzone.es.js +0 -1209
- package/dist/components/Dropzone/index.cjs.js +0 -1
- package/dist/components/Dropzone/index.d.ts +0 -2
- package/dist/components/Dropzone/index.es.js +0 -4
- package/dist/components/lists/FileList/FileList.cjs.js +0 -1
- package/dist/components/lists/FileList/FileList.d.ts +0 -7
- package/dist/components/lists/FileList/FileList.es.js +0 -19
- package/dist/components/lists/FileList/FileListItem.cjs.js +0 -2
- package/dist/components/lists/FileList/FileListItem.d.ts +0 -13
- package/dist/components/lists/FileList/FileListItem.es.js +0 -216
- package/dist/components/lists/FileList/index.cjs.js +0 -1
- package/dist/components/lists/FileList/index.d.ts +0 -4
- package/dist/components/lists/FileList/index.es.js +0 -6
- package/dist/components/lists/index.cjs.js +0 -1
- package/dist/components/lists/index.d.ts +0 -1
- package/dist/components/lists/index.es.js +0 -6
- package/dist/createSvgIcon-9NfUaq9H.js +0 -143
- package/dist/createSvgIcon-B7HVs3ZC.cjs +0 -2
- package/dist/ownerWindow-BoRkeomM.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-CMQbzE37.js +0 -29
- package/dist/refType-dllUCpD8.cjs +0 -1
- package/dist/useControlled-BsLcOmhe.js +0 -48
- package/dist/useControlled-jN3fqFfv.cjs +0 -3
- package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
- package/dist/useForkRef-DwN_Iz9R.js +0 -17
- package/dist/useIsFocusVisible-BF0lT08B.cjs +0 -1
- package/dist/useIsFocusVisible-D8ksiuhS.js +0 -69
- package/dist/useTheme-BSwuVDD3.js +0 -9
- package/dist/useTheme-C-LTLVMt.cjs +0 -1
- package/dist/useTimeout-KN97abZR.js +0 -47
- package/dist/useTimeout-qjxkiZZn.cjs +0 -1
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import * as a from "react";
|
|
2
|
-
import { T as o } from "./useTimeout-KN97abZR.js";
|
|
3
|
-
let n = !0, s = !1;
|
|
4
|
-
const c = new o(), f = {
|
|
5
|
-
text: !0,
|
|
6
|
-
search: !0,
|
|
7
|
-
url: !0,
|
|
8
|
-
tel: !0,
|
|
9
|
-
email: !0,
|
|
10
|
-
password: !0,
|
|
11
|
-
number: !0,
|
|
12
|
-
date: !0,
|
|
13
|
-
month: !0,
|
|
14
|
-
week: !0,
|
|
15
|
-
time: !0,
|
|
16
|
-
datetime: !0,
|
|
17
|
-
"datetime-local": !0
|
|
18
|
-
};
|
|
19
|
-
function d(e) {
|
|
20
|
-
const {
|
|
21
|
-
type: t,
|
|
22
|
-
tagName: r
|
|
23
|
-
} = e;
|
|
24
|
-
return !!(r === "INPUT" && f[t] && !e.readOnly || r === "TEXTAREA" && !e.readOnly || e.isContentEditable);
|
|
25
|
-
}
|
|
26
|
-
function h(e) {
|
|
27
|
-
e.metaKey || e.altKey || e.ctrlKey || (n = !0);
|
|
28
|
-
}
|
|
29
|
-
function i() {
|
|
30
|
-
n = !1;
|
|
31
|
-
}
|
|
32
|
-
function y() {
|
|
33
|
-
this.visibilityState === "hidden" && s && (n = !0);
|
|
34
|
-
}
|
|
35
|
-
function m(e) {
|
|
36
|
-
e.addEventListener("keydown", h, !0), e.addEventListener("mousedown", i, !0), e.addEventListener("pointerdown", i, !0), e.addEventListener("touchstart", i, !0), e.addEventListener("visibilitychange", y, !0);
|
|
37
|
-
}
|
|
38
|
-
function b(e) {
|
|
39
|
-
const {
|
|
40
|
-
target: t
|
|
41
|
-
} = e;
|
|
42
|
-
try {
|
|
43
|
-
return t.matches(":focus-visible");
|
|
44
|
-
} catch {
|
|
45
|
-
}
|
|
46
|
-
return n || d(t);
|
|
47
|
-
}
|
|
48
|
-
function w() {
|
|
49
|
-
const e = a.useCallback((u) => {
|
|
50
|
-
u != null && m(u.ownerDocument);
|
|
51
|
-
}, []), t = a.useRef(!1);
|
|
52
|
-
function r() {
|
|
53
|
-
return t.current ? (s = !0, c.start(100, () => {
|
|
54
|
-
s = !1;
|
|
55
|
-
}), t.current = !1, !0) : !1;
|
|
56
|
-
}
|
|
57
|
-
function l(u) {
|
|
58
|
-
return b(u) ? (t.current = !0, !0) : !1;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
isFocusVisibleRef: t,
|
|
62
|
-
onFocus: l,
|
|
63
|
-
onBlur: r,
|
|
64
|
-
ref: e
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
export {
|
|
68
|
-
w as u
|
|
69
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("react"),n=require("./useThemeProps-C6ClLEqN.cjs");function o(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,u.get?u:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=o(c);function a(){const e=n.useTheme(n.defaultTheme);return process.env.NODE_ENV!=="production"&&s.useDebugValue(e),e[n.THEME_ID]||e}exports.useTheme=a;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as s from "react";
|
|
2
|
-
import { u as n } from "./useForkRef-DwN_Iz9R.js";
|
|
3
|
-
function h(t) {
|
|
4
|
-
const r = s.useRef(t);
|
|
5
|
-
return n(() => {
|
|
6
|
-
r.current = t;
|
|
7
|
-
}), s.useRef((...e) => (
|
|
8
|
-
// @ts-expect-error hide `this`
|
|
9
|
-
(0, r.current)(...e)
|
|
10
|
-
)).current;
|
|
11
|
-
}
|
|
12
|
-
const u = {};
|
|
13
|
-
function i(t, r) {
|
|
14
|
-
const e = s.useRef(u);
|
|
15
|
-
return e.current === u && (e.current = t(r)), e;
|
|
16
|
-
}
|
|
17
|
-
const o = [];
|
|
18
|
-
function f(t) {
|
|
19
|
-
s.useEffect(t, o);
|
|
20
|
-
}
|
|
21
|
-
class c {
|
|
22
|
-
constructor() {
|
|
23
|
-
this.currentId = 0, this.clear = () => {
|
|
24
|
-
this.currentId !== 0 && (clearTimeout(this.currentId), this.currentId = 0);
|
|
25
|
-
}, this.disposeEffect = () => this.clear;
|
|
26
|
-
}
|
|
27
|
-
static create() {
|
|
28
|
-
return new c();
|
|
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 = 0, e();
|
|
36
|
-
}, r);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function I() {
|
|
40
|
-
const t = i(c.create).current;
|
|
41
|
-
return f(t.disposeEffect), t;
|
|
42
|
-
}
|
|
43
|
-
export {
|
|
44
|
-
c as T,
|
|
45
|
-
h as a,
|
|
46
|
-
I as u
|
|
47
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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 u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,u.get?u:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const c=f(i);function a(e){const r=c.useRef(e);return o.useEnhancedEffect(()=>{r.current=e}),c.useRef((...t)=>(0,r.current)(...t)).current}const s={};function l(e,r){const t=c.useRef(s);return t.current===s&&(t.current=e(r)),t}const d=[];function h(e){c.useEffect(e,d)}class n{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new n}start(r,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},r)}}function m(){const e=l(n.create).current;return h(e.disposeEffect),e}exports.Timeout=n;exports.useEventCallback=a;exports.useTimeout=m;
|