@stokr/components-library 3.2.0 → 4.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.
Files changed (244) hide show
  1. package/dist/components/AdminDashboard/Table/Table.styles.js +7 -13
  2. package/dist/components/BasicTable/BasicTable.js +1 -3
  3. package/dist/components/BlogPost/BlogPost.styles.js +2 -2
  4. package/dist/components/Button/Button.styles.d.ts +28 -0
  5. package/dist/components/Button/Button.styles.js +27 -38
  6. package/dist/components/Button/GlareButton.js +2 -2
  7. package/dist/components/CardTabs/CardTabs.d.ts +41 -0
  8. package/dist/components/CardTabs/CardTabs.js +130 -0
  9. package/dist/components/CardTabs/CardTabs.styles.d.ts +56 -0
  10. package/dist/components/CardTabs/CardTabs.styles.js +171 -0
  11. package/dist/components/Chips/Chip.js +32 -8
  12. package/dist/components/Chips/Chip.styles.js +24 -28
  13. package/dist/components/Collapsible/Collapsible.d.ts +18 -0
  14. package/dist/components/Collapsible/Collapsible.js +44 -0
  15. package/dist/components/Collapsible/Collapsible.styles.d.ts +18 -0
  16. package/dist/components/Collapsible/Collapsible.styles.js +94 -0
  17. package/dist/components/ComponentWrapper/ComponentWrapper.styles.d.ts +31 -0
  18. package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +107 -109
  19. package/dist/components/Copy/Copy.d.ts +20 -0
  20. package/dist/components/Copy/Copy.js +0 -9
  21. package/dist/components/Copy/copySource.d.ts +20 -0
  22. package/dist/components/Copy/flatten.d.ts +3 -0
  23. package/dist/components/CopyToClipboardTooltip/CopyToClipboardTooltip.d.ts +15 -0
  24. package/dist/components/CopyToClipboardTooltip/CopyToClipboardTooltip.styles.d.ts +6 -0
  25. package/dist/components/CryptoAddress/CryptoAddress.js +3 -3
  26. package/dist/components/InfoIcon/InfoIcon.d.ts +33 -0
  27. package/dist/components/InfoIcon/InfoIcon.styles.d.ts +12 -0
  28. package/dist/components/Input/Input.d.ts +23 -0
  29. package/dist/components/Input/Input.js +17 -27
  30. package/dist/components/Input/Input.styles.d.ts +15 -0
  31. package/dist/components/Input/InputPassword.js +1 -0
  32. package/dist/components/Input/InputPassword.styles.js +4 -1
  33. package/dist/components/Input/MultiSelect.js +1 -0
  34. package/dist/components/Input/RangeInput.js +49 -53
  35. package/dist/components/Input/Textarea.styles.js +1 -1
  36. package/dist/components/MaterialIcon/MaterialIcon.d.ts +43 -0
  37. package/dist/components/MaterialIcon/MaterialIcon.js +56 -0
  38. package/dist/components/MaterialIcon/MaterialIcon.styles.d.ts +9 -0
  39. package/dist/components/MaterialIcon/MaterialIcon.styles.js +25 -0
  40. package/dist/components/MaterialIcon/iconConfig.d.ts +3 -0
  41. package/dist/components/MaterialIcon/iconConfig.js +11 -0
  42. package/dist/components/Modal/Modal.d.ts +26 -0
  43. package/dist/components/Modal/Modal.js +1 -18
  44. package/dist/components/Modal/Modal.styles.d.ts +59 -0
  45. package/dist/components/Modal/Modal.styles.js +18 -3
  46. package/dist/components/Modal/PaymentModal.js +16 -19
  47. package/dist/components/Modal/SideModal.d.ts +47 -0
  48. package/dist/components/Modal/SideModal.js +197 -73
  49. package/dist/components/Modal/SideModal.styles.d.ts +28 -0
  50. package/dist/components/Modal/SideModal.styles.js +56 -16
  51. package/dist/components/Modal/SideModalContext.d.ts +12 -0
  52. package/dist/components/Modal/SideModalContext.js +10 -0
  53. package/dist/components/Modal/SideModalParts.d.ts +20 -0
  54. package/dist/components/Modal/SideModalParts.js +95 -0
  55. package/dist/components/Pagination/Pagination.js +2 -2
  56. package/dist/components/Pagination/PaginationControls.js +2 -2
  57. package/dist/components/Payment/TimerComponent.js +1 -2
  58. package/dist/components/RefreshButton/RefreshButton.styles.js +2 -2
  59. package/dist/components/RequestDataBox/RequestDataBox.js +2 -2
  60. package/dist/components/Section/Section.d.ts +32 -0
  61. package/dist/components/Section/Section.js +80 -0
  62. package/dist/components/Section/Section.styles.d.ts +34 -0
  63. package/dist/components/Section/Section.styles.js +143 -0
  64. package/dist/components/Skeleton/Skeleton.d.ts +44 -0
  65. package/dist/components/Skeleton/Skeleton.js +48 -0
  66. package/dist/components/Skeleton/Skeleton.styles.d.ts +14 -0
  67. package/dist/components/Skeleton/Skeleton.styles.js +51 -0
  68. package/dist/components/StokrLoader/StokrLoader.d.ts +20 -0
  69. package/dist/components/StokrLoader/StokrLoader.js +21 -22
  70. package/dist/components/Tabs/Tabs.styles.js +3 -1
  71. package/dist/components/TabsNav/TabsNav.js +1 -1
  72. package/dist/components/TabsNav/TabsNav.styles.js +1 -1
  73. package/dist/components/Text/Text.styles.d.ts +20 -0
  74. package/dist/components/Text/Text.styles.js +2 -2
  75. package/dist/components/TextLink/TextLink.styles.js +1 -2
  76. package/dist/components/Tooltip/Tooltip.d.ts +42 -0
  77. package/dist/components/Tooltip/Tooltip.styles.d.ts +10 -0
  78. package/dist/constants/globalVariables.js +1 -39
  79. package/dist/hooks/useMediaQuery.d.ts +7 -0
  80. package/dist/hooks/useMediaQuery.js +19 -0
  81. package/dist/index.d.ts +299 -0
  82. package/dist/index.js +97 -224
  83. package/dist/styles/colors.d.ts +68 -0
  84. package/dist/styles/colors.js +13 -1
  85. package/dist/styles/elevation.d.ts +13 -0
  86. package/dist/styles/elevation.js +15 -0
  87. package/dist/styles/fonts.js +0 -65
  88. package/dist/styles/global.js +0 -2
  89. package/dist/styles/grid.d.ts +27 -0
  90. package/dist/styles/grid.js +8 -1
  91. package/dist/styles/rwd.d.ts +48 -0
  92. package/dist/styles/rwd.js +33 -17
  93. package/dist/styles/spacing.d.ts +36 -0
  94. package/dist/styles/spacing.js +30 -0
  95. package/dist/styles/theme.d.ts +92 -0
  96. package/dist/styles/theme.js +2 -0
  97. package/dist/styles/typography.d.ts +42 -0
  98. package/dist/styles/typography.js +56 -0
  99. package/dist/utils/capitalize.d.ts +2 -0
  100. package/dist/utils/capitalize.js +4 -0
  101. package/dist/utils/copy-text-to-clipboard.d.ts +10 -0
  102. package/dist/utils/copyToClipboard.d.ts +27 -0
  103. package/dist/utils/csv.d.ts +14 -0
  104. package/dist/utils/csv.js +25 -0
  105. package/dist/utils/customHooks.d.ts +20 -0
  106. package/dist/utils/customHooks.js +16 -11
  107. package/dist/utils/fix-decimals.d.ts +14 -0
  108. package/dist/utils/formatAmount.d.ts +109 -0
  109. package/dist/utils/formatAmount.js +170 -0
  110. package/dist/utils/formatCurrencyValue.d.ts +46 -0
  111. package/dist/utils/formatCurrencyValue.js +6 -21
  112. package/dist/utils/formatDate.d.ts +19 -0
  113. package/dist/utils/formatDate.js +44 -0
  114. package/dist/utils/get-short-address.d.ts +13 -0
  115. package/dist/utils/get-short-address.js +9 -2
  116. package/dist/utils/inertProp.d.ts +5 -0
  117. package/dist/utils/inertProp.js +6 -0
  118. package/dist/utils/isUSInvestor.d.ts +4 -0
  119. package/dist/utils/km_ify.d.ts +5 -0
  120. package/dist/utils/km_ify.js +19 -18
  121. package/dist/utils/password-validation.d.ts +16 -0
  122. package/dist/utils/saveAs.d.ts +2 -0
  123. package/dist/utils/saveAs.js +5 -2
  124. package/dist/utils/scrollUtils.d.ts +25 -0
  125. package/dist/utils/scrollUtils.js +13 -10
  126. package/dist/utils/transition.d.ts +45 -0
  127. package/dist/utils/transition.js +0 -28
  128. package/package.json +11 -13
  129. package/dist/analytics/index.js +0 -185
  130. package/dist/components/AccountBalance/AccountBalance.js +0 -35
  131. package/dist/components/AccountBalance/AccountBalance.styles.js +0 -48
  132. package/dist/components/AdminDashboard/Table/Table.js +0 -123
  133. package/dist/components/ButtonContainer/ButtonContainer.styles.js +0 -51
  134. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +0 -34
  135. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +0 -125
  136. package/dist/components/DoubleButton/DoubleButton.styles.js +0 -27
  137. package/dist/components/ErrorMessage/ErrorMessage.styles.js +0 -9
  138. package/dist/components/Icon/Icon2.js +0 -12
  139. package/dist/components/Input/InputUsername.js +0 -92
  140. package/dist/components/Input/RangeInput.styles.js +0 -129
  141. package/dist/components/InvestmentStat/InvestmentStat.js +0 -24
  142. package/dist/components/InvestmentStat/InvestmentStat.styles.js +0 -62
  143. package/dist/components/LatestUpdate/LatestUpdate.js +0 -24
  144. package/dist/components/LatestUpdate/LatestUpdate.styles.js +0 -90
  145. package/dist/components/MultiProgressBar/MultiProgressBar.js +0 -28
  146. package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +0 -105
  147. package/dist/components/PageTransition/PageTransition.js +0 -51
  148. package/dist/components/ProfileStat/ProfileStat.js +0 -29
  149. package/dist/components/ProfileStat/ProfileStat.styles.js +0 -90
  150. package/dist/components/SEO/SEO.js +0 -66
  151. package/dist/components/SideLine/SideLine.js +0 -7
  152. package/dist/components/SideLine/SideLine.styles.js +0 -33
  153. package/dist/components/Slider/Slider.js +0 -31
  154. package/dist/components/Slider/Slider.styles.js +0 -120
  155. package/dist/components/StatusBadge/StatusBadge.styles.js +0 -18
  156. package/dist/components/StokrLoader/media.js +0 -23
  157. package/dist/components/SvgIcons/CameraSvg.js +0 -31
  158. package/dist/components/SvgIcons/DocumentBackSvg.js +0 -20
  159. package/dist/components/SvgIcons/DocumentSmallSvg.js +0 -41
  160. package/dist/components/SvgIcons/DocumentSvg.js +0 -39
  161. package/dist/components/SvgIcons/EthSvg.js +0 -28
  162. package/dist/components/SvgIcons/EurSvg.js +0 -27
  163. package/dist/components/SvgIcons/FaceScanIconSvg.js +0 -17
  164. package/dist/components/SvgIcons/FourSvg.js +0 -7
  165. package/dist/components/SvgIcons/Glassess.js +0 -26
  166. package/dist/components/SvgIcons/OneSvg.js +0 -10
  167. package/dist/components/SvgIcons/PassportSvg.js +0 -37
  168. package/dist/components/SvgIcons/SocialInstagram.js +0 -13
  169. package/dist/components/SvgIcons/SocialMedium.js +0 -21
  170. package/dist/components/SvgIcons/SocialReddit.js +0 -21
  171. package/dist/components/SvgIcons/SocialYoutube.js +0 -22
  172. package/dist/components/SvgIcons/ThreeSvg.js +0 -7
  173. package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +0 -48
  174. package/dist/components/SvgIcons/TwoSvg.js +0 -10
  175. package/dist/components/SvgIcons/UpdateDefaultSvg.js +0 -12
  176. package/dist/components/SvgIcons/UpdateHardSvg.js +0 -10
  177. package/dist/components/SvgIcons/UpdateSoftSvg.js +0 -11
  178. package/dist/components/SvgIcons/UploadSvg.js +0 -12
  179. package/dist/components/TeamOverview/TeamOverview.js +0 -79
  180. package/dist/components/TeamOverview/TeamOverview.styles.js +0 -167
  181. package/dist/components/TransactionDetails/TransactionDetails.js +0 -27
  182. package/dist/components/TransactionDetails/TransactionDetails.styles.js +0 -38
  183. package/dist/components/TransactionInfo/TransactionInfo.js +0 -41
  184. package/dist/components/TransactionInfo/TransactionInfo.styles.js +0 -75
  185. package/dist/components/icons/Arrow.js +0 -38
  186. package/dist/components/icons/Check.js +0 -16
  187. package/dist/components/icons/Facebook.js +0 -10
  188. package/dist/components/icons/Info.js +0 -27
  189. package/dist/components/icons/Instagram.js +0 -10
  190. package/dist/components/icons/LinkIcon.js +0 -49
  191. package/dist/components/icons/LinkedIn.js +0 -13
  192. package/dist/components/icons/Medium.js +0 -13
  193. package/dist/components/icons/Reddit.js +0 -16
  194. package/dist/components/icons/Share.js +0 -31
  195. package/dist/components/icons/Telegram.js +0 -13
  196. package/dist/components/icons/Twitter.js +0 -10
  197. package/dist/components/icons/X.js +0 -10
  198. package/dist/components/icons/Youtube.js +0 -10
  199. package/dist/components/icons/index.js +0 -32
  200. package/dist/components/landing-page/List.js +0 -51
  201. package/dist/components/landing-page/PageContent.js +0 -65
  202. package/dist/components/landing-page/PageText.js +0 -171
  203. package/dist/components/landing-page/PageTitle.js +0 -259
  204. package/dist/constants/style.js +0 -48
  205. package/dist/favicon.ico +0 -0
  206. package/dist/logo192.png +0 -0
  207. package/dist/logo512.png +0 -0
  208. package/dist/manifest.json +0 -25
  209. package/dist/robots.txt +0 -3
  210. package/dist/static/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
  211. package/dist/static/fonts/OpenSans/OpenSans-Bold.ttf.js +0 -4
  212. package/dist/static/fonts/OpenSans/OpenSans-Bold.woff +0 -0
  213. package/dist/static/fonts/OpenSans/OpenSans-Bold.woff.js +0 -4
  214. package/dist/static/fonts/OpenSans/OpenSans-Bold.woff2 +0 -0
  215. package/dist/static/fonts/OpenSans/OpenSans-Bold.woff2.js +0 -4
  216. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.ttf +0 -0
  217. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.ttf.js +0 -4
  218. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff +0 -0
  219. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff.js +0 -4
  220. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff2 +0 -0
  221. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff2.js +0 -4
  222. package/dist/static/fonts/OpenSans/OpenSans-Light.ttf +0 -0
  223. package/dist/static/fonts/OpenSans/OpenSans-Light.ttf.js +0 -4
  224. package/dist/static/fonts/OpenSans/OpenSans-Light.woff +0 -0
  225. package/dist/static/fonts/OpenSans/OpenSans-Light.woff.js +0 -4
  226. package/dist/static/fonts/OpenSans/OpenSans-Light.woff2 +0 -0
  227. package/dist/static/fonts/OpenSans/OpenSans-Light.woff2.js +0 -4
  228. package/dist/static/fonts/OpenSans/OpenSans-Regular.ttf +0 -0
  229. package/dist/static/fonts/OpenSans/OpenSans-Regular.ttf.js +0 -4
  230. package/dist/static/fonts/OpenSans/OpenSans-Regular.woff +0 -0
  231. package/dist/static/fonts/OpenSans/OpenSans-Regular.woff.js +0 -4
  232. package/dist/static/fonts/OpenSans/OpenSans-Regular.woff2 +0 -0
  233. package/dist/static/fonts/OpenSans/OpenSans-Regular.woff2.js +0 -4
  234. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.ttf +0 -0
  235. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.ttf.js +0 -4
  236. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff +0 -0
  237. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff.js +0 -4
  238. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff2 +0 -0
  239. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff2.js +0 -4
  240. package/dist/static/images/avatar-placeholder.png.js +0 -4
  241. package/dist/styles/reactTippy.js +0 -5
  242. package/dist/styles/semanticUi.js +0 -84
  243. package/dist/utils/check-sale-time-left.js +0 -85
  244. package/dist/utils/moment.js +0 -26
