@carbon/ibm-products-styles 2.66.0 → 2.67.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products-styles",
3
3
  "description": "Carbon for IBM Products styles",
4
- "version": "2.66.0",
4
+ "version": "2.67.0",
5
5
  "license": "Apache-2.0",
6
6
  "installConfig": {
7
7
  "hoistingLimits": "none"
@@ -42,9 +42,7 @@
42
42
  "build-css-update-maps": "node ../../scripts/updateSourceMaps.js",
43
43
  "clean": "rimraf css scss",
44
44
  "postinstall": "ibmtelemetry --config=telemetry.yml",
45
- "test": "jest --colors",
46
- "//upgrade-dependencies": "# don't upgrade carbon (done globally), react/react-dom (explicit range peer dependency), chalk (issue #1596)",
47
- "upgrade-dependencies": "npm-check-updates -u --dep dev,peer,prod --color --reject '/(carbon|^react$|^react-dom$|^chalk$|^namor)/'"
45
+ "test": "jest --colors"
48
46
  },
49
47
  "devDependencies": {
50
48
  "chalk": "^4.1.2",
@@ -52,23 +50,22 @@
52
50
  "cross-env": "^7.0.3",
53
51
  "glob": "^11.0.1",
54
52
  "jest": "^29.7.0",
55
- "jest-config-ibm-cloud-cognitive": "^1.29.0",
53
+ "jest-config-ibm-cloud-cognitive": "^1.30.0",
56
54
  "jest-environment-jsdom": "^29.7.0",
57
- "npm-check-updates": "^18.0.0",
58
55
  "npm-run-all": "^4.1.5",
59
56
  "rimraf": "^6.0.1",
60
57
  "sass": "^1.85.1",
61
58
  "yargs": "^18.0.0"
62
59
  },
63
60
  "peerDependencies": {
64
- "@carbon/grid": "^11.37.0",
65
- "@carbon/layout": "^11.35.0",
66
- "@carbon/motion": "^11.29.0",
67
- "@carbon/themes": "^11.54.0",
68
- "@carbon/type": "^11.41.0"
61
+ "@carbon/grid": "^11.38.0",
62
+ "@carbon/layout": "^11.36.0",
63
+ "@carbon/motion": "^11.30.0",
64
+ "@carbon/themes": "^11.55.0",
65
+ "@carbon/type": "^11.42.0"
69
66
  },
70
67
  "dependencies": {
71
68
  "@ibm/telemetry-js": "^1.9.1"
72
69
  },
73
- "gitHead": "49c16755842ebdb793878e0389dfcb7ec8ac44a7"
70
+ "gitHead": "6b1aa641b80b4df7b6fc51c91dfaaefbfccc1ae6"
74
71
  }
@@ -29,6 +29,7 @@
29
29
  $elements-block-class: #{c4p-settings.$pkg-prefix}--coachmark-stack-element;
30
30
  $overlay-class: #{c4p-settings.$pkg-prefix}--coachmark-overlay;
31
31
  $stack-home-class: #{c4p-settings.$pkg-prefix}--coachmark-stacked-home;
32
+ $style-stack-home: #{c4p-settings.$pkg-prefix}--coachmark-stack;
32
33
 
33
34
  .#{$elements-block-class} {
34
35
  $block: &;
@@ -44,7 +45,7 @@ $stack-home-class: #{c4p-settings.$pkg-prefix}--coachmark-stacked-home;
44
45
  &--is-mounted {
45
46
  inset-block-end: 0;
46
47
  /* stylelint-disable-next-line carbon/motion-easing-use, carbon/motion-duration-use */
47
- transition: $duration-moderate-02 motion(exit, productive);
48
+ transition: $duration-fast-02 motion(exit, productive);
48
49
  @media (prefers-reduced-motion) {
49
50
  transition: none;
50
51
  }
@@ -120,3 +121,13 @@ $stack-home-class: #{c4p-settings.$pkg-prefix}--coachmark-stacked-home;
120
121
  white-space: nowrap;
121
122
  }
