@skodaflow/web-library 7.12.0 → 7.13.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 (254) hide show
  1. package/cjs/components/alert/Alert.js +1 -1
  2. package/cjs/components/alert/Alert.js.map +1 -1
  3. package/cjs/components/bottomSheet/bottomSheet.d.ts +1 -1
  4. package/cjs/components/bottomSheet/bottomSheet.js +1 -1
  5. package/cjs/components/bottomSheet/bottomSheet.js.map +1 -1
  6. package/cjs/components/carousel/hooks.js +1 -1
  7. package/cjs/components/carousel/hooks.js.map +1 -1
  8. package/cjs/components/carousel/pagination.d.ts +21 -7
  9. package/cjs/components/carousel/pagination.js +1 -1
  10. package/cjs/components/carousel/pagination.js.map +1 -1
  11. package/cjs/components/closeDialogButton/index.d.ts +4 -1
  12. package/cjs/components/closeDialogButton/index.js +1 -1
  13. package/cjs/components/closeDialogButton/index.js.map +1 -1
  14. package/cjs/components/flag/flag.d.ts +3 -5
  15. package/cjs/components/flag/flag.js +1 -1
  16. package/cjs/components/flag/flag.js.map +1 -1
  17. package/cjs/components/label/label.d.ts +4 -1
  18. package/cjs/components/label/label.js +1 -1
  19. package/cjs/components/label/label.js.map +1 -1
  20. package/cjs/components/modal/modal.d.ts +23 -43
  21. package/cjs/components/modal/modal.js +1 -1
  22. package/cjs/components/modal/modal.js.map +1 -1
  23. package/cjs/components/modal/modalTitle.d.ts +6 -2
  24. package/cjs/components/modal/modalTitle.js +1 -1
  25. package/cjs/components/modal/modalTitle.js.map +1 -1
  26. package/cjs/components/quickLink/quickLink.js +1 -1
  27. package/cjs/components/quickLink/quickLink.js.map +1 -1
  28. package/cjs/components/video/Video.js +1 -1
  29. package/cjs/components/video/Video.js.map +1 -1
  30. package/cjs/components/video/hooks.js +1 -1
  31. package/cjs/components/video/hooks.js.map +1 -1
  32. package/cjs/index.js +1 -1
  33. package/cjs/layout/Footer/FooterAccordion.js +1 -1
  34. package/cjs/layout/Footer/FooterAccordion.js.map +1 -1
  35. package/cjs/layout/Footer/FooterMenu.js +1 -1
  36. package/cjs/layout/Footer/FooterMenu.js.map +1 -1
  37. package/cjs/layout/Footer/FooterSectionLinks.js +1 -1
  38. package/cjs/layout/Footer/FooterSectionLinks.js.map +1 -1
  39. package/cjs/layout/SecondaryNavigation/SecondaryNavigation.js +1 -1
  40. package/cjs/layout/SecondaryNavigation/SecondaryNavigation.js.map +1 -1
  41. package/cjs/layout/cookieModal/CookieModal.d.ts +16 -37
  42. package/cjs/layout/cookieModal/CookieModal.js +1 -1
  43. package/cjs/layout/cookieModal/CookieModal.js.map +1 -1
  44. package/cjs/layout/cookieModal/CookieModalItem.d.ts +3 -0
  45. package/cjs/layout/cookieModal/CookieModalItem.js.map +1 -1
  46. package/cjs/materialui/alert/alert.theme.js +1 -1
  47. package/cjs/materialui/alert/alert.theme.js.map +1 -1
  48. package/cjs/materialui/avatar/avatar.theme.js +1 -1
  49. package/cjs/materialui/avatar/avatar.theme.js.map +1 -1
  50. package/cjs/materialui/avatar/avatarGroup.theme.js +1 -1
  51. package/cjs/materialui/avatar/avatarGroup.theme.js.map +1 -1
  52. package/cjs/materialui/button/button.theme.js +1 -1
  53. package/cjs/materialui/button/button.theme.js.map +1 -1
  54. package/cjs/materialui/chip/chip.theme.js +1 -1
  55. package/cjs/materialui/chip/chip.theme.js.map +1 -1
  56. package/cjs/materialui/container/container.theme.js +1 -1
  57. package/cjs/materialui/container/container.theme.js.map +1 -1
  58. package/cjs/materialui/dialog/DialogTitle.d.ts +7 -0
  59. package/cjs/materialui/dialog/DialogTitle.js +2 -0
  60. package/cjs/materialui/dialog/DialogTitle.js.map +1 -0
  61. package/cjs/materialui/dialog/dialog.theme.js +1 -1
  62. package/cjs/materialui/dialog/dialog.theme.js.map +1 -1
  63. package/cjs/materialui/dialog/dialogActions.theme.js +1 -1
  64. package/cjs/materialui/dialog/dialogActions.theme.js.map +1 -1
  65. package/cjs/materialui/dialog/dialogContent.theme.d.ts +2 -0
  66. package/cjs/materialui/dialog/dialogContent.theme.js +2 -0
  67. package/cjs/materialui/dialog/dialogContent.theme.js.map +1 -0
  68. package/cjs/materialui/dialog/dialogContentText.theme.js +1 -1
  69. package/cjs/materialui/dialog/dialogContentText.theme.js.map +1 -1
  70. package/cjs/materialui/dialog/dialogTitle.theme.js +1 -1
  71. package/cjs/materialui/dialog/dialogTitle.theme.js.map +1 -1
  72. package/cjs/materialui/dialog/index.d.ts +2 -0
  73. package/cjs/materialui/iconButton/iconButton.theme.js +1 -1
  74. package/cjs/materialui/iconButton/iconButton.theme.js.map +1 -1
  75. package/cjs/materialui/index.d.ts +1 -0
  76. package/cjs/materialui/list/listItemAvatar.theme.js +1 -1
  77. package/cjs/materialui/list/listItemAvatar.theme.js.map +1 -1
  78. package/cjs/materialui/list/listItemButton.theme.js +1 -1
  79. package/cjs/materialui/list/listItemButton.theme.js.map +1 -1
  80. package/cjs/materialui/list/listItemText.theme.js +1 -1
  81. package/cjs/materialui/list/listItemText.theme.js.map +1 -1
  82. package/cjs/materialui/skeleton/skeleton.theme.js +1 -1
  83. package/cjs/materialui/skeleton/skeleton.theme.js.map +1 -1
  84. package/cjs/materialui/slider/sliderValues.js +1 -1
  85. package/cjs/materialui/slider/sliderValues.js.map +1 -1
  86. package/cjs/materialui/table/stories/index.d.ts +1 -0
  87. package/cjs/materialui/table/stories/small.d.ts +1 -0
  88. package/cjs/materialui/table/tableCell.theme.js +1 -1
  89. package/cjs/materialui/table/tableCell.theme.js.map +1 -1
  90. package/cjs/materialui/textfield/filledInput.theme.js +1 -1
  91. package/cjs/materialui/textfield/filledInput.theme.js.map +1 -1
  92. package/cjs/materialui/textfield/inputBase.theme.js +1 -1
  93. package/cjs/materialui/textfield/inputBase.theme.js.map +1 -1
  94. package/cjs/materialui/theme/paletteLight.theme.js +1 -1
  95. package/cjs/materialui/theme/paletteLight.theme.js.map +1 -1
  96. package/cjs/materialui/theme/theme.extensions.d.ts +26 -1
  97. package/cjs/materialui/theme/theme.js +1 -1
  98. package/cjs/materialui/theme/theme.js.map +1 -1
  99. package/cjs/materialui/theme/theme.typography.js +1 -1
  100. package/cjs/materialui/theme/theme.typography.js.map +1 -1
  101. package/cjs/materialui/themeProvider/baseline.theme.js +1 -1
  102. package/cjs/materialui/themeProvider/baseline.theme.js.map +1 -1
  103. package/cjs/node_modules/swiper/modules/keyboard.js +1 -1
  104. package/cjs/node_modules/swiper/modules/keyboard.js.map +1 -1
  105. package/cjs/node_modules/swiper/shared/effect-init.js +1 -1
  106. package/cjs/node_modules/swiper/shared/effect-init.js.map +1 -1
  107. package/cjs/node_modules/swiper/shared/effect-virtual-transition-end.js +1 -1
  108. package/cjs/node_modules/swiper/shared/effect-virtual-transition-end.js.map +1 -1
  109. package/cjs/node_modules/swiper/shared/swiper-core.js +1 -1
  110. package/cjs/node_modules/swiper/shared/swiper-core.js.map +1 -1
  111. package/cjs/node_modules/swiper/shared/update-on-virtual-data.js +1 -1
  112. package/cjs/node_modules/swiper/shared/update-on-virtual-data.js.map +1 -1
  113. package/cjs/node_modules/swiper/shared/update-swiper.js +1 -1
  114. package/cjs/node_modules/swiper/shared/update-swiper.js.map +1 -1
  115. package/cjs/node_modules/swiper/shared/utils.js +1 -1
  116. package/cjs/node_modules/swiper/shared/utils.js.map +1 -1
  117. package/cjs/node_modules/swiper/swiper-react.js.map +1 -1
  118. package/cjs/organisms/carousel2/cardCarousel/cardCarousel.d.ts +1 -1
  119. package/cjs/organisms/carousel2/galleryCarousel/galleryCarousel.d.ts +1 -1
  120. package/cjs/organisms/carousel2/heroCarousel/heroCarousel.d.ts +1 -1
  121. package/cjs/organisms/gallery/Gallery.d.ts +3 -0
  122. package/cjs/organisms/gallery/Gallery.js +1 -1
  123. package/cjs/organisms/gallery/Gallery.js.map +1 -1
  124. package/cjs/organisms/notification/Notification.js +1 -1
  125. package/cjs/organisms/notification/Notification.js.map +1 -1
  126. package/cjs/utils/index.d.ts +1 -0
  127. package/cjs/utils/useElementScrollable/index.d.ts +1 -0
  128. package/cjs/utils/useElementScrollable/useElementScrollable.d.ts +1 -1
  129. package/cjs/utils/useElementScrollable/useElementScrollable.js +1 -1
  130. package/cjs/utils/useElementScrollable/useElementScrollable.js.map +1 -1
  131. package/components/alert/Alert.js +1 -1
  132. package/components/alert/Alert.js.map +1 -1
  133. package/components/bottomSheet/bottomSheet.d.ts +1 -1
  134. package/components/bottomSheet/bottomSheet.js +1 -1
  135. package/components/bottomSheet/bottomSheet.js.map +1 -1
  136. package/components/carousel/hooks.js +1 -1
  137. package/components/carousel/hooks.js.map +1 -1
  138. package/components/carousel/pagination.d.ts +21 -7
  139. package/components/carousel/pagination.js +1 -1
  140. package/components/carousel/pagination.js.map +1 -1
  141. package/components/closeDialogButton/index.d.ts +4 -1
  142. package/components/closeDialogButton/index.js +1 -1
  143. package/components/closeDialogButton/index.js.map +1 -1
  144. package/components/flag/flag.d.ts +3 -5
  145. package/components/flag/flag.js +1 -1
  146. package/components/flag/flag.js.map +1 -1
  147. package/components/label/label.d.ts +4 -1
  148. package/components/label/label.js +1 -1
  149. package/components/label/label.js.map +1 -1
  150. package/components/modal/modal.d.ts +23 -43
  151. package/components/modal/modal.js +1 -1
  152. package/components/modal/modal.js.map +1 -1
  153. package/components/modal/modalTitle.d.ts +6 -2
  154. package/components/modal/modalTitle.js +1 -1
  155. package/components/modal/modalTitle.js.map +1 -1
  156. package/components/quickLink/quickLink.js +1 -1
  157. package/components/quickLink/quickLink.js.map +1 -1
  158. package/components/video/Video.js +1 -1
  159. package/components/video/Video.js.map +1 -1
  160. package/components/video/hooks.js +1 -1
  161. package/components/video/hooks.js.map +1 -1
  162. package/index.js +1 -1
  163. package/layout/Footer/FooterAccordion.js +1 -1
  164. package/layout/Footer/FooterAccordion.js.map +1 -1
  165. package/layout/Footer/FooterMenu.js +1 -1
  166. package/layout/Footer/FooterMenu.js.map +1 -1
  167. package/layout/Footer/FooterSectionLinks.js +1 -1
  168. package/layout/Footer/FooterSectionLinks.js.map +1 -1
  169. package/layout/SecondaryNavigation/SecondaryNavigation.js +1 -1
  170. package/layout/SecondaryNavigation/SecondaryNavigation.js.map +1 -1
  171. package/layout/cookieModal/CookieModal.d.ts +16 -37
  172. package/layout/cookieModal/CookieModal.js +1 -1
  173. package/layout/cookieModal/CookieModal.js.map +1 -1
  174. package/layout/cookieModal/CookieModalItem.d.ts +3 -0
  175. package/layout/cookieModal/CookieModalItem.js.map +1 -1
  176. package/materialui/alert/alert.theme.js +1 -1
  177. package/materialui/alert/alert.theme.js.map +1 -1
  178. package/materialui/avatar/avatar.theme.js +1 -1
  179. package/materialui/avatar/avatar.theme.js.map +1 -1
  180. package/materialui/avatar/avatarGroup.theme.js +1 -1
  181. package/materialui/avatar/avatarGroup.theme.js.map +1 -1
  182. package/materialui/button/button.theme.js +1 -1
  183. package/materialui/button/button.theme.js.map +1 -1
  184. package/materialui/chip/chip.theme.js +1 -1
  185. package/materialui/chip/chip.theme.js.map +1 -1
  186. package/materialui/container/container.theme.js +1 -1
  187. package/materialui/container/container.theme.js.map +1 -1
  188. package/materialui/dialog/DialogTitle.d.ts +7 -0
  189. package/materialui/dialog/DialogTitle.js +2 -0
  190. package/materialui/dialog/DialogTitle.js.map +1 -0
  191. package/materialui/dialog/dialog.theme.js +1 -1
  192. package/materialui/dialog/dialog.theme.js.map +1 -1
  193. package/materialui/dialog/dialogActions.theme.js +1 -1
  194. package/materialui/dialog/dialogActions.theme.js.map +1 -1
  195. package/materialui/dialog/dialogContent.theme.d.ts +2 -0
  196. package/materialui/dialog/dialogContent.theme.js +2 -0
  197. package/materialui/dialog/dialogContent.theme.js.map +1 -0
  198. package/materialui/dialog/dialogContentText.theme.js +1 -1
  199. package/materialui/dialog/dialogContentText.theme.js.map +1 -1
  200. package/materialui/dialog/dialogTitle.theme.js +1 -1
  201. package/materialui/dialog/dialogTitle.theme.js.map +1 -1
  202. package/materialui/dialog/index.d.ts +2 -0
  203. package/materialui/iconButton/iconButton.theme.js +1 -1
  204. package/materialui/iconButton/iconButton.theme.js.map +1 -1
  205. package/materialui/index.d.ts +1 -0
  206. package/materialui/list/listItemAvatar.theme.js +1 -1
  207. package/materialui/list/listItemAvatar.theme.js.map +1 -1
  208. package/materialui/list/listItemButton.theme.js +1 -1
  209. package/materialui/list/listItemButton.theme.js.map +1 -1
  210. package/materialui/list/listItemText.theme.js +1 -1
  211. package/materialui/list/listItemText.theme.js.map +1 -1
  212. package/materialui/skeleton/skeleton.theme.js +1 -1
  213. package/materialui/skeleton/skeleton.theme.js.map +1 -1
  214. package/materialui/slider/sliderValues.js +1 -1
  215. package/materialui/slider/sliderValues.js.map +1 -1
  216. package/materialui/table/stories/index.d.ts +1 -0
  217. package/materialui/table/stories/small.d.ts +1 -0
  218. package/materialui/table/tableCell.theme.js +1 -1
  219. package/materialui/table/tableCell.theme.js.map +1 -1
  220. package/materialui/textfield/filledInput.theme.js +1 -1
  221. package/materialui/textfield/filledInput.theme.js.map +1 -1
  222. package/materialui/textfield/inputBase.theme.js +1 -1
  223. package/materialui/textfield/inputBase.theme.js.map +1 -1
  224. package/materialui/theme/paletteLight.theme.js +1 -1
  225. package/materialui/theme/paletteLight.theme.js.map +1 -1
  226. package/materialui/theme/theme.extensions.d.ts +26 -1
  227. package/materialui/theme/theme.js +1 -1
  228. package/materialui/theme/theme.js.map +1 -1
  229. package/materialui/theme/theme.typography.js +1 -1
  230. package/materialui/theme/theme.typography.js.map +1 -1
  231. package/materialui/themeProvider/baseline.theme.js +1 -1
  232. package/materialui/themeProvider/baseline.theme.js.map +1 -1
  233. package/organisms/carousel2/cardCarousel/cardCarousel.d.ts +1 -1
  234. package/organisms/carousel2/galleryCarousel/galleryCarousel.d.ts +1 -1
  235. package/organisms/carousel2/heroCarousel/heroCarousel.d.ts +1 -1
  236. package/organisms/gallery/Gallery.d.ts +3 -0
  237. package/organisms/gallery/Gallery.js +1 -1
  238. package/organisms/gallery/Gallery.js.map +1 -1
  239. package/organisms/notification/Notification.js +1 -1
  240. package/organisms/notification/Notification.js.map +1 -1
  241. package/package.json +1 -1
  242. package/utils/index.d.ts +1 -0
  243. package/utils/useElementScrollable/index.d.ts +1 -0
  244. package/utils/useElementScrollable/useElementScrollable.d.ts +1 -1
  245. package/utils/useElementScrollable/useElementScrollable.js +1 -1
  246. package/utils/useElementScrollable/useElementScrollable.js.map +1 -1
  247. package/cjs/components/modal/contentDiv.d.ts +0 -15
  248. package/cjs/components/modal/contentDiv.js +0 -2
  249. package/cjs/components/modal/contentDiv.js.map +0 -1
  250. package/cjs/materialui/dialog/dialog.component.d.ts +0 -9
  251. package/components/modal/contentDiv.d.ts +0 -15
  252. package/components/modal/contentDiv.js +0 -2
  253. package/components/modal/contentDiv.js.map +0 -1
  254. package/materialui/dialog/dialog.component.d.ts +0 -9
