From c57f42a328f5327600ee597c4e6400594c37f749 Mon Sep 17 00:00:00 2001 From: Jim Wright Date: Thu, 10 Jun 2021 11:28:39 -0600 Subject: [PATCH] fix(overlays): export overlay utils Co-authored-by: jorenbroekema --- .changeset/old-penguins-dream.md | 5 +++++ packages/overlays/index.js | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 .changeset/old-penguins-dream.md diff --git a/.changeset/old-penguins-dream.md b/.changeset/old-penguins-dream.md new file mode 100644 index 000000000..f3c67a250 --- /dev/null +++ b/.changeset/old-penguins-dream.md @@ -0,0 +1,5 @@ +--- +'@lion/overlays': patch +--- + +Export overlay utils so they can be used on their own diff --git a/packages/overlays/index.js b/packages/overlays/index.js index 4e93fcd88..e52c36663 100644 --- a/packages/overlays/index.js +++ b/packages/overlays/index.js @@ -8,3 +8,9 @@ export { ArrowMixin } from './src/ArrowMixin.js'; export { withBottomSheetConfig } from './src/configurations/withBottomSheetConfig.js'; export { withModalDialogConfig } from './src/configurations/withModalDialogConfig.js'; export { withDropdownConfig } from './src/configurations/withDropdownConfig.js'; + +export { containFocus, rotateFocus } from './src/utils/contain-focus.js'; +export { deepContains } from './src/utils/deep-contains.js'; +export { getDeepActiveElement } from './src/utils/get-deep-active-element.js'; +export { getFocusableElements } from './src/utils/get-focusable-elements.js'; +export { setSiblingsInert, unsetSiblingsInert } from './src/utils/inert-siblings.js';