@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/index.cjs.js CHANGED
@@ -319,7 +319,8 @@ function _unsupportedIterableToArray(r, a) {
319
319
 
320
320
  var getThemeValue = function getThemeValue(path, fallback) {
321
321
  return function (theme) {
322
- return get(theme, path, fallback);
322
+ var _get;
323
+ return String((_get = get(theme, path, fallback)) !== null && _get !== void 0 ? _get : '');
323
324
  };
324
325
  };
325
326
 
@@ -9193,7 +9194,7 @@ var useVoting = function useVoting() {
9193
9194
  fetchContentfulData().then(function (data) {
9194
9195
  // @ts-ignore
9195
9196
  var vote = data[0].fields.votingEnabled || false;
9196
- setVotEnabled(vote);
9197
+ setVotEnabled(Boolean(vote));
9197
9198
  });
9198
9199
  }, []);
9199
9200
  return {
@@ -9251,8 +9252,8 @@ var useMenuConfig = function useMenuConfig() {
9251
9252
  var farm = data.farmItems.items[0].fields.newFarm || false;
9252
9253
  // @ts-ignore
9253
9254
  var stake = data.stakeItems.items[0].fields.newStake || false;
9254
- setNewFarm(farm);
9255
- setNewStake(stake);
9255
+ setNewFarm(Boolean(farm));
9256
+ setNewStake(Boolean(stake));
9256
9257
  });
9257
9258
  }, []);
9258
9259
  return {
@@ -9302,7 +9303,7 @@ var useNotification = function useNotification() {
9302
9303
  // @ts-ignore
9303
9304
  var notiPath = (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data$.fields.sitePath;
9304
9305
  var updatedAt = moment$1((_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : _data$2.sys.updatedAt).format("LLL");
9305
- setPAth(notiPath);
9306
+ setPAth(String(notiPath || ''));
9306
9307
  setNoteUpdatedAt(updatedAt);
9307
9308
  });
9308
9309
  }, []);
@@ -9654,227 +9655,12 @@ var StyledTag = styled.div.withConfig({
9654
9655
  return getColor(variant, theme);
9655
9656
  }, getThemeTextColor, getThemeTextColor);
9656
9657
 
