@witchcraft/ui 0.4.0-beta.3 → 0.4.0-beta.5
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/README.md +1 -1
- package/dist/module.json +1 -1
- package/dist/runtime/build/WitchcraftUiResolver.js +1 -1
- package/dist/runtime/components/WCombobox/WCombobox.d.vue.ts +2 -0
- package/dist/runtime/components/WCombobox/WCombobox.vue +4 -3
- package/dist/runtime/components/WCombobox/WCombobox.vue.d.ts +2 -0
- package/package.json +1 -1
- package/src/runtime/build/WitchcraftUiResolver.ts +1 -1
- package/src/runtime/components/WCombobox/WCombobox.vue +4 -3
- package/types/components.d.ts +1 -0
package/README.md
CHANGED
|
@@ -206,7 +206,7 @@ usePreHydrationValue(finalId, modelValue)
|
|
|
206
206
|
* If the component requires general docs, they should be written here over the export default.
|
|
207
207
|
*/
|
|
208
208
|
export default {
|
|
209
|
-
name: "
|
|
209
|
+
name: "WComponentName"
|
|
210
210
|
// https://v3.vuejs.org/guide/typescript-support.html#annotating-props
|
|
211
211
|
}
|
|
212
212
|
</script>```
|
package/dist/module.json
CHANGED
|
@@ -5,7 +5,7 @@ export const WitchcraftUiResolver = ({
|
|
|
5
5
|
} = {}) => (componentName) => {
|
|
6
6
|
if (componentName.startsWith(prefix)) {
|
|
7
7
|
const n = componentName.slice(1);
|
|
8
|
-
const filename = prefixless.includes(n) ? n : `
|
|
8
|
+
const filename = prefixless.includes(n) ? n : `W${n}`;
|
|
9
9
|
if (!filter(n)) {
|
|
10
10
|
return void 0;
|
|
11
11
|
}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
border
|
|
39
39
|
border-neutral-300
|
|
40
40
|
dark:border-neutral-700
|
|
41
|
-
bg-
|
|
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-
|
|
118
|
+
<i-lucide-chevron-down/>
|
|
118
119
|
</WIcon>
|
|
119
120
|
</slot>
|
|
120
121
|
</WButton>
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ export const WitchcraftUiResolver = (
|
|
|
15
15
|
): { from: string } | undefined => {
|
|
16
16
|
if (componentName.startsWith(prefix)) {
|
|
17
17
|
const n = componentName.slice(1)
|
|
18
|
-
const filename = prefixless.includes(n) ? n : `
|
|
18
|
+
const filename = prefixless.includes(n) ? n : `W${n}`
|
|
19
19
|
if (!filter(n)) {
|
|
20
20
|
return undefined
|
|
21
21
|
}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
border
|
|
37
37
|
border-neutral-300
|
|
38
38
|
dark:border-neutral-700
|
|
39
|
-
bg-
|
|
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-
|
|
115
|
+
<i-lucide-chevron-down/>
|
|
115
116
|
</WIcon>
|
|
116
117
|
</slot>
|
|
117
118
|
</WButton>
|
package/types/components.d.ts
CHANGED
|
@@ -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']
|