wex-ui-lib 1.4.3 → 1.4.5

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,8 +1,10 @@
1
1
  import React, { ReactElement } from "react";
2
2
  import { Font } from "../../shared/types";
3
3
  export type CardProps = {
4
- type?: "default";
4
+ type: "default" | "image-modern";
5
5
  backgroundColor?: string;
6
+ width?: string;
7
+ height?: string;
6
8
  title?: Font & {
7
9
  text: string;
8
10
  color?: string;
@@ -16,6 +18,7 @@ export type CardProps = {
16
18
  width?: string;
17
19
  height?: string;
18
20
  };
21
+ imageUrl?: string;
19
22
  callback?: () => void;
20
23
  };
21
24
  export default function Card(props: CardProps): React.JSX.Element;
@@ -7,3 +7,4 @@ declare const meta: Meta<StoryProps>;
7
7
  export default meta;
8
8
  type Story = StoryObj<StoryProps>;
9
9
  export declare const Default: Story;
10
+ export declare const ImageModern: Story;
@@ -0,0 +1,7 @@
1
+ import { CardProps } from "../Card";
2
+ export declare const DefaultCard: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme;
4
+ as?: React.ElementType;
5
+ } & {
6
+ card: CardProps;
7
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
@@ -0,0 +1,7 @@
1
+ import { CardProps } from "../Card";
2
+ export declare const ImageModernCard: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme;
4
+ as?: React.ElementType;
5
+ } & {
6
+ card: CardProps;
7
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ModalProps } from "./Modal.types";
3
+ export declare const Modal: React.FC<ModalProps>;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from "@storybook/react";
2
+ import { Modal } from "./Modal";
3
+ declare const meta: Meta<typeof Modal>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Modal>;
6
+ export declare const Default: Story;
@@ -0,0 +1,8 @@
1
+ export interface ModalProps {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ title?: string;
5
+ children: React.ReactNode;
6
+ width?: string;
7
+ height?: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./Modal";
2
+ export * from "./Modal.types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wex-ui-lib",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "A react component library",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",