@vidispine/vdt-mui 23.2.0-pre.2 → 23.2.0

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 (263) hide show
  1. package/dist/cjs/_utils/generateBadges.js +1 -0
  2. package/dist/cjs/_utils/isDefinedValue.js +1 -0
  3. package/dist/cjs/_utils/omit.js +1 -0
  4. package/dist/cjs/_utils/showSlot.js +1 -0
  5. package/dist/cjs/_utils/uuidv4.js +1 -0
  6. package/dist/cjs/_utils/withOverrides.js +1 -0
  7. package/dist/cjs/collection/CollectionCard/CollectionCard.js +1 -0
  8. package/dist/cjs/collection/CollectionCard/components/CollectionCardMedia.js +1 -0
  9. package/dist/cjs/collection/CollectionCard/index.js +1 -0
  10. package/dist/cjs/collection/CollectionList/CollectionList.js +1 -0
  11. package/dist/cjs/collection/CollectionList/index.js +1 -0
  12. package/dist/cjs/collection/CollectionListItem/CollectionListItem.js +1 -0
  13. package/dist/cjs/collection/CollectionListItem/index.js +1 -0
  14. package/dist/cjs/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +1 -0
  15. package/dist/cjs/collection/CollectionRepresentativeThumbnail/index.js +1 -0
  16. package/dist/cjs/entity/EntityAvatar/EntityAvatar.js +1 -0
  17. package/dist/cjs/entity/EntityAvatar/index.js +1 -0
  18. package/dist/cjs/entity/EntityCard/components/EntityCardActions.js +1 -0
  19. package/dist/cjs/entity/EntityCard/components/EntityCardBase.js +1 -0
  20. package/dist/cjs/entity/EntityCard/components/EntityCardContent.js +1 -0
  21. package/dist/cjs/entity/EntityCard/components/EntityCardHeader.js +1 -0
  22. package/dist/cjs/entity/EntityIcon/EntityIcon.js +1 -0
  23. package/dist/cjs/entity/EntityIcon/index.js +1 -0
  24. package/dist/cjs/entity/EntityList/EntityList.js +1 -0
  25. package/dist/cjs/entity/EntityList/index.js +1 -0
  26. package/dist/cjs/entity/EntityListItem/components/EntityListItemAvatar.js +1 -0
  27. package/dist/cjs/entity/EntityListItem/components/EntityListItemButton.js +1 -0
  28. package/dist/cjs/entity/EntityListItem/components/EntityListItemSecondaryAction.js +1 -0
  29. package/dist/cjs/entity/EntityListItem/components/EntityListItemText.js +1 -0
  30. package/dist/cjs/entity/EntityTableRow/components/EntityTableCellAvatar.js +1 -0
  31. package/dist/cjs/entity/EntityTableRow/components/EntityTableCellCheckbox.js +1 -0
  32. package/dist/cjs/entity/_utils/getEntityProp.js +1 -0
  33. package/dist/cjs/entity/_utils/getEntityText.js +1 -0
  34. package/dist/cjs/general/AvatarMenu/AvatarMenu.js +1 -0
  35. package/dist/cjs/general/AvatarMenu/components/Avatar.js +1 -0
  36. package/dist/cjs/general/AvatarMenu/components/MenuItem.js +1 -0
  37. package/dist/cjs/general/AvatarMenu/index.js +1 -0
  38. package/dist/cjs/general/BlurredBackground/BlurredBackground.js +1 -0
  39. package/dist/cjs/general/BlurredBackground/index.js +1 -0
  40. package/dist/cjs/general/CalendarPicker/CalendarPicker.js +1 -0
  41. package/dist/cjs/general/CalendarPicker/components/PickersDay.js +1 -0
  42. package/dist/cjs/general/CalendarPicker/index.js +1 -0
  43. package/dist/cjs/general/CalendarPicker/utils/index.js +1 -0
  44. package/dist/cjs/general/CompactBadge/CompactBadge.js +1 -0
  45. package/dist/cjs/general/CompactBadge/index.js +1 -0
  46. package/dist/cjs/general/CompactLabel/CompactLabel.js +1 -0
  47. package/dist/cjs/general/CompactLabel/index.js +1 -0
  48. package/dist/cjs/general/CornerLabelPlacer/CornerLabelPlacer.js +1 -0
  49. package/dist/cjs/general/CornerLabelPlacer/index.js +1 -0
  50. package/dist/cjs/general/ExpandButton/ExpandButton.js +1 -0
  51. package/dist/cjs/general/ExpandButton/index.js +1 -0
  52. package/dist/cjs/general/Form/Form.js +1 -0
  53. package/dist/cjs/general/Form/index.js +1 -0
  54. package/dist/cjs/general/ImageCollage/ImageCollage.js +1 -0
  55. package/dist/cjs/general/ImageCollage/index.js +1 -0
  56. package/dist/cjs/general/MediaIcon/MediaIcon.js +1 -0
  57. package/dist/cjs/general/MediaIcon/index.js +1 -0
  58. package/dist/cjs/general/MenuItem/MenuItem.js +1 -0
  59. package/dist/cjs/general/MenuItem/index.js +1 -0
  60. package/dist/cjs/general/ScrubLine/ScrubLine.js +1 -0
  61. package/dist/cjs/general/ScrubLine/index.js +1 -0
  62. package/dist/cjs/general/Sort/Sort.js +1 -0
  63. package/dist/cjs/general/Sort/components/ButtonBase.js +1 -0
  64. package/dist/cjs/general/Sort/components/MenuItem.js +1 -0
  65. package/dist/cjs/general/Sort/index.js +1 -0
  66. package/dist/cjs/general/TablePagination/TablePagination.js +1 -0
  67. package/dist/cjs/general/TablePagination/index.js +1 -0
  68. package/dist/cjs/general/ThemeContext/ThemeContext.js +1 -0
  69. package/dist/cjs/inputs/BasicDateTimeInput/BasicDateTimeInput.js +1 -0
  70. package/dist/cjs/inputs/BasicDateTimeInput/index.js +1 -0
  71. package/dist/cjs/inputs/BooleanInput/BooleanInput.js +1 -0
  72. package/dist/cjs/inputs/BooleanInput/index.js +1 -0
  73. package/dist/cjs/inputs/CheckboxGroupInput/CheckboxGroupInput.js +1 -0
  74. package/dist/cjs/inputs/CheckboxGroupInput/components/CheckboxGroup.js +1 -0
  75. package/dist/cjs/inputs/CheckboxGroupInput/index.js +1 -0
  76. package/dist/cjs/inputs/DateRangeInput/DateRangeInput.js +1 -0
  77. package/dist/cjs/inputs/DateRangeInput/components/utils/valueManagers.js +1 -0
  78. package/dist/cjs/inputs/DateRangeInput/index.js +1 -0
  79. package/dist/cjs/inputs/DateRangeInput/utils/dateHelpers.js +1 -0
  80. package/dist/cjs/inputs/DateTimeInput/DateTimeInput.js +1 -0
  81. package/dist/cjs/inputs/DateTimeInput/index.js +1 -0
  82. package/dist/cjs/inputs/MaskedTextInput/MaskedTextInput.js +1 -0
  83. package/dist/cjs/inputs/MaskedTextInput/components/MaskedInputComponent.js +1 -0
  84. package/dist/cjs/inputs/MaskedTextInput/index.js +1 -0
  85. package/dist/cjs/inputs/NumberInput/NumberInput.js +1 -0
  86. package/dist/cjs/inputs/NumberInput/index.js +1 -0
  87. package/dist/cjs/inputs/RadioGroupInput/RadioGroupInput.js +1 -0
  88. package/dist/cjs/inputs/RadioGroupInput/components/RadioGroup.js +1 -0
  89. package/dist/cjs/inputs/RadioGroupInput/index.js +1 -0
  90. package/dist/cjs/inputs/SelectInput/SelectInput.js +1 -0
  91. package/dist/cjs/inputs/SelectInput/index.js +1 -0
  92. package/dist/cjs/inputs/SliderInput/SliderInput.js +1 -0
  93. package/dist/cjs/inputs/SliderInput/components/Slider.js +1 -0
  94. package/dist/cjs/inputs/SliderInput/index.js +1 -0
  95. package/dist/cjs/inputs/TagInput/TagInput.js +1 -0
  96. package/dist/cjs/inputs/TagInput/index.js +1 -0
  97. package/dist/cjs/inputs/TextInput/TextInput.js +1 -0
  98. package/dist/cjs/inputs/TextInput/index.js +1 -0
  99. package/dist/cjs/inputs/_components/FormControlLabel.js +1 -0
  100. package/dist/cjs/inputs/_components/MenuItem.js +1 -0
  101. package/dist/cjs/item/ItemCard/ItemCard.js +1 -0
  102. package/dist/cjs/item/ItemCard/components/ItemCardMedia.js +1 -0
  103. package/dist/cjs/item/ItemCard/index.js +1 -0
  104. package/dist/cjs/item/ItemList/ItemList.js +1 -0
  105. package/dist/cjs/item/ItemList/index.js +1 -0
  106. package/dist/cjs/item/ItemListItem/ItemListItem.js +1 -0
  107. package/dist/cjs/item/ItemListItem/index.js +1 -0
  108. package/dist/cjs/item/ItemPoster/ItemPoster.js +1 -0
  109. package/dist/cjs/item/ItemPoster/index.js +1 -0
  110. package/dist/cjs/item/ItemPosterList/ItemPosterList.js +1 -0
  111. package/dist/cjs/item/ItemPosterList/index.js +1 -0
  112. package/dist/cjs/item/ItemPosterViewer/ItemPosterViewer.js +1 -0
  113. package/dist/cjs/item/ItemPosterViewer/components/Toolbar.js +1 -0
  114. package/dist/cjs/item/ItemPosterViewer/index.js +1 -0
  115. package/dist/cjs/item/ItemTable/ItemTable.js +1 -0
  116. package/dist/cjs/item/ItemTable/components/ItemTableHead.js +1 -0
  117. package/dist/cjs/item/ItemTable/index.js +1 -0
  118. package/dist/cjs/item/ItemTableRow/ItemTableRow.js +1 -0
  119. package/dist/cjs/item/ItemTableRow/index.js +1 -0
  120. package/dist/cjs/item/ItemThumbnail/ItemThumbnail.js +1 -0
  121. package/dist/cjs/item/ItemThumbnail/index.js +1 -0
  122. package/dist/cjs/search/SearchFilterForm/SearchFilterForm.js +1 -0
  123. package/dist/cjs/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +1 -0
  124. package/dist/cjs/search/SearchFilterForm/index.js +1 -0
  125. package/dist/cjs/search/SearchFilterForm/utils/mapValuesToFilter.js +1 -0
  126. package/dist/cjs/shape/ShapeMediaBadges/ShapeMediaBadges.js +1 -0
  127. package/dist/cjs/shape/ShapeMediaBadges/index.js +1 -0
  128. package/dist/cjs/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +1 -0
  129. package/dist/cjs/transcode/TranscodePresetMediaBadges/index.js +1 -0
  130. package/dist/es/_utils/generateBadges.js +75 -0
  131. package/dist/es/_utils/isDefinedValue.js +6 -0
  132. package/dist/es/_utils/omit.js +9 -0
  133. package/dist/es/_utils/showSlot.js +4 -0
  134. package/dist/es/_utils/uuidv4.js +7 -0
  135. package/dist/es/_utils/withOverrides.js +37 -0
  136. package/dist/es/collection/CollectionCard/CollectionCard.js +292 -0
  137. package/dist/es/collection/CollectionCard/components/CollectionCardMedia.js +14 -0
  138. package/dist/es/collection/CollectionCard/index.js +11 -0
  139. package/dist/es/collection/CollectionList/CollectionList.js +159 -0
  140. package/dist/es/collection/CollectionList/index.js +11 -0
  141. package/dist/es/collection/CollectionListItem/CollectionListItem.js +122 -0
  142. package/dist/es/collection/CollectionListItem/index.js +11 -0
  143. package/dist/es/collection/CollectionRepresentativeThumbnail/CollectionRepresentativeThumbnail.js +169 -0
  144. package/dist/es/collection/CollectionRepresentativeThumbnail/index.js +11 -0
  145. package/dist/es/entity/EntityAvatar/EntityAvatar.js +102 -0
  146. package/dist/es/entity/EntityAvatar/index.js +11 -0
  147. package/dist/es/entity/EntityCard/components/EntityCardActions.js +68 -0
  148. package/dist/es/entity/EntityCard/components/EntityCardBase.js +43 -0
  149. package/dist/es/entity/EntityCard/components/EntityCardContent.js +34 -0
  150. package/dist/es/entity/EntityCard/components/EntityCardHeader.js +115 -0
  151. package/dist/es/entity/EntityIcon/EntityIcon.js +107 -0
  152. package/dist/es/entity/EntityIcon/index.js +11 -0
  153. package/dist/es/entity/EntityList/EntityList.js +211 -0
  154. package/dist/es/entity/EntityList/index.js +11 -0
  155. package/dist/es/entity/EntityListItem/components/EntityListItemAvatar.js +26 -0
  156. package/dist/es/entity/EntityListItem/components/EntityListItemButton.js +27 -0
  157. package/dist/es/entity/EntityListItem/components/EntityListItemSecondaryAction.js +27 -0
  158. package/dist/es/entity/EntityListItem/components/EntityListItemText.js +26 -0
  159. package/dist/es/entity/EntityTableRow/components/EntityTableCellAvatar.js +26 -0
  160. package/dist/es/entity/EntityTableRow/components/EntityTableCellCheckbox.js +19 -0
  161. package/dist/es/entity/_utils/getEntityProp.js +11 -0
  162. package/dist/es/entity/_utils/getEntityText.js +34 -0
  163. package/dist/es/general/AvatarMenu/AvatarMenu.js +153 -0
  164. package/dist/es/general/AvatarMenu/components/Avatar.js +30 -0
  165. package/dist/es/general/AvatarMenu/components/MenuItem.js +29 -0
  166. package/dist/es/general/AvatarMenu/index.js +11 -0
  167. package/dist/es/general/BlurredBackground/BlurredBackground.js +85 -0
  168. package/dist/es/general/BlurredBackground/index.js +11 -0
  169. package/dist/es/general/CalendarPicker/CalendarPicker.js +397 -0
  170. package/dist/es/general/CalendarPicker/components/PickersDay.js +71 -0
  171. package/dist/es/general/CalendarPicker/index.js +11 -0
  172. package/dist/es/general/CalendarPicker/utils/index.js +17 -0
  173. package/dist/es/general/CompactBadge/CompactBadge.js +65 -0
  174. package/dist/es/general/CompactBadge/index.js +11 -0
  175. package/dist/es/general/CompactLabel/CompactLabel.js +70 -0
  176. package/dist/es/general/CompactLabel/index.js +11 -0
  177. package/dist/es/general/CornerLabelPlacer/CornerLabelPlacer.js +105 -0
  178. package/dist/es/general/CornerLabelPlacer/index.js +11 -0
  179. package/dist/es/general/ExpandButton/ExpandButton.js +81 -0
  180. package/dist/es/general/ExpandButton/index.js +11 -0
  181. package/dist/es/general/Form/Form.js +230 -0
  182. package/dist/es/general/Form/index.js +11 -0
  183. package/dist/es/general/ImageCollage/ImageCollage.js +151 -0
  184. package/dist/es/general/ImageCollage/index.js +11 -0
  185. package/dist/es/general/MediaIcon/MediaIcon.js +101 -0
  186. package/dist/es/general/MediaIcon/index.js +11 -0
  187. package/dist/es/general/MenuItem/MenuItem.js +91 -0
  188. package/dist/es/general/MenuItem/index.js +11 -0
  189. package/dist/es/general/ScrubLine/ScrubLine.js +141 -0
  190. package/dist/es/general/ScrubLine/index.js +11 -0
  191. package/dist/es/general/Sort/Sort.js +179 -0
  192. package/dist/es/general/Sort/components/ButtonBase.js +19 -0
  193. package/dist/es/general/Sort/components/MenuItem.js +15 -0
  194. package/dist/es/general/Sort/index.js +11 -0
  195. package/dist/es/general/TablePagination/TablePagination.js +104 -0
  196. package/dist/es/general/TablePagination/index.js +11 -0
  197. package/dist/es/general/ThemeContext/ThemeContext.js +96 -0
  198. package/dist/es/inputs/BasicDateTimeInput/BasicDateTimeInput.js +133 -0
  199. package/dist/es/inputs/BasicDateTimeInput/index.js +11 -0
  200. package/dist/es/inputs/BooleanInput/BooleanInput.js +196 -0
  201. package/dist/es/inputs/BooleanInput/index.js +11 -0
  202. package/dist/es/inputs/CheckboxGroupInput/CheckboxGroupInput.js +292 -0
  203. package/dist/es/inputs/CheckboxGroupInput/components/CheckboxGroup.js +81 -0
  204. package/dist/es/inputs/CheckboxGroupInput/index.js +11 -0
  205. package/dist/es/inputs/DateRangeInput/DateRangeInput.js +362 -0
  206. package/dist/es/inputs/DateRangeInput/components/utils/valueManagers.js +20 -0
  207. package/dist/es/inputs/DateRangeInput/index.js +11 -0
  208. package/dist/es/inputs/DateRangeInput/utils/dateHelpers.js +31 -0
  209. package/dist/es/inputs/DateTimeInput/DateTimeInput.js +250 -0
  210. package/dist/es/inputs/DateTimeInput/index.js +11 -0
  211. package/dist/es/inputs/MaskedTextInput/MaskedTextInput.js +235 -0
  212. package/dist/es/inputs/MaskedTextInput/components/MaskedInputComponent.js +13 -0
  213. package/dist/es/inputs/MaskedTextInput/index.js +11 -0
  214. package/dist/es/inputs/NumberInput/NumberInput.js +134 -0
  215. package/dist/es/inputs/NumberInput/index.js +11 -0
  216. package/dist/es/inputs/RadioGroupInput/RadioGroupInput.js +287 -0
  217. package/dist/es/inputs/RadioGroupInput/components/RadioGroup.js +72 -0
  218. package/dist/es/inputs/RadioGroupInput/index.js +11 -0
  219. package/dist/es/inputs/SelectInput/SelectInput.js +195 -0
  220. package/dist/es/inputs/SelectInput/index.js +11 -0
  221. package/dist/es/inputs/SliderInput/SliderInput.js +350 -0
  222. package/dist/es/inputs/SliderInput/components/Slider.js +124 -0
  223. package/dist/es/inputs/SliderInput/index.js +11 -0
  224. package/dist/es/inputs/TagInput/TagInput.js +356 -0
  225. package/dist/es/inputs/TagInput/index.js +11 -0
  226. package/dist/es/inputs/TextInput/TextInput.js +154 -0
  227. package/dist/es/inputs/TextInput/index.js +11 -0
  228. package/dist/es/inputs/_components/FormControlLabel.js +60 -0
  229. package/dist/es/inputs/_components/MenuItem.js +23 -0
  230. package/dist/es/item/ItemCard/ItemCard.js +293 -0
  231. package/dist/es/item/ItemCard/components/ItemCardMedia.js +20 -0
  232. package/dist/es/item/ItemCard/index.js +11 -0
  233. package/dist/es/item/ItemList/ItemList.js +158 -0
  234. package/dist/es/item/ItemList/index.js +11 -0
  235. package/dist/es/item/ItemListItem/ItemListItem.js +122 -0
  236. package/dist/es/item/ItemListItem/index.js +11 -0
  237. package/dist/es/item/ItemPoster/ItemPoster.js +132 -0
  238. package/dist/es/item/ItemPoster/index.js +11 -0
  239. package/dist/es/item/ItemPosterList/ItemPosterList.js +99 -0
  240. package/dist/es/item/ItemPosterList/index.js +11 -0
  241. package/dist/es/item/ItemPosterViewer/ItemPosterViewer.js +190 -0
  242. package/dist/es/item/ItemPosterViewer/components/Toolbar.js +27 -0
  243. package/dist/es/item/ItemPosterViewer/index.js +11 -0
  244. package/dist/es/item/ItemTable/ItemTable.js +201 -0
  245. package/dist/es/item/ItemTable/components/ItemTableHead.js +35 -0
  246. package/dist/es/item/ItemTable/index.js +11 -0
  247. package/dist/es/item/ItemTableRow/ItemTableRow.js +150 -0
  248. package/dist/es/item/ItemTableRow/index.js +11 -0
  249. package/dist/es/item/ItemThumbnail/ItemThumbnail.js +210 -0
  250. package/dist/es/item/ItemThumbnail/index.js +11 -0
  251. package/dist/es/search/SearchFilterForm/SearchFilterForm.js +138 -0
  252. package/dist/es/search/SearchFilterForm/hooks/UseSearchFilterFormInputs.js +130 -0
  253. package/dist/es/search/SearchFilterForm/index.js +12 -0
  254. package/dist/es/search/SearchFilterForm/utils/mapValuesToFilter.js +84 -0
  255. package/dist/es/shape/ShapeMediaBadges/ShapeMediaBadges.js +78 -0
  256. package/dist/es/shape/ShapeMediaBadges/index.js +11 -0
  257. package/dist/es/transcode/TranscodePresetMediaBadges/TranscodePresetMediaBadges.js +78 -0
  258. package/dist/es/transcode/TranscodePresetMediaBadges/index.js +11 -0
  259. package/dist/index.cjs.js +1 -0
  260. package/dist/index.es.js +93 -0
  261. package/package.json +35 -19
  262. package/dist/index.js +0 -13109
  263. package/dist/index.umd.cjs +0 -6
