@canonical/react-ds-global 0.36.0 → 0.38.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 (279) hide show
  1. package/README.md +72 -0
  2. package/dist/esm/lib/_work_in_progress/Announcement/styles.css +51 -42
  3. package/dist/esm/lib/_work_in_progress/CategoriesSection/common/Category/styles.css +21 -17
  4. package/dist/esm/lib/_work_in_progress/CategoriesSection/styles.css +16 -12
  5. package/dist/esm/lib/_work_in_progress/ChatSection/styles.css +22 -18
  6. package/dist/esm/lib/_work_in_progress/DescriptionSection/styles.css +14 -10
  7. package/dist/esm/lib/_work_in_progress/IconSection/styles.css +18 -14
  8. package/dist/esm/lib/_work_in_progress/Label/styles.css +36 -32
  9. package/dist/esm/lib/_work_in_progress/Link/styles.css +32 -28
  10. package/dist/esm/lib/_work_in_progress/Rule/styles.css +21 -14
  11. package/dist/esm/lib/_work_in_progress/Section/styles.css +66 -62
  12. package/dist/esm/lib/_work_in_progress/SkipLink/styles.css +35 -32
  13. package/dist/esm/lib/_work_in_progress/TSection/styles.css +26 -22
  14. package/dist/esm/lib/_work_in_progress/grid/ApplicationLayout/ApplicationLayout.js +4 -1
  15. package/dist/esm/lib/_work_in_progress/grid/ApplicationLayout/ApplicationLayout.js.map +1 -1
  16. package/dist/esm/lib/_work_in_progress/grid/ApplicationLayout/styles.css +21 -17
  17. package/dist/esm/lib/_work_in_progress/grid/GridCard/GridCard.js +4 -1
  18. package/dist/esm/lib/_work_in_progress/grid/GridCard/GridCard.js.map +1 -1
  19. package/dist/esm/lib/_work_in_progress/grid/GridCard/styles.css +8 -4
  20. package/dist/esm/lib/_work_in_progress/grid/InnerGridDemo/styles.css +38 -33
  21. package/dist/esm/lib/_work_in_progress/grid/SettingsView/SettingsView.js +4 -1
  22. package/dist/esm/lib/_work_in_progress/grid/SettingsView/SettingsView.js.map +1 -1
  23. package/dist/esm/lib/_work_in_progress/grid/SettingsView/styles.css +23 -19
  24. package/dist/esm/lib/component/Accordion/common/Item/styles.css +305 -299
  25. package/dist/esm/lib/component/Accordion/styles.css +35 -31
  26. package/dist/esm/lib/component/Badge/hooks/useBadge.js +1 -1
  27. package/dist/esm/lib/component/Badge/hooks/useBadge.js.map +1 -1
  28. package/dist/esm/lib/component/Badge/styles.css +45 -41
  29. package/dist/esm/lib/component/Breadcrumbs/Breadcrumbs.js +1 -1
  30. package/dist/esm/lib/component/Breadcrumbs/Breadcrumbs.js.map +1 -1
  31. package/dist/esm/lib/component/Breadcrumbs/common/Item/styles.css +69 -65
  32. package/dist/esm/lib/component/Breadcrumbs/styles.css +30 -26
  33. package/dist/esm/lib/component/Button/styles.css +293 -260
  34. package/dist/esm/lib/component/Card/common/Content/styles.css +27 -23
  35. package/dist/esm/lib/component/Card/common/Footer/styles.css +30 -26
  36. package/dist/esm/lib/component/Card/common/Header/styles.css +25 -21
  37. package/dist/esm/lib/component/Card/common/Image/styles.css +8 -4
  38. package/dist/esm/lib/component/Card/styles.css +77 -73
  39. package/dist/esm/lib/component/Chip/Chip.js +29 -6
  40. package/dist/esm/lib/component/Chip/Chip.js.map +1 -1
  41. package/dist/esm/lib/component/Chip/styles.css +105 -101
  42. package/dist/esm/lib/component/ContextualMenu/ContextualMenu.js +29 -20
  43. package/dist/esm/lib/component/ContextualMenu/ContextualMenu.js.map +1 -1
  44. package/dist/esm/lib/component/ContextualMenu/common/Item/Item.js +25 -2
  45. package/dist/esm/lib/component/ContextualMenu/common/Item/Item.js.map +1 -1
  46. package/dist/esm/lib/component/ContextualMenu/common/Item/styles.css +116 -106
  47. package/dist/esm/lib/component/ContextualMenu/common/SubMenu/SubMenu.js +29 -9
  48. package/dist/esm/lib/component/ContextualMenu/common/SubMenu/SubMenu.js.map +1 -1
  49. package/dist/esm/lib/component/ContextualMenu/styles.css +74 -72
  50. package/dist/esm/lib/component/Icon/styles.css +24 -20
  51. package/dist/esm/lib/component/InlineCode/styles.css +19 -15
  52. package/dist/esm/lib/component/KeyboardKey/styles.css +44 -40
  53. package/dist/esm/lib/component/Popover/Popover.js.map +1 -1
  54. package/dist/esm/lib/component/Popover/styles.css +59 -52
  55. package/dist/esm/lib/component/Tabs/common/Item/styles.css +80 -76
  56. package/dist/esm/lib/component/Tabs/styles.css +36 -32
  57. package/dist/esm/lib/component/Tile/common/Content/styles.css +28 -24
  58. package/dist/esm/lib/component/Tile/common/Header/styles.css +28 -24
  59. package/dist/esm/lib/component/Tile/styles.css +31 -27
  60. package/dist/esm/lib/component/Tooltip/Tooltip.js +6 -2
  61. package/dist/esm/lib/component/Tooltip/Tooltip.js.map +1 -1
  62. package/dist/esm/lib/component/Tooltip/styles.css +213 -208
  63. package/dist/esm/lib/group/Cards/styles.css +26 -22
  64. package/dist/esm/lib/group/KeyboardKeys/styles.css +14 -10
  65. package/dist/esm/lib/hooks/useContextualMenu/index.js +1 -0
  66. package/dist/esm/lib/hooks/useContextualMenu/index.js.map +1 -1
  67. package/dist/esm/lib/hooks/useContextualMenu/isMenuSeparator.js +11 -0
  68. package/dist/esm/lib/hooks/useContextualMenu/isMenuSeparator.js.map +1 -0
  69. package/dist/esm/lib/hooks/useContextualMenu/useContextualMenu.js +54 -34
  70. package/dist/esm/lib/hooks/useContextualMenu/useContextualMenu.js.map +1 -1
  71. package/dist/esm/lib/hooks/useDisclosure/useDisclosure.js.map +1 -1
  72. package/dist/esm/lib/hooks/useWindowDimensions/useWindowDimensions.js +1 -1
  73. package/dist/esm/lib/hooks/useWindowDimensions/useWindowDimensions.js.map +1 -1
  74. package/dist/esm/lib/hooks/useWindowFitment/useWindowFitment.js +3 -0
  75. package/dist/esm/lib/hooks/useWindowFitment/useWindowFitment.js.map +1 -1
  76. package/dist/esm/lib/index.css +79 -0
  77. package/dist/esm/lib/pattern/Modal/Context.js +10 -0
  78. package/dist/esm/lib/pattern/Modal/Context.js.map +1 -0
  79. package/dist/esm/lib/pattern/Modal/Provider.js +103 -0
  80. package/dist/esm/lib/pattern/Modal/Provider.js.map +1 -0
  81. package/dist/esm/lib/pattern/Modal/common/Content/Content.js +15 -0
  82. package/dist/esm/lib/pattern/Modal/common/Content/Content.js.map +1 -0
  83. package/dist/esm/lib/pattern/Modal/common/Content/index.js +3 -0
  84. package/dist/esm/lib/pattern/Modal/common/Content/index.js.map +1 -0
  85. package/dist/esm/lib/pattern/Modal/common/Content/styles.css +37 -0
  86. package/dist/esm/lib/pattern/Modal/common/Content/types.js +2 -0
  87. package/dist/esm/lib/pattern/Modal/common/Content/types.js.map +1 -0
  88. package/dist/esm/lib/pattern/Modal/common/Footer/Footer.js +16 -0
  89. package/dist/esm/lib/pattern/Modal/common/Footer/Footer.js.map +1 -0
  90. package/dist/esm/lib/pattern/Modal/common/Footer/index.js +3 -0
  91. package/dist/esm/lib/pattern/Modal/common/Footer/index.js.map +1 -0
  92. package/dist/esm/lib/pattern/Modal/common/Footer/styles.css +57 -0
  93. package/dist/esm/lib/pattern/Modal/common/Footer/types.js +2 -0
  94. package/dist/esm/lib/pattern/Modal/common/Footer/types.js.map +1 -0
  95. package/dist/esm/lib/pattern/Modal/common/Header/Header.js +27 -0
  96. package/dist/esm/lib/pattern/Modal/common/Header/Header.js.map +1 -0
  97. package/dist/esm/lib/pattern/Modal/common/Header/index.js +3 -0
  98. package/dist/esm/lib/pattern/Modal/common/Header/index.js.map +1 -0
  99. package/dist/esm/lib/pattern/Modal/common/Header/styles.css +79 -0
  100. package/dist/esm/lib/pattern/Modal/common/Header/types.js +2 -0
  101. package/dist/esm/lib/pattern/Modal/common/Header/types.js.map +1 -0
  102. package/dist/esm/lib/pattern/Modal/common/index.js +5 -0
  103. package/dist/esm/lib/pattern/Modal/common/index.js.map +1 -0
  104. package/dist/esm/lib/pattern/Modal/hooks/useModalContext.js +11 -0
  105. package/dist/esm/lib/pattern/Modal/hooks/useModalContext.js.map +1 -0
  106. package/dist/esm/lib/pattern/Modal/hooks/useModalState.js +15 -0
  107. package/dist/esm/lib/pattern/Modal/hooks/useModalState.js.map +1 -0
  108. package/dist/esm/lib/pattern/Modal/index.js +4 -0
  109. package/dist/esm/lib/pattern/Modal/index.js.map +1 -0
  110. package/dist/esm/lib/pattern/Modal/styles.css +119 -0
  111. package/dist/esm/lib/pattern/Modal/types.js +2 -0
  112. package/dist/esm/lib/pattern/Modal/types.js.map +1 -0
  113. package/dist/esm/lib/pattern/Modal/withModal.js +102 -0
  114. package/dist/esm/lib/pattern/Modal/withModal.js.map +1 -0
  115. package/dist/esm/lib/pattern/Timeline/common/Content/styles.css +16 -12
  116. package/dist/esm/lib/pattern/Timeline/common/Event/styles.css +116 -112
  117. package/dist/esm/lib/pattern/Timeline/styles.css +16 -12
  118. package/dist/esm/lib/pattern/index.js +1 -0
  119. package/dist/esm/lib/pattern/index.js.map +1 -1
  120. package/dist/esm/lib/subcomponent/Spinner/styles.css +38 -34
  121. package/dist/types/lib/_work_in_progress/Announcement/types.d.ts +8 -8
  122. package/dist/types/lib/_work_in_progress/Announcement/types.d.ts.map +1 -1
  123. package/dist/types/lib/_work_in_progress/CategoriesSection/common/Category/types.d.ts +5 -3
  124. package/dist/types/lib/_work_in_progress/CategoriesSection/common/Category/types.d.ts.map +1 -1
  125. package/dist/types/lib/_work_in_progress/CategoriesSection/types.d.ts +6 -3
  126. package/dist/types/lib/_work_in_progress/CategoriesSection/types.d.ts.map +1 -1
  127. package/dist/types/lib/_work_in_progress/ChatSection/types.d.ts +6 -3
  128. package/dist/types/lib/_work_in_progress/ChatSection/types.d.ts.map +1 -1
  129. package/dist/types/lib/_work_in_progress/DescriptionSection/types.d.ts +6 -3
  130. package/dist/types/lib/_work_in_progress/DescriptionSection/types.d.ts.map +1 -1
  131. package/dist/types/lib/_work_in_progress/IconSection/types.d.ts +6 -3
  132. package/dist/types/lib/_work_in_progress/IconSection/types.d.ts.map +1 -1
  133. package/dist/types/lib/_work_in_progress/Label/types.d.ts +20 -18
  134. package/dist/types/lib/_work_in_progress/Label/types.d.ts.map +1 -1
  135. package/dist/types/lib/_work_in_progress/Rule/types.d.ts +5 -7
  136. package/dist/types/lib/_work_in_progress/Rule/types.d.ts.map +1 -1
  137. package/dist/types/lib/_work_in_progress/Section/types.d.ts +9 -10
  138. package/dist/types/lib/_work_in_progress/Section/types.d.ts.map +1 -1
  139. package/dist/types/lib/_work_in_progress/SkipLink/types.d.ts +14 -8
  140. package/dist/types/lib/_work_in_progress/SkipLink/types.d.ts.map +1 -1
  141. package/dist/types/lib/_work_in_progress/TSection/types.d.ts +14 -3
  142. package/dist/types/lib/_work_in_progress/TSection/types.d.ts.map +1 -1
  143. package/dist/types/lib/_work_in_progress/grid/ApplicationLayout/ApplicationLayout.d.ts.map +1 -1
  144. package/dist/types/lib/_work_in_progress/grid/ApplicationLayout/types.d.ts +5 -3
  145. package/dist/types/lib/_work_in_progress/grid/ApplicationLayout/types.d.ts.map +1 -1
  146. package/dist/types/lib/_work_in_progress/grid/GridCard/GridCard.d.ts.map +1 -1
  147. package/dist/types/lib/_work_in_progress/grid/GridCard/types.d.ts +5 -3
  148. package/dist/types/lib/_work_in_progress/grid/GridCard/types.d.ts.map +1 -1
  149. package/dist/types/lib/_work_in_progress/grid/InnerGridDemo/types.d.ts +5 -3
  150. package/dist/types/lib/_work_in_progress/grid/InnerGridDemo/types.d.ts.map +1 -1
  151. package/dist/types/lib/_work_in_progress/grid/SettingsView/SettingsView.d.ts.map +1 -1
  152. package/dist/types/lib/_work_in_progress/grid/SettingsView/types.d.ts +5 -3
  153. package/dist/types/lib/_work_in_progress/grid/SettingsView/types.d.ts.map +1 -1
  154. package/dist/types/lib/component/Accordion/common/Item/types.d.ts +28 -22
  155. package/dist/types/lib/component/Accordion/common/Item/types.d.ts.map +1 -1
  156. package/dist/types/lib/component/Accordion/types.d.ts +8 -6
  157. package/dist/types/lib/component/Accordion/types.d.ts.map +1 -1
  158. package/dist/types/lib/component/Badge/types.d.ts +6 -4
  159. package/dist/types/lib/component/Badge/types.d.ts.map +1 -1
  160. package/dist/types/lib/component/Breadcrumbs/common/Item/types.d.ts +12 -10
  161. package/dist/types/lib/component/Breadcrumbs/common/Item/types.d.ts.map +1 -1
  162. package/dist/types/lib/component/Breadcrumbs/types.d.ts +11 -10
  163. package/dist/types/lib/component/Breadcrumbs/types.d.ts.map +1 -1
  164. package/dist/types/lib/component/Button/index.d.ts +1 -1
  165. package/dist/types/lib/component/Button/index.d.ts.map +1 -1
  166. package/dist/types/lib/component/Button/types.d.ts +10 -8
  167. package/dist/types/lib/component/Button/types.d.ts.map +1 -1
  168. package/dist/types/lib/component/Card/common/Content/types.d.ts +7 -5
  169. package/dist/types/lib/component/Card/common/Content/types.d.ts.map +1 -1
  170. package/dist/types/lib/component/Card/common/Footer/types.d.ts +7 -5
  171. package/dist/types/lib/component/Card/common/Footer/types.d.ts.map +1 -1
  172. package/dist/types/lib/component/Card/common/Header/types.d.ts +7 -5
  173. package/dist/types/lib/component/Card/common/Header/types.d.ts.map +1 -1
  174. package/dist/types/lib/component/Card/common/Image/types.d.ts +6 -3
  175. package/dist/types/lib/component/Card/common/Image/types.d.ts.map +1 -1
  176. package/dist/types/lib/component/Card/types.d.ts +6 -3
  177. package/dist/types/lib/component/Card/types.d.ts.map +1 -1
  178. package/dist/types/lib/component/Chip/Chip.d.ts +7 -2
  179. package/dist/types/lib/component/Chip/Chip.d.ts.map +1 -1
  180. package/dist/types/lib/component/Chip/types.d.ts +29 -13
  181. package/dist/types/lib/component/Chip/types.d.ts.map +1 -1
  182. package/dist/types/lib/component/ContextualMenu/ContextualMenu.d.ts +4 -4
  183. package/dist/types/lib/component/ContextualMenu/ContextualMenu.d.ts.map +1 -1
  184. package/dist/types/lib/component/ContextualMenu/common/Item/Item.d.ts.map +1 -1
  185. package/dist/types/lib/component/ContextualMenu/common/Item/types.d.ts +7 -0
  186. package/dist/types/lib/component/ContextualMenu/common/Item/types.d.ts.map +1 -1
  187. package/dist/types/lib/component/ContextualMenu/common/MenuContext.d.ts +1 -1
  188. package/dist/types/lib/component/ContextualMenu/common/MenuContext.d.ts.map +1 -1
  189. package/dist/types/lib/component/ContextualMenu/common/SubMenu/SubMenu.d.ts +9 -7
  190. package/dist/types/lib/component/ContextualMenu/common/SubMenu/SubMenu.d.ts.map +1 -1
  191. package/dist/types/lib/component/ContextualMenu/types.d.ts +17 -8
  192. package/dist/types/lib/component/ContextualMenu/types.d.ts.map +1 -1
  193. package/dist/types/lib/component/Icon/types.d.ts +6 -8
  194. package/dist/types/lib/component/Icon/types.d.ts.map +1 -1
  195. package/dist/types/lib/component/InlineCode/types.d.ts +6 -3
  196. package/dist/types/lib/component/InlineCode/types.d.ts.map +1 -1
  197. package/dist/types/lib/component/KeyboardKey/types.d.ts +6 -3
  198. package/dist/types/lib/component/KeyboardKey/types.d.ts.map +1 -1
  199. package/dist/types/lib/component/Popover/types.d.ts +10 -3
  200. package/dist/types/lib/component/Popover/types.d.ts.map +1 -1
  201. package/dist/types/lib/component/Tabs/common/Item/types.d.ts +4 -0
  202. package/dist/types/lib/component/Tabs/common/Item/types.d.ts.map +1 -1
  203. package/dist/types/lib/component/Tabs/types.d.ts +12 -10
  204. package/dist/types/lib/component/Tabs/types.d.ts.map +1 -1
  205. package/dist/types/lib/component/Tile/common/Content/types.d.ts +9 -7
  206. package/dist/types/lib/component/Tile/common/Content/types.d.ts.map +1 -1
  207. package/dist/types/lib/component/Tile/common/Header/types.d.ts +9 -7
  208. package/dist/types/lib/component/Tile/common/Header/types.d.ts.map +1 -1
  209. package/dist/types/lib/component/Tile/types.d.ts +10 -8
  210. package/dist/types/lib/component/Tile/types.d.ts.map +1 -1
  211. package/dist/types/lib/component/Tooltip/Tooltip.d.ts +1 -1
  212. package/dist/types/lib/component/Tooltip/Tooltip.d.ts.map +1 -1
  213. package/dist/types/lib/component/Tooltip/types.d.ts +11 -10
  214. package/dist/types/lib/component/Tooltip/types.d.ts.map +1 -1
  215. package/dist/types/lib/group/Cards/types.d.ts +6 -3
  216. package/dist/types/lib/group/Cards/types.d.ts.map +1 -1
  217. package/dist/types/lib/group/KeyboardKeys/types.d.ts +6 -3
  218. package/dist/types/lib/group/KeyboardKeys/types.d.ts.map +1 -1
  219. package/dist/types/lib/hooks/useContextualMenu/index.d.ts +1 -0
  220. package/dist/types/lib/hooks/useContextualMenu/index.d.ts.map +1 -1
  221. package/dist/types/lib/hooks/useContextualMenu/isMenuSeparator.d.ts +13 -0
  222. package/dist/types/lib/hooks/useContextualMenu/isMenuSeparator.d.ts.map +1 -0
  223. package/dist/types/lib/hooks/useContextualMenu/types.d.ts +45 -15
  224. package/dist/types/lib/hooks/useContextualMenu/types.d.ts.map +1 -1
  225. package/dist/types/lib/hooks/useContextualMenu/useContextualMenu.d.ts +5 -6
  226. package/dist/types/lib/hooks/useContextualMenu/useContextualMenu.d.ts.map +1 -1
  227. package/dist/types/lib/hooks/useDisclosure/types.d.ts +7 -2
  228. package/dist/types/lib/hooks/useDisclosure/types.d.ts.map +1 -1
  229. package/dist/types/lib/hooks/useDisclosure/useDisclosure.d.ts +1 -1
  230. package/dist/types/lib/hooks/useDisclosure/useDisclosure.d.ts.map +1 -1
  231. package/dist/types/lib/hooks/useWindowFitment/types.d.ts +12 -3
  232. package/dist/types/lib/hooks/useWindowFitment/types.d.ts.map +1 -1
  233. package/dist/types/lib/hooks/useWindowFitment/useWindowFitment.d.ts +1 -1
  234. package/dist/types/lib/hooks/useWindowFitment/useWindowFitment.d.ts.map +1 -1
  235. package/dist/types/lib/pattern/Modal/Context.d.ts +10 -0
  236. package/dist/types/lib/pattern/Modal/Context.d.ts.map +1 -0
  237. package/dist/types/lib/pattern/Modal/Provider.d.ts +63 -0
  238. package/dist/types/lib/pattern/Modal/Provider.d.ts.map +1 -0
  239. package/dist/types/lib/pattern/Modal/common/Content/Content.d.ts +17 -0
  240. package/dist/types/lib/pattern/Modal/common/Content/Content.d.ts.map +1 -0
  241. package/dist/types/lib/pattern/Modal/common/Content/index.d.ts +3 -0
  242. package/dist/types/lib/pattern/Modal/common/Content/index.d.ts.map +1 -0
  243. package/dist/types/lib/pattern/Modal/common/Content/types.d.ts +15 -0
  244. package/dist/types/lib/pattern/Modal/common/Content/types.d.ts.map +1 -0
  245. package/dist/types/lib/pattern/Modal/common/Footer/Footer.d.ts +18 -0
  246. package/dist/types/lib/pattern/Modal/common/Footer/Footer.d.ts.map +1 -0
  247. package/dist/types/lib/pattern/Modal/common/Footer/index.d.ts +3 -0
  248. package/dist/types/lib/pattern/Modal/common/Footer/index.d.ts.map +1 -0
  249. package/dist/types/lib/pattern/Modal/common/Footer/types.d.ts +16 -0
  250. package/dist/types/lib/pattern/Modal/common/Footer/types.d.ts.map +1 -0
  251. package/dist/types/lib/pattern/Modal/common/Header/Header.d.ts +24 -0
  252. package/dist/types/lib/pattern/Modal/common/Header/Header.d.ts.map +1 -0
  253. package/dist/types/lib/pattern/Modal/common/Header/index.d.ts +3 -0
  254. package/dist/types/lib/pattern/Modal/common/Header/index.d.ts.map +1 -0
  255. package/dist/types/lib/pattern/Modal/common/Header/types.d.ts +36 -0
  256. package/dist/types/lib/pattern/Modal/common/Header/types.d.ts.map +1 -0
  257. package/dist/types/lib/pattern/Modal/common/index.d.ts +4 -0
  258. package/dist/types/lib/pattern/Modal/common/index.d.ts.map +1 -0
  259. package/dist/types/lib/pattern/Modal/hooks/useModalContext.d.ts +4 -0
  260. package/dist/types/lib/pattern/Modal/hooks/useModalContext.d.ts.map +1 -0
  261. package/dist/types/lib/pattern/Modal/hooks/useModalState.d.ts +10 -0
  262. package/dist/types/lib/pattern/Modal/hooks/useModalState.d.ts.map +1 -0
  263. package/dist/types/lib/pattern/Modal/index.d.ts +4 -0
  264. package/dist/types/lib/pattern/Modal/index.d.ts.map +1 -0
  265. package/dist/types/lib/pattern/Modal/types.d.ts +122 -0
  266. package/dist/types/lib/pattern/Modal/types.d.ts.map +1 -0
  267. package/dist/types/lib/pattern/Modal/withModal.d.ts +74 -0
  268. package/dist/types/lib/pattern/Modal/withModal.d.ts.map +1 -0
  269. package/dist/types/lib/pattern/Timeline/common/Content/types.d.ts +10 -8
  270. package/dist/types/lib/pattern/Timeline/common/Content/types.d.ts.map +1 -1
  271. package/dist/types/lib/pattern/Timeline/common/Event/types.d.ts +18 -16
  272. package/dist/types/lib/pattern/Timeline/common/Event/types.d.ts.map +1 -1
  273. package/dist/types/lib/pattern/Timeline/types.d.ts +10 -8
  274. package/dist/types/lib/pattern/Timeline/types.d.ts.map +1 -1
  275. package/dist/types/lib/pattern/index.d.ts +1 -0
  276. package/dist/types/lib/pattern/index.d.ts.map +1 -1
  277. package/dist/types/lib/subcomponent/Spinner/types.d.ts +10 -8
  278. package/dist/types/lib/subcomponent/Spinner/types.d.ts.map +1 -1
  279. package/package.json +28 -18
