@yosgo/swap-ui 1.0.141 → 2.0.0-beta.1

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 (113) hide show
  1. package/README.md +50 -36
  2. package/build/index.cjs +3693 -0
  3. package/build/index.cjs.map +1 -0
  4. package/build/index.d.cts +710 -0
  5. package/build/index.d.ts +710 -50
  6. package/build/index.js +3553 -13924
  7. package/build/index.js.map +1 -1
  8. package/package.json +63 -63
  9. package/build/AppBar/AppBar.d.ts +0 -4
  10. package/build/AppBar/AppBar.types.d.ts +0 -2
  11. package/build/AutoComplete/AutoComplete.d.ts +0 -6
  12. package/build/AutoComplete/AutoComplete.types.d.ts +0 -23
  13. package/build/AutoComplete/BankCodes.d.ts +0 -5
  14. package/build/Banner/Banner.d.ts +0 -4
  15. package/build/Banner/Banner.types.d.ts +0 -10
  16. package/build/Breadcrumb/Breadcrumb.d.ts +0 -4
  17. package/build/Breadcrumb/Breadcrumb.types.d.ts +0 -7
  18. package/build/BreadcrumbItem/BreadcrumbItem.d.ts +0 -4
  19. package/build/BreadcrumbItem/BreadcrumbItem.types.d.ts +0 -4
  20. package/build/Button/Button.d.ts +0 -4
  21. package/build/Button/Button.types.d.ts +0 -13
  22. package/build/Card/Card.d.ts +0 -4
  23. package/build/Card/Card.types.d.ts +0 -17
  24. package/build/CheckBox/CheckBox.d.ts +0 -4
  25. package/build/CheckBox/CheckBox.types.d.ts +0 -7
  26. package/build/CheckBox/CheckBoxList.d.ts +0 -4
  27. package/build/CheckBox/CheckBoxList.types.d.ts +0 -9
  28. package/build/CheckBox/RadioButton.d.ts +0 -4
  29. package/build/CheckBox/RadioButton.types.d.ts +0 -7
  30. package/build/CheckBox/RadioList.d.ts +0 -4
  31. package/build/CheckBox/RadioList.types.d.ts +0 -9
  32. package/build/Chip/Chip.d.ts +0 -4
  33. package/build/Chip/Chip.types.d.ts +0 -11
  34. package/build/CircularProgress/CircularProgress.d.ts +0 -4
  35. package/build/CircularProgress/CircularProgress.types.d.ts +0 -5
  36. package/build/Container/Container.d.ts +0 -4
  37. package/build/Container/Container.types.d.ts +0 -7
  38. package/build/DatePicker/DatePicker.d.ts +0 -4
  39. package/build/DatePicker/DatePicker.types.d.ts +0 -14
  40. package/build/Dropdown/Dropdown.d.ts +0 -4
  41. package/build/Dropdown/Dropdown.types.d.ts +0 -9
  42. package/build/IconButton/IconButton.d.ts +0 -4
  43. package/build/IconButton/IconButton.types.d.ts +0 -7
  44. package/build/LandingPage/LandingPage.d.ts +0 -4
  45. package/build/LandingPage/LandingPage.types.d.ts +0 -14
  46. package/build/LandingPage/LandingPageMobile.d.ts +0 -4
  47. package/build/LandingPage/LandingPageMobile.types.d.ts +0 -14
  48. package/build/Link/Link.d.ts +0 -4
  49. package/build/Link/Link.types.d.ts +0 -4
  50. package/build/Menu/Menu.d.ts +0 -4
  51. package/build/Menu/Menu.types.d.ts +0 -3
  52. package/build/Menu/MenuItem.d.ts +0 -4
  53. package/build/Menu/MenuItem.types.d.ts +0 -12
  54. package/build/Menu/Select.d.ts +0 -4
  55. package/build/Menu/Select.types.d.ts +0 -41
  56. package/build/Modal/Modal.d.ts +0 -4
  57. package/build/Modal/Modal.types.d.ts +0 -55
  58. package/build/Pagination/Pagination.d.ts +0 -4
  59. package/build/Pagination/Pagination.types.d.ts +0 -3
  60. package/build/Paper/Paper.d.ts +0 -4
  61. package/build/Paper/Paper.types.d.ts +0 -5
  62. package/build/Progress/Progress.d.ts +0 -4
  63. package/build/Progress/Progress.types.d.ts +0 -8
  64. package/build/SWAPAppBar/SWAPAppBar.d.ts +0 -4
  65. package/build/SWAPAppBar/SWAPAppBar.types.d.ts +0 -19
  66. package/build/SWAPBanner/SWAPBanner.d.ts +0 -4
  67. package/build/SWAPBanner/SWAPBanner.types.d.ts +0 -16
  68. package/build/SWAPCopyField/SWAPCopyField.d.ts +0 -4
  69. package/build/SWAPCopyField/SWAPCopyField.types.d.ts +0 -8
  70. package/build/SWAPDialog/SWAPDialog.d.ts +0 -4
  71. package/build/SWAPDialog/SWAPDialog.types.d.ts +0 -18
  72. package/build/SWAPLogo/SWAPLogo.d.ts +0 -4
  73. package/build/SWAPLogo/SWAPLogo.types.d.ts +0 -10
  74. package/build/SWAPModal/SWAPModal.d.ts +0 -4
  75. package/build/SWAPModal/SWAPModal.types.d.ts +0 -29
  76. package/build/SWAPShare/SWAPShare.d.ts +0 -4
  77. package/build/SWAPShare/SWAPShare.types.d.ts +0 -6
  78. package/build/SWAPSpace/SWAPSpace.d.ts +0 -4
  79. package/build/SWAPSpace/SWAPSpace.types.d.ts +0 -3
  80. package/build/SWAPTaxField/SWAPTaxField.d.ts +0 -24
  81. package/build/SWAPTaxField/SWAPTaxField.types.d.ts +0 -13
  82. package/build/SWAPTheme/SWAPTheme.d.ts +0 -7
  83. package/build/SWAPTheme/SWAPTheme.types.d.ts +0 -166
  84. package/build/Skeleton/Skeleton.d.ts +0 -4
  85. package/build/Skeleton/Skeleton.types.d.ts +0 -3
  86. package/build/Snackbar/Snackbar.d.ts +0 -4
  87. package/build/Snackbar/Snackbar.types.d.ts +0 -20
  88. package/build/Styles/Styles.d.ts +0 -4
  89. package/build/Styles/Styles.types.d.ts +0 -8
  90. package/build/Switch/Switch.d.ts +0 -4
  91. package/build/Switch/Switch.types.d.ts +0 -3
  92. package/build/Tab/SegmentedTab.d.ts +0 -4
  93. package/build/Tab/SegmentedTab.types.d.ts +0 -7
  94. package/build/Tab/SegmentedTabs.d.ts +0 -4
  95. package/build/Tab/SegmentedTabs.types.d.ts +0 -5
  96. package/build/Tab/Tab.d.ts +0 -4
  97. package/build/Tab/Tab.types.d.ts +0 -10
  98. package/build/Tab/TabPanel.d.ts +0 -10
  99. package/build/Tab/Tabs.d.ts +0 -4
  100. package/build/Tab/Tabs.types.d.ts +0 -3
  101. package/build/Table/Table.d.ts +0 -4
  102. package/build/Table/Table.types.d.ts +0 -2
  103. package/build/TaxTextField/TaxTextField.d.ts +0 -24
  104. package/build/TaxTextField/TaxTextField.types.d.ts +0 -26
  105. package/build/TextField/TextField.d.ts +0 -4
  106. package/build/TextField/TextField.types.d.ts +0 -7
  107. package/build/Tooltip/Tooltip.d.ts +0 -4
  108. package/build/Tooltip/Tooltip.types.d.ts +0 -15
  109. package/build/Typography/Typography.d.ts +0 -4
  110. package/build/Typography/Typography.types.d.ts +0 -8
  111. package/build/index.esm.js +0 -13928
  112. package/build/index.esm.js.map +0 -1
  113. package/build/utils/useBreakpoints.d.ts +0 -2
