@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,2 +1,2 @@
|
|
|
1
|
-
"use strict";var t=require("tslib"),e=require("react/jsx-runtime"),i=require("@mui/material");exports.Alert=s=>{var{type:r,actions:a,severity:c,action:n,sx:o,width:y}=s,p=t.__rest(s,["type","actions","severity","action","sx","width"]);const g=i.useTheme();return e.jsx(i.Alert,Object.assign({severity:c||r,action:a||n,sx:Object.assign(Object.assign(Object.assign({},y?{width:y}:{}),{"& .MuiTypography-body1":Object.assign({},g.typography.
|
|
1
|
+
"use strict";var t=require("tslib"),e=require("react/jsx-runtime"),i=require("@mui/material");exports.Alert=s=>{var{type:r,actions:a,severity:c,action:n,sx:o,width:y}=s,p=t.__rest(s,["type","actions","severity","action","sx","width"]);const g=i.useTheme();return e.jsx(i.Alert,Object.assign({severity:c||r,action:a||n,sx:Object.assign(Object.assign(Object.assign({},y?{width:y}:{}),{"& .MuiTypography-body1":Object.assign({},g.typography.disclaimer1),"& .MuiTypography-caption1":Object.assign({},g.typography.caption2)}),o),"data-testid":"Alert"},p))};
|
|
2
2
|
//# sourceMappingURL=Alert.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.js","sources":["../../../../../src/components/alert/Alert.tsx"],"sourcesContent":[null],"names":["_a","type","actions","severity","action","sx","width","rest","__rest","theme","useTheme","_jsx","MuiAlert","Object","assign","typography","
|
|
1
|
+
{"version":3,"file":"Alert.js","sources":["../../../../../src/components/alert/Alert.tsx"],"sourcesContent":[null],"names":["_a","type","actions","severity","action","sx","width","rest","__rest","theme","useTheme","_jsx","MuiAlert","Object","assign","typography","disclaimer1","caption2"],"mappings":"4GAyB4CA,IAAA,IAAAC,KAAEA,EAAIC,QAAEA,EAAOC,SAAEA,EAAQC,OAAEA,EAAMC,GAAEA,EAAEC,MAAEA,GAAgBN,EAANO,EAAIC,EAAAA,OAAAR,EAArD,qDAC1C,MAAMS,EAAQC,EAAAA,WAEd,OACEC,MAACC,EAAAA,MAAQC,OAAAC,OAAA,CACPX,SAAUA,GAAYF,EACtBG,OAAQF,GAAWE,EACnBC,GAAEQ,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAA,CAAA,EACIR,EAAQ,CAAEA,MAAOA,GAAU,CAAE,GAAC,CAElC,yBAAwBO,OAAAC,OAAA,GACnBL,EAAMM,WAAWC,aAEtB,4BAA2BH,OAAAC,OAAA,CAAA,EAEtBL,EAAMM,WAAWE,YAEnBZ,GAAE,cAEK,SACRE,GACJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import React, { ElementType } from 'react';
|
|
1
2
|
import { BoxProps, IconButtonProps, SwipeableDrawerProps, TypographyProps, SvgIconProps } from '@mui/material';
|
|
2
|
-
import { ElementType } from 'react';
|
|
3
3
|
export interface BottomSheetProps extends Omit<SwipeableDrawerProps, 'onClose' | 'onOpen'> {
|
|
4
4
|
/**
|
|
5
5
|
* Open state component flag
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("tslib"),t=require("react/jsx-runtime"),o=require("@mui/material"),
|
|
1
|
+
"use strict";var e=require("tslib"),t=require("react/jsx-runtime"),o=require("react"),s=require("@mui/material"),r=require("../icon/stroke/CloseIcon.js"),n=require("../../utils/useElementScrollable/useElementScrollable.js");const i=o.forwardRef(((o,i)=>{var{children:a,open:l,setOpen:p,puller:c,closeButton:x,closeButtonProps:d,closeButtonIconProps:u,CloseButtonIconComponent:h,footerSlot:b,title:m,titleProps:j={},headerWrapper:B,contentWrapper:f,footerWrapper:g,maxHeight:S=60}=o,O=e.__rest(o,["children","open","setOpen","puller","closeButton","closeButtonProps","closeButtonIconProps","CloseButtonIconComponent","footerSlot","title","titleProps","headerWrapper","contentWrapper","footerWrapper","maxHeight"]);const C=B||{},{sx:_}=C,w=e.__rest(C,["sx"]),P=f||{},{sx:y}=P,I=e.__rest(P,["sx"]),q=g||{},{sx:R}=q,T=e.__rest(q,["sx"]),W=u||{},{sx:v}=W,k=e.__rest(W,["sx"]),E=s.useTheme(),H=h||r.CloseIcon,{isScrollable:z,elementRef:D}=n.useElementScrollable("y");return t.jsxs(s.SwipeableDrawer,Object.assign({dir:E.direction,anchor:"bottom",PaperProps:{sx:{borderTopLeftRadius:"16px",borderTopRightRadius:"16px",maxHeight:`${S}%`}},open:l,onClose:()=>p(!1),onOpen:()=>p(!0),disableSwipeToOpen:!0,ModalProps:{keepMounted:!0},"data-testid":"BottomSheet",ref:i},O,{children:[(m||x||c)&&t.jsxs(s.Box,Object.assign({sx:Object.assign({px:2},_),"data-testid":"BottomSheet-header"},w,{children:[c&&t.jsx(s.Box,{sx:{position:"relative",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"},children:t.jsx(s.Box,{"data-testid":"BottomSheet-puller",sx:{width:"28px",height:"4px",backgroundColor:"onSurface.os500",mt:1.5,mb:2.25,borderRadius:8}})}),(m||x&&!c)&&t.jsxs(s.Box,{sx:{display:"flex",justifyContent:m?"space-between":"flex-end",gap:1,pb:2,pt:c?0:2},children:[m&&t.jsx(s.Typography,Object.assign({"data-testid":"BottomSheet-title",variant:"h4"},j,{children:m})),x&&!c&&t.jsx(s.IconButton,Object.assign({"data-testid":"BottomSheet-closeButton",size:"medium",onClick:()=>p(!1),"aria-label":"Close bottom sheet"},d,{children:t.jsx(H,Object.assign({color:"action",sx:Object.assign({fontSize:"18px"},v)},k))}))]})]})),t.jsx(s.Box,Object.assign({"data-testid":"BottomSheet-content",ref:D,sx:Object.assign({overflow:"auto",borderTop:z?1:0,borderColor:"surface.secondary",p:2},y)},I,{children:a})),b&&t.jsx(s.Box,Object.assign({"data-testid":"BottomSheet-footer",sx:Object.assign({px:2,pt:3,pb:4,boxShadow:b?"0px 0px 8px rgba(0, 0, 0, 0.15)":"none"},R)},T,{children:b}))]}))}));exports.BottomSheet=i;
|
|
2
2
|
//# sourceMappingURL=bottomSheet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bottomSheet.js","sources":["../../../../../src/components/bottomSheet/bottomSheet.tsx"],"sourcesContent":[null],"names":["BottomSheet","forwardRef","_a","ref","children","open","setOpen","puller","closeButton","closeButtonProps","closeButtonIconProps","CloseButtonIconComponent","footerSlot","title","titleProps","headerWrapper","contentWrapper","footerWrapper","maxHeight","rest","__rest","_b","sx","headerSx","restHeader","_c","contentSx","restContent","_d","footerSx","restFooter","_e","closeButtonIconSx","restCloseButtonIcon","theme","useTheme","BottomSheetCloseButtonIcon","CloseIcon","isScrollable","elementRef","useElementScrollable","_jsxs","SwipeableDrawer","Object","assign","dir","direction","anchor","PaperProps","borderTopLeftRadius","borderTopRightRadius","onClose","onOpen","disableSwipeToOpen","ModalProps","keepMounted","Box","px","_jsx","position","display","flexDirection","justifyContent","alignItems","width","height","backgroundColor","mt","mb","borderRadius","gap","pb","pt","Typography","variant","
|
|
1
|
+
{"version":3,"file":"bottomSheet.js","sources":["../../../../../src/components/bottomSheet/bottomSheet.tsx"],"sourcesContent":[null],"names":["BottomSheet","forwardRef","_a","ref","children","open","setOpen","puller","closeButton","closeButtonProps","closeButtonIconProps","CloseButtonIconComponent","footerSlot","title","titleProps","headerWrapper","contentWrapper","footerWrapper","maxHeight","rest","__rest","_b","sx","headerSx","restHeader","_c","contentSx","restContent","_d","footerSx","restFooter","_e","closeButtonIconSx","restCloseButtonIcon","theme","useTheme","BottomSheetCloseButtonIcon","CloseIcon","isScrollable","elementRef","useElementScrollable","_jsxs","SwipeableDrawer","Object","assign","dir","direction","anchor","PaperProps","borderTopLeftRadius","borderTopRightRadius","onClose","onOpen","disableSwipeToOpen","ModalProps","keepMounted","Box","px","_jsx","position","display","flexDirection","justifyContent","alignItems","width","height","backgroundColor","mt","mb","borderRadius","gap","pb","pt","Typography","variant","IconButton","size","onClick","jsx","color","fontSize","overflow","borderTop","borderColor","p","boxShadow"],"mappings":"gOA4Ea,MAAAA,EAA0CC,EAAUA,YAC/D,CACEC,EAkBAC,KAlBA,IAAAC,SACEA,EAAQC,KACRA,EAAIC,QACJA,EAAOC,OACPA,EAAMC,YACNA,EAAWC,iBACXA,EAAgBC,qBAChBA,EAAoBC,yBACpBA,EAAwBC,WACxBA,EAAUC,MACVA,EAAKC,WACLA,EAAa,CAAA,EAAEC,cACfA,EAAaC,eACbA,EAAcC,cACdA,EAAaC,UACbA,EAAY,IAAE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C1BkC,EAAAA,KAACe,EAAGA,IAAA,CACFlC,GAAI,CACFsC,QAAS,OACTE,eAAgBjD,EAAQ,gBAAkB,WAC1CyD,IAAK,EACLC,GAAI,EACJC,GAAIjE,EAAS,EAAI,GAClBH,SAAA,CAEAS,GACC6C,EAAAA,IAACe,EAAAA,wCAAuB,oBAAoBC,QAAQ,MAAS5D,EAC1D,CAAAV,SAAAS,KAGJL,IAAgBD,GACfmD,EAAAA,IAACiB,EAAAA,WACahC,OAAAC,OAAA,CAAA,cAAA,0BACZgC,KAAK,SACLC,QAAS,IAAMvE,GAAQ,GAAM,aAClB,sBACPG,EAEJ,CAAAL,SAAAsD,EAAAoB,IAAC1C,EAA0BO,OAAAC,OAAA,CACzBmC,MAAM,SACNzD,kBAAM0D,SAAU,QAAWhD,IACvBC,cAQlByB,EAACoB,IAAAtB,EAAGA,IACUb,OAAAC,OAAA,CAAA,cAAA,sBACZzC,IAAKoC,EACLjB,GACEqB,OAAAC,OAAA,CAAAqC,SAAU,OACVC,UAAW5C,EAAe,EAAI,EAC9B6C,YAAa,oBACbC,EAAG,GACA1D,IAEDC,EAAW,CAAAvB,SAEdA,KAEFQ,GACC8C,EAACoB,IAAAtB,EAAGA,IACUb,OAAAC,OAAA,CAAA,cAAA,qBACZtB,GAAEqB,OAAAC,OAAA,CACAa,GAAI,EACJe,GAAI,EACJD,GAAI,EACJc,UAAWzE,EAAa,kCAAoC,QACzDiB,IAEDC,YAEHlB,QAGW"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react"),l=require("../../node_modules/swiper/swiper-react.js");function t(l,t){const[,u]=e.useState({});e.useEffect((()=>{l&&(
|
|
1
|
+
"use strict";var e=require("react"),l=require("../../node_modules/swiper/swiper-react.js");function t(l,t){const[,u]=e.useState({});e.useEffect((()=>{l&&(null!=t?t:["slideChange","afterInit","reachBeginning","reachEnd","autoplayStart","autoplayStop"]).forEach((e=>{l.on(e,(()=>{u({})}))}))}),[l]),e.useLayoutEffect((()=>{u({})}),[])}exports.useCarousel=function(e){const u=l.useSwiper();return t(u,e),u},exports.useCarouselInstance=function(l){const[u,n]=e.useState(null);return t(u,l),[u,n]},exports.useCarouselPeekEffect=function(l){const[t,u]=e.useState(null),n=e.useRef(null),[s,r]=e.useState(!1);return e.useEffect((()=>{var e,r,o,i,a,c,d;return"reset"===t?(null===(e=null==l?void 0:l.el)||void 0===e||e.classList.remove("peek-prev"),null===(r=null==l?void 0:l.el)||void 0===r||r.classList.remove("peek-next"),n.current=setTimeout((()=>{u(null)}),+((null==l?void 0:l.el.getAttribute("data-peekspeed"))||150))):t?s||(null==l||l.slideReset(0),"prev"===t?(null==l||l.slidePrev(0),null==l||l.slideNext(0)):(null==l||l.slideNext(0),null==l||l.slidePrev(0)),null===(o=null==l?void 0:l.el)||void 0===o||o.classList.add("peeking"),null===(i=null==l?void 0:l.el)||void 0===i||i.classList.add(`peek-${t}`)):(null===(a=null==l?void 0:l.el)||void 0===a||a.classList.remove("peeking"),null===(c=null==l?void 0:l.el)||void 0===c||c.classList.remove("peek-prev"),null===(d=null==l?void 0:l.el)||void 0===d||d.classList.remove("peek-next")),()=>{n.current&&clearTimeout(n.current)}}),[t]),e.useEffect((()=>{null==l||l.on("touchStart",(()=>{u("reset"),r(!0)})),null==l||l.on("touchEnd",(()=>{u("reset"),r(!1)}))}),[!!l]),[t,u]};
|
|
2
2
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sources":["../../../../../src/components/carousel/hooks.ts"],"sourcesContent":[null],"names":["useRefreshInstance","carousel","events","setRerender","useState","useEffect","
|
|
1
|
+
{"version":3,"file":"hooks.js","sources":["../../../../../src/components/carousel/hooks.ts"],"sourcesContent":[null],"names":["useRefreshInstance","carousel","events","setRerender","useState","useEffect","forEach","evt","on","useLayoutEffect","useSwiper","setCarousel","peek","setPeek","peekTimeout","useRef","disabled","setDisabled","_a","el","classList","remove","_b","current","setTimeout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IAAAU,GAAAA,EAAAT,UAAUU,IAAI,WAChB,QAAZC,EAAA9B,aAAA,EAAAA,EAAUkB,UAAE,IAAAY,GAAAA,EAAEX,UAAUU,IAAI,QAAQlB,OAGxB,QAAdoB,EAAA/B,aAAQ,EAARA,EAAUkB,UAAI,IAAAa,GAAAA,EAAAZ,UAAUC,OAAO,WACjB,QAAdY,EAAAhC,aAAQ,EAARA,EAAUkB,UAAI,IAAAc,GAAAA,EAAAb,UAAUC,OAAO,aACjB,QAAda,EAAAjC,aAAQ,EAARA,EAAUkB,UAAI,IAAAe,GAAAA,EAAAd,UAAUC,OAAO,cAG1B,KACDP,EAAYS,SACdY,aAAarB,EAAYS,SAE5B,GACA,CAACX,IAKJP,EAAAA,WAAU,KAERJ,SAAAA,EAAUO,GAAG,cAAc,KACzBK,EAAQ,SACRI,GAAY,EAAK,IAEnBhB,SAAAA,EAAUO,GAAG,YAAY,KACvBK,EAAQ,SACRI,GAAY,EAAM,GAClB,GACD,GAAGhB,IAEC,CAACW,EAAMC,EAChB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ElementType } from 'react';
|
|
2
2
|
import { BoxProps, ButtonProps, SliderProps, LinearProgressProps } from '@mui/material';
|
|
3
3
|
import type { Swiper as CarouselInstance } from 'swiper';
|
|
4
|
-
export interface CarouselPaginationVariantProps extends Omit<BoxProps
|
|
4
|
+
export interface CarouselPaginationVariantProps extends Omit<BoxProps<ElementType>, 'children' | 'position'> {
|
|
5
5
|
/**
|
|
6
6
|
* Carousel instance from useCarousel hook
|
|
7
7
|
*/
|
|
@@ -36,12 +36,19 @@ export interface CarouselPaginationLinesProps extends CarouselPaginationVariantP
|
|
|
36
36
|
*/
|
|
37
37
|
lineProgressProps?: BoxProps<ElementType>;
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated use `slider` variant instead
|
|
41
|
+
*/
|
|
39
42
|
export interface CarouselPaginationProgressProps extends CarouselPaginationVariantProps {
|
|
40
43
|
variant?: 'progress';
|
|
41
44
|
/**
|
|
42
|
-
*
|
|
45
|
+
* @deprecated
|
|
43
46
|
*/
|
|
44
47
|
progressProps?: LinearProgressProps;
|
|
48
|
+
/**
|
|
49
|
+
* Properties applied to Slider
|
|
50
|
+
*/
|
|
51
|
+
sliderProps?: SliderProps;
|
|
45
52
|
}
|
|
46
53
|
export interface CarouselPaginationSliderProps extends CarouselPaginationVariantProps {
|
|
47
54
|
variant?: 'slider';
|
|
@@ -50,6 +57,13 @@ export interface CarouselPaginationSliderProps extends CarouselPaginationVariant
|
|
|
50
57
|
*/
|
|
51
58
|
sliderProps?: SliderProps;
|
|
52
59
|
}
|
|
60
|
+
export interface CarouselPaginationScrollbarProps extends CarouselPaginationVariantProps {
|
|
61
|
+
variant?: 'scrollbar';
|
|
62
|
+
/**
|
|
63
|
+
* Properties applied to Slider
|
|
64
|
+
*/
|
|
65
|
+
sliderProps?: SliderProps;
|
|
66
|
+
}
|
|
53
67
|
export interface CarouselPaginationBaseProps {
|
|
54
68
|
/**
|
|
55
69
|
* Optional Carousel instance from useCarouselInstance hook
|
|
@@ -61,7 +75,7 @@ export interface CarouselPaginationBaseProps {
|
|
|
61
75
|
*/
|
|
62
76
|
position?: 'outside' | 'inside';
|
|
63
77
|
}
|
|
64
|
-
export type CarouselPaginationProps = CarouselPaginationBaseProps & (Omit<CarouselPaginationDotsProps, 'carousel'> | Omit<CarouselPaginationFractionProps, 'carousel'> | Omit<CarouselPaginationLinesProps, 'carousel'> | Omit<CarouselPaginationProgressProps, 'carousel'> | Omit<CarouselPaginationSliderProps, 'carousel'>);
|
|
78
|
+
export type CarouselPaginationProps = CarouselPaginationBaseProps & (Omit<CarouselPaginationDotsProps, 'carousel'> | Omit<CarouselPaginationFractionProps, 'carousel'> | Omit<CarouselPaginationLinesProps, 'carousel'> | Omit<CarouselPaginationProgressProps, 'carousel'> | Omit<CarouselPaginationSliderProps, 'carousel'> | Omit<CarouselPaginationScrollbarProps, 'carousel'>);
|
|
65
79
|
/**
|
|
66
80
|
* Pagination controls
|
|
67
81
|
*/
|
|
@@ -78,11 +92,11 @@ export declare const FractionVariant: React.FC<CarouselPaginationFractionProps>;
|
|
|
78
92
|
* Lines variant (- - -)
|
|
79
93
|
*/
|
|
80
94
|
export declare const LinesVariant: React.FC<CarouselPaginationLinesProps>;
|
|
81
|
-
/**
|
|
82
|
-
* Progress variant (---)
|
|
83
|
-
*/
|
|
84
|
-
export declare const ProgressVariant: React.FC<CarouselPaginationProgressProps>;
|
|
85
95
|
/**
|
|
86
96
|
* Slider variant (___)
|
|
87
97
|
*/
|
|
88
98
|
export declare const SliderVariant: React.FC<CarouselPaginationSliderProps>;
|
|
99
|
+
/**
|
|
100
|
+
* Scrollbar variant (_--)
|
|
101
|
+
*/
|
|
102
|
+
export declare const ScrollbarVariant: React.FC<CarouselPaginationSliderProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),o=require("@mui/material"),i=require("./hooks.js"),n=require("../../materialui/button/interactive.js"),t=require("../../materialui/slider/sliderContainer.js");const a=s.forwardRef(((o,n)=>{var{carousel:t,position:a,variant:p,sx:g}=o,f=e.__rest(o,["carousel","position","variant","sx"]);const h=i.useCarousel(),v=t||h,b=s.useMemo((()=>{switch(p){case"scrollbar":return x;case"slider":case"progress":return d;case"fraction":return c;case"lines":return u;default:return l}}),[p]),m=s.useMemo((()=>"inside"===a?Object.assign({position:"absolute",zIndex:"90",bottom:"0",left:"0",right:"0"},g):g),[a,JSON.stringify(g)]);return r.jsx(b,Object.assign({carousel:v,sx:m,ref:n},f))})),l=s.forwardRef(((s,i)=>{var{carousel:n,dotProps:t,sx:a}=s,l=e.__rest(s,["carousel","dotProps","sx"]);const c=t||{},{sx:u}=c,d=e.__rest(c,["sx"]);return r.jsx(o.Box,Object.assign({sx:Object.assign({px:2,height:"40px",display:"flex",alignItems:"center",justifyContent:"center",gap:1,pointerEvents:"none"},a),ref:i},l,{children:[...Array((null==n?void 0:n.slides.length)||0)].map(((e,s)=>r.jsx(o.Box,Object.assign({className:!(null==n?void 0:n.originalParams.loop)&&(null==n?void 0:n.isEnd)&&s===((null==n?void 0:n.slides.length)||0)-1?"active":(null==n?void 0:n.isEnd)&&!n.originalParams.loop||s!==(null==n?void 0:n.realIndex)?void 0:"active",sx:Object.assign({p:"0",width:"8px",height:"8px",borderRadius:"100%",backgroundColor:"onSurface.os500",transition:"all 0.3s ease-out","&.active":{width:"12px",height:"12px",backgroundColor:"text.primary"}},u)},d),s)))}))})),c=s.forwardRef(((s,i)=>{var{carousel:t,buttonProps:a,sx:l}=s,c=e.__rest(s,["carousel","buttonProps","sx"]);const u=a||{},{sx:d}=u,x=e.__rest(u,["sx"]);return r.jsx(o.Box,Object.assign({sx:Object.assign({display:"flex",alignItems:"center",justifyContent:"center",p:2},l),ref:i},c,{children:r.jsx(o.Button,Object.assign({variant:"text","aria-controls":"carousel",sx:Object.assign(Object.assign({px:2,py:.25,borderRadius:"4px",fontSize:"18px",lineHeight:"28px",letterSpacing:"0.02em"},n.getInteractiveStyle({backgroundColor:"transparent.backdrop"},{backgroundColor:"onSurface.os100"})),d),onClick:()=>(null==t?void 0:t.isEnd)&&!t.originalParams.loop?null==t?void 0:t.slideTo(0):null==t?void 0:t.slideNext()},x,{children:r.jsxs(o.Box,{component:"span",children:[r.jsx(o.Box,{component:"span",sx:{fontWeight:"700",color:"onSurface.os900"},children:`${((null==t?void 0:t.realIndex)||0)+1}`}),r.jsx(o.Box,{component:"span",sx:{color:"onSurface.os700",fontWeight:"400",mx:.5},children:" / "}),r.jsx(o.Box,{component:"span",sx:{color:"onSurface.os700",fontWeight:"300"},children:`${(null==t?void 0:t.slides.length)||0}`})]})}))}))})),u=s.forwardRef(((s,i)=>{var{carousel:t,sx:a,linesProps:l,lineProgress:c,lineProgressProps:u}=s,d=e.__rest(s,["carousel","sx","linesProps","lineProgress","lineProgressProps"]);const x=l||{},{sx:p}=x,g=e.__rest(x,["sx"]),f=u||{},{sx:h}=f,v=e.__rest(f,["sx"]);return r.jsx(o.Box,Object.assign({sx:Object.assign({display:"flex",alignItems:"center",justifyContent:{xs:"stretch",md:"center"},flexGrow:{xs:"1",md:0},gap:1,p:2},a),ref:i},d,{children:[...Array((null==t?void 0:t.slides.length)||0)].map(((e,s)=>{const i=!(null==t?void 0:t.originalParams.loop)&&(null==t?void 0:t.isEnd)&&s===((null==t?void 0:t.slides.length)||0)-1||(!(null==t?void 0:t.isEnd)||t.originalParams.loop)&&s===(null==t?void 0:t.realIndex),a=s<=((null==t?void 0:t.realIndex)||0);return r.jsxs(o.Button,Object.assign({color:"inherit",className:i?"active":void 0,sx:Object.assign(Object.assign({p:0,minHeight:"0",height:i||a?"8px":"4px",borderRadius:i||a?"4px":"2px",width:{xs:"100%",md:"56px"},justifyContent:"flex-start"},n.getInteractiveStyle({backgroundColor:"surface.primary","& .progress-line":{backgroundColor:"brand.secondary"}},{backgroundColor:"surface.secondary","& .progress-line":{backgroundColor:"brandHover.secondary"}})),p),"aria-controls":"carousel",onClick:()=>null==t?void 0:t[t.originalParams.loop?"slideToLoop":"slideTo"](s)},g,{children:[r.jsx(o.Box,{sx:{position:"absolute",top:"50%",left:"0",right:"0",height:"24px",transform:"translateY(-50%)",pointerEvents:"auto"}}),r.jsx(o.Box,{sx:{borderRadius:"4px",height:"100%",width:"100%",overflow:"hidden"},children:r.jsx(o.Box,Object.assign({className:"progress-line",role:i?"progress":void 0,"aria-valuenow":i?c:void 0,"aria-valuemin":0,"aria-valuemax":100,sx:Object.assign({opacity:void 0!==c||a?"1":"0",width:"100%",backgroundColor:"brand.secondary",height:"100%",transformOrigin:"left",transform:`scaleX(${void 0!==c&&i?c/100:a?1:0})`,transition:(void 0!==c?"transform 300ms ease-in-out, ":"")+"opacity 300ms ease-out, background-color 300ms ease-out"},h)},v))})]}),s)}))}))})),d=s.forwardRef(((i,n)=>{var t,{carousel:a,sliderProps:l,sx:c,progressProps:u}=i,d=e.__rest(i,["carousel","sliderProps","sx","progressProps"]);const x=l||{},{sx:p}=x,g=e.__rest(x,["sx"]),[f,h]=s.useState(Math.round(100*((null==a?void 0:a.progress)||0))),v=s.useRef(!1),[,b]=s.useState({});return s.useEffect((()=>{v.current||h(Math.round(100*((null==a?void 0:a.progress)||0)))}),[null==a?void 0:a.progress]),s.useEffect((()=>{if(a){const e=()=>{v.current||b({})};return a.on("sliderMove",e),()=>{a.off("sliderMove",e)}}}),[a]),r.jsx(o.Box,Object.assign({sx:Object.assign({my:2},c),ref:n},d,{children:r.jsx(o.Slider,Object.assign({value:f,min:0,max:100,onChange:(e,r)=>{v.current=!0,null==a||a.setProgress(r/100,150),h(r)},onChangeCommitted:()=>{null==a||a.slideToClosest(300),v.current=!1},sx:Object.assign({display:"block",height:"4px",".MuiSlider-rail":{color:"surface.primary"},".MuiSlider-track":{color:"onSurface.os500",transitionDuration:`${null!==(t=null==a?void 0:a.originalParams.speed)&&void 0!==t?t:300}ms`},".MuiSlider-thumb":{display:"none"}},p),"aria-controls":"carousel"},g))}))})),x=s.forwardRef(((o,i)=>{var n,a,{carousel:l,sliderProps:c}=o,u=e.__rest(o,["carousel","sliderProps"]);const x=c||{},{sx:p}=x,g=e.__rest(x,["sx"]),[f,h]=s.useState(!1),[,v]=s.useState({});s.useEffect((()=>{if(l){const e=()=>h(!0),r=()=>h(!1),s=()=>v({});return l.on("touchStart",e),l.on("touchEnd",r),l.on("resize",s),()=>{l.off("touchStart",e),l.off("touchEnd",r),l.off("resize",s)}}}),[l]);const b=s.useMemo((()=>{var e,r;if((null===(e=null==l?void 0:l.wrapperEl)||void 0===e?void 0:e.scrollWidth)&&(null==l?void 0:l.width)){const e=Math.ceil((null==l?void 0:l.width)**2/(null===(r=null==l?void 0:l.wrapperEl)||void 0===r?void 0:r.scrollWidth));return Math.max(e,40)}return 40}),[null===(n=null==l?void 0:l.wrapperEl)||void 0===n?void 0:n.scrollWidth,null==l?void 0:l.width]);return r.jsx(d,Object.assign({ref:i,carousel:l,component:t.SliderContainer,thumbSize:b,sliderProps:Object.assign({tabIndex:-1,valueLabelDisplay:"off",sx:Object.assign({display:"block",height:"4px",".MuiSlider-rail, .MuiSlider-track":{color:"surface.primary"},".MuiSlider-thumb":Object.assign(Object.assign({display:"flex",width:`${b}px`,height:"4px",border:"none",backgroundColor:"onSurface.os500"},!f&&{transition:`left ${null!==(a=null==l?void 0:l.originalParams.speed)&&void 0!==a?a:300}ms ease-out`}),{"&.Mui-focusVisible":{boxShadow:"none","&:before":{content:"none"}}})},p)},g)},u))}));exports.CarouselPagination=a,exports.DotsVariant=l,exports.FractionVariant=c,exports.LinesVariant=u,exports.ScrollbarVariant=x,exports.SliderVariant=d;
|
|
2
2
|
//# sourceMappingURL=pagination.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.js","sources":["../../../../../src/components/carousel/pagination.tsx"],"sourcesContent":[null],"names":["CarouselPagination","forwardRef","_a","ref","carousel","carouselProp","position","variant","sx","rawSx","rest","__rest","carouselHook","useCarousel","VariantComponent","useMemo","
|
|
1
|
+
{"version":3,"file":"pagination.js","sources":["../../../../../src/components/carousel/pagination.tsx"],"sourcesContent":[null],"names":["CarouselPagination","forwardRef","_a","ref","carousel","carouselProp","position","variant","sx","rawSx","rest","__rest","carouselHook","useCarousel","VariantComponent","useMemo","ScrollbarVariant","SliderVariant","FractionVariant","LinesVariant","DotsVariant","Object","assign","zIndex","bottom","left","right","JSON","stringify","_jsx","dotProps","_b","dotSx","restDot","jsx","Box","px","height","display","alignItems","justifyContent","gap","pointerEvents","children","Array","slides","length","map","_","idx","className","originalParams","loop","isEnd","realIndex","undefined","p","width","borderRadius","backgroundColor","transition","buttonProps","buttonSx","restButton","Button","py","fontSize","lineHeight","letterSpacing","getInteractiveStyle","onClick","slideTo","slideNext","_jsxs","component","fontWeight","color","mx","linesProps","lineProgress","lineProgressProps","lineSx","lineRest","_c","lineProgressSx","lineProgressRest","xs","md","flexGrow","active","seen","jsxs","minHeight","top","transform","overflow","role","opacity","transformOrigin","sliderProps","progressProps","__","sliderSx","restSlider","value","setValue","useState","Math","round","progress","dragging","useRef","setRerender","useEffect","current","handleMove","on","off","my","Slider","min","max","onChange","newValue","setProgress","onChangeCommitted","slideToClosest","transitionDuration","speed","_d","carouselDragging","setCarouselDragging","handleDragStart","handleDragEnd","handleResize","thumbSize","wrapperEl","scrollWidth","size","ceil","SliderContainer","tabIndex","valueLabelDisplay","border","boxShadow","content"],"mappings":"qPA8Fa,MAAAA,EAAwDC,EAAUA,YAC7E,CAACC,EAAmEC,KAAnE,IAAEC,SAAUC,EAAYC,SAAEA,EAAQC,QAAEA,EAASC,GAAIC,GAAgBP,EAANQ,EAAIC,EAAAA,OAAAT,EAA/D,wCACC,MAAMU,EAAeC,EAAAA,cACfT,EAAWC,GAAgBO,EAE3BE,EAAmBC,EAAAA,SAAQ,KAC/B,OAAQR,GACN,IAAK,YACH,OAAOS,EACT,IAAK,SACL,IAAK,WACH,OAAOC,EACT,IAAK,WACH,OAAOC,EACT,IAAK,QACH,OAAOC,EAGT,QACE,OAAOC,KAEV,CAACb,IAEEC,EAAKO,EAAAA,SAAoC,IAC5B,WAAbT,EAEAe,OAAAC,OAAA,CAAAhB,SAAU,WACViB,OAAQ,KACRC,OAAQ,IACRC,KAAM,IACNC,MAAO,KACJjB,GAGEA,GAER,CAACH,EAAUqB,KAAKC,UAAUnB,KAE7B,OAAOoB,MAACf,EAAgBO,OAAAC,OAAA,CAAClB,SAAUA,EAAUI,GAAIA,EAAIL,IAAKA,GAASO,GAAQ,IAOlEU,EAAqDnB,EAAUA,YAC1E,CAACC,EAAqCC,SAArCC,SAAEA,EAAQ0B,SAAEA,EAAQtB,GAAEA,KAAOE,EAA7BC,EAAAA,OAAAT,EAAA,CAAA,WAAA,WAAA,OACC,MAAM6B,EAA4BD,GAAY,IAAtCtB,GAAIwB,KAAUC,EAAhBtB,EAAAA,OAAAoB,EAAA,CA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,IAEJ,MAAMmI,EAAYxH,EAAAA,SAAgB,aAChC,IAAuB,UAAnBX,aAAA,EAAAA,EAAUoI,iBAAS,IAAAtI,OAAA,EAAAA,EAAEuI,eAAerI,aAAQ,EAARA,EAAUqD,OAAO,CACvD,MAAMiF,EAAO/B,KAAKgC,MAAKvI,aAAA,EAAAA,EAAUqD,QAAS,GAAuB,QAAnB1B,EAAA3B,aAAQ,EAARA,EAAUoI,iBAAS,IAAAzG,OAAA,EAAAA,EAAE0G,cACnE,OAAO9B,KAAKc,IAAIiB,EAAM,IAExB,OAAO,EAAE,GACR,CAAoB,QAAnB3G,EAAA3B,aAAQ,EAARA,EAAUoI,iBAAS,IAAAzG,OAAA,EAAAA,EAAE0G,YAAarI,aAAQ,EAARA,EAAUqD,QAEhD,OACE5B,EAAAA,IAACZ,EAAaI,OAAAC,OAAA,CACZnB,IAAKA,EACLC,SAAUA,EACVsE,UAAWkE,EAAAA,gBACXL,UAAWA,EACXpC,YAAW9E,OAAAC,OAAA,CAETuH,UAAY,EAEZC,kBAAmB,MACnBtI,GAAEa,OAAAC,OAAA,CACAgB,QAAS,QACTD,OAAQ,MAER,oCAAqC,CACnCuC,MAAO,mBAET,mBACEvD,OAAAC,OAAAD,OAAAC,OAAA,CAAAgB,QAAS,OACTmB,MAAO,GAAG8E,MACVlG,OAAQ,MACR0G,OAAQ,OACRpF,gBAAiB,oBAEZuE,GAAoB,CACvBtE,WAAY,QAAsC,QAA9BuB,EAAA/E,aAAQ,EAARA,EAAU+C,eAAe6E,aAAK,IAAA7C,EAAAA,EAAI,mBACtD,CAEF,qBAAsB,CACpB6D,UAAW,OACX,WAAY,CACVC,QAAS,YAIZ3C,IAEFC,IAED7F,GACJ"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { IconButtonProps } from '@mui/material';
|
|
2
|
-
export type CloseDialogButtonProps =
|
|
2
|
+
export type CloseDialogButtonProps = IconButtonProps;
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use <DialogTitle onClose={fn} /> instead
|
|
5
|
+
*/
|
|
3
6
|
export declare const CloseDialogButton: (props: CloseDialogButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),i=require("@mui/material"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),i=require("@mui/material"),r=require("../icon/stroke/CloseIcon.js");exports.CloseDialogButton=s=>e.jsx(i.IconButton,Object.assign({"aria-label":"Close dialog",size:"medium"},s,{children:e.jsx(r.CloseIcon,{})}));
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/closeDialogButton/index.tsx"],"sourcesContent":[null],"names":["props","_jsx","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/closeDialogButton/index.tsx"],"sourcesContent":[null],"names":["props","_jsx","IconButton","Object","assign","size","children","CloseIcon"],"mappings":"8IASkCA,GAE9BC,EAAAA,IAACC,EAAAA,WAAsBC,OAAAC,OAAA,CAAA,aAAA,eAAeC,KAAK,UAAaL,EACtD,CAAAM,SAAAL,EAAAA,IAACM,EAAAA,UAAY,CAAA"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as Flags from 'country-flag-icons/react/3x2';
|
|
3
3
|
import { BoxProps } from '@mui/material';
|
|
4
|
-
/**
|
|
5
|
-
* @interface FlagProps
|
|
6
|
-
* @description Base definition of SkodaFlow Flag independent on core implementation.
|
|
7
|
-
* Properties are inherited from HTML Div element and FlagStylingProps interface.
|
|
8
|
-
*/
|
|
9
4
|
export interface FlagProps extends Omit<BoxProps, 'component'> {
|
|
10
5
|
/**
|
|
11
6
|
* Defines which flag to use.
|
|
@@ -31,4 +26,7 @@ export interface FlagProps extends Omit<BoxProps, 'component'> {
|
|
|
31
26
|
*/
|
|
32
27
|
disabled?: boolean;
|
|
33
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Renders country flag icon
|
|
31
|
+
*/
|
|
34
32
|
export declare const Flag: React.FC<FlagProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),a=require("country-flag-icons/react/3x2"),i=require("country-flag-icons/react/1x1"),s=require("@mui/material");function c(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var n=c(a),u=c(i);const l=t.forwardRef(((a,i)=>{var{flag:c,sx:l,width:o,size:d="small",variant:
|
|
1
|
+
"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),t=require("react"),a=require("country-flag-icons/react/3x2"),i=require("country-flag-icons/react/1x1"),s=require("@mui/material");function c(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var n=c(a),u=c(i);const l=t.forwardRef(((a,i)=>{var{flag:c,sx:l,width:o,size:d="small",variant:f="circle",disabled:b=!1}=a,g=e.__rest(a,["flag","sx","width","size","variant","disabled"]);const x=t.useMemo((()=>{switch(d){case"small":return 24;case"medium":return 44;case"large":return 56;default:return null!=o?o:24}}),[d,o]);return r.jsx(s.Box,Object.assign({"data-testid":"Flag",component:(["circle","square"].includes(f)?u:n)[c]||"div",sx:Object.assign(Object.assign(Object.assign({width:`${x}px`,flexShrink:"0",border:1,borderColor:"onSurface.os500"},["circle","square"].includes(f)&&Object.assign({height:`${x}px`},"circle"===f?{borderRadius:`${x}px`}:{})),b&&{userSelect:"none",borderColor:"disabled.tertiary",opacity:"0.65"}),l),ref:i},g))}));exports.Flag=l;
|
|
2
2
|
//# sourceMappingURL=flag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flag.js","sources":["../../../../../src/components/flag/flag.tsx"],"sourcesContent":[null],"names":["Flag","forwardRef","_a","ref","flag","sx","width","widthProp","size","variant","disabled","rest","__rest","useMemo","_jsx","
|
|
1
|
+
{"version":3,"file":"flag.js","sources":["../../../../../src/components/flag/flag.tsx"],"sourcesContent":[null],"names":["Flag","forwardRef","_a","ref","flag","sx","width","widthProp","size","variant","disabled","rest","__rest","useMemo","_jsx","Box","Object","assign","component","includes","SquareFlags","Flags","flexShrink","border","borderColor","height","borderRadius","userSelect","opacity"],"mappings":"sfAkCa,MAAAA,EAA4BC,EAAUA,YACjD,CAACC,EAA+FC,SAA/FC,KAAEA,EAAIC,GAAEA,EAAIC,MAAOC,EAASC,KAAEA,EAAO,QAAOC,QAAEA,EAAU,SAAQC,SAAEA,GAAW,KAAUC,EAAvFC,EAAAA,OAAAV,EAAA,CAAA,OAAA,KAAA,QAAA,OAAA,UAAA,aAEC,MAAMI,EAAQO,EAAAA,SAAQ,KACpB,OAAQL,GACN,IAAK,QACH,OAAO,GACT,IAAK,SACH,OAAO,GACT,IAAK,QACH,OAAO,GACT,QACE,OAAOD,QAAAA,EAAa,MAEvB,CAACC,EAAMD,IAEV,OACEO,EAAAA,IAACC,EAAAA,IAAGC,OAAAC,OAAA,CAAA,cACU,OACZC,WAAY,CAAC,SAAU,UAAUC,SAASV,GAAWW,EAAcC,GAAOjB,IAAS,MACnFC,GACEW,OAAAC,OAAAD,OAAAC,OAAAD,OAAAC,OAAA,CAAAX,MAAO,GAAGA,MACVgB,WAAY,IAEZC,OAAQ,EACRC,YAAa,mBAET,CAAC,SAAU,UAAUL,SAASV,IAChCO,OAAAC,OAAA,CAAAQ,OAAQ,GAAGnB,OACK,WAAZG,EAAuB,CAAEiB,aAAc,GAAGpB,OAAc,CAAA,IAG1DI,GAAY,CACdiB,WAAY,OACZH,YAAa,oBACbI,QAAS,SAERvB,GAELF,IAAKA,GACDQ,GACJ"}
|
|
@@ -9,6 +9,9 @@ export interface LabelBaseProps extends BoxProps<ElementType> {
|
|
|
9
9
|
export interface GeneralLabelProps extends LabelBaseProps {
|
|
10
10
|
type?: 'general';
|
|
11
11
|
}
|
|
12
|
+
export interface SimpleLabelProps extends LabelBaseProps {
|
|
13
|
+
type?: 'simple';
|
|
14
|
+
}
|
|
12
15
|
export type FeatureVariants = 'primary' | 'neutral' | 'secondary';
|
|
13
16
|
export interface FeatureLabelProps extends LabelBaseProps {
|
|
14
17
|
type: 'feature';
|
|
@@ -43,7 +46,7 @@ export interface CO2LabelProps extends LabelBaseProps {
|
|
|
43
46
|
labelBoxProps?: BoxProps<ElementType>;
|
|
44
47
|
labelNextProps?: BoxProps<ElementType>;
|
|
45
48
|
}
|
|
46
|
-
export type LabelProps = GeneralLabelProps | FeatureLabelProps | PromotionalLabelProps | SemanticLabelProps | StatusLabelProps | CO2LabelProps;
|
|
49
|
+
export type LabelProps = GeneralLabelProps | SimpleLabelProps | FeatureLabelProps | PromotionalLabelProps | SemanticLabelProps | StatusLabelProps | CO2LabelProps;
|
|
47
50
|
export declare const Label: React.FC<LabelProps>;
|
|
48
51
|
/**
|
|
49
52
|
* @deprecated Use <Label type="feature" /> instead.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),a=require("@mui/material"),t=require("../icon/stroke/CircleExclamationIcon.js"),
|
|
1
|
+
"use strict";var e=require("tslib"),r=require("react/jsx-runtime"),s=require("react"),a=require("@mui/material"),t=require("../icon/stroke/CircleExclamationIcon.js"),n=require("../icon/stroke/CircleInformationIcon.js"),o=require("../focusring/focusring.js"),i=require("../../materialui/button/interactive.js");const c={display:"inline-flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"nowrap",flexShrink:"0",fontSize:"11px",lineHeight:"12px",letterSpacing:"3px",textTransform:"uppercase",fontWeight:"900",whiteSpace:"nowrap",textRendering:"geometricPrecision"},l=s.forwardRef(((s,t)=>{var{type:n,label:o,children:i,sx:l}=s,x=e.__rest(s,["type","label","children","sx"]);return r.jsx(a.Box,Object.assign({ref:t,"data-testid":"Label-general",sx:Object.assign(Object.assign(Object.assign({},c),{color:e=>"dark"===e.palette.mode?"onSurface.os200":"onSurface.os600"}),l)},x,{children:o||i}))})),x=s.forwardRef(((s,t)=>{var{type:n,label:o,children:i,sx:l}=s,x=e.__rest(s,["type","label","children","sx"]);return r.jsx(a.Box,Object.assign({ref:t,"data-testid":"Label-simple",sx:e=>Object.assign(Object.assign(Object.assign(Object.assign({},c),e.typography.list),{backgroundColor:"transparent.primary",color:"text.primary",p:"2px 10px"}),l)},x,{children:o||i}))})),p=s.forwardRef(((s,t)=>{var{type:n,label:o,children:i,variant:l="primary",sx:x}=s,p=e.__rest(s,["type","label","children","variant","sx"]);return r.jsx(a.Box,Object.assign({ref:t,"data-testid":`Label-feature${l}`,sx:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),{color:"onSurface.os0",backgroundColor:"brand.tertiary",padding:"4px 8px 4px 10px",borderRadius:"2px"}),"neutral"===l&&{backgroundColor:"onSurface.os600"}),"secondary"===l&&{backgroundColor:"brand.secondary",color:"brand.tertiary"}),x)},p,{children:o||i}))})),b=s.forwardRef(((s,t)=>{var{type:n,label:o,children:i,variant:l="large",sx:x,labelBoxProps:p,labelNextProps:b}=s,d=e.__rest(s,["type","label","children","variant","sx","labelBoxProps","labelNextProps"]);const g=p||{},{sx:u}=g,j=e.__rest(g,["sx"]),f=b||{},{sx:O}=f,m=e.__rest(f,["sx"]);return r.jsx(a.Box,Object.assign({ref:t,"data-testid":`Label-promotional${l}`,sx:Object.assign(Object.assign(Object.assign({},c),{color:"brand.secondary",overflow:"hidden",borderRadius:"2px"}),x)},d,{children:r.jsx(a.Box,Object.assign({sx:Object.assign({margin:"0 6px 0 -6px",transform:"skew(-21deg, 0deg)",backgroundColor:"brand.tertiary",position:"relative",borderRadius:"3px",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",zIndex:100},u)},j,{children:r.jsx(a.Box,Object.assign({sx:Object.assign(Object.assign(Object.assign({fontSize:"14px",padding:"10px 14px 10px 20px"},"small"===l&&{fontSize:"12px",padding:"8px 10px 8px 16px"}),{letterSpacing:"1px",textTransform:"uppercase",lineHeight:"12px",fontWeight:"bold",transform:"skew(21deg, 0deg)"}),O)},m,{children:o||i}))}))}))}));function d(e,r){return Object.assign(Object.assign({},e),{"&.MuiButtonBase-root":Object.assign({},i.getInteractiveStyle(e,r))})}const g=s.forwardRef(((i,l)=>{var{type:x,label:p,children:b,variant:g="positive",sx:u,iconProps:j,IconComponent:f,onClick:O}=i,m=e.__rest(i,["type","label","children","variant","sx","iconProps","IconComponent","onClick"]);const h=j||{},{sx:y}=h,C=e.__rest(h,["sx"]),k=s.useMemo((()=>{switch(g){case"alert":case"warning":return t.CircleExclamationIcon;default:return n.CircleInformationIcon}}),[g]),w=f||k,v=a.useTheme();return r.jsxs(a.Box,Object.assign({ref:l,"data-testid":`Label-semantic${g}`,sx:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),{gap:"6px",padding:"2px 8px 2px 4px",borderRadius:"4px",border:1,borderColor:"currentColor",transition:"transform 0.3s ease-out, color 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out, opacity 0.3s ease-out","&&.MuiButtonBase-root":Object.assign({},o.getFocusRingStyle(v,!0,1))}),d({color:"brand.primary",backgroundColor:"transparent.transparent"},{color:"brandHover.primary",backgroundColor:"transparent.primary"})),"alert"===g&&Object.assign({},d({color:"error.main",backgroundColor:"transparent.transparent"},{color:"error.dark",backgroundColor:"transparent.primary"}))),"warning"===g&&Object.assign({},d({color:"warning.main",backgroundColor:"transparent.transparent"},{color:"warning.dark",backgroundColor:"transparent.primary"}))),"info"===g&&Object.assign({},d({color:"info.main",backgroundColor:"transparent.transparent"},{color:"info.dark",backgroundColor:"transparent.primary"}))),u),onClick:O},m,{children:[r.jsx(w,Object.assign({"data-testid":`icon-${g}`,sx:Object.assign({fontSize:"18px"},y)},C)),p||b]}))})),u=s.forwardRef(((s,t)=>{var{type:n,label:o,children:i,variant:l="positive",labelPlacement:x="end",dotProps:p,sx:b}=s,d=e.__rest(s,["type","label","children","variant","labelPlacement","dotProps","sx"]);const g=p||{},{sx:u}=g,j=e.__rest(g,["sx"]);return r.jsxs(a.Box,Object.assign({ref:t,"data-testid":`Label-status${l}`,sx:e=>{var r;return Object.assign(Object.assign(Object.assign(Object.assign({},c),{color:"text.primary",flexDirection:null!==(r={start:"row-reverse",top:"column-reverse",bottom:"column"}[x])&&void 0!==r?r:"row",gap:1}),"indicator"===n&&e.typography.disclaimer1),b)}},"disabled"===l&&{disabled:!0,tabIndex:-1},d,{children:[r.jsx(a.Box,Object.assign({sx:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({width:"10px",height:"10px"},"indicator"===n&&{width:"14px",height:"14px"}),{borderRadius:"50%",backgroundColor:"success.main"}),"warning"===l&&{backgroundColor:"warning.main"}),"alert"===l&&{backgroundColor:"error.main"}),"neutral"===l&&{backgroundColor:"onSurface.os500"}),"disabled"===l&&{backgroundColor:"disabled.secondary"}),u)},j)),o||i]}))})),j=s.forwardRef(((t,n)=>{var{type:o,label:i,children:l,variant:x="A+++",size:p="large",sx:b,labelBoxProps:d,labelNextProps:g}=t,u=e.__rest(t,["type","label","children","variant","size","sx","labelBoxProps","labelNextProps"]);const j=s.useMemo((()=>({B:"#019A01",C:"#69CC00",D:"#FFCC01",E:"#F99601",F:"#FE6501",G:"#FF3100",H:"#2A78CD"})),[]),f=e=>j[e]||"#016703",O=d||{},{sx:m}=O,h=e.__rest(O,["sx"]),y=g||{},{sx:C}=y,k=e.__rest(y,["sx"]);return r.jsxs(a.Box,Object.assign({ref:n,"data-testid":`Label-CO2${x}`,sx:Object.assign(Object.assign({},c),b)},u,{children:[r.jsx(a.Box,Object.assign({component:"span",sx:Object.assign(Object.assign(Object.assign({alignItems:"center",backgroundColor:f(x),boxSizing:"border-box",color:"surface.tertiary",display:"inline-flex",justifyContent:"flex-start",fontWeight:"700",height:{xs:"20px",xl:"22px"},fontSize:{xs:"12px",xl:"14px"}},"small"===p&&{fontSize:{xs:"10px",xl:"12px"},height:{xs:"16px",xl:"18px"}}),{padding:"0 5px",position:"relative",letterSpacing:"1px"}),m)},h,{children:i||l||x})),r.jsx(a.Box,Object.assign({sx:Object.assign(Object.assign({content:'""',display:"block",width:"0",height:"0",borderStyle:"solid",borderColor:`transparent transparent transparent ${f(x)}`,borderWidth:{xs:"10px 0 10px 7px",lg:"11px 0 11px 8px"}},"small"===p&&{borderWidth:{xs:"8px 0 8px 5px",lg:"9px 0 9px 7px"}}),C)},k))]}))})),f=s.forwardRef(((e,a)=>{const t=s.useMemo((()=>{switch(e.type){case"simple":return x;case"feature":return p;case"promotional":return b;case"semantic":return g;case"status":case"indicator":return u;case"CO2":return j;default:return l}}),[e.type]);return r.jsx(t,Object.assign({component:"span"},e,{ref:a}))})),O=s.forwardRef(((e,s)=>r.jsx(f,Object.assign({},e,{type:"feature",ref:s})))),m=s.forwardRef(((e,s)=>r.jsx(f,Object.assign({},e,{type:"status",ref:s})))),h=s.forwardRef(((e,s)=>r.jsx(f,Object.assign({},e,{type:"CO2",ref:s})))),y=s.forwardRef(((e,s)=>r.jsx(f,Object.assign({},e,{type:"promotional",ref:s})))),C=s.forwardRef(((e,s)=>r.jsx(f,Object.assign({},e,{ref:s}))));exports.Label=f,exports.LabelCO2=h,exports.LabelFeature=O,exports.LabelGeneral=C,exports.LabelPromotional=y,exports.LabelStatus=m;
|
|
2
2
|
//# sourceMappingURL=label.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","sources":["../../../../../src/components/label/label.tsx"],"sourcesContent":[null],"names":["baseSx","display","alignItems","justifyContent","flexWrap","flexShrink","fontSize","lineHeight","letterSpacing","textTransform","fontWeight","whiteSpace","textRendering","GeneralVariant","forwardRef","_a","ref","type","_","label","children","sx","rest","__rest","_jsx","
|
|
1
|
+
{"version":3,"file":"label.js","sources":["../../../../../src/components/label/label.tsx"],"sourcesContent":[null],"names":["baseSx","display","alignItems","justifyContent","flexWrap","flexShrink","fontSize","lineHeight","letterSpacing","textTransform","fontWeight","whiteSpace","textRendering","GeneralVariant","forwardRef","_a","ref","type","_","label","children","sx","rest","__rest","_jsx","Box","Object","assign","color","theme","palette","mode","SimpleVariant","typography","list","backgroundColor","p","FeatureVariant","variant","padding","borderRadius","PromotionalVariant","labelBoxProps","labelNextProps","_b","labelBoxSx","restLabelBox","_c","labelNextSx","restLabelNext","overflow","jsx","margin","transform","position","zIndex","getLabelInteractiveStyle","defaultStyle","hoverStyle","getInteractiveStyle","SemanticVariant","iconProps","IconComponent","onClick","iconSx","restIconProps","VariantIconComponent","useMemo","CircleExclamationIcon","CircleInformationIcon","SemanticIcon","useTheme","_jsxs","jsxs","gap","border","borderColor","transition","getFocusRingStyle","StatusVariant","labelPlacement","dotProps","dotSx","restDot","flexDirection","start","top","bottom","disclaimer1","disabled","tabIndex","width","height","CO2Variant","size","colorMap","B","C","D","E","F","G","H","getColor","_variant","component","boxSizing","xs","xl","content","borderStyle","borderWidth","lg","Label","props","LabelComponent","LabelFeature","LabelStatus","LabelCO2","LabelPromotional","LabelGeneral"],"mappings":"sTAuEA,MAAMA,EAAoB,CACxBC,QAAS,cACTC,WAAY,SACZC,eAAgB,aAChBC,SAAU,SACVC,WAAY,IAEZC,SAAU,OACVC,WAAY,OACZC,cAAe,MACfC,cAAe,YACfC,WAAY,MACZC,WAAY,SACZC,cAAe,sBAGXC,EAA8CC,EAAUA,YAAC,CAACC,EAA2CC,KAA3C,IAAEC,KAAMC,EAACC,MAAEA,EAAKC,SAAEA,EAAQC,GAAEA,GAAaN,EAANO,EAAIC,EAAAA,OAAAR,EAAvC,kCAAmD,OACjHS,EAAAA,IAACC,EA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