@canonical/react-ds-global 0.29.0 → 0.30.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 (300) 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/Accordion.js +2 -0
  7. package/dist/esm/lib/component/Accordion/Accordion.js.map +1 -1
  8. package/dist/esm/lib/component/Accordion/common/Item/styles.css +19 -50
  9. package/dist/esm/lib/component/Accordion/styles.css +5 -1
  10. package/dist/esm/lib/component/Announcement/Announcement.js +5 -3
  11. package/dist/esm/lib/component/Announcement/Announcement.js.map +1 -1
  12. package/dist/esm/lib/component/Announcement/index.js +1 -0
  13. package/dist/esm/lib/component/Announcement/index.js.map +1 -1
  14. package/dist/esm/lib/component/Announcement/styles.css +60 -36
  15. package/dist/esm/lib/component/Breadcrumbs/Breadcrumbs.js +2 -0
  16. package/dist/esm/lib/component/Breadcrumbs/Breadcrumbs.js.map +1 -1
  17. package/dist/esm/lib/component/Breadcrumbs/common/Item/Item.js +1 -1
  18. package/dist/esm/lib/component/Breadcrumbs/common/Item/Item.js.map +1 -1
  19. package/dist/esm/lib/component/Button/Button.js +13 -5
  20. package/dist/esm/lib/component/Button/Button.js.map +1 -1
  21. package/dist/esm/lib/component/Button/styles.css +135 -39
  22. package/dist/esm/lib/component/Card/Card.js +9 -6
  23. package/dist/esm/lib/component/Card/Card.js.map +1 -1
  24. package/dist/esm/lib/component/Card/common/Content/styles.css +1 -1
  25. package/dist/esm/lib/component/Card/common/Footer/Footer.js +1 -1
  26. package/dist/esm/lib/component/Card/common/Footer/styles.css +1 -1
  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 +8 -8
  31. package/dist/esm/lib/component/ContextualMenu/ContextualMenu.js +94 -0
  32. package/dist/esm/lib/component/ContextualMenu/ContextualMenu.js.map +1 -0
  33. package/dist/esm/lib/component/ContextualMenu/common/Item/Item.js +32 -0
  34. package/dist/esm/lib/component/ContextualMenu/common/Item/Item.js.map +1 -0
  35. package/dist/esm/lib/component/ContextualMenu/common/Item/index.js +2 -0
  36. package/dist/esm/lib/component/ContextualMenu/common/Item/index.js.map +1 -0
  37. package/dist/esm/lib/component/ContextualMenu/common/Item/styles.css +93 -0
  38. package/dist/esm/lib/component/ContextualMenu/common/Item/types.js.map +1 -0
  39. package/dist/esm/lib/component/ContextualMenu/common/MenuContext.js +12 -0
  40. package/dist/esm/lib/component/ContextualMenu/common/MenuContext.js.map +1 -0
  41. package/dist/esm/lib/component/ContextualMenu/common/SubMenu/SubMenu.js +109 -0
  42. package/dist/esm/lib/component/ContextualMenu/common/SubMenu/SubMenu.js.map +1 -0
  43. package/dist/esm/lib/component/ContextualMenu/common/SubMenu/index.js +2 -0
  44. package/dist/esm/lib/component/ContextualMenu/common/SubMenu/index.js.map +1 -0
  45. package/dist/esm/lib/component/ContextualMenu/index.js +2 -0
  46. package/dist/esm/lib/component/ContextualMenu/index.js.map +1 -0
  47. package/dist/esm/lib/component/ContextualMenu/styles.css +86 -0
  48. package/dist/esm/lib/component/ContextualMenu/types.js.map +1 -0
  49. package/dist/esm/lib/component/Icon/Icon.js +3 -0
  50. package/dist/esm/lib/component/Icon/Icon.js.map +1 -1
  51. package/dist/esm/lib/component/InlineCode/InlineCode.js +2 -0
  52. package/dist/esm/lib/component/InlineCode/InlineCode.js.map +1 -1
  53. package/dist/esm/lib/component/KeyboardKey/KeyboardKey.js +2 -0
  54. package/dist/esm/lib/component/KeyboardKey/KeyboardKey.js.map +1 -1
  55. package/dist/esm/lib/component/Popover/Popover.js +50 -0
  56. package/dist/esm/lib/component/Popover/Popover.js.map +1 -0
  57. package/dist/esm/lib/component/Popover/index.js +2 -0
  58. package/dist/esm/lib/component/Popover/index.js.map +1 -0
  59. package/dist/esm/lib/component/Popover/styles.css +65 -0
  60. package/dist/esm/lib/component/Popover/types.js +2 -0
  61. package/dist/esm/lib/component/Popover/types.js.map +1 -0
  62. package/dist/esm/lib/component/Tabs/Tabs.js +27 -0
  63. package/dist/esm/lib/component/Tabs/Tabs.js.map +1 -0
  64. package/dist/esm/lib/component/Tabs/common/Item/Item.js +20 -0
  65. package/dist/esm/lib/component/Tabs/common/Item/Item.js.map +1 -0
  66. package/dist/esm/lib/component/Tabs/common/Item/index.js +3 -0
  67. package/dist/esm/lib/component/Tabs/common/Item/index.js.map +1 -0
  68. package/dist/esm/lib/component/Tabs/common/Item/styles.css +75 -0
  69. package/dist/esm/lib/component/Tabs/common/Item/types.js +2 -0
  70. package/dist/esm/lib/component/Tabs/common/Item/types.js.map +1 -0
  71. package/dist/esm/lib/component/Tabs/common/index.js +2 -0
  72. package/dist/esm/lib/component/Tabs/common/index.js.map +1 -0
  73. package/dist/esm/lib/component/Tabs/index.js +3 -0
  74. package/dist/esm/lib/component/Tabs/index.js.map +1 -0
  75. package/dist/esm/lib/component/Tabs/styles.css +37 -0
  76. package/dist/esm/lib/component/Tabs/types.js +2 -0
  77. package/dist/esm/lib/component/Tabs/types.js.map +1 -0
  78. package/dist/esm/lib/component/Tile/Tile.js +6 -1
  79. package/dist/esm/lib/component/Tile/Tile.js.map +1 -1
  80. package/dist/esm/lib/component/Tile/common/Content/styles.css +17 -8
  81. package/dist/esm/lib/component/Tile/common/Header/styles.css +15 -12
  82. package/dist/esm/lib/component/Tile/styles.css +19 -53
  83. package/dist/esm/lib/component/Tooltip/Tooltip.js +6 -4
  84. package/dist/esm/lib/component/Tooltip/Tooltip.js.map +1 -1
  85. package/dist/esm/lib/component/Tooltip/common/TooltipArea/TooltipArea.js +47 -25
  86. package/dist/esm/lib/component/Tooltip/common/TooltipArea/TooltipArea.js.map +1 -1
  87. package/dist/esm/lib/component/Tooltip/styles.css +146 -81
  88. package/dist/esm/lib/component/Tooltip/withTooltip.js +3 -3
  89. package/dist/esm/lib/component/Tooltip/withTooltip.js.map +1 -1
  90. package/dist/esm/lib/component/index.js +17 -0
  91. package/dist/esm/lib/component/index.js.map +1 -0
  92. package/dist/esm/lib/group/KeyboardKeys/KeyboardKeys.js +3 -0
  93. package/dist/esm/lib/group/KeyboardKeys/KeyboardKeys.js.map +1 -1
  94. package/dist/esm/lib/group/index.js +3 -0
  95. package/dist/esm/lib/group/index.js.map +1 -0
  96. package/dist/esm/lib/hooks/index.js +2 -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 +175 -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/useResizeObserver/useResizeObserver.js +37 -7
  111. package/dist/esm/lib/hooks/useResizeObserver/useResizeObserver.js.map +1 -1
  112. package/dist/esm/lib/hooks/useWindowDimensions/useWindowDimensions.js +9 -0
  113. package/dist/esm/lib/hooks/useWindowDimensions/useWindowDimensions.js.map +1 -1
  114. package/dist/esm/lib/hooks/useWindowFitment/index.js +1 -0
  115. package/dist/esm/lib/hooks/useWindowFitment/index.js.map +1 -1
  116. package/dist/esm/lib/hooks/useWindowFitment/readingDirection.js +25 -0
  117. package/dist/esm/lib/hooks/useWindowFitment/readingDirection.js.map +1 -0
  118. package/dist/esm/lib/hooks/useWindowFitment/useWindowFitment.js +211 -21
  119. package/dist/esm/lib/hooks/useWindowFitment/useWindowFitment.js.map +1 -1
  120. package/dist/esm/lib/index.js +8 -25
  121. package/dist/esm/lib/index.js.map +1 -1
  122. package/dist/esm/lib/pattern/index.js +3 -0
  123. package/dist/esm/lib/pattern/index.js.map +1 -0
  124. package/dist/esm/lib/subcomponent/Spinner/Spinner.js +35 -0
  125. package/dist/esm/lib/subcomponent/Spinner/Spinner.js.map +1 -0
  126. package/dist/esm/lib/subcomponent/Spinner/index.js +2 -0
  127. package/dist/esm/lib/subcomponent/Spinner/index.js.map +1 -0
  128. package/dist/esm/lib/subcomponent/Spinner/styles.css +50 -0
  129. package/dist/esm/lib/subcomponent/Spinner/types.js +2 -0
  130. package/dist/esm/lib/subcomponent/Spinner/types.js.map +1 -0
  131. package/dist/esm/lib/subcomponent/index.js +3 -0
  132. package/dist/esm/lib/subcomponent/index.js.map +1 -0
  133. package/dist/esm/lib/types/link.js +2 -0
  134. package/dist/esm/lib/types/link.js.map +1 -0
  135. package/dist/types/lib/_work_in_progress/Link/types.d.ts +1 -1
  136. package/dist/types/lib/_work_in_progress/Link/types.d.ts.map +1 -1
  137. package/dist/types/lib/_work_in_progress/index.d.ts +12 -0
  138. package/dist/types/lib/_work_in_progress/index.d.ts.map +1 -0
  139. package/dist/types/lib/component/Accordion/Accordion.d.ts +2 -0
  140. package/dist/types/lib/component/Accordion/Accordion.d.ts.map +1 -1
  141. package/dist/types/lib/component/Announcement/Announcement.d.ts +2 -2
  142. package/dist/types/lib/component/Announcement/Announcement.d.ts.map +1 -1
  143. package/dist/types/lib/component/Announcement/index.d.ts.map +1 -1
  144. package/dist/types/lib/component/Announcement/types.d.ts +17 -6
  145. package/dist/types/lib/component/Announcement/types.d.ts.map +1 -1
  146. package/dist/types/lib/component/Breadcrumbs/Breadcrumbs.d.ts +3 -1
  147. package/dist/types/lib/component/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  148. package/dist/types/lib/component/Breadcrumbs/common/Item/Item.d.ts +1 -1
  149. package/dist/types/lib/component/Breadcrumbs/common/Item/Item.d.ts.map +1 -1
  150. package/dist/types/lib/component/Breadcrumbs/common/Item/types.d.ts +8 -13
  151. package/dist/types/lib/component/Breadcrumbs/common/Item/types.d.ts.map +1 -1
  152. package/dist/types/lib/component/Breadcrumbs/types.d.ts +8 -1
  153. package/dist/types/lib/component/Breadcrumbs/types.d.ts.map +1 -1
  154. package/dist/types/lib/component/Button/Button.d.ts +3 -1
  155. package/dist/types/lib/component/Button/Button.d.ts.map +1 -1
  156. package/dist/types/lib/component/Button/types.d.ts +8 -4
  157. package/dist/types/lib/component/Button/types.d.ts.map +1 -1
  158. package/dist/types/lib/component/Card/Card.d.ts +3 -5
  159. package/dist/types/lib/component/Card/Card.d.ts.map +1 -1
  160. package/dist/types/lib/component/Card/common/Footer/Footer.d.ts +1 -1
  161. package/dist/types/lib/component/Card/common/Footer/types.d.ts +1 -1
  162. package/dist/types/lib/component/Card/common/index.d.ts +0 -1
  163. package/dist/types/lib/component/Card/common/index.d.ts.map +1 -1
  164. package/dist/types/lib/component/ContextualMenu/ContextualMenu.d.ts +15 -0
  165. package/dist/types/lib/component/ContextualMenu/ContextualMenu.d.ts.map +1 -0
  166. package/dist/types/lib/component/ContextualMenu/common/Item/Item.d.ts +14 -0
  167. package/dist/types/lib/component/ContextualMenu/common/Item/Item.d.ts.map +1 -0
  168. package/dist/types/lib/component/ContextualMenu/common/Item/index.d.ts +3 -0
  169. package/dist/types/lib/component/ContextualMenu/common/Item/index.d.ts.map +1 -0
  170. package/dist/types/lib/component/ContextualMenu/common/Item/types.d.ts +11 -0
  171. package/dist/types/lib/component/ContextualMenu/common/Item/types.d.ts.map +1 -0
  172. package/dist/types/lib/component/ContextualMenu/common/MenuContext.d.ts +19 -0
  173. package/dist/types/lib/component/ContextualMenu/common/MenuContext.d.ts.map +1 -0
  174. package/dist/types/lib/component/ContextualMenu/common/SubMenu/SubMenu.d.ts +15 -0
  175. package/dist/types/lib/component/ContextualMenu/common/SubMenu/SubMenu.d.ts.map +1 -0
  176. package/dist/types/lib/component/ContextualMenu/common/SubMenu/index.d.ts +2 -0
  177. package/dist/types/lib/component/ContextualMenu/common/SubMenu/index.d.ts.map +1 -0
  178. package/dist/types/lib/component/ContextualMenu/index.d.ts +3 -0
  179. package/dist/types/lib/component/ContextualMenu/index.d.ts.map +1 -0
  180. package/dist/types/lib/component/ContextualMenu/types.d.ts +30 -0
  181. package/dist/types/lib/component/ContextualMenu/types.d.ts.map +1 -0
  182. package/dist/types/lib/component/Icon/Icon.d.ts +3 -0
  183. package/dist/types/lib/component/Icon/Icon.d.ts.map +1 -1
  184. package/dist/types/lib/component/InlineCode/InlineCode.d.ts +2 -0
  185. package/dist/types/lib/component/InlineCode/InlineCode.d.ts.map +1 -1
  186. package/dist/types/lib/component/KeyboardKey/KeyboardKey.d.ts +2 -0
  187. package/dist/types/lib/component/KeyboardKey/KeyboardKey.d.ts.map +1 -1
  188. package/dist/types/lib/component/Popover/Popover.d.ts +16 -0
  189. package/dist/types/lib/component/Popover/Popover.d.ts.map +1 -0
  190. package/dist/types/lib/component/Popover/index.d.ts +3 -0
  191. package/dist/types/lib/component/Popover/index.d.ts.map +1 -0
  192. package/dist/types/lib/component/Popover/types.d.ts +24 -0
  193. package/dist/types/lib/component/Popover/types.d.ts.map +1 -0
  194. package/dist/types/lib/component/Tabs/Tabs.d.ts +18 -0
  195. package/dist/types/lib/component/Tabs/Tabs.d.ts.map +1 -0
  196. package/dist/types/lib/component/Tabs/common/Item/Item.d.ts +15 -0
  197. package/dist/types/lib/component/Tabs/common/Item/Item.d.ts.map +1 -0
  198. package/dist/types/lib/component/Tabs/common/Item/index.d.ts +3 -0
  199. package/dist/types/lib/component/Tabs/common/Item/index.d.ts.map +1 -0
  200. package/dist/types/lib/component/Tabs/common/Item/types.d.ts +18 -0
  201. package/dist/types/lib/component/Tabs/common/Item/types.d.ts.map +1 -0
  202. package/dist/types/lib/component/Tabs/common/index.d.ts +2 -0
  203. package/dist/types/lib/component/Tabs/common/index.d.ts.map +1 -0
  204. package/dist/types/lib/component/Tabs/index.d.ts +3 -0
  205. package/dist/types/lib/component/Tabs/index.d.ts.map +1 -0
  206. package/dist/types/lib/component/Tabs/types.d.ts +46 -0
  207. package/dist/types/lib/component/Tabs/types.d.ts.map +1 -0
  208. package/dist/types/lib/component/Tile/Tile.d.ts +2 -0
  209. package/dist/types/lib/component/Tile/Tile.d.ts.map +1 -1
  210. package/dist/types/lib/component/Tile/common/Content/types.d.ts +1 -1
  211. package/dist/types/lib/component/Tile/common/Header/types.d.ts +1 -1
  212. package/dist/types/lib/component/Tile/types.d.ts +4 -5
  213. package/dist/types/lib/component/Tile/types.d.ts.map +1 -1
  214. package/dist/types/lib/component/Tooltip/Tooltip.d.ts +1 -1
  215. package/dist/types/lib/component/Tooltip/Tooltip.d.ts.map +1 -1
  216. package/dist/types/lib/component/Tooltip/common/TooltipArea/TooltipArea.d.ts +2 -2
  217. package/dist/types/lib/component/Tooltip/common/TooltipArea/TooltipArea.d.ts.map +1 -1
  218. package/dist/types/lib/component/Tooltip/common/TooltipArea/types.d.ts +14 -2
  219. package/dist/types/lib/component/Tooltip/common/TooltipArea/types.d.ts.map +1 -1
  220. package/dist/types/lib/component/Tooltip/types.d.ts +6 -0
  221. package/dist/types/lib/component/Tooltip/types.d.ts.map +1 -1
  222. package/dist/types/lib/component/Tooltip/withTooltip.d.ts +10 -3
  223. package/dist/types/lib/component/Tooltip/withTooltip.d.ts.map +1 -1
  224. package/dist/types/lib/component/index.d.ts +16 -0
  225. package/dist/types/lib/component/index.d.ts.map +1 -0
  226. package/dist/types/lib/group/KeyboardKeys/KeyboardKeys.d.ts +3 -0
  227. package/dist/types/lib/group/KeyboardKeys/KeyboardKeys.d.ts.map +1 -1
  228. package/dist/types/lib/group/index.d.ts +2 -0
  229. package/dist/types/lib/group/index.d.ts.map +1 -0
  230. package/dist/types/lib/hooks/index.d.ts +2 -1
  231. package/dist/types/lib/hooks/index.d.ts.map +1 -1
  232. package/dist/types/lib/hooks/useContextualMenu/index.d.ts +3 -0
  233. package/dist/types/lib/hooks/useContextualMenu/index.d.ts.map +1 -0
  234. package/dist/types/lib/hooks/useContextualMenu/types.d.ts +71 -0
  235. package/dist/types/lib/hooks/useContextualMenu/types.d.ts.map +1 -0
  236. package/dist/types/lib/hooks/useContextualMenu/useContextualMenu.d.ts +20 -0
  237. package/dist/types/lib/hooks/useContextualMenu/useContextualMenu.d.ts.map +1 -0
  238. package/dist/types/lib/hooks/useDisclosure/index.d.ts +3 -0
  239. package/dist/types/lib/hooks/useDisclosure/index.d.ts.map +1 -0
  240. package/dist/types/lib/hooks/useDisclosure/types.d.ts +103 -0
  241. package/dist/types/lib/hooks/useDisclosure/types.d.ts.map +1 -0
  242. package/dist/types/lib/hooks/useDisclosure/useDisclosure.d.ts +32 -0
  243. package/dist/types/lib/hooks/useDisclosure/useDisclosure.d.ts.map +1 -0
  244. package/dist/types/lib/hooks/useResizeObserver/useResizeObserver.d.ts +6 -0
  245. package/dist/types/lib/hooks/useResizeObserver/useResizeObserver.d.ts.map +1 -1
  246. package/dist/types/lib/hooks/useWindowDimensions/useWindowDimensions.d.ts.map +1 -1
  247. package/dist/types/lib/hooks/useWindowFitment/index.d.ts +1 -0
  248. package/dist/types/lib/hooks/useWindowFitment/index.d.ts.map +1 -1
  249. package/dist/types/lib/hooks/useWindowFitment/readingDirection.d.ts +14 -0
  250. package/dist/types/lib/hooks/useWindowFitment/readingDirection.d.ts.map +1 -0
  251. package/dist/types/lib/hooks/useWindowFitment/types.d.ts +75 -4
  252. package/dist/types/lib/hooks/useWindowFitment/types.d.ts.map +1 -1
  253. package/dist/types/lib/hooks/useWindowFitment/useWindowFitment.d.ts +44 -2
  254. package/dist/types/lib/hooks/useWindowFitment/useWindowFitment.d.ts.map +1 -1
  255. package/dist/types/lib/index.d.ts +5 -25
  256. package/dist/types/lib/index.d.ts.map +1 -1
  257. package/dist/types/lib/pattern/index.d.ts +2 -0
  258. package/dist/types/lib/pattern/index.d.ts.map +1 -0
  259. package/dist/types/lib/subcomponent/Spinner/Spinner.d.ts +24 -0
  260. package/dist/types/lib/subcomponent/Spinner/Spinner.d.ts.map +1 -0
  261. package/dist/types/lib/subcomponent/Spinner/index.d.ts +3 -0
  262. package/dist/types/lib/subcomponent/Spinner/index.d.ts.map +1 -0
  263. package/dist/types/lib/subcomponent/Spinner/types.d.ts +17 -0
  264. package/dist/types/lib/subcomponent/Spinner/types.d.ts.map +1 -0
  265. package/dist/types/lib/subcomponent/index.d.ts +2 -0
  266. package/dist/types/lib/subcomponent/index.d.ts.map +1 -0
  267. package/dist/types/lib/types/index.d.ts +1 -0
  268. package/dist/types/lib/types/index.d.ts.map +1 -1
  269. package/dist/types/lib/types/link.d.ts +26 -0
  270. package/dist/types/lib/types/link.d.ts.map +1 -0
  271. package/package.json +16 -19
  272. package/dist/esm/lib/component/Card/common/Thumbnail/Thumbnail.js +0 -21
  273. package/dist/esm/lib/component/Card/common/Thumbnail/Thumbnail.js.map +0 -1
  274. package/dist/esm/lib/component/Card/common/Thumbnail/index.js +0 -2
  275. package/dist/esm/lib/component/Card/common/Thumbnail/index.js.map +0 -1
  276. package/dist/esm/lib/component/Card/common/Thumbnail/styles.css +0 -39
  277. package/dist/esm/lib/component/Card/common/Thumbnail/types.js.map +0 -1
  278. package/dist/esm/lib/hooks/usePopup/index.js +0 -3
  279. package/dist/esm/lib/hooks/usePopup/index.js.map +0 -1
  280. package/dist/esm/lib/hooks/usePopup/types.js.map +0 -1
  281. package/dist/esm/lib/hooks/usePopup/usePopup.js +0 -93
  282. package/dist/esm/lib/hooks/usePopup/usePopup.js.map +0 -1
  283. package/dist/esm/storybook/decorators.js +0 -16
  284. package/dist/esm/storybook/decorators.js.map +0 -1
  285. package/dist/types/lib/component/Card/common/Thumbnail/Thumbnail.d.ts +0 -23
  286. package/dist/types/lib/component/Card/common/Thumbnail/Thumbnail.d.ts.map +0 -1
  287. package/dist/types/lib/component/Card/common/Thumbnail/index.d.ts +0 -3
  288. package/dist/types/lib/component/Card/common/Thumbnail/index.d.ts.map +0 -1
  289. package/dist/types/lib/component/Card/common/Thumbnail/types.d.ts +0 -27
  290. package/dist/types/lib/component/Card/common/Thumbnail/types.d.ts.map +0 -1
  291. package/dist/types/lib/hooks/usePopup/index.d.ts +0 -3
  292. package/dist/types/lib/hooks/usePopup/index.d.ts.map +0 -1
  293. package/dist/types/lib/hooks/usePopup/types.d.ts +0 -65
  294. package/dist/types/lib/hooks/usePopup/types.d.ts.map +0 -1
  295. package/dist/types/lib/hooks/usePopup/usePopup.d.ts +0 -19
  296. package/dist/types/lib/hooks/usePopup/usePopup.d.ts.map +0 -1
  297. package/dist/types/storybook/decorators.d.ts +0 -15
  298. package/dist/types/storybook/decorators.d.ts.map +0 -1
  299. /package/dist/esm/lib/component/{Card/common/Thumbnail → ContextualMenu/common/Item}/types.js +0 -0
  300. /package/dist/esm/lib/{hooks/usePopup → component/ContextualMenu}/types.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,SAAS;wCAIZ,cAAc,GAAG,KAAK,CAAC,YAAY;;;;;CAOrC,CAAC;AAIF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,SAAS;wCAIZ,cAAc,GAAG,KAAK,CAAC,YAAY;;;;;CAOrC,CAAC;AAIF,eAAe,SAAS,CAAC"}
