@stokr/components-library 2.0.0-beta.3 → 2.0.0-beta.4
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.
|
@@ -22,7 +22,8 @@ var ComponentScroll = function ComponentScroll(props) {
|
|
|
22
22
|
barPadding = props.barPadding,
|
|
23
23
|
topPadding = props.topPadding,
|
|
24
24
|
className = props.className,
|
|
25
|
-
handleScroll = props.handleScroll
|
|
25
|
+
handleScroll = props.handleScroll,
|
|
26
|
+
fullHeight = props.fullHeight;
|
|
26
27
|
var scrollRef = (0, _react.useRef)();
|
|
27
28
|
(0, _react.useEffect)(function () {
|
|
28
29
|
if (scrollRef.current) {
|
|
@@ -40,7 +41,8 @@ var ComponentScroll = function ComponentScroll(props) {
|
|
|
40
41
|
return /*#__PURE__*/_react.default.createElement(_ComponentScroll.Container, {
|
|
41
42
|
className: className,
|
|
42
43
|
noMobileScroll: noMobileScroll,
|
|
43
|
-
isMobile: true
|
|
44
|
+
isMobile: true,
|
|
45
|
+
fullHeight: fullHeight
|
|
44
46
|
}, /*#__PURE__*/_react.default.createElement(_ComponentScroll.Outer, {
|
|
45
47
|
offset: offset,
|
|
46
48
|
barPadding: barPadding,
|
|
@@ -8,7 +8,7 @@ exports.TrackV = exports.TrackH = exports.ThumbV = exports.ThumbH = exports.Oute
|
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
var _rwd = _interopRequireDefault(require("../../styles/rwd"));
|
|
10
10
|
var _theme = _interopRequireDefault(require("../../styles/theme"));
|
|
11
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
11
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -16,11 +16,13 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
16
16
|
var Container = _styledComponents.default.div.withConfig({
|
|
17
17
|
displayName: "ComponentScrollstyles__Container",
|
|
18
18
|
componentId: "sc-12avd6v-0"
|
|
19
|
-
})(["position:relative;height:364px;width:100%;display:flex;@media screen and (max-width:767px){height:", ";}", ""], function (_ref) {
|
|
19
|
+
})(["position:relative;height:364px;width:100%;display:flex;@media screen and (max-width:767px){height:", ";}", " ", ""], function (_ref) {
|
|
20
20
|
var isMobile = _ref.isMobile;
|
|
21
21
|
return isMobile ? '100%' : '364px';
|
|
22
22
|
}, function (props) {
|
|
23
|
-
return props.
|
|
23
|
+
return props.fullHeight && (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 100%;\n "])));
|
|
24
|
+
}, function (props) {
|
|
25
|
+
return props.noMobileScroll && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n & > div > div {\n overflow: visible !important;\n\n > div:first-child {\n overflow: visible !important;\n }\n }\n\n ", "\n "])), _rwd.default.Medium(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n & > div > div {\n overflow: hidden !important;\n\n > div:first-child {\n overflow: scroll !important; \n }\n }\n "]))));
|
|
24
26
|
});
|
|
25
27
|
exports.Container = Container;
|
|
26
28
|
var TrackH = _styledComponents.default.div.withConfig({
|
|
@@ -28,7 +30,7 @@ var TrackH = _styledComponents.default.div.withConfig({
|
|
|
28
30
|
componentId: "sc-12avd6v-1"
|
|
29
31
|
})(["background-color:", ";left:16px;right:16px;bottom:14px;height:4px;border-radius:4px;", ""], function (props) {
|
|
30
32
|
return _theme.default.cGrey;
|
|
31
|
-
}, _rwd.default.Large(
|
|
33
|
+
}, _rwd.default.Large(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n left: 32px;\n right: 32px;\n bottom: 30px;\n "]))));
|
|
32
34
|
exports.TrackH = TrackH;
|
|
33
35
|
var ThumbH = _styledComponents.default.div.withConfig({
|
|
34
36
|
displayName: "ComponentScrollstyles__ThumbH",
|
|
@@ -42,7 +44,7 @@ var TrackV = _styledComponents.default.div.withConfig({
|
|
|
42
44
|
componentId: "sc-12avd6v-3"
|
|
43
45
|
})(["background-color:", ";top:16px;bottom:16px;right:14px;width:4px;border-radius:4px;", ""], function (props) {
|
|
44
46
|
return _theme.default.cGrey;
|
|
45
|
-
}, _rwd.default.Large(
|
|
47
|
+
}, _rwd.default.Large(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n top: 32px;\n bottom: 32px;\n right: 30px;\n "]))));
|
|
46
48
|
exports.TrackV = TrackV;
|
|
47
49
|
var ThumbV = _styledComponents.default.div.withConfig({
|
|
48
50
|
displayName: "ComponentScrollstyles__ThumbV",
|
|
@@ -8,7 +8,7 @@ exports.default = exports.ComponentWrapper = void 0;
|
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
var _rwd = _interopRequireDefault(require("../../styles/rwd"));
|
|
10
10
|
var _theme = _interopRequireDefault(require("../../styles/theme"));
|
|
11
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24;
|
|
11
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25;
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -16,7 +16,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
16
16
|
var ComponentWrapper = _styledComponents.default.div.withConfig({
|
|
17
17
|
displayName: "ComponentWrapperstyles__ComponentWrapper",
|
|
18
18
|
componentId: "sc-1w1v084-0"
|
|
19
|
-
})(["position:relative;padding:32px;text-align:left !important;", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "
|
|
19
|
+
})(["position:relative;padding:32px;text-align:left !important;", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " @media screen and (max-width:767px){padding:32px;", "}", " ", " ", ""], _rwd.default.Large(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 32px 64px;\n "]))), function (props) {
|
|
20
20
|
return props.borderLeft && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border-left: 1px solid ", ";\n "])), _theme.default.cLightGrey);
|
|
21
21
|
}, function (props) {
|
|
22
22
|
return props.borderRight && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border-right: 1px solid ", ";\n "])), _theme.default.cLightGrey);
|
|
@@ -53,15 +53,17 @@ var ComponentWrapper = _styledComponents.default.div.withConfig({
|
|
|
53
53
|
}, function (props) {
|
|
54
54
|
return props.fluid && (0, _styledComponents.css)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n width: 100%;\n "])));
|
|
55
55
|
}, function (props) {
|
|
56
|
-
return props.fluidcenter && (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n
|
|
56
|
+
return props.fluidcenter && (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n width: 100% !important;\n text-align: center !important;\n "])));
|
|
57
57
|
}, function (props) {
|
|
58
|
-
return props.
|
|
58
|
+
return props.titleHalf && (0, _styledComponents.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n h4 {\n width: 50%;\n\n @media screen and (max-width: 767px) {\n width: 100%;\n }\n }\n "])));
|
|
59
59
|
}, function (props) {
|
|
60
|
-
return props.
|
|
60
|
+
return props.investmentNotifications && (0, _styledComponents.css)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n padding: 0;\n "])));
|
|
61
61
|
}, function (props) {
|
|
62
|
-
return props.
|
|
62
|
+
return props.alignVertically && (0, _styledComponents.css)(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n "])));
|
|
63
63
|
}, function (props) {
|
|
64
|
-
return props.
|
|
64
|
+
return props.marginTop && (0, _styledComponents.css)(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n margin-top: ", ";\n "])), props.marginTop);
|
|
65
|
+
}, function (props) {
|
|
66
|
+
return props.isAddMember && (0, _styledComponents.css)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n @media screen and (min-width: 768px) {\n padding-left: 10px !important;\n padding-right: 10px !important;\n }\n "])));
|
|
65
67
|
});
|
|
66
68
|
exports.ComponentWrapper = ComponentWrapper;
|
|
67
69
|
var _default = ComponentWrapper;
|
|
@@ -35,7 +35,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
35
35
|
var StyledPrivacyText = _styledComponents.default.div.withConfig({
|
|
36
36
|
displayName: "TermsModal__StyledPrivacyText",
|
|
37
37
|
componentId: "sc-1x5p4y6-0"
|
|
38
|
-
})(["width:100%;p{color:", ";font-size:16px;line-height:1.5;font-weight:300;margin:0;padding-bottom:10px;font-style:normal;font-stretch:normal;letter-spacing:0.6px;}a{text-decoration:none;color:", ";font-weight:300;}}h4{font-size:17.2px !important;font-weight:700 !important;line-height:1.28571em;letter-spacing:normal;position:relative;margin-top:29px;margin-bottom:16px;}table{border-collapse:collapse;margin:32px 0;font-size:16px;tr{td:first-child{width:", ";text-align:center;}td:last-child{width:", ";}}td,th{border:1px solid #2e2e2e;padding:10px;li{margin-bottom:0;}}}ul{list-style-type:disclosure-closed;list-style:none;margin:0;padding:0;}li{padding:0 0 0
|
|
38
|
+
})(["width:100%;p{color:", ";font-size:16px;line-height:1.5;font-weight:300;margin:0;padding-bottom:10px;font-style:normal;font-stretch:normal;letter-spacing:0.6px;}a{text-decoration:none;color:", ";font-weight:300;}}h4{font-size:17.2px !important;font-weight:700 !important;line-height:1.28571em;letter-spacing:normal;position:relative;margin-top:29px;margin-bottom:16px;}table{border-collapse:collapse;margin:32px 0;font-size:16px;tr{td:first-child{width:", ";text-align:center;}td:last-child{width:", ";}}td,th{border:1px solid #2e2e2e;padding:10px;li{margin-bottom:0;}}}ul{list-style-type:disclosure-closed;list-style:none;margin:0;padding:0;}li{padding:0 0 0 32px;color:", ";font-size:0.75rem;letter-spacing:normal;line-height:1.31rem;font-weight:200;margin-bottom:16px;position:relative;font-size:16px !important;font-weight:300;font-style:normal;font-stretch:normal;line-height:1.5 !important;letter-spacing:0.6px;a{word-break:break-all !important;}&:before{content:'';position:absolute;width:10px;height:10px;background:#0050ca;border-radius:100px;left:0;top:3px;margin-top:0.4rem;}}"], _theme.default.cBlack, _theme.default.cBlack, function (props) {
|
|
39
39
|
return props.thirdParties ? '30%' : '40%';
|
|
40
40
|
}, function (props) {
|
|
41
41
|
return props.thirdParties ? '70%' : '60%';
|