@cgi-learning-hub/ui 1.6.0-dev.1747671610 → 1.6.0-dev.1747901007

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 (109) hide show
  1. package/dist/{Alert-DW8yCR-B.cjs → Alert-B42sqOEW.cjs} +1 -1
  2. package/dist/{Alert-PmI169Dq.js → Alert-DBgzh1CV.js} +1 -1
  3. package/dist/{Autocomplete-D9hZ2wrR.cjs → Autocomplete-DWREh3mY.cjs} +4 -4
  4. package/dist/{Autocomplete-BIBR54X2.js → Autocomplete-vH2Up7_E.js} +35 -41
  5. package/dist/{Backdrop-3TL73mAe.cjs → Backdrop-B8Ka5yhn.cjs} +1 -1
  6. package/dist/{Backdrop-BxgGvlLM.js → Backdrop-DUGb_yNd.js} +1 -1
  7. package/dist/Badge-CFFO4PIE.cjs +1 -0
  8. package/dist/Badge-DqMmgJeU.js +457 -0
  9. package/dist/{Checkbox-p-PKpEw_.js → Checkbox-TS65wodp.js} +2 -2
  10. package/dist/{Checkbox-XXqW_dbW.cjs → Checkbox-l0TyVwps.cjs} +1 -1
  11. package/dist/{CustomTreeItem-hIRSCwAW.js → CustomTreeItem-CGYxgQZu.js} +3 -3
  12. package/dist/{CustomTreeItem-DPyfIueW.cjs → CustomTreeItem-DkOmd2ol.cjs} +1 -1
  13. package/dist/{DatePicker-BMzW4v1g.js → DatePicker-Bw2Q4r7J.js} +8 -8
  14. package/dist/{DatePicker-CNhBoaI3.cjs → DatePicker-ehvdOpes.cjs} +1 -1
  15. package/dist/{Dialog-B2LKe7ZM.cjs → Dialog-D6WzY_HJ.cjs} +1 -1
  16. package/dist/{Dialog-BzsWl6Vl.js → Dialog-TIA9lSzZ.js} +3 -3
  17. package/dist/{DialogTitle-SwUSpeBT.cjs → DialogTitle-3J6aq9qI.cjs} +1 -1
  18. package/dist/{DialogTitle-CVvztEM0.js → DialogTitle-Dwy3CaSV.js} +1 -1
  19. package/dist/{ListItemText-B8jlTz59.cjs → ListItemText-C4HujomF.cjs} +1 -1
  20. package/dist/{ListItemText-BeyHu1da.js → ListItemText-CpNLkk9h.js} +1 -1
  21. package/dist/{Menu-By6cOqEO.js → Menu-B43ouCWx.js} +3 -3
  22. package/dist/{Menu-BjrN8rMF.cjs → Menu-DL9W9Ad_.cjs} +1 -1
  23. package/dist/Modal-DheFVbb9.cjs +2 -0
  24. package/dist/{Modal-vrLLqk9Y.js → Modal-GbNoYWDt.js} +5 -4
  25. package/dist/{Popper-yO_RaCbM.cjs → Popper-Bzo9-6GK.cjs} +1 -1
  26. package/dist/{Popper-DfwuvxaQ.js → Popper-CpecBTnq.js} +1 -1
  27. package/dist/{Radio-BqY-su_F.js → Radio-CcP--hXF.js} +2 -2
  28. package/dist/{Radio-C7zzpRFc.cjs → Radio-DyOcq-qZ.cjs} +1 -1
  29. package/dist/{RadioGroup-BQvlYFpE.js → RadioGroup-CYy8kuyP.js} +1 -1
  30. package/dist/{RadioGroup-BlUWRmLG.cjs → RadioGroup-CfxZyChX.cjs} +1 -1
  31. package/dist/{Select-Doay7ukI.cjs → Select-AcDK5nam.cjs} +1 -1
  32. package/dist/{Select-DZMwqCYA.js → Select-DaVDiPRr.js} +1 -1
  33. package/dist/{Switch-CEfqaD33.cjs → Switch-Bsi_5s-3.cjs} +1 -1
  34. package/dist/{Switch-Bg4QB4PJ.js → Switch-CFOFmdXw.js} +2 -2
  35. package/dist/{SwitchBase-DvCITKv8.cjs → SwitchBase-BAC5BgOW.cjs} +1 -1
  36. package/dist/{SwitchBase-EDFBMPd7.js → SwitchBase-BznD_7MN.js} +1 -1
  37. package/dist/{Tab-52AkFc9v.js → Tab-DXSeiuQu.js} +2 -2
  38. package/dist/{Tab-C6H241Pf.cjs → Tab-zTI8Z8pR.cjs} +1 -1
  39. package/dist/{TextField-bE2NUKKK.cjs → TextField-C8VKBQV3.cjs} +1 -1
  40. package/dist/{TextField-DG9mRp_m.js → TextField-J1kMLPQz.js} +2 -2
  41. package/dist/{Badge-rX7YUmBc.js → ToggleButtonGroup-BLPwuacW.js} +2492 -2937
  42. package/dist/ToggleButtonGroup-D5EDQM0v.cjs +138 -0
  43. package/dist/{Tooltip-DCgaU2em.js → Tooltip-Cl2Ew6vp.js} +2 -2
  44. package/dist/{Tooltip-D_w-IJoD.cjs → Tooltip-DXI1DHeO.cjs} +1 -1
  45. package/dist/components/Alert/Alert.cjs.js +1 -1
  46. package/dist/components/Alert/Alert.es.js +1 -1
  47. package/dist/components/Alert/index.cjs.js +1 -1
  48. package/dist/components/Alert/index.es.js +1 -1
  49. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  50. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  51. package/dist/components/DatePicker/index.cjs.js +1 -1
  52. package/dist/components/DatePicker/index.es.js +1 -1
  53. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  54. package/dist/components/Dialog/Dialog.es.js +1 -1
  55. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  56. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -1
  57. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  58. package/dist/components/PasswordInput/PasswordInput.es.js +1 -1
  59. package/dist/components/TreeView/TreeView.cjs.js +1 -1
  60. package/dist/components/TreeView/TreeView.es.js +4 -4
  61. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
  62. package/dist/components/TreeView/components/CustomTreeItem.es.js +1 -1
  63. package/dist/components/index.cjs.js +1 -1
  64. package/dist/components/index.es.js +400 -399
  65. package/dist/components/stories/Alert.stories.cjs.js +1 -1
  66. package/dist/components/stories/Alert.stories.es.js +1 -1
  67. package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
  68. package/dist/components/stories/Autocomplete.stories.es.js +2 -2
  69. package/dist/components/stories/Badge.stories.cjs.js +1 -0
  70. package/dist/components/stories/Badge.stories.d.ts +17 -0
  71. package/dist/components/stories/Badge.stories.es.js +161 -0
  72. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  73. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  74. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  75. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  76. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  77. package/dist/components/stories/Dialog.stories.es.js +1 -1
  78. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  79. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  80. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  81. package/dist/components/stories/Menu.stories.es.js +1 -1
  82. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  83. package/dist/components/stories/RadioGroup.stories.es.js +2 -2
  84. package/dist/components/stories/Select.stories.cjs.js +1 -1
  85. package/dist/components/stories/Select.stories.es.js +1 -1
  86. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  87. package/dist/components/stories/TabList.stories.es.js +1 -1
  88. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  89. package/dist/components/stories/TextField.stories.es.js +1 -1
  90. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  91. package/dist/components/stories/Tooltip.stories.es.js +1 -1
  92. package/dist/components/stories/TreeView.stories.cjs.js +1 -1
  93. package/dist/components/stories/TreeView.stories.es.js +2 -2
  94. package/dist/index.cjs.js +1 -1
  95. package/dist/index.es.js +400 -399
  96. package/dist/resolveComponentProps-DWSW1fip.cjs +1 -0
  97. package/dist/resolveComponentProps-GCsHjsGW.js +80 -0
  98. package/dist/usePreviousProps-ByGlbpJ6.js +10 -0
  99. package/dist/usePreviousProps-jC3PWcIp.cjs +1 -0
  100. package/dist/useSlot-DhqI4pZ8.cjs +1 -0
  101. package/dist/useSlot-WWh43uDP.js +48 -0
  102. package/dist/{useSlotProps-B_D8u0j-.js → useSlotProps-CSfMm_AK.js} +1 -1
  103. package/dist/useSlotProps-CrmlYV9C.cjs +1 -0
  104. package/package.json +1 -1
  105. package/dist/Badge-DhyDno9j.cjs +0 -138
  106. package/dist/Modal-DxwlW5NV.cjs +0 -2
  107. package/dist/useSlot-BDb1lvxu.js +0 -125
  108. package/dist/useSlot-W0PiuVaZ.cjs +0 -1
  109. package/dist/useSlotProps-OhEflPiz.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";const h=require("./generateUtilityClasses-CMlilM6r.cjs");function O(t){return typeof t=="string"}function k(t,c,e){return t===void 0||O(t)?c:{...c,ownerState:{...c.ownerState,...e}}}function E(t,c=[]){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!c.includes(n)).forEach(n=>{e[n]=t[n]}),e}function v(t){if(t===void 0)return{};const c={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&typeof t[e]=="function")).forEach(e=>{c[e]=t[e]}),c}function A(t){const{getSlotProps:c,additionalProps:e,externalSlotProps:n,externalForwardedProps:s,className:y}=t;if(!c){const g=h.clsx(e==null?void 0:e.className,y,s==null?void 0:s.className,n==null?void 0:n.className),N={...e==null?void 0:e.style,...s==null?void 0:s.style,...n==null?void 0:n.style},i={...e,...s,...n};return g.length>0&&(i.className=g),Object.keys(N).length>0&&(i.style=N),{props:i,internalRef:void 0}}const H=E({...s,...n}),a=v(n),C=v(s),f=c(H),m=h.clsx(f==null?void 0:f.className,e==null?void 0:e.className,y,s==null?void 0:s.className,n==null?void 0:n.className),l={...f==null?void 0:f.style,...e==null?void 0:e.style,...s==null?void 0:s.style,...n==null?void 0:n.style},u={...f,...e,...C,...a};return m.length>0&&(u.className=m),Object.keys(l).length>0&&(u.style=l),{props:u,internalRef:f.ref}}function R(t,c,e){return typeof t=="function"?t(c,e):t}exports.appendOwnerState=k;exports.extractEventHandlers=E;exports.mergeSlotProps=A;exports.resolveComponentProps=R;
