@progress/kendo-themes-html 5.0.0-beta.0 → 5.0.0-beta.4

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 (88) hide show
  1. package/lib/jsx-runtime.js +21 -10
  2. package/package.json +7 -7
  3. package/src/autocomplete/autocomplete.jsx +3 -3
  4. package/src/avatar/README.md +1 -1
  5. package/src/avatar/avatar.jsx +15 -21
  6. package/src/button/button.jsx +40 -22
  7. package/src/checkbox/checkbox.jsx +3 -3
  8. package/src/chip/README.md +5 -5
  9. package/src/chip/chip-actions.jsx +80 -0
  10. package/src/chip/chip-avatar.jsx +2 -10
  11. package/src/chip/chip-list.jsx +9 -6
  12. package/src/chip/chip.jsx +56 -39
  13. package/src/chip/index.js +2 -3
  14. package/src/colorpicker/README.md +24 -15
  15. package/src/colorpicker/color-preview.jsx +28 -21
  16. package/src/colorpicker/colorpicker.jsx +6 -8
  17. package/src/combobox/combobox.jsx +6 -8
  18. package/src/{component.js → component/component.jsx} +4 -2
  19. package/src/component/index.js +1 -0
  20. package/src/dateinput/dateinput.jsx +6 -8
  21. package/src/datepicker/datepicker.jsx +6 -8
  22. package/src/datetimepicker/datetimepicker.jsx +6 -8
  23. package/src/dropdownlist/dropdownlist.jsx +6 -8
  24. package/src/fab/README.md +19 -0
  25. package/src/fab/fab.jsx +154 -0
  26. package/src/fab/index.js +1 -0
  27. package/src/icon/icon.jsx +1 -1
  28. package/src/index.js +43 -6
  29. package/src/input/input-inner-input.jsx +1 -1
  30. package/src/input/input-inner-span.jsx +2 -2
  31. package/src/input/input-inner-textarea.jsx +1 -1
  32. package/src/input/input-prefix.jsx +1 -1
  33. package/src/input/input-suffix.jsx +1 -1
  34. package/src/input/input.jsx +2 -2
  35. package/src/input/picker.jsx +4 -4
  36. package/src/list/README.md +75 -26
  37. package/src/list/index.js +1 -3
  38. package/src/list/list-content.jsx +37 -61
  39. package/src/list/list-group-item.jsx +66 -0
  40. package/src/list/list-header.jsx +13 -7
  41. package/src/list/list-item.jsx +37 -16
  42. package/src/list/list.jsx +109 -6
  43. package/src/maskedtextbox/maskedtextbox.jsx +9 -12
  44. package/src/menu/README.md +40 -0
  45. package/src/{menuitem → menu}/index.js +1 -0
  46. package/src/{menuitem → menu}/menu-item-content.jsx +1 -1
  47. package/src/{menuitem → menu}/menu-item.jsx +28 -23
  48. package/src/{menulist/menulist.jsx → menu/menu-list.jsx} +12 -11
  49. package/src/{dropdownbutton → menubutton}/README.md +20 -20
  50. package/src/menubutton/index.js +1 -0
  51. package/src/menubutton/menubutton.jsx +161 -0
  52. package/src/multiselect/README.md +37 -0
  53. package/src/multiselect/multiselect-chip-list.jsx +1 -1
  54. package/src/multiselect/multiselect.jsx +10 -4
  55. package/src/nodata/index.js +1 -0
  56. package/src/nodata/nodata.jsx +64 -0
  57. package/src/numerictextbox/numerictextbox.jsx +6 -8
  58. package/src/popup/README.md +15 -0
  59. package/src/popup/index.js +1 -0
  60. package/src/popup/popup.jsx +80 -0
  61. package/src/radio/radio.jsx +7 -3
  62. package/src/searchbar/searchbar.jsx +1 -1
  63. package/src/searchbox/searchbox.jsx +2 -2
  64. package/src/spinbutton/spinbutton.jsx +1 -1
  65. package/src/splitbutton/README.md +2 -2
  66. package/src/splitbutton/splitbutton.jsx +58 -34
  67. package/src/switch/README.md +3 -3
  68. package/src/switch/switch.jsx +5 -5
  69. package/src/textarea/textarea.jsx +2 -2
  70. package/src/textbox/textbox.jsx +2 -2
  71. package/src/timepicker/timepicker.jsx +6 -8
  72. package/src/treeview/README.md +0 -0
  73. package/src/treeview/index.js +4 -0
  74. package/src/treeview/treeview-group.jsx +70 -0
  75. package/src/treeview/treeview-item.jsx +142 -0
  76. package/src/treeview/treeview-leaf.jsx +99 -0
  77. package/src/treeview/treeview.jsx +125 -0
  78. package/utils/styles.js +9 -0
  79. package/src/chip/chip-remove-icon.jsx +0 -45
  80. package/src/chip/chip-selected-icon.jsx +0 -47
  81. package/src/dropdownbutton/dropdownbutton.jsx +0 -149
  82. package/src/dropdownbutton/index.js +0 -1
  83. package/src/list/list-footer.jsx +0 -61
  84. package/src/list/list-group-header.jsx +0 -92
  85. package/src/list/list-item-text.jsx +0 -62
  86. package/src/menuitem/README.md +0 -26
  87. package/src/menulist/README.md +0 -11
  88. package/src/menulist/index.js +0 -1
