@cgi-learning-hub/ui 1.2.0-dev.1725543340 → 1.2.0-dev.1725543764
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-BDMtAH2P.cjs +1 -0
- package/dist/{Box-BJvmuM0Y.js → Box-CONPkck2.js} +32 -30
- package/dist/Button-By3A0teb.js +454 -0
- package/dist/Button-CBAa7bmK.cjs +1 -0
- package/dist/ButtonBase-D0vqeM8I.js +890 -0
- package/dist/ButtonBase-DePtV_m6.cjs +75 -0
- package/dist/CircularProgress-BRnSv2J2.cjs +28 -0
- package/dist/CircularProgress-BrfcRJbv.js +251 -0
- package/dist/DatePicker-Cw1xQ3Sn.cjs +19 -0
- package/dist/{DatePicker-vhA6Fe5s.js → DatePicker-wZ1VHlXF.js} +4665 -4520
- package/dist/DefaultButton-B2fD87Nn.cjs +1 -0
- package/dist/DefaultButton-B8Qi2O0K.js +353 -0
- package/dist/DefaultPropsProvider-B6IbLm7M.cjs +17 -0
- package/dist/DefaultPropsProvider-QV6PDjPd.js +468 -0
- package/dist/IconButton-BiLAYORS.js +239 -0
- package/dist/IconButton-DE-QtB3Q.cjs +2 -0
- package/dist/{InputAdornment-zaw7AFWU.js → InputAdornment-7ED2C-w1.js} +81 -65
- package/dist/InputAdornment-CJbpwt2R.cjs +1 -0
- package/dist/InputBase-LZPaeC-A.cjs +3 -0
- package/dist/InputBase-jbXydPMc.js +802 -0
- package/dist/{Stack-Dlgk5t_M.js → Stack-BzF_6-v5.js} +62 -60
- package/dist/Stack-D6Kv6y1D.cjs +1 -0
- package/dist/Tabs-CV_eM5RY.js +1222 -0
- package/dist/Tabs-DcqpjpXb.cjs +4 -0
- package/dist/TextField-DAxS82qf.cjs +12 -0
- package/dist/{TextField-DG1754qQ.js → TextField-G9MOGCdw.js} +3033 -2408
- package/dist/{Tooltip-C7ZUZylZ.js → Tooltip-D_4ANHAc.js} +4682 -3406
- package/dist/Tooltip-Ma-NowZd.cjs +100 -0
- package/dist/TransitionGroupContext-B5aSBz0G.js +64 -0
- package/dist/TransitionGroupContext-gQFtuZSh.cjs +1 -0
- package/dist/Typography-4kqbsc6q.js +258 -0
- package/dist/Typography-CNQVeQXr.cjs +1 -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 +108 -67
- 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 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- 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 +10 -11
- package/dist/components/IconButton.stories.cjs.js +1 -1
- package/dist/components/IconButton.stories.es.js +13 -14
- 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 +3 -1
- package/dist/components/PaperHeader/PaperHeader.es.js +26 -28
- 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/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 +100 -87
- 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 +2 -0
- package/dist/components/index.es.js +244 -236
- package/dist/composeClasses-B_ETVugV.cjs +1 -0
- package/dist/composeClasses-zmPRtZOg.js +16 -0
- package/dist/createSvgIcon-B6bEgasO.js +249 -0
- package/dist/createSvgIcon-C92jLZ0q.cjs +2 -0
- package/dist/createSvgIcon-Cdsg9tFu.js +88 -0
- package/dist/createSvgIcon-CrOALbij.cjs +1 -0
- package/dist/extendSxProp-BpSXIdup.js +37 -0
- package/dist/extendSxProp-DVE8Tgj8.cjs +1 -0
- package/dist/{fr-CXEmlY0d.js → fr-D92L3a1M.js} +13 -13
- package/dist/{fr-C4bcUC-9.cjs → fr-EMw1nUC-.cjs} +1 -1
- package/dist/identifier-7NboR24y.cjs +59 -0
- package/dist/identifier-Bsv46xiT.js +2930 -0
- package/dist/index-C9spydU3.js +89 -0
- package/dist/index-DHDspyh-.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +244 -236
- package/dist/{ownerWindow-C7EH1lr6.js → ownerWindow-BoRkeomM.js} +2 -2
- package/dist/{refType-DiVIFcsY.js → refType-BnS1d2D8.js} +1 -1
- package/dist/{refType-D1DDOFsy.cjs → refType-YgbJS0xl.cjs} +1 -1
- package/dist/useControlled-Bf7_InaL.cjs +3 -0
- package/dist/useControlled-D59BLg1S.js +48 -0
- package/dist/useEventCallback-BgMlqKLP.js +14 -0
- package/dist/useEventCallback-CrCf96iG.cjs +1 -0
- package/dist/useId-CyGZMA-F.js +19 -0
- package/dist/useId-D5Txt-1B.cjs +1 -0
- package/dist/useTheme-A9inJAFh.cjs +1 -0
- package/dist/useTheme-C0nMwKpp.js +128 -0
- package/dist/{useTheme-1gSw-INq.js → useTheme-DzMeSzHc.js} +5 -5
- package/dist/useTheme-Zq6D7sUp.cjs +1 -0
- package/dist/useThemeProps-YFPF1eJp.js +40 -0
- package/dist/useThemeProps-r2yCksSx.cjs +1 -0
- package/package.json +15 -15
- package/dist/Box-2ZrLOc7U.cjs +0 -1
- package/dist/Button-HyZp1VKI.js +0 -359
- package/dist/Button-NhaA68Of.cjs +0 -1
- package/dist/ButtonBase-CnINN-P4.cjs +0 -75
- package/dist/ButtonBase-cOL6Mpcp.js +0 -827
- package/dist/CircularProgress-01RZzfpF.cjs +0 -28
- package/dist/CircularProgress-DO4r9-x8.js +0 -217
- package/dist/DatePicker-GTtXZK-p.cjs +0 -19
- package/dist/DefaultButton-BMmuKPgA.cjs +0 -1
- package/dist/DefaultButton-CKY6tuni.js +0 -258
- package/dist/IconButton-3v-0zgZW.cjs +0 -2
- package/dist/IconButton-BBfmzBP6.js +0 -184
- package/dist/InputAdornment-DHmtETz3.cjs +0 -1
- package/dist/InputBase-BpGQgBej.cjs +0 -3
- package/dist/InputBase-COUxfhh1.js +0 -794
- package/dist/Stack-D9IYPfJ8.cjs +0 -1
- package/dist/Tabs-Blo-8Ro5.js +0 -1091
- package/dist/Tabs-D0e7cB4l.cjs +0 -4
- package/dist/TextField-8AuRLRIK.cjs +0 -12
- package/dist/Tooltip-CFVJXplM.cjs +0 -95
- package/dist/TransitionGroupContext-BkoHK5Kx.js +0 -14
- package/dist/TransitionGroupContext-mYDSzffd.cjs +0 -1
- package/dist/Typography-DjrvRhOr.js +0 -178
- package/dist/Typography-YHooSvuR.cjs +0 -1
- package/dist/createStyled--XbpooZB.js +0 -142
- package/dist/createStyled-CuYz_ckk.cjs +0 -1
- package/dist/createSvgIcon-CUiH3cta.cjs +0 -1
- package/dist/createSvgIcon-D29Io9jD.js +0 -183
- package/dist/createSvgIcon-DTc4Xvfk.cjs +0 -2
- package/dist/createSvgIcon-DvOXtgXV.js +0 -76
- package/dist/identifier-CAQ9PWqs.js +0 -3046
- package/dist/identifier-CWIj084w.cjs +0 -50
- package/dist/isHostComponent-PydJW4A4.cjs +0 -1
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/styled-Bt4oYVnF.cjs +0 -17
- package/dist/styled-Co-8YWfm.js +0 -533
- package/dist/useControlled-DKpcyPsg.cjs +0 -3
- package/dist/useControlled-DoRrpN8o.js +0 -48
- package/dist/useId-BW-oWmul.js +0 -19
- package/dist/useId-Cw0TtD-8.cjs +0 -1
- package/dist/useIsFocusVisible-Bv_7uvif.cjs +0 -1
- package/dist/useIsFocusVisible-DhASXQ4o.js +0 -69
- package/dist/useTheme-Dm6RnXrf.cjs +0 -1
- package/dist/useTheme-HJhneR9g.js +0 -99
- package/dist/useTheme-T2P7WhLG.cjs +0 -1
- package/dist/useThemeProps-BKIVQv3E.js +0 -17
- package/dist/useThemeProps-BfZ3lLQs.js +0 -27
- package/dist/useThemeProps-BpFUkYqe.cjs +0 -1
- package/dist/useThemeProps-Co5ylM0H.cjs +0 -1
- package/dist/useTimeout-BdvDipeg.js +0 -47
- package/dist/useTimeout-XUWYBnl6.cjs +0 -1
|
@@ -1,99 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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;
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
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;
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -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 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;
|