@alfalab/core-components-gallery 5.1.20 → 5.2.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.
Files changed (79) hide show
  1. package/Component.js +3 -3
  2. package/buttons-fc45def4.d.ts +11 -0
  3. package/buttons-fc45def4.js +37 -0
  4. package/components/header/Component.js +3 -6
  5. package/components/header/buttons.d.ts +0 -11
  6. package/components/header/buttons.js +13 -28
  7. package/components/header/index.css +14 -7
  8. package/components/header/index.js +1 -1
  9. package/components/header-info-block/Component.js +4 -4
  10. package/components/header-info-block/index.css +5 -5
  11. package/components/image-preview/Component.js +3 -3
  12. package/components/image-preview/index.css +22 -19
  13. package/components/image-viewer/component.js +1 -1
  14. package/components/image-viewer/index.css +31 -30
  15. package/components/image-viewer/index.js +1 -1
  16. package/components/image-viewer/slide.js +1 -1
  17. package/components/index.js +2 -2
  18. package/components/navigation-bar/Component.js +1 -1
  19. package/components/navigation-bar/index.css +7 -9
  20. package/cssm/components/header/buttons.js +6 -4
  21. package/cssm/components/header/index.module.css +11 -4
  22. package/cssm/components/header-info-block/Component.js +3 -3
  23. package/cssm/components/image-preview/Component.js +2 -2
  24. package/cssm/components/image-preview/index.module.css +11 -8
  25. package/cssm/components/image-viewer/index.module.css +12 -11
  26. package/cssm/components/image-viewer/slide.js +3 -3
  27. package/cssm/components/navigation-bar/index.module.css +1 -3
  28. package/cssm/index.module.css +3 -1
  29. package/esm/Component.js +3 -3
  30. package/esm/buttons-e3d668f3.d.ts +11 -0
  31. package/esm/buttons-e3d668f3.js +27 -0
  32. package/esm/components/header/Component.js +1 -4
  33. package/esm/components/header/buttons.d.ts +0 -11
  34. package/esm/components/header/buttons.js +9 -24
  35. package/esm/components/header/index.css +14 -7
  36. package/esm/components/header/index.js +1 -1
  37. package/esm/components/header-info-block/Component.js +4 -4
  38. package/esm/components/header-info-block/index.css +5 -5
  39. package/esm/components/image-preview/Component.js +3 -3
  40. package/esm/components/image-preview/index.css +22 -19
  41. package/esm/components/image-viewer/component.js +1 -1
  42. package/esm/components/image-viewer/index.css +31 -30
  43. package/esm/components/image-viewer/index.js +1 -1
  44. package/esm/components/image-viewer/slide.js +1 -1
  45. package/esm/components/index.js +2 -2
  46. package/esm/components/navigation-bar/Component.js +1 -1
  47. package/esm/components/navigation-bar/index.css +7 -9
  48. package/esm/index.css +6 -4
  49. package/esm/index.js +2 -2
  50. package/esm/{slide-a43275f6.js → slide-91252b0b.js} +4 -4
  51. package/index.css +6 -4
  52. package/index.js +2 -2
  53. package/modern/Component.js +3 -3
  54. package/modern/buttons-ecc0dae2.d.ts +11 -0
  55. package/modern/buttons-ecc0dae2.js +20 -0
  56. package/modern/components/header/Component.js +1 -4
  57. package/modern/components/header/buttons.d.ts +0 -11
  58. package/modern/components/header/buttons.js +8 -17
  59. package/modern/components/header/index.css +14 -7
  60. package/modern/components/header/index.js +1 -1
  61. package/modern/components/header-info-block/Component.js +4 -4
  62. package/modern/components/header-info-block/index.css +5 -5
  63. package/modern/components/image-preview/Component.js +3 -3
  64. package/modern/components/image-preview/index.css +22 -19
  65. package/modern/components/image-viewer/component.js +1 -1
  66. package/modern/components/image-viewer/index.css +31 -30
  67. package/modern/components/image-viewer/index.js +1 -1
  68. package/modern/components/image-viewer/slide.js +1 -1
  69. package/modern/components/index.js +2 -2
  70. package/modern/components/navigation-bar/Component.js +1 -1
  71. package/modern/components/navigation-bar/index.css +7 -9
  72. package/modern/index.css +6 -4
  73. package/modern/index.js +2 -2
  74. package/modern/{slide-930dfda7.js → slide-8b790c66.js} +4 -4
  75. package/package.json +2 -2
  76. package/{slide-3041629a.js → slide-ac3f2828.js} +4 -4
  77. /package/esm/{slide-a43275f6.d.ts → slide-91252b0b.d.ts} +0 -0
  78. /package/modern/{slide-930dfda7.d.ts → slide-8b790c66.d.ts} +0 -0
  79. /package/{slide-3041629a.d.ts → slide-ac3f2828.d.ts} +0 -0
