@rango-dev/ui 0.1.14-next.0 → 0.1.14-next.11
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/CHANGELOG.md +11 -0
- package/dist/components/Alert/Alert.d.ts +7 -7
- package/dist/components/Alert/Alert.stories.d.ts +7 -5
- package/dist/components/Alert/LoadingFailedAlert.d.ts +2 -2
- package/dist/components/Alert/NotFoundAlert.d.ts +7 -7
- package/dist/components/Alert/index.d.ts +2 -2
- package/dist/components/BestRoute/BestRoute.d.ts +15 -12
- package/dist/components/BestRoute/BestRoute.stories.d.ts +10 -8
- package/dist/components/BestRoute/index.d.ts +1 -1
- package/dist/components/BestRoute/mock.d.ts +4 -4
- package/dist/components/BlockchainsList/BlockchainsList.d.ts +10 -10
- package/dist/components/BlockchainsList/BlockchainsList.stories.d.ts +5 -5
- package/dist/components/BlockchainsList/index.d.ts +1 -1
- package/dist/components/BlockchainsList/mockData.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +17 -17
- package/dist/components/Button/Button.stories.d.ts +10 -8
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +11 -11
- package/dist/components/Checkbox/Checkbox.stories.d.ts +7 -5
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/Chip/Chip.d.ts +12 -12
- package/dist/components/Chip/Chip.stories.d.ts +7 -7
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +9 -9
- package/dist/components/ColorPicker/ColorPicker.stories.d.ts +5 -5
- package/dist/components/ColorPicker/index.d.ts +1 -1
- package/dist/components/Divider/Divider.d.ts +6 -6
- package/dist/components/Divider/index.d.ts +1 -1
- package/dist/components/Drawer/Drawer.d.ts +13 -13
- package/dist/components/Drawer/Drawer.stories.d.ts +8 -8
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Header/Header.d.ts +9 -9
- package/dist/components/Header/index.d.ts +1 -1
- package/dist/components/Icon/AddCircleIcon.d.ts +3 -3
- package/dist/components/Icon/AddIcon.d.ts +3 -3
- package/dist/components/Icon/AddWalletIcon.d.ts +3 -3
- package/dist/components/Icon/AngleDownIcon.d.ts +3 -3
- package/dist/components/Icon/AngleLeftIcon.d.ts +3 -3
- package/dist/components/Icon/AngleRightIcon.d.ts +3 -3
- package/dist/components/Icon/AngleUpIcon.d.ts +3 -3
- package/dist/components/Icon/ArrowRightIcon.d.ts +3 -3
- package/dist/components/Icon/BagIcon.d.ts +3 -3
- package/dist/components/Icon/BanIcon.d.ts +3 -3
- package/dist/components/Icon/CheckCircleIcon.d.ts +3 -3
- package/dist/components/Icon/CheckIcon.d.ts +3 -3
- package/dist/components/Icon/CheckSquareIcon.d.ts +3 -3
- package/dist/components/Icon/CheckWalletIcon.d.ts +3 -3
- package/dist/components/Icon/ChevronRightIcon.d.ts +3 -3
- package/dist/components/Icon/CloseIcon.d.ts +112 -1
- package/dist/components/Icon/CopyIcon.d.ts +3 -3
- package/dist/components/Icon/DeleteCircleIcon.d.ts +3 -3
- package/dist/components/Icon/DeleteWalletIcon.d.ts +3 -3
- package/dist/components/Icon/DisconnectIcon.d.ts +3 -3
- package/dist/components/Icon/DownloadIcon.d.ts +3 -3
- package/dist/components/Icon/GasIcon.d.ts +3 -3
- package/dist/components/Icon/HistoryIcon.d.ts +3 -3
- package/dist/components/Icon/HorizontalSwapIcon.d.ts +3 -3
- package/dist/components/Icon/Icons.stories.d.ts +5 -5
- package/dist/components/Icon/InfoCircleIcon.d.ts +3 -3
- package/dist/components/Icon/MinusCircleIcon.d.ts +3 -3
- package/dist/components/Icon/RetryIcon.d.ts +3 -3
- package/dist/components/Icon/RetryLeftIcon.d.ts +3 -3
- package/dist/components/Icon/RetryRightIcon.d.ts +3 -3
- package/dist/components/Icon/SearchIcon.d.ts +3 -3
- package/dist/components/Icon/SearchMinusIcon.d.ts +3 -3
- package/dist/components/Icon/SettingIcon.d.ts +3 -3
- package/dist/components/Icon/SignatureIcon.d.ts +3 -3
- package/dist/components/Icon/SwapWalletIcon.d.ts +3 -3
- package/dist/components/Icon/TimeIcon.d.ts +3 -3
- package/dist/components/Icon/TrashIcon.d.ts +3 -3
- package/dist/components/Icon/TryAgainIcon.d.ts +3 -3
- package/dist/components/Icon/VerticalSwapIcon.d.ts +3 -3
- package/dist/components/Icon/WalletIconIcon.d.ts +3 -3
- package/dist/components/Icon/WarningIcon.d.ts +3 -3
- package/dist/components/Icon/common.d.ts +228 -2
- package/dist/components/Icon/index.d.ts +40 -40
- package/dist/components/Icon/types.d.ts +7 -7
- package/dist/components/LiquiditySourceList/LiquiditySource.stories.d.ts +5 -5
- package/dist/components/LiquiditySourceList/LiquiditySourceList.d.ts +11 -11
- package/dist/components/LiquiditySourceList/index.d.ts +1 -1
- package/dist/components/LiquiditySourceList/mockData.d.ts +2 -2
- package/dist/components/Modal/Modal.d.ts +11 -11
- package/dist/components/Modal/Modal.stories.d.ts +5 -5
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Radio/Radio.d.ts +13 -13
- package/dist/components/Radio/Radio.stories.d.ts +5 -5
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/SecondaryPage/SecondaryPage.d.ts +16 -16
- package/dist/components/SecondaryPage/SecondaryPage.stories.d.ts +5 -2
- package/dist/components/SecondaryPage/index.d.ts +1 -1
- package/dist/components/SelectableWalletList/SelectableWalletList.d.ts +7 -7
- package/dist/components/SelectableWalletList/SelectableWalletList.stories.d.ts +7 -5
- package/dist/components/SelectableWalletList/index.d.ts +1 -1
- package/dist/components/SelectableWalletList/mock.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.d.ts +6 -6
- package/dist/components/Skeleton/Skeleton.stories.d.ts +5 -5
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Spinner/Spinner.d.ts +6 -6
- package/dist/components/Spinner/Spinner.stories.d.ts +5 -5
- package/dist/components/Spinner/index.d.ts +1 -1
- package/dist/components/StatusDrawer/StatusDrawer.d.ts +11 -11
- package/dist/components/StatusDrawer/StatusDrawer.stories.d.ts +5 -5
- package/dist/components/StatusDrawer/index.d.ts +1 -1
- package/dist/components/StepDetail/StepDetail.d.ts +12 -12
- package/dist/components/StepDetail/StepDetail.stories.d.ts +7 -5
- package/dist/components/StepDetail/index.d.ts +1 -1
- package/dist/components/SwapContainer/SwapContainer.d.ts +7 -7
- package/dist/components/SwapContainer/index.d.ts +1 -1
- package/dist/components/SwapDetail/SwapDetail.d.ts +8 -8
- package/dist/components/SwapDetail/SwapDetail.stories.d.ts +7 -5
- package/dist/components/SwapDetail/Token.d.ts +17 -17
- package/dist/components/SwapDetail/index.d.ts +1 -1
- package/dist/components/SwapDetail/mock.d.ts +2 -2
- package/dist/components/Switch/Switch.d.ts +6 -6
- package/dist/components/Switch/Switch.stories.d.ts +5 -5
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/TextField/TextField.d.ts +10 -10
- package/dist/components/TextField/TextField.stories.d.ts +7 -7
- package/dist/components/TextField/index.d.ts +1 -1
- package/dist/components/TokenList/TokenItem.d.ts +11 -11
- package/dist/components/TokenList/TokenList.d.ts +17 -17
- package/dist/components/TokenList/TokenList.stories.d.ts +5 -5
- package/dist/components/TokenList/index.d.ts +1 -1
- package/dist/components/TokenList/mockData.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts +7 -7
- package/dist/components/Tooltip/Tooltip.stories.d.ts +7 -5
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Typography/Typography.d.ts +18 -18
- package/dist/components/Typography/Typography.stories.d.ts +7 -5
- package/dist/components/Typography/index.d.ts +1 -1
- package/dist/components/VirtualizedList/VirtualizedList.d.ts +17 -17
- package/dist/components/Wallet/State.d.ts +7 -7
- package/dist/components/Wallet/Wallet.d.ts +7 -7
- package/dist/components/Wallet/Wallet.stories.d.ts +7 -5
- package/dist/components/Wallet/index.d.ts +1 -1
- package/dist/components/common/FilledCircle.d.ts +111 -1
- package/dist/components/common/Image.d.ts +6 -6
- package/dist/components/common/index.d.ts +2 -2
- package/dist/components/index.d.ts +25 -31
- package/dist/{components → containers}/BlockchainSelector/BlockchainSelector.d.ts +17 -17
- package/dist/{components → containers}/BlockchainSelector/BlockchainSelector.stories.d.ts +5 -5
- package/dist/containers/ConfirmSwap/ConfirmSwap.d.ts +22 -22
- package/dist/containers/ConfirmSwap/ConfirmSwap.stories.d.ts +8 -6
- package/dist/containers/ConfirmSwap/index.d.ts +1 -1
- package/dist/containers/ConfirmSwap/mock.d.ts +5 -5
- package/dist/{components → containers}/ConnectWalletsModal/ConnectWallets.stories.d.ts +5 -5
- package/dist/{components → containers}/ConnectWalletsModal/ConnectWalletsModal.d.ts +10 -11
- package/dist/{components → containers}/ConnectWalletsModal/mockData.d.ts +2 -2
- package/dist/containers/History/History.d.ts +6 -6
- package/dist/containers/History/History.stories.d.ts +9 -5
- package/dist/containers/History/SwapsGroup.d.ts +13 -13
- package/dist/containers/History/index.d.ts +3 -2
- package/dist/containers/History/mock.d.ts +2 -2
- package/dist/containers/History/types.d.ts +39 -39
- package/dist/{components → containers}/LiquiditySourcesSelector/LiquiditySourcesSelector.d.ts +13 -13
- package/dist/{components → containers}/LiquiditySourcesSelector/LiquiditySourcesSelector.stories.d.ts +5 -5
- package/dist/{components → containers}/Settings/Settings.d.ts +24 -23
- package/dist/{components → containers}/Settings/Settings.stories.d.ts +5 -5
- package/dist/containers/SwapHistory/SwapHistory.d.ts +1128 -24
- package/dist/containers/SwapHistory/SwapHistory.stories.d.ts +14 -5
- package/dist/containers/SwapHistory/SwapMessages.d.ts +17 -17
- package/dist/containers/SwapHistory/index.d.ts +1 -1
- package/dist/containers/SwapHistory/mock.d.ts +2 -2
- package/dist/containers/TokenSelector/TokenSelector.d.ts +124 -0
- package/dist/{components → containers}/TokenSelector/TokenSelector.stories.d.ts +5 -5
- package/dist/containers/index.d.ts +8 -3
- package/dist/helper/index.d.ts +6 -3
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useCopyToClipboard.d.ts +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.js +20 -8
- package/dist/index.js.map +7 -0
- package/dist/theme.d.ts +928 -8
- package/dist/types/index.d.ts +2 -2
- package/dist/types/meta.d.ts +23 -23
- package/dist/types/swaps.d.ts +29 -29
- package/dist/types/wallet.d.ts +23 -23
- package/package.json +21 -40
- package/src/components/Alert/Alert.stories.tsx +19 -6
- package/src/components/Alert/Alert.tsx +5 -5
- package/src/components/BestRoute/BestRoute.stories.tsx +15 -5
- package/src/components/BestRoute/BestRoute.tsx +4 -3
- package/src/components/BestRoute/mock.ts +1 -1
- package/src/components/BlockchainsList/BlockchainsList.stories.tsx +9 -3
- package/src/components/BlockchainsList/mockData.ts +603 -108
- package/src/components/Button/Button.stories.tsx +8 -3
- package/src/components/Button/Button.tsx +42 -42
- package/src/components/Checkbox/Checkbox.stories.tsx +6 -2
- package/src/components/Checkbox/Checkbox.tsx +2 -0
- package/src/components/Chip/Chip.stories.tsx +23 -7
- package/src/components/Chip/Chip.tsx +1 -1
- package/src/components/ColorPicker/ColorPicker.stories.tsx +15 -5
- package/src/components/ColorPicker/ColorPicker.tsx +34 -10
- package/src/components/Divider/Divider.tsx +113 -11
- package/src/components/Drawer/Drawer.stories.tsx +8 -11
- package/src/components/Icon/Icons.stories.tsx +8 -4
- package/src/components/Icon/common.ts +2 -2
- package/src/components/LiquiditySourceList/LiquiditySource.stories.tsx +6 -3
- package/src/components/LiquiditySourceList/LiquiditySourceList.tsx +5 -5
- package/src/components/Modal/Modal.stories.tsx +9 -10
- package/src/components/Modal/Modal.tsx +3 -2
- package/src/components/Radio/Radio.stories.tsx +12 -7
- package/src/components/Radio/Radio.tsx +2 -2
- package/src/components/SecondaryPage/SecondaryPage.stories.tsx +12 -3
- package/src/components/SelectableWalletList/SelectableWalletList.stories.tsx +2 -2
- package/src/components/SelectableWalletList/SelectableWalletList.tsx +5 -5
- package/src/components/Skeleton/Skeleton.stories.tsx +6 -2
- package/src/components/Skeleton/Skeleton.tsx +1 -1
- package/src/components/Spinner/Spinner.stories.tsx +6 -2
- package/src/components/Spinner/Spinner.tsx +1 -1
- package/src/components/StatusDrawer/StatusDrawer.stories.tsx +7 -2
- package/src/components/StatusDrawer/StatusDrawer.tsx +2 -2
- package/src/components/StepDetail/StepDetail.stories.tsx +9 -2
- package/src/components/StepDetail/StepDetail.tsx +4 -4
- package/src/components/SwapContainer/SwapContainer.tsx +3 -3
- package/src/components/SwapDetail/SwapDetail.stories.tsx +5 -2
- package/src/components/SwapDetail/SwapDetail.tsx +4 -4
- package/src/components/SwapDetail/Token.tsx +6 -6
- package/src/components/Switch/Switch.stories.tsx +2 -2
- package/src/components/Switch/Switch.tsx +2 -2
- package/src/components/TextField/TextField.stories.tsx +3 -2
- package/src/components/TextField/TextField.tsx +3 -3
- package/src/components/TokenList/TokenItem.tsx +1 -1
- package/src/components/TokenList/TokenList.stories.tsx +3 -3
- package/src/components/Tooltip/Tooltip.stories.tsx +7 -2
- package/src/components/Tooltip/Tooltip.tsx +2 -2
- package/src/components/Typography/Typography.stories.tsx +2 -2
- package/src/components/Wallet/Wallet.stories.tsx +7 -13
- package/src/components/index.ts +0 -6
- package/src/containers/BlockchainSelector/BlockchainSelector.stories.tsx +41 -0
- package/src/{components → containers}/BlockchainSelector/BlockchainSelector.tsx +5 -5
- package/{dist/components/BlockchainSelector/index.d.ts → src/containers/BlockchainSelector/index.ts} +1 -1
- package/src/containers/ConfirmSwap/ConfirmSwap.stories.tsx +223 -10
- package/src/containers/ConfirmSwap/ConfirmSwap.tsx +25 -16
- package/src/containers/ConnectWalletsModal/ConnectWallets.stories.tsx +24 -0
- package/src/{components → containers}/ConnectWalletsModal/ConnectWalletsModal.tsx +3 -4
- package/{dist/components/ConnectWalletsModal/index.d.ts → src/containers/ConnectWalletsModal/index.ts} +1 -1
- package/src/containers/History/History.stories.tsx +2 -2
- package/src/containers/History/History.tsx +1 -1
- package/src/containers/History/SwapsGroup.tsx +1 -1
- package/src/containers/History/index.ts +2 -1
- package/src/containers/History/mock.ts +3 -3
- package/src/containers/History/types.tsx +1 -1
- package/src/{components → containers}/LiquiditySourcesSelector/LiquiditySourcesSelector.stories.tsx +7 -4
- package/src/{components → containers}/LiquiditySourcesSelector/LiquiditySourcesSelector.tsx +2 -3
- package/{dist/components/LiquiditySourcesSelector/index.d.ts → src/containers/LiquiditySourcesSelector/index.ts} +1 -1
- package/src/containers/Settings/Settings.stories.tsx +27 -0
- package/src/{components → containers}/Settings/Settings.tsx +33 -26
- package/{dist/components/Settings/index.d.ts → src/containers/Settings/index.ts} +1 -1
- package/src/containers/SwapHistory/SwapHistory.stories.tsx +3 -3
- package/src/containers/SwapHistory/SwapHistory.tsx +8 -9
- package/src/containers/SwapHistory/mock.ts +2 -2
- package/src/{components → containers}/TokenSelector/TokenSelector.stories.tsx +7 -8
- package/src/{components → containers}/TokenSelector/TokenSelector.tsx +7 -6
- package/{dist/components/TokenSelector/index.d.ts → src/containers/TokenSelector/index.ts} +1 -1
- package/src/containers/index.ts +5 -0
- package/src/helper/index.ts +75 -0
- package/src/index.ts +1 -0
- package/src/theme.ts +34 -36
- package/src/types/index.ts +1 -1
- package/dist/components/Spacer/Spacer.d.ts +0 -6
- package/dist/components/Spacer/Spacer.stories.d.ts +0 -5
- package/dist/components/Spacer/index.d.ts +0 -1
- package/dist/components/SwapContainer/SwapContainer.stories.d.ts +0 -5
- package/dist/components/TokenSelector/TokenSelector.d.ts +0 -14
- package/dist/ui.cjs.development.js +0 -5094
- package/dist/ui.cjs.development.js.map +0 -1
- package/dist/ui.cjs.production.min.js +0 -2
- package/dist/ui.cjs.production.min.js.map +0 -1
- package/dist/ui.esm.js +0 -5005
- package/dist/ui.esm.js.map +0 -1
- package/src/components/BlockchainSelector/BlockchainSelector.stories.tsx +0 -25
- package/src/components/ConnectWalletsModal/ConnectWallets.stories.tsx +0 -13
- package/src/components/Settings/Settings.stories.tsx +0 -34
- package/src/components/Spacer/Spacer.stories.tsx +0 -31
- package/src/components/Spacer/Spacer.tsx +0 -128
- package/src/components/Spacer/index.ts +0 -1
- package/src/components/SwapContainer/SwapContainer.stories.tsx +0 -13
- /package/{src/components/BlockchainSelector/index.ts → dist/containers/BlockchainSelector/index.d.ts} +0 -0
- /package/{src/components/ConnectWalletsModal/index.ts → dist/containers/ConnectWalletsModal/index.d.ts} +0 -0
- /package/{src/components/LiquiditySourcesSelector/index.ts → dist/containers/LiquiditySourcesSelector/index.d.ts} +0 -0
- /package/{src/components/Settings/index.ts → dist/containers/Settings/index.d.ts} +0 -0
- /package/{src/components/TokenSelector/index.ts → dist/containers/TokenSelector/index.d.ts} +0 -0
- /package/src/{components → containers}/ConnectWalletsModal/mockData.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
3
|
|
|
4
4
|
import { Button, PropTypes } from './Button';
|
|
5
5
|
import { AddWalletIcon } from '../Icon';
|
|
@@ -7,6 +7,11 @@ import { AddWalletIcon } from '../Icon';
|
|
|
7
7
|
export default {
|
|
8
8
|
title: 'Components/Button',
|
|
9
9
|
component: Button,
|
|
10
|
+
args: {
|
|
11
|
+
variant: 'contained',
|
|
12
|
+
size: 'medium',
|
|
13
|
+
type: 'primary',
|
|
14
|
+
},
|
|
10
15
|
argTypes: {
|
|
11
16
|
variant: {
|
|
12
17
|
name: 'variant',
|
|
@@ -26,7 +31,7 @@ export default {
|
|
|
26
31
|
},
|
|
27
32
|
size: {
|
|
28
33
|
name: 'size',
|
|
29
|
-
control: { type: '
|
|
34
|
+
control: { type: 'select' },
|
|
30
35
|
options: ['small', 'medium', 'large', 'compact'],
|
|
31
36
|
defaultValue: 'medium',
|
|
32
37
|
},
|
|
@@ -35,7 +40,7 @@ export default {
|
|
|
35
40
|
control: { type: 'boolean' },
|
|
36
41
|
},
|
|
37
42
|
},
|
|
38
|
-
} as
|
|
43
|
+
} as Meta<typeof Button>;
|
|
39
44
|
|
|
40
45
|
export const Main = (props: PropTypes) => (
|
|
41
46
|
<Button {...props}>I'm a button</Button>
|
|
@@ -46,41 +46,41 @@ const ButtonContainer = styled('button', {
|
|
|
46
46
|
},
|
|
47
47
|
variant: {
|
|
48
48
|
contained: {
|
|
49
|
-
backgroundColor: '$
|
|
49
|
+
backgroundColor: '$neutral100',
|
|
50
50
|
color: '$foreground',
|
|
51
51
|
border: 0,
|
|
52
52
|
'&:hover': {
|
|
53
|
-
backgroundColor: '$
|
|
53
|
+
backgroundColor: '$neutral200',
|
|
54
54
|
},
|
|
55
55
|
'&:disabled': {
|
|
56
|
-
background: '$
|
|
56
|
+
background: '$neutral400',
|
|
57
57
|
},
|
|
58
58
|
'&:disabled:hover': {
|
|
59
|
-
background: '$
|
|
59
|
+
background: '$neutral400',
|
|
60
60
|
transform: 'unset',
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
outlined: {
|
|
64
|
-
backgroundColor: '$
|
|
64
|
+
backgroundColor: '$surface',
|
|
65
65
|
border: 1,
|
|
66
66
|
borderStyle: 'solid',
|
|
67
|
-
borderColor: '$
|
|
67
|
+
borderColor: '$neutral400',
|
|
68
68
|
color: '$foreground',
|
|
69
69
|
'&:hover': {
|
|
70
|
-
borderColor: '$
|
|
70
|
+
borderColor: '$neutral600',
|
|
71
71
|
},
|
|
72
72
|
'&:disabled': {
|
|
73
|
-
borderColor: '$
|
|
74
|
-
color: '$
|
|
73
|
+
borderColor: '$neutral400',
|
|
74
|
+
color: '$neutral400',
|
|
75
75
|
},
|
|
76
76
|
},
|
|
77
77
|
ghost: {
|
|
78
78
|
color: '$foreground',
|
|
79
79
|
'&:hover': {
|
|
80
|
-
backgroundColor: '$
|
|
80
|
+
backgroundColor: '$neutral200',
|
|
81
81
|
},
|
|
82
82
|
'&:disabled': {
|
|
83
|
-
color: '$
|
|
83
|
+
color: '$neutral400',
|
|
84
84
|
},
|
|
85
85
|
background: 'transparent',
|
|
86
86
|
border: 0,
|
|
@@ -128,19 +128,19 @@ const ButtonContainer = styled('button', {
|
|
|
128
128
|
type: 'primary',
|
|
129
129
|
variant: 'outlined',
|
|
130
130
|
css: {
|
|
131
|
-
color: '$primary
|
|
131
|
+
color: '$primary',
|
|
132
132
|
borderColor: '$primary',
|
|
133
133
|
'&:hover': {
|
|
134
|
-
color: '$primary700
|
|
135
|
-
borderColor: '$primary700
|
|
134
|
+
color: '$primary700',
|
|
135
|
+
borderColor: '$primary700',
|
|
136
136
|
},
|
|
137
137
|
'&:visited': {
|
|
138
|
-
color: '$primary900
|
|
139
|
-
borderColor: '$primary900
|
|
138
|
+
color: '$primary900',
|
|
139
|
+
borderColor: '$primary900',
|
|
140
140
|
},
|
|
141
141
|
'&:focus': {
|
|
142
|
-
color: '$primary600
|
|
143
|
-
borderColor: '$primary600
|
|
142
|
+
color: '$primary600',
|
|
143
|
+
borderColor: '$primary600',
|
|
144
144
|
},
|
|
145
145
|
},
|
|
146
146
|
},
|
|
@@ -167,7 +167,7 @@ const ButtonContainer = styled('button', {
|
|
|
167
167
|
[`.${darkTheme} &`]: {
|
|
168
168
|
$$color: '$colors$foreground',
|
|
169
169
|
},
|
|
170
|
-
color: '$$color
|
|
170
|
+
color: '$$color',
|
|
171
171
|
'&:hover': {
|
|
172
172
|
background: '$error300',
|
|
173
173
|
},
|
|
@@ -183,19 +183,19 @@ const ButtonContainer = styled('button', {
|
|
|
183
183
|
type: 'error',
|
|
184
184
|
variant: 'outlined',
|
|
185
185
|
css: {
|
|
186
|
-
color: '$error
|
|
186
|
+
color: '$error',
|
|
187
187
|
borderColor: '$error',
|
|
188
188
|
'&:hover': {
|
|
189
|
-
color: '$error300
|
|
190
|
-
borderColor: '$error300
|
|
189
|
+
color: '$error300',
|
|
190
|
+
borderColor: '$error300',
|
|
191
191
|
},
|
|
192
192
|
'&:visited': {
|
|
193
|
-
color: '$error700
|
|
194
|
-
borderColor: '$error700
|
|
193
|
+
color: '$error700',
|
|
194
|
+
borderColor: '$error700',
|
|
195
195
|
},
|
|
196
196
|
'&:focus': {
|
|
197
|
-
color: '$error700
|
|
198
|
-
borderColor: '$error700
|
|
197
|
+
color: '$error700',
|
|
198
|
+
borderColor: '$error700',
|
|
199
199
|
},
|
|
200
200
|
},
|
|
201
201
|
},
|
|
@@ -224,7 +224,7 @@ const ButtonContainer = styled('button', {
|
|
|
224
224
|
[`.${darkTheme} &`]: {
|
|
225
225
|
$$color: '$colors$foreground',
|
|
226
226
|
},
|
|
227
|
-
color: '$$color
|
|
227
|
+
color: '$$color',
|
|
228
228
|
'&:hover': {
|
|
229
229
|
background: '$warning300',
|
|
230
230
|
},
|
|
@@ -240,19 +240,19 @@ const ButtonContainer = styled('button', {
|
|
|
240
240
|
type: 'warning',
|
|
241
241
|
variant: 'outlined',
|
|
242
242
|
css: {
|
|
243
|
-
color: '$warning
|
|
243
|
+
color: '$warning',
|
|
244
244
|
borderColor: '$warning',
|
|
245
245
|
'&:hover': {
|
|
246
|
-
color: '$warning300
|
|
247
|
-
borderColor: '$warning300
|
|
246
|
+
color: '$warning300',
|
|
247
|
+
borderColor: '$warning300',
|
|
248
248
|
},
|
|
249
249
|
'&:visited': {
|
|
250
|
-
color: '$warning700
|
|
251
|
-
borderColor: '$warning700
|
|
250
|
+
color: '$warning700',
|
|
251
|
+
borderColor: '$warning700',
|
|
252
252
|
},
|
|
253
253
|
'&:focus': {
|
|
254
|
-
color: '$warning700
|
|
255
|
-
borderColor: '$warning700
|
|
254
|
+
color: '$warning700',
|
|
255
|
+
borderColor: '$warning700',
|
|
256
256
|
},
|
|
257
257
|
},
|
|
258
258
|
},
|
|
@@ -281,7 +281,7 @@ const ButtonContainer = styled('button', {
|
|
|
281
281
|
[`.${darkTheme} &`]: {
|
|
282
282
|
$$color: '$colors$foreground',
|
|
283
283
|
},
|
|
284
|
-
color: '$$color
|
|
284
|
+
color: '$$color',
|
|
285
285
|
'&:hover': {
|
|
286
286
|
background: '$success300',
|
|
287
287
|
},
|
|
@@ -297,19 +297,19 @@ const ButtonContainer = styled('button', {
|
|
|
297
297
|
type: 'success',
|
|
298
298
|
variant: 'outlined',
|
|
299
299
|
css: {
|
|
300
|
-
color: '$success
|
|
300
|
+
color: '$success',
|
|
301
301
|
borderColor: '$success',
|
|
302
302
|
'&:hover': {
|
|
303
|
-
color: '$success300
|
|
304
|
-
borderColor: '$success300
|
|
303
|
+
color: '$success300',
|
|
304
|
+
borderColor: '$success300',
|
|
305
305
|
},
|
|
306
306
|
'&:visited': {
|
|
307
|
-
color: '$success700
|
|
308
|
-
borderColor: '$success700
|
|
307
|
+
color: '$success700',
|
|
308
|
+
borderColor: '$success700',
|
|
309
309
|
},
|
|
310
310
|
'&:focus': {
|
|
311
|
-
color: '$success700
|
|
312
|
-
borderColor: '$success700
|
|
311
|
+
color: '$success700',
|
|
312
|
+
borderColor: '$success700',
|
|
313
313
|
},
|
|
314
314
|
},
|
|
315
315
|
},
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
3
|
import { Checkbox, PropTypes } from './Checkbox';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Components/Checkbox',
|
|
7
7
|
component: Checkbox,
|
|
8
|
+
args: {
|
|
9
|
+
label: 'I am a checkbox',
|
|
10
|
+
defaultChecked: true,
|
|
11
|
+
},
|
|
8
12
|
argTypes: {
|
|
9
13
|
label: {
|
|
10
14
|
name: 'label',
|
|
@@ -17,6 +21,6 @@ export default {
|
|
|
17
21
|
defaultValue: true,
|
|
18
22
|
},
|
|
19
23
|
},
|
|
20
|
-
} as
|
|
24
|
+
} as Meta<typeof Checkbox>;
|
|
21
25
|
|
|
22
26
|
export const Main = (props: PropTypes) => <Checkbox {...props} id="test" />;
|
|
@@ -19,11 +19,13 @@ const CheckboxRoot = styled(RadixCheckbox.Root, {
|
|
|
19
19
|
justifyContent: 'center',
|
|
20
20
|
marginRight: '$2',
|
|
21
21
|
backgroundColor: '$neutral-100',
|
|
22
|
+
cursor: 'pointer',
|
|
22
23
|
});
|
|
23
24
|
const Label = styled('label', {
|
|
24
25
|
color: '$foreground',
|
|
25
26
|
fontSize: '$m',
|
|
26
27
|
marginLeft: '$8',
|
|
28
|
+
cursor: 'pointer',
|
|
27
29
|
});
|
|
28
30
|
|
|
29
31
|
export interface PropTypes {
|
|
@@ -1,22 +1,39 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
3
|
|
|
4
4
|
import { Chip, PropTypes } from './Chip';
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
|
-
title: 'Chip',
|
|
7
|
+
title: 'Components/Chip',
|
|
8
8
|
component: Chip,
|
|
9
|
-
|
|
9
|
+
args: {
|
|
10
|
+
label: 'chip',
|
|
11
|
+
selected: true,
|
|
12
|
+
},
|
|
13
|
+
argTypes: {
|
|
14
|
+
label: {
|
|
15
|
+
name: 'label',
|
|
16
|
+
defaultValue: 'chip',
|
|
17
|
+
control: {
|
|
18
|
+
type: 'text',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
selected: {
|
|
22
|
+
name: 'selected',
|
|
23
|
+
control: { type: 'boolean' },
|
|
24
|
+
defaultValue: true,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
} as Meta<typeof Chip>;
|
|
10
28
|
|
|
11
|
-
export const Main = (args: PropTypes) => <Chip {...args}
|
|
29
|
+
export const Main = (args: PropTypes) => <Chip {...args} />;
|
|
12
30
|
|
|
13
31
|
export const ChipWithPrefix = (args: PropTypes) => (
|
|
14
32
|
<Chip
|
|
15
33
|
{...args}
|
|
16
|
-
label="chip"
|
|
17
34
|
prefix={
|
|
18
35
|
<img
|
|
19
|
-
src="
|
|
36
|
+
src="https://api.rango.exchange/blockchains/binance.svg"
|
|
20
37
|
style={{ width: '20px' }}
|
|
21
38
|
/>
|
|
22
39
|
}
|
|
@@ -26,7 +43,6 @@ export const ChipWithPrefix = (args: PropTypes) => (
|
|
|
26
43
|
export const ChipWithSuffix = (args: PropTypes) => (
|
|
27
44
|
<Chip
|
|
28
45
|
{...args}
|
|
29
|
-
label="chip"
|
|
30
46
|
suffix={
|
|
31
47
|
<img
|
|
32
48
|
src=" https://api.rango.exchange/blockchains/binance.svg"
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
3
|
import { ColorPicker, PropTypes } from './ColorPicker';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Components/ColorPicker',
|
|
7
7
|
component: ColorPicker,
|
|
8
|
+
args: {
|
|
9
|
+
place: 'left',
|
|
10
|
+
},
|
|
8
11
|
argTypes: {
|
|
9
12
|
place: {
|
|
10
13
|
name: 'place',
|
|
@@ -12,15 +15,20 @@ export default {
|
|
|
12
15
|
options: ['top', 'bottom', 'left', 'right'],
|
|
13
16
|
defaultValue: 'top',
|
|
14
17
|
},
|
|
18
|
+
placeholder: {
|
|
19
|
+
name: 'placeholder',
|
|
20
|
+
control: { type: 'text' },
|
|
21
|
+
defaultValue: 'Choose a color',
|
|
22
|
+
},
|
|
15
23
|
},
|
|
16
|
-
} as
|
|
24
|
+
} as Meta<typeof ColorPicker>;
|
|
17
25
|
|
|
18
26
|
export const Main = (args: PropTypes) => {
|
|
19
|
-
const [color, setColor] = useState<string>('#5FA425');
|
|
27
|
+
const [color, setColor] = useState<string | undefined>('#5FA425');
|
|
20
28
|
return (
|
|
21
29
|
<div
|
|
22
30
|
style={{
|
|
23
|
-
height:
|
|
31
|
+
height: 400,
|
|
24
32
|
display: 'flex',
|
|
25
33
|
justifyContent: 'center',
|
|
26
34
|
alignItems: 'center',
|
|
@@ -29,7 +37,9 @@ export const Main = (args: PropTypes) => {
|
|
|
29
37
|
<ColorPicker
|
|
30
38
|
{...args}
|
|
31
39
|
color={color}
|
|
32
|
-
onChangeColor={(color) =>
|
|
40
|
+
onChangeColor={(color) => {
|
|
41
|
+
console.log(color);
|
|
42
|
+
setColor(color)}}
|
|
33
43
|
/>
|
|
34
44
|
</div>
|
|
35
45
|
);
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { ChromePicker
|
|
2
|
+
import { ChromePicker } from 'react-color';
|
|
3
3
|
import { styled } from '../../theme';
|
|
4
4
|
import { Button } from '../Button';
|
|
5
|
+
import { CloseIcon } from '../Icon';
|
|
6
|
+
import rgbHex from 'rgb-hex';
|
|
5
7
|
|
|
6
8
|
const Container = styled('div', {
|
|
7
9
|
position: 'relative',
|
|
8
10
|
});
|
|
9
11
|
|
|
10
12
|
const Color = styled('div', {
|
|
11
|
-
border: '1px solid $
|
|
13
|
+
border: '1px solid $neutral100',
|
|
12
14
|
borderRadius: '$5',
|
|
13
15
|
width: '$32',
|
|
14
16
|
height: '$32',
|
|
@@ -41,13 +43,11 @@ const Popover = styled('div', {
|
|
|
41
43
|
},
|
|
42
44
|
});
|
|
43
45
|
export interface PropTypes {
|
|
44
|
-
color
|
|
46
|
+
color?: string;
|
|
45
47
|
place: 'top' | 'bottom' | 'left' | 'right';
|
|
46
|
-
onChangeColor: (
|
|
47
|
-
color: ColorResult,
|
|
48
|
-
event: React.ChangeEvent<HTMLInputElement>
|
|
49
|
-
) => void;
|
|
48
|
+
onChangeColor: (color?: string) => void;
|
|
50
49
|
label?: string;
|
|
50
|
+
placeholder?: string;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
const Label = styled('label', {
|
|
@@ -57,7 +57,13 @@ const Label = styled('label', {
|
|
|
57
57
|
color: '$foreground',
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
export function ColorPicker({
|
|
60
|
+
export function ColorPicker({
|
|
61
|
+
color,
|
|
62
|
+
onChangeColor,
|
|
63
|
+
label,
|
|
64
|
+
place,
|
|
65
|
+
placeholder,
|
|
66
|
+
}: PropTypes) {
|
|
61
67
|
const [displayColorPicker, setDisplayColorPicker] = useState<boolean>(false);
|
|
62
68
|
|
|
63
69
|
return (
|
|
@@ -69,15 +75,33 @@ export function ColorPicker({ color, onChangeColor, label, place }: PropTypes) {
|
|
|
69
75
|
fullWidth
|
|
70
76
|
align="start"
|
|
71
77
|
size="large"
|
|
78
|
+
suffix={
|
|
79
|
+
color && (
|
|
80
|
+
<div
|
|
81
|
+
onClick={(e) => {
|
|
82
|
+
e.stopPropagation();
|
|
83
|
+
onChangeColor(undefined);
|
|
84
|
+
}}
|
|
85
|
+
>
|
|
86
|
+
<CloseIcon size={20} />
|
|
87
|
+
</div>
|
|
88
|
+
)
|
|
89
|
+
}
|
|
72
90
|
onClick={() => setDisplayColorPicker((prev) => !prev)}
|
|
73
91
|
>
|
|
74
|
-
{color}
|
|
92
|
+
{color || placeholder}
|
|
75
93
|
</Button>
|
|
76
94
|
|
|
77
95
|
{displayColorPicker && (
|
|
78
96
|
<Popover place={place}>
|
|
79
97
|
<Cover onClick={() => setDisplayColorPicker(false)} />
|
|
80
|
-
<ChromePicker
|
|
98
|
+
<ChromePicker
|
|
99
|
+
color={color}
|
|
100
|
+
onChange={(c) => {
|
|
101
|
+
const color = '#' + rgbHex(c.rgb.r, c.rgb.g, c.rgb.b, c.rgb.a);
|
|
102
|
+
onChangeColor(color);
|
|
103
|
+
}}
|
|
104
|
+
/>
|
|
81
105
|
</Popover>
|
|
82
106
|
)}
|
|
83
107
|
</Container>
|
|
@@ -4,38 +4,140 @@ import { styled } from '../../theme';
|
|
|
4
4
|
const DividerContainer = styled('div', {
|
|
5
5
|
variants: {
|
|
6
6
|
size: {
|
|
7
|
-
4: {
|
|
7
|
+
4: {},
|
|
8
|
+
8: {},
|
|
9
|
+
12: {},
|
|
10
|
+
16: {},
|
|
11
|
+
18: {},
|
|
12
|
+
20: {},
|
|
13
|
+
24: {},
|
|
14
|
+
32: {},
|
|
15
|
+
},
|
|
16
|
+
direction: {
|
|
17
|
+
vertical: {},
|
|
18
|
+
horizontal: {},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
compoundVariants: [
|
|
22
|
+
{
|
|
23
|
+
size: 4,
|
|
24
|
+
direction: 'horizontal',
|
|
25
|
+
css: {
|
|
26
|
+
width: '$4',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
size: 4,
|
|
31
|
+
direction: 'vertical',
|
|
32
|
+
css: {
|
|
8
33
|
height: '$4',
|
|
9
34
|
},
|
|
10
|
-
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
size: 8,
|
|
38
|
+
direction: 'horizontal',
|
|
39
|
+
css: {
|
|
40
|
+
width: '$8',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
size: 8,
|
|
45
|
+
direction: 'vertical',
|
|
46
|
+
css: {
|
|
11
47
|
height: '$8',
|
|
12
48
|
},
|
|
13
|
-
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
size: 12,
|
|
52
|
+
direction: 'horizontal',
|
|
53
|
+
css: {
|
|
54
|
+
width: '$12',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
size: 12,
|
|
59
|
+
direction: 'vertical',
|
|
60
|
+
css: {
|
|
14
61
|
height: '$12',
|
|
15
62
|
},
|
|
16
|
-
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
size: 16,
|
|
66
|
+
direction: 'horizontal',
|
|
67
|
+
css: {
|
|
68
|
+
width: '$16',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
size: 16,
|
|
73
|
+
direction: 'vertical',
|
|
74
|
+
css: {
|
|
17
75
|
height: '$16',
|
|
18
76
|
},
|
|
19
|
-
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
size: 18,
|
|
80
|
+
direction: 'horizontal',
|
|
81
|
+
css: {
|
|
82
|
+
width: '$18',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
size: 18,
|
|
87
|
+
direction: 'vertical',
|
|
88
|
+
css: {
|
|
20
89
|
height: '$18',
|
|
21
90
|
},
|
|
22
|
-
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
size: 20,
|
|
94
|
+
direction: 'horizontal',
|
|
95
|
+
css: {
|
|
96
|
+
width: '$20',
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
size: 20,
|
|
101
|
+
direction: 'vertical',
|
|
102
|
+
css: {
|
|
23
103
|
height: '$20',
|
|
24
104
|
},
|
|
25
|
-
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
size: 24,
|
|
108
|
+
direction: 'horizontal',
|
|
109
|
+
css: {
|
|
110
|
+
width: '$24',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
size: 24,
|
|
115
|
+
direction: 'vertical',
|
|
116
|
+
css: {
|
|
26
117
|
height: '$24',
|
|
27
118
|
},
|
|
28
|
-
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
size: 32,
|
|
122
|
+
direction: 'horizontal',
|
|
123
|
+
css: {
|
|
124
|
+
width: '$32',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
size: 32,
|
|
129
|
+
direction: 'vertical',
|
|
130
|
+
css: {
|
|
29
131
|
height: '$32',
|
|
30
132
|
},
|
|
31
133
|
},
|
|
32
|
-
|
|
134
|
+
],
|
|
33
135
|
});
|
|
34
136
|
export interface PropTypes {
|
|
35
137
|
size?: 4 | 8 | 12 | 16 | 18 | 20 | 24 | 32;
|
|
36
138
|
direction?: 'vertical' | 'horizontal';
|
|
37
139
|
}
|
|
38
140
|
|
|
39
|
-
export function Divider({ size = 12 }: PropTypes) {
|
|
40
|
-
return <DividerContainer size={size} />;
|
|
141
|
+
export function Divider({ size = 12, direction = 'vertical' }: PropTypes) {
|
|
142
|
+
return <DividerContainer size={size} direction={direction} />;
|
|
41
143
|
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
3
|
import { Drawer, PropTypes } from './Drawer';
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
name: 'Components/Drawer',
|
|
7
7
|
component: Drawer,
|
|
8
|
+
args: {
|
|
9
|
+
anchor: 'bottom',
|
|
10
|
+
title: 'I`m Drawer',
|
|
11
|
+
container: document.body,
|
|
12
|
+
},
|
|
8
13
|
argTypes: {
|
|
9
14
|
anchor: {
|
|
10
15
|
name: 'anchor',
|
|
@@ -13,19 +18,14 @@ export default {
|
|
|
13
18
|
defaultValue: 'bottom',
|
|
14
19
|
},
|
|
15
20
|
},
|
|
16
|
-
} as
|
|
21
|
+
} as Meta<typeof Drawer>;
|
|
17
22
|
|
|
18
23
|
export const Main = (args: PropTypes) => {
|
|
19
24
|
const [open, setOpen] = useState<boolean>(false);
|
|
20
25
|
return (
|
|
21
26
|
<div>
|
|
22
27
|
<button onClick={() => setOpen(true)}>Open Drawer</button>
|
|
23
|
-
<Drawer
|
|
24
|
-
{...args}
|
|
25
|
-
open={open}
|
|
26
|
-
title="I'm Drawer"
|
|
27
|
-
onClose={() => setOpen(false)}
|
|
28
|
-
/>
|
|
28
|
+
<Drawer {...args} open={open} onClose={() => setOpen(false)} />
|
|
29
29
|
</div>
|
|
30
30
|
);
|
|
31
31
|
};
|
|
@@ -47,9 +47,7 @@ export const BottomAnchor = (args: PropTypes) => {
|
|
|
47
47
|
<Drawer
|
|
48
48
|
{...args}
|
|
49
49
|
open={open}
|
|
50
|
-
title="I'm Drawer"
|
|
51
50
|
onClose={() => setOpen(false)}
|
|
52
|
-
anchor="bottom"
|
|
53
51
|
content={
|
|
54
52
|
<div>
|
|
55
53
|
{Array.from({ length: 50 }, (_, index) => (
|
|
@@ -70,7 +68,6 @@ export const LeftAnchor = (args: PropTypes) => {
|
|
|
70
68
|
<Drawer
|
|
71
69
|
{...args}
|
|
72
70
|
open={open}
|
|
73
|
-
title="I'm Drawer"
|
|
74
71
|
onClose={() => setOpen(false)}
|
|
75
72
|
anchor="left"
|
|
76
73
|
content={
|