package/package.json CHANGED
@@ -1,22 +1,31 @@
1
1
  {
2
2
  "name": "@yosgo/swap-ui",
3
- "version": "1.0.141",
4
- "main": "build/index.js",
5
- "module": "build/index.esm.js",
3
+ "version": "2.0.0-beta.1",
4
+ "description": "SWAP UI theme & components on MUI v9. www.swap.work",
5
+ "type": "module",
6
+ "main": "./build/index.cjs",
7
+ "module": "./build/index.js",
8
+ "types": "./build/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./build/index.d.ts",
12
+ "import": "./build/index.js",
13
+ "require": "./build/index.cjs"
14
+ }
15
+ },
6
16
  "files": [
7
17
  "build"
8
18
  ],
9
- "types": "build/index.d.ts",
10
- "description": "SWAP UI Framework. www.swap.work",
19
+ "sideEffects": false,
11
20
  "scripts": {
12
- "build": "rollup -c",
13
- "test": "jest",
14
- "test:watch": "jest --watch",
15
- "storybook": "start-storybook -p 6006",
16
- "storybook:export": "build-storybook",
17
- "generate": "node ./util/create-component",
18
- "prepublishOnly": "npm run build",
19
- "deploy-storybook": "storybook-to-ghpages"
21
+ "build": "tsup",
22
+ "typecheck": "tsc --noEmit",
23
+ "test": "vitest run",
24
+ "test:watch": "vitest",
25
+ "storybook": "storybook dev -p 6006",
26
+ "storybook:build": "storybook build",
27
+ "prepublishOnly": "npm run typecheck && npm run test && npm run build",
28
+ "build-storybook": "storybook build"
20
29
  },
