@neovici/cosmoz-dropdown 5.0.0 → 5.2.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.
- package/dist/use-floating.d.ts +5 -0
- package/dist/use-floating.js +1 -1
- package/package.json +3 -1
package/dist/use-floating.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { ComputePositionConfig, Placement, Strategy } from '@floating-ui/dom';
|
|
2
|
+
export declare const defaultMiddleware: {
|
|
3
|
+
name: string;
|
|
4
|
+
options?: any;
|
|
5
|
+
fn: (state: import("@floating-ui/dom").MiddlewareState) => import("@floating-ui/core").MiddlewareReturn | Promise<import("@floating-ui/core").MiddlewareReturn>;
|
|
6
|
+
}[];
|
|
2
7
|
interface UseFloating extends Pick<ComputePositionConfig, 'placement' | 'strategy' | 'middleware'> {
|
|
3
8
|
}
|
|
4
9
|
export declare const useFloating: ({ placement, strategy, middleware, }: UseFloating) => {
|
package/dist/use-floating.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useState } from '@pionjs/pion';
|
|
2
2
|
import { autoUpdate, computePosition, flip, shift, } from '@floating-ui/dom';
|
|
3
|
-
const defaultMiddleware = [
|
|
3
|
+
export const defaultMiddleware = [
|
|
4
4
|
flip({
|
|
5
5
|
fallbackAxisSideDirection: 'start',
|
|
6
6
|
crossAxis: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-dropdown",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "A simple dropdown web component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lit-html",
|
|
@@ -67,6 +67,8 @@
|
|
|
67
67
|
".": "./dist/index.js",
|
|
68
68
|
"./use-focus": "./dist/use-focus.js",
|
|
69
69
|
"./use-position": "./dist/use-position.js",
|
|
70
|
+
"./use-floating": "./dist/use-floating.js",
|
|
71
|
+
"./connectable": "./dist/connectable.js",
|
|
70
72
|
"./src/use-focus.js": "./dist/use-focus.js",
|
|
71
73
|
"./src/use-position.js": "./dist/use-position.js"
|
|
72
74
|
},
|