Compare commits

...

5 Commits

Author SHA1 Message Date
Benjamin Canac
7f9d69183c chore(release): 0.1.5 2022-11-08 16:44:13 +01:00
Benjamin Canac
23e5f4c501 chore(CommandPalette): add autoclear prop 2022-11-08 16:43:18 +01:00
Benjamin Canac
24998e3ac5 chore(release): 0.1.4 2022-11-08 11:02:42 +01:00
Benjamin Canac
bebf18a89a chore(deps): bump 2022-11-08 11:02:22 +01:00
Anthony Fu
1b56b50d4d fix(button): support RouteLocationRaw type for to (#112) 2022-11-08 10:57:55 +01:00
5 changed files with 641 additions and 693 deletions

View File

@@ -2,6 +2,15 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [0.1.5](https://github.com/nuxtlabs/ui/compare/v0.1.4...v0.1.5) (2022-11-08)
### [0.1.4](https://github.com/nuxtlabs/ui/compare/v0.1.3...v0.1.4) (2022-11-08)
### Bug Fixes
* **button:** support `RouteLocationRaw` type for `to` ([#112](https://github.com/nuxtlabs/ui/issues/112)) ([1b56b50](https://github.com/nuxtlabs/ui/commit/1b56b50d4d54a5cb9e5febacdf42867988ae6c5d))
### [0.1.3](https://github.com/nuxtlabs/ui/compare/v0.1.2...v0.1.3) (2022-11-04) ### [0.1.3](https://github.com/nuxtlabs/ui/compare/v0.1.2...v0.1.3) (2022-11-04)

View File

@@ -1,6 +1,6 @@
{ {
"name": "@nuxthq/ui", "name": "@nuxthq/ui",
"version": "0.1.3", "version": "0.1.5",
"repository": "https://github.com/nuxtlabs/ui", "repository": "https://github.com/nuxtlabs/ui",
"license": "MIT", "license": "MIT",
"exports": { "exports": {
@@ -26,26 +26,26 @@
"dependencies": { "dependencies": {
"@headlessui/vue": "^1.7.4", "@headlessui/vue": "^1.7.4",
"@iconify/vue": "^4.0.0", "@iconify/vue": "^4.0.0",
"@nuxt/kit": "^3.0.0-rc.12", "@nuxt/kit": "^3.0.0-rc.13",
"@nuxtjs/color-mode": "^3.1.8", "@nuxtjs/color-mode": "^3.1.8",
"@nuxtjs/tailwindcss": "^6.1.3", "@nuxtjs/tailwindcss": "^6.1.3",
"@popperjs/core": "^2.11.6", "@popperjs/core": "^2.11.6",
"@tailwindcss/aspect-ratio": "^0.4.2", "@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/forms": "^0.5.3", "@tailwindcss/forms": "^0.5.3",
"@tailwindcss/line-clamp": "^0.4.2", "@tailwindcss/line-clamp": "^0.4.2",
"@tailwindcss/typography": "^0.5.7", "@tailwindcss/typography": "^0.5.8",
"@vueuse/core": "^9.4.0", "@vueuse/core": "^9.4.0",
"@vueuse/integrations": "^9.4.0", "@vueuse/integrations": "^9.4.0",
"defu": "^6.1.0", "defu": "^6.1.0",
"fuse.js": "^6.6.2", "fuse.js": "^6.6.2",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"tailwindcss": "^3.2.1" "tailwindcss": "^3.2.2"
}, },
"devDependencies": { "devDependencies": {
"@nuxt/module-builder": "^0.2.0", "@nuxt/module-builder": "^0.2.0",
"@nuxtjs/eslint-config-typescript": "^11.0.0", "@nuxtjs/eslint-config-typescript": "^11.0.0",
"@types/lodash-es": "^4.17.6", "@types/lodash-es": "^4.17.6",
"eslint": "^8.26.0", "eslint": "^8.27.0",
"nuxt": "^3.0.0-rc.9", "nuxt": "^3.0.0-rc.9",
"standard-version": "^9.5.0", "standard-version": "^9.5.0",
"vue-tsc": "^1.0.9" "vue-tsc": "^1.0.9"

View File

@@ -15,7 +15,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, computed, useSlots } from 'vue' import { ref, computed, useSlots } from 'vue'
import type { PropType } from 'vue' import type { PropType } from 'vue'
import type { RouteLocationNormalized } from 'vue-router' import type { RouteLocationNormalized, RouteLocationRaw } from 'vue-router'
import NuxtLink from '#app/components/nuxt-link' import NuxtLink from '#app/components/nuxt-link'
import Icon from '../elements/Icon.vue' import Icon from '../elements/Icon.vue'
import { classNames } from '../../utils' import { classNames } from '../../utils'
@@ -81,7 +81,7 @@ const props = defineProps({
default: false default: false
}, },
to: { to: {
type: [String, Object] as PropType<string | RouteLocationNormalized>, type: [String, Object] as PropType<string | RouteLocationNormalized | RouteLocationRaw>,
default: null default: null
}, },
target: { target: {

View File

@@ -110,6 +110,10 @@ const props = defineProps({
type: Boolean, type: Boolean,
default: true default: true
}, },
autoclear: {
type: Boolean,
default: true
},
placeholder: { placeholder: {
type: Boolean, type: Boolean,
default: true default: true
@@ -183,7 +187,7 @@ function onSelect (option: Command | Command[]) {
emit('update:modelValue', option, { query: query.value }) emit('update:modelValue', option, { query: query.value })
// Clear input after selection // Clear input after selection
if (!props.multiple) { if (props.autoclear) {
setTimeout(() => { setTimeout(() => {
query.value = '' query.value = ''
}, 0) }, 0)

1305
yarn.lock

File diff suppressed because it is too large Load Diff