@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
@@ -1,7 +1,7 @@
1
1
  ```html
2
2
  <!-- default rendering -->
3
- <span class="k-combobox k-input k-input-md k-rounded-md k-input-solid">
4
- <input type="text" class="k-input-inner" value="..." placeholder="..." />
3
+ <span class="k-dropdownlist k-picker k-picker-md k-rounded-md k-picker-solid">
4
+ <span class="k-input-inner"><span class="k-input-value-text"><span></span>
5
5
  <button type="button" class="k-input-button k-button k-icon-button k-button-md k-button-solid k-button-solid-base">
6
6
  <span class="k-button-icon k-icon k-i-arrow-s"></span>
7
7
  </button>
@@ -9,20 +9,29 @@
9
9
 
10
10
  <!-- canonical rendering -->
11
11
  <span class="
12
- k-combobox
13
- k-input
14
- k-input-${size}
15
- k-rounded-${rounded}
16
- k-input-${fillMode}
12
+ k-dropdownlist
13
+ k-picker
14
+ k-picker-{size}
15
+ k-rounded-{rounded}
16
+ k-picker-{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
  ">
23
- <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>}
24
+ {showInputIcon && inputIconName !== '' && <span class="k-input-icon k-i-icon k-i-{inputIconName}"></span>}
25
+ {inputPrefix && <span class="k-input-prefix">...</span>}
26
+ <span class="k-input-inner">
27
+ <span class="k-input-value-icon k-icon k-i-{valueIcon}"><span>
28
+ <span class="k-input-value-text">{valueText}<span>
29
+ </span>
30
+ {inputPrefix && <span class="k-input-suffix">...</span>}
31
+ {showValidationIcon && valid && <span class="k-validation-icon k-icon k-i-check"></span>}
32
+ {showValidationIcon && invalid && <span class="k-validation-icon k-icon k-i-warning"></span>}
33
+ {showLoadingIcon && loading && <span class="k-icon k-i-loading"></span>}
34
+ {showClearValue && text !== '' && <span class="k-clear-value"><span class="k-icon k-i-x"></span></span>}
26
35
  <button type="button" class="k-input-button k-button k-icon-button k-button-{size} k-button-{fillMode} k-button-{fillMode}-base">
27
36
  <span class="k-button-icon k-icon k-i-arrow-s"></span>
28
37
  </button>
@@ -71,7 +71,10 @@ function DropdownListStatic(props) {
71
71
 
72
72
  let dropdownListClasses = [
73
73
  ownClassName,
74
- 'k-dropdown'
74
+ 'k-dropdown',
75
+ {
76
+ 'k-icon-picker': showValue !== true && (valueIcon !== null || valueIconName !== '')
77
+ }
75
78
  ];
76
79
 
77
80
  let ariaAttr = aria
@@ -119,7 +122,7 @@ function DropdownListStatic(props) {
119
122
  <InputValidationIconStatic {...props} />
120
123
  <InputLoadingIconStatic {...props} />
121
124
  <InputClearValueStatic {...props} />
122
- <ButtonStatic className="k-input-button" icon={arrowIconName} rounded="none" size={size} fillMode={fillMode}></ButtonStatic>
125
+ <ButtonStatic className="k-input-button" icon={arrowIconName} shape={null} rounded={null} size={size} fillMode={fillMode}></ButtonStatic>
123
126
  </PickerStatic>
124
127
  );
125
128
  }
@@ -168,10 +171,10 @@ DropdownListStatic.propTypes = {
168
171
  prefix: typeof '#fragment',
169
172
  suffix: typeof '#fragment',
170
173
 
171
- size: typeof [ 'none', 'small', 'medium', 'large' ],
172
- rounded: typeof [ 'none', 'small', 'medium', 'large', 'pill' ],
174
+ size: typeof [ null, 'small', 'medium', 'large' ],
175
+ rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
173
176
 
174
- fillMode: typeof [ 'none', 'solid', 'flat', 'outline' ],
177
+ fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
175
178
 
176
179
  hover: typeof false,
177
180
  focus: typeof false,
package/src/index.js CHANGED
@@ -26,6 +26,7 @@ export * from './input/index';
26
26
  // export * from './picker/index';
27
27
  // export * from './popup/index';
28
28
  // export * from './list/index';
29
+ export * from './avatar/index';
29
30
 
30
31
  // Native forms
31
32
  export * from './button/index';
@@ -126,10 +126,10 @@ InputStatic.propTypes = {
126
126
  prefix: typeof '#fragment',
127
127
  suffix: typeof '#fragment',
128
128
 
129
- size: typeof [ 'none', 'small', 'medium', 'large' ],
130
- rounded: typeof [ 'none', 'small', 'medium', 'large', 'pill' ],
129
+ size: typeof [ null, 'small', 'medium', 'large' ],
130
+ rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
131
131
 
132
- fillMode: typeof [ 'none', 'solid', 'flat', 'outline' ],
132
+ fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
133
133
 
134
134
  hover: typeof false,
135
135
  focus: typeof false,
@@ -124,10 +124,10 @@ PickerStatic.propTypes = {
124
124
  prefix: typeof '#fragment',
125
125
  suffix: typeof '#fragment',
126
126
 
127
- size: typeof [ 'none', 'small', 'medium', 'large' ],
128
- rounded: typeof [ 'none', 'small', 'medium', 'large', 'pill' ],
127
+ size: typeof [ null, 'small', 'medium', 'large' ],
128
+ rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
129
129
 
130
- fillMode: typeof [ 'none', 'solid', 'flat', 'outline' ],
130
+ fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
131
131
 
132
132
  hover: typeof false,
133
133
  focus: typeof false,
@@ -8,17 +8,23 @@
8
8
  <span class="
9
9
  k-maskedtextbox
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
  ```
