@progress/kendo-themes-html 4.42.1-dev.3 → 4.43.1-dev.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.
- package/lib/jsx-runtime.js +26 -2
- package/package.json +2 -2
- package/src/autocomplete/README.md +15 -9
- package/src/autocomplete/autocomplete.jsx +4 -4
- package/src/avatar/README.md +21 -0
- package/src/avatar/avatar.jsx +116 -0
- package/src/avatar/index.js +1 -0
- package/src/button/README.md +8 -8
- package/src/button/button.jsx +6 -6
- package/src/checkbox/README.md +8 -8
- package/src/checkbox/checkbox.jsx +3 -3
- package/src/colorpicker/color-preview.jsx +6 -2
- package/src/colorpicker/colorpicker.jsx +8 -7
- package/src/combobox/README.md +15 -9
- package/src/combobox/combobox.jsx +5 -5
- package/src/{component.js → component/component.jsx} +4 -2
- package/src/component/index.js +1 -0
- package/src/dateinput/README.md +15 -9
- package/src/dateinput/dateinput.jsx +5 -5
- package/src/datepicker/README.md +15 -9
- package/src/datepicker/datepicker.jsx +5 -5
- package/src/datetimepicker/README.md +15 -9
- package/src/datetimepicker/datetimepicker.jsx +5 -5
- package/src/dropdownlist/README.md +23 -14
- package/src/dropdownlist/dropdownlist.jsx +9 -6
- package/src/icon/icon.jsx +1 -1
- package/src/index.js +43 -3
- package/src/input/input-inner-input.jsx +1 -1
- package/src/input/input-inner-span.jsx +1 -1
- package/src/input/input-inner-textarea.jsx +1 -1
- package/src/input/input-prefix.jsx +1 -1
- package/src/input/input-suffix.jsx +1 -1
- package/src/input/input.jsx +4 -4
- package/src/input/picker.jsx +4 -4
- package/src/list/README.md +93 -0
- package/src/list/index.js +5 -0
- package/src/list/list-content.jsx +94 -0
- package/src/list/list-group-item.jsx +66 -0
- package/src/list/list-header.jsx +66 -0
- package/src/list/list-item.jsx +117 -0
- package/src/list/list.jsx +182 -0
- package/src/maskedtextbox/README.md +15 -9
- package/src/maskedtextbox/maskedtextbox.jsx +4 -4
- package/src/nodata/index.js +1 -0
- package/src/nodata/nodata.jsx +64 -0
- package/src/numerictextbox/README.md +15 -9
- package/src/numerictextbox/numerictextbox.jsx +5 -5
- package/src/popup/README.md +15 -0
- package/src/popup/index.js +1 -0
- package/src/popup/popup.jsx +80 -0
- package/src/radio/README.md +7 -7
- package/src/radio/radio.jsx +2 -2
- package/src/searchbar/searchbar.jsx +1 -1
- package/src/searchbox/README.md +16 -12
- package/src/searchbox/searchbox.jsx +4 -4
- package/src/spinbutton/spinbutton.jsx +9 -3
- package/src/switch/switch.jsx +4 -4
- package/src/textarea/README.md +17 -11
- package/src/textarea/textarea.jsx +4 -4
- package/src/textbox/README.md +15 -9
- package/src/textbox/textbox.jsx +4 -4
- package/src/timepicker/README.md +15 -9
- package/src/timepicker/timepicker.jsx +5 -5
- package/utils/styles.js +14 -5
package/lib/jsx-runtime.js
CHANGED
|
@@ -31,6 +31,8 @@ const attrMap = {
|
|
|
31
31
|
showclearbutton: 'showClearButton',
|
|
32
32
|
clearbutton: 'clearButton',
|
|
33
33
|
|
|
34
|
+
showcheckbox: 'showCheckbox',
|
|
35
|
+
|
|
34
36
|
// Switch
|
|
35
37
|
onlabel: 'onLabel',
|
|
36
38
|
offlabel: 'offLabel',
|
|
@@ -63,9 +65,24 @@ const booleanAttr = new Set([
|
|
|
63
65
|
'showClearButton',
|
|
64
66
|
'showSpinButton',
|
|
65
67
|
|
|
68
|
+
'showCheckbox',
|
|
69
|
+
|
|
70
|
+
'virtualization',
|
|
71
|
+
'root',
|
|
72
|
+
|
|
66
73
|
'aria'
|
|
67
74
|
]);
|
|
68
75
|
|
|
76
|
+
const nullAttr = new Set([
|
|
77
|
+
'size',
|
|
78
|
+
'rounded',
|
|
79
|
+
'fillMode',
|
|
80
|
+
'themeColor',
|
|
81
|
+
|
|
82
|
+
'trackRounded',
|
|
83
|
+
'thumbRounded'
|
|
84
|
+
]);
|
|
85
|
+
|
|
69
86
|
const skipAttr = new Set([
|
|
70
87
|
'is',
|
|
71
88
|
'aria',
|
|
@@ -144,6 +161,10 @@ function attrToProps( attributes ) {
|
|
|
144
161
|
attrName = attrMap[attrName];
|
|
145
162
|
}
|
|
146
163
|
|
|
164
|
+
// Set props as is
|
|
165
|
+
props[ attrName ] = attrValue;
|
|
166
|
+
|
|
167
|
+
// Ensure boolean value
|
|
147
168
|
if (booleanAttr.has(attrName) && typeof attrValue === 'string') {
|
|
148
169
|
switch (attrValue) {
|
|
149
170
|
case '':
|
|
@@ -154,8 +175,11 @@ function attrToProps( attributes ) {
|
|
|
154
175
|
props[ attrName ] = false;
|
|
155
176
|
break;
|
|
156
177
|
}
|
|
157
|
-
}
|
|
158
|
-
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// Ensure null value
|
|
181
|
+
if (nullAttr.has(attrName) && attrValue === 'null') {
|
|
182
|
+
props[ attrName ] = null;
|
|
159
183
|
}
|
|
160
184
|
});
|
|
161
185
|
|
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.
|
|
4
|
+
"version": "4.43.1-dev.1",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
43
43
|
"rollup": "^2.59.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "9dcefebd634a5d866712324f22b0e903deaf7158"
|
|
46
46
|
}
|
|
@@ -8,17 +8,23 @@
|
|
|
8
8
|
<span class="
|
|
9
9
|
k-autocomplete
|
|
10
10
|
k-input
|
|
11
|
-
k-input
|
|
12
|
-
k-rounded
|
|
13
|
-
k-input
|
|
11
|
+
k-input-{size}
|
|
12
|
+
k-rounded-{rounded}
|
|
13
|
+
k-input-{fillMode}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
{valid && 'k-valid'}
|
|
16
|
+
{invalid && 'k-invalid'}
|
|
17
|
+
{loading && 'k-loading'}
|
|
18
|
+
{required && 'k-required'}
|
|
19
|
+
{disabled && 'k-disabled'}
|
|
19
20
|
">
|
|
21
|
+
{showInputIcon && inputIconName !== '' && <span class="k-input-icon k-i-icon k-i-{inputIconName}"></span>}
|
|
22
|
+
{inputPrefix && <span class="k-input-prefix">...</span>}
|
|
20
23
|
<input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
|
|
21
|
-
{
|
|
22
|
-
{
|
|
24
|
+
{inputPrefix && <span class="k-input-suffix">...</span>}
|
|
25
|
+
{showValidationIcon && valid && <span class="k-validation-icon k-icon k-i-check"></span>}
|
|
26
|
+
{showValidationIcon && invalid && <span class="k-validation-icon k-icon k-i-warning"></span>}
|
|
27
|
+
{showLoadingIcon && loading && <span class="k-icon k-i-loading"></span>}
|
|
28
|
+
{showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
|
|
23
29
|
</span>
|
|
24
30
|
```
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { globalDefaultProps } from '../component';
|
|
1
|
+
import { globalDefaultProps } from '../component/index';
|
|
2
2
|
import { Input, InputStatic, InputInnerInputStatic } from '../input/index';
|
|
3
3
|
import { InputValidationIconStatic, InputLoadingIconStatic, InputClearValueStatic } from '../input/index';
|
|
4
4
|
|
|
@@ -138,10 +138,10 @@ AutocompleteStatic.propTypes = {
|
|
|
138
138
|
prefix: typeof '#fragment',
|
|
139
139
|
suffix: typeof '#fragment',
|
|
140
140
|
|
|
141
|
-
size: typeof [
|
|
142
|
-
rounded: typeof [
|
|
141
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
142
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
|
|
143
143
|
|
|
144
|
-
fillMode: typeof [
|
|
144
|
+
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
145
145
|
|
|
146
146
|
hover: typeof false,
|
|
147
147
|
focus: typeof false,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
```html
|
|
2
|
+
<!-- default rendering -->
|
|
3
|
+
<div class="k-avatar k-avatar-md k-rounded-circle k-avatar-solid k-avatar-solid-primary">
|
|
4
|
+
<span class="k-avatar-image">
|
|
5
|
+
<img src="../../assets/avatar.jpg" class="">
|
|
6
|
+
</span>
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<!-- canonical rendering -->
|
|
10
|
+
<div class="
|
|
11
|
+
k-avatar
|
|
12
|
+
k-avatar-{size}
|
|
13
|
+
k-rounded-{rounded}
|
|
14
|
+
k-avatar-{fillMode}
|
|
15
|
+
k-avatar-{fillMode}-{themeColor}
|
|
16
|
+
">
|
|
17
|
+
<span class="k-avatar-{type}">
|
|
18
|
+
{content}
|
|
19
|
+
</span>
|
|
20
|
+
</div>
|
|
21
|
+
```
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import * as styles from '../../utils/styles';
|
|
2
|
+
import { Component, globalDefaultProps } from '../component/index';
|
|
3
|
+
|
|
4
|
+
class Avatar extends Component {
|
|
5
|
+
render() {
|
|
6
|
+
return <AvatarStatic {...this.props} />;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function AvatarStatic(props) {
|
|
11
|
+
const {
|
|
12
|
+
className: ownClassName,
|
|
13
|
+
|
|
14
|
+
children,
|
|
15
|
+
|
|
16
|
+
type,
|
|
17
|
+
|
|
18
|
+
size,
|
|
19
|
+
shape,
|
|
20
|
+
rounded,
|
|
21
|
+
bordered,
|
|
22
|
+
|
|
23
|
+
fillMode,
|
|
24
|
+
themeColor,
|
|
25
|
+
|
|
26
|
+
aria,
|
|
27
|
+
legacy,
|
|
28
|
+
|
|
29
|
+
...htmlAttributes
|
|
30
|
+
} = props;
|
|
31
|
+
|
|
32
|
+
let avatarClasses = [
|
|
33
|
+
ownClassName,
|
|
34
|
+
'k-avatar',
|
|
35
|
+
styles.sizeClass( size, 'k-avatar' ),
|
|
36
|
+
styles.roundedClass( rounded ),
|
|
37
|
+
styles.fillModeClass( fillMode, 'k-avatar' ),
|
|
38
|
+
styles.shapeClass( shape, 'k-avatar' ),
|
|
39
|
+
styles.themeColorClass( fillMode, themeColor, 'k-avatar' ),
|
|
40
|
+
styles.borderedClass( bordered, 'k-avatar' ),
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
let legacyClasses = [
|
|
44
|
+
ownClassName,
|
|
45
|
+
'k-avatar',
|
|
46
|
+
`k-avatar-${themeColor}`,
|
|
47
|
+
{
|
|
48
|
+
'k-avatar-circle': rounded === 'circle',
|
|
49
|
+
'k-avatar-rounded': rounded !== 'circle' && rounded !== null
|
|
50
|
+
},
|
|
51
|
+
styles.sizeClass( size, 'k-avatar' ),
|
|
52
|
+
styles.fillModeClass( fillMode, 'k-avatar' ),
|
|
53
|
+
styles.borderedClass( bordered, 'k-avatar' ),
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
let ariaAttr = aria
|
|
57
|
+
? {}
|
|
58
|
+
: {};
|
|
59
|
+
|
|
60
|
+
if (legacy) {
|
|
61
|
+
return (
|
|
62
|
+
<span className={legacyClasses} {...ariaAttr} {...htmlAttributes}>
|
|
63
|
+
<span className={`k-avatar-${type}`}>
|
|
64
|
+
{children}
|
|
65
|
+
</span>
|
|
66
|
+
</span>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return (
|
|
71
|
+
<span className={avatarClasses} {...ariaAttr} {...htmlAttributes}>
|
|
72
|
+
<span className={`k-avatar-${type}`}>
|
|
73
|
+
{children}
|
|
74
|
+
</span>
|
|
75
|
+
</span>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
AvatarStatic.defaultProps = {
|
|
80
|
+
...globalDefaultProps,
|
|
81
|
+
|
|
82
|
+
className: '',
|
|
83
|
+
children: [],
|
|
84
|
+
|
|
85
|
+
type: '',
|
|
86
|
+
|
|
87
|
+
size: 'medium',
|
|
88
|
+
shape: 'square',
|
|
89
|
+
rounded: 'circle',
|
|
90
|
+
bordered: false,
|
|
91
|
+
|
|
92
|
+
fillMode: 'solid',
|
|
93
|
+
themeColor: 'primary'
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
AvatarStatic.propTypes = {
|
|
97
|
+
className: typeof '',
|
|
98
|
+
children: typeof [],
|
|
99
|
+
|
|
100
|
+
type: typeof '',
|
|
101
|
+
|
|
102
|
+
size: typeof [ null, 'small', 'medium', 'large', 'circle' ],
|
|
103
|
+
shape: typeof [ null, 'square', 'circle', 'rounded' ],
|
|
104
|
+
rounded: typeof [ null, '0', 'small', 'medium', 'large' ],
|
|
105
|
+
bordered: typeof false,
|
|
106
|
+
|
|
107
|
+
fillMode: typeof [ null, 'solid', 'outline' ],
|
|
108
|
+
themeColor: typeof [ null, 'primary' ],
|
|
109
|
+
|
|
110
|
+
aria: typeof false,
|
|
111
|
+
legacy: typeof false,
|
|
112
|
+
|
|
113
|
+
htmlAttributes: typeof []
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export { Avatar, AvatarStatic };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './avatar.jsx';
|
package/src/button/README.md
CHANGED
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
<!-- canonical rendering -->
|
|
8
8
|
<button class="
|
|
9
9
|
k-button
|
|
10
|
-
|
|
11
|
-
k-button
|
|
12
|
-
k-button
|
|
13
|
-
k-rounded
|
|
14
|
-
k-button
|
|
15
|
-
k-button
|
|
10
|
+
{text === '' && iconName !== '' && 'k-icon-button'}
|
|
11
|
+
k-button-{size}
|
|
12
|
+
k-button-{shape}
|
|
13
|
+
k-rounded-{rounded}
|
|
14
|
+
k-button-{fillMode}
|
|
15
|
+
k-button-{fillMode}-{themeColor}
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
{disabled && 'k-disabled'}
|
|
18
18
|
" type={type} disabled={disabled}>
|
|
19
|
-
{
|
|
19
|
+
{iconName !== '' && <span class="k-button-icon k-icon k-i-{iconName}"></span>}
|
|
20
20
|
{text !== '' && <span class="k-button-text">Button</span>}
|
|
21
21
|
</button>
|
|
22
22
|
```
|
package/src/button/button.jsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as styles from '../../utils/styles';
|
|
2
|
-
import { Component, globalDefaultProps } from '../component';
|
|
2
|
+
import { Component, globalDefaultProps } from '../component/index';
|
|
3
3
|
import { IconStatic } from '../icon/index';
|
|
4
4
|
|
|
5
5
|
class Button extends Component {
|
|
@@ -124,12 +124,12 @@ ButtonStatic.propTypes = {
|
|
|
124
124
|
|
|
125
125
|
type: typeof [ 'button', 'submit', 'reset' ],
|
|
126
126
|
|
|
127
|
-
size: typeof [
|
|
128
|
-
rounded: typeof [
|
|
129
|
-
shape: typeof [
|
|
127
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
128
|
+
rounded: typeof [ null, '0', 'small', 'medium', 'large', 'pill', 'circle' ],
|
|
129
|
+
shape: typeof [ null, 'rectangle', 'square' ],
|
|
130
130
|
|
|
131
|
-
fillMode: typeof [
|
|
132
|
-
themeColor: typeof [
|
|
131
|
+
fillMode: typeof [ null, 'solid', 'flat', 'outline', 'link' ],
|
|
132
|
+
themeColor: typeof [ null, 'surface', 'base', 'primary' ],
|
|
133
133
|
|
|
134
134
|
hover: typeof false,
|
|
135
135
|
focus: typeof false,
|
package/src/checkbox/README.md
CHANGED
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
<input type="checkbox"
|
|
7
7
|
class="
|
|
8
8
|
k-checkbox
|
|
9
|
-
k-checkbox
|
|
10
|
-
k-rounded
|
|
9
|
+
k-checkbox-{size}
|
|
10
|
+
k-rounded-{rounded}
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
{checked && 'k-checked'}
|
|
13
|
+
{indeterminate && 'k-indeterminate'}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
{valid && 'k-valid'}
|
|
16
|
+
{invalid && 'k-invalid'}
|
|
17
|
+
{required && 'k-required'}
|
|
18
|
+
{disabled && 'k-disabled'}
|
|
19
19
|
"
|
|
20
20
|
disabled={disabled}
|
|
21
21
|
/>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as styles from '../../utils/styles';
|
|
2
|
-
import { Component, globalDefaultProps } from '../component';
|
|
2
|
+
import { Component, globalDefaultProps } from '../component/index';
|
|
3
3
|
|
|
4
4
|
class Checkbox extends Component {
|
|
5
5
|
render() {
|
|
@@ -103,8 +103,8 @@ CheckboxStatic.propTypes = {
|
|
|
103
103
|
checked: typeof false,
|
|
104
104
|
indeterminate: typeof false,
|
|
105
105
|
|
|
106
|
-
size: typeof [
|
|
107
|
-
rounded: typeof [
|
|
106
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
107
|
+
rounded: typeof [ null, 'small', 'medium', 'large' ],
|
|
108
108
|
|
|
109
109
|
hover: typeof false,
|
|
110
110
|
focus: typeof false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, globalDefaultProps } from '../component';
|
|
1
|
+
import { Component, globalDefaultProps } from '../component/index';
|
|
2
2
|
import { IconStatic } from '../icon/index';
|
|
3
3
|
|
|
4
4
|
class ColorPreview extends Component {
|
|
@@ -29,6 +29,10 @@ function ColorPreviewStatic(props) {
|
|
|
29
29
|
}
|
|
30
30
|
];
|
|
31
31
|
|
|
32
|
+
let styles = {
|
|
33
|
+
'background-color': color
|
|
34
|
+
};
|
|
35
|
+
|
|
32
36
|
let ariaAttr = aria
|
|
33
37
|
? {}
|
|
34
38
|
: {};
|
|
@@ -64,7 +68,7 @@ function ColorPreviewStatic(props) {
|
|
|
64
68
|
return (
|
|
65
69
|
<span className={colorPreviewClasses} {...ariaAttr} {...htmlAttributes}>
|
|
66
70
|
{iconName && <IconStatic name={iconName} className="k-color-preview-icon" />}
|
|
67
|
-
<span className="k-color-preview-mask"></span>
|
|
71
|
+
<span className="k-color-preview-mask" style={styles}></span>
|
|
68
72
|
</span>
|
|
69
73
|
);
|
|
70
74
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { globalDefaultProps } from '../component';
|
|
1
|
+
import { globalDefaultProps } from '../component/index';
|
|
2
2
|
import { Picker, PickerStatic, InputInnerSpanStatic } from '../input/index';
|
|
3
3
|
import { ColorPreviewStatic } from './color-preview.jsx';
|
|
4
4
|
import { ButtonStatic } from '../button/index';
|
|
@@ -52,7 +52,8 @@ function ColorpickerStatic(props) {
|
|
|
52
52
|
|
|
53
53
|
let colorpickerClasses = [
|
|
54
54
|
ownClassName,
|
|
55
|
-
'k-colorpicker'
|
|
55
|
+
'k-colorpicker',
|
|
56
|
+
'k-icon-picker'
|
|
56
57
|
];
|
|
57
58
|
|
|
58
59
|
let ariaAttr = aria
|
|
@@ -92,9 +93,9 @@ function ColorpickerStatic(props) {
|
|
|
92
93
|
return (
|
|
93
94
|
<PickerStatic className={colorpickerClasses} {...ariaAttr} {...htmlAttributes}>
|
|
94
95
|
{prefix}
|
|
95
|
-
<InputInnerSpanStatic showValue={false} valueIcon={<ColorPreviewStatic className="k-
|
|
96
|
+
<InputInnerSpanStatic showValue={false} valueIcon={<ColorPreviewStatic className="k-value-icon" color={value} iconName={iconName} />} />
|
|
96
97
|
{suffix}
|
|
97
|
-
<ButtonStatic className="k-input-button" icon="arrow-s" rounded=
|
|
98
|
+
<ButtonStatic className="k-input-button" icon="arrow-s" shape={null} rounded={null} size={size} fillMode={fillMode}></ButtonStatic>
|
|
98
99
|
</PickerStatic>
|
|
99
100
|
);
|
|
100
101
|
}
|
|
@@ -131,10 +132,10 @@ ColorpickerStatic.propTypes = {
|
|
|
131
132
|
prefix: typeof '#fragment',
|
|
132
133
|
suffix: typeof '#fragment',
|
|
133
134
|
|
|
134
|
-
size: typeof [
|
|
135
|
-
rounded: typeof [
|
|
135
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
136
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
|
|
136
137
|
|
|
137
|
-
fillMode: typeof [
|
|
138
|
+
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
138
139
|
|
|
139
140
|
hover: typeof false,
|
|
140
141
|
focus: typeof false,
|
package/src/combobox/README.md
CHANGED
|
@@ -11,18 +11,24 @@
|
|
|
11
11
|
<span class="
|
|
12
12
|
k-combobox
|
|
13
13
|
k-input
|
|
14
|
-
k-input
|
|
15
|
-
k-rounded
|
|
16
|
-
k-input
|
|
14
|
+
k-input-{size}
|
|
15
|
+
k-rounded-{rounded}
|
|
16
|
+
k-input-{fillMode}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
{valid && 'k-valid'}
|
|
19
|
+
{invalid && 'k-invalid'}
|
|
20
|
+
{loading && 'k-loading'}
|
|
21
|
+
{required && 'k-required'}
|
|
22
|
+
{disabled && 'k-disabled'}
|
|
22
23
|
">
|
|
24
|
+
{showInputIcon && inputIconName !== '' && <span class="k-input-icon k-i-icon k-i-{inputIconName}"></span>}
|
|
25
|
+
{inputPrefix && <span class="k-input-prefix">...</span>}
|
|
23
26
|
<input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
|
|
24
|
-
{
|
|
25
|
-
{
|
|
27
|
+
{inputPrefix && <span class="k-input-suffix">...</span>}
|
|
28
|
+
{showValidationIcon && valid && <span class="k-validation-icon k-icon k-i-check"></span>}
|
|
29
|
+
{showValidationIcon && invalid && <span class="k-validation-icon k-icon k-i-warning"></span>}
|
|
30
|
+
{showLoadingIcon && loading && <span class="k-icon k-i-loading"></span>}
|
|
31
|
+
{showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
|
|
26
32
|
<button type="button" class="k-input-button k-button k-icon-button k-button-{size} k-button-{fillMode} k-button-{fillMode}-base">
|
|
27
33
|
<span class="k-button-icon k-icon k-i-arrow-s"></span>
|
|
28
34
|
</button>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { globalDefaultProps } from '../component';
|
|
1
|
+
import { globalDefaultProps } from '../component/index';
|
|
2
2
|
import { Input, InputStatic, InputInnerInputStatic } from '../input/index';
|
|
3
3
|
import { InputValidationIconStatic, InputLoadingIconStatic, InputClearValueStatic } from '../input/index';
|
|
4
4
|
import { ButtonStatic } from '../button/index';
|
|
@@ -110,7 +110,7 @@ function ComboboxStatic(props) {
|
|
|
110
110
|
<InputValidationIconStatic {...props} />
|
|
111
111
|
<InputLoadingIconStatic {...props} />
|
|
112
112
|
<InputClearValueStatic {...props} />
|
|
113
|
-
<ButtonStatic className="k-input-button" icon="arrow-s" rounded=
|
|
113
|
+
<ButtonStatic className="k-input-button" icon="arrow-s" shape={null} rounded={null} size={size} fillMode={fillMode}></ButtonStatic>
|
|
114
114
|
</InputStatic>
|
|
115
115
|
);
|
|
116
116
|
}
|
|
@@ -149,10 +149,10 @@ ComboboxStatic.propTypes = {
|
|
|
149
149
|
prefix: typeof '#fragment',
|
|
150
150
|
suffix: typeof '#fragment',
|
|
151
151
|
|
|
152
|
-
size: typeof [
|
|
153
|
-
rounded: typeof [
|
|
152
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
153
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
|
|
154
154
|
|
|
155
|
-
fillMode: typeof [
|
|
155
|
+
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
156
156
|
|
|
157
157
|
hover: typeof false,
|
|
158
158
|
focus: typeof false,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { isFunction } from '
|
|
2
|
-
import { renderDOM, htmlToProps } from '
|
|
1
|
+
import { isFunction } from '../../utils/object';
|
|
2
|
+
import { renderDOM, htmlToProps } from '../../lib/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
const globalDefaultProps = {
|
|
5
5
|
legacy: true,
|
|
6
6
|
|
|
7
|
+
framework: 'universal',
|
|
8
|
+
|
|
7
9
|
className: '',
|
|
8
10
|
|
|
9
11
|
aria: false,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './component.jsx';
|
package/src/dateinput/README.md
CHANGED
|
@@ -16,18 +16,24 @@
|
|
|
16
16
|
<span class="
|
|
17
17
|
k-dateinput
|
|
18
18
|
k-input
|
|
19
|
-
k-input
|
|
20
|
-
k-rounded
|
|
21
|
-
k-input
|
|
19
|
+
k-input-{size}
|
|
20
|
+
k-rounded-{rounded}
|
|
21
|
+
k-input-{fillMode}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
{valid && 'k-valid'}
|
|
24
|
+
{invalid && 'k-invalid'}
|
|
25
|
+
{loading && 'k-loading'}
|
|
26
|
+
{required && 'k-required'}
|
|
27
|
+
{disabled && 'k-disabled'}
|
|
27
28
|
">
|
|
29
|
+
{showInputIcon && inputIconName !== '' && <span class="k-input-icon k-i-icon k-i-{inputIconName}"></span>}
|
|
30
|
+
{inputPrefix && <span class="k-input-prefix">...</span>}
|
|
28
31
|
<input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
|
|
29
|
-
{
|
|
30
|
-
{
|
|
32
|
+
{inputPrefix && <span class="k-input-suffix">...</span>}
|
|
33
|
+
{showValidationIcon && valid && <span class="k-validation-icon k-icon k-i-check"></span>}
|
|
34
|
+
{showValidationIcon && invalid && <span class="k-validation-icon k-icon k-i-warning"></span>}
|
|
35
|
+
{showLoadingIcon && loading && <span class="k-icon k-i-loading"></span>}
|
|
36
|
+
{showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
|
|
31
37
|
{showSpinButton &&
|
|
32
38
|
<span class="k-input-spinner k-spin-button">
|
|
33
39
|
<button class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, globalDefaultProps } from '../component';
|
|
1
|
+
import { Component, globalDefaultProps } from '../component/index';
|
|
2
2
|
import { InputStatic, InputInnerInputStatic } from '../input/index';
|
|
3
3
|
import { InputValidationIconStatic, InputLoadingIconStatic, InputClearValueStatic } from '../input/index';
|
|
4
4
|
import { SpinButtonStatic } from '../spinbutton/index';
|
|
@@ -111,7 +111,7 @@ function DateInputStatic(props) {
|
|
|
111
111
|
<InputValidationIconStatic {...props} />
|
|
112
112
|
<InputLoadingIconStatic {...props} />
|
|
113
113
|
<InputClearValueStatic {...props} />
|
|
114
|
-
{showSpinButton === true && <SpinButtonStatic className="k-input-spinner" />}
|
|
114
|
+
{showSpinButton === true && <SpinButtonStatic className="k-input-spinner" size={size} fillMode={fillMode} />}
|
|
115
115
|
</InputStatic>
|
|
116
116
|
);
|
|
117
117
|
}
|
|
@@ -147,10 +147,10 @@ DateInputStatic.propTypes = {
|
|
|
147
147
|
showLoadingIcon: typeof true,
|
|
148
148
|
showClearButton: typeof true,
|
|
149
149
|
|
|
150
|
-
size: typeof [
|
|
151
|
-
rounded: typeof [
|
|
150
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
151
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
|
|
152
152
|
|
|
153
|
-
fillMode: typeof [
|
|
153
|
+
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
154
154
|
|
|
155
155
|
hover: typeof false,
|
|
156
156
|
focus: typeof false,
|
package/src/datepicker/README.md
CHANGED
|
@@ -11,18 +11,24 @@
|
|
|
11
11
|
<span class="
|
|
12
12
|
k-datepicker
|
|
13
13
|
k-input
|
|
14
|
-
k-input
|
|
15
|
-
k-rounded
|
|
16
|
-
k-input
|
|
14
|
+
k-input-{size}
|
|
15
|
+
k-rounded-{rounded}
|
|
16
|
+
k-input-{fillMode}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
{valid && 'k-valid'}
|
|
19
|
+
{invalid && 'k-invalid'}
|
|
20
|
+
{loading && 'k-loading'}
|
|
21
|
+
{required && 'k-required'}
|
|
22
|
+
{disabled && 'k-disabled'}
|
|
22
23
|
">
|
|
24
|
+
{showInputIcon && inputIconName !== '' && <span class="k-input-icon k-i-icon k-i-{inputIconName}"></span>}
|
|
25
|
+
{inputPrefix && <span class="k-input-prefix">...</span>}
|
|
23
26
|
<input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
|
|
24
|
-
{
|
|
25
|
-
{
|
|
27
|
+
{inputPrefix && <span class="k-input-suffix">...</span>}
|
|
28
|
+
{showValidationIcon && valid && <span class="k-validation-icon k-icon k-i-check"></span>}
|
|
29
|
+
{showValidationIcon && invalid && <span class="k-validation-icon k-icon k-i-warning"></span>}
|
|
30
|
+
{showLoadingIcon && loading && <span class="k-icon k-i-loading"></span>}
|
|
31
|
+
{showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
|
|
26
32
|
<button type="button" class="k-input-button k-button k-icon-button k-button-{size} k-button-{fillMode} k-button-{fillMode}-base">
|
|
27
33
|
<span class="k-button-icon k-icon k-i-calendar"></span>
|
|
28
34
|
</button>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { globalDefaultProps } from '../component';
|
|
1
|
+
import { globalDefaultProps } from '../component/index';
|
|
2
2
|
import { Input, InputStatic, InputInnerInputStatic } from '../input/index';
|
|
3
3
|
import { InputValidationIconStatic, InputLoadingIconStatic, InputClearValueStatic } from '../input/index';
|
|
4
4
|
import { ButtonStatic } from '../button/index';
|
|
@@ -110,7 +110,7 @@ function DatePickerStatic(props) {
|
|
|
110
110
|
<InputValidationIconStatic {...props} />
|
|
111
111
|
<InputLoadingIconStatic {...props} />
|
|
112
112
|
<InputClearValueStatic {...props} />
|
|
113
|
-
<ButtonStatic className="k-input-button" icon="calendar" rounded=
|
|
113
|
+
<ButtonStatic className="k-input-button" icon="calendar" shape={null} rounded={null} size={size} fillMode={fillMode}></ButtonStatic>
|
|
114
114
|
</InputStatic>
|
|
115
115
|
);
|
|
116
116
|
}
|
|
@@ -149,10 +149,10 @@ DatePickerStatic.propTypes = {
|
|
|
149
149
|
prefix: typeof '#fragment',
|
|
150
150
|
suffix: typeof '#fragment',
|
|
151
151
|
|
|
152
|
-
size: typeof [
|
|
153
|
-
rounded: typeof [
|
|
152
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
153
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
|
|
154
154
|
|
|
155
|
-
fillMode: typeof [
|
|
155
|
+
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
156
156
|
|
|
157
157
|
hover: typeof false,
|
|
158
158
|
focus: typeof false,
|