@vidispine/vdt-mui 23.3.0-pre.1 → 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.
Files changed (398) hide show
  1. package/dist/cjs/_utils/generateBadges.js +1 -1
  2. package/dist/cjs/_utils/isDefinedValue.js +1 -1
  3. package/dist/cjs/_utils/showSlot.js +1 -1
  4. package/dist/cjs/collection/CollectionCard/CollectionCard.js +1 -1
  5. package/dist/cjs/collection/CollectionCard/components/CollectionCardMedia.js +1 -1
  6. package/dist/cjs/collection/CollectionCard/index.js +1 -1
  7. package/dist/cjs/collection/CollectionList/CollectionList.js +1 -1
  8. package/dist/cjs/collection/CollectionList/index.js +1 -1
  9. package/dist/cjs/collection/CollectionListItem/CollectionListItem.js +1 -1
  10. package/dist/cjs/collection/CollectionListItem/index.js +1 -1
  11. package/dist/cjs/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +1 -1
  12. package/dist/cjs/collection/CollectionRepresentativeThumbnail/index.js +1 -1
  13. package/dist/cjs/entity/EntityAvatar/EntityAvatar.js +1 -1
  14. package/dist/cjs/entity/EntityAvatar/index.js +1 -1
  15. package/dist/cjs/entity/EntityCard/_components/Typography.js +1 -0
  16. package/dist/cjs/entity/EntityCard/components/EntityCardActions.js +1 -1
  17. package/dist/cjs/entity/EntityCard/components/EntityCardBase.js +1 -1
  18. package/dist/cjs/entity/EntityCard/components/EntityCardContent.js +1 -1
  19. package/dist/cjs/entity/EntityCard/components/EntityCardHeader.js +1 -1
  20. package/dist/cjs/entity/EntityIcon/EntityIcon.js +1 -1
  21. package/dist/cjs/entity/EntityIcon/index.js +1 -1
  22. package/dist/cjs/entity/EntityList/EntityList.js +1 -1
  23. package/dist/cjs/entity/EntityList/index.js +1 -1
  24. package/dist/cjs/entity/EntityListItem/components/EntityListItemAvatar.js +1 -1
  25. package/dist/cjs/entity/EntityListItem/components/EntityListItemButton.js +1 -1
  26. package/dist/cjs/entity/EntityListItem/components/EntityListItemSecondaryAction.js +1 -1
  27. package/dist/cjs/entity/EntityListItem/components/EntityListItemText.js +1 -1
  28. package/dist/cjs/entity/EntityTableRow/components/EntityTableCellAvatar.js +1 -1
  29. package/dist/cjs/entity/EntityTableRow/components/EntityTableCellCheckbox.js +1 -1
  30. package/dist/cjs/entity/_utils/getEntityText.js +1 -1
  31. package/dist/cjs/general/AvatarMenu/AvatarMenu.js +1 -1
  32. package/dist/cjs/general/AvatarMenu/components/Avatar.js +1 -1
  33. package/dist/cjs/general/AvatarMenu/components/MenuItem.js +1 -1
  34. package/dist/cjs/general/AvatarMenu/index.js +1 -1
  35. package/dist/cjs/general/BlurredBackground/BlurredBackground.js +1 -1
  36. package/dist/cjs/general/BlurredBackground/index.js +1 -1
  37. package/dist/cjs/general/CalendarPicker/CalendarPicker.js +1 -1
  38. package/dist/cjs/general/CalendarPicker/components/PickersDay.js +1 -1
  39. package/dist/cjs/general/CalendarPicker/index.js +1 -1
  40. package/dist/cjs/general/CompactBadge/CompactBadge.js +1 -1
  41. package/dist/cjs/general/CompactBadge/index.js +1 -1
  42. package/dist/cjs/general/CompactLabel/CompactLabel.js +1 -1
  43. package/dist/cjs/general/CompactLabel/index.js +1 -1
  44. package/dist/cjs/general/CornerLabelPlacer/CornerLabelPlacer.js +1 -1
  45. package/dist/cjs/general/CornerLabelPlacer/index.js +1 -1
  46. package/dist/cjs/general/ExpandButton/ExpandButton.js +1 -1
  47. package/dist/cjs/general/ExpandButton/index.js +1 -1
  48. package/dist/cjs/general/Form/Form.js +1 -1
  49. package/dist/cjs/general/Form/index.js +1 -1
  50. package/dist/cjs/general/ImageCollage/ImageCollage.js +1 -1
  51. package/dist/cjs/general/ImageCollage/index.js +1 -1
  52. package/dist/cjs/general/MediaIcon/MediaIcon.js +1 -1
  53. package/dist/cjs/general/MenuItem/MenuItem.js +1 -1
  54. package/dist/cjs/general/MenuItem/index.js +1 -1
  55. package/dist/cjs/general/ScrubLine/ScrubLine.js +1 -1
  56. package/dist/cjs/general/ScrubLine/index.js +1 -1
  57. package/dist/cjs/general/Sort/Sort.js +1 -1
  58. package/dist/cjs/general/Sort/components/ButtonBase.js +1 -1
  59. package/dist/cjs/general/Sort/components/MenuItem.js +1 -1
  60. package/dist/cjs/general/Sort/index.js +1 -1
  61. package/dist/cjs/general/TablePagination/TablePagination.js +1 -1
  62. package/dist/cjs/general/TablePagination/index.js +1 -1
  63. package/dist/cjs/general/ThemeContext/ThemeContext.js +1 -1
  64. package/dist/cjs/index.js +1 -0
  65. package/dist/cjs/inputs/BasicDateTimeInput/BasicDateTimeInput.js +1 -1
  66. package/dist/cjs/inputs/BasicDateTimeInput/index.js +1 -1
  67. package/dist/cjs/inputs/BooleanInput/BooleanInput.js +1 -1
  68. package/dist/cjs/inputs/BooleanInput/index.js +1 -1
  69. package/dist/cjs/inputs/CheckboxGroupInput/CheckboxGroupInput.js +1 -1
  70. package/dist/cjs/inputs/CheckboxGroupInput/components/CheckboxGroup.js +1 -1
  71. package/dist/cjs/inputs/CheckboxGroupInput/index.js +1 -1
  72. package/dist/cjs/inputs/DateRangeInput/DateRangeInput.js +1 -1
  73. package/dist/cjs/inputs/DateRangeInput/index.js +1 -1
  74. package/dist/cjs/inputs/DateRangeInput/utils/valueManagers.js +1 -0
  75. package/dist/cjs/inputs/DateTimeInput/DateTimeInput.js +1 -1
  76. package/dist/cjs/inputs/DateTimeInput/index.js +1 -1
  77. package/dist/cjs/inputs/MaskedTextInput/MaskedTextInput.js +1 -1
  78. package/dist/cjs/inputs/MaskedTextInput/components/MaskedInputComponent.js +1 -1
  79. package/dist/cjs/inputs/MaskedTextInput/index.js +1 -1
  80. package/dist/cjs/inputs/NumberInput/NumberInput.js +1 -1
  81. package/dist/cjs/inputs/NumberInput/index.js +1 -1
  82. package/dist/cjs/inputs/RadioGroupInput/RadioGroupInput.js +1 -1
  83. package/dist/cjs/inputs/RadioGroupInput/components/RadioGroup.js +1 -1
  84. package/dist/cjs/inputs/RadioGroupInput/index.js +1 -1
  85. package/dist/cjs/inputs/SelectInput/SelectInput.js +1 -1
  86. package/dist/cjs/inputs/SelectInput/index.js +1 -1
  87. package/dist/cjs/inputs/SliderInput/SliderInput.js +1 -1
  88. package/dist/cjs/inputs/SliderInput/components/Slider.js +1 -1
  89. package/dist/cjs/inputs/SliderInput/index.js +1 -1
  90. package/dist/cjs/inputs/TagInput/TagInput.js +1 -1
  91. package/dist/cjs/inputs/TagInput/index.js +1 -1
  92. package/dist/cjs/inputs/TextInput/TextInput.js +1 -1
  93. package/dist/cjs/inputs/TextInput/index.js +1 -1
  94. package/dist/cjs/inputs/_components/FormControlLabel.js +1 -1
  95. package/dist/cjs/inputs/_components/MenuItem.js +1 -1
  96. package/dist/cjs/item/ItemCard/ItemCard.js +1 -1
  97. package/dist/cjs/item/ItemCard/components/ItemCardMedia.js +1 -1
  98. package/dist/cjs/item/ItemCard/index.js +1 -1
  99. package/dist/cjs/item/ItemList/ItemList.js +1 -1
  100. package/dist/cjs/item/ItemList/index.js +1 -1
  101. package/dist/cjs/item/ItemListItem/ItemListItem.js +1 -1
  102. package/dist/cjs/item/ItemListItem/index.js +1 -1
  103. package/dist/cjs/item/ItemPoster/ItemPoster.js +1 -1
  104. package/dist/cjs/item/ItemPoster/index.js +1 -1
  105. package/dist/cjs/item/ItemPosterList/ItemPosterList.js +1 -1
  106. package/dist/cjs/item/ItemPosterList/index.js +1 -1
  107. package/dist/cjs/item/ItemPosterViewer/ItemPosterViewer.js +1 -1
  108. package/dist/cjs/item/ItemPosterViewer/components/Toolbar.js +1 -1
  109. package/dist/cjs/item/ItemPosterViewer/index.js +1 -1
  110. package/dist/cjs/item/ItemTable/ItemTable.js +1 -1
  111. package/dist/cjs/item/ItemTable/components/ItemTableHead.js +1 -1
  112. package/dist/cjs/item/ItemTable/index.js +1 -1
  113. package/dist/cjs/item/ItemTableRow/ItemTableRow.js +1 -1
  114. package/dist/cjs/item/ItemTableRow/index.js +1 -1
  115. package/dist/cjs/item/ItemThumbnail/ItemThumbnail.js +1 -1
  116. package/dist/cjs/item/ItemThumbnail/index.js +1 -1
  117. package/dist/cjs/search/SearchFilterForm/SearchFilterForm.js +1 -1
  118. package/dist/cjs/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +1 -1
  119. package/dist/cjs/search/SearchFilterForm/index.js +1 -1
  120. package/dist/cjs/search/SearchFilterForm/utils/mapValuesToFilter.js +1 -1
  121. package/dist/cjs/shape/ShapeMediaBadges/ShapeMediaBadges.js +1 -1
  122. package/dist/cjs/shape/ShapeMediaBadges/index.js +1 -1
  123. package/dist/cjs/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +1 -1
  124. package/dist/cjs/transcode/TranscodePresetMediaBadges/index.js +1 -1
  125. package/dist/es/_consts/ENTITY_TYPES.d.ts +6 -0
  126. package/dist/es/_consts/index.d.ts +1 -0
  127. package/dist/es/_types.d.ts +21 -0
  128. package/dist/es/_utils/generateBadges.d.ts +2 -0
  129. package/dist/es/_utils/generateBadges.js +23 -22
  130. package/dist/es/_utils/index.d.ts +6 -0
  131. package/dist/es/_utils/isDefinedValue.d.ts +3 -0
  132. package/dist/es/_utils/isDefinedValue.js +2 -2
  133. package/dist/es/_utils/omit.d.ts +3 -0
  134. package/dist/es/_utils/showSlot.d.ts +1 -0
  135. package/dist/es/_utils/showSlot.js +2 -2
  136. package/dist/es/_utils/uuidv4.d.ts +1 -0
  137. package/dist/es/_utils/uuidv4.js +7 -4
  138. package/dist/es/_utils/withOverrides.d.ts +8 -0
  139. package/dist/es/collection/CollectionCard/CollectionCard.d.ts +165 -0
  140. package/dist/es/collection/CollectionCard/CollectionCard.js +92 -226
  141. package/dist/es/collection/CollectionCard/components/CollectionCardMedia.d.ts +11 -0
  142. package/dist/es/collection/CollectionCard/components/CollectionCardMedia.js +14 -11
  143. package/dist/es/collection/CollectionCard/index.d.ts +3 -0
  144. package/dist/es/collection/CollectionCard/index.js +1 -1
  145. package/dist/es/collection/CollectionList/CollectionList.d.ts +75 -0
  146. package/dist/es/collection/CollectionList/CollectionList.js +43 -128
  147. package/dist/es/collection/CollectionList/index.d.ts +3 -0
  148. package/dist/es/collection/CollectionList/index.js +1 -1
  149. package/dist/es/collection/CollectionListItem/CollectionListItem.d.ts +67 -0
  150. package/dist/es/collection/CollectionListItem/CollectionListItem.js +37 -107
  151. package/dist/es/collection/CollectionListItem/index.d.ts +3 -0
  152. package/dist/es/collection/CollectionListItem/index.js +1 -1
  153. package/dist/es/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.d.ts +46 -0
  154. package/dist/es/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +55 -112
  155. package/dist/es/collection/CollectionRepresentativeThumbnail/index.d.ts +3 -0
  156. package/dist/es/collection/CollectionRepresentativeThumbnail/index.js +6 -6
  157. package/dist/es/collection/index.d.ts +4 -0
  158. package/dist/es/entity/EntityAvatar/EntityAvatar.d.ts +39 -0
  159. package/dist/es/entity/EntityAvatar/EntityAvatar.js +43 -86
  160. package/dist/es/entity/EntityAvatar/index.d.ts +3 -0
  161. package/dist/es/entity/EntityAvatar/index.js +1 -1
  162. package/dist/es/entity/EntityCard/_components/Typography.d.ts +7 -0
  163. package/dist/es/entity/EntityCard/_components/Typography.js +15 -0
  164. package/dist/es/entity/EntityCard/components/EntityCardActions.d.ts +30 -0
  165. package/dist/es/entity/EntityCard/components/EntityCardActions.js +35 -28
  166. package/dist/es/entity/EntityCard/components/EntityCardBase.d.ts +7 -0
  167. package/dist/es/entity/EntityCard/components/EntityCardBase.js +9 -11
  168. package/dist/es/entity/EntityCard/components/EntityCardContent.d.ts +15 -0
  169. package/dist/es/entity/EntityCard/components/EntityCardContent.js +33 -31
  170. package/dist/es/entity/EntityCard/components/EntityCardHeader.d.ts +29 -0
  171. package/dist/es/entity/EntityCard/components/EntityCardHeader.js +37 -38
  172. package/dist/es/entity/EntityIcon/EntityIcon.d.ts +27 -0
  173. package/dist/es/entity/EntityIcon/EntityIcon.js +49 -83
  174. package/dist/es/entity/EntityIcon/index.d.ts +3 -0
  175. package/dist/es/entity/EntityIcon/index.js +1 -1
  176. package/dist/es/entity/EntityList/EntityList.d.ts +93 -0
  177. package/dist/es/entity/EntityList/EntityList.js +75 -170
  178. package/dist/es/entity/EntityList/index.d.ts +3 -0
  179. package/dist/es/entity/EntityList/index.js +1 -1
  180. package/dist/es/entity/EntityListItem/components/EntityListItemAvatar.d.ts +14 -0
  181. package/dist/es/entity/EntityListItem/components/EntityListItemAvatar.js +14 -13
  182. package/dist/es/entity/EntityListItem/components/EntityListItemButton.d.ts +12 -0
  183. package/dist/es/entity/EntityListItem/components/EntityListItemButton.js +14 -13
  184. package/dist/es/entity/EntityListItem/components/EntityListItemSecondaryAction.d.ts +12 -0
  185. package/dist/es/entity/EntityListItem/components/EntityListItemSecondaryAction.js +15 -19
  186. package/dist/es/entity/EntityListItem/components/EntityListItemText.d.ts +13 -0
  187. package/dist/es/entity/EntityListItem/components/EntityListItemText.js +20 -21
  188. package/dist/es/entity/EntityTableRow/components/EntityTableCellAvatar.d.ts +14 -0
  189. package/dist/es/entity/EntityTableRow/components/EntityTableCellAvatar.js +13 -12
  190. package/dist/es/entity/EntityTableRow/components/EntityTableCellCheckbox.d.ts +8 -0
  191. package/dist/es/entity/EntityTableRow/components/EntityTableCellCheckbox.js +12 -13
  192. package/dist/es/entity/_utils/getEntityProp.d.ts +9 -0
  193. package/dist/es/entity/_utils/getEntityText.d.ts +7 -0
  194. package/dist/es/entity/_utils/getEntityText.js +24 -24
  195. package/dist/es/entity/_utils/index.d.ts +2 -0
  196. package/dist/es/entity/index.d.ts +3 -0
  197. package/dist/es/general/AvatarMenu/AvatarMenu.d.ts +59 -0
  198. package/dist/es/general/AvatarMenu/AvatarMenu.js +50 -111
  199. package/dist/es/general/AvatarMenu/components/Avatar.d.ts +8 -0
  200. package/dist/es/general/AvatarMenu/components/Avatar.js +18 -13
  201. package/dist/es/general/AvatarMenu/components/MenuItem.d.ts +11 -0
  202. package/dist/es/general/AvatarMenu/components/MenuItem.js +12 -13
  203. package/dist/es/general/AvatarMenu/index.d.ts +3 -0
  204. package/dist/es/general/AvatarMenu/index.js +1 -1
  205. package/dist/es/general/BlurredBackground/BlurredBackground.d.ts +35 -0
  206. package/dist/es/general/BlurredBackground/BlurredBackground.js +26 -66
  207. package/dist/es/general/BlurredBackground/index.d.ts +3 -0
  208. package/dist/es/general/BlurredBackground/index.js +1 -1
  209. package/dist/es/general/CalendarPicker/CalendarPicker.d.ts +134 -0
  210. package/dist/es/general/CalendarPicker/CalendarPicker.js +170 -267
  211. package/dist/es/general/CalendarPicker/components/PickersDay.d.ts +15 -0
  212. package/dist/es/general/CalendarPicker/components/PickersDay.js +28 -23
  213. package/dist/es/general/CalendarPicker/index.d.ts +3 -0
  214. package/dist/es/general/CalendarPicker/index.js +5 -5
  215. package/dist/es/general/CalendarPicker/utils/index.d.ts +9 -0
  216. package/dist/es/general/CompactBadge/CompactBadge.d.ts +16 -0
  217. package/dist/es/general/CompactBadge/CompactBadge.js +19 -40
  218. package/dist/es/general/CompactBadge/index.d.ts +3 -0
  219. package/dist/es/general/CompactBadge/index.js +1 -1
  220. package/dist/es/general/CompactLabel/CompactLabel.d.ts +22 -0
  221. package/dist/es/general/CompactLabel/CompactLabel.js +20 -45
  222. package/dist/es/general/CompactLabel/index.d.ts +3 -0
  223. package/dist/es/general/CompactLabel/index.js +1 -1
  224. package/dist/es/general/CornerLabelPlacer/CornerLabelPlacer.d.ts +29 -0
  225. package/dist/es/general/CornerLabelPlacer/CornerLabelPlacer.js +35 -76
  226. package/dist/es/general/CornerLabelPlacer/index.d.ts +3 -0
  227. package/dist/es/general/CornerLabelPlacer/index.js +1 -1
  228. package/dist/es/general/ExpandButton/ExpandButton.d.ts +29 -0
  229. package/dist/es/general/ExpandButton/ExpandButton.js +31 -60
  230. package/dist/es/general/ExpandButton/index.d.ts +3 -0
  231. package/dist/es/general/ExpandButton/index.js +1 -1
  232. package/dist/es/general/Form/Form.d.ts +138 -0
  233. package/dist/es/general/Form/Form.js +90 -171
  234. package/dist/es/general/Form/index.d.ts +3 -0
  235. package/dist/es/general/Form/index.js +1 -1
  236. package/dist/es/general/ImageCollage/ImageCollage.d.ts +53 -0
  237. package/dist/es/general/ImageCollage/ImageCollage.js +50 -105
  238. package/dist/es/general/ImageCollage/index.d.ts +3 -0
  239. package/dist/es/general/ImageCollage/index.js +1 -1
  240. package/dist/es/general/MediaIcon/MediaIcon.d.ts +23 -0
  241. package/dist/es/general/MediaIcon/MediaIcon.js +50 -90
  242. package/dist/es/general/MediaIcon/index.d.ts +3 -0
  243. package/dist/es/general/MenuItem/MenuItem.d.ts +35 -0
  244. package/dist/es/general/MenuItem/MenuItem.js +30 -68
  245. package/dist/es/general/MenuItem/index.d.ts +3 -0
  246. package/dist/es/general/MenuItem/index.js +1 -1
  247. package/dist/es/general/ScrubLine/ScrubLine.d.ts +58 -0
  248. package/dist/es/general/ScrubLine/ScrubLine.js +45 -106
  249. package/dist/es/general/ScrubLine/index.d.ts +3 -0
  250. package/dist/es/general/ScrubLine/index.js +1 -1
  251. package/dist/es/general/Sort/Sort.d.ts +50 -0
  252. package/dist/es/general/Sort/Sort.js +75 -131
  253. package/dist/es/general/Sort/components/ButtonBase.d.ts +9 -0
  254. package/dist/es/general/Sort/components/ButtonBase.js +12 -14
  255. package/dist/es/general/Sort/components/MenuItem.d.ts +10 -0
  256. package/dist/es/general/Sort/components/MenuItem.js +9 -11
  257. package/dist/es/general/Sort/index.d.ts +3 -0
  258. package/dist/es/general/Sort/index.js +1 -1
  259. package/dist/es/general/TablePagination/TablePagination.d.ts +47 -0
  260. package/dist/es/general/TablePagination/TablePagination.js +48 -84
  261. package/dist/es/general/TablePagination/index.d.ts +3 -0
  262. package/dist/es/general/TablePagination/index.js +1 -1
  263. package/dist/es/general/ThemeContext/ThemeContext.d.ts +43 -0
  264. package/dist/es/general/ThemeContext/ThemeContext.js +58 -67
  265. package/dist/es/general/ThemeContext/index.d.ts +1 -0
  266. package/dist/es/general/index.d.ts +15 -0
  267. package/dist/es/index.d.ts +8 -0
  268. package/dist/es/index.js +95 -0
  269. package/dist/es/inputs/BasicDateTimeInput/BasicDateTimeInput.d.ts +68 -0
  270. package/dist/es/inputs/BasicDateTimeInput/BasicDateTimeInput.js +31 -105
  271. package/dist/es/inputs/BasicDateTimeInput/index.d.ts +3 -0
  272. package/dist/es/inputs/BasicDateTimeInput/index.js +1 -1
  273. package/dist/es/inputs/BooleanInput/BooleanInput.d.ts +85 -0
  274. package/dist/es/inputs/BooleanInput/BooleanInput.js +51 -137
  275. package/dist/es/inputs/BooleanInput/index.d.ts +3 -0
  276. package/dist/es/inputs/BooleanInput/index.js +1 -1
  277. package/dist/es/inputs/CheckboxGroupInput/CheckboxGroupInput.d.ts +106 -0
  278. package/dist/es/inputs/CheckboxGroupInput/CheckboxGroupInput.js +84 -196
  279. package/dist/es/inputs/CheckboxGroupInput/components/CheckboxGroup.d.ts +42 -0
  280. package/dist/es/inputs/CheckboxGroupInput/components/CheckboxGroup.js +64 -48
  281. package/dist/es/inputs/CheckboxGroupInput/index.d.ts +3 -0
  282. package/dist/es/inputs/CheckboxGroupInput/index.js +1 -1
  283. package/dist/es/inputs/DateRangeInput/DateRangeInput.d.ts +150 -0
  284. package/dist/es/inputs/DateRangeInput/DateRangeInput.js +134 -277
  285. package/dist/es/inputs/DateRangeInput/index.d.ts +3 -0
  286. package/dist/es/inputs/DateRangeInput/index.js +1 -1
  287. package/dist/es/inputs/DateRangeInput/utils/dateHelpers.d.ts +10 -0
  288. package/dist/es/inputs/DateRangeInput/utils/valueManagers.d.ts +10 -0
  289. package/dist/es/inputs/DateRangeInput/{components/utils → utils}/valueManagers.js +1 -1
  290. package/dist/es/inputs/DateTimeInput/DateTimeInput.d.ts +105 -0
  291. package/dist/es/inputs/DateTimeInput/DateTimeInput.js +96 -195
  292. package/dist/es/inputs/DateTimeInput/index.d.ts +3 -0
  293. package/dist/es/inputs/DateTimeInput/index.js +1 -1
  294. package/dist/es/inputs/MaskedTextInput/MaskedTextInput.d.ts +131 -0
  295. package/dist/es/inputs/MaskedTextInput/MaskedTextInput.js +58 -193
  296. package/dist/es/inputs/MaskedTextInput/components/MaskedInputComponent.d.ts +16 -0
  297. package/dist/es/inputs/MaskedTextInput/components/MaskedInputComponent.js +11 -7
  298. package/dist/es/inputs/MaskedTextInput/index.d.ts +3 -0
  299. package/dist/es/inputs/MaskedTextInput/index.js +1 -1
  300. package/dist/es/inputs/NumberInput/NumberInput.d.ts +70 -0
  301. package/dist/es/inputs/NumberInput/NumberInput.js +30 -106
  302. package/dist/es/inputs/NumberInput/index.d.ts +3 -0
  303. package/dist/es/inputs/NumberInput/index.js +1 -1
  304. package/dist/es/inputs/RadioGroupInput/RadioGroupInput.d.ts +106 -0
  305. package/dist/es/inputs/RadioGroupInput/RadioGroupInput.js +74 -187
  306. package/dist/es/inputs/RadioGroupInput/components/RadioGroup.d.ts +42 -0
  307. package/dist/es/inputs/RadioGroupInput/components/RadioGroup.js +49 -33
  308. package/dist/es/inputs/RadioGroupInput/index.d.ts +3 -0
  309. package/dist/es/inputs/RadioGroupInput/index.js +1 -1
  310. package/dist/es/inputs/SelectInput/SelectInput.d.ts +95 -0
  311. package/dist/es/inputs/SelectInput/SelectInput.js +52 -152
  312. package/dist/es/inputs/SelectInput/index.d.ts +3 -0
  313. package/dist/es/inputs/SelectInput/index.js +1 -1
  314. package/dist/es/inputs/SliderInput/SliderInput.d.ts +141 -0
  315. package/dist/es/inputs/SliderInput/SliderInput.js +94 -241
  316. package/dist/es/inputs/SliderInput/components/Slider.d.ts +30 -0
  317. package/dist/es/inputs/SliderInput/components/Slider.js +52 -50
  318. package/dist/es/inputs/SliderInput/index.d.ts +3 -0
  319. package/dist/es/inputs/SliderInput/index.js +1 -1
  320. package/dist/es/inputs/TagInput/TagInput.d.ts +118 -0
  321. package/dist/es/inputs/TagInput/TagInput.js +123 -215
  322. package/dist/es/inputs/TagInput/index.d.ts +3 -0
  323. package/dist/es/inputs/TagInput/index.js +1 -1
  324. package/dist/es/inputs/TextInput/TextInput.d.ts +80 -0
  325. package/dist/es/inputs/TextInput/TextInput.js +37 -123
  326. package/dist/es/inputs/TextInput/index.d.ts +3 -0
  327. package/dist/es/inputs/TextInput/index.js +1 -1
  328. package/dist/es/inputs/_components/FormControlLabel.d.ts +10 -0
  329. package/dist/es/inputs/_components/FormControlLabel.js +23 -23
  330. package/dist/es/inputs/_components/MenuItem.d.ts +11 -0
  331. package/dist/es/inputs/_components/MenuItem.js +11 -10
  332. package/dist/es/inputs/index.d.ts +12 -0
  333. package/dist/es/item/ItemCard/ItemCard.d.ts +165 -0
  334. package/dist/es/item/ItemCard/ItemCard.js +95 -230
  335. package/dist/es/item/ItemCard/components/ItemCardMedia.d.ts +12 -0
  336. package/dist/es/item/ItemCard/components/ItemCardMedia.js +16 -14
  337. package/dist/es/item/ItemCard/index.d.ts +3 -0
  338. package/dist/es/item/ItemCard/index.js +1 -1
  339. package/dist/es/item/ItemList/ItemList.d.ts +75 -0
  340. package/dist/es/item/ItemList/ItemList.js +47 -131
  341. package/dist/es/item/ItemList/index.d.ts +3 -0
  342. package/dist/es/item/ItemList/index.js +1 -1
  343. package/dist/es/item/ItemListItem/ItemListItem.d.ts +67 -0
  344. package/dist/es/item/ItemListItem/ItemListItem.js +36 -106
  345. package/dist/es/item/ItemListItem/index.d.ts +3 -0
  346. package/dist/es/item/ItemListItem/index.js +1 -1
  347. package/dist/es/item/ItemPoster/ItemPoster.d.ts +44 -0
  348. package/dist/es/item/ItemPoster/ItemPoster.js +37 -78
  349. package/dist/es/item/ItemPoster/index.d.ts +3 -0
  350. package/dist/es/item/ItemPoster/index.js +1 -1
  351. package/dist/es/item/ItemPosterList/ItemPosterList.d.ts +36 -0
  352. package/dist/es/item/ItemPosterList/ItemPosterList.js +30 -82
  353. package/dist/es/item/ItemPosterList/index.d.ts +3 -0
  354. package/dist/es/item/ItemPosterList/index.js +1 -1
  355. package/dist/es/item/ItemPosterViewer/ItemPosterViewer.d.ts +69 -0
  356. package/dist/es/item/ItemPosterViewer/ItemPosterViewer.js +72 -123
  357. package/dist/es/item/ItemPosterViewer/components/Toolbar.d.ts +10 -0
  358. package/dist/es/item/ItemPosterViewer/components/Toolbar.js +26 -22
  359. package/dist/es/item/ItemPosterViewer/index.d.ts +3 -0
  360. package/dist/es/item/ItemPosterViewer/index.js +1 -1
  361. package/dist/es/item/ItemTable/ItemTable.d.ts +79 -0
  362. package/dist/es/item/ItemTable/ItemTable.js +65 -150
  363. package/dist/es/item/ItemTable/components/ItemTableHead.d.ts +16 -0
  364. package/dist/es/item/ItemTable/components/ItemTableHead.js +30 -31
  365. package/dist/es/item/ItemTable/index.d.ts +3 -0
  366. package/dist/es/item/ItemTable/index.js +1 -1
  367. package/dist/es/item/ItemTableRow/ItemTableRow.d.ts +66 -0
  368. package/dist/es/item/ItemTableRow/ItemTableRow.js +56 -126
  369. package/dist/es/item/ItemTableRow/index.d.ts +3 -0
  370. package/dist/es/item/ItemTableRow/index.js +1 -1
  371. package/dist/es/item/ItemThumbnail/ItemThumbnail.d.ts +88 -0
  372. package/dist/es/item/ItemThumbnail/ItemThumbnail.js +46 -132
  373. package/dist/es/item/ItemThumbnail/index.d.ts +3 -0
  374. package/dist/es/item/ItemThumbnail/index.js +1 -1
  375. package/dist/es/item/index.d.ts +9 -0
  376. package/dist/es/search/SearchFilterForm/SearchFilterForm.d.ts +90 -0
  377. package/dist/es/search/SearchFilterForm/SearchFilterForm.js +57 -118
  378. package/dist/es/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.d.ts +100 -0
  379. package/dist/es/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +44 -40
  380. package/dist/es/search/SearchFilterForm/index.d.ts +3 -0
  381. package/dist/es/search/SearchFilterForm/index.js +8 -9
  382. package/dist/es/search/SearchFilterForm/utils/mapValuesToFilter.d.ts +15 -0
  383. package/dist/es/search/SearchFilterForm/utils/mapValuesToFilter.js +30 -33
  384. package/dist/es/search/index.d.ts +1 -0
  385. package/dist/es/shape/ShapeMediaBadges/ShapeMediaBadges.d.ts +35 -0
  386. package/dist/es/shape/ShapeMediaBadges/ShapeMediaBadges.js +21 -61
  387. package/dist/es/shape/ShapeMediaBadges/index.d.ts +3 -0
  388. package/dist/es/shape/ShapeMediaBadges/index.js +1 -1
  389. package/dist/es/shape/index.d.ts +1 -0
  390. package/dist/es/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.d.ts +35 -0
  391. package/dist/es/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +20 -60
  392. package/dist/es/transcode/TranscodePresetMediaBadges/index.d.ts +3 -0
  393. package/dist/es/transcode/TranscodePresetMediaBadges/index.js +1 -1
  394. package/dist/es/transcode/index.d.ts +1 -0
  395. package/package.json +28 -22
  396. package/dist/cjs/inputs/DateRangeInput/components/utils/valueManagers.js +0 -1
  397. package/dist/index.cjs.js +0 -1
  398. package/dist/index.es.js +0 -93
