@progress/kendo-themes-html 5.0.0-alpha.3 → 5.0.0-beta.3
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 +48 -3
- package/package.json +7 -7
- 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 +7 -7
- 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/README.md +24 -15
- package/src/colorpicker/color-preview.jsx +33 -22
- package/src/colorpicker/colorpicker.jsx +12 -13
- package/src/combobox/combobox.jsx +9 -11
- 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/dropdownbutton/README.md +60 -0
- package/src/dropdownbutton/dropdownbutton.jsx +145 -0
- package/src/dropdownbutton/index.js +1 -0
- package/src/dropdownlist/dropdownlist.jsx +13 -12
- 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 +47 -4
- package/src/input/input-clear-value.jsx +1 -1
- 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 +6 -6
- 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 +11 -14
- package/src/menu/README.md +40 -0
- package/src/menu/index.js +3 -0
- package/src/menu/menu-item-content.jsx +48 -0
- package/src/menu/menu-item.jsx +174 -0
- package/src/menu/menu-list.jsx +74 -0
- package/src/menulist/menulist.jsx +67 -0
- package/src/multiselect/README.md +37 -0
- package/src/multiselect/index.js +2 -0
- package/src/multiselect/multiselect-chip-list.jsx +55 -0
- package/src/multiselect/multiselect.jsx +189 -0
- 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/splitbutton/README.md +76 -0
- package/src/splitbutton/index.js +1 -0
- package/src/splitbutton/splitbutton.jsx +152 -0
- package/src/switch/README.md +3 -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/src/treeview/README.md +0 -0
- package/src/treeview/index.js +4 -0
- package/src/treeview/treeview-group.jsx +70 -0
- package/src/treeview/treeview-item.jsx +142 -0
- package/src/treeview/treeview-leaf.jsx +99 -0
- package/src/treeview/treeview.jsx +125 -0
- package/utils/styles.js +23 -5
|
@@ -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,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
|
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
```html
|
|
2
|
+
<!-- default rendering -->
|
|
3
|
+
<div class="k-split-button k-button-group">
|
|
4
|
+
<button
|
|
5
|
+
class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base"
|
|
6
|
+
type="button"
|
|
7
|
+
>
|
|
8
|
+
<span className="k-button-text">Text</span>
|
|
9
|
+
</button>
|
|
10
|
+
<button class="k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button">
|
|
11
|
+
<span class="k-icon k-i-arrow-s"></span>
|
|
12
|
+
</button>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<!-- canonical rendering -->
|
|
16
|
+
<div class="k-split-button k-button-group">
|
|
17
|
+
<button class="
|
|
18
|
+
k-button
|
|
19
|
+
${text === '' && icon !== '' && 'k-icon-button'}
|
|
20
|
+
k-button-${size}
|
|
21
|
+
k-button-${shape}
|
|
22
|
+
k-rounded-${rounded}
|
|
23
|
+
k-button-${fillMode}
|
|
24
|
+
k-button-${fillMode}-${themeColor}
|
|
25
|
+
k-${state}
|
|
26
|
+
${disabled && 'k-disabled'}
|
|
27
|
+
" type={type} disabled={disabled}>
|
|
28
|
+
{icon !== '' && <span class="k-button-icon k-icon k-i-${icon}"></span>}
|
|
29
|
+
{text !== '' && <span class="k-button-text">Text</span>}
|
|
30
|
+
</button>
|
|
31
|
+
<button class="
|
|
32
|
+
k-button
|
|
33
|
+
k-icon-button
|
|
34
|
+
k-button-${size}
|
|
35
|
+
k-button-${shape}
|
|
36
|
+
k-rounded-${rounded}
|
|
37
|
+
k-button-${fillMode}
|
|
38
|
+
k-button-${fillMode}-${themeColor}
|
|
39
|
+
k-${state}
|
|
40
|
+
${disabled && 'k-disabled'}
|
|
41
|
+
" type={type} disabled={disabled}>
|
|
42
|
+
<span class="k-icon k-i-${arrowIconName}"></span>
|
|
43
|
+
</button>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<!-- popup menu items default rendering -->
|
|
47
|
+
<div class="k-animation-container k-animation-container-fixed k-animation-container-shown">
|
|
48
|
+
<div class="k-popup k-menu-popup">
|
|
49
|
+
<ul class="k-group k-menu-group k-reset k-menu-group-md">
|
|
50
|
+
<li class="k-item k-menu-item">
|
|
51
|
+
<span class="k-link k-menu-link">
|
|
52
|
+
<span class="k-menu-link-text">Text</span>
|
|
53
|
+
</span>
|
|
54
|
+
</li>
|
|
55
|
+
</ul>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<!-- popup menu items canonical rendering -->
|
|
60
|
+
<div class="k-animation-container k-animation-container-fixed k-animation-container-shown">
|
|
61
|
+
<div class="k-popup k-menu-popup">
|
|
62
|
+
<ul class="k-group k-menu-group k-reset k-menu-group-${size}">
|
|
63
|
+
<li class="k-item k-menu-item">
|
|
64
|
+
<span class="k-link k-menu-link k-${state}">
|
|
65
|
+
{icon !== '' && <span class="k-icon k-i-${icon}"></span>}
|
|
66
|
+
{text !== '' && <span class="k-menu-link-text">Text</span>}
|
|
67
|
+
{hasChildren ?
|
|
68
|
+
<span class="k-menu-expand-arrow k-icon k-i-${arrowIconName || 'arrow-60-right'}"></span> :
|
|
69
|
+
<span class="k-menu-expand-arrow k-icon k-i-none"></span>
|
|
70
|
+
}
|
|
71
|
+
</span>
|
|
72
|
+
</li>
|
|
73
|
+
</ul>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './splitbutton.jsx';
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { Component, globalDefaultProps } from '../component/index';
|
|
2
|
+
import { ButtonStatic } from '../button/index';
|
|
3
|
+
|
|
4
|
+
class SplitButton extends Component {
|
|
5
|
+
|
|
6
|
+
init() {
|
|
7
|
+
this._props.text = this.element.innerHTML;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
render() {
|
|
11
|
+
return <SplitButtonStatic {...this.props} />;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function SplitButtonStatic(props) {
|
|
16
|
+
const {
|
|
17
|
+
className: ownClassName,
|
|
18
|
+
|
|
19
|
+
text,
|
|
20
|
+
|
|
21
|
+
size,
|
|
22
|
+
rounded,
|
|
23
|
+
shape,
|
|
24
|
+
|
|
25
|
+
fillMode,
|
|
26
|
+
themeColor,
|
|
27
|
+
|
|
28
|
+
icon,
|
|
29
|
+
|
|
30
|
+
arrowIconName,
|
|
31
|
+
|
|
32
|
+
hover,
|
|
33
|
+
focus,
|
|
34
|
+
active,
|
|
35
|
+
selected,
|
|
36
|
+
disabled,
|
|
37
|
+
|
|
38
|
+
aria,
|
|
39
|
+
legacy,
|
|
40
|
+
|
|
41
|
+
...htmlAttributes
|
|
42
|
+
} = props;
|
|
43
|
+
|
|
44
|
+
let splitButtonClasses = [
|
|
45
|
+
ownClassName,
|
|
46
|
+
'k-split-button',
|
|
47
|
+
'k-button-group',
|
|
48
|
+
{
|
|
49
|
+
'k-focus': focus === true
|
|
50
|
+
}
|
|
51
|
+
];
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
let legacySplitButtonClasses = [
|
|
55
|
+
ownClassName,
|
|
56
|
+
'k-split-button',
|
|
57
|
+
'k-button-group',
|
|
58
|
+
{
|
|
59
|
+
'k-state-focused': focus === true
|
|
60
|
+
}
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
// Augment attributes
|
|
64
|
+
htmlAttributes.disabled = disabled;
|
|
65
|
+
|
|
66
|
+
let ariaAttr = aria
|
|
67
|
+
? {}
|
|
68
|
+
: {};
|
|
69
|
+
|
|
70
|
+
if (legacy) {
|
|
71
|
+
return (
|
|
72
|
+
<div className={legacySplitButtonClasses} {...ariaAttr} {...htmlAttributes}>
|
|
73
|
+
<ButtonStatic legacy={true}></ButtonStatic>
|
|
74
|
+
</div>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return (
|
|
79
|
+
<div className={splitButtonClasses} {...ariaAttr} {...htmlAttributes}>
|
|
80
|
+
<ButtonStatic
|
|
81
|
+
text={text}
|
|
82
|
+
disabled={disabled}
|
|
83
|
+
hover={hover}
|
|
84
|
+
active={active}
|
|
85
|
+
selected={selected}
|
|
86
|
+
focus={focus}
|
|
87
|
+
size={size}
|
|
88
|
+
rounded={rounded}
|
|
89
|
+
shape={shape}
|
|
90
|
+
fillMode={fillMode}
|
|
91
|
+
themeColor={themeColor}
|
|
92
|
+
icon={icon}></ButtonStatic>
|
|
93
|
+
<ButtonStatic
|
|
94
|
+
disabled={disabled}
|
|
95
|
+
hover={hover}
|
|
96
|
+
active={active}
|
|
97
|
+
selected={selected}
|
|
98
|
+
focus={focus}
|
|
99
|
+
size={size}
|
|
100
|
+
rounded={rounded}
|
|
101
|
+
shape={shape}
|
|
102
|
+
fillMode={fillMode}
|
|
103
|
+
themeColor={themeColor}
|
|
104
|
+
icon={arrowIconName ? arrowIconName : 'arrow-s'}></ButtonStatic>
|
|
105
|
+
</div>
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
SplitButtonStatic.defaultProps = {
|
|
110
|
+
...globalDefaultProps,
|
|
111
|
+
|
|
112
|
+
text: '',
|
|
113
|
+
icon: '',
|
|
114
|
+
|
|
115
|
+
className: '',
|
|
116
|
+
type: 'button',
|
|
117
|
+
|
|
118
|
+
size: 'medium',
|
|
119
|
+
rounded: 'medium',
|
|
120
|
+
shape: 'rectangle',
|
|
121
|
+
|
|
122
|
+
fillMode: 'solid',
|
|
123
|
+
themeColor: 'base'
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
SplitButtonStatic.propTypes = {
|
|
127
|
+
text: typeof '',
|
|
128
|
+
icon: typeof '',
|
|
129
|
+
|
|
130
|
+
arrowIconName: typeof '',
|
|
131
|
+
|
|
132
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
133
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
|
|
134
|
+
shape: typeof [ null, 'rectangle', 'square' ],
|
|
135
|
+
|
|
136
|
+
fillMode: typeof [ null, 'solid', 'flat', 'outline', 'link' ],
|
|
137
|
+
themeColor: typeof [ null, 'surface', 'base', 'primary' ],
|
|
138
|
+
|
|
139
|
+
hover: typeof false,
|
|
140
|
+
focus: typeof false,
|
|
141
|
+
active: typeof false,
|
|
142
|
+
selected: typeof false,
|
|
143
|
+
disabled: typeof false,
|
|
144
|
+
|
|
145
|
+
aria: typeof false,
|
|
146
|
+
legacy: typeof false,
|
|
147
|
+
|
|
148
|
+
className: typeof '',
|
|
149
|
+
htmlAttributes: typeof []
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export { SplitButton, SplitButtonStatic };
|
package/src/switch/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
```html
|
|
2
2
|
<!-- default rendering -->
|
|
3
|
-
<span class="k-switch k-switch-on k-switch-md k-rounded-
|
|
4
|
-
<span class="k-switch-track k-rounded-
|
|
3
|
+
<span class="k-switch k-switch-on k-switch-md k-rounded-full">
|
|
4
|
+
<span class="k-switch-track k-rounded-full">
|
|
5
5
|
<span class="k-switch-label-on">On</span>
|
|
6
6
|
<span class="k-switch-label-off">Off</span>
|
|
7
7
|
</span>
|
|
8
8
|
<span class="k-switch-thumb-wrap">
|
|
9
|
-
<span class="k-switch-thumb k-rounded-
|
|
9
|
+
<span class="k-switch-thumb k-rounded-full"></span>
|
|
10
10
|
</span>
|
|
11
11
|
</span>
|
|
12
12
|
|
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,
|
|
File without changes
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Component, globalDefaultProps } from '../component/index';
|
|
2
|
+
|
|
3
|
+
class TreeviewGroup extends Component {
|
|
4
|
+
render() {
|
|
5
|
+
return <TreeviewGroupStatic {...this.props} />;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function TreeviewGroupStatic(props) {
|
|
10
|
+
const {
|
|
11
|
+
className: ownClassName,
|
|
12
|
+
|
|
13
|
+
items,
|
|
14
|
+
|
|
15
|
+
aria,
|
|
16
|
+
legacy,
|
|
17
|
+
|
|
18
|
+
...htmlAttributes
|
|
19
|
+
} = props;
|
|
20
|
+
|
|
21
|
+
let treeviewULClasses = [
|
|
22
|
+
ownClassName,
|
|
23
|
+
'k-treeview-group'
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
let ariaAttr = aria
|
|
27
|
+
? {}
|
|
28
|
+
: {};
|
|
29
|
+
|
|
30
|
+
if (legacy) {
|
|
31
|
+
|
|
32
|
+
let legacyTreeviewULClasses = [
|
|
33
|
+
ownClassName,
|
|
34
|
+
'k-group',
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<ul className={legacyTreeviewULClasses} {...ariaAttr} {...htmlAttributes}>
|
|
39
|
+
{items}
|
|
40
|
+
</ul>
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<ul className={treeviewULClasses} {...ariaAttr} {...htmlAttributes}>
|
|
46
|
+
{items}
|
|
47
|
+
</ul>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
TreeviewGroupStatic.defaultProps = {
|
|
52
|
+
...globalDefaultProps,
|
|
53
|
+
|
|
54
|
+
children: [],
|
|
55
|
+
items: []
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
TreeviewGroupStatic.propTypes = {
|
|
59
|
+
children: typeof [],
|
|
60
|
+
className: typeof '',
|
|
61
|
+
|
|
62
|
+
items: typeof [],
|
|
63
|
+
|
|
64
|
+
aria: typeof false,
|
|
65
|
+
legacy: typeof false,
|
|
66
|
+
|
|
67
|
+
htmlAttributes: typeof []
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export { TreeviewGroup, TreeviewGroupStatic };
|