@stokr/components-library 4.0.0 → 4.0.3

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 (58) hide show
  1. package/dist/components/AdminDashboard/Table/Table.styles.js +6 -2
  2. package/dist/components/BackButton/BackButton.js +10 -14
  3. package/dist/components/BackButton/BackButton.styles.js +7 -4
  4. package/dist/components/ChartLegend/ChartLegend.styles.js +4 -2
  5. package/dist/components/Checkbox/Checkbox.js +5 -1
  6. package/dist/components/Checkbox/Checkbox.styles.js +12 -27
  7. package/dist/components/Checklist/ChecklistCard.js +6 -6
  8. package/dist/components/Checklist/ChecklistCard.styles.js +0 -39
  9. package/dist/components/Chips/Chip.js +14 -1
  10. package/dist/components/Chips/Chip.styles.js +4 -3
  11. package/dist/components/CryptoAddress/CryptoAddress.styles.js +15 -94
  12. package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.styles.js +7 -10
  13. package/dist/components/FAQ/FAQ.styles.js +6 -2
  14. package/dist/components/Icon/Icon.style.js +5 -26
  15. package/dist/components/InfoBox/InfoBox.js +4 -2
  16. package/dist/components/InfoIcon/InfoIcon.js +24 -28
  17. package/dist/components/InfoIcon/InfoIcon.styles.d.ts +1 -1
  18. package/dist/components/InfoIcon/InfoIcon.styles.js +4 -3
  19. package/dist/components/Input/InputPassword.js +2 -1
  20. package/dist/components/Input/Select.js +0 -2
  21. package/dist/components/Input/Select.styles.js +5 -2
  22. package/dist/components/MaterialIcon/MaterialIcon.d.ts +8 -10
  23. package/dist/components/MaterialIcon/MaterialIcon.js +14 -12
  24. package/dist/components/MaterialIcon/MaterialIcon.styles.d.ts +8 -3
  25. package/dist/components/MaterialIcon/MaterialIcon.styles.js +8 -2
  26. package/dist/components/MaterialIcon/glyph.d.ts +5 -0
  27. package/dist/components/MaterialIcon/glyph.js +8 -0
  28. package/dist/components/MaterialIcon/iconConfig.d.ts +24 -3
  29. package/dist/components/MaterialIcon/iconConfig.js +7 -7
  30. package/dist/components/MaterialIcon/requiredIcons.d.ts +5 -0
  31. package/dist/components/MaterialIcon/requiredIcons.js +21 -0
  32. package/dist/components/Modal/Modal.js +27 -31
  33. package/dist/components/Modal/Modal.styles.d.ts +3 -3
  34. package/dist/components/Modal/Modal.styles.js +31 -51
  35. package/dist/components/Modal/PaymentModal.js +10 -3
  36. package/dist/components/Modal/SideModal.js +45 -49
  37. package/dist/components/Pagination/Pagination.js +3 -3
  38. package/dist/components/Payment/TimerComponent.js +4 -3
  39. package/dist/components/Process/Process.styles.js +13 -18
  40. package/dist/components/ProfileBox/ProfileBox.styles.js +8 -8
  41. package/dist/components/Section/Section.d.ts +3 -3
  42. package/dist/components/Section/Section.js +8 -5
  43. package/dist/components/StatusTag/StatusTag.js +2 -2
  44. package/dist/components/StokrLoader/StokrLoader.d.ts +2 -1
  45. package/dist/components/StokrLoader/StokrLoader.js +1 -1
  46. package/dist/components/TaxResidenceCard/TaxResidenceCard.js +0 -2
  47. package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +4 -2
  48. package/dist/components/TextLink/TextLink.styles.js +11 -20
  49. package/dist/components/Timeline/TimelineStep.js +2 -2
  50. package/dist/index.d.ts +4 -3
  51. package/dist/index.js +5 -5
  52. package/dist/styles/rwd.d.ts +7 -2
  53. package/dist/styles/rwd.js +7 -2
  54. package/dist/utils/copyToClipboard.d.ts +13 -3
  55. package/dist/utils/copyToClipboard.js +3 -3
  56. package/package.json +2 -1
  57. package/dist/static/images/copy_icon.svg +0 -4
  58. package/dist/static/images/copy_icon.svg.js +0 -5
