@alfalab/core-components-gallery 5.1.13 → 5.1.14

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 (73) hide show
  1. package/Component.js +3 -3
  2. package/components/header/Component.js +2 -2
  3. package/components/header/buttons.js +7 -7
  4. package/components/header/index.css +3 -3
  5. package/components/header/index.js +1 -1
  6. package/components/header-info-block/Component.js +1 -1
  7. package/components/header-info-block/index.css +5 -5
  8. package/components/image-preview/Component.js +1 -1
  9. package/components/image-preview/index.css +12 -12
  10. package/components/image-viewer/component.js +3 -3
  11. package/components/image-viewer/index.css +19 -19
  12. package/components/image-viewer/index.js +2 -2
  13. package/components/image-viewer/slide.js +1 -1
  14. package/components/index.js +2 -2
  15. package/components/navigation-bar/Component.js +1 -1
  16. package/components/navigation-bar/index.css +6 -6
  17. package/cssm/Component.js +1 -1
  18. package/cssm/components/header/Component.js +1 -1
  19. package/cssm/components/header/buttons.js +7 -7
  20. package/cssm/components/header/index.js +1 -1
  21. package/cssm/components/image-viewer/component.js +2 -2
  22. package/cssm/components/image-viewer/index.js +1 -1
  23. package/cssm/components/index.js +1 -1
  24. package/cssm/index.js +1 -1
  25. package/esm/Component.js +3 -3
  26. package/esm/components/header/Component.js +2 -2
  27. package/esm/components/header/buttons.js +1 -1
  28. package/esm/components/header/index.css +3 -3
  29. package/esm/components/header/index.js +1 -1
  30. package/esm/components/header-info-block/Component.js +1 -1
  31. package/esm/components/header-info-block/index.css +5 -5
  32. package/esm/components/image-preview/Component.js +1 -1
  33. package/esm/components/image-preview/index.css +12 -12
  34. package/esm/components/image-viewer/component.js +2 -2
  35. package/esm/components/image-viewer/index.css +19 -19
  36. package/esm/components/image-viewer/index.js +2 -2
  37. package/esm/components/image-viewer/slide.js +1 -1
  38. package/esm/components/index.js +2 -2
  39. package/esm/components/navigation-bar/Component.js +1 -1
  40. package/esm/components/navigation-bar/index.css +6 -6
  41. package/esm/index.css +3 -3
  42. package/esm/index.js +2 -2
  43. package/esm/{slide-de8d7d54.d.ts → slide-746d03af.d.ts} +0 -0
  44. package/esm/{slide-de8d7d54.js → slide-746d03af.js} +1 -1
  45. package/index.css +3 -3
  46. package/index.js +2 -2
  47. package/modern/Component.js +2 -2
  48. package/modern/components/header/Component.js +1 -1
  49. package/modern/components/header/index.css +3 -3
  50. package/modern/components/header-info-block/Component.js +1 -1
  51. package/modern/components/header-info-block/index.css +5 -5
  52. package/modern/components/image-preview/Component.js +1 -1
  53. package/modern/components/image-preview/index.css +12 -12
  54. package/modern/components/image-viewer/component.js +1 -1
  55. package/modern/components/image-viewer/index.css +19 -19
  56. package/modern/components/image-viewer/index.js +1 -1
  57. package/modern/components/image-viewer/slide.js +1 -1
  58. package/modern/components/index.js +1 -1
  59. package/modern/components/navigation-bar/Component.js +1 -1
  60. package/modern/components/navigation-bar/index.css +6 -6
  61. package/modern/index.css +3 -3
  62. package/modern/index.js +1 -1
  63. package/modern/{slide-ec907dae.d.ts → slide-88e3f94f.d.ts} +0 -0
  64. package/modern/{slide-ec907dae.js → slide-88e3f94f.js} +1 -1
  65. package/package.json +7 -6
  66. package/{slide-ee3bbf48.d.ts → slide-2c42ca22.d.ts} +0 -0
  67. package/{slide-ee3bbf48.js → slide-2c42ca22.js} +1 -1
  68. package/cssm/tslib.es6-bbd6cd2a.d.ts +0 -36
  69. package/cssm/tslib.es6-bbd6cd2a.js +0 -42
  70. package/esm/tslib.es6-e0d70486.d.ts +0 -36
  71. package/esm/tslib.es6-e0d70486.js +0 -40
  72. package/tslib.es6-25ea1724.d.ts +0 -36
  73. package/tslib.es6-25ea1724.js +0 -42
