@carbon/styles 1.52.0-rc.0 → 1.53.0-rc.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.
@@ -617,6 +617,226 @@ $tag-hover-cool-gray: (
617
617
  ),
618
618
  ) !default;
619
619
 
620
+ $tag-border-gray: (
621
+ fallback: map.get(tag.$tag-border-gray, white-theme),
622
+ values: (
623
+ (
624
+ theme: themes.$white,
625
+ value: map.get(tag.$tag-border-gray, white-theme),
626
+ ),
627
+ (
628
+ theme: themes.$g10,
629
+ value: map.get(tag.$tag-border-gray, g-10),
630
+ ),
631
+ (
632
+ theme: themes.$g90,
633
+ value: map.get(tag.$tag-border-gray, g-90),
634
+ ),
635
+ (
636
+ theme: themes.$g100,
637
+ value: map.get(tag.$tag-border-gray, g-100),
638
+ ),
639
+ ),
640
+ ) !default;
641
+
642
+ $tag-border-red: (
643
+ fallback: map.get(tag.$tag-border-red, white-theme),
644
+ values: (
645
+ (
646
+ theme: themes.$white,
647
+ value: map.get(tag.$tag-border-red, white-theme),
648
+ ),
649
+ (
650
+ theme: themes.$g10,
651
+ value: map.get(tag.$tag-border-red, g-10),
652
+ ),
653
+ (
654
+ theme: themes.$g90,
655
+ value: map.get(tag.$tag-border-red, g-90),
656
+ ),
657
+ (
658
+ theme: themes.$g100,
659
+ value: map.get(tag.$tag-border-red, g-100),
660
+ ),
661
+ ),
662
+ ) !default;
663
+
664
+ $tag-border-blue: (
665
+ fallback: map.get(tag.$tag-border-blue, white-theme),
666
+ values: (
667
+ (
668
+ theme: themes.$white,
669
+ value: map.get(tag.$tag-border-blue, white-theme),
670
+ ),
671
+ (
672
+ theme: themes.$g10,
673
+ value: map.get(tag.$tag-border-blue, g-10),
674
+ ),
675
+ (
676
+ theme: themes.$g90,
677
+ value: map.get(tag.$tag-border-blue, g-90),
678
+ ),
679
+ (
680
+ theme: themes.$g100,
681
+ value: map.get(tag.$tag-border-blue, g-100),
682
+ ),
683
+ ),
684
+ ) !default;
685
+
686
+ $tag-border-cyan: (
687
+ fallback: map.get(tag.$tag-border-cyan, white-theme),
688
+ values: (
689
+ (
690
+ theme: themes.$white,
691
+ value: map.get(tag.$tag-border-cyan, white-theme),
692
+ ),
693
+ (
694
+ theme: themes.$g10,
695
+ value: map.get(tag.$tag-border-cyan, g-10),
696
+ ),
697
+ (
698
+ theme: themes.$g90,
699
+ value: map.get(tag.$tag-border-cyan, g-90),
700
+ ),
701
+ (
702
+ theme: themes.$g100,
703
+ value: map.get(tag.$tag-border-cyan, g-100),
704
+ ),
705
+ ),
706
+ ) !default;
707
+
708
+ $tag-border-teal: (
709
+ fallback: map.get(tag.$tag-border-teal, white-theme),
710
+ values: (
711
+ (
712
+ theme: themes.$white,
713
+ value: map.get(tag.$tag-border-teal, white-theme),
714
+ ),
715
+ (
716
+ theme: themes.$g10,
717
+ value: map.get(tag.$tag-border-teal, g-10),
718
+ ),
719
+ (
720
+ theme: themes.$g90,
721
+ value: map.get(tag.$tag-border-teal, g-90),
722
+ ),
723
+ (
724
+ theme: themes.$g100,
725
+ value: map.get(tag.$tag-border-teal, g-100),
726
+ ),
727
+ ),
728
+ ) !default;
729
+
730
+ $tag-border-green: (
731
+ fallback: map.get(tag.$tag-border-green, white-theme),
732
+ values: (
733
+ (
734
+ theme: themes.$white,
735
+ value: map.get(tag.$tag-border-green, white-theme),
736
+ ),
737
+ (
738
+ theme: themes.$g10,
739
+ value: map.get(tag.$tag-border-green, g-10),
740
+ ),
741
+ (
742
+ theme: themes.$g90,
743
+ value: map.get(tag.$tag-border-green, g-90),
744
+ ),
745
+ (
746
+ theme: themes.$g100,
747
+ value: map.get(tag.$tag-border-green, g-100),
748
+ ),
749
+ ),
750
+ ) !default;
751
+
752
+ $tag-border-magenta: (
753
+ fallback: map.get(tag.$tag-border-magenta, white-theme),
754
+ values: (
755
+ (
756
+ theme: themes.$white,
757
+ value: map.get(tag.$tag-border-magenta, white-theme),
758
+ ),
759
+ (
760
+ theme: themes.$g10,
761
+ value: map.get(tag.$tag-border-magenta, g-10),
762
+ ),
763
+ (
764
+ theme: themes.$g90,
765
+ value: map.get(tag.$tag-border-magenta, g-90),
766
+ ),
767
+ (
768
+ theme: themes.$g100,
769
+ value: map.get(tag.$tag-border-magenta, g-100),
770
+ ),
771
+ ),
772
+ ) !default;
773
+
774
+ $tag-border-purple: (
775
+ fallback: map.get(tag.$tag-border-purple, white-theme),
776
+ values: (
777
+ (
778
+ theme: themes.$white,
779
+ value: map.get(tag.$tag-border-purple, white-theme),
780
+ ),
781
+ (
782
+ theme: themes.$g10,
783
+ value: map.get(tag.$tag-border-purple, g-10),
784
+ ),
785
+ (
786
+ theme: themes.$g90,
787
+ value: map.get(tag.$tag-border-purple, g-90),
788
+ ),
789
+ (
790
+ theme: themes.$g100,
791
+ value: map.get(tag.$tag-border-purple, g-100),
792
+ ),
793
+ ),
794
+ ) !default;
795
+
796
+ $tag-border-cool-gray: (
797
+ fallback: map.get(tag.$tag-border-cool-gray, white-theme),
798
+ values: (
799
+ (
800
+ theme: themes.$white,
801
+ value: map.get(tag.$tag-border-cool-gray, white-theme),
802
+ ),
803
+ (
804
+ theme: themes.$g10,
805
+ value: map.get(tag.$tag-border-cool-gray, g-10),
806
+ ),
807
+ (
808
+ theme: themes.$g90,
809
+ value: map.get(tag.$tag-border-cool-gray, g-90),
810
+ ),
811
+ (
812
+ theme: themes.$g100,
813
+ value: map.get(tag.$tag-border-cool-gray, g-100),
814
+ ),
815
+ ),
816
+ ) !default;
817
+
818
+ $tag-border-warm-gray: (
819
+ fallback: map.get(tag.$tag-border-warm-gray, white-theme),
820
+ values: (
821
+ (
822
+ theme: themes.$white,
823
+ value: map.get(tag.$tag-border-warm-gray, white-theme),
824
+ ),
825
+ (
826
+ theme: themes.$g10,
827
+ value: map.get(tag.$tag-border-warm-gray, g-10),
828
+ ),
829
+ (
830
+ theme: themes.$g90,
831
+ value: map.get(tag.$tag-border-warm-gray, g-90),
832
+ ),
833
+ (
834
+ theme: themes.$g100,
835
+ value: map.get(tag.$tag-border-warm-gray, g-100),
836
+ ),
837
+ ),
838
+ ) !default;
839
+
620
840
  // warm-gray