@@ -1,89 +1,69 @@
1
- import React, { HTMLAttributes } from 'react';
1
+ import React from 'react';
2
2
  import { ButtonVariants } from '../button';
3
- /**
4
- * @interface Base defintion of SkodaFlow Modal component independent on core implementation.
5
- */
6
- export interface ModalProps extends HTMLAttributes<HTMLDivElement> {
3
+ import { DialogProps } from '@mui/material';
4
+ export interface ModalProps extends Omit<DialogProps, 'maxWidth'> {
7
5
  /**
8
- * If true, the component is shown.
9
- */
10
- open: boolean;
11
- /**
12
- * Callback used to close the modal.
6
+ * @deprecated rename to onClose
13
7
  */
14
8
  handleClose?: () => void;
15
9
  /**
16
- * Callback for the top button.
10
+ * @deprecated provide your own <DialogActions><Button /></DialogActions>
17
11
  */
18
12
  onClickTopButton?: () => void;
19
13
  /**
20
- * Callback for the bottom button.
14
+ * @deprecated provide your own <DialogActions><Button /></DialogActions>
21
15
  */
22
16
  onClickBottomButton?: () => void;
23
17
  /**
24
- * Accessibility.
18
+ * @deprecated rename to aria-labelledby
25
19
  */
26
20
  ariaLabelledby?: string;
27
21
  /**
28
- * Accessibility.
22
+ * @deprecated rename to aria-describedby
29
23
  */
30
24
  ariaDescribedBy?: string;
31
25
  /**
32
- * Top button text.
26
+ * @deprecated provide your own <DialogActions><Button /></DialogActions>
33
27
  */
34
28
  firstButton?: string;
35
29
  /**
36
- * Bottom button text.
30
+ * @deprecated provide your own <DialogActions><Button /></DialogActions>
37
31
  */
38
32
  secondButton?: string;
39
33
  /**
40
- * Variant of button defines different look and style.
34
+ * @deprecated provide your own <DialogActions><Button /></DialogActions>
41
35
  */
42
36
  firstButtonVariant?: ButtonVariants;
43
37
  /**
44
- * Variant of button defines different look and style.
38
+ * @deprecated provide your own <DialogActions><Button /></DialogActions>
45
39
  */
46
40
  secondButtonVariant?: ButtonVariants;
47
41
  /**
48
- * If true, the second button is visible.
42
+ * @deprecated provide your own <DialogActions><Button /></DialogActions>
49
43
  */
50
44
  secondButtonVisible?: boolean;
51
45
  /**
52
- * If true, the buttons are displayed as compact. The feature is only working for mobile view.
46
+ * @deprecated provide <DialogTitle onClose={() => {} />
53
47
  */
54
48
  hasCloseButton?: boolean;
55
49
  /**
56
- * The size of the modal in desktop view.
50
+ * @deprecated use maxWidth={'sm' | 'md' | 'lg'} instead
57
51
  */
58
52
  size?: 'small' | 'large' | 'full-width';
59
- defaultButtonSection?: boolean;
60
- maxWidth?: string;
61
53
  /**
62
- * A callback used to track if the modal is fully loaded. When the modal is closed isLoaded is set to false.
54
+ * @deprecated provide your own <DialogActions>
63
55
  */
64
- modalLoadedCallback?: (isLoaded: boolean) => void;
65
- /**
66
- * If true, the modal will not prevent focus from leaving the modal while open.
67
- * Generally this should never be set to true as it makes the modal less accessible to assistive technologies, like screen readers.
68
- * @default false
69
- */
70
- disableEnforceFocus?: boolean;
56
+ defaultButtonSection?: boolean;
71
57
  /**
72
- * If true, the modal will not automatically shift focus to itself when it opens, and replace it to the last focused element when it closes. This also works correctly with any modal children that have the disableAutoFocus prop.
73
- * Generally this should never be set to true as it makes the modal less accessible to assistive technologies, like screen readers.
74
- * @default false
58
+ * Defines size of the dialog
75
59
  */
76
- disableAutoFocus?: boolean;
60
+ maxWidth?: DialogProps['maxWidth'] | string;
77
61
  /**
78
- * If `true`, the modal will not restore focus to previously focused element once
79
- * modal is hidden or unmounted.
80
- * @default false
62
+ * @deprecated write custom hook monitoring open status
81
63
  */
82
- disableRestoreFocus?: boolean;
64
+ modalLoadedCallback?: (isLoaded: boolean) => void;
83
65
  }
84
66
  /**
85
- * @description Styled SkodaFlow Modal component
86
- * @param props ModalProps
87
- * @returns React Functional Component
67
+ * @deprecated This Modal component is deprecated. Please use the new Dialog component from MUI instead.
88
68
  */
89
- export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
69
+ export declare const Modal: React.ForwardRefExoticComponent<Omit<ModalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,2 @@
1
- "use strict";var t=require("tslib"),a=require("react/jsx-runtime"),e=require("react"),o=require("../button/button.js"),i=require("../icon/icon.js");require("../icon/icon.definitions.js");var n=require("./contentDiv.js"),d=require("@mui/material");const s=e.forwardRef(((s,r)=>{var{children:c,open:u,handleClose:p,onClickTopButton:m,onClickBottomButton:x,ariaLabelledby:b,ariaDescribedBy:h,firstButton:g,secondButton:B,hasCloseButton:f,size:v,firstButtonVariant:C,secondButtonVariant:j,secondButtonVisible:k,defaultButtonSection:w=!0,maxWidth:F,modalLoadedCallback:W,disableAutoFocus:M,disableEnforceFocus:y,disableRestoreFocus:T}=s,q=t.__rest(s,["children","open","handleClose","onClickTopButton","onClickBottomButton","ariaLabelledby","ariaDescribedBy","firstButton","secondButton","hasCloseButton","size","firstButtonVariant","secondButtonVariant","secondButtonVisible","defaultButtonSection","maxWidth","modalLoadedCallback","disableAutoFocus","disableEnforceFocus","disableRestoreFocus"]);const[z,S]=e.useState(!1),[V,D]=e.useState(!1),L=d.useTheme();e.useEffect((()=>{const t=window.matchMedia(`(min-width: ${L.breakpoints.values.md}px)`);D(t.matches)}),[L.breakpoints.values.md]);const O=e.useCallback((()=>{if(V&&"large"===(v||"large"))return!1}),[V,v]);return a.jsx(l,Object.assign({},q,{ref:r,open:u,size:v,onClose:p,isOverFlowing:z,"aria-labelledby":b,"aria-describedby":h,compactButtons:O(),maxWidth:F,"data-testid":"Modal",disableEnforceFocus:y,disableAutoFocus:M,disableRestoreFocus:T,dir:L.direction,children:a.jsxs("div",{className:"modal-container","data-testid":"Modal.container",children:[f&&a.jsx("button",{onClick:p,"data-testid":"Modal.close",children:a.jsx(i.Icon,{name:"close",fontSize:"medium"})}),a.jsx(n.ContentDiv,{setIsOverFlowing:S,className:"modal-container--content",modalLoadedCallback:W,"data-testid":"Modal.content",children:c}),w&&a.jsxs("div",{className:"modal-container--action-buttons","data-testid":"Modal.buttons",children:[a.jsx(o.Button,{label:g,onClick:m,fullWidth:!0,variant:C,compact:O(),"data-testid":"Modal.button1","data-variant":C}),k&&a.jsx(o.Button,{label:B,onClick:x,fullWidth:!0,variant:j,compact:O(),"data-testid":"Modal.button2","data-variant":j})]})]})}))})),l=d.styled(d.Modal,{shouldForwardProp:t=>"compactButtons"!==t&&"isOverFlowing"!==t&&"maxWidth"!==t})((a=>{var{theme:e}=a,o=t.__rest(a,["theme"]);const i=o.compactButtons?"16px":"24px",n=o.maxWidth?o.maxWidth:"calc(100% - 40px)",d="large"===(o.size||"large"),s=o.size&&"full-width"===o.size,l=d?{maxWidth:"624px",marginTop:"40px",padding:"40px"}:s?{maxWidth:n,marginTop:"40px",padding:"40px"}:{maxWidth:"408px",marginTop:"48px",padding:"24px 40px 40px 40px"};return{"& .modal-container":{maxHeight:"calc(100vh - 64px)",minHeight:"300px",display:"flex",flexDirection:"column","&--content":{overflowX:"hidden",overflowY:"auto",marginTop:"48px",padding:"0px 24px"},"&--action-buttons":{padding:"32px 24px",paddingBottom:i,boxShadow:o.isOverFlowing?"0px 0px 32px rgba(0, 0, 0, 0.15)":null,"& > *:first-of-type":{marginBottom:"15px"}}},[e.breakpoints.up("md")]:{"& .modal-container":{maxHeight:"calc(100vh - 160px)",margin:"0px",width:"100%",maxWidth:l.maxWidth,"&--content":{marginTop:l.marginTop,padding:"0px 40px"},"&--action-buttons":{padding:l.padding,paddingBottom:i}}}}}));exports.Modal=s;
1
+ "use strict";var t=require("tslib"),e=require("react/jsx-runtime"),a=require("react"),o=require("../button/button.js"),l=require("../../utils/useElementScrollable/useElementScrollable.js"),n=require("@mui/material");const s=a.forwardRef(((s,i)=>{var{children:d,open:r,onClose:u,maxWidth:c,sx:b,handleClose:B,onClickTopButton:m,onClickBottomButton:x,ariaLabelledby:C,ariaDescribedBy:f,firstButton:h,secondButton:j,hasCloseButton:g,size:p,firstButtonVariant:M,secondButtonVariant:k,secondButtonVisible:v,defaultButtonSection:y=!0,modalLoadedCallback:q}=s,D=t.__rest(s,["children","open","onClose","maxWidth","sx","handleClose","onClickTopButton","onClickBottomButton","ariaLabelledby","ariaDescribedBy","firstButton","secondButton","hasCloseButton","size","firstButtonVariant","secondButtonVariant","secondButtonVisible","defaultButtonSection","modalLoadedCallback"]);const{isScrollable:S,elementRef:V}=l.useElementScrollable("y");a.useEffect((()=>{null==q||q(r)}),[r]);const E=a.useMemo((()=>p?{small:"sm",large:"md","full-width":!1}[p]:!!["xs","sm","md","lg","xl"].includes(`${c}`)&&c),[p,c]);return e.jsxs(n.Dialog,Object.assign({ref:i,open:r,onClose:null!=B?B:u,"aria-labelledby":C,"aria-describedby":f,maxWidth:E,"data-testid":"Modal",PaperProps:{"data-testid":"Modal.container"},sx:Object.assign(Object.assign({},!1===E&&c&&{maxWidth:c}),b)},D,{children:[e.jsx(n.DialogTitle,{onClose:null!=B?B:u,closeIconButtonProps:{"data-testid":"Modal.close"}}),e.jsx(n.DialogContent,{"data-testid":"Modal.content",dividers:S,ref:V,children:d}),y&&e.jsxs(n.DialogActions,{"data-testid":"Modal.buttons",children:[e.jsx(o.Button,{label:h,onClick:m,variant:M,"data-testid":"Modal.button1","data-variant":M}),v&&e.jsx(o.Button,{label:j,onClick:x,variant:k,"data-testid":"Modal.button2","data-variant":k})]})]}))}));exports.Modal=s;
2
2
  //# sourceMappingURL=modal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modal.js","sources":["../../../../../src/components/modal/modal.tsx"],"sourcesContent":[null],"names":["Modal","forwardRef","_a","ref","children","open","handleClose","onClickTopButton","onClickBottomButton","ariaLabelledby","ariaDescribedBy","firstButton","secondButton","hasCloseButton","size","firstButtonVariant","secondButtonVariant","secondButtonVisible","defaultButtonSection","maxWidth","modalLoadedCallback","disableAutoFocus","disableEnforceFocus","disableRestoreFocus","props","__rest","isOverFlowing","setIsOverFlowing","useState","desktopView","setDesktopView","theme","useTheme","useEffect","mq","window","matchMedia","breakpoints","values","md","matches","isCompactButton","useCallback","_jsx","ModalStyled","onClose","compactButtons","dir","direction","_jsxs","className","onClick","jsx","Icon","name","fontSize","ContentDiv","Button","label","fullWidth","variant","compact","styled","MuiModal","shouldForwardProp","prop","args","bottomButtonPadding","fullWidthModal","isModalLarge","isModalFullWidth","sizeBasedStyles","marginTop","padding","maxHeight","minHeight","display","flexDirection","overflowX","overflowY","paddingBottom","boxShadow","marginBottom","up","margin","width"],"mappings":"uPAmGa,MAAAA,EAAQC,EAAUA,YAC7B,CACEC,EAuBAC,SAvBAC,SACEA,EAAQC,KACRA,EAAIC,YACJA,EAAWC,iBACXA,EAAgBC,oBAChBA,EAAmBC,eACnBA,EAAcC,gBACdA,EAAeC,YACfA,EAAWC,aACXA,EAAYC,eACZA,EAAcC,KACdA,EAAIC,mBACJA,EAAkBC,oBAClBA,EAAmBC,oBACnBA,EAAmBC,qBACnBA,GAAuB,EAAIC,SAC3BA,EAAQC,oBACRA,EAAmBC,iBACnBA,EAAgBC,oBAChBA,EAAmBC,oBACnBA,KACGC,EArBLC,EAAAA,OAAAvB,EAAA,CAAA,WAAA,OAAA,cAAA,mBAAA,sBAAA,iBAAA,kBAAA,cAAA,eAAA,iBAAA,OAAA,qBAAA,sBAAA,sBAAA,uBAAA,WAAA,sBAAA,mBAAA,sBAAA,wBAyBA,MAAOwB,EAAeC,GAAoBC,EAAAA,UAAkB,IACrDC,EAAaC,GAAkBF,EAAAA,UAAS,GACzCG,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,MAAEA,GAAgB7B,EAANgE,EAAIzC,EAAAA,OAAAvB,EAAhB,WACD,MAAMiE,EAAsBD,EAAKpB,eAAiB,OAAS,OAIrDsB,EAAiBF,EAAK/C,SAAW+C,EAAK/C,SAAW,oBAEjDkD,EAA0C,WAA1BH,EAAKpD,MAAQ,SAC7BwD,EAAmBJ,EAAKpD,MAAsB,eAAdoD,EAAKpD,KACrCyD,EAAkBF,EACpB,CAAElD,SANkB,QAMSqD,UAAW,OAAQC,QAAS,QACzDH,EACE,CAAEnD,SAAUiD,EAAgBI,UAAW,OAAQC,QAAS,QACxD,CACEtD,SAXgB,QAYhBqD,UAAW,OACXC,QAAS,uBAGjB,MAAO,CACL,qBAAsB,CACpBC,UAAW,qBACXC,UAAW,QACXC,QAAS,OACTC,cAAe,SACf,aAAc,CACZC,UAAW,SACXC,UAAW,OACXP,UAAW,OACXC,QAAS,YAEX,oBAAqB,CACnBA,QAAS,YACTO,cAAeb,EACfc,UAAWf,EAAKxC,cAAgB,mCAAqC,KACrE,sBAAuB,CACrBwD,aAAc,UAIpB,CAACnD,EAAMM,YAAY8C,GAAG,OAAQ,CAC5B,qBAAsB,CACpBT,UAAW,sBACXU,OAAQ,MACRC,MAAO,OACPlE,SAAUoD,EAAgBpD,SAC1B,aAAc,CACZqD,UAAWD,EAAgBC,UAC3BC,QAAS,YAEX,oBAAqB,CACnBA,QAASF,EAAgBE,QACzBO,cAAeb,KAItB"}
1
+ {"version":3,"file":"modal.js","sources":["../../../../../src/components/modal/modal.tsx"],"sourcesContent":[null],"names":["Modal","forwardRef","_a","ref","children","open","onClose","maxWidth","sx","handleClose","onClickTopButton","onClickBottomButton","ariaLabelledby","ariaDescribedBy","firstButton","secondButton","hasCloseButton","size","firstButtonVariant","secondButtonVariant","secondButtonVisible","defaultButtonSection","modalLoadedCallback","rest","__rest","isScrollable","elementRef","useElementScrollable","useEffect","calculatedMaxWidth","useMemo","small","large","includes","_jsxs","Dialog","Object","assign","PaperProps","_jsx","DialogTitle","closeIconButtonProps","DialogContent","dividers","DialogActions","Button","label","onClick","variant"],"mappings":"wNAuEa,MAAAA,EAAQC,EAAUA,YAC7B,CACEC,EAsBAC,SAtBAC,SACEA,EAAQC,KACRA,EAAIC,QACJA,EAAOC,SACPA,EAAQC,GACRA,EAAEC,YACFA,EAAWC,iBACXA,EAAgBC,oBAChBA,EAAmBC,eACnBA,EAAcC,gBACdA,EAAeC,YACfA,EAAWC,aACXA,EAAYC,eACZA,EAAcC,KACdA,EAAIC,mBACJA,EAAkBC,oBAClBA,EAAmBC,oBACnBA,EAAmBC,qBACnBA,GAAuB,EAAIC,oBAC3BA,GAAmBpB,EAChBqB,EAAIC,SAAAtB,EApBT,4SAwBA,MAAMuB,aAAEA,EAAYC,WAAEA,GAAeC,EAAAA,qBAAqB,KAE1DC,EAAAA,WAAU,KACRN,SAAAA,EAAsBjB,EAAK,GAC1B,CAACA,IAEJ,MAAMwB,EAAqBC,EAAAA,SAAQ,IAC7Bb,EACK,CAAEc,MAAO,KAAMC,MAAO,KAAM,cAAgB,GAAQf,KAEvD,CAAC,KAAM,KAAM,KAAM,KAAM,MAAMgB,SAAS,GAAG1B,MACtCA,GAIV,CAACU,EAAMV,IAEV,OACE2B,OAACC,EAAAA,OAAMC,OAAAC,OAAA,CACLlC,IAAKA,EACLE,KAAMA,EACNC,QAASG,QAAAA,EAAeH,EAAO,kBACdM,EACC,mBAAAC,EAClBN,SAAUsB,EAAkB,cAChB,QACZS,WAAY,CACV,cAAiB,mBAEnB9B,GAAE4B,OAAAC,OAAAD,OAAAC,OAAA,CAAA,GAC2B,IAAvBR,GACFtB,GAAY,CACVA,SAAUA,IAEXC,IAEDe,aAEJgB,EAAAA,IAACC,EAAWA,YAAC,CAAAlC,QAASG,QAAAA,EAAeH,EAASmC,qBAAsB,CAAE,cAAiB,iBACvFF,EAAAA,IAACG,EAAAA,cAA0B,CAAA,cAAA,gBAAgBC,SAAUlB,EAActB,IAAKuB,EACrEtB,SAAAA,IAEFiB,GACCa,EAAAA,KAACU,EAAaA,6BAAa,gBAAexC,SAAA,CACxCmC,EAAAA,IAACM,EAAAA,OAAM,CACLC,MAAOhC,EACPiC,QAASrC,EACTsC,QAAS9B,EACG,cAAA,+BACEA,IAEfE,GACCmB,EAAAA,IAACM,EAAAA,OAAM,CACLC,MAAO/B,EACPgC,QAASpC,EACTqC,QAAS7B,EACG,cAAA,+BACEA,UAKf"}
@@ -1,3 +1,7 @@
1
+ import React from 'react';
1
2
  import { TypographyProps } from '@mui/material';
2
- export type ModalTitleProps = Omit<TypographyProps, 'variant'>;
3
- export declare const ModalTitle: import("@emotion/styled").StyledComponent<ModalTitleProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
3
+ export type ModalTitleProps = TypographyProps;
4
+ /**
5
+ * @deprecated use DialogTitle instead
6
+ */
7
+ export declare const ModalTitle: React.FC<ModalTitleProps>;
@@ -1,2 +1,2 @@
1
- "use strict";var t=require("react/jsx-runtime"),e=require("@mui/material");const r=r=>t.jsx(e.Typography,Object.assign({},r,{variant:"h3"}));r.defaultProps={gutterBottom:!0};const i=e.styled(r)((t=>({"&&":{marginTop:"0px",fontSize:"20px",lineHeight:"30px",marginBottom:t.gutterBottom?"16px":"inherit"}})));exports.ModalTitle=i;
1
+ "use strict";var r=require("tslib"),e=require("react/jsx-runtime"),t=require("@mui/material");exports.ModalTitle=i=>{var{sx:s}=i,a=r.__rest(i,["sx"]);return e.jsx(t.Typography,Object.assign({component:"h2",variant:"h3",sx:Object.assign({marginTop:"-24px",marginBottom:"24px"},s)},a))};
2
2
  //# sourceMappingURL=modalTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modalTitle.js","sources":["../../../../../src/components/modal/modalTitle.tsx"],"sourcesContent":[null],"names":["ModalTitleBase","props","_jsx","jsx","Typography","Object","assign","variant","defaultProps","gutterBottom","ModalTitle","styled","marginTop","fontSize","lineHeight","marginBottom"],"mappings":"2EAKA,MAAMA,EAA6CC,GAAUC,EAAAC,IAACC,EAAUA,WAAAC,OAAAC,OAAA,CAAA,EAAKL,EAAO,CAAAM,QAAS,QAE7FP,EAAeQ,aAAe,CAC5BC,cAAc,GAGT,MAAMC,EAAaC,EAAMA,OAACX,EAAPW,EAAyCV,IAAW,CAC5E,KAAM,CACJW,UAAW,MACXC,SAAU,OACVC,WAAY,OACZC,aAAcd,EAAMQ,aAAe,OAAS"}
1
+ {"version":3,"file":"modalTitle.js","sources":["../../../../../src/components/modal/modalTitle.tsx"],"sourcesContent":[null],"names":["_a","sx","rest","__rest","_jsx","jsx","Typography","Object","assign","component","variant","marginTop","marginBottom"],"mappings":"iHAQsDA,IAAA,IAAAC,GAAEA,GAAaD,EAANE,EAAIC,EAAAA,OAAAH,EAAb,QAAoB,OACxEI,EAACC,IAAAC,aAAWC,OAAAC,OAAA,CAAAC,UAAU,KAAKC,QAAQ,KAAKT,GAAMM,OAAAC,OAAA,CAAAG,UAAW,QAASC,aAAc,QAAWX,IAAUC,GAAQ"}
@@ -1,2 +1,2 @@
1
- "use strict";var t=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),i=require("@mui/material"),e=require("../icon/icon.js");require("../icon/icon.definitions.js");var n=require("../icon/stroke/ArrowRightIcon.js"),o=require("../../materialui/button/interactive.js");const a=s.forwardRef(((s,a)=>{var{iconName:c,iconProps:p,title:x,titleTypographyProps:d,subtitle:l,subtitleTypographyProps:u,dividerWrapperProps:b,dividerProps:g,contentWrapperProps:m,titleWrapperProps:j,buttonTitle:h,buttonProps:k,buttonIconProps:y,onClick:f,sx:O}=s,P=t.__rest(s,["iconName","iconProps","title","titleTypographyProps","subtitle","subtitleTypographyProps","dividerWrapperProps","dividerProps","contentWrapperProps","titleWrapperProps","buttonTitle","buttonProps","buttonIconProps","onClick","sx"]);const v=p||{},{sx:I}=v,_=t.__rest(v,["sx"]),B=b||{},{sx:T}=B,W=t.__rest(B,["sx"]),q=g||{},{sx:C}=q,w=t.__rest(q,["sx"]),L=m||{},{sx:Q}=L,M=t.__rest(L,["sx"]),S=j||{},{sx:R}=S,X=t.__rest(S,["sx"]);return r.jsxs(i.Stack,Object.assign({direction:"column",alignItems:"flex-start",sx:Object.assign(Object.assign({minWidth:"0",cursor:"pointer",color:"inherit",textDecoration:"unset",gap:{xs:"8px",md:"16px"}},o.getInteractiveStyle({hr:{backgroundColor:"text.primary",height:"1px"},".MuiButton-navigation":{backgroundColor:"transparent",color:"onSurface.os900","& .MuiButton-startIcon":{transform:"translateX(0px)"},"& .MuiButton-endIcon":{transform:"translateX(0px)"}}},{hr:{backgroundColor:"brand.primary",height:"2px"},".MuiButton-navigation":{backgroundColor:"transparent",color:"onSurface.os700",".MuiButton-startIcon":{transform:"translateX(-8px)"},".MuiButton-endIcon":{transform:"translateX(8px)"}}})),O),"data-testid":"QuickLink",ref:a},f&&{onClick:f,role:"button"},{tabIndex:-1},P,{children:[r.jsx(i.Box,Object.assign({sx:Object.assign({position:"relative",width:"100%",height:"2px","&&":{mb:{xs:0,md:c?0:2}}},T)},W,{children:r.jsx(i.Box,Object.assign({component:"hr",sx:Object.assign({border:"none",position:"absolute",inset:"0",m:0},C)},w))})),r.jsxs(i.Box,Object.assign({sx:Object.assign({width:"480px",maxWidth:"100%",pr:3,pt:{xs:"8px",md:"0px"}},Q)},M,{children:[r.jsxs(i.Stack,Object.assign({sx:Object.assign({flexDirection:{xs:"row",md:"column"},alignItems:{xs:"center",md:"flex-start"},gap:{xs:"4px",md:"18px"},mb:{xs:"4px",md:0}},R)},X,{children:[c&&r.jsx(e.Icon,Object.assign({name:c,sx:Object.assign({display:"block",fontSize:{xs:"20px",md:"35px"},mx:{xs:"2px",md:"0px"},my:{xs:"0px",md:"2px"}},I),"data-testid":"QuickLink.icon"},_)),x&&r.jsx(i.Typography,Object.assign({variant:"h4",display:"block","data-testid":"QuickLink.title",sx:{mb:{xs:0,md:.5}}},d,{children:x}))]})),l&&r.jsx(i.Typography,Object.assign({variant:"disclaimer",display:"block","data-testid":"QuickLink.subtitle"},u,{children:l}))]})),h&&r.jsx(i.Button,Object.assign({variant:"navigation",color:"secondary",endIcon:r.jsx(n.ArrowRightIcon,{}),"data-testid":"QuickLink.button"},k,{children:h}))]}))})),c=s.forwardRef(((s,e)=>{var{sx:n,children:o}=s,a=t.__rest(s,["sx","children"]);return r.jsx(i.Box,Object.assign({sx:Object.assign({display:"grid",gridTemplateColumns:{xs:"1fr",lg:"repeat(3, 1fr)"},gap:3},n),ref:e},a,{children:o}))}));exports.QuickLink=a,exports.QuickLinkWrapper=c;
1
+ "use strict";var t=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),i=require("@mui/material"),e=require("../icon/icon.js");require("../icon/icon.definitions.js");var n=require("../icon/stroke/ArrowRightIcon.js"),o=require("../../materialui/button/interactive.js");const a=s.forwardRef(((s,a)=>{var{iconName:c,iconProps:p,title:x,titleTypographyProps:d,subtitle:l,subtitleTypographyProps:u,dividerWrapperProps:b,dividerProps:g,contentWrapperProps:m,titleWrapperProps:j,buttonTitle:h,buttonProps:k,buttonIconProps:y,onClick:f,sx:O}=s,P=t.__rest(s,["iconName","iconProps","title","titleTypographyProps","subtitle","subtitleTypographyProps","dividerWrapperProps","dividerProps","contentWrapperProps","titleWrapperProps","buttonTitle","buttonProps","buttonIconProps","onClick","sx"]);const v=p||{},{sx:I}=v,_=t.__rest(v,["sx"]),B=b||{},{sx:T}=B,W=t.__rest(B,["sx"]),q=g||{},{sx:C}=q,w=t.__rest(q,["sx"]),L=m||{},{sx:Q}=L,M=t.__rest(L,["sx"]),S=j||{},{sx:R}=S,X=t.__rest(S,["sx"]);return r.jsxs(i.Stack,Object.assign({direction:"column",alignItems:"flex-start",sx:Object.assign(Object.assign({minWidth:"0",cursor:"pointer",color:"inherit",textDecoration:"unset",gap:{xs:"8px",md:"16px"}},o.getInteractiveStyle({hr:{backgroundColor:"text.primary",height:"1px"},".MuiButton-navigation":{backgroundColor:"transparent",color:"onSurface.os900","& .MuiButton-startIcon":{transform:"translateX(0px)"},"& .MuiButton-endIcon":{transform:"translateX(0px)"}}},{hr:{backgroundColor:"brand.primary",height:"2px"},".MuiButton-navigation":{backgroundColor:"transparent",color:"onSurface.os700",".MuiButton-startIcon":{transform:"translateX(-8px)"},".MuiButton-endIcon":{transform:"translateX(8px)"}}})),O),"data-testid":"QuickLink",ref:a},f&&{onClick:f,role:"button"},{tabIndex:-1},P,{children:[r.jsx(i.Box,Object.assign({sx:Object.assign({position:"relative",width:"100%",height:"2px","&&":{mb:{xs:0,md:c?0:2}}},T)},W,{children:r.jsx(i.Box,Object.assign({component:"hr",sx:Object.assign({border:"none",position:"absolute",inset:"0",m:0},C)},w))})),r.jsxs(i.Box,Object.assign({sx:Object.assign({width:"480px",maxWidth:"100%",pr:3,pt:{xs:"8px",md:"0px"}},Q)},M,{children:[r.jsxs(i.Stack,Object.assign({sx:Object.assign({flexDirection:{xs:"row",md:"column"},alignItems:{xs:"center",md:"flex-start"},gap:{xs:"4px",md:"18px"},mb:{xs:"4px",md:0}},R)},X,{children:[c&&r.jsx(e.Icon,Object.assign({name:c,sx:Object.assign({display:"block",fontSize:{xs:"20px",md:"35px"},mx:{xs:"2px",md:"0px"},my:{xs:"0px",md:"2px"}},I),"data-testid":"QuickLink.icon"},_)),x&&r.jsx(i.Typography,Object.assign({variant:"h4",display:"block","data-testid":"QuickLink.title",sx:{mb:{xs:0,md:.5}}},d,{children:x}))]})),l&&r.jsx(i.Typography,Object.assign({variant:"disclaimer1",display:"block","data-testid":"QuickLink.subtitle"},u,{children:l}))]})),h&&r.jsx(i.Button,Object.assign({variant:"navigation",color:"secondary",endIcon:r.jsx(n.ArrowRightIcon,{}),"data-testid":"QuickLink.button"},k,{children:h}))]}))})),c=s.forwardRef(((s,e)=>{var{sx:n,children:o}=s,a=t.__rest(s,["sx","children"]);return r.jsx(i.Box,Object.assign({sx:Object.assign({display:"grid",gridTemplateColumns:{xs:"1fr",lg:"repeat(3, 1fr)"},gap:3},n),ref:e},a,{children:o}))}));exports.QuickLink=a,exports.QuickLinkWrapper=c;
2
2
  //# sourceMappingURL=quickLink.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"quickLink.js","sources":["../../../../../src/components/quickLink/quickLink.tsx"],"sourcesContent":[null],"names":["QuickLink","forwardRef","_a","ref","iconName","iconProps","title","titleTypographyProps","subtitle","subtitleTypographyProps","dividerWrapperProps","dividerProps","contentWrapperProps","titleWrapperProps","buttonTitle","buttonProps","buttonIconProps","onClick","sx","rest","__rest","_b","iconSx","restIconProps","_c","dividerWrapperSx","restDividerWrapperProps","_d","dividerSx","restDividerProps","_e","contentWrapperSx","restContentWrapperProps","_f","titleWrapperSx","restTitleWrapperProps","_jsxs","jsxs","Stack","direction","alignItems","Object","assign","minWidth","cursor","color","textDecoration","gap","xs","md","getInteractiveStyle","hr","backgroundColor","height","transform","role","tabIndex","children","_jsx","Box","position","width","mb","component","border","inset","m","maxWidth","pr","pt","flexDirection","jsx","Icon","name","display","fontSize","mx","my","Typography","variant","Button","endIcon","ArrowRightIcon","QuickLinkWrapper","gridTemplateColumns","lg"],"mappings":"2RA+Da,MAAAA,EAAsCC,EAAUA,YAC3D,CACEC,EAkBAC,KAlBA,IAAAC,SACEA,EAAQC,UACRA,EAASC,MACTA,EAAKC,qBACLA,EAAoBC,SACpBA,EAAQC,wBACRA,EAAuBC,oBACvBA,EAAmBC,aACnBA,EAAYC,oBACZA,EAAmBC,kBACnBA,EAAiBC,YACjBA,EAAWC,YACXA,EAAWC,gBACXA,EAAeC,QACfA,EAAOC,GACPA,GAEDhB,EADIiB,EAAIC,EAAAA,OAAAlB,EAhBT,0OAoBA,MAAMmB,EAAmChB,GAAa,IAA9Ca,GAAII,KAAWC,EAAjBH,EAAAA,OAAAC,EAAA,CAAA,OACAG,EAAuDd,GAAuB,IAA5EQ,GAAIO,KAAqBC,EAA3BN,EAAAA,OAAAI,EAAA,CAAA,OACAG,EAAyChB,GAAgB,IAAvDO,GAAIU,KAAcC,EAApBT,EAAAA,OAAAO,EAAA,CAAA,OACAG,EAA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kBACEwD,QAAS,OACTU,oBAAqB,CAAEpC,GAAI,MAAOqC,GAAI,kBACtCtC,IAAK,GACF7B,GAELf,IAAKA,GACDgB,YAEHsC,IACG"}