package/Component.js CHANGED
@@ -16,7 +16,7 @@ require('./components/header-info-block/Component.js');
16
16
  require('@alfalab/core-components-typography');
17
17
  require('./utils/split-filename.js');
18
18
  require('./components/header/buttons.js');
19
- require('./tslib.es6-25ea1724.js');
19
+ require('tslib');
20
20
  require('@alfalab/core-components-icon-button');
21
21
  require('@alfalab/core-components-tooltip');
22
22
  require('@alfalab/icons-glyph/ArrowsInwardMIcon');
@@ -28,7 +28,7 @@ require('swiper');
28
28
  require('swiper/react');
29
29
  require('@alfalab/icons-glyph/ChevronBackHeavyMIcon');
30
30
  require('@alfalab/icons-glyph/ChevronForwardHeavyMIcon');
31
- require('./slide-ee3bbf48.js');
31
+ require('./slide-2c42ca22.js');
32
32
  require('./components/image-viewer/paths.js');
33
33
  require('swiper/swiper.min.css');
34
34
 
@@ -36,7 +36,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
36
36
 
37
37
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
38
38
 
39
- var styles = {"container":"gallery__container_19j7d","modal":"gallery__modal_19j7d"};
39
+ var styles = {"container":"gallery__container_wtfqa","modal":"gallery__modal_wtfqa"};
40
40
  require('./index.css')
41
41
 
42
42
  var Backdrop = function () { return null; };
@@ -8,7 +8,7 @@ var components_headerInfoBlock_Component = require('../header-info-block/Compone
8
8
  var components_header_buttons = require('./buttons.js');
9
9
  require('@alfalab/core-components-typography');
10
10
  require('../../utils/split-filename.js');
11
- require('../../tslib.es6-25ea1724.js');
11
+ require('tslib');
12
12
  require('@alfalab/core-components-icon-button');
13
13
  require('@alfalab/core-components-tooltip');
14
14
  require('@alfalab/icons-glyph/ArrowsInwardMIcon');
@@ -20,7 +20,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
20
20
 
21
21
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
22
22
 
23
- var styles = {"header":"gallery__header_1qimz","buttons":"gallery__buttons_1qimz"};
23
+ var styles = {"header":"gallery__header_gzhg7","buttons":"gallery__buttons_gzhg7"};
24
24
  require('./index.css')
25
25
 
26
26
  var Header = function () {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../../tslib.es6-25ea1724.js');
3
+ var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var coreComponentsIconButton = require('@alfalab/core-components-icon-button');
6
6
  var coreComponentsTooltip = require('@alfalab/core-components-tooltip');
@@ -14,18 +14,18 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
14
14
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
15
 
16
16
  var Fullscreen = function (_a) {
17
- var buttonRef = _a.buttonRef, restProps = tslib_es6.__rest(_a, ["buttonRef"]);
17
+ var buttonRef = _a.buttonRef, restProps = tslib.__rest(_a, ["buttonRef"]);
18
18
  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'] },
19
- React__default.default.createElement(coreComponentsIconButton.IconButton, tslib_es6.__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' }))));
19
+ 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' }))));
20
20
  };
21
21
  var ExitFullscreen = function (_a) {
22
- var buttonRef = _a.buttonRef, restProps = tslib_es6.__rest(_a, ["buttonRef"]);
22
+ var buttonRef = _a.buttonRef, restProps = tslib.__rest(_a, ["buttonRef"]);
23
23
  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'] },
24
- React__default.default.createElement(coreComponentsIconButton.IconButton, tslib_es6.__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' }))));
24
+ 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' }))));
25
25
  };
26
26
  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'] },
27
- React__default.default.createElement(coreComponentsIconButton.IconButton, tslib_es6.__assign({}, props, { icon: PointerDownMIcon.PointerDownMIcon, colors: 'inverted', "aria-label": '\u0421\u043A\u0430\u0447\u0430\u0442\u044C' })))); };
28
- var Exit = function (props) { return (React__default.default.createElement(coreComponentsIconButton.IconButton, tslib_es6.__assign({}, props, { icon: CrossMIcon.CrossMIcon, colors: 'inverted', "aria-label": '\u0417\u0430\u043A\u0440\u044B\u0442\u044C' }))); };
27
+ React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, props, { icon: PointerDownMIcon.PointerDownMIcon, colors: 'inverted', "aria-label": '\u0421\u043A\u0430\u0447\u0430\u0442\u044C' })))); };
28
+ 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' }))); };
29
29
 
30
30
  exports.Download = Download;
