@amateescu/portal-ui-components 0.0.48 → 0.0.49
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.js +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,434 @@
|
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
import { u as j, s as w, c as $, f as k, r as M, m as U, P as o } from "./DefaultPropsProvider-BQx1AiAq.js";
|
|
3
|
+
import { L as h, g as _, l as x, T, t as R } from "./listItemButtonClasses-BLTBU8Yh.js";
|
|
4
|
+
import { jsx as C, jsxs as W } from "react/jsx-runtime";
|
|
5
|
+
import { u as z, a as A, B as q } from "./ButtonBase-ugYh038t.js";
|
|
6
|
+
import { g as H, l as I } from "./listItemTextClasses-D5in-Wsc.js";
|
|
7
|
+
import { u as S } from "./useSlot-B1oIMjd_.js";
|
|
8
|
+
const J = (e, s) => {
|
|
9
|
+
const {
|
|
10
|
+
ownerState: t
|
|
11
|
+
} = e;
|
|
12
|
+
return [s.root, t.dense && s.dense, t.alignItems === "flex-start" && s.alignItemsFlexStart, t.divider && s.divider, !t.disableGutters && s.gutters];
|
|
13
|
+
}, K = (e) => {
|
|
14
|
+
const {
|
|
15
|
+
alignItems: s,
|
|
16
|
+
classes: t,
|
|
17
|
+
dense: a,
|
|
18
|
+
disabled: n,
|
|
19
|
+
disableGutters: c,
|
|
20
|
+
divider: i,
|
|
21
|
+
selected: b
|
|
22
|
+
} = e, p = k({
|
|
23
|
+
root: ["root", a && "dense", !c && "gutters", i && "divider", n && "disabled", s === "flex-start" && "alignItemsFlexStart", b && "selected"]
|
|
24
|
+
}, _, t);
|
|
25
|
+
return {
|
|
26
|
+
...t,
|
|
27
|
+
...p
|
|
28
|
+
};
|
|
29
|
+
}, Q = w(q, {
|
|
30
|
+
shouldForwardProp: (e) => M(e) || e === "classes",
|
|
31
|
+
name: "MuiListItemButton",
|
|
32
|
+
slot: "Root",
|
|
33
|
+
overridesResolver: J
|
|
34
|
+
})(U(({
|
|
35
|
+
theme: e
|
|
36
|
+
}) => ({
|
|
37
|
+
display: "flex",
|
|
38
|
+
flexGrow: 1,
|
|
39
|
+
justifyContent: "flex-start",
|
|
40
|
+
alignItems: "center",
|
|
41
|
+
position: "relative",
|
|
42
|
+
textDecoration: "none",
|
|
43
|
+
minWidth: 0,
|
|
44
|
+
boxSizing: "border-box",
|
|
45
|
+
textAlign: "left",
|
|
46
|
+
paddingTop: 8,
|
|
47
|
+
paddingBottom: 8,
|
|
48
|
+
transition: e.transitions.create("background-color", {
|
|
49
|
+
duration: e.transitions.duration.shortest
|
|
50
|
+
}),
|
|
51
|
+
"&:hover": {
|
|
52
|
+
textDecoration: "none",
|
|
53
|
+
backgroundColor: (e.vars || e).palette.action.hover,
|
|
54
|
+
// Reset on touch devices, it doesn't add specificity
|
|
55
|
+
"@media (hover: none)": {
|
|
56
|
+
backgroundColor: "transparent"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
[`&.${x.selected}`]: {
|
|
60
|
+
backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity),
|
|
61
|
+
[`&.${x.focusVisible}`]: {
|
|
62
|
+
backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.focusOpacity}`)
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
[`&.${x.selected}:hover`]: {
|
|
66
|
+
backgroundColor: e.alpha((e.vars || e).palette.primary.main, `${(e.vars || e).palette.action.selectedOpacity} + ${(e.vars || e).palette.action.hoverOpacity}`),
|
|
67
|
+
// Reset on touch devices, it doesn't add specificity
|
|
68
|
+
"@media (hover: none)": {
|
|
69
|
+
backgroundColor: e.alpha((e.vars || e).palette.primary.main, (e.vars || e).palette.action.selectedOpacity)
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
[`&.${x.focusVisible}`]: {
|
|
73
|
+
backgroundColor: (e.vars || e).palette.action.focus
|
|
74
|
+
},
|
|
75
|
+
[`&.${x.disabled}`]: {
|
|
76
|
+
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
77
|
+
},
|
|
78
|
+
variants: [{
|
|
79
|
+
props: ({
|
|
80
|
+
ownerState: s
|
|
81
|
+
}) => s.divider,
|
|
82
|
+
style: {
|
|
83
|
+
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
84
|
+
backgroundClip: "padding-box"
|
|
85
|
+
}
|
|
86
|
+
}, {
|
|
87
|
+
props: {
|
|
88
|
+
alignItems: "flex-start"
|
|
89
|
+
},
|
|
90
|
+
style: {
|
|
91
|
+
alignItems: "flex-start"
|
|
92
|
+
}
|
|
93
|
+
}, {
|
|
94
|
+
props: ({
|
|
95
|
+
ownerState: s
|
|
96
|
+
}) => !s.disableGutters,
|
|
97
|
+
style: {
|
|
98
|
+
paddingLeft: 16,
|
|
99
|
+
paddingRight: 16
|
|
100
|
+
}
|
|
101
|
+
}, {
|
|
102
|
+
props: ({
|
|
103
|
+
ownerState: s
|
|
104
|
+
}) => s.dense,
|
|
105
|
+
style: {
|
|
106
|
+
paddingTop: 4,
|
|
107
|
+
paddingBottom: 4
|
|
108
|
+
}
|
|
109
|
+
}]
|
|
110
|
+
}))), X = /* @__PURE__ */ f.forwardRef(function(s, t) {
|
|
111
|
+
const a = j({
|
|
112
|
+
props: s,
|
|
113
|
+
name: "MuiListItemButton"
|
|
114
|
+
}), {
|
|
115
|
+
alignItems: n = "center",
|
|
116
|
+
autoFocus: c = !1,
|
|
117
|
+
component: i = "div",
|
|
118
|
+
children: b,
|
|
119
|
+
dense: m = !1,
|
|
120
|
+
disableGutters: p = !1,
|
|
121
|
+
divider: P = !1,
|
|
122
|
+
focusVisibleClassName: O,
|
|
123
|
+
selected: L = !1,
|
|
124
|
+
className: N,
|
|
125
|
+
...d
|
|
126
|
+
} = a, g = f.useContext(h), l = f.useMemo(() => ({
|
|
127
|
+
dense: m || g.dense || !1,
|
|
128
|
+
alignItems: n,
|
|
129
|
+
disableGutters: p
|
|
130
|
+
}), [n, g.dense, m, p]), r = f.useRef(null);
|
|
131
|
+
z(() => {
|
|
132
|
+
c && (r.current ? r.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."));
|
|
133
|
+
}, [c]);
|
|
134
|
+
const y = {
|
|
135
|
+
...a,
|
|
136
|
+
alignItems: n,
|
|
137
|
+
dense: l.dense,
|
|
138
|
+
disableGutters: p,
|
|
139
|
+
divider: P,
|
|
140
|
+
selected: L
|
|
141
|
+
}, u = K(y), v = A(r, t);
|
|
142
|
+
return /* @__PURE__ */ C(h.Provider, {
|
|
143
|
+
value: l,
|
|
144
|
+
children: /* @__PURE__ */ C(Q, {
|
|
145
|
+
ref: v,
|
|
146
|
+
href: d.href || d.to,
|
|
147
|
+
component: (d.href || d.to) && i === "div" ? "button" : i,
|
|
148
|
+
focusVisibleClassName: $(u.focusVisible, O),
|
|
149
|
+
ownerState: y,
|
|
150
|
+
className: $(u.root, N),
|
|
151
|
+
...d,
|
|
152
|
+
classes: u,
|
|
153
|
+
children: b
|
|
154
|
+
})
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
158
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
159
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
160
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
161
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
162
|
+
/**
|
|
163
|
+
* Defines the `align-items` style property.
|
|
164
|
+
* @default 'center'
|
|
165
|
+
*/
|
|
166
|
+
alignItems: o.oneOf(["center", "flex-start"]),
|
|
167
|
+
/**
|
|
168
|
+
* If `true`, the list item is focused during the first mount.
|
|
169
|
+
* Focus will also be triggered if the value changes from false to true.
|
|
170
|
+
* @default false
|
|
171
|
+
*/
|
|
172
|
+
autoFocus: o.bool,
|
|
173
|
+
/**
|
|
174
|
+
* The content of the component if a `ListItemSecondaryAction` is used it must
|
|
175
|
+
* be the last child.
|
|
176
|
+
*/
|
|
177
|
+
children: o.node,
|
|
178
|
+
/**
|
|
179
|
+
* Override or extend the styles applied to the component.
|
|
180
|
+
*/
|
|
181
|
+
classes: o.object,
|
|
182
|
+
/**
|
|
183
|
+
* @ignore
|
|
184
|
+
*/
|
|
185
|
+
className: o.string,
|
|
186
|
+
/**
|
|
187
|
+
* The component used for the root node.
|
|
188
|
+
* Either a string to use a HTML element or a component.
|
|
189
|
+
*/
|
|
190
|
+
component: o.elementType,
|
|
191
|
+
/**
|
|
192
|
+
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
193
|
+
* The prop defaults to the value inherited from the parent List component.
|
|
194
|
+
* @default false
|
|
195
|
+
*/
|
|
196
|
+
dense: o.bool,
|
|
197
|
+
/**
|
|
198
|
+
* If `true`, the component is disabled.
|
|
199
|
+
* @default false
|
|
200
|
+
*/
|
|
201
|
+
disabled: o.bool,
|
|
202
|
+
/**
|
|
203
|
+
* If `true`, the left and right padding is removed.
|
|
204
|
+
* @default false
|
|
205
|
+
*/
|
|
206
|
+
disableGutters: o.bool,
|
|
207
|
+
/**
|
|
208
|
+
* If `true`, a 1px light border is added to the bottom of the list item.
|
|
209
|
+
* @default false
|
|
210
|
+
*/
|
|
211
|
+
divider: o.bool,
|
|
212
|
+
/**
|
|
213
|
+
* This prop can help identify which element has keyboard focus.
|
|
214
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
215
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
216
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
217
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
218
|
+
* if needed.
|
|
219
|
+
*/
|
|
220
|
+
focusVisibleClassName: o.string,
|
|
221
|
+
/**
|
|
222
|
+
* @ignore
|
|
223
|
+
*/
|
|
224
|
+
href: o.string,
|
|
225
|
+
/**
|
|
226
|
+
* Use to apply selected styling.
|
|
227
|
+
* @default false
|
|
228
|
+
*/
|
|
229
|
+
selected: o.bool,
|
|
230
|
+
/**
|
|
231
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
232
|
+
*/
|
|
233
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
234
|
+
});
|
|
235
|
+
const Y = (e) => {
|
|
236
|
+
const {
|
|
237
|
+
classes: s,
|
|
238
|
+
inset: t,
|
|
239
|
+
primary: a,
|
|
240
|
+
secondary: n,
|
|
241
|
+
dense: c
|
|
242
|
+
} = e;
|
|
243
|
+
return k({
|
|
244
|
+
root: ["root", t && "inset", c && "dense", a && n && "multiline"],
|
|
245
|
+
primary: ["primary"],
|
|
246
|
+
secondary: ["secondary"]
|
|
247
|
+
}, H, s);
|
|
248
|
+
}, Z = w("div", {
|
|
249
|
+
name: "MuiListItemText",
|
|
250
|
+
slot: "Root",
|
|
251
|
+
overridesResolver: (e, s) => {
|
|
252
|
+
const {
|
|
253
|
+
ownerState: t
|
|
254
|
+
} = e;
|
|
255
|
+
return [{
|
|
256
|
+
[`& .${I.primary}`]: s.primary
|
|
257
|
+
}, {
|
|
258
|
+
[`& .${I.secondary}`]: s.secondary
|
|
259
|
+
}, s.root, t.inset && s.inset, t.primary && t.secondary && s.multiline, t.dense && s.dense];
|
|
260
|
+
}
|
|
261
|
+
})({
|
|
262
|
+
flex: "1 1 auto",
|
|
263
|
+
minWidth: 0,
|
|
264
|
+
marginTop: 4,
|
|
265
|
+
marginBottom: 4,
|
|
266
|
+
[`.${R.root}:where(& .${I.primary})`]: {
|
|
267
|
+
display: "block"
|
|
268
|
+
},
|
|
269
|
+
[`.${R.root}:where(& .${I.secondary})`]: {
|
|
270
|
+
display: "block"
|
|
271
|
+
},
|
|
272
|
+
variants: [{
|
|
273
|
+
props: ({
|
|
274
|
+
ownerState: e
|
|
275
|
+
}) => e.primary && e.secondary,
|
|
276
|
+
style: {
|
|
277
|
+
marginTop: 6,
|
|
278
|
+
marginBottom: 6
|
|
279
|
+
}
|
|
280
|
+
}, {
|
|
281
|
+
props: ({
|
|
282
|
+
ownerState: e
|
|
283
|
+
}) => e.inset,
|
|
284
|
+
style: {
|
|
285
|
+
paddingLeft: 56
|
|
286
|
+
}
|
|
287
|
+
}]
|
|
288
|
+
}), ee = /* @__PURE__ */ f.forwardRef(function(s, t) {
|
|
289
|
+
const a = j({
|
|
290
|
+
props: s,
|
|
291
|
+
name: "MuiListItemText"
|
|
292
|
+
}), {
|
|
293
|
+
children: n,
|
|
294
|
+
className: c,
|
|
295
|
+
disableTypography: i = !1,
|
|
296
|
+
inset: b = !1,
|
|
297
|
+
primary: m,
|
|
298
|
+
primaryTypographyProps: p,
|
|
299
|
+
secondary: P,
|
|
300
|
+
secondaryTypographyProps: O,
|
|
301
|
+
slots: L = {},
|
|
302
|
+
slotProps: N = {},
|
|
303
|
+
...d
|
|
304
|
+
} = a, {
|
|
305
|
+
dense: g
|
|
306
|
+
} = f.useContext(h);
|
|
307
|
+
let l = m ?? n, r = P;
|
|
308
|
+
const y = {
|
|
309
|
+
...a,
|
|
310
|
+
disableTypography: i,
|
|
311
|
+
inset: b,
|
|
312
|
+
primary: !!l,
|
|
313
|
+
secondary: !!r,
|
|
314
|
+
dense: g
|
|
315
|
+
}, u = Y(y), v = {
|
|
316
|
+
slots: L,
|
|
317
|
+
slotProps: {
|
|
318
|
+
primary: p,
|
|
319
|
+
secondary: O,
|
|
320
|
+
...N
|
|
321
|
+
}
|
|
322
|
+
}, [F, V] = S("root", {
|
|
323
|
+
className: $(u.root, c),
|
|
324
|
+
elementType: Z,
|
|
325
|
+
externalForwardedProps: {
|
|
326
|
+
...v,
|
|
327
|
+
...d
|
|
328
|
+
},
|
|
329
|
+
ownerState: y,
|
|
330
|
+
ref: t
|
|
331
|
+
}), [E, B] = S("primary", {
|
|
332
|
+
className: u.primary,
|
|
333
|
+
elementType: T,
|
|
334
|
+
externalForwardedProps: v,
|
|
335
|
+
ownerState: y
|
|
336
|
+
}), [D, G] = S("secondary", {
|
|
337
|
+
className: u.secondary,
|
|
338
|
+
elementType: T,
|
|
339
|
+
externalForwardedProps: v,
|
|
340
|
+
ownerState: y
|
|
341
|
+
});
|
|
342
|
+
return l != null && l.type !== T && !i && (l = /* @__PURE__ */ C(E, {
|
|
343
|
+
variant: g ? "body2" : "body1",
|
|
344
|
+
component: B?.variant ? void 0 : "span",
|
|
345
|
+
...B,
|
|
346
|
+
children: l
|
|
347
|
+
})), r != null && r.type !== T && !i && (r = /* @__PURE__ */ C(D, {
|
|
348
|
+
variant: "body2",
|
|
349
|
+
color: "textSecondary",
|
|
350
|
+
...G,
|
|
351
|
+
children: r
|
|
352
|
+
})), /* @__PURE__ */ W(F, {
|
|
353
|
+
...V,
|
|
354
|
+
children: [l, r]
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
process.env.NODE_ENV !== "production" && (ee.propTypes = {
|
|
358
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
359
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
360
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
361
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
362
|
+
/**
|
|
363
|
+
* Alias for the `primary` prop.
|
|
364
|
+
*/
|
|
365
|
+
children: o.node,
|
|
366
|
+
/**
|
|
367
|
+
* Override or extend the styles applied to the component.
|
|
368
|
+
*/
|
|
369
|
+
classes: o.object,
|
|
370
|
+
/**
|
|
371
|
+
* @ignore
|
|
372
|
+
*/
|
|
373
|
+
className: o.string,
|
|
374
|
+
/**
|
|
375
|
+
* If `true`, the children won't be wrapped by a Typography component.
|
|
376
|
+
* This can be useful to render an alternative Typography variant by wrapping
|
|
377
|
+
* the `children` (or `primary`) text, and optional `secondary` text
|
|
378
|
+
* with the Typography component.
|
|
379
|
+
* @default false
|
|
380
|
+
*/
|
|
381
|
+
disableTypography: o.bool,
|
|
382
|
+
/**
|
|
383
|
+
* If `true`, the children are indented.
|
|
384
|
+
* This should be used if there is no left avatar or left icon.
|
|
385
|
+
* @default false
|
|
386
|
+
*/
|
|
387
|
+
inset: o.bool,
|
|
388
|
+
/**
|
|
389
|
+
* The main content element.
|
|
390
|
+
*/
|
|
391
|
+
primary: o.node,
|
|
392
|
+
/**
|
|
393
|
+
* These props will be forwarded to the primary typography component
|
|
394
|
+
* (as long as disableTypography is not `true`).
|
|
395
|
+
* @deprecated Use `slotProps.primary` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
396
|
+
*/
|
|
397
|
+
primaryTypographyProps: o.object,
|
|
398
|
+
/**
|
|
399
|
+
* The secondary content element.
|
|
400
|
+
*/
|
|
401
|
+
secondary: o.node,
|
|
402
|
+
/**
|
|
403
|
+
* These props will be forwarded to the secondary typography component
|
|
404
|
+
* (as long as disableTypography is not `true`).
|
|
405
|
+
* @deprecated Use `slotProps.secondary` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
406
|
+
*/
|
|
407
|
+
secondaryTypographyProps: o.object,
|
|
408
|
+
/**
|
|
409
|
+
* The props used for each slot inside.
|
|
410
|
+
* @default {}
|
|
411
|
+
*/
|
|
412
|
+
slotProps: o.shape({
|
|
413
|
+
primary: o.oneOfType([o.func, o.object]),
|
|
414
|
+
root: o.oneOfType([o.func, o.object]),
|
|
415
|
+
secondary: o.oneOfType([o.func, o.object])
|
|
416
|
+
}),
|
|
417
|
+
/**
|
|
418
|
+
* The components used for each slot inside.
|
|
419
|
+
* @default {}
|
|
420
|
+
*/
|
|
421
|
+
slots: o.shape({
|
|
422
|
+
primary: o.elementType,
|
|
423
|
+
root: o.elementType,
|
|
424
|
+
secondary: o.elementType
|
|
425
|
+
}),
|
|
426
|
+
/**
|
|
427
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
428
|
+
*/
|
|
429
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
430
|
+
});
|
|
431
|
+
export {
|
|
432
|
+
X as L,
|
|
433
|
+
ee as a
|
|
434
|
+
};
|