@carbon/ibmdotcom-web-components 2.30.0 → 2.31.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/dist/dotcom-shell.js +2 -2
- package/dist/dotcom-shell.min.js +1 -1
- package/dist/ibmdotcom-web-components-dotcom-shell.js +2 -2
- package/dist/ibmdotcom-web-components-dotcom-shell.min.js +1 -1
- package/dist/{index-dbec7dea.js → index-26a88a3d.js} +1972 -1417
- package/dist/{index-70141123.js → index-4100d655.js} +203 -165
- package/dist/{left-nav-menu-4547bc31.js → left-nav-menu-73cc4d31.js} +2 -2
- package/dist/{left-nav-menu-e123e07b.js → left-nav-menu-bc31afe6.js} +1 -1
- package/dist/{left-nav-menu-category-heading-ea7b8fd0.js → left-nav-menu-category-heading-ae671aac.js} +1 -1
- package/dist/{left-nav-menu-category-heading-40a84206.js → left-nav-menu-category-heading-be3c5305.js} +2 -2
- package/dist/{left-nav-menu-item-b13fa9bd.js → left-nav-menu-item-527bd558.js} +1 -1
- package/dist/{left-nav-menu-item-f0de1048.js → left-nav-menu-item-77d3bbd4.js} +2 -2
- package/dist/{left-nav-menu-section-46049aa9.js → left-nav-menu-section-9167278e.js} +2 -2
- package/dist/{left-nav-menu-section-12c63c9c.js → left-nav-menu-section-c78646ab.js} +1 -1
- package/dist/{left-nav-overlay-d67d0a6a.js → left-nav-overlay-a08a649c.js} +2 -2
- package/dist/{left-nav-overlay-f71e3d74.js → left-nav-overlay-f04dc847.js} +1 -1
- package/dist/{megamenu-category-group-c85b1d1c.js → megamenu-category-group-24b09a4c.js} +1 -1
- package/dist/{megamenu-category-group-copy-74dadbb3.js → megamenu-category-group-copy-2b174334.js} +1 -1
- package/dist/{megamenu-category-group-copy-fd64eb79.js → megamenu-category-group-copy-e82bc5f8.js} +2 -2
- package/dist/{megamenu-category-group-2098af3d.js → megamenu-category-group-e89e1b08.js} +2 -2
- package/dist/{megamenu-category-heading-24704ad6.js → megamenu-category-heading-1a4b7528.js} +2 -2
- package/dist/{megamenu-category-heading-88fb4721.js → megamenu-category-heading-79034e24.js} +1 -1
- package/dist/{megamenu-category-link-af006474.js → megamenu-category-link-1052455e.js} +2 -2
- package/dist/{megamenu-category-link-ae6d2273.js → megamenu-category-link-5675f4ea.js} +1 -1
- package/dist/{megamenu-category-link-group-8c6969cd.js → megamenu-category-link-group-36c5488f.js} +1 -1
- package/dist/{megamenu-category-link-group-06a95043.js → megamenu-category-link-group-5634039f.js} +2 -2
- package/dist/{megamenu-left-navigation-382f79e5.js → megamenu-left-navigation-1aec089b.js} +1 -1
- package/dist/{megamenu-left-navigation-7796fe5e.js → megamenu-left-navigation-3141795e.js} +2 -2
- package/dist/{megamenu-overlay-327917c7.js → megamenu-overlay-175353cb.js} +1 -1
- package/dist/{megamenu-overlay-d33c2656.js → megamenu-overlay-1ddf254a.js} +2 -2
- package/dist/{megamenu-tab-819a92be.js → megamenu-tab-9e226ee0.js} +1 -1
- package/dist/{megamenu-tab-d7354c99.js → megamenu-tab-a16b83c8.js} +2 -2
- package/es/components/content-block-simple/content-block-simple.css.js +1 -1
- package/es/components/masthead/masthead-composite.d.ts +2 -1
- package/es/components/masthead/masthead-composite.js +14 -9
- package/es/components/masthead/masthead-composite.js.map +1 -1
- package/es/components/masthead/masthead.css.js +1 -1
- package/es/components/masthead/megamenu-language-selector.css.js +12 -0
- package/es/components/masthead/megamenu-language-selector.d.ts +374 -0
- package/es/components/masthead/megamenu-language-selector.js +551 -0
- package/es/components/masthead/megamenu-language-selector.js.map +1 -0
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/lib/component-mixins/callout/defs.js +16 -16
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/package.json +5 -5
- package/scss/components/content-block-simple/content-block-simple.scss +38 -1
- package/scss/components/masthead/masthead.scss +2 -3
- package/scss/components/masthead/megamenu-language-selector.scss +170 -0
|
@@ -18,10 +18,10 @@ exports.default = void 0;
|
|
|
18
18
|
* @type {object} Settings object
|
|
19
19
|
* @property {string} [stablePrefix=c4d] stable prefix
|
|
20
20
|
* @property {string} [prefix=cds] core Carbon prefix
|
|
21
|
-
* Carbon for IBM.com v2.
|
|
21
|
+
* Carbon for IBM.com v2.31.0',
|
|
22
22
|
*/
|
|
23
23
|
var settings = {
|
|
24
|
-
version: 'Carbon for IBM.com v2.
|
|
24
|
+
version: 'Carbon for IBM.com v2.31.0',
|
|
25
25
|
stablePrefix: 'c4d',
|
|
26
26
|
prefix: 'cds'
|
|
27
27
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/ibmdotcom-web-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.31.0",
|
|
4
4
|
"description": "Carbon for IBM.com Web Components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"exports": {
|
|
@@ -92,9 +92,9 @@
|
|
|
92
92
|
"cypress:verify": "cypress verify"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@carbon/ibmdotcom-services": "2.
|
|
96
|
-
"@carbon/ibmdotcom-styles": "2.
|
|
97
|
-
"@carbon/ibmdotcom-utilities": "2.
|
|
95
|
+
"@carbon/ibmdotcom-services": "2.31.0",
|
|
96
|
+
"@carbon/ibmdotcom-styles": "2.31.0",
|
|
97
|
+
"@carbon/ibmdotcom-utilities": "2.31.0",
|
|
98
98
|
"@carbon/layout": "11.27.0",
|
|
99
99
|
"@carbon/motion": "11.24.0",
|
|
100
100
|
"@carbon/styles": "1.65.0",
|
|
@@ -243,5 +243,5 @@
|
|
|
243
243
|
"web-component-analyzer": "1.2.0-next.0",
|
|
244
244
|
"webpack": "^4.46.0"
|
|
245
245
|
},
|
|
246
|
-
"gitHead": "
|
|
246
|
+
"gitHead": "ccaa448c12148a6767feb9943d5e1a4981302b46"
|
|
247
247
|
}
|
|
@@ -43,8 +43,45 @@
|
|
|
43
43
|
|
|
44
44
|
::slotted(#{$c4d-prefix}-card) {
|
|
45
45
|
@include breakpoint('md') {
|
|
46
|
-
inline-size: 34%;
|
|
47
46
|
margin-inline-start: -$spacing-05;
|
|
48
47
|
}
|
|
49
48
|
}
|
|
49
|
+
|
|
50
|
+
/* TOC template (anything that's not FW) */
|
|
51
|
+
&:not(.cds--content-block--full-width-template) {
|
|
52
|
+
::slotted(#{$c4d-prefix}-card[slot='footer']) {
|
|
53
|
+
/* sm and down */
|
|
54
|
+
@include breakpoint-down(md) {
|
|
55
|
+
inline-size: 100%;
|
|
56
|
+
max-inline-size: 100%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* md and larger */
|
|
60
|
+
@include breakpoint('md') {
|
|
61
|
+
inline-size: calc(50% + 1rem);
|
|
62
|
+
max-inline-size: 100vw;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host(
|
|
69
|
+
#{$c4d-prefix}-content-block-simple.cds--content-block--full-width-template
|
|
70
|
+
) {
|
|
71
|
+
::slotted(#{$c4d-prefix}-card[slot='footer']) {
|
|
72
|
+
/* default for lg, xlg, max */
|
|
73
|
+
inline-size: 34%;
|
|
74
|
+
|
|
75
|
+
/* sm and down */
|
|
76
|
+
@include breakpoint-down(md) {
|
|
77
|
+
inline-size: 100%;
|
|
78
|
+
max-inline-size: 100%;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* md only */
|
|
82
|
+
@media (width >= 672px) and (width <= 1055.98px) {
|
|
83
|
+
inline-size: calc(50% + 1rem);
|
|
84
|
+
max-inline-size: 100vw;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
50
87
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//
|
|
2
|
-
// Copyright IBM Corp. 2020,
|
|
2
|
+
// Copyright IBM Corp. 2020, 2025
|
|
3
3
|
//
|
|
4
4
|
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
@use '@carbon/styles/scss/components/tooltip/tooltip' as *;
|
|
18
18
|
@use '@carbon/styles/scss/components/ui-shell/header' as *;
|
|
19
19
|
@use '@carbon/styles/scss/components/ui-shell/side-nav' as *;
|
|
20
|
-
|
|
21
|
-
@use '../../../../styles/scss/components/masthead' as *;
|
|
20
|
+
@use '@carbon/ibmdotcom-styles/scss/components/masthead' as *;
|
|
22
21
|
@use '@carbon/ibmdotcom-styles/scss/components/search-with-typeahead/' as *;
|
|
23
22
|
@use '@carbon/ibmdotcom-styles/scss/globals/vars' as *;
|
|
24
23
|
@use '@carbon/web-components/scss/components/tooltip/tooltip' as *;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2020, 2025
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@use '@carbon/styles/scss/utilities/convert' as *;
|
|
9
|
+
@use '@carbon/styles/scss/spacing' as *;
|
|
10
|
+
@use '@carbon/styles/scss/breakpoint' as *;
|
|
11
|
+
@use '@carbon/styles/scss/theme' as *;
|
|
12
|
+
@use '@carbon/styles/scss/compat/theme' as *;
|
|
13
|
+
@use '@carbon/styles/scss/themes' as *;
|
|
14
|
+
@use '@carbon/styles/scss/colors' as *;
|
|
15
|
+
@use '@carbon/styles/scss/type' as *;
|
|
16
|
+
|
|
17
|
+
:host {
|
|
18
|
+
position: relative;
|
|
19
|
+
display: block;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.earth-language-icon {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
padding: 1rem;
|
|
27
|
+
color: $icon-secondary;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
padding-block-end: 14px;
|
|
30
|
+
|
|
31
|
+
svg {
|
|
32
|
+
margin-block-start: -2px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
background: $background-hover;
|
|
37
|
+
color: $icon-primary;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:active {
|
|
41
|
+
background: $background-hover;
|
|
42
|
+
color: $icon-primary;
|
|
43
|
+
outline: 2px solid var(--cds-button-primary, #0f62fe);
|
|
44
|
+
outline-offset: -2px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:focus {
|
|
48
|
+
outline: 2px solid var(--cds-button-primary, #0f62fe);
|
|
49
|
+
outline-offset: -2px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[aria-expanded='true'] {
|
|
53
|
+
color: $icon-secondary;
|
|
54
|
+
outline: 2px solid $focus;
|
|
55
|
+
|
|
56
|
+
&:hover {
|
|
57
|
+
background-color: $background-selected;
|
|
58
|
+
color: $icon-primary;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
#countrySwitcher {
|
|
64
|
+
position: absolute;
|
|
65
|
+
z-index: 1000;
|
|
66
|
+
inset-block-start: 0.2vh;
|
|
67
|
+
inset-inline: auto 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
#countryDropdown {
|
|
71
|
+
overflow: hidden auto;
|
|
72
|
+
border-radius: 4px;
|
|
73
|
+
background-color: #ffffff;
|
|
74
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
|
|
75
|
+
inline-size: 320px;
|
|
76
|
+
margin-block-start: calc(var(--c4d-masthead-l0-bottom-edge, 3rem) + 1px);
|
|
77
|
+
max-block-size: calc(
|
|
78
|
+
100vh - var(--cds-spacing-09, 3rem) - var(--cds-layout-05, 4rem)
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
&.hidden {
|
|
82
|
+
display: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@include breakpoint-between(320px, 671px) {
|
|
86
|
+
position: fixed;
|
|
87
|
+
z-index: 8000;
|
|
88
|
+
block-size: calc(100% - 1px - 3rem);
|
|
89
|
+
inline-size: 100vw;
|
|
90
|
+
inset-block: 0;
|
|
91
|
+
inset-inline-start: 0;
|
|
92
|
+
max-inline-size: 100vw;
|
|
93
|
+
will-change: inline-size;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.current-region-container {
|
|
98
|
+
background: $background-inverse;
|
|
99
|
+
|
|
100
|
+
.current-region-label {
|
|
101
|
+
padding: 15px 16px;
|
|
102
|
+
border-block-end-width: 1px;
|
|
103
|
+
@include type-style('label-01');
|
|
104
|
+
|
|
105
|
+
color: $text-on-color;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.current-region-value {
|
|
109
|
+
padding: 0 16px 15px;
|
|
110
|
+
border-block-end-width: 1px;
|
|
111
|
+
color: $text-on-color;
|
|
112
|
+
@include type-style('body-compact-01');
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.region-selection {
|
|
117
|
+
@include type-style('label-01');
|
|
118
|
+
|
|
119
|
+
padding: 15px 16px;
|
|
120
|
+
background: $background;
|
|
121
|
+
border-block-end: 1px solid $border-subtle-01;
|
|
122
|
+
color: $text-primary;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.region-list-container {
|
|
126
|
+
padding: 0;
|
|
127
|
+
margin: 0;
|
|
128
|
+
background: #ffffff;
|
|
129
|
+
list-style: none;
|
|
130
|
+
|
|
131
|
+
li {
|
|
132
|
+
padding: 15px 16px;
|
|
133
|
+
background: $background;
|
|
134
|
+
border-block-end: 1px solid $border-subtle-01;
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
font-size: 14px;
|
|
137
|
+
|
|
138
|
+
&:hover {
|
|
139
|
+
background: $background-hover;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&:focus {
|
|
143
|
+
outline: 2px solid var(--cds-button-primary, #0f62fe);
|
|
144
|
+
outline-offset: -2px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&:active {
|
|
148
|
+
background: $background-selected;
|
|
149
|
+
color: $text-primary;
|
|
150
|
+
outline: 2px solid var(--cds-button-primary, #0f62fe);
|
|
151
|
+
outline-offset: -2px;
|
|
152
|
+
@include type-style('body-compact-01');
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@include breakpoint-between(320px, 799px) {
|
|
158
|
+
// Stylelint here complains that the tags for the selector are not valid, but they're web component's tags
|
|
159
|
+
/* stylelint-disable selector-type-no-unknown */
|
|
160
|
+
:host-context(c4d-masthead-container) {
|
|
161
|
+
c4d-masthead {
|
|
162
|
+
c4d-masthead-global-bar {
|
|
163
|
+
c4d-masthead-contact {
|
|
164
|
+
/* stylelint-disable-next-line declaration-no-important */
|
|
165
|
+
display: none !important;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|