@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
|
@@ -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 {
|
|
@@ -39,28 +39,35 @@ function ColorPreviewStatic(props) {
|
|
|
39
39
|
|
|
40
40
|
if (legacy) {
|
|
41
41
|
|
|
42
|
-
let legacyClasses = [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
];
|
|
49
|
-
|
|
50
|
-
let legacyStyles = {
|
|
51
|
-
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
if (iconName === '') {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
42
|
+
// let legacyClasses = [
|
|
43
|
+
// ownClassName,
|
|
44
|
+
// 'k-selected-color',
|
|
45
|
+
// {
|
|
46
|
+
// 'k-no-color': color === ''
|
|
47
|
+
// }
|
|
48
|
+
// ];
|
|
49
|
+
|
|
50
|
+
// let legacyStyles = {
|
|
51
|
+
// 'background-color': color
|
|
52
|
+
// };
|
|
53
|
+
|
|
54
|
+
// if (iconName === '') {
|
|
55
|
+
// return (
|
|
56
|
+
// <span className={legacyClasses} style={legacyStyles}></span>
|
|
57
|
+
// );
|
|
58
|
+
// }
|
|
59
|
+
|
|
60
|
+
// return (
|
|
61
|
+
// <IconStatic className="k-tool-icon" name={iconName}>
|
|
62
|
+
// <span className={legacyClasses} style={legacyStyles}></span>
|
|
63
|
+
// </IconStatic>
|
|
64
|
+
// );
|
|
59
65
|
|
|
60
66
|
return (
|
|
61
|
-
<
|
|
62
|
-
<
|
|
63
|
-
|
|
67
|
+
<span className={colorPreviewClasses} {...ariaAttr} {...htmlAttributes}>
|
|
68
|
+
{iconName && <IconStatic name={iconName} className="k-color-preview-icon" />}
|
|
69
|
+
<span className="k-color-preview-mask" style={styles}></span>
|
|
70
|
+
</span>
|
|
64
71
|
);
|
|
65
72
|
|
|
66
73
|
}
|
|
@@ -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';
|
|
@@ -67,17 +67,15 @@ function ColorpickerStatic(props) {
|
|
|
67
67
|
'k-widget',
|
|
68
68
|
'k-colorpicker',
|
|
69
69
|
{
|
|
70
|
+
'k-state-hover': hover === true,
|
|
71
|
+
'k-state-focus': focus === true,
|
|
72
|
+
'k-state-invalid': invalid === true,
|
|
70
73
|
'k-state-disabled': disabled === true
|
|
71
74
|
}
|
|
72
75
|
];
|
|
73
76
|
|
|
74
77
|
let legacyWrapClasses = [
|
|
75
|
-
'k-picker-wrap'
|
|
76
|
-
{
|
|
77
|
-
'k-state-hover': hover === true,
|
|
78
|
-
'k-state-focused': focus === true,
|
|
79
|
-
'k-state-invalid': invalid === true
|
|
80
|
-
}
|
|
78
|
+
'k-picker-wrap'
|
|
81
79
|
];
|
|
82
80
|
|
|
83
81
|
return (
|
|
@@ -133,7 +131,7 @@ ColorpickerStatic.propTypes = {
|
|
|
133
131
|
suffix: typeof '#fragment',
|
|
134
132
|
|
|
135
133
|
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
136
|
-
rounded: typeof [ null, 'small', 'medium', 'large', '
|
|
134
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
|
|
137
135
|
|
|
138
136
|
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
139
137
|
|
|
@@ -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 ComboboxStatic(props) {
|
|
|
76
76
|
'k-widget',
|
|
77
77
|
'k-combobox',
|
|
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-dropdown-wrap'
|
|
85
|
-
{
|
|
86
|
-
'k-state-hover': hover === true,
|
|
87
|
-
'k-state-focused': focus === true,
|
|
88
|
-
'k-state-invalid': invalid === true
|
|
89
|
-
}
|
|
87
|
+
'k-dropdown-wrap'
|
|
90
88
|
];
|
|
91
89
|
|
|
92
90
|
return (
|
|
@@ -150,7 +148,7 @@ ComboboxStatic.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
|
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -75,17 +75,15 @@ function DateInputStatic(props) {
|
|
|
75
75
|
'k-widget',
|
|
76
76
|
'k-dateinput',
|
|
77
77
|
{
|
|
78
|
+
'k-state-hover': hover === true,
|
|
79
|
+
'k-state-focus': focus === true,
|
|
80
|
+
'k-state-invalid': invalid === true,
|
|
78
81
|
'k-state-disabled': disabled === true
|
|
79
82
|
}
|
|
80
83
|
];
|
|
81
84
|
|
|
82
85
|
let legacyWrapClasses = [
|
|
83
|
-
'k-dateinput-wrap'
|
|
84
|
-
{
|
|
85
|
-
'k-state-hover': hover === true,
|
|
86
|
-
'k-state-focused': focus === true,
|
|
87
|
-
'k-state-invalid': invalid === true
|
|
88
|
-
}
|
|
86
|
+
'k-dateinput-wrap'
|
|
89
87
|
];
|
|
90
88
|
|
|
91
89
|
let legacyInputClasses = [
|
|
@@ -148,7 +146,7 @@ DateInputStatic.propTypes = {
|
|
|
148
146
|
showClearButton: typeof true,
|
|
149
147
|
|
|
150
148
|
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
151
|
-
rounded: typeof [ null, 'small', 'medium', 'large', '
|
|
149
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
|
|
152
150
|
|
|
153
151
|
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
154
152
|
|
|
@@ -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 DatePickerStatic(props) {
|
|
|
76
76
|
'k-widget',
|
|
77
77
|
'k-datepicker',
|
|
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 @@ DatePickerStatic.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
|
|
|
@@ -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 DateTimePickerStatic(props) {
|
|
|
76
76
|
'k-widget',
|
|
77
77
|
'k-datetimepicker',
|
|
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 @@ DateTimePickerStatic.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
|
|
|
@@ -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 { InputValidationIconStatic, InputLoadingIconStatic, InputClearValueStatic } from '../input/index';
|
|
4
4
|
import { ButtonStatic } from '../button/index';
|
|
@@ -88,17 +88,15 @@ function DropdownListStatic(props) {
|
|
|
88
88
|
'k-widget',
|
|
89
89
|
'k-dropdown',
|
|
90
90
|
{
|
|
91
|
+
'k-state-hover': hover === true,
|
|
92
|
+
'k-state-focus': focus === true,
|
|
93
|
+
'k-state-invalid': invalid === true,
|
|
91
94
|
'k-state-disabled': disabled === true
|
|
92
95
|
}
|
|
93
96
|
];
|
|
94
97
|
|
|
95
98
|
let legacyWrapClasses = [
|
|
96
|
-
'k-dropdown-wrap'
|
|
97
|
-
{
|
|
98
|
-
'k-state-hover': hover === true,
|
|
99
|
-
'k-state-focused': focus === true,
|
|
100
|
-
'k-state-invalid': invalid === true
|
|
101
|
-
}
|
|
99
|
+
'k-dropdown-wrap'
|
|
102
100
|
];
|
|
103
101
|
|
|
104
102
|
return (
|
|
@@ -172,7 +170,7 @@ DropdownListStatic.propTypes = {
|
|
|
172
170
|
suffix: typeof '#fragment',
|
|
173
171
|
|
|
174
172
|
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
175
|
-
rounded: typeof [ null, 'small', 'medium', 'large', '
|
|
173
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
|
|
176
174
|
|
|
177
175
|
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
178
176
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
```html
|
|
2
|
+
<!-- default rendering -->
|
|
3
|
+
<button type="button" class="k-fab k-fab-rectangle k-fab-md k-rounded-full k-fab-solid k-fab-solid-primary">
|
|
4
|
+
<span class="k-fab-icon k-icon k-i-plus"></span>
|
|
5
|
+
<span class="k-fab-text">Create</span>
|
|
6
|
+
</button>
|
|
7
|
+
|
|
8
|
+
<!-- canonical rendering -->
|
|
9
|
+
<button class="
|
|
10
|
+
k-fab
|
|
11
|
+
k-fab-{size}
|
|
12
|
+
k-fab-{rounded}
|
|
13
|
+
k-fab-{fillMode}
|
|
14
|
+
k-fab-{fillMode}-{themeColor}
|
|
15
|
+
">
|
|
16
|
+
{icon !== '' && <span class="k-fab-icon k-icon k-i-{icon}"></span>}
|
|
17
|
+
{text !== '' && <span class="k-fab-text">{text}</span>}
|
|
18
|
+
</button>
|
|
19
|
+
```
|
package/src/fab/fab.jsx
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import * as styles from '../../utils/styles';
|
|
2
|
+
import { Component, globalDefaultProps } from '../component/index';
|
|
3
|
+
import { IconStatic } from '../icon/index';
|
|
4
|
+
|
|
5
|
+
class Fab extends Component {
|
|
6
|
+
|
|
7
|
+
init() {
|
|
8
|
+
this._props.text = this.element.innerHTML;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
render() {
|
|
12
|
+
return <FabStatic {...this.props} />;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function FabStatic(props) {
|
|
17
|
+
const {
|
|
18
|
+
className: ownClassName,
|
|
19
|
+
|
|
20
|
+
text,
|
|
21
|
+
type,
|
|
22
|
+
|
|
23
|
+
size,
|
|
24
|
+
rounded,
|
|
25
|
+
shape,
|
|
26
|
+
|
|
27
|
+
fillMode,
|
|
28
|
+
themeColor,
|
|
29
|
+
|
|
30
|
+
icon,
|
|
31
|
+
|
|
32
|
+
position,
|
|
33
|
+
|
|
34
|
+
hover,
|
|
35
|
+
focus,
|
|
36
|
+
active,
|
|
37
|
+
selected,
|
|
38
|
+
disabled,
|
|
39
|
+
|
|
40
|
+
aria,
|
|
41
|
+
legacy,
|
|
42
|
+
|
|
43
|
+
...htmlAttributes
|
|
44
|
+
} = props;
|
|
45
|
+
|
|
46
|
+
let buttonClasses = [
|
|
47
|
+
ownClassName,
|
|
48
|
+
'k-fab',
|
|
49
|
+
styles.positionClass( position, 'k'),
|
|
50
|
+
styles.shapeClass( shape, 'k-fab' ),
|
|
51
|
+
styles.sizeClass( size, 'k-fab' ),
|
|
52
|
+
styles.roundedClass( rounded ),
|
|
53
|
+
styles.fillModeClass( fillMode, 'k-fab' ),
|
|
54
|
+
styles.themeColorClass( fillMode, themeColor, 'k-fab' ),
|
|
55
|
+
{
|
|
56
|
+
'k-hover': hover === true,
|
|
57
|
+
'k-focus': focus === true,
|
|
58
|
+
'k-active': active === true,
|
|
59
|
+
'k-selected': selected === true,
|
|
60
|
+
'k-disabled': disabled === true
|
|
61
|
+
}
|
|
62
|
+
];
|
|
63
|
+
|
|
64
|
+
// Augment attributes
|
|
65
|
+
htmlAttributes.disabled = disabled;
|
|
66
|
+
|
|
67
|
+
let ariaAttr = aria
|
|
68
|
+
? {}
|
|
69
|
+
: {};
|
|
70
|
+
|
|
71
|
+
if (legacy) {
|
|
72
|
+
let legacyClasses = [
|
|
73
|
+
ownClassName,
|
|
74
|
+
'k-fab',
|
|
75
|
+
`k-fab-${themeColor}`,
|
|
76
|
+
{
|
|
77
|
+
'k-fab-rectangle': rounded === null,
|
|
78
|
+
'k-fab-rounded': rounded !== 'full' && rounded !== null,
|
|
79
|
+
'k-fab-pill': rounded === 'full'
|
|
80
|
+
},
|
|
81
|
+
{
|
|
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
|
+
},
|
|
88
|
+
styles.positionClass( position, 'k'),
|
|
89
|
+
styles.sizeClass( size, 'k-fab' )
|
|
90
|
+
];
|
|
91
|
+
|
|
92
|
+
return (
|
|
93
|
+
<button type={type} className={legacyClasses} {...ariaAttr} {...htmlAttributes}>
|
|
94
|
+
<IconStatic className="k-fab-icon" name={icon} />
|
|
95
|
+
{text && <span className="k-fab-text">{text}</span>}
|
|
96
|
+
</button>
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return (
|
|
101
|
+
<button type={type} className={buttonClasses} {...ariaAttr} {...htmlAttributes}>
|
|
102
|
+
<IconStatic className="k-fab-icon" name={icon} />
|
|
103
|
+
{text && <span className="k-fab-text">{text}</span>}
|
|
104
|
+
</button>
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
FabStatic.defaultProps = {
|
|
109
|
+
...globalDefaultProps,
|
|
110
|
+
|
|
111
|
+
text: '',
|
|
112
|
+
icon: '',
|
|
113
|
+
|
|
114
|
+
className: '',
|
|
115
|
+
type: 'button',
|
|
116
|
+
|
|
117
|
+
size: 'medium',
|
|
118
|
+
rounded: 'full',
|
|
119
|
+
shape: 'rectangle',
|
|
120
|
+
|
|
121
|
+
position: null,
|
|
122
|
+
|
|
123
|
+
fillMode: 'solid',
|
|
124
|
+
themeColor: 'primary'
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
FabStatic.propTypes = {
|
|
128
|
+
text: typeof '',
|
|
129
|
+
icon: typeof '',
|
|
130
|
+
|
|
131
|
+
type: typeof [ 'button', 'submit', 'reset' ],
|
|
132
|
+
|
|
133
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
134
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
|
|
135
|
+
shape: typeof [ null, 'rectangle', 'square' ],
|
|
136
|
+
fillMode: typeof [ null, 'solid' ],
|
|
137
|
+
themeColor: typeof [ null, 'primary', 'secondary', 'tertiary', 'info', 'success', 'warning', 'error', 'dark', 'light', 'inverse' ],
|
|
138
|
+
|
|
139
|
+
position: typeof [ null, 'top-start', 'top-center', 'top-end', 'middle-start', 'middle-end', 'bottom-start', 'bottom-center', 'bottom-end' ],
|
|
140
|
+
|
|
141
|
+
hover: typeof false,
|
|
142
|
+
focus: typeof false,
|
|
143
|
+
active: typeof false,
|
|
144
|
+
selected: typeof false,
|
|
145
|
+
disabled: typeof false,
|
|
146
|
+
|
|
147
|
+
aria: typeof false,
|
|
148
|
+
legacy: typeof false,
|
|
149
|
+
|
|
150
|
+
className: typeof '',
|
|
151
|
+
htmlAttributes: typeof []
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
export { Fab, FabStatic };
|
package/src/fab/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './fab.jsx';
|
package/src/icon/icon.jsx
CHANGED
package/src/index.js
CHANGED
|
@@ -16,7 +16,7 @@ export function init() {
|
|
|
16
16
|
window.addEventListener('DOMContentLoaded', init);
|
|
17
17
|
|
|
18
18
|
// Dependencies
|
|
19
|
-
export * from './component';
|
|
19
|
+
export * from './component/index';
|
|
20
20
|
|
|
21
21
|
// Generic content
|
|
22
22
|
export * from './icon/index';
|
|
@@ -24,9 +24,17 @@ export * from './icon/index';
|
|
|
24
24
|
// Primitive components
|
|
25
25
|
export * from './input/index';
|
|
26
26
|
// export * from './picker/index';
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
export * from './popup/index';
|
|
28
|
+
export * from './list/index';
|
|
29
|
+
export * from './nodata/index';
|
|
30
|
+
|
|
31
|
+
// Indicators
|
|
29
32
|
export * from './avatar/index';
|
|
33
|
+
// export * from './badge/index';
|
|
34
|
+
export * from './chip/index';
|
|
35
|
+
// export * from './color-preview/index';
|
|
36
|
+
// export * from './loader/index';
|
|
37
|
+
// export * from './skeleton/index';
|
|
30
38
|
|
|
31
39
|
// Native forms
|
|
32
40
|
export * from './button/index';
|
|
@@ -58,3 +66,34 @@ export * from './searchbox/index';
|
|
|
58
66
|
export * from './switch/index';
|
|
59
67
|
// export * from './upload/index';
|
|
60
68
|
// export * from './dropzone/index';
|
|
69
|
+
|
|
70
|
+
// Command interfaces
|
|
71
|
+
// export * from './action-buttons/index';
|
|
72
|
+
export * from './fab/index';
|
|
73
|
+
// export * from './menu/index';
|
|
74
|
+
// export * from './toolbar/index';
|
|
75
|
+
|
|
76
|
+
// Popups and modals
|
|
77
|
+
// export * from './action-sheet/index';
|
|
78
|
+
// export * from './dialog/index';
|
|
79
|
+
// export * from './drawer/index';
|
|
80
|
+
// export * from './notification/index';
|
|
81
|
+
// export * from './popover/index';
|
|
82
|
+
// export * from './tooltip/index';
|
|
83
|
+
// export * from './window/index';
|
|
84
|
+
|
|
85
|
+
// Navigation
|
|
86
|
+
// export * from './appbar/index';
|
|
87
|
+
// export * from './bottom-nav/index';
|
|
88
|
+
// export * from './breadcrumb/index';
|
|
89
|
+
// export * from './pager/index';
|
|
90
|
+
// export * from './stepper/index';
|
|
91
|
+
// export * from './tabstrip/index';
|
|
92
|
+
// export * from './wizard/index';
|
|
93
|
+
|
|
94
|
+
// Layout & containers
|
|
95
|
+
// export * from './card/index';
|
|
96
|
+
// export * from './expander/index';
|
|
97
|
+
// export * from './panelbar/index';
|
|
98
|
+
// export * from './splitter/index';
|
|
99
|
+
// export * from './tile-layout/index';
|
package/src/input/input.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 Input extends Component {
|
|
5
5
|
|
|
@@ -127,7 +127,7 @@ InputStatic.propTypes = {
|
|
|
127
127
|
suffix: typeof '#fragment',
|
|
128
128
|
|
|
129
129
|
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
130
|
-
rounded: typeof [ null, 'small', 'medium', 'large', '
|
|
130
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
|
|
131
131
|
|
|
132
132
|
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
133
133
|
|
package/src/input/picker.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 Picker extends Component {
|
|
5
5
|
|
|
@@ -62,9 +62,9 @@ function PickerStatic(props) {
|
|
|
62
62
|
let pickerClasses = [
|
|
63
63
|
ownClassName,
|
|
64
64
|
'k-picker',
|
|
65
|
-
styles.sizeClass( size, 'k-
|
|
65
|
+
styles.sizeClass( size, 'k-picker' ),
|
|
66
66
|
styles.roundedClass( rounded ),
|
|
67
|
-
styles.fillModeClass( fillMode, 'k-
|
|
67
|
+
styles.fillModeClass( fillMode, 'k-picker' ),
|
|
68
68
|
{
|
|
69
69
|
'k-hover': hover === true,
|
|
70
70
|
'k-focus': focus === true,
|
|
@@ -125,7 +125,7 @@ PickerStatic.propTypes = {
|
|
|
125
125
|
suffix: typeof '#fragment',
|
|
126
126
|
|
|
127
127
|
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
128
|
-
rounded: typeof [ null, 'small', 'medium', 'large', '
|
|
128
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
|
|
129
129
|
|
|
130
130
|
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
131
131
|
|