@@ -1,10 +1,5 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- /**
3
- We have used the `HTMLDivElement` as a default props base.
4
- If your component is based on a different HTML element, please update it accordingly.
5
- See https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API for a full list of HTML elements interfaces.
6
- */
7
- export interface SkipLinkProps extends Omit<HTMLAttributes<HTMLAnchorElement>, "href" | "tabIndex"> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
8
3
  /** The contents of the skip link itself */
9
4
  children?: ReactNode;
10
5
  /**
@@ -12,5 +7,16 @@ export interface SkipLinkProps extends Omit<HTMLAttributes<HTMLAnchorElement>, "
12
7
  * @default "main"
13
8
  * */
14
9
  mainId?: string;
15
- }
10
+ };
11
+ /**
12
+ * Props for the SkipLink component, extending the native props of its `<a>`
13
+ * root.
14
+ *
15
+ * The native `href` and `tabIndex` are deliberately excluded: the DS drives
16
+ * both — `href` is derived from `mainId` (`#${mainId}`) so the link always
17
+ * targets the main content element, and `tabIndex` is fixed at `0` so the skip
18
+ * link stays reachable as the first stop in the tab order.
19
+ */
20
+ export type SkipLinkProps = OwnProps & Omit<ComponentProps<"a">, keyof OwnProps | "href" | "tabIndex">;
21
+ export {};
16
22
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/SkipLink/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;EAIE;AACF,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IACpE,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;SAGK;IACL,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/SkipLink/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;SAGK;IACL,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAClC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC,CAAC"}
@@ -1,6 +1,17 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface TSectionProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
3
  /** Content to render inside the component */
