zebpay-ui 0.0.11 → 0.0.14

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 (91) hide show
  1. package/README.md +9 -0
  2. package/dist/cjs/components/Accordion/index.d.ts +11 -0
  3. package/dist/cjs/components/Accordion/style.d.ts +5 -0
  4. package/dist/cjs/components/Button/index.d.ts +5 -0
  5. package/dist/cjs/components/Button/styles.d.ts +10 -0
  6. package/dist/cjs/components/Button/typings.d.ts +11 -0
  7. package/dist/cjs/components/Checkbox/index.d.ts +5 -0
  8. package/dist/cjs/components/Checkbox/styles.d.ts +8 -0
  9. package/dist/cjs/components/Checkbox/typings.d.ts +13 -0
  10. package/dist/cjs/components/CircularLoader/index.d.ts +4 -0
  11. package/dist/cjs/components/CircularLoader/style.d.ts +2 -0
  12. package/dist/cjs/components/CircularLoader/typings.d.ts +4 -0
  13. package/dist/cjs/components/DateRangePicker/index.d.ts +14 -0
  14. package/dist/cjs/components/Input/index.d.ts +4 -0
  15. package/dist/cjs/components/Input/styles.d.ts +13 -0
  16. package/dist/cjs/components/Input/typings.d.ts +23 -0
  17. package/dist/cjs/components/PinInput/PinInputField.d.ts +5 -0
  18. package/dist/cjs/components/PinInput/index.d.ts +5 -0
  19. package/dist/cjs/components/PinInput/style.d.ts +8 -0
  20. package/dist/cjs/components/PinInput/typing.d.ts +19 -0
  21. package/dist/cjs/components/Popper/index.d.ts +5 -0
  22. package/dist/cjs/components/Popper/styles.d.ts +6 -0
  23. package/dist/cjs/components/Popper/typings.d.ts +14 -0
  24. package/dist/cjs/components/Radio/index.d.ts +5 -0
  25. package/dist/cjs/components/Radio/styles.d.ts +3 -0
  26. package/dist/cjs/components/Radio/typings.d.ts +13 -0
  27. package/dist/cjs/components/Tabs/index.d.ts +6 -0
  28. package/dist/cjs/components/Tabs/styles.d.ts +10 -0
  29. package/dist/cjs/components/Tabs/typings.d.ts +15 -0
  30. package/dist/cjs/components/Tags/index.d.ts +8 -0
  31. package/dist/cjs/components/Tags/style.d.ts +1 -0
  32. package/dist/cjs/components/Toast/index.d.ts +6 -0
  33. package/dist/cjs/components/Toast/styles.d.ts +12 -0
  34. package/dist/cjs/components/Toast/typings.d.ts +6 -0
  35. package/dist/cjs/components/index.d.ts +12 -0
  36. package/dist/cjs/hooks/index.d.ts +1 -0
  37. package/dist/cjs/hooks/useFocus.d.ts +6 -0
  38. package/dist/cjs/index.d.ts +2 -179
  39. package/dist/cjs/index.js +1 -1
  40. package/dist/cjs/index.js.map +1 -1
  41. package/dist/cjs/styles/colors.d.ts +34 -0
  42. package/dist/cjs/styles/index.d.ts +5 -0
  43. package/dist/cjs/styles/mixins.d.ts +20 -0
  44. package/dist/cjs/styles/typography.d.ts +6 -0
  45. package/dist/cjs/styles/utils.d.ts +10 -0
  46. package/dist/esm/components/Accordion/index.d.ts +11 -0
  47. package/dist/esm/components/Accordion/style.d.ts +5 -0
  48. package/dist/esm/components/Button/index.d.ts +5 -0
  49. package/dist/esm/components/Button/styles.d.ts +10 -0
  50. package/dist/esm/components/Button/typings.d.ts +11 -0
  51. package/dist/esm/components/Checkbox/index.d.ts +5 -0
  52. package/dist/esm/components/Checkbox/styles.d.ts +8 -0
  53. package/dist/esm/components/Checkbox/typings.d.ts +13 -0
  54. package/dist/esm/components/CircularLoader/index.d.ts +4 -0
  55. package/dist/esm/components/CircularLoader/style.d.ts +2 -0
  56. package/dist/esm/components/CircularLoader/typings.d.ts +4 -0
  57. package/dist/esm/components/DateRangePicker/index.d.ts +14 -0
  58. package/dist/esm/components/Input/index.d.ts +4 -0
  59. package/dist/esm/components/Input/styles.d.ts +13 -0
  60. package/dist/esm/components/Input/typings.d.ts +23 -0
  61. package/dist/esm/components/PinInput/PinInputField.d.ts +5 -0
  62. package/dist/esm/components/PinInput/index.d.ts +5 -0
  63. package/dist/esm/components/PinInput/style.d.ts +8 -0
  64. package/dist/esm/components/PinInput/typing.d.ts +19 -0
  65. package/dist/esm/components/Popper/index.d.ts +5 -0
  66. package/dist/esm/components/Popper/styles.d.ts +6 -0
  67. package/dist/esm/components/Popper/typings.d.ts +14 -0
  68. package/dist/esm/components/Radio/index.d.ts +5 -0
  69. package/dist/esm/components/Radio/styles.d.ts +3 -0
  70. package/dist/esm/components/Radio/typings.d.ts +13 -0
  71. package/dist/esm/components/Tabs/index.d.ts +6 -0
  72. package/dist/esm/components/Tabs/styles.d.ts +10 -0
  73. package/dist/esm/components/Tabs/typings.d.ts +15 -0
  74. package/dist/esm/components/Tags/index.d.ts +8 -0
  75. package/dist/esm/components/Tags/style.d.ts +1 -0
  76. package/dist/esm/components/Toast/index.d.ts +6 -0
  77. package/dist/esm/components/Toast/styles.d.ts +12 -0
  78. package/dist/esm/components/Toast/typings.d.ts +6 -0
  79. package/dist/esm/components/index.d.ts +12 -0
  80. package/dist/esm/hooks/index.d.ts +1 -0
  81. package/dist/esm/hooks/useFocus.d.ts +6 -0
  82. package/dist/esm/index.d.ts +2 -179
  83. package/dist/esm/index.js +1 -1
  84. package/dist/esm/index.js.map +1 -1
  85. package/dist/esm/styles/colors.d.ts +34 -0
  86. package/dist/esm/styles/index.d.ts +5 -0
  87. package/dist/esm/styles/mixins.d.ts +20 -0
  88. package/dist/esm/styles/typography.d.ts +6 -0
  89. package/dist/esm/styles/utils.d.ts +10 -0
  90. package/package.json +13 -7
  91. package/release.md +10 -0