21
30
  "repository": {
22
31
  "type": "git",
@@ -26,11 +35,9 @@
26
35
  "React",
27
36
  "Component",
28
37
  "Library",
29
- "Rollup",
30
- "Typescript",
31
- "Sass",
32
- "Storybook",
33
- "Material-ui"
38
+ "MUI",
39
+ "Design-Tokens",
40
+ "Storybook"
34
41
  ],
35
42
  "author": "kcin1993",
36
43
  "license": "MIT",
@@ -38,54 +45,47 @@
38
45
  "url": "https://github.com/yosgo-open-source/swap-ui/issues"
39
46
  },
40
47
  "homepage": "https://github.com/yosgo-open-source/swap-ui",
41
- "peerDependencies": {
42
- "@material-ui/core": "^4.11.0",
43
- "@material-ui/icons": "^4.9.1",
44
- "react": ">=16.8.0",
45
- "react-dom": ">=16.8.0",
46
- "styled-components": ">=^5.2.0"
47
- },
48
- "devDependencies": {
49
- "@babel/core": "^7.10.3",
50
- "@material-ui/core": "^4.11.0",
51
- "@material-ui/icons": "^4.9.1",
52
- "@rollup/plugin-commonjs": "^11.1.0",
53
- "@rollup/plugin-node-resolve": "^7.1.3",
54
- "@storybook/addon-essentials": "^6.0.26",
55
- "@storybook/react": "^6.0.26",
56
- "@storybook/storybook-deployer": "^2.8.7",
57
- "@testing-library/jest-dom": "^5.5.0",
58
- "@testing-library/react": "^10.0.2",
59
- "@types/jest": "^24.0.24",
60
- "@types/react": "^17.0.11",
61
- "@types/react-copy-to-clipboard": "^4.3.0",
62
- "@types/react-dom": "^17.0.8",
63
- "@types/styled-components": "^5.1.4",
64
- "babel-loader": "^8.1.0",
65
- "babel-preset-react-app": "^9.1.2",
66
- "identity-obj-proxy": "^3.0.0",
67
- "jest": "^24.9.0",
68
- "node-sass": "^4.14.1",
69
- "react": "^17.0.2",
70
- "react-copy-to-clipboard": "^5.0.2",
71
- "react-dom": "^17.0.2",
72
- "react-share": "^4.3.1",
73
- "rollup": "^1.27.4",
74
- "rollup-plugin-node-polyfills": "^0.2.1",
75
- "rollup-plugin-peer-deps-external": "^2.2.0",
76
- "rollup-plugin-svg": "^2.0.0",
77
- "rollup-plugin-typescript2": "^0.27.0",
78
- "sass-loader": "^8.0.0",
79
- "styled-components": "^5.2.0",
80
- "ts-jest": "^24.2.0",
81
- "typescript": "^3.7.2"
82
- },
83
48
  "publishConfig": {
84
49
  "access": "public"
85
50
  },
