@yosgo/swap-ui 1.0.117 → 1.0.121

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.
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { BreadcrumbProps } from "./Breadcrumb.types";
3
+ declare const Breadcrumb: React.FC<BreadcrumbProps>;
4
+ export default Breadcrumb;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { BoxProps } from "@material-ui/core";
3
+ export interface BreadcrumbProps extends BoxProps {
4
+ children: React.ReactNode[];
5
+ separator?: React.ReactNode;
6
+ maxItems?: number;
7
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { BreadcrumbItemProps } from "./BreadcrumbItem.types";
3
+ declare const BreadcrumbItem: React.FC<BreadcrumbItemProps>;
4
+ export default BreadcrumbItem;
@@ -0,0 +1,4 @@
1
+ import { MyLinkProps } from "../Link/Link.types";
2
+ export interface BreadcrumbItemProps extends MyLinkProps {
3
+ last?: boolean;
4
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { CardProps } from "./Card.types";
3
+ declare const Card: React.FC<CardProps>;
4
+ export default Card;
@@ -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,4 @@
1
+ import React from "react";
2
+ import { DatePickerProps } from "./DatePicker.types";
3
+ declare const DatePicker: React.FC<DatePickerProps>;
4
+ export default DatePicker;
@@ -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,4 @@
1
+ import React from "react";
2
+ import { DatePickerProps } from "./DatePicker.types";
3
+ declare const DatePicker: React.FC<DatePickerProps>;
4
+ export default DatePicker;
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { SWAPPaletteProps } from "./SWAPPalette.types";
3
+ declare const SWAPPalette: React.FC<SWAPPaletteProps>;
4
+ export default SWAPPalette;
@@ -0,0 +1,5 @@
1
+ export interface SWAPPaletteProps {
2
+ color?: string;
3
+ borderRadius?: string;
4
+ boxShadow?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { TypographyProps } from "./Typography.types";
3
+ declare const Typography: React.FC<TypographyProps>;
4
+ export default Typography;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export interface TypographyProps {
3
+ variant?: "h1" | "h2" | "d1" | "d2" | "d3" | "d4" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "title" | "subtitle" | "body1" | "body2" | "caption1" | "caption2" | "small1" | "small2" | "tiny1" | "tiny2" | "button_l" | "button_s" | "title_loose" | "subtitle_loose" | "body1_loose" | "body2_loose" | "caption1_loose" | "caption2_loose" | "small1_loose" | "small2_loose" | "tiny1_loose" | "tiny2_loose";
4
+ children?: React.ReactNode;
5
+ color?: string;
6
+ mode?: string;
7
+ }
@@ -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
- 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, };
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, };