@deriv-com/dds-marketing 0.1.0 → 0.2.0

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 (460) hide show
  1. package/.llm/components/accordion.md +193 -0
  2. package/.llm/components/accordionitem.md +236 -0
  3. package/.llm/components/aspectratio.md +212 -0
  4. package/.llm/components/badge.md +231 -0
  5. package/.llm/components/bottomsheet.md +404 -0
  6. package/.llm/components/breadcrumb.md +197 -0
  7. package/.llm/components/breadcrumbitem.md +178 -0
  8. package/.llm/components/button.md +271 -0
  9. package/.llm/components/buttonicon.md +313 -0
  10. package/.llm/components/card.md +313 -0
  11. package/.llm/components/cardbody.md +409 -0
  12. package/.llm/components/cardbutton.md +259 -0
  13. package/.llm/components/checkbox.md +285 -0
  14. package/.llm/components/divider.md +230 -0
  15. package/.llm/components/dropdownmenu.md +453 -0
  16. package/.llm/components/filterchip.md +314 -0
  17. package/.llm/components/footer.md +408 -0
  18. package/.llm/components/footergroup.md +241 -0
  19. package/.llm/components/grid.md +659 -0
  20. package/.llm/components/icon.md +194 -0
  21. package/.llm/components/link.md +354 -0
  22. package/.llm/components/menuitem.md +218 -0
  23. package/.llm/components/navbar.md +458 -0
  24. package/.llm/components/navbaritem.md +238 -0
  25. package/.llm/components/navbarmenu.md +319 -0
  26. package/.llm/components/navbarmenugroup.md +184 -0
  27. package/.llm/components/navbarpanel.md +255 -0
  28. package/.llm/components/navbarswitcher.md +343 -0
  29. package/.llm/components/navbarswitcheroption.md +156 -0
  30. package/.llm/components/option.md +268 -0
  31. package/.llm/components/pagination.md +361 -0
  32. package/.llm/components/removablechip.md +247 -0
  33. package/.llm/components/row.md +381 -0
  34. package/.llm/components/scroller.md +470 -0
  35. package/.llm/components/searchinput.md +279 -0
  36. package/.llm/components/segmentedcontrol.md +358 -0
  37. package/.llm/components/segmentedcontrolitem.md +272 -0
  38. package/.llm/components/select.md +509 -0
  39. package/.llm/components/selectchip.md +334 -0
  40. package/.llm/components/spinner.md +222 -0
  41. package/.llm/components/stack.md +334 -0
  42. package/.llm/components/statusdot.md +205 -0
  43. package/.llm/components/subdomainnavbar.md +327 -0
  44. package/.llm/components/tab.md +291 -0
  45. package/.llm/components/table.md +660 -0
  46. package/.llm/components/tablebody.md +258 -0
  47. package/.llm/components/tablecell.md +248 -0
  48. package/.llm/components/tablehead.md +248 -0
  49. package/.llm/components/tableheadercell.md +298 -0
  50. package/.llm/components/tablerow.md +285 -0
  51. package/.llm/components/tablist.md +210 -0
  52. package/.llm/components/textarea.md +362 -0
  53. package/.llm/components/textinput.md +467 -0
  54. package/.llm/components/tooltip.md +267 -0
  55. package/.llm/components/typography.md +245 -0
  56. package/.llm/digest/accordion.md +43 -0
  57. package/.llm/digest/accordionitem.md +47 -0
  58. package/.llm/digest/aspectratio.md +47 -0
  59. package/.llm/digest/badge.md +45 -0
  60. package/.llm/digest/bottomsheet.md +69 -0
  61. package/.llm/digest/breadcrumb.md +38 -0
  62. package/.llm/digest/breadcrumbitem.md +43 -0
  63. package/.llm/digest/button.md +48 -0
  64. package/.llm/digest/buttonicon.md +61 -0
  65. package/.llm/digest/card.md +50 -0
  66. package/.llm/digest/cardbody.md +68 -0
  67. package/.llm/digest/cardbutton.md +49 -0
  68. package/.llm/digest/checkbox.md +63 -0
  69. package/.llm/digest/divider.md +52 -0
  70. package/.llm/digest/dropdownmenu.md +67 -0
  71. package/.llm/digest/filterchip.md +68 -0
  72. package/.llm/digest/footer.md +57 -0
  73. package/.llm/digest/footergroup.md +42 -0
  74. package/.llm/digest/grid.md +62 -0
  75. package/.llm/digest/icon.md +45 -0
  76. package/.llm/digest/link.md +59 -0
  77. package/.llm/digest/menuitem.md +46 -0
  78. package/.llm/digest/navbar.md +60 -0
  79. package/.llm/digest/navbaritem.md +54 -0
  80. package/.llm/digest/navbarmenu.md +54 -0
  81. package/.llm/digest/navbarmenugroup.md +40 -0
  82. package/.llm/digest/navbarpanel.md +53 -0
  83. package/.llm/digest/navbarswitcher.md +51 -0
  84. package/.llm/digest/navbarswitcheroption.md +37 -0
  85. package/.llm/digest/option.md +54 -0
  86. package/.llm/digest/pagination.md +71 -0
  87. package/.llm/digest/removablechip.md +51 -0
  88. package/.llm/digest/row.md +60 -0
  89. package/.llm/digest/scroller.md +59 -0
  90. package/.llm/digest/searchinput.md +56 -0
  91. package/.llm/digest/segmentedcontrol.md +59 -0
  92. package/.llm/digest/segmentedcontrolitem.md +59 -0
  93. package/.llm/digest/select.md +92 -0
  94. package/.llm/digest/selectchip.md +68 -0
  95. package/.llm/digest/spinner.md +52 -0
  96. package/.llm/digest/stack.md +56 -0
  97. package/.llm/digest/statusdot.md +46 -0
  98. package/.llm/digest/subdomainnavbar.md +54 -0
  99. package/.llm/digest/tab.md +60 -0
  100. package/.llm/digest/table.md +71 -0
  101. package/.llm/digest/tablebody.md +49 -0
  102. package/.llm/digest/tablecell.md +55 -0
  103. package/.llm/digest/tablehead.md +50 -0
  104. package/.llm/digest/tableheadercell.md +65 -0
  105. package/.llm/digest/tablerow.md +56 -0
  106. package/.llm/digest/tablist.md +46 -0
  107. package/.llm/digest/textarea.md +78 -0
  108. package/.llm/digest/textinput.md +95 -0
  109. package/.llm/digest/tooltip.md +58 -0
  110. package/.llm/digest/typography.md +59 -0
  111. package/.llm/index.md +86 -0
  112. package/.llm/rules.md +122 -0
  113. package/.llm/tokens.md +341 -0
  114. package/AGENTS.md +164 -0
  115. package/LICENSE +21 -0
  116. package/README.md +63 -15
  117. package/dist/components/core/accordion/Accordion.css +10 -0
  118. package/dist/components/core/accordion/Accordion.d.ts +20 -0
  119. package/dist/components/core/accordion/Accordion.js +69 -0
  120. package/dist/components/core/accordion/Accordion.types.d.ts +20 -0
  121. package/dist/components/core/accordion/Accordion.types.js +7 -0
  122. package/dist/components/core/accordion-item/AccordionItem.css +98 -0
  123. package/dist/components/core/accordion-item/AccordionItem.d.ts +44 -0
  124. package/dist/components/core/accordion-item/AccordionItem.js +63 -0
  125. package/dist/components/core/accordion-item/AccordionItem.types.d.ts +32 -0
  126. package/dist/components/core/accordion-item/AccordionItem.types.js +13 -0
  127. package/dist/components/core/accordion-item/accordion-item-impl.css +107 -0
  128. package/dist/components/core/badge/Badge.css +37 -0
  129. package/dist/components/core/badge/Badge.d.ts +37 -0
  130. package/dist/components/core/badge/Badge.js +40 -0
  131. package/dist/components/core/badge/Badge.types.d.ts +24 -0
  132. package/dist/components/core/badge/Badge.types.js +8 -0
  133. package/dist/components/core/badge/badge-impl.css +32 -0
  134. package/dist/components/core/bottom-sheet/BottomSheet.css +178 -0
  135. package/dist/components/core/bottom-sheet/BottomSheet.d.ts +22 -0
  136. package/dist/components/core/bottom-sheet/BottomSheet.js +359 -0
  137. package/dist/components/core/bottom-sheet/BottomSheet.types.d.ts +67 -0
  138. package/dist/components/core/bottom-sheet/BottomSheet.types.js +18 -0
  139. package/dist/components/core/bottom-sheet/bottom-sheet-impl.css +57 -0
  140. package/dist/components/core/breadcrumb/Breadcrumb.css +19 -0
  141. package/dist/components/core/breadcrumb/Breadcrumb.d.ts +16 -0
  142. package/dist/components/core/breadcrumb/Breadcrumb.js +22 -0
  143. package/dist/components/core/breadcrumb/Breadcrumb.types.d.ts +18 -0
  144. package/dist/components/core/breadcrumb/Breadcrumb.types.js +9 -0
  145. package/dist/components/core/breadcrumb-item/BreadcrumbItem.css +34 -0
  146. package/dist/components/core/breadcrumb-item/BreadcrumbItem.d.ts +12 -0
  147. package/dist/components/core/breadcrumb-item/BreadcrumbItem.js +15 -0
  148. package/dist/components/core/breadcrumb-item/BreadcrumbItem.types.d.ts +22 -0
  149. package/dist/components/core/breadcrumb-item/BreadcrumbItem.types.js +9 -0
  150. package/dist/components/core/button/Button.css +141 -0
  151. package/dist/components/core/button/Button.d.ts +25 -0
  152. package/dist/components/core/button/Button.js +28 -0
  153. package/dist/components/core/button/Button.types.d.ts +40 -0
  154. package/dist/components/core/button/Button.types.js +9 -0
  155. package/dist/components/core/button/button-impl.css +46 -0
  156. package/dist/components/core/button-icon/ButtonIcon.css +135 -0
  157. package/dist/components/core/button-icon/ButtonIcon.d.ts +34 -0
  158. package/dist/components/core/button-icon/ButtonIcon.js +117 -0
  159. package/dist/components/core/button-icon/ButtonIcon.types.d.ts +41 -0
  160. package/dist/components/core/button-icon/ButtonIcon.types.js +8 -0
  161. package/dist/components/core/card/Card.css +65 -0
  162. package/dist/components/core/card/Card.d.ts +24 -0
  163. package/dist/components/core/card/Card.js +26 -0
  164. package/dist/components/core/card/Card.types.d.ts +33 -0
  165. package/dist/components/core/card/Card.types.js +7 -0
  166. package/dist/components/core/card-body/CardBody.css +139 -0
  167. package/dist/components/core/card-body/CardBody.d.ts +62 -0
  168. package/dist/components/core/card-body/CardBody.js +97 -0
  169. package/dist/components/core/card-body/CardBody.types.d.ts +61 -0
  170. package/dist/components/core/card-body/CardBody.types.js +15 -0
  171. package/dist/components/core/card-body/card-body-impl.css +87 -0
  172. package/dist/components/core/card-button/CardButton.css +73 -0
  173. package/dist/components/core/card-button/CardButton.d.ts +27 -0
  174. package/dist/components/core/card-button/CardButton.js +37 -0
  175. package/dist/components/core/card-button/CardButton.types.d.ts +24 -0
  176. package/dist/components/core/card-button/CardButton.types.js +7 -0
  177. package/dist/components/core/card-button/card-button-impl.css +39 -0
  178. package/dist/components/core/checkbox/Checkbox.css +149 -0
  179. package/dist/components/core/checkbox/Checkbox.d.ts +21 -0
  180. package/dist/components/core/checkbox/Checkbox.js +97 -0
  181. package/dist/components/core/checkbox/Checkbox.types.d.ts +46 -0
  182. package/dist/components/core/checkbox/Checkbox.types.js +15 -0
  183. package/dist/components/core/checkbox/checkbox-impl.css +90 -0
  184. package/dist/components/core/divider/Divider.css +41 -0
  185. package/dist/components/core/divider/Divider.d.ts +46 -0
  186. package/dist/components/core/divider/Divider.js +51 -0
  187. package/dist/components/core/divider/Divider.types.d.ts +25 -0
  188. package/dist/components/core/divider/Divider.types.js +9 -0
  189. package/dist/components/core/dropdown-menu/DropdownMenu.css +146 -0
  190. package/dist/components/core/dropdown-menu/DropdownMenu.d.ts +22 -0
  191. package/dist/components/core/dropdown-menu/DropdownMenu.js +309 -0
  192. package/dist/components/core/dropdown-menu/DropdownMenu.types.d.ts +62 -0
  193. package/dist/components/core/dropdown-menu/DropdownMenu.types.js +12 -0
  194. package/dist/components/core/dropdown-menu/dropdown-menu-impl.css +70 -0
  195. package/dist/components/core/filter-chip/FilterChip.css +149 -0
  196. package/dist/components/core/filter-chip/FilterChip.d.ts +23 -0
  197. package/dist/components/core/filter-chip/FilterChip.js +37 -0
  198. package/dist/components/core/filter-chip/FilterChip.types.d.ts +53 -0
  199. package/dist/components/core/filter-chip/FilterChip.types.js +12 -0
  200. package/dist/components/core/footer/Footer.css +104 -0
  201. package/dist/components/core/footer/Footer.d.ts +43 -0
  202. package/dist/components/core/footer/Footer.js +53 -0
  203. package/dist/components/core/footer/Footer.types.d.ts +47 -0
  204. package/dist/components/core/footer/Footer.types.js +18 -0
  205. package/dist/components/core/footer/footer-impl.css +218 -0
  206. package/dist/components/core/footer-group/FooterGroup.css +90 -0
  207. package/dist/components/core/footer-group/FooterGroup.d.ts +32 -0
  208. package/dist/components/core/footer-group/FooterGroup.js +64 -0
  209. package/dist/components/core/footer-group/FooterGroup.types.d.ts +25 -0
  210. package/dist/components/core/footer-group/FooterGroup.types.js +12 -0
  211. package/dist/components/core/footer-group/footer-group-impl.css +78 -0
  212. package/dist/components/core/icon/Icon.css +40 -0
  213. package/dist/components/core/icon/Icon.d.ts +23 -0
  214. package/dist/components/core/icon/Icon.js +79 -0
  215. package/dist/components/core/icon/Icon.types.d.ts +24 -0
  216. package/dist/components/core/icon/Icon.types.js +7 -0
  217. package/dist/components/core/link/Link.css +89 -0
  218. package/dist/components/core/link/Link.d.ts +37 -0
  219. package/dist/components/core/link/Link.js +141 -0
  220. package/dist/components/core/link/Link.types.d.ts +41 -0
  221. package/dist/components/core/link/Link.types.js +9 -0
  222. package/dist/components/core/link/link-impl.css +168 -0
  223. package/dist/components/core/menu-item/MenuItem.css +70 -0
  224. package/dist/components/core/menu-item/MenuItem.d.ts +11 -0
  225. package/dist/components/core/menu-item/MenuItem.js +26 -0
  226. package/dist/components/core/menu-item/MenuItem.types.d.ts +28 -0
  227. package/dist/components/core/menu-item/MenuItem.types.js +9 -0
  228. package/dist/components/core/navbar/Navbar.css +135 -0
  229. package/dist/components/core/navbar/Navbar.d.ts +36 -0
  230. package/dist/components/core/navbar/Navbar.js +371 -0
  231. package/dist/components/core/navbar/Navbar.types.d.ts +49 -0
  232. package/dist/components/core/navbar/Navbar.types.js +17 -0
  233. package/dist/components/core/navbar/navbar-impl.css +590 -0
  234. package/dist/components/core/navbar-item/NavbarItem.css +75 -0
  235. package/dist/components/core/navbar-item/NavbarItem.d.ts +22 -0
  236. package/dist/components/core/navbar-item/NavbarItem.js +40 -0
  237. package/dist/components/core/navbar-item/NavbarItem.types.d.ts +34 -0
  238. package/dist/components/core/navbar-item/NavbarItem.types.js +10 -0
  239. package/dist/components/core/navbar-menu/NavbarMenu.css +128 -0
  240. package/dist/components/core/navbar-menu/NavbarMenu.d.ts +5 -0
  241. package/dist/components/core/navbar-menu/NavbarMenu.js +186 -0
  242. package/dist/components/core/navbar-menu/NavbarMenu.types.d.ts +45 -0
  243. package/dist/components/core/navbar-menu/NavbarMenu.types.js +12 -0
  244. package/dist/components/core/navbar-menu/navbar-menu-impl.css +186 -0
  245. package/dist/components/core/navbar-menu-group/NavbarMenuGroup.css +26 -0
  246. package/dist/components/core/navbar-menu-group/NavbarMenuGroup.d.ts +17 -0
  247. package/dist/components/core/navbar-menu-group/NavbarMenuGroup.js +22 -0
  248. package/dist/components/core/navbar-menu-group/NavbarMenuGroup.types.d.ts +14 -0
  249. package/dist/components/core/navbar-menu-group/NavbarMenuGroup.types.js +7 -0
  250. package/dist/components/core/navbar-panel/NavbarPanel.css +87 -0
  251. package/dist/components/core/navbar-panel/NavbarPanel.d.ts +34 -0
  252. package/dist/components/core/navbar-panel/NavbarPanel.js +46 -0
  253. package/dist/components/core/navbar-panel/NavbarPanel.types.d.ts +29 -0
  254. package/dist/components/core/navbar-panel/NavbarPanel.types.js +12 -0
  255. package/dist/components/core/navbar-panel/navbar-panel-impl.css +104 -0
  256. package/dist/components/core/navbar-panel/use-navbar-panel.d.ts +26 -0
  257. package/dist/components/core/navbar-panel/use-navbar-panel.js +135 -0
  258. package/dist/components/core/navbar-switcher/NavbarSwitcher.css +117 -0
  259. package/dist/components/core/navbar-switcher/NavbarSwitcher.d.ts +20 -0
  260. package/dist/components/core/navbar-switcher/NavbarSwitcher.js +90 -0
  261. package/dist/components/core/navbar-switcher/NavbarSwitcher.types.d.ts +46 -0
  262. package/dist/components/core/navbar-switcher/NavbarSwitcher.types.js +13 -0
  263. package/dist/components/core/navbar-switcher/navbar-switcher-impl.css +179 -0
  264. package/dist/components/core/navbar-switcher-option/NavbarSwitcherOption.css +39 -0
  265. package/dist/components/core/navbar-switcher-option/NavbarSwitcherOption.d.ts +16 -0
  266. package/dist/components/core/navbar-switcher-option/NavbarSwitcherOption.js +19 -0
  267. package/dist/components/core/navbar-switcher-option/NavbarSwitcherOption.types.d.ts +18 -0
  268. package/dist/components/core/navbar-switcher-option/NavbarSwitcherOption.types.js +7 -0
  269. package/dist/components/core/option/Option.css +133 -0
  270. package/dist/components/core/option/Option.d.ts +25 -0
  271. package/dist/components/core/option/Option.js +31 -0
  272. package/dist/components/core/option/Option.types.d.ts +44 -0
  273. package/dist/components/core/option/Option.types.js +14 -0
  274. package/dist/components/core/pagination/Pagination.css +237 -0
  275. package/dist/components/core/pagination/Pagination.d.ts +30 -0
  276. package/dist/components/core/pagination/Pagination.js +406 -0
  277. package/dist/components/core/pagination/Pagination.types.d.ts +59 -0
  278. package/dist/components/core/pagination/Pagination.types.js +14 -0
  279. package/dist/components/core/pagination/pagination-impl.css +17 -0
  280. package/dist/components/core/removable-chip/RemovableChip.css +125 -0
  281. package/dist/components/core/removable-chip/RemovableChip.d.ts +25 -0
  282. package/dist/components/core/removable-chip/RemovableChip.js +36 -0
  283. package/dist/components/core/removable-chip/RemovableChip.types.d.ts +38 -0
  284. package/dist/components/core/removable-chip/RemovableChip.types.js +13 -0
  285. package/dist/components/core/search-input/SearchInput.css +205 -0
  286. package/dist/components/core/search-input/SearchInput.d.ts +5 -0
  287. package/dist/components/core/search-input/SearchInput.js +81 -0
  288. package/dist/components/core/search-input/SearchInput.types.d.ts +43 -0
  289. package/dist/components/core/search-input/SearchInput.types.js +13 -0
  290. package/dist/components/core/search-input/search-input-impl.css +20 -0
  291. package/dist/components/core/segmented-control/SegmentedControl.css +57 -0
  292. package/dist/components/core/segmented-control/SegmentedControl.d.ts +37 -0
  293. package/dist/components/core/segmented-control/SegmentedControl.js +269 -0
  294. package/dist/components/core/segmented-control/SegmentedControl.types.d.ts +38 -0
  295. package/dist/components/core/segmented-control/SegmentedControl.types.js +8 -0
  296. package/dist/components/core/segmented-control/segmented-control-impl.css +57 -0
  297. package/dist/components/core/segmented-control-item/SegmentedControlItem.css +151 -0
  298. package/dist/components/core/segmented-control-item/SegmentedControlItem.d.ts +50 -0
  299. package/dist/components/core/segmented-control-item/SegmentedControlItem.js +101 -0
  300. package/dist/components/core/segmented-control-item/SegmentedControlItem.types.d.ts +37 -0
  301. package/dist/components/core/segmented-control-item/SegmentedControlItem.types.js +10 -0
  302. package/dist/components/core/segmented-control-item/segmented-control-item-impl.css +69 -0
  303. package/dist/components/core/select/Select.css +400 -0
  304. package/dist/components/core/select/Select.d.ts +29 -0
  305. package/dist/components/core/select/Select.js +524 -0
  306. package/dist/components/core/select/Select.types.d.ts +96 -0
  307. package/dist/components/core/select/Select.types.js +26 -0
  308. package/dist/components/core/select/select-impl.css +114 -0
  309. package/dist/components/core/select-chip/SelectChip.css +155 -0
  310. package/dist/components/core/select-chip/SelectChip.d.ts +20 -0
  311. package/dist/components/core/select-chip/SelectChip.js +273 -0
  312. package/dist/components/core/select-chip/SelectChip.types.d.ts +56 -0
  313. package/dist/components/core/select-chip/SelectChip.types.js +14 -0
  314. package/dist/components/core/select-chip/select-chip-impl.css +38 -0
  315. package/dist/components/core/spinner/Spinner.css +76 -0
  316. package/dist/components/core/spinner/Spinner.d.ts +5 -0
  317. package/dist/components/core/spinner/Spinner.js +29 -0
  318. package/dist/components/core/spinner/Spinner.types.d.ts +37 -0
  319. package/dist/components/core/spinner/Spinner.types.js +10 -0
  320. package/dist/components/core/spinner/spinner-impl.css +27 -0
  321. package/dist/components/core/status-dot/StatusDot.css +43 -0
  322. package/dist/components/core/status-dot/StatusDot.d.ts +35 -0
  323. package/dist/components/core/status-dot/StatusDot.js +46 -0
  324. package/dist/components/core/status-dot/StatusDot.types.d.ts +29 -0
  325. package/dist/components/core/status-dot/StatusDot.types.js +7 -0
  326. package/dist/components/core/status-dot/status-dot-impl.css +42 -0
  327. package/dist/components/core/subdomain-navbar/SubdomainNavbar.css +89 -0
  328. package/dist/components/core/subdomain-navbar/SubdomainNavbar.d.ts +21 -0
  329. package/dist/components/core/subdomain-navbar/SubdomainNavbar.js +127 -0
  330. package/dist/components/core/subdomain-navbar/SubdomainNavbar.types.d.ts +43 -0
  331. package/dist/components/core/subdomain-navbar/SubdomainNavbar.types.js +13 -0
  332. package/dist/components/core/subdomain-navbar/subdomain-navbar-impl.css +147 -0
  333. package/dist/components/core/tab/Tab.css +113 -0
  334. package/dist/components/core/tab/Tab.d.ts +36 -0
  335. package/dist/components/core/tab/Tab.js +53 -0
  336. package/dist/components/core/tab/Tab.types.d.ts +42 -0
  337. package/dist/components/core/tab/Tab.types.js +13 -0
  338. package/dist/components/core/tab/tab-impl.css +49 -0
  339. package/dist/components/core/tab-list/TabList.css +40 -0
  340. package/dist/components/core/tab-list/TabList.d.ts +26 -0
  341. package/dist/components/core/tab-list/TabList.js +124 -0
  342. package/dist/components/core/tab-list/TabList.types.d.ts +20 -0
  343. package/dist/components/core/tab-list/TabList.types.js +7 -0
  344. package/dist/components/core/tab-list/tab-list-impl.css +56 -0
  345. package/dist/components/core/table/Table.css +40 -0
  346. package/dist/components/core/table/Table.d.ts +19 -0
  347. package/dist/components/core/table/Table.js +55 -0
  348. package/dist/components/core/table/Table.types.d.ts +59 -0
  349. package/dist/components/core/table/Table.types.js +9 -0
  350. package/dist/components/core/table/table-impl.css +75 -0
  351. package/dist/components/core/table/use-table-sort.d.ts +43 -0
  352. package/dist/components/core/table/use-table-sort.js +51 -0
  353. package/dist/components/core/table-body/TableBody.css +6 -0
  354. package/dist/components/core/table-body/TableBody.d.ts +12 -0
  355. package/dist/components/core/table-body/TableBody.js +26 -0
  356. package/dist/components/core/table-body/TableBody.types.d.ts +36 -0
  357. package/dist/components/core/table-body/TableBody.types.js +7 -0
  358. package/dist/components/core/table-cell/TableCell.css +76 -0
  359. package/dist/components/core/table-cell/TableCell.d.ts +21 -0
  360. package/dist/components/core/table-cell/TableCell.js +31 -0
  361. package/dist/components/core/table-cell/TableCell.types.d.ts +43 -0
  362. package/dist/components/core/table-cell/TableCell.types.js +7 -0
  363. package/dist/components/core/table-head/TableHead.css +6 -0
  364. package/dist/components/core/table-head/TableHead.d.ts +22 -0
  365. package/dist/components/core/table-head/TableHead.js +52 -0
  366. package/dist/components/core/table-head/TableHead.types.d.ts +39 -0
  367. package/dist/components/core/table-head/TableHead.types.js +7 -0
  368. package/dist/components/core/table-head/table-head-impl.css +51 -0
  369. package/dist/components/core/table-header-cell/TableHeaderCell.css +126 -0
  370. package/dist/components/core/table-header-cell/TableHeaderCell.d.ts +21 -0
  371. package/dist/components/core/table-header-cell/TableHeaderCell.js +34 -0
  372. package/dist/components/core/table-header-cell/TableHeaderCell.types.d.ts +56 -0
  373. package/dist/components/core/table-header-cell/TableHeaderCell.types.js +9 -0
  374. package/dist/components/core/table-header-cell/table-header-cell-impl.css +74 -0
  375. package/dist/components/core/table-row/TableRow.css +18 -0
  376. package/dist/components/core/table-row/TableRow.d.ts +17 -0
  377. package/dist/components/core/table-row/TableRow.js +32 -0
  378. package/dist/components/core/table-row/TableRow.types.d.ts +45 -0
  379. package/dist/components/core/table-row/TableRow.types.js +7 -0
  380. package/dist/components/core/table-row/table-row-impl.css +31 -0
  381. package/dist/components/core/text-area/TextArea.css +325 -0
  382. package/dist/components/core/text-area/TextArea.d.ts +13 -0
  383. package/dist/components/core/text-area/TextArea.js +133 -0
  384. package/dist/components/core/text-area/TextArea.types.d.ts +67 -0
  385. package/dist/components/core/text-area/TextArea.types.js +19 -0
  386. package/dist/components/core/text-area/text-area-impl.css +36 -0
  387. package/dist/components/core/text-input/TextInput.css +400 -0
  388. package/dist/components/core/text-input/TextInput.d.ts +5 -0
  389. package/dist/components/core/text-input/TextInput.js +130 -0
  390. package/dist/components/core/text-input/TextInput.types.d.ts +96 -0
  391. package/dist/components/core/text-input/TextInput.types.js +24 -0
  392. package/dist/components/core/text-input/text-input-impl.css +36 -0
  393. package/dist/components/core/tooltip/Tooltip.css +101 -0
  394. package/dist/components/core/tooltip/Tooltip.d.ts +51 -0
  395. package/dist/components/core/tooltip/Tooltip.js +87 -0
  396. package/dist/components/core/tooltip/Tooltip.types.d.ts +38 -0
  397. package/dist/components/core/tooltip/Tooltip.types.js +9 -0
  398. package/dist/components/core/tooltip/TooltipAnchor.d.ts +52 -0
  399. package/dist/components/core/tooltip/TooltipAnchor.js +69 -0
  400. package/dist/components/core/tooltip/tooltip-anchor.css +145 -0
  401. package/dist/components/core/tooltip/tooltip-impl.css +54 -0
  402. package/dist/components/core/tooltip/use-tooltip.d.ts +111 -0
  403. package/dist/components/core/tooltip/use-tooltip.js +189 -0
  404. package/dist/components/core/typography/Typography.css +96 -0
  405. package/dist/components/core/typography/Typography.d.ts +297 -0
  406. package/dist/components/core/typography/Typography.js +28 -0
  407. package/dist/components/core/typography/Typography.types.d.ts +40 -0
  408. package/dist/components/core/typography/Typography.types.js +7 -0
  409. package/dist/components/css-time.d.ts +20 -0
  410. package/dist/components/css-time.js +30 -0
  411. package/dist/components/given.d.ts +7 -0
  412. package/dist/components/given.js +9 -0
  413. package/dist/components/hover-open.d.ts +34 -0
  414. package/dist/components/hover-open.js +90 -0
  415. package/dist/components/index.d.ts +114 -1
  416. package/dist/components/index.js +115 -2
  417. package/dist/components/layout/aspect-ratio/AspectRatio.css +29 -0
  418. package/dist/components/layout/aspect-ratio/AspectRatio.d.ts +24 -0
  419. package/dist/components/layout/aspect-ratio/AspectRatio.js +26 -0
  420. package/dist/components/layout/aspect-ratio/AspectRatio.types.d.ts +22 -0
  421. package/dist/components/layout/aspect-ratio/AspectRatio.types.js +7 -0
  422. package/dist/components/layout/aspect-ratio/aspect-ratio-impl.css +44 -0
  423. package/dist/components/layout/grid/Grid.css +76 -0
  424. package/dist/components/layout/grid/Grid.d.ts +31 -0
  425. package/dist/components/layout/grid/Grid.js +33 -0
  426. package/dist/components/layout/grid/Grid.types.d.ts +48 -0
  427. package/dist/components/layout/grid/Grid.types.js +7 -0
  428. package/dist/components/layout/grid/grid-impl.css +62 -0
  429. package/dist/components/layout/row/Row.css +85 -0
  430. package/dist/components/layout/row/Row.d.ts +32 -0
  431. package/dist/components/layout/row/Row.js +34 -0
  432. package/dist/components/layout/row/Row.types.d.ts +45 -0
  433. package/dist/components/layout/row/Row.types.js +7 -0
  434. package/dist/components/layout/scroller/Scroller.css +59 -0
  435. package/dist/components/layout/scroller/Scroller.d.ts +34 -0
  436. package/dist/components/layout/scroller/Scroller.js +36 -0
  437. package/dist/components/layout/scroller/Scroller.types.d.ts +38 -0
  438. package/dist/components/layout/scroller/Scroller.types.js +7 -0
  439. package/dist/components/layout/scroller/scroller-impl.css +45 -0
  440. package/dist/components/layout/stack/Stack.css +73 -0
  441. package/dist/components/layout/stack/Stack.d.ts +28 -0
  442. package/dist/components/layout/stack/Stack.js +30 -0
  443. package/dist/components/layout/stack/Stack.types.d.ts +41 -0
  444. package/dist/components/layout/stack/Stack.types.js +7 -0
  445. package/dist/components/visually-hidden.d.ts +22 -0
  446. package/dist/components/visually-hidden.js +31 -0
  447. package/dist/fonts/LICENSE-inter.txt +93 -0
  448. package/dist/fonts/LICENSE-red-hat-mono.txt +93 -0
  449. package/dist/fonts/fonts.css +111 -0
  450. package/dist/fonts/inter-cyrillic-ext-wght-normal.woff2 +0 -0
  451. package/dist/fonts/inter-cyrillic-wght-normal.woff2 +0 -0
  452. package/dist/fonts/inter-greek-ext-wght-normal.woff2 +0 -0
  453. package/dist/fonts/inter-greek-wght-normal.woff2 +0 -0
  454. package/dist/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
  455. package/dist/fonts/inter-latin-wght-normal.woff2 +0 -0
  456. package/dist/fonts/inter-vietnamese-wght-normal.woff2 +0 -0
  457. package/dist/fonts/red-hat-mono-latin-ext-wght-normal.woff2 +0 -0
  458. package/dist/fonts/red-hat-mono-latin-wght-normal.woff2 +0 -0
  459. package/dist/marketing.css +289 -241
  460. package/package.json +18 -4
