@canonical/react-ds-global 0.29.1 → 0.31.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 (308) hide show
  1. package/README.md +33 -0
  2. package/dist/esm/lib/_work_in_progress/IconSection/IconSection.js +1 -1
  3. package/dist/esm/lib/_work_in_progress/IconSection/IconSection.js.map +1 -1
  4. package/dist/esm/lib/_work_in_progress/index.js +13 -0
  5. package/dist/esm/lib/_work_in_progress/index.js.map +1 -0
  6. package/dist/esm/lib/component/Accordion/common/Item/styles.css +73 -56
  7. package/dist/esm/lib/component/Accordion/styles.css +5 -1
  8. package/dist/esm/lib/component/Announcement/Announcement.js +5 -3
  9. package/dist/esm/lib/component/Announcement/Announcement.js.map +1 -1
  10. package/dist/esm/lib/component/Announcement/index.js +1 -0
  11. package/dist/esm/lib/component/Announcement/index.js.map +1 -1
  12. package/dist/esm/lib/component/Announcement/styles.css +60 -36
  13. package/dist/esm/lib/component/Badge/styles.css +25 -24
  14. package/dist/esm/lib/component/Breadcrumbs/Breadcrumbs.js +2 -2
  15. package/dist/esm/lib/component/Breadcrumbs/common/Item/Item.js +13 -3
  16. package/dist/esm/lib/component/Breadcrumbs/common/Item/Item.js.map +1 -1
  17. package/dist/esm/lib/component/Breadcrumbs/common/Item/styles.css +17 -5
  18. package/dist/esm/lib/component/Breadcrumbs/styles.css +3 -0
  19. package/dist/esm/lib/component/Button/Button.js +13 -6
  20. package/dist/esm/lib/component/Button/Button.js.map +1 -1
  21. package/dist/esm/lib/component/Button/styles.css +200 -38
  22. package/dist/esm/lib/component/Card/Card.js +16 -6
  23. package/dist/esm/lib/component/Card/Card.js.map +1 -1
  24. package/dist/esm/lib/component/Card/common/Content/styles.css +8 -4
  25. package/dist/esm/lib/component/Card/common/Footer/Footer.js +2 -2
  26. package/dist/esm/lib/component/Card/common/Footer/styles.css +13 -3
  27. package/dist/esm/lib/component/Card/common/Header/styles.css +1 -1
  28. package/dist/esm/lib/component/Card/common/index.js +0 -1
  29. package/dist/esm/lib/component/Card/common/index.js.map +1 -1
  30. package/dist/esm/lib/component/Card/styles.css +60 -22
  31. package/dist/esm/lib/component/Chip/styles.css +3 -0
  32. package/dist/esm/lib/component/ContextualMenu/ContextualMenu.js +96 -0
  33. package/dist/esm/lib/component/ContextualMenu/ContextualMenu.js.map +1 -0
  34. package/dist/esm/lib/component/ContextualMenu/common/Item/Item.js +32 -0
  35. package/dist/esm/lib/component/ContextualMenu/common/Item/Item.js.map +1 -0
  36. package/dist/esm/lib/component/ContextualMenu/common/Item/index.js +2 -0
  37. package/dist/esm/lib/component/ContextualMenu/common/Item/index.js.map +1 -0
  38. package/dist/esm/lib/component/ContextualMenu/common/Item/styles.css +121 -0
  39. package/dist/esm/lib/component/ContextualMenu/common/Item/types.js.map +1 -0
  40. package/dist/esm/lib/component/ContextualMenu/common/MenuContext.js +12 -0
  41. package/dist/esm/lib/component/ContextualMenu/common/MenuContext.js.map +1 -0
  42. package/dist/esm/lib/component/ContextualMenu/common/SubMenu/SubMenu.js +128 -0
  43. package/dist/esm/lib/component/ContextualMenu/common/SubMenu/SubMenu.js.map +1 -0
  44. package/dist/esm/lib/component/ContextualMenu/common/SubMenu/index.js +2 -0
  45. package/dist/esm/lib/component/ContextualMenu/common/SubMenu/index.js.map +1 -0
  46. package/dist/esm/lib/component/ContextualMenu/index.js +2 -0
  47. package/dist/esm/lib/component/ContextualMenu/index.js.map +1 -0
  48. package/dist/esm/lib/component/ContextualMenu/styles.css +86 -0
  49. package/dist/esm/lib/component/ContextualMenu/types.js.map +1 -0
  50. package/dist/esm/lib/component/Popover/Popover.js +50 -0
  51. package/dist/esm/lib/component/Popover/Popover.js.map +1 -0
  52. package/dist/esm/lib/component/Popover/index.js +2 -0
  53. package/dist/esm/lib/component/Popover/index.js.map +1 -0
  54. package/dist/esm/lib/component/Popover/styles.css +65 -0
  55. package/dist/esm/lib/component/Popover/types.js +2 -0
  56. package/dist/esm/lib/component/Popover/types.js.map +1 -0
  57. package/dist/esm/lib/component/Tabs/Tabs.js +27 -0
  58. package/dist/esm/lib/component/Tabs/Tabs.js.map +1 -0
  59. package/dist/esm/lib/component/Tabs/common/Item/Item.js +20 -0
  60. package/dist/esm/lib/component/Tabs/common/Item/Item.js.map +1 -0
  61. package/dist/esm/lib/component/Tabs/common/Item/index.js +3 -0
  62. package/dist/esm/lib/component/Tabs/common/Item/index.js.map +1 -0
  63. package/dist/esm/lib/component/Tabs/common/Item/styles.css +75 -0
  64. package/dist/esm/lib/component/Tabs/common/Item/types.js +2 -0
  65. package/dist/esm/lib/component/Tabs/common/Item/types.js.map +1 -0
  66. package/dist/esm/lib/component/Tabs/common/index.js +2 -0
  67. package/dist/esm/lib/component/Tabs/common/index.js.map +1 -0
  68. package/dist/esm/lib/component/Tabs/index.js +3 -0
  69. package/dist/esm/lib/component/Tabs/index.js.map +1 -0
  70. package/dist/esm/lib/component/Tabs/styles.css +37 -0
  71. package/dist/esm/lib/component/Tabs/types.js +2 -0
  72. package/dist/esm/lib/component/Tabs/types.js.map +1 -0
  73. package/dist/esm/lib/component/Tile/Tile.js +6 -1
  74. package/dist/esm/lib/component/Tile/Tile.js.map +1 -1
  75. package/dist/esm/lib/component/Tile/common/Content/styles.css +17 -8
  76. package/dist/esm/lib/component/Tile/common/Header/styles.css +15 -12
  77. package/dist/esm/lib/component/Tile/styles.css +19 -53
  78. package/dist/esm/lib/component/Tooltip/Tooltip.js +6 -4
  79. package/dist/esm/lib/component/Tooltip/Tooltip.js.map +1 -1
  80. package/dist/esm/lib/component/Tooltip/common/TooltipArea/TooltipArea.js +45 -25
  81. package/dist/esm/lib/component/Tooltip/common/TooltipArea/TooltipArea.js.map +1 -1
  82. package/dist/esm/lib/component/Tooltip/styles.css +146 -81
  83. package/dist/esm/lib/component/Tooltip/withTooltip.js +3 -3
  84. package/dist/esm/lib/component/Tooltip/withTooltip.js.map +1 -1
  85. package/dist/esm/lib/component/index.js +17 -0
  86. package/dist/esm/lib/component/index.js.map +1 -0
  87. package/dist/esm/lib/group/Cards/Cards.js +49 -0
  88. package/dist/esm/lib/group/Cards/Cards.js.map +1 -0
  89. package/dist/esm/lib/group/Cards/index.js +3 -0
  90. package/dist/esm/lib/group/Cards/index.js.map +1 -0
  91. package/dist/esm/lib/group/Cards/styles.css +55 -0
  92. package/dist/esm/lib/group/Cards/types.js +2 -0
  93. package/dist/esm/lib/group/Cards/types.js.map +1 -0
  94. package/dist/esm/lib/group/index.js +4 -0
  95. package/dist/esm/lib/group/index.js.map +1 -0
  96. package/dist/esm/lib/hooks/index.js +3 -1
  97. package/dist/esm/lib/hooks/index.js.map +1 -1
  98. package/dist/esm/lib/hooks/useContextualMenu/index.js +3 -0
  99. package/dist/esm/lib/hooks/useContextualMenu/index.js.map +1 -0
  100. package/dist/esm/lib/hooks/useContextualMenu/types.js +2 -0
  101. package/dist/esm/lib/hooks/useContextualMenu/types.js.map +1 -0
  102. package/dist/esm/lib/hooks/useContextualMenu/useContextualMenu.js +181 -0
  103. package/dist/esm/lib/hooks/useContextualMenu/useContextualMenu.js.map +1 -0
  104. package/dist/esm/lib/hooks/useDisclosure/index.js +3 -0
  105. package/dist/esm/lib/hooks/useDisclosure/index.js.map +1 -0
  106. package/dist/esm/lib/hooks/useDisclosure/types.js +2 -0
  107. package/dist/esm/lib/hooks/useDisclosure/types.js.map +1 -0
  108. package/dist/esm/lib/hooks/useDisclosure/useDisclosure.js +230 -0
  109. package/dist/esm/lib/hooks/useDisclosure/useDisclosure.js.map +1 -0
  110. package/dist/esm/lib/hooks/useIsMounted/index.js +3 -0
  111. package/dist/esm/lib/hooks/useIsMounted/index.js.map +1 -0
  112. package/dist/esm/lib/hooks/useIsMounted/types.js +2 -0
  113. package/dist/esm/lib/hooks/useIsMounted/types.js.map +1 -0
  114. package/dist/esm/lib/hooks/useIsMounted/useIsMounted.js +21 -0
  115. package/dist/esm/lib/hooks/useIsMounted/useIsMounted.js.map +1 -0
  116. package/dist/esm/lib/hooks/useResizeObserver/useResizeObserver.js +37 -7
  117. package/dist/esm/lib/hooks/useResizeObserver/useResizeObserver.js.map +1 -1
  118. package/dist/esm/lib/hooks/useWindowDimensions/useWindowDimensions.js +9 -0
  119. package/dist/esm/lib/hooks/useWindowDimensions/useWindowDimensions.js.map +1 -1
  120. package/dist/esm/lib/hooks/useWindowFitment/index.js +1 -0
  121. package/dist/esm/lib/hooks/useWindowFitment/index.js.map +1 -1
  122. package/dist/esm/lib/hooks/useWindowFitment/readingDirection.js +25 -0
  123. package/dist/esm/lib/hooks/useWindowFitment/readingDirection.js.map +1 -0
  124. package/dist/esm/lib/hooks/useWindowFitment/useWindowFitment.js +211 -21
  125. package/dist/esm/lib/hooks/useWindowFitment/useWindowFitment.js.map +1 -1
  126. package/dist/esm/lib/index.js +8 -25
  127. package/dist/esm/lib/index.js.map +1 -1
  128. package/dist/esm/lib/pattern/index.js +3 -0
  129. package/dist/esm/lib/pattern/index.js.map +1 -0
  130. package/dist/esm/lib/subcomponent/Spinner/Spinner.js +35 -0
  131. package/dist/esm/lib/subcomponent/Spinner/Spinner.js.map +1 -0
  132. package/dist/esm/lib/subcomponent/Spinner/index.js +2 -0
  133. package/dist/esm/lib/subcomponent/Spinner/index.js.map +1 -0
  134. package/dist/esm/lib/subcomponent/Spinner/styles.css +50 -0
  135. package/dist/esm/lib/subcomponent/Spinner/types.js +2 -0
  136. package/dist/esm/lib/subcomponent/Spinner/types.js.map +1 -0
  137. package/dist/esm/lib/subcomponent/index.js +3 -0
  138. package/dist/esm/lib/subcomponent/index.js.map +1 -0
  139. package/dist/esm/lib/types/link.js +2 -0
  140. package/dist/esm/lib/types/link.js.map +1 -0
  141. package/dist/types/lib/_work_in_progress/Link/types.d.ts +1 -1
  142. package/dist/types/lib/_work_in_progress/Link/types.d.ts.map +1 -1
  143. package/dist/types/lib/_work_in_progress/index.d.ts +12 -0
  144. package/dist/types/lib/_work_in_progress/index.d.ts.map +1 -0
  145. package/dist/types/lib/component/Announcement/Announcement.d.ts +2 -2
  146. package/dist/types/lib/component/Announcement/Announcement.d.ts.map +1 -1
  147. package/dist/types/lib/component/Announcement/index.d.ts.map +1 -1
  148. package/dist/types/lib/component/Announcement/types.d.ts +17 -6
  149. package/dist/types/lib/component/Announcement/types.d.ts.map +1 -1
  150. package/dist/types/lib/component/Breadcrumbs/Breadcrumbs.d.ts +3 -3
  151. package/dist/types/lib/component/Breadcrumbs/common/Item/Item.d.ts +1 -1
  152. package/dist/types/lib/component/Breadcrumbs/common/Item/Item.d.ts.map +1 -1
  153. package/dist/types/lib/component/Breadcrumbs/common/Item/types.d.ts +13 -13
  154. package/dist/types/lib/component/Breadcrumbs/common/Item/types.d.ts.map +1 -1
  155. package/dist/types/lib/component/Breadcrumbs/types.d.ts +23 -1
  156. package/dist/types/lib/component/Breadcrumbs/types.d.ts.map +1 -1
  157. package/dist/types/lib/component/Button/Button.d.ts +3 -1
  158. package/dist/types/lib/component/Button/Button.d.ts.map +1 -1
  159. package/dist/types/lib/component/Button/types.d.ts +12 -6
  160. package/dist/types/lib/component/Button/types.d.ts.map +1 -1
  161. package/dist/types/lib/component/Card/Card.d.ts +10 -5
  162. package/dist/types/lib/component/Card/Card.d.ts.map +1 -1
  163. package/dist/types/lib/component/Card/common/Footer/Footer.d.ts +2 -2
  164. package/dist/types/lib/component/Card/common/Footer/types.d.ts +2 -2
  165. package/dist/types/lib/component/Card/common/Footer/types.d.ts.map +1 -1
  166. package/dist/types/lib/component/Card/common/index.d.ts +0 -1
  167. package/dist/types/lib/component/Card/common/index.d.ts.map +1 -1
  168. package/dist/types/lib/component/ContextualMenu/ContextualMenu.d.ts +15 -0
  169. package/dist/types/lib/component/ContextualMenu/ContextualMenu.d.ts.map +1 -0
  170. package/dist/types/lib/component/ContextualMenu/common/Item/Item.d.ts +14 -0
  171. package/dist/types/lib/component/ContextualMenu/common/Item/Item.d.ts.map +1 -0
  172. package/dist/types/lib/component/ContextualMenu/common/Item/index.d.ts +3 -0
  173. package/dist/types/lib/component/ContextualMenu/common/Item/index.d.ts.map +1 -0
  174. package/dist/types/lib/component/ContextualMenu/common/Item/types.d.ts +11 -0
  175. package/dist/types/lib/component/ContextualMenu/common/Item/types.d.ts.map +1 -0
  176. package/dist/types/lib/component/ContextualMenu/common/MenuContext.d.ts +19 -0
  177. package/dist/types/lib/component/ContextualMenu/common/MenuContext.d.ts.map +1 -0
  178. package/dist/types/lib/component/ContextualMenu/common/SubMenu/SubMenu.d.ts +15 -0
  179. package/dist/types/lib/component/ContextualMenu/common/SubMenu/SubMenu.d.ts.map +1 -0
  180. package/dist/types/lib/component/ContextualMenu/common/SubMenu/index.d.ts +2 -0
  181. package/dist/types/lib/component/ContextualMenu/common/SubMenu/index.d.ts.map +1 -0
  182. package/dist/types/lib/component/ContextualMenu/index.d.ts +3 -0
  183. package/dist/types/lib/component/ContextualMenu/index.d.ts.map +1 -0
  184. package/dist/types/lib/component/ContextualMenu/types.d.ts +30 -0
  185. package/dist/types/lib/component/ContextualMenu/types.d.ts.map +1 -0
  186. package/dist/types/lib/component/Popover/Popover.d.ts +16 -0
  187. package/dist/types/lib/component/Popover/Popover.d.ts.map +1 -0
  188. package/dist/types/lib/component/Popover/index.d.ts +3 -0
  189. package/dist/types/lib/component/Popover/index.d.ts.map +1 -0
  190. package/dist/types/lib/component/Popover/types.d.ts +24 -0
  191. package/dist/types/lib/component/Popover/types.d.ts.map +1 -0
  192. package/dist/types/lib/component/Tabs/Tabs.d.ts +18 -0
  193. package/dist/types/lib/component/Tabs/Tabs.d.ts.map +1 -0
  194. package/dist/types/lib/component/Tabs/common/Item/Item.d.ts +15 -0
  195. package/dist/types/lib/component/Tabs/common/Item/Item.d.ts.map +1 -0
  196. package/dist/types/lib/component/Tabs/common/Item/index.d.ts +3 -0
  197. package/dist/types/lib/component/Tabs/common/Item/index.d.ts.map +1 -0
  198. package/dist/types/lib/component/Tabs/common/Item/types.d.ts +18 -0
  199. package/dist/types/lib/component/Tabs/common/Item/types.d.ts.map +1 -0
  200. package/dist/types/lib/component/Tabs/common/index.d.ts +2 -0
  201. package/dist/types/lib/component/Tabs/common/index.d.ts.map +1 -0
  202. package/dist/types/lib/component/Tabs/index.d.ts +3 -0
  203. package/dist/types/lib/component/Tabs/index.d.ts.map +1 -0
  204. package/dist/types/lib/component/Tabs/types.d.ts +46 -0
  205. package/dist/types/lib/component/Tabs/types.d.ts.map +1 -0
  206. package/dist/types/lib/component/Tile/Tile.d.ts +2 -0
  207. package/dist/types/lib/component/Tile/Tile.d.ts.map +1 -1
  208. package/dist/types/lib/component/Tile/common/Content/types.d.ts +1 -1
  209. package/dist/types/lib/component/Tile/common/Header/types.d.ts +1 -1
  210. package/dist/types/lib/component/Tile/types.d.ts +4 -5
  211. package/dist/types/lib/component/Tile/types.d.ts.map +1 -1
  212. package/dist/types/lib/component/Tooltip/Tooltip.d.ts +1 -1
  213. package/dist/types/lib/component/Tooltip/Tooltip.d.ts.map +1 -1
  214. package/dist/types/lib/component/Tooltip/common/TooltipArea/TooltipArea.d.ts +1 -1
  215. package/dist/types/lib/component/Tooltip/common/TooltipArea/TooltipArea.d.ts.map +1 -1
  216. package/dist/types/lib/component/Tooltip/common/TooltipArea/types.d.ts +14 -2
  217. package/dist/types/lib/component/Tooltip/common/TooltipArea/types.d.ts.map +1 -1
  218. package/dist/types/lib/component/Tooltip/types.d.ts +6 -0
  219. package/dist/types/lib/component/Tooltip/types.d.ts.map +1 -1
  220. package/dist/types/lib/component/Tooltip/withTooltip.d.ts +10 -3
  221. package/dist/types/lib/component/Tooltip/withTooltip.d.ts.map +1 -1
  222. package/dist/types/lib/component/index.d.ts +16 -0
  223. package/dist/types/lib/component/index.d.ts.map +1 -0
  224. package/dist/types/lib/group/Cards/Cards.d.ts +40 -0
  225. package/dist/types/lib/group/Cards/Cards.d.ts.map +1 -0
  226. package/dist/types/lib/group/Cards/index.d.ts +3 -0
  227. package/dist/types/lib/group/Cards/index.d.ts.map +1 -0
  228. package/dist/types/lib/group/Cards/types.d.ts +14 -0
  229. package/dist/types/lib/group/Cards/types.d.ts.map +1 -0
  230. package/dist/types/lib/group/index.d.ts +3 -0
  231. package/dist/types/lib/group/index.d.ts.map +1 -0
  232. package/dist/types/lib/hooks/index.d.ts +3 -1
  233. package/dist/types/lib/hooks/index.d.ts.map +1 -1
  234. package/dist/types/lib/hooks/useContextualMenu/index.d.ts +3 -0
  235. package/dist/types/lib/hooks/useContextualMenu/index.d.ts.map +1 -0
  236. package/dist/types/lib/hooks/useContextualMenu/types.d.ts +71 -0
  237. package/dist/types/lib/hooks/useContextualMenu/types.d.ts.map +1 -0
  238. package/dist/types/lib/hooks/useContextualMenu/useContextualMenu.d.ts +20 -0
  239. package/dist/types/lib/hooks/useContextualMenu/useContextualMenu.d.ts.map +1 -0
  240. package/dist/types/lib/hooks/useDisclosure/index.d.ts +3 -0
  241. package/dist/types/lib/hooks/useDisclosure/index.d.ts.map +1 -0
  242. package/dist/types/lib/hooks/useDisclosure/types.d.ts +103 -0
  243. package/dist/types/lib/hooks/useDisclosure/types.d.ts.map +1 -0
  244. package/dist/types/lib/hooks/useDisclosure/useDisclosure.d.ts +32 -0
  245. package/dist/types/lib/hooks/useDisclosure/useDisclosure.d.ts.map +1 -0
  246. package/dist/types/lib/hooks/useIsMounted/index.d.ts +3 -0
  247. package/dist/types/lib/hooks/useIsMounted/index.d.ts.map +1 -0
  248. package/dist/types/lib/hooks/useIsMounted/types.d.ts +6 -0
  249. package/dist/types/lib/hooks/useIsMounted/types.d.ts.map +1 -0
  250. package/dist/types/lib/hooks/useIsMounted/useIsMounted.d.ts +15 -0
  251. package/dist/types/lib/hooks/useIsMounted/useIsMounted.d.ts.map +1 -0
  252. package/dist/types/lib/hooks/useResizeObserver/useResizeObserver.d.ts +6 -0
  253. package/dist/types/lib/hooks/useResizeObserver/useResizeObserver.d.ts.map +1 -1
  254. package/dist/types/lib/hooks/useWindowDimensions/useWindowDimensions.d.ts.map +1 -1
  255. package/dist/types/lib/hooks/useWindowFitment/index.d.ts +1 -0
  256. package/dist/types/lib/hooks/useWindowFitment/index.d.ts.map +1 -1
  257. package/dist/types/lib/hooks/useWindowFitment/readingDirection.d.ts +14 -0
  258. package/dist/types/lib/hooks/useWindowFitment/readingDirection.d.ts.map +1 -0
  259. package/dist/types/lib/hooks/useWindowFitment/types.d.ts +75 -4
  260. package/dist/types/lib/hooks/useWindowFitment/types.d.ts.map +1 -1
  261. package/dist/types/lib/hooks/useWindowFitment/useWindowFitment.d.ts +44 -2
  262. package/dist/types/lib/hooks/useWindowFitment/useWindowFitment.d.ts.map +1 -1
  263. package/dist/types/lib/index.d.ts +5 -25
  264. package/dist/types/lib/index.d.ts.map +1 -1
  265. package/dist/types/lib/pattern/index.d.ts +2 -0
  266. package/dist/types/lib/pattern/index.d.ts.map +1 -0
  267. package/dist/types/lib/subcomponent/Spinner/Spinner.d.ts +24 -0
  268. package/dist/types/lib/subcomponent/Spinner/Spinner.d.ts.map +1 -0
  269. package/dist/types/lib/subcomponent/Spinner/index.d.ts +3 -0
  270. package/dist/types/lib/subcomponent/Spinner/index.d.ts.map +1 -0
  271. package/dist/types/lib/subcomponent/Spinner/types.d.ts +17 -0
  272. package/dist/types/lib/subcomponent/Spinner/types.d.ts.map +1 -0
  273. package/dist/types/lib/subcomponent/index.d.ts +2 -0
  274. package/dist/types/lib/subcomponent/index.d.ts.map +1 -0
  275. package/dist/types/lib/types/index.d.ts +1 -0
  276. package/dist/types/lib/types/index.d.ts.map +1 -1
  277. package/dist/types/lib/types/link.d.ts +26 -0
  278. package/dist/types/lib/types/link.d.ts.map +1 -0
  279. package/package.json +16 -19
  280. package/dist/esm/lib/component/Card/common/Thumbnail/Thumbnail.js +0 -21
  281. package/dist/esm/lib/component/Card/common/Thumbnail/Thumbnail.js.map +0 -1
  282. package/dist/esm/lib/component/Card/common/Thumbnail/index.js +0 -2
  283. package/dist/esm/lib/component/Card/common/Thumbnail/index.js.map +0 -1
  284. package/dist/esm/lib/component/Card/common/Thumbnail/styles.css +0 -39
  285. package/dist/esm/lib/component/Card/common/Thumbnail/types.js.map +0 -1
  286. package/dist/esm/lib/hooks/usePopup/index.js +0 -3
  287. package/dist/esm/lib/hooks/usePopup/index.js.map +0 -1
  288. package/dist/esm/lib/hooks/usePopup/types.js.map +0 -1
  289. package/dist/esm/lib/hooks/usePopup/usePopup.js +0 -93
  290. package/dist/esm/lib/hooks/usePopup/usePopup.js.map +0 -1
  291. package/dist/esm/storybook/decorators.js +0 -16
  292. package/dist/esm/storybook/decorators.js.map +0 -1
  293. package/dist/types/lib/component/Card/common/Thumbnail/Thumbnail.d.ts +0 -23
  294. package/dist/types/lib/component/Card/common/Thumbnail/Thumbnail.d.ts.map +0 -1
  295. package/dist/types/lib/component/Card/common/Thumbnail/index.d.ts +0 -3
  296. package/dist/types/lib/component/Card/common/Thumbnail/index.d.ts.map +0 -1
  297. package/dist/types/lib/component/Card/common/Thumbnail/types.d.ts +0 -27
  298. package/dist/types/lib/component/Card/common/Thumbnail/types.d.ts.map +0 -1
  299. package/dist/types/lib/hooks/usePopup/index.d.ts +0 -3
  300. package/dist/types/lib/hooks/usePopup/index.d.ts.map +0 -1
  301. package/dist/types/lib/hooks/usePopup/types.d.ts +0 -65
  302. package/dist/types/lib/hooks/usePopup/types.d.ts.map +0 -1
  303. package/dist/types/lib/hooks/usePopup/usePopup.d.ts +0 -19
  304. package/dist/types/lib/hooks/usePopup/usePopup.d.ts.map +0 -1
  305. package/dist/types/storybook/decorators.d.ts +0 -15
  306. package/dist/types/storybook/decorators.d.ts.map +0 -1
  307. /package/dist/esm/lib/component/{Card/common/Thumbnail → ContextualMenu/common/Item}/types.js +0 -0
  308. /package/dist/esm/lib/{hooks/usePopup → component/ContextualMenu}/types.js +0 -0
