@progress/kendo-angular-buttons 8.0.0-next.202204010825 → 8.0.0-next.202204060705

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.
@@ -66,7 +66,7 @@ export declare class ButtonDirective implements OnDestroy, AfterViewInit {
66
66
  * * `'small'`
67
67
  * * `'medium'` (default)
68
68
  * * `'large'`
69
- * * `null`
69
+ * * `none`
70
70
  */
71
71
  set size(size: ButtonSize);
72
72
  get size(): ButtonSize;
@@ -79,7 +79,7 @@ export declare class ButtonDirective implements OnDestroy, AfterViewInit {
79
79
  * * `'medium'` (default)
80
80
  * * `'large'`
81
81
  * * `'full'`
82
- * * `null`
82
+ * * `none`
83
83
  */
84
84
  set rounded(rounded: ButtonRounded);
85
85
  get rounded(): ButtonRounded;
@@ -93,7 +93,7 @@ export declare class ButtonDirective implements OnDestroy, AfterViewInit {
93
93
  * * `'outline'`
94
94
  * * `'clear'`
95
95
  * * `'link'`
96
- * * `null`
96
+ * * `none`
97
97
  */
98
98
  set fillMode(fillMode: ButtonFillMode);
99
99
  get fillMode(): ButtonFillMode;
@@ -35,7 +35,7 @@ export declare class ChipListComponent implements OnInit, AfterViewInit, AfterCo
35
35
  * * `'small'`
36
36
  * * `'medium'` (default)
37
37
  * * `'large'`
38
- * * `null`
38
+ * * `none`
39
39
  */
40
40
  set size(size: ChipListSize);
41
41
  get size(): ChipListSize;
@@ -64,7 +64,7 @@ export declare class ChipComponent implements OnInit, AfterViewInit {
64
64
  * * `'small'`
65
65
  * * `'medium'` (default)
66
66
  * * `'large'`
67
- * * `null`
67
+ * * `none`
68
68
  */
69
69
  set size(size: ChipSize);
70
70
  get size(): ChipSize;
@@ -77,7 +77,7 @@ export declare class ChipComponent implements OnInit, AfterViewInit {
77
77
  * * `'medium'` (default)
78
78
  * * `'large'`
79
79
  * * `'full'`
80
- * * `null`
80
+ * * `none`
81
81
  */
82
82
  set rounded(rounded: ChipRounded);
83
83
  get rounded(): ChipRounded;
@@ -88,7 +88,7 @@ export declare class ChipComponent implements OnInit, AfterViewInit {
88
88
  * The possible values are:
89
89
  * * `'solid'` (default)
90
90
  * * `'outline'`
91
- * * `null`
91
+ * * `none`
92
92
  */
93
93
  set fillMode(fillMode: ChipFillMode);
94
94
  get fillMode(): ChipFillMode;
@@ -103,7 +103,7 @@ export declare class ChipComponent implements OnInit, AfterViewInit {
103
103
  * * `'success'`
104
104
  * * `'warning'`
105
105
  * * `'error'`
106
- * * `null`
106
+ * * `none`
107
107
  */
108
108
  set themeColor(themeColor: ChipThemeColor);
109
109
  get themeColor(): ChipThemeColor;
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * Represents the possible fillMode options of the buttons.
7
7
  */
8
- export declare type ButtonFillMode = 'solid' | 'flat' | 'outline' | 'link' | 'clear';
8
+ export declare type ButtonFillMode = 'solid' | 'flat' | 'outline' | 'link' | 'clear' | 'none';
9
9
  /**
10
10
  * Represents the possible fillMode options of the Chip.
11
11
  */
12
- export declare type ChipFillMode = 'solid' | 'outline';
12
+ export declare type ChipFillMode = 'solid' | 'outline' | 'none';
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * Represents the possible rounded options of the buttons.
7
7
  */
8
- export declare type ButtonRounded = 'small' | 'medium' | 'large' | 'full';
8
+ export declare type ButtonRounded = 'small' | 'medium' | 'large' | 'full' | 'none';
9
9
  /**
10
10
  * Represents the possible rounded options of the Chip.
11
11
  */
12
- export declare type ChipRounded = 'small' | 'medium' | 'large' | 'full';
12
+ export declare type ChipRounded = 'small' | 'medium' | 'large' | 'full' | 'none';
@@ -6,11 +6,11 @@
6
6
  * Specifies the possible sizes of the buttons.
7
7
  *
8
8
  */
9
- export declare type ButtonSize = 'small' | 'medium' | 'large';
9
+ export declare type ButtonSize = 'small' | 'medium' | 'large' | 'none';
10
10
  /**
11
11
  * Specifies the possible sizes of the Chip.
12
12
  */
13
- export declare type ChipSize = 'small' | 'medium' | 'large';
13
+ export declare type ChipSize = 'small' | 'medium' | 'large' | 'none';
14
14
  /**
15
15
  * Specifies the possible gap between Chips in a ChipList.
16
16
  */
@@ -19,7 +19,7 @@
19
19
  * * `inverse`— Applies coloring based on the `inverse` theme color.
20
20
  *
21
21
  */
22
- export declare type ButtonThemeColor = 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
22
+ export declare type ButtonThemeColor = 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse' | 'none';
23
23
  /**
24
24
  * Specifies the possible theme colors of the Chip.
25
25
  *
@@ -30,4 +30,4 @@ export declare type ButtonThemeColor = 'base' | 'primary' | 'secondary' | 'terti
30
30
  * * `warning`— Applies coloring based on the `warning` theme color.
31
31
  * * `error`— Applies coloring based on the `error` theme color.
32
32
  */
33
- export declare type ChipThemeColor = 'base' | 'info' | 'success' | 'warning' | 'error';
33
+ export declare type ChipThemeColor = 'base' | 'info' | 'success' | 'warning' | 'error' | 'none';
@@ -94,7 +94,7 @@ export declare class DropDownButtonComponent extends ListButton implements OnCha
94
94
  * * `'small'`
95
95
  * * `'medium'` (default)
96
96
  * * `'large'`
97
- * * `null`
97
+ * * `none`
98
98
  */
99
99
  size: ButtonSize;
100
100
  /**
@@ -106,7 +106,7 @@ export declare class DropDownButtonComponent extends ListButton implements OnCha
106
106
  * The possible values are:
107
107
  * * `'rectangle'` (default)
108
108
  * * `'square'`
109
- * * `null`
109
+ * * `none`
110
110
  */
111
111
  shape: ButtonShape;
112
112
  /**
@@ -118,7 +118,7 @@ export declare class DropDownButtonComponent extends ListButton implements OnCha
118
118
  * * `'medium'` (default)
119
119
  * * `'large'`
120
120
  * * `'full'`
121
- * * `null`
121
+ * * `none`
122
122
  */
123
123
  rounded: ButtonRounded;
124
124
  /**
@@ -130,7 +130,7 @@ export declare class DropDownButtonComponent extends ListButton implements OnCha
130
130
  * * `flat`
131
131
  * * `outline`
132
132
  * * `link`
133
- * * `null`
133
+ * * `none`
134
134
  */
135
135
  set fillMode(fillMode: ButtonFillMode);
136
136
  get fillMode(): ButtonFillMode;
@@ -151,7 +151,7 @@ export declare class DropDownButtonComponent extends ListButton implements OnCha
151
151
  * * `dark`— Applies coloring based on the `dark` theme color.
152
152
  * * `light`— Applies coloring based on the `light` theme color.
153
153
  * * `inverse`— Applies coloring based on the `inverse` theme color.
154
- * * `null` —Removes the default CSS class (no class would be rendered).
154
+ * * `none` —Removes the default CSS class (no class would be rendered).
155
155
  */
156
156
  themeColor: ButtonThemeColor;
157
157
  /**
@@ -154,11 +154,12 @@ export class ButtonDirective {
154
154
  * * `'small'`
155
155
  * * `'medium'` (default)
156
156
  * * `'large'`
157
- * * `null`
157
+ * * `none`
158
158
  */
159
159
  set size(size) {
160
- this.handleClasses(size, 'size');
161
- this._size = size;
160
+ const sizeValue = size ? size : 'medium';
161
+ this.handleClasses(sizeValue, 'size');
162
+ this._size = sizeValue;
162
163
  }
163
164
  get size() {
164
165
  return this._size;
@@ -172,11 +173,12 @@ export class ButtonDirective {
172
173
  * * `'medium'` (default)
173
174
  * * `'large'`
174
175
  * * `'full'`
175
- * * `null`
176
+ * * `none`
176
177
  */
177
178
  set rounded(rounded) {
178
- this.handleClasses(rounded, 'rounded');
179
- this._rounded = rounded;
179
+ const roundedValue = rounded ? rounded : 'medium';
180
+ this.handleClasses(roundedValue, 'rounded');
181
+ this._rounded = roundedValue;
180
182
  }
181
183
  get rounded() {
182
184
  return this._rounded;
@@ -191,11 +193,12 @@ export class ButtonDirective {
191
193
  * * `'outline'`
192
194
  * * `'clear'`
193
195
  * * `'link'`
194
- * * `null`
196
+ * * `none`
195
197
  */
196
198
  set fillMode(fillMode) {
197
- this.handleClasses(fillMode, 'fillMode');
198
- this._fillMode = fillMode;
199
+ const fillModeValue = fillMode ? fillMode : 'solid';
200
+ this.handleClasses(fillModeValue, 'fillMode');
201
+ this._fillMode = fillModeValue;
199
202
  }
200
203
  get fillMode() {
201
204
  return this._fillMode;
@@ -219,8 +222,9 @@ export class ButtonDirective {
219
222
  * * `'inverse'`
220
223
  */
221
224
  set themeColor(themeColor) {
222
- this.handleThemeColor(themeColor);
223
- this._themeColor = themeColor;
225
+ const themeColorValue = themeColor ? themeColor : 'base';
226
+ this.handleThemeColor(themeColorValue);
227
+ this._themeColor = themeColorValue;
224
228
  }
225
229
  get themeColor() {
226
230
  return this._themeColor;
@@ -521,7 +525,7 @@ export class ButtonDirective {
521
525
  const addFillMode = fillMode ? fillMode : this.fillMode;
522
526
  const themeColorClass = getThemeColorClasses('button', removeFillMode, addFillMode, this.themeColor, value);
523
527
  this.renderer.removeClass(elem, themeColorClass.toRemove);
524
- if (addFillMode !== null && fillMode !== null) {
528
+ if (addFillMode !== 'none' && fillMode !== 'none') {
525
529
  if (themeColorClass.toAdd) {
526
530
  this.renderer.addClass(elem, themeColorClass.toAdd);
527
531
  }
@@ -46,11 +46,12 @@ export class ChipListComponent {
46
46
  * * `'small'`
47
47
  * * `'medium'` (default)
48
48
  * * `'large'`
49
- * * `null`
49
+ * * `none`
50
50
  */
51
51
  set size(size) {
52
- this.handleClasses(size, 'size');
53
- this._size = size;
52
+ const sizeValue = size ? size : 'medium';
53
+ this.handleClasses(sizeValue, 'size');
54
+ this._size = sizeValue;
54
55
  }
55
56
  get size() {
56
57
  return this._size;
@@ -62,11 +62,12 @@ export class ChipComponent {
62
62
  * * `'small'`
63
63
  * * `'medium'` (default)
64
64
  * * `'large'`
65
- * * `null`
65
+ * * `none`
66
66
  */
67
67
  set size(size) {
68
- this.handleClasses(size, 'size');
69
- this._size = size;
68
+ const sizeValue = size ? size : 'medium';
69
+ this.handleClasses(sizeValue, 'size');
70
+ this._size = sizeValue;
70
71
  }
71
72
  get size() {
72
73
  return this._size;
@@ -80,11 +81,12 @@ export class ChipComponent {
80
81
  * * `'medium'` (default)
81
82
  * * `'large'`
82
83
  * * `'full'`
83
- * * `null`
84
+ * * `none`
84
85
  */
85
86
  set rounded(rounded) {
86
- this.handleClasses(rounded, 'rounded');
87
- this._rounded = rounded;
87
+ const roundedValue = rounded ? rounded : 'medium';
88
+ this.handleClasses(roundedValue, 'rounded');
89
+ this._rounded = roundedValue;
88
90
  }
89
91
  get rounded() {
90
92
  return this._rounded;
@@ -96,11 +98,12 @@ export class ChipComponent {
96
98
  * The possible values are:
97
99
  * * `'solid'` (default)
98
100
  * * `'outline'`
99
- * * `null`
101
+ * * `none`
100
102
  */
101
103
  set fillMode(fillMode) {
102
- this.handleClasses(fillMode, 'fillMode');
103
- this._fillMode = fillMode;
104
+ const fillModeValue = fillMode ? fillMode : 'solid';
105
+ this.handleClasses(fillModeValue, 'fillMode');
106
+ this._fillMode = fillModeValue;
104
107
  }
105
108
  get fillMode() {
106
109
  return this._fillMode;
@@ -116,11 +119,12 @@ export class ChipComponent {
116
119
  * * `'success'`
117
120
  * * `'warning'`
118
121
  * * `'error'`
119
- * * `null`
122
+ * * `none`
120
123
  */
121
124
  set themeColor(themeColor) {
122
- this.handleThemeColor(themeColor);
123
- this._themeColor = themeColor;
125
+ const themeColorValue = themeColor ? themeColor : 'base';
126
+ this.handleThemeColor(themeColorValue);
127
+ this._themeColor = themeColorValue;
124
128
  }
125
129
  get themeColor() {
126
130
  return this._themeColor;
@@ -267,7 +271,7 @@ export class ChipComponent {
267
271
  const addFillMode = fillMode ? fillMode : this.fillMode;
268
272
  const themeColorClass = getThemeColorClasses('chip', removeFillMode, addFillMode, this.themeColor, value);
269
273
  this.renderer.removeClass(elem, themeColorClass.toRemove);
270
- if (addFillMode !== null && fillMode !== null) {
274
+ if (addFillMode !== 'none' && fillMode !== 'none') {
271
275
  if (themeColorClass.toAdd) {
272
276
  this.renderer.addClass(elem, themeColorClass.toAdd);
273
277
  }
@@ -81,7 +81,7 @@ export class DropDownButtonComponent extends ListButton {
81
81
  * * `'small'`
82
82
  * * `'medium'` (default)
83
83
  * * `'large'`
84
- * * `null`
84
+ * * `none`
85
85
  */
86
86
  this.size = 'medium';
87
87
  /**
@@ -93,7 +93,7 @@ export class DropDownButtonComponent extends ListButton {
93
93
  * The possible values are:
94
94
  * * `'rectangle'` (default)
95
95
  * * `'square'`
96
- * * `null`
96
+ * * `none`
97
97
  */
98
98
  this.shape = 'rectangle';
99
99
  /**
@@ -105,7 +105,7 @@ export class DropDownButtonComponent extends ListButton {
105
105
  * * `'medium'` (default)
106
106
  * * `'large'`
107
107
  * * `'full'`
108
- * * `null`
108
+ * * `none`
109
109
  */
110
110
  this.rounded = 'medium';
111
111
  /**
@@ -125,7 +125,7 @@ export class DropDownButtonComponent extends ListButton {
125
125
  * * `dark`— Applies coloring based on the `dark` theme color.
126
126
  * * `light`— Applies coloring based on the `light` theme color.
127
127
  * * `inverse`— Applies coloring based on the `inverse` theme color.
128
- * * `null` —Removes the default CSS class (no class would be rendered).
128
+ * * `none` —Removes the default CSS class (no class would be rendered).
129
129
  */
130
130
  this.themeColor = 'base';
131
131
  /**
@@ -206,7 +206,7 @@ export class DropDownButtonComponent extends ListButton {
206
206
  * * `flat`
207
207
  * * `outline`
208
208
  * * `link`
209
- * * `null`
209
+ * * `none`
210
210
  */
211
211
  set fillMode(fillMode) {
212
212
  this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
@@ -74,6 +74,7 @@ DialItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
74
74
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialItemComponent, decorators: [{
75
75
  type: Component,
76
76
  args: [{
77
+ // eslint-disable-next-line @angular-eslint/component-selector
77
78
  selector: '[kendoDialItem]',
78
79
  template: `
79
80
  <ng-template *ngIf="dialItemTemplate"
@@ -53,6 +53,7 @@ DialListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
53
53
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DialListComponent, decorators: [{
54
54
  type: Component,
55
55
  args: [{
56
+ // eslint-disable-next-line @angular-eslint/component-selector
56
57
  selector: '[kendoDialList]',
57
58
  template: `
58
59
  <ng-container *ngFor='let item of dialItems; let idx = index'>
@@ -166,8 +166,9 @@ export class FloatingActionButtonComponent {
166
166
  * * `'inverse'`&mdash; Applies coloring based on the `inverse` theme color.
167
167
  */
168
168
  set themeColor(themeColor) {
169
- this.handleClasses(themeColor, 'themeColor');
170
- this._themeColor = themeColor;
169
+ const themeColorValue = themeColor ? themeColor : 'primary';
170
+ this.handleClasses(themeColorValue, 'themeColor');
171
+ this._themeColor = themeColorValue;
171
172
  }
172
173
  get themeColor() {
173
174
  return this._themeColor;
@@ -182,8 +183,9 @@ export class FloatingActionButtonComponent {
182
183
  * * `'large'`
183
184
  */
184
185
  set size(size) {
185
- this.handleClasses(size, 'size');
186
- this._size = size;
186
+ const sizeValue = size ? size : 'medium';
187
+ this.handleClasses(sizeValue, 'size');
188
+ this._size = sizeValue;
187
189
  }
188
190
  get size() {
189
191
  return this._size;
@@ -196,11 +198,12 @@ export class FloatingActionButtonComponent {
196
198
  * * `'medium'`
197
199
  * * `'large'`
198
200
  * * `'full'` (default)
199
- * * `null`
201
+ * * `none`
200
202
  */
201
203
  set rounded(rounded) {
202
- this.handleClasses(rounded, 'rounded');
203
- this._rounded = rounded;
204
+ const roundedValue = rounded ? rounded : 'medium';
205
+ this.handleClasses(roundedValue, 'rounded');
206
+ this._rounded = roundedValue;
204
207
  }
205
208
  get rounded() {
206
209
  return this._rounded;
@@ -313,7 +316,12 @@ export class FloatingActionButtonComponent {
313
316
  if (this.disabled || shouldOpen === this.isOpen) {
314
317
  return;
315
318
  }
316
- shouldOpen ? setTimeout(() => this.openDial()) : this.closeDial();
319
+ if (shouldOpen) {
320
+ setTimeout(() => this.openDial());
321
+ }
322
+ else {
323
+ this.closeDial();
324
+ }
317
325
  }
318
326
  /**
319
327
  * @hidden
@@ -422,7 +430,7 @@ export class FloatingActionButtonComponent {
422
430
  rounded: ROUNDED_CLASSES[this.rounded]
423
431
  };
424
432
  const classesToAdd = {
425
- themeColor: inputValue ? `${FILLMODE_CLASS}-${inputValue}` : null,
433
+ themeColor: inputValue !== 'none' ? `${FILLMODE_CLASS}-${inputValue}` : '',
426
434
  size: SIZE_CLASSES[inputValue],
427
435
  rounded: ROUNDED_CLASSES[inputValue]
428
436
  };
@@ -489,11 +497,21 @@ export class FloatingActionButtonComponent {
489
497
  return;
490
498
  }
491
499
  const event = new PreventableEvent();
492
- open ? this.open.emit(event) : this.close.emit(event);
500
+ if (open) {
501
+ this.open.emit(event);
502
+ }
503
+ else {
504
+ this.close.emit(event);
505
+ }
493
506
  if (event.isDefaultPrevented()) {
494
507
  return;
495
508
  }
496
- open ? this.openDial() : this.closeDial();
509
+ if (open) {
510
+ this.openDial();
511
+ }
512
+ else {
513
+ this.closeDial();
514
+ }
497
515
  }
498
516
  openPopup() {
499
517
  if (this.isOpen) {
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-buttons',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1648801456,
12
+ publishDate: 1649228657,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -15,6 +15,7 @@ Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
15
15
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, decorators: [{
16
16
  type: Directive,
17
17
  args: [{
18
+ // eslint-disable-next-line @angular-eslint/directive-selector
18
19
  selector: 'kendo-splitbutton-messages-base'
19
20
  }]
20
21
  }], propDecorators: { splitButtonLabel: [{
@@ -109,7 +109,7 @@ export class SplitButtonComponent extends ListButton {
109
109
  * * `'small'`
110
110
  * * `'medium'` (default)
111
111
  * * `'large'`
112
- * * `null`
112
+ * * `none`
113
113
  */
114
114
  this.size = 'medium';
115
115
  /**
@@ -229,11 +229,12 @@ export class SplitButtonComponent extends ListButton {
229
229
  * * `'medium'` (default)
230
230
  * * `'large'`
231
231
  * * `'full'`
232
- * * `null`
232
+ * * `none`
233
233
  */
234
234
  set rounded(rounded) {
235
- this.handleClasses(rounded, 'rounded');
236
- this._rounded = rounded;
235
+ const roundedValue = rounded ? rounded : 'medium';
236
+ this.handleClasses(roundedValue, 'rounded');
237
+ this._rounded = roundedValue;
237
238
  }
238
239
  get rounded() {
239
240
  return this._rounded;
@@ -249,7 +250,8 @@ export class SplitButtonComponent extends ListButton {
249
250
  * * `link`
250
251
  */
251
252
  set fillMode(fillMode) {
252
- this._fillMode = fillMode === 'clear' ? 'flat' : fillMode;
253
+ const fillModeValue = fillMode ? fillMode : 'solid';
254
+ this._fillMode = fillMode === 'clear' ? 'flat' : fillModeValue;
253
255
  }
254
256
  get fillMode() {
255
257
  return this._fillMode;
@@ -431,6 +433,16 @@ export class SplitButtonComponent extends ListButton {
431
433
  * @hidden
432
434
  */
433
435
  ngOnChanges(changes) {
436
+ if (changes.size) {
437
+ if (!changes.size.currentValue) {
438
+ this.size = 'medium';
439
+ }
440
+ }
441
+ if (changes.themeColor) {
442
+ if (!changes.themeColor.currentValue) {
443
+ this.themeColor = 'base';
444
+ }
445
+ }
434
446
  if (changes.hasOwnProperty('text')) {
435
447
  this.updateButtonText();
436
448
  }
package/esm2015/util.js CHANGED
@@ -67,17 +67,17 @@ export const getStylingClasses = (componentType, stylingOption, previousValue, n
67
67
  case 'size':
68
68
  return {
69
69
  toRemove: `k-${componentType}-${SIZES[previousValue]}`,
70
- toAdd: newValue ? `k-${componentType}-${SIZES[newValue]}` : null
70
+ toAdd: newValue !== 'none' ? `k-${componentType}-${SIZES[newValue]}` : ''
71
71
  };
72
72
  case 'rounded':
73
73
  return {
74
74
  toRemove: `k-rounded-${ROUNDNESS[previousValue]}`,
75
- toAdd: newValue ? `k-rounded-${ROUNDNESS[newValue]}` : null
75
+ toAdd: newValue !== 'none' ? `k-rounded-${ROUNDNESS[newValue]}` : ''
76
76
  };
77
77
  case 'fillMode':
78
78
  return {
79
79
  toRemove: `k-${componentType}-${previousValue}`,
80
- toAdd: newValue ? `k-${componentType}-${newValue}` : null
80
+ toAdd: newValue !== 'none' ? `k-${componentType}-${newValue}` : ''
81
81
  };
82
82
  default:
83
83
  break;
@@ -91,7 +91,7 @@ export const getStylingClasses = (componentType, stylingOption, previousValue, n
91
91
  export const getThemeColorClasses = (componentType, prevFillMode, fillMode, previousValue, newValue) => {
92
92
  return {
93
93
  toRemove: `k-${componentType}-${prevFillMode}-${previousValue}`,
94
- toAdd: newValue ? `k-${componentType}-${fillMode}-${newValue}` : null
94
+ toAdd: newValue !== 'none' ? `k-${componentType}-${fillMode}-${newValue}` : ''
95
95
  };
96
96
  };
97
97
  /**