@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
@@ -0,0 +1,65 @@
1
+ /* Component tokens — sourced from @canonical/design-tokens */
2
+ :root {
3
+ --popover-color-border: var(--color-border);
4
+ --popover-border-radius: 0;
5
+ --popover-border-width: 1px;
6
+ --popover-padding-vertical: var(--dimension-100);
7
+ --popover-padding-horizontal: var(--dimension-200);
8
+ --popover-motion-duration: 0.12s;
9
+ }
10
+
11
+ .ds.popover {
12
+ position: relative;
13
+ display: inline-block;
14
+
15
+ > .trigger {
16
+ cursor: pointer;
17
+ list-style: none;
18
+
19
+ /* Remove the native disclosure triangle; the trigger content owns the affordance. */
20
+ &::-webkit-details-marker {
21
+ display: none;
22
+ }
23
+ }
24
+
25
+ > .content {
26
+ position: fixed;
27
+ z-index: var(--z-index-overlay, 100);
28
+ /* Read the surface channels directly on .content so the `.contrasted`
29
+ surface applied to this element resolves (a :root intermediate would see
30
+ them unset and fall back to the base colours). */
31
+ background-color: var(--surface-color-background, var(--color-background));
32
+ color: var(--surface-color-text, var(--color-text));
33
+ border: var(--popover-border-width, 1px) solid var(--popover-color-border);
34
+ border-radius: var(--popover-border-radius);
35
+ padding-block: var(--popover-padding-vertical);
36
+ padding-inline: var(--popover-padding-horizontal);
37
+
38
+ /*
39
+ CSS-only enter/exit animation. `allow-discrete` transitions `visibility`
40
+ (a discrete property) alongside `opacity`; `@starting-style` supplies the
41
+ opening frame so the fade-in runs. No JavaScript timing.
42
+ */
43
+ opacity: 0;
44
+ visibility: hidden;
45
+ transition:
46
+ opacity var(--popover-motion-duration) ease-in-out,
47
+ visibility var(--popover-motion-duration) allow-discrete;
48
+
49
+ /* Visible only when open (aria-hidden="false") AND positioned
50
+ (data-positioned) — so the content never paints at the unresolved
51
+ top:0/left:0 fallback, and the fade runs from the anchored position. */
52
+ &[aria-hidden="false"][data-positioned="true"] {
53
+ opacity: 1;
54
+ visibility: visible;
55
+
56
+ @starting-style {
57
+ opacity: 0;
58
+ }
59
+ }
60
+
61
+ @media (prefers-reduced-motion: reduce) {
62
+ transition: none;
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/lib/component/Popover/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Item } from "./common/index.js";
3
+ import "./styles.css";
4
+ const componentCssClassName = "ds tabs";
5
+ /**
6
+ * A tabs component organises related content into separate sections, letting
7
+ * users move between them by selecting labelled tab headers. This navigational
8
+ * variant is data-driven: it takes a `navigationRoot` item and renders its
9
+ * direct children as tabs, each a link (via `LinkComponent`, default `"a"`), so
10
+ * tabs are deep-linkable and drive the active section from the URL; the
11
+ * consumer owns what each tab points at.
12
+ *
13
+ * `import { Tabs } from "@canonical/react-ds-global";`
14
+ *
15
+ * @implements dso:global.component.tabs
16
+ */
17
+ const Tabs = ({ navigationRoot, LinkComponent = "a", currentUrl, className, listClassName, ...props }) => {
18
+ // Only the root's direct children are rendered (the root is a container).
19
+ const items = navigationRoot.items ?? [];
20
+ return (_jsx("nav", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: _jsx("ul", { className: ["tabs-list", listClassName].filter(Boolean).join(" "), children: items.map((item, index) => (_jsx(Item
21
+ // Prefer the item's own identity (key, then url — both meant to be
22
+ // unique); fall back to the positional index so keys stay unique
23
+ // even when two tabs share a label or a label changes.
24
+ , { item: item, active: item.url != null && item.url === currentUrl, LinkComponent: LinkComponent }, item.key ?? item.url ?? index))) }) }));
25
+ };
26
+ export default Tabs;
27
+ //# sourceMappingURL=Tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../../../src/lib/component/Tabs/Tabs.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAExC;;;;;;;;;;;GAWG;AACH,MAAM,IAAI,GAAG,CAAC,EACZ,cAAc,EACd,aAAa,GAAG,GAAG,EACnB,UAAU,EACV,SAAS,EACT,aAAa,EACb,GAAG,KAAK,EACE,EAAsB,EAAE;IAClC,0EAA0E;IAC1E,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,IAAI,EAAE,CAAC;IACzC,OAAO,CACL,cACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,YAET,aAAI,SAAS,EAAE,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,YAClE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC1B,KAAC,IAAI;YACH,mEAAmE;YACnE,iEAAiE;YACjE,uDAAuD;gBAEvD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,IAAI,CAAC,GAAG,IAAI,IAAI,IAAI,IAAI,CAAC,GAAG,KAAK,UAAU,EACnD,aAAa,EAAE,aAAa,IAHvB,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,IAAI,KAAK,CAIlC,CACH,CAAC,GACC,GACD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "./styles.css";
3
+ const componentCssClassName = "ds tabs-item";
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
+ const Item = ({ item, active, LinkComponent, }) => {
14
+ const { url, label, disabled, className } = item;
15
+ const Link = LinkComponent;
16
+ const inert = !url;
17
+ return (_jsx("li", { className: [componentCssClassName, className].filter(Boolean).join(" "), "data-active": active || undefined, "data-inert": inert || undefined, "data-disabled": disabled || undefined, children: url ? (_jsx(Link, { className: "tabs-link", href: disabled ? undefined : url, "aria-current": active ? "page" : undefined, children: label })) : (_jsx("span", { className: "tabs-link", "aria-current": active ? "page" : undefined, children: label })) }));
18
+ };
19
+ export default Item;
20
+ //# sourceMappingURL=Item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Item.js","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tabs/common/Item/Item.tsx"],"names":[],"mappings":";AAEA,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,cAAc,CAAC;AAE7C;;;;;;;;GAQG;AACH,MAAM,IAAI,GAAG,CAAC,EACZ,IAAI,EACJ,MAAM,EACN,aAAa,GACH,EAAsB,EAAE;IAClC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;IACjD,MAAM,IAAI,GAAG,aAAa,CAAC;IAC3B,MAAM,KAAK,GAAG,CAAC,GAAG,CAAC;IACnB,OAAO,CACL,aACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,iBAC1D,MAAM,IAAI,SAAS,gBACpB,KAAK,IAAI,SAAS,mBACf,QAAQ,IAAI,SAAS,YAEnC,GAAG,CAAC,CAAC,CAAC,CACL,KAAC,IAAI,IACH,SAAS,EAAC,WAAW,EACrB,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,kBAClB,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,YAExC,KAAK,GACD,CACR,CAAC,CAAC,CAAC,CACF,eAAM,SAAS,EAAC,WAAW,kBAAe,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,YAClE,KAAK,GACD,CACR,GACE,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,3 @@
1
+ // Generated by @canonical/summon-component:react v0.1.0
2
+ export { default as Item } from "./Item.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tabs/common/Item/index.ts"],"names":[],"mappings":"AAAA,wDAAwD;AAExD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Tabs Item styles (internal renderer)
3
+ *
4
+ * Figma (node 4388-106316): each tab is text with `--dimension-200` (16px)
5
+ * horizontal padding, no gap to its neighbours. The tab shows a bottom border
6
+ * on hover (muted) and when active (highlighted); an inert tab (no url) is
7
+ * muted with no hover affordance.
8
+ *
9
+ * Baseline grid: the tab box snaps to the typographic baseline grid — its
10
+ * min block-size and vertical padding are whole multiples of --baseline-height
11
+ * (1bU = 8px), so the strip sits on the same grid as surrounding text.
12
+ */
13
+ :root {
14
+ --tabs-tab-border-width: var(--dimension-strokeThickness-large, 2px);
15
+ --tabs-tab-padding-inline: var(--space-200); /* 16px */
16
+ /* 5bU = 40px tab height on the 8px baseline grid. */
17
+ --tabs-tab-min-block-size: calc(var(--baseline-height) * 5);
18
+ }
19
+
20
+ .ds.tabs-item {
21
+ display: flex;
22
+ }
23
+
24
+ .ds.tabs-item .tabs-link {
25
+ display: inline-flex;
26
+ align-items: center;
27
+ box-sizing: border-box;
28
+ /* Baseline-snapped block size; vertical padding kept to baseline units so the
29
+ label's line box centres on the grid. */
30
+ min-block-size: var(--tabs-tab-min-block-size);
31
+ padding-block: var(--space-100); /* 1bU */
32
+ padding-inline: var(--tabs-tab-padding-inline);
33
+ font: var(--typography-text-primary);
34
+ color: var(--color-text);
35
+ text-decoration: none;
36
+ white-space: nowrap;
37
+
38
+ /* Transparent underline reserved so the row never shifts when a border
39
+ appears on hover/active. */
40
+ border-bottom: var(--tabs-tab-border-width) solid transparent;
41
+ }
42
+
43
+ /* Hover: a muted bottom border hints the tab is navigable, and settles faster
44
+ than the active/selection change (below). Not on the active tab (it already
45
+ shows the highlighted border), nor on inert or disabled tabs (they are not
46
+ interactive). */
47
+ .ds.tabs-item:not([data-active]):not([data-inert]):not([data-disabled])
48
+ .tabs-link:hover {
49
+ border-bottom-color: var(--color-border-muted);
50
+ transition-duration: var(--motion-duration-fast);
51
+ }
52
+
53
+ /* Active tab: highlighted underline over the strip's muted baseline. */
54
+ .ds.tabs-item[data-active] .tabs-link,
55
+ .ds.tabs-item .tabs-link[aria-current="page"] {
56
+ border-bottom-color: var(--color-border-highlighted);
57
+ }
58
+
59
+ /* Inert (no url) or disabled tabs: muted, non-interactive, no hover
60
+ affordance. */
61
+ .ds.tabs-item[data-inert] .tabs-link,
62
+ .ds.tabs-item[data-disabled] .tabs-link {
63
+ color: var(--color-text-muted);
64
+ cursor: default;
65
+ }
66
+
67
+ /* Motion: the border transitions on the medium duration by default; the hover
68
+ rule above overrides it to the faster duration, so hover feedback is snappier
69
+ than the active/selection settle. */
70
+ @media (prefers-reduced-motion: no-preference) {
71
+ .ds.tabs-item .tabs-link {
72
+ transition: border-bottom-color var(--motion-duration-medium)
73
+ var(--motion-easing-standard);
74
+ }
75
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tabs/common/Item/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./Item/index.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/component/Tabs/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ // Generated by @canonical/summon-component:react v0.1.0
2
+ export { default as Tabs } from "./Tabs.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/component/Tabs/index.ts"],"names":[],"mappings":"AAAA,wDAAwD;AAExD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Tabs styles
3
+ * @implements dso:global.component.tabs
4
+ *
5
+ * DSL anatomy mapping:
6
+ * - layout.type: stack, layout.direction: horizontal -> flex row of tabs
7
+ * - edges: tabs-tab (1..*), slot default -> the <li> children of .tabs-list
8
+ *
9
+ * Figma (node 4388-106316): a horizontal strip of tabs with no gap between
10
+ * them, over a full-width muted bottom border; the strip fills its container
11
+ * and scrolls horizontally on overflow.
12
+ */
13
+ :root {
14
+ --tabs-border-width: var(--dimension-strokeThickness-medium, 1px);
15
+ }
16
+
17
+ .ds.tabs {
18
+ display: block;
19
+ }
20
+
21
+ .ds.tabs .tabs-list {
22
+ display: flex;
23
+ flex-direction: row;
24
+ /* No gap between tabs (Figma). */
25
+ gap: 0;
26
+ margin: 0;
27
+ padding: 0;
28
+ list-style: none;
29
+
30
+ /* Full-width muted baseline; the active tab paints a highlighted segment
31
+ over it (see Tabs.Tab). */
32
+ border-bottom: var(--tabs-border-width) solid var(--color-border-muted);
33
+
34
+ /* Overflow: the strip scrolls horizontally when the tabs exceed the
35
+ container width (Figma "Overflow"). */
36
+ overflow-x: auto;
37
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/lib/component/Tabs/types.ts"],"names":[],"mappings":""}
@@ -1,13 +1,18 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Content, Header } from "./common/index.js";
3
3
  import "./styles.css";