51
+ "peerDependencies": {
52
+ "@mui/material": "^9.0.0",
53
+ "react": ">=18",
54
+ "react-dom": ">=18"
55
+ },
86
56
  "dependencies": {
87
- "@material-ui/lab": "^4.0.0-alpha.57",
88
- "react-spring": "^9.1.1",
89
- "react-typed": "^1.2.0"
57
+ "@fontsource/m-plus-rounded-1c": "5.2.10",
58
+ "@fontsource/noto-sans-tc": "5.2.9",
59
+ "@mui/x-date-pickers": "^9.9.0",
60
+ "dayjs": "^1.11.21",
61
+ "react-share": "^5.3.0"
62
+ },
63
+ "devDependencies": {
64
+ "@emotion/react": "11.14.0",
65
+ "@emotion/styled": "11.14.1",
66
+ "@mui/icons-material": "9.2.0",
67
+ "@mui/material": "9.2.0",
68
+ "@storybook/addon-a11y": "^10.5.0",
69
+ "@storybook/addon-docs": "^10.5.0",
70
+ "@storybook/addon-mcp": "^0.7.0",
71
+ "@storybook/addon-vitest": "^10.5.0",
72
+ "@storybook/react-vite": "^10.5.0",
73
+ "@testing-library/jest-dom": "^6.9.1",
74
+ "@testing-library/react": "16.3.2",
75
+ "@testing-library/user-event": "^14.6.1",
76
+ "@types/node": "^26.1.1",
77
+ "@types/react": "^19.2.17",
78
+ "@types/react-dom": "^19.2.3",
79
+ "@vitest/browser-playwright": "^4.1.10",
80
+ "@vitest/coverage-v8": "^4.1.10",
81
+ "jsdom": "^29.1.1",
82
+ "playwright": "^1.61.1",
83
+ "react": "19.2.7",
84
+ "react-dom": "19.2.7",
85
+ "storybook": "^10.5.0",
86
+ "tsup": "8.5.1",
87
+ "typescript": "^6.0.3",
88
+ "vite": "^8.1.4",
89
+ "vitest": "4.1.10"
90
90
  }
91
91
  }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { AppBarProps } from "./AppBar.types";
