@stokr/components-library 5.0.0 → 5.0.2

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 (183) hide show
  1. package/README.md +8 -8
  2. package/dist/components/AddressItem/AddressItem.d.ts +38 -0
  3. package/dist/components/AddressItem/AddressItem.js +51 -0
  4. package/dist/components/AddressItem/AddressItem.styles.d.ts +31 -0
  5. package/dist/components/AddressItem/AddressItem.styles.js +71 -0
  6. package/dist/components/AdminDashboard/Table/Table.styles.js +18 -25
  7. package/dist/components/AgreementItem/AgreementItem.styles.js +1 -1
  8. package/dist/components/BackButton/BackButton.styles.js +15 -15
  9. package/dist/components/BasicTable/BasicTable.styles.js +6 -8
  10. package/dist/components/BlogPost/BlogPost.styles.js +9 -13
  11. package/dist/components/Button/Button.styles.d.ts +1 -1
  12. package/dist/components/Button/Button.styles.js +122 -11
  13. package/dist/components/Button/GlareButton.js +1 -1
  14. package/dist/components/Card/Card.styles.js +3 -4
  15. package/dist/components/CardTabs/CardTabs.styles.js +17 -17
  16. package/dist/components/ChartLegend/ChartLegend.styles.js +6 -7
  17. package/dist/components/Checkbox/Checkbox.styles.d.ts +1 -0
  18. package/dist/components/Checkbox/Checkbox.styles.js +10 -11
  19. package/dist/components/Checklist/ChecklistCard.js +3 -3
  20. package/dist/components/Checklist/ChecklistCard.styles.js +7 -20
  21. package/dist/components/Chips/Chip.js +2 -2
  22. package/dist/components/Chips/Chip.styles.js +6 -10
  23. package/dist/components/Collapsible/Collapsible.d.ts +10 -4
  24. package/dist/components/Collapsible/Collapsible.js +6 -14
  25. package/dist/components/Collapsible/Collapsible.styles.d.ts +3 -1
  26. package/dist/components/Collapsible/Collapsible.styles.js +33 -16
  27. package/dist/components/ComponentScroll/ComponentScroll.styles.js +5 -5
  28. package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +5 -5
  29. package/dist/components/ConfirmModal/ConfirmModal.styles.js +2 -2
  30. package/dist/components/Country/CountrySelect.js +15 -20
  31. package/dist/components/Country/FlagFor.d.ts +9 -0
  32. package/dist/components/Country/FlagFor.js +25 -0
  33. package/dist/components/Country/flagLoaders.d.ts +5 -0
  34. package/dist/components/Country/flagLoaders.js +270 -0
  35. package/dist/components/Country/flagStore.d.ts +6 -0
  36. package/dist/components/Country/flagStore.js +29 -0
  37. package/dist/components/CryptoAddress/CryptoAddress.d.ts +6 -2
  38. package/dist/components/CryptoAddress/CryptoAddress.js +2 -2
  39. package/dist/components/CryptoAddress/CryptoAddress.styles.d.ts +2 -1
  40. package/dist/components/CryptoAddress/CryptoAddress.styles.js +20 -27
  41. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +2 -2
  42. package/dist/components/FAQ/FAQ.d.ts +29 -0
  43. package/dist/components/FAQ/FAQ.js +18 -18
  44. package/dist/components/FAQ/FAQ.styles.d.ts +11 -3
  45. package/dist/components/FAQ/FAQ.styles.js +59 -10
  46. package/dist/components/Form/Form.styles.js +5 -5
  47. package/dist/components/Grid/Grid.styles.js +7 -7
  48. package/dist/components/IdentityInfo/IdentityInfo.js +2 -1
  49. package/dist/components/IdentityInfo/IdentityInfo.styles.js +13 -23
  50. package/dist/components/InfoBox/InfoBox.d.ts +15 -13
  51. package/dist/components/InfoBox/InfoBox.js +31 -14
  52. package/dist/components/InfoIcon/InfoIcon.styles.js +2 -2
  53. package/dist/components/Input/DatePickerInput.styles.js +23 -24
  54. package/dist/components/Input/Input.d.ts +3 -0
  55. package/dist/components/Input/Input.js +5 -2
  56. package/dist/components/Input/Input.styles.d.ts +4 -0
  57. package/dist/components/Input/Input.styles.js +77 -27
  58. package/dist/components/Input/InputPassword.styles.js +11 -11
  59. package/dist/components/Input/InputWithButton.styles.js +5 -5
  60. package/dist/components/Input/MultiSelect.js +17 -17
  61. package/dist/components/Input/OtpInput.js +1 -1
  62. package/dist/components/Input/RangeInput.js +2 -2
  63. package/dist/components/Input/SearchInput.styles.js +10 -10
  64. package/dist/components/Input/Select.d.ts +57 -0
  65. package/dist/components/Input/Select.js +101 -106
  66. package/dist/components/Input/Select.styles.d.ts +89 -0
  67. package/dist/components/Input/Select.styles.js +115 -19
  68. package/dist/components/Input/TableFilterDropdown.js +5 -5
  69. package/dist/components/Input/Textarea.styles.js +11 -13
  70. package/dist/components/MaterialIcon/requiredIcons.d.ts +1 -1
  71. package/dist/components/MaterialIcon/requiredIcons.js +2 -0
  72. package/dist/components/MenuNav/MenuNav.styles.js +2 -5
  73. package/dist/components/Modal/Modal.styles.js +25 -31
  74. package/dist/components/Modal/PaymentModal.js +7 -7
  75. package/dist/components/Modal/SideModal.styles.js +8 -8
  76. package/dist/components/Modal/SideModalParts.js +15 -16
  77. package/dist/components/Modal/SuccessModal/SuccessModal.styles.js +5 -8
  78. package/dist/components/NotificationCounter/NotificationCounter.styles.js +2 -2
  79. package/dist/components/Number/Number.js +1 -1
  80. package/dist/components/Number/Number.styles.js +2 -2
  81. package/dist/components/Pagination/Pagination.styles.js +7 -7
  82. package/dist/components/PanelCard/PanelCard.d.ts +51 -0
  83. package/dist/components/PanelCard/PanelCard.js +35 -0
  84. package/dist/components/PanelCard/PanelCard.styles.d.ts +29 -0
  85. package/dist/components/PanelCard/PanelCard.styles.js +84 -0
  86. package/dist/components/Payment/DetailRows.js +1 -1
  87. package/dist/components/Payment/DetailsToggle.js +4 -6
  88. package/dist/components/Payment/PaymentDetailsCard.js +29 -53
  89. package/dist/components/Payment/PaymentDisplay.js +12 -20
  90. package/dist/components/Payment/PaymentPendingCard.d.ts +1 -1
  91. package/dist/components/Payment/PaymentPendingCard.js +10 -13
  92. package/dist/components/Payment/PaymentSuccessCard.js +6 -9
  93. package/dist/components/Payment/TimerComponent.js +5 -4
  94. package/dist/components/Process/Process.styles.js +7 -13
  95. package/dist/components/ProfileBadge/ProfileBadge.styles.js +8 -10
  96. package/dist/components/ProfileBox/ProfileBox.styles.js +5 -7
  97. package/dist/components/Radio/Radio.styles.d.ts +1 -0
  98. package/dist/components/Radio/Radio.styles.js +8 -9
  99. package/dist/components/RefreshButton/RefreshButton.styles.js +5 -5
  100. package/dist/components/RequestDataBox/RequestDataBox.styles.js +3 -5
  101. package/dist/components/Section/Section.styles.js +16 -18
  102. package/dist/components/SectionTitle/SectionTitle.styles.d.ts +4 -0
  103. package/dist/components/SectionTitle/SectionTitle.styles.js +4 -7
  104. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  105. package/dist/components/Skeleton/Skeleton.js +3 -3
  106. package/dist/components/Snackbar/Snackbar.styles.js +8 -10
  107. package/dist/components/SpanButton/SpanButton.styles.js +2 -2
  108. package/dist/components/StatusDot/StatusDot.d.ts +1 -1
  109. package/dist/components/StatusDot/StatusDot.js +5 -5
  110. package/dist/components/StatusDot/StatusDot.styles.js +2 -5
  111. package/dist/components/StatusTag/StatusTag.js +1 -1
  112. package/dist/components/StatusTag/StatusTag.styles.js +4 -4
  113. package/dist/components/StepController/StepController.styles.js +7 -7
  114. package/dist/components/StepSidebar/MobileStepProgress.d.ts +12 -0
  115. package/dist/components/StepSidebar/MobileStepProgress.js +14 -0
  116. package/dist/components/StepSidebar/MobileStepProgress.styles.d.ts +15 -0
  117. package/dist/components/StepSidebar/MobileStepProgress.styles.js +39 -0
  118. package/dist/components/StepSidebar/StepProgress.d.ts +14 -0
  119. package/dist/components/StepSidebar/StepProgress.js +14 -0
  120. package/dist/components/StepSidebar/StepProgress.styles.d.ts +30 -0
  121. package/dist/components/StepSidebar/StepProgress.styles.js +97 -0
  122. package/dist/components/StepSidebar/StepSidebar.d.ts +36 -0
  123. package/dist/components/StepSidebar/StepSidebar.js +58 -0
  124. package/dist/components/StepSidebar/StepSidebar.styles.d.ts +55 -0
  125. package/dist/components/StepSidebar/StepSidebar.styles.js +168 -0
  126. package/dist/components/StokrLoader/StokrLoader.d.ts +16 -2
  127. package/dist/components/StokrLoader/StokrLoader.js +170 -28
  128. package/dist/components/StokrLoader/loaderSession.d.ts +14 -0
  129. package/dist/components/StokrLoader/loaderSession.js +30 -0
  130. package/dist/components/Switch/Switch.styles.js +12 -14
  131. package/dist/components/TabsNav/TabsNav.styles.js +7 -9
  132. package/dist/components/TaxResidenceCard/TaxResidenceCard.js +26 -11
  133. package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.d.ts +29 -12
  134. package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +103 -30
  135. package/dist/components/Text/Text.styles.d.ts +2 -1
  136. package/dist/components/Text/Text.styles.js +36 -70
  137. package/dist/components/TextLink/TextLink.styles.js +5 -7
  138. package/dist/components/Timeline/Timeline.styles.js +17 -23
  139. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  140. package/dist/components/Tooltip/Tooltip.js +1 -2
  141. package/dist/components/Tooltip/Tooltip.styles.js +4 -5
  142. package/dist/components/breakdown/Breakdown.js +3 -5
  143. package/dist/components/logo/Logo.js +1 -1
  144. package/dist/constants/chainLogos.d.ts +9 -0
  145. package/dist/constants/chainLogos.js +17 -0
  146. package/dist/design-system/css/base.css +14 -14
  147. package/dist/design-system/css-builders.d.ts +25 -0
  148. package/dist/design-system/css-builders.js +81 -0
  149. package/dist/design-system/generated/fonts.css +0 -49
  150. package/dist/design-system/generated/text-classes.css +123 -123
  151. package/dist/design-system/generated/text-styles.d.ts +24 -24
  152. package/dist/design-system/generated/text-styles.js +123 -123
  153. package/dist/design-system/generated/tokens.css +417 -412
  154. package/dist/design-system/index.d.ts +2 -1
  155. package/dist/design-system/styled/build-theme.js +1 -1
  156. package/dist/design-system/tokens/colors.d.ts +1 -1
  157. package/dist/design-system/tokens/colors.js +1 -1
  158. package/dist/design-system/tokens/fonts.d.ts +6 -2
  159. package/dist/design-system/tokens/fonts.js +1 -1
  160. package/dist/design-system/tokens/semantic.d.ts +15 -3
  161. package/dist/design-system/tokens/semantic.js +5 -1
  162. package/dist/design-system/tokens/typography.d.ts +1 -1
  163. package/dist/design-system/tokens/typography.js +64 -41
  164. package/dist/index.d.ts +84 -7
  165. package/dist/index.js +24 -4
  166. package/dist/static/images/chains/avalanche.svg +7 -0
  167. package/dist/static/images/chains/avalanche.svg.js +4 -0
  168. package/dist/static/images/chains/ethereum.svg +14 -0
  169. package/dist/static/images/chains/ethereum.svg.js +4 -0
  170. package/dist/static/images/chains/liquid.svg +7 -0
  171. package/dist/static/images/chains/liquid.svg.js +4 -0
  172. package/dist/static/images/chains/solana.svg +29 -0
  173. package/dist/static/images/chains/solana.svg.js +4 -0
  174. package/dist/static/images/chains/stellar.svg +17 -0
  175. package/dist/static/images/chains/stellar.svg.js +4 -0
  176. package/dist/static/images/chains/tempo.svg +11 -0
  177. package/dist/static/images/chains/tempo.svg.js +4 -0
  178. package/dist/styles/borderedField.d.ts +11 -0
  179. package/dist/styles/borderedField.js +53 -0
  180. package/package.json +1 -1
  181. package/dist/static/images/globe.svg.js +0 -5
  182. package/dist/static/images/trash.svg +0 -17
  183. package/dist/static/images/trash.svg.js +0 -5