4
4
  children?: ReactNode;
5
- }
5
+ /**
6
+ * The section heading, rendered into the section's `<h2>`.
7
+ *
8
+ * `title` is DS-owned here and deliberately shadows the native `title`
9
+ * attribute: it is consumed as the heading and never forwarded to the DOM,
10
+ * so a `TSection` cannot also carry a native `title` tooltip.
11
+ * @default "Section title"
12
+ */
13
+ title?: string;
14
+ };
15
+ export type TSectionProps = OwnProps & Omit<ComponentProps<"section">, keyof OwnProps>;
16
+ export {};
6
17
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/TSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/_work_in_progress/TSection/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAClC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/ApplicationLayout/ApplicationLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,cAAc,CAAC;AAGtB;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,mCAI/B,sBAAsB,KAAG,KAAK,CAAC,SAWjC,CAAC"}
1
+ {"version":3,"file":"ApplicationLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/ApplicationLayout/ApplicationLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,cAAc,CAAC;AAOtB;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,mCAI/B,sBAAsB,KAAG,KAAK,CAAC,SAWjC,CAAC"}
@@ -1,6 +1,8 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface ApplicationLayoutProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
3
  /** Content to render inside the component */
4
4
  children?: ReactNode;
5
- }
5
+ };
6
+ export type ApplicationLayoutProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
7
+ export {};
6
8
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/ApplicationLayout/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,sBAAuB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC5E,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/ApplicationLayout/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAC3C,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GridCard.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/GridCard/GridCard.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,cAAc,CAAC;AAEtB;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,mCAItB,aAAa,KAAG,KAAK,CAAC,SAMxB,CAAC"}
1
+ {"version":3,"file":"GridCard.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/GridCard/GridCard.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,cAAc,CAAC;AAMtB;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,mCAItB,aAAa,KAAG,KAAK,CAAC,SASxB,CAAC"}
@@ -1,6 +1,8 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface GridCardProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
3
  /** Content to render inside the component */
