Releases: nuxt/ui
v2.4.1
🐛 Bug Fixes
- forms: precise type assertion for
onInputevent handler (#293) (457b7a9) - module: let
tailwindcssviewer 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
✨ Highlights
- New
Paginationcomponent: https://ui.nuxtlabs.com/navigation/pagination - CSS bundle greatly reduced with smart safelisting: https://ui.nuxtlabs.com/getting-started/theming#colors
🚨 Breaking Changes
Select
text-attributeprop has been renamed tooption-attributeand now defaults tolabel(likeSelectMenu)
Input / Textarea / Radio / Checkbox / Select / SelectMenu
ui.customhas been removed in favor of class binding throughv-bind="$attrs"classwill 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/formsnow only applies when usingform-${element}classes, see #278.
🚀 What's Changed
- fix(forms): padded prop with p-0 class
- fix(Button): same size when no label + uniformize form elements
- fix(ButtonGroup): invalid size validator
- fix(ButtonGroup): use
-space-x-pxon wrapper - chore(Dropdown): handle height for overflow
- chore: add @tailwindcss/container-queries official plugin
- fix(Notification): class priority for icon color
- feat(Table): add slot for empty state by @Haythamasalama in #260
- feat(Pagination): new component by @smarroufin in #257
- feat(Table): add loading state by @Haythamasalama in #259
- fix(module): use
@tailwindcss/formsclass strategy by @benjamincanac in #278 - fix(Toggle): missing disabled prop
- fix(Radio/Checkbox): split preset as indeterminate is checkbox only
- chore(Select)!: rename
text-attributetooption-attributeand def… - feat(CommandPalette): handle
empty-stateby @Haythamasalama in #271 - fix(forms)!: bind
$attrsto elements by @benjamincanac in #279 - feat(module): smart safelisting by @benjamincanac in #268
- fix(Table): colspan of
emptyandloadingis wrong when selection enabled by @9uenther in #284
New Contributors
Full Changelog: v2.3.0...v2.4.0
v2.3.0
✨ Highlights
- New
Tablecomponent: https://ui.nuxtlabs.com/data/table
🚨 Breaking Changes
Toggle
icon-on/icon-offprops have been renamed toon-icon/off-iconui.toggle.default.iconOn/ui.toggle.default.iconOffhave been renamed toui.toggle.default. onIcon/ui.toggle.default.offIconin preset
CommandPalette
closeprop has been renamed toclose-buttonui.commandPalette.default.closehas been renamed toui.commandPalette.default.closeButtonin presetemptyprop has been renamed toempty-stateui.commandPalette.default.emptyhas been renamed toui.commandPalette.default.emptyStatein preset
Notification
closeprop has been renamed toclose-buttonui.notification.default.closehas been renamed toui.notification.default.closeButtonin presetui.notification.default.actionhas been renamed toui.notification.default. actionButtonin preset
Input
pointer-events-noneclass has been moved fromui.input.icon.leading.wrapper/ui.input.icon.trailing.wrappertoui.input.icon.leading.pointer/ui.input.icon.trailing.pointerin preset
SelectMenu
inline-flexclass has been removed from wrapper so it might cause some alignment issues
🚀 What's Changed
- chore(Toggle): improve component display
- chore(SelectMenu): handle
multipledefault display - fix(Button): invalid padding when using
squareprop - chore(Toggle)!: rename icons to
onIcon/offIconfor consistency - chore(CommandPalette)!: rename props to
emptyStateandcloseButtonfor consistency - chore(Notification)!: rename to
closeButtonandactionButtonfor consistency - feat: add
Tablecomponent by @benjamincanac in #237 - chore(Dropdown):
hovermode with padding instead of offset by @smarroufin in #242 - chore(SelectMenu)!: remove
inline-flexfrom wrapper to behave like other form elements - chore: uniformize icons in
Button/Input/Select/SelectMenu+loadingstate inSelect/SelectMenu - chore: add
leadingandtrailingslots inButton/Input/Select/SelectMenu - fix(defineShortcuts): err with input autocomplete that triggers
keydownevents - chore(Input)!: move pointer class inside its own preset class
- chore(Badge): handle
coloroverride like buttons - fix(Avatar): placeholder font size
- fix(Table): override of
sortButtonandemptyStateprops - fix(CommandPalette): override of
closeButtonandemptyStateprops - fix: use
cloneVNodewhen altering props in render functions
New Contributors
Full Changelog: v2.2.1...v2.3.0
v2.2.1
What's Changed
- fix(FormGroup): missing h import from vue
- chore(forms): remove required on Input, Select and Textarea name
Full Changelog: v2.2.0...v2.2.1
v2.2.0
What's Changed
- fix(VerticalNavigation): badge display in d2ee505
- chore(VerticalNavigation): links badge type as number in 6eda322
- chore(Avatar): allow default value for
chipColorthroughapp.config.tsin 570b82d - fix(Radio/Checkbox): remove ring offset on focus in a56dbea
- chore(Notification): add
progressColorandprogressVariantprops 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.configin 6d3309c - chore(VerticalNavigation)!: split preset in 19923cb
- chore(SelectMenu): add
searchablePlaceholderprop in b7099aa - chore(deps): switch to
pnpmby @benjamincanac in #228 - chore(Avatar)!: remove
chipVariantprop in 1f22f84 - chore(Notification)!: rename
progressColortocolorand 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
chipVariantprop has been removed and chip now useschip.backgroundpreset classchip.backgroundpreset class now defaults to500in light mode
InputGroup
- Component has been renamed to
FormGroupand now has its own documentation page errorprop has been added with its own preset classerror- Component now uses a render function to dynamically set the
colorprop of children tored label,labelWrapperandrequiredpreset classes have been moved inlabelobject
Input / Textarea / Select / SelectMenu
roundedpreset class has been moved from variants to the root of the preset to be customizable globallyplaceholderpreset class has been moved from variants to the root of the preset to be customizable globallyappearanceprop has been removed in favor ofcolor(defaults towhite) andvariant(defaults tooutline) to followBadgeandButtonconvention, this gives us color states for now will allow us to define other variants in the futurepaddedprop has been added to remove padding easily
SelectMenu
searchablePlaceholderprop has been added
Notification
paddingpreset class has been addedcolorprop has been added to style progress bar and icondefault.iconpreset class has been added to set a default icon on all your notificationsicon,avatarandprogresspreset classes have been turned into an objectavatar.sizepreset class now defaults tomdto be centered
Vertical Navigation
ring,width,rounded,fontandsizepreset classes have been pulled out ofbaseto customize component with granularity
New Contributors
- @okisdev made their first contribution in #216
- @sumitkolhe made their first contribution in #211
Full Changelog: v2.1.0...v2.2.0
v2.1.0
What's Changed
- chore(Card): add
asprop by @benjamincanac in 4d8dbfb - chore(Container): add
asprop by @benjamincanac in cba95de - chore(module): default primary to
greenby @benjamincanac in 11941bd - chore(colors): prevent err and add warning when specific colors dont exist by @benjamincanac in d93e995
- fix(ButtonGroup/AvatarGroup): allow
v-forby @ciaasteczkowy in #173 - fix(module): node engine version by @atinux in #176
- chore(Notifications): simplify how to position them by @atinux in #190
- chore(SelectMenu): empty option shorter text by @benjamincanac in 617567d
- chore(module): handle icons type as
stringby @benjamincanac in 85b10ba - fix(Input): expose ref by @benjamincanac in 2ded24b
- fix(Textarea): expose ref by @benjamincanac in ea740bf
- fix(module): add
.mjsextension to tailwind content when builded by @benjamincanac in 246449b
New Contributors
- @manaust made their first contribution in #168
- @frasza made their first contribution in #166
- @ciaasteczkowy made their first contribution in #173
- @atinux made their first contribution in #176
- @arashsheyda made their first contribution in #182
- @13ruceYu made their first contribution in #194
Full Changelog: v2.0.4...v2.1.0
v2.0.4
Full Changelog: v2.0.3...v2.0.4
v2.0.3
Full Changelog: v2.0.2...v2.0.3
v2.0.2
Full Changelog: v2.0.1...v2.0.2
v2.0.1
What's Changed
- fix: update to fix type issues by @danielroe in #151
- fix: remove augmentation of app by @danielroe in #152
- fix: revert back to runtime app for hmr by @danielroe in #153
Full Changelog: v2.0.0...v2.0.1