@stokr/components-library 3.0.54 → 3.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/components/BackButton/BackButton.js +1 -3
  2. package/dist/components/ComponentScroll/ComponentScroll.js +1 -1
  3. package/dist/components/FAQ/FAQ.js +2 -5
  4. package/dist/components/Input/InputPassword.js +7 -11
  5. package/dist/components/MultiProgressBar/MultiProgressBar.js +1 -3
  6. package/dist/components/RegisterModal/RegisterModal.js +12 -7
  7. package/dist/components/ResetPasswordModal/ResetPasswordModal.js +12 -13
  8. package/dist/components/Tabs/Tabs.js +1 -3
  9. package/dist/components/TabsNav/TabsNav.js +1 -3
  10. package/dist/index.js +8 -17
  11. package/dist/utils/password-validation.js +49 -0
  12. package/dist/utils/scrollUtils.js +9 -9
  13. package/package.json +4 -13
  14. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.js +0 -18
  15. package/dist/components/CapitalRaisedSummary/CaptialRaisedSummary.styles.js +0 -41
  16. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.js +0 -32
  17. package/dist/components/LearnMoreCarousel/LearnMoreCarousel.styles.js +0 -208
  18. package/dist/components/LearnMorePage/LearnMore.js +0 -190
  19. package/dist/components/LearnMorePage/LearnMore.propTypes.js +0 -20
  20. package/dist/components/LearnMorePage/LearnMore.shared.styles.js +0 -56
  21. package/dist/components/LearnMorePage/LearnMore.styles.js +0 -276
  22. package/dist/components/LearnMorePage/LearnMoreExampleObject.js +0 -120
  23. package/dist/components/LearnMorePage/LearnMoreItem.js +0 -57
  24. package/dist/components/LearnMorePage/LearnMoreItem.styles.js +0 -234
  25. package/dist/components/LearnMoreSection/LearnMore.js +0 -138
  26. package/dist/components/LearnMoreSection/LearnMore.styles.js +0 -147
  27. package/dist/components/LearnMoreSection/LearnMoreItem.js +0 -33
  28. package/dist/components/LearnMoreSection/LearnMoreItem.styles.js +0 -60