@@ -132,10 +132,10 @@ MaskedTextboxStatic.propTypes = {
132
132
  showLoadingIcon: typeof true,
133
133
  showClearButton: typeof true,
134
134
 
135
- size: typeof [ 'none', 'small', 'medium', 'large' ],
136
- rounded: typeof [ 'none', 'small', 'medium', 'large', 'pill' ],
135
+ size: typeof [ null, 'small', 'medium', 'large' ],
136
+ rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
137
137
 
138
- fillMode: typeof [ 'none', 'solid', 'flat', 'outline' ],
138
+ fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
139
139
 
140
140
  hover: typeof false,
141
141
  focus: typeof false,
@@ -16,18 +16,24 @@
16
16
  <span class="
17
17
  k-numerictextbox
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">
@@ -112,7 +112,7 @@ function NumericTextboxStatic(props) {
112
112
  <InputValidationIconStatic {...props} />
113
113
  <InputLoadingIconStatic {...props} />
114
114
  <InputClearValueStatic {...props} />
115
- {showSpinButton === true && <SpinButtonStatic className="k-input-spinner" />}
115
+ {showSpinButton === true && <SpinButtonStatic className="k-input-spinner" size={size} fillMode={fillMode} />}
116
116
  </InputStatic>
117
117
  );
118
118
  }
@@ -148,10 +148,10 @@ NumericTextboxStatic.propTypes = {
148
148
  showLoadingIcon: typeof true,
149
149
  showClearButton: typeof true,
150
150
 
151
- size: typeof [ 'none', 'small', 'medium', 'large' ],
152
- rounded: typeof [ 'none', 'small', 'medium', 'large', 'pill' ],
151
+ size: typeof [ null, 'small', 'medium', 'large' ],
152
+ rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
153
153
 
154
- fillMode: typeof [ 'none', 'solid', 'flat', 'outline' ],
154
+ fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
155
155
 
156
156
  hover: typeof false,
157
157
  focus: typeof false,
@@ -6,15 +6,15 @@
6
6
  <input type="radio"
7
7
  class="
8
8
  k-radio
9
- k-radio-${size}
10
- k-rounded-${rounded}
9
+ k-radio-{size}
10
+ k-rounded-{rounded}
11
11
 
12
- ${checked && 'k-checked'}
12
+ {checked && 'k-checked'}
13
13
 
14
- ${valid && 'k-valid'}
15
- ${invalid && 'k-invalid'}
16
- ${required && 'k-required'}
17
- ${disabled && 'k-disabled'}
14
+ {valid && 'k-valid'}
15
+ {invalid && 'k-invalid'}
16
+ {required && 'k-required'}
17
+ {disabled && 'k-disabled'}
18
18
  "
19
19
  disabled={disabled}
20
20
  />
@@ -86,7 +86,7 @@ RadioStatic.propTypes = {
86
86
 
87
87
  checked: typeof false,
88
88
 
89
- size: typeof [ 'none', 'small', 'medium', 'large' ],
89
+ size: typeof [ null, 'small', 'medium', 'large' ],
90
90
 
91
91
  hover: typeof false,
92
92
  focus: typeof false,
@@ -2,25 +2,29 @@
2
2
  <!-- default rendering -->
3
3
  <span class="k-searchbox k-input k-input-md k-rounded-md k-input-solid">
4
4
  <input type="text" class="k-input-inner" value="..." placeholder="..." />
5
- <span class="k-input-icon k-icon k-i-search"></span>
6
5
  </span>
7
6
 
8
7
  <!-- canonical rendering -->
9
8
  <span class="
10
9
  k-searchbox
11
10
  k-input
12
- k-input-${size}
13
- k-rounded-${rounded}
14
- k-input-${fillMode}
11
+ k-input-{size}
12
+ k-rounded-{rounded}
13
+ k-input-{fillMode}
15
14
 
16
- ${valid && 'k-valid'}
17
- ${invalid && 'k-invalid'}
18
- ${required && 'k-required'}
19
- ${disabled && 'k-disabled'}
15
+ {valid && 'k-valid'}
16
+ {invalid && 'k-invalid'}
17
+ {loading && 'k-loading'}
18
+ {required && 'k-required'}
19
+ {disabled && 'k-disabled'}
20
20
  ">
21
- {showIcon && iconPosition === 'leading' && <span class="k-input-icon k-icon k-i-{iconName}"></span>}
22
- <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />}
23
- {text !== '' <span class="k-clear-value"></span>}
24
- {showIcon && iconPosition === 'trailing' && <span class="k-input-icon k-icon k-i-{iconName}"></span>}
21
+ {showInputIcon && inputIconName !== '' && <span class="k-input-icon k-i-icon k-i-{inputIconName}"></span>}
22
+ {inputPrefix && <span class="k-input-prefix">...</span>}
23
+ <input type={type} class="k-input-inner" value={value} placeholder={placeholder} disabled={disabled} />
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>}
25
29
  </span>
