@lumx/core 4.4.1-alpha.3 → 4.5.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.
@@ -24,6 +24,9 @@ export declare function isClickAway(targets: HTMLElement[], elements: HTMLElemen
24
24
  * Adds mousedown/touchstart listeners on `document` and calls the callback when a click
25
25
  * occurs outside the elements returned by `getElements`.
26
26
  *
27
+ * Note: when `getElements` returns an empty array, any click is considered a click away.
28
+ * Callers should guard against calling `setupClickAway` when no refs are registered.
29
+ *
27
30
  * @param getElements - Getter returning the current list of elements considered "inside".
28
31
  * @param callback - Callback to invoke on click away.
29
32
  * @returns A teardown function that removes the event listeners.
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/lumapps/design-system/issues"
7
7
  },
8
8
  "dependencies": {
9
- "@lumx/icons": "^4.4.1-alpha.3",
9
+ "@lumx/icons": "^4.5.0",
10
10
  "classnames": "^2.3.2",
11
11
  "focus-visible": "^5.0.2",
12
12
  "lodash": "4.17.23",
@@ -66,7 +66,7 @@
66
66
  "update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
67
67
  },
68
68
  "sideEffects": false,
69
- "version": "4.4.1-alpha.3",
69
+ "version": "4.5.0",
70
70
  "devDependencies": {
71
71
  "@rollup/plugin-typescript": "^12.3.0",
72
72
  "@testing-library/dom": "^10.4.1",
@@ -89,6 +89,5 @@
89
89
  "vite": "^7.3.1",
90
90
  "vite-tsconfig-paths": "^5.1.4",
91
91
  "vitest": "^4.0.18"
92
- },
93
- "stableVersion": "4.4.0"
92
+ }
94
93
  }