@reapit/elements 5.0.0-beta.39 → 5.0.0-beta.40

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 (379) hide show
  1. package/dist/js/app-switcher-BDL20hTW.js +194 -0
  2. package/dist/js/app-switcher-BXlXTsN5.cjs +1 -0
  3. package/dist/js/badge-Zk1mHCLJ.js +45 -0
  4. package/dist/js/badge-oq_d8wNF.cjs +1 -0
  5. package/dist/js/bottom-bar-B-ADK41z.js +157 -0
  6. package/dist/js/bottom-bar-B5NCnGXA.cjs +1 -0
  7. package/dist/js/{checkbox-CS-7yT6x.js → checkbox-BFYth-66.js} +29 -33
  8. package/dist/js/checkbox-C3Yq8lEo.cjs +1 -0
  9. package/dist/js/constants-0FiUx6o2.js +6 -0
  10. package/dist/js/constants-C8dYB608.cjs +1 -0
  11. package/dist/js/core/app-switcher.cjs +1 -1
  12. package/dist/js/core/app-switcher.js +9 -10
  13. package/dist/js/core/badge.cjs +1 -1
  14. package/dist/js/core/badge.js +1 -1
  15. package/dist/js/core/bottom-bar.cjs +1 -1
  16. package/dist/js/core/bottom-bar.js +7 -8
  17. package/dist/js/core/checkbox.cjs +1 -1
  18. package/dist/js/core/checkbox.js +1 -1
  19. package/dist/js/core/drawer.cjs +1 -1
  20. package/dist/js/core/drawer.js +1 -1
  21. package/dist/js/core/features.cjs +1 -1
  22. package/dist/js/core/features.js +1 -1
  23. package/dist/js/core/menu.cjs +1 -1
  24. package/dist/js/core/menu.js +18 -23
  25. package/dist/js/core/side-bar.cjs +1 -1
  26. package/dist/js/core/side-bar.js +1 -1
  27. package/dist/js/core/split-button.cjs +1 -1
  28. package/dist/js/core/split-button.js +52 -51
  29. package/dist/js/core/table.cjs +1 -1
  30. package/dist/js/core/table.js +1 -1
  31. package/dist/js/core/textarea.cjs +1 -1
  32. package/dist/js/core/textarea.js +142 -5
  33. package/dist/js/core/tooltip.cjs +1 -1
  34. package/dist/js/core/tooltip.js +6 -5
  35. package/dist/js/core/top-bar.cjs +1 -1
  36. package/dist/js/core/top-bar.js +33 -33
  37. package/dist/js/css-anchor-positioning-fn-BF5l2GbQ.cjs +17 -0
  38. package/dist/js/css-anchor-positioning-fn-CJi6lnM4.js +6352 -0
  39. package/dist/js/deprecated/menu.cjs +1 -0
  40. package/dist/js/deprecated/menu.js +25 -0
  41. package/dist/js/features-CsGbEb2I.js +66 -0
  42. package/dist/js/features-DvTUfOTg.cjs +1 -0
  43. package/dist/js/icons/more-vert.cjs +1 -0
  44. package/dist/js/icons/{elipsis.js → more-vert.js} +3 -3
  45. package/dist/js/index.cjs +1 -1
  46. package/dist/js/index.js +1222 -1199
  47. package/dist/js/match-media-BEA-ogMA.cjs +1 -0
  48. package/dist/js/match-media-DGLjaFrm.js +24 -0
  49. package/dist/js/menu-C9dHilkn.cjs +1 -0
  50. package/dist/js/menu-DNfb22IS.cjs +1 -0
  51. package/dist/js/menu-RBD640_2.js +242 -0
  52. package/dist/js/menu-pb8vvQbH.js +183 -0
  53. package/dist/js/mergeRefs-D-i3MDCB.cjs +1 -0
  54. package/dist/js/mergeRefs-DODigRi2.js +11 -0
  55. package/dist/js/popover-CpXCYh5W.js +184 -0
  56. package/dist/js/popover-DBEXxy0O.cjs +59 -0
  57. package/dist/js/side-bar-CxrXcOgT.js +383 -0
  58. package/dist/js/side-bar-cfmgEQoA.cjs +1 -0
  59. package/dist/js/style.css +1 -1
  60. package/dist/js/{table-toolbar-oTwWnSVI.js → table-toolbar-CWzuWN-q.js} +1 -1
  61. package/dist/js/{table-toolbar-aAusD1Vl.cjs → table-toolbar-DBaOi2aA.cjs} +1 -1
  62. package/dist/js/tooltip-BszFuzzR.cjs +1 -0
  63. package/dist/js/tooltip-Dn4EQFOW.js +76 -0
  64. package/dist/js/{top-bar-DWuhMND0.js → top-bar-DJC_7ikU.js} +200 -174
  65. package/dist/js/top-bar-VIwAd6gG.cjs +1 -0
  66. package/dist/js/utils/keyboard-navigation.cjs +1 -0
  67. package/dist/js/utils/keyboard-navigation.js +37 -0
  68. package/dist/js/utils/match-media.cjs +1 -1
  69. package/dist/js/utils/match-media.js +3 -22
  70. package/dist/js/utils/popover.cjs +1 -0
  71. package/dist/js/utils/popover.js +6 -0
  72. package/dist/types/core/app-switcher/app-avatar/app-avatar.d.ts.map +1 -1
  73. package/dist/types/core/app-switcher/app-switcher.d.ts +1 -1
  74. package/dist/types/core/app-switcher/app-switcher.d.ts.map +1 -1
  75. package/dist/types/core/app-switcher/app-switcher.stories.d.ts.map +1 -1
  76. package/dist/types/core/app-switcher/index.d.ts +0 -1
  77. package/dist/types/core/app-switcher/index.d.ts.map +1 -1
  78. package/dist/types/core/app-switcher/nav-icon-button/nav-icon-button.d.ts +1 -1
  79. package/dist/types/core/app-switcher/nav-icon-button/nav-icon-button.d.ts.map +1 -1
  80. package/dist/types/core/badge/badge.d.ts +3 -3
  81. package/dist/types/core/badge/badge.d.ts.map +1 -1
  82. package/dist/types/core/bottom-bar/bottom-bar.d.ts +0 -3
  83. package/dist/types/core/bottom-bar/bottom-bar.d.ts.map +1 -1
  84. package/dist/types/core/bottom-bar/context.d.ts +23 -0
  85. package/dist/types/core/bottom-bar/context.d.ts.map +1 -0
  86. package/dist/types/core/bottom-bar/item/item-button.d.ts +1 -1
  87. package/dist/types/core/bottom-bar/item/item-button.d.ts.map +1 -1
  88. package/dist/types/core/bottom-bar/item/item-button.stories.d.ts.map +1 -1
  89. package/dist/types/core/bottom-bar/menu-list/menu-list-menu-item.d.ts +1 -1
  90. package/dist/types/core/bottom-bar/menu-list/menu-list-menu-item.d.ts.map +1 -1
  91. package/dist/types/core/bottom-bar/menu-list/menu-list.stories.d.ts.map +1 -1
  92. package/dist/types/core/bottom-bar/menu-list/styles.d.ts +0 -11
  93. package/dist/types/core/bottom-bar/menu-list/styles.d.ts.map +1 -1
  94. package/dist/types/core/checkbox/checkbox.d.ts +1 -1
  95. package/dist/types/core/checkbox/checkbox.d.ts.map +1 -1
  96. package/dist/types/core/checkbox/checkbox.stories.d.ts +1 -1
  97. package/dist/types/core/chip/chip.stories.d.ts.map +1 -1
  98. package/dist/types/core/dialog/body/styles.d.ts.map +1 -1
  99. package/dist/types/core/drawer/constants.d.ts +1 -1
  100. package/dist/types/core/drawer/constants.d.ts.map +1 -1
  101. package/dist/types/core/features/item/item.d.ts +1 -1
  102. package/dist/types/core/features/item/item.d.ts.map +1 -1
  103. package/dist/types/core/label-text/styles.d.ts.map +1 -1
  104. package/dist/types/core/menu/__tests__/use-close-menu-on-click.test.d.ts +2 -0
  105. package/dist/types/core/menu/__tests__/use-close-menu-on-click.test.d.ts.map +1 -0
  106. package/dist/types/core/menu/__tests__/use-keyboard-navigation.test.d.ts +2 -0
  107. package/dist/types/core/menu/__tests__/use-keyboard-navigation.test.d.ts.map +1 -0
  108. package/dist/types/core/menu/divider/__tests__/divider.test.d.ts +2 -0
  109. package/dist/types/core/menu/divider/__tests__/divider.test.d.ts.map +1 -0
  110. package/dist/types/core/menu/divider/divider.d.ts +10 -0
  111. package/dist/types/core/menu/divider/divider.d.ts.map +1 -0
  112. package/dist/types/core/menu/divider/divider.stories.d.ts +10 -0
  113. package/dist/types/core/menu/divider/divider.stories.d.ts.map +1 -0
  114. package/dist/types/core/menu/divider/index.d.ts +3 -0
  115. package/dist/types/core/menu/divider/index.d.ts.map +1 -0
  116. package/dist/types/core/menu/divider/styles.d.ts +2 -0
  117. package/dist/types/core/menu/divider/styles.d.ts.map +1 -0
  118. package/dist/types/core/menu/group/__tests__/group.test.d.ts +2 -0
  119. package/dist/types/core/menu/group/__tests__/group.test.d.ts.map +1 -0
  120. package/dist/types/core/menu/group/group.d.ts +19 -0
  121. package/dist/types/core/menu/group/group.d.ts.map +1 -0
  122. package/dist/types/core/menu/group/group.stories.d.ts +40 -0
  123. package/dist/types/core/menu/group/group.stories.d.ts.map +1 -0
  124. package/dist/types/core/menu/group/index.d.ts +3 -0
  125. package/dist/types/core/menu/group/index.d.ts.map +1 -0
  126. package/dist/types/core/menu/group/styles.d.ts +3 -0
  127. package/dist/types/core/menu/group/styles.d.ts.map +1 -0
  128. package/dist/types/core/menu/index.d.ts +3 -3
  129. package/dist/types/core/menu/index.d.ts.map +1 -1
  130. package/dist/types/core/menu/item/__tests__/anchor-item.test.d.ts +2 -0
  131. package/dist/types/core/menu/item/__tests__/anchor-item.test.d.ts.map +1 -0
  132. package/dist/types/core/menu/item/__tests__/item-base.test.d.ts +2 -0
  133. package/dist/types/core/menu/item/__tests__/item-base.test.d.ts.map +1 -0
  134. package/dist/types/core/menu/item/__tests__/item.test.d.ts +2 -0
  135. package/dist/types/core/menu/item/__tests__/item.test.d.ts.map +1 -0
  136. package/dist/types/core/menu/item/anchor-item.d.ts +16 -0
  137. package/dist/types/core/menu/item/anchor-item.d.ts.map +1 -0
  138. package/dist/types/core/menu/item/index.d.ts +5 -0
  139. package/dist/types/core/menu/item/index.d.ts.map +1 -0
  140. package/dist/types/core/menu/item/item-base.d.ts +37 -0
  141. package/dist/types/core/menu/item/item-base.d.ts.map +1 -0
  142. package/dist/types/core/menu/item/item.d.ts +19 -0
  143. package/dist/types/core/menu/item/item.d.ts.map +1 -0
  144. package/dist/types/core/menu/item/item.stories.d.ts +93 -0
  145. package/dist/types/core/menu/item/item.stories.d.ts.map +1 -0
  146. package/dist/types/core/menu/item/styles.d.ts +8 -0
  147. package/dist/types/core/menu/item/styles.d.ts.map +1 -0
  148. package/dist/types/core/menu/menu.d.ts +33 -15
  149. package/dist/types/core/menu/menu.d.ts.map +1 -1
  150. package/dist/types/core/menu/menu.stories.d.ts +70 -9
  151. package/dist/types/core/menu/menu.stories.d.ts.map +1 -1
  152. package/dist/types/core/menu/styles.d.ts +1 -14
  153. package/dist/types/core/menu/styles.d.ts.map +1 -1
  154. package/dist/types/core/menu/use-close-menu-on-click.d.ts +10 -0
  155. package/dist/types/core/menu/use-close-menu-on-click.d.ts.map +1 -0
  156. package/dist/types/core/menu/use-keyboard-navigation.d.ts +7 -0
  157. package/dist/types/core/menu/use-keyboard-navigation.d.ts.map +1 -0
  158. package/dist/types/core/pagination/styles.d.ts.map +1 -1
  159. package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/handle-arrow-navigation.test.d.ts +2 -0
  160. package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/handle-arrow-navigation.test.d.ts.map +1 -0
  161. package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/handle-close-menu-group.test.d.ts +2 -0
  162. package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/handle-close-menu-group.test.d.ts.map +1 -0
  163. package/dist/types/core/side-bar/use-keyboard-navigation/{navigate-items-on-arrow-key-down-handler.d.ts → handle-arrow-navigation.d.ts} +2 -2
  164. package/dist/types/core/side-bar/use-keyboard-navigation/handle-arrow-navigation.d.ts.map +1 -0
  165. package/dist/types/core/side-bar/use-keyboard-navigation/{close-menu-group-on-escape-key-down-handler.d.ts → handle-close-menu-group.d.ts} +2 -2
  166. package/dist/types/core/side-bar/use-keyboard-navigation/handle-close-menu-group.d.ts.map +1 -0
  167. package/dist/types/core/split-button/menu-button/menu-button.d.ts +1 -3
  168. package/dist/types/core/split-button/menu-button/menu-button.d.ts.map +1 -1
  169. package/dist/types/core/split-button/menu-button/menu-button.stories.d.ts +1 -1
  170. package/dist/types/core/split-button/menu-button/styles.d.ts.map +1 -1
  171. package/dist/types/core/split-button/split-button-menu.d.ts +2 -2
  172. package/dist/types/core/split-button/split-button-menu.d.ts.map +1 -1
  173. package/dist/types/core/split-button/split-button.stories.d.ts +0 -272
  174. package/dist/types/core/split-button/split-button.stories.d.ts.map +1 -1
  175. package/dist/types/core/table/table-container/styles.d.ts.map +1 -1
  176. package/dist/types/core/table/table-toolbar/styles.d.ts.map +1 -1
  177. package/dist/types/core/textarea/styles.d.ts.map +1 -1
  178. package/dist/types/core/tooltip/__tests__/get-tooltip-trigger-props.test.d.ts +2 -0
  179. package/dist/types/core/tooltip/__tests__/get-tooltip-trigger-props.test.d.ts.map +1 -0
  180. package/dist/types/core/tooltip/__tests__/is-tooltip-needed.test.d.ts +2 -0
  181. package/dist/types/core/tooltip/__tests__/is-tooltip-needed.test.d.ts.map +1 -0
  182. package/dist/types/core/tooltip/__tests__/use-tooltip-controller.test.d.ts +2 -0
  183. package/dist/types/core/tooltip/__tests__/use-tooltip-controller.test.d.ts.map +1 -0
  184. package/dist/types/core/tooltip/get-tooltip-trigger-props.d.ts +28 -0
  185. package/dist/types/core/tooltip/get-tooltip-trigger-props.d.ts.map +1 -0
  186. package/dist/types/core/tooltip/index.d.ts +3 -1
  187. package/dist/types/core/tooltip/index.d.ts.map +1 -1
  188. package/dist/types/core/tooltip/is-tooltip-needed.d.ts +8 -0
  189. package/dist/types/core/tooltip/is-tooltip-needed.d.ts.map +1 -0
  190. package/dist/types/core/tooltip/styles.d.ts +1 -2
  191. package/dist/types/core/tooltip/styles.d.ts.map +1 -1
  192. package/dist/types/core/tooltip/tooltip.d.ts +36 -9
  193. package/dist/types/core/tooltip/tooltip.d.ts.map +1 -1
  194. package/dist/types/core/tooltip/tooltip.stories.d.ts +35 -123
  195. package/dist/types/core/tooltip/tooltip.stories.d.ts.map +1 -1
  196. package/dist/types/core/tooltip/use-tooltip-controller.d.ts +21 -0
  197. package/dist/types/core/tooltip/use-tooltip-controller.d.ts.map +1 -0
  198. package/dist/types/core/top-bar/main-nav/main-nav-menu-list-item.d.ts +1 -1
  199. package/dist/types/core/top-bar/main-nav/main-nav-menu-list-item.d.ts.map +1 -1
  200. package/dist/types/core/top-bar/main-nav/main-nav.stories.d.ts.map +1 -1
  201. package/dist/types/core/top-bar/main-nav/styles.d.ts.map +1 -1
  202. package/dist/types/core/top-bar/nav-dropdown-button/nav-dropdown-button.d.ts +1 -5
  203. package/dist/types/core/top-bar/nav-dropdown-button/nav-dropdown-button.d.ts.map +1 -1
  204. package/dist/types/core/top-bar/nav-dropdown-button/nav-dropdown-button.stories.d.ts +0 -6
  205. package/dist/types/core/top-bar/nav-dropdown-button/nav-dropdown-button.stories.d.ts.map +1 -1
  206. package/dist/types/core/top-bar/nav-dropdown-button/styles.d.ts +1 -1
  207. package/dist/types/core/top-bar/nav-dropdown-button/styles.d.ts.map +1 -1
  208. package/dist/types/core/top-bar/nav-icon-item/__tests__/nav-icon-item-base.test.d.ts +2 -0
  209. package/dist/types/core/top-bar/nav-icon-item/__tests__/nav-icon-item-base.test.d.ts.map +1 -0
  210. package/dist/types/core/top-bar/nav-icon-item/index.d.ts +1 -1
  211. package/dist/types/core/top-bar/nav-icon-item/index.d.ts.map +1 -1
  212. package/dist/types/core/top-bar/nav-icon-item/nav-icon-item-base.d.ts +4 -4
  213. package/dist/types/core/top-bar/nav-icon-item/nav-icon-item-base.d.ts.map +1 -1
  214. package/dist/types/core/top-bar/nav-icon-item/nav-icon-item-button.d.ts +2 -2
  215. package/dist/types/core/top-bar/nav-icon-item/nav-icon-item-button.d.ts.map +1 -1
  216. package/dist/types/core/top-bar/nav-icon-item/{nav-icon-item-anchor.d.ts → nav-icon-item.d.ts} +3 -3
  217. package/dist/types/core/top-bar/nav-icon-item/nav-icon-item.d.ts.map +1 -0
  218. package/dist/types/core/top-bar/nav-icon-item/{nav-icon-item-anchor.stories.d.ts → nav-icon-item.stories.d.ts} +3 -3
  219. package/dist/types/core/top-bar/nav-icon-item/nav-icon-item.stories.d.ts.map +1 -0
  220. package/dist/types/core/top-bar/secondary-nav/secondary-nav-list-item.d.ts +3 -3
  221. package/dist/types/core/top-bar/secondary-nav/secondary-nav-list-item.d.ts.map +1 -1
  222. package/dist/types/core/top-bar/secondary-nav/secondary-nav-menu-list-item.d.ts +1 -1
  223. package/dist/types/core/top-bar/secondary-nav/secondary-nav-menu-list-item.d.ts.map +1 -1
  224. package/dist/types/core/top-bar/secondary-nav/styles.d.ts.map +1 -1
  225. package/dist/types/deprecated/avatar/__styles__/index.d.ts.map +1 -1
  226. package/dist/types/deprecated/button/styles.d.ts.map +1 -1
  227. package/dist/types/deprecated/card/__styles__/index.d.ts.map +1 -1
  228. package/dist/types/deprecated/form-layout/__styles__/index.d.ts.map +1 -1
  229. package/dist/types/deprecated/input/__styles__/index.d.ts.map +1 -1
  230. package/dist/types/deprecated/layout/styles.d.ts.map +1 -1
  231. package/dist/types/deprecated/menu/__tests__/menu-context.test.d.ts.map +1 -0
  232. package/dist/types/deprecated/menu/__tests__/menu-popover.test.d.ts.map +1 -0
  233. package/dist/types/deprecated/menu/__tests__/menu.atoms.tests.d.ts.map +1 -0
  234. package/dist/types/deprecated/menu/__tests__/menu.molecules.test.d.ts.map +1 -0
  235. package/dist/types/deprecated/menu/__tests__/menu.test.d.ts +2 -0
  236. package/dist/types/deprecated/menu/__tests__/menu.test.d.ts.map +1 -0
  237. package/dist/types/deprecated/menu/__tests__/use-menu.test.d.ts.map +1 -0
  238. package/dist/types/deprecated/menu/index.d.ts +6 -0
  239. package/dist/types/deprecated/menu/index.d.ts.map +1 -0
  240. package/dist/types/deprecated/menu/menu-context.d.ts +14 -0
  241. package/dist/types/deprecated/menu/menu-context.d.ts.map +1 -0
  242. package/dist/types/{core → deprecated}/menu/menu-popover.d.ts +4 -2
  243. package/dist/types/deprecated/menu/menu-popover.d.ts.map +1 -0
  244. package/dist/types/{core → deprecated}/menu/menu.atoms.d.ts +17 -8
  245. package/dist/types/deprecated/menu/menu.atoms.d.ts.map +1 -0
  246. package/dist/types/deprecated/menu/menu.d.ts +18 -0
  247. package/dist/types/deprecated/menu/menu.d.ts.map +1 -0
  248. package/dist/types/deprecated/menu/menu.molecules.d.ts +13 -0
  249. package/dist/types/deprecated/menu/menu.molecules.d.ts.map +1 -0
  250. package/dist/types/deprecated/menu/menu.stories.d.ts +11 -0
  251. package/dist/types/deprecated/menu/menu.stories.d.ts.map +1 -0
  252. package/dist/types/deprecated/menu/styles.d.ts +29 -0
  253. package/dist/types/deprecated/menu/styles.d.ts.map +1 -0
  254. package/dist/types/{core → deprecated}/menu/use-menu.d.ts +4 -2
  255. package/dist/types/deprecated/menu/use-menu.d.ts.map +1 -0
  256. package/dist/types/deprecated/multi-select/__styles__/index.d.ts.map +1 -1
  257. package/dist/types/deprecated/nav/__styles__/index.d.ts.map +1 -1
  258. package/dist/types/deprecated/page-header/__styles__/index.d.ts.map +1 -1
  259. package/dist/types/deprecated/persistent-notification/__styles__/index.d.ts.map +1 -1
  260. package/dist/types/deprecated/split-button/split-button.stories.d.ts.map +1 -1
  261. package/dist/types/deprecated/split-button/styles.d.ts.map +1 -1
  262. package/dist/types/deprecated/status-indicator/__styles__/index.d.ts.map +1 -1
  263. package/dist/types/deprecated/table/__styles__/index.d.ts.map +1 -1
  264. package/dist/types/deprecated/tabs/styles.d.ts.map +1 -1
  265. package/dist/types/deprecated/tile/__styles__/index.d.ts.map +1 -1
  266. package/dist/types/deprecated/toggle/__styles__/index.d.ts.map +1 -1
  267. package/dist/types/deprecated/typography/__styles__/index.d.ts.map +1 -1
  268. package/dist/types/icons/index.d.ts +1 -1
  269. package/dist/types/icons/index.d.ts.map +1 -1
  270. package/dist/types/icons/{elipsis.d.ts → more-vert.d.ts} +2 -2
  271. package/dist/types/icons/more-vert.d.ts.map +1 -0
  272. package/dist/types/index.d.ts +1 -1
  273. package/dist/types/index.d.ts.map +1 -1
  274. package/dist/types/polyfills/css-anchor-positioning/__tests__/is-css-anchor-positioning-supported.test.d.ts +2 -0
  275. package/dist/types/polyfills/css-anchor-positioning/__tests__/is-css-anchor-positioning-supported.test.d.ts.map +1 -0
  276. package/dist/types/polyfills/css-anchor-positioning/__tests__/polyfill.test.d.ts +2 -0
  277. package/dist/types/polyfills/css-anchor-positioning/__tests__/polyfill.test.d.ts.map +1 -0
  278. package/dist/types/polyfills/css-anchor-positioning/index.d.ts +3 -0
  279. package/dist/types/polyfills/css-anchor-positioning/index.d.ts.map +1 -0
  280. package/dist/types/polyfills/css-anchor-positioning/is-css-anchor-positioning-supported.d.ts +6 -0
  281. package/dist/types/polyfills/css-anchor-positioning/is-css-anchor-positioning-supported.d.ts.map +1 -0
  282. package/dist/types/polyfills/css-anchor-positioning/polyfill.d.ts +31 -0
  283. package/dist/types/polyfills/css-anchor-positioning/polyfill.d.ts.map +1 -0
  284. package/dist/types/styles/deprecated-intent.d.ts.map +1 -1
  285. package/dist/types/styles/deprecated-states.d.ts.map +1 -1
  286. package/dist/types/utils/index.d.ts +3 -0
  287. package/dist/types/utils/index.d.ts.map +1 -1
  288. package/dist/types/utils/keyboard-navigation/__tests__/handle-arrow-navigation.test.d.ts +2 -0
  289. package/dist/types/utils/keyboard-navigation/__tests__/handle-arrow-navigation.test.d.ts.map +1 -0
  290. package/dist/types/utils/keyboard-navigation/__tests__/handle-link-activation.test.d.ts +2 -0
  291. package/dist/types/utils/keyboard-navigation/__tests__/handle-link-activation.test.d.ts.map +1 -0
  292. package/dist/types/utils/keyboard-navigation/handle-arrow-navigation.d.ts +19 -0
  293. package/dist/types/utils/keyboard-navigation/handle-arrow-navigation.d.ts.map +1 -0
  294. package/dist/types/utils/keyboard-navigation/handle-link-activation.d.ts +8 -0
  295. package/dist/types/utils/keyboard-navigation/handle-link-activation.d.ts.map +1 -0
  296. package/dist/types/utils/keyboard-navigation/index.d.ts +3 -0
  297. package/dist/types/utils/keyboard-navigation/index.d.ts.map +1 -0
  298. package/dist/types/utils/popover/__tests__/build-anchor-positioning-css.test.d.ts +2 -0
  299. package/dist/types/utils/popover/__tests__/build-anchor-positioning-css.test.d.ts.map +1 -0
  300. package/dist/types/utils/popover/__tests__/get-popover-trigger-props.test.d.ts +2 -0
  301. package/dist/types/utils/popover/__tests__/get-popover-trigger-props.test.d.ts.map +1 -0
  302. package/dist/types/utils/popover/__tests__/map-placement-to-css.test.d.ts +2 -0
  303. package/dist/types/utils/popover/__tests__/map-placement-to-css.test.d.ts.map +1 -0
  304. package/dist/types/utils/popover/__tests__/popover.test.d.ts +2 -0
  305. package/dist/types/utils/popover/__tests__/popover.test.d.ts.map +1 -0
  306. package/dist/types/utils/popover/build-anchor-positioning-css.d.ts +16 -0
  307. package/dist/types/utils/popover/build-anchor-positioning-css.d.ts.map +1 -0
  308. package/dist/types/utils/popover/get-popover-trigger-props.d.ts +26 -0
  309. package/dist/types/utils/popover/get-popover-trigger-props.d.ts.map +1 -0
  310. package/dist/types/utils/popover/index.d.ts +5 -0
  311. package/dist/types/utils/popover/index.d.ts.map +1 -0
  312. package/dist/types/utils/popover/map-placement-to-css.d.ts +9 -0
  313. package/dist/types/utils/popover/map-placement-to-css.d.ts.map +1 -0
  314. package/dist/types/utils/popover/popover.d.ts +83 -0
  315. package/dist/types/utils/popover/popover.d.ts.map +1 -0
  316. package/dist/types/utils/popover/popover.stories.d.ts +65 -0
  317. package/dist/types/utils/popover/popover.stories.d.ts.map +1 -0
  318. package/dist/types/utils/popover/styles.d.ts +2 -0
  319. package/dist/types/utils/popover/styles.d.ts.map +1 -0
  320. package/package.json +23 -15
  321. package/dist/js/app-switcher-CYrAmAg3.js +0 -195
  322. package/dist/js/app-switcher-DxlJu-e8.cjs +0 -1
  323. package/dist/js/badge-C9FTjwwZ.cjs +0 -1
  324. package/dist/js/badge-Ci0eZAEr.js +0 -40
  325. package/dist/js/bottom-bar-4vZqT8RP.cjs +0 -1
  326. package/dist/js/bottom-bar-miqnx82J.js +0 -133
  327. package/dist/js/checkbox-DUImw1xA.cjs +0 -1
  328. package/dist/js/constants-BNLqBJDi.js +0 -6
  329. package/dist/js/constants-MKnzVnjM.cjs +0 -1
  330. package/dist/js/features-D3eQh4dC.js +0 -65
  331. package/dist/js/features-DTnJg30E.cjs +0 -1
  332. package/dist/js/icons/elipsis.cjs +0 -1
  333. package/dist/js/menu-DCRn-9Lk.js +0 -225
  334. package/dist/js/menu-JyLBozNQ.cjs +0 -1
  335. package/dist/js/side-bar-C36ISncO.cjs +0 -1
  336. package/dist/js/side-bar-ChEb_Vv9.js +0 -412
  337. package/dist/js/textarea-CL9nrQLm.js +0 -151
  338. package/dist/js/textarea-PDvhvtu8.cjs +0 -1
  339. package/dist/js/top-bar-C0gvV1eb.cjs +0 -1
  340. package/dist/js/use-tooltip-B6c-rxoK.cjs +0 -1
  341. package/dist/js/use-tooltip-D8X2ozrD.js +0 -158
  342. package/dist/types/core/app-switcher/styles.d.ts +0 -2
  343. package/dist/types/core/app-switcher/styles.d.ts.map +0 -1
  344. package/dist/types/core/menu/__tests__/menu-context.test.d.ts.map +0 -1
  345. package/dist/types/core/menu/__tests__/menu-popover.test.d.ts.map +0 -1
  346. package/dist/types/core/menu/__tests__/menu.atoms.tests.d.ts.map +0 -1
  347. package/dist/types/core/menu/__tests__/menu.molecules.test.d.ts.map +0 -1
  348. package/dist/types/core/menu/__tests__/use-menu.test.d.ts.map +0 -1
  349. package/dist/types/core/menu/menu-context.d.ts +0 -10
  350. package/dist/types/core/menu/menu-context.d.ts.map +0 -1
  351. package/dist/types/core/menu/menu-popover.d.ts.map +0 -1
  352. package/dist/types/core/menu/menu.atoms.d.ts.map +0 -1
  353. package/dist/types/core/menu/menu.molecules.d.ts +0 -11
  354. package/dist/types/core/menu/menu.molecules.d.ts.map +0 -1
  355. package/dist/types/core/menu/use-menu.d.ts.map +0 -1
  356. package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/activate-link-on-space-key-down-handler.test.d.ts +0 -2
  357. package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/activate-link-on-space-key-down-handler.test.d.ts.map +0 -1
  358. package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/close-menu-group-on-escape-key-down-handler.test.d.ts +0 -2
  359. package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/close-menu-group-on-escape-key-down-handler.test.d.ts.map +0 -1
  360. package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/navigate-items-on-arrow-key-down-handler.test.d.ts +0 -2
  361. package/dist/types/core/side-bar/use-keyboard-navigation/__tests__/navigate-items-on-arrow-key-down-handler.test.d.ts.map +0 -1
  362. package/dist/types/core/side-bar/use-keyboard-navigation/activate-link-on-space-key-down-handler.d.ts +0 -7
  363. package/dist/types/core/side-bar/use-keyboard-navigation/activate-link-on-space-key-down-handler.d.ts.map +0 -1
  364. package/dist/types/core/side-bar/use-keyboard-navigation/close-menu-group-on-escape-key-down-handler.d.ts.map +0 -1
  365. package/dist/types/core/side-bar/use-keyboard-navigation/navigate-items-on-arrow-key-down-handler.d.ts.map +0 -1
  366. package/dist/types/core/tooltip/__tests__/use-tooltip.test.d.ts +0 -2
  367. package/dist/types/core/tooltip/__tests__/use-tooltip.test.d.ts.map +0 -1
  368. package/dist/types/core/tooltip/use-tooltip.d.ts +0 -547
  369. package/dist/types/core/tooltip/use-tooltip.d.ts.map +0 -1
  370. package/dist/types/core/top-bar/nav-icon-item/nav-icon-item-anchor.d.ts.map +0 -1
  371. package/dist/types/core/top-bar/nav-icon-item/nav-icon-item-anchor.stories.d.ts.map +0 -1
  372. package/dist/types/helpers/calculatePopoverPosition.d.ts +0 -26
  373. package/dist/types/helpers/calculatePopoverPosition.d.ts.map +0 -1
  374. package/dist/types/icons/elipsis.d.ts.map +0 -1
  375. /package/dist/types/{core → deprecated}/menu/__tests__/menu-context.test.d.ts +0 -0
  376. /package/dist/types/{core → deprecated}/menu/__tests__/menu-popover.test.d.ts +0 -0
  377. /package/dist/types/{core → deprecated}/menu/__tests__/menu.atoms.tests.d.ts +0 -0
  378. /package/dist/types/{core → deprecated}/menu/__tests__/menu.molecules.test.d.ts +0 -0
  379. /package/dist/types/{core → deprecated}/menu/__tests__/use-menu.test.d.ts +0 -0
