@witchcraft/ui 0.1.2 → 0.2.0

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 (90) hide show
  1. package/README.md +3 -6
  2. package/dist/module.json +2 -2
  3. package/dist/module.mjs +15 -12
  4. package/dist/runtime/assets/utils.css +1 -1
  5. package/dist/runtime/build/generateTheme.js +1 -1
  6. package/dist/runtime/components/LibButton/LibButton.vue +10 -17
  7. package/dist/runtime/components/LibCheckbox/LibCheckbox.vue +8 -13
  8. package/dist/runtime/components/LibColorPicker/LibColorPicker.vue +5 -4
  9. package/dist/runtime/components/LibColorPicker/utils/safeConvertToHsva.js +1 -1
  10. package/dist/runtime/components/LibColorPicker/utils/safeConvertToRgba.js +1 -1
  11. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.vue +5 -15
  12. package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.vue +5 -0
  13. package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.vue +5 -0
  14. package/dist/runtime/components/LibDebug/LibDebug.vue +1 -0
  15. package/dist/runtime/components/LibFileInput/LibFileInput.vue +3 -0
  16. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.vue +14 -18
  17. package/dist/runtime/components/LibLabel/LibLabel.vue +9 -14
  18. package/dist/runtime/components/LibLabel/LibLabel.vue.d.ts +0 -1
  19. package/dist/runtime/components/LibMultiValues/LibMultiValues.vue +9 -10
  20. package/dist/runtime/components/LibNotifications/LibNotification.vue +2 -0
  21. package/dist/runtime/components/LibNotifications/LibNotifications.vue +1 -1
  22. package/dist/runtime/components/LibPalette/LibPalette.vue +9 -12
  23. package/dist/runtime/components/LibPopup/LibPopup.vue +2 -2
  24. package/dist/runtime/components/LibProgressBar/LibProgressBar.vue +10 -15
  25. package/dist/runtime/components/LibRecorder/LibRecorder.vue +12 -18
  26. package/dist/runtime/components/LibRoot/LibRoot.vue +3 -2
  27. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.vue +12 -19
  28. package/dist/runtime/components/LibSuggestions/LibSuggestions.vue +10 -15
  29. package/dist/runtime/components/LibTable/LibTable.vue +2 -2
  30. package/dist/runtime/components/Template/NAME.vue +2 -2
  31. package/dist/runtime/components/shared/props.d.ts +0 -29
  32. package/dist/runtime/components/shared/props.js +0 -12
  33. package/dist/runtime/composables/useAccesibilityOutline.js +1 -1
  34. package/dist/runtime/composables/useDivideAttrs.js +1 -1
  35. package/dist/runtime/composables/useSuggestions.js +4 -4
  36. package/dist/runtime/directives/vDetectFlex.js +4 -4
  37. package/dist/runtime/directives/vExtractRootEl.d.ts +1 -1
  38. package/dist/runtime/directives/vResizableCols.d.ts +1 -1
  39. package/dist/runtime/directives/vResizableCols.js +4 -4
  40. package/dist/runtime/helpers/NotificationHandler.js +6 -6
  41. package/dist/runtime/helpers/base64ToImg.js +2 -2
  42. package/dist/runtime/nuxt/plugins/vue-plugin.js +1 -1
  43. package/dist/runtime/tailwind/themeConvertionOpts.d.ts +1 -1
  44. package/dist/runtime/theme.d.ts +1 -1
  45. package/dist/runtime/theme.js +1 -1
  46. package/dist/runtime/utils/notifyIfError.js +1 -1
  47. package/dist/runtime/vue/registerComponents.js +1 -1
  48. package/package.json +68 -89
  49. package/src/module.ts +19 -12
  50. package/src/runtime/assets/utils.css +5 -5
  51. package/src/runtime/build/generateTheme.ts +1 -1
  52. package/src/runtime/components/LibButton/LibButton.stories.ts +1 -1
  53. package/src/runtime/components/LibButton/LibButton.vue +4 -8
  54. package/src/runtime/components/LibCheckbox/LibCheckbox.vue +3 -7
  55. package/src/runtime/components/LibColorPicker/LibColorPicker.vue +6 -4
  56. package/src/runtime/components/LibColorPicker/utils/safeConvertToHsva.ts +1 -1
  57. package/src/runtime/components/LibColorPicker/utils/safeConvertToRgba.ts +1 -1
  58. package/src/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.vue +8 -15
  59. package/src/runtime/components/LibDatePicker/LibRangeDatePicker.vue +6 -0
  60. package/src/runtime/components/LibDatePicker/LibSingleDatePicker.vue +6 -0
  61. package/src/runtime/components/LibDebug/LibDebug.stories.ts +1 -1
  62. package/src/runtime/components/LibDebug/LibDebug.vue +2 -0
  63. package/src/runtime/components/LibFileInput/LibFileInput.vue +4 -0
  64. package/src/runtime/components/LibInputDeprecated/LibInputDeprecated.vue +7 -5
  65. package/src/runtime/components/LibLabel/LibLabel.vue +2 -3
  66. package/src/runtime/components/LibMultiValues/LibMultiValues.vue +5 -3
  67. package/src/runtime/components/LibNotifications/LibNotification.vue +3 -0
  68. package/src/runtime/components/LibNotifications/LibNotifications.vue +1 -1
  69. package/src/runtime/components/LibPalette/LibPalette.vue +3 -3
  70. package/src/runtime/components/LibPopup/LibPopup.vue +2 -2
  71. package/src/runtime/components/LibProgressBar/LibProgressBar.vue +2 -2
  72. package/src/runtime/components/LibRecorder/LibRecorder.vue +3 -3
  73. package/src/runtime/components/LibRoot/LibRoot.vue +3 -2
  74. package/src/runtime/components/LibSimpleInput/LibSimpleInput.vue +2 -2
  75. package/src/runtime/components/LibSuggestions/LibSuggestions.vue +2 -2
  76. package/src/runtime/components/LibTable/LibTable.vue +1 -1
  77. package/src/runtime/components/Template/NAME.vue +2 -2
  78. package/src/runtime/components/shared/props.ts +8 -12
  79. package/src/runtime/composables/useAccesibilityOutline.ts +1 -1
  80. package/src/runtime/composables/useDivideAttrs.ts +1 -1
  81. package/src/runtime/composables/useSuggestions.ts +4 -4
  82. package/src/runtime/directives/vDetectFlex.ts +4 -4
  83. package/src/runtime/directives/vExtractRootEl.ts +1 -1
  84. package/src/runtime/directives/vResizableCols.ts +5 -5
  85. package/src/runtime/helpers/NotificationHandler.ts +6 -6
  86. package/src/runtime/nuxt/plugins/vue-plugin.ts +1 -1
  87. package/src/runtime/tailwind/themeConvertionOpts.ts +1 -1
  88. package/src/runtime/theme.ts +2 -2
  89. package/src/runtime/utils/notifyIfError.ts +1 -1
  90. package/src/runtime/vue/registerComponents.ts +1 -1
