@cgi-learning-hub/ui 0.0.1-dev.1709646249 → 0.0.1-dev.1709712957
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-C0qXdJzV.js → Box-DbTiG4H5.js} +3 -3
- package/dist/{ButtonBase-C14ZYs6z.js → ButtonBase-Cj0VAGSo.js} +5 -5
- package/dist/{ButtonBase-BvllyU4w.cjs → ButtonBase-DTmn2sD_.cjs} +1 -1
- package/dist/{CircularProgress-Bf46-VRs.js → CircularProgress-BqQQW0l9.js} +3 -3
- package/dist/{DefaultButton-B-2UppUm.js → DefaultButton-DdQUbrXq.js} +6 -6
- package/dist/{DefaultButton-DPZOltN5.cjs → DefaultButton-Ls0zczi1.cjs} +1 -1
- package/dist/{IconButton-1URziYlU.js → IconButton-BO0e0bGH.js} +4 -4
- package/dist/{IconButton-X6l-U-im.cjs → IconButton-wRZZmeNK.cjs} +1 -1
- package/dist/{InputBase-D_wYPpmB.js → InputBase-D-C0U1Q3.js} +3 -3
- package/dist/LocalizationProvider-BqhYrFIl.js +573 -0
- package/dist/LocalizationProvider-CAosaaEW.cjs +5 -0
- package/dist/{SearchInput-D2HnePqk.js → SearchInput-Ef9mtSE4.js} +5 -5
- package/dist/{Tabs-Dx8YJT4c.cjs → Tabs-CsKKGDYk.cjs} +1 -1
- package/dist/{Tabs-B9BPJaDx.js → Tabs-DlViPyxj.js} +8 -8
- package/dist/{TextInput-BO1q4hT2.cjs → TextInput-Bnnhldff.cjs} +1 -1
- package/dist/{TextInput-DiA3Q5CJ.js → TextInput-DNVF9vEj.js} +159 -159
- package/dist/{TimePicker-CBI_tdzH.js → TimePicker-C7tUydgb.js} +17 -17
- package/dist/{TimePicker-CnW0kylk.cjs → TimePicker-DfciOeXl.cjs} +1 -1
- package/dist/{Typography-CRt6WSxo.js → Typography-gyI1N9sP.js} +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +5 -5
- package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +1 -1
- package/dist/components/LocalizationProvider/LocalizationProvider.es.js +3 -2
- package/dist/components/LocalizationProvider/index.cjs.js +1 -1
- 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.es.js +3 -3
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +2 -2
- package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
- 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.es.js +2 -2
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +2 -2
- 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 +2 -2
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
- package/dist/components/buttons/index.cjs.js +1 -1
- package/dist/components/buttons/index.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +100 -98
- package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -0
- package/dist/components/inputs/PasswordInput/PasswordInput.d.ts +5 -0
- package/dist/components/inputs/PasswordInput/PasswordInput.es.js +43 -0
- package/dist/components/inputs/PasswordInput/PasswordInput.stories.cjs.js +1 -0
- package/dist/components/inputs/PasswordInput/PasswordInput.stories.d.ts +4 -0
- package/dist/components/inputs/PasswordInput/PasswordInput.stories.es.js +16 -0
- package/dist/components/inputs/PasswordInput/index.cjs.js +1 -0
- package/dist/components/inputs/PasswordInput/index.d.ts +2 -0
- package/dist/components/inputs/PasswordInput/index.es.js +4 -0
- package/dist/components/inputs/SearchInput/SearchInput.es.js +3 -3
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +1 -1
- 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.es.js +2 -2
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -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.es.js +1 -1
- package/dist/components/inputs/index.cjs.js +1 -1
- package/dist/components/inputs/index.d.ts +1 -0
- package/dist/components/inputs/index.es.js +6 -4
- package/dist/components/lists/FileList/FileList.es.js +1 -1
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/lists/FileList/FileListItem.es.js +5 -5
- package/dist/components/lists/TabList.stories.cjs.js +1 -1
- package/dist/components/lists/TabList.stories.es.js +3 -3
- package/dist/{createSvgIcon-BOQCM03y.cjs → createSvgIcon-BFvGxBdo.cjs} +1 -1
- package/dist/{createSvgIcon-Dspfpz-l.js → createSvgIcon-D51qQ1iy.js} +2 -2
- package/dist/{createSvgIcon-xJp3_zwo.js → createSvgIcon-RcVfBE0a.js} +8 -8
- package/dist/fr-BmGEYD_b.js +335 -0
- package/dist/fr-D4QyQkl7.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +98 -96
- package/dist/{refType-BBFUe6fu.js → refType-CRZJc9ll.js} +1 -1
- package/dist/{styled-D8lXwcQy.js → styled-Cu97anhh.js} +1 -1
- package/dist/{useIsFocusVisible-B88all80.js → useIsFocusVisible-B0YhMbQl.js} +1 -1
- package/dist/{useIsFocusVisible-9FderFRK.cjs → useIsFocusVisible-B2ErvDHn.cjs} +1 -1
- package/dist/{useSlotProps-BoMYRJkF.js → useSlotProps-BE7y-efU.js} +2 -2
- package/dist/{useTheme-Bo1inEHN.js → useTheme-zz1qDqSf.js} +1 -1
- package/dist/{useThemeProps-CZzcR_pm.js → useThemeProps-HPaoKsTZ.js} +7 -7
- package/dist/useTimeout-CT5mhldn.js +47 -0
- package/dist/useTimeout-D8rbe5ty.cjs +1 -0
- package/package.json +1 -1
- package/dist/LocalizationProvider-BD64DNxF.js +0 -903
- package/dist/LocalizationProvider-DqwEOZOd.cjs +0 -5
- package/dist/useTimeout-C7IkLqZ9.js +0 -47
- package/dist/useTimeout-DHarDhEH.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as l, e as g } from "./useThemeProps-
|
|
1
|
+
import { _ as l, e as g } from "./useThemeProps-HPaoKsTZ.js";
|
|
2
2
|
import { i as h } from "./isHostComponent-kiaBvYVo.js";
|
|
3
|
-
import { c as S } from "./styled-
|
|
3
|
+
import { c as S } from "./styled-Cu97anhh.js";
|
|
4
4
|
import { a as x } from "./useForkRef-CQ5u1_mH.js";
|
|
5
5
|
function N(n, s, e) {
|
|
6
6
|
return n === void 0 || h(n) ? s : l({}, s, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import { u, T as o, d as t } from "./useThemeProps-
|
|
2
|
+
import { u, T as o, d as t } from "./useThemeProps-HPaoKsTZ.js";
|
|
3
3
|
function a() {
|
|
4
4
|
const e = u(t);
|
|
5
5
|
return process.env.NODE_ENV !== "production" && s.useDebugValue(e), e[o] || e;
|
|
@@ -2265,15 +2265,15 @@ export {
|
|
|
2265
2265
|
vt as c,
|
|
2266
2266
|
Mn as d,
|
|
2267
2267
|
ce as e,
|
|
2268
|
-
|
|
2268
|
+
He as f,
|
|
2269
2269
|
Fr as g,
|
|
2270
|
-
|
|
2270
|
+
kn as h,
|
|
2271
2271
|
ie as i,
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2272
|
+
Nn as j,
|
|
2273
|
+
Bn as k,
|
|
2274
|
+
ae as l,
|
|
2275
|
+
At as m,
|
|
2276
|
+
St as n,
|
|
2277
2277
|
G as o,
|
|
2278
2278
|
qr as p,
|
|
2279
2279
|
_t as q,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { u as c } from "./useForkRef-CQ5u1_mH.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
|
+
l as a,
|
|
46
|
+
h as u
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("react"),o=require("./useForkRef-DfdM2MN5.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": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.1709712957",
|
|
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",
|