zebpay-ui 0.0.21 → 0.0.23
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/dist/cjs/components/CircularLoader/typings.d.ts +2 -0
- package/dist/cjs/components/Input/typings.d.ts +2 -0
- package/dist/cjs/components/InputDropDown/index.d.ts +4 -0
- package/dist/cjs/components/InputDropDown/styles.d.ts +8 -0
- package/dist/cjs/components/InputDropDown/typings.d.ts +22 -0
- package/dist/cjs/components/Popper/styles.d.ts +1 -0
- package/dist/cjs/components/Select/typings.d.ts +1 -1
- package/dist/cjs/components/Tabs/TabsDropdown/index.d.ts +12 -0
- package/dist/cjs/components/Tabs/TabsDropdown/styles.d.ts +6 -0
- package/dist/cjs/components/Tabs/styles.d.ts +1 -0
- package/dist/cjs/components/Tabs/typings.d.ts +3 -0
- package/dist/cjs/components/Tags/index.d.ts +1 -1
- package/dist/cjs/components/Toast/index.d.ts +2 -3
- package/dist/cjs/components/Toast/typings.d.ts +3 -1
- package/dist/cjs/components/Tooltip/index.d.ts +1 -7
- package/dist/cjs/components/Tooltip/typings.d.ts +9 -0
- package/dist/cjs/components/Virtualize/index.d.ts +12 -0
- package/dist/cjs/components/Virtualize/styles.d.ts +4 -0
- package/dist/cjs/components/index.d.ts +6 -5
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/styles/colors.d.ts +8 -0
- package/dist/esm/components/CircularLoader/typings.d.ts +2 -0
- package/dist/esm/components/Input/typings.d.ts +2 -0
- package/dist/esm/components/InputDropDown/index.d.ts +4 -0
- package/dist/esm/components/InputDropDown/styles.d.ts +8 -0
- package/dist/esm/components/InputDropDown/typings.d.ts +22 -0
- package/dist/esm/components/Popper/styles.d.ts +1 -0
- package/dist/esm/components/Select/typings.d.ts +1 -1
- package/dist/esm/components/Tabs/TabsDropdown/index.d.ts +12 -0
- package/dist/esm/components/Tabs/TabsDropdown/styles.d.ts +6 -0
- package/dist/esm/components/Tabs/styles.d.ts +1 -0
- package/dist/esm/components/Tabs/typings.d.ts +3 -0
- package/dist/esm/components/Tags/index.d.ts +1 -1
- package/dist/esm/components/Toast/index.d.ts +2 -3
- package/dist/esm/components/Toast/typings.d.ts +3 -1
- package/dist/esm/components/Tooltip/index.d.ts +1 -7
- package/dist/esm/components/Tooltip/typings.d.ts +9 -0
- package/dist/esm/components/Virtualize/index.d.ts +12 -0
- package/dist/esm/components/Virtualize/styles.d.ts +4 -0
- package/dist/esm/components/index.d.ts +6 -5
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/styles/colors.d.ts +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const wrapper: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const selectOverlay: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const icon: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const input: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
export declare const selectedElement: 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 optionsWrapper: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 InputDropDownProps<T> {
|
|
9
|
+
style?: SerializedStyles;
|
|
10
|
+
search: {
|
|
11
|
+
placeholder: string;
|
|
12
|
+
value: string;
|
|
13
|
+
onChange(value: string): void;
|
|
14
|
+
onClear?: () => void;
|
|
15
|
+
};
|
|
16
|
+
options: OptionsProps<T>[];
|
|
17
|
+
selected: T;
|
|
18
|
+
onChange(value: string): void;
|
|
19
|
+
emptyElement?: React.ReactNode;
|
|
20
|
+
rowHeight: number;
|
|
21
|
+
maxRows: number;
|
|
22
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const container: import("@emotion/utils").SerializedStyles;
|
|
2
2
|
export declare const popup: import("@emotion/utils").SerializedStyles;
|
|
3
3
|
export declare const closeButton: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const selectOverlay: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { TabItem, TabType } from "../typings";
|
|
4
|
+
interface TabsDropdownProps {
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
title: JSX.Element | string;
|
|
7
|
+
list: TabItem[];
|
|
8
|
+
onChange: (value: TabItem) => void;
|
|
9
|
+
type: TabType;
|
|
10
|
+
}
|
|
11
|
+
declare const TabsDropdown: React.FC<TabsDropdownProps>;
|
|
12
|
+
export default TabsDropdown;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const tabDropdown: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const menu: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const menuItem: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const activeItem: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
export declare const tertiaryNotActive: import("@emotion/utils").SerializedStyles;
|
|
6
|
+
export declare const selectOverlay: import("@emotion/utils").SerializedStyles;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const customNav: import("@emotion/utils").SerializedStyles;
|
|
2
2
|
export declare const disabledNav: import("@emotion/utils").SerializedStyles;
|
|
3
3
|
export declare const tertiaryNav: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const primaryNav: import("@emotion/utils").SerializedStyles;
|
|
4
5
|
export declare const primary: import("@emotion/utils").SerializedStyles;
|
|
5
6
|
export declare const primaryActive: import("@emotion/utils").SerializedStyles;
|
|
6
7
|
export declare const secondary: import("@emotion/utils").SerializedStyles;
|
|
@@ -5,10 +5,13 @@ export interface TabItem {
|
|
|
5
5
|
title: JSX.Element | string;
|
|
6
6
|
tab: string;
|
|
7
7
|
style?: SerializedStyles;
|
|
8
|
+
isCustomActiveState?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export interface TabProps {
|
|
10
11
|
selectedTab: string;
|
|
11
12
|
tabsList: TabItem[];
|
|
13
|
+
tabsCount?: number;
|
|
14
|
+
dropdownPlaceHolder?: JSX.Element | string;
|
|
12
15
|
onChange: (value: string) => void;
|
|
13
16
|
type: TabType;
|
|
14
17
|
style?: SerializedStyles;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import { SerializedStyles } from "@emotion/react";
|
|
3
3
|
import React from "react";
|
|
4
|
-
declare type TagType = "success" | "warning" | "info" | "error" | "default";
|
|
4
|
+
export declare type TagType = "success" | "warning" | "info" | "error" | "default";
|
|
5
5
|
export interface TagProps {
|
|
6
6
|
type: TagType;
|
|
7
7
|
style?: SerializedStyles;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ToastProps } from "./typings";
|
|
4
|
-
export declare const generateToast: ({ title, description, type, onClose, }: ToastProps) => void;
|
|
5
|
-
declare const Toast: React.FC<ToastProps>;
|
|
6
|
-
export default Toast;
|
|
4
|
+
export declare const generateToast: ({ title, description, type, onClose, style, }: ToastProps) => void;
|
|
5
|
+
export declare const Toast: React.FC<ToastProps>;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
interface TooltipProps {
|
|
5
|
-
content: JSX.Element | string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
style?: SerializedStyles;
|
|
8
|
-
}
|
|
2
|
+
import { TooltipProps } from "./typings";
|
|
9
3
|
declare const Tooltip: React.FC<TooltipProps>;
|
|
10
4
|
export default Tooltip;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SerializedStyles } from "@emotion/react";
|
|
3
|
+
export declare type Position = "top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
4
|
+
export interface TooltipProps {
|
|
5
|
+
content: JSX.Element | string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
style?: SerializedStyles;
|
|
8
|
+
position?: Position;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { OptionsProps } from "../InputDropDown/typings";
|
|
4
|
+
interface VirtualizeProps {
|
|
5
|
+
rowHeight: number;
|
|
6
|
+
rows: OptionsProps<string>[];
|
|
7
|
+
maxRows: number;
|
|
8
|
+
onSelected: (value: string) => void;
|
|
9
|
+
emptyElement: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const Virtualize: React.FC<VirtualizeProps>;
|
|
12
|
+
export default Virtualize;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const item: (rowHeight: number, index: number) => import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const body: (height: number, rowCount: number) => import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const table: (tableHeight: number) => import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const emptyContainer: import("@emotion/utils").SerializedStyles;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import Accordion from "./Accordion";
|
|
2
2
|
import Button from "./Button";
|
|
3
|
+
import CalendarPicker from "./CalendarPicker";
|
|
3
4
|
import Card from "./Card";
|
|
4
5
|
import Checkbox from "./Checkbox";
|
|
5
6
|
import CircularLoader from "./CircularLoader";
|
|
6
|
-
import CalendarPicker from "./CalendarPicker";
|
|
7
7
|
import Icon from "./Icon";
|
|
8
8
|
import IconButton from "./IconButton";
|
|
9
9
|
import Input from "./Input";
|
|
10
|
+
import InputDropDown from "./InputDropDown";
|
|
10
11
|
import PinInput from "./PinInput";
|
|
11
12
|
import Popper from "./Popper";
|
|
12
13
|
import Radio from "./Radio";
|
|
14
|
+
import SearchInput from "./SearchInput";
|
|
13
15
|
import Select from "./Select";
|
|
14
16
|
import Shimmer from "./Shimmer";
|
|
15
17
|
import SidePanel from "./SidePanel";
|
|
16
|
-
import Tags from "./Tags";
|
|
17
|
-
import SearchInput from "./SearchInput";
|
|
18
18
|
import Tabs from "./Tabs";
|
|
19
|
-
import
|
|
19
|
+
import Tags from "./Tags";
|
|
20
|
+
import { Toast, generateToast } from "./Toast";
|
|
20
21
|
import Tooltip from "./Tooltip";
|
|
21
|
-
export { Accordion, Button, Card, Checkbox, CircularLoader, CalendarPicker, Icon, IconButton, Input, PinInput, Popper, Radio, Select, Shimmer, SearchInput, SidePanel, Tags, Tabs, Toast, Tooltip, };
|
|
22
|
+
export { Accordion, Button, Card, Checkbox, CircularLoader, CalendarPicker, Icon, IconButton, Input, InputDropDown, PinInput, Popper, Radio, Select, Shimmer, SearchInput, SidePanel, Tags, Tabs, Toast, Tooltip, generateToast, };
|