@carbon-labs/react-ui-shell 0.39.0 → 0.41.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/es/components/SideNav.js
CHANGED
|
@@ -99,7 +99,8 @@ function SideNavRenderFunction(_ref, ref) {
|
|
|
99
99
|
[`${prefix}--side-nav--panel`]: navType === SIDE_NAV_TYPE.PANEL,
|
|
100
100
|
[`${prefix}--side-nav--ux`]: isChildOfHeader,
|
|
101
101
|
[`${prefix}--side-nav--hidden`]: !isPersistent,
|
|
102
|
-
[`${prefix}--side-nav--collapsible`]: isCollapsible
|
|
102
|
+
[`${prefix}--side-nav--collapsible`]: isCollapsible,
|
|
103
|
+
[`${prefix}--side-nav--with-overlay`]: !hideOverlay
|
|
103
104
|
});
|
|
104
105
|
const overlayClassName = cx({
|
|
105
106
|
[`${prefix}--side-nav__overlay`]: true,
|
|
@@ -101,7 +101,8 @@ function SideNavRenderFunction(_ref, ref) {
|
|
|
101
101
|
[`${prefix}--side-nav--panel`]: navType === SIDE_NAV_TYPE.PANEL,
|
|
102
102
|
[`${prefix}--side-nav--ux`]: isChildOfHeader,
|
|
103
103
|
[`${prefix}--side-nav--hidden`]: !isPersistent,
|
|
104
|
-
[`${prefix}--side-nav--collapsible`]: isCollapsible
|
|
104
|
+
[`${prefix}--side-nav--collapsible`]: isCollapsible,
|
|
105
|
+
[`${prefix}--side-nav--with-overlay`]: !hideOverlay
|
|
105
106
|
});
|
|
106
107
|
const overlayClassName = index.default({
|
|
107
108
|
[`${prefix}--side-nav__overlay`]: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon-labs/react-ui-shell",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"url": "https://github.com/carbon-design-system/carbon-labs",
|
|
14
14
|
"directory": "src/components/UIShell"
|
|
15
15
|
},
|
|
16
|
+
"types": "./es/index.d.ts",
|
|
16
17
|
"exports": {
|
|
17
18
|
".": {
|
|
18
19
|
"import": "./es/index.js",
|
|
19
|
-
"require": "./lib/index.js"
|
|
20
|
-
"type": "./es/index.d.ts"
|
|
20
|
+
"require": "./lib/index.js"
|
|
21
21
|
},
|
|
22
|
-
"./es
|
|
23
|
-
"./lib
|
|
24
|
-
"./scss
|
|
22
|
+
"./es/*": "./es/*",
|
|
23
|
+
"./lib/*": "./lib/*",
|
|
24
|
+
"./scss/*": "./scss/*"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"es",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@ibm/telemetry-js": "^1.9.1"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "84c5f4054019f11741d1a7f4bd5b9725914bab87"
|
|
45
45
|
}
|
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
|
|
8
8
|
@use '@carbon/styles/scss/utilities/convert' as convert;
|
|
9
9
|
@use '@carbon/styles/scss/motion' as *;
|
|
10
|
+
@use '@carbon/styles/scss/spacing' as *;
|
|
10
11
|
|
|
11
12
|
$prefix: 'cds' !default;
|
|
12
13
|
|
|
14
|
+
// Increases specificity to support shell components wrapped in a Theme component
|
|
13
15
|
.#{$prefix}--side-nav--panel ~ .#{$prefix}--content,
|
|
14
16
|
div:has(.#{$prefix}--side-nav--panel) ~ .#{$prefix}--content {
|
|
15
|
-
margin-inline-start:
|
|
17
|
+
margin-inline-start: $spacing-09;
|
|
16
18
|
transition: margin-inline-start $duration-fast-02, transform $duration-fast-02;
|
|
17
19
|
}
|
|
18
20
|
|
|
@@ -22,3 +24,9 @@ div:has(.#{$prefix}--side-nav--panel.#{$prefix}--side-nav--expanded)
|
|
|
22
24
|
~ .#{$prefix}--content {
|
|
23
25
|
margin-inline-start: convert.to-rem(256px);
|
|
24
26
|
}
|
|
27
|
+
|
|
28
|
+
// should not be a grid influencer when used with overlay
|
|
29
|
+
.#{$prefix}--side-nav--with-overlay.#{$prefix}--side-nav--expanded
|
|
30
|
+
~ .#{$prefix}--content {
|
|
31
|
+
margin-inline-start: $spacing-09;
|
|
32
|
+
}
|
|
@@ -348,8 +348,19 @@ div:has(.#{$prefix}--header)
|
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
//----------------------------------------------------------------------------
|
|
351
|
-
//
|
|
351
|
+
// Rail
|
|
352
352
|
//----------------------------------------------------------------------------
|
|
353
353
|
.#{$prefix}--side-nav--rail {
|
|
354
354
|
z-index: 7999; /* needs to be below header */
|
|
355
355
|
}
|
|
356
|
+
|
|
357
|
+
// allow overlay to display at all breakpoints
|
|
358
|
+
.#{$prefix}--side-nav__overlay-active {
|
|
359
|
+
z-index: z('overlay');
|
|
360
|
+
background-color: $overlay;
|
|
361
|
+
block-size: 100vh;
|
|
362
|
+
inline-size: 100vw;
|
|
363
|
+
opacity: 1;
|
|
364
|
+
transition: opacity $transition-expansion $standard-easing,
|
|
365
|
+
background-color $transition-expansion $standard-easing;
|
|
366
|
+
}
|