@progress/kendo-themes-html 4.43.1-dev.0 → 4.43.1-dev.4
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 +13 -1
- package/package.json +2 -2
- package/src/autocomplete/autocomplete.jsx +2 -2
- package/src/avatar/avatar.jsx +18 -21
- package/src/button/button.jsx +2 -2
- package/src/checkbox/checkbox.jsx +1 -1
- 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/README.md +24 -15
- package/src/colorpicker/color-preview.jsx +28 -21
- package/src/colorpicker/colorpicker.jsx +6 -8
- package/src/combobox/combobox.jsx +6 -8
- package/src/{component.js → component/component.jsx} +4 -2
- package/src/component/index.js +1 -0
- package/src/dateinput/dateinput.jsx +6 -8
- package/src/datepicker/datepicker.jsx +6 -8
- package/src/datetimepicker/datetimepicker.jsx +6 -8
- package/src/dropdownlist/dropdownlist.jsx +6 -8
- package/src/fab/README.md +19 -0
- package/src/fab/fab.jsx +154 -0
- package/src/fab/index.js +1 -0
- package/src/icon/icon.jsx +1 -1
- package/src/index.js +42 -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 +2 -2
- package/src/input/picker.jsx +4 -4
- package/src/list/README.md +107 -0
- package/src/list/index.js +5 -0
- package/src/list/list-content.jsx +95 -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 +9 -12
- package/src/nodata/index.js +1 -0
- package/src/nodata/nodata.jsx +64 -0
- package/src/numerictextbox/numerictextbox.jsx +2 -2
- 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 +1 -1
- package/src/searchbar/searchbar.jsx +1 -1
- package/src/searchbox/searchbox.jsx +2 -2
- package/src/spinbutton/spinbutton.jsx +1 -1
- package/src/switch/switch.jsx +5 -5
- package/src/textarea/textarea.jsx +2 -2
- package/src/textbox/textbox.jsx +2 -2
- package/src/timepicker/timepicker.jsx +6 -8
- package/utils/styles.js +9 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Component, globalDefaultProps } from '../component/index';
|
|
2
|
+
|
|
3
|
+
class NoData extends Component {
|
|
4
|
+
render() {
|
|
5
|
+
return <NoDataStatic {...this.props} />;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function NoDataStatic(props) {
|
|
10
|
+
|
|
11
|
+
const {
|
|
12
|
+
className: ownClassName,
|
|
13
|
+
// eslint-disable-next-line no-unused-vars
|
|
14
|
+
children,
|
|
15
|
+
|
|
16
|
+
aria,
|
|
17
|
+
legacy,
|
|
18
|
+
|
|
19
|
+
...htmlAttributes
|
|
20
|
+
} = props;
|
|
21
|
+
|
|
22
|
+
let noDataClasses = [
|
|
23
|
+
ownClassName,
|
|
24
|
+
'k-no-data'
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
let ariaAttr = aria
|
|
28
|
+
? {}
|
|
29
|
+
: {};
|
|
30
|
+
|
|
31
|
+
if (legacy) {
|
|
32
|
+
|
|
33
|
+
let legacyClasses = [
|
|
34
|
+
ownClassName,
|
|
35
|
+
'k-nodata'
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<div className={legacyClasses} {...ariaAttr} {...htmlAttributes}>No data found.</div>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<div className={noDataClasses} {...ariaAttr} {...htmlAttributes}>No data found.</div>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
NoDataStatic.defaultProps = {
|
|
49
|
+
...globalDefaultProps,
|
|
50
|
+
|
|
51
|
+
children: []
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
NoDataStatic.propTypes = {
|
|
55
|
+
children: typeof [],
|
|
56
|
+
className: typeof '',
|
|
57
|
+
|
|
58
|
+
aria: typeof false,
|
|
59
|
+
legacy: typeof false,
|
|
60
|
+
|
|
61
|
+
htmlAttributes: typeof []
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export { NoData, NoDataStatic };
|
|
@@ -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';
|
|
@@ -149,7 +149,7 @@ NumericTextboxStatic.propTypes = {
|
|
|
149
149
|
showClearButton: typeof true,
|
|
150
150
|
|
|
151
151
|
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
152
|
-
rounded: typeof [ null, 'small', 'medium', 'large', '
|
|
152
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
|
|
153
153
|
|
|
154
154
|
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
155
155
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './popup.jsx';
|
|
@@ -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,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';
|
|
@@ -150,7 +150,7 @@ SearchboxInner.propTypes = {
|
|
|
150
150
|
suffix: typeof '#fragment',
|
|
151
151
|
|
|
152
152
|
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
153
|
-
rounded: typeof [ null, 'small', 'medium', 'large', '
|
|
153
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
|
|
154
154
|
|
|
155
155
|
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
156
156
|
|
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,
|
|
@@ -115,8 +115,8 @@ SwitchStatic.propTypes = {
|
|
|
115
115
|
offLabel: typeof '',
|
|
116
116
|
|
|
117
117
|
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
118
|
-
trackRounded: typeof [ null, '
|
|
119
|
-
thumbRounded: typeof [ null, '
|
|
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 {
|
|
@@ -117,7 +117,7 @@ TextareaStatic.propTypes = {
|
|
|
117
117
|
suffix: typeof '#fragment',
|
|
118
118
|
|
|
119
119
|
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
120
|
-
rounded: typeof [ null, 'small', 'medium', 'large', '
|
|
120
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
|
|
121
121
|
|
|
122
122
|
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
123
123
|
|
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
|
|
|
@@ -140,7 +140,7 @@ TextboxStatic.propTypes = {
|
|
|
140
140
|
suffix: typeof '#fragment',
|
|
141
141
|
|
|
142
142
|
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
143
|
-
rounded: typeof [ null, 'small', 'medium', 'large', '
|
|
143
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
|
|
144
144
|
|
|
145
145
|
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
146
146
|
|
|
@@ -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 (
|
|
@@ -150,7 +148,7 @@ TimePickerStatic.propTypes = {
|
|
|
150
148
|
suffix: typeof '#fragment',
|
|
151
149
|
|
|
152
150
|
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
153
|
-
rounded: typeof [ null, 'small', 'medium', 'large', '
|
|
151
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
|
|
154
152
|
|
|
155
153
|
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
156
154
|
|
package/utils/styles.js
CHANGED
|
@@ -72,6 +72,14 @@ function borderedClass( bordered, prefix ) {
|
|
|
72
72
|
return `${prefix}-bordered`;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
function positionClass( position, prefix ) {
|
|
76
|
+
if ( position === null ) {
|
|
77
|
+
return '';
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return `k-pos-absolute ${prefix}-${position}`;
|
|
81
|
+
}
|
|
82
|
+
|
|
75
83
|
function classNames( ...args ) {
|
|
76
84
|
|
|
77
85
|
/* eslint-disable arrow-body-style, no-nested-ternary */
|
|
@@ -131,6 +139,7 @@ export {
|
|
|
131
139
|
fillModeClass,
|
|
132
140
|
themeColorClass,
|
|
133
141
|
borderedClass,
|
|
142
|
+
positionClass,
|
|
134
143
|
|
|
135
144
|
classNames,
|
|
136
145
|
cssStyle,
|