9657
- var _excluded$l = ["startIcon", "endIcon", "children"];
9658
- var Tag = function Tag(_ref) {
9659
- var startIcon = _ref.startIcon,
9660
- endIcon = _ref.endIcon,
9661
- children = _ref.children,
9662
- props = _objectWithoutProperties(_ref, _excluded$l);
9663
- return /*#__PURE__*/jsxRuntime.jsxs(StyledTag, _objectSpread2(_objectSpread2({}, props), {}, {
9664
- children: [/*#__PURE__*/React.isValidElement(startIcon) && /*#__PURE__*/React.cloneElement(startIcon, {
9665
- mr: "0.5rem"
9666
- }), children, /*#__PURE__*/React.isValidElement(endIcon) && /*#__PURE__*/React.cloneElement(endIcon, {
9667
- ml: "0.5rem"
9668
- })]
9669
- }));
9670
- };
9671
- Tag.defaultProps = {
9672
- variant: "primary",
9673
- outline: false
9674
- };
9675
-
9676
- exports.TagVariant = void 0;
9677
- (function (tagVariant) {
9678
- tagVariant["PRIMARY"] = "primary";
9679
- tagVariant["SECONDARY"] = "secondary";
9680
- tagVariant["SUCCESS"] = "success";
9681
- tagVariant["TEXTDISABLED"] = "textDisabled";
9682
- tagVariant["TEXTSUBTLE"] = "textSubtle";
9683
- tagVariant["BINANCE"] = "binance";
9684
- tagVariant["FAILURE"] = "failure";
9685
- tagVariant["CORE"] = "Core";
9686
- tagVariant["FAAS"] = "FaaS";
9687
- tagVariant["SAAS"] = "SaaS";
9688
- tagVariant["LAUNCHPOOL"] = "Launchpool";
9689
- tagVariant["COMMUNITY"] = "Community";
9690
- tagVariant["AUTOCOMPOUND"] = "Auto";
9691
- })(exports.TagVariant || (exports.TagVariant = {}));
9692
- var variants$1 = {
9693
- FAAS: "FaaS",
9694
- SAAS: "SaaS",
9695
- LAUNCHPOOL: "Launchpool",
9696
- COMMUNITY: "Community",
9697
- AUTOCOMPOUND: "Auto"
9698
- };
9699
-
9700
- var baseColors = {
9701
- failure: "#12FFB8",
9702
- primaryBright: "#12FFB8",
9703
- primaryDark: "#0098A1",
9704
- secondary: "#12FFB8",
9705
- success: "#31D0AA",
9706
- warning: "# ",
9707
- // NEW DEFINED
9708
- primary: "#12FFB8",
9709
- darkGreen: "#13B7A4",
9710
- dark: "#16161D",
9711
- grey: "#373749",
9712
- lightGrey: "#75787b",
9713
- blue: "#256AC9",
9714
- vividBlue: "#00D6FF",
9715
- white: "#FFFFFF",
9716
- white3: "rgba(255, 255, 255, 0.03)",
9717
- white7: "rgba(255, 255, 255, 0.07)",
9718
- white10: "rgba(255, 255, 255, 0.1)",
9719
- white20: "rgba(255, 255, 255, 0.2)",
9720
- white30: "rgba(255, 255, 255, 0.3)",
9721
- white55: "rgba(255, 255, 255, 0.55)",
9722
- red: "#F6465D",
9723
- green: "#0ECB81",
9724
- error: "#F6465D",
9725
- disabled: "#2B2B32",
9726
- lightBlue: "#A9CEF4",
9727
- darkPurple: "#7763F6"
9728
- };
9729
- var brandColors = {
9730
- binance: "#F0B90B"
9731
- };
9732
- var lightColors = _objectSpread2(_objectSpread2(_objectSpread2({}, baseColors), brandColors), {}, {
9733
- secondaryText: "rgba(255, 255, 255, 0.55)",
9734
- background: "#FAF9FA",
9735
- backgroundDisabled: "#E9EAEB",
9736
- contrast: "#191326",
9737
- invertedContrast: "#FFFFFF",
9738
- input: "#eeeaf4",
9739
- inputSecondary: "#d7caec",
9740
- tertiary: "#EFF4F5",
9741
- text: "rgb(22,22,29,1)",
9742
- textDisabled: "#BDC2C4",
9743
- textSubtle: "#8f80ba",
9744
- borderColor: "#E9EAEB",
9745
- card: "#FFFFFF",
9746
- infoBox: "rgba(22, 22, 29, 1)",
9747
- gradients: {
9748
- bubblegum: "linear-gradient(139.73deg, #E6FDFF 0%, #F3EFFF 100%)"
9749
- }
9750
- });
9751
- var darkColors = _objectSpread2(_objectSpread2(_objectSpread2({}, baseColors), brandColors), {}, {
9752
- secondary: "rgba(255, 255, 255, 0.3)",
9753
- secondaryText: "rgba(255, 255, 255, 0.55)",
9754
- background: "#16161d",
9755
- backgroundDisabled: "#3c3742",
9756
- contrast: "#FFFFFF",
9757
- invertedContrast: "#191326",
9758
- input: "transparent",
9759
- inputSecondary: "#666171",
9760
- primaryDark: "#0098A1",
9761
- tertiary: "#353547",
9762
- text: "#FFFFFF",
9763
- textDisabled: "#666171",
9764
- textSubtle: "#FAF9FA",
9765
- borderColor: "#524B63",
9766
- card: "#191921",
9767
- infoBox: "rgba(22, 22, 29, 1)",
9768
- gradients: {
9769
- bubblegum: "linear-gradient(139.73deg, #313D5C 0%, #3D2A54 100%)"
9770
- }
9771
- });
9772
-
9773
- var StyledCoreTag = styled.div.withConfig({
9774
- displayName: "CoreTag__StyledCoreTag",
9775
- componentId: "sc-1bfj6gr-0"
9776
- })(["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) {
9777
- var theme = _ref.theme,
9778
- active = _ref.active,
9779
- color = _ref.color;
9780
- return active ? color : theme.colors.grey;
9781
- }, function (_ref2) {
9782
- var theme = _ref2.theme;
9783
- return theme.radii.primary;
9784
- }, function (_ref3) {
9785
- var theme = _ref3.theme,
9786
- active = _ref3.active,
9787
- color = _ref3.color;
9788
- return active ? color : theme.colors.grey;
9789
- }, function (_ref4) {
9790
- var plainIcon = _ref4.plainIcon;
9791
- return plainIcon ? 0 : -3;
9792
- }, function (_ref5) {
9793
- var plainIcon = _ref5.plainIcon;
9794
- return plainIcon ? 0 : 5;
9795
- }, function (_ref6) {
9796
- var theme = _ref6.theme,
9797
- active = _ref6.active;
9798
- return active ? theme.colors.primary : theme.colors.grey;
9799
- });
9800
- var StyledText = styled(Text).withConfig({
9801
- displayName: "CoreTag__StyledText",
9802
- componentId: "sc-1bfj6gr-1"
9803
- })(["font-weight:700;color:", ";font-size:14px;line-height:20px;"], function (_ref7) {
9804
- var theme = _ref7.theme,
9805
- active = _ref7.active,
9806
- color = _ref7.color;
9807
- return active ? color : theme.colors.grey;
9808
- });
9809
- var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme) {
9810
- switch (variant) {
9811
- case variants$1.FAAS:
9812
- case variants$1.SAAS:
9813
- case variants$1.LAUNCHPOOL:
9814
- return {
9815
- color: theme.colors.lightBlue,
9816
- icon: /*#__PURE__*/jsxRuntime.jsx(Icon$2p, {
9817
- opac: true,
9818
- fill: active ? theme.colors.lightBlue : theme.colors.grey
9819
- })
9820
- };
9821
- case variants$1.COMMUNITY:
9822
- return {
9823
- color: brandColors.binance,
9824
- icon: /*#__PURE__*/jsxRuntime.jsx(Icon$2p, {
9825
- opac: true,
9826
- fill: active ? brandColors.binance : theme.colors.grey
9827
- })
9828
- };
9829
- case variants$1.AUTOCOMPOUND:
9830
- return {
9831
- color: theme.colors.vividBlue,
9832
- icon: /*#__PURE__*/jsxRuntime.jsx(Icon$1a, {
9833
- opac: true,
9834
- stroke: active ? theme.colors.vividBlue : theme.colors.grey
9835
- })
9836
- };
9837
- default:
9838
- return {
9839
- color: theme.colors.primary,
9840
- icon: /*#__PURE__*/jsxRuntime.jsx(Icon$2p, {
9841
- opac: true,
9842
- fill: active ? theme.colors.primary : theme.colors.grey
9843
- })
9844
- };
9845
- }
9846
- };
9847
- var CoreTag = function CoreTag(_ref8) {
9848
- var _ref8$active = _ref8.active,
9849
- active = _ref8$active === void 0 ? true : _ref8$active,
9850
- variant = _ref8.variant,
9851
- plainIcon = _ref8.plainIcon;
9852
- var theme = styled.useTheme();
9853
- var _getTagPropsByVariant = getTagPropsByVariant(variant, active, theme),
9854
- color = _getTagPropsByVariant.color,
9855
- icon = _getTagPropsByVariant.icon;
9856
- return /*#__PURE__*/jsxRuntime.jsxs(StyledCoreTag, {
9857
- active: active,
9858
- color: color,
9859
- plainIcon: plainIcon,
9860
- children: [icon, !plainIcon && /*#__PURE__*/jsxRuntime.jsx(StyledText, {
9861
- active: active,
9862
- color: color,
9863
- children: variant
9864
- })]
9865
- });
9866
- };
9867
- CoreTag.defaultProps = {
9868
- variant: "primary",
9869
- outline: false
9870
- };
9871
-
9872
- var _excluded$k = ["isActive", "size", "variant", "as", "children", "tag", "hide"];
9658
+ var _excluded$l = ["isActive", "size", "variant", "as", "children", "tag", "hide"];
9873
9659
  var ButtonBody = styled.div.withConfig({
9874
9660
  displayName: "ButtonMenuItem__ButtonBody",
9875
9661
  componentId: "sc-1bbtdtk-0"
9876
9662
  })(["display:inline-flex;align-items:center;"]);
