Skip to content

Releases: nuxt/ui

v2.4.1

21 Jun 15:57

Choose a tag to compare

🐛 Bug Fixes

  • forms: precise type assertion for onInput event handler (#293) (457b7a9)
  • module: let tailwindcss viewer enabled by default (4023fbe), closes #292
  • module: safelist aliases for input (f719111)
  • module: safelist regex when a : was present before color (f7e2082)
  • Radio/Checkbox: remove legacy custom (3bac087)

Full Changelog: v2.4.0...v2.4.1

v2.4.0

13 Jun 15:54

Choose a tag to compare

✨ Highlights

🚨 Breaking Changes

Select

  • text-attribute prop has been renamed to option-attribute and now defaults to label (like SelectMenu)

Input / Textarea / Radio / Checkbox / Select / SelectMenu

  • ui.custom has been removed in favor of class binding through v-bind="$attrs"
  • class will no longer apply on the wrapper but on the element so use :ui="{ wrapper: '...' }" instead

If you were using some form elements outside the library components, for example a basic <input type="checkbox" /> in your prose, you might loose some reset styles as @tailwindcss/forms now only applies when using form-${element} classes, see #278.

🚀 What's Changed

New Contributors

Full Changelog: v2.3.0...v2.4.0

v2.3.0

05 Jun 11:00

Choose a tag to compare

✨ Highlights

🚨 Breaking Changes

Toggle

  • icon-on / icon-off props have been renamed to on-icon / off-icon
  • ui.toggle.default.iconOn / ui.toggle.default.iconOff have been renamed to ui.toggle.default. onIcon / ui.toggle.default.offIcon in preset

CommandPalette

  • close prop has been renamed to close-button
  • ui.commandPalette.default.close has been renamed to ui.commandPalette.default.closeButton in preset
  • empty prop has been renamed to empty-state
  • ui.commandPalette.default.empty has been renamed to ui.commandPalette.default.emptyState in preset

Notification

  • close prop has been renamed to close-button
  • ui.notification.default.close has been renamed to ui.notification.default.closeButton in preset
  • ui.notification.default.action has been renamed to ui.notification.default. actionButton in preset

Input

  • pointer-events-none class has been moved from ui.input.icon.leading.wrapper / ui.input.icon.trailing.wrapper to ui.input.icon.leading.pointer / ui.input.icon.trailing.pointer in preset

SelectMenu

  • inline-flex class has been removed from wrapper so it might cause some alignment issues

🚀 What's Changed

New Contributors

Full Changelog: v2.2.1...v2.3.0

v2.2.1

05 Jun 10:14

Choose a tag to compare

v2.2.0

26 May 21:57

Choose a tag to compare

What's Changed

  • fix(VerticalNavigation): badge display in d2ee505
  • chore(VerticalNavigation): links badge type as number in 6eda322
  • chore(Avatar): allow default value for chipColor through app.config.ts in 570b82d
  • fix(Radio/Checkbox): remove ring offset on focus in a56dbea
  • chore(Notification): add progressColor and progressVariant props by @benjamincanac in #219
  • chore(CommandPalette): handle loading state by @benjamincanac in #221
  • chore(Dropdown): use ULinkCustom (fixes close on link clicks) in 55f115f
  • chore(Notification): move padding to app.config in 6d3309c
  • chore(VerticalNavigation)!: split preset in 19923cb
  • chore(SelectMenu): add searchablePlaceholder prop in b7099aa
  • chore(deps): switch to pnpm by @benjamincanac in #228
  • chore(Avatar)!: remove chipVariant prop in 1f22f84
  • chore(Notification)!: rename progressColor to color and style icon in 1b61ec7
  • chore(Avatar): dark variant for chip background color in 589f86e
  • feat!: handle color states on form elements by @benjamincanac in #234

Migration Guide

As this library is quite new, some breaking changes are necessary to make it granular and more flexible. If you didn't override the preset through your app.config.ts file, most of the changes won't affect you (except for the form elements).

We'll do our best to keep the breaking changes as minimal as possible in the future and will document them properly.

Avatar

  • chipVariant prop has been removed and chip now uses chip.background preset class
  • chip.background preset class now defaults to 500 in light mode

InputGroup

  • Component has been renamed to FormGroup and now has its own documentation page
  • error prop has been added with its own preset classerror
  • Component now uses a render function to dynamically set the color prop of children to red
  • label, labelWrapper and required preset classes have been moved in label object

Input / Textarea / Select / SelectMenu

  • rounded preset class has been moved from variants to the root of the preset to be customizable globally
  • placeholder preset class has been moved from variants to the root of the preset to be customizable globally
  • appearance prop has been removed in favor of color (defaults to white) and variant (defaults to outline) to follow Badge and Button convention, this gives us color states for now will allow us to define other variants in the future
  • padded prop has been added to remove padding easily

SelectMenu

  • searchablePlaceholder prop has been added

Notification

  • padding preset class has been added
  • color prop has been added to style progress bar and icon
  • default.icon preset class has been added to set a default icon on all your notifications
  • icon, avatar and progress preset classes have been turned into an object
  • avatar.size preset class now defaults to md to be centered

Vertical Navigation

  • ring, width, rounded, font and size preset classes have been pulled out of base to customize component with granularity

New Contributors

Full Changelog: v2.1.0...v2.2.0

v2.1.0

19 May 10:39

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.0.4...v2.1.0

v2.0.4

16 May 10:59

Choose a tag to compare

Full Changelog: v2.0.3...v2.0.4

v2.0.3

16 May 10:58

Choose a tag to compare

Full Changelog: v2.0.2...v2.0.3

v2.0.2

16 May 10:58

Choose a tag to compare

Full Changelog: v2.0.1...v2.0.2

v2.0.1

16 May 10:58

Choose a tag to compare

What's Changed

Full Changelog: v2.0.0...v2.0.1