@itcase/ui 1.0.50 → 1.0.52

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.
@@ -63,9 +63,17 @@ function Image(props) {
63
63
  });
64
64
  const widthClass = useDeviceTargetClass.useDeviceTargetClass(props, {
65
65
  prefix: 'width_',
66
- propsKey: 'imageWidth'
66
+ propsKey: 'width'
67
67
  });
68
68
  const heightClass = useDeviceTargetClass.useDeviceTargetClass(props, {
69
+ prefix: 'height_',
70
+ propsKey: 'height'
71
+ });
72
+ const imageWidthClass = useDeviceTargetClass.useDeviceTargetClass(props, {
73
+ prefix: 'width_',
74
+ propsKey: 'imageWidth'
75
+ });
76
+ const imageHeightClass = useDeviceTargetClass.useDeviceTargetClass(props, {
69
77
  prefix: 'height_',
70
78
  propsKey: 'imageHeight'
71
79
  });
@@ -86,7 +94,7 @@ function Image(props) {
86
94
  image: imageStyles
87
95
  } = useStyles.useStyles(props);
88
96
  return /*#__PURE__*/React__default.default.createElement("div", {
89
- className: clsx__default.default(className, 'image', type && `image_type_${type}`, cursorClass, horizontalAlignClass, verticalAlignClass, shapeClass, resizeModeClass),
97
+ className: clsx__default.default(className, 'image', type && `image_type_${type}`, cursorClass, horizontalAlignClass, verticalAlignClass, shapeClass, resizeModeClass, widthClass, heightClass),
90
98
  onClick: onClick,
91
99
  style: styles
92
100
  }, before, /*#__PURE__*/React__default.default.createElement("div", {
@@ -97,7 +105,7 @@ function Image(props) {
97
105
  alt: alt,
98
106
  title: title,
99
107
  style: imageStyles,
100
- className: clsx__default.default('image__item', widthClass, heightClass, imageClassName, borderClass, borderColorImageClass),
108
+ className: clsx__default.default('image__item', imageWidthClass, imageHeightClass, imageClassName, borderClass, borderColorImageClass),
101
109
  onError: onError
102
110
  }), overlay, caption, children), after);
103
111
  }
@@ -201,7 +201,9 @@ const Modal = /*#__PURE__*/React__default.default.forwardRef(function Modal(prop
201
201
  }, closeButton && /*#__PURE__*/React__default.default.createElement("div", {
202
202
  className: "modal-content__close",
203
203
  onClick: closeModal
204
- }, closeButton), children), /*#__PURE__*/React__default.default.createElement(index.Fader, {
204
+ }, closeButton), /*#__PURE__*/React__default.default.createElement("div", {
205
+ className: "modal-content__wrapper"
206
+ }, children)), /*#__PURE__*/React__default.default.createElement(index.Fader, {
205
207
  ref: modalFaderRef,
206
208
  fill: faderFill,
207
209
  fillGradient: faderFillGradient,
@@ -63,7 +63,7 @@ function Text(props) {
63
63
  propsKey: 'textColorActive'
64
64
  });
65
65
  const textColorHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
66
- prefix: 'text-color_hover_',
66
+ prefix: 'text-color-hover_',
67
67
  propsKey: 'textColorHover'
68
68
  });
69
69
  const textGradientClass = useDeviceTargetClass.useDeviceTargetClass(props, {
@@ -1,8 +1,9 @@
1
1
  .image {
2
2
  font-size: 0;
3
3
  &__wrapper {
4
- position: relative;
4
+ width: 100%;
5
5
  font-size: 0;
6
+ position: relative;
6
7
  }
7
8
  }
8
9
  .image {
@@ -22,6 +23,7 @@
22
23
  > ^^&__wrapper {
23
24
  & > ^^^&__item {
24
25
  width: 100%;
26
+ height: 100%;
25
27
  object-fit: cover;
26
28
  }
27
29
  }
@@ -30,6 +32,7 @@
30
32
  > ^^&__wrapper {
31
33
  & > ^^^&__item {
32
34
  width: 100%;
35
+ height: 100%;
33
36
  object-fit: contain;
34
37
  }
35
38
  }
@@ -27,12 +27,12 @@
27
27
  width: 100%;
28
28
  min-width: 200px;
29
29
  min-height: 200px;
30
- max-width: var(--modal-max-width, 800px);
30
+ max-width: var(--modal-max-width, 1200px);
31
31
  position: relative;
32
32
  &:focus {
33
33
  outline: 0;
34
34
  }
35
- &__inner {
35
+ &__wrapper {
36
36
  width: 100%;
37
37
  }
38
38
  }
@@ -904,8 +904,9 @@ div.swiper-block__item {
904
904
  }
905
905
  }
906
906
 
907
- .swiper-block {
907
+ div.swiper-block {
908
908
  width: 100%;
909
+ max-width: 100%;
909
910
  }
910
911
 
911
912
  div.swiper-pagination {
@@ -7,6 +7,11 @@
7
7
  &:hover {
8
8
  color: var(--color-$(type)-text-$(color));
9
9
  }
10
+ &-hover {
11
+ &:hover {
12
+ color: var(--color-$(type)-text-$(color)-hover);
13
+ }
14
+ }
10
15
  }
11
16
  }
12
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -1,17 +0,0 @@
1
- .text-color {
2
- &_hover {
3
- @each $type in accent, primary, secondary, tertiary, surface, success, error, info, warning {
4
- &_$(type) {
5
- &-text {
6
- @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled, hover {
7
- &-$(color) {
8
- &:hover {
9
- color: var(--color-$(type)-text-$(color));
10
- }
11
- }
12
- }
13
- }
14
- }
15
- }
16
- }
17
- }