@stokr/components-library 4.2.6 → 5.0.1

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 (274) hide show
  1. package/README.md +147 -118
  2. package/dist/components/AddressItem/AddressItem.styles.js +12 -14
  3. package/dist/components/AdminDashboard/Table/Table.styles.d.ts +110 -0
  4. package/dist/components/AdminDashboard/Table/Table.styles.js +21 -20
  5. package/dist/components/AgreementItem/AgreementItem.styles.js +1 -1
  6. package/dist/components/BackButton/BackButton.styles.d.ts +24 -0
  7. package/dist/components/BackButton/BackButton.styles.js +15 -16
  8. package/dist/components/Background/Background.styles.d.ts +30 -0
  9. package/dist/components/Background/Background.styles.js +3 -3
  10. package/dist/components/BasicTable/BasicTable.d.ts +14 -0
  11. package/dist/components/BasicTable/BasicTable.js +0 -10
  12. package/dist/components/BasicTable/BasicTable.styles.d.ts +22 -0
  13. package/dist/components/BasicTable/BasicTable.styles.js +6 -7
  14. package/dist/components/BlogPost/BlogPost.js +3 -3
  15. package/dist/components/BlogPost/BlogPost.styles.d.ts +67 -0
  16. package/dist/components/BlogPost/BlogPost.styles.js +14 -20
  17. package/dist/components/Button/Button.styles.d.ts +12 -8
  18. package/dist/components/Button/Button.styles.js +131 -115
  19. package/dist/components/Button/GlareButton.d.ts +31 -0
  20. package/dist/components/Button/GlareButton.js +4 -22
  21. package/dist/components/Card/Card.styles.d.ts +30 -0
  22. package/dist/components/Card/Card.styles.js +3 -4
  23. package/dist/components/CardTabs/CardTabs.styles.js +26 -29
  24. package/dist/components/ChartLegend/ChartLegend.styles.d.ts +46 -0
  25. package/dist/components/ChartLegend/ChartLegend.styles.js +4 -5
  26. package/dist/components/Checkbox/Checkbox.styles.js +10 -12
  27. package/dist/components/Checklist/ChecklistCard.d.ts +18 -0
  28. package/dist/components/Checklist/ChecklistCard.js +4 -17
  29. package/dist/components/Checklist/ChecklistCard.styles.d.ts +17 -0
  30. package/dist/components/Checklist/ChecklistCard.styles.js +7 -7
  31. package/dist/components/Chips/Chip.d.ts +18 -0
  32. package/dist/components/Chips/Chip.js +4 -20
  33. package/dist/components/Chips/Chip.styles.d.ts +23 -0
  34. package/dist/components/Chips/Chip.styles.js +3 -6
  35. package/dist/components/Chips/ChipWrapper.js +2 -2
  36. package/dist/components/Collapsible/Collapsible.styles.js +20 -20
  37. package/dist/components/ComponentScroll/ComponentScroll.js +2 -1
  38. package/dist/components/ComponentScroll/ComponentScroll.styles.d.ts +34 -0
  39. package/dist/components/ComponentScroll/ComponentScroll.styles.js +15 -12
  40. package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +11 -13
  41. package/dist/components/ConfirmModal/ConfirmModal.styles.d.ts +18 -0
  42. package/dist/components/ConfirmModal/ConfirmModal.styles.js +6 -7
  43. package/dist/components/Country/CountrySelect.js +6 -6
  44. package/dist/components/CryptoAddress/ComponentWrap.d.ts +9 -0
  45. package/dist/components/CryptoAddress/ComponentWrap.js +7 -10
  46. package/dist/components/CryptoAddress/CryptoAddress.d.ts +45 -0
  47. package/dist/components/CryptoAddress/CryptoAddress.js +9 -41
  48. package/dist/components/CryptoAddress/CryptoAddress.styles.d.ts +85 -0
  49. package/dist/components/CryptoAddress/CryptoAddress.styles.js +21 -22
  50. package/dist/components/CryptoAddress/RadioWrap.d.ts +21 -0
  51. package/dist/components/CryptoAddress/RadioWrap.js +1 -16
  52. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.d.ts +30 -0
  53. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +19 -11
  54. package/dist/components/DisplayOnBreakpoint/DisplayOnBreakpoint.d.ts +12 -0
  55. package/dist/components/DisplayOnBreakpoint/DisplayOnBreakpoint.js +28 -0
  56. package/dist/components/FAQ/FAQ.styles.d.ts +2 -1
  57. package/dist/components/FAQ/FAQ.styles.js +15 -19
  58. package/dist/components/Form/Form.styles.d.ts +22 -0
  59. package/dist/components/Form/Form.styles.js +7 -8
  60. package/dist/components/Grid/Grid.styles.d.ts +49 -0
  61. package/dist/components/Grid/Grid.styles.js +37 -40
  62. package/dist/components/IdentityInfo/IdentityInfo.styles.d.ts +24 -0
  63. package/dist/components/IdentityInfo/IdentityInfo.styles.js +5 -6
  64. package/dist/components/InfoBox/InfoBox.d.ts +22 -0
  65. package/dist/components/InfoBox/InfoBox.js +26 -65
  66. package/dist/components/InfoIcon/InfoIcon.styles.js +2 -3
  67. package/dist/components/Input/DatePickerInput.d.ts +24 -0
  68. package/dist/components/Input/DatePickerInput.js +2 -13
  69. package/dist/components/Input/DatePickerInput.styles.d.ts +18 -0
  70. package/dist/components/Input/DatePickerInput.styles.js +27 -24
  71. package/dist/components/Input/Input.js +1 -0
  72. package/dist/components/Input/Input.styles.d.ts +1 -0
  73. package/dist/components/Input/Input.styles.js +27 -24
  74. package/dist/components/Input/InputPassword.styles.d.ts +32 -0
  75. package/dist/components/Input/InputPassword.styles.js +11 -12
  76. package/dist/components/Input/InputWithButton.styles.d.ts +14 -0
  77. package/dist/components/Input/InputWithButton.styles.js +5 -6
  78. package/dist/components/Input/MultiSelect.d.ts +60 -0
  79. package/dist/components/Input/MultiSelect.js +20 -52
  80. package/dist/components/Input/OtpInput.d.ts +17 -0
  81. package/dist/components/Input/OtpInput.js +8 -15
  82. package/dist/components/Input/RangeInput.d.ts +14 -0
  83. package/dist/components/Input/RangeInput.js +2 -17
  84. package/dist/components/Input/SearchInput.styles.d.ts +15 -0
  85. package/dist/components/Input/SearchInput.styles.js +10 -11
  86. package/dist/components/Input/Select.js +91 -25
  87. package/dist/components/Input/Select.styles.d.ts +2 -2
  88. package/dist/components/Input/Select.styles.js +24 -26
  89. package/dist/components/Input/TableFilterDropdown.d.ts +33 -0
  90. package/dist/components/Input/TableFilterDropdown.js +6 -39
  91. package/dist/components/Input/Textarea.styles.d.ts +9 -0
  92. package/dist/components/Input/Textarea.styles.js +9 -10
  93. package/dist/components/MaterialIcon/MaterialIcon.d.ts +17 -7
  94. package/dist/components/MaterialIcon/MaterialIcon.js +14 -3
  95. package/dist/components/MenuNav/MenuNav.styles.d.ts +6 -0
  96. package/dist/components/MenuNav/MenuNav.styles.js +3 -0
  97. package/dist/components/Modal/Modal.styles.js +35 -36
  98. package/dist/components/Modal/PaymentModal.d.ts +55 -0
  99. package/dist/components/Modal/PaymentModal.js +11 -13
  100. package/dist/components/Modal/SideModal.styles.js +13 -14
  101. package/dist/components/Modal/SideModalParts.js +18 -20
  102. package/dist/components/Modal/SuccessModal/SuccessModal.styles.d.ts +15 -0
  103. package/dist/components/Modal/SuccessModal/SuccessModal.styles.js +3 -4
  104. package/dist/components/NotificationCounter/NotificationCounter.styles.d.ts +8 -0
  105. package/dist/components/NotificationCounter/NotificationCounter.styles.js +2 -3
  106. package/dist/components/Number/Number.js +1 -1
  107. package/dist/components/Number/Number.styles.d.ts +4 -0
  108. package/dist/components/Number/Number.styles.js +2 -3
  109. package/dist/components/Pagination/Pagination.styles.d.ts +15 -0
  110. package/dist/components/Pagination/Pagination.styles.js +12 -11
  111. package/dist/components/PanelCard/PanelCard.styles.js +24 -27
  112. package/dist/components/Payment/DetailRows.d.ts +14 -0
  113. package/dist/components/Payment/DetailRows.js +1 -2
  114. package/dist/components/Payment/DetailsToggle.d.ts +23 -0
  115. package/dist/components/Payment/DetailsToggle.js +12 -4
  116. package/dist/components/Payment/PaymentDetailsCard.d.ts +95 -0
  117. package/dist/components/Payment/PaymentDetailsCard.js +32 -23
  118. package/dist/components/Payment/PaymentDisplay.d.ts +59 -0
  119. package/dist/components/Payment/PaymentDisplay.js +18 -11
  120. package/dist/components/Payment/PaymentPendingCard.d.ts +39 -0
  121. package/dist/components/Payment/PaymentPendingCard.js +13 -13
  122. package/dist/components/Payment/PaymentSuccessCard.d.ts +41 -0
  123. package/dist/components/Payment/PaymentSuccessCard.js +27 -11
  124. package/dist/components/Payment/TimerComponent.d.ts +26 -0
  125. package/dist/components/Payment/TimerComponent.js +6 -7
  126. package/dist/components/Process/Process.styles.d.ts +11 -0
  127. package/dist/components/Process/Process.styles.js +22 -19
  128. package/dist/components/ProfileBadge/ProfileBadge.d.ts +13 -0
  129. package/dist/components/ProfileBadge/ProfileBadge.js +14 -15
  130. package/dist/components/ProfileBadge/ProfileBadge.styles.d.ts +10 -0
  131. package/dist/components/ProfileBadge/ProfileBadge.styles.js +8 -9
  132. package/dist/components/ProfileBox/ProfileBox.js +3 -3
  133. package/dist/components/ProfileBox/ProfileBox.styles.d.ts +22 -0
  134. package/dist/components/ProfileBox/ProfileBox.styles.js +18 -7
  135. package/dist/components/Radio/Radio.styles.d.ts +24 -0
  136. package/dist/components/Radio/Radio.styles.js +19 -11
  137. package/dist/components/RefreshButton/RefreshButton.styles.d.ts +29 -0
  138. package/dist/components/RefreshButton/RefreshButton.styles.js +5 -6
  139. package/dist/components/RequestDataBox/RequestDataBox.styles.d.ts +9 -0
  140. package/dist/components/RequestDataBox/RequestDataBox.styles.js +4 -5
  141. package/dist/components/Section/Section.d.ts +1 -1
  142. package/dist/components/Section/Section.js +4 -3
  143. package/dist/components/Section/Section.styles.d.ts +5 -0
  144. package/dist/components/Section/Section.styles.js +31 -36
  145. package/dist/components/SectionTitle/SectionTitle.styles.js +1 -1
  146. package/dist/components/Skeleton/Skeleton.d.ts +4 -2
  147. package/dist/components/Skeleton/Skeleton.js +8 -8
  148. package/dist/components/SmartLink/SmartLink.js +2 -2
  149. package/dist/components/Snackbar/Snackbar.styles.d.ts +28 -0
  150. package/dist/components/Snackbar/Snackbar.styles.js +10 -29
  151. package/dist/components/SpanButton/SpanButton.styles.js +2 -2
  152. package/dist/components/StatusDot/StatusDot.d.ts +29 -0
  153. package/dist/components/StatusDot/StatusDot.js +17 -23
  154. package/dist/components/StatusDot/StatusDot.styles.d.ts +20 -0
  155. package/dist/components/StatusTag/StatusTag.d.ts +35 -0
  156. package/dist/components/StatusTag/StatusTag.js +9 -38
  157. package/dist/components/StatusTag/StatusTag.styles.d.ts +28 -0
  158. package/dist/components/StatusTag/StatusTag.styles.js +6 -6
  159. package/dist/components/StepController/StepController.styles.d.ts +23 -0
  160. package/dist/components/StepController/StepController.styles.js +12 -14
  161. package/dist/components/StepSidebar/MobileStepProgress.styles.js +4 -5
  162. package/dist/components/StepSidebar/StepProgress.styles.js +29 -26
  163. package/dist/components/StepSidebar/StepSidebar.js +1 -1
  164. package/dist/components/StepSidebar/StepSidebar.styles.d.ts +1 -0
  165. package/dist/components/StepSidebar/StepSidebar.styles.js +30 -31
  166. package/dist/components/StokrLoader/StokrLoader.d.ts +25 -3
  167. package/dist/components/StokrLoader/StokrLoader.js +171 -26
  168. package/dist/components/SvgIcons/AdminBadgeSvg.js +1 -0
  169. package/dist/components/SvgIcons/CapsLockSvg.js +1 -0
  170. package/dist/components/SvgIcons/LogoSvg.js +1 -11
  171. package/dist/components/SvgIcons/RefreshSvg.js +1 -0
  172. package/dist/components/SvgIcons/VerifiedBadge.js +2 -4
  173. package/dist/components/Switch/Switch.styles.d.ts +20 -0
  174. package/dist/components/Switch/Switch.styles.js +10 -11
  175. package/dist/components/Tabs/Tabs.js +2 -2
  176. package/dist/components/TabsNav/TabsNav.styles.d.ts +25 -0
  177. package/dist/components/TabsNav/TabsNav.styles.js +8 -9
  178. package/dist/components/TaxResidenceCard/TaxResidenceCard.js +1 -2
  179. package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.d.ts +74 -0
  180. package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +31 -35
  181. package/dist/components/Text/Text.styles.d.ts +17 -1
  182. package/dist/components/Text/Text.styles.js +50 -25
  183. package/dist/components/TextLink/TextLink.styles.d.ts +16 -0
  184. package/dist/components/TextLink/TextLink.styles.js +4 -4
  185. package/dist/components/Timeline/Timeline.styles.d.ts +41 -0
  186. package/dist/components/Timeline/Timeline.styles.js +14 -15
  187. package/dist/components/Timeline/TimelineStep.js +1 -1
  188. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  189. package/dist/components/Tooltip/Tooltip.js +2 -2
  190. package/dist/components/Tooltip/Tooltip.styles.js +2 -3
  191. package/dist/components/breakdown/Breakdown.d.ts +18 -0
  192. package/dist/components/breakdown/Breakdown.js +7 -7
  193. package/dist/components/logo/Logo.js +1 -1
  194. package/dist/design-system/css/base.css +74 -0
  195. package/dist/design-system/css/index.css +5 -0
  196. package/dist/design-system/fonts/Inter-LICENSE.txt +93 -0
  197. package/dist/design-system/fonts/inter-bitcoin-sign.woff2 +0 -0
  198. package/dist/design-system/fonts/inter-latin-ext.woff2 +0 -0
  199. package/dist/design-system/fonts/inter-latin.woff2 +0 -0
  200. package/dist/design-system/fonts/open-sans-latin-ext-italic.woff2 +0 -0
  201. package/dist/design-system/fonts/open-sans-latin-ext.woff2 +0 -0
  202. package/dist/design-system/fonts/open-sans-latin-italic.woff2 +0 -0
  203. package/dist/design-system/fonts/open-sans-latin.woff2 +0 -0
  204. package/dist/design-system/generated/fonts.css +296 -0
  205. package/dist/design-system/generated/text-classes.css +198 -0
  206. package/dist/design-system/generated/text-styles.d.ts +26 -0
  207. package/dist/design-system/generated/text-styles.js +179 -0
  208. package/dist/design-system/generated/tokens.css +429 -0
  209. package/dist/design-system/index.d.ts +9 -0
  210. package/dist/design-system/stories/foundations.d.ts +31 -0
  211. package/dist/design-system/stories/foundationsData.d.ts +18 -0
  212. package/dist/design-system/styled/breakpoint.d.ts +43 -0
  213. package/dist/design-system/styled/breakpoint.js +27 -0
  214. package/dist/design-system/styled/build-theme.d.ts +21 -0
  215. package/dist/design-system/styled/build-theme.js +27 -0
  216. package/dist/design-system/styled/text.d.ts +3 -0
  217. package/dist/design-system/styled/text.js +5 -0
  218. package/dist/design-system/styled/theme.d.ts +6 -0
  219. package/dist/design-system/tokens/breakpoints.d.ts +17 -0
  220. package/dist/design-system/tokens/breakpoints.js +16 -0
  221. package/dist/design-system/tokens/colors.d.ts +92 -0
  222. package/dist/design-system/tokens/colors.js +98 -0
  223. package/dist/design-system/tokens/fonts.d.ts +32 -0
  224. package/dist/design-system/tokens/fonts.js +49 -0
  225. package/dist/design-system/tokens/index.d.ts +6 -0
  226. package/dist/design-system/tokens/layout.d.ts +71 -0
  227. package/dist/design-system/tokens/layout.js +40 -0
  228. package/dist/design-system/tokens/semantic.d.ts +272 -0
  229. package/dist/design-system/tokens/semantic.js +76 -0
  230. package/dist/design-system/tokens/typography.d.ts +38 -0
  231. package/dist/design-system/tokens/typography.js +120 -0
  232. package/dist/hooks/useMediaQuery.d.ts +1 -1
  233. package/dist/index.d.ts +115 -53
  234. package/dist/index.js +48 -43
  235. package/dist/static/images/numbers/number_eight.svg +1 -1
  236. package/dist/static/images/numbers/number_eight.svg.js +1 -1
  237. package/dist/static/images/numbers/number_five.svg +2 -2
  238. package/dist/static/images/numbers/number_five.svg.js +1 -1
  239. package/dist/static/images/numbers/number_four.svg +1 -1
  240. package/dist/static/images/numbers/number_four.svg.js +1 -1
  241. package/dist/static/images/numbers/number_nine.svg +2 -2
  242. package/dist/static/images/numbers/number_nine.svg.js +1 -1
  243. package/dist/static/images/numbers/number_one.svg +2 -2
  244. package/dist/static/images/numbers/number_one.svg.js +1 -1
  245. package/dist/static/images/numbers/number_seven.svg +2 -2
  246. package/dist/static/images/numbers/number_seven.svg.js +1 -1
  247. package/dist/static/images/numbers/number_six.svg +2 -2
  248. package/dist/static/images/numbers/number_six.svg.js +1 -1
  249. package/dist/static/images/numbers/number_three.svg +1 -1
  250. package/dist/static/images/numbers/number_three.svg.js +1 -1
  251. package/dist/static/images/numbers/number_two.svg +2 -2
  252. package/dist/static/images/numbers/number_two.svg.js +1 -1
  253. package/dist/static/images/numbers/number_zero.svg +1 -1
  254. package/dist/static/images/numbers/number_zero.svg.js +1 -1
  255. package/dist/styles/borderedField.d.ts +1 -1
  256. package/dist/styles/borderedField.js +15 -18
  257. package/dist/utils/customHooks.d.ts +4 -4
  258. package/dist/utils/customHooks.js +6 -6
  259. package/package.json +16 -11
  260. package/dist/static/images/address-refreshing.gif.js +0 -4
  261. package/dist/static/images/process-waiting.gif.js +0 -4
  262. package/dist/styles/colors.d.ts +0 -68
  263. package/dist/styles/colors.js +0 -69
  264. package/dist/styles/elevation.d.ts +0 -13
  265. package/dist/styles/elevation.js +0 -15
  266. package/dist/styles/global.js +0 -63
  267. package/dist/styles/rwd.d.ts +0 -55
  268. package/dist/styles/rwd.js +0 -79
  269. package/dist/styles/spacing.d.ts +0 -36
  270. package/dist/styles/spacing.js +0 -38
  271. package/dist/styles/theme.d.ts +0 -92
  272. package/dist/styles/theme.js +0 -36
  273. package/dist/styles/typography.d.ts +0 -42
  274. package/dist/styles/typography.js +0 -56