122
123
  }
124
+
125
+ .#{$style-stack-home}--scaled-home {
126
+ opacity: 0.8;
127
+ transform: scale(0.9);
128
+ }
129
+
130
+ .#{$style-stack-home}--unscaled-home {
131
+ opacity: 1;
132
+ transform: none;
133
+ }
@@ -44,7 +44,7 @@ $one-grid-column: calc(100% / 16);
44
44
  &__carousel {
45
45
  block-size: 100%;
46
46
  .#{$carousel-item} {
47
- flex: 0 0 100% !important;
47
+ flex: 0 0 100%;
48
48
  scroll-snap-align: start;
49
49
  }
50
50
  }
@@ -54,6 +54,10 @@ $one-grid-column: calc(100% / 16);
54
54
  margin: 0 !important;
55
55
  }
56
56
 
57
+ &--content {
58
+ block-size: 100%;
59
+ }
60
+
57
61
  // HEADER
58
62
  &--internal-header {
59
63
  position: relative;
@@ -102,6 +106,7 @@ $one-grid-column: calc(100% / 16);
102
106
  // FOOTER
103
107
  &--footer {
104
108
  display: flex;
109
+ box-sizing: initial;
105
110
  flex-direction: row;
106
111
  justify-content: flex-end;
107
112
  background: $background;
@@ -119,7 +124,7 @@ $one-grid-column: calc(100% / 16);
119
124
  #{$block}--skip-btn {
120
125
  flex-grow: 1 !important;
121
126
  max-inline-size: none;
122
- padding-inline-start: $spacing-07 !important;
127
+ padding-inline-start: $spacing-07;
123
128
  }
124
129
  .#{c4p-settings.$carbon-prefix}--inline-loading {
125
130
  position: absolute;
@@ -149,14 +154,5 @@ $one-grid-column: calc(100% / 16);
149
154
  block-size: 100vh;
150
155
  max-inline-size: 100vw;
151
156
  }
152
-
153
- #{$block}--footer {
154
- #{$block}--skip-btn {
155
- padding-inline-start: $spacing-08 !important;
156
- @include breakpoint-down(xlg) {
157
- padding-inline-start: $spacing-07 !important;
158
- }
159
- }
160
- }
161
157
  }
162
158
  }
@@ -13,6 +13,7 @@
13
13
  @use '@carbon/styles/scss/spacing' as *;
14
14
  @use '@carbon/styles/scss/type';
15
15
  @use '@carbon/styles/scss/utilities';
16
+ @use '@carbon/layout/scss/convert' as *;
16
17
 
17
18
  // Standard imports.
18
19
  @use '../../global/styles/project-settings' as *;
@@ -704,3 +705,200 @@ $duration: 1000ms;
704
705
  > button.#{$carbon-prefix}--menu-button__trigger {
705
706
  min-inline-size: 0;
706
707
  }
