zebpay-ui 0.0.115 → 0.0.117
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 +1 -1
- package/dist/cjs/components/Input/styles.d.ts +7 -6
- package/dist/cjs/components/Input/typings.d.ts +3 -1
- package/dist/cjs/components/SidePanel/index.d.ts +2 -0
- package/dist/cjs/components/SidePanel/style.d.ts +5 -4
- package/dist/cjs/components/Tabs/styles.d.ts +1 -0
- package/dist/cjs/components/Tooltip/styles.d.ts +2 -1
- package/dist/cjs/components/Tooltip/typings.d.ts +2 -0
- package/dist/cjs/globalTypings.d.ts +1 -1
- package/dist/cjs/index.js +27 -27
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/styles/colors.d.ts +17 -0
- package/dist/cjs/styles/colorsV3.d.ts +84 -0
- package/dist/cjs/styles/index.d.ts +3 -1
- package/dist/cjs/styles/typographyV3.d.ts +6 -0
- package/dist/esm/components/Button/styles.d.ts +1 -1
- package/dist/esm/components/Input/styles.d.ts +7 -6
- package/dist/esm/components/Input/typings.d.ts +3 -1
- package/dist/esm/components/SidePanel/index.d.ts +2 -0
- package/dist/esm/components/SidePanel/style.d.ts +5 -4
- package/dist/esm/components/Tabs/styles.d.ts +1 -0
- package/dist/esm/components/Tooltip/styles.d.ts +2 -1
- package/dist/esm/components/Tooltip/typings.d.ts +2 -0
- package/dist/esm/globalTypings.d.ts +1 -1
- package/dist/esm/index.js +31 -31
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/styles/colors.d.ts +17 -0
- package/dist/esm/styles/colorsV3.d.ts +84 -0
- package/dist/esm/styles/index.d.ts +3 -1
- package/dist/esm/styles/typographyV3.d.ts +6 -0
- package/dist/icons/icons.css +282 -258
- package/dist/icons/icons.eot +0 -0
- package/dist/icons/icons.html +72 -0
- package/dist/icons/icons.json +263 -255
- package/dist/icons/icons.ts +287 -255
- package/dist/icons/icons.woff +0 -0
- package/dist/icons/icons.woff2 +0 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Theme } from "../../globalTypings";
|
|
2
2
|
export declare const general: (width?: number) => import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const linkButton: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const primaryButton: import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const primaryButton: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
5
|
export declare const secondaryButton: (mode: Theme) => import("@emotion/react").SerializedStyles;
|
|
6
6
|
export declare const specialButton: import("@emotion/react").SerializedStyles;
|
|
7
7
|
export declare const specialButtonText: import("@emotion/react").SerializedStyles;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { InputTheme } from "./typings";
|
|
1
2
|
export declare const invalidInputGroup: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const formLabel: (theme:
|
|
3
|
-
export declare const activeFormLabel: (theme:
|
|
3
|
+
export declare const formLabel: (theme: InputTheme) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const activeFormLabel: (theme: InputTheme) => import("@emotion/react").SerializedStyles;
|
|
4
5
|
export declare const inputGroup: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const focusedInputGroup: (theme:
|
|
6
|
-
export declare const formControl: (theme:
|
|
6
|
+
export declare const focusedInputGroup: (theme: InputTheme) => import("@emotion/react").SerializedStyles;
|
|
7
|
+
export declare const formControl: (theme: InputTheme, disabled?: boolean) => import("@emotion/react").SerializedStyles;
|
|
7
8
|
export declare const fieldFullRounded: import("@emotion/react").SerializedStyles;
|
|
8
9
|
export declare const fieldNoRounded: import("@emotion/react").SerializedStyles;
|
|
9
10
|
export declare const fieldSecondHalfRounded: import("@emotion/react").SerializedStyles;
|
|
10
11
|
export declare const fieldFirstHalfRounded: import("@emotion/react").SerializedStyles;
|
|
11
|
-
export declare const inputGroupText: (theme:
|
|
12
|
-
export declare const inputGroupPrepend: (theme:
|
|
12
|
+
export declare const inputGroupText: (theme: InputTheme) => import("@emotion/react").SerializedStyles;
|
|
13
|
+
export declare const inputGroupPrepend: (theme: InputTheme) => import("@emotion/react").SerializedStyles;
|
|
13
14
|
export declare const infoCta: import("@emotion/react").SerializedStyles;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { SerializedStyles } from "@emotion/react";
|
|
2
2
|
import React, { KeyboardEvent, WheelEvent } from "react";
|
|
3
|
+
import { Theme } from "../../globalTypings";
|
|
4
|
+
export type InputTheme = Theme | "inputExtraDark";
|
|
3
5
|
export interface InputTargetProps {
|
|
4
6
|
value: string;
|
|
5
7
|
name: string;
|
|
@@ -23,7 +25,7 @@ export interface InputProps {
|
|
|
23
25
|
onFocus?: () => void;
|
|
24
26
|
onBlur?: () => void;
|
|
25
27
|
autoComplete?: "on" | "off";
|
|
26
|
-
theme?:
|
|
28
|
+
theme?: InputTheme;
|
|
27
29
|
onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
28
30
|
onWheel?: (event: WheelEvent<HTMLInputElement>) => void;
|
|
29
31
|
onPaste?: (event: React.ClipboardEvent<HTMLInputElement>) => void;
|
|
@@ -3,6 +3,7 @@ import { FC } from "react";
|
|
|
3
3
|
import { SidePanelPlacement } from "./style";
|
|
4
4
|
import "./../../../dist/icons/icons.css";
|
|
5
5
|
import { SerializedStyles } from "@emotion/react";
|
|
6
|
+
import { Theme } from "../../globalTypings";
|
|
6
7
|
interface SidePanelProps {
|
|
7
8
|
title?: string;
|
|
8
9
|
open: boolean;
|
|
@@ -19,6 +20,7 @@ interface SidePanelProps {
|
|
|
19
20
|
onOverlayClick?: () => void;
|
|
20
21
|
placement?: SidePanelPlacement;
|
|
21
22
|
width?: number;
|
|
23
|
+
mode?: Theme;
|
|
22
24
|
}
|
|
23
25
|
declare const SidePanel: FC<SidePanelProps>;
|
|
24
26
|
export default SidePanel;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { Theme } from "../../globalTypings";
|
|
1
2
|
export type SidePanelPlacement = "left" | "right";
|
|
2
3
|
export declare const wrapper: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const overlay: import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const sidePanel: (placement: SidePanelPlacement, width: number) => import("@emotion/react").SerializedStyles | undefined;
|
|
4
|
+
export declare const overlay: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const sidePanel: (placement: SidePanelPlacement, width: number, mode?: Theme) => import("@emotion/react").SerializedStyles | undefined;
|
|
5
6
|
export declare const sidePanelOpen: import("@emotion/react").SerializedStyles;
|
|
6
7
|
export declare const header: import("@emotion/react").SerializedStyles;
|
|
7
8
|
export declare const titleStyle: import("@emotion/react").SerializedStyles;
|
|
8
|
-
export declare const headerCTA: import("@emotion/react").SerializedStyles;
|
|
9
|
-
export declare const headerCloseCTA: import("@emotion/react").SerializedStyles;
|
|
9
|
+
export declare const headerCTA: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
10
|
+
export declare const headerCloseCTA: (mode?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -8,6 +8,7 @@ export declare const primaryActive: import("@emotion/react").SerializedStyles;
|
|
|
8
8
|
export declare const primaryActiveAfter: import("@emotion/react").SerializedStyles;
|
|
9
9
|
export declare const primaryLight: import("@emotion/react").SerializedStyles;
|
|
10
10
|
export declare const primaryLightActive: import("@emotion/react").SerializedStyles;
|
|
11
|
+
export declare const primaryExtraDarkActive: import("@emotion/react").SerializedStyles;
|
|
11
12
|
export declare const secondary: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
12
13
|
export declare const secondaryActive: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
13
14
|
export declare const tertiary: import("@emotion/react").SerializedStyles;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { Theme } from "../../globalTypings";
|
|
1
2
|
export declare const container: import("@emotion/react").SerializedStyles;
|
|
2
|
-
export declare const content: (isStroke?: boolean) => import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const content: (isStroke?: boolean, theme?: Theme) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SerializedStyles } from "@emotion/react";
|
|
2
2
|
import React from "react";
|
|
3
|
+
import { Theme } from "../../globalTypings";
|
|
3
4
|
export type Position = "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-start" | "bottom" | "bottom-end" | "left-start" | "left" | "left-end";
|
|
4
5
|
export interface TooltipProps {
|
|
5
6
|
content: React.JSX.Element | string;
|
|
@@ -12,4 +13,5 @@ export interface TooltipProps {
|
|
|
12
13
|
children?: React.ReactNode;
|
|
13
14
|
enableTooltipHover?: boolean;
|
|
14
15
|
isTooltipVisible?: boolean;
|
|
16
|
+
theme?: Theme;
|
|
15
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Theme = "light" | "dark";
|
|
1
|
+
export type Theme = "light" | "dark" | "extraDark";
|