@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,235 @@
1
+ import { jsx as V } from "react/jsx-runtime";
2
+ import { useRef as _ } from "react";
3
+ import e from "prop-types";
4
+ import G from "@mui/material/TextField";
5
+ import H from "./components/MaskedInputComponent.js";
6
+ const J = {
7
+ Root: G,
8
+ InputComponent: H
9
+ };
10
+ function p({
11
+ name: m,
12
+ label: c,
13
+ value: n,
14
+ defaultValue: i,
15
+ placeholder: f,
16
+ helperText: l,
17
+ error: t,
18
+ required: v,
19
+ disabled: b,
20
+ fullWidth: C,
21
+ multiline: O,
22
+ variant: g,
23
+ size: T,
24
+ min: h,
25
+ max: x,
26
+ mask: k,
27
+ focused: y,
28
+ definitions: I,
29
+ eager: P,
30
+ overwrite: j,
31
+ lazy: R,
32
+ onChange: z,
33
+ onBlur: F,
34
+ onFocus: M,
35
+ onClick: q,
36
+ components: w,
37
+ componentsProps: o
38
+ }) {
39
+ var s, a;
40
+ const {
41
+ Root: A,
42
+ InputComponent: B
43
+ } = w, r = _(n || i), L = n !== void 0 ? n : r.current, W = (E, N) => {
44
+ const {
45
+ _unmaskedValue: d
46
+ } = N;
47
+ r.current = d, z(null, {
48
+ value: d,
49
+ maskedValue: E
50
+ });
51
+ }, u = !!t, D = (t || "").trim();
52
+ return /* @__PURE__ */ V(A, { name: m, label: c, value: L, defaultValue: i, helperText: (D || l) && u ? t : l, error: u, placeholder: f, required: v, disabled: b, fullWidth: C, multiline: O, variant: g, size: T, focused: y, autoComplete: "off", onFocus: M, onClick: q, onBlur: F, ...o.root, InputProps: {
53
+ inputComponent: B,
54
+ ...((s = o.root) == null ? void 0 : s.InputProps) || {},
55
+ inputProps: {
56
+ mask: k,
57
+ min: h,
58
+ max: x,
59
+ definitions: I,
60
+ eager: P,
61
+ overwrite: j,
62
+ lazy: R,
63
+ onAccept: W,
64
+ ...o.inputComponent
65
+ }
66
+ }, InputLabelProps: {
67
+ shrink: !0,
68
+ ...((a = o.root) == null ? void 0 : a.InputLabelProps) || {}
69
+ } });
70
+ }
71
+ p.propTypes = {
72
+ /**
73
+ * Name for input
74
+ */
75
+ name: e.string,
76
+ /**
77
+ * Label for input
78
+ */
79
+ label: e.string,
80
+ /**
81
+ * Value of input
82
+ */
83
+ value: e.string,
84
+ /**
85
+ * Default value of input (use if uncontrolled)
86
+ */
87
+ defaultValue: e.string,
88
+ /**
89
+ * Help text underneath input
90
+ */
91
+ helperText: e.string,
92
+ /**
93
+ * Placeholder for input field
94
+ */
95
+ placeholder: e.string,
96
+ /**
97
+ * An error message to display underneath input component
98
+ */
99
+ error: e.string,
100
+ /**
101
+ * Set if required
102
+ */
103
+ required: e.bool,
104
+ /**
105
+ * Set if disabled
106
+ */
107
+ disabled: e.bool,
108
+ /**
109
+ * Set if input should be full width
110
+ */
111
+ fullWidth: e.bool,
112
+ /**
113
+ * Set if multiline (use text area)
114
+ */
115
+ multiline: e.bool,
116
+ /**
117
+ * Set variant of input
118
+ */
119
+ variant: e.oneOf(["outlined", "filled", "standard"]),
120
+ /**
121
+ * Set size of input
122
+ */
123
+ size: e.oneOf(["medium", "small"]),
124
+ /**
125
+ * Set min value for input
126
+ *
127
+ * Defaults to `1900-01-01` if `Date` type
128
+ */
129
+ min: e.oneOfType([e.string, e.number]),
130
+ /**
131
+ * Set max value for input
132
+ *
133
+ * Defaults to `9999-01-01` if `Date` type
134
+ */
135
+ max: e.oneOfType([e.string, e.number]),
136
+ /**
137
+ * Set focused state for input
138
+ */
139
+ focused: e.bool,
140
+ /**
141
+ * The `react-imask` mask to use for the text input
142
+ *
143
+ * Default definitions are:
144
+ * - `0` any digit
145
+ * - `a` any letter
146
+ * - `*` any char
147
+ * - `[]` make input optional
148
+ * - `{}` include fixed part in unmasked value
149
+ * - `` ` `` prevent symbols shift back
150
+ * - `\` Escape definitions to treat as fixed value
151
+ */
152
+ mask: e.oneOfType([e.instanceOf(Date), e.instanceOf(Number), e.instanceOf(Object), e.string]),
153
+ /**
154
+ * Automatically add characters without definitions
155
+ */
156
+ eager: e.bool,
157
+ /**
158
+ * Overwrite value from the current position
159
+ */
160
+ overwrite: e.bool,
161
+ /**
162
+ * Set false to show mask pattern/format as placeholder
163
+ */
164
+ lazy: e.bool,
165
+ /**
166
+ * The `react-imask` definitions for mask characters valid regexp
167
+ *
168
+ * Note: If definition character should be treated as fixed escape with "\\" (e.g. "\\0")
169
+ */
170
+ definitions: e.instanceOf(Object),
171
+ // Callbacks
172
+ /**
173
+ * Callback when text field value changed
174
+ */
175
+ onChange: e.func,
176
+ /**
177
+ * Callback when input is blurred
178
+ */
179
+ onBlur: e.func,
180
+ /**
181
+ * Callback when input is focused
182
+ */
183
+ onFocus: e.func,
184
+ /**
185
+ * Callback when input is clicked on
186
+ */
187
+ onClick: e.func,
188
+ // Overrides
189
+ /**
190
+ * Replace internal components
191
+ */
192
+ components: e.shape({
193
+ Root: e.elementType,
194
+ InputComponent: e.elementType
195
+ }),
196
+ /**
197
+ * Add internal component props
198
+ */
199
+ componentsProps: e.shape({
200
+ root: e.instanceOf(Object),
201
+ inputComponent: e.instanceOf(Object)
202
+ })
203
+ };
204
+ p.defaultProps = {
205
+ name: void 0,
206
+ label: void 0,
207
+ value: void 0,
208
+ defaultValue: void 0,
209
+ placeholder: void 0,
210
+ helperText: void 0,
211
+ error: void 0,
212
+ required: !1,
213
+ disabled: !1,
214
+ fullWidth: !0,
215
+ multiline: !1,
216
+ variant: "outlined",
217
+ size: "medium",
218
+ min: void 0,
219
+ max: void 0,
220
+ mask: void 0,
221
+ focused: void 0,
222
+ eager: !0,
223
+ overwrite: !0,
224
+ lazy: !0,
225
+ definitions: void 0,
226
+ onChange: () => null,
227
+ onBlur: () => null,
228
+ onFocus: () => null,
229
+ onClick: () => null,
230
+ components: J,
231
+ componentsProps: void 0
232
+ };
233
+ export {
234
+ p as default
235
+ };
@@ -0,0 +1,13 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { forwardRef as e } from "react";
3
+ import { IMaskInput as p } from "react-imask";
4
+ const u = e((o, t) => {
5
+ const {
6
+ onChange: f,
7
+ ...r
8
+ } = o;
9
+ return /* @__PURE__ */ n(p, { inputRef: t, ...r });
10
+ });
11
+ export {
12
+ u as default
13
+ };
@@ -0,0 +1,11 @@
1
+ import { styled as r } from "@mui/material/styles";
2
+ import { withOverrides as n } from "../../_utils/withOverrides.js";
3
+ import s from "./MaskedTextInput.js";
4
+ const e = "MaskedTextInput", t = `Vdt${e}`, m = n(t)(s), d = r(m, {
5
+ name: t,
6
+ overridesResolver: (p, o) => o.root
7
+ })(() => ({}));
8
+ d.displayName = e;
9
+ export {
10
+ d as default
11
+ };
@@ -0,0 +1,134 @@
1
+ import { jsx as j } from "react/jsx-runtime";
2
+ import o from "prop-types";
3
+ import q from "@mui/material/TextField";
4
+ const z = {
5
+ Root: q
6
+ };
7
+ function d({
8
+ name: t,
9
+ label: m,
10
+ value: r,
11
+ defaultValue: p,
12
+ helperText: l,
13
+ error: n,
14
+ required: f,
15
+ disabled: c,
16
+ fullWidth: v,
17
+ variant: b,
18
+ size: g,
19
+ onChange: h,
20
+ onBlur: T,
21
+ onFocus: x,
22
+ components: C,
23
+ componentsProps: y
24
+ }) {
25
+ const {
26
+ Root: O
27
+ } = C, F = (e) => {
28
+ var a, s, u;
29
+ const V = ["", void 0].includes((a = e == null ? void 0 : e.target) == null ? void 0 : a.value) ? (s = e == null ? void 0 : e.target) == null ? void 0 : s.value : Number((u = e == null ? void 0 : e.target) == null ? void 0 : u.value);
30
+ h(e, {
31
+ value: V
32
+ });
33
+ }, P = r !== void 0, i = !!n, R = (n || "").trim();
34
+ return /* @__PURE__ */ j(O, { id: t, name: t, label: m, ...P ? {
35
+ value: r
36
+ } : {
37
+ defaultValue: p
38
+ }, helperText: (R || l) && i ? n : l, error: i, required: f, disabled: c, fullWidth: v, variant: b, size: g, type: "number", autoComplete: "off", onChange: F, onBlur: T, onFocus: x, ...y.root });
39
+ }
40
+ d.propTypes = {
41
+ /**
42
+ * Name for input
43
+ */
44
+ name: o.string,
45
+ /**
46
+ * Label for input
47
+ */
48
+ label: o.string,
49
+ /**
50
+ * Value of input
51
+ *
52
+ * Set `''` for undefined (but controlled)
53
+ */
54
+ value: o.oneOfType([o.number, o.string]),
55
+ /**
56
+ * Default value of input (use if uncontrolled)
57
+ */
58
+ defaultValue: o.number,
59
+ /**
60
+ * Help text underneath input
61
+ */
62
+ helperText: o.string,
63
+ /**
64
+ * An error message to display underneath input component
65
+ */
66
+ error: o.string,
67
+ /**
68
+ * Set if required
69
+ */
70
+ required: o.bool,
71
+ /**
72
+ * Set if disabled
73
+ */
74
+ disabled: o.bool,
75
+ /**
76
+ * Set if input should be full width
77
+ */
78
+ fullWidth: o.bool,
79
+ /**
80
+ * Set variant of input
81
+ */
82
+ variant: o.oneOf(["outlined", "filled", "standard"]),
83
+ /**
84
+ * Set size of input
85
+ */
86
+ size: o.oneOf(["medium", "small"]),
87
+ // Callbacks
88
+ /**
89
+ * Callback when value changed
90
+ */
91
+ onChange: o.func,
92
+ /**
93
+ * Callback when input is blurred
94
+ */
95
+ onBlur: o.func,
96
+ /**
97
+ * Callback when input is focused
98
+ */
99
+ onFocus: o.func,
100
+ // Overrides
101
+ /**
102
+ * Replace internal components
103
+ */
104
+ components: o.shape({
105
+ Root: o.elementType
106
+ }),
107
+ /**
108
+ * Add internal component props
109
+ */
110
+ componentsProps: o.shape({
111
+ root: o.instanceOf(Object)
112
+ })
113
+ };
114
+ d.defaultProps = {
115
+ name: void 0,
116
+ label: void 0,
117
+ value: void 0,
118
+ defaultValue: void 0,
119
+ helperText: void 0,
120
+ error: void 0,
121
+ required: !1,
122
+ disabled: !1,
123
+ fullWidth: !0,
124
+ variant: "outlined",
125
+ size: "medium",
126
+ onChange: () => null,
127
+ onBlur: void 0,
128
+ onFocus: void 0,
129
+ components: z,
130
+ componentsProps: void 0
131
+ };
132
+ export {
133
+ d as default
134
+ };
@@ -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 "./NumberInput.js";
4
+ const o = "NumberInput", e = `Vdt${o}`, s = m(e)(n), p = r(s, {
5
+ name: e,
6
+ overridesResolver: (i, t) => t.root
7
+ })(() => ({}));
8
+ p.displayName = o;
9
+ export {
10
+ p as default
11
+ };
@@ -0,0 +1,287 @@
1
+ import { jsxs as N, jsx as l } from "react/jsx-runtime";
2
+ import e from "prop-types";
3
+ import U from "@mui/material/FormControl";
4
+ import V from "@mui/material/FormHelperText";
5
+ import k from "@mui/material/InputLabel";
6
+ import w from "@mui/material/OutlinedInput";
7
+ import E from "@mui/material/FilledInput";
8
+ import P from "@mui/material/Input";
9
+ import $ from "@mui/material/Radio";
10
+ import { styled as n } from "@mui/material/styles";
11
+ import A from "../_components/FormControlLabel.js";
12
+ import D from "./components/RadioGroup.js";
13
+ const J = n(w)(() => ({
14
+ paddingLeft: 14,
15
+ paddingRight: 14,
16
+ // Medium Size (56px)
17
+ "&:not(.MuiInputBase-sizeSmall)": {
18
+ paddingTop: 8,
19
+ paddingBottom: 6
20
+ },
21
+ // Small size (40px)
22
+ "&.MuiInputBase-sizeSmall": {
23
+ paddingTop: 2
24
+ }
25
+ })), K = n(E)(() => ({
26
+ // Medium Size
27
+ "&:not(.MuiInputBase-sizeSmall)": {
28
+ paddingLeft: 12,
29
+ paddingRight: 12,
30
+ paddingTop: 24,
31
+ paddingBottom: 0
32
+ },
33
+ // Small size (56px, medium for others)
34
+ "&.MuiInputBase-sizeSmall": {
35
+ paddingLeft: 16,
36
+ paddingRight: 16,
37
+ paddingTop: 24,
38
+ paddingBottom: 0,
39
+ "& .MuiFormControlLabel-root": {
40
+ "& .MuiRadio-root": {
41
+ maxHeight: 32,
42
+ maxWidth: 32
43
+ }
44
+ }
45
+ }
46
+ })), Q = n(P)(() => ({
47
+ // Medium Size
48
+ "&:not(.MuiInputBase-sizeSmall)": {
49
+ paddingLeft: 11,
50
+ paddingRight: 11
51
+ },
52
+ // Small size (48px, medium for others)
53
+ "&.MuiInputBase-sizeSmall": {
54
+ paddingLeft: 8,
55
+ paddingRight: 8,
56
+ "& .MuiFormControlLabel-root": {
57
+ "& .MuiRadio-root": {
58
+ maxHeight: 32,
59
+ maxWidth: 32
60
+ }
61
+ }
62
+ }
63
+ })), X = n(k)(() => ({
64
+ paddingRight: 8
65
+ })), Y = {
66
+ Root: U,
67
+ FormHelperText: V,
68
+ InputLabel: X,
69
+ Input: Q,
70
+ // Standard Input
71
+ FilledInput: K,
72
+ OutlinedInput: J,
73
+ RadioGroup: D,
74
+ FormControlLabel: A,
75
+ Radio: $
76
+ };
77
+ function f({
78
+ name: o,
79
+ label: r,
80
+ value: b,
81
+ defaultValue: c,
82
+ options: g,
83
+ helperText: a,
84
+ error: d,
85
+ required: I,
86
+ disabled: O,
87
+ fullWidth: p,
88
+ orientation: h,
89
+ labelPlacement: C,
90
+ justifyContent: T,
91
+ variant: i,
92
+ size: u,
93
+ onChange: L,
94
+ onBlur: F,
95
+ onFocus: R,
96
+ components: y,
97
+ componentsProps: t
98
+ }) {
99
+ const {
100
+ Root: M,
101
+ FormHelperText: x,
102
+ InputLabel: v,
103
+ Input: j,
104
+ FilledInput: B,
105
+ OutlinedInput: S,
106
+ RadioGroup: z,
107
+ FormControlLabel: G,
108
+ Radio: H
109
+ } = y, W = {
110
+ standard: j,
111
+ filled: B,
112
+ outlined: S
113
+ }[i], q = {
114
+ standard: {
115
+ disableUnderline: !0,
116
+ ...t.input
117
+ },
118
+ filled: {
119
+ disableUnderline: !0,
120
+ ...t.filledInput
121
+ },
122
+ outlined: {
123
+ label: r,
124
+ notched: !0,
125
+ ...t.outlinedInput
126
+ }
127
+ }[i], m = !!d, s = (d || "").trim();
128
+ return /* @__PURE__ */ N(M, { error: m, required: I, disabled: O, variant: i, fullWidth: p, ...t.root, children: [
129
+ /* @__PURE__ */ l(v, { htmlFor: o, id: `${o}-label`, shrink: !0, ...t.inputLabel, children: r }),
130
+ /* @__PURE__ */ l(W, { id: o, name: o, fullWidth: p, size: u, inputComponent: z, inputProps: {
131
+ id: o,
132
+ value: b,
133
+ defaultValue: c,
134
+ options: g,
135
+ orientation: h,
136
+ labelPlacement: C,
137
+ justifyContent: T,
138
+ size: u,
139
+ onChange: L,
140
+ onFocus: R,
141
+ onBlur: F,
142
+ FormControlLabelComponent: G,
143
+ formControlLabelProps: t.formControlLabel,
144
+ RadioComponent: H,
145
+ radioProps: t.radio,
146
+ vdtClassNames: t.radioGroup.className,
147
+ ...t.radioGroup
148
+ }, ...q }),
149
+ (s || a) && /* @__PURE__ */ l(x, { ...t.formHelperText, children: m ? s : a })
150
+ ] });
151
+ }
152
+ f.propTypes = {
153
+ /**
154
+ * Name of input
155
+ */
156
+ name: e.string,
157
+ /**
158
+ * Label of input
159
+ */
160
+ label: e.string,
161
+ /**
162
+ * Value of input
163
+ */
164
+ value: e.string,
165
+ /**
166
+ * Default value of input (use if uncontrolled)
167
+ */
168
+ defaultValue: e.string,
169
+ /**
170
+ * Options for input
171
+ */
172
+ options: e.arrayOf(e.shape({
173
+ name: e.string,
174
+ value: e.string,
175
+ label: e.string,
176
+ disabled: e.bool
177
+ })),
178
+ /**
179
+ * Help text underneath input
180
+ */
181
+ helperText: e.string,
182
+ /**
183
+ * Error to display underneath input (overrides `helperText`)
184
+ */
185
+ error: e.string,
186
+ /**
187
+ * Set if required
188
+ */
189
+ required: e.bool,
190
+ /**
191
+ * Set if disabled
192
+ */
193
+ disabled: e.bool,
194
+ /**
195
+ * Set if input should be full width
196
+ */
197
+ fullWidth: e.bool,
198
+ /**
199
+ * Set direction inputs should be aligned
200
+ */
201
+ orientation: e.oneOf(["horizontal", "vertical"]),
202
+ /**
203
+ * Radio label placement
204
+ */
205
+ labelPlacement: e.oneOf(["end", "start", "bottom", "top"]),
206
+ /**
207
+ * Alignment of inputs
208
+ *
209
+ * Only used when `orientation:horizontal`
210
+ */
211
+ justifyContent: e.oneOf(["flex-start", "center", "space-around", "space-evenly", "space-between", "flex-end"]),
212
+ /**
213
+ * Set variant of input
214
+ */
215
+ variant: e.oneOf(["outlined", "filled", "standard"]),
216
+ /**
217
+ * Whether the slider is a range or not
218
+ */
219
+ size: e.oneOf(["medium", "small"]),
220
+ // Callbacks
221
+ /**
222
+ * Callback when value changed
223
+ */
224
+ onChange: e.func,
225
+ /**
226
+ * Callback when input is blurred
227
+ */
228
+ onBlur: e.func,
229
+ /**
230
+ * Callback when input is focused
231
+ */
232
+ onFocus: e.func,
233
+ // Overrides
234
+ /**
235
+ * Replace internal components
236
+ */
237
+ components: e.shape({
238
+ Root: e.elementType,
239
+ FormHelperText: e.elementType,
240
+ InputLabel: e.elementType,
241
+ Input: e.elementType,
242
+ FilledInput: e.elementType,
243
+ OutlinedInput: e.elementType,
244
+ RadioGroup: e.elementType,
245
+ FormControlLabel: e.elementType,
246
+ Radio: e.elementType
247
+ }),
248
+ /**
249
+ * Add internal component props
250
+ */
251
+ componentsProps: e.shape({
252
+ root: e.instanceOf(Object),
253
+ formHelperText: e.instanceOf(Object),
254
+ inputLabel: e.instanceOf(Object),
255
+ input: e.instanceOf(Object),
256
+ filledInput: e.instanceOf(Object),
257
+ outlinedInput: e.instanceOf(Object),
258
+ radioGroup: e.instanceOf(Object),
259
+ formControlLabel: e.instanceOf(Object),
260
+ radio: e.instanceOf(Object)
261
+ })
262
+ };
263
+ f.defaultProps = {
264
+ name: void 0,
265
+ label: void 0,
266
+ value: void 0,
267
+ defaultValue: void 0,
268
+ options: [],
269
+ helperText: void 0,
270
+ error: void 0,
271
+ required: !1,
272
+ disabled: !1,
273
+ fullWidth: !0,
274
+ orientation: "horizontal",
275
+ labelPlacement: "end",
276
+ justifyContent: "space-around",
277
+ variant: "outlined",
278
+ size: "medium",
279
+ onChange: () => null,
280
+ onBlur: void 0,
281
+ onFocus: void 0,
282
+ components: Y,
283
+ componentsProps: void 0
284
+ };
285
+ export {
286
+ f as default
287
+ };