@stokr/components-library 3.3.0 → 4.0.1

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 (244) hide show
  1. package/dist/components/AdminDashboard/Table/Table.styles.js +7 -13
  2. package/dist/components/BasicTable/BasicTable.js +1 -3
  3. package/dist/components/BlogPost/BlogPost.styles.js +2 -2
  4. package/dist/components/Button/Button.styles.d.ts +28 -0
  5. package/dist/components/Button/Button.styles.js +27 -38
  6. package/dist/components/Button/GlareButton.js +2 -2
  7. package/dist/components/CardTabs/CardTabs.d.ts +41 -0
  8. package/dist/components/CardTabs/CardTabs.js +130 -0
  9. package/dist/components/CardTabs/CardTabs.styles.d.ts +56 -0
  10. package/dist/components/CardTabs/CardTabs.styles.js +171 -0
  11. package/dist/components/Chips/Chip.js +32 -8
  12. package/dist/components/Chips/Chip.styles.js +24 -28
  13. package/dist/components/Collapsible/Collapsible.d.ts +18 -0
  14. package/dist/components/Collapsible/Collapsible.js +44 -0
  15. package/dist/components/Collapsible/Collapsible.styles.d.ts +18 -0
  16. package/dist/components/Collapsible/Collapsible.styles.js +94 -0
  17. package/dist/components/ComponentWrapper/ComponentWrapper.styles.d.ts +31 -0
  18. package/dist/components/ComponentWrapper/ComponentWrapper.styles.js +107 -109
  19. package/dist/components/Copy/Copy.d.ts +20 -0
  20. package/dist/components/Copy/Copy.js +0 -9
  21. package/dist/components/Copy/copySource.d.ts +20 -0
  22. package/dist/components/Copy/flatten.d.ts +3 -0
  23. package/dist/components/CopyToClipboardTooltip/CopyToClipboardTooltip.d.ts +15 -0
  24. package/dist/components/CopyToClipboardTooltip/CopyToClipboardTooltip.styles.d.ts +6 -0
  25. package/dist/components/CryptoAddress/CryptoAddress.js +3 -3
  26. package/dist/components/InfoIcon/InfoIcon.d.ts +33 -0
  27. package/dist/components/InfoIcon/InfoIcon.styles.d.ts +12 -0
  28. package/dist/components/Input/Input.d.ts +23 -0
  29. package/dist/components/Input/Input.js +17 -27
  30. package/dist/components/Input/Input.styles.d.ts +15 -0
  31. package/dist/components/Input/InputPassword.js +1 -0
  32. package/dist/components/Input/InputPassword.styles.js +4 -1
  33. package/dist/components/Input/MultiSelect.js +1 -0
  34. package/dist/components/Input/RangeInput.js +49 -53
  35. package/dist/components/Input/Textarea.styles.js +1 -1
  36. package/dist/components/MaterialIcon/MaterialIcon.d.ts +41 -0
  37. package/dist/components/MaterialIcon/MaterialIcon.js +55 -0
  38. package/dist/components/MaterialIcon/MaterialIcon.styles.d.ts +14 -0
  39. package/dist/components/MaterialIcon/MaterialIcon.styles.js +31 -0
  40. package/dist/components/MaterialIcon/iconConfig.d.ts +24 -0
  41. package/dist/components/MaterialIcon/iconConfig.js +11 -0
  42. package/dist/components/Modal/Modal.d.ts +26 -0
  43. package/dist/components/Modal/Modal.js +1 -18
  44. package/dist/components/Modal/Modal.styles.d.ts +59 -0
  45. package/dist/components/Modal/Modal.styles.js +18 -3
  46. package/dist/components/Modal/PaymentModal.js +16 -19
  47. package/dist/components/Modal/SideModal.d.ts +47 -0
  48. package/dist/components/Modal/SideModal.js +197 -73
  49. package/dist/components/Modal/SideModal.styles.d.ts +28 -0
  50. package/dist/components/Modal/SideModal.styles.js +56 -16
  51. package/dist/components/Modal/SideModalContext.d.ts +12 -0
  52. package/dist/components/Modal/SideModalContext.js +10 -0
  53. package/dist/components/Modal/SideModalParts.d.ts +20 -0
  54. package/dist/components/Modal/SideModalParts.js +95 -0
  55. package/dist/components/Pagination/Pagination.js +2 -2
  56. package/dist/components/Pagination/PaginationControls.js +2 -2
  57. package/dist/components/Payment/TimerComponent.js +1 -2
  58. package/dist/components/RefreshButton/RefreshButton.styles.js +2 -2
  59. package/dist/components/RequestDataBox/RequestDataBox.js +2 -2
  60. package/dist/components/Section/Section.d.ts +32 -0
  61. package/dist/components/Section/Section.js +83 -0
  62. package/dist/components/Section/Section.styles.d.ts +34 -0
  63. package/dist/components/Section/Section.styles.js +143 -0
  64. package/dist/components/Skeleton/Skeleton.d.ts +44 -0
  65. package/dist/components/Skeleton/Skeleton.js +48 -0
  66. package/dist/components/Skeleton/Skeleton.styles.d.ts +14 -0
  67. package/dist/components/Skeleton/Skeleton.styles.js +51 -0
  68. package/dist/components/StokrLoader/StokrLoader.d.ts +21 -0
  69. package/dist/components/StokrLoader/StokrLoader.js +22 -23
  70. package/dist/components/Tabs/Tabs.styles.js +3 -1
  71. package/dist/components/TabsNav/TabsNav.js +1 -1
  72. package/dist/components/TabsNav/TabsNav.styles.js +1 -1
  73. package/dist/components/Text/Text.styles.d.ts +20 -0
  74. package/dist/components/Text/Text.styles.js +2 -2
  75. package/dist/components/TextLink/TextLink.styles.js +1 -2
  76. package/dist/components/Tooltip/Tooltip.d.ts +42 -0
  77. package/dist/components/Tooltip/Tooltip.styles.d.ts +10 -0
  78. package/dist/constants/globalVariables.js +1 -39
  79. package/dist/hooks/useMediaQuery.d.ts +7 -0
  80. package/dist/hooks/useMediaQuery.js +19 -0
  81. package/dist/index.d.ts +299 -0
  82. package/dist/index.js +97 -213
  83. package/dist/styles/colors.d.ts +68 -0
  84. package/dist/styles/colors.js +13 -1
  85. package/dist/styles/elevation.d.ts +13 -0
  86. package/dist/styles/elevation.js +15 -0
  87. package/dist/styles/fonts.js +0 -65
  88. package/dist/styles/global.js +0 -2
  89. package/dist/styles/grid.d.ts +27 -0
  90. package/dist/styles/grid.js +8 -1
  91. package/dist/styles/rwd.d.ts +48 -0
  92. package/dist/styles/rwd.js +33 -17
  93. package/dist/styles/spacing.d.ts +36 -0
  94. package/dist/styles/spacing.js +30 -0
  95. package/dist/styles/theme.d.ts +92 -0
  96. package/dist/styles/theme.js +2 -0
  97. package/dist/styles/typography.d.ts +42 -0
  98. package/dist/styles/typography.js +56 -0
  99. package/dist/utils/capitalize.d.ts +2 -0
  100. package/dist/utils/capitalize.js +4 -0
  101. package/dist/utils/copy-text-to-clipboard.d.ts +10 -0
  102. package/dist/utils/copyToClipboard.d.ts +37 -0
  103. package/dist/utils/copyToClipboard.js +3 -3
  104. package/dist/utils/csv.d.ts +14 -0
  105. package/dist/utils/csv.js +25 -0
  106. package/dist/utils/customHooks.d.ts +20 -0
  107. package/dist/utils/customHooks.js +16 -11
  108. package/dist/utils/fix-decimals.d.ts +14 -0
  109. package/dist/utils/formatAmount.d.ts +109 -0
  110. package/dist/utils/formatAmount.js +170 -0
  111. package/dist/utils/formatCurrencyValue.d.ts +46 -0
  112. package/dist/utils/formatCurrencyValue.js +6 -21
  113. package/dist/utils/formatDate.d.ts +19 -0
  114. package/dist/utils/formatDate.js +44 -0
  115. package/dist/utils/get-short-address.d.ts +13 -0
  116. package/dist/utils/get-short-address.js +9 -2
  117. package/dist/utils/inertProp.d.ts +5 -0
  118. package/dist/utils/inertProp.js +6 -0
  119. package/dist/utils/isUSInvestor.d.ts +4 -0
  120. package/dist/utils/km_ify.d.ts +5 -0
  121. package/dist/utils/km_ify.js +19 -18
  122. package/dist/utils/password-validation.d.ts +16 -0
  123. package/dist/utils/saveAs.d.ts +2 -0
  124. package/dist/utils/saveAs.js +5 -2
  125. package/dist/utils/scrollUtils.d.ts +25 -0
  126. package/dist/utils/scrollUtils.js +13 -10
  127. package/dist/utils/transition.d.ts +45 -0
  128. package/dist/utils/transition.js +0 -28
  129. package/package.json +12 -12
  130. package/dist/components/AccountBalance/AccountBalance.js +0 -35
  131. package/dist/components/AccountBalance/AccountBalance.styles.js +0 -48
  132. package/dist/components/AdminDashboard/Table/Table.js +0 -123
  133. package/dist/components/ButtonContainer/ButtonContainer.styles.js +0 -51
  134. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +0 -34
  135. package/dist/components/CryptoAddressDetails/CryptoAddressDetails.styles.js +0 -125
  136. package/dist/components/DoubleButton/DoubleButton.styles.js +0 -27
  137. package/dist/components/ErrorMessage/ErrorMessage.styles.js +0 -9
  138. package/dist/components/Icon/Icon2.js +0 -12
  139. package/dist/components/Input/InputUsername.js +0 -92
  140. package/dist/components/Input/RangeInput.styles.js +0 -129
  141. package/dist/components/InvestmentStat/InvestmentStat.js +0 -24
  142. package/dist/components/InvestmentStat/InvestmentStat.styles.js +0 -62
  143. package/dist/components/LatestUpdate/LatestUpdate.js +0 -24
  144. package/dist/components/LatestUpdate/LatestUpdate.styles.js +0 -90
  145. package/dist/components/MultiProgressBar/MultiProgressBar.js +0 -28
  146. package/dist/components/MultiProgressBar/MultiProgressBar.styles.js +0 -105
  147. package/dist/components/PageTransition/PageTransition.js +0 -51
  148. package/dist/components/ProfileStat/ProfileStat.js +0 -29
  149. package/dist/components/ProfileStat/ProfileStat.styles.js +0 -90
  150. package/dist/components/SEO/SEO.js +0 -66
  151. package/dist/components/SideLine/SideLine.js +0 -7
  152. package/dist/components/SideLine/SideLine.styles.js +0 -33
  153. package/dist/components/Slider/Slider.js +0 -31
  154. package/dist/components/Slider/Slider.styles.js +0 -120
  155. package/dist/components/StatusBadge/StatusBadge.styles.js +0 -18
  156. package/dist/components/StokrLoader/media.js +0 -23
  157. package/dist/components/SvgIcons/CameraSvg.js +0 -31
  158. package/dist/components/SvgIcons/DocumentBackSvg.js +0 -20
  159. package/dist/components/SvgIcons/DocumentSmallSvg.js +0 -41
  160. package/dist/components/SvgIcons/DocumentSvg.js +0 -39
  161. package/dist/components/SvgIcons/EthSvg.js +0 -28
  162. package/dist/components/SvgIcons/EurSvg.js +0 -27
  163. package/dist/components/SvgIcons/FaceScanIconSvg.js +0 -17
  164. package/dist/components/SvgIcons/FourSvg.js +0 -7
  165. package/dist/components/SvgIcons/Glassess.js +0 -26
  166. package/dist/components/SvgIcons/OneSvg.js +0 -10
  167. package/dist/components/SvgIcons/PassportSvg.js +0 -37
  168. package/dist/components/SvgIcons/SocialInstagram.js +0 -13
  169. package/dist/components/SvgIcons/SocialMedium.js +0 -21
  170. package/dist/components/SvgIcons/SocialReddit.js +0 -21
  171. package/dist/components/SvgIcons/SocialYoutube.js +0 -22
  172. package/dist/components/SvgIcons/ThreeSvg.js +0 -7
  173. package/dist/components/SvgIcons/TwoSidedDocumentSvg.js +0 -48
  174. package/dist/components/SvgIcons/TwoSvg.js +0 -10
  175. package/dist/components/SvgIcons/UpdateDefaultSvg.js +0 -12
  176. package/dist/components/SvgIcons/UpdateHardSvg.js +0 -10
  177. package/dist/components/SvgIcons/UpdateSoftSvg.js +0 -11
  178. package/dist/components/SvgIcons/UploadSvg.js +0 -12
  179. package/dist/components/TeamOverview/TeamOverview.js +0 -79
  180. package/dist/components/TeamOverview/TeamOverview.styles.js +0 -167
  181. package/dist/components/TransactionDetails/TransactionDetails.js +0 -27
  182. package/dist/components/TransactionDetails/TransactionDetails.styles.js +0 -38
  183. package/dist/components/TransactionInfo/TransactionInfo.js +0 -41
  184. package/dist/components/TransactionInfo/TransactionInfo.styles.js +0 -75
  185. package/dist/components/icons/Arrow.js +0 -38
  186. package/dist/components/icons/Check.js +0 -16
  187. package/dist/components/icons/Facebook.js +0 -10
  188. package/dist/components/icons/Info.js +0 -27
  189. package/dist/components/icons/Instagram.js +0 -10
  190. package/dist/components/icons/LinkIcon.js +0 -49
  191. package/dist/components/icons/LinkedIn.js +0 -13
  192. package/dist/components/icons/Medium.js +0 -13
  193. package/dist/components/icons/Reddit.js +0 -16
  194. package/dist/components/icons/Share.js +0 -31
  195. package/dist/components/icons/Telegram.js +0 -13
  196. package/dist/components/icons/Twitter.js +0 -10
  197. package/dist/components/icons/X.js +0 -10
  198. package/dist/components/icons/Youtube.js +0 -10
  199. package/dist/components/icons/index.js +0 -32
  200. package/dist/components/landing-page/List.js +0 -51
  201. package/dist/components/landing-page/PageContent.js +0 -65
  202. package/dist/components/landing-page/PageText.js +0 -171
  203. package/dist/components/landing-page/PageTitle.js +0 -259
  204. package/dist/constants/style.js +0 -48
  205. package/dist/favicon.ico +0 -0
  206. package/dist/logo192.png +0 -0
  207. package/dist/logo512.png +0 -0
  208. package/dist/manifest.json +0 -25
  209. package/dist/robots.txt +0 -3
  210. package/dist/static/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
  211. package/dist/static/fonts/OpenSans/OpenSans-Bold.ttf.js +0 -4
  212. package/dist/static/fonts/OpenSans/OpenSans-Bold.woff +0 -0
  213. package/dist/static/fonts/OpenSans/OpenSans-Bold.woff.js +0 -4
  214. package/dist/static/fonts/OpenSans/OpenSans-Bold.woff2 +0 -0
  215. package/dist/static/fonts/OpenSans/OpenSans-Bold.woff2.js +0 -4
  216. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.ttf +0 -0
  217. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.ttf.js +0 -4
  218. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff +0 -0
  219. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff.js +0 -4
  220. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff2 +0 -0
  221. package/dist/static/fonts/OpenSans/OpenSans-ExtraBold.woff2.js +0 -4
  222. package/dist/static/fonts/OpenSans/OpenSans-Light.ttf +0 -0
  223. package/dist/static/fonts/OpenSans/OpenSans-Light.ttf.js +0 -4
  224. package/dist/static/fonts/OpenSans/OpenSans-Light.woff +0 -0
  225. package/dist/static/fonts/OpenSans/OpenSans-Light.woff.js +0 -4
  226. package/dist/static/fonts/OpenSans/OpenSans-Light.woff2 +0 -0
  227. package/dist/static/fonts/OpenSans/OpenSans-Light.woff2.js +0 -4
  228. package/dist/static/fonts/OpenSans/OpenSans-Regular.ttf +0 -0
  229. package/dist/static/fonts/OpenSans/OpenSans-Regular.ttf.js +0 -4
  230. package/dist/static/fonts/OpenSans/OpenSans-Regular.woff +0 -0
  231. package/dist/static/fonts/OpenSans/OpenSans-Regular.woff.js +0 -4
  232. package/dist/static/fonts/OpenSans/OpenSans-Regular.woff2 +0 -0
  233. package/dist/static/fonts/OpenSans/OpenSans-Regular.woff2.js +0 -4
  234. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.ttf +0 -0
  235. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.ttf.js +0 -4
  236. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff +0 -0
  237. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff.js +0 -4
  238. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff2 +0 -0
  239. package/dist/static/fonts/OpenSans/OpenSans-SemiBold.woff2.js +0 -4
  240. package/dist/static/images/avatar-placeholder.png.js +0 -4
  241. package/dist/styles/reactTippy.js +0 -5
  242. package/dist/styles/semanticUi.js +0 -84
  243. package/dist/utils/check-sale-time-left.js +0 -85
  244. package/dist/utils/moment.js +0 -26
