@clayui/css 3.70.1 → 3.74.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.
@@ -24,7 +24,7 @@ $cadmin-custom-control-indicator-active-border-color: $cadmin-custom-control-ind
24
24
  $cadmin-custom-control-indicator-active-color: $cadmin-component-active-color !default;
25
25
 
26
26
  $cadmin-custom-control-indicator-disabled-bg: $cadmin-input-disabled-bg !default;
27
- $cadmin-custom-control-indicator-disabled-border-color: $cadmin-input-disabled-border-color !default;
27
+ $cadmin-custom-control-indicator-disabled-border-color: $cadmin-secondary-l3 !default;
28
28
  $cadmin-custom-control-indicator-disabled-cursor: $cadmin-disabled-cursor !default;
29
29
 
30
30
  // Custom Control Indicator Checked
@@ -263,6 +263,20 @@ $cadmin-custom-control-input: map-deep-merge(
263
263
  cursor: $cadmin-custom-control-indicator-disabled-cursor,
264
264
  custom-control-label: $cadmin-custom-control-label-disabled,
265
265
  ),
266
+ readonly: (
267
+ custom-control-label: (
268
+ color: $cadmin-gray-900,
269
+ before: (
270
+ background-color: $cadmin-gray-200,
271
+ border-color: $cadmin-secondary-l3,
272
+ ),
273
+ ),
274
+ disabled: (
275
+ custom-control-label: (
276
+ color: $cadmin-custom-control-label-disabled-color,
277
+ ),
278
+ ),
279
+ ),
266
280
  checked: (
267
281
  custom-control-label: (
268
282
  before: (
@@ -327,7 +341,7 @@ $cadmin-custom-checkbox-indicator-indeterminate-border-color: $cadmin-custom-che
327
341
 
328
342
  $cadmin-custom-control-indicator-indeterminate-border-color: $cadmin-custom-control-indicator-checked-active-bg !default;
329
343
 
330
- $cadmin-custom-checkbox-indicator-indeterminate-box-shadow: none !default;
344
+ $cadmin-custom-checkbox-indicator-indeterminate-box-shadow: null !default;
331
345
  $cadmin-custom-checkbox-indicator-indeterminate-color: $cadmin-custom-control-indicator-checked-color !default;
332
346
 
333
347
  $cadmin-custom-checkbox-indicator-icon-indeterminate: clay-icon(
@@ -365,6 +379,28 @@ $cadmin-custom-checkbox: map-deep-merge(
365
379
  ),
366
380
  ),
367
381
  ),
382
+ readonly: (
383
+ custom-control-label: (
384
+ before: (
385
+ background-color: $cadmin-white,
386
+ border-color: $cadmin-secondary-l2,
387
+ ),
388
+ after: (
389
+ background-image:
390
+ clay-icon(check-small, $cadmin-secondary),
391
+ ),
392
+ ),
393
+ disabled: (
394
+ custom-control-label: (
395
+ before: (
396
+ opacity: 0.4,
397
+ ),
398
+ after: (
399
+ opacity: 0.4,
400
+ ),
401
+ ),
402
+ ),
403
+ ),
368
404
  ),
369
405
  indeterminate: (
370
406
  custom-control-label: (
@@ -395,6 +431,27 @@ $cadmin-custom-checkbox: map-deep-merge(
395
431
  ),
396
432
  ),
397
433
  ),
434
+ readonly: (
435
+ custom-control-label: (
436
+ before: (
437
+ background-color: $cadmin-white,
438
+ border-color: $cadmin-secondary-l2,
439
+ ),
440
+ after: (
441
+ background-image: clay-icon(hr, $cadmin-secondary),
442
+ ),
443
+ ),
444
+ disabled: (
445
+ custom-control-label: (
446
+ before: (
447
+ opacity: 0.4,
448
+ ),
449
+ after: (
450
+ opacity: 0.4,
451
+ ),
452
+ ),
453
+ ),
454
+ ),
398
455
  ),
399
456
  ),
400
457
  ),
