wex-ui-lib 1.1.2 → 1.1.3
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/index.cjs.js +39 -24
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.esm.js +39 -24
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/Footer/Footer.types.d.ts +4 -1
- package/dist/types/components/Navbar/Navbar.d.ts +3 -0
- package/dist/types/components/Navbar/Navbar.stories.d.ts +7 -0
- package/dist/types/components/Navbar/Navbar.types.d.ts +25 -0
- package/dist/types/components/Navbar/index.d.ts +2 -3
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
@@ -0,0 +1,7 @@
|
|
1
|
+
import { NavbarProps } from './Navbar.types';
|
2
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
3
|
+
type StoryProps = NavbarProps;
|
4
|
+
declare const meta: Meta<StoryProps>;
|
5
|
+
export default meta;
|
6
|
+
type Story = StoryObj<StoryProps>;
|
7
|
+
export declare const Default: Story;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { ButtonProps } from "../Button/index.types";
|
2
|
+
import { ComponentColors } from "../../shared/types";
|
3
|
+
export type NavbarProps = {
|
4
|
+
config: {
|
5
|
+
colors?: ComponentColors;
|
6
|
+
height?: string;
|
7
|
+
centeredItems?: boolean;
|
8
|
+
};
|
9
|
+
logo?: {
|
10
|
+
url: string;
|
11
|
+
onClick?: () => void;
|
12
|
+
};
|
13
|
+
items?: {
|
14
|
+
label: string;
|
15
|
+
onClick?: () => void;
|
16
|
+
subitems?: {
|
17
|
+
label: string;
|
18
|
+
onClick?: () => void;
|
19
|
+
}[];
|
20
|
+
}[];
|
21
|
+
button?: ButtonProps & {
|
22
|
+
label: string;
|
23
|
+
onClick?: () => void;
|
24
|
+
};
|
25
|
+
};
|
@@ -1,3 +1,2 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
export default function Navbar(props: NavbarProps): React.JSX.Element;
|
1
|
+
import Navbar from "./Navbar";
|
2
|
+
export { Navbar };
|
package/dist/types/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import Button from './components/Button';
|
2
|
-
import Navbar from './components/Navbar';
|
2
|
+
import { Navbar } from './components/Navbar';
|
3
3
|
import Hero from './components/Hero';
|
4
4
|
import Fade from './shared/components/Fade';
|
5
5
|
import Slider from './components/Slider/Slider';
|