@vidispine/vdt-mui 23.3.0-pre.2 → 23.3.0-pre.4
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,207 +1,72 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
placeholder: f,
|
|
16
|
-
helperText: l,
|
|
1
|
+
import { jsx as G } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as H } from "react";
|
|
3
|
+
import J from "@mui/material/TextField";
|
|
4
|
+
import K from "./components/MaskedInputComponent.js";
|
|
5
|
+
const N = {
|
|
6
|
+
Root: J,
|
|
7
|
+
InputComponent: K
|
|
8
|
+
}, O = ({
|
|
9
|
+
name: a,
|
|
10
|
+
label: p,
|
|
11
|
+
value: e,
|
|
12
|
+
defaultValue: n,
|
|
13
|
+
placeholder: m,
|
|
14
|
+
helperText: i,
|
|
17
15
|
error: t,
|
|
18
16
|
required: v,
|
|
19
|
-
disabled:
|
|
20
|
-
fullWidth:
|
|
21
|
-
multiline:
|
|
22
|
-
variant:
|
|
23
|
-
size:
|
|
24
|
-
min:
|
|
25
|
-
max:
|
|
26
|
-
mask:
|
|
27
|
-
focused:
|
|
28
|
-
definitions:
|
|
29
|
-
eager:
|
|
30
|
-
overwrite:
|
|
31
|
-
lazy:
|
|
32
|
-
onChange:
|
|
33
|
-
onBlur:
|
|
34
|
-
onFocus:
|
|
35
|
-
onClick:
|
|
36
|
-
components:
|
|
17
|
+
disabled: c,
|
|
18
|
+
fullWidth: f,
|
|
19
|
+
multiline: C,
|
|
20
|
+
variant: x,
|
|
21
|
+
size: I,
|
|
22
|
+
min: k,
|
|
23
|
+
max: h,
|
|
24
|
+
mask: T,
|
|
25
|
+
focused: b,
|
|
26
|
+
definitions: P,
|
|
27
|
+
eager: R,
|
|
28
|
+
overwrite: F,
|
|
29
|
+
lazy: M,
|
|
30
|
+
onChange: g,
|
|
31
|
+
onBlur: z,
|
|
32
|
+
onFocus: A,
|
|
33
|
+
onClick: L,
|
|
34
|
+
components: j,
|
|
37
35
|
componentsProps: o
|
|
38
|
-
}) {
|
|
39
|
-
var
|
|
36
|
+
}) => {
|
|
37
|
+
var l, d;
|
|
40
38
|
const {
|
|
41
|
-
Root:
|
|
42
|
-
InputComponent:
|
|
43
|
-
} =
|
|
39
|
+
Root: q,
|
|
40
|
+
InputComponent: w
|
|
41
|
+
} = j, r = H(e || n), y = e !== void 0 ? e : r.current, B = (W, _, D) => {
|
|
44
42
|
const {
|
|
45
|
-
_unmaskedValue:
|
|
46
|
-
} =
|
|
47
|
-
r.current =
|
|
48
|
-
value:
|
|
49
|
-
maskedValue:
|
|
43
|
+
_unmaskedValue: s
|
|
44
|
+
} = _;
|
|
45
|
+
r.current = s, g(D, {
|
|
46
|
+
value: s,
|
|
47
|
+
maskedValue: W
|
|
50
48
|
});
|
|
51
|
-
}, u = !!t,
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
-
inputComponent:
|
|
54
|
-
...((
|
|
49
|
+
}, u = !!t, E = (t || "").trim();
|
|
50
|
+
return /* @__PURE__ */ G(q, { name: a, label: p, value: y, defaultValue: n, helperText: (E || i) && u ? t : i, error: u, placeholder: m, required: v, disabled: c, fullWidth: f, multiline: C, variant: x, size: I, focused: b, autoComplete: "off", onFocus: A, onClick: L, onBlur: z, ...o.root, InputProps: {
|
|
51
|
+
inputComponent: w,
|
|
52
|
+
...((l = o.root) == null ? void 0 : l.InputProps) || {},
|
|
55
53
|
inputProps: {
|
|
56
|
-
mask:
|
|
57
|
-
min:
|
|
58
|
-
max:
|
|
59
|
-
definitions:
|
|
60
|
-
eager:
|
|
61
|
-
overwrite:
|
|
62
|
-
lazy:
|
|
63
|
-
onAccept:
|
|
54
|
+
mask: T,
|
|
55
|
+
min: k,
|
|
56
|
+
max: h,
|
|
57
|
+
definitions: P,
|
|
58
|
+
eager: R,
|
|
59
|
+
overwrite: F,
|
|
60
|
+
lazy: M,
|
|
61
|
+
onAccept: B,
|
|
64
62
|
...o.inputComponent
|
|
65
63
|
}
|
|
66
64
|
}, InputLabelProps: {
|
|
67
65
|
shrink: !0,
|
|
68
|
-
...((
|
|
66
|
+
...((d = o.root) == null ? void 0 : d.InputLabelProps) || {}
|
|
69
67
|
} });
|
|
70
|
-
}
|
|
71
|
-
p.propTypes = {
|
|
72
|
-
/**
|
|
73
|
-
* Name for input
|
|
74
|
-
*/
|
|
75
|
-
name: e.string,
|
|
76
|
-
/**
|
|
77
|
-
* Label for input
|
|
78
|
-
*/
|
|
79
|
-
label: e.string,
|
|
80
|
-
/**
|
|
81
|
-
* Value of input
|
|
82
|
-
*/
|
|
83
|
-
value: e.string,
|
|
84
|
-
/**
|
|
85
|
-
* Default value of input (use if uncontrolled)
|
|
86
|
-
*/
|
|
87
|
-
defaultValue: e.string,
|
|
88
|
-
/**
|
|
89
|
-
* Help text underneath input
|
|
90
|
-
*/
|
|
91
|
-
helperText: e.string,
|
|
92
|
-
/**
|
|
93
|
-
* Placeholder for input field
|
|
94
|
-
*/
|
|
95
|
-
placeholder: e.string,
|
|
96
|
-
/**
|
|
97
|
-
* An error message to display underneath input component
|
|
98
|
-
*/
|
|
99
|
-
error: e.string,
|
|
100
|
-
/**
|
|
101
|
-
* Set if required
|
|
102
|
-
*/
|
|
103
|
-
required: e.bool,
|
|
104
|
-
/**
|
|
105
|
-
* Set if disabled
|
|
106
|
-
*/
|
|
107
|
-
disabled: e.bool,
|
|
108
|
-
/**
|
|
109
|
-
* Set if input should be full width
|
|
110
|
-
*/
|
|
111
|
-
fullWidth: e.bool,
|
|
112
|
-
/**
|
|
113
|
-
* Set if multiline (use text area)
|
|
114
|
-
*/
|
|
115
|
-
multiline: e.bool,
|
|
116
|
-
/**
|
|
117
|
-
* Set variant of input
|
|
118
|
-
*/
|
|
119
|
-
variant: e.oneOf(["outlined", "filled", "standard"]),
|
|
120
|
-
/**
|
|
121
|
-
* Set size of input
|
|
122
|
-
*/
|
|
123
|
-
size: e.oneOf(["medium", "small"]),
|
|
124
|
-
/**
|
|
125
|
-
* Set min value for input
|
|
126
|
-
*
|
|
127
|
-
* Defaults to `1900-01-01` if `Date` type
|
|
128
|
-
*/
|
|
129
|
-
min: e.oneOfType([e.string, e.number]),
|
|
130
|
-
/**
|
|
131
|
-
* Set max value for input
|
|
132
|
-
*
|
|
133
|
-
* Defaults to `9999-01-01` if `Date` type
|
|
134
|
-
*/
|
|
135
|
-
max: e.oneOfType([e.string, e.number]),
|
|
136
|
-
/**
|
|
137
|
-
* Set focused state for input
|
|
138
|
-
*/
|
|
139
|
-
focused: e.bool,
|
|
140
|
-
/**
|
|
141
|
-
* The `react-imask` mask to use for the text input
|
|
142
|
-
*
|
|
143
|
-
* Default definitions are:
|
|
144
|
-
* - `0` any digit
|
|
145
|
-
* - `a` any letter
|
|
146
|
-
* - `*` any char
|
|
147
|
-
* - `[]` make input optional
|
|
148
|
-
* - `{}` include fixed part in unmasked value
|
|
149
|
-
* - `` ` `` prevent symbols shift back
|
|
150
|
-
* - `\` Escape definitions to treat as fixed value
|
|
151
|
-
*/
|
|
152
|
-
mask: e.oneOfType([e.instanceOf(Date), e.instanceOf(Number), e.instanceOf(Object), e.string]),
|
|
153
|
-
/**
|
|
154
|
-
* Automatically add characters without definitions
|
|
155
|
-
*/
|
|
156
|
-
eager: e.bool,
|
|
157
|
-
/**
|
|
158
|
-
* Overwrite value from the current position
|
|
159
|
-
*/
|
|
160
|
-
overwrite: e.bool,
|
|
161
|
-
/**
|
|
162
|
-
* Set false to show mask pattern/format as placeholder
|
|
163
|
-
*/
|
|
164
|
-
lazy: e.bool,
|
|
165
|
-
/**
|
|
166
|
-
* The `react-imask` definitions for mask characters valid regexp
|
|
167
|
-
*
|
|
168
|
-
* Note: If definition character should be treated as fixed escape with "\\" (e.g. "\\0")
|
|
169
|
-
*/
|
|
170
|
-
definitions: e.instanceOf(Object),
|
|
171
|
-
// Callbacks
|
|
172
|
-
/**
|
|
173
|
-
* Callback when text field value changed
|
|
174
|
-
*/
|
|
175
|
-
onChange: e.func,
|
|
176
|
-
/**
|
|
177
|
-
* Callback when input is blurred
|
|
178
|
-
*/
|
|
179
|
-
onBlur: e.func,
|
|
180
|
-
/**
|
|
181
|
-
* Callback when input is focused
|
|
182
|
-
*/
|
|
183
|
-
onFocus: e.func,
|
|
184
|
-
/**
|
|
185
|
-
* Callback when input is clicked on
|
|
186
|
-
*/
|
|
187
|
-
onClick: e.func,
|
|
188
|
-
// Overrides
|
|
189
|
-
/**
|
|
190
|
-
* Replace internal components
|
|
191
|
-
*/
|
|
192
|
-
components: e.shape({
|
|
193
|
-
Root: e.elementType,
|
|
194
|
-
InputComponent: e.elementType
|
|
195
|
-
}),
|
|
196
|
-
/**
|
|
197
|
-
* Add internal component props
|
|
198
|
-
*/
|
|
199
|
-
componentsProps: e.shape({
|
|
200
|
-
root: e.instanceOf(Object),
|
|
201
|
-
inputComponent: e.instanceOf(Object)
|
|
202
|
-
})
|
|
203
68
|
};
|
|
204
|
-
|
|
69
|
+
O.defaultProps = {
|
|
205
70
|
name: void 0,
|
|
206
71
|
label: void 0,
|
|
207
72
|
value: void 0,
|
|
@@ -227,9 +92,9 @@ p.defaultProps = {
|
|
|
227
92
|
onBlur: () => null,
|
|
228
93
|
onFocus: () => null,
|
|
229
94
|
onClick: () => null,
|
|
230
|
-
components:
|
|
95
|
+
components: N,
|
|
231
96
|
componentsProps: void 0
|
|
232
97
|
};
|
|
233
98
|
export {
|
|
234
|
-
|
|
99
|
+
O as default
|
|
235
100
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import { IMaskInput } from 'react-imask';
|
|
4
|
+
import { PropsFrom } from '../../../_types';
|
|
5
|
+
import type { IMask } from 'react-imask';
|
|
6
|
+
export type IMaskDefinitions = (typeof IMask.MaskedPattern)['prototype']['definitions'];
|
|
7
|
+
export type IMaskLazy = (typeof IMask.MaskedPattern)['prototype']['lazy'];
|
|
8
|
+
export type MaskedInputProps = PropsFrom<typeof IMaskInput> & {
|
|
9
|
+
definitions?: IMaskDefinitions;
|
|
10
|
+
lazy?: IMaskLazy;
|
|
11
|
+
};
|
|
12
|
+
declare const MaskedInput: ForwardRefExoticComponent<{
|
|
13
|
+
definitions?: any;
|
|
14
|
+
lazy?: any;
|
|
15
|
+
} & RefAttributes<unknown>>;
|
|
16
|
+
export default MaskedInput;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { IMaskInput as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import { IMaskInput as f } from "react-imask";
|
|
4
|
+
const i = n((o, t) => {
|
|
5
5
|
const {
|
|
6
|
-
onChange:
|
|
6
|
+
onChange: s,
|
|
7
7
|
...r
|
|
8
8
|
} = o;
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ e(f, { inputRef: t, ...r });
|
|
10
10
|
});
|
|
11
|
+
i.defaultProps = {
|
|
12
|
+
definitions: void 0,
|
|
13
|
+
lazy: void 0
|
|
14
|
+
};
|
|
11
15
|
export {
|
|
12
|
-
|
|
16
|
+
i as default
|
|
13
17
|
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TextField as MuiTextField } from '@mui/material';
|
|
3
|
+
import type { WithOverrideProps } from '../../_types';
|
|
4
|
+
declare const defaultComponents: {
|
|
5
|
+
Root: typeof MuiTextField;
|
|
6
|
+
};
|
|
7
|
+
export interface NumberInputProps extends WithOverrideProps<typeof defaultComponents> {
|
|
8
|
+
/**
|
|
9
|
+
* Name for input
|
|
10
|
+
*/
|
|
11
|
+
name?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Label for input
|
|
14
|
+
*/
|
|
15
|
+
label?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Value of input
|
|
18
|
+
*
|
|
19
|
+
* Set `''` for undefined (but controlled)
|
|
20
|
+
*/
|
|
21
|
+
value?: number | string;
|
|
22
|
+
/**
|
|
23
|
+
* Default value of input (use if uncontrolled)
|
|
24
|
+
*/
|
|
25
|
+
defaultValue?: number | string;
|
|
26
|
+
/**
|
|
27
|
+
* Help text underneath input
|
|
28
|
+
*/
|
|
29
|
+
helperText?: string;
|
|
30
|
+
/**
|
|
31
|
+
* An error message to display underneath input component
|
|
32
|
+
*/
|
|
33
|
+
error?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Set if required
|
|
36
|
+
*/
|
|
37
|
+
required?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Set if disabled
|
|
40
|
+
*/
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Set if input should be full width
|
|
44
|
+
*/
|
|
45
|
+
fullWidth?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Set variant of input
|
|
48
|
+
*/
|
|
49
|
+
variant?: 'outlined' | 'filled' | 'standard';
|
|
50
|
+
/**
|
|
51
|
+
* Set size of input
|
|
52
|
+
*/
|
|
53
|
+
size?: 'medium' | 'small';
|
|
54
|
+
/**
|
|
55
|
+
* Callback when value changed
|
|
56
|
+
*/
|
|
57
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>, payload: {
|
|
58
|
+
value: string | number;
|
|
59
|
+
}) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Callback when input is blurred
|
|
62
|
+
*/
|
|
63
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
64
|
+
/**
|
|
65
|
+
* Callback when input is focused
|
|
66
|
+
*/
|
|
67
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
68
|
+
}
|
|
69
|
+
declare const NumberInput: React.FC<NumberInputProps>;
|
|
70
|
+
export default NumberInput;
|
|
@@ -1,117 +1,41 @@
|
|
|
1
1
|
import { jsx as j } from "react/jsx-runtime";
|
|
2
|
-
import o from "prop-types";
|
|
3
2
|
import q from "@mui/material/TextField";
|
|
4
|
-
const
|
|
3
|
+
const w = {
|
|
5
4
|
Root: q
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
onBlur: T,
|
|
5
|
+
}, y = ({
|
|
6
|
+
name: e,
|
|
7
|
+
label: u,
|
|
8
|
+
value: n,
|
|
9
|
+
defaultValue: s,
|
|
10
|
+
helperText: r,
|
|
11
|
+
error: t,
|
|
12
|
+
required: m,
|
|
13
|
+
disabled: v,
|
|
14
|
+
fullWidth: c,
|
|
15
|
+
variant: f,
|
|
16
|
+
size: p,
|
|
17
|
+
onChange: g,
|
|
18
|
+
onBlur: h,
|
|
21
19
|
onFocus: x,
|
|
22
20
|
components: C,
|
|
23
|
-
componentsProps:
|
|
24
|
-
}) {
|
|
21
|
+
componentsProps: b
|
|
22
|
+
}) => {
|
|
25
23
|
const {
|
|
26
|
-
Root:
|
|
27
|
-
} = C, F = (
|
|
28
|
-
var a,
|
|
29
|
-
const V = ["", void 0].includes((a =
|
|
30
|
-
|
|
24
|
+
Root: T
|
|
25
|
+
} = C, F = (o) => {
|
|
26
|
+
var a, d, i;
|
|
27
|
+
const V = ["", void 0].includes((a = o == null ? void 0 : o.target) == null ? void 0 : a.value) ? (d = o == null ? void 0 : o.target) == null ? void 0 : d.value : Number((i = o == null ? void 0 : o.target) == null ? void 0 : i.value);
|
|
28
|
+
g(o, {
|
|
31
29
|
value: V
|
|
32
30
|
});
|
|
33
|
-
}, P =
|
|
34
|
-
return /* @__PURE__ */ j(
|
|
35
|
-
value:
|
|
31
|
+
}, P = n !== void 0, l = !!t, R = (t || "").trim();
|
|
32
|
+
return /* @__PURE__ */ j(T, { id: e, name: e, label: u, ...P ? {
|
|
33
|
+
value: n
|
|
36
34
|
} : {
|
|
37
|
-
defaultValue:
|
|
38
|
-
}, helperText: (R ||
|
|
39
|
-
}
|
|
40
|
-
d.propTypes = {
|
|
41
|
-
/**
|
|
42
|
-
* Name for input
|
|
43
|
-
*/
|
|
44
|
-
name: o.string,
|
|
45
|
-
/**
|
|
46
|
-
* Label for input
|
|
47
|
-
*/
|
|
48
|
-
label: o.string,
|
|
49
|
-
/**
|
|
50
|
-
* Value of input
|
|
51
|
-
*
|
|
52
|
-
* Set `''` for undefined (but controlled)
|
|
53
|
-
*/
|
|
54
|
-
value: o.oneOfType([o.number, o.string]),
|
|
55
|
-
/**
|
|
56
|
-
* Default value of input (use if uncontrolled)
|
|
57
|
-
*/
|
|
58
|
-
defaultValue: o.number,
|
|
59
|
-
/**
|
|
60
|
-
* Help text underneath input
|
|
61
|
-
*/
|
|
62
|
-
helperText: o.string,
|
|
63
|
-
/**
|
|
64
|
-
* An error message to display underneath input component
|
|
65
|
-
*/
|
|
66
|
-
error: o.string,
|
|
67
|
-
/**
|
|
68
|
-
* Set if required
|
|
69
|
-
*/
|
|
70
|
-
required: o.bool,
|
|
71
|
-
/**
|
|
72
|
-
* Set if disabled
|
|
73
|
-
*/
|
|
74
|
-
disabled: o.bool,
|
|
75
|
-
/**
|
|
76
|
-
* Set if input should be full width
|
|
77
|
-
*/
|
|
78
|
-
fullWidth: o.bool,
|
|
79
|
-
/**
|
|
80
|
-
* Set variant of input
|
|
81
|
-
*/
|
|
82
|
-
variant: o.oneOf(["outlined", "filled", "standard"]),
|
|
83
|
-
/**
|
|
84
|
-
* Set size of input
|
|
85
|
-
*/
|
|
86
|
-
size: o.oneOf(["medium", "small"]),
|
|
87
|
-
// Callbacks
|
|
88
|
-
/**
|
|
89
|
-
* Callback when value changed
|
|
90
|
-
*/
|
|
91
|
-
onChange: o.func,
|
|
92
|
-
/**
|
|
93
|
-
* Callback when input is blurred
|
|
94
|
-
*/
|
|
95
|
-
onBlur: o.func,
|
|
96
|
-
/**
|
|
97
|
-
* Callback when input is focused
|
|
98
|
-
*/
|
|
99
|
-
onFocus: o.func,
|
|
100
|
-
// Overrides
|
|
101
|
-
/**
|
|
102
|
-
* Replace internal components
|
|
103
|
-
*/
|
|
104
|
-
components: o.shape({
|
|
105
|
-
Root: o.elementType
|
|
106
|
-
}),
|
|
107
|
-
/**
|
|
108
|
-
* Add internal component props
|
|
109
|
-
*/
|
|
110
|
-
componentsProps: o.shape({
|
|
111
|
-
root: o.instanceOf(Object)
|
|
112
|
-
})
|
|
35
|
+
defaultValue: s
|
|
36
|
+
}, helperText: (R || r) && l ? t : r, error: l, required: m, disabled: v, fullWidth: c, variant: f, size: p, type: "number", autoComplete: "off", onChange: F, onBlur: h, onFocus: x, ...b.root });
|
|
113
37
|
};
|
|
114
|
-
|
|
38
|
+
y.defaultProps = {
|
|
115
39
|
name: void 0,
|
|
116
40
|
label: void 0,
|
|
117
41
|
value: void 0,
|
|
@@ -126,9 +50,9 @@ d.defaultProps = {
|
|
|
126
50
|
onChange: () => null,
|
|
127
51
|
onBlur: void 0,
|
|
128
52
|
onFocus: void 0,
|
|
129
|
-
components:
|
|
53
|
+
components: w,
|
|
130
54
|
componentsProps: void 0
|
|
131
55
|
};
|
|
132
56
|
export {
|
|
133
|
-
|
|
57
|
+
y as default
|
|
134
58
|
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormControl as MuiFormControl, FormHelperText as MuiFormHelperText, InputLabel as MuiInputLabel, OutlinedInput as MuiOutlinedInput, FilledInput as MuiFilledInput, Input as MuiInput, Radio as MuiRadio } from '@mui/material';
|
|
3
|
+
import VdtFormControlLabel from '../_components/FormControlLabel';
|
|
4
|
+
import VdtRadioGroup from './components/RadioGroup';
|
|
5
|
+
import type { StyledComponent, WithOverrideProps } from '../../_types';
|
|
6
|
+
declare const StyledMuiOutlinedInput: StyledComponent<typeof MuiOutlinedInput>;
|
|
7
|
+
declare const StyledMuiFilledInput: StyledComponent<typeof MuiFilledInput>;
|
|
8
|
+
declare const StyledMuiInput: StyledComponent<typeof MuiInput>;
|
|
9
|
+
declare const StyledMuiInputLabel: typeof MuiInputLabel;
|
|
10
|
+
declare const defaultComponents: {
|
|
11
|
+
Root: typeof MuiFormControl;
|
|
12
|
+
FormHelperText: typeof MuiFormHelperText;
|
|
13
|
+
InputLabel: typeof StyledMuiInputLabel;
|
|
14
|
+
Input: typeof StyledMuiInput;
|
|
15
|
+
FilledInput: typeof StyledMuiFilledInput;
|
|
16
|
+
OutlinedInput: typeof StyledMuiOutlinedInput;
|
|
17
|
+
RadioGroup: typeof VdtRadioGroup;
|
|
18
|
+
FormControlLabel: typeof VdtFormControlLabel;
|
|
19
|
+
Radio: typeof MuiRadio;
|
|
20
|
+
};
|
|
21
|
+
export interface RadioGroupInputProps extends WithOverrideProps<typeof defaultComponents> {
|
|
22
|
+
/**
|
|
23
|
+
* Name of input
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Label of input
|
|
28
|
+
*/
|
|
29
|
+
label?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Value of input
|
|
32
|
+
*/
|
|
33
|
+
value?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Default value of input (use if uncontrolled)
|
|
36
|
+
*/
|
|
37
|
+
defaultValue?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Options for input
|
|
40
|
+
*/
|
|
41
|
+
options?: {
|
|
42
|
+
value: string;
|
|
43
|
+
name?: string;
|
|
44
|
+
label?: string;
|
|
45
|
+
count?: string | number;
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
}[];
|
|
48
|
+
/**
|
|
49
|
+
* Help text underneath input
|
|
50
|
+
*/
|
|
51
|
+
helperText?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Error to display underneath input (overrides `helperText`)
|
|
54
|
+
*/
|
|
55
|
+
error?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Set if required
|
|
58
|
+
*/
|
|
59
|
+
required?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Set if disabled
|
|
62
|
+
*/
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Set if input should be full width
|
|
66
|
+
*/
|
|
67
|
+
fullWidth?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Set direction inputs should be aligned
|
|
70
|
+
*/
|
|
71
|
+
orientation?: 'horizontal' | 'vertical';
|
|
72
|
+
/**
|
|
73
|
+
* Radio label placement
|
|
74
|
+
*/
|
|
75
|
+
labelPlacement?: 'end' | 'start' | 'bottom' | 'top';
|
|
76
|
+
/**
|
|
77
|
+
* Alignment of inputs
|
|
78
|
+
*
|
|
79
|
+
* Only used when `orientation:horizontal`
|
|
80
|
+
*/
|
|
81
|
+
justifyContent?: 'flex-start' | 'center' | 'space-around' | 'space-evenly' | 'space-between' | 'flex-end';
|
|
82
|
+
/**
|
|
83
|
+
* Set variant of input
|
|
84
|
+
*/
|
|
85
|
+
variant?: 'outlined' | 'filled' | 'standard';
|
|
86
|
+
/**
|
|
87
|
+
* Set size of input
|
|
88
|
+
*/
|
|
89
|
+
size?: 'medium' | 'small';
|
|
90
|
+
/**
|
|
91
|
+
* Callback when value changed
|
|
92
|
+
*/
|
|
93
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: {
|
|
94
|
+
value: string;
|
|
95
|
+
}) => void;
|
|
96
|
+
/**
|
|
97
|
+
* Callback when input is blurred
|
|
98
|
+
*/
|
|
99
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
100
|
+
/**
|
|
101
|
+
* Callback when input is focused
|
|
102
|
+
*/
|
|
103
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
104
|
+
}
|
|
105
|
+
declare const RadioGroupInput: React.FC<RadioGroupInputProps>;
|
|
106
|
+
export default RadioGroupInput;
|