@rango-dev/ui 0.26.1-next.1 → 0.26.1-next.10
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 +6 -6
- package/dist/index.js.map +4 -4
- package/dist/translations/en.d.ts.map +1 -1
- package/dist/translations/es.d.ts.map +1 -1
- package/dist/translations/fr.d.ts.map +1 -1
- package/dist/translations/ja.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Alert/Alert.styles.d.ts +16 -0
- package/dist/widget/ui/src/components/Alert/Alert.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/BlockchainsChip/BlockchainsChip.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/BottomLogo/BottomLogo.styles.d.ts +8 -0
- package/dist/widget/ui/src/components/BottomLogo/BottomLogo.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Button/Button.d.ts +1 -0
- package/dist/widget/ui/src/components/Button/Button.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Button/Button.styles.d.ts +12 -0
- package/dist/widget/ui/src/components/Button/Button.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Button/Button.types.d.ts +1 -0
- package/dist/widget/ui/src/components/Button/Button.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ChainToken/ChainToken.styles.d.ts +8 -0
- package/dist/widget/ui/src/components/ChainToken/ChainToken.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Checkbox/Checkbox.styles.d.ts +16 -0
- package/dist/widget/ui/src/components/Checkbox/Checkbox.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Chip/Chip.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/Chip/Chip.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Collapsible/Collapsible.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/Collapsible/Collapsible.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Divider/Divider.d.ts +2 -5
- package/dist/widget/ui/src/components/Divider/Divider.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Divider/Divider.styles.d.ts +165 -0
- package/dist/widget/ui/src/components/Divider/Divider.styles.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Divider/Divider.types.d.ts +10 -0
- package/dist/widget/ui/src/components/Divider/Divider.types.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Drawer/Drawer.styles.d.ts +20 -0
- package/dist/widget/ui/src/components/Drawer/Drawer.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Header/Header.styles.d.ts +8 -0
- package/dist/widget/ui/src/components/Header/Header.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Icon/CloseIcon.d.ts +4 -0
- package/dist/widget/ui/src/components/Icon/CloseIcon.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Icon/common.d.ts +8 -0
- package/dist/widget/ui/src/components/Icon/common.d.ts.map +1 -1
- package/dist/widget/ui/src/components/List/List.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/List/List.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ListItem/ListItem.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/ListItem/ListItem.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ListItemButton/ListItemButton.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/ListItemButton/ListItemButton.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/MessageBox/CollapsibleMessageBox.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/MessageBox/CollapsibleMessageBox.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/MessageBox/MessageBox.styles.d.ts +12 -0
- package/dist/widget/ui/src/components/MessageBox/MessageBox.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Modal/Modal.styles.d.ts +24 -0
- package/dist/widget/ui/src/components/Modal/Modal.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/NotFound/NotFound.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/NotFound/NotFound.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Popover/Popover.styles.d.ts +8 -0
- package/dist/widget/ui/src/components/Popover/Popover.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/PriceImpact/PriceImpact.styles.d.ts +8 -0
- package/dist/widget/ui/src/components/PriceImpact/PriceImpact.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/QuoteCost/QuoteCost.d.ts.map +1 -1
- package/dist/widget/ui/src/components/QuoteCost/QuoteCost.styles.d.ts +16 -0
- package/dist/widget/ui/src/components/QuoteCost/QuoteCost.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/QuoteCost/QuoteCost.types.d.ts +4 -0
- package/dist/widget/ui/src/components/QuoteCost/QuoteCost.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Radio/Radio.styles.d.ts +8 -0
- package/dist/widget/ui/src/components/Radio/Radio.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/RadioGroup/RadioGroup.styles.d.ts +16 -0
- package/dist/widget/ui/src/components/RadioGroup/RadioGroup.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/RefreshProgressButton/RefreshProgressButton.d.ts +7 -0
- package/dist/widget/ui/src/components/RefreshProgressButton/RefreshProgressButton.d.ts.map +1 -0
- package/dist/widget/ui/src/components/RefreshProgressButton/RefreshProgressButton.styles.d.ts +325 -0
- package/dist/widget/ui/src/components/RefreshProgressButton/RefreshProgressButton.styles.d.ts.map +1 -0
- package/dist/widget/ui/src/components/RefreshProgressButton/index.d.ts +2 -0
- package/dist/widget/ui/src/components/RefreshProgressButton/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/RoutesOverview/RoutesOverview.d.ts +4 -0
- package/dist/widget/ui/src/components/RoutesOverview/RoutesOverview.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.styles.d.ts +12 -0
- package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Skeleton/Skeleton.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/Skeleton/Skeleton.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/StepDetails/StepDetails.d.ts.map +1 -1
- package/dist/widget/ui/src/components/StepDetails/StepDetails.styles.d.ts +185 -1
- package/dist/widget/ui/src/components/StepDetails/StepDetails.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/StepDetails/StepDetails.types.d.ts +15 -1
- package/dist/widget/ui/src/components/StepDetails/StepDetails.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SvgIcon/SvgIcon.style.d.ts +4 -0
- package/dist/widget/ui/src/components/SvgIcon/SvgIcon.style.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.d.ts +4 -0
- package/dist/widget/ui/src/components/SwapDetailsPlaceholder/SwapDetailsPlaceholder.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.styles.d.ts +24 -0
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.types.d.ts +1 -0
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapToken.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapToken.styles.d.ts +36 -0
- package/dist/widget/ui/src/components/SwapListItem/SwapToken.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapListItem/mock.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Switch/Switch.styles.d.ts +8 -0
- package/dist/widget/ui/src/components/Switch/Switch.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TextField/TextField.d.ts +2 -1
- package/dist/widget/ui/src/components/TextField/TextField.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TextField/TextField.stories.d.ts +2 -1
- package/dist/widget/ui/src/components/TextField/TextField.stories.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TextField/TextField.styles.d.ts +12 -0
- package/dist/widget/ui/src/components/TextField/TextField.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TextField/TextField.types.d.ts +3 -1
- package/dist/widget/ui/src/components/TextField/TextField.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TokenAmount/TokenAmount.styles.d.ts +12 -0
- package/dist/widget/ui/src/components/TokenAmount/TokenAmount.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.styles.d.ts +15 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.types.d.ts +6 -2
- package/dist/widget/ui/src/components/Tooltip/Tooltip.types.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Typography/Typography.styles.d.ts +4 -0
- package/dist/widget/ui/src/components/Typography/Typography.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Wallet/Wallet.styles.d.ts +20 -0
- package/dist/widget/ui/src/components/Wallet/Wallet.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/common/FilledCircle.d.ts +4 -0
- package/dist/widget/ui/src/components/common/FilledCircle.d.ts.map +1 -1
- package/dist/widget/ui/src/components/common/Image.d.ts +4 -0
- package/dist/widget/ui/src/components/common/Image.d.ts.map +1 -1
- package/dist/widget/ui/src/components/common/styles.d.ts +4 -0
- package/dist/widget/ui/src/components/common/styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/index.d.ts +1 -0
- package/dist/widget/ui/src/components/index.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.d.ts +40 -0
- package/dist/widget/ui/src/containers/SwapHistory/SwapHistory.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts +47 -1
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/SwapInput/TokenSection.styles.d.ts +21 -0
- package/dist/widget/ui/src/containers/SwapInput/TokenSection.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/containers/TokenSelector/TokenSelector.d.ts +4 -0
- package/dist/widget/ui/src/containers/TokenSelector/TokenSelector.d.ts.map +1 -1
- package/dist/widget/ui/src/icons/Height.d.ts +5 -0
- package/dist/widget/ui/src/icons/Height.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/Key.d.ts +5 -0
- package/dist/widget/ui/src/icons/Key.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/Refresh.d.ts.map +1 -1
- package/dist/widget/ui/src/icons/Width.d.ts +5 -0
- package/dist/widget/ui/src/icons/Width.d.ts.map +1 -0
- package/dist/widget/ui/src/icons/index.d.ts +3 -0
- package/dist/widget/ui/src/icons/index.d.ts.map +1 -1
- package/dist/widget/ui/src/theme.d.ts +29 -0
- package/dist/widget/ui/src/theme.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/Button/Button.tsx +4 -1
- package/src/components/Button/Button.types.tsx +1 -0
- package/src/components/Divider/Divider.styles.ts +165 -0
- package/src/components/Divider/Divider.tsx +8 -140
- package/src/components/Divider/Divider.types.ts +10 -0
- package/src/components/QuoteCost/QuoteCost.styles.ts +28 -1
- package/src/components/QuoteCost/QuoteCost.tsx +28 -8
- package/src/components/QuoteCost/QuoteCost.types.ts +4 -0
- package/src/components/RefreshProgressButton/RefreshProgressButton.styles.ts +28 -0
- package/src/components/RefreshProgressButton/RefreshProgressButton.tsx +70 -0
- package/src/components/RefreshProgressButton/index.ts +1 -0
- package/src/components/StepDetails/StepDetails.styles.ts +28 -5
- package/src/components/StepDetails/StepDetails.tsx +73 -23
- package/src/components/StepDetails/StepDetails.types.ts +17 -1
- package/src/components/SwapListItem/SwapListItem.types.ts +1 -0
- package/src/components/SwapListItem/SwapToken.tsx +4 -3
- package/src/components/SwapListItem/mock.ts +1 -0
- package/src/components/Switch/Switch.styles.tsx +7 -0
- package/src/components/TextField/TextField.tsx +5 -2
- package/src/components/TextField/TextField.types.tsx +3 -1
- package/src/components/Tooltip/Tooltip.styles.ts +7 -0
- package/src/components/Tooltip/Tooltip.tsx +2 -1
- package/src/components/Tooltip/Tooltip.types.ts +6 -2
- package/src/components/Wallet/Wallet.styles.ts +1 -1
- package/src/components/index.ts +1 -0
- package/src/icons/Height.tsx +24 -0
- package/src/icons/Key.tsx +32 -0
- package/src/icons/Refresh.tsx +10 -2
- package/src/icons/Width.tsx +29 -0
- package/src/icons/index.ts +3 -0
- package/src/theme.ts +3 -0
|
@@ -129,12 +129,14 @@ export declare const theme: {
|
|
|
129
129
|
4: string;
|
|
130
130
|
6: string;
|
|
131
131
|
8: string;
|
|
132
|
+
10: string;
|
|
132
133
|
12: string;
|
|
133
134
|
16: string;
|
|
134
135
|
18: string;
|
|
135
136
|
20: string;
|
|
136
137
|
24: string;
|
|
137
138
|
28: string;
|
|
139
|
+
30: string;
|
|
138
140
|
32: string;
|
|
139
141
|
36: string;
|
|
140
142
|
40: string;
|
|
@@ -172,6 +174,7 @@ export declare const darkColors: {
|
|
|
172
174
|
export declare const styled: <Type extends import("react").ComponentType<any> | import("@stitches/react/types/util").Function | keyof JSX.IntrinsicElements, Composers extends (string | import("react").ComponentType<any> | import("@stitches/react/types/util").Function | {
|
|
173
175
|
[name: string]: unknown;
|
|
174
176
|
})[], CSS = import("@stitches/react/types/css-util").CSS<{
|
|
177
|
+
xs: string;
|
|
175
178
|
sm: string;
|
|
176
179
|
md: string;
|
|
177
180
|
lg: string;
|
|
@@ -304,12 +307,14 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
304
307
|
4: string;
|
|
305
308
|
6: string;
|
|
306
309
|
8: string;
|
|
310
|
+
10: string;
|
|
307
311
|
12: string;
|
|
308
312
|
16: string;
|
|
309
313
|
18: string;
|
|
310
314
|
20: string;
|
|
311
315
|
24: string;
|
|
312
316
|
28: string;
|
|
317
|
+
30: string;
|
|
313
318
|
32: string;
|
|
314
319
|
36: string;
|
|
315
320
|
40: string;
|
|
@@ -335,10 +340,12 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
335
340
|
})[] | undefined;
|
|
336
341
|
defaultVariants?: ("variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T_1 ? { [Name_1 in keyof T_1]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : never : import("@stitches/react/types/util").WideObject) | undefined;
|
|
337
342
|
} & CSS & (Composers[K] extends infer T_2 ? { [K2 in keyof T_2]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; } : never); }) => import("@stitches/react/types/styled-component").StyledComponent<Type, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {
|
|
343
|
+
xs: string;
|
|
338
344
|
sm: string;
|
|
339
345
|
md: string;
|
|
340
346
|
lg: string;
|
|
341
347
|
}, import("@stitches/react/types/css-util").CSS<{
|
|
348
|
+
xs: string;
|
|
342
349
|
sm: string;
|
|
343
350
|
md: string;
|
|
344
351
|
lg: string;
|
|
@@ -471,12 +478,14 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
471
478
|
4: string;
|
|
472
479
|
6: string;
|
|
473
480
|
8: string;
|
|
481
|
+
10: string;
|
|
474
482
|
12: string;
|
|
475
483
|
16: string;
|
|
476
484
|
18: string;
|
|
477
485
|
20: string;
|
|
478
486
|
24: string;
|
|
479
487
|
28: string;
|
|
488
|
+
30: string;
|
|
480
489
|
32: string;
|
|
481
490
|
36: string;
|
|
482
491
|
40: string;
|
|
@@ -493,6 +502,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
493
502
|
}, DefaultThemeMap, {}>>, css: <Composers extends (string | import("react").JSXElementConstructor<any> | import("react").ExoticComponent<any> | import("@stitches/react/types/util").Function | {
|
|
494
503
|
[name: string]: unknown;
|
|
495
504
|
})[], CSS = import("@stitches/react/types/css-util").CSS<{
|
|
505
|
+
xs: string;
|
|
496
506
|
sm: string;
|
|
497
507
|
md: string;
|
|
498
508
|
lg: string;
|
|
@@ -625,12 +635,14 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
625
635
|
4: string;
|
|
626
636
|
6: string;
|
|
627
637
|
8: string;
|
|
638
|
+
10: string;
|
|
628
639
|
12: string;
|
|
629
640
|
16: string;
|
|
630
641
|
18: string;
|
|
631
642
|
20: string;
|
|
632
643
|
24: string;
|
|
633
644
|
28: string;
|
|
645
|
+
30: string;
|
|
634
646
|
32: string;
|
|
635
647
|
36: string;
|
|
636
648
|
40: string;
|
|
@@ -656,6 +668,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
656
668
|
})[] | undefined;
|
|
657
669
|
defaultVariants?: ("variants" extends keyof Composers[K] ? Composers[K][keyof Composers[K] & "variants"] extends infer T_1 ? { [Name_1 in keyof T_1]?: import("@stitches/react/types/util").String | import("@stitches/react/types/util").Widen<keyof Composers[K][keyof Composers[K] & "variants"][Name_1]> | undefined; } : never : import("@stitches/react/types/util").WideObject) | undefined;
|
|
658
670
|
} & CSS & (Composers[K] extends infer T_2 ? { [K2 in keyof T_2]: K2 extends "compoundVariants" | "defaultVariants" | "variants" ? unknown : K2 extends keyof CSS ? CSS[K2] : unknown; } : never); }) => import("@stitches/react/types/styled-component").CssComponent<import("@stitches/react/types/styled-component").StyledComponentType<Composers>, import("@stitches/react/types/styled-component").StyledComponentProps<Composers>, {
|
|
671
|
+
xs: string;
|
|
659
672
|
sm: string;
|
|
660
673
|
md: string;
|
|
661
674
|
lg: string;
|
|
@@ -788,12 +801,14 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
788
801
|
4?: string | number | boolean | undefined;
|
|
789
802
|
6?: string | number | boolean | undefined;
|
|
790
803
|
8?: string | number | boolean | undefined;
|
|
804
|
+
10?: string | number | boolean | undefined;
|
|
791
805
|
12?: string | number | boolean | undefined;
|
|
792
806
|
16?: string | number | boolean | undefined;
|
|
793
807
|
18?: string | number | boolean | undefined;
|
|
794
808
|
20?: string | number | boolean | undefined;
|
|
795
809
|
24?: string | number | boolean | undefined;
|
|
796
810
|
28?: string | number | boolean | undefined;
|
|
811
|
+
30?: string | number | boolean | undefined;
|
|
797
812
|
32?: string | number | boolean | undefined;
|
|
798
813
|
36?: string | number | boolean | undefined;
|
|
799
814
|
40?: string | number | boolean | undefined;
|
|
@@ -941,12 +956,14 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
941
956
|
4?: string | number | boolean | undefined;
|
|
942
957
|
6?: string | number | boolean | undefined;
|
|
943
958
|
8?: string | number | boolean | undefined;
|
|
959
|
+
10?: string | number | boolean | undefined;
|
|
944
960
|
12?: string | number | boolean | undefined;
|
|
945
961
|
16?: string | number | boolean | undefined;
|
|
946
962
|
18?: string | number | boolean | undefined;
|
|
947
963
|
20?: string | number | boolean | undefined;
|
|
948
964
|
24?: string | number | boolean | undefined;
|
|
949
965
|
28?: string | number | boolean | undefined;
|
|
966
|
+
30?: string | number | boolean | undefined;
|
|
950
967
|
32?: string | number | boolean | undefined;
|
|
951
968
|
36?: string | number | boolean | undefined;
|
|
952
969
|
40?: string | number | boolean | undefined;
|
|
@@ -970,6 +987,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
970
987
|
selector: string;
|
|
971
988
|
} & (Argument0 extends string ? import("@stitches/react/types/stitches").ThemeTokens<Argument1, ""> : import("@stitches/react/types/stitches").ThemeTokens<Argument0, "">), keyframes: (style: {
|
|
972
989
|
[offset: string]: import("@stitches/react/types/css-util").CSS<{
|
|
990
|
+
xs: string;
|
|
973
991
|
sm: string;
|
|
974
992
|
md: string;
|
|
975
993
|
lg: string;
|
|
@@ -1102,12 +1120,14 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1102
1120
|
4: string;
|
|
1103
1121
|
6: string;
|
|
1104
1122
|
8: string;
|
|
1123
|
+
10: string;
|
|
1105
1124
|
12: string;
|
|
1106
1125
|
16: string;
|
|
1107
1126
|
18: string;
|
|
1108
1127
|
20: string;
|
|
1109
1128
|
24: string;
|
|
1110
1129
|
28: string;
|
|
1130
|
+
30: string;
|
|
1111
1131
|
32: string;
|
|
1112
1132
|
36: string;
|
|
1113
1133
|
40: string;
|
|
@@ -1132,6 +1152,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1132
1152
|
'@font-face'?: unknown;
|
|
1133
1153
|
} & { [K in keyof Styles]: K extends "@import" ? string | string[] : K extends "@font-face" ? import("@stitches/react/types/css").AtRule.FontFace | import("@stitches/react/types/css").AtRule.FontFace[] : K extends `@keyframes ${string}` ? {
|
|
1134
1154
|
[x: string]: import("@stitches/react/types/css-util").CSS<{
|
|
1155
|
+
xs: string;
|
|
1135
1156
|
sm: string;
|
|
1136
1157
|
md: string;
|
|
1137
1158
|
lg: string;
|
|
@@ -1264,12 +1285,14 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1264
1285
|
4: string;
|
|
1265
1286
|
6: string;
|
|
1266
1287
|
8: string;
|
|
1288
|
+
10: string;
|
|
1267
1289
|
12: string;
|
|
1268
1290
|
16: string;
|
|
1269
1291
|
18: string;
|
|
1270
1292
|
20: string;
|
|
1271
1293
|
24: string;
|
|
1272
1294
|
28: string;
|
|
1295
|
+
30: string;
|
|
1273
1296
|
32: string;
|
|
1274
1297
|
36: string;
|
|
1275
1298
|
40: string;
|
|
@@ -1285,6 +1308,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1285
1308
|
transitions: {};
|
|
1286
1309
|
}, DefaultThemeMap, {}>;
|
|
1287
1310
|
} : K extends `@property ${string}` ? import("@stitches/react/types/css").AtRule.Property : import("@stitches/react/types/css-util").CSS<{
|
|
1311
|
+
xs: string;
|
|
1288
1312
|
sm: string;
|
|
1289
1313
|
md: string;
|
|
1290
1314
|
lg: string;
|
|
@@ -1417,12 +1441,14 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1417
1441
|
4: string;
|
|
1418
1442
|
6: string;
|
|
1419
1443
|
8: string;
|
|
1444
|
+
10: string;
|
|
1420
1445
|
12: string;
|
|
1421
1446
|
16: string;
|
|
1422
1447
|
18: string;
|
|
1423
1448
|
20: string;
|
|
1424
1449
|
24: string;
|
|
1425
1450
|
28: string;
|
|
1451
|
+
30: string;
|
|
1426
1452
|
32: string;
|
|
1427
1453
|
36: string;
|
|
1428
1454
|
40: string;
|
|
@@ -1439,6 +1465,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1439
1465
|
}, DefaultThemeMap, {}>; })[]) => () => string, config: {
|
|
1440
1466
|
prefix: "";
|
|
1441
1467
|
media: {
|
|
1468
|
+
xs: string;
|
|
1442
1469
|
sm: string;
|
|
1443
1470
|
md: string;
|
|
1444
1471
|
lg: string;
|
|
@@ -1572,12 +1599,14 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1572
1599
|
4: string;
|
|
1573
1600
|
6: string;
|
|
1574
1601
|
8: string;
|
|
1602
|
+
10: string;
|
|
1575
1603
|
12: string;
|
|
1576
1604
|
16: string;
|
|
1577
1605
|
18: string;
|
|
1578
1606
|
20: string;
|
|
1579
1607
|
24: string;
|
|
1580
1608
|
28: string;
|
|
1609
|
+
30: string;
|
|
1581
1610
|
32: string;
|
|
1582
1611
|
36: string;
|
|
1583
1612
|
40: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/theme.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAMpE,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/theme.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAMpE,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiKjB,CAAC;AAaF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;CAuBtB,CAAC;AAMF,eAAO,MAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAAE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4KAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjE,CAAC;AAEL,eAAO,MAAM,UAAU;;;gEAAoC,CAAC;AAE5D,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKpB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rango-dev/ui",
|
|
3
|
-
"version": "0.26.1-next.
|
|
3
|
+
"version": "0.26.1-next.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@radix-ui/react-radio-group": "^1.1.1",
|
|
66
66
|
"@radix-ui/react-switch": "^1.0.1",
|
|
67
67
|
"@radix-ui/react-tooltip": "^1.0.2",
|
|
68
|
-
"@rango-dev/wallets-shared": "^0.25.1-next.
|
|
68
|
+
"@rango-dev/wallets-shared": "^0.25.1-next.1",
|
|
69
69
|
"@stitches/react": "^1.2.8",
|
|
70
70
|
"rango-sdk": "^0.1.44",
|
|
71
71
|
"rango-types": "^0.1.57",
|
|
@@ -16,9 +16,12 @@ function ButtonComponent(props: PropsWithChildren<PropTypes>, ref?: Ref) {
|
|
|
16
16
|
prefix,
|
|
17
17
|
suffix,
|
|
18
18
|
onClick,
|
|
19
|
+
disableRipple,
|
|
19
20
|
...otherProps
|
|
20
21
|
} = props;
|
|
21
22
|
|
|
23
|
+
const shouldShowRipple = !disabled && !loading && !disableRipple;
|
|
24
|
+
|
|
22
25
|
return (
|
|
23
26
|
<ButtonBase
|
|
24
27
|
disabled={!loading && disabled}
|
|
@@ -38,7 +41,7 @@ function ButtonComponent(props: PropsWithChildren<PropTypes>, ref?: Ref) {
|
|
|
38
41
|
{suffix}
|
|
39
42
|
</>
|
|
40
43
|
)}
|
|
41
|
-
{
|
|
44
|
+
{shouldShowRipple && <Ripple />}
|
|
42
45
|
</ButtonBase>
|
|
43
46
|
);
|
|
44
47
|
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { styled } from '../../theme';
|
|
2
|
+
|
|
3
|
+
export const DividerContainer = styled('div', {
|
|
4
|
+
flexShrink: 0,
|
|
5
|
+
variants: {
|
|
6
|
+
size: {
|
|
7
|
+
4: {},
|
|
8
|
+
8: {},
|
|
9
|
+
10: {},
|
|
10
|
+
12: {},
|
|
11
|
+
16: {},
|
|
12
|
+
18: {},
|
|
13
|
+
20: {},
|
|
14
|
+
24: {},
|
|
15
|
+
30: {},
|
|
16
|
+
32: {},
|
|
17
|
+
},
|
|
18
|
+
direction: {
|
|
19
|
+
vertical: {},
|
|
20
|
+
horizontal: {},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
compoundVariants: [
|
|
24
|
+
{
|
|
25
|
+
size: 4,
|
|
26
|
+
direction: 'horizontal',
|
|
27
|
+
css: {
|
|
28
|
+
width: '$4',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
size: 4,
|
|
33
|
+
direction: 'vertical',
|
|
34
|
+
css: {
|
|
35
|
+
height: '$4',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
size: 8,
|
|
40
|
+
direction: 'horizontal',
|
|
41
|
+
css: {
|
|
42
|
+
width: '$8',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
size: 8,
|
|
47
|
+
direction: 'vertical',
|
|
48
|
+
css: {
|
|
49
|
+
height: '$8',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
size: 10,
|
|
54
|
+
direction: 'horizontal',
|
|
55
|
+
css: {
|
|
56
|
+
width: '$10',
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
size: 10,
|
|
61
|
+
direction: 'vertical',
|
|
62
|
+
css: {
|
|
63
|
+
height: '$10',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
size: 12,
|
|
68
|
+
direction: 'horizontal',
|
|
69
|
+
css: {
|
|
70
|
+
width: '$12',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
size: 12,
|
|
75
|
+
direction: 'vertical',
|
|
76
|
+
css: {
|
|
77
|
+
height: '$12',
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
size: 16,
|
|
82
|
+
direction: 'horizontal',
|
|
83
|
+
css: {
|
|
84
|
+
width: '$16',
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
size: 16,
|
|
89
|
+
direction: 'vertical',
|
|
90
|
+
css: {
|
|
91
|
+
height: '$16',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
size: 18,
|
|
96
|
+
direction: 'horizontal',
|
|
97
|
+
css: {
|
|
98
|
+
width: '$18',
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
size: 18,
|
|
103
|
+
direction: 'vertical',
|
|
104
|
+
css: {
|
|
105
|
+
height: '$18',
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
size: 20,
|
|
110
|
+
direction: 'horizontal',
|
|
111
|
+
css: {
|
|
112
|
+
width: '$20',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
size: 20,
|
|
117
|
+
direction: 'vertical',
|
|
118
|
+
css: {
|
|
119
|
+
height: '$20',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
size: 24,
|
|
124
|
+
direction: 'horizontal',
|
|
125
|
+
css: {
|
|
126
|
+
width: '$24',
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
size: 24,
|
|
131
|
+
direction: 'vertical',
|
|
132
|
+
css: {
|
|
133
|
+
height: '$24',
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
size: 30,
|
|
138
|
+
direction: 'horizontal',
|
|
139
|
+
css: {
|
|
140
|
+
width: '$30',
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
size: 30,
|
|
145
|
+
direction: 'vertical',
|
|
146
|
+
css: {
|
|
147
|
+
height: '$30',
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
size: 32,
|
|
152
|
+
direction: 'horizontal',
|
|
153
|
+
css: {
|
|
154
|
+
width: '$32',
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
size: 32,
|
|
159
|
+
direction: 'vertical',
|
|
160
|
+
css: {
|
|
161
|
+
height: '$32',
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
});
|
|
@@ -1,146 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import type { PropTypes } from './Divider.types';
|
|
2
|
+
|
|
2
3
|
import React from 'react';
|
|
3
4
|
|
|
4
|
-
import {
|
|
5
|
+
import { DividerContainer } from './Divider.styles';
|
|
5
6
|
|
|
6
|
-
const
|
|
7
|
-
flexShrink: 0,
|
|
8
|
-
variants: {
|
|
9
|
-
size: {
|
|
10
|
-
4: {},
|
|
11
|
-
8: {},
|
|
12
|
-
12: {},
|
|
13
|
-
16: {},
|
|
14
|
-
18: {},
|
|
15
|
-
20: {},
|
|
16
|
-
24: {},
|
|
17
|
-
32: {},
|
|
18
|
-
},
|
|
19
|
-
direction: {
|
|
20
|
-
vertical: {},
|
|
21
|
-
horizontal: {},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
compoundVariants: [
|
|
25
|
-
{
|
|
26
|
-
size: 4,
|
|
27
|
-
direction: 'horizontal',
|
|
28
|
-
css: {
|
|
29
|
-
width: '$4',
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
size: 4,
|
|
34
|
-
direction: 'vertical',
|
|
35
|
-
css: {
|
|
36
|
-
height: '$4',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
size: 8,
|
|
41
|
-
direction: 'horizontal',
|
|
42
|
-
css: {
|
|
43
|
-
width: '$8',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
size: 8,
|
|
48
|
-
direction: 'vertical',
|
|
49
|
-
css: {
|
|
50
|
-
height: '$8',
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
size: 12,
|
|
55
|
-
direction: 'horizontal',
|
|
56
|
-
css: {
|
|
57
|
-
width: '$12',
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
size: 12,
|
|
62
|
-
direction: 'vertical',
|
|
63
|
-
css: {
|
|
64
|
-
height: '$12',
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
size: 16,
|
|
69
|
-
direction: 'horizontal',
|
|
70
|
-
css: {
|
|
71
|
-
width: '$16',
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
size: 16,
|
|
76
|
-
direction: 'vertical',
|
|
77
|
-
css: {
|
|
78
|
-
height: '$16',
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
size: 18,
|
|
83
|
-
direction: 'horizontal',
|
|
84
|
-
css: {
|
|
85
|
-
width: '$18',
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
size: 18,
|
|
90
|
-
direction: 'vertical',
|
|
91
|
-
css: {
|
|
92
|
-
height: '$18',
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
size: 20,
|
|
97
|
-
direction: 'horizontal',
|
|
98
|
-
css: {
|
|
99
|
-
width: '$20',
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
size: 20,
|
|
104
|
-
direction: 'vertical',
|
|
105
|
-
css: {
|
|
106
|
-
height: '$20',
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
size: 24,
|
|
111
|
-
direction: 'horizontal',
|
|
112
|
-
css: {
|
|
113
|
-
width: '$24',
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
size: 24,
|
|
118
|
-
direction: 'vertical',
|
|
119
|
-
css: {
|
|
120
|
-
height: '$24',
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
size: 32,
|
|
125
|
-
direction: 'horizontal',
|
|
126
|
-
css: {
|
|
127
|
-
width: '$32',
|
|
128
|
-
},
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
size: 32,
|
|
132
|
-
direction: 'vertical',
|
|
133
|
-
css: {
|
|
134
|
-
height: '$32',
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
],
|
|
138
|
-
});
|
|
139
|
-
export interface PropTypes {
|
|
140
|
-
size?: 4 | 8 | 12 | 16 | 18 | 20 | 24 | 32;
|
|
141
|
-
direction?: 'vertical' | 'horizontal';
|
|
142
|
-
}
|
|
7
|
+
const Default_Size = 12;
|
|
143
8
|
|
|
144
|
-
export function Divider({
|
|
9
|
+
export function Divider({
|
|
10
|
+
size = Default_Size,
|
|
11
|
+
direction = 'vertical',
|
|
12
|
+
}: PropTypes) {
|
|
145
13
|
return <DividerContainer size={size} direction={direction} />;
|
|
146
14
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DividerContainer } from './Divider.styles';
|
|
2
|
+
import type * as Stitches from '@stitches/react';
|
|
3
|
+
|
|
4
|
+
type BaseProps = Stitches.VariantProps<typeof DividerContainer>;
|
|
5
|
+
type BaseSizes = Exclude<BaseProps['size'], object>;
|
|
6
|
+
|
|
7
|
+
export interface PropTypes {
|
|
8
|
+
size?: BaseSizes;
|
|
9
|
+
direction?: 'vertical' | 'horizontal';
|
|
10
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css, styled } from '../../theme';
|
|
1
|
+
import { css, keyframes, styled } from '../../theme';
|
|
2
2
|
|
|
3
3
|
export const Container = styled('div', {
|
|
4
4
|
borderRadius: '$xs',
|
|
@@ -23,7 +23,34 @@ export const iconStyles = css({
|
|
|
23
23
|
alignItems: 'center',
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
+
const blinker = keyframes({
|
|
27
|
+
'50%': {
|
|
28
|
+
opacity: 0.2,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
26
32
|
export const itemStyles = css({
|
|
27
33
|
display: 'flex',
|
|
28
34
|
alignItems: 'center',
|
|
35
|
+
'&.feeSection': {
|
|
36
|
+
cursor: 'pointer',
|
|
37
|
+
'&:hover': {
|
|
38
|
+
svg: {
|
|
39
|
+
color: '$secondary',
|
|
40
|
+
},
|
|
41
|
+
'._typography': {
|
|
42
|
+
color: '$secondary',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
'&.warning': {
|
|
47
|
+
animation: `${blinker} 2s linear infinite`,
|
|
48
|
+
|
|
49
|
+
svg: {
|
|
50
|
+
color: '$warning500',
|
|
51
|
+
},
|
|
52
|
+
'._typography': {
|
|
53
|
+
color: '$warning500',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
29
56
|
});
|
|
@@ -3,6 +3,7 @@ import type { PropTypes } from './QuoteCost.types';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
5
|
import { GasIcon, NumberIcon, TimeIcon } from '../../icons';
|
|
6
|
+
import { Tooltip } from '../Tooltip';
|
|
6
7
|
import { Typography } from '../Typography';
|
|
7
8
|
|
|
8
9
|
import {
|
|
@@ -13,17 +14,36 @@ import {
|
|
|
13
14
|
} from './QuoteCost.styles';
|
|
14
15
|
|
|
15
16
|
export function QuoteCost(props: PropTypes) {
|
|
16
|
-
const {
|
|
17
|
+
const {
|
|
18
|
+
fee,
|
|
19
|
+
time,
|
|
20
|
+
steps,
|
|
21
|
+
onClickFee,
|
|
22
|
+
tooltipGas,
|
|
23
|
+
feeWarning,
|
|
24
|
+
tooltipContainer,
|
|
25
|
+
} = props;
|
|
17
26
|
return (
|
|
18
27
|
<Container>
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
28
|
+
<Tooltip
|
|
29
|
+
container={tooltipContainer}
|
|
30
|
+
content={tooltipGas}
|
|
31
|
+
open={!onClickFee && !tooltipGas ? false : undefined}
|
|
32
|
+
side="bottom">
|
|
33
|
+
<div
|
|
34
|
+
className={`${itemStyles()} ${onClickFee ? 'feeSection' : ''} ${
|
|
35
|
+
feeWarning ? 'warning' : ''
|
|
36
|
+
}`}
|
|
37
|
+
onClick={onClickFee}>
|
|
38
|
+
<div className={iconStyles()}>
|
|
39
|
+
<GasIcon size={12} color={'gray'} />
|
|
40
|
+
</div>
|
|
41
|
+
<Typography ml={2} align="center" variant="body" size="small">
|
|
42
|
+
${fee}
|
|
43
|
+
</Typography>
|
|
22
44
|
</div>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</Typography>
|
|
26
|
-
</div>
|
|
45
|
+
</Tooltip>
|
|
46
|
+
|
|
27
47
|
<Separator />
|
|
28
48
|
<div className={itemStyles()}>
|
|
29
49
|
<div className={iconStyles()}>
|