31
31
  exports.Exit = Exit;
@@ -1,4 +1,4 @@
1
- /* hash: 1ncjy */
1
+ /* hash: qsqmm */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-tertiary-inverted: #3c4c5d;
@@ -18,7 +18,7 @@
18
18
  --gap-2xl: 32px;
19
19
  } :root {
20
20
  } :root {
21
- } .gallery__header_1qimz {
21
+ } .gallery__header_gzhg7 {
22
22
  display: flex;
23
23
  justify-content: space-between;
24
24
  flex-shrink: 0;
@@ -26,7 +26,7 @@
26
26
  padding: var(--gap-m) var(--gap-xl);
27
27
  background-color: var(--color-light-bg-tertiary-inverted);
28
28
  box-sizing: border-box;
29
- } .gallery__buttons_1qimz {
29
+ } .gallery__buttons_gzhg7 {
30
30
  display: flex;
31
31
  padding-left: var(--gap-2xl);
32
32
  }
@@ -9,7 +9,7 @@ require('../header-info-block/Component.js');
9
9
  require('@alfalab/core-components-typography');
10
10
  require('../../utils/split-filename.js');
11
11
  require('./buttons.js');
12
- require('../../tslib.es6-25ea1724.js');
12
+ require('tslib');
13
13
  require('@alfalab/core-components-icon-button');
14
14
  require('@alfalab/core-components-tooltip');
15
15
  require('@alfalab/icons-glyph/ArrowsInwardMIcon');
@@ -8,7 +8,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
8
8
 
9
9
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
10
10
 
11
- var styles = {"info":"gallery__info_1nwl5","filenameHead":"gallery__filenameHead_1nwl5","filenameContainer":"gallery__filenameContainer_1nwl5","description":"gallery__description_1nwl5"};
11
+ var styles = {"info":"gallery__info_b9x68","filenameHead":"gallery__filenameHead_b9x68","filenameContainer":"gallery__filenameContainer_b9x68","description":"gallery__description_b9x68"};
12
12
  require('./index.css')
13
13
 
14
14
  var HeaderInfoBlock = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: fpfmt */
