@ldkj/web-ui 1.0.1 → 1.1.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/layout/header/Header.d.ts +43 -0
- package/components/layout/header/index.d.ts +1 -0
- package/index.cjs +16 -16
- package/index.d.ts +1 -0
- package/index.js +4792 -4588
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { ElementType } from "react";
|
|
3
|
+
import { type BoxProps } from "../box";
|
|
4
|
+
export type HeaderVariant = "default" | "transparent" | "solid" | "subtle";
|
|
5
|
+
export type HeaderSize = "sm" | "md" | "lg";
|
|
6
|
+
export type HeaderGapPreset = "xs" | "sm" | "md" | "lg" | "xl";
|
|
7
|
+
export type HeaderGap = HeaderGapPreset | number | string;
|
|
8
|
+
export type HeaderMaxWidth = number | string;
|
|
9
|
+
export type HeaderSlotProps = BoxProps<ElementType>;
|
|
10
|
+
type HeaderSlotComponent = React.FC<HeaderSlotProps>;
|
|
11
|
+
export type HeaderProps = BoxProps<ElementType> & {
|
|
12
|
+
variant?: HeaderVariant;
|
|
13
|
+
size?: HeaderSize;
|
|
14
|
+
maxWidth?: HeaderMaxWidth;
|
|
15
|
+
fluid?: boolean;
|
|
16
|
+
bordered?: boolean;
|
|
17
|
+
sticky?: boolean;
|
|
18
|
+
fixed?: boolean;
|
|
19
|
+
safeArea?: boolean;
|
|
20
|
+
gap?: HeaderGap;
|
|
21
|
+
brand?: React.ReactNode;
|
|
22
|
+
nav?: React.ReactNode;
|
|
23
|
+
actions?: React.ReactNode;
|
|
24
|
+
start?: React.ReactNode;
|
|
25
|
+
end?: React.ReactNode;
|
|
26
|
+
brandProps?: HeaderSlotProps;
|
|
27
|
+
navProps?: HeaderSlotProps;
|
|
28
|
+
actionsProps?: HeaderSlotProps;
|
|
29
|
+
startProps?: HeaderSlotProps;
|
|
30
|
+
endProps?: HeaderSlotProps;
|
|
31
|
+
contentProps?: HeaderSlotProps;
|
|
32
|
+
};
|
|
33
|
+
type HeaderCompound = {
|
|
34
|
+
Brand: HeaderSlotComponent;
|
|
35
|
+
Nav: HeaderSlotComponent;
|
|
36
|
+
Actions: HeaderSlotComponent;
|
|
37
|
+
Start: HeaderSlotComponent;
|
|
38
|
+
End: HeaderSlotComponent;
|
|
39
|
+
Content: HeaderSlotComponent;
|
|
40
|
+
};
|
|
41
|
+
type HeaderComponent = React.FC<HeaderProps> & HeaderCompound;
|
|
42
|
+
export declare const Header: HeaderComponent;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Header";
|