@@ -0,0 +1,28 @@
1
+ import { StatusTagVariant } from './StatusTag';
2
+ interface StatusTagColorProps {
3
+ colorActive?: boolean;
4
+ hoverColor?: string;
5
+ disableHoverColor?: boolean;
6
+ }
7
+ export declare const StatusTagContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
8
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
9
+ }, {
10
+ hasClick?: boolean;
11
+ }>> & string;
12
+ export declare const StatusTagWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
13
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
14
+ }, {
15
+ minWidth?: string;
16
+ center?: boolean;
17
+ $variant?: StatusTagVariant;
18
+ }>> & string;
19
+ export declare const IconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
20
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
21
+ }, StatusTagColorProps & {
22
+ iconColor?: string;
23
+ useStroke?: boolean;
24
+ }>> & string;
25
+ export declare const StatusText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
26
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
27
+ }, StatusTagColorProps>> & string;
28
+ export {};
@@ -1,5 +1,4 @@
1
1
  import styled from "styled-components";
2
- import { colors } from "../../styles/colors.js";
3
2
  const StatusTagContainer = styled.div.withConfig({
4
3
  shouldForwardProp: (props) => !["hasClick"].includes(props)
5
4
  })`
@@ -12,14 +11,15 @@ const StatusTagContainer = styled.div.withConfig({
12
11
  }
13
12
  `;
