Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

Commit 9c8208f

Browse files
authored
Merge pull request #85 from selemondev/fix-icon
fix: import paths
2 parents d2907ba + 329bf20 commit 9c8208f

File tree

6 files changed

+23
-13
lines changed

6 files changed

+23
-13
lines changed

packages/nuxtlabs-ui-vue/README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -145,20 +145,21 @@ app.mount('#app')
145145

146146
2. Now you can use the component as shown below:
147147

148-
```js
148+
```vue
149149
<script setup lang="ts">
150150
const items = [
151151
[{
152152
label: 'Profile',
153153
avatar: {
154154
src: 'https://avatars.githubusercontent.com/u/739984?v=4'
155155
}
156-
}],
156+
}],
157157
[{
158158
label: 'Edit',
159159
icon: 'heroicons:pencil-square-20-solid',
160160
shortcuts: ['E'],
161161
click: () => {
162+
// eslint-disable-next-line no-console
162163
console.log('Edit')
163164
}
164165
}, {
@@ -259,7 +260,7 @@ export default defineConfig({
259260

260261
4. Now you can simply use any component that you want and it will be auto imported on demand ✨
261262

262-
```js
263+
```vue
263264
<script setup lang='ts'>
264265
const items = [
265266
[{
@@ -272,6 +273,7 @@ const items = [
272273
icon: 'heroicons:pencil-square-20-solid',
273274
shortcuts: ['E'],
274275
click: () => {
276+
// eslint-disable-next-line no-console
275277
console.log('Edit')
276278
}
277279
}, {
@@ -325,15 +327,17 @@ In regards to customization, NuxtLabs UI Vue offers two ways of customizing your
325327
326328
Here is an example of customizing a `UButton` component through the `variants` property:
327329
328-
```js
330+
```vue
329331
<template>
330-
<div>
331-
<UButton :variants="{
332-
'my-variant': {
333-
rounded: 'rounded-full'
334-
}
335-
}" :variant="['my-variant']" color="red" label="Button" />
336-
</div>
332+
<div>
333+
<UButton
334+
:variants="{
335+
'my-variant': {
336+
rounded: 'rounded-full',
337+
},
338+
}" :variant="['my-variant']" color="red" label="Button"
339+
/>
340+
</div>
337341
</template>
338342
```
339343

packages/nuxtlabs-ui-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuxtlabs-ui-vue",
3-
"version": "0.1.3",
3+
"version": "0.1.5",
44
"private": false,
55
"exports": {
66
".": {

packages/nuxtlabs-ui-vue/src/components/forms/Input/UInput.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang='ts'>
22
import { computed, defineComponent, onMounted, ref, useSlots } from 'vue'
33
import classNames from 'classnames'
4+
import UIcon from '../../elements/Icon/UIcon.vue'
45
import { useFormEvents } from '@/composables/useFormEvents'
56
import { getVariantPropsWithClassesList } from '@/utils/getVariantProps'
67
import { useVariants } from '@/composables/useVariants'

packages/nuxtlabs-ui-vue/src/components/forms/Toggle/UToggle.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { computed, defineComponent, useAttrs } from 'vue'
33
import { omit } from 'lodash-es'
44
import classNames from 'classnames'
55
import { Switch as HSwitch } from '@headlessui/vue'
6+
import UIcon from '../../elements/Icon/UIcon.vue'
67
import type { VariantJSWithClassesListProps } from '@/utils/getVariantProps'
78
import { getVariantPropsWithClassesList } from '@/utils/getVariantProps'
89
import type { UToggle } from '@/Types/componentsTypes/components'

packages/nuxtlabs-ui-vue/src/components/navigation/Command-Palette/CommandPaletteGroup.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { computed, defineComponent } from 'vue'
33
import type { PropType } from 'vue'
44
import { ComboboxOption as HComboboxOption } from '@headlessui/vue'
55
import UIcon from '../../elements/Icon/UIcon.vue'
6+
import UKbd from '@/components/elements/Kbd/UKbd.vue'
7+
import UAvatar from '@/components/elements/Avatar/UAvatar.vue'
68
import type { VariantJSWithClassesListProps } from '@/utils/getVariantProps'
79
import { Components } from '@/Types/enums/Components'
810
import { useVariants } from '@/composables/useVariants'
@@ -35,7 +37,6 @@ const props = defineProps({
3537
const variant = computed(() => {
3638
const customProps = {
3739
...props,
38-
variant: props.variant,
3940
}
4041
return useVariants<UCommandPalette>(
4142
Components.UCommandPalette,

packages/nuxtlabs-ui-vue/src/components/navigation/VerticalNavigation/UVerticalNavigation.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import { getVariantPropsWithClassesList } from '@/utils/getVariantProps'
88
import type { UVerticalNavigation } from '@/Types/componentsTypes/components'
99
import { Components } from '@/Types/enums/Components'
1010
import { useVariants } from '@/composables/useVariants'
11+
import UAvatar from '@/components/elements/Avatar/UAvatar.vue'
12+
import ULink from '@/components/elements/Link/ULink.vue'
13+
import UIcon from '@/components/elements/Icon/UIcon.vue'
1114
import type { VerticalNavigationLink } from '@/Types/components/vertical-navigation'
1215
1316
const props = defineProps({

0 commit comments

Comments
 (0)