26
30
  ```
@@ -149,10 +149,10 @@ SearchboxInner.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,
@@ -13,6 +13,9 @@ function SpinButtonStatic(props) {
13
13
  const {
14
14
  className: ownClassName,
15
15
 
16
+ size,
17
+ fillMode,
18
+
16
19
  aria,
17
20
  legacy,
18
21
 
@@ -43,8 +46,8 @@ function SpinButtonStatic(props) {
43
46
 
44
47
  return (
45
48
  <span className={spinButtonClasses} {...ariaAttr} {...htmlAttributes}>
46
- <ButtonStatic size="none" rounded="none" className="k-spinner-increase" icon="arrow-n" />
47
- <ButtonStatic size="none" rounded="none" className="k-spinner-decrease" icon="arrow-s" />
49
+ <ButtonStatic className="k-spinner-increase" icon="arrow-n" shape={null} rounded={null} size={size} fillMode={fillMode} />
50
+ <ButtonStatic className="k-spinner-decrease" icon="arrow-s" shape={null} rounded={null} size={size} fillMode={fillMode} />
48
51
  </span>
49
52
  );
50
53
  }
@@ -56,6 +59,9 @@ SpinButtonStatic.defaultProps = {
56
59
  SpinButtonStatic.propTypes = {
57
60
  className: typeof '',
58
61
 
62
+ size: typeof '',
63
+ fillMode: typeof '',
64
+
59
65
  aria: typeof false,
60
66
  legacy: typeof false,
61
67
 
@@ -114,9 +114,9 @@ SwitchStatic.propTypes = {
114
114
  onLabel: typeof '',
115
115
  offLabel: typeof '',
116
116
 
117
- size: typeof [ 'none', 'small', 'medium', 'large' ],
118
- trackRounded: typeof [ 'none', '0', 'small', 'medium', 'large', 'pill', 'circle' ],
119
- thumbRounded: typeof [ 'none', '0', 'small', 'medium', 'large', 'pill', 'circle' ],
117
+ size: typeof [ null, 'small', 'medium', 'large' ],
118
+ trackRounded: typeof [ null, '0', 'small', 'medium', 'large', 'pill', 'circle' ],
119
+ thumbRounded: typeof [ null, '0', 'small', 'medium', 'large', 'pill', 'circle' ],
120
120
 
121
121
  hover: typeof false,
122
122
  focus: typeof false,
@@ -1,24 +1,30 @@
1
1
  ```html
2
2
  <!-- default rendering -->
3
3
  <span class="k-textarea k-input k-input-md k-rounded-md k-input-solid">
4
- <textarea type="text" class="k-input-inner" placeholder="...">...</textarea>
4
+ <textarea class="k-input-inner" placeholder="...">...</textarea>
5
5
  </span>
6
6
 
7
7
  <!-- canonical rendering -->
8
8
  <span class="
9
9
  k-textarea
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
  ">