14
13
  const StatusTagWrapper = styled.div.withConfig({
15
- shouldForwardProp: (props) => !["minWidth", "center"].includes(props)
14
+ shouldForwardProp: (props) => !["minWidth", "center", "$variant"].includes(props)
16
15
  })`
17
16
  display: flex;
18
17
  align-items: center;
19
18
  gap: 6px;
20
19
  padding: 5px 8px;
21
- background-color: transparent;
22
- border: 1px solid ${colors.lightGrey};
20
+ background-color: ${(props) => props.$variant ? `var(--stokr-tag-${props.$variant}-bg)` : "transparent"};
21
+ color: ${(props) => props.$variant ? `var(--stokr-tag-${props.$variant}-text)` : "var(--stokr-text-primary)"};
22
+ border: 1px solid ${(props) => props.$variant ? "transparent" : "var(--stokr-border-subtle)"};
23
23
  border-radius: 6px;
24
24
  white-space: nowrap;
25
25
  min-width: ${(props) => props.minWidth || "auto"};
@@ -34,7 +34,7 @@ const IconWrapper = styled.div.withConfig({
34
34
  flex-shrink: 0;
35
35
  width: 12px;
36
36
  height: 12px;
37
- color: ${(props) => props.colorActive && props.hoverColor ? props.hoverColor : props.iconColor || colors.grey2};
37
+ color: ${(props) => props.colorActive && props.hoverColor ? props.hoverColor : props.iconColor || "var(--stokr-text-tertiary)"};
38
38
  transition: color 0.2s ease;
39
39
 
40
40
  svg {
@@ -69,7 +69,7 @@ const StatusText = styled.span.withConfig({
69
69
  font-size: 12px;
70
70
  font-weight: 600;
71
71
  line-height: 18px;
72
- color: ${(props) => props.colorActive && props.hoverColor ? props.hoverColor : colors.black};
72
+ color: ${(props) => props.colorActive && props.hoverColor ? props.hoverColor : "inherit"};
73
73
  letter-spacing: 0.6px;
74
74
  transition: color 0.2s ease;
75
75
 
@@ -0,0 +1,23 @@
1
+ export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
2
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
3
+ }> & string;
4
+ export declare const Wrap: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
5
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
6
+ }> & string;
7
+ export declare const Items: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
8
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
9
+ }> & string;
10
+ export declare const Item: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
11
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
12
+ }, {
13
+ isDone?: boolean;
14
+ isActive?: boolean;
15
+ }>> & string;
16
+ export declare const StepsProgressContainer: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
17
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
18
+ }> & string;
19
+ export declare const StepContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
20
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
21
+ }, {
22
+ heightLimited?: boolean;
23
+ }>> & string;
@@ -1,7 +1,5 @@
1
1
  import styled from "styled-components";
2
- import rwd from "../../styles/rwd.js";
3
- import theme from "../../styles/theme.js";
4
- import { colors } from "../../styles/colors.js";
2
+ import { breakpoint } from "../../design-system/styled/breakpoint.js";
5
3
  const Container = styled.div`
