@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
@@ -6,15 +6,14 @@ import { Modal } from "./Modal.js";
6
6
  import { Text } from "../Text/Text.styles.js";
7
7
  import { ComponentWrapper } from "../ComponentWrapper/ComponentWrapper.styles.js";
8
8
  import { Row, Column } from "../Grid/Grid.styles.js";
9
- import stdin_default from "../CryptoAddress/CryptoAddress.js";
9
+ import { CryptoAddress } from "../CryptoAddress/CryptoAddress.js";
10
10
  import { Button } from "../Button/Button.styles.js";
11
11
  import { getCurrencySymbol } from "../../utils/formatCurrencyValue.js";
12
- import theme from "../../styles/theme.js";
13
12
  import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
14
13
  import styled from "styled-components";
15
14
  import { ModalInner } from "./Modal.styles.js";
16
15
  const WarningBox = styled.div`
17
- background: ${theme.cWarning};
16
+ background: var(--stokr-status-error-bg);
18
17
  border-radius: 4px;
19
18
  padding: 10px;
20
19
  display: flex;
@@ -45,16 +44,15 @@ const PaymentModal = ({
45
44
  withTimer = false,
46
45
  error,
47
46
  secondsRemaining,
48
- modalTitle = `SEND YOUR ${data?.tokenSymbolToSend}`,
47
+ modalTitle = `SEND YOUR ${data?.tokenSymbolToSend ?? "TOKENS"}`,
49
48
  txTextInRed = true,
50
49
  sendTokenTextRight = /* @__PURE__ */ jsxs("p", { children: [
51
50
  "Send your ",
52
- data?.tokenSymbolToSend,
51
+ data?.tokenSymbolToSend ?? "tokens",
53
52
  " to the treasury wallet below."
54
53
  ] }),
55
54
  numberOfSecuritiesText = "Redeem securities",
56
55
  transactionCostMessage,
57
- /** QR code content: the chain's payment URI (address, amount, asset). Without it the QR holds the treasury address. */
58
56
  paymentLink,
59
57
  investorWalletLabel = "Your wallet:",
60
58
  treasuryWalletLabel = "Treasury wallet:",
@@ -65,7 +63,7 @@ const PaymentModal = ({
65
63
  const treasuryWallet = data.treasuryWallet ?? projectData?.companyWallet;
66
64
  const qrValue = paymentLink ?? treasuryWallet;
67
65
  const txCostParagraphStyle = {
68
- color: txTextInRed ? theme.cWarning : "inherit"
66
+ color: txTextInRed ? "var(--stokr-status-error-text)" : "inherit"
69
67
  };
70
68
  const isKYCVerified = user?.kyc_status === "Accepted";
71
69
  return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Modal, { isOpen: isModalOpen, onClose: onModalClose, children: /* @__PURE__ */ jsxs(ModalInner, { children: [
@@ -76,7 +74,7 @@ const PaymentModal = ({
76
74
  /* @__PURE__ */ jsxs("p", { children: [
77
75
  "Request date:",
78
76
  " ",
79
- /* @__PURE__ */ jsx("strong", { children: createdAt && !isNaN(new Date(createdAt)) ? formatInTimeZone(new Date(createdAt), "Europe/Berlin", "dd MMM yyyy - HH:mm zzz") : "—" })
77
+ /* @__PURE__ */ jsx("strong", { children: createdAt && !isNaN(new Date(createdAt).getTime()) ? formatInTimeZone(new Date(createdAt), "Europe/Berlin", "dd MMM yyyy - HH:mm zzz") : "—" })
80
78
  ] }),
81
79
  /* @__PURE__ */ jsxs("p", { children: [
82
80
  "Your securities: ",
@@ -87,7 +85,7 @@ const PaymentModal = ({
87
85
  ] }),
88
86
  /* @__PURE__ */ jsx("p", { children: investorWalletLabel }),
89
87
  /* @__PURE__ */ jsx(
90
- stdin_default,
88
+ CryptoAddress,
91
89
  {
92
90
  noHead: true,
93
91
  data: { value: investorWallet, tooltip: true, shortAddress: true },
@@ -108,7 +106,7 @@ const PaymentModal = ({
108
106
  ] })
109
107
  ] })
110
108
  ] }),
111
- withTimer && typeof secondsRemaining === "number" && secondsRemaining > 0 && /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingHorizontal: true, noPaddingBottom: true, children: /* @__PURE__ */ jsx(Text, { children: /* @__PURE__ */ jsxs("p", { style: { color: theme.cWarning }, children: [
109
+ withTimer && typeof secondsRemaining === "number" && secondsRemaining > 0 && /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingHorizontal: true, noPaddingBottom: true, children: /* @__PURE__ */ jsx(Text, { children: /* @__PURE__ */ jsxs("p", { style: { color: "var(--stokr-status-error-text)" }, children: [
112
110
  formatInTimeZone(new Date(secondsRemaining * 1e3), "UTC", "mm:ss"),
113
111
  " Waiting for payment..."
114
112
  ] }) }) }),
@@ -119,7 +117,7 @@ const PaymentModal = ({
119
117
  transactionCostMessage != null && transactionCostMessage !== false && (React__default.isValidElement(transactionCostMessage) ? transactionCostMessage : /* @__PURE__ */ jsx("p", { style: txCostParagraphStyle, children: transactionCostMessage })),
120
118
  isKYCVerified || !showKYCWarningBox ? /* @__PURE__ */ jsxs(Fragment, { children: [
121
119
  /* @__PURE__ */ jsx(
122
- stdin_default,
120
+ CryptoAddress,
123
121
  {
124
122
  title: treasuryWalletLabel,
125
123
  data: {
@@ -133,8 +131,8 @@ const PaymentModal = ({
133
131
  qrValue && /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingHorizontal: true, noPaddingBottom: true, children: /* @__PURE__ */ jsx(QRCodeSVG, { value: qrValue, size: 150 }) })
134
132
  ] }) : /* @__PURE__ */ jsxs("div", { style: { position: "relative" }, children: [
135
133
  /* @__PURE__ */ jsxs(WarningBox, { children: [
136
- /* @__PURE__ */ jsx(MaterialIcon, { name: "warning", size: 32, color: "white" }),
137
- /* @__PURE__ */ jsxs("p", { style: { color: theme.cWhite }, children: [
134
+ /* @__PURE__ */ jsx(MaterialIcon, { name: "warning", size: "xl", color: "var(--stokr-status-error-icon)" }),
135
+ /* @__PURE__ */ jsxs("p", { style: { color: "var(--stokr-status-error-text)" }, children: [
138
136
  "Your KYC needs an update, please contact",
139
137
  " ",
140
138
  /* @__PURE__ */ jsx("a", { href: "mailto:compliance@stokr.io", style: { color: "inherit" }, children: "compliance@stokr.io" })
@@ -1,6 +1,5 @@
1
1
  import styled, { css } from "styled-components";
2
- import { colors } from "../../styles/colors.js";
3
- import { space, radius } from "../../styles/spacing.js";
2
+ import { breakpoint } from "../../design-system/styled/breakpoint.js";
4
3
  const toCss = (size, unit) => typeof size === "number" ? `${size}${unit}` : size;
5
4
  const SideModalRoot = styled.div`
