@ldkj/web-ui 0.6.0 → 0.7.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/components/navigation/breadcrumb/Breadcrumb.d.ts +53 -0
- package/components/navigation/breadcrumb/index.d.ts +1 -0
- package/index.cjs +6 -6
- package/index.d.ts +1 -0
- package/index.js +1329 -1144
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { ElementType } from "react";
|
|
3
|
+
import { type SxProps } from "@/styling";
|
|
4
|
+
type StyledProps = {
|
|
5
|
+
className?: string;
|
|
6
|
+
class?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
sx?: SxProps;
|
|
9
|
+
};
|
|
10
|
+
export type BreadcrumbItemConfig = {
|
|
11
|
+
key?: React.Key;
|
|
12
|
+
label: React.ReactNode;
|
|
13
|
+
href?: string;
|
|
14
|
+
current?: boolean;
|
|
15
|
+
separator?: React.ReactNode;
|
|
16
|
+
ellipsis?: boolean;
|
|
17
|
+
itemProps?: BreadcrumbItemProps;
|
|
18
|
+
linkProps?: Omit<BreadcrumbLinkProps, "children" | "href">;
|
|
19
|
+
pageProps?: Omit<BreadcrumbPageProps, "children">;
|
|
20
|
+
};
|
|
21
|
+
export type BreadcrumbProps = React.ComponentPropsWithoutRef<"nav"> & StyledProps & {
|
|
22
|
+
separator?: React.ReactNode;
|
|
23
|
+
items?: BreadcrumbItemConfig[];
|
|
24
|
+
listProps?: BreadcrumbListProps;
|
|
25
|
+
};
|
|
26
|
+
export declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & StyledProps & {
|
|
27
|
+
separator?: React.ReactNode;
|
|
28
|
+
items?: BreadcrumbItemConfig[];
|
|
29
|
+
listProps?: BreadcrumbListProps;
|
|
30
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
31
|
+
export type BreadcrumbListProps = React.ComponentPropsWithoutRef<"ol"> & StyledProps;
|
|
32
|
+
export declare const BreadcrumbList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & StyledProps & React.RefAttributes<HTMLOListElement>>;
|
|
33
|
+
export type BreadcrumbItemProps = React.ComponentPropsWithoutRef<"li"> & StyledProps;
|
|
34
|
+
export declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & StyledProps & React.RefAttributes<HTMLLIElement>>;
|
|
35
|
+
export type BreadcrumbLinkProps = React.ComponentPropsWithoutRef<"a"> & StyledProps & {
|
|
36
|
+
component?: ElementType;
|
|
37
|
+
};
|
|
38
|
+
export declare const BreadcrumbLink: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & StyledProps & {
|
|
39
|
+
component?: ElementType;
|
|
40
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
41
|
+
export type BreadcrumbPageProps = React.ComponentPropsWithoutRef<"span"> & StyledProps;
|
|
42
|
+
export declare const BreadcrumbPage: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & StyledProps & React.RefAttributes<HTMLSpanElement>>;
|
|
43
|
+
export type BreadcrumbSeparatorProps = React.ComponentPropsWithoutRef<"li"> & StyledProps;
|
|
44
|
+
export declare const BreadcrumbSeparator: {
|
|
45
|
+
({ children, sx, style, className, class: legacyClass, ...props }: BreadcrumbSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
48
|
+
export type BreadcrumbEllipsisProps = React.ComponentPropsWithoutRef<"span"> & StyledProps;
|
|
49
|
+
export declare const BreadcrumbEllipsis: {
|
|
50
|
+
({ sx, style, className, class: legacyClass, ...props }: BreadcrumbEllipsisProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
displayName: string;
|
|
52
|
+
};
|
|
53
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Breadcrumb";
|