@witchcraft/ui 0.4.0-beta.4 → 0.4.0-beta.6

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 (26) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/WCheckbox/WCheckbox.vue +1 -0
  3. package/dist/runtime/components/WColorPicker/WColorPicker.vue +1 -0
  4. package/dist/runtime/components/WCombobox/WCombobox.d.vue.ts +2 -0
  5. package/dist/runtime/components/WCombobox/WCombobox.vue +6 -3
  6. package/dist/runtime/components/WCombobox/WCombobox.vue.d.ts +2 -0
  7. package/dist/runtime/components/WDatePicker/WRangeDatePicker.vue +5 -0
  8. package/dist/runtime/components/WDatePicker/WSingleDatePicker.vue +5 -0
  9. package/dist/runtime/components/WDebug/WDebug.vue +1 -0
  10. package/dist/runtime/components/WFileInput/WFileInput.vue +3 -0
  11. package/dist/runtime/components/WMultiValues/WMultiValues.vue +1 -0
  12. package/dist/runtime/components/WNotifications/WNotification.vue +2 -0
  13. package/dist/runtime/components/WTooltip/WTooltip.vue +1 -0
  14. package/package.json +1 -1
  15. package/src/runtime/components/WCheckbox/WCheckbox.vue +2 -0
  16. package/src/runtime/components/WColorPicker/WColorPicker.vue +2 -0
  17. package/src/runtime/components/WCombobox/WCombobox.vue +7 -3
  18. package/src/runtime/components/WDatePicker/WRangeDatePicker.vue +6 -0
  19. package/src/runtime/components/WDatePicker/WSingleDatePicker.vue +6 -0
  20. package/src/runtime/components/WDebug/WDebug.vue +2 -0
  21. package/src/runtime/components/WFileInput/WFileInput.vue +4 -0
  22. package/src/runtime/components/WMultiValues/WMultiValues.vue +2 -0
  23. package/src/runtime/components/WNotifications/WNotification.vue +3 -0
  24. package/src/runtime/components/WTable/WTable.vue +0 -1
  25. package/src/runtime/components/WTooltip/WTooltip.vue +2 -0
  26. package/types/components.d.ts +1 -0
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "witchcraftUi",
3
3
  "configKey": "witchcraftUi",
4
- "version": "0.4.0-beta.4",
4
+ "version": "0.4.0-beta.6",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -84,6 +84,7 @@
84
84
  <script setup>
85
85
  import { CheckboxIndicator, CheckboxRoot } from "reka-ui";
86
86
  import { useAttrs } from "vue";
87
+ import ILucideCheck from "~icons/lucide/check";
87
88
  import { useFallbackId } from "../../composables/useFallbackId.js";
88
89
  import { usePreHydrationValue } from "../../composables/usePreHydrationValue.js";
89
90
  import { twMerge } from "../../utils/twMerge.js";
@@ -189,6 +189,7 @@ import { computed, onMounted, reactive, ref, useAttrs, watch } from "vue";
189
189
  import { safeConvertToHsva } from "./utils/safeConvertToHsva.js";
190
190
  import { safeConvertToRgba } from "./utils/safeConvertToRgba.js";
191
191
  import { toLowPrecisionRgbaString } from "./utils/toLowPrecisionRgbaString.js";
192
+ import ILucideCopy from "~icons/lucide/copy";
192
193
  import { useFallbackId } from "../../composables/useFallbackId.js";
193
194
  import { useInjectedI18n } from "../../composables/useInjectedI18n.js";
194
195
  import { copy } from "../../helpers/copy.js";
