Skip to content

Commit

Permalink
feat: upgrade Carbon packages (#1122)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonFinney committed Nov 2, 2021
1 parent df0377b commit 53ce334
Show file tree
Hide file tree
Showing 23 changed files with 389 additions and 95 deletions.
Binary file added .yarn/offline-mirror/@babel-runtime-7.16.0.tgz
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/offline-mirror/@carbon-grid-10.38.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@carbon-grid-10.39.0.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/offline-mirror/@carbon-layout-10.33.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@carbon-layout-10.34.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@carbon-motion-10.25.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@carbon-motion-10.26.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@carbon-themes-10.45.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@carbon-themes-10.46.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/@carbon-type-10.37.0.tgz
Binary file not shown.
Binary file added .yarn/offline-mirror/@carbon-type-10.38.0.tgz
Binary file not shown.
Binary file removed .yarn/offline-mirror/carbon-components-10.46.0.tgz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@
},
"dependencies": {
"@babel/runtime": "^7.14.8",
"@carbon/colors": "10.33.0",
"@carbon/grid": "10.38.0",
"@carbon/icons-react": "10.41.0",
"@carbon/colors": "10.34.0",
"@carbon/grid": "10.39.0",
"@carbon/icons-react": "10.42.0",
"@carbon/import-once": "10.5.0",
"@carbon/layout": "10.33.0",
"@carbon/motion": "10.25.0",
"@carbon/layout": "10.34.0",
"@carbon/motion": "10.26.0",
"@carbon/telemetry": "^0.0.0-alpha.6",
"@carbon/themes": "10.45.0",
"@carbon/type": "10.37.0",
"carbon-components": "10.46.0",
"carbon-components-react": "7.46.0",
"@carbon/themes": "10.46.0",
"@carbon/type": "10.38.0",
"carbon-components": "10.47.0",
"carbon-components-react": "7.47.1",
"carbon-icons": "7.0.7",
"classnames": "^2.3.1",
"downshift": "^6.1.3",
Expand Down
258 changes: 241 additions & 17 deletions src/__tests__/scss/__snapshots__/styles-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5841,6 +5841,13 @@ body {
}
}

@media screen and (-ms-high-contrast: active), (forced-colors: active), (prefers-contrast) {
.bx--btn--ghost.bx--btn--icon-only .bx--btn__icon path:not([data-icon-path]):not([fill='none']),
.bx--btn--ghost.bx--btn--icon-only .bx--btn__icon {
fill: ButtonText;
}
}

