@stokr/components-library 4.2.5 → 5.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 (307) hide show
  1. package/README.md +147 -118
  2. package/dist/components/AdminDashboard/Table/Table.styles.d.ts +110 -0
  3. package/dist/components/AdminDashboard/Table/Table.styles.js +21 -20
  4. package/dist/components/AgreementItem/AgreementItem.styles.js +1 -1
  5. package/dist/components/BackButton/BackButton.styles.d.ts +24 -0
  6. package/dist/components/BackButton/BackButton.styles.js +15 -16
  7. package/dist/components/Background/Background.styles.d.ts +30 -0
  8. package/dist/components/Background/Background.styles.js +3 -3
  9. package/dist/components/BasicTable/BasicTable.d.ts +14 -0
  10. package/dist/components/BasicTable/BasicTable.js +0 -10
  11. package/dist/components/BasicTable/BasicTable.styles.d.ts +22 -0
  12. package/dist/components/BasicTable/BasicTable.styles.js +6 -7
  13. package/dist/components/BlogPost/BlogPost.js +3 -3
  14. package/dist/components/BlogPost/BlogPost.styles.d.ts +67 -0
  15. package/dist/components/BlogPost/BlogPost.styles.js +14 -20
  16. package/dist/components/Button/Button.styles.d.ts +12 -8
  17. package/dist/components/Button/Button.styles.js +131 -115
  18. package/dist/components/Button/GlareButton.d.ts +31 -0
  19. package/dist/components/Button/GlareButton.js +4 -22
  20. package/dist/components/Card/Card.styles.d.ts +30 -0
  21. package/dist/components/Card/Card.styles.js +3 -4
  22. package/dist/components/CardTabs/CardTabs.styles.js +26 -29
  23. package/dist/components/ChartLegend/ChartLegend.styles.d.ts +46 -0
  24. package/dist/components/ChartLegend/ChartLegend.styles.js +4 -5
  25. package/dist/components/Checkbox/Checkbox.styles.d.ts +0 -1
  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.d.ts +4 -10
  37. package/dist/components/Collapsible/Collapsible.js +14 -6
  38. package/dist/components/Collapsible/Collapsible.styles.d.ts +1 -3
  39. package/dist/components/Collapsible/Collapsible.styles.js +19 -36
  40. package/dist/components/ComponentScroll/ComponentScroll.js +2 -1
  41. package/dist/components/ComponentScroll/ComponentScroll.styles.d.ts +34 -0
  42. package/dist/components/ComponentScroll/ComponentScroll.styles.js +15 -12
  43. package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +11 -13
  44. package/dist/components/ConfirmModal/ConfirmModal.styles.d.ts +18 -0
  45. package/dist/components/ConfirmModal/ConfirmModal.styles.js +6 -7
  46. package/dist/components/Country/CountrySelect.js +20 -15
  47. package/dist/components/CryptoAddress/ComponentWrap.d.ts +9 -0
  48. package/dist/components/CryptoAddress/ComponentWrap.js +7 -10
  49. package/dist/components/CryptoAddress/CryptoAddress.d.ts +45 -0
  50. package/dist/components/CryptoAddress/CryptoAddress.js +9 -41
  51. package/dist/components/CryptoAddress/CryptoAddress.styles.d.ts +85 -0
  52. package/dist/components/CryptoAddress/CryptoAddress.styles.js +21 -22
  53. package/dist/components/CryptoAddress/RadioWrap.d.ts +21 -0
  54. package/dist/components/CryptoAddress/RadioWrap.js +1 -16
  55. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.d.ts +30 -0
  56. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +19 -11
  57. package/dist/components/DisplayOnBreakpoint/DisplayOnBreakpoint.d.ts +12 -0
  58. package/dist/components/DisplayOnBreakpoint/DisplayOnBreakpoint.js +28 -0
  59. package/dist/components/FAQ/FAQ.js +18 -18
  60. package/dist/components/FAQ/FAQ.styles.d.ts +5 -12
  61. package/dist/components/FAQ/FAQ.styles.js +3 -61
  62. package/dist/components/Form/Form.styles.d.ts +22 -0
  63. package/dist/components/Form/Form.styles.js +7 -8
  64. package/dist/components/Grid/Grid.styles.d.ts +49 -0
  65. package/dist/components/Grid/Grid.styles.js +37 -40
  66. package/dist/components/IdentityInfo/IdentityInfo.js +1 -2
  67. package/dist/components/IdentityInfo/IdentityInfo.styles.d.ts +24 -0
  68. package/dist/components/IdentityInfo/IdentityInfo.styles.js +6 -9
  69. package/dist/components/InfoBox/InfoBox.d.ts +20 -0
  70. package/dist/components/InfoBox/InfoBox.js +24 -78
  71. package/dist/components/InfoIcon/InfoIcon.styles.js +2 -3
  72. package/dist/components/Input/DatePickerInput.d.ts +24 -0
  73. package/dist/components/Input/DatePickerInput.js +2 -13
  74. package/dist/components/Input/DatePickerInput.styles.d.ts +18 -0
  75. package/dist/components/Input/DatePickerInput.styles.js +27 -24
  76. package/dist/components/Input/Input.d.ts +0 -3
  77. package/dist/components/Input/Input.js +3 -5
  78. package/dist/components/Input/Input.styles.d.ts +1 -4
  79. package/dist/components/Input/Input.styles.js +24 -77
  80. package/dist/components/Input/InputPassword.styles.d.ts +32 -0
  81. package/dist/components/Input/InputPassword.styles.js +11 -12
  82. package/dist/components/Input/InputWithButton.styles.d.ts +14 -0
  83. package/dist/components/Input/InputWithButton.styles.js +5 -6
  84. package/dist/components/Input/MultiSelect.d.ts +60 -0
  85. package/dist/components/Input/MultiSelect.js +20 -52
  86. package/dist/components/Input/OtpInput.d.ts +17 -0
  87. package/dist/components/Input/OtpInput.js +8 -15
  88. package/dist/components/Input/RangeInput.d.ts +14 -0
  89. package/dist/components/Input/RangeInput.js +2 -17
  90. package/dist/components/Input/SearchInput.styles.d.ts +15 -0
  91. package/dist/components/Input/SearchInput.styles.js +10 -11
  92. package/dist/components/Input/Select.js +156 -80
  93. package/dist/components/Input/Select.styles.js +16 -118
  94. package/dist/components/Input/TableFilterDropdown.d.ts +33 -0
  95. package/dist/components/Input/TableFilterDropdown.js +6 -39
  96. package/dist/components/Input/Textarea.styles.d.ts +9 -0
  97. package/dist/components/Input/Textarea.styles.js +9 -10
  98. package/dist/components/MaterialIcon/MaterialIcon.d.ts +17 -7
  99. package/dist/components/MaterialIcon/MaterialIcon.js +14 -3
  100. package/dist/components/MaterialIcon/requiredIcons.d.ts +1 -1
  101. package/dist/components/MaterialIcon/requiredIcons.js +0 -2
  102. package/dist/components/MenuNav/MenuNav.styles.d.ts +6 -0
  103. package/dist/components/MenuNav/MenuNav.styles.js +3 -0
  104. package/dist/components/Modal/Modal.styles.js +35 -36
  105. package/dist/components/Modal/PaymentModal.d.ts +55 -0
  106. package/dist/components/Modal/PaymentModal.js +11 -13
  107. package/dist/components/Modal/SideModal.styles.js +13 -14
  108. package/dist/components/Modal/SideModalParts.js +18 -20
  109. package/dist/components/Modal/SuccessModal/SuccessModal.styles.d.ts +15 -0
  110. package/dist/components/Modal/SuccessModal/SuccessModal.styles.js +3 -4
  111. package/dist/components/NotificationCounter/NotificationCounter.styles.d.ts +8 -0
  112. package/dist/components/NotificationCounter/NotificationCounter.styles.js +2 -3
  113. package/dist/components/Number/Number.js +1 -1
  114. package/dist/components/Number/Number.styles.d.ts +4 -0
  115. package/dist/components/Number/Number.styles.js +2 -3
  116. package/dist/components/Pagination/Pagination.styles.d.ts +15 -0
  117. package/dist/components/Pagination/Pagination.styles.js +12 -11
  118. package/dist/components/Payment/DetailRows.d.ts +14 -0
  119. package/dist/components/Payment/DetailRows.js +1 -2
  120. package/dist/components/Payment/DetailsToggle.d.ts +23 -0
  121. package/dist/components/Payment/DetailsToggle.js +12 -4
  122. package/dist/components/Payment/PaymentDetailsCard.d.ts +95 -0
  123. package/dist/components/Payment/PaymentDetailsCard.js +32 -23
  124. package/dist/components/Payment/PaymentDisplay.d.ts +59 -0
  125. package/dist/components/Payment/PaymentDisplay.js +18 -11
  126. package/dist/components/Payment/PaymentPendingCard.d.ts +39 -0
  127. package/dist/components/Payment/PaymentPendingCard.js +13 -13
  128. package/dist/components/Payment/PaymentSuccessCard.d.ts +41 -0
  129. package/dist/components/Payment/PaymentSuccessCard.js +27 -11
  130. package/dist/components/Payment/TimerComponent.d.ts +26 -0
  131. package/dist/components/Payment/TimerComponent.js +6 -7
  132. package/dist/components/Process/Process.styles.d.ts +11 -0
  133. package/dist/components/Process/Process.styles.js +22 -19
  134. package/dist/components/ProfileBadge/ProfileBadge.d.ts +13 -0
  135. package/dist/components/ProfileBadge/ProfileBadge.js +14 -15
  136. package/dist/components/ProfileBadge/ProfileBadge.styles.d.ts +10 -0
  137. package/dist/components/ProfileBadge/ProfileBadge.styles.js +8 -9
  138. package/dist/components/ProfileBox/ProfileBox.js +3 -3
  139. package/dist/components/ProfileBox/ProfileBox.styles.d.ts +22 -0
  140. package/dist/components/ProfileBox/ProfileBox.styles.js +18 -7
  141. package/dist/components/Radio/Radio.styles.d.ts +23 -0
  142. package/dist/components/Radio/Radio.styles.js +19 -11
  143. package/dist/components/RefreshButton/RefreshButton.styles.d.ts +29 -0
  144. package/dist/components/RefreshButton/RefreshButton.styles.js +5 -6
  145. package/dist/components/RequestDataBox/RequestDataBox.styles.d.ts +9 -0
  146. package/dist/components/RequestDataBox/RequestDataBox.styles.js +4 -5
  147. package/dist/components/Section/Section.d.ts +1 -1
  148. package/dist/components/Section/Section.js +4 -3
  149. package/dist/components/Section/Section.styles.d.ts +5 -0
  150. package/dist/components/Section/Section.styles.js +31 -36
  151. package/dist/components/SectionTitle/SectionTitle.styles.js +1 -1
  152. package/dist/components/Skeleton/Skeleton.d.ts +4 -2
  153. package/dist/components/Skeleton/Skeleton.js +8 -8
  154. package/dist/components/SmartLink/SmartLink.js +2 -2
  155. package/dist/components/Snackbar/Snackbar.styles.d.ts +28 -0
  156. package/dist/components/Snackbar/Snackbar.styles.js +10 -29
  157. package/dist/components/SpanButton/SpanButton.styles.js +2 -2
  158. package/dist/components/StatusDot/StatusDot.d.ts +29 -0
  159. package/dist/components/StatusDot/StatusDot.js +17 -23
  160. package/dist/components/StatusDot/StatusDot.styles.d.ts +20 -0
  161. package/dist/components/StatusTag/StatusTag.d.ts +35 -0
  162. package/dist/components/StatusTag/StatusTag.js +9 -38
  163. package/dist/components/StatusTag/StatusTag.styles.d.ts +28 -0
  164. package/dist/components/StatusTag/StatusTag.styles.js +6 -6
  165. package/dist/components/StepController/StepController.styles.d.ts +23 -0
  166. package/dist/components/StepController/StepController.styles.js +12 -14
  167. package/dist/components/StokrLoader/StokrLoader.d.ts +9 -1
  168. package/dist/components/StokrLoader/StokrLoader.js +50 -19
  169. package/dist/components/SvgIcons/AdminBadgeSvg.js +1 -0
  170. package/dist/components/SvgIcons/CapsLockSvg.js +1 -0
  171. package/dist/components/SvgIcons/LogoSvg.js +1 -11
  172. package/dist/components/SvgIcons/RefreshSvg.js +1 -0
  173. package/dist/components/SvgIcons/VerifiedBadge.js +2 -4
  174. package/dist/components/Switch/Switch.styles.d.ts +20 -0
  175. package/dist/components/Switch/Switch.styles.js +10 -11
  176. package/dist/components/Tabs/Tabs.js +2 -2
  177. package/dist/components/TabsNav/TabsNav.styles.d.ts +25 -0
  178. package/dist/components/TabsNav/TabsNav.styles.js +8 -9
  179. package/dist/components/TaxResidenceCard/TaxResidenceCard.js +11 -27
  180. package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.d.ts +57 -0
  181. package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +25 -107
  182. package/dist/components/Text/Text.styles.d.ts +17 -1
  183. package/dist/components/Text/Text.styles.js +50 -25
  184. package/dist/components/TextLink/TextLink.styles.d.ts +16 -0
  185. package/dist/components/TextLink/TextLink.styles.js +4 -4
  186. package/dist/components/Timeline/Timeline.styles.d.ts +41 -0
  187. package/dist/components/Timeline/Timeline.styles.js +14 -15
  188. package/dist/components/Timeline/TimelineStep.js +1 -1
  189. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  190. package/dist/components/Tooltip/Tooltip.js +2 -2
  191. package/dist/components/Tooltip/Tooltip.styles.js +2 -3
  192. package/dist/components/breakdown/Breakdown.d.ts +18 -0
  193. package/dist/components/breakdown/Breakdown.js +7 -7
  194. package/dist/components/logo/Logo.js +1 -1
  195. package/dist/design-system/css/base.css +74 -0
  196. package/dist/design-system/css/index.css +5 -0
  197. package/dist/design-system/fonts/Inter-LICENSE.txt +93 -0
  198. package/dist/design-system/fonts/inter-bitcoin-sign.woff2 +0 -0
  199. package/dist/design-system/fonts/inter-latin-ext.woff2 +0 -0
  200. package/dist/design-system/fonts/inter-latin.woff2 +0 -0
  201. package/dist/design-system/fonts/open-sans-latin-ext-italic.woff2 +0 -0
  202. package/dist/design-system/fonts/open-sans-latin-ext.woff2 +0 -0
  203. package/dist/design-system/fonts/open-sans-latin-italic.woff2 +0 -0
  204. package/dist/design-system/fonts/open-sans-latin.woff2 +0 -0
  205. package/dist/design-system/generated/fonts.css +296 -0
  206. package/dist/design-system/generated/text-classes.css +198 -0
  207. package/dist/design-system/generated/text-styles.d.ts +26 -0
  208. package/dist/design-system/generated/text-styles.js +179 -0
  209. package/dist/design-system/generated/tokens.css +429 -0
  210. package/dist/design-system/index.d.ts +9 -0
  211. package/dist/design-system/stories/foundations.d.ts +31 -0
  212. package/dist/design-system/stories/foundationsData.d.ts +18 -0
  213. package/dist/design-system/styled/breakpoint.d.ts +43 -0
  214. package/dist/design-system/styled/breakpoint.js +27 -0
  215. package/dist/design-system/styled/build-theme.d.ts +21 -0
  216. package/dist/design-system/styled/build-theme.js +27 -0
  217. package/dist/design-system/styled/text.d.ts +3 -0
  218. package/dist/design-system/styled/text.js +5 -0
  219. package/dist/design-system/styled/theme.d.ts +6 -0
  220. package/dist/design-system/tokens/breakpoints.d.ts +17 -0
  221. package/dist/design-system/tokens/breakpoints.js +16 -0
  222. package/dist/design-system/tokens/colors.d.ts +92 -0
  223. package/dist/design-system/tokens/colors.js +98 -0
  224. package/dist/design-system/tokens/fonts.d.ts +32 -0
  225. package/dist/design-system/tokens/fonts.js +49 -0
  226. package/dist/design-system/tokens/index.d.ts +6 -0
  227. package/dist/design-system/tokens/layout.d.ts +71 -0
  228. package/dist/design-system/tokens/layout.js +40 -0
  229. package/dist/design-system/tokens/semantic.d.ts +272 -0
  230. package/dist/design-system/tokens/semantic.js +76 -0
  231. package/dist/design-system/tokens/typography.d.ts +38 -0
  232. package/dist/design-system/tokens/typography.js +120 -0
  233. package/dist/hooks/useMediaQuery.d.ts +1 -1
  234. package/dist/index.d.ts +117 -120
  235. package/dist/index.js +50 -60
  236. package/dist/static/images/globe.svg.js +5 -0
  237. package/dist/static/images/numbers/number_eight.svg +1 -1
  238. package/dist/static/images/numbers/number_eight.svg.js +1 -1
  239. package/dist/static/images/numbers/number_five.svg +2 -2
  240. package/dist/static/images/numbers/number_five.svg.js +1 -1
  241. package/dist/static/images/numbers/number_four.svg +1 -1
  242. package/dist/static/images/numbers/number_four.svg.js +1 -1
  243. package/dist/static/images/numbers/number_nine.svg +2 -2
  244. package/dist/static/images/numbers/number_nine.svg.js +1 -1
  245. package/dist/static/images/numbers/number_one.svg +2 -2
  246. package/dist/static/images/numbers/number_one.svg.js +1 -1
  247. package/dist/static/images/numbers/number_seven.svg +2 -2
  248. package/dist/static/images/numbers/number_seven.svg.js +1 -1
  249. package/dist/static/images/numbers/number_six.svg +2 -2
  250. package/dist/static/images/numbers/number_six.svg.js +1 -1
  251. package/dist/static/images/numbers/number_three.svg +1 -1
  252. package/dist/static/images/numbers/number_three.svg.js +1 -1
  253. package/dist/static/images/numbers/number_two.svg +2 -2
  254. package/dist/static/images/numbers/number_two.svg.js +1 -1
  255. package/dist/static/images/numbers/number_zero.svg +1 -1
  256. package/dist/static/images/numbers/number_zero.svg.js +1 -1
  257. package/dist/static/images/trash.svg +17 -0
  258. package/dist/static/images/trash.svg.js +5 -0
  259. package/dist/utils/customHooks.d.ts +4 -4
  260. package/dist/utils/customHooks.js +6 -6
  261. package/package.json +16 -11
  262. package/dist/components/AddressItem/AddressItem.d.ts +0 -38
  263. package/dist/components/AddressItem/AddressItem.js +0 -51
  264. package/dist/components/AddressItem/AddressItem.styles.d.ts +0 -31
  265. package/dist/components/AddressItem/AddressItem.styles.js +0 -73
  266. package/dist/components/Country/FlagFor.d.ts +0 -9
  267. package/dist/components/Country/FlagFor.js +0 -25
  268. package/dist/components/Country/flagLoaders.d.ts +0 -5
  269. package/dist/components/Country/flagLoaders.js +0 -270
  270. package/dist/components/Country/flagStore.d.ts +0 -6
  271. package/dist/components/Country/flagStore.js +0 -29
  272. package/dist/components/FAQ/FAQ.d.ts +0 -29
  273. package/dist/components/Input/Select.d.ts +0 -57
  274. package/dist/components/Input/Select.styles.d.ts +0 -89
  275. package/dist/components/PanelCard/PanelCard.d.ts +0 -51
  276. package/dist/components/PanelCard/PanelCard.js +0 -35
  277. package/dist/components/PanelCard/PanelCard.styles.d.ts +0 -29
  278. package/dist/components/PanelCard/PanelCard.styles.js +0 -87
  279. package/dist/components/StepSidebar/MobileStepProgress.d.ts +0 -12
  280. package/dist/components/StepSidebar/MobileStepProgress.js +0 -14
  281. package/dist/components/StepSidebar/MobileStepProgress.styles.d.ts +0 -15
  282. package/dist/components/StepSidebar/MobileStepProgress.styles.js +0 -42
  283. package/dist/components/StepSidebar/StepProgress.d.ts +0 -14
  284. package/dist/components/StepSidebar/StepProgress.js +0 -14
  285. package/dist/components/StepSidebar/StepProgress.styles.d.ts +0 -30
  286. package/dist/components/StepSidebar/StepProgress.styles.js +0 -103
  287. package/dist/components/StepSidebar/StepSidebar.d.ts +0 -36
  288. package/dist/components/StepSidebar/StepSidebar.js +0 -58
  289. package/dist/components/StepSidebar/StepSidebar.styles.d.ts +0 -54
  290. package/dist/components/StepSidebar/StepSidebar.styles.js +0 -175
  291. package/dist/static/images/address-refreshing.gif.js +0 -4
  292. package/dist/static/images/process-waiting.gif.js +0 -4
  293. package/dist/styles/borderedField.d.ts +0 -11
  294. package/dist/styles/borderedField.js +0 -56
  295. package/dist/styles/colors.d.ts +0 -68
  296. package/dist/styles/colors.js +0 -69
  297. package/dist/styles/elevation.d.ts +0 -13
  298. package/dist/styles/elevation.js +0 -15
  299. package/dist/styles/global.js +0 -63
  300. package/dist/styles/rwd.d.ts +0 -55
  301. package/dist/styles/rwd.js +0 -79
  302. package/dist/styles/spacing.d.ts +0 -36
  303. package/dist/styles/spacing.js +0 -38
  304. package/dist/styles/theme.d.ts +0 -92
  305. package/dist/styles/theme.js +0 -36
  306. package/dist/styles/typography.d.ts +0 -42
  307. 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,6 +1,14 @@
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;
4
12
  export interface StokrLoaderProps {
5
13
  /** Leaves the top 97px (the header) visible instead of covering the whole screen. */
6
14
  noFullscreen?: boolean;
@@ -1,6 +1,36 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import styled, { keyframes } from "styled-components";
3
+ import { breakpoint } from "../../design-system/styled/breakpoint.js";
3
4
  const loaderGif = "https://res.cloudinary.com/stokr/image/upload/f_webp,fl_awebp,q_auto/v1575035788/Static/stokr_loader_white_400x400_egnhgb.gif";
5
+ const RING_CIRCUMFERENCE = 1021;
6
+ const arc = (degrees) => `${(degrees / 360 * RING_CIRCUMFERENCE).toFixed(1)} ${RING_CIRCUMFERENCE}`;
7
+ const ringMotion = keyframes`
8
+ 0% { transform: rotate(-90deg); stroke-dasharray: ${arc(270)}; }
9
+ 4% { transform: rotate(-30deg); stroke-dasharray: ${arc(300)}; }
10
+ 8% { transform: rotate(60deg); stroke-dasharray: ${arc(180)}; }
11
+ 10% { transform: rotate(160deg); stroke-dasharray: ${arc(100)}; }
12
+ 12% { transform: rotate(280deg); stroke-dasharray: ${arc(30)}; }
13
+ 14% { transform: rotate(300deg); stroke-dasharray: ${arc(120)}; }
14
+ 16% { transform: rotate(310deg); stroke-dasharray: ${arc(260)}; }
15
+ 22% { transform: rotate(310deg); stroke-dasharray: ${arc(340)}; }
16
+ 30% { transform: rotate(320deg); stroke-dasharray: ${arc(352)}; }
17
+ 36% { transform: rotate(330deg); stroke-dasharray: ${arc(340)}; }
18
+ 42% { transform: rotate(480deg); stroke-dasharray: ${arc(340)}; }
19
+ 48% { transform: rotate(565deg); stroke-dasharray: ${arc(310)}; }
20
+ 55%, 100% { transform: rotate(630deg); stroke-dasharray: ${arc(270)}; }
21
+ `;
22
+ const RingSvg = styled.svg`
23
+ display: block;
24
+ max-width: 100%;
25
+ max-height: 100%;
26
+ color: var(--stokr-text-primary);
27
+
28
+ circle {
29
+ transform-origin: 200px 200px;
30
+ animation: ${ringMotion} 4s linear infinite;
31
+ }
32
+ `;
33
+ const LoaderRing = ({ size = 400, className }) => /* @__PURE__ */ jsx(RingSvg, { className, width: size, height: size, viewBox: "0 0 400 400", role: "img", "aria-label": "Loading", children: /* @__PURE__ */ jsx("circle", { cx: "200", cy: "200", r: "162.5", fill: "none", stroke: "currentColor", strokeWidth: "75" }) });
4
34
  const CenterFullWidth = styled.div`
5
35
  width: 100%;
6
36
  height: 100%;
@@ -26,7 +56,7 @@ const StyledStokrLoader = styled.div.withConfig({
26
56
  })`
27
57
  align-items: center;
28
58
  animation: ${fadeIn} 1.8s ease-in-out forwards;
29
- background: rgb(254, 254, 254);
59
+ background: var(--stokr-background-default);
30
60
  display: flex;
31
61
  height: 100vh;
32
62
  justify-content: center;
@@ -43,32 +73,32 @@ const StyledStokrLoader = styled.div.withConfig({
43
73
  `}
44
74
 
45
75
  /* 320px, 375px and 768px at the 16px base. */
46
- @media (min-width: 20em) {
47
- img {
48
- height: 15rem;
49
- width: 15rem;
76
+ ${breakpoint.Small`
77
+ svg {
78
+ height: 150px;
79
+ width: 150px;
50
80
  }
51
- }
81
+ `}
52
82
 
53
- @media (min-width: 23.4375em) {
54
- img {
55
- height: 18rem;
56
- width: 18rem;
83
+ ${breakpoint.Small`
84
+ svg {
85
+ height: 180px;
86
+ width: 180px;
57
87
  }
58
- }
88
+ `}
59
89
 
60
- @media (min-width: 48em) {
61
- img {
62
- height: 30rem;
63
- width: 30rem;
90
+ ${breakpoint.Medium`
91
+ svg {
92
+ height: 300px;
93
+ width: 300px;
64
94
  }
65
- }
95
+ `}
66
96
  `;