4
- const componentCssClassName = "ds tile";
4
+ // The Tile always provides a surface: it establishes its own `.surface`
5
+ // context (so its background and foreground channels resolve, and step when
6
+ // nested), unlike the Card which is not a surface.
7
+ const componentCssClassName = "ds tile surface";
5
8
  /**
6
9
  * The tile component is a flexible surface used to group related information
7
10
  * and actions into a single, recognizable unit. It acts as a container that
8
11
  * creates a clear boundary between different pieces of content, making complex
9
12
  * layouts easier to scan and organize.
10
13
  *
14
+ * `import { Tile } from "@canonical/react-ds-global";`
15
+ *
11
16
  * @implements ds:global.component.tile
12
17
  */
13
18
  const Tile = ({ children, className, ...props }) => (_jsx("div", { className: [componentCssClassName, className].filter(Boolean).join(" "), ...props, children: children }));
@@ -1 +1 @@
1
- {"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../../../src/lib/component/Tile/Tile.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,IAAI,GAAG,CAAC,EACZ,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACE,EAAsB,EAAE,CAAC,CACnC,cACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,YAGR,QAAQ,GACL,CACP,CAAC;AAEF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AAEvB,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../../../src/lib/component/Tile/Tile.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,cAAc,CAAC;AAEtB,wEAAwE;AACxE,4EAA4E;AAC5E,mDAAmD;AACnD,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAEhD;;;;;;;;;GASG;AACH,MAAM,IAAI,GAAG,CAAC,EACZ,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACE,EAAsB,EAAE,CAAC,CACnC,cACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KACnE,KAAK,YAGR,QAAQ,GACL,CACP,CAAC;AAEF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AAEvB,eAAe,IAAI,CAAC"}
@@ -1,18 +1,27 @@
1
1
  /**
2
2
  * Tile.Content styles
3
- * @implements dso:global.subcomponent.tile-content
3
+ * @implements ds:global.subcomponent.tile-content
4
4
  *
5
5
  * DSL anatomy mapping:
6
- * - layout.type: stack -> display: flex; flex-direction: column
7
- * - layout.direction: vertical -> flex-direction: column
8
- * - spacing.internal: spacing/medium -> padding: var(--spacing-medium)
6
+ * - layout.type: stack, layout.direction: vertical -> flex column
7
+ * - spacing.padding.top: dimension/100, spacing.padding.bottom: dimension/200,
8
+ * spacing.internal.horizontal: dimension/200 -> top 100, bottom 200,
9
+ * sides 200. With a header above (padding-bottom 100), the two sections read
10
+ * as top 100 / sides 200 / bottom 200 with the sections meeting in between.
9
11
  */
