shuriken-ui / nuxt

Nuxt version of Shuriken UI with ready to use components
https://shurikenui.com/
MIT License
139 stars 18 forks source link

Configuration rework + migration to shuriken-ui/tailwind 2.0 #102

Closed driss-chelouati closed 5 months ago

driss-chelouati commented 6 months ago

Breaking Changes

Configuration

This PR introduce a breaking change in the configuration, we removed defaultShapes from app.config.ts and replaced with a map with components name as key and a list of props that are applied by default when omitted.

Before:

export default defineAppConfig({
  nui: {
    defaultShapes: {
      accordion: 'rounded',
    },
  }
})

After:

export default defineAppConfig({
  nui: {
    BaseAccordion: {
      rounded: 'sm',
      action: 'chevron',
    },
  }
})

@shuriken-ui/tailwind v2.0

It also adds breaking changes to components properties to align with https://github.com/shuriken-ui/tailwind/pull/59, you can see the how to migrate section there

Additional changes