1
+ {"version":3,"file":"quickLink.js","sources":["../../../../../src/components/quickLink/quickLink.tsx"],"sourcesContent":[null],"names":["QuickLink","forwardRef","_a","ref","iconName","iconProps","title","titleTypographyProps","subtitle","subtitleTypographyProps","dividerWrapperProps","dividerProps","contentWrapperProps","titleWrapperProps","buttonTitle","buttonProps","buttonIconProps","onClick","sx","rest","__rest","_b","iconSx","restIconProps","_c","dividerWrapperSx","restDividerWrapperProps","_d","dividerSx","restDividerProps","_e","contentWrapperSx","restContentWrapperProps","_f","titleWrapperSx","restTitleWrapperProps","_jsxs","jsxs","Stack","direction","alignItems","Object","assign","minWidth","cursor","color","textDecoration","gap","xs","md","getInteractiveStyle","hr","backgroundColor","height","transform","role","tabIndex","children","_jsx","Box","position","width","mb","component","border","inset","m","maxWidth","pr","pt","flexDirection","jsx","Icon","name","display","fontSize","mx","my","Typography","variant","Button","endIcon","ArrowRightIcon","QuickLinkWrapper","gridTemplateColumns","lg"],"mappings":"2RA+Da,MAAAA,EAAsCC,EAAUA,YAC3D,CACEC,EAkBAC,KAlBA,IAAAC,SACEA,EAAQC,UACRA,EAASC,MACTA,EAAKC,qBACLA,EAAoBC,SACpBA,EAAQC,wBACRA,EAAuBC,oBACvBA,EAAmBC,aACnBA,EAAYC,oBACZA,EAAmBC,kBACnBA,EAAiBC,YACjBA,EAAWC,YACXA,EAAWC,gBACXA,EAAeC,QACfA,EAAOC,GACPA,GAEDhB,EADIiB,EAAIC,EAAAA,OAAAlB,EAhBT,0OAoBA,MAAMmB,EAAmChB,GAAa,IAA9Ca,GAAII,KAAWC,EAAjBH,EAAAA,OAAAC,EAAA,CAAA,OACAG,EAAuDd,GAAuB,IAA5EQ,GAAIO,KAAqBC,EAA3BN,EAAAA,OAAAI,EAAA,CAAA,OACAG,EAAyChB,GAAgB,IAAv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3E,OACEwD,EAACa,IAAAZ,EAAGA,IACFlB,OAAAC,OAAA,CAAAxB,kBACEwD,QAAS,OACTU,oBAAqB,CAAEpC,GAAI,MAAOqC,GAAI,kBACtCtC,IAAK,GACF7B,GAELf,IAAKA,GACDgB,YAEHsC,IACG"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),o=require("@mui/material"),t=require("../icon/stroke/FileMissingIcon.js");const i=s.forwardRef(((s,i)=>{var{src:n,type:c="video/mp4",noVidErrorMessage:a,sourceProps:l,poster:d,sx:u,autoPlay:p=!0,muted:x=!0,controls:m=!1,loop:j=!1,children:g}=s,y=e.__rest(s,["src","type","noVidErrorMessage","sourceProps","poster","sx","autoPlay","muted","controls","loop","children"]);return r.jsxs(o.Box,Object.assign({component:"video","data-testid":"Video",poster:d,ref:i,autoPlay:p,muted:x,controls:m,loop:j,sx:Object.assign({display:"block",maxWidth:"100%"},u)},y,{children:[null!=g?g:r.jsx(o.Box,Object.assign({component:"source",src:n,type:c},l)),a," ?? (",r.jsx(o.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},children:r.jsx(t.FileMissingIcon,{})}),")"]}))}));exports.Video=i;
1
+ "use strict";var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),o=require("@mui/material"),t=require("../icon/stroke/FileMissingIcon.js");const i=s.forwardRef(((s,i)=>{var{src:n,type:c="video/mp4",noVidErrorMessage:l,sourceProps:a,poster:u,sx:d,autoPlay:p=!0,muted:x=!0,controls:m=!1,loop:j=!1,children:g}=s,y=e.__rest(s,["src","type","noVidErrorMessage","sourceProps","poster","sx","autoPlay","muted","controls","loop","children"]);return r.jsxs(o.Box,Object.assign({component:"video","data-testid":"Video",poster:u,ref:i,autoPlay:p,muted:x,controls:m,loop:j,sx:Object.assign({display:"block",maxWidth:"100%"},d)},y,{children:[null!=g?g:r.jsx(o.Box,Object.assign({component:"source",src:n,type:c},a)),null!=l?l:r.jsx(o.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},children:r.jsx(t.FileMissingIcon,{})})]}))}));exports.Video=i;
2
2
  //# sourceMappingURL=Video.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Video.js","sources":["../../../../../src/components/video/Video.tsx"],"sourcesContent":[null],"names":["Video","forwardRef","_a","ref","src","type","noVidErrorMessage","sourceProps","poster","sx","autoPlay","muted","controls","loop","children","rest","__rest","_jsxs","Box","Object","assign","component","display","maxWidth","_jsx","jsx","justifyContent","alignItems","width","height","FileMissingIcon"],"mappings":"gKAgCa,MAAAA,EAA8BC,EAAUA,YACnD,CACEC,EAcAC,KAdA,IAAAC,IACEA,EAAGC,KACHA,EAAO,YAAWC,kBAClBA,EAAiBC,YACjBA,EAAWC,OACXA,EAAMC,GACNA,EAAEC,SACFA,GAAW,EAAIC,MACfA,GAAQ,EAAIC,SACZA,GAAW,EAAKC,KAChBA,GAAO,EAAKC,SACZA,GAEDZ,EADIa,EAAIC,EAAAA,OAAAd,EAZT,gHAgBA,OACEe,EAAAA,KAACC,EAAAA,IAAGC,OAAAC,OAAA,CACFC,UAAU,QACE,cAAA,QACZb,OAAQA,EACRL,IAAKA,EACLO,SAAUA,EACVC,MAAOA,EACPC,SAAUA,EACVC,KAAMA,EACNJ,GACEU,OAAAC,OAAA,CAAAE,QAAS,QACTC,SAAU,QACPd,IAEDM,EAEH,CAAAD,SAAA,CAAAA,QAAAA,EAAYU,EAACC,IAAAP,EAAGA,IAACC,OAAAC,OAAA,CAAAC,UAAU,SAASjB,IAAKA,EAAKC,KAAMA,GAAUE,IAC9DD,EAAiB,QAClBkB,MAACN,EAAGA,IAAA,CAACT,GAAI,CAAEa,QAAS,OAAQI,eAAgB,SAAUC,WAAY,SAAUC,MAAO,OAAQC,OAAQ,QACjGf,SAAAU,EAAAC,IAACK,kBAAkB,CAAA,KAGjB,OAAA"}
