@clayui/css 3.133.0 → 3.134.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 (36) hide show
  1. package/lib/css/atlas.css +63 -8
  2. package/lib/css/atlas.css.map +1 -1
  3. package/lib/css/base.css +64 -8
  4. package/lib/css/base.css.map +1 -1
  5. package/lib/css/cadmin.css +38 -9
  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/_pagination.scss +241 -151
  29. package/src/scss/mixins/_panels.scss +86 -51
  30. package/src/scss/mixins/_popovers.scss +82 -32
  31. package/src/scss/mixins/_sheet.scss +19 -7
  32. package/src/scss/mixins/_sidebar.scss +195 -89
  33. package/src/scss/mixins/_slideout.scss +96 -46
  34. package/src/scss/variables/_labels.scss +4 -5
  35. package/src/scss/variables/_modals.scss +18 -2
  36. package/src/scss/variables/_utilities.scss +6 -0
@@ -89,14 +89,20 @@
89
89
 
90
90
  @if ($enabled) {
91
91
  @include media-breakpoint-down($breakpoint-down) {
92
- @include clay-css($map);
92
+ @if (length($map) != 0) {
93
+ @include clay-css($map);
94
+ }
93
95
 
94
- > .input-group-item {
95
- @include clay-css($item);
96
+ @if (length($item) != 0) {
97
+ > .input-group-item {
98
+ @include clay-css($item);
99
+ }
96
100
  }
97
101
 
98
- > .input-group-item-shrink {
99
- @include clay-css($item-shrink);
102
+ @if (length($item-shrink) != 0) {
103
+ > .input-group-item-shrink {
104
+ @include clay-css($item-shrink);
105
+ }
100
106
  }
101
107
  }
102
108
  }
@@ -164,29 +170,49 @@
164
170
  );
165
171
 
166
172
  @if ($enabled) {
167
- @include clay-css($base);
173
+ @if (length($base) != 0) {
174
+ @include clay-css($base);
175
+ }
176
+
177
+ $_label: map-get($map, label);
168
178
 
169
- label {
170
- @include clay-css(map-deep-get($map, label));
179
+ @if ($_label) {
180
+ label {
181
+ @include clay-css($_label);
182
+ }
171
183
  }
172
184
 
173
- .custom-control {
174
- @include clay-custom-control-variant(
175
- map-deep-get($map, custom-control)
176
- );
185
+ $_custom-control: map-get($map, custom-control);
186
+
187
+ @if ($_custom-control) {
188
+ .custom-control {
189
+ @include clay-custom-control-variant($_custom-control);
190
+ }
177
191
  }
178
192
 
179
- .form-check {
180
- @include clay-css(map-deep-get($map, form-check));
193
+ $_form-check: map-get($map, form-check);
194
+
195
+ @if ($_form-check) {
196
+ .form-check {
197
+ @include clay-css($_form-check);
198
+
199
+ $_input: map-get($_form-check, input);
181
200
 
182
- input[type='radio'],
183
- input[type='checkbox'] {
184
- @include clay-css(map-deep-get($map, form-check, input));
201
+ @if ($_input) {
202
+ input[type='radio'],
203
+ input[type='checkbox'] {
204
+ @include clay-css($_input);
205
+ }
206
+ }
185
207
  }
186
208
  }
187
209
 
188
- .lexicon-icon {
189
- @include clay-css(map-deep-get($map, lexicon-icon));
210
+ $_lexicon-icon: map-get($map, lexicon-icon);
211
+
212
+ @if ($_lexicon-icon) {
213
+ .lexicon-icon {
214
+ @include clay-css($_lexicon-icon);
215
+ }
190
216
  }
191
217
 
192
218
  $_media-breakpoint-down: map-get($map, media-breakpoint-down);
@@ -288,121 +314,190 @@
288
314
  $enabled: setter(map-get($map, enabled), true);
289
315
 
290
316
  @if ($enabled) {
291
- @include clay-css($map);
292
-
293
- &::before {
294
- @include clay-css(map-get($map, before));
317
+ @if (length($map) != 0) {
318
+ @include clay-css($map);
295
319
  }
296
320
 
297
- &::after {
298
- @include clay-css(map-get($map, after));
299
- }
321
+ $_before: map-get($map, before);
300
322
 
301
- &.focus {
302
- @include clay-input-group-item-variant(map-get($map, focus));
323
+ @if ($_before) {
324
+ &::before {
325
+ @include clay-css($_before);
326
+ }
303
327
  }
304
328
 
305
- &:focus-within:has(input:focus) {
306
- @include clay-input-group-item-variant(
307
- map-get($map, focus-within)
308
- );
329
+ $_after: map-get($map, after);
330
+
331
+ @if ($_after) {
332
+ &::after {
333
+ @include clay-css($_after);
334
+ }
309
335
  }
310
336
 
311
- &:first-child {
312
- @include clay-css(map-deep-get($map, first-child));
337
+ $_focus: map-get($map, focus);
338
+
339
+ @if ($_focus) {
340
+ &.focus {
341
+ @include clay-input-group-item-variant($_focus);
342
+ }
313
343
  }
314
344
 
315
- &.input-group-prepend {
316
- @include clay-css(map-deep-get($map, input-group-prepend));
345
+ $_focus-within: map-get($map, focus-within);
346
+
347
+ @if ($_focus-within) {
348
+ &:focus-within:has(input:focus) {
349
+ @include clay-input-group-item-variant($_focus-within);
350
+ }
317
351
  }
318
352
 
319
- &.input-group-append {
320
- @include clay-css(map-deep-get($map, input-group-append));
353
+ $_first-child: map-get($map, first-child);
354
+
355
+ @if ($_first-child) {
356
+ &:first-child {
357
+ @include clay-css($_first-child);
358
+ }
321
359
  }
322
360
 
323
- > .btn {
324
- @include clay-button-variant(map-deep-get($map, btn));
361
+ $_input-group-prepend: map-get($map, input-group-prepend);
362
+
363
+ @if ($_input-group-prepend) {
364
+ &.input-group-prepend {
365
+ @include clay-css($_input-group-prepend);
366
+ }
325
367
  }
326
368
 
327
- > .btn-monospaced {
328
- @include clay-button-variant(
329
- map-deep-get($map, btn-monospaced)
330
- );
369
+ $_input-group-append: map-get($map, input-group-append);
370
+
371
+ @if ($_input-group-append) {
372
+ &.input-group-append {
373
+ @include clay-css($_input-group-append);
374
+ }
331
375
  }
332
376
 
333
- > .dropdown {
334
- @include clay-css(map-deep-get($map, dropdown));
377
+ $_btn: map-get($map, btn);
378
+
379
+ @if ($_btn) {
380
+ > .btn {
381
+ @include clay-button-variant($_btn);
382
+ }
335
383
  }
336
384
 
337
- > .form-control {
338
- @include clay-form-control-variant(
339
- map-deep-get($map, form-control)
340
- );
385
+ $_btn-monospaced: map-get($map, btn-monospaced);
386
+
387
+ @if ($_btn-monospaced) {
388
+ > .btn-monospaced {
389
+ @include clay-button-variant($_btn-monospaced);
390
+ }
341
391
  }
342
392
 
343
- > .form-file {
344
- @include clay-css(map-deep-get($map, form-file));
393
+ $_dropdown: map-get($map, dropdown);
345
394
 
346
- .btn {
347
- @include clay-button-variant(
348
- map-deep-get($map, form-file, btn)
349
- );
395
+ @if ($_dropdown) {
396
+ > .dropdown {
397
+ @include clay-css($_dropdown);
350
398
  }
351
399
  }
352
400
 
353
- > textarea.form-control,
354
- > .form-control-textarea {
355
- @include clay-form-control-variant(
356
- map-deep-get($map, textarea)
357
- );
401
+ $_form-control: map-get($map, form-control);
402
+
403
+ @if ($_form-control) {
404
+ > .form-control {
405
+ @include clay-form-control-variant($_form-control);
406
+ }
358
407
  }
359
408
 
360
- > .form-control-plaintext {
361
- @include clay-form-control-variant(
362
- map-deep-get($map, form-control-plaintext)
363
- );
409
+ $_form-file: map-get($map, form-file);
410
+
411
+ @if ($_form-file) {
412
+ > .form-file {
413
+ @include clay-css($_form-file);
414
+
415
+ $_btn: map-get($_form-file, btn);
416
+
417
+ @if ($_btn) {
418
+ .btn {
419
+ @include clay-button-variant($_btn);
420
+ }
421
+ }
422
+ }
364
423
  }
365
424
 
366
- > .input-group-text {
367
- @include clay-input-group-text-variant(
368
- map-deep-get($map, input-group-text)
369
- );
425
+ $_textarea: map-get($map, textarea);
426
+
427
+ @if ($_textarea) {
428
+ > textarea.form-control,
429
+ > .form-control-textarea {
430
+ @include clay-form-control-variant($_textarea);
431
+ }
370
432
  }
371
433
 
372
- > .input-group-inset-item {
373
- @include clay-css(map-deep-get($map, input-group-inset-item));
434
+ $_form-control-plaintext: map-get($map, form-control-plaintext);
374
435
 
375
- > .btn {
376
- @include clay-button-variant(
377
- map-deep-get($map, input-group-inset-item, btn)
436
+ @if ($_form-control-plaintext) {
437
+ > .form-control-plaintext {
438
+ @include clay-form-control-variant(
439
+ $_form-control-plaintext
378
440
  );
379
441
  }
442
+ }
380
443
 
381
- > .btn-monospaced {
382
- @include clay-button-variant(
383
- map-deep-get(
384
- $map,
385
- input-group-inset-item,
386
- btn-monospaced
387
- )
388
- );
444
+ $_input-group-text: map-get($map, input-group-text);
445
+
446
+ @if ($_input-group-text) {
447
+ > .input-group-text {
448
+ @include clay-input-group-text-variant($_input-group-text);
389
449
  }
450
+ }
390
451
 
391
- > .form-file {
392
- @include clay-css(map-deep-get($map, form-file));
452
+ $_input-group-inset-item: map-get($map, input-group-inset-item);
453
+
454
+ @if ($_input-group-inset-item) {
455
+ > .input-group-inset-item {
456
+ @include clay-css($_input-group-inset-item);
457
+
458
+ $_btn: map-get($_input-group-inset-item, btn);
393
459
 
394
- .btn {
395
- @include clay-button-variant(
396
- map-deep-get($map, form-file, btn)
397
- );
460
+ @if ($_btn) {
461
+ > .btn {
462
+ @include clay-button-variant($_btn);
463
+ }
464
+ }
465
+
466
+ $_btn-monospaced: map-get(
467
+ $_input-group-inset-item,
468
+ btn-monospaced
469
+ );
470
+
471
+ @if ($_btn-monospaced) {
472
+ > .btn-monospaced {
473
+ @include clay-button-variant($_btn-monospaced);
474
+ }
475
+ }
476
+
477
+ $_form-file: map-get($map, form-file);
478
+
479
+ @if ($_form-file) {
480
+ > .form-file {
481
+ @include clay-css($_form-file);
482
+
483
+ $_btn: map-get($_form-file, btn);
484
+
485
+ @if ($_btn) {
486
+ .btn {
487
+ @include clay-button-variant($_btn);
488
+ }
489
+ }
490
+ }
398
491
  }
399
492
  }
400
493
  }
401
494
 
402
- .form-control-inset {
403
- @include clay-form-control-variant(
404
- map-deep-get($map, form-control-inset)
405
- );
495
+ $_form-control-inset: map-get($map, form-control-inset);
496
+
497
+ @if ($_form-control-inset) {
498
+ .form-control-inset {
499
+ @include clay-form-control-variant($_form-control-inset);
500
+ }
406
501
  }
407
502
  }
408
503
  }
@@ -463,30 +558,50 @@
463
558
  $enabled: setter(map-get($map, enabled), true);
464
559
 
465
560
  @if ($enabled) {
466
- @include clay-css($map);
561
+ @if (length($map) != 0) {
562
+ @include clay-css($map);
563
+ }
467
564
 
468
- > .input-group-item {
469
- @include clay-input-group-item-variant(
470
- map-deep-get($map, input-group-item)
471
- );
565
+ $_input-group-item: map-get($map, input-group-item);
566
+
567
+ @if ($_input-group-item) {
568
+ > .input-group-item {
569
+ @include clay-input-group-item-variant($_input-group-item);
570
+ }
472
571
  }
473
572
 
474
- > .input-group-item-shrink {
475
- @include clay-input-group-item-variant(
476
- map-deep-get($map, input-group-item-shrink)
477
- );
573
+ $_input-group-item-shrink: map-get($map, input-group-item-shrink);
574
+
575
+ @if ($_input-group-item-shrink) {
576
+ > .input-group-item-shrink {
577
+ @include clay-input-group-item-variant(
578
+ $_input-group-item-shrink
579
+ );
580
+ }
478
581
  }
479
582
 
480
- .btn-primary {
481
- @include clay-button-variant(map-deep-get($map, btn-primary));
583
+ $_btn-primary: map-get($map, btn-primary);
584
+
585
+ @if ($_btn-primary) {
586
+ .btn-primary {
587
+ @include clay-button-variant($_btn-primary);
588
+ }
482
589
  }
483
590
 
484
- .btn-secondary {
485
- @include clay-button-variant(map-deep-get($map, btn-secondary));
591
+ $_btn-secondary: map-get($map, btn-secondary);
592
+
593
+ @if ($_btn-secondary) {
594
+ .btn-secondary {
595
+ @include clay-button-variant($_btn-secondary);
596
+ }
486
597
  }
487
598
 
488
- .btn-unstyled {
489
- @include clay-button-variant(map-deep-get($map, btn-unstyled));
599
+ $_btn-unstyled: map-get($map, btn-unstyled);
600
+
601
+ @if ($_btn-unstyled) {
602
+ .btn-unstyled {
603
+ @include clay-button-variant($_btn-unstyled);
604
+ }
490
605
  }
491
606
 
492
607
  $_media-breakpoint-down: map-get($map, media-breakpoint-down);
@@ -212,7 +212,9 @@
212
212
  );
213
213
 
214
214
  @if ($enabled) {
215
- @include clay-css($base);
215
+ @if (length($base) != 0) {
216
+ @include clay-css($base);
217
+ }
216
218
 
217
219
  // Inline Item in Labels are deprecated in v2.0.0-rc.11 use .label-item
218
220
  // pattern instead
@@ -228,39 +230,59 @@
228
230
  }
229
231
  }
230
232
 
231
- .label-item {
232
- @include clay-css($label-item);
233
+ @if (length($label-item) != 0) {
234
+ .label-item {
235
+ @include clay-css($label-item);
233
236
 
234
- .lexicon-icon {
235
- @include clay-css($lexicon-icon);
237
+ @if (length($lexicon-icon) != 0) {
238
+ .lexicon-icon {
239
+ @include clay-css($lexicon-icon);
240
+ }
241
+ }
236
242
  }
237
243
  }
238
244
 
239
- .label-item-expand {
240
- @include clay-css(map-get($map, label-item-expand));
245
+ $_label-item-expand: map-get($map, label-item-expand);
246
+
247
+ @if ($_label-item-expand) {
248
+ .label-item-expand {
249
+ @include clay-css($_label-item-expand);
250
+ }
241
251
  }
242
252
 
243
- .label-item-before {
244
- @include clay-css($label-item-before);
253
+ @if (length($label-item-before) != 0) {
254
+ .label-item-before {
255
+ @include clay-css($label-item-before);
256
+ }
245
257
  }
246
258
 
247
- .label-item-after {
248
- @include clay-css($label-item-after);
259
+ @if (length($label-item-after) != 0) {
260
+ .label-item-after {
261
+ @include clay-css($label-item-after);
262
+ }
249
263
  }
250
264
 
251
- .close {
252
- @include clay-close(map-get($map, close));
265
+ $_close: map-get($map, close);
266
+
267
+ @if ($_close) {
268
+ .close {
269
+ @include clay-close($_close);
270
+ }
253
271
  }
254
272
 
255
- .sticker {
256
- @include clay-css($sticker);
273
+ @if (length($sticker) != 0) {
274
+ .sticker {
275
+ @include clay-css($sticker);
276
+ }
257
277
  }
258
278
 
259
- .sticker-overlay {
260
- @include clay-css($sticker-overlay);
279
+ @if (length($sticker-overlay) != 0) {
280
+ .sticker-overlay {
281
+ @include clay-css($sticker-overlay);
282
+ }
261
283
  }
262
284
 
263
- @if (map-get($c-inner, enabled)) {
285
+ @if (map-get($c-inner, enabled) and length($c-inner) != 0) {
264
286
  > .c-inner {
265
287
  @include clay-css($c-inner);
266
288
  }
@@ -670,61 +692,91 @@
670
692
  );
671
693
 
672
694
  @if ($enabled) {
673
- @include clay-css($map);
674
-
675
- &:disabled,
676
- &.disabled {
677
- @include clay-css($disabled);
695
+ @if (length($map) != 0) {
696
+ @include clay-css($map);
678
697
  }
679
698
 
680
- &[href],
681
- &[type],
682
- &[tabindex] {
683
- @include clay-link($href);
699
+ @if (length($disabled) != 0) {
700
+ &:disabled,
701
+ &.disabled {
702
+ @include clay-css($disabled);
703
+ }
684
704
  }
685
705
 
686
- .lexicon-icon {
687
- @include clay-css($lexicon-icon);
706
+ @if (length($href) != 0) {
707
+ &[href],
708
+ &[type],
709
+ &[tabindex] {
710
+ @include clay-link($href);
711
+ }
688
712
  }
689
713
 
690
- .label-item {
691
- @include clay-css($label-item);
692
-
714
+ @if (length($lexicon-icon) != 0) {
693
715
  .lexicon-icon {
694
716
  @include clay-css($lexicon-icon);
695
717
  }
696
718
  }
697
719
 
698
- .label-item-expand {
699
- @include clay-css(map-get($map, label-item-expand));
720
+ @if (length($label-item) != 0) {
721
+ .label-item {
722
+ @include clay-css($label-item);
723
+
724
+ @if (length($lexicon-icon) != 0) {
725
+ .lexicon-icon {
726
+ @include clay-css($lexicon-icon);
727
+ }
728
+ }
729
+ }
700
730
  }
701
731
 
702
- .label-item-before {
703
- @include clay-css($label-item-before);
732
+ $_label-item-expand: map-get($map, label-item-expand);
733
+
734
+ @if ($_label-item-expand) {
735
+ .label-item-expand {
736
+ @include clay-css($_label-item-expand);
737
+ }
704
738
  }
705
739
 
706
- .label-item-after {
707
- @include clay-css($label-item-after);
740
+ @if (length($label-item-before) != 0) {
741
+ .label-item-before {
742
+ @include clay-css($label-item-before);
743
+ }
708
744
  }
709
745
 
710
- a,
711
- .btn-unstyled {
712
- @include clay-link($link);
746
+ @if (length($label-item-after) != 0) {
747
+ .label-item-after {
748
+ @include clay-css($label-item-after);
749
+ }
713
750
  }
714
751
 
715
- .close {
716
- @include clay-close(map-get($map, close));
752
+ @if (length($link) != 0) {
753
+ a,
754
+ .btn-unstyled {
755
+ @include clay-link($link);
756
+ }
717
757
  }
718
758
 
719
- .sticker {
720
- @include clay-css($sticker);
759
+ $_close: map-get($map, close);
760
+
761
+ @if ($_close) {
762
+ .close {
763
+ @include clay-close($_close);
764
+ }
721
765
  }
722
766
 
723
- .sticker-overlay {
724
- @include clay-css($sticker-overlay);
767
+ @if (length($sticker) != 0) {
768
+ .sticker {
769
+ @include clay-css($sticker);
770
+ }
771
+ }
772
+
773
+ @if (length($sticker-overlay) != 0) {
774
+ .sticker-overlay {
775
+ @include clay-css($sticker-overlay);
776
+ }
725
777
  }
726
778
 
727
- @if (map-get($c-inner, enabled)) {
779
+ @if (map-get($c-inner, enabled) and length($c-inner) != 0) {
728
780
  > .c-inner {
729
781
  @include clay-css($c-inner);
730
782
  }