zebpay-ui 0.0.19 → 0.0.20

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/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # znew.design.system
2
2
 
3
- Component Library and Design System for Z new
3
+ A Component Library and Design System created using React for ZebPay.
4
4
 
5
- # Steps to add a new icon:
5
+ ### Steps to add a new icon:
6
6
 
7
7
  ```
8
8
  - Add the icon svg in /svgs directory
@@ -10,7 +10,7 @@ Component Library and Design System for Z new
10
10
  - Run yarn build:icons; yarn storybook
11
11
  ```
12
12
 
13
- ### Build steps:
13
+ ### Steps to build:
14
14
 
15
15
  ```
16
16
  yarn install;
@@ -18,3 +18,9 @@ yarn clear:output;
18
18
  yarn build:icons;
19
19
  yarn build;
20
20
  ```
21
+
22
+ ### Steps to release:
23
+
24
+ ```
25
+ npm login; npm publish
26
+ ```
@@ -1,10 +1,11 @@
1
1
  /** @jsxImportSource @emotion/react */
2
2
  import { SerializedStyles } from "@emotion/react";
3
- import { FC } from "react";
3
+ import React, { FC } from "react";
4
4
  import "./../../../dist/icons/icons.css";
5
5
  interface AccordionProps {
6
- title: string;
7
- onToggle?: (value: boolean) => void;
6
+ title: React.ReactNode;
7
+ isOpen: boolean;
8
+ onToggle: (value: boolean) => void;
8
9
  style?: SerializedStyles;
9
10
  }
10
11
  declare const Accordion: FC<AccordionProps>;
@@ -1,5 +1,10 @@
1
1
  import { Interpolation, Theme } from "@emotion/react";
2
2
  export declare type ButtonSize = "small" | "medium" | "large" | "full-width";
3
+ export declare enum ButtonTypeAttribute {
4
+ button = "button",
5
+ reset = "reset",
6
+ submit = "submit"
7
+ }
3
8
  export declare type ButtonType = "link" | "primary" | "secondary" | "special" | "tertiary" | "tab";
4
9
  export interface ButtonProps {
5
10
  type: ButtonType;
@@ -8,4 +13,5 @@ export interface ButtonProps {
8
13
  disabled?: boolean;
9
14
  loading?: boolean;
10
15
  style?: Interpolation<Theme>;
16
+ typeAttribute?: ButtonTypeAttribute;
11
17
  }
@@ -6,5 +6,6 @@ export declare const optionsWrapper: import("@emotion/utils").SerializedStyles;
6
6
  export declare const options: import("@emotion/utils").SerializedStyles;
7
7
  export declare const optionItem: import("@emotion/utils").SerializedStyles;
8
8
  export declare const optionItems: import("@emotion/utils").SerializedStyles;
9
+ export declare const empty: import("@emotion/utils").SerializedStyles;
9
10
  export declare const optionSecondName: import("@emotion/utils").SerializedStyles;
10
11
  export declare const selected: import("@emotion/utils").SerializedStyles;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { SerializedStyles } from "@emotion/react";
2
+ import React from "react";
3
3
  export interface OptionsProps<T> {
4
4
  label: JSX.Element | string;
5
- displayLabel: JSX.Element | string;
5
+ displayLabel?: JSX.Element | string;
6
6
  value: T;
7
7
  }
8
8
  export interface SelectProps<T> {
@@ -17,4 +17,5 @@ export interface SelectProps<T> {
17
17
  options: OptionsProps<T>[];
18
18
  selected: T;
19
19
  onChange(value: string): void;
20
+ emptyElement?: React.ReactNode;
20
21
  }