@@ -0,0 +1,41 @@
1
+ import type { AnchorHTMLAttributes, ReactNode } from 'react';
2
+ export interface ButtonIconOwnProps {
3
+ /**
4
+ * `primary` — The one glyph-alone press a section is built around — a play control over a hero, the single action a band exists for. Carries the brand fill, which is what makes it findable at a glance and what makes it meaningless once there are two.
5
+ * `secondary` — The ordinary case for these, because they usually arrive several at a time — a footer's social row, a carousel's two directions, a bar's dismiss. An outline rather than a quiet fill, for Button's reason: this package has color.bg.hover for the wash but no hover partner for color.bg.subtle, so a filled secondary would get lighter on hover instead of darker. It keeps the circle, the mark and the target and gives up only the fill.
6
+ * `inverse` — A section that paints its own ground — a brand-coloured band, a photo, a dark takeover. There the brand fill is invisible against the fill behind it and a neutral edge is the wrong ink over a photograph, so the only thing that reads is a solid at the far end of the neutral ramp: pure black in light, pure white in dark. It outranks everything near it, which is what makes it right there and wrong anywhere else.
7
+ * `plain` — The control sits on a surface that has already said what it is — the exit on a sheet, a step in a set of marks — and a ring around it would be the loudest thing there. It keeps the target and the states and gives up only the edge, so what a reader presses is unchanged and what they see is the glyph.
8
+ */
9
+ variant?: 'primary' | 'secondary' | 'inverse' | 'plain';
10
+ /**
11
+ * `sm` — A dense row of controls — a filter bar, a utility strip, a compact carousel. A square of size.control.sm holding a mark at icon.control.sm. Desktop only: at thirty-two it is below what a finger reliably hits.
12
+ * `md` — The default, and nearly everywhere — footers, navigation bars, promotional bars, carousels. A square of size.control.md holding a mark at icon.control.md, which is the measure Button's label-side glyph takes at the same step.
13
+ * `lg` — One prominent press, usually the only control in view — a play control over a hero, a single action in a conversion band. A square of size.control.lg holding a mark at icon.control.lg. One per page, in the same spirit as Button's own lg.
14
+ */
15
+ size?: 'sm' | 'md' | 'lg';
16
+ /**
17
+ * `default` — The control is on a light ground, which is every surface this package paints by default
18
+ * `inverse` — The control is on a ground that runs against the mode — a mark in a navigation bar standing on a dark hero. The ink and the tints move together; nothing else does
19
+ */
20
+ tone?: 'default' | 'inverse';
21
+ /** Always — the glyph is the whole control, so it is required rather than a slot that may be empty. Pass the glyph itself, from the icon package, rather than one already sized: the size a mark takes in this circle is this component's decision, at icon.control.md on md and icon.control.lg on lg, and the width and height the glyph shipped with are overridden by the class this component clones onto it. */
22
+ icon: ReactNode;
23
+ /** Always. It is the entire accessible name, because nothing on screen carries one — the words that would have been the label if there had been room for one. Required rather than optional: an optional name on a control that draws none is a control that ships unnamed. On the anchor branch it names the destination; on the button branch it names what happens. */
24
+ label: string;
25
+ /** The press goes somewhere with a URL of its own — a social account, an app store, another page. It makes this an anchor rather than a button, which is what gives a visitor cmd-click, a visible destination and a copyable link, none of which mean anything for a press the page handles itself. This is the ordinary case on a marketing page.
26
+
27
+ `target` and `rel` are not props of this component and do not need to be: it is typed against AnchorHTMLAttributes, so `target="_blank"` and `rel="noopener noreferrer"` are already in reach and land on the anchor. A destination leaving the site is common enough here that the pairing is the page's decision rather than an axis of this component, which is the ruling Button recorded first. */
28
+ href?: string;
29
+ }
30
+ export type ButtonIconProps = ButtonIconOwnProps & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'className' | 'variant' | 'size' | 'tone' | 'icon' | 'label' | 'href'>;
31
+ /** The class each part carries. Apply these — do not retype them. */
32
+ export declare const buttonIconParts: {
33
+ readonly root: "dds-buttonicon";
34
+ readonly icon: "dds-buttonicon__icon";
35
+ };
36
+ /** Generated so defaults cannot drift from the contract. */
37
+ export declare const buttonIconDefaults: {
38
+ readonly variant: "primary";
39
+ readonly size: "md";
40
+ readonly tone: "default";
41
+ };
@@ -0,0 +1,8 @@
1
+ // GENERATED from button-icon.contract.json. Do not edit.
2
+ /** The class each part carries. Apply these — do not retype them. */
3
+ export const buttonIconParts = {
4
+ root: 'dds-buttonicon',
5
+ icon: 'dds-buttonicon__icon',
6
+ };
7
+ /** Generated so defaults cannot drift from the contract. */
8
+ export const buttonIconDefaults = { variant: 'primary', size: 'md', tone: 'default' };
@@ -0,0 +1,65 @@
1
+ /* GENERATED from card.contract.json. Do not edit. */
2
+
3
+ :where([data-dds-context="marketing"]) .dds-card {
4
+ box-sizing: border-box;
5
+ display: flex;
6
+ flex-direction: column;
7
+ overflow: hidden;
8
+ border-radius: var(--radius-surface);
9
+ }
10
+
11
+ :where([data-dds-context="marketing"]) .dds-card[data-variant="accent-strong"] {
12
+ background-color: var(--color-bg-brand-strong);
13
+ color: var(--color-fg-on-brand-strong);
14
+ }
15
+
16
+ :where([data-dds-context="marketing"]) .dds-card[data-variant="accent"] {
17
+ background-color: var(--color-bg-brand);
18
+ color: var(--color-fg-on-solid);
19
+ }
20
+
21
+ :where([data-dds-context="marketing"]) .dds-card[data-variant="plain"] {
22
+ border-radius: var(--radius-none);
23
+ color: var(--color-fg-default);
24
+ }
25
+
26
+ :where([data-dds-context="marketing"]) .dds-card[data-variant="surface-raised"] {
27
+ background-color: var(--color-bg-surface-raised);
28
+ color: var(--color-fg-default);
29
+ }
30
+
31
+ :where([data-dds-context="marketing"]) .dds-card[data-variant="surface"] {
32
+ background-color: var(--color-bg-surface);
33
+ color: var(--color-fg-default);
34
+ }
35
+
36
+ :where([data-dds-context="marketing"]) .dds-card[data-variant="accent-strong"][data-compact="true"] {
37
+ border-radius: var(--radius-surface-compact);
38
+ }
39
+
40
+ :where([data-dds-context="marketing"]) .dds-card[data-variant="accent"][data-compact="true"] {
41
+ border-radius: var(--radius-surface-compact);
42
+ }
43
+
44
+ :where([data-dds-context="marketing"]) .dds-card[data-variant="plain"][data-tone="inverse"] {
45
+ color: var(--color-fg-on-brand-strong);
46
+ }
47
+
48
+ :where([data-dds-context="marketing"]) .dds-card[data-variant="surface-raised"][data-compact="true"] {
49
+ border-radius: var(--radius-surface-compact);
50
+ }
51
+
52
+ :where([data-dds-context="marketing"]) .dds-card[data-variant="surface-raised"][data-tone="inverse"] {
53
+ background-color: var(--color-bg-surface-raised-inverse);
54
+ color: var(--color-fg-on-brand-strong);
55
+ }
56
+
57
+ :where([data-dds-context="marketing"]) .dds-card[data-variant="surface"][data-compact="true"] {
58
+ border-radius: var(--radius-surface-compact);
59
+ }
60
+
61
+ :where([data-dds-context="marketing"]) .dds-card[data-variant="surface"][data-tone="inverse"] {
62
+ background-color: var(--color-bg-surface-inverse);
63
+ color: var(--color-fg-on-brand-strong);
64
+ }
65
+
@@ -0,0 +1,24 @@
1
+ import './Card.css';
2
+ import { type CardProps } from './Card.types.js';
3
+ export type { CardProps };
4
+ /**
5
+ * A `<div>` with a fill, a corner, and nothing else.
6
+ *
7
+ * There is no padding here on purpose: the shape a marketing card most often
8
+ * takes is a picture reaching the edges with copy inset beneath it, and one
9
+ * measure cannot serve both. `CardBody` holds the inset, one level in, so a
10
+ * card can hold either or both without either fighting the other.
11
+ *
12
+ * The variant is a ground, not an emphasis. Which one is right follows from
13
+ * what the card is sitting on rather than from how important it is — `surface`
14
+ * is recessed against the white page, `surface-raised` lifts off a subtle band,
15
+ * and the two brand fills are the page having earned a colour. The stylesheet
16
+ * reads it from `data-variant`, so it is set here rather than folded into the
17
+ * class.
18
+ *
19
+ * `tone` says which way round the ground is rather than how dark it is. A card on a band that
20
+ * paints its own dark ground takes `inverse`, and its neutral fill becomes a veil of white over
21
+ * that band instead of a sheet of paper on top of it — an opaque white rectangle on a dark footer
22
+ * reads as a hole punched in it. The brand fills ignore it: they carry their own ground either way.
23
+ */
24
+ export declare function Card({ variant, tone, compact, children, ...rest }: CardProps): import("react").JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import './Card.css';
3
+ import { cardDefaults, cardParts } from './Card.types.js';
4
+ /**
5
+ * A `<div>` with a fill, a corner, and nothing else.
6
+ *
7
+ * There is no padding here on purpose: the shape a marketing card most often
8
+ * takes is a picture reaching the edges with copy inset beneath it, and one
9
+ * measure cannot serve both. `CardBody` holds the inset, one level in, so a
10
+ * card can hold either or both without either fighting the other.
11
+ *
12
+ * The variant is a ground, not an emphasis. Which one is right follows from
13
+ * what the card is sitting on rather than from how important it is — `surface`
14
+ * is recessed against the white page, `surface-raised` lifts off a subtle band,
15
+ * and the two brand fills are the page having earned a colour. The stylesheet
16
+ * reads it from `data-variant`, so it is set here rather than folded into the
17
+ * class.
18
+ *
19
+ * `tone` says which way round the ground is rather than how dark it is. A card on a band that
20
+ * paints its own dark ground takes `inverse`, and its neutral fill becomes a veil of white over
21
+ * that band instead of a sheet of paper on top of it — an opaque white rectangle on a dark footer
22
+ * reads as a hole punched in it. The brand fills ignore it: they carry their own ground either way.
23
+ */
24
+ export function Card({ variant = cardDefaults.variant, tone = cardDefaults.tone, compact = cardDefaults.compact, children, ...rest }) {
25
+ return (_jsx("div", { className: cardParts.root, "data-variant": variant, "data-tone": tone, "data-compact": compact ? 'true' : 'false', ...rest, children: children }));
26
+ }
@@ -0,0 +1,33 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ export interface CardOwnProps {
3
+ /**
4
+ * `surface` — The default, and right for a card on the page. The marketing page is white and this is a step off it, so the card is told apart by being recessed — no shadow and no border, because the fill is already the edge
5
+ * `surface-raised` — The card sits on a color.bg.subtle band rather than on the page. There the recessed fill is only 1.09:1 against its ground and all but disappears; this one is 1.23:1 the other way, lifting off the band instead of sinking into it
6
+ * `plain` — An editorial card — an article, a post, a story — where the picture and the headline are what separate one card from the next. It paints no background, so it shows whatever is under it: the page, a subtle band, or a section that has taken a colour. The corner and the clip are still the card's, so a picture at the top of it meets a rounded edge rather than squaring one off It takes no corner either: radius.surface is the shape of a fill, and with no fill there is nothing to round — a rounded picture sitting on the page reads as a floating tile rather than as the art leading an article.
7
+ * `accent` — One card in a set is the promotional one and the page has already earned the colour. The coral is the loudest ground here, so a row of them is a row of nothing louder than the rest
8
+ * `accent-strong` — A card carrying more weight than its neighbours, where the coral would be too loud and the page ground too quiet. The darkest of the four, and the one that takes white at 20.55:1 — the most legible ground a marketing card has
9
+ */
10
+ variant?: 'surface' | 'surface-raised' | 'plain' | 'accent' | 'accent-strong';
11
+ /**
12
+ * `default` — The page is light, which is nearly every page. The fills are opaque and the ink is dark
13
+ * `inverse` — The card sits on a band that paints its own dark ground. The neutral fills become a veil of white over that ground rather than a sheet of paper on top of it, which is what keeps a card on a dark band from reading as a hole cut in it. The two neutral variants stay two steps apart: `surface` is the quiet one a panel wants, `surface-raised` the stronger lift that suits something the size of a control.
14
+ */
15
+ tone?: 'default' | 'inverse';
16
+ /** The card is small enough that a generous corner is a fifth of its width. `radius.surface` is twenty-four, which is the corner of a feature card in a grid; on a rail beside a footer's columns it reads as bulbous. This takes it to `radius.surface-compact`.
17
+
18
+ It pairs with CardBody's prop of the same name, and the two are separate because the box and its contents are separate components: this one owns the ground and the corner, that one owns the inset and the type. A small card wants both. */
19
+ compact?: boolean;
20
+ /** Allowed: any content */
21
+ children: ReactNode;
22
+ }
23
+ export type CardProps = CardOwnProps & Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'variant' | 'tone' | 'compact'>;
24
+ /** The class each part carries. Apply these — do not retype them. */
25
+ export declare const cardParts: {
26
+ readonly root: "dds-card";
27
+ };
28
+ /** Generated so defaults cannot drift from the contract. */
29
+ export declare const cardDefaults: {
30
+ readonly variant: "surface";
31
+ readonly tone: "default";
32
+ readonly compact: false;
33
+ };
@@ -0,0 +1,7 @@
1
+ // GENERATED from card.contract.json. Do not edit.
2
+ /** The class each part carries. Apply these — do not retype them. */
3
+ export const cardParts = {
4
+ root: 'dds-card',
5
+ };
6
+ /** Generated so defaults cannot drift from the contract. */
7
+ export const cardDefaults = { variant: 'surface', tone: 'default', compact: false };
@@ -0,0 +1,139 @@
1
+ /* GENERATED from cardbody.contract.json. Do not edit. */
2
+
3
+ :where([data-dds-context="marketing"]) .dds-cardbody {
4
+ transition-property: background-color, color;
5
+ box-sizing: border-box;
6
+ display: flex;
7
+ flex: auto;
8
+ flex-direction: column;
9
+ min-block-size: 0;
10
+ position: relative;
11
+ }
12
+
13
+ :where([data-dds-context="marketing"]) .dds-cardbody .dds-cardbody__scrim {
14
+ display: block;
15
+ inset: 0;
16
+ position: absolute;
17
+ background-color: var(--color-bg-overlay);
18
+ }
19
+
20
+ :where([data-dds-context="marketing"]) .dds-cardbody .dds-cardbody__content {
21
+ transition-property: padding-block, padding-inline;
22
+ display: flex;
23
+ flex-direction: column;
24
+ position: relative;
25
+ gap: var(--space-heading-title-description-compact);
26
+ padding-block: var(--space-inset-card);
27
+ padding-inline: var(--space-inset-card);
28
+ }
29
+
30
+ :where([data-dds-context="marketing"]) .dds-cardbody .dds-cardbody__mark {
31
+ align-self: flex-start;
32
+ display: flex;
33
+ margin-block-end: var(--space-gap-lg);
34
+ }
35
+
36
+ :where([data-dds-context="marketing"]) .dds-cardbody .dds-cardbody__eyebrow {
37
+ transition-property: color;
38
+ margin: 0;
39
+ text-transform: uppercase;
40
+ font-family: var(--font-eyebrow-family);
41
+ font-size: var(--font-eyebrow-size);
42
+ font-weight: var(--font-eyebrow-weight);
43
+ letter-spacing: var(--font-eyebrow-letter-spacing);
44
+ line-height: var(--font-eyebrow-line-height);
45
+ }
46
+
47
+ :where([data-dds-context="marketing"]) .dds-cardbody .dds-cardbody__title {
48
+ transition-property: font-family, font-size, font-weight, letter-spacing, line-height;
49
+ margin: 0;
50
+ font-family: var(--font-h5-family);
51
+ font-size: var(--font-h5-size);
52
+ font-weight: var(--font-h5-weight);
53
+ letter-spacing: var(--font-h5-letter-spacing);
54
+ line-height: var(--font-h5-line-height);
55
+ }
56
+
57
+ :where([data-dds-context="marketing"]) .dds-cardbody .dds-cardbody__description {
58
+ transition-property: font-family, font-size, font-weight, letter-spacing, line-height;
59
+ margin: 0;
60
+ font-family: var(--font-body-md-family);
61
+ font-size: var(--font-body-md-size);
62
+ font-weight: var(--font-body-md-weight);
63
+ letter-spacing: var(--font-body-md-letter-spacing);
64
+ line-height: var(--font-body-md-line-height);
65
+ }
66
+
67
+ :where([data-dds-context="marketing"]) .dds-cardbody .dds-cardbody__media-frame {
68
+ display: block;
69
+ flex: auto;
70
+ min-block-size: 0;
71
+ overflow: hidden;
72
+ }
73
+
74
+ :where([data-dds-context="marketing"]) .dds-cardbody .dds-cardbody__media {
75
+ block-size: 100%;
76
+ display: block;
77
+ inline-size: 100%;
78
+ object-fit: cover;
79
+ border-radius: var(--radius-none);
80
+ }
81
+
82
+ :where([data-dds-context="marketing"]) .dds-cardbody[data-over-media="true"] {
83
+ display: grid;
84
+ background-color: var(--color-bg-brand-strong);
85
+ color: var(--color-fg-on-brand-strong);
86
+ }
87
+
88
+ :where([data-dds-context="marketing"]) .dds-cardbody[data-flush="true"] .dds-cardbody__content {
89
+ padding-inline: 0;
90
+ }
91
+
92
+ :where([data-dds-context="marketing"]) .dds-cardbody[data-over-media="true"] .dds-cardbody__media-frame {
93
+ block-size: 100%;
94
+ inset: 0;
95
+ position: absolute;
96
+ }
97
+
98
+ :where([data-dds-context="marketing"]) .dds-cardbody[data-compact="true"] .dds-cardbody__content {
99
+ padding-block: var(--space-inset-md);
100
+ }
101
+
102
+ :where([data-dds-context="marketing"]) .dds-cardbody[data-compact="true"] .dds-cardbody__description {
103
+ font-family: var(--font-body-sm-family);
104
+ font-size: var(--font-body-sm-size);
105
+ font-weight: var(--font-body-sm-weight);
106
+ letter-spacing: var(--font-body-sm-letter-spacing);
107
+ line-height: var(--font-body-sm-line-height);
108
+ }
109
+
110
+ :where([data-dds-context="marketing"]) .dds-cardbody[data-compact="true"] .dds-cardbody__title {
111
+ font-family: var(--font-label-md-family);
112
+ font-size: var(--font-label-md-size);
113
+ font-weight: var(--font-label-md-weight);
114
+ letter-spacing: var(--font-label-md-letter-spacing);
115
+ line-height: var(--font-label-md-line-height);
116
+ }
117
+
118
+ :where([data-dds-context="marketing"]) .dds-cardbody[data-over-media="false"] .dds-cardbody__eyebrow {
119
+ color: var(--color-fg-muted);
120
+ }
121
+
122
+ :where([data-dds-context="marketing"]) .dds-cardbody[data-zoom-on-hover="true"] .dds-cardbody__media {
123
+ transition-duration: var(--motion-duration-media-hover);
124
+ transition-timing-function: var(--motion-easing-media-hover);
125
+ }
126
+
127
+ :where([data-dds-context="marketing"]) .dds-cardbody[data-flush="false"][data-compact="true"] .dds-cardbody__content {
128
+ padding-inline: var(--space-inset-md);
129
+ }
130
+
131
+ :where([data-dds-context="marketing"]) .dds-cardbody[data-over-media="false"][data-tone="inverse"] .dds-cardbody__eyebrow {
132
+ color: var(--color-fg-muted-inverse);
133
+ }
134
+
135
+ @media (prefers-reduced-motion: reduce) {
136
+ :where([data-dds-context="marketing"]) .dds-cardbody,
137
+ :where([data-dds-context="marketing"]) .dds-cardbody * { transition: none; }
138
+ }
139
+
@@ -0,0 +1,62 @@
1
+ import './CardBody.css';
2
+ import './card-body-impl.css';
3
+ import { type CardBodyProps } from './CardBody.types.js';
4
+ export type { CardBodyProps };
5
+ /**
6
+ * Everything a `Card` holds: the words inset from its edges, and the picture
7
+ * that reaches them.
8
+ *
9
+ * The inset lives on `content` rather than on this component's own box. That is
10
+ * the whole reason both fit in one region — a body that padded itself and then
11
+ * pulled the picture back out with a negative margin would be two decisions
12
+ * undoing each other, and the system has no way to write the second one anyway:
13
+ * `staticCss` takes keywords, `100%` and `0`, so there is no negative value to
14
+ * reach for.
15
+ *
16
+ * `mediaPosition` reorders the elements rather than painting them somewhere
17
+ * else. A CSS `order` would move the picture visually and leave a screen reader
18
+ * hearing the old sequence, which is the one way a caption can end up read as an
19
+ * introduction. So it is not a styling axis and emits no rule — it decides which
20
+ * of two nodes is written first.
21
+ *
22
+ * `overMedia` is the axis, and it is a different question: not where the picture
23
+ * sits in the column but whether it is in the column at all. Under it the root
24
+ * becomes a grid, the picture and the wash are pinned to all four edges and out
25
+ * of the flow, and the content is the only child left to occupy the cell. The
26
+ * two props do not compose — a picture that is the ground has no position in a
27
+ * column it left — so `mediaPosition` is not read at all in that branch, which
28
+ * is why the markup below chooses between two whole shapes rather than
29
+ * threading one through the other.
30
+ *
31
+ * `flush` is the other axis, and it is the one prop here that answers to a
32
+ * decision made on a different component. Card's `plain` variant paints no
33
+ * ground, so there is no fill for the copy to be held off and the picture
34
+ * becomes the card's edge instead — at which point the inline inset indents the
35
+ * words from their own picture. It drops that half and keeps the block padding,
36
+ * which was never about the fill. Nothing can check the pair: the ground is
37
+ * Card's prop and the inset is this one's, and neither component can see the
38
+ * other.
39
+ *
40
+ * `zoomOnHover` is the third axis and the only one whose rule is not in the
41
+ * generated sheet. A state bound on a part emits hover on that part, which would
42
+ * zoom the picture only while the pointer was on the picture and leave it still
43
+ * over the headline of the same card. The root's hover reaching its own child has
44
+ * no vocabulary here, so it is in the impl sheet beside this file.
45
+ *
46
+ * `given` on the four strings that gate a region: absence is the switch, so an
47
+ * empty string and a string of spaces both count as absent. A title bound to a
48
+ * value that has not loaded would otherwise render an empty heading, which a
49
+ * screen reader announces as a heading with no name — and `src=""` is worse than
50
+ * nothing, since a browser resolves it against the page URL and re-requests the
51
+ * document as an image.
52
+ *
53
+ * `alt` is not read through `given`, and `mark` is not either. An `alt` of `""` is
54
+ * a real answer meaning "skip this, the copy already said it", and collapsing it
55
+ * into absence would put a filename back into a screen reader. A node is not
56
+ * blank-able the way a string is, so `mark` is tested against `undefined`.
57
+ *
58
+ * No region sets a colour. Card sets one per variant on its root and colour
59
+ * inherits, so the same title is `fg.on-solid` on the brand fill and
60
+ * `fg.default` on the page without this component knowing which card it is in.
61
+ */
62
+ export declare function CardBody({ eyebrow, title, description, mark, src, alt, aspect, mediaPosition, overMedia, flush, compact, tone, zoomOnHover, children: _children, ...rest }: CardBodyProps): import("react").JSX.Element;
@@ -0,0 +1,97 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { given } from '../../given.js';
3
+ import { Icon } from '../icon/Icon.js';
4
+ import './CardBody.css';
5
+ import './card-body-impl.css';
6
+ import { cardBodyDefaults, cardBodyParts } from './CardBody.types.js';
7
+ /**
8
+ * Everything a `Card` holds: the words inset from its edges, and the picture
9
+ * that reaches them.
10
+ *
11
+ * The inset lives on `content` rather than on this component's own box. That is
12
+ * the whole reason both fit in one region — a body that padded itself and then
13
+ * pulled the picture back out with a negative margin would be two decisions
14
+ * undoing each other, and the system has no way to write the second one anyway:
15
+ * `staticCss` takes keywords, `100%` and `0`, so there is no negative value to
16
+ * reach for.
17
+ *
18
+ * `mediaPosition` reorders the elements rather than painting them somewhere
19
+ * else. A CSS `order` would move the picture visually and leave a screen reader
20
+ * hearing the old sequence, which is the one way a caption can end up read as an
21
+ * introduction. So it is not a styling axis and emits no rule — it decides which
22
+ * of two nodes is written first.
23
+ *
24
+ * `overMedia` is the axis, and it is a different question: not where the picture
25
+ * sits in the column but whether it is in the column at all. Under it the root
26
+ * becomes a grid, the picture and the wash are pinned to all four edges and out
27
+ * of the flow, and the content is the only child left to occupy the cell. The
28
+ * two props do not compose — a picture that is the ground has no position in a
29
+ * column it left — so `mediaPosition` is not read at all in that branch, which
30
+ * is why the markup below chooses between two whole shapes rather than
31
+ * threading one through the other.
32
+ *
33
+ * `flush` is the other axis, and it is the one prop here that answers to a
34
+ * decision made on a different component. Card's `plain` variant paints no
35
+ * ground, so there is no fill for the copy to be held off and the picture
36
+ * becomes the card's edge instead — at which point the inline inset indents the
37
+ * words from their own picture. It drops that half and keeps the block padding,
38
+ * which was never about the fill. Nothing can check the pair: the ground is
39
+ * Card's prop and the inset is this one's, and neither component can see the
40
+ * other.
41
+ *
42
+ * `zoomOnHover` is the third axis and the only one whose rule is not in the
43
+ * generated sheet. A state bound on a part emits hover on that part, which would
44
+ * zoom the picture only while the pointer was on the picture and leave it still
45
+ * over the headline of the same card. The root's hover reaching its own child has
46
+ * no vocabulary here, so it is in the impl sheet beside this file.
47
+ *
48
+ * `given` on the four strings that gate a region: absence is the switch, so an
49
+ * empty string and a string of spaces both count as absent. A title bound to a
50
+ * value that has not loaded would otherwise render an empty heading, which a
51
+ * screen reader announces as a heading with no name — and `src=""` is worse than
52
+ * nothing, since a browser resolves it against the page URL and re-requests the
53
+ * document as an image.
54
+ *
55
+ * `alt` is not read through `given`, and `mark` is not either. An `alt` of `""` is
56
+ * a real answer meaning "skip this, the copy already said it", and collapsing it
57
+ * into absence would put a filename back into a screen reader. A node is not
58
+ * blank-able the way a string is, so `mark` is tested against `undefined`.
59
+ *
60
+ * No region sets a colour. Card sets one per variant on its root and colour
61
+ * inherits, so the same title is `fg.on-solid` on the brand fill and
62
+ * `fg.default` on the page without this component knowing which card it is in.
63
+ */
64
+ export function CardBody({ eyebrow, title, description, mark, src, alt, aspect, mediaPosition = cardBodyDefaults.mediaPosition, overMedia = cardBodyDefaults.overMedia, flush = cardBodyDefaults.flush, compact = cardBodyDefaults.compact, tone = cardBodyDefaults.tone, zoomOnHover = cardBodyDefaults.zoomOnHover, children: _children, ...rest }) {
65
+ // Pulled out of `rest` and deliberately unused. `HTMLAttributes` carries a
66
+ // `children` the contract does not declare, and the generator only omits props
67
+ // it knows about — so the type accepts children this component has no slot for,
68
+ // with no complaint from TypeScript. Left in `rest` it would spread onto the div
69
+ // and be silently overridden by the regions below: the same nothing, harder to
70
+ // explain.
71
+ void _children;
72
+ const media = given(src) ? (
73
+ // The frame, not the picture, is what sits in the column: it takes the height the
74
+ // copy leaves and clips whatever grows past it. An <img> cannot clip itself, so a
75
+ // picture that scales on hover has to scale inside something.
76
+ _jsx("div", { className: cardBodyParts['media-frame'],
77
+ // Applied here rather than bound, because the contract cannot hold it: a
78
+ // token binding needs a token and the system has no aspect-ratio one, and a
79
+ // structural rule needs a styling axis, which a number cannot be. Setting it
80
+ // also has to undo the `flex: auto` the stylesheet sets unconditionally —
81
+ // left alone, flex-grow wins over `aspect-ratio` in this column and the ratio
82
+ // asked for is silently not the ratio drawn.
83
+ //
84
+ // On the frame rather than on the picture, which is where it moved when the
85
+ // frame arrived: the ratio is a fact about the box, and the picture inside it
86
+ // fills that box at 100% and covers.
87
+ style: aspect === undefined ? undefined : { flex: 'none', aspectRatio: aspect }, children: _jsx("img", { className: cardBodyParts.media, src: src, alt: alt }) })) : null;
88
+ const content = (_jsxs("div", { className: cardBodyParts.content, children: [mark !== undefined ? (_jsx("div", { className: cardBodyParts.mark, children: _jsx(Icon, { size: "lg", children: mark }) })) : null, given(eyebrow) ? _jsx("p", { className: cardBodyParts.eyebrow, children: eyebrow }) : null, given(title) ? _jsx("h3", { className: cardBodyParts.title, children: title }) : null, given(description) ? (_jsx("p", { className: cardBodyParts.description, children: description })) : null] }));
89
+ if (overMedia) {
90
+ return (
91
+ // Both values, never just the set one. The stylesheet selects on
92
+ // `[data-over-media="true"]`, and an attribute that is simply absent when false
93
+ // would leave the two branches distinguished by nothing a selector can name.
94
+ _jsxs("div", { className: cardBodyParts.root, "data-over-media": "true", "data-flush": flush ? 'true' : 'false', "data-zoom-on-hover": zoomOnHover ? 'true' : 'false', "data-compact": compact ? 'true' : 'false', "data-tone": tone, ...rest, children: [media, _jsx("span", { className: cardBodyParts.scrim }), content] }));
95
+ }
96
+ return (_jsxs("div", { className: cardBodyParts.root, "data-over-media": "false", "data-flush": flush ? 'true' : 'false', "data-zoom-on-hover": zoomOnHover ? 'true' : 'false', "data-compact": compact ? 'true' : 'false', "data-tone": tone, ...rest, children: [mediaPosition === 'above' ? media : null, content, mediaPosition === 'above' ? null : media] }));
97
+ }
@@ -0,0 +1,61 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ export interface CardBodyOwnProps {
3
+ /** The picture is the card's ground and the copy is read on top of it. Set explicitly rather than inferred from src, which BannerBody can afford to do and this cannot: there, art is always behind the words, so having art and being over it are the same fact. Here a picture is a region in the column by default, and the same src means two different cards */
4
+ overMedia?: boolean;
5
+ /** The card has no fill for the copy to be held off — Card's `plain` variant, where the picture is the card's edge rather than the ground being it. The inline inset goes and the copy lines up with the picture above it; the block padding stays, because the space between a picture and the line under it is still doing its job */
6
+ flush?: boolean;
7
+ /** The card is pressable and its picture is what answers the pointer — an editorial card inside a CardButton, on any ground. The picture grows by motion.scale.media-hover and media-frame clips it, so what the reader sees is the frame holding still while the art moves inside it. Setting this is also what stops the card lifting: CardButton suppresses its own lift when the body it holds zooms, so the two motions never compete */
8
+ zoomOnHover?: boolean;
9
+ /** The card is small enough that the standard inset and the standard type are most of it. `space.inset.card` is thirty-two, which is a fifth of the width of a rail beside a footer's columns; `font.h5` is twenty-four, which is a heading over a group of cards rather than the name of one two hundred pixels wide.
10
+
11
+ This takes the inset to `space.inset.md`, the title to `font.label.md` and the description to `font.body.sm` — sixteen and fourteen, where the standard card runs twenty-four and sixteen. The pair moves together: dropping the title alone would put a heading two pixels above its own body copy.
12
+
13
+ It is about the card's size rather than its importance. A compact card is not a lesser one. */
14
+ compact?: boolean;
15
+ /**
16
+ * `default` — The card is on the page, which is nearly every card
17
+ * `inverse` — The card sits on a band that paints its own dark ground, and carries `tone="inverse"` itself. The eyebrow takes the inverse muted ink so it stays quieter than the copy without falling below what a reader can make out
18
+ */
19
+ tone?: 'default' | 'inverse';
20
+ /** The card is filed under something a reader scans before the headline — the date an article ran, how long it takes to read, the category it sits in. Write it in the case it should be read in: the part draws the capitals itself, so 'August' is what belongs here and AUGUST is what appears */
21
+ eyebrow?: string;
22
+ /** The card names what it is about. A noun phrase rather than a sentence — 'Balance protection', not 'We protect your balance' — because it is read as a label on the block beneath it. A string rather than a node: a node could carry a mark or a link, and would cost the component its examples — the checker requires a named element there, so no row could ever show a card with real copy in it. */
23
+ title?: string;
24
+ /** What the title means, usually a sentence or two. It takes the default body step, because a card's copy is copy rather than a caption. A string rather than a node, for the reason the title is one — a node prop cannot be given text in an examples row, and a card nobody can show is worse than a sentence that cannot hold a link. */
25
+ description?: string;
26
+ /** The card leads with a glyph — a badge, a shield, a small piece of art that makes the feature recognisable before the title is read. Set it on every card in a set or on none of them: one card in a row carrying a mark reads as the important one, which is a claim the mark was not meant to make. Pass the glyph; the body draws it at its own step, and an Icon passed already sized is unwrapped rather than obeyed */
27
+ mark?: ReactNode;
28
+ /** The card shows a picture — a photograph, a product render, a screenshot of the thing being described. Absent is the ordinary case: most cards are words */
29
+ src?: string;
30
+ /** Whenever src is, and empty when the picture says nothing the copy has not already said. A decorative render beside a title naming it — a shield next to 'Integrity' — takes alt="", which tells a screen reader to skip it rather than read a filename aloud. A photograph carrying meaning of its own takes a sentence describing what it shows */
31
+ alt?: string;
32
+ /** The picture must hold a known shape rather than absorb the card's spare height — a logo that distorts the moment it is cropped, or a chart whose proportions are the point. Written as the division rather than the result, so the shape is legible: aspect={16 / 9}, not aspect={1.7778} */
33
+ aspect?: number;
34
+ /**
35
+ * `below` — The copy introduces the picture — a feature named and explained, then shown. The ordinary case, and what a reader scanning a column of cards is reading for
36
+ * `above` — The picture is what the reader recognises the card by and the words caption it — a photograph leading an article, a screenshot the copy then describes. Changes the order of the elements themselves rather than only their appearance, so what a screen reader hears follows what the page shows
37
+ */
38
+ mediaPosition?: 'below' | 'above';
39
+ }
40
+ export type CardBodyProps = CardBodyOwnProps & Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'overMedia' | 'flush' | 'zoomOnHover' | 'compact' | 'tone' | 'eyebrow' | 'title' | 'description' | 'mark' | 'src' | 'alt' | 'aspect' | 'mediaPosition'>;
41
+ /** The class each part carries. Apply these — do not retype them. */
42
+ export declare const cardBodyParts: {
43
+ readonly root: "dds-cardbody";
44
+ readonly scrim: "dds-cardbody__scrim";
45
+ readonly content: "dds-cardbody__content";
46
+ readonly mark: "dds-cardbody__mark";
47
+ readonly eyebrow: "dds-cardbody__eyebrow";
48
+ readonly title: "dds-cardbody__title";
49
+ readonly description: "dds-cardbody__description";
50
+ readonly 'media-frame': "dds-cardbody__media-frame";
51
+ readonly media: "dds-cardbody__media";
52
+ };
53
+ /** Generated so defaults cannot drift from the contract. */
54
+ export declare const cardBodyDefaults: {
55
+ readonly overMedia: false;
56
+ readonly flush: false;
57
+ readonly zoomOnHover: false;
58
+ readonly compact: false;
59
+ readonly tone: "default";
60
+ readonly mediaPosition: "below";
61
+ };
@@ -0,0 +1,15 @@
1
+ // GENERATED from card-body.contract.json. Do not edit.
2
+ /** The class each part carries. Apply these — do not retype them. */
3
+ export const cardBodyParts = {
4
+ root: 'dds-cardbody',
5
+ scrim: 'dds-cardbody__scrim',
6
+ content: 'dds-cardbody__content',
7
+ mark: 'dds-cardbody__mark',
8
+ eyebrow: 'dds-cardbody__eyebrow',
9
+ title: 'dds-cardbody__title',
10
+ description: 'dds-cardbody__description',
11
+ 'media-frame': 'dds-cardbody__media-frame',
12
+ media: 'dds-cardbody__media',
13
+ };
14
+ /** Generated so defaults cannot drift from the contract. */
15
+ export const cardBodyDefaults = { overMedia: false, flush: false, zoomOnHover: false, compact: false, tone: 'default', mediaPosition: 'below' };