@guardian/stand 0.0.40 → 0.0.41

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 (856) hide show
  1. package/README.md +1 -1
  2. package/dist/AlertBanner.cjs +5 -9
  3. package/dist/AlertBanner.d.cts +5 -0
  4. package/dist/AlertBanner.d.ts +5 -0
  5. package/dist/AlertBanner.js +3 -2
  6. package/dist/Avatar.cjs +5 -9
  7. package/dist/Avatar.d.cts +5 -0
  8. package/dist/Avatar.d.ts +5 -0
  9. package/dist/Avatar.js +3 -2
  10. package/dist/AvatarButton.cjs +3 -7
  11. package/dist/AvatarButton.d.cts +4 -0
  12. package/dist/AvatarButton.d.ts +4 -0
  13. package/dist/AvatarButton.js +2 -1
  14. package/dist/AvatarLink.cjs +3 -7
  15. package/dist/AvatarLink.d.cts +4 -0
  16. package/dist/AvatarLink.d.ts +4 -0
  17. package/dist/AvatarLink.js +2 -1
  18. package/dist/Button.cjs +5 -9
  19. package/dist/Button.d.cts +5 -0
  20. package/dist/Button.d.ts +5 -0
  21. package/dist/Button.js +3 -2
  22. package/dist/Byline.cjs +5 -9
  23. package/dist/Byline.d.cts +5 -0
  24. package/dist/Byline.d.ts +5 -0
  25. package/dist/Byline.js +3 -2
  26. package/dist/Checkbox.cjs +7 -11
  27. package/dist/Checkbox.d.cts +6 -0
  28. package/dist/Checkbox.d.ts +6 -0
  29. package/dist/Checkbox.js +4 -3
  30. package/dist/DatePicker.cjs +5 -9
  31. package/dist/DatePicker.d.cts +5 -0
  32. package/dist/DatePicker.d.ts +5 -0
  33. package/dist/DatePicker.js +3 -2
  34. package/dist/Favicon.cjs +5 -9
  35. package/dist/Favicon.d.cts +5 -0
  36. package/dist/Favicon.d.ts +5 -0
  37. package/dist/Favicon.js +3 -2
  38. package/dist/Form.cjs +3 -7
  39. package/dist/Form.d.cts +2 -0
  40. package/dist/Form.d.ts +2 -0
  41. package/dist/Form.js +2 -1
  42. package/dist/Grid.cjs +6 -10
  43. package/dist/Grid.d.cts +5 -0
  44. package/dist/Grid.d.ts +5 -0
  45. package/dist/Grid.js +3 -2
  46. package/dist/Icon.cjs +5 -9
  47. package/dist/Icon.d.cts +5 -0
  48. package/dist/Icon.d.ts +5 -0
  49. package/dist/Icon.js +3 -2
  50. package/dist/IconButton.cjs +3 -7
  51. package/dist/IconButton.d.cts +4 -0
  52. package/dist/IconButton.d.ts +4 -0
  53. package/dist/IconButton.js +2 -1
  54. package/dist/IconLinkButton.cjs +3 -7
  55. package/dist/IconLinkButton.d.cts +4 -0
  56. package/dist/IconLinkButton.d.ts +4 -0
  57. package/dist/IconLinkButton.js +2 -1
  58. package/dist/InlineMessage.cjs +5 -9
  59. package/dist/InlineMessage.d.cts +5 -0
  60. package/dist/InlineMessage.d.ts +5 -0
  61. package/dist/InlineMessage.js +3 -2
  62. package/dist/IntendedAudienceSignifier.cjs +5 -9
  63. package/dist/IntendedAudienceSignifier.d.cts +5 -0
  64. package/dist/IntendedAudienceSignifier.d.ts +5 -0
  65. package/dist/IntendedAudienceSignifier.js +3 -2
  66. package/dist/Layout.cjs +5 -9
  67. package/dist/Layout.d.cts +5 -0
  68. package/dist/Layout.d.ts +5 -0
  69. package/dist/Layout.js +3 -2
  70. package/dist/Link.cjs +5 -9
  71. package/dist/Link.d.cts +5 -0
  72. package/dist/Link.d.ts +5 -0
  73. package/dist/Link.js +3 -2
  74. package/dist/LinkButton.cjs +3 -7
  75. package/dist/LinkButton.d.cts +4 -0
  76. package/dist/LinkButton.d.ts +4 -0
  77. package/dist/LinkButton.js +2 -1
  78. package/dist/Menu.cjs +9 -13
  79. package/dist/Menu.d.cts +5 -0
  80. package/dist/Menu.d.ts +5 -0
  81. package/dist/Menu.js +3 -2
  82. package/dist/RadioGroup.cjs +6 -10
  83. package/dist/RadioGroup.d.cts +5 -0
  84. package/dist/RadioGroup.d.ts +5 -0
  85. package/dist/RadioGroup.js +3 -2
  86. package/dist/Select.cjs +6 -10
  87. package/dist/Select.d.cts +5 -0
  88. package/dist/Select.d.ts +5 -0
  89. package/dist/Select.js +3 -2
  90. package/dist/TagPicker.cjs +11 -15
  91. package/dist/TagPicker.d.cts +6 -0
  92. package/dist/TagPicker.d.ts +6 -0
  93. package/dist/TagPicker.js +6 -5
  94. package/dist/TextArea.cjs +5 -9
  95. package/dist/TextArea.d.cts +5 -0
  96. package/dist/TextArea.d.ts +5 -0
  97. package/dist/TextArea.js +3 -2
  98. package/dist/TextInput.cjs +5 -9
  99. package/dist/TextInput.d.cts +5 -0
  100. package/dist/TextInput.d.ts +5 -0
  101. package/dist/TextInput.js +3 -2
  102. package/dist/TopBar.cjs +13 -17
  103. package/dist/TopBar.d.cts +14 -0
  104. package/dist/TopBar.d.ts +14 -0
  105. package/dist/TopBar.js +6 -5
  106. package/dist/Typography.cjs +5 -9
  107. package/dist/Typography.d.cts +5 -0
  108. package/dist/Typography.d.ts +5 -0
  109. package/dist/Typography.js +3 -2
  110. package/dist/UserMenu.cjs +5 -9
  111. package/dist/UserMenu.d.cts +3 -0
  112. package/dist/UserMenu.d.ts +3 -0
  113. package/dist/UserMenu.js +3 -2
  114. package/dist/_virtual/_rolldown/runtime.cjs +23 -0
  115. package/dist/components/AlertBanner/AlertBanner.cjs +39 -62
  116. package/dist/components/AlertBanner/AlertBanner.d.cts +16 -0
  117. package/dist/components/AlertBanner/AlertBanner.d.ts +16 -0
  118. package/dist/components/AlertBanner/AlertBanner.js +37 -26
  119. package/dist/components/AlertBanner/styles.cjs +10 -11
  120. package/dist/components/AlertBanner/styles.d.cts +8 -0
  121. package/dist/components/AlertBanner/styles.d.ts +8 -0
  122. package/dist/components/AlertBanner/styles.js +7 -7
  123. package/dist/components/AlertBanner/types.d.cts +31 -0
  124. package/dist/components/AlertBanner/types.d.ts +31 -0
  125. package/dist/components/Avatar/Avatar.cjs +34 -53
  126. package/dist/components/Avatar/Avatar.d.cts +15 -0
  127. package/dist/components/Avatar/Avatar.d.ts +15 -0
  128. package/dist/components/Avatar/Avatar.js +32 -22
  129. package/dist/components/Avatar/styles.cjs +10 -11
  130. package/dist/components/Avatar/styles.d.cts +9 -0
  131. package/dist/components/Avatar/styles.d.ts +9 -0
  132. package/dist/components/Avatar/styles.js +6 -6
  133. package/dist/components/Avatar/types.cjs +12 -13
  134. package/dist/components/Avatar/types.d.cts +47 -0
  135. package/dist/components/Avatar/types.d.ts +47 -0
  136. package/dist/components/Avatar/types.js +12 -11
  137. package/dist/components/AvatarButton/AvatarButton.cjs +16 -11
  138. package/dist/components/AvatarButton/AvatarButton.d.cts +6 -0
  139. package/dist/components/AvatarButton/AvatarButton.d.ts +6 -0
  140. package/dist/components/AvatarButton/AvatarButton.js +15 -9
  141. package/dist/components/AvatarButton/styles.cjs +7 -8
  142. package/dist/components/AvatarButton/styles.d.cts +7 -0
  143. package/dist/components/AvatarButton/styles.d.ts +7 -0
  144. package/dist/components/AvatarButton/styles.js +5 -5
  145. package/dist/components/AvatarButton/types.d.cts +7 -0
  146. package/dist/components/AvatarButton/types.d.ts +7 -0
  147. package/dist/components/AvatarLink/AvatarLink.cjs +16 -11
  148. package/dist/components/AvatarLink/AvatarLink.d.cts +6 -0
  149. package/dist/components/AvatarLink/AvatarLink.d.ts +6 -0
  150. package/dist/components/AvatarLink/AvatarLink.js +15 -9
  151. package/dist/components/AvatarLink/styles.cjs +7 -8
  152. package/dist/components/AvatarLink/styles.d.cts +7 -0
  153. package/dist/components/AvatarLink/styles.d.ts +7 -0
  154. package/dist/components/AvatarLink/styles.js +5 -5
  155. package/dist/components/AvatarLink/types.d.cts +7 -0
  156. package/dist/components/AvatarLink/types.d.ts +7 -0
  157. package/dist/components/Button/Button.cjs +22 -33
  158. package/dist/components/Button/Button.d.cts +13 -0
  159. package/dist/components/Button/Button.d.ts +13 -0
  160. package/dist/components/Button/Button.js +22 -15
  161. package/dist/components/Button/styles.cjs +11 -12
  162. package/dist/components/Button/styles.d.cts +9 -0
  163. package/dist/components/Button/styles.d.ts +9 -0
  164. package/dist/components/Button/styles.js +6 -6
  165. package/dist/components/Button/types.d.cts +22 -0
  166. package/dist/components/Button/types.d.ts +22 -0
  167. package/dist/components/Byline/Byline.cjs +333 -366
  168. package/dist/components/Byline/Byline.d.cts +87 -0
  169. package/dist/{types/components → components}/Byline/Byline.d.ts +30 -26
  170. package/dist/components/Byline/Byline.js +331 -270
  171. package/dist/components/Byline/Preview.cjs +32 -42
  172. package/dist/components/Byline/Preview.js +31 -23
  173. package/dist/components/Byline/lib.cjs +152 -216
  174. package/dist/components/Byline/lib.d.cts +23 -0
  175. package/dist/components/Byline/lib.d.ts +24 -0
  176. package/dist/components/Byline/lib.js +153 -163
  177. package/dist/components/Byline/placeholder.cjs +15 -24
  178. package/dist/components/Byline/placeholder.js +14 -22
  179. package/dist/components/Byline/plugins.cjs +89 -120
  180. package/dist/components/Byline/plugins.js +87 -110
  181. package/dist/components/Byline/schema.cjs +45 -65
  182. package/dist/components/Byline/schema.js +45 -58
  183. package/dist/components/Byline/styles.cjs +19 -20
  184. package/dist/components/Byline/styles.js +13 -13
  185. package/dist/components/Byline/theme.d.cts +7 -0
  186. package/dist/components/Byline/theme.d.ts +7 -0
  187. package/dist/components/Checkbox/Checkbox.cjs +33 -52
  188. package/dist/components/Checkbox/Checkbox.d.cts +13 -0
  189. package/dist/components/Checkbox/Checkbox.d.ts +13 -0
  190. package/dist/components/Checkbox/Checkbox.js +33 -16
  191. package/dist/components/Checkbox/CheckboxGroup.cjs +30 -33
  192. package/dist/components/Checkbox/CheckboxGroup.d.cts +10 -0
  193. package/dist/components/Checkbox/CheckboxGroup.d.ts +10 -0
  194. package/dist/components/Checkbox/CheckboxGroup.js +29 -25
  195. package/dist/components/Checkbox/styles.cjs +13 -17
  196. package/dist/components/Checkbox/styles.d.cts +9 -0
  197. package/dist/components/Checkbox/styles.d.ts +9 -0
  198. package/dist/components/Checkbox/styles.js +8 -8
  199. package/dist/components/Checkbox/types.d.cts +15 -0
  200. package/dist/components/Checkbox/types.d.ts +15 -0
  201. package/dist/components/DatePicker/DatePicker.cjs +156 -149
  202. package/dist/components/DatePicker/DatePicker.d.cts +12 -0
  203. package/dist/components/DatePicker/DatePicker.d.ts +12 -0
  204. package/dist/components/DatePicker/DatePicker.js +160 -114
  205. package/dist/components/DatePicker/styles.cjs +15 -20
  206. package/dist/components/DatePicker/styles.d.cts +8 -0
  207. package/dist/components/DatePicker/styles.d.ts +8 -0
  208. package/dist/components/DatePicker/styles.js +11 -11
  209. package/dist/components/DatePicker/types.d.cts +23 -0
  210. package/dist/components/DatePicker/types.d.ts +23 -0
  211. package/dist/components/Favicon/Favicon.cjs +40 -44
  212. package/dist/components/Favicon/Favicon.d.cts +6 -0
  213. package/dist/components/Favicon/Favicon.d.ts +6 -0
  214. package/dist/components/Favicon/Favicon.js +39 -27
  215. package/dist/components/Favicon/styles.cjs +11 -12
  216. package/dist/components/Favicon/styles.d.cts +9 -0
  217. package/dist/components/Favicon/styles.d.ts +9 -0
  218. package/dist/components/Favicon/styles.js +7 -7
  219. package/dist/components/Favicon/types.d.cts +41 -0
  220. package/dist/components/Favicon/types.d.ts +41 -0
  221. package/dist/components/Form/Form.cjs +35 -45
  222. package/dist/components/Form/Form.js +33 -14
  223. package/dist/components/Form/styles.cjs +16 -24
  224. package/dist/components/Form/styles.d.cts +8 -0
  225. package/dist/components/Form/styles.d.ts +8 -0
  226. package/dist/components/Form/styles.js +8 -8
  227. package/dist/components/Form/types.cjs +13 -10
  228. package/dist/components/Form/types.d.cts +38 -0
  229. package/dist/components/Form/types.d.ts +38 -0
  230. package/dist/components/Form/types.js +12 -8
  231. package/dist/components/Grid/Grid.cjs +21 -33
  232. package/dist/components/Grid/Grid.d.cts +20 -0
  233. package/dist/components/Grid/Grid.d.ts +20 -0
  234. package/dist/components/Grid/Grid.js +18 -9
  235. package/dist/components/Grid/styles.cjs +65 -55
  236. package/dist/components/Grid/styles.d.cts +9 -0
  237. package/dist/components/Grid/styles.d.ts +9 -0
  238. package/dist/components/Grid/styles.js +56 -33
  239. package/dist/components/Grid/types.d.cts +29 -0
  240. package/dist/components/Grid/types.d.ts +29 -0
  241. package/dist/components/Icon/Icon.cjs +34 -41
  242. package/dist/components/Icon/Icon.d.cts +15 -0
  243. package/dist/components/Icon/Icon.d.ts +15 -0
  244. package/dist/components/Icon/Icon.js +32 -13
  245. package/dist/components/Icon/Styles.cjs +22 -0
  246. package/dist/components/Icon/Styles.d.cts +7 -0
  247. package/dist/components/Icon/Styles.d.ts +7 -0
  248. package/dist/components/Icon/{styles.js → Styles.js} +6 -6
  249. package/dist/components/Icon/types.d.cts +31 -0
  250. package/dist/components/Icon/types.d.ts +31 -0
  251. package/dist/components/IconButton/IconButton.cjs +30 -43
  252. package/dist/components/IconButton/IconButton.d.cts +14 -0
  253. package/dist/components/IconButton/IconButton.d.ts +14 -0
  254. package/dist/components/IconButton/IconButton.js +28 -23
  255. package/dist/components/IconButton/styles.cjs +5 -7
  256. package/dist/components/IconButton/styles.d.cts +6 -0
  257. package/dist/components/IconButton/styles.d.ts +6 -0
  258. package/dist/components/IconButton/styles.js +3 -3
  259. package/dist/components/IconButton/types.d.cts +31 -0
  260. package/dist/components/IconButton/types.d.ts +31 -0
  261. package/dist/components/IconLinkButton/IconLinkButton.cjs +30 -40
  262. package/dist/components/IconLinkButton/IconLinkButton.d.cts +14 -0
  263. package/dist/components/IconLinkButton/IconLinkButton.d.ts +14 -0
  264. package/dist/components/IconLinkButton/IconLinkButton.js +28 -20
  265. package/dist/components/IconLinkButton/styles.cjs +5 -7
  266. package/dist/components/IconLinkButton/styles.d.cts +6 -0
  267. package/dist/components/IconLinkButton/styles.d.ts +6 -0
  268. package/dist/components/IconLinkButton/styles.js +3 -3
  269. package/dist/components/IconLinkButton/types.d.cts +31 -0
  270. package/dist/components/IconLinkButton/types.d.ts +31 -0
  271. package/dist/components/InlineMessage/InlineMessage.cjs +34 -62
  272. package/dist/components/InlineMessage/InlineMessage.d.cts +15 -0
  273. package/dist/components/InlineMessage/InlineMessage.d.ts +15 -0
  274. package/dist/components/InlineMessage/InlineMessage.js +32 -24
  275. package/dist/components/InlineMessage/styles.cjs +8 -9
  276. package/dist/components/InlineMessage/styles.d.cts +9 -0
  277. package/dist/components/InlineMessage/styles.d.ts +9 -0
  278. package/dist/components/InlineMessage/styles.js +6 -6
  279. package/dist/components/InlineMessage/types.d.cts +25 -0
  280. package/dist/components/InlineMessage/types.d.ts +25 -0
  281. package/dist/components/IntendedAudienceSignifier/FlagIcons.cjs +113 -112
  282. package/dist/components/IntendedAudienceSignifier/FlagIcons.js +112 -8
  283. package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.cjs +65 -83
  284. package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.d.cts +13 -0
  285. package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.d.ts +13 -0
  286. package/dist/components/IntendedAudienceSignifier/IntendedAudienceSignifier.js +63 -51
  287. package/dist/components/IntendedAudienceSignifier/styles.cjs +9 -10
  288. package/dist/components/IntendedAudienceSignifier/styles.d.cts +8 -0
  289. package/dist/components/IntendedAudienceSignifier/styles.d.ts +8 -0
  290. package/dist/components/IntendedAudienceSignifier/styles.js +4 -4
  291. package/dist/components/IntendedAudienceSignifier/types.d.cts +12 -0
  292. package/dist/components/IntendedAudienceSignifier/types.d.ts +12 -0
  293. package/dist/components/Layout/Layout.cjs +85 -71
  294. package/dist/components/Layout/Layout.d.cts +14 -0
  295. package/dist/components/Layout/Layout.d.ts +14 -0
  296. package/dist/components/Layout/Layout.js +79 -21
  297. package/dist/components/Layout/styles.cjs +26 -29
  298. package/dist/components/Layout/styles.d.cts +13 -0
  299. package/dist/components/Layout/styles.d.ts +13 -0
  300. package/dist/components/Layout/styles.js +16 -18
  301. package/dist/components/Layout/types.d.cts +34 -0
  302. package/dist/components/Layout/types.d.ts +34 -0
  303. package/dist/components/Link/Link.cjs +21 -35
  304. package/dist/components/Link/Link.d.cts +13 -0
  305. package/dist/components/Link/Link.d.ts +13 -0
  306. package/dist/components/Link/Link.js +21 -16
  307. package/dist/components/Link/styles.cjs +7 -8
  308. package/dist/components/Link/styles.d.cts +9 -0
  309. package/dist/components/Link/styles.d.ts +9 -0
  310. package/dist/components/Link/styles.js +5 -5
  311. package/dist/components/Link/types.d.cts +15 -0
  312. package/dist/components/Link/types.d.ts +15 -0
  313. package/dist/components/LinkButton/LinkButton.cjs +22 -33
  314. package/dist/components/LinkButton/LinkButton.d.cts +13 -0
  315. package/dist/components/LinkButton/LinkButton.d.ts +13 -0
  316. package/dist/components/LinkButton/LinkButton.js +20 -13
  317. package/dist/components/LinkButton/Styles.cjs +7 -0
  318. package/dist/components/LinkButton/Styles.d.cts +6 -0
  319. package/dist/components/LinkButton/Styles.d.ts +6 -0
  320. package/dist/components/LinkButton/{styles.js → Styles.js} +3 -3
  321. package/dist/components/LinkButton/types.d.cts +22 -0
  322. package/dist/components/LinkButton/types.d.ts +22 -0
  323. package/dist/components/Menu/Menu.cjs +119 -186
  324. package/dist/components/Menu/Menu.d.cts +41 -0
  325. package/dist/components/Menu/Menu.d.ts +41 -0
  326. package/dist/components/Menu/Menu.js +117 -61
  327. package/dist/components/Menu/styles.cjs +24 -25
  328. package/dist/components/Menu/styles.d.cts +17 -0
  329. package/dist/components/Menu/styles.d.ts +17 -0
  330. package/dist/components/Menu/styles.js +5 -5
  331. package/dist/components/Menu/types.d.cts +67 -0
  332. package/dist/components/Menu/types.d.ts +67 -0
  333. package/dist/components/RadioGroup/RadioGroup.cjs +44 -61
  334. package/dist/components/RadioGroup/RadioGroup.d.cts +19 -0
  335. package/dist/components/RadioGroup/RadioGroup.d.ts +19 -0
  336. package/dist/components/RadioGroup/RadioGroup.js +43 -29
  337. package/dist/components/RadioGroup/styles.cjs +11 -12
  338. package/dist/components/RadioGroup/styles.d.cts +8 -0
  339. package/dist/components/RadioGroup/styles.d.ts +8 -0
  340. package/dist/components/RadioGroup/styles.js +8 -8
  341. package/dist/components/RadioGroup/types.d.cts +14 -0
  342. package/dist/components/RadioGroup/types.d.ts +14 -0
  343. package/dist/components/Select/Select.cjs +43 -51
  344. package/dist/components/Select/Select.d.cts +15 -0
  345. package/dist/components/Select/Select.d.ts +15 -0
  346. package/dist/components/Select/Select.js +43 -35
  347. package/dist/components/Select/styles.cjs +13 -14
  348. package/dist/components/Select/styles.d.cts +9 -0
  349. package/dist/components/Select/styles.d.ts +9 -0
  350. package/dist/components/Select/styles.js +9 -9
  351. package/dist/components/Select/types.d.cts +10 -0
  352. package/dist/components/Select/types.d.ts +10 -0
  353. package/dist/components/TagPicker/Autocomplete.cjs +146 -102
  354. package/dist/components/TagPicker/Autocomplete.d.cts +134 -0
  355. package/dist/{types/components → components}/TagPicker/Autocomplete.d.ts +49 -32
  356. package/dist/components/TagPicker/Autocomplete.js +145 -21
  357. package/dist/components/TagPicker/TagAutocomplete.cjs +116 -37
  358. package/dist/components/TagPicker/TagAutocomplete.d.cts +144 -0
  359. package/dist/{types/components → components}/TagPicker/TagAutocomplete.d.ts +46 -30
  360. package/dist/components/TagPicker/TagAutocomplete.js +114 -5
  361. package/dist/components/TagPicker/TagTable.cjs +212 -188
  362. package/dist/components/TagPicker/TagTable.d.cts +143 -0
  363. package/dist/{types/components → components}/TagPicker/TagTable.d.ts +54 -37
  364. package/dist/components/TagPicker/TagTable.js +210 -75
  365. package/dist/components/TagPicker/styles.cjs +29 -30
  366. package/dist/components/TagPicker/styles.js +26 -26
  367. package/dist/components/TagPicker/types.d.cts +11 -0
  368. package/dist/components/TagPicker/types.d.ts +11 -0
  369. package/dist/components/TextArea/TextArea.cjs +23 -33
  370. package/dist/components/TextArea/TextArea.d.cts +12 -0
  371. package/dist/components/TextArea/TextArea.d.ts +12 -0
  372. package/dist/components/TextArea/TextArea.js +23 -11
  373. package/dist/components/TextArea/styles.cjs +10 -11
  374. package/dist/components/TextArea/styles.d.cts +8 -0
  375. package/dist/components/TextArea/styles.d.ts +8 -0
  376. package/dist/components/TextArea/styles.js +6 -6
  377. package/dist/components/TextArea/types.d.cts +11 -0
  378. package/dist/components/TextArea/types.d.ts +11 -0
  379. package/dist/components/TextInput/TextInput.cjs +23 -33
  380. package/dist/components/TextInput/TextInput.d.cts +12 -0
  381. package/dist/components/TextInput/TextInput.d.ts +12 -0
  382. package/dist/components/TextInput/TextInput.js +21 -9
  383. package/dist/components/TextInput/styles.cjs +10 -11
  384. package/dist/components/TextInput/styles.d.cts +8 -0
  385. package/dist/components/TextInput/styles.d.ts +8 -0
  386. package/dist/components/TextInput/styles.js +6 -6
  387. package/dist/components/TextInput/types.d.cts +11 -0
  388. package/dist/components/TextInput/types.d.ts +11 -0
  389. package/dist/components/TopBar/TopBar.cjs +150 -223
  390. package/dist/components/TopBar/TopBar.d.cts +28 -0
  391. package/dist/components/TopBar/TopBar.d.ts +28 -0
  392. package/dist/components/TopBar/TopBar.js +143 -101
  393. package/dist/components/TopBar/TopBarItem/TopBarItem.cjs +13 -30
  394. package/dist/components/TopBar/TopBarItem/TopBarItem.d.cts +15 -0
  395. package/dist/components/TopBar/TopBarItem/TopBarItem.d.ts +15 -0
  396. package/dist/components/TopBar/TopBarItem/TopBarItem.js +11 -10
  397. package/dist/components/TopBar/TopBarItem/styles.cjs +9 -10
  398. package/dist/components/TopBar/TopBarItem/styles.d.cts +9 -0
  399. package/dist/components/TopBar/TopBarItem/styles.d.ts +9 -0
  400. package/dist/components/TopBar/TopBarItem/styles.js +5 -5
  401. package/dist/components/TopBar/TopBarItem/types.d.cts +23 -0
  402. package/dist/components/TopBar/TopBarItem/types.d.ts +23 -0
  403. package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.cjs +68 -83
  404. package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.d.cts +21 -0
  405. package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.d.ts +21 -0
  406. package/dist/components/TopBar/TopBarNavigation/TopBarNavigation.js +66 -21
  407. package/dist/components/TopBar/TopBarNavigation/styles.cjs +19 -20
  408. package/dist/components/TopBar/TopBarNavigation/styles.d.cts +9 -0
  409. package/dist/components/TopBar/TopBarNavigation/styles.d.ts +9 -0
  410. package/dist/components/TopBar/TopBarNavigation/styles.js +8 -8
  411. package/dist/components/TopBar/TopBarNavigation/types.d.cts +53 -0
  412. package/dist/components/TopBar/TopBarNavigation/types.d.ts +53 -0
  413. package/dist/components/TopBar/TopBarToolName/TopBarToolName.cjs +65 -89
  414. package/dist/components/TopBar/TopBarToolName/TopBarToolName.d.cts +10 -0
  415. package/dist/components/TopBar/TopBarToolName/TopBarToolName.d.ts +10 -0
  416. package/dist/components/TopBar/TopBarToolName/TopBarToolName.js +62 -24
  417. package/dist/components/TopBar/TopBarToolName/styles.cjs +28 -33
  418. package/dist/components/TopBar/TopBarToolName/styles.d.cts +9 -0
  419. package/dist/components/TopBar/TopBarToolName/styles.d.ts +9 -0
  420. package/dist/components/TopBar/TopBarToolName/styles.js +15 -15
  421. package/dist/components/TopBar/TopBarToolName/types.d.cts +44 -0
  422. package/dist/components/TopBar/TopBarToolName/types.d.ts +44 -0
  423. package/dist/components/TopBar/styles.cjs +18 -22
  424. package/dist/components/TopBar/styles.d.cts +9 -0
  425. package/dist/components/TopBar/styles.d.ts +9 -0
  426. package/dist/components/TopBar/styles.js +10 -10
  427. package/dist/components/TopBar/types.d.cts +16 -0
  428. package/dist/components/TopBar/types.d.ts +16 -0
  429. package/dist/components/Typography/Typography.cjs +11 -24
  430. package/dist/components/Typography/Typography.d.cts +17 -0
  431. package/dist/components/Typography/Typography.d.ts +17 -0
  432. package/dist/components/Typography/Typography.js +9 -10
  433. package/dist/components/Typography/styles.cjs +10 -11
  434. package/dist/components/Typography/styles.d.cts +9 -0
  435. package/dist/components/Typography/styles.d.ts +9 -0
  436. package/dist/components/Typography/styles.js +6 -6
  437. package/dist/components/Typography/types.d.cts +18 -0
  438. package/dist/components/Typography/types.d.ts +18 -0
  439. package/dist/components/UserMenu/PreferenceRadioGroup.cjs +34 -51
  440. package/dist/components/UserMenu/PreferenceRadioGroup.js +32 -16
  441. package/dist/components/UserMenu/TitleText.cjs +35 -26
  442. package/dist/components/UserMenu/TitleText.js +33 -19
  443. package/dist/components/UserMenu/UserMenu.cjs +51 -58
  444. package/dist/components/UserMenu/UserMenu.d.cts +30 -0
  445. package/dist/components/UserMenu/UserMenu.d.ts +30 -0
  446. package/dist/components/UserMenu/UserMenu.js +49 -8
  447. package/dist/components/UserMenu/defaultOptions.cjs +101 -0
  448. package/dist/components/UserMenu/defaultOptions.js +99 -0
  449. package/dist/components/UserMenu/model.d.cts +13 -0
  450. package/dist/components/UserMenu/model.d.ts +13 -0
  451. package/dist/components/UserMenu/styles.cjs +18 -19
  452. package/dist/components/UserMenu/styles.js +17 -17
  453. package/dist/components/UserMenu/types.d.cts +8 -0
  454. package/dist/components/UserMenu/types.d.ts +8 -0
  455. package/dist/fonts/materialSymbolsTypes.d.cts +5 -0
  456. package/dist/fonts/materialSymbolsTypes.d.ts +5 -0
  457. package/dist/index.cjs +71 -75
  458. package/dist/index.d.cts +36 -0
  459. package/dist/index.d.ts +36 -0
  460. package/dist/index.js +36 -35
  461. package/dist/styleD/build/typescript/base/colors.cjs +143 -141
  462. package/dist/styleD/build/typescript/base/colors.d.cts +147 -0
  463. package/dist/styleD/build/typescript/base/colors.d.ts +147 -0
  464. package/dist/styleD/build/typescript/base/colors.js +143 -139
  465. package/dist/styleD/build/typescript/base/radius.cjs +11 -9
  466. package/dist/styleD/build/typescript/base/radius.d.cts +15 -0
  467. package/dist/styleD/build/typescript/base/radius.d.ts +15 -0
  468. package/dist/styleD/build/typescript/base/radius.js +11 -7
  469. package/dist/styleD/build/typescript/base/sizing.cjs +25 -23
  470. package/dist/styleD/build/typescript/base/sizing.d.cts +29 -0
  471. package/dist/styleD/build/typescript/base/sizing.d.ts +29 -0
  472. package/dist/styleD/build/typescript/base/sizing.js +25 -21
  473. package/dist/styleD/build/typescript/base/spacing.cjs +39 -37
  474. package/dist/styleD/build/typescript/base/spacing.d.cts +43 -0
  475. package/dist/styleD/build/typescript/base/spacing.d.ts +43 -0
  476. package/dist/styleD/build/typescript/base/spacing.js +39 -35
  477. package/dist/styleD/build/typescript/base/typography.cjs +78 -78
  478. package/dist/styleD/build/typescript/base/typography.d.cts +84 -0
  479. package/dist/styleD/build/typescript/base/typography.d.ts +84 -0
  480. package/dist/styleD/build/typescript/base/typography.js +78 -76
  481. package/dist/styleD/build/typescript/component/alertBanner.cjs +37 -45
  482. package/dist/styleD/build/typescript/component/alertBanner.d.cts +51 -0
  483. package/dist/styleD/build/typescript/component/alertBanner.d.ts +51 -0
  484. package/dist/styleD/build/typescript/component/alertBanner.js +37 -43
  485. package/dist/styleD/build/typescript/component/autocomplete.cjs +31 -29
  486. package/dist/styleD/build/typescript/component/autocomplete.d.cts +35 -0
  487. package/dist/styleD/build/typescript/component/autocomplete.d.ts +35 -0
  488. package/dist/styleD/build/typescript/component/autocomplete.js +31 -27
  489. package/dist/styleD/build/typescript/component/avatar.cjs +124 -168
  490. package/dist/styleD/build/typescript/component/avatar.d.cts +174 -0
  491. package/dist/styleD/build/typescript/component/avatar.d.ts +174 -0
  492. package/dist/styleD/build/typescript/component/avatar.js +124 -166
  493. package/dist/styleD/build/typescript/component/button.cjs +323 -395
  494. package/dist/styleD/build/typescript/component/button.d.cts +401 -0
  495. package/dist/styleD/build/typescript/component/button.d.ts +401 -0
  496. package/dist/styleD/build/typescript/component/button.js +323 -393
  497. package/dist/styleD/build/typescript/component/byline.cjs +41 -39
  498. package/dist/styleD/build/typescript/component/byline.d.cts +45 -0
  499. package/dist/styleD/build/typescript/component/byline.d.ts +45 -0
  500. package/dist/styleD/build/typescript/component/byline.js +41 -37
  501. package/dist/styleD/build/typescript/component/checkbox.cjs +87 -97
  502. package/dist/styleD/build/typescript/component/checkbox.d.cts +103 -0
  503. package/dist/styleD/build/typescript/component/checkbox.d.ts +103 -0
  504. package/dist/styleD/build/typescript/component/checkbox.js +87 -95
  505. package/dist/styleD/build/typescript/component/datePicker.cjs +146 -182
  506. package/dist/styleD/build/typescript/component/datePicker.d.cts +188 -0
  507. package/dist/styleD/build/typescript/component/datePicker.d.ts +188 -0
  508. package/dist/styleD/build/typescript/component/datePicker.js +146 -180
  509. package/dist/styleD/build/typescript/component/favicon.cjs +19 -17
  510. package/dist/styleD/build/typescript/component/favicon.d.cts +23 -0
  511. package/dist/styleD/build/typescript/component/favicon.d.ts +23 -0
  512. package/dist/styleD/build/typescript/component/favicon.js +19 -15
  513. package/dist/styleD/build/typescript/component/form.cjs +38 -50
  514. package/dist/styleD/build/typescript/component/form.d.cts +54 -0
  515. package/dist/styleD/build/typescript/component/form.d.ts +54 -0
  516. package/dist/styleD/build/typescript/component/form.js +38 -48
  517. package/dist/styleD/build/typescript/component/grid.cjs +28 -26
  518. package/dist/styleD/build/typescript/component/grid.d.cts +32 -0
  519. package/dist/styleD/build/typescript/component/grid.d.ts +32 -0
  520. package/dist/styleD/build/typescript/component/grid.js +28 -24
  521. package/dist/styleD/build/typescript/component/icon.cjs +12 -16
  522. package/dist/styleD/build/typescript/component/icon.d.cts +22 -0
  523. package/dist/styleD/build/typescript/component/icon.d.ts +22 -0
  524. package/dist/styleD/build/typescript/component/icon.js +12 -14
  525. package/dist/styleD/build/typescript/component/inlineMessage.cjs +22 -26
  526. package/dist/styleD/build/typescript/component/inlineMessage.d.cts +32 -0
  527. package/dist/styleD/build/typescript/component/inlineMessage.d.ts +32 -0
  528. package/dist/styleD/build/typescript/component/inlineMessage.js +22 -24
  529. package/dist/styleD/build/typescript/component/intendedAudienceSignifier.cjs +31 -29
  530. package/dist/styleD/build/typescript/component/intendedAudienceSignifier.d.cts +35 -0
  531. package/dist/styleD/build/typescript/component/intendedAudienceSignifier.d.ts +35 -0
  532. package/dist/styleD/build/typescript/component/intendedAudienceSignifier.js +31 -27
  533. package/dist/styleD/build/typescript/component/layout.cjs +43 -47
  534. package/dist/styleD/build/typescript/component/layout.d.cts +53 -0
  535. package/dist/styleD/build/typescript/component/layout.d.ts +53 -0
  536. package/dist/styleD/build/typescript/component/layout.js +43 -45
  537. package/dist/styleD/build/typescript/component/link.cjs +15 -23
  538. package/dist/styleD/build/typescript/component/link.d.cts +27 -0
  539. package/dist/styleD/build/typescript/component/link.d.ts +27 -0
  540. package/dist/styleD/build/typescript/component/link.js +15 -21
  541. package/dist/styleD/build/typescript/component/menu.cjs +130 -142
  542. package/dist/styleD/build/typescript/component/menu.d.cts +148 -0
  543. package/dist/styleD/build/typescript/component/menu.d.ts +148 -0
  544. package/dist/styleD/build/typescript/component/menu.js +130 -140
  545. package/dist/styleD/build/typescript/component/radioGroup.cjs +74 -82
  546. package/dist/styleD/build/typescript/component/radioGroup.d.cts +88 -0
  547. package/dist/styleD/build/typescript/component/radioGroup.d.ts +88 -0
  548. package/dist/styleD/build/typescript/component/radioGroup.js +74 -80
  549. package/dist/styleD/build/typescript/component/select.cjs +63 -67
  550. package/dist/styleD/build/typescript/component/select.d.cts +71 -0
  551. package/dist/styleD/build/typescript/component/select.d.ts +71 -0
  552. package/dist/styleD/build/typescript/component/select.js +63 -65
  553. package/dist/styleD/build/typescript/component/tagTable.cjs +52 -50
  554. package/dist/styleD/build/typescript/component/tagTable.d.cts +56 -0
  555. package/dist/styleD/build/typescript/component/tagTable.d.ts +56 -0
  556. package/dist/styleD/build/typescript/component/tagTable.js +52 -48
  557. package/dist/styleD/build/typescript/component/textArea.cjs +39 -45
  558. package/dist/styleD/build/typescript/component/textArea.d.cts +51 -0
  559. package/dist/styleD/build/typescript/component/textArea.d.ts +51 -0
  560. package/dist/styleD/build/typescript/component/textArea.js +39 -43
  561. package/dist/styleD/build/typescript/component/textInput.cjs +44 -46
  562. package/dist/styleD/build/typescript/component/textInput.d.cts +52 -0
  563. package/dist/styleD/build/typescript/component/textInput.d.ts +52 -0
  564. package/dist/styleD/build/typescript/component/textInput.js +44 -44
  565. package/dist/styleD/build/typescript/component/topBar.cjs +166 -192
  566. package/dist/styleD/build/typescript/component/topBar.d.cts +198 -0
  567. package/dist/styleD/build/typescript/component/topBar.d.ts +198 -0
  568. package/dist/styleD/build/typescript/component/topBar.js +166 -190
  569. package/dist/styleD/build/typescript/component/typography.cjs +6 -6
  570. package/dist/styleD/build/typescript/component/typography.d.cts +10 -0
  571. package/dist/styleD/build/typescript/component/typography.d.ts +10 -0
  572. package/dist/styleD/build/typescript/component/typography.js +6 -4
  573. package/dist/styleD/build/typescript/component/userMenu.cjs +36 -34
  574. package/dist/styleD/build/typescript/component/userMenu.d.cts +40 -0
  575. package/dist/styleD/build/typescript/component/userMenu.d.ts +40 -0
  576. package/dist/styleD/build/typescript/component/userMenu.js +36 -32
  577. package/dist/styleD/build/typescript/semantic/breakpoints.cjs +8 -6
  578. package/dist/styleD/build/typescript/semantic/breakpoints.d.cts +12 -0
  579. package/dist/styleD/build/typescript/semantic/breakpoints.d.ts +12 -0
  580. package/dist/styleD/build/typescript/semantic/breakpoints.js +8 -4
  581. package/dist/styleD/build/typescript/semantic/colors.cjs +82 -80
  582. package/dist/styleD/build/typescript/semantic/colors.d.cts +86 -0
  583. package/dist/styleD/build/typescript/semantic/colors.d.ts +86 -0
  584. package/dist/styleD/build/typescript/semantic/colors.js +82 -78
  585. package/dist/styleD/build/typescript/semantic/grid.cjs +20 -18
  586. package/dist/styleD/build/typescript/semantic/grid.d.cts +24 -0
  587. package/dist/styleD/build/typescript/semantic/grid.d.ts +24 -0
  588. package/dist/styleD/build/typescript/semantic/grid.js +20 -16
  589. package/dist/styleD/build/typescript/semantic/shadow.cjs +6 -6
  590. package/dist/styleD/build/typescript/semantic/shadow.d.cts +10 -0
  591. package/dist/styleD/build/typescript/semantic/shadow.d.ts +10 -0
  592. package/dist/styleD/build/typescript/semantic/shadow.js +6 -4
  593. package/dist/styleD/build/typescript/semantic/sizing.cjs +28 -28
  594. package/dist/styleD/build/typescript/semantic/sizing.d.cts +34 -0
  595. package/dist/styleD/build/typescript/semantic/sizing.d.ts +34 -0
  596. package/dist/styleD/build/typescript/semantic/sizing.js +28 -26
  597. package/dist/styleD/build/typescript/semantic/typography.cjs +380 -378
  598. package/dist/styleD/build/typescript/semantic/typography.d.cts +384 -0
  599. package/dist/styleD/build/typescript/semantic/typography.d.ts +384 -0
  600. package/dist/styleD/build/typescript/semantic/typography.js +380 -376
  601. package/dist/styleD/utils/semantic/mq.cjs +48 -31
  602. package/dist/styleD/utils/semantic/mq.d.cts +56 -0
  603. package/dist/{types/styleD → styleD}/utils/semantic/mq.d.ts +18 -14
  604. package/dist/styleD/utils/semantic/mq.js +48 -21
  605. package/dist/styleD/utils/semantic/typography.cjs +10 -11
  606. package/dist/styleD/utils/semantic/typography.d.cts +12 -0
  607. package/dist/styleD/utils/semantic/typography.d.ts +12 -0
  608. package/dist/styleD/utils/semantic/typography.js +9 -9
  609. package/dist/util/mergeDeep.cjs +11 -15
  610. package/dist/util/mergeDeep.js +11 -13
  611. package/dist/util/reset.cjs +4 -10
  612. package/dist/util/reset.d.cts +4 -0
  613. package/dist/util/reset.d.ts +4 -0
  614. package/dist/util/reset.js +4 -8
  615. package/dist/util/reset2.cjs +8 -0
  616. package/dist/util/reset2.js +8 -0
  617. package/dist/util/types.d.cts +34 -0
  618. package/dist/util/types.d.ts +34 -0
  619. package/dist/util/useResize.cjs +24 -31
  620. package/dist/util/useResize.js +22 -28
  621. package/dist/utils.cjs +10 -14
  622. package/dist/utils.d.cts +4 -0
  623. package/dist/utils.d.ts +4 -0
  624. package/dist/utils.js +4 -3
  625. package/package.json +278 -131
  626. package/dist/components/Icon/styles.cjs +0 -27
  627. package/dist/components/LinkButton/styles.cjs +0 -9
  628. package/dist/components/UserMenu/default-options.cjs +0 -109
  629. package/dist/components/UserMenu/default-options.js +0 -105
  630. package/dist/types/AlertBanner.d.ts +0 -19
  631. package/dist/types/Avatar.d.ts +0 -19
  632. package/dist/types/AvatarButton.d.ts +0 -18
  633. package/dist/types/AvatarLink.d.ts +0 -18
  634. package/dist/types/Button.d.ts +0 -20
  635. package/dist/types/Byline.d.ts +0 -25
  636. package/dist/types/Checkbox.d.ts +0 -21
  637. package/dist/types/DatePicker.d.ts +0 -21
  638. package/dist/types/Favicon.d.ts +0 -19
  639. package/dist/types/Form.d.ts +0 -8
  640. package/dist/types/Grid.d.ts +0 -20
  641. package/dist/types/Icon.d.ts +0 -27
  642. package/dist/types/IconButton.d.ts +0 -20
  643. package/dist/types/IconLinkButton.d.ts +0 -20
  644. package/dist/types/InlineMessage.d.ts +0 -19
  645. package/dist/types/IntendedAudienceSignifier.d.ts +0 -19
  646. package/dist/types/Layout.d.ts +0 -20
  647. package/dist/types/Link.d.ts +0 -19
  648. package/dist/types/LinkButton.d.ts +0 -20
  649. package/dist/types/Menu.d.ts +0 -20
  650. package/dist/types/RadioGroup.d.ts +0 -20
  651. package/dist/types/Select.d.ts +0 -20
  652. package/dist/types/TagPicker.d.ts +0 -22
  653. package/dist/types/TextArea.d.ts +0 -20
  654. package/dist/types/TextInput.d.ts +0 -20
  655. package/dist/types/TopBar.d.ts +0 -29
  656. package/dist/types/Typography.d.ts +0 -19
  657. package/dist/types/UserMenu.d.ts +0 -18
  658. package/dist/types/components/AlertBanner/AlertBanner.d.ts +0 -2
  659. package/dist/types/components/AlertBanner/sandbox.d.ts +0 -5
  660. package/dist/types/components/AlertBanner/styles.d.ts +0 -9
  661. package/dist/types/components/AlertBanner/types.d.ts +0 -27
  662. package/dist/types/components/Avatar/Avatar.d.ts +0 -2
  663. package/dist/types/components/Avatar/sandbox.d.ts +0 -5
  664. package/dist/types/components/Avatar/styles.d.ts +0 -9
  665. package/dist/types/components/Avatar/types.d.ts +0 -45
  666. package/dist/types/components/AvatarButton/AvatarButton.d.ts +0 -2
  667. package/dist/types/components/AvatarButton/sandbox.d.ts +0 -5
  668. package/dist/types/components/AvatarButton/styles.d.ts +0 -6
  669. package/dist/types/components/AvatarButton/types.d.ts +0 -3
  670. package/dist/types/components/AvatarLink/AvatarLink.d.ts +0 -2
  671. package/dist/types/components/AvatarLink/sandbox.d.ts +0 -5
  672. package/dist/types/components/AvatarLink/styles.d.ts +0 -6
  673. package/dist/types/components/AvatarLink/types.d.ts +0 -3
  674. package/dist/types/components/Button/Button.d.ts +0 -2
  675. package/dist/types/components/Button/sandbox.d.ts +0 -5
  676. package/dist/types/components/Button/styles.d.ts +0 -8
  677. package/dist/types/components/Button/types.d.ts +0 -18
  678. package/dist/types/components/Byline/Preview.d.ts +0 -4
  679. package/dist/types/components/Byline/contributors-fixture.d.ts +0 -1
  680. package/dist/types/components/Byline/lib.d.ts +0 -48
  681. package/dist/types/components/Byline/lib.test.d.ts +0 -1
  682. package/dist/types/components/Byline/placeholder.d.ts +0 -2
  683. package/dist/types/components/Byline/plugins.d.ts +0 -4
  684. package/dist/types/components/Byline/schema.d.ts +0 -2
  685. package/dist/types/components/Byline/styles.d.ts +0 -13
  686. package/dist/types/components/Byline/theme.d.ts +0 -3
  687. package/dist/types/components/Checkbox/Checkbox.d.ts +0 -2
  688. package/dist/types/components/Checkbox/CheckboxGroup.d.ts +0 -2
  689. package/dist/types/components/Checkbox/CheckboxGroupSandbox.d.ts +0 -5
  690. package/dist/types/components/Checkbox/CheckboxSandbox.d.ts +0 -5
  691. package/dist/types/components/Checkbox/styles.d.ts +0 -10
  692. package/dist/types/components/Checkbox/types.d.ts +0 -11
  693. package/dist/types/components/DatePicker/DatePicker.d.ts +0 -2
  694. package/dist/types/components/DatePicker/sandbox.d.ts +0 -2
  695. package/dist/types/components/DatePicker/styles.d.ts +0 -11
  696. package/dist/types/components/DatePicker/types.d.ts +0 -21
  697. package/dist/types/components/Favicon/Favicon.d.ts +0 -2
  698. package/dist/types/components/Favicon/sandbox.d.ts +0 -5
  699. package/dist/types/components/Favicon/styles.d.ts +0 -9
  700. package/dist/types/components/Favicon/types.d.ts +0 -38
  701. package/dist/types/components/Form/Form.d.ts +0 -5
  702. package/dist/types/components/Form/styles.d.ts +0 -13
  703. package/dist/types/components/Form/types.d.ts +0 -40
  704. package/dist/types/components/Grid/Grid.d.ts +0 -3
  705. package/dist/types/components/Grid/sandbox.d.ts +0 -5
  706. package/dist/types/components/Grid/styles.d.ts +0 -11
  707. package/dist/types/components/Grid/styles.test.d.ts +0 -1
  708. package/dist/types/components/Grid/types.d.ts +0 -25
  709. package/dist/types/components/Icon/Icon.d.ts +0 -2
  710. package/dist/types/components/Icon/sandbox.d.ts +0 -5
  711. package/dist/types/components/Icon/styles.d.ts +0 -9
  712. package/dist/types/components/Icon/types.d.ts +0 -28
  713. package/dist/types/components/IconButton/IconButton.d.ts +0 -2
  714. package/dist/types/components/IconButton/sandbox.d.ts +0 -5
  715. package/dist/types/components/IconButton/styles.d.ts +0 -398
  716. package/dist/types/components/IconButton/types.d.ts +0 -26
  717. package/dist/types/components/IconLinkButton/IconLinkButton.d.ts +0 -2
  718. package/dist/types/components/IconLinkButton/sandbox.d.ts +0 -5
  719. package/dist/types/components/IconLinkButton/styles.d.ts +0 -398
  720. package/dist/types/components/IconLinkButton/types.d.ts +0 -26
  721. package/dist/types/components/InlineMessage/InlineMessage.d.ts +0 -2
  722. package/dist/types/components/InlineMessage/sandbox.d.ts +0 -5
  723. package/dist/types/components/InlineMessage/styles.d.ts +0 -9
  724. package/dist/types/components/InlineMessage/types.d.ts +0 -21
  725. package/dist/types/components/IntendedAudienceSignifier/FlagIcons.d.ts +0 -5
  726. package/dist/types/components/IntendedAudienceSignifier/IntendedAudienceSignifier.d.ts +0 -2
  727. package/dist/types/components/IntendedAudienceSignifier/sandbox.d.ts +0 -5
  728. package/dist/types/components/IntendedAudienceSignifier/styles.d.ts +0 -8
  729. package/dist/types/components/IntendedAudienceSignifier/types.d.ts +0 -8
  730. package/dist/types/components/Layout/Layout.d.ts +0 -11
  731. package/dist/types/components/Layout/sandbox.d.ts +0 -5
  732. package/dist/types/components/Layout/styles.d.ts +0 -19
  733. package/dist/types/components/Layout/types.d.ts +0 -30
  734. package/dist/types/components/Link/Link.d.ts +0 -2
  735. package/dist/types/components/Link/sandbox.d.ts +0 -5
  736. package/dist/types/components/Link/styles.d.ts +0 -7
  737. package/dist/types/components/Link/types.d.ts +0 -11
  738. package/dist/types/components/LinkButton/LinkButton.d.ts +0 -2
  739. package/dist/types/components/LinkButton/sandbox.d.ts +0 -5
  740. package/dist/types/components/LinkButton/styles.d.ts +0 -398
  741. package/dist/types/components/LinkButton/types.d.ts +0 -18
  742. package/dist/types/components/Menu/Menu.d.ts +0 -7
  743. package/dist/types/components/Menu/sandbox.d.ts +0 -5
  744. package/dist/types/components/Menu/styles.d.ts +0 -28
  745. package/dist/types/components/Menu/types.d.ts +0 -63
  746. package/dist/types/components/RadioGroup/RadioGroup.d.ts +0 -3
  747. package/dist/types/components/RadioGroup/sandbox.d.ts +0 -5
  748. package/dist/types/components/RadioGroup/styles.d.ts +0 -9
  749. package/dist/types/components/RadioGroup/types.d.ts +0 -10
  750. package/dist/types/components/Select/Select.d.ts +0 -3
  751. package/dist/types/components/Select/sandbox.d.ts +0 -5
  752. package/dist/types/components/Select/styles.d.ts +0 -10
  753. package/dist/types/components/Select/types.d.ts +0 -9
  754. package/dist/types/components/TagPicker/example-tags.d.ts +0 -2
  755. package/dist/types/components/TagPicker/styles.d.ts +0 -16
  756. package/dist/types/components/TagPicker/types.d.ts +0 -64
  757. package/dist/types/components/TextArea/TextArea.d.ts +0 -2
  758. package/dist/types/components/TextArea/sandbox.d.ts +0 -5
  759. package/dist/types/components/TextArea/styles.d.ts +0 -7
  760. package/dist/types/components/TextArea/types.d.ts +0 -7
  761. package/dist/types/components/TextInput/TextInput.d.ts +0 -2
  762. package/dist/types/components/TextInput/sandbox.d.ts +0 -5
  763. package/dist/types/components/TextInput/styles.d.ts +0 -7
  764. package/dist/types/components/TextInput/types.d.ts +0 -7
  765. package/dist/types/components/TopBar/TopBar.d.ts +0 -11
  766. package/dist/types/components/TopBar/TopBarItem/TopBarItem.d.ts +0 -2
  767. package/dist/types/components/TopBar/TopBarItem/sandbox.d.ts +0 -5
  768. package/dist/types/components/TopBar/TopBarItem/styles.d.ts +0 -8
  769. package/dist/types/components/TopBar/TopBarItem/types.d.ts +0 -19
  770. package/dist/types/components/TopBar/TopBarNavigation/TopBarNavigation.d.ts +0 -2
  771. package/dist/types/components/TopBar/TopBarNavigation/sandbox.d.ts +0 -5
  772. package/dist/types/components/TopBar/TopBarNavigation/styles.d.ts +0 -12
  773. package/dist/types/components/TopBar/TopBarNavigation/types.d.ts +0 -49
  774. package/dist/types/components/TopBar/TopBarToolName/TopBarToolName.d.ts +0 -2
  775. package/dist/types/components/TopBar/TopBarToolName/sandbox.d.ts +0 -5
  776. package/dist/types/components/TopBar/TopBarToolName/styles.d.ts +0 -16
  777. package/dist/types/components/TopBar/TopBarToolName/types.d.ts +0 -40
  778. package/dist/types/components/TopBar/sandbox.d.ts +0 -5
  779. package/dist/types/components/TopBar/styles.d.ts +0 -15
  780. package/dist/types/components/TopBar/types.d.ts +0 -12
  781. package/dist/types/components/Typography/Typography.d.ts +0 -6
  782. package/dist/types/components/Typography/sandbox.d.ts +0 -5
  783. package/dist/types/components/Typography/styles.d.ts +0 -8
  784. package/dist/types/components/Typography/types.d.ts +0 -14
  785. package/dist/types/components/UserMenu/PreferenceRadioGroup.d.ts +0 -15
  786. package/dist/types/components/UserMenu/TitleText.d.ts +0 -6
  787. package/dist/types/components/UserMenu/UserMenu.d.ts +0 -17
  788. package/dist/types/components/UserMenu/default-options.d.ts +0 -5
  789. package/dist/types/components/UserMenu/model.d.ts +0 -9
  790. package/dist/types/components/UserMenu/styles.d.ts +0 -9
  791. package/dist/types/components/UserMenu/theme.d.ts +0 -3
  792. package/dist/types/components/UserMenu/types.d.ts +0 -5
  793. package/dist/types/fonts/material-symbols-types.d.ts +0 -3853
  794. package/dist/types/index.d.ts +0 -86
  795. package/dist/types/styleD/build/typescript/base/colors.d.ts +0 -144
  796. package/dist/types/styleD/build/typescript/base/radius.d.ts +0 -12
  797. package/dist/types/styleD/build/typescript/base/sizing.d.ts +0 -26
  798. package/dist/types/styleD/build/typescript/base/spacing.d.ts +0 -40
  799. package/dist/types/styleD/build/typescript/base/typography.d.ts +0 -81
  800. package/dist/types/styleD/build/typescript/component/alertBanner.d.ts +0 -48
  801. package/dist/types/styleD/build/typescript/component/autocomplete.d.ts +0 -32
  802. package/dist/types/styleD/build/typescript/component/avatar.d.ts +0 -171
  803. package/dist/types/styleD/build/typescript/component/button.d.ts +0 -398
  804. package/dist/types/styleD/build/typescript/component/byline.d.ts +0 -42
  805. package/dist/types/styleD/build/typescript/component/checkbox.d.ts +0 -100
  806. package/dist/types/styleD/build/typescript/component/datePicker.d.ts +0 -185
  807. package/dist/types/styleD/build/typescript/component/favicon.d.ts +0 -20
  808. package/dist/types/styleD/build/typescript/component/form.d.ts +0 -51
  809. package/dist/types/styleD/build/typescript/component/grid.d.ts +0 -29
  810. package/dist/types/styleD/build/typescript/component/icon.d.ts +0 -19
  811. package/dist/types/styleD/build/typescript/component/inlineMessage.d.ts +0 -29
  812. package/dist/types/styleD/build/typescript/component/intendedAudienceSignifier.d.ts +0 -32
  813. package/dist/types/styleD/build/typescript/component/layout.d.ts +0 -50
  814. package/dist/types/styleD/build/typescript/component/link.d.ts +0 -24
  815. package/dist/types/styleD/build/typescript/component/menu.d.ts +0 -145
  816. package/dist/types/styleD/build/typescript/component/radioGroup.d.ts +0 -85
  817. package/dist/types/styleD/build/typescript/component/select.d.ts +0 -68
  818. package/dist/types/styleD/build/typescript/component/tagTable.d.ts +0 -53
  819. package/dist/types/styleD/build/typescript/component/templateComponent.d.ts +0 -10
  820. package/dist/types/styleD/build/typescript/component/textArea.d.ts +0 -48
  821. package/dist/types/styleD/build/typescript/component/textInput.d.ts +0 -49
  822. package/dist/types/styleD/build/typescript/component/topBar.d.ts +0 -195
  823. package/dist/types/styleD/build/typescript/component/typography.d.ts +0 -7
  824. package/dist/types/styleD/build/typescript/component/userMenu.d.ts +0 -37
  825. package/dist/types/styleD/build/typescript/semantic/breakpoints.d.ts +0 -9
  826. package/dist/types/styleD/build/typescript/semantic/colors.d.ts +0 -83
  827. package/dist/types/styleD/build/typescript/semantic/grid.d.ts +0 -21
  828. package/dist/types/styleD/build/typescript/semantic/shadow.d.ts +0 -7
  829. package/dist/types/styleD/build/typescript/semantic/sizing.d.ts +0 -31
  830. package/dist/types/styleD/build/typescript/semantic/typography.d.ts +0 -381
  831. package/dist/types/styleD/stories/base/Radius.d.ts +0 -1
  832. package/dist/types/styleD/stories/base/Sizing.d.ts +0 -1
  833. package/dist/types/styleD/stories/base/Spacing.d.ts +0 -1
  834. package/dist/types/styleD/stories/base/Typography.d.ts +0 -1
  835. package/dist/types/styleD/stories/base/storybookColorPalette.d.ts +0 -19
  836. package/dist/types/styleD/stories/semantic/Breakpoints.d.ts +0 -15
  837. package/dist/types/styleD/stories/semantic/Shadow.d.ts +0 -1
  838. package/dist/types/styleD/stories/semantic/Sizing.d.ts +0 -1
  839. package/dist/types/styleD/stories/semantic/TypographyPresets.d.ts +0 -1
  840. package/dist/types/styleD/utils/semantic/mq.test.d.ts +0 -1
  841. package/dist/types/styleD/utils/semantic/typography.d.ts +0 -9
  842. package/dist/types/styleD/utils/semantic/typography.test.d.ts +0 -1
  843. package/dist/types/templates/component/TemplateComponent.d.ts +0 -2
  844. package/dist/types/templates/component/sandbox.d.ts +0 -5
  845. package/dist/types/templates/component/styles.d.ts +0 -7
  846. package/dist/types/templates/component/types.d.ts +0 -5
  847. package/dist/types/util/mergeDeep.d.ts +0 -1
  848. package/dist/types/util/reset.d.ts +0 -1
  849. package/dist/types/util/storybook/sandbox/Sandbox.d.ts +0 -14
  850. package/dist/types/util/storybook/styles.d.ts +0 -1
  851. package/dist/types/util/types.d.ts +0 -34
  852. package/dist/types/util/useResize.d.ts +0 -1
  853. package/dist/types/utils.d.ts +0 -8
  854. package/dist/util/reset.css.cjs +0 -5
  855. package/dist/util/reset.css.js +0 -3
  856. /package/dist/fonts/{material-symbols-types.ts → materialSymbolsTypes.ts} +0 -0
