@stokr/components-library 2.3.7-beta.1 → 2.3.9

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.
@@ -34,10 +34,13 @@ DropdownIndicator.propTypes = {
34
34
  selectProps: _propTypes.default.instanceOf(Object).isRequired
35
35
  };
36
36
  var SelectMenuListWithScroll = function SelectMenuListWithScroll(props) {
37
- var children = props.children;
37
+ var children = props.children,
38
+ selectProps = props.selectProps;
39
+ var _selectProps$maxMenuH = selectProps.maxMenuHeight,
40
+ maxMenuHeight = _selectProps$maxMenuH === void 0 ? 300 : _selectProps$maxMenuH;
38
41
  return /*#__PURE__*/_react.default.createElement(_Select.SelectMenuList, {
39
42
  autoHeight: true,
40
- autoHeightMax: 300,
43
+ autoHeightMax: maxMenuHeight,
41
44
  fullHeight: true
42
45
  }, children);
43
46
  };
@@ -53,7 +56,8 @@ var Select = function Select(props) {
53
56
  error = props.error,
54
57
  touched = props.touched,
55
58
  value = props.value,
56
- disabled = props.disabled;
59
+ disabled = props.disabled,
60
+ menuHeight = props.menuHeight;
57
61
  var _useState = (0, _react.useState)(!!value),
58
62
  _useState2 = _slicedToArray(_useState, 2),
59
63
  labelUp = _useState2[0],
@@ -110,6 +114,7 @@ var Select = function Select(props) {
110
114
  }),
111
115
  placeholder: "",
112
116
  isSearchable: search,
117
+ maxMenuHeight: menuHeight,
113
118
  styles: {
114
119
  control: function control() {
115
120
  return _Select.SelectControl;
@@ -89,6 +89,7 @@ exports.SelectOptionStrings = SelectOptionStrings;
89
89
  SelectOptionStrings.args = {
90
90
  label: 'click LABEL here for options',
91
91
  value: null,
92
+ //menuHeight: 100,
92
93
  options: [{
93
94
  key: 'other option key',
94
95
  value: 'other option value',
@@ -23,6 +23,7 @@ var formatCurrencyValue = function formatCurrencyValue(currency, value) {
23
23
  'lbtc-bfx': ['LBTC', 8],
24
24
  'btc-bfx': ['BTC', 8],
25
25
  euro: ['EUR', 2],
26
+ usd: ['USD', 2],
26
27
  lusdt: ['USDT', 2],
27
28
  'bitcoin-private': ['EUR', 2],
28
29
  'lbtc-private': ['BTC', 8],
@@ -37,6 +38,7 @@ exports.formatCurrencyValue = formatCurrencyValue;
37
38
  var getCurrencySymbol = function getCurrencySymbol(currencySelected) {
38
39
  return {
39
40
  euro: '€',
41
+ usd: '$',
40
42
  ether: 'ETH',
41
43
  tether: 'USDT',
42
44
  bitcoin: 'BTC',
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.isUSInvestor = void 0;
7
- var usCountries = ['United States', 'Puerto Rico', 'Guam', 'American Samoa', 'U.S. Virgin Islands'];
7
+ var usCountries = ['United States', 'Puerto Rico'];
8
8
  var isUSInvestor = function isUSInvestor(user) {
9
9
  return usCountries.includes(user.country);
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokr/components-library",
3
- "version": "2.3.7-beta.1",
3
+ "version": "2.3.9",
4
4
  "description": "STOKR - Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",