708
+
709
+ /// Experimental Page header styles
710
+ /// @access public
711
+ /// @group page-header
712
+ @include block-wrap(#{$block-class}__next) {
713
+ &.#{$block-class} {
714
+ background-color: $layer-01;
715
+ border-block-end: 1px solid $border-subtle-01;
716
+ }
717
+
718
+ .#{$block-class}__breadcrumb-bar {
719
+ block-size: to-rem(40px);
720
+ }
721
+
722
+ .#{$block-class}__breadcrumb-bar .#{$carbon-prefix}--subgrid {
723
+ block-size: 100%;
724
+ }
725
+
726
+ .#{$block-class}__breadcrumb-container {
727
+ display: inline-flex;
728
+ align-items: center;
729
+ justify-content: space-between;
730
+ block-size: 100%;
731
+ inline-size: 100%;
732
+ }
733
+
734
+ .#{$block-class}__breadcrumb__actions-flush {
735
+ .#{$carbon-prefix}--css-grid {
736
+ padding-inline-end: 0;
737
+ }
738
+
739
+ .#{$carbon-prefix}--css-grid-column {
740
+ margin-inline-end: 0;
741
+ }
742
+ }
743
+
744
+ .#{$block-class}__breadcrumb-bar-border {
745
+ border-block-end: 1px solid $border-subtle-01;
746
+ }
747
+
748
+ .#{$block-class}__breadcrumb__icon {
749
+ margin-inline-end: $spacing-03;
750
+ }
751
+
752
+ .#{$block-class}__breadcrumb__actions {
753
+ display: inline-flex;
754
+ }
755
+
756
+ .#{$block-class}__breadcrumb__content-actions {
757
+ margin-inline-end: $spacing-04;
758
+ }
759
+
760
+ .#{$block-class}__breadcrumb-wrapper {
761
+ display: inline-flex;
762
+ }
763
+
764
+ .#{$block-class}__content {
765
+ padding: $spacing-06 0;
766
+ }
767
+
768
+ .#{$block-class}__content__title-wrapper {
769
+ @include breakpoint-down(md) {
770
+ display: flex;
771
+ flex-direction: column;
772
+ grid-gap: $spacing-05;
773
+ }
774
+
775
+ display: grid;
776
+ gap: $spacing-05;
777
+ grid-template-columns: auto minmax(
778
+ var(--page-header-title-grid-width, 0),
779
+ 1fr
780
+ );
781
+ margin-block-end: $spacing-05;
782
+ min-block-size: to-rem(40px);
783
+ }
784
+
785
+ .#{$block-class}__content__start {
786
+ display: flex;
787
+ flex-wrap: wrap;
788
+ gap: $spacing-05;
789
+ }
790
+
791
+ .#{$block-class}__content__title-container {
792
+ display: flex;
793
+ }
794
+
795
+ .#{$block-class}__content__title-container
796
+ .#{$carbon-prefix}--definition-term {
797
+ border-block-end: none;
798
+ }
799
+
800
+ .#{$block-class}__content__contextual-actions {
801
+ display: flex;
802
+ }
803
+
804
+ .#{$block-class}__content__title {
805
+ @include type.type-style('productive-heading-04');
806
+
807
+ display: -webkit-box;
808
+ overflow: hidden;
809
+ -webkit-box-orient: vertical;
810
+ -webkit-line-clamp: 2;
811
+ max-inline-size: to-rem(640px);
812
+ text-overflow: ellipsis;
813
+ white-space: normal;
814
+ }
815
+
816
+ .#{$block-class}__content:has(.#{$block-class}__content__contextual-actions)
817
+ .#{$block-class}__content__title {
818
+ -webkit-line-clamp: 1;
819
+ }
820
+
821
+ .#{$block-class}__content__icon {
822
+ margin-inline-end: $spacing-05;
823
+ }
824
+
825
+ .#{$block-class}__content__page-actions {
826
+ display: flex;
827
+ justify-content: right;
828
+
829
+ @include breakpoint-down('md') {
830
+ justify-content: left;
831
+ margin-block-start: 0;
832
+ }
833
+ }
834
+
835
+ .#{$block-class}__content__page-actions
836
+ .#{$carbon-prefix}--menu-button__trigger:not(
837
+ .#{$carbon-prefix}--btn--ghost
838
+ ) {
839
+ min-inline-size: 0;
840
+ }
841
+
842
+ .#{$block-class}__content__subtitle {
843
+ @include type.type-style('productive-heading-03');
844
+
845
+ margin-block-end: $spacing-03;
846
+ }
847
+
848
+ .#{$block-class}__content__body {
849
+ @include type.type-style('body-01');
850
+
851
+ margin-block-start: $spacing-03;
852
+ max-inline-size: to-rem(640px);
853
+ }
854
+
855
+ [data-hidden]:not([data-fixed]) {
856
+ display: none;
857
+ }
858
+
859
+ .#{$block-class}__hero-image {
860
+ display: flex;
861
+ overflow: hidden;
862
+ align-items: center;
863
+ justify-content: flex-end;
864
+ block-size: 100%;
865
+ }
866
+
867
+ .#{$block-class}__tab-bar {
868
+ margin-inline-start: -$spacing-05;
869
+ }
870
+
871
+ .#{$block-class}__tab-bar--tablist {
872
+ display: grid;
873
+ grid-gap: $spacing-10;
874
+ grid-template-columns: auto minmax(0, 1fr);
875
+ }
876
+
877
+ .#{$carbon-prefix}--tabs .#{$carbon-prefix}--tab--overflow-nav-button {
878
+ background-color: $layer-01;
879
+
880
+ &.#{$carbon-prefix}--tab--overflow-nav-button--next::before {
881
+ background: linear-gradient(to right, rgba(255, 255, 255, 0), $layer-01);
882
+ }
883
+
884
+ &.#{$carbon-prefix}--tab--overflow-nav-button--previous::before {
885
+ background: linear-gradient(to left, rgba(255, 255, 255, 0), $layer-01);
886
+ }
887
+ }
888
+
889
+ .#{$block-class}__tags {
890
+ display: flex;
891
+ align-items: center;
892
+ justify-content: right;
893
+ }
894
+
895
+ .#{$block-class}__tags-popover-list {
896
+ display: flex;
897
+ flex-direction: column;
898
+ padding: $spacing-05;
899
+ }
900
+
901
+ .#{$block-class}__tag-item {
902
+ flex-shrink: 0;
903
+ }
904
+ }
@@ -16,6 +16,7 @@
16
16
  @use '@carbon/styles/scss/type';
