@rango-dev/ui 0.28.2-next.5 → 0.28.2-next.6
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 +4 -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 +1 -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 +2 -0
- package/dist/widget/ui/src/components/BottomLogo/BottomLogo.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Button/Button.styles.d.ts +3 -0
- package/dist/widget/ui/src/components/Button/Button.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/ChainToken/ChainToken.styles.d.ts +2 -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 +4 -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 +1 -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 +1 -0
- package/dist/widget/ui/src/components/Collapsible/Collapsible.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Divider/Divider.styles.d.ts +1 -0
- package/dist/widget/ui/src/components/Divider/Divider.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Drawer/Drawer.styles.d.ts +5 -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 +2 -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 +1 -0
- package/dist/widget/ui/src/components/Icon/CloseIcon.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Icon/common.d.ts +2 -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 +1 -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 +1 -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 +1 -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 +1 -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 +3 -0
- package/dist/widget/ui/src/components/MessageBox/MessageBox.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Modal/Modal.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Modal/Modal.styles.d.ts +6 -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 +1 -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 +2 -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 +2 -0
- package/dist/widget/ui/src/components/PriceImpact/PriceImpact.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/QuoteCost/QuoteCost.styles.d.ts +4 -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 +2 -1
- 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 +2 -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 +4 -0
- package/dist/widget/ui/src/components/RadioGroup/RadioGroup.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/RefreshProgressButton/RefreshProgressButton.styles.d.ts +2 -0
- package/dist/widget/ui/src/components/RefreshProgressButton/RefreshProgressButton.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/RoutesOverview/RoutesOverview.d.ts +1 -0
- package/dist/widget/ui/src/components/RoutesOverview/RoutesOverview.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Select/Select.d.ts +4 -0
- package/dist/widget/ui/src/components/Select/Select.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Select/Select.types.d.ts +12 -0
- package/dist/widget/ui/src/components/Select/Select.types.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Select/index.d.ts +2 -0
- package/dist/widget/ui/src/components/Select/index.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Select/select.styles.d.ts +492 -0
- package/dist/widget/ui/src/components/Select/select.styles.d.ts.map +1 -0
- package/dist/widget/ui/src/components/SelectableCategoryList/SelectableCategoryList.styles.d.ts +3 -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 +1 -0
- package/dist/widget/ui/src/components/Skeleton/Skeleton.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/StepDetails/StepDetails.styles.d.ts +6 -0
- package/dist/widget/ui/src/components/StepDetails/StepDetails.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SvgIcon/SvgIcon.style.d.ts +1 -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 +1 -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 +6 -0
- package/dist/widget/ui/src/components/SwapListItem/SwapListItem.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/SwapListItem/SwapToken.styles.d.ts +9 -0
- package/dist/widget/ui/src/components/SwapListItem/SwapToken.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Switch/Switch.styles.d.ts +2 -0
- package/dist/widget/ui/src/components/Switch/Switch.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TextField/TextField.styles.d.ts +3 -0
- package/dist/widget/ui/src/components/TextField/TextField.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Toast/Toast.styles.d.ts +6 -0
- package/dist/widget/ui/src/components/Toast/Toast.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/TokenAmount/TokenAmount.styles.d.ts +3 -0
- package/dist/widget/ui/src/components/TokenAmount/TokenAmount.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.styles.d.ts +3 -0
- package/dist/widget/ui/src/components/Tooltip/Tooltip.styles.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Typography/NotSelectableTypography.d.ts +1 -0
- package/dist/widget/ui/src/components/Typography/NotSelectableTypography.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Typography/Typography.styles.d.ts +1 -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 +5 -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 +1 -0
- package/dist/widget/ui/src/components/common/FilledCircle.d.ts.map +1 -1
- package/dist/widget/ui/src/components/common/Image.d.ts +1 -0
- package/dist/widget/ui/src/components/common/Image.d.ts.map +1 -1
- package/dist/widget/ui/src/components/common/styles.d.ts +1 -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 +10 -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 +11 -0
- 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 +5 -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 +1 -0
- package/dist/widget/ui/src/containers/TokenSelector/TokenSelector.d.ts.map +1 -1
- package/dist/widget/ui/src/theme.d.ts +10 -0
- package/dist/widget/ui/src/theme.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/components/Alert/Alert.styles.ts +0 -1
- package/src/components/Modal/Modal.tsx +2 -0
- package/src/components/QuoteCost/QuoteCost.styles.ts +0 -1
- package/src/components/QuoteCost/QuoteCost.types.ts +1 -1
- package/src/components/Select/Select.tsx +85 -0
- package/src/components/Select/Select.types.ts +10 -0
- package/src/components/Select/index.ts +1 -0
- package/src/components/Select/select.styles.ts +100 -0
- package/src/components/index.ts +1 -0
- package/src/theme.ts +1 -0
|
@@ -147,6 +147,7 @@ export declare const textStyles: import("@stitches/react/types/styled-component"
|
|
|
147
147
|
18: string;
|
|
148
148
|
20: string;
|
|
149
149
|
24: string;
|
|
150
|
+
26: string;
|
|
150
151
|
28: string;
|
|
151
152
|
30: string;
|
|
152
153
|
32: string;
|
|
@@ -310,6 +311,7 @@ export declare const Container: import("@stitches/react/types/styled-component")
|
|
|
310
311
|
18: string;
|
|
311
312
|
20: string;
|
|
312
313
|
24: string;
|
|
314
|
+
26: string;
|
|
313
315
|
28: string;
|
|
314
316
|
30: string;
|
|
315
317
|
32: string;
|
|
@@ -481,6 +483,7 @@ export declare const InputAmount: import("@stitches/react/types/styled-component
|
|
|
481
483
|
18: string;
|
|
482
484
|
20: string;
|
|
483
485
|
24: string;
|
|
486
|
+
26: string;
|
|
484
487
|
28: string;
|
|
485
488
|
30: string;
|
|
486
489
|
32: string;
|
|
@@ -922,6 +925,7 @@ export declare const MaxButton: import("@stitches/react/types/styled-component")
|
|
|
922
925
|
18: string;
|
|
923
926
|
20: string;
|
|
924
927
|
24: string;
|
|
928
|
+
26: string;
|
|
925
929
|
28: string;
|
|
926
930
|
30: string;
|
|
927
931
|
32: string;
|
|
@@ -1085,6 +1089,7 @@ export declare const ValueTypography: import("@stitches/react/types/styled-compo
|
|
|
1085
1089
|
18: string;
|
|
1086
1090
|
20: string;
|
|
1087
1091
|
24: string;
|
|
1092
|
+
26: string;
|
|
1088
1093
|
28: string;
|
|
1089
1094
|
30: string;
|
|
1090
1095
|
32: string;
|
|
@@ -1246,6 +1251,7 @@ export declare const formStyles: import("@stitches/react/types/styled-component"
|
|
|
1246
1251
|
18: string;
|
|
1247
1252
|
20: string;
|
|
1248
1253
|
24: string;
|
|
1254
|
+
26: string;
|
|
1249
1255
|
28: string;
|
|
1250
1256
|
30: string;
|
|
1251
1257
|
32: string;
|
|
@@ -1407,6 +1413,7 @@ export declare const labelStyles: import("@stitches/react/types/styled-component
|
|
|
1407
1413
|
18: string;
|
|
1408
1414
|
20: string;
|
|
1409
1415
|
24: string;
|
|
1416
|
+
26: string;
|
|
1410
1417
|
28: string;
|
|
1411
1418
|
30: string;
|
|
1412
1419
|
32: string;
|
|
@@ -1568,6 +1575,7 @@ export declare const balanceStyles: import("@stitches/react/types/styled-compone
|
|
|
1568
1575
|
18: string;
|
|
1569
1576
|
20: string;
|
|
1570
1577
|
24: string;
|
|
1578
|
+
26: string;
|
|
1571
1579
|
28: string;
|
|
1572
1580
|
30: string;
|
|
1573
1581
|
32: string;
|
|
@@ -1729,6 +1737,7 @@ export declare const amountStyles: import("@stitches/react/types/styled-componen
|
|
|
1729
1737
|
18: string;
|
|
1730
1738
|
20: string;
|
|
1731
1739
|
24: string;
|
|
1740
|
+
26: string;
|
|
1732
1741
|
28: string;
|
|
1733
1742
|
30: string;
|
|
1734
1743
|
32: string;
|
|
@@ -1890,6 +1899,7 @@ export declare const labelContainerStyles: import("@stitches/react/types/styled-
|
|
|
1890
1899
|
18: string;
|
|
1891
1900
|
20: string;
|
|
1892
1901
|
24: string;
|
|
1902
|
+
26: string;
|
|
1893
1903
|
28: string;
|
|
1894
1904
|
30: string;
|
|
1895
1905
|
32: string;
|
|
@@ -2051,6 +2061,7 @@ export declare const UsdPrice: import("@stitches/react/types/styled-component").
|
|
|
2051
2061
|
18: string;
|
|
2052
2062
|
20: string;
|
|
2053
2063
|
24: string;
|
|
2064
|
+
26: string;
|
|
2054
2065
|
28: string;
|
|
2055
2066
|
30: string;
|
|
2056
2067
|
32: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapInput.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/SwapInput.styles.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAqB,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGjE,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"SwapInput.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/SwapInput.styles.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAqB,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGjE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAE/B,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAMnB,CAAC"}
|
|
@@ -426,6 +426,7 @@ export declare const Container: import("@stitches/react/types/styled-component")
|
|
|
426
426
|
18: string;
|
|
427
427
|
20: string;
|
|
428
428
|
24: string;
|
|
429
|
+
26: string;
|
|
429
430
|
28: string;
|
|
430
431
|
30: string;
|
|
431
432
|
32: string;
|
|
@@ -587,6 +588,7 @@ export declare const chainNameStyles: import("@stitches/react/types/styled-compo
|
|
|
587
588
|
18: string;
|
|
588
589
|
20: string;
|
|
589
590
|
24: string;
|
|
591
|
+
26: string;
|
|
590
592
|
28: string;
|
|
591
593
|
30: string;
|
|
592
594
|
32: string;
|
|
@@ -748,6 +750,7 @@ export declare const TokenSectionContainer: import("@stitches/react/types/styled
|
|
|
748
750
|
18: string;
|
|
749
751
|
20: string;
|
|
750
752
|
24: string;
|
|
753
|
+
26: string;
|
|
751
754
|
28: string;
|
|
752
755
|
30: string;
|
|
753
756
|
32: string;
|
|
@@ -909,6 +912,7 @@ export declare const tokenChainStyles: import("@stitches/react/types/styled-comp
|
|
|
909
912
|
18: string;
|
|
910
913
|
20: string;
|
|
911
914
|
24: string;
|
|
915
|
+
26: string;
|
|
912
916
|
28: string;
|
|
913
917
|
30: string;
|
|
914
918
|
32: string;
|
|
@@ -1070,6 +1074,7 @@ export declare const skeletonStyles: import("@stitches/react/types/styled-compon
|
|
|
1070
1074
|
18: string;
|
|
1071
1075
|
20: string;
|
|
1072
1076
|
24: string;
|
|
1077
|
+
26: string;
|
|
1073
1078
|
28: string;
|
|
1074
1079
|
30: string;
|
|
1075
1080
|
32: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenSection.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/TokenSection.styles.ts"],"names":[],"mappings":";;;AAGA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"TokenSection.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/TokenSection.styles.ts"],"names":[],"mappings":";;;AAGA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DA2BpB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAAQ,CAAC;AAErC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAehC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAQ3B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAGzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenSelector.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/TokenSelector/TokenSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"TokenSelector.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/TokenSelector/TokenSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAM1B,CAAC;AACH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,eAAe,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;IAChC,QAAQ,EAAE,eAAe,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IAC3C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAUD,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,qBAiC7C"}
|
|
@@ -136,6 +136,7 @@ export declare const theme: {
|
|
|
136
136
|
18: string;
|
|
137
137
|
20: string;
|
|
138
138
|
24: string;
|
|
139
|
+
26: string;
|
|
139
140
|
28: string;
|
|
140
141
|
30: string;
|
|
141
142
|
32: string;
|
|
@@ -314,6 +315,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
314
315
|
18: string;
|
|
315
316
|
20: string;
|
|
316
317
|
24: string;
|
|
318
|
+
26: string;
|
|
317
319
|
28: string;
|
|
318
320
|
30: string;
|
|
319
321
|
32: string;
|
|
@@ -485,6 +487,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
485
487
|
18: string;
|
|
486
488
|
20: string;
|
|
487
489
|
24: string;
|
|
490
|
+
26: string;
|
|
488
491
|
28: string;
|
|
489
492
|
30: string;
|
|
490
493
|
32: string;
|
|
@@ -642,6 +645,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
642
645
|
18: string;
|
|
643
646
|
20: string;
|
|
644
647
|
24: string;
|
|
648
|
+
26: string;
|
|
645
649
|
28: string;
|
|
646
650
|
30: string;
|
|
647
651
|
32: string;
|
|
@@ -808,6 +812,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
808
812
|
18?: string | number | boolean | undefined;
|
|
809
813
|
20?: string | number | boolean | undefined;
|
|
810
814
|
24?: string | number | boolean | undefined;
|
|
815
|
+
26?: string | number | boolean | undefined;
|
|
811
816
|
28?: string | number | boolean | undefined;
|
|
812
817
|
30?: string | number | boolean | undefined;
|
|
813
818
|
32?: string | number | boolean | undefined;
|
|
@@ -963,6 +968,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
963
968
|
18?: string | number | boolean | undefined;
|
|
964
969
|
20?: string | number | boolean | undefined;
|
|
965
970
|
24?: string | number | boolean | undefined;
|
|
971
|
+
26?: string | number | boolean | undefined;
|
|
966
972
|
28?: string | number | boolean | undefined;
|
|
967
973
|
30?: string | number | boolean | undefined;
|
|
968
974
|
32?: string | number | boolean | undefined;
|
|
@@ -1127,6 +1133,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1127
1133
|
18: string;
|
|
1128
1134
|
20: string;
|
|
1129
1135
|
24: string;
|
|
1136
|
+
26: string;
|
|
1130
1137
|
28: string;
|
|
1131
1138
|
30: string;
|
|
1132
1139
|
32: string;
|
|
@@ -1292,6 +1299,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1292
1299
|
18: string;
|
|
1293
1300
|
20: string;
|
|
1294
1301
|
24: string;
|
|
1302
|
+
26: string;
|
|
1295
1303
|
28: string;
|
|
1296
1304
|
30: string;
|
|
1297
1305
|
32: string;
|
|
@@ -1448,6 +1456,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1448
1456
|
18: string;
|
|
1449
1457
|
20: string;
|
|
1450
1458
|
24: string;
|
|
1459
|
+
26: string;
|
|
1451
1460
|
28: string;
|
|
1452
1461
|
30: string;
|
|
1453
1462
|
32: string;
|
|
@@ -1606,6 +1615,7 @@ export declare const styled: <Type extends import("react").ComponentType<any> |
|
|
|
1606
1615
|
18: string;
|
|
1607
1616
|
20: string;
|
|
1608
1617
|
24: string;
|
|
1618
|
+
26: string;
|
|
1609
1619
|
28: string;
|
|
1610
1620
|
30: string;
|
|
1611
1621
|
32: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/theme.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAiB,GAAG,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACzE,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":";AAEA,OAAO,KAAK,EAAiB,GAAG,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAMpE,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkKjB,CAAC;AAaF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;CAuBtB,CAAC;AAMF,eAAO,MAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjE,CAAC;AAEL,MAAM,MAAM,GAAG,GAAG,WAAW,CAAC,OAAO,MAAM,CAAC,CAAC;AAE7C,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.28.2-next.
|
|
3
|
+
"version": "0.28.2-next.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"@radix-ui/react-collapsible": "^1.0.3",
|
|
61
61
|
"@radix-ui/react-popover": "^1.0.6",
|
|
62
62
|
"@radix-ui/react-radio-group": "^1.1.1",
|
|
63
|
+
"@radix-ui/react-select": "^2.0.0",
|
|
63
64
|
"@radix-ui/react-switch": "^1.0.1",
|
|
64
65
|
"@radix-ui/react-tooltip": "^1.0.2",
|
|
65
66
|
"@rango-dev/wallets-shared": "^0.27.1-next.1",
|
|
@@ -46,6 +46,8 @@ export function Modal(props: PropsWithChildren<PropTypes>) {
|
|
|
46
46
|
const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
|
47
47
|
|
|
48
48
|
const handleBackDropClick = (event: React.MouseEvent<HTMLDivElement>) => {
|
|
49
|
+
event.stopPropagation();
|
|
50
|
+
|
|
49
51
|
if (event.target === event.currentTarget && dismissible) {
|
|
50
52
|
onClose();
|
|
51
53
|
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { PropTypes } from './Select.types';
|
|
2
|
+
|
|
3
|
+
import * as Select from '@radix-ui/react-select';
|
|
4
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
5
|
+
|
|
6
|
+
import { ChevronDownIcon, ChevronUpIcon } from '../../icons';
|
|
7
|
+
import { Typography } from '../Typography';
|
|
8
|
+
|
|
9
|
+
import { SelectContent, SelectItem, SelectTrigger } from './select.styles';
|
|
10
|
+
|
|
11
|
+
export function SelectComponent(props: PropTypes) {
|
|
12
|
+
const [open, setOpen] = useState(false);
|
|
13
|
+
const selectRef = useRef<HTMLDivElement>(null);
|
|
14
|
+
const { options, value, container, handleItemClick } = props;
|
|
15
|
+
const handleToggle = () => {
|
|
16
|
+
setOpen((prev) => !prev);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const handleClickOutside = (e: MouseEvent) => {
|
|
20
|
+
if (selectRef.current && !selectRef.current.contains(e.target as Node)) {
|
|
21
|
+
setOpen(false);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
document.addEventListener('click', handleClickOutside);
|
|
27
|
+
return () => {
|
|
28
|
+
document.removeEventListener('click', handleClickOutside);
|
|
29
|
+
};
|
|
30
|
+
}, []);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<div ref={selectRef}>
|
|
34
|
+
<Select.Root value={value.value} open={open}>
|
|
35
|
+
<SelectTrigger
|
|
36
|
+
onKeyDown={(event) => event.key === 'Enter' && handleToggle()}
|
|
37
|
+
onClick={handleToggle}
|
|
38
|
+
open={open}
|
|
39
|
+
aria-label={value.label}>
|
|
40
|
+
<Select.Value>
|
|
41
|
+
<Typography variant="body" size="small">
|
|
42
|
+
{value.label}
|
|
43
|
+
</Typography>
|
|
44
|
+
</Select.Value>
|
|
45
|
+
|
|
46
|
+
<Select.Icon className="SelectIcon">
|
|
47
|
+
<ChevronDownIcon size={12} />
|
|
48
|
+
</Select.Icon>
|
|
49
|
+
</SelectTrigger>
|
|
50
|
+
<Select.Portal container={container}>
|
|
51
|
+
<SelectContent>
|
|
52
|
+
<Select.ScrollUpButton className="SelectScrollButton">
|
|
53
|
+
<ChevronUpIcon />
|
|
54
|
+
</Select.ScrollUpButton>
|
|
55
|
+
<Select.Viewport className="SelectViewport">
|
|
56
|
+
<Select.Group>
|
|
57
|
+
{options.map(
|
|
58
|
+
(option) =>
|
|
59
|
+
option.value !== value?.value && (
|
|
60
|
+
<SelectItem
|
|
61
|
+
onClick={() => {
|
|
62
|
+
handleItemClick && handleItemClick(option);
|
|
63
|
+
handleToggle();
|
|
64
|
+
}}
|
|
65
|
+
key={option.value}
|
|
66
|
+
value={option.value}>
|
|
67
|
+
<Select.ItemText>
|
|
68
|
+
<Typography variant="body" size="small">
|
|
69
|
+
{option.label}
|
|
70
|
+
</Typography>
|
|
71
|
+
</Select.ItemText>
|
|
72
|
+
</SelectItem>
|
|
73
|
+
)
|
|
74
|
+
)}
|
|
75
|
+
</Select.Group>
|
|
76
|
+
</Select.Viewport>
|
|
77
|
+
<Select.ScrollDownButton className="SelectScrollButton">
|
|
78
|
+
<ChevronDownIcon />
|
|
79
|
+
</Select.ScrollDownButton>
|
|
80
|
+
</SelectContent>
|
|
81
|
+
</Select.Portal>
|
|
82
|
+
</Select.Root>
|
|
83
|
+
</div>
|
|
84
|
+
);
|
|
85
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SelectComponent as Select } from './Select';
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as Select from '@radix-ui/react-select';
|
|
2
|
+
|
|
3
|
+
import { darkTheme, styled } from '../../theme';
|
|
4
|
+
|
|
5
|
+
export const EXPANDABLE_QUOTE_TRANSITION_DURATION = 300;
|
|
6
|
+
|
|
7
|
+
export const SelectTrigger = styled(Select.Trigger, {
|
|
8
|
+
display: 'flex',
|
|
9
|
+
justifyContent: 'space-between',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
cursor: 'pointer',
|
|
12
|
+
backgroundColor: '$secondary',
|
|
13
|
+
padding: '$5 $10',
|
|
14
|
+
border: 0,
|
|
15
|
+
whiteSpace: 'nowrap',
|
|
16
|
+
|
|
17
|
+
'& svg': {
|
|
18
|
+
transition: `all ${EXPANDABLE_QUOTE_TRANSITION_DURATION}ms ease`,
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
variants: {
|
|
22
|
+
open: {
|
|
23
|
+
true: {
|
|
24
|
+
borderTopLeftRadius: '$sm',
|
|
25
|
+
borderTopRightRadius: '$sm',
|
|
26
|
+
'& ._typography, & svg': {
|
|
27
|
+
color: '$secondary',
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
'& svg': {
|
|
31
|
+
transform: 'rotate(180deg)',
|
|
32
|
+
},
|
|
33
|
+
backgroundColor: '$neutral100',
|
|
34
|
+
[`.${darkTheme} &`]: {
|
|
35
|
+
backgroundColor: '$neutral300',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
false: {
|
|
39
|
+
borderRadius: '$md',
|
|
40
|
+
'& ._typography, & svg': {
|
|
41
|
+
color: '$background',
|
|
42
|
+
[`.${darkTheme} &`]: {
|
|
43
|
+
color: '$foreground',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
'& svg': {
|
|
47
|
+
transform: 'rotate(0)',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
width: '100%',
|
|
53
|
+
'& ._typography': {
|
|
54
|
+
whiteSpace: 'nowrap',
|
|
55
|
+
overflow: 'hidden',
|
|
56
|
+
textOverflow: 'ellipsis',
|
|
57
|
+
width: '52px',
|
|
58
|
+
'@xs': {
|
|
59
|
+
width: 'auto',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export const SelectContent = styled(Select.Content, {
|
|
65
|
+
padding: '$5 $10',
|
|
66
|
+
width: '100%',
|
|
67
|
+
position: 'absolute',
|
|
68
|
+
top: '38px',
|
|
69
|
+
maxHeight: '146px',
|
|
70
|
+
overflowY: 'auto',
|
|
71
|
+
borderBottomLeftRadius: '$sm',
|
|
72
|
+
borderBottomRightRadius: '$sm',
|
|
73
|
+
boxShadow: '-5px 5px 10px 0px rgba(86, 86, 86, 0.10)',
|
|
74
|
+
backgroundColor: '$neutral100',
|
|
75
|
+
[`.${darkTheme} &`]: {
|
|
76
|
+
backgroundColor: '$neutral300',
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
export const SelectItem = styled(Select.Item, {
|
|
81
|
+
padding: '$10 0',
|
|
82
|
+
borderTop: '1px solid',
|
|
83
|
+
borderColor: '$neutral300',
|
|
84
|
+
[`.${darkTheme} &`]: {
|
|
85
|
+
borderColor: '$neutral400',
|
|
86
|
+
},
|
|
87
|
+
listStyleType: 'none',
|
|
88
|
+
cursor: 'pointer',
|
|
89
|
+
'&:hover': {
|
|
90
|
+
'& ._typography': {
|
|
91
|
+
color: '$colors$secondary',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
'&:focus': {
|
|
95
|
+
outline: 'none',
|
|
96
|
+
'& ._typography': {
|
|
97
|
+
color: '$colors$secondary',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
});
|
package/src/components/index.ts
CHANGED