@@ -1,10 +1,10 @@
1
1
  import type { AnyFunction, MakeRequired } from "@alanscodelog/utils"
2
- import { castType } from "@alanscodelog/utils/castType.js"
3
- import { crop } from "@alanscodelog/utils/crop.js"
4
- import { indent } from "@alanscodelog/utils/indent.js"
5
- import { isBlank } from "@alanscodelog/utils/isBlank.js"
6
- import { pretty } from "@alanscodelog/utils/pretty.js"
7
- import { setReadOnly } from "@alanscodelog/utils/setReadOnly.js"
2
+ import { castType } from "@alanscodelog/utils/castType"
3
+ import { crop } from "@alanscodelog/utils/crop"
4
+ import { indent } from "@alanscodelog/utils/indent"
5
+ import { isBlank } from "@alanscodelog/utils/isBlank"
6
+ import { pretty } from "@alanscodelog/utils/pretty"
7
+ import { setReadOnly } from "@alanscodelog/utils/setReadOnly"
8
8
 
9
9
 
10
10
  export class NotificationHandler<
@@ -1,4 +1,4 @@
1
- import { isArray } from "@alanscodelog/utils/isArray.js"
1
+ import { isArray } from "@alanscodelog/utils/isArray"
2
2
 
3
3
  import { defineNuxtPlugin, useRuntimeConfig } from "#imports"
4
4
 
@@ -1,4 +1,4 @@
1
- import { type themeAsTailwindCss } from "metamorphosis/tailwind.js"
1
+ import { type themeAsTailwindCss } from "metamorphosis/tailwind"
2
2
 
3
3
 
4
4
  export const themeConvertionOpts: Parameters<typeof themeAsTailwindCss>[1] = {
@@ -1,5 +1,5 @@
1
- import { baseTheme } from "metamorphosis/BaseTheme.js"
2
- import type { Theme } from "metamorphosis/Theme.js"
1
+ import { baseTheme } from "metamorphosis/BaseTheme"
2
+ import type { Theme } from "metamorphosis/Theme"
3
3
 
4
4
 
5
5
  export const theme = baseTheme as Theme
@@ -1,4 +1,4 @@
1
- import { TypedError } from "@alanscodelog/utils/TypedError.js"
1
+ import { TypedError } from "@alanscodelog/utils/TypedError"
2
2
 
3
3
  import { useNotificationHandler } from "../composables/useNotificationHandler.js"
4
4
 
@@ -1,4 +1,4 @@
1
- import { capitalize } from "@alanscodelog/utils/capitalize.js"
1
+ import { capitalize } from "@alanscodelog/utils/capitalize"
2
2
  import type { App } from "vue"
3
3
 
4
4
  /**