package/Component.js CHANGED
@@ -17,7 +17,7 @@ require('./components/image-preview/paths.js');
17
17
  require('./components/header-info-block/Component.js');
18
18
  require('@alfalab/core-components-typography');
19
19
  require('./utils/split-filename.js');
20
- require('./components/header/buttons.js');
20
+ require('./buttons-fc45def4.js');
21
21
  require('tslib');
22
22
  require('@alfalab/core-components-icon-button');
23
23
  require('@alfalab/core-components-tooltip');
@@ -30,7 +30,7 @@ require('swiper');
30
30
  require('swiper/react');
31
31
  require('@alfalab/icons-glyph/ChevronBackHeavyMIcon');
32
32
  require('@alfalab/icons-glyph/ChevronForwardHeavyMIcon');
33
- require('./slide-3041629a.js');
33
+ require('./slide-ac3f2828.js');
34
34
  require('./components/image-viewer/paths.js');
35
35
  require('swiper/swiper.min.css');
36
36
 
@@ -38,7 +38,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
38
38
 
39
39
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
40
40
 
41
- var styles = {"container":"gallery__container_q0d2p","modal":"gallery__modal_q0d2p"};
41
+ var styles = {"container":"gallery__container_qo3ef","modal":"gallery__modal_qo3ef"};
42
42
  require('./index.css')
43
43
 
44
44
  var Backdrop = function () { return null; };
@@ -0,0 +1,11 @@
1
+ import { FC, MutableRefObject } from 'react';
2
+ import { IconButtonProps } from "@alfalab/core-components-icon-button";
3
+ type Props = Omit<IconButtonProps, 'icon' | 'colors'> & {
4
+ buttonRef?: MutableRefObject<HTMLButtonElement | null>;
5
+ download?: string | boolean;
6
+ };
7
+ declare const Fullscreen: FC<Props>;
8
+ declare const ExitFullscreen: FC<Props>;
9
+ declare const Download: FC<Props>;
10
+ declare const Exit: FC<Props>;
11
+ export { Fullscreen, ExitFullscreen, Download, Exit };
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ var tslib = require('tslib');
4
+ var React = require('react');
5
+ var coreComponentsIconButton = require('@alfalab/core-components-icon-button');
6
+ var coreComponentsTooltip = require('@alfalab/core-components-tooltip');
7
+ var ArrowsInwardMIcon = require('@alfalab/icons-glyph/ArrowsInwardMIcon');
8
+ var ArrowsOutwardMIcon = require('@alfalab/icons-glyph/ArrowsOutwardMIcon');
9
+ var CrossMIcon = require('@alfalab/icons-glyph/CrossMIcon');
10
+ var PointerDownMIcon = require('@alfalab/icons-glyph/PointerDownMIcon');
11
+
12
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
13
+
14
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
+
16
+ var styles = {"header":"gallery__header_egwod","buttons":"gallery__buttons_egwod","iconButton":"gallery__iconButton_egwod"};
17
+ require('./components/header/index.css')
18
+
19
+ var Fullscreen = function (_a) {
20
+ var buttonRef = _a.buttonRef, restProps = tslib.__rest(_a, ["buttonRef"]);
21
+ return (React__default.default.createElement(coreComponentsTooltip.Tooltip, { trigger: 'hover', position: 'bottom', content: '\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u043C \u0440\u0435\u0436\u0438\u043C\u0435', fallbackPlacements: ['bottom-end'] },
22
+ React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: ArrowsOutwardMIcon.ArrowsOutwardMIcon, colors: 'inverted', "aria-label": '\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u043C \u0440\u0435\u0436\u0438\u043C\u0435', className: styles.iconButton }))));
23
+ };
24
+ var ExitFullscreen = function (_a) {
25
+ var buttonRef = _a.buttonRef, restProps = tslib.__rest(_a, ["buttonRef"]);
26
+ return (React__default.default.createElement(coreComponentsTooltip.Tooltip, { trigger: 'hover', position: 'bottom', content: '\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430', fallbackPlacements: ['bottom-end'] },
27
+ React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: ArrowsInwardMIcon.ArrowsInwardMIcon, colors: 'inverted', "aria-label": '\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430', className: styles.iconButton }))));
28
+ };
29
+ var Download = function (props) { return (React__default.default.createElement(coreComponentsTooltip.Tooltip, { trigger: 'hover', position: 'bottom', content: '\u0421\u043A\u0430\u0447\u0430\u0442\u044C', fallbackPlacements: ['bottom-end'] },
30
+ React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, props, { icon: PointerDownMIcon.PointerDownMIcon, colors: 'inverted', "aria-label": '\u0421\u043A\u0430\u0447\u0430\u0442\u044C', className: styles.iconButton })))); };
31
+ var Exit = function (props) { return (React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, props, { icon: CrossMIcon.CrossMIcon, colors: 'inverted', "aria-label": '\u0417\u0430\u043A\u0440\u044B\u0442\u044C', className: styles.iconButton }))); };
32
+
33
+ exports.Download = Download;
34
+ exports.Exit = Exit;
35
+ exports.ExitFullscreen = ExitFullscreen;
36
+ exports.Fullscreen = Fullscreen;
37
+ exports.styles = styles;
@@ -7,7 +7,7 @@ var context = require('../../context.js');
7
7
  var utils_utils = require('../../utils/utils.js');
