zebpay-ui 0.0.2 → 0.0.5

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 (247) hide show
  1. package/dist/esm/dist/components/Button/index.d.ts +5 -0
  2. package/dist/esm/dist/components/Button/styles.d.ts +10 -0
  3. package/dist/esm/dist/components/Button/typings.d.ts +11 -0
  4. package/dist/esm/dist/components/Checkbox/index.d.ts +5 -0
  5. package/dist/esm/dist/components/Checkbox/styles.d.ts +8 -0
  6. package/dist/esm/dist/components/Checkbox/typings.d.ts +13 -0
  7. package/dist/esm/dist/components/CircularLoader/index.d.ts +4 -0
  8. package/dist/esm/dist/components/CircularLoader/style.d.ts +2 -0
  9. package/{src/components/CircularLoader/typings.ts → dist/esm/dist/components/CircularLoader/typings.d.ts} +2 -2
  10. package/dist/esm/dist/components/DateRangePicker/index.d.ts +14 -0
  11. package/dist/esm/dist/components/Input/index.d.ts +4 -0
  12. package/dist/esm/dist/components/Input/styles.d.ts +13 -0
  13. package/dist/esm/dist/components/Input/typings.d.ts +23 -0
  14. package/dist/esm/dist/components/Popper/index.d.ts +5 -0
  15. package/dist/esm/dist/components/Popper/styles.d.ts +6 -0
  16. package/dist/esm/dist/components/Popper/typings.d.ts +14 -0
  17. package/dist/esm/dist/components/Radio/index.d.ts +5 -0
  18. package/dist/esm/dist/components/Radio/styles.d.ts +3 -0
  19. package/dist/esm/dist/components/Radio/typings.d.ts +13 -0
  20. package/dist/esm/dist/components/Toast/index.d.ts +6 -0
  21. package/dist/esm/dist/components/Toast/styles.d.ts +12 -0
  22. package/dist/esm/dist/components/Toast/typings.d.ts +6 -0
  23. package/{src/components/index.ts → dist/esm/dist/components/index.d.ts} +1 -12
  24. package/{src/hooks/index.ts → dist/esm/dist/hooks/index.d.ts} +0 -0
  25. package/dist/esm/dist/hooks/useFocus.d.ts +6 -0
  26. package/{src/index.ts → dist/esm/dist/index.d.ts} +0 -0
  27. package/dist/esm/dist/styles/colors.d.ts +34 -0
  28. package/{src/styles/index.ts → dist/esm/dist/styles/index.d.ts} +0 -1
  29. package/dist/esm/dist/styles/mixins.d.ts +19 -0
  30. package/dist/esm/dist/styles/typography.d.ts +6 -0
  31. package/dist/esm/dist/styles/utils.d.ts +10 -0
  32. package/package.json +9 -8
  33. package/.babelrc +0 -9
  34. package/.eslintignore +0 -3
  35. package/.eslintrc.json +0 -28
  36. package/.github/CODEOWNERS +0 -1
  37. package/.github/workflows/gh-pages.yml +0 -22
  38. package/.husky/pre-commit +0 -4
  39. package/.lintstagedrc.js +0 -11
  40. package/.prettierignore +0 -3
  41. package/.storybook/main.js +0 -12
  42. package/.storybook/preview.js +0 -22
  43. package/dist/cjs/index.js +0 -657
  44. package/dist/cjs/index.js.map +0 -1
  45. package/dist/index.d.ts +0 -94
  46. package/icons/index.js +0 -29
  47. package/icons/out/icons.css +0 -489
  48. package/icons/out/icons.eot +0 -0
  49. package/icons/out/icons.html +0 -1473
  50. package/icons/out/icons.json +0 -159
  51. package/icons/out/icons.ts +0 -637
  52. package/icons/out/icons.woff +0 -0
  53. package/icons/out/icons.woff2 +0 -0
  54. package/icons/svgs/1-graph.svg +0 -3
  55. package/icons/svgs/4-graph.svg +0 -5
  56. package/icons/svgs/account-no.svg +0 -4
  57. package/icons/svgs/activity.svg +0 -5
  58. package/icons/svgs/add-collateral.svg +0 -3
  59. package/icons/svgs/add.svg +0 -3
  60. package/icons/svgs/address.svg +0 -4
  61. package/icons/svgs/api.svg +0 -6
  62. package/icons/svgs/arrow-down.svg +0 -3
  63. package/icons/svgs/arrow-left.svg +0 -3
  64. package/icons/svgs/arrow-right.svg +0 -3
  65. package/icons/svgs/arrow-up.svg +0 -3
  66. package/icons/svgs/asterik.svg +0 -3
  67. package/icons/svgs/balance-ltv.svg +0 -3
  68. package/icons/svgs/bank.svg +0 -8
  69. package/icons/svgs/blog.svg +0 -8
  70. package/icons/svgs/bonus.svg +0 -3
  71. package/icons/svgs/buy-crypto.svg +0 -3
  72. package/icons/svgs/calendar.svg +0 -3
  73. package/icons/svgs/camera.svg +0 -6
  74. package/icons/svgs/cancelled.svg +0 -3
  75. package/icons/svgs/candle chart.svg +0 -4
  76. package/icons/svgs/cheque.svg +0 -8
  77. package/icons/svgs/circle-cross.svg +0 -4
  78. package/icons/svgs/circulation-supply.svg +0 -3
  79. package/icons/svgs/city.svg +0 -3
  80. package/icons/svgs/coin-stack.svg +0 -5
  81. package/icons/svgs/coins.svg +0 -5
  82. package/icons/svgs/compare.svg +0 -3
  83. package/icons/svgs/completed.svg +0 -4
  84. package/icons/svgs/contract.svg +0 -3
  85. package/icons/svgs/copy.svg +0 -3
  86. package/icons/svgs/coupon.svg +0 -5
  87. package/icons/svgs/cross.svg +0 -3
  88. package/icons/svgs/deactivate.svg +0 -3
  89. package/icons/svgs/deposit.svg +0 -3
  90. package/icons/svgs/depth-chart.svg +0 -4
  91. package/icons/svgs/district.svg +0 -3
  92. package/icons/svgs/dob.svg +0 -3
  93. package/icons/svgs/download.svg +0 -4
  94. package/icons/svgs/downwards.svg +0 -3
  95. package/icons/svgs/driving-licence.svg +0 -3
  96. package/icons/svgs/earned.svg +0 -5
  97. package/icons/svgs/edit.svg +0 -3
  98. package/icons/svgs/email.svg +0 -3
  99. package/icons/svgs/emi-amount.svg +0 -6
  100. package/icons/svgs/emi-duedate.svg +0 -3
  101. package/icons/svgs/error.svg +0 -6
  102. package/icons/svgs/expand.svg +0 -3
  103. package/icons/svgs/external-link.svg +0 -3
  104. package/icons/svgs/facelock.svg +0 -3
  105. package/icons/svgs/fees.svg +0 -3
  106. package/icons/svgs/filter.svg +0 -3
  107. package/icons/svgs/fingerprint.svg +0 -7
  108. package/icons/svgs/form.svg +0 -3
  109. package/icons/svgs/globe.svg +0 -3
  110. package/icons/svgs/hamburger.svg +0 -3
  111. package/icons/svgs/help.svg +0 -5
  112. package/icons/svgs/hide.svg +0 -4
  113. package/icons/svgs/home.svg +0 -4
  114. package/icons/svgs/ifsc.svg +0 -7
  115. package/icons/svgs/income-source.svg +0 -3
  116. package/icons/svgs/indicators.svg +0 -3
  117. package/icons/svgs/info.svg +0 -3
  118. package/icons/svgs/initial-ltv.svg +0 -3
  119. package/icons/svgs/instant-buy-sell.svg +0 -3
  120. package/icons/svgs/interest-amount.svg +0 -3
  121. package/icons/svgs/interest-rate.svg +0 -6
  122. package/icons/svgs/kyc.svg +0 -5
  123. package/icons/svgs/lend.svg +0 -4
  124. package/icons/svgs/link.svg +0 -4
  125. package/icons/svgs/liquidation-cost.svg +0 -3
  126. package/icons/svgs/liquidation-id.svg +0 -3
  127. package/icons/svgs/liquidation-price.svg +0 -3
  128. package/icons/svgs/liquidation.svg +0 -4
  129. package/icons/svgs/list.svg +0 -8
  130. package/icons/svgs/loan-amount.svg +0 -3
  131. package/icons/svgs/loan-details.svg +0 -3
  132. package/icons/svgs/loan-repayment.svg +0 -3
  133. package/icons/svgs/loan-term.svg +0 -3
  134. package/icons/svgs/location.svg +0 -4
  135. package/icons/svgs/lock.svg +0 -3
  136. package/icons/svgs/logout.svg +0 -3
  137. package/icons/svgs/ltv-ratio.svg +0 -5
  138. package/icons/svgs/mail.svg +0 -3
  139. package/icons/svgs/map.svg +0 -4
  140. package/icons/svgs/margin-call.svg +0 -4
  141. package/icons/svgs/max-supply.svg +0 -3
  142. package/icons/svgs/menu.svg +0 -3
  143. package/icons/svgs/more-options.svg +0 -5
  144. package/icons/svgs/negative.svg +0 -3
  145. package/icons/svgs/network.svg +0 -3
  146. package/icons/svgs/next.svg +0 -3
  147. package/icons/svgs/nominee.svg +0 -3
  148. package/icons/svgs/note.svg +0 -3
  149. package/icons/svgs/notification.svg +0 -3
  150. package/icons/svgs/occupation.svg +0 -3
  151. package/icons/svgs/ongoing.svg +0 -4
  152. package/icons/svgs/order.svg +0 -4
  153. package/icons/svgs/orders-complete.svg +0 -6
  154. package/icons/svgs/pair-selector.svg +0 -3
  155. package/icons/svgs/pan.svg +0 -8
  156. package/icons/svgs/passbook.svg +0 -3
  157. package/icons/svgs/passport.svg +0 -4
  158. package/icons/svgs/pay-emi.svg +0 -3
  159. package/icons/svgs/pay-lumpsum.svg +0 -3
  160. package/icons/svgs/pay-off-loan.svg +0 -3
  161. package/icons/svgs/penalty-charges.svg +0 -3
  162. package/icons/svgs/percentage.svg +0 -6
  163. package/icons/svgs/phone.svg +0 -3
  164. package/icons/svgs/positive.svg +0 -3
  165. package/icons/svgs/prepay-principal.svg +0 -3
  166. package/icons/svgs/previous.svg +0 -3
  167. package/icons/svgs/profile.svg +0 -3
  168. package/icons/svgs/quicktrade.svg +0 -5
  169. package/icons/svgs/rank.svg +0 -3
  170. package/icons/svgs/ream.svg +0 -6
  171. package/icons/svgs/recieve.svg +0 -3
  172. package/icons/svgs/repayment-schedule.svg +0 -4
  173. package/icons/svgs/reports.svg +0 -6
  174. package/icons/svgs/reset.svg +0 -4
  175. package/icons/svgs/save.svg +0 -3
  176. package/icons/svgs/scan.svg +0 -3
  177. package/icons/svgs/search.svg +0 -3
  178. package/icons/svgs/security.svg +0 -4
  179. package/icons/svgs/selfie.svg +0 -5
  180. package/icons/svgs/sell-crypto.svg +0 -3
  181. package/icons/svgs/send-email.svg +0 -3
  182. package/icons/svgs/send.svg +0 -3
  183. package/icons/svgs/separator.svg +0 -3
  184. package/icons/svgs/setttings.svg +0 -3
  185. package/icons/svgs/share.svg +0 -3
  186. package/icons/svgs/show.svg +0 -3
  187. package/icons/svgs/side.svg +0 -7
  188. package/icons/svgs/sip.svg +0 -4
  189. package/icons/svgs/sms.svg +0 -6
  190. package/icons/svgs/star-filled.svg +0 -3
  191. package/icons/svgs/star.svg +0 -3
  192. package/icons/svgs/statement.svg +0 -3
  193. package/icons/svgs/stop.svg +0 -3
  194. package/icons/svgs/street-address.svg +0 -3
  195. package/icons/svgs/subtract.svg +0 -3
  196. package/icons/svgs/success.svg +0 -4
  197. package/icons/svgs/support.svg +0 -5
  198. package/icons/svgs/templates.svg +0 -3
  199. package/icons/svgs/term.svg +0 -3
  200. package/icons/svgs/tick.svg +0 -3
  201. package/icons/svgs/total-payable-lumpsum.svg +0 -9
  202. package/icons/svgs/trash.svg +0 -3
  203. package/icons/svgs/unlock.svg +0 -3
  204. package/icons/svgs/upi.svg +0 -3
  205. package/icons/svgs/upload.svg +0 -4
  206. package/icons/svgs/upwards.svg +0 -3
  207. package/icons/svgs/voting-card.svg +0 -5
  208. package/icons/svgs/wallet.svg +0 -3
  209. package/icons/svgs/xpress.svg +0 -6
  210. package/icons/svgs/zip-code.svg +0 -3
  211. package/rollup.config.js +0 -49
  212. package/src/components/Button/index.tsx +0 -55
  213. package/src/components/Button/styles.ts +0 -142
  214. package/src/components/Button/typings.ts +0 -20
  215. package/src/components/Checkbox/index.tsx +0 -44
  216. package/src/components/Checkbox/styles.ts +0 -76
  217. package/src/components/Checkbox/typings.ts +0 -11
  218. package/src/components/CircularLoader/index.tsx +0 -22
  219. package/src/components/CircularLoader/style.ts +0 -18
  220. package/src/components/DateRangePicker/index.tsx +0 -36
  221. package/src/components/DateRangePicker/styles.css +0 -676
  222. package/src/components/Input/index.tsx +0 -95
  223. package/src/components/Input/styles.ts +0 -79
  224. package/src/components/Input/typings.ts +0 -25
  225. package/src/components/Popper/index.tsx +0 -62
  226. package/src/components/Popper/styles.ts +0 -59
  227. package/src/components/Popper/typings.ts +0 -16
  228. package/src/components/Radio/index.tsx +0 -32
  229. package/src/components/Radio/styles.ts +0 -51
  230. package/src/components/Radio/typings.ts +0 -11
  231. package/src/components/Toast/index.tsx +0 -88
  232. package/src/components/Toast/styles.ts +0 -69
  233. package/src/components/Toast/typings.ts +0 -6
  234. package/src/hooks/useFocus.ts +0 -16
  235. package/src/styles/colors.ts +0 -39
  236. package/src/styles/mixins.ts +0 -52
  237. package/src/styles/typography.ts +0 -331
  238. package/src/styles/utils.ts +0 -39
  239. package/stories/Button.stories.tsx +0 -20
  240. package/stories/Checkbox.stories.tsx +0 -18
  241. package/stories/CircularLoader.stories.tsx +0 -15
  242. package/stories/DateRangePicker.stories.tsx +0 -18
  243. package/stories/Input.stories.tsx +0 -18
  244. package/stories/Popper.stories.tsx +0 -23
  245. package/stories/Radio.stories.tsx +0 -18
  246. package/stories/Toast.stories.tsx +0 -17
  247. package/tsconfig.json +0 -24
