@progress/kendo-themes-html 5.2.1-dev.2 → 5.2.1-dev.5

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.
@@ -60,6 +60,7 @@ const booleanAttr = new Set([
60
60
  'active',
61
61
  'readonly',
62
62
  'disabled',
63
+ 'empty',
63
64
 
64
65
  'checked',
65
66
  'indeterminate',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-themes-html",
3
3
  "description": "A collection of HTML helpers used for developing Kendo UI themes",
4
- "version": "5.2.1-dev.2",
4
+ "version": "5.2.1-dev.5",
5
5
  "author": "Progress",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
@@ -42,5 +42,5 @@
42
42
  "@rollup/plugin-node-resolve": "^13.1.2",
43
43
  "rollup": "^2.62.0"
44
44
  },
45
- "gitHead": "e446301962e9eba01d9e3c1920b77c5349ce68cf"
45
+ "gitHead": "7f442a4c1dfe243eff6b623b62e73c161254f653"
46
46
  }
@@ -22,9 +22,9 @@
22
22
  {inputPrefix && <span class="k-input-prefix">...</span>}
23
23
  <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
24
24
  {inputPrefix && <span class="k-input-suffix">...</span>}
25
- {showValidationIcon && valid && <span class="k-validation-icon k-icon k-i-check"></span>}
26
- {showValidationIcon && invalid && <span class="k-validation-icon k-icon k-i-warning"></span>}
27
- {showLoadingIcon && loading && <span class="k-icon k-i-loading"></span>}
25
+ {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
26
+ {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
27
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
28
28
  {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
29
29
  </span>
30
30
  ```
@@ -1,6 +1,6 @@
1
1
  ```html
2
2
  <!-- default rendering -->
3
- <div class="k-avatar k-avatar-md k-rounded-circle k-avatar-solid k-avatar-solid-primary">
3
+ <div class="k-avatar k-avatar-md k-rounded-full k-avatar-solid k-avatar-solid-primary">
4
4
  <span class="k-avatar-image">
5
5
  <img src="../../assets/avatar.jpg" />
6
6
  </span>
@@ -0,0 +1,58 @@
1
+
2
+ import * as styles from '../../utils/styles';
3
+ import { Component, globalDefaultProps } from '../component/index';
4
+
5
+ class ButtonGroup extends Component {
6
+ render() {
7
+ return <ButtonGroupStatic {...this.props} />;
8
+ }
9
+ }
10
+
11
+ function ButtonGroupStatic(props) {
12
+ const {
13
+ className: ownClassName,
14
+
15
+ children,
16
+
17
+ fillMode,
18
+
19
+ aria,
20
+
21
+ ...htmlAttributes
22
+ } = props;
23
+
24
+ let buttonGroupClasses = [
25
+ ownClassName,
26
+ 'k-button-group',
27
+ styles.fillModeClass( fillMode, 'k-button-group' )
28
+ ];
29
+
30
+ let ariaAttr = aria
31
+ ? {}
32
+ : {};
33
+
34
+ return (
35
+ <div className={buttonGroupClasses} {...ariaAttr} {...htmlAttributes}>
36
+ {children}
37
+ </div>
38
+ );
39
+ }
40
+
41
+ ButtonGroupStatic.defaultProps = {
42
+ ...globalDefaultProps,
43
+
44
+ fillMode: null
45
+ };
46
+
47
+ ButtonGroupStatic.propTypes = {
48
+ className: typeof '',
49
+ children: typeof [],
50
+
51
+ fillMode: typeof [ null, 'solid', 'flat', 'outline', 'link' ],
52
+
53
+ aria: typeof false,
54
+
55
+ htmlAttributes: typeof []
56
+ };
57
+
58
+ export { ButtonGroup, ButtonGroupStatic };
@@ -1 +1,2 @@
1
1
  export * from './button.jsx';
2
+ export * from './button-group.jsx';
@@ -25,9 +25,9 @@
25
25
  {inputPrefix && <span class="k-input-prefix">...</span>}
26
26
  <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
27
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>}
28
+ {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
29
+ {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
30
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
31
31
  {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
32
32
  <button type="button" class="k-input-button k-button k-icon-button k-button-{size} k-button-{fillMode} k-button-{fillMode}-base">
33
33
  <span class="k-button-icon k-icon k-i-arrow-s"></span>
@@ -30,9 +30,9 @@
30
30
  {inputPrefix && <span class="k-input-prefix">...</span>}
31
31
  <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
32
32
  {inputPrefix && <span class="k-input-suffix">...</span>}
33
- {showValidationIcon && valid && <span class="k-validation-icon k-icon k-i-check"></span>}
34
- {showValidationIcon && invalid && <span class="k-validation-icon k-icon k-i-warning"></span>}
35
- {showLoadingIcon && loading && <span class="k-icon k-i-loading"></span>}
33
+ {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
34
+ {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
35
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
36
36
  {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
37
37
  {showSpinButton &&
38
38
  <span class="k-input-spinner k-spin-button">
@@ -25,9 +25,9 @@
25
25
  {inputPrefix && <span class="k-input-prefix">...</span>}
26
26
  <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
27
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>}
28
+ {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
29
+ {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
30
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
31
31
  {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
32
32
  <button type="button" class="k-input-button k-button k-icon-button k-button-{size} k-button-{fillMode} k-button-{fillMode}-base">
33
33
  <span class="k-button-icon k-icon k-i-calendar"></span>
@@ -0,0 +1,90 @@
1
+ ```html
2
+ <!-- default rendering -->
3
+ <span class="k-daterangepicker">
4
+ <span class="k-floating-label-container">
5
+ <span class="k-dateinput k-input k-input-md k-rounded-md k-input-solid">
6
+ <input type="text" class="k-input-inner" value="..." placeholder="..." />
7
+ </span>
8
+ <label class="k-label">Start</label>
9
+ </span>
10
+ <span class="k-floating-label-container">
11
+ <span class="k-dateinput k-input k-input-md k-rounded-md k-input-solid">
12
+ <input type="text" class="k-input-inner" value="..." placeholder="..." />
13
+ </span>
14
+ <label class="k-label">End</label>
15
+ </span>
16
+ </span>
17
+
18
+
19
+ <!-- canonical rendering -->
20
+ <span class="
21
+ k-daterangepicker
22
+
23
+ {disabled && 'k-disabled'}
24
+ ">
25
+ <span class="
26
+ k-floating-label-container
27
+
28
+ {valid && 'k-valid'}
29
+ {invalid && 'k-invalid'}
30
+ {disabled && 'k-disabled'}
31
+ ">
32
+ <span class="
33
+ k-dateinput
34
+ k-input
35
+ k-input-{size}
36
+ k-rounded-{rounded}
37
+ k-input-{fillMode}
38
+
39
+ {valid && 'k-valid'}
40
+ {invalid && 'k-invalid'}
41
+ {loading && 'k-loading'}
42
+ {required && 'k-required'}
43
+ {disabled && 'k-disabled'}
44
+ ">
45
+ {showInputIcon && inputIconName !== '' && <span class="k-input-icon k-i-icon k-i-{inputIconName}"></span>}
46
+ {inputPrefix && <span class="k-input-prefix">...</span>}
47
+ <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
48
+ {inputPrefix && <span class="k-input-suffix">...</span>}
49
+ {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
50
+ {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
51
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
52
+ {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
53
+ </span>
54
+ <label class="k-label">Start</label>
55
+ </span>
56
+
57
+ <span class="
58
+ k-floating-label-container
59
+
60
+ {valid && 'k-valid'}
61
+ {invalid && 'k-invalid'}
62
+ {disabled && 'k-disabled'}
63
+ ">
64
+ <span class="
65
+ k-dateinput
66
+ k-input
67
+ k-input-{size}
68
+ k-rounded-{rounded}
69
+ k-input-{fillMode}
70
+
71
+ {valid && 'k-valid'}
72
+ {invalid && 'k-invalid'}
73
+ {loading && 'k-loading'}
74
+ {required && 'k-required'}
75
+ {disabled && 'k-disabled'}
76
+ ">
77
+ {showInputIcon && inputIconName !== '' && <span class="k-input-icon k-i-icon k-i-{inputIconName}"></span>}
78
+ {inputPrefix && <span class="k-input-prefix">...</span>}
79
+ <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
80
+ {inputPrefix && <span class="k-input-suffix">...</span>}
81
+ {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
82
+ {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
83
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
84
+ {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
85
+ </span>
86
+ <label class="k-label">End</label>
87
+ </span>
88
+
89
+ </span>
90
+ ```
@@ -0,0 +1,79 @@
1
+ import { globalDefaultProps, Component } from '../component/index';
2
+ import { FloatingLabelStatic } from '../input/index';
3
+ import { DateInputStatic } from '../dateinput/index';
4
+
5
+ class DateRangePicker extends Component {
6
+ render() {
7
+ return <DateRangePickerStatic {...this.props} />;
8
+ }
9
+ }
10
+
11
+ function DateRangePickerStatic(props) {
12
+
13
+ const {
14
+ className: ownClassName,
15
+
16
+ size,
17
+ rounded,
18
+ fillMode,
19
+
20
+ disabled,
21
+
22
+ aria,
23
+
24
+ ...htmlAttributes
25
+ } = props;
26
+
27
+
28
+ const dateInputAttributes = {
29
+ size,
30
+ rounded,
31
+ fillMode
32
+ };
33
+
34
+
35
+ let DateRangePickerClasses = [
36
+ ownClassName,
37
+ 'k-daterangepicker',
38
+ {'k-disabled': disabled === true}
39
+ ];
40
+
41
+ let ariaAttr = aria
42
+ ? {}
43
+ : {};
44
+
45
+ return (
46
+ <span className={DateRangePickerClasses} {...ariaAttr} {...htmlAttributes}>
47
+ <FloatingLabelStatic label="Start">
48
+ <DateInputStatic showSpinButton="false" {...dateInputAttributes}/>
49
+ </FloatingLabelStatic>
50
+ <FloatingLabelStatic label="End">
51
+ <DateInputStatic showSpinButton="false" {...dateInputAttributes}/>
52
+ </FloatingLabelStatic>
53
+ </span>
54
+ );
55
+ }
56
+
57
+ DateRangePickerStatic.defaultProps = {
58
+ ...globalDefaultProps,
59
+
60
+ size: 'medium',
61
+ rounded: 'medium',
62
+ fillMode: 'solid'
63
+ };
64
+
65
+ DateRangePickerStatic.propTypes = {
66
+ className: typeof '',
67
+
68
+ size: typeof [ null, 'small', 'medium', 'large' ],
69
+ rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
70
+ fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
71
+
72
+ disabled: typeof false,
73
+
74
+ aria: typeof false,
75
+
76
+ htmlAttributes: typeof []
77
+ };
78
+
79
+ export { DateRangePicker, DateRangePickerStatic };
@@ -0,0 +1 @@
1
+ export * from './daterangepicker.jsx';
@@ -25,9 +25,9 @@
25
25
  {inputPrefix && <span class="k-input-prefix">...</span>}
26
26
  <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
27
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>}
28
+ {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
29
+ {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
30
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
31
31
  {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
32
32
  <button type="button" class="k-input-button k-button k-icon-button k-button-{size} k-button-{fillMode} k-button-{fillMode}-base">
33
33
  <span class="k-button-icon k-icon k-i-calendar"></span>
@@ -0,0 +1,36 @@
1
+ ```html
2
+ <!-- default rendering -->
3
+ <span class="k-dropdowngrid k-input k-input-md k-rounded-md k-input-solid">
4
+ <input type="text" class="k-input-inner" value="..." placeholder="..." />
5
+ <button type="button" class="k-input-button k-button k-icon-button k-button-md k-button-solid k-button-solid-base">
6
+ <span class="k-button-icon k-icon k-i-arrow-s"></span>
7
+ </button>
8
+ </span>
9
+
10
+ <!-- canonical rendering -->
11
+ <span class="
12
+ k-dropdowngrid
13
+ k-input
14
+ k-input-{size}
15
+ k-rounded-{rounded}
16
+ k-input-{fillMode}
17
+
18
+ {valid && 'k-valid'}
19
+ {invalid && 'k-invalid'}
20
+ {loading && 'k-loading'}
21
+ {required && 'k-required'}
22
+ {disabled && 'k-disabled'}
23
+ ">
24
+ {showInputIcon && inputIconName !== '' && <span class="k-input-icon k-i-icon k-i-{inputIconName}"></span>}
25
+ {inputPrefix && <span class="k-input-prefix">...</span>}
26
+ <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
27
+ {inputPrefix && <span class="k-input-suffix">...</span>}
28
+ {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
29
+ {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
30
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
31
+ {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
32
+ <button type="button" class="k-input-button k-button k-icon-button k-button-{size} k-button-{fillMode} k-button-{fillMode}-base">
33
+ <span class="k-button-icon k-icon k-i-arrow-s"></span>
34
+ </button>
35
+ </span>
36
+ ```
@@ -0,0 +1,112 @@
1
+ import { globalDefaultProps } from '../component/index';
2
+ import { Combobox, ComboboxStatic } from '../combobox/index';
3
+
4
+ class DropdownGrid extends Combobox {
5
+ render() {
6
+ return <DropdownGridStatic {...this.props} />;
7
+ }
8
+ }
9
+
10
+ function DropdownGridStatic(props) {
11
+
12
+ const {
13
+ className: ownClassName,
14
+
15
+ type,
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
38
+ } = props;
39
+
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
+ let dropdownGridClasses = [
51
+ ownClassName,
52
+ 'k-dropdowngrid'
53
+ ];
54
+
55
+ return (
56
+ <ComboboxStatic className={dropdownGridClasses} {...props}></ComboboxStatic>
57
+ );
58
+ }
59
+
60
+ DropdownGridStatic.defaultProps = {
61
+ ...globalDefaultProps,
62
+
63
+ type: 'text',
64
+ value: '',
65
+ placeholder: '',
66
+ autocomplete: 'off',
67
+
68
+ showValidationIcon: true,
69
+ showLoadingIcon: true,
70
+ showClearButton: true,
71
+
72
+ size: 'medium',
73
+ rounded: 'medium',
74
+
75
+ fillMode: 'solid'
76
+ };
77
+
78
+ DropdownGridStatic.propTypes = {
79
+ children: typeof [],
80
+ className: typeof '',
81
+
82
+ type: typeof [ 'text' ],
83
+ value: typeof '',
84
+ placeholder: typeof '',
85
+ autocomplete: typeof [ 'on', 'off' ],
86
+
87
+ showValidationIcon: typeof true,
88
+ showLoadingIcon: typeof true,
89
+ showClearButton: typeof true,
90
+
91
+ prefix: typeof '#fragment',
92
+ suffix: typeof '#fragment',
93
+
94
+ size: typeof [ null, 'small', 'medium', 'large' ],
95
+ rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
96
+
97
+ fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
98
+
99
+ hover: typeof false,
100
+ focus: typeof false,
101
+ valid: typeof false,
102
+ invalid: typeof false,
103
+ required: typeof false,
104
+ disabled: typeof false,
105
+
106
+ aria: typeof false,
107
+ legacy: typeof false,
108
+
109
+ htmlAttributes: typeof []
110
+ };
111
+
112
+ export { DropdownGrid, DropdownGridStatic };
@@ -0,0 +1 @@
1
+ export * from './dropdowngrid.jsx';
@@ -28,9 +28,9 @@
28
28
  <span class="k-input-value-text">{valueText}<span>
29
29
  </span>
30
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>}
31
+ {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
32
+ {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
33
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
34
34
  {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
35
35
  <button type="button" class="k-input-button k-button k-icon-button k-button-{size} k-button-{fillMode} k-button-{fillMode}-base">
36
36
  <span class="k-button-icon k-icon k-i-arrow-s"></span>
package/src/index.js CHANGED
@@ -57,7 +57,8 @@ export * from './dateinput/index';
57
57
  export * from './datepicker/index';
58
58
  export * from './timepicker/index';
59
59
  export * from './datetimepicker/index';
60
- // export * from './dropdowngrid/index';
60
+ export * from './daterangepicker/index';
61
+ export * from './dropdowngrid/index';
61
62
  export * from './dropdownlist/index';
62
63
  // export * from './dropdowntree/index';
63
64
  export * from './maskedtextbox/index';
@@ -0,0 +1,78 @@
1
+ import { Component, globalDefaultProps } from '../component/index';
2
+
3
+ class FloatingLabel extends Component {
4
+ render() {
5
+ return <FloatingLabelStatic {...this.props} />;
6
+ }
7
+ }
8
+
9
+ function FloatingLabelStatic(props) {
10
+
11
+ const {
12
+ className: ownClassName,
13
+
14
+ children,
15
+
16
+ label,
17
+
18
+ focus,
19
+ valid,
20
+ invalid,
21
+ empty,
22
+ disabled,
23
+
24
+ aria,
25
+
26
+ ...htmlAttributes
27
+ } = props;
28
+
29
+
30
+ htmlAttributes.empty = empty;
31
+
32
+
33
+ let ariaAttr = aria
34
+ ? {}
35
+ : {};
36
+
37
+ let floatingLabelClasses = [
38
+ ownClassName,
39
+ 'k-floating-label-container',
40
+ {
41
+ 'k-focus': focus === true,
42
+ 'k-valid': valid === true,
43
+ 'k-invalid': invalid === true,
44
+ 'k-empty': empty === true,
45
+ 'k-disabled': disabled === true,
46
+ }
47
+ ];
48
+
49
+ return (
50
+ <span className={floatingLabelClasses} {...ariaAttr} {...htmlAttributes} >
51
+ <>{children}</>
52
+ { label && <label className="k-label">{label}</label> }
53
+ </span>
54
+ );
55
+ }
56
+
57
+ FloatingLabelStatic.defaultProps = {
58
+ ...globalDefaultProps,
59
+ };
60
+
61
+ FloatingLabelStatic.propTypes = {
62
+ className: typeof '',
63
+ children: typeof [],
64
+
65
+ label: typeof '',
66
+
67
+ focus: typeof false,
68
+ valid: typeof false,
69
+ invalid: typeof false,
70
+ empty: typeof false,
71
+ disabled: typeof false,
72
+
73
+ aria: typeof false,
74
+
75
+ htmlAttributes: typeof []
76
+ };
77
+
78
+ export { FloatingLabel, FloatingLabelStatic };
@@ -6,3 +6,4 @@ export * from './input-suffix.jsx';
6
6
  export * from './input-validation-icon.jsx';
7
7
  export * from './input-loading-icon.jsx';
8
8
  export * from './input-clear-value.jsx';
9
+ export * from './floating-label.jsx';
@@ -22,9 +22,9 @@
22
22
  {inputPrefix && <span class="k-input-prefix">...</span>}
23
23
  <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
24
24
  {inputPrefix && <span class="k-input-suffix">...</span>}
25
- {showValidationIcon && valid && <span class="k-validation-icon k-icon k-i-check"></span>}
26
- {showValidationIcon && invalid && <span class="k-validation-icon k-icon k-i-warning"></span>}
27
- {showLoadingIcon && loading && <span class="k-icon k-i-loading"></span>}
25
+ {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
26
+ {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
27
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
28
28
  {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
29
29
  </span>
30
30
  ```
@@ -27,7 +27,7 @@
27
27
  {inputPrefix && <span class="k-input-suffix">...</span>}
28
28
  {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
29
29
  {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
30
- {showLoadingIcon && loading && <span class="k-icon k-i-loading"></span>}
30
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
31
31
  {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
32
32
  {showArrowButton &&
33
33
  <button type="button" class="k-input-button k-button k-icon-button k-button-{size} k-button-{fillMode} k-button-{fillMode}-base">
@@ -30,9 +30,9 @@
30
30
  {inputPrefix && <span class="k-input-prefix">...</span>}
31
31
  <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
32
32
  {inputPrefix && <span class="k-input-suffix">...</span>}
33
- {showValidationIcon && valid && <span class="k-validation-icon k-icon k-i-check"></span>}
34
- {showValidationIcon && invalid && <span class="k-validation-icon k-icon k-i-warning"></span>}
35
- {showLoadingIcon && loading && <span class="k-icon k-i-loading"></span>}
33
+ {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
34
+ {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
35
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
36
36
  {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
37
37
  {showSpinButton &&
38
38
  <span class="k-input-spinner k-spin-button">
@@ -1,13 +1,12 @@
1
1
  ```html
2
2
  <!-- default rendering -->
3
- <input type="radio" class="k-radio k-radio-md k-rounded-md" />
3
+ <input type="radio" class="k-radio k-radio-md" />
4
4
 
5
5
  <!-- canonical rendering -->
6
6
  <input type="radio"
7
7
  class="
8
8
  k-radio
9
9
  k-radio-{size}
10
- k-rounded-{rounded}
11
10
 
12
11
  {checked && 'k-checked'}
13
12
 
@@ -22,9 +22,9 @@
22
22
  {inputPrefix && <span class="k-input-prefix">...</span>}
23
23
  <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
24
24
  {inputPrefix && <span class="k-input-suffix">...</span>}
25
- {showValidationIcon && valid && <span class="k-validation-icon k-icon k-i-check"></span>}
26
- {showValidationIcon && invalid && <span class="k-validation-icon k-icon k-i-warning"></span>}
27
- {showLoadingIcon && loading && <span class="k-icon k-i-loading"></span>}
25
+ {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
26
+ {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
27
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
28
28
  {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
29
29
  </span>
30
30
  ```
@@ -22,9 +22,9 @@
22
22
  {inputPrefix && <span class="k-input-prefix">...</span>}
23
23
  <textarea class="k-input-inner" placeholder="{placeholder}" disabled={disabled}>{value}</textarea>
24
24
  {inputPrefix && <span class="k-input-suffix">...</span>}
25
- {showValidationIcon && valid && <span class="k-validation-icon k-icon k-i-check"></span>}
26
- {showValidationIcon && invalid && <span class="k-validation-icon k-icon k-i-warning"></span>}
27
- {showLoadingIcon && loading && <span class="k-icon k-i-loading"></span>}
25
+ {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
26
+ {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
27
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
28
28
  {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
29
29
  </span>
30
30
  ```
@@ -22,9 +22,9 @@
22
22
  {inputPrefix && <span class="k-input-prefix">...</span>}
23
23
  <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
24
24
  {inputPrefix && <span class="k-input-suffix">...</span>}
25
- {showValidationIcon && valid && <span class="k-validation-icon k-icon k-i-check"></span>}
26
- {showValidationIcon && invalid && <span class="k-validation-icon k-icon k-i-warning"></span>}
27
- {showLoadingIcon && loading && <span class="k-icon k-i-loading"></span>}
25
+ {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
26
+ {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
27
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
28
28
  {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
29
29
  </span>
30
30
  ```
@@ -25,9 +25,9 @@
25
25
  {inputPrefix && <span class="k-input-prefix">...</span>}
26
26
  <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
27
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>}
28
+ {showValidationIcon && valid && <span class="k-input-validation-icon k-icon k-i-check"></span>}
29
+ {showValidationIcon && invalid && <span class="k-input-validation-icon k-icon k-i-warning"></span>}
30
+ {showLoadingIcon && loading && <span class="k-input-loading-icon k-icon k-i-loading"></span>}
31
31
  {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
32
32
  <button type="button" class="k-input-button k-button k-icon-button k-button-{size} k-button-{fillMode} k-button-{fillMode}-base">
33
33
  <span class="k-button-icon k-icon k-i-clock"></span>
@@ -0,0 +1,535 @@
1
+ {
2
+ "autocomplete": {
3
+ "size": {
4
+ "small": "sm",
5
+ "medium": "md",
6
+ "large": "lg"
7
+ },
8
+ "rounded": {
9
+ "small": "sm",
10
+ "medium": "md",
11
+ "large": "lg",
12
+ "full": "full"
13
+ },
14
+ "fillMode": {
15
+ "solid": "solid",
16
+ "flat": "flat",
17
+ "outline": "outline",
18
+ "link": "link"
19
+ }
20
+ },
21
+ "avatar": {
22
+ "size": {
23
+ "small": "sm",
24
+ "medium": "md",
25
+ "large": "lg"
26
+ },
27
+ "rounded": {
28
+ "small": "sm",
29
+ "medium": "md",
30
+ "large": "lg",
31
+ "full": "full"
32
+ },
33
+ "fillMode": {
34
+ "solid": "solid",
35
+ "flat": "flat",
36
+ "outline": "outline",
37
+ "link": "link"
38
+ },
39
+ "themeColor": {
40
+ "base": "base",
41
+ "primary": "primary",
42
+ "secondary": "secondary",
43
+ "tertiary": "tertiary",
44
+ "info": "info",
45
+ "success": "success",
46
+ "warning": "warning",
47
+ "error": "error",
48
+ "dark": "dark",
49
+ "light": "light",
50
+ "inverse": "inverse"
51
+ }
52
+ },
53
+ "button": {
54
+ "size": {
55
+ "small": "sm",
56
+ "medium": "md",
57
+ "large": "lg"
58
+ },
59
+ "rounded": {
60
+ "small": "sm",
61
+ "medium": "md",
62
+ "large": "lg",
63
+ "full": "full"
64
+ },
65
+ "fillMode": {
66
+ "solid": "solid",
67
+ "flat": "flat",
68
+ "outline": "outline",
69
+ "link": "link"
70
+ },
71
+ "shape": {
72
+ "rectangle": "rectangle",
73
+ "square": "square"
74
+ },
75
+ "themeColor": {
76
+ "base": "base",
77
+ "primary": "primary",
78
+ "secondary": "secondary",
79
+ "tertiary": "tertiary",
80
+ "info": "info",
81
+ "success": "success",
82
+ "warning": "warning",
83
+ "error": "error",
84
+ "dark": "dark",
85
+ "light": "light",
86
+ "inverse": "inverse"
87
+ }
88
+ },
89
+ "card": {
90
+ "themeColor": {
91
+ "base": "base",
92
+ "primary": "primary",
93
+ "secondary": "secondary",
94
+ "tertiary": "tertiary",
95
+ "info": "info",
96
+ "success": "success",
97
+ "warning": "warning",
98
+ "error": "error",
99
+ "dark": "dark",
100
+ "light": "light",
101
+ "inverse": "inverse"
102
+ }
103
+ },
104
+ "chip": {
105
+ "size": {
106
+ "small": "sm",
107
+ "medium": "md",
108
+ "large": "lg"
109
+ },
110
+ "rounded": {
111
+ "small": "sm",
112
+ "medium": "md",
113
+ "large": "lg",
114
+ "full": "full"
115
+ },
116
+ "fillMode": {
117
+ "solid": "solid",
118
+ "flat": "flat",
119
+ "outline": "outline",
120
+ "link": "link"
121
+ },
122
+ "themeColor": {
123
+ "base": "base",
124
+ "primary": "primary",
125
+ "secondary": "secondary",
126
+ "tertiary": "tertiary",
127
+ "info": "info",
128
+ "success": "success",
129
+ "warning": "warning",
130
+ "error": "error",
131
+ "dark": "dark",
132
+ "light": "light",
133
+ "inverse": "inverse"
134
+ }
135
+ },
136
+ "chipList": {
137
+ "size": {
138
+ "small": "sm",
139
+ "medium": "md",
140
+ "large": "lg"
141
+ }
142
+ },
143
+ "comboBox": {
144
+ "size": {
145
+ "small": "sm",
146
+ "medium": "md",
147
+ "large": "lg"
148
+ },
149
+ "rounded": {
150
+ "small": "sm",
151
+ "medium": "md",
152
+ "large": "lg",
153
+ "full": "full"
154
+ },
155
+ "fillMode": {
156
+ "solid": "solid",
157
+ "flat": "flat",
158
+ "outline": "outline",
159
+ "link": "link"
160
+ }
161
+ },
162
+ "colorPicker": {
163
+ "size": {
164
+ "small": "sm",
165
+ "medium": "md",
166
+ "large": "lg"
167
+ },
168
+ "rounded": {
169
+ "small": "sm",
170
+ "medium": "md",
171
+ "large": "lg",
172
+ "full": "full"
173
+ },
174
+ "fillMode": {
175
+ "solid": "solid",
176
+ "flat": "flat",
177
+ "outline": "outline",
178
+ "link": "link"
179
+ }
180
+ },
181
+ "checkBox": {
182
+ "size": {
183
+ "small": "sm",
184
+ "medium": "md",
185
+ "large": "lg"
186
+ },
187
+ "rounded": {
188
+ "small": "sm",
189
+ "medium": "md",
190
+ "large": "lg",
191
+ "full": "full"
192
+ }
193
+ },
194
+ "dropDownTree": {
195
+ "size": {
196
+ "small": "sm",
197
+ "medium": "md",
198
+ "large": "lg"
199
+ },
200
+ "rounded": {
201
+ "small": "sm",
202
+ "medium": "md",
203
+ "large": "lg",
204
+ "full": "full"
205
+ },
206
+ "fillMode": {
207
+ "solid": "solid",
208
+ "flat": "flat",
209
+ "outline": "outline",
210
+ "link": "link"
211
+ }
212
+ },
213
+ "dropDownList": {
214
+ "size": {
215
+ "small": "sm",
216
+ "medium": "md",
217
+ "large": "lg"
218
+ },
219
+ "rounded": {
220
+ "small": "sm",
221
+ "medium": "md",
222
+ "large": "lg",
223
+ "full": "full"
224
+ },
225
+ "fillMode": {
226
+ "solid": "solid",
227
+ "flat": "flat",
228
+ "outline": "outline",
229
+ "link": "link"
230
+ }
231
+ },
232
+ "dropDownGrid": {
233
+ "size": {
234
+ "small": "sm",
235
+ "medium": "md",
236
+ "large": "lg"
237
+ },
238
+ "rounded": {
239
+ "small": "sm",
240
+ "medium": "md",
241
+ "large": "lg",
242
+ "full": "full"
243
+ },
244
+ "fillMode": {
245
+ "solid": "solid",
246
+ "flat": "flat",
247
+ "outline": "outline",
248
+ "link": "link"
249
+ }
250
+ },
251
+ "dateInput": {
252
+ "size": {
253
+ "small": "sm",
254
+ "medium": "md",
255
+ "large": "lg"
256
+ },
257
+ "rounded": {
258
+ "small": "sm",
259
+ "medium": "md",
260
+ "large": "lg",
261
+ "full": "full"
262
+ },
263
+ "fillMode": {
264
+ "solid": "solid",
265
+ "flat": "flat",
266
+ "outline": "outline",
267
+ "link": "link"
268
+ }
269
+ },
270
+ "datePicker": {
271
+ "size": {
272
+ "small": "sm",
273
+ "medium": "md",
274
+ "large": "lg"
275
+ },
276
+ "rounded": {
277
+ "small": "sm",
278
+ "medium": "md",
279
+ "large": "lg",
280
+ "full": "full"
281
+ },
282
+ "fillMode": {
283
+ "solid": "solid",
284
+ "flat": "flat",
285
+ "outline": "outline",
286
+ "link": "link"
287
+ }
288
+ },
289
+ "dateTimePicker": {
290
+ "size": {
291
+ "small": "sm",
292
+ "medium": "md",
293
+ "large": "lg"
294
+ },
295
+ "rounded": {
296
+ "small": "sm",
297
+ "medium": "md",
298
+ "large": "lg",
299
+ "full": "full"
300
+ },
301
+ "fillMode": {
302
+ "solid": "solid",
303
+ "flat": "flat",
304
+ "outline": "outline",
305
+ "link": "link"
306
+ }
307
+ },
308
+ "multiselect": {
309
+ "size": {
310
+ "small": "sm",
311
+ "medium": "md",
312
+ "large": "lg"
313
+ },
314
+ "rounded": {
315
+ "small": "sm",
316
+ "medium": "md",
317
+ "large": "lg",
318
+ "full": "full"
319
+ },
320
+ "fillMode": {
321
+ "solid": "solid",
322
+ "flat": "flat",
323
+ "outline": "outline",
324
+ "link": "link"
325
+ }
326
+ },
327
+ "maskedTexbox": {
328
+ "size": {
329
+ "small": "sm",
330
+ "medium": "md",
331
+ "large": "lg"
332
+ },
333
+ "rounded": {
334
+ "small": "sm",
335
+ "medium": "md",
336
+ "large": "lg",
337
+ "full": "full"
338
+ },
339
+ "fillMode": {
340
+ "solid": "solid",
341
+ "flat": "flat",
342
+ "outline": "outline",
343
+ "link": "link"
344
+ }
345
+ },
346
+ "menuButton": {
347
+ "size": {
348
+ "small": "sm",
349
+ "medium": "md",
350
+ "large": "lg"
351
+ },
352
+ "rounded": {
353
+ "small": "sm",
354
+ "medium": "md",
355
+ "large": "lg",
356
+ "full": "full"
357
+ },
358
+ "fillMode": {
359
+ "solid": "solid",
360
+ "flat": "flat",
361
+ "outline": "outline",
362
+ "link": "link"
363
+ },
364
+ "shape": {
365
+ "rectangle": "rectangle",
366
+ "square": "square"
367
+ },
368
+ "themeColor": {
369
+ "base": "base",
370
+ "primary": "primary",
371
+ "secondary": "secondary",
372
+ "tertiary": "tertiary",
373
+ "info": "info",
374
+ "success": "success",
375
+ "warning": "warning",
376
+ "error": "error",
377
+ "dark": "dark",
378
+ "light": "light",
379
+ "inverse": "inverse"
380
+ }
381
+ },
382
+ "numericTextBox": {
383
+ "size": {
384
+ "small": "sm",
385
+ "medium": "md",
386
+ "large": "lg"
387
+ },
388
+ "rounded": {
389
+ "small": "sm",
390
+ "medium": "md",
391
+ "large": "lg",
392
+ "full": "full"
393
+ },
394
+ "fillMode": {
395
+ "solid": "solid",
396
+ "flat": "flat",
397
+ "outline": "outline",
398
+ "link": "link"
399
+ }
400
+ },
401
+ "radioButton": {
402
+ "size": {
403
+ "small": "sm",
404
+ "medium": "md",
405
+ "large": "lg"
406
+ }
407
+ },
408
+ "switch": {
409
+ "size": {
410
+ "small": "sm",
411
+ "medium": "md",
412
+ "large": "lg"
413
+ },
414
+ "rounded": {
415
+ "small": "sm",
416
+ "medium": "md",
417
+ "large": "lg",
418
+ "full": "full"
419
+ },
420
+ "fillMode": {
421
+ "solid": "solid",
422
+ "flat": "flat",
423
+ "outline": "outline",
424
+ "link": "link"
425
+ },
426
+ "trackRounded": {
427
+ "small": "sm",
428
+ "medium": "md",
429
+ "large": "lg",
430
+ "full": "full"
431
+ },
432
+ "thumbRounded": {
433
+ "small": "sm",
434
+ "medium": "md",
435
+ "large": "lg",
436
+ "full": "full"
437
+ }
438
+ },
439
+ "splitButton": {
440
+ "size": {
441
+ "small": "sm",
442
+ "medium": "md",
443
+ "large": "lg"
444
+ },
445
+ "rounded": {
446
+ "small": "sm",
447
+ "medium": "md",
448
+ "large": "lg",
449
+ "full": "full"
450
+ },
451
+ "fillMode": {
452
+ "solid": "solid",
453
+ "flat": "flat",
454
+ "outline": "outline",
455
+ "link": "link"
456
+ },
457
+ "themeColor": {
458
+ "base": "base",
459
+ "primary": "primary",
460
+ "secondary": "secondary",
461
+ "tertiary": "tertiary",
462
+ "info": "info",
463
+ "success": "success",
464
+ "warning": "warning",
465
+ "error": "error",
466
+ "dark": "dark",
467
+ "light": "light",
468
+ "inverse": "inverse"
469
+ }
470
+ },
471
+ "textArea": {
472
+ "size": {
473
+ "small": "sm",
474
+ "medium": "md",
475
+ "large": "lg"
476
+ },
477
+ "rounded": {
478
+ "small": "sm",
479
+ "medium": "md",
480
+ "large": "lg",
481
+ "full": "full"
482
+ },
483
+ "fillMode": {
484
+ "solid": "solid",
485
+ "flat": "flat",
486
+ "outline": "outline",
487
+ "link": "link"
488
+ }
489
+ },
490
+ "textBox": {
491
+ "size": {
492
+ "small": "sm",
493
+ "medium": "md",
494
+ "large": "lg"
495
+ },
496
+ "rounded": {
497
+ "small": "sm",
498
+ "medium": "md",
499
+ "large": "lg",
500
+ "full": "full"
501
+ },
502
+ "fillMode": {
503
+ "solid": "solid",
504
+ "flat": "flat",
505
+ "outline": "outline",
506
+ "link": "link"
507
+ }
508
+ },
509
+ "timePicker": {
510
+ "size": {
511
+ "small": "sm",
512
+ "medium": "md",
513
+ "large": "lg"
514
+ },
515
+ "rounded": {
516
+ "small": "sm",
517
+ "medium": "md",
518
+ "large": "lg",
519
+ "full": "full"
520
+ },
521
+ "fillMode": {
522
+ "solid": "solid",
523
+ "flat": "flat",
524
+ "outline": "outline",
525
+ "link": "link"
526
+ }
527
+ },
528
+ "treeView": {
529
+ "size": {
530
+ "small": "sm",
531
+ "medium": "md",
532
+ "large": "lg"
533
+ }
534
+ }
535
+ }