@@ -3,6 +3,7 @@ import { Link } from "react-router-dom";
3
3
  import grid from "../../styles/grid.js";
4
4
  import rwd, { rwdMax } from "../../styles/rwd.js";
5
5
  import { colors } from "../../styles/colors.js";
6
+ import { glyph, withGlyph } from "../MaterialIcon/glyph.js";
6
7
  const ModalRoot = styled.div`
7
8
  z-index: 1000;
8
9
  position: fixed;
@@ -238,8 +239,8 @@ const ModalInner = styled.div.withConfig({
238
239
  padding-right: 0!important;
239
240
  `}
240
241
  `;
241
- const ModalClose = styled.i.attrs({
242
- className: "ion ion-md-close",
242
+ const ModalClose = styled.span.attrs({
243
+ children: glyph("close"),
243
244
  role: "button",
244
245
  tabIndex: 0,
245
246
  "aria-label": "Close dialog",
@@ -249,6 +250,9 @@ const ModalClose = styled.i.attrs({
249
250
  position: absolute;
250
251
  top: 0;
251
252
  right: 0;
253
+ display: flex;
254
+ align-items: center;
255
+ justify-content: center;
252
256
  width: 40px;
253
257
  height: 40px;
254
258
  text-align: center;
@@ -259,24 +263,18 @@ const ModalClose = styled.i.attrs({
259
263
  background-color 0.2s,
260
264
  color 0.2s;
261
265
 
262
- &:before {
266
+ font-size: 24px;
267
+ line-height: 24px;
268
+
269
+ > [data-icon] {
263
270
  transition: transform 0.2s;
264
- font-size: 24px;
265
- line-height: 24px !important;
266
- width: 24px;
267
- height: 24px;
268
- position: absolute;
269
- top: 50%;
270
- left: 50%;
271
- margin-top: -12px;
272
- margin-left: -12px;
273
271
  }
274
272
 
275
273
  &:hover {
276
274
  color: ${colors.black};
277
275
  background-color: ${colors.white};
278
276
 
279
- &:before {
277
+ > [data-icon] {
280
278
  transform: rotate(-180deg);
281
279
  }
282
280
  }
@@ -285,15 +283,13 @@ const ModalClose = styled.i.attrs({
285
283
  width: 56px;
286
284
  height: 56px;
287
285
 
288
- &:before {
289
- font-size: 27px;
290
- }
286
+ font-size: 27px;
291
287
  `}
292
288
  `;
293
- const ModalBack = styled.i.withConfig({
289
+ const ModalBack = styled.span.withConfig({
294
290
  shouldForwardProp: (props) => !["hide"].includes(props)
295
291
  }).attrs({
296
- className: "ion ion-ios-arrow-back",
292
+ children: glyph("chevron_left"),
297
293
  role: "button",
298
294
  tabIndex: 0,
299
295
  "aria-label": "Back",
@@ -303,6 +299,9 @@ const ModalBack = styled.i.withConfig({
303
299
  position: absolute;
304
300
  top: 0;
305
301
  left: 0;
302
+ display: flex;
303
+ align-items: center;
304
+ justify-content: center;
306
305
  width: 40px;
307
306
  height: 40px;
308
307
  text-align: center;
@@ -319,23 +318,17 @@ const ModalBack = styled.i.withConfig({
319
318
  visibility: hidden;
320
319
  `}
321
320
 