8
8
  var utils_constants = require('../../utils/constants.js');
9
9
  var components_headerInfoBlock_Component = require('../header-info-block/Component.js');
10
- var components_header_buttons = require('./buttons.js');
10
+ var components_header_buttons = require('../../buttons-fc45def4.js');
11
11
  require('@alfalab/core-components-typography');
12
12
  require('../../utils/split-filename.js');
13
13
  require('tslib');
@@ -22,9 +22,6 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
22
22
 
23
23
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
24
24
 
25
- var styles = {"header":"gallery__header_r3d61","buttons":"gallery__buttons_r3d61"};
26
- require('./index.css')
27
-
28
25
  var Header = function () {
29
26
  var _a;
30
27
  var _b = React.useContext(context.GalleryContext), currentSlideIndex = _b.currentSlideIndex, singleSlide = _b.singleSlide, images = _b.images, fullScreen = _b.fullScreen, getCurrentImageMeta = _b.getCurrentImageMeta, getCurrentImage = _b.getCurrentImage, setFullScreen = _b.setFullScreen, onClose = _b.onClose;
@@ -52,9 +49,9 @@ var Header = function () {
52
49
  var renderToggleFullScreenButton = function () {
53
50
  return fullScreen ? (React__default.default.createElement(components_header_buttons.ExitFullscreen, { onClick: closeFullScreen, buttonRef: toggleFullScreenButton, dataTestId: utils_constants.TestIds.EXIT_FULLSCREEN_BUTTON })) : (React__default.default.createElement(components_header_buttons.Fullscreen, { onClick: openFullScreen, buttonRef: toggleFullScreenButton, dataTestId: utils_constants.TestIds.FULLSCREEN_BUTTON }));
54
51
  };
55
- return (React__default.default.createElement("div", { className: styles.header },
52
+ return (React__default.default.createElement("div", { className: components_header_buttons.styles.header },
56
53
  React__default.default.createElement(components_headerInfoBlock_Component.HeaderInfoBlock, { filename: filename, description: description }),
57
- React__default.default.createElement("div", { className: styles.buttons },
54
+ React__default.default.createElement("div", { className: components_header_buttons.styles.buttons },
58
55
  showFullScreenButton && renderToggleFullScreenButton(),
59
56
  showDownloadButton && (React__default.default.createElement(components_header_buttons.Download, { href: currentImage === null || currentImage === void 0 ? void 0 : currentImage.src, download: currentImage === null || currentImage === void 0 ? void 0 : currentImage.name, dataTestId: utils_constants.TestIds.DOWNLOAD_BUTTON })),
60
57
  React__default.default.createElement(components_header_buttons.Exit, { onClick: onClose, dataTestId: utils_constants.TestIds.CLOSE_BUTTON }))));
@@ -1,11 +0,0 @@
1
- import { FC, MutableRefObject } from 'react';
2
- import { IconButtonProps } from "@alfalab/core-components-icon-button";
3
- type Props = Omit<IconButtonProps, 'icon' | 'colors'> & {
4
- buttonRef?: MutableRefObject<HTMLButtonElement | null>;
5
- download?: string | boolean;
6
- };
7
- declare const Fullscreen: FC<Props>;
8
- declare const ExitFullscreen: FC<Props>;
9
- declare const Download: FC<Props>;
10
- declare const Exit: FC<Props>;
11
- export { Fullscreen, ExitFullscreen, Download, Exit };
@@ -2,34 +2,19 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib = require('tslib');
6
- var React = require('react');
7
- var coreComponentsIconButton = require('@alfalab/core-components-icon-button');
8
- var coreComponentsTooltip = require('@alfalab/core-components-tooltip');
9
- var ArrowsInwardMIcon = require('@alfalab/icons-glyph/ArrowsInwardMIcon');
10
- var ArrowsOutwardMIcon = require('@alfalab/icons-glyph/ArrowsOutwardMIcon');
11
- var CrossMIcon = require('@alfalab/icons-glyph/CrossMIcon');
12
- var PointerDownMIcon = require('@alfalab/icons-glyph/PointerDownMIcon');
5
+ require('tslib');
6
+ require('react');
7
+ require('@alfalab/core-components-icon-button');
8
+ require('@alfalab/core-components-tooltip');
9
+ require('@alfalab/icons-glyph/ArrowsInwardMIcon');
10
+ require('@alfalab/icons-glyph/ArrowsOutwardMIcon');
11
+ require('@alfalab/icons-glyph/CrossMIcon');
12
+ require('@alfalab/icons-glyph/PointerDownMIcon');
13
+ var components_header_buttons = require('../../buttons-fc45def4.js');
13
14
 
14
- function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
15
15
 
16
- var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
16
 
18
- var Fullscreen = function (_a) {
19
- var buttonRef = _a.buttonRef, restProps = tslib.__rest(_a, ["buttonRef"]);
20
- return (React__default.default.createElement(coreComponentsTooltip.Tooltip, { trigger: 'hover', position: 'bottom', content: '\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u043C \u0440\u0435\u0436\u0438\u043C\u0435', fallbackPlacements: ['bottom-end'] },
21
- React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: ArrowsOutwardMIcon.ArrowsOutwardMIcon, colors: 'inverted', "aria-label": '\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u043C \u0440\u0435\u0436\u0438\u043C\u0435' }))));
22
- };
23
- var ExitFullscreen = function (_a) {
24
- var buttonRef = _a.buttonRef, restProps = tslib.__rest(_a, ["buttonRef"]);
25
- return (React__default.default.createElement(coreComponentsTooltip.Tooltip, { trigger: 'hover', position: 'bottom', content: '\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430', fallbackPlacements: ['bottom-end'] },
26
- React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, restProps, { ref: buttonRef, icon: ArrowsInwardMIcon.ArrowsInwardMIcon, colors: 'inverted', "aria-label": '\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430' }))));
27
- };
28
- var Download = function (props) { return (React__default.default.createElement(coreComponentsTooltip.Tooltip, { trigger: 'hover', position: 'bottom', content: '\u0421\u043A\u0430\u0447\u0430\u0442\u044C', fallbackPlacements: ['bottom-end'] },
29
- React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, props, { icon: PointerDownMIcon.PointerDownMIcon, colors: 'inverted', "aria-label": '\u0421\u043A\u0430\u0447\u0430\u0442\u044C' })))); };
30
- var Exit = function (props) { return (React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, props, { icon: CrossMIcon.CrossMIcon, colors: 'inverted', "aria-label": '\u0417\u0430\u043A\u0440\u044B\u0442\u044C' }))); };
31
-
32
- exports.Download = Download;
33
- exports.Exit = Exit;
34
- exports.ExitFullscreen = ExitFullscreen;
35
- exports.Fullscreen = Fullscreen;
17
+ exports.Download = components_header_buttons.Download;
18
+ exports.Exit = components_header_buttons.Exit;
19
+ exports.ExitFullscreen = components_header_buttons.ExitFullscreen;
20
+ exports.Fullscreen = components_header_buttons.Fullscreen;
@@ -1,7 +1,9 @@
1
- /* hash: 1xm7b */
1
+ /* hash: d3omy */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
- --color-light-bg-tertiary-inverted: #2c2c2e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
+ --color-static-graphic-light: #fff; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
5
+ --color-static-graphic-light-shade-7: rgb(237, 237, 237);
6
+ --color-static-graphic-light-shade-15: rgb(217, 217, 217);
5
7
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
6
8
  } :root {
7
9
  } :root {
@@ -18,15 +20,20 @@
18
20
  --gap-2xl: 32px;
19
21
  } :root {
20
22
  } :root {
21
- } .gallery__header_r3d61 {
23
+ } .gallery__header_egwod {
22
24
  display: flex;
23
25
  justify-content: space-between;
24
26
  flex-shrink: 0;
25
27
  width: 100%;
26
28
  padding: var(--gap-m) var(--gap-xl);
27
- background-color: var(--color-light-bg-tertiary-inverted);
28
29
  box-sizing: border-box;
29
- } .gallery__buttons_r3d61 {
30
+ } .gallery__buttons_egwod {
30
31
  display: flex;
31
- padding-left: var(--gap-2xl);
32
- }
32
+ padding-left: var(--gap-2xl)
33
+ } .gallery__buttons_egwod path {
34
+ color: var(--color-static-graphic-light);
35
+ } /* TODO: применять static цвет через prop IconButton'а */ .gallery__iconButton_egwod:hover path {
36
+ color: var(--color-static-graphic-light-shade-7);
37
+ } .gallery__iconButton_egwod:active path {
38
+ color: var(--color-static-graphic-light-shade-15);
39
+ }
@@ -10,7 +10,7 @@ require('../../utils/constants.js');
10
10
  require('../header-info-block/Component.js');
