@vidispine/vdt-mui 23.3.0-pre.2 → 23.3.0-pre.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -1,147 +1,63 @@
1
- import { jsxs as a, jsx as s, Fragment as k } from "react/jsx-runtime";
2
- import { useMemo as j } from "react";
3
- import e from "prop-types";
4
- import C from "@mui/material/List";
5
- import M from "@mui/material/ListSubheader";
6
- import x from "@mui/material/Typography";
7
- import { styled as D } from "@mui/material/styles";
8
- import P from "@vidispine/proptypes";
9
- import { uuidv4 as p } from "../../_utils/uuidv4.js";
1
+ import { jsxs as a, jsx as m, Fragment as k } from "react/jsx-runtime";
2
+ import { useMemo as b } from "react";
3
+ import x from "@mui/material/List";
4
+ import C from "@mui/material/ListSubheader";
5
+ import j from "@mui/material/Typography";
6
+ import { styled as w } from "@mui/material/styles";
7
+ import { uuidv4 as d } from "../../_utils/uuidv4.js";
10
8
  import "clsx";
11
- import { showSlot as R } from "../../_utils/showSlot.js";
12
- import V from "../ItemListItem/index.js";
13
- function q() {
14
- return /* @__PURE__ */ s(x, { children: "No items found..." });
15
- }
16
- const w = D(C)(() => ({
9
+ import { showSlot as D } from "../../_utils/showSlot.js";
10
+ import R from "../ItemListItem/index.js";
11
+ const q = () => /* @__PURE__ */ m(j, { children: "No items found..." }), A = w(x)(() => ({
17
12
  width: "100%",
18
13
  padding: 0
19
- })), A = {
20
- Root: w,
21
- ListSubheader: M,
22
- ListItem: V
23
- };
24
- function d({
14
+ })), E = {
15
+ Root: A,
16
+ ListSubheader: C,
17
+ ListItem: R
18
+ }, F = ({
25
19
  itemListType: t,
26
- header: l,
27
- primary: u,
28
- secondary: c,
29
- avatarVariant: f,
30
- dense: y,
31
- amountLoading: h,
32
- isLoading: i,
33
- onListItemClick: L,
34
- onListItemDelete: I,
35
- emptySlot: b,
36
- components: S,
37
- componentsProps: n
38
- }) {
20
+ header: n,
21
+ primary: l,
22
+ secondary: p,
23
+ avatarVariant: u,
24
+ dense: f,
25
+ amountLoading: c,
26
+ isLoading: e,
27
+ onListItemClick: h,
28
+ onListItemDelete: y,
29
+ emptySlot: S,
30
+ components: I,
31
+ componentsProps: r
32
+ }) => {
39
33
  const {
40
- Root: g,
41
- ListSubheader: O,
42
- ListItem: v
43
- } = S, T = [...Array(Math.max(h, 0)).keys()].map(() => ({
44
- key: p()
45
- })), m = j(() => {
34
+ Root: L,
35
+ ListSubheader: v,
36
+ ListItem: M
37
+ } = I, g = [...Array(Math.max(c, 0)).keys()].map(() => ({
38
+ key: d()
39
+ })), s = b(() => {
46
40
  var o;
47
- return ((o = t == null ? void 0 : t.item) == null ? void 0 : o.map((r) => ({
48
- key: p(),
49
- itemType: r
41
+ return ((o = t == null ? void 0 : t.item) == null ? void 0 : o.map((i) => ({
42
+ key: d(),
43
+ itemType: i
50
44
  }))) || [];
51
45
  }, [t.item]);
52
- return /* @__PURE__ */ a(g, { dense: y, ...n.root, children: [
53
- /* @__PURE__ */ s(O, { ...n.listSubheader, children: l }),
46
+ return /* @__PURE__ */ a(L, { dense: f, ...r.root, children: [
47
+ /* @__PURE__ */ m(v, { ...r.listSubheader, children: n }),
54
48
  /* @__PURE__ */ a(k, { children: [
55
- !i && m.length === 0 && R(b),
56
- (i ? T : m).map(({
49
+ !e && s.length === 0 && D(S),
50
+ (e ? g : s).map(({
57
51
  key: o,
58
- itemType: r
59
- }) => /* @__PURE__ */ s(v, { itemType: r, primary: u, secondary: c, avatarVariant: f, isLoading: i, onClick: L, onDelete: I, ...n.listItem }, o))
52
+ itemType: i
53
+ }) => /* @__PURE__ */ m(M, { itemType: i, primary: l, secondary: p, avatarVariant: u, isLoading: e, onClick: h, onDelete: y, ...r.listItem }, o))
60
54
  ] })
61
55
  ] });
62
- }
63
- d.propTypes = {
64
- /**
65
- * The `ItemListType` to show in the list
66
- */
67
- itemListType: P.ItemListType,
68
- /**
69
- * Add a list header
70
- */
71
- header: e.string,
72
- /**
73
- * Primary text for the list item
74
- *
75
- * Set to *field name* the value should be extracted from
76
- * or set *function* which will get itemType as argument
77
- *
78
- * Defaults to id of entity
79
- */
80
- primary: e.oneOfType([e.string, e.func]),
81
- /**
82
- * Secondary text for the list item
83
- *
84
- * Set to *field name* the value should be extracted from
85
- * or set *function* which will get itemType as argument
86
- *
87
- * Defaults to undefined
88
- */
89
- secondary: e.oneOfType([e.string, e.func]),
90
- /**
91
- * Variant/shapes for the list item avatars
92
- */
93
- avatarVariant: e.oneOf(["circular", "rounded", "square"]),
94
- /**
95
- * If list should be displayed as dense
96
- */
97
- dense: e.bool,
98
- /**
99
- * Show skeleton list items as loading state
100
- */
101
- isLoading: e.bool,
102
- /**
103
- * amount of list items to show when loading
104
- */
105
- amountLoading: e.number,
106
- /**
107
- * Callback for ListItem click event
108
- *
109
- * Set to `undefined` to disable
110
- */
111
- onListItemClick: e.func,
112
- /**
113
- * Callback for ListItem delete event
114
- *
115
- * Set to `undefined` to disable
116
- */
117
- onListItemDelete: e.func,
118
- // Slots
119
- /**
120
- * Shown when list is empty
121
- */
122
- emptySlot: e.oneOfType([e.elementType, e.node]),
123
- // Overrides
124
- /**
125
- * Replace internal components
126
- */
127
- components: e.shape({
128
- Root: e.elementType,
129
- ListSubheader: e.elementType,
130
- ListItem: e.elementType
131
- }),
132
- /**
133
- * Add internal component props
134
- */
135
- componentsProps: e.shape({
136
- root: e.instanceOf(Object),
137
- listSubheader: e.instanceOf(Object),
138
- listItem: e.instanceOf(Object)
139
- })
140
56
  };
141
- d.defaultProps = {
57
+ F.defaultProps = {
142
58
  itemListType: {},
143
59
  header: void 0,
144
- primary: void 0,
60
+ primary: "id",
145
61
  secondary: void 0,
146
62
  avatarVariant: "square",
147
63
  dense: !1,
@@ -150,9 +66,9 @@ d.defaultProps = {
150
66
  onListItemClick: void 0,
151
67
  onListItemDelete: void 0,
152
68
  emptySlot: q,
153
- components: A,
69
+ components: E,
154
70
  componentsProps: void 0
155
71
  };
156
72
  export {
157
- d as default
73
+ F as default
158
74
  };
@@ -0,0 +1,3 @@
1
+ import Component from './ItemList';
2
+ declare const StyledComponent: typeof Component;
3
+ export default StyledComponent;
@@ -4,7 +4,7 @@ import s from "./ItemList.js";
4
4
  const t = "ItemList", o = `Vdt${t}`, i = m(o)(s), n = r(i, {
5
5
  name: o,
6
6
  overridesResolver: (d, e) => e.root
7
- })(() => ({}));
7
+ })({});
8
8
  n.displayName = t;
9
9
  export {
10
10
  n as default
@@ -0,0 +1,67 @@
1
+ /// <reference types="react" />
2
+ import { ListItem as MuiListItem } from '@mui/material';
3
+ import type { ItemType } from '@vidispine/types';
4
+ import VdtListItemAvatar from '../../entity/EntityListItem/components/EntityListItemAvatar';
5
+ import VdtListItemButton from '../../entity/EntityListItem/components/EntityListItemButton';
6
+ import VdtListItemSecondaryAction from '../../entity/EntityListItem/components/EntityListItemSecondaryAction';
7
+ import VdtListItemText from '../../entity/EntityListItem/components/EntityListItemText';
8
+ import type { WithOverrideProps } from '../../_types';
9
+ declare const defaultComponents: {
10
+ Root: typeof MuiListItem;
11
+ ListItemButton: typeof VdtListItemButton;
12
+ ListItemAvatar: typeof VdtListItemAvatar;
13
+ ListItemText: typeof VdtListItemText;
14
+ ListItemSecondaryAction: typeof VdtListItemSecondaryAction;
15
+ };
16
+ export interface ItemListItemProps extends WithOverrideProps<typeof defaultComponents> {
17
+ /**
18
+ * The ItemType to display as a list item
19
+ */
20
+ itemType?: ItemType;
21
+ /**
22
+ * Primary text for the list item
23
+ *
24
+ * Set to *field name* the value should be extracted from
25
+ * or set *function* which will get entity as argument
26
+ */
27
+ primary?: string | (({ itemType }: {
28
+ itemType: ItemType;
29
+ }) => string);
30
+ /**
31
+ * Secondary text for the list item
32
+ *
33
+ * Set to *field name* the value should be extracted from
34
+ * or set *function* which will get entity as argument
35
+ *
36
+ * Defaults to undefined
37
+ */
38
+ secondary?: string | (({ itemType }: {
39
+ itemType: ItemType;
40
+ }) => string);
41
+ /**
42
+ * Variant/shapes for the Avatar
43
+ */
44
+ avatarVariant?: 'circular' | 'rounded' | 'square';
45
+ /**
46
+ * Set true to show a skeleton placeholder
47
+ */
48
+ isLoading?: boolean;
49
+ /**
50
+ * Add event handler when list item is clicked
51
+ *
52
+ * Set `undefined` to disable
53
+ */
54
+ onClick?: (event: React.MouseEvent<HTMLDivElement>, payload: {
55
+ itemType?: ItemType;
56
+ }) => void;
57
+ /**
58
+ * Show a delete icon as secondary action
59
+ *
60
+ * Set `undefined` to hide
61
+ */
62
+ onDelete?: (event: React.MouseEvent<HTMLButtonElement>, payload: {
63
+ itemType?: ItemType;
64
+ }) => void;
65
+ }
66
+ declare const ItemListItem: React.FC<ItemListItemProps>;
67
+ export default ItemListItem;
@@ -1,122 +1,52 @@
1
- import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
- import t from "prop-types";
3
- import v from "@mui/material/ListItem";
4
- import T from "@vidispine/proptypes";
5
- import A from "../../entity/EntityListItem/components/EntityListItemAvatar.js";
6
- import O from "../../entity/EntityListItem/components/EntityListItemButton.js";
7
- import b from "../../entity/EntityListItem/components/EntityListItemSecondaryAction.js";
8
- import x from "../../entity/EntityListItem/components/EntityListItemText.js";
9
- const j = {
10
- Root: v,
11
- ListItemButton: O,
12
- ListItemAvatar: A,
13
- ListItemText: x,
14
- ListItemSecondaryAction: b
15
- };
16
- function m({
17
- itemType: o,
18
- primary: c,
19
- secondary: l,
20
- avatarVariant: p,
21
- isLoading: e,
1
+ import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
+ import u from "@mui/material/ListItem";
3
+ import y from "../../entity/EntityListItem/components/EntityListItemAvatar.js";
4
+ import A from "../../entity/EntityListItem/components/EntityListItemButton.js";
5
+ import x from "../../entity/EntityListItem/components/EntityListItemSecondaryAction.js";
6
+ import B from "../../entity/EntityListItem/components/EntityListItemText.js";
7
+ const E = {
8
+ Root: u,
9
+ ListItemButton: A,
10
+ ListItemAvatar: y,
11
+ ListItemText: B,
12
+ ListItemSecondaryAction: x
13
+ }, S = ({
14
+ itemType: e,
15
+ primary: s,
16
+ secondary: n,
17
+ avatarVariant: I,
18
+ isLoading: t,
22
19
  onClick: r,
23
- onDelete: I,
24
- components: f,
20
+ onDelete: d,
21
+ components: l,
25
22
  componentsProps: i
26
- }) {
23
+ }) => {
27
24
  const {
28
- Root: y,
29
- ListItemAvatar: d,
30
- ListItemText: u,
31
- ListItemButton: a,
32
- ListItemSecondaryAction: L
33
- } = f;
34
- return /* @__PURE__ */ s(y, { disablePadding: !e && !!r && !!a, ...i.root, children: [
35
- /* @__PURE__ */ s(a, { itemType: o, onClick: r, isLoading: e, ...i.listItemButton, children: [
36
- /* @__PURE__ */ n(d, { itemType: o, variant: p, isLoading: e, ...i.listItemAvatar }),
37
- /* @__PURE__ */ n(u, { itemType: o, primary: c, secondary: l, isLoading: e, ...i.listItemText })
25
+ Root: c,
26
+ ListItemAvatar: L,
27
+ ListItemText: v,
28
+ ListItemButton: m,
29
+ ListItemSecondaryAction: f
30
+ } = l;
31
+ return /* @__PURE__ */ a(c, { disablePadding: !t && !!r && !!m, ...i.root, children: [
32
+ /* @__PURE__ */ a(m, { itemType: e, onClick: r, isLoading: t, ...i.listItemButton, children: [
33
+ /* @__PURE__ */ o(L, { itemType: e, variant: I, isLoading: t, ...i.listItemAvatar }),
34
+ /* @__PURE__ */ o(v, { itemType: e, primary: s, secondary: n, isLoading: t, ...i.listItemText })
38
35
  ] }),
39
- /* @__PURE__ */ n(L, { itemType: o, onDelete: I, isLoading: e, ...i.listItemSecondaryAction })
36
+ /* @__PURE__ */ o(f, { itemType: e, onDelete: d, isLoading: t, ...i.listItemSecondaryAction })
40
37
  ] });
41
- }
42
- m.propTypes = {
43
- /**
44
- * The ItemType to display as a list item
45
- */
46
- itemType: T.ItemType,
47
- /**
48
- * Primary text for the list item
49
- *
50
- * Set to *field name* the value should be extracted from
51
- * or set *function* which will get entity as argument
52
- *
53
- * Defaults to id of entity
54
- */
55
- primary: t.oneOfType([t.string, t.func]),
56
- /**
57
- * Secondary text for the list item
58
- *
59
- * Set to *field name* the value should be extracted from
60
- * or set *function* which will get entity as argument
61
- *
62
- * Defaults to undefined
63
- */
64
- secondary: t.oneOfType([t.string, t.func]),
65
- /**
66
- * Variant/shapes for the Avatar
67
- */
68
- avatarVariant: t.oneOf(["circular", "rounded", "square"]),
69
- /**
70
- * Set true to show a skeleton placeholder
71
- */
72
- isLoading: t.bool,
73
- /**
74
- * Add event handler when list item is clicked
75
- *
76
- * Set `undefined` to disable
77
- */
78
- onClick: t.func,
79
- /**
80
- * Show a delete icon as secondary action
81
- *
82
- * Set `undefined` to hide
83
- */
84
- onDelete: t.func,
85
- // Overrides
86
- /**
87
- * Replace internal components
88
- */
89
- components: t.shape({
90
- Root: t.elementType,
91
- ListItemButton: t.elementType,
92
- ListItemAvatar: t.elementType,
93
- ListItemText: t.elementType,
94
- ListItemSecondaryAction: t.elementType
95
- }),
96
- /**
97
- * Add internal component props
98
- */
99
- componentsProps: t.shape({
100
- root: t.instanceOf(Object),
101
- listItemButton: t.instanceOf(Object),
102
- listItemAvatar: t.shape({
103
- entityAvatar: t.instanceOf(Object)
104
- }),
105
- listItemText: t.instanceOf(Object),
106
- listItemSecondaryAction: t.instanceOf(Object)
107
- })
108
38
  };
109
- m.defaultProps = {
39
+ S.defaultProps = {
110
40
  itemType: void 0,
111
- primary: void 0,
41
+ primary: "id",
112
42
  secondary: void 0,
113
43
  avatarVariant: "square",
114
44
  isLoading: !1,
115
45
  onClick: void 0,
116
46
  onDelete: void 0,
117
- components: j,
47
+ components: E,
118
48
  componentsProps: void 0
119
49
  };
120
50
  export {
121
- m as default
51
+ S as default
122
52
  };
@@ -0,0 +1,3 @@
1
+ import Component from './ItemListItem';
2
+ declare const StyledComponent: typeof Component;
3
+ export default StyledComponent;
@@ -4,7 +4,7 @@ import s from "./ItemListItem.js";
4
4
  const t = "ItemListItem", e = `Vdt${t}`, i = r(e)(s), n = m(i, {
5
5
  name: e,
6
6
  overridesResolver: (d, o) => o.root
7
- })(() => ({}));
7
+ })({});
8
8
  n.displayName = t;
9
9
  export {
10
10
  n as default
@@ -0,0 +1,44 @@
1
+ /// <reference types="react" />
2
+ import { Box as MuiBox } from '@mui/material';
3
+ import type { ItemType } from '@vidispine/types';
4
+ import { BlurredBackground as VdtBlurredBackground } from '../../general';
5
+ import type { StyledComponent, WithOverrideProps } from '../../_types';
6
+ declare const StyledMuiBox: typeof MuiBox;
7
+ declare const StyledVdtBlurredBackground: typeof VdtBlurredBackground;
8
+ type StyledMuiBoxImageType = StyledComponent<typeof MuiBox, {
9
+ image?: string;
10
+ backgroundSize?: React.CSSProperties['backgroundSize'];
11
+ }>;
12
+ declare const StyledMuiBoxImage: StyledMuiBoxImageType;
13
+ declare const defaultComponents: {
14
+ Root: typeof StyledMuiBox;
15
+ BlurredBackground: typeof StyledVdtBlurredBackground;
16
+ ImageBox: typeof StyledMuiBoxImage;
17
+ };
18
+ export interface ItemPosterProps extends WithOverrideProps<typeof defaultComponents> {
19
+ /**
20
+ * The ItemType to display as a list item
21
+ */
22
+ itemType?: ItemType;
23
+ /**
24
+ * The index of the poster
25
+ */
26
+ posterIndex?: number;
27
+ /**
28
+ * Cover the whole width/height of container
29
+ */
30
+ backgroundSize?: 'cover' | 'contain' | 'auto' | React.CSSProperties['backgroundSize'];
31
+ /**
32
+ * Whether to show a blurred background behind the thumbnail or not
33
+ */
34
+ showBlurredBackground?: boolean;
35
+ /**
36
+ * A function that handles the poster being clicked
37
+ */
38
+ onClick?: (event: React.MouseEvent<HTMLDivElement>, payload: {
39
+ itemType: ItemType;
40
+ posterIndex: number;
41
+ }) => void;
42
+ }
43
+ declare const ItemPoster: React.FC<ItemPosterProps>;
44
+ export default ItemPoster;
@@ -1,10 +1,8 @@
1
- import { jsxs as x, jsx as c } from "react/jsx-runtime";
2
- import o from "prop-types";
3
- import a from "@mui/material/Box";
4
- import { styled as n } from "@mui/material/styles";
5
- import b from "@vidispine/proptypes";
1
+ import { jsxs as k, jsx as m } from "react/jsx-runtime";
2
+ import p from "@mui/material/Box";
3
+ import { styled as e } from "@mui/material/styles";
6
4
  import "../../general/AvatarMenu/index.js";
7
- import y from "../../general/BlurredBackground/index.js";
5
+ import x from "../../general/BlurredBackground/index.js";
8
6
  import "../../general/CalendarPicker/index.js";
9
7
  import "../../general/CompactBadge/index.js";
10
8
  import "../../general/CompactLabel/index.js";
@@ -16,26 +14,27 @@ import "../../general/MenuItem/index.js";
16
14
  import "../../general/ScrubLine/index.js";
17
15
  import "../../general/Sort/index.js";
18
16
  import "../../general/TablePagination/index.js";
17
+ import "../../general/Form/index.js";
19
18
  import "../../general/ThemeContext/ThemeContext.js";
20
- const I = n(a)(({
21
- onClick: e
19
+ const f = e(p)(({
20
+ onClick: o
22
21
  }) => ({
23
22
  height: "100%",
24
23
  width: "100%",
25
24
  position: "relative",
26
- ...e && {
25
+ ...o && {
27
26
  cursor: "pointer"
28
27
  }
29
- })), v = n(y)(() => ({
28
+ })), v = e(x)(() => ({
30
29
  height: "100%",
31
30
  width: "100%",
32
31
  position: "absolute",
33
32
  zIndex: 0,
34
33
  top: 0
35
- })), T = n(a, {
36
- shouldForwardProp: (e) => !["image", "backgroundSize"].includes(e)
34
+ })), b = e(p, {
35
+ shouldForwardProp: (o) => !["image", "backgroundSize"].includes(o)
37
36
  })(({
38
- image: e,
37
+ image: o,
39
38
  backgroundSize: t
40
39
  }) => ({
41
40
  height: "inherit",
@@ -43,90 +42,50 @@ const I = n(a)(({
43
42
  position: "relative",
44
43
  zIndex: 5,
45
44
  transition: "all .3s ease-in",
46
- background: e ? `url(${e})` : "none",
45
+ background: o ? `url(${o})` : "none",
47
46
  backgroundPosition: "center",
48
47
  backgroundRepeat: "no-repeat",
49
48
  backgroundSize: t
50
- })), S = {
51
- Root: I,
49
+ })), y = {
50
+ Root: f,
52
51
  BlurredBackground: v,
53
- ImageBox: T
54
- };
55
- function s({
56
- itemType: e,
52
+ ImageBox: b
53
+ }, I = ({
54
+ itemType: o,
57
55
  posterIndex: t,
58
- showBlurredBackground: u,
59
- backgroundSize: l,
60
- onClick: p,
61
- components: g,
56
+ showBlurredBackground: c,
57
+ backgroundSize: u,
58
+ onClick: n,
59
+ components: l,
62
60
  componentsProps: r
63
- }) {
64
- var m;
61
+ }) => {
62
+ var a;
65
63
  const {
66
- Root: B,
67
- BlurredBackground: h,
68
- ImageBox: k
69
- } = g, {
64
+ Root: s,
65
+ BlurredBackground: g,
66
+ ImageBox: h
67
+ } = l, {
70
68
  posters: i
71
- } = e || {}, d = (m = i == null ? void 0 : i.uri) == null ? void 0 : m[t];
72
- return /* @__PURE__ */ x(B, { onClick: typeof p != "function" ? void 0 : (f) => {
73
- p(f, {
74
- itemType: e,
69
+ } = o || {}, d = (a = i == null ? void 0 : i.uri) == null ? void 0 : a[t];
70
+ return /* @__PURE__ */ k(s, { onClick: typeof n != "function" ? void 0 : (B) => {
71
+ n(B, {
72
+ itemType: o,
75
73
  posterIndex: t
76
74
  });
77
75
  }, ...r.root, children: [
78
- u && /* @__PURE__ */ c(h, { image: d, ...r.blurredBackground }),
79
- /* @__PURE__ */ c(k, { component: "div", image: d, backgroundSize: l, ...r.imageBox })
76
+ c && /* @__PURE__ */ m(g, { image: d, ...r.blurredBackground }),
77
+ /* @__PURE__ */ m(h, { component: "div", image: d, backgroundSize: u, ...r.imageBox })
80
78
  ] });
81
- }
82
- s.propTypes = {
83
- /**
84
- * The ItemType to display as a list item
85
- */
86
- itemType: b.ItemType,
87
- /**
88
- * The index of the poster
89
- */
90
- posterIndex: o.number,
91
- /**
92
- * Cover the whole width/height of container
93
- */
94
- backgroundSize: o.string,
95
- /**
96
- * Whether to show a blurred background behind the thumbnail or not
97
- */
98
- showBlurredBackground: o.bool,
99
- /**
100
- * A function that handles the poster being clicked
101
- */
102
- onClick: o.func,
103
- // Overrides
104
- /**
105
- * Replace internal components
106
- */
107
- components: o.shape({
108
- Root: o.elementType,
109
- BlurredBackground: o.elementType,
110
- ImageBox: o.elementType
111
- }),
112
- /**
113
- * Add internal component props
114
- */
115
- componentsProps: o.shape({
116
- root: o.instanceOf(Object),
117
- blurredBackground: o.instanceOf(Object),
118
- imageBox: o.instanceOf(Object)
119
- })
120
79
  };
121
- s.defaultProps = {
80
+ I.defaultProps = {
122
81
  itemType: void 0,
123
82
  posterIndex: 0,
124
83
  showBlurredBackground: !1,
125
84
  backgroundSize: "cover",
126
85
  onClick: void 0,
127
- components: S,
86
+ components: y,
128
87
  componentsProps: void 0
129
88
  };
130
89
  export {
131
- s as default
90
+ I as default
132
91
  };
@@ -0,0 +1,3 @@
1
+ import Component from './ItemPoster';
2
+ declare const StyledComponent: typeof Component;
3
+ export default StyledComponent;