una-nuxt-module 3.0.28 → 3.0.29
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
package/dist/module.mjs
CHANGED
|
@@ -2,6 +2,6 @@ import type { VariantProps } from "class-variance-authority";
|
|
|
2
2
|
export { default as Button } from "./Button.vue.js";
|
|
3
3
|
export declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
-
size?: "default" | "
|
|
5
|
+
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type ApiFetch = <T>(_request: Parameters<typeof $fetch>[0], _options?: Parameters<typeof $fetch>[1]) => Promise<IApiResponse<T>>;
|
|
1
|
+
import type { ApiFetch } from '../types/index.js';
|
|
3
2
|
declare const _default: import("#app").Plugin<{
|
|
4
3
|
api: {
|
|
5
4
|
fetch: ApiFetch;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { NitroFetchOptions, NitroFetchRequest } from 'nitropack';
|
|
2
|
+
import type { IApiResponse } from '#unaxt/types';
|
|
2
3
|
export type GetFetchOptions = NitroFetchOptions<NitroFetchRequest, 'get'>;
|
|
3
4
|
export type PutFetchOptions = NitroFetchOptions<NitroFetchRequest, 'put'>;
|
|
4
5
|
export type PostFetchOptions = NitroFetchOptions<NitroFetchRequest, 'post'>;
|
|
5
6
|
export type PatchFetchOptions = NitroFetchOptions<NitroFetchRequest, 'patch'>;
|
|
6
7
|
export type DeleteFetchOptions = NitroFetchOptions<NitroFetchRequest, 'delete'>;
|
|
8
|
+
export type ApiFetch = <T>(_request: Parameters<typeof $fetch>[0], _options?: Parameters<typeof $fetch>[1]) => Promise<IApiResponse<T>>;
|