11
11
  require('@alfalab/core-components-typography');
12
12
  require('../../utils/split-filename.js');
13
- require('./buttons.js');
13
+ require('../../buttons-fc45def4.js');
14
14
  require('tslib');
15
15
  require('@alfalab/core-components-icon-button');
16
16
  require('@alfalab/core-components-tooltip');
@@ -10,7 +10,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
10
10
 
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
 
13
- var styles = {"info":"gallery__info_1cw1b","filenameHead":"gallery__filenameHead_1cw1b","filenameContainer":"gallery__filenameContainer_1cw1b","description":"gallery__description_1cw1b"};
13
+ var styles = {"info":"gallery__info_1080b","filenameHead":"gallery__filenameHead_1080b","filenameContainer":"gallery__filenameContainer_1080b","description":"gallery__description_1080b"};
14
14
  require('./index.css')
15
15
 
16
16
  var HeaderInfoBlock = function (_a) {
@@ -18,9 +18,9 @@ var HeaderInfoBlock = function (_a) {
18
18
  var _b = utils_splitFilename.splitFilename(filename), head = _b[0], tail = _b[1];
19
19
  return (React__default.default.createElement("div", { className: styles.info },
20
20
  React__default.default.createElement("div", { className: styles.filenameContainer },
21
- React__default.default.createElement(coreComponentsTypography.Typography.Title, { tag: 'h1', className: styles.filenameHead, view: 'xsmall', font: 'system', color: 'primary-inverted' }, head),
22
- React__default.default.createElement(coreComponentsTypography.Typography.Title, { tag: 'h1', view: 'xsmall', font: 'system', color: 'primary-inverted' }, tail)),
23
- description ? (React__default.default.createElement(coreComponentsTypography.Typography.Text, { className: styles.description, tag: 'div', view: 'primary-medium', color: 'secondary-inverted' }, description)) : null));
21
+ React__default.default.createElement(coreComponentsTypography.Typography.Title, { tag: 'h1', className: styles.filenameHead, view: 'xsmall', font: 'system', color: 'static-primary-light' }, head),
22
+ React__default.default.createElement(coreComponentsTypography.Typography.Title, { tag: 'h1', view: 'xsmall', font: 'system', color: 'static-primary-light' }, tail)),
23
+ description ? (React__default.default.createElement(coreComponentsTypography.Typography.Text, { className: styles.description, tag: 'div', view: 'primary-medium', color: 'static-secondary-light' }, description)) : null));
24
24
  };
