@cgi-learning-hub/ui 1.4.0-dev.1741984172 → 1.4.0-dev.1741985772

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 (143) hide show
  1. package/dist/{Alert-Bdy5B5l-.js → Alert-BCd1tHk0.js} +9 -9
  2. package/dist/{Backdrop-2gYaM9j-.js → Backdrop-CjDitjBW.js} +6 -6
  3. package/dist/{Box-DgqaLb7j.js → Box-GMNejc_m.js} +7 -7
  4. package/dist/{Button-B7kOjNW1.js → Button-x5rtZxJN.js} +6 -6
  5. package/dist/{ButtonBase-IZ_QjbpE.js → ButtonBase-CU1npQuI.js} +4 -4
  6. package/dist/{CardContent-F4-KcZH8.js → CardContent-CL_61cm-.js} +3 -3
  7. package/dist/{Checkbox-DgU-0k3O.js → Checkbox-CtRSDqOe.js} +7 -7
  8. package/dist/{Chip-B8sdMltW.js → Chip-ZIBpWC4I.js} +6 -6
  9. package/dist/{CircularProgress-CQxzJquv.js → CircularProgress-B28FKeiH.js} +4 -4
  10. package/dist/{CloseRounded-CYS1vEvm.js → CloseRounded-pP8asZiP.js} +1 -1
  11. package/dist/{Collapse-CLl0D4CI.js → Collapse-wS8A5zc5.js} +6 -6
  12. package/dist/{CustomTreeItem-DgZ-fuHz.js → CustomTreeItem-CyfVhVMC.js} +10 -10
  13. package/dist/DatePicker-64gpvkmk.cjs +13 -0
  14. package/dist/{DatePicker-DaT-qAZU.js → DatePicker-XdCuICxv.js} +2117 -2530
  15. package/dist/{DefaultPropsProvider-Cqcb4sws.js → DefaultPropsProvider-CQixa6JQ.js} +7 -7
  16. package/dist/{Delete-CbtdIdDB.js → Delete-BQA9--_t.js} +1 -1
  17. package/dist/{Dialog-vSSARfm5.js → Dialog-C-Ptqtq-.js} +9 -9
  18. package/dist/{DialogContent-BzPaz5G8.js → DialogContent-1sjO2rQK.js} +3 -3
  19. package/dist/{DialogTitle-BNGMQ2Px.js → DialogTitle-CGpa_QH9.js} +5 -5
  20. package/dist/{Divider-D-pZeQTm.js → Divider-CNGfzZqD.js} +8 -8
  21. package/dist/{FormLabel-3-CC-ZGw.js → FormLabel-BlaPVlwX.js} +67 -76
  22. package/dist/FormLabel-XpwTqbs8.cjs +2 -0
  23. package/dist/{Grow-DewB1oh4.js → Grow-D5UIC41W.js} +4 -4
  24. package/dist/{IconButton-CCNUMz2l.js → IconButton-CFUIddNg.js} +6 -6
  25. package/dist/{InputAdornment-DL8XIM8r.js → InputAdornment-GcbiriFv.js} +5 -5
  26. package/dist/{InputBase-By7jMrFP.js → InputBase-DJuF09Rf.js} +7 -7
  27. package/dist/{Link-C_GPIs0q.js → Link-DtsZ0d_s.js} +7 -7
  28. package/dist/List-BTPrBGqY.js +130 -0
  29. package/dist/List-Bo4pzQqG.cjs +1 -0
  30. package/dist/ListItem-C9OfYRAP.js +423 -0
  31. package/dist/ListItem-CB4JyjSb.cjs +1 -0
  32. package/dist/ListItemText-B_hEVsaT.js +928 -0
  33. package/dist/ListItemText-Bjd08uk4.cjs +1 -0
  34. package/dist/{Menu-DSnqz2vn.js → Menu-DD_bqi6q.js} +306 -429
  35. package/dist/Menu-XypIRgTl.cjs +7 -0
  36. package/dist/{MenuItem-NWsmBFYK.js → MenuItem-Byj-2QQd.js} +72 -77
  37. package/dist/MenuItem-vb36Ljmd.cjs +1 -0
  38. package/dist/{Modal-CjMKpo95.js → Modal-S2P14Nsp.js} +8 -8
  39. package/dist/{Paper-BiZq6EF2.js → Paper-BrsaeLlu.js} +4 -4
  40. package/dist/{Popper-_C0wi25V.js → Popper-BNftxeQ5.js} +27 -27
  41. package/dist/{Portal-iCPDPYlY.js → Portal-BLEnzj1v.js} +2 -2
  42. package/dist/{Radio-YTlcDTxU.js → Radio-CRTKwNe5.js} +9 -9
  43. package/dist/{RadioGroup-d9PIO9nR.js → RadioGroup-NjI5PlIb.js} +3 -3
  44. package/dist/{Select-lkqCWjKv.cjs → Select-8kBUq_SZ.cjs} +1 -1
  45. package/dist/{Select-0z3QAnXt.js → Select-C0jrZLRg.js} +30 -30
  46. package/dist/{Stack-hbAJHQhq.js → Stack-Bm7M81n8.js} +22 -22
  47. package/dist/{Switch-B9uT9-d0.js → Switch-D5FnE7HW.js} +6 -6
  48. package/dist/{SwitchBase-CDkmnGAP.js → SwitchBase-91Mand9t.js} +5 -5
  49. package/dist/{Tabs-BZR0EQUH.js → Tabs-C5VIdTSp.js} +25 -25
  50. package/dist/{TextField-O962H25y.cjs → TextField-BzqflYRV.cjs} +1 -1
  51. package/dist/{TextField-CTpcZJul.js → TextField-D5jS5WjF.js} +8 -8
  52. package/dist/ToggleButtonGroup-Bpi3kmko.cjs +140 -0
  53. package/dist/{ToggleButtonGroup-CEUzgXdi.js → ToggleButtonGroup-CipWZLXf.js} +2366 -3279
  54. package/dist/{Tooltip--oCu4BBR.js → Tooltip-DgTrUaHJ.js} +10 -10
  55. package/dist/{Typography-SIQ6eleU.js → Typography-Ct2Sc9KM.js} +5 -5
  56. package/dist/{capitalize-3KLkrEtk.js → capitalize-BJ0FEsU7.js} +1 -1
  57. package/dist/components/Alert/Alert.es.js +1 -1
  58. package/dist/components/Alert/index.es.js +1 -1
  59. package/dist/components/Button/Button.es.js +2 -2
  60. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  61. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  62. package/dist/components/DatePicker/index.cjs.js +1 -1
  63. package/dist/components/DatePicker/index.es.js +1 -1
  64. package/dist/components/Dialog/Dialog.es.js +2 -2
  65. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  66. package/dist/components/EmptyState/EmptyState.es.js +3 -3
  67. package/dist/components/FileList/FileIcon.es.js +1 -1
  68. package/dist/components/FileList/FileListItem.es.js +4 -4
  69. package/dist/components/Heading/Heading.es.js +2 -2
  70. package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
  71. package/dist/components/Loader/Loader.es.js +1 -1
  72. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  73. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  74. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  75. package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
  76. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  77. package/dist/components/TreeView/TreeView.es.js +11 -11
  78. package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
  79. package/dist/components/TreeView/utils.es.js +2 -2
  80. package/dist/components/index.cjs.js +1 -1
  81. package/dist/components/index.es.js +344 -340
  82. package/dist/components/stories/Alert.stories.es.js +1 -1
  83. package/dist/components/stories/Button.stories.es.js +1 -1
  84. package/dist/components/stories/Card.stories.es.js +2 -2
  85. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  86. package/dist/components/stories/Chip.stories.es.js +1 -1
  87. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  88. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  89. package/dist/components/stories/Dialog.stories.es.js +2 -2
  90. package/dist/components/stories/Divider.stories.es.js +1 -1
  91. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  92. package/dist/components/stories/Heading.stories.es.js +2 -2
  93. package/dist/components/stories/IconButton.stories.es.js +2 -2
  94. package/dist/components/stories/Link.stories.es.js +1 -1
  95. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  96. package/dist/components/stories/Menu.stories.es.js +2 -2
  97. package/dist/components/stories/Paper.stories.es.js +1 -1
  98. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  99. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  100. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  101. package/dist/components/stories/Select.stories.cjs.js +1 -1
  102. package/dist/components/stories/Select.stories.es.js +3 -3
  103. package/dist/components/stories/TabList.stories.es.js +4 -4
  104. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  105. package/dist/components/stories/TextField.stories.es.js +1 -1
  106. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  107. package/dist/components/stories/TreeView.stories.cjs.js +2 -2
  108. package/dist/components/stories/TreeView.stories.d.ts +2 -0
  109. package/dist/components/stories/TreeView.stories.es.js +279 -89
  110. package/dist/components/stories/Typography.stories.es.js +1 -1
  111. package/dist/{createSvgIcon-K1Hd8ryN.js → createSvgIcon-B62eln-G.js} +4 -4
  112. package/dist/{dividerClasses-afsB3Yy1.js → dividerClasses-DjJZQ2Lt.js} +1 -1
  113. package/dist/{elementTypeAcceptingRef-5ESWTE79.js → elementTypeAcceptingRef-B04tk6ag.js} +1 -1
  114. package/dist/{extendSxProp-dlShX1xL.js → extendSxProp-CgS-3O19.js} +1 -1
  115. package/dist/{generateUtilityClasses-DotvgSDH.js → generateUtilityClasses-EXBFO7eY.js} +9 -9
  116. package/dist/{getReactElementRef-CQNNHBNW.js → getReactElementRef-DjLvttrJ.js} +1 -1
  117. package/dist/{index-DTTmpNYg.js → index-BZ7ldAwE.js} +4 -4
  118. package/dist/{index-BvBogk4x.js → index-D_xl88AE.js} +1 -1
  119. package/dist/{index-B1u7G33_.js → index-DcwdJ8a_.js} +1 -1
  120. package/dist/index.cjs.js +1 -1
  121. package/dist/index.es.js +344 -340
  122. package/dist/isMuiElement-BzDAj3yJ.cjs +1 -0
  123. package/dist/isMuiElement-DnSE4qG4.js +13 -0
  124. package/dist/listItemTextClasses-BCuJjsDp.cjs +1 -0
  125. package/dist/listItemTextClasses-Kxu3VILo.js +9 -0
  126. package/dist/{memoTheme-CqmIydD-.js → memoTheme-DJWQ754x.js} +1 -1
  127. package/dist/{refType-C210ipRY.js → refType-Bpj8bod6.js} +1 -1
  128. package/dist/{resolveComponentProps-CPmhKPdH.js → resolveComponentProps-CIdMNno4.js} +1 -1
  129. package/dist/{useSlot-GZu0V5wJ.js → useSlot-RbAtahZu.js} +1 -1
  130. package/dist/{useSlotProps-D6vB9uUw.js → useSlotProps-U2Iu6E0j.js} +1 -1
  131. package/dist/{useTheme-tdgDVH1p.js → useTheme-CUKf8NYA.js} +1 -1
  132. package/dist/useTheme-Czi7oO55.js +11 -0
  133. package/dist/{useThemeProps-BQlPXzo3.js → useThemeProps-Bxjrhw9q.js} +2 -2
  134. package/dist/useThemeProps-v-SfXuGn.js +17 -0
  135. package/dist/{utils-Df4KKPfT.js → utils-B2jSugkj.js} +1 -1
  136. package/package.json +1 -1
  137. package/dist/DatePicker-DkydayAf.cjs +0 -13
  138. package/dist/FormLabel-BV7-a0i5.cjs +0 -2
  139. package/dist/Menu-i8E6r9PD.cjs +0 -7
  140. package/dist/MenuItem-wiWkmrFx.cjs +0 -1
  141. package/dist/ToggleButtonGroup-BS5pAoPi.cjs +0 -140
  142. package/dist/useTheme-BA7tMglY.js +0 -11
  143. package/dist/useThemeProps-BTfGtNci.js +0 -17
