@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.
Files changed (92) hide show
  1. package/dist/{Button-wMPAZpnO.cjs → Button-Tkz5NkF_.cjs} +1 -1
  2. package/dist/{Button-CmBnwwn3.js → Button-X7eWZQfX.js} +12 -12
  3. package/dist/ButtonBase-CKfcGhaU.js +892 -0
  4. package/dist/ButtonBase-Cg8cBMzO.cjs +75 -0
  5. package/dist/Input-CAb0EFzc.cjs +1 -0
  6. package/dist/{Input-Dk-cN0Fb.js → Input-CbYjsRHK.js} +10 -10
  7. package/dist/{InputBase-BbXy6VDy.js → InputBase-B13Nzzhk.js} +157 -138
  8. package/dist/InputBase-CKlCw9fj.cjs +4 -0
  9. package/dist/assets/index.css +1 -1
  10. package/dist/components/AnotherComponent/AnotherComponent.cjs.js +1 -1
  11. package/dist/components/AnotherComponent/AnotherComponent.es.js +3 -3
  12. package/dist/components/BasicButtons/BasicButtons.cjs.js +1 -1
  13. package/dist/components/BasicButtons/BasicButtons.es.js +10 -10
  14. package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +1 -1
  15. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +28 -1
  16. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +333 -126
  17. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  18. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +8 -8
  19. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  20. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  21. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  22. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  23. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  24. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  25. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  26. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  27. package/dist/components/index.cjs.js +1 -1
  28. package/dist/components/index.d.ts +0 -4
  29. package/dist/components/index.es.js +12 -20
  30. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  31. package/dist/components/inputs/SearchInput/SearchInput.es.js +247 -77
  32. package/dist/components/inputs/TextInput/TextInput.cjs.js +13 -11
  33. package/dist/components/inputs/TextInput/TextInput.es.js +404 -367
  34. package/dist/{createSvgIcon-BivvPRyr.cjs → createSvgIcon-jvI3LIfI.cjs} +1 -1
  35. package/dist/{createSvgIcon-DLZM3vHe.js → createSvgIcon-qXNZi4k1.js} +14 -14
  36. package/dist/{extendSxProp-CVD6j4mA.js → extendSxProp-BRHiEwyk.js} +1 -1
  37. package/dist/{extendSxProp-D5gpnasP.cjs → extendSxProp-CvhhU9Vb.cjs} +1 -1
  38. package/dist/index.cjs.js +1 -1
  39. package/dist/index.es.js +10 -18
  40. package/dist/useForkRef-82uiK71d.cjs +1 -0
  41. package/dist/useForkRef-CLcOhrzI.js +44 -0
  42. package/dist/useTheme-BWRyHzdn.js +65 -0
  43. package/dist/useTheme-BpLcDNG1.cjs +1 -0
  44. package/dist/{useThemeProps-kb_vU-1P.js → useThemeProps-B6yTTpAe.js} +714 -741
  45. package/dist/{useThemeProps-C6ClLEqN.cjs → useThemeProps-CDriK9TK.cjs} +14 -14
  46. package/package.json +1 -2
  47. package/dist/ButtonBase-Bw43M3TO.js +0 -831
  48. package/dist/ButtonBase-XPViWbp_.cjs +0 -75
  49. package/dist/CircularProgress-BCdQaPFF.cjs +0 -28
  50. package/dist/CircularProgress-DRE9BLTL.js +0 -215
  51. package/dist/Input-DHic6dYE.cjs +0 -1
  52. package/dist/InputBase-WBNJQn8V.cjs +0 -4
  53. package/dist/Tab-C2Tmr8Sv.cjs +0 -1
  54. package/dist/Tab-CWxCqAvH.js +0 -237
  55. package/dist/TransitionGroupContext-C7wWJ6l7.js +0 -14
  56. package/dist/TransitionGroupContext-g4tmk10h.cjs +0 -1
  57. package/dist/Typography-B1bdo7yt.js +0 -177
  58. package/dist/Typography-CO64FVmw.cjs +0 -1
  59. package/dist/components/Dropzone/Dropzone.cjs.js +0 -5
  60. package/dist/components/Dropzone/Dropzone.d.ts +0 -9
  61. package/dist/components/Dropzone/Dropzone.es.js +0 -1209
  62. package/dist/components/Dropzone/index.cjs.js +0 -1
  63. package/dist/components/Dropzone/index.d.ts +0 -2
  64. package/dist/components/Dropzone/index.es.js +0 -4
  65. package/dist/components/lists/FileList/FileList.cjs.js +0 -1
  66. package/dist/components/lists/FileList/FileList.d.ts +0 -7
  67. package/dist/components/lists/FileList/FileList.es.js +0 -19
  68. package/dist/components/lists/FileList/FileListItem.cjs.js +0 -2
  69. package/dist/components/lists/FileList/FileListItem.d.ts +0 -13
  70. package/dist/components/lists/FileList/FileListItem.es.js +0 -216
  71. package/dist/components/lists/FileList/index.cjs.js +0 -1
  72. package/dist/components/lists/FileList/index.d.ts +0 -4
  73. package/dist/components/lists/FileList/index.es.js +0 -6
  74. package/dist/components/lists/index.cjs.js +0 -1
  75. package/dist/components/lists/index.d.ts +0 -1
  76. package/dist/components/lists/index.es.js +0 -6
  77. package/dist/createSvgIcon-9NfUaq9H.js +0 -143
  78. package/dist/createSvgIcon-B7HVs3ZC.cjs +0 -2
  79. package/dist/ownerWindow-BoRkeomM.js +0 -23
  80. package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
  81. package/dist/refType-CMQbzE37.js +0 -29
  82. package/dist/refType-dllUCpD8.cjs +0 -1
  83. package/dist/useControlled-BsLcOmhe.js +0 -48
  84. package/dist/useControlled-jN3fqFfv.cjs +0 -3
  85. package/dist/useForkRef-CGd3Nhyb.cjs +0 -1
  86. package/dist/useForkRef-DwN_Iz9R.js +0 -17
  87. package/dist/useIsFocusVisible-BF0lT08B.cjs +0 -1
  88. package/dist/useIsFocusVisible-D8ksiuhS.js +0 -69
  89. package/dist/useTheme-BSwuVDD3.js +0 -9
  90. package/dist/useTheme-C-LTLVMt.cjs +0 -1
  91. package/dist/useTimeout-KN97abZR.js +0 -47
  92. 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,9 +0,0 @@
1
- import * as s from "react";
2
- import { u, T as o, b as t } from "./useThemeProps-kb_vU-1P.js";
3
- function a() {
4
- const e = u(t);
5
- return process.env.NODE_ENV !== "production" && s.useDebugValue(e), e[o] || e;
6
- }
7
- export {
8
- a as u
9
- };
@@ -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;