zebpay-ui 0.0.41 → 0.0.43
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/.vscode/settings.json +3 -0
- package/coverage/clover.xml +424 -0
- package/coverage/coverage-final.json +23 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/components/Accordion/index.html +131 -0
- package/coverage/lcov-report/components/Accordion/index.tsx.html +202 -0
- package/coverage/lcov-report/components/Accordion/style.ts.html +166 -0
- package/coverage/lcov-report/components/Button/index.html +131 -0
- package/coverage/lcov-report/components/Button/index.tsx.html +277 -0
- package/coverage/lcov-report/components/Button/styles.ts.html +532 -0
- package/coverage/lcov-report/components/CircularLoader/index.html +131 -0
- package/coverage/lcov-report/components/CircularLoader/index.tsx.html +286 -0
- package/coverage/lcov-report/components/CircularLoader/style.ts.html +148 -0
- package/coverage/lcov-report/components/Input/index.html +131 -0
- package/coverage/lcov-report/components/Input/index.tsx.html +409 -0
- package/coverage/lcov-report/components/Input/styles.ts.html +433 -0
- package/coverage/lcov-report/components/PinInput/PinInputField.tsx.html +517 -0
- package/coverage/lcov-report/components/PinInput/index.html +146 -0
- package/coverage/lcov-report/components/PinInput/index.tsx.html +268 -0
- package/coverage/lcov-report/components/PinInput/style.ts.html +247 -0
- package/coverage/lcov-report/components/Popper/index.html +131 -0
- package/coverage/lcov-report/components/Popper/index.tsx.html +346 -0
- package/coverage/lcov-report/components/Popper/styles.ts.html +205 -0
- package/coverage/lcov-report/components/SidePanel/index.html +131 -0
- package/coverage/lcov-report/components/SidePanel/index.tsx.html +343 -0
- package/coverage/lcov-report/components/SidePanel/style.ts.html +307 -0
- package/coverage/lcov-report/components/Tooltip/index.html +131 -0
- package/coverage/lcov-report/components/Tooltip/index.tsx.html +307 -0
- package/coverage/lcov-report/components/Tooltip/styles.ts.html +157 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +236 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/styles/colors.ts.html +235 -0
- package/coverage/lcov-report/styles/index.html +176 -0
- package/coverage/lcov-report/styles/index.ts.html +103 -0
- package/coverage/lcov-report/styles/mixins.ts.html +355 -0
- package/coverage/lcov-report/styles/typography.ts.html +1105 -0
- package/coverage/lcov-report/styles/utils.ts.html +202 -0
- package/coverage/lcov.info +780 -0
- package/dist/cjs/components/Avatar/index.d.ts +5 -0
- package/dist/cjs/components/Avatar/styles.d.ts +4 -0
- package/dist/cjs/components/Avatar/typings.d.ts +19 -0
- package/dist/cjs/components/AvatarGroup/index.d.ts +5 -0
- package/dist/cjs/components/AvatarGroup/styles.d.ts +1 -0
- package/dist/cjs/components/AvatarGroup/typings.d.ts +19 -0
- package/dist/cjs/components/RewardOMeter/index.d.ts +5 -0
- package/dist/cjs/components/RewardOMeter/styles.d.ts +3 -0
- package/dist/cjs/components/RewardOMeter/typings.d.ts +22 -0
- package/dist/cjs/components/index.d.ts +4 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/styles/colors.d.ts +5 -0
- package/dist/esm/components/Avatar/index.d.ts +5 -0
- package/dist/esm/components/Avatar/styles.d.ts +4 -0
- package/dist/esm/components/Avatar/typings.d.ts +19 -0
- package/dist/esm/components/AvatarGroup/index.d.ts +5 -0
- package/dist/esm/components/AvatarGroup/styles.d.ts +1 -0
- package/dist/esm/components/AvatarGroup/typings.d.ts +19 -0
- package/dist/esm/components/RewardOMeter/index.d.ts +5 -0
- package/dist/esm/components/RewardOMeter/styles.d.ts +3 -0
- package/dist/esm/components/RewardOMeter/typings.d.ts +22 -0
- package/dist/esm/components/index.d.ts +4 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/styles/colors.d.ts +5 -0
- package/dist/icons/icons.css +191 -185
- package/dist/icons/icons.eot +0 -0
- package/dist/icons/icons.html +18 -0
- package/dist/icons/icons.json +184 -182
- package/dist/icons/icons.ts +190 -182
- package/dist/icons/icons.woff +0 -0
- package/dist/icons/icons.woff2 +0 -0
- package/jest.config.js +15 -0
- package/package.json +21 -6
- package/tests/Accordion.test.tsx +40 -0
- package/tests/Avatar.test.tsx +76 -0
- package/tests/Button.test.tsx +35 -0
- package/tests/Input.test.tsx +39 -0
- package/tests/PinInput.test.tsx +89 -0
- package/tests/Popper.test.tsx +50 -0
- package/tests/RewardOMeter.test.tsx +73 -0
- package/tests/SearchInput.test.tsx +34 -0
- package/tests/Select.test.tsx +74 -0
- package/tests/SidePanel.test.tsx +74 -0
- package/tests/Tooltip.test.tsx +36 -0
- package/tests/__snapshots__/Accordion.test.tsx.snap +11 -0
- package/tests/__snapshots__/Button.test.tsx.snap +10 -0
- package/tests/__snapshots__/PinInput.test.tsx.snap +18 -0
- package/tests/__snapshots__/Popper.test.tsx.snap +15 -0
- package/tests/__snapshots__/SidePanel.test.tsx.snap +10 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SizingProps } from "./typings";
|
|
2
|
+
export declare const avatar: (customSize: SizingProps, disabled: boolean) => import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const customAvatar: (customSize: SizingProps, disabled: boolean) => import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const loading: (spacing: string) => import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Interpolation, Theme } from "@emotion/react";
|
|
2
|
+
import { AvatarSpacing } from "../AvatarGroup/typings";
|
|
3
|
+
export declare type AvatareSize = "small" | "medium" | "large";
|
|
4
|
+
export interface AvatarProps {
|
|
5
|
+
src: string;
|
|
6
|
+
alt: string;
|
|
7
|
+
id: number;
|
|
8
|
+
size?: AvatareSize;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
style?: Interpolation<Theme>;
|
|
13
|
+
spacing: AvatarSpacing;
|
|
14
|
+
}
|
|
15
|
+
export interface SizingProps {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
marginLeft: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const avatarGroup: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Interpolation, Theme } from "@emotion/react";
|
|
2
|
+
import { AvatareSize } from "../Avatar/typings";
|
|
3
|
+
export declare type AvatarSpacing = "small" | "medium" | "large";
|
|
4
|
+
export interface AvatarGroupContentProps {
|
|
5
|
+
src: string;
|
|
6
|
+
alt: string;
|
|
7
|
+
id: number;
|
|
8
|
+
}
|
|
9
|
+
export interface AvatarGroupProps {
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
style?: Interpolation<Theme>;
|
|
14
|
+
displayMax?: number;
|
|
15
|
+
total?: number;
|
|
16
|
+
spacing?: AvatarSpacing;
|
|
17
|
+
size?: AvatareSize;
|
|
18
|
+
content: Array<AvatarGroupContentProps>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const meter: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const wrapper: (radius: number) => import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const needle: (angle: number, size: number, radius: number) => import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SerializedStyles } from "@emotion/react";
|
|
2
|
+
export interface Segment {
|
|
3
|
+
color: string;
|
|
4
|
+
percentage: number;
|
|
5
|
+
}
|
|
6
|
+
export interface RewardOMeterProps {
|
|
7
|
+
primaryList: {
|
|
8
|
+
data: Segment[];
|
|
9
|
+
width: number;
|
|
10
|
+
radius: number;
|
|
11
|
+
};
|
|
12
|
+
needleProperties: {
|
|
13
|
+
angle: number;
|
|
14
|
+
size: number;
|
|
15
|
+
};
|
|
16
|
+
secondaryList?: {
|
|
17
|
+
data: Segment[];
|
|
18
|
+
width: number;
|
|
19
|
+
radius: number;
|
|
20
|
+
};
|
|
21
|
+
style?: SerializedStyles;
|
|
22
|
+
}
|
|
@@ -12,6 +12,7 @@ import PinInput from "./PinInput";
|
|
|
12
12
|
import Popper from "./Popper";
|
|
13
13
|
import Radio from "./Radio";
|
|
14
14
|
import RadioGroup from "./RadioGroup";
|
|
15
|
+
import RewardOMeter from "./RewardOMeter";
|
|
15
16
|
import SearchInput from "./SearchInput";
|
|
16
17
|
import Select from "./Select";
|
|
17
18
|
import Shimmer from "./Shimmer";
|
|
@@ -21,4 +22,6 @@ import Tags from "./Tags";
|
|
|
21
22
|
import { Toast, generateToast } from "./Toast";
|
|
22
23
|
import Tooltip from "./Tooltip";
|
|
23
24
|
import Switch from "./Switch";
|
|
24
|
-
|
|
25
|
+
import Avatar from "./Avatar";
|
|
26
|
+
import AvatarGroup from "./AvatarGroup";
|
|
27
|
+
export { Accordion, Button, Card, Checkbox, CircularLoader, CalendarPicker, Icon, IconButton, Input, InputDropDown, PinInput, Popper, Radio, RadioGroup, RewardOMeter, Select, Shimmer, SearchInput, SidePanel, Tags, Tabs, Toast, Tooltip, Switch, Avatar, AvatarGroup, generateToast, };
|