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.
@@ -1,5 +1,8 @@
1
1
  export type FooterProps = {
2
- logoUrl?: string;
2
+ logo?: {
3
+ url: string;
4
+ callback?: () => void;
5
+ };
3
6
  subtitle?: string;
4
7
  backgroundColor?: string;
5
8
  socialMediaUrls?: {
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { NavbarProps } from './Navbar.types';
3
+ export default function Navbar(props: NavbarProps): React.JSX.Element;
@@ -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 React from 'react';
2
- import { NavbarProps } from './index.types';
3
- export default function Navbar(props: NavbarProps): React.JSX.Element;
1
+ import Navbar from "./Navbar";
2
+ export { Navbar };
@@ -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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wex-ui-lib",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "A react component library",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",