@@ -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;
@@ -1,4 +1,4 @@
1
1
  export interface CircularLoaderProps {
2
- size: number;
3
- color?: string;
2
+ size: number;
3
+ color?: string;
4
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
+ }
@@ -1,19 +1,8 @@
1
1
  import Button from "./Button";
2
2
  import Checkbox from "./Checkbox";
3
3
  import CircularLoader from "./CircularLoader";
4
- // import DateRangePicker from "./DateRangePicker";
5
4
  import Input from "./Input";
6
5
  import Popper from "./Popper";
7
6
  import Radio from "./Radio";
8
7
  import Toast from "./Toast";
9
-
10
- export {
11
- Button,
12
- Checkbox,
13
- CircularLoader,
14
- // DateRangePicker,
15
- Input,
16
- Radio,
17
- Toast,
18
- Popper,
19
- };
8
+ export { Button, Checkbox, CircularLoader, Input, Radio, Toast, Popper, };
@@ -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;
File without changes
@@ -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;
@@ -2,5 +2,4 @@ import colors from "./colors";
2
2
  import typography from "./typography";
3
3
  import utils from "./utils";
4
4
  import mixins from "./mixins";
5
-
6
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,6 +1,6 @@
1
1
  {
2
2
  "name": "zebpay-ui",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
4
  "description": "",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -12,11 +12,11 @@
12
12
  "build-storybook": "build-storybook",
13
13
  "format": "prettier --write .",
14
14
  "lint": "eslint . --fix",
15
- "build:icons": "fantasticon icons/svgs -o icons/out",
15
+ "build:icons": "mkdir dist/icons && fantasticon svgs -o dist/icons",
16
16
  "lint-staged": "lint-staged",
17
17
  "prepare": "husky install",
18
- "build": "rollup -c",
19
- "watch": "rollup rollup.config.js -w"
18
+ "build": "rimraf dist && rollup -c",
19
+ "watch": "rimraf dist && rollup rollup.config.js -w"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@babel/core": "^7.17.5",
@@ -42,6 +42,7 @@
42
42
  "husky": "^7.0.4",
43
43
  "lint-staged": "^12.4.1",
44
44
  "prettier": "^2.6.2",
45
+ "rimraf": "^3.0.2",
45
46
  "rollup": "^2.70.1",
46
47
  "rollup-plugin-babel": "^4.4.0",
47
48
  "rollup-plugin-dts": "^4.2.0",
@@ -50,7 +51,9 @@
50
51
  "typescript": "^4.5.5"
51
52
  },
