@progress/kendo-themes-html 5.4.2-dev.2 → 5.4.2-dev.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/dist/index.js +5284 -0
- package/dist/index.js.map +7 -0
- package/lib/jsx-runtime.js +26 -10
- package/package.json +8 -12
- package/src/{button/action-buttons.jsx → action-buttons/action-buttons.tsx} +2 -2
- package/src/action-buttons/index.ts +1 -0
- package/src/autocomplete/{autocomplete.jsx → autocomplete.tsx} +0 -26
- package/src/autocomplete/{index.js → index.ts} +0 -0
- package/src/avatar/{avatar.jsx → avatar.tsx} +0 -22
- package/src/avatar/{index.js → index.ts} +0 -0
- package/src/button/{button.jsx → button.tsx} +0 -34
- package/src/button/index.ts +1 -0
- package/src/{button/button-group.jsx → button-group/button-group.tsx} +0 -0
- package/src/button-group/index.ts +1 -0
- package/src/captcha/{captcha-image.jsx → captcha-image.tsx} +0 -0
- package/src/captcha/{captcha.jsx → captcha.tsx} +0 -0
- package/src/captcha/{index.js → index.ts} +0 -0
- package/src/checkbox/{checkbox.jsx → checkbox.tsx} +0 -21
- package/src/checkbox/{index.js → index.ts} +0 -0
- package/src/chip/{chip-actions.jsx → chip-actions.tsx} +0 -0
- package/src/chip/{chip-avatar.jsx → chip-avatar.tsx} +1 -1
- package/src/chip/{chip-list.jsx → chip-list.tsx} +0 -17
- package/src/chip/{chip.jsx → chip.tsx} +0 -33
- package/src/chip/{index.js → index.ts} +0 -0
- package/src/colorpalette/colorpalette-presets.tsx +50 -0
- package/src/colorpalette/{colorpalette-row.jsx → colorpalette-row.tsx} +7 -2
- package/src/colorpalette/{colorpalette-tile.jsx → colorpalette-tile.tsx} +0 -1
- package/src/colorpalette/{colorpalette.jsx → colorpalette.tsx} +1 -6
- package/src/colorpalette/{index.js → index.ts} +0 -0
- package/src/colorpicker/{color-preview.jsx → color-preview.tsx} +0 -36
- package/src/colorpicker/{colorpicker.jsx → colorpicker.tsx} +0 -30
- package/src/colorpicker/{index.js → index.ts} +0 -0
- package/src/combobox/{combobox.jsx → combobox.tsx} +0 -33
- package/src/combobox/{index.js → index.ts} +0 -0
- package/src/component/{component.jsx → component.tsx} +0 -0
- package/src/component/{index.js → index.ts} +0 -0
- package/src/dateinput/{dateinput.jsx → dateinput.tsx} +0 -37
- package/src/dateinput/{index.js → index.ts} +0 -0
- package/src/datepicker/{datepicker.jsx → datepicker.tsx} +0 -33
- package/src/datepicker/{index.js → index.ts} +0 -0
- package/src/daterangepicker/{daterangepicker.jsx → daterangepicker.tsx} +1 -1
- package/src/daterangepicker/{index.js → index.ts} +0 -0
- package/src/datetimepicker/{datetimepicker.jsx → datetimepicker.tsx} +0 -33
- package/src/datetimepicker/{index.js → index.ts} +0 -0
- package/src/dropdowngrid/{dropdowngrid.jsx → dropdowngrid.tsx} +2 -34
- package/src/dropdowngrid/{index.js → index.ts} +0 -0
- package/src/dropdownlist/{dropdownlist.jsx → dropdownlist.tsx} +0 -33
- package/src/dropdownlist/{index.js → index.ts} +0 -0
- package/src/fab/{fab.jsx → fab.tsx} +0 -26
- package/src/fab/{index.js → index.ts} +0 -0
- package/src/icon/{icon.jsx → icon.tsx} +0 -0
- package/src/icon/{index.js → index.ts} +0 -0
- package/src/{index.js → index.ts} +5 -2
- package/src/input/{floating-label.jsx → floating-label.tsx} +0 -0
- package/src/input/{index.js → index.ts} +0 -0
- package/src/input/{input-clear-value.jsx → input-clear-value.tsx} +0 -0
- package/src/input/{input-inner-input.jsx → input-inner-input.tsx} +0 -12
- package/src/input/{input-inner-span.jsx → input-inner-span.tsx} +0 -18
- package/src/input/{input-inner-textarea.jsx → input-inner-textarea.tsx} +0 -14
- package/src/input/{input-inner.jsx → input-inner.tsx} +0 -0
- package/src/input/{input-loading-icon.jsx → input-loading-icon.tsx} +0 -0
- package/src/input/{input-prefix.jsx → input-prefix.tsx} +0 -0
- package/src/input/{input-suffix.jsx → input-suffix.tsx} +0 -0
- package/src/input/{input-validation-icon.jsx → input-validation-icon.tsx} +0 -0
- package/src/input/{input.jsx → input.tsx} +0 -14
- package/src/input/{picker.jsx → picker.tsx} +0 -14
- package/src/list/{index.js → index.ts} +0 -0
- package/src/list/{list-content.jsx → list-content.tsx} +0 -30
- package/src/list/{list-group-item.jsx → list-group-item.tsx} +0 -14
- package/src/list/{list-header.jsx → list-header.tsx} +0 -14
- package/src/list/{list-item.jsx → list-item.tsx} +0 -24
- package/src/list/{list.jsx → list.tsx} +0 -15
- package/src/maskedtextbox/{index.js → index.ts} +0 -0
- package/src/maskedtextbox/{maskedtextbox.jsx → maskedtextbox.tsx} +0 -25
- package/src/menu/{index.js → index.ts} +0 -0
- package/src/menu/{menu-item-content.jsx → menu-item-content.tsx} +0 -0
- package/src/menu/{menu-item.jsx → menu-item.tsx} +0 -26
- package/src/menu/{menu-list.jsx → menu-list.tsx} +0 -15
- package/src/{menubutton → menu-button}/README.md +0 -0
- package/src/menu-button/index.ts +1 -0
- package/src/{menubutton/menubutton.jsx → menu-button/menu-button.tsx} +0 -34
- package/src/multiselect/{index.js → index.ts} +0 -0
- package/src/multiselect/{multiselect-chip-list.jsx → multiselect-chip-list.tsx} +0 -0
- package/src/multiselect/{multiselect.jsx → multiselect.tsx} +0 -26
- package/src/nodata/{index.js → index.ts} +0 -0
- package/src/nodata/{nodata.jsx → nodata.tsx} +0 -13
- package/src/numerictextbox/{index.js → index.ts} +0 -0
- package/src/numerictextbox/{numerictextbox.jsx → numerictextbox.tsx} +0 -38
- package/src/popover/{index.js → index.ts} +0 -0
- package/src/popover/{popover.jsx → popover.tsx} +1 -1
- package/src/popup/{index.js → index.ts} +0 -0
- package/src/popup/{popup.jsx → popup.tsx} +0 -15
- package/src/radio/{index.js → index.ts} +0 -0
- package/src/radio/{radio.jsx → radio.tsx} +0 -20
- package/src/searchbar/{index.js → index.ts} +0 -0
- package/src/searchbar/{searchbar.jsx → searchbar.tsx} +0 -0
- package/src/searchbox/{index.js → index.ts} +0 -0
- package/src/searchbox/{searchbox.jsx → searchbox.tsx} +0 -26
- package/src/spinbutton/{index.js → index.ts} +0 -0
- package/src/spinbutton/{spinbutton.jsx → spinbutton.tsx} +0 -15
- package/src/{splitbutton → split-button}/README.md +0 -0
- package/src/split-button/index.ts +1 -0
- package/src/{splitbutton/splitbutton.jsx → split-button/split-button.tsx} +0 -42
- package/src/switch/{index.js → index.ts} +0 -0
- package/src/switch/{switch.jsx → switch.tsx} +0 -26
- package/src/textarea/{index.js → index.ts} +0 -0
- package/src/textarea/{textarea.jsx → textarea.tsx} +0 -24
- package/src/textbox/{index.js → index.ts} +0 -0
- package/src/textbox/{textbox.jsx → textbox.tsx} +0 -27
- package/src/timepicker/{index.js → index.ts} +0 -0
- package/src/timepicker/{timepicker.jsx → timepicker.tsx} +0 -33
- package/src/treeview/{index.js → index.ts} +0 -0
- package/src/treeview/{treeview-group.jsx → treeview-group.tsx} +0 -15
- package/src/treeview/{treeview-item.jsx → treeview-item.tsx} +0 -23
- package/src/treeview/{treeview-leaf.jsx → treeview-leaf.tsx} +0 -21
- package/src/treeview/{treeview.jsx → treeview.tsx} +0 -15
- package/src/typography/{index.js → index.ts} +0 -0
- package/src/typography/{typography.jsx → typography.tsx} +2 -2
- package/src/button/index.js +0 -3
- package/src/colorpalette/colorpalette-presets.jsx +0 -50
- package/src/menubutton/index.js +0 -1
- package/src/splitbutton/index.js +0 -1
|
@@ -13,7 +13,6 @@ function ListHeaderStatic(props) {
|
|
|
13
13
|
children,
|
|
14
14
|
|
|
15
15
|
aria,
|
|
16
|
-
legacy,
|
|
17
16
|
|
|
18
17
|
...htmlAttributes
|
|
19
18
|
} = props;
|
|
@@ -24,23 +23,10 @@ function ListHeaderStatic(props) {
|
|
|
24
23
|
'k-list-group-sticky-header'
|
|
25
24
|
];
|
|
26
25
|
|
|
27
|
-
let legacyListHeaderClasses = [
|
|
28
|
-
ownClassName,
|
|
29
|
-
'k-group-header'
|
|
30
|
-
];
|
|
31
|
-
|
|
32
26
|
let ariaAttr = aria
|
|
33
27
|
? {}
|
|
34
28
|
: {};
|
|
35
29
|
|
|
36
|
-
if (legacy) {
|
|
37
|
-
return (
|
|
38
|
-
<div className={legacyListHeaderClasses} {...ariaAttr} {...htmlAttributes}>
|
|
39
|
-
{children}
|
|
40
|
-
</div>
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
30
|
return (
|
|
45
31
|
<div className={listHeaderClasses} {...ariaAttr} {...htmlAttributes}>
|
|
46
32
|
<div className="k-list-header-text">{children}</div>
|
|
@@ -26,7 +26,6 @@ function ListItemStatic(props) {
|
|
|
26
26
|
disabled,
|
|
27
27
|
|
|
28
28
|
aria,
|
|
29
|
-
legacy,
|
|
30
29
|
|
|
31
30
|
...htmlAttributes
|
|
32
31
|
} = props;
|
|
@@ -42,33 +41,10 @@ function ListItemStatic(props) {
|
|
|
42
41
|
}
|
|
43
42
|
];
|
|
44
43
|
|
|
45
|
-
|
|
46
|
-
let legacyListItemClasses = [
|
|
47
|
-
ownClassName,
|
|
48
|
-
'k-item',
|
|
49
|
-
{
|
|
50
|
-
'k-state-hover': hover === true,
|
|
51
|
-
'k-state-focused': focus === true,
|
|
52
|
-
'k-state-selected': selected === true,
|
|
53
|
-
'k-state-disabled': disabled === true
|
|
54
|
-
}
|
|
55
|
-
];
|
|
56
|
-
|
|
57
44
|
let ariaAttr = aria
|
|
58
45
|
? {}
|
|
59
46
|
: {};
|
|
60
47
|
|
|
61
|
-
if (legacy) {
|
|
62
|
-
return (
|
|
63
|
-
<li className={legacyListItemClasses} {...ariaAttr} {...htmlAttributes}>
|
|
64
|
-
{showCheckbox && <CheckboxStatic checked={checked} />}
|
|
65
|
-
{showIcon && <IconStatic name={iconName} />}
|
|
66
|
-
<span className="k-list-item-text">{children}</span>
|
|
67
|
-
{groupLabel !== '' && <div className="k-group">{groupLabel}</div>}
|
|
68
|
-
</li>
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
48
|
return (
|
|
73
49
|
<li className={listItemClasses} {...ariaAttr} {...htmlAttributes}>
|
|
74
50
|
{showCheckbox && <CheckboxStatic checked={checked} />}
|
|
@@ -115,7 +115,6 @@ function ListStatic(props) {
|
|
|
115
115
|
virtualization,
|
|
116
116
|
|
|
117
117
|
aria,
|
|
118
|
-
legacy,
|
|
119
118
|
|
|
120
119
|
...htmlAttributes
|
|
121
120
|
} = props;
|
|
@@ -129,24 +128,10 @@ function ListStatic(props) {
|
|
|
129
128
|
}
|
|
130
129
|
];
|
|
131
130
|
|
|
132
|
-
|
|
133
|
-
let legacyListClasses = [
|
|
134
|
-
ownClassName,
|
|
135
|
-
'k-list-container'
|
|
136
|
-
];
|
|
137
|
-
|
|
138
131
|
let ariaAttr = aria
|
|
139
132
|
? {}
|
|
140
133
|
: {};
|
|
141
134
|
|
|
142
|
-
if (legacy) {
|
|
143
|
-
return (
|
|
144
|
-
<div className={legacyListClasses} {...ariaAttr} {...htmlAttributes}>
|
|
145
|
-
{children}
|
|
146
|
-
</div>
|
|
147
|
-
);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
135
|
return (
|
|
151
136
|
<div className={listClasses} {...ariaAttr} {...htmlAttributes}>
|
|
152
137
|
{children}
|
|
File without changes
|
|
@@ -31,7 +31,6 @@ function MaskedTextboxStatic(props) {
|
|
|
31
31
|
disabled,
|
|
32
32
|
|
|
33
33
|
aria,
|
|
34
|
-
legacy,
|
|
35
34
|
|
|
36
35
|
...htmlAttributes
|
|
37
36
|
|
|
@@ -65,30 +64,6 @@ function MaskedTextboxStatic(props) {
|
|
|
65
64
|
? {}
|
|
66
65
|
: {};
|
|
67
66
|
|
|
68
|
-
if (legacy) {
|
|
69
|
-
|
|
70
|
-
let legacyClasses = [
|
|
71
|
-
ownClassName,
|
|
72
|
-
'k-widget',
|
|
73
|
-
'k-maskedtextbox',
|
|
74
|
-
{
|
|
75
|
-
'k-state-hover': hover === true,
|
|
76
|
-
'k-state-focus': focus === true,
|
|
77
|
-
'k-state-invalid': invalid === true,
|
|
78
|
-
'k-state-disabled': disabled === true
|
|
79
|
-
}
|
|
80
|
-
];
|
|
81
|
-
|
|
82
|
-
return (
|
|
83
|
-
<InputStatic className={legacyClasses} {...htmlAttributes}>
|
|
84
|
-
<input type={type} className="k-input" {...inputAttributes} />
|
|
85
|
-
<InputValidationIconStatic {...props} />
|
|
86
|
-
<InputLoadingIconStatic {...props} />
|
|
87
|
-
<InputClearValueStatic {...props} />
|
|
88
|
-
</InputStatic>
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
67
|
return (
|
|
93
68
|
<InputStatic className={maskedClasses} {...ariaAttr} {...htmlAttributes}>
|
|
94
69
|
<InputInnerInputStatic {...inputAttributes} />
|
|
File without changes
|
|
File without changes
|
|
@@ -55,7 +55,6 @@ function MenuItemStatic(props) {
|
|
|
55
55
|
dir,
|
|
56
56
|
|
|
57
57
|
aria,
|
|
58
|
-
legacy,
|
|
59
58
|
|
|
60
59
|
...htmlAttributes
|
|
61
60
|
} = props;
|
|
@@ -94,31 +93,6 @@ function MenuItemStatic(props) {
|
|
|
94
93
|
? {}
|
|
95
94
|
: {};
|
|
96
95
|
|
|
97
|
-
if (legacy) {
|
|
98
|
-
|
|
99
|
-
let legacyMenuItemClasses = [
|
|
100
|
-
ownClassName,
|
|
101
|
-
'k-item k-menu-item',
|
|
102
|
-
{
|
|
103
|
-
'k-state-hover': hover === true,
|
|
104
|
-
'k-state-focus': focus === true,
|
|
105
|
-
'k-state-selected': selected === true,
|
|
106
|
-
'k-state-disabled': disabled === true,
|
|
107
|
-
}
|
|
108
|
-
];
|
|
109
|
-
|
|
110
|
-
return (
|
|
111
|
-
<li className={legacyMenuItemClasses} {...ariaAttr} {...htmlAttributes}>
|
|
112
|
-
<span className={`k-link k-menu-link ${active === true ? 'k-state-active' : ''}`}>
|
|
113
|
-
{icon && <IconStatic className="k-menu-link-icon" name={icon} />}
|
|
114
|
-
<span className="k-menu-link-text">{text}</span>
|
|
115
|
-
{showArrow && <span className="k-menu-expand-arrow"><IconStatic name={expandArrowName} /></span>}
|
|
116
|
-
</span>
|
|
117
|
-
{contentTemplate}
|
|
118
|
-
</li>
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
96
|
return (
|
|
123
97
|
<li className={menuItemClasses} {...ariaAttr} {...htmlAttributes}>
|
|
124
98
|
<span className={menuItemLinkClasses}>
|
|
@@ -15,7 +15,6 @@ function MenuListStatic(props) {
|
|
|
15
15
|
size,
|
|
16
16
|
|
|
17
17
|
aria,
|
|
18
|
-
legacy,
|
|
19
18
|
|
|
20
19
|
...htmlAttributes
|
|
21
20
|
} = props;
|
|
@@ -30,20 +29,6 @@ function MenuListStatic(props) {
|
|
|
30
29
|
? {}
|
|
31
30
|
: {};
|
|
32
31
|
|
|
33
|
-
if (legacy) {
|
|
34
|
-
|
|
35
|
-
let legacyMenuListClasses = [
|
|
36
|
-
ownClassName,
|
|
37
|
-
'k-group k-menu-group k-reset',
|
|
38
|
-
];
|
|
39
|
-
|
|
40
|
-
return (
|
|
41
|
-
<ul className={legacyMenuListClasses} {...ariaAttr} {...htmlAttributes}>
|
|
42
|
-
{children}
|
|
43
|
-
</ul>
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
32
|
return (
|
|
48
33
|
<ul className={menuListClasses} {...ariaAttr} {...htmlAttributes}>
|
|
49
34
|
{children}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './menu-button.jsx';
|
|
@@ -38,7 +38,6 @@ function MenuButtonStatic(props) {
|
|
|
38
38
|
disabled,
|
|
39
39
|
|
|
40
40
|
aria,
|
|
41
|
-
legacy,
|
|
42
41
|
|
|
43
42
|
...htmlAttributes
|
|
44
43
|
} = props;
|
|
@@ -55,39 +54,6 @@ function MenuButtonStatic(props) {
|
|
|
55
54
|
? {}
|
|
56
55
|
: {};
|
|
57
56
|
|
|
58
|
-
if (legacy) {
|
|
59
|
-
|
|
60
|
-
let legacyMenuButtonClasses = [
|
|
61
|
-
ownClassName,
|
|
62
|
-
'k-menu-button'
|
|
63
|
-
];
|
|
64
|
-
|
|
65
|
-
return (
|
|
66
|
-
<ButtonStatic className={legacyMenuButtonClasses}
|
|
67
|
-
text={text}
|
|
68
|
-
icon={icon}
|
|
69
|
-
|
|
70
|
-
size={size}
|
|
71
|
-
rounded={rounded}
|
|
72
|
-
fillMode={fillMode}
|
|
73
|
-
themeColor={themeColor}
|
|
74
|
-
|
|
75
|
-
hover={hover}
|
|
76
|
-
focus={focus}
|
|
77
|
-
active={active}
|
|
78
|
-
selected={selected}
|
|
79
|
-
disabled={disabled}
|
|
80
|
-
|
|
81
|
-
{...ariaAttr}
|
|
82
|
-
{...htmlAttributes}
|
|
83
|
-
>
|
|
84
|
-
<IconStatic className="k-button-icon" name={icon} />
|
|
85
|
-
{text && <span className="k-button-text">{text}</span>}
|
|
86
|
-
{showArrow && <span className="k-menu-button-arrow k-button-arrow"><IconStatic name={arrowIconName} /></span>}
|
|
87
|
-
</ButtonStatic>
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
57
|
return (
|
|
92
58
|
<ButtonStatic className={menuButtonClasses}
|
|
93
59
|
text={text}
|
|
File without changes
|
|
File without changes
|
|
@@ -59,7 +59,6 @@ function MultiSelectStatic(props) {
|
|
|
59
59
|
disabled,
|
|
60
60
|
|
|
61
61
|
aria,
|
|
62
|
-
legacy,
|
|
63
62
|
|
|
64
63
|
...htmlAttributes
|
|
65
64
|
} = props;
|
|
@@ -91,31 +90,6 @@ function MultiSelectStatic(props) {
|
|
|
91
90
|
? {}
|
|
92
91
|
: {};
|
|
93
92
|
|
|
94
|
-
if (legacy) {
|
|
95
|
-
|
|
96
|
-
let legacyClasses = [
|
|
97
|
-
ownClassName,
|
|
98
|
-
'k-widget',
|
|
99
|
-
'k-multiselect',
|
|
100
|
-
{
|
|
101
|
-
'k-state-hover': hover === true,
|
|
102
|
-
'k-state-focused': focus === true,
|
|
103
|
-
'k-state-invalid': invalid === true,
|
|
104
|
-
'k-state-required': required === true,
|
|
105
|
-
'k-state-disabled': disabled === true
|
|
106
|
-
}
|
|
107
|
-
];
|
|
108
|
-
|
|
109
|
-
return (
|
|
110
|
-
<InputStatic className={legacyClasses} {...htmlAttributes}>
|
|
111
|
-
<input type={type} className="k-input" {...inputAttributes} />
|
|
112
|
-
<InputValidationIconStatic {...props} />
|
|
113
|
-
<InputLoadingIconStatic {...props} />
|
|
114
|
-
<InputClearValueStatic {...props} />
|
|
115
|
-
</InputStatic>
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
93
|
return (
|
|
120
94
|
<InputStatic className={multiselectClasses} {...ariaAttr} {...htmlAttributes}>
|
|
121
95
|
{prefix}
|
|
File without changes
|
|
@@ -14,7 +14,6 @@ function NoDataStatic(props) {
|
|
|
14
14
|
children,
|
|
15
15
|
|
|
16
16
|
aria,
|
|
17
|
-
legacy,
|
|
18
17
|
|
|
19
18
|
...htmlAttributes
|
|
20
19
|
} = props;
|
|
@@ -28,18 +27,6 @@ function NoDataStatic(props) {
|
|
|
28
27
|
? {}
|
|
29
28
|
: {};
|
|
30
29
|
|
|
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
30
|
return (
|
|
44
31
|
<div className={noDataClasses} {...ariaAttr} {...htmlAttributes}>No data found.</div>
|
|
45
32
|
);
|
|
File without changes
|
|
@@ -14,7 +14,6 @@ function NumericTextboxStatic(props) {
|
|
|
14
14
|
const {
|
|
15
15
|
className: ownClassName,
|
|
16
16
|
|
|
17
|
-
type,
|
|
18
17
|
value,
|
|
19
18
|
placeholder,
|
|
20
19
|
autocomplete,
|
|
@@ -34,7 +33,6 @@ function NumericTextboxStatic(props) {
|
|
|
34
33
|
disabled,
|
|
35
34
|
|
|
36
35
|
aria,
|
|
37
|
-
legacy,
|
|
38
36
|
|
|
39
37
|
...htmlAttributes
|
|
40
38
|
|
|
@@ -68,42 +66,6 @@ function NumericTextboxStatic(props) {
|
|
|
68
66
|
? {}
|
|
69
67
|
: {};
|
|
70
68
|
|
|
71
|
-
if (legacy) {
|
|
72
|
-
|
|
73
|
-
let legacyClasses = [
|
|
74
|
-
ownClassName,
|
|
75
|
-
'k-widget',
|
|
76
|
-
'k-numerictextbox',
|
|
77
|
-
{
|
|
78
|
-
'k-state-hover': hover === true,
|
|
79
|
-
'k-state-focus': focus === true,
|
|
80
|
-
'k-state-invalid': invalid === true,
|
|
81
|
-
'k-state-disabled': disabled === true
|
|
82
|
-
}
|
|
83
|
-
];
|
|
84
|
-
|
|
85
|
-
let legacyWrapClasses = [
|
|
86
|
-
'k-numeric-wrap'
|
|
87
|
-
];
|
|
88
|
-
|
|
89
|
-
let legacyInputClasses = [
|
|
90
|
-
'k-input',
|
|
91
|
-
'k-formatted-value'
|
|
92
|
-
];
|
|
93
|
-
|
|
94
|
-
return (
|
|
95
|
-
<InputStatic className={legacyClasses} {...htmlAttributes}>
|
|
96
|
-
<span className={legacyWrapClasses}>
|
|
97
|
-
<input type={type} className={legacyInputClasses} {...inputAttributes} />
|
|
98
|
-
<InputValidationIconStatic {...props} />
|
|
99
|
-
<InputLoadingIconStatic {...props} />
|
|
100
|
-
<InputClearValueStatic {...props} />
|
|
101
|
-
{showSpinButton === true && <SpinButtonStatic />}
|
|
102
|
-
</span>
|
|
103
|
-
</InputStatic>
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
69
|
return (
|
|
108
70
|
<InputStatic className={numericClasses} {...ariaAttr} {...htmlAttributes}>
|
|
109
71
|
<InputInnerInputStatic {...inputAttributes} />
|
|
File without changes
|
|
File without changes
|
|
@@ -18,7 +18,6 @@ function PopupStatic(props) {
|
|
|
18
18
|
rounded,
|
|
19
19
|
|
|
20
20
|
aria,
|
|
21
|
-
legacy,
|
|
22
21
|
|
|
23
22
|
...htmlAttributes
|
|
24
23
|
} = props;
|
|
@@ -34,20 +33,6 @@ function PopupStatic(props) {
|
|
|
34
33
|
? {}
|
|
35
34
|
: {};
|
|
36
35
|
|
|
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
36
|
return (
|
|
52
37
|
<div className={PopupClasses} {...ariaAttr} {...htmlAttributes}>
|
|
53
38
|
{children}
|
|
File without changes
|
|
@@ -22,7 +22,6 @@ function RadioStatic(props) {
|
|
|
22
22
|
disabled,
|
|
23
23
|
|
|
24
24
|
aria,
|
|
25
|
-
legacy,
|
|
26
25
|
|
|
27
26
|
...htmlAttributes
|
|
28
27
|
|
|
@@ -48,25 +47,6 @@ function RadioStatic(props) {
|
|
|
48
47
|
}
|
|
49
48
|
];
|
|
50
49
|
|
|
51
|
-
if (legacy) {
|
|
52
|
-
|
|
53
|
-
let legacyClasses = [
|
|
54
|
-
ownClassName,
|
|
55
|
-
'k-radio',
|
|
56
|
-
{
|
|
57
|
-
'k-state-hover': hover === true,
|
|
58
|
-
'k-state-focus': focus === true,
|
|
59
|
-
'k-state-invalid': invalid === true,
|
|
60
|
-
'k-state-disabled': disabled === true,
|
|
61
|
-
'k-state-checked': checked === true,
|
|
62
|
-
}
|
|
63
|
-
];
|
|
64
|
-
|
|
65
|
-
return (
|
|
66
|
-
<span className="k-radio-wrap"><input type="radio" className={legacyClasses} {...ariaAttr} {...htmlAttributes}/></span>
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
50
|
return (
|
|
71
51
|
<span className="k-radio-wrap"><input type="radio" className={radioClasses} {...ariaAttr} {...htmlAttributes}/></span>
|
|
72
52
|
);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -38,7 +38,6 @@ function SearchboxInner(props) {
|
|
|
38
38
|
disabled,
|
|
39
39
|
|
|
40
40
|
aria,
|
|
41
|
-
legacy,
|
|
42
41
|
|
|
43
42
|
...htmlAttributes
|
|
44
43
|
} = props;
|
|
@@ -71,31 +70,6 @@ function SearchboxInner(props) {
|
|
|
71
70
|
? {}
|
|
72
71
|
: {};
|
|
73
72
|
|
|
74
|
-
if (legacy) {
|
|
75
|
-
|
|
76
|
-
let legacyClasses = [
|
|
77
|
-
ownClassName,
|
|
78
|
-
'k-searchbox',
|
|
79
|
-
{
|
|
80
|
-
'k-state-hover': hover === true,
|
|
81
|
-
'k-state-focus': focus === true,
|
|
82
|
-
'k-state-invalid': invalid === true,
|
|
83
|
-
'k-state-required': required === true,
|
|
84
|
-
'k-state-disabled': disabled === true
|
|
85
|
-
}
|
|
86
|
-
];
|
|
87
|
-
|
|
88
|
-
return (
|
|
89
|
-
<InputStatic className={legacyClasses} {...htmlAttributes}>
|
|
90
|
-
{showIcon && <IconStatic name={iconName} className="k-input-icon" />}
|
|
91
|
-
<input type={type} className="k-input" {...inputAttributes} />
|
|
92
|
-
<InputValidationIconStatic {...props} />
|
|
93
|
-
<InputLoadingIconStatic {...props} />
|
|
94
|
-
<InputClearValueStatic {...props} />
|
|
95
|
-
</InputStatic>
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
73
|
return (
|
|
100
74
|
<InputStatic className={searchBoxClasses} {...ariaAttr} {...htmlAttributes}>
|
|
101
75
|
{showIcon && <IconStatic name={iconName} className="k-input-icon" />}
|
|
File without changes
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Component, globalDefaultProps } from '../component/index';
|
|
2
|
-
import { IconStatic } from '../icon/index';
|
|
3
2
|
import { ButtonStatic } from '../button/index';
|
|
4
3
|
|
|
5
4
|
class SpinButton extends Component {
|
|
@@ -17,7 +16,6 @@ function SpinButtonStatic(props) {
|
|
|
17
16
|
fillMode,
|
|
18
17
|
|
|
19
18
|
aria,
|
|
20
|
-
legacy,
|
|
21
19
|
|
|
22
20
|
...htmlAttributes
|
|
23
21
|
} = props;
|
|
@@ -31,19 +29,6 @@ function SpinButtonStatic(props) {
|
|
|
31
29
|
? {}
|
|
32
30
|
: {};
|
|
33
31
|
|
|
34
|
-
if (legacy) {
|
|
35
|
-
return (
|
|
36
|
-
<span className="k-select">
|
|
37
|
-
<span className="k-link k-link-increase">
|
|
38
|
-
<IconStatic name="arrow-60-up" />
|
|
39
|
-
</span>
|
|
40
|
-
<span className="k-link k-link-decrease">
|
|
41
|
-
<IconStatic name="arrow-60-down" />
|
|
42
|
-
</span>
|
|
43
|
-
</span>
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
32
|
return (
|
|
48
33
|
<span className={spinButtonClasses} {...ariaAttr} {...htmlAttributes}>
|
|
49
34
|
<ButtonStatic className="k-spinner-increase" icon="arrow-n" shape={null} rounded={null} size={size} fillMode={fillMode} />
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './split-button.jsx';
|
|
@@ -37,7 +37,6 @@ function SplitButtonStatic(props) {
|
|
|
37
37
|
disabled,
|
|
38
38
|
|
|
39
39
|
aria,
|
|
40
|
-
legacy,
|
|
41
40
|
|
|
42
41
|
...htmlAttributes
|
|
43
42
|
} = props;
|
|
@@ -56,47 +55,6 @@ function SplitButtonStatic(props) {
|
|
|
56
55
|
? {}
|
|
57
56
|
: {};
|
|
58
57
|
|
|
59
|
-
if (legacy) {
|
|
60
|
-
|
|
61
|
-
let legacySplitButtonClasses = [
|
|
62
|
-
ownClassName,
|
|
63
|
-
'k-split-button',
|
|
64
|
-
'k-button-group'
|
|
65
|
-
];
|
|
66
|
-
|
|
67
|
-
return (
|
|
68
|
-
<div className={legacySplitButtonClasses} {...ariaAttr} {...htmlAttributes}>
|
|
69
|
-
<ButtonStatic
|
|
70
|
-
text={text}
|
|
71
|
-
icon={icon}
|
|
72
|
-
|
|
73
|
-
size={size}
|
|
74
|
-
rounded={rounded}
|
|
75
|
-
fillMode={fillMode}
|
|
76
|
-
themeColor={themeColor}
|
|
77
|
-
|
|
78
|
-
hover={hover}
|
|
79
|
-
focus={focus}
|
|
80
|
-
active={active}
|
|
81
|
-
selected={selected}
|
|
82
|
-
disabled={disabled}
|
|
83
|
-
></ButtonStatic>
|
|
84
|
-
<ButtonStatic
|
|
85
|
-
className="k-split-button-arrow"
|
|
86
|
-
|
|
87
|
-
icon={arrowIconName}
|
|
88
|
-
|
|
89
|
-
size={size}
|
|
90
|
-
rounded={rounded}
|
|
91
|
-
fillMode={fillMode}
|
|
92
|
-
themeColor={themeColor}
|
|
93
|
-
|
|
94
|
-
disabled={disabled}
|
|
95
|
-
></ButtonStatic>
|
|
96
|
-
</div>
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
58
|
return (
|
|
101
59
|
<div className={splitButtonClasses} {...ariaAttr} {...htmlAttributes}>
|
|
102
60
|
<ButtonStatic
|
|
File without changes
|