9877
- var ButtonTag = styled(Tag).withConfig({
9663
+ var ButtonTag = styled(StyledTag).withConfig({
9878
9664
  displayName: "ButtonMenuItem__ButtonTag",
9879
9665
  componentId: "sc-1bbtdtk-1"
9880
9666
  })(["margin-left:7px;font-weight:bold;font-size:11px;padding:1px 5px;height:unset;border-width:1px;"]);
@@ -9893,7 +9679,7 @@ var ButtonMenuItem = function ButtonMenuItem(_ref) {
9893
9679
  children = _ref.children,
9894
9680
  tag = _ref.tag,
9895
9681
  hide = _ref.hide,
9896
- props = _objectWithoutProperties(_ref, _excluded$k);
9682
+ props = _objectWithoutProperties(_ref, _excluded$l);
9897
9683
  if (!isActive) {
9898
9684
  return /*#__PURE__*/jsxRuntime.jsx(InactiveButton$1, _objectSpread2(_objectSpread2({
9899
9685
  forwardedAs: as,
@@ -10000,7 +9786,7 @@ StyledButtonActivity.defaultProps = {
10000
9786
  type: "button"
10001
9787
  };
10002
9788
 
10003
- var _excluded$j = ["startIcon", "style", "endIcon", "children", "external", "isLoading", "disabled"];
9789
+ var _excluded$k = ["startIcon", "style", "endIcon", "children", "external", "isLoading", "disabled"];
10004
9790
  var ButtonActivity = function ButtonActivity(_ref) {
10005
9791
  var startIcon = _ref.startIcon,
10006
9792
  style = _ref.style,
@@ -10009,7 +9795,7 @@ var ButtonActivity = function ButtonActivity(_ref) {
10009
9795
  external = _ref.external,
10010
9796
  isLoading = _ref.isLoading,
10011
9797
  disabled = _ref.disabled,
10012
- props = _objectWithoutProperties(_ref, _excluded$j);
9798
+ props = _objectWithoutProperties(_ref, _excluded$k);
10013
9799
  var internalProps = external ? getExternalLinkProps() : {};
10014
9800
  var isDisabled = isLoading || disabled;
10015
9801
  return /*#__PURE__*/jsxRuntime.jsxs(StyledButtonActivity, _objectSpread2(_objectSpread2(_objectSpread2({}, internalProps), props), {}, {
@@ -10031,7 +9817,7 @@ ButtonActivity.defaultProps = {
10031
9817
  disabled: false
10032
9818
  };
10033
9819
 
10034
- var _excluded$i = ["isActive", "size", "variant", "as"];
9820
+ var _excluded$j = ["isActive", "size", "variant", "as"];
10035
9821
  var InactiveButton = styled(ButtonActivity).withConfig({
10036
9822
  displayName: "ButtonActivityMenuItem__InactiveButton",
10037
9823
  componentId: "sc-kqgtlg-0"
@@ -10044,7 +9830,7 @@ var ButtonActivityMenuItem = function ButtonActivityMenuItem(_ref) {
10044
9830
  _ref$variant = _ref.variant,
10045
9831
  variant = _ref$variant === void 0 ? variants$2.PRIMARY : _ref$variant,
10046
9832
  as = _ref.as,
10047
- props = _objectWithoutProperties(_ref, _excluded$i);
9833
+ props = _objectWithoutProperties(_ref, _excluded$j);
10048
9834
  if (!isActive) {
10049
9835
  return /*#__PURE__*/jsxRuntime.jsx(InactiveButton, _objectSpread2({
10050
9836
  forwardedAs: as,
@@ -10107,14 +9893,14 @@ StyledButtonSwitch.defaultProps = {
10107
9893
  type: "button"
10108
9894
  };
10109
9895
 
10110
- var _excluded$h = ["style", "children", "isLoading", "disabled", "active"];
9896
+ var _excluded$i = ["style", "children", "isLoading", "disabled", "active"];
10111
9897
  var ButtonSwitch = function ButtonSwitch(_ref) {
10112
9898
  var style = _ref.style,
10113
9899
  children = _ref.children,
10114
9900
  isLoading = _ref.isLoading,
10115
9901
  disabled = _ref.disabled,
10116
9902
  active = _ref.active,
10117
- props = _objectWithoutProperties(_ref, _excluded$h);
9903
+ props = _objectWithoutProperties(_ref, _excluded$i);
10118
9904
  var isDisabled = isLoading || disabled;
10119
9905
  return /*#__PURE__*/jsxRuntime.jsx(StyledButtonSwitch, _objectSpread2(_objectSpread2({}, props), {}, {
10120
9906
  active: active,
@@ -10130,7 +9916,7 @@ var StyledButtonSwitchMenu = styled.div.withConfig({
10130
9916
  componentId: "sc-1qzp9bs-0"
10131
9917
  })(["background:transparent;box-sizing:border-box;display:inline-flex;flex-direction:row;justify-content:center;align-items:center;"]);
10132
9918
 
10133
- var variants = {
9919
+ var variants$1 = {
10134
9920
  DEFAULT: "default",
10135
9921
  PANEL: "panel"
10136
9922
  };
@@ -10139,7 +9925,7 @@ var getToggleVariantProp = function getToggleVariantProp(prop) {
10139
9925
  return function (_ref) {
10140
9926
  var theme = _ref.theme,
10141
9927
  _ref$variant = _ref.variant,
10142
- variant = _ref$variant === void 0 ? variants.DEFAULT : _ref$variant;
9928
+ variant = _ref$variant === void 0 ? variants$1.DEFAULT : _ref$variant;
10143
9929
  return theme.toggle[variant][prop];
10144
9930
  };
10145
9931
  };
@@ -10162,11 +9948,11 @@ var StyledToggle = styled.div.withConfig({
10162
9948
  return checked ? getToggleVariantProp("backgroundToggleActive") : getToggleVariantProp("backgroundToggleInactive");
10163
9949
  }, getToggleVariantProp("borderColor"));
10164
9950
 
10165
- var _excluded$g = ["checked", "variant"];
9951
+ var _excluded$h = ["checked", "variant"];
10166
9952
  var Toggle$1 = function Toggle(_ref) {
10167
9953
  var checked = _ref.checked,
10168
9954
  variant = _ref.variant,
10169
- props = _objectWithoutProperties(_ref, _excluded$g);
9955
+ props = _objectWithoutProperties(_ref, _excluded$h);
10170
9956
  var isChecked = !!checked;
10171
9957
  var disabled = props.disabled,
10172
9958
  onChange = props.onChange;
@@ -10186,14 +9972,14 @@ var Toggle$1 = function Toggle(_ref) {
10186
9972
  }));
10187
9973
  };
10188
9974
  Toggle$1.defaultProps = {
10189
- variant: variants.PANEL
9975
+ variant: variants$1.PANEL
10190
9976
  };
10191
9977
 
10192
- var _excluded$f = ["onClick", "active"];
9978
+ var _excluded$g = ["onClick", "active"];
10193
9979
  var ButtonSwitchMenuItem = function ButtonSwitchMenuItem(_ref) {
10194
9980
  var _onClick = _ref.onClick,
10195
9981
  active = _ref.active,
10196
- props = _objectWithoutProperties(_ref, _excluded$f);
9982
+ props = _objectWithoutProperties(_ref, _excluded$g);
10197
9983
  return /*#__PURE__*/jsxRuntime.jsx(ButtonSwitch, _objectSpread2({
10198
9984
  onClick: function onClick() {
10199
9985
  return _onClick;
@@ -10278,11 +10064,11 @@ StyledCard.defaultProps = {
10278
10064
  isDisabled: false
10279
10065
  };
10280
10066
 
10281
- var _excluded$e = ["ribbon", "children"];
10067
+ var _excluded$f = ["ribbon", "children"];
10282
10068
  var Card = function Card(_ref) {
10283
10069
  var ribbon = _ref.ribbon,
10284
10070
  children = _ref.children,
10285
- props = _objectWithoutProperties(_ref, _excluded$e);
10071
+ props = _objectWithoutProperties(_ref, _excluded$f);
10286
10072
  return /*#__PURE__*/jsxRuntime.jsxs(StyledCard, _objectSpread2(_objectSpread2({}, props), {}, {
10287
10073
  children: [ribbon, children]
10288
10074
  }));
@@ -10435,7 +10221,7 @@ Dropdown.defaultProps = {
10435
10221
  position: "bottom"
10436
10222
  };
10437
10223
 
10438
- var _excluded$d = ["tokenName", "amount", "tokenIcon", "actions"];
10224
+ var _excluded$e = ["tokenName", "amount", "tokenIcon", "actions"];
10439
10225
  var StyledHeading = styled.div.withConfig({
10440
10226
  displayName: "EarnedToken__StyledHeading",
10441
10227
  componentId: "sc-1kzbws6-0"
@@ -10499,7 +10285,7 @@ var EarnedToken = function EarnedToken(_ref10) {
10499
10285
  amount = _ref10.amount,
10500
10286
  tokenIcon = _ref10.tokenIcon,
10501
10287
  actions = _ref10.actions,
10502
- props = _objectWithoutProperties(_ref10, _excluded$d);
10288
+ props = _objectWithoutProperties(_ref10, _excluded$e);
10503
10289
  var _useMatchBreakpoints = useMatchBreakpoints(),
10504
10290
  isSm = _useMatchBreakpoints.isSm;
10505
10291
  var _useState = React.useState(false),
@@ -10570,10 +10356,10 @@ var StyledEarnedWrapper = styled.div.withConfig({
10570
10356
  return theme.colors.white;
10571
10357
  });
10572
10358
 
10573
- var _excluded$c = ["children"];
10359
+ var _excluded$d = ["children"];
10574
10360
  var EarnedWrapper = function EarnedWrapper(_ref) {
10575
10361
  var children = _ref.children,
10576
- props = _objectWithoutProperties(_ref, _excluded$c);
10362
+ props = _objectWithoutProperties(_ref, _excluded$d);
10577
10363
  return /*#__PURE__*/jsxRuntime.jsx(StyledEarnedWrapper, _objectSpread2(_objectSpread2({}, props), {}, {
10578
10364
  children: children
10579
10365
  }));
@@ -10731,10 +10517,10 @@ var StyledEarnedCarouselWrapper = styled.div.withConfig({
10731
10517
  return theme.mediaQueries.md;
10732
10518
  });
10733
10519
 
10734
- var _excluded$b = ["children"];
10520
+ var _excluded$c = ["children"];
10735
10521
  var EarnedCarouselWrapper = function EarnedCarouselWrapper(_ref) {
10736
10522
  var children = _ref.children,
10737
- props = _objectWithoutProperties(_ref, _excluded$b);
10523
+ props = _objectWithoutProperties(_ref, _excluded$c);
10738
10524
  return /*#__PURE__*/jsxRuntime.jsx(StyledEarnedCarouselWrapper, _objectSpread2(_objectSpread2({}, props), {}, {
10739
10525
  children: children
10740
10526
  }));
@@ -10916,10 +10702,10 @@ var EarnedCarouselWrapperBody = function EarnedCarouselWrapperBody(_ref9) {
10916
10702
  });
10917
10703
  };
10918
10704
 
10919
- var _excluded$a = ["src"];
10705
+ var _excluded$b = ["src"];
10920
10706
  var BackgroundImage = function BackgroundImage(_ref) {
10921
10707
  var src = _ref.src,
10922
- otherProps = _objectWithoutProperties(_ref, _excluded$a);
10708
+ otherProps = _objectWithoutProperties(_ref, _excluded$b);
10923
10709
  var imgRef = React.useRef(null);
10924
10710
  React.useEffect(function () {
10925
10711
  var img = imgRef.current;
@@ -10969,10 +10755,10 @@ StyledInfoBox.defaultProps = {
10969
10755
  isWarning: false
10970
10756
  };
10971
10757
 
10972
- var _excluded$9 = ["children"];
10758
+ var _excluded$a = ["children"];
10973
10759
  var InfoBox$1 = function InfoBox(_ref) {
10974
10760
  var children = _ref.children,
10975
- props = _objectWithoutProperties(_ref, _excluded$9);
10761
+ props = _objectWithoutProperties(_ref, _excluded$a);
10976
10762
  return /*#__PURE__*/jsxRuntime.jsx(StyledInfoBox, _objectSpread2(_objectSpread2({}, props), {}, {
10977
10763
  children: children
10978
10764
  }));
@@ -11064,7 +10850,7 @@ Input.defaultProps = {
11064
10850
  isWarning: false
11065
10851
  };
11066
10852
 
11067
- var _excluded$8 = ["children"],
10853
+ var _excluded$9 = ["children"],
11068
10854
  _excluded2 = ["children"],
11069
10855
  _excluded3 = ["children"];
11070
10856
  var InputLabelBox = styled.div.withConfig({
@@ -11114,7 +10900,7 @@ var StyledSuccessMessage = styled(Text).withConfig({
11114
10900
  });
11115
10901
  var InputTopDesc = function InputTopDesc(_ref5) {
11116
10902
  var children = _ref5.children,
11117
- props = _objectWithoutProperties(_ref5, _excluded$8);
10903
+ props = _objectWithoutProperties(_ref5, _excluded$9);
11118
10904
  return /*#__PURE__*/jsxRuntime.jsx(StyledInputDesc, _objectSpread2(_objectSpread2({}, props), {}, {
11119
10905
  children: children
11120
10906
  }));
@@ -11297,7 +11083,7 @@ var MuiFileInput = function MuiFileInput(_ref3) {
11297
11083
  _ref3$disabled = _ref3.disabled,
11298
11084
  disabled = _ref3$disabled === void 0 ? false : _ref3$disabled;
11299
11085
  var _useDropzone = reactDropzone.useDropzone({
11300
- accept: acceptExtesnions,
11086
+ accept: acceptExtesnions ? _defineProperty({}, acceptExtesnions, []) : undefined,
11301
11087
  maxFiles: 1,
11302
11088
  onDrop: function onDrop(acceptedFiles) {
11303
11089
  onFileSelect(acceptedFiles);
@@ -11351,7 +11137,7 @@ var MuiFileInput = function MuiFileInput(_ref3) {
11351
11137
  });
11352
11138
  };
11353
11139
 
11354
- var _excluded$7 = ["name", "label", "placeholderLabel", "placeholder", "topDesc", "bottomDesc", "optional", "value", "onChange", "onBlur", "error", "textarea", "maxLength", "disabled", "success", "successMsg"];
11140
+ var _excluded$8 = ["name", "label", "placeholderLabel", "placeholder", "topDesc", "bottomDesc", "optional", "value", "onChange", "onBlur", "error", "textarea", "maxLength", "disabled", "success", "successMsg"];
11355
11141
  var TextAreaWrapper = styled.div.withConfig({
11356
11142
  displayName: "MuiTextInput__TextAreaWrapper",
11357
11143
  componentId: "sc-1pp44v8-0"
@@ -11425,7 +11211,7 @@ var MuiTextInput = function MuiTextInput(_ref11) {
11425
11211
  disabled = _ref11.disabled,
11426
11212
  success = _ref11.success,
11427
11213
  successMsg = _ref11.successMsg,
11428
- props = _objectWithoutProperties(_ref11, _excluded$7);
11214
+ props = _objectWithoutProperties(_ref11, _excluded$8);
11429
11215
  var theme = styled.useTheme();
11430
11216
  var _useState = React.useState(value ? value.length : 0),
11431
11217
  _useState2 = _slicedToArray(_useState, 2),
@@ -11586,6 +11372,221 @@ Radio.defaultProps = {
11586
11372
  m: 0
11587
11373
  };
11588
11374
 
11375
+ var _excluded$7 = ["startIcon", "endIcon", "children"];
11376
+ var Tag = function Tag(_ref) {
11377
+ var startIcon = _ref.startIcon,
11378
+ endIcon = _ref.endIcon,
11379
+ children = _ref.children,
11380
+ props = _objectWithoutProperties(_ref, _excluded$7);
11381
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledTag, _objectSpread2(_objectSpread2({}, props), {}, {
11382
+ children: [/*#__PURE__*/React.isValidElement(startIcon) && /*#__PURE__*/React.cloneElement(startIcon, {
11383
+ mr: "0.5rem"
11384
+ }), children, /*#__PURE__*/React.isValidElement(endIcon) && /*#__PURE__*/React.cloneElement(endIcon, {
11385
+ ml: "0.5rem"
11386
+ })]
11387
+ }));
11388
+ };
11389
+ Tag.defaultProps = {
11390
+ variant: "primary",
11391
+ outline: false
11392
+ };
11393
+
11394
+ exports.TagVariant = void 0;
11395
+ (function (tagVariant) {
11396
+ tagVariant["PRIMARY"] = "primary";
11397
+ tagVariant["SECONDARY"] = "secondary";
11398
+ tagVariant["SUCCESS"] = "success";
11399
+ tagVariant["TEXTDISABLED"] = "textDisabled";
11400
+ tagVariant["TEXTSUBTLE"] = "textSubtle";
11401
+ tagVariant["BINANCE"] = "binance";
11402
+ tagVariant["FAILURE"] = "failure";
11403
+ tagVariant["CORE"] = "Core";
11404
+ tagVariant["FAAS"] = "FaaS";
11405
+ tagVariant["SAAS"] = "SaaS";
11406
+ tagVariant["LAUNCHPOOL"] = "Launchpool";
11407
+ tagVariant["COMMUNITY"] = "Community";
11408
+ tagVariant["AUTOCOMPOUND"] = "Auto";
11409
+ })(exports.TagVariant || (exports.TagVariant = {}));
11410
+ var variants = {
11411
+ FAAS: "FaaS",
11412
+ SAAS: "SaaS",
11413
+ LAUNCHPOOL: "Launchpool",
11414
+ COMMUNITY: "Community",
11415
+ AUTOCOMPOUND: "Auto"
11416
+ };
11417
+
11418
+ var baseColors = {
11419
+ failure: "#12FFB8",
11420
+ primaryBright: "#12FFB8",
11421
+ primaryDark: "#0098A1",
11422
+ secondary: "#12FFB8",
11423
+ success: "#31D0AA",
11424
+ warning: "# ",
11425
+ // NEW DEFINED
11426
+ primary: "#12FFB8",
11427
+ darkGreen: "#13B7A4",
11428
+ dark: "#16161D",
11429
+ grey: "#373749",
11430
+ lightGrey: "#75787b",
11431
+ blue: "#256AC9",
11432
+ vividBlue: "#00D6FF",
11433
+ white: "#FFFFFF",
11434
+ white3: "rgba(255, 255, 255, 0.03)",
11435
+ white7: "rgba(255, 255, 255, 0.07)",
11436
+ white10: "rgba(255, 255, 255, 0.1)",
11437
+ white20: "rgba(255, 255, 255, 0.2)",
11438
+ white30: "rgba(255, 255, 255, 0.3)",
11439
+ white55: "rgba(255, 255, 255, 0.55)",
11440
+ red: "#F6465D",
11441
+ green: "#0ECB81",
11442
+ error: "#F6465D",
11443
+ disabled: "#2B2B32",
11444
+ lightBlue: "#A9CEF4",
11445
+ darkPurple: "#7763F6"
11446
+ };
11447
+ var brandColors = {
11448
+ binance: "#F0B90B"
11449
+ };
11450
+ var lightColors = _objectSpread2(_objectSpread2(_objectSpread2({}, baseColors), brandColors), {}, {
11451
+ secondaryText: "rgba(255, 255, 255, 0.55)",
11452
+ background: "#FAF9FA",
11453
+ backgroundDisabled: "#E9EAEB",
11454
+ contrast: "#191326",
11455
+ invertedContrast: "#FFFFFF",
11456
+ input: "#eeeaf4",
11457
+ inputSecondary: "#d7caec",
11458
+ tertiary: "#EFF4F5",
11459
+ text: "rgb(22,22,29,1)",
11460
+ textDisabled: "#BDC2C4",
11461
+ textSubtle: "#8f80ba",
11462
+ borderColor: "#E9EAEB",
11463
+ card: "#FFFFFF",
11464
+ infoBox: "rgba(22, 22, 29, 1)",
11465
+ gradients: {
11466
+ bubblegum: "linear-gradient(139.73deg, #E6FDFF 0%, #F3EFFF 100%)"
11467
+ }
11468
+ });
11469
+ var darkColors = _objectSpread2(_objectSpread2(_objectSpread2({}, baseColors), brandColors), {}, {
11470
+ secondary: "rgba(255, 255, 255, 0.3)",
11471
+ secondaryText: "rgba(255, 255, 255, 0.55)",
11472
+ background: "#16161d",
11473
+ backgroundDisabled: "#3c3742",
11474
+ contrast: "#FFFFFF",
11475
+ invertedContrast: "#191326",
11476
+ input: "transparent",
11477
+ inputSecondary: "#666171",
11478
+ primaryDark: "#0098A1",
11479
+ tertiary: "#353547",
11480
+ text: "#FFFFFF",
11481
+ textDisabled: "#666171",
11482
+ textSubtle: "#FAF9FA",
11483
+ borderColor: "#524B63",
11484
+ card: "#191921",
11485
+ infoBox: "rgba(22, 22, 29, 1)",
11486
+ gradients: {
11487
+ bubblegum: "linear-gradient(139.73deg, #313D5C 0%, #3D2A54 100%)"
11488
+ }
11489
+ });
11490
+
11491
+ var StyledCoreTag = styled.div.withConfig({
11492
+ displayName: "CoreTag__StyledCoreTag",
11493
+ componentId: "sc-1bfj6gr-0"
11494
+ })(["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) {
11495
+ var theme = _ref.theme,
11496
+ active = _ref.active,
11497
+ color = _ref.color;
11498
+ return active ? color : theme.colors.grey;
11499
+ }, function (_ref2) {
11500
+ var theme = _ref2.theme;
11501
+ return theme.radii.primary;
11502
+ }, function (_ref3) {
11503
+ var theme = _ref3.theme,
11504
+ active = _ref3.active,
11505
+ color = _ref3.color;
11506
+ return active ? color : theme.colors.grey;
11507
+ }, function (_ref4) {
11508
+ var plainIcon = _ref4.plainIcon;
11509
+ return plainIcon ? 0 : -3;
11510
+ }, function (_ref5) {
11511
+ var plainIcon = _ref5.plainIcon;
11512
+ return plainIcon ? 0 : 5;
11513
+ }, function (_ref6) {
11514
+ var theme = _ref6.theme,
11515
+ active = _ref6.active;
11516
+ return active ? theme.colors.primary : theme.colors.grey;
11517
+ });
11518
+ var StyledText = styled(Text).withConfig({
11519
+ displayName: "CoreTag__StyledText",
11520
+ componentId: "sc-1bfj6gr-1"
11521
+ })(["font-weight:700;color:", ";font-size:14px;line-height:20px;"], function (_ref7) {
11522
+ var theme = _ref7.theme,
11523
+ active = _ref7.active,
11524
+ color = _ref7.color;
11525
+ return active ? color : theme.colors.grey;
11526
+ });
11527
+ var getTagPropsByVariant = function getTagPropsByVariant(variant, active, theme) {
11528
+ switch (variant) {
11529
+ case variants.FAAS:
11530
+ case variants.SAAS:
11531
+ case variants.LAUNCHPOOL:
11532
+ return {
11533
+ color: theme.colors.lightBlue,
11534
+ icon: /*#__PURE__*/jsxRuntime.jsx(Icon$2p, {
11535
+ opac: true,
11536
+ fill: active ? theme.colors.lightBlue : theme.colors.grey
11537
+ })
11538
+ };
11539
+ case variants.COMMUNITY:
11540
+ return {
11541
+ color: brandColors.binance,
11542
+ icon: /*#__PURE__*/jsxRuntime.jsx(Icon$2p, {
11543
+ opac: true,
11544
+ fill: active ? brandColors.binance : theme.colors.grey
11545
+ })
11546
+ };
11547
+ case variants.AUTOCOMPOUND:
11548
+ return {
11549
+ color: theme.colors.vividBlue,
11550
+ icon: /*#__PURE__*/jsxRuntime.jsx(Icon$1a, {
11551
+ opac: true,
11552
+ stroke: active ? theme.colors.vividBlue : theme.colors.grey
11553
+ })
11554
+ };
11555
+ default:
11556
+ return {
11557
+ color: theme.colors.primary,
11558
+ icon: /*#__PURE__*/jsxRuntime.jsx(Icon$2p, {
11559
+ opac: true,
11560
+ fill: active ? theme.colors.primary : theme.colors.grey
11561
+ })
11562
+ };
11563
+ }
11564
+ };
11565
+ var CoreTag = function CoreTag(_ref8) {
11566
+ var _ref8$active = _ref8.active,
11567
+ active = _ref8$active === void 0 ? true : _ref8$active,
11568
+ variant = _ref8.variant,
11569
+ plainIcon = _ref8.plainIcon;
11570
+ var theme = styled.useTheme();
11571
+ var _getTagPropsByVariant = getTagPropsByVariant(variant, active, theme),
11572
+ color = _getTagPropsByVariant.color,
11573
+ icon = _getTagPropsByVariant.icon;
11574
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledCoreTag, {
11575
+ active: active,
11576
+ color: color,
11577
+ plainIcon: plainIcon,
11578
+ children: [icon, !plainIcon && /*#__PURE__*/jsxRuntime.jsx(StyledText, {
11579
+ active: active,
11580
+ color: color,
11581
+ children: variant
11582
+ })]
11583
+ });
11584
+ };
11585
+ CoreTag.defaultProps = {
11586
+ variant: "primary",
11587
+ outline: false
11588
+ };
11589
+
11589
11590
  var Icon$M = function Icon(props) {
11590
11591
  return /*#__PURE__*/jsxRuntime.jsx(Svg, _objectSpread2(_objectSpread2({
11591
11592
  viewBox: "0 0 109 109"
@@ -12455,8 +12456,8 @@ var dark$4 = {
12455
12456
  handleBackground: darkColors.card
12456
12457
  };
12457
12458
 
12458
- var DEFAULT = variants.DEFAULT,
12459
- PANEL = variants.PANEL;
12459
+ var DEFAULT = variants$1.DEFAULT,
12460
+ PANEL = variants$1.PANEL;
12460
12461
  var light$3 = _defineProperty(_defineProperty({}, DEFAULT, {
12461
12462
  backgroundHandleActive: lightColors.dark,
12462
12463
  backgroundHandleInactive: "rgba(255, 255, 255, 0.2)",
@@ -16479,7 +16480,7 @@ var TierNumberText = styled(Text).withConfig({
16479
16480
  var active = _ref5.active;
16480
16481
  return active ? "bold" : "normal";
16481
16482
  });
16482
- var TierInfoTag = styled(Tag).withConfig({
16483
+ var TierInfoTag = styled(StyledTag).withConfig({
16483
16484
  displayName: "UserTiers__TierInfoTag",
16484
16485
  componentId: "sc-ge61bg-5"
16485
16486
  })(["font-size:11px;height:max-content;margin-right:5px;"]);
@@ -17565,10 +17566,14 @@ var Logo = function Logo(_ref4) {
17565
17566
  // // eslint-disable-next-line react-hooks/exhaustive-deps
17566
17567
  // }, [allowOpenOnHref, loc.pathname, isMobile])
17567
17568
  return /*#__PURE__*/jsxRuntime.jsx(Flex, {
17568
- children: isAbsoluteUrl ? /*#__PURE__*/jsxRuntime.jsx(StyledLink, {
17569
- as: "a",
17569
+ children: isAbsoluteUrl ? /*#__PURE__*/jsxRuntime.jsx("a", {
17570
17570
  href: href,
17571
17571
  "aria-label": "Coinswap hame page",
17572
+ style: {
17573
+ display: 'flex',
17574
+ alignItems: 'center',
17575
+ textDecoration: 'none'
17576
+ },
17572
17577
  children: innerLogo(isPushed)
17573
17578
  }) : /*#__PURE__*/jsxRuntime.jsx(StyledLink, {
17574
17579
  to: href,
@@ -18506,8 +18511,9 @@ var useDisclaimer = function useDisclaimer(_ref) {
18506
18511
  translations = _ref.translations,
18507
18512
  setIsConnectWalletPanelOpen = _ref.setIsConnectWalletPanelOpen;
18508
18513
  var _useWeb3React = core.useWeb3React(),
18509
- account = _useWeb3React.account,
18510
- deactivate = _useWeb3React.deactivate;
18514
+ account = _useWeb3React.account;
18515
+ // Note: deactivate is not available in newer versions of @web3-react/core
18516
+ var deactivate = function deactivate() {}; // Placeholder - implement disconnect logic if needed
18511
18517
  var _useCookies = useCookies(exports.Cookies.Disclaimer),
18512
18518
  _useCookies2 = _slicedToArray(_useCookies, 2),
18513
18519
  disclaimer = _useCookies2[0],
@@ -19475,11 +19481,12 @@ var IdoExtensionsModal = function IdoExtensionsModal(_ref7) {
19475
19481
  chainId: addressData === null || addressData === void 0 ? void 0 : addressData.chainId
19476
19482
  };
19477
19483
  }
19484
+ var chainIdValue = typeof requiredWallet.requiredValue === 'number' ? requiredWallet.requiredValue : typeof requiredWallet.requiredValue === 'string' ? parseInt(requiredWallet.requiredValue, 10) : undefined;
19478
19485
  return {
19479
19486
  wallet: myAddresses === null || myAddresses === void 0 || (_myAddresses$find = myAddresses.find(function (el) {
19480
- return el.chainId === (requiredWallet === null || requiredWallet === void 0 ? void 0 : requiredWallet.requiredValue);
19487
+ return el.chainId === chainIdValue;
19481
19488
  })) === null || _myAddresses$find === void 0 ? void 0 : _myAddresses$find.wallet,
19482
- chainId: requiredWallet.requiredValue
19489
+ chainId: chainIdValue
19483
19490
  };
19484
19491
  }
19485
19492
  return {
@@ -19495,13 +19502,15 @@ var IdoExtensionsModal = function IdoExtensionsModal(_ref7) {
19495
19502
  walletAddressRequired: requiredWallet
19496
19503
  },
19497
19504
  validationSchema: Yup__namespace.object().shape({
19498
- email: Yup__namespace.string().email("Email address format invaild").when("emailRequired", {
19499
- is: true,
19500
- then: Yup__namespace.string().required("Email address is required")
19505
+ email: Yup__namespace.string().email("Email address format invaild").when("emailRequired", function (_ref8, schema) {
19506
+ var _ref9 = _slicedToArray(_ref8, 1),
19507
+ emailRequired = _ref9[0];
19508
+ return emailRequired ? schema.required("Email address is required") : schema;
19501
19509
  }),
19502
- walletAddress: Yup__namespace.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", {
19503
- is: true,
19504
- then: Yup__namespace.string().required("Wallet Address is required")
19510
+ walletAddress: Yup__namespace.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) {
19511
+ var _ref1 = _slicedToArray(_ref0, 1),
19512
+ walletAddressRequired = _ref1[0];
19513
+ return walletAddressRequired ? schema.required("Wallet Address is required") : schema;
19505
19514
  })
19506
19515
  }),
19507
19516
  onSubmit: function onSubmit(values) {