@@ -6,34 +6,28 @@ import { InfoIcon } from "../InfoIcon/InfoIcon.js";
6
6
  import { ArrowSimple } from "../icons/ArrowSimple.js";
7
7
  import { getCurrencyConfig, getCurrencyIcon, formatAmountForDisplay } from "../../utils/formatCurrencyValue.js";
8
8
  import externalLinkIcon from "../../static/images/external-link-icon.svg.js";
9
+ import { text } from "../../design-system/styled/text.js";
9
10
  const CardContainer = styled.div`
10
- background: var(--stokr-background-default);
11
+ background: var(--background-default);
11
12
  border-radius: 8px;
12
- border: 1px solid var(--stokr-border-subtle);
13
+ border: 1px solid var(--border-subtle);
13
14
  padding: 20px 32px;
14
15
  `;
15
16
  const CardTitle = styled.div`
16
- font-size: 10px;
17
- letter-spacing: 1.12px;
18
- font-weight: 500;
19
- color: var(--stokr-background-default);
20
- background: var(--stokr-border-strong);
17
+ ${text("labelRegular")}
18
+ color: var(--background-default);
19
+ background: var(--border-strong);
21
20
  padding: 12px 24px;
22
21
  margin: -20px -32px 20px -32px;
23
22
  border-radius: 8px 8px 0 0;
24
- // border-bottom: 1px solid var(--stokr-color-neutral-200);
23
+ // border-bottom: 1px solid var(--color-neutral-200);
25
24
  text-align: start;
26
- text-transform: uppercase;
27
25
  `;
