zebpay-ui 0.0.9 → 0.0.12

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 (63) hide show
  1. package/dist/cjs/components/Button/index.d.ts +5 -0
  2. package/dist/cjs/components/Button/styles.d.ts +10 -0
  3. package/dist/cjs/components/Button/typings.d.ts +11 -0
  4. package/dist/cjs/components/Checkbox/index.d.ts +5 -0
  5. package/dist/cjs/components/Checkbox/styles.d.ts +8 -0
  6. package/dist/cjs/components/Checkbox/typings.d.ts +13 -0
  7. package/dist/cjs/components/CircularLoader/index.d.ts +4 -0
  8. package/dist/cjs/components/CircularLoader/style.d.ts +2 -0
  9. package/dist/cjs/components/CircularLoader/typings.d.ts +4 -0
  10. package/dist/cjs/components/DateRangePicker/index.d.ts +14 -0
  11. package/dist/cjs/components/Input/index.d.ts +4 -0
  12. package/dist/cjs/components/Input/styles.d.ts +13 -0
  13. package/dist/cjs/components/Input/typings.d.ts +23 -0
  14. package/dist/cjs/components/Popper/index.d.ts +5 -0
  15. package/dist/cjs/components/Popper/styles.d.ts +6 -0
  16. package/dist/cjs/components/Popper/typings.d.ts +14 -0
  17. package/dist/cjs/components/Radio/index.d.ts +5 -0
  18. package/dist/cjs/components/Radio/styles.d.ts +3 -0
  19. package/dist/cjs/components/Radio/typings.d.ts +13 -0
  20. package/dist/cjs/components/Toast/index.d.ts +6 -0
  21. package/dist/cjs/components/Toast/styles.d.ts +12 -0
  22. package/dist/cjs/components/Toast/typings.d.ts +6 -0
  23. package/dist/cjs/components/index.d.ts +8 -0
  24. package/dist/cjs/hooks/index.d.ts +1 -0
  25. package/dist/cjs/hooks/useFocus.d.ts +6 -0
  26. package/dist/cjs/index.d.ts +2 -179
  27. package/dist/cjs/styles/colors.d.ts +34 -0
  28. package/dist/cjs/styles/index.d.ts +5 -0
  29. package/dist/cjs/styles/mixins.d.ts +19 -0
  30. package/dist/cjs/styles/typography.d.ts +6 -0
  31. package/dist/cjs/styles/utils.d.ts +10 -0
  32. package/dist/esm/components/Button/index.d.ts +5 -0
  33. package/dist/esm/components/Button/styles.d.ts +10 -0
  34. package/dist/esm/components/Button/typings.d.ts +11 -0
  35. package/dist/esm/components/Checkbox/index.d.ts +5 -0
  36. package/dist/esm/components/Checkbox/styles.d.ts +8 -0
  37. package/dist/esm/components/Checkbox/typings.d.ts +13 -0
  38. package/dist/esm/components/CircularLoader/index.d.ts +4 -0
  39. package/dist/esm/components/CircularLoader/style.d.ts +2 -0
  40. package/dist/esm/components/CircularLoader/typings.d.ts +4 -0
  41. package/dist/esm/components/DateRangePicker/index.d.ts +14 -0
  42. package/dist/esm/components/Input/index.d.ts +4 -0
  43. package/dist/esm/components/Input/styles.d.ts +13 -0
  44. package/dist/esm/components/Input/typings.d.ts +23 -0
  45. package/dist/esm/components/Popper/index.d.ts +5 -0
  46. package/dist/esm/components/Popper/styles.d.ts +6 -0
  47. package/dist/esm/components/Popper/typings.d.ts +14 -0
  48. package/dist/esm/components/Radio/index.d.ts +5 -0
  49. package/dist/esm/components/Radio/styles.d.ts +3 -0
  50. package/dist/esm/components/Radio/typings.d.ts +13 -0
  51. package/dist/esm/components/Toast/index.d.ts +6 -0
  52. package/dist/esm/components/Toast/styles.d.ts +12 -0
  53. package/dist/esm/components/Toast/typings.d.ts +6 -0
  54. package/dist/esm/components/index.d.ts +8 -0
  55. package/dist/esm/hooks/index.d.ts +1 -0
  56. package/dist/esm/hooks/useFocus.d.ts +6 -0
  57. package/dist/esm/index.d.ts +2 -179
  58. package/dist/esm/styles/colors.d.ts +34 -0
  59. package/dist/esm/styles/index.d.ts +5 -0
  60. package/dist/esm/styles/mixins.d.ts +19 -0
  61. package/dist/esm/styles/typography.d.ts +6 -0
  62. package/dist/esm/styles/utils.d.ts +10 -0
  63. package/package.json +9 -9