4
4
  children?: ReactNode;
5
- }
5
+ };
6
+ export type GridCardProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
7
+ export {};
6
8
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/GridCard/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/GridCard/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,GAClC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,6 +1,8 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface InnerGridDemoProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
3
  /** Content to render inside the component */
4
4
  children?: ReactNode;
5
- }
5
+ };
6
+ export type InnerGridDemoProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
7
+ export {};
6
8
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/InnerGridDemo/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACxE,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/InnerGridDemo/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GACvC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsView.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/SettingsView/SettingsView.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,cAAc,CAAC;AAEtB;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,0CAK1B,iBAAiB,KAAG,KAAK,CAAC,SAoB5B,CAAC"}
1
+ {"version":3,"file":"SettingsView.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/SettingsView/SettingsView.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,cAAc,CAAC;AAMtB;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,0CAK1B,iBAAiB,KAAG,KAAK,CAAC,SAoB5B,CAAC"}
@@ -1,8 +1,10 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface SettingsViewProps extends HTMLAttributes<HTMLDivElement> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
3
  /** Content to render inside the component */
4
4
  children?: ReactNode;
5
5
  /** Title displayed at the top of the settings view */
6
6
  title?: string;
7
- }
7
+ };
8
+ export type SettingsViewProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
9
+ export {};
8
10
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/SettingsView/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACvE,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/_work_in_progress/grid/SettingsView/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GACtC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,24 +1,5 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- /**
3
- * Props for the Accordion.Item subcomponent
4
- *
5
- * @implements ds:global.subcomponent.accordion-item
6
- *
7
- * Anatomy (from DSL):
8
- * - layout.type: stack
9
- * - layout.direction: vertical
10
- * - edges:
11
- * - header tab (slotName: header, cardinality: 1)
12
- * - control (chevron, cardinality: 1)
13
- * - heading (slotName: default, cardinality: 1)
14
- * - content panel (slotName: default, cardinality: 1)
15
- *
16
- * Rendered with native `<details>`/`<summary>`, so the browser owns the
17
- * open/close state and keyboard interaction. `expanded` (with
18
- * `onExpandedChange`) is an optional controlled overlay on the native `open`
19
- * attribute.
20
- */
21
- export interface ItemProps extends Omit<HTMLAttributes<HTMLDetailsElement>, "onToggle"> {
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
22
3
  /**
23
4
  * The accordion item's heading. Pass a node — including the heading element
24
5
  * (e.g. `<h3>…</h3>`) at the level appropriate for the page's document
@@ -41,5 +22,30 @@ export interface ItemProps extends Omit<HTMLAttributes<HTMLDetailsElement>, "onT
41
22
  * Callback fired when the expanded state changes (from the native toggle).
42
23
  */
43
24
  onExpandedChange?: (expanded: boolean) => void;
44
- }
25
+ };
26
+ /**
27
+ * Props for the Accordion.Item subcomponent
28
+ *
29
+ * @implements ds:global.subcomponent.accordion-item
30
+ *
31
+ * Anatomy (from DSL):
32
+ * - layout.type: stack
33
+ * - layout.direction: vertical
34
+ * - edges:
35
+ * - header tab (slotName: header, cardinality: 1)
36
+ * - control (chevron, cardinality: 1)
37
+ * - heading (slotName: default, cardinality: 1)
38
+ * - content panel (slotName: default, cardinality: 1)
39
+ *
40
+ * Rendered with native `<details>`/`<summary>`, so the browser owns the
41
+ * open/close state and keyboard interaction. `expanded` (with
42
+ * `onExpandedChange`) is an optional controlled overlay on the native `open`
43
+ * attribute.
44
+ *
45
+ * The native `open` and `onToggle` are deliberately excluded: the DS drives
46
+ * `open` from `expanded` and fires `onExpandedChange` from the native toggle,
47
+ * so consumers control open state through those props, not the raw attributes.
48
+ */
49
+ export type ItemProps = OwnProps & Omit<ComponentProps<"details">, keyof OwnProps | "open" | "onToggle">;
50
+ export {};
45
51
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Accordion/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAC5D;;;;;OAKG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Accordion/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd;;;;;OAKG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAC9B,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC,CAAC"}
@@ -1,18 +1,20 @@
1
- import type { HTMLAttributes, ReactElement } from "react";
1
+ import type { ComponentProps, ReactElement } from "react";
2
2
  import type { ItemProps } from "./common/Item/types.js";
