pangea-lib 4.0.413 → 4.0.415
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/main.cjs.js +1846 -1846
- package/dist/main.css +2 -2
- package/dist/main.es.js +40869 -39766
- package/dist/types/components/PgaModal.vue.d.ts +6 -6
- package/dist/types/composables/index.d.ts +1 -0
- package/dist/types/composables/use-floating-dropdown.composable.d.ts +29 -0
- package/package.json +2 -1
|
@@ -12,13 +12,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
12
12
|
isLoading: {
|
|
13
13
|
type: import('vue').PropType<boolean>;
|
|
14
14
|
};
|
|
15
|
-
confirmButtons: {
|
|
16
|
-
type: import('vue').PropType<boolean>;
|
|
17
|
-
};
|
|
18
15
|
width: {
|
|
19
16
|
type: import('vue').PropType<Size>;
|
|
20
17
|
default: string;
|
|
21
18
|
};
|
|
19
|
+
confirmButtons: {
|
|
20
|
+
type: import('vue').PropType<boolean>;
|
|
21
|
+
};
|
|
22
22
|
acceptText: {
|
|
23
23
|
type: import('vue').PropType<StrOrFn>;
|
|
24
24
|
};
|
|
@@ -43,13 +43,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
43
43
|
isLoading: {
|
|
44
44
|
type: import('vue').PropType<boolean>;
|
|
45
45
|
};
|
|
46
|
-
confirmButtons: {
|
|
47
|
-
type: import('vue').PropType<boolean>;
|
|
48
|
-
};
|
|
49
46
|
width: {
|
|
50
47
|
type: import('vue').PropType<Size>;
|
|
51
48
|
default: string;
|
|
52
49
|
};
|
|
50
|
+
confirmButtons: {
|
|
51
|
+
type: import('vue').PropType<boolean>;
|
|
52
|
+
};
|
|
53
53
|
acceptText: {
|
|
54
54
|
type: import('vue').PropType<StrOrFn>;
|
|
55
55
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Placement } from '@floating-ui/vue';
|
|
3
|
+
|
|
4
|
+
type MaybeElementRef = Readonly<Ref<HTMLElement | null | undefined>>;
|
|
5
|
+
interface UseFloatingDropdownOptions {
|
|
6
|
+
/** Whether the floating element is currently open. */
|
|
7
|
+
open: Readonly<Ref<boolean>>;
|
|
8
|
+
/** Preferred placement relative to the reference element. */
|
|
9
|
+
placement?: Placement;
|
|
10
|
+
/** Gap (in px) between the reference and the floating element. */
|
|
11
|
+
offset?: number;
|
|
12
|
+
/** Match the floating element width to the reference element width. */
|
|
13
|
+
matchReferenceWidth?: boolean;
|
|
14
|
+
/** Minimum max-height (in px) so the dropdown stays usable on short viewports. */
|
|
15
|
+
minMaxHeight?: number;
|
|
16
|
+
/** Padding (in px) kept from the viewport edges when flipping/shifting/sizing. */
|
|
17
|
+
viewportPadding?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Shared positioning engine for every custom dropdown / popover in the library.
|
|
21
|
+
*
|
|
22
|
+
* Built on @floating-ui, which positions against the visual viewport and keeps
|
|
23
|
+
* the floating element glued to its reference across scroll, resize, device
|
|
24
|
+
* rotation and the iOS on-screen keyboard (via `autoUpdate`). `flip`, `shift`
|
|
25
|
+
* and `size` keep it inside the viewport on every device instead of overflowing
|
|
26
|
+
* or rendering off-screen.
|
|
27
|
+
*/
|
|
28
|
+
export declare function useFloatingDropdown(reference: MaybeElementRef, floating: MaybeElementRef, options: UseFloatingDropdownOptions): import('@floating-ui/vue').UseFloatingReturn;
|
|
29
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pangea-lib",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.415",
|
|
5
5
|
"author": "Gianfranco Raselli",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"homepage": "https://github.com/GianfrancoRaselli/pangea-lib#readme",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"deploy": "node deploy.js"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
+
"@floating-ui/vue": "1.1.11",
|
|
40
41
|
"@lucide/vue": "1.14.0",
|
|
41
42
|
"@vuelidate/core": "2.0.3",
|
|
42
43
|
"@vuelidate/validators": "2.0.4",
|