zebpay-ui 0.0.129 → 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/PinInput/style.d.ts +9 -7
- package/dist/cjs/components/PinInput/typing.d.ts +8 -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/types.d.ts +10 -0
- package/dist/cjs/theme/v2/zColors.d.ts +22 -6
- 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/PinInput/style.d.ts +9 -7
- package/dist/esm/components/PinInput/typing.d.ts +8 -1
- package/dist/esm/globalTypings.d.ts +2 -0
- package/dist/esm/index.js +31 -31
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/v2/types.d.ts +10 -0
- package/dist/esm/theme/v2/zColors.d.ts +22 -6
- 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,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;
|