@amateescu/portal-ui-components 0.0.48 → 0.0.50
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.
- package/dist/Box-DU079Glg.js +57 -0
- package/dist/{Button-Bx3LbSbV.js → Button-BgsadnaR.js} +13 -13
- package/dist/{ButtonBase-DV7q7wxh.js → ButtonBase-ugYh038t.js} +8 -8
- package/dist/{CheckBox-YBX2j1qt.js → CheckBox-D9YmAV-l.js} +1 -1
- package/dist/{CircularProgress-BXi3nXc9.js → CircularProgress-D1FWO7Cz.js} +1 -1
- package/dist/{Clear-Bz9hw2Wj.js → Clear-B32X2R1T.js} +1 -1
- package/dist/Close-IqnCWZPM.js +8 -0
- package/dist/{DefaultPropsProvider-ByENA_w0.js → DefaultPropsProvider-BQx1AiAq.js} +20 -19
- package/dist/ExpandMore-CHNJSd5N.js +8 -0
- package/dist/ListItem-1DiNy9oq.js +422 -0
- package/dist/ListItemText-VX0lo95z.js +434 -0
- package/dist/Modal-BnD35xWv.js +1325 -0
- package/dist/{Search-D_9Ptbky.js → Search-DnJ3yLMg.js} +1 -1
- package/dist/assets/PassportFilter.css +1 -0
- package/dist/assets/PassportFilterDrawer.css +1 -0
- package/dist/assets/PassportFilterFreeTextFilter.css +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.js +8 -60
- package/dist/components/Login/Login.js +1 -1
- package/dist/components/PassportButton/PassportButton.js +1 -1
- package/dist/components/PassportDatePicker/PassportDatePicker.js +21 -20
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.js +298 -291
- package/dist/components/PassportDatesFilter/PassportDatesFilter.js +24 -26
- package/dist/components/PassportFilter/PassportFilter.d.ts +5 -0
- package/dist/components/PassportFilter/PassportFilter.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilter.js +154 -0
- package/dist/components/PassportFilter/PassportFilter.stories.d.ts +13 -0
- package/dist/components/PassportFilter/PassportFilter.stories.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilter.types.d.ts +61 -0
- package/dist/components/PassportFilter/PassportFilter.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilter.types.js +5 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.d.ts +5 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.js +756 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.d.ts +28 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.js +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.d.ts +4 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.js +94 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.d.ts +16 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.js +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.d.ts +4 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.js +736 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.d.ts +37 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.js +1 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.d.ts +4 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.js +180 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.d.ts +17 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.js +1 -0
- package/dist/components/PassportInput/PassportInput.js +2 -2
- package/dist/components/PassportMultiSelect/PassportMultiSelect.js +1 -1
- package/dist/components/PassportPagination/PassportPagination.js +96 -94
- package/dist/components/PassportSearchableMultiSelect/PassportSearchableMultiSelect.js +1 -1
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.d.ts +1 -1
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.d.ts.map +1 -1
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.js +31 -28
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.stories.d.ts +1 -0
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.stories.d.ts.map +1 -1
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.types.d.ts +1 -0
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.types.d.ts.map +1 -1
- package/dist/components/PassportTreeSelect/PassportTreeSelect.js +82 -79
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +4 -2
- package/dist/{createSvgIcon-D5xeIEZ_.js → createSvgIcon-Crk7qT6j.js} +1 -1
- package/dist/{extendSxProp-BtJlbIOl.js → extendSxProp-BHclE0DL.js} +1 -1
- package/dist/getReactElementRef-CIbXfZbo.js +45 -0
- package/dist/index-DfCFE9GG.js +9 -0
- package/dist/listItemButtonClasses-BLTBU8Yh.js +476 -0
- package/dist/listItemIconClasses-B_UAYnw7.js +9 -0
- package/dist/listItemTextClasses-D5in-Wsc.js +9 -0
- package/dist/main.js +41 -37
- package/dist/portal-utils/arrays.d.ts +2 -0
- package/dist/portal-utils/arrays.d.ts.map +1 -0
- package/dist/portal-utils/arrays.js +10 -0
- package/dist/portal-utils/index.d.ts +1 -0
- package/dist/portal-utils/index.d.ts.map +1 -1
- package/dist/portal-utils/index.js +17 -15
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/useControlled-D1L5tREc.js +31 -0
- package/dist/useFormControl-Ivp9nwoj.js +53 -0
- package/dist/{useMobilePicker-CFsW9hUG.js → useMobilePicker-BombQ5QA.js} +5381 -7587
- package/dist/useSlot-B1oIMjd_.js +126 -0
- package/dist/useTheme-9dlwNzrD.js +10 -0
- package/dist/{useTheme-Cz8ZipjJ.js → useTheme-Dxbczges.js} +3 -3
- package/dist/useThemeProps-j6Er0aGl.js +27 -0
- package/dist/{useFormControl-MVwkyimi.js → utils-6k-H8qFR.js} +155 -231
- package/package.json +1 -1
- package/dist/useSlot-Bm5YJQBR.js +0 -160
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { b as U, g as k, u as E, s as x, c as C, f as F, P as e, m as Q } from "./DefaultPropsProvider-BQx1AiAq.js";
|
|
3
|
+
import { u as W, i as M } from "./useSlot-B1oIMjd_.js";
|
|
4
|
+
import { L as h, i as D, l as X } from "./listItemButtonClasses-BLTBU8Yh.js";
|
|
5
|
+
import { jsx as f, jsxs as O } from "react/jsx-runtime";
|
|
6
|
+
import { a as Z, e as ee } from "./ButtonBase-ugYh038t.js";
|
|
7
|
+
import { a as te } from "./createSimplePaletteValueFilter-Bz8RuRaa.js";
|
|
8
|
+
function oe(o) {
|
|
9
|
+
return U("MuiListItem", o);
|
|
10
|
+
}
|
|
11
|
+
k("MuiListItem", ["root", "container", "dense", "alignItemsFlexStart", "divider", "gutters", "padding", "secondaryAction"]);
|
|
12
|
+
function se(o) {
|
|
13
|
+
return U("MuiListItemSecondaryAction", o);
|
|
14
|
+
}
|
|
15
|
+
k("MuiListItemSecondaryAction", ["root", "disableGutters"]);
|
|
16
|
+
const ne = (o) => {
|
|
17
|
+
const {
|
|
18
|
+
disableGutters: t,
|
|
19
|
+
classes: s
|
|
20
|
+
} = o;
|
|
21
|
+
return F({
|
|
22
|
+
root: ["root", t && "disableGutters"]
|
|
23
|
+
}, se, s);
|
|
24
|
+
}, re = x("div", {
|
|
25
|
+
name: "MuiListItemSecondaryAction",
|
|
26
|
+
slot: "Root",
|
|
27
|
+
overridesResolver: (o, t) => {
|
|
28
|
+
const {
|
|
29
|
+
ownerState: s
|
|
30
|
+
} = o;
|
|
31
|
+
return [t.root, s.disableGutters && t.disableGutters];
|
|
32
|
+
}
|
|
33
|
+
})({
|
|
34
|
+
position: "absolute",
|
|
35
|
+
right: 16,
|
|
36
|
+
top: "50%",
|
|
37
|
+
transform: "translateY(-50%)",
|
|
38
|
+
variants: [{
|
|
39
|
+
props: ({
|
|
40
|
+
ownerState: o
|
|
41
|
+
}) => o.disableGutters,
|
|
42
|
+
style: {
|
|
43
|
+
right: 0
|
|
44
|
+
}
|
|
45
|
+
}]
|
|
46
|
+
}), S = /* @__PURE__ */ i.forwardRef(function(t, s) {
|
|
47
|
+
const n = E({
|
|
48
|
+
props: t,
|
|
49
|
+
name: "MuiListItemSecondaryAction"
|
|
50
|
+
}), {
|
|
51
|
+
className: r,
|
|
52
|
+
...l
|
|
53
|
+
} = n, p = i.useContext(h), a = {
|
|
54
|
+
...n,
|
|
55
|
+
disableGutters: p.disableGutters
|
|
56
|
+
}, g = ne(a);
|
|
57
|
+
return /* @__PURE__ */ f(re, {
|
|
58
|
+
className: C(g.root, r),
|
|
59
|
+
ownerState: a,
|
|
60
|
+
ref: s,
|
|
61
|
+
...l
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
65
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
66
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
67
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
68
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
69
|
+
/**
|
|
70
|
+
* The content of the component, normally an `IconButton` or selection control.
|
|
71
|
+
*/
|
|
72
|
+
children: e.node,
|
|
73
|
+
/**
|
|
74
|
+
* Override or extend the styles applied to the component.
|
|
75
|
+
*/
|
|
76
|
+
classes: e.object,
|
|
77
|
+
/**
|
|
78
|
+
* @ignore
|
|
79
|
+
*/
|
|
80
|
+
className: e.string,
|
|
81
|
+
/**
|
|
82
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
83
|
+
*/
|
|
84
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
85
|
+
});
|
|
86
|
+
S.muiName = "ListItemSecondaryAction";
|
|
87
|
+
const ie = (o, t) => {
|
|
88
|
+
const {
|
|
89
|
+
ownerState: s
|
|
90
|
+
} = o;
|
|
91
|
+
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];
|
|
92
|
+
}, ae = (o) => {
|
|
93
|
+
const {
|
|
94
|
+
alignItems: t,
|
|
95
|
+
classes: s,
|
|
96
|
+
dense: n,
|
|
97
|
+
disableGutters: r,
|
|
98
|
+
disablePadding: l,
|
|
99
|
+
divider: p,
|
|
100
|
+
hasSecondaryAction: a
|
|
101
|
+
} = o;
|
|
102
|
+
return F({
|
|
103
|
+
root: ["root", n && "dense", !r && "gutters", !l && "padding", p && "divider", t === "flex-start" && "alignItemsFlexStart", a && "secondaryAction"],
|
|
104
|
+
container: ["container"],
|
|
105
|
+
secondaryAction: ["secondaryAction"]
|
|
106
|
+
}, oe, s);
|
|
107
|
+
}, ce = x("div", {
|
|
108
|
+
name: "MuiListItem",
|
|
109
|
+
slot: "Root",
|
|
110
|
+
overridesResolver: ie
|
|
111
|
+
})(Q(({
|
|
112
|
+
theme: o
|
|
113
|
+
}) => ({
|
|
114
|
+
display: "flex",
|
|
115
|
+
justifyContent: "flex-start",
|
|
116
|
+
alignItems: "center",
|
|
117
|
+
position: "relative",
|
|
118
|
+
textDecoration: "none",
|
|
119
|
+
width: "100%",
|
|
120
|
+
boxSizing: "border-box",
|
|
121
|
+
textAlign: "left",
|
|
122
|
+
variants: [{
|
|
123
|
+
props: ({
|
|
124
|
+
ownerState: t
|
|
125
|
+
}) => !t.disablePadding,
|
|
126
|
+
style: {
|
|
127
|
+
paddingTop: 8,
|
|
128
|
+
paddingBottom: 8
|
|
129
|
+
}
|
|
130
|
+
}, {
|
|
131
|
+
props: ({
|
|
132
|
+
ownerState: t
|
|
133
|
+
}) => !t.disablePadding && t.dense,
|
|
134
|
+
style: {
|
|
135
|
+
paddingTop: 4,
|
|
136
|
+
paddingBottom: 4
|
|
137
|
+
}
|
|
138
|
+
}, {
|
|
139
|
+
props: ({
|
|
140
|
+
ownerState: t
|
|
141
|
+
}) => !t.disablePadding && !t.disableGutters,
|
|
142
|
+
style: {
|
|
143
|
+
paddingLeft: 16,
|
|
144
|
+
paddingRight: 16
|
|
145
|
+
}
|
|
146
|
+
}, {
|
|
147
|
+
props: ({
|
|
148
|
+
ownerState: t
|
|
149
|
+
}) => !t.disablePadding && !!t.secondaryAction,
|
|
150
|
+
style: {
|
|
151
|
+
// Add some space to avoid collision as `ListItemSecondaryAction`
|
|
152
|
+
// is absolutely positioned.
|
|
153
|
+
paddingRight: 48
|
|
154
|
+
}
|
|
155
|
+
}, {
|
|
156
|
+
props: ({
|
|
157
|
+
ownerState: t
|
|
158
|
+
}) => !!t.secondaryAction,
|
|
159
|
+
style: {
|
|
160
|
+
[`& > .${X.root}`]: {
|
|
161
|
+
paddingRight: 48
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}, {
|
|
165
|
+
props: {
|
|
166
|
+
alignItems: "flex-start"
|
|
167
|
+
},
|
|
168
|
+
style: {
|
|
169
|
+
alignItems: "flex-start"
|
|
170
|
+
}
|
|
171
|
+
}, {
|
|
172
|
+
props: ({
|
|
173
|
+
ownerState: t
|
|
174
|
+
}) => t.divider,
|
|
175
|
+
style: {
|
|
176
|
+
borderBottom: `1px solid ${(o.vars || o).palette.divider}`,
|
|
177
|
+
backgroundClip: "padding-box"
|
|
178
|
+
}
|
|
179
|
+
}, {
|
|
180
|
+
props: ({
|
|
181
|
+
ownerState: t
|
|
182
|
+
}) => t.button,
|
|
183
|
+
style: {
|
|
184
|
+
transition: o.transitions.create("background-color", {
|
|
185
|
+
duration: o.transitions.duration.shortest
|
|
186
|
+
}),
|
|
187
|
+
"&:hover": {
|
|
188
|
+
textDecoration: "none",
|
|
189
|
+
backgroundColor: (o.vars || o).palette.action.hover,
|
|
190
|
+
// Reset on touch devices, it doesn't add specificity
|
|
191
|
+
"@media (hover: none)": {
|
|
192
|
+
backgroundColor: "transparent"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}, {
|
|
197
|
+
props: ({
|
|
198
|
+
ownerState: t
|
|
199
|
+
}) => t.hasSecondaryAction,
|
|
200
|
+
style: {
|
|
201
|
+
// Add some space to avoid collision as `ListItemSecondaryAction`
|
|
202
|
+
// is absolutely positioned.
|
|
203
|
+
paddingRight: 48
|
|
204
|
+
}
|
|
205
|
+
}]
|
|
206
|
+
}))), de = x("li", {
|
|
207
|
+
name: "MuiListItem",
|
|
208
|
+
slot: "Container"
|
|
209
|
+
})({
|
|
210
|
+
position: "relative"
|
|
211
|
+
}), le = /* @__PURE__ */ i.forwardRef(function(t, s) {
|
|
212
|
+
const n = E({
|
|
213
|
+
props: t,
|
|
214
|
+
name: "MuiListItem"
|
|
215
|
+
}), {
|
|
216
|
+
alignItems: r = "center",
|
|
217
|
+
children: l,
|
|
218
|
+
className: p,
|
|
219
|
+
component: a,
|
|
220
|
+
components: g = {},
|
|
221
|
+
componentsProps: B = {},
|
|
222
|
+
ContainerComponent: L = "li",
|
|
223
|
+
ContainerProps: {
|
|
224
|
+
className: $,
|
|
225
|
+
...V
|
|
226
|
+
} = {},
|
|
227
|
+
dense: P = !1,
|
|
228
|
+
disableGutters: I = !1,
|
|
229
|
+
disablePadding: Y = !1,
|
|
230
|
+
divider: _ = !1,
|
|
231
|
+
secondaryAction: R,
|
|
232
|
+
slotProps: T = {},
|
|
233
|
+
slots: N = {},
|
|
234
|
+
...z
|
|
235
|
+
} = n, j = i.useContext(h), A = i.useMemo(() => ({
|
|
236
|
+
dense: P || j.dense || !1,
|
|
237
|
+
alignItems: r,
|
|
238
|
+
disableGutters: I
|
|
239
|
+
}), [r, j.dense, P, I]), H = i.useRef(null), c = i.Children.toArray(l), G = c.length && D(c[c.length - 1], ["ListItemSecondaryAction"]), m = {
|
|
240
|
+
...n,
|
|
241
|
+
alignItems: r,
|
|
242
|
+
dense: A.dense,
|
|
243
|
+
disableGutters: I,
|
|
244
|
+
disablePadding: Y,
|
|
245
|
+
divider: _,
|
|
246
|
+
hasSecondaryAction: G
|
|
247
|
+
}, v = ae(m), w = Z(H, s), q = {
|
|
248
|
+
slots: N,
|
|
249
|
+
slotProps: T
|
|
250
|
+
}, [J, K] = W("secondaryAction", {
|
|
251
|
+
elementType: S,
|
|
252
|
+
externalForwardedProps: q,
|
|
253
|
+
ownerState: m,
|
|
254
|
+
className: v.secondaryAction
|
|
255
|
+
}), b = N.root || g.Root || ce, u = T.root || B.root || {}, y = {
|
|
256
|
+
className: C(v.root, u.className, p),
|
|
257
|
+
...z
|
|
258
|
+
};
|
|
259
|
+
let d = a || "li";
|
|
260
|
+
return G ? (d = !y.component && !a ? "div" : d, L === "li" && (d === "li" ? d = "div" : y.component === "li" && (y.component = "div")), /* @__PURE__ */ f(h.Provider, {
|
|
261
|
+
value: A,
|
|
262
|
+
children: /* @__PURE__ */ O(de, {
|
|
263
|
+
as: L,
|
|
264
|
+
className: C(v.container, $),
|
|
265
|
+
ref: w,
|
|
266
|
+
ownerState: m,
|
|
267
|
+
...V,
|
|
268
|
+
children: [/* @__PURE__ */ f(b, {
|
|
269
|
+
...u,
|
|
270
|
+
...!M(b) && {
|
|
271
|
+
as: d,
|
|
272
|
+
ownerState: {
|
|
273
|
+
...m,
|
|
274
|
+
...u.ownerState
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
...y,
|
|
278
|
+
children: c
|
|
279
|
+
}), c.pop()]
|
|
280
|
+
})
|
|
281
|
+
})) : /* @__PURE__ */ f(h.Provider, {
|
|
282
|
+
value: A,
|
|
283
|
+
children: /* @__PURE__ */ O(b, {
|
|
284
|
+
...u,
|
|
285
|
+
as: d,
|
|
286
|
+
ref: w,
|
|
287
|
+
...!M(b) && {
|
|
288
|
+
ownerState: {
|
|
289
|
+
...m,
|
|
290
|
+
...u.ownerState
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
...y,
|
|
294
|
+
children: [c, R && /* @__PURE__ */ f(J, {
|
|
295
|
+
...K,
|
|
296
|
+
children: R
|
|
297
|
+
})]
|
|
298
|
+
})
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
process.env.NODE_ENV !== "production" && (le.propTypes = {
|
|
302
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
303
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
304
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
305
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
306
|
+
/**
|
|
307
|
+
* Defines the `align-items` style property.
|
|
308
|
+
* @default 'center'
|
|
309
|
+
*/
|
|
310
|
+
alignItems: e.oneOf(["center", "flex-start"]),
|
|
311
|
+
/**
|
|
312
|
+
* The content of the component if a `ListItemSecondaryAction` is used it must
|
|
313
|
+
* be the last child.
|
|
314
|
+
*/
|
|
315
|
+
children: te(e.node, (o) => {
|
|
316
|
+
const t = i.Children.toArray(o.children);
|
|
317
|
+
let s = -1;
|
|
318
|
+
for (let n = t.length - 1; n >= 0; n -= 1) {
|
|
319
|
+
const r = t[n];
|
|
320
|
+
if (D(r, ["ListItemSecondaryAction"])) {
|
|
321
|
+
s = n;
|
|
322
|
+
break;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
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;
|
|
326
|
+
}),
|
|
327
|
+
/**
|
|
328
|
+
* Override or extend the styles applied to the component.
|
|
329
|
+
*/
|
|
330
|
+
classes: e.object,
|
|
331
|
+
/**
|
|
332
|
+
* @ignore
|
|
333
|
+
*/
|
|
334
|
+
className: e.string,
|
|
335
|
+
/**
|
|
336
|
+
* The component used for the root node.
|
|
337
|
+
* Either a string to use a HTML element or a component.
|
|
338
|
+
*/
|
|
339
|
+
component: e.elementType,
|
|
340
|
+
/**
|
|
341
|
+
* The components used for each slot inside.
|
|
342
|
+
*
|
|
343
|
+
* @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
344
|
+
* @default {}
|
|
345
|
+
*/
|
|
346
|
+
components: e.shape({
|
|
347
|
+
Root: e.elementType
|
|
348
|
+
}),
|
|
349
|
+
/**
|
|
350
|
+
* The extra props for the slot components.
|
|
351
|
+
* You can override the existing props or add new ones.
|
|
352
|
+
*
|
|
353
|
+
* @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
354
|
+
* @default {}
|
|
355
|
+
*/
|
|
356
|
+
componentsProps: e.shape({
|
|
357
|
+
root: e.object
|
|
358
|
+
}),
|
|
359
|
+
/**
|
|
360
|
+
* The container component used when a `ListItemSecondaryAction` is the last child.
|
|
361
|
+
* @default 'li'
|
|
362
|
+
* @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
363
|
+
*/
|
|
364
|
+
ContainerComponent: ee,
|
|
365
|
+
/**
|
|
366
|
+
* Props applied to the container component if used.
|
|
367
|
+
* @default {}
|
|
368
|
+
* @deprecated Use the `slotProps.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
369
|
+
*/
|
|
370
|
+
ContainerProps: e.object,
|
|
371
|
+
/**
|
|
372
|
+
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
373
|
+
* The prop defaults to the value inherited from the parent List component.
|
|
374
|
+
* @default false
|
|
375
|
+
*/
|
|
376
|
+
dense: e.bool,
|
|
377
|
+
/**
|
|
378
|
+
* If `true`, the left and right padding is removed.
|
|
379
|
+
* @default false
|
|
380
|
+
*/
|
|
381
|
+
disableGutters: e.bool,
|
|
382
|
+
/**
|
|
383
|
+
* If `true`, all padding is removed.
|
|
384
|
+
* @default false
|
|
385
|
+
*/
|
|
386
|
+
disablePadding: e.bool,
|
|
387
|
+
/**
|
|
388
|
+
* If `true`, a 1px light border is added to the bottom of the list item.
|
|
389
|
+
* @default false
|
|
390
|
+
*/
|
|
391
|
+
divider: e.bool,
|
|
392
|
+
/**
|
|
393
|
+
* The element to display at the end of ListItem.
|
|
394
|
+
*/
|
|
395
|
+
secondaryAction: e.node,
|
|
396
|
+
/**
|
|
397
|
+
* The extra props for the slot components.
|
|
398
|
+
* You can override the existing props or add new ones.
|
|
399
|
+
*
|
|
400
|
+
* @default {}
|
|
401
|
+
*/
|
|
402
|
+
slotProps: e.shape({
|
|
403
|
+
root: e.object,
|
|
404
|
+
secondaryAction: e.oneOfType([e.func, e.object])
|
|
405
|
+
}),
|
|
406
|
+
/**
|
|
407
|
+
* The components used for each slot inside.
|
|
408
|
+
*
|
|
409
|
+
* @default {}
|
|
410
|
+
*/
|
|
411
|
+
slots: e.shape({
|
|
412
|
+
root: e.elementType,
|
|
413
|
+
secondaryAction: e.elementType
|
|
414
|
+
}),
|
|
415
|
+
/**
|
|
416
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
417
|
+
*/
|
|
418
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
419
|
+
});
|
|
420
|
+
export {
|
|
421
|
+
le as L
|
|
422
|
+
};
|