Skip to content

Commit

Permalink
fix: update nui tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha committed Apr 8, 2024
1 parent 44430cc commit e191f3d
Show file tree
Hide file tree
Showing 4 changed files with 417 additions and 411 deletions.
9 changes: 4 additions & 5 deletions components/base/BaseButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const props = withDefaults(
*
* @default 'md'
*/
size?: 'sm' | 'md' | 'lg' | 'xl'
size?: 'sm' | 'md' | 'lg'
/**
* The variant of the button..
Expand Down Expand Up @@ -114,10 +114,9 @@ const badgeColors = {
}
const sizes = {
sm: 'nui-button-small',
md: 'nui-button-medium',
lg: 'nui-button-large',
xl: 'nui-button-xlarge',
sm: 'nui-button-sm',
md: 'nui-button-md',
lg: 'nui-button-lg',
}
const radiuses = {
Expand Down
7 changes: 7 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ export default defineNuxtConfig({
'@nuxtjs/tailwindcss',
'nuxt-icon',
],

colorMode: {
classSuffix: '',
},

components: [
{
prefix: '',
Expand All @@ -30,10 +32,15 @@ export default defineNuxtConfig({
global: false,
},
],

hooks: {
// @ts-expect-error - hook is handled by nuxtjs/tailwindcss
'tailwindcss:config'(config: Config) {
withShurikenUI(config)
},
},

devtools: {
enabled: false,
},
})
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@
"@iconify/vue": "^4.1.1",
"@nuxtjs/color-mode": "^3.3.2",
"@nuxtjs/tailwindcss": "^6.11.0",
"@shuriken-ui/tailwind": "^3.0.1",
"@shuriken-ui/tailwind": "^3.0.2",
"@vueuse/nuxt": "^10.7.2",
"autoprefixer": "^10.4.18",
"nuxt-icon": "^0.6.9"
},
"devDependencies": {
"@commitlint/cli": "^19.2.0",
"@commitlint/config-conventional": "^19.1.0",
"@nuxt/kit": "^3.11.1",
"@nuxt/kit": "^3.11.2",
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@types/node": "20.11.28",
"@vue/shared": "^3.4.21",
Expand All @@ -81,17 +81,17 @@
"jiti": "^1.21.0",
"lint-staged": "^15.2.0",
"npm-run-all": "^4.1.5",
"nuxt": "^3.11.0",
"nuxt": "^3.11.2",
"nuxt-component-meta": "^0.6.3",
"pathe": "^1.1.2",
"simple-git-hooks": "^2.11.0",
"standard-version": "^9.5.0",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.2",
"typescript": "^5.4.4",
"unplugin-fonts": "^1.1.1",
"vue": "^3.4.21",
"vue-router": "^4.3.0",
"vue-tsc": "^2.0.10"
"vue-tsc": "^2.0.11"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged",
Expand Down Expand Up @@ -121,7 +121,7 @@
]
},
"overrides": {
"vue-component-meta": "^2.0.10"
"vue-component-meta": "^2.0.11"
}
}
}
Loading

0 comments on commit e191f3d

Please sign in to comment.