@@ -5,11 +5,11 @@ import "./styles.css";
5
5
  * The announcement is a persistent, high-visibility UI block used to
6
6
  * communicate time-sensitive or critical contextual information directly within
7
7
  * a page. It is not triggered by specific system or user events; instead, it is
8
- * a non-transient call-out used for broad organizational updates, compliance
8
+ * a non-transient call-out used for broad organisational updates, compliance
9
9
  * warnings, or upcoming deadlines.
10
10
  *
11
11
  * @implements ds:global.component.announcement
12
12
  */
13
- declare const Announcement: ({ className, children, ...props }: AnnouncementProps) => React.ReactElement;
13
+ declare const Announcement: ({ criticality, heading, children, className, ...props }: AnnouncementProps) => React.ReactElement;
14
14
  export default Announcement;
15
15
  //# sourceMappingURL=Announcement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Announcement.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Announcement/Announcement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,YAAY,GAAI,mCAInB,iBAAiB,KAAG,KAAK,CAAC,YAQ5B,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"Announcement.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Announcement/Announcement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,YAAY,GAAI,yDAMnB,iBAAiB,KAAG,KAAK,CAAC,YAkB5B,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Announcement/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,mBAAmB,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Announcement/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,mBAAmB,YAAY,CAAC"}
@@ -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"}
@@ -11,12 +11,14 @@ import "./styles.css";
11
11
  * applications with multiple levels of hierarchy and are particularly useful
