@hybridcore/ui 1.6.0 → 1.6.1

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 (128) hide show
  1. package/dist/{AccordionSummary-DgAwVTk8.js → AccordionSummary-CMg08YSA.js} +20 -23
  2. package/dist/{Add-DJLrrVHm.js → Add-DuVVJeQU.js} +65 -67
  3. package/dist/{ButtonBase-2bPw77UP.js → ButtonBase-sObABYY2.js} +60 -56
  4. package/dist/{Delete-CW0UZv1m.js → Delete-fBLhTHbF.js} +1 -1
  5. package/dist/{DialogContent-B3nbEbuv.js → DialogContent-CGJ7alb8.js} +8 -10
  6. package/dist/{FormControl-BLbrq4C7.js → FormControl-BCurCxRj.js} +377 -719
  7. package/dist/FormControlLabel-BkRfrhNy.js +601 -0
  8. package/dist/{IconButton-CHwRQF-g.js → IconButton-_opV1iNK.js} +26 -28
  9. package/dist/{InputAdornment-DLxWUE6H.js → InputAdornment-C7PEvvYr.js} +16 -18
  10. package/dist/InputLabel-rEwwnD4_.js +354 -0
  11. package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DrE50M_p.js} +92 -70
  12. package/dist/Modal-DlB6GH-f.js +1659 -0
  13. package/dist/Paper-q9kKjAKx.js +527 -0
  14. package/dist/{Select-BgYwkZgI.js → TextField-DSDIEEKu.js} +1449 -901
  15. package/dist/{Typography-CxbneZy_.js → Typography-B-Z5Y0Xq.js} +46 -48
  16. package/dist/{capitalize-ciszXJ7R.js → capitalize-quqpGCFu.js} +1 -1
  17. package/dist/components/access/index.js +8 -15
  18. package/dist/components/access/logic.js +25 -0
  19. package/dist/components/card/index.js +158 -498
  20. package/dist/components/card/logic.js +24 -0
  21. package/dist/components/card/styled.js +226 -51
  22. package/dist/components/card-alternate/index.js +111 -139
  23. package/dist/components/card-alternate/logic.js +17 -0
  24. package/dist/components/card-alternate/styled.js +113 -19
  25. package/dist/components/collapsible-card/index.js +1 -1
  26. package/dist/components/collapsible-card/styled.js +1 -1
  27. package/dist/components/confirm/dialog.js +3 -3
  28. package/dist/components/confirm/index.js +1 -1
  29. package/dist/components/container/index.js +28 -269
  30. package/dist/components/container/logic.js +12 -0
  31. package/dist/components/container/styled.js +29 -0
  32. package/dist/components/context-menu/index.js +25 -457
  33. package/dist/components/context-menu/logic.js +14 -0
  34. package/dist/components/context-menu/styled.js +40 -0
  35. package/dist/components/data-security-selectors/security-level/index.js +36 -91
  36. package/dist/components/data-security-selectors/security-level/logic.js +73 -0
  37. package/dist/components/data-security-selectors/security-level/styled.js +47 -0
  38. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  39. package/dist/components/geometry-picker/index.js +13 -12
  40. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  41. package/dist/components/instance-form/components/variable/index.js +7 -9
  42. package/dist/components/instance-form/components/variables/index.js +1 -1
  43. package/dist/components/instance-form/index.js +1 -1
  44. package/dist/components/instance-hierarchy-table/index.js +32 -37
  45. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  46. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  47. package/dist/components/instance-table/index.js +30 -135
  48. package/dist/components/instance-table/logic.js +122 -0
  49. package/dist/components/instance-table/styled.js +53 -11
  50. package/dist/components/key-protection/index.js +45 -2
  51. package/dist/components/key-protection/logic.js +40 -0
  52. package/dist/components/key-protection/styled.js +45 -0
  53. package/dist/components/key-protection/utils.js +1 -1
  54. package/dist/components/loading/index.js +15 -9
  55. package/dist/components/loading/logic.js +15 -0
  56. package/dist/components/loading/styled.js +26 -19
  57. package/dist/components/phone-input/index.js +18 -22
  58. package/dist/components/phone-input/logic.js +14 -0
  59. package/dist/components/phone-input/styled.js +12 -4
  60. package/dist/components/property-mapping/index.js +1 -1
  61. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  62. package/dist/components/range-selector/components/date-range/index.js +87 -4221
  63. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  64. package/dist/components/range-selector/components/number-range/index.js +48 -53
  65. package/dist/components/range-selector/components/string-range/index.js +15 -17
  66. package/dist/components/range-selector/index.js +63 -57
  67. package/dist/components/range-selector/logic.js +12 -0
  68. package/dist/components/range-selector/styled.js +4222 -0
  69. package/dist/components/template-filters/components/filter/index.js +13 -18
  70. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  71. package/dist/components/template-filters/index.js +21 -29
  72. package/dist/components/template-filters/logic.js +18 -0
  73. package/dist/components/template-filters/styled.js +44 -1
  74. package/dist/components/template-form/components/property-list/index.js +8 -8
  75. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  76. package/dist/components/template-form/components/property-list/property-list-form.js +8 -10
  77. package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
  78. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  79. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +8 -9
  80. package/dist/components/template-form/index.js +32 -33
  81. package/dist/components/template-property-filters/index.js +45 -95
  82. package/dist/components/template-property-filters/logic.js +27 -0
  83. package/dist/components/template-property-filters/property.js +105 -165
  84. package/dist/components/template-property-filters/styled.js +121 -20
  85. package/dist/components/tree-select/index.js +52 -67
  86. package/dist/components/tree-select/logic.js +59 -0
  87. package/dist/components/tree-select/styled.js +45 -62
  88. package/dist/components/treeview-filter/index.js +43 -65
  89. package/dist/components/treeview-filter/item/index.js +43 -42
  90. package/dist/components/treeview-filter/item-label/index.js +17 -37
  91. package/dist/components/treeview-filter/logic.js +28 -0
  92. package/dist/components/treeview-filter/styled.js +86 -0
  93. package/dist/components/uploader/index.js +532 -567
  94. package/dist/components/uploader/logic.js +74 -0
  95. package/dist/components/uploader/styled.js +93 -46
  96. package/dist/{createSvgIcon-BjpIhJ30.js → createSvgIcon-BM3-TsGy.js} +25 -26
  97. package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-DX-SqL8M.js} +23 -25
  98. package/dist/{dialog-DcwXug9J.js → dialog-cf4HUXXl.js} +26 -27
  99. package/dist/{index-syTc6m_V.js → index-C8C3YXle.js} +92 -94
  100. package/dist/{index-CcdvNlgr.js → index-DPKUmQnz.js} +11 -13
  101. package/dist/isMuiElement-BkJ72LB3.js +26 -0
  102. package/dist/main.d.ts +734 -298
  103. package/dist/main.js +15 -15
  104. package/dist/{property-list-form-zZQfpR0X.js → property-list-form-DL_dEoNn.js} +56 -61
  105. package/dist/{createTheme-DYxDnE9u.js → styled-Bsjp3kFh.js} +232 -176
  106. package/dist/{useMobilePicker-BLg3Blg8.js → useMobilePicker-B-M3dnTn.js} +2692 -2288
  107. package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
  108. package/package.json +1 -1
  109. package/dist/Box-p6OtTUEo.js +0 -30
  110. package/dist/Button-CvE2gnly.js +0 -370
  111. package/dist/CardContent-CSHh-ZlM.js +0 -74
  112. package/dist/Checkbox-CWRMFTBp.js +0 -421
  113. package/dist/FormControlLabel-C8SPv14J.js +0 -195
  114. package/dist/List-tqElle9C.js +0 -121
  115. package/dist/ListItem-CfjsIg4B.js +0 -430
  116. package/dist/Modal-DhPpOoGB.js +0 -1299
  117. package/dist/Paper-2B03OBmZ.js +0 -169
  118. package/dist/TextField-1yCesIbH.js +0 -457
  119. package/dist/components/key-protection/menu.js +0 -85
  120. package/dist/components/treeview-filter/item/styled.js +0 -39
  121. package/dist/debounce-46wSf_lW.js +0 -15
  122. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  123. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  124. package/dist/listItemTextClasses-C3lndiXO.js +0 -16
  125. package/dist/styled-eZwjUruw.js +0 -12
  126. package/dist/useFormControl-CatNKXAi.js +0 -10
  127. package/dist/useThemeProps-BzzHcQyd.js +0 -58
  128. package/dist/utils-BDNynJcd.js +0 -365