@@ -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 * 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 { 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,8 @@
1
+ import Button from "./Button";
2
+ import Checkbox from "./Checkbox";
3
+ import CircularLoader from "./CircularLoader";
4
+ import Input from "./Input";
5
+ import Popper from "./Popper";
6
+ import Radio from "./Radio";
7
+ import Toast from "./Toast";
8
+ export { Button, Checkbox, CircularLoader, Input, Radio, Toast, Popper, };
@@ -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";
@@ -0,0 +1,34 @@
1
+ declare const colors: {
2
+ Zeb_Solid_White: string;
3
+ Zeb_Solid_BG_Blue: string;
4
+ Zeb_Solid_Dark_Blue: string;
5
+ Zeb_Solid_Bright_Blue: string;
6
+ Zeb_Solid_Light_Blue: string;
7
+ Zeb_Solid_Green: string;
8
+ Zeb_Solid_Red: string;
9
+ Zeb_Solid_Yellow: string;
10
+ Zeb_Solid_Grey: string;
11
+ Zeb_Solid_Dark_Grey: string;
12
+ Zeb_Solid_Black: string;
13
+ Zeb_Solid_Light_Blue_01: string;
14
+ Zeb_Solid_Grey_01: string;
15
+ Zeb_Gradient_Blue_01: string;
16
+ Zeb_Gradient_Blue_02: string;
17
+ Zeb_Gradient_Dark_Blue: string;
18
+ Zeb_Transparent_25: string;
19
+ Zeb_Transparent_Green: string;
20
+ Zeb_Transparent_Yellow: string;
21
+ Zeb_Transparent_Red: string;
22
+ Zeb_BG_Blue: string;
23
+ Zeb_BG_Light_Blue: string;
24
+ Zeb_BG_Green: string;
25
+ Zeb_BG_Red: string;
26
+ Zeb_BG_Yellow: string;
27
+ Zeb_Transparent_4: string;
28
+ Zeb_Effects_Shadow_Hover: string;
29
+ Zeb_Effects_Shadow_W_Drawer: string;
30
+ Zeb_Effects_Shadow_M_Drawer: string;
31
+ Zeb_Effects_Shadow_Hover_Up: string;
32
+ Zeb_Effects_Shimmer: string;
33
+ };
34
+ export default colors;
@@ -0,0 +1,5 @@
1
+ import colors from "./colors";
2
+ import typography from "./typography";
3
+ import utils from "./utils";
4
+ import mixins from "./mixins";
5
+ export { colors, typography, utils, mixins };
@@ -0,0 +1,19 @@
1
+ declare const mixins: {
2
+ flexJustifiedBetween: import("@emotion/utils").SerializedStyles;
3
+ flexJustifiedCenter: import("@emotion/utils").SerializedStyles;
4
+ flexJustifiedEnd: import("@emotion/utils").SerializedStyles;
5
+ flexAlignCenter: import("@emotion/utils").SerializedStyles;
6
+ flexAlignStart: import("@emotion/utils").SerializedStyles;
7
+ flexNoWrap: import("@emotion/utils").SerializedStyles;
8
+ flexColumn: import("@emotion/utils").SerializedStyles;
9
+ textSuccess: import("@emotion/utils").SerializedStyles;
10
+ textError: import("@emotion/utils").SerializedStyles;
11
+ bgSuccess: import("@emotion/utils").SerializedStyles;
12
+ bgError: import("@emotion/utils").SerializedStyles;
13
+ textFaded: import("@emotion/utils").SerializedStyles;
14
+ textCapitalize: import("@emotion/utils").SerializedStyles;
15
+ textAlignmentCenter: import("@emotion/utils").SerializedStyles;
16
+ textAlignmentLeft: import("@emotion/utils").SerializedStyles;
17
+ textAlignmentRight: import("@emotion/utils").SerializedStyles;
18
+ };
19
+ export default mixins;
@@ -0,0 +1,6 @@
1
+ import { CSSObject } from "@emotion/react";
2
+ interface Styles {
3
+ [key: string]: CSSObject;
4
+ }
5
+ declare const typography: Styles;
6
+ export default typography;
@@ -0,0 +1,10 @@
1
+ declare const utils: {
2
+ remConverter: (value: number) => string;
3
+ widthPercentage: (value: number) => import("@emotion/utils").SerializedStyles;
4
+ heightPercentage: (value: number) => import("@emotion/utils").SerializedStyles;
5
+ mr: (value: number) => import("@emotion/utils").SerializedStyles;
6
+ ml: (value: number) => import("@emotion/utils").SerializedStyles;
7
+ mt: (value: number) => import("@emotion/utils").SerializedStyles;
8
+ mb: (value: number) => import("@emotion/utils").SerializedStyles;
9
+ };
10
+ export default utils;
@@ -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 * 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 { 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,8 @@
1
+ import Button from "./Button";
2
+ import Checkbox from "./Checkbox";
3
+ import CircularLoader from "./CircularLoader";
4
+ import Input from "./Input";
5
+ import Popper from "./Popper";
6
+ import Radio from "./Radio";
7
+ import Toast from "./Toast";
8
+ export { Button, Checkbox, CircularLoader, Input, Radio, Toast, Popper, };
@@ -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";
@@ -0,0 +1,34 @@
1
+ declare const colors: {
2
+ Zeb_Solid_White: string;
3
+ Zeb_Solid_BG_Blue: string;
4
+ Zeb_Solid_Dark_Blue: string;
5
+ Zeb_Solid_Bright_Blue: string;
6
+ Zeb_Solid_Light_Blue: string;
7
+ Zeb_Solid_Green: string;
8
+ Zeb_Solid_Red: string;
9
+ Zeb_Solid_Yellow: string;
10
+ Zeb_Solid_Grey: string;
11
+ Zeb_Solid_Dark_Grey: string;
12
+ Zeb_Solid_Black: string;
13
+ Zeb_Solid_Light_Blue_01: string;
14
+ Zeb_Solid_Grey_01: string;
15
+ Zeb_Gradient_Blue_01: string;
16
+ Zeb_Gradient_Blue_02: string;
17
+ Zeb_Gradient_Dark_Blue: string;
18
+ Zeb_Transparent_25: string;
19
+ Zeb_Transparent_Green: string;
20
+ Zeb_Transparent_Yellow: string;
21
+ Zeb_Transparent_Red: string;
22
+ Zeb_BG_Blue: string;
23
+ Zeb_BG_Light_Blue: string;
24
+ Zeb_BG_Green: string;
25
+ Zeb_BG_Red: string;
26
+ Zeb_BG_Yellow: string;
27
+ Zeb_Transparent_4: string;
28
+ Zeb_Effects_Shadow_Hover: string;
29
+ Zeb_Effects_Shadow_W_Drawer: string;
30
+ Zeb_Effects_Shadow_M_Drawer: string;
31
+ Zeb_Effects_Shadow_Hover_Up: string;
32
+ Zeb_Effects_Shimmer: string;
33
+ };
34
+ export default colors;
@@ -0,0 +1,5 @@
1
+ import colors from "./colors";
2
+ import typography from "./typography";
3
+ import utils from "./utils";
4
+ import mixins from "./mixins";
5
+ export { colors, typography, utils, mixins };
@@ -0,0 +1,19 @@
1
+ declare const mixins: {
2
+ flexJustifiedBetween: import("@emotion/utils").SerializedStyles;
3
+ flexJustifiedCenter: import("@emotion/utils").SerializedStyles;
4
+ flexJustifiedEnd: import("@emotion/utils").SerializedStyles;
5
+ flexAlignCenter: import("@emotion/utils").SerializedStyles;
6
+ flexAlignStart: import("@emotion/utils").SerializedStyles;
7
+ flexNoWrap: import("@emotion/utils").SerializedStyles;
8
+ flexColumn: import("@emotion/utils").SerializedStyles;
9
+ textSuccess: import("@emotion/utils").SerializedStyles;
10
+ textError: import("@emotion/utils").SerializedStyles;
11
+ bgSuccess: import("@emotion/utils").SerializedStyles;
12
+ bgError: import("@emotion/utils").SerializedStyles;
13
+ textFaded: import("@emotion/utils").SerializedStyles;
14
+ textCapitalize: import("@emotion/utils").SerializedStyles;
15
+ textAlignmentCenter: import("@emotion/utils").SerializedStyles;
16
+ textAlignmentLeft: import("@emotion/utils").SerializedStyles;
17
+ textAlignmentRight: import("@emotion/utils").SerializedStyles;
18
+ };
19
+ export default mixins;
@@ -0,0 +1,6 @@
1
+ import { CSSObject } from "@emotion/react";
2
+ interface Styles {
3
+ [key: string]: CSSObject;
4
+ }
5
+ declare const typography: Styles;
6
+ export default typography;
@@ -0,0 +1,10 @@
1
+ declare const utils: {
2
+ remConverter: (value: number) => string;
3
+ widthPercentage: (value: number) => import("@emotion/utils").SerializedStyles;
4
+ heightPercentage: (value: number) => import("@emotion/utils").SerializedStyles;
5
+ mr: (value: number) => import("@emotion/utils").SerializedStyles;
6
+ ml: (value: number) => import("@emotion/utils").SerializedStyles;
7
+ mt: (value: number) => import("@emotion/utils").SerializedStyles;
8
+ mb: (value: number) => import("@emotion/utils").SerializedStyles;
9
+ };
10
+ export default utils;
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "zebpay-ui",
3
- "version": "0.0.9",
3
+ "version": "0.0.12",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "repository": "https://github.com/zebpay/znew.design.system.git",
8
8
  "author": "chaitanyazebpay <chaitanya.g@zebpay.com>",
9
9
  "license": "MIT",
10
- "type": "module",
11
10
  "scripts": {
12
11
  "storybook": "start-storybook -p 6006",
13
12
  "build-storybook": "build-storybook",
@@ -16,12 +15,13 @@
16
15
  "build:icons": "yarn run build && mkdirp dist/icons && fantasticon svgs -o dist/icons",
17
16
  "lint-staged": "lint-staged",
18
17
  "prepare": "husky install",
19
- "build": "rimraf dist && rollup -c && rimraf dist/esm/dist && rimraf dist/cjs/dist",
20
- "watch": "rimraf dist && rollup rollup.config.js -w && rimraf dist/esm/dist"
18
+ "build": "rimraf dist && rollup -c",
19
+ "watch": "rimraf dist && rollup -c rollup.config.js -w"
21
20
  },
22
21
  "devDependencies": {
23
22
  "@babel/core": "^7.17.5",
24
- "@emotion/react": "^11.9.3",
23
+ "@babel/preset-react": "^7.18.6",
24
+ "@emotion/babel-plugin": "^11.9.2",
25
25
  "@rollup/plugin-commonjs": "^21.0.3",
26
26
  "@rollup/plugin-node-resolve": "^13.1.3",
27
27
  "@rollup/plugin-typescript": "^8.3.1",
@@ -47,22 +47,22 @@
47
47
  "rimraf": "^3.0.2",
48
48
  "rollup": "^2.70.1",
49
49
  "rollup-plugin-babel": "^4.4.0",
50
- "rollup-plugin-dts": "^4.2.0",
51
50
  "rollup-plugin-peer-deps-external": "^2.2.4",
52
51
  "rollup-plugin-terser": "^7.0.2",
53
52
  "typescript": "^4.5.5"
54
53
  },
55
54
  "peerDependencies": {
56
- "@emotion/react": "^11.8.1",
55
+ "@emotion/react": "^11.9.3",
57
56
  "react": "^17.0.2",
58
57
  "react-dom": "^17.0.2"
59
58
  },
60
59
  "dependencies": {
61
- "@babel/preset-react": "^7.18.6",
62
- "@emotion/babel-plugin": "^11.9.2",
60
+ "@emotion/react": "^11.9.3",
63
61
  "@types/react-date-range": "^1.4.3",
64
62
  "date-fns": "^2.28.0",
63
+ "react": "^17.0.2",
65
64
  "react-date-range": "^1.4.0",
65
+ "react-dom": "^17.0.2",
66
66
  "react-hot-toast": "^2.2.0"
67
67
  }
68
68
  }