sit-onyx 1.0.0-beta.30 → 1.0.0-beta.32
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/components/OnyxSelect/types.d.ts +8 -0
- package/dist/composables/useOpenDirection.d.ts +13 -0
- package/dist/index.cjs +4 -4
- package/dist/index.js +1130 -1098
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -71,6 +71,12 @@ export type OnyxSelectProps<TValue extends SelectOptionValue = SelectOptionValue
|
|
|
71
71
|
* Property is managed internally, when undefined.
|
|
72
72
|
*/
|
|
73
73
|
open?: ManagedProp<boolean>;
|
|
74
|
+
/**
|
|
75
|
+
* Alignment of the select flyout relative to the input.
|
|
76
|
+
* If set to full, the width of the flyout will be aligned (100%) with the input of the select.
|
|
77
|
+
* Otherwise the flyout width will fit the options content width and aligned left/right.
|
|
78
|
+
*/
|
|
79
|
+
alignment?: SelectAlignment;
|
|
74
80
|
/**
|
|
75
81
|
* Label describing the list of options to support assistive technologies.
|
|
76
82
|
* @example: { label: "Your Animal", listLabel: "List of animals" }
|
|
@@ -113,3 +119,5 @@ export type SelectLazyLoading = {
|
|
|
113
119
|
*/
|
|
114
120
|
scrollOffset?: number;
|
|
115
121
|
};
|
|
122
|
+
export declare const SELECT_ALIGNMENTS: readonly ["full", "left", "right"];
|
|
123
|
+
export type SelectAlignment = (typeof SELECT_ALIGNMENTS)[number];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type MaybeRef } from "vue";
|
|
2
|
+
export type OpenDirection = "top" | "bottom";
|
|
3
|
+
export declare const useOpenDirection: (element: MaybeRef<Element | undefined>) => {
|
|
4
|
+
/**
|
|
5
|
+
* Direction in which the flyout etc. should open to.
|
|
6
|
+
*/
|
|
7
|
+
openDirection: import("vue").Ref<OpenDirection>;
|
|
8
|
+
/**
|
|
9
|
+
* Detects in which direction a flyout etc. should be opened, depending on the available space in each direction.
|
|
10
|
+
* Should only be called onBeforeMount or later to support server side rendering.
|
|
11
|
+
*/
|
|
12
|
+
updateOpenDirection: () => void;
|
|
13
|
+
};
|