@progress/kendo-themes-html 4.42.1-dev.4 → 4.43.1-dev.2
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 +32 -3
- package/package.json +2 -2
- package/src/autocomplete/autocomplete.jsx +4 -4
- package/src/avatar/README.md +21 -0
- package/src/avatar/avatar.jsx +113 -0
- package/src/avatar/index.js +1 -0
- package/src/button/button.jsx +6 -6
- package/src/checkbox/checkbox.jsx +3 -3
- package/src/chip/README.md +47 -0
- package/src/chip/chip-actions.jsx +80 -0
- package/src/chip/chip-avatar.jsx +13 -0
- package/src/chip/chip-list.jsx +84 -0
- package/src/chip/chip.jsx +180 -0
- package/src/chip/index.js +4 -0
- package/src/colorpicker/color-preview.jsx +6 -2
- package/src/colorpicker/colorpicker.jsx +12 -13
- 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/dateinput.jsx +9 -11
- package/src/datepicker/datepicker.jsx +9 -11
- package/src/datetimepicker/datetimepicker.jsx +9 -11
- 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 +67 -0
- package/src/list/list-item.jsx +117 -0
- package/src/list/list.jsx +182 -0
- package/src/maskedtextbox/maskedtextbox.jsx +4 -4
- package/src/nodata/index.js +1 -0
- package/src/nodata/nodata.jsx +64 -0
- 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/radio.jsx +2 -2
- package/src/searchbar/searchbar.jsx +1 -1
- package/src/searchbox/searchbox.jsx +4 -4
- package/src/spinbutton/spinbutton.jsx +9 -3
- package/src/switch/switch.jsx +6 -6
- package/src/textarea/textarea.jsx +4 -4
- package/src/textbox/textbox.jsx +4 -4
- package/src/timepicker/timepicker.jsx +9 -11
- package/utils/styles.js +14 -5
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as styles from '../../utils/styles';
|
|
2
|
+
import { Component, globalDefaultProps } from '../component/index';
|
|
3
|
+
|
|
4
|
+
class Popup extends Component {
|
|
5
|
+
render() {
|
|
6
|
+
return <PopupStatic {...this.props} />;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function PopupStatic(props) {
|
|
11
|
+
|
|
12
|
+
const {
|
|
13
|
+
className: ownClassName,
|
|
14
|
+
|
|
15
|
+
children,
|
|
16
|
+
|
|
17
|
+
size,
|
|
18
|
+
rounded,
|
|
19
|
+
|
|
20
|
+
aria,
|
|
21
|
+
legacy,
|
|
22
|
+
|
|
23
|
+
...htmlAttributes
|
|
24
|
+
} = props;
|
|
25
|
+
|
|
26
|
+
let PopupClasses = [
|
|
27
|
+
ownClassName,
|
|
28
|
+
'k-popup',
|
|
29
|
+
styles.sizeClass( size, 'k-popup' ),
|
|
30
|
+
styles.roundedClass( rounded )
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
let ariaAttr = aria
|
|
34
|
+
? {}
|
|
35
|
+
: {};
|
|
36
|
+
|
|
37
|
+
if (legacy) {
|
|
38
|
+
|
|
39
|
+
let legacyClasses = [
|
|
40
|
+
ownClassName,
|
|
41
|
+
'k-popup'
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<div className={legacyClasses} {...htmlAttributes}>
|
|
46
|
+
{children}
|
|
47
|
+
</div>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<div className={PopupClasses} {...ariaAttr} {...htmlAttributes}>
|
|
53
|
+
{children}
|
|
54
|
+
</div>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
PopupStatic.defaultProps = {
|
|
59
|
+
...globalDefaultProps,
|
|
60
|
+
|
|
61
|
+
children: [],
|
|
62
|
+
|
|
63
|
+
size: 'medium',
|
|
64
|
+
rounded: 'medium'
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
PopupStatic.propTypes = {
|
|
68
|
+
children: typeof [],
|
|
69
|
+
className: typeof '',
|
|
70
|
+
|
|
71
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
72
|
+
rounded: typeof [ null, 'small', 'medium', 'large' ],
|
|
73
|
+
|
|
74
|
+
aria: typeof false,
|
|
75
|
+
legacy: typeof false,
|
|
76
|
+
|
|
77
|
+
htmlAttributes: typeof []
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export { Popup, PopupStatic };
|
package/src/radio/radio.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 Radio extends Component {
|
|
5
5
|
render() {
|
|
@@ -86,7 +86,7 @@ RadioStatic.propTypes = {
|
|
|
86
86
|
|
|
87
87
|
checked: typeof false,
|
|
88
88
|
|
|
89
|
-
size: typeof [
|
|
89
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
90
90
|
|
|
91
91
|
hover: typeof false,
|
|
92
92
|
focus: typeof false,
|
|
@@ -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', 'full' ],
|
|
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() {
|
|
@@ -105,8 +105,8 @@ SwitchStatic.defaultProps = {
|
|
|
105
105
|
offLabel: '',
|
|
106
106
|
|
|
107
107
|
size: 'medium',
|
|
108
|
-
trackRounded: '
|
|
109
|
-
thumbRounded: '
|
|
108
|
+
trackRounded: 'full',
|
|
109
|
+
thumbRounded: 'full'
|
|
110
110
|
};
|
|
111
111
|
SwitchStatic.propTypes = {
|
|
112
112
|
checked: typeof false,
|
|
@@ -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, 'small', 'medium', 'large', 'full' ],
|
|
119
|
+
thumbRounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
|
|
120
120
|
|
|
121
121
|
hover: typeof false,
|
|
122
122
|
focus: typeof false,
|
|
@@ -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', 'full' ],
|
|
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/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', 'full' ],
|
|
144
144
|
|
|
145
|
-
fillMode: typeof [
|
|
145
|
+
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
146
146
|
|
|
147
147
|
hover: typeof false,
|
|
148
148
|
focus: typeof false,
|
|
@@ -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';
|
|
@@ -76,17 +76,15 @@ function TimePickerStatic(props) {
|
|
|
76
76
|
'k-widget',
|
|
77
77
|
'k-timepicker',
|
|
78
78
|
{
|
|
79
|
+
'k-state-hover': hover === true,
|
|
80
|
+
'k-state-focus': focus === true,
|
|
81
|
+
'k-state-invalid': invalid === true,
|
|
79
82
|
'k-state-disabled': disabled === true
|
|
80
83
|
}
|
|
81
84
|
];
|
|
82
85
|
|
|
83
86
|
let legacyWrapClasses = [
|
|
84
|
-
'k-picker-wrap'
|
|
85
|
-
{
|
|
86
|
-
'k-state-hover': hover === true,
|
|
87
|
-
'k-state-focused': focus === true,
|
|
88
|
-
'k-state-invalid': invalid === true
|
|
89
|
-
}
|
|
87
|
+
'k-picker-wrap'
|
|
90
88
|
];
|
|
91
89
|
|
|
92
90
|
return (
|
|
@@ -110,7 +108,7 @@ function TimePickerStatic(props) {
|
|
|
110
108
|
<InputValidationIconStatic {...props} />
|
|
111
109
|
<InputLoadingIconStatic {...props} />
|
|
112
110
|
<InputClearValueStatic {...props} />
|
|
113
|
-
<ButtonStatic className="k-input-button" icon="clock" rounded=
|
|
111
|
+
<ButtonStatic className="k-input-button" icon="clock" shape={null} rounded={null} size={size} fillMode={fillMode}></ButtonStatic>
|
|
114
112
|
</InputStatic>
|
|
115
113
|
);
|
|
116
114
|
}
|
|
@@ -149,10 +147,10 @@ TimePickerStatic.propTypes = {
|
|
|
149
147
|
prefix: typeof '#fragment',
|
|
150
148
|
suffix: typeof '#fragment',
|
|
151
149
|
|
|
152
|
-
size: typeof [
|
|
153
|
-
rounded: typeof [
|
|
150
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
151
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
|
|
154
152
|
|
|
155
|
-
fillMode: typeof [
|
|
153
|
+
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
156
154
|
|
|
157
155
|
hover: typeof false,
|
|
158
156
|
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,
|