@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.
Files changed (72) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +4 -1
  3. package/dist/runtime/components/LibButton/LibButton.d.vue.ts +1 -1
  4. package/dist/runtime/components/LibButton/LibButton.vue.d.ts +1 -1
  5. package/dist/runtime/components/LibCheckbox/LibCheckbox.d.vue.ts +1 -1
  6. package/dist/runtime/components/LibCheckbox/LibCheckbox.vue.d.ts +1 -1
  7. package/dist/runtime/components/LibColorInput/LibColorInput.d.vue.ts +2 -2
  8. package/dist/runtime/components/LibColorInput/LibColorInput.vue.d.ts +2 -2
  9. package/dist/runtime/components/LibColorPicker/LibColorPicker.d.vue.ts +2 -2
  10. package/dist/runtime/components/LibColorPicker/LibColorPicker.vue.d.ts +2 -2
  11. package/dist/runtime/components/LibColorPicker/utils/safeConvertToHsva.d.ts +1 -1
  12. package/dist/runtime/components/LibColorPicker/utils/safeConvertToRgba.d.ts +1 -1
  13. package/dist/runtime/components/LibColorPicker/utils/toLowPrecisionRgbaString.d.ts +1 -1
  14. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.d.vue.ts +1 -1
  15. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.vue.d.ts +1 -1
  16. package/dist/runtime/components/LibDatePicker/LibDatePicker.d.vue.ts +1 -1
  17. package/dist/runtime/components/LibDatePicker/LibDatePicker.vue.d.ts +1 -1
  18. package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.d.vue.ts +1 -1
  19. package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.vue.d.ts +1 -1
  20. package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.d.vue.ts +1 -1
  21. package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.vue.d.ts +1 -1
  22. package/dist/runtime/components/LibFileInput/LibFileInput.d.vue.ts +2 -2
  23. package/dist/runtime/components/LibFileInput/LibFileInput.vue.d.ts +2 -2
  24. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.d.vue.ts +1 -1
  25. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.vue.d.ts +1 -1
  26. package/dist/runtime/components/LibLabel/LibLabel.d.vue.ts +1 -1
  27. package/dist/runtime/components/LibLabel/LibLabel.vue.d.ts +1 -1
  28. package/dist/runtime/components/LibMultiValues/LibMultiValues.d.vue.ts +1 -1
  29. package/dist/runtime/components/LibMultiValues/LibMultiValues.vue.d.ts +1 -1
  30. package/dist/runtime/components/LibNotifications/LibNotification.d.vue.ts +2 -2
  31. package/dist/runtime/components/LibNotifications/LibNotification.vue.d.ts +2 -2
  32. package/dist/runtime/components/LibNotifications/LibNotifications.d.vue.ts +2 -2
  33. package/dist/runtime/components/LibNotifications/LibNotifications.vue.d.ts +2 -2
  34. package/dist/runtime/components/LibPagination/LibPagination.d.vue.ts +1 -1
  35. package/dist/runtime/components/LibPagination/LibPagination.vue.d.ts +1 -1
  36. package/dist/runtime/components/LibPalette/LibPalette.d.vue.ts +1 -1
  37. package/dist/runtime/components/LibPalette/LibPalette.vue.d.ts +1 -1
  38. package/dist/runtime/components/LibPopup/LibPopup.d.vue.ts +4 -4
  39. package/dist/runtime/components/LibPopup/LibPopup.vue.d.ts +4 -4
  40. package/dist/runtime/components/LibProgressBar/LibProgressBar.d.vue.ts +1 -1
  41. package/dist/runtime/components/LibProgressBar/LibProgressBar.vue.d.ts +1 -1
  42. package/dist/runtime/components/LibRecorder/LibRecorder.d.vue.ts +1 -1
  43. package/dist/runtime/components/LibRecorder/LibRecorder.vue.d.ts +1 -1
  44. package/dist/runtime/components/LibRoot/LibRoot.d.vue.ts +2 -2
  45. package/dist/runtime/components/LibRoot/LibRoot.vue.d.ts +2 -2
  46. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.d.vue.ts +1 -1
  47. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.vue.d.ts +1 -1
  48. package/dist/runtime/components/LibSuggestions/LibSuggestions.d.vue.ts +1 -1
  49. package/dist/runtime/components/LibSuggestions/LibSuggestions.vue.d.ts +1 -1
  50. package/dist/runtime/components/LibTable/LibTable.d.vue.ts +2 -2
  51. package/dist/runtime/components/LibTable/LibTable.vue.d.ts +2 -2
  52. package/dist/runtime/components/Template/TemplateStory.d.ts +1 -1
  53. package/dist/runtime/components/index.d.ts +20 -20
  54. package/dist/runtime/components/shared/props.d.ts +1 -1
  55. package/dist/runtime/composables/index.d.ts +15 -15
  56. package/dist/runtime/composables/useDragWithThreshold.d.ts +1 -1
  57. package/dist/runtime/composables/useInjectedDarkMode.d.ts +1 -1
  58. package/dist/runtime/composables/useInjectedI18n.d.ts +1 -1
  59. package/dist/runtime/composables/useInjectedLocale.d.ts +1 -1
  60. package/dist/runtime/composables/useNotificationHandler.d.ts +1 -1
  61. package/dist/runtime/composables/useScrollNearContainerEdges.d.ts +1 -1
  62. package/dist/runtime/composables/useSetupDarkMode.d.ts +1 -1
  63. package/dist/runtime/composables/useSuggestions.d.ts +1 -1
  64. package/dist/runtime/directives/index.d.ts +4 -4
  65. package/dist/runtime/globalResizeObserver.d.ts +1 -1
  66. package/dist/runtime/helpers/index.d.ts +10 -10
  67. package/dist/runtime/helpers/resizeObserverWrapper.d.ts +1 -1
  68. package/dist/runtime/injectionKeys.d.ts +2 -2
  69. package/dist/runtime/main.lib.d.ts +10 -10
  70. package/dist/runtime/tailwind/index.d.ts +1 -1
  71. package/package.json +10 -3
  72. package/src/module.ts +4 -1
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "witchcraftUi",
3
3
  "configKey": "witchcraftUi",
