@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 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: "LibComponentName"
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "witchcraftUi",
3
3
  "configKey": "witchcraftUi",
4
- "version": "0.4.0-beta.3",
4
+ "version": "0.4.0-beta.5",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -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 : `Lib${n}`;
8
+ const filename = prefixless.includes(n) ? n : `W${n}`;
9
9
  if (!filter(n)) {
10
10
  return void 0;
11
11
  }
@@ -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>
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@witchcraft/ui",
3
- "version": "0.4.0-beta.3",
3
+ "version": "0.4.0-beta.5",
4
4
  "description": "Vue component library.",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime/main.lib.js",
@@ -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 : `Lib${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-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>
@@ -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']