6
5
  position: fixed;
@@ -31,7 +30,7 @@ const SideModalBox = styled.div`
31
30
  min-width: ${({ $minWidth }) => toCss($minWidth, "px")};
32
31
  max-width: 90%;
33
32
  height: 100%;
34
- background-color: ${colors.white};
33
+ background-color: var(--stokr-background-surface-raised);
35
34
  box-shadow: ${({ $side }) => $side === "left" ? "2px" : "-2px"} 0 8px rgba(0, 0, 0, 0.15);
36
35
  display: flex;
37
36
  flex-direction: column;
@@ -43,15 +42,15 @@ const SideModalBox = styled.div`
43
42
  --side-modal-padding: ${({ $padding }) => toCss(Array.isArray($padding) ? $padding[0] : $padding, "px")};
44
43
 
45
44
  /* Same edge as the phone width rule below (max-width: 768px). */
46
- @media (min-width: 769px) {
45
+ ${breakpoint.Medium`
47
46
  --side-modal-padding: ${({ $padding }) => toCss(Array.isArray($padding) ? $padding[1] : $padding, "px")};
48
- }
47
+ `}
49
48
 
50
49
  &:focus {
51
50
  outline: none;
52
51
  }
53
52
 
54
- @media (max-width: 768px) {
53
+ ${breakpoint.max.Medium`
55
54
  width: 90%;
56
55
  min-width: 90%;
57
56
  max-width: 90%;
@@ -62,12 +61,12 @@ const SideModalBox = styled.div`
62
61
  max-width: 100%;
63
62
  box-shadow: none;
64
63
  `}
65
- }
64
+ `}
66
65
  `;
67
66
  const OutlinedCloseButton = styled.button`
68
67
  position: ${({ $inHeader }) => $inHeader ? "static" : "absolute"};
69
- top: ${space[6]};
70
- right: ${space[6]};
68
+ top: var(--stokr-space-6);
69
+ right: var(--stokr-space-6);
71
70
  z-index: 4;
72
71
  display: inline-flex;
73
72
  align-items: center;
@@ -75,16 +74,16 @@ const OutlinedCloseButton = styled.button`
75
74
  width: 40px;
76
75
  height: 40px;
77
76
  padding: 0;
78
- background: ${colors.white};
79
- border: 2px solid ${colors.lightGrey};
80
- border-radius: ${radius.full};
81
- color: ${colors.black};
77
+ background: var(--stokr-background-surface-raised);
78
+ border: 2px solid var(--stokr-border-subtle);
79
+ border-radius: var(--stokr-radius-full);
80
+ color: var(--stokr-text-primary);
82
81
  cursor: pointer;
83
82
  transition: border-color 0.2s;
84
83
 
85
84
  &:hover,
86
85
  &:focus-visible {
87
- border-color: ${colors.black};
86
+ border-color: var(--stokr-border-strong);
88
87
  }
89
88
  `;
90
89
  export {
@@ -1,10 +1,8 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useContext, useEffect, useLayoutEffect } from "react";
3
3
  import styled, { css } from "styled-components";
4
- import { colors } from "../../styles/colors.js";
5
- import { space } from "../../styles/spacing.js";
6
- import { typography } from "../../styles/typography.js";
7
4
  import { SideModalContext } from "./SideModalContext.js";
5
+ import { text } from "../../design-system/styled/text.js";
8
6
  const useIsomorphicLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect;
9
7
  const sidePadding = css`
10
8
  padding-right: var(--side-modal-padding, 24px);
@@ -16,34 +14,34 @@ const HeaderRoot = styled.div`
16
14
  flex-shrink: 0;
17
15
  align-items: center;
18
16
  justify-content: space-between;
19
- gap: ${space[4]};
20
- padding-top: ${space[8]};
21
- padding-bottom: ${space[5]};
17
+ gap: var(--stokr-space-4);
18
+ padding-top: var(--stokr-space-8);
19
+ padding-bottom: var(--stokr-space-5);
22
20
  /* Room for the filled close button in the panel's corner. */
23
21
  ${({ $cornerButton }) => $cornerButton && "padding-right: calc(var(--side-modal-padding, 24px) + 40px);"}
24
22
 
25
23
  /* The rule lines up with the content, inside the side padding. */
26
24
  ${({ $divided }) => $divided && css`
27
- background: linear-gradient(${colors.lightGrey}, ${colors.lightGrey}) center bottom /
25
+ background: linear-gradient(var(--stokr-border-subtle), var(--stokr-border-subtle)) center bottom /
28
26
  calc(100% - 2 * var(--side-modal-padding, 24px)) 1px no-repeat;
29
27
  `}
30
28
  `;
31
29
  const HeaderText = styled.div`
32
30
  display: flex;
33
31
  flex-direction: column;
34
- gap: ${space[1]};
32
+ gap: var(--stokr-space-1);
35
33
  min-width: 0;
36
34
  `;
37
35
  const Title = styled.h2`
38
- ${({ $size }) => $size === "lg" ? typography.h3 : typography.sectionTitle};
36
+ ${({ $size }) => $size === "lg" ? text("titleL") : text("subtitleM")};
39
37
  margin: 0;
40
- color: ${({ $size }) => $size === "lg" ? colors.black : colors.pureBlack};
38
+ color: var(--stokr-text-primary);
41
39
  ${({ $size }) => $size === "md" && "text-transform: none;"}
42
40
  `;
43
41
  const Subtitle = styled.p`
44
- ${typography.bodyMd};
42
+ ${text("bodyS")};
45
43
  margin: 0;
46
- color: ${colors.grayBlue};
44
+ color: var(--stokr-text-secondary);
47
45
  `;
48
46
  const SideModalHeader = ({ title, subtitle, size = "md", divided = false, children }) => {
49
47
  const { titleId, closeButton, cornerButton, registerHeader } = useContext(SideModalContext);
@@ -63,11 +61,11 @@ const SideModalBody = styled.div`
63
61
  min-height: 0;
64
62
  overflow-x: hidden;
65
63
  overflow-y: auto;
66
- padding-top: ${space[4]};
67
- padding-bottom: ${space[8]};
64
+ padding-top: var(--stokr-space-4);
65
+ padding-bottom: var(--stokr-space-8);
68
66
  background:
69
- linear-gradient(${colors.white} 30%, rgba(255, 255, 255, 0)) center top,
70
- linear-gradient(rgba(255, 255, 255, 0), ${colors.white} 70%) center bottom,
67
+ linear-gradient(var(--stokr-background-default) 30%, transparent) center top,
68
+ linear-gradient(transparent, var(--stokr-background-default) 70%) center bottom,
71
69
  radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) center top,
72
70
  radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) center bottom;