12
12
  * when users might arrive at deep pages through search or external links.
13
13
  *
14
+ * `import { Breadcrumbs } from "@canonical/react-ds-global";`
15
+ *
14
16
  * @implements ds:global.pattern.breadcrumbs
15
17
  */
16
18
  declare const Breadcrumbs: {
17
19
  ({ items, separator, LinkComponent, className, "aria-label": ariaLabel, ...props }: BreadcrumbsProps): React.ReactElement;
18
20
  Item: {
19
- ({ 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;
20
22
  displayName: string;
21
23
  };
22
24
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,WAAW;wFAOd,gBAAgB,GAAG,KAAK,CAAC,YAAY;;;;;CAyBvC,CAAC;AAIF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,WAAW;wFAOd,gBAAgB,GAAG,KAAK,CAAC,YAAY;;;;;CAyBvC,CAAC;AAIF,eAAe,WAAW,CAAC"}
@@ -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;;CA2BhC,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
@@ -41,5 +31,10 @@ export interface ItemProps extends HTMLAttributes<HTMLLIElement>, Item<Component
41
31
  * @default "a"
42
32
  */
43
33
  LinkComponent?: ComponentType<LinkComponentProps> | "a";
34
+ /**
35
+ * Custom component for rendering this item itself.
36
+ * e.g. A specialized renderer for complex items.
37
+ */
38
+ Component?: ComponentType<any>;
44
39
  }
45
40
  //# 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;;;OAGG;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"}
@@ -7,12 +7,19 @@ import type { ItemProps, LinkComponentProps } from "./common/Item/types.js";
7
7
  * Adds breadcrumb-specific properties while maintaining
8
8
  * compatibility with the unified navigation type.
9
9
  */
10
- export interface BreadcrumbItem extends Item<ComponentType<any>> {
10
+ export interface BreadcrumbItem extends Item {
11
11
  /**
12
12
  * Whether this is the current page.
13
13
  * When true, renders as text instead of link.
14
14
  */
15
15
  current?: boolean;
16
+ /** CSS class name applied to this item's `<li>`, in addition to the base classes. */
17
+ className?: string;
18
+ /**
19
+ * Custom component for rendering this item itself.
20
+ * e.g. A specialized renderer for complex items.
21
+ */
22
+ Component?: ComponentType<any>;
16
23
  }
17
24
  /**
18
25
  * Props for the Breadcrumbs component
@@ -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;;;;;GAKG;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;;;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"}
@@ -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;AAE/B,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,QAAA,MAAM,MAAM,GAAI,0GAYb,KAAK,KAAG,KAAK,CAAC,YAyDhB,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -33,14 +33,18 @@ export interface BaseProps {
33
33
  */
34
34
  variant?: "link";
35
35
  /**
36
- * Icon element to display alongside the label.
36
+ * Icon element to display before the label. The button has a single,
37
+ * leading icon slot — the right-side icon was removed when the select and
38
+ * dropdown affordances became their own components.
37
39
  */
38
40
  icon?: ReactNode;
39
41
  /**
40
- * Position of the icon relative to the label.
41
- * @default "start"
42
+ * Whether the button is in a loading (busy) state. Replaces the leading icon
43
+ * with a Spinner, marks the button `aria-busy`, and disables interaction so
44
+ * the action cannot be triggered again while it is in flight.
45
+ * @default false
42
46
  */
43
- iconPosition?: "start" | "end";
47
+ loading?: boolean;
44
48
  }
45
49
  type Props = BaseProps & ButtonHTMLAttributes<HTMLButtonElement>;
46
50
  export default Props;
@@ -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,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;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,KAAK,KAAK,GAAG,SAAS,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEjE,eAAe,KAAK,CAAC"}
@@ -8,7 +8,9 @@ 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
+ * `import { Card } from "@canonical/react-ds-global";`
12
+ *
13
+ * @implements ds:global.component.card
12
14
  */
13
15
  declare const Card: {
14
16
  ({ className, children, ...props }: CardProps): React.ReactElement;
@@ -28,10 +30,6 @@ declare const Card: {
28
30
  ({ className, alt, ...props }: import("./common/index.js").ImageProps): React.ReactElement;
29
31
  displayName: string;
30
32
  };
31
- Thumbnail: {
32
- ({ className, imageProps, children, ...props }: import("./common/index.js").ThumbnailProps): React.ReactElement;
33
- displayName: string;
34
- };
35
33
  };
36
34
  export default Card;
37
35
  //# 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;;;;;;;;;;GAUG;AACH,QAAA,MAAM,IAAI;wCAIP,SAAS,GAAG,KAAK,CAAC,YAAY;;;;;;;;;;;;;;;;;CAOhC,CAAC;AAOF,eAAe,IAAI,CAAC"}
@@ -5,7 +5,7 @@ import "./styles.css";
5
5
  * Footer component for Card. A padded content-bearing section pinned to the
6
6
  * bottom of the card, for actions or supplementary information.
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,7 +2,7 @@ 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
8
  /** Required child contents */
@@ -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;AAM/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,YA8I9B,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,EAA+B,MAAM,OAAO,CAAC;AAGvE,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;AA8HF,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"}
@@ -3,6 +3,9 @@ import type { IconProps } from "./types.js";
3
3
  import "./styles.css";
4
4
  /**
5
5
  * Icon component that renders SVG icons from @canonical/ds-assets
6
+ *
7
+ * `import { Icon } from "@canonical/react-ds-global";`
8
+ *
6
9
  * @implements ds:global.component.icon
7
10
  */
8
11
  declare const Icon: ({ xmlns, viewBox, icon, className, rootPath, role, ...props }: IconProps) => ReactElement;
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAQtB;;;GAGG;AACH,QAAA,MAAM,IAAI,GAAI,+DAQX,SAAS,KAAG,YAsBd,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,cAAc,CAAC;AAQtB;;;;;;GAMG;AACH,QAAA,MAAM,IAAI,GAAI,+DAQX,SAAS,KAAG,YAsBd,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -4,6 +4,8 @@ import "./styles.css";
4
4
  /**
5
5
  * This component is used to display code inline or as a standalone block.
6
6
  *
7
+ * `import { InlineCode } from "@canonical/react-ds-global";`
8
+ *
7
9
  * @implements dso:global.component.inline_code
8
10
  */
9
11
  declare const InlineCode: ({ className, children, ...props }: InlineCodeProps) => React.ReactElement;
@@ -1 +1 @@
1
- {"version":3,"file":"InlineCode.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/InlineCode/InlineCode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,cAAc,CAAC;AAItB;;;;GAIG;AACH,QAAA,MAAM,UAAU,GAAI,mCAIjB,eAAe,KAAG,KAAK,CAAC,YAW1B,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"InlineCode.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/InlineCode/InlineCode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,cAAc,CAAC;AAItB;;;;;;GAMG;AACH,QAAA,MAAM,UAAU,GAAI,mCAIjB,eAAe,KAAG,KAAK,CAAC,YAW1B,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -10,6 +10,8 @@ import "./styles.css";
10
10
  * instructional or reference content. It is non-interactive and purely
11
11
  * informational.
12
12
  *
13
+ * `import { KeyboardKey } from "@canonical/react-ds-global";`
14
+ *
13
15
  * @implements dso:global.component.keyboard_key
14
16
  */
15
17
  declare const KeyboardKey: ({ keyValue, className, ...props }: KeyboardKeyProps) => React.ReactElement;
@@ -1 +1 @@
1
- {"version":3,"file":"KeyboardKey.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/KeyboardKey/KeyboardKey.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;GAUG;AACH,QAAA,MAAM,WAAW,GAAI,mCAIlB,gBAAgB,KAAG,KAAK,CAAC,YAU3B,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"KeyboardKey.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/KeyboardKey/KeyboardKey.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,cAAc,CAAC;AAItB;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,WAAW,GAAI,mCAIlB,gBAAgB,KAAG,KAAK,CAAC,YAU3B,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -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"}