@alfalab/core-components-gallery 7.2.0 → 7.2.1-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 (90) 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/index.css +30 -29
  14. package/components/image-viewer/index.module.css.js +1 -1
  15. package/components/image-viewer/index.module.css.js.map +1 -1
  16. package/components/image-viewer/slide.js +2 -1
  17. package/components/image-viewer/slide.js.map +1 -1
  18. package/components/image-viewer/video/index.css +7 -7
  19. package/components/image-viewer/video/index.module.css.js +1 -1
  20. package/components/info-bar/index.css +3 -3
  21. package/components/info-bar/index.module.css.js +1 -1
  22. package/components/navigation-bar/index.css +8 -8
  23. package/components/navigation-bar/index.module.css.js +1 -1
  24. package/components/subtitles/index.css +3 -3
  25. package/components/subtitles/index.module.css.js +1 -1
  26. package/cssm/components/image-viewer/index.module.css +2 -1
  27. package/cssm/components/image-viewer/slide.js +2 -1
  28. package/cssm/components/image-viewer/slide.js.map +1 -1
  29. package/esm/components/bottom-button/index.css +5 -5
  30. package/esm/components/bottom-button/index.module.css.js +1 -1
  31. package/esm/components/buttons/index.css +5 -5
  32. package/esm/components/buttons/index.module.css.js +1 -1
  33. package/esm/components/header/index.css +1 -1
  34. package/esm/components/header/index.module.css.js +1 -1
  35. package/esm/components/header-info-block/index.css +4 -4
  36. package/esm/components/header-info-block/index.module.css.js +1 -1
  37. package/esm/components/header-mobile/index.css +6 -6
  38. package/esm/components/header-mobile/index.module.css.js +1 -1
  39. package/esm/components/image-preview/index.css +17 -17
  40. package/esm/components/image-preview/index.module.css.js +1 -1
  41. package/esm/components/image-viewer/index.css +30 -29
  42. package/esm/components/image-viewer/index.module.css.js +1 -1
  43. package/esm/components/image-viewer/index.module.css.js.map +1 -1
  44. package/esm/components/image-viewer/slide.js +2 -1
  45. package/esm/components/image-viewer/slide.js.map +1 -1
  46. package/esm/components/image-viewer/video/index.css +7 -7
  47. package/esm/components/image-viewer/video/index.module.css.js +1 -1
  48. package/esm/components/info-bar/index.css +3 -3
  49. package/esm/components/info-bar/index.module.css.js +1 -1
  50. package/esm/components/navigation-bar/index.css +8 -8
  51. package/esm/components/navigation-bar/index.module.css.js +1 -1
  52. package/esm/components/subtitles/index.css +3 -3
  53. package/esm/components/subtitles/index.module.css.js +1 -1
  54. package/esm/index.css +9 -9
  55. package/esm/index.module.css.js +1 -1
  56. package/index.css +9 -9
  57. package/index.module.css.js +1 -1
  58. package/modern/components/bottom-button/index.css +5 -5
  59. package/modern/components/bottom-button/index.module.css.js +1 -1
  60. package/modern/components/buttons/index.css +5 -5
  61. package/modern/components/buttons/index.module.css.js +1 -1
  62. package/modern/components/header/index.css +1 -1
  63. package/modern/components/header/index.module.css.js +1 -1
  64. package/modern/components/header-info-block/index.css +4 -4
  65. package/modern/components/header-info-block/index.module.css.js +1 -1
  66. package/modern/components/header-mobile/index.css +6 -6
  67. package/modern/components/header-mobile/index.module.css.js +1 -1
  68. package/modern/components/image-preview/index.css +17 -17
  69. package/modern/components/image-preview/index.module.css.js +1 -1
  70. package/modern/components/image-viewer/index.css +30 -29
  71. package/modern/components/image-viewer/index.module.css.js +1 -1
  72. package/modern/components/image-viewer/index.module.css.js.map +1 -1
  73. package/modern/components/image-viewer/slide.js +2 -1
  74. package/modern/components/image-viewer/slide.js.map +1 -1
  75. package/modern/components/image-viewer/video/index.css +7 -7
  76. package/modern/components/image-viewer/video/index.module.css.js +1 -1
  77. package/modern/components/info-bar/index.css +3 -3
  78. package/modern/components/info-bar/index.module.css.js +1 -1
  79. package/modern/components/navigation-bar/index.css +8 -8
  80. package/modern/components/navigation-bar/index.module.css.js +1 -1
  81. package/modern/components/subtitles/index.css +3 -3
  82. package/modern/components/subtitles/index.module.css.js +1 -1
  83. package/modern/index.css +9 -9
  84. package/modern/index.module.css.js +1 -1
  85. package/moderncssm/components/image-viewer/index.module.css +2 -1
  86. package/moderncssm/components/image-viewer/slide.js +2 -1
  87. package/moderncssm/components/image-viewer/slide.js.map +1 -1
  88. package/package.json +11 -11
  89. package/src/components/image-viewer/index.module.css +2 -1
  90. package/src/components/image-viewer/slide.tsx +3 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"videoWrapper":"gallery__videoWrapper_1ogqj","video":"gallery__video_1ogqj","mobile":"gallery__mobile_1ogqj","videoButton":"gallery__videoButton_1ogqj","icon":"gallery__icon_1ogqj","iconShape":"gallery__iconShape_1ogqj","bottomButton":"gallery__bottomButton_1ogqj"};