3
- /**
4
- * Props for the Accordion component
5
- */
6
- export interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
3
+ type OwnProps = {
7
4
  /**
8
5
  * Accordion.Item elements to render
9
6
  */
10
7
  children: ReactElement<ItemProps> | ReactElement<ItemProps>[];
11
- }
8
+ };
9
+ /**
10
+ * Props for the Accordion component
11
+ */
12
+ export type AccordionProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
12
13
  /**
13
14
  * Accordion component type with attached subcomponents
14
15
  */
15
16
  export type AccordionComponent = ((props: AccordionProps) => ReactElement) & {
16
17
  Item: (props: ItemProps) => ReactElement;
17
18
  };
19
+ export {};
18
20
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Accordion/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;CAC/D;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,EAAE,cAAc,KAAK,YAAY,CAAC,GAAG;IAC3E,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,YAAY,CAAC;CAC1C,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Accordion/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,KAAK,QAAQ,GAAG;IACd;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC,SAAS,CAAC,GAAG,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;CAC/D,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GACnC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,EAAE,cAAc,KAAK,YAAY,CAAC,GAAG;IAC3E,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,YAAY,CAAC;CAC1C,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { ModifierFamily } from "@canonical/ds-types";
2
- import type { HumanizeNumberOptions, PluralizeOptions } from "@canonical/utils";
3
- import type { HTMLAttributes } from "react";
4
- export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
2
+ import type { HumanizeNumberOptions, PluralizeOptions } from "@canonical/ds-utils";
3
+ import type { ComponentProps } from "react";
4
+ type OwnProps = {
5
5
  /**
6
6
  * Numeric value to be displayed.
7
7
  */
@@ -24,7 +24,8 @@ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
24
24
  * Options for the pluralization of the item being counted.
25
25
  */
26
26
  pluralizeOptions?: PluralizeOptions;
27
- }
27
+ };
28
+ export type BadgeProps = OwnProps & Omit<ComponentProps<"span">, keyof OwnProps>;
28
29
  export type UseBadgeProps = Pick<BadgeProps, "value" | "humanizeOptions" | "pluralizeOptions">;
