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.
- package/dist/index.cjs.js +125 -26
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +27 -2
- package/dist/index.esm.js +125 -28
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/Button/index.types.d.ts +1 -1
- package/dist/types/components/Icon/Icon.d.ts +3 -0
- package/dist/types/components/Icon/Icon.types.d.ts +9 -0
- package/dist/types/components/Icon/index.d.ts +3 -0
- package/dist/types/components/Showcase/Showcase.d.ts +3 -0
- package/dist/types/components/Showcase/Showcase.stories.d.ts +7 -0
- package/dist/types/components/Showcase/Showcase.types.d.ts +10 -0
- package/dist/types/components/Showcase/index.d.ts +3 -3
- package/dist/types/components/Slider/Slider.d.ts +3 -0
- package/dist/types/components/Slider/Slider.stories.d.ts +8 -0
- package/dist/types/components/Slider/Slider.types.d.ts +13 -0
- package/dist/types/components/Slider/index.d.ts +3 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/samples/Holik/CustomerComments.d.ts +14 -0
- package/dist/types/samples/Holik/index.stories.d.ts +1 -0
- package/package.json +1 -1
@@ -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,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
|
2
|
-
|
3
|
-
export
|
1
|
+
import Showcase from './Showcase';
|
2
|
+
export * from './Showcase.types';
|
3
|
+
export { Showcase };
|
@@ -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
|
+
};
|
package/dist/types/index.d.ts
CHANGED
@@ -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
|
-
|
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 {};
|