1
+ /* hash: nnyjy */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  } :root {
@@ -15,21 +15,21 @@
15
15
  --gap-2xs: 4px;
16
16
  } :root {
17
17
  } :root {
18
- } .gallery__info_1nwl5 {
18
+ } .gallery__info_b9x68 {
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_1nwl5 {
24
+ } .gallery__filenameHead_b9x68 {
25
25
  display: inline;
26
26
  text-overflow: ellipsis;
27
27
  overflow: hidden;
28
28
  white-space: nowrap;
29
- } .gallery__filenameContainer_1nwl5 {
29
+ } .gallery__filenameContainer_b9x68 {
30
30
  overflow: hidden;
31
31
  display: inline-flex;
32
- } .gallery__description_1nwl5 {
32
+ } .gallery__description_b9x68 {
33
33
  display: inline;
34
34
  text-overflow: ellipsis;
35
35
  overflow: hidden;
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
13
 
14
- var styles = {"component":"gallery__component_a0sya","active":"gallery__active_a0sya","image":"gallery__image_a0sya","preview":"gallery__preview_a0sya","loading":"gallery__loading_a0sya","brokenImageWrapper":"gallery__brokenImageWrapper_a0sya","brokenIcon":"gallery__brokenIcon_a0sya","focused":"gallery__focused_a0sya"};
14
+ var styles = {"component":"gallery__component_wf91b","active":"gallery__active_wf91b","image":"gallery__image_wf91b","preview":"gallery__preview_wf91b","loading":"gallery__loading_wf91b","brokenImageWrapper":"gallery__brokenImageWrapper_wf91b","brokenIcon":"gallery__brokenIcon_wf91b","focused":"gallery__focused_wf91b"};
15
15
  require('./index.css')
16
16
 
17
17
  var ImagePreview = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 667x3 */
1
+ /* hash: e4qu8 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -21,7 +21,7 @@
21
21
  } :root {
22
22
  } :root {
23
23
  --focus-color: var(--color-light-border-link);
24
- } .gallery__component_a0sya {
24
+ } .gallery__component_wf91b {
25
25
  display: flex;
26
26
  padding: var(--gap-2xs);
27
27
  border: 2px solid rgba(0, 0, 0, 0);
@@ -29,11 +29,11 @@
29
29
  overflow: hidden;
30
30
  transition: border 0.15s ease-in-out;
31
31
  outline: none;
32
- } .gallery__active_a0sya {
32
+ } .gallery__active_wf91b {
33
33
  border-color: var(--color-light-border-key-inverted)
34
- } .gallery__active_a0sya > .gallery__image_a0sya {
34
+ } .gallery__active_wf91b > .gallery__image_wf91b {
35
35
  opacity: 0.7;
36
- } .gallery__preview_a0sya {
36
+ } .gallery__preview_wf91b {
37
37
  width: 56px;
38
38
  height: 56px;
39
39
  flex-shrink: 0;
@@ -41,28 +41,28 @@
41
41
  cursor: pointer;
42
42
  -webkit-user-select: none;
43
43
  user-select: none;
44
- } .gallery__image_a0sya {
44
+ } .gallery__image_wf91b {
45
45
  background-color: var(--color-light-bg-primary);
46
46
  background-size: cover;
47
47
  background-repeat: no-repeat;
48
48
  background-position: center;
49
49
  transition: opacity 0.15s ease-in-out
50
- } .gallery__image_a0sya:hover {
50
+ } .gallery__image_wf91b:hover {
51
51
  opacity: 0.7;
52
- } .gallery__loading_a0sya {
52
+ } .gallery__loading_wf91b {
53
53
  /* TODO: цвета нет в палитре */
54
54
  background-color: #e9eaeb;
55
- } .gallery__brokenImageWrapper_a0sya {
55
+ } .gallery__brokenImageWrapper_wf91b {
56
56
  display: flex;
57
57
  justify-content: center;
58
58
  align-items: center;
59
59
  background-color: var(--color-light-bg-primary)
60
- } .gallery__brokenImageWrapper_a0sya:hover {
60
+ } .gallery__brokenImageWrapper_wf91b:hover {
61
61
  opacity: 0.7;
62
- } .gallery__brokenIcon_a0sya {
62
+ } .gallery__brokenIcon_wf91b {
63
63
  width: 40px;
64
64
  height: 40px;
65
- } .gallery__focused_a0sya {
65
+ } .gallery__focused_wf91b {
66
66
  outline: 2px solid var(--focus-color);
67
67
  outline-offset: 2px;
68
68
  }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../../tslib.es6-25ea1724.js');
3
+ var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var cn = require('classnames');
6
6
  var elementClosest = require('element-closest');
@@ -12,7 +12,7 @@ var ChevronForwardHeavyMIcon = require('@alfalab/icons-glyph/ChevronForwardHeavy
12
12
  var context = require('../../context.js');
13
13
  var utils_utils = require('../../utils/utils.js');
14
14
  var utils_constants = require('../../utils/constants.js');
15
- var components_imageViewer_slide = require('../../slide-ee3bbf48.js');
15
+ var components_imageViewer_slide = require('../../slide-2c42ca22.js');
16
16
  require('swiper/swiper.min.css');
17
17
  require('@alfalab/core-components-typography');
18
18
  require('./paths.js');
@@ -107,7 +107,7 @@ var ImageViewer = function () {
107
107
  _b)), onClick: handlePrevClick, role: 'button', onKeyDown: handleArrowLeftKeyDown, tabIndex: 0, ref: leftArrowRef, "aria-label": '\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435', "data-test-id": utils_constants.TestIds.PREV_SLIDE_BUTTON },
108
108
  React__default.default.createElement(ChevronBackHeavyMIcon.ChevronBackHeavyMIcon, null))),
109
109
  fullScreen && (React__default.default.createElement("img", { src: currentImage === null || currentImage === void 0 ? void 0 : currentImage.src, alt: currentImage ? utils_utils.getImageAlt(currentImage, currentSlideIndex) : '', className: components_imageViewer_slide.styles.fullScreenImage })),
