@neovici/cosmoz-dropdown 3.2.0 → 3.3.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,6 +1,6 @@
1
1
  export interface UseFocusOpts {
2
2
  disabled?: boolean;
3
- onFocus: (focused: boolean) => void;
3
+ onFocus?: (focused: boolean) => void;
4
4
  }
5
5
  export declare const useFocus: ({ disabled, onFocus }: UseFocusOpts) => {
6
6
  active: boolean | undefined;
@@ -11,6 +11,6 @@ export interface PositionOpts {
11
11
  }
12
12
  export declare const position: ({ host, anchor, placement, confinement, limit, }: PositionOpts) => void;
13
13
  interface UsePositionOpts extends Omit<PositionOpts, 'anchor'> {
14
- anchor?: (() => HTMLElement) | HTMLElement | null;
14
+ anchor?: (() => HTMLElement | null) | HTMLElement | null;
15
15
  }
16
16
  export declare const usePosition: ({ anchor: anchorage, host, ...thru }: UsePositionOpts) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-dropdown",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "A simple dropdown web component",
5
5
  "keywords": [
6
6
  "lit-html",