zebpay-ui 0.0.18 → 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 +16 -2
- package/dist/cjs/components/Accordion/index.d.ts +4 -3
- package/dist/cjs/components/Button/typings.d.ts +6 -0
- package/dist/cjs/components/Select/styles.d.ts +1 -0
- package/dist/cjs/components/Select/typings.d.ts +3 -2
- package/dist/cjs/iconsList.d.ts +1 -0
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/styles/mixins.d.ts +1 -0
- package/dist/esm/components/Accordion/index.d.ts +4 -3
- package/dist/esm/components/Button/typings.d.ts +6 -0
- package/dist/esm/components/Select/styles.d.ts +1 -0
- package/dist/esm/components/Select/typings.d.ts +3 -2
- package/dist/esm/iconsList.d.ts +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/styles/mixins.d.ts +1 -0
- package/package.json +1 -1
- package/Release.md +0 -11
package/README.md
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
# znew.design.system
|
|
2
2
|
|
|
3
|
-
Component Library and Design System for
|
|
3
|
+
A Component Library and Design System created using React for ZebPay.
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Steps to add a new icon:
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
- Add the icon svg in /svgs directory
|
|
9
|
+
- Add the icon name in /src/iconsList in sorted order
|
|
10
|
+
- Run yarn build:icons; yarn storybook
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Steps to build:
|
|
6
14
|
|
|
7
15
|
```
|
|
8
16
|
yarn install;
|
|
@@ -10,3 +18,9 @@ yarn clear:output;
|
|
|
10
18
|
yarn build:icons;
|
|
11
19
|
yarn build;
|
|
12
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:
|
|
7
|
-
|
|
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
|
|
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
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const iconsList: string[];
|