zebpay-ui 0.0.127 → 0.0.129
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/Button/styles.d.ts +13 -4
- package/dist/cjs/components/Input/styles.d.ts +3 -1
- package/dist/cjs/components/Notes/style.d.ts +2 -0
- package/dist/cjs/components/Notes/typings.d.ts +1 -1
- package/dist/cjs/components/Radio/styles.d.ts +1 -1
- package/dist/cjs/components/Tabs/styles.d.ts +1 -1
- package/dist/cjs/index.js +27 -27
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/theme/v2/index.d.ts +1 -1
- package/dist/cjs/theme/v2/types.d.ts +10 -0
- package/dist/cjs/theme/v2/zColors.d.ts +8 -1
- package/dist/esm/components/Button/styles.d.ts +13 -4
- package/dist/esm/components/Input/styles.d.ts +3 -1
- package/dist/esm/components/Notes/style.d.ts +2 -0
- package/dist/esm/components/Notes/typings.d.ts +1 -1
- package/dist/esm/components/Radio/styles.d.ts +1 -1
- package/dist/esm/components/Tabs/styles.d.ts +1 -1
- package/dist/esm/index.js +31 -31
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/v2/index.d.ts +1 -1
- package/dist/esm/theme/v2/types.d.ts +10 -0
- package/dist/esm/theme/v2/zColors.d.ts +8 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ZThemeProvider, useZTheme, ThemeContext } from "./ZThemeProvider";
|
|
2
2
|
export type { ZThemeProviderProps, ThemeContextValue } from "./ZThemeProvider";
|
|
3
3
|
export { lightColorScheme, darkColorScheme, extraDarkColorScheme, getZColorSchemeForTheme, ZColors, ZGradientConst, } from "./zColorScheme";
|
|
4
|
-
export type { ZColorScheme } from "./types";
|
|
4
|
+
export type { ZColorScheme, ButtonColorScheme } from "./types";
|
|
@@ -14,6 +14,15 @@ export interface TabColorScheme {
|
|
|
14
14
|
tertiaryDefaultText: string;
|
|
15
15
|
tertiaryDefaultStroke: string;
|
|
16
16
|
}
|
|
17
|
+
/** Mirrored from mobile v2 ZButtonColors (Buttons.kt) */
|
|
18
|
+
export interface ButtonColorScheme {
|
|
19
|
+
primaryFill: string;
|
|
20
|
+
primaryText: string;
|
|
21
|
+
secondaryFill: string;
|
|
22
|
+
secondaryText: string;
|
|
23
|
+
secondaryStroke: string;
|
|
24
|
+
disabled: string;
|
|
25
|
+
}
|
|
17
26
|
export interface ZGradientScheme {
|
|
18
27
|
primary: string;
|
|
19
28
|
tertiary: string;
|
|
@@ -141,6 +150,7 @@ export interface ZColorScheme {
|
|
|
141
150
|
};
|
|
142
151
|
overlay: string;
|
|
143
152
|
tab: TabColorScheme;
|
|
153
|
+
button: ButtonColorScheme;
|
|
144
154
|
gradients: ZGradientScheme;
|
|
145
155
|
gradientPalette: ZGradientPalette;
|
|
146
156
|
shadows: ZShadowScheme;
|
|
@@ -70,6 +70,9 @@ export declare const ZColors: {
|
|
|
70
70
|
readonly TagGreyFilledV4: "#313337";
|
|
71
71
|
readonly HeaderSecondaryFillV4: "#14161C";
|
|
72
72
|
readonly TabAccentV4: "#4660FE";
|
|
73
|
+
/** Android ARGB 0x004660FE — transparent secondary button fill (darkV4) */
|
|
74
|
+
readonly SecondaryFillV4: "#4660FE00";
|
|
75
|
+
readonly SecondaryTextV4: "#F8F8F8";
|
|
73
76
|
readonly FunctionalGreenV4: "#038153";
|
|
74
77
|
readonly FunctionalRedV4: "#E75252";
|
|
75
78
|
readonly FunctionalRed02V4: "#C94444";
|
|
@@ -80,14 +83,17 @@ export declare const ZColors: {
|
|
|
80
83
|
readonly SuccessIconV4: "#15B178";
|
|
81
84
|
readonly ErrorIconV4: "#B84242";
|
|
82
85
|
readonly TabSecondaryV4: "#6A93FF";
|
|
83
|
-
readonly SheetScrimColor: "#
|
|
86
|
+
readonly SheetScrimColor: "#25252599";
|
|
84
87
|
};
|
|
85
88
|
export declare const ZShadows: {
|
|
86
89
|
float: string;
|
|
87
90
|
header: string;
|
|
91
|
+
headerExtraDark: string;
|
|
88
92
|
card: string;
|
|
89
93
|
bottomSheet: string;
|
|
94
|
+
bottomSheetExtraDark: string;
|
|
90
95
|
bottomArea: string;
|
|
96
|
+
bottomAreaExtraDark: string;
|
|
91
97
|
blueCard: string;
|
|
92
98
|
hard: string;
|
|
93
99
|
otp: string;
|
|
@@ -97,6 +103,7 @@ export declare const ZShadows: {
|
|
|
97
103
|
export declare const ZGradientConst: {
|
|
98
104
|
gradient1: readonly ["#5D7BFE", "#0974FF"];
|
|
99
105
|
gradient1V4: readonly ["#5786FF", "#3751FE"];
|
|
106
|
+
gradientBlueV4: readonly ["#5786FF", "#3751FE"];
|
|
100
107
|
white: readonly ["#FFFFFF", "#FFFFFF"];
|
|
101
108
|
};
|
|
102
109
|
export declare const linearGradient: (from: string, to: string, angle?: string) => string;
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { Theme } from "../../globalTypings";
|
|
2
2
|
export declare const general: (width?: number) => import("@emotion/react").SerializedStyles;
|
|
3
|
-
|
|
3
|
+
/** web link ≈ mobile ZTextButton */
|
|
4
|
+
export declare const linkButton: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
|
+
/** web primary ≈ mobile ZFilledButton */
|
|
4
6
|
export declare const primaryButton: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
7
|
+
/** web secondary ≈ mobile ZOutlineButton */
|
|
5
8
|
export declare const secondaryButton: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const specialButton: import("@emotion/react").SerializedStyles;
|
|
9
|
+
export declare const specialButton: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
7
10
|
export declare const specialButtonText: import("@emotion/react").SerializedStyles;
|
|
8
11
|
export declare const specialButtonSmText: import("@emotion/react").SerializedStyles;
|
|
9
|
-
|
|
12
|
+
/** web tertiary ≈ mobile ZOutlineTertiaryButton */
|
|
13
|
+
export declare const tertiaryButton: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
10
14
|
export declare const tertiaryButtonText: import("@emotion/react").SerializedStyles;
|
|
11
|
-
|
|
15
|
+
/** tab base — scheme.tab (Tabs styles override per variant) */
|
|
16
|
+
export declare const tabButton: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
12
17
|
export declare const disabledButton: import("@emotion/react").SerializedStyles;
|
|
18
|
+
export declare const getLoaderColors: (mode: Theme, disabled?: boolean) => {
|
|
19
|
+
fillColor: string;
|
|
20
|
+
trackColor: string;
|
|
21
|
+
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Theme } from "../../globalTypings";
|
|
2
2
|
export declare const invalidInputGroup: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const formLabel: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const formLabel: (theme: Theme, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
/** Prepend/append inside input group — same label look, no outer margin */
|
|
5
|
+
export declare const inputAdornment: (theme: Theme, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
4
6
|
export declare const activeFormLabel: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
7
|
export declare const errorFormLabel: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
6
8
|
export declare const inputGroup: (theme: Theme, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
@@ -17,6 +17,8 @@ export declare const notesHeader: import("@emotion/react").SerializedStyles;
|
|
|
17
17
|
export declare const notesIconWrapper: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
18
18
|
export declare const notesTitle: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
19
19
|
export declare const notesDescription: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
20
|
+
export declare const notesDescriptionList: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
21
|
+
export declare const notesDescriptionItem: import("@emotion/react").SerializedStyles;
|
|
20
22
|
export declare const notesIcon: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
21
23
|
export declare const notesArrow: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
22
24
|
export {};
|
|
@@ -4,6 +4,6 @@ export declare const radioContainer: (size?: number) => import("@emotion/react")
|
|
|
4
4
|
export declare const labelContainer: (mode: Theme, size?: number, isListView?: boolean) => import("@emotion/react").SerializedStyles;
|
|
5
5
|
export declare const disabledLabel: import("@emotion/react").SerializedStyles;
|
|
6
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;
|
|
7
|
+
export declare const checkmark: (mode: Theme, size?: number, isListView?: boolean, disabled?: boolean, selected?: boolean) => import("@emotion/react").SerializedStyles;
|
|
8
8
|
export declare const innerDot: (mode: Theme, size?: number, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
9
9
|
export declare const listViewStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -12,4 +12,4 @@ export declare const tertiary: (theme: Theme) => import("@emotion/react").Serial
|
|
|
12
12
|
export declare const tertiaryActive: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
13
13
|
export declare const borderRadius: import("@emotion/react").SerializedStyles;
|
|
14
14
|
export declare const secondaryDisabled: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
15
|
-
export declare const secondaryCornerAccent: import("@emotion/react").SerializedStyles;
|
|
15
|
+
export declare const secondaryCornerAccent: (theme: Theme) => import("@emotion/react").SerializedStyles;
|