25
25
 
26
26
  exports.HeaderInfoBlock = HeaderInfoBlock;
@@ -1,4 +1,4 @@
1
- /* hash: hzrda */
1
+ /* hash: 1in1n */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -15,21 +15,21 @@
15
15
  --gap-2xs: 4px;
16
16
  } :root {
17
17
  } :root {
18
- } .gallery__info_1cw1b {
18
+ } .gallery__info_1080b {
19
19
  height: 100%;
20
20
  display: flex;
21
21
  flex-direction: column;
22
22
  justify-content: center;
23
23
  overflow: hidden;
24
- } .gallery__filenameHead_1cw1b {
24
+ } .gallery__filenameHead_1080b {
25
25
  display: inline;
26
26
  text-overflow: ellipsis;
27
27
  overflow: hidden;
28
28
  white-space: nowrap;
29
- } .gallery__filenameContainer_1cw1b {
29
+ } .gallery__filenameContainer_1080b {
30
30
  overflow: hidden;
31
31
  display: inline-flex;
32
- } .gallery__description_1cw1b {
32
+ } .gallery__description_1080b {
33
33
  display: inline;
34
34
  text-overflow: ellipsis;
35
35
  overflow: hidden;
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
15
 
16
- var styles = {"component":"gallery__component_1y1d6","active":"gallery__active_1y1d6","image":"gallery__image_1y1d6","preview":"gallery__preview_1y1d6","loading":"gallery__loading_1y1d6","brokenImageWrapper":"gallery__brokenImageWrapper_1y1d6","brokenIcon":"gallery__brokenIcon_1y1d6","focused":"gallery__focused_1y1d6"};
16
+ var styles = {"component":"gallery__component_1fm76","active":"gallery__active_1fm76","image":"gallery__image_1fm76","preview":"gallery__preview_1fm76","loading":"gallery__loading_1fm76","brokenImageWrapper":"gallery__brokenImageWrapper_1fm76","brokenIcon":"gallery__brokenIcon_1fm76","focused":"gallery__focused_1fm76"};
17
17
  require('./index.css')
18
18
 
19
19
  var ImagePreview = function (_a) {
@@ -36,8 +36,8 @@ var ImagePreview = function (_a) {
36
36
  React__default.default.createElement("div", { className: styles.brokenIcon },
37
37
  React__default.default.createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '40', height: '40', viewBox: '0 0 40 40', fill: 'none' },
38
38
  React__default.default.createElement("rect", { width: '40', height: '40', fill: 'none' }),
39
- React__default.default.createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: components_imagePreview_paths.NoImagePaths.baseImage, fill: '#DBDEE1' }),
40
- React__default.default.createElement("path", { d: components_imagePreview_paths.NoImagePaths.triangleImage, fill: '#DBDEE1' }))))) : (React__default.default.createElement("div", { className: cn__default.default(styles.preview, styles.image, (_c = {},
39
+ React__default.default.createElement("path", { fillRule: 'evenodd', clipRule: 'evenodd', d: components_imagePreview_paths.NoImagePaths.baseImage, fill: '#89898A' }),
40
+ React__default.default.createElement("path", { d: components_imagePreview_paths.NoImagePaths.triangleImage, fill: '#89898A' }))))) : (React__default.default.createElement("div", { className: cn__default.default(styles.preview, styles.image, (_c = {},
41
41
  _c[styles.broken] = isBroken,
42
42
  _c[styles.loading] = !meta,
43
43
  _c)), style: { backgroundImage: "url(".concat(image.src, ")") } }))));
