@rango-dev/ui 0.29.1-next.3 → 0.29.1-next.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/index.js +2 -2
- package/dist/index.js.map +4 -4
- package/dist/widget/ui/src/components/List/List.d.ts.map +1 -1
- package/dist/widget/ui/src/components/List/List.types.d.ts +1 -0
- package/dist/widget/ui/src/components/List/List.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/List/index.d.ts +1 -0
- package/dist/widget/ui/src/components/List/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ListItem/ListItem.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tabs/Tabs.d.ts +4 -0
- package/dist/widget/ui/src/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Tabs/Tabs.stories.d.ts +6 -0
- package/dist/widget/ui/src/components/Tabs/Tabs.stories.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Tabs/Tabs.styles.d.ts +780 -0
- package/dist/widget/ui/src/components/Tabs/Tabs.styles.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Tabs/Tabs.types.d.ts +30 -0
- package/dist/widget/ui/src/components/Tabs/Tabs.types.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Tabs/index.d.ts +2 -0
- package/dist/widget/ui/src/components/Tabs/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/index.d.ts +2 -0
- package/dist/widget/ui/src/components/index.d.ts.map +1 -1
- package/dist/widget/ui/src/icons/Bridges.d.ts +5 -0
- package/dist/widget/ui/src/icons/Bridges.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/Exchange.d.ts +5 -0
- package/dist/widget/ui/src/icons/Exchange.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/index.d.ts +2 -0
- package/dist/widget/ui/src/icons/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/List/List.tsx +2 -3
- package/src/components/List/List.types.ts +1 -0
- package/src/components/List/index.ts +1 -0
- package/src/components/ListItem/ListItem.styles.ts +1 -0
- package/src/components/Tabs/Tabs.stories.tsx +12 -0
- package/src/components/Tabs/Tabs.styles.tsx +157 -0
- package/src/components/Tabs/Tabs.tsx +95 -0
- package/src/components/Tabs/Tabs.types.tsx +32 -0
- package/src/components/Tabs/index.ts +1 -0
- package/src/components/index.ts +2 -0
- package/src/icons/Bridges.tsx +19 -0
- package/src/icons/Exchange.tsx +22 -0
- package/src/icons/index.ts +2 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tabs/Tabs.styles.tsx"],"names":[],"mappings":";;;AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAmCf,CAAC;AAEH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAqFd,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DA6BtB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Tabs } from './Tabs.styles';
|
|
3
|
+
import type * as Stitches from '@stitches/react';
|
|
4
|
+
type BaseItem = {
|
|
5
|
+
id: string | number;
|
|
6
|
+
tooltip?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
type ItemWithTitle = BaseItem & {
|
|
9
|
+
title: string;
|
|
10
|
+
icon?: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
type ItemWithIcon = BaseItem & {
|
|
13
|
+
icon: React.ReactNode;
|
|
14
|
+
title?: string;
|
|
15
|
+
};
|
|
16
|
+
type Item = ItemWithTitle | ItemWithIcon;
|
|
17
|
+
type BaseProps = Stitches.VariantProps<typeof Tabs>;
|
|
18
|
+
type BaseType = Exclude<BaseProps['type'], object>;
|
|
19
|
+
type BaseBorderRadius = Exclude<BaseProps['borderRadius'], object>;
|
|
20
|
+
export interface PropTypes {
|
|
21
|
+
items: Item[];
|
|
22
|
+
container?: HTMLElement;
|
|
23
|
+
onChange: (item: Item) => void;
|
|
24
|
+
value: string;
|
|
25
|
+
type: BaseType;
|
|
26
|
+
borderRadius?: BaseBorderRadius;
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=Tabs.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Tabs/Tabs.types.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,I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W,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SvgIconPropsWithChildren } from '../components/SvgIcon';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare function SvgBridges(props: SvgIconPropsWithChildren): React.FunctionComponentElement<SvgIconPropsWithChildren>;
|
|
4
|
+
export default SvgBridges;
|
|
5
|
+
//# sourceMappingURL=Bridges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bridges.d.ts","sourceRoot":"","sources":["../../../../../src/icons/Bridges.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAwB,MAAM,OAAO,CAAC;AAI7C,iBAAS,UAAU,CAAC,KAAK,EAAE,wBAAwB,4DAWlD;AACD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SvgIconPropsWithChildren } from '../components/SvgIcon';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare function SvgExchange(props: SvgIconPropsWithChildren): React.FunctionComponentElement<SvgIconPropsWithChildren>;
|
|
4
|
+
export default SvgExchange;
|
|
5
|
+
//# sourceMappingURL=Exchange.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Exchange.d.ts","sourceRoot":"","sources":["../../../../../src/icons/Exchange.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAwB,MAAM,OAAO,CAAC;AAI7C,iBAAS,WAAW,CAAC,KAAK,EAAE,wBAAwB,4DAcnD;AACD,eAAe,WAAW,CAAC"}
|
|
@@ -2,6 +2,7 @@ export { default as AddIcon } from './Add';
|
|
|
2
2
|
export { default as AutoThemeIcon } from './AutoTheme';
|
|
3
3
|
export { default as AutorenewIcon } from './Autorenew';
|
|
4
4
|
export { default as BorderRadiusIcon } from './BorderRadius';
|
|
5
|
+
export { default as BridgeIcon } from './Bridges';
|
|
5
6
|
export { default as ChevronDownIcon } from './ChevronDown';
|
|
6
7
|
export { default as ChevronLeftIcon } from './ChevronLeft';
|
|
7
8
|
export { default as ChevronRightIcon } from './ChevronRight';
|
|
@@ -18,6 +19,7 @@ export { default as DoneIcon } from './Done';
|
|
|
18
19
|
export { default as EvmCategoryIcon } from './EvmCategory';
|
|
19
20
|
export { default as ErrorIcon } from './Error';
|
|
20
21
|
export { default as ExitIcon } from './Exit';
|
|
22
|
+
export { default as ExchangeIcon } from './Exchange';
|
|
21
23
|
export { default as ExternalLinkIcon } from './ExternalLink';
|
|
22
24
|
export { default as FontIcon } from './Font';
|
|
23
25
|
export { default as GasIcon } from './Gas';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,OAAO,IAA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OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -7,12 +7,11 @@ import { ListItem } from '../ListItem';
|
|
|
7
7
|
import { BaseList } from './List.styles';
|
|
8
8
|
|
|
9
9
|
function List(props: ListPropTypes) {
|
|
10
|
-
const container = props.type;
|
|
11
|
-
|
|
12
10
|
return (
|
|
13
11
|
<BaseList as={props.as}>
|
|
14
12
|
{props.items.map((item) => {
|
|
15
|
-
const { id, ...itemProps } = item;
|
|
13
|
+
const { id, type, ...itemProps } = item;
|
|
14
|
+
const container = type || props.type;
|
|
16
15
|
|
|
17
16
|
if (!!container) {
|
|
18
17
|
return React.cloneElement(container, {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PropTypes } from './Tabs.types';
|
|
2
|
+
import type { Meta } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
import React from 'react';
|
|
5
|
+
|
|
6
|
+
import { Tabs } from '.';
|
|
7
|
+
|
|
8
|
+
export default { title: 'Components/Tabs', component: Tabs } as Meta<
|
|
9
|
+
typeof Tabs
|
|
10
|
+
>;
|
|
11
|
+
|
|
12
|
+
export const Main = (args: PropTypes) => <Tabs {...args} />;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { darkTheme, styled } from '../../theme';
|
|
2
|
+
import { Button } from '../Button';
|
|
3
|
+
|
|
4
|
+
export const Tabs = styled('div', {
|
|
5
|
+
display: 'flex',
|
|
6
|
+
flexDirection: 'row',
|
|
7
|
+
position: 'relative',
|
|
8
|
+
justifyContent: 'space-between',
|
|
9
|
+
height: '100%',
|
|
10
|
+
variants: {
|
|
11
|
+
type: {
|
|
12
|
+
secondary: {
|
|
13
|
+
border: '3px solid $neutral100',
|
|
14
|
+
backgroundColor: '$neutral100',
|
|
15
|
+
},
|
|
16
|
+
primary: {
|
|
17
|
+
$$color: '$colors$neutral200',
|
|
18
|
+
[`.${darkTheme} &`]: {
|
|
19
|
+
$$color: '$colors$neutral500',
|
|
20
|
+
},
|
|
21
|
+
borderColor: '$$color',
|
|
22
|
+
borderWidth: '5px',
|
|
23
|
+
borderStyle: 'solid',
|
|
24
|
+
backgroundColor: '$$color',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
borderRadius: {
|
|
28
|
+
small: {
|
|
29
|
+
borderRadius: '$xs',
|
|
30
|
+
},
|
|
31
|
+
medium: {
|
|
32
|
+
borderRadius: '$sm',
|
|
33
|
+
},
|
|
34
|
+
full: {
|
|
35
|
+
borderRadius: '$xm',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export const Tab = styled(Button, {
|
|
42
|
+
color: '$neutral700',
|
|
43
|
+
backgroundColor: 'transparent',
|
|
44
|
+
height: '100%',
|
|
45
|
+
zIndex: 10,
|
|
46
|
+
'& ._text': {
|
|
47
|
+
display: 'flex',
|
|
48
|
+
flexDirection: 'row',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
justifyContent: 'center',
|
|
51
|
+
},
|
|
52
|
+
variants: {
|
|
53
|
+
borderRadius: {
|
|
54
|
+
small: {
|
|
55
|
+
borderRadius: '$xs',
|
|
56
|
+
},
|
|
57
|
+
medium: {
|
|
58
|
+
borderRadius: '$sm',
|
|
59
|
+
},
|
|
60
|
+
full: {
|
|
61
|
+
borderRadius: '$xm',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
type: {
|
|
65
|
+
primary: {
|
|
66
|
+
padding: '$5 $10',
|
|
67
|
+
height: '100%',
|
|
68
|
+
},
|
|
69
|
+
secondary: {},
|
|
70
|
+
},
|
|
71
|
+
isActive: {
|
|
72
|
+
true: {
|
|
73
|
+
transition: 'color 0.8s linear',
|
|
74
|
+
},
|
|
75
|
+
false: {},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
compoundVariants: [
|
|
80
|
+
{
|
|
81
|
+
type: 'secondary',
|
|
82
|
+
isActive: true,
|
|
83
|
+
css: {
|
|
84
|
+
$$color: '$colors$background',
|
|
85
|
+
[`.${darkTheme} &`]: {
|
|
86
|
+
$$color: '$colors$foreground',
|
|
87
|
+
},
|
|
88
|
+
color: '$$color',
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
type: 'secondary',
|
|
93
|
+
isActive: false,
|
|
94
|
+
css: {
|
|
95
|
+
'&:hover': {
|
|
96
|
+
backgroundColor: '$info100',
|
|
97
|
+
color: '$secondary500',
|
|
98
|
+
[`.${darkTheme} &`]: {
|
|
99
|
+
backgroundColor: 'transparent',
|
|
100
|
+
color: '$neutral700',
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
{
|
|
107
|
+
type: 'primary',
|
|
108
|
+
isActive: true,
|
|
109
|
+
css: {
|
|
110
|
+
color: '$secondary',
|
|
111
|
+
'& svg': {
|
|
112
|
+
color: '$secondary',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
type: 'primary',
|
|
118
|
+
isActive: false,
|
|
119
|
+
css: {
|
|
120
|
+
'&:hover': {
|
|
121
|
+
backgroundColor: 'transparent',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
export const BackdropTab = styled('div', {
|
|
129
|
+
padding: '$4',
|
|
130
|
+
position: 'absolute',
|
|
131
|
+
inset: 0,
|
|
132
|
+
transition: 'transform 0.2s cubic-bezier(0, 0, 0.86, 1.2)',
|
|
133
|
+
'&.no-transition': {
|
|
134
|
+
transition: 'none',
|
|
135
|
+
},
|
|
136
|
+
variants: {
|
|
137
|
+
type: {
|
|
138
|
+
secondary: {
|
|
139
|
+
backgroundColor: '$secondary500',
|
|
140
|
+
},
|
|
141
|
+
primary: {
|
|
142
|
+
backgroundColor: '$background',
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
borderRadius: {
|
|
146
|
+
small: {
|
|
147
|
+
borderRadius: '$xs',
|
|
148
|
+
},
|
|
149
|
+
medium: {
|
|
150
|
+
borderRadius: '$sm',
|
|
151
|
+
},
|
|
152
|
+
full: {
|
|
153
|
+
borderRadius: '$xm',
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
});
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { PropTypes } from './Tabs.types';
|
|
2
|
+
|
|
3
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
4
|
+
|
|
5
|
+
import { Divider } from '../Divider';
|
|
6
|
+
import { Tooltip } from '../Tooltip';
|
|
7
|
+
|
|
8
|
+
import { BackdropTab, Tab, Tabs } from './Tabs.styles';
|
|
9
|
+
|
|
10
|
+
const INITIAL_RENDER_DELAY = 100;
|
|
11
|
+
export function TabsComponent(props: PropTypes) {
|
|
12
|
+
const {
|
|
13
|
+
items: tabItems,
|
|
14
|
+
onChange,
|
|
15
|
+
container = document.body,
|
|
16
|
+
value,
|
|
17
|
+
type,
|
|
18
|
+
borderRadius = 'medium',
|
|
19
|
+
className,
|
|
20
|
+
} = props;
|
|
21
|
+
const [tabWidth, setTabWidth] = useState(0);
|
|
22
|
+
const tabRef: React.Ref<HTMLButtonElement> = useRef(null);
|
|
23
|
+
const currentIndex = tabItems.findIndex((item) => item.id === value);
|
|
24
|
+
|
|
25
|
+
// State variable to track the initial render
|
|
26
|
+
const [initialRender, setInitialRender] = useState(true);
|
|
27
|
+
const transformPosition = currentIndex * tabWidth;
|
|
28
|
+
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
const updateTabWidth = () => {
|
|
31
|
+
if (tabRef.current) {
|
|
32
|
+
const tabRect = tabRef.current.getBoundingClientRect();
|
|
33
|
+
setTabWidth(tabRect.width);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
updateTabWidth();
|
|
37
|
+
window.addEventListener('resize', updateTabWidth);
|
|
38
|
+
return () => {
|
|
39
|
+
window.removeEventListener('resize', updateTabWidth);
|
|
40
|
+
};
|
|
41
|
+
}, []);
|
|
42
|
+
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
// Set initialRender to false after a short delay
|
|
45
|
+
const timeout = setTimeout(() => {
|
|
46
|
+
setInitialRender(false);
|
|
47
|
+
clearTimeout(timeout);
|
|
48
|
+
}, INITIAL_RENDER_DELAY);
|
|
49
|
+
}, []);
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<Tabs
|
|
53
|
+
className={`_tabs ${className || ''}`}
|
|
54
|
+
type={type}
|
|
55
|
+
borderRadius={borderRadius}>
|
|
56
|
+
{tabItems.map((item, index) => (
|
|
57
|
+
<Tooltip
|
|
58
|
+
key={item.id}
|
|
59
|
+
style={{ width: '100%' }}
|
|
60
|
+
container={container}
|
|
61
|
+
side="bottom"
|
|
62
|
+
sideOffset={2}
|
|
63
|
+
content={item.tooltip}
|
|
64
|
+
open={!item.tooltip ? false : undefined}>
|
|
65
|
+
<Tab
|
|
66
|
+
className="_tab"
|
|
67
|
+
ref={index === 0 ? tabRef : null} // Set ref on the first tab
|
|
68
|
+
type={type}
|
|
69
|
+
fullWidth
|
|
70
|
+
disableRipple={true}
|
|
71
|
+
borderRadius={borderRadius}
|
|
72
|
+
onClick={() => onChange(item)}
|
|
73
|
+
size="small"
|
|
74
|
+
isActive={item.id === value}
|
|
75
|
+
variant="default">
|
|
76
|
+
{item.icon}
|
|
77
|
+
{!!item.icon && !!item.title && (
|
|
78
|
+
<Divider direction="horizontal" size="2" />
|
|
79
|
+
)}
|
|
80
|
+
{item.title}
|
|
81
|
+
</Tab>
|
|
82
|
+
</Tooltip>
|
|
83
|
+
))}
|
|
84
|
+
<BackdropTab
|
|
85
|
+
type={type}
|
|
86
|
+
borderRadius={borderRadius}
|
|
87
|
+
className={`_backdrop-tab ${initialRender ? 'no-transition' : ''}`}
|
|
88
|
+
css={{
|
|
89
|
+
width: tabWidth,
|
|
90
|
+
transform: `translateX(${transformPosition}px)`,
|
|
91
|
+
}}
|
|
92
|
+
/>
|
|
93
|
+
</Tabs>
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Tabs } from './Tabs.styles';
|
|
2
|
+
import type * as Stitches from '@stitches/react';
|
|
3
|
+
|
|
4
|
+
type BaseItem = {
|
|
5
|
+
id: string | number;
|
|
6
|
+
tooltip?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
type ItemWithTitle = BaseItem & {
|
|
10
|
+
title: string;
|
|
11
|
+
icon?: React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
type ItemWithIcon = BaseItem & {
|
|
15
|
+
icon: React.ReactNode;
|
|
16
|
+
title?: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
type Item = ItemWithTitle | ItemWithIcon;
|
|
20
|
+
type BaseProps = Stitches.VariantProps<typeof Tabs>;
|
|
21
|
+
type BaseType = Exclude<BaseProps['type'], object>;
|
|
22
|
+
type BaseBorderRadius = Exclude<BaseProps['borderRadius'], object>;
|
|
23
|
+
|
|
24
|
+
export interface PropTypes {
|
|
25
|
+
items: Item[];
|
|
26
|
+
container?: HTMLElement;
|
|
27
|
+
onChange: (item: Item) => void;
|
|
28
|
+
value: string;
|
|
29
|
+
type: BaseType;
|
|
30
|
+
borderRadius?: BaseBorderRadius;
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TabsComponent as Tabs } from './Tabs';
|
package/src/components/index.ts
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SvgIconPropsWithChildren } from '../components/SvgIcon';
|
|
2
|
+
|
|
3
|
+
import React, { createElement } from 'react';
|
|
4
|
+
|
|
5
|
+
import { SvgIcon } from '../components/SvgIcon';
|
|
6
|
+
|
|
7
|
+
function SvgBridges(props: SvgIconPropsWithChildren) {
|
|
8
|
+
return createElement(
|
|
9
|
+
SvgIcon,
|
|
10
|
+
props,
|
|
11
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
12
|
+
<path
|
|
13
|
+
d="M18.21 9.21C15.93 10.78 13.45 13.3 13 17H15V19H9V17H11C10.5 12.5 6.63 9 2 9V7C6.39 7 10.22 9.55 12 13.3C13.13 10.87 14.99 9.05 16.78 7.78L14 5H21V12L18.21 9.21Z"
|
|
14
|
+
fill="currentColor"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export default SvgBridges;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { SvgIconPropsWithChildren } from '../components/SvgIcon';
|
|
2
|
+
|
|
3
|
+
import React, { createElement } from 'react';
|
|
4
|
+
|
|
5
|
+
import { SvgIcon } from '../components/SvgIcon';
|
|
6
|
+
|
|
7
|
+
function SvgExchange(props: SvgIconPropsWithChildren) {
|
|
8
|
+
return createElement(
|
|
9
|
+
SvgIcon,
|
|
10
|
+
props,
|
|
11
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
12
|
+
<g id="Icons">
|
|
13
|
+
<path
|
|
14
|
+
id="Vector"
|
|
15
|
+
d="M6.99 11L3 15L6.99 19V16H14V14H6.99V11ZM21 9L17.01 5V8H10V10H17.01V13L21 9Z"
|
|
16
|
+
fill="currentColor"
|
|
17
|
+
/>
|
|
18
|
+
</g>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
export default SvgExchange;
|
package/src/icons/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { default as AddIcon } from './Add';
|
|
|
2
2
|
export { default as AutoThemeIcon } from './AutoTheme';
|
|
3
3
|
export { default as AutorenewIcon } from './Autorenew';
|
|
4
4
|
export { default as BorderRadiusIcon } from './BorderRadius';
|
|
5
|
+
export { default as BridgeIcon } from './Bridges';
|
|
5
6
|
export { default as ChevronDownIcon } from './ChevronDown';
|
|
6
7
|
export { default as ChevronLeftIcon } from './ChevronLeft';
|
|
7
8
|
export { default as ChevronRightIcon } from './ChevronRight';
|
|
@@ -18,6 +19,7 @@ export { default as DoneIcon } from './Done';
|
|
|
18
19
|
export { default as EvmCategoryIcon } from './EvmCategory';
|
|
19
20
|
export { default as ErrorIcon } from './Error';
|
|
20
21
|
export { default as ExitIcon } from './Exit';
|
|
22
|
+
export { default as ExchangeIcon } from './Exchange';
|
|
21
23
|
export { default as ExternalLinkIcon } from './ExternalLink';
|
|
22
24
|
export { default as FontIcon } from './Font';
|
|
23
25
|
export { default as GasIcon } from './Gas';
|