Compare commits

..

4 Commits

Author SHA1 Message Date
Benjamin Canac
4bd994985d chore(release): 1.2.3 2023-03-22 16:21:49 +01:00
Benjamin Canac
c83d3b7147 chore(Avatar): remove useless chipVariant prop 2023-03-22 16:21:29 +01:00
Benjamin Canac
f022665351 chore(release): 1.2.2 2023-03-20 16:17:55 +01:00
Benjamin Canac
f29c325dc7 chore(deps): fix @headlessui/vue to 1.7.10 because of inert dialogs 2023-03-20 16:17:36 +01:00
5 changed files with 13 additions and 14 deletions

View File

@@ -2,6 +2,10 @@
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.
### [1.2.3](https://github.com/nuxtlabs/ui/compare/v1.2.2...v1.2.3) (2023-03-22)
### [1.2.2](https://github.com/nuxtlabs/ui/compare/v1.2.1...v1.2.2) (2023-03-20)
### [1.2.1](https://github.com/nuxtlabs/ui/compare/v1.2.0...v1.2.1) (2023-03-20)

View File

@@ -1,6 +1,6 @@
{
"name": "@nuxthq/ui",
"version": "1.2.1",
"version": "1.2.3",
"repository": "https://github.com/nuxtlabs/ui",
"license": "MIT",
"exports": {
@@ -26,7 +26,7 @@
},
"dependencies": {
"@egoist/tailwindcss-icons": "^1.0.7",
"@headlessui/vue": "^1.7.12",
"@headlessui/vue": "1.7.10",
"@iconify-json/heroicons": "^1.1.10",
"@nuxt/kit": "^3.3.1",
"@nuxtjs/color-mode": "^3.2.0",

View File

@@ -38,12 +38,8 @@ const props = defineProps({
default: true
},
chip: {
type: Boolean,
default: false
},
chipVariant: {
type: String,
default: 'primary',
default: null,
validator (value: string) {
return Object.keys($ui.avatar.chip.variant).includes(value)
}
@@ -92,8 +88,8 @@ const avatarClass = computed(() => {
const chipClass = computed(() => {
return classNames(
$ui.avatar.chip.base,
$ui.avatar.chip.variant[props.chip],
$ui.avatar.chip.position[props.chipPosition],
$ui.avatar.chip.variant[props.chipVariant],
$ui.avatar.chip.size[props.size]
)
})

View File

@@ -4,7 +4,6 @@ export interface Avatar {
text: string
size: string
rounded: boolean
chip: boolean
chipVariant: string
chip: string
chipPosition: string
}

View File

@@ -808,10 +808,10 @@
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.36.0.tgz#9837f768c03a1e4a30bd304a64fb8844f0e72efe"
integrity sha512-lxJ9R5ygVm8ZWgYdUweoq5ownDlJ4upvoWmO4eLxBYHdMo+vZ/Rx0EN6MbKWDJOSUGrqJy2Gt+Dyv/VKml0fjg==
"@headlessui/vue@^1.7.12":
version "1.7.12"
resolved "https://registry.yarnpkg.com/@headlessui/vue/-/vue-1.7.12.tgz#963b2eb2f548278c49f2d1e67f0a4a84f54078da"
integrity sha512-IV0k1I2I8Bj37HljFF231Y9cpldfiucf+inMCxA/VPoQT6UTxo0N/rb78CrogBxXNfsPxKmz3y/nlv+eRz6zvg==
"@headlessui/vue@1.7.10":
version "1.7.10"
resolved "https://registry.yarnpkg.com/@headlessui/vue/-/vue-1.7.10.tgz#dc79fbbe97924647eb3fe475cdba892db7fe4157"
integrity sha512-qAov7JULOBBes5CU+MiGpwMKoXxLHXS703WEZkOPxYjPD2p7f286ozlFxw7JjA2MmVgbnis2Wvgg/4hT7nRFIg==
"@humanwhocodes/config-array@^0.11.8":
version "0.11.8"