@resee-movies/nuxt-ux 0.2.0 → 0.2.1
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/module.json
CHANGED
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
</script>
|
|
17
17
|
|
|
18
18
|
<script setup>
|
|
19
|
+
import { resolveComponent } from "vue";
|
|
19
20
|
import { getReseeUxConstant } from "../config";
|
|
20
21
|
import Button from "./Button.vue";
|
|
21
|
-
const LinkComponent = getReseeUxConstant("UiLinkBaseComponent");
|
|
22
|
+
const LinkComponent = getReseeUxConstant("UiLinkBaseComponent") ?? resolveComponent("NuxtLink");
|
|
22
23
|
const props = defineProps({
|
|
23
24
|
to: { type: null, required: true },
|
|
24
25
|
external: { type: Boolean, required: false, default: false },
|
|
@@ -11,7 +11,7 @@ export interface LinkProps extends /* @vue-ignore */ Omit<ButtonProps, 'bordered
|
|
|
11
11
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
12
12
|
target: "_blank" | "_parent" | "_self" | "_top";
|
|
13
13
|
spacing: "wide" | "normal";
|
|
14
|
-
variant: "
|
|
14
|
+
variant: "a" | "btn";
|
|
15
15
|
external: boolean;
|
|
16
16
|
underline: boolean;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
package/dist/runtime/config.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { type Component } from 'vue';
|
|
|
3
3
|
* Runtime constants can be set once and then used throughout this package.
|
|
4
4
|
*/
|
|
5
5
|
export type ReseeUxRuntimeConstants = {
|
|
6
|
-
UiLinkBaseComponent
|
|
6
|
+
UiLinkBaseComponent?: Component;
|
|
7
7
|
};
|
|
8
8
|
export type ConstantsKey = keyof ReseeUxRuntimeConstants;
|
|
9
9
|
export type ConstantsValue<K extends ConstantsKey> = ReseeUxRuntimeConstants[K];
|
package/dist/runtime/config.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { NuxtLink } from "#components";
|
|
2
1
|
import { isObjectLike } from "@resee-movies/utilities/objects/is-object-like";
|
|
3
2
|
const RuntimeConstants = {
|
|
4
|
-
UiLinkBaseComponent:
|
|
3
|
+
UiLinkBaseComponent: void 0
|
|
5
4
|
};
|
|
6
5
|
export function setReseeUxConstant(keyOrObject, valueOrUndef) {
|
|
7
6
|
if (isObjectLike(keyOrObject)) {
|
package/package.json
CHANGED