3
- declare const AppBar: React.FC<AppBarProps>;
4
- export default AppBar;
@@ -1,2 +0,0 @@
1
- export interface AppBarProps {
2
- }
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- import { MyAutoCompleteProps } from "./AutoComplete.types";
3
- import { AutocompleteCloseReason } from "@material-ui/lab/Autocomplete";
4
- declare const AutoComplete: React.FC<MyAutoCompleteProps>;
5
- export { AutocompleteCloseReason };
6
- export default AutoComplete;
@@ -1,23 +0,0 @@
1
- /// <reference types="react" />
2
- import { AutocompleteProps, AutocompleteRenderInputParams } from "@material-ui/lab";
3
- declare type OmitAutocompleteProps = Omit<AutocompleteProps<any, true, undefined, undefined>, "title" | "renderInput">;
4
- export interface MyAutoCompleteProps extends OmitAutocompleteProps {
5
- helperText?: React.ReactNode;
6
- value?: any;
7
- handleNoOptionsValueChange?: Function;
8
- placeholder?: string;
9
- placement?: "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top-start" | "top";
10
- title?: React.ReactNode;
11
- width?: string | number;
12
- open?: boolean;
13
- anchorEl?: null | HTMLElement;
14
- renderInput?: (params: AutocompleteRenderInputParams) => React.ReactNode;
15
- disableFreeInput?: boolean;
16
- optionsMaxHeight?: string | number;
17
- anchorOrigin?: {
18
- horizontal?: string | number;
19
- vertical?: string | number;
20
- };
21
- addNewOptionsText?: string;
22
- }
23
- export {};
@@ -1,5 +0,0 @@
1
- export declare const BankCodes: {
2
- code: string;
3
- name: string;
4
- }[];
5
- export declare const BankBranchCodes: any;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { BannerProps } from "./Banner.types";
3
- declare const Banner: React.FC<BannerProps>;
4
- export default Banner;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { BoxProps } from "@material-ui/core";
3
- export interface BannerProps extends BoxProps {
4
- children?: React.ReactNode;
5
- variant?: "info" | "normal" | "success" | "warning" | "error";
6
- mobile?: boolean;
7
- width?: string | number;
8
- height?: string | number;
9
- icon?: React.ReactNode;
10
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { BreadcrumbProps } from "./Breadcrumb.types";
3
- declare const Breadcrumb: React.FC<BreadcrumbProps>;
4
- export default Breadcrumb;
@@ -1,7 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { BreadcrumbItemProps } from "./BreadcrumbItem.types";
3
- declare const BreadcrumbItem: React.FC<BreadcrumbItemProps>;
4
- export default BreadcrumbItem;
@@ -1,4 +0,0 @@
1
- import { MyLinkProps } from "../Link/Link.types";
2
- export interface BreadcrumbItemProps extends MyLinkProps {
3
- last?: boolean;
4
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { MyButtonProps } from "./Button.types";
3
- declare const Button: React.FC<MyButtonProps>;
4
- export default Button;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- import { ButtonProps } from "@material-ui/core";
3
- declare type OmitButtonProps = Omit<ButtonProps, "variant" | "onClick" | "size" | "color">;
4
- export interface MyButtonProps extends OmitButtonProps {
5
- children?: React.ReactNode;
6
- variant?: "primary" | "secondary" | "text" | "tertiary" | "black" | "danger";
7
- loading?: boolean;
8
- minWidth?: number | string;
9
- width?: number | string;
10
- size?: "small" | "medium" | "large";
11
- onClick?: React.MouseEventHandler<HTMLButtonElement>;
12
- }
13
- export {};
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { CardProps } from "./Card.types";
3
- declare const Card: React.FC<CardProps>;
4
- export default Card;
@@ -1,17 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { MyCheckBoxProps } from "./CheckBox.types";
3
- declare const CheckBox: React.FC<MyCheckBoxProps>;
4
- export default CheckBox;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { CheckboxProps } from "@material-ui/core";
3
- export interface MyCheckBoxProps extends CheckboxProps {
4
- label?: string | React.ReactNode;
5
- labelPlacement?: "top" | "start" | "bottom" | "end";
6
- disableHover?: boolean;
7
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { CheckBoxListProps } from "./CheckBoxList.types";
3
- declare const CheckBoxList: React.FC<CheckBoxListProps>;
4
- export default CheckBoxList;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { BoxProps } from "@material-ui/core";
3
- export interface CheckBoxListProps extends Pick<BoxProps, Exclude<keyof BoxProps, "title">> {
4
- multiline?: boolean;
5
- title?: React.ReactNode;
6
- subtitle?: React.ReactNode;
7
- checked: boolean;
8
- line?: boolean;
9
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { RadioMyButtonProps } from "./RadioButton.types";
3
- declare const RadioButton: React.FC<RadioMyButtonProps>;
4
- export default RadioButton;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { RadioProps } from "@material-ui/core";
3
- export interface RadioMyButtonProps extends RadioProps {
4
- label?: string | React.ReactNode;
5
- labelPlacement?: "top" | "start" | "bottom" | "end";
6
- disableHover?: boolean;
7
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { RadioListProps } from "./RadioList.types";
3
- declare const RadioList: React.FC<RadioListProps>;
4
- export default RadioList;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { BoxProps } from "@material-ui/core";
3
- export interface RadioListProps extends Pick<BoxProps, Exclude<keyof BoxProps, "title">> {
4
- multiline?: boolean;
5
- title?: React.ReactNode;
6
- subtitle?: React.ReactNode;
7
- checked: boolean;
8
- line?: boolean;
9
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { ChipProps } from "./Chip.types";
3
- declare const Chip: React.FC<ChipProps>;
4
- export default Chip;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { BoxProps } from "@material-ui/core";
3
- export interface ChipProps extends BoxProps {
4
- icon?: React.ReactNode;
5
- variant?: "neutral" | "primary" | "success" | "danger";
6
- width?: string | number;
7
- height?: string | number;
8
- label?: string | React.ReactNode;
9
- outlined?: boolean;
10
- contained?: boolean;
11
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { CircularProgressProps } from "./CircularProgress.types";
3
- declare const CircularProgress: React.FC<CircularProgressProps>;
4
- export default CircularProgress;
@@ -1,5 +0,0 @@
1
- export interface CircularProgressProps {
2
- dark?: boolean;
3
- size?: number | string;
4
- thickness?: number;
5
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { ContainerProps } from "./Container.types";
3
- declare const Container: React.FC<ContainerProps>;
4
- export default Container;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export interface ContainerProps {
3
- children?: React.ReactNode;
4
- style?: React.CSSProperties;
5
- maxWidth?: number | "lg" | "xl" | "xxl";
6
- padding?: number | "xxs" | "xs" | "sm" | "md";
7
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { DatePickerProps } from "./DatePicker.types";
3
- declare const DatePicker: React.FC<DatePickerProps>;
4
- export default DatePicker;
@@ -1,14 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { DropdownProps } from "./Dropdown.types";
3
- declare const Dropdown: React.FC<DropdownProps>;
4
- export default Dropdown;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { SelectProps } from "@material-ui/core";
3
- export interface DropdownProps extends SelectProps {
4
- width?: number | string;
5
- height?: number;
6
- helperText?: React.ReactNode;
7
- helperTextStyle?: React.CSSProperties;
8
- formControlStyle?: React.CSSProperties;
9
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { MyIconButtonProps } from "./IconButton.types";
3
- declare const IconButton: React.FC<MyIconButtonProps>;
4
- export default IconButton;
@@ -1,7 +0,0 @@
1
- import { IconButtonProps } from "@material-ui/core";
2
- export interface MyIconButtonProps extends IconButtonProps {
3
- width?: number | string;
4
- height?: number | string;
5
- hoverIconColor?: "primary" | "secondary" | "tertiary" | "primary50" | "primary100" | "primary200" | "primary300" | "primary400" | "primary500" | "primary600" | "primary700" | "primary800" | "primary900" | "primaryA11y" | "secondary50" | "secondary100" | "secondary200" | "secondary300" | "secondary400" | "secondary500" | "secondary600" | "secondary700" | "secondary800" | "secondary900" | "secondaryA11y" | "danger50" | "danger100" | "danger200" | "danger300" | "danger400" | "danger500" | "danger600" | "danger700" | "danger800" | "danger900" | "dangerA11y" | "success50" | "success100" | "success200" | "success300" | "success400" | "success500" | "success600" | "success700" | "success800" | "success900" | "successA11y" | "white" | "black100" | "black200" | "black300" | "black400" | "black500" | "black600" | "black700" | "black800" | "black900" | "black1000" | string;
6
- hoverColor?: "primary" | "secondary" | "tertiary" | "primary50" | "primary100" | "primary200" | "primary300" | "primary400" | "primary500" | "primary600" | "primary700" | "primary800" | "primary900" | "primaryA11y" | "secondary50" | "secondary100" | "secondary200" | "secondary300" | "secondary400" | "secondary500" | "secondary600" | "secondary700" | "secondary800" | "secondary900" | "secondaryA11y" | "danger50" | "danger100" | "danger200" | "danger300" | "danger400" | "danger500" | "danger600" | "danger700" | "danger800" | "danger900" | "dangerA11y" | "success50" | "success100" | "success200" | "success300" | "success400" | "success500" | "success600" | "success700" | "success800" | "success900" | "successA11y" | "white" | "black100" | "black200" | "black300" | "black400" | "black500" | "black600" | "black700" | "black800" | "black900" | "black1000" | string;
7
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { LandingPageProps } from "./LandingPage.types";
3
- declare const LandingPage: React.FC<LandingPageProps>;
4
- export default LandingPage;
@@ -1,14 +0,0 @@
1
- export interface LandingPageProps {
2
- hero?: boolean;
3
- logos?: boolean;
4
- hightLight?: boolean;
5
- painPoints?: boolean;
6
- howItWorks?: boolean;
7
- valueProp?: boolean;
8
- comparison?: boolean;
9
- userBase?: boolean;
10
- socialProof?: boolean;
11
- qA?: boolean;
12
- feature?: boolean;
13
- footer?: boolean;
14
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { LandingPageMobileProps } from "./LandingPageMobile.types";
3
- declare const LandingPageMobile: React.FC<LandingPageMobileProps>;
4
- export default LandingPageMobile;
@@ -1,14 +0,0 @@
1
- export interface LandingPageMobileProps {
2
- hero?: boolean;
3
- logos?: boolean;
4
- hightLight?: boolean;
5
- painPoints?: boolean;
6
- howItWorks?: boolean;
7
- valueProp?: boolean;
8
- comparison?: boolean;
9
- userBase?: boolean;
10
- socialProof?: boolean;
11
- qA?: boolean;
12
- feature?: boolean;
13
- footer?: boolean;
14
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { MyLinkProps } from "./Link.types";
3
- declare const Link: React.FC<MyLinkProps>;
4
- export default Link;
@@ -1,4 +0,0 @@
1
- import { LinkProps } from "@material-ui/core";
2
- export interface MyLinkProps extends Pick<LinkProps, Exclude<keyof LinkProps, "color">> {
3
- color?: "primary" | "secondary" | "tertiary" | "primary50" | "primary100" | "primary200" | "primary300" | "primary400" | "primary500" | "primary600" | "primary700" | "primary800" | "primary900" | "primaryA11y" | "secondary50" | "secondary100" | "secondary200" | "secondary300" | "secondary400" | "secondary500" | "secondary600" | "secondary700" | "secondary800" | "secondary900" | "secondaryA11y" | "danger50" | "danger100" | "danger200" | "danger300" | "danger400" | "danger500" | "danger600" | "danger700" | "danger800" | "danger900" | "dangerA11y" | "success50" | "success100" | "success200" | "success300" | "success400" | "success500" | "success600" | "success700" | "success800" | "success900" | "successA11y" | "white" | "black100" | "black200" | "black300" | "black400" | "black500" | "black600" | "black700" | "black800" | "black900" | "black1000";
4
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { MyMenuProps } from "./Menu.types";
3
- declare const Menu: React.FC<MyMenuProps>;
4
- export default Menu;
@@ -1,3 +0,0 @@
1
- import { MenuProps } from "@material-ui/core";
2
- export interface MyMenuProps extends MenuProps {
3
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { MyMenuItemProps } from "./MenuItem.types";
3
- declare const MenuItem: React.FC<MyMenuItemProps>;
4
- export default MenuItem;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { MenuItemProps } from "@material-ui/core";
3
- export interface MyMenuItemProps extends MenuItemProps {
4
- button?: true;
5
- width?: number | string;
6
- height?: number | string;
7
- hoverBackgroundColor?: string;
8
- hoverFontColor?: string;
9
- hoverIconColor?: string;
10
- rippleColor?: string;
11
- iconChildren?: React.ReactNode;
12
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { SelectProps } from "./Select.types";
3
- declare const Select: React.FC<SelectProps>;
4
- export default Select;
@@ -1,41 +0,0 @@
1
- /// <reference types="react" />
2
- export interface SelectProps {
3
- children?: React.ReactNode;
4
- style?: React.CSSProperties;
5
- label?: string;
6
- disabled?: boolean;
7
- type?: string;
8
- helperText?: React.ReactNode;
9
- error?: boolean;
10
- fullWidth?: boolean;
11
- rowsMax?: number | string;
12
- rows?: number | string;
13
- multiline?: boolean;
14
- value?: any;
15
- onChange?: (event: React.ChangeEvent<{
16
- name?: string;
17
- value: unknown;
18
- }>, child: React.ReactNode) => void;
19
- InputProps?: object;
20
- autoFocus?: boolean;
21
- placeholder?: string;
22
- required?: boolean;
23
- select?: boolean;
24
- defaultValue?: any;
25
- width?: number | string;
26
- height?: number;
27
- vertical?: "top" | "center" | "bottom" | number;
28
- horizontal?: "left" | "center" | "right" | number;
29
- open?: boolean;
30
- placeholderStyle?: React.CSSProperties;
31
- selectStyle?: React.CSSProperties;
32
- helperTextStyle?: React.CSSProperties;
33
- onClick?: React.MouseEventHandler<HTMLDivElement>;
34
- transformOrigin?: {
35
- horizontal: "center" | "left" | "right" | number;
36
- vertical: "bottom" | "center" | "top" | number;
37
- };
38
- paddingLeft?: number;
39
- paddingTop?: number;
40
- dropdown?: boolean;
41
- }
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { ModalProps } from "./Modal.types";
3
- declare const Modal: React.FC<ModalProps>;
4
- export default Modal;