@stokr/components-library 0.5.5 → 0.5.6
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/Form/Form.stories.js +1 -2
- package/dist/Input/Select.stories.js +1 -1
- package/dist/LearnMoreCarousel/LearnMoreCarousel.stories.js +1 -1
- package/dist/LearnMorePage/LearnMoreItem.js +15 -1
- package/dist/LearnMoreSection/LearnMore.js +15 -1
- package/dist/Number/Number.js +1 -1
- package/dist/RefreshButton/RefreshButton.stories.js +3 -5
- package/dist/RegisterAlgorand/Algorand.stories.js +0 -2
- package/dist/Slider/Slider.stories.js +1 -1
- package/dist/Tabs/Tabs.stories.js +1 -1
- package/dist/TabsNav/TabNav.stories.js +1 -1
- package/dist/TabsNav/TabsNav.stories.js +1 -1
- package/dist/taxId/TaxId.stories.js +0 -2
- package/dist/video/Video.js +4 -4
- package/package.json +2 -2
- package/react-scripts +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Form from './Form';
|
|
3
|
-
// import { FormField, FormInfo, FormError } from './Form'
|
|
4
|
-
import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
|
|
5
3
|
import { withFormik } from 'formik';
|
|
4
|
+
import ComponentWrapper from 'components/ComponentWrapper/ComponentWrapper.styles';
|
|
6
5
|
export default {
|
|
7
6
|
title: 'Components Library/Form',
|
|
8
7
|
component: Form,
|
|
@@ -3,7 +3,7 @@ import { Select } from './Select';
|
|
|
3
3
|
import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
|
|
4
4
|
import { Medium } from '../icons/Medium';
|
|
5
5
|
import { Share } from '../icons/Share';
|
|
6
|
-
import
|
|
6
|
+
import Number from 'components/Number/Number';
|
|
7
7
|
export default {
|
|
8
8
|
title: 'Components Library/Inputs/Select',
|
|
9
9
|
component: Select,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LearnMoreCarousel } from './LearnMoreCarousel';
|
|
3
3
|
// import { OneSvg, TwoSvg, ThreeSvg, FourSvg } from 'components/SvgIcons'
|
|
4
|
-
import
|
|
4
|
+
import Number from 'components/Number/Number';
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Components Library/LearnMoreCarousel',
|
|
7
7
|
component: LearnMoreCarousel,
|
|
@@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import Background from 'components/Background/Background';
|
|
4
4
|
import ComponentWrapper from 'components/ComponentWrapper/ComponentWrapper.styles';
|
|
5
5
|
import Button from 'components/Button/Button.styles';
|
|
6
|
-
import { learnMorePostPropTypes, learnMoreCategoryPropTypes } from './LearnMore';
|
|
7
6
|
import { ArticleWrapper, VideoCover, VideoPlay, VideoPlayIcon, VideoTitleRow, TitleText, CompleteWrapper, ContentText } from './LearnMoreItem.styles';
|
|
8
7
|
import { CompleteMarkContainer, CompleteMark } from './LearnMore.shared.styles';
|
|
9
8
|
const LearnMoreItem = ({
|
|
@@ -51,6 +50,21 @@ const LearnMoreItem = ({
|
|
|
51
50
|
inProgress: activeTabObject.inProgress,
|
|
52
51
|
complete: activeTabObject.complete
|
|
53
52
|
}, /*#__PURE__*/React.createElement(CompleteMark, null))))));
|
|
53
|
+
const learnMorePostPropTypes = {
|
|
54
|
+
id: PropTypes.string.isRequired,
|
|
55
|
+
title: PropTypes.string.isRequired,
|
|
56
|
+
excerpt: PropTypes.string.isRequired,
|
|
57
|
+
content: PropTypes.string.isRequired,
|
|
58
|
+
postType: PropTypes.oneOf(['video', 'text']),
|
|
59
|
+
cover: PropTypes.string,
|
|
60
|
+
videoSrc: PropTypes.string
|
|
61
|
+
};
|
|
62
|
+
const learnMoreCategoryPropTypes = {
|
|
63
|
+
title: PropTypes.string.isRequired,
|
|
64
|
+
inProgress: PropTypes.bool,
|
|
65
|
+
complete: PropTypes.bool,
|
|
66
|
+
tooltip: PropTypes.node
|
|
67
|
+
};
|
|
54
68
|
LearnMoreItem.propTypes = {
|
|
55
69
|
postItem: PropTypes.shape(learnMorePostPropTypes).isRequired,
|
|
56
70
|
activeTabObject: PropTypes.shape(learnMoreCategoryPropTypes).isRequired,
|
|
@@ -9,7 +9,6 @@ import ComponentWrapper from 'components/ComponentWrapper/ComponentWrapper.style
|
|
|
9
9
|
import LearnMoreCarousel from 'components/LearnMoreCarousel/LearnMoreCarousel';
|
|
10
10
|
import { LearnMoreSlide } from 'components/LearnMoreCarousel/LearnMoreCarousel.styles';
|
|
11
11
|
import { getMedia } from 'styles/rwd';
|
|
12
|
-
import { learnMorePostPropTypes, learnMoreCategoryPropTypes } from 'components/LearnMorePage/LearnMore';
|
|
13
12
|
import { TabNav, TabArrow, Container, TitleContainer, TabTitle, Arrow, SidebarSubHeading } from './LearnMore.styles';
|
|
14
13
|
import LearnMoreItem from './LearnMoreItem';
|
|
15
14
|
export class LearnMore extends PureComponent {
|
|
@@ -134,6 +133,21 @@ export class LearnMore extends PureComponent {
|
|
|
134
133
|
})))));
|
|
135
134
|
}
|
|
136
135
|
}
|
|
136
|
+
const learnMorePostPropTypes = {
|
|
137
|
+
id: PropTypes.string.isRequired,
|
|
138
|
+
title: PropTypes.string.isRequired,
|
|
139
|
+
excerpt: PropTypes.string.isRequired,
|
|
140
|
+
content: PropTypes.string.isRequired,
|
|
141
|
+
postType: PropTypes.oneOf(['video', 'text']),
|
|
142
|
+
cover: PropTypes.string,
|
|
143
|
+
videoSrc: PropTypes.string
|
|
144
|
+
};
|
|
145
|
+
const learnMoreCategoryPropTypes = {
|
|
146
|
+
title: PropTypes.string.isRequired,
|
|
147
|
+
inProgress: PropTypes.bool,
|
|
148
|
+
complete: PropTypes.bool,
|
|
149
|
+
tooltip: PropTypes.node
|
|
150
|
+
};
|
|
137
151
|
LearnMore.propTypes = {
|
|
138
152
|
items: PropTypes.arrayOf(PropTypes.shape(learnMorePostPropTypes)).isRequired,
|
|
139
153
|
categories: PropTypes.arrayOf(PropTypes.shape({
|
package/dist/Number/Number.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
// import { TransactionDetails1 } from 'components/TransactionDetails/TransactionDetails.stories'
|
|
6
|
-
|
|
2
|
+
import Number from 'components/Number/Number';
|
|
3
|
+
import ComponentWrapper from 'components/ComponentWrapper/ComponentWrapper.styles';
|
|
4
|
+
import RefreshButton from './RefreshButton';
|
|
7
5
|
export default {
|
|
8
6
|
title: 'Components Library/Buttons/RefreshButton',
|
|
9
7
|
component: RefreshButton,
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import AlgoAddressFlowPage from './flow';
|
|
3
3
|
import AlgoFlowMemo from './flowWithMemo';
|
|
4
|
-
|
|
5
|
-
// import { AlgoAdressSelect } from 'index'
|
|
6
4
|
import { AuthProvider } from 'components/context/AuthContext';
|
|
7
5
|
export default {
|
|
8
6
|
title: 'Components Library/Algorand',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Slider } from './Slider';
|
|
3
3
|
import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles';
|
|
4
|
-
import
|
|
4
|
+
import Number from 'components/Number/Number';
|
|
5
5
|
export default {
|
|
6
6
|
title: 'Components Library/Slider',
|
|
7
7
|
component: Slider,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// import React from 'react'
|
|
2
2
|
// import Tabs from './Tabs'
|
|
3
3
|
// import { ComponentWrapper } from '../ComponentWrapper/ComponentWrapper.styles'
|
|
4
|
-
// import
|
|
4
|
+
// import Number from 'components/Number/Number'
|
|
5
5
|
|
|
6
6
|
// export default {
|
|
7
7
|
// title: 'Components Library/Tabs/Tabs',
|
package/dist/video/Video.js
CHANGED
|
@@ -3,10 +3,10 @@ import React, { useState, useEffect, useRef } from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
5
|
import * as sc from 'constants/style';
|
|
6
|
-
import { breakpoint } from 'utils/breakpoint';
|
|
7
6
|
import { CSSTransition } from 'react-transition-group';
|
|
8
7
|
import { RenderToBody } from 'components/renderToBody';
|
|
9
8
|
import { X } from 'components/icons';
|
|
9
|
+
import { rwdMax } from 'styles/rwd';
|
|
10
10
|
const Wrapper = styled.div`
|
|
11
11
|
position: relative;
|
|
12
12
|
cursor: pointer;
|
|
@@ -73,9 +73,9 @@ const LightboxVideo = styled.div`
|
|
|
73
73
|
box-shadow: 0 0 20px 1px black;
|
|
74
74
|
transition: all 0.4s;
|
|
75
75
|
|
|
76
|
-
${
|
|
77
|
-
|
|
78
|
-
}
|
|
76
|
+
${rwdMax.Medium`
|
|
77
|
+
max-width: 88vw;
|
|
78
|
+
`}
|
|
79
79
|
|
|
80
80
|
@media screen and (max-width: 768px) {
|
|
81
81
|
max-width: 95vw;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stokr/components-library",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"description": "STOKR - Components Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"axios": "^1.3.2",
|
|
37
37
|
"bignumber.js": "^9.1.1",
|
|
38
38
|
"formik": "^2.2.9",
|
|
39
|
-
"js-cookie": "^
|
|
39
|
+
"js-cookie": "^2.2.1",
|
|
40
40
|
"mobile-detect": "^1.4.5",
|
|
41
41
|
"polished": "^4.2.2",
|
|
42
42
|
"prop-types": "^15.8.1",
|
package/react-scripts
ADDED
|
File without changes
|