@@ -54,6 +54,8 @@ declare const __VLS_export: <TSuggestion extends NonNullable<AcceptableValue>>(_
54
54
  attrs: any;
55
55
  slots: {
56
56
  'loading-indicator'?: (props: {}) => any;
57
+ } & {
58
+ right?: (props: {}) => any;
57
59
  } & {
58
60
  trigger?: (props: {
59
61
  open: boolean;
@@ -38,7 +38,7 @@
38
38
  border
39
39
  border-neutral-300
40
40
  dark:border-neutral-700
41
- bg-neutral-100
41
+ bg-white
42
42
  dark:bg-neutral-800/50
43
43
  focus:bg-bg
44
44
  dark:focus:bg-neutral-800
@@ -95,6 +95,7 @@
95
95
  </WIcon>
96
96
  </slot>
97
97
  </Transition>
98
+ <slot name="right"/>
98
99
  <ComboboxTrigger
99
100
  :as-child="true"
100
101
  >
@@ -104,7 +105,7 @@
104
105
  >
105
106
  <WButton
106
107
  :border="false"
107
- class="combobox--toggle p-0"
108
+ class="combobox--toggle p-0 text-neutral-800 dark:text-neutral-200"
108
109
  :aria-label="open ? 'Close' : 'Open'"
109
110
  >
110
111
  <slot
@@ -114,7 +115,7 @@
114
115
  <WIcon
115
116
  :class="twMerge(`combobox--toggle scale-150`, open && `rotate-180`)"
116
117
  >
117
- <i-chevron-caret-down/>
118
+ <i-lucide-chevron-down/>
118
119
  </WIcon>
119
120
  </slot>
120
121
  </WButton>
@@ -308,6 +309,8 @@ import {
308
309
  useFilter
309
310
  } from "reka-ui";
310
311
  import { computed, nextTick, ref, useAttrs, useSlots, useTemplateRef, watch } from "vue";
312
+ import ILucideChevronDown from "~icons/lucide/chevron-down";
313
+ import ILucideLoaderCircle from "~icons/lucide/loader-circle";
311
314
  import { useDelayedLoadingIndicator } from "../../composables/useDelayedLoadingIndicator.js";
312
315
  import { useDisplayForReka } from "../../composables/useDisplayForReka.js";
313
316
  import { useFallbackId } from "../../composables/useFallbackId.js";
@@ -54,6 +54,8 @@ declare const __VLS_export: <TSuggestion extends NonNullable<AcceptableValue>>(_
54
54
  attrs: any;
55
55
  slots: {
56
56
  'loading-indicator'?: (props: {}) => any;
57
+ } & {
58
+ right?: (props: {}) => any;
57
59
  } & {
58
60
  trigger?: (props: {
59
61
  open: boolean;
@@ -3,6 +3,11 @@ import { getLocalTimeZone } from "@internationalized/date";
3
3
  import { DateRangePickerArrow, DateRangePickerCalendar, DateRangePickerCell, DateRangePickerCellTrigger, DateRangePickerContent, DateRangePickerField, DateRangePickerGrid, DateRangePickerGridBody, DateRangePickerGridHead, DateRangePickerGridRow, DateRangePickerHeadCell, DateRangePickerHeader, DateRangePickerHeading, DateRangePickerInput, DateRangePickerNext, DateRangePickerPrev, DateRangePickerRoot, DateRangePickerTrigger } from "reka-ui";
4
4
  import { onBeforeUnmount, ref, toRaw, useAttrs, watch } from "vue";
5
5
  import { convertDateWithFallback, getNow, toEmittableDate } from "./helpers.js";
6
+ import ILucideCalendarRange from "~icons/lucide/calendar-range";
7
+ import ILucideChevronLeft from "~icons/lucide/chevron-left";
8
+ import ILucideChevronRight from "~icons/lucide/chevron-right";
9
+ import ILucideChevronsLeft from "~icons/lucide/chevrons-left";
10
+ import ILucideChevronsRight from "~icons/lucide/chevrons-right";
6
11
  import { useInjectedLocale } from "../../composables/useInjectedLocale.js";
7
12
  import { twMerge } from "../../utils/twMerge.js";
8
13
  import WIcon from "../WIcon/WIcon.vue";
@@ -3,6 +3,11 @@ import { getLocalTimeZone } from "@internationalized/date";
3
3
  import { DatePickerArrow, DatePickerCalendar, DatePickerCell, DatePickerCellTrigger, DatePickerContent, DatePickerField, DatePickerGrid, DatePickerGridBody, DatePickerGridHead, DatePickerGridRow, DatePickerHeadCell, DatePickerHeader, DatePickerHeading, DatePickerInput, DatePickerNext, DatePickerPrev, DatePickerRoot, DatePickerTrigger } from "reka-ui";
4
4
  import { onBeforeUnmount, ref, toRaw, useAttrs, watch } from "vue";
5
5
  import { convertDateWithFallback, getNow, toEmittableDate } from "./helpers.js";
6
+ import ILucideCalendarDays from "~icons/lucide/calendar-days";
7
+ import ILucideChevronLeft from "~icons/lucide/chevron-left";
8
+ import ILucideChevronRight from "~icons/lucide/chevron-right";
9
+ import ILucideChevronsLeft from "~icons/lucide/chevrons-left";
10
+ import ILucideChevronsRight from "~icons/lucide/chevrons-right";
6
11
  import { useInjectedLocale } from "../../composables/useInjectedLocale.js";
7
12
  import { twMerge } from "../../utils/twMerge.js";
8
13
  import WIcon from "../WIcon/WIcon.vue";
@@ -34,6 +34,7 @@
34
34
 
35
35
  <script setup>
36
36
  import { useSlots } from "vue";
37
+ import ILucideCopy from "~icons/lucide/copy";
37
38
  import WButton from "../WButton/WButton.vue";
38
39
  import WIcon from "../WIcon/WIcon.vue";
39
40
  const $slots = useSlots();
@@ -226,6 +226,9 @@
226
226
 
227
227
  <script setup>
228
228
  import { computed, onBeforeUnmount, ref, shallowReactive, watch } from "vue";
229
+ import ILucideFile from "~icons/lucide/file";
230
+ import ILucideUpload from "~icons/lucide/upload";
231
+ import ILucideX from "~icons/lucide/x";
229
232
  import { useFallbackId } from "../../composables/useFallbackId.js";
230
233
  import { useInjectedI18n } from "../../composables/useInjectedI18n.js";
231
234
  import { twMerge } from "../../utils/twMerge.js";
@@ -86,6 +86,7 @@
86
86
  <script setup>
87
87
  import { removeIfIn } from "@alanscodelog/utils/removeIfIn";
88
88
  import { computed, nextTick, ref, useAttrs } from "vue";
89
+ import ILucideX from "~icons/lucide/x";
89
90
  import { copy } from "../../helpers/copy.js";
90
91
  import { twMerge } from "../../utils/twMerge.js";
91
92
  import WButton from "../WButton/WButton.vue";
@@ -177,6 +177,8 @@
177
177
 
178
178
  <script setup>
179
179
  import { computed, onMounted, ref, useAttrs } from "vue";
180
+ import ILucideCopy from "~icons/lucide/copy";
181
+ import ILucideX from "~icons/lucide/x";
180
182
  import { useSlotVars } from "../../composables/useSlotVars.js";
181
183
  import { copy } from "../../helpers/copy.js";
182
184
  import { NotificationHandler } from "../../helpers/NotificationHandler.js";
@@ -92,6 +92,7 @@
92
92
 
93
93
  <script setup>
94
94
  import { TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger } from "reka-ui";
95
+ import ILucideInfo from "~icons/lucide/info";
95
96
  import { usePopupConstrainToStyle } from "../../composables/usePopupConstrainToStyle.js";
96
97
  import { twMerge } from "../../utils/twMerge.js";
97
98
  import WIcon from "../WIcon/WIcon.vue";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@witchcraft/ui",
3
- "version": "0.4.0-beta.4",
3
+ "version": "0.4.0-beta.6",
4
4
  "description": "Vue component library.",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime/main.lib.js",
@@ -84,6 +84,8 @@ import { CheckboxIndicator, CheckboxRoot } from "reka-ui"
84
84
  import type { HTMLAttributes, InputHTMLAttributes } from "vue"
85
85
  import { useAttrs } from "vue"
86
86
 
87
+ import ILucideCheck from "~icons/lucide/check"
88
+
87
89
  import { useFallbackId } from "../../composables/useFallbackId.js"
88
90
  import { usePreHydrationValue } from "../../composables/usePreHydrationValue.js"
89
91
  import type { BaseInteractiveProps, TailwindClassProp } from "../../types/index.js"
@@ -191,6 +191,8 @@ import { safeConvertToHsva } from "./utils/safeConvertToHsva.js"
191
191
  import { safeConvertToRgba } from "./utils/safeConvertToRgba.js"
192
192
  import { toLowPrecisionRgbaString } from "./utils/toLowPrecisionRgbaString.js"
193
193
 
194
+ import ILucideCopy from "~icons/lucide/copy"
195
+
194
196
  import { useFallbackId } from "../../composables/useFallbackId.js"
195
197
  import { useInjectedI18n } from "../../composables/useInjectedI18n.js"
196
198
  import { copy } from "../../helpers/copy.js"
@@ -36,7 +36,7 @@
36
36
  border
37
37
  border-neutral-300
38
38
  dark:border-neutral-700
39
- bg-neutral-100
39
+ bg-white
40
40
  dark:bg-neutral-800/50
41
41
  focus:bg-bg
42
42
  dark:focus:bg-neutral-800
@@ -92,6 +92,7 @@
92
92
  </WIcon>
93
93
  </slot>
94
94
  </Transition>
95
+ <slot name="right"/>
95
96
  <ComboboxTrigger
96
97
  :as-child="true"
97
98
  >
@@ -101,7 +102,7 @@
101
102
  >
102
103
  <WButton
103
104
  :border="false"
104
- class="combobox--toggle p-0"
105
+ class="combobox--toggle p-0 text-neutral-800 dark:text-neutral-200"
105
106
  :aria-label="open ? 'Close' : 'Open'"
106
107
  >
107
108
  <slot
@@ -111,7 +112,7 @@
111
112
  <WIcon
112
113
  :class="twMerge(`combobox--toggle scale-150`, open && `rotate-180`)"
113
114
  >
114
- <i-chevron-caret-down/>
115
+ <i-lucide-chevron-down/>
115
116
  </WIcon>
116
117
  </slot>
117
118
  </WButton>
@@ -306,6 +307,9 @@ import {
306
307
  import type { EmitsToProps, HTMLAttributes, InputHTMLAttributes } from "vue"
307
308
  import { computed, nextTick, ref, useAttrs, useSlots, useTemplateRef, watch } from "vue"
308
309
 
310
+ import ILucideChevronDown from "~icons/lucide/chevron-down"
311
+ import ILucideLoaderCircle from "~icons/lucide/loader-circle"
312
+
309
313
  import { useDelayedLoadingIndicator } from "../../composables/useDelayedLoadingIndicator.js"
310
314
  import { type SuggestionsDisplayProps, useDisplayForReka } from "../../composables/useDisplayForReka.js"
311
315
  import { useFallbackId } from "../../composables/useFallbackId.js"
@@ -7,6 +7,12 @@ import { onBeforeUnmount, ref, toRaw, useAttrs, watch } from "vue"
7
7
 
8
8
  import { convertDateWithFallback, getNow, toEmittableDate } from "./helpers.js"
9
9
 
10
+ import ILucideCalendarRange from "~icons/lucide/calendar-range"
11
+ import ILucideChevronLeft from "~icons/lucide/chevron-left"
12
+ import ILucideChevronRight from "~icons/lucide/chevron-right"
13
+ import ILucideChevronsLeft from "~icons/lucide/chevrons-left"
14
+ import ILucideChevronsRight from "~icons/lucide/chevrons-right"
15
+
10
16
  import { useInjectedLocale } from "../../composables/useInjectedLocale.js"
11
17
  import type { RangeDate } from "../../types/index.js"
12
18
  import { twMerge } from "../../utils/twMerge.js"
@@ -5,6 +5,12 @@ import { onBeforeUnmount, ref, toRaw, useAttrs, watch } from "vue"
5
5
 
6
6
  import { convertDateWithFallback, getNow, toEmittableDate } from "./helpers.js"
7
7
 
8
+ import ILucideCalendarDays from "~icons/lucide/calendar-days"
9
+ import ILucideChevronLeft from "~icons/lucide/chevron-left"
10
+ import ILucideChevronRight from "~icons/lucide/chevron-right"
11
+ import ILucideChevronsLeft from "~icons/lucide/chevrons-left"
12
+ import ILucideChevronsRight from "~icons/lucide/chevrons-right"
13
+
8
14
  import { useInjectedLocale } from "../../composables/useInjectedLocale.js"
9
15
  import type { SingleDate } from "../../types/index.js"
10
16
  import { twMerge } from "../../utils/twMerge.js"
@@ -35,6 +35,8 @@
35
35
  <script setup lang="ts">
36
36
  import { useSlots } from "vue"
37
37
 
38
+ import ILucideCopy from "~icons/lucide/copy"
39
+
38
40
  import WButton from "../WButton/WButton.vue"
39
41
  import WIcon from "../WIcon/WIcon.vue"
40
42
 
@@ -231,6 +231,10 @@
231
231
  import type { HTMLAttributes, InputHTMLAttributes } from "vue"
232
232
  import { computed, onBeforeUnmount, ref, shallowReactive, watch } from "vue"
233
233
 
234
+ import ILucideFile from "~icons/lucide/file"
235
+ import ILucideUpload from "~icons/lucide/upload"
236
+ import ILucideX from "~icons/lucide/x"
237
+
234
238
  import { useFallbackId } from "../../composables/useFallbackId.js"
235
239
  import { useInjectedI18n } from "../../composables/useInjectedI18n.js"
236
240
  import type { FileInputError, TailwindClassProp } from "../../types/index.js"
@@ -83,6 +83,8 @@
83
83
  import { removeIfIn } from "@alanscodelog/utils/removeIfIn"
84
84
  import { computed, type HTMLAttributes, nextTick, ref, useAttrs } from "vue"
85
85
 
86
+ import ILucideX from "~icons/lucide/x"
87
+
86
88
  import { copy } from "../../helpers/copy.js"
87
89
  import type { BaseInteractiveProps, TailwindClassProp } from "../../types/index.js"
88
90
  import { twMerge } from "../../utils/twMerge.js"
@@ -176,6 +176,9 @@
176
176
  <script setup lang="ts">
177
177
  import { computed, type HTMLAttributes, onMounted, ref, useAttrs } from "vue"
178
178
 
179
+ import ILucideCopy from "~icons/lucide/copy"
180
+ import ILucideX from "~icons/lucide/x"
181
+
179
182
  import { useSlotVars } from "../../composables/useSlotVars.js"
180
183
  import { copy } from "../../helpers/copy.js"
181
184
  import { type NotificationEntry, NotificationHandler } from "../../helpers/NotificationHandler.js"
@@ -469,4 +469,3 @@ defineExpose({
469
469
  })
470
470
  </script>
471
471
 
472
-
@@ -92,6 +92,8 @@
92
92
  <script setup lang="ts">
93
93
  import { TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger } from "reka-ui"
94
94
 
95
+ import ILucideInfo from "~icons/lucide/info"
96
+
95
97
  import { usePopupConstrainToStyle } from "../../composables/usePopupConstrainToStyle.js"
96
98
  import type { PopupConstrainToProps } from "../../types/index.js"
97
99
  import { twMerge } from "../../utils/twMerge.js"
@@ -11,6 +11,7 @@ declare module 'vue' {
11
11
  ILucideCalendarDays: typeof import('~icons/lucide/calendar-days')['default']
12
12
  ILucideCalendarRange: typeof import('~icons/lucide/calendar-range')['default']
13
13
  ILucideCheck: typeof import('~icons/lucide/check')['default']
14
+ ILucideChevronDown: typeof import('~icons/lucide/chevron-down')['default']
14
15
  ILucideChevronLeft: typeof import('~icons/lucide/chevron-left')['default']
15
16
  ILucideChevronRight: typeof import('~icons/lucide/chevron-right')['default']
16
17
  ILucideChevronsLeft: typeof import('~icons/lucide/chevrons-left')['default']