@vidispine/vdt-mui 23.2.0-pre.2 → 23.2.0
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/cjs/_utils/generateBadges.js +1 -0
- package/dist/cjs/_utils/isDefinedValue.js +1 -0
- package/dist/cjs/_utils/omit.js +1 -0
- package/dist/cjs/_utils/showSlot.js +1 -0
- package/dist/cjs/_utils/uuidv4.js +1 -0
- package/dist/cjs/_utils/withOverrides.js +1 -0
- package/dist/cjs/collection/CollectionCard/CollectionCard.js +1 -0
- package/dist/cjs/collection/CollectionCard/components/CollectionCardMedia.js +1 -0
- package/dist/cjs/collection/CollectionCard/index.js +1 -0
- package/dist/cjs/collection/CollectionList/CollectionList.js +1 -0
- package/dist/cjs/collection/CollectionList/index.js +1 -0
- package/dist/cjs/collection/CollectionListItem/CollectionListItem.js +1 -0
- package/dist/cjs/collection/CollectionListItem/index.js +1 -0
- package/dist/cjs/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +1 -0
- package/dist/cjs/collection/CollectionRepresentativeThumbnail/index.js +1 -0
- package/dist/cjs/entity/EntityAvatar/EntityAvatar.js +1 -0
- package/dist/cjs/entity/EntityAvatar/index.js +1 -0
- package/dist/cjs/entity/EntityCard/components/EntityCardActions.js +1 -0
- package/dist/cjs/entity/EntityCard/components/EntityCardBase.js +1 -0
- package/dist/cjs/entity/EntityCard/components/EntityCardContent.js +1 -0
- package/dist/cjs/entity/EntityCard/components/EntityCardHeader.js +1 -0
- package/dist/cjs/entity/EntityIcon/EntityIcon.js +1 -0
- package/dist/cjs/entity/EntityIcon/index.js +1 -0
- package/dist/cjs/entity/EntityList/EntityList.js +1 -0
- package/dist/cjs/entity/EntityList/index.js +1 -0
- package/dist/cjs/entity/EntityListItem/components/EntityListItemAvatar.js +1 -0
- package/dist/cjs/entity/EntityListItem/components/EntityListItemButton.js +1 -0
- package/dist/cjs/entity/EntityListItem/components/EntityListItemSecondaryAction.js +1 -0
- package/dist/cjs/entity/EntityListItem/components/EntityListItemText.js +1 -0
- package/dist/cjs/entity/EntityTableRow/components/EntityTableCellAvatar.js +1 -0
- package/dist/cjs/entity/EntityTableRow/components/EntityTableCellCheckbox.js +1 -0
- package/dist/cjs/entity/_utils/getEntityProp.js +1 -0
- package/dist/cjs/entity/_utils/getEntityText.js +1 -0
- package/dist/cjs/general/AvatarMenu/AvatarMenu.js +1 -0
- package/dist/cjs/general/AvatarMenu/components/Avatar.js +1 -0
- package/dist/cjs/general/AvatarMenu/components/MenuItem.js +1 -0
- package/dist/cjs/general/AvatarMenu/index.js +1 -0
- package/dist/cjs/general/BlurredBackground/BlurredBackground.js +1 -0
- package/dist/cjs/general/BlurredBackground/index.js +1 -0
- package/dist/cjs/general/CalendarPicker/CalendarPicker.js +1 -0
- package/dist/cjs/general/CalendarPicker/components/PickersDay.js +1 -0
- package/dist/cjs/general/CalendarPicker/index.js +1 -0
- package/dist/cjs/general/CalendarPicker/utils/index.js +1 -0
- package/dist/cjs/general/CompactBadge/CompactBadge.js +1 -0
- package/dist/cjs/general/CompactBadge/index.js +1 -0
- package/dist/cjs/general/CompactLabel/CompactLabel.js +1 -0
- package/dist/cjs/general/CompactLabel/index.js +1 -0
- package/dist/cjs/general/CornerLabelPlacer/CornerLabelPlacer.js +1 -0
- package/dist/cjs/general/CornerLabelPlacer/index.js +1 -0
- package/dist/cjs/general/ExpandButton/ExpandButton.js +1 -0
- package/dist/cjs/general/ExpandButton/index.js +1 -0
- package/dist/cjs/general/Form/Form.js +1 -0
- package/dist/cjs/general/Form/index.js +1 -0
- package/dist/cjs/general/ImageCollage/ImageCollage.js +1 -0
- package/dist/cjs/general/ImageCollage/index.js +1 -0
- package/dist/cjs/general/MediaIcon/MediaIcon.js +1 -0
- package/dist/cjs/general/MediaIcon/index.js +1 -0
- package/dist/cjs/general/MenuItem/MenuItem.js +1 -0
- package/dist/cjs/general/MenuItem/index.js +1 -0
- package/dist/cjs/general/ScrubLine/ScrubLine.js +1 -0
- package/dist/cjs/general/ScrubLine/index.js +1 -0
- package/dist/cjs/general/Sort/Sort.js +1 -0
- package/dist/cjs/general/Sort/components/ButtonBase.js +1 -0
- package/dist/cjs/general/Sort/components/MenuItem.js +1 -0
- package/dist/cjs/general/Sort/index.js +1 -0
- package/dist/cjs/general/TablePagination/TablePagination.js +1 -0
- package/dist/cjs/general/TablePagination/index.js +1 -0
- package/dist/cjs/general/ThemeContext/ThemeContext.js +1 -0
- package/dist/cjs/inputs/BasicDateTimeInput/BasicDateTimeInput.js +1 -0
- package/dist/cjs/inputs/BasicDateTimeInput/index.js +1 -0
- package/dist/cjs/inputs/BooleanInput/BooleanInput.js +1 -0
- package/dist/cjs/inputs/BooleanInput/index.js +1 -0
- package/dist/cjs/inputs/CheckboxGroupInput/CheckboxGroupInput.js +1 -0
- package/dist/cjs/inputs/CheckboxGroupInput/components/CheckboxGroup.js +1 -0
- package/dist/cjs/inputs/CheckboxGroupInput/index.js +1 -0
- package/dist/cjs/inputs/DateRangeInput/DateRangeInput.js +1 -0
- package/dist/cjs/inputs/DateRangeInput/components/utils/valueManagers.js +1 -0
- package/dist/cjs/inputs/DateRangeInput/index.js +1 -0
- package/dist/cjs/inputs/DateRangeInput/utils/dateHelpers.js +1 -0
- package/dist/cjs/inputs/DateTimeInput/DateTimeInput.js +1 -0
- package/dist/cjs/inputs/DateTimeInput/index.js +1 -0
- package/dist/cjs/inputs/MaskedTextInput/MaskedTextInput.js +1 -0
- package/dist/cjs/inputs/MaskedTextInput/components/MaskedInputComponent.js +1 -0
- package/dist/cjs/inputs/MaskedTextInput/index.js +1 -0
- package/dist/cjs/inputs/NumberInput/NumberInput.js +1 -0
- package/dist/cjs/inputs/NumberInput/index.js +1 -0
- package/dist/cjs/inputs/RadioGroupInput/RadioGroupInput.js +1 -0
- package/dist/cjs/inputs/RadioGroupInput/components/RadioGroup.js +1 -0
- package/dist/cjs/inputs/RadioGroupInput/index.js +1 -0
- package/dist/cjs/inputs/SelectInput/SelectInput.js +1 -0
- package/dist/cjs/inputs/SelectInput/index.js +1 -0
- package/dist/cjs/inputs/SliderInput/SliderInput.js +1 -0
- package/dist/cjs/inputs/SliderInput/components/Slider.js +1 -0
- package/dist/cjs/inputs/SliderInput/index.js +1 -0
- package/dist/cjs/inputs/TagInput/TagInput.js +1 -0
- package/dist/cjs/inputs/TagInput/index.js +1 -0
- package/dist/cjs/inputs/TextInput/TextInput.js +1 -0
- package/dist/cjs/inputs/TextInput/index.js +1 -0
- package/dist/cjs/inputs/_components/FormControlLabel.js +1 -0
- package/dist/cjs/inputs/_components/MenuItem.js +1 -0
- package/dist/cjs/item/ItemCard/ItemCard.js +1 -0
- package/dist/cjs/item/ItemCard/components/ItemCardMedia.js +1 -0
- package/dist/cjs/item/ItemCard/index.js +1 -0
- package/dist/cjs/item/ItemList/ItemList.js +1 -0
- package/dist/cjs/item/ItemList/index.js +1 -0
- package/dist/cjs/item/ItemListItem/ItemListItem.js +1 -0
- package/dist/cjs/item/ItemListItem/index.js +1 -0
- package/dist/cjs/item/ItemPoster/ItemPoster.js +1 -0
- package/dist/cjs/item/ItemPoster/index.js +1 -0
- package/dist/cjs/item/ItemPosterList/ItemPosterList.js +1 -0
- package/dist/cjs/item/ItemPosterList/index.js +1 -0
- package/dist/cjs/item/ItemPosterViewer/ItemPosterViewer.js +1 -0
- package/dist/cjs/item/ItemPosterViewer/components/Toolbar.js +1 -0
- package/dist/cjs/item/ItemPosterViewer/index.js +1 -0
- package/dist/cjs/item/ItemTable/ItemTable.js +1 -0
- package/dist/cjs/item/ItemTable/components/ItemTableHead.js +1 -0
- package/dist/cjs/item/ItemTable/index.js +1 -0
- package/dist/cjs/item/ItemTableRow/ItemTableRow.js +1 -0
- package/dist/cjs/item/ItemTableRow/index.js +1 -0
- package/dist/cjs/item/ItemThumbnail/ItemThumbnail.js +1 -0
- package/dist/cjs/item/ItemThumbnail/index.js +1 -0
- package/dist/cjs/search/SearchFilterForm/SearchFilterForm.js +1 -0
- package/dist/cjs/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +1 -0
- package/dist/cjs/search/SearchFilterForm/index.js +1 -0
- package/dist/cjs/search/SearchFilterForm/utils/mapValuesToFilter.js +1 -0
- package/dist/cjs/shape/ShapeMediaBadges/ShapeMediaBadges.js +1 -0
- package/dist/cjs/shape/ShapeMediaBadges/index.js +1 -0
- package/dist/cjs/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +1 -0
- package/dist/cjs/transcode/TranscodePresetMediaBadges/index.js +1 -0
- package/dist/es/_utils/generateBadges.js +75 -0
- package/dist/es/_utils/isDefinedValue.js +6 -0
- package/dist/es/_utils/omit.js +9 -0
- package/dist/es/_utils/showSlot.js +4 -0
- package/dist/es/_utils/uuidv4.js +7 -0
- package/dist/es/_utils/withOverrides.js +37 -0
- package/dist/es/collection/CollectionCard/CollectionCard.js +292 -0
- package/dist/es/collection/CollectionCard/components/CollectionCardMedia.js +14 -0
- package/dist/es/collection/CollectionCard/index.js +11 -0
- package/dist/es/collection/CollectionList/CollectionList.js +159 -0
- package/dist/es/collection/CollectionList/index.js +11 -0
- package/dist/es/collection/CollectionListItem/CollectionListItem.js +122 -0
- package/dist/es/collection/CollectionListItem/index.js +11 -0
- package/dist/es/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +169 -0
- package/dist/es/collection/CollectionRepresentativeThumbnail/index.js +11 -0
- package/dist/es/entity/EntityAvatar/EntityAvatar.js +102 -0
- package/dist/es/entity/EntityAvatar/index.js +11 -0
- package/dist/es/entity/EntityCard/components/EntityCardActions.js +68 -0
- package/dist/es/entity/EntityCard/components/EntityCardBase.js +43 -0
- package/dist/es/entity/EntityCard/components/EntityCardContent.js +34 -0
- package/dist/es/entity/EntityCard/components/EntityCardHeader.js +115 -0
- package/dist/es/entity/EntityIcon/EntityIcon.js +107 -0
- package/dist/es/entity/EntityIcon/index.js +11 -0
- package/dist/es/entity/EntityList/EntityList.js +211 -0
- package/dist/es/entity/EntityList/index.js +11 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemAvatar.js +26 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemButton.js +27 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemSecondaryAction.js +27 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemText.js +26 -0
- package/dist/es/entity/EntityTableRow/components/EntityTableCellAvatar.js +26 -0
- package/dist/es/entity/EntityTableRow/components/EntityTableCellCheckbox.js +19 -0
- package/dist/es/entity/_utils/getEntityProp.js +11 -0
- package/dist/es/entity/_utils/getEntityText.js +34 -0
- package/dist/es/general/AvatarMenu/AvatarMenu.js +153 -0
- package/dist/es/general/AvatarMenu/components/Avatar.js +30 -0
- package/dist/es/general/AvatarMenu/components/MenuItem.js +29 -0
- package/dist/es/general/AvatarMenu/index.js +11 -0
- package/dist/es/general/BlurredBackground/BlurredBackground.js +85 -0
- package/dist/es/general/BlurredBackground/index.js +11 -0
- package/dist/es/general/CalendarPicker/CalendarPicker.js +397 -0
- package/dist/es/general/CalendarPicker/components/PickersDay.js +71 -0
- package/dist/es/general/CalendarPicker/index.js +11 -0
- package/dist/es/general/CalendarPicker/utils/index.js +17 -0
- package/dist/es/general/CompactBadge/CompactBadge.js +65 -0
- package/dist/es/general/CompactBadge/index.js +11 -0
- package/dist/es/general/CompactLabel/CompactLabel.js +70 -0
- package/dist/es/general/CompactLabel/index.js +11 -0
- package/dist/es/general/CornerLabelPlacer/CornerLabelPlacer.js +105 -0
- package/dist/es/general/CornerLabelPlacer/index.js +11 -0
- package/dist/es/general/ExpandButton/ExpandButton.js +81 -0
- package/dist/es/general/ExpandButton/index.js +11 -0
- package/dist/es/general/Form/Form.js +230 -0
- package/dist/es/general/Form/index.js +11 -0
- package/dist/es/general/ImageCollage/ImageCollage.js +151 -0
- package/dist/es/general/ImageCollage/index.js +11 -0
- package/dist/es/general/MediaIcon/MediaIcon.js +101 -0
- package/dist/es/general/MediaIcon/index.js +11 -0
- package/dist/es/general/MenuItem/MenuItem.js +91 -0
- package/dist/es/general/MenuItem/index.js +11 -0
- package/dist/es/general/ScrubLine/ScrubLine.js +141 -0
- package/dist/es/general/ScrubLine/index.js +11 -0
- package/dist/es/general/Sort/Sort.js +179 -0
- package/dist/es/general/Sort/components/ButtonBase.js +19 -0
- package/dist/es/general/Sort/components/MenuItem.js +15 -0
- package/dist/es/general/Sort/index.js +11 -0
- package/dist/es/general/TablePagination/TablePagination.js +104 -0
- package/dist/es/general/TablePagination/index.js +11 -0
- package/dist/es/general/ThemeContext/ThemeContext.js +96 -0
- package/dist/es/inputs/BasicDateTimeInput/BasicDateTimeInput.js +133 -0
- package/dist/es/inputs/BasicDateTimeInput/index.js +11 -0
- package/dist/es/inputs/BooleanInput/BooleanInput.js +196 -0
- package/dist/es/inputs/BooleanInput/index.js +11 -0
- package/dist/es/inputs/CheckboxGroupInput/CheckboxGroupInput.js +292 -0
- package/dist/es/inputs/CheckboxGroupInput/components/CheckboxGroup.js +81 -0
- package/dist/es/inputs/CheckboxGroupInput/index.js +11 -0
- package/dist/es/inputs/DateRangeInput/DateRangeInput.js +362 -0
- package/dist/es/inputs/DateRangeInput/components/utils/valueManagers.js +20 -0
- package/dist/es/inputs/DateRangeInput/index.js +11 -0
- package/dist/es/inputs/DateRangeInput/utils/dateHelpers.js +31 -0
- package/dist/es/inputs/DateTimeInput/DateTimeInput.js +250 -0
- package/dist/es/inputs/DateTimeInput/index.js +11 -0
- package/dist/es/inputs/MaskedTextInput/MaskedTextInput.js +235 -0
- package/dist/es/inputs/MaskedTextInput/components/MaskedInputComponent.js +13 -0
- package/dist/es/inputs/MaskedTextInput/index.js +11 -0
- package/dist/es/inputs/NumberInput/NumberInput.js +134 -0
- package/dist/es/inputs/NumberInput/index.js +11 -0
- package/dist/es/inputs/RadioGroupInput/RadioGroupInput.js +287 -0
- package/dist/es/inputs/RadioGroupInput/components/RadioGroup.js +72 -0
- package/dist/es/inputs/RadioGroupInput/index.js +11 -0
- package/dist/es/inputs/SelectInput/SelectInput.js +195 -0
- package/dist/es/inputs/SelectInput/index.js +11 -0
- package/dist/es/inputs/SliderInput/SliderInput.js +350 -0
- package/dist/es/inputs/SliderInput/components/Slider.js +124 -0
- package/dist/es/inputs/SliderInput/index.js +11 -0
- package/dist/es/inputs/TagInput/TagInput.js +356 -0
- package/dist/es/inputs/TagInput/index.js +11 -0
- package/dist/es/inputs/TextInput/TextInput.js +154 -0
- package/dist/es/inputs/TextInput/index.js +11 -0
- package/dist/es/inputs/_components/FormControlLabel.js +60 -0
- package/dist/es/inputs/_components/MenuItem.js +23 -0
- package/dist/es/item/ItemCard/ItemCard.js +293 -0
- package/dist/es/item/ItemCard/components/ItemCardMedia.js +20 -0
- package/dist/es/item/ItemCard/index.js +11 -0
- package/dist/es/item/ItemList/ItemList.js +158 -0
- package/dist/es/item/ItemList/index.js +11 -0
- package/dist/es/item/ItemListItem/ItemListItem.js +122 -0
- package/dist/es/item/ItemListItem/index.js +11 -0
- package/dist/es/item/ItemPoster/ItemPoster.js +132 -0
- package/dist/es/item/ItemPoster/index.js +11 -0
- package/dist/es/item/ItemPosterList/ItemPosterList.js +99 -0
- package/dist/es/item/ItemPosterList/index.js +11 -0
- package/dist/es/item/ItemPosterViewer/ItemPosterViewer.js +190 -0
- package/dist/es/item/ItemPosterViewer/components/Toolbar.js +27 -0
- package/dist/es/item/ItemPosterViewer/index.js +11 -0
- package/dist/es/item/ItemTable/ItemTable.js +201 -0
- package/dist/es/item/ItemTable/components/ItemTableHead.js +35 -0
- package/dist/es/item/ItemTable/index.js +11 -0
- package/dist/es/item/ItemTableRow/ItemTableRow.js +150 -0
- package/dist/es/item/ItemTableRow/index.js +11 -0
- package/dist/es/item/ItemThumbnail/ItemThumbnail.js +210 -0
- package/dist/es/item/ItemThumbnail/index.js +11 -0
- package/dist/es/search/SearchFilterForm/SearchFilterForm.js +138 -0
- package/dist/es/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +130 -0
- package/dist/es/search/SearchFilterForm/index.js +12 -0
- package/dist/es/search/SearchFilterForm/utils/mapValuesToFilter.js +84 -0
- package/dist/es/shape/ShapeMediaBadges/ShapeMediaBadges.js +78 -0
- package/dist/es/shape/ShapeMediaBadges/index.js +11 -0
- package/dist/es/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +78 -0
- package/dist/es/transcode/TranscodePresetMediaBadges/index.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.es.js +93 -0
- package/package.json +35 -19
- package/dist/index.js +0 -13109
- package/dist/index.umd.cjs +0 -6
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { jsxs as J, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as g } from "react";
|
|
3
|
+
import e from "prop-types";
|
|
4
|
+
import K from "@mui/material/CardActionArea";
|
|
5
|
+
import N from "@mui/material/Collapse";
|
|
6
|
+
import { styled as d } from "@mui/material/styles";
|
|
7
|
+
import Q from "@vidispine/proptypes";
|
|
8
|
+
import U from "../../entity/EntityCard/components/EntityCardActions.js";
|
|
9
|
+
import X from "../../entity/EntityCard/components/EntityCardBase.js";
|
|
10
|
+
import Y from "../../entity/EntityCard/components/EntityCardContent.js";
|
|
11
|
+
import Z from "../../entity/EntityCard/components/EntityCardHeader.js";
|
|
12
|
+
import _ from "./components/CollectionCardMedia.js";
|
|
13
|
+
const $ = d(X, {
|
|
14
|
+
shouldForwardProp: (t) => t !== "horizontal"
|
|
15
|
+
})(({
|
|
16
|
+
horizontal: t
|
|
17
|
+
}) => ({
|
|
18
|
+
display: "grid",
|
|
19
|
+
...t ? {
|
|
20
|
+
gridTemplateAreas: '"actionArea header" "actionArea content" "actionArea actions" "collapse collapse"',
|
|
21
|
+
gridTemplateColumns: "min-content auto"
|
|
22
|
+
} : {
|
|
23
|
+
gridTemplateAreas: '"header" "actionArea" "content" "actions" "collapse"'
|
|
24
|
+
}
|
|
25
|
+
})), ee = d(Z, {
|
|
26
|
+
shouldForwardProp: (t) => t !== "horizontal"
|
|
27
|
+
})(({
|
|
28
|
+
horizontal: t
|
|
29
|
+
}) => ({
|
|
30
|
+
gridArea: "header",
|
|
31
|
+
...t && {
|
|
32
|
+
"& .MuiCardHeader-avatar": {
|
|
33
|
+
display: "none"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
})), te = d(_, {
|
|
37
|
+
shouldForwardProp: (t) => !["horizontal", "mediaPadding", "mediaSize"].includes(t)
|
|
38
|
+
})(({
|
|
39
|
+
theme: t,
|
|
40
|
+
horizontal: i,
|
|
41
|
+
mediaPadding: C,
|
|
42
|
+
mediaSize: c
|
|
43
|
+
}) => ({
|
|
44
|
+
padding: t.spacing(C),
|
|
45
|
+
...i ? {
|
|
46
|
+
width: c,
|
|
47
|
+
height: "100%"
|
|
48
|
+
} : {
|
|
49
|
+
height: c,
|
|
50
|
+
width: "100%"
|
|
51
|
+
}
|
|
52
|
+
})), b = d(Y, {
|
|
53
|
+
shouldForwardProp: (t) => t !== "horizontal"
|
|
54
|
+
})(({
|
|
55
|
+
horizontal: t,
|
|
56
|
+
theme: i
|
|
57
|
+
}) => ({
|
|
58
|
+
gridArea: "content",
|
|
59
|
+
paddingTop: t ? 0 : i.spacing(2)
|
|
60
|
+
})), ne = d(U)(() => ({
|
|
61
|
+
gridArea: "actions"
|
|
62
|
+
})), ae = d(K)(() => ({
|
|
63
|
+
gridArea: "actionArea",
|
|
64
|
+
transition: "filter 0.25s ease-in-out",
|
|
65
|
+
"&:focus": {
|
|
66
|
+
filter: "brightness(120%)"
|
|
67
|
+
},
|
|
68
|
+
"& .MuiTouchRipple-root": {
|
|
69
|
+
zIndex: 10
|
|
70
|
+
}
|
|
71
|
+
})), oe = d(N)(() => ({
|
|
72
|
+
gridArea: "collapse"
|
|
73
|
+
})), de = {
|
|
74
|
+
Root: $,
|
|
75
|
+
CardHeader: ee,
|
|
76
|
+
CardMedia: te,
|
|
77
|
+
CardContent: b,
|
|
78
|
+
CardContentExpanded: b,
|
|
79
|
+
CardActions: ne,
|
|
80
|
+
CardActionArea: ae,
|
|
81
|
+
Collapse: oe
|
|
82
|
+
};
|
|
83
|
+
function v({
|
|
84
|
+
collectionType: t,
|
|
85
|
+
title: i,
|
|
86
|
+
subheader: C,
|
|
87
|
+
content: c,
|
|
88
|
+
expandedContent: f,
|
|
89
|
+
checked: s,
|
|
90
|
+
expanded: l,
|
|
91
|
+
horizontal: p,
|
|
92
|
+
mediaPadding: x,
|
|
93
|
+
mediaSize: T,
|
|
94
|
+
menuOptions: M,
|
|
95
|
+
actions: j,
|
|
96
|
+
onClick: u,
|
|
97
|
+
onCheck: m,
|
|
98
|
+
onExpand: h,
|
|
99
|
+
onOptionClick: k,
|
|
100
|
+
onActionClick: E,
|
|
101
|
+
components: S,
|
|
102
|
+
componentsProps: n
|
|
103
|
+
}) {
|
|
104
|
+
const {
|
|
105
|
+
Root: H,
|
|
106
|
+
CardHeader: w,
|
|
107
|
+
CardActionArea: z,
|
|
108
|
+
CardMedia: P,
|
|
109
|
+
CardContent: R,
|
|
110
|
+
CardContentExpanded: V,
|
|
111
|
+
CardActions: F,
|
|
112
|
+
Collapse: L
|
|
113
|
+
} = S, [B, I] = g(s), [W, q] = g(l), D = (a) => {
|
|
114
|
+
var y;
|
|
115
|
+
const r = (y = a == null ? void 0 : a.target) == null ? void 0 : y.checked;
|
|
116
|
+
m && m(a, {
|
|
117
|
+
value: r,
|
|
118
|
+
collectionType: t
|
|
119
|
+
}), s === void 0 && I(r);
|
|
120
|
+
}, G = (a, {
|
|
121
|
+
value: r
|
|
122
|
+
}) => {
|
|
123
|
+
h && h(a, {
|
|
124
|
+
value: r,
|
|
125
|
+
collectionType: t
|
|
126
|
+
}), l === void 0 && q(r);
|
|
127
|
+
}, A = s !== void 0 ? s : B, O = l !== void 0 ? l : W;
|
|
128
|
+
return /* @__PURE__ */ J(H, { horizontal: p, checked: A, ...n.root, children: [
|
|
129
|
+
/* @__PURE__ */ o(w, { collectionType: t, title: i, subheader: C, menuOptions: M, horizontal: p, onOptionClick: k, ...n.cardHeader }),
|
|
130
|
+
/* @__PURE__ */ o(z, { disabled: u === void 0, onClick: (a) => u(a, {
|
|
131
|
+
collectionType: t
|
|
132
|
+
}), ...n.cardActionArea, children: /* @__PURE__ */ o(P, { collectionType: t, mediaSize: T, mediaPadding: x, horizontal: p, ...n.cardMedia }) }),
|
|
133
|
+
/* @__PURE__ */ o(R, { collectionType: t, content: c, horizontal: p, ...n.cardContent }),
|
|
134
|
+
/* @__PURE__ */ o(F, { collectionType: t, checked: A, expanded: O, actions: j, onCheck: m ? D : null, onExpand: f ? G : null, onActionClick: E, ...n.cardActions }),
|
|
135
|
+
/* @__PURE__ */ o(L, { in: O && f !== void 0, timeout: "auto", unmountOnExit: !0, ...n.collapse, children: /* @__PURE__ */ o(V, { collectionType: t, content: f, WebkitLineClamp: 0, ...n.cardContentExpanded }) })
|
|
136
|
+
] });
|
|
137
|
+
}
|
|
138
|
+
v.propTypes = {
|
|
139
|
+
/**
|
|
140
|
+
* The Collection to show
|
|
141
|
+
*/
|
|
142
|
+
collectionType: Q.CollectionType,
|
|
143
|
+
/**
|
|
144
|
+
* Title text for the collection card header
|
|
145
|
+
*
|
|
146
|
+
* Set to *field name* the value should be extracted from
|
|
147
|
+
* or set *function* which will get collectionType as argument
|
|
148
|
+
*
|
|
149
|
+
* Defaults to id of collection
|
|
150
|
+
*/
|
|
151
|
+
title: e.oneOfType([e.string, e.func]),
|
|
152
|
+
/**
|
|
153
|
+
* Subheader text for the collection card header
|
|
154
|
+
*
|
|
155
|
+
* Set to *field name* the value should be extracted from
|
|
156
|
+
* or set *function* which will get collectionType as argument
|
|
157
|
+
*
|
|
158
|
+
* Defaults to undefined
|
|
159
|
+
*/
|
|
160
|
+
subheader: e.oneOfType([e.string, e.func]),
|
|
161
|
+
/**
|
|
162
|
+
* Content text for the card body
|
|
163
|
+
*
|
|
164
|
+
* Set to *field name* the value should be extracted from
|
|
165
|
+
* or set *function* which will get collectionType as argument
|
|
166
|
+
*
|
|
167
|
+
* Defaults to undefined
|
|
168
|
+
*/
|
|
169
|
+
content: e.oneOfType([e.string, e.func]),
|
|
170
|
+
/**
|
|
171
|
+
* Content text for the expanded card body
|
|
172
|
+
*
|
|
173
|
+
* Set to *field name* the value should be extracted from
|
|
174
|
+
* or set *function* which will get collectionType as argument
|
|
175
|
+
*
|
|
176
|
+
* Defaults to undefined which disables the expand functionality
|
|
177
|
+
*/
|
|
178
|
+
expandedContent: e.oneOfType([e.string, e.func]),
|
|
179
|
+
/**
|
|
180
|
+
* Add padding around media (theme spacing value)
|
|
181
|
+
*/
|
|
182
|
+
mediaPadding: e.number,
|
|
183
|
+
/**
|
|
184
|
+
* Set size for the card media
|
|
185
|
+
*
|
|
186
|
+
* `width` if horizontal: true, `height` otherwise
|
|
187
|
+
*/
|
|
188
|
+
mediaSize: e.string,
|
|
189
|
+
/**
|
|
190
|
+
* Whether the media card is marked as checked or not
|
|
191
|
+
*/
|
|
192
|
+
checked: e.bool,
|
|
193
|
+
/**
|
|
194
|
+
* Whether the expanded content is shown or not
|
|
195
|
+
*/
|
|
196
|
+
expanded: e.bool,
|
|
197
|
+
/**
|
|
198
|
+
* Whether the card should have horizontal or standard layout
|
|
199
|
+
*/
|
|
200
|
+
horizontal: e.bool,
|
|
201
|
+
/**
|
|
202
|
+
* A list of options for the card header action
|
|
203
|
+
*/
|
|
204
|
+
menuOptions: e.arrayOf(e.instanceOf(Object)),
|
|
205
|
+
/**
|
|
206
|
+
* The list of actions to show
|
|
207
|
+
*/
|
|
208
|
+
actions: e.arrayOf(e.shape({
|
|
209
|
+
name: e.string,
|
|
210
|
+
Icon: e.elementType,
|
|
211
|
+
iconProps: e.instanceOf(Object)
|
|
212
|
+
})),
|
|
213
|
+
// Callbacks
|
|
214
|
+
/**
|
|
215
|
+
* A function that handles the onClick event
|
|
216
|
+
*/
|
|
217
|
+
onClick: e.func,
|
|
218
|
+
/**
|
|
219
|
+
* A function that handles the check box being clicked
|
|
220
|
+
*/
|
|
221
|
+
onCheck: e.func,
|
|
222
|
+
/**
|
|
223
|
+
* A function that handles the expand button being clicked
|
|
224
|
+
*/
|
|
225
|
+
onExpand: e.func,
|
|
226
|
+
/**
|
|
227
|
+
* Callback for clicking on option which will get the option as argument
|
|
228
|
+
*/
|
|
229
|
+
onOptionClick: e.func,
|
|
230
|
+
/**
|
|
231
|
+
* Callback for clicking on an action which will get the action name as argument
|
|
232
|
+
*/
|
|
233
|
+
onActionClick: e.func,
|
|
234
|
+
// Overrides
|
|
235
|
+
/**
|
|
236
|
+
* Replace internal components
|
|
237
|
+
*/
|
|
238
|
+
components: e.shape({
|
|
239
|
+
Root: e.elementType,
|
|
240
|
+
CardHeader: e.elementType,
|
|
241
|
+
CardActionArea: e.elementType,
|
|
242
|
+
CardMedia: e.elementType,
|
|
243
|
+
CardContent: e.elementType,
|
|
244
|
+
CardContentExpanded: e.elementType,
|
|
245
|
+
CardActions: e.elementType,
|
|
246
|
+
Collapse: e.elementType
|
|
247
|
+
}),
|
|
248
|
+
/**
|
|
249
|
+
* Add internal component props
|
|
250
|
+
*/
|
|
251
|
+
componentsProps: e.shape({
|
|
252
|
+
root: e.instanceOf(Object),
|
|
253
|
+
cardHeader: e.shape({
|
|
254
|
+
entityAvatar: e.instanceOf(Object),
|
|
255
|
+
avatarMenu: e.instanceOf(Object)
|
|
256
|
+
}),
|
|
257
|
+
cardActionArea: e.instanceOf(Object),
|
|
258
|
+
cardMedia: e.shape({
|
|
259
|
+
collectionRepresentativeThumbnail: e.instanceOf(Object)
|
|
260
|
+
}),
|
|
261
|
+
cardContent: e.instanceOf(Object),
|
|
262
|
+
cardContentExpanded: e.instanceOf(Object),
|
|
263
|
+
cardActions: e.shape({
|
|
264
|
+
expandButton: e.instanceOf(Object)
|
|
265
|
+
}),
|
|
266
|
+
collapse: e.instanceOf(Object)
|
|
267
|
+
})
|
|
268
|
+
};
|
|
269
|
+
v.defaultProps = {
|
|
270
|
+
collectionType: void 0,
|
|
271
|
+
onClick: void 0,
|
|
272
|
+
title: void 0,
|
|
273
|
+
subheader: void 0,
|
|
274
|
+
content: void 0,
|
|
275
|
+
expandedContent: void 0,
|
|
276
|
+
checked: void 0,
|
|
277
|
+
expanded: void 0,
|
|
278
|
+
horizontal: !1,
|
|
279
|
+
mediaSize: "200px",
|
|
280
|
+
mediaPadding: 0,
|
|
281
|
+
menuOptions: void 0,
|
|
282
|
+
actions: void 0,
|
|
283
|
+
onCheck: void 0,
|
|
284
|
+
onExpand: void 0,
|
|
285
|
+
onOptionClick: void 0,
|
|
286
|
+
onActionClick: void 0,
|
|
287
|
+
components: de,
|
|
288
|
+
componentsProps: void 0
|
|
289
|
+
};
|
|
290
|
+
export {
|
|
291
|
+
v as default
|
|
292
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import i from "@mui/material/CardMedia";
|
|
3
|
+
import d from "../../CollectionRepresentativeThumbnail/index.js";
|
|
4
|
+
function f({
|
|
5
|
+
collectionType: r,
|
|
6
|
+
showCombined: m,
|
|
7
|
+
collectionRepresentativeThumbnail: e = {},
|
|
8
|
+
...t
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ o(i, { ...t, children: /* @__PURE__ */ o(d, { collectionType: r, showCombined: !0, ...e }) });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
f as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { styled as r } from "@mui/material/styles";
|
|
2
|
+
import { withOverrides as n } from "../../_utils/withOverrides.js";
|
|
3
|
+
import m from "./CollectionCard.js";
|
|
4
|
+
const o = "CollectionCard", e = `Vdt${o}`, i = n(e)(m), s = r(i, {
|
|
5
|
+
name: e,
|
|
6
|
+
overridesResolver: (d, t) => t.root
|
|
7
|
+
})(() => ({}));
|
|
8
|
+
s.displayName = o;
|
|
9
|
+
export {
|
|
10
|
+
s as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { jsxs as a, jsx as s, Fragment as C } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as k } from "react";
|
|
3
|
+
import e from "prop-types";
|
|
4
|
+
import j from "@mui/material/List";
|
|
5
|
+
import M from "@mui/material/ListSubheader";
|
|
6
|
+
import x from "@mui/material/Typography";
|
|
7
|
+
import { styled as D } from "@mui/material/styles";
|
|
8
|
+
import P from "@vidispine/proptypes";
|
|
9
|
+
import { uuidv4 as p } from "../../_utils/uuidv4.js";
|
|
10
|
+
import "clsx";
|
|
11
|
+
import { showSlot as R } from "../../_utils/showSlot.js";
|
|
12
|
+
import V from "../CollectionListItem/index.js";
|
|
13
|
+
function q() {
|
|
14
|
+
return /* @__PURE__ */ s(x, { children: "No collections found..." });
|
|
15
|
+
}
|
|
16
|
+
const w = D(j)(() => ({
|
|
17
|
+
width: "100%",
|
|
18
|
+
padding: 0
|
|
19
|
+
})), A = {
|
|
20
|
+
Root: w,
|
|
21
|
+
ListSubheader: M,
|
|
22
|
+
ListItem: V
|
|
23
|
+
};
|
|
24
|
+
function d({
|
|
25
|
+
collectionListType: t,
|
|
26
|
+
header: l,
|
|
27
|
+
primary: c,
|
|
28
|
+
secondary: u,
|
|
29
|
+
avatarVariant: f,
|
|
30
|
+
dense: y,
|
|
31
|
+
amountLoading: h,
|
|
32
|
+
isLoading: i,
|
|
33
|
+
onListItemClick: L,
|
|
34
|
+
onListItemDelete: b,
|
|
35
|
+
emptySlot: S,
|
|
36
|
+
components: I,
|
|
37
|
+
componentsProps: n
|
|
38
|
+
}) {
|
|
39
|
+
const {
|
|
40
|
+
Root: g,
|
|
41
|
+
ListSubheader: O,
|
|
42
|
+
ListItem: v
|
|
43
|
+
} = I, T = [...Array(Math.max(h, 0)).keys()].map(() => ({
|
|
44
|
+
key: p()
|
|
45
|
+
})), m = k(() => {
|
|
46
|
+
var o;
|
|
47
|
+
return ((o = t == null ? void 0 : t.collection) == null ? void 0 : o.map((r) => ({
|
|
48
|
+
key: p(),
|
|
49
|
+
collectionType: r
|
|
50
|
+
}))) || [];
|
|
51
|
+
}, [t.collection]);
|
|
52
|
+
return /* @__PURE__ */ a(g, { dense: y, ...n.root, children: [
|
|
53
|
+
/* @__PURE__ */ s(O, { ...n.listSubheader, children: l }),
|
|
54
|
+
/* @__PURE__ */ a(C, { children: [
|
|
55
|
+
!i && m.length === 0 && R(S),
|
|
56
|
+
(i ? T : m).map(({
|
|
57
|
+
key: o,
|
|
58
|
+
collectionType: r
|
|
59
|
+
}) => /* @__PURE__ */ s(v, { collectionType: r, primary: c, secondary: u, avatarVariant: f, isLoading: i, onClick: L, onDelete: b, ...n.listItem }, o))
|
|
60
|
+
] })
|
|
61
|
+
] });
|
|
62
|
+
}
|
|
63
|
+
d.propTypes = {
|
|
64
|
+
/**
|
|
65
|
+
* The `CollectionListType` to show in the list
|
|
66
|
+
*/
|
|
67
|
+
collectionListType: P.CollectionListType,
|
|
68
|
+
// Shared
|
|
69
|
+
/**
|
|
70
|
+
* Add a list header
|
|
71
|
+
*/
|
|
72
|
+
header: e.string,
|
|
73
|
+
/**
|
|
74
|
+
* Primary text for the list item
|
|
75
|
+
*
|
|
76
|
+
* Set to *field name* the value should be extracted from
|
|
77
|
+
* or set *function* which will get collectionType as argument
|
|
78
|
+
*
|
|
79
|
+
* Defaults to id of entity
|
|
80
|
+
*/
|
|
81
|
+
primary: e.oneOfType([e.string, e.func]),
|
|
82
|
+
/**
|
|
83
|
+
* Secondary text for the list item
|
|
84
|
+
*
|
|
85
|
+
* Set to *field name* the value should be extracted from
|
|
86
|
+
* or set *function* which will get collectionType as argument
|
|
87
|
+
*
|
|
88
|
+
* Defaults to undefined
|
|
89
|
+
*/
|
|
90
|
+
secondary: e.oneOfType([e.string, e.func]),
|
|
91
|
+
/**
|
|
92
|
+
* Variant/shapes for the list item avatars
|
|
93
|
+
*/
|
|
94
|
+
avatarVariant: e.oneOf(["circular", "rounded", "square"]),
|
|
95
|
+
/**
|
|
96
|
+
* If list should be displayed as dense
|
|
97
|
+
*/
|
|
98
|
+
dense: e.bool,
|
|
99
|
+
/**
|
|
100
|
+
* Show skeleton list items as loading state
|
|
101
|
+
*/
|
|
102
|
+
isLoading: e.bool,
|
|
103
|
+
/**
|
|
104
|
+
* amount of list items to show when loading
|
|
105
|
+
*/
|
|
106
|
+
amountLoading: e.number,
|
|
107
|
+
/**
|
|
108
|
+
* Callback for ListItem click event
|
|
109
|
+
*
|
|
110
|
+
* Set to `undefined` to disable
|
|
111
|
+
*/
|
|
112
|
+
onListItemClick: e.func,
|
|
113
|
+
/**
|
|
114
|
+
* Callback for ListItem delete event
|
|
115
|
+
*
|
|
116
|
+
* Set to `undefined` to disable
|
|
117
|
+
*/
|
|
118
|
+
onListItemDelete: e.func,
|
|
119
|
+
// Slots
|
|
120
|
+
/**
|
|
121
|
+
* Shown when list is empty
|
|
122
|
+
*/
|
|
123
|
+
emptySlot: e.oneOfType([e.elementType, e.node]),
|
|
124
|
+
// Overrides
|
|
125
|
+
/**
|
|
126
|
+
* Replace internal components
|
|
127
|
+
*/
|
|
128
|
+
components: e.shape({
|
|
129
|
+
Root: e.elementType,
|
|
130
|
+
ListSubheader: e.elementType,
|
|
131
|
+
ListItem: e.elementType
|
|
132
|
+
}),
|
|
133
|
+
/**
|
|
134
|
+
* Add internal component props
|
|
135
|
+
*/
|
|
136
|
+
componentsProps: e.shape({
|
|
137
|
+
root: e.instanceOf(Object),
|
|
138
|
+
listSubheader: e.instanceOf(Object),
|
|
139
|
+
listItem: e.instanceOf(Object)
|
|
140
|
+
})
|
|
141
|
+
};
|
|
142
|
+
d.defaultProps = {
|
|
143
|
+
collectionListType: {},
|
|
144
|
+
header: void 0,
|
|
145
|
+
primary: void 0,
|
|
146
|
+
secondary: void 0,
|
|
147
|
+
avatarVariant: "square",
|
|
148
|
+
dense: !1,
|
|
149
|
+
isLoading: !1,
|
|
150
|
+
amountLoading: 3,
|
|
151
|
+
onListItemClick: void 0,
|
|
152
|
+
onListItemDelete: void 0,
|
|
153
|
+
emptySlot: q,
|
|
154
|
+
components: A,
|
|
155
|
+
componentsProps: void 0
|
|
156
|
+
};
|
|
157
|
+
export {
|
|
158
|
+
d as default
|
|
159
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { styled as r } from "@mui/material/styles";
|
|
2
|
+
import { withOverrides as i } from "../../_utils/withOverrides.js";
|
|
3
|
+
import n from "./CollectionList.js";
|
|
4
|
+
const o = "CollectionList", t = `Vdt${o}`, s = i(t)(n), m = r(s, {
|
|
5
|
+
name: t,
|
|
6
|
+
overridesResolver: (l, e) => e.root
|
|
7
|
+
})(() => ({}));
|
|
8
|
+
m.displayName = o;
|
|
9
|
+
export {
|
|
10
|
+
m as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { jsxs as s, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import t from "prop-types";
|
|
3
|
+
import v from "@mui/material/ListItem";
|
|
4
|
+
import T from "@vidispine/proptypes";
|
|
5
|
+
import A from "../../entity/EntityListItem/components/EntityListItemAvatar.js";
|
|
6
|
+
import O from "../../entity/EntityListItem/components/EntityListItemButton.js";
|
|
7
|
+
import b from "../../entity/EntityListItem/components/EntityListItemSecondaryAction.js";
|
|
8
|
+
import x from "../../entity/EntityListItem/components/EntityListItemText.js";
|
|
9
|
+
const j = {
|
|
10
|
+
Root: v,
|
|
11
|
+
ListItemButton: O,
|
|
12
|
+
ListItemAvatar: A,
|
|
13
|
+
ListItemText: x,
|
|
14
|
+
ListItemSecondaryAction: b
|
|
15
|
+
};
|
|
16
|
+
function m({
|
|
17
|
+
collectionType: o,
|
|
18
|
+
primary: c,
|
|
19
|
+
secondary: l,
|
|
20
|
+
avatarVariant: p,
|
|
21
|
+
isLoading: e,
|
|
22
|
+
onClick: r,
|
|
23
|
+
onDelete: I,
|
|
24
|
+
components: f,
|
|
25
|
+
componentsProps: i
|
|
26
|
+
}) {
|
|
27
|
+
const {
|
|
28
|
+
Root: y,
|
|
29
|
+
ListItemAvatar: d,
|
|
30
|
+
ListItemText: u,
|
|
31
|
+
ListItemButton: a,
|
|
32
|
+
ListItemSecondaryAction: L
|
|
33
|
+
} = f;
|
|
34
|
+
return /* @__PURE__ */ s(y, { disablePadding: !e && !!r && !!a, ...i.root, children: [
|
|
35
|
+
/* @__PURE__ */ s(a, { collectionType: o, onClick: r, isLoading: e, ...i.listItemButton, children: [
|
|
36
|
+
/* @__PURE__ */ n(d, { collectionType: o, variant: p, isLoading: e, ...i.listItemAvatar }),
|
|
37
|
+
/* @__PURE__ */ n(u, { collectionType: o, primary: c, secondary: l, isLoading: e, ...i.listItemText })
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ n(L, { collectionType: o, onDelete: I, isLoading: e, ...i.listItemSecondaryAction })
|
|
40
|
+
] });
|
|
41
|
+
}
|
|
42
|
+
m.propTypes = {
|
|
43
|
+
/**
|
|
44
|
+
* The CollectionType to display as a list item
|
|
45
|
+
*/
|
|
46
|
+
collectionType: T.CollectionType,
|
|
47
|
+
/**
|
|
48
|
+
* Primary text for the list item
|
|
49
|
+
*
|
|
50
|
+
* Set to *field name* the value should be extracted from
|
|
51
|
+
* or set *function* which will get entity as argument
|
|
52
|
+
*
|
|
53
|
+
* Defaults to id of entity
|
|
54
|
+
*/
|
|
55
|
+
primary: t.oneOfType([t.string, t.func]),
|
|
56
|
+
/**
|
|
57
|
+
* Secondary text for the list item
|
|
58
|
+
*
|
|
59
|
+
* Set to *field name* the value should be extracted from
|
|
60
|
+
* or set *function* which will get entity as argument
|
|
61
|
+
*
|
|
62
|
+
* Defaults to undefined
|
|
63
|
+
*/
|
|
64
|
+
secondary: t.oneOfType([t.string, t.func]),
|
|
65
|
+
/**
|
|
66
|
+
* Variant/shapes for the Avatar
|
|
67
|
+
*/
|
|
68
|
+
avatarVariant: t.oneOf(["circular", "rounded", "square"]),
|
|
69
|
+
/**
|
|
70
|
+
* Set true to show a skeleton placeholder
|
|
71
|
+
*/
|
|
72
|
+
isLoading: t.bool,
|
|
73
|
+
/**
|
|
74
|
+
* Add event handler when list item is clicked
|
|
75
|
+
*
|
|
76
|
+
* Set `undefined` to disable
|
|
77
|
+
*/
|
|
78
|
+
onClick: t.func,
|
|
79
|
+
/**
|
|
80
|
+
* Show a delete icon as secondary action
|
|
81
|
+
*
|
|
82
|
+
* Set `undefined` to hide
|
|
83
|
+
*/
|
|
84
|
+
onDelete: t.func,
|
|
85
|
+
// Overrides
|
|
86
|
+
/**
|
|
87
|
+
* Replace internal components
|
|
88
|
+
*/
|
|
89
|
+
components: t.shape({
|
|
90
|
+
Root: t.elementType,
|
|
91
|
+
ListItemButton: t.elementType,
|
|
92
|
+
ListItemAvatar: t.elementType,
|
|
93
|
+
ListItemText: t.elementType,
|
|
94
|
+
ListItemSecondaryAction: t.elementType
|
|
95
|
+
}),
|
|
96
|
+
/**
|
|
97
|
+
* Add internal component props
|
|
98
|
+
*/
|
|
99
|
+
componentsProps: t.shape({
|
|
100
|
+
root: t.instanceOf(Object),
|
|
101
|
+
listItemButton: t.instanceOf(Object),
|
|
102
|
+
listItemAvatar: t.shape({
|
|
103
|
+
entityAvatar: t.instanceOf(Object)
|
|
104
|
+
}),
|
|
105
|
+
listItemText: t.instanceOf(Object),
|
|
106
|
+
listItemSecondaryAction: t.instanceOf(Object)
|
|
107
|
+
})
|
|
108
|
+
};
|
|
109
|
+
m.defaultProps = {
|
|
110
|
+
collectionType: void 0,
|
|
111
|
+
primary: void 0,
|
|
112
|
+
secondary: void 0,
|
|
113
|
+
avatarVariant: "square",
|
|
114
|
+
isLoading: !1,
|
|
115
|
+
onClick: void 0,
|
|
116
|
+
onDelete: void 0,
|
|
117
|
+
components: j,
|
|
118
|
+
componentsProps: void 0
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
m as default
|
|
122
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { styled as r } from "@mui/material/styles";
|
|
2
|
+
import { withOverrides as m } from "../../_utils/withOverrides.js";
|
|
3
|
+
import i from "./CollectionListItem.js";
|
|
4
|
+
const o = "CollectionListItem", t = `Vdt${o}`, n = m(t)(i), s = r(n, {
|
|
5
|
+
name: t,
|
|
6
|
+
overridesResolver: (l, e) => e.root
|
|
7
|
+
})(() => ({}));
|
|
8
|
+
s.displayName = o;
|
|
9
|
+
export {
|
|
10
|
+
s as default
|
|
11
|
+
};
|