@@ -0,0 +1,70 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import n from "prop-types";
3
+ import i from "@mui/material/Typography";
4
+ import { styled as s } from "@mui/material/styles";
5
+ const d = s(i, {
6
+ shouldForwardProp: (r) => r !== "dark"
7
+ })(({
8
+ dark: r,
9
+ theme: o
10
+ }) => ({
11
+ maxWidth: "100%",
12
+ lineHeight: "unset",
13
+ borderRadius: "0.3em",
14
+ userSelect: "none",
15
+ pointerEvents: "none",
16
+ margin: o.spacing(0.5),
17
+ paddingLeft: o.spacing(0.5),
18
+ paddingRight: o.spacing(0.5),
19
+ color: o.palette.common.black,
20
+ backgroundColor: o.palette.common.white,
21
+ ...r && {
22
+ color: o.palette.common.white,
23
+ backgroundColor: o.palette.common.black
24
+ }
25
+ })), l = {
26
+ Root: d
27
+ };
28
+ function t({
29
+ dark: r,
30
+ children: o,
31
+ components: e,
32
+ componentsProps: p
33
+ }) {
34
+ const {
35
+ Root: a
36
+ } = e;
37
+ return /* @__PURE__ */ c(a, { dark: r, variant: "caption", "aria-hidden": "true", noWrap: !0, ...p.root, children: o });
38
+ }
39
+ t.propTypes = {
40
+ /**
41
+ * Set dark mode for label
42
+ */
43
+ dark: n.bool,
44
+ /**
45
+ * Children for component
46
+ */
47
+ children: n.oneOfType([n.arrayOf(n.node), n.node]),
48
+ // Overrides
49
+ /**
50
+ * Replace internal components
51
+ */
52
+ components: n.shape({
53
+ Root: n.elementType
54
+ }),
55
+ /**
56
+ * Add internal component props
57
+ */
58
+ componentsProps: n.shape({
59
+ root: n.instanceOf(Object)
60
+ })
61
+ };
62
+ t.defaultProps = {
63
+ dark: !0,
64
+ children: null,
65
+ components: l,
66
+ componentsProps: void 0
67
+ };
68
+ export {
69
+ t as default
70
+ };
@@ -0,0 +1,11 @@
1
+ import { styled as r } from "@mui/material/styles";
2
+ import { withOverrides as m } from "../../_utils/withOverrides.js";
3
+ import n from "./CompactLabel.js";
4
+ const o = "CompactLabel", e = `Vdt${o}`, s = m(e)(n), a = r(s, {
5
+ name: e,
6
+ overridesResolver: (p, t) => t.root
7
+ })(() => ({}));
8
+ a.displayName = o;
9
+ export {
10
+ a as default
11
+ };
@@ -0,0 +1,105 @@
1
+ import { jsxs as h, jsx as a } from "react/jsx-runtime";
2
+ import t from "prop-types";
3
+ import g from "@mui/material/Box";
4
+ import { styled as e } from "@mui/material/styles";
5
+ import p from "../CompactLabel/index.js";
6
+ const T = e(g)(() => ({
7
+ position: "relative",
8
+ width: "100%",
9
+ height: "100%",
10
+ zIndex: 3
11
+ })), C = e(p)(() => ({
12
+ position: "absolute",
13
+ top: 0,
14
+ left: 0
15
+ })), B = e(p)(() => ({
16
+ position: "absolute",
17
+ top: 0,
18
+ right: 0
19
+ })), R = e(p)(() => ({
20
+ position: "absolute",
21
+ bottom: 0,
22
+ left: 0
23
+ })), y = e(p)(() => ({
24
+ position: "absolute",
25
+ bottom: 0,
26
+ right: 0
27
+ })), u = {
28
+ Root: T,
29
+ CompactLabelTopLeft: C,
30
+ CompactLabelTopRight: B,
31
+ CompactLabelBottomLeft: R,
32
+ CompactLabelBottomRight: y
33
+ };
34
+ function n({
35
+ labelTopLeft: l,
36
+ labelTopRight: m,
37
+ labelBottomLeft: c,
38
+ labelBottomRight: i,
39
+ components: b,
40
+ componentsProps: o
41
+ }) {
42
+ const {
43
+ Root: L,
44
+ CompactLabelTopLeft: s,
45
+ CompactLabelTopRight: r,
46
+ CompactLabelBottomLeft: f,
47
+ CompactLabelBottomRight: d
48
+ } = b;
49
+ return /* @__PURE__ */ h(L, { ...o.root, children: [
50
+ l && /* @__PURE__ */ a(s, { ...o.compactLabelTopLeft, children: l }),
51
+ m && /* @__PURE__ */ a(r, { ...o.compactLabelTopRight, children: m }),
52
+ c && /* @__PURE__ */ a(f, { ...o.compactLabelBottomLeft, children: c }),
53
+ i && /* @__PURE__ */ a(d, { ...o.compactLabelBottomRight, children: i })
54
+ ] });
55
+ }
56
+ n.propTypes = {
57
+ /**
58
+ * The label for the top left corner. Leave blank to disable.
59
+ */
60
+ labelTopLeft: t.string,
61
+ /**
62
+ * The label for the top right corner. Leave blank to disable.
63
+ */
64
+ labelTopRight: t.string,
65
+ /**
66
+ * The label for the bottom left corner. Leave blank to disable.
67
+ */
68
+ labelBottomLeft: t.string,
69
+ /**
70
+ * The label for the bottom right corner. Leave blank to disable.
71
+ */
72
+ labelBottomRight: t.string,
73
+ // Overrides
74
+ /**
75
+ * Replace internal components
76
+ */
77
+ components: t.shape({
78
+ Root: t.elementType,
79
+ CompactLabelTopLeft: t.elementType,
80
+ CompactLabelTopRight: t.elementType,
81
+ CompactLabelBottomLeft: t.elementType,
82
+ CompactLabelBottomRight: t.elementType
83
+ }),
84
+ /**
85
+ * Add internal component props
86
+ */
87
+ componentsProps: t.shape({
88
+ root: t.instanceOf(Object),
89
+ compactLabelTopLeft: t.instanceOf(Object),
90
+ compactLabelTopRight: t.instanceOf(Object),
91
+ compactLabelBottomLeft: t.instanceOf(Object),
92
+ compactLabelBottomRight: t.instanceOf(Object)
93
+ })
94
+ };
95
+ n.defaultProps = {
96
+ labelTopLeft: void 0,
97
+ labelTopRight: void 0,
98
+ labelBottomLeft: void 0,
99
+ labelBottomRight: void 0,
100
+ components: u,
101
+ componentsProps: void 0
102
+ };
103
+ export {
104
+ n as default
105
+ };
@@ -0,0 +1,11 @@
1
+ import { styled as t } from "@mui/material/styles";
2
+ import { withOverrides as n } from "../../_utils/withOverrides.js";
3
+ import m from "./CornerLabelPlacer.js";
4
+ const e = "CornerLabelPlacer", o = `Vdt${e}`, s = n(o)(m), a = t(s, {
5
+ name: o,
6
+ overridesResolver: (i, r) => r.root
7
+ })(() => ({}));
8
+ a.displayName = e;
9
+ export {
10
+ a as default
11
+ };
@@ -0,0 +1,81 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import o from "prop-types";
3
+ import l from "@mui/icons-material/esm/ExpandMore";
4
+ import m from "@mui/material/Box";
5
+ import f from "@mui/material/IconButton";
6
+ import { styled as i } from "@mui/material/styles";
7
+ const x = i(m)(() => ({
8
+ height: "100%",
9
+ display: "flex",
10
+ alignItems: "flex-end"
11
+ })), B = i(f, {
12
+ shouldForwardProp: (t) => t !== "expanded"
13
+ })(({
14
+ theme: t,
15
+ expanded: n
16
+ }) => ({
17
+ marginLeft: "auto",
18
+ transition: t.transitions.create("transform", {
19
+ duration: t.transitions.duration.shortest
20
+ }),
21
+ ...n ? {
22
+ transform: "rotate(180deg)"
23
+ } : {}
24
+ })), I = i(l)(() => ({
25
+ transition: "color .2s ease-out"
26
+ })), y = {
27
+ Root: x,
28
+ IconButton: B,
29
+ Icon: I
30
+ };
31
+ function c({
32
+ expanded: t,
33
+ onClick: n,
34
+ components: s,
35
+ componentsProps: e
36
+ }) {
37
+ const {
38
+ Root: a,
39
+ IconButton: p,
40
+ Icon: d
41
+ } = s;
42
+ return /* @__PURE__ */ r(a, { component: "span", ...e.root, children: /* @__PURE__ */ r(p, { expanded: t, onClick: (u) => n(u, {
43
+ value: !t
44
+ }), ...e.iconButton, children: /* @__PURE__ */ r(d, { ...e.icon }) }) });
45
+ }
46
+ c.propTypes = {
47
+ /**
48
+ * Set if expand button is expanded or not
49
+ */
50
+ expanded: o.bool,
51
+ /**
52
+ * Callback for clicking expand button
53
+ */
54
+ onClick: o.func,
55
+ // Overrides
56
+ /**
57
+ * Replace internal components
58
+ */
59
+ components: o.shape({
60
+ Root: o.elementType,
61
+ IconButton: o.elementType,
62
+ Icon: o.elementType
63
+ }),
64
+ /**
65
+ * Add internal component props
66
+ */
67
+ componentsProps: o.shape({
68
+ root: o.instanceOf(Object),
69
+ iconButton: o.instanceOf(Object),
70
+ icon: o.instanceOf(Object)
71
+ })
72
+ };
73
+ c.defaultProps = {
74
+ expanded: !1,
75
+ onClick: void 0,
76
+ components: y,
77
+ componentsProps: void 0
78
+ };
79
+ export {
80
+ c as default
81
+ };
@@ -0,0 +1,11 @@
1
+ import { styled as n } from "@mui/material/styles";
2
+ import { withOverrides as r } from "../../_utils/withOverrides.js";
3
+ import m from "./ExpandButton.js";
4
+ const o = "ExpandButton", t = `Vdt${o}`, s = r(t)(m), d = n(s, {
5
+ name: t,
6
+ overridesResolver: (p, e) => e.root
7
+ })(() => ({}));
8
+ d.displayName = o;
9
+ export {
10
+ d as default
11
+ };
@@ -0,0 +1,230 @@
1
+ import { jsxs as R, jsx as l } from "react/jsx-runtime";
2
+ import { useRef as tt, useEffect as et } from "react";
3
+ import t from "prop-types";
4
+ import { useForm as nt, Controller as ot } from "react-hook-form";
5
+ import V from "@mui/material/Box";
6
+ import B from "@mui/material/Button";
7
+ import rt from "@mui/material/ButtonGroup";
8
+ import { styled as S } from "@mui/material/styles";
9
+ const ut = S(rt)(({
10
+ theme: o
11
+ }) => ({
12
+ marginTop: o.spacing(2),
13
+ marginBottom: o.spacing(2),
14
+ display: "flex",
15
+ justifyContent: "center"
16
+ })), it = S(V)(({
17
+ theme: o
18
+ }) => ({
19
+ "&:not(:first-of-type)": {
20
+ paddingTop: o.spacing(2)
21
+ }
22
+ })), at = {
23
+ Root: V,
24
+ InputContainer: it,
25
+ Controller: ot,
26
+ ButtonGroup: ut,
27
+ ClearButton: B,
28
+ ResetButton: B,
29
+ SubmitButton: B
30
+ };
31
+ function v({
32
+ inputs: o,
33
+ inputProps: G,
34
+ formProps: k,
35
+ size: y,
36
+ variant: E,
37
+ clearText: M,
38
+ resetText: I,
39
+ submitText: q,
40
+ onClear: s,
41
+ onReset: f,
42
+ onChange: d,
43
+ onSubmit: p,
44
+ onError: O,
45
+ components: D,
46
+ componentsProps: r
47
+ }) {
48
+ const {
49
+ Root: F,
50
+ InputContainer: P,
51
+ Controller: w,
52
+ ButtonGroup: z,
53
+ ClearButton: W,
54
+ ResetButton: _,
55
+ SubmitButton: $
56
+ } = D, C = tt(), h = ({
57
+ multiple: e,
58
+ range: n
59
+ }) => e || n ? [] : null, A = o.reduce((e, {
60
+ name: n,
61
+ defaultValue: i,
62
+ ...a
63
+ }) => ({
64
+ ...e,
65
+ [n]: i || h(a)
66
+ }), {}), {
67
+ handleSubmit: H,
68
+ control: J,
69
+ reset: T,
70
+ watch: g,
71
+ formState: c
72
+ } = nt({
73
+ defaultValues: A,
74
+ ...k || {}
75
+ }), {
76
+ defaultValues: j
77
+ } = c, K = Object.keys((c == null ? void 0 : c.errors) || {}).length > 0, L = async (e) => {
78
+ const n = o.reduce((i, {
79
+ name: a,
80
+ defaultValue: U,
81
+ ...m
82
+ }) => ({
83
+ ...i,
84
+ [a]: h(m)
85
+ }), {});
86
+ s && s(e, n), T(n, {
87
+ keepDefaultValues: !0
88
+ });
89
+ }, N = async (e) => {
90
+ f && f(e, j), T(j, {
91
+ keepDefaultValues: !0
92
+ });
93
+ };
94
+ et(() => {
95
+ const e = d ? g((n) => d(C.current, n)) : void 0;
96
+ return () => e == null ? void 0 : e.unsubscribe();
97
+ }, [d, g]);
98
+ const Q = (e) => {
99
+ var n;
100
+ return typeof (e == null ? void 0 : e.required) == "string" || ((n = e == null ? void 0 : e.required) == null ? void 0 : n.value) === !0;
101
+ };
102
+ return /* @__PURE__ */ R(F, { component: "form", onSubmit: H((e, n) => typeof p == "function" && p(n, e), (e, n) => typeof O == "function" && O(n, e)), ...r.root, children: [
103
+ o == null ? void 0 : o.map(({
104
+ Component: e,
105
+ name: n,
106
+ rules: i,
107
+ label: a,
108
+ defaultValue: U,
109
+ ...m
110
+ }) => /* @__PURE__ */ l(P, { ...r.inputContainer, children: /* @__PURE__ */ l(w, { control: J, name: n, rules: i, render: ({
111
+ field: {
112
+ onChange: X,
113
+ ...Y
114
+ },
115
+ formState: {
116
+ errors: b
117
+ }
118
+ }) => {
119
+ var x;
120
+ return /* @__PURE__ */ l(e, { onChange: (Z, u) => {
121
+ C.current = Z, X((u == null ? void 0 : u.value) !== void 0 ? u == null ? void 0 : u.value : u);
122
+ }, error: (x = b == null ? void 0 : b[n]) == null ? void 0 : x.message, size: y, variant: E, label: Q(i) ? `${a} *` : a, ...Y, ...G || {}, ...m });
123
+ }, ...r.controller }) }, n)),
124
+ /* @__PURE__ */ R(z, { variant: "text", size: y, fullWidth: !0, ...r.buttonGroup, children: [
125
+ s && /* @__PURE__ */ l(W, { onClick: L, ...r.clearButton, children: M }),
126
+ f && /* @__PURE__ */ l(_, { onClick: N, ...r.resetButton, children: I }),
127
+ p && /* @__PURE__ */ l($, { type: "submit", disabled: K, ...r.submitButton, children: q })
128
+ ] })
129
+ ] });
130
+ }
131
+ v.propTypes = {
132
+ /**
133
+ * A VidiCore field list to add as filter inputs
134
+ */
135
+ inputs: t.arrayOf(t.instanceOf(Object)),
136
+ /**
137
+ * Add general input props (applied to all components)
138
+ */
139
+ inputProps: t.instanceOf(Object),
140
+ /**
141
+ * Add props to react-hook-form useForm hook
142
+ */
143
+ formProps: t.instanceOf(Object),
144
+ /**
145
+ * Set variant of filter inputs
146
+ */
147
+ variant: t.oneOf(["standard", "outlined", "filled"]),
148
+ /**
149
+ * Set size of filter inputs
150
+ */
151
+ size: t.oneOf(["medium", "small"]),
152
+ /**
153
+ * Set clear button text
154
+ */
155
+ clearText: t.string,
156
+ /**
157
+ * Set reset button text
158
+ */
159
+ resetText: t.string,
160
+ /**
161
+ * Set submit button text
162
+ */
163
+ submitText: t.string,
164
+ // Callbacks
165
+ /**
166
+ * Callback when all filters are cleared from values
167
+ */
168
+ onClear: t.func,
169
+ /**
170
+ * Callback when filters are reset to default values
171
+ */
172
+ onReset: t.func,
173
+ /**
174
+ * Callback when some field has changed value
175
+ */
176
+ onChange: t.func,
177
+ /**
178
+ * Callback when form is submitted
179
+ */
180
+ onSubmit: t.func,
181
+ /**
182
+ * Callback when form has error (invalid values)
183
+ */
184
+ onError: t.func,
185
+ // Overrides
186
+ /**
187
+ * Replace internal components
188
+ */
189
+ components: t.shape({
190
+ Root: t.elementType,
191
+ InputContainer: t.elementType,
192
+ Controller: t.elementType,
193
+ ButtonGroup: t.elementType,
194
+ ClearButton: t.elementType,
195
+ ResetButton: t.elementType,
196
+ SubmitButton: t.elementType
197
+ }),
198
+ /**
199
+ * Add internal component props
200
+ */
201
+ componentsProps: t.shape({
202
+ root: t.instanceOf(Object),
203
+ inputContainer: t.instanceOf(Object),
204
+ controller: t.instanceOf(Object),
205
+ buttonGroup: t.instanceOf(Object),
206
+ clearButton: t.instanceOf(Object),
207
+ resetButton: t.instanceOf(Object),
208
+ submitButton: t.instanceOf(Object)
209
+ })
210
+ };
211
+ v.defaultProps = {
212
+ inputs: [],
213
+ inputProps: void 0,
214
+ formProps: void 0,
215
+ variant: "standard",
216
+ size: "medium",
217
+ clearText: "Clear",
218
+ resetText: "Reset",
219
+ submitText: "Submit",
220
+ onClear: void 0,
221
+ onReset: void 0,
222
+ onChange: void 0,
223
+ onSubmit: void 0,
224
+ onError: void 0,
225
+ components: at,
226
+ componentsProps: void 0
227
+ };
228
+ export {
229
+ v as default
230
+ };
@@ -0,0 +1,11 @@
1
+ import { styled as r } from "@mui/material/styles";
2
+ import { withOverrides as m } from "../../_utils/withOverrides.js";
3
+ import n from "./Form.js";
4
+ const o = "Form", e = `Vdt${o}`, s = m(e)(n), i = r(s, {
5
+ name: e,
6
+ overridesResolver: (d, t) => t.root
7
+ })(() => ({}));
8
+ i.displayName = o;
9
+ export {
10
+ i as default
11
+ };
@@ -0,0 +1,151 @@
1
+ import { jsx as a, jsxs as C } from "react/jsx-runtime";
2
+ import o from "prop-types";
3
+ import i from "@mui/material/Box";
4
+ import { styled as d } from "@mui/material/styles";
5
+ import I from "../BlurredBackground/index.js";
6
+ const j = ({
7
+ amountOfImages: n,
8
+ maxColumns: r
9
+ }) => {
10
+ const e = Math.min(r, n), s = Math.ceil(n / e), c = n % e || e;
11
+ return {
12
+ amountOfImages: n,
13
+ amountOfColumns: e,
14
+ amountOfRows: s,
15
+ amountOfImagesOnLastRow: c
16
+ };
17
+ }, T = (n, r, {
18
+ amountOfImages: e,
19
+ amountOfColumns: s,
20
+ amountOfRows: c,
21
+ amountOfImagesOnLastRow: u
22
+ }) => {
23
+ const h = Math.ceil((n + 1) / s) === c;
24
+ return `${100 / Math.max(Math.min(h && r ? u : s, e), 1)}%`;
25
+ }, m = d(i)(() => ({
26
+ width: "inherit",
27
+ height: "100%",
28
+ display: "flex",
29
+ flexWrap: "wrap"
30
+ })), v = d(i)(() => ({
31
+ pointerEvents: "none",
32
+ position: "relative"
33
+ })), E = d(i, {
34
+ shouldForwardProp: (n) => !["amountOfImages", "showSingleStretched"].includes(n)
35
+ })(({
36
+ amountOfImages: n,
37
+ showSingleStretched: r
38
+ }) => ({
39
+ width: "100%",
40
+ height: "100%",
41
+ position: "relative",
42
+ zIndex: 2,
43
+ objectFit: n === 1 && r ? "contain" : "cover"
44
+ })), L = d(I)(() => ({
45
+ top: 0,
46
+ position: "absolute",
47
+ zIndex: 1
48
+ })), $ = {
49
+ Root: m,
50
+ ContainerBox: v,
51
+ ImageBox: E,
52
+ BlurredBackground: L
53
+ };
54
+ function f({
55
+ images: n,
56
+ maxImages: r,
57
+ maxColumns: e,
58
+ showSingleStretched: s,
59
+ showLastRowStretched: c,
60
+ showBlurredBackground: u,
61
+ onError: h,
62
+ components: B,
63
+ componentsProps: p
64
+ }) {
65
+ const {
66
+ Root: w,
67
+ ContainerBox: y,
68
+ ImageBox: b,
69
+ BlurredBackground: S
70
+ } = B;
71
+ if (!(n != null && n.length) || r < 0 || e < 0)
72
+ return null;
73
+ const x = Math.min(r, n.length), l = j({
74
+ amountOfImages: x,
75
+ maxColumns: e
76
+ }), O = `${100 / ((l == null ? void 0 : l.amountOfRows) || 1)}%`;
77
+ return /* @__PURE__ */ a(w, { ...p.root, children: n.slice(0, r).map((t, M) => {
78
+ const R = T(M, c, l);
79
+ return /* @__PURE__ */ C(y, { width: R, height: O, ...p.containerBox, children: [
80
+ u && /* @__PURE__ */ a(S, { image: t == null ? void 0 : t.src, blur: 30, grayscale: 0, ...p.blurredBackground }),
81
+ /* @__PURE__ */ a(b, { component: "img", src: t == null ? void 0 : t.src, alt: (t == null ? void 0 : t.alt) || (t == null ? void 0 : t.src), amountOfImages: x, showSingleStretched: s, onError: (k) => h(k, t) })
82
+ ] }, `${t == null ? void 0 : t.src}-${t == null ? void 0 : t.alt}`);
83
+ }) });
84
+ }
85
+ f.propTypes = {
86
+ /**
87
+ * Image urls to show
88
+ */
89
+ images: o.arrayOf(o.shape({
90
+ url: o.string,
91
+ alt: o.string
92
+ })),
93
+ /**
94
+ * Max amount of columns to display
95
+ */
96
+ maxColumns: o.number,
97
+ /**
98
+ * Max amount of images to display
99
+ */
100
+ maxImages: o.number,
101
+ /**
102
+ * Whether to stretch full width or follow height for single image
103
+ */
104
+ showSingleStretched: o.bool,
105
+ /**
106
+ * Whether to stretch full width or follow height for last images
107
+ */
108
+ showLastRowStretched: o.bool,
109
+ /**
110
+ * Show blurred backgrounds behind the images
111
+ */
112
+ showBlurredBackground: o.bool,
113
+ // Callbacks
114
+ /**
115
+ * Callback for error
116
+ */
117
+ onError: o.func,
118
+ // Overrides
119
+ /**
120
+ * Replace internal components
121
+ */
122
+ components: o.shape({
123
+ Root: o.elementType,
124
+ ContainerBox: o.elementType,
125
+ ImageBox: o.elementType,
126
+ BlurredBackground: o.elementType
127
+ }),
128
+ /**
129
+ * Add internal component props
130
+ */
131
+ componentsProps: o.shape({
132
+ root: o.instanceOf(Object),
133
+ containerBox: o.instanceOf(Object),
134
+ imageBox: o.instanceOf(Object),
135
+ blurredBackground: o.instanceOf(Object)
136
+ })
137
+ };
138
+ f.defaultProps = {
139
+ images: [],
140
+ maxColumns: 2,
141
+ maxImages: 4,
142
+ showSingleStretched: !0,
143
+ showLastRowStretched: !0,
144
+ showBlurredBackground: !1,
145
+ onError: () => null,
146
+ components: $,
147
+ componentsProps: void 0
148
+ };
149
+ export {
150
+ f as default
151
+ };
@@ -0,0 +1,11 @@
1
+ import { styled as r } from "@mui/material/styles";
2
+ import { withOverrides as m } from "../../_utils/withOverrides.js";
3
+ import n from "./ImageCollage.js";
4
+ const o = "ImageCollage", e = `Vdt${o}`, s = m(e)(n), a = r(s, {
5
+ name: e,
6
+ overridesResolver: (i, t) => t.root
7
+ })(() => ({}));
8
+ a.displayName = o;
9
+ export {
10
+ a as default
11
+ };