@progress/kendo-themes-html 4.42.1-dev.2 → 4.43.1-dev.0

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.
Files changed (43) hide show
  1. package/lib/jsx-runtime.js +19 -2
  2. package/package.json +2 -2
  3. package/src/autocomplete/README.md +15 -9
  4. package/src/autocomplete/autocomplete.jsx +3 -3
  5. package/src/avatar/README.md +21 -0
  6. package/src/avatar/avatar.jsx +116 -0
  7. package/src/avatar/index.js +1 -0
  8. package/src/button/README.md +8 -8
  9. package/src/button/button.jsx +5 -5
  10. package/src/checkbox/README.md +8 -8
  11. package/src/checkbox/checkbox.jsx +2 -2
  12. package/src/colorpicker/color-preview.jsx +5 -1
  13. package/src/colorpicker/colorpicker.jsx +7 -6
  14. package/src/combobox/README.md +15 -9
  15. package/src/combobox/combobox.jsx +4 -4
  16. package/src/dateinput/README.md +15 -9
  17. package/src/dateinput/dateinput.jsx +4 -4
  18. package/src/datepicker/README.md +15 -9
  19. package/src/datepicker/datepicker.jsx +4 -4
  20. package/src/datetimepicker/README.md +15 -9
  21. package/src/datetimepicker/datetimepicker.jsx +4 -4
  22. package/src/dropdownlist/README.md +23 -14
  23. package/src/dropdownlist/dropdownlist.jsx +8 -5
  24. package/src/index.js +1 -0
  25. package/src/input/input.jsx +3 -3
  26. package/src/input/picker.jsx +3 -3
  27. package/src/maskedtextbox/README.md +15 -9
  28. package/src/maskedtextbox/maskedtextbox.jsx +3 -3
  29. package/src/numerictextbox/README.md +15 -9
  30. package/src/numerictextbox/numerictextbox.jsx +4 -4
  31. package/src/radio/README.md +7 -7
  32. package/src/radio/radio.jsx +1 -1
  33. package/src/searchbox/README.md +16 -12
  34. package/src/searchbox/searchbox.jsx +3 -3
  35. package/src/spinbutton/spinbutton.jsx +8 -2
  36. package/src/switch/switch.jsx +3 -3
  37. package/src/textarea/README.md +17 -11
  38. package/src/textarea/textarea.jsx +3 -3
  39. package/src/textbox/README.md +15 -9
  40. package/src/textbox/textbox.jsx +3 -3
  41. package/src/timepicker/README.md +15 -9
  42. package/src/timepicker/timepicker.jsx +4 -4
  43. package/utils/styles.js +14 -5
@@ -66,6 +66,16 @@ const booleanAttr = new Set([
66
66
  'aria'
67
67
  ]);
68
68
 
69
+ const nullAttr = new Set([
70
+ 'size',
71
+ 'rounded',
72
+ 'fillMode',
73
+ 'themeColor',
74
+
75
+ 'trackRounded',
76
+ 'thumbRounded'
77
+ ]);
78
+
69
79
  const skipAttr = new Set([
70
80
  'is',
71
81
  'aria',
@@ -144,6 +154,10 @@ function attrToProps( attributes ) {
144
154
  attrName = attrMap[attrName];
145
155
  }
146
156
 
157
+ // Set props as is
158
+ props[ attrName ] = attrValue;
159
+
160
+ // Ensure boolean value
147
161
  if (booleanAttr.has(attrName) && typeof attrValue === 'string') {
148
162
  switch (attrValue) {
149
163
  case '':
@@ -154,8 +168,11 @@ function attrToProps( attributes ) {
154
168
  props[ attrName ] = false;
155
169
  break;
156
170
  }
157
- } else {
158
- props[ attrName ] = attrValue;
171
+ }
172
+
173
+ // Ensure null value
174
+ if (nullAttr.has(attrName) && attrValue === 'null') {
175
+ props[ attrName ] = null;
159
176
  }
160
177
  });
161
178
 
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": "4.42.1-dev.2",
4
+ "version": "4.43.1-dev.0",
5
5
  "author": "Progress",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
@@ -42,5 +42,5 @@
42
42
  "@rollup/plugin-node-resolve": "^13.0.6",
43
43
  "rollup": "^2.59.0"
44
44
  },
