@clayui/css 3.133.0 → 3.135.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 (42) hide show
  1. package/lib/css/atlas.css +92 -32
  2. package/lib/css/atlas.css.map +1 -1
  3. package/lib/css/base.css +93 -32
  4. package/lib/css/base.css.map +1 -1
  5. package/lib/css/cadmin.css +39 -33
  6. package/lib/css/cadmin.css.map +1 -1
  7. package/lib/images/icons/flags-en-IE.svg +12 -0
  8. package/lib/images/icons/flags-en-LV.svg +11 -0
  9. package/lib/images/icons/flags-my-MM.svg +13 -0
  10. package/lib/images/icons/icons.svg +1 -1
  11. package/package.json +2 -2
  12. package/src/images/icons/flags-en-IE.svg +12 -0
  13. package/src/images/icons/flags-en-LV.svg +11 -0
  14. package/src/images/icons/flags-my-MM.svg +13 -0
  15. package/src/scss/_license-text.scss +1 -1
  16. package/src/scss/atlas/variables/_labels.scss +1 -0
  17. package/src/scss/atlas/variables/_modals.scss +1 -0
  18. package/src/scss/cadmin/variables/_labels.scss +4 -5
  19. package/src/scss/cadmin/variables/_modals.scss +18 -2
  20. package/src/scss/cadmin/variables/_utilities.scss +7 -0
  21. package/src/scss/functions/_lx-icons-generated.scss +6 -0
  22. package/src/scss/mixins/_forms.scss +690 -432
  23. package/src/scss/mixins/_input-groups.scss +222 -107
  24. package/src/scss/mixins/_labels.scss +100 -48
  25. package/src/scss/mixins/_menubar.scss +131 -60
  26. package/src/scss/mixins/_modals.scss +36 -20
  27. package/src/scss/mixins/_nav.scss +86 -34
  28. package/src/scss/mixins/_navbar.scss +436 -270
  29. package/src/scss/mixins/_pagination.scss +241 -151
  30. package/src/scss/mixins/_panels.scss +86 -51
  31. package/src/scss/mixins/_popovers.scss +82 -32
  32. package/src/scss/mixins/_sheet.scss +19 -7
  33. package/src/scss/mixins/_sidebar.scss +195 -89
  34. package/src/scss/mixins/_slideout.scss +96 -46
  35. package/src/scss/mixins/_stickers.scss +86 -39
  36. package/src/scss/mixins/_tables.scss +527 -308
  37. package/src/scss/mixins/_tbar.scss +165 -87
  38. package/src/scss/mixins/_toggle-switch.scss +705 -380
  39. package/src/scss/mixins/_tooltip.scss +53 -21
  40. package/src/scss/variables/_labels.scss +4 -5
  41. package/src/scss/variables/_modals.scss +18 -2
  42. package/src/scss/variables/_utilities.scss +6 -0
@@ -55,403 +55,598 @@
55
55
  $enabled: setter(map-get($map, enabled), true);
56
56
 