73
71
  background-repeat: no-repeat;
@@ -83,10 +81,10 @@ const SideModalFooter = styled.div`
83
81
  display: flex;
84
82
  flex-shrink: 0;
85
83
  flex-direction: column;
86
- gap: ${space[3]};
87
- padding-top: ${space[4]};
88
- padding-bottom: ${space[6]};
89
- border-top: 1px solid ${colors.lightGrey};
84
+ gap: var(--stokr-space-3);
85
+ padding-top: var(--stokr-space-4);
86
+ padding-bottom: var(--stokr-space-6);
87
+ border-top: 1px solid var(--stokr-border-subtle);
90
88
  `;
91
89
  export {
92
90
  SideModalBody,
@@ -0,0 +1,15 @@
1
+ export declare const SuccessModalContent: 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 AnimationContainer: 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 Title: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "style"> & {
8
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
9
+ }> & string;
10
+ export declare const Subtitle: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
11
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
12
+ }> & string;
13
+ export declare const ContentWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
14
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
15
+ }> & string;
@@ -1,5 +1,4 @@
1
1
  import styled from "styled-components";
2
- import { colors } from "../../../styles/colors.js";
3
2
  const SuccessModalContent = styled.div`
4
3
  display: flex;
5
4
  flex-direction: column;
@@ -18,18 +17,18 @@ const AnimationContainer = styled.div`
18
17
  align-items: center;
