@witchcraft/ui 0.3.0 → 0.3.2
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 +1 -1
- package/dist/module.mjs +4 -1
- package/dist/runtime/components/LibButton/LibButton.d.vue.ts +1 -1
- package/dist/runtime/components/LibButton/LibButton.vue.d.ts +1 -1
- package/dist/runtime/components/LibCheckbox/LibCheckbox.d.vue.ts +1 -1
- package/dist/runtime/components/LibCheckbox/LibCheckbox.vue.d.ts +1 -1
- package/dist/runtime/components/LibColorInput/LibColorInput.d.vue.ts +2 -2
- package/dist/runtime/components/LibColorInput/LibColorInput.vue.d.ts +2 -2
- package/dist/runtime/components/LibColorPicker/LibColorPicker.d.vue.ts +2 -2
- package/dist/runtime/components/LibColorPicker/LibColorPicker.vue.d.ts +2 -2
- package/dist/runtime/components/LibColorPicker/utils/safeConvertToHsva.d.ts +1 -1
- package/dist/runtime/components/LibColorPicker/utils/safeConvertToRgba.d.ts +1 -1
- package/dist/runtime/components/LibColorPicker/utils/toLowPrecisionRgbaString.d.ts +1 -1
- package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.d.vue.ts +1 -1
- package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.vue.d.ts +1 -1
- package/dist/runtime/components/LibDatePicker/LibDatePicker.d.vue.ts +1 -1
- package/dist/runtime/components/LibDatePicker/LibDatePicker.vue.d.ts +1 -1
- package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.d.vue.ts +1 -1
- package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.vue.d.ts +1 -1
- package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.d.vue.ts +1 -1
- package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.vue.d.ts +1 -1
- package/dist/runtime/components/LibFileInput/LibFileInput.d.vue.ts +2 -2
- package/dist/runtime/components/LibFileInput/LibFileInput.vue.d.ts +2 -2
- package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.d.vue.ts +1 -1
- package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.vue.d.ts +1 -1
- package/dist/runtime/components/LibLabel/LibLabel.d.vue.ts +1 -1
- package/dist/runtime/components/LibLabel/LibLabel.vue.d.ts +1 -1
- package/dist/runtime/components/LibMultiValues/LibMultiValues.d.vue.ts +1 -1
- package/dist/runtime/components/LibMultiValues/LibMultiValues.vue.d.ts +1 -1
- package/dist/runtime/components/LibNotifications/LibNotification.d.vue.ts +2 -2
- package/dist/runtime/components/LibNotifications/LibNotification.vue.d.ts +2 -2
- package/dist/runtime/components/LibNotifications/LibNotifications.d.vue.ts +2 -2
- package/dist/runtime/components/LibNotifications/LibNotifications.vue.d.ts +2 -2
- package/dist/runtime/components/LibPagination/LibPagination.d.vue.ts +1 -1
- package/dist/runtime/components/LibPagination/LibPagination.vue.d.ts +1 -1
- package/dist/runtime/components/LibPalette/LibPalette.d.vue.ts +1 -1
- package/dist/runtime/components/LibPalette/LibPalette.vue.d.ts +1 -1
- package/dist/runtime/components/LibPopup/LibPopup.d.vue.ts +4 -4
- package/dist/runtime/components/LibPopup/LibPopup.vue.d.ts +4 -4
- package/dist/runtime/components/LibProgressBar/LibProgressBar.d.vue.ts +1 -1
- package/dist/runtime/components/LibProgressBar/LibProgressBar.vue.d.ts +1 -1
- package/dist/runtime/components/LibRecorder/LibRecorder.d.vue.ts +1 -1
- package/dist/runtime/components/LibRecorder/LibRecorder.vue.d.ts +1 -1
- package/dist/runtime/components/LibRoot/LibRoot.d.vue.ts +2 -2
- package/dist/runtime/components/LibRoot/LibRoot.vue.d.ts +2 -2
- package/dist/runtime/components/LibSimpleInput/LibSimpleInput.d.vue.ts +1 -1
- package/dist/runtime/components/LibSimpleInput/LibSimpleInput.vue.d.ts +1 -1
- package/dist/runtime/components/LibSuggestions/LibSuggestions.d.vue.ts +1 -1
- package/dist/runtime/components/LibSuggestions/LibSuggestions.vue.d.ts +1 -1
- package/dist/runtime/components/LibTable/LibTable.d.vue.ts +2 -2
- package/dist/runtime/components/LibTable/LibTable.vue.d.ts +2 -2
- package/dist/runtime/components/Template/TemplateStory.d.ts +1 -1
- package/dist/runtime/components/index.d.ts +20 -20
- package/dist/runtime/components/shared/props.d.ts +1 -1
- package/dist/runtime/composables/index.d.ts +15 -15
- package/dist/runtime/composables/useDragWithThreshold.d.ts +1 -1
- package/dist/runtime/composables/useInjectedDarkMode.d.ts +1 -1
- package/dist/runtime/composables/useInjectedI18n.d.ts +1 -1
- package/dist/runtime/composables/useInjectedLocale.d.ts +1 -1
- package/dist/runtime/composables/useNotificationHandler.d.ts +1 -1
- package/dist/runtime/composables/useScrollNearContainerEdges.d.ts +1 -1
- package/dist/runtime/composables/useSetupDarkMode.d.ts +1 -1
- package/dist/runtime/composables/useSuggestions.d.ts +1 -1
- package/dist/runtime/directives/index.d.ts +4 -4
- package/dist/runtime/globalResizeObserver.d.ts +1 -1
- package/dist/runtime/helpers/index.d.ts +10 -10
- package/dist/runtime/helpers/resizeObserverWrapper.d.ts +1 -1
- package/dist/runtime/injectionKeys.d.ts +2 -2
- package/dist/runtime/main.lib.d.ts +10 -10
- package/dist/runtime/tailwind/index.d.ts +1 -1
- package/package.json +10 -3
- package/src/module.ts +4 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -145,7 +145,10 @@ const module = defineNuxtModule({
|
|
|
145
145
|
const mainCssFile = await resolvePath(options.mainCssFile, nuxt.options.alias);
|
|
146
146
|
const exists = fs.existsSync(mainCssFile);
|
|
147
147
|
if (exists) {
|
|
148
|
-
|
|
148
|
+
logger.info(`Adding ${options.mainCssFile}.`);
|
|
149
|
+
nuxt.options.css.push(options.mainCssFile);
|
|
150
|
+
} else {
|
|
151
|
+
logger.warn(`Could not find ${options.mainCssFile} (resolved to ${mainCssFile}).`);
|
|
149
152
|
}
|
|
150
153
|
nuxt.options.alias["#witchcraft-ui"] = resolve("runtime");
|
|
151
154
|
nuxt.options.alias["#witchcraft-ui-helpers"] = resolve("runtime/helpers");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ButtonHTMLAttributes } from "vue";
|
|
2
|
-
import { type BaseInteractiveProps, type ButtonProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import { type BaseInteractiveProps, type ButtonProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js";
|
|
3
3
|
type RealProps = LinkableByIdProps & LabelProps & BaseInteractiveProps & ButtonProps;
|
|
4
4
|
interface Props extends
|
|
5
5
|
/** @vue-ignore */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ButtonHTMLAttributes } from "vue";
|
|
2
|
-
import { type BaseInteractiveProps, type ButtonProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import { type BaseInteractiveProps, type ButtonProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js";
|
|
3
3
|
type RealProps = LinkableByIdProps & LabelProps & BaseInteractiveProps & ButtonProps;
|
|
4
4
|
interface Props extends
|
|
5
5
|
/** @vue-ignore */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes, type InputHTMLAttributes } from "vue";
|
|
2
|
-
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js
|
|
2
|
+
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js";
|
|
3
3
|
type WrapperTypes = Partial<WrapperProps<"label", HTMLAttributes, {
|
|
4
4
|
/** Tailwind classes. */
|
|
5
5
|
class?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes, type InputHTMLAttributes } from "vue";
|
|
2
|
-
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js
|
|
2
|
+
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js";
|
|
3
3
|
type WrapperTypes = Partial<WrapperProps<"label", HTMLAttributes, {
|
|
4
4
|
/** Tailwind classes. */
|
|
5
5
|
class?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ButtonHTMLAttributes } from "vue";
|
|
2
|
-
import type { HsvaColor, RgbaColor } from "../../types/index.js
|
|
3
|
-
import { type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import type { HsvaColor, RgbaColor } from "../../types/index.js";
|
|
3
|
+
import { type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js";
|
|
4
4
|
type RealProps = LabelProps & LinkableByIdProps & {
|
|
5
5
|
allowAlpha?: boolean;
|
|
6
6
|
border?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ButtonHTMLAttributes } from "vue";
|
|
2
|
-
import type { HsvaColor, RgbaColor } from "../../types/index.js
|
|
3
|
-
import { type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import type { HsvaColor, RgbaColor } from "../../types/index.js";
|
|
3
|
+
import { type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js";
|
|
4
4
|
type RealProps = LabelProps & LinkableByIdProps & {
|
|
5
5
|
allowAlpha?: boolean;
|
|
6
6
|
border?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HsvaColor, RgbaColor } from "../../types/index.js
|
|
2
|
-
import { type LabelProps, type LinkableByIdProps } from "../shared/props.js
|
|
1
|
+
import type { HsvaColor, RgbaColor } from "../../types/index.js";
|
|
2
|
+
import { type LabelProps, type LinkableByIdProps } from "../shared/props.js";
|
|
3
3
|
type __VLS_Props = LabelProps & LinkableByIdProps & {
|
|
4
4
|
allowAlpha?: boolean;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HsvaColor, RgbaColor } from "../../types/index.js
|
|
2
|
-
import { type LabelProps, type LinkableByIdProps } from "../shared/props.js
|
|
1
|
+
import type { HsvaColor, RgbaColor } from "../../types/index.js";
|
|
2
|
+
import { type LabelProps, type LinkableByIdProps } from "../shared/props.js";
|
|
3
3
|
type __VLS_Props = LabelProps & LinkableByIdProps & {
|
|
4
4
|
allowAlpha?: boolean;
|
|
5
5
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { HsvaColor, RgbaColor } from "../../../types/index.js
|
|
1
|
+
import type { HsvaColor, RgbaColor } from "../../../types/index.js";
|
|
2
2
|
export declare function safeConvertToHsva(val: string | RgbaColor, allowAlpha: boolean): HsvaColor | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { HsvaColor, RgbaColor } from "../../../types/index.js
|
|
1
|
+
import type { HsvaColor, RgbaColor } from "../../../types/index.js";
|
|
2
2
|
export declare function safeConvertToRgba(val: string | HsvaColor, allowAlpha: boolean): RgbaColor | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { RgbaColor } from "../../../main.lib.js
|
|
1
|
+
import type { RgbaColor } from "../../../main.lib.js";
|
|
2
2
|
export declare function toLowPrecisionRgbaString(rgba: RgbaColor, withAlpha: boolean, precision: number): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ButtonHTMLAttributes } from "vue";
|
|
2
|
-
import type { TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import type { TailwindClassProp } from "../shared/props.js";
|
|
3
3
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
4
|
"update:darkMode": (value: boolean) => any;
|
|
5
5
|
"update:darkModeState": (value: "system" | "dark" | "light") => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ButtonHTMLAttributes } from "vue";
|
|
2
|
-
import type { TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import type { TailwindClassProp } from "../shared/props.js";
|
|
3
3
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
4
|
"update:darkMode": (value: boolean) => any;
|
|
5
5
|
"update:darkModeState": (value: "system" | "dark" | "light") => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type HTMLAttributes, type InputHTMLAttributes } from "vue";
|
|
2
|
-
import type { FileInputError } from "../../types/index.js
|
|
3
|
-
import { type LinkableByIdProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js
|
|
2
|
+
import type { FileInputError } from "../../types/index.js";
|
|
3
|
+
import { type LinkableByIdProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js";
|
|
4
4
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
5
|
input: (val: File[]) => any;
|
|
6
6
|
errors: (val: FileInputError[]) => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type HTMLAttributes, type InputHTMLAttributes } from "vue";
|
|
2
|
-
import type { FileInputError } from "../../types/index.js
|
|
3
|
-
import { type LinkableByIdProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js
|
|
2
|
+
import type { FileInputError } from "../../types/index.js";
|
|
3
|
+
import { type LinkableByIdProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js";
|
|
4
4
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
5
|
input: (val: File[]) => any;
|
|
6
6
|
errors: (val: FileInputError[]) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes, type InputHTMLAttributes } from "vue";
|
|
2
|
-
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type SuggestionsProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js
|
|
2
|
+
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type SuggestionsProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js";
|
|
3
3
|
type WrapperTypes = WrapperProps<"suggestions", HTMLAttributes> & WrapperProps<"wrapper", HTMLAttributes> & WrapperProps<"inner-wrapper", HTMLAttributes>;
|
|
4
4
|
type RealProps = SuggestionsProps & LinkableByIdProps & LabelProps & BaseInteractiveProps & {
|
|
5
5
|
suggestions?: SuggestionsProps["suggestions"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes, type InputHTMLAttributes } from "vue";
|
|
2
|
-
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type SuggestionsProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js
|
|
2
|
+
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type SuggestionsProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js";
|
|
3
3
|
type WrapperTypes = WrapperProps<"suggestions", HTMLAttributes> & WrapperProps<"wrapper", HTMLAttributes> & WrapperProps<"inner-wrapper", HTMLAttributes>;
|
|
4
4
|
type RealProps = SuggestionsProps & LinkableByIdProps & LabelProps & BaseInteractiveProps & {
|
|
5
5
|
suggestions?: SuggestionsProps["suggestions"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LabelHTMLAttributes } from "vue";
|
|
2
|
-
import type { BaseInteractiveProps, LabelProps, LinkableByIdProps, TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import type { BaseInteractiveProps, LabelProps, LinkableByIdProps, TailwindClassProp } from "../shared/props.js";
|
|
3
3
|
type RealProps = LinkableByIdProps & LabelProps & BaseInteractiveProps & {
|
|
4
4
|
unstyled?: boolean;
|
|
5
5
|
valid?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LabelHTMLAttributes } from "vue";
|
|
2
|
-
import type { BaseInteractiveProps, LabelProps, LinkableByIdProps, TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import type { BaseInteractiveProps, LabelProps, LinkableByIdProps, TailwindClassProp } from "../shared/props.js";
|
|
3
3
|
type RealProps = LinkableByIdProps & LabelProps & BaseInteractiveProps & {
|
|
4
4
|
unstyled?: boolean;
|
|
5
5
|
valid?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from "vue";
|
|
2
|
-
import type { BaseInteractiveProps, LabelProps, TailwindClassProp, WrapperProps } from "../shared/props.js
|
|
2
|
+
import type { BaseInteractiveProps, LabelProps, TailwindClassProp, WrapperProps } from "../shared/props.js";
|
|
3
3
|
type WrapperTypes = Partial<WrapperProps<"item", HTMLAttributes>>;
|
|
4
4
|
type RealProps = LabelProps & BaseInteractiveProps & {
|
|
5
5
|
border?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from "vue";
|
|
2
|
-
import type { BaseInteractiveProps, LabelProps, TailwindClassProp, WrapperProps } from "../shared/props.js
|
|
2
|
+
import type { BaseInteractiveProps, LabelProps, TailwindClassProp, WrapperProps } from "../shared/props.js";
|
|
3
3
|
type WrapperTypes = Partial<WrapperProps<"item", HTMLAttributes>>;
|
|
4
4
|
type RealProps = LabelProps & BaseInteractiveProps & {
|
|
5
5
|
border?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type HTMLAttributes } from "vue";
|
|
2
|
-
import { type NotificationEntry, NotificationHandler } from "../../helpers/NotificationHandler.js
|
|
3
|
-
import type { TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import { type NotificationEntry, NotificationHandler } from "../../helpers/NotificationHandler.js";
|
|
3
|
+
import type { TailwindClassProp } from "../shared/props.js";
|
|
4
4
|
type RealProps = {
|
|
5
5
|
notification: NotificationEntry;
|
|
6
6
|
handler?: NotificationHandler;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type HTMLAttributes } from "vue";
|
|
2
|
-
import { type NotificationEntry, NotificationHandler } from "../../helpers/NotificationHandler.js
|
|
3
|
-
import type { TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import { type NotificationEntry, NotificationHandler } from "../../helpers/NotificationHandler.js";
|
|
3
|
+
import type { TailwindClassProp } from "../shared/props.js";
|
|
4
4
|
type RealProps = {
|
|
5
5
|
notification: NotificationEntry;
|
|
6
6
|
handler?: NotificationHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NotificationHandler } from "../../helpers/NotificationHandler.js
|
|
2
|
-
import type { LinkableByIdProps, TailwindClassProp } from "../shared/props.js
|
|
1
|
+
import { NotificationHandler } from "../../helpers/NotificationHandler.js";
|
|
2
|
+
import type { LinkableByIdProps, TailwindClassProp } from "../shared/props.js";
|
|
3
3
|
import type { HTMLAttributes } from "vue";
|
|
4
4
|
type RealProps = LinkableByIdProps & {
|
|
5
5
|
/** If not provided, uses the global handler (this requires useNotificationHandler be called and configured). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NotificationHandler } from "../../helpers/NotificationHandler.js
|
|
2
|
-
import type { LinkableByIdProps, TailwindClassProp } from "../shared/props.js
|
|
1
|
+
import { NotificationHandler } from "../../helpers/NotificationHandler.js";
|
|
2
|
+
import type { LinkableByIdProps, TailwindClassProp } from "../shared/props.js";
|
|
3
3
|
import type { HTMLAttributes } from "vue";
|
|
4
4
|
type RealProps = LinkableByIdProps & {
|
|
5
5
|
/** If not provided, uses the global handler (this requires useNotificationHandler be called and configured). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Theme } from "metamorphosis";
|
|
2
|
-
import type { BaseInteractiveProps, LinkableByIdProps } from "../shared/props.js
|
|
2
|
+
import type { BaseInteractiveProps, LinkableByIdProps } from "../shared/props.js";
|
|
3
3
|
declare const _default: import("vue").DefineComponent<LinkableByIdProps & BaseInteractiveProps & {
|
|
4
4
|
theme?: Theme;
|
|
5
5
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkableByIdProps & BaseInteractiveProps & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Theme } from "metamorphosis";
|
|
2
|
-
import type { BaseInteractiveProps, LinkableByIdProps } from "../shared/props.js
|
|
2
|
+
import type { BaseInteractiveProps, LinkableByIdProps } from "../shared/props.js";
|
|
3
3
|
declare const _default: import("vue").DefineComponent<LinkableByIdProps & BaseInteractiveProps & {
|
|
4
4
|
theme?: Theme;
|
|
5
5
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkableByIdProps & BaseInteractiveProps & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type HTMLAttributes } from "vue";
|
|
2
|
-
import { type LinkableByIdProps, type TailwindClassProp, type PopupProps } from "../shared/props.js
|
|
3
|
-
import type { IPopupReference } from "../../types/index.js
|
|
2
|
+
import { type LinkableByIdProps, type TailwindClassProp, type PopupProps } from "../shared/props.js";
|
|
3
|
+
import type { IPopupReference } from "../../types/index.js";
|
|
4
4
|
type RealProps = LinkableByIdProps & PopupProps;
|
|
5
5
|
interface Props extends
|
|
6
6
|
/** @vue-ignore */
|
|
@@ -25,8 +25,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props & {
|
|
|
25
25
|
canClose: boolean;
|
|
26
26
|
useDialogForBackdrop: false;
|
|
27
27
|
useBackdrop: boolean;
|
|
28
|
-
preferredHorizontal: ("center" | "right" | "left" | "either" | "center-screen" | "right-most" | "left-most" | "center-most")[] | import("../../main.lib.js
|
|
29
|
-
preferredVertical: ("top" | "bottom" | "center" | "either" | "center-screen" | "top-most" | "bottom-most" | "center-most")[] | import("../../main.lib.js
|
|
28
|
+
preferredHorizontal: ("center" | "right" | "left" | "either" | "center-screen" | "right-most" | "left-most" | "center-most")[] | import("../../main.lib.js").PopupPositioner;
|
|
29
|
+
preferredVertical: ("top" | "bottom" | "center" | "either" | "center-screen" | "top-most" | "bottom-most" | "center-most")[] | import("../../main.lib.js").PopupPositioner;
|
|
30
30
|
avoidRepositioning: boolean;
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
32
32
|
button?: (props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type HTMLAttributes } from "vue";
|
|
2
|
-
import { type LinkableByIdProps, type TailwindClassProp, type PopupProps } from "../shared/props.js
|
|
3
|
-
import type { IPopupReference } from "../../types/index.js
|
|
2
|
+
import { type LinkableByIdProps, type TailwindClassProp, type PopupProps } from "../shared/props.js";
|
|
3
|
+
import type { IPopupReference } from "../../types/index.js";
|
|
4
4
|
type RealProps = LinkableByIdProps & PopupProps;
|
|
5
5
|
interface Props extends
|
|
6
6
|
/** @vue-ignore */
|
|
@@ -25,8 +25,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props & {
|
|
|
25
25
|
canClose: boolean;
|
|
26
26
|
useDialogForBackdrop: false;
|
|
27
27
|
useBackdrop: boolean;
|
|
28
|
-
preferredHorizontal: ("center" | "right" | "left" | "either" | "center-screen" | "right-most" | "left-most" | "center-most")[] | import("../../main.lib.js
|
|
29
|
-
preferredVertical: ("top" | "bottom" | "center" | "either" | "center-screen" | "top-most" | "bottom-most" | "center-most")[] | import("../../main.lib.js
|
|
28
|
+
preferredHorizontal: ("center" | "right" | "left" | "either" | "center-screen" | "right-most" | "left-most" | "center-most")[] | import("../../main.lib.js").PopupPositioner;
|
|
29
|
+
preferredVertical: ("top" | "bottom" | "center" | "either" | "center-screen" | "top-most" | "bottom-most" | "center-most")[] | import("../../main.lib.js").PopupPositioner;
|
|
30
30
|
avoidRepositioning: boolean;
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
32
32
|
button?: (props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js
|
|
1
|
+
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js";
|
|
2
2
|
import type { HTMLAttributes } from "vue";
|
|
3
3
|
type RealProps = LinkableByIdProps & BaseInteractiveProps & LabelProps & {
|
|
4
4
|
progress: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js
|
|
1
|
+
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js";
|
|
2
2
|
import type { HTMLAttributes } from "vue";
|
|
3
3
|
type RealProps = LinkableByIdProps & BaseInteractiveProps & LabelProps & {
|
|
4
4
|
progress: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from "vue";
|
|
2
|
-
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js";
|
|
3
3
|
type RealProps = LinkableByIdProps & BaseInteractiveProps & LabelProps & {
|
|
4
4
|
border?: boolean;
|
|
5
5
|
/** A value to display while recording, if none given the i18n `recorder.recording` key is used. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from "vue";
|
|
2
|
-
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js";
|
|
3
3
|
type RealProps = LinkableByIdProps & BaseInteractiveProps & LabelProps & {
|
|
4
4
|
border?: boolean;
|
|
5
5
|
/** A value to display while recording, if none given the i18n `recorder.recording` key is used. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Theme } from "metamorphosis";
|
|
2
|
-
import { NotificationHandler } from "../../helpers/NotificationHandler.js
|
|
2
|
+
import { NotificationHandler } from "../../helpers/NotificationHandler.js";
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
theme?: Theme;
|
|
5
5
|
outline?: boolean;
|
|
@@ -19,7 +19,7 @@ type __VLS_Slots = {} & {
|
|
|
19
19
|
default?: (props: typeof __VLS_9) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
22
|
-
darkMode: import("../../composables/useDarkMode.js
|
|
22
|
+
darkMode: import("../../composables/useDarkMode.js").DarkModeState & import("../../composables/useDarkMode.js").DarkModeCommands;
|
|
23
23
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
24
24
|
theme: Theme;
|
|
25
25
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Theme } from "metamorphosis";
|
|
2
|
-
import { NotificationHandler } from "../../helpers/NotificationHandler.js
|
|
2
|
+
import { NotificationHandler } from "../../helpers/NotificationHandler.js";
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
theme?: Theme;
|
|
5
5
|
outline?: boolean;
|
|
@@ -19,7 +19,7 @@ type __VLS_Slots = {} & {
|
|
|
19
19
|
default?: (props: typeof __VLS_9) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
22
|
-
darkMode: import("../../composables/useDarkMode.js
|
|
22
|
+
darkMode: import("../../composables/useDarkMode.js").DarkModeState & import("../../composables/useDarkMode.js").DarkModeCommands;
|
|
23
23
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
24
24
|
theme: Theme;
|
|
25
25
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type InputHTMLAttributes } from "vue";
|
|
2
|
-
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js";
|
|
3
3
|
type RealProps = LinkableByIdProps & LabelProps & BaseInteractiveProps & {
|
|
4
4
|
placeholder?: InputHTMLAttributes["placeholder"];
|
|
5
5
|
disabled?: InputHTMLAttributes["disabled"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type InputHTMLAttributes } from "vue";
|
|
2
|
-
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js";
|
|
3
3
|
type RealProps = LinkableByIdProps & LabelProps & BaseInteractiveProps & {
|
|
4
4
|
placeholder?: InputHTMLAttributes["placeholder"];
|
|
5
5
|
disabled?: InputHTMLAttributes["disabled"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from "vue";
|
|
2
|
-
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type SuggestionsEmits, type SuggestionsProps, type WrapperProps } from "../shared/props.js
|
|
2
|
+
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type SuggestionsEmits, type SuggestionsProps, type WrapperProps } from "../shared/props.js";
|
|
3
3
|
type WrapperTypes = Partial<WrapperProps<"item", HTMLAttributes, {
|
|
4
4
|
/** Tailwind classes. */
|
|
5
5
|
class?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HTMLAttributes } from "vue";
|
|
2
|
-
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type SuggestionsEmits, type SuggestionsProps, type WrapperProps } from "../shared/props.js
|
|
2
|
+
import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type SuggestionsEmits, type SuggestionsProps, type WrapperProps } from "../shared/props.js";
|
|
3
3
|
type WrapperTypes = Partial<WrapperProps<"item", HTMLAttributes, {
|
|
4
4
|
/** Tailwind classes. */
|
|
5
5
|
class?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type TableHTMLAttributes } from "vue";
|
|
2
|
-
import type { ResizableOptions, TableColConfig } from "../../types/index.js
|
|
3
|
-
import type { TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import type { ResizableOptions, TableColConfig } from "../../types/index.js";
|
|
3
|
+
import type { TailwindClassProp } from "../shared/props.js";
|
|
4
4
|
type T = any;
|
|
5
5
|
type RealProps = {
|
|
6
6
|
resizable?: Partial<ResizableOptions>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type TableHTMLAttributes } from "vue";
|
|
2
|
-
import type { ResizableOptions, TableColConfig } from "../../types/index.js
|
|
3
|
-
import type { TailwindClassProp } from "../shared/props.js
|
|
2
|
+
import type { ResizableOptions, TableColConfig } from "../../types/index.js";
|
|
3
|
+
import type { TailwindClassProp } from "../shared/props.js";
|
|
4
4
|
type T = any;
|
|
5
5
|
type RealProps = {
|
|
6
6
|
resizable?: Partial<ResizableOptions>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { default as aria } from "./Aria/Aria.vue
|
|
2
|
-
export { default as LibButton } from "./LibButton/LibButton.vue
|
|
3
|
-
export { default as LibCheckbox } from "./LibCheckbox/LibCheckbox.vue
|
|
4
|
-
export { default as LibColorInput } from "./LibColorInput/LibColorInput.vue
|
|
5
|
-
export { default as LibColorPicker } from "./LibColorPicker/LibColorPicker.vue
|
|
6
|
-
export { default as LibDarkModeSwitcher } from "./LibDarkModeSwitcher/LibDarkModeSwitcher.vue
|
|
7
|
-
export { default as LibDatePicker } from "./LibDatePicker/LibDatePicker.vue
|
|
8
|
-
export { default as LibDebug } from "./LibDebug/LibDebug.vue
|
|
9
|
-
export { default as LibFileInput } from "./LibFileInput/LibFileInput.vue
|
|
10
|
-
export { default as LibInputDeprecated } from "./LibInputDeprecated/LibInputDeprecated.vue
|
|
11
|
-
export { default as LibLabel } from "./LibLabel/LibLabel.vue
|
|
12
|
-
export { default as LibNotifications } from "./LibNotifications/LibNotifications.vue
|
|
13
|
-
export { default as LibPagination } from "./LibPagination/LibPagination.vue
|
|
14
|
-
export { default as LibPopup } from "./LibPopup/LibPopup.vue
|
|
15
|
-
export { default as LibProgressBar } from "./LibProgressBar/LibProgressBar.vue
|
|
16
|
-
export { default as LibRecorder } from "./LibRecorder/LibRecorder.vue
|
|
17
|
-
export { default as LibRoot } from "./LibRoot/LibRoot.vue
|
|
18
|
-
export { default as LibSimpleInput } from "./LibSimpleInput/LibSimpleInput.vue
|
|
19
|
-
export { default as LibTable } from "./LibTable/LibTable.vue
|
|
20
|
-
export { default as LibTimeZonePicker } from "./LibDatePicker/LibTimeZonePicker.vue
|
|
1
|
+
export { default as aria } from "./Aria/Aria.vue";
|
|
2
|
+
export { default as LibButton } from "./LibButton/LibButton.vue";
|
|
3
|
+
export { default as LibCheckbox } from "./LibCheckbox/LibCheckbox.vue";
|
|
4
|
+
export { default as LibColorInput } from "./LibColorInput/LibColorInput.vue";
|
|
5
|
+
export { default as LibColorPicker } from "./LibColorPicker/LibColorPicker.vue";
|
|
6
|
+
export { default as LibDarkModeSwitcher } from "./LibDarkModeSwitcher/LibDarkModeSwitcher.vue";
|
|
7
|
+
export { default as LibDatePicker } from "./LibDatePicker/LibDatePicker.vue";
|
|
8
|
+
export { default as LibDebug } from "./LibDebug/LibDebug.vue";
|
|
9
|
+
export { default as LibFileInput } from "./LibFileInput/LibFileInput.vue";
|
|
10
|
+
export { default as LibInputDeprecated } from "./LibInputDeprecated/LibInputDeprecated.vue";
|
|
11
|
+
export { default as LibLabel } from "./LibLabel/LibLabel.vue";
|
|
12
|
+
export { default as LibNotifications } from "./LibNotifications/LibNotifications.vue";
|
|
13
|
+
export { default as LibPagination } from "./LibPagination/LibPagination.vue";
|
|
14
|
+
export { default as LibPopup } from "./LibPopup/LibPopup.vue";
|
|
15
|
+
export { default as LibProgressBar } from "./LibProgressBar/LibProgressBar.vue";
|
|
16
|
+
export { default as LibRecorder } from "./LibRecorder/LibRecorder.vue";
|
|
17
|
+
export { default as LibRoot } from "./LibRoot/LibRoot.vue";
|
|
18
|
+
export { default as LibSimpleInput } from "./LibSimpleInput/LibSimpleInput.vue";
|
|
19
|
+
export { default as LibTable } from "./LibTable/LibTable.vue";
|
|
20
|
+
export { default as LibTimeZonePicker } from "./LibDatePicker/LibTimeZonePicker.vue";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { useAccesibilityOutline } from "./useAccesibilityOutline.js
|
|
2
|
-
export { useAriaLabel } from "./useAriaLabel.js
|
|
3
|
-
export { useDarkMode } from "./useDarkMode.js
|
|
4
|
-
export { useDivideAttrs } from "./useDivideAttrs.js
|
|
5
|
-
export { useDragWithThreshold } from "./useDragWithThreshold.js
|
|
6
|
-
export { useGlobalResizeObserver } from "./useGlobalResizeObserver.js
|
|
7
|
-
export { useInjectedDarkMode } from "./useInjectedDarkMode.js
|
|
8
|
-
export { useInjectedI18n } from "./useInjectedI18n.js
|
|
9
|
-
export { useInjectedLocale } from "./useInjectedLocale.js
|
|
10
|
-
export { useNotificationHandler } from "./useNotificationHandler.js
|
|
11
|
-
export { usePreHydrationValue } from "./usePreHydrationValue.js
|
|
12
|
-
export { useScrollNearContainerEdges } from "./useScrollNearContainerEdges.js
|
|
13
|
-
export { useSetupDarkMode } from "./useSetupDarkMode.js
|
|
14
|
-
export { useShowDevOnlyKey } from "./useShowDevOnlyKey.js
|
|
15
|
-
export { useSuggestions } from "./useSuggestions.js
|
|
1
|
+
export { useAccesibilityOutline } from "./useAccesibilityOutline.js";
|
|
2
|
+
export { useAriaLabel } from "./useAriaLabel.js";
|
|
3
|
+
export { useDarkMode } from "./useDarkMode.js";
|
|
4
|
+
export { useDivideAttrs } from "./useDivideAttrs.js";
|
|
5
|
+
export { useDragWithThreshold } from "./useDragWithThreshold.js";
|
|
6
|
+
export { useGlobalResizeObserver } from "./useGlobalResizeObserver.js";
|
|
7
|
+
export { useInjectedDarkMode } from "./useInjectedDarkMode.js";
|
|
8
|
+
export { useInjectedI18n } from "./useInjectedI18n.js";
|
|
9
|
+
export { useInjectedLocale } from "./useInjectedLocale.js";
|
|
10
|
+
export { useNotificationHandler } from "./useNotificationHandler.js";
|
|
11
|
+
export { usePreHydrationValue } from "./usePreHydrationValue.js";
|
|
12
|
+
export { useScrollNearContainerEdges } from "./useScrollNearContainerEdges.js";
|
|
13
|
+
export { useSetupDarkMode } from "./useSetupDarkMode.js";
|
|
14
|
+
export { useShowDevOnlyKey } from "./useShowDevOnlyKey.js";
|
|
15
|
+
export { useSuggestions } from "./useSuggestions.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DarkModeCommands, DarkModeState } from "./useDarkMode.js
|
|
1
|
+
import type { DarkModeCommands, DarkModeState } from "./useDarkMode.js";
|
|
2
2
|
export declare function useInjectedDarkMode(): DarkModeState & DarkModeCommands;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { TranslationFunction } from "./useSetupI18n.js
|
|
1
|
+
import type { TranslationFunction } from "./useSetupI18n.js";
|
|
2
2
|
export declare function useInjectedI18n(): TranslationFunction;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { useSetupLocale } from "./useSetupLocale.js
|
|
1
|
+
import type { useSetupLocale } from "./useSetupLocale.js";
|
|
2
2
|
export declare function useInjectedLocale(): ReturnType<typeof useSetupLocale>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NotificationHandler } from "../helpers/NotificationHandler.js
|
|
1
|
+
import type { NotificationHandler } from "../helpers/NotificationHandler.js";
|
|
2
2
|
export declare const useNotificationHandler: (handler?: NotificationHandler,
|
|
3
3
|
/** True by default, should be passed import.meta.client if using nuxt, or false when running server side. */
|
|
4
4
|
isClientSide?: boolean) => NotificationHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Ref } from "vue";
|
|
2
|
-
import type { ScrollNearContainerEdgesOptions } from "../types/index.js
|
|
2
|
+
import type { ScrollNearContainerEdgesOptions } from "../types/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* Creates a function `scrollContainer` that allows scrolling a container manually when the coordinates are near it's edges.
|
|
5
5
|
* Supports scrolling faster the closer one is to the edge, and configuing an inner and outer margin.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AnyFunction } from "@alanscodelog/utils";
|
|
2
2
|
import { type Ref } from "vue";
|
|
3
|
-
import type { SuggestionsEmits, SuggestionsOptions } from "../components/shared/props.js
|
|
3
|
+
import type { SuggestionsEmits, SuggestionsOptions } from "../components/shared/props.js";
|
|
4
4
|
/**
|
|
5
5
|
* The logic for the suggestions component.
|
|
6
6
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { vDetectFlex } from "./vDetectFlex.js
|
|
2
|
-
export { vExtractRootEl } from "./vExtractRootEl.js
|
|
3
|
-
export { vResizableCols } from "./vResizableCols.js
|
|
4
|
-
export { vResizeObserver } from "./vResizeObserver.js
|
|
1
|
+
export { vDetectFlex } from "./vDetectFlex.js";
|
|
2
|
+
export { vExtractRootEl } from "./vExtractRootEl.js";
|
|
3
|
+
export { vResizableCols } from "./vResizableCols.js";
|
|
4
|
+
export { vResizeObserver } from "./vResizeObserver.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This is not inside helpers to avoid having it get dragged in by an import of /helpers.
|
|
3
3
|
*/
|
|
4
|
-
import { ResizeObserverWrapper } from "./helpers/resizeObserverWrapper.js
|
|
4
|
+
import { ResizeObserverWrapper } from "./helpers/resizeObserverWrapper.js";
|
|
5
5
|
export declare const globalResizeObserver: ResizeObserverWrapper;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { base64ToImg } from "./base64ToImg.js
|
|
2
|
-
export { copy } from "./copy.js
|
|
3
|
-
export { createNoonUtcDate } from "./createNoonUtcDate.js
|
|
4
|
-
export { createRecorderHandler } from "./storybook.js
|
|
5
|
-
export { defaultTranslationFunction } from "./defaultTranslationFunction.js
|
|
6
|
-
export { getTimeZoneList } from "./getTimeZoneList.js
|
|
7
|
-
export { hasModifiers } from "./hasModifiers.js
|
|
8
|
-
export { NotificationHandler } from "./NotificationHandler.js
|
|
9
|
-
export { readFile } from "./readFile.js
|
|
10
|
-
export { ResizeObserverWrapper } from "./resizeObserverWrapper.js
|
|
1
|
+
export { base64ToImg } from "./base64ToImg.js";
|
|
2
|
+
export { copy } from "./copy.js";
|
|
3
|
+
export { createNoonUtcDate } from "./createNoonUtcDate.js";
|
|
4
|
+
export { createRecorderHandler } from "./storybook.js";
|
|
5
|
+
export { defaultTranslationFunction } from "./defaultTranslationFunction.js";
|
|
6
|
+
export { getTimeZoneList } from "./getTimeZoneList.js";
|
|
7
|
+
export { hasModifiers } from "./hasModifiers.js";
|
|
8
|
+
export { NotificationHandler } from "./NotificationHandler.js";
|
|
9
|
+
export { readFile } from "./readFile.js";
|
|
10
|
+
export { ResizeObserverWrapper } from "./resizeObserverWrapper.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InjectionKey, Ref } from "vue";
|
|
2
|
-
import type { DarkModeCommands, DarkModeState } from "./composables/useDarkMode.js
|
|
3
|
-
import type { TranslationFunction } from "./composables/useSetupI18n.js
|
|
2
|
+
import type { DarkModeCommands, DarkModeState } from "./composables/useDarkMode.js";
|
|
3
|
+
import type { TranslationFunction } from "./composables/useSetupI18n.js";
|
|
4
4
|
/** @deprecated */
|
|
5
5
|
export declare const isDarkModeInjectionKey: InjectionKey<Ref<boolean>>;
|
|
6
6
|
/** @deprecated */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from "./types/index.js
|
|
2
|
-
export * as components from "./components/index.js
|
|
3
|
-
export * as helpers from "./helpers/index.js
|
|
4
|
-
export * as composables from "./composables/index.js
|
|
5
|
-
export * as directives from "./directives/index.js
|
|
6
|
-
export { registerDirectives } from "./vue/registerDirectives.js
|
|
7
|
-
export { registerComponents } from "./vue/registerComponents.js
|
|
8
|
-
export { VueComponentsPlugin } from "./vue/VueComponentsPlugin.js
|
|
9
|
-
export * from "./injectionKeys.js
|
|
10
|
-
import type * as components from "./components/index.js
|
|
1
|
+
export * from "./types/index.js";
|
|
2
|
+
export * as components from "./components/index.js";
|
|
3
|
+
export * as helpers from "./helpers/index.js";
|
|
4
|
+
export * as composables from "./composables/index.js";
|
|
5
|
+
export * as directives from "./directives/index.js";
|
|
6
|
+
export { registerDirectives } from "./vue/registerDirectives.js";
|
|
7
|
+
export { registerComponents } from "./vue/registerComponents.js";
|
|
8
|
+
export { VueComponentsPlugin } from "./vue/VueComponentsPlugin.js";
|
|
9
|
+
export * from "./injectionKeys.js";
|
|
10
|
+
import type * as components from "./components/index.js";
|
|
11
11
|
type Components = typeof components;
|
|
12
12
|
/**
|
|
13
13
|
* To get global typings, in a global declaration file (e.g. global.d.ts) do:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { themeConvertionOpts } from "./themeConvertionOpts.js
|
|
1
|
+
export { themeConvertionOpts } from "./themeConvertionOpts.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@witchcraft/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Vue component library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/runtime/main.lib.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"failOnWarn": false
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
|
-
"prepare": "husky && pnpm gen:theme && cd playground && pnpm i",
|
|
52
|
+
"prepare": "husky && pnpm gen:theme && cd playground && pnpm i --ignore-scripts",
|
|
53
53
|
"build": "nuxt-module-build prepare && nuxt-module-build build && nuxi generate playground",
|
|
54
54
|
"build:only": "nuxt-module-build build",
|
|
55
55
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"lint:types": "vue-tsc --noEmit --pretty --project tsconfig.types.json",
|
|
67
67
|
"lint:commits": "commitlint --from-last-tag --to HEAD --verbose",
|
|
68
68
|
"lint:imports": "madge --circular --extensions ts ./src",
|
|
69
|
-
"lint": "pnpm lint:types && pnpm lint:
|
|
69
|
+
"lint": "pnpm lint:eslint && pnpm lint:types && pnpm lint:commits && pnpm lint:imports",
|
|
70
70
|
"//actions:debug": "echo For debugging github build action locally with nektos/act. Requires act and docker. Note: Cache will never work locally because of https://github.com/nektos/act/issues/285",
|
|
71
71
|
"actions:debug": "act -r -j release",
|
|
72
72
|
"gen:exports": "indexit update --ignore **.d.ts **.stories.ts **.vue -o '${path}.js'",
|
|
@@ -179,6 +179,13 @@
|
|
|
179
179
|
"@alanscodelog"
|
|
180
180
|
]
|
|
181
181
|
},
|
|
182
|
+
"madge": {
|
|
183
|
+
"detectiveOptions": {
|
|
184
|
+
"ts": {
|
|
185
|
+
"skipTypeImports": true
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
182
189
|
"engines": {
|
|
183
190
|
"node": ">=20.0.0"
|
|
184
191
|
},
|
package/src/module.ts
CHANGED
|
@@ -214,7 +214,10 @@ export default defineNuxtModule<ModuleOptions>({
|
|
|
214
214
|
|
|
215
215
|
const exists = fs.existsSync(mainCssFile)
|
|
216
216
|
if (exists) {
|
|
217
|
-
|
|
217
|
+
logger.info(`Adding ${options.mainCssFile!}.`)
|
|
218
|
+
nuxt.options.css.push(options.mainCssFile!)
|
|
219
|
+
} else {
|
|
220
|
+
logger.warn(`Could not find ${options.mainCssFile!} (resolved to ${mainCssFile}).`)
|
|
218
221
|
}
|
|
219
222
|
|
|
220
223
|
// todo make names more specific
|