12
+ :root {
13
+ --tile-content-padding-top: var(--dimension-100);
14
+ --tile-content-padding-bottom: var(--dimension-200);
15
+ --tile-content-padding-inline: var(--dimension-200);
16
+ --tile-content-gap: var(--dimension-100);
17
+ }
18
+
10
19
  .ds.tile-content {
11
- /* layout.type: stack, layout.direction: vertical */
12
20
  display: flex;
13
21
  flex-direction: column;
22
+ gap: var(--tile-content-gap);
14
23
 
15
- /* spacing.internal: spacing/medium */
16
- padding: var(--tile-content-padding, var(--spacing-medium, 1rem));
17
- gap: var(--tile-content-gap, var(--spacing-medium, 1rem));
24
+ padding-block-start: var(--tile-content-padding-top);
25
+ padding-block-end: var(--tile-content-padding-bottom);
26
+ padding-inline: var(--tile-content-padding-inline);
18
27
  }
@@ -1,25 +1,28 @@
1
1
  /**
2
2
  * Tile.Header styles
3
- * @implements dso:global.subcomponent.tile-header
3
+ * @implements ds:global.subcomponent.tile-header
4
4
  *
5
5
  * DSL anatomy mapping:
6
- * - layout.type: flow -> display: flex
7
- * - layout.direction: horizontal -> flex-direction: row
6
+ * - layout.type: flow, layout.direction: horizontal -> flex row
8
7
  * - layout.align: center -> align-items: center
9
- * - spacing.internal: spacing/medium -> padding: var(--spacing-medium)
8
+ * - spacing.internal.vertical: dimension/100, spacing.internal.horizontal:
9
+ * dimension/200 -> padding 100 (block) / 200 (inline). The header's block
10
+ * padding is 100 top and bottom; the content below adds its own top padding.
10
11
  */