@@ -1,24 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import "react";
3
- import PropTypes from "prop-types";
4
- import { Container, ItemLink, ImageWrap, Image, Tag, Title, Text, ReadMore } from "./LatestUpdate.styles.js";
5
- import { LatestUpdateWrapper } from "./LatestUpdate.styles.js";
6
- const LatestUpdate = ({ image = "", tag = "", title, text, url, horizontalPadding = false }) => /* @__PURE__ */ jsx(Container, { to: url, horizontalPadding, children: /* @__PURE__ */ jsxs(ItemLink, { to: url, children: [
7
- image && /* @__PURE__ */ jsx(ImageWrap, { children: /* @__PURE__ */ jsx(Image, { src: image }) }),
8
- tag && /* @__PURE__ */ jsx(Tag, { children: tag }),
9
- /* @__PURE__ */ jsx(Title, { children: title }),
10
- /* @__PURE__ */ jsx(Text, { children: text }),
11
- /* @__PURE__ */ jsx(ReadMore, { as: "span", children: "read more" })
12
- ] }) });
13
- LatestUpdate.propTypes = {
14
- image: PropTypes.string,
15
- tag: PropTypes.string,
16
- title: PropTypes.string.isRequired,
17
- text: PropTypes.string.isRequired,
18
- url: PropTypes.string.isRequired,
19
- horizontalPadding: PropTypes.bool
20
- };
21
- export {
22
- LatestUpdate,
23
- LatestUpdateWrapper
24
- };
@@ -1,90 +0,0 @@
1
- import styled from "styled-components";
2
- import { Link } from "react-router-dom";
3
- import rwd from "../../styles/rwd.js";
4
- import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
5
- import { TextLink } from "../TextLink/TextLink.styles.js";
6
- styled.div`
7
- font-size: 11px;
8
- line-height: 24px;
9
- letter-spacing: 2.06px;
10
- text-transform: uppercase;
11
- margin-bottom: 9px;
12
- `;
13
- styled.div`
14
- font-size: 22px;
15
- font-weight: 900;
16
- letter-spacing: 0.8px;
17
- line-height: 28px;
18
- text-transform: uppercase;
19
- `;
20
- const LatestUpdateWrapper = styled(ComponentWrapper)`
21
- padding: 80px 32px;
22
- ${rwd.Medium`
23
- padding: 128px 64px;
24
- `}
25
- `;
26
- const Container = styled.div.withConfig({
27
- shouldForwardProp: (props) => !["horizontalPadding"].includes(props)
28
- })`
29
- display: block;
30
- padding: 20px 0;
31
-
32
- ${rwd.Medium`
33
- ${(props) => props.horizontalPadding && `
34
- padding: 20px 5%;
35
- `}
36
- `}
37
- `;
38
- const ItemLink = styled(Link)`
39
- display: block;
40
- `;
41
- const ImageWrap = styled.div`
42
- display: block;
43
- height: 42px;
44
- margin-bottom: 12px;
45
- `;
46
- const Image = styled.img`
47
- display: inline-block;
48
- max-width: 100%;
49
- max-height: 100%;
50
- margin-bottom: 12px;
51
- object-fit: contain;
52
- object-position: 0 100%;
53
- `;
54
- const Tag = styled.span`
55
- display: block;
56
- font-size: 11px;
57
- line-height: 24px;
58
- margin-bottom: 12px;
59
- text-transform: uppercase;
60
- `;
61
- const Title = styled.h3`
62
- display: block;
63
- font-family: 'Open Sans';
64
- font-weight: 600;
65
- font-size: 16px;
66
- line-height: 24px;
67
- margin: 0;
68
- margin-bottom: 20px;
69
- `;
70
- const Text = styled.span`
71
- display: block;
72
- font-size: 16px;
73
- font-weight: 300;
74
- line-height: 24px;
75
- margin-bottom: 20px;
76
- `;
77
- const ReadMore = styled(TextLink)`
78
- letter-spacing: 2px;
79
- `;
80
- export {
81
- Container,
82
- Image,
83
- ImageWrap,
84
- ItemLink,
85
- LatestUpdateWrapper,
86
- ReadMore,
87
- Tag,
88
- Text,
89
- Title
90
- };
@@ -1,28 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import "react";
3
- import PropTypes from "prop-types";
4
- import { Bar, BackBar, BarPart, FillProgress, FillBar } from "./MultiProgressBar.styles.js";
5
- const MultiProgressBar = ({ backParts, fillParts, fill }) => /* @__PURE__ */ jsxs(Bar, { children: [
6
- /* @__PURE__ */ jsx(BackBar, { children: backParts?.map((part) => /* @__PURE__ */ jsx(BarPart, { percent: part.value, color: `back-${part.label}` }, part.label)) }),
7
- /* @__PURE__ */ jsx(FillProgress, { percent: fill, children: /* @__PURE__ */ jsx(FillBar, { percent: fill, children: fillParts?.map((part) => /* @__PURE__ */ jsx(BarPart, { percent: part.value, color: `fill-${part.label}` }, part.label)) }) })
8
- ] });
9
- const MultiProgressBarPropTypes = {
10
- backParts: PropTypes.arrayOf(
11
- PropTypes.shape({
12
- value: PropTypes.number.isRequired,
13
- label: PropTypes.string.isRequired
14
- })
15
- ).isRequired,
16
- fillParts: PropTypes.arrayOf(
17
- PropTypes.shape({
18
- value: PropTypes.number.isRequired,
19
- label: PropTypes.string.isRequired
20
- })
21
- ).isRequired,
22
- fill: PropTypes.number.isRequired
23
- };
24
- MultiProgressBar.propTypes = MultiProgressBarPropTypes;
25
- export {
26
- MultiProgressBar,
27
- MultiProgressBarPropTypes
28
- };
@@ -1,105 +0,0 @@
1
- import styled from "styled-components";
2
- const Bar = styled.div`
3
- width: 100%;
4
- position: relative;
5
- display: block;
6
- height: 10px;
7
- background-color: #004bb7;
8
- border-radius: 5px;
9
- overflow: hidden;
10
- `;
11
- const BackBar = styled.div`
12
- z-index: 0;
13
- position: absolute;
14
- top: 0;
15
- left: 0;
16
- display: block;
17
- width: 100%;
18
- height: 100%;
19
- border-radius: 4px;
20
- overflow: hidden;
21
- `;
22
- const FillBar = styled.div.withConfig({
23
- shouldForwardProp: (props) => props !== "percent"
24
- })`
25
- z-index: 1;
26
- position: absolute;
27
- top: 0;
28
- left: 0;
29
- display: block;
30
- width: 100%;
31
- height: 100%;
32
- border-radius: 4px;
33
- overflow: hidden;
34
- transition: transform 0.3s;
35
- transform: translateX(100%);
36
-
37
- ${(props) => props.percent && `
38
- transform: translateX(${100 - props.percent}%);
39
- `}
40
- `;
41
- const FillProgress = styled.div.withConfig({
42
- shouldForwardProp: (props) => props !== "percent"
43
- })`
44
- z-index: 1;
45
- position: absolute;
46
- top: 0;
47
- left: 0;
48
- display: block;
49
- width: 100%;
50
- height: 100%;
51
- border-radius: 4px;
52
- overflow: hidden;
53
- transition: transform 0.3s;
54
- transform: translateX(-100%);
55
-
56
- ${(props) => props.percent && `
57
- transform: translateX(${props.percent - 100}%);
58
- `}
59
- `;
60
- const BarPart = styled.div.withConfig({
61
- shouldForwardProp: (props) => !["percent", "color"].includes(props)
62
- })`
63
- display: block;
64
- height: 100%;
65
- float: left;
66
- background-color: #000;
67
- transition: width 0.3s;
68
-
69
- ${(props) => `
70
- width: ${props.percent || 0}%;
71
- `}
72
-
73
- ${(props) => props.color && `
74
- ${props.color === "back-empty" ? `
75
- background-color: transparent;
76
- ` : ""}
77
- ${props.color === "back-minimum" ? `
78
- background-color: #4a90e2;
79
- ` : ""}
80
- ${props.color === "back-disabled" ? `
81
- background-color: #4a90e2;
82
- background-image: repeating-linear-gradient(-45deg, #004bb7, #004bb7 2px, #4a90e2 2px, #4a90e2 5px);
83
- ` : ""}
84
- ${props.color === "fill-empty" ? `
85
- background-color: transparent;
86
- ` : ""}
87
- ${props.color === "fill-minimum" ? `
88
- background-color: #fff;
89
- ` : ""}
90
- ${props.color === "fill-minimum-grey" ? `
91
- background-color: #e1e1e1;
92
- ` : ""}
93
- ${props.color === "fill-bought" ? `
94
- background-color: #69bd53;
95
- background-image: linear-gradient(to left, #a9ef9c, #69bd53);
96
- ` : ""}
97
- `}
98
- `;
99
- export {
100
- BackBar,
101
- Bar,
102
- BarPart,
103
- FillBar,
104
- FillProgress
105
- };
@@ -1,51 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Fragment } from "react";
3
- import PropTypes from "prop-types";
4
- import { TransitionGroup, Transition } from "../../utils/transition.js";
5
- const timeout = 300;
6
- const getTransitionStyles = {
7
- entering: {
8
- position: "absolute",
9
- opacity: 0
10
- },
11
- entered: {
12
- transition: `opacity ${timeout}ms ease-in-out`,
13
- opacity: 1
14
- },
15
- exiting: {
16
- transition: `opacity ${timeout}ms ease-in-out`,
17
- opacity: 0
18
- }
19
- };
20
- const PageTransition = (props) => {
21
- const { children, location } = props;
22
- return /* @__PURE__ */ jsxs(Fragment, { children: [
23
- /* @__PURE__ */ jsx(TransitionGroup, { children: /* @__PURE__ */ jsx(
24
- Transition,
25
- {
26
- timeout: {
27
- enter: timeout,
28
- exit: timeout
29
- },
30
- children: (status) => /* @__PURE__ */ jsx(
31
- "div",
32
- {
33
- style: {
34
- ...getTransitionStyles[status]
35
- },
36
- children
37
- }
38
- )
39
- },
40
- location.pathname
41
- ) }),
42
- /* @__PURE__ */ jsx("div", { id: "modalPortal" })
43
- ] });
44
- };
45
- PageTransition.propTypes = {
46
- children: PropTypes.node.isRequired,
47
- location: PropTypes.instanceOf(Object).isRequired
48
- };
49
- export {
50
- PageTransition
51
- };
@@ -1,29 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import "react";
3
- import PropTypes from "prop-types";
4
- import { Wrapper, Label, Value, Equal } from "./ProfileStat.styles.js";
5
- const lineBreaker = {
6
- wordBreak: "break-all"
7
- };
8
- const ProfileStat = ({ label, unit = "", value, eqUnit = "", eqValue, withBorder }) => /* @__PURE__ */ jsxs(Wrapper, { withBorder, children: [
9
- /* @__PURE__ */ jsx(Label, { withBorder, children: label }),
10
- /* @__PURE__ */ jsxs(Value, { style: lineBreaker, children: [
11
- unit && /* @__PURE__ */ jsx("span", { children: unit }),
12
- value
13
- ] }),
14
- eqValue && eqUnit ? /* @__PURE__ */ jsxs(Equal, { children: [
15
- "= ",
16
- eqUnit && /* @__PURE__ */ jsx("span", { children: eqUnit }),
17
- eqValue
18
- ] }) : ""
19
- ] });
20
- ProfileStat.propTypes = {
21
- label: PropTypes.string.isRequired,
22
- unit: PropTypes.string,
23
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
24
- eqUnit: PropTypes.string,
25
- eqValue: PropTypes.string.isRequired
26
- };
27
- export {
28
- ProfileStat
29
- };
@@ -1,90 +0,0 @@
1
- import styled from "styled-components";
2
- import rwd from "../../styles/rwd.js";
3
- import theme from "../../styles/theme.js";
4
- const Wrapper = styled.div.withConfig({
5
- shouldForwardProp: (props) => !["withBorder"].includes(props)
6
- })`
7
- display: flex;
8
- flex-direction: column;
9
- justify-content: center;
10
- text-align: center;
11
- flex-grow: 1;
12
- background-color: ${() => theme.cPrimary};
13
- color: ${() => theme.cWhite};
14
- padding: 32px;
15
-
16
- ${(props) => props.withBorder && `
17
- box-shadow: inset 0 0.4px 0 0 #313131;
18
- `}
19
-
20
- ${rwd.Medium`
21
- padding: 12px 32px;
22
- text-align: left;
23
- `}
24
-
25
- ${rwd.Large`
26
- padding: 12px 64px;
27
- text-align: left;
28
- `}
29
-
30
- @media screen and (max-width: 768px) {
31
- max-width: 100vw;
32
- }
33
- `;
34
- const Label = styled.div.withConfig({
35
- shouldForwardProp: (props) => !["withBorder"].includes(props)
36
- })`
37
- font-size: 11px;
38
- line-height: 2.18;
39
- letter-spacing: 2.1px;
40
- text-transform: uppercase;
41
- margin-bottom: 10px;
42
-
43
- ${(props) => props.withBorder && `
44
- color: #88fa51;
45
- `}
46
- `;
47
- const Value = styled.div`
48
- font-weight: 300;
49
- font-size: 32px;
50
- line-height: 36px;
51
- letter-spacing: 2.43px;
52
- text-transform: uppercase;
53
-
54
- & > span {
55
- &:after {
56
- content: ' ';
57
- }
58
- }
59
-
60
- ${rwd.Medium`
61
- font-size: 44px;
62
- line-height: 48px;
63
- `}
64
-
65
- ${rwd.Large`
66
- font-size: 55px;
67
- line-height: 58px;
68
- `}
69
- `;
70
- const Equal = styled.div`
71
- font-size: 11px;
72
- line-height: 2.18;
73
- letter-spacing: 2.1px;
74
- text-transform: uppercase;
75
- margin-top: 10px;
76
- color: ${() => theme.cLighterGreen};
77
- overflow-wrap: break-word;
78
-
79
- & > span {
80
- &:after {
81
- content: ' ';
82
- }
83
- }
84
- `;
85
- export {
86
- Equal,
87
- Label,
88
- Value,
89
- Wrapper
90
- };
@@ -1,66 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import "react";
3
- import PropTypes from "prop-types";
4
- import Helmet from "react-helmet";
5
- function SEO({ description = "", lang = "en", meta = [], keywords = [], title, author = "" }) {
6
- return /* @__PURE__ */ jsx(
7
- Helmet,
8
- {
9
- htmlAttributes: {
10
- lang
11
- },
12
- title,
13
- titleTemplate: "STOKR • %s",
14
- meta: [
15
- {
16
- name: "description",
17
- content: description
18
- },
19
- {
20
- property: "og:title",
21
- content: title
22
- },
23
- {
24
- property: "og:description",
25
- content: description
26
- },
27
- {
28
- property: "og:type",
29
- content: "website"
30
- },
31
- {
32
- name: "twitter:card",
33
- content: "summary"
34
- },
35
- {
36
- name: "twitter:creator",
37
- content: author
38
- },
39
- {
40
- name: "twitter:title",
41
- content: title
42
- },
43
- {
44
- name: "twitter:description",
45
- content: description
46
- }
47
- ].concat(
48
- keywords?.length > 0 ? {
49
- name: "keywords",
50
- content: keywords.join(", ")
51
- } : []
52
- ).concat(meta)
53
- }
54
- );
55
- }
56
- SEO.propTypes = {
57
- description: PropTypes.string,
58
- lang: PropTypes.string,
59
- meta: PropTypes.instanceOf(Array),
60
- keywords: PropTypes.arrayOf(PropTypes.string),
61
- title: PropTypes.string.isRequired,
62
- author: PropTypes.string
63
- };
64
- export {
65
- SEO
66
- };
@@ -1,7 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import "react";
3
- import { Line, Bar } from "./SideLine.styles.js";
4
- const SideLine = () => /* @__PURE__ */ jsx(Line, { children: /* @__PURE__ */ jsx(Bar, {}) });
5
- export {
6
- SideLine
7
- };
@@ -1,33 +0,0 @@
1
- import styled from "styled-components";
2
- import rwd from "../../styles/rwd.js";
3
- import theme from "../../styles/theme.js";
4
- const Line = styled.div`
5
- display: none;
6
- position: absolute;
7
- top: 0;
8
- right: 20px;
9
- width: 8px;
10
- height: 100%;
11
- font-size: 0;
12
- border-left: 1px solid ${() => theme.cGrey};
13
-
14
- ${rwd.Medium`
15
- display: block;
16
- `}
17
-
18
- ${rwd.Large`
19
- right: 30px;
20
- `}
21
- `;
22
- const Bar = styled.div`
23
- position: absolute;
24
- top: 60px;
25
- left: 0;
26
- width: 100%;
27
- height: 40px;
28
- background-color: ${() => theme.cPrimary};
29
- `;
30
- export {
31
- Bar,
32
- Line
33
- };
@@ -1,31 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import "react";
3
- import PropTypes from "prop-types";
4
- import Slick from "react-slick";
5
- import "slick-carousel/slick/slick.css";
6
- import "slick-carousel/slick/slick-theme.css";
7
- import { WrapperSlider } from "./Slider.styles.js";
8
- const Slider = ({ children, autoplay = 0, dots = false, arrows = false, infinite = true, rtl = false }) => {
9
- const settings = {
10
- dots,
11
- arrows,
12
- infinite,
13
- speed: 600,
14
- autoplay: !!autoplay,
15
- autoplaySpeed: autoplay,
16
- slidesToShow: 1,
17
- slidesToScroll: 1,
18
- rtl
19
- };
20
- return /* @__PURE__ */ jsx(WrapperSlider, { children: /* @__PURE__ */ jsx(Slick, { ...settings, children }) });
21
- };
22
- Slider.propTypes = {
23
- children: PropTypes.node.isRequired,
24
- autoplay: PropTypes.number,
25
- dots: PropTypes.bool,
26
- arrows: PropTypes.bool,
27
- infinite: PropTypes.bool
28
- };
29
- export {
30
- Slider
31
- };
@@ -1,120 +0,0 @@
1
- import styled from "styled-components";
2
- const WrapperSlider = styled.div`
3
- height: 100%;
4
-
5
- .slick-list {
6
- z-index: 0;
7
- }
8
-
9
- .slick-arrow {
10
- z-index: 1;
11
- width: 24px;
12
- height: 24px;
13
-
14
- &.slick-prev,
15
- &.slick-next {
16
- &:before {
17
- font-family: 'Ionicons';
18
- speak: none;
19
- font-style: normal;
20
- font-weight: normal;
21
- font-variant: normal;
22
- text-transform: none;
23
- text-rendering: auto;
24
- -webkit-font-smoothing: antialiased;
25
- -moz-osx-font-smoothing: grayscale;
26
- font-size: 20px;
27
- line-height: 24px;
28
- text-align: center;
29
- text-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
30
- opacity: 1;
31
- color: #fff;
32
- transition: color 0.2s;
33
- }
34
-
35
- &:hover {
36
- &:before {
37
- color: #0050ca;
38
- }
39
- }
40
- }
41
-
42
- &.slick-prev {
43
- left: 4px;
44
-
45
- &:before {
46
- content: '\f3cf';
47
- }
48
- }
49
-
50
- &.slick-next {
51
- right: 4px;
52
-
53
- &:before {
54
- content: '\f3d1';
55
- }
56
- }
57
- }
58
-
59
- .slick-dots {
60
- z-index: 1;
61
- height: auto;
62
- bottom: 4px;
63
-
64
- li {
65
- display: inline-block;
66
- width: 24px;
67
- height: 24px;
68
- margin: 0;
69
-
70
- button {
71
- display: block;
72
- padding: 8px;
73
- width: 24px;
74
- height: 24px;
75
-
76
- &:before {
77
- position: relative;
78
- content: '';
79
- display: block;
80
- width: 8px;
81
- height: 8px;
82
- border-radius: 4px;
83
- background-color: #fff;
84
- opacity: 1;
85
- box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
86
- transition: background-color 0.2s;
87
- }
88
-
89
- &:hover {
90
- &:before {
91
- background-color: #0050ca;
92
- }
93
- }
94
- }
95
-
96
- &.slick-active {
97
- button {
98
- &:before {
99
- background-color: #ee220d;
100
- }
101
- }
102
- }
103
- }
104
- }
105
- `;
106
- const ImageSlide = styled.img`
107
- width: 100%;
108
- height: 100%;
109
- object-fit: cover;
110
- object-position: center center;
111
- `;
112
- const ImageSlideWrapper = styled.div`
113
- height: 193px;
114
- position: relative;
115
- `;
116
- export {
117
- ImageSlide,
118
- ImageSlideWrapper,
119
- WrapperSlider
120
- };
@@ -1,18 +0,0 @@
1
- import styled from "styled-components";
2
- import theme from "../../styles/theme.js";
3
- const StatusBadge = styled.div`
4
- display: inline-block;
5
- vertical-align: top;
6
- padding: 0px 16px;
7
- background-color: ${() => theme.cBlack};
8
- color: ${() => theme.cWhite};
9
- font-weight: 600;
10
- font-size: 8px;
11
- letter-spacing: 1.78px;
12
- line-height: 16px;
13
- border-radius: 8px;
14
- margin-left: 12px;
15
- `;
16
- export {
17
- StatusBadge
18
- };