@muraldevkit/ui-toolkit 2.60.0 → 2.61.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/panel/MrlPanel/MrlPanel.d.ts +39 -0
- package/dist/components/panel/MrlPanel/index.d.ts +1 -0
- package/dist/components/panel/MrlPanelFooter/MrlPanelFooter.d.ts +22 -0
- package/dist/components/panel/MrlPanelFooter/index.d.ts +1 -0
- package/dist/components/panel/MrlPanelStickyHeader/MrlPanelStickyHeader.d.ts +18 -0
- package/dist/components/panel/MrlPanelStickyHeader/index.d.ts +1 -0
- package/dist/components/panel/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/styles/MrlPanel/module.scss +38 -0
- package/dist/styles/MrlPanelFooter/module.scss +12 -0
- package/dist/styles/MrlPanelStickyHeader/module.scss +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the MrlPanel component.
|
|
4
|
+
*/
|
|
5
|
+
interface MrlPanelProps extends ComponentPropsWithRef<'div'> {
|
|
6
|
+
/**
|
|
7
|
+
* A string value used for data-qa attribute.
|
|
8
|
+
*/
|
|
9
|
+
['data-qa']?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Callback function that is called when the panel is closed.
|
|
12
|
+
*/
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
/**
|
|
15
|
+
* The custom header element to be rendered in the panel.
|
|
16
|
+
* When a custom header is used developers need to provide th aria-label and aria-describedby.
|
|
17
|
+
*/
|
|
18
|
+
header?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* The title of the panel.
|
|
21
|
+
*/
|
|
22
|
+
title?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The description of the panel.
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies whether to disable autofocus on the panel.
|
|
29
|
+
*/
|
|
30
|
+
disableAutofocus?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* MrlPanel component.
|
|
34
|
+
*
|
|
35
|
+
* @param props The MrlPanel component properties.
|
|
36
|
+
* @returns The MrlPanel component.
|
|
37
|
+
*/
|
|
38
|
+
export declare const MrlPanel: (props: MrlPanelProps) => JSX.Element;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MrlPanel } from './MrlPanel';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the MrlPanelFooter component.
|
|
4
|
+
*/
|
|
5
|
+
interface MrlPanelFooterProps extends ComponentPropsWithRef<'footer'> {
|
|
6
|
+
/**
|
|
7
|
+
* The children of the MrlPanelFooter component.
|
|
8
|
+
*/
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Specifies whether to show the divider.
|
|
12
|
+
*/
|
|
13
|
+
hasDivider?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* MrlPanelFooter component.
|
|
17
|
+
*
|
|
18
|
+
* @param props The MrlPanelFooter component properties.
|
|
19
|
+
* @returns The MrlPanelFooter component.
|
|
20
|
+
*/
|
|
21
|
+
export declare const MrlPanelFooter: ({ children, hasDivider, className, ...rest }: MrlPanelFooterProps) => JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MrlPanelFooter } from './MrlPanelFooter';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the MrlPanelStickyHeader component.
|
|
4
|
+
*/
|
|
5
|
+
interface MrlPanelStickyHeaderProps extends ComponentPropsWithRef<'div'> {
|
|
6
|
+
/**
|
|
7
|
+
* The children of the MrlPanelStickyHeader component.
|
|
8
|
+
*/
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* MrlPanelStickyHeader component.
|
|
13
|
+
*
|
|
14
|
+
* @param props The MrlPanelStickyHeader component properties.
|
|
15
|
+
* @returns The MrlPanel component.
|
|
16
|
+
*/
|
|
17
|
+
export declare const MrlPanelStickyHeader: ({ children, className, ...rest }: MrlPanelStickyHeaderProps) => JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MrlPanelStickyHeader } from './MrlPanelStickyHeader';
|