intergalactic 15.115.0-prerelease.0 → 15.116.0-prerelease.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 (407) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/accordion/lib/cjs/Accordion.js +9 -9
  3. package/accordion/lib/es6/Accordion.js +9 -9
  4. package/accordion/package.json +1 -1
  5. package/animation/lib/cjs/Animation.js +11 -11
  6. package/animation/lib/cjs/Collapse.js +28 -28
  7. package/animation/lib/cjs/FadeInOut.js +28 -28
  8. package/animation/lib/cjs/Scale.js +28 -28
  9. package/animation/lib/cjs/Slide.js +28 -28
  10. package/animation/lib/cjs/Transform.js +28 -28
  11. package/animation/lib/es6/Animation.js +11 -11
  12. package/animation/lib/es6/Collapse.js +28 -28
  13. package/animation/lib/es6/FadeInOut.js +28 -28
  14. package/animation/lib/es6/Scale.js +28 -28
  15. package/animation/lib/es6/Slide.js +28 -28
  16. package/animation/lib/es6/Transform.js +28 -28
  17. package/animation/package.json +1 -1
  18. package/badge/lib/cjs/Badge.js +6 -6
  19. package/badge/lib/es6/Badge.js +6 -6
  20. package/badge/package.json +1 -1
  21. package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
  22. package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
  23. package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
  24. package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
  25. package/base-trigger/lib/es6/BaseTrigger.js +18 -18
  26. package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
  27. package/base-trigger/lib/es6/FilterTrigger.js +7 -7
  28. package/base-trigger/lib/es6/LinkTrigger.js +12 -12
  29. package/base-trigger/package.json +1 -1
  30. package/breadcrumbs/lib/cjs/Breadcrumbs.js +8 -8
  31. package/breadcrumbs/lib/es6/Breadcrumbs.js +8 -8
  32. package/breadcrumbs/package.json +1 -1
  33. package/breakpoints/package.json +1 -1
  34. package/button/lib/cjs/component/Button/Button.js +27 -27
  35. package/button/lib/cjs/component/ButtonLink/ButtonLink.js +20 -20
  36. package/button/lib/es6/component/Button/Button.js +27 -27
  37. package/button/lib/es6/component/ButtonLink/ButtonLink.js +20 -20
  38. package/button/package.json +1 -1
  39. package/card/lib/cjs/Card.js +6 -6
  40. package/card/lib/es6/Card.js +6 -6
  41. package/card/package.json +1 -1
  42. package/carousel/lib/cjs/Carousel.js +21 -21
  43. package/carousel/lib/es6/Carousel.js +21 -21
  44. package/carousel/package.json +1 -1
  45. package/checkbox/lib/cjs/Checkbox.js +18 -18
  46. package/checkbox/lib/es6/Checkbox.js +18 -18
  47. package/checkbox/package.json +1 -1
  48. package/color-picker/lib/cjs/ColorPicker.js +24 -24
  49. package/color-picker/lib/cjs/PaletteManager.js +24 -24
  50. package/color-picker/lib/cjs/components/InputColor.js +24 -24
  51. package/color-picker/lib/cjs/components/Item.js +5 -0
  52. package/color-picker/lib/cjs/components/Item.js.map +1 -1
  53. package/color-picker/lib/es6/ColorPicker.js +24 -24
  54. package/color-picker/lib/es6/PaletteManager.js +24 -24
  55. package/color-picker/lib/es6/components/InputColor.js +24 -24
  56. package/color-picker/lib/es6/components/Item.js +5 -0
  57. package/color-picker/lib/es6/components/Item.js.map +1 -1
  58. package/color-picker/package.json +1 -1
  59. package/components.json +73 -73
  60. package/core/package.json +1 -1
  61. package/counter/lib/cjs/Counter.js +11 -11
  62. package/counter/lib/es6/Counter.js +11 -11
  63. package/counter/package.json +1 -1
  64. package/d3-chart/lib/cjs/Area.js +11 -11
  65. package/d3-chart/lib/cjs/Axis.js +14 -14
  66. package/d3-chart/lib/cjs/Bar.js +16 -16
  67. package/d3-chart/lib/cjs/Bubble.js +12 -12
  68. package/d3-chart/lib/cjs/CompactHorizontalBar.js +16 -16
  69. package/d3-chart/lib/cjs/Donut.js +9 -9
  70. package/d3-chart/lib/cjs/Dots.js +8 -8
  71. package/d3-chart/lib/cjs/HorizontalBar.js +16 -16
  72. package/d3-chart/lib/cjs/Hover.js +3 -3
  73. package/d3-chart/lib/cjs/Line.js +9 -9
  74. package/d3-chart/lib/cjs/Plot.js +3 -3
  75. package/d3-chart/lib/cjs/Radar.js +19 -19
  76. package/d3-chart/lib/cjs/RadialTree.js +12 -12
  77. package/d3-chart/lib/cjs/Reference.js +12 -12
  78. package/d3-chart/lib/cjs/ScatterPlot.js +9 -9
  79. package/d3-chart/lib/cjs/Tooltip.js +9 -9
  80. package/d3-chart/lib/cjs/Venn.js +9 -9
  81. package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
  82. package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
  83. package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  84. package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  85. package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  86. package/d3-chart/lib/es6/Area.js +11 -11
  87. package/d3-chart/lib/es6/Axis.js +14 -14
  88. package/d3-chart/lib/es6/Bar.js +16 -16
  89. package/d3-chart/lib/es6/Bubble.js +12 -12
  90. package/d3-chart/lib/es6/CompactHorizontalBar.js +16 -16
  91. package/d3-chart/lib/es6/Donut.js +9 -9
  92. package/d3-chart/lib/es6/Dots.js +8 -8
  93. package/d3-chart/lib/es6/HorizontalBar.js +16 -16
  94. package/d3-chart/lib/es6/Hover.js +3 -3
  95. package/d3-chart/lib/es6/Line.js +9 -9
  96. package/d3-chart/lib/es6/Plot.js +3 -3
  97. package/d3-chart/lib/es6/Radar.js +19 -19
  98. package/d3-chart/lib/es6/RadialTree.js +12 -12
  99. package/d3-chart/lib/es6/Reference.js +12 -12
  100. package/d3-chart/lib/es6/ScatterPlot.js +9 -9
  101. package/d3-chart/lib/es6/Tooltip.js +9 -9
  102. package/d3-chart/lib/es6/Venn.js +9 -9
  103. package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
  104. package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
  105. package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  106. package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  107. package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  108. package/d3-chart/package.json +1 -1
  109. package/data-table/lib/cjs/Body.js +3 -3
  110. package/data-table/lib/cjs/DataTable.js +36 -36
  111. package/data-table/lib/es6/Body.js +3 -3
  112. package/data-table/lib/es6/DataTable.js +36 -36
  113. package/data-table/package.json +1 -1
  114. package/date-picker/lib/cjs/components/Calendar.js +21 -21
  115. package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +29 -29
  116. package/date-picker/lib/cjs/components/InputTrigger.js +29 -29
  117. package/date-picker/lib/cjs/components/PickerAbstract.js +29 -29
  118. package/date-picker/lib/cjs/components/RangePickerAbstract.js +29 -29
  119. package/date-picker/lib/es6/components/Calendar.js +21 -21
  120. package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +29 -29
  121. package/date-picker/lib/es6/components/InputTrigger.js +29 -29
  122. package/date-picker/lib/es6/components/PickerAbstract.js +29 -29
  123. package/date-picker/lib/es6/components/RangePickerAbstract.js +29 -29
  124. package/date-picker/package.json +1 -1
  125. package/divider/lib/cjs/Divider.js +10 -10
  126. package/divider/lib/es6/Divider.js +10 -10
  127. package/divider/package.json +1 -1
  128. package/dot/lib/cjs/Dot.js +10 -10
  129. package/dot/lib/es6/Dot.js +10 -10
  130. package/dot/package.json +1 -1
  131. package/drag-and-drop/lib/cjs/DragAndDrop.js +16 -16
  132. package/drag-and-drop/lib/es6/DragAndDrop.js +16 -16
  133. package/drag-and-drop/package.json +1 -1
  134. package/dropdown/index.d.ts +1 -1
  135. package/dropdown/lib/cjs/AbstractDropdown.js +36 -31
  136. package/dropdown/lib/cjs/AbstractDropdown.js.map +1 -1
  137. package/dropdown/lib/cjs/Dropdown.js +15 -15
  138. package/dropdown/lib/cjs/index.d.js.map +1 -1
  139. package/dropdown/lib/es6/AbstractDropdown.js +36 -31
  140. package/dropdown/lib/es6/AbstractDropdown.js.map +1 -1
  141. package/dropdown/lib/es6/Dropdown.js +15 -15
  142. package/dropdown/lib/es6/index.d.js.map +1 -1
  143. package/dropdown/lib/types/index.d.ts +1 -1
  144. package/dropdown/package.json +1 -1
  145. package/dropdown-menu/index.d.ts +2 -1
  146. package/dropdown-menu/lib/cjs/DropdownMenu.js +54 -34
  147. package/dropdown-menu/lib/cjs/DropdownMenu.js.map +1 -1
  148. package/dropdown-menu/lib/cjs/index.d.js.map +1 -1
  149. package/dropdown-menu/lib/es6/DropdownMenu.js +54 -34
  150. package/dropdown-menu/lib/es6/DropdownMenu.js.map +1 -1
  151. package/dropdown-menu/lib/es6/index.d.js.map +1 -1
  152. package/dropdown-menu/lib/types/index.d.ts +2 -1
  153. package/dropdown-menu/package.json +1 -1
  154. package/ellipsis/lib/cjs/Ellipsis.js +10 -10
  155. package/ellipsis/lib/es6/Ellipsis.js +10 -10
  156. package/ellipsis/package.json +1 -1
  157. package/errors/lib/cjs/Error.js +9 -9
  158. package/errors/lib/es6/Error.js +9 -9
  159. package/errors/package.json +1 -1
  160. package/feature-popover/index.d.ts +10 -1
  161. package/feature-popover/lib/cjs/FeaturePopover.js +26 -19
  162. package/feature-popover/lib/cjs/FeaturePopover.js.map +1 -1
  163. package/feature-popover/lib/cjs/index.d.js.map +1 -1
  164. package/feature-popover/lib/es6/FeaturePopover.js +26 -19
  165. package/feature-popover/lib/es6/FeaturePopover.js.map +1 -1
  166. package/feature-popover/lib/es6/index.d.js.map +1 -1
  167. package/feature-popover/lib/types/index.d.ts +10 -1
  168. package/feature-popover/package.json +1 -1
  169. package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
  170. package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +3 -3
  171. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +2 -2
  172. package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +6 -6
  173. package/feedback-form/lib/es6/FeedbackForm.js +7 -7
  174. package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +3 -3
  175. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +2 -2
  176. package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +6 -6
  177. package/feedback-form/package.json +1 -1
  178. package/flags/lib/cjs/Flags.js +3 -3
  179. package/flags/lib/es6/Flags.js +3 -3
  180. package/flags/lib/sprites/sprite@1x.css +256 -256
  181. package/flags/lib/sprites/sprite@2x.css +257 -257
  182. package/flags/package.json +1 -1
  183. package/flex-box/lib/cjs/Box/useBox.js +3 -3
  184. package/flex-box/lib/cjs/Flex/useFlex.js +3 -3
  185. package/flex-box/lib/cjs/invalid-state-box/InvalidStateBox.js +2 -2
  186. package/flex-box/lib/es6/Box/useBox.js +3 -3
  187. package/flex-box/lib/es6/Flex/useFlex.js +3 -3
  188. package/flex-box/lib/es6/invalid-state-box/InvalidStateBox.js +2 -2
  189. package/flex-box/package.json +1 -1
  190. package/format-text/lib/cjs/FormatText.js +5 -5
  191. package/format-text/lib/es6/FormatText.js +5 -5
  192. package/format-text/package.json +1 -1
  193. package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
  194. package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
  195. package/fullscreen-modal/package.json +1 -1
  196. package/grid/lib/cjs/Grid.js +114 -114
  197. package/grid/lib/es6/Grid.js +114 -114
  198. package/grid/package.json +1 -1
  199. package/i18n-unplugin/package.json +1 -1
  200. package/icon/color/Confluence/l/index.js +4 -4
  201. package/icon/color/Confluence/l/index.mjs +4 -4
  202. package/icon/color/Confluence/m/index.js +4 -4
  203. package/icon/color/Confluence/m/index.mjs +4 -4
  204. package/icon/color/MetaColored/l/index.js +4 -4
  205. package/icon/color/MetaColored/l/index.mjs +4 -4
  206. package/icon/color/MetaColored/m/index.js +4 -4
  207. package/icon/color/MetaColored/m/index.mjs +4 -4
  208. package/icon/color/MicrosoftOffice/l/index.js +10 -10
  209. package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
  210. package/icon/color/MicrosoftOffice/m/index.js +10 -10
  211. package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
  212. package/icon/lib/cjs/Icon.js +5 -5
  213. package/icon/lib/es6/Icon.js +5 -5
  214. package/icon/package.json +1 -1
  215. package/icon/pay/Discover/l/index.js +1 -1
  216. package/icon/pay/Discover/l/index.mjs +1 -1
  217. package/icon/pay/Discover/m/index.js +1 -1
  218. package/icon/pay/Discover/m/index.mjs +1 -1
  219. package/icon/pay/JCB/l/index.js +10 -10
  220. package/icon/pay/JCB/l/index.mjs +10 -10
  221. package/icon/pay/JCB/m/index.js +10 -10
  222. package/icon/pay/JCB/m/index.mjs +10 -10
  223. package/icon/pay/Visa/l/index.js +2 -2
  224. package/icon/pay/Visa/l/index.mjs +2 -2
  225. package/icon/pay/Visa/m/index.js +2 -2
  226. package/icon/pay/Visa/m/index.mjs +2 -2
  227. package/illustration/lib/cjs/index.js +1 -1
  228. package/illustration/lib/es6/index.js +1 -1
  229. package/illustration/package.json +1 -1
  230. package/inline-edit/lib/cjs/InlineEdit.js +4 -4
  231. package/inline-edit/lib/es6/InlineEdit.js +4 -4
  232. package/inline-edit/package.json +1 -1
  233. package/inline-input/lib/cjs/InlineInput.js +14 -14
  234. package/inline-input/lib/es6/InlineInput.js +14 -14
  235. package/inline-input/package.json +1 -1
  236. package/input/lib/cjs/Input.js +17 -17
  237. package/input/lib/es6/Input.js +17 -17
  238. package/input/package.json +1 -1
  239. package/input-mask/lib/cjs/InputMask.js +6 -6
  240. package/input-mask/lib/es6/InputMask.js +6 -6
  241. package/input-mask/package.json +1 -1
  242. package/input-number/lib/cjs/InputNumber.js +9 -9
  243. package/input-number/lib/es6/InputNumber.js +9 -9
  244. package/input-number/package.json +1 -1
  245. package/input-tags/lib/cjs/InputTags.js +12 -12
  246. package/input-tags/lib/es6/InputTags.js +12 -12
  247. package/input-tags/package.json +1 -1
  248. package/link/lib/cjs/Link.js +12 -12
  249. package/link/lib/es6/Link.js +12 -12
  250. package/link/package.json +1 -1
  251. package/mini-chart/component/score/Score.d.ts +4 -0
  252. package/mini-chart/lib/cjs/component/score/Donut.js +12 -10
  253. package/mini-chart/lib/cjs/component/score/Donut.js.map +1 -1
  254. package/mini-chart/lib/cjs/component/score/Line.js +24 -19
  255. package/mini-chart/lib/cjs/component/score/Line.js.map +1 -1
  256. package/mini-chart/lib/cjs/component/score/Score.js.map +1 -1
  257. package/mini-chart/lib/cjs/component/score/line.shadow.css +1 -1
  258. package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
  259. package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
  260. package/mini-chart/lib/es6/component/score/Donut.js +12 -10
  261. package/mini-chart/lib/es6/component/score/Donut.js.map +1 -1
  262. package/mini-chart/lib/es6/component/score/Line.js +24 -19
  263. package/mini-chart/lib/es6/component/score/Line.js.map +1 -1
  264. package/mini-chart/lib/es6/component/score/Score.js.map +1 -1
  265. package/mini-chart/lib/es6/component/score/line.shadow.css +1 -1
  266. package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
  267. package/mini-chart/lib/es6/component/trend/Line.js +7 -7
  268. package/mini-chart/lib/types/component/score/Score.d.ts +4 -0
  269. package/mini-chart/package.json +1 -1
  270. package/modal/lib/cjs/Modal.js +8 -8
  271. package/modal/lib/es6/Modal.js +8 -8
  272. package/modal/package.json +1 -1
  273. package/neighbor-location/package.json +1 -1
  274. package/notice/lib/cjs/Notice.js +14 -14
  275. package/notice/lib/es6/Notice.js +14 -14
  276. package/notice/package.json +1 -1
  277. package/notice-bubble/lib/cjs/NoticeBubble.js +15 -15
  278. package/notice-bubble/lib/es6/NoticeBubble.js +15 -15
  279. package/notice-bubble/package.json +1 -1
  280. package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
  281. package/notice-global/lib/es6/NoticeGlobal.js +11 -11
  282. package/notice-global/package.json +1 -1
  283. package/outside-click/package.json +1 -1
  284. package/package.json +1 -1
  285. package/pagination/lib/cjs/Pagination.js +10 -10
  286. package/pagination/lib/es6/Pagination.js +10 -10
  287. package/pagination/package.json +1 -1
  288. package/pills/lib/cjs/Pills.js +13 -13
  289. package/pills/lib/es6/Pills.js +13 -13
  290. package/pills/package.json +1 -1
  291. package/popper/lib/cjs/Popper.js +6 -6
  292. package/popper/lib/es6/Popper.js +6 -6
  293. package/popper/package.json +1 -1
  294. package/portal/package.json +1 -1
  295. package/product-head/lib/cjs/Info.js +4 -4
  296. package/product-head/lib/cjs/ProductHead.js +5 -5
  297. package/product-head/lib/cjs/Title.js +4 -4
  298. package/product-head/lib/es6/Info.js +4 -4
  299. package/product-head/lib/es6/ProductHead.js +5 -5
  300. package/product-head/lib/es6/Title.js +4 -4
  301. package/product-head/package.json +1 -1
  302. package/progress-bar/lib/cjs/ProgressBar.js +15 -15
  303. package/progress-bar/lib/es6/ProgressBar.js +15 -15
  304. package/progress-bar/package.json +1 -1
  305. package/radio/lib/cjs/Radio.js +16 -16
  306. package/radio/lib/es6/Radio.js +16 -16
  307. package/radio/package.json +1 -1
  308. package/scroll-area/lib/cjs/ScrollArea.js +21 -21
  309. package/scroll-area/lib/cjs/ScrollBar.js +6 -6
  310. package/scroll-area/lib/es6/ScrollArea.js +21 -21
  311. package/scroll-area/lib/es6/ScrollBar.js +6 -6
  312. package/scroll-area/package.json +1 -1
  313. package/select/lib/cjs/InputSearch.js +6 -6
  314. package/select/lib/cjs/Select.js +11 -19
  315. package/select/lib/cjs/Select.js.map +1 -1
  316. package/select/lib/es6/InputSearch.js +6 -6
  317. package/select/lib/es6/Select.js +11 -19
  318. package/select/lib/es6/Select.js.map +1 -1
  319. package/select/package.json +1 -1
  320. package/side-panel/lib/cjs/SidePanel.js +16 -16
  321. package/side-panel/lib/es6/SidePanel.js +16 -16
  322. package/side-panel/package.json +1 -1
  323. package/skeleton/lib/cjs/Charts/Area.js +9 -9
  324. package/skeleton/lib/cjs/Charts/Bar.js +9 -9
  325. package/skeleton/lib/cjs/Charts/Bubble.js +9 -9
  326. package/skeleton/lib/cjs/Charts/CompactHorizontalBar.js +9 -9
  327. package/skeleton/lib/cjs/Charts/Donut.js +9 -9
  328. package/skeleton/lib/cjs/Charts/Histogram.js +9 -9
  329. package/skeleton/lib/cjs/Charts/Line.js +9 -9
  330. package/skeleton/lib/cjs/Charts/RadialTree.js +9 -9
  331. package/skeleton/lib/cjs/Charts/ScatterPlot.js +9 -9
  332. package/skeleton/lib/cjs/Charts/Venn.js +9 -9
  333. package/skeleton/lib/cjs/Skeleton.js +8 -8
  334. package/skeleton/lib/es6/Charts/Area.js +9 -9
  335. package/skeleton/lib/es6/Charts/Bar.js +9 -9
  336. package/skeleton/lib/es6/Charts/Bubble.js +9 -9
  337. package/skeleton/lib/es6/Charts/CompactHorizontalBar.js +9 -9
  338. package/skeleton/lib/es6/Charts/Donut.js +9 -9
  339. package/skeleton/lib/es6/Charts/Histogram.js +9 -9
  340. package/skeleton/lib/es6/Charts/Line.js +9 -9
  341. package/skeleton/lib/es6/Charts/RadialTree.js +9 -9
  342. package/skeleton/lib/es6/Charts/ScatterPlot.js +9 -9
  343. package/skeleton/lib/es6/Charts/Venn.js +9 -9
  344. package/skeleton/lib/es6/Skeleton.js +8 -8
  345. package/skeleton/package.json +1 -1
  346. package/slider/lib/cjs/Slider.js +8 -8
  347. package/slider/lib/es6/Slider.js +8 -8
  348. package/slider/package.json +1 -1
  349. package/spin/lib/cjs/Spin.js +13 -13
  350. package/spin/lib/es6/Spin.js +13 -13
  351. package/spin/package.json +1 -1
  352. package/spin-container/lib/cjs/SpinContainer.js +8 -8
  353. package/spin-container/lib/es6/SpinContainer.js +8 -8
  354. package/spin-container/package.json +1 -1
  355. package/sticky/lib/cjs/Sticky.js +2 -2
  356. package/sticky/lib/es6/Sticky.js +2 -2
  357. package/sticky/package.json +1 -1
  358. package/switch/lib/cjs/Switch.js +21 -21
  359. package/switch/lib/es6/Switch.js +21 -21
  360. package/switch/package.json +1 -1
  361. package/tab-line/lib/cjs/TabLine.js +13 -13
  362. package/tab-line/lib/es6/TabLine.js +13 -13
  363. package/tab-line/package.json +1 -1
  364. package/tab-panel/lib/cjs/TabPanel.js +8 -8
  365. package/tab-panel/lib/es6/TabPanel.js +8 -8
  366. package/tab-panel/package.json +1 -1
  367. package/tag/lib/cjs/Tag.js +23 -23
  368. package/tag/lib/es6/Tag.js +23 -23
  369. package/tag/package.json +1 -1
  370. package/textarea/lib/cjs/Textarea.js +8 -8
  371. package/textarea/lib/es6/Textarea.js +8 -8
  372. package/textarea/package.json +1 -1
  373. package/time-picker/lib/cjs/TimePicker.js +12 -12
  374. package/time-picker/lib/es6/TimePicker.js +12 -12
  375. package/time-picker/package.json +1 -1
  376. package/tooltip/lib/cjs/Tooltip.js +10 -9
  377. package/tooltip/lib/cjs/Tooltip.js.map +1 -1
  378. package/tooltip/lib/es6/Tooltip.js +10 -9
  379. package/tooltip/lib/es6/Tooltip.js.map +1 -1
  380. package/tooltip/package.json +1 -1
  381. package/typography/lib/cjs/Blockquote.js +4 -4
  382. package/typography/lib/cjs/Hint.js +7 -7
  383. package/typography/lib/cjs/List.js +5 -5
  384. package/typography/lib/cjs/Text.js +34 -34
  385. package/typography/lib/es6/Blockquote.js +4 -4
  386. package/typography/lib/es6/Hint.js +7 -7
  387. package/typography/lib/es6/List.js +5 -5
  388. package/typography/lib/es6/Text.js +34 -34
  389. package/typography/package.json +1 -1
  390. package/utils/lib/ScreenReaderOnly.js +3 -2
  391. package/utils/lib/ScreenReaderOnly.js.map +1 -1
  392. package/utils/lib/ScreenReaderOnly.mjs +3 -2
  393. package/utils/lib/ScreenReaderOnly.mjs.map +1 -1
  394. package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.js +2 -2
  395. package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.mjs +2 -2
  396. package/utils/lib/injectStyle.js +1 -1
  397. package/utils/lib/injectStyle.mjs +1 -1
  398. package/utils/lib/use/useFocusLock.js +15 -11
  399. package/utils/lib/use/useFocusLock.js.map +1 -1
  400. package/utils/lib/use/useFocusLock.mjs +15 -11
  401. package/utils/lib/use/useFocusLock.mjs.map +1 -1
  402. package/widget-empty/lib/cjs/WidgetEmpty.js +5 -5
  403. package/widget-empty/lib/es6/WidgetEmpty.js +5 -5
  404. package/widget-empty/package.json +1 -1
  405. package/wizard/lib/cjs/Wizard.js +12 -12
  406. package/wizard/lib/es6/Wizard.js +12 -12
  407. package/wizard/package.json +1 -1