6
4
  display: block;
7
5
  width: 100%;
@@ -21,7 +19,7 @@ const Items = styled.div`
21
19
  margin: 0 -6px;
22
20
  text-align: center;
23
21
 
24
- ${rwd.Medium`
22
+ ${breakpoint.Medium`
25
23
  display: block;
26
24
  `}
27
25
  `;
@@ -49,7 +47,7 @@ const Item = styled.div.withConfig({
49
47
  left: 0;
50
48
  border-radius: 3px;
51
49
  box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.05);
52
- background-color: ${colors.lightGrey};
50
+ background-color: var(--stokr-border-subtle);
53
51
  }
54
52
 
55
53
  &:after {
@@ -71,30 +69,30 @@ const Item = styled.div.withConfig({
71
69
  }
72
70
 
73
71
  &:hover:after {
74
- background-color: ${colors.black};
72
+ background-color: var(--stokr-border-strong);
75
73
  }
76
74
 
77
75
  ${(props) => props.isDone && `
78
76
  &:after {
79
- background-color: ${colors.progressGreen};
77
+ background-color: var(--stokr-status-success-icon);
80
78
  }
81
79
 
82
80
  &:hover:after {
83
- background-color: ${colors.black};
81
+ background-color: var(--stokr-border-strong);
84
82
  }
