@alfalab/core-components-gallery 7.1.1 → 7.1.2-alfasans

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/components/bottom-button/index.css +5 -5
  2. package/components/bottom-button/index.module.css.js +1 -1
  3. package/components/buttons/index.css +5 -5
  4. package/components/buttons/index.module.css.js +1 -1
  5. package/components/header/index.css +1 -1
  6. package/components/header/index.module.css.js +1 -1
  7. package/components/header-info-block/index.css +4 -4
  8. package/components/header-info-block/index.module.css.js +1 -1
  9. package/components/header-mobile/index.css +6 -6
  10. package/components/header-mobile/index.module.css.js +1 -1
  11. package/components/image-preview/index.css +17 -17
  12. package/components/image-preview/index.module.css.js +1 -1
  13. package/components/image-viewer/component.d.ts +0 -1
  14. package/components/image-viewer/component.js +2 -4
  15. package/components/image-viewer/component.js.map +1 -1
  16. package/components/image-viewer/index.css +86 -25
  17. package/components/image-viewer/index.module.css.js +1 -1
  18. package/components/image-viewer/index.module.css.js.map +1 -1
  19. package/components/image-viewer/video/index.css +7 -7
  20. package/components/image-viewer/video/index.module.css.js +1 -1
  21. package/components/info-bar/index.css +3 -3
  22. package/components/info-bar/index.module.css.js +1 -1
  23. package/components/navigation-bar/index.css +8 -8
  24. package/components/navigation-bar/index.module.css.js +1 -1
  25. package/components/subtitles/index.css +3 -3
  26. package/components/subtitles/index.module.css.js +1 -1
  27. package/cssm/components/image-viewer/component.d.ts +0 -1
  28. package/cssm/components/image-viewer/component.js +2 -4
  29. package/cssm/components/image-viewer/component.js.map +1 -1
  30. package/cssm/components/image-viewer/index.module.css +61 -0
  31. package/esm/components/bottom-button/index.css +5 -5
  32. package/esm/components/bottom-button/index.module.css.js +1 -1
  33. package/esm/components/buttons/index.css +5 -5
  34. package/esm/components/buttons/index.module.css.js +1 -1
  35. package/esm/components/header/index.css +1 -1
  36. package/esm/components/header/index.module.css.js +1 -1
  37. package/esm/components/header-info-block/index.css +4 -4
  38. package/esm/components/header-info-block/index.module.css.js +1 -1
  39. package/esm/components/header-mobile/index.css +6 -6
  40. package/esm/components/header-mobile/index.module.css.js +1 -1
  41. package/esm/components/image-preview/index.css +17 -17
  42. package/esm/components/image-preview/index.module.css.js +1 -1
  43. package/esm/components/image-viewer/component.d.ts +0 -1
  44. package/esm/components/image-viewer/component.js +2 -3
  45. package/esm/components/image-viewer/component.js.map +1 -1
  46. package/esm/components/image-viewer/index.css +86 -25
  47. package/esm/components/image-viewer/index.module.css.js +1 -1
  48. package/esm/components/image-viewer/index.module.css.js.map +1 -1
  49. package/esm/components/image-viewer/video/index.css +7 -7
  50. package/esm/components/image-viewer/video/index.module.css.js +1 -1
  51. package/esm/components/info-bar/index.css +3 -3
  52. package/esm/components/info-bar/index.module.css.js +1 -1
  53. package/esm/components/navigation-bar/index.css +8 -8
  54. package/esm/components/navigation-bar/index.module.css.js +1 -1
  55. package/esm/components/subtitles/index.css +3 -3
  56. package/esm/components/subtitles/index.module.css.js +1 -1
  57. package/esm/index.css +9 -9
  58. package/esm/index.module.css.js +1 -1
  59. package/index.css +9 -9
  60. package/index.module.css.js +1 -1
  61. package/modern/components/bottom-button/index.css +5 -5
  62. package/modern/components/bottom-button/index.module.css.js +1 -1
  63. package/modern/components/buttons/index.css +5 -5
  64. package/modern/components/buttons/index.module.css.js +1 -1
  65. package/modern/components/header/index.css +1 -1
  66. package/modern/components/header/index.module.css.js +1 -1
  67. package/modern/components/header-info-block/index.css +4 -4
  68. package/modern/components/header-info-block/index.module.css.js +1 -1
  69. package/modern/components/header-mobile/index.css +6 -6
  70. package/modern/components/header-mobile/index.module.css.js +1 -1
  71. package/modern/components/image-preview/index.css +17 -17
  72. package/modern/components/image-preview/index.module.css.js +1 -1
  73. package/modern/components/image-viewer/component.d.ts +0 -1
  74. package/modern/components/image-viewer/component.js +2 -3
  75. package/modern/components/image-viewer/component.js.map +1 -1
  76. package/modern/components/image-viewer/index.css +86 -25
  77. package/modern/components/image-viewer/index.module.css.js +1 -1
  78. package/modern/components/image-viewer/index.module.css.js.map +1 -1
  79. package/modern/components/image-viewer/video/index.css +7 -7
  80. package/modern/components/image-viewer/video/index.module.css.js +1 -1
  81. package/modern/components/info-bar/index.css +3 -3
  82. package/modern/components/info-bar/index.module.css.js +1 -1
  83. package/modern/components/navigation-bar/index.css +8 -8
  84. package/modern/components/navigation-bar/index.module.css.js +1 -1
  85. package/modern/components/subtitles/index.css +3 -3
  86. package/modern/components/subtitles/index.module.css.js +1 -1
  87. package/modern/index.css +9 -9
  88. package/modern/index.module.css.js +1 -1
  89. package/moderncssm/components/image-viewer/component.d.ts +0 -1
  90. package/moderncssm/components/image-viewer/component.js +2 -3
  91. package/moderncssm/components/image-viewer/component.js.map +1 -1
  92. package/moderncssm/components/image-viewer/index.module.css +61 -0
  93. package/package.json +12 -12
  94. package/src/components/image-viewer/component.tsx +4 -6
  95. package/src/components/image-viewer/index.module.css +63 -0
@@ -1,7 +1,7 @@
1
1
  import { __assign } from 'tslib';
2
2
  import React, { useContext, useCallback, useMemo } from 'react';
3
3
  import cn from 'classnames';
4
- import SwiperCore, { EffectFade, A11y, Controller } from 'swiper';
4
+ import { A11y, Controller } from 'swiper/modules';
5
5
  import { Swiper, SwiperSlide } from 'swiper/react';
6
6
  import { useFocus } from '@alfalab/hooks';
7
7
  import { ChevronBackHeavyMIcon } from '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
@@ -11,10 +11,8 @@ import { isVideo, getImageAlt, getImageKey } from '../../utils/utils.js';
11
11
  import { TestIds } from '../../utils/constants.js';
12
12
  import { useHandleImageViewer } from './hooks.js';
13
13
  import { Slide } from './slide.js';
14
- import 'swiper/swiper.min.css';
15
14
  import styles from './index.module.css.js';
16
15
 