4
- "version": "0.3.0",
4
+ "version": "0.3.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
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
- nuxt.options.css.push(mainCssFile);
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.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.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.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.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.js";
3
- import { type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js.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.js";
3
- import { type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js.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.js";
2
- import { type LabelProps, type LinkableByIdProps } from "../shared/props.js.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.js";
2
- import { type LabelProps, type LinkableByIdProps } from "../shared/props.js.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.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.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.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.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.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,4 +1,4 @@
1
- import type { RangeDate, SingleDate } from "../../types/index.js.js";
1
+ import type { RangeDate, SingleDate } from "../../types/index.js";
2
2
  type __VLS_Props = {
3
3
  showTime?: boolean;
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import type { RangeDate, SingleDate } from "../../types/index.js.js";
1
+ import type { RangeDate, SingleDate } from "../../types/index.js";
2
2
  type __VLS_Props = {
3
3
  showTime?: boolean;
4
4
  id?: string;
@@ -1,4 +1,4 @@
1
- import type { RangeDate } from "../../types/index.js.js";
1
+ import type { RangeDate } from "../../types/index.js";
2
2
  type __VLS_Props = {
3
3
  useTime?: boolean;
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import type { RangeDate } from "../../types/index.js.js";
1
+ import type { RangeDate } from "../../types/index.js";
2
2
  type __VLS_Props = {
3
3
  useTime?: boolean;
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import type { SingleDate } from "../../types/index.js.js";
1
+ import type { SingleDate } from "../../types/index.js";
2
2
  type __VLS_Props = {
3
3
  useTime?: boolean;
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import type { SingleDate } from "../../types/index.js.js";
1
+ import type { SingleDate } from "../../types/index.js";
2
2
  type __VLS_Props = {
3
3
  useTime?: boolean;
4
4
  id: string;
@@ -1,6 +1,6 @@
1
1
  import { type HTMLAttributes, type InputHTMLAttributes } from "vue";
2
- import type { FileInputError } from "../../types/index.js.js";
3
- import { type LinkableByIdProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js.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.js";
3
- import { type LinkableByIdProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js.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.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.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.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.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.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.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.js";
3
- import type { TailwindClassProp } from "../shared/props.js.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.js";
3
- import type { TailwindClassProp } from "../shared/props.js.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.js";
2
- import type { LinkableByIdProps, TailwindClassProp } from "../shared/props.js.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.js";
2
- import type { LinkableByIdProps, TailwindClassProp } from "../shared/props.js.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 HTMLAttributes } from "vue";
2
- import type { TailwindClassProp } from "../shared/props.js.js";
2
+ import type { TailwindClassProp } from "../shared/props.js";
3
3
  /**
4
4
  * Pagination component.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { type HTMLAttributes } from "vue";
2
- import type { TailwindClassProp } from "../shared/props.js.js";
2
+ import type { TailwindClassProp } from "../shared/props.js";
3
3
  /**
4
4
  * Pagination component.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import type { Theme } from "metamorphosis";
2
- import type { BaseInteractiveProps, LinkableByIdProps } from "../shared/props.js.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.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.js";
3
- import type { IPopupReference } from "../../types/index.js.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.js").PopupPositioner;
29
- preferredVertical: ("top" | "bottom" | "center" | "either" | "center-screen" | "top-most" | "bottom-most" | "center-most")[] | import("../../main.lib.js.js").PopupPositioner;
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.js";
3
- import type { IPopupReference } from "../../types/index.js.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.js").PopupPositioner;
29
- preferredVertical: ("top" | "bottom" | "center" | "either" | "center-screen" | "top-most" | "bottom-most" | "center-most")[] | import("../../main.lib.js.js").PopupPositioner;
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.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.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.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.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.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.js").DarkModeState & import("../../composables/useDarkMode.js.js").DarkModeCommands;
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.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.js").DarkModeState & import("../../composables/useDarkMode.js.js").DarkModeCommands;
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.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.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.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.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.js";
3
- import type { TailwindClassProp } from "../shared/props.js.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.js";
3
- import type { TailwindClassProp } from "../shared/props.js.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,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from "@storybook/vue3";
2
- import NAME from "./NAME.vue.js";
2
+ import NAME from "./NAME.vue";
3
3
  declare const meta: Meta<typeof NAME>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof NAME>;
@@ -1,20 +1,20 @@
1
- export { default as aria } from "./Aria/Aria.vue.js";
2
- export { default as LibButton } from "./LibButton/LibButton.vue.js";
3
- export { default as LibCheckbox } from "./LibCheckbox/LibCheckbox.vue.js";
4
- export { default as LibColorInput } from "./LibColorInput/LibColorInput.vue.js";
5
- export { default as LibColorPicker } from "./LibColorPicker/LibColorPicker.vue.js";
6
- export { default as LibDarkModeSwitcher } from "./LibDarkModeSwitcher/LibDarkModeSwitcher.vue.js";
7
- export { default as LibDatePicker } from "./LibDatePicker/LibDatePicker.vue.js";
8
- export { default as LibDebug } from "./LibDebug/LibDebug.vue.js";
9
- export { default as LibFileInput } from "./LibFileInput/LibFileInput.vue.js";
10
- export { default as LibInputDeprecated } from "./LibInputDeprecated/LibInputDeprecated.vue.js";
11
- export { default as LibLabel } from "./LibLabel/LibLabel.vue.js";
12
- export { default as LibNotifications } from "./LibNotifications/LibNotifications.vue.js";
13
- export { default as LibPagination } from "./LibPagination/LibPagination.vue.js";
14
- export { default as LibPopup } from "./LibPopup/LibPopup.vue.js";
15
- export { default as LibProgressBar } from "./LibProgressBar/LibProgressBar.vue.js";
16
- export { default as LibRecorder } from "./LibRecorder/LibRecorder.vue.js";
17
- export { default as LibRoot } from "./LibRoot/LibRoot.vue.js";
18
- export { default as LibSimpleInput } from "./LibSimpleInput/LibSimpleInput.vue.js";
19
- export { default as LibTable } from "./LibTable/LibTable.vue.js";
20
- export { default as LibTimeZonePicker } from "./LibDatePicker/LibTimeZonePicker.vue.js";
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,4 +1,4 @@
1
- import type { PopupPositioner, PopupPositionModifier } from "../../types/index.js";
1
+ import type { PopupPositioner, PopupPositionModifier } from "../../types";
2
2
  export interface LinkableByIdProps {
3
3
  /**
4
4
  * The id for the input. Uses vue's useId if none provided.
@@ -1,15 +1,15 @@
1
- export { useAccesibilityOutline } from "./useAccesibilityOutline.js.js";
2
- export { useAriaLabel } from "./useAriaLabel.js.js";
3
- export { useDarkMode } from "./useDarkMode.js.js";
4
- export { useDivideAttrs } from "./useDivideAttrs.js.js";
5
- export { useDragWithThreshold } from "./useDragWithThreshold.js.js";
6
- export { useGlobalResizeObserver } from "./useGlobalResizeObserver.js.js";
7
- export { useInjectedDarkMode } from "./useInjectedDarkMode.js.js";
8
- export { useInjectedI18n } from "./useInjectedI18n.js.js";
9
- export { useInjectedLocale } from "./useInjectedLocale.js.js";
10
- export { useNotificationHandler } from "./useNotificationHandler.js.js";
11
- export { usePreHydrationValue } from "./usePreHydrationValue.js.js";
12
- export { useScrollNearContainerEdges } from "./useScrollNearContainerEdges.js.js";
13
- export { useSetupDarkMode } from "./useSetupDarkMode.js.js";
14
- export { useShowDevOnlyKey } from "./useShowDevOnlyKey.js.js";
15
- export { useSuggestions } from "./useSuggestions.js.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,5 +1,5 @@
1
1
  import { type Ref } from "vue";
2
- import type { Point } from "../types/index.js.js";
2
+ import type { Point } from "../types/index.js";
3
3
  /**
4
4
  * A composable for dragging items only after a certain threshold of movement has been reached.
5
5
  *
@@ -1,2 +1,2 @@
1
- import type { DarkModeCommands, DarkModeState } from "./useDarkMode.js.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.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.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.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.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,4 +1,4 @@
1
- import { useDarkMode } from "./useDarkMode.js.js";
1
+ import { useDarkMode } from "./useDarkMode.js";
2
2
  /**
3
3
  * A composable for setting up dark mode that automatically takes care of saving the user's preference.
4
4
  *
@@ -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.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.js";
2
- export { vExtractRootEl } from "./vExtractRootEl.js.js";
3
- export { vResizableCols } from "./vResizableCols.js.js";
4
- export { vResizeObserver } from "./vResizeObserver.js.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.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.js";
2
- export { copy } from "./copy.js.js";
3
- export { createNoonUtcDate } from "./createNoonUtcDate.js.js";
4
- export { createRecorderHandler } from "./storybook.js.js";
5
- export { defaultTranslationFunction } from "./defaultTranslationFunction.js.js";
6
- export { getTimeZoneList } from "./getTimeZoneList.js.js";
7
- export { hasModifiers } from "./hasModifiers.js.js";
8
- export { NotificationHandler } from "./NotificationHandler.js.js";
9
- export { readFile } from "./readFile.js.js";
10
- export { ResizeObserverWrapper } from "./resizeObserverWrapper.js.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,4 +1,4 @@
1
- import type { ResizeCallback } from "../types/index.js.js";
1
+ import type { ResizeCallback } from "../types/index.js";
2
2
  export declare class ResizeObserverWrapper {
3
3
  observers: WeakMap<Element, Set<ResizeCallback>>;
4
4
  observer: ResizeObserver;
@@ -1,6 +1,6 @@
1
1
  import type { InjectionKey, Ref } from "vue";
2
- import type { DarkModeCommands, DarkModeState } from "./composables/useDarkMode.js.js";
3
- import type { TranslationFunction } from "./composables/useSetupI18n.js.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.js";
2
- export * as components from "./components/index.js.js";
3
- export * as helpers from "./helpers/index.js.js";
4
- export * as composables from "./composables/index.js.js";
5
- export * as directives from "./directives/index.js.js";
6
- export { registerDirectives } from "./vue/registerDirectives.js.js";
7
- export { registerComponents } from "./vue/registerComponents.js.js";
8
- export { VueComponentsPlugin } from "./vue/VueComponentsPlugin.js.js";
9
- export * from "./injectionKeys.js.js";
10
- import type * as components from "./components/index.js.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.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.0",
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:eslint",
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
- nuxt.options.css.push(mainCssFile)
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