Releases: nuxt/ui
Releases · nuxt/ui
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
chipColor
throughapp.config.ts
in 570b82d - fix(Radio/Checkbox): remove ring offset on focus in a56dbea
- chore(Notification): add
progressColor
andprogressVariant
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
tocolor
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 useschip.background
preset classchip.background
preset class now defaults to500
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 tored
label
,labelWrapper
andrequired
preset classes have been moved inlabel
object
Input
/ Textarea
/ Select
/ SelectMenu
rounded
preset class has been moved from variants to the root of the preset to be customizable globallyplaceholder
preset class has been moved from variants to the root of the preset to be customizable globallyappearance
prop has been removed in favor ofcolor
(defaults towhite
) andvariant
(defaults tooutline
) to followBadge
andButton
convention, this gives us color states for now will allow us to define other variants in the futurepadded
prop has been added to remove padding easily
SelectMenu
searchablePlaceholder
prop has been added
Notification
padding
preset class has been addedcolor
prop has been added to style progress bar and icondefault.icon
preset class has been added to set a default icon on all your notificationsicon
,avatar
andprogress
preset classes have been turned into an objectavatar.size
preset class now defaults tomd
to be centered
Vertical Navigation
ring
,width
,rounded
,font
andsize
preset classes have been pulled out ofbase
to 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
as
prop by @benjamincanac in 4d8dbfb - chore(Container): add
as
prop by @benjamincanac in cba95de - chore(module): default primary to
green
by @benjamincanac in 11941bd - chore(colors): prevent err and add warning when specific colors dont exist by @benjamincanac in d93e995
- fix(ButtonGroup/AvatarGroup): allow
v-for
by @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
string
by @benjamincanac in 85b10ba - fix(Input): expose ref by @benjamincanac in 2ded24b
- fix(Textarea): expose ref by @benjamincanac in ea740bf
- fix(module): add
.mjs
extension 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
v2.0.0
Breaking Changes
Classes to invert dark mode like u-text-gray-900
have been removed.
- Components now have a
ui
prop to override the entire preset instead of individual props - Components prop
popperOptions
has been renamed topopper
Alert
,AlertDialog
,Tabs
andPills
components have been removed
Avatar
wrapperClass
,backgroundClass
,placeholderClass
androundedClass
props have been removed in favor ofui
rounded
prop is now a class defaulting torounded-full
instead of a boolean prop, can be overriden throughui.avatar.rounded
chip
prop is nowchipVariant
ui.avatar.size
andui.avatar.chip.size
xxs
andxxxs
have been renamed respectively to2xs
and3xs
AvatarGroup
ringClass
andmarginClass
props have been removed in favor ofui
group
prop has been removed in favor of slots
Badge
baseClass
prop has been removed in favor ofui
rounded
prop is now a class defaulting torounded-md
instead of a boolean prop, can be overriden throughui.badge.rounded
color
prop has been added to change the color scheme of the badgevariant
prop is now the variant instead of the colorfont-medium
has been moved fromui.badge.base
toui.badge.font
Button
customClass
prop have been removedbaseClass
,iconBaseClass
androundedClass
props have been removed in favor ofui
leadingIconClass
andtrailingIconClass
props have been removedrounded
prop is now a class defaulting torounded-md
instead of a boolean prop, can be overriden throughui.button.rounded
color
prop has been added to change the color scheme of the badgevariant
prop is now the variant instead of the colorlabelCompact
andcompact
props have been removed entirely alongside presetui.button.compact
andui.button.icon.leading.compactSpacing
andui.button.icon.trailing.compactSpacing
padded
prop has been added to remove paddingui.button.size.xxs
has been renamed toui.button.size.2xs
ui.button.size.2xl
has been introducedui.button.gap
has been introduced to replace margins defined inui.button.icon.leading.spacing
andui.button.icon.trailing.spacing
ui.button.icon.leading.spacing
andui.button.icon.trailing.spacing
that added negative margin to icons have been removed to keep consitency when surcharging a button through default slot (code has only been commented for now)font-medium
has been moved fromui.button.base
toui.button.font
ButtonGroup
- New component
Dropdown
wrapperClass
,containerClass
,widthClass
,backgroundClass
,shadowClass
,roundedClass
,ringClass
,divideClass
,baseClass
,transitionClass
,groupClass
,itemBaseClass
,itemActiveClass
,itemInactiveClass
,itemDisabledClass
,itemIconClass
,itemAvatarClass
anditemShortcutsClass
props have been removed in favor ofui
- preset has been updated to improve dark mode
Card
baseClass
,backgroundClass
,borderColorClass
,shadowClass
,ringClass
,roundedClass
,bodyClass
,bodyBackgroundClass
,headerClass
,headerBackgroundClass
,footerClass
,footerBackgroundClass
props have been removed in favor ofui
rounded
prop is now a class defaulting torounded-lg
instead of a boolean prop, can be overriden throughui.avatar.rounded
padded
prop has been removed, useui.rounded = 'sm:rounded-lg'
instead when falseui.card.border
has been removed in favor ofui.card.divide
ui.card.header
&ui.card.footer
are now{ spacing: '', background: '' }
Container
constrainedClass
prop has been removed in favor ofui
ui.container.base
andui.container.spacing
have been addedpadded
prop has been removed, useui.spacing = 'sm:px-6 lg:px-8'
instead when falseconstrained
prop has been removed, useui.constrained = ''
instead when false
Input
wrapperClass
,baseClass
,iconBaseClass
andcustomClass
props have been removed in favor ofui
FormGroup
- Renamed to
InputGroup
wrapperClass
,containerClass
,labelClass
,labelWrapperClass
,descriptionClass
,requiredClass
andhintClass
props have been removed in favor ofui
Textarea
wrapperClass
,baseClass
andcustomClass
props have been removed in favor ofui
resize
is now false by default
Select
wrapperClass
,baseClass
,iconBaseClass
andcustomClass
props have been removed in favor ofui
SelectCustom
- Renamed to
SelectMenu
placeholder
prop is nownull
by defaultnullable
prop has been removedtextAttribute
has been renamed tooptionAttribute
and now defaults tolabel
wrapperClass
,baseClass
,iconBaseClass
,customClass
,listBaseClass
,listContainerClass
,listWidthClass
,listInputClass
,listTransitionClass
,listOptionBaseClass
,listOptionContainerClass
,listOptionActiveClass
,listOptionInactiveClass
,listOptionSelectedClass
,listOptionUnselectedClass
,listOptionDisabledClass
,listOptionEmptyClass
,listOptionIcon
,listOptionIconBaseClass
,listOptionIconActiveClass
,listOptionIconInactiveClass
andlistOptionIconSizeClass
props have been removed in favor ofui
ui.selectCustom.list
has been moved to the root ofui.selectMenu
, the component now usesui.select
to render the default slot
Radio
wrapperClass
,baseClass
,labelClass
,requiredClass
,helpClass
andcustomClass
props have been removed in favor ofui
Checkbox
wrapperClass
,baseClass
,labelClass
,requiredClass
,helpClass
andcustomClass
props have been removed in favor ofui
Toggle
baseClass
,activeClass
,inactiveClass
,containerBaseClass
,containerActiveClass
,containerInactiveClass
,iconBaseClass
,iconActiveClass
,iconInactiveClass
,iconOnClass
andiconOffClass
props have been removed in favor ofui
CommandPalette
inputCloseIcon
andemptyIcon
props have been removed in favor ofui
inputIcon
prop has been renamed toicon
inputPlaceholder
prop has been renamed toplaceholder
options
prop has been renamed tofuse
to follow thepopper
andui
props convention
Modal
wrapperClass
,innerClass
,containerClass
,baseClass
,backgroundClass
,overlayBackgroundClass
,overlayTransitionClass
,shadowClass
,ringClass
,roundedClass
,widthClass
andtransitionClass
props have been removed in favor ofui
innerStyle
prop has been removed#header
and#footer
slots have been removed
Slideover
wrapperClass
,baseClass
,backgroundClass
,overlayBackgroundClass
,overlayTransitionClass
,widthClass
,headerClass
andtransitionClass
props have been removed in favor ofui
#header
slot has been removed
Popover
wrapperClass
,containerClass
,widthClass
,baseClass
,backgroundClass
,shadowClass
,roundedClass
,ringClass
andtransitionClass
props have been removed in favor ofui
Tooltip
wrapperClass
,containerClass
,baseClass
,widthClass
,backgroundClass
,shadowClass
,ringClass
,roundedClass
,shortcutsClass
andtransitionClass
props have been removed in favor ofui
ContextMenu
wrapperClass
,containerClass
,widthClass
,backgroundClass
,shadowClass
,roundedClass
,ringClass
,baseClass
andtransitionClass
Notification
backgroundClass
,shadowClass
,ringClass
,roundedClass
,transitionClass
,customClass
andiconBaseClass
props have been removed in favor ofui
type
prop has been removedui.notification.type
andui.notification.icon.color
have been removedui.notification.close.icon.name
has been moved toui.notification.default.closeIcon
useToast
addNotification
andremoveNotification
have been renamed toadd
andremove
success
,info
,warning
anderror
methods have been removed astype
disappeared fromNotification
v0.1.13
What's Changed
- chore(components): update props with optional fields by @smarroufin in #118
- chore(deps): update all non-major dependencies by @renovate in #117
Full Changelog: v0.1.12...v0.1.13
v0.1.1
What's Changed
- fix(Popover): avoid crash on mount if ref not loaded by @smarroufin in #105
- chore(Dropdown|Popover|Tooltip): hover delay by @smarroufin in #104
- fix(Dropdown): close on click item with
to
by @smarroufin in #103
Full Changelog: v0.1.0...v0.1.1