package/src/chip/chip.jsx CHANGED
@@ -1,11 +1,31 @@
1
1
  import * as styles from '../../utils/styles';
2
- import { Component, globalDefaultProps } from '../component';
2
+ import { Component, globalDefaultProps } from '../component/index';
3
3
  import { IconStatic } from '../icon/index';
4
- import { ChipSelectedIconStatic } from '../chip/index';
5
- import { ChipRemoveIconStatic } from '../chip/index';
6
- import { ChipAvatarStatic } from '../chip/index';
4
+ import { ChipAvatarStatic } from './chip-avatar.jsx';
5
+ import { ChipActionsStatic } from './chip-actions.jsx';
7
6
 
8
7
  class Chip extends Component {
8
+
9
+ init() {
10
+ let actions = this._props.actions;
11
+ let newActions = [];
12
+
13
+ if (actions === undefined) {
14
+ this._props.actions = [];
15
+ return;
16
+ }
17
+
18
+ if (Array.isArray(actions)) {
19
+ return;
20
+ }
21
+
22
+ actions.split(',').forEach(action => {
23
+ newActions.push(action.trim());
24
+ });
25
+
26
+ this._props.actions = newActions;
27
+ }
28
+
9
29
  render() {
10
30
  return <ChipStatic {...this.props} />;
11
31
  }
@@ -18,6 +38,10 @@ function ChipStatic(props) {
18
38
  children,
19
39
 
20
40
  text,
41
+ icon,
42
+ actions,
43
+
44
+ showAvatar,
21
45
 
22
46
  size,
23
47
  rounded,
@@ -25,9 +49,6 @@ function ChipStatic(props) {
25
49
  fillMode,
26
50
  themeColor,
27
51
 
28
- icon,
29
- showAvatar,
30
-
31
52
  hover,
32
53
  focus,
33
54
  active,
@@ -48,7 +69,6 @@ function ChipStatic(props) {
48
69
  styles.fillModeClass( fillMode, 'k-chip' ),
49
70
  styles.themeColorClass( fillMode, themeColor, 'k-chip' ),
50
71
  {
51
- 'k-chip-has-icon': icon !== '' || showAvatar,
52
72
  'k-hover': hover === true,
53
73
  'k-focus': focus === true,
54
74
  'k-active': active === true,
@@ -57,21 +77,6 @@ function ChipStatic(props) {
57
77
  }
58
78
  ];
59
79
 
60
- let legacyClasses = [
61
- ownClassName,
62
- 'k-chip',
63
- {
64
- 'k-chip-has-icon': icon !== '' || showAvatar,
65
- 'k-chip-outline': fillMode === 'outline',
66
- 'k-chip-solid': fillMode === 'solid',
67
- 'k-state-hover': hover === true,
68
- 'k-state-focus': focus === true,
69
- 'k-state-active': active === true,
70
- 'k-state-selected': selected === true,
71
- 'k-state-disabled': disabled === true
72
- }
73
- ];
74
-
75
80
  // Augment attributes
76
81
  htmlAttributes.disabled = disabled;
77
82
 
@@ -80,18 +85,33 @@ function ChipStatic(props) {
80
85
  : {};
81
86
 
82
87
  if (legacy) {
88
+
89
+ let legacyClasses = [
90
+ ownClassName,
91
+ 'k-chip',
92
+ `k-chip-${themeColor}`,
93
+ {
94
+ 'k-chip-outline': fillMode === 'outline',
95
+ 'k-chip-solid': fillMode === 'solid',
96
+ 'k-state-hover': hover === true,
97
+ 'k-state-focus': focus === true,
98
+ 'k-state-active': active === true,
99
+ 'k-state-selected': selected === true,
100
+ 'k-state-disabled': disabled === true
101
+ }
102
+ ];
103
+
83
104
  return (
84
105
  <div className={legacyClasses} {...ariaAttr} {...htmlAttributes}>
85
106
  <IconStatic className="k-chip-icon" name={icon} />
86
- <ChipSelectedIconStatic {...props} />
87
- <ChipAvatarStatic {...props} />
107
+ {showAvatar && <ChipAvatarStatic {...props} />}
88
108
  <span className="k-chip-content">
89
109
  { children.length
90
110
  ? children
91
- : text &&
92
- <span className="k-chip-label">{text}</span>}
111
+ : text && <span className="k-chip-label">{text}</span>
112
+ }
93
113
  </span>
94
- <ChipRemoveIconStatic {...props} />
114
+ { actions.length > 0 && <ChipActionsStatic actions={actions} />}
95
115
  </div>
96
116
  );
97
117
  }
@@ -99,15 +119,14 @@ function ChipStatic(props) {
99
119
  return (
100
120
  <div className={chipClasses} {...ariaAttr} {...htmlAttributes}>
101
121
  <IconStatic className="k-chip-icon" name={icon} />
102
- <ChipSelectedIconStatic {...props} />
103
- <ChipAvatarStatic {...props} />
122
+ {showAvatar && <ChipAvatarStatic {...props} />}
104
123
  <span className="k-chip-content">
105
124
  { children.length
106
125
  ? children
107
- : text &&
108
- <span className="k-chip-label k-text-ellipsis">{text}</span>}
126
+ : text && <span className="k-chip-label k-text-ellipsis">{text}</span>
127
+ }
109
128
  </span>
110
- <ChipRemoveIconStatic {...props} />
129
+ { actions.length > 0 && <ChipActionsStatic actions={actions} />}
111
130
  </div>
112
131
  );
113
132
  }
@@ -119,9 +138,8 @@ ChipStatic.defaultProps = {
119
138
 
120
139
  text: '',
121
140
  icon: '',
122
- showRemoveIcon: false,
141
+ actions: [],
123
142
  showAvatar: false,
124
- showSelectedIcon: false,
125
143
 
126
144
  className: '',
127
145
 
@@ -133,16 +151,16 @@ ChipStatic.defaultProps = {
133
151
  };
134
152
 
135
153
  ChipStatic.propTypes = {
154
+ className: typeof '',
136
155
  children: typeof [],
137
156
 
138
157
  text: typeof '',
139
158
  icon: typeof '',
140
- showRemoveIcon: typeof false,
159
+ actions: typeof [],
141
160
  showAvatar: typeof false,
142
- showSelectedIcon: typeof false,
143
161
 
144
162
  size: typeof [ null, 'small', 'medium', 'large' ],
145
- rounded: typeof [ null, '0', 'small', 'medium', 'large', 'pill' ],
163
+ rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
146
164
 
147
165
  fillMode: typeof [ null, 'solid', 'outline' ],
148
166
  themeColor: typeof [ null, 'base', 'error', 'warning', 'info', 'success' ],
@@ -156,7 +174,6 @@ ChipStatic.propTypes = {
156
174
  aria: typeof false,
157
175
  legacy: typeof false,
158
176
 
159
- className: typeof '',
160
177
  htmlAttributes: typeof []
161
178
  };
162
179
 
package/src/chip/index.js CHANGED
@@ -1,5 +1,4 @@
1
- export * from './chip-selected-icon.jsx';
2
- export * from './chip-remove-icon.jsx';
3
- export * from './chip-avatar.jsx';
4
1
  export * from './chip.jsx';
2
+ export * from './chip-avatar.jsx';
3
+ export * from './chip-actions.jsx';
5
4
  export * from './chip-list.jsx';
@@ -1,28 +1,37 @@
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="..." />
5
- <button type="button" class="k-input-button k-button k-icon-button k-button-md k-button-solid k-button-solid-base">
3
+ <span class="k-colorpicker k-icon-picker k-picker k-picker-md k-rounded-md k-picker-solid">
4
+ <span class="k-input-inner">
5
+ <span class="k-value-icon k-color-preview k-no-color">
6
+ <span class="k-color-preview-mask" style="background-color: red;"></span>
7
+ </span>
8
+ </span>
9
+ <button type="button" class="k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button">
6
10
  <span class="k-button-icon k-icon k-i-arrow-s"></span>
7
11
  </button>
8
12
  </span>
9
13
 
10
14
  <!-- canonical rendering -->
11
15
  <span class="
12
- k-combobox
13
- k-input
14
- k-input-${size}
15
- k-rounded-${rounded}
16
- k-input-${fillMode}
16
+ k-colorpicker
17
+ k-picker
18
+ k-icon-picker
19
+ k-picker-{size}
20
+ k-rounded-{rounded}
21
+ k-picker-{fillMode}
17
22
 
18
- ${valid && 'k-valid'}
19
- ${invalid && 'k-invalid'}
20
- ${required && 'k-required'}
21
- ${disabled && 'k-disabled'}
23
+ {valid && 'k-valid'}
24
+ {invalid && 'k-invalid'}
25
+ {required && 'k-required'}
26
+ {disabled && 'k-disabled'}
22
27
  ">
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>}
28
+ {inputPrefix && <span class="k-input-prefix">...</span>}
29
+ <span class="k-input-inner">
30
+ <span class="k-value-icon k-color-preview k-no-color">
31
+ <span class="k-color-preview-mask" style={value}></span>
32
+ </span>
33
+ </span>
34
+ {inputSuffix && <span class="k-input-suffix">...</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>
@@ -1,4 +1,4 @@
1
- import { Component, globalDefaultProps } from '../component';
1
+ import { Component, globalDefaultProps } from '../component/index';
2
2
  import { IconStatic } from '../icon/index';
3
3
 
4
4
  class ColorPreview extends Component {
@@ -39,28 +39,35 @@ function ColorPreviewStatic(props) {
39
39
 
40
40
  if (legacy) {
41
41
 
42
- let legacyClasses = [
43
- ownClassName,
44
- 'k-selected-color',
45
- {
46
- 'k-no-color': color === ''
47
- }
48
- ];
49
-
50
- let legacyStyles = {
51
- 'background-color': color
52
- };
53
-
54
- if (iconName === '') {
55
- return (
56
- <span className={legacyClasses} style={legacyStyles}></span>
57
- );
58
- }
42
+ // let legacyClasses = [
43
+ // ownClassName,
44
+ // 'k-selected-color',
45
+ // {
46
+ // 'k-no-color': color === ''
47
+ // }
48
+ // ];
49
+
50
+ // let legacyStyles = {
51
+ // 'background-color': color
52
+ // };
53
+
54
+ // if (iconName === '') {
55
+ // return (
56
+ // <span className={legacyClasses} style={legacyStyles}></span>
57
+ // );
58
+ // }
59
+
60
+ // return (
61
+ // <IconStatic className="k-tool-icon" name={iconName}>
62
+ // <span className={legacyClasses} style={legacyStyles}></span>
63
+ // </IconStatic>
64
+ // );
59
65
 
60
66
  return (
61
- <IconStatic className="k-tool-icon" name={iconName}>
62
- <span className={legacyClasses} style={legacyStyles}></span>
63
- </IconStatic>
67
+ <span className={colorPreviewClasses} {...ariaAttr} {...htmlAttributes}>
68
+ {iconName && <IconStatic name={iconName} className="k-color-preview-icon" />}
69
+ <span className="k-color-preview-mask" style={styles}></span>
70
+ </span>
64
71
  );
65
72
 
66
73
  }
@@ -1,4 +1,4 @@
1
- import { globalDefaultProps } from '../component';
1
+ import { globalDefaultProps } from '../component/index';
2
2
  import { Picker, PickerStatic, InputInnerSpanStatic } from '../input/index';
3
3
  import { ColorPreviewStatic } from './color-preview.jsx';
4
4
  import { ButtonStatic } from '../button/index';
@@ -67,17 +67,15 @@ function ColorpickerStatic(props) {
67
67
  'k-widget',
68
68
  'k-colorpicker',
69
69
  {
70
+ 'k-state-hover': hover === true,
71
+ 'k-state-focus': focus === true,
72
+ 'k-state-invalid': invalid === true,
70
73
  'k-state-disabled': disabled === true
71
74
  }
72
75
  ];
73
76
 
74
77
  let legacyWrapClasses = [
75
- 'k-picker-wrap',
76
- {
77
- 'k-state-hover': hover === true,
78
- 'k-state-focused': focus === true,
79
- 'k-state-invalid': invalid === true
80
- }
78
+ 'k-picker-wrap'
81
79
  ];
82
80
 
83
81
  return (
@@ -133,7 +131,7 @@ ColorpickerStatic.propTypes = {
133
131
  suffix: typeof '#fragment',
134
132
 
135
133
  size: typeof [ null, 'small', 'medium', 'large' ],
136
- rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
134
+ rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
137
135
 
138
136
  fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
139
137
 
@@ -1,4 +1,4 @@
1
- import { globalDefaultProps } from '../component';
1
+ 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';
@@ -76,17 +76,15 @@ function ComboboxStatic(props) {
76
76
  'k-widget',
77
77
  'k-combobox',
78
78
  {
79
+ 'k-state-hover': hover === true,
80
+ 'k-state-focus': focus === true,
81
+ 'k-state-invalid': invalid === true,
79
82
  'k-state-disabled': disabled === true
80
83
  }
81
84
  ];
82
85
 
83
86
  let legacyWrapClasses = [
84
- 'k-dropdown-wrap',
85
- {
86
- 'k-state-hover': hover === true,
87
- 'k-state-focused': focus === true,
88
- 'k-state-invalid': invalid === true
89
- }
87
+ 'k-dropdown-wrap'
90
88
  ];
91
89
 
92
90
  return (
@@ -150,7 +148,7 @@ ComboboxStatic.propTypes = {
150
148
  suffix: typeof '#fragment',
151
149
 
152
150
  size: typeof [ null, 'small', 'medium', 'large' ],
153
- rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
151
+ rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
154
152
 
155
153
  fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
156
154
 
@@ -1,9 +1,11 @@
1
- import { isFunction } from '../utils/object';
2
- import { renderDOM, htmlToProps } from '../lib/jsx-runtime';
1
+ import { isFunction } from '../../utils/object';
2
+ import { renderDOM, htmlToProps } from '../../lib/jsx-runtime';
3
3
 
4
4
  const globalDefaultProps = {
5
5
  legacy: false,
6
6
 
7
+ framework: 'universal',
8
+
7
9
  className: '',
8
10
 
9
11
  aria: false,
@@ -0,0 +1 @@
1
+ export * from './component.jsx';
@@ -1,4 +1,4 @@
1
- import { Component, globalDefaultProps } from '../component';
1
+ import { Component, globalDefaultProps } from '../component/index';
2
2
  import { InputStatic, InputInnerInputStatic } from '../input/index';
3
3
  import { InputValidationIconStatic, InputLoadingIconStatic, InputClearValueStatic } from '../input/index';
4
4
  import { SpinButtonStatic } from '../spinbutton/index';
@@ -75,17 +75,15 @@ function DateInputStatic(props) {
75
75
  'k-widget',
76
76
  'k-dateinput',
77
77
  {
78
+ 'k-state-hover': hover === true,
79
+ 'k-state-focus': focus === true,
80
+ 'k-state-invalid': invalid === true,
78
81
  'k-state-disabled': disabled === true
79
82
  }
80
83
  ];
81
84
 
82
85
  let legacyWrapClasses = [
83
- 'k-dateinput-wrap',
84
- {
85
- 'k-state-hover': hover === true,
86
- 'k-state-focused': focus === true,
87
- 'k-state-invalid': invalid === true
88
- }
86
+ 'k-dateinput-wrap'
89
87
  ];
90
88
 
91
89
  let legacyInputClasses = [
@@ -148,7 +146,7 @@ DateInputStatic.propTypes = {
148
146
  showClearButton: typeof true,
149
147
 
150
148
  size: typeof [ null, 'small', 'medium', 'large' ],
151
- rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
149
+ rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
152
150
 
153
151
  fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
154
152
 
@@ -1,4 +1,4 @@
1
- import { globalDefaultProps } from '../component';
1
+ 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';
@@ -76,17 +76,15 @@ function DatePickerStatic(props) {
76
76
  'k-widget',
77
77
  'k-datepicker',
78
78
  {
79
+ 'k-state-hover': hover === true,
80
+ 'k-state-focus': focus === true,
81
+ 'k-state-invalid': invalid === true,
79
82
  'k-state-disabled': disabled === true
80
83
  }
81
84
  ];
82
85
 
83
86
  let legacyWrapClasses = [
84
- 'k-picker-wrap',
85
- {
86
- 'k-state-hover': hover === true,
87
- 'k-state-focused': focus === true,
88
- 'k-state-invalid': invalid === true
89
- }
87
+ 'k-picker-wrap'
90
88
  ];
91
89
 
92
90
  return (
@@ -150,7 +148,7 @@ DatePickerStatic.propTypes = {
150
148
  suffix: typeof '#fragment',
151
149
 
152
150
  size: typeof [ null, 'small', 'medium', 'large' ],
153
- rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
151
+ rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
154
152
 
155
153
  fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
156
154
 
@@ -1,4 +1,4 @@
1
- import { globalDefaultProps } from '../component';
1
+ 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';
@@ -76,17 +76,15 @@ function DateTimePickerStatic(props) {
76
76
  'k-widget',
77
77
  'k-datetimepicker',
78
78
  {
79
+ 'k-state-hover': hover === true,
80
+ 'k-state-focus': focus === true,
81
+ 'k-state-invalid': invalid === true,
79
82
  'k-state-disabled': disabled === true
80
83
  }
81
84
  ];
82
85
 
83
86
  let legacyWrapClasses = [
84
- 'k-picker-wrap',
85
- {
86
- 'k-state-hover': hover === true,
87
- 'k-state-focused': focus === true,
88
- 'k-state-invalid': invalid === true
89
- }
87
+ 'k-picker-wrap'
90
88
  ];
91
89
 
92
90
  return (
@@ -150,7 +148,7 @@ DateTimePickerStatic.propTypes = {
150
148
  suffix: typeof '#fragment',
151
149
 
152
150
  size: typeof [ null, 'small', 'medium', 'large' ],
153
- rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
151
+ rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
154
152
 
155
153
  fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
156
154
 
@@ -1,4 +1,4 @@
1
- import { globalDefaultProps } from '../component';
1
+ 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';
@@ -88,17 +88,15 @@ function DropdownListStatic(props) {
88
88
  'k-widget',
89
89
  'k-dropdown',
90
90
  {
91
+ 'k-state-hover': hover === true,
92
+ 'k-state-focus': focus === true,
93
+ 'k-state-invalid': invalid === true,
91
94
  'k-state-disabled': disabled === true
92
95
  }
93
96
  ];
94
97
 
95
98
  let legacyWrapClasses = [
96
- 'k-dropdown-wrap',
97
- {
98
- 'k-state-hover': hover === true,
99
- 'k-state-focused': focus === true,
100
- 'k-state-invalid': invalid === true
101
- }
99
+ 'k-dropdown-wrap'
102
100
  ];
103
101
 
104
102
  return (
@@ -172,7 +170,7 @@ DropdownListStatic.propTypes = {
172
170
  suffix: typeof '#fragment',
173
171
 
174
172
  size: typeof [ null, 'small', 'medium', 'large' ],
175
- rounded: typeof [ null, 'small', 'medium', 'large', 'pill' ],
173
+ rounded: typeof [ null, 'small', 'medium', 'large', 'full' ],
176
174
 
177
175
  fillMode: typeof [ null, 'solid', 'flat', 'outline' ],
178
176
 
@@ -0,0 +1,19 @@
1
+ ```html
2
+ <!-- default rendering -->
3
+ <button type="button" class="k-fab k-fab-rectangle k-fab-md k-rounded-full k-fab-solid k-fab-solid-primary">
4
+ <span class="k-fab-icon k-icon k-i-plus"></span>
5
+ <span class="k-fab-text">Create</span>
6
+ </button>
7
+
8
+ <!-- canonical rendering -->
9
+ <button class="
10
+ k-fab
11
+ k-fab-{size}
12
+ k-fab-{rounded}
13
+ k-fab-{fillMode}
14
+ k-fab-{fillMode}-{themeColor}
15
+ ">
16
+ {icon !== '' && <span class="k-fab-icon k-icon k-i-{icon}"></span>}
17
+ {text !== '' && <span class="k-fab-text">{text}</span>}
18
+ </button>
19
+ ```