package/README.md CHANGED
@@ -1,3 +1,12 @@
1
1
  # znew.design.system
2
2
 
3
3
  Component Library and Design System for Z new
4
+
5
+ ### Build steps:
6
+
7
+ ```
8
+ yarn install;
9
+ yarn clear:output;
10
+ yarn build:icons;
11
+ yarn build;
12
+ ```
@@ -0,0 +1,11 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import { SerializedStyles } from "@emotion/react";
3
+ import { FC } from "react";
4
+ import "./../../../dist/icons/icons.css";
5
+ interface AccordionProps {
6
+ title: string;
7
+ onToggle?: (value: boolean) => void;
8
+ style?: SerializedStyles;
9
+ }
10
+ declare const Accordion: FC<AccordionProps>;
11
+ export default Accordion;
@@ -0,0 +1,5 @@
1
+ export declare const accordionWrapper: import("@emotion/utils").SerializedStyles;
2
+ export declare const accordionTitle: import("@emotion/utils").SerializedStyles;
3
+ export declare const accordionIcon: import("@emotion/utils").SerializedStyles;
4
+ export declare const accordionCollapsed: import("@emotion/utils").SerializedStyles;
5
+ export declare const accordionContent: import("@emotion/utils").SerializedStyles;
@@ -0,0 +1,5 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import * as React from "react";
3
+ import { ButtonProps } from "./typings";
4
+ declare const Button: React.FC<ButtonProps>;
5
+ export default Button;
@@ -0,0 +1,10 @@
1
+ export declare const linkButton: import("@emotion/utils").SerializedStyles;
2
+ export declare const primaryButton: import("@emotion/utils").SerializedStyles;
3
+ export declare const secondaryButton: import("@emotion/utils").SerializedStyles;
4
+ export declare const specialButton: import("@emotion/utils").SerializedStyles;
5
+ export declare const specialButtonText: import("@emotion/utils").SerializedStyles;
6
+ export declare const specialButtonSmText: import("@emotion/utils").SerializedStyles;
7
+ export declare const tertiaryButton: import("@emotion/utils").SerializedStyles;
8
+ export declare const tertiaryButtonText: import("@emotion/utils").SerializedStyles;
9
+ export declare const tabButton: import("@emotion/utils").SerializedStyles;
10
+ export declare const disabledButton: import("@emotion/utils").SerializedStyles;
@@ -0,0 +1,11 @@
1
+ import { Interpolation, Theme } from "@emotion/react";
2
+ export declare type ButtonSize = "small" | "medium" | "large" | "full-width";
3
+ export declare type ButtonType = "link" | "primary" | "secondary" | "special" | "tertiary" | "tab";
4
+ export interface ButtonProps {
5
+ type: ButtonType;
6
+ size?: ButtonSize;
7
+ onClick: () => void;
8
+ disabled?: boolean;
9
+ loading?: boolean;
10
+ style?: Interpolation<Theme>;
11
+ }
@@ -0,0 +1,5 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import { FC } from "react";
3
+ import { CheckboxProps } from "./typings";
4
+ declare const Checkbox: FC<CheckboxProps>;
5
+ export default Checkbox;
@@ -0,0 +1,8 @@
1
+ export declare const checkboxContainer: import("@emotion/utils").SerializedStyles;
2
+ export declare const labelContainer: import("@emotion/utils").SerializedStyles;
3
+ export declare const disabledLabel: import("@emotion/utils").SerializedStyles;
4
+ export declare const input: import("@emotion/utils").SerializedStyles;
5
+ export declare const checkCheckmark: import("@emotion/utils").SerializedStyles;
6
+ export declare const checkLabel: import("@emotion/utils").SerializedStyles;
7
+ export declare const checkComponent: import("@emotion/utils").SerializedStyles;
8
+ export declare const checkmark: import("@emotion/utils").SerializedStyles;
@@ -0,0 +1,13 @@
1
+ import { SerializedStyles } from "@emotion/react";
2
+ import { ReactText } from "react";
3
+ export interface CheckboxProps {
4
+ value: ReactText;
5
+ checked: boolean;
6
+ onChange: (args: {
7
+ checked: boolean;
8
+ value: ReactText;
9
+ }) => void;
10
+ label?: string | JSX.Element;
11
+ disabled?: boolean;
12
+ style?: SerializedStyles;
13
+ }
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import { CircularLoaderProps } from "./typings";
3
+ declare const CircularLoader: FC<CircularLoaderProps>;
4
+ export default CircularLoader;
@@ -0,0 +1,2 @@
1
+ export declare const rotateAnimation: import("@emotion/react").Keyframes;
2
+ export declare const loader: import("@emotion/utils").SerializedStyles;
@@ -0,0 +1,4 @@
1
+ export interface CircularLoaderProps {
2
+ size: number;
3
+ color?: string;
4
+ }
@@ -0,0 +1,14 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import React from "react";
3
+ import "./styles.css";
4
+ interface DateRangePickerProps {
5
+ months: number;
6
+ onChange(ranges: Selection): void;
7
+ ranges: Selection;
8
+ }
9
+ interface Selection {
10
+ startDate: Date;
11
+ endDate: Date;
12
+ }
13
+ declare const DateRangePicker: React.FC<DateRangePickerProps>;
14
+ export default DateRangePicker;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { InputProps } from "./typings";
3
+ declare const Input: React.FC<InputProps>;
4
+ export default Input;
@@ -0,0 +1,13 @@
1
+ export declare const invalidInputGroup: import("@emotion/utils").SerializedStyles;
2
+ export declare const formLabel: import("@emotion/utils").SerializedStyles;
3
+ export declare const activeFormLabel: import("@emotion/utils").SerializedStyles;
4
+ export declare const inputGroup: import("@emotion/utils").SerializedStyles;
5
+ export declare const focusedInputGroup: import("@emotion/utils").SerializedStyles;
6
+ export declare const formControl: import("@emotion/utils").SerializedStyles;
7
+ export declare const fieldFullRounded: import("@emotion/utils").SerializedStyles;
8
+ export declare const fieldNoRounded: import("@emotion/utils").SerializedStyles;
9
+ export declare const fieldSecondHalfRounded: import("@emotion/utils").SerializedStyles;
10
+ export declare const fieldFirstHalfRounded: import("@emotion/utils").SerializedStyles;
11
+ export declare const inputGroupText: import("@emotion/utils").SerializedStyles;
12
+ export declare const inputGroupPrepend: import("@emotion/utils").SerializedStyles;
13
+ export declare const infoCta: import("@emotion/utils").SerializedStyles;
@@ -0,0 +1,23 @@
1
+ import { SerializedStyles } from "@emotion/react";
2
+ import { ReactText } from "react";
3
+ export interface InputTargetProps {
4
+ value: string;
5
+ name: string;
6
+ }
7
+ export interface InputProps {
8
+ label: string;
9
+ placeholder: string;
10
+ value: ReactText;
11
+ onChange: (target: InputTargetProps) => void;
12
+ name?: string;
13
+ appendItem?: string | JSX.Element;
14
+ prependItem?: string | JSX.Element;
15
+ infoText?: string;
16
+ errorText?: string;
17
+ type?: "text" | "number" | "password";
18
+ style?: SerializedStyles;
19
+ cta?: {
20
+ label: string;
21
+ onClick: () => void;
22
+ };
23
+ }
@@ -0,0 +1,5 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import React from "react";
3
+ import { PinInputFieldProps } from "./typing";
4
+ declare const PinInputField: React.FC<PinInputFieldProps>;
5
+ export default PinInputField;
@@ -0,0 +1,5 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import { FC } from "react";
3
+ import { PinInputProps } from "./typing";
4
+ declare const PinInput: FC<PinInputProps>;
5
+ export default PinInput;
@@ -0,0 +1,8 @@
1
+ export declare const pins: import("@emotion/utils").SerializedStyles;
2
+ export declare const label: import("@emotion/utils").SerializedStyles;
3
+ export declare const inputFocused: import("@emotion/utils").SerializedStyles;
4
+ export declare const invalidPins: import("@emotion/utils").SerializedStyles;
5
+ export declare const disabledPins: import("@emotion/utils").SerializedStyles;
6
+ export declare const inputContainer: import("@emotion/utils").SerializedStyles;
7
+ export declare const input: import("@emotion/utils").SerializedStyles;
8
+ export declare const disabledInput: import("@emotion/utils").SerializedStyles;
@@ -0,0 +1,19 @@
1
+ import { SerializedStyles } from "@emotion/react";
2
+ import React, { ReactText } from "react";
3
+ export declare type PinInputProps = {
4
+ label?: string;
5
+ values: string[];
6
+ type?: ReactText;
7
+ mask?: boolean;
8
+ autoFocus?: boolean;
9
+ onChange?: (value: string | string[], index: number, values: string[]) => void;
10
+ length: number;
11
+ initialValue?: string | string[];
12
+ onComplete?: (values: string[]) => void;
13
+ invalid?: boolean;
14
+ style?: SerializedStyles;
15
+ } & Pick<React.InputHTMLAttributes<HTMLInputElement>, "disabled" | "id" | "inputMode" | "onBlur" | "onFocus" | "onKeyDown" | "placeholder">;
16
+ export declare type PinInputFieldProps = {
17
+ index: number;
18
+ value: string;
19
+ } & PinInputProps;
@@ -0,0 +1,5 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import * as React from "react";
3
+ import { PopperProps } from "./typings";
4
+ declare const Popper: React.FC<PopperProps>;
5
+ export default Popper;
@@ -0,0 +1,6 @@
1
+ export declare const container: import("@emotion/utils").SerializedStyles;
2
+ export declare const popup: import("@emotion/utils").SerializedStyles;
3
+ export declare const header: import("@emotion/utils").SerializedStyles;
4
+ export declare const button: import("@emotion/utils").SerializedStyles;
5
+ export declare const closer: import("@emotion/utils").SerializedStyles;
6
+ export declare const label: (hovered?: boolean | undefined) => import("@emotion/utils").SerializedStyles;
@@ -0,0 +1,14 @@
1
+ import { SerializedStyles } from "@emotion/react";
2
+ import { ReactElement } from "react";
3
+ import { ButtonProps } from "../Button/typings";
4
+ export interface PopperProps {
5
+ label: string;
6
+ onClose?: () => void;
7
+ buttonProps?: ButtonProps;
8
+ renderChildren: (props: ChildrenProps) => ReactElement;
9
+ style?: SerializedStyles;
10
+ }
11
+ export interface ChildrenProps {
12
+ close: () => void;
13
+ isOpened: boolean;
14
+ }
@@ -0,0 +1,5 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import React from "react";
3
+ import { RadioProps } from "./typings";
4
+ declare const Radio: React.FC<RadioProps>;
5
+ export default Radio;
@@ -0,0 +1,3 @@
1
+ export declare const container: import("@emotion/utils").SerializedStyles;
2
+ export declare const input: import("@emotion/utils").SerializedStyles;
3
+ export declare const checkmark: import("@emotion/utils").SerializedStyles;
@@ -0,0 +1,13 @@
1
+ import { SerializedStyles } from "@emotion/react";
2
+ import { ReactText } from "react";
3
+ export interface RadioProps {
4
+ selected: boolean;
5
+ onChange: (args: {
6
+ selected: boolean;
7
+ value: ReactText;
8
+ }) => void;
9
+ value?: ReactText;
10
+ label?: string | JSX.Element;
11
+ name: string;
12
+ style?: SerializedStyles;
13
+ }
@@ -0,0 +1,6 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import React from "react";
3
+ import { TabProps } from "./typings";
4
+ import "./../../../dist/icons/icons.css";
5
+ declare const Tabs: React.FC<TabProps>;
6
+ export default Tabs;
@@ -0,0 +1,10 @@
1
+ export declare const customNav: import("@emotion/utils").SerializedStyles;
2
+ export declare const disabledNav: import("@emotion/utils").SerializedStyles;
3
+ export declare const tertiaryNav: import("@emotion/utils").SerializedStyles;
4
+ export declare const primary: import("@emotion/utils").SerializedStyles;
5
+ export declare const primaryActive: import("@emotion/utils").SerializedStyles;
6
+ export declare const secondary: import("@emotion/utils").SerializedStyles;
7
+ export declare const secondaryActive: import("@emotion/utils").SerializedStyles;
8
+ export declare const tertiary: import("@emotion/utils").SerializedStyles;
9
+ export declare const tertiaryActive: import("@emotion/utils").SerializedStyles;
10
+ export declare const backgroundButton: (color: string) => import("@emotion/utils").SerializedStyles;
@@ -0,0 +1,15 @@
1
+ import { SerializedStyles } from "@emotion/react";
2
+ export declare type TabType = "primary" | "secondary" | "tertiary";
3
+ export interface TabItem {
4
+ title: JSX.Element | string;
5
+ tab: string;
6
+ style?: SerializedStyles;
7
+ }
8
+ export interface TabProps {
9
+ selectedTab: string;
10
+ tabsList: TabItem[];
11
+ onChange: (value: string) => void;
12
+ type: TabType;
13
+ style?: SerializedStyles;
14
+ disabled?: boolean;
15
+ }
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ declare type TagType = "success" | "info" | "error";
3
+ export interface TagProps {
4
+ text: string;
5
+ type: TagType;
6
+ }
7
+ declare const Tags: React.FC<TagProps>;
8
+ export default Tags;
@@ -0,0 +1 @@
1
+ export declare const tagWrapper: import("@emotion/utils").SerializedStyles;
@@ -0,0 +1,6 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import React from "react";
3
+ import { ToastProps } from "./typings";
4
+ export declare const generateToast: ({ title, description, type, onClose, }: ToastProps) => void;
5
+ declare const Toast: React.FC<ToastProps>;
6
+ export default Toast;
@@ -0,0 +1,12 @@
1
+ export declare const toastContainer: import("@emotion/utils").SerializedStyles;
2
+ export declare const toastHeading: import("@emotion/utils").SerializedStyles;
3
+ export declare const toastDetails: import("@emotion/utils").SerializedStyles;
4
+ export declare const toastTitle: import("@emotion/utils").SerializedStyles;
5
+ export declare const closeCta: import("@emotion/utils").SerializedStyles;
6
+ export declare const toastDescription: import("@emotion/utils").SerializedStyles;
7
+ export declare const info: import("@emotion/utils").SerializedStyles;
8
+ export declare const infoToastHeading: import("@emotion/utils").SerializedStyles;
9
+ export declare const error: import("@emotion/utils").SerializedStyles;
10
+ export declare const errorToastHeading: import("@emotion/utils").SerializedStyles;
11
+ export declare const success: import("@emotion/utils").SerializedStyles;
12
+ export declare const successToastHeading: import("@emotion/utils").SerializedStyles;
@@ -0,0 +1,6 @@
1
+ export interface ToastProps {
2
+ title: string;
3
+ description: string;
4
+ type: "info" | "error" | "success";
5
+ onClose?: () => void;
6
+ }
@@ -0,0 +1,12 @@
1
+ import Accordion from "./Accordion";
2
+ import Button from "./Button";
3
+ import Checkbox from "./Checkbox";
4
+ import CircularLoader from "./CircularLoader";
5
+ import Input from "./Input";
6
+ import PinInput from "./PinInput";
7
+ import Popper from "./Popper";
8
+ import Radio from "./Radio";
9
+ import Tags from "./Tags";
10
+ import Tabs from "./Tabs";
11
+ import Toast from "./Toast";
12
+ export { Accordion, Button, Checkbox, CircularLoader, Input, PinInput, Popper, Radio, Tags, Tabs, Toast, };
@@ -0,0 +1 @@
1
+ export { default as useFocus } from "./useFocus";
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ declare function useFocus<T extends HTMLElement>(): [
3
+ React.MutableRefObject<T | null>,
4
+ () => void
5
+ ];
6
+ export default useFocus;
@@ -1,179 +1,2 @@
1
- import * as React from 'react';
2
- import React__default, { ReactText, FC, ReactElement } from 'react';
3
- import { Interpolation, Theme, SerializedStyles, CSSObject } from '@emotion/react';
4
- import * as _emotion_utils from '@emotion/utils';
5
-
6
- declare type ButtonSize = "small" | "medium" | "large" | "full-width";
7
- declare type ButtonType = "link" | "primary" | "secondary" | "special" | "tertiary" | "tab";
8
- interface ButtonProps {
9
- type: ButtonType;
10
- size?: ButtonSize;
11
- onClick: () => void;
12
- disabled?: boolean;
13
- loading?: boolean;
14
- style?: Interpolation<Theme>;
15
- }
16
-
17
- /** @jsxImportSource @emotion/react */
18
-
19
- declare const Button: React.FC<ButtonProps>;
20
-
21
- interface CheckboxProps {
22
- value: ReactText;
23
- checked: boolean;
24
- onChange: (args: {
25
- checked: boolean;
26
- value: ReactText;
27
- }) => void;
28
- label?: string | JSX.Element;
29
- disabled?: boolean;
30
- style?: SerializedStyles;
31
- }
32
-
33
- /** @jsxImportSource @emotion/react */
34
-
35
- declare const Checkbox: FC<CheckboxProps>;
36
-
37
- interface CircularLoaderProps {
38
- size: number;
39
- color?: string;
40
- }
41
-
42
- declare const CircularLoader: FC<CircularLoaderProps>;
43
-
44
- interface InputTargetProps {
45
- value: string;
46
- name: string;
47
- }
48
- interface InputProps {
49
- label: string;
50
- placeholder: string;
51
- value: ReactText;
52
- onChange: (target: InputTargetProps) => void;
53
- name?: string;
54
- appendItem?: string | JSX.Element;
55
- prependItem?: string | JSX.Element;
56
- infoText?: string;
57
- errorText?: string;
58
- type?: "text" | "number" | "password";
59
- style?: SerializedStyles;
60
- cta?: {
61
- label: string;
62
- onClick: () => void;
63
- };
64
- }
65
-
66
- declare const Input: React__default.FC<InputProps>;
67
-
68
- interface PopperProps {
69
- label: string;
70
- onClose?: () => void;
71
- buttonProps?: ButtonProps;
72
- renderChildren: (props: ChildrenProps) => ReactElement;
73
- style?: SerializedStyles;
74
- }
75
- interface ChildrenProps {
76
- close: () => void;
77
- isOpened: boolean;
78
- }
79
-
80
- /** @jsxImportSource @emotion/react */
81
-
82
- declare const Popper: React.FC<PopperProps>;
83
-
84
- interface RadioProps {
85
- selected: boolean;
86
- onChange: (args: {
87
- selected: boolean;
88
- value: ReactText;
89
- }) => void;
90
- value?: ReactText;
91
- label?: string | JSX.Element;
92
- name: string;
93
- style?: SerializedStyles;
94
- }
95
-
96
- /** @jsxImportSource @emotion/react */
97
-
98
- declare const Radio: React__default.FC<RadioProps>;
99
-
100
- interface ToastProps {
101
- title: string;
102
- description: string;
103
- type: "info" | "error" | "success";
104
- onClose?: () => void;
105
- }
106
-
107
- /** @jsxImportSource @emotion/react */
108
-
109
- declare const Toast: React__default.FC<ToastProps>;
110
-
111
- declare const colors: {
112
- Zeb_Solid_White: string;
113
- Zeb_Solid_BG_Blue: string;
114
- Zeb_Solid_Dark_Blue: string;
115
- Zeb_Solid_Bright_Blue: string;
116
- Zeb_Solid_Light_Blue: string;
117
- Zeb_Solid_Green: string;
118
- Zeb_Solid_Red: string;
119
- Zeb_Solid_Yellow: string;
120
- Zeb_Solid_Grey: string;
121
- Zeb_Solid_Dark_Grey: string;
122
- Zeb_Solid_Black: string;
123
- Zeb_Solid_Light_Blue_01: string;
124
- Zeb_Solid_Grey_01: string;
125
- Zeb_Gradient_Blue_01: string;
126
- Zeb_Gradient_Blue_02: string;
127
- Zeb_Gradient_Dark_Blue: string;
128
- Zeb_Transparent_25: string;
129
- Zeb_Transparent_Green: string;
130
- Zeb_Transparent_Yellow: string;
131
- Zeb_Transparent_Red: string;
132
- Zeb_BG_Blue: string;
133
- Zeb_BG_Light_Blue: string;
134
- Zeb_BG_Green: string;
135
- Zeb_BG_Red: string;
136
- Zeb_BG_Yellow: string;
137
- Zeb_Transparent_4: string;
138
- Zeb_Effects_Shadow_Hover: string;
139
- Zeb_Effects_Shadow_W_Drawer: string;
140
- Zeb_Effects_Shadow_M_Drawer: string;
141
- Zeb_Effects_Shadow_Hover_Up: string;
142
- Zeb_Effects_Shimmer: string;
143
- };
144
-
145
- interface Styles {
146
- [key: string]: CSSObject;
147
- }
148
- declare const typography: Styles;
149
-
150
- declare const utils: {
151
- remConverter: (value: number) => string;
152
- widthPercentage: (value: number) => _emotion_utils.SerializedStyles;
153
- heightPercentage: (value: number) => _emotion_utils.SerializedStyles;
154
- mr: (value: number) => _emotion_utils.SerializedStyles;
155
- ml: (value: number) => _emotion_utils.SerializedStyles;
156
- mt: (value: number) => _emotion_utils.SerializedStyles;
157
- mb: (value: number) => _emotion_utils.SerializedStyles;
158
- };
159
-
160
- declare const mixins: {
161
- flexJustifiedBetween: _emotion_utils.SerializedStyles;
162
- flexJustifiedCenter: _emotion_utils.SerializedStyles;
163
- flexJustifiedEnd: _emotion_utils.SerializedStyles;
164
- flexAlignCenter: _emotion_utils.SerializedStyles;
165
- flexAlignStart: _emotion_utils.SerializedStyles;
166
- flexNoWrap: _emotion_utils.SerializedStyles;
167
- flexColumn: _emotion_utils.SerializedStyles;
168
- textSuccess: _emotion_utils.SerializedStyles;
169
- textError: _emotion_utils.SerializedStyles;
170
- bgSuccess: _emotion_utils.SerializedStyles;
171
- bgError: _emotion_utils.SerializedStyles;
172
- textFaded: _emotion_utils.SerializedStyles;
173
- textCapitalize: _emotion_utils.SerializedStyles;
174
- textAlignmentCenter: _emotion_utils.SerializedStyles;
175
- textAlignmentLeft: _emotion_utils.SerializedStyles;
176
- textAlignmentRight: _emotion_utils.SerializedStyles;
177
- };
178
-
179
- export { Button, Checkbox, CircularLoader, Input, Popper, Radio, Toast, colors, mixins, typography, utils };
1
+ export * from "./components";
2
+ export * from "./styles";