621
841
  $tag-background-warm-gray: (
622
842
  fallback: map.get(tag.$tag-background-warm-gray, white-theme),
@@ -709,6 +929,16 @@ $tag-tokens: (
709
929
  tag-background-gray: $tag-background-gray,
710
930
  tag-color-gray: $tag-color-gray,
711
931
  tag-hover-gray: $tag-hover-gray,
932
+ tag-border-red: $tag-border-red,
933
+ tag-border-blue: $tag-border-blue,
934
+ tag-border-cyan: $tag-border-cyan,
935
+ tag-border-teal: $tag-border-teal,
936
+ tag-border-green: $tag-border-green,
937
+ tag-border-magenta: $tag-border-magenta,
938
+ tag-border-purple: $tag-border-purple,
939
+ tag-border-gray: $tag-border-gray,
940
+ tag-border-cool-gray: $tag-border-cool-gray,
941
+ tag-border-warm-gray: $tag-border-warm-gray,
712
942
  tag-background-cool-gray: $tag-background-cool-gray,
713
943
  tag-color-cool-gray: $tag-color-cool-gray,
714
944
  tag-hover-cool-gray: $tag-hover-cool-gray,
@@ -801,6 +1031,41 @@ $tag-color-gray: component-tokens.get-var($tag-color-gray, 'tag-color-gray');
801
1031
 
802
1032
  $tag-hover-gray: component-tokens.get-var($tag-hover-gray, 'tag-hover-gray');
803
1033
 
1034
+ $tag-border-red: component-tokens.get-var($tag-border-red, 'tag-border-red');
1035
+
1036
+ $tag-border-blue: component-tokens.get-var($tag-border-blue, 'tag-border-blue');
1037
+
1038
+ $tag-border-cyan: component-tokens.get-var($tag-border-cyan, 'tag-border-cyan');
1039
+
1040
+ $tag-border-teal: component-tokens.get-var($tag-border-teal, 'tag-border-teal');
1041
+
1042
+ $tag-border-green: component-tokens.get-var(
1043
+ $tag-border-green,
1044
+ 'tag-border-green'
1045
+ );
1046
+
1047
+ $tag-border-magenta: component-tokens.get-var(
1048
+ $tag-border-magenta,
1049
+ 'tag-border-magenta'
1050
+ );
1051
+
1052
+ $tag-border-purple: component-tokens.get-var(
1053
+ $tag-border-purple,
1054
+ 'tag-border-purple'
1055
+ );
1056
+
1057
+ $tag-border-gray: component-tokens.get-var($tag-border-gray, 'tag-border-gray');
1058
+
1059
+ $tag-border-cool-gray: component-tokens.get-var(
1060
+ $tag-border-cool-gray,
1061
+ 'tag-border-cool-gray'
1062
+ );
1063
+
1064
+ $tag-border-warm-gray: component-tokens.get-var(
1065
+ $tag-border-warm-gray,
1066
+ 'tag-border-warm-gray'
1067
+ );
1068
+
804
1069
  $tag-background-cool-gray: component-tokens.get-var(
805
1070
  $tag-background-cool-gray,
806
1071
  'tag-background-cool-gray'
@@ -27,7 +27,10 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
27
27
  /// Tile styles
28
28
  /// @access public
29
29
  /// @group tile
30
- @mixin tile($enable-experimental-tile-contrast: false) {
30
+ @mixin tile(
31
+ $enable-experimental-tile-contrast: false,
32
+ $enable-v12-tile-radio-icons: false
33
+ ) {
31
34
  .#{$prefix}--tile-group {
32
35
  @include reset;
33
36
  }
@@ -163,9 +166,17 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
163
166
  block-size: 1rem;
164
167
  inset-block-start: layout.density('padding-inline');
165
168
  inset-inline-end: layout.density('padding-inline');
166
- opacity: 0;
167
169
  transition: $duration-fast-02 motion(standard, productive);
168
170
 
171
+ @if (
172
+ enabled('enable-v12-tile-radio-icons') or
173
+ $enable-experimental-tile-contrast
174
+ ) {
175
+ opacity: 1;
176
+ } @else {
177
+ opacity: 0;
178
+ }
179
+
169
180
  svg {
170
181
  border-radius: 50%;
171
182
  fill: $icon-secondary;
@@ -383,7 +394,7 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
383
394
  }
384
395
 
385
396
  .#{$prefix}--tile--slug.#{$prefix}--tile {
386
- @include callout-gradient('default', 0, 'layer');
397
+ @include ai-popover-gradient('default', 0, 'layer');
387
398
 
388
399
  border: 1px solid transparent;
389
400
  box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
@@ -391,7 +402,7 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
391
402
  }
392
403
 
393
404
  .#{$prefix}--tile--slug.#{$prefix}--tile--expandable:hover {
394
- @include callout-gradient('default', 0, 'layer');
405
+ @include ai-popover-gradient('default', 0, 'layer');
395
406
  }
396
407
 
397
408
  .#{$prefix}--tile--slug.#{$prefix}--tile--selectable::before,
@@ -410,7 +421,7 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
410
421
 
411
422
  .#{$prefix}--tile--slug.#{$prefix}--tile--selectable::before,
412
423
  .#{$prefix}--tile--slug.#{$prefix}--tile--clickable::before {
413
- @include callout-gradient('hover', 0, 'layer');
424
+ @include ai-popover-gradient('hover', 0, 'layer');
414
425
 
415
426
  box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow;
416
427
  }
@@ -421,7 +432,7 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
421
432
  }
