@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
|
-
import{__rest as t}from"tslib";import{
|
|
1
|
+
import{__rest as t}from"tslib";import{jsxs as o,jsx as a}from"react/jsx-runtime";import{forwardRef as e,useEffect as l,useMemo as n}from"react";import{Button as i}from"../button/button.js";import{useElementScrollable as s}from"../../utils/useElementScrollable/useElementScrollable.js";import{Dialog as d,DialogTitle as r,DialogContent as c,DialogActions as u}from"@mui/material";const m=e(((e,m)=>{var{children:b,open:B,onClose:f,maxWidth:C,sx:p,handleClose:h,onClickTopButton:x,onClickBottomButton:k,ariaLabelledby:y,ariaDescribedBy:M,firstButton:j,secondButton:v,hasCloseButton:V,size:g,firstButtonVariant:S,secondButtonVariant:L,secondButtonVisible:W,defaultButtonSection:O=!0,modalLoadedCallback:P}=e,z=t(e,["children","open","onClose","maxWidth","sx","handleClose","onClickTopButton","onClickBottomButton","ariaLabelledby","ariaDescribedBy","firstButton","secondButton","hasCloseButton","size","firstButtonVariant","secondButtonVariant","secondButtonVisible","defaultButtonSection","modalLoadedCallback"]);const{isScrollable:D,elementRef:E}=s("y");l((()=>{null==P||P(B)}),[B]);const T=n((()=>g?{small:"sm",large:"md","full-width":!1}[g]:!!["xs","sm","md","lg","xl"].includes(`${C}`)&&C),[g,C]);return o(d,Object.assign({ref:m,open:B,onClose:null!=h?h:f,"aria-labelledby":y,"aria-describedby":M,maxWidth:T,"data-testid":"Modal",PaperProps:{"data-testid":"Modal.container"},sx:Object.assign(Object.assign({},!1===T&&C&&{maxWidth:C}),p)},z,{children:[a(r,{onClose:null!=h?h:f,closeIconButtonProps:{"data-testid":"Modal.close"}}),a(c,{"data-testid":"Modal.content",dividers:D,ref:E,children:b}),O&&o(u,{"data-testid":"Modal.buttons",children:[a(i,{label:j,onClick:x,variant:S,"data-testid":"Modal.button1","data-variant":S}),W&&a(i,{label:v,onClick:k,variant:L,"data-testid":"Modal.button2","data-variant":L})]})]}))}));export{m as Modal};
|
|
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":"2XAuEa,MAAAA,EAAQC,GACnB,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,EAAAtB,EApBT,4SAwBA,MAAMuB,aAAEA,EAAYC,WAAEA,GAAeC,EAAqB,KAE1DC,GAAU,KACRN,SAAAA,EAAsBjB,EAAK,GAC1B,CAACA,IAEJ,MAAMwB,EAAqBC,GAAQ,IAC7Bb,EACK,CAAEc,MAAO,KAAMC,MAAO,KAAM,cAAgB,GAAQf,KAEvD,CAAC,KAAM,KAAM,KAAM,KAAM,MAAMgB,SAAS,GAAG1B,MACtCA,GAIV,CAACU,EAAMV,IAEV,OACE2B,EAACC,EAAMC,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,EAACC,EAAY,CAAAlC,QAASG,QAAAA,EAAeH,EAASmC,qBAAsB,CAAE,cAAiB,iBACvFF,EAACG,EAA0B,CAAA,cAAA,gBAAgBC,SAAUlB,EAActB,IAAKuB,EACrEtB,SAAAA,IAEFiB,GACCa,EAACU,iBAA0B,gBAAexC,SAAA,CACxCmC,EAACM,EAAM,CACLC,MAAOhC,EACPiC,QAASrC,EACTsC,QAAS9B,EACG,cAAA,+BACEA,IAEfE,GACCmB,EAACM,EAAM,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
|
-
import{jsx as t}from"react/jsx-runtime";import{
|
|
1
|
+
import{__rest as r}from"tslib";import{jsx as t}from"react/jsx-runtime";import{Typography as m}from"@mui/material";const o=o=>{var{sx:i}=o,a=r(o,["sx"]);return t(m,Object.assign({component:"h2",variant:"h3",sx:Object.assign({marginTop:"-24px",marginBottom:"24px"},i)},a))};export{o as ModalTitle};
|
|
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":["ModalTitle","_a","sx","rest","__rest","_jsx","Typography","Object","assign","component","variant","marginTop","marginBottom"],"mappings":"kHAQa,MAAAA,EAAyCC,IAAA,IAAAC,GAAEA,GAAaD,EAANE,EAAIC,EAAAH,EAAb,QAAoB,OACxEI,EAACC,EAAWC,OAAAC,OAAA,CAAAC,UAAU,KAAKC,QAAQ,KAAKR,GAAMK,OAAAC,OAAA,CAAAG,UAAW,QAASC,aAAc,QAAWV,IAAUC,GAAQ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as t}from"tslib";import{jsxs as i,jsx as r}from"react/jsx-runtime";import{forwardRef as s}from"react";import{Stack as o,Box as n,Typography as e,Button as a}from"@mui/material";import{Icon as p}from"../icon/icon.js";import"../icon/icon.definitions.js";import{ArrowRightIcon as c}from"../icon/stroke/ArrowRightIcon.js";import{getInteractiveStyle as x}from"../../materialui/button/interactive.js";const d=s(((s,d)=>{var{iconName:l,iconProps:m,title:u,titleTypographyProps:b,subtitle:g,subtitleTypographyProps:h,dividerWrapperProps:j,dividerProps:f,contentWrapperProps:k,titleWrapperProps:O,buttonTitle:P,buttonProps:y,buttonIconProps:v,onClick:I,sx:C}=s,W=t(s,["iconName","iconProps","title","titleTypographyProps","subtitle","subtitleTypographyProps","dividerWrapperProps","dividerProps","contentWrapperProps","titleWrapperProps","buttonTitle","buttonProps","buttonIconProps","onClick","sx"]);const T=m||{},{sx:B}=T,M=t(T,["sx"]),L=j||{},{sx:Q}=L,w=t(L,["sx"]),X=f||{},{sx:S}=X,D=t(X,["sx"]),N=k||{},{sx:z}=N,A=t(N,["sx"]),R=O||{},{sx:q}=R,E=t(R,["sx"]);return i(o,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"}},x({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)"}}})),C),"data-testid":"QuickLink",ref:d},I&&{onClick:I,role:"button"},{tabIndex:-1},W,{children:[r(n,Object.assign({sx:Object.assign({position:"relative",width:"100%",height:"2px","&&":{mb:{xs:0,md:l?0:2}}},Q)},w,{children:r(n,Object.assign({component:"hr",sx:Object.assign({border:"none",position:"absolute",inset:"0",m:0},S)},D))})),i(n,Object.assign({sx:Object.assign({width:"480px",maxWidth:"100%",pr:3,pt:{xs:"8px",md:"0px"}},z)},A,{children:[i(o,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}},q)},E,{children:[l&&r(p,Object.assign({name:l,sx:Object.assign({display:"block",fontSize:{xs:"20px",md:"35px"},mx:{xs:"2px",md:"0px"},my:{xs:"0px",md:"2px"}},B),"data-testid":"QuickLink.icon"},M)),u&&r(e,Object.assign({variant:"h4",display:"block","data-testid":"QuickLink.title",sx:{mb:{xs:0,md:.5}}},b,{children:u}))]})),g&&r(e,Object.assign({variant:"
|
|
1
|
+
import{__rest as t}from"tslib";import{jsxs as i,jsx as r}from"react/jsx-runtime";import{forwardRef as s}from"react";import{Stack as o,Box as n,Typography as e,Button as a}from"@mui/material";import{Icon as p}from"../icon/icon.js";import"../icon/icon.definitions.js";import{ArrowRightIcon as c}from"../icon/stroke/ArrowRightIcon.js";import{getInteractiveStyle as x}from"../../materialui/button/interactive.js";const d=s(((s,d)=>{var{iconName:l,iconProps:m,title:u,titleTypographyProps:b,subtitle:g,subtitleTypographyProps:h,dividerWrapperProps:j,dividerProps:f,contentWrapperProps:k,titleWrapperProps:O,buttonTitle:P,buttonProps:y,buttonIconProps:v,onClick:I,sx:C}=s,W=t(s,["iconName","iconProps","title","titleTypographyProps","subtitle","subtitleTypographyProps","dividerWrapperProps","dividerProps","contentWrapperProps","titleWrapperProps","buttonTitle","buttonProps","buttonIconProps","onClick","sx"]);const T=m||{},{sx:B}=T,M=t(T,["sx"]),L=j||{},{sx:Q}=L,w=t(L,["sx"]),X=f||{},{sx:S}=X,D=t(X,["sx"]),N=k||{},{sx:z}=N,A=t(N,["sx"]),R=O||{},{sx:q}=R,E=t(R,["sx"]);return i(o,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"}},x({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)"}}})),C),"data-testid":"QuickLink",ref:d},I&&{onClick:I,role:"button"},{tabIndex:-1},W,{children:[r(n,Object.assign({sx:Object.assign({position:"relative",width:"100%",height:"2px","&&":{mb:{xs:0,md:l?0:2}}},Q)},w,{children:r(n,Object.assign({component:"hr",sx:Object.assign({border:"none",position:"absolute",inset:"0",m:0},S)},D))})),i(n,Object.assign({sx:Object.assign({width:"480px",maxWidth:"100%",pr:3,pt:{xs:"8px",md:"0px"}},z)},A,{children:[i(o,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}},q)},E,{children:[l&&r(p,Object.assign({name:l,sx:Object.assign({display:"block",fontSize:{xs:"20px",md:"35px"},mx:{xs:"2px",md:"0px"},my:{xs:"0px",md:"2px"}},B),"data-testid":"QuickLink.icon"},M)),u&&r(e,Object.assign({variant:"h4",display:"block","data-testid":"QuickLink.title",sx:{mb:{xs:0,md:.5}}},b,{children:u}))]})),g&&r(e,Object.assign({variant:"disclaimer1",display:"block","data-testid":"QuickLink.subtitle"},h,{children:g}))]})),P&&r(a,Object.assign({variant:"navigation",color:"secondary",endIcon:r(c,{}),"data-testid":"QuickLink.button"},y,{children:P}))]}))})),l=s(((i,s)=>{var{sx:o,children:e}=i,a=t(i,["sx","children"]);return r(n,Object.assign({sx:Object.assign({display:"grid",gridTemplateColumns:{xs:"1fr",lg:"repeat(3, 1fr)"},gap:3},o),ref:s},a,{children:e}))}));export{d as QuickLink,l as QuickLinkWrapper};
|
|
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","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","Icon","name","display","fontSize","mx","my","Typography","variant","Button","endIcon","ArrowRightIcon","QuickLinkWrapper","gridTemplateColumns","lg"],"mappings":"yZA+Da,MAAAA,EAAsCC,GACjD,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,EAAAlB,EAhBT,0OAoBA,MAAMmB,EAAmChB,GAAa,IAA9Ca,GAAII,KAAWC,EAAjBH,EAAAC,EAAA,CAAA,OACAG,EAAuDd,GAAuB,IAA5EQ,GAAIO,KAAqBC,EAA3BN,EAAAI,EAAA,CAAA,OACAG,EAAyChB,GAAgB,IAAvDO,GAAIU,KAAcC,EAApBT,EAAAO,EAAA,CAAA,OACAG,EAAuDlB,GAAuB,IAA5EM,GAAIa,KAAqBC,EAA3BZ,EAAAU,EAAA,CAAA,OACAG,EAAmDpB,GAAqB,IAAtEK,GAAIgB,KAAmBC,EAAzBf,EAAAa,EAAA,CAAA,OAEN,OACEG,EAACC,iBACCC,UAAU,SACVC,WAAW,aACXrB,GACEsB,OAAAC,OAAAD,OAAAC,OAAA,CAAAC,SAAU,IACVC,OAAQ,UACRC,MAAO,UACPC,eAAgB,QAChBC,IAAK,CAAEC,GAAI,MAAOC,GAAI,SACnBC,EACD,CACEC,GAAI,CACFC,gBAAiB,eACjBC,OAAQ,OAGV,wBAAyB,CACvBD,gBAAiB,cACjBP,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QAC5B0B,GAAI,CAAE3B,GAAI,MAAOC,GAAI,OACrB2B,GAAI,CAAE5B,GAAI,MAAOC,GAAI,QAClB1B,GAEO,cAAA,kBACRC,IAGPjB,GACCmD,EAACmB,EACCpC,OAAAC,OAAA,CAAAoC,QAAQ,KACRL,QAAQ,QAAO,cACH,kBACZtD,GAAI,CAAE2C,GAAI,CAAEd,GAAI,EAAGC,GAAI,MACnBzC,YAEHD,SAINE,GACCiD,EAACmB,EAAUpC,OAAAC,OAAA,CACToC,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","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","Icon","name","display","fontSize","mx","my","Typography","variant","Button","endIcon","ArrowRightIcon","QuickLinkWrapper","gridTemplateColumns","lg"],"mappings":"yZA+Da,MAAAA,EAAsCC,GACjD,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,EAAAlB,EAhBT,0OAoBA,MAA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lB,EAAvB,mBAC3E,OACEuD,EAACC,EACClB,OAAAC,OAAA,CAAAvB,kBACEsD,QAAS,OACTU,oBAAqB,CAAEnC,GAAI,MAAOoC,GAAI,kBACtCrC,IAAK,GACF5B,GAELf,IAAKA,GACDgB,YAEHqC,IACG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as o}from"tslib";import{jsxs as e,jsx as r}from"react/jsx-runtime";import{forwardRef as t}from"react";import{Box as s}from"@mui/material";import{FileMissingIcon as i}from"../icon/stroke/FileMissingIcon.js";const n=t(((t,n)=>{var{src:c,type:l="video/mp4",noVidErrorMessage:a,sourceProps:p,poster:m,sx:d,autoPlay:u=!0,muted:y=!0,controls:f=!1,loop:g=!1,children:h}=t,x=o(t,["src","type","noVidErrorMessage","sourceProps","poster","sx","autoPlay","muted","controls","loop","children"]);return e(s,Object.assign({component:"video","data-testid":"Video",poster:m,ref:n,autoPlay:u,muted:y,controls:f,loop:g,sx:Object.assign({display:"block",maxWidth:"100%"},d)},x,{children:[null!=h?h:r(s,Object.assign({component:"source",src:c,type:l},p)),a
|
|
1
|
+
import{__rest as o}from"tslib";import{jsxs as e,jsx as r}from"react/jsx-runtime";import{forwardRef as t}from"react";import{Box as s}from"@mui/material";import{FileMissingIcon as i}from"../icon/stroke/FileMissingIcon.js";const n=t(((t,n)=>{var{src:c,type:l="video/mp4",noVidErrorMessage:a,sourceProps:p,poster:m,sx:d,autoPlay:u=!0,muted:y=!0,controls:f=!1,loop:g=!1,children:h}=t,x=o(t,["src","type","noVidErrorMessage","sourceProps","poster","sx","autoPlay","muted","controls","loop","children"]);return e(s,Object.assign({component:"video","data-testid":"Video",poster:m,ref:n,autoPlay:u,muted:y,controls:f,loop:g,sx:Object.assign({display:"block",maxWidth:"100%"},d)},x,{children:[null!=h?h:r(s,Object.assign({component:"source",src:c,type:l},p)),null!=a?a:r(s,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},children:r(i,{})})]}))}));export{n as Video};
|
|
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","justifyContent","alignItems","width","height","FileMissingIcon"],"mappings":"4NAgCa,MAAAA,EAA8BC,GACzC,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,EAAAd,EAZT,gHAgBA,OACEe,EAACC,
|
|
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","justifyContent","alignItems","width","height","FileMissingIcon"],"mappings":"4NAgCa,MAAAA,EAA8BC,GACzC,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,EAAAd,EAZT,gHAgBA,OACEe,EAACC,EACCC,OAAAC,OAAA,CAAAC,UAAU,QAAO,cACL,QACZb,OAAQA,EACRL,IAAKA,EACLO,SAAUA,EACVC,MAAOA,EACPC,SAAUA,EACVC,KAAMA,EACNJ,GACEU,OAAAC,OAAA,CAAAE,QAAS,QACTC,SAAU,QACPd,IAEDM,EAAI,CAAAD,SAAA,CAEPA,QAAAA,EAAYU,EAACN,iBAAIG,UAAU,SAASjB,IAAKA,EAAKC,KAAMA,GAAUE,IAC9DD,QAAAA,EACCkB,EAACN,EAAI,CAAAT,GAAI,CAAEa,QAAS,OAAQG,eAAgB,SAAUC,WAAY,SAAUC,MAAO,OAAQC,OAAQ,QACjGd,SAAAU,EAACK,EAAe,CAAA,QAGhB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useState as e,useEffect as r,useCallback as n}from"react";const t=t=>{var u;const[d,o]=e(null===(u=t.current)||void 0===u?void 0:u.muted),[i,a]=e(1);r((()=>{const e=null==t?void 0:t.current;e&&(void 0===d&&o(null==e?void 0:e.muted),t.current.muted=d,t.current.volume=i)}),[d,i,t]);const l=n((()=>{o((e=>!e))}),[]),v=n((e=>{a(e)}),[]);return{isMuted:d,handleMuteToggle:l,volume:i,handleVolumeChange:v}},u=t=>{var u;const[d,o]=e(!(null===(u=t.current)||void 0===u?void 0:u.paused));r((()=>{const e=null==t?void 0:t.current;e&&void 0===d&&o(!(null==e?void 0:e.paused));const r=()=>o(!0),n=()=>o(!1);if(e)return e.addEventListener("pause",n),o(!e.paused),e.addEventListener("play",r),()=>{e.removeEventListener("play",r),e.removeEventListener("pause",n)}}),[t]);const i=n((()=>{(null==t?void 0:t.current)&&(d?t.current.pause():t.current.play(),o((e=>!e)))}),[d,null==t?void 0:t.current]);return{isPlaying:d,handlePlayPause:i}},d=t=>{var u;const[d,o]=e(0),[i,a]=e(null===(u=t.current)||void 0===u?void 0:u.duration),l=n((()=>{var e;(null===(e=t.current)||void 0===e?void 0:e.currentTime)&&o(t.current.currentTime)}),[t]),v=n((e=>{var r;(null===(r=t.current)||void 0===r?void 0:r.currentTime)&&(t.current.currentTime=e),o(e)}),[t]),c=n((()=>{var e;(null===(e=t.current)||void 0===e?void 0:e.duration)&&a(t.current.duration)}),[t]);return r((()=>{const e=null==t?void 0:t.current;if(e)return e.addEventListener("loadedmetadata",c),e.addEventListener("timeupdate",l),()=>{e.removeEventListener("loadedmetadata",c),e.removeEventListener("timeupdate",l)}}),[c,l,t]),{currentTime:d,duration:i,handleSeek:v}};export{u as useVideoPlayPause,t as useVideoSoundControls,d as useVideoTime};
|
|
1
|
+
import{useState as e,useEffect as r,useCallback as n}from"react";const t=t=>{var u;const[d,o]=e(null===(u=t.current)||void 0===u?void 0:u.muted),[i,a]=e(1);r((()=>{const e=null==t?void 0:t.current;e&&(void 0===d&&o(null==e?void 0:e.muted),t.current.muted=d,t.current.volume=i)}),[d,i,t]);const l=n((()=>{o((e=>!e))}),[]),v=n((e=>{a(e)}),[]);return{isMuted:d,handleMuteToggle:l,volume:i,handleVolumeChange:v}},u=t=>{var u;const[d,o]=e(!(null===(u=t.current)||void 0===u?void 0:u.paused));r((()=>{const e=null==t?void 0:t.current;e&&void 0===d&&o(!(null==e?void 0:e.paused));const r=()=>{(!e.autoplay||!e.ended)&&o(!0)},n=()=>o(!1);if(e)return e.addEventListener("pause",n),o(!e.paused),e.addEventListener("play",r),()=>{e.removeEventListener("play",r),e.removeEventListener("pause",n)}}),[t]);const i=n((()=>{(null==t?void 0:t.current)&&(d?t.current.pause():t.current.play(),o((e=>!e)))}),[d,null==t?void 0:t.current]);return{isPlaying:d,handlePlayPause:i}},d=t=>{var u;const[d,o]=e(0),[i,a]=e(null===(u=t.current)||void 0===u?void 0:u.duration),l=n((()=>{var e;(null===(e=t.current)||void 0===e?void 0:e.currentTime)&&o(t.current.currentTime)}),[t]),v=n((e=>{var r;(null===(r=t.current)||void 0===r?void 0:r.currentTime)&&(t.current.currentTime=e),o(e)}),[t]),c=n((()=>{var e;(null===(e=t.current)||void 0===e?void 0:e.duration)&&a(t.current.duration)}),[t]);return r((()=>{const e=null==t?void 0:t.current;if(e)return e.addEventListener("loadedmetadata",c),e.addEventListener("timeupdate",l),()=>{e.removeEventListener("loadedmetadata",c),e.removeEventListener("timeupdate",l)}}),[c,l,t]),{currentTime:d,duration:i,handleSeek:v}};export{u as useVideoPlayPause,t as useVideoSoundControls,d as useVideoTime};
|
|
2
2
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sources":["../../../src/components/video/hooks.ts"],"sourcesContent":[null],"names":["useVideoSoundControls","videoRef","isMuted","setIsMuted","useState","_a","current","muted","volume","setVolume","useEffect","video","handleMuteToggle","useCallback","prevMuted","handleVolumeChange","newVolume","useVideoPlayPause","isPlaying","setIsPlaying","paused","handlePlay","handlePause","addEventListener","removeEventListener","handlePlayPause","pause","play","prevIsPlaying","useVideoTime","currentTime","setCurrentTime","duration","setDuration","handleTimeUpdate","handleSeek","newTime","handleLoadedMetadata"],"mappings":"iEAiBa,MAAAA,EAAyBC,UACpC,MAAOC,EAASC,GAAcC,EAA2B,QAAlBC,EAAAJ,EAASK,eAAS,IAAAD,OAAA,EAAAA,EAAAE,QAClDC,EAAQC,GAAaL,EAAS,GAErCM,GAAU,KACR,MAAMC,EAAQV,aAAA,EAAAA,EAAUK,QACpBK,SACqB,IAAZT,GACTC,EAAWQ,eAAAA,EAAOJ,OAGpBN,EAASK,QAAQC,MAAQL,EACzBD,EAASK,QAAQE,OAASA,KAE3B,CAACN,EAASM,EAAQP,IAErB,MAAMW,EAAmBC,GAAY,KACnCV,GAAYW,IAAeA,GAAU,GACpC,IAEGC,EAAqBF,GAAaG,IACtCP,EAAUO,EAAU,GACnB,IAEH,MAAO,CACLd,UACAU,mBACAJ,SACAO,qBACD,EAcUE,EAAqBhB,UAChC,MAAOiB,EAAWC,GAAgBf,YAAUC,EAAAJ,EAASK,8BAASc,SAE9DV,GAAU,KACR,MAAMC,EAAQV,aAAA,EAAAA,EAAUK,QAEpBK,QAA8B,IAAdO,GAClBC,IAAcR,aAAA,EAAAA,EAAOS,SAGvB,MAAMC,EAAa,
|
|
1
|
+
{"version":3,"file":"hooks.js","sources":["../../../src/components/video/hooks.ts"],"sourcesContent":[null],"names":["useVideoSoundControls","videoRef","isMuted","setIsMuted","useState","_a","current","muted","volume","setVolume","useEffect","video","handleMuteToggle","useCallback","prevMuted","handleVolumeChange","newVolume","useVideoPlayPause","isPlaying","setIsPlaying","paused","handlePlay","autoplay","ended","handlePause","addEventListener","removeEventListener","handlePlayPause","pause","play","prevIsPlaying","useVideoTime","currentTime","setCurrentTime","duration","setDuration","handleTimeUpdate","handleSeek","newTime","handleLoadedMetadata"],"mappings":"iEAiBa,MAAAA,EAAyBC,UACpC,MAAOC,EAASC,GAAcC,EAA2B,QAAlBC,EAAAJ,EAASK,eAAS,IAAAD,OAAA,EAAAA,EAAAE,QAClDC,EAAQC,GAAaL,EAAS,GAErCM,GAAU,KACR,MAAMC,EAAQV,aAAA,EAAAA,EAAUK,QACpBK,SACqB,IAAZT,GACTC,EAAWQ,eAAAA,EAAOJ,OAGpBN,EAASK,QAAQC,MAAQL,EACzBD,EAASK,QAAQE,OAASA,KAE3B,CAACN,EAASM,EAAQP,IAErB,MAAMW,EAAmBC,GAAY,KACnCV,GAAYW,IAAeA,GAAU,GACpC,IAEGC,EAAqBF,GAAaG,IACtCP,EAAUO,EAAU,GACnB,IAEH,MAAO,CACLd,UACAU,mBACAJ,SACAO,qBACD,EAcUE,EAAqBhB,UAChC,MAAOiB,EAAWC,GAAgBf,YAAUC,EAAAJ,EAASK,8BAASc,SAE9DV,GAAU,KACR,MAAMC,EAAQV,aAAA,EAAAA,EAAUK,QAEpBK,QAA8B,IAAdO,GAClBC,IAAcR,aAAA,EAAAA,EAAOS,SAGvB,MAAMC,EAAa,OAEfV,EAAMW,WAAYX,EAAMY,QAAUJ,GAAa,EAAK,EAElDK,EAAc,IAAML,GAAa,GAEvC,GAAIR,EAQF,OAPAA,EAAMc,iBAAiB,QAASD,GAGhCL,GAAcR,EAAMS,QAEpBT,EAAMc,iBAAiB,OAAQJ,GAExB,KACLV,EAAMe,oBAAoB,OAAQL,GAClCV,EAAMe,oB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