17
- SwiperCore.use([EffectFade, A11y, Controller]);
18
16
  var ImageViewer = function () {
19
17
  var _a, _b, _c;
20
18
  var _d = useContext(GalleryContext), images = _d.images, imagesMeta = _d.imagesMeta, fullScreen = _d.fullScreen, currentSlideIndex = _d.currentSlideIndex, initialSlide = _d.initialSlide, setCurrentSlideIndex = _d.setCurrentSlideIndex, getSwiper = _d.getSwiper, setSwiper = _d.setSwiper, slidePrev = _d.slidePrev, slideNext = _d.slideNext, getCurrentImage = _d.getCurrentImage;
@@ -54,6 +52,7 @@ var ImageViewer = function () {
54
52
  _a[styles.mobile] = isMobile,
55
53
  _a[styles.mobileVideo] = isMobile && isVideo(currentImage === null || currentImage === void 0 ? void 0 : currentImage.src),
56
54
  _a)),
55
+ modules: [A11y, Controller],
57
56
  controller: { control: swiper },
58
57
  a11y: {
59
58
  slideRole: 'img',
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../src/components/image-viewer/component.tsx"],"sourcesContent":["import React, { type FC, type KeyboardEventHandler, useCallback, useContext, useMemo } from 'react';\nimport cn from 'classnames';\nimport SwiperCore, { A11y, Controller, EffectFade } from 'swiper';\nimport { Swiper, SwiperSlide } from 'swiper/react';\n\nimport { useFocus } from '@alfalab/hooks';\nimport { ChevronBackHeavyMIcon } from '@alfalab/icons-glyph/ChevronBackHeavyMIcon';\nimport { ChevronForwardHeavyMIcon } from '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';\n\nimport { GalleryContext } from '../../context';\nimport { getImageAlt, getImageKey, isVideo, TestIds } from '../../utils';\n\nimport { useHandleImageViewer } from './hooks';\nimport { Slide } from './slide';\n\nimport 'swiper/swiper.min.css';\nimport styles from './index.module.css';\n\nSwiperCore.use([EffectFade, A11y, Controller]);\n\nexport const ImageViewer: FC = () => {\n const {\n images,\n imagesMeta,\n fullScreen,\n currentSlideIndex,\n initialSlide,\n setCurrentSlideIndex,\n getSwiper,\n setSwiper,\n slidePrev,\n slideNext,\n getCurrentImage,\n } = useContext(GalleryContext);\n\n const { handleWrapperClick, isMobile, rightArrowRef, leftArrowRef } = useHandleImageViewer();\n\n const [leftArrowFocused] = useFocus(leftArrowRef, 'keyboard');\n const [rightArrowFocused] = useFocus(rightArrowRef, 'keyboard');\n\n const swiper = getSwiper();\n const currentImage = getCurrentImage();\n\n const handleSlideChange = useCallback(() => {\n setCurrentSlideIndex?.(swiper?.activeIndex ?? initialSlide);\n }, [setCurrentSlideIndex, swiper, initialSlide]);\n\n const handlePrevClick = () => {\n slidePrev();\n };\n\n const handleNextClick = () => {\n slideNext();\n };\n\n const handleArrowLeftKeyDown: KeyboardEventHandler = (event) => {\n if (event.key === 'Enter') {\n slidePrev();\n }\n };\n\n const handleArrowRightKeyDown: KeyboardEventHandler = (event) => {\n if (event.key === 'Enter') {\n slideNext();\n }\n };\n\n const swiperProps = useMemo<Swiper>(\n () => ({\n slidesPerView: 1,\n effect: 'slide',\n className: cn(styles.swiper, {\n [styles.hidden]: fullScreen && !isVideo(currentImage?.src),\n [styles.fullScreenVideo]: fullScreen && isVideo(currentImage?.src),\n [styles.mobile]: isMobile,\n [styles.mobileVideo]: isMobile && isVideo(currentImage?.src),\n }),\n controller: { control: swiper },\n a11y: {\n slideRole: 'img',\n },\n initialSlide,\n simulateTouch: false,\n zoom: { maxRatio: 4, minRatio: 1, toggle: true },\n onSwiper: setSwiper,\n onSlideChange: handleSlideChange,\n lazy: { loadPrevNext: true },\n }),\n [\n fullScreen,\n currentImage?.src,\n isMobile,\n swiper,\n initialSlide,\n setSwiper,\n handleSlideChange,\n ],\n );\n\n const showControls = !fullScreen && !isMobile && !!images.length;\n\n const swiperWidth = swiper?.width || 1;\n const swiperHeight = swiper?.height || swiper?.width || 1;\n\n const swiperAspectRatio = swiperWidth / swiperHeight;\n\n return (\n <div\n className={cn(styles.component, {\n [styles.mobile]: isMobile,\n [styles.mobileVideo]: isMobile && isVideo(currentImage?.src),\n })}\n aria-hidden={true}\n onClick={handleWrapperClick}\n >\n {showControls && (\n <div\n className={cn(styles.arrow, {\n [styles.focused]: leftArrowFocused,\n })}\n onClick={handlePrevClick}\n role='button'\n onKeyDown={handleArrowLeftKeyDown}\n tabIndex={0}\n ref={leftArrowRef}\n aria-label='Предыдущее изображение'\n data-test-id={TestIds.PREV_SLIDE_BUTTON}\n >\n <ChevronBackHeavyMIcon />\n </div>\n )}\n\n {fullScreen && !isVideo(currentImage?.src) && (\n <img\n src={currentImage?.src}\n alt={currentImage ? getImageAlt(currentImage, currentSlideIndex) : ''}\n className={styles.fullScreenImage}\n />\n )}\n\n <Swiper {...swiperProps}>\n {images.map((image, index) => {\n const meta = imagesMeta[index];\n\n const imageWidth = meta?.width || 1;\n const imageHeight = meta?.height || 1;\n\n const imageAspectRatio = imageWidth / imageHeight;\n\n const slideVisible = index === currentSlideIndex;\n\n return (\n <SwiperSlide\n key={getImageKey(image, index)}\n style={{\n pointerEvents: slideVisible ? 'auto' : 'none',\n transitionProperty: 'opacity',\n }}\n >\n {({ isActive }) => (\n <Slide\n isActive={isActive}\n containerAspectRatio={swiperAspectRatio}\n image={image}\n containerHeight={swiperHeight}\n meta={meta}\n index={index}\n imageAspectRatio={imageAspectRatio}\n slideVisible={slideVisible}\n />\n )}\n </SwiperSlide>\n );\n })}\n </Swiper>\n\n {showControls && (\n <div\n className={cn(styles.arrow, {\n [styles.focused]: rightArrowFocused,\n })}\n onClick={handleNextClick}\n role='button'\n onKeyDown={handleArrowRightKeyDown}\n tabIndex={0}\n ref={rightArrowRef}\n aria-label='Следующее изображение'\n data-test-id={TestIds.NEXT_SLIDE_BUTTON}\n >\n <ChevronForwardHeavyMIcon />\n </div>\n )}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAkBA,UAAU,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;AAEjC,IAAA,WAAW,GAAO,YAAA;;AACrB,IAAA,IAAA,KAYF,UAAU,CAAC,cAAc,CAAC,EAX1B,MAAM,GAAA,EAAA,CAAA,MAAA,EACN,UAAU,gBAAA,EACV,UAAU,gBAAA,EACV,iBAAiB,uBAAA,EACjB,YAAY,GAAA,EAAA,CAAA,YAAA,EACZ,oBAAoB,GAAA,EAAA,CAAA,oBAAA,EACpB,SAAS,GAAA,EA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AAG,EAAE,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,EAC9B,KAAK,EAAE;oBACH,aAAa,EAAE,YAAY,GAAG,MAAM,GAAG,MAAM;AAC7C,oBAAA,kBAAkB,EAAE,SAAS;AAChC,iBAAA,EAAA,EAEA,UAAC,EAAY,EAAA;AAAV,gBAAA,IAAA,QAAQ,GAAA,EAAA,CAAA,QAAA;AAAO,gBAAA,QACf,KAAC,CAAA,aAAA,CAAA,KAAK,EACF,EAAA,QAAQ,EAAE,QAAQ,EAClB,oBAAoB,EAAE,iBAAiB,EACvC,KAAK,EAAE,KAAK,EACZ,eAAe,EAAE,YAAY,EAC7B,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,YAAY,GAC5B;aACL,CACS;AAEtB,SAAC,CAAC,CACG;QAER,YAAY,KACT,KACI,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,GAAA,EAAA,GAAA,EAAA;AACtB,gBAAA,EAAA,CAAC,MAAM,CAAC,OAAO,CAAA,GAAG,iBAAiB;oBACrC,EACF,OAAO,EAAE,eAAe,EACxB,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,uBAAuB,EAClC,QAAQ,EAAE,CAAC,EACX,GAAG,EAAE,aAAa,gBACP,2HAAuB,EAAA,cAAA,EACpB,OAAO,CAAC,iBAAiB,EAAA;AAEvC,YAAA,KAAA,CAAA,aAAA,CAAC,wBAAwB,EAAG,IAAA,CAAA,CAC1B,CACT,CACC;AAEd;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../../src/components/image-viewer/component.tsx"],"sourcesContent":["import React, { type FC, type KeyboardEventHandler, useCallback, useContext, useMemo } from 'react';\nimport cn from 'classnames';\nimport { A11y, Controller } from 'swiper/modules';\nimport { Swiper, type SwiperProps, SwiperSlide } from 'swiper/react';\n\nimport { useFocus } from '@alfalab/hooks';\nimport { ChevronBackHeavyMIcon } from '@alfalab/icons-glyph/ChevronBackHeavyMIcon';\nimport { ChevronForwardHeavyMIcon } from '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';\n\nimport { GalleryContext } from '../../context';\nimport { getImageAlt, getImageKey, isVideo, TestIds } from '../../utils';\n\nimport { useHandleImageViewer } from './hooks';\nimport { Slide } from './slide';\n\nimport styles from './index.module.css';\n\nexport const ImageViewer: FC = () => {\n const {\n images,\n imagesMeta,\n fullScreen,\n currentSlideIndex,\n initialSlide,\n setCurrentSlideIndex,\n getSwiper,\n setSwiper,\n slidePrev,\n slideNext,\n getCurrentImage,\n } = useContext(GalleryContext);\n\n const { handleWrapperClick, isMobile, rightArrowRef, leftArrowRef } = useHandleImageViewer();\n\n const [leftArrowFocused] = useFocus(leftArrowRef, 'keyboard');\n const [rightArrowFocused] = useFocus(rightArrowRef, 'keyboard');\n\n const swiper = getSwiper();\n const currentImage = getCurrentImage();\n\n const handleSlideChange = useCallback(() => {\n setCurrentSlideIndex?.(swiper?.activeIndex ?? initialSlide);\n }, [setCurrentSlideIndex, swiper, initialSlide]);\n\n const handlePrevClick = () => {\n slidePrev();\n };\n\n const handleNextClick = () => {\n slideNext();\n };\n\n const handleArrowLeftKeyDown: KeyboardEventHandler = (event) => {\n if (event.key === 'Enter') {\n slidePrev();\n }\n };\n\n const handleArrowRightKeyDown: KeyboardEventHandler = (event) => {\n if (event.key === 'Enter') {\n slideNext();\n }\n };\n\n const swiperProps = useMemo<SwiperProps>(\n () => ({\n slidesPerView: 1,\n effect: 'slide',\n className: cn(styles.swiper, {\n [styles.hidden]: fullScreen && !isVideo(currentImage?.src),\n [styles.fullScreenVideo]: fullScreen && isVideo(currentImage?.src),\n [styles.mobile]: isMobile,\n [styles.mobileVideo]: isMobile && isVideo(currentImage?.src),\n }),\n modules: [A11y, Controller],\n controller: { control: swiper },\n a11y: {\n slideRole: 'img',\n },\n initialSlide,\n simulateTouch: false,\n zoom: { maxRatio: 4, minRatio: 1, toggle: true },\n onSwiper: setSwiper,\n onSlideChange: handleSlideChange,\n lazy: { loadPrevNext: true },\n }),\n [\n fullScreen,\n currentImage?.src,\n isMobile,\n swiper,\n initialSlide,\n setSwiper,\n handleSlideChange,\n ],\n );\n\n const showControls = !fullScreen && !isMobile && !!images.length;\n\n const swiperWidth = swiper?.width || 1;\n const swiperHeight = swiper?.height || swiper?.width || 1;\n\n const swiperAspectRatio = swiperWidth / swiperHeight;\n\n return (\n <div\n className={cn(styles.component, {\n [styles.mobile]: isMobile,\n [styles.mobileVideo]: isMobile && isVideo(currentImage?.src),\n })}\n aria-hidden={true}\n onClick={handleWrapperClick}\n >\n {showControls && (\n <div\n className={cn(styles.arrow, {\n [styles.focused]: leftArrowFocused,\n })}\n onClick={handlePrevClick}\n role='button'\n onKeyDown={handleArrowLeftKeyDown}\n tabIndex={0}\n ref={leftArrowRef}\n aria-label='Предыдущее изображение'\n data-test-id={TestIds.PREV_SLIDE_BUTTON}\n >\n <ChevronBackHeavyMIcon />\n </div>\n )}\n\n {fullScreen && !isVideo(currentImage?.src) && (\n <img\n src={currentImage?.src}\n alt={currentImage ? getImageAlt(currentImage, currentSlideIndex) : ''}\n className={styles.fullScreenImage}\n />\n )}\n\n <Swiper {...swiperProps}>\n {images.map((image, index) => {\n const meta = imagesMeta[index];\n\n const imageWidth = meta?.width || 1;\n const imageHeight = meta?.height || 1;\n\n const imageAspectRatio = imageWidth / imageHeight;\n\n const slideVisible = index === currentSlideIndex;\n\n return (\n <SwiperSlide\n key={getImageKey(image, index)}\n style={{\n pointerEvents: slideVisible ? 'auto' : 'none',\n transitionProperty: 'opacity',\n }}\n >\n {({ isActive }) => (\n <Slide\n isActive={isActive}\n containerAspectRatio={swiperAspectRatio}\n image={image}\n containerHeight={swiperHeight}\n meta={meta}\n index={index}\n imageAspectRatio={imageAspectRatio}\n slideVisible={slideVisible}\n />\n )}\n </SwiperSlide>\n );\n })}\n </Swiper>\n\n {showControls && (\n <div\n className={cn(styles.arrow, {\n [styles.focused]: rightArrowFocused,\n })}\n onClick={handleNextClick}\n role='button'\n onKeyDown={handleArrowRightKeyDown}\n tabIndex={0}\n ref={rightArrowRef}\n aria-label='Следующее изображение'\n data-test-id={TestIds.NEXT_SLIDE_BUTTON}\n >\n <ChevronForwardHeavyMIcon />\n </div>\n )}\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAiBa,IAAA,WAAW,GAAO,YAAA;;AACrB,IAAA,IAAA,KAYF,UAAU,CAAC,cAAc,CAAC,EAX1B,MAAM,GAAA,EAAA,CAAA,MAAA,EACN,UAAU,gBAAA,EACV,UAAU,gBAAA,EACV,iBAAiB,uBAAA,EACjB,YAAY,GAAA,EAAA,CAAA,YAAA,EACZ,oBAAoB,GAAA,EAAA,CAAA,oBAAA,EACpB,SAAS,GAAA,EAAA,CAAA,SAAA,EACT,SAAS,GAAA,EAAA,CAAA,SAAA,EACT,SAAS,eAAA,EACT,SAAS,eAAA,EACT,eAAe,qBACW;AAExB,IAAA,IAAA,EAAgE,GAAA,oBAAoB,EAAE,EAApF,kBAAkB,GAAA,EAAA,CAAA,kBAAA,EAAE,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,aAAa,GAAA,EAAA,CAAA,aAAA,EAAE,YAAY,kBAA2B;IAErF,IAAA,gBAAgB,GAAI,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC,CAAA,CAAA,CAAtC;IAChB,IAAA,iBAAiB,GAAI,QAAQ,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA,CAAA,CAAvC;AAExB,IAAA,IAAM,MAAM,GAAG,SAAS,EAAE;AAC1B,IAAA,IAAM,YAAY,GAAG,eAAe,EAAE;IAEtC,IAAM,iBAAiB,GAAG,WAAW,CAAC,YAAA;;AAClC,QAAA,oBAAoB,aAApB,oBAAoB,KAAA,MAAA,GAAA,MAAA,GAApB,oBAAoB,CAAG,MAAA,MAAM,KAAA,IAAA,IAAN,MAAM,KAAA,MAAA,GAAA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,EAAA;AACtB,gBAAA,EAAA,CAAC,MAAM,CAAC,OAAO,CAAA,GAAG,iBAAiB;oBACrC,EACF,OAAO,EAAE,eAAe,EACxB,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,uBAAuB,EAClC,QAAQ,EAAE,CAAC,EACX,GAAG,EAAE,aAAa,gBACP,2HAAuB,EAAA,cAAA,EACpB,OAAO,CAAC,iBAAiB,EAAA;AAEvC,YAAA,KAAA,CAAA,aAAA,CAAC,wBAAwB,EAAG,IAAA,CAAA,CAC1B,CACT,CACC;AAEd;;;;"}
@@ -24,13 +24,74 @@
24
24
  :root {
25
25
  --focus-color: var(--color-light-status-info);
26
26
  }
27
- .gallery__component_1vr1q {
27
+ .gallery__component_193kl {
28
28
  display: flex;
29
29
  flex-grow: 1;
30
30
  justify-content: center;
31
31
  background-color: var(--color-static-neutral-0-inverted);
32
+ .swiper {
33
+ margin-left: auto;
34
+ margin-right: auto;
35
+ position: relative;
36
+ overflow: hidden;
37
+ list-style: none;
38
+ padding: 0;
39
+ z-index: 1;
40
+ display: block;
41
+ }
42
+ .swiper-wrapper {
43
+ position: relative;
44
+ width: 100%;
45
+ height: 100%;
46
+ z-index: 1;
47
+ display: flex;
48
+ transition-property: transform;
49
+ transition-timing-function: var(--swiper-wrapper-transition-timing-function, ease);
50
+ transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
51
+ box-sizing: content-box;
52
+ }
53
+ .swiper-android .swiper-slide,
54
+ .swiper-ios .swiper-slide,
55
+ .swiper-wrapper {
56
+ transform: translate3d(0, 0, 0);
57
+ }
58
+ .swiper-horizontal {
59
+ touch-action: pan-y;
60
+ }
61
+ .swiper-slide {
62
+ flex-shrink: 0;
63
+ width: 100%;
64
+ height: 100%;
65
+ position: relative;
66
+ transition-property: transform;
67
+ display: block;
68
+ }
69
+ .swiper-slide-invisible-blank {
70
+ visibility: hidden;
71
+ }
72
+ .swiper-autoheight,
73
+ .swiper-autoheight .swiper-slide {
74
+ height: auto;
75
+ }
76
+ .swiper-autoheight .swiper-wrapper {
77
+ align-items: flex-start;
78
+ transition-property: transform, height;
79
+ }
80
+ .swiper-backface-hidden .swiper-slide {
81
+ transform: translateZ(0);
82
+ -webkit-backface-visibility: hidden;
83
+ backface-visibility: hidden;
84
+ }
85
+ .swiper .swiper-notification {
86
+ position: absolute;
87
+ left: 0;
88
+ top: 0;
89
+ pointer-events: none;
90
+ opacity: 0;
91
+ z-index: -1000;
92
+ }
32
93
  }
33
- .gallery__swiper_1vr1q {
94
+ .gallery__swiper_193kl {
34
95
  display: flex;
35
96
  width: 100%;
36
97
  height: 100%;
@@ -38,13 +99,13 @@
38
99
  padding: var(--gap-32) var(--gap-16);
39
100
  box-sizing: border-box;
40
101
  }
41
- .gallery__swiper_1vr1q.gallery__mobile_1vr1q {
102
+ .gallery__swiper_193kl.gallery__mobile_193kl {
42
103
  max-height: calc(100vh - 210px);
43
104
  }
44
- .gallery__swiper_1vr1q.gallery__mobileVideo_1vr1q {
105
+ .gallery__swiper_193kl.gallery__mobileVideo_193kl {
45
106
  max-height: 100vh;
46
107
  }
47
- .gallery__singleSlideContainer_1vr1q {
108
+ .gallery__singleSlideContainer_193kl {
48
109
  display: flex;
49
110
  width: 100%;
50
111
  height: 100%;
@@ -53,17 +114,17 @@
53
114
  padding: var(--gap-32);
54
115
  box-sizing: border-box;
55
116
  }
56
- .gallery__singleSlideContainer_1vr1q.gallery__mobile_1vr1q {
117
+ .gallery__singleSlideContainer_193kl.gallery__mobile_193kl {
57
118
  max-height: calc(100vh - 174px);
58
119
  padding: 0;
59
120
  }
60
- .gallery__singleSlideContainer_1vr1q.gallery__mobileVideo_1vr1q {
121
+ .gallery__singleSlideContainer_193kl.gallery__mobileVideo_193kl {
61
122
  max-height: 100vh;
62
123
  }
63
- .gallery__hidden_1vr1q {
124
+ .gallery__hidden_193kl {
64
125
  display: none;
65
126
  }
66
- .gallery__slide_1vr1q {
127
+ .gallery__slide_193kl {
67
128
  position: relative;
68
129
  display: flex;
69
130
  justify-content: center;
@@ -71,15 +132,15 @@
71
132
  width: 100%;
72
133
  height: 100%;
73
134
  }
74
- .gallery__slideLoading_1vr1q {
135
+ .gallery__slideLoading_193kl {
75
136
  background-color: var(--color-static-neutral-translucent-100-inverted);
76
137
  border-radius: var(--border-radius-8);
77
138
  }
78
- .gallery__spinner_1vr1q {
139
+ .gallery__spinner_193kl {
79
140
  position: absolute;
80
141
  color: var(--color-static-neutral-translucent-1300-inverted);
81
142
  }
82
- .gallery__image_1vr1q {
143
+ .gallery__image_193kl {
83
144
  width: 0;
84
145
  height: 0;
85
146
  -webkit-user-select: none;
@@ -87,10 +148,10 @@
87
148
  user-select: none;
88
149
  border-radius: var(--border-radius-8);
89
150
  }
90
- .gallery__image_1vr1q.gallery__mobile_1vr1q {
151
+ .gallery__image_193kl.gallery__mobile_193kl {
91
152
  border-radius: var(--border-radius-0);
92
153
  }
93
- .gallery__smallImage_1vr1q {
154
+ .gallery__smallImage_193kl {
94
155
  position: relative;
95
156
  width: auto;
96
157
  height: auto;
@@ -98,15 +159,15 @@
98
159
  -moz-user-select: none;
99
160
  user-select: none;
100
161
  }
101
- .gallery__verticalImageFit_1vr1q {
162
+ .gallery__verticalImageFit_193kl {
102
163
  width: auto;
103
164
  height: 100%;
104
165
  }
105
- .gallery__horizontalImageFit_1vr1q {
166
+ .gallery__horizontalImageFit_193kl {
106
167
  width: 100%;
107
168
  height: auto;
108
169
  }
109
- .gallery__arrow_1vr1q {
170
+ .gallery__arrow_193kl {
110
171
  display: flex;
111
172
  flex-direction: column;
112
173
  justify-content: center;
@@ -119,17 +180,17 @@
119
180
  transition: background-color 0.15s ease-in-out;
120
181
  outline: none;
121
182
  }
122
- .gallery__arrow_1vr1q:hover {
183
+ .gallery__arrow_193kl:hover {
123
184
  background-color: var(--color-static-neutral-0-inverted-hover);
124
185
  }
125
- .gallery__arrow_1vr1q:active {
186
+ .gallery__arrow_193kl:active {
126
187
  background-color: var(--color-static-neutral-0-inverted-press);
127
188
  }
128
- .gallery__focused_1vr1q {
189
+ .gallery__focused_193kl {
129
190
  outline: 2px solid var(--focus-color);
130
191
  outline-offset: 2px;
131
192
  }
132
- .gallery__placeholder_1vr1q {
193
+ .gallery__placeholder_193kl {
133
194
  display: flex;
134
195
  justify-content: center;
135
196
  align-items: center;
@@ -138,7 +199,7 @@
138
199
  border-radius: var(--border-radius-8);
139
200
  background-color: var(--color-static-neutral-300-inverted);
140
201
  }
141
- .gallery__brokenImgWrapper_1vr1q {
202
+ .gallery__brokenImgWrapper_193kl {
142
203
  position: relative;
143
204
  display: flex;
144
205
  flex-direction: column;
@@ -146,17 +207,17 @@
146
207
  width: 150px;
147
208
  text-align: center;
148
209
  }
149
- .gallery__brokenImgIcon_1vr1q {
210
+ .gallery__brokenImgIcon_193kl {
150
211
  width: 80px;
151
212
  height: 80px;
152
213
  margin-bottom: var(--gap-4);
153
214
  }
154
- .gallery__fullScreenImage_1vr1q {
215
+ .gallery__fullScreenImage_193kl {
155
216
  width: 100%;
156
217
  height: auto;
157
218
  background-color: var(--color-light-base-bg-primary);
158
219
  }
159
- .gallery__fullScreenVideo_1vr1q {
220
+ .gallery__fullScreenVideo_193kl {
160
221
  width: calc(100% - 192px);
161
222
  max-height: calc(100vh - 82px);
162
223
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"component":"gallery__component_1vr1q","swiper":"gallery__swiper_1vr1q","mobile":"gallery__mobile_1vr1q","mobileVideo":"gallery__mobileVideo_1vr1q","singleSlideContainer":"gallery__singleSlideContainer_1vr1q","hidden":"gallery__hidden_1vr1q","slide":"gallery__slide_1vr1q","slideLoading":"gallery__slideLoading_1vr1q","spinner":"gallery__spinner_1vr1q","image":"gallery__image_1vr1q","smallImage":"gallery__smallImage_1vr1q","verticalImageFit":"gallery__verticalImageFit_1vr1q","horizontalImageFit":"gallery__horizontalImageFit_1vr1q","arrow":"gallery__arrow_1vr1q","focused":"gallery__focused_1vr1q","placeholder":"gallery__placeholder_1vr1q","brokenImgWrapper":"gallery__brokenImgWrapper_1vr1q","brokenImgIcon":"gallery__brokenImgIcon_1vr1q","fullScreenImage":"gallery__fullScreenImage_1vr1q","fullScreenVideo":"gallery__fullScreenVideo_1vr1q"};
3
+ var styles = {"component":"gallery__component_193kl","swiper":"gallery__swiper_193kl","mobile":"gallery__mobile_193kl","mobileVideo":"gallery__mobileVideo_193kl","singleSlideContainer":"gallery__singleSlideContainer_193kl","hidden":"gallery__hidden_193kl","slide":"gallery__slide_193kl","slideLoading":"gallery__slideLoading_193kl","spinner":"gallery__spinner_193kl","image":"gallery__image_193kl","smallImage":"gallery__smallImage_193kl","verticalImageFit":"gallery__verticalImageFit_193kl","horizontalImageFit":"gallery__horizontalImageFit_193kl","arrow":"gallery__arrow_193kl","focused":"gallery__focused_193kl","placeholder":"gallery__placeholder_193kl","brokenImgWrapper":"gallery__brokenImgWrapper_193kl","brokenImgIcon":"gallery__brokenImgIcon_193kl","fullScreenImage":"gallery__fullScreenImage_193kl","fullScreenVideo":"gallery__fullScreenVideo_193kl"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../../src/components/image-viewer/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.component {\n display: flex;\n flex-grow: 1;\n justify-content: center;\n background-color: var(--color-static-neutral-0-inverted);\n}\n\n.swiper {\n display: flex;\n width: 100%;\n height: 100%;\n\n /* 168px - высота хэдера и футера */\n max-height: calc(100vh - 168px);\n padding: var(--gap-32) var(--gap-16);\n box-sizing: border-box;\n\n &.mobile {\n max-height: calc(100vh - 210px);\n }\n\n &.mobileVideo {\n max-height: 100vh;\n }\n}\n\n.singleSlideContainer {\n display: flex;\n width: 100%;\n height: 100%;\n\n max-height: calc(100vh - 80px);\n padding: var(--gap-32);\n box-sizing: border-box;\n\n &.mobile {\n max-height: calc(100vh - 174px);\n padding: 0;\n }\n\n &.mobileVideo {\n max-height: 100vh;\n }\n}\n\n.hidden {\n display: none;\n}\n\n.slide {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n\n.slideLoading {\n background-color: var(--color-static-neutral-translucent-100-inverted);\n border-radius: var(--border-radius-8);\n}\n\n.spinner {\n position: absolute;\n color: var(--color-static-neutral-translucent-1300-inverted);\n}\n\n.image {\n width: 0;\n height: 0;\n user-select: none;\n border-radius: var(--border-radius-8);\n\n &.mobile {\n border-radius: var(--border-radius-0);\n }\n}\n\n.smallImage {\n position: relative;\n width: auto;\n height: auto;\n user-select: none;\n}\n\n.verticalImageFit {\n width: auto;\n height: 100%;\n}\n\n.horizontalImageFit {\n width: 100%;\n height: auto;\n}\n\n.arrow {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n width: 96px;\n height: 100%;\n cursor: pointer;\n color: var(--color-static-neutral-translucent-1300-inverted);\n transition: background-color 0.15s ease-in-out;\n outline: none;\n\n &:hover {\n background-color: var(--color-static-neutral-0-inverted-hover);\n }\n\n &:active {\n background-color: var(--color-static-neutral-0-inverted-press);\n }\n}\n\n.focused {\n @mixin focus-outline;\n}\n\n.placeholder {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n border-radius: var(--border-radius-8);\n background-color: var(--color-static-neutral-300-inverted);\n}\n\n.brokenImgWrapper {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 150px;\n text-align: center;\n}\n\n.brokenImgIcon {\n width: 80px;\n height: 80px;\n margin-bottom: var(--gap-4);\n}\n\n.fullScreenImage {\n width: 100%;\n height: auto;\n background-color: var(--color-light-base-bg-primary);\n}\n\n.fullScreenVideo {\n width: calc(100% - 192px);\n max-height: calc(100vh - 82px);\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,WAAW,CAAC,0BAA0B,CAAC,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,uBAAuB,CAAC,aAAa,CAAC,4BAA4B,CAAC,sBAAsB,CAAC,qCAAqC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,CAAC,6BAA6B,CAAC,SAAS,CAAC,wBAAwB,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,CAAC,2BAA2B,CAAC,kBAAkB,CAAC,iCAAiC,CAAC,oBAAoB,CAAC,mCAAmC,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,CAAC,wBAAwB,CAAC,aAAa,CAAC,4BAA4B,CAAC,kBAAkB,CAAC,iCAAiC,CAAC,eAAe,CAAC,8BAA8B,CAAC,iBAAiB,CAAC,gCAAgC,CAAC,iBAAiB,CAAC,gCAAgC,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/image-viewer/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.component {\n display: flex;\n flex-grow: 1;\n justify-content: center;\n background-color: var(--color-static-neutral-0-inverted);\n\n /* swiper/swiper.css; */\n :global(.swiper) {\n margin-left: auto;\n margin-right: auto;\n position: relative;\n overflow: hidden;\n list-style: none;\n padding: 0;\n z-index: 1;\n display: block;\n }\n :global(.swiper-wrapper) {\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 1;\n display: flex;\n transition-property: transform;\n transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);\n box-sizing: content-box;\n }\n :global(.swiper-android) :global(.swiper-slide),\n :global(.swiper-ios) :global(.swiper-slide),\n :global(.swiper-wrapper) {\n transform: translate3d(0, 0, 0);\n }\n :global(.swiper-horizontal) {\n touch-action: pan-y;\n }\n :global(.swiper-slide) {\n flex-shrink: 0;\n width: 100%;\n height: 100%;\n position: relative;\n transition-property: transform;\n display: block;\n }\n :global(.swiper-slide-invisible-blank) {\n visibility: hidden;\n }\n :global(.swiper-autoheight),\n :global(.swiper-autoheight) :global(.swiper-slide) {\n height: auto;\n }\n :global(.swiper-autoheight) :global(.swiper-wrapper) {\n align-items: flex-start;\n transition-property: transform, height;\n }\n :global(.swiper-backface-hidden) :global(.swiper-slide) {\n transform: translateZ(0);\n backface-visibility: hidden;\n }\n\n /* swiper/modules/a11y.css */\n :global(.swiper) :global(.swiper-notification) {\n position: absolute;\n left: 0;\n top: 0;\n pointer-events: none;\n opacity: 0;\n z-index: -1000;\n }\n}\n\n.swiper {\n display: flex;\n width: 100%;\n height: 100%;\n\n /* 168px - высота хэдера и футера */\n max-height: calc(100vh - 168px);\n padding: var(--gap-32) var(--gap-16);\n box-sizing: border-box;\n\n &.mobile {\n max-height: calc(100vh - 210px);\n }\n\n &.mobileVideo {\n max-height: 100vh;\n }\n}\n\n.singleSlideContainer {\n display: flex;\n width: 100%;\n height: 100%;\n\n max-height: calc(100vh - 80px);\n padding: var(--gap-32);\n box-sizing: border-box;\n\n &.mobile {\n max-height: calc(100vh - 174px);\n padding: 0;\n }\n\n &.mobileVideo {\n max-height: 100vh;\n }\n}\n\n.hidden {\n display: none;\n}\n\n.slide {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n\n.slideLoading {\n background-color: var(--color-static-neutral-translucent-100-inverted);\n border-radius: var(--border-radius-8);\n}\n\n.spinner {\n position: absolute;\n color: var(--color-static-neutral-translucent-1300-inverted);\n}\n\n.image {\n width: 0;\n height: 0;\n user-select: none;\n border-radius: var(--border-radius-8);\n\n &.mobile {\n border-radius: var(--border-radius-0);\n }\n}\n\n.smallImage {\n position: relative;\n width: auto;\n height: auto;\n user-select: none;\n}\n\n.verticalImageFit {\n width: auto;\n height: 100%;\n}\n\n.horizontalImageFit {\n width: 100%;\n height: auto;\n}\n\n.arrow {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n width: 96px;\n height: 100%;\n cursor: pointer;\n color: var(--color-static-neutral-translucent-1300-inverted);\n transition: background-color 0.15s ease-in-out;\n outline: none;\n\n &:hover {\n background-color: var(--color-static-neutral-0-inverted-hover);\n }\n\n &:active {\n background-color: var(--color-static-neutral-0-inverted-press);\n }\n}\n\n.focused {\n @mixin focus-outline;\n}\n\n.placeholder {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n border-radius: var(--border-radius-8);\n background-color: var(--color-static-neutral-300-inverted);\n}\n\n.brokenImgWrapper {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 150px;\n text-align: center;\n}\n\n.brokenImgIcon {\n width: 80px;\n height: 80px;\n margin-bottom: var(--gap-4);\n}\n\n.fullScreenImage {\n width: 100%;\n height: auto;\n background-color: var(--color-light-base-bg-primary);\n}\n\n.fullScreenVideo {\n width: calc(100% - 192px);\n max-height: calc(100vh - 82px);\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,WAAW,CAAC,0BAA0B,CAAC,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,uBAAuB,CAAC,aAAa,CAAC,4BAA4B,CAAC,sBAAsB,CAAC,qCAAqC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,OAAO,CAAC,sBAAsB,CAAC,cAAc,CAAC,6BAA6B,CAAC,SAAS,CAAC,wBAAwB,CAAC,OAAO,CAAC,sBAAsB,CAAC,YAAY,CAAC,2BAA2B,CAAC,kBAAkB,CAAC,iCAAiC,CAAC,oBAAoB,CAAC,mCAAmC,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,CAAC,wBAAwB,CAAC,aAAa,CAAC,4BAA4B,CAAC,kBAAkB,CAAC,iCAAiC,CAAC,eAAe,CAAC,8BAA8B,CAAC,iBAAiB,CAAC,gCAAgC,CAAC,iBAAiB,CAAC,gCAAgC,CAAC;;;;"}
@@ -7,22 +7,22 @@
7
7
  --border-radius-0: 0;
8
8
  --border-radius-24: var(--border-radius-3xl);
9
9
  }
10
- .gallery__videoWrapper_rrxe4 {
10
+ .gallery__videoWrapper_1md53 {
11
11
  display: flex;
12
12
  justify-content: center;
13
13
  height: 100%;
14
14
  width: auto;
15
15
  position: relative;
16
16
  }
17
- .gallery__video_rrxe4 {
17
+ .gallery__video_1md53 {
18
18
  max-width: 100%;
19
19
  max-height: 100%;
20
20
  border-radius: var(--border-radius-24);
21
21
  }
22
- .gallery__mobile_rrxe4 {
22
+ .gallery__mobile_1md53 {
23
23
  border-radius: var(--border-radius-0);
24
24
  }
25
- .gallery__videoButton_rrxe4 {
25
+ .gallery__videoButton_1md53 {
26
26
  position: absolute;
27
27
  top: 50%;
28
28
  left: 50%;
@@ -30,13 +30,13 @@
30
30
  z-index: 1;
31
31
  color: green;
32
32
  }
33
- .gallery__icon_rrxe4 {
33
+ .gallery__icon_1md53 {
34
34
  color: var(--color-static-neutral-0);
35
35
  }
36
- .gallery__iconShape_rrxe4 {
36
+ .gallery__iconShape_1md53 {
37
37
  fill: var(--color-static-neutral-translucent-700);
38
38
  }
39
- .gallery__bottomButton_rrxe4 {
39
+ .gallery__bottomButton_1md53 {
40
40
  position: absolute;
41
41
  bottom: 48px;
42
42
  left: 32px;
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"videoWrapper":"gallery__videoWrapper_rrxe4","video":"gallery__video_rrxe4","mobile":"gallery__mobile_rrxe4","videoButton":"gallery__videoButton_rrxe4","icon":"gallery__icon_rrxe4","iconShape":"gallery__iconShape_rrxe4","bottomButton":"gallery__bottomButton_rrxe4"};
3
+ var styles = {"videoWrapper":"gallery__videoWrapper_1md53","video":"gallery__video_1md53","mobile":"gallery__mobile_1md53","videoButton":"gallery__videoButton_1md53","icon":"gallery__icon_1md53","iconShape":"gallery__iconShape_1md53","bottomButton":"gallery__bottomButton_1md53"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -7,10 +7,10 @@
7
7
  --gap-4: var(--gap-2xs);
8
8
  --gap-8: var(--gap-xs);
9
9
  }
10
- .gallery__description_16ykd {
10
+ .gallery__description_znsly {
11
11
  text-align: center;
12
12
  }
13
- .gallery__infoWrapper_16ykd {
13
+ .gallery__infoWrapper_znsly {
14
14
  background-color: var(--color-static-neutral-0-inverted);
15
15
  display: flex;
16
16
  align-items: center;
@@ -19,7 +19,7 @@
19
19
  position: relative;
20
20
  height: 48px;
21
21
  }
22
- .gallery__infoWrapper_16ykd.gallery__video_16ykd {
22
+ .gallery__infoWrapper_znsly.gallery__video_znsly {
23
23
  padding: 0 var(--gap-4) var(--gap-4);
24
24
  justify-content: space-between;
25
25
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"description":"gallery__description_16ykd","infoWrapper":"gallery__infoWrapper_16ykd","video":"gallery__video_16ykd"};
3
+ var styles = {"description":"gallery__description_znsly","infoWrapper":"gallery__infoWrapper_znsly","video":"gallery__video_znsly"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -13,7 +13,7 @@
13
13
  --gap-12: var(--gap-s);
14
14
  --gap-24: var(--gap-xl);
15
15
  }
16
- .gallery__component_uzlb9 {
16
+ .gallery__component_1cybw {
17
17
  display: flex;
18
18
  flex-wrap: nowrap;
19
19
  align-content: center;
@@ -25,25 +25,25 @@
25
25
  scrollbar-width: none;
26
26
  background-color: var(--color-static-neutral-0-inverted);
27
27
  }
28
- .gallery__component_uzlb9.gallery__mobile_uzlb9 {
28
+ .gallery__component_1cybw.gallery__mobile_1cybw {
29
29
  padding: var(--gap-8) var(--gap-24);
30
30
  }
31
- .gallery__component_uzlb9::-webkit-scrollbar {
31
+ .gallery__component_1cybw::-webkit-scrollbar {
32
32
  display: none;
33
33
  }
34
- .gallery__previews_uzlb9 {
34
+ .gallery__previews_1cybw {
35
35
  display: flex;
36
36
  }
37
- .gallery__preview_uzlb9 {
37
+ .gallery__preview_1cybw {
38
38
  flex-shrink: 0;
39
39
  margin-right: var(--gap-4);
40
40
  }
41
- .gallery__preview_uzlb9.gallery__mobile_uzlb9 {
41
+ .gallery__preview_1cybw.gallery__mobile_1cybw {
42
42
  margin-right: var(--gap-2);
43
43
  }
44
- .gallery__preview_uzlb9:first-child {
44
+ .gallery__preview_1cybw:first-child {
45
45
  margin-left: auto;
46
46
  }
47
- .gallery__preview_uzlb9:last-child {
47
+ .gallery__preview_1cybw:last-child {
48
48
  margin-right: auto;
49
49
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"component":"gallery__component_uzlb9","mobile":"gallery__mobile_uzlb9","preview":"gallery__preview_uzlb9"};
3
+ var styles = {"component":"gallery__component_1cybw","mobile":"gallery__mobile_1cybw","preview":"gallery__preview_1cybw"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -5,7 +5,7 @@
5
5
  --gap-16: var(--gap-m);
6
6
  --gap-32: var(--gap-2xl);
7
7
  }
8
- .gallery__subtitles_12ysr {
8
+ .gallery__subtitles_8qn9e {
9
9
  position: absolute;
10
10
  align-self: flex-end;
11
11
  padding: var(--gap-0) var(--gap-32);
@@ -18,10 +18,10 @@
18
18
  opacity 500ms ease-in-out,
19
19
  margin-bottom 270ms ease-in-out;
20
20
  }
21
- .gallery__subtitles_12ysr.gallery__mobile_12ysr {
21
+ .gallery__subtitles_8qn9e.gallery__mobile_8qn9e {
22
22
  position: static;
23
23
  position: initial;
24
24
  }
25
- .gallery__hideSubtitles_12ysr {
25
+ .gallery__hideSubtitles_8qn9e {
26
26
  opacity: 0;
27
27
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"subtitles":"gallery__subtitles_12ysr","mobile":"gallery__mobile_12ysr","hideSubtitles":"gallery__hideSubtitles_12ysr"};
3
+ var styles = {"subtitles":"gallery__subtitles_8qn9e","mobile":"gallery__mobile_8qn9e","hideSubtitles":"gallery__hideSubtitles_8qn9e"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
package/esm/index.css CHANGED
@@ -13,7 +13,7 @@
13
13
  --sat: env(safe-area-inset-top, var(--gap-0));
14
14
  --sab: env(safe-area-inset-bottom, var(--gap-0));
15
15
  }
16
- .gallery__container_13kqg {
16
+ .gallery__container_qgt61 {
17
17
  position: relative;
18
18
  overflow-x: hidden;
19
19
  overflow-y: auto;
@@ -26,16 +26,16 @@
26
26
  padding-top: var(--sat);
27
27
  padding-bottom: var(--sab);
28
28
  }
29
- .gallery__container_13kqg.gallery__mobile_13kqg {
29
+ .gallery__container_qgt61.gallery__mobile_qgt61 {
30
30
  overflow: hidden;
31
31
  }
32
- .gallery__modal_13kqg {
32
+ .gallery__modal_qgt61 {
33
33
  flex-grow: 1;
34
34
  width: 100vw;
35
35
  height: 100vh;
36
36
  background: transparent;
37
37
  }
38
- .gallery__navigationVideo_13kqg {
38
+ .gallery__navigationVideo_qgt61 {
39
39
  z-index: 3;
40
40
  width: 100%;
41
41
  position: absolute;
@@ -44,18 +44,18 @@
44
44
  transition: transform 0.3s ease-in-out;
45
45
  text-align: center;
46
46
  }
47
- .gallery__hide_13kqg {
47
+ .gallery__hide_qgt61 {
48
48
  transform: translateY(114px);
49
49
  }
50
- .gallery__hideInfo_13kqg {
50
+ .gallery__hideInfo_qgt61 {
51
51
  transform: translateY(48px);
52
52
  }
53
- .gallery__bottomButton_13kqg {
53
+ .gallery__bottomButton_qgt61 {
54
54
  width: calc(100% - var(--gap-32));
55
55
  margin: var(--gap-16);
56
56
  background-color: var(--color-static-neutral-translucent-500-inverted);
57
57
  }
58
- .gallery__subtitles_13kqg {
58
+ .gallery__subtitles_qgt61 {
59
59
  padding: var(--gap-0) var(--gap-32);
60
60
  margin-bottom: var(--gap-16);
61
61
  width: 100%;
@@ -66,6 +66,6 @@
66
66
  opacity 500ms ease-in-out,
67
67
  margin-bottom 270ms ease-in-out;
68
68
  }
69
- .gallery__hideSubtitles_13kqg {
69
+ .gallery__hideSubtitles_qgt61 {
70
70
  opacity: 0;
71
71
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"container":"gallery__container_13kqg","mobile":"gallery__mobile_13kqg","modal":"gallery__modal_13kqg","navigationVideo":"gallery__navigationVideo_13kqg","hide":"gallery__hide_13kqg","hideInfo":"gallery__hideInfo_13kqg","bottomButton":"gallery__bottomButton_13kqg"};
3
+ var styles = {"container":"gallery__container_qgt61","mobile":"gallery__mobile_qgt61","modal":"gallery__modal_qgt61","navigationVideo":"gallery__navigationVideo_qgt61","hide":"gallery__hide_qgt61","hideInfo":"gallery__hideInfo_qgt61","bottomButton":"gallery__bottomButton_qgt61"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
package/index.css CHANGED
@@ -13,7 +13,7 @@
13
13
  --sat: env(safe-area-inset-top, var(--gap-0));
14
14
  --sab: env(safe-area-inset-bottom, var(--gap-0));
15
15
  }
16
- .gallery__container_13kqg {
16
+ .gallery__container_qgt61 {
17
17
  position: relative;
18
18
  overflow-x: hidden;
19
19
  overflow-y: auto;
@@ -26,16 +26,16 @@
26
26
  padding-top: var(--sat);
27
27
  padding-bottom: var(--sab);
28
28
  }
29
- .gallery__container_13kqg.gallery__mobile_13kqg {
29
+ .gallery__container_qgt61.gallery__mobile_qgt61 {
30
30
  overflow: hidden;
31
31
  }
32
- .gallery__modal_13kqg {
32
+ .gallery__modal_qgt61 {
33
33
  flex-grow: 1;
34
34
  width: 100vw;
35
35
  height: 100vh;
36
36
  background: transparent;
37
37
  }
38
- .gallery__navigationVideo_13kqg {
38
+ .gallery__navigationVideo_qgt61 {
39
39
  z-index: 3;
40
40
  width: 100%;
41
41
  position: absolute;
@@ -44,18 +44,18 @@
44
44
  transition: transform 0.3s ease-in-out;
45
45
  text-align: center;
46
46
  }
47
- .gallery__hide_13kqg {
47
+ .gallery__hide_qgt61 {
48
48
  transform: translateY(114px);
49
49
  }
50
- .gallery__hideInfo_13kqg {
50
+ .gallery__hideInfo_qgt61 {
51
51
  transform: translateY(48px);
52
52
  }
53
- .gallery__bottomButton_13kqg {
53
+ .gallery__bottomButton_qgt61 {
54
54
  width: calc(100% - var(--gap-32));
55
55
  margin: var(--gap-16);
56
56
  background-color: var(--color-static-neutral-translucent-500-inverted);
57
57
  }
58
- .gallery__subtitles_13kqg {
58
+ .gallery__subtitles_qgt61 {
59
59
  padding: var(--gap-0) var(--gap-32);
60
60
  margin-bottom: var(--gap-16);
61
61
  width: 100%;
@@ -66,6 +66,6 @@
66
66
  opacity 500ms ease-in-out,
67
67
  margin-bottom 270ms ease-in-out;
68
68
  }
69
- .gallery__hideSubtitles_13kqg {
69
+ .gallery__hideSubtitles_qgt61 {
70
70
  opacity: 0;
71
71
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"container":"gallery__container_13kqg","mobile":"gallery__mobile_13kqg","modal":"gallery__modal_13kqg","navigationVideo":"gallery__navigationVideo_13kqg","hide":"gallery__hide_13kqg","hideInfo":"gallery__hideInfo_13kqg","bottomButton":"gallery__bottomButton_13kqg"};
5
+ var styles = {"container":"gallery__container_qgt61","mobile":"gallery__mobile_qgt61","modal":"gallery__modal_qgt61","navigationVideo":"gallery__navigationVideo_qgt61","hide":"gallery__hide_qgt61","hideInfo":"gallery__hideInfo_qgt61","bottomButton":"gallery__bottomButton_qgt61"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map