wex-ui-lib 1.1.4 → 1.1.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 +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/Hero/Hero.d.ts +3 -0
- package/dist/types/components/Hero/Hero.stories.d.ts +14 -0
- package/dist/types/components/Hero/Hero.types.d.ts +13 -0
- package/dist/types/components/Hero/index.d.ts +2 -3
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
2
|
+
import Hero from './Hero';
|
3
|
+
declare const meta: {
|
4
|
+
title: string;
|
5
|
+
component: typeof Hero;
|
6
|
+
parameters: {
|
7
|
+
layout: string;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
export default meta;
|
11
|
+
type Story = StoryObj<typeof meta>;
|
12
|
+
export declare const Default: Story;
|
13
|
+
export declare const Compact: Story;
|
14
|
+
export declare const Compact_and_Opaque: Story;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { Opacity } from "../../shared/types";
|
3
|
+
export type HeroProps = {
|
4
|
+
children?: React.ReactNode;
|
5
|
+
imageUrls?: string[];
|
6
|
+
marginTop?: string;
|
7
|
+
height?: string;
|
8
|
+
overlay?: {
|
9
|
+
color: string;
|
10
|
+
opacity: Opacity;
|
11
|
+
};
|
12
|
+
backgroundColor?: string;
|
13
|
+
};
|
@@ -1,3 +1,2 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
export default function Hero(props: HeroProps): React.JSX.Element;
|
1
|
+
import Hero from "./Hero";
|
2
|
+
export default Hero;
|
package/dist/types/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import Button from './components/Button';
|
2
2
|
import { Navbar } from './components/Navbar';
|
3
|
-
import Hero from './components/Hero';
|
3
|
+
import Hero from './components/Hero/Hero';
|
4
4
|
import Fade from './shared/components/Fade';
|
5
5
|
import Slider from './components/Slider/Slider';
|
6
6
|
import Icon from './components/Icon/Icon';
|