@@ -0,0 +1,68 @@
1
+ /**
2
+ * The colour palette. Values match Figma 00-Foundations → Color Primitives.
3
+ */
4
+ export declare const colors: {
5
+ readonly black: "#202020";
6
+ readonly grey: "#f0f0f0";
7
+ readonly lightGrey: "#e1e1e1";
8
+ readonly orangishRed: "#ee220d";
9
+ readonly white: "#ffffff";
10
+ readonly lightPeach: "#fbd2d1";
11
+ readonly salmon: "#f57c76";
12
+ readonly paleSalmon: "#f8a7a4";
13
+ readonly pastelRed: "#f24f45";
14
+ readonly reddishBrown: "#8e150a";
15
+ readonly reddyBrown: "#5e0f08";
16
+ readonly rustyRed: "#be1b09";
17
+ readonly lightPeriwinkle: "#ceddf5";
18
+ readonly carolinaBlue: "#9cb9eb";
19
+ readonly lighterGreen: "#84fb6f";
20
+ readonly blue: "#0050ca";
21
+ readonly blueDark: "#004BB7";
22
+ readonly softBlue: "#6a97e0";
23
+ readonly darkBrown: "#300606";
24
+ readonly azul: "#3873d5";
25
+ readonly darkishBlue: "#0240a2";
26
+ readonly marineBlue: "#032f78";
27
+ readonly navy: "#021f51";
28
+ readonly navy2: "#021128";
29
+ readonly offWhite: "#e6fee2";
30
+ readonly veryLightGreen: "#cefec6";
31
+ readonly lightPastelGreen: "#b5fca9";
32
+ readonly easterGreen: "#9bfc8c";
33
+ readonly freshGreen: "#69c858";
34
+ readonly fernGreen: "#4d9741";
35
+ readonly pine: "#34652c";
36
+ readonly pine2: "#1a3315";
37
+ readonly black70: "rgba(32, 32, 32, 0.7)";
38
+ readonly yellow: "#f8e71c";
39
+ readonly yellowLight: "#fffedf";
40
+ readonly progressGreen: "#79ca65";
41
+ readonly progressAccentStart: "#69BD53";
42
+ readonly progressAccentStop: "#A9EF9C";
43
+ readonly progressRedStart: "#EE220D";
44
+ readonly progressRedStop: "#F57C76";
45
+ readonly progressBlueStart: "#0240A2";
46
+ readonly progressBlueStop: "#66A3FE";
47
+ readonly grey2: "#9b9b9b";
48
+ readonly grey3: "#f8f8f8";
49
+ readonly grey4: "#DCDCDC";
50
+ readonly grey5: "#6F6F6F";
51
+ readonly midRed: "#e3210d";
52
+ readonly warningYellow: "#facc33";
53
+ readonly darkRed: "#D2200D";
54
+ readonly warningOrange: "#EB8003";
55
+ readonly futureBlack: "#021128";
56
+ readonly grayBlue: "#56606F";
57
+ readonly pureBlack: "#000000";
58
+ readonly successSurface: "#f0fdf4";
59
+ readonly warningSurface: "#fffbeb";
60
+ readonly errorSurface: "#fef2f2";
61
+ readonly infoSurface: "#eff6ff";
62
+ readonly coolGrey: "#f7f7fa";
63
+ readonly cardBorder: "#e0e0e0";
64
+ readonly iconTileBorder: "#e0e0e5";
65
+ readonly warningBadge: "#ffeeda";
66
+ };
67
+ export type ColorName = keyof typeof colors;
68
+ export default colors;
@@ -44,12 +44,24 @@ const colors = {
44
44
  grey2: "#9b9b9b",
45
45
  grey3: "#f8f8f8",
46
46
  grey4: "#DCDCDC",
47
+ grey5: "#6F6F6F",
47
48
  midRed: "#e3210d",
48
49
  warningYellow: "#facc33",
49
50
  darkRed: "#D2200D",
50
51
  warningOrange: "#EB8003",
51
52
  futureBlack: "#021128",
52
- grayBlue: "#56606F"
53
+ grayBlue: "#56606F",
54
+ pureBlack: "#000000",
55
+ /* Status backgrounds (Figma status/*-bg) */
56
+ successSurface: "#f0fdf4",
57
+ warningSurface: "#fffbeb",
58
+ errorSurface: "#fef2f2",
59
+ infoSurface: "#eff6ff",
60
+ /* Used on the STO page, not in Figma Foundations yet */
61
+ coolGrey: "#f7f7fa",
62
+ cardBorder: "#e0e0e0",
63
+ iconTileBorder: "#e0e0e5",
64
+ warningBadge: "#ffeeda"
53
65
  };
