vueless 0.0.478-beta.12 → 0.0.478-beta.13
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.
|
@@ -14,6 +14,15 @@ export enum Direction {
|
|
|
14
14
|
export type Align = `${Direction}`;
|
|
15
15
|
export type Position = { x: Align; y: Align };
|
|
16
16
|
|
|
17
|
+
// TODO: Remove it after ui.form-date-picker-range and ui.form-date-picker ts migration (use enum there instead).
|
|
18
|
+
export const POSITION = {
|
|
19
|
+
left: "left",
|
|
20
|
+
right: "right",
|
|
21
|
+
top: "top",
|
|
22
|
+
bottom: "bottom",
|
|
23
|
+
auto: "auto",
|
|
24
|
+
};
|
|
25
|
+
|
|
17
26
|
export function useAutoPosition(
|
|
18
27
|
anchorElement: MaybeRef<HTMLElement | null>,
|
|
19
28
|
targetElement: MaybeRef<HTMLElement | null>,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
wrapper: "relative inline-block",
|
|
3
|
+
wrapperActive: "group",
|
|
3
4
|
dropdownLink: "{ULink}",
|
|
4
|
-
dropdownLinkActive: "group ring-dynamic ring-offset-4 ring-brand-700/15",
|
|
5
5
|
dropdownIcon: "{UIcon} block transition duration-300 group-[]:rotate-180",
|
|
6
6
|
dropdownList: {
|
|
7
7
|
base: "{UDropdownList} w-fit",
|
|
@@ -9,14 +9,12 @@ export default function useAttrs(props, { isShownOptions }) {
|
|
|
9
9
|
() => props.config,
|
|
10
10
|
);
|
|
11
11
|
|
|
12
|
-
const extendingKeys = ["
|
|
12
|
+
const extendingKeys = ["wrapperActive"];
|
|
13
13
|
const extendingKeysClasses = getExtendingKeysClasses(extendingKeys);
|
|
14
14
|
|
|
15
15
|
const keysAttrs = getKeysAttrs({}, extendingKeys, {
|
|
16
|
-
|
|
17
|
-
extend: computed(() => [
|
|
18
|
-
isShownOptions.value && extendingKeysClasses.dropdownLinkActive.value,
|
|
19
|
-
]),
|
|
16
|
+
wrapper: {
|
|
17
|
+
extend: computed(() => [isShownOptions.value && extendingKeysClasses.wrapperActive.value]),
|
|
20
18
|
},
|
|
21
19
|
});
|
|
22
20
|
|