@@ -1,13 +1,24 @@
1
+ import type { ModifierFamily } from "@canonical/ds-types";
1
2
  import type { HTMLAttributes, ReactNode } from "react";
2
3
  /**
3
- * Props for the Announcement component.
4
+ * Props for the `Announcement` component.
4
5
  */
5
- export interface AnnouncementProps extends HTMLAttributes<HTMLDivElement> {
6
- /** Additional CSS class names. */
7
- className?: string;
6
+ export interface AnnouncementProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
8
7
  /**
9
- * Announcement contents.
8
+ * Criticality modifier — the type of announcement. Drives the icon,
9
+ * side-bar colour, background, and text treatment via the criticality
10
+ * modifier family. Defaults to `"information"`.
11
+ * - `"information"`: neutral, informative (default)
12
+ * - `"success"`: positive status
13
+ * - `"warning"`: cautionary status
14
+ * - `"error"`: negative status
10
15
  */
11
- children?: ReactNode;
16
+ criticality?: ModifierFamily<"criticality">;
17
+ /** Optional heading — the subject of the announcement. */
18
+ heading?: ReactNode;
19
+ /** The announcement body — its detailed content. */
20
+ children: ReactNode;
21
+ /** Additional CSS class names. */
22
+ className?: string;
12
23
  }