@@ -1,10 +1,12 @@
1
- /* hash: j1a0i */
1
+ /* hash: 193tx */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
5
- --color-light-border-key-inverted: #fff;
6
- --color-light-border-link: #0072ef; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
7
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
5
+ --color-light-border-link: #0072ef;
6
+ --color-static-bg-quaternary-dark: #3a3a3c;
7
+ --color-static-bg-secondary-dark: #202022; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
8
+ } :root {
9
+ --color-static-overlay-white-xhigh: rgba(255, 255, 255, 0.4); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
8
10
  } :root {
9
11
  } :root {
10
12
 
@@ -21,7 +23,7 @@
21
23
  } :root {
22
24
  } :root {
23
25
  --focus-color: var(--color-light-border-link);
24
- } .gallery__component_1y1d6 {
26
+ } .gallery__component_1fm76 {
25
27
  display: flex;
26
28
  padding: var(--gap-2xs);
27
29
  border: 2px solid rgba(0, 0, 0, 0);
@@ -29,11 +31,11 @@
29
31
  overflow: hidden;
30
32
  transition: border 0.15s ease-in-out;
31
33
  outline: none;
32
- } .gallery__active_1y1d6 {
33
- border-color: var(--color-light-border-key-inverted)
34
- } .gallery__active_1y1d6 > .gallery__image_1y1d6 {
34
+ } .gallery__active_1fm76 {
35
+ border-color: var(--color-static-overlay-white-xhigh)
36
+ } .gallery__active_1fm76 > .gallery__image_1fm76 {
35
37
  opacity: 0.7;
36
- } .gallery__preview_1y1d6 {
38
+ } .gallery__preview_1fm76 {
37
39
  width: 56px;
38
40
  height: 56px;
39
41
  flex-shrink: 0;
@@ -41,28 +43,29 @@
41
43
  cursor: pointer;
42
44
  -webkit-user-select: none;
43
45
  user-select: none;
44
- } .gallery__image_1y1d6 {
46
+ } .gallery__image_1fm76 {
45
47
  background-color: var(--color-light-bg-primary);
46
48
  background-size: cover;
47
49
  background-repeat: no-repeat;
48
50
  background-position: center;
49
51
  transition: opacity 0.15s ease-in-out
50
- } .gallery__image_1y1d6:hover {
52
+ } .gallery__image_1fm76:hover {
51
53
  opacity: 0.7;
52
- } .gallery__loading_1y1d6 {
53
- /* TODO: цвета нет в палитре */
54
- background-color: #e9eaeb;
55
- } .gallery__brokenImageWrapper_1y1d6 {
54
+ } .gallery__loading_1fm76 {
55
+ background-color: var(--color-static-bg-secondary-dark)
56
+ } .gallery__loading_1fm76 .gallery__active_1fm76 {
57
+ background-color: var(--color-static-bg-quaternary-dark);
58
+ } .gallery__brokenImageWrapper_1fm76 {
56
59
  display: flex;
57
60
  justify-content: center;
58
61
  align-items: center;
59
- background-color: var(--color-light-bg-primary)
60
- } .gallery__brokenImageWrapper_1y1d6:hover {
62
+ background-color: var(--color-static-bg-quaternary-dark)
63
+ } .gallery__brokenImageWrapper_1fm76:hover {
61
64
  opacity: 0.7;
62
- } .gallery__brokenIcon_1y1d6 {
65
+ } .gallery__brokenIcon_1fm76 {
63
66
  width: 40px;
64
67
  height: 40px;
65
- } .gallery__focused_1y1d6 {
68
+ } .gallery__focused_1fm76 {
66
69
  outline: 2px solid var(--focus-color);
67
70
  outline-offset: 2px;
68
71
  }
