@vidispine/vdt-mui 23.3.0-pre.2 → 23.3.0-pre.3
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 -1
- package/dist/cjs/_utils/isDefinedValue.js +1 -1
- package/dist/cjs/_utils/showSlot.js +1 -1
- package/dist/cjs/collection/CollectionCard/CollectionCard.js +1 -1
- package/dist/cjs/collection/CollectionCard/components/CollectionCardMedia.js +1 -1
- package/dist/cjs/collection/CollectionCard/index.js +1 -1
- package/dist/cjs/collection/CollectionList/CollectionList.js +1 -1
- package/dist/cjs/collection/CollectionList/index.js +1 -1
- package/dist/cjs/collection/CollectionListItem/CollectionListItem.js +1 -1
- package/dist/cjs/collection/CollectionListItem/index.js +1 -1
- package/dist/cjs/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +1 -1
- package/dist/cjs/collection/CollectionRepresentativeThumbnail/index.js +1 -1
- package/dist/cjs/entity/EntityAvatar/EntityAvatar.js +1 -1
- package/dist/cjs/entity/EntityAvatar/index.js +1 -1
- package/dist/cjs/entity/EntityCard/_components/Typography.js +1 -0
- package/dist/cjs/entity/EntityCard/components/EntityCardActions.js +1 -1
- package/dist/cjs/entity/EntityCard/components/EntityCardBase.js +1 -1
- package/dist/cjs/entity/EntityCard/components/EntityCardContent.js +1 -1
- package/dist/cjs/entity/EntityCard/components/EntityCardHeader.js +1 -1
- package/dist/cjs/entity/EntityIcon/EntityIcon.js +1 -1
- package/dist/cjs/entity/EntityIcon/index.js +1 -1
- package/dist/cjs/entity/EntityList/EntityList.js +1 -1
- package/dist/cjs/entity/EntityList/index.js +1 -1
- package/dist/cjs/entity/EntityListItem/components/EntityListItemAvatar.js +1 -1
- package/dist/cjs/entity/EntityListItem/components/EntityListItemButton.js +1 -1
- package/dist/cjs/entity/EntityListItem/components/EntityListItemSecondaryAction.js +1 -1
- package/dist/cjs/entity/EntityListItem/components/EntityListItemText.js +1 -1
- package/dist/cjs/entity/EntityTableRow/components/EntityTableCellAvatar.js +1 -1
- package/dist/cjs/entity/EntityTableRow/components/EntityTableCellCheckbox.js +1 -1
- package/dist/cjs/entity/_utils/getEntityText.js +1 -1
- package/dist/cjs/general/AvatarMenu/AvatarMenu.js +1 -1
- package/dist/cjs/general/AvatarMenu/components/Avatar.js +1 -1
- package/dist/cjs/general/AvatarMenu/components/MenuItem.js +1 -1
- package/dist/cjs/general/AvatarMenu/index.js +1 -1
- package/dist/cjs/general/BlurredBackground/BlurredBackground.js +1 -1
- package/dist/cjs/general/BlurredBackground/index.js +1 -1
- package/dist/cjs/general/CalendarPicker/CalendarPicker.js +1 -1
- package/dist/cjs/general/CalendarPicker/components/PickersDay.js +1 -1
- package/dist/cjs/general/CalendarPicker/index.js +1 -1
- package/dist/cjs/general/CompactBadge/CompactBadge.js +1 -1
- package/dist/cjs/general/CompactBadge/index.js +1 -1
- package/dist/cjs/general/CompactLabel/CompactLabel.js +1 -1
- package/dist/cjs/general/CompactLabel/index.js +1 -1
- package/dist/cjs/general/CornerLabelPlacer/CornerLabelPlacer.js +1 -1
- package/dist/cjs/general/CornerLabelPlacer/index.js +1 -1
- package/dist/cjs/general/ExpandButton/ExpandButton.js +1 -1
- package/dist/cjs/general/ExpandButton/index.js +1 -1
- package/dist/cjs/general/Form/Form.js +1 -1
- package/dist/cjs/general/Form/index.js +1 -1
- package/dist/cjs/general/ImageCollage/ImageCollage.js +1 -1
- package/dist/cjs/general/ImageCollage/index.js +1 -1
- package/dist/cjs/general/MediaIcon/MediaIcon.js +1 -1
- package/dist/cjs/general/MenuItem/MenuItem.js +1 -1
- package/dist/cjs/general/MenuItem/index.js +1 -1
- package/dist/cjs/general/ScrubLine/ScrubLine.js +1 -1
- package/dist/cjs/general/ScrubLine/index.js +1 -1
- package/dist/cjs/general/Sort/Sort.js +1 -1
- package/dist/cjs/general/Sort/components/ButtonBase.js +1 -1
- package/dist/cjs/general/Sort/components/MenuItem.js +1 -1
- package/dist/cjs/general/Sort/index.js +1 -1
- package/dist/cjs/general/TablePagination/TablePagination.js +1 -1
- package/dist/cjs/general/TablePagination/index.js +1 -1
- package/dist/cjs/general/ThemeContext/ThemeContext.js +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/inputs/BasicDateTimeInput/BasicDateTimeInput.js +1 -1
- package/dist/cjs/inputs/BasicDateTimeInput/index.js +1 -1
- package/dist/cjs/inputs/BooleanInput/BooleanInput.js +1 -1
- package/dist/cjs/inputs/BooleanInput/index.js +1 -1
- package/dist/cjs/inputs/CheckboxGroupInput/CheckboxGroupInput.js +1 -1
- package/dist/cjs/inputs/CheckboxGroupInput/components/CheckboxGroup.js +1 -1
- package/dist/cjs/inputs/CheckboxGroupInput/index.js +1 -1
- package/dist/cjs/inputs/DateRangeInput/DateRangeInput.js +1 -1
- package/dist/cjs/inputs/DateRangeInput/index.js +1 -1
- package/dist/cjs/inputs/DateRangeInput/utils/valueManagers.js +1 -0
- package/dist/cjs/inputs/DateTimeInput/DateTimeInput.js +1 -1
- package/dist/cjs/inputs/DateTimeInput/index.js +1 -1
- package/dist/cjs/inputs/MaskedTextInput/MaskedTextInput.js +1 -1
- package/dist/cjs/inputs/MaskedTextInput/components/MaskedInputComponent.js +1 -1
- package/dist/cjs/inputs/MaskedTextInput/index.js +1 -1
- package/dist/cjs/inputs/NumberInput/NumberInput.js +1 -1
- package/dist/cjs/inputs/NumberInput/index.js +1 -1
- package/dist/cjs/inputs/RadioGroupInput/RadioGroupInput.js +1 -1
- package/dist/cjs/inputs/RadioGroupInput/components/RadioGroup.js +1 -1
- package/dist/cjs/inputs/RadioGroupInput/index.js +1 -1
- package/dist/cjs/inputs/SelectInput/SelectInput.js +1 -1
- package/dist/cjs/inputs/SelectInput/index.js +1 -1
- package/dist/cjs/inputs/SliderInput/SliderInput.js +1 -1
- package/dist/cjs/inputs/SliderInput/components/Slider.js +1 -1
- package/dist/cjs/inputs/SliderInput/index.js +1 -1
- package/dist/cjs/inputs/TagInput/TagInput.js +1 -1
- package/dist/cjs/inputs/TagInput/index.js +1 -1
- package/dist/cjs/inputs/TextInput/TextInput.js +1 -1
- package/dist/cjs/inputs/TextInput/index.js +1 -1
- package/dist/cjs/inputs/_components/FormControlLabel.js +1 -1
- package/dist/cjs/inputs/_components/MenuItem.js +1 -1
- package/dist/cjs/item/ItemCard/ItemCard.js +1 -1
- package/dist/cjs/item/ItemCard/components/ItemCardMedia.js +1 -1
- package/dist/cjs/item/ItemCard/index.js +1 -1
- package/dist/cjs/item/ItemList/ItemList.js +1 -1
- package/dist/cjs/item/ItemList/index.js +1 -1
- package/dist/cjs/item/ItemListItem/ItemListItem.js +1 -1
- package/dist/cjs/item/ItemListItem/index.js +1 -1
- package/dist/cjs/item/ItemPoster/ItemPoster.js +1 -1
- package/dist/cjs/item/ItemPoster/index.js +1 -1
- package/dist/cjs/item/ItemPosterList/ItemPosterList.js +1 -1
- package/dist/cjs/item/ItemPosterList/index.js +1 -1
- package/dist/cjs/item/ItemPosterViewer/ItemPosterViewer.js +1 -1
- package/dist/cjs/item/ItemPosterViewer/components/Toolbar.js +1 -1
- package/dist/cjs/item/ItemPosterViewer/index.js +1 -1
- package/dist/cjs/item/ItemTable/ItemTable.js +1 -1
- package/dist/cjs/item/ItemTable/components/ItemTableHead.js +1 -1
- package/dist/cjs/item/ItemTable/index.js +1 -1
- package/dist/cjs/item/ItemTableRow/ItemTableRow.js +1 -1
- package/dist/cjs/item/ItemTableRow/index.js +1 -1
- package/dist/cjs/item/ItemThumbnail/ItemThumbnail.js +1 -1
- package/dist/cjs/item/ItemThumbnail/index.js +1 -1
- package/dist/cjs/search/SearchFilterForm/SearchFilterForm.js +1 -1
- package/dist/cjs/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +1 -1
- package/dist/cjs/search/SearchFilterForm/index.js +1 -1
- package/dist/cjs/search/SearchFilterForm/utils/mapValuesToFilter.js +1 -1
- package/dist/cjs/shape/ShapeMediaBadges/ShapeMediaBadges.js +1 -1
- package/dist/cjs/shape/ShapeMediaBadges/index.js +1 -1
- package/dist/cjs/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +1 -1
- package/dist/cjs/transcode/TranscodePresetMediaBadges/index.js +1 -1
- package/dist/es/_consts/ENTITY_TYPES.d.ts +6 -0
- package/dist/es/_consts/index.d.ts +1 -0
- package/dist/es/_types.d.ts +21 -0
- package/dist/es/_utils/generateBadges.d.ts +2 -0
- package/dist/es/_utils/generateBadges.js +23 -22
- package/dist/es/_utils/index.d.ts +6 -0
- package/dist/es/_utils/isDefinedValue.d.ts +3 -0
- package/dist/es/_utils/isDefinedValue.js +2 -2
- package/dist/es/_utils/omit.d.ts +3 -0
- package/dist/es/_utils/showSlot.d.ts +1 -0
- package/dist/es/_utils/showSlot.js +2 -2
- package/dist/es/_utils/uuidv4.d.ts +1 -0
- package/dist/es/_utils/uuidv4.js +7 -4
- package/dist/es/_utils/withOverrides.d.ts +8 -0
- package/dist/es/collection/CollectionCard/CollectionCard.d.ts +165 -0
- package/dist/es/collection/CollectionCard/CollectionCard.js +92 -226
- package/dist/es/collection/CollectionCard/components/CollectionCardMedia.d.ts +11 -0
- package/dist/es/collection/CollectionCard/components/CollectionCardMedia.js +14 -11
- package/dist/es/collection/CollectionCard/index.d.ts +3 -0
- package/dist/es/collection/CollectionCard/index.js +1 -1
- package/dist/es/collection/CollectionList/CollectionList.d.ts +75 -0
- package/dist/es/collection/CollectionList/CollectionList.js +43 -128
- package/dist/es/collection/CollectionList/index.d.ts +3 -0
- package/dist/es/collection/CollectionList/index.js +1 -1
- package/dist/es/collection/CollectionListItem/CollectionListItem.d.ts +67 -0
- package/dist/es/collection/CollectionListItem/CollectionListItem.js +37 -107
- package/dist/es/collection/CollectionListItem/index.d.ts +3 -0
- package/dist/es/collection/CollectionListItem/index.js +1 -1
- package/dist/es/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.d.ts +46 -0
- package/dist/es/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +55 -112
- package/dist/es/collection/CollectionRepresentativeThumbnail/index.d.ts +3 -0
- package/dist/es/collection/CollectionRepresentativeThumbnail/index.js +6 -6
- package/dist/es/collection/index.d.ts +4 -0
- package/dist/es/entity/EntityAvatar/EntityAvatar.d.ts +39 -0
- package/dist/es/entity/EntityAvatar/EntityAvatar.js +43 -86
- package/dist/es/entity/EntityAvatar/index.d.ts +3 -0
- package/dist/es/entity/EntityAvatar/index.js +1 -1
- package/dist/es/entity/EntityCard/_components/Typography.d.ts +7 -0
- package/dist/es/entity/EntityCard/_components/Typography.js +15 -0
- package/dist/es/entity/EntityCard/components/EntityCardActions.d.ts +30 -0
- package/dist/es/entity/EntityCard/components/EntityCardActions.js +35 -28
- package/dist/es/entity/EntityCard/components/EntityCardBase.d.ts +7 -0
- package/dist/es/entity/EntityCard/components/EntityCardBase.js +9 -11
- package/dist/es/entity/EntityCard/components/EntityCardContent.d.ts +15 -0
- package/dist/es/entity/EntityCard/components/EntityCardContent.js +33 -31
- package/dist/es/entity/EntityCard/components/EntityCardHeader.d.ts +29 -0
- package/dist/es/entity/EntityCard/components/EntityCardHeader.js +37 -38
- package/dist/es/entity/EntityIcon/EntityIcon.d.ts +27 -0
- package/dist/es/entity/EntityIcon/EntityIcon.js +49 -83
- package/dist/es/entity/EntityIcon/index.d.ts +3 -0
- package/dist/es/entity/EntityIcon/index.js +1 -1
- package/dist/es/entity/EntityList/EntityList.d.ts +93 -0
- package/dist/es/entity/EntityList/EntityList.js +75 -170
- package/dist/es/entity/EntityList/index.d.ts +3 -0
- package/dist/es/entity/EntityList/index.js +1 -1
- package/dist/es/entity/EntityListItem/components/EntityListItemAvatar.d.ts +14 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemAvatar.js +14 -13
- package/dist/es/entity/EntityListItem/components/EntityListItemButton.d.ts +12 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemButton.js +14 -13
- package/dist/es/entity/EntityListItem/components/EntityListItemSecondaryAction.d.ts +12 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemSecondaryAction.js +15 -19
- package/dist/es/entity/EntityListItem/components/EntityListItemText.d.ts +13 -0
- package/dist/es/entity/EntityListItem/components/EntityListItemText.js +20 -21
- package/dist/es/entity/EntityTableRow/components/EntityTableCellAvatar.d.ts +14 -0
- package/dist/es/entity/EntityTableRow/components/EntityTableCellAvatar.js +13 -12
- package/dist/es/entity/EntityTableRow/components/EntityTableCellCheckbox.d.ts +8 -0
- package/dist/es/entity/EntityTableRow/components/EntityTableCellCheckbox.js +12 -13
- package/dist/es/entity/_utils/getEntityProp.d.ts +9 -0
- package/dist/es/entity/_utils/getEntityText.d.ts +7 -0
- package/dist/es/entity/_utils/getEntityText.js +24 -24
- package/dist/es/entity/_utils/index.d.ts +2 -0
- package/dist/es/entity/index.d.ts +3 -0
- package/dist/es/general/AvatarMenu/AvatarMenu.d.ts +59 -0
- package/dist/es/general/AvatarMenu/AvatarMenu.js +50 -111
- package/dist/es/general/AvatarMenu/components/Avatar.d.ts +8 -0
- package/dist/es/general/AvatarMenu/components/Avatar.js +18 -13
- package/dist/es/general/AvatarMenu/components/MenuItem.d.ts +11 -0
- package/dist/es/general/AvatarMenu/components/MenuItem.js +12 -13
- package/dist/es/general/AvatarMenu/index.d.ts +3 -0
- package/dist/es/general/AvatarMenu/index.js +1 -1
- package/dist/es/general/BlurredBackground/BlurredBackground.d.ts +35 -0
- package/dist/es/general/BlurredBackground/BlurredBackground.js +26 -66
- package/dist/es/general/BlurredBackground/index.d.ts +3 -0
- package/dist/es/general/BlurredBackground/index.js +1 -1
- package/dist/es/general/CalendarPicker/CalendarPicker.d.ts +134 -0
- package/dist/es/general/CalendarPicker/CalendarPicker.js +170 -267
- package/dist/es/general/CalendarPicker/components/PickersDay.d.ts +15 -0
- package/dist/es/general/CalendarPicker/components/PickersDay.js +28 -23
- package/dist/es/general/CalendarPicker/index.d.ts +3 -0
- package/dist/es/general/CalendarPicker/index.js +5 -5
- package/dist/es/general/CalendarPicker/utils/index.d.ts +9 -0
- package/dist/es/general/CompactBadge/CompactBadge.d.ts +16 -0
- package/dist/es/general/CompactBadge/CompactBadge.js +19 -40
- package/dist/es/general/CompactBadge/index.d.ts +3 -0
- package/dist/es/general/CompactBadge/index.js +1 -1
- package/dist/es/general/CompactLabel/CompactLabel.d.ts +22 -0
- package/dist/es/general/CompactLabel/CompactLabel.js +20 -45
- package/dist/es/general/CompactLabel/index.d.ts +3 -0
- package/dist/es/general/CompactLabel/index.js +1 -1
- package/dist/es/general/CornerLabelPlacer/CornerLabelPlacer.d.ts +29 -0
- package/dist/es/general/CornerLabelPlacer/CornerLabelPlacer.js +35 -76
- package/dist/es/general/CornerLabelPlacer/index.d.ts +3 -0
- package/dist/es/general/CornerLabelPlacer/index.js +1 -1
- package/dist/es/general/ExpandButton/ExpandButton.d.ts +29 -0
- package/dist/es/general/ExpandButton/ExpandButton.js +31 -60
- package/dist/es/general/ExpandButton/index.d.ts +3 -0
- package/dist/es/general/ExpandButton/index.js +1 -1
- package/dist/es/general/Form/Form.d.ts +138 -0
- package/dist/es/general/Form/Form.js +90 -171
- package/dist/es/general/Form/index.d.ts +3 -0
- package/dist/es/general/Form/index.js +1 -1
- package/dist/es/general/ImageCollage/ImageCollage.d.ts +53 -0
- package/dist/es/general/ImageCollage/ImageCollage.js +50 -105
- package/dist/es/general/ImageCollage/index.d.ts +3 -0
- package/dist/es/general/ImageCollage/index.js +1 -1
- package/dist/es/general/MediaIcon/MediaIcon.d.ts +23 -0
- package/dist/es/general/MediaIcon/MediaIcon.js +50 -90
- package/dist/es/general/MediaIcon/index.d.ts +3 -0
- package/dist/es/general/MenuItem/MenuItem.d.ts +35 -0
- package/dist/es/general/MenuItem/MenuItem.js +30 -68
- package/dist/es/general/MenuItem/index.d.ts +3 -0
- package/dist/es/general/MenuItem/index.js +1 -1
- package/dist/es/general/ScrubLine/ScrubLine.d.ts +58 -0
- package/dist/es/general/ScrubLine/ScrubLine.js +45 -106
- package/dist/es/general/ScrubLine/index.d.ts +3 -0
- package/dist/es/general/ScrubLine/index.js +1 -1
- package/dist/es/general/Sort/Sort.d.ts +50 -0
- package/dist/es/general/Sort/Sort.js +75 -131
- package/dist/es/general/Sort/components/ButtonBase.d.ts +9 -0
- package/dist/es/general/Sort/components/ButtonBase.js +12 -14
- package/dist/es/general/Sort/components/MenuItem.d.ts +10 -0
- package/dist/es/general/Sort/components/MenuItem.js +9 -11
- package/dist/es/general/Sort/index.d.ts +3 -0
- package/dist/es/general/Sort/index.js +1 -1
- package/dist/es/general/TablePagination/TablePagination.d.ts +47 -0
- package/dist/es/general/TablePagination/TablePagination.js +48 -84
- package/dist/es/general/TablePagination/index.d.ts +3 -0
- package/dist/es/general/TablePagination/index.js +1 -1
- package/dist/es/general/ThemeContext/ThemeContext.d.ts +43 -0
- package/dist/es/general/ThemeContext/ThemeContext.js +58 -67
- package/dist/es/general/ThemeContext/index.d.ts +1 -0
- package/dist/es/general/index.d.ts +15 -0
- package/dist/es/index.d.ts +8 -0
- package/dist/es/index.js +95 -0
- package/dist/es/inputs/BasicDateTimeInput/BasicDateTimeInput.d.ts +68 -0
- package/dist/es/inputs/BasicDateTimeInput/BasicDateTimeInput.js +31 -105
- package/dist/es/inputs/BasicDateTimeInput/index.d.ts +3 -0
- package/dist/es/inputs/BasicDateTimeInput/index.js +1 -1
- package/dist/es/inputs/BooleanInput/BooleanInput.d.ts +85 -0
- package/dist/es/inputs/BooleanInput/BooleanInput.js +51 -137
- package/dist/es/inputs/BooleanInput/index.d.ts +3 -0
- package/dist/es/inputs/BooleanInput/index.js +1 -1
- package/dist/es/inputs/CheckboxGroupInput/CheckboxGroupInput.d.ts +106 -0
- package/dist/es/inputs/CheckboxGroupInput/CheckboxGroupInput.js +84 -196
- package/dist/es/inputs/CheckboxGroupInput/components/CheckboxGroup.d.ts +42 -0
- package/dist/es/inputs/CheckboxGroupInput/components/CheckboxGroup.js +64 -48
- package/dist/es/inputs/CheckboxGroupInput/index.d.ts +3 -0
- package/dist/es/inputs/CheckboxGroupInput/index.js +1 -1
- package/dist/es/inputs/DateRangeInput/DateRangeInput.d.ts +150 -0
- package/dist/es/inputs/DateRangeInput/DateRangeInput.js +134 -277
- package/dist/es/inputs/DateRangeInput/index.d.ts +3 -0
- package/dist/es/inputs/DateRangeInput/index.js +1 -1
- package/dist/es/inputs/DateRangeInput/utils/dateHelpers.d.ts +10 -0
- package/dist/es/inputs/DateRangeInput/utils/valueManagers.d.ts +10 -0
- package/dist/es/inputs/DateRangeInput/{components/utils → utils}/valueManagers.js +1 -1
- package/dist/es/inputs/DateTimeInput/DateTimeInput.d.ts +105 -0
- package/dist/es/inputs/DateTimeInput/DateTimeInput.js +96 -195
- package/dist/es/inputs/DateTimeInput/index.d.ts +3 -0
- package/dist/es/inputs/DateTimeInput/index.js +1 -1
- package/dist/es/inputs/MaskedTextInput/MaskedTextInput.d.ts +131 -0
- package/dist/es/inputs/MaskedTextInput/MaskedTextInput.js +58 -193
- package/dist/es/inputs/MaskedTextInput/components/MaskedInputComponent.d.ts +16 -0
- package/dist/es/inputs/MaskedTextInput/components/MaskedInputComponent.js +11 -7
- package/dist/es/inputs/MaskedTextInput/index.d.ts +3 -0
- package/dist/es/inputs/MaskedTextInput/index.js +1 -1
- package/dist/es/inputs/NumberInput/NumberInput.d.ts +70 -0
- package/dist/es/inputs/NumberInput/NumberInput.js +30 -106
- package/dist/es/inputs/NumberInput/index.d.ts +3 -0
- package/dist/es/inputs/NumberInput/index.js +1 -1
- package/dist/es/inputs/RadioGroupInput/RadioGroupInput.d.ts +106 -0
- package/dist/es/inputs/RadioGroupInput/RadioGroupInput.js +74 -187
- package/dist/es/inputs/RadioGroupInput/components/RadioGroup.d.ts +42 -0
- package/dist/es/inputs/RadioGroupInput/components/RadioGroup.js +49 -33
- package/dist/es/inputs/RadioGroupInput/index.d.ts +3 -0
- package/dist/es/inputs/RadioGroupInput/index.js +1 -1
- package/dist/es/inputs/SelectInput/SelectInput.d.ts +95 -0
- package/dist/es/inputs/SelectInput/SelectInput.js +52 -152
- package/dist/es/inputs/SelectInput/index.d.ts +3 -0
- package/dist/es/inputs/SelectInput/index.js +1 -1
- package/dist/es/inputs/SliderInput/SliderInput.d.ts +141 -0
- package/dist/es/inputs/SliderInput/SliderInput.js +94 -241
- package/dist/es/inputs/SliderInput/components/Slider.d.ts +30 -0
- package/dist/es/inputs/SliderInput/components/Slider.js +52 -50
- package/dist/es/inputs/SliderInput/index.d.ts +3 -0
- package/dist/es/inputs/SliderInput/index.js +1 -1
- package/dist/es/inputs/TagInput/TagInput.d.ts +118 -0
- package/dist/es/inputs/TagInput/TagInput.js +123 -215
- package/dist/es/inputs/TagInput/index.d.ts +3 -0
- package/dist/es/inputs/TagInput/index.js +1 -1
- package/dist/es/inputs/TextInput/TextInput.d.ts +80 -0
- package/dist/es/inputs/TextInput/TextInput.js +37 -123
- package/dist/es/inputs/TextInput/index.d.ts +3 -0
- package/dist/es/inputs/TextInput/index.js +1 -1
- package/dist/es/inputs/_components/FormControlLabel.d.ts +10 -0
- package/dist/es/inputs/_components/FormControlLabel.js +23 -23
- package/dist/es/inputs/_components/MenuItem.d.ts +11 -0
- package/dist/es/inputs/_components/MenuItem.js +11 -10
- package/dist/es/inputs/index.d.ts +12 -0
- package/dist/es/item/ItemCard/ItemCard.d.ts +165 -0
- package/dist/es/item/ItemCard/ItemCard.js +95 -230
- package/dist/es/item/ItemCard/components/ItemCardMedia.d.ts +12 -0
- package/dist/es/item/ItemCard/components/ItemCardMedia.js +16 -14
- package/dist/es/item/ItemCard/index.d.ts +3 -0
- package/dist/es/item/ItemCard/index.js +1 -1
- package/dist/es/item/ItemList/ItemList.d.ts +75 -0
- package/dist/es/item/ItemList/ItemList.js +47 -131
- package/dist/es/item/ItemList/index.d.ts +3 -0
- package/dist/es/item/ItemList/index.js +1 -1
- package/dist/es/item/ItemListItem/ItemListItem.d.ts +67 -0
- package/dist/es/item/ItemListItem/ItemListItem.js +36 -106
- package/dist/es/item/ItemListItem/index.d.ts +3 -0
- package/dist/es/item/ItemListItem/index.js +1 -1
- package/dist/es/item/ItemPoster/ItemPoster.d.ts +44 -0
- package/dist/es/item/ItemPoster/ItemPoster.js +37 -78
- package/dist/es/item/ItemPoster/index.d.ts +3 -0
- package/dist/es/item/ItemPoster/index.js +1 -1
- package/dist/es/item/ItemPosterList/ItemPosterList.d.ts +36 -0
- package/dist/es/item/ItemPosterList/ItemPosterList.js +30 -82
- package/dist/es/item/ItemPosterList/index.d.ts +3 -0
- package/dist/es/item/ItemPosterList/index.js +1 -1
- package/dist/es/item/ItemPosterViewer/ItemPosterViewer.d.ts +69 -0
- package/dist/es/item/ItemPosterViewer/ItemPosterViewer.js +72 -123
- package/dist/es/item/ItemPosterViewer/components/Toolbar.d.ts +10 -0
- package/dist/es/item/ItemPosterViewer/components/Toolbar.js +26 -22
- package/dist/es/item/ItemPosterViewer/index.d.ts +3 -0
- package/dist/es/item/ItemPosterViewer/index.js +1 -1
- package/dist/es/item/ItemTable/ItemTable.d.ts +79 -0
- package/dist/es/item/ItemTable/ItemTable.js +65 -150
- package/dist/es/item/ItemTable/components/ItemTableHead.d.ts +16 -0
- package/dist/es/item/ItemTable/components/ItemTableHead.js +30 -31
- package/dist/es/item/ItemTable/index.d.ts +3 -0
- package/dist/es/item/ItemTable/index.js +1 -1
- package/dist/es/item/ItemTableRow/ItemTableRow.d.ts +66 -0
- package/dist/es/item/ItemTableRow/ItemTableRow.js +56 -126
- package/dist/es/item/ItemTableRow/index.d.ts +3 -0
- package/dist/es/item/ItemTableRow/index.js +1 -1
- package/dist/es/item/ItemThumbnail/ItemThumbnail.d.ts +88 -0
- package/dist/es/item/ItemThumbnail/ItemThumbnail.js +46 -132
- package/dist/es/item/ItemThumbnail/index.d.ts +3 -0
- package/dist/es/item/ItemThumbnail/index.js +1 -1
- package/dist/es/item/index.d.ts +9 -0
- package/dist/es/search/SearchFilterForm/SearchFilterForm.d.ts +90 -0
- package/dist/es/search/SearchFilterForm/SearchFilterForm.js +57 -118
- package/dist/es/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.d.ts +100 -0
- package/dist/es/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +44 -40
- package/dist/es/search/SearchFilterForm/index.d.ts +3 -0
- package/dist/es/search/SearchFilterForm/index.js +8 -9
- package/dist/es/search/SearchFilterForm/utils/mapValuesToFilter.d.ts +15 -0
- package/dist/es/search/SearchFilterForm/utils/mapValuesToFilter.js +30 -33
- package/dist/es/search/index.d.ts +1 -0
- package/dist/es/shape/ShapeMediaBadges/ShapeMediaBadges.d.ts +35 -0
- package/dist/es/shape/ShapeMediaBadges/ShapeMediaBadges.js +21 -61
- package/dist/es/shape/ShapeMediaBadges/index.d.ts +3 -0
- package/dist/es/shape/ShapeMediaBadges/index.js +1 -1
- package/dist/es/shape/index.d.ts +1 -0
- package/dist/es/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.d.ts +35 -0
- package/dist/es/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +20 -60
- package/dist/es/transcode/TranscodePresetMediaBadges/index.d.ts +3 -0
- package/dist/es/transcode/TranscodePresetMediaBadges/index.js +1 -1
- package/dist/es/transcode/index.d.ts +1 -0
- package/package.json +28 -22
- package/dist/cjs/inputs/DateRangeInput/components/utils/valueManagers.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.es.js +0 -93
|
@@ -1,65 +1,63 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import K from "@mui/material/
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import Q from "
|
|
8
|
-
import U from "../../entity/EntityCard/components/
|
|
9
|
-
import X from "../../entity/EntityCard/components/
|
|
10
|
-
import Y from "
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const $ = d(X, {
|
|
14
|
-
shouldForwardProp: (t) => t !== "horizontal"
|
|
1
|
+
import { jsxs as G, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as v } from "react";
|
|
3
|
+
import J from "@mui/material/CardActionArea";
|
|
4
|
+
import K from "@mui/material/Collapse";
|
|
5
|
+
import { styled as i } from "@mui/material/styles";
|
|
6
|
+
import N from "../../entity/EntityCard/components/EntityCardActions.js";
|
|
7
|
+
import Q from "../../entity/EntityCard/components/EntityCardBase.js";
|
|
8
|
+
import U from "../../entity/EntityCard/components/EntityCardContent.js";
|
|
9
|
+
import X from "../../entity/EntityCard/components/EntityCardHeader.js";
|
|
10
|
+
import Y from "./components/ItemCardMedia.js";
|
|
11
|
+
const Z = i(Q, {
|
|
12
|
+
shouldForwardProp: (d) => d !== "horizontal"
|
|
15
13
|
})(({
|
|
16
|
-
horizontal:
|
|
14
|
+
horizontal: d
|
|
17
15
|
}) => ({
|
|
18
16
|
display: "grid",
|
|
19
|
-
...
|
|
17
|
+
...d ? {
|
|
20
18
|
gridTemplateAreas: '"actionArea header" "actionArea content" "actionArea actions" "collapse collapse"',
|
|
21
19
|
gridTemplateColumns: "min-content auto"
|
|
22
20
|
} : {
|
|
23
21
|
gridTemplateAreas: '"header" "actionArea" "content" "actions" "collapse"'
|
|
24
22
|
}
|
|
25
|
-
})),
|
|
26
|
-
shouldForwardProp: (
|
|
23
|
+
})), _ = i(X, {
|
|
24
|
+
shouldForwardProp: (d) => d !== "horizontal"
|
|
27
25
|
})(({
|
|
28
|
-
horizontal:
|
|
26
|
+
horizontal: d
|
|
29
27
|
}) => ({
|
|
30
28
|
gridArea: "header",
|
|
31
|
-
...
|
|
29
|
+
...d && {
|
|
32
30
|
"& .MuiCardHeader-avatar": {
|
|
33
31
|
display: "none"
|
|
34
32
|
}
|
|
35
33
|
}
|
|
36
|
-
})),
|
|
37
|
-
shouldForwardProp: (
|
|
34
|
+
})), $ = i(Y, {
|
|
35
|
+
shouldForwardProp: (d) => !["horizontal", "mediaPadding", "mediaSize"].includes(d)
|
|
38
36
|
})(({
|
|
39
|
-
theme:
|
|
40
|
-
horizontal:
|
|
37
|
+
theme: d,
|
|
38
|
+
horizontal: r,
|
|
41
39
|
mediaPadding: C,
|
|
42
|
-
mediaSize:
|
|
40
|
+
mediaSize: n
|
|
43
41
|
}) => ({
|
|
44
|
-
padding:
|
|
45
|
-
...
|
|
46
|
-
width:
|
|
42
|
+
padding: d.spacing(C),
|
|
43
|
+
...r ? {
|
|
44
|
+
width: n,
|
|
47
45
|
height: "100%"
|
|
48
46
|
} : {
|
|
49
|
-
height:
|
|
47
|
+
height: n,
|
|
50
48
|
width: "100%"
|
|
51
49
|
}
|
|
52
|
-
})),
|
|
53
|
-
shouldForwardProp: (
|
|
50
|
+
})), x = i(U, {
|
|
51
|
+
shouldForwardProp: (d) => d !== "horizontal"
|
|
54
52
|
})(({
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
theme: d,
|
|
54
|
+
horizontal: r
|
|
57
55
|
}) => ({
|
|
58
56
|
gridArea: "content",
|
|
59
|
-
paddingTop:
|
|
60
|
-
})),
|
|
57
|
+
paddingTop: r ? 0 : d.spacing(2)
|
|
58
|
+
})), T = i(N)(() => ({
|
|
61
59
|
gridArea: "actions"
|
|
62
|
-
})),
|
|
60
|
+
})), dd = i(J)(() => ({
|
|
63
61
|
gridArea: "actionArea",
|
|
64
62
|
transition: "filter 0.25s ease-in-out",
|
|
65
63
|
"&:focus": {
|
|
@@ -68,208 +66,75 @@ const $ = d(X, {
|
|
|
68
66
|
"& .MuiTouchRipple-root": {
|
|
69
67
|
zIndex: 10
|
|
70
68
|
}
|
|
71
|
-
})),
|
|
69
|
+
})), ad = i(K)(() => ({
|
|
72
70
|
gridArea: "collapse"
|
|
73
|
-
})),
|
|
74
|
-
Root:
|
|
75
|
-
CardHeader:
|
|
76
|
-
CardMedia:
|
|
77
|
-
CardContent:
|
|
78
|
-
CardContentExpanded:
|
|
79
|
-
CardActions:
|
|
80
|
-
CardActionArea:
|
|
81
|
-
Collapse:
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
title: i,
|
|
71
|
+
})), od = {
|
|
72
|
+
Root: Z,
|
|
73
|
+
CardHeader: _,
|
|
74
|
+
CardMedia: $,
|
|
75
|
+
CardContent: x,
|
|
76
|
+
CardContentExpanded: x,
|
|
77
|
+
CardActions: T,
|
|
78
|
+
CardActionArea: dd,
|
|
79
|
+
Collapse: ad
|
|
80
|
+
}, td = ({
|
|
81
|
+
itemType: d,
|
|
82
|
+
title: r,
|
|
86
83
|
subheader: C,
|
|
87
|
-
content:
|
|
88
|
-
expandedContent:
|
|
89
|
-
horizontal:
|
|
90
|
-
mediaSize:
|
|
91
|
-
mediaPadding:
|
|
84
|
+
content: n,
|
|
85
|
+
expandedContent: u,
|
|
86
|
+
horizontal: c,
|
|
87
|
+
mediaSize: M,
|
|
88
|
+
mediaPadding: E,
|
|
92
89
|
checked: l,
|
|
93
|
-
expanded:
|
|
94
|
-
onClick:
|
|
95
|
-
onCheck:
|
|
96
|
-
onExpand:
|
|
97
|
-
menuOptions:
|
|
98
|
-
onOptionClick:
|
|
99
|
-
actions:
|
|
100
|
-
onActionClick:
|
|
101
|
-
components:
|
|
102
|
-
componentsProps:
|
|
103
|
-
}) {
|
|
90
|
+
expanded: s,
|
|
91
|
+
onClick: h,
|
|
92
|
+
onCheck: A,
|
|
93
|
+
onExpand: m,
|
|
94
|
+
menuOptions: S,
|
|
95
|
+
onOptionClick: k,
|
|
96
|
+
actions: y,
|
|
97
|
+
onActionClick: w,
|
|
98
|
+
components: H,
|
|
99
|
+
componentsProps: a
|
|
100
|
+
}) => {
|
|
104
101
|
const {
|
|
105
|
-
Root:
|
|
106
|
-
CardHeader:
|
|
107
|
-
CardActionArea:
|
|
108
|
-
CardMedia:
|
|
102
|
+
Root: V,
|
|
103
|
+
CardHeader: b,
|
|
104
|
+
CardActionArea: z,
|
|
105
|
+
CardMedia: F,
|
|
109
106
|
CardContent: I,
|
|
110
|
-
CardContentExpanded:
|
|
111
|
-
CardActions:
|
|
107
|
+
CardContentExpanded: L,
|
|
108
|
+
CardActions: O,
|
|
112
109
|
Collapse: R
|
|
113
|
-
} =
|
|
114
|
-
var
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
value:
|
|
118
|
-
itemType:
|
|
119
|
-
}), l === void 0 && B(
|
|
120
|
-
},
|
|
121
|
-
value:
|
|
110
|
+
} = H, [j, B] = v(l), [P, W] = v(s), q = (o) => {
|
|
111
|
+
var p;
|
|
112
|
+
const e = (p = o == null ? void 0 : o.target) == null ? void 0 : p.checked;
|
|
113
|
+
A && A(o, {
|
|
114
|
+
value: e,
|
|
115
|
+
itemType: d
|
|
116
|
+
}), l === void 0 && B(e);
|
|
117
|
+
}, D = (o, {
|
|
118
|
+
value: e
|
|
122
119
|
}) => {
|
|
123
|
-
|
|
124
|
-
value:
|
|
125
|
-
itemType:
|
|
126
|
-
}),
|
|
127
|
-
},
|
|
128
|
-
return /* @__PURE__ */
|
|
129
|
-
/* @__PURE__ */
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
itemType:
|
|
132
|
-
}), ...
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
/* @__PURE__ */
|
|
120
|
+
m && m(o, {
|
|
121
|
+
value: e,
|
|
122
|
+
itemType: d
|
|
123
|
+
}), s === void 0 && W(e);
|
|
124
|
+
}, f = l !== void 0 ? l : j, g = s !== void 0 ? s : P;
|
|
125
|
+
return /* @__PURE__ */ G(V, { checked: f, horizontal: c, ...a.root, children: [
|
|
126
|
+
/* @__PURE__ */ t(b, { itemType: d, title: r, subheader: C, menuOptions: S, horizontal: c, onOptionClick: k, ...a.cardHeader }),
|
|
127
|
+
/* @__PURE__ */ t(z, { disabled: h === void 0, onClick: (o) => h(o, {
|
|
128
|
+
itemType: d
|
|
129
|
+
}), ...a.cardActionArea, children: /* @__PURE__ */ t(F, { itemType: d, mediaSize: M, mediaPadding: E, horizontal: c, ...a.cardMedia }) }),
|
|
130
|
+
/* @__PURE__ */ t(I, { itemType: d, content: n, horizontal: c, ...a.cardContent }),
|
|
131
|
+
/* @__PURE__ */ t(O, { itemType: d, checked: f, expanded: g, actions: y, onCheck: A ? q : null, onExpand: u ? D : null, onActionClick: w, ...a.cardActions }),
|
|
132
|
+
/* @__PURE__ */ t(R, { in: g && u !== void 0, timeout: "auto", unmountOnExit: !0, ...a.collapse, children: /* @__PURE__ */ t(L, { itemType: d, content: u, WebkitLineClamp: 0, ...a.cardContentExpanded }) })
|
|
136
133
|
] });
|
|
137
|
-
}
|
|
138
|
-
v.propTypes = {
|
|
139
|
-
/**
|
|
140
|
-
* The Item to show
|
|
141
|
-
*/
|
|
142
|
-
itemType: Q.ItemType,
|
|
143
|
-
/**
|
|
144
|
-
* Title text for the item card header
|
|
145
|
-
*
|
|
146
|
-
* Set to *field name* the value should be extracted from
|
|
147
|
-
* or set *function* which will get itemType as argument
|
|
148
|
-
*
|
|
149
|
-
* Defaults to id of item
|
|
150
|
-
*/
|
|
151
|
-
title: e.oneOfType([e.string, e.func]),
|
|
152
|
-
/**
|
|
153
|
-
* Subheader text for the item card header
|
|
154
|
-
*
|
|
155
|
-
* Set to *field name* the value should be extracted from
|
|
156
|
-
* or set *function* which will get itemType 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 itemType 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
|
-
* Whether the card should have horizontal or standard layout
|
|
181
|
-
*/
|
|
182
|
-
horizontal: e.bool,
|
|
183
|
-
/**
|
|
184
|
-
* Add padding around media (theme spacing value)
|
|
185
|
-
*/
|
|
186
|
-
mediaPadding: e.number,
|
|
187
|
-
/**
|
|
188
|
-
* Set size for the card media
|
|
189
|
-
*
|
|
190
|
-
* `width` if horizontal: true, `height` otherwise
|
|
191
|
-
*/
|
|
192
|
-
mediaSize: e.string,
|
|
193
|
-
/**
|
|
194
|
-
* Whether the media card is marked as checked or not
|
|
195
|
-
*/
|
|
196
|
-
checked: e.bool,
|
|
197
|
-
/**
|
|
198
|
-
* Whether the expanded content is shown or not
|
|
199
|
-
*/
|
|
200
|
-
expanded: e.bool,
|
|
201
|
-
/**
|
|
202
|
-
* The list of actions to show
|
|
203
|
-
*/
|
|
204
|
-
actions: e.arrayOf(e.shape({
|
|
205
|
-
name: e.string,
|
|
206
|
-
Icon: e.elementType,
|
|
207
|
-
iconProps: e.instanceOf(Object)
|
|
208
|
-
})),
|
|
209
|
-
/**
|
|
210
|
-
* A list of options for the card header action
|
|
211
|
-
*/
|
|
212
|
-
menuOptions: e.arrayOf(e.instanceOf(Object)),
|
|
213
|
-
// Callbacks
|
|
214
|
-
/**
|
|
215
|
-
* A function that handles the onClick event
|
|
216
|
-
*/
|
|
217
|
-
onClick: e.func,
|
|
218
|
-
/**
|
|
219
|
-
* A function that handles the expand button being clicked
|
|
220
|
-
*/
|
|
221
|
-
onExpand: e.func,
|
|
222
|
-
/**
|
|
223
|
-
* A function that handles the check box being clicked
|
|
224
|
-
*/
|
|
225
|
-
onCheck: 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
|
-
itemThumbnail: e.instanceOf(Object),
|
|
260
|
-
itemPoster: e.instanceOf(Object)
|
|
261
|
-
}),
|
|
262
|
-
cardContent: e.instanceOf(Object),
|
|
263
|
-
cardContentExpanded: e.instanceOf(Object),
|
|
264
|
-
cardActions: e.shape({
|
|
265
|
-
expandButton: e.instanceOf(Object)
|
|
266
|
-
}),
|
|
267
|
-
collapse: e.instanceOf(Object)
|
|
268
|
-
})
|
|
269
134
|
};
|
|
270
|
-
|
|
135
|
+
td.defaultProps = {
|
|
271
136
|
itemType: void 0,
|
|
272
|
-
title:
|
|
137
|
+
title: "id",
|
|
273
138
|
subheader: void 0,
|
|
274
139
|
content: void 0,
|
|
275
140
|
expandedContent: void 0,
|
|
@@ -285,9 +150,9 @@ v.defaultProps = {
|
|
|
285
150
|
onExpand: void 0,
|
|
286
151
|
onOptionClick: void 0,
|
|
287
152
|
onActionClick: void 0,
|
|
288
|
-
components:
|
|
153
|
+
components: od,
|
|
289
154
|
componentsProps: void 0
|
|
290
155
|
};
|
|
291
156
|
export {
|
|
292
|
-
|
|
157
|
+
td as default
|
|
293
158
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CardMediaProps as MuiCardMediaProps } from '@mui/material';
|
|
3
|
+
import type { ItemType } from '@vidispine/types';
|
|
4
|
+
import type { ItemPosterProps } from '../../ItemPoster/ItemPoster';
|
|
5
|
+
import type { ItemThumbnailProps } from '../../ItemThumbnail/ItemThumbnail';
|
|
6
|
+
export interface ItemCardMediaProps extends Omit<MuiCardMediaProps, 'itemType'> {
|
|
7
|
+
itemType?: ItemType;
|
|
8
|
+
itemThumbnail?: ItemThumbnailProps;
|
|
9
|
+
itemPoster?: ItemPosterProps;
|
|
10
|
+
}
|
|
11
|
+
declare const ItemCardMedia: React.FC<ItemCardMediaProps>;
|
|
12
|
+
export default ItemCardMedia;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import i from "@mui/material/CardMedia";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
3
|
+
import m from "../../ItemPoster/index.js";
|
|
4
|
+
import l from "../../ItemThumbnail/index.js";
|
|
5
|
+
const u = ({
|
|
6
6
|
itemType: o,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
horizontal: m,
|
|
10
|
-
itemThumbnail: d = {},
|
|
11
|
-
itemPoster: a = {},
|
|
7
|
+
itemThumbnail: e = {},
|
|
8
|
+
itemPoster: n = {},
|
|
12
9
|
...s
|
|
13
|
-
}) {
|
|
14
|
-
var
|
|
15
|
-
const
|
|
16
|
-
return /* @__PURE__ */ r(i, { ...s, children:
|
|
17
|
-
}
|
|
10
|
+
}) => {
|
|
11
|
+
var t, d;
|
|
12
|
+
const a = ((d = (t = o == null ? void 0 : o.posters) == null ? void 0 : t.uri) == null ? void 0 : d.length) > 0;
|
|
13
|
+
return /* @__PURE__ */ r(i, { ...s, children: a ? /* @__PURE__ */ r(m, { itemType: o, backgroundSize: "cover", ...n }) : /* @__PURE__ */ r(l, { itemType: o, cover: !0, ...e }) });
|
|
14
|
+
};
|
|
15
|
+
u.defaultProps = {
|
|
16
|
+
itemType: void 0,
|
|
17
|
+
itemThumbnail: void 0,
|
|
18
|
+
itemPoster: void 0
|
|
19
|
+
};
|
|
18
20
|
export {
|
|
19
|
-
|
|
21
|
+
u as default
|
|
20
22
|
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { List as MuiList, ListSubheader as MuiListSubheader } from '@mui/material';
|
|
3
|
+
import type { ItemListType, ItemType } from '@vidispine/types';
|
|
4
|
+
import VdtItemListItem from '../ItemListItem';
|
|
5
|
+
import type { PropsFrom, WithOverrideProps } from '../../_types';
|
|
6
|
+
declare const StyledMuiList: typeof MuiList;
|
|
7
|
+
declare const defaultComponents: {
|
|
8
|
+
Root: typeof StyledMuiList;
|
|
9
|
+
ListSubheader: typeof MuiListSubheader;
|
|
10
|
+
ListItem: typeof VdtItemListItem;
|
|
11
|
+
};
|
|
12
|
+
export interface ItemListProps extends WithOverrideProps<typeof defaultComponents> {
|
|
13
|
+
/**
|
|
14
|
+
* The `ItemListType` to show in the list
|
|
15
|
+
*/
|
|
16
|
+
itemListType?: ItemListType;
|
|
17
|
+
/**
|
|
18
|
+
* Add a list header
|
|
19
|
+
*/
|
|
20
|
+
header?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Primary text for the list item
|
|
23
|
+
*
|
|
24
|
+
* Set to *field name* the value should be extracted from
|
|
25
|
+
* or set *function* which will get itemType as argument
|
|
26
|
+
*/
|
|
27
|
+
primary?: string | (({ itemType }: {
|
|
28
|
+
itemType: ItemType;
|
|
29
|
+
}) => string);
|
|
30
|
+
/**
|
|
31
|
+
* Secondary text for the list item
|
|
32
|
+
*
|
|
33
|
+
* Set to *field name* the value should be extracted from
|
|
34
|
+
* or set *function* which will get itemType as argument
|
|
35
|
+
*
|
|
36
|
+
* Defaults to undefined
|
|
37
|
+
*/
|
|
38
|
+
secondary?: string | (({ itemType }: {
|
|
39
|
+
itemType: ItemType;
|
|
40
|
+
}) => string);
|
|
41
|
+
/**
|
|
42
|
+
* Variant/shapes for the list item avatars
|
|
43
|
+
*/
|
|
44
|
+
avatarVariant?: 'circular' | 'rounded' | 'square';
|
|
45
|
+
/**
|
|
46
|
+
* If list should be displayed as dense
|
|
47
|
+
*/
|
|
48
|
+
dense?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Show skeleton list items as loading state
|
|
51
|
+
*/
|
|
52
|
+
isLoading?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* amount of list items to show when loading
|
|
55
|
+
*/
|
|
56
|
+
amountLoading?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Callback for ListItem click event
|
|
59
|
+
*
|
|
60
|
+
* Set to `undefined` to disable
|
|
61
|
+
*/
|
|
62
|
+
onListItemClick?: PropsFrom<typeof VdtItemListItem>['onClick'];
|
|
63
|
+
/**
|
|
64
|
+
* Callback for ListItem delete event
|
|
65
|
+
*
|
|
66
|
+
* Set to `undefined` to disable
|
|
67
|
+
*/
|
|
68
|
+
onListItemDelete?: PropsFrom<typeof VdtItemListItem>['onDelete'];
|
|
69
|
+
/**
|
|
70
|
+
* Shown when list is empty
|
|
71
|
+
*/
|
|
72
|
+
emptySlot?: () => JSX.Element;
|
|
73
|
+
}
|
|
74
|
+
declare const ItemList: React.FC<ItemListProps>;
|
|
75
|
+
export default ItemList;
|