67
97
  function StokrLoader({ noFullscreen }) {
68
- return /* @__PURE__ */ jsx(StyledStokrLoader, { noFullscreen, children: /* @__PURE__ */ jsx("img", { src: loaderGif, alt: " " }) });
98
+ return /* @__PURE__ */ jsx(StyledStokrLoader, { noFullscreen, children: /* @__PURE__ */ jsx(LoaderRing, {}) });
69
99
  }
70
100
  const StokrLoaderBox = () => {
71
- return /* @__PURE__ */ jsx(CenterFullWidth, { children: /* @__PURE__ */ jsx("img", { src: loaderGif, alt: " " }) });
101
+ return /* @__PURE__ */ jsx(CenterFullWidth, { children: /* @__PURE__ */ jsx(LoaderRing, {}) });
72
102
  };
73
103
  const fadeInOut = keyframes`
74
104
  50% {
@@ -103,6 +133,7 @@ const LoadingDots = (props) => {
103
133
  };
104
134
  export {
105
135
  AnimatedSpan,
136
+ LoaderRing,
106
137
  LoadingDots,
107
138
  StokrLoader,
108
139
  StokrLoaderBox,
@@ -5,6 +5,7 @@ const AdminBadgeSvg = () => /* @__PURE__ */ jsx(
5
5
  {
6
6
  version: "1.1",
7
7
  xmlns: "http://www.w3.org/2000/svg",
8
+ fill: "currentColor",
8
9
  viewBox: "0 0 15.475 19.243",
9
10
  width: "15.475",
10
11
  height: "19.243",
@@ -5,6 +5,7 @@ const CapsLockSvg = () => /* @__PURE__ */ jsx(
5
5
  {
6
6
  version: "1.1",
7
7
  xmlns: "http://www.w3.org/2000/svg",
8
+ fill: "currentColor",
8
9
  width: "6.843",
9
10
  height: "8.904",
10
11
  viewBox: "0 0 6.843 8.904",
@@ -1,16 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import "react";
3
- const LogoSvg = () => /* @__PURE__ */ jsx(
4
- "svg",
5
- {
6
- xmlns: "http://www.w3.org/2000/svg",
7
- style: {
8
- width: "66px",
9
- height: "16px"
10
- },
11
- children: /* @__PURE__ */ jsx("g", { fill: "#202020", fillRule: "evenodd", children: /* @__PURE__ */ jsx("path", { d: "M62.529 5.872c-.004 2.43-3.438 2.185-4.193 2.186V3.682c.755 0 4.189-.244 4.193 2.186v.004zm.27 4.212c1.427-.65 2.524-1.88 2.524-4.214 0-4.501-4.076-4.904-6.744-4.927a10.373 10.373 0 0 0-.303-.002h-.244l-.064.001h-.508l-.352.002H55.53v9.853L55.529 16h2.807v-5.2c.131 0 .266-.002.404-.004h.011a22.261 22.261 0 0 0 .461-.012c.265-.01.538-.026.815-.05l.063-.005L62.827 16h3.055L62.8 10.084zM30.56.042v3.057c2.691 0 4.88 2.208 4.88 4.922 0 2.713-2.189 4.921-4.88 4.921s-4.88-2.208-4.88-4.921v-.002h-3.032v.002c0 4.407 3.542 7.979 7.912 7.979s7.912-3.572 7.912-7.98c0-4.406-3.542-7.978-7.912-7.978M6.967 4.38c-.734-1.047-1.48-1.57-2.24-1.57-.37 0-.673.101-.909.304-.235.203-.353.433-.353.687 0 .255.084.496.252.723.229.303.919.954 2.069 1.952 1.076.923 1.728 1.505 1.957 1.746.572.592.977 1.158 1.216 1.699.239.54.358 1.13.358 1.771 0 1.247-.42 2.276-1.26 3.089-.84.812-1.936 1.218-3.287 1.218-1.056 0-1.975-.265-2.758-.795-.783-.53-1.454-1.363-2.012-2.5l2.37-1.466c.714 1.343 1.534 2.014 2.462 2.014.484 0 .891-.145 1.22-.434.33-.289.495-.623.495-1.002 0-.344-.124-.688-.373-1.033-.249-.344-.797-.87-1.645-1.58-1.614-1.35-2.657-2.391-3.128-3.124-.47-.734-.706-1.465-.706-2.195 0-1.054.392-1.958 1.175-2.711C2.653.419 3.62.042 4.77.042c.739 0 1.443.175 2.112.526.67.351 1.393.992 2.173 1.922l.264.29-2.124 1.923-.228-.323zM52.141.941h-3.39L44.884 5.99l-.649.834V.94h-2.823V16h2.823V8.48l.65.948L49.357 16h3.348l-5.647-8.214zM13.176 3.68h2.51V16h2.51V3.68h2.51V.94h-7.53z" }) })
12
- }
13
- );
3
+ const LogoSvg = (props) => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "66", height: "16", viewBox: "0 0 66 16", ...props, children: /* @__PURE__ */ jsx("g", { fill: "currentColor", fillRule: "evenodd", children: /* @__PURE__ */ jsx("path", { d: "M62.529 5.872c-.004 2.43-3.438 2.185-4.193 2.186V3.682c.755 0 4.189-.244 4.193 2.186v.004zm.27 4.212c1.427-.65 2.524-1.88 2.524-4.214 0-4.501-4.076-4.904-6.744-4.927a10.373 10.373 0 0 0-.303-.002h-.244l-.064.001h-.508l-.352.002H55.53v9.853L55.529 16h2.807v-5.2c.131 0 .266-.002.404-.004h.011a22.261 22.261 0 0 0 .461-.012c.265-.01.538-.026.815-.05l.063-.005L62.827 16h3.055L62.8 10.084zM30.56.042v3.057c2.691 0 4.88 2.208 4.88 4.922 0 2.713-2.189 4.921-4.88 4.921s-4.88-2.208-4.88-4.921v-.002h-3.032v.002c0 4.407 3.542 7.979 7.912 7.979s7.912-3.572 7.912-7.98c0-4.406-3.542-7.978-7.912-7.978M6.967 4.38c-.734-1.047-1.48-1.57-2.24-1.57-.37 0-.673.101-.909.304-.235.203-.353.433-.353.687 0 .255.084.496.252.723.229.303.919.954 2.069 1.952 1.076.923 1.728 1.505 1.957 1.746.572.592.977 1.158 1.216 1.699.239.54.358 1.13.358 1.771 0 1.247-.42 2.276-1.26 3.089-.84.812-1.936 1.218-3.287 1.218-1.056 0-1.975-.265-2.758-.795-.783-.53-1.454-1.363-2.012-2.5l2.37-1.466c.714 1.343 1.534 2.014 2.462 2.014.484 0 .891-.145 1.22-.434.33-.289.495-.623.495-1.002 0-.344-.124-.688-.373-1.033-.249-.344-.797-.87-1.645-1.58-1.614-1.35-2.657-2.391-3.128-3.124-.47-.734-.706-1.465-.706-2.195 0-1.054.392-1.958 1.175-2.711C2.653.419 3.62.042 4.77.042c.739 0 1.443.175 2.112.526.67.351 1.393.992 2.173 1.922l.264.29-2.124 1.923-.228-.323zM52.141.941h-3.39L44.884 5.99l-.649.834V.94h-2.823V16h2.823V8.48l.65.948L49.357 16h3.348l-5.647-8.214zM13.176 3.68h2.51V16h2.51V3.68h2.51V.94h-7.53z" }) }) });
14
4
  var stdin_default = LogoSvg;
15
5
  export {
16
6
  stdin_default as default
@@ -5,6 +5,7 @@ const RefreshSvg = () => /* @__PURE__ */ jsx(
5
5
  {
6
6
  version: "1.1",
7
7
  xmlns: "http://www.w3.org/2000/svg",
8
+ fill: "currentColor",
8
9
  viewBox: "0 0 16 16",
9
10
  width: "16",
10
11
  height: "16",
@@ -4,10 +4,8 @@ const VerifiedBadge = () => /* @__PURE__ */ jsx("svg", { width: "90", height: "3
4
4
  "path",
5
5
  {
6
6
  d: "M84.707 1H5.293A4.3 4.3 0 0 0 1 5.308v19.384A4.3 4.3 0 0 0 5.293 29h79.414A4.3 4.3 0 0 0 89 24.692V5.308A4.3 4.3 0 0 0 84.707 1zM87 24.818C87 26.023 86.036 27 84.846 27H5.154C3.964 27 3 26.023 3 24.818V5.182C3 3.977 3.964 3 5.154 3h79.692C86.036 3 87 3.977 87 5.182v19.636zM53 15c0 .552-.481 1-1.075 1h-40.85C10.481 16 10 15.552 10 15s.481-1 1.075-1h40.85c.594 0 1.075.448 1.075 1zm26.54-4.832c.473.316.602.953.29 1.428l-5.96 8.949c-.183.27-.482.439-.808.455-.307 0-.6-.136-.796-.372l-3.033-3.58a1.056 1.056 0 1 1 1.646-1.324l2.07 2.514 5.174-7.79a1.035 1.035 0 0 1 1.417-.28z",
7
- fill: "#FFF",
8
- fillRule: "nonzero",
9
- stroke: "#EE220D",
10
- strokeWidth: ".5"
7
+ fill: "currentColor",
8
+ fillRule: "nonzero"
11
9
  }
12
10
  ) });
13
11
  var stdin_default = VerifiedBadge;
@@ -0,0 +1,20 @@
1
+ export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
2
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
3
+ }, {
4
+ mobile?: boolean;
5
+ }>> & string;
6
+ export declare const Value: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
7
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
8
+ }, {
9
+ active?: boolean;
10
+ dark?: boolean;
11
+ }>> & string;
12
+ export declare const Indicator: 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
+ dark?: boolean;
16
+ value1?: boolean;
17
+ value1Color?: string;
18
+ value2?: boolean;
19
+ value2Color?: string;
20
+ }>> & string;
@@ -1,5 +1,4 @@
1
1
  import styled from "styled-components";
2
- import theme from "../../styles/theme.js";
3
2
  const switchWidth = 34;
4
3
  const Container = styled.div.withConfig({
5
4
  shouldForwardProp: (props) => !["mobile"].includes(props)
@@ -27,14 +26,14 @@ const Value = styled.button.withConfig({
27
26
  text-transform: uppercase;
28
27
  padding: 2px 0;
29
28
  opacity: 0.5;
30
- color: ${() => theme.cBlack};
29
+ color: var(--stokr-text-primary);
31
30
  transition:
32
31
  opacity 0.2s,
33
32
  color 0.2s;
34
33
  cursor: pointer;
35
34
 
36
35
  &:hover {
37
- color: ${() => theme.cPrimary};
36
+ color: var(--stokr-action-accent-bg);
38
37
  }
39
38
 
40
39
  ${(props) => props.active && `