@@ -0,0 +1,130 @@
1
+ import * as i from "react";
2
+ import { G as h, H as y, I as L, P as s } from "./generateUtilityClasses-EXBFO7eY.js";
3
+ import { jsx as v, jsxs as x } from "react/jsx-runtime";
4
+ import { u as C, s as P, c as N } from "./DefaultPropsProvider-CQixa6JQ.js";
5
+ const p = /* @__PURE__ */ i.createContext({});
6
+ process.env.NODE_ENV !== "production" && (p.displayName = "ListContext");
7
+ function T(e) {
8
+ return y("MuiList", e);
9
+ }
10
+ const S = h("MuiList", ["root", "padding", "dense", "subheader"]), j = (e) => {
11
+ const {
12
+ classes: o,
13
+ disablePadding: t,
14
+ dense: a,
15
+ subheader: n
16
+ } = e;
17
+ return N({
18
+ root: ["root", !t && "padding", a && "dense", n && "subheader"]
19
+ }, T, o);
20
+ }, M = P("ul", {
21
+ name: "MuiList",
22
+ slot: "Root",
23
+ overridesResolver: (e, o) => {
24
+ const {
25
+ ownerState: t
26
+ } = e;
27
+ return [o.root, !t.disablePadding && o.padding, t.dense && o.dense, t.subheader && o.subheader];
28
+ }
29
+ })({
30
+ listStyle: "none",
31
+ margin: 0,
32
+ padding: 0,
33
+ position: "relative",
34
+ variants: [{
35
+ props: ({
36
+ ownerState: e
37
+ }) => !e.disablePadding,
38
+ style: {
39
+ paddingTop: 8,
40
+ paddingBottom: 8
41
+ }
42
+ }, {
43
+ props: ({
44
+ ownerState: e
45
+ }) => e.subheader,
46
+ style: {
47
+ paddingTop: 0
48
+ }
49
+ }]
50
+ }), O = /* @__PURE__ */ i.forwardRef(function(o, t) {
51
+ const a = C({
52
+ props: o,
53
+ name: "MuiList"
54
+ }), {
55
+ children: n,
56
+ className: d,
57
+ component: l = "ul",
58
+ dense: r = !1,
59
+ disablePadding: u = !1,
60
+ subheader: m,
61
+ ...b
62
+ } = a, f = i.useMemo(() => ({
63
+ dense: r
64
+ }), [r]), c = {
65
+ ...a,
66
+ component: l,
67
+ dense: r,
68
+ disablePadding: u
69
+ }, g = j(c);
70
+ return /* @__PURE__ */ v(p.Provider, {
71
+ value: f,
72
+ children: /* @__PURE__ */ x(M, {
73
+ as: l,
74
+ className: L(g.root, d),
75
+ ref: t,
76
+ ownerState: c,
77
+ ...b,
78
+ children: [m, n]
79
+ })
80
+ });
81
+ });
82
+ process.env.NODE_ENV !== "production" && (O.propTypes = {
83
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
84
+ // │ These PropTypes are generated from the TypeScript type definitions. │
85
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
86
+ // └─────────────────────────────────────────────────────────────────────┘
87
+ /**
88
+ * The content of the component.
89
+ */
90
+ children: s.node,
91
+ /**
92
+ * Override or extend the styles applied to the component.
93
+ */
94
+ classes: s.object,
95
+ /**
96
+ * @ignore
97
+ */
98
+ className: s.string,
99
+ /**
100
+ * The component used for the root node.
101
+ * Either a string to use a HTML element or a component.
102
+ */
103
+ component: s.elementType,
104
+ /**
105
+ * If `true`, compact vertical padding designed for keyboard and mouse input is used for
106
+ * the list and list items.
107
+ * The prop is available to descendant components as the `dense` context.
108
+ * @default false
109
+ */
110
+ dense: s.bool,
111
+ /**
112
+ * If `true`, vertical padding is removed from the list.
113
+ * @default false
114
+ */
115
+ disablePadding: s.bool,
116
+ /**
117
+ * The content of the subheader, normally `ListSubheader`.
118
+ */
119
+ subheader: s.node,
120
+ /**
121
+ * The system prop that allows defining system overrides as well as additional CSS styles.
122
+ */
123
+ sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object])
124
+ });
125
+ export {
126
+ O as L,
127
+ p as a,
128
+ T as g,
129
+ S as l
130
+ };
@@ -0,0 +1 @@
1
+ "use strict";const C=require("react"),e=require("./generateUtilityClasses-De8NU9_E.cjs"),y=require("react/jsx-runtime"),d=require("./DefaultPropsProvider-wpBXjN8r.cjs");function L(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const o in s)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(s,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>s[o]})}}return t.default=s,Object.freeze(t)}const p=L(C),c=p.createContext({});process.env.NODE_ENV!=="production"&&(c.displayName="ListContext");function P(s){return e.generateUtilityClass("MuiList",s)}const v=e.generateUtilityClasses("MuiList",["root","padding","dense","subheader"]),j=s=>{const{classes:t,disablePadding:o,dense:n,subheader:r}=s,i={root:["root",!o&&"padding",n&&"dense",r&&"subheader"]};return d.composeClasses(i,P,t)},x=d.styled("ul",{name:"MuiList",slot:"Root",overridesResolver:(s,t)=>{const{ownerState:o}=s;return[t.root,!o.disablePadding&&t.padding,o.dense&&t.dense,o.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:s})=>!s.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:s})=>s.subheader,style:{paddingTop:0}}]}),b=p.forwardRef(function(t,o){const n=d.useDefaultProps({props:t,name:"MuiList"}),{children:r,className:i,component:l="ul",dense:a=!1,disablePadding:f=!1,subheader:g,...T}=n,m=p.useMemo(()=>({dense:a}),[a]),u={...n,component:l,dense:a,disablePadding:f},h=j(u);return y.jsx(c.Provider,{value:m,children:y.jsxs(x,{as:l,className:e.clsx(h.root,i),ref:o,ownerState:u,...T,children:[g,r]})})});process.env.NODE_ENV!=="production"&&(b.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,dense:e.PropTypes.bool,disablePadding:e.PropTypes.bool,subheader:e.PropTypes.node,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])});exports.List=b;exports.ListContext=c;exports.getListUtilityClass=P;exports.listClasses=v;
@@ -0,0 +1,423 @@
1
+ import * as r from "react";
2
+ import { G as x, H as L, I as C, P as e } from "./generateUtilityClasses-EXBFO7eY.js";
3
+ import { i as w } from "./isHostComponent-kiaBvYVo.js";
4
+ import { m as q } from "./memoTheme-DJWQ754x.js";
5
+ import { a as h } from "./List-BTPrBGqY.js";
6
+ import { jsx as f, jsxs as O } from "react/jsx-runtime";
7
+ import { u as U, s as A, c as B } from "./DefaultPropsProvider-CQixa6JQ.js";
8
+ import { i as k } from "./isMuiElement-DnSE4qG4.js";
9
+ import { u as J } from "./useForkRef-C_4o__cU.js";
10
+ import { e as K } from "./elementTypeAcceptingRef-B04tk6ag.js";
11
+ import { c as Q } from "./chainPropTypes-D9lkm76m.js";
12
+ function W(o) {
13
+ return L("MuiListItem", o);
14
+ }
15
+ const bt = x("MuiListItem", ["root", "container", "dense", "alignItemsFlexStart", "divider", "gutters", "padding", "secondaryAction"]);
16
+ function ht(o) {
17
+ return L("MuiListItemButton", o);
18
+ }
19
+ const X = x("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "selected"]);
20
+ function Z(o) {
21
+ return L("MuiListItemSecondaryAction", o);
22
+ }
23
+ x("MuiListItemSecondaryAction", ["root", "disableGutters"]);
24
+ const tt = (o) => {
25
+ const {
26
+ disableGutters: t,
27
+ classes: s
28
+ } = o;
29
+ return B({
30
+ root: ["root", t && "disableGutters"]
31
+ }, Z, s);
32
+ }, et = A("div", {
33
+ name: "MuiListItemSecondaryAction",
34
+ slot: "Root",
35
+ overridesResolver: (o, t) => {
36
+ const {
37
+ ownerState: s
38
+ } = o;
39
+ return [t.root, s.disableGutters && t.disableGutters];
40
+ }
41
+ })({
42
+ position: "absolute",
43
+ right: 16,
44
+ top: "50%",
45
+ transform: "translateY(-50%)",
46
+ variants: [{
47
+ props: ({
48
+ ownerState: o
49
+ }) => o.disableGutters,
50
+ style: {
51
+ right: 0
52
+ }
53
+ }]
54
+ }), S = /* @__PURE__ */ r.forwardRef(function(t, s) {
55
+ const n = U({
56
+ props: t,
57
+ name: "MuiListItemSecondaryAction"
58
+ }), {
59
+ className: i,
60
+ ...l
61
+ } = n, p = r.useContext(h), a = {
62
+ ...n,
63
+ disableGutters: p.disableGutters
64
+ }, g = tt(a);
65
+ return /* @__PURE__ */ f(et, {
66
+ className: C(g.root, i),
67
+ ownerState: a,
68
+ ref: s,
69
+ ...l
70
+ });
71
+ });
72
+ process.env.NODE_ENV !== "production" && (S.propTypes = {
73
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
74
+ // │ These PropTypes are generated from the TypeScript type definitions. │
75
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
76
+ // └─────────────────────────────────────────────────────────────────────┘
77
+ /**
78
+ * The content of the component, normally an `IconButton` or selection control.
79
+ */
80
+ children: e.node,
81
+ /**
82
+ * Override or extend the styles applied to the component.
83
+ */
84
+ classes: e.object,
85
+ /**
86
+ * @ignore
87
+ */
88
+ className: e.string,
89
+ /**
90
+ * The system prop that allows defining system overrides as well as additional CSS styles.
91
+ */
92
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
93
+ });
94
+ S.muiName = "ListItemSecondaryAction";
95
+ const ot = (o, t) => {
96
+ const {
97
+ ownerState: s
98
+ } = o;
99
+ return [t.root, s.dense && t.dense, s.alignItems === "flex-start" && t.alignItemsFlexStart, s.divider && t.divider, !s.disableGutters && t.gutters, !s.disablePadding && t.padding, s.hasSecondaryAction && t.secondaryAction];
100
+ }, st = (o) => {
101
+ const {
102
+ alignItems: t,
103
+ classes: s,
104
+ dense: n,
105
+ disableGutters: i,
106
+ disablePadding: l,
107
+ divider: p,
108
+ hasSecondaryAction: a
109
+ } = o;
110
+ return B({
111
+ root: ["root", n && "dense", !i && "gutters", !l && "padding", p && "divider", t === "flex-start" && "alignItemsFlexStart", a && "secondaryAction"],
112
+ container: ["container"]
113
+ }, W, s);
114
+ }, nt = A("div", {
115
+ name: "MuiListItem",
116
+ slot: "Root",
117
+ overridesResolver: ot
118
+ })(q(({
119
+ theme: o
120
+ }) => ({
121
+ display: "flex",
122
+ justifyContent: "flex-start",
123
+ alignItems: "center",
124
+ position: "relative",
125
+ textDecoration: "none",
126
+ width: "100%",
127
+ boxSizing: "border-box",
128
+ textAlign: "left",
129
+ variants: [{
130
+ props: ({
131
+ ownerState: t
132
+ }) => !t.disablePadding,
133
+ style: {
134
+ paddingTop: 8,
135
+ paddingBottom: 8
136
+ }
137
+ }, {
138
+ props: ({
139
+ ownerState: t
140
+ }) => !t.disablePadding && t.dense,
141
+ style: {
142
+ paddingTop: 4,
143
+ paddingBottom: 4
144
+ }
145
+ }, {
146
+ props: ({
147
+ ownerState: t
148
+ }) => !t.disablePadding && !t.disableGutters,
149
+ style: {
150
+ paddingLeft: 16,
151
+ paddingRight: 16
152
+ }
153
+ }, {
154
+ props: ({
155
+ ownerState: t
156
+ }) => !t.disablePadding && !!t.secondaryAction,
157
+ style: {
158
+ // Add some space to avoid collision as `ListItemSecondaryAction`
159
+ // is absolutely positioned.
160
+ paddingRight: 48
161
+ }
162
+ }, {
163
+ props: ({
164
+ ownerState: t
165
+ }) => !!t.secondaryAction,
166
+ style: {
167
+ [`& > .${X.root}`]: {
168
+ paddingRight: 48
169
+ }
170
+ }
171
+ }, {
172
+ props: {
173
+ alignItems: "flex-start"
174
+ },
175
+ style: {
176
+ alignItems: "flex-start"
177
+ }
178
+ }, {
179
+ props: ({
180
+ ownerState: t
181
+ }) => t.divider,
182
+ style: {
183
+ borderBottom: `1px solid ${(o.vars || o).palette.divider}`,
184
+ backgroundClip: "padding-box"
185
+ }
186
+ }, {
187
+ props: ({
188
+ ownerState: t
189
+ }) => t.button,
190
+ style: {
191
+ transition: o.transitions.create("background-color", {
192
+ duration: o.transitions.duration.shortest
193
+ }),
194
+ "&:hover": {
195
+ textDecoration: "none",
196
+ backgroundColor: (o.vars || o).palette.action.hover,
197
+ // Reset on touch devices, it doesn't add specificity
198
+ "@media (hover: none)": {
199
+ backgroundColor: "transparent"
200
+ }
201
+ }
202
+ }
203
+ }, {
204
+ props: ({
205
+ ownerState: t
206
+ }) => t.hasSecondaryAction,
207
+ style: {
208
+ // Add some space to avoid collision as `ListItemSecondaryAction`
209
+ // is absolutely positioned.
210
+ paddingRight: 48
211
+ }
212
+ }]
213
+ }))), it = A("li", {
214
+ name: "MuiListItem",
215
+ slot: "Container",
216
+ overridesResolver: (o, t) => t.container
217
+ })({
218
+ position: "relative"
219
+ }), rt = /* @__PURE__ */ r.forwardRef(function(t, s) {
220
+ const n = U({
221
+ props: t,
222
+ name: "MuiListItem"
223
+ }), {
224
+ alignItems: i = "center",
225
+ children: l,
226
+ className: p,
227
+ component: a,
228
+ components: g = {},
229
+ componentsProps: E = {},
230
+ ContainerComponent: P = "li",
231
+ ContainerProps: {
232
+ className: F,
233
+ ...D
234
+ } = {},
235
+ dense: R = !1,
236
+ disableGutters: I = !1,
237
+ disablePadding: V = !1,
238
+ divider: $ = !1,
239
+ secondaryAction: N,
240
+ slotProps: H = {},
241
+ slots: Y = {},
242
+ ..._
243
+ } = n, T = r.useContext(h), v = r.useMemo(() => ({
244
+ dense: R || T.dense || !1,
245
+ alignItems: i,
246
+ disableGutters: I
247
+ }), [i, T.dense, R, I]), z = r.useRef(null), c = r.Children.toArray(l), G = c.length && k(c[c.length - 1], ["ListItemSecondaryAction"]), y = {
248
+ ...n,
249
+ alignItems: i,
250
+ dense: v.dense,
251
+ disableGutters: I,
252
+ disablePadding: V,
253
+ divider: $,
254
+ hasSecondaryAction: G
255
+ }, M = st(y), j = J(z, s), b = Y.root || g.Root || nt, m = H.root || E.root || {}, u = {
256
+ className: C(M.root, m.className, p),
257
+ ..._
258
+ };
259
+ let d = a || "li";
260
+ return G ? (d = !u.component && !a ? "div" : d, P === "li" && (d === "li" ? d = "div" : u.component === "li" && (u.component = "div")), /* @__PURE__ */ f(h.Provider, {
261
+ value: v,
262
+ children: /* @__PURE__ */ O(it, {
263
+ as: P,
264
+ className: C(M.container, F),
265
+ ref: j,
266
+ ownerState: y,
267
+ ...D,
268
+ children: [/* @__PURE__ */ f(b, {
269
+ ...m,
270
+ ...!w(b) && {
271
+ as: d,
272
+ ownerState: {
273
+ ...y,
274
+ ...m.ownerState
275
+ }
276
+ },
277
+ ...u,
278
+ children: c
279
+ }), c.pop()]
280
+ })
281
+ })) : /* @__PURE__ */ f(h.Provider, {
282
+ value: v,
283
+ children: /* @__PURE__ */ O(b, {
284
+ ...m,
285
+ as: d,
286
+ ref: j,
287
+ ...!w(b) && {
288
+ ownerState: {
289
+ ...y,
290
+ ...m.ownerState
291
+ }
292
+ },
293
+ ...u,
294
+ children: [c, N && /* @__PURE__ */ f(S, {
295
+ children: N
296
+ })]
297
+ })
298
+ });
299
+ });
300
+ process.env.NODE_ENV !== "production" && (rt.propTypes = {
301
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
302
+ // │ These PropTypes are generated from the TypeScript type definitions. │
303
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
304
+ // └─────────────────────────────────────────────────────────────────────┘
305
+ /**
306
+ * Defines the `align-items` style property.
307
+ * @default 'center'
308
+ */
309
+ alignItems: e.oneOf(["center", "flex-start"]),
310
+ /**
311
+ * The content of the component if a `ListItemSecondaryAction` is used it must
312
+ * be the last child.
313
+ */
314
+ children: Q(e.node, (o) => {
315
+ const t = r.Children.toArray(o.children);
316
+ let s = -1;
317
+ for (let n = t.length - 1; n >= 0; n -= 1) {
318
+ const i = t[n];
319
+ if (k(i, ["ListItemSecondaryAction"])) {
320
+ s = n;
321
+ break;
322
+ }
323
+ }
324
+ return s !== -1 && s !== t.length - 1 ? new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem.") : null;
325
+ }),
326
+ /**
327
+ * Override or extend the styles applied to the component.
328
+ */
329
+ classes: e.object,
330
+ /**
331
+ * @ignore
332
+ */
333
+ className: e.string,
334
+ /**
335
+ * The component used for the root node.
336
+ * Either a string to use a HTML element or a component.
337
+ */
338
+ component: e.elementType,
339
+ /**
340
+ * The components used for each slot inside.
341
+ *
342
+ * @deprecated Use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
343
+ * @default {}
344
+ */
345
+ components: e.shape({
346
+ Root: e.elementType
347
+ }),
348
+ /**
349
+ * The extra props for the slot components.
350
+ * You can override the existing props or add new ones.
351
+ *
352
+ * @deprecated Use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
353
+ * @default {}
354
+ */
355
+ componentsProps: e.shape({
356
+ root: e.object
357
+ }),
358
+ /**
359
+ * The container component used when a `ListItemSecondaryAction` is the last child.
360
+ * @default 'li'
361
+ * @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
362
+ */
363
+ ContainerComponent: K,
364
+ /**
365
+ * Props applied to the container component if used.
366
+ * @default {}
367
+ * @deprecated Use the `slotProps.root` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
368
+ */
369
+ ContainerProps: e.object,
370
+ /**
371
+ * If `true`, compact vertical padding designed for keyboard and mouse input is used.
372
+ * The prop defaults to the value inherited from the parent List component.
373
+ * @default false
374
+ */
375
+ dense: e.bool,
376
+ /**
377
+ * If `true`, the left and right padding is removed.
378
+ * @default false
379
+ */
380
+ disableGutters: e.bool,
381
+ /**
382
+ * If `true`, all padding is removed.
383
+ * @default false
384
+ */
385
+ disablePadding: e.bool,
386
+ /**
387
+ * If `true`, a 1px light border is added to the bottom of the list item.
388
+ * @default false
389
+ */
390
+ divider: e.bool,
391
+ /**
392
+ * The element to display at the end of ListItem.
393
+ */
394
+ secondaryAction: e.node,
395
+ /**
396
+ * The extra props for the slot components.
397
+ * You can override the existing props or add new ones.
398
+ *
399
+ * @default {}
400
+ */
401
+ slotProps: e.shape({
402
+ root: e.object
403
+ }),
404
+ /**
405
+ * The components used for each slot inside.
406
+ *
407
+ * @default {}
408
+ */
409
+ slots: e.shape({
410
+ root: e.elementType
411
+ }),
412
+ /**
413
+ * The system prop that allows defining system overrides as well as additional CSS styles.
414
+ */
415
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
416
+ });
417
+ export {
418
+ rt as L,
419
+ X as a,
420
+ ht as b,
421
+ W as g,
422
+ bt as l
423
+ };
@@ -0,0 +1 @@
1
+ "use strict";const V=require("react"),t=require("./generateUtilityClasses-De8NU9_E.cjs"),M=require("./isHostComponent-PydJW4A4.cjs"),$=require("./memoTheme-DrjvJtTP.cjs"),T=require("./List-Bo4pzQqG.cjs"),c=require("react/jsx-runtime"),l=require("./DefaultPropsProvider-wpBXjN8r.cjs"),N=require("./isMuiElement-BzDAj3yJ.cjs"),z=require("./useForkRef-CTI33h-3.cjs"),Y=require("./elementTypeAcceptingRef-BjgxF5Bq.cjs"),J=require("./chainPropTypes-CEUi6Jb4.cjs");function K(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const o in s)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(s,o);Object.defineProperty(e,o,n.get?n:{enumerable:!0,get:()=>s[o]})}}return e.default=s,Object.freeze(e)}const i=K(V);function U(s){return t.generateUtilityClass("MuiListItem",s)}const Q=t.generateUtilityClasses("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function W(s){return t.generateUtilityClass("MuiListItemButton",s)}const O=t.generateUtilityClasses("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function X(s){return t.generateUtilityClass("MuiListItemSecondaryAction",s)}t.generateUtilityClasses("MuiListItemSecondaryAction",["root","disableGutters"]);const Z=s=>{const{disableGutters:e,classes:o}=s,n={root:["root",e&&"disableGutters"]};return l.composeClasses(n,X,o)},ee=l.styled("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(s,e)=>{const{ownerState:o}=s;return[e.root,o.disableGutters&&e.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:s})=>s.disableGutters,style:{right:0}}]}),h=i.forwardRef(function(e,o){const n=l.useDefaultProps({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...u}=n,y=i.useContext(T.ListContext),a={...n,disableGutters:y.disableGutters},m=Z(a);return c.jsx(ee,{className:t.clsx(m.root,r),ownerState:a,ref:o,...u})});process.env.NODE_ENV!=="production"&&(h.propTypes={children:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object])});h.muiName="ListItemSecondaryAction";const te=(s,e)=>{const{ownerState:o}=s;return[e.root,o.dense&&e.dense,o.alignItems==="flex-start"&&e.alignItemsFlexStart,o.divider&&e.divider,!o.disableGutters&&e.gutters,!o.disablePadding&&e.padding,o.hasSecondaryAction&&e.secondaryAction]},se=s=>{const{alignItems:e,classes:o,dense:n,disableGutters:r,disablePadding:u,divider:y,hasSecondaryAction:a}=s,m={root:["root",n&&"dense",!r&&"gutters",!u&&"padding",y&&"divider",e==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]};return l.composeClasses(m,U,o)},oe=l.styled("div",{name:"MuiListItem",slot:"Root",overridesResolver:te})($.memoTheme(({theme:s})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${O.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(s.vars||s).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:s.transitions.create("background-color",{duration:s.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(s.vars||s).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),ne=l.styled("li",{name:"MuiListItem",slot:"Container",overridesResolver:(s,e)=>e.container})({position:"relative"}),G=i.forwardRef(function(e,o){const n=l.useDefaultProps({props:e,name:"MuiListItem"}),{alignItems:r="center",children:u,className:y,component:a,components:m={},componentsProps:w={},ContainerComponent:x="li",ContainerProps:{className:q,...B}={},dense:v=!1,disableGutters:C=!1,disablePadding:D=!1,divider:k=!1,secondaryAction:L,slotProps:E={},slots:F={},..._}=n,S=i.useContext(T.ListContext),I=i.useMemo(()=>({dense:v||S.dense||!1,alignItems:r,disableGutters:C}),[r,S.dense,v,C]),H=i.useRef(null),p=i.Children.toArray(u),A=p.length&&N.isMuiElement(p[p.length-1],["ListItemSecondaryAction"]),P={...n,alignItems:r,dense:I.dense,disableGutters:C,disablePadding:D,divider:k,hasSecondaryAction:A},R=se(P),j=z.useForkRef(H,o),b=F.root||m.Root||oe,g=E.root||w.root||{},f={className:t.clsx(R.root,g.className,y),..._};let d=a||"li";return A?(d=!f.component&&!a?"div":d,x==="li"&&(d==="li"?d="div":f.component==="li"&&(f.component="div")),c.jsx(T.ListContext.Provider,{value:I,children:c.jsxs(ne,{as:x,className:t.clsx(R.container,q),ref:j,ownerState:P,...B,children:[c.jsx(b,{...g,...!M.isHostComponent(b)&&{as:d,ownerState:{...P,...g.ownerState}},...f,children:p}),p.pop()]})})):c.jsx(T.ListContext.Provider,{value:I,children:c.jsxs(b,{...g,as:d,ref:j,...!M.isHostComponent(b)&&{ownerState:{...P,...g.ownerState}},...f,children:[p,L&&c.jsx(h,{children:L})]})})});process.env.NODE_ENV!=="production"&&(G.propTypes={alignItems:t.PropTypes.oneOf(["center","flex-start"]),children:J.chainPropTypes(t.PropTypes.node,s=>{const e=i.Children.toArray(s.children);let o=-1;for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(N.isMuiElement(r,["ListItemSecondaryAction"])){o=n;break}}return o!==-1&&o!==e.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:t.PropTypes.object,className:t.PropTypes.string,component:t.PropTypes.elementType,components:t.PropTypes.shape({Root:t.PropTypes.elementType}),componentsProps:t.PropTypes.shape({root:t.PropTypes.object}),ContainerComponent:Y.elementTypeAcceptingRef,ContainerProps:t.PropTypes.object,dense:t.PropTypes.bool,disableGutters:t.PropTypes.bool,disablePadding:t.PropTypes.bool,divider:t.PropTypes.bool,secondaryAction:t.PropTypes.node,slotProps:t.PropTypes.shape({root:t.PropTypes.object}),slots:t.PropTypes.shape({root:t.PropTypes.elementType}),sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object])});exports.ListItem=G;exports.getListItemButtonUtilityClass=W;exports.getListItemUtilityClass=U;exports.listItemButtonClasses=O;exports.listItemClasses=Q;