@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
|
@@ -11,18 +11,24 @@
|
|
|
11
11
|
<span class="
|
|
12
12
|
k-datetimepicker
|
|
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-calendar"></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 DateTimePickerStatic(props) {
|
|
|
110
110
|
<InputValidationIconStatic {...props} />
|
|
111
111
|
<InputLoadingIconStatic {...props} />
|
|
112
112
|
<InputClearValueStatic {...props} />
|
|
113
|
-
<ButtonStatic className="k-input-button" icon="calendar" rounded=
|
|
113
|
+
<ButtonStatic className="k-input-button" icon="calendar" shape={null} rounded={null} size={size} fillMode={fillMode}></ButtonStatic>
|
|
114
114
|
</InputStatic>
|
|
115
115
|
);
|
|
116
116
|
}
|
|
@@ -149,10 +149,10 @@ DateTimePickerStatic.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,7 +1,7 @@
|
|
|
1
1
|
```html
|
|
2
2
|
<!-- default rendering -->
|
|
3
|
-
<span class="k-
|
|
4
|
-
<
|
|
3
|
+
<span class="k-dropdownlist k-picker k-picker-md k-rounded-md k-picker-solid">
|
|
4
|
+
<span class="k-input-inner"><span class="k-input-value-text"><span></span>
|
|
5
5
|
<button type="button" class="k-input-button k-button k-icon-button k-button-md k-button-solid k-button-solid-base">
|
|
6
6
|
<span class="k-button-icon k-icon k-i-arrow-s"></span>
|
|
7
7
|
</button>
|
|
@@ -9,20 +9,29 @@
|
|
|
9
9
|
|
|
10
10
|
<!-- canonical rendering -->
|
|
11
11
|
<span class="
|
|
12
|
-
k-
|
|
13
|
-
k-
|
|
14
|
-
k-
|
|
15
|
-
k-rounded
|
|
16
|
-
k-
|
|
12
|
+
k-dropdownlist
|
|
13
|
+
k-picker
|
|
14
|
+
k-picker-{size}
|
|
15
|
+
k-rounded-{rounded}
|
|
16
|
+
k-picker-{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
|
">
|
|
23
|
-
<
|
|
24
|
-
{
|
|
25
|
-
|
|
24
|
+
{showInputIcon && inputIconName !== '' && <span class="k-input-icon k-i-icon k-i-{inputIconName}"></span>}
|
|
25
|
+
{inputPrefix && <span class="k-input-prefix">...</span>}
|
|
26
|
+
<span class="k-input-inner">
|
|
27
|
+
<span class="k-input-value-icon k-icon k-i-{valueIcon}"><span>
|
|
28
|
+
<span class="k-input-value-text">{valueText}<span>
|
|
29
|
+
</span>
|
|
30
|
+
{inputPrefix && <span class="k-input-suffix">...</span>}
|
|
31
|
+
{showValidationIcon && valid && <span class="k-validation-icon k-icon k-i-check"></span>}
|
|
32
|
+
{showValidationIcon && invalid && <span class="k-validation-icon k-icon k-i-warning"></span>}
|
|
33
|
+
{showLoadingIcon && loading && <span class="k-icon k-i-loading"></span>}
|
|
34
|
+
{showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
|
|
26
35
|
<button type="button" class="k-input-button k-button k-icon-button k-button-{size} k-button-{fillMode} k-button-{fillMode}-base">
|
|
27
36
|
<span class="k-button-icon k-icon k-i-arrow-s"></span>
|
|
28
37
|
</button>
|
|
@@ -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';
|
|
@@ -71,7 +71,10 @@ function DropdownListStatic(props) {
|
|
|
71
71
|
|
|
72
72
|
let dropdownListClasses = [
|
|
73
73
|
ownClassName,
|
|
74
|
-
'k-dropdown'
|
|
74
|
+
'k-dropdown',
|
|
75
|
+
{
|
|
76
|
+
'k-icon-picker': showValue !== true && (valueIcon !== null || valueIconName !== '')
|
|
77
|
+
}
|
|
75
78
|
];
|
|
76
79
|
|
|
77
80
|
let ariaAttr = aria
|
|
@@ -119,7 +122,7 @@ function DropdownListStatic(props) {
|
|
|
119
122
|
<InputValidationIconStatic {...props} />
|
|
120
123
|
<InputLoadingIconStatic {...props} />
|
|
121
124
|
<InputClearValueStatic {...props} />
|
|
122
|
-
<ButtonStatic className="k-input-button" icon={arrowIconName} rounded=
|
|
125
|
+
<ButtonStatic className="k-input-button" icon={arrowIconName} shape={null} rounded={null} size={size} fillMode={fillMode}></ButtonStatic>
|
|
123
126
|
</PickerStatic>
|
|
124
127
|
);
|
|
125
128
|
}
|
|
@@ -168,10 +171,10 @@ DropdownListStatic.propTypes = {
|
|
|
168
171
|
prefix: typeof '#fragment',
|
|
169
172
|
suffix: typeof '#fragment',
|
|
170
173
|
|
|
171
|
-
size: typeof [
|
|
172
|
-
rounded: typeof [
|
|
174
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
175
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
|
|
173
176
|
|
|
174
|
-
fillMode: typeof [
|
|
177
|
+
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
175
178
|
|
|
176
179
|
hover: typeof false,
|
|
177
180
|
focus: typeof false,
|
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,8 +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
|
|
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';
|
|
29
38
|
|
|
30
39
|
// Native forms
|
|
31
40
|
export * from './button/index';
|
|
@@ -57,3 +66,34 @@ export * from './searchbox/index';
|
|
|
57
66
|
export * from './switch/index';
|
|
58
67
|
// export * from './upload/index';
|
|
59
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
|
|
|
@@ -126,10 +126,10 @@ InputStatic.propTypes = {
|
|
|
126
126
|
prefix: typeof '#fragment',
|
|
127
127
|
suffix: typeof '#fragment',
|
|
128
128
|
|
|
129
|
-
size: typeof [
|
|
130
|
-
rounded: typeof [
|
|
129
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
130
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
|
|
131
131
|
|
|
132
|
-
fillMode: typeof [
|
|
132
|
+
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
133
133
|
|
|
134
134
|
hover: typeof false,
|
|
135
135
|
focus: typeof false,
|
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
|
|
|
@@ -124,10 +124,10 @@ PickerStatic.propTypes = {
|
|
|
124
124
|
prefix: typeof '#fragment',
|
|
125
125
|
suffix: typeof '#fragment',
|
|
126
126
|
|
|
127
|
-
size: typeof [
|
|
128
|
-
rounded: typeof [
|
|
127
|
+
size: typeof [ null, 'small', 'medium', 'large' ],
|
|
128
|
+
rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
|
|
129
129
|
|
|
130
|
-
fillMode: typeof [
|
|
130
|
+
fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
|
|
131
131
|
|
|
132
132
|
hover: typeof false,
|
|
133
133
|
focus: typeof false,
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
```html
|
|
2
|
+
<!-- jquery / react / vue rendering -->
|
|
3
|
+
<div class="k-list k-list-md">
|
|
4
|
+
<div class="k-list-header"><span class="k-list-header-text">Group 1</span></div>
|
|
5
|
+
<div class="k-list-content">
|
|
6
|
+
<ul class="k-list-ul">
|
|
7
|
+
<li class="k-list-item">
|
|
8
|
+
<span class="k-list-item-text">Item 1.1</span>
|
|
9
|
+
</li>
|
|
10
|
+
<li class="k-list-item">
|
|
11
|
+
<span class="k-list-item-text">Item 1.2</span>
|
|
12
|
+
</li>
|
|
13
|
+
<li class="k-list-item k-first">
|
|
14
|
+
<span class="k-list-item-text">Item 2.1</span>
|
|
15
|
+
<span class="k-list-group-label">Group 2</span>
|
|
16
|
+
</li>
|
|
17
|
+
<li class="k-list-item">
|
|
18
|
+
<span class="k-list-item-text">Item 2.2</span>
|
|
19
|
+
</li>
|
|
20
|
+
</ul>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<!-- jquery / react / vue rendering w/ virtualization -->
|
|
25
|
+
<div class="k-list k-virtual-list k-list-md">
|
|
26
|
+
<div class="k-list-header"><span class="k-list-header-text">Group 1</span></div>
|
|
27
|
+
<div class="k-list-content">
|
|
28
|
+
<ul class="k-list-ul">
|
|
29
|
+
<li class="k-list-item">
|
|
30
|
+
<span class="k-list-item-text">Item 1.1</span>
|
|
31
|
+
</li>
|
|
32
|
+
<li class="k-list-item">
|
|
33
|
+
<span class="k-list-item-text">Item 1.2</span>
|
|
34
|
+
</li>
|
|
35
|
+
<li class="k-list-item k-first">
|
|
36
|
+
<span class="k-list-item-text">Item 2.1</span>
|
|
37
|
+
<span class="k-list-group-label">Group 2</span>
|
|
38
|
+
</li>
|
|
39
|
+
<li class="k-list-item">
|
|
40
|
+
<span class="k-list-item-text">Item 2.2</span>
|
|
41
|
+
</li>
|
|
42
|
+
</ul>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<!-- angular / blazor rendering -->
|
|
47
|
+
<div class="k-list k-list-md">
|
|
48
|
+
<div class="k-list-header"><span class="k-list-header-text">Group 1</span></div>
|
|
49
|
+
<div class="k-list-content">
|
|
50
|
+
<ul class="k-list-ul">
|
|
51
|
+
<li class="k-list-item">
|
|
52
|
+
<span class="k-list-item-text">Item 1.1</span>
|
|
53
|
+
</li>
|
|
54
|
+
<li class="k-list-item">
|
|
55
|
+
<span class="k-list-item-text">Item 1.2</span>
|
|
56
|
+
</li>
|
|
57
|
+
<li class="k-list-group-item">
|
|
58
|
+
<span class="k-list-item-text">Group 2</span>
|
|
59
|
+
</li>
|
|
60
|
+
<li class="k-list-item">
|
|
61
|
+
<span class="k-list-item-text">Item 2.1</span>
|
|
62
|
+
</li>
|
|
63
|
+
<li class="k-list-item">
|
|
64
|
+
<span class="k-list-item-text">Item 2.2</span>
|
|
65
|
+
</li>
|
|
66
|
+
</ul>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
<!-- angular / blazor rendering w/ virtualization -->
|
|
71
|
+
<div class="k-list k-virtual-list k-list-md">
|
|
72
|
+
<div class="k-list-header"><span class="k-list-header-text">Group 1</span></div>
|
|
73
|
+
<div class="k-list-content">
|
|
74
|
+
<ul class="k-list-ul">
|
|
75
|
+
<li class="k-list-item">
|
|
76
|
+
<span class="k-list-item-text">Item 1.1</span>
|
|
77
|
+
</li>
|
|
78
|
+
<li class="k-list-item">
|
|
79
|
+
<span class="k-list-item-text">Item 1.2</span>
|
|
80
|
+
</li>
|
|
81
|
+
<li class="k-list-group-item">
|
|
82
|
+
<span class="k-list-item-text">Group 2</span>
|
|
83
|
+
</li>
|
|
84
|
+
<li class="k-list-item">
|
|
85
|
+
<span class="k-list-item-text">Item 2.1</span>
|
|
86
|
+
</li>
|
|
87
|
+
<li class="k-list-item">
|
|
88
|
+
<span class="k-list-item-text">Item 2.2</span>
|
|
89
|
+
</li>
|
|
90
|
+
</ul>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
```
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Component, globalDefaultProps } from '../component/index';
|
|
2
|
+
|
|
3
|
+
class ListContent extends Component {
|
|
4
|
+
render() {
|
|
5
|
+
return <ListContentStatic {...this.props} />;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function ListContentStatic(props) {
|
|
10
|
+
const {
|
|
11
|
+
className: ownClassName,
|
|
12
|
+
|
|
13
|
+
children,
|
|
14
|
+
|
|
15
|
+
virtualization,
|
|
16
|
+
|
|
17
|
+
aria,
|
|
18
|
+
legacy,
|
|
19
|
+
|
|
20
|
+
...htmlAttributes
|
|
21
|
+
} = props;
|
|
22
|
+
|
|
23
|
+
let listContentClasses = [
|
|
24
|
+
ownClassName,
|
|
25
|
+
'k-list-content'
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
let legacyListContentClasses = [
|
|
29
|
+
ownClassName,
|
|
30
|
+
'k-list-content',
|
|
31
|
+
{
|
|
32
|
+
'k-list-scroller': virtualization === false,
|
|
33
|
+
'k-virtual-content': virtualization === true
|
|
34
|
+
}
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
let listULClasses = [
|
|
38
|
+
'k-list-ul'
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
let legacyListULClasses = [
|
|
42
|
+
'k-list',
|
|
43
|
+
'k-reset',
|
|
44
|
+
{
|
|
45
|
+
'k-virtual-list': virtualization === true
|
|
46
|
+
}
|
|
47
|
+
];
|
|
48
|
+
|
|
49
|
+
let ariaAttr = aria
|
|
50
|
+
? {}
|
|
51
|
+
: {};
|
|
52
|
+
|
|
53
|
+
if (legacy) {
|
|
54
|
+
return (
|
|
55
|
+
<div className={legacyListContentClasses} {...ariaAttr} {...htmlAttributes}>
|
|
56
|
+
<ul className={legacyListULClasses}>
|
|
57
|
+
{children}
|
|
58
|
+
</ul>
|
|
59
|
+
{ virtualization && <div className="k-height-container"><div></div></div> }
|
|
60
|
+
</div>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<div className={listContentClasses} {...ariaAttr} {...htmlAttributes}>
|
|
66
|
+
<ul className={listULClasses}>
|
|
67
|
+
{children}
|
|
68
|
+
</ul>
|
|
69
|
+
{ virtualization && <div className="k-height-container"><div></div></div> }
|
|
70
|
+
</div>
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
ListContentStatic.defaultProps = {
|
|
75
|
+
...globalDefaultProps,
|
|
76
|
+
|
|
77
|
+
children: [],
|
|
78
|
+
|
|
79
|
+
virtualization: false
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
ListContentStatic.propTypes = {
|
|
83
|
+
children: typeof [],
|
|
84
|
+
className: typeof '',
|
|
85
|
+
|
|
86
|
+
virtualization: typeof false,
|
|
87
|
+
|
|
88
|
+
aria: typeof false,
|
|
89
|
+
legacy: typeof false,
|
|
90
|
+
|
|
91
|
+
htmlAttributes: typeof []
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export { ListContent, ListContentStatic };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Component, globalDefaultProps } from '../component/index';
|
|
2
|
+
|
|
3
|
+
class ListGroupItem extends Component {
|
|
4
|
+
render() {
|
|
5
|
+
return <ListGroupItemStatic {...this.props} />;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function ListGroupItemStatic(props) {
|
|
10
|
+
const {
|
|
11
|
+
className: ownClassName,
|
|
12
|
+
|
|
13
|
+
children,
|
|
14
|
+
|
|
15
|
+
aria,
|
|
16
|
+
legacy,
|
|
17
|
+
|
|
18
|
+
...htmlAttributes
|
|
19
|
+
} = props;
|
|
20
|
+
|
|
21
|
+
let listGroupItemClasses = [
|
|
22
|
+
ownClassName,
|
|
23
|
+
'k-list-group-item'
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
let legacyListGroupItemClasses = [
|
|
27
|
+
ownClassName,
|
|
28
|
+
'k-group-header'
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
let ariaAttr = aria
|
|
32
|
+
? {}
|
|
33
|
+
: {};
|
|
34
|
+
|
|
35
|
+
if (legacy) {
|
|
36
|
+
return (
|
|
37
|
+
<li className={legacyListGroupItemClasses} {...ariaAttr} {...htmlAttributes}>
|
|
38
|
+
{children}
|
|
39
|
+
</li>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<li className={listGroupItemClasses} {...ariaAttr} {...htmlAttributes}>
|
|
45
|
+
<span className="k-list-item-text">{children}</span>
|
|
46
|
+
</li>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
ListGroupItemStatic.defaultProps = {
|
|
51
|
+
...globalDefaultProps,
|
|
52
|
+
|
|
53
|
+
children: []
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
ListGroupItemStatic.propTypes = {
|
|
57
|
+
children: typeof [],
|
|
58
|
+
className: typeof '',
|
|
59
|
+
|
|
60
|
+
aria: typeof false,
|
|
61
|
+
legacy: typeof false,
|
|
62
|
+
|
|
63
|
+
htmlAttributes: typeof []
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export { ListGroupItem, ListGroupItemStatic };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Component, globalDefaultProps } from '../component/index';
|
|
2
|
+
|
|
3
|
+
class ListHeader extends Component {
|
|
4
|
+
render() {
|
|
5
|
+
return <ListHeaderStatic {...this.props} />;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function ListHeaderStatic(props) {
|
|
10
|
+
const {
|
|
11
|
+
className: ownClassName,
|
|
12
|
+
|
|
13
|
+
children,
|
|
14
|
+
|
|
15
|
+
aria,
|
|
16
|
+
legacy,
|
|
17
|
+
|
|
18
|
+
...htmlAttributes
|
|
19
|
+
} = props;
|
|
20
|
+
|
|
21
|
+
let listHeaderClasses = [
|
|
22
|
+
ownClassName,
|
|
23
|
+
'k-list-header'
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
let legacyListHeaderClasses = [
|
|
27
|
+
ownClassName,
|
|
28
|
+
'k-group-header'
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
let ariaAttr = aria
|
|
32
|
+
? {}
|
|
33
|
+
: {};
|
|
34
|
+
|
|
35
|
+
if (legacy) {
|
|
36
|
+
return (
|
|
37
|
+
<div className={legacyListHeaderClasses} {...ariaAttr} {...htmlAttributes}>
|
|
38
|
+
{children}
|
|
39
|
+
</div>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<div className={listHeaderClasses} {...ariaAttr} {...htmlAttributes}>
|
|
45
|
+
<div className="k-list-header-text">{children}</div>
|
|
46
|
+
</div>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
ListHeaderStatic.defaultProps = {
|
|
51
|
+
...globalDefaultProps,
|
|
52
|
+
|
|
53
|
+
children: []
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
ListHeaderStatic.propTypes = {
|
|
57
|
+
children: typeof [],
|
|
58
|
+
className: typeof '',
|
|
59
|
+
|
|
60
|
+
aria: typeof false,
|
|
61
|
+
legacy: typeof false,
|
|
62
|
+
|
|
63
|
+
htmlAttributes: typeof []
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export { ListHeader, ListHeaderStatic };
|