zebpay-ui 0.0.128 → 0.0.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/Button/styles.d.ts +13 -4
- package/dist/cjs/components/Input/styles.d.ts +3 -1
- package/dist/cjs/components/Notes/style.d.ts +2 -0
- package/dist/cjs/components/Notes/typings.d.ts +1 -1
- package/dist/cjs/components/PinInput/style.d.ts +9 -7
- package/dist/cjs/components/PinInput/typing.d.ts +8 -1
- package/dist/cjs/components/Radio/styles.d.ts +1 -1
- package/dist/cjs/components/Tabs/styles.d.ts +1 -1
- package/dist/cjs/globalTypings.d.ts +2 -0
- package/dist/cjs/index.js +27 -27
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/theme/v2/index.d.ts +1 -1
- package/dist/cjs/theme/v2/types.d.ts +20 -0
- package/dist/cjs/theme/v2/zColors.d.ts +25 -5
- package/dist/cjs/theme/v2/zGradients.d.ts +3 -1
- package/dist/cjs/theme/v3/ZColorScheme.d.ts +2 -0
- package/dist/cjs/theme/v3/ZColors.d.ts +15 -0
- package/dist/cjs/theme/v3/ZGradientColors.d.ts +4 -0
- package/dist/cjs/theme/v3/categories/ZBannerColors.d.ts +3 -0
- package/dist/cjs/theme/v3/categories/ZBottomSheetColors.d.ts +3 -3
- package/dist/cjs/theme/v3/categories/ZButtonColors.d.ts +8 -2
- package/dist/cjs/theme/v3/categories/ZCardColors.d.ts +3 -0
- package/dist/cjs/theme/v3/categories/ZIconColors.d.ts +4 -1
- package/dist/cjs/theme/v3/categories/ZInputFieldColors.d.ts +3 -3
- package/dist/cjs/theme/v3/categories/ZNavigationColors.d.ts +9 -0
- package/dist/cjs/theme/v3/categories/ZPillsColors.d.ts +1 -1
- package/dist/cjs/theme/v3/categories/ZSeparatorColors.d.ts +1 -1
- package/dist/cjs/theme/v3/categories/ZStatusTagColors.d.ts +1 -1
- package/dist/cjs/theme/v3/categories/ZTabColors.d.ts +1 -1
- package/dist/cjs/theme/v3/categories/ZTextColors.d.ts +1 -1
- package/dist/cjs/theme/v3/types.d.ts +8 -0
- package/dist/esm/components/Button/styles.d.ts +13 -4
- package/dist/esm/components/Input/styles.d.ts +3 -1
- package/dist/esm/components/Notes/style.d.ts +2 -0
- package/dist/esm/components/Notes/typings.d.ts +1 -1
- package/dist/esm/components/PinInput/style.d.ts +9 -7
- package/dist/esm/components/PinInput/typing.d.ts +8 -1
- package/dist/esm/components/Radio/styles.d.ts +1 -1
- package/dist/esm/components/Tabs/styles.d.ts +1 -1
- package/dist/esm/globalTypings.d.ts +2 -0
- package/dist/esm/index.js +27 -27
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/v2/index.d.ts +1 -1
- package/dist/esm/theme/v2/types.d.ts +20 -0
- package/dist/esm/theme/v2/zColors.d.ts +25 -5
- package/dist/esm/theme/v2/zGradients.d.ts +3 -1
- package/dist/esm/theme/v3/ZColorScheme.d.ts +2 -0
- package/dist/esm/theme/v3/ZColors.d.ts +15 -0
- package/dist/esm/theme/v3/ZGradientColors.d.ts +4 -0
- package/dist/esm/theme/v3/categories/ZBannerColors.d.ts +3 -0
- package/dist/esm/theme/v3/categories/ZBottomSheetColors.d.ts +3 -3
- package/dist/esm/theme/v3/categories/ZButtonColors.d.ts +8 -2
- package/dist/esm/theme/v3/categories/ZCardColors.d.ts +3 -0
- package/dist/esm/theme/v3/categories/ZIconColors.d.ts +4 -1
- package/dist/esm/theme/v3/categories/ZInputFieldColors.d.ts +3 -3
- package/dist/esm/theme/v3/categories/ZNavigationColors.d.ts +9 -0
- package/dist/esm/theme/v3/categories/ZPillsColors.d.ts +1 -1
- package/dist/esm/theme/v3/categories/ZSeparatorColors.d.ts +1 -1
- package/dist/esm/theme/v3/categories/ZStatusTagColors.d.ts +1 -1
- package/dist/esm/theme/v3/categories/ZTabColors.d.ts +1 -1
- package/dist/esm/theme/v3/categories/ZTextColors.d.ts +1 -1
- package/dist/esm/theme/v3/types.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { Theme } from "../../globalTypings";
|
|
2
2
|
export declare const general: (width?: number) => import("@emotion/react").SerializedStyles;
|
|
3
|
-
|
|
3
|
+
/** web link ≈ mobile ZTextButton */
|
|
4
|
+
export declare const linkButton: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
|
+
/** web primary ≈ mobile ZFilledButton */
|
|
4
6
|
export declare const primaryButton: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
7
|
+
/** web secondary ≈ mobile ZOutlineButton */
|
|
5
8
|
export declare const secondaryButton: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const specialButton: import("@emotion/react").SerializedStyles;
|
|
9
|
+
export declare const specialButton: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
7
10
|
export declare const specialButtonText: import("@emotion/react").SerializedStyles;
|
|
8
11
|
export declare const specialButtonSmText: import("@emotion/react").SerializedStyles;
|
|
9
|
-
|
|
12
|
+
/** web tertiary ≈ mobile ZOutlineTertiaryButton */
|
|
13
|
+
export declare const tertiaryButton: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
10
14
|
export declare const tertiaryButtonText: import("@emotion/react").SerializedStyles;
|
|
11
|
-
|
|
15
|
+
/** tab base — scheme.tab (Tabs styles override per variant) */
|
|
16
|
+
export declare const tabButton: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
12
17
|
export declare const disabledButton: import("@emotion/react").SerializedStyles;
|
|
18
|
+
export declare const getLoaderColors: (mode: Theme, disabled?: boolean) => {
|
|
19
|
+
fillColor: string;
|
|
20
|
+
trackColor: string;
|
|
21
|
+
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Theme } from "../../globalTypings";
|
|
2
2
|
export declare const invalidInputGroup: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const formLabel: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const formLabel: (theme: Theme, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
/** Prepend/append inside input group — same label look, no outer margin */
|
|
5
|
+
export declare const inputAdornment: (theme: Theme, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
4
6
|
export declare const activeFormLabel: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
7
|
export declare const errorFormLabel: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
6
8
|
export declare const inputGroup: (theme: Theme, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
@@ -17,6 +17,8 @@ export declare const notesHeader: import("@emotion/react").SerializedStyles;
|
|
|
17
17
|
export declare const notesIconWrapper: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
18
18
|
export declare const notesTitle: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
19
19
|
export declare const notesDescription: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
20
|
+
export declare const notesDescriptionList: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
21
|
+
export declare const notesDescriptionItem: import("@emotion/react").SerializedStyles;
|
|
20
22
|
export declare const notesIcon: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
21
23
|
export declare const notesArrow: (mode: Theme, type: NotesType, isMobile: boolean) => import("@emotion/react").SerializedStyles;
|
|
22
24
|
export {};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type { Theme } from "../../globalTypings";
|
|
1
|
+
import type { ThemeVersion, Theme } from "../../globalTypings";
|
|
2
|
+
import type { PinInputBorderRadiusType } from "./typing";
|
|
3
|
+
export declare const resolveBorderRadius: (borderRadius?: number, borderRadiusType?: PinInputBorderRadiusType) => string;
|
|
2
4
|
export declare const pins: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const label: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const label: (mode?: Theme, version?: ThemeVersion, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const labelError: (mode?: Theme, version?: ThemeVersion) => import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const inputFocused: (focused: boolean, inValid: boolean, mode?: Theme, version?: ThemeVersion) => import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const invalidPins: (mode?: Theme, version?: ThemeVersion) => import("@emotion/react").SerializedStyles;
|
|
6
9
|
export declare const inputContainer: import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const input: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const maskStyle: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
10
|
+
export declare const input: (mode?: Theme, version?: ThemeVersion, borderRadius?: number, borderRadiusType?: PinInputBorderRadiusType, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
11
|
+
export declare const maskStyle: (mode?: Theme, version?: ThemeVersion) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SerializedStyles } from "@emotion/react";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import type { Theme } from "../../globalTypings";
|
|
3
|
+
import type { ThemeVersion, Theme } from "../../globalTypings";
|
|
4
|
+
export type PinInputBorderRadiusType = "px" | "%";
|
|
4
5
|
export type PinInputProps = {
|
|
5
6
|
label?: string;
|
|
6
7
|
values: string[];
|
|
@@ -18,6 +19,12 @@ export type PinInputProps = {
|
|
|
18
19
|
inputContainerStyle?: SerializedStyles;
|
|
19
20
|
inputFieldStyle?: SerializedStyles;
|
|
20
21
|
mode?: Theme;
|
|
22
|
+
/** Color scheme generation — defaults to v2 */
|
|
23
|
+
version?: ThemeVersion;
|
|
24
|
+
/** Cell corner radius value — defaults to 5 */
|
|
25
|
+
borderRadius?: number;
|
|
26
|
+
/** Unit for borderRadius — `"px"` (default) or `"%"` */
|
|
27
|
+
borderRadiusType?: PinInputBorderRadiusType;
|
|
21
28
|
} & Pick<React.InputHTMLAttributes<HTMLInputElement>, "disabled" | "id" | "inputMode" | "onBlur" | "onFocus" | "onKeyDown" | "placeholder">;
|
|
22
29
|
export type PinInputFieldProps = {
|
|
23
30
|
index: number;
|
|
@@ -4,6 +4,6 @@ export declare const radioContainer: (size?: number) => import("@emotion/react")
|
|
|
4
4
|
export declare const labelContainer: (mode: Theme, size?: number, isListView?: boolean) => import("@emotion/react").SerializedStyles;
|
|
5
5
|
export declare const disabledLabel: import("@emotion/react").SerializedStyles;
|
|
6
6
|
export declare const input: (size?: number, isListView?: boolean) => import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const checkmark: (mode: Theme, size?: number, isListView?: boolean, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const checkmark: (mode: Theme, size?: number, isListView?: boolean, disabled?: boolean, selected?: boolean) => import("@emotion/react").SerializedStyles;
|
|
8
8
|
export declare const innerDot: (mode: Theme, size?: number, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
9
9
|
export declare const listViewStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -12,4 +12,4 @@ export declare const tertiary: (theme: Theme) => import("@emotion/react").Serial
|
|
|
12
12
|
export declare const tertiaryActive: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
13
13
|
export declare const borderRadius: import("@emotion/react").SerializedStyles;
|
|
14
14
|
export declare const secondaryDisabled: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
15
|
-
export declare const secondaryCornerAccent: import("@emotion/react").SerializedStyles;
|
|
15
|
+
export declare const secondaryCornerAccent: (theme: Theme) => import("@emotion/react").SerializedStyles;
|