@@ -1,138 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { PureComponent } from "react";
3
- import PropTypes from "prop-types";
4
- import { Collapse } from "react-collapse";
5
- import stdin_default$2 from "../TabsNav/TabsNav.js";
6
- import { Row, Column } from "../Grid/Grid.styles.js";
7
- import stdin_default$3 from "../Tabs/Tabs.js";
8
- import { Text } from "../Text/Text.styles.js";
9
- import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
10
- import stdin_default from "../LearnMoreCarousel/LearnMoreCarousel.js";
11
- import { LearnMoreSlide } from "../LearnMoreCarousel/LearnMoreCarousel.styles.js";
12
- import { getMedia } from "../../styles/rwd.js";
13
- import "../LearnMorePage/LearnMore.js";
14
- import { Container, TitleContainer, SidebarSubHeading, TabTitle, Arrow, TabNav, TabArrow } from "./LearnMore.styles.js";
15
- import stdin_default$1 from "./LearnMoreItem.js";
16
- import { Tab } from "../Tabs/Tabs.styles.js";
17
- import { learnMoreCategoryPropTypes, learnMorePostPropTypes } from "../LearnMorePage/LearnMore.propTypes.js";
18
- class LearnMoreSection extends PureComponent {
19
- state = {
20
- activeTab: 0,
21
- isMobile: false
22
- };
23
- componentDidMount() {
24
- const { categories } = this.props;
25
- if (categories?.[0]) {
26
- this.onTabChange(categories[0].id);
27
- }
28
- window.addEventListener("resize", this.onResize);
29
- this.onResizeTimeout();
30
- }
31
- componentWillUnmount() {
32
- window.removeEventListener("resize", this.onResize);
33
- }
34
- onTabChange = (tabId) => {
35
- this.setState({
36
- activeTab: tabId
37
- });
38
- };
39
- onResize = () => {
40
- clearTimeout(this.timeout);
41
- this.timeout = setTimeout(this.onResizeTimeout, 200);
42
- };
43
- onResizeTimeout = () => {
44
- this.setState({
45
- isMobile: this.checkIsMobile()
46
- });
47
- };
48
- checkIsMobile = () => !window.matchMedia(getMedia("Medium")).matches;
49
- getItemsForSubcategories = (subcategories) => {
50
- const { items } = this.props;
51
- return subcategories.map((subcategory) => items.find((item) => item.id === subcategory.id));
52
- };
53
- render() {
54
- const { categories } = this.props;
55
- const { activeTab, isMobile } = this.state;
56
- return isMobile ? /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(Row, { children: /* @__PURE__ */ jsxs(Column, { children: [
57
- /* @__PURE__ */ jsx(TitleContainer, { children: /* @__PURE__ */ jsxs(Text, { children: [
58
- /* @__PURE__ */ jsx(SidebarSubHeading, { children: "INVESTMENT OPPORTUNITIES" }),
59
- /* @__PURE__ */ jsx("h3", { children: "DISCOVER INVESTMENTS" })
60
- ] }) }),
61
- categories.map((category) => {
62
- const items = this.getItemsForSubcategories(category.subcategories);
63
- return /* @__PURE__ */ jsxs(ComponentWrapper, { noPadding: true, borderTop: true, children: [
64
- /* @__PURE__ */ jsxs(TabTitle, { onClick: () => this.onTabChange(category.id), children: [
65
- category.title,
66
- /* @__PURE__ */ jsx(Arrow, { isOpened: activeTab === category.id })
67
- ] }),
68
- /* @__PURE__ */ jsx(Collapse, { isOpened: activeTab === category.id, children: /* @__PURE__ */ jsx(stdin_default, { dots: true, isMobile: true, children: items?.map((item) => /* @__PURE__ */ jsx(LearnMoreSlide, { children: /* @__PURE__ */ jsx(
69
- stdin_default$1,
70
- {
71
- title: item.title,
72
- content: item.excerpt,
73
- coverSrc: item.cover,
74
- postType: item.postType,
75
- link: item.url,
76
- videoSrc: item.videoSrc,
77
- category: item.category
78
- },
79
- item.id
80
- ) }, item.id)) }) })
81
- ] }, category.id);
82
- })
83
- ] }) }) }) : /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsxs(Row, { children: [
84
- /* @__PURE__ */ jsxs(Column, { part: 5, style: { height: "auto" }, children: [
85
- /* @__PURE__ */ jsx(TitleContainer, { borderRight: true, borderBottom: true, children: /* @__PURE__ */ jsxs(Text, { responsiveFont: true, children: [
86
- /* @__PURE__ */ jsx(SidebarSubHeading, { children: "INVESTMENT OPPORTUNITIES" }),
87
- /* @__PURE__ */ jsx("h3", { children: "DISCOVER INVESTMENTS" })
88
- ] }) }),
89
- /* @__PURE__ */ jsx(stdin_default$2, { activeTab, children: categories?.map((category) => /* @__PURE__ */ jsxs(
90
- TabNav,
91
- {
92
- borderBottom: true,
93
- borderRight: true,
94
- isActive: activeTab === category.id,
95
- onClick: () => this.onTabChange(category.id),
96
- children: [
97
- /* @__PURE__ */ jsx(TabArrow, {}),
98
- category?.title
99
- ]
100
- },
101
- category.id
102
- )) }),
103
- /* @__PURE__ */ jsx(TitleContainer, { borderRight: true, children: /* @__PURE__ */ jsx(Text, {}) })
104
- ] }),
105
- /* @__PURE__ */ jsx(Column, { part: 11, children: /* @__PURE__ */ jsx(stdin_default$3, { activeTab, children: categories?.map((category) => {
106
- const items = this.getItemsForSubcategories(category.subcategories);
107
- return /* @__PURE__ */ jsx(Tab, { children: /* @__PURE__ */ jsxs(stdin_default, { arrows: true, dots: true, children: [
108
- items?.map((item) => /* @__PURE__ */ jsx(LearnMoreSlide, { children: /* @__PURE__ */ jsx(
109
- stdin_default$1,
110
- {
111
- title: item?.title,
112
- content: item?.excerpt,
113
- coverSrc: item?.cover,
114
- postType: item?.postType,
115
- link: item?.url,
116
- videoSrc: item?.videoSrc,
117
- category: item?.category
118
- },
119
- item?.id
120
- ) }, item?.id)),
121
- /* @__PURE__ */ jsx(LearnMoreSlide, {})
122
- ] }) }, category.id);
123
- }) }) })
124
- ] }) });
125
- }
126
- }
127
- LearnMoreSection.propTypes = {
128
- items: PropTypes.arrayOf(PropTypes.shape(learnMorePostPropTypes)).isRequired,
129
- categories: PropTypes.arrayOf(
130
- PropTypes.shape({
131
- ...learnMoreCategoryPropTypes,
132
- subcategories: PropTypes.arrayOf(PropTypes.shape(learnMoreCategoryPropTypes))
133
- })
134
- ).isRequired
135
- };
136
- export {
137
- LearnMoreSection
138
- };
@@ -1,147 +0,0 @@
1
- import styled, { css } from "styled-components";
2
- import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
3
- import { TabsWrapper, StyledTabs } from "../TabsNav/TabsNav.styles.js";
4
- const Container = styled.div`
5
- width: 100%;
6
- overflow: hidden;
7
-
8
- ${TabsWrapper} {
9
- padding: 0 !important;
10
- }
11
-
12
- ${StyledTabs} {
13
- border-bottom: none;
14
- }
15
- `;
16
- const TabNav = styled(ComponentWrapper).withConfig({
17
- shouldForwardProp: (props) => !["isActive"].includes(props)
18
- })`
19
- font-size: 11px;
20
- font-weight: 700;
21
- text-transform: uppercase;
22
- cursor: pointer;
23
-
24
- height: 104px;
25
- letter-spacing: 0.6px;
26
- line-height: 1.5;
27
- padding: 44px 64px !important;
28
-
29
- ${(props) => props.isActive && css`
30
- border-right: none !important;
31
-
32
- &::before {
33
- content: '';
34
- width: 8px;
35
- position: absolute;
36
- left: 0;
37
- top: 0;
38
- bottom: 0;
39
- background: ${props.theme.cWarning};
40
- }
41
- `}
42
- `;
43
- const TabArrow = styled.i.attrs({
44
- className: "ion ion-ios-arrow-forward"
45
- })`
46
- color: ${(props) => props.theme.cWarning};
47
- margin-right: 15px;
48
- `;
49
- styled.div`
50
- width: 100%;
51
-
52
- .slick-arrow {
53
- width: 64px;
54
- height: 48px;
55
- background: ${(props) => props.theme.cWarning};
56
- z-index: 10;
57
- transition: 0.3s ease background;
58
-
59
- &:hover,
60
- &:focus {
61
- background: ${(props) => props.theme.cWarningDark};
62
-
63
- &::before {
64
- color: ${(props) => props.theme.cWhite} !important;
65
- }
66
- }
67
- }
68
-
69
- .slick-arrow.slick-prev {
70
- top: auto;
71
- left: auto;
72
- bottom: 0;
73
- right: 64px;
74
- transform: translate(0);
75
- }
76
-
77
- .slick-arrow.slick-next {
78
- top: auto;
79
- left: auto;
80
- bottom: 0;
81
- right: 0;
82
- transform: translate(0);
83
- border-left: 1px solid ${(props) => props.theme.cWarningDark};
84
- }
85
-
86
- .slick-dots {
87
- width: auto;
88
- right: 164px;
89
- height: 36px;
90
- bottom: 0;
91
- }
92
- `;
93
- const TitleContainer = styled(ComponentWrapper)`
94
- height: 100%;
95
- display: flex;
96
- align-items: center;
97
- flex-grow: 1;
98
- `;
99
- const TabTitle = styled.div`
100
- padding: 42px 36px;
101
- display: flex;
102
- justify-content: space-between;
103
- font-weight: 700;
104
- text-transform: uppercase;
105
- position: relative;
106
- font-size: 11px;
107
- line-height: 20px;
108
- letter-spacing: 0.6px;
109
- `;
110
- const Arrow = styled.i.withConfig({
111
- shouldForwardProp: (props) => !["isOpened"].includes(props)
112
- }).attrs({
113
- className: "ion ion-ios-arrow-down"
114
- })`
115
- &&& {
116
- position: absolute;
117
- top: 50%;
118
- right: 32px;
119
- transition: 0.3s transform;
120
- transform: rotate(0);
121
- text-align: center;
122
- font-size: 16px;
123
- line-height: 16px;
124
- height: 16px;
125
- margin-top: -8px;
126
-
127
- ${(props) => props.isOpened && `
128
- transform: rotate(180deg);
129
- `}
130
- }
131
- `;
132
- const SidebarSubHeading = styled.div`
133
- font-size: 11px;
134
- line-height: 24px;
135
- letter-spacing: 2.1px;
136
- text-transform: uppercase;
137
- margin-bottom: 20px;
138
- `;
139
- export {
140
- Arrow,
141
- Container,
142
- SidebarSubHeading,
143
- TabArrow,
144
- TabNav,
145
- TabTitle,
146
- TitleContainer
147
- };
@@ -1,33 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import "react";
3
- import PropTypes from "prop-types";
4
- import { useNavigate } from "react-router-dom";
5
- import stdin_default$1 from "../Background/Background.js";
6
- import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
7
- import { Button } from "../Button/Button.styles.js";
8
- import { Container, Cover, Title, Content } from "./LearnMoreItem.styles.js";
9
- import { SidebarSubHeading } from "./LearnMore.styles.js";
10
- const LearnMoreItemSection = ({ title, content, link, coverSrc, category }) => {
11
- let navigate = useNavigate();
12
- return /* @__PURE__ */ jsxs(Container, { children: [
13
- /* @__PURE__ */ jsx(Cover, { children: /* @__PURE__ */ jsx(stdin_default$1, { src: coverSrc, investmentOpportunities: true }) }),
14
- /* @__PURE__ */ jsxs(ComponentWrapper, { noPaddingHorizontal: true, noPaddingBottom: true, children: [
15
- /* @__PURE__ */ jsx(SidebarSubHeading, { children: category }),
16
- /* @__PURE__ */ jsx(Title, { children: title })
17
- ] }),
18
- /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingHorizontal: true, noPaddingBottom: true, children: /* @__PURE__ */ jsx(Content, { children: content }) }),
19
- /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingHorizontal: true, noPaddingBottom: true, children: /* @__PURE__ */ jsx(Button, { onClick: () => navigate(link), children: title === "ARTID" || title === "INFINITE-FLEET" || title === "BLOCKSTREAM MINING" || title === "MAZZANTI AUTOMOBILI" ? "FULL DETAILS" : `I'M INTERESTED` }) })
20
- ] });
21
- };
22
- LearnMoreItemSection.propTypes = {
23
- title: PropTypes.string.isRequired,
24
- content: PropTypes.string.isRequired,
25
- link: PropTypes.string.isRequired,
26
- coverSrc: PropTypes.string.isRequired,
27
- postType: PropTypes.string.isRequired
28
- };
29
- var stdin_default = LearnMoreItemSection;
30
- export {
31
- LearnMoreItemSection,
32
- stdin_default as default
33
- };
@@ -1,60 +0,0 @@
1
- import styled from "styled-components";
2
- import { Link } from "react-router-dom";
3
- import { Container as Container$1, Content as Content$1 } from "../Background/Background.styles.js";
4
- const Container = styled.div`
5
- height: 100%;
6
- `;
7
- const Cover = styled.div`
8
- width: 100%;
9
-
10
- ${Container$1} {
11
- width: 100%;
12
- padding-top: 56.25%;
13
- }
14
-
15
- ${Content$1} {
16
- position: absolute;
17
- top: 50%;
18
- left: 50%;
19
- width: auto;
20
- transform: translateY(-50%) translateX(-50%);
21
- }
22
- `;
23
- styled(Link)`
24
- width: 48px;
25
- height: 48px;
26
- color: ${(props) => props.theme.cWhite};
27
- background: ${(props) => props.theme.cWarning};
28
- border-radius: 50%;
29
- display: flex;
30
- align-items: center;
31
- justify-content: center;
32
- transition: 0.3s background;
33
-
34
- &:hover {
35
- color: ${(props) => props.theme.cWhite};
36
- background: ${(props) => props.theme.cWarningDark};
37
- }
38
- `;
39
- styled.i.attrs({
40
- className: "ion ion-md-play"
41
- })`
42
- font-size: 16px;
43
- `;
44
- const Title = styled.div`
45
- font-size: 16px;
46
- font-weight: 600;
47
- `;
48
- const Content = styled.div`
49
- font-size: 16px;
50
- font-weight: 300;
51
- line-height: 1.5;
52
- letter-spacing: 0.6px;
53
- min-height: 100px;
54
- `;
55
- export {
56
- Container,
57
- Content,
58
- Cover,
59
- Title
60
- };