@cgi-learning-hub/ui 1.3.2-dev.1731948416 → 1.3.2-dev.1732013713

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 (151) hide show
  1. package/dist/Backdrop-KAJqifAq.cjs +1 -0
  2. package/dist/{Backdrop-CV5zVFtT.js → Backdrop-RBPtVAPX.js} +220 -265
  3. package/dist/{Box-MG2tJmr8.js → Box-UE-zctbJ.js} +3 -3
  4. package/dist/{Button-Ba8IQCCs.js → Button-Bjy0iPNm.js} +4 -4
  5. package/dist/{ButtonBase-BdvHQ0Vd.js → ButtonBase-CFD7NVUc.js} +21 -21
  6. package/dist/Checkbox-Ct5E_6h7.js +241 -0
  7. package/dist/Checkbox-CuYTY0gd.cjs +1 -0
  8. package/dist/{CircularProgress-BAVvonKL.js → CircularProgress-By02Sdoh.js} +3 -3
  9. package/dist/{DatePicker-DCsrvr3a.cjs → DatePicker-rhgpaD-r.cjs} +14 -14
  10. package/dist/{DatePicker-DoB4WsQR.js → DatePicker-u4rtXGeo.js} +53 -48
  11. package/dist/{DefaultPropsProvider-BE624hnX.js → DefaultPropsProvider-CaRoy5OV.js} +24 -24
  12. package/dist/FormGroup-BBYEQB4C.cjs +1 -0
  13. package/dist/FormGroup-BVtE8Mrv.js +348 -0
  14. package/dist/FormLabel-B4QlkhhB.js +424 -0
  15. package/dist/FormLabel-D8jYibc1.cjs +2 -0
  16. package/dist/{IconButton-BM6tD2wP.js → IconButton-Av8eJ5IG.js} +4 -4
  17. package/dist/InputAdornment-BJfpEQAa.cjs +1 -0
  18. package/dist/{InputAdornment-DwegBPlu.js → InputAdornment-COPtZlSD.js} +5 -5
  19. package/dist/{InputBase-Ck6jdGdt.js → InputBase-Bbgoz8GV.js} +186 -210
  20. package/dist/InputBase-Ctmib7Br.cjs +3 -0
  21. package/dist/MenuItem-D7HWYhF3.js +277 -0
  22. package/dist/MenuItem-Els-vJZW.cjs +1 -0
  23. package/dist/{TextField-ptOYG3fA.js → Select-BlPQngVF.js} +1458 -2424
  24. package/dist/Select-ipcMZ4iK.cjs +11 -0
  25. package/dist/{Stack-vO5Ta57O.js → Stack-y1PjTHKX.js} +18 -18
  26. package/dist/SwitchBase-URM3X3YZ.cjs +1 -0
  27. package/dist/SwitchBase-yCuH0Tqk.js +261 -0
  28. package/dist/{Tabs-DSWPmVfN.js → Tabs-DK4Bc5xo.js} +10 -10
  29. package/dist/{Tabs-e8UBJZ5z.cjs → Tabs-Nvk94RTW.cjs} +1 -1
  30. package/dist/TextField-BVAkADOb.cjs +1 -0
  31. package/dist/TextField-C-B529_r.js +547 -0
  32. package/dist/{Tooltip-dMZ46-1F.js → Tooltip-DO9GIhWC.js} +1782 -2858
  33. package/dist/Tooltip-DvPL2M0E.cjs +100 -0
  34. package/dist/{Typography-HjpyrRz2.js → Typography-C_ESP41L.js} +4 -4
  35. package/dist/components/Button/Button.es.js +5 -5
  36. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  37. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  38. package/dist/components/DatePicker/index.cjs.js +1 -1
  39. package/dist/components/DatePicker/index.es.js +1 -1
  40. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  41. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  42. package/dist/components/FileList/FileList.es.js +1 -1
  43. package/dist/components/FileList/FileListItem.es.js +6 -6
  44. package/dist/components/Heading/Heading.es.js +2 -2
  45. package/dist/components/Loader/Loader.es.js +1 -1
  46. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  47. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  48. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  49. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  50. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  51. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  52. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  53. package/dist/components/TextInput/TextInput.es.js +1 -1
  54. package/dist/components/index.cjs.js +1 -1
  55. package/dist/components/index.es.js +267 -262
  56. package/dist/components/stories/Alert.stories.cjs.js +1 -0
  57. package/dist/components/{Alert → stories}/Alert.stories.d.ts +1 -1
  58. package/dist/components/{Alert → stories}/Alert.stories.es.js +1 -1
  59. package/dist/components/stories/Button.stories.cjs.js +1 -0
  60. package/dist/components/{Button → stories}/Button.stories.d.ts +1 -1
  61. package/dist/components/{Button → stories}/Button.stories.es.js +2 -2
  62. package/dist/components/stories/Checkbox.stories.cjs.js +1 -0
  63. package/dist/components/stories/Checkbox.stories.d.ts +10 -0
  64. package/dist/components/stories/Checkbox.stories.es.js +28 -0
  65. package/dist/components/{DatePicker → stories}/DatePicker.stories.cjs.js +1 -1
  66. package/dist/components/{DatePicker → stories}/DatePicker.stories.d.ts +1 -1
  67. package/dist/components/{DatePicker → stories}/DatePicker.stories.es.js +1 -1
  68. package/dist/components/stories/Dropzone.stories.cjs.js +1 -0
  69. package/dist/components/{Dropzone → stories}/Dropzone.stories.d.ts +1 -1
  70. package/dist/components/{Dropzone → stories}/Dropzone.stories.es.js +1 -1
  71. package/dist/components/stories/EmptyState.stories.cjs.js +1 -0
  72. package/dist/components/{EmptyState → stories}/EmptyState.stories.d.ts +1 -1
  73. package/dist/components/{EmptyState → stories}/EmptyState.stories.es.js +1 -1
  74. package/dist/components/stories/FileList.stories.cjs.js +1 -0
  75. package/dist/components/{FileList → stories}/FileList.stories.d.ts +1 -1
  76. package/dist/components/{FileList → stories}/FileList.stories.es.js +6 -5
  77. package/dist/components/stories/Heading.stories.cjs.js +1 -0
  78. package/dist/components/{Heading → stories}/Heading.stories.d.ts +1 -1
  79. package/dist/components/{Heading → stories}/Heading.stories.es.js +3 -3
  80. package/dist/components/stories/IconButton.stories.es.js +2 -2
  81. package/dist/components/stories/Loader.stories.cjs.js +1 -0
  82. package/dist/components/{Loader → stories}/Loader.stories.d.ts +1 -1
  83. package/dist/components/{Loader → stories}/Loader.stories.es.js +1 -1
  84. package/dist/components/stories/LoaderBackdrop.stories.cjs.js +1 -0
  85. package/dist/components/{LoaderBackdrop → stories}/LoaderBackdrop.stories.d.ts +1 -1
  86. package/dist/components/{LoaderBackdrop → stories}/LoaderBackdrop.stories.es.js +1 -1
  87. package/dist/components/stories/PasswordInput.stories.cjs.js +1 -0
  88. package/dist/components/{PasswordInput → stories}/PasswordInput.stories.d.ts +1 -1
  89. package/dist/components/{PasswordInput → stories}/PasswordInput.stories.es.js +1 -1
  90. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -0
  91. package/dist/components/stories/RadioGroup.stories.d.ts +8 -0
  92. package/dist/components/stories/RadioGroup.stories.es.js +434 -0
  93. package/dist/components/stories/SearchInput.stories.cjs.js +1 -0
  94. package/dist/components/{SearchInput → stories}/SearchInput.stories.d.ts +1 -1
  95. package/dist/components/{SearchInput → stories}/SearchInput.stories.es.js +1 -1
  96. package/dist/components/stories/Select.stories.cjs.js +1 -0
  97. package/dist/components/stories/Select.stories.d.ts +10 -0
  98. package/dist/components/stories/Select.stories.es.js +52 -0
  99. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  100. package/dist/components/stories/TabList.stories.es.js +10 -10
  101. package/dist/components/stories/TextField.stories.cjs.js +1 -0
  102. package/dist/components/stories/TextField.stories.d.ts +10 -0
  103. package/dist/components/stories/TextField.stories.es.js +69 -0
  104. package/dist/{createSvgIcon-D8j2pi8H.js → createSvgIcon-DxbvMQd7.js} +3 -3
  105. package/dist/{extendSxProp-CrOV7ubJ.js → extendSxProp-XQwkK0m7.js} +1 -1
  106. package/dist/formControlState-DCkDUdfO.cjs +1 -0
  107. package/dist/formControlState-DdQP43Uo.js +21 -0
  108. package/dist/{fr-BbQGEyOf.js → fr-B8_MxRl5.js} +1 -1
  109. package/dist/{identifier-BspJ_uqC.js → identifier-BqadgaK7.js} +4 -4
  110. package/dist/{index-CUYeZpek.js → index-BUxqDIr9.js} +4 -4
  111. package/dist/{index-BD4CTHtk.js → index-CRT92bm7.js} +2 -2
  112. package/dist/index-D7nFYLYq.cjs +1 -0
  113. package/dist/index.cjs.js +1 -1
  114. package/dist/index.es.js +267 -262
  115. package/dist/{memoTheme-CwR5ZU7e.js → memoTheme-DfGVDRrB.js} +1 -1
  116. package/dist/{refType-B0086dcQ.js → refType-DlHf9HvO.js} +1 -1
  117. package/dist/{useTheme-DCeWFyuq.js → resolveComponentProps-CxJ2yAJn.js} +18 -26
  118. package/dist/resolveComponentProps-DTv6xPbb.cjs +1 -0
  119. package/dist/useControlled-BYdyS7Pn.js +31 -0
  120. package/dist/useControlled-Ysk4KqoX.cjs +3 -0
  121. package/dist/useFormControl-CatNKXAi.js +10 -0
  122. package/dist/useFormControl-haP0iPhl.cjs +1 -0
  123. package/dist/useSlot-42jgZftI.cjs +1 -0
  124. package/dist/useSlot-Co14PUn6.js +50 -0
  125. package/dist/useTheme-CtT7O-Wk.js +11 -0
  126. package/dist/{useTheme-B4Cg2FUT.js → useTheme-oM_SFWy4.js} +1 -1
  127. package/dist/useTheme-tZYpFplW.cjs +1 -0
  128. package/dist/{useThemeProps-B87e2Gmx.js → useThemeProps-BlQ3SLfB.js} +4 -4
  129. package/dist/{useThemeProps-kJZsUF6E.js → useThemeProps-FiA8ivG-.js} +3 -3
  130. package/dist/{useTimeout-BFZIFO63.js → useTimeout-D16vpBhn.js} +1 -1
  131. package/package.json +1 -1
  132. package/dist/Backdrop-D1g8gJ4S.cjs +0 -1
  133. package/dist/InputAdornment-CfXhmkcT.cjs +0 -1
  134. package/dist/InputBase-uv1-DNAg.cjs +0 -3
  135. package/dist/TextField-C2b1L1xj.cjs +0 -14
  136. package/dist/Tooltip-bKfA-tNR.cjs +0 -100
  137. package/dist/components/Alert/Alert.stories.cjs.js +0 -1
  138. package/dist/components/Button/Button.stories.cjs.js +0 -1
  139. package/dist/components/Dropzone/Dropzone.stories.cjs.js +0 -1
  140. package/dist/components/EmptyState/EmptyState.stories.cjs.js +0 -1
  141. package/dist/components/FileList/FileList.stories.cjs.js +0 -1
  142. package/dist/components/Heading/Heading.stories.cjs.js +0 -1
  143. package/dist/components/Loader/Loader.stories.cjs.js +0 -1
  144. package/dist/components/LoaderBackdrop/LoaderBackdrop.stories.cjs.js +0 -1
  145. package/dist/components/PasswordInput/PasswordInput.stories.cjs.js +0 -1
  146. package/dist/components/SearchInput/SearchInput.stories.cjs.js +0 -1
  147. package/dist/components/TextInput/TextInput.stories.cjs.js +0 -1
  148. package/dist/components/TextInput/TextInput.stories.d.ts +0 -7
  149. package/dist/components/TextInput/TextInput.stories.es.js +0 -43
  150. package/dist/index-1_dd0hY2.cjs +0 -1
  151. package/dist/useTheme-VRTfPKo-.cjs +0 -1
