wex-ui-lib 1.2.8 → 1.2.42
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 +63 -120
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -47
- package/dist/index.esm.js +64 -118
- package/dist/index.esm.js.map +1 -1
- package/dist/types/index.d.ts +1 -4
- package/dist/types/shared/components/Fade.d.ts +2 -2
- package/package.json +1 -1
- package/dist/types/components/Card/Card.d.ts +0 -21
- package/dist/types/components/Card/Card.stories.d.ts +0 -9
- package/dist/types/sections/Cards/Cards.d.ts +0 -9
- package/dist/types/sections/Cards/Cards.stories.d.ts +0 -7
- package/dist/types/sections/EntrySelector/EntrySelector.d.ts +0 -15
- package/dist/types/sections/EntrySelector/EntrySelector.stories.d.ts +0 -7
package/dist/types/index.d.ts
CHANGED
@@ -6,9 +6,6 @@ import Slider from './components/Slider/Slider';
|
|
6
6
|
import Icon from './components/Icon/Icon';
|
7
7
|
import Showcase from './components/Showcase/Showcase';
|
8
8
|
import Footer from './components/Footer/Footer';
|
9
|
-
|
10
|
-
import Cards from './sections/Cards/Cards';
|
11
|
-
import EntrySelector from './sections/EntrySelector/EntrySelector';
|
12
|
-
export { Button, Navbar, Hero, Footer, Slider, Fade, Icon, Showcase, Card, Cards, EntrySelector };
|
9
|
+
export { Button, Navbar, Hero, Footer, Slider, Fade, Icon, Showcase };
|
13
10
|
import { SliderRef } from './components/Slider';
|
14
11
|
export { type SliderRef };
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
type FadeProps = {
|
3
|
-
children: React.ReactElement
|
3
|
+
children: React.ReactElement<any>;
|
4
4
|
type?: 'top-to-bottom' | 'right-to-left' | 'bottom-to-top' | 'left-to-right';
|
5
5
|
};
|
6
|
-
export default function Fade(props: FadeProps): React.
|
6
|
+
export default function Fade(props: FadeProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
7
7
|
export {};
|
package/package.json
CHANGED
@@ -1,21 +0,0 @@
|
|
1
|
-
import React, { ReactElement } from "react";
|
2
|
-
import { ComponentFont } from "../../shared/types";
|
3
|
-
export type CardProps = {
|
4
|
-
type?: "default";
|
5
|
-
backgroundColor?: string;
|
6
|
-
title?: ComponentFont & {
|
7
|
-
text: string;
|
8
|
-
color?: string;
|
9
|
-
};
|
10
|
-
description?: ComponentFont & {
|
11
|
-
text: string;
|
12
|
-
color?: string;
|
13
|
-
};
|
14
|
-
icon?: {
|
15
|
-
element: ReactElement;
|
16
|
-
width?: string;
|
17
|
-
height?: string;
|
18
|
-
};
|
19
|
-
callback?: () => void;
|
20
|
-
};
|
21
|
-
export default function Card(props: CardProps): React.JSX.Element;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react/*';
|
2
|
-
import { CardProps } from './Card';
|
3
|
-
type StoryProps = CardProps & {
|
4
|
-
buttonText: string;
|
5
|
-
};
|
6
|
-
declare const meta: Meta<StoryProps>;
|
7
|
-
export default meta;
|
8
|
-
type Story = StoryObj<StoryProps>;
|
9
|
-
export declare const Default: Story;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { CardProps } from '../../components/Card/Card';
|
3
|
-
export type CardsProps = {
|
4
|
-
cards: CardProps[];
|
5
|
-
padding?: string;
|
6
|
-
backgroundColor?: string;
|
7
|
-
gap?: string;
|
8
|
-
};
|
9
|
-
export default function Cards(props: CardsProps): React.JSX.Element;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import React, { ReactElement } from 'react';
|
2
|
-
export type EntrySelectorProps = {
|
3
|
-
title?: string;
|
4
|
-
colors?: {
|
5
|
-
background?: string;
|
6
|
-
lightBackground?: string;
|
7
|
-
accent?: string;
|
8
|
-
};
|
9
|
-
padding?: string;
|
10
|
-
items: {
|
11
|
-
name: string;
|
12
|
-
content?: ReactElement;
|
13
|
-
}[];
|
14
|
-
};
|
15
|
-
export default function EntrySelector(props: EntrySelectorProps): React.JSX.Element;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react/*';
|
2
|
-
import { EntrySelectorProps } from './EntrySelector';
|
3
|
-
type StoryProps = EntrySelectorProps;
|
4
|
-
declare const meta: Meta<StoryProps>;
|
5
|
-
export default meta;
|
6
|
-
type Story = StoryObj<StoryProps>;
|
7
|
-
export declare const Default: Story;
|