20
- <textarea type={type} class="k-input-inner" placeholder={placeholder} disabled={disabled}>{value}</textarea>
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>}
21
+ {showInputIcon && inputIconName !== '' && <span class="k-input-icon k-i-icon k-i-{inputIconName}"></span>}
22
+ {inputPrefix && <span class="k-input-prefix">...</span>}
23
+ <textarea class="k-input-inner" placeholder="{placeholder}" disabled={disabled}>{value}</textarea>
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
  ```
@@ -116,10 +116,10 @@ TextareaStatic.propTypes = {
116
116
  prefix: typeof '#fragment',
117
117
  suffix: typeof '#fragment',
118
118
 
119
- size: typeof [ 'none', 'small', 'medium', 'large' ],
120
- rounded: typeof [ 'none', 'small', 'medium', 'large', 'pill' ],
119
+ size: typeof [ null, 'small', 'medium', 'large' ],
120
+ rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
121
121
 
122
- fillMode: typeof [ 'none', 'solid', 'flat', 'outline' ],
122
+ fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
123
123
 
124
124
  hover: typeof false,
125
125
  focus: typeof false,
@@ -8,17 +8,23 @@
8
8
  <span class="
9
9
  k-textbox
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
  ```
@@ -139,10 +139,10 @@ TextboxStatic.propTypes = {
139
139
  prefix: typeof '#fragment',
140
140
  suffix: typeof '#fragment',
141
141
 
142
- size: typeof [ 'none', 'small', 'medium', 'large' ],
143
- rounded: typeof [ 'none', 'small', 'medium', 'large', 'pill' ],
142
+ size: typeof [ null, 'small', 'medium', 'large' ],
143
+ rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
144
144
 
145
- fillMode: typeof [ 'none', 'solid', 'flat', 'outline' ],
145
+ fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
146
146
 
147
147
  hover: typeof false,
148
148
  focus: typeof false,
@@ -11,18 +11,24 @@
11
11
  <span class="
12
12
  k-timepicker
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-clock"></span>
28
34
  </button>
@@ -110,7 +110,7 @@ function TimePickerStatic(props) {
110
110
  <InputValidationIconStatic {...props} />
111
111
  <InputLoadingIconStatic {...props} />
112
112
  <InputClearValueStatic {...props} />
113
- <ButtonStatic className="k-input-button" icon="clock" rounded="none" size={size} fillMode={fillMode}></ButtonStatic>
113
+ <ButtonStatic className="k-input-button" icon="clock" shape={null} rounded={null} size={size} fillMode={fillMode}></ButtonStatic>
114
114
  </InputStatic>
115
115
  );
116
116
  }
@@ -149,10 +149,10 @@ TimePickerStatic.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,
package/utils/styles.js CHANGED
@@ -25,7 +25,7 @@ function lookup( map, key ) {
25
25
  }
26
26
 
27
27
  function sizeClass( size, prefix ) {
28
- if ( size === 'none' ) {
28
+ if ( size === null ) {
29
29
  return '';
30
30
  }
31
31
 
@@ -33,7 +33,7 @@ function sizeClass( size, prefix ) {
33
33
  }
34
34
 
35
35
  function roundedClass( rounded ) {
36
- if ( rounded === 'none' ) {
36
+ if ( rounded === null ) {
37
37
  return '';
38
38
  }
39
39
 
@@ -41,7 +41,7 @@ function roundedClass( rounded ) {
41
41
  }
42
42
 
43
43
  function shapeClass( shape, prefix ) {
44
- if ( shape === 'none' ) {
44
+ if ( shape === null ) {
45
45
  return '';
46
46
  }
47
47
 
@@ -49,7 +49,7 @@ function shapeClass( shape, prefix ) {
49
49
  }
50
50
 
51
51
  function fillModeClass( fill, prefix ) {
52
- if ( fill === 'none' ) {
52
+ if ( fill === null) {
53
53
  return '';
54
54
  }
55
55
 
@@ -57,13 +57,21 @@ function fillModeClass( fill, prefix ) {
57
57
  }
58
58
 
59
59
  function themeColorClass( fill, color, prefix ) {
60
- if ( fill === 'none' || color === 'none' ) {
60
+ if ( fill === null || color === null) {
61
61
  return '';
62
62
  }
63
63
 
64
64
  return `${prefix}-${fill}-${color}`;
65
65
  }
66
66
 
67
+ function borderedClass( bordered, prefix ) {
68
+ if ( !bordered ) {
69
+ return '';
70
+ }
71
+
72
+ return `${prefix}-bordered`;
73
+ }
74
+
67
75
  function classNames( ...args ) {
68
76
 
69
77
  /* eslint-disable arrow-body-style, no-nested-ternary */
@@ -122,6 +130,7 @@ export {
122
130
  shapeClass,
123
131
  fillModeClass,
124
132
  themeColorClass,
133
+ borderedClass,
125
134
 
126
135
  classNames,
127
136
  cssStyle,