zebpay-ui 0.0.119 → 0.0.121
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 +2 -0
- package/dist/cjs/components/Accordion/style.d.ts +2 -1
- package/dist/cjs/components/AccordionV2/style.d.ts +4 -4
- package/dist/cjs/components/Avatar/typings.d.ts +4 -2
- package/dist/cjs/components/CalendarPicker/styles.d.ts +4 -3
- package/dist/cjs/components/CalendarPicker/typings.d.ts +2 -0
- package/dist/cjs/components/Card/index.d.ts +2 -0
- package/dist/cjs/components/Card/style.d.ts +3 -2
- package/dist/cjs/components/Checkbox/styles.d.ts +4 -3
- package/dist/cjs/components/Checkbox/typings.d.ts +2 -2
- package/dist/cjs/components/Divider/index.d.ts +2 -0
- package/dist/cjs/components/Divider/styles.d.ts +2 -1
- package/dist/cjs/components/IconBox/index.d.ts +2 -0
- package/dist/cjs/components/IconBox/styles.d.ts +3 -2
- package/dist/cjs/components/Input/typings.d.ts +1 -0
- package/dist/cjs/components/InputDropDown/styles.d.ts +10 -9
- package/dist/cjs/components/InputDropDown/typings.d.ts +2 -0
- package/dist/cjs/components/MobileBottomDrawer/index.d.ts +2 -1
- package/dist/cjs/components/MobileBottomDrawer/styles.d.ts +3 -2
- package/dist/cjs/components/MobileCalenderPicker/styles.d.ts +4 -2
- package/dist/cjs/components/Pagination/styles.d.ts +6 -5
- package/dist/cjs/components/Pagination/typings.d.ts +2 -0
- package/dist/cjs/components/PinInput/style.d.ts +4 -3
- package/dist/cjs/components/PinInput/typing.d.ts +2 -0
- package/dist/cjs/components/Popper/styles.d.ts +3 -2
- package/dist/cjs/components/Popper/typings.d.ts +2 -0
- package/dist/cjs/components/Switch/index.d.ts +2 -0
- package/dist/cjs/components/Switch/styles.d.ts +4 -3
- package/dist/cjs/components/Tags/index.d.ts +2 -2
- package/dist/cjs/components/Virtualize/index.d.ts +1 -1
- package/dist/cjs/components/Virtualize/styles.d.ts +4 -3
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.js +31 -31
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/styles/colors.d.ts +2 -0
- package/dist/cjs/theme/ZThemeProvider.d.ts +16 -0
- package/dist/cjs/theme/componentColors.d.ts +13 -0
- package/dist/cjs/theme/index.d.ts +5 -0
- package/dist/cjs/theme/types.d.ts +118 -0
- package/dist/cjs/theme/zColorScheme.d.ts +11 -0
- package/dist/cjs/theme/zColorTokens.d.ts +33 -0
- package/dist/cjs/theme/zColors.d.ts +93 -0
- package/dist/esm/components/Accordion/index.d.ts +2 -0
- package/dist/esm/components/Accordion/style.d.ts +2 -1
- package/dist/esm/components/AccordionV2/style.d.ts +4 -4
- package/dist/esm/components/Avatar/typings.d.ts +4 -2
- package/dist/esm/components/CalendarPicker/styles.d.ts +4 -3
- package/dist/esm/components/CalendarPicker/typings.d.ts +2 -0
- package/dist/esm/components/Card/index.d.ts +2 -0
- package/dist/esm/components/Card/style.d.ts +3 -2
- package/dist/esm/components/Checkbox/styles.d.ts +4 -3
- package/dist/esm/components/Checkbox/typings.d.ts +2 -2
- package/dist/esm/components/Divider/index.d.ts +2 -0
- package/dist/esm/components/Divider/styles.d.ts +2 -1
- package/dist/esm/components/IconBox/index.d.ts +2 -0
- package/dist/esm/components/IconBox/styles.d.ts +3 -2
- package/dist/esm/components/Input/typings.d.ts +1 -0
- package/dist/esm/components/InputDropDown/styles.d.ts +10 -9
- package/dist/esm/components/InputDropDown/typings.d.ts +2 -0
- package/dist/esm/components/MobileBottomDrawer/index.d.ts +2 -1
- package/dist/esm/components/MobileBottomDrawer/styles.d.ts +3 -2
- package/dist/esm/components/MobileCalenderPicker/styles.d.ts +4 -2
- package/dist/esm/components/Pagination/styles.d.ts +6 -5
- package/dist/esm/components/Pagination/typings.d.ts +2 -0
- package/dist/esm/components/PinInput/style.d.ts +4 -3
- package/dist/esm/components/PinInput/typing.d.ts +2 -0
- package/dist/esm/components/Popper/styles.d.ts +3 -2
- package/dist/esm/components/Popper/typings.d.ts +2 -0
- package/dist/esm/components/Switch/index.d.ts +2 -0
- package/dist/esm/components/Switch/styles.d.ts +4 -3
- package/dist/esm/components/Tags/index.d.ts +2 -2
- package/dist/esm/components/Virtualize/index.d.ts +1 -1
- package/dist/esm/components/Virtualize/styles.d.ts +4 -3
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +31 -31
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/styles/colors.d.ts +2 -0
- package/dist/esm/theme/ZThemeProvider.d.ts +16 -0
- package/dist/esm/theme/componentColors.d.ts +13 -0
- package/dist/esm/theme/index.d.ts +5 -0
- package/dist/esm/theme/types.d.ts +118 -0
- package/dist/esm/theme/zColorScheme.d.ts +11 -0
- package/dist/esm/theme/zColorTokens.d.ts +33 -0
- package/dist/esm/theme/zColors.d.ts +93 -0
- package/package.json +1 -1
|
@@ -88,6 +88,8 @@ declare const colors: {
|
|
|
88
88
|
Zeb_Effects_Top_Shadow_Light: string;
|
|
89
89
|
Zeb_BG_Mask: string;
|
|
90
90
|
Zeb_Effects_Shadow_Light: string;
|
|
91
|
+
/** Figma V4 - Bottom area (extraDark bottom sheet) */
|
|
92
|
+
Zeb_Effects_Shadow_Extra_Dark_Bottom: string;
|
|
91
93
|
Zeb_Effects_Shadow_Input: string;
|
|
92
94
|
Zeb_Effects_Shadow_List: string;
|
|
93
95
|
Zeb_Secondary_Subtext: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** @jsxImportSource @emotion/react */
|
|
2
|
+
import React from "react";
|
|
3
|
+
import type { Theme } from "../globalTypings";
|
|
4
|
+
import "./theme.css";
|
|
5
|
+
import { ZColorScheme } from "./types";
|
|
6
|
+
export interface ThemeContextValue {
|
|
7
|
+
theme: Theme;
|
|
8
|
+
zColorScheme: ZColorScheme;
|
|
9
|
+
}
|
|
10
|
+
export declare const ThemeContext: React.Context<ThemeContextValue | null>;
|
|
11
|
+
export declare function useZTheme(): ThemeContextValue;
|
|
12
|
+
export interface ZThemeProviderProps {
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
theme?: Theme;
|
|
15
|
+
}
|
|
16
|
+
export declare function ZThemeProvider({ children, theme, }: ZThemeProviderProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Theme } from "../globalTypings";
|
|
2
|
+
export declare function getPanelBackground(mode: Theme): string;
|
|
3
|
+
export declare function getFieldBackground(mode: Theme): string;
|
|
4
|
+
export declare function getInputSurfaceBackground(mode: Theme): string;
|
|
5
|
+
export declare function getHoverBackground(mode: Theme): string;
|
|
6
|
+
export declare function getPrimaryTextColor(mode: Theme): string;
|
|
7
|
+
export declare function getMutedTextColor(mode: Theme): string;
|
|
8
|
+
export declare function getAccentTextColor(mode: Theme): string;
|
|
9
|
+
export declare function getSubtleBorderColor(mode: Theme): string;
|
|
10
|
+
export declare function getCardBorderColor(mode: Theme): string;
|
|
11
|
+
export declare function getDividerColor(mode: Theme): string;
|
|
12
|
+
export declare function getShimmerBackground(mode: Theme): string;
|
|
13
|
+
export declare function getIconBoxBackground(mode: Theme): string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ZThemeProvider, useZTheme, ThemeContext } from "./ZThemeProvider";
|
|
2
|
+
export type { ZThemeProviderProps, ThemeContextValue } from "./ZThemeProvider";
|
|
3
|
+
export { lightColorScheme, darkColorScheme, extraDarkColorScheme, getZColorSchemeForTheme, ZColors, ZGradientConst, } from "./zColorScheme";
|
|
4
|
+
export { zColorTokens } from "./zColorTokens";
|
|
5
|
+
export type { ZColorScheme } from "./types";
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
export interface TabColorScheme {
|
|
2
|
+
primaryActiveText: string;
|
|
3
|
+
primaryActiveFill: string;
|
|
4
|
+
primaryDefaultFill: string;
|
|
5
|
+
primaryDefaultText: string;
|
|
6
|
+
primaryStroke: string;
|
|
7
|
+
secondaryActiveTab: string;
|
|
8
|
+
secondaryDefaultTab: string;
|
|
9
|
+
tertiaryFill: string;
|
|
10
|
+
tertiaryText: string;
|
|
11
|
+
tertiaryStroke: string;
|
|
12
|
+
tertiaryDefaultFill: string;
|
|
13
|
+
tertiaryDefaultText: string;
|
|
14
|
+
tertiaryDefaultStroke: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ZColorScheme {
|
|
17
|
+
primary: {
|
|
18
|
+
title: string;
|
|
19
|
+
white: string;
|
|
20
|
+
};
|
|
21
|
+
secondary: {
|
|
22
|
+
subtext: string;
|
|
23
|
+
disabled: string;
|
|
24
|
+
};
|
|
25
|
+
background: {
|
|
26
|
+
bottomSheetScrim: string;
|
|
27
|
+
bottomSheetBar: string;
|
|
28
|
+
bottomSheetBg: string;
|
|
29
|
+
bottomSheetFg: string;
|
|
30
|
+
bottomSheetStroke: string;
|
|
31
|
+
fullScreenBg: string;
|
|
32
|
+
fullScreenFg01: string;
|
|
33
|
+
fullScreenFg02: string;
|
|
34
|
+
};
|
|
35
|
+
icon: {
|
|
36
|
+
primary: string;
|
|
37
|
+
secondary: string;
|
|
38
|
+
primaryTap: string;
|
|
39
|
+
secondaryTap: string;
|
|
40
|
+
header: string;
|
|
41
|
+
disabled: string;
|
|
42
|
+
success: string;
|
|
43
|
+
error: string;
|
|
44
|
+
pending: string;
|
|
45
|
+
noChange: string;
|
|
46
|
+
illustration: string;
|
|
47
|
+
fiat: string;
|
|
48
|
+
rnr: string;
|
|
49
|
+
navGrey: string;
|
|
50
|
+
};
|
|
51
|
+
functional: {
|
|
52
|
+
green: string;
|
|
53
|
+
green02: string;
|
|
54
|
+
red: string;
|
|
55
|
+
red02: string;
|
|
56
|
+
blue: string;
|
|
57
|
+
yellow: string;
|
|
58
|
+
grey: string;
|
|
59
|
+
greenTrans: string;
|
|
60
|
+
redTrans: string;
|
|
61
|
+
blueTrans: string;
|
|
62
|
+
yellowTrans: string;
|
|
63
|
+
greyTrans: string;
|
|
64
|
+
redTag: string;
|
|
65
|
+
greenTag: string;
|
|
66
|
+
greyTag: string;
|
|
67
|
+
};
|
|
68
|
+
toast: {
|
|
69
|
+
successFill: string;
|
|
70
|
+
successStroke: string;
|
|
71
|
+
successTitle: string;
|
|
72
|
+
successSubText: string;
|
|
73
|
+
infoFill: string;
|
|
74
|
+
infoStroke: string;
|
|
75
|
+
infoTitle: string;
|
|
76
|
+
infoSubText: string;
|
|
77
|
+
errorFill: string;
|
|
78
|
+
errorStroke: string;
|
|
79
|
+
errorTitle: string;
|
|
80
|
+
errorSubText: string;
|
|
81
|
+
};
|
|
82
|
+
stroke: {
|
|
83
|
+
card: string;
|
|
84
|
+
separator: string;
|
|
85
|
+
header: string;
|
|
86
|
+
bottomSheet: string;
|
|
87
|
+
gradientCard: string;
|
|
88
|
+
};
|
|
89
|
+
tag: {
|
|
90
|
+
greenStroke: string;
|
|
91
|
+
greenFilled: string;
|
|
92
|
+
greenTagText: string;
|
|
93
|
+
greyFilled: string;
|
|
94
|
+
greyTagText: string;
|
|
95
|
+
redStroke: string;
|
|
96
|
+
redFilled: string;
|
|
97
|
+
redTagText: string;
|
|
98
|
+
yellowStroke: string;
|
|
99
|
+
yellowTagText: string;
|
|
100
|
+
yellowTagTextDark: string;
|
|
101
|
+
greyTagStroke: string;
|
|
102
|
+
blueStroke: string;
|
|
103
|
+
blueTagText: string;
|
|
104
|
+
};
|
|
105
|
+
header: {
|
|
106
|
+
header: string;
|
|
107
|
+
listing: string;
|
|
108
|
+
table: string;
|
|
109
|
+
};
|
|
110
|
+
input: {
|
|
111
|
+
default: string;
|
|
112
|
+
disabled: string;
|
|
113
|
+
defaultStroke: string;
|
|
114
|
+
defaultVariant: string;
|
|
115
|
+
};
|
|
116
|
+
overlay: string;
|
|
117
|
+
tab: TabColorScheme;
|
|
118
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Theme } from "../globalTypings";
|
|
2
|
+
import type { ZColorScheme } from "./types";
|
|
3
|
+
import { ZColors, ZGradientConst } from "./zColors";
|
|
4
|
+
/** Mobile v2 ZLightColorScheme */
|
|
5
|
+
export declare const lightColorScheme: ZColorScheme;
|
|
6
|
+
/** Mobile v2 ZDarkColorScheme — web blue / component `mode="dark"` */
|
|
7
|
+
export declare const darkColorScheme: ZColorScheme;
|
|
8
|
+
/** Mobile v2 ZDarkColorSchemeV4 — mobile dark / component `mode="extraDark"` */
|
|
9
|
+
export declare const extraDarkColorScheme: ZColorScheme;
|
|
10
|
+
export declare function getZColorSchemeForTheme(theme: Theme): ZColorScheme;
|
|
11
|
+
export { ZColors, ZGradientConst };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** CSS custom property references for gradual component migration. */
|
|
2
|
+
export declare const zColorTokens: {
|
|
3
|
+
readonly primary: {
|
|
4
|
+
readonly title: "var(--color-primary-title)";
|
|
5
|
+
readonly white: "var(--color-primary-white)";
|
|
6
|
+
};
|
|
7
|
+
readonly secondary: {
|
|
8
|
+
readonly subtext: "var(--color-secondary-subtext)";
|
|
9
|
+
readonly disabled: "var(--color-secondary-disabled)";
|
|
10
|
+
};
|
|
11
|
+
readonly background: {
|
|
12
|
+
readonly fullScreenBg: "var(--color-background-full-screen)";
|
|
13
|
+
readonly fullScreenFg01: "var(--color-background-foreground-01)";
|
|
14
|
+
readonly fullScreenFg02: "var(--color-background-foreground-02)";
|
|
15
|
+
readonly bottomSheetBg: "var(--color-background-bottom-sheet-bg)";
|
|
16
|
+
readonly bottomSheetFg: "var(--color-background-bottom-sheet-fg)";
|
|
17
|
+
};
|
|
18
|
+
readonly input: {
|
|
19
|
+
readonly default: "var(--color-input-default)";
|
|
20
|
+
readonly disabled: "var(--color-input-disabled)";
|
|
21
|
+
};
|
|
22
|
+
readonly functional: {
|
|
23
|
+
readonly green: "var(--color-functional-green)";
|
|
24
|
+
readonly red: "var(--color-functional-red)";
|
|
25
|
+
readonly blue: "var(--color-functional-blue)";
|
|
26
|
+
readonly yellow: "var(--color-functional-yellow)";
|
|
27
|
+
};
|
|
28
|
+
readonly stroke: {
|
|
29
|
+
readonly separator: "var(--color-stroke-separator)";
|
|
30
|
+
readonly card: "var(--color-stroke-card)";
|
|
31
|
+
};
|
|
32
|
+
readonly overlay: "var(--color-overlay)";
|
|
33
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Primitive palette mirrored from mobile v2 design system:
|
|
3
|
+
* zebpay_multiplatform/design/v2/.../znew/color/ZColors.kt
|
|
4
|
+
*
|
|
5
|
+
* Token suffix "V4" in some names matches the Kotlin source (dark palette revision),
|
|
6
|
+
* not the design system version — the design system module is v2.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ZColors: {
|
|
9
|
+
readonly Black: "#000000";
|
|
10
|
+
readonly White: "#FFFFFF";
|
|
11
|
+
readonly Transparent: "transparent";
|
|
12
|
+
readonly Overlay: "#660C0C24";
|
|
13
|
+
readonly Blue01: "#222245";
|
|
14
|
+
readonly Blue02: "#181837";
|
|
15
|
+
readonly Blue03: "#338FFF";
|
|
16
|
+
readonly Blue04: "#C0C0EE";
|
|
17
|
+
readonly Blue05: "#E9EFF6";
|
|
18
|
+
readonly Blue06: "#33338FFF";
|
|
19
|
+
readonly Blue07: "#EEF5FF";
|
|
20
|
+
readonly Blue08: "#33C0C0EE";
|
|
21
|
+
readonly Blue09: "#151532";
|
|
22
|
+
readonly Blue10: "#D9EAFF";
|
|
23
|
+
readonly Blue11: "#0A338FFF";
|
|
24
|
+
readonly Blue12: "#EBF4FF";
|
|
25
|
+
readonly Grey01: "#C2C2DD";
|
|
26
|
+
readonly Grey02: "#34345A";
|
|
27
|
+
readonly Grey03: "#6B6B6B";
|
|
28
|
+
readonly Grey04: "#33C0C0EE";
|
|
29
|
+
readonly Grey05: "#E1E3E6";
|
|
30
|
+
readonly Grey06: "#C2C2C8";
|
|
31
|
+
readonly Grey07: "#B5B5D3";
|
|
32
|
+
readonly Green01: "#1ECAA2";
|
|
33
|
+
readonly Green02: "#31826F";
|
|
34
|
+
readonly Green03: "#212F4C";
|
|
35
|
+
readonly Green04: "#331ECAA2";
|
|
36
|
+
readonly Green06: "#00A37D";
|
|
37
|
+
readonly Red01: "#EA6161";
|
|
38
|
+
readonly Red02: "#BF5555";
|
|
39
|
+
readonly Red03: "#302544";
|
|
40
|
+
readonly Red04: "#33EA6161";
|
|
41
|
+
readonly Red06: "#DC5454";
|
|
42
|
+
readonly Yellow01: "#F9C35C";
|
|
43
|
+
readonly Yellow02: "#FFB100";
|
|
44
|
+
readonly Yellow03: "#2A273B";
|
|
45
|
+
readonly Yellow04: "#33F9C35C";
|
|
46
|
+
readonly Yellow05: "#986405";
|
|
47
|
+
readonly PrimaryTitleV4: "#F8F8F8";
|
|
48
|
+
readonly PrimaryWhiteV4: "#F8F8F8";
|
|
49
|
+
readonly SurfaceCardV4: "#1D212B";
|
|
50
|
+
readonly BottomSheetBgBar: "#313337";
|
|
51
|
+
readonly SecondarySubtextV4: "#C0C7DC";
|
|
52
|
+
readonly SecondaryDisabledV4: "#5F6267";
|
|
53
|
+
readonly SurfaceElevatedV4: "#26293E";
|
|
54
|
+
readonly GreenV4: "#0FC985";
|
|
55
|
+
readonly GreenTransBgV4: "#0E362F";
|
|
56
|
+
readonly GreyTransBgV4: "#14161C";
|
|
57
|
+
readonly RedTagTextV4: "#FF4848";
|
|
58
|
+
readonly IconTapSelectedV4: "#6A93FF";
|
|
59
|
+
readonly IconSecondaryV4: "#8B95B0";
|
|
60
|
+
readonly IconTapableSelectedV4: "#5786FF";
|
|
61
|
+
readonly InputDefaultV4: "#14161C";
|
|
62
|
+
readonly InputDisabledStrokeV4: "#5F6267";
|
|
63
|
+
readonly FullScreenBg01: "#1D212B";
|
|
64
|
+
readonly ToastSuccessStrokeV4: "#B3038153";
|
|
65
|
+
readonly ToastInfoStrokeV4: "#B3B09600";
|
|
66
|
+
readonly ToastErrorStrokeV4: "#B3C94444";
|
|
67
|
+
readonly TagYellowStrokeV4: "#FFF15A";
|
|
68
|
+
readonly TagYellowTextV4: "#FFF15A";
|
|
69
|
+
readonly TagGreyTextV4: "#C4C4C4";
|
|
70
|
+
readonly TagGreyFilledV4: "#313337";
|
|
71
|
+
readonly HeaderSecondaryFillV4: "#14161C";
|
|
72
|
+
readonly TabAccentV4: "#4660FE";
|
|
73
|
+
readonly FunctionalGreenV4: "#038153";
|
|
74
|
+
readonly FunctionalRedV4: "#E75252";
|
|
75
|
+
readonly FunctionalRed02V4: "#C94444";
|
|
76
|
+
readonly FunctionalYellowV4: "#B09600";
|
|
77
|
+
readonly FunctionalRedTransV4: "#3C1A23";
|
|
78
|
+
readonly FunctionalYellowTransV4: "#413A21";
|
|
79
|
+
readonly FunctionalBlueTransV4: "#182943";
|
|
80
|
+
readonly SuccessIconV4: "#15B178";
|
|
81
|
+
readonly ErrorIconV4: "#B84242";
|
|
82
|
+
readonly TabSecondaryV4: "#6A93FF";
|
|
83
|
+
readonly SheetScrimColor: "#F7252525";
|
|
84
|
+
};
|
|
85
|
+
/** Mirrored from mobile v2 ZGradientConst */
|
|
86
|
+
export declare const ZGradientConst: {
|
|
87
|
+
gradient1: readonly ["#5D7BFE", "#0974FF"];
|
|
88
|
+
gradient1V4: readonly ["#5786FF", "#3751FE"];
|
|
89
|
+
white: readonly ["#FFFFFF", "#FFFFFF"];
|
|
90
|
+
};
|
|
91
|
+
export declare const linearGradient: (from: string, to: string, angle?: string) => string;
|
|
92
|
+
export declare const solidGradient: (color: string) => string;
|
|
93
|
+
export declare const gradientFromConst: (colors: readonly [string, string]) => string;
|