45
- "gitHead": "7594d845144b5289cc2484b488f2bc9418387f12"
45
+ "gitHead": "e315a28dad00d287edbdf58668becda3d815504f"
46
46
  }
@@ -8,17 +8,23 @@
8
8
  <span class="
9
9
  k-autocomplete
10
10
  k-input
11
- k-input-${size}
12
- k-rounded-${rounded}
13
- k-input-${fillMode}
11
+ k-input-{size}
12
+ k-rounded-{rounded}
13
+ k-input-{fillMode}
14
14
 
15
- ${valid && 'k-valid'}
16
- ${invalid && 'k-invalid'}
17
- ${required && 'k-required'}
18
- ${disabled && 'k-disabled'}
15
+ {valid && 'k-valid'}
16
+ {invalid && 'k-invalid'}
17
+ {loading && 'k-loading'}
18
+ {required && 'k-required'}
19
+ {disabled && 'k-disabled'}
19
20
  ">
21
+ {showInputIcon && inputIconName !== '' && <span class="k-input-icon k-i-icon k-i-{inputIconName}"></span>}
22
+ {inputPrefix && <span class="k-input-prefix">...</span>}
20
23
  <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
21
- {valid && <span class="k-input-icon k-icon k-i-check"></span>}
22
- {invalid && <span class="k-input-icon k-icon k-i-check"></span>}
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>}
28
+ {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
23
29
  </span>
24
30
  ```
@@ -138,10 +138,10 @@ AutocompleteStatic.propTypes = {
138
138
  prefix: typeof '#fragment',
139
139
  suffix: typeof '#fragment',
140
140
 
141
- size: typeof [ 'none', 'small', 'medium', 'large' ],
142
- rounded: typeof [ 'none', 'small', 'medium', 'large', 'pill' ],
141
+ size: typeof [ null, 'small', 'medium', 'large' ],
142
+ rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
143
143
 
144
- fillMode: typeof [ 'none', 'solid', 'flat', 'outline' ],
144
+ fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
145
145
 
146
146
  hover: typeof false,
147
147
  focus: typeof false,
@@ -0,0 +1,21 @@
1
+ ```html
2
+ <!-- default rendering -->
3
+ <div class="k-avatar k-avatar-md k-rounded-circle k-avatar-solid k-avatar-solid-primary">
4
+ <span class="k-avatar-image">
5
+ <img src="../../assets/avatar.jpg" class="">
6
+ </span>
7
+ </div>
8
+
9
+ <!-- canonical rendering -->
10
+ <div class="
11
+ k-avatar
12
+ k-avatar-{size}
13
+ k-rounded-{rounded}
14
+ k-avatar-{fillMode}
15
+ k-avatar-{fillMode}-{themeColor}
16
+ ">
17
+ <span class="k-avatar-{type}">
18
+ {content}
19
+ </span>
20
+ </div>
21
+ ```
@@ -0,0 +1,116 @@
1
+ import * as styles from '../../utils/styles';
2
+ import { Component, globalDefaultProps } from '../component';
3
+
4
+ class Avatar extends Component {
5
+ render() {
6
+ return <AvatarStatic {...this.props} />;
7
+ }
8
+ }
9
+
10
+ function AvatarStatic(props) {
11
+ const {
12
+ className: ownClassName,
13
+
14
+ children,
15
+
16
+ type,
17
+
18
+ size,
19
+ shape,
20
+ rounded,
21
+ bordered,
22
+
23
+ fillMode,
24
+ themeColor,
25
+
26
+ aria,
27
+ legacy,
28
+
29
+ ...htmlAttributes
30
+ } = props;
31
+
32
+ let avatarClasses = [
33
+ ownClassName,
34
+ 'k-avatar',
35
+ styles.sizeClass( size, 'k-avatar' ),
36
+ styles.roundedClass( rounded ),
37
+ styles.fillModeClass( fillMode, 'k-avatar' ),
38
+ styles.shapeClass( shape, 'k-avatar' ),
39
+ styles.themeColorClass( fillMode, themeColor, 'k-avatar' ),
40
+ styles.borderedClass( bordered, 'k-avatar' ),
41
+ ];
42
+
43
+ let legacyClasses = [
44
+ ownClassName,
45
+ 'k-avatar',
46
+ `k-avatar-${themeColor}`,
47
+ {
48
+ 'k-avatar-circle': rounded === 'circle',
49
+ 'k-avatar-rounded': rounded !== 'circle' && rounded !== null
50
+ },
51
+ styles.sizeClass( size, 'k-avatar' ),
52
+ styles.fillModeClass( fillMode, 'k-avatar' ),
53
+ styles.borderedClass( bordered, 'k-avatar' ),
54
+ ];
55
+
56
+ let ariaAttr = aria
57
+ ? {}
58
+ : {};
59
+
60
+ if (legacy) {
61
+ return (
62
+ <span className={legacyClasses} {...ariaAttr} {...htmlAttributes}>
63
+ <span className={`k-avatar-${type}`}>
64
+ {children}
65
+ </span>
66
+ </span>
67
+ );
68
+ }
69
+
70
+ return (
71
+ <span className={avatarClasses} {...ariaAttr} {...htmlAttributes}>
72
+ <span className={`k-avatar-${type}`}>
73
+ {children}
74
+ </span>
75
+ </span>
76
+ );
77
+ }
78
+
79
+ AvatarStatic.defaultProps = {
80
+ ...globalDefaultProps,
81
+
82
+ className: '',
83
+ children: [],
84
+
85
+ type: '',
86
+
87
+ size: 'medium',
88
+ shape: 'square',
89
+ rounded: 'circle',
90
+ bordered: false,
91
+
92
+ fillMode: 'solid',
93
+ themeColor: 'primary'
94
+ };
95
+
96
+ AvatarStatic.propTypes = {
97
+ className: typeof '',
98
+ children: typeof [],
99
+
100
+ type: typeof '',
101
+
102
+ size: typeof [ null, 'small', 'medium', 'large', 'circle' ],
103
+ shape: typeof [ null, 'square', 'circle', 'rounded' ],
104
+ rounded: typeof [ null, '0', 'small', 'medium', 'large' ],
105
+ bordered: typeof false,
106
+
107
+ fillMode: typeof [ null, 'solid', 'outline' ],
108
+ themeColor: typeof [ null, 'primary' ],
109
+
110
+ aria: typeof false,
111
+ legacy: typeof false,
112
+
113
+ htmlAttributes: typeof []
114
+ };
115
+
116
+ export { Avatar, AvatarStatic };
@@ -0,0 +1 @@
1
+ export * from './avatar.jsx';
@@ -7,16 +7,16 @@
7
7
  <!-- canonical rendering -->
8
8
  <button class="
9
9
  k-button
10
- ${text === '' && icon !== '' && 'k-icon-button'}
11
- k-button-${size}
12
- k-button-${shape}
13
- k-rounded-${rounded}
14
- k-button-${fillMode}
15
- k-button-${fillMode}-${themeColor}
10
+ {text === '' && iconName !== '' && 'k-icon-button'}
11
+ k-button-{size}
12
+ k-button-{shape}
13
+ k-rounded-{rounded}
14
+ k-button-{fillMode}
15
+ k-button-{fillMode}-{themeColor}
16
16
 
17
- ${disabled && 'k-disabled'}
17
+ {disabled && 'k-disabled'}
18
18
  " type={type} disabled={disabled}>
19
- {icon !== '' && <span class="k-button-icon k-icon k-i-${icon}"></span>}
19
+ {iconName !== '' && <span class="k-button-icon k-icon k-i-{iconName}"></span>}
20
20
  {text !== '' && <span class="k-button-text">Button</span>}
21
21
  </button>
22
22
  ```
@@ -124,12 +124,12 @@ ButtonStatic.propTypes = {
124
124
 
125
125
  type: typeof [ 'button', 'submit', 'reset' ],
126
126
 
127
- size: typeof [ 'none', 'small', 'medium', 'large' ],
128
- rounded: typeof [ 'none', '0', 'small', 'medium', 'large', 'pill', 'circle' ],
129
- shape: typeof [ 'none', 'rectangle', 'square' ],
127
+ size: typeof [ null, 'small', 'medium', 'large' ],
128
+ rounded: typeof [ null, '0', 'small', 'medium', 'large', 'pill', 'circle' ],
129
+ shape: typeof [ null, 'rectangle', 'square' ],
130
130
 
131
- fillMode: typeof [ 'none', 'solid', 'flat', 'outline', 'link' ],
132
- themeColor: typeof [ 'none', 'surface', 'base', 'primary' ],
131
+ fillMode: typeof [ null, 'solid', 'flat', 'outline', 'link' ],
132
+ themeColor: typeof [ null, 'surface', 'base', 'primary' ],
133
133
 
134
134
  hover: typeof false,
135
135
  focus: typeof false,
@@ -6,16 +6,16 @@
6
6
  <input type="checkbox"
7
7
  class="
8
8
  k-checkbox
9
- k-checkbox-${size}
10
- k-rounded-${rounded}
9
+ k-checkbox-{size}
10
+ k-rounded-{rounded}
11
11
 
12
- ${checked && 'k-checked'}
13
- ${indeterminate && 'k-indeterminate'}
12
+ {checked && 'k-checked'}
13
+ {indeterminate && 'k-indeterminate'}
14
14
 
15
- ${valid && 'k-valid'}
16
- ${invalid && 'k-invalid'}
17
- ${required && 'k-required'}
18
- ${disabled && 'k-disabled'}
15
+ {valid && 'k-valid'}
16
+ {invalid && 'k-invalid'}
17
+ {required && 'k-required'}
18
+ {disabled && 'k-disabled'}
19
19
  "
20
20
  disabled={disabled}
21
21
  />
@@ -103,8 +103,8 @@ CheckboxStatic.propTypes = {
103
103
  checked: typeof false,
104
104
  indeterminate: typeof false,
105
105
 
106
- size: typeof [ 'none', 'small', 'medium', 'large' ],
107
- rounded: typeof [ 'none', 'small', 'medium', 'large' ],
106
+ size: typeof [ null, 'small', 'medium', 'large' ],
107
+ rounded: typeof [ null, 'small', 'medium', 'large' ],
108
108
 
109
109
  hover: typeof false,
110
110
  focus: typeof false,
@@ -29,6 +29,10 @@ function ColorPreviewStatic(props) {
29
29
  }
30
30
  ];
31
31
 
32
+ let styles = {
33
+ 'background-color': color
34
+ };
35
+
32
36
  let ariaAttr = aria
33
37
  ? {}
34
38
  : {};
@@ -64,7 +68,7 @@ function ColorPreviewStatic(props) {
64
68
  return (
65
69
  <span className={colorPreviewClasses} {...ariaAttr} {...htmlAttributes}>
66
70
  {iconName && <IconStatic name={iconName} className="k-color-preview-icon" />}
67
- <span className="k-color-preview-mask"></span>
71
+ <span className="k-color-preview-mask" style={styles}></span>
68
72
  </span>
69
73
  );
70
74
  }
@@ -52,7 +52,8 @@ function ColorpickerStatic(props) {
52
52
 
53
53
  let colorpickerClasses = [
54
54
  ownClassName,
55
- 'k-colorpicker'
55
+ 'k-colorpicker',
56
+ 'k-icon-picker'
56
57
  ];
57
58
 
58
59
  let ariaAttr = aria
@@ -92,9 +93,9 @@ function ColorpickerStatic(props) {
92
93
  return (
93
94
  <PickerStatic className={colorpickerClasses} {...ariaAttr} {...htmlAttributes}>
94
95
  {prefix}
95
- <InputInnerSpanStatic showValue={false} valueIcon={<ColorPreviewStatic className="k-icon k-value-icon" color={value} iconName={iconName} />} />
96
+ <InputInnerSpanStatic showValue={false} valueIcon={<ColorPreviewStatic className="k-value-icon" color={value} iconName={iconName} />} />
96
97
  {suffix}
97
- <ButtonStatic className="k-input-button" icon="arrow-s" rounded="none" size={size} fillMode={fillMode}></ButtonStatic>
98
+ <ButtonStatic className="k-input-button" icon="arrow-s" shape={null} rounded={null} size={size} fillMode={fillMode}></ButtonStatic>
98
99
  </PickerStatic>
99
100
  );
100
101
  }
@@ -131,10 +132,10 @@ ColorpickerStatic.propTypes = {
131
132
  prefix: typeof '#fragment',
132
133
  suffix: typeof '#fragment',
133
134
 
134
- size: typeof [ 'none', 'small', 'medium', 'large' ],
135
- rounded: typeof [ 'none', 'small', 'medium', 'large', 'pill' ],
135
+ size: typeof [ null, 'small', 'medium', 'large' ],
136
+ rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
136
137
 
137
- fillMode: typeof [ 'none', 'solid', 'flat', 'outline' ],
138
+ fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
138
139
 
139
140
  hover: typeof false,
140
141
  focus: typeof false,
@@ -11,18 +11,24 @@
11
11
  <span class="
12
12
  k-combobox
13
13
  k-input
14
- k-input-${size}
15
- k-rounded-${rounded}
16
- k-input-${fillMode}
14
+ k-input-{size}
15
+ k-rounded-{rounded}
16
+ k-input-{fillMode}
17
17
 
18
- ${valid && 'k-valid'}
19
- ${invalid && 'k-invalid'}
20
- ${required && 'k-required'}
21
- ${disabled && 'k-disabled'}
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
- {valid && <span class="k-input-icon k-icon k-i-check"></span>}
25
- {invalid && <span class="k-input-icon k-icon k-i-check"></span>}
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-arrow-s"></span>
28
34
  </button>
@@ -110,7 +110,7 @@ function ComboboxStatic(props) {
110
110
  <InputValidationIconStatic {...props} />
111
111
  <InputLoadingIconStatic {...props} />
112
112
  <InputClearValueStatic {...props} />
113
- <ButtonStatic className="k-input-button" icon="arrow-s" rounded="none" size={size} fillMode={fillMode}></ButtonStatic>
113
+ <ButtonStatic className="k-input-button" icon="arrow-s" shape={null} rounded={null} size={size} fillMode={fillMode}></ButtonStatic>
114
114
  </InputStatic>
115
115
  );
116
116
  }
@@ -149,10 +149,10 @@ ComboboxStatic.propTypes = {
149
149
  prefix: typeof '#fragment',
150
150
  suffix: typeof '#fragment',
151
151
 
152
- size: typeof [ 'none', 'small', 'medium', 'large' ],
153
- rounded: typeof [ 'none', 'small', 'medium', 'large', 'pill' ],
152
+ size: typeof [ null, 'small', 'medium', 'large' ],
153
+ rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
154
154
 
155
- fillMode: typeof [ 'none', 'solid', 'flat', 'outline' ],
155
+ fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
156
156
 
157
157
  hover: typeof false,
158
158
  focus: typeof false,
@@ -16,18 +16,24 @@
16
16
  <span class="
17
17
  k-dateinput
18
18
  k-input
19
- k-input-${size}
20
- k-rounded-${rounded}
21
- k-input-${fillMode}
19
+ k-input-{size}
20
+ k-rounded-{rounded}
21
+ k-input-{fillMode}
22
22
 
23
- ${valid && 'k-valid'}
24
- ${invalid && 'k-invalid'}
25
- ${required && 'k-required'}
26
- ${disabled && 'k-disabled'}
23
+ {valid && 'k-valid'}
24
+ {invalid && 'k-invalid'}
25
+ {loading && 'k-loading'}
26
+ {required && 'k-required'}
27
+ {disabled && 'k-disabled'}
27
28
  ">
29
+ {showInputIcon && inputIconName !== '' && <span class="k-input-icon k-i-icon k-i-{inputIconName}"></span>}
30
+ {inputPrefix && <span class="k-input-prefix">...</span>}
28
31
  <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
29
- {valid && <span class="k-input-icon k-icon k-i-check"></span>}
30
- {invalid && <span class="k-input-icon k-icon k-i-check"></span>}
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>}
36
+ {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
31
37
  {showSpinButton &&
32
38
  <span class="k-input-spinner k-spin-button">
33
39
  <button class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base">
@@ -111,7 +111,7 @@ function DateInputStatic(props) {
111
111
  <InputValidationIconStatic {...props} />
112
112
  <InputLoadingIconStatic {...props} />
113
113
  <InputClearValueStatic {...props} />
114
- {showSpinButton === true && <SpinButtonStatic className="k-input-spinner" />}
114
+ {showSpinButton === true && <SpinButtonStatic className="k-input-spinner" size={size} fillMode={fillMode} />}
115
115
  </InputStatic>
116
116
  );
117
117
  }
@@ -147,10 +147,10 @@ DateInputStatic.propTypes = {
147
147
  showLoadingIcon: typeof true,
148
148
  showClearButton: typeof true,
149
149
 
150
- size: typeof [ 'none', 'small', 'medium', 'large' ],
151
- rounded: typeof [ 'none', 'small', 'medium', 'large', 'pill' ],
150
+ size: typeof [ null, 'small', 'medium', 'large' ],
151
+ rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
152
152
 
153
- fillMode: typeof [ 'none', 'solid', 'flat', 'outline' ],
153
+ fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
154
154
 
155
155
  hover: typeof false,
156
156
  focus: typeof false,
@@ -11,18 +11,24 @@
11
11
  <span class="
12
12
  k-datepicker
13
13
  k-input
14
- k-input-${size}
15
- k-rounded-${rounded}
16
- k-input-${fillMode}
14
+ k-input-{size}
15
+ k-rounded-{rounded}
16
+ k-input-{fillMode}
17
17
 
18
- ${valid && 'k-valid'}
19
- ${invalid && 'k-invalid'}
20
- ${required && 'k-required'}
21
- ${disabled && 'k-disabled'}
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
- {valid && <span class="k-input-icon k-icon k-i-check"></span>}
25
- {invalid && <span class="k-input-icon k-icon k-i-check"></span>}
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>
@@ -110,7 +110,7 @@ function DatePickerStatic(props) {
110
110
  <InputValidationIconStatic {...props} />
111
111
  <InputLoadingIconStatic {...props} />
112
112
  <InputClearValueStatic {...props} />
113
- <ButtonStatic className="k-input-button" icon="calendar" rounded="none" size={size} fillMode={fillMode}></ButtonStatic>
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 @@ DatePickerStatic.propTypes = {
149
149
  prefix: typeof '#fragment',
150
150
  suffix: typeof '#fragment',
151
151
 
152
- size: typeof [ 'none', 'small', 'medium', 'large' ],
153
- rounded: typeof [ 'none', 'small', 'medium', 'large', 'pill' ],
152
+ size: typeof [ null, 'small', 'medium', 'large' ],
153
+ rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
154
154
 
155
- fillMode: typeof [ 'none', 'solid', 'flat', 'outline' ],
155
+ fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
156
156
 
157
157
  hover: typeof false,
158
158
  focus: typeof false,
@@ -11,18 +11,24 @@
11
11
  <span class="
12
12
  k-datetimepicker
13
13
  k-input
14
- k-input-${size}
15
- k-rounded-${rounded}
16
- k-input-${fillMode}
14
+ k-input-{size}
15
+ k-rounded-{rounded}
16
+ k-input-{fillMode}
17
17
 
18
- ${valid && 'k-valid'}
19
- ${invalid && 'k-invalid'}
20
- ${required && 'k-required'}
21
- ${disabled && 'k-disabled'}
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
- {valid && <span class="k-input-icon k-icon k-i-check"></span>}
25
- {invalid && <span class="k-input-icon k-icon k-i-check"></span>}
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>
@@ -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="none" size={size} fillMode={fillMode}></ButtonStatic>
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 [ 'none', 'small', 'medium', 'large' ],
153
- rounded: typeof [ 'none', 'small', 'medium', 'large', 'pill' ],
152
+ size: typeof [ null, 'small', 'medium', 'large' ],
153
+ rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
154
154
 
155
- fillMode: typeof [ 'none', 'solid', 'flat', 'outline' ],
155
+ fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
156
156
 
157
157
  hover: typeof false,
158
158
  focus: typeof false,