13
24
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Announcement/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACvE,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Announcement/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACxD;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAE5C,0DAA0D;IAC1D,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB,oDAAoD;IACpD,QAAQ,EAAE,SAAS,CAAC;IAEpB,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -3,8 +3,8 @@ import type { BreadcrumbsProps } from "./types.js";
3
3
  import "./styles.css";
4
4
  /**
5
5
  * Breadcrumbs are a navigational aid that shows users their current location
6
- * within a site's information hierarchy. They provide a clear path from the
7
- * root of the information hierarchy (IA) to the current page, allowing users
6
+ * within a site's information architecture. They provide a clear path from the
7
+ * root of the information architecture (IA) to the current page, allowing users
8
8
  * to quickly understand where they are and easily navigate back to previous
9
9
  * levels in the IA. Breadcrumbs should reflect the IA, not the user's path
10
10
  * they took to arrive at the current page. They work best in websites or
@@ -18,7 +18,7 @@ import "./styles.css";
18
18
  declare const Breadcrumbs: {
19
19
  ({ items, separator, LinkComponent, className, "aria-label": ariaLabel, ...props }: BreadcrumbsProps): React.ReactElement;
20
20
  Item: {
21
- ({ children, label, url, current, separator, disabled, className, LinkComponent, key: _key, items: _items, displayItemsType: _displayItemsType, Component: _Component, ...props }: import("./common/index.js").ItemProps): React.ReactElement;
21
+ ({ children, label, url, current, separator, disabled, className, LinkComponent, key: _key, items: _items, Component: _Component, ...props }: import("./common/index.js").ItemProps): React.ReactElement;
22
22
  displayName: string;
23
23
  };
24
24
  };
@@ -10,7 +10,7 @@ import "./styles.css";
10
10
  * @implements ds:global.subcomponent.breadcrumbs-item
11
11
  */