322
- &:before {
321
+ font-size: 24px;
322
+ line-height: 24px;
323
+
324
+ > [data-icon] {
323
325
  transition: transform 0.2s;
324
- font-size: 24px;
325
- line-height: 24px !important;
326
- width: 24px;
327
- height: 24px;
328
- position: absolute;
329
- top: 50%;
330
- left: 50%;
331
- margin-top: -12px;
332
- margin-left: -12px;
333
326
  }
334
327
 
335
328
  &:hover {
336
329
  color: ${colors.blue};
337
330
 
338
- &:before {
331
+ > [data-icon] {
339
332
  transform: translateX(-20%);
340
333
  }
341
334
  }
@@ -344,12 +337,12 @@ const ModalBack = styled.i.withConfig({
344
337
  width: 56px;
345
338
  height: 56px;
346
339
 
347
- &:before {
348
- font-size: 27px;
349
- }
340
+ font-size: 27px;
350
341
  `}
351
342
  `;
352
- const ModalLinkWrap = styled.div`
343
+ const ModalLinkWrap = styled.div.attrs((props) => ({
344
+ children: withGlyph(glyph("chevron_right", false, 16), props.children)
345
+ }))`
353
346
  position: relative;
354
347
  font-family: 'Open Sans';
355
348
  font-weight: 300;
@@ -358,26 +351,13 @@ const ModalLinkWrap = styled.div`
358
351
  text-transform: uppercase;
359
352
  padding-left: 18px;
360
353
 
361
- &:before {
362
- content: '\\f3d1';
363
- font-family: 'Ionicons';
364
- speak: none;
365
- font-style: normal;
366
- font-weight: normal;
367
- font-variant: normal;
368
- text-transform: none;
369
- text-rendering: auto;
370
- -webkit-font-smoothing: antialiased;
371
- -moz-osx-font-smoothing: grayscale;
372
- font-size: 12px;
373
- line-height: 8px;
374
- display: block;
375
- width: 8px;
376
- height: 8px;
354
+ > [data-icon] {
377
355
  position: absolute;
378
356
  top: 50%;
379
- left: 0;
380
- margin-top: -4px;
357
+ left: -4px;
358
+ width: 16px;
359
+ height: 16px;
360
+ margin-top: -8px;
381
361
  color: ${colors.lighterGreen};
382
362
  }
383
363
  `;
@@ -10,7 +10,7 @@ import stdin_default from "../CryptoAddress/CryptoAddress.js";
10
10
  import { Button } from "../Button/Button.styles.js";
11
11
  import { getCurrencySymbol } from "../../utils/formatCurrencyValue.js";
12
12
  import theme from "../../styles/theme.js";
13
- import { Icon, iconsMap } from "../Icon/Icon.style.js";
13
+ import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
14
14
  import styled from "styled-components";
15
15
  import { ModalInner } from "./Modal.styles.js";
16
16
  const WarningBox = styled.div`
@@ -86,7 +86,14 @@ const PaymentModal = ({
86
86
  ] })
87
87
  ] }),
88
88
  /* @__PURE__ */ jsx("p", { children: investorWalletLabel }),
89
- /* @__PURE__ */ jsx(stdin_default, { noHead: true, data: { value: investorWallet, tooltip: true, shortAddress: true }, fontSize: 16 }),
89
+ /* @__PURE__ */ jsx(
90
+ stdin_default,
91
+ {
92
+ noHead: true,
93
+ data: { value: investorWallet, tooltip: true, shortAddress: true },
94
+ fontSize: 16
95
+ }
96
+ ),
90
97
  /* @__PURE__ */ jsxs("p", { children: [
91
98
  numberOfSecuritiesText,
92
99
  " ",
@@ -126,7 +133,7 @@ const PaymentModal = ({
126
133
  qrValue && /* @__PURE__ */ jsx(ComponentWrapper, { noPaddingHorizontal: true, noPaddingBottom: true, children: /* @__PURE__ */ jsx(QRCodeSVG, { value: qrValue, size: 150 }) })
127
134
  ] }) : /* @__PURE__ */ jsxs("div", { style: { position: "relative" }, children: [
128
135
  /* @__PURE__ */ jsxs(WarningBox, { children: [
129
- /* @__PURE__ */ jsx(Icon, { icon: iconsMap.warning, size: 32, color: "white" }),
136
+ /* @__PURE__ */ jsx(MaterialIcon, { name: "warning", size: 32, color: "white" }),
130
137
  /* @__PURE__ */ jsxs("p", { style: { color: theme.cWhite }, children: [
131
138
  "Your KYC needs an update, please contact",
132
139
  " ",
@@ -1,11 +1,10 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useState, useRef, useId, useCallback, useEffect } from "react";
3
3
  import { createPortal } from "react-dom";
4
4
  import { SideModalRoot, Dimmer, SideModalBox, OutlinedCloseButton } from "./SideModal.styles.js";
5
5
  import { SideModalContext } from "./SideModalContext.js";
6
6
  import styled from "styled-components";
7
7
  import { ModalClose } from "./Modal.styles.js";
8
- import { IoniconsStyles } from "../../styles/ioniconsStyles.js";
9
8
  function findScrolledElement() {
10
9
  let best = null;
11
10
  function walk(el) {
@@ -192,7 +191,7 @@ const SideModal = ({
192
191
  };
193
192
  if (!isOpen) return null;
194
193
  return createPortal(
195
- /* @__PURE__ */ jsxs(
194
+ /* @__PURE__ */ jsx(
196
195
  SideModalRoot,
197
196
  {
198
197
  className,
@@ -201,52 +200,49 @@ const SideModal = ({
201
200
  $zIndex: zIndex,
202
201
  $interactiveBehind: !isModal,
203
202
  ...props,
204
- children: [
205
- /* @__PURE__ */ jsx(IoniconsStyles, {}),
206
- /* @__PURE__ */ jsx(
207
- Dimmer,
208
- {
209
- onClick: handleDimmerClick,
210
- $side: side,
211
- $isVisible: isVisible,
212
- $color: isModal ? backdropColor : "transparent",
213
- $interactiveBehind: !isModal,
214
- children: /* @__PURE__ */ jsx(
215
- SideModalBox,
216
- {
217
- ref: boxRef,
218
- tabIndex: -1,
219
- role: "dialog",
220
- "aria-modal": isModal,
221
- "aria-label": labelledBy || hasHeader ? void 0 : label,
222
- "aria-labelledby": labelledBy ?? (hasHeader ? titleId : void 0),
223
- $padding: padding,
224
- $side: side,
225
- $width: width,
226
- $minWidth: minWidth,
227
- $isVisible: isVisible,
228
- $fullWidthOnMobile: fullWidthOnMobile,
229
- onClick: (e) => e.stopPropagation(),
230
- children: /* @__PURE__ */ jsxs(
231
- SideModalContext.Provider,
232
- {
233
- value: {
234
- titleId,
235
- closeButton: closeButton(true),
236
- cornerButton: showCloseButton && closeButtonVariant === "filled",
237
- registerHeader
238
- },
239
- children: [
240
- !hasHeader || closeButtonVariant === "filled" ? closeButton(false) : null,
241
- children
242
- ]
243
- }
244
- )
245
- }
246
- )
247
- }
248
- )
249
- ]
203
+ children: /* @__PURE__ */ jsx(
204
+ Dimmer,
205
+ {
206
+ onClick: handleDimmerClick,
207
+ $side: side,
208
+ $isVisible: isVisible,
209
+ $color: isModal ? backdropColor : "transparent",
210
+ $interactiveBehind: !isModal,
211
+ children: /* @__PURE__ */ jsx(
212
+ SideModalBox,
213
+ {
214
+ ref: boxRef,
215
+ tabIndex: -1,
216
+ role: "dialog",
217
+ "aria-modal": isModal,
218
+ "aria-label": labelledBy || hasHeader ? void 0 : label,
219
+ "aria-labelledby": labelledBy ?? (hasHeader ? titleId : void 0),
220
+ $padding: padding,
221
+ $side: side,
222
+ $width: width,
223
+ $minWidth: minWidth,
224
+ $isVisible: isVisible,
225
+ $fullWidthOnMobile: fullWidthOnMobile,
226
+ onClick: (e) => e.stopPropagation(),
227
+ children: /* @__PURE__ */ jsxs(
228
+ SideModalContext.Provider,
229
+ {
230
+ value: {
231
+ titleId,
232
+ closeButton: closeButton(true),
233
+ cornerButton: showCloseButton && closeButtonVariant === "filled",
234
+ registerHeader
235
+ },
236
+ children: [
237
+ !hasHeader || closeButtonVariant === "filled" ? closeButton(false) : null,
238
+ children
239
+ ]
240
+ }
241
+ )
242
+ }
243
+ )
244
+ }
245
+ )
250
246
  }
251
247
  ),
252
248
  document.body
@@ -3,7 +3,7 @@ import "react";
3
3
  import { usePagination, DOTS } from "./usePagination.js";
4
4
  import { StyledList } from "./Pagination.styles.js";
5
5
  import PropTypes from "prop-types";
6
- import { Icon, iconsMap } from "../Icon/Icon.style.js";
6
+ import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
7
7
  const Pagination = (props) => {
8
8
  const { onPageChange, totalCount, siblingCount = 1, currentPage, pageSize = 10 } = props;
9
9
  const paginationRange = usePagination({
@@ -25,7 +25,7 @@ const Pagination = (props) => {
25
25
  const displayRange = paginationRange.length < 2 ? [1] : paginationRange;
26
26
  let lastPage = displayRange[displayRange.length - 1];
27
27
  return /* @__PURE__ */ jsxs(StyledList, { listStyle: props.listStyle, children: [
28
- /* @__PURE__ */ jsx(StyledList.Item, { disabled: currentPage === 1 || displayRange.length === 1, onClick: onPrevious, arrow: true, children: /* @__PURE__ */ jsx(Icon, { icon: iconsMap.arrowLeft }) }),
28
+ /* @__PURE__ */ jsx(StyledList.Item, { disabled: currentPage === 1 || displayRange.length === 1, onClick: onPrevious, arrow: true, children: /* @__PURE__ */ jsx(MaterialIcon, { name: "chevron_left", size: "1em" }) }),
29
29
  displayRange.map((pageNumber, index) => {
30
30
  if (pageNumber === DOTS) {
31
31
  return /* @__PURE__ */ jsx(StyledList.Item, { dots: true, children: "…" }, index === 1 ? "dots-left" : "dots-right");
@@ -41,7 +41,7 @@ const Pagination = (props) => {
41
41
  pageNumber
42
42
  );
43
43
  }),
44
- /* @__PURE__ */ jsx(StyledList.Item, { disabled: currentPage === lastPage || displayRange.length === 1, onClick: onNext, arrow: true, children: /* @__PURE__ */ jsx(Icon, { icon: iconsMap.arrowRight }) })
44
+ /* @__PURE__ */ jsx(StyledList.Item, { disabled: currentPage === lastPage || displayRange.length === 1, onClick: onNext, arrow: true, children: /* @__PURE__ */ jsx(MaterialIcon, { name: "chevron_right", size: "1em" }) })
45
45
  ] });
46
46
  };
47
47
  Pagination.propTypes = {
@@ -4,7 +4,8 @@ import { useTimer } from "../../hooks/useTimer.js";
4
4
  import styled from "styled-components";
5
5
  import { colors } from "../../styles/colors.js";
6
6
  import { Text } from "../Text/Text.styles.js";
7
- import { Icon, iconsMap } from "../Icon/Icon.style.js";
7
+ import { Icon } from "../Icon/Icon.style.js";
8
+ import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
8
9
  import { FlexContainer } from "../Grid/Grid.styles.js";
9
10
  import rwd from "../../styles/rwd.js";
10
11
  const TimerBlock = styled.div.withConfig({
@@ -56,7 +57,7 @@ const TimerComponent = memo(
56
57
  className,
57
58
  maxWidth,
58
59
  // Icon props
59
- icon = iconsMap.inProgress,
60
+ icon,
60
61
  iconSize = 16,
61
62
  showIcon = true
62
63
  }) => {
@@ -73,7 +74,7 @@ const TimerComponent = memo(
73
74
  const formattedTime = [secondsRemaining / 3600, secondsRemaining % 3600 / 60, secondsRemaining % 60].map((part) => String(Math.floor(part)).padStart(2, "0")).join(":");
74
75
  return /* @__PURE__ */ jsx(TimerBlock, { red: isWarning, maxWidth, style: timerBlockStyle, className, children: /* @__PURE__ */ jsxs("div", { style: containerStyle, children: [
75
76
  /* @__PURE__ */ jsx(Text, { children: /* @__PURE__ */ jsxs(FlexContainer, { itemsCenter: true, style: { gap: 8 }, children: [
76
- showIcon && /* @__PURE__ */ jsx(Icon, { icon, size: iconSize }),
77
+ showIcon && (icon ? /* @__PURE__ */ jsx(Icon, { icon, size: iconSize }) : /* @__PURE__ */ jsx(MaterialIcon, { name: "search_activity", size: iconSize })),
77
78
  /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: title }) })
78
79
  ] }) }),
79
80
  /* @__PURE__ */ jsx(Text, { children: /* @__PURE__ */ jsxs("p", { children: [
@@ -2,8 +2,13 @@ import styled from "styled-components";
2
2
  import rwd from "../../styles/rwd.js";
3
3
  import theme from "../../styles/theme.js";
4
4
  import loader from "../../static/images/process-waiting.gif.js";
5
+ import { withGlyph, glyph } from "../MaterialIcon/glyph.js";
5
6
  const Process = styled.div.withConfig({
6
7
  shouldForwardProp: (props) => !["waiting", "success", "failed"].includes(props)
8
+ }).attrs((props) => {
9
+ if (props.success) return { children: withGlyph(glyph("check_circle", true, 24), props.children) };
10
+ if (props.failed) return { children: withGlyph(glyph("cancel", true, 24), props.children) };
11
+ return {};
7
12
  })`
8
13
  display: block;
9
14
  position: relative;
@@ -21,17 +26,6 @@ const Process = styled.div.withConfig({
21
26
 
22
27
  &:before {
23
28
  content: '';
24
- font-family: 'Ionicons';
25
- speak: none;
26
- font-style: normal;
27
- font-weight: normal;
28
- font-variant: normal;
29
- text-transform: none;
30
- text-rendering: auto;
31
- -webkit-font-smoothing: antialiased;
32
- -moz-osx-font-smoothing: grayscale;
33
- font-size: 19px;
34
- line-height: 16px;
35
29
  display: block;
36
30
  width: 16px;
37
31
  height: 16px;
@@ -41,14 +35,19 @@ const Process = styled.div.withConfig({
41
35
  margin-top: -8px;
42
36
 
43
37
  ${rwd.Medium`
44
- font-size: 24px;
45
- line-height: 20px;
46
38
  width: 20px;
47
39
  height: 20px;
48
40
  margin-top: -10px;
49
41
  `}
50
42
  }
51
43
 
44
+ > [data-icon] {
45
+ position: absolute;
46
+ top: 50%;
47
+ right: -4px;
48
+ margin-top: -12px;
49
+ }
50
+
52
51
  ${(props) => props.waiting && `
53
52
  opacity: 1;
54
53
 
@@ -64,8 +63,7 @@ const Process = styled.div.withConfig({
64
63
  ${(props) => props.success && `
65
64
  opacity: 1;
66
65
 
67
- &:before {
68
- content: '\\f14a';
66
+ > [data-icon] {
69
67
  color: ${theme.cProgressDone};
70
68
  }
71
69
  `}
@@ -74,9 +72,6 @@ const Process = styled.div.withConfig({
74
72
  opacity: 1;
75
73
  color: ${theme.cWarning};
76
74
 
77
- &:before {
78
- content: '\\f14e';
79
- }
80
75
  `}
81
76
  `;
82
77
  export {
@@ -1,5 +1,6 @@
1
1
  import styled from "styled-components";
2
2
  import { Container as Container$1 } from "../Background/Background.styles.js";
3
+ import { glyph } from "../MaterialIcon/glyph.js";
3
4
  const Container = styled.div`
4
5
  width: 100%;
5
6
  height: 100%;
@@ -43,18 +44,17 @@ const Name = styled.div`
43
44
  letter-spacing: 0.6px;
44
45
  text-align: center;
45
46
  `;
46
- const EditIcon = styled.i.attrs({
47
- className: "ion-md-create"
47
+ const EditIcon = styled.span.attrs({
48
+ children: glyph("edit")
48
49
  })`
50
+ display: inline-flex;
49
51
  margin-left: 12px;
50
-
51
- &:before {
52
- transform: rotate(-15deg);
53
- }
52
+ transform: rotate(-15deg);
54
53
  `;
55
- styled.i.attrs({
56
- className: "ion-ios-add-circle-outline"
54
+ styled.span.attrs({
55
+ children: glyph("add_circle")
57
56
  })`
57
+ display: inline-flex;
58
58
  margin-left: 12px;
59
59
  font-size: 30px;
60
60
  `;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
- export interface SectionProps {
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export interface SectionProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'children' | 'onToggle'> {
3
3
  title?: ReactNode;
4
4
  children?: ReactNode;
5
5
  /** `plain` sits on the page background instead of in a card. */
@@ -29,4 +29,4 @@ export interface SectionProps {
29
29
  /**
30
30
  * A titled content block: a card (or plain) with a header rule, optionally collapsible and with a loading state.
31
31
  */
32
- export declare const Section: ({ title, children, variant, elevated, collapsible: collapsibleProp, open: openProp, defaultOpen, onToggle, loading, skeletonRows, headingLevel, id, className, dataCy, }: SectionProps) => import("react/jsx-runtime").JSX.Element;
32
+ export declare const Section: import('react').ForwardRefExoticComponent<SectionProps & import('react').RefAttributes<HTMLElement>>;
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useState, useId } from "react";
2
+ import { forwardRef, useState, useId } from "react";
3
3
  import { ArrowSimple } from "../icons/ArrowSimple.js";
4
4
  import { inertProp } from "../../utils/inertProp.js";
5
5
  import { Chevron } from "../Collapsible/Collapsible.styles.js";
@@ -7,7 +7,7 @@ import { SkeletonLines } from "../Skeleton/Skeleton.js";
7
7
  import { useMediaQuery } from "../../hooks/useMediaQuery.js";
8
8
  import { mediaQuery } from "../../styles/rwd.js";
9
9
  import { SectionRoot, SectionHeader, SectionHeading, SectionToggle, SectionBody, SectionBodyClip, SectionBodyInner } from "./Section.styles.js";
10
- const Section = ({
10
+ const Section = forwardRef(function Section2({
11
11
  title,
12
12
  children,
13
13
  variant = "card",
@@ -21,8 +21,9 @@ const Section = ({
21
21
  headingLevel = "h2",
22
22
  id,
23
23
  className,
24
- dataCy
25
- }) => {
24
+ dataCy,
25
+ ...rest
26
+ }, ref) {
26
27
  const collapsible = Boolean(collapsibleProp) && Boolean(title);
27
28
  const desktopOpen = collapsibleProp === "desktop-open";
28
29
  const [uncontrolledOpen, setUncontrolledOpen] = useState(defaultOpen);
@@ -44,6 +45,8 @@ const Section = ({
44
45
  return /* @__PURE__ */ jsxs(
45
46
  SectionRoot,
46
47
  {
48
+ ...rest,
49
+ ref,
47
50
  id,
48
51
  className,
49
52
  "data-cy": dataCy,
@@ -74,7 +77,7 @@ const Section = ({
74
77
  ]
75
78
  }
76
79
  );
77
- };
80
+ });
78
81
  export {
79
82
  Section
80
83
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { InfoIcon } from "../InfoIcon/InfoIcon.js";
4
- import { Icon, iconsMap } from "../Icon/Icon.style.js";
4
+ import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
5
5
  import SvgTransferIcon from "../../static/images/transfer-icon.svg.js";
6
6
  import SvgCheckmarkCircleIcon from "../../static/images/checkmark-circle-icon.svg.js";
7
7
  import SvgCloseCircleIcon from "../../static/images/close-circle-icon.svg.js";
@@ -17,7 +17,7 @@ const variantConfig = {
17
17
  useStroke: true
18
18
  },
19
19
  initiated: {
20
- icon: /* @__PURE__ */ jsx(Icon, { icon: iconsMap.inProgress, size: 11 }),
20
+ icon: /* @__PURE__ */ jsx(MaterialIcon, { name: "search_activity", size: 14 }),
21
21
  iconColor: "#032F78",
22
22
  hoverColor: "#032F78",
23
23
  disableHoverColor: false
@@ -1,5 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare const loaderGif: string;
2
+ /** The loading animation as animated WebP (~18 KB, the GIF is ~580 KB); a stable URL so browsers cache it. */
3
+ 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";
3
4
  export interface StokrLoaderProps {
4
5
  /** Leaves the top 97px (the header) visible instead of covering the whole screen. */
5
6
  noFullscreen?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import styled, { keyframes } from "styled-components";
3
- const loaderGif = `https://res.cloudinary.com/stokr/image/upload/f_auto,q_auto/v1575035788/Static/stokr_loader_white_400x400_egnhgb.gif?a=${Math.random()}`;
3
+ const loaderGif = "https://res.cloudinary.com/stokr/image/upload/f_webp,fl_awebp,q_auto/v1575035788/Static/stokr_loader_white_400x400_egnhgb.gif";
4
4
  const CenterFullWidth = styled.div`
5
5
  width: 100%;
6
6
  height: 100%;
@@ -5,7 +5,6 @@ import { Input } from "../Input/Input.js";
5
5
  import { Checkbox } from "../Checkbox/Checkbox.js";
6
6
  import SvgTrash from "../../static/images/trash.svg.js";
7
7
  import SvgGlobe from "../../static/images/globe.svg.js";
8
- import { IoniconsStyles } from "../../styles/ioniconsStyles.js";
9
8
  import { FlagFor, CountrySelect } from "../Country/CountrySelect.js";
10
9
  import { CardWrapper, CardHeader, HeaderIcon, FlagWrapper, HeaderTitle, HeaderActions, DeleteButton, ChevronIcon, CardBodyCollapse, CardBody, CheckboxRow } from "./TaxResidenceCard.styles.js";
11
10
  const TaxResidenceCard = (props) => {
@@ -70,7 +69,6 @@ const TaxResidenceCard = (props) => {
70
69
  };
71
70
  const cy = dataCy || `tax-residence-card-${id}`;
72
71
  return /* @__PURE__ */ jsxs(CardWrapper, { isOpen, "data-cy": cy, children: [
73
- /* @__PURE__ */ jsx(IoniconsStyles, {}),
74
72
  /* @__PURE__ */ jsxs(
75
73
  CardHeader,
76
74
  {
@@ -1,6 +1,7 @@
1
1
  import styled, { css } from "styled-components";
2
2
  import { Collapse } from "react-collapse";
3
3
  import theme from "../../styles/theme.js";
4
+ import { glyph } from "../MaterialIcon/glyph.js";
4
5
  const CardWrapper = styled.div.withConfig({
5
6
  shouldForwardProp: (prop) => !["isOpen"].includes(prop)
6
7
  })`
@@ -127,11 +128,12 @@ const DeleteButton = styled.button`
127
128
  }
128
129
  }
129
130
  `;
130
- const ChevronIcon = styled.i.withConfig({
131
+ const ChevronIcon = styled.span.withConfig({
131
132
  shouldForwardProp: (prop) => !["isOpen"].includes(prop)
132
133
  }).attrs({
133
- className: "ion ion-ios-arrow-down"
134
+ children: glyph("keyboard_arrow_down")
134
135
  })`
136
+ display: inline-flex;
135
137
  font-size: 20px;
136
138
  line-height: 1;
137
139
  color: ${theme.cBlack};