zebpay-ui 0.0.121 → 0.0.122
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/style.d.ts +1 -1
- package/dist/cjs/components/AccordionV2/style.d.ts +4 -4
- package/dist/cjs/components/Button/styles.d.ts +6 -6
- package/dist/cjs/components/CalendarPicker/styles.d.ts +3 -3
- package/dist/cjs/components/Card/style.d.ts +2 -2
- package/dist/cjs/components/Checkbox/styles.d.ts +3 -3
- package/dist/cjs/components/Divider/styles.d.ts +1 -1
- package/dist/cjs/components/IconBox/styles.d.ts +2 -2
- package/dist/cjs/components/InputDropDown/styles.d.ts +9 -9
- package/dist/cjs/components/MobileBottomDrawer/styles.d.ts +2 -2
- package/dist/cjs/components/MobileCalenderPicker/styles.d.ts +3 -3
- package/dist/cjs/components/Pagination/styles.d.ts +5 -5
- package/dist/cjs/components/PinInput/style.d.ts +3 -3
- package/dist/cjs/components/Popper/styles.d.ts +2 -2
- package/dist/cjs/components/RadioGroup/styles.d.ts +3 -3
- package/dist/cjs/components/Select/styles.d.ts +1 -1
- package/dist/cjs/components/SidePanel/style.d.ts +4 -4
- package/dist/cjs/components/Switch/styles.d.ts +6 -6
- package/dist/cjs/components/Toast/styles.d.ts +7 -7
- package/dist/cjs/components/Virtualize/styles.d.ts +4 -3
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +27 -27
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/theme/componentColors.d.ts +1 -12
- package/dist/cjs/theme/index.d.ts +4 -2
- package/dist/cjs/theme/types.d.ts +17 -0
- package/dist/cjs/theme/zColorScheme.d.ts +3 -2
- package/dist/cjs/theme/zColorTokens.d.ts +7 -0
- package/dist/cjs/theme/zColors.d.ts +2 -9
- package/dist/cjs/theme/zGradients.d.ts +102 -0
- package/dist/esm/components/Accordion/style.d.ts +1 -1
- package/dist/esm/components/AccordionV2/style.d.ts +4 -4
- package/dist/esm/components/Button/styles.d.ts +6 -6
- package/dist/esm/components/CalendarPicker/styles.d.ts +3 -3
- package/dist/esm/components/Card/style.d.ts +2 -2
- package/dist/esm/components/Checkbox/styles.d.ts +3 -3
- package/dist/esm/components/Divider/styles.d.ts +1 -1
- package/dist/esm/components/IconBox/styles.d.ts +2 -2
- package/dist/esm/components/InputDropDown/styles.d.ts +9 -9
- package/dist/esm/components/MobileBottomDrawer/styles.d.ts +2 -2
- package/dist/esm/components/MobileCalenderPicker/styles.d.ts +3 -3
- package/dist/esm/components/Pagination/styles.d.ts +5 -5
- package/dist/esm/components/PinInput/style.d.ts +3 -3
- package/dist/esm/components/Popper/styles.d.ts +2 -2
- package/dist/esm/components/RadioGroup/styles.d.ts +3 -3
- package/dist/esm/components/Select/styles.d.ts +1 -1
- package/dist/esm/components/SidePanel/style.d.ts +4 -4
- package/dist/esm/components/Switch/styles.d.ts +6 -6
- package/dist/esm/components/Toast/styles.d.ts +7 -7
- package/dist/esm/components/Virtualize/styles.d.ts +4 -3
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +27 -27
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/componentColors.d.ts +1 -12
- package/dist/esm/theme/index.d.ts +4 -2
- package/dist/esm/theme/types.d.ts +17 -0
- package/dist/esm/theme/zColorScheme.d.ts +3 -2
- package/dist/esm/theme/zColorTokens.d.ts +7 -0
- package/dist/esm/theme/zColors.d.ts +2 -9
- package/dist/esm/theme/zGradients.d.ts +102 -0
- package/package.json +1 -1
|
@@ -1,13 +1,2 @@
|
|
|
1
1
|
import type { Theme } from "../globalTypings";
|
|
2
|
-
export declare function
|
|
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;
|
|
2
|
+
export declare function getPrimaryTextColor(theme: Theme): string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { ZThemeProvider, useZTheme, ThemeContext } from "./ZThemeProvider";
|
|
2
2
|
export type { ZThemeProviderProps, ThemeContextValue } from "./ZThemeProvider";
|
|
3
|
-
export { lightColorScheme, darkColorScheme, extraDarkColorScheme, getZColorSchemeForTheme, ZColors, ZGradientConst, } from "./zColorScheme";
|
|
3
|
+
export { lightColorScheme, darkColorScheme, extraDarkColorScheme, getZColorSchemeForTheme, ZColors, ZGradientConst, ZGradientColors, } from "./zColorScheme";
|
|
4
|
+
export { createLinearGradient, linearGradient, solidGradient, gradientFromConst, } from "./zGradients";
|
|
5
|
+
export type { GradientStop, ZGradientPalette } from "./zGradients";
|
|
4
6
|
export { zColorTokens } from "./zColorTokens";
|
|
5
|
-
export type { ZColorScheme } from "./types";
|
|
7
|
+
export type { ZColorScheme, ZGradientScheme } from "./types";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { 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,6 @@
|
|
|
1
1
|
import { Theme } from "../globalTypings";
|
|
2
2
|
import type { ZColorScheme } from "./types";
|
|
3
|
-
import { ZColors, ZGradientConst } from "./zColors";
|
|
3
|
+
import { ZColors, ZGradientConst, ZGradientConstCss, ZGradientColors } from "./zColors";
|
|
4
4
|
/** Mobile v2 ZLightColorScheme */
|
|
5
5
|
export declare const lightColorScheme: ZColorScheme;
|
|
6
6
|
/** Mobile v2 ZDarkColorScheme — web blue / component `mode="dark"` */
|
|
@@ -8,4 +8,5 @@ export declare const darkColorScheme: ZColorScheme;
|
|
|
8
8
|
/** Mobile v2 ZDarkColorSchemeV4 — mobile dark / component `mode="extraDark"` */
|
|
9
9
|
export declare const extraDarkColorScheme: ZColorScheme;
|
|
10
10
|
export declare function getZColorSchemeForTheme(theme: Theme): ZColorScheme;
|
|
11
|
-
export
|
|
11
|
+
export declare function toSchemeTheme(theme: Theme | "inputExtraDark"): Theme;
|
|
12
|
+
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
|
};
|
|
@@ -82,12 +82,5 @@ export declare const ZColors: {
|
|
|
82
82
|
readonly TabSecondaryV4: "#6A93FF";
|
|
83
83
|
readonly SheetScrimColor: "#F7252525";
|
|
84
84
|
};
|
|
85
|
-
|
|
86
|
-
export
|
|
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;
|
|
85
|
+
export { ZGradientConst, ZGradientConstCss, ZGradientColors, createLinearGradient, linearGradient, solidGradient, gradientFromConst, } from "./zGradients";
|
|
86
|
+
export type { GradientStop } from "./zGradients";
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Theme } from "../../globalTypings";
|
|
2
|
-
export declare const accordionWrapper: (isOpen: boolean,
|
|
2
|
+
export declare const accordionWrapper: (isOpen: boolean, theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const accordionTitle: import("@emotion/react").SerializedStyles;
|
|
4
4
|
export declare const accordionIcon: import("@emotion/react").SerializedStyles;
|
|
5
5
|
export declare const accordionCollapsed: import("@emotion/react").SerializedStyles;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Theme
|
|
2
|
-
export declare const accordionWrapper: (isOpen: boolean,
|
|
3
|
-
export declare const accordionTitle: (
|
|
1
|
+
import type { Theme } from "../../globalTypings";
|
|
2
|
+
export declare const accordionWrapper: (isOpen: boolean, theme: Theme, disableBorder: boolean) => import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const accordionTitle: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
4
|
export declare const accordionIcon: import("@emotion/react").SerializedStyles;
|
|
5
5
|
export declare const accordionCollapsed: import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const accordionContent: (isOpen: boolean,
|
|
6
|
+
export declare const accordionContent: (isOpen: boolean, theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
7
7
|
export declare const iconStyle: (isOpen: boolean) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Theme } from "../../globalTypings";
|
|
2
2
|
export declare const general: (width?: number) => import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const linkButton: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const primaryButton: (
|
|
5
|
-
export declare const secondaryButton: (
|
|
6
|
-
export declare const specialButton: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const linkButton: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const primaryButton: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const secondaryButton: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const specialButton: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
7
7
|
export declare const specialButtonText: import("@emotion/react").SerializedStyles;
|
|
8
8
|
export declare const specialButtonSmText: import("@emotion/react").SerializedStyles;
|
|
9
|
-
export declare const tertiaryButton: import("@emotion/react").SerializedStyles;
|
|
9
|
+
export declare const tertiaryButton: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
10
10
|
export declare const tertiaryButtonText: import("@emotion/react").SerializedStyles;
|
|
11
|
-
export declare const tabButton: import("@emotion/react").SerializedStyles;
|
|
11
|
+
export declare const tabButton: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
12
12
|
export declare const disabledButton: import("@emotion/react").SerializedStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Theme } from "../../globalTypings";
|
|
2
2
|
export declare const alignNav: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const monthArrow: (
|
|
4
|
-
export declare const navigationLabel: (
|
|
5
|
-
export declare const dateRangePicker: (
|
|
3
|
+
export declare const monthArrow: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const navigationLabel: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const dateRangePicker: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Theme } from "../../globalTypings";
|
|
2
|
-
export declare const cardStyle: (
|
|
2
|
+
export declare const cardStyle: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const cardHeader: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const cardBody: (
|
|
4
|
+
export declare const cardBody: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Theme } from "../../globalTypings";
|
|
2
2
|
export declare const checkboxContainer: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const labelContainer: (
|
|
3
|
+
export declare const labelContainer: (theme: Theme, alignTop?: boolean) => import("@emotion/react").SerializedStyles;
|
|
4
4
|
export declare const disabledLabel: import("@emotion/react").SerializedStyles;
|
|
5
5
|
export declare const input: import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const checkCheckmark: (
|
|
6
|
+
export declare const checkCheckmark: (theme: Theme, indeterminate?: boolean) => import("@emotion/react").SerializedStyles;
|
|
7
7
|
export declare const checkLabel: import("@emotion/react").SerializedStyles;
|
|
8
8
|
export declare const checkComponent: import("@emotion/react").SerializedStyles;
|
|
9
|
-
export declare const checkmark: (
|
|
9
|
+
export declare const checkmark: (theme: Theme, indeterminate?: boolean, alignTop?: boolean) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Theme } from "../../globalTypings";
|
|
2
2
|
import { DividerProps } from ".";
|
|
3
|
-
export declare const divider: (props: DividerProps,
|
|
3
|
+
export declare const divider: (props: DividerProps, theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Theme } from "../../globalTypings";
|
|
2
2
|
import { IconBoxProps } from ".";
|
|
3
|
-
export declare const container: (data: IconBoxProps,
|
|
4
|
-
export declare const withHoverStyle: (
|
|
3
|
+
export declare const container: (data: IconBoxProps, theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const withHoverStyle: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { Theme } from "../../globalTypings";
|
|
2
2
|
export declare const wrapper: import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const selectOverlay: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const icon: (
|
|
4
|
+
export declare const icon: (theme: Theme, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
5
5
|
export declare const input: import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const selectedElement: (open: boolean,
|
|
7
|
-
export declare const options: (
|
|
8
|
-
export declare const optionItem: (
|
|
9
|
-
export declare const optionsWrapper: (
|
|
10
|
-
export declare const displayComponent: (highlight: boolean,
|
|
11
|
-
export declare const main: (isOpen: boolean,
|
|
12
|
-
export declare const dropDown: (
|
|
6
|
+
export declare const selectedElement: (open: boolean, theme: Theme, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const options: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const optionItem: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
9
|
+
export declare const optionsWrapper: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
10
|
+
export declare const displayComponent: (highlight: boolean, theme: Theme, disabled: boolean) => import("@emotion/react").SerializedStyles;
|
|
11
|
+
export declare const main: (isOpen: boolean, theme: Theme, disabled?: boolean, isError?: boolean) => import("@emotion/react").SerializedStyles;
|
|
12
|
+
export declare const dropDown: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
13
13
|
export declare const optionsList: (isSearchable?: boolean) => import("@emotion/react").SerializedStyles;
|
|
14
14
|
export declare const inputSearch: import("@emotion/react").SerializedStyles;
|
|
15
15
|
export declare const dropdown: (posX: number, posY: number) => import("@emotion/react").SerializedStyles;
|
|
16
|
-
export declare const contentHeading: (
|
|
16
|
+
export declare const contentHeading: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
17
17
|
export declare const pillOptions: import("@emotion/react").SerializedStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Theme } from "../../globalTypings";
|
|
2
|
-
export declare const bottomDrawer: (
|
|
2
|
+
export declare const bottomDrawer: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const backdrop: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const dragHandle: (
|
|
4
|
+
export declare const dragHandle: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -3,6 +3,6 @@ export declare const alignNav: import("@emotion/react").SerializedStyles;
|
|
|
3
3
|
export declare const monthArrow: import("@emotion/react").SerializedStyles;
|
|
4
4
|
export declare const navigationLabel: import("@emotion/react").SerializedStyles;
|
|
5
5
|
export declare const dateRangePicker: import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const lineBreak: (
|
|
7
|
-
export declare const heading: (
|
|
8
|
-
export declare const themedOverrides: (
|
|
6
|
+
export declare const lineBreak: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const heading: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const themedOverrides: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Theme } from "../../globalTypings";
|
|
2
|
-
export declare const smallCardWithBg: (
|
|
3
|
-
export declare const arrow: (
|
|
4
|
-
export declare const pageLink: (
|
|
5
|
-
export declare const active: (
|
|
6
|
-
export declare const pageItem: (
|
|
2
|
+
export declare const smallCardWithBg: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const arrow: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const pageLink: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const active: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const pageItem: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Theme } from "../../globalTypings";
|
|
2
2
|
export declare const pins: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const label: (
|
|
3
|
+
export declare const label: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
4
|
export declare const inputFocused: (focused: boolean, inValid: boolean) => import("@emotion/react").SerializedStyles;
|
|
5
5
|
export declare const invalidPins: import("@emotion/react").SerializedStyles;
|
|
6
6
|
export declare const inputContainer: import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const input: (
|
|
7
|
+
export declare const input: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
8
8
|
export declare const disabledInput: import("@emotion/react").SerializedStyles;
|
|
9
|
-
export declare const maskStyle: (
|
|
9
|
+
export declare const maskStyle: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Theme } from "../../globalTypings";
|
|
2
2
|
export declare const container: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const popup: (
|
|
4
|
-
export declare const closeButton: (
|
|
3
|
+
export declare const popup: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const closeButton: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
5
|
export declare const selectOverlay: import("@emotion/react").SerializedStyles;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Theme } from "../../globalTypings";
|
|
2
2
|
export declare const container: import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const input: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const checkmark: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const radioGroup: (
|
|
4
|
+
export declare const checkmark: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const radioGroup: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
6
6
|
export declare const marginRight: import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const defaultState: import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const defaultState: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Theme } from "../../globalTypings";
|
|
1
|
+
import type { Theme } from "../../globalTypings";
|
|
2
2
|
export declare const wrapper: import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const button: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
4
|
export declare const active: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Theme } from "../../globalTypings";
|
|
2
2
|
export type SidePanelPlacement = "left" | "right";
|
|
3
3
|
export declare const wrapper: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const overlay: (
|
|
5
|
-
export declare const sidePanel: (placement: SidePanelPlacement, width: number,
|
|
4
|
+
export declare const overlay: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const sidePanel: (placement: SidePanelPlacement, width: number, theme?: Theme) => import("@emotion/react").SerializedStyles | undefined;
|
|
6
6
|
export declare const sidePanelOpen: import("@emotion/react").SerializedStyles;
|
|
7
7
|
export declare const header: import("@emotion/react").SerializedStyles;
|
|
8
8
|
export declare const titleStyle: import("@emotion/react").SerializedStyles;
|
|
9
|
-
export declare const headerCTA: (
|
|
10
|
-
export declare const headerCloseCTA: (
|
|
9
|
+
export declare const headerCTA: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
10
|
+
export declare const headerCloseCTA: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { Theme } from "../../globalTypings";
|
|
2
2
|
export declare const switchContainer: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const regularSlider: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const regularCheckedSlider: (size?: "small" | "medium") => import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const regularSlider: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const regularCheckedSlider: (theme?: Theme, size?: "small" | "medium") => import("@emotion/react").SerializedStyles;
|
|
5
5
|
export declare const switchBar: (size?: "small" | "medium", isLocked?: boolean) => import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const checkedSlider: (size?: "small" | "medium", isLocked?: boolean,
|
|
7
|
-
export declare const slider: (size?: "small" | "medium", isLocked?: boolean,
|
|
6
|
+
export declare const checkedSlider: (size?: "small" | "medium", isLocked?: boolean, theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const slider: (size?: "small" | "medium", isLocked?: boolean, theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
8
8
|
export declare const round: (size?: "small" | "medium") => import("@emotion/react").SerializedStyles;
|
|
9
9
|
export declare const circle: (size?: "small" | "medium", checked?: boolean) => import("@emotion/react").SerializedStyles;
|
|
10
|
-
export declare const switchLabel: (
|
|
10
|
+
export declare const switchLabel: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
11
11
|
export declare const labelHidden: import("@emotion/react").SerializedStyles;
|
|
12
12
|
export declare const circleWithIcon: import("@emotion/react").SerializedStyles;
|
|
13
13
|
export declare const iconInsideCircle: (size?: "small" | "medium") => import("@emotion/react").SerializedStyles;
|
|
14
|
-
export declare const lockedCircle: (checked?: boolean) => import("@emotion/react").SerializedStyles;
|
|
14
|
+
export declare const lockedCircle: (theme?: Theme, checked?: boolean) => import("@emotion/react").SerializedStyles;
|
|
@@ -4,10 +4,10 @@ export declare const toastHeading: import("@emotion/react").SerializedStyles;
|
|
|
4
4
|
export declare const toastDetails: import("@emotion/react").SerializedStyles;
|
|
5
5
|
export declare const toastTitle: import("@emotion/react").SerializedStyles;
|
|
6
6
|
export declare const closeCta: import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const toastDescription: (
|
|
8
|
-
export declare const info: import("@emotion/react").SerializedStyles;
|
|
9
|
-
export declare const infoToastHeading: import("@emotion/react").SerializedStyles;
|
|
10
|
-
export declare const error: import("@emotion/react").SerializedStyles;
|
|
11
|
-
export declare const errorToastHeading: import("@emotion/react").SerializedStyles;
|
|
12
|
-
export declare const success: import("@emotion/react").SerializedStyles;
|
|
13
|
-
export declare const successToastHeading: import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const toastDescription: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const info: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
9
|
+
export declare const infoToastHeading: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
10
|
+
export declare const error: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
11
|
+
export declare const errorToastHeading: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
12
|
+
export declare const success: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
13
|
+
export declare const successToastHeading: (theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Theme } from "../../globalTypings";
|
|
2
|
-
export declare const item: (rowHeight: number, index: number,
|
|
2
|
+
export declare const item: (rowHeight: number, index: number, theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const body: (height: number, rowCount: number) => import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const table: (tableHeight: number,
|
|
5
|
-
export declare const emptyContainer: (
|
|
4
|
+
export declare const table: (tableHeight: number, theme: Theme, isEmpty?: boolean, atTop?: boolean) => import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const emptyContainer: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
6
6
|
export declare const option: import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const optionTick: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./components";
|
|
2
2
|
export * from "./styles";
|
|
3
3
|
export * from "./theme";
|
|
4
|
-
export { ZThemeProvider, ThemeContext, useZTheme,
|
|
4
|
+
export { ZThemeProvider, ThemeContext, useZTheme, getZColorSchemeForTheme, zColorTokens, } from "./theme";
|
|
5
5
|
export type { ZColorScheme, ThemeContextValue, ZThemeProviderProps, } from "./theme";
|