@@ -0,0 +1 @@
1
+ export declare const showSlot: (slot: (props?: any) => JSX.Element, props?: any) => JSX.Element | ((props?: any) => JSX.Element);
@@ -1,4 +1,4 @@
1
- const u = (n, e) => ![null, void 0].includes(n) && typeof n == "function" ? n(e) : n;
1
+ const c = (n, o) => ![null, void 0].includes(n) && typeof n == "function" ? n(o) : n;
2
2
  export {
3
- u as showSlot
3
+ c as showSlot
4
4
  };
@@ -0,0 +1 @@
1
+ export declare const uuidv4: () => any;
@@ -1,7 +1,10 @@
1
- const t = () => ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, (e) => (
2
- // eslint-disable-next-line
3
- (e ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> e / 4).toString(16)
4
- ));
1
+ const t = () => (
2
+ // @ts-expect-error (false bitwise number+number[] issue)
3
+ ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, (e) => (
4
+ // eslint-disable-next-line
5
+ (e ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> e / 4).toString(16)
6
+ ))
7
+ );
5
8
  export {
6
9
  t as uuidv4
7
10
  };
@@ -0,0 +1,8 @@
1
+ import { ComponentType, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
2
+ interface OverridesProps {
3
+ className: string;
4
+ components: any;
5
+ componentsProps: any;
6
+ }
7
+ export declare const withOverrides: (name: string) => <P extends Partial<OverridesProps> = {}>(Component: ComponentType<P>) => ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<any>>;
8
+ export {};
@@ -0,0 +1,165 @@
1
+ /// <reference types="react" />
2
+ import { CardActionArea as MuiCardActionArea, Collapse as MuiCollapse } from '@mui/material';
3
+ import type { CollectionType } from '@vidispine/types';
4
+ import VdtCardActions from '../../entity/EntityCard/components/EntityCardActions';
5
+ import VdtCard from '../../entity/EntityCard/components/EntityCardBase';
6
+ import VdtCardContent from '../../entity/EntityCard/components/EntityCardContent';
7
+ import VdtCardHeader from '../../entity/EntityCard/components/EntityCardHeader';
8
+ import VdtCardMedia from './components/CollectionCardMedia';
9
+ import type { StyledComponent, WithOverrideProps } from '../../_types';
10
+ type StyledVdtCardType = StyledComponent<typeof VdtCard, {
11
+ horizontal?: boolean;
12
+ }>;
13
+ declare const StyledVdtCard: StyledVdtCardType;
14
+ type StyledVdtCardHeaderType = StyledComponent<typeof VdtCardHeader, {
15
+ horizontal?: boolean;
16
+ }>;
17
+ declare const StyledVdtCardHeader: StyledVdtCardHeaderType;
18
+ type StyledVdtCardMediaType = StyledComponent<typeof VdtCardMedia, {
19
+ horizontal?: boolean;
20
+ mediaPadding?: number;
21
+ mediaSize?: React.CSSProperties['width'];
22
+ }>;
23
+ declare const StyledVdtCardMedia: StyledVdtCardMediaType;
24
+ type StyledVdtCardContentType = StyledComponent<typeof VdtCardContent, {
25
+ horizontal?: boolean;
26
+ }>;
27
+ declare const StyledVdtCardContent: StyledVdtCardContentType;
28
+ declare const StyledVdtCardActions: typeof VdtCardActions;
29
+ declare const StyledMuiCardActionArea: typeof MuiCardActionArea<'button'>;
30
+ declare const StyledMuiCollapse: typeof MuiCollapse;
31
+ declare const defaultComponents: {
32
+ Root: typeof StyledVdtCard;
33
+ CardHeader: typeof StyledVdtCardHeader;
34
+ CardMedia: typeof StyledVdtCardMedia;
35
+ CardContent: typeof StyledVdtCardContent;
36
+ CardContentExpanded: typeof StyledVdtCardContent;
37
+ CardActions: typeof StyledVdtCardActions;
38
+ CardActionArea: typeof StyledMuiCardActionArea;
39
+ Collapse: typeof StyledMuiCollapse;
40
+ };
41
+ type CollectionCardAction = {
42
+ name?: string;
43
+ Icon?: (props?: any) => JSX.Element;
44
+ iconProps?: object;
45
+ };
46
+ type CollectionCardMenuOption = {
47
+ label: string;
48
+ secondaryLabel?: string;
49
+ name?: string;
50
+ icon?: (props: any) => JSX.Element;
51
+ };
52
+ export interface CollectionCardProps extends WithOverrideProps<typeof defaultComponents> {
53
+ /**
54
+ * The Collection to show
55
+ */
56
+ collectionType?: CollectionType;
57
+ /**
58
+ * Title text for the collection card header
59
+ *
60
+ * Set to *field name* the value should be extracted from
61
+ * or set *function* which will get collectionType as argument
62
+ */
63
+ title?: string | (({ collectionType }: {
64
+ collectionType: CollectionType;
65
+ }) => string);
66
+ /**
67
+ * Subheader text for the collection card header
68
+ *
69
+ * Set to *field name* the value should be extracted from
70
+ * or set *function* which will get collectionType as argument
71
+ *
72
+ * Defaults to undefined
73
+ */
74
+ subheader?: string | (({ collectionType }: {
75
+ collectionType: CollectionType;
76
+ }) => string);
77
+ /**
78
+ * Content text for the card body
79
+ *
80
+ * Set to *field name* the value should be extracted from
81
+ * or set *function* which will get collectionType as argument
82
+ *
83
+ * Defaults to undefined
84
+ */
85
+ content?: string | (({ collectionType }: {
86
+ collectionType: CollectionType;
87
+ }) => string);
88
+ /**
89
+ * Content text for the expanded card body
90
+ *
91
+ * Set to *field name* the value should be extracted from
92
+ * or set *function* which will get collectionType as argument
93
+ *
94
+ * Defaults to undefined which disables the expand functionality
95
+ */
96
+ expandedContent?: string | (({ collectionType }: {
97
+ collectionType: CollectionType;
98
+ }) => string);
99
+ /**
100
+ * Add padding around media (theme spacing value)
101
+ */
102
+ mediaPadding?: number;
103
+ /**
104
+ * Set size for the card media
105
+ *
106
+ * `width` if horizontal: true, `height` otherwise
107
+ */
108
+ mediaSize?: string;
109
+ /**
110
+ * Whether the media card is marked as checked or not
111
+ */
112
+ checked?: boolean;
113
+ /**
114
+ * Whether the expanded content is shown or not
115
+ */
116
+ expanded?: boolean;
117
+ /**
118
+ * Whether the card should have horizontal or standard layout
119
+ */
120
+ horizontal?: boolean;
121
+ /**
122
+ * A list of options for the card header action
123
+ */
124
+ menuOptions?: CollectionCardMenuOption[];
125
+ /**
126
+ * The list of actions to show
127
+ */
128
+ actions?: CollectionCardAction[];
129
+ /**
130
+ * A function that handles the onClick event
131
+ */
132
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>, payload: {
133
+ collectionType: CollectionType;
134
+ }) => void;
135
+ /**
136
+ * A function that handles the check box being clicked
137
+ */
138
+ onCheck?: (event: React.ChangeEvent<HTMLInputElement>, payload: {
139
+ collectionType: CollectionType;
140
+ value: boolean;
141
+ }) => void;
142
+ /**
143
+ * A function that handles the expand button being clicked
144
+ */
145
+ onExpand?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, payload: {
146
+ collectionType: CollectionType;
147
+ value: boolean;
148
+ }) => void;
149
+ /**
150
+ * Callback for clicking on option which will get the option as argument
151
+ */
152
+ onOptionClick?: (event: React.MouseEvent<HTMLLIElement, MouseEvent>, payload: {
153
+ option: CollectionCardMenuOption;
154
+ collectionType?: CollectionType;
155
+ }) => void;
156
+ /**
157
+ * Callback for clicking on an action which will get the action name as argument
158
+ */
159
+ onActionClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, payload: {
160
+ action: CollectionCardAction;
161
+ collectionType?: CollectionType;
162
+ }) => void;
163
+ }
164
+ declare const CollectionCard: React.FC<CollectionCardProps>;
165
+ export default CollectionCard;
@@ -1,65 +1,63 @@
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"
1
+ import { jsxs as G, jsx as o } 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/CollectionCardMedia.js";
11
+ const Z = i(Q, {
12
+ shouldForwardProp: (d) => d !== "horizontal"
15
13
  })(({
16
- horizontal: t
14
+ horizontal: d
17
15
  }) => ({
18
16
  display: "grid",
19
- ...t ? {
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
- })), ee = d(Z, {
26
- shouldForwardProp: (t) => t !== "horizontal"
23
+ })), _ = i(X, {
24
+ shouldForwardProp: (d) => d !== "horizontal"
27
25
  })(({
28
- horizontal: t
26
+ horizontal: d
29
27
  }) => ({
30
28
  gridArea: "header",
31
- ...t && {
29
+ ...d && {
32
30
  "& .MuiCardHeader-avatar": {
33
31
  display: "none"
34
32
  }
35
33
  }
36
- })), te = d(_, {
37
- shouldForwardProp: (t) => !["horizontal", "mediaPadding", "mediaSize"].includes(t)
34
+ })), $ = i(Y, {
35
+ shouldForwardProp: (d) => !["horizontal", "mediaPadding", "mediaSize"].includes(d)
38
36
  })(({
39
- theme: t,
40
- horizontal: i,
37
+ theme: d,
38
+ horizontal: e,
41
39
  mediaPadding: C,
42
40
  mediaSize: c
43
41
  }) => ({
44
- padding: t.spacing(C),
45
- ...i ? {
42
+ padding: d.spacing(C),
43
+ ...e ? {
46
44
  width: c,
47
45
  height: "100%"
48
46
  } : {
49
47
  height: c,
50
48
  width: "100%"
51
49
  }
52
- })), b = d(Y, {
53
- shouldForwardProp: (t) => t !== "horizontal"
50
+ })), x = i(U, {
51
+ shouldForwardProp: (d) => d !== "horizontal"
54
52
  })(({
55
- horizontal: t,
56
- theme: i
53
+ horizontal: d,
54
+ theme: e
57
55
  }) => ({
58
56
  gridArea: "content",
59
- paddingTop: t ? 0 : i.spacing(2)
60
- })), ne = d(U)(() => ({
57
+ paddingTop: d ? 0 : e.spacing(2)
58
+ })), T = i(N)(() => ({
61
59
  gridArea: "actions"
62
- })), ae = d(K)(() => ({
60
+ })), dd = i(J)(() => ({
63
61
  gridArea: "actionArea",
64
62
  transition: "filter 0.25s ease-in-out",
65
63
  "&:focus": {
@@ -68,208 +66,76 @@ const $ = d(X, {
68
66
  "& .MuiTouchRipple-root": {
69
67
  zIndex: 10
70
68
  }
71
- })), oe = d(N)(() => ({
69
+ })), ad = i(K)(() => ({
72
70
  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,
71
+ })), td = {
72
+ Root: Z,
73
+ CardHeader: _,
74
+ CardMedia: $,
75
+ CardContent: x,
76
+ CardContentExpanded: x,
77
+ CardActions: T,
78
+ CardActionArea: dd,
79
+ Collapse: ad
80
+ }, od = ({
81
+ collectionType: d,
82
+ title: e,
86
83
  subheader: C,
87
84
  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,
85
+ expandedContent: u,
86
+ checked: l,
87
+ expanded: s,
88
+ horizontal: r,
89
+ mediaPadding: M,
90
+ mediaSize: E,
91
+ menuOptions: S,
92
+ actions: k,
93
+ onClick: A,
97
94
  onCheck: m,
98
95
  onExpand: h,
99
- onOptionClick: k,
100
- onActionClick: E,
101
- components: S,
102
- componentsProps: n
103
- }) {
96
+ onOptionClick: y,
97
+ onActionClick: w,
98
+ components: H,
99
+ componentsProps: a
100
+ }) => {
104
101
  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
102
+ Root: b,
103
+ CardHeader: V,
104
+ CardActionArea: F,
105
+ CardMedia: z,
106
+ CardContent: L,
107
+ CardContentExpanded: O,
108
+ CardActions: R,
109
+ Collapse: j
110
+ } = H, [B, I] = v(l), [P, W] = v(s), q = (t) => {
111
+ var p;
112
+ const n = (p = t == null ? void 0 : t.target) == null ? void 0 : p.checked;
113
+ m && m(t, {
114
+ value: n,
115
+ collectionType: d
116
+ }), l === void 0 && I(n);
117
+ }, D = (t, {
118
+ value: n
122
119
  }) => {
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 }) })
120
+ h && h(t, {
121
+ value: n,
122
+ collectionType: d
123
+ }), s === void 0 && W(n);
124
+ }, f = l !== void 0 ? l : B, g = s !== void 0 ? s : P;
125
+ return /* @__PURE__ */ G(b, { horizontal: r, checked: f, ...a.root, children: [
126
+ /* @__PURE__ */ o(V, { collectionType: d, title: e, subheader: C, menuOptions: S, horizontal: r, onOptionClick: y, ...a.cardHeader }),
127
+ /* @__PURE__ */ o(F, { disabled: A === void 0, onClick: (t) => A(t, {
128
+ collectionType: d
129
+ }), ...a.cardActionArea, children: /* @__PURE__ */ o(z, { collectionType: d, mediaSize: E, mediaPadding: M, horizontal: r, showCombined: !r, ...a.cardMedia }) }),
130
+ /* @__PURE__ */ o(L, { collectionType: d, content: c, horizontal: r, ...a.cardContent }),
131
+ /* @__PURE__ */ o(R, { collectionType: d, checked: f, expanded: g, actions: k, onCheck: m ? q : null, onExpand: u ? D : null, onActionClick: w, ...a.cardActions }),
132
+ /* @__PURE__ */ o(j, { in: g && u !== void 0, timeout: "auto", unmountOnExit: !0, ...a.collapse, children: /* @__PURE__ */ o(O, { collectionType: d, content: u, WebkitLineClamp: 0, ...a.cardContentExpanded }) })
136
133
  ] });
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
134
  };