@@ -1,20 +0,0 @@
1
- /**
2
- * Select component entry point
3
- *
4
- * Peer dependencies required to use these components:
5
- * - `@emotion/react`
6
- * - `react`
7
- * - `react-dom`
8
- * - `react-aria-components`
9
- * - `typescript`
10
- *
11
- * See the `peerDependencies` section of package.json for compatible versions.
12
- *
13
- * If you only need the built CSS (./component/select.css),
14
- * you don't need to install these.
15
- */
16
- export { Option, Select } from './components/Select/Select';
17
- export type { OptionProps, SelectProps } from './components/Select/types';
18
- export type { PartialSelectTheme as SelectTheme } from './components/Select/styles';
19
- export { componentSelect } from './styleD/build/typescript/component/select';
20
- export type { ComponentSelect } from './styleD/build/typescript/component/select';
@@ -1,22 +0,0 @@
1
- /**
2
- * Tag picker components entry point
3
- *
4
- * Peer dependencies required to use these components:
5
- * - `@emotion/react`
6
- * - `react`
7
- * - `react-aria-components`
8
- * - `react-dom`
9
- * - `typescript`
10
- *
11
- * See the `peerDependencies` section of package.json for compatible versions.
12
- *
13
- * If you only need the built CSS (./component/tagTable.css, ./component/tagAutocomplete.css),
14
- * you don't need to install these.
15
- */
16
- export { Autocomplete } from './components/TagPicker/Autocomplete';
17
- export { TagAutocomplete } from './components/TagPicker/TagAutocomplete';
18
- export { TagTable } from './components/TagPicker/TagTable';
19
- export { componentAutocomplete } from './styleD/build/typescript/component/autocomplete';
20
- export type { ComponentAutocomplete } from './styleD/build/typescript/component/autocomplete';
21
- export { componentTagTable } from './styleD/build/typescript/component/tagTable';
22
- export type { ComponentTagTable } from './styleD/build/typescript/component/tagTable';
@@ -1,20 +0,0 @@
1
- /**
2
- * TextArea component entry point
3
- *
4
- * Peer dependencies required to use these components:
5
- * - `@emotion/react`
6
- * - `react`
7
- * - `react-dom`
8
- * - `react-aria-components`
9
- * - `typescript`
10
- *
11
- * See the `peerDependencies` section of package.json for compatible versions.
12
- *
13
- * If you only need the built CSS (./component/textArea.css),
14
- * you don't need to install these.
15
- */
16
- export { TextArea } from './components/TextArea/TextArea';
17
- export type { TextAreaProps } from './components/TextArea/types';
18
- export type { TextAreaTheme } from './components/TextArea/styles';
19
- export { componentTextArea } from './styleD/build/typescript/component/textArea';
20
- export type { ComponentTextArea } from './styleD/build/typescript/component/textArea';
@@ -1,20 +0,0 @@
1
- /**
2
- * TextInput component entry point
3
- *
4
- * Peer dependencies required to use these components:
5
- * - `@emotion/react`
6
- * - `react`
7
- * - `react-dom`
8
- * - `typescript`
9
- * - `react-aria-components`
10
- *
11
- * See the `peerDependencies` section of package.json for compatible versions.
12
- *
13
- * If you only need the built CSS (./component/textInput.css),
14
- * you don't need to install these.
15
- */
16
- export { TextInput } from './components/TextInput/TextInput';
17
- export type { TextInputProps } from './components/TextInput/types';
18
- export type { TextInputTheme } from './components/TextInput/styles';
19
- export { componentTextInput } from './styleD/build/typescript/component/textInput';
20
- export type { ComponentTextInput } from './styleD/build/typescript/component/textInput';
@@ -1,29 +0,0 @@
1
- /**
2
- * Top Bar components entry point
3
- *
4
- * Peer dependencies required to use these components:
5
- * - `@emotion/react`
6
- * - `react`
7
- * - `react-dom`
8
- * - `react-aria-components`
9
- * - `typescript`
10
- *
11
- * See the `peerDependencies` section of package.json for compatible versions.
12
- *
13
- * If you only need the built CSS (./component/topBar.css),
14
- * you don't need to install these.
15
- */
16
- export { componentTopBar } from './styleD/build/typescript/component/topBar';
17
- export type { ComponentTopBar } from './styleD/build/typescript/component/topBar';
18
- export { TopBarToolName } from './components/TopBar/TopBarToolName/TopBarToolName';
19
- export type { TopBarToolNameProps } from './components/TopBar/TopBarToolName/types';
20
- export type { PartialTopBarToolNameTheme as TopBarToolNameTheme } from './components/TopBar/TopBarToolName/styles';
21
- export { TopBarNavigation } from './components/TopBar/TopBarNavigation/TopBarNavigation';
22
- export type { TopBarNavigationProps } from './components/TopBar/TopBarNavigation/types';
23
- export type { PartialTopBarNavigationTheme as TopBarNavigationTheme } from './components/TopBar/TopBarNavigation/styles';
24
- export { TopBarItem } from './components/TopBar/TopBarItem/TopBarItem';
25
- export type { TopBarItemProps } from './components/TopBar/TopBarItem/types';
26
- export type { PartialTopBarItemTheme as TopBarItemTheme } from './components/TopBar/TopBarItem/styles';
27
- export { TopBar, TopBarContainerLeft, TopBarContainerRight, } from './components/TopBar/TopBar';
28
- export type { TopBarProps } from './components/TopBar/types';
29
- export type { PartialTopBarTheme as TopBarTheme } from './components/TopBar/styles';
@@ -1,19 +0,0 @@
1
- /**
2
- * Typography component entry point
3
- *
4
- * Peer dependencies required to use these components:
5
- * - `@emotion/react`
6
- * - `react`
7
- * - `react-dom`
8
- * - `typescript`
9
- *
10
- * See the `peerDependencies` section of package.json for compatible versions.
11
- *
12
- * If you only need the built CSS (./component/typography.css),
13
- * you don't need to install these.
14
- */
15
- export { Typography } from './components/Typography/Typography';
16
- export type { TypographyProps } from './components/Typography/types';
17
- export type { PartialTypographyTheme as TypographyTheme } from './components/Typography/styles';
18
- export { componentTypography } from './styleD/build/typescript/component/typography';
19
- export type { ComponentTypography } from './styleD/build/typescript/component/typography';
@@ -1,18 +0,0 @@
1
- /**
2
- * User Menu components entry point
3
- *
4
- * Peer dependencies required to use these components:
5
- * - `@emotion/react`
6
- * - `react`
7
- * - `react-aria-components`
8
- * - `react-dom`
9
- * - `typescript`
10
- *
11
- * See the `peerDependencies` section of package.json for compatible versions.
12
- *
13
- * If you only need the built CSS (./component/userMenu.css, ./component/userMenu.css),
14
- * you don't need to install these.
15
- */
16
- export { UserMenu } from './components/UserMenu/UserMenu';
17
- export { componentUserMenu } from './styleD/build/typescript/component/userMenu';
18
- export type { ComponentUserMenu } from './styleD/build/typescript/component/userMenu';
@@ -1,2 +0,0 @@
1
- import type { AlertBannerProps } from './types';
2
- export declare function AlertBanner({ level, showIcon, icon, closeButtonProps, children, theme, cssOverrides, className, ...props }: AlertBannerProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- export declare const componentName = "AlertBanner";
2
- export declare const componentTsx = "import { AlertBanner } from '@guardian/stand/AlertBanner';\n\nexport const Component = () => (\n\t<>\n\t\t<AlertBanner level=\"information\">\n\t\t\tYou are working in the CODE Environment\n\t\t</AlertBanner>\n\t\t<AlertBanner level=\"success\" showIcon>\n\t\t\tYour changes have been published.\n\t\t</AlertBanner>\n\t\t<AlertBanner\n\t\t\tlevel=\"error\"\n\t\t\tshowIcon\n\t\t\tcloseButtonProps={{ onPress: () => alert('Dismissed') }}\n\t\t>\n\t\t\tUnable to save changes.\n\t\t</AlertBanner>\n\t</>\n);\n";
3
- export declare const componentCss = "\n/* import the alertbanner styles */\n@import '@guardian/stand/component/alertBanner.css';\n\n.stand-alert-banner {\n\tdisplay: var(--component-alert-banner-shared-display);\n\talign-items: var(--component-alert-banner-shared-align-items);\n\tjustify-content: var(--component-alert-banner-shared-justify-content);\n\tpadding: var(--component-alert-banner-shared-padding-top)\n\t\tvar(--component-alert-banner-shared-padding-right)\n\t\tvar(--component-alert-banner-shared-padding-bottom)\n\t\tvar(--component-alert-banner-shared-padding-left);\n\twidth: var(--component-alert-banner-shared-width);\n\theight: var(--component-alert-banner-shared-height);\n}\n\n.stand-alert-banner-content {\n\tdisplay: var(--component-alert-banner-shared-content-display);\n\tjustify-content: var(--component-alert-banner-shared-content-justify-content);\n\tgap: var(--component-alert-banner-shared-content-gap);\n\tflex: var(--component-alert-banner-shared-content-flex);\n\theight: var(--component-alert-banner-shared-content-height);\n\talign-items: var(--component-alert-banner-shared-content-align-items);\n\tcolor: var(--component-alert-banner-shared-content-color);\n\tfont: var(--component-alert-banner-shared-content-typography-font);\n\tletter-spacing: var(--component-alert-banner-shared-content-typography-letter-spacing);\n\tfont-variation-settings: 'wdth'\n\t\tvar(--component-alert-banner-shared-content-typography-font-width);\n}\n\n.stand-alert-banner-content > .material-symbols {\n\tfont-size: 1rem;\n\tcolor: var(--component-alert-banner-shared-content-icon-color);\n}\n\n.stand-alert-banner-information {\n\tbackground-color: var(--component-alert-banner-information-background-color);\n}\n\n.stand-alert-banner-success {\n\tbackground-color: var(--component-alert-banner-success-background-color);\n}\n\n.stand-alert-banner-warning {\n\tbackground-color: var(--component-alert-banner-warning-background-color);\n}\n\n.stand-alert-banner-error {\n\tbackground-color: var(--component-alert-banner-error-background-color);\n}\n\n/* see IconButton for example of styling close button */\n.stand-alert-banner-close {\n\tborder: 0;\n\tbackground: transparent;\n\tcursor: pointer;\n\tpadding: 0.125rem;\n}\n";
4
- export declare const componentHtml = "<div class=\"container flow-column\">\n\t<div class=\"stand-alert-banner stand-alert-banner-information\">\n\t\t<div class=\"stand-alert-banner-content\">\n\t\t\tYou are working in the CODE Environment\n\t\t</div>\n\t</div>\n\n\t<div class=\"stand-alert-banner stand-alert-banner-success\">\n\t\t<div class=\"stand-alert-banner-content\">\n\t\t\t<span class=\"material-symbols\">sentiment_satisfied</span>\n\t\t\tYour changes have been published.\n\t\t</div>\n\t</div>\n\n\t<div class=\"stand-alert-banner stand-alert-banner-error\">\n\t\t<div class=\"stand-alert-banner-content\">\n\t\t\t<span class=\"material-symbols\">warning</span>\n\t\t\tUnable to save changes.\n\t\t</div>\n\t\t<button class=\"stand-alert-banner-close\" aria-label=\"Close alert banner\">x</button>\n\t</div>\n</div>\n";
5
- export declare const componentJs = "\nimport { componentAlertBanner } from \"@guardian/stand\";\n\nconst sheet = new CSSStyleSheet();\n\nsheet.replaceSync(`\n\t.js-stand-alert-banner {\n\t\tdisplay: ${componentAlertBanner.shared.display};\n\t\talign-items: ${componentAlertBanner.shared.alignItems};\n\t\tjustify-content: ${componentAlertBanner.shared.justifyContent};\n\t\tpadding: ${componentAlertBanner.shared.padding.top}\n\t\t\t${componentAlertBanner.shared.padding.right}\n\t\t\t${componentAlertBanner.shared.padding.bottom}\n\t\t\t${componentAlertBanner.shared.padding.left};\n\t\twidth: ${componentAlertBanner.shared.width};\n\t\theight: ${componentAlertBanner.shared.height};\n\t}\n\n\t.js-stand-alert-banner-content {\n\t\tdisplay: ${componentAlertBanner.shared.content.display};\n\t\tjustify-content: ${componentAlertBanner.shared.content.justifyContent};\n\t\tgap: ${componentAlertBanner.shared.content.gap};\n\t\tflex: ${componentAlertBanner.shared.content.flex};\n\t\theight: ${componentAlertBanner.shared.content.height};\n\t\talign-items: ${componentAlertBanner.shared.content.alignItems};\n\t\tcolor: ${componentAlertBanner.shared.content.color};\n\t\tfont: ${componentAlertBanner.shared.content.typography.font};\n\t\tletter-spacing: ${componentAlertBanner.shared.content.typography.letterSpacing};\n\t\tfont-variation-settings: 'wdth' ${componentAlertBanner.shared.content.typography.fontWidth};\n\t}\n\n\t.js-stand-alert-banner-content > .material-symbols {\n\t\tfont-size: 1rem;\n\t\tcolor: ${componentAlertBanner.shared.content.icon.color};\n\t}\n\n\t.js-stand-alert-banner-information {\n\t\tbackground-color: ${componentAlertBanner.information.backgroundColor};\n\t}\n\n\t.js-stand-alert-banner-success {\n\t\tbackground-color: ${componentAlertBanner.success.backgroundColor};\n\t}\n\n\t.js-stand-alert-banner-error {\n\t\tbackground-color: ${componentAlertBanner.error.backgroundColor};\n\t}\n\n\t/* see IconButton for example of styling close button */\n\t.js-stand-alert-banner-close {\n\t\tborder: 0;\n\t\tbackground: transparent;\n\t\tcursor: pointer;\n\t\tpadding: 0.125rem;\n\t}\n`);\n\ndocument.adoptedStyleSheets.push(sheet);\n\ndocument.getElementById(\"app\").innerHTML = `\n\t<div class=\"container flow-column\">\n\t\t<div class=\"js-stand-alert-banner js-stand-alert-banner-information\">\n\t\t\t<div class=\"js-stand-alert-banner-content\">\n\t\t\t\tYou are working in the CODE Environment\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class=\"js-stand-alert-banner js-stand-alert-banner-success\">\n\t\t\t<div class=\"js-stand-alert-banner-content\">\n\t\t\t\t<span class=\"material-symbols\">sentiment_satisfied</span>\n\t\t\t\tYour changes have been published.\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class=\"js-stand-alert-banner js-stand-alert-banner-error\">\n\t\t\t<div class=\"js-stand-alert-banner-content\">\n\t\t\t\t<span class=\"material-symbols\">warning</span>\n\t\t\t\tUnable to save changes.\n\t\t\t</div>\n\t\t\t<button class=\"js-stand-alert-banner-close\" aria-label=\"Close alert banner\">x</button>\n\t\t</div>\n\t</div>\n`;\n";
@@ -1,9 +0,0 @@
1
- import type { SerializedStyles } from '@emotion/react';
2
- import type { ComponentAlertBanner } from '../../styleD/build/typescript/component/alertBanner';
3
- import type { DeepPartial, Prettify } from '../../util/types';
4
- import type { AlertBannerProps } from './types';
5
- export type AlertBannerTheme = Prettify<ComponentAlertBanner>;
6
- export type PartialAlertBannerTheme = Prettify<DeepPartial<AlertBannerTheme>>;
7
- export declare const defaultAlertBannerTheme: AlertBannerTheme;
8
- export declare const alertBannerStyles: (theme: AlertBannerTheme, { level }: Required<Pick<AlertBannerProps, 'level'>>) => SerializedStyles;
9
- export declare const alertBannerContentStyles: (theme: AlertBannerTheme) => SerializedStyles;
@@ -1,27 +0,0 @@
1
- import type { IconProps } from '../../Icon';
2
- import type { IconButtonProps } from '../../IconButton';
3
- import type { DefaultPropsWithChildren, Prettify } from '../../util/types';
4
- import type { AlertBannerTheme } from './styles';
5
- export interface AlertBannerProps extends DefaultPropsWithChildren<AlertBannerTheme> {
6
- /**
7
- * The severity level of the AlertBanner, which determines its styling.
8
- * This is a required prop.
9
- * Levels: 'error', 'success', 'information', 'warning
10
- */
11
- level: keyof Omit<AlertBannerTheme, 'shared'>;
12
- /**
13
- * Indicates whether the AlertBanner has an icon.
14
- * Icon is based on the level of the AlertBanner
15
- */
16
- showIcon?: boolean;
17
- /**
18
- * Override the default icon for the message by providing a custom icon, for example when not using material symbols.
19
- * This can be either a string (for material symbols) or an SVG element.
20
- * Passed to the Icon component, so can be either a string (for material symbols) or an SVG element.
21
- */
22
- icon?: IconProps['symbol'] | Exclude<IconProps['children'], string>;
23
- /**
24
- * Optional props for the close button. If provided, a close button will be rendered in the AlertBanner, and these props will be passed to the IconButton component.
25
- */
26
- closeButtonProps?: Prettify<Partial<IconButtonProps>>;
27
- }
@@ -1,2 +0,0 @@
1
- import { type AvatarProps } from './types';
2
- export declare function Avatar({ src, initials, alt, size, color, theme, cssOverrides, ...props }: AvatarProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- export declare const componentName = "Avatar";
2
- export declare const componentTsx = "import { Avatar } from '@guardian/stand/Avatar';\n\nexport const Component = () => {\n\treturn (\n\t\t<>\n\t\t\t<Avatar initials=\"AB\" color=\"blue\" />\n\t\t\t<Avatar\n\t\t\t\tsrc=\"https://uploads.guimcode.co.uk/2026/01/27/f85e2e477ce54f4c3b671faa5cd21673aa9f8072fddb5d70a73e6038dc812eec.jpg\"\n\t\t\t\talt=\"Mahesh Makani\"\n\t\t\t\tinitials=\"MM\"\n\t\t\t\tcolor=\"blue\"\n\t\t\t\tsize=\"md\"\n\t\t\t/>\n\t\t</>\n\t);\n};\n";
3
- export declare const componentCss = "@import \"@guardian/stand/component/avatar.css\";\n\n /* example setup of avatar style using md size and blue color */\n .stand-avatar {\n \tdisplay: var(--component-avatar-shared-display);\n \talign-items: var(--component-avatar-shared-align-items);\n \tjustify-content: var(--component-avatar-shared-justify-content);\n \toverflow: var(--component-avatar-shared-overflow);\n \tflex-shrink: var(--component-avatar-shared-flex-shrink);\n \tborder-radius: var(--component-avatar-shared-border-radius);\n \tbackground-color: var(--component-avatar-shared-color-blue-background);\n \twidth: var(--component-avatar-md-size);\n \theight: var(--component-avatar-md-size);\n \tborder: var(--component-avatar-shared-color-blue-border);\n \tcolor: var(--component-avatar-shared-color-blue-text);\n \tfont: var(--component-avatar-md-typography-font);\n \tletter-spacing: var(--component-avatar-md-typography-letter-spacing);\n \tfont-variation-settings: \"wdth\"\n \tvar(--component-avatar-md-typography-font-width);\n }\n\n /* example setup for avatar image */\n .stand-avatar > img {\n \twidth: 100%;\n \theight: 100%;\n \tobject-fit: cover;\n }";
4
- export declare const componentHtml = "<div class=\"container\">\n\t<div class=\"stand-avatar\">AB</div>\n\t<div class=\"stand-avatar\">\n\t\t<img\n\t\t\tsrc=\"https://uploads.guimcode.co.uk/2026/01/27/f85e2e477ce54f4c3b671faa5cd21673aa9f8072fddb5d70a73e6038dc812eec.jpg\"\n\t\t\talt=\"Mahesh Makani\"\n\t\t/>\n\t</div>\n</div>";
5
- export declare const componentJs = "\n\t// for ts/js\n\timport { componentAvatar } from \"@guardian/stand\";\n\n\tconst style = `\n\tdisplay: ${componentAvatar.shared.display};\n\talign-items: ${componentAvatar.shared.alignItems};\n\tjustify-content: ${componentAvatar.shared.justifyContent};\n\toverflow: ${componentAvatar.shared.overflow};\n\tflex-shrink: ${componentAvatar.shared.flexShrink};\n\tborder-radius: ${componentAvatar.shared.borderRadius};\n\tbackground-color: ${componentAvatar.shared.color.blue.background};\n\twidth: ${componentAvatar.md.size};\n\theight: ${componentAvatar.md.size};\n\tborder: ${componentAvatar.shared.color.blue.border};\n\tcolor: ${componentAvatar.shared.color.blue.text};\n\tfont: ${componentAvatar.md.typography.font};\n\tletter-spacing: ${componentAvatar.md.typography.letterSpacing};\n\tfont-variation-settings: 'wdth' ${componentAvatar.md.typography.fontWidth};\n\t`;\n\n\tconst imgStyle = `\n\twidth: 100%;\n\theight: 100%;\n\tobject-fit: cover;\n\t`;\n\n\t// e.g. adding to DOM using vanilla JS styles\n\tdocument.getElementById(\"app\").innerHTML = `\n\n\t<div class=\"container\">\n\t\t<div style=\"${style}\">AB</div>\n\t\t<div style=\"${style}\">\n\t\t<img\n\t\t\tstyle=\"${imgStyle}\"\n\t\t\tsrc=\"https://uploads.guimcode.co.uk/2026/01/27/f85e2e477ce54f4c3b671faa5cd21673aa9f8072fddb5d70a73e6038dc812eec.jpg\"\n\t\t\talt=\"Mahesh Makani\"\n\t\t/>\n\t\t</div>\n\t</div>\n`;\n";
@@ -1,9 +0,0 @@
1
- import type { SerializedStyles } from '@emotion/react';
2
- import type { ComponentAvatar } from '../../styleD/build/typescript/component/avatar';
3
- import type { DeepPartial, Prettify } from '../../util/types';
4
- import type { AvatarProps } from './types';
5
- export type AvatarTheme = Prettify<ComponentAvatar>;
6
- export type PartialAvatarTheme = Prettify<DeepPartial<AvatarTheme>>;
7
- export declare const defaultAvatarTheme: AvatarTheme;
8
- export declare const avatarImageStyles: SerializedStyles;
9
- export declare const avatarStyles: (theme: AvatarTheme, { size, color }: Required<Pick<AvatarProps, 'size' | 'color'>>) => SerializedStyles;
@@ -1,45 +0,0 @@
1
- import type { ComponentAvatar } from '../../styleD/build/typescript/component/avatar';
2
- import type { DefaultProps } from '../../util/types';
3
- import type { AvatarTheme } from './styles';
4
- export type AvatarColors = keyof ComponentAvatar['shared']['color'];
5
- export declare const avatarColors: AvatarColors[];
6
- interface AvatarBaseProps extends DefaultProps<AvatarTheme> {
7
- /**
8
- * Size variant of the avatar
9
- */
10
- size?: keyof Omit<AvatarTheme, 'shared'>;
11
- /**
12
- * Color variant of the avatar
13
- */
14
- color?: AvatarColors;
15
- }
16
- interface AvatarWithImage extends AvatarBaseProps {
17
- /**
18
- * Image URL for the avatar
19
- */
20
- src: string;
21
- /**
22
- * Alternative text for the image (required when src is provided)
23
- */
24
- alt: string;
25
- /**
26
- * Initials to display when image fails to load (optional)
27
- */
28
- initials?: string;
29
- }
30
- interface AvatarWithInitials extends AvatarBaseProps {
31
- /**
32
- * Image URL for the avatar (optional)
33
- */
34
- src?: never;
35
- /**
36
- * Alternative text for the image (optional)
37
- */
38
- alt?: string;
39
- /**
40
- * Initials to display (required, typically 1-2 characters)
41
- */
42
- initials: string;
43
- }
44
- export type AvatarProps = AvatarWithImage | AvatarWithInitials;
45
- export {};
@@ -1,2 +0,0 @@
1
- import { type AvatarButtonProps } from './types';
2
- export declare function AvatarButton(props: AvatarButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- export declare const componentName = "AvatarButton";
2
- export declare const componentTsx = "import { AvatarButton } from '@guardian/stand/AvatarButton';\n\nexport const Component = () => {\n\treturn (\n\t\t<>\n\t\t\t<AvatarButton initials=\"AB\" color=\"blue\" />\n\t\t\t<AvatarButton\n\t\t\t\tsrc=\"https://uploads.guimcode.co.uk/2026/01/27/f85e2e477ce54f4c3b671faa5cd21673aa9f8072fddb5d70a73e6038dc812eec.jpg\"\n\t\t\t\talt=\"Mahesh Makani\"\n\t\t\t\tinitials=\"MM\"\n\t\t\t\tcolor=\"blue\"\n\t\t\t\tsize=\"md\"\n\t\t\t/>\n\t\t</>\n\t);\n};\n";
3
- export declare const componentCss = "@import \"@guardian/stand/component/avatar.css\";\n\n /* example setup of AvatarButton style using md size and blue color */\n .stand-AvatarButton {\n \tdisplay: var(--component-avatar-shared-display);\n \talign-items: var(--component-avatar-shared-align-items);\n \tjustify-content: var(--component-avatar-shared-justify-content);\n \toverflow: var(--component-avatar-shared-overflow);\n \tflex-shrink: var(--component-avatar-shared-flex-shrink);\n \tborder-radius: var(--component-avatar-shared-border-radius);\n \tbackground-color: var(--component-avatar-shared-color-blue-background);\n \twidth: var(--component-avatar-md-size);\n \theight: var(--component-avatar-md-size);\n \tborder: var(--component-avatar-shared-color-blue-border);\n \tcolor: var(--component-avatar-shared-color-blue-text);\n \tfont: var(--component-avatar-md-typography-font);\n \tletter-spacing: var(--component-avatar-md-typography-letter-spacing);\n \tfont-variation-settings: \"wdth\"\n \tvar(--component-avatar-md-typography-font-width);\n\n\t\tborder:\t var(--component-avatar-shared-button-border);\n\t\tpadding: var(--component-avatar-shared-button-padding);\n\t\tcursor: var(--component-avatar-shared-button-cursor);\n }\n\n /* example setup for AvatarButton image */\n .stand-AvatarButton > img {\n \twidth: 100%;\n \theight: 100%;\n \tobject-fit: cover;\n }";
4
- export declare const componentHtml = "<div class=\"container\">\n\t<button href=\"#\" class=\"stand-AvatarButton\">AB</button>\n\t<button href=\"#\" class=\"stand-AvatarButton\">\n\t\t<img\n\t\t\tsrc=\"https://uploads.guimcode.co.uk/2026/01/27/f85e2e477ce54f4c3b671faa5cd21673aa9f8072fddb5d70a73e6038dc812eec.jpg\"\n\t\t\talt=\"Mahesh Makani\"\n\t\t/>\n\t</button>\n</div>";
5
- export declare const componentJs = "\n\t// for ts/js\n\timport { componentAvatar } from \"@guardian/stand\";\n\n\tconst style = `\n\tdisplay: ${componentAvatar.shared.display};\n\talign-items: ${componentAvatar.shared.alignItems};\n\tjustify-content: ${componentAvatar.shared.justifyContent};\n\toverflow: ${componentAvatar.shared.overflow};\n\tflex-shrink: ${componentAvatar.shared.flexShrink};\n\tborder-radius: ${componentAvatar.shared.borderRadius};\n\tbackground-color: ${componentAvatar.shared.color.blue.background};\n\twidth: ${componentAvatar.md.size};\n\theight: ${componentAvatar.md.size};\n\tborder: ${componentAvatar.shared.color.blue.border};\n\tcolor: ${componentAvatar.shared.color.blue.text};\n\tfont: ${componentAvatar.md.typography.font};\n\tletter-spacing: ${componentAvatar.md.typography.letterSpacing};\n\tfont-variation-settings: 'wdth' ${componentAvatar.md.typography.fontWidth};\n\n\tbackground: ${componentAvatar.shared.button.background};\n\tborder: ${componentAvatar.shared.button.border};\n\tpadding: ${componentAvatar.shared.button.padding};\n\tcursor: ${componentAvatar.shared.button.cursor};\n\t`;\n\n\tconst imgStyle = `\n\twidth: 100%;\n\theight: 100%;\n\tobject-fit: cover;\n\t`;\n\n\t// e.g. adding to DOM using vanilla JS styles\n\tdocument.getElementById(\"app\").innerHTML = `\n\n\t<div class=\"container\">\n\t\t<button style=\"${style}\">AB</button>\n\t\t<button style=\"${style}\">\n\t\t\t<img\n\t\t\t\tstyle=\"${imgStyle}\"\n\t\t\t\tsrc=\"https://uploads.guimcode.co.uk/2026/01/27/f85e2e477ce54f4c3b671faa5cd21673aa9f8072fddb5d70a73e6038dc812eec.jpg\"\n\t\t\t\talt=\"Mahesh Makani\"\n\t\t\t/>\n\t\t</button>\n\t</div>\n`;\n";
@@ -1,6 +0,0 @@
1
- import type { SerializedStyles } from '@emotion/react';
2
- import type { AvatarTheme, PartialAvatarTheme } from '../Avatar/styles';
3
- export type AvatarButtonTheme = AvatarTheme;
4
- export type PartialAvatarButtonTheme = PartialAvatarTheme;
5
- export declare const defaultAvatarButtonTheme: AvatarButtonTheme;
6
- export declare const avatarButtonStyles: (theme: AvatarButtonTheme) => SerializedStyles;
@@ -1,3 +0,0 @@
1
- import type { ButtonProps as RACButtonProps } from 'react-aria-components';
2
- import type { AvatarProps } from '../Avatar/types';
3
- export type AvatarButtonProps = AvatarProps & Omit<RACButtonProps, 'children'>;
@@ -1,2 +0,0 @@
1
- import { type AvatarLinkProps } from './types';
2
- export declare function AvatarLink(props: AvatarLinkProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- export declare const componentName = "AvatarLink";
2
- export declare const componentTsx = "import { AvatarLink } from '@guardian/stand/AvatarLink';\n\nexport const Component = () => {\n\treturn (\n\t\t<>\n\t\t\t<AvatarLink initials=\"AB\" color=\"blue\" />\n\t\t\t<AvatarLink\n\t\t\t\tsrc=\"https://uploads.guimcode.co.uk/2026/01/27/f85e2e477ce54f4c3b671faa5cd21673aa9f8072fddb5d70a73e6038dc812eec.jpg\"\n\t\t\t\talt=\"Mahesh Makani\"\n\t\t\t\tinitials=\"MM\"\n\t\t\t\tcolor=\"blue\"\n\t\t\t\tsize=\"md\"\n\t\t\t/>\n\t\t</>\n\t);\n};\n";
3
- export declare const componentCss = "@import \"@guardian/stand/component/avatar.css\";\n\n /* example setup of AvatarLink style using md size and blue color */\n .stand-AvatarLink {\n \tdisplay: var(--component-avatar-shared-display);\n \talign-items: var(--component-avatar-shared-align-items);\n \tjustify-content: var(--component-avatar-shared-justify-content);\n \toverflow: var(--component-avatar-shared-overflow);\n \tflex-shrink: var(--component-avatar-shared-flex-shrink);\n \tborder-radius: var(--component-avatar-shared-border-radius);\n \tbackground-color: var(--component-avatar-shared-color-blue-background);\n \twidth: var(--component-avatar-md-size);\n \theight: var(--component-avatar-md-size);\n \tborder: var(--component-avatar-shared-color-blue-border);\n \tcolor: var(--component-avatar-shared-color-blue-text);\n \tfont: var(--component-avatar-md-typography-font);\n \tletter-spacing: var(--component-avatar-md-typography-letter-spacing);\n \tfont-variation-settings: \"wdth\"\n \tvar(--component-avatar-md-typography-font-width);\n\n\t\ttext-decoration: var(--component-avatar-shared-link-text-decoration);\n }\n\n /* example setup for AvatarLink image */\n .stand-AvatarLink > img {\n \twidth: 100%;\n \theight: 100%;\n \tobject-fit: cover;\n }";
4
- export declare const componentHtml = "<div class=\"container\">\n\t<a href=\"#\" class=\"stand-AvatarLink\">AB</a>\n\t<a href=\"#\" class=\"stand-AvatarLink\">\n\t\t<img\n\t\t\tsrc=\"https://uploads.guimcode.co.uk/2026/01/27/f85e2e477ce54f4c3b671faa5cd21673aa9f8072fddb5d70a73e6038dc812eec.jpg\"\n\t\t\talt=\"Mahesh Makani\"\n\t\t/>\n\t</a>\n</div>";
5
- export declare const componentJs = "\n\t// for ts/js\n\timport { componentAvatar } from \"@guardian/stand\";\n\n\tconst style = `\n\tdisplay: ${componentAvatar.shared.display};\n\talign-items: ${componentAvatar.shared.alignItems};\n\tjustify-content: ${componentAvatar.shared.justifyContent};\n\toverflow: ${componentAvatar.shared.overflow};\n\tflex-shrink: ${componentAvatar.shared.flexShrink};\n\tborder-radius: ${componentAvatar.shared.borderRadius};\n\tbackground-color: ${componentAvatar.shared.color.blue.background};\n\twidth: ${componentAvatar.md.size};\n\theight: ${componentAvatar.md.size};\n\tborder: ${componentAvatar.shared.color.blue.border};\n\tcolor: ${componentAvatar.shared.color.blue.text};\n\tfont: ${componentAvatar.md.typography.font};\n\tletter-spacing: ${componentAvatar.md.typography.letterSpacing};\n\tfont-variation-settings: 'wdth' ${componentAvatar.md.typography.fontWidth};\n\n\ttext-decoration: ${componentAvatar.shared.link.textDecoration};\n\t`;\n\n\tconst imgStyle = `\n\twidth: 100%;\n\theight: 100%;\n\tobject-fit: cover;\n\t`;\n\n\t// e.g. adding to DOM using vanilla JS styles\n\tdocument.getElementById(\"app\").innerHTML = `\n\n\t<div class=\"container\">\n\t\t<a href=\"#\" style=\"${style}\">AB</a>\n\t\t<a href=\"#\" style=\"${style}\">\n\t\t\t<img\n\t\t\t\tstyle=\"${imgStyle}\"\n\t\t\t\tsrc=\"https://uploads.guimcode.co.uk/2026/01/27/f85e2e477ce54f4c3b671faa5cd21673aa9f8072fddb5d70a73e6038dc812eec.jpg\"\n\t\t\t\talt=\"Mahesh Makani\"\n\t\t\t/>\n\t\t</a>\n\t</div>\n`;\n";
@@ -1,6 +0,0 @@
1
- import type { SerializedStyles } from '@emotion/react';
2
- import type { AvatarTheme, PartialAvatarTheme } from '../Avatar/styles';
3
- export type AvatarLinkTheme = AvatarTheme;
4
- export type PartialAvatarLinkTheme = PartialAvatarTheme;
5
- export declare const defaultAvatarLinkTheme: AvatarTheme;
6
- export declare const avatarLinkStyles: (theme: AvatarLinkTheme) => SerializedStyles;
@@ -1,3 +0,0 @@
1
- import type { LinkProps as RACLinkProps } from 'react-aria-components';
2
- import type { AvatarProps } from '../Avatar/types';
3
- export type AvatarLinkProps = AvatarProps & RACLinkProps;
@@ -1,2 +0,0 @@
1
- import type { ButtonProps } from './types';
2
- export declare function Button({ variant, size, theme, cssOverrides, icon, ...props }: ButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- export declare const componentName = "Button";
2
- export declare const componentTsx = "import { Button } from '@guardian/stand/Button';\n\nexport const Component = () => (\n\t<>\n\t\t<div className=\"container\">\n\t\t\t<Button onPress={() => alert('Button Clicked from React')}>Button</Button>\n\t\t\t<Button isDisabled onPress={() => alert('Button Clicked from React')}>\n\t\t\t\tDisabled Button\n\t\t\t</Button>\n\t\t</div>\n\t\t<div className=\"container\">\n\t\t\t<Button\n\t\t\t\tonPress={() => alert('Button Clicked from React')}\n\t\t\t\tvariant=\"tertiary\"\n\t\t\t\ticon=\"raven\"\n\t\t\t>\n\t\t\t\tButton with Icon\n\t\t\t</Button>\n\t\t\t<Button\n\t\t\t\tisDisabled\n\t\t\t\tonPress={() => alert('Button Clicked from React')}\n\t\t\t\tvariant=\"tertiary\"\n\t\t\t\ticon=\"owl\"\n\t\t\t>\n\t\t\t\tDisabled Button with Icon\n\t\t\t</Button>\n\t\t</div>\n\t</>\n);\n\n";
3
- export declare const componentCss = "@import '@guardian/stand/component/button.css';\n\n /* shared button styles for all variants */\n .stand-button {\n \tdisplay: var(--component-button-shared-display);\n \t-webkit-appearance: var(--component-button-shared-webkit-appearance);\n \ttext-align: var(--component-button-shared-text-align);\n \tbox-shadow: var(--component-button-shared-box-shadow);\n \ttext-decoration: var(--component-button-shared-text-decoration);\n \tcursor: var(--component-button-shared-cursor);\n \tjustify-content: var(--component-button-shared-justify-content);\n \talign-items: var(--component-button-shared-align-items);\n }\n .stand-button:focus-visible {\n \toutline: var(--component-button-shared-focus-visible-outline);\n \toutline-offset: var(--component-button-shared-focus-visible-outline-offset);\n }\n .stand-button:disabled {\n \tcursor: var(--component-button-shared-disabled-cursor);\n }\n\n /* example setup of button/link button style using md size and emphasised primary variant */\n .stand-button-primary {\n \tcolor: var(--component-button-primary-shared-color);\n \tbackground: var(\n \t\t--component-button-primary-shared-background-color\n \t);\n \theight: var(--component-button-primary-md-height);\n \tpadding: var(--component-button-primary-md-padding-top)\n \tvar(--component-button-primary-md-padding-right)\n \tvar(--component-button-primary-md-padding-bottom)\n \tvar(--component-button-primary-md-padding-left);\n \tfont: var(--component-button-primary-md-typography-font);\n \tletter-spacing: var(\n \t\t--component-button-primary-md-typography-letter-spacing\n \t);\n \tfont-variation-settings: \"wdth\"\n \tvar(--component-button-primary-md-typography-font-width);\n \tborder: var(--component-button-primary-shared-border);\n \tborder-radius: var(\n \t\t--component-button-primary-shared-border-radius\n \t);\n }\n .stand-button-primary:hover {\n \tbackground: var(\n \t\t--component-button-primary-shared-hover-background-color\n \t);\n \tborder: var(--component-button-primary-shared-hover-border);\n }\n .stand-button-primary:active {\n \tbackground: var(\n \t\t--component-button-primary-shared-active-background-color\n \t);\n \tborder: var(--component-button-primary-shared-active-border);\n }\n .stand-button-primary:disabled {\n \tcolor: var(--component-button-primary-shared-disabled-color);\n \tbackground: var(\n \t\t--component-button-primary-shared-disabled-background-color\n \t);\n \tborder: var(--component-button-primary-shared-disabled-border);\n \t}\n \t.stand-button-primary > .material-symbols {\n \tfont-size: var(--component-button-primary-md-icon-size);\n \t}\n \t.stand-button-primary:has(> .material-symbols) {\n \tpadding-left: var(\n \t\t--component-button-primary-md-padding-with-icon-icon-left-left\n \t);\n \tgap: var(--component-button-primary-md-icon-gap);\n }\n\n /* example setup of button/link button style using md size and neutral secondary variant */\n .stand-button-tertiary {\n \tcolor: var(--component-button-tertiary-shared-color);\n \tbackground: var(--component-button-tertiary-shared-background-color);\n \theight: var(--component-button-tertiary-md-height);\n \tpadding: var(--component-button-tertiary-md-padding-top)\n \tvar(--component-button-tertiary-md-padding-right)\n \tvar(--component-button-tertiary-md-padding-bottom)\n \tvar(--component-button-tertiary-md-padding-left);\n \tfont: var(--component-button-tertiary-md-typography-font);\n \tletter-spacing: var(\n \t\t--component-button-tertiary-md-typography-letter-spacing\n \t);\n \tfont-variation-settings: \"wdth\"\n \tvar(--component-button-tertiary-md-typography-font-width);\n \tborder: var(--component-button-tertiary-shared-border);\n \tborder-radius: var(--component-button-tertiary-shared-border-radius);\n }\n .stand-button-tertiary:hover {\n \tbackground: var(\n \t\t--component-button-tertiary-shared-hover-background-color\n \t);\n \tborder: var(--component-button-tertiary-shared-hover-border);\n }\n .stand-button-tertiary:active {\n \tbackground: var(\n \t\t--component-button-tertiary-shared-active-background-color\n \t);\n \tborder: var(--component-button-tertiary-shared-active-border);\n }\n .stand-button-tertiary:disabled {\n \tcolor: var(--component-button-tertiary-shared-disabled-color);\n \tbackground: var(\n \t\t--component-button-tertiary-shared-disabled-background-color\n \t);\n \tborder: var(--component-button-tertiary-shared-disabled-border);\n }\n .stand-button-tertiary > .material-symbols {\n \tfont-size: var(--component-button-tertiary-md-icon-size);\n }\n .stand-button-tertiary:has(> .material-symbols) {\n \tpadding-left: var(\n \t\t--component-button-tertiary-md-padding-with-icon-icon-left-left\n \t);\n \tgap: var(--component-button-tertiary-md-icon-gap);\n }\n\n";
4
- export declare const componentHtml = "<div class=\"container flow-column\">\n <div class=\"container\">\n \t<button class=\"stand-button stand-button-primary\">Button</button>\n \t<button class=\"stand-button stand-button-primary\" disabled>Disabled Button</button>\n </div>\n\n <div class=\"container\">\n \t<button class=\"stand-button stand-button-tertiary\"><span class=\"material-symbols\">raven</span>Button with Icon</button>\n \t<button class=\"stand-button stand-button-tertiary\" disabled><span class=\"material-symbols\">owl</span>Disabled Button with Icon</button>\n </div>\n\n</div>\n";
5
- export declare const componentJs = "\t// for ts/js\n\t\timport { componentButton } from \"@guardian/stand\";\n\n \t// example of creating a stylesheet in js\n \tconst sheet = new CSSStyleSheet();\n\n \t// apply the rules to the sheet\n \tsheet.replaceSync(`\n \t/* shared button styles for all variants */\n \t.js-stand-button {\n \t\tdisplay: ${componentButton.shared.display};\n \t\t-webkit-appearance: ${componentButton.shared.webkitAppearance};\n \t\ttext-align: ${componentButton.shared.textAlign};\n \t\tbox-shadow: ${componentButton.shared.boxShadow};\n \t\ttext-decoration: ${componentButton.shared.textDecoration};\n \t\tcursor: ${componentButton.shared.cursor};\n \t\tjustify-content: ${componentButton.shared.justifyContent};\n \t\talign-items: ${componentButton.shared.alignItems};\n \t}\n \t.js-stand-button:focus-visible {\n \t\toutline: ${componentButton.shared.focusVisible.outline};\n \t\toutline-offset: ${componentButton.shared.focusVisible.outlineOffset};\n \t}\n \t.js-stand-button:disabled {\n \t\tcursor: ${componentButton.shared.disabled.cursor};\n \t}\n\n \t/* example setup of button/link button style using md size and emphasised primary variant */\n \t.js-stand-button-primary {\n \t\tcolor: ${componentButton.primary.shared.color};\n \t\tbackground: ${componentButton.primary.shared.backgroundColor};\n \t\theight: ${componentButton.primary.md.height};\n \t\tpadding: ${componentButton.primary.md.padding.top}\n \t\t${componentButton.primary.md.padding.right}\n \t\t${componentButton.primary.md.padding.bottom}\n \t\t${componentButton.primary.md.padding.left};\n \t\tfont: ${componentButton.primary.md.typography.font};\n \t\tletter-spacing: ${componentButton.primary.md.typography.letterSpacing};\n \t\tfont-variation-settings: 'wdth'\n \t\t${componentButton.primary.md.typography.fontWidth};\n \t\tborder: ${componentButton.primary.shared.border};\n \t\tborder-radius: ${componentButton.primary.shared.borderRadius};\n \t}\n \t.js-stand-button-primary:hover {\n \t\tbackground: ${componentButton.primary.shared.hover.backgroundColor};\n \t\tborder: ${componentButton.primary.shared.hover.border}\n \t}\n \t.js-stand-button-primary:active {\n \t\tbackground: ${componentButton.primary.shared.active.backgroundColor};\n \t\tborder: ${componentButton.primary.shared.active.border};\n \t}\n \t.js-stand-button-primary:disabled {\n \t\tcolor: ${componentButton.primary.shared.disabled.color};\n \t\tbackground: ${componentButton.primary.shared.disabled.backgroundColor};\n \t\tborder: ${componentButton.primary.shared.disabled.border};\n \t}\n \t.js-stand-button-primary > .material-symbols {\n \t\tfont-size: ${componentButton.primary.md.icon.size}\n \t}\n \t.js-stand-button-primary:has(> .material-symbols) {\n \t\tpadding-left: ${componentButton.primary.md.padding.withIcon.iconLeft.left};\n \t\tgap: ${componentButton.primary.md.icon.gap};\n \t}\n\n \t/* example setup of button/link button style using md size and neutral secondary variant */\n \t.js-stand-button-tertiary {\n \t\tcolor: ${componentButton.tertiary.shared.color};\n \t\tbackground: ${componentButton.tertiary.shared.backgroundColor};\n \t\theight: ${componentButton.tertiary.md.height};\n \t\tpadding: ${componentButton.tertiary.md.padding.top}\n \t\t${componentButton.tertiary.md.padding.right}\n \t\t${componentButton.tertiary.md.padding.bottom}\n \t\t${componentButton.tertiary.md.padding.left};\n \t\tfont: ${componentButton.tertiary.md.typography.font};\n \t\tletter-spacing: ${componentButton.tertiary.md.typography.letterSpacing};\n \t\tfont-variation-settings: 'wdth'\n \t\t${componentButton.tertiary.md.typography.fontWidth};\n \t\tborder: ${componentButton.tertiary.shared.border};\n \t\tborder-radius: ${componentButton.tertiary.shared.borderRadius};\n \t}\n \t.js-stand-button-tertiary:hover {\n \t\tbackground: ${componentButton.tertiary.shared.hover.backgroundColor};\n \t\tborder: ${componentButton.tertiary.shared.hover.border};\n \t}\n \t.js-stand-button-tertiary:active {\n \t\tbackground: ${componentButton.tertiary.shared.active.backgroundColor};\n \t\tborder: ${componentButton.tertiary.shared.active.border};\n \t}\n \t.js-stand-button-tertiary:disabled {\n \t\tcolor: ${componentButton.tertiary.shared.disabled.color};\n \t\tbackground: ${componentButton.tertiary.shared.disabled.backgroundColor};\n \t\tborder: ${componentButton.tertiary.shared.disabled.border};\n \t}\n \t.js-stand-button-tertiary > .material-symbols {\n \t\tfont-size: ${componentButton.tertiary.md.icon.size}\n \t}\n \t.js-stand-button-tertiary:has(> .material-symbols) {\n \t\tpadding-left: ${componentButton.tertiary.md.padding.withIcon.iconLeft.left};\n \t\tgap: ${componentButton.tertiary.md.icon.gap};\n \t}\n\n `);\n\n // update the document with the sheet\n document.adoptedStyleSheets.push(sheet);\n\n // modify the dom with the button components using the generated stylesheet\n document.getElementById(\"app\").innerHTML = `<div class=\"container flow-column\">\n \t<div class=\"container\">\n \t\t<button class=\"js-stand-button js-stand-button-primary\">Button</button>\n \t\t<button class=\"js-stand-button js-stand-button-primary\" disabled>Disabled Button</button>\n \t</div>\n \t<div class=\"container\">\n \t\t<button class=\"js-stand-button js-stand-button-tertiary\"><span class=\"material-symbols\">raven</span>Button with Icon</button>\n \t\t<button class=\"js-stand-button js-stand-button-tertiary\" disabled><span class=\"material-symbols\">owl</span>Disabled Button with Icon</button>\n \t</div>\n </div>`;\n\n";
@@ -1,8 +0,0 @@
1
- import type { SerializedStyles } from '@emotion/react';
2
- import type { ComponentButton } from '../../styleD/build/typescript/component/button';
3
- import type { DeepPartial, Prettify } from '../../util/types';
4
- import type { ButtonProps } from './types';
5
- export type ButtonTheme = Prettify<ComponentButton>;
6
- export type PartialButtonTheme = Prettify<DeepPartial<ButtonTheme>>;
7
- export declare const defaultButtonTheme: ButtonTheme;
8
- export declare const buttonStyles: (theme: ButtonTheme, { size, variant }: Required<Pick<ButtonProps, 'size' | 'variant'>>, hasIcon?: boolean, isIconButton?: boolean) => SerializedStyles;
@@ -1,18 +0,0 @@
1
- import type { ButtonProps as RACButtonProps } from 'react-aria-components';
2
- import type { DefaultProps } from '../../util/types';
3
- import type { IconProps } from '../Icon/types';
4
- import type { ButtonTheme } from './styles';
5
- export interface ButtonProps extends DefaultProps<ButtonTheme, RACButtonProps['className']>, RACButtonProps {
6
- /**
7
- * Size variant of the button
8
- */
9
- size?: keyof Omit<ButtonTheme['primary'], 'shared'>;
10
- /**
11
- * Variant of the button
12
- */
13
- variant?: keyof Omit<ButtonTheme, 'shared'>;
14
- /**
15
- * Icon to be rendered within the button. Passed to the Icon component, so can be either a string (for material symbols) or an SVG element.
16
- */
17
- icon?: IconProps['symbol'] | Exclude<IconProps['children'], string>;
18
- }
@@ -1,4 +0,0 @@
1
- import type { Node } from 'prosemirror-model';
2
- export declare const Preview: ({ doc }: {
3
- doc: Node | null;
4
- }) => import("@emotion/react/jsx-runtime").JSX.Element | null;
@@ -1 +0,0 @@
1
- export declare const contributors: string[];
@@ -1,48 +0,0 @@
1
- import type { Node } from 'prosemirror-model';
2
- import type { Command } from 'prosemirror-state';
3
- import type { EditorView } from 'prosemirror-view';
4
- export type TypingFromStartRange = {
5
- start: number;
6
- maxReached: number;
7
- lastPosition: number;
8
- };
9
- export declare const detectNameInText: (text: string, cursorOffset: number, isTypingFromStartRange?: TypingFromStartRange) => {
10
- name: string;
11
- startIndex: number;
12
- endIndex: number;
13
- } | undefined;
14
- export declare function insertChip(text: string, from: number, to: number, type: 'tagged', tagId: string, path?: string, meta?: unknown): Command;
15
- export declare function insertChip(text: string, from: number, to: number, type: 'untagged', tagId?: undefined, meta?: undefined): Command;
16
- export declare const getCurrentText: (doc: Node, currentOffset: number, toOffset: number, isTypingFromStartRange?: TypingFromStartRange) => {
17
- currentTextNode: Node | null;
18
- startOffset: number;
19
- endOffset: number;
20
- selectedText: string;
21
- hasSelection: boolean;
22
- };
23
- export declare const hasHitContributorLimit: (doc: Node, contributorLimit?: number) => boolean;
24
- export type TaggedContributor = {
25
- tagId: string;
26
- label: string;
27
- internalLabel?: string;
28
- path?: string;
29
- meta?: unknown;
30
- };
31
- export declare const addUntaggedContributor: (viewRef: React.MutableRefObject<EditorView | null>, setShowDropdown: React.Dispatch<React.SetStateAction<boolean>>, contributorLimit?: number, isTypingFromStartRange?: TypingFromStartRange) => boolean | undefined;
32
- export declare const addTaggedContributor: (contributor: TaggedContributor, viewRef: React.MutableRefObject<EditorView | null>, setShowDropdown: React.Dispatch<React.SetStateAction<boolean>>, contributorLimit?: number, isTypingFromStartRange?: TypingFromStartRange) => boolean | undefined;
33
- type BylineText = {
34
- type: 'text';
35
- value: string;
36
- };
37
- type BylineContributor = {
38
- type: 'contributor';
39
- value: string;
40
- tagId?: string;
41
- path?: string;
42
- meta?: unknown;
43
- };
44
- type BylinePart = BylineText | BylineContributor;
45
- export type BylineModel = BylinePart[];
46
- export declare const convertBylineModelToNode: (value?: BylineModel) => Node;
47
- export declare const convertNodeToBylineModel: (doc: Node) => BylineModel;
48
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { Plugin } from 'prosemirror-state';
2
- export declare const createPlaceholderPlugin: (text: string) => Plugin<any>;
@@ -1,4 +0,0 @@
1
- import { Plugin } from 'prosemirror-state';
2
- export declare const clipboardPlugin: (allowUntaggedContributors?: boolean, contributorLimit?: number) => Plugin;
3
- export declare const keybindings: () => Plugin<any>;
4
- export declare const bylinePlugin: () => Plugin;
@@ -1,2 +0,0 @@
1
- import { Schema } from 'prosemirror-model';
2
- export declare const bylineEditorSchema: Schema<"text" | "doc" | "chip", any>;
@@ -1,13 +0,0 @@
1
- import type { SerializedStyles } from '@emotion/react';
2
- import type { Node } from 'prosemirror-model';
3
- import { type ComponentByline } from '../../styleD/build/typescript/component/byline';
4
- import type { DeepPartial } from '../../util/types';
5
- export declare const bylineContainerStyles: SerializedStyles;
6
- export declare const bylineEditorStyles: (partialTheme?: DeepPartial<ComponentByline>) => SerializedStyles;
7
- export declare const dropdownContainerStyles: (showDropdown: boolean, partialTheme?: DeepPartial<ComponentByline['dropdown']>) => SerializedStyles;
8
- export declare const dropdownUlStyles: SerializedStyles;
9
- export declare const dropdownLiStyles: (partialTheme?: DeepPartial<ComponentByline['dropdown']>) => SerializedStyles;
10
- export declare const selectedDropdownLiStyles: (partialTheme?: DeepPartial<ComponentByline['dropdown']>) => SerializedStyles;
11
- export declare const previewStyles: SerializedStyles;
12
- export declare const previewFreeTextStyles: SerializedStyles;
13
- export declare const previewContributorStyles: (node: Node) => SerializedStyles;
@@ -1,3 +0,0 @@
1
- import type { ComponentByline } from '../../styleD/build/typescript/component/byline';
2
- import type { DeepPartial, Prettify } from '../../util/types';
3
- export type PartialBylineTheme = Prettify<DeepPartial<ComponentByline>>;
@@ -1,2 +0,0 @@
1
- import type { CheckboxProps } from './types';
2
- export declare function Checkbox({ children, size, isIndeterminate, theme, cssOverrides, ...props }: CheckboxProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import type { CheckboxGroupProps } from './types';
2
- export declare function CheckboxGroup({ size, theme, ...props }: CheckboxGroupProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- export declare const componentName = "CheckboxGroup";
2
- export declare const componentTsx = "import { Checkbox, CheckboxGroup } from '@guardian/stand/Checkbox';\n\nexport const Component = () => (\n\t<>\n\t\t<CheckboxGroup label=\"Notifications\" description=\"Choose what to receive.\">\n\t\t\t<Checkbox value=\"email\">Email</Checkbox>\n\t\t\t<Checkbox value=\"sms\">SMS</Checkbox>\n\t\t\t<Checkbox value=\"push\">Push notification</Checkbox>\n\t\t</CheckboxGroup>\n\n\t\t<CheckboxGroup\n\t\t\tlabel=\"Preferences\"\n\t\t\tsize=\"sm\"\n\t\t\tisInvalid\n\t\t\terror=\"Please select at least one option.\"\n\t\t>\n\t\t\t<Checkbox value=\"news\">News</Checkbox>\n\t\t\t<Checkbox value=\"offers\">Offers</Checkbox>\n\t\t</CheckboxGroup>\n\t</>\n);\n";
3
- export declare const componentCss = "\n/* import the checkbox, form, inline message styles */\n@import '@guardian/stand/component/inlineMessage.css';\n@import '@guardian/stand/component/form.css';\n@import '@guardian/stand/component/checkbox.css';\n\n/* inline message styles - error */\n.stand-inline-message {\n display: var(--component-inline-message-shared-display);\n align-items: var(--component-inline-message-shared-align-items);\n gap: var(--component-inline-message-shared-gap);\n font: var(--component-inline-message-shared-typography-font);\n letter-spacing: var(\n --component-inline-message-shared-typography-letter-spacing\n );\n font-variation-settings: \"wdth\"\n var(--component-inline-message-shared-typography-font-width);\n}\n\n.stand-inline-message > .material-symbols {\n font-size: var(--component-inline-message-shared-icon-size);\n}\n\n.stand-inline-message > svg {\n width: var(--component-inline-message-shared-icon-size);\n height: var(--component-inline-message-shared-icon-size);\n}\n\n.stand-inline-message-error {\n color: var(--component-inline-message-error-color);\n fill: var(--component-inline-message-error-color);\n}\n\n/* form input container styles */\n\n.stand-form-input-container {\n\tdisplay: var(--component-form-input-shared-container-display);\n\tflex-direction: var(--component-form-input-shared-container-flex-direction);\n\tgap: var(--component-form-input-shared-container-gap);\n\twidth: var(--component-form-input-shared-container-width);\n}\n\n.stand-form-input-container > label {\n\tcolor: var(--component-form-input-shared-label-color);\n\tfont: var(--component-form-input-md-label-typography-font);\n\tletter-spacing: var(--component-form-input-md-label-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-form-input-md-label-typography-font-width);\n}\n\n.stand-form-input-container[data-disabled] > label {\n\tcolor: var(--component-form-input-shared-label-disabled-color);\n}\n\n.stand-form-input-container > span.description {\n\tcolor: var(--component-form-input-shared-description-color);\n\tfont: var(--component-form-input-shared-description-typography-font);\n\tletter-spacing: var(--component-form-input-shared-description-typography-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--component-form-input-shared-description-typography-font-width);\n}\n\n.stand-form-input-container[data-disabled] > span.description {\n\tcolor: var(--component-form-input-shared-description-disabled-color);\n}\n\n/* checkbox styles */\n\n.stand-checkbox {\n display: var(--component-checkbox-input-shared-display);\n position: var(--component-checkbox-input-shared-position);\n align-items: var(--component-checkbox-input-shared-align-items);\n gap: var(--component-checkbox-input-shared-gap);\n cursor: var(--component-checkbox-input-shared-cursor);\n color: var(--component-checkbox-input-shared-color);\n}\n\n.stand-checkbox.md {\n font: var(--component-checkbox-input-md-typography-font);\n letter-spacing: var(--component-checkbox-input-md-typography-letter-spacing);\n font-variation-settings: \"wdth\"\n var(--component-checkbox-input-md-typography-font-width);\n}\n\n.stand-checkbox.sm {\n font: var(--component-checkbox-input-sm-typography-font);\n letter-spacing: var(--component-checkbox-input-sm-typography-letter-spacing);\n font-variation-settings: \"wdth\"\n\tvar(--component-checkbox-input-sm-typography-font-width);\n}\n\n.stand-checkbox > label {\n cursor: var(--component-checkbox-input-shared-cursor);\n}\n\n.stand-checkbox-indicator {\n /* Reset browser default styles for checkboxes */\n margin: 0;\n background-color: transparent;\n outline: none;\n\n /* component styles */\n cursor: var(--component-checkbox-input-shared-cursor);\n border: var(--component-checkbox-input-shared-indicator-border);\n border-radius: var(--component-checkbox-input-shared-indicator-border-radius);\n accent-color: var(\n --component-checkbox-input-shared-indicator-selected-background-color\n );\n}\n\n.stand-checkbox.md > .stand-checkbox-indicator {\n width: var(--component-checkbox-input-md-indicator-size);\n height: var(--component-checkbox-input-md-indicator-size);\n}\n\n.stand-checkbox.sm > .stand-checkbox-indicator {\n width: var(--component-checkbox-input-sm-indicator-size);\n height: var(--component-checkbox-input-sm-indicator-size);\n}\n\n/* CheckboxGroup styles */\n\n.stand-checkbox-group {\n\tdisplay: var(--component-checkbox-group-shared-display);\n\tflex-direction: var(--component-checkbox-group-shared-flex-direction);\n}\n\n.stand-checkbox-group.sm {\n\tgap: var(--component-checkbox-group-sm-gap);\n\tmargin-top: var(--component-checkbox-group-sm-margin-top);\n}\n\n.stand-checkbox-group.md {\n\tgap: var(--component-checkbox-group-md-gap);\n\tmargin-top: var(--component-checkbox-group-md-margin-top);\n}\n";
4
- export declare const componentHtml = "<div class=\"container flow-column\">\n\t<div>\n\t\tCheckboxes can be built with the input HTML element, but this can be difficult to style. These examples only show basic size and color customisation.\n\t</div>\n\t<div class=\"stand-form-input-container md\">\n\t\t<label>Notifications</label>\n\t\t<span class=\"description\">Choose what to receive.</span>\n\t\t<div class=\"stand-checkbox-group md\">\n\t\t\t<div class=\"stand-checkbox md\">\n\t\t\t\t<input class=\"stand-checkbox-indicator\" type=\"checkbox\" id=\"email\" name=\"email\" />\n\t\t\t\t<label for=\"email\">Email</label>\n\t\t\t</div>\n\t\t\t<div class=\"stand-checkbox md\">\n\t\t\t\t<input class=\"stand-checkbox-indicator\" type=\"checkbox\" id=\"sms\" name=\"sms\" />\n\t\t\t\t<label for=\"sms\">SMS</label>\n\t\t\t</div>\n\t\t\t<div class=\"stand-checkbox md\">\n\t\t\t\t<input class=\"stand-checkbox-indicator\" type=\"checkbox\" id=\"push\" name=\"push\" />\n\t\t\t\t<label for=\"push\">Push notification</label>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t<div class=\"stand-form-input-container sm\" data-invalid>\n\t\t<label>Preferences</label>\n\t\t<span class=\"description\">Please select at least one option.</span>\n\t\t<div class=\"stand-checkbox-group sm\">\n\t\t\t<div class=\"stand-checkbox sm\">\n\t\t\t\t<input class=\"stand-checkbox-indicator\" type=\"checkbox\" id=\"news\" name=\"news\" />\n\t\t\t\t<label for=\"news\">News</label>\n\t\t\t</div>\n\t\t\t<div class=\"stand-checkbox sm\">\n\t\t\t\t<input class=\"stand-checkbox-indicator\" type=\"checkbox\" id=\"offers\" name=\"offers\" />\n\t\t\t\t<label for=\"offers\">Offers</label>\n\t\t\t</div>\n\t\t</div>\n\t\t<span class=\"stand-inline-message stand-inline-message-error\"><span class=\"material-symbols\">warning</span> Username is already taken</span>\n\t</div>\n</div>\n";
5
- export declare const componentJs = "\nimport { componentCheckbox, componentForm, componentInlineMessage } from \"@guardian/stand\";\n\n// example of creating a stylesheet in js\nconst sheet = new CSSStyleSheet();\n\n// apply the rules to the sheet\nsheet.replaceSync(`\n/* inline message styles - error */\n.js-stand-inline-message {\n display: ${componentInlineMessage.shared.display};\n align-items: ${componentInlineMessage.shared.alignItems};\n gap: ${componentInlineMessage.shared.gap};\n font: ${componentInlineMessage.shared.typography.font};\n letter-spacing: ${componentInlineMessage.shared.typography.letterSpacing};\n font-variation-settings: \"wdth\" ${componentInlineMessage.shared.typography.fontWidth};\n}\n\n.js-stand-inline-message > .material-symbols {\n font-size: ${componentInlineMessage.shared.icon.size};\n}\n\n.js-stand-inline-message > svg {\n width: ${componentInlineMessage.shared.icon.size};\n height: ${componentInlineMessage.shared.icon.size};\n}\n\n.js-stand-inline-message-error {\n color: ${componentInlineMessage.error.color};\n fill: ${componentInlineMessage.error.color};\n}\n\n/* form input container styles */\n\n.js-stand-form-input-container {\n\tdisplay: ${componentForm.input.shared.container.display};\n\tflex-direction: ${componentForm.input.shared.container[\"flex-direction\"]};\n\tgap: ${componentForm.input.shared.container.gap};\n\twidth: ${componentForm.input.shared.container.width};\n}\n\n.js-stand-form-input-container > label {\n\tcolor: ${componentForm.input.shared.label.color};\n\tfont: ${componentForm.input.md.label.typography.font};\n\tletter-spacing: ${componentForm.input.md.label.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentForm.input.md.label.typography.fontWidth};\n}\n\n.js-stand-form-input-container[data-disabled] > label {\n\tcolor: ${componentForm.input.shared.label.disabledColor};\n}\n\n.js-stand-form-input-container > span.description {\n\tcolor: ${componentForm.input.shared.description.color};\n\tfont: ${componentForm.input.shared.description.typography.font};\n\tletter-spacing: ${componentForm.input.shared.description.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentForm.input.shared.description.typography.fontWidth};\n}\n\n.js-stand-form-input-container[data-disabled] > span.description {\n\tcolor: ${componentForm.input.shared.description.disabledColor};\n}\n\n/* checkbox styles */\n\n.js-stand-checkbox {\n display: ${componentCheckbox.input.shared.display};\n position: ${componentCheckbox.input.shared.position};\n align-items: ${componentCheckbox.input.shared.alignItems};\n gap: ${componentCheckbox.input.shared.gap};\n cursor: ${componentCheckbox.input.shared.cursor};\n color: ${componentCheckbox.input.shared.color};\n font: ${componentCheckbox.input.md.typography.font};\n letter-spacing: ${componentCheckbox.input.md.typography.letterSpacing};\n font-variation-settings: \"wdth\" ${componentCheckbox.input.md.typography.fontWidth};\n}\n\n.js-stand-checkbox.sm {\n font: ${componentCheckbox.input.sm.typography.font};\n letter-spacing: ${componentCheckbox.input.sm.typography.letterSpacing};\n font-variation-settings: \"wdth\"\n\t${componentCheckbox.input.sm.typography.fontWidth};\n}\n\n.js-stand-checkbox > label {\n cursor: ${componentCheckbox.input.shared.cursor};\n}\n\n.js-stand-checkbox-indicator {\n /* Reset browser default styles for checkboxes */\n margin: 0;\n background-color: transparent;\n outline: none;\n\n /* component styles */\n cursor: ${componentCheckbox.input.shared.cursor};\n border: ${componentCheckbox.input.shared.indicator.border};\n border-radius: ${componentCheckbox.input.shared.indicator.borderRadius};\n accent-color: ${componentCheckbox.input.shared.indicator.selected.backgroundColor};\n}\n\n.js-stand-checkbox.md > .js-stand-checkbox-indicator {\n width: ${componentCheckbox.input.md.indicator.size};\n height: ${componentCheckbox.input.md.indicator.size};\n}\n\n.js-stand-checkbox.sm > .js-stand-checkbox-indicator {\n width: ${componentCheckbox.input.sm.indicator.size};\n height: ${componentCheckbox.input.sm.indicator.size};\n}\n\n/* CheckboxGroup styles */\n\n.js-stand-checkbox-group {\n\tdisplay: ${componentCheckbox.group.shared.display};\n\tflex-direction: ${componentCheckbox.group.shared[\"flex-direction\"]};\n}\n\n.js-stand-checkbox-group.sm {\n\tgap: ${componentCheckbox.group.sm.gap};\n\tmargin-top: ${componentCheckbox.group.sm.marginTop};\n}\n\n.js-stand-checkbox-group.md {\n\tgap: ${componentCheckbox.group.md.gap};\n\tmargin-top: ${componentCheckbox.group.md.marginTop};\n}\n`);\n\n// update the document with the sheet\ndocument.adoptedStyleSheets.push(sheet);\n\n// modify the dom with the button components using the generated stylesheet\ndocument.getElementById(\"app\").innerHTML = `\n<div class=\"container flow-column\">\n\t<div>\n\t\tCheckboxes can be built with the input HTML element, but this can be difficult to style. These examples only show basic size and color customisation.\n\t</div>\n\t<div class=\"js-stand-form-input-container md\">\n\t\t<label>Notifications</label>\n\t\t<span class=\"description\">Choose what to receive.</span>\n\t\t<div class=\"js-stand-checkbox-group md\">\n\t\t\t<div class=\"js-stand-checkbox md\">\n\t\t\t\t<input class=\"js-stand-checkbox-indicator\" type=\"checkbox\" id=\"email\" name=\"email\" />\n\t\t\t\t<label for=\"email\">Email</label>\n\t\t\t</div>\n\t\t\t<div class=\"js-stand-checkbox md\">\n\t\t\t\t<input class=\"js-stand-checkbox-indicator\" type=\"checkbox\" id=\"sms\" name=\"sms\" />\n\t\t\t\t<label for=\"sms\">SMS</label>\n\t\t\t</div>\n\t\t\t<div class=\"js-stand-checkbox md\">\n\t\t\t\t<input class=\"js-stand-checkbox-indicator\" type=\"checkbox\" id=\"push\" name=\"push\" />\n\t\t\t\t<label for=\"push\">Push notification</label>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t<div class=\"js-stand-form-input-container sm\" data-invalid>\n\t\t<label>Preferences</label>\n\t\t<span class=\"description\">Please select at least one option.</span>\n\t\t<div class=\"js-stand-checkbox-group sm\">\n\t\t\t<div class=\"js-stand-checkbox sm\">\n\t\t\t\t<input class=\"js-stand-checkbox-indicator\" type=\"checkbox\" id=\"news\" name=\"news\" />\n\t\t\t\t<label for=\"news\">News</label>\n\t\t\t</div>\n\t\t\t<div class=\"js-stand-checkbox sm\">\n\t\t\t\t<input class=\"js-stand-checkbox-indicator\" type=\"checkbox\" id=\"offers\" name=\"offers\" />\n\t\t\t\t<label for=\"offers\">Offers</label>\n\t\t\t</div>\n\t\t</div>\n\t\t<span class=\"js-stand-inline-message js-stand-inline-message-error\"><span class=\"material-symbols\">warning</span> Username is already taken</span>\n\t</div>\n</div>\n`;\n\n";
@@ -1,5 +0,0 @@
1
- export declare const componentName = "Checkbox";
2
- export declare const componentTsx = "import { Checkbox } from '@guardian/stand/Checkbox';\n\nexport const Component = () => (\n\t<>\n\t\t<Checkbox>Accept terms and conditions</Checkbox>\n\n\t\t<Checkbox isInvalid>Required option</Checkbox>\n\n\t\t<Checkbox isDisabled>Unavailable option</Checkbox>\n\n\t\t<Checkbox size=\"sm\" isIndeterminate isSelected>\n\t\t\tSelect all\n\t\t</Checkbox>\n\t</>\n);\n";
3
- export declare const componentCss = "\n/* import the checkbox styles */\n@import \"@guardian/stand/component/checkbox.css\";\n\n.stand-checkbox {\n display: var(--component-checkbox-input-shared-display);\n position: var(--component-checkbox-input-shared-position);\n align-items: var(--component-checkbox-input-shared-align-items);\n gap: var(--component-checkbox-input-shared-gap);\n cursor: var(--component-checkbox-input-shared-cursor);\n color: var(--component-checkbox-input-shared-color);\n}\n\n.stand-checkbox.md {\n font: var(--component-checkbox-input-md-typography-font);\n letter-spacing: var(--component-checkbox-input-md-typography-letter-spacing);\n font-variation-settings: \"wdth\"\n var(--component-checkbox-input-md-typography-font-width);\n}\n\n.stand-checkbox.sm {\n font: var(--component-checkbox-input-sm-typography-font);\n letter-spacing: var(--component-checkbox-input-sm-typography-letter-spacing);\n font-variation-settings: \"wdth\"\n\tvar(--component-checkbox-input-sm-typography-font-width);\n}\n\n.stand-checkbox > label {\n cursor: var(--component-checkbox-input-shared-cursor);\n}\n\n.stand-checkbox-indicator {\n /* Reset browser default styles for checkboxes */\n margin: 0;\n background-color: transparent;\n outline: none;\n\n /* component styles */\n cursor: var(--component-checkbox-input-shared-cursor);\n border: var(--component-checkbox-input-shared-indicator-border);\n border-radius: var(--component-checkbox-input-shared-indicator-border-radius);\n accent-color: var(\n --component-checkbox-input-shared-indicator-selected-background-color\n );\n}\n\n.stand-checkbox.md > .stand-checkbox-indicator {\n width: var(--component-checkbox-input-md-indicator-size);\n height: var(--component-checkbox-input-md-indicator-size);\n}\n\n.stand-checkbox.sm > .stand-checkbox-indicator {\n width: var(--component-checkbox-input-sm-indicator-size);\n height: var(--component-checkbox-input-sm-indicator-size);\n}\n";
4
- export declare const componentHtml = "<div class=\"container flow-column\">\n\t<div>\n\t\tCheckboxes can be built with the input HTML element, but this can be difficult to style. These examples only show basic size and color customisation.\n\t</div>\n\t<div class=\"stand-checkbox md\">\n \t<input class=\"stand-checkbox-indicator\" type=\"checkbox\" id=\"terms\" name=\"terms\" />\n \t<label for=\"terms\">Accept terms and conditions</label>\n \t</div>\n\t<div class=\"stand-checkbox sm\">\n \t<input class=\"stand-checkbox-indicator\" type=\"checkbox\" id=\"terms\" name=\"terms\" />\n \t<label for=\"terms\">Required option</label>\n \t</div>\n</div>\n";
5
- export declare const componentJs = "\nimport { componentCheckbox } from \"@guardian/stand\";\n\n// example of creating a stylesheet in js\nconst sheet = new CSSStyleSheet();\n\n// apply the rules to the sheet\nsheet.replaceSync(`\n .js-stand-checkbox {\n\tdisplay: ${componentCheckbox.input.shared.display};\n\tposition: ${componentCheckbox.input.shared.position};\n\talign-items: ${componentCheckbox.input.shared.alignItems};\n\tgap: ${componentCheckbox.input.shared.gap};\n\tcursor: ${componentCheckbox.input.shared.cursor};\n\tcolor: ${componentCheckbox.input.shared.color};\n\tfont: ${componentCheckbox.input.md.typography.font};\n\tletter-spacing: ${componentCheckbox.input.md.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentCheckbox.input.md.typography.fontWidth};\n }\n\n .js-stand-checkbox.md {\n\tfont: ${componentCheckbox.input.md.typography.font};\n\tletter-spacing: ${componentCheckbox.input.md.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentCheckbox.input.md.typography.fontWidth};\n }\n\n .js-stand-checkbox.sm {\n\tfont: ${componentCheckbox.input.sm.typography.font};\n\tletter-spacing: ${componentCheckbox.input.sm.typography.letterSpacing};\n\tfont-variation-settings: \"wdth\" ${componentCheckbox.input.sm.typography.fontWidth};\n }\n\n .js-stand-checkbox > label {\n\tcursor: ${componentCheckbox.input.shared.cursor};\n }\n\n .js-stand-checkbox-indicator {\n\t/* Reset browser default styles for checkboxes */\n\tmargin: 0;\n\tbackground-color: transparent;\n\toutline: none;\n\n\t/* component styles */\n\tcursor: ${componentCheckbox.input.shared.cursor};\n\tborder: ${componentCheckbox.input.shared.indicator.border};\n\tborder-radius: ${componentCheckbox.input.shared.indicator.borderRadius};\n\taccent-color: ${componentCheckbox.input.shared.indicator.selected.backgroundColor};\n }\n\n .js-stand-checkbox.md > .js-stand-checkbox-indicator {\n\twidth: ${componentCheckbox.input.md.indicator.size};\n\theight: ${componentCheckbox.input.md.indicator.size};\n }\n\n .js-stand-checkbox.sm > .js-stand-checkbox-indicator {\n\twidth: ${componentCheckbox.input.sm.indicator.size};\n\theight: ${componentCheckbox.input.sm.indicator.size};\n }\n`);\n\n// update the document with the sheet\ndocument.adoptedStyleSheets.push(sheet);\n\n// modify the dom with the button components using the generated stylesheet\ndocument.getElementById(\"app\").innerHTML = `\n<div class=\"container flow-column\">\n\t<div>\n\t\tCheckboxes can be built with the input HTML element, but this can be difficult to style. These examples only show basic size and color customisation.\n\t</div>\n\t<div class=\"js-stand-checkbox md\">\n\t\t<input class=\"js-stand-checkbox-indicator\" type=\"checkbox\" id=\"terms\" name=\"terms\" />\n\t\t<label for=\"terms\">Accept terms and conditions</label>\n\t</div>\n\t<div class=\"js-stand-checkbox sm\">\n\t\t<input class=\"js-stand-checkbox-indicator\" type=\"checkbox\" id=\"terms\" name=\"terms\" />\n\t\t<label for=\"terms\">Required option</label>\n\t</div>\n</div>\n`;\n\n";