@fusion.dev/helix-core 0.217.0 → 0.219.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.
@@ -1,5 +1,24 @@
1
1
  const TOOLBAR = '[role="toolbar"], helix-toolbar, helix-headless-toolbar';
2
- export const toolbarAround = (element) => element.parentElement?.closest(TOOLBAR) ?? null;
2
+ const PANEL = [
3
+ 'helix-dialog',
4
+ 'helix-drawer',
5
+ 'helix-headless-dialog',
6
+ 'helix-headless-drawer',
7
+ 'helix-headless-megamenu',
8
+ 'helix-headless-menu',
9
+ 'helix-headless-popover',
10
+ 'helix-megamenu',
11
+ 'helix-menu',
12
+ 'helix-popover',
13
+ '[popover]',
14
+ '[role="dialog"]',
15
+ '[role="menu"]',
16
+ 'dialog',
17
+ ].join(', ');
18
+ export const toolbarAround = (element) => {
19
+ const found = element.parentElement?.closest(`${TOOLBAR}, ${PANEL}`);
20
+ return found?.matches(TOOLBAR) ? found : null;
21
+ };
3
22
  export const toolbarAxis = (toolbar) => (toolbar.getAttribute('orientation') ?? toolbar.getAttribute('aria-orientation')) === 'vertical'
4
23
  ? 'vertical'
5
24
  : 'horizontal';
package/dist/version.d.ts CHANGED
@@ -6,4 +6,4 @@
6
6
  * release, so the two never disagree; a spec beside this holds them to it.
7
7
  * Nothing else in the running code knows which release it is.
8
8
  */
9
- export declare const VERSION = "0.217.0";
9
+ export declare const VERSION = "0.219.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.217.0';
1
+ export const VERSION = '0.219.0';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix-core",
3
3
  "description": "Helix element primitives: base classes, mixins, decorators, utilities.",
4
- "version": "0.217.0",
4
+ "version": "0.219.0",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -81,12 +81,12 @@
81
81
  "bugs": "https://github.com/project-fusion/fusion/issues",
82
82
  "dependencies": {
83
83
  "@floating-ui/dom": "^1.8.0",
84
- "@fusion.dev/helix-icons": "0.217.0",
84
+ "@fusion.dev/helix-icons": "0.219.0",
85
85
  "tslib": "^2.8.1"
86
86
  },
87
87
  "devDependencies": {
88
- "@fusion.dev/helix-cem": "0.217.0",
89
- "@fusion.dev/helix-testing": "0.217.0",
88
+ "@fusion.dev/helix-cem": "0.219.0",
89
+ "@fusion.dev/helix-testing": "0.219.0",
90
90
  "@lit-labs/ssr": "^4.1.0",
91
91
  "lit": "^3.2.1"
92
92
  },