wex-ui-lib 1.0.4 → 1.0.6

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,4 +1,4 @@
1
- import { ArrowIcon } from "../../shared/components/Icon";
1
+ import { ArrowIcon } from "../Icon";
2
2
  import { ComponentColors, ComponentFont } from "../../shared/types";
3
3
  export type ButtonProps = {
4
4
  children?: React.ReactNode | string;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconProps } from './Icon.types';
3
+ export default function Icon(props: IconProps): React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ export type ArrowIcon = 'arrow-long' | 'arrow-caret';
2
+ export type SocialMediaIcon = "twitter" | "instagram" | "youtube" | "linkedin";
3
+ export type IconProps = {
4
+ color?: string;
5
+ icon: ArrowIcon | SocialMediaIcon | "hamburgerMenu";
6
+ size?: string;
7
+ withBorder?: boolean;
8
+ callback?: () => void;
9
+ };
@@ -0,0 +1,3 @@
1
+ import Icon from './Icon';
2
+ export * from './Icon.types';
3
+ export { Icon };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ShowcaseProps } from './Showcase.types';
3
+ export default function Showcase(props: ShowcaseProps): React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react/*';
2
+ import { ShowcaseProps } from './Showcase.types';
3
+ type StoryProps = ShowcaseProps;
4
+ declare const meta: Meta<StoryProps>;
5
+ export default meta;
6
+ type Story = StoryObj<StoryProps>;
7
+ export declare const Default: Story;
@@ -0,0 +1,10 @@
1
+ export type ShowcaseProps = {
2
+ backgroundColor?: string;
3
+ items: [ShowcaseItem, ShowcaseItem?, ShowcaseItem?, ShowcaseItem?, ShowcaseItem?, ShowcaseItem?, ShowcaseItem?, ShowcaseItem?];
4
+ };
5
+ type ShowcaseItem = {
6
+ label: string;
7
+ imageUrl: string;
8
+ callback?: () => void;
9
+ };
10
+ export {};
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { ShowcaseProps } from './index.types';
3
- export default function Showcase(props: ShowcaseProps): React.JSX.Element;
1
+ import Showcase from './Showcase';
2
+ export * from './Showcase.types';
3
+ export { Showcase };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { SliderProps } from './Slider.types';
3
+ export default function Slider(props: SliderProps): React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react/*';
2
+ import { SliderProps } from './Slider.types';
3
+ type StoryProps = SliderProps;
4
+ declare const meta: Meta<StoryProps>;
5
+ export default meta;
6
+ type Story = StoryObj<StoryProps>;
7
+ export declare const Default: Story;
8
+ export declare const Holik: Story;
@@ -0,0 +1,13 @@
1
+ import React, { JSX } from "react";
2
+ export type goToOption = 'next' | 'prev' | number;
3
+ export type SliderRef = {
4
+ goTo: (option: goToOption) => void;
5
+ };
6
+ export type SliderProps = {
7
+ children: JSX.Element[];
8
+ autoplayTicTime?: number;
9
+ visibleInactiveSlides?: boolean;
10
+ forwardedRef?: React.Ref<SliderRef>;
11
+ showArrowKeys?: boolean;
12
+ onSlideChange?: (slide: number) => void;
13
+ };
@@ -0,0 +1,3 @@
1
+ import Slider from './Slider';
2
+ export * from './Slider.types';
3
+ export { Slider };
@@ -2,4 +2,6 @@ import Button from './components/Button';
2
2
  import Navbar from './components/Navbar';
3
3
  import Hero from './components/Hero';
4
4
  import Fade from './shared/components/Fade';
5
- export { Button, Navbar, Hero, Fade };
5
+ import Slider from './components/Slider/Slider';
6
+ import Icon from './components/Icon/Icon';
7
+ export { Button, Navbar, Hero, Slider, Fade, Icon };
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ type CustomerCommentsProps = {
3
+ comments?: {
4
+ comment: string;
5
+ customerName?: string;
6
+ company?: string;
7
+ }[];
8
+ };
9
+ export default function CustomerComments(props: CustomerCommentsProps): React.JSX.Element;
10
+ export declare const Comment: import("@emotion/styled").StyledComponent<{
11
+ theme?: import("@emotion/react").Theme;
12
+ as?: React.ElementType;
13
+ }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
+ export {};
@@ -8,3 +8,4 @@ declare const meta: {
8
8
  export default meta;
9
9
  type Story = StoryObj<typeof meta>;
10
10
  export declare const Home: Story;
11
+ export declare const Customers_Comments: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wex-ui-lib",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "A react component library",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",