zebpay-ui 0.0.123 → 0.0.124
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 +3 -0
- package/dist/cjs/components/Accordion/style.d.ts +5 -6
- package/dist/cjs/components/AccordionV2/index.d.ts +2 -0
- package/dist/cjs/components/AccordionV2/style.d.ts +2 -3
- package/dist/cjs/components/Checkbox/styles.d.ts +6 -6
- package/dist/cjs/components/Checkbox/typings.d.ts +1 -0
- package/dist/cjs/components/Input/styles.d.ts +10 -13
- package/dist/cjs/components/Input/typings.d.ts +3 -2
- package/dist/cjs/components/Notes/index.d.ts +5 -0
- package/dist/cjs/components/Notes/style.d.ts +22 -0
- package/dist/cjs/components/Notes/typings.d.ts +14 -0
- package/dist/cjs/components/Radio/styles.d.ts +8 -4
- package/dist/cjs/components/Radio/typings.d.ts +3 -1
- package/dist/cjs/components/RadioGroup/styles.d.ts +2 -4
- package/dist/cjs/components/RadioGroup/typings.d.ts +3 -0
- package/dist/cjs/components/SearchInput/index.d.ts +3 -3
- package/dist/cjs/components/SearchInput/style.d.ts +3 -8
- package/dist/cjs/components/Toast/index.d.ts +1 -1
- package/dist/cjs/components/Toast/styles.d.ts +20 -12
- package/dist/cjs/components/Toast/typings.d.ts +3 -1
- package/dist/cjs/components/index.d.ts +2 -1
- package/dist/cjs/index.js +27 -27
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/theme/types.d.ts +12 -0
- package/dist/cjs/theme/zColors.d.ts +22 -11
- package/dist/esm/components/Accordion/index.d.ts +3 -0
- package/dist/esm/components/Accordion/style.d.ts +5 -6
- package/dist/esm/components/AccordionV2/index.d.ts +2 -0
- package/dist/esm/components/AccordionV2/style.d.ts +2 -3
- package/dist/esm/components/Checkbox/styles.d.ts +6 -6
- package/dist/esm/components/Checkbox/typings.d.ts +1 -0
- package/dist/esm/components/Input/styles.d.ts +10 -13
- package/dist/esm/components/Input/typings.d.ts +3 -2
- package/dist/esm/components/Notes/index.d.ts +5 -0
- package/dist/esm/components/Notes/style.d.ts +22 -0
- package/dist/esm/components/Notes/typings.d.ts +14 -0
- package/dist/esm/components/Radio/styles.d.ts +8 -4
- package/dist/esm/components/Radio/typings.d.ts +3 -1
- package/dist/esm/components/RadioGroup/styles.d.ts +2 -4
- package/dist/esm/components/RadioGroup/typings.d.ts +3 -0
- package/dist/esm/components/SearchInput/index.d.ts +3 -3
- package/dist/esm/components/SearchInput/style.d.ts +3 -8
- package/dist/esm/components/Toast/index.d.ts +1 -1
- package/dist/esm/components/Toast/styles.d.ts +20 -12
- package/dist/esm/components/Toast/typings.d.ts +3 -1
- package/dist/esm/components/index.d.ts +2 -1
- package/dist/esm/index.js +27 -27
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/types.d.ts +12 -0
- package/dist/esm/theme/zColors.d.ts +22 -11
- package/package.json +1 -1
|
@@ -28,6 +28,17 @@ export interface ZGradientScheme {
|
|
|
28
28
|
lightShimmer: string;
|
|
29
29
|
darkShimmer: string;
|
|
30
30
|
}
|
|
31
|
+
export interface ZShadowScheme {
|
|
32
|
+
float: string;
|
|
33
|
+
header: string;
|
|
34
|
+
card: string;
|
|
35
|
+
bottomSheet: string;
|
|
36
|
+
bottomArea: string;
|
|
37
|
+
blueCard: string;
|
|
38
|
+
hard: string;
|
|
39
|
+
otp: string;
|
|
40
|
+
blur: string;
|
|
41
|
+
}
|
|
31
42
|
export interface ZColorScheme {
|
|
32
43
|
primary: {
|
|
33
44
|
title: string;
|
|
@@ -132,4 +143,5 @@ export interface ZColorScheme {
|
|
|
132
143
|
tab: TabColorScheme;
|
|
133
144
|
gradients: ZGradientScheme;
|
|
134
145
|
gradientPalette: ZGradientPalette;
|
|
146
|
+
shadows: ZShadowScheme;
|
|
135
147
|
}
|
|
@@ -9,40 +9,40 @@ export declare const ZColors: {
|
|
|
9
9
|
readonly Black: "#000000";
|
|
10
10
|
readonly White: "#FFFFFF";
|
|
11
11
|
readonly Transparent: "transparent";
|
|
12
|
-
readonly Overlay: "#
|
|
12
|
+
readonly Overlay: "#0C0C2466";
|
|
13
13
|
readonly Blue01: "#222245";
|
|
14
14
|
readonly Blue02: "#181837";
|
|
15
15
|
readonly Blue03: "#338FFF";
|
|
16
16
|
readonly Blue04: "#C0C0EE";
|
|
17
17
|
readonly Blue05: "#E9EFF6";
|
|
18
|
-
readonly Blue06: "#
|
|
18
|
+
readonly Blue06: "#338FFF33";
|
|
19
19
|
readonly Blue07: "#EEF5FF";
|
|
20
|
-
readonly Blue08: "#
|
|
20
|
+
readonly Blue08: "#C0C0EE33";
|
|
21
21
|
readonly Blue09: "#151532";
|
|
22
22
|
readonly Blue10: "#D9EAFF";
|
|
23
|
-
readonly Blue11: "#
|
|
23
|
+
readonly Blue11: "#338FFF0A";
|
|
24
24
|
readonly Blue12: "#EBF4FF";
|
|
25
25
|
readonly Grey01: "#C2C2DD";
|
|
26
26
|
readonly Grey02: "#34345A";
|
|
27
27
|
readonly Grey03: "#6B6B6B";
|
|
28
|
-
readonly Grey04: "#
|
|
28
|
+
readonly Grey04: "#C0C0EE33";
|
|
29
29
|
readonly Grey05: "#E1E3E6";
|
|
30
30
|
readonly Grey06: "#C2C2C8";
|
|
31
31
|
readonly Grey07: "#B5B5D3";
|
|
32
32
|
readonly Green01: "#1ECAA2";
|
|
33
33
|
readonly Green02: "#31826F";
|
|
34
34
|
readonly Green03: "#212F4C";
|
|
35
|
-
readonly Green04: "#
|
|
35
|
+
readonly Green04: "#1ECAA233";
|
|
36
36
|
readonly Green06: "#00A37D";
|
|
37
37
|
readonly Red01: "#EA6161";
|
|
38
38
|
readonly Red02: "#BF5555";
|
|
39
39
|
readonly Red03: "#302544";
|
|
40
|
-
readonly Red04: "#
|
|
40
|
+
readonly Red04: "#EA616133";
|
|
41
41
|
readonly Red06: "#DC5454";
|
|
42
42
|
readonly Yellow01: "#F9C35C";
|
|
43
43
|
readonly Yellow02: "#FFB100";
|
|
44
44
|
readonly Yellow03: "#2A273B";
|
|
45
|
-
readonly Yellow04: "#
|
|
45
|
+
readonly Yellow04: "#F9C35C33";
|
|
46
46
|
readonly Yellow05: "#986405";
|
|
47
47
|
readonly PrimaryTitleV4: "#F8F8F8";
|
|
48
48
|
readonly PrimaryWhiteV4: "#F8F8F8";
|
|
@@ -61,9 +61,9 @@ export declare const ZColors: {
|
|
|
61
61
|
readonly InputDefaultV4: "#14161C";
|
|
62
62
|
readonly InputDisabledStrokeV4: "#5F6267";
|
|
63
63
|
readonly FullScreenBg01: "#1D212B";
|
|
64
|
-
readonly ToastSuccessStrokeV4: "#
|
|
65
|
-
readonly ToastInfoStrokeV4: "#
|
|
66
|
-
readonly ToastErrorStrokeV4: "#
|
|
64
|
+
readonly ToastSuccessStrokeV4: "#038153B3";
|
|
65
|
+
readonly ToastInfoStrokeV4: "#B09600B3";
|
|
66
|
+
readonly ToastErrorStrokeV4: "#C94444B3";
|
|
67
67
|
readonly TagYellowStrokeV4: "#FFF15A";
|
|
68
68
|
readonly TagYellowTextV4: "#FFF15A";
|
|
69
69
|
readonly TagGreyTextV4: "#C4C4C4";
|
|
@@ -82,6 +82,17 @@ export declare const ZColors: {
|
|
|
82
82
|
readonly TabSecondaryV4: "#6A93FF";
|
|
83
83
|
readonly SheetScrimColor: "#F7252525";
|
|
84
84
|
};
|
|
85
|
+
export declare const ZShadows: {
|
|
86
|
+
float: string;
|
|
87
|
+
header: string;
|
|
88
|
+
card: string;
|
|
89
|
+
bottomSheet: string;
|
|
90
|
+
bottomArea: string;
|
|
91
|
+
blueCard: string;
|
|
92
|
+
hard: string;
|
|
93
|
+
otp: string;
|
|
94
|
+
blur: string;
|
|
95
|
+
};
|
|
85
96
|
/** Mirrored from mobile v2 ZGradientConst */
|
|
86
97
|
export declare const ZGradientConst: {
|
|
87
98
|
gradient1: readonly ["#5D7BFE", "#0974FF"];
|
|
@@ -5,11 +5,14 @@ import "./../../../dist/icons/icons.css";
|
|
|
5
5
|
import type { Theme } from "../../globalTypings";
|
|
6
6
|
interface AccordionProps {
|
|
7
7
|
title: React.ReactNode;
|
|
8
|
+
titleIcon?: string;
|
|
9
|
+
titleIconStyle?: SerializedStyles;
|
|
8
10
|
isOpen: boolean;
|
|
9
11
|
onToggle: (value: boolean) => void;
|
|
10
12
|
style?: SerializedStyles;
|
|
11
13
|
children?: ReactNode;
|
|
12
14
|
mode?: Theme;
|
|
15
|
+
disableBorder?: boolean;
|
|
13
16
|
}
|
|
14
17
|
declare const Accordion: FC<AccordionProps>;
|
|
15
18
|
export default Accordion;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Theme } from "../../globalTypings";
|
|
2
|
-
export declare const accordionWrapper: (isOpen: boolean, mode
|
|
3
|
-
export declare const accordionTitle: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const iconStyle: (isOpen: boolean) => import("@emotion/react").SerializedStyles;
|
|
2
|
+
export declare const accordionWrapper: (isOpen: boolean, mode: Theme, disableBorder: boolean) => import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const accordionTitle: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const accordionTitleIcon: import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const accordionContent: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const iconStyle: (isOpen: boolean, mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -5,6 +5,8 @@ import "./../../../dist/icons/icons.css";
|
|
|
5
5
|
import { Theme } from "../../globalTypings";
|
|
6
6
|
interface AccordionV2Props {
|
|
7
7
|
title: React.ReactNode;
|
|
8
|
+
titleIcon?: string;
|
|
9
|
+
titleIconStyle?: SerializedStyles;
|
|
8
10
|
isOpen: boolean;
|
|
9
11
|
onToggle: (value: boolean) => void;
|
|
10
12
|
style?: SerializedStyles;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Theme as ThemeType } from "../../globalTypings";
|
|
2
2
|
export declare const accordionWrapper: (isOpen: boolean, mode: ThemeType, disableBorder: boolean) => import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const accordionTitle: (mode: ThemeType) => import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const accordionCollapsed: import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const accordionTitleIcon: import("@emotion/react").SerializedStyles;
|
|
6
5
|
export declare const accordionContent: (isOpen: boolean, mode: ThemeType) => import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const iconStyle: (isOpen: boolean) => import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const iconStyle: (isOpen: boolean, mode: ThemeType) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Theme } from "../../globalTypings";
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const DEFAULT_SIZE = 20;
|
|
3
|
+
export declare const checkboxContainer: (size?: number) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const labelContainer: (mode: Theme, size?: number, alignTop?: boolean) => import("@emotion/react").SerializedStyles;
|
|
4
5
|
export declare const disabledLabel: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const input: import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const input: (size?: number, alignTop?: boolean) => import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const checkmark: (mode: Theme, size?: number, checked?: boolean, disabled?: boolean, alignTop?: boolean) => import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const checkIcon: (mode: Theme, size?: number) => import("@emotion/react").SerializedStyles;
|
|
7
9
|
export declare const checkLabel: import("@emotion/react").SerializedStyles;
|
|
8
|
-
export declare const checkComponent: import("@emotion/react").SerializedStyles;
|
|
9
|
-
export declare const checkmark: (mode: Theme, indeterminate?: boolean, alignTop?: boolean) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const invalidInputGroup: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const formLabel: (theme:
|
|
4
|
-
export declare const activeFormLabel: (theme:
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const fieldNoRounded: import("@emotion/react").SerializedStyles;
|
|
10
|
-
export declare const fieldSecondHalfRounded: import("@emotion/react").SerializedStyles;
|
|
11
|
-
export declare const fieldFirstHalfRounded: import("@emotion/react").SerializedStyles;
|
|
12
|
-
export declare const inputGroupText: (theme: InputTheme) => import("@emotion/react").SerializedStyles;
|
|
13
|
-
export declare const inputGroupPrepend: (theme: InputTheme) => import("@emotion/react").SerializedStyles;
|
|
1
|
+
import { Theme } from "../../globalTypings";
|
|
2
|
+
export declare const invalidInputGroup: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const formLabel: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const activeFormLabel: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const errorFormLabel: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const inputGroup: (theme: Theme, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const focusedInputGroup: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const formControl: (theme: Theme, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
14
9
|
export declare const infoCta: import("@emotion/react").SerializedStyles;
|
|
10
|
+
export declare const infoText: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
11
|
+
export declare const errorText: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SerializedStyles } from "@emotion/react";
|
|
2
2
|
import React, { KeyboardEvent, WheelEvent } from "react";
|
|
3
3
|
import { Theme } from "../../globalTypings";
|
|
4
|
-
export type InputTheme = Theme | "inputExtraDark";
|
|
5
4
|
export interface InputTargetProps {
|
|
6
5
|
value: string;
|
|
7
6
|
name: string;
|
|
@@ -26,7 +25,8 @@ export interface InputProps {
|
|
|
26
25
|
onFocus?: () => void;
|
|
27
26
|
onBlur?: () => void;
|
|
28
27
|
autoComplete?: "on" | "off";
|
|
29
|
-
|
|
28
|
+
autoFocus?: boolean;
|
|
29
|
+
theme?: Theme;
|
|
30
30
|
onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
31
31
|
onWheel?: (event: WheelEvent<HTMLInputElement>) => void;
|
|
32
32
|
onPaste?: (event: React.ClipboardEvent<HTMLInputElement>) => void;
|
|
@@ -35,4 +35,5 @@ export interface InputProps {
|
|
|
35
35
|
patternType?: string;
|
|
36
36
|
disabled?: boolean;
|
|
37
37
|
invalid?: boolean;
|
|
38
|
+
inputGroupStyles?: SerializedStyles;
|
|
38
39
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Theme } from "../../globalTypings";
|
|
2
|
+
import { NotesType } from "./typings";
|
|
3
|
+
type NoteColors = {
|
|
4
|
+
fill: string;
|
|
5
|
+
stroke: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
iconBoxBg: string;
|
|
10
|
+
arrow: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const getNoteColors: (mode: Theme, type: NotesType, isMobile: boolean) => NoteColors;
|
|
13
|
+
export declare const notesContainer: (mode: Theme, type: NotesType, isMobile: boolean, hasDescription: boolean) => import("@emotion/react").SerializedStyles;
|
|
14
|
+
export declare const image: import("@emotion/react").SerializedStyles;
|
|
15
|
+
export declare const notesContent: (isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
16
|
+
export declare const notesHeader: import("@emotion/react").SerializedStyles;
|
|
17
|
+
export declare const notesIconWrapper: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
18
|
+
export declare const notesTitle: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
19
|
+
export declare const notesDescription: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
20
|
+
export declare const notesIcon: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
21
|
+
export declare const notesArrow: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SerializedStyles } from "@emotion/react";
|
|
2
|
+
import { Theme } from "../../globalTypings";
|
|
3
|
+
export type NotesType = "info" | "error" | "success";
|
|
4
|
+
export interface NotesProps {
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
type?: NotesType;
|
|
8
|
+
mode?: Theme;
|
|
9
|
+
isMobile?: boolean;
|
|
10
|
+
showArrow?: boolean;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
style?: SerializedStyles;
|
|
13
|
+
notesImage?: string;
|
|
14
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { Theme } from "../../globalTypings";
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
1
|
+
import type { Theme } from "../../globalTypings";
|
|
2
|
+
export declare const DEFAULT_SIZE = 20;
|
|
3
|
+
export declare const radioContainer: (size?: number) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const labelContainer: (mode: Theme, size?: number, isListView?: boolean) => import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const disabledLabel: import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const input: (size?: number, isListView?: boolean) => import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const checkmark: (mode: Theme, size?: number, isListView?: boolean, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const innerDot: (mode: Theme, size?: number, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
5
9
|
export declare const listViewStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SerializedStyles } from "@emotion/react";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { Theme } from "../../globalTypings";
|
|
3
|
+
import type { Theme } from "../../globalTypings";
|
|
4
4
|
export interface RadioProps {
|
|
5
5
|
selected: boolean;
|
|
6
6
|
onChange: (args: {
|
|
@@ -14,4 +14,6 @@ export interface RadioProps {
|
|
|
14
14
|
mode?: Theme;
|
|
15
15
|
checkmarkStyle?: SerializedStyles;
|
|
16
16
|
isListView?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
size?: number;
|
|
17
19
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Theme } from "../../globalTypings";
|
|
2
|
-
export declare const container: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const input: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const checkmark: import("@emotion/react").SerializedStyles;
|
|
5
2
|
export declare const radioGroup: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const radioGroupInline: import("@emotion/react").SerializedStyles;
|
|
6
4
|
export declare const marginRight: import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const defaultState: import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const defaultState: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -6,6 +6,7 @@ export interface OptionProps {
|
|
|
6
6
|
value?: string | number;
|
|
7
7
|
label?: string | React.JSX.Element;
|
|
8
8
|
id: string;
|
|
9
|
+
disabled?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export interface RadioGroupProps {
|
|
11
12
|
defaultSelected?: string;
|
|
@@ -19,4 +20,6 @@ export interface RadioGroupProps {
|
|
|
19
20
|
options: Array<OptionProps>;
|
|
20
21
|
mode?: Theme;
|
|
21
22
|
isListView?: boolean;
|
|
23
|
+
size?: number;
|
|
24
|
+
disabled?: boolean;
|
|
22
25
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
-
import { InputTargetProps
|
|
5
|
-
import "
|
|
4
|
+
import { InputTargetProps } from "../Input/typings";
|
|
5
|
+
import { Theme } from "../../globalTypings";
|
|
6
6
|
interface SearchInputProps {
|
|
7
7
|
value: string | number;
|
|
8
8
|
placeholder?: string;
|
|
@@ -12,7 +12,7 @@ interface SearchInputProps {
|
|
|
12
12
|
disableShadow?: boolean;
|
|
13
13
|
style?: SerializedStyles;
|
|
14
14
|
isMobile?: boolean;
|
|
15
|
-
mode?:
|
|
15
|
+
mode?: Theme;
|
|
16
16
|
onFocus?: () => void;
|
|
17
17
|
onBlur?: () => void;
|
|
18
18
|
closeDropdown?: () => void;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const focused: (theme: InputTheme) => import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const searchInput: (isMobile: boolean, theme: InputTheme, isFocused: boolean, onClear?: boolean, customDarkBgcolor?: string) => import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const searchButton: (theme: InputTheme, customDarkBgcolor?: string) => import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const disableShadow: import("@emotion/react").SerializedStyles;
|
|
8
|
-
export declare const icon: (theme: InputTheme) => import("@emotion/react").SerializedStyles;
|
|
1
|
+
import { Theme } from "../../globalTypings";
|
|
2
|
+
export declare const inputGroupStyles: (theme: Theme, isMobile: boolean, customDarkBgcolor?: string, disableShadow?: boolean) => import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const icon: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,5 +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, mode, style, }: ToastProps) => void;
|
|
4
|
+
export declare const generateToast: ({ title, description, type, onClose, mode, isMobile, style, }: ToastProps) => void;
|
|
5
5
|
export declare const Toast: React.FC<ToastProps>;
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { Theme } from "../../globalTypings";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
2
|
+
import { ToastType } from "./typings";
|
|
3
|
+
type ToastColors = {
|
|
4
|
+
fill: string;
|
|
5
|
+
stroke: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
iconBoxBg: string;
|
|
10
|
+
close: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const getToastColors: (mode: Theme, type: ToastType, isMobile: boolean) => ToastColors;
|
|
13
|
+
export declare const toastContainer: (mode: Theme, type: ToastType, isMobile: boolean, hasDescription: boolean) => import("@emotion/react").SerializedStyles;
|
|
14
|
+
export declare const toastContent: (isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
15
|
+
export declare const toastHeader: import("@emotion/react").SerializedStyles;
|
|
16
|
+
export declare const toastIconWrapper: (mode: Theme, type: ToastType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
17
|
+
export declare const toastTitle: (mode: Theme, type: ToastType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
18
|
+
export declare const toastDescription: (mode: Theme, type: ToastType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
19
|
+
export declare const toastIcon: (mode: Theme, type: ToastType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
20
|
+
export declare const toastClose: (mode: Theme, type: ToastType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
21
|
+
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { SerializedStyles } from "@emotion/react";
|
|
2
2
|
import { Theme } from "../../globalTypings";
|
|
3
|
+
export type ToastType = "info" | "error" | "success";
|
|
3
4
|
export interface ToastProps {
|
|
4
5
|
title: string;
|
|
5
6
|
description?: string;
|
|
6
|
-
type
|
|
7
|
+
type?: ToastType;
|
|
8
|
+
isMobile?: boolean;
|
|
7
9
|
onClose?: () => void;
|
|
8
10
|
style?: SerializedStyles;
|
|
9
11
|
mode?: Theme;
|
|
@@ -30,4 +30,5 @@ import AvatarGroup from "./AvatarGroup";
|
|
|
30
30
|
import Pagination from "./Pagination";
|
|
31
31
|
import MobileBottomDrawer from "./MobileBottomDrawer";
|
|
32
32
|
import MobileCalendarPicker from "./MobileCalenderPicker";
|
|
33
|
-
|
|
33
|
+
import Notes from "./Notes";
|
|
34
|
+
export { Accordion, AccordionV2, Button, Card, Checkbox, CircularLoader, CalendarPicker, Divider, Icon, IconButton, IconBox, Input, InputDropDown, PinInput, Popper, Radio, RadioGroup, RewardOMeter, Select, Shimmer, SearchInput, SidePanel, Tags, Tabs, Toast, Tooltip, Switch, Avatar, AvatarGroup, Pagination, MobileBottomDrawer, MobileCalendarPicker, Notes, generateToast, };
|