12
+ :root {
13
+ --tile-header-padding-block: var(--dimension-100);
14
+ --tile-header-padding-inline: var(--dimension-200);
15
+ --tile-header-gap: var(--dimension-100);
16
+ }
17
+
11
18
  .ds.tile-header {
12
- /* layout.type: flow, layout.direction: horizontal */
13
19
  display: flex;
14
20
  flex-direction: row;
15
-
16
- /* layout.align: center */
17
21
  align-items: center;
18
22
 
19
- /* spacing.internal: spacing/medium */
20
- padding: var(--tile-header-padding, var(--spacing-medium, 1rem));
21
- gap: var(--tile-header-gap, var(--spacing-small, 0.5rem));
23
+ padding-block: var(--tile-header-padding-block);
24
+ padding-inline: var(--tile-header-padding-inline);
25
+ gap: var(--tile-header-gap);
22
26
 
23
- /* Typography */
24
- font-weight: var(--tile-header-font-weight, var(--font-weight-semibold, 600));
27
+ font-weight: var(--typography-weight-semibold, 600);
25
28
  }
@@ -1,66 +1,32 @@
1
1
  /**
2
2
  * Tile styles
3
- * @implements dso:global.component.tile
3
+ * @implements ds:global.component.tile
4
+ *
5
+ * The Tile always provides a surface: the component adds `.surface`, so the
6
+ * surface channel is established on this element (and steps when tiles/surfaces
7
+ * nest). It paints that background so it stands out on the page (dashboards,
8
+ * bento layouts). It shares the Card radius and has no border of its own. It is
9
+ * a static container — no cursor, hover, or focus affordance.
4
10
  *
5
11
  * DSL anatomy mapping:
6
- * - layout.type: stack -> display: flex; flex-direction: column
7
- * - layout.direction: vertical -> flex-direction: column
8
- * - interaction.cursor: pointer -> cursor: pointer
9
- * - appearance.background: color/surface/tile -> background: var(--color-surface-tile)
10
- * - appearance.radius: radius/tile -> border-radius: var(--radius-tile)
12
+ * - layout.type: stack, layout.direction: vertical -> flex column
13
+ * - appearance.background: color/surface/tile -> the surface background channel
14
+ * - appearance.radius: radius/card -> shared card radius (--dimension-radius-medium)
11
15
  */