12
12
  declare const Item: {
13
- ({ children, label, url, current, separator, disabled, className, LinkComponent, key: _key, items: _items, displayItemsType: _displayItemsType, Component: _Component, ...props }: ItemProps): React.ReactElement;
13
+ ({ children, label, url, current, separator, disabled, className, LinkComponent, key: _key, items: _items, Component: _Component, ...props }: ItemProps): React.ReactElement;
14
14
  displayName: string;
15
15
  };
16
16
  export default Item;
@@ -1 +1 @@
1
- {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Breadcrumbs/common/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;;;;;GAOG;AACH,QAAA,MAAM,IAAI;uLAeP,SAAS,GAAG,KAAK,CAAC,YAAY;;CA2BhC,CAAC;AAIF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Breadcrumbs/common/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;;;;;GAOG;AACH,QAAA,MAAM,IAAI;kJAcP,SAAS,GAAG,KAAK,CAAC,YAAY;;CA4ChC,CAAC;AAIF,eAAe,IAAI,CAAC"}
@@ -1,17 +1,7 @@
1
1
  import type { Item } from "@canonical/ds-types";
2
2
  import type { ComponentType, HTMLAttributes, ReactNode } from "react";
3
- /**
4
- * Props passed to the custom `LinkComponent`. Kept router-agnostic and aligned
5
- * with the SideNavigation contract so the same router `Link` (e.g.
6
- * `@canonical/router-react`, Next.js, React Router) works across both. The
7
- * component receives `aria-current` and must forward it to the rendered anchor.
8
- */
9
- export interface LinkComponentProps {
10
- href?: string;
11
- className?: string;
12
- children?: ReactNode;
13
- "aria-current"?: HTMLAttributes<HTMLElement>["aria-current"];
14
- }
3
+ import type { LinkComponentProps } from "../../../../types/link.js";
4
+ export type { LinkComponentProps };
15
5
  /**
16
6
  * Props for the Breadcrumbs.Item subcomponent
17
7
  *
@@ -19,7 +9,7 @@ export interface LinkComponentProps {
19
9
  *
20
10
  * @implements dso:global.subcomponent.breadcrumbs-item
21
11
  */
22
- export interface ItemProps extends HTMLAttributes<HTMLLIElement>, Item<ComponentType<any>> {
12
+ export interface ItemProps extends HTMLAttributes<HTMLLIElement>, Item {
23
13
  /**
24
14
  * The link content (text or element)
25
15
  * Falls back to `label` from Item if not provided
@@ -32,6 +22,11 @@ export interface ItemProps extends HTMLAttributes<HTMLLIElement>, Item<Component
32
22
  current?: boolean;
33
23
  /**
34
24
  * Custom separator character or element
25
+ *
26
+ * @remarks
27
+ * For external (non-Canonical) products only. Not designed/approved for
28
+ * Canonical products; Canonical products must use the default "/"
29
+ * separator.
35
30
  * @default "/"
36
31
  */
37
32
  separator?: ReactNode;
@@ -41,5 +36,10 @@ export interface ItemProps extends HTMLAttributes<HTMLLIElement>, Item<Component
41
36
  * @default "a"
42
37
  */
43
38
  LinkComponent?: ComponentType<LinkComponentProps> | "a";
39
+ /**
40
+ * Custom component for rendering this item itself.
41
+ * e.g. A specialized renderer for complex items.
42
+ */
43
+ Component?: ComponentType<any>;
44
44
  }
45
45
  //# 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;AAEtE;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,cAAc,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,cAAc,CAAC,CAAC;CAC9D;AAED;;;;;;GAMG;AACH,MAAM,WAAW,SACf,SAAQ,cAAc,CAAC,aAAa,CAAC,EAEnC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,GAAG,GAAG,CAAC;CACzD"}
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"}
@@ -6,13 +6,25 @@ import type { ItemProps, LinkComponentProps } from "./common/Item/types.js";
6
6
  *
7
7
  * Adds breadcrumb-specific properties while maintaining
8
8
  * compatibility with the unified navigation type.
9
+ *
10
+ * @remarks
11
+ * The per-item `Component` substitution is for external (non-Canonical)
12
+ * products only. Not designed/approved for Canonical products; Canonical
13
+ * products must use the default Breadcrumbs.Item.
9
14
  */
10
- export interface BreadcrumbItem extends Item<ComponentType<any>> {
15
+ export interface BreadcrumbItem extends Item {
11
16
  /**
12
17
  * Whether this is the current page.
13
18
  * When true, renders as text instead of link.
14
19
  */
15
20
  current?: boolean;
21
+ /** CSS class name applied to this item's `<li>`, in addition to the base classes. */
22
+ className?: string;
23
+ /**
24
+ * Custom component for rendering this item itself.
25
+ * e.g. A specialized renderer for complex items.
26
+ */
27
+ Component?: ComponentType<any>;
16
28
  }
17
29
  /**
18
30
  * Props for the Breadcrumbs component
@@ -23,10 +35,20 @@ export interface BreadcrumbsProps extends HTMLAttributes<HTMLElement> {
23
35
  /**
24
36
  * Navigation items to display (WD405 Item type)
25
37
  * Each item is spread onto Breadcrumbs.Item or custom Component
38
+ *
39
+ * @remarks
40
+ * Per-item `Component` substitution is for external (non-Canonical)
41
+ * products only. Not designed/approved for Canonical products; Canonical
42
+ * products must use the default Breadcrumbs.Item.
26
43
  */
27
44
  items: BreadcrumbItem[];
28
45
  /**
29
46
  * Custom separator between items
47
+ *
48
+ * @remarks
49
+ * For external (non-Canonical) products only. Not designed/approved for
50
+ * Canonical products; Canonical products must use the default "/"
51
+ * separator.
30
52
  * @default "/"
31
53
  */
32
54
  separator?: ReactNode;
@@ -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;;;;;GAKG;AAEH,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC9D;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,WAAW,CAAC;IACnE;;;OAGG;IACH,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB;;;OAGG;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,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"}
@@ -6,8 +6,10 @@ import "./styles.css";
6
6
  * data transformation or manipulation. They provide clear visual
7
7
  * indicators of the primary actions users can perform.
8
8
  *
9
+ * `import { Button } from "@canonical/react-ds-global";`
10
+ *
9
11
  * @implements ds:global.component.button
10
12
  */
11
- declare const Button: ({ id, className, children, style, importance, anticipation, variant, icon, iconPosition, ...props }: Props) => React.ReactElement;
13
+ declare const Button: ({ id, className, children, style, importance, anticipation, variant, icon, loading, disabled, ...props }: Props) => React.ReactElement;
12
14
  export default Button;
13
15
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAItB;;;;;;GAMG;AACH,QAAA,MAAM,MAAM,GAAI,qGAWb,KAAK,KAAG,KAAK,CAAC,YAiDhB,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,MAAM,GAAI,0GAYb,KAAK,KAAG,KAAK,CAAC,YA2DhB,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { IconName } from "@canonical/ds-assets";
1
2
  import type { ModifierFamily } from "@canonical/ds-types";
2
3
  import type { ButtonHTMLAttributes, ReactNode } from "react";
3
4
  export interface BaseProps {
@@ -33,15 +34,20 @@ export interface BaseProps {
33
34
  */
34
35
  variant?: "link";
35
36
  /**
36
- * Icon element to display alongside the label.
37
+ * Name of the design-system icon to display before the label, rendered via
38
+ * the `Icon` component (an `@canonical/ds-assets` sprite). The button has a
39
+ * single, leading icon slot — the right-side icon was removed when the
40
+ * select and dropdown affordances became their own components.
37
41
  */
38
- icon?: ReactNode;
42
+ icon?: IconName;
39
43
  /**
40
- * Position of the icon relative to the label.
41
- * @default "start"
44
+ * Whether the button is in a loading (busy) state. Replaces the leading icon
45
+ * with a Spinner, marks the button `aria-busy`, and disables interaction so
46
+ * the action cannot be triggered again while it is in flight.
47
+ * @default false
42
48
  */
43
- iconPosition?: "start" | "end";
49
+ loading?: boolean;
44
50
  }
45
51
  type Props = BaseProps & ButtonHTMLAttributes<HTMLButtonElement>;
46
- export default Props;
52
+ export type { Props as default };
47
53
  //# 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,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;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;CAChC;AAED,KAAK,KAAK,GAAG,SAAS,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEjE,eAAe,KAAK,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,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"}
@@ -8,7 +8,16 @@ import "./styles.css";
8
8
  * predictable structure that allows the user to compare attributes across data
9
9
  * objects.
10
10
  *
11
- * @implements dso:global.component.card
11
+ * A Card is always a grid participant: `.ds.card` is a ROW SUBGRID that spans
12
+ * four fixed section tracks (image / header / content / footer), inheriting them
13
+ * from its parent grid. Standalone (wrapped in a `.grid`) it lays its own
14
+ * sections out on those tracks; inside a `Cards` group it shares the group's
15
+ * tracks so the same sections line up across every card in the row. See the
16
+ * `Cards` group component for the full layout model.
17
+ *
18
+ * `import { Card } from "@canonical/react-ds-global";`
19
+ *
20
+ * @implements ds:global.component.card
12
21
  */
13
22
  declare const Card: {
14
23
  ({ className, children, ...props }: CardProps): React.ReactElement;
@@ -28,10 +37,6 @@ declare const Card: {
28
37
  ({ className, alt, ...props }: import("./common/index.js").ImageProps): React.ReactElement;
29
38
  displayName: string;
30
39
  };
31
- Thumbnail: {
32
- ({ className, imageProps, children, ...props }: import("./common/index.js").ThumbnailProps): React.ReactElement;
33
- displayName: string;
34
- };
35
40
  };
36
41
  export default Card;
37
42
  //# sourceMappingURL=Card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAMtB;;;;;;;;GAQG;AACH,QAAA,MAAM,IAAI;wCAIP,SAAS,GAAG,KAAK,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;CAOhC,CAAC;AAQF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAQtB;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,IAAI;wCAIP,SAAS,GAAG,KAAK,CAAC,YAAY;;;;;;;;;;;;;;;;;CAOhC,CAAC;AAOF,eAAe,IAAI,CAAC"}
@@ -3,9 +3,9 @@ import type { FooterProps } from "./types.js";
3
3
  import "./styles.css";
4
4
  /**
5
5
  * Footer component for Card. A padded content-bearing section pinned to the
6
- * bottom of the card, for actions or supplementary information.
6
+ * bottom of the card, for tags and labels.
7
7
  *
8
- * @implements dso:global.subcomponent.card-footer
8
+ * @implements ds:global.subcomponent.card-footer
9
9
  */
10
10
  declare const Footer: {
11
11
  ({ children, className, ...props }: FooterProps): React.ReactElement;
@@ -2,10 +2,10 @@ import type { HTMLAttributes, ReactNode } from "react";
2
2
  /**
3
3
  * Props for Card.Footer
4
4
  *
5
- * @implements dso:global.subcomponent.card-footer
5
+ * @implements ds:global.subcomponent.card-footer
6
6
  */
7
7
  export interface FooterProps extends HTMLAttributes<HTMLDivElement> {
8
- /** Required child contents */
8
+ /** Required child contents: tags and labels (e.g. `Chip`), not CTAs or links */
9
9
  children: ReactNode;
10
10
  }
11
11
  //# 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,8BAA8B;IAC9B,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;;;;GAIG;AACH,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE,gFAAgF;IAChF,QAAQ,EAAE,SAAS,CAAC;CACrB"}
@@ -2,5 +2,4 @@ export * from "./Content/index.js";
2
2
  export * from "./Footer/index.js";
3
3
  export * from "./Header/index.js";
4
4
  export * from "./Image/index.js";
5
- export * from "./Thumbnail/index.js";
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/component/Card/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/component/Card/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type React from "react";
2
+ import type { ContextualMenuProps } from "./types.js";
3
+ import "./styles.css";
4
+ /**
5
+ * A contextual menu presents a list of grouped actions anchored to a trigger.
6
+ * It opens on click, positions itself with viewport-fitment, and supports full
7
+ * keyboard navigation including arrow traversal across groups.
8
+ *
9
+ * `import { ContextualMenu } from "@canonical/react-ds-global";`
10
+ *
11
+ * @implements dso:global.component.contextual-menu
12
+ */
13
+ declare const ContextualMenu: ({ trigger, groups, label, className, preferredDirections, distance, gutter, maxWidth, autoFit, wrap, onSelect, open, onOpenChange, ...props }: ContextualMenuProps) => React.ReactElement;
14
+ export default ContextualMenu;
15
+ //# sourceMappingURL=ContextualMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextualMenu.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/ContextualMenu/ContextualMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,KAAK,EAAE,mBAAmB,EAAY,MAAM,YAAY,CAAC;AAChE,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,cAAc,GAAI,+IAerB,mBAAmB,KAAG,KAAK,CAAC,YAqJ9B,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type React from "react";
2
+ import type { ItemProps } from "./types.js";
3
+ import "./styles.css";
4
+ /**
5
+ * A single contextual-menu entry. By default it renders an optional leading
6
+ * icon, the label, and an optional right-aligned slot (badge or shortcut). When
7
+ * the item opts into a custom renderer (`displayItemsType: "custom"` with a
8
+ * `Component`), that component owns the item's content instead.
9
+ *
10
+ * @implements dso:global.subcomponent.contextual-menu-item
11
+ */
12
+ declare const Item: ({ item, itemProps, onSelect }: ItemProps) => React.ReactElement;
13
+ export default Item;
14
+ //# sourceMappingURL=Item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/ContextualMenu/common/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;;;;;GAOG;AACH,QAAA,MAAM,IAAI,GAAI,+BAA+B,SAAS,KAAG,KAAK,CAAC,YAuD9D,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default } from "./Item.js";
2
+ export type * from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/ContextualMenu/common/Item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,mBAAmB,YAAY,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { _Item } from "@canonical/ds-types";
2
+ import type { MenuItem } from "../../types.js";
3
+ export interface ItemProps {
4
+ /** The annotated menu item to render. */
5
+ item: _Item<MenuItem>;
6
+ /** ARIA + roving props for the item element, from the menu hook. */
7
+ itemProps: Record<string, unknown>;
8
+ /** Called when the item is activated (click or Enter/Space). */
9
+ onSelect: () => void;
10
+ }
11
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/ContextualMenu/common/Item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,WAAW,SAAS;IACxB,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACtB,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,gEAAgE;IAChE,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB"}
@@ -0,0 +1,19 @@
1
+ import type { _Item } from "@canonical/ds-types";
2
+ import type { UseContextualMenuResult } from "../../../hooks/index.js";
3
+ import type { MenuItem } from "../types.js";
4
+ /**
5
+ * The shared menu API threaded to every level of a (possibly nested) contextual
6
+ * menu. There is ONE {@link useContextualMenu} per menu instance — submenus are
7
+ * render-only and read this context rather than owning their own state, so the
8
+ * whole tree shares one highlight path, one roving focus, and one keyboard
9
+ * handler.
10
+ */
11
+ export interface MenuContextValue extends Pick<UseContextualMenuResult, "getItemProps" | "getMenuProps" | "getGroupProps" | "getNodeStatus" | "highlightItem" | "close"> {
12
+ /** Activate an item (run the consumer's onSelect and close the menu). */
13
+ onSelectItem: (item: _Item<MenuItem>) => void;
14
+ }
15
+ declare const MenuContext: import("react").Context<MenuContextValue | null>;
16
+ /** Read the shared menu API. Throws if used outside a ContextualMenu. */
17
+ export declare const useMenuContext: () => MenuContextValue;
18
+ export default MenuContext;
19
+ //# sourceMappingURL=MenuContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuContext.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/component/ContextualMenu/common/MenuContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,gBACf,SAAQ,IAAI,CACV,uBAAuB,EACrB,cAAc,GACd,cAAc,GACd,eAAe,GACf,eAAe,GACf,eAAe,GACf,OAAO,CACV;IACD,yEAAyE;IACzE,YAAY,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC;CAC/C;AAED,QAAA,MAAM,WAAW,kDAA+C,CAAC;AAEjE,yEAAyE;AACzE,eAAO,MAAM,cAAc,QAAO,gBAMjC,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { _Item } from "@canonical/ds-types";
2
+ import { type ReactElement } from "react";
3
+ import type { MenuItem } from "../../types.js";
4
+ /**
5
+ * One node in a (possibly nested) contextual menu. A leaf renders a plain item;
6
+ * a submenu parent renders the item plus a positioned nested popup for its
7
+ * children (see {@link SubMenuParent}). The hook that positions the popup runs
8
+ * ONLY for submenu parents — leaves render a bare item — so a menu of leaves
9
+ * spins up no positioning machinery.
10
+ */
11
+ declare const SubMenu: ({ item }: {
12
+ item: _Item<MenuItem>;
13
+ }) => ReactElement;
14
+ export default SubMenu;
15
+ //# sourceMappingURL=SubMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubMenu.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/ContextualMenu/common/SubMenu/SubMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,KAAK,YAAY,EAAsC,MAAM,OAAO,CAAC;AAO9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI/C;;;;;;GAMG;AACH,QAAA,MAAM,OAAO,GAAI,UAAU;IAAE,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;CAAE,KAAG,YActD,CAAC;AAkJF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./SubMenu.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/ContextualMenu/common/SubMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as ContextualMenu } from "./ContextualMenu.js";
2
+ export type * from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/ContextualMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,mBAAmB,YAAY,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { HTMLAttributes, ReactNode } from "react";
2
+ import type { MenuItem, UseContextualMenuProps, WindowFitmentPlacement, WindowFitmentSide } from "../../hooks/index.js";
3
+ export type { MenuItem } from "../../hooks/index.js";
4
+ export interface ContextualMenuProps extends Omit<HTMLAttributes<HTMLDivElement>, "onSelect">, Pick<UseContextualMenuProps, "distance" | "gutter" | "maxWidth" | "autoFit" | "wrap"> {
5
+ /**
6
+ * The trigger content, rendered inside the trigger button. Clicking it opens
7
+ * the menu.
8
+ */
9
+ trigger: ReactNode;
10
+ /**
11
+ * The menu groups. Each top-level item is a group; its `items` are the menu
12
+ * entries. One level is supported now; deeper nesting is reserved for submenus.
13
+ */
14
+ groups: MenuItem[];
15
+ /** Accessible name for the menu. Falls back to labelling by the trigger. */
16
+ label?: string;
17
+ /**
18
+ * Preferred placement of the menu relative to its trigger. Each entry is a
19
+ * bare logical side (centred) or a `{ side, align }` pair; `inline-*` mirrors
20
+ * in RTL. Defaults to the leading-edge, top-aligned placement (with flips).
21
+ */
22
+ preferredDirections?: (WindowFitmentSide | WindowFitmentPlacement)[];
23
+ /** Called with an item's key/url when it is activated. */
24
+ onSelect?: (item: MenuItem) => void;
25
+ /** Controlled open state. */
26
+ open?: boolean;
27
+ /** Called when the open state changes. */
28
+ onOpenChange?: (open: boolean) => void;
29
+ }
30
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/ContextualMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EACV,QAAQ,EACR,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,EACtD,IAAI,CACF,sBAAsB,EACtB,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CACxD;IACH;;;OAGG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,iBAAiB,GAAG,sBAAsB,CAAC,EAAE,CAAC;IACrE,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,6BAA6B;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,0CAA0C;IAC1C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC"}
@@ -0,0 +1,16 @@
1
+ import type React from "react";
2
+ import type { PopoverProps } from "./types.js";
3
+ import "./styles.css";
4
+ /**
5
+ * A popover reveals supplementary content anchored to a trigger. It renders as a
6
+ * native `<details>`/`<summary>` so the toggle works without JavaScript; once
7
+ * hydrated, positioning, outside-click and Escape dismissal are layered on via
8
+ * the disclosure hook.
9
+ *
10
+ * `import { Popover } from "@canonical/react-ds-global";`
11
+ *
12
+ * @implements dso:global.component.popover
13
+ */
14
+ declare const Popover: ({ trigger, children, className, open, onOpenChange, preferredDirections, distance, gutter, maxWidth, autoFit, closeOnEscape, closeOnOutsideClick, ...props }: PopoverProps) => React.ReactElement;
15
+ export default Popover;
16
+ //# sourceMappingURL=Popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,cAAc,CAAC;AAOtB;;;;;;;;;GASG;AACH,QAAA,MAAM,OAAO,GAAI,8JAcd,YAAY,KAAG,KAAK,CAAC,YAiFvB,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as Popover } from "./Popover.js";
2
+ export type * from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,mBAAmB,YAAY,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { HTMLAttributes, ReactNode } from "react";
2
+ import type { UseDisclosureProps, WindowFitmentSide } from "../../hooks/index.js";
3
+ export interface PopoverProps extends Omit<HTMLAttributes<HTMLDetailsElement>, "onToggle">, Pick<UseDisclosureProps, "preferredDirections" | "distance" | "gutter" | "maxWidth" | "autoFit" | "closeOnEscape" | "closeOnOutsideClick"> {
4
+ /**
5
+ * The trigger content, rendered inside the `<summary>`. Clicking it toggles
6
+ * the popover; with no JavaScript the native `<details>` handles the toggle.
7
+ */
8
+ trigger: ReactNode;
9
+ /** The popover body, revealed when open. */
10
+ children: ReactNode;
11
+ /**
12
+ * Controlled open state. When omitted, the popover is uncontrolled and the
13
+ * native `<details>` element owns its state until hydration.
14
+ */
15
+ open?: boolean;
16
+ /** Called when the open state changes. */
17
+ onOpenChange?: (open: boolean) => void;
18
+ /**
19
+ * Preferred placement of the popover relative to its trigger, as logical sides
20
+ * (`inline-*` mirrors in RTL). Defaults to the reading-direction order.
21
+ */
22
+ preferredDirections?: WindowFitmentSide[];
23
+ }
24
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Popover/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,YACf,SAAQ,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,UAAU,CAAC,EAC1D,IAAI,CACF,kBAAkB,EAChB,qBAAqB,GACrB,UAAU,GACV,QAAQ,GACR,UAAU,GACV,SAAS,GACT,eAAe,GACf,qBAAqB,CACxB;IACH;;;OAGG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB,4CAA4C;IAC5C,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,0CAA0C;IAC1C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC3C"}
@@ -0,0 +1,18 @@
1
+ import type React from "react";
2
+ import type { TabsProps } from "./types.js";
3
+ import "./styles.css";
4
+ /**
5
+ * A tabs component organises related content into separate sections, letting
6
+ * users move between them by selecting labelled tab headers. This navigational
7
+ * variant is data-driven: it takes a `navigationRoot` item and renders its
8
+ * direct children as tabs, each a link (via `LinkComponent`, default `"a"`), so
9
+ * tabs are deep-linkable and drive the active section from the URL; the
10
+ * consumer owns what each tab points at.
11
+ *
12
+ * `import { Tabs } from "@canonical/react-ds-global";`
13
+ *
14
+ * @implements dso:global.component.tabs
15
+ */
16
+ declare const Tabs: ({ navigationRoot, LinkComponent, currentUrl, className, listClassName, ...props }: TabsProps) => React.ReactElement;
17
+ export default Tabs;
18
+ //# sourceMappingURL=Tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,IAAI,GAAI,mFAOX,SAAS,KAAG,KAAK,CAAC,YAuBpB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type React from "react";
2
+ import type { ItemProps } from "./types.js";
3
+ import "./styles.css";
4
+ /**
5
+ * Tabs Item — the internal renderer for a single tab. Not a public
6
+ * subcomponent: Tabs iterates `navigationRoot.items` and renders one of these
7
+ * per child.
8
+ *
9
+ * Renders an `<li>` whose content is a link when the item has a `url` (via the
10
+ * `LinkComponent`, default `"a"`) or inert text otherwise — never a button.
11
+ * The active tab is marked `aria-current="page"`.
12
+ */
13
+ declare const Item: ({ item, active, LinkComponent, }: ItemProps) => React.ReactElement;
14
+ export default Item;
15
+ //# sourceMappingURL=Item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tabs/common/Item/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,IAAI,GAAI,kCAIX,SAAS,KAAG,KAAK,CAAC,YA0BpB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as Item } from "./Item.js";
2
+ export type * from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tabs/common/Item/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,mBAAmB,YAAY,CAAC"}