@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
|
@@ -2,7 +2,6 @@ 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';
|
|
5
|
-
import { IconStatic } from '../icon/index';
|
|
6
5
|
|
|
7
6
|
class Combobox extends Input {
|
|
8
7
|
render() {
|
|
@@ -36,7 +35,6 @@ function ComboboxStatic(props) {
|
|
|
36
35
|
disabled,
|
|
37
36
|
|
|
38
37
|
aria,
|
|
39
|
-
legacy,
|
|
40
38
|
|
|
41
39
|
...htmlAttributes
|
|
42
40
|
} = props;
|
|
@@ -69,37 +67,6 @@ function ComboboxStatic(props) {
|
|
|
69
67
|
? {}
|
|
70
68
|
: {};
|
|
71
69
|
|
|
72
|
-
if (legacy) {
|
|
73
|
-
|
|
74
|
-
let legacyClasses = [
|
|
75
|
-
ownClassName,
|
|
76
|
-
'k-widget',
|
|
77
|
-
'k-combobox',
|
|
78
|
-
{
|
|
79
|
-
'k-state-hover': hover === true,
|
|
80
|
-
'k-state-focus': focus === true,
|
|
81
|
-
'k-state-invalid': invalid === true,
|
|
82
|
-
'k-state-disabled': disabled === true
|
|
83
|
-
}
|
|
84
|
-
];
|
|
85
|
-
|
|
86
|
-
let legacyWrapClasses = [
|
|
87
|
-
'k-dropdown-wrap'
|
|
88
|
-
];
|
|
89
|
-
|
|
90
|
-
return (
|
|
91
|
-
<InputStatic className={legacyClasses} {...htmlAttributes}>
|
|
92
|
-
<span className={legacyWrapClasses}>
|
|
93
|
-
<input type={type} className="k-input" {...inputAttributes} />
|
|
94
|
-
<InputValidationIconStatic {...props} />
|
|
95
|
-
<InputLoadingIconStatic {...props} />
|
|
96
|
-
<InputClearValueStatic {...props} />
|
|
97
|
-
<span className="k-select"><IconStatic name="arrow-s" /></span>
|
|
98
|
-
</span>
|
|
99
|
-
</InputStatic>
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
70
|
return (
|
|
104
71
|
<InputStatic className={comboboxClasses} {...ariaAttr} {...htmlAttributes}>
|
|
105
72
|
{prefix}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -14,7 +14,6 @@ function DateInputStatic(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 DateInputStatic(props) {
|
|
|
34
33
|
disabled,
|
|
35
34
|
|
|
36
35
|
aria,
|
|
37
|
-
legacy,
|
|
38
36
|
|
|
39
37
|
...htmlAttributes
|
|
40
38
|
|
|
@@ -68,41 +66,6 @@ function DateInputStatic(props) {
|
|
|
68
66
|
? {}
|
|
69
67
|
: {};
|
|
70
68
|
|
|
71
|
-
if (legacy) {
|
|
72
|
-
|
|
73
|
-
let legacyClasses = [
|
|
74
|
-
ownClassName,
|
|
75
|
-
'k-widget',
|
|
76
|
-
'k-dateinput',
|
|
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-dateinput-wrap'
|
|
87
|
-
];
|
|
88
|
-
|
|
89
|
-
let legacyInputClasses = [
|
|
90
|
-
'k-input'
|
|
91
|
-
];
|
|
92
|
-
|
|
93
|
-
return (
|
|
94
|
-
<InputStatic className={legacyClasses} {...htmlAttributes}>
|
|
95
|
-
<span className={legacyWrapClasses}>
|
|
96
|
-
<input type={type} className={legacyInputClasses} {...inputAttributes} />
|
|
97
|
-
<InputValidationIconStatic {...props} />
|
|
98
|
-
<InputLoadingIconStatic {...props} />
|
|
99
|
-
<InputClearValueStatic {...props} />
|
|
100
|
-
{showSpinButton === true && <SpinButtonStatic />}
|
|
101
|
-
</span>
|
|
102
|
-
</InputStatic>
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
69
|
return (
|
|
107
70
|
<InputStatic className={dateInputClasses} {...ariaAttr} {...htmlAttributes}>
|
|
108
71
|
<InputInnerInputStatic {...inputAttributes} />
|
|
File without changes
|
|
@@ -2,7 +2,6 @@ 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';
|
|
5
|
-
import { IconStatic } from '../icon/index';
|
|
6
5
|
|
|
7
6
|
class DatePicker extends Input {
|
|
8
7
|
render() {
|
|
@@ -36,7 +35,6 @@ function DatePickerStatic(props) {
|
|
|
36
35
|
disabled,
|
|
37
36
|
|
|
38
37
|
aria,
|
|
39
|
-
legacy,
|
|
40
38
|
|
|
41
39
|
...htmlAttributes
|
|
42
40
|
} = props;
|
|
@@ -69,37 +67,6 @@ function DatePickerStatic(props) {
|
|
|
69
67
|
? {}
|
|
70
68
|
: {};
|
|
71
69
|
|
|
72
|
-
if (legacy) {
|
|
73
|
-
|
|
74
|
-
let legacyClasses = [
|
|
75
|
-
ownClassName,
|
|
76
|
-
'k-widget',
|
|
77
|
-
'k-datepicker',
|
|
78
|
-
{
|
|
79
|
-
'k-state-hover': hover === true,
|
|
80
|
-
'k-state-focus': focus === true,
|
|
81
|
-
'k-state-invalid': invalid === true,
|
|
82
|
-
'k-state-disabled': disabled === true
|
|
83
|
-
}
|
|
84
|
-
];
|
|
85
|
-
|
|
86
|
-
let legacyWrapClasses = [
|
|
87
|
-
'k-picker-wrap'
|
|
88
|
-
];
|
|
89
|
-
|
|
90
|
-
return (
|
|
91
|
-
<InputStatic className={legacyClasses} {...htmlAttributes}>
|
|
92
|
-
<span className={legacyWrapClasses}>
|
|
93
|
-
<input type={type} className="k-input" {...inputAttributes} />
|
|
94
|
-
<InputValidationIconStatic {...props} />
|
|
95
|
-
<InputLoadingIconStatic {...props} />
|
|
96
|
-
<InputClearValueStatic {...props} />
|
|
97
|
-
<span className="k-select"><IconStatic name="calendar" /></span>
|
|
98
|
-
</span>
|
|
99
|
-
</InputStatic>
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
70
|
return (
|
|
104
71
|
<InputStatic className={datepickerClasses} {...ariaAttr} {...htmlAttributes}>
|
|
105
72
|
{prefix}
|
|
File without changes
|
|
File without changes
|
|
@@ -2,7 +2,6 @@ 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';
|
|
5
|
-
import { IconStatic } from '../icon/index';
|
|
6
5
|
|
|
7
6
|
class DateTimePicker extends Input {
|
|
8
7
|
render() {
|
|
@@ -36,7 +35,6 @@ function DateTimePickerStatic(props) {
|
|
|
36
35
|
disabled,
|
|
37
36
|
|
|
38
37
|
aria,
|
|
39
|
-
legacy,
|
|
40
38
|
|
|
41
39
|
...htmlAttributes
|
|
42
40
|
} = props;
|
|
@@ -69,37 +67,6 @@ function DateTimePickerStatic(props) {
|
|
|
69
67
|
? {}
|
|
70
68
|
: {};
|
|
71
69
|
|
|
72
|
-
if (legacy) {
|
|
73
|
-
|
|
74
|
-
let legacyClasses = [
|
|
75
|
-
ownClassName,
|
|
76
|
-
'k-widget',
|
|
77
|
-
'k-datetimepicker',
|
|
78
|
-
{
|
|
79
|
-
'k-state-hover': hover === true,
|
|
80
|
-
'k-state-focus': focus === true,
|
|
81
|
-
'k-state-invalid': invalid === true,
|
|
82
|
-
'k-state-disabled': disabled === true
|
|
83
|
-
}
|
|
84
|
-
];
|
|
85
|
-
|
|
86
|
-
let legacyWrapClasses = [
|
|
87
|
-
'k-picker-wrap'
|
|
88
|
-
];
|
|
89
|
-
|
|
90
|
-
return (
|
|
91
|
-
<InputStatic className={legacyClasses} {...htmlAttributes}>
|
|
92
|
-
<span className={legacyWrapClasses}>
|
|
93
|
-
<input type={type} className="k-input" {...inputAttributes} />
|
|
94
|
-
<InputValidationIconStatic {...props} />
|
|
95
|
-
<InputLoadingIconStatic {...props} />
|
|
96
|
-
<InputClearValueStatic {...props} />
|
|
97
|
-
<span className="k-select"><span className="k-link"><IconStatic name="calendar" /></span></span>
|
|
98
|
-
</span>
|
|
99
|
-
</InputStatic>
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
70
|
return (
|
|
104
71
|
<InputStatic className={dateTimePickerClasses} {...ariaAttr} {...htmlAttributes}>
|
|
105
72
|
{prefix}
|
|
File without changes
|
|
@@ -12,48 +12,16 @@ function DropdownGridStatic(props) {
|
|
|
12
12
|
const {
|
|
13
13
|
className: ownClassName,
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
value,
|
|
17
|
-
placeholder,
|
|
18
|
-
autocomplete,
|
|
19
|
-
|
|
20
|
-
prefix,
|
|
21
|
-
suffix,
|
|
22
|
-
|
|
23
|
-
size,
|
|
24
|
-
rounded,
|
|
25
|
-
|
|
26
|
-
fillMode,
|
|
27
|
-
|
|
28
|
-
hover,
|
|
29
|
-
focus,
|
|
30
|
-
valid,
|
|
31
|
-
invalid,
|
|
32
|
-
required,
|
|
33
|
-
disabled,
|
|
34
|
-
|
|
35
|
-
aria,
|
|
36
|
-
|
|
37
|
-
...htmlAttributes
|
|
15
|
+
...otherProps
|
|
38
16
|
} = props;
|
|
39
17
|
|
|
40
|
-
htmlAttributes.size = size;
|
|
41
|
-
htmlAttributes.rounded = rounded;
|
|
42
|
-
htmlAttributes.fillMode = fillMode;
|
|
43
|
-
htmlAttributes.hover = hover;
|
|
44
|
-
htmlAttributes.focus = focus;
|
|
45
|
-
htmlAttributes.valid = valid;
|
|
46
|
-
htmlAttributes.invalid = invalid;
|
|
47
|
-
htmlAttributes.required = required;
|
|
48
|
-
htmlAttributes.disabled = disabled;
|
|
49
|
-
|
|
50
18
|
let dropdownGridClasses = [
|
|
51
19
|
ownClassName,
|
|
52
20
|
'k-dropdowngrid'
|
|
53
21
|
];
|
|
54
22
|
|
|
55
23
|
return (
|
|
56
|
-
<ComboboxStatic className={dropdownGridClasses} {...
|
|
24
|
+
<ComboboxStatic className={dropdownGridClasses} {...otherProps}></ComboboxStatic>
|
|
57
25
|
);
|
|
58
26
|
}
|
|
59
27
|
|
|
File without changes
|
|
@@ -2,7 +2,6 @@ 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';
|
|
5
|
-
import { IconStatic } from '../icon/index';
|
|
6
5
|
|
|
7
6
|
class DropdownList extends Picker {
|
|
8
7
|
render() {
|
|
@@ -41,7 +40,6 @@ function DropdownListStatic(props) {
|
|
|
41
40
|
disabled,
|
|
42
41
|
|
|
43
42
|
aria,
|
|
44
|
-
legacy,
|
|
45
43
|
|
|
46
44
|
...htmlAttributes
|
|
47
45
|
} = props;
|
|
@@ -81,37 +79,6 @@ function DropdownListStatic(props) {
|
|
|
81
79
|
? {}
|
|
82
80
|
: {};
|
|
83
81
|
|
|
84
|
-
if (legacy) {
|
|
85
|
-
|
|
86
|
-
let legacyClasses = [
|
|
87
|
-
ownClassName,
|
|
88
|
-
'k-widget',
|
|
89
|
-
'k-dropdown',
|
|
90
|
-
{
|
|
91
|
-
'k-state-hover': hover === true,
|
|
92
|
-
'k-state-focus': focus === true,
|
|
93
|
-
'k-state-invalid': invalid === true,
|
|
94
|
-
'k-state-disabled': disabled === true
|
|
95
|
-
}
|
|
96
|
-
];
|
|
97
|
-
|
|
98
|
-
let legacyWrapClasses = [
|
|
99
|
-
'k-dropdown-wrap'
|
|
100
|
-
];
|
|
101
|
-
|
|
102
|
-
return (
|
|
103
|
-
<PickerStatic className={legacyClasses} {...htmlAttributes}>
|
|
104
|
-
<span className={legacyWrapClasses}>
|
|
105
|
-
<InputInnerSpanStatic {...inputAttributes} />
|
|
106
|
-
<InputValidationIconStatic {...props} />
|
|
107
|
-
<InputLoadingIconStatic {...props} />
|
|
108
|
-
<InputClearValueStatic {...props} />
|
|
109
|
-
<span className="k-select"><IconStatic name={arrowIconName} /></span>
|
|
110
|
-
</span>
|
|
111
|
-
</PickerStatic>
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
82
|
return (
|
|
116
83
|
<PickerStatic className={dropdownListClasses} {...ariaAttr} {...htmlAttributes}>
|
|
117
84
|
{prefix}
|
|
File without changes
|
|
@@ -38,7 +38,6 @@ function FabStatic(props) {
|
|
|
38
38
|
disabled,
|
|
39
39
|
|
|
40
40
|
aria,
|
|
41
|
-
legacy,
|
|
42
41
|
|
|
43
42
|
...htmlAttributes
|
|
44
43
|
} = props;
|
|
@@ -68,31 +67,6 @@ function FabStatic(props) {
|
|
|
68
67
|
? {}
|
|
69
68
|
: {};
|
|
70
69
|
|
|
71
|
-
if (legacy) {
|
|
72
|
-
let legacyClasses = [
|
|
73
|
-
ownClassName,
|
|
74
|
-
'k-fab',
|
|
75
|
-
`k-fab-${themeColor}`,
|
|
76
|
-
styles.roundedClass( rounded ),
|
|
77
|
-
{
|
|
78
|
-
'k-state-hover': hover === true,
|
|
79
|
-
'k-state-focus': focus === true,
|
|
80
|
-
'k-state-active': active === true,
|
|
81
|
-
'k-state-selected': selected === true,
|
|
82
|
-
'k-state-disabled': disabled === true
|
|
83
|
-
},
|
|
84
|
-
styles.positionClass( position, 'k'),
|
|
85
|
-
styles.sizeClass( size, 'k-fab' )
|
|
86
|
-
];
|
|
87
|
-
|
|
88
|
-
return (
|
|
89
|
-
<button type={type} className={legacyClasses} {...ariaAttr} {...htmlAttributes}>
|
|
90
|
-
<IconStatic className="k-fab-icon" name={icon} />
|
|
91
|
-
{text && <span className="k-fab-text">{text}</span>}
|
|
92
|
-
</button>
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
70
|
return (
|
|
97
71
|
<button type={type} className={buttonClasses} {...ariaAttr} {...htmlAttributes}>
|
|
98
72
|
<IconStatic className="k-fab-icon" name={icon} />
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -16,6 +16,7 @@ export function init() {
|
|
|
16
16
|
window.addEventListener('DOMContentLoaded', init);
|
|
17
17
|
|
|
18
18
|
// Dependencies
|
|
19
|
+
export * from './../lib/jsx-runtime';
|
|
19
20
|
export * from './component/index';
|
|
20
21
|
|
|
21
22
|
// Typography and utils
|
|
@@ -40,9 +41,11 @@ export * from './chip/index';
|
|
|
40
41
|
// export * from './skeleton/index';
|
|
41
42
|
|
|
42
43
|
// Native forms
|
|
44
|
+
export * from './action-buttons/index';
|
|
43
45
|
export * from './button/index';
|
|
44
|
-
export * from './
|
|
45
|
-
export * from './
|
|
46
|
+
export * from './button-group/index';
|
|
47
|
+
export * from './menu-button/index';
|
|
48
|
+
export * from './split-button/index';
|
|
46
49
|
export * from './textbox/index';
|
|
47
50
|
export * from './textarea/index';
|
|
48
51
|
export * from './checkbox/index';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -17,7 +17,6 @@ function InputInnerInputStatic(props) {
|
|
|
17
17
|
autocomplete,
|
|
18
18
|
|
|
19
19
|
aria,
|
|
20
|
-
legacy,
|
|
21
20
|
|
|
22
21
|
...htmlAttributes
|
|
23
22
|
} = props;
|
|
@@ -31,21 +30,10 @@ function InputInnerInputStatic(props) {
|
|
|
31
30
|
'k-input-inner'
|
|
32
31
|
];
|
|
33
32
|
|
|
34
|
-
let legacyClasses = [
|
|
35
|
-
ownClassName,
|
|
36
|
-
'k-input'
|
|
37
|
-
];
|
|
38
|
-
|
|
39
33
|
htmlAttributes.value = value;
|
|
40
34
|
htmlAttributes.placeholder = placeholder;
|
|
41
35
|
htmlAttributes.autocomplete = autocomplete;
|
|
42
36
|
|
|
43
|
-
if (legacy) {
|
|
44
|
-
return (
|
|
45
|
-
<input type={type} className={legacyClasses} {...ariaAttr} {...htmlAttributes} />
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
37
|
return (
|
|
50
38
|
<input type={type} className={inputClasses} {...ariaAttr} {...htmlAttributes} />
|
|
51
39
|
);
|
|
@@ -20,7 +20,6 @@ function InputInnerSpanStatic(props) {
|
|
|
20
20
|
valueIconName,
|
|
21
21
|
|
|
22
22
|
aria,
|
|
23
|
-
legacy,
|
|
24
23
|
|
|
25
24
|
...htmlAttributes
|
|
26
25
|
} = props;
|
|
@@ -34,23 +33,6 @@ function InputInnerSpanStatic(props) {
|
|
|
34
33
|
'k-input-inner'
|
|
35
34
|
];
|
|
36
35
|
|
|
37
|
-
if (legacy) {
|
|
38
|
-
|
|
39
|
-
let legacyClasses = [
|
|
40
|
-
ownClassName,
|
|
41
|
-
'k-input'
|
|
42
|
-
];
|
|
43
|
-
|
|
44
|
-
return (
|
|
45
|
-
<span className={legacyClasses} {...htmlAttributes}>
|
|
46
|
-
{valueIcon}
|
|
47
|
-
{valueIcon === null && <IconStatic className="k-icon k-input-value-icon" name={valueIconName} />}
|
|
48
|
-
{showValue && value === '' && placeholder}
|
|
49
|
-
{showValue && value && <span className="k-input-value-text">{value}</span>}
|
|
50
|
-
</span>
|
|
51
|
-
);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
36
|
return (
|
|
55
37
|
<span className={inputClasses} {...ariaAttr} {...htmlAttributes}>
|
|
56
38
|
{valueIcon}
|
|
@@ -15,7 +15,6 @@ function InputInnerTextareaStatic(props) {
|
|
|
15
15
|
placeholder,
|
|
16
16
|
|
|
17
17
|
aria,
|
|
18
|
-
legacy,
|
|
19
18
|
|
|
20
19
|
...htmlAttributes
|
|
21
20
|
} = props;
|
|
@@ -29,22 +28,9 @@ function InputInnerTextareaStatic(props) {
|
|
|
29
28
|
'k-input-inner'
|
|
30
29
|
];
|
|
31
30
|
|
|
32
|
-
let legacyClasses = [
|
|
33
|
-
ownClassName,
|
|
34
|
-
'k-input'
|
|
35
|
-
];
|
|
36
|
-
|
|
37
31
|
htmlAttributes.value = value;
|
|
38
32
|
htmlAttributes.placeholder = placeholder;
|
|
39
33
|
|
|
40
|
-
if (legacy) {
|
|
41
|
-
return (
|
|
42
|
-
<textarea className={legacyClasses} {...ariaAttr} {...htmlAttributes}>
|
|
43
|
-
{value}
|
|
44
|
-
</textarea>
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
34
|
return (
|
|
49
35
|
<textarea className={inputClasses} {...ariaAttr} {...htmlAttributes}>
|
|
50
36
|
{value}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -55,7 +55,6 @@ function InputStatic(props) {
|
|
|
55
55
|
disabled,
|
|
56
56
|
|
|
57
57
|
aria,
|
|
58
|
-
legacy,
|
|
59
58
|
|
|
60
59
|
...htmlAttributes
|
|
61
60
|
} = props;
|
|
@@ -80,19 +79,6 @@ function InputStatic(props) {
|
|
|
80
79
|
? {}
|
|
81
80
|
: {};
|
|
82
81
|
|
|
83
|
-
if ( legacy ) {
|
|
84
|
-
|
|
85
|
-
let legacyClasses = [
|
|
86
|
-
ownClassName
|
|
87
|
-
];
|
|
88
|
-
|
|
89
|
-
return (
|
|
90
|
-
<span className={legacyClasses} {...htmlAttributes}>
|
|
91
|
-
{props.children}
|
|
92
|
-
</span>
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
82
|
return (
|
|
97
83
|
<span className={inputClasses} {...ariaAttr} {...htmlAttributes}>
|
|
98
84
|
{props.children}
|
|
@@ -54,7 +54,6 @@ function PickerStatic(props) {
|
|
|
54
54
|
disabled,
|
|
55
55
|
|
|
56
56
|
aria,
|
|
57
|
-
legacy,
|
|
58
57
|
|
|
59
58
|
...htmlAttributes
|
|
60
59
|
} = props;
|
|
@@ -78,19 +77,6 @@ function PickerStatic(props) {
|
|
|
78
77
|
? {}
|
|
79
78
|
: {};
|
|
80
79
|
|
|
81
|
-
if ( legacy ) {
|
|
82
|
-
|
|
83
|
-
let legacyClasses = [
|
|
84
|
-
ownClassName
|
|
85
|
-
];
|
|
86
|
-
|
|
87
|
-
return (
|
|
88
|
-
<span className={legacyClasses} {...htmlAttributes}>
|
|
89
|
-
{props.children}
|
|
90
|
-
</span>
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
80
|
return (
|
|
95
81
|
<span className={pickerClasses} {...ariaAttr} {...htmlAttributes}>
|
|
96
82
|
{props.children}
|
|
File without changes
|
|
@@ -15,7 +15,6 @@ function ListContentStatic(props) {
|
|
|
15
15
|
virtualization,
|
|
16
16
|
|
|
17
17
|
aria,
|
|
18
|
-
legacy,
|
|
19
18
|
|
|
20
19
|
...htmlAttributes
|
|
21
20
|
} = props;
|
|
@@ -33,35 +32,6 @@ function ListContentStatic(props) {
|
|
|
33
32
|
? {}
|
|
34
33
|
: {};
|
|
35
34
|
|
|
36
|
-
if (legacy) {
|
|
37
|
-
|
|
38
|
-
let legacyListContentClasses = [
|
|
39
|
-
ownClassName,
|
|
40
|
-
'k-list-content',
|
|
41
|
-
{
|
|
42
|
-
'k-list-scroller': virtualization === false || virtualization === undefined,
|
|
43
|
-
'k-virtual-content': virtualization === true
|
|
44
|
-
}
|
|
45
|
-
];
|
|
46
|
-
|
|
47
|
-
let legacyListULClasses = [
|
|
48
|
-
'k-list',
|
|
49
|
-
'k-reset',
|
|
50
|
-
{
|
|
51
|
-
'k-virtual-list': virtualization === true
|
|
52
|
-
}
|
|
53
|
-
];
|
|
54
|
-
|
|
55
|
-
return (
|
|
56
|
-
<div className={legacyListContentClasses} {...ariaAttr} {...htmlAttributes}>
|
|
57
|
-
<ul className={legacyListULClasses}>
|
|
58
|
-
{children}
|
|
59
|
-
</ul>
|
|
60
|
-
{ virtualization && <div className="k-height-container"><div></div></div> }
|
|
61
|
-
</div>
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
35
|
return (
|
|
66
36
|
<div className={listContentClasses} {...ariaAttr} {...htmlAttributes}>
|
|
67
37
|
<ul className={listULClasses}>
|
|
@@ -13,7 +13,6 @@ function ListGroupItemStatic(props) {
|
|
|
13
13
|
children,
|
|
14
14
|
|
|
15
15
|
aria,
|
|
16
|
-
legacy,
|
|
17
16
|
|
|
18
17
|
...htmlAttributes
|
|
19
18
|
} = props;
|
|
@@ -23,23 +22,10 @@ function ListGroupItemStatic(props) {
|
|
|
23
22
|
'k-list-group-item'
|
|
24
23
|
];
|
|
25
24
|
|
|
26
|
-
let legacyListGroupItemClasses = [
|
|
27
|
-
ownClassName,
|
|
28
|
-
'k-group-header'
|
|
29
|
-
];
|
|
30
|
-
|
|
31
25
|
let ariaAttr = aria
|
|
32
26
|
? {}
|
|
33
27
|
: {};
|
|
34
28
|
|
|
35
|
-
if (legacy) {
|
|
36
|
-
return (
|
|
37
|
-
<li className={legacyListGroupItemClasses} {...ariaAttr} {...htmlAttributes}>
|
|
38
|
-
{children}
|
|
39
|
-
</li>
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
29
|
return (
|
|
44
30
|
<li className={listGroupItemClasses} {...ariaAttr} {...htmlAttributes}>
|
|
45
31
|
<span className="k-list-item-text">{children}</span>
|