269
- v.defaultProps = {
135
+ od.defaultProps = {
270
136
  collectionType: void 0,
271
137
  onClick: void 0,
272
- title: void 0,
138
+ title: "id",
273
139
  subheader: void 0,
274
140
  content: void 0,
275
141
  expandedContent: void 0,
@@ -284,9 +150,9 @@ v.defaultProps = {
284
150
  onExpand: void 0,
285
151
  onOptionClick: void 0,
286
152
  onActionClick: void 0,
287
- components: de,
153
+ components: td,
288
154
  componentsProps: void 0
289
155
  };
290
156
  export {
291
- v as default
157
+ od as default
292
158
  };
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { CardMediaProps as MuiCardMediaProps } from '@mui/material';
3
+ import type { CollectionType } from '@vidispine/types';
4
+ import type { CollectionRepresentativeThumbnailProps } from '../../CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail';
5
+ export interface CollectionCardMediaProps extends MuiCardMediaProps {
6
+ collectionType?: CollectionType;
7
+ showCombined?: boolean;
8
+ collectionRepresentativeThumbnail?: CollectionRepresentativeThumbnailProps;
9
+ }
10
+ declare const CollectionCardMedia: React.FC<CollectionCardMediaProps>;
11
+ export default CollectionCardMedia;
@@ -1,14 +1,17 @@
1
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
- }
2
+ import r from "@mui/material/CardMedia";
3
+ import l from "../../CollectionRepresentativeThumbnail/index.js";
4
+ const n = ({
5
+ collectionType: e,
6
+ showCombined: i,
7
+ collectionRepresentativeThumbnail: t,
8
+ ...d
9
+ }) => /* @__PURE__ */ o(r, { ...d, children: /* @__PURE__ */ o(l, { collectionType: e, showCombined: i, ...t ?? {} }) });
10
+ n.defaultProps = {
11
+ collectionType: void 0,
12
+ showCombined: void 0,
13
+ collectionRepresentativeThumbnail: void 0
14
+ };
12
15
  export {
13
- f as default
16
+ n as default
14
17
  };
@@ -0,0 +1,3 @@
1
+ import Component from './CollectionCard';
2
+ declare const StyledComponent: typeof Component;
3
+ export default StyledComponent;
@@ -4,7 +4,7 @@ import m from "./CollectionCard.js";
4
4
  const o = "CollectionCard", e = `Vdt${o}`, i = n(e)(m), s = r(i, {
5
5
  name: e,
6
6
  overridesResolver: (d, t) => t.root
7
- })(() => ({}));
7
+ })({});
8
8
  s.displayName = o;
9
9
  export {
10
10
  s as default