@progress/kendo-themes-html 4.43.1-dev.5 → 4.43.1-dev.6
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/package.json +2 -2
- package/src/avatar/avatar.jsx +1 -4
- package/src/button/button.jsx +19 -16
- package/src/input/input-inner-span.jsx +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-themes-html",
|
|
3
3
|
"description": "A collection of HTML helpers used for developing Kendo UI themes",
|
|
4
|
-
"version": "4.43.1-dev.
|
|
4
|
+
"version": "4.43.1-dev.6",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"@rollup/plugin-node-resolve": "^13.1.2",
|
|
43
43
|
"rollup": "^2.62.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "2362d5beb5c65e7d4b4bc9c8a06b589bc065be8d"
|
|
46
46
|
}
|
package/src/avatar/avatar.jsx
CHANGED
|
@@ -48,10 +48,7 @@ function AvatarStatic(props) {
|
|
|
48
48
|
ownClassName,
|
|
49
49
|
'k-avatar',
|
|
50
50
|
`k-avatar-${themeColor}`,
|
|
51
|
-
|
|
52
|
-
'k-avatar-circle': rounded === 'full',
|
|
53
|
-
'k-avatar-rounded': rounded !== 'full' && rounded !== null
|
|
54
|
-
},
|
|
51
|
+
styles.roundedClass( rounded ),
|
|
55
52
|
styles.sizeClass( size, 'k-avatar' ),
|
|
56
53
|
styles.fillModeClass( fillMode, 'k-avatar' ),
|
|
57
54
|
styles.borderedClass( bordered, 'k-avatar' ),
|
package/src/button/button.jsx
CHANGED
|
@@ -61,22 +61,6 @@ function ButtonStatic(props) {
|
|
|
61
61
|
}
|
|
62
62
|
];
|
|
63
63
|
|
|
64
|
-
let legacyClasses = [
|
|
65
|
-
ownClassName,
|
|
66
|
-
'k-button',
|
|
67
|
-
{
|
|
68
|
-
'k-primary': themeColor === 'primary',
|
|
69
|
-
'k-flat': fillMode === 'flat',
|
|
70
|
-
'k-outline': fillMode === 'outline',
|
|
71
|
-
'k-state-hover': hover === true,
|
|
72
|
-
'k-state-focus': focus === true,
|
|
73
|
-
'k-state-active': active === true,
|
|
74
|
-
'k-state-selected': selected === true,
|
|
75
|
-
'k-state-disabled': disabled === true,
|
|
76
|
-
'k-icon-button': Boolean( icon) === true && Boolean(text) === false
|
|
77
|
-
}
|
|
78
|
-
];
|
|
79
|
-
|
|
80
64
|
// Augment attributes
|
|
81
65
|
htmlAttributes.disabled = disabled;
|
|
82
66
|
|
|
@@ -85,6 +69,25 @@ function ButtonStatic(props) {
|
|
|
85
69
|
: {};
|
|
86
70
|
|
|
87
71
|
if (legacy) {
|
|
72
|
+
|
|
73
|
+
let legacyClasses = [
|
|
74
|
+
ownClassName,
|
|
75
|
+
'k-button',
|
|
76
|
+
styles.fillModeClass( fillMode, 'k-button' ),
|
|
77
|
+
styles.themeColorClass( fillMode, themeColor, 'k-button' ),
|
|
78
|
+
{
|
|
79
|
+
'k-primary': themeColor === 'primary',
|
|
80
|
+
'k-flat': fillMode === 'flat',
|
|
81
|
+
'k-outline': fillMode === 'outline',
|
|
82
|
+
'k-state-hover': hover === true,
|
|
83
|
+
'k-state-focus': focus === true,
|
|
84
|
+
'k-state-active': active === true,
|
|
85
|
+
'k-state-selected': selected === true,
|
|
86
|
+
'k-state-disabled': disabled === true,
|
|
87
|
+
'k-icon-button': Boolean( icon) === true && Boolean(text) === false
|
|
88
|
+
}
|
|
89
|
+
];
|
|
90
|
+
|
|
88
91
|
return (
|
|
89
92
|
<button type={type} className={legacyClasses} {...ariaAttr} {...htmlAttributes}>
|
|
90
93
|
<IconStatic className="k-button-icon" name={icon} />
|
|
@@ -56,7 +56,7 @@ function InputInnerSpanStatic(props) {
|
|
|
56
56
|
{valueIcon}
|
|
57
57
|
{valueIcon === null && <IconStatic className="k-icon k-input-value-icon" name={valueIconName} />}
|
|
58
58
|
{showValue && value === '' && placeholder}
|
|
59
|
-
{showValue && value && <span className="k-value-text">{value}</span>}
|
|
59
|
+
{showValue && value && <span className="k-input-value-text">{value}</span>}
|
|
60
60
|
</span>
|
|
61
61
|
);
|
|
62
62
|
}
|