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;
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
import { SerializedStyles } from "@emotion/react";
|
|
3
3
|
import React, { FC, ReactNode } from "react";
|
|
4
4
|
import "./../../../dist/icons/icons.css";
|
|
5
|
+
import type { Theme } from "../../globalTypings";
|
|
5
6
|
interface AccordionProps {
|
|
6
7
|
title: React.ReactNode;
|
|
7
8
|
isOpen: boolean;
|
|
8
9
|
onToggle: (value: boolean) => void;
|
|
9
10
|
style?: SerializedStyles;
|
|
10
11
|
children?: ReactNode;
|
|
12
|
+
mode?: Theme;
|
|
11
13
|
}
|
|
12
14
|
declare const Accordion: FC<AccordionProps>;
|
|
13
15
|
export default Accordion;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Theme } from "../../globalTypings";
|
|
2
|
+
export declare const accordionWrapper: (isOpen: boolean, mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
2
3
|
export declare const accordionTitle: import("@emotion/react").SerializedStyles;
|
|
3
4
|
export declare const accordionIcon: import("@emotion/react").SerializedStyles;
|
|
4
5
|
export declare const accordionCollapsed: import("@emotion/react").SerializedStyles;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Theme } from "../../globalTypings";
|
|
2
|
-
export declare const accordionWrapper: (isOpen: boolean, mode:
|
|
3
|
-
export declare const accordionTitle: import("@emotion/react").SerializedStyles;
|
|
1
|
+
import { Theme as ThemeType } from "../../globalTypings";
|
|
2
|
+
export declare const accordionWrapper: (isOpen: boolean, mode: ThemeType, disableBorder: boolean) => import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const accordionTitle: (mode: ThemeType) => 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, mode:
|
|
6
|
+
export declare const accordionContent: (isOpen: boolean, mode: ThemeType) => import("@emotion/react").SerializedStyles;
|
|
7
7
|
export declare const iconStyle: (isOpen: boolean) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Interpolation, Theme } from "@emotion/react";
|
|
1
|
+
import { Interpolation, Theme as EmotionTheme } from "@emotion/react";
|
|
2
2
|
import { AvatarSpacing } from "../AvatarGroup/typings";
|
|
3
|
+
import type { Theme } from "../../globalTypings";
|
|
3
4
|
export type AvatareSize = "small" | "medium" | "large";
|
|
4
5
|
export interface AvatarProps {
|
|
5
6
|
src: string;
|
|
@@ -9,9 +10,10 @@ export interface AvatarProps {
|
|
|
9
10
|
onClick?: () => void;
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
loading?: boolean;
|
|
12
|
-
style?: Interpolation<
|
|
13
|
+
style?: Interpolation<EmotionTheme>;
|
|
13
14
|
spacing: AvatarSpacing;
|
|
14
15
|
children?: React.ReactNode;
|
|
16
|
+
mode?: Theme;
|
|
15
17
|
}
|
|
16
18
|
export interface SizingProps {
|
|
17
19
|
width: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import type { Theme } from "../../globalTypings";
|
|
1
2
|
export declare const alignNav: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const monthArrow: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const navigationLabel: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const dateRangePicker: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const monthArrow: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const navigationLabel: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const dateRangePicker: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SerializedStyles } from "@emotion/react";
|
|
2
|
+
import { Theme } from "../../globalTypings";
|
|
2
3
|
export interface DateRange {
|
|
3
4
|
startDate: number;
|
|
4
5
|
endDate: number;
|
|
@@ -15,4 +16,5 @@ export interface DateRangePickerProps {
|
|
|
15
16
|
};
|
|
16
17
|
selectedDate?: Date | [Date | null, Date | null] | null;
|
|
17
18
|
onClose?: () => void;
|
|
19
|
+
mode?: Theme;
|
|
18
20
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import type { Theme } from "../../globalTypings";
|
|
2
3
|
export interface CardProps {
|
|
3
4
|
title: string;
|
|
4
5
|
headerNav?: React.ReactNode;
|
|
5
6
|
children?: React.ReactNode;
|
|
7
|
+
mode?: Theme;
|
|
6
8
|
}
|
|
7
9
|
declare const Card: React.FC<CardProps>;
|
|
8
10
|
export default Card;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Theme } from "../../globalTypings";
|
|
2
|
+
export declare const cardStyle: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
2
3
|
export declare const cardHeader: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const cardBody: import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const cardBody: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { Theme } from "../../globalTypings";
|
|
1
2
|
export declare const checkboxContainer: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const labelContainer: (
|
|
3
|
+
export declare const labelContainer: (mode: Theme, alignTop?: boolean) => import("@emotion/react").SerializedStyles;
|
|
3
4
|
export declare const disabledLabel: import("@emotion/react").SerializedStyles;
|
|
4
5
|
export declare const input: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const checkCheckmark: (
|
|
6
|
+
export declare const checkCheckmark: (mode: Theme, indeterminate?: boolean) => import("@emotion/react").SerializedStyles;
|
|
6
7
|
export declare const checkLabel: import("@emotion/react").SerializedStyles;
|
|
7
8
|
export declare const checkComponent: import("@emotion/react").SerializedStyles;
|
|
8
|
-
export declare const checkmark: (
|
|
9
|
+
export declare const checkmark: (mode: Theme, indeterminate?: boolean, alignTop?: boolean) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SerializedStyles } from "@emotion/react";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import {
|
|
3
|
+
import type { Theme } from "../../globalTypings";
|
|
4
4
|
export interface CheckboxProps {
|
|
5
5
|
value: string | number;
|
|
6
6
|
checked: boolean;
|
|
@@ -12,6 +12,6 @@ export interface CheckboxProps {
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
style?: SerializedStyles;
|
|
14
14
|
indeterminate?: boolean;
|
|
15
|
-
mode?:
|
|
15
|
+
mode?: Theme;
|
|
16
16
|
alignTop?: boolean;
|
|
17
17
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
+
import type { Theme } from "../../globalTypings";
|
|
4
5
|
export interface DividerProps {
|
|
5
6
|
spacing: number;
|
|
6
7
|
spacingTop?: number;
|
|
@@ -9,6 +10,7 @@ export interface DividerProps {
|
|
|
9
10
|
height?: number;
|
|
10
11
|
style?: SerializedStyles;
|
|
11
12
|
type?: "solid" | "dashed";
|
|
13
|
+
mode?: Theme;
|
|
12
14
|
}
|
|
13
15
|
declare const Divider: React.FC<DividerProps>;
|
|
14
16
|
export default Divider;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import type { Theme } from "../../globalTypings";
|
|
1
2
|
import { DividerProps } from ".";
|
|
2
|
-
export declare const divider: (props: DividerProps) => import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const divider: (props: DividerProps, mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { SerializedStyles } from "@emotion/react";
|
|
4
|
+
import type { Theme } from "../../globalTypings";
|
|
4
5
|
export interface IconBoxProps {
|
|
5
6
|
icon: string;
|
|
6
7
|
size?: number;
|
|
@@ -11,6 +12,7 @@ export interface IconBoxProps {
|
|
|
11
12
|
boxStyle?: SerializedStyles;
|
|
12
13
|
iconStyle?: SerializedStyles;
|
|
13
14
|
withHover?: boolean;
|
|
15
|
+
mode?: Theme;
|
|
14
16
|
}
|
|
15
17
|
declare const IconBox: React.FC<IconBoxProps>;
|
|
16
18
|
export default IconBox;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Theme } from "../../globalTypings";
|
|
1
2
|
import { IconBoxProps } from ".";
|
|
2
|
-
export declare const container: (data: IconBoxProps) => import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const withHoverStyle: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const container: (data: IconBoxProps, mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const withHoverStyle: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import type { Theme } from "../../globalTypings";
|
|
1
2
|
export declare const wrapper: import("@emotion/react").SerializedStyles;
|
|
2
3
|
export declare const selectOverlay: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const icon: (
|
|
4
|
+
export declare const icon: (mode: Theme, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
4
5
|
export declare const input: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const selectedElement: (open: boolean,
|
|
6
|
-
export declare const options: import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const optionItem: import("@emotion/react").SerializedStyles;
|
|
8
|
-
export declare const optionsWrapper: import("@emotion/react").SerializedStyles;
|
|
9
|
-
export declare const displayComponent: (highlight: boolean,
|
|
10
|
-
export declare const main: (isOpen: boolean,
|
|
11
|
-
export declare const dropDown: (
|
|
6
|
+
export declare const selectedElement: (open: boolean, mode: Theme, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const options: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const optionItem: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
9
|
+
export declare const optionsWrapper: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
10
|
+
export declare const displayComponent: (highlight: boolean, mode: Theme, disabled: boolean) => import("@emotion/react").SerializedStyles;
|
|
11
|
+
export declare const main: (isOpen: boolean, mode: Theme, disabled?: boolean, isError?: boolean) => import("@emotion/react").SerializedStyles;
|
|
12
|
+
export declare const dropDown: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
12
13
|
export declare const optionsList: (isSearchable?: boolean) => import("@emotion/react").SerializedStyles;
|
|
13
14
|
export declare const inputSearch: import("@emotion/react").SerializedStyles;
|
|
14
15
|
export declare const dropdown: (posX: number, posY: number) => import("@emotion/react").SerializedStyles;
|
|
15
|
-
export declare const contentHeading: import("@emotion/react").SerializedStyles;
|
|
16
|
+
export declare const contentHeading: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
16
17
|
export declare const pillOptions: import("@emotion/react").SerializedStyles;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/** @jsxImportSource @emotion/react */
|
|
2
2
|
import { SerializedStyles } from "@emotion/react";
|
|
3
3
|
import React from "react";
|
|
4
|
+
import { Theme } from "../../globalTypings";
|
|
4
5
|
interface MobileBottomDrawerProps {
|
|
5
6
|
onClose: () => void;
|
|
6
7
|
children: React.ReactNode;
|
|
7
8
|
style?: SerializedStyles[];
|
|
8
9
|
overlayStyle?: SerializedStyles;
|
|
9
10
|
hideHandle?: boolean;
|
|
10
|
-
/** Drag threshold in pixels to trigger close (default: 100) */
|
|
11
11
|
closeThreshold?: number;
|
|
12
|
+
mode?: Theme;
|
|
12
13
|
}
|
|
13
14
|
declare const MobileBottomDrawer: React.FC<MobileBottomDrawerProps>;
|
|
14
15
|
export default MobileBottomDrawer;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Theme } from "../../globalTypings";
|
|
2
|
+
export declare const bottomDrawer: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
2
3
|
export declare const backdrop: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const dragHandle: import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const dragHandle: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { Theme } from "../../globalTypings";
|
|
1
2
|
export declare const alignNav: import("@emotion/react").SerializedStyles;
|
|
2
3
|
export declare const monthArrow: import("@emotion/react").SerializedStyles;
|
|
3
4
|
export declare const navigationLabel: import("@emotion/react").SerializedStyles;
|
|
4
5
|
export declare const dateRangePicker: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const lineBreak: import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const heading: import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const lineBreak: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const heading: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const themedOverrides: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
1
|
+
import type { Theme } from "../../globalTypings";
|
|
2
|
+
export declare const smallCardWithBg: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const arrow: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const pageLink: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const active: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const pageItem: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SerializedStyles } from "@emotion/react";
|
|
2
|
+
import type { Theme } from "../../globalTypings";
|
|
2
3
|
export interface PaginationProps {
|
|
3
4
|
onPageChange: (updatedPage: number) => void;
|
|
4
5
|
totalCount: number;
|
|
@@ -6,4 +7,5 @@ export interface PaginationProps {
|
|
|
6
7
|
siblingCount: number;
|
|
7
8
|
currentPage: number;
|
|
8
9
|
style?: SerializedStyles;
|
|
10
|
+
mode?: Theme;
|
|
9
11
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { Theme } from "../../globalTypings";
|
|
1
2
|
export declare const pins: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const label: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const label: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
3
4
|
export declare const inputFocused: (focused: boolean, inValid: boolean) => import("@emotion/react").SerializedStyles;
|
|
4
5
|
export declare const invalidPins: import("@emotion/react").SerializedStyles;
|
|
5
6
|
export declare const inputContainer: import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const input: import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const input: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
7
8
|
export declare const disabledInput: import("@emotion/react").SerializedStyles;
|
|
8
|
-
export declare const maskStyle: import("@emotion/react").SerializedStyles;
|
|
9
|
+
export declare const maskStyle: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SerializedStyles } from "@emotion/react";
|
|
2
2
|
import React from "react";
|
|
3
|
+
import type { Theme } from "../../globalTypings";
|
|
3
4
|
export type PinInputProps = {
|
|
4
5
|
label?: string;
|
|
5
6
|
values: string[];
|
|
@@ -16,6 +17,7 @@ export type PinInputProps = {
|
|
|
16
17
|
labelStyle?: SerializedStyles;
|
|
17
18
|
inputContainerStyle?: SerializedStyles;
|
|
18
19
|
inputFieldStyle?: SerializedStyles;
|
|
20
|
+
mode?: Theme;
|
|
19
21
|
} & Pick<React.InputHTMLAttributes<HTMLInputElement>, "disabled" | "id" | "inputMode" | "onBlur" | "onFocus" | "onKeyDown" | "placeholder">;
|
|
20
22
|
export type PinInputFieldProps = {
|
|
21
23
|
index: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import type { Theme } from "../../globalTypings";
|
|
1
2
|
export declare const container: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const popup: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const closeButton: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const popup: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const closeButton: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
5
|
export declare const selectOverlay: import("@emotion/react").SerializedStyles;
|