@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
|
@@ -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 { IconStatic } from '../icon/index';
|
|
@@ -149,10 +149,10 @@ SearchboxInner.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,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
|
import { ButtonStatic } from '../button/index';
|
|
4
4
|
|
|
@@ -13,6 +13,9 @@ function SpinButtonStatic(props) {
|
|
|
13
13
|
const {
|
|
14
14
|
className: ownClassName,
|
|
15
15
|
|
|
16
|
+
size,
|
|
17
|
+
fillMode,
|
|
18
|
+
|
|
16
19
|
aria,
|
|
17
20
|
legacy,
|
|
18
21
|
|
|
@@ -43,8 +46,8 @@ function SpinButtonStatic(props) {
|
|
|
43
46
|
|
|
44
47
|
return (
|
|
45
48
|
<span className={spinButtonClasses} {...ariaAttr} {...htmlAttributes}>
|
|
46
|
-
<ButtonStatic
|
|
47
|
-
<ButtonStatic
|
|
49
|
+
<ButtonStatic className="k-spinner-increase" icon="arrow-n" shape={null} rounded={null} size={size} fillMode={fillMode} />
|
|
50
|
+
<ButtonStatic className="k-spinner-decrease" icon="arrow-s" shape={null} rounded={null} size={size} fillMode={fillMode} />
|
|
48
51
|
</span>
|
|
49
52
|
);
|
|
50
53
|
}
|
|
@@ -56,6 +59,9 @@ SpinButtonStatic.defaultProps = {
|
|
|
56
59
|
SpinButtonStatic.propTypes = {
|
|
57
60
|
className: typeof '',
|
|
58
61
|
|
|
62
|
+
size: typeof '',
|
|
63
|
+
fillMode: typeof '',
|
|
64
|
+
|
|
59
65
|
aria: typeof false,
|
|
60
66
|
legacy: typeof false,
|
|
61
67
|
|
package/src/switch/switch.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
|
|
|
4
4
|
class Switch extends Component {
|
|
5
5
|
render() {
|
|
@@ -114,9 +114,9 @@ SwitchStatic.propTypes = {
|
|
|
114
114
|
onLabel: typeof '',
|
|
115
115
|
offLabel: typeof '',
|
|
116
116
|
|
|
117
|
-
size: typeof [
|
|
118
|
-
trackRounded: typeof [
|
|
119
|
-
thumbRounded: typeof [
|
|
117
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
118
|
+
trackRounded: typeof [ null, '0', 'small', 'medium', 'large', 'pill', 'circle' ],
|
|
119
|
+
thumbRounded: typeof [ null, '0', 'small', 'medium', 'large', 'pill', 'circle' ],
|
|
120
120
|
|
|
121
121
|
hover: typeof false,
|
|
122
122
|
focus: typeof false,
|
package/src/textarea/README.md
CHANGED
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
```html
|
|
2
2
|
<!-- default rendering -->
|
|
3
3
|
<span class="k-textarea k-input k-input-md k-rounded-md k-input-solid">
|
|
4
|
-
<textarea
|
|
4
|
+
<textarea class="k-input-inner" placeholder="...">...</textarea>
|
|
5
5
|
</span>
|
|
6
6
|
|
|
7
7
|
<!-- canonical rendering -->
|
|
8
8
|
<span class="
|
|
9
9
|
k-textarea
|
|
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
|
">
|
|
20
|
-
<
|
|
21
|
-
{
|
|
22
|
-
|
|
21
|
+
{showInputIcon && inputIconName !== '' && <span class="k-input-icon k-i-icon k-i-{inputIconName}"></span>}
|
|
22
|
+
{inputPrefix && <span class="k-input-prefix">...</span>}
|
|
23
|
+
<textarea class="k-input-inner" placeholder="{placeholder}" disabled={disabled}>{value}</textarea>
|
|
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, InputInnerTextareaStatic } from '../input/index';
|
|
3
3
|
|
|
4
4
|
class Textarea extends Input {
|
|
@@ -116,10 +116,10 @@ TextareaStatic.propTypes = {
|
|
|
116
116
|
prefix: typeof '#fragment',
|
|
117
117
|
suffix: typeof '#fragment',
|
|
118
118
|
|
|
119
|
-
size: typeof [
|
|
120
|
-
rounded: typeof [
|
|
119
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
120
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
|
|
121
121
|
|
|
122
|
-
fillMode: typeof [
|
|
122
|
+
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
123
123
|
|
|
124
124
|
hover: typeof false,
|
|
125
125
|
focus: typeof false,
|
package/src/textbox/README.md
CHANGED
|
@@ -8,17 +8,23 @@
|
|
|
8
8
|
<span class="
|
|
9
9
|
k-textbox
|
|
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
|
```
|
package/src/textbox/textbox.jsx
CHANGED
|
@@ -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
|
|
|
@@ -139,10 +139,10 @@ TextboxStatic.propTypes = {
|
|
|
139
139
|
prefix: typeof '#fragment',
|
|
140
140
|
suffix: typeof '#fragment',
|
|
141
141
|
|
|
142
|
-
size: typeof [
|
|
143
|
-
rounded: typeof [
|
|
142
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
143
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
|
|
144
144
|
|
|
145
|
-
fillMode: typeof [
|
|
145
|
+
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
146
146
|
|
|
147
147
|
hover: typeof false,
|
|
148
148
|
focus: typeof false,
|
package/src/timepicker/README.md
CHANGED
|
@@ -11,18 +11,24 @@
|
|
|
11
11
|
<span class="
|
|
12
12
|
k-timepicker
|
|
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-clock"></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 TimePickerStatic(props) {
|
|
|
110
110
|
<InputValidationIconStatic {...props} />
|
|
111
111
|
<InputLoadingIconStatic {...props} />
|
|
112
112
|
<InputClearValueStatic {...props} />
|
|
113
|
-
<ButtonStatic className="k-input-button" icon="clock" rounded=
|
|
113
|
+
<ButtonStatic className="k-input-button" icon="clock" shape={null} rounded={null} size={size} fillMode={fillMode}></ButtonStatic>
|
|
114
114
|
</InputStatic>
|
|
115
115
|
);
|
|
116
116
|
}
|
|
@@ -149,10 +149,10 @@ TimePickerStatic.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,
|
package/utils/styles.js
CHANGED
|
@@ -25,7 +25,7 @@ function lookup( map, key ) {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
function sizeClass( size, prefix ) {
|
|
28
|
-
if ( size ===
|
|
28
|
+
if ( size === null ) {
|
|
29
29
|
return '';
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -33,7 +33,7 @@ function sizeClass( size, prefix ) {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
function roundedClass( rounded ) {
|
|
36
|
-
if ( rounded ===
|
|
36
|
+
if ( rounded === null ) {
|
|
37
37
|
return '';
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -41,7 +41,7 @@ function roundedClass( rounded ) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
function shapeClass( shape, prefix ) {
|
|
44
|
-
if ( shape ===
|
|
44
|
+
if ( shape === null ) {
|
|
45
45
|
return '';
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -49,7 +49,7 @@ function shapeClass( shape, prefix ) {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
function fillModeClass( fill, prefix ) {
|
|
52
|
-
if ( fill ===
|
|
52
|
+
if ( fill === null) {
|
|
53
53
|
return '';
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -57,13 +57,21 @@ function fillModeClass( fill, prefix ) {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
function themeColorClass( fill, color, prefix ) {
|
|
60
|
-
if ( fill ===
|
|
60
|
+
if ( fill === null || color === null) {
|
|
61
61
|
return '';
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
return `${prefix}-${fill}-${color}`;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
function borderedClass( bordered, prefix ) {
|
|
68
|
+
if ( !bordered ) {
|
|
69
|
+
return '';
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return `${prefix}-bordered`;
|
|
73
|
+
}
|
|
74
|
+
|
|
67
75
|
function classNames( ...args ) {
|
|
68
76
|
|
|
69
77
|
/* eslint-disable arrow-body-style, no-nested-ternary */
|
|
@@ -122,6 +130,7 @@ export {
|
|
|
122
130
|
shapeClass,
|
|
123
131
|
fillModeClass,
|
|
124
132
|
themeColorClass,
|
|
133
|
+
borderedClass,
|
|
125
134
|
|
|
126
135
|
classNames,
|
|
127
136
|
cssStyle,
|