54
66
  export {
55
67
  colors,
@@ -0,0 +1,13 @@
1
+ /** Figma `elevation/*`: low-opacity, short-offset shadows from cards at rest (xs) to modals (xl). */
2
+ export declare const elevation: {
3
+ /** Cards at rest on page backgrounds. */
4
+ readonly xs: "0 1px 2px rgba(0, 0, 0, 0.05)";
5
+ /** Card hover; interactive surfaces at rest. */
6
+ readonly sm: "0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04)";
7
+ /** Dropdowns, popovers, inline menus. */
8
+ readonly md: "0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04)";
9
+ /** Large menus, sheets, navigation drawers. */
10
+ readonly lg: "0 8px 16px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06)";
11
+ /** Modals, dialogs, toasts. */
12
+ readonly xl: "0 16px 32px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08)";
13
+ };
@@ -0,0 +1,15 @@
1
+ const elevation = {
2
+ /** Cards at rest on page backgrounds. */
3
+ xs: "0 1px 2px rgba(0, 0, 0, 0.05)",
4
+ /** Card hover; interactive surfaces at rest. */
5
+ sm: "0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04)",
6
+ /** Dropdowns, popovers, inline menus. */
7
+ md: "0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04)",
8
+ /** Large menus, sheets, navigation drawers. */
9
+ lg: "0 8px 16px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06)",
10
+ /** Modals, dialogs, toasts. */
11
+ xl: "0 16px 32px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08)"
12
+ };
13
+ export {
14
+ elevation
15
+ };
@@ -1,19 +1,4 @@
1
1
  import { css } from "styled-components";
2
- import OpenSansRegularWOFF2 from "../static/fonts/OpenSans/OpenSans-Regular.woff2.js";
3
- import OpenSansRegularWOFF from "../static/fonts/OpenSans/OpenSans-Regular.woff.js";
4
- import OpenSansRegularTTF from "../static/fonts/OpenSans/OpenSans-Regular.ttf.js";
5
- import OpenSansSemiBoldWOFF2 from "../static/fonts/OpenSans/OpenSans-SemiBold.woff2.js";
6
- import OpenSansSemiBoldWOFF from "../static/fonts/OpenSans/OpenSans-SemiBold.woff.js";
7
- import OpenSansSemiBoldTTF from "../static/fonts/OpenSans/OpenSans-SemiBold.ttf.js";
8
- import OpenSansBoldWOFF2 from "../static/fonts/OpenSans/OpenSans-Bold.woff2.js";
9
- import OpenSansBoldWOFF from "../static/fonts/OpenSans/OpenSans-Bold.woff.js";
10
- import OpenSansBoldTTF from "../static/fonts/OpenSans/OpenSans-Bold.ttf.js";
11
- import OpenSansLightWOFF2 from "../static/fonts/OpenSans/OpenSans-Light.woff2.js";
12
- import OpenSansLightWOFF from "../static/fonts/OpenSans/OpenSans-Light.woff.js";
13
- import OpenSansLightTTF from "../static/fonts/OpenSans/OpenSans-Light.ttf.js";
14
- import OpenSansExtraBoldWOFF2 from "../static/fonts/OpenSans/OpenSans-ExtraBold.woff2.js";
15
- import OpenSansExtraBoldWOFF from "../static/fonts/OpenSans/OpenSans-ExtraBold.woff.js";
16
- import OpenSansExtraBoldTTF from "../static/fonts/OpenSans/OpenSans-ExtraBold.ttf.js";
17
2
  import IoniconsWOFF2 from "../static/fonts/Ionicons/Ionicons.woff2.js";
18
3
  import IoniconsWOFF from "../static/fonts/Ionicons/Ionicons.woff.js";
19
4
  import IoniconsTTF from "../static/fonts/Ionicons/Ionicons.ttf.js";
@@ -22,56 +7,6 @@ import IcomoonWOFF from "../static/fonts/icomoon/icomoon.woff.js";
22
7
  import IcomoonTTF from "../static/fonts/icomoon/icomoon.ttf.js";
23
8
  import IcomoonSVG from "../static/fonts/icomoon/icomoon.svg.js";
24
9
  const fontFaces = css`
25
- @font-face {
26
- font-family: 'Open Sans';
27
- src:
28
- url(${OpenSansRegularWOFF2}) format('woff2'),
29
- url(${OpenSansRegularWOFF}) format('woff'),
30
- url(${OpenSansRegularTTF}) format('truetype');
31
- font-weight: normal;
32
- font-style: normal;
33
- }
34
-
35
- @font-face {
36
- font-family: 'Open Sans';
37
- src:
38
- url(${OpenSansSemiBoldWOFF2}) format('woff2'),
39
- url(${OpenSansSemiBoldWOFF}) format('woff'),
40
- url(${OpenSansSemiBoldTTF}) format('truetype');
41
- font-weight: 600;
42
- font-style: normal;
43
- }
44
-
45
- @font-face {
46
- font-family: 'Open Sans';
47
- src:
48
- url(${OpenSansBoldWOFF2}) format('woff2'),
49
- url(${OpenSansBoldWOFF}) format('woff'),
50
- url(${OpenSansBoldTTF}) format('truetype');
51
- font-weight: bold;
52
- font-style: normal;
53
- }
54
-
55
- @font-face {
56
- font-family: 'Open Sans';
57
- src:
58
- url(${OpenSansLightWOFF2}) format('woff2'),
59
- url(${OpenSansLightWOFF}) format('woff'),
60
- url(${OpenSansLightTTF}) format('truetype');
61
- font-weight: 300;
62
- font-style: normal;
63
- }
64
-
65
- @font-face {
66
- font-family: 'Open Sans';
67
- src:
68
- url(${OpenSansExtraBoldWOFF2}) format('woff2'),
69
- url(${OpenSansExtraBoldWOFF}) format('woff'),
70
- url(${OpenSansExtraBoldTTF}) format('truetype');
71
- font-weight: 800;
72
- font-style: normal;
73
- }
74
-
75
10
  @font-face {
76
11
  font-family: 'Ionicons';
77
12
  src:
@@ -2,7 +2,6 @@ import { createGlobalStyle } from "styled-components";
2
2
  import "react-day-picker/style.css";
3
3
  import { colors } from "./colors.js";
4
4
  import fontFaces from "./fonts.js";
5
- import semanticUiStyle from "./semanticUi.js";
6
5
  import ioniconsCss from "../static/fonts/Ionicons/ionicons.min.css.js";
7
6
  const GlobalStyle = createGlobalStyle`
8
7
  ${fontFaces}
@@ -63,7 +62,6 @@ const GlobalStyle = createGlobalStyle`
63
62
  background-color: ${colors.blue};
64
63
  }
65
64
 
66
- ${semanticUiStyle}
67
65
  `;
68
66
  export {
69
67
  GlobalStyle
@@ -0,0 +1,27 @@
1
+ /** Width of `itemUnits` out of a `gridUnits` grid, as a percentage rounded down to an even hundredth. */
2
+ export declare const grid: (itemUnits: number, gridUnits?: number) => string;
3
+ /** Figma layout grid (px). `mobile` applies below tablet; content stops at `maxWidth` on wide screens. */
4
+ export declare const layoutGrid: {
5
+ readonly mobile: {
6
+ readonly columns: 4;
7
+ readonly gutter: 16;
8
+ readonly margin: 16;
9
+ };
10
+ readonly tablet: {
11
+ readonly columns: 8;
12
+ readonly gutter: 24;
13
+ readonly margin: 24;
14
+ };
15
+ readonly desktop: {
16
+ readonly columns: 12;
17
+ readonly gutter: 24;
18
+ readonly margin: 32;
19
+ };
20
+ readonly desktopXl: {
21
+ readonly columns: 12;
22
+ readonly gutter: 32;
23
+ readonly margin: 64;
24
+ readonly maxWidth: 1440;
25
+ };
26
+ };
27
+ export default grid;
@@ -5,7 +5,14 @@ const grid = (itemUnits, gridUnits = 16) => {
5
5
  }
6
6
  return `${tmp / 100}%`;
7
7
  };
8
+ const layoutGrid = {
9
+ mobile: { columns: 4, gutter: 16, margin: 16 },
10
+ tablet: { columns: 8, gutter: 24, margin: 24 },
11
+ desktop: { columns: 12, gutter: 24, margin: 32 },
12
+ desktopXl: { columns: 12, gutter: 32, margin: 64, maxWidth: 1440 }
13
+ };
8
14
  export {
9
15
  grid as default,
10
- grid
16
+ grid,
17
+ layoutGrid
11
18
  };
@@ -0,0 +1,48 @@
1
+ import { CSSObject, Interpolation, RuleSet } from 'styled-components';
2
+ export declare const sizes: {
3
+ readonly Small: "320px";
4
+ readonly Mobile: "450px";
5
+ readonly Medium: "768px";
6
+ readonly MLarge: "992px";
7
+ readonly Large: "1024px";
8
+ readonly XLarge: "1440px";
9
+ readonly XXLarge: "2560px";
10
+ };
11
+ export type Breakpoint = keyof typeof sizes;
12
+ /** `css` tagged template that wraps its rules in a media query: rwd.MLarge`display: none;` */
13
+ type MediaTemplate = <P extends object = any>(first: TemplateStringsArray | CSSObject, ...interpolations: Interpolation<P>[]) => RuleSet<P>;
14
+ /** Rules from the breakpoint up (min-width). */
15
+ export declare const rwd: Record<"Small" | "Mobile" | "Medium" | "MLarge" | "Large" | "XLarge" | "XXLarge", MediaTemplate>;
16
+ /** Rules up to the breakpoint (max-width). */
17
+ export declare const rwdMax: Record<"Small" | "Mobile" | "Medium" | "MLarge" | "Large" | "XLarge" | "XXLarge", MediaTemplate>;
18
+ /** Media query string for `matchMedia`, e.g. `(min-width: 992px)`. */
19
+ export declare const getMedia: (breakpoint: Breakpoint) => string;
20
+ /** Media query strings, for `matchMedia` / `useMediaQuery`. */
21
+ export declare const mediaQuery: {
22
+ readonly mobileUp: string;
23
+ readonly tabletUp: string;
24
+ /** Below this (992px) is the mobile layout. */
25
+ readonly desktopUp: string;
26
+ readonly desktopXlUp: string;
27
+ };
28
+ /** `@media` rules for styled-components. `belowX` is the exact complement of `xUp`. */
29
+ export declare const media: {
30
+ readonly mobileUp: `@media ${string}`;
31
+ readonly tabletUp: `@media ${string}`;
32
+ readonly desktopUp: `@media ${string}`;
33
+ readonly desktopXlUp: `@media ${string}`;
34
+ readonly belowMobile: `@media not all and ${string}`;
35
+ readonly belowTablet: `@media not all and ${string}`;
36
+ readonly belowDesktop: `@media not all and ${string}`;
37
+ readonly belowDesktopXl: `@media not all and ${string}`;
38
+ };
39
+ interface DisplayOnBreakpointProps {
40
+ breakpoint: Breakpoint;
41
+ /** Shown below `breakpoint`, hidden from it up. */
42
+ down?: boolean;
43
+ /** Hidden below `breakpoint`, shown from it up. */
44
+ up?: boolean;
45
+ fullscreen?: boolean;
46
+ }
47
+ export declare const DisplayOnBreakpoint: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, DisplayOnBreakpointProps>> & string;
48
+ export default rwd;
@@ -8,25 +8,39 @@ const sizes = {
8
8
  XLarge: "1440px",
9
9
  XXLarge: "2560px"
10
10
  };
11
- const rwd = Object.keys(sizes).reduce((acc, label) => {
12
- acc[label] = (...args) => css`
13
- @media (min-width: ${sizes[label]}) {
14
- ${css(...args)}
15
- }
16
- `;
17
- return acc;
18
- }, {});
19
- const rwdMax = Object.keys(sizes).reduce((acc, label) => {
20
- acc[label] = (...args) => css`
21
- @media (max-width: ${sizes[label]}) {
22
- ${css(...args)}
23
- }
24
- `;
25
- return acc;
26
- }, {});
11
+ const sizeNames = Object.keys(sizes);
12
+ const mediaTemplates = (feature) => Object.fromEntries(
13
+ sizeNames.map((label) => [
14
+ label,
15
+ ((first, ...interpolations) => css`
16
+ @media (${feature}: ${sizes[label]}) {
17
+ ${css(first, ...interpolations)}
18
+ }
19
+ `)
20
+ ])
21
+ );
22
+ const rwd = mediaTemplates("min-width");
23
+ const rwdMax = mediaTemplates("max-width");
27
24
  const getMedia = (breakpoint) => `(min-width: ${sizes[breakpoint]})`;
25
+ const mediaQuery = {
26
+ mobileUp: getMedia("Mobile"),
27
+ tabletUp: getMedia("Medium"),
28
+ /** Below this (992px) is the mobile layout. */
29
+ desktopUp: getMedia("MLarge"),
30
+ desktopXlUp: getMedia("XLarge")
31
+ };
32
+ const media = {
33
+ mobileUp: `@media ${mediaQuery.mobileUp}`,
34
+ tabletUp: `@media ${mediaQuery.tabletUp}`,
35
+ desktopUp: `@media ${mediaQuery.desktopUp}`,
36
+ desktopXlUp: `@media ${mediaQuery.desktopXlUp}`,
37
+ belowMobile: `@media not all and ${mediaQuery.mobileUp}`,
38
+ belowTablet: `@media not all and ${mediaQuery.tabletUp}`,
39
+ belowDesktop: `@media not all and ${mediaQuery.desktopUp}`,
40
+ belowDesktopXl: `@media not all and ${mediaQuery.desktopXlUp}`
41
+ };
28
42
  const DisplayOnBreakpoint = styled.div.withConfig({
29
- shouldForwardProp: (props) => !["fullscreen", "down", "up"].includes(props)
43
+ shouldForwardProp: (prop) => !["fullscreen", "down", "up", "breakpoint"].includes(prop)
30
44
  })`
31
45
  ${(props) => props.fullscreen && css`
32
46
  height: 100%;
@@ -52,6 +66,8 @@ export {
52
66
  DisplayOnBreakpoint,
53
67
  rwd as default,
54
68
  getMedia,
69
+ media,
70
+ mediaQuery,
55
71
  rwd,
56
72
  rwdMax,
57
73
  sizes
@@ -0,0 +1,36 @@
1
+ /** Fixed layout heights in px. */
2
+ export declare const spacing: {
3
+ readonly headerHeight: 96;
4
+ readonly footerHeight: 70;
5
+ };
6
+ /** Figma `space/N` (4px base: space/4 = 16px). `0.5` is Figma's `space/0-5`. */
7
+ export declare const space: {
8
+ readonly 0: "0px";
9
+ readonly 0.5: "2px";
10
+ readonly 1: "4px";
11
+ readonly 2: "8px";
12
+ readonly 3: "12px";
13
+ readonly 4: "16px";
14
+ readonly 5: "20px";
15
+ readonly 6: "24px";
16
+ readonly 8: "32px";
17
+ readonly 10: "40px";
18
+ readonly 12: "48px";
19
+ readonly 16: "64px";
20
+ readonly 20: "80px";
21
+ readonly 24: "96px";
22
+ readonly 32: "128px";
23
+ };
24
+ /** Figma `radius/*`. Most components use sm or md; lg+ for cards and modals; full only for pills and avatars. */
25
+ export declare const radius: {
26
+ readonly none: "0px";
27
+ readonly xs: "2px";
28
+ readonly sm: "4px";
29
+ readonly md: "6px";
30
+ readonly lg: "8px";
31
+ readonly xl: "12px";
32
+ readonly '2xl': "16px";
33
+ readonly '3xl': "24px";
34
+ readonly full: "9999px";
35
+ };
36
+ export default spacing;
@@ -2,7 +2,37 @@ const spacing = {
2
2
  headerHeight: 96,
3
3
  footerHeight: 70
4
4
  };
5
+ const space = {
6
+ 0: "0px",
7
+ 0.5: "2px",
8
+ 1: "4px",
9
+ 2: "8px",
10
+ 3: "12px",
11
+ 4: "16px",
12
+ 5: "20px",
13
+ 6: "24px",
14
+ 8: "32px",
15
+ 10: "40px",
16
+ 12: "48px",
17
+ 16: "64px",
18
+ 20: "80px",
19
+ 24: "96px",
20
+ 32: "128px"
21
+ };
22
+ const radius = {
23
+ none: "0px",
24
+ xs: "2px",
25
+ sm: "4px",
26
+ md: "6px",
27
+ lg: "8px",
28
+ xl: "12px",
29
+ "2xl": "16px",
30
+ "3xl": "24px",
31
+ full: "9999px"
32
+ };
5
33
  export {
6
34
  spacing as default,
35
+ radius,
36
+ space,
7
37
  spacing
8
38
  };
@@ -0,0 +1,92 @@
1
+ export declare const theme: {
2
+ readonly black: "#202020";
3
+ readonly grey: "#f0f0f0";
4
+ readonly lightGrey: "#e1e1e1";
5
+ readonly orangishRed: "#ee220d";
6
+ readonly white: "#ffffff";
7
+ readonly lightPeach: "#fbd2d1";
8
+ readonly salmon: "#f57c76";
9
+ readonly paleSalmon: "#f8a7a4";
10
+ readonly pastelRed: "#f24f45";
11
+ readonly reddishBrown: "#8e150a";
12
+ readonly reddyBrown: "#5e0f08";
13
+ readonly rustyRed: "#be1b09";
14
+ readonly lightPeriwinkle: "#ceddf5";
15
+ readonly carolinaBlue: "#9cb9eb";
16
+ readonly lighterGreen: "#84fb6f";
17
+ readonly blue: "#0050ca";
18
+ readonly blueDark: "#004BB7";
19
+ readonly softBlue: "#6a97e0";
20
+ readonly darkBrown: "#300606";
21
+ readonly azul: "#3873d5";
22
+ readonly darkishBlue: "#0240a2";
23
+ readonly marineBlue: "#032f78";
24
+ readonly navy: "#021f51";
25
+ readonly navy2: "#021128";
26
+ readonly offWhite: "#e6fee2";
27
+ readonly veryLightGreen: "#cefec6";
28
+ readonly lightPastelGreen: "#b5fca9";
29
+ readonly easterGreen: "#9bfc8c";
30
+ readonly freshGreen: "#69c858";
31
+ readonly fernGreen: "#4d9741";
32
+ readonly pine: "#34652c";
33
+ readonly pine2: "#1a3315";
34
+ readonly black70: "rgba(32, 32, 32, 0.7)";
35
+ readonly yellow: "#f8e71c";
36
+ readonly yellowLight: "#fffedf";
37
+ readonly progressGreen: "#79ca65";
38
+ readonly progressAccentStart: "#69BD53";
39
+ readonly progressAccentStop: "#A9EF9C";
40
+ readonly progressRedStart: "#EE220D";
41
+ readonly progressRedStop: "#F57C76";
42
+ readonly progressBlueStart: "#0240A2";
43
+ readonly progressBlueStop: "#66A3FE";
44
+ readonly grey2: "#9b9b9b";
45
+ readonly grey3: "#f8f8f8";
46
+ readonly grey4: "#DCDCDC";
47
+ readonly grey5: "#6F6F6F";
48
+ readonly midRed: "#e3210d";
49
+ readonly warningYellow: "#facc33";
50
+ readonly darkRed: "#D2200D";
51
+ readonly warningOrange: "#EB8003";
52
+ readonly futureBlack: "#021128";
53
+ readonly grayBlue: "#56606F";
54
+ readonly pureBlack: "#000000";
55
+ readonly successSurface: "#f0fdf4";
56
+ readonly warningSurface: "#fffbeb";
57
+ readonly errorSurface: "#fef2f2";
58
+ readonly infoSurface: "#eff6ff";
59
+ readonly coolGrey: "#f7f7fa";
60
+ readonly cardBorder: "#e0e0e0";
61
+ readonly iconTileBorder: "#e0e0e5";
62
+ readonly warningBadge: "#ffeeda";
63
+ readonly cText: "#202020";
64
+ readonly cWhite: "#ffffff";
65
+ readonly cBlack: "#202020";
66
+ readonly cPrimary: "#0050ca";
67
+ readonly cPrimaryDark: "#004BB7";
68
+ readonly cPrimaryLight: "#9cb9eb";
69
+ readonly cWarning: "#ee220d";
70
+ readonly cWarningMid: "#e3210d";
71
+ readonly cWarningDark: "#be1b09";
72
+ readonly cGrey: "#f0f0f0";
73
+ readonly cLightGrey: "#e1e1e1";
74
+ readonly cGrey2: "#9b9b9b";
75
+ readonly cGrey3: "#f8f8f8";
76
+ readonly cGrey4: "#DCDCDC";
77
+ readonly cGrey5: "#6F6F6F";
78
+ readonly cProgressDone: "#79ca65";
79
+ readonly cYellow: "#f8e71c";
80
+ readonly cYellowLight: "#fffedf";
81
+ readonly cYellowWarning: "#facc33";
82
+ readonly cLighterGreen: "#84fb6f";
83
+ readonly cSuccess: "#69c858";
84
+ readonly cDarkGreen: "#34652c";
85
+ readonly cProgressAccentStart: "#69BD53";
86
+ readonly cProgressAccentStop: "#A9EF9C";
87
+ readonly cProgressRedStart: "#EE220D";
88
+ readonly cProgressRedStop: "#F57C76";
89
+ readonly cProgressBlueStart: "#0240A2";
90
+ readonly cProgressBlueStop: "#66A3FE";
91
+ };
92
+ export default theme;
@@ -13,6 +13,8 @@ const theme = {
13
13
  cLightGrey: colors.lightGrey,
14
14
  cGrey2: colors.grey2,
15
15
  cGrey3: colors.grey3,
16
+ cGrey4: colors.grey4,
17
+ cGrey5: colors.grey5,
16
18
  cProgressDone: colors.progressGreen,
17
19
  cYellow: colors.yellow,
18
20
  cYellowLight: colors.yellowLight,
@@ -0,0 +1,42 @@
1
+ /** Figma `font-weight/*` (Open Sans). */
2
+ export declare const fontWeight: {
3
+ readonly light: 300;
4
+ readonly regular: 400;
5
+ readonly semibold: 600;
6
+ readonly bold: 700;
7
+ readonly extrabold: 800;
8
+ };
9
+ /**
10
+ * Figma 00-Foundations text styles, as CSS for styled-components (Open Sans is loaded globally, so no
11
+ * font-family). Light is the default weight; uppercase only for titles, H1/H3, labels and CTAs.
12
+ */
13
+ export declare const typography: {
14
+ readonly titleXl: string;
15
+ readonly titleLg: string;
16
+ readonly h1: string;
17
+ /** Same size as h1 at Light, for pages that don't need to shout. */
18
+ readonly h2: string;
19
+ readonly h3: string;
20
+ /** Default card title. */
21
+ readonly h4: string;
22
+ readonly bodyLg: string;
23
+ readonly bodyLgCallout: string;
24
+ readonly bodyMd: string;
25
+ readonly bodyMdCallout: string;
26
+ readonly formInput: string;
27
+ readonly formInputMain: string;
28
+ readonly labelRunningHeader: string;
29
+ readonly labelCta: string;
30
+ readonly tooltip: string;
31
+ readonly caption1: string;
32
+ readonly caption2: string;
33
+ readonly caption3: string;
34
+ readonly footnote: string;
35
+ /** Size and underline only: always pair with `colors.blue`. */
36
+ readonly linkDefault: string;
37
+ /** Section and card titles: 20px line height below desktop. */
38
+ readonly sectionTitle: string;
39
+ readonly tabLabel: string;
40
+ /** body/md at Regular (400). */
41
+ readonly bodyMdRegular: string;
42
+ };
@@ -0,0 +1,56 @@
1
+ import { media } from "./rwd.js";
2
+ const text = ({ size, weight, lineHeight, letterSpacing, uppercase }, extra = "") => `
3
+ font-size: ${size}px;
4
+ font-weight: ${weight};
5
+ line-height: ${lineHeight}px;
6
+ letter-spacing: ${letterSpacing}px;
7
+ ${uppercase ? "text-transform: uppercase;" : ""}
8
+ ${extra}
9
+ `;
10
+ const belowDesktop = (rules) => `
11
+ ${media.belowDesktop} {
12
+ ${rules}
13
+ }
14
+ `;
15
+ const fontWeight = {
16
+ light: 300,
17
+ regular: 400,
18
+ semibold: 600,
19
+ bold: 700,
20
+ extrabold: 800
21
+ };
22
+ const typography = {
23
+ titleXl: text({ size: 66, weight: 800, lineHeight: 64, letterSpacing: 3, uppercase: true }),
24
+ titleLg: text({ size: 48, weight: 800, lineHeight: 55, letterSpacing: 1.8, uppercase: true }),
25
+ h1: text({ size: 34, weight: 800, lineHeight: 40, letterSpacing: 1.5, uppercase: true }),
26
+ /** Same size as h1 at Light, for pages that don't need to shout. */
27
+ h2: text({ size: 34, weight: 300, lineHeight: 40, letterSpacing: 1.5 }),
28
+ h3: text({ size: 22, weight: 800, lineHeight: 28, letterSpacing: 0.8, uppercase: true }),
29
+ /** Default card title. */
30
+ h4: text({ size: 22, weight: 300, lineHeight: 28, letterSpacing: 0.8 }),
31
+ bodyLg: text({ size: 16, weight: 300, lineHeight: 24, letterSpacing: 0.6 }),
32
+ bodyLgCallout: text({ size: 16, weight: 600, lineHeight: 24, letterSpacing: 0.6 }),
33
+ bodyMd: text({ size: 14, weight: 300, lineHeight: 20, letterSpacing: 0.5 }),
34
+ bodyMdCallout: text({ size: 14, weight: 600, lineHeight: 20, letterSpacing: 0.5 }),
35
+ formInput: text({ size: 12, weight: 400, lineHeight: 18, letterSpacing: 0.6 }),
36
+ formInputMain: text({ size: 12, weight: 600, lineHeight: 18, letterSpacing: 0.6 }),
37
+ labelRunningHeader: text({ size: 11, weight: 400, lineHeight: 20, letterSpacing: 2, uppercase: true }),
38
+ labelCta: text({ size: 11, weight: 700, lineHeight: 20, letterSpacing: 2, uppercase: true }),
39
+ tooltip: text({ size: 11, weight: 300, lineHeight: 16, letterSpacing: 0.4 }),
40
+ caption1: text({ size: 9, weight: 400, lineHeight: 16, letterSpacing: 2 }),
41
+ caption2: text({ size: 9, weight: 400, lineHeight: 16, letterSpacing: 0.4 }),
42
+ caption3: text({ size: 9, weight: 400, lineHeight: 16, letterSpacing: 0.4 }, "font-style: italic;"),
43
+ footnote: text({ size: 9, weight: 300, lineHeight: 16, letterSpacing: 0.4 }),
44
+ /** Size and underline only: always pair with `colors.blue`. */
45
+ linkDefault: text({ size: 14, weight: 300, lineHeight: 20, letterSpacing: 0.5 }, "text-decoration: underline;"),
46
+ /* 01-Website compositions (STO page), not Foundations styles yet. */
47
+ /** Section and card titles: 20px line height below desktop. */
48
+ sectionTitle: text({ size: 16, weight: 600, lineHeight: 24, letterSpacing: 0.4 }, belowDesktop("line-height: 20px;")),
49
+ tabLabel: text({ size: 16, weight: 600, lineHeight: 20, letterSpacing: 0.4 }),
50
+ /** body/md at Regular (400). */
51
+ bodyMdRegular: text({ size: 14, weight: 400, lineHeight: 20, letterSpacing: 0.5 })
52
+ };
53
+ export {
54
+ fontWeight,
55
+ typography
56
+ };
@@ -0,0 +1,2 @@
1
+ /** Uppercases the first character and leaves the rest as is: 'pending payment' → 'Pending payment'. */
2
+ export declare const capitalize: (text: string | null | undefined) => string;
@@ -0,0 +1,4 @@
1
+ const capitalize = (text) => text ? text.charAt(0).toUpperCase() + text.slice(1) : "";
2
+ export {
3
+ capitalize
4
+ };