16
+ :root {
17
+ /* Shared with Card. --dimension-radius-medium is currently 0; intended 9. */
18
+ --tile-border-radius: var(--dimension-radius-medium);
19
+ }
20
+
12
21
  .ds.tile {
13
- /* layout.type: stack, layout.direction: vertical */
14
22
  display: flex;
15
23
  flex-direction: column;
16
24
 
17
- /* interaction.cursor: pointer */
18
- cursor: pointer;
19
-
20
- /* appearance.background: color/surface/tile */
21
- background: var(
22
- --tile-background,
23
- var(--color-surface-tile, var(--color-surface, #fff))
24
- );
25
+ /* Tile is a surface: it paints its own background (stands out on the page). */
26
+ background: var(--surface-color-background, var(--color-background));
25
27
 
26
- /* appearance.radius: radius/tile */
27
- border-radius: var(
28
- --tile-border-radius,
29
- var(--radius-tile, var(--border-radius, 0.5rem))
30
- );
28
+ border-radius: var(--tile-border-radius);
31
29
 
32
- /* Additional styling */
33
- border: var(--tile-border-width, 1px) var(--tile-border-style, solid)
34
- var(--tile-border-color, var(--color-border, #e0e0e0));
35
- box-shadow: var(
36
- --tile-box-shadow,
37
- var(--shadow-small, 0 1px 3px rgba(0, 0, 0, 0.1))
38
- );
39
-
40
- /* Transition for hover effect */
41
- transition:
42
- box-shadow var(--transition-duration-fast, 150ms)
43
- var(--transition-easing-standard, ease-out),
44
- border-color var(--transition-duration-fast, 150ms)
45
- var(--transition-easing-standard, ease-out);
46
-
47
- /* Prevent overflow */
30
+ /* Clip section corners (e.g. full-bleed content) to the tile radius. */
48
31
  overflow: hidden;
49
-
50
- &:hover {
51
- box-shadow: var(
52
- --tile-box-shadow-hover,
53
- var(--shadow-medium, 0 4px 6px rgba(0, 0, 0, 0.1))
54
- );
55
- border-color: var(
56
- --tile-border-color-hover,
57
- var(--color-border-hover, #bdbdbd)
58
- );
59
- }
60
-
61
- &:focus-visible {
62
- outline: var(--focus-outline-width, 2px) solid
63
- var(--focus-outline-color, var(--color-focus, #0066cc));
64
- outline-offset: var(--focus-outline-offset, 2px);
65
- }
66
32
  }
@@ -1,6 +1,8 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import "./styles.css";
3
- const componentCssClassName = "ds tooltip";
3
+ // The `contrasted` surface makes the tooltip invert against the ambient theme
4
+ // for greater contrast against its context.
5
+ const componentCssClassName = "ds tooltip contrasted";
4
6
  /**
5
7
  * The Tooltip component renders the message part of a tooltip. It has no
6
8
  * interactivity or positioning logic and is generally consumed via
@@ -8,12 +10,12 @@ const componentCssClassName = "ds tooltip";
8
10
  *
9
11
  * @implements ds:global.component.tooltip
10
12
  */
11
- const Tooltip = ({ id, children, className, style, ref, isOpen = false, zIndex, onPointerEnter, onFocus, }) => {
13
+ const Tooltip = ({ id, children, icon, className, style, ref, isOpen = false, zIndex, onPointerEnter, onFocus, }) => {
12
14
  return (_jsx("div", { className: [componentCssClassName, className].filter(Boolean).join(" "), ref: ref, id: id, "aria-hidden": !isOpen, onPointerEnter: onPointerEnter, onFocus: onFocus, role: "tooltip", style: {
13
15
  ...style,
14
16
  visibility: isOpen ? "visible" : "hidden",
15
17
  zIndex,
16
- }, children: children }));
18
+ }, children: _jsxs("span", { className: "content", children: [icon ? (_jsx("span", { className: "icon", "aria-hidden": "true", children: icon })) : null, _jsx("span", { className: "text", children: children })] }) }));
17
19
  };
18
20
  export default Tooltip;
19
21
  //# sourceMappingURL=Tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/Tooltip.tsx"],"names":[],"mappings":";AACA,OAAO,cAAc,CAAC;AAGtB,MAAM,qBAAqB,GAAG,YAAY,CAAC;AAE3C;;;;;;GAMG;AACH,MAAM,OAAO,GAAG,CAAC,EACf,EAAE,EACF,QAAQ,EACR,SAAS,EACT,KAAK,EACL,GAAG,EACH,MAAM,GAAG,KAAK,EACd,MAAM,EACN,cAAc,EACd,OAAO,GACM,EAAsB,EAAE;IACrC,OAAO,CACL,cACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACvE,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,EAAE,iBACO,CAAC,MAAM,EACpB,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,SAAS,EACd,KAAK,EAAE;YACL,GAAG,KAAK;YACR,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;YACzC,MAAM;SACP,YAEA,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../../../src/lib/component/Tooltip/Tooltip.tsx"],"names":[],"mappings":";AACA,OAAO,cAAc,CAAC;AAGtB,8EAA8E;AAC9E,4CAA4C;AAC5C,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,OAAO,GAAG,CAAC,EACf,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,KAAK,EACL,GAAG,EACH,MAAM,GAAG,KAAK,EACd,MAAM,EACN,cAAc,EACd,OAAO,GACM,EAAsB,EAAE;IACrC,OAAO,CACL,cACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACvE,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,EAAE,iBACO,CAAC,MAAM,EACpB,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,SAAS,EACd,KAAK,EAAE;YACL,GAAG,KAAK;YACR,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;YACzC,MAAM;SACP,YAID,gBAAM,SAAS,EAAC,SAAS,aAEtB,IAAI,CAAC,CAAC,CAAC,CACN,eAAM,SAAS,EAAC,MAAM,iBAAa,MAAM,YACtC,IAAI,GACA,CACR,CAAC,CAAC,CAAC,IAAI,EACR,eAAM,SAAS,EAAC,MAAM,YAAE,QAAQ,GAAQ,IACnC,GACH,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,40 +1,60 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { usePopup } from "#lib/hooks/index.js";
2
+ import { createPortal } from "react-dom";
3
+ import { useDisclosure, useIsMounted } from "../../../../hooks/index.js";
3
4
  import { Tooltip } from "../../index.js";
4
5
  import "./styles.css";
5
- import { createPortal } from "react-dom";
6
6
  const componentCssClassName = "ds tooltip-area";
7
7
  /**
8
8
  * Wraps a target element with a tooltip.
9
9
  * This component allows you to attach a tooltip to any JSX fragment.
10
10
  */
11
- const TooltipArea = ({ children, style, className, Message, distance = "6px", targetElementId, targetElementClassName, targetElementStyle, messageElementClassName, messageElementStyle, parentElement, autoFit, ...props }) => {
12
- const { targetRef, popupRef, popupPositionStyle, popupId, isOpen, handleTriggerFocus, handleTriggerBlur, handleTriggerEnter, handleTriggerLeave, bestPosition, } = usePopup({ distance, autoFit, ...props });
13
- const TooltipMessageElement = (_jsx(Tooltip, { id: popupId, className: [
14
- bestPosition?.positionName,
15
- messageElementClassName,
16
- autoFit && "autofit",
17
- ]
11
+ const TooltipArea = ({ children, style, className, Message, icon, open, distance = "6px", targetElementId, targetElementClassName, targetElementStyle, messageElementClassName, messageElementStyle, parentElement, autoFit, ...props }) => {
12
+ const { targetRef, popupRef, popupPositionStyle, popupId, isOpen, bestPosition, arrowOffset, getToggleProps, getContentProps,
13
+ // `open` is the public alias for the hook's controlled `isOpen`; when set it
14
+ // overrides hover/focus so the tooltip stays in the given state.
15
+ } = useDisclosure({
16
+ distance,
17
+ autoFit,
18
+ ...props,
19
+ isOpen: open ?? props.isOpen,
20
+ mode: "hover",
21
+ });
22
+ const triggerProps = getToggleProps();
23
+ const contentProps = getContentProps();
24
+ // The message is portalled to the client only. Rendering it on the server (or
25
+ // on the first client render) would differ from the post-mount portal output
26
+ // and force a hydration mismatch + full re-mount — which resets the fitment
27
+ // refs to null and re-triggers the unpositioned first frame. Deferring to a
28
+ // mounted gate makes the server and first client render identical (nothing
29
+ // at the call site); the tooltip mounts once, cleanly, after hydration.
30
+ const mounted = useIsMounted();
31
+ // The always-on arrow offset keeps the arrow pointing at the target centre
32
+ // for every placement, not only when auto-fit clamps.
33
+ const arrowStyle = arrowOffset
34
+ ? {
35
+ [arrowOffset.axis === "x"
36
+ ? "--tooltip-arrow-offset-left"
37
+ : "--tooltip-arrow-offset-top"]: `${arrowOffset.offset}px`,
38
+ }
39
+ : {};
40
+ const TooltipMessageElement = (_jsx(Tooltip, { id: popupId, className: [bestPosition?.positionName, messageElementClassName]
18
41
  .filter(Boolean)
19
- .join(" "), onPointerEnter: handleTriggerEnter, onFocus: handleTriggerFocus, ref: popupRef, style: {
42
+ .join(" "), icon: icon, onPointerEnter: contentProps.onPointerEnter, ref: popupRef, style: {
20
43
  ...messageElementStyle,
21
44
  ...popupPositionStyle,
22
- // @ts-expect-error allow binding arrow size to distance, as it is needed both in JS and CSS calculations
23
- "--tooltip-spacing-arrow-size": distance,
24
- ...(autoFit &&
25
- bestPosition?.autoFitOffset && {
26
- "--tooltip-arrow-offset-top": `${bestPosition?.autoFitOffset.top || 0}px`,
27
- "--tooltip-arrow-offset-left": `${bestPosition?.autoFitOffset.left || 0}px`,
28
- }),
29
- }, isOpen: isOpen, children: Message }));
45
+ ...arrowStyle,
46
+ },
47
+ // Reveal only once a position has been resolved. Until `bestPosition`
48
+ // exists the popup would render at the fallback top:0/left:0 with no
49
+ // placement class (and so no arrow); gating the reveal on it means that
50
+ // unpositioned frame stays `visibility:hidden` and never paints — no
51
+ // visible 0,0 flash, and the open fade always runs from an anchored spot.
52
+ isOpen: isOpen && Boolean(bestPosition), children: Message }));
30
53
  return (
31
- // biome-ignore lint/a11y/noStaticElementInteractions: TODO this is kept as is to prevent breaking changes
32
- _jsxs("span", { className: [componentCssClassName, className].filter(Boolean).join(" "), style: style, onFocus: handleTriggerFocus, onBlur: handleTriggerBlur, onPointerEnter: handleTriggerEnter, onPointerLeave: handleTriggerLeave, children: [_jsx("span", { id: targetElementId, style: targetElementStyle, className: ["target", targetElementClassName].filter(Boolean).join(" "), ref: targetRef, "aria-describedby": popupId, children: children }), typeof window !== "undefined"
33
- ? // Portals allow the tooltip to be rendered outside the parent element
34
- // This is helpful when the parent element is a scrollable container or has bounds that may be
35
- // overflown by the tooltip message.
36
- createPortal(TooltipMessageElement, parentElement || document.body)
37
- : TooltipMessageElement] }));
54
+ // biome-ignore lint/a11y/noStaticElementInteractions: the wrapper forwards pointer/focus to the tooltip trigger
55
+ _jsxs("span", { className: [componentCssClassName, className].filter(Boolean).join(" "), style: style, onFocus: triggerProps.onFocus, onBlur: triggerProps.onBlur, onPointerEnter: triggerProps.onPointerEnter, onPointerLeave: triggerProps.onPointerLeave, children: [_jsx("span", { id: targetElementId, style: targetElementStyle, className: ["target", targetElementClassName].filter(Boolean).join(" "), ref: targetRef, "aria-describedby": popupId, children: children }), mounted
56
+ ? createPortal(TooltipMessageElement, parentElement || document.body)
57
+ : null] }));
38
58
  };
39
59
  export default TooltipArea;
40
60
  //# sourceMappingURL=TooltipArea.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TooltipArea.js","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tooltip/common/TooltipArea/TooltipArea.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,GAAG,CAAC,EACnB,QAAQ,EACR,KAAK,EACL,SAAS,EACT,OAAO,EACP,QAAQ,GAAG,KAAK,EAChB,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,aAAa,EACb,OAAO,EACP,GAAG,KAAK,EACS,EAAgB,EAAE;IACnC,MAAM,EACJ,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,OAAO,EACP,MAAM,EACN,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,GACb,GAAG,QAAQ,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;IAE9C,MAAM,qBAAqB,GAAG,CAC5B,KAAC,OAAO,IACN,EAAE,EAAE,OAAO,EACX,SAAS,EAAE;YACT,YAAY,EAAE,YAAY;YAC1B,uBAAuB;YACvB,OAAO,IAAI,SAAS;SACrB;aACE,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,EACZ,cAAc,EAAE,kBAAkB,EAClC,OAAO,EAAE,kBAAkB,EAC3B,GAAG,EAAE,QAAQ,EACb,KAAK,EAAE;YACL,GAAG,mBAAmB;YACtB,GAAG,kBAAkB;YACrB,yGAAyG;YACzG,8BAA8B,EAAE,QAAQ;YACxC,GAAG,CAAC,OAAO;gBACT,YAAY,EAAE,aAAa,IAAI;gBAC7B,4BAA4B,EAAE,GAAG,YAAY,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC,IAAI;gBACzE,6BAA6B,EAAE,GAAG,YAAY,EAAE,aAAa,CAAC,IAAI,IAAI,CAAC,IAAI;aAC5E,CAAC;SACL,EACD,MAAM,EAAE,MAAM,YAEb,OAAO,GACA,CACX,CAAC;IAEF,OAAO;IACL,0GAA0G;IAC1G,gBACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACvE,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,kBAAkB,EAC3B,MAAM,EAAE,iBAAiB,EACzB,cAAc,EAAE,kBAAkB,EAClC,cAAc,EAAE,kBAAkB,aAElC,eACE,EAAE,EAAE,eAAe,EACnB,KAAK,EAAE,kBAAkB,EACzB,SAAS,EAAE,CAAC,QAAQ,EAAE,sBAAsB,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACvE,GAAG,EAAE,SAAS,sBACI,OAAO,YAExB,QAAQ,GACJ,EAIN,OAAO,MAAM,KAAK,WAAW;gBAC5B,CAAC,CAAC,sEAAsE;oBACtE,8FAA8F;oBAC9F,oCAAoC;oBACpC,YAAY,CAAC,qBAAqB,EAAE,aAAa,IAAI,QAAQ,CAAC,IAAI,CAAC;gBACrE,CAAC,CAAC,qBAAqB,IACpB,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"TooltipArea.js","sourceRoot":"","sources":["../../../../../../../src/lib/component/Tooltip/common/TooltipArea/TooltipArea.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGzC,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,GAAG,CAAC,EACnB,QAAQ,EACR,KAAK,EACL,SAAS,EACT,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,QAAQ,GAAG,KAAK,EAChB,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,aAAa,EACb,OAAO,EACP,GAAG,KAAK,EACS,EAAgB,EAAE;IACnC,MAAM,EACJ,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,OAAO,EACP,MAAM,EACN,YAAY,EACZ,WAAW,EACX,cAAc,EACd,eAAe;IACf,6EAA6E;IAC7E,iEAAiE;MAClE,GAAG,aAAa,CAAC;QAChB,QAAQ;QACR,OAAO;QACP,GAAG,KAAK;QACR,MAAM,EAAE,IAAI,IAAI,KAAK,CAAC,MAAM;QAC5B,IAAI,EAAE,OAAO;KACd,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,cAAc,EAAE,CAAC;IACtC,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,8EAA8E;IAC9E,6EAA6E;IAC7E,4EAA4E;IAC5E,4EAA4E;IAC5E,2EAA2E;IAC3E,wEAAwE;IACxE,MAAM,OAAO,GAAG,YAAY,EAAE,CAAC;IAE/B,2EAA2E;IAC3E,sDAAsD;IACtD,MAAM,UAAU,GAAkB,WAAW;QAC3C,CAAC,CAAC;YACE,CAAC,WAAW,CAAC,IAAI,KAAK,GAAG;gBACvB,CAAC,CAAC,6BAA6B;gBAC/B,CAAC,CAAC,4BAA4B,CAAC,EAAE,GAAG,WAAW,CAAC,MAAM,IAAI;SAC7D;QACH,CAAC,CAAC,EAAE,CAAC;IAEP,MAAM,qBAAqB,GAAG,CAC5B,KAAC,OAAO,IACN,EAAE,EAAE,OAAO,EACX,SAAS,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,uBAAuB,CAAC;aAC7D,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,EACZ,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,YAAY,CAAC,cAAc,EAC3C,GAAG,EAAE,QAAQ,EACb,KAAK,EAAE;YACL,GAAG,mBAAmB;YACtB,GAAG,kBAAkB;YACrB,GAAG,UAAU;SACd;QACD,sEAAsE;QACtE,qEAAqE;QACrE,wEAAwE;QACxE,qEAAqE;QACrE,0EAA0E;QAC1E,MAAM,EAAE,MAAM,IAAI,OAAO,CAAC,YAAY,CAAC,YAEtC,OAAO,GACA,CACX,CAAC;IAEF,OAAO;IACL,gHAAgH;IAChH,gBACE,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACvE,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,YAAY,CAAC,OAAO,EAC7B,MAAM,EAAE,YAAY,CAAC,MAAM,EAC3B,cAAc,EAAE,YAAY,CAAC,cAAc,EAC3C,cAAc,EAAE,YAAY,CAAC,cAAc,aAE3C,eACE,EAAE,EAAE,eAAe,EACnB,KAAK,EAAE,kBAAkB,EACzB,SAAS,EAAE,CAAC,QAAQ,EAAE,sBAAsB,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACvE,GAAG,EAAE,SAAS,sBACI,OAAO,YAExB,QAAQ,GACJ,EAMN,OAAO;gBACN,CAAC,CAAC,YAAY,CAAC,qBAAqB,EAAE,aAAa,IAAI,QAAQ,CAAC,IAAI,CAAC;gBACrE,CAAC,CAAC,IAAI,IACH,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}