@muraldevkit/ui-toolkit 2.11.1 → 2.12.1
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/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';
|