110
- React__default.default.createElement(react.Swiper, tslib_es6.__assign({}, swiperProps), images.map(function (image, index) {
110
+ React__default.default.createElement(react.Swiper, tslib.__assign({}, swiperProps), images.map(function (image, index) {
111
111
  var meta = imagesMeta[index];
112
112
  var imageWidth = (meta === null || meta === void 0 ? void 0 : meta.width) || 1;
113
113
  var imageHeight = (meta === null || meta === void 0 ? void 0 : meta.height) || 1;
@@ -1,4 +1,4 @@
1
- /* hash: 1rcgb */
1
+ /* hash: sxr2a */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -25,13 +25,13 @@
25
25
  } :root {
26
26
  } :root {
27
27
  --focus-color: var(--color-light-border-link);
28
- } .gallery__component_1ooqb {
28
+ } .gallery__component_ndo9f {
29
29
  display: flex;
30
30
  flex-grow: 1;
31
31
  justify-content: center;
32
32
  align-items: center;
33
33
  background-color: var(--color-light-bg-primary-inverted-alpha-50);
34
- } .gallery__swiper_1ooqb {
34
+ } .gallery__swiper_ndo9f {
35
35
  display: flex;
36
36
  width: 100%;
37
37
  height: 100%;
@@ -40,43 +40,43 @@
40
40
  max-height: calc(100vh - 168px);
41
41
  padding: var(--gap-2xl) var(--gap-m);
42
42
  box-sizing: border-box;
43
- } .gallery__singleSlide_1ooqb .gallery__swiper_1ooqb {
43
+ } .gallery__singleSlide_ndo9f .gallery__swiper_ndo9f {
44
44
  max-height: calc(100vh - 80px);
45
45
  padding: var(--gap-2xl);
46
- } .gallery__hidden_1ooqb {
46
+ } .gallery__hidden_ndo9f {
47
47
  display: none;
48
- } .gallery__slide_1ooqb {
48
+ } .gallery__slide_ndo9f {
49
49
  position: relative;
50
50
  display: flex;
51
51
  justify-content: center;
52
52
  align-items: center;
53
53
  width: 100%;
54
54
  height: 100%;
55
- } .gallery__slideLoading_1ooqb {
55
+ } .gallery__slideLoading_ndo9f {
56
56
  /* TODO: цвета нет в палитре */
57
57
  background-color: #e9eaeb;
58
58
  border-radius: var(--border-radius-m);
59
- } .gallery__image_1ooqb {
59
+ } .gallery__image_ndo9f {
60
60
  width: 0;
61
61
  height: 0;
62
62
  -webkit-user-select: none;
63
63
  user-select: none;
64
64
  background-color: var(--color-light-bg-primary);
65
65
  border-radius: var(--border-radius-m);
66
- } .gallery__smallImage_1ooqb {
66
+ } .gallery__smallImage_ndo9f {
67
67
  position: relative;
68
68
  width: auto;
69
69
  height: auto;
70
70
  -webkit-user-select: none;
71
71
  user-select: none;
72
72
  background-color: var(--color-light-bg-primary);
73
- } .gallery__verticalImageFit_1ooqb {
73
+ } .gallery__verticalImageFit_ndo9f {
74
74
  width: auto;
75
75
  height: 100%;
76
- } .gallery__horizontalImageFit_1ooqb {
76
+ } .gallery__horizontalImageFit_ndo9f {
77
77
  width: 100%;
78
78
  height: auto;
79
- } .gallery__arrow_1ooqb {
79
+ } .gallery__arrow_ndo9f {
80
80
  display: flex;
81
81
  flex-direction: column;
82
82
  justify-content: center;
@@ -88,14 +88,14 @@
88
88
  color: var(--color-light-graphic-primary-inverted);
89
89
  transition: background-color 0.15s ease-in-out;
90
90
  outline: none
91
- } .gallery__arrow_1ooqb:hover {
91
+ } .gallery__arrow_ndo9f:hover {
92
92
  background-color: var(--color-light-bg-primary-inverted-alpha-10);
93
- } .gallery__arrow_1ooqb:active {
93
+ } .gallery__arrow_ndo9f:active {
94
94
  background-color: var(--color-light-bg-primary-inverted-alpha-20);
95
- } .gallery__focused_1ooqb {
95
+ } .gallery__focused_ndo9f {
96
96
  outline: 2px solid var(--focus-color);
97
97
  outline-offset: 2px;
98
- } .gallery__placeholder_1ooqb {
98
+ } .gallery__placeholder_ndo9f {
99
99
  display: flex;
100
100
  justify-content: center;
101
101
  align-items: center;
@@ -103,18 +103,18 @@
103
103
  height: 300px;
104
104
  border-radius: var(--border-radius-m);
105
105
  background-color: var(--color-light-bg-primary);
106
- } .gallery__brokenImgWrapper_1ooqb {
106
+ } .gallery__brokenImgWrapper_ndo9f {
107
107
  position: relative;
108
108
  display: flex;
109
109
  flex-direction: column;
110
110
  align-items: center;
111
111
  width: 150px;
112
112
  text-align: center;
113
- } .gallery__brokenImgIcon_1ooqb {
113
+ } .gallery__brokenImgIcon_ndo9f {
114
114
  width: 80px;
115
115
  height: 80px;
116
116
  margin-bottom: var(--gap-2xs);
117
- } .gallery__fullScreenImage_1ooqb {
117
+ } .gallery__fullScreenImage_ndo9f {
118
118
  width: 100%;
119
119
  height: auto;
120
120
  background-color: var(--color-light-bg-primary);
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var components_imageViewer_component = require('./component.js');
4
- require('../../tslib.es6-25ea1724.js');
4
+ require('tslib');
5
5
  require('react');
6
6
  require('classnames');
7
7
  require('element-closest');
@@ -13,7 +13,7 @@ require('@alfalab/icons-glyph/ChevronForwardHeavyMIcon');
13
13
  require('../../context.js');
14
14
  require('../../utils/utils.js');
15
15
  require('../../utils/constants.js');
16
- require('../../slide-ee3bbf48.js');
16
+ require('../../slide-2c42ca22.js');
17
17
  require('@alfalab/core-components-typography');
18
18
  require('./paths.js');
19
19
  require('swiper/swiper.min.css');
@@ -6,7 +6,7 @@ require('@alfalab/core-components-typography');
6
6
  require('../../utils/utils.js');
7
7
  require('../../utils/constants.js');
8
8
  require('./paths.js');
9
- var components_imageViewer_slide = require('../../slide-ee3bbf48.js');
9
+ var components_imageViewer_slide = require('../../slide-2c42ca22.js');
10
10
 
11
11
 
12
12
 
@@ -15,7 +15,7 @@ require('./header-info-block/Component.js');
15
15
  require('@alfalab/core-components-typography');
16
16
  require('../utils/split-filename.js');
17
17
  require('./header/buttons.js');
18
- require('../tslib.es6-25ea1724.js');
18
+ require('tslib');
19
19
  require('@alfalab/core-components-icon-button');
20
20
  require('@alfalab/core-components-tooltip');
21
21
  require('@alfalab/icons-glyph/ArrowsInwardMIcon');
@@ -27,7 +27,7 @@ require('swiper');
27
27
  require('swiper/react');
28
28
  require('@alfalab/icons-glyph/ChevronBackHeavyMIcon');
29
29
  require('@alfalab/icons-glyph/ChevronForwardHeavyMIcon');
30
- require('../slide-ee3bbf48.js');
30
+ require('../slide-2c42ca22.js');
31
31
  require('./image-viewer/paths.js');
32
32
  require('swiper/swiper.min.css');
33
33
 
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
13
 
14
14
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
15
 
16
- var styles = {"component":"gallery__component_ct2lm","preview":"gallery__preview_ct2lm"};
16
+ var styles = {"component":"gallery__component_hg7d4","preview":"gallery__preview_hg7d4"};
17
17
  require('./index.css')
18
18
 
19
19
  var MIN_SCROLL_STEP = 24;
@@ -1,4 +1,4 @@
1
- /* hash: 1p6g2 */
1
+ /* hash: 1x4yz */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-tertiary-inverted: #3c4c5d;
@@ -17,7 +17,7 @@
17
17
  --gap-xl: 24px;
18
18
  } :root {
19
19
  } :root {
20
- } .gallery__component_ct2lm {
20
+ } .gallery__component_hg7d4 {
21
21
  display: flex;
22
22
  flex-wrap: nowrap;
23
23
  align-content: center;
@@ -29,13 +29,13 @@
29
29
  -ms-overflow-style: none;
30
30
  background-color: var(--color-light-bg-tertiary-inverted);
31
31
  scrollbar-width: none
32
- } .gallery__component_ct2lm::-webkit-scrollbar {
32
+ } .gallery__component_hg7d4::-webkit-scrollbar {
33
33
  display: none;
34
- } .gallery__preview_ct2lm {
34
+ } .gallery__preview_hg7d4 {
35
35
  flex-shrink: 0;
36
36
  margin: 0 var(--gap-3xs)
37
- } .gallery__preview_ct2lm:first-child {
37
+ } .gallery__preview_hg7d4:first-child {
38
38
  margin-left: auto;
39
- } .gallery__preview_ct2lm:last-child {
39
+ } .gallery__preview_hg7d4:last-child {
40
40
  margin-right: auto;
41
41
  }
package/cssm/Component.js CHANGED
@@ -20,7 +20,7 @@ require('@alfalab/core-components-typography/cssm');
20
20
  require('./utils/split-filename.js');
21
21
  require('./components/header-info-block/index.module.css');
22
22
  require('./components/header/buttons.js');
23
- require('./tslib.es6-bbd6cd2a.js');
23
+ require('tslib');
24
24
  require('@alfalab/core-components-icon-button/cssm');
25
25
  require('@alfalab/core-components-tooltip/cssm');
26
26
  require('@alfalab/icons-glyph/ArrowsInwardMIcon');
@@ -10,7 +10,7 @@ var styles = require('./index.module.css');
10
10
  require('@alfalab/core-components-typography/cssm');
11
11
  require('../../utils/split-filename.js');
12
12
  require('../header-info-block/index.module.css');
13
- require('../../tslib.es6-bbd6cd2a.js');
13
+ require('tslib');
14
14
  require('@alfalab/core-components-icon-button/cssm');
15
15
  require('@alfalab/core-components-tooltip/cssm');
16
16
  require('@alfalab/icons-glyph/ArrowsInwardMIcon');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../../tslib.es6-bbd6cd2a.js');
3
+ var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var coreComponentsIconButton = require('@alfalab/core-components-icon-button/cssm');
6
6
  var coreComponentsTooltip = require('@alfalab/core-components-tooltip/cssm');
@@ -14,18 +14,18 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
14
14
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
15
 
16
16
  var Fullscreen = function (_a) {
17
- var buttonRef = _a.buttonRef, restProps = tslib_es6.__rest(_a, ["buttonRef"]);
17
+ var buttonRef = _a.buttonRef, restProps = tslib.__rest(_a, ["buttonRef"]);
18
18
  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'] },
19
- React__default.default.createElement(coreComponentsIconButton.IconButton, tslib_es6.__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' }))));
19
+ 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' }))));
20
20
  };
21
21
  var ExitFullscreen = function (_a) {
22
- var buttonRef = _a.buttonRef, restProps = tslib_es6.__rest(_a, ["buttonRef"]);
22
+ var buttonRef = _a.buttonRef, restProps = tslib.__rest(_a, ["buttonRef"]);
23
23
  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'] },
24
- React__default.default.createElement(coreComponentsIconButton.IconButton, tslib_es6.__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' }))));
24
+ 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' }))));
25
25
  };
26
26
  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'] },
27
- React__default.default.createElement(coreComponentsIconButton.IconButton, tslib_es6.__assign({}, props, { icon: PointerDownMIcon.PointerDownMIcon, colors: 'inverted', "aria-label": '\u0421\u043A\u0430\u0447\u0430\u0442\u044C' })))); };
28
- var Exit = function (props) { return (React__default.default.createElement(coreComponentsIconButton.IconButton, tslib_es6.__assign({}, props, { icon: CrossMIcon.CrossMIcon, colors: 'inverted', "aria-label": '\u0417\u0430\u043A\u0440\u044B\u0442\u044C' }))); };
27
+ React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({}, props, { icon: PointerDownMIcon.PointerDownMIcon, colors: 'inverted', "aria-label": '\u0421\u043A\u0430\u0447\u0430\u0442\u044C' })))); };
28
+ 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' }))); };
29
29
 