@@ -1,8 +1,8 @@
1
- import { N as x, O as p, L as h, J as T, u as N, T as y, Q as B, P as e } from "./identifier-BspJ_uqC.js";
1
+ import { N as x, O as p, K as h, J as T, u as N, T as y, Q as B, P as e } from "./identifier-BqadgaK7.js";
2
2
  import * as C from "react";
3
3
  import { jsx as b } from "react/jsx-runtime";
4
- import { u as O } from "./useTheme-B4Cg2FUT.js";
5
- import { e as g } from "./extendSxProp-CrOV7ubJ.js";
4
+ import { u as O } from "./useTheme-oM_SFWy4.js";
5
+ import { e as g } from "./extendSxProp-XQwkK0m7.js";
6
6
  function v(n = {}) {
7
7
  const {
8
8
  themeId: t,
@@ -1,10 +1,10 @@
1
1
  import * as u from "react";
2
- import { J as L, I as j, K as e, n as c, L as I, P as a } from "./identifier-BspJ_uqC.js";
3
- import { s as b, b as D, r as F, u as G, c as U } from "./DefaultPropsProvider-BE624hnX.js";
4
- import { m as _ } from "./memoTheme-CwR5ZU7e.js";
2
+ import { J as L, I as j, L as e, n as c, K as I, P as a } from "./identifier-BqadgaK7.js";
3
+ import { s as b, r as D, a as F, u as G, c as U } from "./DefaultPropsProvider-CaRoy5OV.js";
4
+ import { m as _ } from "./memoTheme-DfGVDRrB.js";
5
5
  import { c as H } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
6
6
  import { jsxs as A, jsx as m } from "react/jsx-runtime";
7
- import { B as J } from "./ButtonBase-BdvHQ0Vd.js";
7
+ import { B as J } from "./ButtonBase-CFD7NVUc.js";
8
8
  function K(o) {
9
9
  return j("MuiButton", o);
10
10
  }
@@ -3,14 +3,14 @@ var je = (n, e, o) => e in n ? Oe(n, e, { enumerable: !0, configurable: !0, writ
3
3
  var le = (n, e, o) => je(n, typeof e != "symbol" ? e + "" : e, o);
4
4
  import * as d from "react";
5
5
  import W, { Children as ke, isValidElement as G, cloneElement as J } from "react";
6
- import { P as t, L as E, J as de, I as Fe } from "./identifier-BspJ_uqC.js";
6
+ import { P as t, K as E, J as de, I as Fe } from "./identifier-BqadgaK7.js";
7
7
  import { jsx as U, jsxs as Ie } from "react/jsx-runtime";
8
- import { s as ne, u as he, c as Ue } from "./DefaultPropsProvider-BE624hnX.js";
9
- import { a as $e, b as ze, u as H } from "./useTimeout-BFZIFO63.js";
8
+ import { s as ne, u as he, c as Ue } from "./DefaultPropsProvider-CaRoy5OV.js";
9
+ import { a as $e, b as ze, u as H } from "./useTimeout-D16vpBhn.js";
10
10
  import { _ as _e, a as Ae, T as ce } from "./TransitionGroupContext-DMJLhY9-.js";
11
11
  import { keyframes as oe } from "@emotion/react";
12
12
  import { u as pe } from "./useForkRef-D-DyzOXj.js";
13
- import { r as Xe, e as Ye } from "./refType-B0086dcQ.js";
13
+ import { r as Ke, e as Xe } from "./refType-DlHf9HvO.js";
14
14
  function fe(n) {
15
15
  try {
16
16
  return n.matches(":focus-visible");
@@ -29,7 +29,7 @@ function ee() {
29
29
  return n;
30
30
  }, ee.apply(null, arguments);
31
31
  }
32
- function Ke(n) {
32
+ function Ye(n) {
33
33
  if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
34
34
  return n;
35
35
  }
@@ -114,7 +114,7 @@ var Ge = Object.values || function(n) {
114
114
  function e(u, i) {
115
115
  var s;
116
116
  s = n.call(this, u, i) || this;
117
- var r = s.handleExited.bind(Ke(s));
117
+ var r = s.handleExited.bind(Ye(s));
118
118
  return s.state = {
119
119
  contextValue: {
120
120
  isMounting: !0
@@ -515,7 +515,7 @@ const b = de("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
515
515
  rippleSize: V,
516
516
  cb: y
517
517
  });
518
- }, [i, C, N]), Y = d.useCallback(() => {
518
+ }, [i, C, N]), X = d.useCallback(() => {
519
519
  k({}, {
520
520
  pulsate: !0
521
521
  });
@@ -529,10 +529,10 @@ const b = de("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsat
529
529
  m.current = null, f((y) => y.length > 0 ? y.slice(1) : y), M.current = R;
530
530
  }, [N]);
531
531
  return d.useImperativeHandle(o, () => ({
532
- pulsate: Y,
532
+ pulsate: X,
533
533
  start: k,
534
534
  stop: F
535
- }), [Y, k, F]), /* @__PURE__ */ U(it, {
535
+ }), [X, k, F]), /* @__PURE__ */ U(it, {
536
536
  className: E(b.root, s.root, r),
537
537
  ref: S,
538
538
  ...p,
@@ -633,7 +633,7 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
633
633
  onBlur: S,
634
634
  onClick: C,
635
635
  onContextMenu: k,
636
- onDragLeave: Y,
636
+ onDragLeave: X,
637
637
  onFocus: F,
638
638
  onFocusVisible: c,
639
639
  onKeyDown: R,
@@ -649,10 +649,10 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
649
649
  touchRippleRef: z,
650
650
  type: L,
651
651
  ..._
652
- } = u, A = d.useRef(null), P = Qe(), ge = pe(P.ref, z), [O, K] = d.useState(!1);
653
- f && O && K(!1), d.useImperativeHandle(i, () => ({
652
+ } = u, A = d.useRef(null), P = Qe(), ge = pe(P.ref, z), [O, Y] = d.useState(!1);
653
+ f && O && Y(!1), d.useImperativeHandle(i, () => ({
654
654
  focusVisible: () => {
655
- K(!0), A.current.focus();
655
+ Y(!0), A.current.focus();
656
656
  }
657
657
  }), []);
658
658
  const ye = P.shouldMount && !h && !f;
@@ -662,12 +662,12 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
662
662
  function v(a, ae, Le = M) {
663
663
  return H((ue) => (ae && ae(ue), Le || P[a](ue), !0));
664
664
  }
665
- const Me = v("start", I), Re = v("stop", k), Te = v("stop", Y), Ee = v("stop", $), Ce = v("stop", (a) => {
665
+ const Me = v("start", I), Re = v("stop", k), Te = v("stop", X), Ee = v("stop", $), Ce = v("stop", (a) => {
666
666
  O && a.preventDefault(), B && B(a);
667
667
  }), xe = v("start", D), Pe = v("stop", T), ve = v("stop", w), Ne = v("stop", (a) => {
668
- fe(a.target) || K(!1), S && S(a);
668
+ fe(a.target) || Y(!1), S && S(a);
669
669
  }, !1), we = H((a) => {
670
- A.current || (A.current = a.currentTarget), fe(a.target) && (K(!0), c && c(a)), F && F(a);
670
+ A.current || (A.current = a.currentTarget), fe(a.target) && (Y(!0), c && c(a)), F && F(a);
671
671
  }), Z = () => {
672
672
  const a = A.current;
673
673
  return l && l !== "button" && !(a.tagName === "A" && a.href);
@@ -682,8 +682,8 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
682
682
  });
683
683
  let q = l;
684
684
  q === "button" && (_.href || _.to) && (q = m);
685
- const X = {};
686
- q === "button" ? (X.type = L === void 0 ? "button" : L, X.disabled = f) : (!_.href && !_.to && (X.role = "button"), f && (X["aria-disabled"] = f));
685
+ const K = {};
686
+ q === "button" ? (K.type = L === void 0 ? "button" : L, K.disabled = f) : (!_.href && !_.to && (K.role = "button"), f && (K["aria-disabled"] = f));
687
687
  const Se = pe(o, A), re = {
688
688
  ...u,
689
689
  centerRipple: s,
@@ -715,7 +715,7 @@ const at = de("MuiButtonBase", ["root", "disabled", "focusVisible"]), ut = (n) =
715
715
  ref: Se,
716
716
  tabIndex: f ? -1 : x,
717
717
  type: L,
718
- ...X,
718
+ ...K,
719
719
  ..._,
720
720
  children: [r, ye ? /* @__PURE__ */ U(be, {
721
721
  ref: ge,
@@ -733,7 +733,7 @@ process.env.NODE_ENV !== "production" && (ct.propTypes = {
733
733
  * A ref for imperative actions.
734
734
  * It currently only supports `focusVisible()` action.
735
735
  */
736
- action: Xe,
736
+ action: Ke,
737
737
  /**
738
738
  * If `true`, the ripples are centered.
739
739
  * They won't start at the cursor interaction position.
@@ -756,7 +756,7 @@ process.env.NODE_ENV !== "production" && (ct.propTypes = {
756
756
  * The component used for the root node.
757
757
  * Either a string to use a HTML element or a component.
758
758
  */
759
- component: Ye,
759
+ component: Xe,
760
760
  /**
761
761
  * If `true`, the component is disabled.
762
762
  * @default false
@@ -0,0 +1,241 @@
1
+ import * as m from "react";
2
+ import { I as S, J as P, L as c, K as R, P as e, n as x } from "./identifier-BqadgaK7.js";
3
+ import { S as $ } from "./SwitchBase-yCuH0Tqk.js";
4
+ import { c as u } from "./createSvgIcon-DxbvMQd7.js";
5
+ import { jsx as s } from "react/jsx-runtime";
6
+ import { s as B, r as w, u as M, c as T } from "./DefaultPropsProvider-CaRoy5OV.js";
7
+ import { m as j } from "./memoTheme-DfGVDRrB.js";
8
+ import { c as z } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
9
+ import { r as V } from "./refType-DlHf9HvO.js";
10
+ const H = u(/* @__PURE__ */ s("path", {
11
+ d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
12
+ }), "CheckBoxOutlineBlank"), N = u(/* @__PURE__ */ s("path", {
13
+ d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
14
+ }), "CheckBox"), E = u(/* @__PURE__ */ s("path", {
15
+ d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
16
+ }), "IndeterminateCheckBox");
17
+ function U(o) {
18
+ return S("MuiCheckbox", o);
19
+ }
20
+ const f = P("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), F = (o) => {
21
+ const {
22
+ classes: t,
23
+ indeterminate: a,
24
+ color: n,
25
+ size: i
26
+ } = o, l = {
27
+ root: ["root", a && "indeterminate", `color${c(n)}`, `size${c(i)}`]
28
+ }, p = T(l, U, t);
29
+ return {
30
+ ...t,
31
+ // forward the disabled and checked classes to the SwitchBase
32
+ ...p
33
+ };
34
+ }, L = B($, {
35
+ shouldForwardProp: (o) => w(o) || o === "classes",
36
+ name: "MuiCheckbox",
37
+ slot: "Root",
38
+ overridesResolver: (o, t) => {
39
+ const {
40
+ ownerState: a
41
+ } = o;
42
+ return [t.root, a.indeterminate && t.indeterminate, t[`size${c(a.size)}`], a.color !== "default" && t[`color${c(a.color)}`]];
43
+ }
44
+ })(j(({
45
+ theme: o
46
+ }) => ({
47
+ color: (o.vars || o).palette.text.secondary,
48
+ variants: [{
49
+ props: {
50
+ color: "default",
51
+ disableRipple: !1
52
+ },
53
+ style: {
54
+ "&:hover": {
55
+ backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : x(o.palette.action.active, o.palette.action.hoverOpacity)
56
+ }
57
+ }
58
+ }, ...Object.entries(o.palette).filter(z()).map(([t]) => ({
59
+ props: {
60
+ color: t,
61
+ disableRipple: !1
62
+ },
63
+ style: {
64
+ "&:hover": {
65
+ backgroundColor: o.vars ? `rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : x(o.palette[t].main, o.palette.action.hoverOpacity)
66
+ }
67
+ }
68
+ })), ...Object.entries(o.palette).filter(z()).map(([t]) => ({
69
+ props: {
70
+ color: t
71
+ },
72
+ style: {
73
+ [`&.${f.checked}, &.${f.indeterminate}`]: {
74
+ color: (o.vars || o).palette[t].main
75
+ },
76
+ [`&.${f.disabled}`]: {
77
+ color: (o.vars || o).palette.action.disabled
78
+ }
79
+ }
80
+ })), {
81
+ // Should be last to override other colors
82
+ props: {
83
+ disableRipple: !1
84
+ },
85
+ style: {
86
+ // Reset on touch devices, it doesn't add specificity
87
+ "&:hover": {
88
+ "@media (hover: none)": {
89
+ backgroundColor: "transparent"
90
+ }
91
+ }
92
+ }
93
+ }]
94
+ }))), D = /* @__PURE__ */ s(N, {}), q = /* @__PURE__ */ s(H, {}), J = /* @__PURE__ */ s(E, {}), K = /* @__PURE__ */ m.forwardRef(function(t, a) {
95
+ const n = M({
96
+ props: t,
97
+ name: "MuiCheckbox"
98
+ }), {
99
+ checkedIcon: i = D,
100
+ color: l = "primary",
101
+ icon: p = q,
102
+ indeterminate: r = !1,
103
+ indeterminateIcon: b = J,
104
+ inputProps: I,
105
+ size: d = "medium",
106
+ disableRipple: h = !1,
107
+ className: g,
108
+ ...O
109
+ } = n, v = r ? b : p, C = r ? b : i, k = {
110
+ ...n,
111
+ disableRipple: h,
112
+ color: l,
113
+ indeterminate: r,
114
+ size: d
115
+ }, y = F(k);
116
+ return /* @__PURE__ */ s(L, {
117
+ type: "checkbox",
118
+ inputProps: {
119
+ "data-indeterminate": r,
120
+ ...I
121
+ },
122
+ icon: /* @__PURE__ */ m.cloneElement(v, {
123
+ fontSize: v.props.fontSize ?? d
124
+ }),
125
+ checkedIcon: /* @__PURE__ */ m.cloneElement(C, {
126
+ fontSize: C.props.fontSize ?? d
127
+ }),
128
+ ownerState: k,
129
+ ref: a,
130
+ className: R(y.root, g),
131
+ disableRipple: h,
132
+ ...O,
133
+ classes: y
134
+ });
135
+ });
136
+ process.env.NODE_ENV !== "production" && (K.propTypes = {
137
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
138
+ // │ These PropTypes are generated from the TypeScript type definitions. │
139
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
140
+ // └─────────────────────────────────────────────────────────────────────┘
141
+ /**
142
+ * If `true`, the component is checked.
143
+ */
144
+ checked: e.bool,
145
+ /**
146
+ * The icon to display when the component is checked.
147
+ * @default <CheckBoxIcon />
148
+ */
149
+ checkedIcon: e.node,
150
+ /**
151
+ * Override or extend the styles applied to the component.
152
+ */
153
+ classes: e.object,
154
+ /**
155
+ * @ignore
156
+ */
157
+ className: e.string,
158
+ /**
159
+ * The color of the component.
160
+ * It supports both default and custom theme colors, which can be added as shown in the
161
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
162
+ * @default 'primary'
163
+ */
164
+ color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
165
+ /**
166
+ * The default checked state. Use when the component is not controlled.
167
+ */
168
+ defaultChecked: e.bool,
169
+ /**
170
+ * If `true`, the component is disabled.
171
+ * @default false
172
+ */
173
+ disabled: e.bool,
174
+ /**
175
+ * If `true`, the ripple effect is disabled.
176
+ * @default false
177
+ */
178
+ disableRipple: e.bool,
179
+ /**
180
+ * The icon to display when the component is unchecked.
181
+ * @default <CheckBoxOutlineBlankIcon />
182
+ */
183
+ icon: e.node,
184
+ /**
185
+ * The id of the `input` element.
186
+ */
187
+ id: e.string,
188
+ /**
189
+ * If `true`, the component appears indeterminate.
190
+ * This does not set the native input element to indeterminate due
191
+ * to inconsistent behavior across browsers.
192
+ * However, we set a `data-indeterminate` attribute on the `input`.
193
+ * @default false
194
+ */
195
+ indeterminate: e.bool,
196
+ /**
197
+ * The icon to display when the component is indeterminate.
198
+ * @default <IndeterminateCheckBoxIcon />
199
+ */
200
+ indeterminateIcon: e.node,
201
+ /**
202
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
203
+ */
204
+ inputProps: e.object,
205
+ /**
206
+ * Pass a ref to the `input` element.
207
+ */
208
+ inputRef: V,
209
+ /**
210
+ * Callback fired when the state is changed.
211
+ *
212
+ * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
213
+ * You can pull out the new checked state by accessing `event.target.checked` (boolean).
214
+ */
215
+ onChange: e.func,
216
+ /**
217
+ * If `true`, the `input` element is required.
218
+ * @default false
219
+ */
220
+ required: e.bool,
221
+ /**
222
+ * The size of the component.
223
+ * `small` is equivalent to the dense checkbox styling.
224
+ * @default 'medium'
225
+ */
226
+ size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
227
+ /**
228
+ * The system prop that allows defining system overrides as well as additional CSS styles.
229
+ */
230
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
231
+ /**
232
+ * The value of the component. The DOM API casts this to a string.
233
+ * The browser uses "on" as the default value.
234
+ */
235
+ value: e.any
236
+ });
237
+ export {
238
+ K as C,
239
+ f as c,
240
+ U as g
241
+ };
@@ -0,0 +1 @@
1
+ "use strict";const S=require("react"),e=require("./identifier-BQH88SE0.cjs"),I=require("./SwitchBase-URM3X3YZ.cjs"),f=require("./createSvgIcon-GU7fqNnI.cjs"),c=require("react/jsx-runtime"),i=require("./DefaultPropsProvider-BrX6iuA3.cjs"),j=require("./memoTheme-B6o2KVgJ.cjs"),k=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),R=require("./refType-Do7KaOvv.cjs");function $(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>o[r]})}}return t.default=o,Object.freeze(t)}const y=$(S),q=f.createSvgIcon(c.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),w=f.createSvgIcon(c.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),B=f.createSvgIcon(c.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function C(o){return e.generateUtilityClass("MuiCheckbox",o)}const n=e.generateUtilityClasses("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),M=o=>{const{classes:t,indeterminate:r,color:s,size:p}=o,l={root:["root",r&&"indeterminate",`color${e.capitalize(s)}`,`size${e.capitalize(p)}`]},d=i.composeClasses(l,C,t);return{...t,...d}},V=i.styled(I.SwitchBase,{shouldForwardProp:o=>i.rootShouldForwardProp(o)||o==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:r}=o;return[t.root,r.indeterminate&&t.indeterminate,t[`size${e.capitalize(r.size)}`],r.color!=="default"&&t[`color${e.capitalize(r.color)}`]]}})(j.memoTheme(({theme:o})=>({color:(o.vars||o).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(o.palette.action.active,o.palette.action.hoverOpacity)}}},...Object.entries(o.palette).filter(k.createSimplePaletteValueFilter()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(o.palette[t].main,o.palette.action.hoverOpacity)}}})),...Object.entries(o.palette).filter(k.createSimplePaletteValueFilter()).map(([t])=>({props:{color:t},style:{[`&.${n.checked}, &.${n.indeterminate}`]:{color:(o.vars||o).palette[t].main},[`&.${n.disabled}`]:{color:(o.vars||o).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),N=c.jsx(w,{}),D=c.jsx(q,{}),F=c.jsx(B,{}),x=y.forwardRef(function(t,r){const s=i.useDefaultProps({props:t,name:"MuiCheckbox"}),{checkedIcon:p=N,color:l="primary",icon:d=D,indeterminate:a=!1,indeterminateIcon:b=F,inputProps:g,size:u="medium",disableRipple:P=!1,className:z,...O}=s,m=a?b:d,T=a?b:p,h={...s,disableRipple:P,color:l,indeterminate:a,size:u},v=M(h);return c.jsx(V,{type:"checkbox",inputProps:{"data-indeterminate":a,...g},icon:y.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:y.cloneElement(T,{fontSize:T.props.fontSize??u}),ownerState:h,ref:r,className:e.clsx(v.root,z),disableRipple:P,...O,classes:v})});process.env.NODE_ENV!=="production"&&(x.propTypes={checked:e.PropTypes.bool,checkedIcon:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["default","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),defaultChecked:e.PropTypes.bool,disabled:e.PropTypes.bool,disableRipple:e.PropTypes.bool,icon:e.PropTypes.node,id:e.PropTypes.string,indeterminate:e.PropTypes.bool,indeterminateIcon:e.PropTypes.node,inputProps:e.PropTypes.object,inputRef:R.refType,onChange:e.PropTypes.func,required:e.PropTypes.bool,size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["medium","small"]),e.PropTypes.string]),sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object]),value:e.PropTypes.any});exports.Checkbox=x;exports.checkboxClasses=n;exports.getCheckboxUtilityClass=C;
@@ -1,9 +1,9 @@
1
1
  import * as O from "react";
2
- import { I as T, J as R, K as c, L as N, P as r } from "./identifier-BspJ_uqC.js";
3
- import { m as P } from "./memoTheme-CwR5ZU7e.js";
2
+ import { I as T, J as R, L as c, K as N, P as r } from "./identifier-BqadgaK7.js";
3
+ import { m as P } from "./memoTheme-DfGVDRrB.js";
4
4
  import { c as j } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
5
5
  import { jsx as h } from "react/jsx-runtime";
6
- import { s as g, u as I, c as U } from "./DefaultPropsProvider-BE624hnX.js";
6
+ import { s as g, u as I, c as U } from "./DefaultPropsProvider-CaRoy5OV.js";
7
7
  import { c as E } from "./useForkRef-D-DyzOXj.js";
8
8
  import { keyframes as x, css as w } from "@emotion/react";
9
9
  function z(e) {