@@ -78,20 +78,28 @@ caption {
78
78
  // Table Row Backgrounds
79
79
 
80
80
  @each $color, $value in $table-row-theme-colors {
81
- .table-#{$color} {
82
- $table-row: setter($value, ());
81
+ .table {
82
+ .table-#{$color} {
83
+ $table-row: setter($value, ());
83
84
 
84
- &,
85
- > th,
86
- > td {
87
- @include clay-css($table-row);
88
- }
85
+ &,
86
+ > th,
87
+ > td {
88
+ @include clay-css($table-row);
89
89
 
90
- th,
91
- td,
92
- thead th,
93
- tbody + tbody {
94
- border-color: map-get($table-row, border-color);
90
+ .table-title {
91
+ @include clay-text-typography(
92
+ map-get($table-row, table-title)
93
+ );
94
+ }
95
+ }
96
+
97
+ th,
98
+ td,
99
+ thead th,
100
+ tbody + tbody {
101
+ border-color: map-get($table-row, border-color);
102
+ }
95
103
  }
96
104
  }
97
105
 
@@ -300,7 +300,7 @@
300
300
  /// @param {String} $var - The CSS Custom Property to evaluate.
301
301
 
302
302
  @function clay-get-fallback($var) {
303
- @if (is-css-var($var)) {
303
+ @if (is-css-var($var) and str-index($var, ',')) {
304
304
  $fallback-value: str-slice(
305
305
  $var,
306
306
  str-index($var, ',') + 2,
@@ -350,8 +350,14 @@
350
350
 
351
351
  'en-us': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#C0CFD8" d="M0 64h512v384H0z"/><path fill="#E03232" d="M16 80h480v32H16z"/><path fill="#FFF" d="M16 112h480v32H16z"/><path fill="#E03232" d="M16 144h480v32H16z"/><path fill="#FFF" d="M16 176h480v32H16z"/><path fill="#E03232" d="M16 208h480v32H16z"/><path fill="#FFF" d="M16 240h480v32H16z"/><path fill="#E03232" d="M16 272h480v32H16z"/><path fill="#FFF" d="M16 304h480v32H16z"/><path fill="#E03232" d="M16 336h480v32H16z"/><path fill="#FFF" d="M16 368h480v32H16z"/><path fill="#E03232" d="M16 400h480v32H16z"/><path fill="#66A1CC" d="M16 80h256v192H16z"/><path fill="#0035A0" d="M16 80h256v192H16z"/></svg>',
352
352
 
353
+ 'es-ar': '<svg width="512" height="384" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M512 0H0v384h512V0Z" fill="#C0CFD8"/><path d="M496 16.3H16v112h480v-112ZM496 256H16v112h480V256Z" fill="#5FC8FF"/><path d="M496 128H16v128h480V128Z" fill="#fff"/><circle cx="256" cy="192" r="64" fill="#FFD76E"/></svg>',
354
+
355
+ 'es-co': '<svg width="512" height="384" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M512 0H0v384h512V0Z" fill="#C0CFD8"/><path d="M496 16H16v160h480V16Z" fill="#FFDB3E"/><path d="M496 272H16v96h480v-96Z" fill="#E03232"/><path d="M496 176H16v96h480v-96Z" fill="#2E5AAC"/></svg>',
356
+
353
357
  'es-es': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#C0CFD8" d="M0 64h512v384H0z"/><path fill="#E03232" d="M16 80.3h480v112H16zM16 320h480v112H16z"/><path fill="#FCD638" d="M16 192h480v128H16z"/></svg>',
354
358
 
359
+ 'es-mx': '<svg width="512" height="384" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M512 0H0v384h512V0Z" fill="#C0CFD8"/><path d="M176 16H16v352h160V16Z" fill="#6FB247"/><path d="M496 16H336v352h160V16Z" fill="#E03232"/><path d="M336 16H176v352h160V16Z" fill="#fff"/><circle cx="256" cy="192" r="64" fill="#FF9A3B"/></svg>',
360
+
355
361
  'et-ee': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#C0CFD8" d="M0 64h512v384H0z"/><path fill="#448FDC" d="M16 80.3h480v112H16z"/><path fill="#FFF" d="M16 320h480v112H16z"/><path d="M16 192h480v128H16z"/></svg>',
356
362
 
357
363
  'eu-es': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#B0BEC9" d="M0 64h512v384H0z"/><path fill="#0094CE" d="M16 80.3h480v112H16z"/><path fill="#FFF" d="M16 320h480v112H16z"/><path fill="#4C4C4E" d="M16 192h480v128H16z"/><path fill="#B0BEC9" d="M0 64h512v384H0z"/><path fill="#E03232" d="M16 80h480v352H16z"/><path fill="#75BD4A" d="M256 295.7 441.9 432H496v-39.7L310.1 256 496 119.7V80h-54.1L256 216.3 70.1 80H16v39.7L201.9 256 16 392.3V432h54.1z"/><path fill="#FFF" d="M496 224H288V80h-64v144H16v64h208v144h64V288h208z"/></svg>',
@@ -244,6 +244,114 @@
244
244
  }
245
245
  }
246
246
 
247
+ &[readonly] {
248
+ @include clay-css(map-deep-get($map, readonly));
249
+
250
+ ~ .custom-control-label {
251
+ @include clay-css(
252
+ map-deep-get($map, readonly, custom-control-label)
253
+ );
254
+ }
255
+
256
+ ~ .custom-control-label::before {
257
+ @include clay-css(
258
+ map-deep-get(
259
+ $map,
260
+ readonly,
261
+ custom-control-label,
262
+ before
263
+ )
264
+ );
265
+ }
266
+
267
+ ~ .custom-control-label::after {
268
+ @include clay-css(
269
+ map-deep-get(
270
+ $map,
271
+ readonly,
272
+ custom-control-label,
273
+ after
274
+ )
275
+ );
276
+ }
277
+
278
+ ~ .card {
279
+ @include clay-card-variant(
280
+ map-deep-get($map, readonly, card)
281
+ );
282
+ }
283
+ }
284
+
285
+ &[readonly][disabled] {
286
+ @include clay-css(map-deep-get($map, readonly, disabled));
287
+
288
+ ~ .custom-control-label {
289
+ @include clay-css(
290
+ map-deep-get(
291
+ $map,
292
+ readonly,
293
+ disabled,
294
+ custom-control-label
295
+ )
296
+ );
297
+ }
298
+
299
+ ~ .custom-control-label::before {
300
+ @include clay-css(
301
+ map-deep-get(
302
+ $map,
303
+ readonly,
304
+ disabled,
305
+ custom-control-label,
306
+ before
307
+ )
308
+ );
309
+ }
310
+
311
+ ~ .custom-control-label::after {
312
+ @include clay-css(
313
+ map-deep-get(
314
+ $map,
315
+ readonly,
316
+ disabled,
317
+ custom-control-label,
318
+ after
319
+ )
320
+ );
321
+ }
322
+
323
+ ~ .card {
324
+ @include clay-card-variant(
325
+ map-deep-get($map, readonly, disabled, card)
326
+ );
327
+ }
328
+ }
329
+
330
+ &:checked {
331
+ ~ .custom-control-label::before {
332
+ @include clay-css(
333
+ map-deep-get(
334
+ $map,
335
+ checked,
336
+ custom-control-label,
337
+ before
338
+ )
339
+ );
340
+ }
341
+
342
+ ~ .custom-control-label::after {
343
+ @include clay-css(
344
+ map-deep-get($map, checked, custom-control-label, after)
345
+ );
346
+ }
347
+
348
+ ~ .card {
349
+ @include clay-card-variant(
350
+ map-deep-get($map, checked, card)
351
+ );
352
+ }
353
+ }
354
+
247
355
  &:checked:hover {
248
356
  ~ .custom-control-label::before {
249
357
  @include clay-css(
@@ -373,6 +481,72 @@
373
481
  }
374
482
  }
375
483
 
484
+ &:checked[readonly] {
485
+ ~ .custom-control-label::before {
486
+ @include clay-css(
487
+ map-deep-get(
488
+ $map,
489
+ checked,
490
+ readonly,
491
+ custom-control-label,
492
+ before
493
+ )
494
+ );
495
+ }
496
+
497
+ ~ .custom-control-label::after {
498
+ @include clay-css(
499
+ map-deep-get(
500
+ $map,
501
+ checked,
502
+ readonly,
503
+ custom-control-label,
504
+ after
505
+ )
506
+ );
507
+ }
508
+
509
+ ~ .card {
510
+ @include clay-card-variant(
511
+ map-deep-get($map, checked, readonly, card)
512
+ );
513
+ }
514
+ }
515
+
516
+ &:checked[readonly][disabled] {
517
+ ~ .custom-control-label::before {
518
+ @include clay-css(
519
+ map-deep-get(
520
+ $map,
521
+ checked,
522
+ readonly,
523
+ disabled,
524
+ custom-control-label,
525
+ before
526
+ )
527
+ );
528
+ }
529
+
530
+ ~ .custom-control-label::after {
531
+ @include clay-css(
532
+ map-deep-get(
533
+ $map,
534
+ checked,
535
+ readonly,
536
+ disabled,
537
+ custom-control-label,
538
+ after
539
+ )
540
+ );
541
+ }
542
+
543
+ ~ .card {
544
+ @include clay-card-variant(
545
+ map-deep-get($map, checked, readonly, disabled, card)
546
+ );
547
+ }
548
+ }
549
+
376
550
  &:indeterminate {
377
551
  ~ .custom-control-label::before {
378
552
  @include clay-css(
@@ -531,6 +705,78 @@
531
705
  );
532
706
  }
533
707
  }
708
+
709
+ &:indeterminate[readonly] {
710
+ ~ .custom-control-label::before {
711
+ @include clay-css(
712
+ map-deep-get(
713
+ $map,
714
+ indeterminate,
715
+ readonly,
716
+ custom-control-label,
717
+ before
718
+ )
719
+ );
720
+ }
721
+
722
+ ~ .custom-control-label::after {
723
+ @include clay-css(
724
+ map-deep-get(
725
+ $map,
726
+ indeterminate,
727
+ readonly,
728
+ custom-control-label,
729
+ after
730
+ )
731
+ );
732
+ }
733
+
734
+ ~ .card {
735
+ @include clay-card-variant(
736
+ map-deep-get($map, indeterminate, readonly, card)
737
+ );
738
+ }
739
+ }
740
+
741
+ &:indeterminate[readonly][disabled] {
742
+ ~ .custom-control-label::before {
743
+ @include clay-css(
744
+ map-deep-get(
745
+ $map,
746
+ indeterminate,
747
+ readonly,
748
+ disabled,
749
+ custom-control-label,
750
+ before
751
+ )
752
+ );
753
+ }
754
+
755
+ ~ .custom-control-label::after {
756
+ @include clay-css(
757
+ map-deep-get(
758
+ $map,
759
+ indeterminate,
760
+ readonly,
761
+ disabled,
762
+ custom-control-label,
763
+ after
764
+ )
765
+ );
766
+ }
767
+
768
+ ~ .card {
769
+ @include clay-card-variant(
770
+ map-deep-get(
771
+ $map,
772
+ indeterminate,
773
+ readonly,
774
+ disabled,
775
+ card
776
+ )
777
+ );
778
+ }
779
+ }
534
780
  }
535
781
  }
536
782
  }
@@ -93,6 +93,8 @@ $btn: map-deep-merge(
93
93
  ),
94
94
  inline-item: (
95
95
  font-size: $btn-inline-item-font-size,
96
+ line-height: 1,
97
+ margin-top: -3px,
96
98
  lexicon-icon: (
97
99
  margin-top: 0,
98
100
  ),
@@ -194,6 +196,26 @@ $btn-sm: map-deep-merge(
194
196
  $btn-sizes: () !default;
195
197
  $btn-sizes: map-deep-merge(
196
198
  (
199
+ btn-xs: (
200
+ font-size: 0.75rem,
201
+ padding-bottom: 0.125rem,
202
+ padding-left: 0.5rem,
203
+ padding-right: 0.5rem,
204
+ padding-top: 0.125rem,
205
+ inline-item: (
206
+ font-size: inherit,
207
+ margin-top: -3px,
208
+ ),
209
+ inline-item-before: (
210
+ margin-right: 0.25rem,
211
+ ),
212
+ inline-item-after: (
213
+ margin-left: 0.25rem,
214
+ ),
215
+ btn-section: (
216
+ font-size: 0.375rem,
217
+ ),
218
+ ),
197
219
  btn-lg: $btn-lg,
198
220
  btn-sm: $btn-sm,
199
221
  ),
@@ -230,6 +252,9 @@ $btn-monospaced: map-deep-merge(
230
252
  height: $btn-monospaced-size-mobile,
231
253
  width: $btn-monospaced-size-mobile,
232
254
  ),
255
+ inline-item: (
256
+ margin-top: 0,
257
+ ),
233
258
  lexicon-icon: (
234
259
  margin-top: 0,
235
260
  ),
@@ -301,6 +326,10 @@ $btn-monospaced-sm: map-deep-merge(
301
326
  $btn-monospaced-sizes: () !default;
302
327
  $btn-monospaced-sizes: map-deep-merge(
303
328
  (
329
+ btn-monospaced-xs: (
330
+ height: 1.5rem,
331
+ width: 1.5rem,
332
+ ),
304
333
  btn-monospaced: $btn-monospaced,
305
334
  btn-monospaced-lg: $btn-monospaced-lg,
306
335
  btn-monospaced-sm: $btn-monospaced-sm,
@@ -287,6 +287,14 @@ $custom-control-input: map-deep-merge(
287
287
  ),
288
288
  ),
289
289
  ),
290
+ readonly: (
291
+ custom-control-label: (
292
+ before: (
293
+ background-color: $custom-control-indicator-bg,
294
+ border-color: $custom-control-indicator-border-color,
295
+ ),
296
+ ),
297
+ ),
290
298
  ),
291
299
  ),
292
300
  $custom-control-input
@@ -353,6 +361,19 @@ $custom-checkbox: map-deep-merge(
353
361
  ),
354
362
  ),
355
363
  ),
364
+ readonly: (
365
+ custom-control-label: (
366
+ before: (
367
+ background-color: $white,
368
+ ),
369
+ after: (
370
+ background-image:
371
+ clay-svg-url(
372
+ "<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><path fill='#{$gray-600}' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/></svg>"
373
+ ),
374
+ ),
375
+ ),
376
+ ),
356
377
  ),
357
378
  indeterminate: (
358
379
  custom-control-label: (
@@ -385,6 +406,20 @@ $custom-checkbox: map-deep-merge(
385
406
  ),
386
407
  ),
387
408
  ),
409
+ readonly: (
410
+ custom-control-label: (
411
+ before: (
412
+ background-color: $custom-control-indicator-bg,
413
+ border-color: $custom-control-indicator-border-color,
414
+ ),
415
+ after: (
416
+ background-image:
417
+ clay-svg-url(
418
+ "<svg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'><path stroke='#{$gray-800}' d='M0 2h4'/></svg>"
419
+ ),
420
+ ),
421
+ ),
422
+ ),
388
423
  ),
389
424
  ),
390
425
  ),
@@ -938,6 +938,12 @@ $table-row-theme-colors: map-deep-merge(
938
938
  background-color:
939
939
  clay-darken(theme-color-level(dark, $table-bg-level), 5%),
940
940
  ),
941
+ table-title: (
942
+ color: $table-dark-color,
943
+ href: (
944
+ color: inherit,
945
+ ),
946
+ ),
941
947
  ),
942
948
  ),
943
949
  $table-row-theme-colors