@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
@@ -3,7 +3,7 @@ import { Body, BodyClip } from "../Collapsible/Collapsible.styles.js";
3
3
  import { breakpoint } from "../../design-system/styled/breakpoint.js";
4
4
  import { text } from "../../design-system/styled/text.js";
5
5
  const SectionRoot = styled.section`
6
- --section-gap: var(--stokr-space-8);
6
+ --section-gap: var(--space-8);
7
7
  /* The card's padding, for the toggle to reach over it. */
8
8
  --section-pad-y: 0px;
9
9
  --section-pad-x: 0px;
@@ -12,19 +12,19 @@ const SectionRoot = styled.section`
12
12
  gap: ${({ $collapsible }) => $collapsible ? "0" : "var(--section-gap)"};
13
13
 
14
14
  ${({ $variant, $elevated }) => $variant === "card" && css`
15
- --section-pad-y: var(--stokr-space-6);
16
- --section-pad-x: var(--stokr-space-6);
15
+ --section-pad-y: var(--space-6);
16
+ --section-pad-x: var(--space-6);
17
17
  padding: var(--section-pad-y) var(--section-pad-x);
18
- background: var(--stokr-background-default);
19
- border: 1px solid var(--stokr-border-subtle);
20
- border-radius: var(--stokr-radius-lg);
21
- box-shadow: ${$elevated ? "var(--stokr-elevation-xs)" : "none"};
18
+ background: var(--background-default);
19
+ border: 1px solid var(--border-subtle);
20
+ border-radius: var(--radius-lg);
21
+ box-shadow: ${$elevated ? "var(--elevation-xs)" : "none"};
22
22
 
23
23
  /* Figma 3582:128652: mobile cards are 20 / 16 with 16 under the header. */
24
24
  ${breakpoint.below.MLarge`
25
- --section-gap: var(--stokr-space-4);
26
- --section-pad-y: var(--stokr-space-5);
27
- --section-pad-x: var(--stokr-space-4);
25
+ --section-gap: var(--space-4);
26
+ --section-pad-y: var(--space-5);
27
+ --section-pad-x: var(--space-4);
28
28
  `}
29
29
  `}
30
30
 
@@ -33,7 +33,7 @@ const SectionRoot = styled.section`
33
33
  if ($variant !== "card" || !$collapsed) return "";
34
34
  const lift = css`
35
35
  &:hover {
36
- box-shadow: var(--stokr-elevation-sm);
36
+ box-shadow: var(--elevation-sm);
37
37
  }
38
38
  `;
39
39
  return $always ? lift : css`
@@ -44,8 +44,8 @@ const SectionRoot = styled.section`
44
44
  }}
45
45
  `;
46
46
  const SectionHeader = styled.div`
47
- padding-bottom: var(--stokr-space-5);
48
- border-bottom: 1px solid var(--stokr-border-subtle);
47
+ padding-bottom: var(--space-5);
48
+ border-bottom: 1px solid var(--border-subtle);
49
49
  transition:
50
50
  padding-bottom 300ms,
51
51
  border-color 300ms;
@@ -68,11 +68,11 @@ const SectionToggle = styled.button`
68
68
  display: flex;
69
69
  align-items: center;
70
70
  justify-content: space-between;
71
- gap: var(--stokr-space-4);
71
+ gap: var(--space-4);
72
72
  width: calc(100% + 2 * var(--section-pad-x));
73
73
  margin: calc(-1 * var(--section-pad-y)) calc(-1 * var(--section-pad-x)) 0;
74
74
  padding: var(--section-pad-y) var(--section-pad-x) 0;
75
- border-radius: var(--stokr-radius-lg);
75
+ border-radius: var(--radius-lg);
76
76
 
