@yosgo/swap-ui 1.0.118 → 1.0.122
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/build/Breadcrumb/Breadcrumb.d.ts +4 -0
- package/build/Breadcrumb/Breadcrumb.types.d.ts +7 -0
- package/build/BreadcrumbItem/BreadcrumbItem.d.ts +4 -0
- package/build/BreadcrumbItem/BreadcrumbItem.types.d.ts +4 -0
- package/build/Card/Card.d.ts +4 -0
- package/build/Card/Card.types.d.ts +17 -0
- package/build/DatePicker/DatePicker.d.ts +4 -0
- package/build/DatePicker/DatePicker.types.d.ts +14 -0
- package/build/DatePicker.tsx/DatePicker.d.ts +4 -0
- package/build/DatePicker.tsx/DatePicker.types.d.ts +13 -0
- package/build/TaxTextField/TaxTextField.types.d.ts +2 -0
- package/build/index.d.ts +5 -1
- package/build/index.esm.js +599 -35
- package/build/index.esm.js.map +1 -1
- package/build/index.js +601 -33
- package/build/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BoxProps } from "@material-ui/core";
|
|
3
|
+
export interface CardProps extends BoxProps {
|
|
4
|
+
width?: number | string;
|
|
5
|
+
height?: number | string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
bodyStyle?: React.CSSProperties;
|
|
8
|
+
buttons?: Array<{
|
|
9
|
+
title?: React.ReactNode;
|
|
10
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
11
|
+
variant?: "primary" | "secondary" | "text" | "tertiary" | "black" | "danger";
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
}>;
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BoxProps } from "@material-ui/core";
|
|
2
|
+
import { ModalProps } from "../Modal/Modal.types";
|
|
3
|
+
export interface DatePickerProps extends BoxProps {
|
|
4
|
+
format?: "year" | "month" | "day";
|
|
5
|
+
open?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
mobile?: boolean;
|
|
8
|
+
ModalProps?: Pick<ModalProps, Exclude<keyof ModalProps, "open" | "onClose">>;
|
|
9
|
+
min?: string;
|
|
10
|
+
max?: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
getValue?: (date: string) => void;
|
|
13
|
+
value?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BoxProps } from "@material-ui/core";
|
|
2
|
+
import { ModalProps } from "../Modal/Modal.types";
|
|
3
|
+
export interface DatePickerProps extends BoxProps {
|
|
4
|
+
format?: "year" | "month" | "day";
|
|
5
|
+
open?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
mobile?: boolean;
|
|
8
|
+
ModalProps?: Pick<ModalProps, Exclude<keyof ModalProps, "open" | "onClose">>;
|
|
9
|
+
min?: string;
|
|
10
|
+
max?: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
getValue?: (date: string) => void;
|
|
13
|
+
}
|
|
@@ -19,6 +19,8 @@ export interface TaxTextFieldProps {
|
|
|
19
19
|
domainError?: boolean;
|
|
20
20
|
domainHelperText?: React.ReactNode;
|
|
21
21
|
mobile?: boolean;
|
|
22
|
+
codeFocused?: boolean;
|
|
23
|
+
domainFocused?: boolean;
|
|
22
24
|
}
|
|
23
25
|
export declare type IncomeCodeProps = "9A" | "9B" | "50";
|
|
24
26
|
export declare type ExpenseCodeProps = "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "40" | "41" | "42" | "43" | "44" | "45" | "46" | "47" | "48" | "49" | "50" | "51" | "52" | "53" | "54" | "55" | "56" | "57" | "58" | "59" | "60" | "61" | "62" | "63" | "64" | "65" | "66" | "67" | "68" | "69" | "70" | "71" | "72" | "73" | "74" | "75" | "76" | "77" | "78" | "79" | "80" | "81" | "82" | "83" | "84" | "85" | "86" | "87" | "88" | "89" | "90" | "91" | "92" | "93" | "94" | "95" | "96" | "97" | "98" | "99" | "" | undefined;
|
package/build/index.d.ts
CHANGED
|
@@ -43,4 +43,8 @@ import IconButton from "./IconButton/IconButton";
|
|
|
43
43
|
import Link from "./Link/Link";
|
|
44
44
|
import Paper from "./Paper/Paper";
|
|
45
45
|
import Switch from "./Switch/Switch";
|
|
46
|
-
|
|
46
|
+
import DatePicker from "./DatePicker/DatePicker";
|
|
47
|
+
import Breadcrumb from "./Breadcrumb/Breadcrumb";
|
|
48
|
+
import BreadcrumbItem from "./BreadcrumbItem/BreadcrumbItem";
|
|
49
|
+
import Card from "./Card/Card";
|
|
50
|
+
export { SWAPAppBar, SWAPBanner, SWAPCopyField, SWAPDialog, SWAPLogo, SWAPModal, SWAPShare, SWAPSpace, SWAPTaxField, SWAPTaxDescription, SWAPTaxExpenseLabel, SWAPTaxIncomeLabel, SWAPExpenseTypes, SWAPIncomeTypes, SWAPTheme, Styles, Typography, Container, useBreakpoints, CheckBox, RadioButton, TextField, Select, Menu, MenuItem, Tab, Tabs, SegmentedTab, SegmentedTabs, TabPanel, Button, Snackbar, Modal, createMuiTheme, CssBaseline, ThemeProvider, Banner, Chip, CircularProgress, Pagination, Tooltip, Progress, TaxTextField, AutoComplete, AutocompleteCloseReason, Skeleton, Dropdown, RadioList, IconButton, Link, CheckBoxList, Paper, Switch, DatePicker, Breadcrumb, BreadcrumbItem, Card, };
|