@@ -14,7 +14,7 @@ var ChevronForwardHeavyMIcon = require('@alfalab/icons-glyph/ChevronForwardHeavy
14
14
  var context = require('../../context.js');
15
15
  var utils_utils = require('../../utils/utils.js');
16
16
  var utils_constants = require('../../utils/constants.js');
17
- var components_imageViewer_slide = require('../../slide-3041629a.js');
17
+ var components_imageViewer_slide = require('../../slide-ac3f2828.js');
18
18
  require('swiper/swiper.min.css');
19
19
  require('@alfalab/core-components-typography');
20
20
  require('./paths.js');
@@ -1,12 +1,14 @@
1
- /* hash: 1ii84 */
1
+ /* hash: hw9ow */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
5
5
  --color-light-border-link: #0072ef;
6
- --color-light-graphic-primary-inverted: #fff; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
7
- --color-light-bg-primary-inverted-alpha-10: rgba(18, 18, 18, 0.1);
8
- --color-light-bg-primary-inverted-alpha-20: rgba(18, 18, 18, 0.2);
9
- --color-light-bg-primary-inverted-alpha-50: rgba(18, 18, 18, 0.5);
6
+ --color-static-bg-primary-dark: #121212;
7
+ --color-static-bg-quaternary-dark: #3a3a3c;
8
+ --color-static-bg-secondary-dark: #202022;
9
+ --color-static-graphic-light: #fff; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
10
+ --color-static-bg-primary-dark-tint-15: rgb(54, 54, 54);
11
+ --color-static-bg-primary-dark-tint-20: rgb(65, 65, 65);
10
12
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
11
13
  } :root {
12
14
  } :root {
@@ -25,13 +27,13 @@
25
27
  } :root {
26
28
  } :root {
27
29
  --focus-color: var(--color-light-border-link);
28
- } .gallery__component_yskc6 {
30
+ } .gallery__component_pw918 {
29
31
  display: flex;
30
32
  flex-grow: 1;
31
33
  justify-content: center;
32
34
  align-items: center;
33
- background-color: var(--color-light-bg-primary-inverted-alpha-50);
34
- } .gallery__swiper_yskc6 {
35
+ background-color: var(--color-static-bg-primary-dark);
36
+ } .gallery__swiper_pw918 {
35
37
  display: flex;
36
38
  width: 100%;
37
39
  height: 100%;
@@ -40,43 +42,42 @@
40
42
  max-height: calc(100vh - 168px);
41
43
  padding: var(--gap-2xl) var(--gap-m);
42
44
  box-sizing: border-box;
43
- } .gallery__singleSlide_yskc6 .gallery__swiper_yskc6 {
45
+ } .gallery__singleSlide_pw918 .gallery__swiper_pw918 {
44
46
  max-height: calc(100vh - 80px);
45
47
  padding: var(--gap-2xl);
46
- } .gallery__hidden_yskc6 {
48
+ } .gallery__hidden_pw918 {
47
49
  display: none;
48
- } .gallery__slide_yskc6 {
50
+ } .gallery__slide_pw918 {
49
51
  position: relative;
50
52
  display: flex;
51
53
  justify-content: center;
52
54
  align-items: center;
53
55
  width: 100%;
54
56
  height: 100%;
55
- } .gallery__slideLoading_yskc6 {
56
- /* TODO: цвета нет в палитре */
57
- background-color: #e9eaeb;
57
+ } .gallery__slideLoading_pw918 {
58
+ background-color: var(--color-static-bg-secondary-dark);
58
59
  border-radius: var(--border-radius-m);
59
- } .gallery__image_yskc6 {
60
+ } .gallery__image_pw918 {
60
61
  width: 0;
61
62
  height: 0;
62
63
  -webkit-user-select: none;
63
64
  user-select: none;
64
65
  background-color: var(--color-light-bg-primary);
65
66
  border-radius: var(--border-radius-m);
66
- } .gallery__smallImage_yskc6 {
67
+ } .gallery__smallImage_pw918 {
67
68
  position: relative;
68
69
  width: auto;
69
70
  height: auto;
70
71
  -webkit-user-select: none;
71
72
  user-select: none;
72
73
  background-color: var(--color-light-bg-primary);
73
- } .gallery__verticalImageFit_yskc6 {
74
+ } .gallery__verticalImageFit_pw918 {
74
75
  width: auto;
75
76
  height: 100%;
76
- } .gallery__horizontalImageFit_yskc6 {
77
+ } .gallery__horizontalImageFit_pw918 {
77
78
  width: 100%;
78
79
  height: auto;
79
- } .gallery__arrow_yskc6 {
80
+ } .gallery__arrow_pw918 {
80
81
  display: flex;
81
82
  flex-direction: column;
82
83
  justify-content: center;
@@ -85,36 +86,36 @@
85
86
  width: 96px;
86
87
  height: 100%;
87
88
  cursor: pointer;
88
- color: var(--color-light-graphic-primary-inverted);
89
+ color: var(--color-static-graphic-light);
89
90
  transition: background-color 0.15s ease-in-out;
90
91
  outline: none
91
- } .gallery__arrow_yskc6:hover {
92
- background-color: var(--color-light-bg-primary-inverted-alpha-10);
93
- } .gallery__arrow_yskc6:active {
94
- background-color: var(--color-light-bg-primary-inverted-alpha-20);
95
- } .gallery__focused_yskc6 {
92
+ } .gallery__arrow_pw918:hover {
93
+ background-color: var(--color-static-bg-primary-dark-tint-15);
94
+ } .gallery__arrow_pw918:active {
95
+ background-color: var(--color-static-bg-primary-dark-tint-20);
96
+ } .gallery__focused_pw918 {
96
97
  outline: 2px solid var(--focus-color);
97
98
  outline-offset: 2px;
98
- } .gallery__placeholder_yskc6 {
99
+ } .gallery__placeholder_pw918 {
99
100
  display: flex;
100
101
  justify-content: center;
101
102
  align-items: center;
102
103
  width: 400px;
103
104
  height: 300px;
104
105
  border-radius: var(--border-radius-m);
105
- background-color: var(--color-light-bg-primary);
106
- } .gallery__brokenImgWrapper_yskc6 {
106
+ background-color: var(--color-static-bg-quaternary-dark);
107
+ } .gallery__brokenImgWrapper_pw918 {
107
108
  position: relative;
108
109
  display: flex;
109
110
  flex-direction: column;
110
111
  align-items: center;
111
112
  width: 150px;
112
113
  text-align: center;
113
- } .gallery__brokenImgIcon_yskc6 {
114
+ } .gallery__brokenImgIcon_pw918 {
114
115
  width: 80px;
115
116
  height: 80px;
116
117
  margin-bottom: var(--gap-2xs);
117
- } .gallery__fullScreenImage_yskc6 {
118
+ } .gallery__fullScreenImage_pw918 {
118
119
  width: 100%;
119
120
  height: auto;
120
121
  background-color: var(--color-light-bg-primary);
@@ -15,7 +15,7 @@ require('@alfalab/icons-glyph/ChevronForwardHeavyMIcon');
15
15
  require('../../context.js');
16
16
  require('../../utils/utils.js');
17
17
  require('../../utils/constants.js');
18
- require('../../slide-3041629a.js');
18
+ require('../../slide-ac3f2828.js');
19
19
  require('@alfalab/core-components-typography');
20
20
  require('./paths.js');
21
21
  require('swiper/swiper.min.css');
@@ -8,7 +8,7 @@ require('@alfalab/core-components-typography');
8
8
  require('../../utils/utils.js');
9
9
  require('../../utils/constants.js');
10
10
  require('./paths.js');
11
- var components_imageViewer_slide = require('../../slide-3041629a.js');
11
+ var components_imageViewer_slide = require('../../slide-ac3f2828.js');
12
12
 
13
13
 
14
14
 
@@ -13,7 +13,7 @@ require('../utils/constants.js');
13
13
  require('./header-info-block/Component.js');
14
14
  require('@alfalab/core-components-typography');
15
15
  require('../utils/split-filename.js');
16
- require('./header/buttons.js');
16
+ require('../buttons-fc45def4.js');
17
17
  require('tslib');
18
18
  require('@alfalab/core-components-icon-button');
19
19
  require('@alfalab/core-components-tooltip');
@@ -29,7 +29,7 @@ require('swiper');
29
29
  require('swiper/react');
30
30
  require('@alfalab/icons-glyph/ChevronBackHeavyMIcon');
31
31
  require('@alfalab/icons-glyph/ChevronForwardHeavyMIcon');
32
- require('../slide-3041629a.js');
32
+ require('../slide-ac3f2828.js');
33
33
  require('./image-viewer/paths.js');
34
34
  require('swiper/swiper.min.css');
35
35
 
@@ -15,7 +15,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
15
15
 
16
16
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
17
 
18
- var styles = {"component":"gallery__component_1lbky","preview":"gallery__preview_1lbky"};
18
+ var styles = {"component":"gallery__component_7umhe","preview":"gallery__preview_7umhe"};
19
19
  require('./index.css')
20
20
 
21
21
  var MIN_SCROLL_STEP = 24;