52
53
  "peerDependencies": {
53
- "@emotion/react": "^11.8.1"
54
+ "@emotion/react": "^11.8.1",
55
+ "react": "^17.0.2",
56
+ "react-dom": "^17.0.2"
54
57
  },
55
58
  "dependencies": {
56
59
  "@babel/preset-react": "^7.18.6",
@@ -58,8 +61,6 @@
58
61
  "@types/react-date-range": "^1.4.3",
59
62
  "date-fns": "^2.28.0",
60
63
  "react-date-range": "^1.4.0",
61
- "react-hot-toast": "^2.2.0",
62
- "react": "^17.0.2",
63
- "react-dom": "^17.0.2"
64
+ "react-hot-toast": "^2.2.0"
64
65
  }
65
66
  }
package/.babelrc DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "presets": [
3
- [
4
- "@babel/preset-react",
5
- { "runtime": "automatic", "importSource": "@emotion/react" }
6
- ]
7
- ],
8
- "plugins": ["@emotion/babel-plugin"]
9
- }
package/.eslintignore DELETED
@@ -1,3 +0,0 @@
1
- node_modules/
2
- yarn.lock
3
- dist
package/.eslintrc.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "plugins": ["@typescript-eslint", "eslint-plugin-prettier"],
3
- "extends": [
4
- "plugin:@typescript-eslint/recommended",
5
- "eslint-config-prettier"
6
- ],
7
- "root": true,
8
- "rules": {
9
- "prettier/prettier": "error",
10
- "indent": [
11
- "error",
12
- 2,
13
- {
14
- "SwitchCase": 1
15
- }
16
- ],
17
- "linebreak-style": ["error", "unix"],
18
- "quotes": ["error", "double"],
19
- "semi": ["error", "always"],
20
- "prefer-const": "error",
21
- "@typescript-eslint/no-empty-interface": "off",
22
- "@typescript-eslint/no-empty-function": "off",
23
- "@typescript-eslint/no-unused-vars": "off",
24
- "@typescript-eslint/no-explicit-any": "off",
25
- "@next/next/no-img-element": "off",
26
- "jsx-a11y/alt-text": "off"
27
- }
28
- }
@@ -1 +0,0 @@
1
- * @zebpay/z-new
@@ -1,22 +0,0 @@
1
- name: Build and Deploy
2
- on:
3
- pull_request:
4
- branches:
5
- - main
6
- jobs:
7
- build-and-deploy:
8
- concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
9
- runs-on: ubuntu-latest
10
- steps:
11
- - name: Checkout 🛎️
12
- uses: actions/checkout@v3
13
-
14
- - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
15
- run: |
16
- yarn install
17
- yarn build-storybook
18
- - name: Deploy 🚀
19
- uses: JamesIves/github-pages-deploy-action@v4.3.0
20
- with:
21
- branch: gh-pages # The branch the action should deploy to.
22
- folder: storybook-static # The folder the action should deploy.
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- yarn lint-staged
package/.lintstagedrc.js DELETED
@@ -1,11 +0,0 @@
1
- module.exports = {
2
- // Type check TypeScript files
3
- "**/*.(ts|tsx)": () => "yarn tsc --noEmit",
4
-
5
- // Format check TypeScript files
6
- "**/*.(ts|tsx)": () => "yarn lint",
7
-
8
- // Format MarkDown and JSON
9
- "**/*.(md|json)": (filenames) =>
10
- `yarn prettier --write ${filenames.join(" ")}`,
11
- };
package/.prettierignore DELETED
@@ -1,3 +0,0 @@
1
- node_modules/
2
- yarn.lock
3
- dist
@@ -1,12 +0,0 @@
1
- module.exports = {
2
- stories: [
3
- "../stories/**/*.stories.mdx",
4
- "../stories/**/*.stories.@(js|jsx|ts|tsx)",
5
- ],
6
- addons: [
7
- "@storybook/addon-links",
8
- "@storybook/addon-essentials",
9
- "@storybook/addon-interactions",
10
- ],
11
- framework: "@storybook/react",
12
- };
@@ -1,22 +0,0 @@
1
- export const parameters = {
2
- actions: { argTypesRegex: "^on[A-Z].*" },
3
- controls: {
4
- matchers: {
5
- color: /(background|color)$/i,
6
- date: /Date$/,
7
- },
8
- },
9
- backgrounds: {
10
- default: "dark",
11
- values: [
12
- {
13
- name: "dark",
14
- value: "#34345A",
15
- },
16
- {
17
- name: "light",
18
- value: "#ffffff",
19
- },
20
- ],
21
- },
22
- };