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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,34 +1,34 @@
1
- import { parseMetadataType as e } from "@vidispine/vdt-js";
2
- const i = (t, {
3
- itemType: n,
4
- collectionType: r
1
+ import { parseMetadataType as u } from "@vidispine/vdt-js";
2
+ const d = (t, {
3
+ itemType: r,
4
+ collectionType: n
5
5
  }) => {
6
- const f = typeof t == "function" && t;
7
- if (f)
8
- return n ? f({
9
- itemType: n
10
- }) : r ? f({
11
- collectionType: r
6
+ const a = typeof t == "function" && t;
7
+ if (a)
8
+ return r ? a({
9
+ itemType: r
10
+ }) : n ? a({
11
+ collectionType: n
12
12
  }) : void 0;
13
- const a = typeof t == "string" && t;
14
- if (a) {
13
+ const f = typeof t == "string" && t;
14
+ if (f === "id") {
15
15
  const {
16
- metadata: u
17
- } = n || r || {}, {
18
- [a]: s
19
- } = e(u, {
20
- flat: !0,
21
- arrayOnSingleValue: !1
22
- });
16
+ id: s
17
+ } = r || n || {};
23
18
  return s;
24
19
  }
25
- if (a === "id") {
20
+ if (f) {
26
21
  const {
27
- id: u
28
- } = n || r || {};
29
- return u;
22
+ metadata: s
23
+ } = r || n || {}, {
24
+ [f]: o
25
+ } = u(s, {
26
+ flat: !0,
27
+ arrayOnSingleValue: !1
28
+ });
29
+ return o;
30
30
  }
31
31
  };
32
32
  export {
33
- i as getEntityText
33
+ d as getEntityText
34
34
  };
@@ -0,0 +1,2 @@
1
+ export { getEntityProp } from './getEntityProp';
2
+ export { getEntityText } from './getEntityText';
@@ -0,0 +1,3 @@
1
+ export { default as EntityIcon } from './EntityIcon';
2
+ export { default as EntityAvatar } from './EntityAvatar';
3
+ export { default as EntityList } from './EntityList';
@@ -0,0 +1,59 @@
1
+ /// <reference types="react" />
2
+ import { Box as MuiBox, Menu as MuiMenu } from '@mui/material';
3
+ import VdtAvatar from './components/Avatar';
4
+ import VdtMenuItem from './components/MenuItem';
5
+ import type { StyledComponent, WithOverrideProps } from '../../_types';
6
+ declare const StyledVdtAvatar: typeof VdtAvatar;
7
+ type StyledVdtMenuItemType = StyledComponent<typeof VdtMenuItem, {
8
+ minWidth?: React.CSSProperties['minWidth'];
9
+ }>;
10
+ declare const StyledVdtMenuItem: StyledVdtMenuItemType;
11
+ declare const StyledMuiMenu: typeof MuiMenu;
12
+ declare const defaultComponents: {
13
+ Root: typeof MuiBox;
14
+ Avatar: typeof StyledVdtAvatar;
15
+ Menu: typeof StyledMuiMenu;
16
+ MenuItem: typeof StyledVdtMenuItem;
17
+ };
18
+ type AvatarMenuOption = {
19
+ label: string;
20
+ secondaryLabel?: string;
21
+ name?: string;
22
+ icon?: (props: any) => JSX.Element;
23
+ };
24
+ export interface AvatarMenuProps extends WithOverrideProps<typeof defaultComponents> {
25
+ /**
26
+ * Type for avatar button icons
27
+ */
28
+ type?: 'dots' | 'lines' | 'user';
29
+ /**
30
+ * Up to 3 characters to show inside avatar button (instead of icon)
31
+ */
32
+ characters?: string;
33
+ /**
34
+ * Variant/shapes for the list item avatars
35
+ */
36
+ variant?: 'circular' | 'rounded' | 'square';
37
+ /**
38
+ * Set min width of menu items
39
+ */
40
+ minWidth?: string;
41
+ /**
42
+ * The menu options
43
+ */
44
+ options?: AvatarMenuOption[];
45
+ /**
46
+ * Callback for clicking on the avatar
47
+ *
48
+ * _Note: Will open menu when clicked_
49
+ */
50
+ onAvatarClick?: React.MouseEventHandler<HTMLButtonElement>;
51
+ /**
52
+ * Callback for clicking on an option
53
+ *
54
+ * _Note: Will close menu when an option is clicked_
55
+ */
56
+ onOptionClick?: (event: React.MouseEvent<HTMLLIElement>, option: AvatarMenuOption) => void;
57
+ }
58
+ declare const AvatarMenu: React.FC<AvatarMenuProps>;
59
+ export default AvatarMenu;
@@ -1,143 +1,82 @@
1
- import { jsxs as A, jsx as a } from "react/jsx-runtime";
2
- import { useState as I } from "react";
3
- import e from "prop-types";
4
- import T from "@mui/material/Box";
5
- import x from "@mui/material/Menu";
6
- import { styled as l, darken as j } from "@mui/material/styles";
1
+ import { jsxs as b, jsx as i } from "react/jsx-runtime";
2
+ import { useState as x } from "react";
3
+ import A from "@mui/material/Box";
4
+ import I from "@mui/material/Menu";
5
+ import { styled as a, darken as O } from "@mui/material/styles";
7
6
  import S from "./components/Avatar.js";
8
7
  import W from "./components/MenuItem.js";
9
- const P = l(S)(({
10
- theme: t,
11
- characters: o
8
+ const z = a(S)(({
9
+ theme: o,
10
+ characters: n
12
11
  }) => ({
13
12
  transition: "color .2s ease-out",
14
- backgroundColor: t.palette.primary.main,
13
+ backgroundColor: o.palette.primary.main,
15
14
  "&:hover": {
16
- backgroundColor: j(t.palette.primary.main, 0.3)
15
+ backgroundColor: O(o.palette.primary.main, 0.3)
17
16
  },
18
- ...(o == null ? void 0 : o.length) > 1 ? {
19
- fontSize: `${(o == null ? void 0 : o.length) === 2 ? "16" : "12"}px`,
17
+ ...(n == null ? void 0 : n.length) > 1 ? {
18
+ fontSize: `${(n == null ? void 0 : n.length) === 2 ? "16" : "12"}px`,
20
19
  lineHeight: 0,
21
20
  fontWeight: 600
22
21
  } : {
23
22
  fontWeight: 500
24
23
  }
25
- })), z = l(W, {
26
- shouldForwardProp: (t) => t !== "minWidth"
24
+ })), B = a(W, {
25
+ shouldForwardProp: (o) => o !== "minWidth"
27
26
  })(({
28
- minWidth: t
27
+ minWidth: o
29
28
  }) => ({
30
- minWidth: t
31
- })), B = l(x)({
29
+ minWidth: o
30
+ })), j = a(I)({
32
31
  "& .MuiPaper-root": {
33
32
  // Reduce the "opacity"
34
33
  backgroundImage: "linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05))"
35
34
  }
36
- }), R = {
37
- Root: T,
38
- Avatar: P,
39
- Menu: B,
40
- MenuItem: z
41
- };
42
- function c({
43
- type: t,
44
- characters: o,
35
+ }), E = {
36
+ Root: A,
37
+ Avatar: z,
38
+ Menu: j,
39
+ MenuItem: B
40
+ }, P = ({
41
+ type: o,
42
+ characters: n,
45
43
  variant: f,
46
44
  minWidth: g,
47
- options: v,
48
- onAvatarClick: m,
45
+ options: s,
46
+ onAvatarClick: l,
49
47
  onOptionClick: u,
50
- components: y,
51
- componentsProps: r
52
- }) {
48
+ components: v,
49
+ componentsProps: e
50
+ }) => {
53
51
  const {
54
- Root: O,
55
- Avatar: h,
56
- Menu: M,
57
- MenuItem: b
58
- } = y, [s, p] = I(null), k = (n) => {
59
- p(n.currentTarget), m && m(n);
60
- }, d = () => {
61
- p(null);
62
- }, C = (n, i) => {
63
- u && u(n, i), d();
52
+ Root: M,
53
+ Avatar: c,
54
+ Menu: h,
55
+ MenuItem: k
56
+ } = v, [m, d] = x(null), C = (t) => {
57
+ d(t.currentTarget), l && l(t);
58
+ }, p = () => {
59
+ d(null);
60
+ }, y = (t, r) => {
61
+ u && u(t, r), p();
64
62
  };
65
- return /* @__PURE__ */ A(O, { ...r.root, children: [
66
- /* @__PURE__ */ a(h, { onClick: k, type: t, variant: f, characters: o, ...r.avatar }),
67
- /* @__PURE__ */ a(M, { anchorEl: s, keepMounted: !0, open: !!s, onClose: d, PaperProps: {
63
+ return /* @__PURE__ */ b(M, { ...e.root, children: [
64
+ /* @__PURE__ */ i(c, { onClick: C, iconType: o, variant: f, characters: n, ...e.avatar }),
65
+ /* @__PURE__ */ i(h, { anchorEl: m, keepMounted: !0, open: !!m, onClose: p, PaperProps: {
68
66
  square: !0,
69
- ...r.menu.PaperProps || {}
67
+ ...e.menu.PaperProps || {}
70
68
  }, anchorOrigin: {
71
69
  vertical: "bottom",
72
70
  horizontal: "center",
73
- ...r.menu.anchorOrigin || {}
71
+ ...e.menu.anchorOrigin || {}
74
72
  }, transformOrigin: {
75
73
  vertical: "top",
76
74
  horizontal: "center",
77
- ...r.menu.transformOrigin || {}
78
- }, ...r.menu, children: v.map((n) => /* @__PURE__ */ a(b, { onClick: (i) => C(i, n), option: n, minWidth: g, ...r.menuItem }, n.name || n.label)) })
75
+ ...e.menu.transformOrigin || {}
76
+ }, ...e.menu, children: s.map((t) => /* @__PURE__ */ i(k, { onClick: (r) => y(r, t), option: t, minWidth: g, ...e.menuItem }, t.name || t.label)) })
79
77
  ] });
80
- }
81
- c.propTypes = {
82
- /**
83
- * Type for avatar button icons
84
- */
85
- type: e.oneOf(["dots", "lines", "user"]),
86
- /**
87
- * Up to 3 characters to show inside avatar button (instead of icon)
88
- */
89
- characters: e.string,
90
- /**
91
- * Variant/shapes for the list item avatars
92
- */
93
- variant: e.oneOf(["circular", "rounded", "square"]),
94
- /**
95
- * Set min width of menu items
96
- */
97
- minWidth: e.string,
98
- /**
99
- * The menu options
100
- */
101
- options: e.arrayOf(e.shape({
102
- icon: e.elementType,
103
- name: e.string,
104
- label: e.string,
105
- secondaryLabel: e.string
106
- })),
107
- // Callbacks
108
- /**
109
- * Callback for clicking on the avatar
110
- *
111
- * Note: Will open menu when clicked
112
- */
113
- onAvatarClick: e.func,
114
- /**
115
- * Callback for clicking on an option
116
- *
117
- * Note: Will close menu when an option is clicked
118
- */
119
- onOptionClick: e.func,
120
- // Overrides
121
- /**
122
- * Replace internal components
123
- */
124
- components: e.shape({
125
- Root: e.elementType,
126
- Avatar: e.elementType,
127
- Menu: e.elementType,
128
- MenuItem: e.elementType
129
- }),
130
- /**
131
- * Add internal component props
132
- */
133
- componentsProps: e.shape({
134
- root: e.instanceOf(Object),
135
- avatar: e.instanceOf(Object),
136
- menu: e.instanceOf(Object),
137
- menuItem: e.instanceOf(Object)
138
- })
139
78
  };
140
- c.defaultProps = {
79
+ P.defaultProps = {
141
80
  type: "dots",
142
81
  characters: void 0,
143
82
  variant: "circular",
@@ -145,9 +84,9 @@ c.defaultProps = {
145
84
  options: [],
146
85
  onAvatarClick: void 0,
147
86
  onOptionClick: void 0,
148
- components: R,
87
+ components: E,
149
88
  componentsProps: void 0
150
89
  };
151
90
  export {
152
- c as default
91
+ P as default
153
92
  };
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { AvatarProps as MuiAvatarProps } from '@mui/material';
3
+ export interface AvatarProps extends MuiAvatarProps<'button'> {
4
+ iconType?: 'dots' | 'lines' | 'user';
5
+ characters?: string;
6
+ }
7
+ declare const Avatar: React.FC<AvatarProps>;
8
+ export default Avatar;
@@ -1,14 +1,15 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import i from "@mui/icons-material/esm/MoreVert";
3
- import m from "@mui/icons-material/esm/Menu";
4
- import s from "@mui/icons-material/esm/Person";
5
- import a from "@mui/material/Avatar";
6
- import f from "@mui/material/IconButton";
7
- function b({
8
- type: e,
3
+ import a from "@mui/icons-material/esm/Menu";
4
+ import m from "@mui/icons-material/esm/Person";
5
+ import c from "@mui/material/Avatar";
6
+ import p from "@mui/material/IconButton";
7
+ const f = ({
8
+ iconType: e,
9
9
  characters: r,
10
- ...n
11
- }) {
10
+ color: n,
11
+ ...s
12
+ }) => {
12
13
  let o;
13
14
  switch (e) {
14
15
  case "dots": {
@@ -16,15 +17,19 @@ function b({
16
17
  break;
17
18
  }
18
19
  case "lines": {
19
- o = m;
20
+ o = a;
20
21
  break;
21
22
  }
22
23
  case "user":
23
24
  default:
24
- o = s;
25
+ o = m;
25
26
  }
26
- return /* @__PURE__ */ t(a, { component: f, ...n, children: r && typeof r == "string" ? r.substring(0, 3) : /* @__PURE__ */ t(o, {}) });
27
- }
27
+ return /* @__PURE__ */ t(c, { component: p, color: n, ...s, children: r && typeof r == "string" ? r.substring(0, 3) : /* @__PURE__ */ t(o, {}) });
28
+ };
29
+ f.defaultProps = {
30
+ iconType: "user",
31
+ characters: void 0
32
+ };
28
33
  export {
29
- b as default
34
+ f as default
30
35
  };
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { MenuItemProps as MuiMenuItemProps } from '@mui/material';
3
+ export interface MenuItemProps extends MuiMenuItemProps {
4
+ option: {
5
+ label: string;
6
+ icon?: (props: any) => JSX.Element;
7
+ secondaryLabel?: string;
8
+ };
9
+ }
10
+ declare const MenuItem: React.FC<MenuItemProps>;
11
+ export default MenuItem;
@@ -1,29 +1,28 @@
1
1
  import { jsxs as m, jsx as o } from "react/jsx-runtime";
2
2
  import c from "@mui/material/MenuItem";
3
- import a from "@mui/material/ListItemIcon";
4
- import l from "@mui/material/ListItemText";
5
- import s from "@mui/material/Typography";
3
+ import s from "@mui/material/ListItemIcon";
4
+ import a from "@mui/material/ListItemText";
5
+ import l from "@mui/material/Typography";
6
6
  import { styled as p } from "@mui/material/styles";
7
- const d = p(s)(({
7
+ const d = p(l)(({
8
8
  theme: r
9
9
  }) => ({
10
10
  marginLeft: r.spacing(3)
11
- }));
12
- function g({
11
+ })), g = ({
13
12
  option: r,
14
- ...n
15
- }) {
13
+ ...i
14
+ }) => {
16
15
  const {
17
16
  icon: t,
18
- label: i,
17
+ label: n,
19
18
  secondaryLabel: e
20
19
  } = r || {};
21
- return /* @__PURE__ */ m(c, { ...n, children: [
22
- t && /* @__PURE__ */ o(a, { children: /* @__PURE__ */ o(t, { fontSize: "small" }) }),
23
- /* @__PURE__ */ o(l, { children: i }),
20
+ return /* @__PURE__ */ m(c, { ...i, children: [
21
+ t && /* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(t, { fontSize: "small" }) }),
22
+ /* @__PURE__ */ o(a, { children: n }),
24
23
  e && /* @__PURE__ */ o(d, { variant: "body2", color: "text.secondary", children: e })
25
24
  ] });
26
- }
25
+ };
27
26
  export {
28
27
  g as default
29
28
  };
@@ -0,0 +1,3 @@
1
+ import Component from './AvatarMenu';
2
+ declare const StyledComponent: typeof Component;
3
+ export default StyledComponent;
@@ -4,7 +4,7 @@ import m from "./AvatarMenu.js";
4
4
  const o = "AvatarMenu", e = `Vdt${o}`, s = n(e)(m), a = r(s, {
5
5
  name: e,
6
6
  overridesResolver: (i, t) => t.root
7
- })(() => ({}));
7
+ })({});
8
8
  a.displayName = o;
9
9
  export {
10
10
  a as default
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ import { Box as MuiBox } from '@mui/material';
3
+ import type { StyledComponent, WithOverrideProps } from '../../_types';
4
+ type StyledMuiBoxType = StyledComponent<typeof MuiBox, {
5
+ color?: React.CSSProperties['backgroundColor'];
6
+ image?: string;
7
+ blur?: number;
8
+ grayscale?: number;
9
+ }>;
10
+ declare const StyledMuiBox: StyledMuiBoxType;
11
+ declare const defaultComponents: {
12
+ Root: typeof StyledMuiBox;
13
+ };
14
+ export interface BlurredBackgroundProps extends WithOverrideProps<typeof defaultComponents> {
15
+ /**
16
+ * The image uri to show as blurred
17
+ */
18
+ image?: string;
19
+ /**
20
+ * Set a blurred background color (works with a sx theme palette string)
21
+ *
22
+ * _Note: `image` has precedence_
23
+ */
24
+ color?: string | React.CSSProperties['backgroundColor'];
25
+ /**
26
+ * Set blur amount (in px)
27
+ */
28
+ blur?: number;
29
+ /**
30
+ * Set grayscale amount (in percentage)
31
+ */
32
+ grayscale?: number;
33
+ }
34
+ declare const BlurredBackground: React.FC<BlurredBackgroundProps>;
35
+ export default BlurredBackground;
@@ -1,85 +1,45 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import o from "prop-types";
3
- import u from "@mui/material/Box";
4
- import { styled as l } from "@mui/material/styles";
5
- const m = l(u, {
6
- shouldForwardProp: (r) => !["image", "blur", "grayscale"].includes(r)
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import i from "@mui/material/Box";
3
+ import { styled as u } from "@mui/material/styles";
4
+ const l = u(i, {
5
+ shouldForwardProp: (o) => !["image", "blur", "grayscale"].includes(o)
7
6
  })(({
8
- color: r,
9
- image: e,
7
+ color: o,
8
+ image: r,
10
9
  blur: t,
11
- grayscale: n
10
+ grayscale: e
12
11
  }) => ({
13
12
  height: "100%",
14
13
  width: "100%",
15
- backgroundColor: r,
16
- backgroundImage: `url(${e})`,
14
+ backgroundColor: o,
15
+ backgroundImage: `url(${r})`,
17
16
  backgroundSize: "cover",
18
17
  backgroundRepeat: "no-repeat",
19
18
  backgroundPosition: "center",
20
- filter: `blur(${Math.max(t, 0)}px) grayscale(${Math.max(n, 0)}%)`
21
- })), d = {
22
- Root: m
23
- };
24
- function s({
25
- image: r,
26
- color: e,
19
+ filter: `blur(${Math.max(t, 0)}px) grayscale(${Math.max(e, 0)}%)`
20
+ })), s = {
21
+ Root: l
22
+ }, m = ({
23
+ image: o,
24
+ color: r,
27
25
  blur: t,
28
- grayscale: n,
29
- components: c,
30
- componentsProps: a
31
- }) {
26
+ grayscale: e,
27
+ components: a,
28
+ componentsProps: n
29
+ }) => {
32
30
  const {
33
- Root: p
34
- } = c;
35
- return /* @__PURE__ */ i(p, { component: "div", image: r, blur: t, grayscale: n, ...a.root, sx: {
36
- ...!r && {
37
- backgroundColor: e
38
- },
39
- ...a.root.sx || {}
40
- } });
41
- }
42
- s.propTypes = {
43
- /**
44
- * The image uri to show as blurred
45
- */
46
- image: o.string,
47
- /**
48
- * Set a blurred background color (works with a sx theme palette string)
49
- *
50
- * Note: `image` has precedence
51
- */
52
- color: o.string,
53
- /**
54
- * Set blur amount (in px)
55
- */
56
- blur: o.number,
57
- /**
58
- * Set grayscale amount (in percentage)
59
- */
60
- grayscale: o.number,
61
- // Overrides
62
- /**
63
- * Replace internal components
64
- */
65
- components: o.shape({
66
- Root: o.elementType
67
- }),
68
- /**
69
- * Add internal component props
70
- */
71
- componentsProps: o.shape({
72
- root: o.instanceOf(Object)
73
- })
31
+ Root: c
32
+ } = a;
33
+ return /* @__PURE__ */ d(c, { component: "div", image: o, color: r, blur: t, grayscale: e, ...n.root });
74
34
  };
75
- s.defaultProps = {
35
+ m.defaultProps = {
76
36
  image: void 0,
77
37
  color: "primary.main",
78
38
  blur: 20,
79
39
  grayscale: 50,
80
- components: d,
40
+ components: s,
81
41
  componentsProps: void 0
82
42
  };
83
43
  export {
84
- s as default
44
+ m as default
85
45
  };
@@ -0,0 +1,3 @@
1
+ import Component from './BlurredBackground';
2
+ declare const StyledComponent: typeof Component;
3
+ export default StyledComponent;
@@ -4,7 +4,7 @@ import d from "./BlurredBackground.js";
4
4
  const o = "BlurredBackground", r = `Vdt${o}`, m = n(r)(d), s = t(m, {
5
5
  name: r,
6
6
  overridesResolver: (i, e) => e.root
7
- })(() => ({}));
7
+ })({});
8
8
  s.displayName = o;
9
9
  export {
10
10
  s as default