57
57
  @if ($enabled) {
58
- @include clay-css($map);
58
+ @if (length($map) != 0) {
59
+ @include clay-css($map);
60
+ }
59
61
 
60
- thead {
61
- $_thead: setter(map-get($map, thead), ());
62
+ $_thead: map-get($map, thead);
62
63
 
63
- @include clay-css($_thead);
64
+ @if ($_thead) {
65
+ thead {
66
+ @include clay-css($_thead);
64
67
 
65
- th,
66
- td {
67
- $_thead-table-cell: setter(
68
- map-get($_thead, table-cell),
69
- ()
70
- );
68
+ $_thead-table-cell: map-get($_thead, table-cell);
71
69
 
72
- @include clay-css($_thead-table-cell);
70
+ @if ($_thead-table-cell) {
71
+ th,
72
+ td {
73
+ @include clay-css($_thead-table-cell);
73
74
 
74
- &:hover {
75
- @include clay-css(map-get($_thead-table-cell, hover));
76
- }
75
+ $_hover: map-get($_thead-table-cell, hover);
77
76
 
78
- &:first-child {
79
- @include clay-css(
80
- map-get($_thead-table-cell, table-column-start)
81
- );
82
- }
77
+ @if ($_hover) {
78
+ &:hover {
79
+ @include clay-css($_hover);
80
+ }
81
+ }
83
82
 
84
- &:last-child {
85
- @include clay-css(
86
- map-get($_thead-table-cell, table-column-end)
87
- );
88
- }
83
+ $_first-child: map-get(
84
+ $_thead-table-cell,
85
+ table-column-start
86
+ );
89
87
 
90
- .component-action {
91
- @include clay-css(
92
- map-get($_thead-table-cell, component-action)
93
- );
94
- }
95
- }
88
+ @if ($_first-child) {
89
+ &:first-child {
90
+ @include clay-css($_first-child);
91
+ }
92
+ }
96
93
 
97
- th {
98
- @include clay-css(map-deep-get($map, thead, th));
94
+ $_last-child: map-get(
95
+ $_thead-table-cell,
96
+ table-column-end
97
+ );
99
98
 
100
- a[href] {
101
- @include clay-link(map-deep-get($map, thead, th, href));
99
+ @if ($_last-child) {
100
+ &:last-child {
101
+ @include clay-css($_last-child);
102
+ }
103
+ }
104
+
105
+ $_component-action: map-get(
106
+ $_thead-table-cell,
107
+ component-action
108
+ );
109
+
110
+ @if ($_component-action) {
111
+ .component-action {
112
+ @include clay-css($_component-action);
113
+ }
114
+ }
115
+ }
102
116
  }
103
- }
104
117
 
105
- .autofit-col {
106
- $_autofit-col: setter(map-get($_thead, autofit-col), ());
118
+ $_th: map-get($_thead, th);
107
119
 
108
- @include clay-css($_autofit-col);
120
+ @if ($_th) {
121
+ th {
122
+ @include clay-css($_th);
109
123
 
110
- &:first-child {
111
- $_first-child: setter(
112
- map-get($_autofit-col, first-child),
113
- ()
114
- );
124
+ $_href: map-get($_th, href);
115
125
 
116
- @include clay-css($_first-child);
126
+ @if ($_href) {
127
+ a[href] {
128
+ @include clay-link($_href);
129
+ }
130
+ }
131
+ }
117
132
  }
118
133
 
119
- &:last-child {
120
- $_last-child: setter(
121
- map-get($_autofit-col, last-child),
122
- ()
123
- );
134
+ $_autofit-col: map-get($_thead, autofit-col);
135
+
136
+ @if ($_autofit-col) {
137
+ .autofit-col {
138
+ @include clay-css($_autofit-col);
139
+
140
+ $_first-child: map-get($_autofit-col, first-child);
141
+
142
+ @if ($_first-child) {
143
+ &:first-child {
144
+ @include clay-css($_first-child);
145
+ }
146
+ }
124
147
 
125
- @include clay-css($_last-child);
148
+ $_last-child: map-get($_autofit-col, last-child);
149
+
150
+ @if ($_last-child) {
151
+ &:last-child {
152
+ @include clay-css($_last-child);
153
+ }
154
+ }
155
+ }
126
156
  }
127
157
  }
128
158
  }
129
159
 
130
- th,
131
- td {
132
- @include clay-css(map-get($map, table-cell));
160
+ $_table-cell: map-get($map, table-cell);
161
+
162
+ @if ($_table-cell) {
163
+ th,
164
+ td {
165
+ @include clay-css($_table-cell);
133
166
 
134
- a[href] {
135
- @include clay-link(map-deep-get($map, table-cell, href));
167
+ $_href: map-get($_table-cell, href);
168
+
169
+ @if ($_href) {
170
+ a[href] {
171
+ @include clay-link($_href);
172
+ }
173
+ }
136
174
  }
137
175
  }
138
176
 
139
- th:first-child,
140
- td:first-child,
141
- .table-column-start {
142
- @include clay-css(map-get($map, table-column-start));
177
+ $_table-column-start: map-get($map, table-column-start);
178
+
179
+ @if ($_table-column-start) {
180
+ th:first-child,
181
+ td:first-child,
182
+ .table-column-start {
183
+ @include clay-css($_table-column-start);
184
+ }
143
185
  }
144
186
 
145
- th:last-child,
146
- td:last-child,
147
- .table-column-end {
148
- @include clay-css(map-get($map, table-column-end));
187
+ $_table-column-end: map-get($map, table-column-end);
188
+
189
+ @if ($_table-column-end) {
190
+ th:last-child,
191
+ td:last-child,
192
+ .table-column-end {
193
+ @include clay-css($_table-column-end);
194
+ }
149
195
  }
150
196
 
151
- th {
152
- @include clay-css(map-get($map, th));
197
+ $_th: map-get($map, th);
198
+
199
+ @if ($_th) {
200
+ th {
201
+ @include clay-css($_th);
202
+ }
153
203
  }
154
204
 
155
- td {
156
- @include clay-css(map-get($map, td));
205
+ $_td: map-get($map, td);
206
+
207
+ @if ($_td) {
208
+ td {
209
+ @include clay-css($_td);
210
+ }
157
211
  }
158
212
 
159
- thead:first-child,
160
- tbody:first-child,
161
- tfoot:first-child,
162
- caption:first-child + thead {
163
- tr:first-child {
164
- @include clay-css(map-get($map, table-row-start));
213
+ $_table-row-start: map-get($map, table-row-start);
165
214
 
166
- th,
167
- td {
168
- @include clay-css(
169
- map-deep-get($map, table-row-start, table-cell)
170
- );
215
+ @if ($_table-row-start) {
216
+ thead:first-child,
217
+ tbody:first-child,
218
+ tfoot:first-child,
219
+ caption:first-child + thead {
220
+ tr:first-child {
221
+ @include clay-css($_table-row-start);
171
222
 
172
- &:first-child {
173
- @include clay-css(
174
- map-deep-get(
175
- $map,
176
- table-row-start,
223
+ $_table-cell: map-get($_table-row-start, table-cell);
224
+
225
+ @if ($_table-cell) {
226
+ th,
227
+ td {
228
+ @include clay-css($_table-cell);
229
+
230
+ $_table-cell-start: map-get(
231
+ $_table-row-start,
177
232
  table-cell-start
178
- )
179
- );
180
- }
233
+ );
181
234
 
182
- &:last-child {
183
- @include clay-css(
184
- map-deep-get(
185
- $map,
186
- table-row-start,
235
+ @if ($_table-cell-start) {
236
+ &:first-child {
237
+ @include clay-css($_table-cell-start);
238
+ }
239
+ }
240
+
241
+ $_table-cell-end: map-get(
242
+ $_table-row-start,
187
243
  table-cell-end
188
- )
189
- );
244
+ );
245
+
246
+ @if ($_table-cell-end) {
247
+ &:last-child {
248
+ @include clay-css($_table-cell-end);
249
+ }
250
+ }
251
+ }
190
252
  }
191
253
  }
192
254
  }
193
- }
194
255
 
195
- .table-row-start {
196
- @include clay-css(map-get($map, table-row-start));
256
+ .table-row-start {
257
+ @include clay-css($_table-row-start);
197
258
 
198
- .table-cell-start {
199
- @include clay-css(
200
- map-deep-get($map, table-row-start, table-cell-start)
259
+ $_table-cell-start: map-get(
260
+ $_table-row-start,
261
+ table-cell-start
201
262
  );
202
- }
203
263
 
204
- .table-cell-end {
205
- @include clay-css(
206
- map-deep-get($map, table-row-start, table-cell-end)
264
+ @if ($_table-cell-start) {
265
+ .table-cell-start {
266
+ @include clay-css($_table-cell-start);
267
+ }
268
+ }
269
+
270
+ $_table-cell-end: map-get(
271
+ $_table-row-start,
272
+ table-cell-end
207
273
  );
274
+
275
+ @if ($_table-cell-end) {
276
+ .table-cell-end {
277
+ @include clay-css($_table-cell-end);
278
+ }
279
+ }
208
280
  }
209
281
  }
210
282
 
211
- thead:last-child,
212
- tbody:last-child,
213
- tfoot:last-child {
214
- tr:last-child {
215
- @include clay-css(map-get($map, table-row-end));
283
+ $_table-row-end: map-get($map, table-row-end);
216
284
 
217
- th,
218
- td {
219
- &:first-child {
220
- @include clay-css(
221
- map-deep-get(
222
- $map,
223
- table-row-end,
224
- table-cell-start
225
- )
285
+ @if ($_table-row-end) {
286
+ thead:last-child,
287
+ tbody:last-child,
288
+ tfoot:last-child {
289
+ tr:last-child {
290
+ @include clay-css($_table-row-end);
291
+
292
+ th,
293
+ td {
294
+ $_table-cell-start: map-get(
295
+ $_table-row-end,
296
+ table-cell-start
226
297
  );
227
- }
228
298
 
229
- &:last-child {
230
- @include clay-css(
231
- map-deep-get(
232
- $map,
233
- table-row-end,
234
- table-cell-end
235
- )
299
+ @if ($_table-cell-start) {
300
+ &:first-child {
301
+ @include clay-css($_table-cell-start);
302
+ }
303
+ }
304
+
305
+ $_table-cell-end: map-get(
306
+ $_table-row-end,
307
+ table-cell-end
236
308
  );
309
+
310
+ @if ($_table-cell-end) {
311
+ &:last-child {
312
+ @include clay-css($_table-cell-end);
313
+ }
314
+ }
237
315
  }
238
316
  }
239
317
  }
240
- }
241
318
 
242
- .table-row-end {
243
- @include clay-css(map-get($map, table-row-end));
319
+ .table-row-end {
320
+ @include clay-css($_table-row-end);
244
321
 
245
- .table-cell-start {
246
- @include clay-css(
247
- map-deep-get($map, table-row-end, table-cell-start)
322
+ $_table-cell-start: map-get(
323
+ $_table-row-end,
324
+ table-cell-start
248
325
  );
249
- }
250
326
 
251
- .table-cell-end {
252
- @include clay-css(
253
- map-deep-get($map, table-row-end, table-cell-end)
254
- );
327
+ @if ($_table-cell-start) {
328
+ .table-cell-start {
329
+ @include clay-css($_table-cell-start);
330
+ }
331
+ }
332
+
333
+ $_table-cell-end: map-get($_table-row-end, table-cell-end);
334
+
335
+ @if ($_table-cell-end) {
336
+ .table-cell-end {
337
+ @include clay-css($_table-cell-end);
338
+ }
339
+ }
255
340
  }
256
341
  }
257
342
 
258
- tbody {
259
- @include clay-css(map-get($map, tbody));
343
+ $_tbody: map-get($map, tbody);
344
+
345
+ @if ($_tbody) {
346
+ tbody {
347
+ @include clay-css($_tbody);
348
+
349
+ $_tr: map-get($_tbody, tr);
350
+
351
+ @if ($_tr) {
352
+ tr {
353
+ @include clay-css($_tr);
354
+
355
+ $_hover: map-get($_tr, hover);
356
+
357
+ @if ($_hover) {
358
+ &:hover {
359
+ @include clay-css($_hover);
260
360
 
261
- tr {
262
- @include clay-css(map-deep-get($map, tbody, tr));
361
+ $_table-cell: map-get($_hover, table-cell);
263
362
 
264
- &:hover {
265
- @include clay-css(map-deep-get($map, tbody, tr, hover));
363
+ @if ($_table-cell) {
364
+ th,
365
+ td {
366
+ @include clay-css($_table-cell);
367
+ }
368
+ }
266
369
 
370
+ $_quick-action-menu: map-get(
371
+ $_hover,
372
+ quick-action-menu
373
+ );
374
+
375
+ @if ($_quick-action-menu) {
376
+ .quick-action-menu {
377
+ @include clay-css(
378
+ $_quick-action-menu
379
+ );
380
+ }
381
+ }
382
+ }
383
+ }
384
+ }
385
+ }
386
+
387
+ $_table-cell: map-get($_tbody, table-cell);
388
+
389
+ @if ($_table-cell) {
267
390
  th,
268
391
  td {
269
- @include clay-css(
270
- map-deep-get($map, tbody, tr, hover, table-cell)
271
- );
392
+ @include clay-css($_table-cell);
272
393
  }
394
+ }
273
395
 
274
- .quick-action-menu {
275
- @include clay-css(
276
- map-deep-get(
277
- $map,
278
- tbody,
279
- tr,
280
- hover,
281
- quick-action-menu
282
- )
283
- );
396
+ $_tbody: map-get($_tbody, tbody);
397
+
398
+ @if ($_tbody) {
399
+ + tbody {
400
+ @include clay-css($_tbody);
284
401
  }
285
402
  }
286
403
  }
404
+ }
287
405
 
288
- th,
289
- td {
290
- @include clay-css(map-deep-get($map, tbody, table-cell));
291
- }
406
+ $_tfoot: map-get($map, tfoot);
292
407
 
293
- + tbody {
294
- @include clay-css(map-deep-get($map, tbody, tbody));
408
+ @if ($_tfoot) {
409
+ tfoot {
410
+ @include clay-css($_tfoot);
411
+
412
+ $_table-cell: map-get($_tfoot, table-cell);
413
+
414
+ @if ($_table-cell) {
415
+ th,
416
+ td {
417
+ @include clay-css($_table-cell);
418
+ }
419
+ }
295
420
  }
296
421
  }
297
422
 
298
- tfoot {
299
- @include clay-css(map-get($map, tfoot));
423
+ $_caption: map-get($map, caption);
300
424
 
301
- th,
302
- td {
303
- @include clay-css(map-deep-get($map, tfoot, table-cell));
425
+ @if ($_caption) {
426
+ caption {
427
+ @include clay-css($_caption);
304
428
  }
305
429
  }
306
430
 
307
- caption {
308
- @include clay-css(map-get($map, caption));
309
- }
431
+ $_table-divider: map-get($map, table-divider);
310
432
 
311
- .table-divider {
312
- th,
313
- td {
314
- @include clay-css(
315
- map-deep-get($map, table-divider, table-cell)
316
- );
433
+ @if ($_table-divider) {
434
+ .table-divider {
435
+ $_table-cell: map-get($_table-divider, table-cell);
436
+
437
+ @if ($_table-cell) {
438
+ th,
439
+ td {
440
+ @include clay-css($_table-cell);
441
+ }
442
+ }
317
443
  }
318
444
  }
319
445
 
320
- .table-active {
321
- @include clay-css(map-get($map, table-active));
446
+ $_table-active: map-get($map, table-active);
322
447
 
323
- &:hover {
324
- @include clay-css(map-deep-get($map, table-active, hover));
448
+ @if ($_table-active) {
449
+ .table-active {
450
+ @include clay-css($_table-active);
325
451
 
326
- th,
327
- td {
328
- @include clay-css(
329
- map-deep-get($map, table-active, hover, table-cell)
330
- );
331
- }
452
+ $_hover: map-get($_table-active, hover);
332
453
 
333
- .quick-action-menu {
334
- @include clay-css(
335
- map-deep-get(
336
- $map,
337
- table-active,
338
- hover,
454
+ @if ($_hover) {
455
+ &:hover {
456
+ @include clay-css($_hover);
457
+
458
+ $_table-cell: map-get($_hover, table-cell);
459
+
460
+ @if ($_table-cell) {
461
+ th,
462
+ td {
463
+ @include clay-css($_table-cell);
464
+ }
465
+ }
466
+
467
+ $_quick-action-menu: map-get(
468
+ $_hover,
339
469
  quick-action-menu
340
- )
341
- );
470
+ );
471
+
472
+ @if ($_quick-action-menu) {
473
+ .quick-action-menu {
474
+ @include clay-css($_quick-action-menu);
475
+ }
476
+ }
477
+ }
342
478
  }
343
- }
344
479
 
345
- th,
346
- td {
347
- @include clay-css(
348
- map-deep-get($map, table-active, table-cell)
349
- );
350
- }
480
+ $_table-cell: map-get($_table-active, table-cell);
351
481
 
352
- .quick-action-menu {
353
- @include clay-css(
354
- map-deep-get($map, table-active, quick-action-menu)
482
+ @if ($_table-cell) {
483
+ th,
484
+ td {
485
+ @include clay-css($_table-cell);
486
+ }
487
+ }
488
+
489
+ $_quick-action-menu: map-get(
490
+ $_table-active,
491
+ quick-action-menu
355
492
  );
493
+
494
+ @if ($_quick-action-menu) {
495
+ .quick-action-menu {
496
+ @include clay-css($_quick-action-menu);
497
+ }
498
+ }
356
499
  }
357
500
  }
358
501
 
359
- .table-disabled {
360
- @include clay-css(map-get($map, table-disabled));
502
+ $_table-disabled: map-get($map, table-disabled);
361
503
 
362
- &:hover {
363
- @include clay-css(
364
- map-deep-get($map, table-disabled, hover)
365
- );
504
+ @if ($_table-disabled) {
505
+ .table-disabled {
506
+ @include clay-css($_table-disabled);
507
+
508
+ $_hover: map-get($_table-disabled, hover);
509
+
510
+ @if ($_hover) {
511
+ &:hover {
512
+ @include clay-css($_hover);
513
+
514
+ $_table-cell: map-get($_hover, table-cell);
366
515
 
367
- th,
368
- td {
369
- @include clay-css(
370
- map-deep-get(
371
- $map,
372
- table-disabled,
373
- hover,
374
- table-cell
375
- )
376
- );
516
+ @if ($_table-cell) {
517
+ th,
518
+ td {
519
+ @include clay-css($_table-cell);
520
+ }
521
+ }
522
+ }
377
523
  }
378
- }
379
524
 
380
- th,
381
- td {
382
- @include clay-css(
383
- map-deep-get($map, table-disabled, table-cell)
384
- );
525
+ $_table-cell: map-get($_table-disabled, table-cell);
526
+
527
+ @if ($_table-cell) {
528
+ th,
529
+ td {
530
+ @include clay-css($_table-cell);
385
531
 
386
- a[href] {
387
- @include clay-link(
388
- map-deep-get($map, table-disabled, table-cell, href)
389
- );
532
+ $_href: map-get($_table-cell, href);
533
+
534
+ @if ($_href) {
535
+ a[href] {
536
+ @include clay-link($_href);
537
+ }
538
+ }
539
+ }
390
540
  }
391
- }
392
541
 
393
- .table-title {
394
- @include clay-text-typography(
395
- map-deep-get($map, table-disabled, table-title)
396
- );
397
- }
542
+ $_table-title: map-get($_table-disabled, table-title);
398
543
 
399
- .table-list-title {
400
- @include clay-text-typography(
401
- map-deep-get($map, table-disabled, table-list-title)
544
+ @if ($_table-title) {
545
+ .table-title {
546
+ @include clay-text-typography($_table-title);
547
+ }
548
+ }
549
+
550
+ $_table-list-title: map-get(
551
+ $_table-disabled,
552
+ table-list-title
402
553
  );
554
+
555
+ @if ($_table-list-title) {
556
+ .table-list-title {
557
+ @include clay-text-typography($_table-list-title);
558
+ }
559
+ }
403
560
  }
404
561
  }
405
562
 
406
- .autofit-col {
407
- @include clay-css(map-get($map, autofit-col));
563
+ $_autofit-col: map-get($map, autofit-col);
408
564
 
409
- &:first-child {
410
- @include clay-css(
411
- map-deep-get($map, autofit-col, first-child)
412
- );
413
- }
565
+ @if ($_autofit-col) {
566
+ .autofit-col {
567
+ @include clay-css($_autofit-col);
414
568
 
415
- &:last-child {
416
- @include clay-css(
417
- map-deep-get($map, autofit-col, last-child)
418
- );
569
+ $_first-child: map-get($_autofit-col, first-child);
570
+
571
+ @if ($_first-child) {
572
+ &:first-child {
573
+ @include clay-css($_first-child);
574
+ }
575
+ }
576
+
577
+ $_last-child: map-get($_autofit-col, last-child);
578
+
579
+ @if ($_last-child) {
580
+ &:last-child {
581
+ @include clay-css($_last-child);
582
+ }
583
+ }
419
584
  }
420
585
  }
421
586
 
422
- .autofit-col-checkbox {
423
- @include clay-css(map-get($map, autofit-col-checkbox));
587
+ $_autofit-col-checkbox: map-get($map, autofit-col-checkbox);
588
+
589
+ @if ($_autofit-col-checkbox) {
590
+ .autofit-col-checkbox {
591
+ @include clay-css($_autofit-col-checkbox);
592
+ }
424
593
  }
425
594
 
426
- .autofit-col-icon {
427
- @include clay-css(map-get($map, autofit-col-icon));
595
+ $_autofit-col-icon: map-get($map, autofit-col-icon);
596
+
597
+ @if ($_autofit-col-icon) {
598
+ .autofit-col-icon {
599
+ @include clay-css($_autofit-col-icon);
600
+ }
428
601
  }
429
602
 
430
- .autofit-col-toggle {
431
- @include clay-css(map-get($map, autofit-col-toggle));
603
+ $_autofit-col-toggle: map-get($map, autofit-col-toggle);
604
+
605
+ @if ($_autofit-col-toggle) {
606
+ .autofit-col-toggle {
607
+ @include clay-css($_autofit-col-toggle);
608
+ }
432
609
  }
433
610
 
434
- .component-action {
435
- @include clay-link(map-get($map, component-action));
611
+ $_component-action: map-get($map, component-action);
612
+
613
+ @if ($_component-action) {
614
+ .component-action {
615
+ @include clay-link($_component-action);
616
+ }
436
617
  }
437
618
 
438
- .component-drag {
439
- @include clay-link(map-get($map, component-drag));
619
+ $_component-drag: map-get($map, component-drag);
620
+
621
+ @if ($_component-drag) {
622
+ .component-drag {
623
+ @include clay-link($_component-drag);
624
+ }
440
625
  }
441
626
 
442
- .component-toggle {
443
- @include clay-link(map-get($map, component-toggle));
627
+ $_component-toggle: map-get($map, component-toggle);
628
+
629
+ @if ($_component-toggle) {
630
+ .component-toggle {
631
+ @include clay-link($_component-toggle);
632
+ }
444
633
  }
445
634
 
446
- .custom-control,
447
- .form-check {
448
- @include clay-custom-control-variant(
449
- map-get($map, custom-control)
450
- );
635
+ $_custom-control: map-get($map, custom-control);
636
+
637
+ @if ($_custom-control) {
638
+ .custom-control,
639
+ .form-check {
640
+ @include clay-custom-control-variant($_custom-control);
641
+ }
451
642
  }
452
643
 
453
- .quick-action-menu {
454
- @include clay-css(map-get($map, quick-action-menu));
644
+ $_quick-action-menu: map-get($map, quick-action-menu);
645
+
646
+ @if ($_quick-action-menu) {
647
+ .quick-action-menu {
648
+ @include clay-css($_quick-action-menu);
649
+ }
455
650
  }
456
651
  }
457
652
  }
@@ -468,46 +663,62 @@
468
663
 
469
664
  @mixin clay-table-drag-variant($map) {
470
665
  @if (type-of($map) == 'map') {
471
- $cell: setter(map-get($map, cell), ());
472
-
473
- $c-drag: setter(map-get($map, c-drag), ());
474
-
475
- $c-dragging-before: setter(map-get($map, c-dragging-before), ());
476
-
477
- $c-dragging-after: setter(map-get($map, c-dragging-after), ());
666
+ @if (length($map) != 0) {
667
+ @include clay-css($map);
668
+ }
478
669
 
479
- $c-droppable-before: setter(map-get($map, c-droppable-before), ());
670
+ $_cell: map-get($map, cell);
480
671
 
481
- $c-droppable-after: setter(map-get($map, c-droppable-after), ());
672
+ @if ($_cell) {
673
+ th,
674
+ td {
675
+ @include clay-css($_cell);
676
+ }
677
+ }
482
678
 
483
- @include clay-css($map);
679
+ $_c-drag: map-get($map, c-drag);
484
680
 
485
- th,
486
- td {
487
- @include clay-css($cell);
681
+ @if ($_c-drag) {
682
+ .c-drag {
683
+ @include clay-css($_c-drag);
684
+ }
488
685
  }
489
686
 
490
- .c-drag {
491
- @include clay-css($c-drag);
492
- }
687
+ $_c-dragging-after: map-get($map, c-dragging-after);
688
+ $_c-dragging-before: map-get($map, c-dragging-before);
493
689
 
494
- .c-dragging {
495
- &::before {
496
- @include clay-css($c-dragging-before);
497
- }
690
+ @if ($_c-dragging-after or $_c-dragging-before) {
691
+ .c-dragging {
692
+ @if ($_c-dragging-before) {
693
+ &::before {
694
+ @include clay-css($_c-dragging-before);
695
+ }
696
+ }
498
697
 
499
- &::after {
500
- @include clay-css($c-dragging-after);
698
+ @if ($_c-dragging-after) {
699
+ &::after {
700
+ @include clay-css($_c-dragging-after);
701
+ }
702
+ }
501
703
  }
502
704
  }
503
705
 
504
- .c-droppable {
505
- &::before {
506
- @include clay-css($c-droppable-before);
507
- }
706
+ $_c-droppable-after: map-get($map, c-droppable-after);
707
+ $_c-droppable-before: map-get($map, c-droppable-before);
508
708
 
509
- &::after {
510
- @include clay-css($c-droppable-after);
709
+ @if ($_c-droppable-after or $_c-droppable-before) {
710
+ .c-droppable {
711
+ @if ($_c-droppable-before) {
712
+ &::before {
713
+ @include clay-css($_c-droppable-before);
714
+ }
715
+ }
716
+
717
+ @if ($_c-droppable-after) {
718
+ &::after {
719
+ @include clay-css($_c-droppable-after);
720
+ }
721
+ }
511
722
  }
512
723
  }
513
724
  }
@@ -523,25 +734,33 @@
523
734
 
524
735
  @mixin clay-table-clone-variant($map) {
525
736
  @if (type-of($map) == 'map') {
526
- $before: setter(map-get($map, before), ());
737
+ @if (length($map) != 0) {
738
+ @include clay-css($map);
739
+ }
527
740
 
528
- $after: setter(map-get($map, after), ());
741
+ $_before: map-get($map, before);
529
742
 
530
- $cell: setter(map-get($map, cell), ());
743
+ @if ($_before) {
744
+ &::before {
745
+ @include clay-css($_before);
746
+ }
747
+ }
531
748
 
532
- @include clay-css($map);
749
+ $_after: map-get($map, after);
533
750
 
534
- &::before {
535
- @include clay-css($before);
751
+ @if ($_after) {
752
+ &::after {
753
+ @include clay-css($_after);
754
+ }
536
755
  }
537
756
 
538
- &::after {
539
- @include clay-css($after);
540
- }
757
+ $_cell: map-get($map, cell);
541
758
 
542
- thead th,
543
- tbody td {
544
- @include clay-css($cell);
759
+ @if ($_cell) {
760
+ thead th,
761
+ tbody td {
762
+ @include clay-css($_cell);
763
+ }
545
764
  }
546
765
  }
547
766
  }