@@ -36,24 +36,24 @@ var _button = _interopRequireDefault(require("intergalactic/button"));
36
36
  var _typography = require("intergalactic/typography");
37
37
  var _excluded = ["className"];
38
38
  /*__reshadow-styles__:"./style/dropdown-menu.shadow.css"*/
39
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SDropdownMenuList_br0nj_gg_{max-height:240px;padding:var(--intergalactic-spacing-1x, 4px)0;position:relative;min-height:26px;min-width:32px;box-sizing:content-box;z-index:0;color:var(--intergalactic-text-primary, #191b23)}.___SDropdownMenuList_br0nj_gg_ .___SShadowHorizontal_br0nj_gg_:after,.___SDropdownMenuList_br0nj_gg_ .___SShadowHorizontal_br0nj_gg_:before{width:16px;height:100%;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_br0nj_gg_ .___SShadowHorizontal_br0nj_gg_._position_median_br0nj_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_br0nj_gg_ .___SShadowHorizontal_br0nj_gg_._position_median_br0nj_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_br0nj_gg_ .___SShadowHorizontal_br0nj_gg_._position_start_br0nj_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_br0nj_gg_ .___SShadowHorizontal_br0nj_gg_._position_end_br0nj_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_br0nj_gg_ .___SShadowVertical_br0nj_gg_:after,.___SDropdownMenuList_br0nj_gg_ .___SShadowVertical_br0nj_gg_:before{width:100%;height:16px;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_br0nj_gg_ .___SShadowVertical_br0nj_gg_._position_median_br0nj_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_br0nj_gg_ .___SShadowVertical_br0nj_gg_._position_median_br0nj_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_br0nj_gg_ .___SShadowVertical_br0nj_gg_._position_start_br0nj_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_br0nj_gg_ .___SShadowVertical_br0nj_gg_._position_end_br0nj_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuItemContainer_br0nj_gg_.__nesting-trigger_br0nj_gg_{justify-content:space-between}.___SDropdownMenuItemAddon_br0nj_gg_,.___SItemContentText_br0nj_gg_{display:inline-flex;margin-left:var(--intergalactic-spacing-1x, 4px);margin-right:var(--intergalactic-spacing-1x, 4px)}.___SDropdownMenuItemAddon_br0nj_gg_:first-child,.___SItemContentText_br0nj_gg_:first-child{margin-left:0}.___SDropdownMenuItemAddon_br0nj_gg_:last-child,.___SItemContentText_br0nj_gg_:last-child{margin-right:0}.___SDropdownMenuNesting_br0nj_gg_,.___SDropdownMenuNesting_br0nj_gg_._size_l_br0nj_gg_,.___SDropdownMenuNesting_br0nj_gg_._size_m_br0nj_gg_{padding:0}.___SDropdownMenuNesting_br0nj_gg_.__highlighted_br0nj_gg_{z-index:1;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5)) inset}.___SDropdownNestingItem_br0nj_gg_._size_l_br0nj_gg_,.___SDropdownNestingItem_br0nj_gg_._size_m_br0nj_gg_{padding-right:0}.___SDropdownNestingItem_br0nj_gg_ .___SDropdownMenuItemContainer_br0nj_gg_{width:auto;padding-top:0;padding-bottom:0;padding-left:0;min-height:auto}.___SItemContent_br0nj_gg_:focus{outline:0}.___SItemHint_br0nj_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}" /*__inner_css_end__*/, "br0nj_gg_") /*__reshadow_css_end__*/, {
40
- "__SDropdownMenuItemContainer": "___SDropdownMenuItemContainer_br0nj_gg_",
41
- "_nesting-trigger": "__nesting-trigger_br0nj_gg_",
42
- "__SDropdownMenuNesting": "___SDropdownMenuNesting_br0nj_gg_",
43
- "_size_l": "_size_l_br0nj_gg_",
44
- "_size_m": "_size_m_br0nj_gg_",
45
- "_highlighted": "__highlighted_br0nj_gg_",
46
- "__SDropdownNestingItem": "___SDropdownNestingItem_br0nj_gg_",
47
- "__SItemContent": "___SItemContent_br0nj_gg_",
48
- "__SItemHint": "___SItemHint_br0nj_gg_",
49
- "__SDropdownMenuList": "___SDropdownMenuList_br0nj_gg_",
50
- "__SShadowHorizontal": "___SShadowHorizontal_br0nj_gg_",
51
- "_position_median": "_position_median_br0nj_gg_",
52
- "_position_start": "_position_start_br0nj_gg_",
53
- "_position_end": "_position_end_br0nj_gg_",
54
- "__SShadowVertical": "___SShadowVertical_br0nj_gg_",
55
- "__SDropdownMenuItemAddon": "___SDropdownMenuItemAddon_br0nj_gg_",
56
- "__SItemContentText": "___SItemContentText_br0nj_gg_"
39
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SDropdownMenuList_10zcc_gg_{max-height:240px;padding:var(--intergalactic-spacing-1x, 4px)0;position:relative;min-height:26px;min-width:32px;box-sizing:content-box;z-index:0;color:var(--intergalactic-text-primary, #191b23)}.___SDropdownMenuList_10zcc_gg_ .___SShadowHorizontal_10zcc_gg_:after,.___SDropdownMenuList_10zcc_gg_ .___SShadowHorizontal_10zcc_gg_:before{width:16px;height:100%;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_10zcc_gg_ .___SShadowHorizontal_10zcc_gg_._position_median_10zcc_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_10zcc_gg_ .___SShadowHorizontal_10zcc_gg_._position_median_10zcc_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_10zcc_gg_ .___SShadowHorizontal_10zcc_gg_._position_start_10zcc_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_10zcc_gg_ .___SShadowHorizontal_10zcc_gg_._position_end_10zcc_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_10zcc_gg_ .___SShadowVertical_10zcc_gg_:after,.___SDropdownMenuList_10zcc_gg_ .___SShadowVertical_10zcc_gg_:before{width:100%;height:16px;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_10zcc_gg_ .___SShadowVertical_10zcc_gg_._position_median_10zcc_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_10zcc_gg_ .___SShadowVertical_10zcc_gg_._position_median_10zcc_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_10zcc_gg_ .___SShadowVertical_10zcc_gg_._position_start_10zcc_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_10zcc_gg_ .___SShadowVertical_10zcc_gg_._position_end_10zcc_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuItemContainer_10zcc_gg_.__nesting-trigger_10zcc_gg_{justify-content:space-between}.___SDropdownMenuItemAddon_10zcc_gg_,.___SItemContentText_10zcc_gg_{display:inline-flex;margin-left:var(--intergalactic-spacing-1x, 4px);margin-right:var(--intergalactic-spacing-1x, 4px)}.___SDropdownMenuItemAddon_10zcc_gg_:first-child,.___SItemContentText_10zcc_gg_:first-child{margin-left:0}.___SDropdownMenuItemAddon_10zcc_gg_:last-child,.___SItemContentText_10zcc_gg_:last-child{margin-right:0}.___SDropdownMenuNesting_10zcc_gg_,.___SDropdownMenuNesting_10zcc_gg_._size_l_10zcc_gg_,.___SDropdownMenuNesting_10zcc_gg_._size_m_10zcc_gg_{padding:0}.___SDropdownMenuNesting_10zcc_gg_.__highlighted_10zcc_gg_{z-index:1;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5)) inset}.___SDropdownNestingItem_10zcc_gg_._size_l_10zcc_gg_,.___SDropdownNestingItem_10zcc_gg_._size_m_10zcc_gg_{padding-right:0}.___SDropdownNestingItem_10zcc_gg_ .___SDropdownMenuItemContainer_10zcc_gg_{width:auto;padding-top:0;padding-bottom:0;padding-left:0;min-height:auto}.___SItemContent_10zcc_gg_:focus{outline:0}.___SItemHint_10zcc_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}" /*__inner_css_end__*/, "10zcc_gg_") /*__reshadow_css_end__*/, {
40
+ "__SDropdownMenuItemContainer": "___SDropdownMenuItemContainer_10zcc_gg_",
41
+ "_nesting-trigger": "__nesting-trigger_10zcc_gg_",
42
+ "__SDropdownMenuNesting": "___SDropdownMenuNesting_10zcc_gg_",
43
+ "_size_l": "_size_l_10zcc_gg_",
44
+ "_size_m": "_size_m_10zcc_gg_",
45
+ "_highlighted": "__highlighted_10zcc_gg_",
46
+ "__SDropdownNestingItem": "___SDropdownNestingItem_10zcc_gg_",
47
+ "__SItemContent": "___SItemContent_10zcc_gg_",
48
+ "__SItemHint": "___SItemHint_10zcc_gg_",
49
+ "__SDropdownMenuList": "___SDropdownMenuList_10zcc_gg_",
50
+ "__SShadowHorizontal": "___SShadowHorizontal_10zcc_gg_",
51
+ "_position_median": "_position_median_10zcc_gg_",
52
+ "_position_start": "_position_start_10zcc_gg_",
53
+ "_position_end": "_position_end_10zcc_gg_",
54
+ "__SShadowVertical": "___SShadowVertical_10zcc_gg_",
55
+ "__SDropdownMenuItemAddon": "___SDropdownMenuItemAddon_10zcc_gg_",
56
+ "__SItemContentText": "___SItemContentText_10zcc_gg_"
57
57
  });
58
58
  var ListBoxContextProvider = function ListBoxContextProvider(_ref22) {
59
59
  var children = _ref22.children;
@@ -72,6 +72,7 @@ var DropdownMenuRoot = /*#__PURE__*/function (_AbstractDropdown) {
72
72
  args[_key] = arguments[_key];
73
73
  }
74
74
  _this = _super.call.apply(_super, [this].concat(args));
75
+ (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "actionsRef", /*#__PURE__*/_react["default"].createRef());
75
76
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "role", 'menu');
76
77
  return _this;
77
78
  }
@@ -109,27 +110,31 @@ var DropdownMenuRoot = /*#__PURE__*/function (_AbstractDropdown) {
109
110
  key: "getPopperProps",
110
111
  value: function getPopperProps() {
111
112
  return (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, (0, _get2["default"])((0, _getPrototypeOf2["default"])(DropdownMenuRoot.prototype), "getPopperProps", this).call(this)), {}, {
112
- onKeyDown: (0, _assignProps14.callAllEventHandlers)(this.handlePreventCommonKeyDown.bind(this), this.handlePreventPopperKeyDown.bind(this)
113
- // this.handleKeyDownForPopper.bind(this),
114
- )
113
+ onKeyDown: (0, _assignProps14.callAllEventHandlers)(this.handlePreventCommonKeyDown.bind(this), this.handlePreventPopperKeyDown.bind(this))
115
114
  });
116
115
  }
117
116
  }, {
118
117
  key: "getActionsProps",
119
118
  value: function getActionsProps() {
120
- return this.getListProps();
119
+ return (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, this.getListProps()), {}, {
120
+ ref: this.actionsRef,
121
+ onKeyDown: (0, _assignProps14.callAllEventHandlers)(this.handlePreventTabOnActions.bind(this), this.handlePreventCommonKeyDown.bind(this), this.handleKeyDownForMenu('list'), this.handleArrowKeyDown.bind(this))
122
+ });
121
123
  }