29
30
  /**
30
31
  * Result of the useBadge hook.
@@ -36,4 +37,5 @@ export interface UseBadgeResult {
36
37
  /** Title attribute, for displaying additional context about the badge on hover */
37
38
  title: string;
38
39
  }
40
+ export {};
39
41
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Badge/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,eAAe,CAAC;IACjE;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAE5C;;OAEG;IACH,eAAe,CAAC,EAAE,qBAAqB,CAAC;IAExC;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,UAAU,EACV,OAAO,GAAG,iBAAiB,GAAG,kBAAkB,CACjD,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,mDAAmD;IACnD,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Badge/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EACV,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,KAAK,QAAQ,GAAG;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAE5C;;OAEG;IACH,eAAe,CAAC,EAAE,qBAAqB,CAAC;IAExC;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAC/B,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,UAAU,EACV,OAAO,GAAG,iBAAiB,GAAG,kBAAkB,CACjD,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,mDAAmD;IACnD,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1,15 +1,8 @@
1
1
  import type { Item } from "@canonical/ds-types";
2
- import type { ComponentType, HTMLAttributes, ReactNode } from "react";
2
+ import type { ComponentProps, ComponentType, ReactNode } from "react";
3
3
  import type { LinkComponentProps } from "../../../../types/link.js";
