@coinswap-app/uikit 0.8.0 → 1.0.0
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/components/Breadcrumbs/types.d.ts +1 -0
- package/dist/components/Button/RampButtonLite.d.ts +1 -0
- package/dist/components/ButtonMenu/types.d.ts +1 -0
- package/dist/components/Dropdown/types.d.ts +1 -0
- package/dist/components/Heading/types.d.ts +6 -6
- package/dist/components/MuiInput/InputAssets/InputAssets.d.ts +1 -0
- package/dist/components/Table/hooks.d.ts +1 -1
- package/dist/components/TableRow/TableRow.d.ts +1 -1
- package/dist/components/TableRow/components/LiquidityContainer.d.ts +1 -1
- package/dist/components/TableRow/components/TableActionBox.d.ts +1 -1
- package/dist/components/Tag/types.d.ts +1 -0
- package/dist/components/Tooltip/types.d.ts +8 -0
- package/dist/index.cjs.js +277 -268
- package/dist/index.esm.js +277 -268
- package/dist/theme/index.d.ts +2 -2
- package/dist/widgets/Menu/types.d.ts +1 -0
- package/dist/widgets/Modal/Modal.d.ts +1 -0
- package/dist/widgets/PriceContainer/PriceContainer.d.ts +1 -1
- package/dist/widgets/TopTokensContainer/TopTokensContainer.d.ts +1 -1
- package/dist/widgets/WalletModal/CopyToClipboard.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -297,7 +297,8 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
297
297
|
|
|
298
298
|
var getThemeValue = function getThemeValue(path, fallback) {
|
|
299
299
|
return function (theme) {
|
|
300
|
-
|
|
300
|
+
var _get;
|
|
301
|
+
return String((_get = get(theme, path, fallback)) !== null && _get !== void 0 ? _get : '');
|
|
301
302
|
};
|
|
302
303
|
};
|
|
303
304
|
|
|
@@ -9171,7 +9172,7 @@ var useVoting = function useVoting() {
|
|
|
9171
9172
|
fetchContentfulData().then(function (data) {
|
|
9172
9173
|
// @ts-ignore
|
|
9173
9174
|
var vote = data[0].fields.votingEnabled || false;
|
|
9174
|
-
setVotEnabled(vote);
|
|
9175
|
+
setVotEnabled(Boolean(vote));
|
|
9175
9176
|
});
|
|
9176
9177
|
}, []);
|
|
9177
9178
|
return {
|
|
@@ -9229,8 +9230,8 @@ var useMenuConfig = function useMenuConfig() {
|
|
|
9229
9230
|
var farm = data.farmItems.items[0].fields.newFarm || false;
|
|
9230
9231
|
// @ts-ignore
|
|
9231
9232
|
var stake = data.stakeItems.items[0].fields.newStake || false;
|
|
9232
|
-
setNewFarm(farm);
|
|
9233
|
-
setNewStake(stake);
|
|
9233
|
+
setNewFarm(Boolean(farm));
|
|
9234
|
+
setNewStake(Boolean(stake));
|
|
9234
9235
|
});
|
|
9235
9236
|
}, []);
|
|
9236
9237
|
return {
|
|
@@ -9280,7 +9281,7 @@ var useNotification = function useNotification() {
|
|
|
9280
9281
|
// @ts-ignore
|
|
9281
9282
|
var notiPath = (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data$.fields.sitePath;
|
|
9282
9283
|
var updatedAt = moment$1((_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : _data$2.sys.updatedAt).format("LLL");
|
|
9283
|
-
setPAth(notiPath);
|
|
9284
|
+
setPAth(String(notiPath || ''));
|
|
9284
9285
|
setNoteUpdatedAt(updatedAt);
|
|
9285
9286
|
});
|
|
9286
9287
|
}, []);
|
|
@@ -9632,227 +9633,12 @@ var StyledTag = styled.div.withConfig({
|
|
|
9632
9633
|
return getColor(variant, theme);
|
|
9633
9634
|
}, getThemeTextColor, getThemeTextColor);
|
|
9634
9635
|
|
|
9635
|
-
var _excluded$l = ["
|
|
9636
|
-
var Tag = function Tag(_ref) {
|
|
9637
|
-
var startIcon = _ref.startIcon,
|
|
9638
|
-
endIcon = _ref.endIcon,
|
|
9639
|
-
children = _ref.children,
|
|
9640
|
-
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
9641
|
-
return /*#__PURE__*/jsxs(StyledTag, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9642
|
-
children: [/*#__PURE__*/React__default.isValidElement(startIcon) && /*#__PURE__*/React__default.cloneElement(startIcon, {
|
|
9643
|
-
mr: "0.5rem"
|
|
9644
|
-
}), children, /*#__PURE__*/React__default.isValidElement(endIcon) && /*#__PURE__*/React__default.cloneElement(endIcon, {
|
|
9645
|
-
ml: "0.5rem"
|
|
9646
|
-
})]
|
|
9647
|
-
}));
|
|
9648
|
-
};
|
|
9649
|
-
Tag.defaultProps = {
|
|
9650
|
-
variant: "primary",
|
|
9651
|
-
outline: false
|
|
9652
|
-
};
|
|
9653
|
-
|
|
9654
|
-
var tagVariant;
|
|
9655
|
-
(function (tagVariant) {
|
|
9656
|
-
tagVariant["PRIMARY"] = "primary";
|
|
9657
|
-
tagVariant["SECONDARY"] = "secondary";
|
|
9658
|
-
tagVariant["SUCCESS"] = "success";
|
|
9659
|
-
tagVariant["TEXTDISABLED"] = "textDisabled";
|
|
9660
|
-
tagVariant["TEXTSUBTLE"] = "textSubtle";
|
|
9661
|
-
tagVariant["BINANCE"] = "binance";
|
|
9662
|
-
tagVariant["FAILURE"] = "failure";
|
|
9663
|
-
tagVariant["CORE"] = "Core";
|
|
9664
|
-
tagVariant["FAAS"] = "FaaS";
|
|
9665
|
-
tagVariant["SAAS"] = "SaaS";
|
|
9666
|
-
tagVariant["LAUNCHPOOL"] = "Launchpool";
|
|
9667
|
-
tagVariant["COMMUNITY"] = "Community";
|
|
9668
|
-
tagVariant["AUTOCOMPOUND"] = "Auto";
|
|
9669
|
-
})(tagVariant || (tagVariant = {}));
|
|
9670
|
-
var variants$1 = {
|
|
9671
|
-
FAAS: "FaaS",
|
|
9672
|
-
SAAS: "SaaS",
|
|
9673
|
-
LAUNCHPOOL: "Launchpool",
|
|
9674
|
-
COMMUNITY: "Community",
|
|
9675
|
-
AUTOCOMPOUND: "Auto"
|
|
9676
|
-
};
|
|
9677
|
-
|
|
9678
|
-
var baseColors = {
|
|
9679
|
-
failure: "#12FFB8",
|
|
9680
|
-
primaryBright: "#12FFB8",
|
|
9681
|
-
primaryDark: "#0098A1",
|
|
9682
|
-
secondary: "#12FFB8",
|
|
9683
|
-
success: "#31D0AA",
|
|
9684
|
-
warning: "# ",
|
|
9685
|
-
// NEW DEFINED
|
|
9686
|
-
primary: "#12FFB8",
|
|
9687
|
-
darkGreen: "#13B7A4",
|
|
9688
|
-
dark: "#16161D",
|
|
9689
|
-
grey: "#373749",
|
|
9690
|
-
lightGrey: "#75787b",
|
|
9691
|
-
blue: "#256AC9",
|
|
9692
|
-
vividBlue: "#00D6FF",
|
|
9693
|
-
white: "#FFFFFF",
|
|
9694
|
-
white3: "rgba(255, 255, 255, 0.03)",
|
|
9695
|
-
white7: "rgba(255, 255, 255, 0.07)",
|
|
9696
|
-
white10: "rgba(255, 255, 255, 0.1)",
|
|
9697
|
-
white20: "rgba(255, 255, 255, 0.2)",
|
|
9698
|
-
white30: "rgba(255, 255, 255, 0.3)",
|
|
9699
|
-
white55: "rgba(255, 255, 255, 0.55)",
|
|
9700
|
-
red: "#F6465D",
|
|
9701
|
-
green: "#0ECB81",
|
|
9702
|
-
error: "#F6465D",
|
|
9703
|
-
disabled: "#2B2B32",
|
|
9704
|
-
lightBlue: "#A9CEF4",
|
|
9705
|
-
darkPurple: "#7763F6"
|
|
9706
|
-
};
|
|
9707
|
-
var brandColors = {
|
|
9708
|
-
binance: "#F0B90B"
|
|
9709
|
-
};
|
|
9710
|
-
var lightColors = _objectSpread2(_objectSpread2(_objectSpread2({}, baseColors), brandColors), {}, {
|
|
9711
|
-
secondaryText: "rgba(255, 255, 255, 0.55)",
|
|
9712
|
-
background: "#FAF9FA",
|
|
9713
|
-
backgroundDisabled: "#E9EAEB",
|
|
9714
|
-
contrast: "#191326",
|
|
9715
|
-
invertedContrast: "#FFFFFF",
|
|
9716
|
-
input: "#eeeaf4",
|
|
9717
|
-
inputSecondary: "#d7caec",
|
|
9718
|
-
tertiary: "#EFF4F5",
|
|
9719
|
-
text: "rgb(22,22,29,1)",
|
|
9720
|
-
textDisabled: "#BDC2C4",
|
|
9721
|
-
textSubtle: "#8f80ba",
|
|
9722
|
-
borderColor: "#E9EAEB",
|
|
9723
|
-
card: "#FFFFFF",
|
|
9724
|
-
infoBox: "rgba(22, 22, 29, 1)",
|
|
9725
|
-
gradients: {
|
|
9726
|
-
bubblegum: "linear-gradient(139.73deg, #E6FDFF 0%, #F3EFFF 100%)"
|
|
9727
|
-
}
|
|
9728
|
-
});
|
|
9729
|
-
var darkColors = _objectSpread2(_objectSpread2(_objectSpread2({}, baseColors), brandColors), {}, {
|
|
9730
|
-
secondary: "rgba(255, 255, 255, 0.3)",
|
|
9731
|
-
secondaryText: "rgba(255, 255, 255, 0.55)",
|
|
9732
|
-
background: "#16161d",
|
|
9733
|
-
backgroundDisabled: "#3c3742",
|
|
9734
|
-
contrast: "#FFFFFF",
|
|
9735
|
-
invertedContrast: "#191326",
|
|
9736
|
-
input: "transparent",
|
|
9737
|
-
inputSecondary: "#666171",
|
|
9738
|
-
primaryDark: "#0098A1",
|
|
9739
|
-
tertiary: "#353547",
|
|
9740
|
-
text: "#FFFFFF",
|
|
9741
|
-
textDisabled: "#666171",
|
|
9742
|
-
textSubtle: "#FAF9FA",
|
|
9743
|
-
borderColor: "#524B63",
|
|
9744
|
-
card: "#191921",
|
|
9745
|
-
infoBox: "rgba(22, 22, 29, 1)",
|
|
9746
|
-
gradients: {
|
|
9747
|
-
bubblegum: "linear-gradient(139.73deg, #313D5C 0%, #3D2A54 100%)"
|
|
9748
|
-
}
|
|
9749
|
-
});
|
|
9750
|
-
|
|
9751
|
-
var StyledCoreTag = styled.div.withConfig({
|
|
9752
|
-
displayName: "CoreTag__StyledCoreTag",
|
|
9753
|
-
componentId: "sc-1bfj6gr-0"
|
|
9754
|
-
})(["width:auto;height:24px;display:inline-flex;justify-content:space-between;align-items:center;background-color:transparent;border:1px solid ", ";border-radius:", ";color:", ";font-size:14px;font-weight:700;line-height:1.5;padding:0 8px;white-space:nowrap;svg{margin-left:", "px;margin-right:", "px;width:16px;height:16px;fill:", ";}"], function (_ref) {
|
|
9755
|
-
var theme = _ref.theme,
|
|
9756
|
-
active = _ref.active,
|
|
9757
|
-
color = _ref.color;
|
|
9758
|
-
return active ? color : theme.colors.grey;
|
|
9759
|
-
}, function (_ref2) {
|
|
9760
|
-
var theme = _ref2.theme;
|
|
9761
|
-
return theme.radii.primary;
|
|
9762
|
-
}, function (_ref3) {
|
|
9763
|
-
var theme = _ref3.theme,
|
|
9764
|
-
active = _ref3.active,
|
|
9765
|
-
color = _ref3.color;
|
|
9766
|
-
return active ? color : theme.colors.grey;
|
|
9767
|
-
}, function (_ref4) {
|
|
9768
|
-
var plainIcon = _ref4.plainIcon;
|
|
9769
|
-
return plainIcon ? 0 : -3;
|
|
9770
|
-
}, function (_ref5) {
|
|
9771
|
-
var plainIcon = _ref5.plainIcon;
|
|
9772
|
-
return plainIcon ? 0 : 5;
|
|
9773
|
-
}, function (_ref6) {
|
|
9774
|
-
var theme = _ref6.theme,
|
|
9775
|
-
active = _ref6.active;
|
|
9776
|
-
return active ? theme.colors.primary : theme.colors.grey;
|
|
9777
|
-
});
|
|
9778
|
-
var StyledText = styled(Text).withConfig({
|
|
9779
|
-
displayName: "CoreTag__StyledText",
|
|
9780
|
-
componentId: "sc-1bfj6gr-1"
|
|
9781
|
-
})(["font-weight:700;color:", ";font-size:14px;line-height:20px;"], function (_ref7) {
|
|
9782
|
-
var theme = _ref7.theme,
|
|
9783
|
-
active = _ref7.active,
|
|
9784
|
-
color = _ref7.color;
|
|
9785
|
-
return active ? color : theme.colors.grey;
|
|
9786
|
-
});
|
|
9787
|
-
var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme) {
|
|
9788
|
-
switch (variant) {
|
|
9789
|
-
case variants$1.FAAS:
|
|
9790
|
-
case variants$1.SAAS:
|
|
9791
|
-
case variants$1.LAUNCHPOOL:
|
|
9792
|
-
return {
|
|
9793
|
-
color: theme.colors.lightBlue,
|
|
9794
|
-
icon: /*#__PURE__*/jsx(Icon$2p, {
|
|
9795
|
-
opac: true,
|
|
9796
|
-
fill: active ? theme.colors.lightBlue : theme.colors.grey
|
|
9797
|
-
})
|
|
9798
|
-
};
|
|
9799
|
-
case variants$1.COMMUNITY:
|
|
9800
|
-
return {
|
|
9801
|
-
color: brandColors.binance,
|
|
9802
|
-
icon: /*#__PURE__*/jsx(Icon$2p, {
|
|
9803
|
-
opac: true,
|
|
9804
|
-
fill: active ? brandColors.binance : theme.colors.grey
|
|
9805
|
-
})
|
|
9806
|
-
};
|
|
9807
|
-
case variants$1.AUTOCOMPOUND:
|
|
9808
|
-
return {
|
|
9809
|
-
color: theme.colors.vividBlue,
|
|
9810
|
-
icon: /*#__PURE__*/jsx(Icon$1a, {
|
|
9811
|
-
opac: true,
|
|
9812
|
-
stroke: active ? theme.colors.vividBlue : theme.colors.grey
|
|
9813
|
-
})
|
|
9814
|
-
};
|
|
9815
|
-
default:
|
|
9816
|
-
return {
|
|
9817
|
-
color: theme.colors.primary,
|
|
9818
|
-
icon: /*#__PURE__*/jsx(Icon$2p, {
|
|
9819
|
-
opac: true,
|
|
9820
|
-
fill: active ? theme.colors.primary : theme.colors.grey
|
|
9821
|
-
})
|
|
9822
|
-
};
|
|
9823
|
-
}
|
|
9824
|
-
};
|
|
9825
|
-
var CoreTag = function CoreTag(_ref8) {
|
|
9826
|
-
var _ref8$active = _ref8.active,
|
|
9827
|
-
active = _ref8$active === void 0 ? true : _ref8$active,
|
|
9828
|
-
variant = _ref8.variant,
|
|
9829
|
-
plainIcon = _ref8.plainIcon;
|
|
9830
|
-
var theme = useTheme();
|
|
9831
|
-
var _getTagPropsByVariant = getTagPropsByVariant(variant, active, theme),
|
|
9832
|
-
color = _getTagPropsByVariant.color,
|
|
9833
|
-
icon = _getTagPropsByVariant.icon;
|
|
9834
|
-
return /*#__PURE__*/jsxs(StyledCoreTag, {
|
|
9835
|
-
active: active,
|
|
9836
|
-
color: color,
|
|
9837
|
-
plainIcon: plainIcon,
|
|
9838
|
-
children: [icon, !plainIcon && /*#__PURE__*/jsx(StyledText, {
|
|
9839
|
-
active: active,
|
|
9840
|
-
color: color,
|
|
9841
|
-
children: variant
|
|
9842
|
-
})]
|
|
9843
|
-
});
|
|
9844
|
-
};
|
|
9845
|
-
CoreTag.defaultProps = {
|
|
9846
|
-
variant: "primary",
|
|
9847
|
-
outline: false
|
|
9848
|
-
};
|
|
9849
|
-
|
|
9850
|
-
var _excluded$k = ["isActive", "size", "variant", "as", "children", "tag", "hide"];
|
|
9636
|
+
var _excluded$l = ["isActive", "size", "variant", "as", "children", "tag", "hide"];
|
|
9851
9637
|
var ButtonBody = styled.div.withConfig({
|
|
9852
9638
|
displayName: "ButtonMenuItem__ButtonBody",
|
|
9853
9639
|
componentId: "sc-1bbtdtk-0"
|
|
9854
9640
|
})(["display:inline-flex;align-items:center;"]);
|
|
9855
|
-
var ButtonTag = styled(
|
|
9641
|
+
var ButtonTag = styled(StyledTag).withConfig({
|
|
9856
9642
|
displayName: "ButtonMenuItem__ButtonTag",
|
|
9857
9643
|
componentId: "sc-1bbtdtk-1"
|
|
9858
9644
|
})(["margin-left:7px;font-weight:bold;font-size:11px;padding:1px 5px;height:unset;border-width:1px;"]);
|
|
@@ -9871,7 +9657,7 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
|
|
|
9871
9657
|
children = _ref.children,
|
|
9872
9658
|
tag = _ref.tag,
|
|
9873
9659
|
hide = _ref.hide,
|
|
9874
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9660
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
9875
9661
|
if (!isActive) {
|
|
9876
9662
|
return /*#__PURE__*/jsx(InactiveButton$1, _objectSpread2(_objectSpread2({
|
|
9877
9663
|
forwardedAs: as,
|
|
@@ -9978,7 +9764,7 @@ StyledButtonActivity.defaultProps = {
|
|
|
9978
9764
|
type: "button"
|
|
9979
9765
|
};
|
|
9980
9766
|
|
|
9981
|
-
var _excluded$
|
|
9767
|
+
var _excluded$k = ["startIcon", "style", "endIcon", "children", "external", "isLoading", "disabled"];
|
|
9982
9768
|
var ButtonActivity = function ButtonActivity(_ref) {
|
|
9983
9769
|
var startIcon = _ref.startIcon,
|
|
9984
9770
|
style = _ref.style,
|
|
@@ -9987,7 +9773,7 @@ var ButtonActivity = function ButtonActivity(_ref) {
|
|
|
9987
9773
|
external = _ref.external,
|
|
9988
9774
|
isLoading = _ref.isLoading,
|
|
9989
9775
|
disabled = _ref.disabled,
|
|
9990
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9776
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
9991
9777
|
var internalProps = external ? getExternalLinkProps() : {};
|
|
9992
9778
|
var isDisabled = isLoading || disabled;
|
|
9993
9779
|
return /*#__PURE__*/jsxs(StyledButtonActivity, _objectSpread2(_objectSpread2(_objectSpread2({}, internalProps), props), {}, {
|
|
@@ -10009,7 +9795,7 @@ ButtonActivity.defaultProps = {
|
|
|
10009
9795
|
disabled: false
|
|
10010
9796
|
};
|
|
10011
9797
|
|
|
10012
|
-
var _excluded$
|
|
9798
|
+
var _excluded$j = ["isActive", "size", "variant", "as"];
|
|
10013
9799
|
var InactiveButton = styled(ButtonActivity).withConfig({
|
|
10014
9800
|
displayName: "ButtonActivityMenuItem__InactiveButton",
|
|
10015
9801
|
componentId: "sc-kqgtlg-0"
|
|
@@ -10022,7 +9808,7 @@ var ButtonActivityMenuItem = function ButtonActivityMenuItem(_ref) {
|
|
|
10022
9808
|
_ref$variant = _ref.variant,
|
|
10023
9809
|
variant = _ref$variant === void 0 ? variants$2.PRIMARY : _ref$variant,
|
|
10024
9810
|
as = _ref.as,
|
|
10025
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9811
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
10026
9812
|
if (!isActive) {
|
|
10027
9813
|
return /*#__PURE__*/jsx(InactiveButton, _objectSpread2({
|
|
10028
9814
|
forwardedAs: as,
|
|
@@ -10085,14 +9871,14 @@ StyledButtonSwitch.defaultProps = {
|
|
|
10085
9871
|
type: "button"
|
|
10086
9872
|
};
|
|
10087
9873
|
|
|
10088
|
-
var _excluded$
|
|
9874
|
+
var _excluded$i = ["style", "children", "isLoading", "disabled", "active"];
|
|
10089
9875
|
var ButtonSwitch = function ButtonSwitch(_ref) {
|
|
10090
9876
|
var style = _ref.style,
|
|
10091
9877
|
children = _ref.children,
|
|
10092
9878
|
isLoading = _ref.isLoading,
|
|
10093
9879
|
disabled = _ref.disabled,
|
|
10094
9880
|
active = _ref.active,
|
|
10095
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9881
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
10096
9882
|
var isDisabled = isLoading || disabled;
|
|
10097
9883
|
return /*#__PURE__*/jsx(StyledButtonSwitch, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10098
9884
|
active: active,
|
|
@@ -10108,7 +9894,7 @@ var StyledButtonSwitchMenu = styled.div.withConfig({
|
|
|
10108
9894
|
componentId: "sc-1qzp9bs-0"
|
|
10109
9895
|
})(["background:transparent;box-sizing:border-box;display:inline-flex;flex-direction:row;justify-content:center;align-items:center;"]);
|
|
10110
9896
|
|
|
10111
|
-
var variants = {
|
|
9897
|
+
var variants$1 = {
|
|
10112
9898
|
DEFAULT: "default",
|
|
10113
9899
|
PANEL: "panel"
|
|
10114
9900
|
};
|
|
@@ -10117,7 +9903,7 @@ var getToggleVariantProp = function getToggleVariantProp(prop) {
|
|
|
10117
9903
|
return function (_ref) {
|
|
10118
9904
|
var theme = _ref.theme,
|
|
10119
9905
|
_ref$variant = _ref.variant,
|
|
10120
|
-
variant = _ref$variant === void 0 ? variants.DEFAULT : _ref$variant;
|
|
9906
|
+
variant = _ref$variant === void 0 ? variants$1.DEFAULT : _ref$variant;
|
|
10121
9907
|
return theme.toggle[variant][prop];
|
|
10122
9908
|
};
|
|
10123
9909
|
};
|
|
@@ -10140,11 +9926,11 @@ var StyledToggle = styled.div.withConfig({
|
|
|
10140
9926
|
return checked ? getToggleVariantProp("backgroundToggleActive") : getToggleVariantProp("backgroundToggleInactive");
|
|
10141
9927
|
}, getToggleVariantProp("borderColor"));
|
|
10142
9928
|
|
|
10143
|
-
var _excluded$
|
|
9929
|
+
var _excluded$h = ["checked", "variant"];
|
|
10144
9930
|
var Toggle$1 = function Toggle(_ref) {
|
|
10145
9931
|
var checked = _ref.checked,
|
|
10146
9932
|
variant = _ref.variant,
|
|
10147
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9933
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
10148
9934
|
var isChecked = !!checked;
|
|
10149
9935
|
var disabled = props.disabled,
|
|
10150
9936
|
onChange = props.onChange;
|
|
@@ -10164,14 +9950,14 @@ var Toggle$1 = function Toggle(_ref) {
|
|
|
10164
9950
|
}));
|
|
10165
9951
|
};
|
|
10166
9952
|
Toggle$1.defaultProps = {
|
|
10167
|
-
variant: variants.PANEL
|
|
9953
|
+
variant: variants$1.PANEL
|
|
10168
9954
|
};
|
|
10169
9955
|
|
|
10170
|
-
var _excluded$
|
|
9956
|
+
var _excluded$g = ["onClick", "active"];
|
|
10171
9957
|
var ButtonSwitchMenuItem = function ButtonSwitchMenuItem(_ref) {
|
|
10172
9958
|
var _onClick = _ref.onClick,
|
|
10173
9959
|
active = _ref.active,
|
|
10174
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9960
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
10175
9961
|
return /*#__PURE__*/jsx(ButtonSwitch, _objectSpread2({
|
|
10176
9962
|
onClick: function onClick() {
|
|
10177
9963
|
return _onClick;
|
|
@@ -10256,11 +10042,11 @@ StyledCard.defaultProps = {
|
|
|
10256
10042
|
isDisabled: false
|
|
10257
10043
|
};
|
|
10258
10044
|
|
|
10259
|
-
var _excluded$
|
|
10045
|
+
var _excluded$f = ["ribbon", "children"];
|
|
10260
10046
|
var Card = function Card(_ref) {
|
|
10261
10047
|
var ribbon = _ref.ribbon,
|
|
10262
10048
|
children = _ref.children,
|
|
10263
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10049
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
10264
10050
|
return /*#__PURE__*/jsxs(StyledCard, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10265
10051
|
children: [ribbon, children]
|
|
10266
10052
|
}));
|
|
@@ -10413,7 +10199,7 @@ Dropdown.defaultProps = {
|
|
|
10413
10199
|
position: "bottom"
|
|
10414
10200
|
};
|
|
10415
10201
|
|
|
10416
|
-
var _excluded$
|
|
10202
|
+
var _excluded$e = ["tokenName", "amount", "tokenIcon", "actions"];
|
|
10417
10203
|
var StyledHeading = styled.div.withConfig({
|
|
10418
10204
|
displayName: "EarnedToken__StyledHeading",
|
|
10419
10205
|
componentId: "sc-1kzbws6-0"
|
|
@@ -10477,7 +10263,7 @@ var EarnedToken = function EarnedToken(_ref10) {
|
|
|
10477
10263
|
amount = _ref10.amount,
|
|
10478
10264
|
tokenIcon = _ref10.tokenIcon,
|
|
10479
10265
|
actions = _ref10.actions,
|
|
10480
|
-
props = _objectWithoutProperties(_ref10, _excluded$
|
|
10266
|
+
props = _objectWithoutProperties(_ref10, _excluded$e);
|
|
10481
10267
|
var _useMatchBreakpoints = useMatchBreakpoints(),
|
|
10482
10268
|
isSm = _useMatchBreakpoints.isSm;
|
|
10483
10269
|
var _useState = useState(false),
|
|
@@ -10548,10 +10334,10 @@ var StyledEarnedWrapper = styled.div.withConfig({
|
|
|
10548
10334
|
return theme.colors.white;
|
|
10549
10335
|
});
|
|
10550
10336
|
|
|
10551
|
-
var _excluded$
|
|
10337
|
+
var _excluded$d = ["children"];
|
|
10552
10338
|
var EarnedWrapper = function EarnedWrapper(_ref) {
|
|
10553
10339
|
var children = _ref.children,
|
|
10554
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10340
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
10555
10341
|
return /*#__PURE__*/jsx(StyledEarnedWrapper, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10556
10342
|
children: children
|
|
10557
10343
|
}));
|
|
@@ -10709,10 +10495,10 @@ var StyledEarnedCarouselWrapper = styled.div.withConfig({
|
|
|
10709
10495
|
return theme.mediaQueries.md;
|
|
10710
10496
|
});
|
|
10711
10497
|
|
|
10712
|
-
var _excluded$
|
|
10498
|
+
var _excluded$c = ["children"];
|
|
10713
10499
|
var EarnedCarouselWrapper = function EarnedCarouselWrapper(_ref) {
|
|
10714
10500
|
var children = _ref.children,
|
|
10715
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10501
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
10716
10502
|
return /*#__PURE__*/jsx(StyledEarnedCarouselWrapper, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10717
10503
|
children: children
|
|
10718
10504
|
}));
|
|
@@ -10894,10 +10680,10 @@ var EarnedCarouselWrapperBody = function EarnedCarouselWrapperBody(_ref9) {
|
|
|
10894
10680
|
});
|
|
10895
10681
|
};
|
|
10896
10682
|
|
|
10897
|
-
var _excluded$
|
|
10683
|
+
var _excluded$b = ["src"];
|
|
10898
10684
|
var BackgroundImage = function BackgroundImage(_ref) {
|
|
10899
10685
|
var src = _ref.src,
|
|
10900
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
10686
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$b);
|
|
10901
10687
|
var imgRef = useRef(null);
|
|
10902
10688
|
useEffect(function () {
|
|
10903
10689
|
var img = imgRef.current;
|
|
@@ -10947,10 +10733,10 @@ StyledInfoBox.defaultProps = {
|
|
|
10947
10733
|
isWarning: false
|
|
10948
10734
|
};
|
|
10949
10735
|
|
|
10950
|
-
var _excluded$
|
|
10736
|
+
var _excluded$a = ["children"];
|
|
10951
10737
|
var InfoBox$1 = function InfoBox(_ref) {
|
|
10952
10738
|
var children = _ref.children,
|
|
10953
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10739
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
10954
10740
|
return /*#__PURE__*/jsx(StyledInfoBox, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10955
10741
|
children: children
|
|
10956
10742
|
}));
|
|
@@ -11042,7 +10828,7 @@ Input.defaultProps = {
|
|
|
11042
10828
|
isWarning: false
|
|
11043
10829
|
};
|
|
11044
10830
|
|
|
11045
|
-
var _excluded$
|
|
10831
|
+
var _excluded$9 = ["children"],
|
|
11046
10832
|
_excluded2 = ["children"],
|
|
11047
10833
|
_excluded3 = ["children"];
|
|
11048
10834
|
var InputLabelBox = styled.div.withConfig({
|
|
@@ -11092,7 +10878,7 @@ var StyledSuccessMessage = styled(Text).withConfig({
|
|
|
11092
10878
|
});
|
|
11093
10879
|
var InputTopDesc = function InputTopDesc(_ref5) {
|
|
11094
10880
|
var children = _ref5.children,
|
|
11095
|
-
props = _objectWithoutProperties(_ref5, _excluded$
|
|
10881
|
+
props = _objectWithoutProperties(_ref5, _excluded$9);
|
|
11096
10882
|
return /*#__PURE__*/jsx(StyledInputDesc, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
11097
10883
|
children: children
|
|
11098
10884
|
}));
|
|
@@ -11275,7 +11061,7 @@ var MuiFileInput = function MuiFileInput(_ref3) {
|
|
|
11275
11061
|
_ref3$disabled = _ref3.disabled,
|
|
11276
11062
|
disabled = _ref3$disabled === void 0 ? false : _ref3$disabled;
|
|
11277
11063
|
var _useDropzone = useDropzone({
|
|
11278
|
-
accept: acceptExtesnions,
|
|
11064
|
+
accept: acceptExtesnions ? _defineProperty({}, acceptExtesnions, []) : undefined,
|
|
11279
11065
|
maxFiles: 1,
|
|
11280
11066
|
onDrop: function onDrop(acceptedFiles) {
|
|
11281
11067
|
onFileSelect(acceptedFiles);
|
|
@@ -11329,7 +11115,7 @@ var MuiFileInput = function MuiFileInput(_ref3) {
|
|
|
11329
11115
|
});
|
|
11330
11116
|
};
|
|
11331
11117
|
|
|
11332
|
-
var _excluded$
|
|
11118
|
+
var _excluded$8 = ["name", "label", "placeholderLabel", "placeholder", "topDesc", "bottomDesc", "optional", "value", "onChange", "onBlur", "error", "textarea", "maxLength", "disabled", "success", "successMsg"];
|
|
11333
11119
|
var TextAreaWrapper = styled.div.withConfig({
|
|
11334
11120
|
displayName: "MuiTextInput__TextAreaWrapper",
|
|
11335
11121
|
componentId: "sc-1pp44v8-0"
|
|
@@ -11403,7 +11189,7 @@ var MuiTextInput = function MuiTextInput(_ref11) {
|
|
|
11403
11189
|
disabled = _ref11.disabled,
|
|
11404
11190
|
success = _ref11.success,
|
|
11405
11191
|
successMsg = _ref11.successMsg,
|
|
11406
|
-
props = _objectWithoutProperties(_ref11, _excluded$
|
|
11192
|
+
props = _objectWithoutProperties(_ref11, _excluded$8);
|
|
11407
11193
|
var theme = useTheme();
|
|
11408
11194
|
var _useState = useState(value ? value.length : 0),
|
|
11409
11195
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -11564,6 +11350,221 @@ Radio.defaultProps = {
|
|
|
11564
11350
|
m: 0
|
|
11565
11351
|
};
|
|
11566
11352
|
|
|
11353
|
+
var _excluded$7 = ["startIcon", "endIcon", "children"];
|
|
11354
|
+
var Tag = function Tag(_ref) {
|
|
11355
|
+
var startIcon = _ref.startIcon,
|
|
11356
|
+
endIcon = _ref.endIcon,
|
|
11357
|
+
children = _ref.children,
|
|
11358
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
11359
|
+
return /*#__PURE__*/jsxs(StyledTag, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
11360
|
+
children: [/*#__PURE__*/React__default.isValidElement(startIcon) && /*#__PURE__*/React__default.cloneElement(startIcon, {
|
|
11361
|
+
mr: "0.5rem"
|
|
11362
|
+
}), children, /*#__PURE__*/React__default.isValidElement(endIcon) && /*#__PURE__*/React__default.cloneElement(endIcon, {
|
|
11363
|
+
ml: "0.5rem"
|
|
11364
|
+
})]
|
|
11365
|
+
}));
|
|
11366
|
+
};
|
|
11367
|
+
Tag.defaultProps = {
|
|
11368
|
+
variant: "primary",
|
|
11369
|
+
outline: false
|
|
11370
|
+
};
|
|
11371
|
+
|
|
11372
|
+
var tagVariant;
|
|
11373
|
+
(function (tagVariant) {
|
|
11374
|
+
tagVariant["PRIMARY"] = "primary";
|
|
11375
|
+
tagVariant["SECONDARY"] = "secondary";
|
|
11376
|
+
tagVariant["SUCCESS"] = "success";
|
|
11377
|
+
tagVariant["TEXTDISABLED"] = "textDisabled";
|
|
11378
|
+
tagVariant["TEXTSUBTLE"] = "textSubtle";
|
|
11379
|
+
tagVariant["BINANCE"] = "binance";
|
|
11380
|
+
tagVariant["FAILURE"] = "failure";
|
|
11381
|
+
tagVariant["CORE"] = "Core";
|
|
11382
|
+
tagVariant["FAAS"] = "FaaS";
|
|
11383
|
+
tagVariant["SAAS"] = "SaaS";
|
|
11384
|
+
tagVariant["LAUNCHPOOL"] = "Launchpool";
|
|
11385
|
+
tagVariant["COMMUNITY"] = "Community";
|
|
11386
|
+
tagVariant["AUTOCOMPOUND"] = "Auto";
|
|
11387
|
+
})(tagVariant || (tagVariant = {}));
|
|
11388
|
+
var variants = {
|
|
11389
|
+
FAAS: "FaaS",
|
|
11390
|
+
SAAS: "SaaS",
|
|
11391
|
+
LAUNCHPOOL: "Launchpool",
|
|
11392
|
+
COMMUNITY: "Community",
|
|
11393
|
+
AUTOCOMPOUND: "Auto"
|
|
11394
|
+
};
|
|
11395
|
+
|
|
11396
|
+
var baseColors = {
|
|
11397
|
+
failure: "#12FFB8",
|
|
11398
|
+
primaryBright: "#12FFB8",
|
|
11399
|
+
primaryDark: "#0098A1",
|
|
11400
|
+
secondary: "#12FFB8",
|
|
11401
|
+
success: "#31D0AA",
|
|
11402
|
+
warning: "# ",
|
|
11403
|
+
// NEW DEFINED
|
|
11404
|
+
primary: "#12FFB8",
|
|
11405
|
+
darkGreen: "#13B7A4",
|
|
11406
|
+
dark: "#16161D",
|
|
11407
|
+
grey: "#373749",
|
|
11408
|
+
lightGrey: "#75787b",
|
|
11409
|
+
blue: "#256AC9",
|
|
11410
|
+
vividBlue: "#00D6FF",
|
|
11411
|
+
white: "#FFFFFF",
|
|
11412
|
+
white3: "rgba(255, 255, 255, 0.03)",
|
|
11413
|
+
white7: "rgba(255, 255, 255, 0.07)",
|
|
11414
|
+
white10: "rgba(255, 255, 255, 0.1)",
|
|
11415
|
+
white20: "rgba(255, 255, 255, 0.2)",
|
|
11416
|
+
white30: "rgba(255, 255, 255, 0.3)",
|
|
11417
|
+
white55: "rgba(255, 255, 255, 0.55)",
|
|
11418
|
+
red: "#F6465D",
|
|
11419
|
+
green: "#0ECB81",
|
|
11420
|
+
error: "#F6465D",
|
|
11421
|
+
disabled: "#2B2B32",
|
|
11422
|
+
lightBlue: "#A9CEF4",
|
|
11423
|
+
darkPurple: "#7763F6"
|
|
11424
|
+
};
|
|
11425
|
+
var brandColors = {
|
|
11426
|
+
binance: "#F0B90B"
|
|
11427
|
+
};
|
|
11428
|
+
var lightColors = _objectSpread2(_objectSpread2(_objectSpread2({}, baseColors), brandColors), {}, {
|
|
11429
|
+
secondaryText: "rgba(255, 255, 255, 0.55)",
|
|
11430
|
+
background: "#FAF9FA",
|
|
11431
|
+
backgroundDisabled: "#E9EAEB",
|
|
11432
|
+
contrast: "#191326",
|
|
11433
|
+
invertedContrast: "#FFFFFF",
|
|
11434
|
+
input: "#eeeaf4",
|
|
11435
|
+
inputSecondary: "#d7caec",
|
|
11436
|
+
tertiary: "#EFF4F5",
|
|
11437
|
+
text: "rgb(22,22,29,1)",
|
|
11438
|
+
textDisabled: "#BDC2C4",
|
|
11439
|
+
textSubtle: "#8f80ba",
|
|
11440
|
+
borderColor: "#E9EAEB",
|
|
11441
|
+
card: "#FFFFFF",
|
|
11442
|
+
infoBox: "rgba(22, 22, 29, 1)",
|
|
11443
|
+
gradients: {
|
|
11444
|
+
bubblegum: "linear-gradient(139.73deg, #E6FDFF 0%, #F3EFFF 100%)"
|
|
11445
|
+
}
|
|
11446
|
+
});
|
|
11447
|
+
var darkColors = _objectSpread2(_objectSpread2(_objectSpread2({}, baseColors), brandColors), {}, {
|
|
11448
|
+
secondary: "rgba(255, 255, 255, 0.3)",
|
|
11449
|
+
secondaryText: "rgba(255, 255, 255, 0.55)",
|
|
11450
|
+
background: "#16161d",
|
|
11451
|
+
backgroundDisabled: "#3c3742",
|
|
11452
|
+
contrast: "#FFFFFF",
|
|
11453
|
+
invertedContrast: "#191326",
|
|
11454
|
+
input: "transparent",
|
|
11455
|
+
inputSecondary: "#666171",
|
|
11456
|
+
primaryDark: "#0098A1",
|
|
11457
|
+
tertiary: "#353547",
|
|
11458
|
+
text: "#FFFFFF",
|
|
11459
|
+
textDisabled: "#666171",
|
|
11460
|
+
textSubtle: "#FAF9FA",
|
|
11461
|
+
borderColor: "#524B63",
|
|
11462
|
+
card: "#191921",
|
|
11463
|
+
infoBox: "rgba(22, 22, 29, 1)",
|
|
11464
|
+
gradients: {
|
|
11465
|
+
bubblegum: "linear-gradient(139.73deg, #313D5C 0%, #3D2A54 100%)"
|
|
11466
|
+
}
|
|
11467
|
+
});
|
|
11468
|
+
|
|
11469
|
+
var StyledCoreTag = styled.div.withConfig({
|
|
11470
|
+
displayName: "CoreTag__StyledCoreTag",
|
|
11471
|
+
componentId: "sc-1bfj6gr-0"
|
|
11472
|
+
})(["width:auto;height:24px;display:inline-flex;justify-content:space-between;align-items:center;background-color:transparent;border:1px solid ", ";border-radius:", ";color:", ";font-size:14px;font-weight:700;line-height:1.5;padding:0 8px;white-space:nowrap;svg{margin-left:", "px;margin-right:", "px;width:16px;height:16px;fill:", ";}"], function (_ref) {
|
|
11473
|
+
var theme = _ref.theme,
|
|
11474
|
+
active = _ref.active,
|
|
11475
|
+
color = _ref.color;
|
|
11476
|
+
return active ? color : theme.colors.grey;
|
|
11477
|
+
}, function (_ref2) {
|
|
11478
|
+
var theme = _ref2.theme;
|
|
11479
|
+
return theme.radii.primary;
|
|
11480
|
+
}, function (_ref3) {
|
|
11481
|
+
var theme = _ref3.theme,
|
|
11482
|
+
active = _ref3.active,
|
|
11483
|
+
color = _ref3.color;
|
|
11484
|
+
return active ? color : theme.colors.grey;
|
|
11485
|
+
}, function (_ref4) {
|
|
11486
|
+
var plainIcon = _ref4.plainIcon;
|
|
11487
|
+
return plainIcon ? 0 : -3;
|
|
11488
|
+
}, function (_ref5) {
|
|
11489
|
+
var plainIcon = _ref5.plainIcon;
|
|
11490
|
+
return plainIcon ? 0 : 5;
|
|
11491
|
+
}, function (_ref6) {
|
|
11492
|
+
var theme = _ref6.theme,
|
|
11493
|
+
active = _ref6.active;
|
|
11494
|
+
return active ? theme.colors.primary : theme.colors.grey;
|
|
11495
|
+
});
|
|
11496
|
+
var StyledText = styled(Text).withConfig({
|
|
11497
|
+
displayName: "CoreTag__StyledText",
|
|
11498
|
+
componentId: "sc-1bfj6gr-1"
|
|
11499
|
+
})(["font-weight:700;color:", ";font-size:14px;line-height:20px;"], function (_ref7) {
|
|
11500
|
+
var theme = _ref7.theme,
|
|
11501
|
+
active = _ref7.active,
|
|
11502
|
+
color = _ref7.color;
|
|
11503
|
+
return active ? color : theme.colors.grey;
|
|
11504
|
+
});
|
|
11505
|
+
var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme) {
|
|
11506
|
+
switch (variant) {
|
|
11507
|
+
case variants.FAAS:
|
|
11508
|
+
case variants.SAAS:
|
|
11509
|
+
case variants.LAUNCHPOOL:
|
|
11510
|
+
return {
|
|
11511
|
+
color: theme.colors.lightBlue,
|
|
11512
|
+
icon: /*#__PURE__*/jsx(Icon$2p, {
|
|
11513
|
+
opac: true,
|
|
11514
|
+
fill: active ? theme.colors.lightBlue : theme.colors.grey
|
|
11515
|
+
})
|
|
11516
|
+
};
|
|
11517
|
+
case variants.COMMUNITY:
|
|
11518
|
+
return {
|
|
11519
|
+
color: brandColors.binance,
|
|
11520
|
+
icon: /*#__PURE__*/jsx(Icon$2p, {
|
|
11521
|
+
opac: true,
|
|
11522
|
+
fill: active ? brandColors.binance : theme.colors.grey
|
|
11523
|
+
})
|
|
11524
|
+
};
|
|
11525
|
+
case variants.AUTOCOMPOUND:
|
|
11526
|
+
return {
|
|
11527
|
+
color: theme.colors.vividBlue,
|
|
11528
|
+
icon: /*#__PURE__*/jsx(Icon$1a, {
|
|
11529
|
+
opac: true,
|
|
11530
|
+
stroke: active ? theme.colors.vividBlue : theme.colors.grey
|
|
11531
|
+
})
|
|
11532
|
+
};
|
|
11533
|
+
default:
|
|
11534
|
+
return {
|
|
11535
|
+
color: theme.colors.primary,
|
|
11536
|
+
icon: /*#__PURE__*/jsx(Icon$2p, {
|
|
11537
|
+
opac: true,
|
|
11538
|
+
fill: active ? theme.colors.primary : theme.colors.grey
|
|
11539
|
+
})
|
|
11540
|
+
};
|
|
11541
|
+
}
|
|
11542
|
+
};
|
|
11543
|
+
var CoreTag = function CoreTag(_ref8) {
|
|
11544
|
+
var _ref8$active = _ref8.active,
|
|
11545
|
+
active = _ref8$active === void 0 ? true : _ref8$active,
|
|
11546
|
+
variant = _ref8.variant,
|
|
11547
|
+
plainIcon = _ref8.plainIcon;
|
|
11548
|
+
var theme = useTheme();
|
|
11549
|
+
var _getTagPropsByVariant = getTagPropsByVariant(variant, active, theme),
|
|
11550
|
+
color = _getTagPropsByVariant.color,
|
|
11551
|
+
icon = _getTagPropsByVariant.icon;
|
|
11552
|
+
return /*#__PURE__*/jsxs(StyledCoreTag, {
|
|
11553
|
+
active: active,
|
|
11554
|
+
color: color,
|
|
11555
|
+
plainIcon: plainIcon,
|
|
11556
|
+
children: [icon, !plainIcon && /*#__PURE__*/jsx(StyledText, {
|
|
11557
|
+
active: active,
|
|
11558
|
+
color: color,
|
|
11559
|
+
children: variant
|
|
11560
|
+
})]
|
|
11561
|
+
});
|
|
11562
|
+
};
|
|
11563
|
+
CoreTag.defaultProps = {
|
|
11564
|
+
variant: "primary",
|
|
11565
|
+
outline: false
|
|
11566
|
+
};
|
|
11567
|
+
|
|
11567
11568
|
var Icon$M = function Icon(props) {
|
|
11568
11569
|
return /*#__PURE__*/jsx(Svg, _objectSpread2(_objectSpread2({
|
|
11569
11570
|
viewBox: "0 0 109 109"
|
|
@@ -12433,8 +12434,8 @@ var dark$4 = {
|
|
|
12433
12434
|
handleBackground: darkColors.card
|
|
12434
12435
|
};
|
|
12435
12436
|
|
|
12436
|
-
var DEFAULT = variants.DEFAULT,
|
|
12437
|
-
PANEL = variants.PANEL;
|
|
12437
|
+
var DEFAULT = variants$1.DEFAULT,
|
|
12438
|
+
PANEL = variants$1.PANEL;
|
|
12438
12439
|
var light$3 = _defineProperty(_defineProperty({}, DEFAULT, {
|
|
12439
12440
|
backgroundHandleActive: lightColors.dark,
|
|
12440
12441
|
backgroundHandleInactive: "rgba(255, 255, 255, 0.2)",
|
|
@@ -16457,7 +16458,7 @@ var TierNumberText = styled(Text).withConfig({
|
|
|
16457
16458
|
var active = _ref5.active;
|
|
16458
16459
|
return active ? "bold" : "normal";
|
|
16459
16460
|
});
|
|
16460
|
-
var TierInfoTag = styled(
|
|
16461
|
+
var TierInfoTag = styled(StyledTag).withConfig({
|
|
16461
16462
|
displayName: "UserTiers__TierInfoTag",
|
|
16462
16463
|
componentId: "sc-ge61bg-5"
|
|
16463
16464
|
})(["font-size:11px;height:max-content;margin-right:5px;"]);
|
|
@@ -17543,10 +17544,14 @@ var Logo$1 = function Logo(_ref4) {
|
|
|
17543
17544
|
// // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17544
17545
|
// }, [allowOpenOnHref, loc.pathname, isMobile])
|
|
17545
17546
|
return /*#__PURE__*/jsx(Flex, {
|
|
17546
|
-
children: isAbsoluteUrl ? /*#__PURE__*/jsx(
|
|
17547
|
-
as: "a",
|
|
17547
|
+
children: isAbsoluteUrl ? /*#__PURE__*/jsx("a", {
|
|
17548
17548
|
href: href,
|
|
17549
17549
|
"aria-label": "Coinswap hame page",
|
|
17550
|
+
style: {
|
|
17551
|
+
display: 'flex',
|
|
17552
|
+
alignItems: 'center',
|
|
17553
|
+
textDecoration: 'none'
|
|
17554
|
+
},
|
|
17550
17555
|
children: innerLogo(isPushed)
|
|
17551
17556
|
}) : /*#__PURE__*/jsx(StyledLink, {
|
|
17552
17557
|
to: href,
|
|
@@ -18484,8 +18489,9 @@ var useDisclaimer = function useDisclaimer(_ref) {
|
|
|
18484
18489
|
translations = _ref.translations,
|
|
18485
18490
|
setIsConnectWalletPanelOpen = _ref.setIsConnectWalletPanelOpen;
|
|
18486
18491
|
var _useWeb3React = useWeb3React(),
|
|
18487
|
-
account = _useWeb3React.account
|
|
18488
|
-
|
|
18492
|
+
account = _useWeb3React.account;
|
|
18493
|
+
// Note: deactivate is not available in newer versions of @web3-react/core
|
|
18494
|
+
var deactivate = function deactivate() {}; // Placeholder - implement disconnect logic if needed
|
|
18489
18495
|
var _useCookies = useCookies(Cookies.Disclaimer),
|
|
18490
18496
|
_useCookies2 = _slicedToArray(_useCookies, 2),
|
|
18491
18497
|
disclaimer = _useCookies2[0],
|
|
@@ -19453,11 +19459,12 @@ var IdoExtensionsModal = function IdoExtensionsModal(_ref7) {
|
|
|
19453
19459
|
chainId: addressData === null || addressData === void 0 ? void 0 : addressData.chainId
|
|
19454
19460
|
};
|
|
19455
19461
|
}
|
|
19462
|
+
var chainIdValue = typeof requiredWallet.requiredValue === 'number' ? requiredWallet.requiredValue : typeof requiredWallet.requiredValue === 'string' ? parseInt(requiredWallet.requiredValue, 10) : undefined;
|
|
19456
19463
|
return {
|
|
19457
19464
|
wallet: myAddresses === null || myAddresses === void 0 || (_myAddresses$find = myAddresses.find(function (el) {
|
|
19458
|
-
return el.chainId ===
|
|
19465
|
+
return el.chainId === chainIdValue;
|
|
19459
19466
|
})) === null || _myAddresses$find === void 0 ? void 0 : _myAddresses$find.wallet,
|
|
19460
|
-
chainId:
|
|
19467
|
+
chainId: chainIdValue
|
|
19461
19468
|
};
|
|
19462
19469
|
}
|
|
19463
19470
|
return {
|
|
@@ -19473,13 +19480,15 @@ var IdoExtensionsModal = function IdoExtensionsModal(_ref7) {
|
|
|
19473
19480
|
walletAddressRequired: requiredWallet
|
|
19474
19481
|
},
|
|
19475
19482
|
validationSchema: Yup.object().shape({
|
|
19476
|
-
email: Yup.string().email("Email address format invaild").when("emailRequired", {
|
|
19477
|
-
|
|
19478
|
-
|
|
19483
|
+
email: Yup.string().email("Email address format invaild").when("emailRequired", function (_ref8, schema) {
|
|
19484
|
+
var _ref9 = _slicedToArray(_ref8, 1),
|
|
19485
|
+
emailRequired = _ref9[0];
|
|
19486
|
+
return emailRequired ? schema.required("Email address is required") : schema;
|
|
19479
19487
|
}),
|
|
19480
|
-
walletAddress: Yup.string().max(walletAddressLenght || 42, "Too Long! Max ".concat(walletAddressLenght || 42, " chars")).matches(/^0x[a-fA-F0-9]{40}$/, "Your wallet address is incorrect").when("walletAddressRequired", {
|
|
19481
|
-
|
|
19482
|
-
|
|
19488
|
+
walletAddress: Yup.string().max(walletAddressLenght || 42, "Too Long! Max ".concat(walletAddressLenght || 42, " chars")).matches(/^0x[a-fA-F0-9]{40}$/, "Your wallet address is incorrect").when("walletAddressRequired", function (_ref0, schema) {
|
|
19489
|
+
var _ref1 = _slicedToArray(_ref0, 1),
|
|
19490
|
+
walletAddressRequired = _ref1[0];
|
|
19491
|
+
return walletAddressRequired ? schema.required("Wallet Address is required") : schema;
|
|
19483
19492
|
})
|
|
19484
19493
|
}),
|
|
19485
19494
|
onSubmit: function onSubmit(values) {
|