28
26
  const AmountSection = styled.div``;
29
27
  const AmountLabel = styled.div`
30
- font-size: 11px;
31
- font-weight: 400;
32
- line-height: 20px;
33
- text-transform: uppercase;
34
- letter-spacing: 2px;
28
+ ${text("labelRegular")}
35
29
  margin-bottom: 8px;
36
- color: var(--stokr-text-secondary);
30
+ color: var(--text-secondary);
37
31
  text-align: start;
38
32
  `;
39
33
  const AmountSubtitle = styled.div`
@@ -41,7 +35,7 @@ const AmountSubtitle = styled.div`
41
35
  font-weight: 400;
42
36
  line-height: 18px;
43
37
  letter-spacing: 0.6px;
44
- color: var(--stokr-text-tertiary);
38
+ color: var(--text-tertiary);
45
39
  margin-top: 8px;
46
40
  text-align: start;
47
41
  `;
@@ -60,14 +54,10 @@ const AmountLeft = styled.div`
60
54
  min-width: 0;
61
55
  `;
62
56
  const CurrencyTicker = styled.div`
63
- font-size: 22px;
64
- font-weight: 300;
65
- color: var(--stokr-text-tertiary);
66
- letter-spacing: 0.8px;
67
- line-height: 28px;
57
+ ${text("titleL")}
58
+ color: var(--text-tertiary);
68
59
  flex-shrink: 0;
