Releases: nuxt/ui
Releases · nuxt/ui
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
uiprop to override the entire preset instead of individual props - Components prop
popperOptionshas been renamed topopper Alert,AlertDialog,TabsandPillscomponents have been removed
Avatar
wrapperClass,backgroundClass,placeholderClassandroundedClassprops have been removed in favor ofuiroundedprop is now a class defaulting torounded-fullinstead of a boolean prop, can be overriden throughui.avatar.roundedchipprop is nowchipVariantui.avatar.sizeandui.avatar.chip.sizexxsandxxxshave been renamed respectively to2xsand3xs
AvatarGroup
ringClassandmarginClassprops have been removed in favor ofuigroupprop has been removed in favor of slots
Badge
baseClassprop has been removed in favor ofuiroundedprop is now a class defaulting torounded-mdinstead of a boolean prop, can be overriden throughui.badge.roundedcolorprop has been added to change the color scheme of the badgevariantprop is now the variant instead of the colorfont-mediumhas been moved fromui.badge.basetoui.badge.font
Button
customClassprop have been removedbaseClass,iconBaseClassandroundedClassprops have been removed in favor ofuileadingIconClassandtrailingIconClassprops have been removedroundedprop is now a class defaulting torounded-mdinstead of a boolean prop, can be overriden throughui.button.roundedcolorprop has been added to change the color scheme of the badgevariantprop is now the variant instead of the colorlabelCompactandcompactprops have been removed entirely alongside presetui.button.compactandui.button.icon.leading.compactSpacingandui.button.icon.trailing.compactSpacingpaddedprop has been added to remove paddingui.button.size.xxshas been renamed toui.button.size.2xsui.button.size.2xlhas been introducedui.button.gaphas been introduced to replace margins defined inui.button.icon.leading.spacingandui.button.icon.trailing.spacingui.button.icon.leading.spacingandui.button.icon.trailing.spacingthat 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-mediumhas been moved fromui.button.basetoui.button.font
ButtonGroup
- New component
Dropdown
wrapperClass,containerClass,widthClass,backgroundClass,shadowClass,roundedClass,ringClass,divideClass,baseClass,transitionClass,groupClass,itemBaseClass,itemActiveClass,itemInactiveClass,itemDisabledClass,itemIconClass,itemAvatarClassanditemShortcutsClassprops 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,footerBackgroundClassprops have been removed in favor ofuiroundedprop is now a class defaulting torounded-lginstead of a boolean prop, can be overriden throughui.avatar.roundedpaddedprop has been removed, useui.rounded = 'sm:rounded-lg'instead when falseui.card.borderhas been removed in favor ofui.card.divideui.card.header&ui.card.footerare now{ spacing: '', background: '' }
Container
constrainedClassprop has been removed in favor ofuiui.container.baseandui.container.spacinghave been addedpaddedprop has been removed, useui.spacing = 'sm:px-6 lg:px-8'instead when falseconstrainedprop has been removed, useui.constrained = ''instead when false
Input
wrapperClass,baseClass,iconBaseClassandcustomClassprops have been removed in favor ofui
FormGroup
- Renamed to
InputGroup wrapperClass,containerClass,labelClass,labelWrapperClass,descriptionClass,requiredClassandhintClassprops have been removed in favor ofui
Textarea
wrapperClass,baseClassandcustomClassprops have been removed in favor ofuiresizeis now false by default
Select
wrapperClass,baseClass,iconBaseClassandcustomClassprops have been removed in favor ofui
SelectCustom
- Renamed to
SelectMenu placeholderprop is nownullby defaultnullableprop has been removedtextAttributehas been renamed tooptionAttributeand now defaults tolabelwrapperClass,baseClass,iconBaseClass,customClass,listBaseClass,listContainerClass,listWidthClass,listInputClass,listTransitionClass,listOptionBaseClass,listOptionContainerClass,listOptionActiveClass,listOptionInactiveClass,listOptionSelectedClass,listOptionUnselectedClass,listOptionDisabledClass,listOptionEmptyClass,listOptionIcon,listOptionIconBaseClass,listOptionIconActiveClass,listOptionIconInactiveClassandlistOptionIconSizeClassprops have been removed in favor ofuiui.selectCustom.listhas been moved to the root ofui.selectMenu, the component now usesui.selectto render the default slot
Radio
wrapperClass,baseClass,labelClass,requiredClass,helpClassandcustomClassprops have been removed in favor ofui
Checkbox
wrapperClass,baseClass,labelClass,requiredClass,helpClassandcustomClassprops have been removed in favor ofui
Toggle
baseClass,activeClass,inactiveClass,containerBaseClass,containerActiveClass,containerInactiveClass,iconBaseClass,iconActiveClass,iconInactiveClass,iconOnClassandiconOffClassprops have been removed in favor ofui
CommandPalette
inputCloseIconandemptyIconprops have been removed in favor ofuiinputIconprop has been renamed toiconinputPlaceholderprop has been renamed toplaceholderoptionsprop has been renamed tofuseto follow thepopperanduiprops convention
Modal
wrapperClass,innerClass,containerClass,baseClass,backgroundClass,overlayBackgroundClass,overlayTransitionClass,shadowClass,ringClass,roundedClass,widthClassandtransitionClassprops have been removed in favor ofuiinnerStyleprop has been removed#headerand#footerslots have been removed
Slideover
wrapperClass,baseClass,backgroundClass,overlayBackgroundClass,overlayTransitionClass,widthClass,headerClassandtransitionClassprops have been removed in favor ofui#headerslot has been removed
Popover
wrapperClass,containerClass,widthClass,baseClass,backgroundClass,shadowClass,roundedClass,ringClassandtransitionClassprops have been removed in favor ofui
Tooltip
wrapperClass,containerClass,baseClass,widthClass,backgroundClass,shadowClass,ringClass,roundedClass,shortcutsClassandtransitionClassprops have been removed in favor ofui
ContextMenu
wrapperClass,containerClass,widthClass,backgroundClass,shadowClass,roundedClass,ringClass,baseClassandtransitionClass
Notification
backgroundClass,shadowClass,ringClass,roundedClass,transitionClass,customClassandiconBaseClassprops have been removed in favor ofuitypeprop has been removedui.notification.typeandui.notification.icon.colorhave been removedui.notification.close.icon.namehas been moved toui.notification.default.closeIcon
useToast
addNotificationandremoveNotificationhave been renamed toaddandremovesuccess,info,warninganderrormethods have been removed astypedisappeared 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
toby @smarroufin in #103
Full Changelog: v0.1.0...v0.1.1