@carbon-labs/react-ui-shell 0.48.0 → 0.49.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.
@@ -34,8 +34,8 @@ export interface SideNavProps extends ComponentProps<'nav'>, TranslateWithId<Tra
34
34
  inert?: boolean;
35
35
  isCollapsible?: boolean;
36
36
  hideOverlay?: boolean;
37
- navType: SIDE_NAV_TYPE;
38
- isTreeview: boolean;
37
+ navType?: SIDE_NAV_TYPE;
38
+ isTreeview?: boolean;
39
39
  }
40
40
  interface SideNavContextData {
41
41
  expanded?: boolean;
@@ -10,7 +10,7 @@ export interface SideNavItemsProps {
10
10
  * Object to provide an aria-label to the component when used in treeview,
11
11
  * to ensure it meets a11y requirements.
12
12
  */
13
- accessibilityLabel: object;
13
+ accessibilityLabel?: object;
14
14
  /**
15
15
  * Provide a single icon as the child to `SideNavIcon` to render in the
16
16
  * container
@@ -34,8 +34,8 @@ export interface SideNavProps extends ComponentProps<'nav'>, TranslateWithId<Tra
34
34
  inert?: boolean;
35
35
  isCollapsible?: boolean;
36
36
  hideOverlay?: boolean;
37
- navType: SIDE_NAV_TYPE;
38
- isTreeview: boolean;
37
+ navType?: SIDE_NAV_TYPE;
38
+ isTreeview?: boolean;
39
39
  }
40
40
  interface SideNavContextData {
41
41
  expanded?: boolean;
@@ -10,7 +10,7 @@ export interface SideNavItemsProps {
10
10
  * Object to provide an aria-label to the component when used in treeview,
11
11
  * to ensure it meets a11y requirements.
12
12
  */
13
- accessibilityLabel: object;
13
+ accessibilityLabel?: object;
14
14
  /**
15
15
  * Provide a single icon as the child to `SideNavIcon` to render in the
16
16
  * container
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbon-labs/react-ui-shell",
3
- "version": "0.48.0",
3
+ "version": "0.49.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -41,5 +41,5 @@
41
41
  "dependencies": {
42
42
  "@ibm/telemetry-js": "^1.9.1"
43
43
  },
44
- "gitHead": "1a3a98d3c24b71489bc34df3f8577f3b392c2891"
44
+ "gitHead": "1e08173d74affc3140518dcf5e78b1d6d5236481"
45
45
  }
@@ -21,7 +21,8 @@ $prefix: 'cds' !default;
21
21
 
22
22
  div:has(.#{$prefix}--header)
23
23
  ~ div:has(.#{$prefix}--side-nav)
24
- .#{$prefix}--side-nav {
24
+ .#{$prefix}--side-nav,
25
+ .#{$prefix}--header ~ div:has(.#{$prefix}--side-nav) .#{$prefix}--side-nav {
25
26
  block-size: calc(100% - $spacing-09);
26
27
  inset-block-start: $spacing-09;
27
28
  }