122
124
  }, {
123
125
  key: "getItemProps",
124
126
  value: function getItemProps(props, index) {
125
127
  var _this2 = this;
126
- var highlightedIndex = this.asProps.highlightedIndex;
128
+ var _this$asProps2 = this.asProps,
129
+ highlightedIndex = _this$asProps2.highlightedIndex,
130
+ visible = _this$asProps2.visible;
127
131
  var isHighlighted = index === highlightedIndex;
128
132
  var itemProps = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, (0, _get2["default"])((0, _getPrototypeOf2["default"])(DropdownMenuRoot.prototype), "getItemProps", this).call(this, props, index)), {}, {
129
- tabIndex: isHighlighted ? 0 : -1,
133
+ tabIndex: isHighlighted && visible ? 0 : -1,
130
134
  ref: function ref(node) {
131
135
  return _this2.itemRef(props, index, node);
132
- }
136
+ },
137
+ actionsRef: this.actionsRef
133
138
  });
134
139
  if (props.tag === _button["default"]) {
135
140
  var _props$use, _props$theme, _props$size;
@@ -175,15 +180,24 @@ var DropdownMenuRoot = /*#__PURE__*/function (_AbstractDropdown) {
175
180
  }
176
181
  };
177
182
  }
183
+ }, {
184
+ key: "handlePreventTabOnActions",
185
+ value: function handlePreventTabOnActions(e) {
186
+ if (e.key === 'Tab') {
187
+ e.stopPropagation();
188
+ e.preventDefault();
189
+ return false;
190
+ }
191
+ }
178
192
  }, {
179
193
  key: "render",
180
194
  value: function render() {
181
195
  var _ref = this.asProps;
182
- var _this$asProps2 = this.asProps,
183
- Children = _this$asProps2.Children,
184
- selectedIndex = _this$asProps2.selectedIndex,
185
- interaction = _this$asProps2.interaction,
186
- timeout = _this$asProps2.timeout;
196
+ var _this$asProps3 = this.asProps,
197
+ Children = _this$asProps3.Children,
198
+ selectedIndex = _this$asProps3.selectedIndex,
199
+ interaction = _this$asProps3.interaction,
200
+ timeout = _this$asProps3.timeout;
187
201
  this.itemProps = [];
188
202
  return /*#__PURE__*/_react["default"].createElement(_dropdown.selectedIndexContext.Provider, {
189
203
  value: selectedIndex
@@ -262,7 +276,9 @@ function Item(_ref25) {
262
276
  disabled = _ref25.disabled,
263
277
  Children = _ref25.Children,
264
278
  forwardRef = _ref25.forwardRef,
265
- role = _ref25.role;
279
+ role = _ref25.role,
280
+ tabIndex = _ref25.tabIndex,
281
+ actionsRef = _ref25.actionsRef;
266
282
  var SDropdownMenuItemContainer = _dropdown["default"].Item;
267
283
  var itemRef = _react["default"].useRef();
268
284
  var _React$useState = _react["default"].useState(false),
@@ -272,7 +288,8 @@ function Item(_ref25) {
272
288
  var menuItemContextValue = {
273
289
  contentId: id,
274
290
  ref: (0, _ref31.forkRef)(forwardRef, itemRef),
275
- role: role
291
+ role: role,
292
+ tabIndex: tabIndex
276
293
  };
277
294
  var ariaDescribes = [];
278
295
  var hasSubMenu = (0, _findComponent.isAdvanceMode)(Children, [DropdownMenu.displayName], true);
@@ -299,6 +316,9 @@ function Item(_ref25) {
299
316
  var onBlur = function onBlur(e) {
300
317
  if (e.target === itemRef.current) {
301
318
  setHighlighted(false);
319
+ if (actionsRef.current) {
320
+ itemRef.current.tabIndex = -1;
321
+ }
302
322
  }
303
323
  };
304
324
  document.addEventListener('focus', onFocus, {
@@ -324,7 +344,7 @@ function Item(_ref25) {
324
344
  "use:highlighted": !disabled && highlighted && focusSourceRef.current === 'keyboard',
325
345
  "use:role": advancedMode ? undefined : role,
326
346
  "use:id": advancedMode ? undefined : id,
327
- "tabIndex": advancedMode ? undefined : -1
347
+ "use:tabIndex": advancedMode ? -1 : tabIndex
328
348
  }, _ref5))), /*#__PURE__*/_react["default"].createElement(Children, _ref16.cn("Children", {}))));
329
349
  }
330
350
  function Addon(props) {
@@ -371,7 +391,7 @@ function ItemContent(_ref26) {
371
391
  return _ref17 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SItemContent, _ref17.cn("SItemContent", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
372
392
  "role": menuItemCtxValue.role,
373
393
  "id": menuItemCtxValue.contentId,
374
- "tabIndex": -1,
394
+ "tabIndex": menuItemCtxValue.tabIndex,
375
395
  "ref": (0, _ref31.forkRef)(menuItemCtxValue.ref, ref),
376
396
  "use:aria-describedby": (0, _toConsumableArray2["default"])(describedby).join(' '),
377
397
  "aria-haspopup": menuItemCtxValue.hasSubMenu ? 'true' : undefined,
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenu.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_classnames","_dropdown","_flexBox","_scrollArea","_uniqueID","_intergalacticDynamicLocales","_keyboardFocusEnhance","_findComponent","_ref31","_assignProps14","_button","_typography","_excluded","style","_index","sstyled","insert","ListBoxContextProvider","_ref22","children","createElement","hideScrollBarsFromScreenReadersContext","Provider","value","menuItemContext","React","createContext","DropdownMenuRoot","_AbstractDropdown","_inherits2","_super","_createSuper2","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty2","_assertThisInitialized2","_createClass2","key","itemRef","props","index","node","_get2","_getPrototypeOf2","prototype","document","activeElement","getTriggerProps","_this$asProps","asProps","Children","uid","visible","hasMenu","isAdvanceMode","DropdownMenu","Menu","displayName","ariaControls","_objectSpread2","onKeyDown","callAllEventHandlers","handlePreventCommonKeyDown","bind","handleOpenKeyDown","handleKeyDownForMenu","undefined","getListProps","handleArrowKeyDown","getPopperProps","handlePreventPopperKeyDown","getActionsProps","getItemProps","_this2","highlightedIndex","isHighlighted","itemProps","tabIndex","ref","tag","ButtonComponent","_props$use","_props$theme","_props$size","use","theme","size","place","_this3","e","_this3$asProps","placement","inlineActions","show","startsWith","hide","isMenuItem","target","getAttribute","handlers","setTimeout","_this3$itemRefs$highl","itemRefs","focus","preventDefault","stopPropagation","_this3$triggerRef$cur","triggerRef","current","render","_ref","_this$asProps2","selectedIndex","interaction","timeout","selectedIndexContext","Dropdown","assignProps","AbstractDropdown","Object","values","enhance","defaultVisible","defaultHighlightedIndex","defaultSelectedIndex","i18n","localizedMessages","locale","List","_ref23","_ref2","arguments[0]","_ref14","styles","SDropdownMenuList","ScrollAreaComponent","cn","Container","Bar","orientation","Actions","_ref24","_ref3","_ref15","SDropdownMenuActions","Flex","_ref4","disablePortal","ignorePortalsStacking","disableEnforceFocus","autoFocus","animationsDisabled","popperProps","Popper","_extends2","role","Item","_ref25","_ref5","_ref16","id","disabled","forwardRef","SDropdownMenuItemContainer","useRef","_React$useState","useState","_React$useState2","_slicedToArray2","highlighted","setHighlighted","menuItemContextValue","contentId","forkRef","ariaDescribes","hasSubMenu","hasHint","Hint","advancedMode","Content","hintId","useUID","push","useEffect","onFocus","onBlur","addEventListener","capture","removeEventListener","focusSourceRef","useFocusSource","Addon","_useBox","useBox","_useBox2","SDropdownMenuItemAddon","_useBox2$","className","other","_objectWithoutProperties2","Trigger","_ref6","ItemContent","_ref26","_ref7","_ref17","SItemContent","menuItemCtxValue","useContext","subMenu","_React$useState3","Set","_React$useState4","describedby","setDescribedby","element","parent","parentElement","prev","add","_toConsumableArray2","join","ItemContentText","_ref27","_ref8","_ref18","SItemContentText","Text","ItemHint","_ref28","_ref9","_ref19","SItemHint","_React$useContext","_ref10","_ref20","Title","_ref11","_ref21","Nesting","_ref29","_ref12","NestingTrigger","_ref30","_ref13","createComponent","ItemTitle","Group","_default","exports"],"sources":["../../src/DropdownMenu.jsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport createComponent, { sstyled, Root } from '@semcore/core';\nimport Dropdown, { AbstractDropdown, selectedIndexContext, enhance } from '@semcore/dropdown';\nimport { Flex, useBox } from '@semcore/flex-box';\nimport ScrollAreaComponent, { hideScrollBarsFromScreenReadersContext } from '@semcore/scroll-area';\nimport { useUID } from '@semcore/utils/lib/uniqueID';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nimport style from './style/dropdown-menu.shadow.css';\nimport { useFocusSource } from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { isAdvanceMode } from '@semcore/utils/lib/findComponent';\nimport { forkRef } from '@semcore/utils/lib/ref';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\nimport ButtonComponent from '@semcore/button';\nimport { Text } from '@semcore/typography';\n\nconst ListBoxContextProvider = ({ children }) => (\n <hideScrollBarsFromScreenReadersContext.Provider value={true}>\n {children}\n </hideScrollBarsFromScreenReadersContext.Provider>\n);\n\nconst menuItemContext = React.createContext({});\n\nclass DropdownMenuRoot extends AbstractDropdown {\n static displayName = 'DropdownMenu';\n static style = style;\n static enhance = Object.values(enhance);\n\n static defaultProps = {\n size: 'm',\n defaultVisible: false,\n defaultHighlightedIndex: 0,\n defaultSelectedIndex: 0,\n i18n: localizedMessages,\n locale: 'en',\n interaction: 'click',\n inlineActions: false,\n placement: 'bottom-start',\n timeout: 0,\n };\n\n role = 'menu';\n\n itemRef(props, index, node) {\n super.itemRef(props, index, node);\n\n if (node === document.activeElement) {\n super.scrollToNode(node);\n }\n }\n\n getTriggerProps() {\n const { Children, uid, visible } = this.asProps;\n const hasMenu = isAdvanceMode(Children, [DropdownMenu.Menu.displayName]);\n const ariaControls = hasMenu ? `igc-${uid}-list` : `igc-${uid}-popper`;\n\n return {\n ...super.getTriggerProps(),\n onKeyDown: callAllEventHandlers(\n this.handlePreventCommonKeyDown.bind(this),\n this.handleOpenKeyDown.bind(this),\n this.handleKeyDownForMenu('trigger'),\n ),\n 'aria-controls': visible ? ariaControls : undefined,\n 'aria-haspopup': hasMenu ? 'true' : 'dialog',\n };\n }\n\n getListProps() {\n return {\n ...super.getListProps(),\n onKeyDown: callAllEventHandlers(\n this.handlePreventCommonKeyDown.bind(this),\n this.handleKeyDownForMenu('list'),\n this.handleArrowKeyDown.bind(this),\n ),\n };\n }\n\n getPopperProps() {\n return {\n ...super.getPopperProps(),\n onKeyDown: callAllEventHandlers(\n this.handlePreventCommonKeyDown.bind(this),\n this.handlePreventPopperKeyDown.bind(this),\n // this.handleKeyDownForPopper.bind(this),\n ),\n };\n }\n\n getActionsProps() {\n return this.getListProps();\n }\n\n getItemProps(props, index) {\n const { highlightedIndex } = this.asProps;\n const isHighlighted = index === highlightedIndex;\n\n const itemProps = {\n ...super.getItemProps(props, index),\n tabIndex: isHighlighted ? 0 : -1,\n ref: (node) => this.itemRef(props, index, node),\n };\n\n if (props.tag === ButtonComponent) {\n itemProps.use = props.use ?? 'tertiary';\n itemProps.theme = props.theme ?? 'muted';\n itemProps.size = props.size ?? 's';\n }\n\n return itemProps;\n }\n\n handleKeyDownForMenu(place) {\n return (e) => {\n const { visible, placement, inlineActions } = this.asProps;\n\n const show =\n (e.key === 'ArrowRight' && placement?.startsWith('right')) ||\n (e.key === 'ArrowLeft' && placement?.startsWith('left'));\n const hide =\n (e.key === 'ArrowLeft' && placement?.startsWith('right')) ||\n (e.key === 'ArrowRight' && placement?.startsWith('left')) ||\n e.key === 'Escape';\n const isMenuItem = e.target.getAttribute('role') === super.childRole;\n\n if (place === 'trigger' && (!visible || inlineActions) && show && isMenuItem) {\n this.handlers.visible(true);\n this.handlers.highlightedIndex(0);\n setTimeout(() => {\n const { highlightedIndex } = this.asProps;\n this.itemRefs[highlightedIndex]?.focus();\n }, 0);\n\n e.preventDefault();\n e.stopPropagation();\n return false;\n }\n if (place === 'list' && visible && hide && isMenuItem) {\n if (\n !inlineActions ||\n (inlineActions && (e.key === 'Escape' || this.asProps.highlightedIndex === 0))\n ) {\n this.handlers.visible(false);\n this.triggerRef.current?.focus();\n\n e.preventDefault();\n e.stopPropagation();\n return false;\n }\n }\n };\n }\n\n render() {\n const { Children, selectedIndex, interaction, timeout } = this.asProps;\n\n this.itemProps = [];\n\n return (\n <selectedIndexContext.Provider value={selectedIndex}>\n <Root\n render={Dropdown}\n timeout={timeout || (interaction === 'hover' ? [0, 100] : undefined)}\n >\n <Children />\n </Root>\n </selectedIndexContext.Provider>\n );\n }\n}\n\nfunction List({ styles, Children }) {\n const SDropdownMenuList = Root;\n\n return sstyled(styles)(\n <ListBoxContextProvider>\n <SDropdownMenuList render={ScrollAreaComponent} shadow={true}>\n <ScrollAreaComponent.Container tabIndex={undefined}>\n <Children />\n </ScrollAreaComponent.Container>\n <ScrollAreaComponent.Bar orientation='horizontal' />\n <ScrollAreaComponent.Bar orientation='vertical' />\n </SDropdownMenuList>\n </ListBoxContextProvider>,\n );\n}\nfunction Actions({ styles }) {\n const SDropdownMenuActions = Root;\n\n return sstyled(styles)(<SDropdownMenuActions render={Flex} />);\n}\n\nfunction Menu(props) {\n const {\n visible,\n disablePortal,\n ignorePortalsStacking,\n disableEnforceFocus,\n interaction,\n autoFocus,\n animationsDisabled,\n } = props;\n const popperProps = {\n visible,\n disablePortal,\n ignorePortalsStacking,\n disableEnforceFocus,\n interaction,\n autoFocus,\n animationsDisabled,\n };\n return (\n <ListBoxContextProvider>\n <DropdownMenu.Popper {...popperProps} role={null}>\n <Root render={DropdownMenu.List} />\n </DropdownMenu.Popper>\n </ListBoxContextProvider>\n );\n}\n\nfunction Item({ id, styles, disabled, Children, forwardRef, role }) {\n const SDropdownMenuItemContainer = Root;\n const itemRef = React.useRef();\n\n const [highlighted, setHighlighted] = React.useState(false);\n\n const menuItemContextValue = {\n contentId: id,\n ref: forkRef(forwardRef, itemRef),\n role,\n };\n const ariaDescribes = [];\n\n const hasSubMenu = isAdvanceMode(Children, [DropdownMenu.displayName], true);\n const hasHint = isAdvanceMode(Children, [DropdownMenu.Item.Hint.displayName], true);\n const advancedMode =\n isAdvanceMode(Children, [DropdownMenu.Item.Content.displayName], true) || hasSubMenu || hasHint;\n\n if (hasHint) {\n const hintId = `igc-${useUID()}-option-hint`;\n\n menuItemContextValue.hintId = hintId;\n ariaDescribes.push(hintId);\n }\n\n if (hasSubMenu) {\n menuItemContextValue.hasSubMenu = true;\n }\n\n menuItemContextValue.ariaDescribes = ariaDescribes;\n\n React.useEffect(() => {\n const onFocus = (e) => {\n if (e.target === itemRef.current) {\n setHighlighted(true);\n\n if (hasSubMenu) {\n e.stopPropagation();\n }\n }\n };\n const onBlur = (e) => {\n if (e.target === itemRef.current) {\n setHighlighted(false);\n }\n };\n\n document.addEventListener('focus', onFocus, { capture: true });\n document.addEventListener('blur', onBlur, { capture: true });\n\n return () => {\n document.removeEventListener('focus', onFocus, { capture: true });\n document.removeEventListener('blur', onBlur, { capture: true });\n };\n }, [itemRef.current]);\n\n const focusSourceRef = useFocusSource();\n\n return sstyled(styles)(\n <menuItemContext.Provider value={menuItemContextValue}>\n <SDropdownMenuItemContainer\n render={Dropdown.Item}\n ref={advancedMode ? undefined : menuItemContextValue.ref}\n use:highlighted={!disabled && highlighted && focusSourceRef.current === 'keyboard'}\n use:role={advancedMode ? undefined : role}\n use:id={advancedMode ? undefined : id}\n tabIndex={advancedMode ? undefined : -1}\n >\n <Children />\n </SDropdownMenuItemContainer>\n </menuItemContext.Provider>,\n );\n}\n\nfunction Addon(props) {\n const [SDropdownMenuItemAddon, { className, ...other }] = useBox(props, props.forwardRef);\n const styles = sstyled(props.styles);\n return (\n <SDropdownMenuItemAddon\n className={cn(styles.cn('SDropdownMenuItemAddon', props).className, className) || undefined}\n {...other}\n />\n );\n}\n\nfunction Trigger() {\n return <Root render={Dropdown.Trigger} />;\n}\n\nfunction ItemContent({ styles }) {\n const SItemContent = Root;\n const ref = React.useRef();\n const menuItemCtxValue = React.useContext(menuItemContext);\n\n let subMenu = undefined;\n\n if (menuItemCtxValue.hasSubMenu) {\n subMenu = 'true';\n }\n\n const [describedby, setDescribedby] = React.useState(new Set(menuItemCtxValue.ariaDescribes));\n\n React.useEffect(() => {\n const element = ref.current;\n const parent = element?.parentElement;\n\n if (\n parent.getAttribute('aria-haspopup') === 'true' &&\n parent.getAttribute('aria-describedby')\n ) {\n setDescribedby((prev) => {\n prev.add(parent.getAttribute('aria-describedby'));\n\n return new Set(prev);\n });\n }\n }, [menuItemCtxValue.ariaDescribes]);\n\n return sstyled(styles)(\n <SItemContent\n render={Flex}\n role={menuItemCtxValue.role}\n id={menuItemCtxValue.contentId}\n tabIndex={-1}\n ref={forkRef(menuItemCtxValue.ref, ref)}\n use:aria-describedby={[...describedby].join(' ')}\n aria-haspopup={menuItemCtxValue.hasSubMenu ? 'true' : undefined}\n aria-expanded={subMenu}\n alignItems='center'\n justifyContent={menuItemCtxValue.hasSubMenu ? 'space-between' : undefined}\n />,\n );\n}\n\nfunction ItemContentText({ styles }) {\n const SItemContentText = Root;\n return sstyled(styles)(<SItemContentText render={Text} />);\n}\n\nfunction ItemHint({ styles }) {\n const SItemHint = Root;\n const { hintId } = React.useContext(menuItemContext);\n\n return sstyled(styles)(<SItemHint render={Flex} id={hintId} aria-hidden={'true'} />);\n}\n\n/**\n * @deprecated Use Item hint\n */\nfunction Hint(props) {\n const SDropdownMenuItemContainer = Root;\n return sstyled(props.styles)(\n <SDropdownMenuItemContainer render={Dropdown.Item} variant='hint' />,\n );\n}\n/**\n * @deprecated Use Group with title prop\n */\nfunction Title(props) {\n const SDropdownMenuItemContainer = Root;\n return sstyled(props.styles)(\n <SDropdownMenuItemContainer render={Dropdown.Item} variant='title' />,\n );\n}\n\n/**\n * @deprecated\n */\nfunction Nesting({ forwardRef }) {\n return <Root render={DropdownMenu.Item} ref={forwardRef} />;\n}\n\n/**\n * @deprecated\n */\nfunction NestingTrigger({ forwardRef }) {\n return (\n <Root\n render={DropdownMenu.Item.Content}\n tag={DropdownMenu.Trigger}\n ref={forwardRef}\n use:role={'menuitem'}\n />\n );\n}\n\nconst DropdownMenu = createComponent(\n DropdownMenuRoot,\n {\n Trigger,\n Popper: Dropdown.Popper,\n List,\n Actions,\n Menu,\n Item: [Item, { Addon, Content: ItemContent, Text: ItemContentText, Hint: ItemHint }],\n /**\n * @deprecated. Use just Item. See examples on\n */\n Nesting: [Nesting, { Trigger: NestingTrigger, Addon }],\n ItemTitle: Title,\n ItemHint: Hint,\n Group: Dropdown.Group,\n },\n {\n parent: [Dropdown],\n },\n);\n\nDropdownMenu.selectedIndexContext = selectedIndexContext;\n\nexport default DropdownMenu;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAFA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,SAAA,GAAAL,uBAAA,CAAAC,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAP,uBAAA,CAAAC,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AACA,IAAAQ,4BAAA,GAAAR,OAAA;AAEA,IAAAS,qBAAA,GAAAT,OAAA;AACA,IAAAU,cAAA,GAAAV,OAAA;AACA,IAAAW,MAAA,GAAAX,O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ChBR,QAAQ,EAAEnD,IAAI;EACdsE,KAAK,EAAEnI,oBAAQ,CAACmI;AAClB,CAAC,EACD;EACE/B,MAAM,EAAE,CAACpG,oBAAQ;AACnB,CAAC,CACF;AAED7D,YAAY,CAAC4D,oBAAoB,GAAGA,8BAAoB;AAAC,IAAAqI,QAAA,GAE1CjM,YAAY;AAAAkM,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"DropdownMenu.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_classnames","_dropdown","_flexBox","_scrollArea","_uniqueID","_intergalacticDynamicLocales","_keyboardFocusEnhance","_findComponent","_ref31","_assignProps14","_button","_typography","_excluded","style","_index","sstyled","insert","ListBoxContextProvider","_ref22","children","createElement","hideScrollBarsFromScreenReadersContext","Provider","value","menuItemContext","React","createContext","DropdownMenuRoot","_AbstractDropdown","_inherits2","_super","_createSuper2","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty2","_assertThisInitialized2","createRef","_createClass2","key","itemRef","props","index","node","_get2","_getPrototypeOf2","prototype","document","activeElement","getTriggerProps","_this$asProps","asProps","Children","uid","visible","hasMenu","isAdvanceMode","DropdownMenu","Menu","displayName","ariaControls","_objectSpread2","onKeyDown","callAllEventHandlers","handlePreventCommonKeyDown","bind","handleOpenKeyDown","handleKeyDownForMenu","undefined","getListProps","handleArrowKeyDown","getPopperProps","handlePreventPopperKeyDown","getActionsProps","ref","actionsRef","handlePreventTabOnActions","getItemProps","_this2","_this$asProps2","highlightedIndex","isHighlighted","itemProps","tabIndex","tag","ButtonComponent","_props$use","_props$theme","_props$size","use","theme","size","place","_this3","e","_this3$asProps","placement","inlineActions","show","startsWith","hide","isMenuItem","target","getAttribute","handlers","setTimeout","_this3$itemRefs$highl","itemRefs","focus","preventDefault","stopPropagation","_this3$triggerRef$cur","triggerRef","current","render","_ref","_this$asProps3","selectedIndex","interaction","timeout","selectedIndexContext","Dropdown","assignProps","AbstractDropdown","Object","values","enhance","defaultVisible","defaultHighlightedIndex","defaultSelectedIndex","i18n","localizedMessages","locale","List","_ref23","_ref2","arguments[0]","_ref14","styles","SDropdownMenuList","ScrollAreaComponent","cn","Container","Bar","orientation","Actions","_ref24","_ref3","_ref15","SDropdownMenuActions","Flex","_ref4","disablePortal","ignorePortalsStacking","disableEnforceFocus","autoFocus","animationsDisabled","popperProps","Popper","_extends2","role","Item","_ref25","_ref5","_ref16","id","disabled","forwardRef","SDropdownMenuItemContainer","useRef","_React$useState","useState","_React$useState2","_slicedToArray2","highlighted","setHighlighted","menuItemContextValue","contentId","forkRef","ariaDescribes","hasSubMenu","hasHint","Hint","advancedMode","Content","hintId","useUID","push","useEffect","onFocus","onBlur","addEventListener","capture","removeEventListener","focusSourceRef","useFocusSource","Addon","_useBox","useBox","_useBox2","SDropdownMenuItemAddon","_useBox2$","className","other","_objectWithoutProperties2","Trigger","_ref6","ItemContent","_ref26","_ref7","_ref17","SItemContent","menuItemCtxValue","useContext","subMenu","_React$useState3","Set","_React$useState4","describedby","setDescribedby","element","parent","parentElement","prev","add","_toConsumableArray2","join","ItemContentText","_ref27","_ref8","_ref18","SItemContentText","Text","ItemHint","_ref28","_ref9","_ref19","SItemHint","_React$useContext","_ref10","_ref20","Title","_ref11","_ref21","Nesting","_ref29","_ref12","NestingTrigger","_ref30","_ref13","createComponent","ItemTitle","Group","_default","exports"],"sources":["../../src/DropdownMenu.jsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport createComponent, { sstyled, Root } from '@semcore/core';\nimport Dropdown, { AbstractDropdown, selectedIndexContext, enhance } from '@semcore/dropdown';\nimport { Flex, useBox } from '@semcore/flex-box';\nimport ScrollAreaComponent, { hideScrollBarsFromScreenReadersContext } from '@semcore/scroll-area';\nimport { useUID } from '@semcore/utils/lib/uniqueID';\nimport { localizedMessages } from './translations/__intergalactic-dynamic-locales';\nimport style from './style/dropdown-menu.shadow.css';\nimport { useFocusSource } from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { isAdvanceMode } from '@semcore/utils/lib/findComponent';\nimport { forkRef } from '@semcore/utils/lib/ref';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\nimport ButtonComponent from '@semcore/button';\nimport { Text } from '@semcore/typography';\n\nconst ListBoxContextProvider = ({ children }) => (\n <hideScrollBarsFromScreenReadersContext.Provider value={true}>\n {children}\n </hideScrollBarsFromScreenReadersContext.Provider>\n);\n\nconst menuItemContext = React.createContext({});\n\nclass DropdownMenuRoot extends AbstractDropdown {\n static displayName = 'DropdownMenu';\n static style = style;\n static enhance = Object.values(enhance);\n\n static defaultProps = {\n size: 'm',\n defaultVisible: false,\n defaultHighlightedIndex: 0,\n defaultSelectedIndex: 0,\n i18n: localizedMessages,\n locale: 'en',\n interaction: 'click',\n inlineActions: false,\n placement: 'bottom-start',\n timeout: 0,\n };\n\n actionsRef = React.createRef();\n role = 'menu';\n\n itemRef(props, index, node) {\n super.itemRef(props, index, node);\n\n if (node === document.activeElement) {\n super.scrollToNode(node);\n }\n }\n\n getTriggerProps() {\n const { Children, uid, visible } = this.asProps;\n const hasMenu = isAdvanceMode(Children, [DropdownMenu.Menu.displayName]);\n const ariaControls = hasMenu ? `igc-${uid}-list` : `igc-${uid}-popper`;\n\n return {\n ...super.getTriggerProps(),\n onKeyDown: callAllEventHandlers(\n this.handlePreventCommonKeyDown.bind(this),\n this.handleOpenKeyDown.bind(this),\n this.handleKeyDownForMenu('trigger'),\n ),\n 'aria-controls': visible ? ariaControls : undefined,\n 'aria-haspopup': hasMenu ? 'true' : 'dialog',\n };\n }\n\n getListProps() {\n return {\n ...super.getListProps(),\n onKeyDown: callAllEventHandlers(\n this.handlePreventCommonKeyDown.bind(this),\n this.handleKeyDownForMenu('list'),\n this.handleArrowKeyDown.bind(this),\n ),\n };\n }\n\n getPopperProps() {\n return {\n ...super.getPopperProps(),\n onKeyDown: callAllEventHandlers(\n this.handlePreventCommonKeyDown.bind(this),\n this.handlePreventPopperKeyDown.bind(this),\n ),\n };\n }\n\n getActionsProps() {\n return {\n ...this.getListProps(),\n ref: this.actionsRef,\n onKeyDown: callAllEventHandlers(\n this.handlePreventTabOnActions.bind(this),\n this.handlePreventCommonKeyDown.bind(this),\n this.handleKeyDownForMenu('list'),\n this.handleArrowKeyDown.bind(this),\n ),\n };\n }\n\n getItemProps(props, index) {\n const { highlightedIndex, visible } = this.asProps;\n const isHighlighted = index === highlightedIndex;\n const itemProps = {\n ...super.getItemProps(props, index),\n tabIndex: isHighlighted && visible ? 0 : -1,\n ref: (node) => this.itemRef(props, index, node),\n actionsRef: this.actionsRef,\n };\n\n if (props.tag === ButtonComponent) {\n itemProps.use = props.use ?? 'tertiary';\n itemProps.theme = props.theme ?? 'muted';\n itemProps.size = props.size ?? 's';\n }\n\n return itemProps;\n }\n\n handleKeyDownForMenu(place) {\n return (e) => {\n const { visible, placement, inlineActions } = this.asProps;\n\n const show =\n (e.key === 'ArrowRight' && placement?.startsWith('right')) ||\n (e.key === 'ArrowLeft' && placement?.startsWith('left'));\n const hide =\n (e.key === 'ArrowLeft' && placement?.startsWith('right')) ||\n (e.key === 'ArrowRight' && placement?.startsWith('left')) ||\n e.key === 'Escape';\n const isMenuItem = e.target.getAttribute('role') === super.childRole;\n\n if (place === 'trigger' && (!visible || inlineActions) && show && isMenuItem) {\n this.handlers.visible(true);\n this.handlers.highlightedIndex(0);\n setTimeout(() => {\n const { highlightedIndex } = this.asProps;\n this.itemRefs[highlightedIndex]?.focus();\n }, 0);\n\n e.preventDefault();\n e.stopPropagation();\n return false;\n }\n if (place === 'list' && visible && hide && isMenuItem) {\n if (\n !inlineActions ||\n (inlineActions && (e.key === 'Escape' || this.asProps.highlightedIndex === 0))\n ) {\n this.handlers.visible(false);\n this.triggerRef.current?.focus();\n\n e.preventDefault();\n e.stopPropagation();\n return false;\n }\n }\n };\n }\n\n handlePreventTabOnActions(e) {\n if (e.key === 'Tab') {\n e.stopPropagation();\n e.preventDefault();\n return false;\n }\n }\n\n render() {\n const { Children, selectedIndex, interaction, timeout } = this.asProps;\n\n this.itemProps = [];\n\n return (\n <selectedIndexContext.Provider value={selectedIndex}>\n <Root\n render={Dropdown}\n timeout={timeout || (interaction === 'hover' ? [0, 100] : undefined)}\n >\n <Children />\n </Root>\n </selectedIndexContext.Provider>\n );\n }\n}\n\nfunction List({ styles, Children }) {\n const SDropdownMenuList = Root;\n\n return sstyled(styles)(\n <ListBoxContextProvider>\n <SDropdownMenuList render={ScrollAreaComponent} shadow={true}>\n <ScrollAreaComponent.Container tabIndex={undefined}>\n <Children />\n </ScrollAreaComponent.Container>\n <ScrollAreaComponent.Bar orientation='horizontal' />\n <ScrollAreaComponent.Bar orientation='vertical' />\n </SDropdownMenuList>\n </ListBoxContextProvider>,\n );\n}\nfunction Actions({ styles }) {\n const SDropdownMenuActions = Root;\n\n return sstyled(styles)(<SDropdownMenuActions render={Flex} />);\n}\n\nfunction Menu(props) {\n const {\n visible,\n disablePortal,\n ignorePortalsStacking,\n disableEnforceFocus,\n interaction,\n autoFocus,\n animationsDisabled,\n } = props;\n const popperProps = {\n visible,\n disablePortal,\n ignorePortalsStacking,\n disableEnforceFocus,\n interaction,\n autoFocus,\n animationsDisabled,\n };\n return (\n <ListBoxContextProvider>\n <DropdownMenu.Popper {...popperProps} role={null}>\n <Root render={DropdownMenu.List} />\n </DropdownMenu.Popper>\n </ListBoxContextProvider>\n );\n}\n\nfunction Item({ id, styles, disabled, Children, forwardRef, role, tabIndex, actionsRef }) {\n const SDropdownMenuItemContainer = Root;\n const itemRef = React.useRef();\n\n const [highlighted, setHighlighted] = React.useState(false);\n\n const menuItemContextValue = {\n contentId: id,\n ref: forkRef(forwardRef, itemRef),\n role,\n tabIndex,\n };\n const ariaDescribes = [];\n\n const hasSubMenu = isAdvanceMode(Children, [DropdownMenu.displayName], true);\n const hasHint = isAdvanceMode(Children, [DropdownMenu.Item.Hint.displayName], true);\n const advancedMode =\n isAdvanceMode(Children, [DropdownMenu.Item.Content.displayName], true) || hasSubMenu || hasHint;\n\n if (hasHint) {\n const hintId = `igc-${useUID()}-option-hint`;\n\n menuItemContextValue.hintId = hintId;\n ariaDescribes.push(hintId);\n }\n\n if (hasSubMenu) {\n menuItemContextValue.hasSubMenu = true;\n }\n\n menuItemContextValue.ariaDescribes = ariaDescribes;\n\n React.useEffect(() => {\n const onFocus = (e) => {\n if (e.target === itemRef.current) {\n setHighlighted(true);\n\n if (hasSubMenu) {\n e.stopPropagation();\n }\n }\n };\n const onBlur = (e) => {\n if (e.target === itemRef.current) {\n setHighlighted(false);\n\n if (actionsRef.current) {\n itemRef.current.tabIndex = -1;\n }\n }\n };\n\n document.addEventListener('focus', onFocus, { capture: true });\n document.addEventListener('blur', onBlur, { capture: true });\n\n return () => {\n document.removeEventListener('focus', onFocus, { capture: true });\n document.removeEventListener('blur', onBlur, { capture: true });\n };\n }, [itemRef.current]);\n\n const focusSourceRef = useFocusSource();\n\n return sstyled(styles)(\n <menuItemContext.Provider value={menuItemContextValue}>\n <SDropdownMenuItemContainer\n render={Dropdown.Item}\n ref={advancedMode ? undefined : menuItemContextValue.ref}\n use:highlighted={!disabled && highlighted && focusSourceRef.current === 'keyboard'}\n use:role={advancedMode ? undefined : role}\n use:id={advancedMode ? undefined : id}\n use:tabIndex={advancedMode ? -1 : tabIndex}\n >\n <Children />\n </SDropdownMenuItemContainer>\n </menuItemContext.Provider>,\n );\n}\n\nfunction Addon(props) {\n const [SDropdownMenuItemAddon, { className, ...other }] = useBox(props, props.forwardRef);\n const styles = sstyled(props.styles);\n return (\n <SDropdownMenuItemAddon\n className={cn(styles.cn('SDropdownMenuItemAddon', props).className, className) || undefined}\n {...other}\n />\n );\n}\n\nfunction Trigger() {\n return <Root render={Dropdown.Trigger} />;\n}\n\nfunction ItemContent({ styles }) {\n const SItemContent = Root;\n const ref = React.useRef();\n const menuItemCtxValue = React.useContext(menuItemContext);\n\n let subMenu = undefined;\n\n if (menuItemCtxValue.hasSubMenu) {\n subMenu = 'true';\n }\n\n const [describedby, setDescribedby] = React.useState(new Set(menuItemCtxValue.ariaDescribes));\n\n React.useEffect(() => {\n const element = ref.current;\n const parent = element?.parentElement;\n\n if (\n parent.getAttribute('aria-haspopup') === 'true' &&\n parent.getAttribute('aria-describedby')\n ) {\n setDescribedby((prev) => {\n prev.add(parent.getAttribute('aria-describedby'));\n\n return new Set(prev);\n });\n }\n }, [menuItemCtxValue.ariaDescribes]);\n\n return sstyled(styles)(\n <SItemContent\n render={Flex}\n role={menuItemCtxValue.role}\n id={menuItemCtxValue.contentId}\n tabIndex={menuItemCtxValue.tabIndex}\n ref={forkRef(menuItemCtxValue.ref, ref)}\n use:aria-describedby={[...describedby].join(' ')}\n aria-haspopup={menuItemCtxValue.hasSubMenu ? 'true' : undefined}\n aria-expanded={subMenu}\n alignItems='center'\n justifyContent={menuItemCtxValue.hasSubMenu ? 'space-between' : undefined}\n />,\n );\n}\n\nfunction ItemContentText({ styles }) {\n const SItemContentText = Root;\n return sstyled(styles)(<SItemContentText render={Text} />);\n}\n\nfunction ItemHint({ styles }) {\n const SItemHint = Root;\n const { hintId } = React.useContext(menuItemContext);\n\n return sstyled(styles)(<SItemHint render={Flex} id={hintId} aria-hidden={'true'} />);\n}\n\n/**\n * @deprecated Use Item hint\n */\nfunction Hint(props) {\n const SDropdownMenuItemContainer = Root;\n return sstyled(props.styles)(\n <SDropdownMenuItemContainer render={Dropdown.Item} variant='hint' />,\n );\n}\n/**\n * @deprecated Use Group with title prop\n */\nfunction Title(props) {\n const SDropdownMenuItemContainer = Root;\n return sstyled(props.styles)(\n <SDropdownMenuItemContainer render={Dropdown.Item} variant='title' />,\n );\n}\n\n/**\n * @deprecated\n */\nfunction Nesting({ forwardRef }) {\n return <Root render={DropdownMenu.Item} ref={forwardRef} />;\n}\n\n/**\n * @deprecated\n */\nfunction NestingTrigger({ forwardRef }) {\n return (\n <Root\n render={DropdownMenu.Item.Content}\n tag={DropdownMenu.Trigger}\n ref={forwardRef}\n use:role={'menuitem'}\n />\n );\n}\n\nconst DropdownMenu = createComponent(\n DropdownMenuRoot,\n {\n Trigger,\n Popper: Dropdown.Popper,\n List,\n Actions,\n Menu,\n Item: [Item, { Addon, Content: ItemContent, Text: ItemContentText, Hint: ItemHint }],\n /**\n * @deprecated. Use just Item. See examples on\n */\n Nesting: [Nesting, { Trigger: NestingTrigger, Addon }],\n ItemTitle: Title,\n ItemHint: Hint,\n Group: Dropdown.Group,\n },\n {\n parent: [Dropdown],\n },\n);\n\nDropdownMenu.selectedIndexContext = selectedIndexContext;\n\nexport default DropdownMenu;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAFA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,SAAA,GAAAL,uBAAA,CAAAC,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAP,uBAAA,CAAAC,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AACA,IAAAQ,4BAAA,GAAAR,OAAA;AAEA,IAAAS,qBAAA,GAAAT,OAAA;AACA,IAAAU,cAAA,GAAAV,OAAA;AACA,IAAAW,MAAA,GAAAX,OAAA;AACA,IAAAY,cAAA,GAAAZ,OAAA;AACA,IAAAa,OAAA,GAAAX,sBAAA,CAAAF,OAAA;AACA,IAAAc,WAAA,GAAAd,OAAA;AAA2C,IAAAe,SAAA;AAAA;AAAA,IAAAC,KAAA,+BAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAE3C,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAAC,MAAA;EAAA,IAAMC,QAAQ,GAAAD,MAAA,CAARC,QAAQ;EAAA,oBACxCrB,MAAA,YA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F,MAAA,EACpB;AAEN;AAEA,IAAMhM,YAAY,GAAG,IAAAiM,gBAAe,EAClCvO,gBAAgB,EAChB;EACE0L,OAAO,EAAPA,OAAO;EACP/C,MAAM,EAAErC,oBAAQ,CAACqC,MAAM;EACvBzB,IAAI,EAAJA,IAAI;EACJY,OAAO,EAAPA,OAAO;EACPvF,IAAI,EAAJA,IAAI;EACJuG,IAAI,EAAE,CAACA,IAAI,EAAE;IAAEmC,KAAK,EAALA,KAAK;IAAEZ,OAAO,EAAEuB,WAAW;IAAEyB,IAAI,EAAEL,eAAe;IAAE7C,IAAI,EAAEmD;EAAS,CAAC,CAAC;EACpF;AACJ;AACA;EACIW,OAAO,EAAE,CAACA,OAAO,EAAE;IAAEvC,OAAO,EAAE0C,cAAc;IAAEnD,KAAK,EAALA;EAAM,CAAC,CAAC;EACtDuD,SAAS,EAAEV,KAAK;EAChBR,QAAQ,EAAEnD,IAAI;EACdsE,KAAK,EAAEnI,oBAAQ,CAACmI;AAClB,CAAC,EACD;EACE/B,MAAM,EAAE,CAACpG,oBAAQ;AACnB,CAAC,CACF;AAEDhE,YAAY,CAAC+D,oBAAoB,GAAGA,8BAAoB;AAAC,IAAAqI,QAAA,GAE1CpM,YAAY;AAAAqM,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport Dropdown, {\n DropdownContext,\n DropdownProps,\n DropdownHandlers,\n DropdownTriggerProps,\n} from '@semcore/dropdown';\nimport { Box, BoxProps, FlexProps, Flex } from '@semcore/flex-box';\nimport { ScrollAreaProps } from '@semcore/scroll-area';\nimport { Text } from '@semcore/typography';\n\nexport type DropdownMenuSize = 'm' | 'l';\n\n/** @deprecated */\nexport interface IDropdownMenuProps extends DropdownMenuProps, UnknownProperties {}\nexport type DropdownMenuProps = DropdownProps & {\n /**\n * Size of the menu\n * @default m\n */\n size?: DropdownMenuSize;\n /**\n * Index of the element selected by default\n */\n defaultHighlightedIndex?: number | null;\n /**\n * Index of the selected item\n */\n highlightedIndex?: number | null;\n /**\n * Callback for highlightedIndex change\n * highlightedIndex - Index of the selected item\n */\n onHighlightedIndexChange?: (highlightedIndex: number | null) => void;\n locale?: string;\n /**\n * Flag for menu that using as actions on DropdownMenu.Item\n */\n inlineActions?: boolean;\n};\n\n/** @deprecated */\nexport interface IDropdownMenuListProps extends DropdownMenuListProps, UnknownProperties {}\nexport type DropdownMenuListProps = BoxProps &\n ScrollAreaProps & {\n /**\n * Size of the menu\n * @default m\n */\n size?: DropdownMenuSize;\n };\n\n/** @deprecated */\nexport interface IDropdownMenuMenuProps extends DropdownMenuMenuProps, UnknownProperties {}\nexport type DropdownMenuMenuProps = DropdownMenuListProps & {};\n\n/** @deprecated */\nexport interface IDropdownMenuItemProps extends DropdownMenuItemProps, UnknownProperties {}\nexport type DropdownMenuItemProps = FlexProps & {\n /**\n * Enables selected state\n * @deprecated Dropdown menu item can't have that state\n */\n selected?: boolean;\n /**\n * Disables item\n */\n disabled?: boolean;\n /**\n * Adds focus styles around\n */\n highlighted?: boolean;\n /**\n * Disables hover state\n * @deprecated use `disabled` instead\n */\n notInteractive?: boolean;\n /**\n * Size of the component\n * @default m\n */\n size?: DropdownMenuSize;\n};\n\n/** @deprecated */\nexport interface IDropdownMenuItemHintProps extends DropdownMenuItemHintProps, UnknownProperties {}\nexport type DropdownMenuItemHintProps = FlexProps & {\n /**\n * Size of the component\n * @default m\n */\n size?: DropdownMenuSize;\n};\n\n/** @deprecated */\nexport interface IDropdownMenuItemTitleProps\n extends DropdownMenuItemTitleProps,\n UnknownProperties {}\nexport type DropdownMenuItemTitleProps = FlexProps & {\n /**\n * Size of the component\n * @default m\n */\n size?: DropdownMenuSize;\n};\n\n/** @deprecated */\nexport interface IDropdownMenuContext extends DropdownMenuContext, UnknownProperties {}\nexport type DropdownMenuContext = DropdownContext & {\n highlightedIndex?: number;\n getListProps: PropGetterFn;\n getItemProps: PropGetterFn;\n getItemHintProps: PropGetterFn;\n getItemTitleProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface IDropdownMenuHandlers extends DropdownMenuHandlers, UnknownProperties {}\nexport type DropdownMenuHandlers = DropdownHandlers & {\n highlightedIndex: (index: number) => void;\n};\n\nexport type DropdownMenuTriggerProps = DropdownTriggerProps;\n\ndeclare const DropdownMenu: Intergalactic.Component<\n 'div',\n DropdownMenuProps,\n DropdownMenuContext,\n [handlers: DropdownMenuHandlers]\n> & {\n Trigger: typeof Dropdown.Trigger;\n Popper: Intergalactic.Component<'div', DropdownMenuProps>;\n List: Intergalactic.Component<\n 'div',\n DropdownMenuListProps,\n DropdownMenuContext,\n [handlers: DropdownMenuHandlers]\n >;\n Actions: Intergalactic.Component<\n typeof Flex,\n DropdownMenuListProps,\n DropdownMenuContext,\n [handlers: DropdownMenuHandlers]\n >;\n Menu: Intergalactic.Component<\n 'div',\n DropdownMenuMenuProps,\n DropdownMenuContext,\n [handlers: DropdownMenuHandlers]\n >;\n Item: Intergalactic.Component<\n typeof Dropdown.Item,\n DropdownMenuItemProps,\n DropdownMenuContext,\n [handlers: DropdownMenuHandlers]\n > & {\n Addon: typeof Box;\n Content: typeof Flex;\n Text: typeof Text;\n Hint: typeof Flex;\n };\n /**\n * @deprecated Use Group with title prop\n */\n ItemTitle: Intergalactic.Component<'div', DropdownMenuItemTitleProps>;\n /**\n * @deprecated Use prop subTitle on Group or Item component\n */\n ItemHint: Intergalactic.Component<'div', DropdownMenuItemHintProps>;\n Group: typeof Dropdown.Group;\n /**\n * @deprecated Use Item instead of Nesting\n */\n Nesting: Intergalactic.Component<\n 'div',\n DropdownMenuItemProps,\n DropdownMenuContext,\n [handlers: DropdownMenuHandlers]\n > & {\n /**\n * @deprecated Use Item instead of Nesting\n */\n Trigger: Intergalactic.Component<'div', DropdownMenuItemProps>;\n /**\n * @deprecated Use Item instead of Nesting\n */\n Item: Intergalactic.Component<'div', DropdownMenuItemProps>;\n /**\n * @deprecated Use Item instead of Nesting\n */\n Addon: typeof Box;\n };\n\n selectedIndexContext: React.Context<number>;\n};\n\nexport default DropdownMenu;\n"],"mappings":""}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';\nimport Dropdown, {\n DropdownContext,\n DropdownProps,\n DropdownHandlers,\n DropdownTriggerProps,\n DropdownPopperAriaProps,\n} from '@semcore/dropdown';\nimport { Box, BoxProps, FlexProps, Flex } from '@semcore/flex-box';\nimport { ScrollAreaProps } from '@semcore/scroll-area';\nimport { Text } from '@semcore/typography';\n\nexport type DropdownMenuSize = 'm' | 'l';\n\n/** @deprecated */\nexport interface IDropdownMenuProps extends DropdownMenuProps, UnknownProperties {}\nexport type DropdownMenuProps = DropdownProps & {\n /**\n * Size of the menu\n * @default m\n */\n size?: DropdownMenuSize;\n /**\n * Index of the element selected by default\n */\n defaultHighlightedIndex?: number | null;\n /**\n * Index of the selected item\n */\n highlightedIndex?: number | null;\n /**\n * Callback for highlightedIndex change\n * highlightedIndex - Index of the selected item\n */\n onHighlightedIndexChange?: (highlightedIndex: number | null) => void;\n locale?: string;\n /**\n * Flag for menu that using as actions on DropdownMenu.Item\n */\n inlineActions?: boolean;\n};\n\n/** @deprecated */\nexport interface IDropdownMenuListProps extends DropdownMenuListProps, UnknownProperties {}\nexport type DropdownMenuListProps = BoxProps &\n ScrollAreaProps & {\n /**\n * Size of the menu\n * @default m\n */\n size?: DropdownMenuSize;\n };\n\n/** @deprecated */\nexport interface IDropdownMenuMenuProps extends DropdownMenuMenuProps, UnknownProperties {}\nexport type DropdownMenuMenuProps = DropdownMenuListProps & {};\n\n/** @deprecated */\nexport interface IDropdownMenuItemProps extends DropdownMenuItemProps, UnknownProperties {}\nexport type DropdownMenuItemProps = FlexProps & {\n /**\n * Enables selected state\n * @deprecated Dropdown menu item can't have that state\n */\n selected?: boolean;\n /**\n * Disables item\n */\n disabled?: boolean;\n /**\n * Adds focus styles around\n */\n highlighted?: boolean;\n /**\n * Disables hover state\n * @deprecated use `disabled` instead\n */\n notInteractive?: boolean;\n /**\n * Size of the component\n * @default m\n */\n size?: DropdownMenuSize;\n};\n\n/** @deprecated */\nexport interface IDropdownMenuItemHintProps extends DropdownMenuItemHintProps, UnknownProperties {}\nexport type DropdownMenuItemHintProps = FlexProps & {\n /**\n * Size of the component\n * @default m\n */\n size?: DropdownMenuSize;\n};\n\n/** @deprecated */\nexport interface IDropdownMenuItemTitleProps\n extends DropdownMenuItemTitleProps,\n UnknownProperties {}\nexport type DropdownMenuItemTitleProps = FlexProps & {\n /**\n * Size of the component\n * @default m\n */\n size?: DropdownMenuSize;\n};\n\n/** @deprecated */\nexport interface IDropdownMenuContext extends DropdownMenuContext, UnknownProperties {}\nexport type DropdownMenuContext = DropdownContext & {\n highlightedIndex?: number;\n getListProps: PropGetterFn;\n getItemProps: PropGetterFn;\n getItemHintProps: PropGetterFn;\n getItemTitleProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface IDropdownMenuHandlers extends DropdownMenuHandlers, UnknownProperties {}\nexport type DropdownMenuHandlers = DropdownHandlers & {\n highlightedIndex: (index: number) => void;\n};\n\nexport type DropdownMenuTriggerProps = DropdownTriggerProps;\n\ndeclare const DropdownMenu: Intergalactic.Component<\n 'div',\n DropdownMenuProps,\n DropdownMenuContext,\n [handlers: DropdownMenuHandlers]\n> & {\n Trigger: typeof Dropdown.Trigger;\n Popper: Intergalactic.Component<'div', DropdownMenuProps & DropdownPopperAriaProps>;\n List: Intergalactic.Component<\n 'div',\n DropdownMenuListProps,\n DropdownMenuContext,\n [handlers: DropdownMenuHandlers]\n >;\n Actions: Intergalactic.Component<\n typeof Flex,\n DropdownMenuListProps,\n DropdownMenuContext,\n [handlers: DropdownMenuHandlers]\n >;\n Menu: Intergalactic.Component<\n 'div',\n DropdownMenuMenuProps,\n DropdownMenuContext,\n [handlers: DropdownMenuHandlers]\n >;\n Item: Intergalactic.Component<\n typeof Dropdown.Item,\n DropdownMenuItemProps,\n DropdownMenuContext,\n [handlers: DropdownMenuHandlers]\n > & {\n Addon: typeof Box;\n Content: typeof Flex;\n Text: typeof Text;\n Hint: typeof Flex;\n };\n /**\n * @deprecated Use Group with title prop\n */\n ItemTitle: Intergalactic.Component<'div', DropdownMenuItemTitleProps>;\n /**\n * @deprecated Use prop subTitle on Group or Item component\n */\n ItemHint: Intergalactic.Component<'div', DropdownMenuItemHintProps>;\n Group: typeof Dropdown.Group;\n /**\n * @deprecated Use Item instead of Nesting\n */\n Nesting: Intergalactic.Component<\n 'div',\n DropdownMenuItemProps,\n DropdownMenuContext,\n [handlers: DropdownMenuHandlers]\n > & {\n /**\n * @deprecated Use Item instead of Nesting\n */\n Trigger: Intergalactic.Component<'div', DropdownMenuItemProps>;\n /**\n * @deprecated Use Item instead of Nesting\n */\n Item: Intergalactic.Component<'div', DropdownMenuItemProps>;\n /**\n * @deprecated Use Item instead of Nesting\n */\n Addon: typeof Box;\n };\n\n selectedIndexContext: React.Context<number>;\n};\n\nexport default DropdownMenu;\n"],"mappings":""}
@@ -35,24 +35,24 @@ import ScrollAreaComponent, { hideScrollBarsFromScreenReadersContext } from 'int
35
35
  import { useUID } from 'intergalactic/utils/lib/uniqueID';
36
36
  import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
37
37
  /*__reshadow-styles__:"./style/dropdown-menu.shadow.css"*/
38
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDropdownMenuList_br0nj_gg_{max-height:240px;padding:var(--intergalactic-spacing-1x, 4px)0;position:relative;min-height:26px;min-width:32px;box-sizing:content-box;z-index:0;color:var(--intergalactic-text-primary, #191b23)}.___SDropdownMenuList_br0nj_gg_ .___SShadowHorizontal_br0nj_gg_:after,.___SDropdownMenuList_br0nj_gg_ .___SShadowHorizontal_br0nj_gg_:before{width:16px;height:100%;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_br0nj_gg_ .___SShadowHorizontal_br0nj_gg_._position_median_br0nj_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_br0nj_gg_ .___SShadowHorizontal_br0nj_gg_._position_median_br0nj_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_br0nj_gg_ .___SShadowHorizontal_br0nj_gg_._position_start_br0nj_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_br0nj_gg_ .___SShadowHorizontal_br0nj_gg_._position_end_br0nj_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_br0nj_gg_ .___SShadowVertical_br0nj_gg_:after,.___SDropdownMenuList_br0nj_gg_ .___SShadowVertical_br0nj_gg_:before{width:100%;height:16px;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_br0nj_gg_ .___SShadowVertical_br0nj_gg_._position_median_br0nj_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_br0nj_gg_ .___SShadowVertical_br0nj_gg_._position_median_br0nj_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_br0nj_gg_ .___SShadowVertical_br0nj_gg_._position_start_br0nj_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_br0nj_gg_ .___SShadowVertical_br0nj_gg_._position_end_br0nj_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuItemContainer_br0nj_gg_.__nesting-trigger_br0nj_gg_{justify-content:space-between}.___SDropdownMenuItemAddon_br0nj_gg_,.___SItemContentText_br0nj_gg_{display:inline-flex;margin-left:var(--intergalactic-spacing-1x, 4px);margin-right:var(--intergalactic-spacing-1x, 4px)}.___SDropdownMenuItemAddon_br0nj_gg_:first-child,.___SItemContentText_br0nj_gg_:first-child{margin-left:0}.___SDropdownMenuItemAddon_br0nj_gg_:last-child,.___SItemContentText_br0nj_gg_:last-child{margin-right:0}.___SDropdownMenuNesting_br0nj_gg_,.___SDropdownMenuNesting_br0nj_gg_._size_l_br0nj_gg_,.___SDropdownMenuNesting_br0nj_gg_._size_m_br0nj_gg_{padding:0}.___SDropdownMenuNesting_br0nj_gg_.__highlighted_br0nj_gg_{z-index:1;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5)) inset}.___SDropdownNestingItem_br0nj_gg_._size_l_br0nj_gg_,.___SDropdownNestingItem_br0nj_gg_._size_m_br0nj_gg_{padding-right:0}.___SDropdownNestingItem_br0nj_gg_ .___SDropdownMenuItemContainer_br0nj_gg_{width:auto;padding-top:0;padding-bottom:0;padding-left:0;min-height:auto}.___SItemContent_br0nj_gg_:focus{outline:0}.___SItemHint_br0nj_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}" /*__inner_css_end__*/, "br0nj_gg_") /*__reshadow_css_end__*/, {
39
- "__SDropdownMenuItemContainer": "___SDropdownMenuItemContainer_br0nj_gg_",
40
- "_nesting-trigger": "__nesting-trigger_br0nj_gg_",
41
- "__SDropdownMenuNesting": "___SDropdownMenuNesting_br0nj_gg_",
42
- "_size_l": "_size_l_br0nj_gg_",
43
- "_size_m": "_size_m_br0nj_gg_",
44
- "_highlighted": "__highlighted_br0nj_gg_",
45
- "__SDropdownNestingItem": "___SDropdownNestingItem_br0nj_gg_",
46
- "__SItemContent": "___SItemContent_br0nj_gg_",
47
- "__SItemHint": "___SItemHint_br0nj_gg_",
48
- "__SDropdownMenuList": "___SDropdownMenuList_br0nj_gg_",
49
- "__SShadowHorizontal": "___SShadowHorizontal_br0nj_gg_",
50
- "_position_median": "_position_median_br0nj_gg_",
51
- "_position_start": "_position_start_br0nj_gg_",
52
- "_position_end": "_position_end_br0nj_gg_",
53
- "__SShadowVertical": "___SShadowVertical_br0nj_gg_",
54
- "__SDropdownMenuItemAddon": "___SDropdownMenuItemAddon_br0nj_gg_",
55
- "__SItemContentText": "___SItemContentText_br0nj_gg_"
38
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDropdownMenuList_10zcc_gg_{max-height:240px;padding:var(--intergalactic-spacing-1x, 4px)0;position:relative;min-height:26px;min-width:32px;box-sizing:content-box;z-index:0;color:var(--intergalactic-text-primary, #191b23)}.___SDropdownMenuList_10zcc_gg_ .___SShadowHorizontal_10zcc_gg_:after,.___SDropdownMenuList_10zcc_gg_ .___SShadowHorizontal_10zcc_gg_:before{width:16px;height:100%;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_10zcc_gg_ .___SShadowHorizontal_10zcc_gg_._position_median_10zcc_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_10zcc_gg_ .___SShadowHorizontal_10zcc_gg_._position_median_10zcc_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_10zcc_gg_ .___SShadowHorizontal_10zcc_gg_._position_start_10zcc_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-left,\n linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_10zcc_gg_ .___SShadowHorizontal_10zcc_gg_._position_end_10zcc_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-right,\n linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_10zcc_gg_ .___SShadowVertical_10zcc_gg_:after,.___SDropdownMenuList_10zcc_gg_ .___SShadowVertical_10zcc_gg_:before{width:100%;height:16px;border-radius:var(--intergalactic-control-rounded, 6px)}.___SDropdownMenuList_10zcc_gg_ .___SShadowVertical_10zcc_gg_._position_median_10zcc_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_10zcc_gg_ .___SShadowVertical_10zcc_gg_._position_median_10zcc_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_10zcc_gg_ .___SShadowVertical_10zcc_gg_._position_start_10zcc_gg_:before{background:var(--intergalactic-scroll-area-dropdown-menu-top,\n linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuList_10zcc_gg_ .___SShadowVertical_10zcc_gg_._position_end_10zcc_gg_:after{background:var(--intergalactic-scroll-area-dropdown-menu-bottom,\n linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)\n )}.___SDropdownMenuItemContainer_10zcc_gg_.__nesting-trigger_10zcc_gg_{justify-content:space-between}.___SDropdownMenuItemAddon_10zcc_gg_,.___SItemContentText_10zcc_gg_{display:inline-flex;margin-left:var(--intergalactic-spacing-1x, 4px);margin-right:var(--intergalactic-spacing-1x, 4px)}.___SDropdownMenuItemAddon_10zcc_gg_:first-child,.___SItemContentText_10zcc_gg_:first-child{margin-left:0}.___SDropdownMenuItemAddon_10zcc_gg_:last-child,.___SItemContentText_10zcc_gg_:last-child{margin-right:0}.___SDropdownMenuNesting_10zcc_gg_,.___SDropdownMenuNesting_10zcc_gg_._size_l_10zcc_gg_,.___SDropdownMenuNesting_10zcc_gg_._size_m_10zcc_gg_{padding:0}.___SDropdownMenuNesting_10zcc_gg_.__highlighted_10zcc_gg_{z-index:1;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5)) inset}.___SDropdownNestingItem_10zcc_gg_._size_l_10zcc_gg_,.___SDropdownNestingItem_10zcc_gg_._size_m_10zcc_gg_{padding-right:0}.___SDropdownNestingItem_10zcc_gg_ .___SDropdownMenuItemContainer_10zcc_gg_{width:auto;padding-top:0;padding-bottom:0;padding-left:0;min-height:auto}.___SItemContent_10zcc_gg_:focus{outline:0}.___SItemHint_10zcc_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}" /*__inner_css_end__*/, "10zcc_gg_") /*__reshadow_css_end__*/, {
39
+ "__SDropdownMenuItemContainer": "___SDropdownMenuItemContainer_10zcc_gg_",
40
+ "_nesting-trigger": "__nesting-trigger_10zcc_gg_",
41
+ "__SDropdownMenuNesting": "___SDropdownMenuNesting_10zcc_gg_",
42
+ "_size_l": "_size_l_10zcc_gg_",
43
+ "_size_m": "_size_m_10zcc_gg_",
44
+ "_highlighted": "__highlighted_10zcc_gg_",
45
+ "__SDropdownNestingItem": "___SDropdownNestingItem_10zcc_gg_",
46
+ "__SItemContent": "___SItemContent_10zcc_gg_",
47
+ "__SItemHint": "___SItemHint_10zcc_gg_",
48
+ "__SDropdownMenuList": "___SDropdownMenuList_10zcc_gg_",
49
+ "__SShadowHorizontal": "___SShadowHorizontal_10zcc_gg_",
50
+ "_position_median": "_position_median_10zcc_gg_",
51
+ "_position_start": "_position_start_10zcc_gg_",
52
+ "_position_end": "_position_end_10zcc_gg_",
53
+ "__SShadowVertical": "___SShadowVertical_10zcc_gg_",
54
+ "__SDropdownMenuItemAddon": "___SDropdownMenuItemAddon_10zcc_gg_",
55
+ "__SItemContentText": "___SItemContentText_10zcc_gg_"
56
56
  });
57
57
  import { useFocusSource } from 'intergalactic/utils/lib/enhances/keyboardFocusEnhance';
58
58
  import { isAdvanceMode } from 'intergalactic/utils/lib/findComponent';
@@ -77,6 +77,7 @@ var DropdownMenuRoot = /*#__PURE__*/function (_AbstractDropdown) {
77
77
  args[_key] = arguments[_key];
78
78
  }
79
79
  _this = _super.call.apply(_super, [this].concat(args));
80
+ _defineProperty(_assertThisInitialized(_this), "actionsRef", /*#__PURE__*/React.createRef());
80
81
  _defineProperty(_assertThisInitialized(_this), "role", 'menu');
81
82
  return _this;
82
83
  }
@@ -114,27 +115,31 @@ var DropdownMenuRoot = /*#__PURE__*/function (_AbstractDropdown) {
114
115
  key: "getPopperProps",
115
116
  value: function getPopperProps() {
116
117
  return _objectSpread(_objectSpread({}, _get(_getPrototypeOf(DropdownMenuRoot.prototype), "getPopperProps", this).call(this)), {}, {
117
- onKeyDown: callAllEventHandlers(this.handlePreventCommonKeyDown.bind(this), this.handlePreventPopperKeyDown.bind(this)
118
- // this.handleKeyDownForPopper.bind(this),
119
- )
118
+ onKeyDown: callAllEventHandlers(this.handlePreventCommonKeyDown.bind(this), this.handlePreventPopperKeyDown.bind(this))
120
119
  });
121
120
  }
122
121
  }, {
123
122
  key: "getActionsProps",
124
123
  value: function getActionsProps() {
125
- return this.getListProps();
124
+ return _objectSpread(_objectSpread({}, this.getListProps()), {}, {
125
+ ref: this.actionsRef,
126
+ onKeyDown: callAllEventHandlers(this.handlePreventTabOnActions.bind(this), this.handlePreventCommonKeyDown.bind(this), this.handleKeyDownForMenu('list'), this.handleArrowKeyDown.bind(this))
127
+ });
126
128
  }
127
129
  }, {
128
130
  key: "getItemProps",
129
131
  value: function getItemProps(props, index) {
130
132
  var _this2 = this;
131
- var highlightedIndex = this.asProps.highlightedIndex;
133
+ var _this$asProps2 = this.asProps,
134
+ highlightedIndex = _this$asProps2.highlightedIndex,
135
+ visible = _this$asProps2.visible;
132
136
  var isHighlighted = index === highlightedIndex;
133
137
  var itemProps = _objectSpread(_objectSpread({}, _get(_getPrototypeOf(DropdownMenuRoot.prototype), "getItemProps", this).call(this, props, index)), {}, {
134
- tabIndex: isHighlighted ? 0 : -1,
138
+ tabIndex: isHighlighted && visible ? 0 : -1,
135
139
  ref: function ref(node) {
136
140
  return _this2.itemRef(props, index, node);
137
- }
141
+ },
142
+ actionsRef: this.actionsRef
138
143
  });
139
144
  if (props.tag === ButtonComponent) {
140
145
  var _props$use, _props$theme, _props$size;
@@ -180,15 +185,24 @@ var DropdownMenuRoot = /*#__PURE__*/function (_AbstractDropdown) {
180
185
  }
181
186
  };
182
187
  }
188
+ }, {
189
+ key: "handlePreventTabOnActions",
190
+ value: function handlePreventTabOnActions(e) {
191
+ if (e.key === 'Tab') {
192
+ e.stopPropagation();
193
+ e.preventDefault();
194
+ return false;
195
+ }
196
+ }
183
197
  }, {
184
198
  key: "render",
185
199
  value: function render() {
186
200
  var _ref = this.asProps;
187
- var _this$asProps2 = this.asProps,
188
- Children = _this$asProps2.Children,
189
- selectedIndex = _this$asProps2.selectedIndex,
190
- interaction = _this$asProps2.interaction,
191
- timeout = _this$asProps2.timeout;
201
+ var _this$asProps3 = this.asProps,
202
+ Children = _this$asProps3.Children,
203
+ selectedIndex = _this$asProps3.selectedIndex,
204
+ interaction = _this$asProps3.interaction,
205
+ timeout = _this$asProps3.timeout;
192
206
  this.itemProps = [];
193
207
  return /*#__PURE__*/React.createElement(selectedIndexContext.Provider, {
194
208
  value: selectedIndex
@@ -267,7 +281,9 @@ function Item(_ref25) {
267
281
  disabled = _ref25.disabled,
268
282
  Children = _ref25.Children,
269
283
  forwardRef = _ref25.forwardRef,
270
- role = _ref25.role;
284
+ role = _ref25.role,
285
+ tabIndex = _ref25.tabIndex,
286
+ actionsRef = _ref25.actionsRef;
271
287
  var SDropdownMenuItemContainer = Dropdown.Item;
272
288
  var itemRef = React.useRef();
273
289
  var _React$useState = React.useState(false),
@@ -277,7 +293,8 @@ function Item(_ref25) {
277
293
  var menuItemContextValue = {
278
294
  contentId: id,
279
295
  ref: forkRef(forwardRef, itemRef),
280
- role: role
296
+ role: role,
297
+ tabIndex: tabIndex
281
298
  };
282
299
  var ariaDescribes = [];
283
300
  var hasSubMenu = isAdvanceMode(Children, [DropdownMenu.displayName], true);
@@ -304,6 +321,9 @@ function Item(_ref25) {
304
321
  var onBlur = function onBlur(e) {
305
322
  if (e.target === itemRef.current) {
306
323
  setHighlighted(false);
324
+ if (actionsRef.current) {
325
+ itemRef.current.tabIndex = -1;
326
+ }
307
327
  }
308
328
  };
309
329
  document.addEventListener('focus', onFocus, {
@@ -329,7 +349,7 @@ function Item(_ref25) {
329
349
  "use:highlighted": !disabled && highlighted && focusSourceRef.current === 'keyboard',
330
350
  "use:role": advancedMode ? undefined : role,
331
351
  "use:id": advancedMode ? undefined : id,
332
- "tabIndex": advancedMode ? undefined : -1
352
+ "use:tabIndex": advancedMode ? -1 : tabIndex
333
353
  }, _ref5))), /*#__PURE__*/React.createElement(Children, _ref16.cn("Children", {}))));
334
354
  }
335
355
  function Addon(props) {
@@ -376,7 +396,7 @@ function ItemContent(_ref26) {
376
396
  return _ref17 = sstyled(styles), /*#__PURE__*/React.createElement(SItemContent, _ref17.cn("SItemContent", _objectSpread({}, _assignProps7({
377
397
  "role": menuItemCtxValue.role,
378
398
  "id": menuItemCtxValue.contentId,
379
- "tabIndex": -1,
399
+ "tabIndex": menuItemCtxValue.tabIndex,
380
400
  "ref": forkRef(menuItemCtxValue.ref, ref),
381
401
  "use:aria-describedby": _toConsumableArray(describedby).join(' '),
382
402
  "aria-haspopup": menuItemCtxValue.hasSubMenu ? 'true' : undefined,