@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.js","sources":["../../../../../src/organisms/notification/Notification.tsx"],"sourcesContent":[null],"names":["IconBox","styled","Box","theme","display","justifyContent","alignItems","borderRadius","width","height","background","palette","onSurface","os200","flexShrink","props","useTheme","_jsxs","jsxs","sx","color","surface","primary","os0","padding","flexDirection","gap","position","children","icon","_jsx","jsx","sm","xs","overflow","img","objectFit","maxWidth","isNew","Indicator","whiteSpace","textOverflow","flexGrow","minWidth","Typography","variant","headline","description","WebkitLineClamp","WebkitBoxOrient","footer","os600","buttons","Stack","direction","spacing","onDismiss","IconButton","onClick","size","right","top","Icon","fontSize","className","name"],"mappings":"oOAmBa,MA0GPA,EAAUC,EAAAA,OAAOC,EAAAA,IAAPD,EAAY,EAAGE,YAAa,CAC1CC,QAAS,OACTC,eAAgB,SAChBC,WAAY,SACZC,aAAc,MACdC,MAAO,OACPC,OAAQ,OACRC,WAAYP,EAAMQ,QAAQC,UAAUC,MACpCC,WAAY,2BAlH4CC,IACxD,MAAMZ,EAAQa,EAAAA,WAEd,OACEC,EAAAC,KAAChB,MAAG,CACFiB,GAAI,CACFT,WAA4B,SAAhBK,EAAMK,MAAmBjB,EAAMQ,QAAQU,QAAQC,QAAUnB,EAAMQ,QAAQC,UAAUW,IAC7FC,QAAS,YACTpB,QAAS,OACTqB,cAAe,MACfC,IAAK,OACLpB,WAAY,SACZqB,SAAU,YAEA,cAAA,eAEXC,SAAA,CAAAb,EAAMc,MACLC,EAACC,IAAA/B,EACC,CAAAmB,GAAI,CACFf,QAAS,CAAE4B,GAAI,OAAQC,GAAI,QAC3BC,SAAU,SACVC,IAAK,CAAE3B,MAAO,OAAQC,OAAQ,OAAQ2B,UAAW,UAClD,cACW,oBAAmBR,SAE9Bb,EAAMc,OAIXZ,EAACC,KAAAhB,MACC,CAAAiB,GAAI,CACFX,MAAO,OACP6B,SAAU,OACVH,SAAU,SACV9B,QAAS,OACTsB,IAAK,MACLD,cAAe,SAEfD,QAAS,OACVI,SAAA,CAEDX,EAAAA,KAACf,EAAGA,IAAA,CAACiB,GAAI,CAAEf,QAAS,OAAQE,WAAY,SAAUD,eAAgB,aAAcqB,IAAK,GAClFE,SAAA,CAAAb,EAAMuB,OAASR,MAACS,EAASA,UAAA,CAACnB,MAAM,YACjCU,MAAC5B,EAAGA,IAAA,CACFiB,GAAI,CACFqB,WAAY,SACZN,SAAU,SACVO,aAAc,WACdC,SAAU,IACVC,SAAU,KACXf,SAEDE,EAACC,IAAAa,aAAW,CAAAC,QAAQ,cAAa,cAAa,wBAAuBjB,SAClEb,EAAM+B,gBAIbhB,EAAAC,IAAC7B,EAAGA,IAAA,CAAA,cAAa,2BACd0B,SAA6B,iBAAtBb,EAAMgC,YACZjB,EAAAC,IAACa,EAAUA,WAAA,CACTzB,GAAI,CACFe,SAAU,SACVO,aAAc,WACdrC,QAAS,cACT4C,gBAAiB,IACjBC,gBAAiB,YAEnBJ,QAAQ,
|
|
1
|
+
{"version":3,"file":"Notification.js","sources":["../../../../../src/organisms/notification/Notification.tsx"],"sourcesContent":[null],"names":["IconBox","styled","Box","theme","display","justifyContent","alignItems","borderRadius","width","height","background","palette","onSurface","os200","flexShrink","props","useTheme","_jsxs","jsxs","sx","color","surface","primary","os0","padding","flexDirection","gap","position","children","icon","_jsx","jsx","sm","xs","overflow","img","objectFit","maxWidth","isNew","Indicator","whiteSpace","textOverflow","flexGrow","minWidth","Typography","variant","headline","description","WebkitLineClamp","WebkitBoxOrient","footer","os600","buttons","Stack","direction","spacing","onDismiss","IconButton","onClick","size","right","top","Icon","fontSize","className","name"],"mappings":"oOAmBa,MA0GPA,EAAUC,EAAAA,OAAOC,EAAAA,IAAPD,EAAY,EAAGE,YAAa,CAC1CC,QAAS,OACTC,eAAgB,SAChBC,WAAY,SACZC,aAAc,MACdC,MAAO,OACPC,OAAQ,OACRC,WAAYP,EAAMQ,QAAQC,UAAUC,MACpCC,WAAY,2BAlH4CC,IACxD,MAAMZ,EAAQa,EAAAA,WAEd,OACEC,EAAAC,KAAChB,MAAG,CACFiB,GAAI,CACFT,WAA4B,SAAhBK,EAAMK,MAAmBjB,EAAMQ,QAAQU,QAAQC,QAAUnB,EAAMQ,QAAQC,UAAUW,IAC7FC,QAAS,YACTpB,Q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UAAU,MAAMC,QAAS,EAAC,cAAc,uBAC5C3B,SAAAb,EAAMqC,aAKZrC,EAAMyC,WACL1B,EAAAA,IAAC2B,EAAAA,yBACY,uBACXC,QAAS3C,EAAMyC,UACfG,KAAK,QACLxC,GAAI,CACFQ,SAAU,WACViC,MAAO,MACPC,IAAK,OAEK,cAAA,gCAEZ/B,EAAAA,IAACgC,EAAAA,MAAKC,SAAS,QAAQC,UAAU,UAAUC,KAAK,cAGhD"}
|
package/cjs/utils/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useElementScrollable';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* - {boolean} isScrollable - A boolean indicating if the element is scrollable.
|
|
7
7
|
* - {Function} elementRef - A callback ref function to be assigned to the element being monitored.
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export declare function useElementScrollable(axis?: 'x' | 'y'): {
|
|
10
10
|
isScrollable: boolean;
|
|
11
11
|
elementRef: (element: HTMLElement) => void;
|
|
12
12
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";var e=require("react");exports.useElementScrollable=function(t="y"){const[s,l]=e.useState(!1);return{isScrollable:s,elementRef:e.useCallback((e=>{const s=new ResizeObserver((()=>{l("y"===t?e.offsetHeight<e.scrollHeight:e.offsetWidth<e.scrollWidth)}));null!==e?s.observe(e):s.disconnect()}),[])}};
|
|
2
2
|
//# sourceMappingURL=useElementScrollable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useElementScrollable.js","sources":["../../../../../src/utils/useElementScrollable/useElementScrollable.ts"],"sourcesContent":[null],"names":["axis","isScrollable","setIsScrollable","useState","elementRef","useCallback","element","resizeObserver","ResizeObserver","offsetHeight","scrollHeight","offsetWidth","scrollWidth","observe","disconnect"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useElementScrollable.js","sources":["../../../../../src/utils/useElementScrollable/useElementScrollable.ts"],"sourcesContent":[null],"names":["axis","isScrollable","setIsScrollable","useState","elementRef","useCallback","element","resizeObserver","ResizeObserver","offsetHeight","scrollHeight","offsetWidth","scrollWidth","observe","disconnect"],"mappings":"iEAUgB,SAAqBA,EAAkB,KACrD,MAAOC,EAAcC,GAAmBC,EAAAA,UAAkB,GAiB1D,MAAO,CAAEF,eAAcG,WAdJC,eAAaC,IAC9B,MAAMC,EAAiB,IAAIC,gBAAe,KACxCN,EACW,MAATF,EAAeM,EAAQG,aAAeH,EAAQI,aAAeJ,EAAQK,YAAcL,EAAQM,YAC5F,IAGa,OAAZN,EACFC,EAAeM,QAAQP,GAEvBC,EAAeO,eAEhB,IAGL"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as t}from"tslib";import{jsx as i}from"react/jsx-runtime";import{useTheme as s,Alert as a}from"@mui/material";const e=e=>{var{type:r,actions:o,severity:c,action:n,sx:p,width:y}=e,g=t(e,["type","actions","severity","action","sx","width"]);const m=s();return i(a,Object.assign({severity:c||r,action:o||n,sx:Object.assign(Object.assign(Object.assign({},y?{width:y}:{}),{"& .MuiTypography-body1":Object.assign({},m.typography.
|
|
1
|
+
import{__rest as t}from"tslib";import{jsx as i}from"react/jsx-runtime";import{useTheme as s,Alert as a}from"@mui/material";const e=e=>{var{type:r,actions:o,severity:c,action:n,sx:p,width:y}=e,g=t(e,["type","actions","severity","action","sx","width"]);const m=s();return i(a,Object.assign({severity:c||r,action:o||n,sx:Object.assign(Object.assign(Object.assign({},y?{width:y}:{}),{"& .MuiTypography-body1":Object.assign({},m.typography.disclaimer1),"& .MuiTypography-caption1":Object.assign({},m.typography.caption2)}),p),"data-testid":"Alert"},g))};export{e as Alert};
|
|
2
2
|
//# sourceMappingURL=Alert.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.js","sources":["../../../src/components/alert/Alert.tsx"],"sourcesContent":[null],"names":["Alert","_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":["Alert","_a","type","actions","severity","action","sx","width","rest","__rest","theme","useTheme","_jsx","MuiAlert","Object","assign","typography","disclaimer1","caption2"],"mappings":"2HAyBa,MAAAA,EAA+BC,IAAA,IAAAC,KAAEA,EAAIC,QAAEA,EAAOC,SAAEA,EAAQC,OAAEA,EAAMC,GAAEA,EAAEC,MAAEA,GAAgBN,EAANO,EAAIC,EAAAR,EAArD,qDAC1C,MAAMS,EAAQC,IAEd,OACEC,EAACC,EAAQC,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
|
-
import{__rest as e}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useTheme as
|
|
1
|
+
import{__rest as e}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{forwardRef as r}from"react";import{useTheme as s,SwipeableDrawer as n,Box as i,Typography as a,IconButton as l}from"@mui/material";import{CloseIcon as p}from"../icon/stroke/CloseIcon.js";import{useElementScrollable as c}from"../../utils/useElementScrollable/useElementScrollable.js";const d=r(((r,d)=>{var{children:m,open:x,setOpen:b,puller:h,closeButton:u,closeButtonProps:f,closeButtonIconProps:g,CloseButtonIconComponent:j,footerSlot:B,title:S,titleProps:O={},headerWrapper:C,contentWrapper:P,footerWrapper:w,maxHeight:y=60}=r,I=e(r,["children","open","setOpen","puller","closeButton","closeButtonProps","closeButtonIconProps","CloseButtonIconComponent","footerSlot","title","titleProps","headerWrapper","contentWrapper","footerWrapper","maxHeight"]);const W=C||{},{sx:R}=W,k=e(W,["sx"]),v=P||{},{sx:T}=v,H=e(v,["sx"]),z=w||{},{sx:E}=z,M=e(z,["sx"]),D=g||{},{sx:L}=D,$=e(D,["sx"]),q=s(),A=j||p,{isScrollable:F,elementRef:G}=c("y");return t(n,Object.assign({dir:q.direction,anchor:"bottom",PaperProps:{sx:{borderTopLeftRadius:"16px",borderTopRightRadius:"16px",maxHeight:`${y}%`}},open:x,onClose:()=>b(!1),onOpen:()=>b(!0),disableSwipeToOpen:!0,ModalProps:{keepMounted:!0},"data-testid":"BottomSheet",ref:d},I,{children:[(S||u||h)&&t(i,Object.assign({sx:Object.assign({px:2},R),"data-testid":"BottomSheet-header"},k,{children:[h&&o(i,{sx:{position:"relative",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"},children:o(i,{"data-testid":"BottomSheet-puller",sx:{width:"28px",height:"4px",backgroundColor:"onSurface.os500",mt:1.5,mb:2.25,borderRadius:8}})}),(S||u&&!h)&&t(i,{sx:{display:"flex",justifyContent:S?"space-between":"flex-end",gap:1,pb:2,pt:h?0:2},children:[S&&o(a,Object.assign({"data-testid":"BottomSheet-title",variant:"h4"},O,{children:S})),u&&!h&&o(l,Object.assign({"data-testid":"BottomSheet-closeButton",size:"medium",onClick:()=>b(!1),"aria-label":"Close bottom sheet"},f,{children:o(A,Object.assign({color:"action",sx:Object.assign({fontSize:"18px"},L)},$))}))]})]})),o(i,Object.assign({"data-testid":"BottomSheet-content",ref:G,sx:Object.assign({overflow:"auto",borderTop:F?1:0,borderColor:"surface.secondary",p:2},T)},H,{children:m})),B&&o(i,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"},E)},M,{children:B}))]}))}));export{d as BottomSheet};
|
|
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","IconButton","size","onClick","color","fontSize","overflow","borderTop","borderColor","p","boxShadow"],"mappings":"
|
|
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","color","fontSize","overflow","borderTop","borderColor","p","boxShadow"],"mappings":"mXA4Ea,MAAAA,EAA0CC,GACrD,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,IAAEhB,EACXiB,EAAIC,EAAAlB,EAhBT,0NAoBA,MAAMmB,EAAkCN,GAAiB,IAAjDO,GAAIC,KAAaC,EAAnBJ,EAAAC,EAAA,CAAA,OACAI,EAAoCT,GAAkB,IAApDM,GAAII,KAAcC,EAApBP,EAAAK,EAAA,CAAA,OACAG,EAAkCX,GAAiB,IAAjDK,GAAIO,KAAaC,EAAnBV,EAAAQ,EAAA,CAAA,OACAG,EAAoDrB,GAAwB,IAA1EY,GAAIU,KAAsBC,EAA5Bb,EAAAW,EAAA,CAAA,OACAG,EAAQC,IACRC,EAA6BzB,GAA4B0B,GAEzDC,aAAEA,EAAYC,WAAEA,GAAeC,EAAqB,KAE1D,OACEC,EAACC,EAAeC,OAAAC,OAAA,CACdC,IAAKX,EAAMY,UACXC,OAAO,SACPC,WAAY,CACV1B,GAAI,CACF2B,oBAAqB,OACrBC,qBAAsB,OACtBhC,UAAW,GAAGA,OAGlBb,KAAMA,EACN8C,QAAS,IAAM7C,GAAQ,GACvB8C,OAAQ,IAAM9C,GAAQ,GACtB+C,oBACA,EAA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xE,EAAa,kCAAoC,QACzDiB,IAEDC,YAEHlB,QAGW"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useState as e,useEffect as l,useLayoutEffect as n,useRef as t}from"react";import{useSwiper as
|
|
1
|
+
import{useState as e,useEffect as l,useLayoutEffect as n,useRef as t}from"react";import{useSwiper as u}from"swiper/react";function o(l){const[n,t]=e(null);return i(n,l),[n,t]}function r(e){const l=u();return i(l,e),l}function i(t,u){const[,o]=e({});l((()=>{t&&(null!=u?u:["slideChange","afterInit","reachBeginning","reachEnd","autoplayStart","autoplayStop"]).forEach((e=>{t.on(e,(()=>{o({})}))}))}),[t]),n((()=>{o({})}),[])}function s(n){const[u,o]=e(null),r=t(null),[i,s]=e(!1);return l((()=>{var e,l,t,s,d,a,c;return"reset"===u?(null===(e=null==n?void 0:n.el)||void 0===e||e.classList.remove("peek-prev"),null===(l=null==n?void 0:n.el)||void 0===l||l.classList.remove("peek-next"),r.current=setTimeout((()=>{o(null)}),+((null==n?void 0:n.el.getAttribute("data-peekspeed"))||150))):u?i||(null==n||n.slideReset(0),"prev"===u?(null==n||n.slidePrev(0),null==n||n.slideNext(0)):(null==n||n.slideNext(0),null==n||n.slidePrev(0)),null===(t=null==n?void 0:n.el)||void 0===t||t.classList.add("peeking"),null===(s=null==n?void 0:n.el)||void 0===s||s.classList.add(`peek-${u}`)):(null===(d=null==n?void 0:n.el)||void 0===d||d.classList.remove("peeking"),null===(a=null==n?void 0:n.el)||void 0===a||a.classList.remove("peek-prev"),null===(c=null==n?void 0:n.el)||void 0===c||c.classList.remove("peek-next")),()=>{r.current&&clearTimeout(r.current)}}),[u]),l((()=>{null==n||n.on("touchStart",(()=>{o("reset"),s(!0)})),null==n||n.on("touchEnd",(()=>{o("reset"),s(!1)}))}),[!!n]),[u,o]}export{r as useCarousel,o as useCarouselInstance,s as useCarouselPeekEffect};
|
|
2
2
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sources":["../../../src/components/carousel/hooks.ts"],"sourcesContent":[null],"names":["useCarouselInstance","events","carousel","setCarousel","useState","useRefreshInstance","useCarousel","useSwiper","setRerender","useEffect","
|
|
1
|
+
{"version":3,"file":"hooks.js","sources":["../../../src/components/carousel/hooks.ts"],"sourcesContent":[null],"names":["useCarouselInstance","events","carousel","setCarousel","useState","useRefreshInstance","useCarousel","useSwiper","setRerender","useEffect","forEach","evt","on","useLayoutEffect","useCarouselPeekEffect","peek","setPeek","peekTimeout","useRef","disabled","setDisabled","_a","el","classList","remove","_b","current","setTimeout","getAttribute","slideReset","slidePrev","slideNext","_c","add","_d","_e","_f","_g","clearTimeout"],"mappings":"0HAQM,SAAUA,EAAoBC,GAClC,MAAOC,EAAUC,GAAeC,EAAkC,MAGlE,OAFAC,EAAmBH,EAAUD,GAEtB,CAACC,EAAUC,EACpB,CAKM,SAAUG,EAAYL,GAC1B,MAAMC,EAAWK,IAGjB,OAFAF,EAAmBH,EAAUD,GAEtBC,CACT,CAMA,SAASG,EAAmBH,EAA4BD,GAEtD,OAASO,GAAeJ,EAAS,IACjCK,GAAU,KACJP,IAEDD,QAAAA,EAAU,CAAC,cAAe,YAAa,iBAAkB,WAAY,gBAAiB,iBAAiBS,SACrGC,IACCT,EAASU,GAAGD,GAAK,KACfH,EAAY,CAAA,EAAG,GACf,MAIP,CAACN,IAEJW,GAAgB,KACdL,EAAY,CAAA,EAAG,GACd,GACL,CAKM,SAAUM,EAAsBZ,GACpC,MAAOa,EAAMC,GAAWZ,EAA2C,MAC7Da,EAAcC,EAA8B,OAC3CC,EAAUC,GAAehB,GAAkB,GAsDlD,OApDAK,GAAU,uBA8BR,MA7Ba,UAATM,GACY,QAAdM,EAAAnB,aAAQ,EAARA,EAAUoB,UAAI,IAAAD,GAAAA,EAAAE,UAAUC,OAAO,aACjB,QAAdC,EAAAvB,aAAQ,EAARA,EAAUoB,UAAI,IAAAG,GAAAA,EAAAF,UAAUC,OAAO,aAC/BP,EAAYS,QAAUC,YACpB,KACEX,EAAQ,KAAK,MAEbd,aAAA,EAAAA,EAAUoB,GAAGM,aAAa,oBAAqB,OAE1Cb,EACJI,IAEHjB,SAAAA,EAAU2B,WAAW,GACR,SAATd,GACFb,SAAAA,EAAU4B,UAAU,GACpB5B,SAAAA,EAAU6B,UAAU,KAEpB7B,SAAAA,EAAU6B,UAAU,GACpB7B,SAAAA,EAAU4B,UAAU,IAER,QAAdE,EAAA9B,aAAQ,EAARA,EAAUoB,UAAI,IAAAU,GAAAA,EAAAT,UAAUU,IAAI,WAChB,QAAZC,EAAAhC,aAAA,EAAAA,EAAUoB,UAAE,IAAAY,GAAAA,EAAEX,UAAUU,IAAI,QAAQlB,OAGxB,QAAdoB,EAAAjC,aAAQ,EAARA,EAAUoB,UAAI,IAAAa,GAAAA,EAAAZ,UAAUC,OAAO,WACjB,QAAdY,EAAAlC,aAAQ,EAARA,EAAUoB,UAAI,IAAAc,GAAAA,EAAAb,UAAUC,OAAO,aACjB,QAAda,EAAAnC,aAAQ,EAARA,EAAUoB,UAAI,IAAAe,GAAAA,EAAAd,UAAUC,OAAO,cAG1B,KACDP,EAAYS,SACdY,aAAarB,EAAYS,SAE5B,GACA,CAACX,IAKJN,GAAU,KAERP,SAAAA,EAAUU,GAAG,cAAc,KACzBI,EAAQ,SACRI,GAAY,EAAK,IAEnBlB,SAAAA,EAAUU,GAAG,YAAY,KACvBI,EAAQ,SACRI,GAAY,EAAM,GAClB,GACD,GAAGlB,IAEC,CAACa,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
|
-
import{__rest as
|
|
1
|
+
import{__rest as o}from"tslib";import{jsx as r,jsxs as s}from"react/jsx-runtime";import{forwardRef as e,useMemo as i,useState as n,useRef as l,useEffect as t}from"react";import{Box as a,Button as c,Slider as d}from"@mui/material";import{useCarousel as u}from"./hooks.js";import{getInteractiveStyle as p}from"../../materialui/button/interactive.js";import{SliderContainer as g}from"../../materialui/slider/sliderContainer.js";const x=e(((s,e)=>{var{carousel:n,position:l,variant:t,sx:a}=s,c=o(s,["carousel","position","variant","sx"]);const d=u(),p=n||d,g=i((()=>{switch(t){case"scrollbar":return f;case"slider":case"progress":return b;case"fraction":return m;case"lines":return v;default:return h}}),[t]),x=i((()=>"inside"===l?Object.assign({position:"absolute",zIndex:"90",bottom:"0",left:"0",right:"0"},a):a),[l,JSON.stringify(a)]);return r(g,Object.assign({carousel:p,sx:x,ref:e},c))})),h=e(((s,e)=>{var{carousel:i,dotProps:n,sx:l}=s,t=o(s,["carousel","dotProps","sx"]);const c=n||{},{sx:d}=c,u=o(c,["sx"]);return r(a,Object.assign({sx:Object.assign({px:2,height:"40px",display:"flex",alignItems:"center",justifyContent:"center",gap:1,pointerEvents:"none"},l),ref:e},t,{children:[...Array((null==i?void 0:i.slides.length)||0)].map(((o,s)=>r(a,Object.assign({className:!(null==i?void 0:i.originalParams.loop)&&(null==i?void 0:i.isEnd)&&s===((null==i?void 0:i.slides.length)||0)-1?"active":(null==i?void 0:i.isEnd)&&!i.originalParams.loop||s!==(null==i?void 0:i.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"}},d)},u),s)))}))})),m=e(((e,i)=>{var{carousel:n,buttonProps:l,sx:t}=e,d=o(e,["carousel","buttonProps","sx"]);const u=l||{},{sx:g}=u,x=o(u,["sx"]);return r(a,Object.assign({sx:Object.assign({display:"flex",alignItems:"center",justifyContent:"center",p:2},t),ref:i},d,{children:r(c,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"},p({backgroundColor:"transparent.backdrop"},{backgroundColor:"onSurface.os100"})),g),onClick:()=>(null==n?void 0:n.isEnd)&&!n.originalParams.loop?null==n?void 0:n.slideTo(0):null==n?void 0:n.slideNext()},x,{children:s(a,{component:"span",children:[r(a,{component:"span",sx:{fontWeight:"700",color:"onSurface.os900"},children:`${((null==n?void 0:n.realIndex)||0)+1}`}),r(a,{component:"span",sx:{color:"onSurface.os700",fontWeight:"400",mx:.5},children:" / "}),r(a,{component:"span",sx:{color:"onSurface.os700",fontWeight:"300"},children:`${(null==n?void 0:n.slides.length)||0}`})]})}))}))})),v=e(((e,i)=>{var{carousel:n,sx:l,linesProps:t,lineProgress:d,lineProgressProps:u}=e,g=o(e,["carousel","sx","linesProps","lineProgress","lineProgressProps"]);const x=t||{},{sx:h}=x,m=o(x,["sx"]),v=u||{},{sx:b}=v,f=o(v,["sx"]);return r(a,Object.assign({sx:Object.assign({display:"flex",alignItems:"center",justifyContent:{xs:"stretch",md:"center"},flexGrow:{xs:"1",md:0},gap:1,p:2},l),ref:i},g,{children:[...Array((null==n?void 0:n.slides.length)||0)].map(((o,e)=>{const i=!(null==n?void 0:n.originalParams.loop)&&(null==n?void 0:n.isEnd)&&e===((null==n?void 0:n.slides.length)||0)-1||(!(null==n?void 0:n.isEnd)||n.originalParams.loop)&&e===(null==n?void 0:n.realIndex),l=e<=((null==n?void 0:n.realIndex)||0);return s(c,Object.assign({color:"inherit",className:i?"active":void 0,sx:Object.assign(Object.assign({p:0,minHeight:"0",height:i||l?"8px":"4px",borderRadius:i||l?"4px":"2px",width:{xs:"100%",md:"56px"},justifyContent:"flex-start"},p({backgroundColor:"surface.primary","& .progress-line":{backgroundColor:"brand.secondary"}},{backgroundColor:"surface.secondary","& .progress-line":{backgroundColor:"brandHover.secondary"}})),h),"aria-controls":"carousel",onClick:()=>null==n?void 0:n[n.originalParams.loop?"slideToLoop":"slideTo"](e)},m,{children:[r(a,{sx:{position:"absolute",top:"50%",left:"0",right:"0",height:"24px",transform:"translateY(-50%)",pointerEvents:"auto"}}),r(a,{sx:{borderRadius:"4px",height:"100%",width:"100%",overflow:"hidden"},children:r(a,Object.assign({className:"progress-line",role:i?"progress":void 0,"aria-valuenow":i?d:void 0,"aria-valuemin":0,"aria-valuemax":100,sx:Object.assign({opacity:void 0!==d||l?"1":"0",width:"100%",backgroundColor:"brand.secondary",height:"100%",transformOrigin:"left",transform:`scaleX(${void 0!==d&&i?d/100:l?1:0})`,transition:(void 0!==d?"transform 300ms ease-in-out, ":"")+"opacity 300ms ease-out, background-color 300ms ease-out"},b)},f))})]}),e)}))}))})),b=e(((s,e)=>{var i,{carousel:c,sliderProps:u,sx:p,progressProps:g}=s,x=o(s,["carousel","sliderProps","sx","progressProps"]);const h=u||{},{sx:m}=h,v=o(h,["sx"]),[b,f]=n(Math.round(100*((null==c?void 0:c.progress)||0))),j=l(!1),[,O]=n({});return t((()=>{j.current||f(Math.round(100*((null==c?void 0:c.progress)||0)))}),[null==c?void 0:c.progress]),t((()=>{if(c){const o=()=>{j.current||O({})};return c.on("sliderMove",o),()=>{c.off("sliderMove",o)}}}),[c]),r(a,Object.assign({sx:Object.assign({my:2},p),ref:e},x,{children:r(d,Object.assign({value:b,min:0,max:100,onChange:(o,r)=>{j.current=!0,null==c||c.setProgress(r/100,150),f(r)},onChangeCommitted:()=>{null==c||c.slideToClosest(300),j.current=!1},sx:Object.assign({display:"block",height:"4px",".MuiSlider-rail":{color:"surface.primary"},".MuiSlider-track":{color:"onSurface.os500",transitionDuration:`${null!==(i=null==c?void 0:c.originalParams.speed)&&void 0!==i?i:300}ms`},".MuiSlider-thumb":{display:"none"}},m),"aria-controls":"carousel"},v))}))})),f=e(((s,e)=>{var l,a,{carousel:c,sliderProps:d}=s,u=o(s,["carousel","sliderProps"]);const p=d||{},{sx:x}=p,h=o(p,["sx"]),[m,v]=n(!1),[,f]=n({});t((()=>{if(c){const o=()=>v(!0),r=()=>v(!1),s=()=>f({});return c.on("touchStart",o),c.on("touchEnd",r),c.on("resize",s),()=>{c.off("touchStart",o),c.off("touchEnd",r),c.off("resize",s)}}}),[c]);const j=i((()=>{var o,r;if((null===(o=null==c?void 0:c.wrapperEl)||void 0===o?void 0:o.scrollWidth)&&(null==c?void 0:c.width)){const o=Math.ceil((null==c?void 0:c.width)**2/(null===(r=null==c?void 0:c.wrapperEl)||void 0===r?void 0:r.scrollWidth));return Math.max(o,40)}return 40}),[null===(l=null==c?void 0:c.wrapperEl)||void 0===l?void 0:l.scrollWidth,null==c?void 0:c.width]);return r(b,Object.assign({ref:e,carousel:c,component:g,thumbSize:j,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:`${j}px`,height:"4px",border:"none",backgroundColor:"onSurface.os500"},!m&&{transition:`left ${null!==(a=null==c?void 0:c.originalParams.speed)&&void 0!==a?a:300}ms ease-out`}),{"&.Mui-focusVisible":{boxShadow:"none","&:before":{content:"none"}}})},x)},h)},u))}));export{x as CarouselPagination,h as DotsVariant,m as FractionVariant,v as LinesVariant,f as ScrollbarVariant,b as SliderVariant};
|
|
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","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","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":"yaA8Fa,MAAAA,EAAwDC,GACnE,CAACC,EAAmEC,KAAnE,IAAEC,SAAUC,EAAYC,SAAEA,EAAQC,QAAEA,EAASC,GAAIC,GAAgBP,EAANQ,EAAIC,EAAAT,EAA/D,wCACC,MAAMU,EAAeC,IACfT,EAAWC,GAAgBO,EAE3BE,EAAmBC,GAAQ,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,GAAoC,IAC5B,WAAbT,EAEAe,OAAAC,OAAA,CAAAhB,SAAU,WACViB,OAAQ,KACRC,OAAQ,IACRC,KAAM,IACNC,MAAO,KACJjB,GAGEA,GAER,CAACH,EAAUqB,KAAKC,UAAUnB,KAE7B,OAAOoB,EAACf,EAAgBO,OAAAC,OAAA,CAAClB,SAAUA,EAAUI,GAAIA,EAAIL,IAAKA,GAASO,GAAQ,IAOlEU,EAAqDnB,GAChE,CAACC,EAAqCC,SAArCC,SAAEA,EAAQ0B,SAAEA,EAAQtB,GAAEA,KAAOE,EAA7BC,EAAAT,EAAA,CAAA,WAAA,WAAA,OACC,MAAM6B,EAA4BD,GAAY,IAAtCtB,GAAIwB,KAAUC,EAAhBtB,EAAAoB,EAAA,CAAA,OAEN,OACEF,EAACK,E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nBzG,EAAA3B,aAAQ,EAARA,EAAUkI,iBAAS,IAAAvG,OAAA,EAAAA,EAAEwG,YAAanI,aAAQ,EAARA,EAAUoD,QAEhD,OACE3B,EAACZ,EAAaI,OAAAC,OAAA,CACZnB,IAAKA,EACLC,SAAUA,EACVqE,UAAWiE,EACXL,UAAWA,EACXpC,YAAW5E,OAAAC,OAAA,CAETqH,UAAY,EAEZC,kBAAmB,MACnBpI,GAAEa,OAAAC,OAAA,CACAe,QAAS,QACTD,OAAQ,MAER,oCAAqC,CACnCuC,MAAO,mBAET,mBACEtD,OAAAC,OAAAD,OAAAC,OAAA,CAAAe,QAAS,OACTmB,MAAO,GAAG6E,MACVjG,OAAQ,MACRyG,OAAQ,OACRnF,gBAAiB,oBAEZsE,GAAoB,CACvBrE,WAAY,QAAsC,QAA9BuB,EAAA9E,aAAQ,EAARA,EAAU8C,eAAe4E,aAAK,IAAA5C,EAAAA,EAAI,mBACtD,CAEF,qBAAsB,CACpB4D,UAAW,OACX,WAAY,CACVC,QAAS,YAIZ3C,IAEFC,IAED3F,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
|
-
import{jsx as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{IconButton as i}from"@mui/material";import{CloseIcon as r}from"../icon/stroke/CloseIcon.js";const e=e=>o(i,Object.assign({"aria-label":"Close dialog",size:"medium"},e,{children:o(r,{})}));export{e as CloseDialogButton};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/closeDialogButton/index.tsx"],"sourcesContent":[null],"names":["CloseDialogButton","props","_jsx","IconButton","Object","assign","size","children","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/closeDialogButton/index.tsx"],"sourcesContent":[null],"names":["CloseDialogButton","props","_jsx","IconButton","Object","assign","size","children","CloseIcon"],"mappings":"2IASa,MAAAA,EAAqBC,GAE9BC,EAACC,EAAsBC,OAAAC,OAAA,CAAA,aAAA,eAAeC,KAAK,UAAaL,EACtD,CAAAM,SAAAL,EAACM,EAAY,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>;
|
package/components/flag/flag.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import{forwardRef as t,useMemo as
|
|
1
|
+
import{__rest as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import{forwardRef as t,useMemo as i}from"react";import*as a from"country-flag-icons/react/3x2";import*as s from"country-flag-icons/react/1x1";import{Box as c}from"@mui/material";const o=t(((t,o)=>{var{flag:l,sx:n,width:d,size:m="small",variant:u="circle",disabled:f=!1}=t,b=r(t,["flag","sx","width","size","variant","disabled"]);const g=i((()=>{switch(m){case"small":return 24;case"medium":return 44;case"large":return 56;default:return null!=d?d:24}}),[m,d]);return e(c,Object.assign({"data-testid":"Flag",component:(["circle","square"].includes(u)?s:a)[l]||"div",sx:Object.assign(Object.assign(Object.assign({width:`${g}px`,flexShrink:"0",border:1,borderColor:"onSurface.os500"},["circle","square"].includes(u)&&Object.assign({height:`${g}px`},"circle"===u?{borderRadius:`${g}px`}:{})),f&&{userSelect:"none",borderColor:"disabled.tertiary",opacity:"0.65"}),n),ref:o},b))}));export{o as Flag};
|
|
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","Box","component","includes","SquareFlags","Flags","
|
|
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":"yPAkCa,MAAAA,EAA4BC,GACvC,CAACC,EAA+FC,SAA/FC,KAAEA,EAAIC,GAAEA,EAAIC,MAAOC,EAASC,KAAEA,EAAO,QAAOC,QAAEA,EAAU,SAAQC,SAAEA,GAAW,KAAUC,EAAvFC,EAAAV,EAAA,CAAA,OAAA,KAAA,QAAA,OAAA,UAAA,aAEC,MAAMI,EAAQO,GAAQ,KACpB,OAAQL,GACN,IAAK,QACH,OAAO,GACT,IAAK,SACH,OAAO,GACT,IAAK,QACH,OAAO,GACT,QACE,OAAOD,QAAAA,EAAa,MAEvB,CAACC,EAAMD,IAEV,OACEO,EAACC,EAAGC,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
|
-
import{__rest as e}from"tslib";import{jsx as r,jsxs as
|
|
1
|
+
import{__rest as e}from"tslib";import{jsx as r,jsxs as t}from"react/jsx-runtime";import{forwardRef as a,useMemo as s}from"react";import{Box as n,useTheme as o}from"@mui/material";import{CircleExclamationIcon as i}from"../icon/stroke/CircleExclamationIcon.js";import{CircleInformationIcon as c}from"../icon/stroke/CircleInformationIcon.js";import{getFocusRingStyle as l}from"../focusring/focusring.js";import{getInteractiveStyle as p}from"../../materialui/button/interactive.js";const b={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"},d=a(((t,a)=>{var{type:s,label:o,children:i,sx:c}=t,l=e(t,["type","label","children","sx"]);return r(n,Object.assign({ref:a,"data-testid":"Label-general",sx:Object.assign(Object.assign(Object.assign({},b),{color:e=>"dark"===e.palette.mode?"onSurface.os200":"onSurface.os600"}),c)},l,{children:o||i}))})),x=a(((t,a)=>{var{type:s,label:o,children:i,sx:c}=t,l=e(t,["type","label","children","sx"]);return r(n,Object.assign({ref:a,"data-testid":"Label-simple",sx:e=>Object.assign(Object.assign(Object.assign(Object.assign({},b),e.typography.list),{backgroundColor:"transparent.primary",color:"text.primary",p:"2px 10px"}),c)},l,{children:o||i}))})),g=a(((t,a)=>{var{type:s,label:o,children:i,variant:c="primary",sx:l}=t,p=e(t,["type","label","children","variant","sx"]);return r(n,Object.assign({ref:a,"data-testid":`Label-feature${c}`,sx:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b),{color:"onSurface.os0",backgroundColor:"brand.tertiary",padding:"4px 8px 4px 10px",borderRadius:"2px"}),"neutral"===c&&{backgroundColor:"onSurface.os600"}),"secondary"===c&&{backgroundColor:"brand.secondary",color:"brand.tertiary"}),l)},p,{children:o||i}))})),u=a(((t,a)=>{var{type:s,label:o,children:i,variant:c="large",sx:l,labelBoxProps:p,labelNextProps:d}=t,x=e(t,["type","label","children","variant","sx","labelBoxProps","labelNextProps"]);const g=p||{},{sx:u}=g,j=e(g,["sx"]),O=d||{},{sx:m}=O,f=e(O,["sx"]);return r(n,Object.assign({ref:a,"data-testid":`Label-promotional${c}`,sx:Object.assign(Object.assign(Object.assign({},b),{color:"brand.secondary",overflow:"hidden",borderRadius:"2px"}),l)},x,{children:r(n,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(n,Object.assign({sx:Object.assign(Object.assign(Object.assign({fontSize:"14px",padding:"10px 14px 10px 20px"},"small"===c&&{fontSize:"12px",padding:"8px 10px 8px 16px"}),{letterSpacing:"1px",textTransform:"uppercase",lineHeight:"12px",fontWeight:"bold",transform:"skew(21deg, 0deg)"}),m)},f,{children:o||i}))}))}))}));function j(e,r){return Object.assign(Object.assign({},e),{"&.MuiButtonBase-root":Object.assign({},p(e,r))})}const O=a(((a,p)=>{var{type:d,label:x,children:g,variant:u="positive",sx:O,iconProps:m,IconComponent:f,onClick:h}=a,y=e(a,["type","label","children","variant","sx","iconProps","IconComponent","onClick"]);const C=m||{},{sx:k}=C,v=e(C,["sx"]),w=s((()=>{switch(u){case"alert":case"warning":return i;default:return c}}),[u]),S=f||w,P=o();return t(n,Object.assign({ref:p,"data-testid":`Label-semantic${u}`,sx:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b),{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({},l(P,!0,1))}),j({color:"brand.primary",backgroundColor:"transparent.transparent"},{color:"brandHover.primary",backgroundColor:"transparent.primary"})),"alert"===u&&Object.assign({},j({color:"error.main",backgroundColor:"transparent.transparent"},{color:"error.dark",backgroundColor:"transparent.primary"}))),"warning"===u&&Object.assign({},j({color:"warning.main",backgroundColor:"transparent.transparent"},{color:"warning.dark",backgroundColor:"transparent.primary"}))),"info"===u&&Object.assign({},j({color:"info.main",backgroundColor:"transparent.transparent"},{color:"info.dark",backgroundColor:"transparent.primary"}))),O),onClick:h},y,{children:[r(S,Object.assign({"data-testid":`icon-${u}`,sx:Object.assign({fontSize:"18px"},k)},v)),x||g]}))})),m=a(((a,s)=>{var{type:o,label:i,children:c,variant:l="positive",labelPlacement:p="end",dotProps:d,sx:x}=a,g=e(a,["type","label","children","variant","labelPlacement","dotProps","sx"]);const u=d||{},{sx:j}=u,O=e(u,["sx"]);return t(n,Object.assign({ref:s,"data-testid":`Label-status${l}`,sx:e=>{var r;return Object.assign(Object.assign(Object.assign(Object.assign({},b),{color:"text.primary",flexDirection:null!==(r={start:"row-reverse",top:"column-reverse",bottom:"column"}[p])&&void 0!==r?r:"row",gap:1}),"indicator"===o&&e.typography.disclaimer1),x)}},"disabled"===l&&{disabled:!0,tabIndex:-1},g,{children:[r(n,Object.assign({sx:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({width:"10px",height:"10px"},"indicator"===o&&{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"}),j)},O)),i||c]}))})),f=a(((a,o)=>{var{type:i,label:c,children:l,variant:p="A+++",size:d="large",sx:x,labelBoxProps:g,labelNextProps:u}=a,j=e(a,["type","label","children","variant","size","sx","labelBoxProps","labelNextProps"]);const O=s((()=>({B:"#019A01",C:"#69CC00",D:"#FFCC01",E:"#F99601",F:"#FE6501",G:"#FF3100",H:"#2A78CD"})),[]),m=e=>O[e]||"#016703",f=g||{},{sx:h}=f,y=e(f,["sx"]),C=u||{},{sx:k}=C,v=e(C,["sx"]);return t(n,Object.assign({ref:o,"data-testid":`Label-CO2${p}`,sx:Object.assign(Object.assign({},b),x)},j,{children:[r(n,Object.assign({component:"span",sx:Object.assign(Object.assign(Object.assign({alignItems:"center",backgroundColor:m(p),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"===d&&{fontSize:{xs:"10px",xl:"12px"},height:{xs:"16px",xl:"18px"}}),{padding:"0 5px",position:"relative",letterSpacing:"1px"}),h)},y,{children:c||l||p})),r(n,Object.assign({sx:Object.assign(Object.assign({content:'""',display:"block",width:"0",height:"0",borderStyle:"solid",borderColor:`transparent transparent transparent ${m(p)}`,borderWidth:{xs:"10px 0 10px 7px",lg:"11px 0 11px 8px"}},"small"===d&&{borderWidth:{xs:"8px 0 8px 5px",lg:"9px 0 9px 7px"}}),k)},v))]}))})),h=a(((e,t)=>{const a=s((()=>{switch(e.type){case"simple":return x;case"feature":return g;case"promotional":return u;case"semantic":return O;case"status":case"indicator":return m;case"CO2":return f;default:return d}}),[e.type]);return r(a,Object.assign({component:"span"},e,{ref:t}))})),y=a(((e,t)=>r(h,Object.assign({},e,{type:"feature",ref:t})))),C=a(((e,t)=>r(h,Object.assign({},e,{type:"status",ref:t})))),k=a(((e,t)=>r(h,Object.assign({},e,{type:"CO2",ref:t})))),v=a(((e,t)=>r(h,Object.assign({},e,{type:"promotional",ref:t})))),w=a(((e,t)=>r(h,Object.assign({},e,{ref:t}))));export{h as Label,k as LabelCO2,y as LabelFeature,w as LabelGeneral,v as LabelPromotional,C as LabelStatus};
|
|
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","Box","Object","assign","color","
|
|
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","margin","transform","position","zIndex","getLabelInteractiveStyle","defaultStyle","hoverStyle","getInteractiveStyle","SemanticVariant","iconProps","IconComponent","onClick","iconSx","restIconProps","VariantIconComponent","useMemo","CircleExclamationIcon","CircleInformationIcon","SemanticIcon","useTheme","_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":"8dAuEA,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,GAAW,CAACC,EAA2CC,KAA3C,IAAEC,KAAMC,EAACC,MAAEA,EAAKC,SAAEA,EAAQC,GAAEA,GAAaN,EAANO,EAAIC,EAAAR,EAAvC,kCAAmD,OACjHS,EAACC,EAAGC,OA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