85
83
  `}
86
84
 
87
85
  ${(props) => props.isActive && `
88
86
  &:after {
89
- background-color: ${colors.grey2};
87
+ background-color: var(--stokr-text-tertiary);
90
88
  }
91
89
 
92
90
  &:hover:after {
93
- background-color: ${colors.black};
91
+ background-color: var(--stokr-border-strong);
94
92
  }
95
93
  `}
96
94
 
97
- ${rwd.Medium`
95
+ ${breakpoint.Medium`
98
96
  width: 32px;
99
97
  `}
100
98
  `;
@@ -103,9 +101,9 @@ const StepsProgressContainer = styled.div`
103
101
  width: 100%;
104
102
  height: 40px;
105
103
  padding: 4px 0;
106
- box-shadow: 0 1px 0 0 ${() => theme.cLightGrey};
104
+ box-shadow: 0 1px 0 0 var(--stokr-border-subtle);
107
105
 
108
- ${rwd.Medium`
106
+ ${breakpoint.Medium`
109
107
  height: 56px;
110
108
  padding: 12px 0;
111
109
  `}
@@ -119,7 +117,7 @@ const StepContainer = styled.div.withConfig({
119
117
  position: relative;
120
118
  overflow: hidden;
121
119
 
122
- ${rwd.Medium`
120
+ ${breakpoint.Medium`
123
121
  ${(props) => props.heightLimited && `
124
122
  height: 80vh;
125
123
  `}
@@ -1,9 +1,8 @@
1
1
  import styled from "styled-components";
2
- import { colors } from "../../styles/colors.js";
3
2
  const SEGMENT_COLOR = {
4
- done: "#38c229",
5
- active: colors.white,
6
- upcoming: "#4a4a4a"
3
+ done: "var(--stokr-action-accent-bg)",
4
+ active: "var(--stokr-text-primary)",
5
+ upcoming: "var(--stokr-border-default)"
7
6
  };
8
7
  const Strip = styled.div`
9
8
  display: flex;
@@ -29,7 +28,7 @@ const Caption = styled.p`
29
28
  font-weight: 600;
30
29
  letter-spacing: 1.2px;
31
30
  text-transform: uppercase;
32
- color: ${colors.grey2};
31
+ color: var(--stokr-text-secondary);
33
32
  white-space: nowrap;
34
33
  overflow: hidden;
35
34
  text-overflow: ellipsis;
@@ -1,35 +1,37 @@
1
1
  import styled from "styled-components";
2
- import { colors } from "../../styles/colors.js";
3
- import { media } from "../../styles/rwd.js";
4
- import { typography } from "../../styles/typography.js";
2
+ import { text } from "../../design-system/styled/text.js";
3
+ import { breakpoint } from "../../design-system/styled/breakpoint.js";
5
4
  const MARKER_SIZE = 28;
6
5
  const LINE_GAP = 4;
7
- const DARK = "#0a0a0a";
8
6
  const MARKER_BG = {
9
7
  upcoming: "transparent",
10
- active: colors.white,
11
- done: colors.lighterGreen
8
+ active: "var(--stokr-action-primary-bg)",
9
+ done: "var(--stokr-action-accent-bg)"
12
10
  };
13
11
  const MARKER_BORDER = {
14
- upcoming: colors.grey2,
15
- active: colors.white,
16
- done: colors.lighterGreen
12
+ upcoming: "var(--stokr-text-secondary)",
13
+ active: "var(--stokr-action-primary-bg)",
14
+ done: "var(--stokr-action-accent-bg)"
15
+ };
16
+ const MARKER_TEXT = {
17
+ upcoming: "var(--stokr-text-secondary)",
18
+ active: "var(--stokr-action-primary-text)",
19
+ done: "var(--stokr-action-accent-text)"
17
20
  };
18
- const MARKER_TEXT = { upcoming: colors.grey2, active: DARK, done: DARK };
19
21
  const TITLE_COLOR = {
20
- upcoming: colors.grey2,
21
- active: colors.white,
22
- done: colors.lighterGreen
22
+ upcoming: "var(--stokr-text-secondary)",
23
+ active: "var(--stokr-text-primary)",
24
+ done: "var(--stokr-action-accent-bg)"
23
25
  };
24
26
  const SUBTITLE_COLOR = {
25
- upcoming: colors.grey2,
26
- active: colors.grey,
27
- done: "rgba(255, 255, 255, 0.45)"
27
+ upcoming: "var(--stokr-text-secondary)",
28
+ active: "var(--stokr-text-body)",
29
+ done: "var(--stokr-text-secondary)"
28
30
  };
29
31
  const LINE_COLOR = {
30
- upcoming: colors.grey2,
31
- active: colors.grey,
32
- done: colors.lightPastelGreen
32
+ upcoming: "var(--stokr-text-secondary)",
33
+ active: "var(--stokr-text-body)",
34
+ done: "var(--stokr-status-success-text)"
33
35
  };
34
36
  const List = styled.ol`
35
37
  display: flex;
@@ -58,7 +60,8 @@ const Line = styled.span`
58
60
  background-color: ${({ $status }) => LINE_COLOR[$status]};
59
61
  `;
60
62
  const Marker = styled.span`
61
- ${typography.formInputMain}
63
+ ${text("caption")}
64
+ font-weight: 600;
62
65
  z-index: 1;
63
66
  flex: 0 0 ${MARKER_SIZE}px;
64
67
  width: ${MARKER_SIZE}px;
@@ -75,22 +78,22 @@ const ItemText = styled.div`
75
78
  padding-top: 4px;
76
79
  `;
77
80
  const ItemTitle = styled.p`
78
- ${typography.bodyMdCallout}
81
+ ${text("subtitleS")}
79
82
  margin: 0;
80
83
  color: ${({ $status }) => TITLE_COLOR[$status]};
81
84
 
82
- ${media.desktopXlUp} {
85
+ ${breakpoint.XLarge`
83
86
  font-size: 16px;
84
- }
87
+ `}
85
88
  `;
86
89
  const ItemSubtitle = styled.p`
87
- ${typography.formInput}
90
+ ${text("caption")}
88
91
  margin: 4px 0 0;
89
92
  color: ${({ $status }) => SUBTITLE_COLOR[$status]};
90
93
 
91
- ${media.desktopXlUp} {
94
+ ${breakpoint.XLarge`
92
95
  font-size: 13px;
93
- }
96
+ `}
94
97
  `;
95
98
  export {
96
99
  Item,
@@ -16,7 +16,7 @@ const StepSidebar = ({
16
16
  className
17
17
  }) => {
18
18
  const logo = (Img, suffix) => onLogoClick ? /* @__PURE__ */ jsx(LogoButton, { type: "button", onClick: onLogoClick, "data-cy": `${dataCyPrefix}-${suffix}`, children: /* @__PURE__ */ jsx(Img, { src: LOGO_URL, alt: logoAlt }) }) : /* @__PURE__ */ jsx(Img, { src: LOGO_URL, alt: logoAlt, "data-cy": `${dataCyPrefix}-${suffix}` });
19
- return /* @__PURE__ */ jsxs(Aside, { className, children: [
19
+ return /* @__PURE__ */ jsxs(Aside, { className, "data-theme": "dark", children: [
20
20
  /* @__PURE__ */ jsxs(MobileHeader, { children: [
21
21
  logo(MobileLogoImg, "logo-mobile"),
22
22
  mobileAction,
@@ -1,3 +1,4 @@
1
+ /** Always dark: the component sets `data-theme="dark"` on it, so every semantic token below resolves to its dark value in either theme. */
1
2
  export declare const Aside: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "style"> & {
2
3
  style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
3
4
  }> & string;
@@ -1,19 +1,18 @@
1
1
  import styled from "styled-components";
2
- import { colors } from "../../styles/colors.js";
3
- import { media } from "../../styles/rwd.js";
4
- import { typography } from "../../styles/typography.js";
2
+ import { breakpoint } from "../../design-system/styled/breakpoint.js";
3
+ import { text } from "../../design-system/styled/text.js";
5
4
  const Aside = styled.aside`
6
5
  display: flex;
7
6
  flex-direction: column;
8
- background-color: #0a0a0a;
9
- color: ${colors.white};
7
+ background-color: var(--stokr-background-default);
8
+ color: var(--stokr-text-primary);
10
9
  position: sticky;
11
10
  top: 0;
12
11
  z-index: 10;
13
12
  -webkit-font-smoothing: antialiased;
14
13
  -moz-osx-font-smoothing: grayscale;
15
14
 
16
- ${media.desktopUp} {
15
+ ${breakpoint.MLarge`
17
16
  align-items: stretch;
18
17
  gap: 48px;
19
18
  width: 100%;
@@ -23,8 +22,8 @@ const Aside = styled.aside`
23
22
  overflow-x: hidden;
24
23
  overflow-y: auto;
25
24
  overflow-wrap: anywhere;
26
- border-right: 1px solid rgba(255, 255, 255, 0.06);
27
- }
25
+ border-right: 1px solid var(--stokr-border-subtle);
26
+ `}
28
27
  `;
29
28
  const MobileHeader = styled.div`
30
29
  display: flex;
@@ -37,9 +36,9 @@ const MobileHeader = styled.div`
37
36
  margin-right: auto;
38
37
  }
39
38
 
40
- ${media.desktopUp} {
39
+ ${breakpoint.MLarge`
41
40
  display: none;
42
- }
41
+ `}
43
42
  `;
44
43
  const CloseButton = styled.button`
45
44
  display: flex;
@@ -52,7 +51,7 @@ const CloseButton = styled.button`
52
51
  background: none;
53
52
  border: none;
54
53
  cursor: pointer;
55
- color: ${colors.white};
54
+ color: var(--stokr-text-primary);
56
55
  transition: opacity 0.2s;
57
56
 
58
57
  &:hover {
@@ -62,16 +61,16 @@ const CloseButton = styled.button`
62
61
  const DesktopOnly = styled.div`
63
62
  display: none;
64
63
 
65
- ${media.desktopUp} {
64
+ ${breakpoint.MLarge`
66
65
  display: contents;
67
- }
66
+ `}
68
67
  `;
69
68
  const MobileOnly = styled.div`
70
69
  display: contents;
71
70
 
72
- ${media.desktopUp} {
71
+ ${breakpoint.MLarge`
73
72
  display: none;
74
- }
73
+ `}
75
74
  `;
76
75
  const Spacer = styled.div`
77
76
  flex: 1 1 auto;
@@ -82,7 +81,7 @@ const LogoButton = styled.button`
82
81
  background: none;
83
82
  border: none;
84
83
  cursor: pointer;
85
- color: ${colors.white};
84
+ color: var(--stokr-text-primary);
86
85
  `;
87
86
  const MobileLogoImg = styled.img`
88
87
  display: block;
@@ -105,52 +104,52 @@ const NameGroup = styled.div`
105
104
  gap: 12px;
106
105
  `;
107
106
  const Eyebrow = styled.p`
108
- ${typography.labelRunningHeader}
107
+ ${text("labelRegular")}
109
108
  margin: 0;
110
- color: ${colors.white};
109
+ color: var(--stokr-text-primary);
111
110
  `;
112
111
  const Title = styled.p`
113
- ${typography.h3}
112
+ ${text("titleL")}
114
113
  margin: 0;
115
- color: ${colors.white};
114
+ color: var(--stokr-text-primary);
116
115
  `;
117
116
  const Description = styled.p`
118
- ${typography.bodyLg}
117
+ ${text("bodyM")}
119
118
  margin: 0;
120
- color: ${colors.white};
119
+ color: var(--stokr-text-primary);
121
120
  `;
122
121
  const SupportWrap = styled.div`
123
122
  padding-top: 21px;
124
- border-top: 1px solid ${colors.grey4};
123
+ border-top: 1px solid var(--stokr-border-strong);
125
124
  `;
126
125
  const SupportHeading = styled.p`
127
126
  margin: 0 0 6px;
128
127
  font-size: 14px;
129
128
  font-weight: 600;
130
129
  line-height: 20px;
131
- color: ${colors.white};
130
+ color: var(--stokr-text-primary);
132
131
 
133
- ${media.desktopXlUp} {
132
+ ${breakpoint.XLarge`
134
133
  font-size: 16px;
135
- }
134
+ `}
136
135
  `;
137
136
  const SupportBody = styled.p`
138
137
  margin: 0;
139
138
  font-size: 12px;
140
139
  font-weight: 400;
141
140
  line-height: 18px;
142
- color: ${colors.white};
141
+ color: var(--stokr-text-primary);
143
142
 
144
- ${media.desktopXlUp} {
143
+ ${breakpoint.XLarge`
145
144
  font-size: 13px;
146
- }
145
+ `}
147
146
  `;
148
147
  const SupportLink = styled.a`
149
- color: ${colors.lighterGreen};
148
+ color: var(--stokr-action-accent-bg);
150
149
  text-decoration: underline;
151
150
 
152
151
  &:hover {
153
- color: ${colors.lighterGreen};
152
+ color: var(--stokr-action-accent-bg);
154
153
  }
155
154
  `;
156
155
  export {
@@ -1,14 +1,36 @@
1
1
  import { HTMLAttributes } from 'react';
2
- /** The loading animation as animated WebP (~18 KB, the GIF is ~580 KB); a stable URL so browsers cache it. */
2
+ /**
3
+ * The legacy loading animation as animated WebP. It has an opaque white background, so it only suits white pages;
4
+ * the components use `LoaderRing`, which is transparent and follows the theme.
5
+ */
3
6
  export declare const loaderGif = "https://res.cloudinary.com/stokr/image/upload/f_webp,fl_awebp,q_auto/v1575035788/Static/stokr_loader_white_400x400_egnhgb.gif";
7
+ /** The STOKR loading ring: transparent background, drawn in `text-primary` (black in light, white in dark). */
8
+ export declare const LoaderRing: ({ size, className }: {
9
+ size?: number;
10
+ className?: string;
11
+ }) => import("react/jsx-runtime").JSX.Element;
12
+ /**
13
+ * The STOKR wordmark loader: the letters form top to bottom, the O draws itself, then keeps turning. Transparent
14
+ * background, drawn in `text-primary` (black in light, white in dark). The height follows the `width`.
15
+ */
16
+ export declare const LoaderLogo: ({ width, className }: {
17
+ width?: number;
18
+ className?: string;
19
+ }) => import("react/jsx-runtime").JSX.Element;
20
+ /** `ring` is the circle; `logo` is the STOKR wordmark whose O keeps turning. */
21
+ export type StokrLoaderVariant = 'ring' | 'logo';
4
22
  export interface StokrLoaderProps {
5
23
  /** Leaves the top 97px (the header) visible instead of covering the whole screen. */
6
24
  noFullscreen?: boolean;
25
+ /** Which animation to show. Default `ring`. */
26
+ variant?: StokrLoaderVariant;
7
27
  }
8
28
  /** Full-screen STOKR loading animation, shown while a page loads. */
9
- export declare function StokrLoader({ noFullscreen }: StokrLoaderProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function StokrLoader({ noFullscreen, variant }: StokrLoaderProps): import("react/jsx-runtime").JSX.Element;
10
30
  /** The loading animation centred in its container, for a loading area inside a page. */
11
- export declare const StokrLoaderBox: () => import("react/jsx-runtime").JSX.Element;
31
+ export declare const StokrLoaderBox: ({ variant }: {
32
+ variant?: StokrLoaderVariant;
33
+ }) => import("react/jsx-runtime").JSX.Element;
12
34
  export declare const AnimatedSpan: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
13
35
  style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
14
36
  }, {