.security--button--ghost-danger {
color: var(--cds-text-01, #f4f4f4);
}
Expand Down Expand Up @@ -6522,6 +6529,31 @@ body {
color: var(--cds-disabled-02, #525252);
}

.bx--list-box__menu-item[disabled],
.bx--list-box__menu-item[disabled] *,
.bx--list-box__menu-item[disabled] .bx--list-box__menu-item__option,
.bx--list-box__menu-item[disabled]:hover {
color: var(--cds-disabled-02, #525252);
cursor: not-allowed;
outline: none;
}

.bx--list-box__menu-item[disabled]:hover {
background-color: revert;
}

.bx--list-box__menu-item[disabled] .bx--checkbox-label::before {
border-color: var(--cds-disabled-02, #525252);
}

.bx--list-box__menu-item[disabled] .bx--list-box__menu-item__option {
border-top-color: var(--cds-ui-03, #393939);
}

.bx--list-box__menu-item[disabled]:hover + .bx--list-box__menu-item .bx--list-box__menu-item__option {
border-top-color: var(--cds-ui-03, #393939);
}

.bx--list-box.bx--list-box--inline .bx--list-box__menu-item__option {
margin: 0 0.5rem;
}
Expand Down Expand Up @@ -9013,6 +9045,7 @@ fieldset[disabled] .bx--form__helper-text {
}

.bx--form-item.bx--checkbox-wrapper {
position: relative;
margin-bottom: 0.25rem;
}

Expand Down Expand Up @@ -19979,9 +20012,9 @@ li.bx--accordion__item--disabled:last-of-type {
margin-right: 0.75rem;
}

.bx--tooltip__label.bx--progress-label:active {
box-shadow: 0 0.1875rem 0 0 var(--cds-interactive-01, #0f62fe);
color: var(--cds-interactive-01, #0f62fe);
.bx--progress-step-button:not(.bx--progress-step-button--unclickable) .bx--progress-label:active {
box-shadow: 0 0.1875rem 0 0 var(--cds-interactive, #4589ff);
color: var(--cds-interactive, #4589ff);
}

.bx--progress-label-overflow:hover ~ .bx--tooltip,
Expand Down Expand Up @@ -31811,30 +31844,202 @@ a.bx--tabs__nav-link:focus, a.bx--tabs__nav-link:active {
fill: var(--cds-disabled-01, #262626);
}

.bx--toggle__label.bx--skeleton {
flex-direction: column;
align-items: flex-start;
.bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch {
position: relative;
padding: 0;
border: none;
background: var(--cds-skeleton-01, #353535);
box-shadow: none;
pointer-events: none;
width: 3rem;
margin-top: 0.5rem;
}

.bx--toggle__label.bx--skeleton .bx--toggle__label-text {
margin-bottom: 0.5rem;
.bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch:hover, .bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch:focus, .bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch:active {
border: none;
cursor: default;
outline: none;
}

@media screen and (-ms-high-contrast: active), (forced-colors: active), (prefers-contrast) {
.bx--toggle__switch::after,
.bx--toggle__switch::before {
outline: 1px solid transparent;
.bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch::before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
animation: 3000ms ease-in-out skeleton infinite;
background: var(--cds-skeleton-02, #525252);
content: '';
will-change: transform-origin, transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
.bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch::before {
animation: none;
}
}

@media screen and (-ms-high-contrast: active), (forced-colors: active), (prefers-contrast) {
.bx--toggle-input:focus + .bx--toggle-input__label > .bx--toggle__switch::before,
.bx--toggle-input:active + .bx--toggle-input__label > .bx--toggle__switch::before {
color: Highlight;
outline: 1px solid Highlight;
.bx--toggle.bx--skeleton + .bx--toggle-input__label > div {
overflow: hidden;
width: 1.5rem;
height: 0.5rem;
font-size: 0%;
line-height: 0;
position: relative;
padding: 0;
border: none;
background: var(--cds-skeleton-01, #353535);
box-shadow: none;
pointer-events: none;
}

.bx--toggle.bx--skeleton + .bx--toggle-input__label > div:hover, .bx--toggle.bx--skeleton + .bx--toggle-input__label > div:focus, .bx--toggle.bx--skeleton + .bx--toggle-input__label > div:active {
border: none;
cursor: default;
outline: none;
}

.bx--toggle.bx--skeleton + .bx--toggle-input__label > div::before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
animation: 3000ms ease-in-out skeleton infinite;
background: var(--cds-skeleton-02, #525252);
content: '';
will-change: transform-origin, transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
.bx--toggle.bx--skeleton + .bx--toggle-input__label > div::before {
animation: none;
}
}

.bx--toggle-input--small.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch {
position: relative;
padding: 0;
border: none;
background: var(--cds-skeleton-01, #353535);
box-shadow: none;
pointer-events: none;
width: 2rem;
margin-top: 0.5rem;
}

.bx--toggle-input--small.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch:hover, .bx--toggle-input--small.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch:focus, .bx--toggle-input--small.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch:active {
border: none;
cursor: default;
outline: none;
}

.bx--toggle-input--small.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch::before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
animation: 3000ms ease-in-out skeleton infinite;
background: var(--cds-skeleton-02, #525252);
content: '';
will-change: transform-origin, transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
.bx--toggle-input--small.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch::before {
animation: none;
}
}

.bx--toggle-input--small.bx--skeleton + .bx--toggle-input__label > div {
overflow: hidden;
width: 1rem;
height: 0.5rem;
font-size: 0%;
line-height: 0;
position: relative;
padding: 0;
border: none;
background: var(--cds-skeleton-01, #353535);
box-shadow: none;
pointer-events: none;
}

.bx--toggle-input--small.bx--skeleton + .bx--toggle-input__label > div:hover, .bx--toggle-input--small.bx--skeleton + .bx--toggle-input__label > div:focus, .bx--toggle-input--small.bx--skeleton + .bx--toggle-input__label > div:active {
border: none;
cursor: default;
outline: none;
}

.bx--toggle-input--small.bx--skeleton + .bx--toggle-input__label > div::before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
animation: 3000ms ease-in-out skeleton infinite;
background: var(--cds-skeleton-02, #525252);
content: '';
will-change: transform-origin, transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
.bx--toggle-input--small.bx--skeleton + .bx--toggle-input__label > div::before {
animation: none;
}
}

.bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left {
position: relative;
padding: 0;
border: none;
background: var(--cds-skeleton-01, #353535);
box-shadow: none;
pointer-events: none;
position: absolute;
width: 1rem;
height: 0.5rem;
}

.bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left:hover, .bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left:focus, .bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left:active {
border: none;
cursor: default;
outline: none;
}

.bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left::before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
animation: 3000ms ease-in-out skeleton infinite;
background: var(--cds-skeleton-02, #525252);
content: '';
will-change: transform-origin, transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
.bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left::before {
animation: none;
}
}

.bx--toggle-input--small.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch .bx--toggle__text--left {
left: 2rem;
}

.bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch::after,
.bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__appearance::after,
.bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__appearance::before {
display: none;
}

.bx--toggle.bx--skeleton + .bx--toggle-input__label .bx--toggle__switch::before {
border-radius: 0;
}

.bx--header {
position: fixed;
z-index: 8000;
Expand Down Expand Up @@ -32070,6 +32275,25 @@ a.bx--header__menu-item.bx--header__menu-item--current:focus {
position: relative;
}

.bx--header__submenu--current::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
border-bottom: 3px solid var(--cds-border-interactive, #4589ff);
content: '';
}

.bx--header__submenu--current:focus {
border: 2px solid var(--cds-focus, #ffffff);
}

.bx--header__submenu--current:focus::after {
border: 0;
}

.bx--header__menu-title[aria-haspopup='true'] {
position: relative;
}
Expand Down
Loading

0 comments on commit 53ce334

Please sign in to comment.