4
4
  export type { LinkComponentProps };
5
- /**
6
- * Props for the Breadcrumbs.Item subcomponent
7
- *
8
- * Extends navigation Item (WD405) with breadcrumb-specific props.
9
- *
10
- * @implements ds:global.subcomponent.breadcrumbs-item
11
- */
12
- export interface ItemProps extends HTMLAttributes<HTMLLIElement>, Item {
5
+ type OwnProps = Item & {
13
6
  /**
14
7
  * The link content (text or element)
15
8
  * Falls back to `label` from Item if not provided
@@ -41,5 +34,14 @@ export interface ItemProps extends HTMLAttributes<HTMLLIElement>, Item {
41
34
  * e.g. A specialized renderer for complex items.
42
35
  */
43
36
  Component?: ComponentType<any>;
44
- }
37
+ };
38
+ /**
39
+ * Props for the Breadcrumbs.Item subcomponent
40
+ *
41
+ * Extends navigation Item (WD405) with breadcrumb-specific props, plus the
42
+ * native props of its `<li>` root.
43
+ *
44
+ * @implements ds:global.subcomponent.breadcrumbs-item
45
+ */
46
+ export type ItemProps = OwnProps & Omit<ComponentProps<"li">, keyof OwnProps>;
45
47
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Breadcrumbs/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAItE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,aAAa,CAAC,EAAE,IAAI;IACpE;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,GAAG,CAAC;IACxD;;;OAGG;IAEH,SAAS,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CAChC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Breadcrumbs/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAItE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC,KAAK,QAAQ,GAAG,IAAI,GAAG;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,GAAG,CAAC;IACxD;;;OAGG;IAEH,SAAS,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CAChC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { Item } from "@canonical/ds-types";
2
- import type { ComponentType, HTMLAttributes, ReactElement, ReactNode } from "react";
2
+ import type { ComponentProps, ComponentType, ReactElement, ReactNode } from "react";
3
3
  import type { ItemProps, LinkComponentProps } from "./common/Item/types.js";
4
4
  /**
5
5
  * Breadcrumb-specific item extending navigation Item (WD405)
@@ -12,7 +12,7 @@ import type { ItemProps, LinkComponentProps } from "./common/Item/types.js";
12
12
  * products only. Not designed/approved for Canonical products; Canonical
13
13
  * products must use the default Breadcrumbs.Item.
14
14
  */
15
- export interface BreadcrumbItem extends Item {
15
+ export type BreadcrumbItem = Item & {
16
16
  /**
17
17
  * Whether this is the current page.
18
18
  * When true, renders as text instead of link.
@@ -25,13 +25,8 @@ export interface BreadcrumbItem extends Item {
25
25
  * e.g. A specialized renderer for complex items.
26
26
  */
27
27
  Component?: ComponentType<any>;
28
- }
29
- /**
30
- * Props for the Breadcrumbs component
31
- *
32
- * @implements ds:global.component.breadcrumbs
33
- */
34
- export interface BreadcrumbsProps extends HTMLAttributes<HTMLElement> {
28
+ };
29
+ type OwnProps = {
35
30
  /**
36
31
  * Navigation items to display (WD405 Item type)
37
32
  * Each item is spread onto Breadcrumbs.Item or custom Component
@@ -64,7 +59,13 @@ export interface BreadcrumbsProps extends HTMLAttributes<HTMLElement> {
64
59
  * @default "Breadcrumb"
65
60
  */
66
61
  "aria-label"?: string;
67
- }
62
+ };
63
+ /**
64
+ * Props for the Breadcrumbs component
65
+ *
66
+ * @implements ds:global.component.breadcrumbs
67
+ */
68
+ export type BreadcrumbsProps = OwnProps & Omit<ComponentProps<"nav">, keyof OwnProps>;
68
69
  /**
69
70
  * Breadcrumbs component type with attached subcomponents
70
71
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Breadcrumbs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACZ,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5E;;;;;;;;;;GAUG;AACH,MAAM,WAAW,cAAe,SAAQ,IAAI;IAC1C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IAEH,SAAS,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CAChC;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACnE;;;;;;;;OAQG;IACH,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,GAAG,CAAC;IACxD;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAClC,KAAK,EAAE,gBAAgB,KACpB,YAAY,CAAC,GAAG;IACnB,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,YAAY,CAAC;CAC1C,CAAC;AAEF,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Breadcrumbs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,YAAY,EACZ,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5E;;;;;;;;;;GAUG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG;IAClC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IAEH,SAAS,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CAChC,CAAC;AAEF,KAAK,QAAQ,GAAG;IACd;;;;;;;;OAQG;IACH,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,GAAG,CAAC;IACxD;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GACrC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAClC,KAAK,EAAE,gBAAgB,KACpB,YAAY,CAAC,GAAG;IACnB,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,YAAY,CAAC;CAC1C,CAAC;AAEF,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export { default as Button } from "./Button.js";
2
- export type { BaseProps as ButtonBaseProps, default as ButtonProps, } from "./types.js";
2
+ export type { default as ButtonProps } from "./types.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EACV,SAAS,IAAI,eAAe,EAC5B,OAAO,IAAI,WAAW,GACvB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC"}
@@ -1,11 +1,13 @@
1
1
  import type { IconName } from "@canonical/ds-assets";
2
2
  import type { ModifierFamily } from "@canonical/ds-types";
3
- import type { ButtonHTMLAttributes, ReactNode } from "react";
4
- export interface BaseProps {
5
- /** A unique identifier for the button */
6
- id?: string;
7
- /** Additional CSS classes */
8
- className?: string;
3
+ import type { ComponentProps, ReactNode } from "react";
4
+ /**
5
+ * The Button's DS-owned props. Native `<button>` attributes (`id`, `className`,
6
+ * `type`, `disabled`, event handlers, …) come from `ComponentProps<"button">`
7
+ * in {@link default | ButtonProps}, so only genuinely design-system-specific
8
+ * members live here.
9
+ */
10
+ type OwnProps = {
9
11
  /**
10
12
  * Button contents (label text).
11
13
  * The button's accessible name derives from its rendered text content,
@@ -47,7 +49,7 @@ export interface BaseProps {
47
49
  * @default false
48
50
  */
49
51
  loading?: boolean;
50
- }
51
- type Props = BaseProps & ButtonHTMLAttributes<HTMLButtonElement>;
52
+ };
53
+ type Props = OwnProps & Omit<ComponentProps<"button">, keyof OwnProps>;
52
54
  export type { Props as default };
