@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.
- package/cjs/components/alert/Alert.js +1 -1
- package/cjs/components/alert/Alert.js.map +1 -1
- package/cjs/components/bottomSheet/bottomSheet.d.ts +1 -1
- package/cjs/components/bottomSheet/bottomSheet.js +1 -1
- package/cjs/components/bottomSheet/bottomSheet.js.map +1 -1
- package/cjs/components/carousel/hooks.js +1 -1
- package/cjs/components/carousel/hooks.js.map +1 -1
- package/cjs/components/carousel/pagination.d.ts +21 -7
- package/cjs/components/carousel/pagination.js +1 -1
- package/cjs/components/carousel/pagination.js.map +1 -1
- package/cjs/components/closeDialogButton/index.d.ts +4 -1
- package/cjs/components/closeDialogButton/index.js +1 -1
- package/cjs/components/closeDialogButton/index.js.map +1 -1
- package/cjs/components/flag/flag.d.ts +3 -5
- package/cjs/components/flag/flag.js +1 -1
- package/cjs/components/flag/flag.js.map +1 -1
- package/cjs/components/label/label.d.ts +4 -1
- package/cjs/components/label/label.js +1 -1
- package/cjs/components/label/label.js.map +1 -1
- package/cjs/components/modal/modal.d.ts +23 -43
- package/cjs/components/modal/modal.js +1 -1
- package/cjs/components/modal/modal.js.map +1 -1
- package/cjs/components/modal/modalTitle.d.ts +6 -2
- package/cjs/components/modal/modalTitle.js +1 -1
- package/cjs/components/modal/modalTitle.js.map +1 -1
- package/cjs/components/quickLink/quickLink.js +1 -1
- package/cjs/components/quickLink/quickLink.js.map +1 -1
- package/cjs/components/video/Video.js +1 -1
- package/cjs/components/video/Video.js.map +1 -1
- package/cjs/components/video/hooks.js +1 -1
- package/cjs/components/video/hooks.js.map +1 -1
- package/cjs/index.js +1 -1
- package/cjs/layout/Footer/FooterAccordion.js +1 -1
- package/cjs/layout/Footer/FooterAccordion.js.map +1 -1
- package/cjs/layout/Footer/FooterMenu.js +1 -1
- package/cjs/layout/Footer/FooterMenu.js.map +1 -1
- package/cjs/layout/Footer/FooterSectionLinks.js +1 -1
- package/cjs/layout/Footer/FooterSectionLinks.js.map +1 -1
- package/cjs/layout/SecondaryNavigation/SecondaryNavigation.js +1 -1
- package/cjs/layout/SecondaryNavigation/SecondaryNavigation.js.map +1 -1
- package/cjs/layout/cookieModal/CookieModal.d.ts +16 -37
- package/cjs/layout/cookieModal/CookieModal.js +1 -1
- package/cjs/layout/cookieModal/CookieModal.js.map +1 -1
- package/cjs/layout/cookieModal/CookieModalItem.d.ts +3 -0
- package/cjs/layout/cookieModal/CookieModalItem.js.map +1 -1
- package/cjs/materialui/alert/alert.theme.js +1 -1
- package/cjs/materialui/alert/alert.theme.js.map +1 -1
- package/cjs/materialui/avatar/avatar.theme.js +1 -1
- package/cjs/materialui/avatar/avatar.theme.js.map +1 -1
- package/cjs/materialui/avatar/avatarGroup.theme.js +1 -1
- package/cjs/materialui/avatar/avatarGroup.theme.js.map +1 -1
- package/cjs/materialui/button/button.theme.js +1 -1
- package/cjs/materialui/button/button.theme.js.map +1 -1
- package/cjs/materialui/chip/chip.theme.js +1 -1
- package/cjs/materialui/chip/chip.theme.js.map +1 -1
- package/cjs/materialui/container/container.theme.js +1 -1
- package/cjs/materialui/container/container.theme.js.map +1 -1
- package/cjs/materialui/dialog/DialogTitle.d.ts +7 -0
- package/cjs/materialui/dialog/DialogTitle.js +2 -0
- package/cjs/materialui/dialog/DialogTitle.js.map +1 -0
- package/cjs/materialui/dialog/dialog.theme.js +1 -1
- package/cjs/materialui/dialog/dialog.theme.js.map +1 -1
- package/cjs/materialui/dialog/dialogActions.theme.js +1 -1
- package/cjs/materialui/dialog/dialogActions.theme.js.map +1 -1
- package/cjs/materialui/dialog/dialogContent.theme.d.ts +2 -0
- package/cjs/materialui/dialog/dialogContent.theme.js +2 -0
- package/cjs/materialui/dialog/dialogContent.theme.js.map +1 -0
- package/cjs/materialui/dialog/dialogContentText.theme.js +1 -1
- package/cjs/materialui/dialog/dialogContentText.theme.js.map +1 -1
- package/cjs/materialui/dialog/dialogTitle.theme.js +1 -1
- package/cjs/materialui/dialog/dialogTitle.theme.js.map +1 -1
- package/cjs/materialui/dialog/index.d.ts +2 -0
- package/cjs/materialui/iconButton/iconButton.theme.js +1 -1
- package/cjs/materialui/iconButton/iconButton.theme.js.map +1 -1
- package/cjs/materialui/index.d.ts +1 -0
- package/cjs/materialui/list/listItemAvatar.theme.js +1 -1
- package/cjs/materialui/list/listItemAvatar.theme.js.map +1 -1
- package/cjs/materialui/list/listItemButton.theme.js +1 -1
- package/cjs/materialui/list/listItemButton.theme.js.map +1 -1
- package/cjs/materialui/list/listItemText.theme.js +1 -1
- package/cjs/materialui/list/listItemText.theme.js.map +1 -1
- package/cjs/materialui/skeleton/skeleton.theme.js +1 -1
- package/cjs/materialui/skeleton/skeleton.theme.js.map +1 -1
- package/cjs/materialui/slider/sliderValues.js +1 -1
- package/cjs/materialui/slider/sliderValues.js.map +1 -1
- package/cjs/materialui/table/stories/index.d.ts +1 -0
- package/cjs/materialui/table/stories/small.d.ts +1 -0
- package/cjs/materialui/table/tableCell.theme.js +1 -1
- package/cjs/materialui/table/tableCell.theme.js.map +1 -1
- package/cjs/materialui/textfield/filledInput.theme.js +1 -1
- package/cjs/materialui/textfield/filledInput.theme.js.map +1 -1
- package/cjs/materialui/textfield/inputBase.theme.js +1 -1
- package/cjs/materialui/textfield/inputBase.theme.js.map +1 -1
- package/cjs/materialui/theme/paletteLight.theme.js +1 -1
- package/cjs/materialui/theme/paletteLight.theme.js.map +1 -1
- package/cjs/materialui/theme/theme.extensions.d.ts +26 -1
- package/cjs/materialui/theme/theme.js +1 -1
- package/cjs/materialui/theme/theme.js.map +1 -1
- package/cjs/materialui/theme/theme.typography.js +1 -1
- package/cjs/materialui/theme/theme.typography.js.map +1 -1
- package/cjs/materialui/themeProvider/baseline.theme.js +1 -1
- package/cjs/materialui/themeProvider/baseline.theme.js.map +1 -1
- package/cjs/node_modules/swiper/modules/keyboard.js +1 -1
- package/cjs/node_modules/swiper/modules/keyboard.js.map +1 -1
- package/cjs/node_modules/swiper/shared/effect-init.js +1 -1
- package/cjs/node_modules/swiper/shared/effect-init.js.map +1 -1
- package/cjs/node_modules/swiper/shared/effect-virtual-transition-end.js +1 -1
- package/cjs/node_modules/swiper/shared/effect-virtual-transition-end.js.map +1 -1
- package/cjs/node_modules/swiper/shared/swiper-core.js +1 -1
- package/cjs/node_modules/swiper/shared/swiper-core.js.map +1 -1
- package/cjs/node_modules/swiper/shared/update-on-virtual-data.js +1 -1
- package/cjs/node_modules/swiper/shared/update-on-virtual-data.js.map +1 -1
- package/cjs/node_modules/swiper/shared/update-swiper.js +1 -1
- package/cjs/node_modules/swiper/shared/update-swiper.js.map +1 -1
- package/cjs/node_modules/swiper/shared/utils.js +1 -1
- package/cjs/node_modules/swiper/shared/utils.js.map +1 -1
- package/cjs/node_modules/swiper/swiper-react.js.map +1 -1
- package/cjs/organisms/carousel2/cardCarousel/cardCarousel.d.ts +1 -1
- package/cjs/organisms/carousel2/galleryCarousel/galleryCarousel.d.ts +1 -1
- package/cjs/organisms/carousel2/heroCarousel/heroCarousel.d.ts +1 -1
- package/cjs/organisms/gallery/Gallery.d.ts +3 -0
- package/cjs/organisms/gallery/Gallery.js +1 -1
- package/cjs/organisms/gallery/Gallery.js.map +1 -1
- package/cjs/organisms/notification/Notification.js +1 -1
- package/cjs/organisms/notification/Notification.js.map +1 -1
- package/cjs/utils/index.d.ts +1 -0
- package/cjs/utils/useElementScrollable/index.d.ts +1 -0
- package/cjs/utils/useElementScrollable/useElementScrollable.d.ts +1 -1
- package/cjs/utils/useElementScrollable/useElementScrollable.js +1 -1
- package/cjs/utils/useElementScrollable/useElementScrollable.js.map +1 -1
- package/components/alert/Alert.js +1 -1
- package/components/alert/Alert.js.map +1 -1
- package/components/bottomSheet/bottomSheet.d.ts +1 -1
- package/components/bottomSheet/bottomSheet.js +1 -1
- package/components/bottomSheet/bottomSheet.js.map +1 -1
- package/components/carousel/hooks.js +1 -1
- package/components/carousel/hooks.js.map +1 -1
- package/components/carousel/pagination.d.ts +21 -7
- package/components/carousel/pagination.js +1 -1
- package/components/carousel/pagination.js.map +1 -1
- package/components/closeDialogButton/index.d.ts +4 -1
- package/components/closeDialogButton/index.js +1 -1
- package/components/closeDialogButton/index.js.map +1 -1
- package/components/flag/flag.d.ts +3 -5
- package/components/flag/flag.js +1 -1
- package/components/flag/flag.js.map +1 -1
- package/components/label/label.d.ts +4 -1
- package/components/label/label.js +1 -1
- package/components/label/label.js.map +1 -1
- package/components/modal/modal.d.ts +23 -43
- package/components/modal/modal.js +1 -1
- package/components/modal/modal.js.map +1 -1
- package/components/modal/modalTitle.d.ts +6 -2
- package/components/modal/modalTitle.js +1 -1
- package/components/modal/modalTitle.js.map +1 -1
- package/components/quickLink/quickLink.js +1 -1
- package/components/quickLink/quickLink.js.map +1 -1
- package/components/video/Video.js +1 -1
- package/components/video/Video.js.map +1 -1
- package/components/video/hooks.js +1 -1
- package/components/video/hooks.js.map +1 -1
- package/index.js +1 -1
- package/layout/Footer/FooterAccordion.js +1 -1
- package/layout/Footer/FooterAccordion.js.map +1 -1
- package/layout/Footer/FooterMenu.js +1 -1
- package/layout/Footer/FooterMenu.js.map +1 -1
- package/layout/Footer/FooterSectionLinks.js +1 -1
- package/layout/Footer/FooterSectionLinks.js.map +1 -1
- package/layout/SecondaryNavigation/SecondaryNavigation.js +1 -1
- package/layout/SecondaryNavigation/SecondaryNavigation.js.map +1 -1
- package/layout/cookieModal/CookieModal.d.ts +16 -37
- package/layout/cookieModal/CookieModal.js +1 -1
- package/layout/cookieModal/CookieModal.js.map +1 -1
- package/layout/cookieModal/CookieModalItem.d.ts +3 -0
- package/layout/cookieModal/CookieModalItem.js.map +1 -1
- package/materialui/alert/alert.theme.js +1 -1
- package/materialui/alert/alert.theme.js.map +1 -1
- package/materialui/avatar/avatar.theme.js +1 -1
- package/materialui/avatar/avatar.theme.js.map +1 -1
- package/materialui/avatar/avatarGroup.theme.js +1 -1
- package/materialui/avatar/avatarGroup.theme.js.map +1 -1
- package/materialui/button/button.theme.js +1 -1
- package/materialui/button/button.theme.js.map +1 -1
- package/materialui/chip/chip.theme.js +1 -1
- package/materialui/chip/chip.theme.js.map +1 -1
- package/materialui/container/container.theme.js +1 -1
- package/materialui/container/container.theme.js.map +1 -1
- package/materialui/dialog/DialogTitle.d.ts +7 -0
- package/materialui/dialog/DialogTitle.js +2 -0
- package/materialui/dialog/DialogTitle.js.map +1 -0
- package/materialui/dialog/dialog.theme.js +1 -1
- package/materialui/dialog/dialog.theme.js.map +1 -1
- package/materialui/dialog/dialogActions.theme.js +1 -1
- package/materialui/dialog/dialogActions.theme.js.map +1 -1
- package/materialui/dialog/dialogContent.theme.d.ts +2 -0
- package/materialui/dialog/dialogContent.theme.js +2 -0
- package/materialui/dialog/dialogContent.theme.js.map +1 -0
- package/materialui/dialog/dialogContentText.theme.js +1 -1
- package/materialui/dialog/dialogContentText.theme.js.map +1 -1
- package/materialui/dialog/dialogTitle.theme.js +1 -1
- package/materialui/dialog/dialogTitle.theme.js.map +1 -1
- package/materialui/dialog/index.d.ts +2 -0
- package/materialui/iconButton/iconButton.theme.js +1 -1
- package/materialui/iconButton/iconButton.theme.js.map +1 -1
- package/materialui/index.d.ts +1 -0
- package/materialui/list/listItemAvatar.theme.js +1 -1
- package/materialui/list/listItemAvatar.theme.js.map +1 -1
- package/materialui/list/listItemButton.theme.js +1 -1
- package/materialui/list/listItemButton.theme.js.map +1 -1
- package/materialui/list/listItemText.theme.js +1 -1
- package/materialui/list/listItemText.theme.js.map +1 -1
- package/materialui/skeleton/skeleton.theme.js +1 -1
- package/materialui/skeleton/skeleton.theme.js.map +1 -1
- package/materialui/slider/sliderValues.js +1 -1
- package/materialui/slider/sliderValues.js.map +1 -1
- package/materialui/table/stories/index.d.ts +1 -0
- package/materialui/table/stories/small.d.ts +1 -0
- package/materialui/table/tableCell.theme.js +1 -1
- package/materialui/table/tableCell.theme.js.map +1 -1
- package/materialui/textfield/filledInput.theme.js +1 -1
- package/materialui/textfield/filledInput.theme.js.map +1 -1
- package/materialui/textfield/inputBase.theme.js +1 -1
- package/materialui/textfield/inputBase.theme.js.map +1 -1
- package/materialui/theme/paletteLight.theme.js +1 -1
- package/materialui/theme/paletteLight.theme.js.map +1 -1
- package/materialui/theme/theme.extensions.d.ts +26 -1
- package/materialui/theme/theme.js +1 -1
- package/materialui/theme/theme.js.map +1 -1
- package/materialui/theme/theme.typography.js +1 -1
- package/materialui/theme/theme.typography.js.map +1 -1
- package/materialui/themeProvider/baseline.theme.js +1 -1
- package/materialui/themeProvider/baseline.theme.js.map +1 -1
- package/organisms/carousel2/cardCarousel/cardCarousel.d.ts +1 -1
- package/organisms/carousel2/galleryCarousel/galleryCarousel.d.ts +1 -1
- package/organisms/carousel2/heroCarousel/heroCarousel.d.ts +1 -1
- package/organisms/gallery/Gallery.d.ts +3 -0
- package/organisms/gallery/Gallery.js +1 -1
- package/organisms/gallery/Gallery.js.map +1 -1
- package/organisms/notification/Notification.js +1 -1
- package/organisms/notification/Notification.js.map +1 -1
- package/package.json +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/useElementScrollable/index.d.ts +1 -0
- package/utils/useElementScrollable/useElementScrollable.d.ts +1 -1
- package/utils/useElementScrollable/useElementScrollable.js +1 -1
- package/utils/useElementScrollable/useElementScrollable.js.map +1 -1
- package/cjs/components/modal/contentDiv.d.ts +0 -15
- package/cjs/components/modal/contentDiv.js +0 -2
- package/cjs/components/modal/contentDiv.js.map +0 -1
- package/cjs/materialui/dialog/dialog.component.d.ts +0 -9
- package/components/modal/contentDiv.d.ts +0 -15
- package/components/modal/contentDiv.js +0 -2
- package/components/modal/contentDiv.js.map +0 -1
- package/materialui/dialog/dialog.component.d.ts +0 -9
|
@@ -1,89 +1,69 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ButtonVariants } from '../button';
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
10
|
+
* @deprecated provide your own <DialogActions><Button /></DialogActions>
|
|
17
11
|
*/
|
|
18
12
|
onClickTopButton?: () => void;
|
|
19
13
|
/**
|
|
20
|
-
*
|
|
14
|
+
* @deprecated provide your own <DialogActions><Button /></DialogActions>
|
|
21
15
|
*/
|
|
22
16
|
onClickBottomButton?: () => void;
|
|
23
17
|
/**
|
|
24
|
-
*
|
|
18
|
+
* @deprecated rename to aria-labelledby
|
|
25
19
|
*/
|
|
26
20
|
ariaLabelledby?: string;
|
|
27
21
|
/**
|
|
28
|
-
*
|
|
22
|
+
* @deprecated rename to aria-describedby
|
|
29
23
|
*/
|
|
30
24
|
ariaDescribedBy?: string;
|
|
31
25
|
/**
|
|
32
|
-
*
|
|
26
|
+
* @deprecated provide your own <DialogActions><Button /></DialogActions>
|
|
33
27
|
*/
|
|
34
28
|
firstButton?: string;
|
|
35
29
|
/**
|
|
36
|
-
*
|
|
30
|
+
* @deprecated provide your own <DialogActions><Button /></DialogActions>
|
|
37
31
|
*/
|
|
38
32
|
secondButton?: string;
|
|
39
33
|
/**
|
|
40
|
-
*
|
|
34
|
+
* @deprecated provide your own <DialogActions><Button /></DialogActions>
|
|
41
35
|
*/
|
|
42
36
|
firstButtonVariant?: ButtonVariants;
|
|
43
37
|
/**
|
|
44
|
-
*
|
|
38
|
+
* @deprecated provide your own <DialogActions><Button /></DialogActions>
|
|
45
39
|
*/
|
|
46
40
|
secondButtonVariant?: ButtonVariants;
|
|
47
41
|
/**
|
|
48
|
-
*
|
|
42
|
+
* @deprecated provide your own <DialogActions><Button /></DialogActions>
|
|
49
43
|
*/
|
|
50
44
|
secondButtonVisible?: boolean;
|
|
51
45
|
/**
|
|
52
|
-
*
|
|
46
|
+
* @deprecated provide <DialogTitle onClose={() => {} />
|
|
53
47
|
*/
|
|
54
48
|
hasCloseButton?: boolean;
|
|
55
49
|
/**
|
|
56
|
-
*
|
|
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
|
-
*
|
|
54
|
+
* @deprecated provide your own <DialogActions>
|
|
63
55
|
*/
|
|
64
|
-
|
|
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
|
-
*
|
|
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
|
-
|
|
60
|
+
maxWidth?: DialogProps['maxWidth'] | string;
|
|
77
61
|
/**
|
|
78
|
-
*
|
|
79
|
-
* modal is hidden or unmounted.
|
|
80
|
-
* @default false
|
|
62
|
+
* @deprecated write custom hook monitoring open status
|
|
81
63
|
*/
|
|
82
|
-
|
|
64
|
+
modalLoadedCallback?: (isLoaded: boolean) => void;
|
|
83
65
|
}
|
|
84
66
|
/**
|
|
85
|
-
* @
|
|
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"),
|
|
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","
|
|
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 =
|
|
3
|
-
|
|
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
|
|
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":["
|
|
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:"
|
|
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,EAAuDlB,GAAuB,IAA5EM,GAAIa,KAAqBC,EAA3BZ,EAAAA,OAAAU,EAAA,CAAA,OACAG,EAAmDpB,GAAqB,IAAtEK,GAAIgB,KA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AAA,CACJxB,GAAEuB,OAAAC,OAAA,CACA4B,cAAe,CAAEtB,GAAI,MAAOC,GAAI,UAChCT,WAAY,CAAEQ,GAAI,SAAUC,GAAI,cAChCF,IAAK,CAAEC,GAAI,MAAOC,GAAI,QACtBa,GAAI,CAAEd,GAAI,MAAOC,GAAI,IAClBf,IAEDC,EAEH,CAAAsB,SAAA,CAAArD,GACCsD,EAACa,IAAAC,EAAIA,KACH/B,OAAAC,OAAA,CAAA+B,KAAMrE,EACNc,GAAEuB,OAAAC,OAAA,CACAgC,QAAS,QACTC,SAAU,CAAE3B,GAAI,OAAQC,GAAI,QAC5B2B,GAAI,CAAE5B,GAAI,MAAOC,GAAI,OACrB4B,GAAI,CAAE7B,GAAI,MAAOC,GAAI,QAClB3B,GAEO,cAAA,kBACRC,IAGPjB,GACCoD,MAACoB,EAAAA,WACCrC,OAAAC,OAAA,CAAAqC,QAAQ,KACRL,QAAQ,QAAO,cACH,kBACZxD,GAAI,CAAE4C,GAAI,CAAEd,GAAI,EAAGC,GAAI,MACnB1C,YAEHD,SAINE,GACCkD,EAAAA,IAACoB,EAAAA,WAAUrC,OAAAC,OAAA,CACTqC,QAAQ,
|
|
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,EAAuDlB,GAAuB,IAA5EM,GAAIa,KAAqBC,EAA3BZ,EAAAA,OAAAU,EAAA,CAAA,OACAG,EAAmDpB,GAAqB,IAAtEK,GAAIgB,KAAmBC,EAAzBf,EAAAA,OAAAa,EAAA,CAAA,OAEN,OACEG,EAACC,KAAAC,EAAKA,qBACJC,UAAU,SACVC,WAAW,aACXtB,GACEuB,OAAAC,OAAAD,OAAAC,OAAA,CAAAC,SAAU,IACVC,OAAQ,UACRC,MAAO,UACPC,eAAgB,QAChBC,IAAK,CAAEC,GAAI,MAAOC,GAAI,SACnBC,EAAAA,oBACD,CACEC,GAAI,CACFC,gBAAiB,eACjBC,OAAQ,OAGV,wBAAyB,CACvBD,gBAAiB,cACjBP,MAAO,kBACP,yBAA0B,CACxBS,UAAW,mBAEb,uBAAwB,CACtBA,UAAW,qBAIjB,CACEH,GAAI,CACFC,gBAAiB,gBACjBC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AAI,CAAE7B,GAAI,MAAOC,GAAI,QAClB3B,GAEO,cAAA,kBACRC,IAGPjB,GACCoD,MAACoB,EAAAA,WACCrC,OAAAC,OAAA,CAAAqC,QAAQ,KACRL,QAAQ,QAAO,cACH,kBACZxD,GAAI,CAAE4C,GAAI,CAAEd,GAAI,EAAGC,GAAI,MACnB1C,YAEHD,SAINE,GACCkD,EAAAA,IAACoB,EAAAA,WAAUrC,OAAAC,OAAA,CACTqC,QAAQ,cACRL,QAAQ,sBACI,sBACRjE,EAAuB,CAAAgD,SAE1BjD,SAINM,GACC4C,EAAAa,IAACS,EAAMA,OACLvC,OAAAC,OAAA,CAAAqC,QAAQ,aACRlC,MAAM,YACNoC,QAASvB,MAACwB,EAAAA,mBACE,cAAA,oBACRnE,YAEHD,QAGC,IAUDqE,EAAoDlF,EAAUA,YAAC,CAACC,EAA2BC,SAA3Be,GAAEA,EAAEuC,SAAEA,GAAQvD,EAAKiB,EAAIC,EAAAA,OAAAlB,EAAvB,mBAC3E,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:
|
|
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,
|
|
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,GAAgBC,EAAAA,mBAAUC,EAAAJ,EAASK,8BAASC,SAE9DC,EAAAA,WAAU,KACR,MAAMC,EAAQR,aAAA,EAAAA,EAAUK,QAEpBG,QAA8B,IAAdP,GAClBC,IAAcM,aAAA,EAAAA,EAAOF,SAGvB,MAAMG,EAAa,
|
|
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,GAClBC,IAAcM,aAAA,EAAAA,EAAOF,SAGvB,MAAMG,EAAa,OAEfD,EAAME,WAAYF,EAAMG,QAAUT,GAAa,EAAK,EAElDU,EAAc,IAAMV,GAAa,GAEvC,GAAIM,EAQF,OAPAA,EAAMK,iBAAiB,QAASD,GAGhCV,GAAcM,EAAMF,QAEpBE,EAAMK,iBAAiB,OAAQJ,GAExB,KACLD,EAAMM,oBAAoB,OAAQL,GAClCD,EAAMM,oBAAoB,QAASF,EAAY,IAGlD,CAACZ,IAEJ,MAAMe,EAAkBC,EAAAA,aAAY,MAC9BhB,aAAQ,EAARA,EAAUK,WACRJ,EACFD,EAASK,QAAQY,QAEjBjB,EAASK,QAAQa,OAEnBhB,GAAciB,IAAmBA,OAElC,CAAClB,EAAWD,aAAQ,EAARA,EAAUK,UAEzB,MAAO,CACLJ,YACAc,kBACD,gCAxFmCf,UACpC,MAAOoB,EAASC,GAAclB,EAAQA,SAAmB,QAAlBC,EAAAJ,EAASK,eAAS,IAAAD,OAAA,EAAAA,EAAAkB,QAClDC,EAAQC,GAAarB,EAAAA,SAAS,GAErCI,EAAAA,WAAU,KACR,MAAMC,EAAQR,aAAA,EAAAA,EAAUK,QACpBG,SACqB,IAAZY,GACTC,EAAWb,eAAAA,EAAOc,OAGpB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