17
17
  @use '@carbon/styles/scss/breakpoint' as *;
18
18
  @use '@carbon/styles/scss/utilities';
19
+ @use '@carbon-labs/react-resizer/scss/resizer';
19
20
  @use '@carbon/styles/scss/components/button/tokens' as *;
20
21
 
21
22
  // Standard imports.
@@ -30,7 +31,7 @@
30
31
 
31
32
  $block-class: #{c4p-settings.$pkg-prefix}--side-panel;
32
33
  $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
33
- $clabs-prefix: 'clabs'; // TODO: remove when resizer available in labs
34
+ $clabs-prefix: 'clabs';
34
35
 
35
36
  @property --panel-transform {
36
37
  inherits: true;
@@ -638,54 +639,3 @@ $clabs-prefix: 'clabs'; // TODO: remove when resizer available in labs
638
639
  .#{$block-class}--has-decorator + .#{$block-class}__overlay {
639
640
  background-color: $ai-overlay;
640
641
  }
641
-
642
- // TODO: remove along with prefix after resizer available in labs
643
- .#{$clabs-prefix}__resizer {
644
- position: relative;
645
- flex: none;
646
- background-color: $border-subtle-01;
647
-
648
- &:hover {
649
- @media (prefers-reduced-motion: no-preference) {
650
- background-color: $border-interactive;
651
- transition: background-color $duration-moderate-01;
652
- }
653
- }
654
-
655
- &:focus {
656
- background-color: $border-interactive;
657
- outline: none;
658
- }
659
-
660
- &:active {
661
- background-color: $border-interactive;
662
- }
663
-
664
- &:focus:not(:focus-visible) {
665
- box-shadow: none;
666
- outline: none;
667
- }
668
-
669
- &--horizontal {
670
- block-size: $spacing-02;
671
- cursor: ns-resize;
672
- }
673
-
674
- &--vertical {
675
- cursor: ew-resize;
676
- inline-size: $spacing-02;
677
- }
678
- }
679
-
680
- .sr-only {
681
- position: absolute;
682
- overflow: hidden;
683
- padding: 0;
684
- border: 0;
685
- margin: -1px;
686
- block-size: 1px;
687
- clip: rect(0, 0, 0, 0);
688
- inline-size: 1px;
689
- white-space: nowrap;
690
- }
691
- // END TODO: remove along with prefix after resizer available in labs
@@ -40,3 +40,4 @@
40
40
  @use './UserProfileImage';
41
41
  @use './WebTerminal';
42
42
  @use './UserAvatar';
43
+ @use './InterstitialScreen';