422
433
 
423
434
  .#{$prefix}--tile--slug.#{$prefix}--tile--selectable::after {
424
- @include callout-gradient('selected', 0, 'layer');
435
+ @include ai-popover-gradient('selected', 0, 'layer');
425
436
 
426
437
  box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow;
427
438
  }
@@ -68,12 +68,12 @@
68
68
  /// Experimental - name and structure subject to change. Use at your own risk!
69
69
  /// Adds callout gradient styles to a component
70
70
  /// @access private
71
- /// @example @include callout-gradient();
71
+ /// @example @include ai-popover-gradient();
72
72
  /// @param {String} $type - Type of gradient, either 'default', 'selected' or 'hover'
73
73
  /// @param {Number} $offset - specify a pixel offset the callout should start from the bottom
74
74
  /// @param {String} $background - specify the token to be used as the background
75
75
  /// @group utilities
76
- @mixin callout-gradient(
76
+ @mixin ai-popover-gradient(
77
77
  $type: 'default',
78
78
  $offset: 0,
79
79
  $background: 'background'
package/telemetry.yml ADDED
@@ -0,0 +1,7 @@
1
+ # yaml-language-server: $schema=https://unpkg.com/@ibm/telemetry-config-schema@v1/dist/config.schema.json
2
+ version: 1
3
+ projectId: d2574dfc-6ec7-4d1a-9c7a-b22cc16dc747
4
+ endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.cloud/v1/metrics
5
+ collect:
6
+ npm:
7
+ dependencies: null