@rango-dev/ui 0.22.1-next.6 → 0.22.1-next.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/index.js +2 -2
  2. package/dist/index.js.map +4 -4
  3. package/dist/widget/ui/src/components/Alert/Alert.styles.d.ts.map +1 -1
  4. package/dist/widget/ui/src/components/Checkbox/Checkbox.styles.d.ts.map +1 -1
  5. package/dist/widget/ui/src/components/ListItem/ListItem.styles.d.ts.map +1 -1
  6. package/dist/widget/ui/src/components/Radio/Radio.styles.d.ts.map +1 -1
  7. package/dist/widget/ui/src/components/RoutesOverview/RoutesOverview.d.ts.map +1 -1
  8. package/dist/widget/ui/src/components/Switch/Switch.styles.d.ts.map +1 -1
  9. package/dist/widget/ui/src/containers/BlockchainSelector/BlockchainSelector.d.ts +3 -3
  10. package/dist/widget/ui/src/containers/BlockchainSelector/BlockchainSelector.d.ts.map +1 -1
  11. package/dist/widget/ui/src/containers/SwapInput/SwapInput.d.ts.map +1 -1
  12. package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts +159 -0
  13. package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts.map +1 -1
  14. package/dist/widget/ui/src/containers/SwapInput/TokenSection.d.ts.map +1 -1
  15. package/dist/widget/ui/src/containers/SwapInput/TokenSection.styles.d.ts.map +1 -1
  16. package/dist/widget/ui/src/containers/TokenSelector/TokenSelector.d.ts +2 -2
  17. package/dist/widget/ui/src/containers/TokenSelector/TokenSelector.d.ts.map +1 -1
  18. package/dist/widget/ui/src/index.d.ts +0 -1
  19. package/dist/widget/ui/src/index.d.ts.map +1 -1
  20. package/dist/widget/ui/src/{helper → utils}/index.d.ts +0 -3
  21. package/dist/widget/ui/src/utils/index.d.ts.map +1 -0
  22. package/package.json +1 -1
  23. package/src/components/Alert/Alert.styles.ts +1 -5
  24. package/src/components/Checkbox/Checkbox.styles.ts +5 -1
  25. package/src/components/ListItem/ListItem.styles.ts +7 -0
  26. package/src/components/ListItem/ListItem.tsx +1 -1
  27. package/src/components/Radio/Radio.styles.tsx +5 -2
  28. package/src/components/RoutesOverview/RoutesOverview.tsx +6 -2
  29. package/src/components/SelectableWalletList/SelectableWalletList.tsx +1 -1
  30. package/src/components/SvgIcon/SvgIcon.style.ts +1 -1
  31. package/src/components/Switch/Switch.styles.tsx +6 -2
  32. package/src/containers/BlockchainSelector/BlockchainSelector.tsx +9 -8
  33. package/src/containers/SwapInput/SwapInput.styles.ts +33 -0
  34. package/src/containers/SwapInput/SwapInput.tsx +15 -18
  35. package/src/containers/SwapInput/TokenSection.styles.ts +7 -0
  36. package/src/containers/SwapInput/TokenSection.tsx +4 -1
  37. package/src/containers/TokenSelector/TokenSelector.tsx +8 -10
  38. package/src/index.ts +0 -1
  39. package/src/theme.ts +4 -4
  40. package/src/utils/index.ts +23 -0
  41. package/dist/widget/ui/src/helper/index.d.ts.map +0 -1
  42. package/src/helper/index.ts +0 -99
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Alert/Alert.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAkGpB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAcf,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DA+CxB,CAAC"}
1
+ {"version":3,"file":"Alert.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Alert/Alert.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DA8FpB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAcf,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DA+CxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Checkbox/Checkbox.styles.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAI1D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAqBvB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAI5B,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAIhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ListItem/ListItem.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAiDvB,CAAC"}
1
+ {"version":3,"file":"ListItem.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ListItem/ListItem.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAwDvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Radio/Radio.styles.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAIrD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAiBrB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAe1B,CAAC"}
1
+ {"version":3,"file":"Radio.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Radio/Radio.styles.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAIrD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAoBrB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAe1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RoutesOverview.d.ts","sourceRoot":"","sources":["../../../../../../src/components/RoutesOverview/RoutesOverview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAkBpB,CAAC;AAEH,UAAU,SAAS;IACjB,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,4BA6B9C"}
1
+ {"version":3,"file":"RoutesOverview.d.ts","sourceRoot":"","sources":["../../../../../../src/components/RoutesOverview/RoutesOverview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAsBpB,CAAC;AAEH,UAAU,SAAS;IACjB,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,4BA6B9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Switch/Switch.styles.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AAItD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAuB3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAgB5B,CAAC"}
1
+ {"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Switch/Switch.styles.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AAItD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DA2B3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAgB5B,CAAC"}
@@ -1,7 +1,7 @@
1
+ import type { LoadingStatus } from '../../types/meta';
2
+ import type { CSSProperties } from '@stitches/react';
3
+ import type { BlockchainMeta } from 'rango-sdk';
1
4
  import React from 'react';
2
- import { BlockchainMeta } from 'rango-sdk';
3
- import { CSSProperties } from '@stitches/react';
4
- import { LoadingStatus } from '../../types/meta';
5
5
  export interface PropTypes {
6
6
  type?: 'Source' | 'Destination';
7
7
  list: BlockchainMeta[];
@@ -1 +1 @@
1
- {"version":3,"file":"BlockchainSelector.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/BlockchainSelector/BlockchainSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAK3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAiBjD,MAAM,WAAW,SAAS;IACxB,IAAI,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;IAChC,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,CAAC,UAAU,EAAE,cAAc,KAAK,IAAI,CAAC;IAC/C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kBAAkB,CAAC,EAAE,aAAa,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;CACzC;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,qBAyDlD"}
1
+ {"version":3,"file":"BlockchainSelector.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/BlockchainSelector/BlockchainSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,KAAK,MAAM,OAAO,CAAC;AAuB1B,MAAM,WAAW,SAAS;IACxB,IAAI,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;IAChC,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,CAAC,UAAU,EAAE,cAAc,KAAK,IAAI,CAAC;IAC/C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kBAAkB,CAAC,EAAE,aAAa,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;CACzC;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,qBAwDlD"}
@@ -1 +1 @@
1
- {"version":3,"file":"SwapInput.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/SwapInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,qBAkG9C"}
1
+ {"version":3,"file":"SwapInput.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/SwapInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,qBA0F9C"}
@@ -762,4 +762,163 @@ export declare const MaxButton: import("@stitches/react/types/styled-component")
762
762
  zIndices: {};
763
763
  transitions: {};
764
764
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
765
+ export declare const ValueTypography: import("@stitches/react/types/styled-component").StyledComponent<"div", {
766
+ hasWarning?: boolean | "true" | "false" | undefined;
767
+ }, {
768
+ sm: string;
769
+ md: string;
770
+ lg: string;
771
+ }, import("@stitches/react/types/css-util").CSS<{
772
+ sm: string;
773
+ md: string;
774
+ lg: string;
775
+ }, {
776
+ colors: {
777
+ primary: string;
778
+ primary500: string;
779
+ primary600: string;
780
+ secondary: string;
781
+ secondary100: string;
782
+ secondary200: string;
783
+ secondary300: string;
784
+ secondary400: string;
785
+ secondary500: string;
786
+ secondary600: string;
787
+ secondary700: string;
788
+ secondary800: string;
789
+ secondary900: string;
790
+ neutral: string;
791
+ neutral100: string;
792
+ neutral200: string;
793
+ neutral300: string;
794
+ neutral400: string;
795
+ neutral500: string;
796
+ neutral600: string;
797
+ neutral700: string;
798
+ neutral800: string;
799
+ neutral900: string;
800
+ error100: string;
801
+ error300: string;
802
+ error500: string;
803
+ error600: string;
804
+ error700: string;
805
+ warning100: string;
806
+ warning300: string;
807
+ warning500: string;
808
+ warning600: string;
809
+ warning700: string;
810
+ info: string;
811
+ info100: string;
812
+ info300: string;
813
+ info500: string;
814
+ info600: string;
815
+ info700: string;
816
+ success100: string;
817
+ success300: string;
818
+ success500: string;
819
+ success600: string;
820
+ success700: string;
821
+ background: string;
822
+ foreground: string;
823
+ };
824
+ space: {
825
+ 0: string;
826
+ 5: string;
827
+ 10: string;
828
+ 15: string;
829
+ 20: string;
830
+ 25: string;
831
+ 30: string;
832
+ 40: string;
833
+ 46: string;
834
+ 50: string;
835
+ 60: string;
836
+ 70: string;
837
+ 80: string;
838
+ 90: string;
839
+ 100: string;
840
+ 2: string;
841
+ 4: string;
842
+ 6: string;
843
+ 8: string;
844
+ 12: string;
845
+ 16: string;
846
+ 24: string;
847
+ 28: string;
848
+ 32: string;
849
+ };
850
+ radii: {
851
+ xs: string;
852
+ sm: string;
853
+ xm: string;
854
+ md: string;
855
+ xl: string;
856
+ lg: string;
857
+ primary: string;
858
+ secondary: string;
859
+ };
860
+ fontSizes: {
861
+ 10: string;
862
+ 12: string;
863
+ 14: string;
864
+ 16: string;
865
+ 18: string;
866
+ 20: string;
867
+ 22: string;
868
+ 24: string;
869
+ 28: string;
870
+ 32: string;
871
+ 36: string;
872
+ 40: string;
873
+ 48: string;
874
+ };
875
+ fonts: {
876
+ primary: string;
877
+ widget: string;
878
+ };
879
+ fontWeights: {
880
+ regular: number;
881
+ medium: number;
882
+ semiBold: number;
883
+ bold: number;
884
+ };
885
+ lineHeights: {
886
+ 12: string;
887
+ 16: string;
888
+ 20: string;
889
+ 24: string;
890
+ 26: string;
891
+ 28: string;
892
+ 30: string;
893
+ 36: string;
894
+ 40: string;
895
+ 44: string;
896
+ 52: string;
897
+ 64: string;
898
+ };
899
+ letterSpacings: {};
900
+ sizes: {
901
+ 4: string;
902
+ 6: string;
903
+ 8: string;
904
+ 12: string;
905
+ 16: string;
906
+ 18: string;
907
+ 20: string;
908
+ 24: string;
909
+ 28: string;
910
+ 32: string;
911
+ 36: string;
912
+ 40: string;
913
+ 45: string;
914
+ 48: string;
915
+ };
916
+ borderWidths: {};
917
+ borderStyles: {};
918
+ shadows: {
919
+ s: string;
920
+ };
921
+ zIndices: {};
922
+ transitions: {};
923
+ }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
765
924
  //# sourceMappingURL=SwapInput.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwapInput.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/SwapInput.styles.ts"],"names":[],"mappings":";;;AAGA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAyCpB,CAAC;AAEH,eAAO,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAUtB,CAAC;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAMpB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAwB1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TokenSection.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/TokenSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBA2CpD"}
1
+ {"version":3,"file":"TokenSection.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/TokenSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBA8CpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"TokenSection.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/TokenSection.styles.ts"],"names":[],"mappings":";;;AAGA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAwBpB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAmBhC,CAAC"}
1
+ {"version":3,"file":"TokenSection.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/SwapInput/TokenSection.styles.ts"],"names":[],"mappings":";;;AAGA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAwBpB,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DA0BhC,CAAC"}
@@ -1,6 +1,6 @@
1
+ import type { TokenWithAmount } from '../../components/TokenList/TokenList';
2
+ import type { LoadingStatus } from '../../types/meta';
1
3
  import React from 'react';
2
- import { LoadingStatus } from '../../types/meta';
3
- import { TokenWithAmount } from '../../components/TokenList/TokenList';
4
4
  export declare const LoaderContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
5
5
  sm: string;
6
6
  md: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TokenSelector.d.ts","sourceRoot":"","sources":["../../../../../../src/containers/TokenSelector/TokenSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAIjD,OAAO,EAEL,eAAe,EAChB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AAE,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"}
@@ -4,5 +4,4 @@ export * from './theme';
4
4
  export * from './types';
5
5
  export * from './hooks';
6
6
  export * from './icons';
7
- export { generateRangeColors } from './helper';
8
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -1,6 +1,3 @@
1
1
  export declare function containsText(text: string, searchText: string): boolean;
2
2
  export declare function getConciseAddress(address: string | null, maxChars?: number, ellipsisLength?: number): string | null;
3
- export declare const generateRangeColors: (name: string, mode: 'light' | 'dark', color?: string) => {
4
- [x: string]: string | undefined;
5
- };
6
3
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utils/index.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAEtE;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,QAAQ,SAAI,EACZ,cAAc,SAAI,GACjB,MAAM,GAAG,IAAI,CAYf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/ui",
3
- "version": "0.22.1-next.6",
3
+ "version": "0.22.1-next.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -20,11 +20,7 @@ export const Container = styled('div', {
20
20
  paddingLeft: '$24',
21
21
  },
22
22
  '.description': {
23
- $$color: '$colors$neutral700',
24
- [`.${darkTheme} &`]: {
25
- $$color: '$colors$neutral600',
26
- },
27
- color: '$$color',
23
+ color: '$neutral700',
28
24
  fontSize: '$10',
29
25
  lineHeight: '$12',
30
26
  },
@@ -13,7 +13,11 @@ export const CheckboxRoot = styled(RadixCheckbox.Root, {
13
13
  width: '1rem',
14
14
  height: '1rem',
15
15
  padding: 0,
16
- border: '1px solid $neutral600',
16
+ $$borderColor: '$colors$neutral600',
17
+ [`.${darkTheme} &`]: {
18
+ $$borderColor: '$colors$neutral700',
19
+ },
20
+ border: '1px solid $$borderColor',
17
21
  backgroundColor: 'transparent',
18
22
  cursor: 'pointer',
19
23
  '&[data-state="checked"]': {
@@ -22,6 +22,13 @@ export const BaseListItem = styled('li', {
22
22
  flexShrink: 1,
23
23
  flexBasis: 'auto',
24
24
  textAlign: 'left',
25
+ '._description': {
26
+ $$color: '$colors$neutral600',
27
+ [`.${darkTheme} &`]: {
28
+ $$color: '$colors$neutral700',
29
+ },
30
+ color: '$$color',
31
+ },
25
32
 
26
33
  '.item-text-title': {
27
34
  fontWeight: 'bold',
@@ -16,7 +16,7 @@ function ListItem(props: ListItemProps) {
16
16
  <div className="item-text-container">
17
17
  {title && <div className="item-text-title">{title}</div>}
18
18
  {description && (
19
- <Typography variant="body" size="small" color="neutral600">
19
+ <Typography variant="body" className="_description" size="small">
20
20
  {description}
21
21
  </Typography>
22
22
  )}
@@ -9,8 +9,11 @@ export const StyledItem = styled(Radio.Item, {
9
9
  borderRadius: '100%',
10
10
  cursor: 'pointer',
11
11
  backgroundColor: 'transparent',
12
- border: '1px solid $neutral600',
13
-
12
+ $$borderColor: '$colors$neutral600',
13
+ [`.${darkTheme} &`]: {
14
+ $$borderColor: '$colors$neutral700',
15
+ },
16
+ border: '1px solid $$borderColor',
14
17
  '&[data-state="checked"]': {
15
18
  $$color: '$colors$secondary500',
16
19
  [`.${darkTheme} &`]: {
@@ -2,7 +2,7 @@ import type { BestRouteResponse } from 'rango-sdk';
2
2
 
3
3
  import React from 'react';
4
4
 
5
- import { styled } from '../../theme';
5
+ import { darkTheme, styled } from '../../theme';
6
6
  import { Divider } from '../Divider';
7
7
  import { AngleRightIcon, GasIcon } from '../Icon';
8
8
 
@@ -13,7 +13,11 @@ export const Container = styled('div', {
13
13
  padding: '$8',
14
14
  borderRadius: '$xs',
15
15
  backgroundColor: '$background',
16
- color: '$neutral600',
16
+ $$color: '$colors$neutral600',
17
+ [`.${darkTheme} &`]: {
18
+ $$color: '$colors$neutral700',
19
+ },
20
+ color: '$$color',
17
21
  fontSize: '$12',
18
22
 
19
23
  '.routes': {
@@ -2,8 +2,8 @@ import type { PropsWithChildren } from 'react';
2
2
 
3
3
  import React, { useEffect, useState } from 'react';
4
4
 
5
- import { getConciseAddress } from '../../helper';
6
5
  import { styled } from '../../theme';
6
+ import { getConciseAddress } from '../../utils';
7
7
  import { Image } from '../common';
8
8
  import { Typography } from '../Typography';
9
9
 
@@ -28,7 +28,7 @@ export const SvgWithColor = styled('svg', {
28
28
  color: '$info500',
29
29
  },
30
30
  gray: {
31
- color: '$neutral600',
31
+ color: '$neutral700',
32
32
  },
33
33
  },
34
34
  },
@@ -8,8 +8,12 @@ export const StyledSwitchRoot = styled(RadixSwitch.Root, {
8
8
  borderStyle: 'solid',
9
9
  width: '24px',
10
10
  height: '16px',
11
- backgroundColor: '$neutral600',
12
- borderColor: '$neutral600',
11
+ $$color: '$colors$neutral600',
12
+ [`.${darkTheme} &`]: {
13
+ $$color: '$colors$neutral700',
14
+ },
15
+ backgroundColor: '$$color',
16
+ borderColor: '$$color',
13
17
  borderRadius: '99999px',
14
18
  position: 'relative',
15
19
  padding: '0',
@@ -1,14 +1,16 @@
1
+ import type { LoadingStatus } from '../../types/meta';
2
+ import type { CSSProperties } from '@stitches/react';
3
+ import type { BlockchainMeta } from 'rango-sdk';
4
+
1
5
  import React from 'react';
2
- import { BlockchainMeta } from 'rango-sdk';
6
+
7
+ import { LoadingFailedAlert } from '../../components/Alert/LoadingFailedAlert';
8
+ import { NotFoundAlert } from '../../components/Alert/NotFoundAlert';
3
9
  import { BlockchainsList } from '../../components/BlockchainsList';
4
10
  import { SecondaryPage } from '../../components/SecondaryPage/SecondaryPage';
5
11
  import { Spinner } from '../../components/Spinner';
6
12
  import { styled } from '../../theme';
7
- import { CSSProperties } from '@stitches/react';
8
- import { containsText } from '../../helper';
9
- import { LoadingStatus } from '../../types/meta';
10
- import { LoadingFailedAlert } from '../../components/Alert/LoadingFailedAlert';
11
- import { NotFoundAlert } from '../../components/Alert/NotFoundAlert';
13
+ import { containsText } from '../../utils';
12
14
  import { LoaderContainer } from '../TokenSelector/TokenSelector';
13
15
 
14
16
  const ListContainer = styled('div', {
@@ -56,8 +58,7 @@ export function BlockchainSelector(props: PropTypes) {
56
58
  hasHeader={hasHeader}
57
59
  textFieldPlaceholder="Search blockchains by name"
58
60
  title={`Select ${type} Blockchain`}
59
- onBack={onBack}
60
- >
61
+ onBack={onBack}>
61
62
  {(searchedFor) => {
62
63
  const filteredBlockchains = filterBlockchains(list, searchedFor);
63
64
  return (
@@ -17,6 +17,13 @@ export const Container = styled('div', {
17
17
  },
18
18
  },
19
19
  },
20
+ '& .gray-text': {
21
+ $$color: '$colors$neutral600',
22
+ [`.${darkTheme} &`]: {
23
+ $$color: '$colors$neutral700',
24
+ },
25
+ color: '$$color',
26
+ },
20
27
  '& .label__container': {
21
28
  paddingBottom: '$5',
22
29
  },
@@ -62,3 +69,29 @@ export const MaxButton = styled(Button, {
62
69
  },
63
70
  backgroundColor: '$$color',
64
71
  });
72
+
73
+ export const ValueTypography = styled('div', {
74
+ width: 140,
75
+ textAlign: 'right',
76
+ whiteSpace: 'nowrap',
77
+ overflow: 'hidden',
78
+ textOverflow: 'ellipsis',
79
+ variants: {
80
+ hasWarning: {
81
+ true: {
82
+ '& ._typography': {
83
+ color: '$warning500',
84
+ },
85
+ },
86
+ false: {
87
+ '& ._typography': {
88
+ $$color: '$colors$neutral600',
89
+ [`.${darkTheme} &`]: {
90
+ $$color: '$colors$neutral700',
91
+ },
92
+ color: '$$color',
93
+ },
94
+ },
95
+ },
96
+ },
97
+ });
@@ -5,7 +5,12 @@ import React from 'react';
5
5
 
6
6
  import { Divider, PriceImpact, Skeleton, Typography } from '../../components';
7
7
 
8
- import { Container, InputAmount, MaxButton } from './SwapInput.styles';
8
+ import {
9
+ Container,
10
+ InputAmount,
11
+ MaxButton,
12
+ ValueTypography,
13
+ } from './SwapInput.styles';
9
14
  import { TokenSection } from './TokenSection';
10
15
 
11
16
  export function SwapInput(props: SwapInputProps) {
@@ -13,13 +18,13 @@ export function SwapInput(props: SwapInputProps) {
13
18
  <Container sharpBottomStyle={props.sharpBottomStyle}>
14
19
  <div className="label__container">
15
20
  <div className="label">
16
- <Typography variant="body" size="small" color="$neutral600">
21
+ <Typography variant="body" size="small" className="gray-text">
17
22
  {props.label}
18
23
  </Typography>
19
24
  {'balance' in props && !props.loading && (
20
25
  <div className="balance">
21
26
  <Typography
22
- color="$neutral600"
27
+ className="gray-text"
23
28
  mr={4}
24
29
  variant="body"
25
30
  size="xsmall">
@@ -84,21 +89,13 @@ export function SwapInput(props: SwapInputProps) {
84
89
  warningLevel={props.warningLevel}
85
90
  />
86
91
  ) : (
87
- <Typography
88
- variant="body"
89
- size="medium"
90
- color={!props.price.error ? '$neutral600' : '$warning500'}
91
- style={{
92
- width: 140,
93
- textAlign: 'right',
94
- whiteSpace: 'nowrap',
95
- overflow: 'hidden',
96
- textOverflow: 'ellipsis',
97
- }}>
98
- {props.price.usdValue
99
- ? `~$${props.price.usdValue}`
100
- : props.price.error}
101
- </Typography>
92
+ <ValueTypography hasWarning={!!props.price.error}>
93
+ <Typography variant="body" size="medium">
94
+ {props.price.usdValue
95
+ ? `~$${props.price.usdValue}`
96
+ : props.price.error}
97
+ </Typography>
98
+ </ValueTypography>
102
99
  )}
103
100
  </>
104
101
  )}
@@ -36,6 +36,13 @@ export const TokenSectionContainer = styled('div', {
36
36
  boxSizing: 'border-box',
37
37
  alignItems: 'center',
38
38
 
39
+ '& .blockchain-name': {
40
+ $$color: '$colors$neutral600',
41
+ [`.${darkTheme} &`]: {
42
+ $$color: '$colors$neutral700',
43
+ },
44
+ color: '$$color',
45
+ },
39
46
  '& .token-chain-name': {
40
47
  display: 'flex',
41
48
  flexDirection: 'column',
@@ -41,7 +41,10 @@ export function TokenSection(props: TokenSectionProps) {
41
41
  ? i18n.t('Token')
42
42
  : tokenSymbol}
43
43
  </Typography>
44
- <Typography variant="body" size="medium" color="$neutral600">
44
+ <Typography
45
+ variant="body"
46
+ size="medium"
47
+ className="blockchain-name">
45
48
  {error || (!loading && !chain) ? i18n.t('Chain') : chain}
46
49
  </Typography>
47
50
  </>
@@ -1,14 +1,13 @@
1
+ import type { TokenWithAmount } from '../../components/TokenList/TokenList';
2
+ import type { LoadingStatus } from '../../types/meta';
3
+
1
4
  import React from 'react';
2
- import { containsText } from '../../helper';
3
5
 
4
- import { LoadingStatus } from '../../types/meta';
5
- import { styled } from '../../theme';
6
- import { NotFoundAlert } from '../../components/Alert/NotFoundAlert';
7
6
  import { LoadingFailedAlert, SecondaryPage, Spinner } from '../../components';
8
- import {
9
- TokenList,
10
- TokenWithAmount,
11
- } from '../../components/TokenList/TokenList';
7
+ import { NotFoundAlert } from '../../components/Alert/NotFoundAlert';
8
+ import { TokenList } from '../../components/TokenList/TokenList';
9
+ import { styled } from '../../theme';
10
+ import { containsText } from '../../utils';
12
11
 
13
12
  export const LoaderContainer = styled('div', {
14
13
  display: 'flex',
@@ -45,8 +44,7 @@ export function TokenSelector(props: PropTypes) {
45
44
  hasHeader={hasHeader}
46
45
  title={`Select ${type} token`}
47
46
  onBack={onBack}
48
- textFieldPlaceholder="Search tokens by name"
49
- >
47
+ textFieldPlaceholder="Search tokens by name">
50
48
  {(searchedFor) => {
51
49
  const filteredTokens = filterTokens(list, searchedFor);
52
50
 
package/src/index.ts CHANGED
@@ -4,4 +4,3 @@ export * from './theme';
4
4
  export * from './types';
5
5
  export * from './hooks';
6
6
  export * from './icons';
7
- export { generateRangeColors } from './helper';