@itcase/ui 1.0.51 → 1.0.53
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/Button.js +2 -1
- package/dist/components/Text.js +1 -1
- package/dist/css/components/Swiper/Swiper.css +6 -4
- 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
|
@@ -50,6 +50,7 @@ const buttonConfig = {
|
|
|
50
50
|
const Button = /*#__PURE__*/React__default.default.forwardRef(function Button(props, ref) {
|
|
51
51
|
const {
|
|
52
52
|
before,
|
|
53
|
+
appearance,
|
|
53
54
|
after,
|
|
54
55
|
className,
|
|
55
56
|
dataTour,
|
|
@@ -127,7 +128,7 @@ const Button = /*#__PURE__*/React__default.default.forwardRef(function Button(pr
|
|
|
127
128
|
label: labelStyles
|
|
128
129
|
} = useStyles.useStyles(props);
|
|
129
130
|
return /*#__PURE__*/React__default.default.createElement(index.LinkWrapper, {
|
|
130
|
-
className: clsx__default.default(className, 'button', type && `button_type_${type}`, borderWidthClass, borderColorClass, borderTypeClass, fillClass, fillHoverClass, shapeClass, sizeClass, widthClass, elevationClass, Badge && 'button_type_badge', loading && 'button_state_loading', !label && (iconBefore || iconAfter || icon) && 'button_type_icon', label && (iconBefore || iconAfter || before || after) && `button_type_with-icon button_type_with-icon_${size}`),
|
|
131
|
+
className: clsx__default.default(className, 'button', type && `button_type_${type}`, borderWidthClass, borderColorClass, borderTypeClass, fillClass || buttonConfig.appearance[appearance] && `fill_${buttonConfig.appearance[appearance].fillClass}`.replace(/([A-Z])/g, '-$1').toLowerCase(), fillHoverClass || buttonConfig.appearance[appearance] && `fill_${buttonConfig.appearance[appearance].fillHoverClass}`.replace(/([A-Z])/g, '-$1').toLowerCase(), shapeClass, sizeClass, widthClass, elevationClass, Badge && 'button_type_badge', loading && 'button_state_loading', !label && (iconBefore || iconAfter || icon) && 'button_type_icon', label && (iconBefore || iconAfter || before || after) && `button_type_with-icon button_type_with-icon_${size}`),
|
|
131
132
|
DefaultComponent: "button",
|
|
132
133
|
disabled: isDisabled,
|
|
133
134
|
href: link || href,
|
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, {
|
|
@@ -891,15 +891,17 @@ div.swiper-block__item {
|
|
|
891
891
|
}
|
|
892
892
|
|
|
893
893
|
.swiper-block {
|
|
894
|
-
|
|
895
|
-
|
|
894
|
+
&&_type_auto {
|
|
895
|
+
& .swiper-slide {
|
|
896
|
+
width: auto;
|
|
897
|
+
}
|
|
896
898
|
}
|
|
897
899
|
}
|
|
898
900
|
|
|
899
901
|
.swiper-block {
|
|
900
|
-
&&
|
|
902
|
+
&&_type_step {
|
|
901
903
|
& .swiper-slide {
|
|
902
|
-
width:
|
|
904
|
+
width: 100% !important;
|
|
903
905
|
}
|
|
904
906
|
}
|
|
905
907
|
}
|
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
|
-
}
|