77
77
  ${({ $collapsed, $always }) => {
78
78
  const reachBottom = css`
@@ -122,10 +122,8 @@ const SectionBodyInner = styled.div`
122
122
  `;
123
123
  const SectionHeading = styled.h2`
124
124
  ${text("subtitleM")};
125
- /* Global h2 rules may uppercase; the design does not. */
126
- text-transform: none;
127
125
  margin: 0;
128
- color: var(--stokr-text-primary);
126
+ color: var(--text-primary);
129
127
  `;
130
128
  export {
131
129
  SectionBody,
@@ -0,0 +1,4 @@
1
+ export declare const SectionTitle: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "style"> & {
2
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
3
+ }> & string;
4
+ export default SectionTitle;
@@ -1,12 +1,9 @@
1
1
  import styled from "styled-components";
2
+ import { text } from "../../design-system/styled/text.js";
2
3
  const SectionTitle = styled.h2`
3
4
  position: relative;
4
- font-family: var(--stokr-font-family-base);
5
- font-weight: normal;
6
- font-size: 11px;
7
- line-height: 20px;
8
- letter-spacing: 2px;
9
- text-transform: uppercase;
5
+ font-family: var(--font-family-base);
6
+ ${text("labelRegular")}
10
7
  padding: 0;
11
8
  border: 0;
12
9
  margin: 0;
@@ -17,7 +14,7 @@ const SectionTitle = styled.h2`
17
14
 
18
15
  strong {
19
16
  display: inline-block;
20
- font-weight: bold;
17
+ ${text("label")}
21
18
  }
22
19
  `;
23
20
  export {
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- /** Names of the `--stokr-radius-*` tokens. */
2
+ /** Names of the `--radius-*` tokens. */
3
3
  type RadiusName = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
4
4
  export interface SkeletonProps {
5
5
  /** px when a number, any CSS length otherwise. */
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { SkeletonBlock, SkeletonLinesRoot, VisuallyHidden } from "./Skeleton.styles.js";
3
3
  const RADIUS_NAMES = ["none", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "full"];
4
- const radiusVar = (name) => `var(--stokr-radius-${name})`;
4
+ const radiusVar = (name) => `var(--radius-${name})`;
5
5
  const toRadius = (value, round) => {
6
6
  if (value === void 0) return radiusVar(round ? "full" : "sm");
7
7
  if (typeof value === "number") return `${value}px`;
@@ -13,8 +13,8 @@ const Skeleton = ({
13
13
  round = false,
14
14
  radius,
15
15
  animate = true,
16
- baseColor = "var(--stokr-background-surface)",
17
- highlightColor = "var(--stokr-border-subtle)",
16
+ baseColor = "var(--background-surface)",
17
+ highlightColor = "var(--border-subtle)",
18
18
  className
19
19
  }) => /* @__PURE__ */ jsx(
20
20
  SkeletonBlock,
@@ -1,4 +1,5 @@
1
1
  import styled, { css, keyframes } from "styled-components";
2
+ import { text } from "../../design-system/styled/text.js";
2
3
  const slideIn = keyframes`
3
4
  from {
4
5
  opacity: 0;
@@ -58,7 +59,7 @@ const progressExpire = keyframes`
58
59
  }
59
60
  `;
60
61
  const SNACKBAR_VARIANTS = ["info", "error", "success", "warning"];
61
- const statusIcon = (variant) => `var(--stokr-status-${variant && SNACKBAR_VARIANTS.includes(variant) ? variant : "info"}-icon)`;
62
+ const statusIcon = (variant) => `var(--status-${variant && SNACKBAR_VARIANTS.includes(variant) && variant !== "info" ? variant : "info-blue"}-icon)`;
62
63
  const positionStyles = {
63
64
  "top-right": css`
64
65
  top: 20px;
@@ -115,10 +116,10 @@ const SnackbarWrapper = styled.div.withConfig({
115
116
  min-width: 320px;
116
117
  max-width: 480px;
117
118
  padding: 12px 16px;
118
- background-color: var(--stokr-background-surface-raised);
119
+ background-color: var(--background-surface-raised);
119
120
  box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.12);
120
121
  border-radius: 8px;
121
- border: 1px solid var(--stokr-border-subtle);
122
+ border: 1px solid var(--border-subtle);
122
123
  pointer-events: auto;
123
124
  overflow: hidden;
124
125
  animation: ${({ $isExiting }) => $isExiting ? slideOut : "none"} 0.3s ease-out forwards;
@@ -165,11 +166,8 @@ const IconWrapper = styled.div.withConfig({
165
166
  `;
166
167
  const Message = styled.div`
167
168
  flex: 1;
168
- font-size: 16px;
169
- font-weight: 600;
170
- line-height: 24px;
171
- letter-spacing: 0.6px;
172
- color: var(--stokr-text-primary);
169
+ ${text("subtitleM")}
170
+ color: var(--text-primary);
173
171
  `;
174
172
  const CloseButton = styled.button`
175
173
  flex-shrink: 0;
@@ -193,13 +191,13 @@ const CloseButton = styled.button`
193
191
  height: 12px;
194
192
 
195
193
  path {
196
- stroke: var(--stokr-text-tertiary);
194
+ stroke: var(--text-tertiary);
197
195
  stroke-width: 2;
198
196
  }
199
197
  }
200
198
 
201
199
  &:hover svg path {
202
- stroke: var(--stokr-text-primary);
200
+ stroke: var(--text-primary);
203
201
  }
204
202
  `;
205
203
  export {
@@ -2,7 +2,7 @@ import styled from "styled-components";
2
2
  const SpanButton = styled.span.withConfig({
3
3
  shouldForwardProp: (props) => !["urlLink"].includes(props)
4
4
  })`
5
- color: var(--stokr-action-accent-bg);
5
+ color: var(--action-accent-bg);
6
6
  cursor: pointer;
7
7
  font-weight: 400;
8
8
 
@@ -11,7 +11,7 @@ const SpanButton = styled.span.withConfig({
11
11
  `}
12
12
 
13
13
  &:hover {
14
- color: var(--stokr-text-primary);
14
+ color: var(--text-primary);
15
15
  }
16
16
  `;
17
17
  export {
@@ -3,7 +3,7 @@ export type StatusDotVariant = 'pending' | 'initiated' | 'paid' | 'declined';
3
3
  export interface StatusDotProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick' | 'color'> {
4
4
  /** The label. */
5
5
  children: ReactNode;
6
- /** Kit status colours: pending → warning, initiated → info, paid → success, declined → error. */
6
+ /** Kit status colours: pending → warning, initiated → info-blue, paid → success, declined → error. */
7
7
  variant?: StatusDotVariant;
8
8
  /** Dot (and label) color; overrides the variant. */
9
9
  color?: string;
@@ -2,16 +2,16 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { Root, Dot, Label } from "./StatusDot.styles.js";
3
3
  const VARIANT_STATUS = {
4
4
  pending: "warning",
5
- initiated: "info",
5
+ initiated: "info-blue",
6
6
  paid: "success",
7
7
  declined: "error"
8
8
  };
9
9
  const preset = (variant) => {
10
10
  const status = VARIANT_STATUS[variant];
11
11
  return {
12
- color: `var(--stokr-status-${status}-icon)`,
13
- labelColor: `var(--stokr-status-${status}-text)`,
14
- backgroundColor: `var(--stokr-status-${status}-bg)`
12
+ color: `var(--status-${status}-icon)`,
13
+ labelColor: `var(--status-${status}-text)`,
14
+ backgroundColor: `var(--status-${status}-bg)`
15
15
  };
16
16
  };
17
17
  const StatusDot = ({
@@ -31,7 +31,7 @@ const StatusDot = ({
31
31
  ...rest
32
32
  }) => {
33
33
  const colors = variant && VARIANT_STATUS[variant] ? preset(variant) : null;
34
- const resolvedColor = color ?? colors?.color ?? "var(--stokr-text-primary)";
34
+ const resolvedColor = color ?? colors?.color ?? "var(--text-primary)";
35
35
  const resolvedLabelColor = labelColor ?? (color === void 0 ? colors?.labelColor : void 0) ?? resolvedColor;
36
36
  const isSubtle = surface === "subtle";
37
37
  const resolvedBackground = isSubtle && (backgroundColor !== void 0 ? backgroundColor : colors?.backgroundColor);
@@ -1,4 +1,5 @@
1
1
  import styled, { keyframes } from "styled-components";
2
+ import { text } from "../../design-system/styled/text.js";
2
3
  const pulse = keyframes`
3
4
  0%, 100% { opacity: 1; }
4
5
  50% { opacity: 0.35; }
@@ -43,12 +44,8 @@ const Dot = styled.span.withConfig({
43
44
  const Label = styled.span.withConfig({
44
45
  shouldForwardProp: (prop) => !["$color", "$uppercase"].includes(prop)
45
46
  })`
46
- font-size: ${(p) => p.$uppercase ? "11px" : "12px"};
47
- font-weight: ${(p) => p.$uppercase ? "700" : "400"};
48
- line-height: 20px;
47
+ ${(p) => text(p.$uppercase ? "label" : "caption")}
49
48
  color: ${(p) => p.$color};
50
- text-transform: ${(p) => p.$uppercase ? "uppercase" : "none"};
51
- letter-spacing: ${(p) => p.$uppercase ? "2px" : "0.6px"};
52
49
  `;
53
50
  export {
54
51
  Dot,
@@ -33,7 +33,7 @@ const StatusTag = ({
33
33
  ...props
34
34
  }) => {
35
35
  const variantData = variant ? variantConfig[variant] : null;
36
- const finalIconColor = iconColor ?? (variantData ? "currentColor" : "var(--stokr-text-tertiary)");
36
+ const finalIconColor = iconColor ?? (variantData ? "currentColor" : "var(--text-tertiary)");
37
37
  const finalHoverColor = hoverColor;
38
38
  const finalDisableHoverColor = disableHoverColor ?? false;
39
39
  let finalIcon = null;
@@ -17,9 +17,9 @@ const StatusTagWrapper = styled.div.withConfig({
17
17
  align-items: center;
18
18
  gap: 6px;
19
19
  padding: 5px 8px;
20
- background-color: ${(props) => props.$variant ? `var(--stokr-tag-${props.$variant}-bg)` : "transparent"};
21
- color: ${(props) => props.$variant ? `var(--stokr-tag-${props.$variant}-text)` : "var(--stokr-text-primary)"};
22
- border: 1px solid ${(props) => props.$variant ? "transparent" : "var(--stokr-border-subtle)"};
20
+ background-color: ${(props) => props.$variant ? `var(--tag-${props.$variant}-bg)` : "transparent"};
21
+ color: ${(props) => props.$variant ? `var(--tag-${props.$variant}-text)` : "var(--text-primary)"};
22
+ border: 1px solid ${(props) => props.$variant ? "transparent" : "var(--border-subtle)"};
23
23
  border-radius: 6px;
24
24
  white-space: nowrap;
25
25
  min-width: ${(props) => props.minWidth || "auto"};
@@ -34,7 +34,7 @@ const IconWrapper = styled.div.withConfig({
34
34
  flex-shrink: 0;
35
35
  width: 12px;
36
36
  height: 12px;
37
- color: ${(props) => props.colorActive && props.hoverColor ? props.hoverColor : props.iconColor || "var(--stokr-text-tertiary)"};
37
+ color: ${(props) => props.colorActive && props.hoverColor ? props.hoverColor : props.iconColor || "var(--text-tertiary)"};
38
38
  transition: color 0.2s ease;
39
39
 
40
40
  svg {
@@ -47,7 +47,7 @@ const Item = styled.div.withConfig({
47
47
  left: 0;
48
48
  border-radius: 3px;
49
49
  box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.05);
50
- background-color: var(--stokr-border-subtle);
50
+ background-color: var(--border-subtle);
51
51
  }
52
52
 
53
53
  &:after {
@@ -69,26 +69,26 @@ const Item = styled.div.withConfig({
69
69
  }
70
70
 
71
71
  &:hover:after {
72
- background-color: var(--stokr-border-strong);
72
+ background-color: var(--border-strong);
73
73
  }
74
74
 
75
75
  ${(props) => props.isDone && `
76
76
  &:after {
77
- background-color: var(--stokr-status-success-icon);
77
+ background-color: var(--status-success-icon);
78
78
  }
79
79
 
80
80
  &:hover:after {
81
- background-color: var(--stokr-border-strong);
81
+ background-color: var(--border-strong);
82
82
  }
83
83
  `}
84
84
 
85
85
  ${(props) => props.isActive && `
86
86
  &:after {
87
- background-color: var(--stokr-text-tertiary);
87
+ background-color: var(--text-tertiary);
88
88
  }
89
89
 
90
90
  &:hover:after {
91
- background-color: var(--stokr-border-strong);
91
+ background-color: var(--border-strong);
92
92
  }
93
93
  `}
94
94
 
@@ -101,7 +101,7 @@ const StepsProgressContainer = styled.div`
101
101
  width: 100%;
102
102
  height: 40px;
103
103
  padding: 4px 0;
104
- box-shadow: 0 1px 0 0 var(--stokr-border-subtle);
104
+ box-shadow: 0 1px 0 0 var(--border-subtle);
105
105
 
106
106
  ${breakpoint.Medium`
107
107
  height: 56px;
@@ -0,0 +1,12 @@
1
+ import { StepProgressProps } from './StepProgress';
2
+ export interface StepCaptionInfo {
3
+ number: number;
4
+ total: number;
5
+ title: string;
6
+ }
7
+ export interface MobileStepProgressProps extends StepProgressProps {
8
+ /** Builds the "Step 2 of 5 — Title" caption (copy lives in the app). */
9
+ formatCaption: (info: StepCaptionInfo) => string;
10
+ }
11
+ /** Horizontal segment strip with a caption for the current step, for narrow screens. */
12
+ export declare const MobileStepProgress: ({ steps, formatCaption, className }: MobileStepProgressProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { Strip, Segments, Segment, Caption } from "./MobileStepProgress.styles.js";
3
+ const MobileStepProgress = ({ steps, formatCaption, className }) => {
4
+ const active = steps.find((step) => step.status === "active");
5
+ const last = steps[steps.length - 1];
6
+ const current = active ?? (last?.status === "done" ? last : void 0);
7
+ return /* @__PURE__ */ jsxs(Strip, { className, children: [
8
+ /* @__PURE__ */ jsx(Segments, { children: steps.map((step) => /* @__PURE__ */ jsx(Segment, { $status: step.status }, step.id)) }),
9
+ current && /* @__PURE__ */ jsx(Caption, { children: formatCaption({ number: current.number, total: steps.length, title: current.title }) })
10
+ ] });
11
+ };
12
+ export {
13
+ MobileStepProgress
14
+ };
@@ -0,0 +1,15 @@
1
+ import { StepStatus } from './StepProgress';
2
+ export declare const Strip: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
3
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
4
+ }> & string;
5
+ export declare const Segments: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
6
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
7
+ }> & string;
8
+ export declare const Segment: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
9
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
10
+ }, {
11
+ $status: StepStatus;
12
+ }>> & string;
13
+ export declare const Caption: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
14
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
15
+ }> & string;
@@ -0,0 +1,39 @@
1
+ import styled from "styled-components";
2
+ import { text } from "../../design-system/styled/text.js";
3
+ const SEGMENT_COLOR = {
4
+ done: "var(--action-accent-bg)",
5
+ active: "var(--text-primary)",
6
+ upcoming: "var(--border-default)"
7
+ };
8
+ const Strip = styled.div`
9
+ display: flex;
10
+ flex-direction: column;
11
+ gap: 8px;
12
+ padding: 0 22px 12px;
13
+ `;
14
+ const Segments = styled.div`
15
+ display: flex;
16
+ gap: 12px;
17
+ width: 100%;
18
+ `;
19
+ const Segment = styled.span`
20
+ flex: 1 0 0;
21
+ min-width: 1px;
22
+ height: 4px;
23
+ border-radius: 2px;
24
+ background: ${({ $status }) => SEGMENT_COLOR[$status]};
25
+ `;
26
+ const Caption = styled.p`
27
+ margin: 0;
28
+ ${text("overline")}
29
+ color: var(--text-secondary);
30
+ white-space: nowrap;
31
+ overflow: hidden;
32
+ text-overflow: ellipsis;
33
+ `;
34
+ export {
35
+ Caption,
36
+ Segment,
37
+ Segments,
38
+ Strip
39
+ };
@@ -0,0 +1,14 @@
1
+ export type StepStatus = 'done' | 'active' | 'upcoming';
2
+ export interface StepProgressItem {
3
+ id: string;
4
+ number: number;
5
+ title: string;
6
+ subtitle?: string;
7
+ status: StepStatus;
8
+ }
9
+ export interface StepProgressProps {
10
+ steps: readonly StepProgressItem[];
11
+ className?: string;
12
+ }
13
+ /** Vertical step timeline for dark sidebars. */
14
+ export declare const StepProgress: ({ steps, className }: StepProgressProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { MaterialIcon } from "../MaterialIcon/MaterialIcon.js";
3
+ import { List, Item, Marker, Line, ItemText, ItemTitle, ItemSubtitle } from "./StepProgress.styles.js";
4
+ const StepProgress = ({ steps, className }) => /* @__PURE__ */ jsx(List, { className, children: steps.map((step, index) => /* @__PURE__ */ jsxs(Item, { "data-status": step.status, "aria-current": step.status === "active" ? "step" : void 0, children: [
5
+ /* @__PURE__ */ jsx(Marker, { $status: step.status, children: step.status === "done" ? /* @__PURE__ */ jsx(MaterialIcon, { name: "check", weight: 600, size: "md" }) : step.number }),
6
+ index < steps.length - 1 && /* @__PURE__ */ jsx(Line, { $status: step.status }),
7
+ /* @__PURE__ */ jsxs(ItemText, { children: [
8
+ /* @__PURE__ */ jsx(ItemTitle, { $status: step.status, children: step.title }),
9
+ step.subtitle && /* @__PURE__ */ jsx(ItemSubtitle, { $status: step.status, children: step.subtitle })
10
+ ] })
11
+ ] }, step.id)) });
12
+ export {
13
+ StepProgress
14
+ };
@@ -0,0 +1,30 @@
1
+ import { StepStatus } from './StepProgress';
2
+ export declare const List: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "style"> & {
3
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
4
+ }> & string;
5
+ export declare const Item: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "style"> & {
6
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
7
+ }> & string;
8
+ export declare const Line: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
9
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
10
+ }, {
11
+ $status: StepStatus;
12
+ }>> & string;
13
+ export declare const Marker: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
14
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
15
+ }, {
16
+ $status: StepStatus;
17
+ }>> & string;
18
+ export declare const ItemText: import('styled-components/dist/types').IStyledComponentBase<"web", Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
19
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
20
+ }> & string;
21
+ export declare const ItemTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
22
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
23
+ }, {
24
+ $status: StepStatus;
25
+ }>> & string;
26
+ export declare const ItemSubtitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "style"> & {
27
+ style?: import('react').CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars;
28
+ }, {
29
+ $status: StepStatus;
30
+ }>> & string;
@@ -0,0 +1,97 @@
1
+ import styled from "styled-components";
2
+ import { text } from "../../design-system/styled/text.js";
3
+ const MARKER_SIZE = 28;
4
+ const LINE_GAP = 4;
5
+ const MARKER_BG = {
6
+ upcoming: "transparent",
7
+ active: "var(--action-primary-bg)",
8
+ done: "var(--action-accent-bg)"
9
+ };
10
+ const MARKER_BORDER = {
11
+ upcoming: "var(--text-secondary)",
12
+ active: "var(--action-primary-bg)",
13
+ done: "var(--action-accent-bg)"
14
+ };
15
+ const MARKER_TEXT = {
16
+ upcoming: "var(--text-secondary)",
17
+ active: "var(--action-primary-text)",
18
+ done: "var(--action-accent-text)"
19
+ };
20
+ const TITLE_COLOR = {
21
+ upcoming: "var(--text-secondary)",
22
+ active: "var(--text-primary)",
23
+ done: "var(--action-accent-bg)"
24
+ };
25
+ const SUBTITLE_COLOR = {
26
+ upcoming: "var(--text-secondary)",
27
+ active: "var(--text-body)",
28
+ done: "var(--text-secondary)"
29
+ };
30
+ const LINE_COLOR = {
31
+ upcoming: "var(--text-secondary)",
32
+ active: "var(--text-body)",
33
+ done: "var(--status-success-text)"
34
+ };
35
+ const List = styled.ol`
36
+ display: flex;
37
+ flex-direction: column;
38
+ margin: 0;
39
+ padding: 0;
40
+ list-style: none;
41
+ `;
42
+ const Item = styled.li`
43
+ position: relative;
44
+ display: flex;
45
+ align-items: flex-start;
46
+ gap: 16px;
47
+ padding-bottom: 32px;
48
+
49
+ &:last-child {
50
+ padding-bottom: 0;
51
+ }
52
+ `;
53
+ const Line = styled.span`
54
+ position: absolute;
55
+ left: ${MARKER_SIZE / 2 - 1}px;
56
+ top: ${MARKER_SIZE + LINE_GAP}px;
57
+ bottom: ${LINE_GAP}px;
58
+ width: 2px;
59
+ background-color: ${({ $status }) => LINE_COLOR[$status]};
60
+ `;
61
+ const Marker = styled.span`
62
+ ${text("caption")}
63
+ font-weight: 600;
64
+ z-index: 1;
65
+ flex: 0 0 ${MARKER_SIZE}px;
66
+ width: ${MARKER_SIZE}px;
67
+ height: ${MARKER_SIZE}px;
68
+ border-radius: 50%;
69
+ display: flex;
70
+ align-items: center;
71
+ justify-content: center;
72
+ background-color: ${({ $status }) => MARKER_BG[$status]};
73
+ color: ${({ $status }) => MARKER_TEXT[$status]};
74
+ border: 1px solid ${({ $status }) => MARKER_BORDER[$status]};
75
+ `;
76
+ const ItemText = styled.div`
77
+ padding-top: 4px;
78
+ `;
79
+ const ItemTitle = styled.p`
80
+ ${text("subtitleM")}
81
+ margin: 0;
82
+ color: ${({ $status }) => TITLE_COLOR[$status]};
83
+ `;
84
+ const ItemSubtitle = styled.p`
85
+ ${text("caption")}
86
+ margin: 4px 0 0;
87
+ color: ${({ $status }) => SUBTITLE_COLOR[$status]};
88
+ `;
89
+ export {
90
+ Item,
91
+ ItemSubtitle,
92
+ ItemText,
93
+ ItemTitle,
94
+ Line,
95
+ List,
96
+ Marker
97
+ };
@@ -0,0 +1,36 @@
1
+ import { ReactNode } from 'react';
2
+ export interface StepSidebarIntro {
3
+ eyebrow: ReactNode;
4
+ title: ReactNode;
5
+ description?: ReactNode;
6
+ }
7
+ export interface StepSidebarSupport {
8
+ heading: ReactNode;
9
+ body: ReactNode;
10
+ linkLabel: ReactNode;
11
+ href: string;
12
+ /** Opens the link in a new tab. */
13
+ external?: boolean;
14
+ }
15
+ export interface StepSidebarProps {
16
+ /** Desktop content between the intro and the support block, e.g. `<StepProgress />`. */
17
+ children?: ReactNode;
18
+ /** Mobile content below the header, e.g. `<MobileStepProgress />`. */
19
+ mobileContent?: ReactNode;
20
+ /** Eyebrow, title and text below the logo (desktop only). */
21
+ intro?: StepSidebarIntro;
22
+ /** Contact block pinned to the bottom (desktop only). */
23
+ support?: StepSidebarSupport;
24
+ logoAlt: string;
25
+ /** Makes the logo a button. */
26
+ onLogoClick?: () => void;
27
+ /** Mobile header content on the right, e.g. a log-out button. */
28
+ mobileAction?: ReactNode;
29
+ /** Shows the close (×) button in the mobile header. */
30
+ onClose?: () => void;
31
+ closeLabel?: string;
32
+ dataCyPrefix?: string;
33
+ className?: string;
34
+ }
35
+ /** Dark flow sidebar shell: logo, intro, your content and a support contact; a compact header on mobile. */
36
+ export declare const StepSidebar: ({ children, mobileContent, mobileAction, intro, support, logoAlt, onLogoClick, onClose, closeLabel, dataCyPrefix, className, }: StepSidebarProps) => import("react/jsx-runtime").JSX.Element;