5
+ var styles = {"videoWrapper":"gallery__videoWrapper_1ipf9","video":"gallery__video_1ipf9","mobile":"gallery__mobile_1ipf9","videoButton":"gallery__videoButton_1ipf9","icon":"gallery__icon_1ipf9","iconShape":"gallery__iconShape_1ipf9","bottomButton":"gallery__bottomButton_1ipf9"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# 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_kr284 {
10
+ .gallery__description_fw1es {
11
11
  text-align: center;
12
12
  }
13
- .gallery__infoWrapper_kr284 {
13
+ .gallery__infoWrapper_fw1es {
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_kr284.gallery__video_kr284 {
22
+ .gallery__infoWrapper_fw1es.gallery__video_fw1es {
23
23
  padding: 0 var(--gap-4) var(--gap-4);
24
24
  justify-content: space-between;
25
25
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"description":"gallery__description_kr284","infoWrapper":"gallery__infoWrapper_kr284","video":"gallery__video_kr284"};
5
+ var styles = {"description":"gallery__description_fw1es","infoWrapper":"gallery__infoWrapper_fw1es","video":"gallery__video_fw1es"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# 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_1roeg {
16
+ .gallery__component_19am2 {
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_1roeg.gallery__mobile_1roeg {
28
+ .gallery__component_19am2.gallery__mobile_19am2 {
29
29
  padding: var(--gap-8) var(--gap-24);
30
30
  }
31
- .gallery__component_1roeg::-webkit-scrollbar {
31
+ .gallery__component_19am2::-webkit-scrollbar {
32
32
  display: none;
33
33
  }
34
- .gallery__previews_1roeg {
34
+ .gallery__previews_19am2 {
35
35
  display: flex;
36
36
  }
37
- .gallery__preview_1roeg {
37
+ .gallery__preview_19am2 {
38
38
  flex-shrink: 0;
39
39
  margin-right: var(--gap-4);
40
40
  }
41
- .gallery__preview_1roeg.gallery__mobile_1roeg {
41
+ .gallery__preview_19am2.gallery__mobile_19am2 {
42
42
  margin-right: var(--gap-2);
43
43
  }
44
- .gallery__preview_1roeg:first-child {
44
+ .gallery__preview_19am2:first-child {
45
45
  margin-left: auto;
46
46
  }
47
- .gallery__preview_1roeg:last-child {
47
+ .gallery__preview_19am2:last-child {
48
48
  margin-right: auto;
49
49
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"component":"gallery__component_1roeg","mobile":"gallery__mobile_1roeg","preview":"gallery__preview_1roeg"};
5
+ var styles = {"component":"gallery__component_19am2","mobile":"gallery__mobile_19am2","preview":"gallery__preview_19am2"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# 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_9u7yv {
8
+ .gallery__subtitles_4cgc7 {
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_9u7yv.gallery__mobile_9u7yv {
21
+ .gallery__subtitles_4cgc7.gallery__mobile_4cgc7 {
22
22
  position: static;
23
23
  position: initial;
24
24
  }
25
- .gallery__hideSubtitles_9u7yv {
25
+ .gallery__hideSubtitles_4cgc7 {
26
26
  opacity: 0;
27
27
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"subtitles":"gallery__subtitles_9u7yv","mobile":"gallery__mobile_9u7yv","hideSubtitles":"gallery__hideSubtitles_9u7yv"};
5
+ var styles = {"subtitles":"gallery__subtitles_4cgc7","mobile":"gallery__mobile_4cgc7","hideSubtitles":"gallery__hideSubtitles_4cgc7"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -94,7 +94,8 @@
94
94
 
95
95
  .swiperFrame {
96
96
  display: flex;
97
- width: 100%;
97
+ flex: 1 1 0;
98
+ min-width: 0;
98
99
  height: 100%;
99
100
  min-height: 0;
100
101
  max-height: calc(100vh - 168px);
@@ -45,6 +45,7 @@ var Slide = function (_a) {
45
45
  var small = utils.isSmallImage(meta);
46
46
  var verticalImageFit = !small && containerAspectRatio > imageAspectRatio;
47
47
  var horizontalImageFit = !small && containerAspectRatio <= imageAspectRatio;
48
+ var imageStyle = fullScreen || !containerHeight ? undefined : { maxHeight: "".concat(containerHeight, "px") };
48
49
  var handleImageRef = React.useCallback(function (node) {
49
50
  if ((node === null || node === void 0 ? void 0 : node.complete) && node.naturalWidth > 0 && !meta) {
50
51
  handleLoad({ currentTarget: node }, index$1);
@@ -62,7 +63,7 @@ var Slide = function (_a) {
62
63
  _c[styles__default.default.fullScreenMedia] = fullScreen,
63
64
  _c[styles__default.default.verticalImageFit] = verticalImageFit,
64
65
  _c[styles__default.default.horizontalImageFit] = horizontalImageFit,
65
- _c)), onLoad: function (event) { return handleLoad(event, index$1); }, onError: function () { return handleLoadError(index$1); }, style: fullScreen ? undefined : { maxHeight: "".concat(containerHeight, "px") }, "data-test-id": slideVisible ? constants.TestIds.ACTIVE_IMAGE : undefined })));
66
+ _c)), onLoad: function (event) { return handleLoad(event, index$1); }, onError: function () { return handleLoadError(index$1); }, style: imageStyle, "data-test-id": slideVisible ? constants.TestIds.ACTIVE_IMAGE : undefined })));
66
67
  };
67
68
 
68
69
  exports.Slide = Slide;
@@ -1 +1 @@
1
- {"version":3,"file":"slide.js","sources":["../../../src/components/image-viewer/slide.tsx"],"sourcesContent":["import React, { type FC, type ReactNode, useCallback, useContext } from 'react';\nimport cn from 'classnames';\n\nimport { Spinner } from '@alfalab/core-components-spinner';\nimport { TypographyText } from '@alfalab/core-components-typography';\n\nimport { GalleryContext } from '../../context';\nimport { type GalleryImage, type ImageMeta } from '../../types';\nimport { getImageAlt, isSmallImage, isVideo, TestIds } from '../../utils';\n\nimport { useHandleImageViewer } from './hooks';\nimport { NoImagePaths } from './paths';\nimport { Video } from './video';\n\nimport styles from './index.module.css';\n\ntype SlideInnerProps = {\n active: boolean;\n broken: boolean;\n loading: boolean;\n children: ReactNode;\n isVideoView?: boolean;\n};\n\nconst SlideInner: FC<SlideInnerProps> = ({ children, broken, loading, isVideoView }) => {\n const content = broken ? (\n <div className={styles.brokenImgWrapper}>\n <div className={styles.brokenImgIcon}>\n <svg\n xmlns='http://www.w3.org/2000/svg'\n width='80'\n height='80'\n viewBox='0 0 80 80'\n fill='none'\n >\n <rect width='80' height='80' fill='none' />\n <path\n fillRule='evenodd'\n clipRule='evenodd'\n d={NoImagePaths.baseImage}\n fill='#89898A'\n />\n <path d={NoImagePaths.triangleImage} fill='#89898A' />\n </svg>\n </div>\n\n <TypographyText view='primary-small' color='static-secondary-light'>\n Не удалось загрузить {isVideoView ? 'видео' : 'изображение'}\n </TypographyText>\n </div>\n ) : (\n children\n );\n\n return (\n <div className={cn(styles.slide, { [styles.slideLoading]: loading })}>\n {broken ? <div className={styles.placeholder}>{content}</div> : content}\n <Spinner className={styles.spinner} preset={48} visible={loading} />\n </div>\n );\n};\n\ntype SlideProps = {\n isActive: boolean;\n image: GalleryImage;\n meta?: ImageMeta;\n containerAspectRatio: number;\n imageAspectRatio: number;\n index: number;\n containerHeight: number;\n slideVisible: boolean;\n fullScreen?: boolean;\n};\n\nexport const Slide: FC<SlideProps> = ({\n isActive,\n meta,\n containerAspectRatio,\n imageAspectRatio,\n image,\n index,\n containerHeight,\n slideVisible,\n fullScreen,\n}) => {\n const { view } = useContext(GalleryContext);\n const { handleLoad, handleLoadError } = useHandleImageViewer();\n\n const broken = Boolean(meta?.broken);\n const small = isSmallImage(meta);\n const verticalImageFit = !small && containerAspectRatio > imageAspectRatio;\n const horizontalImageFit = !small && containerAspectRatio <= imageAspectRatio;\n\n const handleImageRef = useCallback(\n (node: HTMLImageElement | null) => {\n if (node?.complete && node.naturalWidth > 0 && !meta) {\n handleLoad(\n { currentTarget: node } as React.SyntheticEvent<HTMLImageElement>,\n index,\n );\n }\n },\n [handleLoad, index, meta],\n );\n\n if (isVideo(image.src)) {\n return (\n <SlideInner isVideoView={true} active={isActive} broken={broken} loading={!meta}>\n <Video\n url={image.src}\n index={index}\n isActive={isActive}\n className={cn({ [styles.fullScreenMedia]: fullScreen })}\n />\n </SlideInner>\n );\n }\n\n return (\n <SlideInner active={isActive} broken={broken} loading={!meta}>\n <img\n ref={handleImageRef}\n src={image.src}\n alt={getImageAlt(image, index)}\n className={cn({\n [styles.smallImage]: small,\n [styles.image]: !small && meta,\n [styles.mobile]: view === 'mobile',\n [styles.fullScreenMedia]: fullScreen,\n [styles.verticalImageFit]: verticalImageFit,\n [styles.horizontalImageFit]: horizontalImageFit,\n })}\n onLoad={(event) => handleLoad(event, index)}\n onError={() => handleLoadError(index)}\n style={fullScreen ? undefined : { maxHeight: `${containerHeight}px` }}\n data-test-id={slideVisible ? TestIds.ACTIVE_IMAGE : undefined}\n />\n </SlideInner>\n );\n};\n"],"names":["React","styles","NoImagePaths","TypographyText","cn","Spinner","index","useContext","GalleryContext","useHandleImageViewer","isSmallImage","useCallback","isVideo","Video","getImageAlt","TestIds"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAwBA,IAAM,UAAU,GAAwB,UAAC,EAA0C,EAAA;;QAAxC,QAAQ,GAAA,EAAA,CAAA,QAAA,EAAE,MAAM,GAAA,EAAA,CAAA,MAAA,EAAE,OAAO,GAAA,EAAA,CAAA,OAAA,EAAE,WAAW,GAAA,EAAA,CAAA,WAAA;AAC7E,IAAA,IAAM,OAAO,GAAG,MAAM,IAClBA,sBAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEC,uBAAM,CAAC,gBAAgB,EAAA;AACnC,QAAAD,sBAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEC,uBAAM,CAAC,aAAa,EAAA;AAChC,YAAAD,sBAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACI,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EAAA;gBAEXA,sBAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,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,EAAE,UAAU,GAAG,SAAS,GAAG,EAAE,SAAS,EAAE,EAAA,CAAA,MAAA,CAAG,eAAe,EAAA,IAAA,CAAI,EAAE,EAAA,cAAA,EACvD,YAAY,GAAGS,iBAAO,CAAC,YAAY,GAAG,SAAS,EAAA,CAC/D,CACO;AAErB;;;;"}
1
+ {"version":3,"file":"slide.js","sources":["../../../src/components/image-viewer/slide.tsx"],"sourcesContent":["import React, { type FC, type ReactNode, useCallback, useContext } from 'react';\nimport cn from 'classnames';\n\nimport { Spinner } from '@alfalab/core-components-spinner';\nimport { TypographyText } from '@alfalab/core-components-typography';\n\nimport { GalleryContext } from '../../context';\nimport { type GalleryImage, type ImageMeta } from '../../types';\nimport { getImageAlt, isSmallImage, isVideo, TestIds } from '../../utils';\n\nimport { useHandleImageViewer } from './hooks';\nimport { NoImagePaths } from './paths';\nimport { Video } from './video';\n\nimport styles from './index.module.css';\n\ntype SlideInnerProps = {\n active: boolean;\n broken: boolean;\n loading: boolean;\n children: ReactNode;\n isVideoView?: boolean;\n};\n\nconst SlideInner: FC<SlideInnerProps> = ({ children, broken, loading, isVideoView }) => {\n const content = broken ? (\n <div className={styles.brokenImgWrapper}>\n <div className={styles.brokenImgIcon}>\n <svg\n xmlns='http://www.w3.org/2000/svg'\n width='80'\n height='80'\n viewBox='0 0 80 80'\n fill='none'\n >\n <rect width='80' height='80' fill='none' />\n <path\n fillRule='evenodd'\n clipRule='evenodd'\n d={NoImagePaths.baseImage}\n fill='#89898A'\n />\n <path d={NoImagePaths.triangleImage} fill='#89898A' />\n </svg>\n </div>\n\n <TypographyText view='primary-small' color='static-secondary-light'>\n Не удалось загрузить {isVideoView ? 'видео' : 'изображение'}\n </TypographyText>\n </div>\n ) : (\n children\n );\n\n return (\n <div className={cn(styles.slide, { [styles.slideLoading]: loading })}>\n {broken ? <div className={styles.placeholder}>{content}</div> : content}\n <Spinner className={styles.spinner} preset={48} visible={loading} />\n </div>\n );\n};\n\ntype SlideProps = {\n isActive: boolean;\n image: GalleryImage;\n meta?: ImageMeta;\n containerAspectRatio: number;\n imageAspectRatio: number;\n index: number;\n containerHeight: number;\n slideVisible: boolean;\n fullScreen?: boolean;\n};\n\nexport const Slide: FC<SlideProps> = ({\n isActive,\n meta,\n containerAspectRatio,\n imageAspectRatio,\n image,\n index,\n containerHeight,\n slideVisible,\n fullScreen,\n}) => {\n const { view } = useContext(GalleryContext);\n const { handleLoad, handleLoadError } = useHandleImageViewer();\n\n const broken = Boolean(meta?.broken);\n const small = isSmallImage(meta);\n const verticalImageFit = !small && containerAspectRatio > imageAspectRatio;\n const horizontalImageFit = !small && containerAspectRatio <= imageAspectRatio;\n const imageStyle =\n fullScreen || !containerHeight ? undefined : { maxHeight: `${containerHeight}px` };\n\n const handleImageRef = useCallback(\n (node: HTMLImageElement | null) => {\n if (node?.complete && node.naturalWidth > 0 && !meta) {\n handleLoad(\n { currentTarget: node } as React.SyntheticEvent<HTMLImageElement>,\n index,\n );\n }\n },\n [handleLoad, index, meta],\n );\n\n if (isVideo(image.src)) {\n return (\n <SlideInner isVideoView={true} active={isActive} broken={broken} loading={!meta}>\n <Video\n url={image.src}\n index={index}\n isActive={isActive}\n className={cn({ [styles.fullScreenMedia]: fullScreen })}\n />\n </SlideInner>\n );\n }\n\n return (\n <SlideInner active={isActive} broken={broken} loading={!meta}>\n <img\n ref={handleImageRef}\n src={image.src}\n alt={getImageAlt(image, index)}\n className={cn({\n [styles.smallImage]: small,\n [styles.image]: !small && meta,\n [styles.mobile]: view === 'mobile',\n [styles.fullScreenMedia]: fullScreen,\n [styles.verticalImageFit]: verticalImageFit,\n [styles.horizontalImageFit]: horizontalImageFit,\n })}\n onLoad={(event) => handleLoad(event, index)}\n onError={() => handleLoadError(index)}\n style={imageStyle}\n data-test-id={slideVisible ? TestIds.ACTIVE_IMAGE : undefined}\n />\n </SlideInner>\n );\n};\n"],"names":["React","styles","NoImagePaths","TypographyText","cn","Spinner","index","useContext","GalleryContext","useHandleImageViewer","isSmallImage","useCall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,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,IAAI,EAAA;QACxDA,sBACI,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,GAAG,EAAE,cAAc,EACnB,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,GAAG,EAAEc,iBAAW,CAAC,KAAK,EAAER,OAAK,CAAC,EAC9B,SAAS,EAAEF,mBAAE,EAAA,EAAA,GAAA,EAAA;AACT,gBAAA,EAAA,CAACH,uBAAM,CAAC,UAAU,CAAA,GAAG,KAAK;AAC1B,gBAAA,EAAA,CAACA,uBAAM,CAAC,KAAK,IAAG,CAAC,KAAK,IAAI,IAAI;AAC9B,gBAAA,EAAA,CAACA,uBAAM,CAAC,MAAM,CAAG,GAAA,IAAI,KAAK,QAAQ;AAClC,gBAAA,EAAA,CAACA,uBAAM,CAAC,eAAe,CAAA,GAAG,UAAU;AACpC,gBAAA,EAAA,CAACA,uBAAM,CAAC,gBAAgB,CAAA,GAAG,gBAAgB;AAC3C,gBAAA,EAAA,CAACA,uBAAM,CAAC,kBAAkB,CAAA,GAAG,kBAAkB;oBACjD,EACF,MAAM,EAAE,UAAC,KAAK,IAAK,OAAA,UAAU,CAAC,KAAK,EAAEK,OAAK,CAAC,CAAA,EAAA,EAC3C,OAAO,EAAE,YAAM,EAAA,OAAA,eAAe,CAACA,OAAK,CAAC,CAAtB,EAAsB,EACrC,KAAK,EAAE,UAAU,EACH,cAAA,EAAA,YAAY,GAAGS,iBAAO,CAAC,YAAY,GAAG,SAAS,EAC/D,CAAA,CACO;AAErB;;;;"}
@@ -3,20 +3,20 @@
3
3
  --color-static-neutral-translucent-500-inverted-hover: rgba(233, 233, 250, 0.37);
4
4
  --color-static-neutral-translucent-500-inverted-press: rgba(238, 238, 254, 0.46);
5
5
  }
6
- .gallery__component_1111w {
6
+ .gallery__component_12iyi {
7
7
  background-color: var(--color-static-neutral-translucent-500-inverted);
8
8
  }
9
- .gallery__component_1111w:hover {
9
+ .gallery__component_12iyi:hover {
10
10
  background-color: var(--color-static-neutral-translucent-500-inverted-hover);
11
11
  }
12
- .gallery__component_1111w:active {
12
+ .gallery__component_12iyi:active {
13
13
  background-color: var(--color-static-neutral-translucent-500-inverted-press);
14
14
  }
15
- .gallery__component_1111w {
15
+ .gallery__component_12iyi {
16
16
 
17
17
  transition: transform 1s ease-in-out;
18
18
  will-change: transform;
19
19
  }
20
- .gallery__notVisible_1111w {
20
+ .gallery__notVisible_12iyi {
21
21
  transform: translateY(250%);
22
22
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"component":"gallery__component_1111w","notVisible":"gallery__notVisible_1111w"};
3
+ var styles = {"component":"gallery__component_12iyi","notVisible":"gallery__notVisible_12iyi"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -8,19 +8,19 @@
8
8
  --gap-2xl: 32px;
9
9
  --gap-32: var(--gap-2xl);
10
10
  }
11
- .gallery__buttons_wuul2 {
11
+ .gallery__buttons_17zvp {
12
12
  display: flex;
13
13
  padding-left: var(--gap-32);
14
14
  }
15
- .gallery__buttons_wuul2 path {
15
+ .gallery__buttons_17zvp path {
16
16
  color: var(--color-static-neutral-translucent-1300-inverted);
17
17
  }
18
- .gallery__iconButton_wuul2 path {
18
+ .gallery__iconButton_17zvp path {
19
19
  color: var(--color-static-neutral-100);
20
20
  }
21
- .gallery__iconButton_wuul2:hover path {
21
+ .gallery__iconButton_17zvp:hover path {
22
22
  color: var(--color-static-neutral-100-hover);
23
23
  }
24
- .gallery__iconButton_wuul2:active path {
24
+ .gallery__iconButton_17zvp:active path {
25
25
  color: var(--color-static-neutral-100-press);
26
26
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"iconButton":"gallery__iconButton_wuul2"};
3
+ var styles = {"iconButton":"gallery__iconButton_17zvp"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -4,7 +4,7 @@
4
4
  --gap-16: var(--gap-m);
5
5
  --gap-32: var(--gap-2xl);
6
6
  }
7
- .gallery__header_1ncrn {
7
+ .gallery__header_c4i7e {
8
8
  display: flex;
9
9
  justify-content: space-between;
10
10
  flex-shrink: 0;
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"header":"gallery__header_1ncrn"};
3
+ var styles = {"header":"gallery__header_c4i7e"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -2,24 +2,24 @@
2
2
  --gap-2xs: 4px;
3
3
  --gap-4: var(--gap-2xs);
4
4
  }
5
- .gallery__info_67sij {
5
+ .gallery__info_2l9no {
6
6
  height: 100%;
7
7
  display: flex;
8
8
  flex-direction: column;
9
9
  justify-content: center;
10
10
  overflow: hidden;
11
11
  }
12
- .gallery__filenameHead_67sij {
12
+ .gallery__filenameHead_2l9no {
13
13
  display: inline;
14
14
  text-overflow: ellipsis;
15
15
  overflow: hidden;
16
16
  white-space: nowrap;
17
17
  }
18
- .gallery__filenameContainer_67sij {
18
+ .gallery__filenameContainer_2l9no {
19
19
  overflow: hidden;
20
20
  display: inline-flex;
21
21
  }
22
- .gallery__description_67sij {
22
+ .gallery__description_2l9no {
23
23
  display: inline;
24
24
  text-overflow: ellipsis;
25
25
  overflow: hidden;
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"info":"gallery__info_67sij","filenameHead":"gallery__filenameHead_67sij","filenameContainer":"gallery__filenameContainer_67sij","description":"gallery__description_67sij"};
3
+ var styles = {"info":"gallery__info_2l9no","filenameHead":"gallery__filenameHead_2l9no","filenameContainer":"gallery__filenameContainer_2l9no","description":"gallery__description_2l9no"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -1,7 +1,7 @@
1
1
  :root {
2
2
  --color-static-neutral-0-inverted: #262629;
3
3
  }
4
- .gallery__headerMobile_t1ge4 {
4
+ .gallery__headerMobile_9pe0x {
5
5
  position: relative;
6
6
  height: 72px;
7
7
  z-index: 3;
@@ -10,21 +10,21 @@
10
10
  justify-content: space-between;
11
11
  align-items: center;
12
12
  }
13
- .gallery__headerMobile_t1ge4.gallery__video_t1ge4 {
13
+ .gallery__headerMobile_9pe0x.gallery__video_9pe0x {
14
14
  position: absolute;
15
15
  width: 100%;
16
16
  background-color: var(--color-static-neutral-0-inverted);
17
17
  transition: transform 0.3s ease-in-out;
18
18
  }
19
- .gallery__hide_t1ge4 {
19
+ .gallery__hide_9pe0x {
20
20
  transform: translateY(-96px);
21
21
  }
22
- .gallery__leftButton_t1ge4,
23
- .gallery__rightButtons_t1ge4 {
22
+ .gallery__leftButton_9pe0x,
23
+ .gallery__rightButtons_9pe0x {
24
24
  display: flex;
25
25
  align-items: center;
26
26
  }
27
- .gallery__description_t1ge4 {
27
+ .gallery__description_9pe0x {
28
28
  position: absolute;
29
29
  left: 50%;
30
30
  transform: translateX(-50%);
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"headerMobile":"gallery__headerMobile_t1ge4","video":"gallery__video_t1ge4","hide":"gallery__hide_t1ge4","rightButtons":"gallery__rightButtons_t1ge4","description":"gallery__description_t1ge4"};
3
+ var styles = {"headerMobile":"gallery__headerMobile_9pe0x","video":"gallery__video_9pe0x","hide":"gallery__hide_9pe0x","rightButtons":"gallery__rightButtons_9pe0x","description":"gallery__description_9pe0x"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map
@@ -12,23 +12,23 @@
12
12
  :root {
13
13
  --focus-color: var(--color-light-status-info);
14
14
  }
15
- .gallery__component_14mo1 {
15
+ .gallery__component_1pxtz {
16
16
  display: flex;
17
17
  z-index: 3;
18
18
  overflow: hidden;
19
19
  transition: border 0.15s ease-in-out;
20
20
  outline: none;
21
21
  }
22
- .gallery__component_14mo1 .gallery__image_14mo1 {
22
+ .gallery__component_1pxtz .gallery__image_1pxtz {
23
23
  opacity: 0.3;
24
24
  }
25
- .gallery__component_14mo1.gallery__mobile_14mo1 {
25
+ .gallery__component_1pxtz.gallery__mobile_1pxtz {
26
26
  padding: 0;
27
27
  }
28
- .gallery__active_14mo1 > .gallery__image_14mo1 {
28
+ .gallery__active_1pxtz > .gallery__image_1pxtz {
29
29
  opacity: 1;
30
30
  }
31
- .gallery__preview_14mo1 {
31
+ .gallery__preview_1pxtz {
32
32
  width: 56px;
33
33
  height: 56px;
34
34
  flex-shrink: 0;
@@ -38,15 +38,15 @@
38
38
  -moz-user-select: none;
39
39
  user-select: none;
40
40
  }
41
- .gallery__preview_14mo1.gallery__mobile_14mo1 {
41
+ .gallery__preview_1pxtz.gallery__mobile_1pxtz {
42
42
  width: 46px;
43
43
  height: 46px;
44
44
  border-radius: var(--border-radius-8);
45
45
  }
46
- .gallery__image_14mo1 {
46
+ .gallery__image_1pxtz {
47
47
  transition: opacity 0.15s ease-in-out;
48
48
  }
49
- .gallery__image_14mo1 > img {
49
+ .gallery__image_1pxtz > img {
50
50
  display: block;
51
51
  width: 100%;
52
52
  height: 100%;
@@ -56,36 +56,36 @@
56
56
  overflow: clip;
57
57
  overflow-clip-margin: border-box;
58
58
  }
59
- .gallery__image_14mo1:hover {
59
+ .gallery__image_1pxtz:hover {
60
60
  opacity: 0.7;
61
61
  }
62
- .gallery__loading_14mo1 {
62
+ .gallery__loading_1pxtz {
63
63
  background-color: var(--color-static-neutral-100-inverted);
64
64
  }
65
- .gallery__loading_14mo1 .gallery__active_14mo1 {
65
+ .gallery__loading_1pxtz .gallery__active_1pxtz {
66
66
  background-color: var(--color-static-neutral-300-inverted);
67
67
  }
68
- .gallery__brokenImageWrapper_14mo1 {
68
+ .gallery__brokenImageWrapper_1pxtz {
69
69
  display: flex;
70
70
  justify-content: center;
71
71
  align-items: center;
72
72
  background-color: var(--color-static-neutral-300-inverted);
73
73
  opacity: 0.3;
74
74
  }
75
- .gallery__brokenImageWrapper_14mo1.gallery__active_14mo1 {
75
+ .gallery__brokenImageWrapper_1pxtz.gallery__active_1pxtz {
76
76
  opacity: 1;
77
77
  }
78
- .gallery__brokenIcon_14mo1 {
78
+ .gallery__brokenIcon_1pxtz {
79
79
  width: 40px;
80
80
  height: 40px;
81
81
  }
82
- .gallery__focused_14mo1 {
82
+ .gallery__focused_1pxtz {
83
83
  outline: 2px solid var(--focus-color);
84
84
  outline-offset: 2px;
85
85
  }
86
- .gallery__canvasPreview_14mo1 {
86
+ .gallery__canvasPreview_1pxtz {
87
87
  border-radius: var(--border-radius-12);
88
88
  }
89
- .gallery__canvasPreview_14mo1.gallery__mobile_14mo1 {
89
+ .gallery__canvasPreview_1pxtz.gallery__mobile_1pxtz {
90
90
  border-radius: var(--border-radius-8);
91
91
  }
@@ -1,6 +1,6 @@
1
1
  import './index.css';
2
2
 
3
- var styles = {"component":"gallery__component_14mo1","image":"gallery__image_14mo1","mobile":"gallery__mobile_14mo1","active":"gallery__active_14mo1","preview":"gallery__preview_14mo1","loading":"gallery__loading_14mo1","brokenImageWrapper":"gallery__brokenImageWrapper_14mo1","brokenIcon":"gallery__brokenIcon_14mo1","focused":"gallery__focused_14mo1","canvasPreview":"gallery__canvasPreview_14mo1"};
3
+ var styles = {"component":"gallery__component_1pxtz","image":"gallery__image_1pxtz","mobile":"gallery__mobile_1pxtz","active":"gallery__active_1pxtz","preview":"gallery__preview_1pxtz","loading":"gallery__loading_1pxtz","brokenImageWrapper":"gallery__brokenImageWrapper_1pxtz","brokenIcon":"gallery__brokenIcon_1pxtz","focused":"gallery__focused_1pxtz","canvasPreview":"gallery__canvasPreview_1pxtz"};
4
4
 
5
5
  export { styles as default };
6
6
  //# sourceMappingURL=index.module.css.js.map