53
55
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,MAAM,WAAW,SAAS;IACxB,yCAAyC;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC9C;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,KAAK,KAAK,GAAG,SAAS,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEjE,YAAY,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;;GAKG;AACH,KAAK,QAAQ,GAAG;IACd;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC9C;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC;AAEvE,YAAY,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
@@ -1,11 +1,13 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
+ /** Required child contents */
4
+ children: ReactNode;
5
+ };
2
6
  /**
3
7
  * Props for Card.Content
4
8
  *
5
9
  * @implements ds:global.subcomponent.card-content
6
10
  */
7
- export interface ContentProps extends HTMLAttributes<HTMLDivElement> {
8
- children: ReactNode;
9
- className?: string;
10
- }
11
+ export type ContentProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
12
+ export {};
11
13
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAElE,QAAQ,EAAE,SAAS,CAAC;IAEpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,8BAA8B;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GACjC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,11 +1,13 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
+ /** Required child contents: tags and labels (e.g. `Chip`), not CTAs or links */
4
+ children: ReactNode;
5
+ };
2
6
  /**
3
7
  * Props for Card.Footer
4
8
  *
5
9
  * @implements ds:global.subcomponent.card-footer
6
10
  */
7
- export interface FooterProps extends HTMLAttributes<HTMLDivElement> {
8
- /** Required child contents: tags and labels (e.g. `Chip`), not CTAs or links */
9
- children: ReactNode;
10
- }
11
+ export type FooterProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
12
+ export {};
11
13
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Footer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE,gFAAgF;IAChF,QAAQ,EAAE,SAAS,CAAC;CACrB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Footer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,gFAAgF;IAChF,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAChC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,11 +1,13 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ type OwnProps = {
3
+ /** Required child contents */
4
+ children: ReactNode;
5
+ };
2
6
  /**
3
7
  * Props for Card.Header
4
8
  *
5
9
  * @implements ds:global.subcomponent.card-header
6
10
  */
7
- export interface HeaderProps extends HTMLAttributes<HTMLDivElement> {
8
- /** Required child contents */
9
- children: ReactNode;
10
- }
11
+ export type HeaderProps = OwnProps & Omit<ComponentProps<"div">, keyof OwnProps>;
12
+ export {};
11
13
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Header/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE,8BAA8B;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACrB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Header/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,QAAQ,GAAG;IACd,8BAA8B;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAChC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC"}
@@ -1,4 +1,7 @@
1
- import type { ImgHTMLAttributes } from "react";
2
- export interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
3
- }
1
+ import type { ComponentProps } from "react";
2
+ /**
3
+ * Props for Card.Image. No DS-owned props — it renders a plain `<img>` root, so
4
+ * it accepts every native `<img>` prop.
5
+ */
6
+ export type ImageProps = ComponentProps<"img">;
4
7
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Image/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,WAAW,UAAW,SAAQ,iBAAiB,CAAC,gBAAgB,CAAC;CAAG"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Card/common/Image/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC"}
@@ -1,4 +1,7 @@
1
- import type { HTMLAttributes } from "react";
2
- export interface CardProps extends HTMLAttributes<HTMLDivElement> {
3
- }
1
+ import type { ComponentProps } from "react";
2
+ /**
3
+ * Props for the Card component. The Card has no DS-owned props of its own — it
4
+ * is a plain `<div>` surface — so it simply accepts every native `<div>` prop.
5
+ */
6
+ export type CardProps = ComponentProps<"div">;
4
7
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Card/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,cAAc,CAAC;CAAG"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Card/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC"}
@@ -1,12 +1,17 @@
1
1
  import type React from "react";
2
2
  import "./styles.css";
3
- import type { ChipPropsType } from "./types.js";
3
+ import type { ChipProps } from "./types.js";
4
4
  /**
5
5
  * A chip is a compact, interactive component used to represent an attribute,
6
6
  * entity, or filter while facilitating secondary actions.
7
7
  *
8
+ * The root element is variable: a chip with an `onClick` renders a `<button>`
9
+ * (and extends button props), one without renders a `<span>` (and extends span
10
+ * props). Each branch spreads only the native props of its own root — the
11
+ * DS-owned props are destructured out first so none of them leak to the DOM.
12
+ *
8
13
  * @implements ds:global.component.chip
9
14
  */
10
- declare const Chip: ({ criticality, release, lead, value, onClick, onDismiss, id, className, style, ...props }: ChipPropsType) => React.ReactElement;
15
+ declare const Chip: (props: ChipProps) => React.ReactElement;
11
16
  export default Chip;
12
17
  //# sourceMappingURL=Chip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAIhD;;;;;GAKG;AACH,QAAA,MAAM,IAAI,GAAI,2FAWX,aAAa,KAAG,KAAK,CAAC,YAwBxB,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAI5C;;;;;;;;;;GAUG;AACH,QAAA,MAAM,IAAI,GAAI,OAAO,SAAS,KAAG,KAAK,CAAC,YA+DtC,CAAC;AAEF,eAAe,IAAI,CAAC"}