@@ -0,0 +1,19 @@
1
+ import type { KeyboardEvent } from 'react';
2
+ interface HandleArrowNavigationOptions {
3
+ /**
4
+ * A string containing one or more selectors to match. This string must be a valid CSS
5
+ * selector string; if it isn't, a SyntaxError exception is thrown. Defaults to selecting
6
+ * all `<a>` and `<button>` elements.
7
+ */
8
+ selectors?: string;
9
+ }
10
+ /**
11
+ * Handles arrow key events in order to move focus between a collection of elements. Elements that are
12
+ * focused are also scrolled into view. Focus will not be moved beyond the first or last element in the
13
+ * collection.
14
+ *
15
+ * The `currentTarget` of the event is assumed to be the common ancestor of the navigable elements.
16
+ */
17
+ export declare function handleArrowNavigation(event: KeyboardEvent<HTMLElement>, { selectors }?: HandleArrowNavigationOptions): void;
18
+ export {};
19
+ //# sourceMappingURL=handle-arrow-navigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handle-arrow-navigation.d.ts","sourceRoot":"/","sources":["utils/keyboard-navigation/handle-arrow-navigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,UAAU,4BAA4B;IACpC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,EAEjC,EAAE,SAAuB,EAAE,GAAE,4BAAiC,QA0C/D"}
@@ -0,0 +1,8 @@
1
+ import type { KeyboardEvent } from 'react';
2
+ /**
3
+ * Activates link elements when the Space key is pressed on them. This is useful when facilitating keyboard
4
+ * interaction across a group of items (e.g., menu items in a menu) so that all items, whether they are buttons
5
+ * or links, can be activated with the same keys.
6
+ */
7
+ export declare function handleLinkActivation(event: KeyboardEvent<HTMLElement>): void;
8
+ //# sourceMappingURL=handle-link-activation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handle-link-activation.d.ts","sourceRoot":"/","sources":["utils/keyboard-navigation/handle-link-activation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,QAUrE"}
@@ -0,0 +1,3 @@
1
+ export * from './handle-arrow-navigation';
2
+ export * from './handle-link-activation';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["utils/keyboard-navigation/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=build-anchor-positioning-css.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-anchor-positioning-css.test.d.ts","sourceRoot":"/","sources":["utils/popover/__tests__/build-anchor-positioning-css.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=get-popover-trigger-props.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-popover-trigger-props.test.d.ts","sourceRoot":"/","sources":["utils/popover/__tests__/get-popover-trigger-props.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare const supportedPopoverPlacements: ["top-start", "top", "top-end", "right-start", "right", "right-end", "bottom-start", "bottom", "bottom-end", "left-start", "left", "left-end"];
2
+ //# sourceMappingURL=map-placement-to-css.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-placement-to-css.test.d.ts","sourceRoot":"/","sources":["utils/popover/__tests__/map-placement-to-css.test.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,0BAA0B,gJAaA,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=popover.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.test.d.ts","sourceRoot":"/","sources":["utils/popover/__tests__/popover.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import type { PopoverPlacement } from './map-placement-to-css';
2
+ interface BuildAnchorPositioningCSSInput {
3
+ anchorElementId: string;
4
+ gap: string;
5
+ placement: PopoverPlacement;
6
+ positionedElementId: string;
7
+ positionTryFallbacks: string;
8
+ }
9
+ /**
10
+ * Returns a CSS string that contains styles for an anchor and its positioned element via the
11
+ * specified element IDs. The IDs are escaped using
12
+ * [CSS.escape](https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape_static).
13
+ */
14
+ export declare function buildAnchorPositioningCSS({ anchorElementId, placement, positionedElementId, positionTryFallbacks, gap, }: BuildAnchorPositioningCSSInput): string;
15
+ export {};
16
+ //# sourceMappingURL=build-anchor-positioning-css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-anchor-positioning-css.d.ts","sourceRoot":"/","sources":["utils/popover/build-anchor-positioning-css.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAE9D,UAAU,8BAA8B;IACtC,eAAe,EAAE,MAAM,CAAA;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,gBAAgB,CAAA;IAC3B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,oBAAoB,EAAE,MAAM,CAAA;CAC7B;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,eAAe,EACf,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACpB,GAAG,GACJ,EAAE,8BAA8B,GAAG,MAAM,CAkBzC"}
@@ -0,0 +1,26 @@
1
+ export interface GetPopoverTriggerPropsInput {
2
+ id: string;
3
+ popoverTarget: string;
4
+ popoverTargetAction: 'hide' | 'show' | 'toggle';
5
+ }
6
+ export interface GetPopoverTriggerPropsOutput {
7
+ id: string;
8
+ popovertarget: string;
9
+ popovertargetaction: 'hide' | 'show' | 'toggle';
10
+ }
11
+ /**
12
+ * React 18 does not support the HTML attributes involved in the
13
+ * [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API). This helper
14
+ * provides a way for consumers to use them without incurring TS prop type errors or React
15
+ * development runtime errors.
16
+ *
17
+ * The input properties match React 19's type definitions for the popover attributes. See
18
+ * [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/69670/files#diff-d0d8d4879e505e2bd1813a8e662eeedbdf85c1fae8b76c4dff609bb5bcfe3a98R128)
19
+ *
20
+ * The output properties are all lowercase so that React 18 will pass them through to the
21
+ * underlying DOM element without throwing a runtime error about unrecognised attributes.
22
+ *
23
+ * @returns popover trigger attributes for use in React 18 consumers.
24
+ */
25
+ export declare function getPopoverTriggerProps({ id, popoverTarget, popoverTargetAction, }: GetPopoverTriggerPropsInput): GetPopoverTriggerPropsOutput;
26
+ //# sourceMappingURL=get-popover-trigger-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-popover-trigger-props.d.ts","sourceRoot":"/","sources":["utils/popover/get-popover-trigger-props.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAA;IACV,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;CAChD;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAA;IACV,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAA;CAChD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,EAAE,EACF,aAAa,EACb,mBAAmB,GACpB,EAAE,2BAA2B,GAAG,4BAA4B,CAM5D"}
@@ -0,0 +1,5 @@
1
+ export * from './get-popover-trigger-props';
2
+ export * from './popover';
3
+ export * from './styles';
4
+ export type { PopoverPlacement } from './map-placement-to-css';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["utils/popover/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AAExB,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA"}
@@ -0,0 +1,9 @@
1
+ export type PopoverPlacement = 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end';
2
+ /**
3
+ * Returns a CSS string that defines the necessary CSS properties for a positioned element
4
+ * to be placed according to the specified `placement` value.
5
+ *
6
+ * @param placement the placement of the positioned element w.r.t. to its anchor
7
+ */
8
+ export declare function mapPlacementToCSS(placement: PopoverPlacement, gap: string): string;
9
+ //# sourceMappingURL=map-placement-to-css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-placement-to-css.d.ts","sourceRoot":"/","sources":["utils/popover/map-placement-to-css.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GACxB,WAAW,GACX,KAAK,GACL,SAAS,GACT,aAAa,GACb,OAAO,GACP,WAAW,GACX,cAAc,GACd,QAAQ,GACR,YAAY,GACZ,YAAY,GACZ,MAAM,GACN,UAAU,CAAA;AAEd;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAmFlF"}
@@ -0,0 +1,83 @@
1
+ import { getPopoverTriggerProps } from './get-popover-trigger-props';
2
+ import type { HTMLAttributes, ReactNode } from 'react';
3
+ import type { PopoverPlacement } from './map-placement-to-css';
4
+ export interface PopoverProps extends HTMLAttributes<HTMLDivElement> {
5
+ /** The ID of the element this popover to which this popover should be anchored. */
6
+ anchorId: string;
7
+ /**
8
+ * The border radius of the popover. Can be any valid CSS length, though a border radius
9
+ * CSS variable is recommended. By default, the radius will be zero.
10
+ */
11
+ borderRadius?: string;
12
+ /** The content of the popover. */
13
+ children: ReactNode;
14
+ /** The visual elevation of the popover. Determines how much shadow the popover casts. */
15
+ elevation?: 'none' | 'xl';
16
+ /**
17
+ * The gap between the popover and the anchor. Can be any valid CSS length, though `--spacing-*`
18
+ * CSS variables are recommended. By default, the gap will be zero.
19
+ */
20
+ gap?: string;
21
+ /**
22
+ * The ID of this popover. This is mandatory because the popover's trigger will need to reference
23
+ * this in it's `popovertarget` attribute.
24
+ */
25
+ id: string;
26
+ /**
27
+ * The maximum height of the popover. Can be any valid CSS length, though `--size-*`
28
+ * CSS variables are recommended. By default, the popover will be as tall as its content requires.
29
+ */
30
+ maxHeight?: string;
31
+ /**
32
+ * The maximum width of the popover. Can be any valid CSS length, though `--size-*`
33
+ * CSS variables are recommended. By default, the popover will be as wide as its content requires.
34
+ */
35
+ maxWidth?: string;
36
+ /**
37
+ * The "kind" of popover this should be. See
38
+ * [popover](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/popover)
39
+ * for more details.
40
+ *
41
+ * For browsers that do not support `hint`, they will fallback to `manual`.
42
+ *
43
+ * A special value of `null` allows the popover to not be a popover. This can be useful when you need
44
+ * to display a popover element permanently in the UI (such as in documentation or example code). Just
45
+ * note that the absence of the `popover` attribute means the element will not be displayed within the
46
+ * top-layer, so may be susceptible to z-index issues.
47
+ */
48
+ popover?: 'auto' | 'hint' | 'manual' | null;
49
+ /** Where the popover should be placed relative to its anchor. */
50
+ placement: PopoverPlacement;
51
+ /**
52
+ * Fallback positions for the popover that should be tried when it would otherwise overflow the viewport.
53
+ * See [position-try-fallbacks](https://developer.mozilla.org/en-US/docs/Web/CSS/position-try-fallbacks)
54
+ * for more details. Note that the [polyfill](https://anchor-positioning.oddbird.net/) we rely on for
55
+ * anchor positioning in some browsers will not play nicely with all available options.
56
+ *
57
+ * Typically, "flip-block", "flip-inline" or both will be sufficient for most use cases.
58
+ * Defaults to "none".
59
+ */
60
+ positionTryFallbacks?: string;
61
+ }
62
+ /**
63
+ * A simple popover that can be positioned relative to an anchor. It is designed to work with the
64
+ * global [popover](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/popover)
65
+ * attribute. Positioning is facilitated using
66
+ * [CSS Anchor Positioning](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_anchor_positioning),
67
+ * which currently requires a polyfill in some browsers.
68
+ *
69
+ * If custom styles need to be applied to the Popover element itself, it's important to ensure a
70
+ * custom `display` property is only set when the popover is open (via the `:popover-open`
71
+ * pseudo-class), otherwise the custom `display` property will override the browser's default handling
72
+ * of the popover's display.
73
+ *
74
+ * **note:** When working with Popover directly (uncommon) within a React 18 consumer, the
75
+ * `getPopoverTriggerProps` helper will be useful to avoid type errors or development runtime errors
76
+ * about the [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) attributes used
77
+ * to show/hide/toggle popovers.
78
+ */
79
+ export declare function Popover({ anchorId, borderRadius, children, className, elevation, gap, id, maxHeight, maxWidth, placement, positionTryFallbacks, popover, style, ...rest }: PopoverProps): import("react/jsx-runtime").JSX.Element;
80
+ export declare namespace Popover {
81
+ var getTriggerProps: typeof getPopoverTriggerProps;
82
+ }
83
+ //# sourceMappingURL=popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"/","sources":["utils/popover/popover.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAGpE,OAAO,KAAK,EAAiB,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAE9D,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAClE,mFAAmF;IACnF,QAAQ,EAAE,MAAM,CAAA;IAChB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kCAAkC;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB,yFAAyF;IACzF,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAA;IAC3C,iEAAiE;IACjE,SAAS,EAAE,gBAAgB,CAAA;IAC3B;;;;;;;;OAQG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,SAAkB,EAClB,GAAS,EACT,EAAE,EACF,SAAS,EACT,QAAQ,EACR,SAAS,EACT,oBAA6B,EAC7B,OAAgB,EAChB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,YAAY,2CAgDd;yBA/De,OAAO"}
@@ -0,0 +1,65 @@
1
+ import { Popover } from './popover';
2
+ import type { StoryObj } from '@storybook/react-vite';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Popover;
6
+ argTypes: {
7
+ children: {
8
+ control: false;
9
+ };
10
+ };
11
+ parameters: {
12
+ layout: string;
13
+ };
14
+ render: (args: import("./popover").PopoverProps) => import("react/jsx-runtime").JSX.Element;
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof meta>;
18
+ /**
19
+ * Popovers come with no styling: no background, no padding, no border. They are intended to be a blank
20
+ * canvas on which to build a more visually attractive UI element, such as a tooltip or a menu.
21
+ *
22
+ * In the examples here, we're using a simple styled element as the content of the popover in order to
23
+ * help communicate the behaviour and capabilities of the popover.
24
+ */
25
+ export declare const Example: Story;
26
+ /**
27
+ * The distance, or gap, between the popover and its anchor can be customised. By default, there will be
28
+ * no gap, but many use cases will call for a non-zero gap. While the `gap` prop accepts any valid CSS
29
+ * length, it should typically be a `--spacing-*` CSS variable.
30
+ */
31
+ export declare const Gap: Story;
32
+ /**
33
+ * There are a number of placements available for popovers relative to their anchor. They are shown below.
34
+ */
35
+ export declare const Placements: Story;
36
+ /**
37
+ * The border radius of the popover element can be adjusted with the `borderRadius` prop. While
38
+ * this prop accepts any valid CSS length, it should typically be a border-radius-related CSS
39
+ * variable such as `--border-radius-xl` or `--comp-menu-border-radius`.
40
+ */
41
+ export declare const BorderRadius: Story;
42
+ /**
43
+ * By default, popovers will grow to the width of their content. To constrain this behaviour, a maximum
44
+ * width can be specified. Content should generally adapt to the constrained width by wrapping rather
45
+ * than overflowing.
46
+ *
47
+ * While the maximum width can be defined using any valid CSS length, the value should typically be a
48
+ * `--size-*` CSS variable.
49
+ */
50
+ export declare const MaxWidth: Story;
51
+ /**
52
+ * Similarly, popovers will grow, by default, to the height of their content. To constrain this behaviour,
53
+ * a maximum height can also be specified, at which point the popover will scroll the content.
54
+ *
55
+ * As with the maximum width, the maximum height can be defined using any valid CSS length, but the value
56
+ * should typically be a `--size-*` CSS variable.
57
+ */
58
+ export declare const MaxHeight: Story;
59
+ /**
60
+ * Since popovers are an elevated, non-modal material, it's common for them to cast a shadow on the
61
+ * UI beneath them. This can be achieved using the `elevation` prop. There's currently two supported
62
+ * elevations: `none` and `xl`.
63
+ */
64
+ export declare const Elevation: Story;
65
+ //# sourceMappingURL=popover.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.stories.d.ts","sourceRoot":"/","sources":["utils/popover/popover.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAInC,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAQ3D,QAAA,MAAM,IAAI;;;;;;;;;;;;CAiCsB,CAAA;AAEhC,eAAe,IAAI,CAAA;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,GAAG,EAAE,KAKjB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAyDxB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,KAK1B,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const elPopover: import("@linaria/core").LinariaClassName;
2
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"/","sources":["utils/popover/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,0CAyBrB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reapit/elements",
3
- "version": "5.0.0-beta.39",
3
+ "version": "5.0.0-beta.40",
4
4
  "description": "A collection of React components and utilities for building apps for Reapit Marketplace",
5
5
  "homepage": "https://github.com/reapit/elements#readme",
6
6
  "bugs": {
@@ -24,7 +24,14 @@
24
24
  "./src/*/index.js"
25
25
  ],
26
26
  "import": "./src/*"
27
- }
27
+ },
28
+ "#*": [
29
+ "./*",
30
+ "./*.ts",
31
+ "./*.tsx",
32
+ "./*.js",
33
+ "./*.jsx"
34
+ ]
28
35
  },
29
36
  "exports": {
30
37
  ".": {
@@ -91,7 +98,8 @@
91
98
  },
92
99
  "dependencies": {
93
100
  "@linaria/core": "^6.3.0",
94
- "@linaria/react": "^6.3.0"
101
+ "@linaria/react": "^6.3.0",
102
+ "@oddbird/css-anchor-positioning": "^0.6.1"
95
103
  },
96
104
  "devDependencies": {
97
105
  "@babel/core": "^7.27.4",
@@ -100,14 +108,14 @@
100
108
  "@linaria/postcss-linaria": "^6.3.0",
101
109
  "@mdx-js/react": "^3.0.1",
102
110
  "@playwright/test": "^1.43.0",
103
- "@storybook/addon-a11y": "^9.0.15",
104
- "@storybook/addon-designs": "^10.0.1",
105
- "@storybook/addon-docs": "^9.0.15",
106
- "@storybook/addon-links": "^9.0.15",
107
- "@storybook/cli": "^9.0.15",
111
+ "@storybook/addon-a11y": "^9.1.0",
112
+ "@storybook/addon-designs": "^10.0.2",
113
+ "@storybook/addon-docs": "^9.1.0",
114
+ "@storybook/addon-links": "^9.1.0",
115
+ "@storybook/cli": "^9.1.0",
108
116
  "@storybook/icons": "^1.4.0",
109
- "@storybook/react-dom-shim": "^9.0.15",
110
- "@storybook/react-vite": "^9.0.15",
117
+ "@storybook/react-dom-shim": "^9.1.0",
118
+ "@storybook/react-vite": "^9.1.0",
111
119
  "@testing-library/dom": "^10.4.0",
112
120
  "@testing-library/jest-dom": "^6.6.3",
113
121
  "@testing-library/react": "^16.3.0",
@@ -119,7 +127,7 @@
119
127
  "@types/react-syntax-highlighter": "^15.5.11",
120
128
  "@typescript-eslint/eslint-plugin": "^7.6.0",
121
129
  "@typescript-eslint/parser": "^7.6.0",
122
- "@vitejs/plugin-react": "^4.6.0",
130
+ "@vitejs/plugin-react": "^4.7.0",
123
131
  "@vitest/coverage-v8": "^3.2.4",
124
132
  "@wyw-in-js/babel-preset": "^0.7.0",
125
133
  "@wyw-in-js/vite": "^0.7.0",
@@ -136,7 +144,7 @@
136
144
  "eslint-plugin-prettier": "^5.1.3",
137
145
  "eslint-plugin-react": "^7.34.1",
138
146
  "eslint-plugin-react-hooks": "^4.6.0",
139
- "eslint-plugin-storybook": "^9.0.15",
147
+ "eslint-plugin-storybook": "^9.1.0",
140
148
  "happy-dom": "^18.0.1",
141
149
  "move-file-cli": "^3.0.0",
142
150
  "postcss": "^8.5.6",
@@ -149,12 +157,12 @@
149
157
  "rollup": "^4.14.1",
150
158
  "rollup-plugin-css-only": "^4.5.2",
151
159
  "snyk": "^1.1288.0",
152
- "storybook": "^9.0.15",
160
+ "storybook": "^9.1.0",
153
161
  "style-dictionary": "^4.3.3",
154
162
  "stylelint": "^16.21.0",
155
163
  "ts-node": "^10.9.2",
156
- "typescript": "^5.8.3",
157
- "vite": "^7.0.1",
164
+ "typescript": "^5.9.2",
165
+ "vite": "^7.0.6",
158
166
  "vite-plugin-svgr": "^4.3.0",
159
167
  "vitest": "^3.2.4"
160
168
  },