zebpay-ui 0.0.121 → 0.0.123

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.
@@ -1,3 +1,4 @@
1
+ import { ZGradientPalette } from "./zGradients";
1
2
  export interface TabColorScheme {
2
3
  primaryActiveText: string;
3
4
  primaryActiveFill: string;
@@ -13,6 +14,20 @@ export interface TabColorScheme {
13
14
  tertiaryDefaultText: string;
14
15
  tertiaryDefaultStroke: string;
15
16
  }
17
+ export interface ZGradientScheme {
18
+ primary: string;
19
+ tertiary: string;
20
+ banner: string;
21
+ positiveGraph: string;
22
+ negativeGraph: string;
23
+ icon: string;
24
+ splash: string;
25
+ header: string;
26
+ bottomBar: string;
27
+ purple: string;
28
+ lightShimmer: string;
29
+ darkShimmer: string;
30
+ }
16
31
  export interface ZColorScheme {
17
32
  primary: {
18
33
  title: string;
@@ -115,4 +130,6 @@ export interface ZColorScheme {
115
130
  };
116
131
  overlay: string;
117
132
  tab: TabColorScheme;
133
+ gradients: ZGradientScheme;
134
+ gradientPalette: ZGradientPalette;
118
135
  }
@@ -1,6 +1,7 @@
1
1
  import { Theme } from "../globalTypings";
2
2
  import type { ZColorScheme } from "./types";
3
3
  import { ZColors, ZGradientConst } from "./zColors";
4
+ import { ZGradientColors, ZGradientConstCss } from "./zGradients";
4
5
  /** Mobile v2 ZLightColorScheme */
5
6
  export declare const lightColorScheme: ZColorScheme;
6
7
  /** Mobile v2 ZDarkColorScheme — web blue / component `mode="dark"` */
@@ -8,4 +9,5 @@ export declare const darkColorScheme: ZColorScheme;
8
9
  /** Mobile v2 ZDarkColorSchemeV4 — mobile dark / component `mode="extraDark"` */
9
10
  export declare const extraDarkColorScheme: ZColorScheme;
10
11
  export declare function getZColorSchemeForTheme(theme: Theme): ZColorScheme;
11
- export { ZColors, ZGradientConst };
12
+ export declare function toSchemeTheme(theme: Theme | "inputExtraDark"): Theme;
13
+ export { ZColors, ZGradientConst, ZGradientConstCss, ZGradientColors };
@@ -29,5 +29,12 @@ export declare const zColorTokens: {
29
29
  readonly separator: "var(--color-stroke-separator)";
30
30
  readonly card: "var(--color-stroke-card)";
31
31
  };
32
+ readonly gradients: {
33
+ readonly primary: "var(--gradient-primary)";
34
+ readonly banner: "var(--gradient-banner)";
35
+ readonly positiveGraph: "var(--gradient-positive-graph)";
36
+ readonly negativeGraph: "var(--gradient-negative-graph)";
37
+ readonly shimmer: "var(--gradient-shimmer)";
38
+ };
32
39
  readonly overlay: "var(--color-overlay)";
33
40
  };
@@ -0,0 +1,102 @@
1
+ /**
2
+ * Gradient tokens mirrored from mobile design system:
3
+ * - v2: zebpay_multiplatform/design/v2/.../znew/ZNewGradient.kt (ZGradientConst)
4
+ * - v3: zebpay_multiplatform/design/v3/.../color/ZGradientColors.kt
5
+ */
6
+ export type GradientStop = {
7
+ position: number;
8
+ color: string;
9
+ };
10
+ export declare const createLinearGradient: (stops: readonly GradientStop[], angle?: number) => string;
11
+ export declare const linearGradient: (from: string, to: string, angle?: string) => string;
12
+ export declare const solidGradient: (color: string) => string;
13
+ export declare const gradientFromConst: (colors: readonly [string, string]) => string;
14
+ /** Mobile v2 ZGradientConst — two-stop and multi-stop semantic gradients */
15
+ export declare const ZGradientConst: {
16
+ readonly gradient1: readonly ["#5D7BFE", "#0974FF"];
17
+ readonly gradient2: readonly ["#1B264B", "#4A62CA"];
18
+ readonly gradient3: readonly ["#4F7FF1", "#5484F6"];
19
+ readonly shimmer1: readonly ["#34345A", "#19193A"];
20
+ readonly shimmer2: readonly ["rgba(61, 61, 102, 0.92)", "#1E1E41"];
21
+ readonly shimmer3: readonly ["#E9EFF6", "rgba(207, 207, 207, 0)"];
22
+ readonly gradientBlue: readonly ["#4672DB", "#1C49B6"];
23
+ readonly gradient1V4: readonly ["#5786FF", "#3751FE"];
24
+ readonly gradientBlueV4: readonly ["#5786FF", "#3751FE"];
25
+ readonly gradient3V4: readonly ["#1D2A50", "#17203B"];
26
+ readonly shimmer1V4: readonly ["#252A34", "#313747"];
27
+ readonly shimmer2V4: readonly ["#252A34", "#313747"];
28
+ readonly white: readonly ["#FFFFFF", "#FFFFFF"];
29
+ readonly gradientGreen: string;
30
+ readonly gradientRed: string;
31
+ readonly gradientGreenV4: string;
32
+ readonly gradientRedV4: string;
33
+ readonly purple06: string;
34
+ readonly header: string;
35
+ readonly bottomBarLight: string;
36
+ readonly bottomBarV4: string;
37
+ };
38
+ /** Pre-built CSS strings for common v2 pairs */
39
+ export declare const ZGradientConstCss: {
40
+ readonly gradient1: string;
41
+ readonly gradient2: string;
42
+ readonly gradient3: string;
43
+ readonly shimmer1: string;
44
+ readonly shimmer2: string;
45
+ readonly shimmer3: string;
46
+ readonly gradientBlue: string;
47
+ readonly gradient1V4: string;
48
+ readonly gradientBlueV4: string;
49
+ readonly gradient3V4: string;
50
+ readonly shimmer1V4: string;
51
+ readonly shimmer2V4: string;
52
+ readonly white: string;
53
+ readonly gradientGreen: string;
54
+ readonly gradientRed: string;
55
+ readonly gradientGreenV4: string;
56
+ readonly gradientRedV4: string;
57
+ readonly purple06: string;
58
+ readonly header: string;
59
+ readonly bottomBarLight: string;
60
+ readonly bottomBarV4: string;
61
+ };
62
+ /**
63
+ * Mobile v3 ZGradientColors — full gradient palette as CSS strings.
64
+ */
65
+ export declare const ZGradientColors: {
66
+ readonly Primary01: string;
67
+ readonly Black01: string;
68
+ readonly Purple01: string;
69
+ readonly Blue01: string;
70
+ readonly Blue02: string;
71
+ readonly Blue03: string;
72
+ readonly Blue4: string;
73
+ readonly Green01: string;
74
+ readonly Green02: string;
75
+ readonly Green03: string;
76
+ readonly Green04: string;
77
+ readonly Green05: string;
78
+ readonly Red01: string;
79
+ readonly Red02: string;
80
+ readonly Red03: string;
81
+ readonly Red04: string;
82
+ readonly Red05: string;
83
+ readonly MiscGradientGreen01: string;
84
+ readonly MiscGradientGreen02: string;
85
+ readonly MiscGradientGreen03: string;
86
+ readonly MiscGradientRed01: string;
87
+ readonly MiscGradientRed02: string;
88
+ readonly MiscGradientRed03: string;
89
+ readonly MiscGradientWhite: string;
90
+ readonly Purple02: string;
91
+ readonly PurpleGradientO2: string;
92
+ readonly V4Gradient01: string;
93
+ readonly V4Gradient02: string;
94
+ readonly V4Gradient03: string;
95
+ readonly V4Gradient04: string;
96
+ readonly V4Gradient05: string;
97
+ readonly V4Gradient06: string;
98
+ readonly V4Gradient07: string;
99
+ readonly V4Gradient08: string;
100
+ readonly V4Gradient09: string;
101
+ };
102
+ export type ZGradientPalette = typeof ZGradientColors;
@@ -5,4 +5,4 @@ export declare const navigationLabel: import("@emotion/react").SerializedStyles;
5
5
  export declare const dateRangePicker: import("@emotion/react").SerializedStyles;
6
6
  export declare const lineBreak: (mode?: Theme) => import("@emotion/react").SerializedStyles;
7
7
  export declare const heading: (mode?: Theme) => import("@emotion/react").SerializedStyles;
8
- export declare const themedOverrides: (mode: Theme) => import("@emotion/react").SerializedStyles;
8
+ export declare const themedOverrides: (mode?: Theme) => import("@emotion/react").SerializedStyles;