69
60
  margin-left: auto;
70
- text-transform: uppercase;
71
61
  `;
72
62
  const CurrencyLogo = styled.div.withConfig({
73
63
  shouldForwardProp: (props) => !["color"].includes(props)
@@ -75,14 +65,13 @@ const CurrencyLogo = styled.div.withConfig({
75
65
  width: 24px;
76
66
  height: 24px;
77
67
  border-radius: 50%;
78
- background-color: ${(props) => props.color || "var(--stokr-color-neutral-900)"};
68
+ background-color: ${(props) => props.color || "var(--color-neutral-900)"};
79
69
  display: flex;
80
70
  align-items: center;
81
71
  justify-content: center;
82
72
  flex-shrink: 0;
83
- color: var(--stokr-brand-pure-white);
84
- font-size: 14px;
85
- font-weight: 600;
73
+ color: var(--brand-pure-white);
74
+ ${text("subtitleS")}
86
75
  overflow: hidden;
87
76
  `;
88
77
  const CurrencyIcon = styled.img`
@@ -91,19 +80,15 @@ const CurrencyIcon = styled.img`
91
80
  object-fit: contain;
92
81
  `;
93
82
  const AmountValue = styled.div`
94
- font-size: 34px;
95
- font-weight: 300;
96
- text-transform: uppercase;
97
- line-height: 40px;
98
- letter-spacing: 1.5px;
83
+ ${text("titleXl")}
99
84
  max-width: 100%;
100
85
  overflow-wrap: break-word;
101
86
  word-break: break-word;
102
- color: var(--stokr-text-primary);
87
+ color: var(--text-primary);
103
88
  `;
104
89
  const Separator = styled.hr`
105
90
  border: none;
106
- border-top: 1px solid var(--stokr-border-subtle);
91
+ border-top: 1px solid var(--border-subtle);
107
92
  margin: 20px 0px;
108
93
  `;
109
94
  const ArrowSeparatorWrapper = styled.div`
@@ -117,7 +102,7 @@ const ArrowSeparatorWrapper = styled.div`
117
102
  content: '';
118
103
  flex: 1;
119
104
  height: 1px;
120
- background: var(--stokr-border-subtle);
105
+ background: var(--border-subtle);
121
106
  }
122
107
  `;
123
108
  const ArrowCircle = styled.div`
@@ -126,15 +111,11 @@ const ArrowCircle = styled.div`
126
111
  justify-content: center;
127
112
  margin: 0 16px;
128
113
  height: 0;
129
- color: var(--stokr-text-tertiary);
114
+ color: var(--text-tertiary);
130
115
  `;
131
116
  const SectionHeader = styled.div`
132
- font-size: 11px;
133
- font-weight: 400;
134
- line-height: 20px;
135
- text-transform: uppercase;
136
- letter-spacing: 2px;
137
- color: var(--stokr-text-secondary);
117
+ ${text("labelRegular")}
118
+ color: var(--text-secondary);
138
119
  text-align: start;
139
120
  margin-bottom: 4px;
140
121
  `;
@@ -165,7 +146,7 @@ const DetailLabel = styled.div`
165
146
  font-weight: 400;
166
147
  line-height: 20px;
167
148
  letter-spacing: 0.5px;
168
- color: var(--stokr-text-secondary);
149
+ color: var(--text-secondary);
169
150
 
