zebpay-ui 0.0.20 → 0.0.22

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 (56) hide show
  1. package/dist/cjs/components/Button/typings.d.ts +1 -5
  2. package/dist/cjs/components/CircularLoader/typings.d.ts +2 -0
  3. package/dist/cjs/components/Icon.d.ts +9 -0
  4. package/dist/cjs/components/IconButton/index.d.ts +5 -0
  5. package/dist/cjs/components/IconButton/typings.d.ts +6 -0
  6. package/dist/cjs/components/Input/typings.d.ts +3 -0
  7. package/dist/cjs/components/PinInput/typing.d.ts +1 -2
  8. package/dist/cjs/components/Popper/typings.d.ts +3 -0
  9. package/dist/cjs/components/Select/typings.d.ts +1 -1
  10. package/dist/cjs/components/SidePanel/index.d.ts +3 -1
  11. package/dist/cjs/components/SidePanel/style.d.ts +1 -1
  12. package/dist/cjs/components/Tabs/TabsDropdown/index.d.ts +12 -0
  13. package/dist/cjs/components/Tabs/TabsDropdown/styles.d.ts +6 -0
  14. package/dist/cjs/components/Tabs/typings.d.ts +3 -0
  15. package/dist/cjs/components/Tags/index.d.ts +5 -2
  16. package/dist/cjs/components/Toast/index.d.ts +1 -1
  17. package/dist/cjs/components/Toast/typings.d.ts +3 -1
  18. package/dist/cjs/components/Tooltip/index.d.ts +1 -7
  19. package/dist/cjs/components/Tooltip/typings.d.ts +9 -0
  20. package/dist/cjs/components/index.d.ts +6 -4
  21. package/dist/cjs/index.js +3 -3
  22. package/dist/cjs/index.js.map +1 -1
  23. package/dist/cjs/styles/colors.d.ts +8 -0
  24. package/dist/cjs/styles/mixins.d.ts +7 -0
  25. package/dist/esm/components/Button/typings.d.ts +1 -5
  26. package/dist/esm/components/CircularLoader/typings.d.ts +2 -0
  27. package/dist/esm/components/Icon.d.ts +9 -0
  28. package/dist/esm/components/IconButton/index.d.ts +5 -0
  29. package/dist/esm/components/IconButton/typings.d.ts +6 -0
  30. package/dist/esm/components/Input/typings.d.ts +3 -0
  31. package/dist/esm/components/PinInput/typing.d.ts +1 -2
  32. package/dist/esm/components/Popper/typings.d.ts +3 -0
  33. package/dist/esm/components/Select/typings.d.ts +1 -1
  34. package/dist/esm/components/SidePanel/index.d.ts +3 -1
  35. package/dist/esm/components/SidePanel/style.d.ts +1 -1
  36. package/dist/esm/components/Tabs/TabsDropdown/index.d.ts +12 -0
  37. package/dist/esm/components/Tabs/TabsDropdown/styles.d.ts +6 -0
  38. package/dist/esm/components/Tabs/typings.d.ts +3 -0
  39. package/dist/esm/components/Tags/index.d.ts +5 -2
  40. package/dist/esm/components/Toast/index.d.ts +1 -1
  41. package/dist/esm/components/Toast/typings.d.ts +3 -1
  42. package/dist/esm/components/Tooltip/index.d.ts +1 -7
  43. package/dist/esm/components/Tooltip/typings.d.ts +9 -0
  44. package/dist/esm/components/index.d.ts +6 -4
  45. package/dist/esm/index.js +3 -3
  46. package/dist/esm/index.js.map +1 -1
  47. package/dist/esm/styles/colors.d.ts +8 -0
  48. package/dist/esm/styles/mixins.d.ts +7 -0
  49. package/dist/icons/icons.css +224 -152
  50. package/dist/icons/icons.eot +0 -0
  51. package/dist/icons/icons.html +220 -4
  52. package/dist/icons/icons.json +173 -149
  53. package/dist/icons/icons.ts +251 -155
  54. package/dist/icons/icons.woff +0 -0
  55. package/dist/icons/icons.woff2 +0 -0
  56. package/package.json +1 -1
@@ -1,10 +1,6 @@
1
1
  import { Interpolation, Theme } from "@emotion/react";
2
2
  export declare type ButtonSize = "small" | "medium" | "large" | "full-width";
3
- export declare enum ButtonTypeAttribute {
4
- button = "button",
5
- reset = "reset",
6
- submit = "submit"
7
- }
3
+ export declare type ButtonTypeAttribute = "button" | "reset" | "submit";
8
4
  export declare type ButtonType = "link" | "primary" | "secondary" | "special" | "tertiary" | "tab";