30
30
  exports.Download = Download;
31
31
  exports.Exit = Exit;
@@ -10,7 +10,7 @@ require('@alfalab/core-components-typography/cssm');
10
10
  require('../../utils/split-filename.js');
11
11
  require('../header-info-block/index.module.css');
12
12
  require('./buttons.js');
13
- require('../../tslib.es6-bbd6cd2a.js');
13
+ require('tslib');
14
14
  require('@alfalab/core-components-icon-button/cssm');
15
15
  require('@alfalab/core-components-tooltip/cssm');
16
16
  require('@alfalab/icons-glyph/ArrowsInwardMIcon');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../../tslib.es6-bbd6cd2a.js');
3
+ var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var cn = require('classnames');
6
6
  var elementClosest = require('element-closest');
@@ -109,7 +109,7 @@ var ImageViewer = function () {
109
109
  _b)), onClick: handlePrevClick, role: 'button', onKeyDown: handleArrowLeftKeyDown, tabIndex: 0, ref: leftArrowRef, "aria-label": '\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435', "data-test-id": utils_constants.TestIds.PREV_SLIDE_BUTTON },
110
110
  React__default.default.createElement(ChevronBackHeavyMIcon.ChevronBackHeavyMIcon, null))),
111
111
  fullScreen && (React__default.default.createElement("img", { src: currentImage === null || currentImage === void 0 ? void 0 : currentImage.src, alt: currentImage ? utils_utils.getImageAlt(currentImage, currentSlideIndex) : '', className: styles__default.default.fullScreenImage })),
