zebpay-ui 0.0.1 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/dist/components/Button/index.d.ts +5 -0
- package/dist/esm/dist/components/Button/styles.d.ts +10 -0
- package/dist/esm/dist/components/Button/typings.d.ts +11 -0
- package/dist/esm/dist/components/Checkbox/index.d.ts +5 -0
- package/dist/esm/dist/components/Checkbox/styles.d.ts +8 -0
- package/dist/esm/dist/components/Checkbox/typings.d.ts +13 -0
- package/dist/esm/dist/components/CircularLoader/index.d.ts +4 -0
- package/dist/esm/dist/components/CircularLoader/style.d.ts +2 -0
- package/{src/components/CircularLoader/typings.ts → dist/esm/dist/components/CircularLoader/typings.d.ts} +2 -2
- package/dist/esm/dist/components/DateRangePicker/index.d.ts +14 -0
- package/dist/esm/dist/components/Input/index.d.ts +4 -0
- package/dist/esm/dist/components/Input/styles.d.ts +13 -0
- package/dist/esm/dist/components/Input/typings.d.ts +23 -0
- package/dist/esm/dist/components/Popper/index.d.ts +5 -0
- package/dist/esm/dist/components/Popper/styles.d.ts +6 -0
- package/dist/esm/dist/components/Popper/typings.d.ts +14 -0
- package/dist/esm/dist/components/Radio/index.d.ts +5 -0
- package/dist/esm/dist/components/Radio/styles.d.ts +3 -0
- package/dist/esm/dist/components/Radio/typings.d.ts +13 -0
- package/dist/esm/dist/components/Toast/index.d.ts +6 -0
- package/dist/esm/dist/components/Toast/styles.d.ts +12 -0
- package/dist/esm/dist/components/Toast/typings.d.ts +6 -0
- package/{src/components/index.ts → dist/esm/dist/components/index.d.ts} +1 -12
- package/{src/hooks/index.ts → dist/esm/dist/hooks/index.d.ts} +0 -0
- package/dist/esm/dist/hooks/useFocus.d.ts +6 -0
- package/dist/esm/dist/index.d.ts +2 -0
- package/dist/esm/dist/styles/colors.d.ts +34 -0
- package/{src/styles/index.ts → dist/esm/dist/styles/index.d.ts} +0 -1
- package/dist/esm/dist/styles/mixins.d.ts +19 -0
- package/dist/esm/dist/styles/typography.d.ts +6 -0
- package/dist/esm/dist/styles/utils.d.ts +10 -0
- package/dist/esm/index.d.ts +179 -0
- package/dist/esm/index.js +3 -647
- package/dist/esm/index.js.map +1 -1
- package/package.json +10 -9
- package/.babelrc +0 -9
- package/.eslintignore +0 -3
- package/.eslintrc.json +0 -28
- package/.github/CODEOWNERS +0 -1
- package/.github/workflows/gh-pages.yml +0 -22
- package/.husky/pre-commit +0 -4
- package/.lintstagedrc.js +0 -11
- package/.prettierignore +0 -3
- package/.storybook/main.js +0 -12
- package/.storybook/preview.js +0 -22
- package/dist/cjs/index.js +0 -657
- package/dist/cjs/index.js.map +0 -1
- package/dist/index.d.ts +0 -94
- package/icons/index.js +0 -29
- package/icons/out/icons.css +0 -489
- package/icons/out/icons.eot +0 -0
- package/icons/out/icons.html +0 -1473
- package/icons/out/icons.json +0 -159
- package/icons/out/icons.ts +0 -637
- package/icons/out/icons.woff +0 -0
- package/icons/out/icons.woff2 +0 -0
- package/icons/svgs/1-graph.svg +0 -3
- package/icons/svgs/4-graph.svg +0 -5
- package/icons/svgs/account-no.svg +0 -4
- package/icons/svgs/activity.svg +0 -5
- package/icons/svgs/add-collateral.svg +0 -3
- package/icons/svgs/add.svg +0 -3
- package/icons/svgs/address.svg +0 -4
- package/icons/svgs/api.svg +0 -6
- package/icons/svgs/arrow-down.svg +0 -3
- package/icons/svgs/arrow-left.svg +0 -3
- package/icons/svgs/arrow-right.svg +0 -3
- package/icons/svgs/arrow-up.svg +0 -3
- package/icons/svgs/asterik.svg +0 -3
- package/icons/svgs/balance-ltv.svg +0 -3
- package/icons/svgs/bank.svg +0 -8
- package/icons/svgs/blog.svg +0 -8
- package/icons/svgs/bonus.svg +0 -3
- package/icons/svgs/buy-crypto.svg +0 -3
- package/icons/svgs/calendar.svg +0 -3
- package/icons/svgs/camera.svg +0 -6
- package/icons/svgs/cancelled.svg +0 -3
- package/icons/svgs/candle chart.svg +0 -4
- package/icons/svgs/cheque.svg +0 -8
- package/icons/svgs/circle-cross.svg +0 -4
- package/icons/svgs/circulation-supply.svg +0 -3
- package/icons/svgs/city.svg +0 -3
- package/icons/svgs/coin-stack.svg +0 -5
- package/icons/svgs/coins.svg +0 -5
- package/icons/svgs/compare.svg +0 -3
- package/icons/svgs/completed.svg +0 -4
- package/icons/svgs/contract.svg +0 -3
- package/icons/svgs/copy.svg +0 -3
- package/icons/svgs/coupon.svg +0 -5
- package/icons/svgs/cross.svg +0 -3
- package/icons/svgs/deactivate.svg +0 -3
- package/icons/svgs/deposit.svg +0 -3
- package/icons/svgs/depth-chart.svg +0 -4
- package/icons/svgs/district.svg +0 -3
- package/icons/svgs/dob.svg +0 -3
- package/icons/svgs/download.svg +0 -4
- package/icons/svgs/downwards.svg +0 -3
- package/icons/svgs/driving-licence.svg +0 -3
- package/icons/svgs/earned.svg +0 -5
- package/icons/svgs/edit.svg +0 -3
- package/icons/svgs/email.svg +0 -3
- package/icons/svgs/emi-amount.svg +0 -6
- package/icons/svgs/emi-duedate.svg +0 -3
- package/icons/svgs/error.svg +0 -6
- package/icons/svgs/expand.svg +0 -3
- package/icons/svgs/external-link.svg +0 -3
- package/icons/svgs/facelock.svg +0 -3
- package/icons/svgs/fees.svg +0 -3
- package/icons/svgs/filter.svg +0 -3
- package/icons/svgs/fingerprint.svg +0 -7
- package/icons/svgs/form.svg +0 -3
- package/icons/svgs/globe.svg +0 -3
- package/icons/svgs/hamburger.svg +0 -3
- package/icons/svgs/help.svg +0 -5
- package/icons/svgs/hide.svg +0 -4
- package/icons/svgs/home.svg +0 -4
- package/icons/svgs/ifsc.svg +0 -7
- package/icons/svgs/income-source.svg +0 -3
- package/icons/svgs/indicators.svg +0 -3
- package/icons/svgs/info.svg +0 -3
- package/icons/svgs/initial-ltv.svg +0 -3
- package/icons/svgs/instant-buy-sell.svg +0 -3
- package/icons/svgs/interest-amount.svg +0 -3
- package/icons/svgs/interest-rate.svg +0 -6
- package/icons/svgs/kyc.svg +0 -5
- package/icons/svgs/lend.svg +0 -4
- package/icons/svgs/link.svg +0 -4
- package/icons/svgs/liquidation-cost.svg +0 -3
- package/icons/svgs/liquidation-id.svg +0 -3
- package/icons/svgs/liquidation-price.svg +0 -3
- package/icons/svgs/liquidation.svg +0 -4
- package/icons/svgs/list.svg +0 -8
- package/icons/svgs/loan-amount.svg +0 -3
- package/icons/svgs/loan-details.svg +0 -3
- package/icons/svgs/loan-repayment.svg +0 -3
- package/icons/svgs/loan-term.svg +0 -3
- package/icons/svgs/location.svg +0 -4
- package/icons/svgs/lock.svg +0 -3
- package/icons/svgs/logout.svg +0 -3
- package/icons/svgs/ltv-ratio.svg +0 -5
- package/icons/svgs/mail.svg +0 -3
- package/icons/svgs/map.svg +0 -4
- package/icons/svgs/margin-call.svg +0 -4
- package/icons/svgs/max-supply.svg +0 -3
- package/icons/svgs/menu.svg +0 -3
- package/icons/svgs/more-options.svg +0 -5
- package/icons/svgs/negative.svg +0 -3
- package/icons/svgs/network.svg +0 -3
- package/icons/svgs/next.svg +0 -3
- package/icons/svgs/nominee.svg +0 -3
- package/icons/svgs/note.svg +0 -3
- package/icons/svgs/notification.svg +0 -3
- package/icons/svgs/occupation.svg +0 -3
- package/icons/svgs/ongoing.svg +0 -4
- package/icons/svgs/order.svg +0 -4
- package/icons/svgs/orders-complete.svg +0 -6
- package/icons/svgs/pair-selector.svg +0 -3
- package/icons/svgs/pan.svg +0 -8
- package/icons/svgs/passbook.svg +0 -3
- package/icons/svgs/passport.svg +0 -4
- package/icons/svgs/pay-emi.svg +0 -3
- package/icons/svgs/pay-lumpsum.svg +0 -3
- package/icons/svgs/pay-off-loan.svg +0 -3
- package/icons/svgs/penalty-charges.svg +0 -3
- package/icons/svgs/percentage.svg +0 -6
- package/icons/svgs/phone.svg +0 -3
- package/icons/svgs/positive.svg +0 -3
- package/icons/svgs/prepay-principal.svg +0 -3
- package/icons/svgs/previous.svg +0 -3
- package/icons/svgs/profile.svg +0 -3
- package/icons/svgs/quicktrade.svg +0 -5
- package/icons/svgs/rank.svg +0 -3
- package/icons/svgs/ream.svg +0 -6
- package/icons/svgs/recieve.svg +0 -3
- package/icons/svgs/repayment-schedule.svg +0 -4
- package/icons/svgs/reports.svg +0 -6
- package/icons/svgs/reset.svg +0 -4
- package/icons/svgs/save.svg +0 -3
- package/icons/svgs/scan.svg +0 -3
- package/icons/svgs/search.svg +0 -3
- package/icons/svgs/security.svg +0 -4
- package/icons/svgs/selfie.svg +0 -5
- package/icons/svgs/sell-crypto.svg +0 -3
- package/icons/svgs/send-email.svg +0 -3
- package/icons/svgs/send.svg +0 -3
- package/icons/svgs/separator.svg +0 -3
- package/icons/svgs/setttings.svg +0 -3
- package/icons/svgs/share.svg +0 -3
- package/icons/svgs/show.svg +0 -3
- package/icons/svgs/side.svg +0 -7
- package/icons/svgs/sip.svg +0 -4
- package/icons/svgs/sms.svg +0 -6
- package/icons/svgs/star-filled.svg +0 -3
- package/icons/svgs/star.svg +0 -3
- package/icons/svgs/statement.svg +0 -3
- package/icons/svgs/stop.svg +0 -3
- package/icons/svgs/street-address.svg +0 -3
- package/icons/svgs/subtract.svg +0 -3
- package/icons/svgs/success.svg +0 -4
- package/icons/svgs/support.svg +0 -5
- package/icons/svgs/templates.svg +0 -3
- package/icons/svgs/term.svg +0 -3
- package/icons/svgs/tick.svg +0 -3
- package/icons/svgs/total-payable-lumpsum.svg +0 -9
- package/icons/svgs/trash.svg +0 -3
- package/icons/svgs/unlock.svg +0 -3
- package/icons/svgs/upi.svg +0 -3
- package/icons/svgs/upload.svg +0 -4
- package/icons/svgs/upwards.svg +0 -3
- package/icons/svgs/voting-card.svg +0 -5
- package/icons/svgs/wallet.svg +0 -3
- package/icons/svgs/xpress.svg +0 -6
- package/icons/svgs/zip-code.svg +0 -3
- package/rollup.config.js +0 -49
- package/src/components/Button/index.tsx +0 -55
- package/src/components/Button/styles.ts +0 -142
- package/src/components/Button/typings.ts +0 -20
- package/src/components/Checkbox/index.tsx +0 -44
- package/src/components/Checkbox/styles.ts +0 -76
- package/src/components/Checkbox/typings.ts +0 -11
- package/src/components/CircularLoader/index.tsx +0 -22
- package/src/components/CircularLoader/style.ts +0 -18
- package/src/components/DateRangePicker/index.tsx +0 -36
- package/src/components/DateRangePicker/styles.css +0 -676
- package/src/components/Input/index.tsx +0 -95
- package/src/components/Input/styles.ts +0 -79
- package/src/components/Input/typings.ts +0 -25
- package/src/components/Popper/index.tsx +0 -62
- package/src/components/Popper/styles.ts +0 -59
- package/src/components/Popper/typings.ts +0 -16
- package/src/components/Radio/index.tsx +0 -32
- package/src/components/Radio/styles.ts +0 -51
- package/src/components/Radio/typings.ts +0 -11
- package/src/components/Toast/index.tsx +0 -88
- package/src/components/Toast/styles.ts +0 -69
- package/src/components/Toast/typings.ts +0 -6
- package/src/hooks/useFocus.ts +0 -16
- package/src/index.ts +0 -2
- package/src/styles/colors.ts +0 -39
- package/src/styles/mixins.ts +0 -52
- package/src/styles/typography.ts +0 -331
- package/src/styles/utils.ts +0 -39
- package/stories/Button.stories.tsx +0 -20
- package/stories/Checkbox.stories.tsx +0 -18
- package/stories/CircularLoader.stories.tsx +0 -15
- package/stories/DateRangePicker.stories.tsx +0 -18
- package/stories/Input.stories.tsx +0 -18
- package/stories/Popper.stories.tsx +0 -23
- package/stories/Radio.stories.tsx +0 -18
- package/stories/Toast.stories.tsx +0 -17
- package/tsconfig.json +0 -24
|
@@ -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,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,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,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,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,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;
|
|
@@ -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, };
|
|
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;
|
|
@@ -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,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,179 @@
|
|
|
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 };
|