9
5
  export interface ButtonProps {
10
6
  type: ButtonType;
@@ -1,4 +1,6 @@
1
1
  export interface CircularLoaderProps {
2
2
  size: number;
3
3
  color?: string;
4
+ fillColor?: string;
5
+ borderWidth?: number;
4
6
  }
@@ -0,0 +1,9 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import * as React from "react";
3
+ import { SerializedStyles } from "@emotion/react";
4
+ interface IconProps {
5
+ name: string;
6
+ style?: SerializedStyles;
7
+ }
8
+ declare const Icon: React.FC<IconProps>;
9
+ export default Icon;
@@ -0,0 +1,5 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import * as React from "react";
3
+ import { IconButtonProps } from "./typings";
4
+ declare const IconButton: React.FC<IconButtonProps>;
5
+ export default IconButton;
@@ -0,0 +1,6 @@
1
+ import { ButtonProps } from "../Button/typings";
2
+ import { SerializedStyles } from "@emotion/react";
3
+ export interface IconButtonProps extends ButtonProps {
4
+ icon: string;
5
+ iconStyles?: SerializedStyles;
6
+ }
@@ -20,4 +20,7 @@ export interface InputProps {
20
20
  label: string;
21
21
  onClick: () => void;
22
22
  };
23
+ onFocus?: () => void;
24
+ onBlur?: () => void;
25
+ autoComplete?: "on" | "off";
23
26
  }
@@ -1,9 +1,8 @@
1
1
  import { SerializedStyles } from "@emotion/react";