112
- React__default.default.createElement(react.Swiper, tslib_es6.__assign({}, swiperProps), images.map(function (image, index) {
112
+ React__default.default.createElement(react.Swiper, tslib.__assign({}, swiperProps), images.map(function (image, index) {
113
113
  var meta = imagesMeta[index];
114
114
  var imageWidth = (meta === null || meta === void 0 ? void 0 : meta.width) || 1;
115
115
  var imageHeight = (meta === null || meta === void 0 ? void 0 : meta.height) || 1;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var components_imageViewer_component = require('./component.js');
4
- require('../../tslib.es6-bbd6cd2a.js');
4
+ require('tslib');
5
5
  require('react');
6
6
  require('classnames');
7
7
  require('element-closest');
@@ -18,7 +18,7 @@ require('@alfalab/core-components-typography/cssm');
18
18
  require('../utils/split-filename.js');
19
19
  require('./header-info-block/index.module.css');
20
20
  require('./header/buttons.js');
21
- require('../tslib.es6-bbd6cd2a.js');
21
+ require('tslib');
22
22
  require('@alfalab/core-components-icon-button/cssm');
23
23
  require('@alfalab/core-components-tooltip/cssm');
24
24
  require('@alfalab/icons-glyph/ArrowsInwardMIcon');
package/cssm/index.js CHANGED
@@ -19,7 +19,7 @@ require('./components/header-info-block/Component.js');
19
19
  require('@alfalab/core-components-typography/cssm');
20
20
  require('./components/header-info-block/index.module.css');
21
21
  require('./components/header/buttons.js');
22
- require('./tslib.es6-bbd6cd2a.js');
22
+ require('tslib');
23
23
  require('@alfalab/core-components-icon-button/cssm');
24
24
  require('@alfalab/core-components-tooltip/cssm');
25
25
  require('@alfalab/icons-glyph/ArrowsInwardMIcon');
package/esm/Component.js CHANGED
@@ -14,7 +14,7 @@ import './components/header-info-block/Component.js';
14
14
  import '@alfalab/core-components-typography/esm';
15
15
  import './utils/split-filename.js';
16
16
  import './components/header/buttons.js';
17
- import './tslib.es6-e0d70486.js';
17
+ import 'tslib';
18
18
  import '@alfalab/core-components-icon-button/esm';
19
19
  import '@alfalab/core-components-tooltip/esm';
20
20
  import '@alfalab/icons-glyph/ArrowsInwardMIcon';
@@ -26,11 +26,11 @@ import 'swiper';
26
26
  import 'swiper/react';
27
27
  import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
28
28
  import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
29
- import './slide-de8d7d54.js';
29
+ import './slide-746d03af.js';
30
30
  import './components/image-viewer/paths.js';
31
31
  import 'swiper/swiper.min.css';
32
32
 
33
- var styles = {"container":"gallery__container_19j7d","modal":"gallery__modal_19j7d"};
33
+ var styles = {"container":"gallery__container_wtfqa","modal":"gallery__modal_wtfqa"};
34
34
  require('./index.css')
35
35
 
36
36
  var Backdrop = function () { return null; };
@@ -6,7 +6,7 @@ import { HeaderInfoBlock } from '../header-info-block/Component.js';
6
6
  import { Download, Exit, ExitFullscreen, Fullscreen } from './buttons.js';
7
7
  import '@alfalab/core-components-typography/esm';
8
8
  import '../../utils/split-filename.js';
9
- import '../../tslib.es6-e0d70486.js';
9
+ import 'tslib';
10
10
  import '@alfalab/core-components-icon-button/esm';
11
11
  import '@alfalab/core-components-tooltip/esm';
12
12
  import '@alfalab/icons-glyph/ArrowsInwardMIcon';
@@ -14,7 +14,7 @@ import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
14
14
  import '@alfalab/icons-glyph/CrossMIcon';
15
15
  import '@alfalab/icons-glyph/PointerDownMIcon';
16
16
 
17
- var styles = {"header":"gallery__header_1qimz","buttons":"gallery__buttons_1qimz"};
17
+ var styles = {"header":"gallery__header_gzhg7","buttons":"gallery__buttons_gzhg7"};
18
18
  require('./index.css')
19
19
 
20
20
  var Header = function () {
@@ -1,4 +1,4 @@
1
- import { a as __rest, _ as __assign } from '../../tslib.es6-e0d70486.js';
1
+ import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import { IconButton } from '@alfalab/core-components-icon-button/esm';
4
4
  import { Tooltip } from '@alfalab/core-components-tooltip/esm';