@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.
- package/dist/components/Image.js +11 -3
- package/dist/components/Modal.js +3 -1
- package/dist/components/Text.js +1 -1
- package/dist/css/components/Image/Image.css +4 -1
- package/dist/css/components/Modal/Modal.css +2 -2
- package/dist/css/components/Swiper/Swiper.css +2 -1
- package/dist/css/styles/text-color/text-color.css +1 -0
- package/dist/css/styles/text-color-hover/text-color-hover.css +5 -0
- package/package.json +1 -1
- package/dist/css/styles/text-color/text-color_hover.css +0 -17
package/dist/components/Image.js
CHANGED
|
@@ -63,9 +63,17 @@ function Image(props) {
|
|
|
63
63
|
});
|
|
64
64
|
const widthClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
65
65
|
prefix: 'width_',
|
|
66
|
-
propsKey: '
|
|
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',
|
|
108
|
+
className: clsx__default.default('image__item', imageWidthClass, imageHeightClass, imageClassName, borderClass, borderColorImageClass),
|
|
101
109
|
onError: onError
|
|
102
110
|
}), overlay, caption, children), after);
|
|
103
111
|
}
|
package/dist/components/Modal.js
CHANGED
|
@@ -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),
|
|
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,
|
package/dist/components/Text.js
CHANGED
|
@@ -63,7 +63,7 @@ function Text(props) {
|
|
|
63
63
|
propsKey: 'textColorActive'
|
|
64
64
|
});
|
|
65
65
|
const textColorHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
66
|
-
prefix: 'text-
|
|
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
|
-
|
|
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,
|
|
30
|
+
max-width: var(--modal-max-width, 1200px);
|
|
31
31
|
position: relative;
|
|
32
32
|
&:focus {
|
|
33
33
|
outline: 0;
|
|
34
34
|
}
|
|
35
|
-
&
|
|
35
|
+
&__wrapper {
|
|
36
36
|
width: 100%;
|
|
37
37
|
}
|
|
38
38
|
}
|
package/package.json
CHANGED
|
@@ -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
|
-
}
|