zebpay-ui 0.0.45 → 0.0.46
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/Accordion/index.d.ts +12 -0
- package/dist/cjs/components/Accordion/style.d.ts +5 -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/Button/index.d.ts +5 -0
- package/dist/cjs/components/Button/styles.d.ts +11 -0
- package/dist/cjs/components/Button/typings.d.ts +13 -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 +17 -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/Checkbox/index.d.ts +5 -0
- package/dist/cjs/components/Checkbox/styles.d.ts +8 -0
- package/dist/cjs/components/Checkbox/typings.d.ts +14 -0
- package/dist/cjs/components/CircularLoader/index.d.ts +4 -0
- package/dist/cjs/components/CircularLoader/style.d.ts +3 -0
- package/dist/cjs/components/CircularLoader/typings.d.ts +8 -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/index.d.ts +4 -0
- package/dist/cjs/components/Input/styles.d.ts +13 -0
- package/dist/cjs/components/Input/typings.d.ts +27 -0
- package/dist/cjs/components/InputDropDown/index.d.ts +4 -0
- package/dist/cjs/components/InputDropDown/styles.d.ts +9 -0
- package/dist/cjs/components/InputDropDown/typings.d.ts +22 -0
- package/dist/cjs/components/PinInput/PinInputField.d.ts +5 -0
- package/dist/cjs/components/PinInput/index.d.ts +5 -0
- package/dist/cjs/components/PinInput/style.d.ts +7 -0
- package/dist/cjs/components/PinInput/typing.d.ts +21 -0
- package/dist/cjs/components/Popper/index.d.ts +6 -0
- package/dist/cjs/components/Popper/styles.d.ts +4 -0
- package/dist/cjs/components/Popper/typings.d.ts +11 -0
- package/dist/cjs/components/Radio/index.d.ts +5 -0
- package/dist/cjs/components/Radio/styles.d.ts +3 -0
- package/dist/cjs/components/Radio/typings.d.ts +13 -0
- package/dist/cjs/components/RadioGroup/index.d.ts +5 -0
- package/dist/cjs/components/RadioGroup/styles.d.ts +5 -0
- package/dist/cjs/components/RadioGroup/typings.d.ts +18 -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/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 +11 -0
- package/dist/cjs/components/Select/typings.d.ts +21 -0
- package/dist/cjs/components/Shimmer/index.d.ts +4 -0
- package/dist/cjs/components/Shimmer/style.d.ts +3 -0
- package/dist/cjs/components/Shimmer/typings.d.ts +10 -0
- package/dist/cjs/components/SidePanel/index.d.ts +14 -0
- package/dist/cjs/components/SidePanel/style.d.ts +8 -0
- package/dist/cjs/components/Switch/index.d.ts +10 -0
- package/dist/cjs/components/Switch/styles.d.ts +9 -0
- 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/index.d.ts +6 -0
- package/dist/cjs/components/Tabs/styles.d.ts +12 -0
- package/dist/cjs/components/Tabs/typings.d.ts +21 -0
- package/dist/cjs/components/Tags/index.d.ts +11 -0
- package/dist/cjs/components/Tags/style.d.ts +1 -0
- package/dist/cjs/components/Toast/index.d.ts +5 -0
- package/dist/cjs/components/Toast/styles.d.ts +12 -0
- package/dist/cjs/components/Toast/typings.d.ts +8 -0
- package/dist/cjs/components/Tooltip/index.d.ts +5 -0
- package/dist/cjs/components/Tooltip/styles.d.ts +2 -0
- package/dist/cjs/components/Tooltip/typings.d.ts +11 -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 +27 -0
- package/dist/cjs/globalTypings.d.ts +1 -0
- package/dist/cjs/hooks/index.d.ts +1 -0
- package/dist/cjs/hooks/useFocus.d.ts +6 -0
- package/dist/cjs/iconsList.d.ts +1 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +15 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/styles/colors.d.ts +49 -0
- package/dist/cjs/styles/index.d.ts +5 -0
- package/dist/cjs/styles/mixins.d.ts +28 -0
- package/dist/cjs/styles/typography.d.ts +6 -0
- package/dist/cjs/styles/utils.d.ts +10 -0
- package/dist/esm/components/Accordion/index.d.ts +12 -0
- package/dist/esm/components/Accordion/style.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/Button/index.d.ts +5 -0
- package/dist/esm/components/Button/styles.d.ts +11 -0
- package/dist/esm/components/Button/typings.d.ts +13 -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 +17 -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/Checkbox/index.d.ts +5 -0
- package/dist/esm/components/Checkbox/styles.d.ts +8 -0
- package/dist/esm/components/Checkbox/typings.d.ts +14 -0
- package/dist/esm/components/CircularLoader/index.d.ts +4 -0
- package/dist/esm/components/CircularLoader/style.d.ts +3 -0
- package/dist/esm/components/CircularLoader/typings.d.ts +8 -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/index.d.ts +4 -0
- package/dist/esm/components/Input/styles.d.ts +13 -0
- package/dist/esm/components/Input/typings.d.ts +27 -0
- package/dist/esm/components/InputDropDown/index.d.ts +4 -0
- package/dist/esm/components/InputDropDown/styles.d.ts +9 -0
- package/dist/esm/components/InputDropDown/typings.d.ts +22 -0
- package/dist/esm/components/PinInput/PinInputField.d.ts +5 -0
- package/dist/esm/components/PinInput/index.d.ts +5 -0
- package/dist/esm/components/PinInput/style.d.ts +7 -0
- package/dist/esm/components/PinInput/typing.d.ts +21 -0
- package/dist/esm/components/Popper/index.d.ts +6 -0
- package/dist/esm/components/Popper/styles.d.ts +4 -0
- package/dist/esm/components/Popper/typings.d.ts +11 -0
- package/dist/esm/components/Radio/index.d.ts +5 -0
- package/dist/esm/components/Radio/styles.d.ts +3 -0
- package/dist/esm/components/Radio/typings.d.ts +13 -0
- package/dist/esm/components/RadioGroup/index.d.ts +5 -0
- package/dist/esm/components/RadioGroup/styles.d.ts +5 -0
- package/dist/esm/components/RadioGroup/typings.d.ts +18 -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/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 +11 -0
- package/dist/esm/components/Select/typings.d.ts +21 -0
- package/dist/esm/components/Shimmer/index.d.ts +4 -0
- package/dist/esm/components/Shimmer/style.d.ts +3 -0
- package/dist/esm/components/Shimmer/typings.d.ts +10 -0
- package/dist/esm/components/SidePanel/index.d.ts +14 -0
- package/dist/esm/components/SidePanel/style.d.ts +8 -0
- package/dist/esm/components/Switch/index.d.ts +10 -0
- package/dist/esm/components/Switch/styles.d.ts +9 -0
- 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/index.d.ts +6 -0
- package/dist/esm/components/Tabs/styles.d.ts +12 -0
- package/dist/esm/components/Tabs/typings.d.ts +21 -0
- package/dist/esm/components/Tags/index.d.ts +11 -0
- package/dist/esm/components/Tags/style.d.ts +1 -0
- package/dist/esm/components/Toast/index.d.ts +5 -0
- package/dist/esm/components/Toast/styles.d.ts +12 -0
- package/dist/esm/components/Toast/typings.d.ts +8 -0
- package/dist/esm/components/Tooltip/index.d.ts +5 -0
- package/dist/esm/components/Tooltip/styles.d.ts +2 -0
- package/dist/esm/components/Tooltip/typings.d.ts +11 -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 +27 -0
- package/dist/esm/globalTypings.d.ts +1 -0
- package/dist/esm/hooks/index.d.ts +1 -0
- package/dist/esm/hooks/useFocus.d.ts +6 -0
- package/dist/esm/iconsList.d.ts +1 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/styles/colors.d.ts +49 -0
- package/dist/esm/styles/index.d.ts +5 -0
- package/dist/esm/styles/mixins.d.ts +28 -0
- package/dist/esm/styles/typography.d.ts +6 -0
- package/dist/esm/styles/utils.d.ts +10 -0
- package/package.json +1 -1
- package/.vscode/settings.json +0 -3
- package/coverage/clover.xml +0 -424
- package/coverage/coverage-final.json +0 -23
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/components/Accordion/index.html +0 -131
- package/coverage/lcov-report/components/Accordion/index.tsx.html +0 -202
- package/coverage/lcov-report/components/Accordion/style.ts.html +0 -166
- package/coverage/lcov-report/components/Button/index.html +0 -131
- package/coverage/lcov-report/components/Button/index.tsx.html +0 -277
- package/coverage/lcov-report/components/Button/styles.ts.html +0 -532
- package/coverage/lcov-report/components/CircularLoader/index.html +0 -131
- package/coverage/lcov-report/components/CircularLoader/index.tsx.html +0 -286
- package/coverage/lcov-report/components/CircularLoader/style.ts.html +0 -148
- package/coverage/lcov-report/components/Input/index.html +0 -131
- package/coverage/lcov-report/components/Input/index.tsx.html +0 -409
- package/coverage/lcov-report/components/Input/styles.ts.html +0 -433
- package/coverage/lcov-report/components/PinInput/PinInputField.tsx.html +0 -517
- package/coverage/lcov-report/components/PinInput/index.html +0 -146
- package/coverage/lcov-report/components/PinInput/index.tsx.html +0 -268
- package/coverage/lcov-report/components/PinInput/style.ts.html +0 -247
- package/coverage/lcov-report/components/Popper/index.html +0 -131
- package/coverage/lcov-report/components/Popper/index.tsx.html +0 -346
- package/coverage/lcov-report/components/Popper/styles.ts.html +0 -205
- package/coverage/lcov-report/components/SidePanel/index.html +0 -131
- package/coverage/lcov-report/components/SidePanel/index.tsx.html +0 -343
- package/coverage/lcov-report/components/SidePanel/style.ts.html +0 -307
- package/coverage/lcov-report/components/Tooltip/index.html +0 -131
- package/coverage/lcov-report/components/Tooltip/index.tsx.html +0 -307
- package/coverage/lcov-report/components/Tooltip/styles.ts.html +0 -157
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -236
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/styles/colors.ts.html +0 -235
- package/coverage/lcov-report/styles/index.html +0 -176
- package/coverage/lcov-report/styles/index.ts.html +0 -103
- package/coverage/lcov-report/styles/mixins.ts.html +0 -355
- package/coverage/lcov-report/styles/typography.ts.html +0 -1105
- package/coverage/lcov-report/styles/utils.ts.html +0 -202
- package/coverage/lcov.info +0 -780
- package/jest.config.js +0 -15
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
2
|
+
import { SerializedStyles } from "@emotion/react";
|
|
3
|
+
import React, { FC } from "react";
|
|
4
|
+
import "./../../../dist/icons/icons.css";
|
|
5
|
+
interface AccordionProps {
|
|
6
|
+
title: React.ReactNode;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
onToggle: (value: boolean) => void;
|
|
9
|
+
style?: SerializedStyles;
|
|
10
|
+
}
|
|
11
|
+
declare const Accordion: FC<AccordionProps>;
|
|
12
|
+
export default Accordion;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const accordionWrapper: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const accordionTitle: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const accordionIcon: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const accordionCollapsed: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
export declare const accordionContent: import("@emotion/utils").SerializedStyles;
|
|
@@ -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,11 @@
|
|
|
1
|
+
export declare const general: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const linkButton: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const primaryButton: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const secondaryButton: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
export declare const specialButton: import("@emotion/utils").SerializedStyles;
|
|
6
|
+
export declare const specialButtonText: import("@emotion/utils").SerializedStyles;
|
|
7
|
+
export declare const specialButtonSmText: import("@emotion/utils").SerializedStyles;
|
|
8
|
+
export declare const tertiaryButton: import("@emotion/utils").SerializedStyles;
|
|
9
|
+
export declare const tertiaryButtonText: import("@emotion/utils").SerializedStyles;
|
|
10
|
+
export declare const tabButton: import("@emotion/utils").SerializedStyles;
|
|
11
|
+
export declare const disabledButton: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Interpolation, Theme } from "@emotion/react";
|
|
2
|
+
export declare type ButtonSize = "small" | "medium" | "large" | "full-width";
|
|
3
|
+
export declare type ButtonTypeAttribute = "button" | "reset" | "submit";
|
|
4
|
+
export declare type ButtonType = "link" | "primary" | "secondary" | "special" | "tertiary" | "tab";
|
|
5
|
+
export interface ButtonProps {
|
|
6
|
+
type: ButtonType;
|
|
7
|
+
size?: ButtonSize;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
style?: Interpolation<Theme>;
|
|
12
|
+
typeAttribute?: ButtonTypeAttribute;
|
|
13
|
+
}
|
|
@@ -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,17 @@
|
|
|
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
|
+
customDateRange?: {
|
|
13
|
+
start?: number;
|
|
14
|
+
end?: number;
|
|
15
|
+
};
|
|
16
|
+
selectedDate?: Date | Date[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const checkboxContainer: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const labelContainer: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const disabledLabel: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const input: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
export declare const checkCheckmark: (indeterminate?: boolean | undefined) => import("@emotion/utils").SerializedStyles;
|
|
6
|
+
export declare const checkLabel: import("@emotion/utils").SerializedStyles;
|
|
7
|
+
export declare const checkComponent: import("@emotion/utils").SerializedStyles;
|
|
8
|
+
export declare const checkmark: (indeterminate?: boolean | undefined) => import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SerializedStyles } from "@emotion/react";
|
|
2
|
+
import { ReactText } from "react";
|
|
3
|
+
export interface CheckboxProps {
|
|
4
|
+
value: ReactText;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
onChange: (args: {
|
|
7
|
+
checked: boolean;
|
|
8
|
+
value: ReactText;
|
|
9
|
+
}) => void;
|
|
10
|
+
label?: string | JSX.Element;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
style?: SerializedStyles;
|
|
13
|
+
indeterminate?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const invalidInputGroup: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const formLabel: (theme: "dark" | "light") => import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const activeFormLabel: (theme: "dark" | "light") => import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const inputGroup: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
export declare const focusedInputGroup: import("@emotion/utils").SerializedStyles;
|
|
6
|
+
export declare const formControl: (theme: "dark" | "light") => import("@emotion/utils").SerializedStyles;
|
|
7
|
+
export declare const fieldFullRounded: import("@emotion/utils").SerializedStyles;
|
|
8
|
+
export declare const fieldNoRounded: import("@emotion/utils").SerializedStyles;
|
|
9
|
+
export declare const fieldSecondHalfRounded: import("@emotion/utils").SerializedStyles;
|
|
10
|
+
export declare const fieldFirstHalfRounded: import("@emotion/utils").SerializedStyles;
|
|
11
|
+
export declare const inputGroupText: (theme: "dark" | "light") => import("@emotion/utils").SerializedStyles;
|
|
12
|
+
export declare const inputGroupPrepend: (theme: "dark" | "light") => import("@emotion/utils").SerializedStyles;
|
|
13
|
+
export declare const infoCta: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SerializedStyles } from "@emotion/react";
|
|
2
|
+
import { ReactText } from "react";
|
|
3
|
+
export interface InputTargetProps {
|
|
4
|
+
value: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
export interface InputProps {
|
|
8
|
+
label: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
value: ReactText;
|
|
11
|
+
onChange: (target: InputTargetProps) => void;
|
|
12
|
+
name?: string;
|
|
13
|
+
appendItem?: string | JSX.Element;
|
|
14
|
+
prependItem?: string | JSX.Element;
|
|
15
|
+
infoText?: string;
|
|
16
|
+
errorText?: string;
|
|
17
|
+
type?: "text" | "number" | "password";
|
|
18
|
+
style?: SerializedStyles;
|
|
19
|
+
cta?: {
|
|
20
|
+
label: string;
|
|
21
|
+
onClick: () => void;
|
|
22
|
+
};
|
|
23
|
+
onFocus?: () => void;
|
|
24
|
+
onBlur?: () => void;
|
|
25
|
+
autoComplete?: "on" | "off";
|
|
26
|
+
theme?: "dark" | "light";
|
|
27
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
9
|
+
export declare const displayComponent: 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
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const pins: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const label: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const inputFocused: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const invalidPins: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
export declare const inputContainer: import("@emotion/utils").SerializedStyles;
|
|
6
|
+
export declare const input: import("@emotion/utils").SerializedStyles;
|
|
7
|
+
export declare const disabledInput: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SerializedStyles } from "@emotion/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare type PinInputProps = {
|
|
4
|
+
label?: string;
|
|
5
|
+
values: string[];
|
|
6
|
+
mask?: boolean;
|
|
7
|
+
autoFocus?: boolean;
|
|
8
|
+
onChange?: (value: string | string[], index: number, values: string[]) => void;
|
|
9
|
+
length: number;
|
|
10
|
+
initialValue?: string | string[];
|
|
11
|
+
onComplete?: (values: string[]) => void;
|
|
12
|
+
invalid?: boolean;
|
|
13
|
+
style?: SerializedStyles;
|
|
14
|
+
labelStyle?: SerializedStyles;
|
|
15
|
+
inputContainerStyle?: SerializedStyles;
|
|
16
|
+
inputFieldStyle?: SerializedStyles;
|
|
17
|
+
} & Pick<React.InputHTMLAttributes<HTMLInputElement>, "disabled" | "id" | "inputMode" | "onBlur" | "onFocus" | "onKeyDown" | "placeholder">;
|
|
18
|
+
export declare type PinInputFieldProps = {
|
|
19
|
+
index: number;
|
|
20
|
+
value: string;
|
|
21
|
+
} & PinInputProps;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const container: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const popup: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const closeButton: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const selectOverlay: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SerializedStyles } from "@emotion/react";
|
|
2
|
+
import { ReactElement } from "react";
|
|
3
|
+
export declare type Position = "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-start" | "bottom" | "bottom-end" | "left-start" | "left" | "left-end";
|
|
4
|
+
export interface PopperProps {
|
|
5
|
+
content: ReactElement;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
containerStyle?: SerializedStyles;
|
|
8
|
+
contentContainerStyles?: SerializedStyles;
|
|
9
|
+
style?: SerializedStyles;
|
|
10
|
+
position?: Position;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SerializedStyles } from "@emotion/react";
|
|
2
|
+
import { ReactText } from "react";
|
|
3
|
+
export interface RadioProps {
|
|
4
|
+
selected: boolean;
|
|
5
|
+
onChange: (args: {
|
|
6
|
+
selected: boolean;
|
|
7
|
+
value: ReactText;
|
|
8
|
+
}) => void;
|
|
9
|
+
value?: ReactText;
|
|
10
|
+
label?: string | JSX.Element;
|
|
11
|
+
name: string;
|
|
12
|
+
style?: SerializedStyles;
|
|
13
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const container: import("@emotion/utils").SerializedStyles;
|
|
2
|
+
export declare const input: import("@emotion/utils").SerializedStyles;
|
|
3
|
+
export declare const checkmark: import("@emotion/utils").SerializedStyles;
|
|
4
|
+
export declare const radioGroup: import("@emotion/utils").SerializedStyles;
|
|
5
|
+
export declare const marginRight: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SerializedStyles } from "@emotion/react";
|
|
2
|
+
import { ReactText } from "react";
|
|
3
|
+
export interface OptionProps {
|
|
4
|
+
name: string;
|
|
5
|
+
value?: ReactText;
|
|
6
|
+
label?: string | JSX.Element;
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface RadioGroupProps {
|
|
10
|
+
defaultSelected?: string;
|
|
11
|
+
onChange: (args: {
|
|
12
|
+
selected: boolean;
|
|
13
|
+
value: ReactText;
|
|
14
|
+
selectedId: string;
|
|
15
|
+
}) => void;
|
|
16
|
+
style?: SerializedStyles;
|
|
17
|
+
options: Array<OptionProps>;
|
|
18
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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: (inFocus?: boolean | undefined) => 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,11 @@
|
|
|
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: (shiftLeft?: boolean | undefined) => 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 empty: import("@emotion/utils").SerializedStyles;
|
|
10
|
+
export declare const optionSecondName: import("@emotion/utils").SerializedStyles;
|
|
11
|
+
export declare const selected: import("@emotion/utils").SerializedStyles;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SerializedStyles } from "@emotion/react";
|
|
2
|
+
import React from "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
|
+
emptyElement?: React.ReactNode;
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SerializedStyles } from "@emotion/react";
|
|
2
|
+
import { Theme } from "../../globalTypings";
|
|
3
|
+
export interface ShimmerProps {
|
|
4
|
+
height: number;
|
|
5
|
+
width: number;
|
|
6
|
+
style?: SerializedStyles;
|
|
7
|
+
mode?: Theme;
|
|
8
|
+
sizeType?: SizeType;
|
|
9
|
+
}
|
|
10
|
+
export declare type SizeType = "px" | "%";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
2
|
+
import { FC } from "react";
|
|
3
|
+
import "./../../../dist/icons/icons.css";
|
|
4
|
+
import { SerializedStyles } from "@emotion/react";
|
|
5
|
+
interface SidePanelProps {
|
|
6
|
+
title?: string;
|
|
7
|
+
open: boolean;
|
|
8
|
+
isBack?: boolean;
|
|
9
|
+
onBack?: () => void;
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
style?: SerializedStyles;
|
|
12
|
+
}
|
|
13
|
+
declare const SidePanel: FC<SidePanelProps>;
|
|
14
|
+
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 headerCloseCTA: import("@emotion/utils").SerializedStyles;
|