zebpay-ui 0.0.129 → 0.0.131

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.
Files changed (49) hide show
  1. package/dist/cjs/components/PinInput/style.d.ts +9 -7
  2. package/dist/cjs/components/PinInput/typing.d.ts +8 -1
  3. package/dist/cjs/globalTypings.d.ts +2 -0
  4. package/dist/cjs/index.js +27 -27
  5. package/dist/cjs/index.js.map +1 -1
  6. package/dist/cjs/theme/v2/types.d.ts +10 -0
  7. package/dist/cjs/theme/v2/zColors.d.ts +22 -6
  8. package/dist/cjs/theme/v2/zGradients.d.ts +3 -1
  9. package/dist/cjs/theme/v3/ZColorScheme.d.ts +2 -0
  10. package/dist/cjs/theme/v3/ZColors.d.ts +15 -0
  11. package/dist/cjs/theme/v3/ZGradientColors.d.ts +4 -0
  12. package/dist/cjs/theme/v3/categories/ZBannerColors.d.ts +3 -0
  13. package/dist/cjs/theme/v3/categories/ZBottomSheetColors.d.ts +3 -3
  14. package/dist/cjs/theme/v3/categories/ZButtonColors.d.ts +8 -2
  15. package/dist/cjs/theme/v3/categories/ZCardColors.d.ts +3 -0
  16. package/dist/cjs/theme/v3/categories/ZIconColors.d.ts +4 -1
  17. package/dist/cjs/theme/v3/categories/ZInputFieldColors.d.ts +3 -3
  18. package/dist/cjs/theme/v3/categories/ZNavigationColors.d.ts +9 -0
  19. package/dist/cjs/theme/v3/categories/ZPillsColors.d.ts +1 -1
  20. package/dist/cjs/theme/v3/categories/ZSeparatorColors.d.ts +1 -1
  21. package/dist/cjs/theme/v3/categories/ZStatusTagColors.d.ts +1 -1
  22. package/dist/cjs/theme/v3/categories/ZTabColors.d.ts +1 -1
  23. package/dist/cjs/theme/v3/categories/ZTextColors.d.ts +1 -1
  24. package/dist/cjs/theme/v3/types.d.ts +8 -0
  25. package/dist/esm/components/PinInput/style.d.ts +9 -7
  26. package/dist/esm/components/PinInput/typing.d.ts +8 -1
  27. package/dist/esm/globalTypings.d.ts +2 -0
  28. package/dist/esm/index.js +31 -31
  29. package/dist/esm/index.js.map +1 -1
  30. package/dist/esm/theme/v2/types.d.ts +10 -0
  31. package/dist/esm/theme/v2/zColors.d.ts +22 -6
  32. package/dist/esm/theme/v2/zGradients.d.ts +3 -1
  33. package/dist/esm/theme/v3/ZColorScheme.d.ts +2 -0
  34. package/dist/esm/theme/v3/ZColors.d.ts +15 -0
  35. package/dist/esm/theme/v3/ZGradientColors.d.ts +4 -0
  36. package/dist/esm/theme/v3/categories/ZBannerColors.d.ts +3 -0
  37. package/dist/esm/theme/v3/categories/ZBottomSheetColors.d.ts +3 -3
  38. package/dist/esm/theme/v3/categories/ZButtonColors.d.ts +8 -2
  39. package/dist/esm/theme/v3/categories/ZCardColors.d.ts +3 -0
  40. package/dist/esm/theme/v3/categories/ZIconColors.d.ts +4 -1
  41. package/dist/esm/theme/v3/categories/ZInputFieldColors.d.ts +3 -3
  42. package/dist/esm/theme/v3/categories/ZNavigationColors.d.ts +9 -0
  43. package/dist/esm/theme/v3/categories/ZPillsColors.d.ts +1 -1
  44. package/dist/esm/theme/v3/categories/ZSeparatorColors.d.ts +1 -1
  45. package/dist/esm/theme/v3/categories/ZStatusTagColors.d.ts +1 -1
  46. package/dist/esm/theme/v3/categories/ZTabColors.d.ts +1 -1
  47. package/dist/esm/theme/v3/categories/ZTextColors.d.ts +1 -1
  48. package/dist/esm/theme/v3/types.d.ts +8 -0
  49. 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 inputFocused: (focused: boolean, inValid: boolean) => import("@emotion/react").SerializedStyles;
5
- export declare const invalidPins: import("@emotion/react").SerializedStyles;
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 disabledInput: import("@emotion/react").SerializedStyles;
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;
@@ -1 +1,3 @@
1
1
  export type Theme = "light" | "dark" | "extraDark";
2
+ /** Color scheme generation — v2 (mobile znew) or v3 */
3
+ export type ThemeVersion = "v2" | "v3";