zebpay-ui 0.0.19 → 0.0.21
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 +9 -3
- package/dist/cjs/components/Accordion/index.d.ts +4 -3
- package/dist/cjs/components/Button/typings.d.ts +2 -0
- package/dist/cjs/components/Icon.d.ts +9 -0
- package/dist/cjs/components/IconButton/index.d.ts +5 -0
- package/dist/cjs/components/IconButton/typings.d.ts +6 -0
- package/dist/cjs/components/Input/typings.d.ts +1 -0
- package/dist/cjs/components/PinInput/typing.d.ts +1 -2
- package/dist/cjs/components/Popper/typings.d.ts +3 -0
- package/dist/cjs/components/Select/styles.d.ts +1 -0
- package/dist/cjs/components/Select/typings.d.ts +3 -2
- package/dist/cjs/components/SidePanel/index.d.ts +3 -1
- package/dist/cjs/components/SidePanel/style.d.ts +1 -1
- package/dist/cjs/components/Tags/index.d.ts +5 -2
- package/dist/cjs/components/index.d.ts +3 -1
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/styles/mixins.d.ts +7 -0
- package/dist/esm/components/Accordion/index.d.ts +4 -3
- package/dist/esm/components/Button/typings.d.ts +2 -0
- package/dist/esm/components/Icon.d.ts +9 -0
- package/dist/esm/components/IconButton/index.d.ts +5 -0
- package/dist/esm/components/IconButton/typings.d.ts +6 -0
- package/dist/esm/components/Input/typings.d.ts +1 -0
- package/dist/esm/components/PinInput/typing.d.ts +1 -2
- package/dist/esm/components/Popper/typings.d.ts +3 -0
- package/dist/esm/components/Select/styles.d.ts +1 -0
- package/dist/esm/components/Select/typings.d.ts +3 -2
- package/dist/esm/components/SidePanel/index.d.ts +3 -1
- package/dist/esm/components/SidePanel/style.d.ts +1 -1
- package/dist/esm/components/Tags/index.d.ts +5 -2
- package/dist/esm/components/index.d.ts +3 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/styles/mixins.d.ts +7 -0
- package/dist/icons/icons.css +224 -152
- package/dist/icons/icons.eot +0 -0
- package/dist/icons/icons.html +220 -4
- package/dist/icons/icons.json +173 -149
- package/dist/icons/icons.ts +251 -155
- package/dist/icons/icons.woff +0 -0
- package/dist/icons/icons.woff2 +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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
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
|
-
###
|
|
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:
|
|
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,6 @@
|
|
|
1
1
|
import { Interpolation, Theme } from "@emotion/react";
|
|
2
2
|
export declare type ButtonSize = "small" | "medium" | "large" | "full-width";
|
|
3
|
+
export declare type ButtonTypeAttribute = "button" | "reset" | "submit";
|
|
3
4
|
export declare type ButtonType = "link" | "primary" | "secondary" | "special" | "tertiary" | "tab";
|
|
4
5
|
export interface ButtonProps {
|
|
5
6
|
type: ButtonType;
|
|
@@ -8,4 +9,5 @@ export interface ButtonProps {
|
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
loading?: boolean;
|
|
10
11
|
style?: Interpolation<Theme>;
|
|
12
|
+
typeAttribute?: ButtonTypeAttribute;
|
|
11
13
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { SerializedStyles } from "@emotion/react";
|
|
2
|
-
import React
|
|
2
|
+
import React from "react";
|
|
3
3
|
export declare type PinInputProps = {
|
|
4
4
|
label?: string;
|
|
5
5
|
values: string[];
|
|
6
|
-
type?: ReactText;
|
|
7
6
|
mask?: boolean;
|
|
8
7
|
autoFocus?: boolean;
|
|
9
8
|
onChange?: (value: string | string[], index: number, values: string[]) => void;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { SerializedStyles } from "@emotion/react";
|
|
2
2
|
import { ReactElement } from "react";
|
|
3
|
+
export declare type Position = "top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
3
4
|
export interface PopperProps {
|
|
4
5
|
content: ReactElement;
|
|
5
6
|
onClose?: () => void;
|
|
7
|
+
containerStyle?: SerializedStyles;
|
|
6
8
|
style?: SerializedStyles;
|
|
9
|
+
position?: Position;
|
|
7
10
|
}
|
|
@@ -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
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import { FC } from "react";
|
|
3
3
|
import "./../../../dist/icons/icons.css";
|
|
4
|
+
import { SerializedStyles } from "@emotion/react";
|
|
4
5
|
interface SidePanelProps {
|
|
5
|
-
title
|
|
6
|
+
title?: string;
|
|
6
7
|
open: boolean;
|
|
7
8
|
isBack?: boolean;
|
|
8
9
|
onBack?: () => void;
|
|
9
10
|
onClose?: () => void;
|
|
11
|
+
style?: SerializedStyles;
|
|
10
12
|
}
|
|
11
13
|
declare const SidePanel: FC<SidePanelProps>;
|
|
12
14
|
export default SidePanel;
|
|
@@ -5,4 +5,4 @@ export declare const sidePanelOpen: import("@emotion/utils").SerializedStyles;
|
|
|
5
5
|
export declare const header: import("@emotion/utils").SerializedStyles;
|
|
6
6
|
export declare const titleStyle: import("@emotion/utils").SerializedStyles;
|
|
7
7
|
export declare const headerCTA: import("@emotion/utils").SerializedStyles;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const headerCloseCTA: import("@emotion/utils").SerializedStyles;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
2
|
+
import { SerializedStyles } from "@emotion/react";
|
|
1
3
|
import React from "react";
|
|
2
|
-
declare type TagType = "success" | "info" | "error";
|
|
4
|
+
declare type TagType = "success" | "warning" | "info" | "error" | "default";
|
|
3
5
|
export interface TagProps {
|
|
4
|
-
text: string;
|
|
5
6
|
type: TagType;
|
|
7
|
+
style?: SerializedStyles;
|
|
8
|
+
isStroke?: boolean;
|
|
6
9
|
}
|
|
7
10
|
declare const Tags: React.FC<TagProps>;
|
|
8
11
|
export default Tags;
|
|
@@ -4,6 +4,8 @@ import Card from "./Card";
|
|
|
4
4
|
import Checkbox from "./Checkbox";
|
|
5
5
|
import CircularLoader from "./CircularLoader";
|
|
6
6
|
import CalendarPicker from "./CalendarPicker";
|
|
7
|
+
import Icon from "./Icon";
|
|
8
|
+
import IconButton from "./IconButton";
|
|
7
9
|
import Input from "./Input";
|
|
8
10
|
import PinInput from "./PinInput";
|
|
9
11
|
import Popper from "./Popper";
|
|
@@ -16,4 +18,4 @@ import SearchInput from "./SearchInput";
|
|
|
16
18
|
import Tabs from "./Tabs";
|
|
17
19
|
import Toast from "./Toast";
|
|
18
20
|
import Tooltip from "./Tooltip";
|
|
19
|
-
export { Accordion, Button, Card, Checkbox, CircularLoader, CalendarPicker, Input, PinInput, Popper, Radio, Select, Shimmer, SearchInput, SidePanel, Tags, Tabs, Toast, Tooltip, };
|
|
21
|
+
export { Accordion, Button, Card, Checkbox, CircularLoader, CalendarPicker, Icon, IconButton, Input, PinInput, Popper, Radio, Select, Shimmer, SearchInput, SidePanel, Tags, Tabs, Toast, Tooltip, };
|