@@ -0,0 +1,80 @@
1
+ import { H as l } from "./generateUtilityClasses-DngCqveO.js";
2
+ function O(s) {
3
+ return typeof s == "string";
4
+ }
5
+ function A(s, c, e) {
6
+ return s === void 0 || O(s) ? c : {
7
+ ...c,
8
+ ownerState: {
9
+ ...c.ownerState,
10
+ ...e
11
+ }
12
+ };
13
+ }
14
+ function k(s, c = []) {
15
+ if (s === void 0)
16
+ return {};
17
+ const e = {};
18
+ return Object.keys(s).filter((n) => n.match(/^on[A-Z]/) && typeof s[n] == "function" && !c.includes(n)).forEach((n) => {
19
+ e[n] = s[n];
20
+ }), e;
21
+ }
22
+ function H(s) {
23
+ if (s === void 0)
24
+ return {};
25
+ const c = {};
26
+ return Object.keys(s).filter((e) => !(e.match(/^on[A-Z]/) && typeof s[e] == "function")).forEach((e) => {
27
+ c[e] = s[e];
28
+ }), c;
29
+ }
30
+ function R(s) {
31
+ const {
32
+ getSlotProps: c,
33
+ additionalProps: e,
34
+ externalSlotProps: n,
35
+ externalForwardedProps: t,
36
+ className: i
37
+ } = s;
38
+ if (!c) {
39
+ const g = l(e == null ? void 0 : e.className, i, t == null ? void 0 : t.className, n == null ? void 0 : n.className), h = {
40
+ ...e == null ? void 0 : e.style,
41
+ ...t == null ? void 0 : t.style,
42
+ ...n == null ? void 0 : n.style
43
+ }, m = {
44
+ ...e,
45
+ ...t,
46
+ ...n
47
+ };
48
+ return g.length > 0 && (m.className = g), Object.keys(h).length > 0 && (m.style = h), {
49
+ props: m,
50
+ internalRef: void 0
51
+ };
52
+ }
53
+ const a = k({
54
+ ...t,
55
+ ...n
56
+ }), v = H(n), E = H(t), f = c(a), y = l(f == null ? void 0 : f.className, e == null ? void 0 : e.className, i, t == null ? void 0 : t.className, n == null ? void 0 : n.className), N = {
57
+ ...f == null ? void 0 : f.style,
58
+ ...e == null ? void 0 : e.style,
59
+ ...t == null ? void 0 : t.style,
60
+ ...n == null ? void 0 : n.style
61
+ }, u = {
62
+ ...f,
63
+ ...e,
64
+ ...E,
65
+ ...v
66
+ };
67
+ return y.length > 0 && (u.className = y), Object.keys(N).length > 0 && (u.style = N), {
68
+ props: u,
69
+ internalRef: f.ref
70
+ };
71
+ }
72
+ function W(s, c, e) {
73
+ return typeof s == "function" ? s(c, e) : s;
74
+ }
75
+ export {
76
+ A as a,
77
+ k as e,
78
+ R as m,
79
+ W as r
80
+ };
@@ -0,0 +1,10 @@
1
+ import * as r from "react";
2
+ const t = (s) => {
3
+ const e = r.useRef({});
4
+ return r.useEffect(() => {
5
+ e.current = s;
6
+ }), e.current;
7
+ };
8
+ export {
9
+ t as u
10
+ };
@@ -0,0 +1 @@
1
+ "use strict";const u=require("react");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,c.get?c:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=o(u),s=e=>{const t=n.useRef({});return n.useEffect(()=>{t.current=e}),t.current};exports.usePreviousProps=s;
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./resolveComponentProps-DWSW1fip.cjs"),R=require("./useForkRef-CFhhTu-Q.cjs");function T(o,s){const{className:i,elementType:P,ownerState:p,externalForwardedProps:a,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...S}=s,{component:d,slots:r={[o]:void 0},slotProps:w={[o]:void 0},...F}=a,u=r[o]||P,e=n.resolveComponentProps(w[o],p),{props:{component:f,...m},internalRef:C}=n.mergeSlotProps({className:i,...S,externalForwardedProps:o==="root"?F:void 0,externalSlotProps:e}),x=R.useForkRef(C,e==null?void 0:e.ref,s.ref),t=o==="root"?f||d:f,y=n.appendOwnerState(u,{...o==="root"&&!d&&!r[o]&&l,...o!=="root"&&!r[o]&&l,...m,...t&&!c&&{as:t},...t&&c&&{component:t},ref:x},p);return[u,y]}exports.useSlot=T;
@@ -0,0 +1,48 @@
1
+ import { r as y, m as T, a as g } from "./resolveComponentProps-GCsHjsGW.js";
2
+ import { u as h } from "./useForkRef-u29GSuCu.js";
3
+ function E(o, n) {
4
+ const {
5
+ className: f,
6
+ elementType: i,
7
+ ownerState: s,
8
+ externalForwardedProps: u,
9
+ internalForwardedProps: p,
10
+ shouldForwardComponentProp: l = !1,
11
+ ...P
12
+ } = n, {
13
+ component: a,
14
+ slots: t = {
15
+ [o]: void 0
16
+ },
17
+ slotProps: m = {
18
+ [o]: void 0
19
+ },
20
+ ...w
21
+ } = u, d = t[o] || i, e = y(m[o], s), {
22
+ props: {
23
+ component: c,
24
+ ...S
25
+ },
26
+ internalRef: F
27
+ } = T({
28
+ className: f,
29
+ ...P,
30
+ externalForwardedProps: o === "root" ? w : void 0,
31
+ externalSlotProps: e
32
+ }), x = h(F, e == null ? void 0 : e.ref, n.ref), r = o === "root" ? c || a : c, C = g(d, {
33
+ ...o === "root" && !a && !t[o] && p,
34
+ ...o !== "root" && !t[o] && p,
35
+ ...S,
36
+ ...r && !l && {
37
+ as: r
38
+ },
39
+ ...r && l && {
40
+ component: r
41
+ },
42
+ ref: x
43
+ }, s);
44
+ return [d, C];
45
+ }
46
+ export {
47
+ E as u
48
+ };
@@ -1,4 +1,4 @@
1
- import { r as m, m as P, a as S } from "./useSlot-BDb1lvxu.js";
1
+ import { r as m, m as P, a as S } from "./resolveComponentProps-GCsHjsGW.js";
2
2
  import { u as c } from "./useForkRef-u29GSuCu.js";
3
3
  function x(e) {
4
4
  var t;
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./resolveComponentProps-DWSW1fip.cjs"),f=require("./useForkRef-CFhhTu-Q.cjs");function S(r){var t;const{elementType:n,externalSlotProps:p,ownerState:s,skipResolvingSlotProps:l=!1,...c}=r,e=l?{}:o.resolveComponentProps(p,s),{props:i,internalRef:u}=o.mergeSlotProps({...c,externalSlotProps:e}),P=f.useForkRef(u,e==null?void 0:e.ref,(t=r.additionalProps)==null?void 0:t.ref);return o.appendOwnerState(n,{...i,ref:P},s)}exports.useSlotProps=S;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "1.6.0-dev.1747671610",
3
+ "version": "1.6.0-dev.1747901007",
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",