19
18
  justify-content: center;
20
19
  flex-shrink: 0;
21
- font-family: 'Open Sans';
20
+ font-family: var(--stokr-font-family-base);
22
21
  `;
23
22
  const Title = styled.h2`
24
23
  margin: 0 0 16px 0;
25
24
  font-size: 22px;
26
25
  font-weight: 800;
27
- color: ${colors.black};
26
+ color: var(--stokr-text-primary);
28
27
  text-transform: uppercase;
29
28
  letter-spacing: 0.8px;
30
29
  line-height: 28px;
31
30
  flex-shrink: 0;
32
- font-family: 'Open Sans';
31
+ font-family: var(--stokr-font-family-base);
33
32
  `;
34
33
  const Subtitle = styled.p`
35
34
  margin: 0 0 24px 0;
@@ -0,0 +1,8 @@
1
+ export declare const NotificationCounter: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
2
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
3
+ }, {
4
+ avatar?: boolean;
5
+ mobile?: boolean;
6
+ mobileMenu?: boolean;
7
+ }>> & string;
8
+ export default NotificationCounter;
@@ -1,12 +1,11 @@
1
1
  import styled from "styled-components";
2
- import theme from "../../styles/theme.js";
3
2
  const NotificationCounter = styled.span.withConfig({
4
3
  shouldForwardProp: (props) => !["avatar", "mobile", "mobileMenu"].includes(props)
5
4
  })`
6
5
  display: inline-block;
7
6
  vertical-align: middle;
8
- color: ${() => theme.cWhite};
9
- background-color: ${() => theme.cWarning};
7
+ color: var(--stokr-text-on-brand);
8
+ background-color: var(--stokr-status-error-icon);
10
9
  border-radius: 50%;
11
10
  min-width: 16px;
12
11
  height: 16px;
@@ -38,7 +38,7 @@ const getIcon = (number) => {
38
38
  return null;
39
39
  }
40
40
  };
41
- const Number = ({ number, containerStyle }) => /* @__PURE__ */ jsx("div", { style: containerStyle, children: getIcon(number) });
41
+ const Number = ({ number, containerStyle }) => /* @__PURE__ */ jsx("div", { style: { color: "var(--stokr-text-primary)", ...containerStyle }, children: getIcon(number) });
42
42
  const NumberWithContainer = ({ number, containerStyle }) => /* @__PURE__ */ jsx(Container, { style: containerStyle, children: getIcon(number) });
43
43
  Number.propTypes = {
44
44
  number: PropTypes.number.isRequired,
@@ -0,0 +1,4 @@
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 default Container;
@@ -1,12 +1,12 @@
1
1
  import styled from "styled-components";
2
- import theme from "../../styles/theme.js";
3
2
  const Container = styled.div`