170
151
  i {
171
152
  font-size: 14px;
@@ -176,27 +157,22 @@ const DetailValue = styled.div`
176
157
  align-items: center;
177
158
  justify-content: flex-end;
178
159
  gap: 6px;
179
- font-size: 14px;
180
- font-weight: 600;
181
- line-height: 20px;
182
- letter-spacing: 0.5px;
160
+ ${text("subtitleS")}
183
161
  word-wrap: break-word;
184
162
  text-align: right;
185
163
  max-width: 60%;
186
- color: var(--stokr-text-primary);
164
+ color: var(--text-primary);
187
165
  `;
188
166
  const PlaceholderValue = styled.span`
189
- color: var(--stokr-text-secondary);
167
+ color: var(--text-secondary);
190
168
  font-weight: 300;
191
169
  font-size: 14px;
192
170
  letter-spacing: 0.5px;
193
171
  `;
194
172
  const ExternalLink = styled.a`
195
- color: var(--stokr-text-primary);
173
+ color: var(--text-primary);
196
174
  text-decoration: underline;
197
- font-size: 14px;
198
- font-weight: 600;
199
- letter-spacing: 0.5px;
175
+ ${text("subtitleS")}
200
176
  display: inline-flex;
201
177
  align-items: center;
202
178
  gap: 6px;
@@ -283,7 +259,7 @@ const AmountBlock = ({ config }) => {
283
259
  const hasAmount = amount !== void 0 && amount !== null && amount !== "";
284
260
  const displayValue = hasAmount ? Math.abs(Number(amount)).toFixed(resolvedDecimals) : null;
285
261
  const currencyIcon = getCurrencyIcon(currency, icon);
286
- const logoColor = currencyColor || "var(--stokr-color-neutral-900)";
262
+ const logoColor = currencyColor || "var(--color-neutral-900)";
287
263
  const ticker = showTicker ? symbol : null;
288
264
  const renderCurrencyLogo = () => {
289
265
  if (currencyIcon) {
@@ -6,11 +6,12 @@ import stdin_default from "../QRCode/QRCode.js";
6
6
  import { SectionTitle } from "../SectionTitle/SectionTitle.styles.js";
7
7
  import { StatusDot } from "../StatusDot/StatusDot.js";
8
8
  import { getCurrencyIcon, formatAmountForDisplay } from "../../utils/formatCurrencyValue.js";
9
+ import { text } from "../../design-system/styled/text.js";
9
10
  const CodeWrapper = styled.div.withConfig({
10
11
  shouldForwardProp: (props) => !["maxWidth"].includes(props)
11
12
  })`
12
- background: var(--stokr-background-default);
13
- border: 1px solid var(--stokr-border-subtle);
13
+ background: var(--background-default);
14
+ border: 1px solid var(--border-subtle);
14
15
  border-radius: 8px;
15
16
  box-shadow: none;
16
17
  padding: 48px 40px;
@@ -46,22 +47,16 @@ const AmountValueGroup = styled.div`
46
47
  `;
47
48
  const AmountValue = styled.p`
48
49
  margin: 0;
49
- font-size: 34px;
50
- font-weight: 800;
51
- text-transform: uppercase;
52
- line-height: 40px;
53
- letter-spacing: 1.5px;
54
- color: var(--stokr-text-primary);
50
+ ${text("titleXl")}
51
+ color: var(--text-primary);
55
52
  max-width: 100%;
56
53
  overflow-wrap: break-word;
57
54
  word-break: break-word;
58
55
  `;
59
56
  const AmountCurrency = styled.p`
60
57
  margin: 0;
61
- font-size: 34px;
62
- font-weight: 300;
63
- line-height: 40px;
64
- color: var(--stokr-text-primary);
58
+ ${text("titleXl")}
59
+ color: var(--text-primary);
65
60
  `;
66
61
  const AmountIcon = styled.img`
67
62
  width: 32px;
@@ -89,13 +84,10 @@ const AddressRow = styled.div`
89
84
  `;
90
85
  const AddressText = styled.p`
91
86
  margin: 0;
92
- font-size: 14px;
93
- font-weight: 600;
94
- line-height: 20px;
95
- letter-spacing: 0.5px;
87
+ ${text("subtitleS")}
96
88
  text-align: center;
97
89
  word-break: break-all;
98
- color: var(--stokr-text-primary);
90
+ color: var(--text-primary);
99
91
  `;
100
92
  const AddressDescription = styled.p`
101
93
  margin: 0;
@@ -104,7 +96,7 @@ const AddressDescription = styled.p`
104
96
  line-height: 18px;
105
97
  letter-spacing: 0.6px;
106
98
  text-align: center;
107
- color: var(--stokr-text-tertiary);
99
+ color: var(--text-tertiary);
108
100
  `;
109
101
  const PaymentDisplay = ({
110
102
  amount,
@@ -196,8 +188,8 @@ const PaymentDisplay = ({
196
188
  statusMessage && /* @__PURE__ */ jsx(
197
189
  StatusDot,
198
190
  {
199
- color: statusDotColor || "var(--stokr-status-info-icon)",
200
- labelColor: "var(--stokr-text-secondary)",
191
+ color: statusDotColor || "var(--status-info-blue-icon)",
192
+ labelColor: "var(--text-secondary)",
201
193
  dotSize: 8,
202
194
  pulse: true,
203
195
  style: { width: "100%", whiteSpace: "normal" },
@@ -11,7 +11,7 @@ import { PaymentDetailRow } from './PaymentDetailsCard';
11
11
  *
12
12
  * `rows` is passed straight through to PaymentDetailsCard's DetailItem, so the same
13
13
  * `href`/`tooltip`/`isCustom`/`labelIcon`/`valueIcon` escape hatches apply — e.g. a
14
- * colored "Pending confirmation" status value: { label: 'Status', value: <span style={{color: 'var(--stokr-action-accent-bg)'}}>Pending confirmation</span>, isCustom: true }
14
+ * colored "Pending confirmation" status value: { label: 'Status', value: <span style={{color: 'var(--action-accent-bg)'}}>Pending confirmation</span>, isCustom: true }
15
15
  */
16
16
  export interface PaymentPendingCardProps {
17
17
  title: ReactNode;
@@ -5,6 +5,7 @@ import { safeUrl } from "../../utils/safeUrl.js";
5
5
  import { Button } from "../Button/Button.styles.js";
6
6
  import { DetailRows } from "./DetailRows.js";
7
7
  import { CodeWrapper } from "./PaymentDisplay.js";
8
+ import { text } from "../../design-system/styled/text.js";
8
9
  const spin = keyframes`
9
10
  to { transform: rotate(360deg); }
10
11
  `;
@@ -13,8 +14,8 @@ const Spinner = styled.div`
13
14
  height: 48px;
14
15
  flex-shrink: 0;
15
16
  border-radius: 50%;
16
- border: 3px solid var(--stokr-border-subtle);
17
- border-top-color: var(--stokr-action-accent-bg);
17
+ border: 3px solid var(--border-subtle);
18
+ border-top-color: var(--action-accent-bg);
18
19
  animation: ${spin} 0.9s linear infinite;
19
20
  `;
20
21
  const TextBlock = styled.div`
@@ -27,32 +28,28 @@ const TextBlock = styled.div`
27
28
  `;
28
29
  const Title = styled.h2`
29
30
  margin: 0;
30
- font-family: var(--stokr-font-family-base);
31
- font-size: 22px;
32
- font-weight: 800;
33
- line-height: 28px;
34
- letter-spacing: 0.8px;
35
- text-transform: uppercase;
36
- color: var(--stokr-text-primary);
31
+ font-family: var(--font-family-base);
32
+ ${text("titleL")}
33
+ color: var(--text-primary);
37
34
  `;
38
35
  const Description = styled.p`
39
36
  margin: 0;
40
- font-family: var(--stokr-font-family-base);
37
+ font-family: var(--font-family-base);
41
38
  font-size: 16px;
42
39
  font-weight: 300;
43
40
  line-height: 24px;
44
41
  letter-spacing: 0.6px;
45
- color: var(--stokr-text-primary);
42
+ color: var(--text-primary);
46
43
  `;
47
44
  const FooterNote = styled.p`
48
45
  margin: 0;
49
- font-family: var(--stokr-font-family-base);
46
+ font-family: var(--font-family-base);
50
47
  font-size: 12px;
51
48
  font-weight: 400;
52
49
  line-height: 18px;
53
50
  letter-spacing: 0.6px;
54
51
  text-align: center;
55
- color: var(--stokr-text-secondary);
52
+ color: var(--text-secondary);
56
53
  `;
57
54
  const PaymentPendingCard = ({
58
55
  title,
@@ -8,12 +8,13 @@ import { DetailsToggle } from "./DetailsToggle.js";
8
8
  import { LottieAnimation } from "../Lottie/LottieAnimation.js";
9
9
  import { getCurrencyIcon, formatAmountForDisplay } from "../../utils/formatCurrencyValue.js";
10
10
  import externalLinkIcon from "../../static/images/external-link-icon.svg.js";
11
+ import { text } from "../../design-system/styled/text.js";
11
12
  const IconCircle = styled.div`
12
13
  flex-shrink: 0;
13
14
  width: 100px;
14
15
  height: 100px;
15
16
  border-radius: 50%;
16
- background: var(--stokr-status-success-bg);
17
+ background: var(--status-success-bg);
17
18
  display: flex;
18
19
  align-items: center;
19
20
  justify-content: center;
@@ -28,13 +29,9 @@ const TextBlock = styled.div`
28
29
  `;
29
30
  const Title = styled.h2`
30
31
  margin: 0;
31
- font-family: var(--stokr-font-family-base);
32
- font-size: 22px;
33
- font-weight: 800;
34
- line-height: 28px;
35
- letter-spacing: 0.8px;
36
- text-transform: uppercase;
37
- color: var(--stokr-text-primary);
32
+ font-family: var(--font-family-base);
33
+ ${text("titleL")}
34
+ color: var(--text-primary);
38
35
  `;
39
36
  const Description = styled.p`
40
37
  margin: 0;
@@ -42,7 +39,7 @@ const Description = styled.p`
42
39
  font-weight: 300;
43
40
  line-height: 24px;
44
41
  letter-spacing: 0.6px;
45
- color: var(--stokr-text-primary);
42
+ color: var(--text-primary);
46
43
  `;
47
44
  const AmountRow = styled.div`
48
45
  display: flex;
@@ -5,11 +5,12 @@ import styled from "styled-components";
5
5
  import { Text } from "../Text/Text.styles.js";
6
6
  import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
7
7
  import { FlexContainer } from "../Grid/Grid.styles.js";
8
+ import { text } from "../../design-system/styled/text.js";
8
9
  import { breakpoint } from "../../design-system/styled/breakpoint.js";
9
10
  const TimerBlock = styled.div.withConfig({
10
11
  shouldForwardProp: (props) => !["maxWidth", "red"].includes(props)
11
12
  })`
12
- background-color: var(--stokr-background-surface);
13
+ background-color: var(--background-surface);
13
14
  padding: 24px 27px;
14
15
  text-align: start;
15
16
  max-width: ${(props) => props.maxWidth || "550px"};
@@ -20,13 +21,13 @@ const TimerBlock = styled.div.withConfig({
20
21
  }
21
22
 
22
23
  p {
23
- font-size: 14px !important;
24
+ ${text("bodyS")}
24
25
  margin: 0 !important;
25
26
  }
26
27
 
27
28
  ${breakpoint.Medium`
28
29
  p {
29
- font-size: 16px !important;
30
+ ${text("bodyM")}
30
31
  }
31
32
  `}
32
33
 
@@ -36,7 +37,7 @@ const TimerBlock = styled.div.withConfig({
36
37
 
37
38
  ${(props) => props.red && `
38
39
  #timer-text {
39
- color: var(--stokr-status-error-text);
40
+ color: var(--status-error-text);
40
41
  }
41
42
  `}
42
43
  `;
@@ -1,5 +1,6 @@
1
1
  import styled, { css, keyframes } from "styled-components";
2
2
  import { withGlyph, glyph } from "../MaterialIcon/glyph.js";
3
+ import { text } from "../../design-system/styled/text.js";
3
4
  import { breakpoint } from "../../design-system/styled/breakpoint.js";
4
5
  const spin = keyframes`
5
6
  to {
@@ -15,18 +16,11 @@ const Process = styled.div.withConfig({
15
16
  })`
16
17
  display: block;
17
18
  position: relative;
18
- font-size: 11px;
19
- line-height: 16px;
20
- text-transform: uppercase;
19
+ ${text("dataLabel")}
21
20
  padding-right: 26px;
22
- color: var(--stokr-action-accent-bg);
21
+ color: var(--action-accent-bg);
23
22
  opacity: 0.3;
24
23
 
25
- ${breakpoint.Medium`
26
- font-size: 14px;
27
- line-height: 20px;
28
- `}
29
-
30
24
  &:before {
31
25
  content: '';
32
26
  display: block;
@@ -56,8 +50,8 @@ const Process = styled.div.withConfig({
56
50
 
57
51
  &:before {
58
52
  box-sizing: border-box;
59
- border: 2px solid var(--stokr-border-subtle);
60
- border-top-color: var(--stokr-action-accent-bg);
53
+ border: 2px solid var(--border-subtle);
54
+ border-top-color: var(--action-accent-bg);
61
55
  border-radius: 50%;
62
56
  animation: ${spin} 0.8s linear infinite;
63
57
  }
@@ -67,13 +61,13 @@ const Process = styled.div.withConfig({
67
61
  opacity: 1;
68
62
 
69
63
  > [data-icon] {
70
- color: var(--stokr-status-success-icon);
64
+ color: var(--status-success-icon);
71
65
  }
72
66
  `}
73
67
 
74
68
  ${(props) => props.failed && `
75
69
  opacity: 1;
76
- color: var(--stokr-status-error-text);
70
+ color: var(--status-error-text);
77
71
 
78
72
  `}
79
73
  `;
@@ -1,5 +1,6 @@
1
1
  import styled, { css } from "styled-components";
2
2
  import { breakpoint } from "../../design-system/styled/breakpoint.js";
3
+ import { text } from "../../design-system/styled/text.js";
3
4
  const Wrapper = styled.div.withConfig({
4
5
  shouldForwardProp: (props) => !["color"].includes(props)
5
6
  })`
@@ -16,30 +17,27 @@ const Wrapper = styled.div.withConfig({
16
17
  `}
17
18
 
18
19
  ${(props) => props.color === "white" && `
19
- color: var(--stokr-text-primary);
20
- background-color: var(--stokr-background-default);
20
+ color: var(--text-primary);
21
+ background-color: var(--background-default);
21
22
 
22
23
  svg {
23
- stroke: var(--stokr-text-primary);
24
+ stroke: var(--text-primary);
24
25
  }
25
26
  `}
26
27
 
27
28
  ${(props) => props.color === "red" && `
28
- color: var(--stokr-brand-pure-white);
29
- background-color: var(--stokr-color-red-500);
29
+ color: var(--brand-pure-white);
30
+ background-color: var(--color-red-500);
30
31
 
31
32
  svg {
32
- stroke: var(--stokr-brand-pure-white);
33
+ stroke: var(--brand-pure-white);
33
34
  }
34
35
  `}
35
36
  `;
36
37
  const Title = styled.div.withConfig({
37
38
  shouldForwardProp: (props) => !["centerVertically"].includes(props)
38
39
  })`
39
- font-size: 11px;
40
- line-height: 24px;
41
- letter-spacing: 2.06px;
42
- text-transform: uppercase;
40
+ ${text("labelRegular")}
43
41
  margin-bottom: 20px;
44
42
 
45
43
  ${({ centerVertically }) => centerVertically && css`
@@ -1,6 +1,7 @@
1
1
  import styled from "styled-components";
2
2
  import { Container as Container$1 } from "../Background/Background.styles.js";
3
3
  import { glyph } from "../MaterialIcon/glyph.js";
4
+ import { text } from "../../design-system/styled/text.js";
4
5
  const Container = styled.div`
5
6
  width: 100%;
6
7
  height: 100%;
@@ -26,16 +27,16 @@ const EditButton = styled.button`
26
27
  appearance: none;
27
28
  background: none;
28
29
  border: 0;
29
- border-bottom: 1px solid var(--stokr-border-subtle);
30
+ border-bottom: 1px solid var(--border-subtle);
30
31
  font: inherit;
31
- color: var(--stokr-text-primary);
32
+ color: var(--text-primary);
32
33
  text-align: center;
33
34
  cursor: pointer;
34
35
  transition: color 0.2s;
35
36
 
36
37
  &:hover,
37
38
  &:focus-visible {
38
- color: var(--stokr-action-accent-bg);
39
+ color: var(--action-accent-bg);
39
40
  }
40
41
 
41
42
  &:focus {
@@ -49,10 +50,7 @@ const EditButton = styled.button`
49
50
  `;
50
51
  const Name = styled.div`
51
52
  position: relative;
52
- font-size: 16px;
53
- line-height: 20px;
54
- font-weight: 600;
55
- letter-spacing: 0.6px;
53
+ ${text("subtitleM")}
56
54
  text-align: center;
57
55
  `;
58
56
  const EditIcon = styled.span.attrs({
@@ -8,6 +8,7 @@ export declare const Label: import('styled-components/dist/types').IStyledCompon
8
8
  isUp?: boolean;
9
9
  active?: boolean;
10
10
  error?: boolean;
11
+ $variant?: import('../..').FieldVariant;
11
12
  }>, "as" | "forwardedAs"> & {
12
13
  as?: import('styled-components').WebTarget;
13
14
  forwardedAs?: import('styled-components').WebTarget;
@@ -8,7 +8,6 @@ const Label = styled(Label$1)`
8
8
  position: relative;
9
9
  top: 0;
10
10
  transform: none;
11
- font-size: 10px;
12
11
  margin-bottom: 5px;
13
12
  `;
14
13
  const Input = styled.div.withConfig({
@@ -32,7 +31,7 @@ const Input = styled.div.withConfig({
32
31
  display: inline-block;
33
32
  max-width: 100%;
34
33
  padding-left: 28px;
35
- font-family: var(--stokr-font-family-base);
34
+ font-family: var(--font-family-base);
36
35
  font-size: 13px;
37
36
  line-height: 16px;
38
37
  letter-spacing: 0.4px;
@@ -52,7 +51,7 @@ const Input = styled.div.withConfig({
52
51
  width: 16px;
53
52
  height: 16px;
54
53
  border-radius: 8px;
55
- border: 1px solid var(--stokr-border-default);
54
+ border: 1px solid var(--border-default);
56
55
  box-shadow: none;
57
56
  transition:
58
57
  border-color 0.2s,
@@ -70,22 +69,22 @@ const Input = styled.div.withConfig({
70
69
  }
71
70
 
72
71
  &:hover + label:before {
73
- border-color: var(--stokr-border-strong);
72
+ border-color: var(--border-strong);
74
73
  }
75
74
 
76
75
  &:checked + label {
77
76
  &:before {
78
- border-color: var(--stokr-action-accent-bg);
77
+ border-color: var(--action-accent-bg);
79
78
  }
80
79
 
81
80
  &:after {
82
- background-color: var(--stokr-action-accent-bg);
81
+ background-color: var(--action-accent-bg);
83
82
  }
84
83
  }
85
84
 
86
85
  &:focus-visible + label:before {
87
- border-color: var(--stokr-border-focus);
88
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--stokr-border-focus) 25%, transparent);
86
+ border-color: var(--border-focus);
87
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--border-focus) 25%, transparent);
89
88
  }
90
89
  }
91
90
 
@@ -95,7 +94,7 @@ const Input = styled.div.withConfig({
95
94
  & + label {
96
95
 
97
96
  &:before {
98
- border-color: var(--stokr-status-error-border);
97
+ border-color: var(--status-error-border);
99
98
  }
100
99
  }
101
100
  }
@@ -11,8 +11,8 @@ const IconWrap = styled.div`
11
11
  border-radius: 12px;
12
12
 
13
13
  & > svg {
14
- fill: var(--stokr-action-accent-bg);
15
- stroke: var(--stokr-action-accent-bg);
14
+ fill: var(--action-accent-bg);
15
+ stroke: var(--action-accent-bg);
16
16
  display: block;
17
17
  width: 16px;
18
18
  height: 16px;
@@ -28,7 +28,7 @@ const StyledButton = styled(Button).attrs((props) => ({
28
28
  type: props.type || "button"
29
29
  }))`
30
30
  position: relative;
31
- color: var(--stokr-text-primary);
31
+ color: var(--text-primary);
32
32
  border: 1px solid transparent;
33
33
  background-color: transparent;
34
34
  text-align: left;
@@ -38,13 +38,13 @@ const StyledButton = styled(Button).attrs((props) => ({
38
38
  &:hover,
39
39
  &:focus,
40
40
  &:active {
41
- color: var(--stokr-text-primary);
41
+ color: var(--text-primary);
42
42
  border-color: transparent;
43
43
  background-color: transparent;
44
44
 
45
45
  ${IconWrap} {
46
46
  & > svg {
47
- fill: var(--stokr-action-accent-bg-hover);
47
+ fill: var(--action-accent-bg-hover);
48
48
  transform: rotate(360deg);
49
49
  transition:
50
50
  color 0.2s,
@@ -1,7 +1,8 @@
1
1
  import styled from "styled-components";
2
2
  import { breakpoint } from "../../design-system/styled/breakpoint.js";
3
+ import { text } from "../../design-system/styled/text.js";
3
4
  const Box = styled.div`
4
- border: 1px solid var(--stokr-border-subtle);
5
+ border: 1px solid var(--border-subtle);
5
6
  padding: 20px 24px;
6
7
 
7
8
  & > div {
@@ -23,11 +24,8 @@ const Box = styled.div`
23
24
  }
24
25
  `;
25
26
  const Title = styled.div`
26
- font-size: 16px;
27
- font-weight: 600;
28
- line-height: 24px;
27
+ ${text("subtitleM")}
29
28
  margin-bottom: 2px;
30
- letter-spacing: 0.6px;
31
29
  `;
32
30
  const Subtitle = styled.div`
33
31
  font-size: 12px;