1
+ {"version":3,"file":"Video.js","sources":["../../../../../src/components/video/Video.tsx"],"sourcesContent":[null],"names":["Video","forwardRef","_a","ref","src","type","noVidErrorMessage","sourceProps","poster","sx","autoPlay","muted","controls","loop","children","rest","__rest","_jsxs","jsxs","Box","Object","assign","component","display","maxWidth","_jsx","jsx","justifyContent","alignItems","width","height","FileMissingIcon"],"mappings":"gKAgCa,MAAAA,EAA8BC,EAAUA,YACnD,CACEC,EAcAC,KAdA,IAAAC,IACEA,EAAGC,KACHA,EAAO,YAAWC,kBAClBA,EAAiBC,YACjBA,EAAWC,OACXA,EAAMC,GACNA,EAAEC,SACFA,GAAW,EAAIC,MACfA,GAAQ,EAAIC,SACZA,GAAW,EAAKC,KAChBA,GAAO,EAAKC,SACZA,GAEDZ,EADIa,EAAIC,EAAAA,OAAAd,EAZT,gHAgBA,OACEe,EAACC,KAAAC,EAAGA,IACFC,OAAAC,OAAA,CAAAC,UAAU,QAAO,cACL,QACZd,OAAQA,EACRL,IAAKA,EACLO,SAAUA,EACVC,MAAOA,EACPC,SAAUA,EACVC,KAAMA,EACNJ,GACEW,OAAAC,OAAA,CAAAE,QAAS,QACTC,SAAU,QACPf,IAEDM,EAAI,CAAAD,SAAA,CAEPA,QAAAA,EAAYW,EAACC,IAAAP,qBAAIG,UAAU,SAASlB,IAAKA,EAAKC,KAAMA,GAAUE,IAC9DD,QAAAA,EACCmB,EAAAA,IAACN,EAAGA,IAAC,CAAAV,GAAI,CAAEc,QAAS,OAAQI,eAAgB,SAAUC,WAAY,SAAUC,MAAO,OAAQC,OAAQ,QACjGhB,SAAAW,MAACM,EAAAA,gBAAe,CAAA,QAGhB"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react");exports.useVideoPlayPause=t=>{var r;const[u,n]=e.useState(!(null===(r=t.current)||void 0===r?void 0:r.paused));e.useEffect((()=>{const e=null==t?void 0:t.current;e&&void 0===u&&n(!(null==e?void 0:e.paused));const r=()=>n(!0),a=()=>n(!1);if(e)return e.addEventListener("pause",a),n(!e.paused),e.addEventListener("play",r),()=>{e.removeEventListener("play",r),e.removeEventListener("pause",a)}}),[t]);const a=e.useCallback((()=>{(null==t?void 0:t.current)&&(u?t.current.pause():t.current.play(),n((e=>!e)))}),[u,null==t?void 0:t.current]);return{isPlaying:u,handlePlayPause:a}},exports.useVideoSoundControls=t=>{var r;const[u,n]=e.useState(null===(r=t.current)||void 0===r?void 0:r.muted),[a,d]=e.useState(1);e.useEffect((()=>{const e=null==t?void 0:t.current;e&&(void 0===u&&n(null==e?void 0:e.muted),t.current.muted=u,t.current.volume=a)}),[u,a,t]);const l=e.useCallback((()=>{n((e=>!e))}),[]),o=e.useCallback((e=>{d(e)}),[]);return{isMuted:u,handleMuteToggle:l,volume:a,handleVolumeChange:o}},exports.useVideoTime=t=>{var r;const[u,n]=e.useState(0),[a,d]=e.useState(null===(r=t.current)||void 0===r?void 0:r.duration),l=e.useCallback((()=>{var e;(null===(e=t.current)||void 0===e?void 0:e.currentTime)&&n(t.current.currentTime)}),[t]),o=e.useCallback((e=>{var r;(null===(r=t.current)||void 0===r?void 0:r.currentTime)&&(t.current.currentTime=e),n(e)}),[t]),i=e.useCallback((()=>{var e;(null===(e=t.current)||void 0===e?void 0:e.duration)&&d(t.current.duration)}),[t]);return e.useEffect((()=>{const e=null==t?void 0:t.current;if(e)return e.addEventListener("loadedmetadata",i),e.addEventListener("timeupdate",l),()=>{e.removeEventListener("loadedmetadata",i),e.removeEventListener("timeupdate",l)}}),[i,l,t]),{currentTime:u,duration:a,handleSeek:o}};
1
+ "use strict";var e=require("react");exports.useVideoPlayPause=t=>{var r;const[u,n]=e.useState(!(null===(r=t.current)||void 0===r?void 0:r.paused));e.useEffect((()=>{const e=null==t?void 0:t.current;e&&void 0===u&&n(!(null==e?void 0:e.paused));const r=()=>{(!e.autoplay||!e.ended)&&n(!0)},a=()=>n(!1);if(e)return e.addEventListener("pause",a),n(!e.paused),e.addEventListener("play",r),()=>{e.removeEventListener("play",r),e.removeEventListener("pause",a)}}),[t]);const a=e.useCallback((()=>{(null==t?void 0:t.current)&&(u?t.current.pause():t.current.play(),n((e=>!e)))}),[u,null==t?void 0:t.current]);return{isPlaying:u,handlePlayPause:a}},exports.useVideoSoundControls=t=>{var r;const[u,n]=e.useState(null===(r=t.current)||void 0===r?void 0:r.muted),[a,d]=e.useState(1);e.useEffect((()=>{const e=null==t?void 0:t.current;e&&(void 0===u&&n(null==e?void 0:e.muted),t.current.muted=u,t.current.volume=a)}),[u,a,t]);const l=e.useCallback((()=>{n((e=>!e))}),[]),o=e.useCallback((e=>{d(e)}),[]);return{isMuted:u,handleMuteToggle:l,volume:a,handleVolumeChange:o}},exports.useVideoTime=t=>{var r;const[u,n]=e.useState(0),[a,d]=e.useState(null===(r=t.current)||void 0===r?void 0:r.duration),l=e.useCallback((()=>{var e;(null===(e=t.current)||void 0===e?void 0:e.currentTime)&&n(t.current.currentTime)}),[t]),o=e.useCallback((e=>{var r;(null===(r=t.current)||void 0===r?void 0:r.currentTime)&&(t.current.currentTime=e),n(e)}),[t]),i=e.useCallback((()=>{var e;(null===(e=t.current)||void 0===e?void 0:e.duration)&&d(t.current.duration)}),[t]);return e.useEffect((()=>{const e=null==t?void 0:t.current;if(e)return e.addEventListener("loadedmetadata",i),e.addEventListener("timeupdate",l),()=>{e.removeEventListener("loadedmetadata",i),e.removeEventListener("timeupdate",l)}}),[i,l,t]),{currentTime:u,duration:a,handleSeek:o}};
2
2
  //# sourceMappingURL=hooks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.js","sources":["../../../../../src/components/video/hooks.ts"],"sourcesContent":[null],"names":["videoRef","isPlaying","setIsPlaying","useState","_a","current","paused","useEffect","video","handlePlay","handlePause","addEventListener","removeEventListener","handlePlayPause","useCallback","pause","play","prevIsPlaying","isMuted","setIsMuted","muted","volume","setVolume","handleMuteToggle","prevMuted","handleVolumeChange","newVolume","currentTime","setCurrentTime","duration","setDuration","handleTimeUpdate","handleSeek","newTime","handleLoadedMetadata"],"mappings":"8DA4DkCA,UAChC,MAAOC,EAAWC,GAA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J,EAASK,eAAS,IAAAD,OAAA,EAAAA,EAAAyB,UAErDE,EAAmBjB,EAAAA,aAAY,YACb,UAAlBd,EAASK,eAAS,IAAAD,OAAA,EAAAA,EAAAuB,cACpBC,EAAe5B,EAASK,QAAQsB,eAEjC,CAAC3B,IAEEgC,EAAalB,eAChBmB,WACuB,UAAlBjC,EAASK,eAAS,IAAAD,OAAA,EAAAA,EAAAuB,eACpB3B,EAASK,QAAQsB,YAAcM,GAEjCL,EAAeK,EAAQ,GAEzB,CAACjC,IAGGkC,EAAuBpB,EAAAA,aAAY,YACjB,UAAlBd,EAASK,eAAS,IAAAD,OAAA,EAAAA,EAAAyB,WACpBC,EAAY9B,EAASK,QAAQwB,YAE9B,CAAC7B,IAeJ,OAbAO,EAAAA,WAAU,KACR,MAAMC,EAAQR,aAAA,EAAAA,EAAUK,QACxB,GAAIG,EAIF,OAHAA,EAAMG,iBAAiB,iBAAkBuB,GACzC1B,EAAMG,iBAAiB,aAAcoB,GAE9B,KACLvB,EAAMI,oBAAoB,iBAAkBsB,GAC5C1B,EAAMI,oBAAoB,aAAcmB,EAAiB,IAG5D,CAACG,EAAsBH,EAAkB/B,IAErC,CACL2B,cACAE,WACAG,aACD"}
1
+ {"version":3,"file":"hooks.js","sources":["../../../../../src/components/video/hooks.ts"],"sourcesContent":[null],"names":["videoRef","isPlaying","setIsPlaying","useState","_a","current","paused","useEffect","video","handlePlay","autoplay","ended","handlePause","addEventListener","removeEventListener","handlePlayPause","useCallback","pause","play","prevIsPlaying","isMuted","setIsMuted","muted","volume","setVolume","handleMuteToggle","prevMuted","handleVolumeChange","newVolume","currentTime","setCurrentTime","duration","setDuration","handleTimeUpdate","handleSeek","newTime","handleLoadedMetadata"],"mappings":"8DA4DkCA,UAChC,MAAOC,EAAWC,GAAgBC,EAAAA,mBAAUC,EAAAJ,EAASK,8BAASC,SAE9DC,EAAAA,WAAU,KACR,MAAMC,EAAQR,aAAA,EAAAA,EAAUK,QAEpBG,QAA8B,IAAdP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