@alfalab/core-components-gallery 5.5.0 → 5.5.1

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 (67) hide show
  1. package/Component.js +3 -3
  2. package/{buttons-56499587.js → buttons-3eea9a13.js} +1 -1
  3. package/components/header/Component.js +1 -1
  4. package/components/header/buttons.js +1 -1
  5. package/components/header/index.css +6 -6
  6. package/components/header/index.js +1 -1
  7. package/components/header-info-block/Component.js +1 -1
  8. package/components/header-info-block/index.css +5 -5
  9. package/components/image-preview/Component.js +1 -1
  10. package/components/image-preview/index.css +13 -13
  11. package/components/image-viewer/component.js +1 -1
  12. package/components/image-viewer/index.css +19 -19
  13. package/components/image-viewer/index.js +1 -1
  14. package/components/image-viewer/slide.js +1 -1
  15. package/components/index.js +2 -2
  16. package/components/navigation-bar/Component.js +1 -1
  17. package/components/navigation-bar/index.css +6 -6
  18. package/esm/Component.js +3 -3
  19. package/esm/{buttons-32c61cee.js → buttons-a2db485e.js} +1 -1
  20. package/esm/components/header/Component.js +1 -1
  21. package/esm/components/header/buttons.js +1 -1
  22. package/esm/components/header/index.css +6 -6
  23. package/esm/components/header/index.js +1 -1
  24. package/esm/components/header-info-block/Component.js +1 -1
  25. package/esm/components/header-info-block/index.css +5 -5
  26. package/esm/components/image-preview/Component.js +1 -1
  27. package/esm/components/image-preview/index.css +13 -13
  28. package/esm/components/image-viewer/component.js +1 -1
  29. package/esm/components/image-viewer/index.css +19 -19
  30. package/esm/components/image-viewer/index.js +1 -1
  31. package/esm/components/image-viewer/slide.js +1 -1
  32. package/esm/components/index.js +2 -2
  33. package/esm/components/navigation-bar/Component.js +1 -1
  34. package/esm/components/navigation-bar/index.css +6 -6
  35. package/esm/index.css +3 -3
  36. package/esm/index.js +2 -2
  37. package/esm/{slide-7cbd2dcc.js → slide-38e77458.js} +1 -1
  38. package/index.css +3 -3
  39. package/index.js +2 -2
  40. package/modern/Component.js +3 -3
  41. package/modern/{buttons-68d3fc88.js → buttons-c885c63e.js} +1 -1
  42. package/modern/components/header/Component.js +1 -1
  43. package/modern/components/header/buttons.js +1 -1
  44. package/modern/components/header/index.css +6 -6
  45. package/modern/components/header/index.js +1 -1
  46. package/modern/components/header-info-block/Component.js +1 -1
  47. package/modern/components/header-info-block/index.css +5 -5
  48. package/modern/components/image-preview/Component.js +1 -1
  49. package/modern/components/image-preview/index.css +13 -13
  50. package/modern/components/image-viewer/component.js +1 -1
  51. package/modern/components/image-viewer/index.css +19 -19
  52. package/modern/components/image-viewer/index.js +1 -1
  53. package/modern/components/image-viewer/slide.js +1 -1
  54. package/modern/components/index.js +2 -2
  55. package/modern/components/navigation-bar/Component.js +1 -1
  56. package/modern/components/navigation-bar/index.css +6 -6
  57. package/modern/index.css +3 -3
  58. package/modern/index.js +2 -2
  59. package/modern/{slide-85b16167.js → slide-5893b8ab.js} +1 -1
  60. package/package.json +5 -5
  61. package/{slide-f5490f67.js → slide-cde21399.js} +1 -1
  62. /package/{buttons-56499587.d.ts → buttons-3eea9a13.d.ts} +0 -0
  63. /package/esm/{buttons-32c61cee.d.ts → buttons-a2db485e.d.ts} +0 -0
  64. /package/esm/{slide-7cbd2dcc.d.ts → slide-38e77458.d.ts} +0 -0
  65. /package/modern/{buttons-68d3fc88.d.ts → buttons-c885c63e.d.ts} +0 -0
  66. /package/modern/{slide-85b16167.d.ts → slide-5893b8ab.d.ts} +0 -0
  67. /package/{slide-f5490f67.d.ts → slide-cde21399.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- /* hash: 1ahih */
1
+ /* hash: 76qci */
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_f4ob2 {
30
+ } .gallery__component_y8qao {
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_f4ob2 {
36
+ } .gallery__swiper_y8qao {
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_f4ob2 .gallery__swiper_f4ob2 {
45
+ } .gallery__singleSlide_y8qao .gallery__swiper_y8qao {
46
46
  max-height: calc(100vh - 80px);
47
47
  padding: var(--gap-2xl);
48
- } .gallery__hidden_f4ob2 {
48
+ } .gallery__hidden_y8qao {
49
49
  display: none;
50
- } .gallery__slide_f4ob2 {
50
+ } .gallery__slide_y8qao {
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_f4ob2 {
57
+ } .gallery__slideLoading_y8qao {
58
58
  background-color: var(--color-static-bg-secondary-dark);
59
59
  border-radius: var(--border-radius-m);
60
- } .gallery__image_f4ob2 {
60
+ } .gallery__image_y8qao {
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_f4ob2 {
67
+ } .gallery__smallImage_y8qao {
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_f4ob2 {
74
+ } .gallery__verticalImageFit_y8qao {
75
75
  width: auto;
76
76
  height: 100%;
77
- } .gallery__horizontalImageFit_f4ob2 {
77
+ } .gallery__horizontalImageFit_y8qao {
78
78
  width: 100%;
79
79
  height: auto;
80
- } .gallery__arrow_f4ob2 {
80
+ } .gallery__arrow_y8qao {
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_f4ob2:hover {
92
+ } .gallery__arrow_y8qao:hover {
93
93
  background-color: var(--color-static-bg-primary-dark-tint-15);
94
- } .gallery__arrow_f4ob2:active {
94
+ } .gallery__arrow_y8qao:active {
95
95
  background-color: var(--color-static-bg-primary-dark-tint-20);
96
- } .gallery__focused_f4ob2 {
96
+ } .gallery__focused_y8qao {
97
97
  outline: 2px solid var(--focus-color);
98
98
  outline-offset: 2px;
99
- } .gallery__placeholder_f4ob2 {
99
+ } .gallery__placeholder_y8qao {
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_f4ob2 {
107
+ } .gallery__brokenImgWrapper_y8qao {
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_f4ob2 {
114
+ } .gallery__brokenImgIcon_y8qao {
115
115
  width: 80px;
116
116
  height: 80px;
117
117
  margin-bottom: var(--gap-2xs);
118
- } .gallery__fullScreenImage_f4ob2 {
118
+ } .gallery__fullScreenImage_y8qao {
119
119
  width: 100%;
120
120
  height: auto;
121
121
  background-color: var(--color-light-bg-primary);
@@ -10,7 +10,7 @@ import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
10
10
  import '../../context.js';
11
11
  import '../../utils/utils.js';
12
12
  import '../../utils/constants.js';
13
- import '../../slide-85b16167.js';
13
+ import '../../slide-5893b8ab.js';
14
14
  import '@alfalab/core-components-typography/modern';
15
15
  import './paths.js';
16
16
  import 'swiper/swiper.min.css';
@@ -4,4 +4,4 @@ import '@alfalab/core-components-typography/modern';
4
4
  import '../../utils/utils.js';
5
5
  import '../../utils/constants.js';
6
6
  import './paths.js';
7
- export { S as Slide } from '../../slide-85b16167.js';
7
+ export { S as Slide } from '../../slide-5893b8ab.js';
@@ -9,7 +9,7 @@ import '../utils/constants.js';
9
9
  import './header-info-block/Component.js';
10
10
  import '@alfalab/core-components-typography/modern';
11
11
  import '../utils/split-filename.js';
12
- import '../buttons-68d3fc88.js';
12
+ import '../buttons-c885c63e.js';
13
13
  import '@alfalab/core-components-icon-button/modern';
14
14
  import '@alfalab/core-components-tooltip/modern/desktop';
15
15
  import '@alfalab/icons-glyph/ArrowsInwardMIcon';
@@ -24,6 +24,6 @@ import 'swiper';
24
24
  import 'swiper/react';
25
25
  import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
26
26
  import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
27
- import '../slide-85b16167.js';
27
+ import '../slide-5893b8ab.js';
28
28
  import './image-viewer/paths.js';
29
29
  import 'swiper/swiper.min.css';
@@ -7,7 +7,7 @@ import 'classnames';
7
7
  import '@alfalab/hooks';
8
8
  import '../image-preview/paths.js';
9
9
 
10
- const styles = {"component":"gallery__component_1wzde","preview":"gallery__preview_1wzde"};
10
+ const styles = {"component":"gallery__component_bba33","preview":"gallery__preview_bba33"};
11
11
  require('./index.css')
12
12
 
13
13
  const MIN_SCROLL_STEP = 24;
@@ -1,4 +1,4 @@
1
- /* hash: 1vmov */
1
+ /* hash: rpcvk */
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_1wzde {
19
+ } .gallery__component_bba33 {
20
20
  display: flex;
21
21
  flex-wrap: nowrap;
22
22
  align-content: center;
@@ -26,13 +26,13 @@
26
26
  box-sizing: border-box;
27
27
  padding: 10px var(--gap-xl);
28
28
  scrollbar-width: none
29
- } .gallery__component_1wzde::-webkit-scrollbar {
29
+ } .gallery__component_bba33::-webkit-scrollbar {
30
30
  display: none;
31
- } .gallery__preview_1wzde {
31
+ } .gallery__preview_bba33 {
32
32
  flex-shrink: 0;
33
33
  margin: 0 var(--gap-3xs)
34
- } .gallery__preview_1wzde:first-child {
34
+ } .gallery__preview_bba33:first-child {
35
35
  margin-left: auto;
36
- } .gallery__preview_1wzde:last-child {
36
+ } .gallery__preview_bba33:last-child {
37
37
  margin-right: auto;
38
38
  }
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: efdri */
1
+ /* hash: iy0cr */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-static-bg-primary-dark: #0e0e0e; /* 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 */
@@ -15,14 +15,14 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- } .gallery__container_jkmwj {
18
+ } .gallery__container_1t8yq {
19
19
  display: flex;
20
20
  flex-direction: column;
21
21
  justify-content: space-between;
22
22
  height: 100%;
23
23
  width: 100%;
24
24
  background-color: var(--color-static-bg-primary-dark);
25
- } .gallery__modal_jkmwj {
25
+ } .gallery__modal_1t8yq {
26
26
  flex-grow: 1;
27
27
  width: 100%;
28
28
  height: 100%;
package/modern/index.js CHANGED
@@ -13,7 +13,7 @@ import './components/image-preview/paths.js';
13
13
  import './components/header/Component.js';
14
14
  import './components/header-info-block/Component.js';
15
15
  import '@alfalab/core-components-typography/modern';
16
- import './buttons-68d3fc88.js';
16
+ import './buttons-c885c63e.js';
17
17
  import '@alfalab/core-components-icon-button/modern';
18
18
  import '@alfalab/core-components-tooltip/modern/desktop';
19
19
  import '@alfalab/icons-glyph/ArrowsInwardMIcon';
@@ -26,6 +26,6 @@ import 'swiper';
26
26
  import 'swiper/react';
27
27
  import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
28
28
  import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
29
- import './slide-85b16167.js';
29
+ import './slide-5893b8ab.js';
30
30
  import './components/image-viewer/paths.js';
31
31
  import 'swiper/swiper.min.css';
@@ -5,7 +5,7 @@ import { isSmallImage, getImageAlt } from './utils/utils.js';
5
5
  import { TestIds } from './utils/constants.js';
6
6
  import { NoImagePaths } from './components/image-viewer/paths.js';
7
7
 
8
- const styles = {"component":"gallery__component_f4ob2","swiper":"gallery__swiper_f4ob2","singleSlide":"gallery__singleSlide_f4ob2","hidden":"gallery__hidden_f4ob2","slide":"gallery__slide_f4ob2","slideLoading":"gallery__slideLoading_f4ob2","image":"gallery__image_f4ob2","smallImage":"gallery__smallImage_f4ob2","verticalImageFit":"gallery__verticalImageFit_f4ob2","horizontalImageFit":"gallery__horizontalImageFit_f4ob2","arrow":"gallery__arrow_f4ob2","focused":"gallery__focused_f4ob2","placeholder":"gallery__placeholder_f4ob2","brokenImgWrapper":"gallery__brokenImgWrapper_f4ob2","brokenImgIcon":"gallery__brokenImgIcon_f4ob2","fullScreenImage":"gallery__fullScreenImage_f4ob2"};
8
+ const styles = {"component":"gallery__component_y8qao","swiper":"gallery__swiper_y8qao","singleSlide":"gallery__singleSlide_y8qao","hidden":"gallery__hidden_y8qao","slide":"gallery__slide_y8qao","slideLoading":"gallery__slideLoading_y8qao","image":"gallery__image_y8qao","smallImage":"gallery__smallImage_y8qao","verticalImageFit":"gallery__verticalImageFit_y8qao","horizontalImageFit":"gallery__horizontalImageFit_y8qao","arrow":"gallery__arrow_y8qao","focused":"gallery__focused_y8qao","placeholder":"gallery__placeholder_y8qao","brokenImgWrapper":"gallery__brokenImgWrapper_y8qao","brokenImgIcon":"gallery__brokenImgIcon_y8qao","fullScreenImage":"gallery__fullScreenImage_y8qao"};
9
9
  require('./components/image-viewer/index.css')
10
10
 
11
11
  const SlideInner = ({ children, broken, loading, withPlaceholder }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-gallery",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,10 +14,10 @@
14
14
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-base-modal": "^5.7.1",
18
- "@alfalab/core-components-icon-button": "^6.5.0",
19
- "@alfalab/core-components-tooltip": "^7.3.1",
20
- "@alfalab/core-components-typography": "^4.3.0",
17
+ "@alfalab/core-components-base-modal": "^5.7.2",
18
+ "@alfalab/core-components-icon-button": "^6.5.1",
19
+ "@alfalab/core-components-tooltip": "^7.3.2",
20
+ "@alfalab/core-components-typography": "^4.4.0",
21
21
  "@alfalab/hooks": "^1.13.0",
22
22
  "@alfalab/icons-glyph": "^2.139.0",
23
23
  "classnames": "^2.3.1",
@@ -12,7 +12,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
12
12
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
13
13
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
14
14
 
15
- var styles = {"component":"gallery__component_f4ob2","swiper":"gallery__swiper_f4ob2","singleSlide":"gallery__singleSlide_f4ob2","hidden":"gallery__hidden_f4ob2","slide":"gallery__slide_f4ob2","slideLoading":"gallery__slideLoading_f4ob2","image":"gallery__image_f4ob2","smallImage":"gallery__smallImage_f4ob2","verticalImageFit":"gallery__verticalImageFit_f4ob2","horizontalImageFit":"gallery__horizontalImageFit_f4ob2","arrow":"gallery__arrow_f4ob2","focused":"gallery__focused_f4ob2","placeholder":"gallery__placeholder_f4ob2","brokenImgWrapper":"gallery__brokenImgWrapper_f4ob2","brokenImgIcon":"gallery__brokenImgIcon_f4ob2","fullScreenImage":"gallery__fullScreenImage_f4ob2"};
15
+ var styles = {"component":"gallery__component_y8qao","swiper":"gallery__swiper_y8qao","singleSlide":"gallery__singleSlide_y8qao","hidden":"gallery__hidden_y8qao","slide":"gallery__slide_y8qao","slideLoading":"gallery__slideLoading_y8qao","image":"gallery__image_y8qao","smallImage":"gallery__smallImage_y8qao","verticalImageFit":"gallery__verticalImageFit_y8qao","horizontalImageFit":"gallery__horizontalImageFit_y8qao","arrow":"gallery__arrow_y8qao","focused":"gallery__focused_y8qao","placeholder":"gallery__placeholder_y8qao","brokenImgWrapper":"gallery__brokenImgWrapper_y8qao","brokenImgIcon":"gallery__brokenImgIcon_y8qao","fullScreenImage":"gallery__fullScreenImage_y8qao"};
16
16
  require('./components/image-viewer/index.css')
17
17
 
18
18
  var SlideInner = function (_a) {
File without changes