@@ -42,10 +41,10 @@ const Value = styled.button.withConfig({
42
41
  `}
43
42
 
44
43
  ${(props) => props.dark && `
45
- color: ${theme.cPrimary};
44
+ color: var(--stokr-color-blue-500);
46
45
 
47
46
  &:hover {
48
- color: ${theme.cBlack};
47
+ color: var(--stokr-text-primary);
49
48
  }
50
49
  `};
51
50
  `;
@@ -57,7 +56,7 @@ const Indicator = styled.div.withConfig({
57
56
  width: ${switchWidth}px;
58
57
  height: 16px;
59
58
  border-radius: 8px;
60
- background-color: ${() => theme.cGrey};
59
+ background-color: var(--stokr-action-secondary-bg);
61
60
  margin: 0 16px;
62
61
  position: relative;
63
62
  outline: 0;
@@ -74,7 +73,7 @@ const Indicator = styled.div.withConfig({
74
73
  margin-top: -9px;
75
74
  margin-left: -9px;
76
75
  border-radius: 9px;
77
- background-color: ${() => theme.cBlack};
76
+ background-color: var(--stokr-action-primary-bg);
78
77
  transform: translateX(0);
79
78
  transition:
80
79
  transform 0.2s,
@@ -83,20 +82,20 @@ const Indicator = styled.div.withConfig({
83
82
 
84
83
  &:hover {
85
84
  &:before {
86
- background-color: ${() => theme.cPrimary};
85
+ background-color: var(--stokr-action-accent-bg);
87
86
  }
88
87
  }
89
88
 
90
89
  ${(props) => props.dark && `
91
- background-color: ${theme.cGrey2};
90
+ background-color: var(--stokr-color-neutral-500);
92
91
 
93
92
  &:before {
94
- background-color: ${theme.cPrimary};
93
+ background-color: var(--stokr-color-blue-500);
95
94
  }
96
95
 
97
96
  &:hover {
98
97
  &:before {
99
- background-color: ${theme.cBlack};
98
+ background-color: var(--stokr-color-neutral-900);
100
99
  }
101
100
  }
102
101
  `}
@@ -19,7 +19,7 @@ const getTransitionStyles = {
19
19
  opacity: 0
20
20
  }
21
21
  };
22
- const Tabs = ({ children, activeTab = 0 }) => /* @__PURE__ */ jsx(TransitionGroup, { component: StyledTabs, children: React__default.Children.map(children, (child) => {
22
+ const Tabs = ({ children, activeTab }) => /* @__PURE__ */ jsx(TransitionGroup, { component: StyledTabs, children: React__default.Children.map(children, (child) => {
23
23
  if (child.props.tabId !== activeTab || !React__default.isValidElement(child)) return null;
24
24
  return /* @__PURE__ */ jsx(
25
25
  Transition,
@@ -44,7 +44,7 @@ const Tabs = ({ children, activeTab = 0 }) => /* @__PURE__ */ jsx(TransitionGrou
44
44
  }) });
45
45
  Tabs.propTypes = {
46
46
  children: PropTypes.node.isRequired,
47
- activeTab: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
47
+ activeTab: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
48
48
  };
49
49
  export {
50
50
  Tab,
@@ -0,0 +1,25 @@
1
+ export declare const StyledTabs: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
2
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
3
+ }, {
4
+ noBorderBottom?: boolean;
5
+ }>> & string;
6
+ export declare const Scroll: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
7
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
8
+ }> & string;
9
+ export declare const TabsWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
10
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
11
+ }, {
12
+ noWrapperPadding?: boolean;
13
+ }>> & string;
14
+ export declare const LinkText: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
15
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
16
+ }> & string;
17
+ interface StyledTabProps {
18
+ isActive?: boolean;
19
+ /** Extra CSS appended to the tab, e.g. `padding: 8px;`. */
20
+ customStyles?: string;
21
+ }
22
+ export declare const StyledTab: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
23
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
24
+ }, StyledTabProps>> & string;
25
+ export {};
@@ -1,11 +1,10 @@
1
1
  import styled from "styled-components";
2
- import rwd from "../../styles/rwd.js";
3
- import theme from "../../styles/theme.js";
2
+ import { breakpoint } from "../../design-system/styled/breakpoint.js";
4
3
  const StyledTabs = styled.div.withConfig({
5
4
  shouldForwardProp: (props) => !["noBorderBottom"].includes(props)
6
5
  })`
7
6
  position: relative;
8
- border-bottom: 1px solid ${theme.cLightGrey};
7
+ border-bottom: 1px solid var(--stokr-border-subtle);
9
8
 
10
9
  ${(props) => props.noBorderBottom && `
11
10
  border-bottom: none;
@@ -23,7 +22,7 @@ const TabsWrapper = styled.div.withConfig({
23
22
  white-space: nowrap;
24
23
  padding: 12px 0;
25
24
 
26
- ${rwd.Medium`
25
+ ${breakpoint.Medium`
27
26
  padding: 24px;
28
27
  `}
29
28
 
@@ -34,7 +33,7 @@ const TabsWrapper = styled.div.withConfig({
34
33
  const LinkText = styled.span`
35
34
  display: block;
36
35
  position: relative;
37
- font-family: 'Open Sans';
36
+ font-family: var(--stokr-font-family-base);
38
37
  font-size: 11px;
39
38
  letter-spacing: 2px;
40
39
  line-height: 20px;
@@ -61,14 +60,14 @@ const StyledTab = styled.button.withConfig({
61
60
  outline: none;
62
61
  visibility: visible;
63
62
  padding: 12px;
64
- color: ${() => theme.cBlack};
63
+ color: var(--stokr-text-primary);
65
64
  transition: opacity 0.2s;
66
65
 
67
- ${rwd.Medium`
66
+ ${breakpoint.Medium`
68
67
  padding: 24px;
69
68
  `}
70
69
 
71
- ${rwd.Large`
70
+ ${breakpoint.Large`
72
71
  padding: 32px 40px;
73
72
  `}
74
73
 
@@ -87,7 +86,7 @@ const StyledTab = styled.button.withConfig({
87
86
  font-weight: bold;
88
87
 
89
88
  &:before {
90
- background-color: ${theme.cPrimary}!important;
89
+ background-color: var(--stokr-action-accent-bg)!important;
91
90
  }
92
91
  }
93
92
  `}