@muraldevkit/ui-toolkit 2.11.0 → 2.12.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/components/index.d.ts +1 -0
- package/dist/components/navigation-sidebar/MrlSidebarNavGroup/MrlSidebarNavGroup.d.ts +25 -0
- package/dist/components/navigation-sidebar/MrlSidebarNavGroup/index.d.ts +1 -0
- package/dist/components/navigation-sidebar/index.d.ts +2 -0
- package/dist/components/portal/MrlPortal.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/MrlSidebarNavGroup/module.scss +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LevelType } from '../../text/constants';
|
|
3
|
+
interface MrlSidebarNavGroupProps extends React.ComponentPropsWithoutRef<'nav'> {
|
|
4
|
+
/** Additional class to add to the nav element */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** A list of navigation items */
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/** Set the semantic level of the heading, only applies when headingText is defined */
|
|
9
|
+
level?: Exclude<LevelType, '1'>;
|
|
10
|
+
/**
|
|
11
|
+
* Sets the heading's text.
|
|
12
|
+
* If no visual heading is required add the hiddenHeading prop
|
|
13
|
+
*/
|
|
14
|
+
headingText: string;
|
|
15
|
+
/** Prevents rendering the heading and uses aria-label to label the nav element */
|
|
16
|
+
hiddenHeading?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Sidebar group component
|
|
20
|
+
*
|
|
21
|
+
* @param {MrlSidebarNavGroupProps} props - the component props
|
|
22
|
+
* @returns a sidebar nav group
|
|
23
|
+
*/
|
|
24
|
+
export declare function MrlSidebarNavGroup({ className, children, level, headingText, style, hiddenHeading, ...rest }: MrlSidebarNavGroupProps): JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlSidebarNavGroup';
|
|
@@ -5,7 +5,7 @@ export interface portalProps {
|
|
|
5
5
|
export declare const MRL_PORTAL_ID = "mrl-root-portal";
|
|
6
6
|
/**
|
|
7
7
|
* Dynamically creates a single portal and send your children to the portal.
|
|
8
|
-
* Where they will live outside of the normal document flow
|
|
8
|
+
* Where they will live outside of the normal document flow
|
|
9
9
|
*
|
|
10
10
|
* @param portalProps Portal only takes children. Contact the platform team if you need to extend this.
|
|
11
11
|
* @returns MrlPortal component
|