zebpay-ui 0.0.14 → 0.0.17
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/{release.md → Release.md} +1 -1
- package/dist/cjs/components/Button/styles.d.ts +1 -0
- package/dist/cjs/components/CalendarPicker/index.d.ts +9 -0
- package/dist/cjs/components/CalendarPicker/styles.d.ts +4 -0
- package/dist/cjs/components/CalendarPicker/typings.d.ts +12 -0
- package/dist/cjs/components/Card/index.d.ts +7 -0
- package/dist/cjs/components/Card/style.d.ts +3 -0
- package/dist/cjs/components/PinInput/style.d.ts +0 -1
- package/dist/cjs/components/Popper/index.d.ts +1 -0
- package/dist/cjs/components/Popper/styles.d.ts +1 -4
- package/dist/cjs/components/Popper/typings.d.ts +1 -8
- package/dist/cjs/components/SearchInput/index.d.ts +15 -0
- package/dist/cjs/components/SearchInput/style.d.ts +5 -0
- package/dist/cjs/components/Select/index.d.ts +5 -0
- package/dist/cjs/components/Select/styles.d.ts +10 -0
- package/dist/cjs/components/Select/typings.d.ts +20 -0
- package/dist/cjs/components/Shimmer/index.d.ts +10 -0
- package/dist/cjs/components/Shimmer/style.d.ts +2 -0
- package/dist/cjs/components/SidePanel/index.d.ts +12 -0
- package/dist/cjs/components/SidePanel/style.d.ts +8 -0
- package/dist/cjs/components/Tabs/typings.d.ts +1 -0
- package/dist/cjs/components/Tooltip/index.d.ts +10 -0
- package/dist/cjs/components/Tooltip/styles.d.ts +2 -0
- package/dist/cjs/components/index.d.ts +8 -1
- package/dist/cjs/index.js +14 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Button/styles.d.ts +1 -0
- package/dist/esm/components/CalendarPicker/index.d.ts +9 -0
- package/dist/esm/components/CalendarPicker/styles.d.ts +4 -0
- package/dist/esm/components/CalendarPicker/typings.d.ts +12 -0
- package/dist/esm/components/Card/index.d.ts +7 -0
- package/dist/esm/components/Card/style.d.ts +3 -0
- package/dist/esm/components/PinInput/style.d.ts +0 -1
- package/dist/esm/components/Popper/index.d.ts +1 -0
- package/dist/esm/components/Popper/styles.d.ts +1 -4
- package/dist/esm/components/Popper/typings.d.ts +1 -8
- package/dist/esm/components/SearchInput/index.d.ts +15 -0
- package/dist/esm/components/SearchInput/style.d.ts +5 -0
- package/dist/esm/components/Select/index.d.ts +5 -0
- package/dist/esm/components/Select/styles.d.ts +10 -0
- package/dist/esm/components/Select/typings.d.ts +20 -0
- package/dist/esm/components/Shimmer/index.d.ts +10 -0
- package/dist/esm/components/Shimmer/style.d.ts +2 -0
- package/dist/esm/components/SidePanel/index.d.ts +12 -0
- package/dist/esm/components/SidePanel/style.d.ts +8 -0
- package/dist/esm/components/Tabs/typings.d.ts +1 -0
- package/dist/esm/components/Tooltip/index.d.ts +10 -0
- package/dist/esm/components/Tooltip/styles.d.ts +2 -0
- package/dist/esm/components/index.d.ts +8 -1
- package/dist/esm/index.js +14 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -5
- package/storybook-static/0.0c565d7cbac7dd8ee3e7.manager.bundle.js +2 -0
- package/storybook-static/0.0c565d7cbac7dd8ee3e7.manager.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/0.e89aef7e.iframe.bundle.js +3 -0
- package/storybook-static/0.e89aef7e.iframe.bundle.js.LICENSE.txt +8 -0
- package/storybook-static/0.e89aef7e.iframe.bundle.js.map +1 -0
- package/storybook-static/1.acc22fc1.iframe.bundle.js +3 -0
- package/storybook-static/1.acc22fc1.iframe.bundle.js.LICENSE.txt +14 -0
- package/storybook-static/1.acc22fc1.iframe.bundle.js.map +1 -0
- package/storybook-static/1.c409245f27aef9e70504.manager.bundle.js +1 -0
- package/storybook-static/10.c73a8dbd.iframe.bundle.js +3 -0
- package/storybook-static/10.c73a8dbd.iframe.bundle.js.LICENSE.txt +12 -0
- package/storybook-static/10.c73a8dbd.iframe.bundle.js.map +1 -0
- package/storybook-static/2.f6a01323.iframe.bundle.js +1 -0
- package/storybook-static/3.1f064d0b.iframe.bundle.js +1 -0
- package/storybook-static/5.c518804c068ae5cb7e7e.manager.bundle.js +2 -0
- package/storybook-static/5.c518804c068ae5cb7e7e.manager.bundle.js.LICENSE.txt +31 -0
- package/storybook-static/6.04fc6e11d2910d38c539.manager.bundle.js +1 -0
- package/storybook-static/7.1d695bd211fbb23c96d2.manager.bundle.js +1 -0
- package/storybook-static/7.6a0189c5.iframe.bundle.js +3 -0
- package/storybook-static/7.6a0189c5.iframe.bundle.js.LICENSE.txt +31 -0
- package/storybook-static/7.6a0189c5.iframe.bundle.js.map +1 -0
- package/storybook-static/8.3508c5121d2f48fe8efd.manager.bundle.js +2 -0
- package/storybook-static/8.3508c5121d2f48fe8efd.manager.bundle.js.LICENSE.txt +12 -0
- package/storybook-static/8.d94220da.iframe.bundle.js +1 -0
- package/storybook-static/9.c3051aa6.iframe.bundle.js +1 -0
- package/storybook-static/9.f938a82dbcf36bc59009.manager.bundle.js +1 -0
- package/storybook-static/favicon.ico +0 -0
- package/storybook-static/iframe.html +364 -0
- package/storybook-static/index.html +59 -0
- package/storybook-static/main.c33ebeb3.iframe.bundle.js +1 -0
- package/storybook-static/main.d75d1c50cee2f421f173.manager.bundle.js +1 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/runtime~main.182a24d500fec02cdc8f.manager.bundle.js +1 -0
- package/storybook-static/runtime~main.1ca94aef.iframe.bundle.js +1 -0
- package/storybook-static/static/media/icons.3ba72e4b.woff +0 -0
- package/storybook-static/static/media/icons.54023ad1.eot +0 -0
- package/storybook-static/static/media/icons.a579c455.woff2 +0 -0
- package/storybook-static/vendors~main.cbed0d4e.iframe.bundle.js +3 -0
- package/storybook-static/vendors~main.cbed0d4e.iframe.bundle.js.LICENSE.txt +100 -0
- package/storybook-static/vendors~main.cbed0d4e.iframe.bundle.js.map +1 -0
- package/storybook-static/vendors~main.e812b4628120b96ad200.manager.bundle.js +2 -0
- package/storybook-static/vendors~main.e812b4628120b96ad200.manager.bundle.js.LICENSE.txt +104 -0
- package/dist/cjs/components/DateRangePicker/index.d.ts +0 -14
- package/dist/esm/components/DateRangePicker/index.d.ts +0 -14
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const general: import("@emotion/utils").SerializedStyles;
|
|
1
2
|
export declare const linkButton: import("@emotion/utils").SerializedStyles;
|
|
2
3
|
export declare const primaryButton: import("@emotion/utils").SerializedStyles;
|
|
3
4
|
export declare const secondaryButton: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
2
|
+
import "react-calendar/dist/Calendar.css";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import "./../../../dist/icons/icons.css";
|
|
5
|
+
import { DateRangePickerProps } from "./typings";
|
|
6
|
+
export declare const unixFormat: (date: Date) => number;
|
|
7
|
+
export declare const dateFormat: (date: number) => Date;
|
|
8
|
+
declare const CalendarPicker: React.FC<DateRangePickerProps>;
|
|
9
|
+
export default CalendarPicker;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const alignNav: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const monthArrow: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const navigationLabel: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const dateRangePicker: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SerializedStyles } from "@emotion/react";
|
|
2
|
+
export interface DateRange {
|
|
3
|
+
startDate: number;
|
|
4
|
+
endDate: number;
|
|
5
|
+
}
|
|
6
|
+
export interface DateRangePickerProps {
|
|
7
|
+
style?: SerializedStyles;
|
|
8
|
+
activeStartDate?: number;
|
|
9
|
+
onChange: (dateRange: DateRange | number) => void;
|
|
10
|
+
multiple?: boolean;
|
|
11
|
+
range?: boolean;
|
|
12
|
+
}
|
|
@@ -2,7 +2,6 @@ export declare const pins: import("@emotion/utils").SerializedStyles;
|
|
|
2
2
|
export declare const label: import("@emotion/utils").SerializedStyles;
|
|
3
3
|
export declare const inputFocused: import("@emotion/utils").SerializedStyles;
|
|
4
4
|
export declare const invalidPins: import("@emotion/utils").SerializedStyles;
|
|
5
|
-
export declare const disabledPins: import("@emotion/utils").SerializedStyles;
|
|
6
5
|
export declare const inputContainer: import("@emotion/utils").SerializedStyles;
|
|
7
6
|
export declare const input: import("@emotion/utils").SerializedStyles;
|
|
8
7
|
export declare const disabledInput: import("@emotion/utils").SerializedStyles;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
export declare const container: import("@emotion/utils").SerializedStyles;
|
|
2
2
|
export declare const popup: import("@emotion/utils").SerializedStyles;
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const button: import("@emotion/utils").SerializedStyles;
|
|
5
|
-
export declare const closer: import("@emotion/utils").SerializedStyles;
|
|
6
|
-
export declare const label: (hovered?: boolean | undefined) => import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const closeButton: import("@emotion/utils").SerializedStyles;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { SerializedStyles } from "@emotion/react";
|
|
2
2
|
import { ReactElement } from "react";
|
|
3
|
-
import { ButtonProps } from "../Button/typings";
|
|
4
3
|
export interface PopperProps {
|
|
5
|
-
|
|
4
|
+
content: ReactElement;
|
|
6
5
|
onClose?: () => void;
|
|
7
|
-
buttonProps?: ButtonProps;
|
|
8
|
-
renderChildren: (props: ChildrenProps) => ReactElement;
|
|
9
6
|
style?: SerializedStyles;
|
|
10
7
|
}
|
|
11
|
-
export interface ChildrenProps {
|
|
12
|
-
close: () => void;
|
|
13
|
-
isOpened: boolean;
|
|
14
|
-
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { SerializedStyles } from "@emotion/react";
|
|
4
|
+
import { InputTargetProps } from "./../Input/typings";
|
|
5
|
+
import "./../../../dist/icons/icons.css";
|
|
6
|
+
interface SearchInputProps {
|
|
7
|
+
value: React.ReactText;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
onChange: (target: InputTargetProps) => void;
|
|
10
|
+
onClear?: () => void;
|
|
11
|
+
autoFocus?: boolean;
|
|
12
|
+
style?: SerializedStyles;
|
|
13
|
+
}
|
|
14
|
+
declare const SearchInput: React.FC<SearchInputProps>;
|
|
15
|
+
export default SearchInput;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const inputGroup: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const inputPrepend: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const focused: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const searchInput: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
export declare const searchButton: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const wrapper: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const button: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const active: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const selectOverlay: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
export declare const optionsWrapper: import("@emotion/utils").SerializedStyles;
|
|
6
|
+
export declare const options: import("@emotion/utils").SerializedStyles;
|
|
7
|
+
export declare const optionItem: import("@emotion/utils").SerializedStyles;
|
|
8
|
+
export declare const optionItems: import("@emotion/utils").SerializedStyles;
|
|
9
|
+
export declare const optionSecondName: import("@emotion/utils").SerializedStyles;
|
|
10
|
+
export declare const selected: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SerializedStyles } from "@emotion/react";
|
|
3
|
+
export interface OptionsProps<T> {
|
|
4
|
+
label: JSX.Element | string;
|
|
5
|
+
displayLabel: JSX.Element | string;
|
|
6
|
+
value: T;
|
|
7
|
+
}
|
|
8
|
+
export interface SelectProps<T> {
|
|
9
|
+
placeholder: string;
|
|
10
|
+
style: SerializedStyles;
|
|
11
|
+
search?: {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
value: string;
|
|
14
|
+
onChange(value: string): void;
|
|
15
|
+
onClear?: () => void;
|
|
16
|
+
};
|
|
17
|
+
options: OptionsProps<T>[];
|
|
18
|
+
selected: T;
|
|
19
|
+
onChange(value: string): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
2
|
+
import { SerializedStyles } from "@emotion/react";
|
|
3
|
+
import React from "react";
|
|
4
|
+
interface ShimmerProps {
|
|
5
|
+
height: number;
|
|
6
|
+
width: number;
|
|
7
|
+
style?: SerializedStyles;
|
|
8
|
+
}
|
|
9
|
+
declare const Shimmer: React.FC<ShimmerProps>;
|
|
10
|
+
export default Shimmer;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
2
|
+
import { FC } from "react";
|
|
3
|
+
import "./../../../dist/icons/icons.css";
|
|
4
|
+
interface SidePanelProps {
|
|
5
|
+
title: string;
|
|
6
|
+
open: boolean;
|
|
7
|
+
isBack?: boolean;
|
|
8
|
+
onBack?: () => void;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare const SidePanel: FC<SidePanelProps>;
|
|
12
|
+
export default SidePanel;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const wrapper: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const overlay: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const sidePanel: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const sidePanelOpen: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
export declare const header: import("@emotion/utils").SerializedStyles;
|
|
6
|
+
export declare const titleStyle: import("@emotion/utils").SerializedStyles;
|
|
7
|
+
export declare const headerCTA: import("@emotion/utils").SerializedStyles;
|
|
8
|
+
export declare const content: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/** @jsxImportSource @emotion/react */
|
|
3
|
+
import { SerializedStyles } from "@emotion/react";
|
|
4
|
+
interface TooltipProps {
|
|
5
|
+
content: JSX.Element | string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
style?: SerializedStyles;
|
|
8
|
+
}
|
|
9
|
+
declare const Tooltip: React.FC<TooltipProps>;
|
|
10
|
+
export default Tooltip;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import Accordion from "./Accordion";
|
|
2
2
|
import Button from "./Button";
|
|
3
|
+
import Card from "./Card";
|
|
3
4
|
import Checkbox from "./Checkbox";
|
|
4
5
|
import CircularLoader from "./CircularLoader";
|
|
6
|
+
import CalendarPicker from "./CalendarPicker";
|
|
5
7
|
import Input from "./Input";
|
|
6
8
|
import PinInput from "./PinInput";
|
|
7
9
|
import Popper from "./Popper";
|
|
8
10
|
import Radio from "./Radio";
|
|
11
|
+
import Select from "./Select";
|
|
12
|
+
import Shimmer from "./Shimmer";
|
|
13
|
+
import SidePanel from "./SidePanel";
|
|
9
14
|
import Tags from "./Tags";
|
|
15
|
+
import SearchInput from "./SearchInput";
|
|
10
16
|
import Tabs from "./Tabs";
|
|
11
17
|
import Toast from "./Toast";
|
|
12
|
-
|
|
18
|
+
import Tooltip from "./Tooltip";
|
|
19
|
+
export { Accordion, Button, Card, Checkbox, CircularLoader, CalendarPicker, Input, PinInput, Popper, Radio, Select, Shimmer, SearchInput, SidePanel, Tags, Tabs, Toast, Tooltip, };
|