@alfalab/core-components-gallery 5.3.10 → 5.3.12

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 (83) hide show
  1. package/Component.js +3 -3
  2. package/{esm/buttons-5eaa830c.d.ts → buttons-08924d01.d.ts} +1 -1
  3. package/{buttons-45b9cac0.js → buttons-08924d01.js} +1 -1
  4. package/components/header/Component.js +1 -1
  5. package/components/header/buttons.js +1 -1
  6. package/components/header/index.css +6 -6
  7. package/components/header/index.js +1 -1
  8. package/components/header-info-block/Component.js +1 -1
  9. package/components/header-info-block/index.css +5 -5
  10. package/components/image-preview/Component.js +1 -1
  11. package/components/image-preview/index.css +13 -13
  12. package/components/image-viewer/component.js +1 -1
  13. package/components/image-viewer/index.css +19 -19
  14. package/components/image-viewer/index.js +1 -1
  15. package/components/image-viewer/slide.js +1 -1
  16. package/components/index.js +2 -2
  17. package/components/navigation-bar/Component.js +1 -1
  18. package/components/navigation-bar/index.css +6 -6
  19. package/cssm/index-72308007.d.ts +54 -0
  20. package/cssm/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
  21. package/esm/Component.js +3 -3
  22. package/{buttons-45b9cac0.d.ts → esm/buttons-27ac6101.d.ts} +1 -1
  23. package/esm/{buttons-5eaa830c.js → buttons-27ac6101.js} +1 -1
  24. package/esm/components/header/Component.js +1 -1
  25. package/esm/components/header/buttons.js +1 -1
  26. package/esm/components/header/index.css +6 -6
  27. package/esm/components/header/index.js +1 -1
  28. package/esm/components/header-info-block/Component.js +1 -1
  29. package/esm/components/header-info-block/index.css +5 -5
  30. package/esm/components/image-preview/Component.js +1 -1
  31. package/esm/components/image-preview/index.css +13 -13
  32. package/esm/components/image-viewer/component.js +1 -1
  33. package/esm/components/image-viewer/index.css +19 -19
  34. package/esm/components/image-viewer/index.js +1 -1
  35. package/esm/components/image-viewer/slide.js +1 -1
  36. package/esm/components/index.js +2 -2
  37. package/esm/components/navigation-bar/Component.js +1 -1
  38. package/esm/components/navigation-bar/index.css +6 -6
  39. package/esm/index-72308007.d.ts +54 -0
  40. package/esm/index.css +3 -3
  41. package/esm/index.js +2 -2
  42. package/esm/{slide-572da7ff.js → slide-09f92147.js} +1 -1
  43. package/{types-83e2bd9e.d.ts → esm/types-1c79e231.d.ts} +1 -1
  44. package/index-72308007.d.ts +54 -0
  45. package/index.css +3 -3
  46. package/index.js +2 -2
  47. package/modern/Component.js +3 -3
  48. package/modern/{buttons-e4041cab.d.ts → buttons-7979ea09.d.ts} +1 -1
  49. package/modern/{buttons-e4041cab.js → buttons-7979ea09.js} +1 -1
  50. package/modern/components/header/Component.js +1 -1
  51. package/modern/components/header/buttons.js +1 -1
  52. package/modern/components/header/index.css +6 -6
  53. package/modern/components/header/index.js +1 -1
  54. package/modern/components/header-info-block/Component.js +1 -1
  55. package/modern/components/header-info-block/index.css +5 -5
  56. package/modern/components/image-preview/Component.js +1 -1
  57. package/modern/components/image-preview/index.css +13 -13
  58. package/modern/components/image-viewer/component.js +1 -1
  59. package/modern/components/image-viewer/index.css +19 -19
  60. package/modern/components/image-viewer/index.js +1 -1
  61. package/modern/components/image-viewer/slide.js +1 -1
  62. package/modern/components/index.js +2 -2
  63. package/modern/components/navigation-bar/Component.js +1 -1
  64. package/modern/components/navigation-bar/index.css +6 -6
  65. package/modern/index-72308007.d.ts +54 -0
  66. package/modern/index.css +3 -3
  67. package/modern/index.js +2 -2
  68. package/modern/{slide-2e004a9e.js → slide-c1e21a1a.js} +1 -1
  69. package/{esm/types-83e2bd9e.d.ts → modern/types-1c79e231.d.ts} +1 -1
  70. package/package.json +4 -4
  71. package/{slide-588bab1f.js → slide-f49b98f3.js} +1 -1
  72. package/{modern/types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
  73. package/cssm/index-1a4fbd11.d.ts +0 -22
  74. package/esm/index-1a4fbd11.d.ts +0 -22
  75. package/index-1a4fbd11.d.ts +0 -22
  76. package/modern/index-1a4fbd11.d.ts +0 -22
  77. /package/{Component-1a4fbd11.d.ts → Component-72308007.d.ts} +0 -0
  78. /package/cssm/{Component-1a4fbd11.d.ts → Component-72308007.d.ts} +0 -0
  79. /package/esm/{Component-1a4fbd11.d.ts → Component-72308007.d.ts} +0 -0
  80. /package/esm/{slide-572da7ff.d.ts → slide-09f92147.d.ts} +0 -0
  81. /package/modern/{Component-1a4fbd11.d.ts → Component-72308007.d.ts} +0 -0
  82. /package/modern/{slide-2e004a9e.d.ts → slide-c1e21a1a.d.ts} +0 -0
  83. /package/{slide-588bab1f.d.ts → slide-f49b98f3.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('./buttons-45b9cac0.js');
20
+ require('./buttons-08924d01.js');
21
21
  require('tslib');
22
22
  require('@alfalab/core-components-icon-button');
23
23
  require('@alfalab/core-components-tooltip/desktop');
@@ -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-588bab1f.js');
33
+ require('./slide-f49b98f3.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_1dhdc","modal":"gallery__modal_1dhdc"};
41
+ var styles = {"container":"gallery__container_1qx65","modal":"gallery__modal_1qx65"};
42
42
  require('./index.css')
43
43
 
44
44
  var Backdrop = function () { return null; };
@@ -2,7 +2,7 @@
2
2
  /// <reference types="react" />
3
3
  import { FC, MutableRefObject, ReactElement, ReactNode, RefObject, CSSProperties, MouseEvent } from "react";
4
4
  import { TransitionProps } from "react-transition-group/Transition";
5
- import { NavigationBarProps } from "./types-83e2bd9e";
5
+ import { NavigationBarProps } from "./types-1c79e231";
6
6
  import { CSSTransitionProps, CSSTransitionClassNames } from "react-transition-group/CSSTransition";
7
7
  import { BasePlacement, VariationPlacement } from "@popperjs/core";
8
8
  import { SwipeableHandlers } from "react-swipeable";
@@ -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 = {"header":"gallery__header_kgi4f","buttons":"gallery__buttons_kgi4f","iconButton":"gallery__iconButton_kgi4f"};
16
+ var styles = {"header":"gallery__header_1l8jr","buttons":"gallery__buttons_1l8jr","iconButton":"gallery__iconButton_1l8jr"};
17
17
  require('./components/header/index.css')
18
18
 
19
19
  var Fullscreen = function (_a) {
@@ -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-45b9cac0.js');
10
+ var components_header_buttons = require('../../buttons-08924d01.js');
11
11
  require('@alfalab/core-components-typography');
12
12
  require('../../utils/split-filename.js');
13
13
  require('tslib');
@@ -10,7 +10,7 @@ require('@alfalab/icons-glyph/ArrowsInwardMIcon');
10
10
  require('@alfalab/icons-glyph/ArrowsOutwardMIcon');
11
11
  require('@alfalab/icons-glyph/CrossMIcon');
12
12
  require('@alfalab/icons-glyph/PointerDownMIcon');
13
- var components_header_buttons = require('../../buttons-45b9cac0.js');
13
+ var components_header_buttons = require('../../buttons-08924d01.js');
14
14
 
15
15
 
16
16
 
@@ -1,4 +1,4 @@
1
- /* hash: 1lmke */
1
+ /* hash: 55flj */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
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 */
@@ -20,20 +20,20 @@
20
20
  --gap-2xl: 32px;
21
21
  } :root {
22
22
  } :root {
23
- } .gallery__header_kgi4f {
23
+ } .gallery__header_1l8jr {
24
24
  display: flex;
25
25
  justify-content: space-between;
26
26
  flex-shrink: 0;
27
27
  width: 100%;
28
28
  padding: var(--gap-m) var(--gap-xl);
29
29
  box-sizing: border-box;
30
- } .gallery__buttons_kgi4f {
30
+ } .gallery__buttons_1l8jr {
31
31
  display: flex;
32
32
  padding-left: var(--gap-2xl)
33
- } .gallery__buttons_kgi4f path {
33
+ } .gallery__buttons_1l8jr path {
34
34
  color: var(--color-static-graphic-light);
35
- } /* TODO: применять static цвет через prop IconButton'а */ .gallery__iconButton_kgi4f:hover path {
35
+ } /* TODO: применять static цвет через prop IconButton'а */ .gallery__iconButton_1l8jr:hover path {
36
36
  color: var(--color-static-graphic-light-shade-7);
37
- } .gallery__iconButton_kgi4f:active path {
37
+ } .gallery__iconButton_1l8jr:active path {
38
38
  color: var(--color-static-graphic-light-shade-15);
39
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-45b9cac0.js');
13
+ require('../../buttons-08924d01.js');
14
14
  require('tslib');
15
15
  require('@alfalab/core-components-icon-button');
16
16
  require('@alfalab/core-components-tooltip/desktop');
@@ -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_1ke3x","filenameHead":"gallery__filenameHead_1ke3x","filenameContainer":"gallery__filenameContainer_1ke3x","description":"gallery__description_1ke3x"};
13
+ var styles = {"info":"gallery__info_43639","filenameHead":"gallery__filenameHead_43639","filenameContainer":"gallery__filenameContainer_43639","description":"gallery__description_43639"};
14
14
  require('./index.css')
15
15
 
16
16
  var HeaderInfoBlock = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1hkvm */
1
+ /* hash: 1alfs */
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_1ke3x {
18
+ } .gallery__info_43639 {
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_1ke3x {
24
+ } .gallery__filenameHead_43639 {
25
25
  display: inline;
26
26
  text-overflow: ellipsis;
27
27
  overflow: hidden;
28
28
  white-space: nowrap;
29
- } .gallery__filenameContainer_1ke3x {
29
+ } .gallery__filenameContainer_43639 {
30
30
  overflow: hidden;
31
31
  display: inline-flex;
32
- } .gallery__description_1ke3x {
32
+ } .gallery__description_43639 {
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_1rnda","active":"gallery__active_1rnda","image":"gallery__image_1rnda","preview":"gallery__preview_1rnda","loading":"gallery__loading_1rnda","brokenImageWrapper":"gallery__brokenImageWrapper_1rnda","brokenIcon":"gallery__brokenIcon_1rnda","focused":"gallery__focused_1rnda"};
16
+ var styles = {"component":"gallery__component_yt4fz","active":"gallery__active_yt4fz","image":"gallery__image_yt4fz","preview":"gallery__preview_yt4fz","loading":"gallery__loading_yt4fz","brokenImageWrapper":"gallery__brokenImageWrapper_yt4fz","brokenIcon":"gallery__brokenIcon_yt4fz","focused":"gallery__focused_yt4fz"};
17
17
  require('./index.css')
18
18
 
19
19
  var ImagePreview = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 16cva */
1
+ /* hash: 11282 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -23,7 +23,7 @@
23
23
  } :root {
24
24
  } :root {
25
25
  --focus-color: var(--color-light-border-link);
26
- } .gallery__component_1rnda {
26
+ } .gallery__component_yt4fz {
27
27
  display: flex;
28
28
  padding: var(--gap-2xs);
29
29
  border: 2px solid rgba(0, 0, 0, 0);
@@ -31,11 +31,11 @@
31
31
  overflow: hidden;
32
32
  transition: border 0.15s ease-in-out;
33
33
  outline: none;
34
- } .gallery__active_1rnda {
34
+ } .gallery__active_yt4fz {
35
35
  border-color: var(--color-static-overlay-white-xhigh)
36
- } .gallery__active_1rnda > .gallery__image_1rnda {
36
+ } .gallery__active_yt4fz > .gallery__image_yt4fz {
37
37
  opacity: 0.7;
38
- } .gallery__preview_1rnda {
38
+ } .gallery__preview_yt4fz {
39
39
  width: 56px;
40
40
  height: 56px;
41
41
  flex-shrink: 0;
@@ -43,29 +43,29 @@
43
43
  cursor: pointer;
44
44
  -webkit-user-select: none;
45
45
  user-select: none;
46
- } .gallery__image_1rnda {
46
+ } .gallery__image_yt4fz {
47
47
  background-color: var(--color-light-bg-primary);
48
48
  background-size: cover;
49
49
  background-repeat: no-repeat;
50
50
  background-position: center;
51
51
  transition: opacity 0.15s ease-in-out
52
- } .gallery__image_1rnda:hover {
52
+ } .gallery__image_yt4fz:hover {
53
53
  opacity: 0.7;
54
- } .gallery__loading_1rnda {
54
+ } .gallery__loading_yt4fz {
55
55
  background-color: var(--color-static-bg-secondary-dark)
56
- } .gallery__loading_1rnda .gallery__active_1rnda {
56
+ } .gallery__loading_yt4fz .gallery__active_yt4fz {
57
57
  background-color: var(--color-static-bg-quaternary-dark);
58
- } .gallery__brokenImageWrapper_1rnda {
58
+ } .gallery__brokenImageWrapper_yt4fz {
59
59
  display: flex;
60
60
  justify-content: center;
61
61
  align-items: center;
62
62
  background-color: var(--color-static-bg-quaternary-dark)
63
- } .gallery__brokenImageWrapper_1rnda:hover {
63
+ } .gallery__brokenImageWrapper_yt4fz:hover {
64
64
  opacity: 0.7;
65
- } .gallery__brokenIcon_1rnda {
65
+ } .gallery__brokenIcon_yt4fz {
66
66
  width: 40px;
67
67
  height: 40px;
68
- } .gallery__focused_1rnda {
68
+ } .gallery__focused_yt4fz {
69
69
  outline: 2px solid var(--focus-color);
70
70
  outline-offset: 2px;
71
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-588bab1f.js');
17
+ var components_imageViewer_slide = require('../../slide-f49b98f3.js');
18
18
  require('swiper/swiper.min.css');
19
19
  require('@alfalab/core-components-typography');
20
20
  require('./paths.js');
@@ -1,4 +1,4 @@
1
- /* hash: 101yq */
1
+ /* hash: 1bxvr */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -27,13 +27,13 @@
27
27
  } :root {
28
28
  } :root {
29
29
  --focus-color: var(--color-light-border-link);
30
- } .gallery__component_h9h9f {
30
+ } .gallery__component_1nik5 {
31
31
  display: flex;
32
32
  flex-grow: 1;
33
33
  justify-content: center;
34
34
  align-items: center;
35
35
  background-color: var(--color-static-bg-primary-dark);
36
- } .gallery__swiper_h9h9f {
36
+ } .gallery__swiper_1nik5 {
37
37
  display: flex;
38
38
  width: 100%;
39
39
  height: 100%;
@@ -42,42 +42,42 @@
42
42
  max-height: calc(100vh - 168px);
43
43
  padding: var(--gap-2xl) var(--gap-m);
44
44
  box-sizing: border-box;
45
- } .gallery__singleSlide_h9h9f .gallery__swiper_h9h9f {
45
+ } .gallery__singleSlide_1nik5 .gallery__swiper_1nik5 {
46
46
  max-height: calc(100vh - 80px);
47
47
  padding: var(--gap-2xl);
48
- } .gallery__hidden_h9h9f {
48
+ } .gallery__hidden_1nik5 {
49
49
  display: none;
50
- } .gallery__slide_h9h9f {
50
+ } .gallery__slide_1nik5 {
51
51
  position: relative;
52
52
  display: flex;
53
53
  justify-content: center;
54
54
  align-items: center;
55
55
  width: 100%;
56
56
  height: 100%;
57
- } .gallery__slideLoading_h9h9f {
57
+ } .gallery__slideLoading_1nik5 {
58
58
  background-color: var(--color-static-bg-secondary-dark);
59
59
  border-radius: var(--border-radius-m);
60
- } .gallery__image_h9h9f {
60
+ } .gallery__image_1nik5 {
61
61
  width: 0;
62
62
  height: 0;
63
63
  -webkit-user-select: none;
64
64
  user-select: none;
65
65
  background-color: var(--color-light-bg-primary);
66
66
  border-radius: var(--border-radius-m);
67
- } .gallery__smallImage_h9h9f {
67
+ } .gallery__smallImage_1nik5 {
68
68
  position: relative;
69
69
  width: auto;
70
70
  height: auto;
71
71
  -webkit-user-select: none;
72
72
  user-select: none;
73
73
  background-color: var(--color-light-bg-primary);
74
- } .gallery__verticalImageFit_h9h9f {
74
+ } .gallery__verticalImageFit_1nik5 {
75
75
  width: auto;
76
76
  height: 100%;
77
- } .gallery__horizontalImageFit_h9h9f {
77
+ } .gallery__horizontalImageFit_1nik5 {
78
78
  width: 100%;
79
79
  height: auto;
80
- } .gallery__arrow_h9h9f {
80
+ } .gallery__arrow_1nik5 {
81
81
  display: flex;
82
82
  flex-direction: column;
83
83
  justify-content: center;
@@ -89,14 +89,14 @@
89
89
  color: var(--color-static-graphic-light);
90
90
  transition: background-color 0.15s ease-in-out;
91
91
  outline: none
92
- } .gallery__arrow_h9h9f:hover {
92
+ } .gallery__arrow_1nik5:hover {
93
93
  background-color: var(--color-static-bg-primary-dark-tint-15);
94
- } .gallery__arrow_h9h9f:active {
94
+ } .gallery__arrow_1nik5:active {
95
95
  background-color: var(--color-static-bg-primary-dark-tint-20);
96
- } .gallery__focused_h9h9f {
96
+ } .gallery__focused_1nik5 {
97
97
  outline: 2px solid var(--focus-color);
98
98
  outline-offset: 2px;
99
- } .gallery__placeholder_h9h9f {
99
+ } .gallery__placeholder_1nik5 {
100
100
  display: flex;
101
101
  justify-content: center;
102
102
  align-items: center;
@@ -104,18 +104,18 @@
104
104
  height: 300px;
105
105
  border-radius: var(--border-radius-m);
106
106
  background-color: var(--color-static-bg-quaternary-dark);
107
- } .gallery__brokenImgWrapper_h9h9f {
107
+ } .gallery__brokenImgWrapper_1nik5 {
108
108
  position: relative;
109
109
  display: flex;
110
110
  flex-direction: column;
111
111
  align-items: center;
112
112
  width: 150px;
113
113
  text-align: center;
114
- } .gallery__brokenImgIcon_h9h9f {
114
+ } .gallery__brokenImgIcon_1nik5 {
115
115
  width: 80px;
116
116
  height: 80px;
117
117
  margin-bottom: var(--gap-2xs);
118
- } .gallery__fullScreenImage_h9h9f {
118
+ } .gallery__fullScreenImage_1nik5 {
119
119
  width: 100%;
120
120
  height: auto;
121
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-588bab1f.js');
18
+ require('../../slide-f49b98f3.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-588bab1f.js');
11
+ var components_imageViewer_slide = require('../../slide-f49b98f3.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('../buttons-45b9cac0.js');
16
+ require('../buttons-08924d01.js');
17
17
  require('tslib');
18
18
  require('@alfalab/core-components-icon-button');
19
19
  require('@alfalab/core-components-tooltip/desktop');
@@ -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-588bab1f.js');
32
+ require('../slide-f49b98f3.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_1mpmx","preview":"gallery__preview_1mpmx"};
18
+ var styles = {"component":"gallery__component_1lfy5","preview":"gallery__preview_1lfy5"};
19
19
  require('./index.css')
20
20
 
21
21
  var MIN_SCROLL_STEP = 24;
@@ -1,4 +1,4 @@
1
- /* hash: 1x536 */
1
+ /* hash: 1ys0s */
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 */
@@ -16,7 +16,7 @@
16
16
  --gap-xl: 24px;
17
17
  } :root {
18
18
  } :root {
19
- } .gallery__component_1mpmx {
19
+ } .gallery__component_1lfy5 {
20
20
  display: flex;
21
21
  flex-wrap: nowrap;
22
22
  align-content: center;
@@ -27,13 +27,13 @@
27
27
  padding: 10px var(--gap-xl);
28
28
  -ms-overflow-style: none;
29
29
  scrollbar-width: none
30
- } .gallery__component_1mpmx::-webkit-scrollbar {
30
+ } .gallery__component_1lfy5::-webkit-scrollbar {
31
31
  display: none;
32
- } .gallery__preview_1mpmx {
32
+ } .gallery__preview_1lfy5 {
33
33
  flex-shrink: 0;
34
34
  margin: 0 var(--gap-3xs)
35
- } .gallery__preview_1mpmx:first-child {
35
+ } .gallery__preview_1lfy5:first-child {
36
36
  margin-left: auto;
37
- } .gallery__preview_1mpmx:last-child {
37
+ } .gallery__preview_1lfy5:last-child {
38
38
  margin-right: auto;
39
39
  }
@@ -0,0 +1,54 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { PaddingType } from "./index-72dda473";
4
+ /* eslint-disable no-plusplus, no-param-reassign */
5
+ import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
6
+ declare const isClient: () => boolean;
7
+ declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
8
+ declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
9
+ declare function easeInOutQuad(x: number): number;
10
+ declare const easingFns: {
11
+ easeInOutQuad: typeof easeInOutQuad;
12
+ };
13
+ declare function disableUserInput<T>(disabled: boolean | undefined, event: React.KeyboardEvent<T>): void;
14
+ declare const inputUtils: {
15
+ disableUserInput: typeof disableUserInput;
16
+ };
17
+ /**
18
+ * Возвращает true, если значение равно null или undefined
19
+ */
20
+ declare function isNil(value: unknown): boolean;
21
+ /**
22
+ * Выбор значения между min max границами
23
+ */
24
+ declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
25
+ declare function noop(): void;
26
+ declare const fnUtils: {
27
+ clamp: typeof clamp;
28
+ noop: typeof noop;
29
+ isNil: typeof isNil;
30
+ };
31
+ /**
32
+ * Запрещает каретке становиться за указанные границы
33
+ */
34
+ declare function caretGuard(guard: (value: string, selection: readonly [
35
+ from: number,
36
+ to: number
37
+ ]) => [
38
+ from: number,
39
+ to: number
40
+ ]): MaskitoPlugin;
41
+ /**
42
+ * Запрещает удалять указанный префикс
43
+ */
44
+ declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
45
+ /**
46
+ * Препроцессор необходим для правильной вставки/автокомплита телефонного номера
47
+ */
48
+ declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
49
+ declare const maskUtils: {
50
+ insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
51
+ prefixPostprocessor: typeof prefixPostprocessor;
52
+ caretGuard: typeof caretGuard;
53
+ };
54
+ export { isClient, getDataTestId, createPaddingStyle, easingFns, inputUtils, fnUtils, maskUtils };
@@ -14,7 +14,7 @@ type NavigationBarProps = {
14
14
  /**
15
15
  * Подзаголовок (доступен только в мобильной версии)
16
16
  */
17
- subtitle?: string;
17
+ subtitle?: ReactNode;
18
18
  /**
19
19
  * Размер заголовка (compact доступен только в мобильной версии)
20
20
  */
package/esm/Component.js CHANGED
@@ -13,7 +13,7 @@ import './components/image-preview/paths.js';
13
13
  import './components/header-info-block/Component.js';
14
14
  import '@alfalab/core-components-typography/esm';
15
15
  import './utils/split-filename.js';
16
- import './buttons-5eaa830c.js';
16
+ import './buttons-27ac6101.js';
17
17
  import 'tslib';
18
18
  import '@alfalab/core-components-icon-button/esm';
19
19
  import '@alfalab/core-components-tooltip/esm/desktop';
@@ -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-572da7ff.js';
29
+ import './slide-09f92147.js';
30
30
  import './components/image-viewer/paths.js';
31
31
  import 'swiper/swiper.min.css';
32
32
 
33
- var styles = {"container":"gallery__container_1dhdc","modal":"gallery__modal_1dhdc"};
33
+ var styles = {"container":"gallery__container_1qx65","modal":"gallery__modal_1qx65"};
34
34
  require('./index.css')
35
35
 
36
36
  var Backdrop = function () { return null; };
@@ -2,7 +2,7 @@
2
2
  /// <reference types="react" />
3
3
  import { FC, MutableRefObject, ReactElement, ReactNode, RefObject, CSSProperties, MouseEvent } from "react";
4
4
  import { TransitionProps } from "react-transition-group/Transition";
5
- import { NavigationBarProps } from "./types-83e2bd9e";
5
+ import { NavigationBarProps } from "./types-1c79e231";
6
6
  import { CSSTransitionProps, CSSTransitionClassNames } from "react-transition-group/CSSTransition";
7
7
  import { BasePlacement, VariationPlacement } from "@popperjs/core";
8
8
  import { SwipeableHandlers } from "react-swipeable";
@@ -7,7 +7,7 @@ import { ArrowsOutwardMIcon } from '@alfalab/icons-glyph/ArrowsOutwardMIcon';
7
7
  import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
8
8
  import { PointerDownMIcon } from '@alfalab/icons-glyph/PointerDownMIcon';
9
9
 
10
- var styles = {"header":"gallery__header_kgi4f","buttons":"gallery__buttons_kgi4f","iconButton":"gallery__iconButton_kgi4f"};
10
+ var styles = {"header":"gallery__header_1l8jr","buttons":"gallery__buttons_1l8jr","iconButton":"gallery__iconButton_1l8jr"};
11
11
  require('./components/header/index.css')
12
12
 
13
13
  var Fullscreen = function (_a) {
@@ -3,7 +3,7 @@ import { GalleryContext } from '../../context.js';
3
3
  import { isSmallImage } from '../../utils/utils.js';
4
4
  import { TestIds } from '../../utils/constants.js';
5
5
  import { HeaderInfoBlock } from '../header-info-block/Component.js';
6
- import { s as styles, D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-5eaa830c.js';
6
+ import { s as styles, D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-27ac6101.js';
7
7
  import '@alfalab/core-components-typography/esm';
8
8
  import '../../utils/split-filename.js';
9
9
  import 'tslib';
@@ -6,4 +6,4 @@ import '@alfalab/icons-glyph/ArrowsInwardMIcon';
6
6
  import '@alfalab/icons-glyph/ArrowsOutwardMIcon';
7
7
  import '@alfalab/icons-glyph/CrossMIcon';
8
8
  import '@alfalab/icons-glyph/PointerDownMIcon';
9
- export { D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-5eaa830c.js';
9
+ export { D as Download, E as Exit, a as ExitFullscreen, F as Fullscreen } from '../../buttons-27ac6101.js';
@@ -1,4 +1,4 @@
1
- /* hash: 1lmke */
1
+ /* hash: 55flj */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
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 */
@@ -20,20 +20,20 @@
20
20
  --gap-2xl: 32px;
21
21
  } :root {
22
22
  } :root {
23
- } .gallery__header_kgi4f {
23
+ } .gallery__header_1l8jr {
24
24
  display: flex;
25
25
  justify-content: space-between;
26
26
  flex-shrink: 0;
27
27
  width: 100%;
28
28
  padding: var(--gap-m) var(--gap-xl);
29
29
  box-sizing: border-box;
30
- } .gallery__buttons_kgi4f {
30
+ } .gallery__buttons_1l8jr {
31
31
  display: flex;
32
32
  padding-left: var(--gap-2xl)
33
- } .gallery__buttons_kgi4f path {
33
+ } .gallery__buttons_1l8jr path {
34
34
  color: var(--color-static-graphic-light);
35
- } /* TODO: применять static цвет через prop IconButton'а */ .gallery__iconButton_kgi4f:hover path {
35
+ } /* TODO: применять static цвет через prop IconButton'а */ .gallery__iconButton_1l8jr:hover path {
36
36
  color: var(--color-static-graphic-light-shade-7);
37
- } .gallery__iconButton_kgi4f:active path {
37
+ } .gallery__iconButton_1l8jr:active path {
38
38
  color: var(--color-static-graphic-light-shade-15);
39
39
  }
@@ -6,7 +6,7 @@ import '../../utils/constants.js';
6
6
  import '../header-info-block/Component.js';
7
7
  import '@alfalab/core-components-typography/esm';
8
8
  import '../../utils/split-filename.js';
9
- import '../../buttons-5eaa830c.js';
9
+ import '../../buttons-27ac6101.js';
10
10
  import 'tslib';
11
11
  import '@alfalab/core-components-icon-button/esm';
12
12
  import '@alfalab/core-components-tooltip/esm/desktop';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { Typography } from '@alfalab/core-components-typography/esm';
3
3
  import { splitFilename } from '../../utils/split-filename.js';
4
4
 
5
- var styles = {"info":"gallery__info_1ke3x","filenameHead":"gallery__filenameHead_1ke3x","filenameContainer":"gallery__filenameContainer_1ke3x","description":"gallery__description_1ke3x"};
5
+ var styles = {"info":"gallery__info_43639","filenameHead":"gallery__filenameHead_43639","filenameContainer":"gallery__filenameContainer_43639","description":"gallery__description_43639"};
6
6
  require('./index.css')
7
7
 
8
8
  var HeaderInfoBlock = function (_a) {