2
- import React, { ReactText } from "react";
2
+ import React from "react";
3
3
  export declare type PinInputProps = {
4
4
  label?: string;
5
5
  values: string[];
6
- type?: ReactText;
7
6
  mask?: boolean;
8
7
  autoFocus?: boolean;
9
8
  onChange?: (value: string | string[], index: number, values: string[]) => void;
@@ -1,7 +1,10 @@
1
1
  import { SerializedStyles } from "@emotion/react";
2
2
  import { ReactElement } from "react";
3
+ export declare type Position = "top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
3
4
  export interface PopperProps {
4
5
  content: ReactElement;
5
6
  onClose?: () => void;
7
+ containerStyle?: SerializedStyles;
6
8
  style?: SerializedStyles;
9
+ position?: Position;
7
10
  }
@@ -7,7 +7,7 @@ export interface OptionsProps<T> {
7
7
  }
8
8
  export interface SelectProps<T> {
9
9
  placeholder: string;
10
- style: SerializedStyles;
10
+ style?: SerializedStyles;
11
11
  search?: {
12
12
  placeholder: string;
13
13
  value: string;
@@ -1,12 +1,14 @@
1
1
  /** @jsxImportSource @emotion/react */
2
2
  import { FC } from "react";
3
3
  import "./../../../dist/icons/icons.css";
4
+ import { SerializedStyles } from "@emotion/react";
4
5
  interface SidePanelProps {
5
- title: string;
6
+ title?: string;
6
7
  open: boolean;
7
8
  isBack?: boolean;
8
9
  onBack?: () => void;
9
10
  onClose?: () => void;
11
+ style?: SerializedStyles;
10
12
  }
11
13
  declare const SidePanel: FC<SidePanelProps>;
12
14
  export default SidePanel;
@@ -5,4 +5,4 @@ export declare const sidePanelOpen: import("@emotion/utils").SerializedStyles;
5
5
  export declare const header: import("@emotion/utils").SerializedStyles;
6
6
  export declare const titleStyle: import("@emotion/utils").SerializedStyles;
7
7
  export declare const headerCTA: import("@emotion/utils").SerializedStyles;
8
- export declare const content: import("@emotion/utils").SerializedStyles;
8
+ export declare const headerCloseCTA: import("@emotion/utils").SerializedStyles;
@@ -0,0 +1,12 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import React from "react";
3
+ import { TabItem, TabType } from "../typings";
4
+ interface TabsDropdownProps {
5
+ isSelected: boolean;
6
+ title: JSX.Element | string;
7
+ list: TabItem[];
8
+ onChange: (value: TabItem) => void;
9
+ type: TabType;
10
+ }
11
+ declare const TabsDropdown: React.FC<TabsDropdownProps>;
12
+ export default TabsDropdown;
@@ -0,0 +1,6 @@
1
+ export declare const tabDropdown: import("@emotion/utils").SerializedStyles;
2
+ export declare const menu: import("@emotion/utils").SerializedStyles;
3
+ export declare const menuItem: import("@emotion/utils").SerializedStyles;
4
+ export declare const activeItem: import("@emotion/utils").SerializedStyles;
5
+ export declare const tertiaryNotActive: import("@emotion/utils").SerializedStyles;
6
+ export declare const selectOverlay: import("@emotion/utils").SerializedStyles;
@@ -5,10 +5,13 @@ export interface TabItem {
5
5
  title: JSX.Element | string;
6
6
  tab: string;
7
7
  style?: SerializedStyles;
8
+ isCustomActiveState?: boolean;
8
9
  }
9
10
  export interface TabProps {
10
11
  selectedTab: string;
11
12
  tabsList: TabItem[];
13
+ tabsCount?: number;
14
+ dropdownPlaceHolder?: JSX.Element | string;
12
15
  onChange: (value: string) => void;
13
16
  type: TabType;
14
17
  style?: SerializedStyles;
@@ -1,8 +1,11 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import { SerializedStyles } from "@emotion/react";
1
3
  import React from "react";
2
- declare type TagType = "success" | "info" | "error";
4
+ declare type TagType = "success" | "warning" | "info" | "error" | "default";
3
5
  export interface TagProps {
4
- text: string;
5
6
  type: TagType;
7
+ style?: SerializedStyles;
8
+ isStroke?: boolean;
6
9
  }
7
10
  declare const Tags: React.FC<TagProps>;
8
11
  export default Tags;
@@ -1,6 +1,6 @@
1
1
  /** @jsxImportSource @emotion/react */
2
2
  import React from "react";
3
3
  import { ToastProps } from "./typings";
4
- export declare const generateToast: ({ title, description, type, onClose, }: ToastProps) => void;
4
+ export declare const generateToast: ({ title, description, type, onClose, style, }: ToastProps) => void;
5
5
  declare const Toast: React.FC<ToastProps>;
6
6
  export default Toast;
@@ -1,6 +1,8 @@
1
+ import { SerializedStyles } from "@emotion/react";
1
2
  export interface ToastProps {
2
3
  title: string;
3
- description: string;
4
+ description?: string;
4
5
  type: "info" | "error" | "success";
5
6
  onClose?: () => void;
7
+ style?: SerializedStyles;
6
8
  }
@@ -1,10 +1,4 @@
1
1
  /// <reference types="react" />
2
- /** @jsxImportSource @emotion/react */
3
- import { SerializedStyles } from "@emotion/react";
4
- interface TooltipProps {
5
- content: JSX.Element | string;
6
- disabled?: boolean;
7
- style?: SerializedStyles;
8
- }
2
+ import { TooltipProps } from "./typings";
9
3
  declare const Tooltip: React.FC<TooltipProps>;
10
4
  export default Tooltip;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { SerializedStyles } from "@emotion/react";
3
+ export declare type Position = "top-left" | "top-center" | "top-right" | "middle-left" | "middle-center" | "middle-right" | "bottom-left" | "bottom-center" | "bottom-right";
4
+ export interface TooltipProps {
5
+ content: JSX.Element | string;
6
+ disabled?: boolean;
7
+ style?: SerializedStyles;
8
+ position?: Position;
9
+ }
@@ -1,19 +1,21 @@
1
1
  import Accordion from "./Accordion";
2
2
  import Button from "./Button";
3
+ import CalendarPicker from "./CalendarPicker";
3
4
  import Card from "./Card";
4
5
  import Checkbox from "./Checkbox";
5
6
  import CircularLoader from "./CircularLoader";
6
- import CalendarPicker from "./CalendarPicker";
7
+ import Icon from "./Icon";
8
+ import IconButton from "./IconButton";
7
9
  import Input from "./Input";
8
10
  import PinInput from "./PinInput";
9
11
  import Popper from "./Popper";
10
12
  import Radio from "./Radio";
13
+ import SearchInput from "./SearchInput";
11
14
  import Select from "./Select";
12
15
  import Shimmer from "./Shimmer";
13
16
  import SidePanel from "./SidePanel";
14
- import Tags from "./Tags";
15
- import SearchInput from "./SearchInput";
16
17
  import Tabs from "./Tabs";
18
+ import Tags from "./Tags";
17
19
  import Toast from "./Toast";
18
20
  import Tooltip from "./Tooltip";
19
- export { Accordion, Button, Card, Checkbox, CircularLoader, CalendarPicker, Input, PinInput, Popper, Radio, Select, Shimmer, SearchInput, SidePanel, Tags, Tabs, Toast, Tooltip, };
21
+ export { Accordion, Button, Card, Checkbox, CircularLoader, CalendarPicker, Icon, IconButton, Input, PinInput, Popper, Radio, Select, Shimmer, SearchInput, SidePanel, Tags, Tabs, Toast, Tooltip, };