4
3
  display: inline-block;
5
4
  vertical-align: top;
6
5
  width: 24px;
7
6
  height: 24px;
8
7
  padding: 4px;
9
- background-color: ${() => theme.cWarning};
8
+ background-color: var(--stokr-status-error-icon);
9
+ color: var(--stokr-text-on-brand);
10
10
  font-size: 0;
11
11
  text-align: center;
12
12
  margin-right: 12px;
@@ -15,7 +15,6 @@ const Container = styled.div`
15
15
  display: inline-block;
16
16
  height: 16px;
17
17
  width: auto;
18
- fill: ${() => theme.cWhite};
19
18
  }
20
19
  `;
21
20
  export {
@@ -0,0 +1,15 @@
1
+ declare const StyledList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "style"> & {
2
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
3
+ }, {
4
+ listStyle?: string;
5
+ }>> & string & {
6
+ Item: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "style"> & {
7
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
8
+ }, {
9
+ arrow?: boolean;
10
+ selected?: boolean;
11
+ disabled?: boolean;
12
+ dots?: boolean;
13
+ }>> & string;
14
+ };
15
+ export { StyledList };
@@ -1,6 +1,5 @@
1
1
  import styled from "styled-components";
2
- import theme from "../../styles/theme.js";
3
- const StyledList = styled.ul.withConfig({
2
+ const StyledListBase = styled.ul.withConfig({
4
3
  shouldForwardProp: (props) => !["listStyle"].includes(props)
5
4
  })`
6
5
  display: flex;
@@ -11,13 +10,15 @@ const StyledList = styled.ul.withConfig({
11
10
  const ListItem = styled.li.withConfig({
12
11
  shouldForwardProp: (props) => !["arrow", "selected", "disabled", "dots"].includes(props)
13
12
  })`
14
- padding: 0 12px;
13
+ box-sizing: border-box;
14
+ padding: 0 8px;
15
15
  height: 32px;
16
16
  text-align: center;
17
17
  margin: auto 4px;
18
- color: ${theme.cBlack};
18
+ color: var(--stokr-text-primary);
19
19
  display: flex;
20
20
  align-items: center;
21
+ justify-content: center;
21
22
  letter-spacing: 0.01071em;
22
23
  border-radius: 16px;
23
24
  line-height: 1.43;
@@ -26,18 +27,18 @@ const ListItem = styled.li.withConfig({
26
27
  min-width: 32px;
27
28
 
28
29
  ${(props) => props.arrow && `
29
- padding:0 9px;
30
+ padding: 0;
30
31
  `}
31
32
 
32
33
  &:hover {
33
- background-color: ${theme.cPrimary};
34
- color: ${theme.cWhite};
34
+ background-color: var(--stokr-action-accent-bg);
35
+ color: var(--stokr-action-accent-text);
35
36
  cursor: pointer;
36
37
  }
37
38
 
38
39
  ${(props) => props.selected && `
39
- color: ${theme.cWhite};
40
- background-color: ${theme.cPrimary};
40
+ color: var(--stokr-action-accent-text);
41
+ background-color: var(--stokr-action-accent-bg);
41
42
  `}
42
43
 
43
44
  ${(props) => props.disabled && `
@@ -49,11 +50,11 @@ const ListItem = styled.li.withConfig({
49
50
  &:hover{
50
51
  background-color: transparent;
51
52
  cursor: default;
52
- color:${theme.cBlack}
53
+ color:var(--stokr-text-primary)
53
54
  }
54
55
  `}
55
56
  `;
56
- StyledList.Item = ListItem;
57
+ const StyledList = Object.assign(StyledListBase, { Item: ListItem });
57
58
  export {
58
59
  StyledList
59
60
  };
@@ -0,0 +1,14 @@
1
+ import { PaymentDetailRow } from './PaymentDetailsCard';
2
+ /**
3
+ * A vertical list of label/value rows (Status, Transaction ID, etc.) with hairline
4
+ * dividers between them. Thin wrapper around PaymentDetailsCard's DetailItem so the
5
+ * same href/tooltip/isCustom/labelIcon/valueIcon escape hatches apply everywhere rows
6
+ * show up (PaymentPendingCard, DetailsToggle) — e.g. a copy-to-clipboard icon next to
7
+ * a wallet address: { label: 'To address', value: '0x71C...', valueIcon: <CopyToClipBoardTooltip value="0x71C..." /> }
8
+ */
9
+ export interface DetailRowsProps {
10
+ /** Rows to show. Renders nothing when empty. */
11
+ rows: PaymentDetailRow[];
12
+ }
13
+ export declare const DetailRows: ({ rows }: DetailRowsProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default DetailRows;
@@ -1,7 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import React__default from "react";
3
3
  import styled from "styled-components";
4
- import { colors } from "../../styles/colors.js";
5
4
  import { DetailItem } from "./PaymentDetailsCard.js";
6
5
  const Rows = styled.div`
7
6
  display: flex;
@@ -13,7 +12,7 @@ const Rows = styled.div`
13
12
  `;
14
13
  const RowDivider = styled.div`
15
14
  height: 1px;
16
- background: ${colors.lightGrey};
15
+ background: var(--stokr-border-subtle);
17
16
  width: 100%;
18
17
  `;
19
18
  const DetailRows = ({ rows = [] }) => {
@@ -0,0 +1,23 @@
1
+ import { PaymentDetailRow } from './PaymentDetailsCard';
2
+ /**
3
+ * "Show details ⌄" / "Hide details ⌄" toggle that reveals a DetailRows list.
4
+ * Uncontrolled by default (own open/closed state); pass `open` + `onToggle` to
5
+ * control it externally. Used by PaymentSuccessCard, and droppable into
6
+ * PaymentDisplay's `children` slot for the pay-screen "show details" case.
7
+ */
8
+ export interface DetailsToggleProps {
9
+ /** Rows revealed by the toggle. */
10
+ rows?: PaymentDetailRow[];
11
+ /** Initial state when uncontrolled. */
12
+ defaultOpen?: boolean;
13
+ /** Controlled state; leave undefined for an uncontrolled toggle. */
14
+ open?: boolean;
15
+ /** Called with the next state on every click. */
16
+ onToggle?: (open: boolean) => void;
17
+ /** Label while closed. */
18
+ showLabel?: string;
19
+ /** Label while open. */
20
+ hideLabel?: string;
21
+ }
22
+ export declare const DetailsToggle: ({ rows, defaultOpen, open: controlledOpen, onToggle, showLabel, hideLabel, }: DetailsToggleProps) => import("react/jsx-runtime").JSX.Element;
23
+ export default DetailsToggle;
@@ -1,7 +1,6 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import styled from "styled-components";
4
- import { colors } from "../../styles/colors.js";
5
4
  import { DetailRows } from "./DetailRows.js";
6
5
  const ToggleButton = styled.button`
7
6
  display: flex;
@@ -17,10 +16,10 @@ const ToggleButton = styled.button`
17
16
  font-weight: 700;
18
17
  letter-spacing: 2px;
19
18
  text-transform: uppercase;
20
- color: ${colors.black};
19
+ color: var(--stokr-text-primary);
21
20
 
22
21
  &:hover {
23
- color: ${colors.blue};
22
+ color: var(--stokr-action-accent-bg);
24
23
  }
25
24
  `;
26
25
  const Chevron = styled.svg`
@@ -67,7 +66,16 @@ const DetailsToggle = ({
67
66
  fill: "none",
68
67
  xmlns: "http://www.w3.org/2000/svg",
69
68
  "aria-hidden": "true",
70
- children: /* @__PURE__ */ jsx("path", { d: "M1 2L7 8L13 2", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
69
+ children: /* @__PURE__ */ jsx(
70
+ "path",
71
+ {
72
+ d: "M1 2L7 8L13 2",
73
+ stroke: "currentColor",
74
+ strokeWidth: "1.5",
75
+ strokeLinecap: "round",
76
+ strokeLinejoin: "round"
77
+ }
78
+ )
71
79
  }
72
80
  )
73
81
  ] })
@@ -0,0 +1,95 @@
1
+ import { default as React, CSSProperties, ReactNode } from 'react';
2
+ export declare const CurrencyLogo: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
3
+ style?: React.CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
4
+ }, {
5
+ color?: string;
6
+ }>> & string;
7
+ export declare const DetailsSection: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
8
+ style?: React.CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
9
+ }, {
10
+ noMargin?: boolean;
11
+ }>> & string;
12
+ /** One label/value row. Also the row shape accepted by `DetailRows`, `DetailsToggle` and `PaymentDetailsCard`. */
13
+ export interface PaymentDetailRow {
14
+ label?: ReactNode;
15
+ /** Rendered as text, or as JSX when `isCustom` is set. */
16
+ value?: ReactNode;
17
+ /** Adds an info icon with this tooltip next to the label. */
18
+ tooltip?: ReactNode;
19
+ /** Shown (muted) when `value` is empty. */
20
+ placeholder?: ReactNode;
21
+ /** Render `value` as-is instead of as plain text. */
22
+ isCustom?: boolean;
23
+ /** Turns the value into an external link (unsafe URLs are ignored). */
24
+ href?: string;
25
+ /** Link target; defaults to `_blank`. */
26
+ target?: string;
27
+ labelIcon?: ReactNode;
28
+ valueIcon?: ReactNode;
29
+ /** React key; falls back to the row index. */
30
+ key?: string | number;
31
+ }
32
+ export type DetailItemProps = Omit<PaymentDetailRow, 'key'>;
33
+ export declare const DetailItem: ({ label, value, tooltip, placeholder, isCustom, href, target, labelIcon, valueIcon, }: DetailItemProps) => import("react/jsx-runtime").JSX.Element;
34
+ /** One amount block: icon, value and optional currency ticker. */
35
+ export interface PaymentAmountConfig {
36
+ label?: ReactNode;
37
+ subtitle?: ReactNode;
38
+ amount?: number | string | null;
39
+ /** Currency id (e.g. `btc-fb`, `euro`) or a project token symbol. */
40
+ currency?: string;
41
+ /** Only used for project tokens that are not in the currency config. */
42
+ decimals?: number;
43
+ currencyColor?: string;
44
+ /** Custom icon URL; wins over the currency's own icon. */
45
+ icon?: string;
46
+ showTicker?: boolean;
47
+ banner?: ReactNode;
48
+ }
49
+ /** A titled group of detail rows. */
50
+ export interface PaymentDetailGroup {
51
+ sectionTitle?: ReactNode;
52
+ items: PaymentDetailRow[];
53
+ key?: string | number;
54
+ }
55
+ /**
56
+ * PaymentDetailsCard - Fully customizable details card
57
+ *
58
+ * @param {string} title - Optional card title (displayed in header bar)
59
+ * @param {object|node} amountSection - Single amount config or custom node (backward compat)
60
+ * - If object: { label, subtitle, amount, currency, decimals, currencyColor, icon, showTicker, banner }
61
+ * - If node: renders custom component
62
+ * @param {array} amountSections - Array of amount configs for multiple amount blocks
63
+ * - Each: { label, subtitle, amount, currency, decimals, currencyColor, icon, showTicker, banner }
64
+ * - `decimals` is only used for project tokens not in the currency config; known
65
+ * currencies always use their configured decimals.
66
+ * @param {array} details - Flat array of detail items (backward compat)
67
+ * - { label, value, tooltip, placeholder, isCustom, href, target, labelIcon, valueIcon }
68
+ * @param {array} detailGroups - Array of grouped detail sections with optional headers
69
+ * - { sectionTitle, items: [{ label, value, tooltip, placeholder, isCustom, href, target, labelIcon, valueIcon }] }
70
+ * @param {node} infoSection - Optional custom node for bottom info section
71
+ * @param {boolean} showSeparators - Whether to show separators between sections
72
+ * @param {boolean} showArrowSeparator - Show a down-arrow separator between amount sections
73
+ * @param {object} containerStyle - Optional inline style for the container
74
+ */
75
+ export interface PaymentDetailsCardProps {
76
+ /** Card title, shown in the header bar. */
77
+ title?: ReactNode;
78
+ /** A single amount config, or a custom node. */
79
+ amountSection?: PaymentAmountConfig | ReactNode;
80
+ /** Several amount blocks. Wins over `amountSection`. */
81
+ amountSections?: (PaymentAmountConfig | ReactNode)[];
82
+ /** Flat list of detail rows. */
83
+ details?: PaymentDetailRow[];
84
+ /** Grouped detail rows with optional headers. Wins over `details`. */
85
+ detailGroups?: PaymentDetailGroup[];
86
+ /** Custom node for the bottom info section. */
87
+ infoSection?: ReactNode;
88
+ /** Separators between the sections. */
89
+ showSeparators?: boolean;
90
+ /** A down arrow between amount sections instead of a plain line. */
91
+ showArrowSeparator?: boolean;
92
+ containerStyle?: CSSProperties;
93
+ }
94
+ export declare const PaymentDetailsCard: ({ title, amountSection, amountSections, details, detailGroups, infoSection, showSeparators, showArrowSeparator, containerStyle, }: PaymentDetailsCardProps) => import("react/jsx-runtime").JSX.Element;
95
+ export default PaymentDetailsCard;