@@ -1,121 +0,0 @@
1
- import { a as i, _ as L } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as d from "react";
3
- import { P as e } from "./index-C__OZmYy.js";
4
- import { g as x, u as P, c as y, a as N } from "./useThemeProps-BzzHcQyd.js";
5
- import { s as v } from "./styled-eZwjUruw.js";
6
- import { g as C } from "./createTheme-DYxDnE9u.js";
7
- import { jsx as T, jsxs as j } from "react/jsx-runtime";
8
- const u = /* @__PURE__ */ d.createContext({});
9
- process.env.NODE_ENV !== "production" && (u.displayName = "ListContext");
10
- function _(s) {
11
- return C("MuiList", s);
12
- }
13
- x("MuiList", ["root", "padding", "dense", "subheader"]);
14
- const M = ["children", "className", "component", "dense", "disablePadding", "subheader"], O = (s) => {
15
- const {
16
- classes: o,
17
- disablePadding: t,
18
- dense: n,
19
- subheader: a
20
- } = s;
21
- return N({
22
- root: ["root", !t && "padding", n && "dense", a && "subheader"]
23
- }, _, o);
24
- }, R = v("ul", {
25
- name: "MuiList",
26
- slot: "Root",
27
- overridesResolver: (s, o) => {
28
- const {
29
- ownerState: t
30
- } = s;
31
- return [o.root, !t.disablePadding && o.padding, t.dense && o.dense, t.subheader && o.subheader];
32
- }
33
- })(({
34
- ownerState: s
35
- }) => i({
36
- listStyle: "none",
37
- margin: 0,
38
- padding: 0,
39
- position: "relative"
40
- }, !s.disablePadding && {
41
- paddingTop: 8,
42
- paddingBottom: 8
43
- }, s.subheader && {
44
- paddingTop: 0
45
- })), E = /* @__PURE__ */ d.forwardRef(function(o, t) {
46
- const n = P({
47
- props: o,
48
- name: "MuiList"
49
- }), {
50
- children: a,
51
- className: c,
52
- component: l = "ul",
53
- dense: r = !1,
54
- disablePadding: m = !1,
55
- subheader: b
56
- } = n, f = L(n, M), g = d.useMemo(() => ({
57
- dense: r
58
- }), [r]), p = i({}, n, {
59
- component: l,
60
- dense: r,
61
- disablePadding: m
62
- }), h = O(p);
63
- return /* @__PURE__ */ T(u.Provider, {
64
- value: g,
65
- children: /* @__PURE__ */ j(R, i({
66
- as: l,
67
- className: y(h.root, c),
68
- ref: t,
69
- ownerState: p
70
- }, f, {
71
- children: [b, a]
72
- }))
73
- });
74
- });
75
- process.env.NODE_ENV !== "production" && (E.propTypes = {
76
- // ----------------------------- Warning --------------------------------
77
- // | These PropTypes are generated from the TypeScript type definitions |
78
- // | To update them edit the d.ts file and run "yarn proptypes" |
79
- // ----------------------------------------------------------------------
80
- /**
81
- * The content of the component.
82
- */
83
- children: e.node,
84
- /**
85
- * Override or extend the styles applied to the component.
86
- */
87
- classes: e.object,
88
- /**
89
- * @ignore
90
- */
91
- className: e.string,
92
- /**
93
- * The component used for the root node.
94
- * Either a string to use a HTML element or a component.
95
- */
96
- component: e.elementType,
97
- /**
98
- * If `true`, compact vertical padding designed for keyboard and mouse input is used for
99
- * the list and list items.
100
- * The prop is available to descendant components as the `dense` context.
101
- * @default false
102
- */
103
- dense: e.bool,
104
- /**
105
- * If `true`, vertical padding is removed from the list.
106
- * @default false
107
- */
108
- disablePadding: e.bool,
109
- /**
110
- * The content of the subheader, normally `ListSubheader`.
111
- */
112
- subheader: e.node,
113
- /**
114
- * The system prop that allows defining system overrides as well as additional CSS styles.
115
- */
116
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
117
- });
118
- export {
119
- u as L,
120
- E as a
121
- };
@@ -1,430 +0,0 @@
1
- import { a, _ as S } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
2
- import * as r from "react";
3
- import { P as e } from "./index-C__OZmYy.js";
4
- import { g as R, u as Y, c as L, a as z, b as ot } from "./useThemeProps-BzzHcQyd.js";
5
- import { alpha as x } from "@mui/system";
6
- import { s as $ } from "./styled-eZwjUruw.js";
7
- import { L as h } from "./List-tqElle9C.js";
8
- import { g as M } from "./createTheme-DYxDnE9u.js";
9
- import { jsx as v, jsxs as w } from "react/jsx-runtime";
10
- import { u as st, a as nt, e as at, B as it } from "./ButtonBase-2bPw77UP.js";
11
- import { i as H } from "./isMuiElement-CxT3_ACP.js";
12
- import { i as D } from "./isHostComponent-kiaBvYVo.js";
13
- function rt(t) {
14
- return M("MuiListItem", t);
15
- }
16
- const b = R("MuiListItem", ["root", "container", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "padding", "button", "secondaryAction", "selected"]);
17
- function Mt(t) {
18
- return M("MuiListItemButton", t);
19
- }
20
- const ct = R("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "selected"]);
21
- function lt(t) {
22
- return M("MuiListItemSecondaryAction", t);
23
- }
24
- R("MuiListItemSecondaryAction", ["root", "disableGutters"]);
25
- const dt = ["className"], pt = (t) => {
26
- const {
27
- disableGutters: o,
28
- classes: s
29
- } = t;
30
- return z({
31
- root: ["root", o && "disableGutters"]
32
- }, lt, s);
33
- }, ut = $("div", {
34
- name: "MuiListItemSecondaryAction",
35
- slot: "Root",
36
- overridesResolver: (t, o) => {
37
- const {
38
- ownerState: s
39
- } = t;
40
- return [o.root, s.disableGutters && o.disableGutters];
41
- }
42
- })(({
43
- ownerState: t
44
- }) => a({
45
- position: "absolute",
46
- right: 16,
47
- top: "50%",
48
- transform: "translateY(-50%)"
49
- }, t.disableGutters && {
50
- right: 0
51
- })), T = /* @__PURE__ */ r.forwardRef(function(o, s) {
52
- const n = Y({
53
- props: o,
54
- name: "MuiListItemSecondaryAction"
55
- }), {
56
- className: i
57
- } = n, c = S(n, dt), p = r.useContext(h), u = a({}, n, {
58
- disableGutters: p.disableGutters
59
- }), f = pt(u);
60
- return /* @__PURE__ */ v(ut, a({
61
- className: L(f.root, i),
62
- ownerState: u,
63
- ref: s
64
- }, c));
65
- });
66
- process.env.NODE_ENV !== "production" && (T.propTypes = {
67
- // ----------------------------- Warning --------------------------------
68
- // | These PropTypes are generated from the TypeScript type definitions |
69
- // | To update them edit the d.ts file and run "yarn proptypes" |
70
- // ----------------------------------------------------------------------
71
- /**
72
- * The content of the component, normally an `IconButton` or selection control.
73
- */
74
- children: e.node,
75
- /**
76
- * Override or extend the styles applied to the component.
77
- */
78
- classes: e.object,
79
- /**
80
- * @ignore
81
- */
82
- className: e.string,
83
- /**
84
- * The system prop that allows defining system overrides as well as additional CSS styles.
85
- */
86
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
87
- });
88
- T.muiName = "ListItemSecondaryAction";
89
- const mt = ["className"], bt = ["alignItems", "autoFocus", "button", "children", "className", "component", "components", "componentsProps", "ContainerComponent", "ContainerProps", "dense", "disabled", "disableGutters", "disablePadding", "divider", "focusVisibleClassName", "secondaryAction", "selected", "slotProps", "slots"], ft = (t, o) => {
90
- const {
91
- ownerState: s
92
- } = t;
93
- return [o.root, s.dense && o.dense, s.alignItems === "flex-start" && o.alignItemsFlexStart, s.divider && o.divider, !s.disableGutters && o.gutters, !s.disablePadding && o.padding, s.button && o.button, s.hasSecondaryAction && o.secondaryAction];
94
- }, gt = (t) => {
95
- const {
96
- alignItems: o,
97
- button: s,
98
- classes: n,
99
- dense: i,
100
- disabled: c,
101
- disableGutters: p,
102
- disablePadding: u,
103
- divider: f,
104
- hasSecondaryAction: g,
105
- selected: A
106
- } = t;
107
- return z({
108
- root: ["root", i && "dense", !p && "gutters", !u && "padding", f && "divider", c && "disabled", s && "button", o === "flex-start" && "alignItemsFlexStart", g && "secondaryAction", A && "selected"],
109
- container: ["container"]
110
- }, rt, n);
111
- }, yt = $("div", {
112
- name: "MuiListItem",
113
- slot: "Root",
114
- overridesResolver: ft
115
- })(({
116
- theme: t,
117
- ownerState: o
118
- }) => a({
119
- display: "flex",
120
- justifyContent: "flex-start",
121
- alignItems: "center",
122
- position: "relative",
123
- textDecoration: "none",
124
- width: "100%",
125
- boxSizing: "border-box",
126
- textAlign: "left"
127
- }, !o.disablePadding && a({
128
- paddingTop: 8,
129
- paddingBottom: 8
130
- }, o.dense && {
131
- paddingTop: 4,
132
- paddingBottom: 4
133
- }, !o.disableGutters && {
134
- paddingLeft: 16,
135
- paddingRight: 16
136
- }, !!o.secondaryAction && {
137
- // Add some space to avoid collision as `ListItemSecondaryAction`
138
- // is absolutely positioned.
139
- paddingRight: 48
140
- }), !!o.secondaryAction && {
141
- [`& > .${ct.root}`]: {
142
- paddingRight: 48
143
- }
144
- }, {
145
- [`&.${b.focusVisible}`]: {
146
- backgroundColor: (t.vars || t).palette.action.focus
147
- },
148
- [`&.${b.selected}`]: {
149
- backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})` : x(t.palette.primary.main, t.palette.action.selectedOpacity),
150
- [`&.${b.focusVisible}`]: {
151
- backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : x(t.palette.primary.main, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
152
- }
153
- },
154
- [`&.${b.disabled}`]: {
155
- opacity: (t.vars || t).palette.action.disabledOpacity
156
- }
157
- }, o.alignItems === "flex-start" && {
158
- alignItems: "flex-start"
159
- }, o.divider && {
160
- borderBottom: `1px solid ${(t.vars || t).palette.divider}`,
161
- backgroundClip: "padding-box"
162
- }, o.button && {
163
- transition: t.transitions.create("background-color", {
164
- duration: t.transitions.duration.shortest
165
- }),
166
- "&:hover": {
167
- textDecoration: "none",
168
- backgroundColor: (t.vars || t).palette.action.hover,
169
- // Reset on touch devices, it doesn't add specificity
170
- "@media (hover: none)": {
171
- backgroundColor: "transparent"
172
- }
173
- },
174
- [`&.${b.selected}:hover`]: {
175
- backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : x(t.palette.primary.main, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity),
176
- // Reset on touch devices, it doesn't add specificity
177
- "@media (hover: none)": {
178
- backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})` : x(t.palette.primary.main, t.palette.action.selectedOpacity)
179
- }
180
- }
181
- }, o.hasSecondaryAction && {
182
- // Add some space to avoid collision as `ListItemSecondaryAction`
183
- // is absolutely positioned.
184
- paddingRight: 48
185
- })), vt = $("li", {
186
- name: "MuiListItem",
187
- slot: "Container",
188
- overridesResolver: (t, o) => o.container
189
- })({
190
- position: "relative"
191
- }), Ct = /* @__PURE__ */ r.forwardRef(function(o, s) {
192
- const n = Y({
193
- props: o,
194
- name: "MuiListItem"
195
- }), {
196
- alignItems: i = "center",
197
- autoFocus: c = !1,
198
- button: p = !1,
199
- children: u,
200
- className: f,
201
- component: g,
202
- components: A = {},
203
- componentsProps: G = {},
204
- ContainerComponent: j = "li",
205
- ContainerProps: {
206
- className: W
207
- } = {},
208
- dense: V = !1,
209
- disabled: k = !1,
210
- disableGutters: P = !1,
211
- disablePadding: q = !1,
212
- divider: J = !1,
213
- focusVisibleClassName: K,
214
- secondaryAction: B,
215
- selected: Q = !1,
216
- slotProps: X = {},
217
- slots: Z = {}
218
- } = n, tt = S(n.ContainerProps, mt), et = S(n, bt), E = r.useContext(h), N = r.useMemo(() => ({
219
- dense: V || E.dense || !1,
220
- alignItems: i,
221
- disableGutters: P
222
- }), [i, E.dense, V, P]), O = r.useRef(null);
223
- st(() => {
224
- c && (O.current ? O.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a ListItem whose component has not been rendered."));
225
- }, [c]);
226
- const m = r.Children.toArray(u), U = m.length && H(m[m.length - 1], ["ListItemSecondaryAction"]), C = a({}, n, {
227
- alignItems: i,
228
- autoFocus: c,
229
- button: p,
230
- dense: N.dense,
231
- disabled: k,
232
- disableGutters: P,
233
- disablePadding: q,
234
- divider: J,
235
- hasSecondaryAction: U,
236
- selected: Q
237
- }), F = gt(C), _ = nt(O, s), I = Z.root || A.Root || yt, y = X.root || G.root || {}, l = a({
238
- className: L(F.root, y.className, f),
239
- disabled: k
240
- }, et);
241
- let d = g || "li";
242
- return p && (l.component = g || "div", l.focusVisibleClassName = L(b.focusVisible, K), d = it), U ? (d = !l.component && !g ? "div" : d, j === "li" && (d === "li" ? d = "div" : l.component === "li" && (l.component = "div")), /* @__PURE__ */ v(h.Provider, {
243
- value: N,
244
- children: /* @__PURE__ */ w(vt, a({
245
- as: j,
246
- className: L(F.container, W),
247
- ref: _,
248
- ownerState: C
249
- }, tt, {
250
- children: [/* @__PURE__ */ v(I, a({}, y, !D(I) && {
251
- as: d,
252
- ownerState: a({}, C, y.ownerState)
253
- }, l, {
254
- children: m
255
- })), m.pop()]
256
- }))
257
- })) : /* @__PURE__ */ v(h.Provider, {
258
- value: N,
259
- children: /* @__PURE__ */ w(I, a({}, y, {
260
- as: d,
261
- ref: _
262
- }, !D(I) && {
263
- ownerState: a({}, C, y.ownerState)
264
- }, l, {
265
- children: [m, B && /* @__PURE__ */ v(T, {
266
- children: B
267
- })]
268
- }))
269
- });
270
- });
271
- process.env.NODE_ENV !== "production" && (Ct.propTypes = {
272
- // ----------------------------- Warning --------------------------------
273
- // | These PropTypes are generated from the TypeScript type definitions |
274
- // | To update them edit the d.ts file and run "yarn proptypes" |
275
- // ----------------------------------------------------------------------
276
- /**
277
- * Defines the `align-items` style property.
278
- * @default 'center'
279
- */
280
- alignItems: e.oneOf(["center", "flex-start"]),
281
- /**
282
- * If `true`, the list item is focused during the first mount.
283
- * Focus will also be triggered if the value changes from false to true.
284
- * @default false
285
- * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
286
- */
287
- autoFocus: e.bool,
288
- /**
289
- * If `true`, the list item is a button (using `ButtonBase`). Props intended
290
- * for `ButtonBase` can then be applied to `ListItem`.
291
- * @default false
292
- * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
293
- */
294
- button: e.bool,
295
- /**
296
- * The content of the component if a `ListItemSecondaryAction` is used it must
297
- * be the last child.
298
- */
299
- children: ot(e.node, (t) => {
300
- const o = r.Children.toArray(t.children);
301
- let s = -1;
302
- for (let n = o.length - 1; n >= 0; n -= 1) {
303
- const i = o[n];
304
- if (H(i, ["ListItemSecondaryAction"])) {
305
- s = n;
306
- break;
307
- }
308
- }
309
- return s !== -1 && s !== o.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;
310
- }),
311
- /**
312
- * Override or extend the styles applied to the component.
313
- */
314
- classes: e.object,
315
- /**
316
- * @ignore
317
- */
318
- className: e.string,
319
- /**
320
- * The component used for the root node.
321
- * Either a string to use a HTML element or a component.
322
- */
323
- component: e.elementType,
324
- /**
325
- * The components used for each slot inside.
326
- *
327
- * This prop is an alias for the `slots` prop.
328
- * It's recommended to use the `slots` prop instead.
329
- *
330
- * @default {}
331
- */
332
- components: e.shape({
333
- Root: e.elementType
334
- }),
335
- /**
336
- * The extra props for the slot components.
337
- * You can override the existing props or add new ones.
338
- *
339
- * This prop is an alias for the `slotProps` prop.
340
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
341
- *
342
- * @default {}
343
- */
344
- componentsProps: e.shape({
345
- root: e.object
346
- }),
347
- /**
348
- * The container component used when a `ListItemSecondaryAction` is the last child.
349
- * @default 'li'
350
- * @deprecated
351
- */
352
- ContainerComponent: at,
353
- /**
354
- * Props applied to the container component if used.
355
- * @default {}
356
- * @deprecated
357
- */
358
- ContainerProps: e.object,
359
- /**
360
- * If `true`, compact vertical padding designed for keyboard and mouse input is used.
361
- * The prop defaults to the value inherited from the parent List component.
362
- * @default false
363
- */
364
- dense: e.bool,
365
- /**
366
- * If `true`, the component is disabled.
367
- * @default false
368
- * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
369
- */
370
- disabled: e.bool,
371
- /**
372
- * If `true`, the left and right padding is removed.
373
- * @default false
374
- */
375
- disableGutters: e.bool,
376
- /**
377
- * If `true`, all padding is removed.
378
- * @default false
379
- */
380
- disablePadding: e.bool,
381
- /**
382
- * If `true`, a 1px light border is added to the bottom of the list item.
383
- * @default false
384
- */
385
- divider: e.bool,
386
- /**
387
- * @ignore
388
- */
389
- focusVisibleClassName: e.string,
390
- /**
391
- * The element to display at the end of ListItem.
392
- */
393
- secondaryAction: e.node,
394
- /**
395
- * Use to apply selected styling.
396
- * @default false
397
- * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
398
- */
399
- selected: e.bool,
400
- /**
401
- * The extra props for the slot components.
402
- * You can override the existing props or add new ones.
403
- *
404
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
405
- *
406
- * @default {}
407
- */
408
- slotProps: e.shape({
409
- root: e.object
410
- }),
411
- /**
412
- * The components used for each slot inside.
413
- *
414
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
415
- *
416
- * @default {}
417
- */
418
- slots: e.shape({
419
- root: e.elementType
420
- }),
421
- /**
422
- * The system prop that allows defining system overrides as well as additional CSS styles.
423
- */
424
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
425
- });
426
- export {
427
- Ct as L,
428
- Mt as g,
429
- ct as l
430
- };