@muraldevkit/ui-toolkit 4.39.2-dev-MDdX.1 → 4.40.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.
@@ -0,0 +1,44 @@
1
+ import * as React from 'react';
2
+ import { Link } from 'react-router-dom';
3
+ export type BreadcrumbItemLink = {
4
+ text: string;
5
+ link: string;
6
+ } | {
7
+ text: string;
8
+ link: React.ComponentPropsWithoutRef<typeof Link>;
9
+ };
10
+ export type BreadcrumbItem = {
11
+ isSelected?: boolean;
12
+ hasSeparator?: boolean;
13
+ isTruncated?: boolean;
14
+ } & BreadcrumbItemLink;
15
+ export interface MrlBreadcrumbItemProps extends React.ComponentPropsWithRef<'li'> {
16
+ /**
17
+ * Children to be rendered within the component
18
+ */
19
+ children?: React.ReactNode;
20
+ /**
21
+ * Determines whether a separator should be displayed after this breadcrumb item.
22
+ */
23
+ hasSeparator?: BreadcrumbItem['hasSeparator'];
24
+ /**
25
+ * Indicates whether this breadcrumb item represents the currently selected or
26
+ * active page.
27
+ */
28
+ isSelected?: BreadcrumbItem['isSelected'];
29
+ /**
30
+ * Specifies whether the text content of this breadcrumb item should be truncated
31
+ * if it exceeds a certain width. This is useful for handling long page titles
32
+ * or labels within the breadcrumb.
33
+ */
34
+ isTruncated?: boolean;
35
+ link?: BreadcrumbItem['link'];
36
+ text?: BreadcrumbItem['text'];
37
+ }
38
+ /**
39
+ * MrlBreadcrumbItem component.
40
+ *
41
+ * @param props The MrlBreadcrumbItem component properties.
42
+ * @returns The MrlBreadcrumbItem component.
43
+ */
44
+ export declare function MrlBreadcrumbItem(props: MrlBreadcrumbItemProps): JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './MrlBreadcrumbItem';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * MrlBreadcrumbSeparator component.
4
+ *
5
+ * @returns The MrlBreadcrumbSeparator component.
6
+ */
7
+ export declare function MrlBreadcrumbSeparator(): JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './MrlBreadcrumbSeparator';
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+ import { BreadcrumbItem } from '../MrlBreadcrumbItem';
3
+ /**
4
+ * Props for the MrlBreadcrumbs component.
5
+ */
6
+ export interface MrlBreadcrumbsProps extends React.ComponentPropsWithRef<'nav'> {
7
+ /**
8
+ * A string value used for data-qa attribute.
9
+ */
10
+ ['data-qa']?: string;
11
+ /**
12
+ * The aria-label of the nav element
13
+ */
14
+ ['aria-label']: string;
15
+ /**
16
+ * This prop accepts an array of objects, where each object represents a single breadcrumb item.
17
+ * It's used to define the structure, content, and behavior of the breadcrumbs displayed in the component.
18
+ * The `link` prop could be either the props of a react-router-dom link or a string. If a string is provided it will
19
+ * render a regular link.
20
+ */
21
+ items: BreadcrumbItem[];
22
+ }
23
+ /**
24
+ * MrlBreadcrumbs component.
25
+ *
26
+ * @param props The MrlBreadcrumbs component properties.
27
+ * @returns The MrlBreadcrumbs component.
28
+ */
29
+ export declare function MrlBreadcrumbs(props: MrlBreadcrumbsProps): JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './MrlBreadcrumbs';
@@ -0,0 +1,3 @@
1
+ export * from './MrlBreadcrumbItem';
2
+ export * from './MrlBreadcrumbs';
3
+ export * from './MrlBreadcrumbSeparator';
@@ -30,3 +30,4 @@ export * from './panel';
30
30
  export * from './rovingTabindex';
31
31
  export * from './toolbar';
32
32
  export * from './filter';
33
+ export * from './breadcrumb';
@@ -80,7 +80,7 @@ export declare const colorPictoStoryData: {
80
80
  export declare const animateStoryData: {
81
81
  args: {
82
82
  delay: number;
83
- state: "stop" | "play";
83
+ state: "play" | "stop";
84
84
  };
85
85
  argTypes: {
86
86
  delay: {