@wisemen/vue-core-components β
2.0.2 β
π Patch Fixes β
- 7099d8a: All date-related components now default to the browser's locale, ensuring dates and times are displayed according to the user's local settings.
2.0.1 β
Patch Changes β
- 972d805:
Dialog: fixed an issue where the component state would persist after reopening a dialog.
2.0.0 β
β¨ Improvements β
- DropdownMenu, Popover, Tooltip: Refined transitions for smoother and more consistent animations across components.
π Bug Fixes β
- Popover: Ensured popovers respect the available viewport height by applying a dynamic
max-height. - Select: Fixed an accessibility issue where the
idwas applied to the wrong element, preventing the Select from being properly accessible. - Table: Resolved an accessibility issue where row actions did not have a readable label for screen readers.
- Dialog: Fixed an issue where opening a new dialog from within another caused the first dialog to unmount unexpectedly.
- NumberField: Now inherits the locale from the user's browser (
navigator.locale) instead of the configured locale, ensuring a more intuitive number format by default.
2.0.0-beta.2 β
β¨ Improvements β
- Toast: Added logic to suppress duplicate toasts with the same title and description, preventing repetitive notifications.
π Patch Fixes β
- Toast: Added
closeButtontoclassConfigfor easier styling customization. - AddressAutocomplete: Propagated slots correctly to support advanced slot composition.
- Props export: Fixed issue where props with complex types required
@vue-ignorewhen extending components β props are now exported in a more type-safe way. - DatePicker / DateRangePicker: Fixed incorrect month display labels.
- ClassConfig: Resolved multiple internal issues with the
classConfigprop to ensure reliable class merging and customization.
2.0.0-beta.1 β
π Patch Fixes β
- Temporal migration: Refactored leftover
Dateusage to fully adopt the Temporal API. - Styling: Fixed an issue where
class-configclasses could be overwritten bydefineComponentVariantclasses, ensuring custom styles are applied correctly.
2.0.0-beta.0 β
β οΈ Breaking Changes β
Composables: Renamed to remove the
vcprefix.Upgrade Note: Update all imports from
vcXyztoXyz. Example:ts// Before import { useVcDialog, useVcToast } from "@wisemen/vue-core-components"; // After import { useDialog, useToast } from "@wisemen/vue-core-components";useDialog:
- Now accepts a Vue component directly instead of options.
open()no longer supports an optionalidparameter.close()no longer supports an optionalidparameter.getTriggerProps()replaced with the computed propertytriggerProps.isOpen()replaced with the computed propertyisOpen.Upgrade Note: Refactor dialog usage to use the new component-based API. Replace calls to
open(id)andclose(id)with justopen()andclose(). UsetriggerPropsandisOpencomputed values instead of the old methods.ts// Before const dialog = useVcDialog({ component: () => import("./MyDialogComponent.vue"), }); // After const dialog = useDialog(MyDialogComponent);
Date handling: Migrated from
Dateto the Temporal API.Upgrade Note: Review all components or composables that previously relied on
Dateobjects and update them to useTemporal.PlainDate,Temporal.PlainDateTime, orTemporal.ZonedDateTimeas appropriate.Table:
TableNexthas been renamed toTable, and the legacyTablecomponents have been removed.Upgrade Note: Replace all
TableNextimports and usage withTable. Remove any code referencing the oldTablecomponents.
β¨ Improvements β
- ThemeProvider: Moved from Portal components to PopperContent components for better integration.
- DropdownMenu: Added
onCloseAutoFocusandonEscapeKeyDownevents for finer control over interactions. - ThemeProvider: Added
as-childprop to apply the theme directly to the child component instead of wrapping it in adiv. - ConfigProvider: Now exports its config context for advanced customization.
1.17.0 β
π₯ New Features β
- ConfigProvider: Added
hourCycleprop to control 12h/24h time formatting across components.
π Bug Fixes β
- Select: Adjusted dropdown width to better fit its content.
- Button: Removed unused emits to ensure proper event propagation.
1.16.0 β
β¨ Improvements β
- Popover, Tooltip, DropdownMenu, Select: Improved transitions by reducing duration and bounce for smoother UI animations.
π Bug Fixes β
- General: Fixed class merge issues that sometimes prevented overrides or required using
!important. - Autocomplete: Prevented the list from clearing when manual dropdown opening is allowed. Removed unused
filterprop. - RouterLinkTabs: Now replaces routes instead of pushing, improving navigation behavior.
- Toast: Fixed
auto-close-toastprop to support more flexible customization. - Tooltip: Resolved issue with
open-delaybeing skipped by movingTooltipProviderunderConfigProvider. - DropdownMenu: Corrected prop type export casing.
1.15.0 β
π₯ New Features β
- Toast: Added support for custom duration, enabling more control over how long toasts remain visible.
π Bug Fixes β
- RouterLinkButton: Fixed issue with
variantprop not being applied correctly. - Button: Removed default shadow to align with updated design standards.
1.14.0 β
π Minor Changes β
- Address: Added support for
placeId.
1.13.0 β
π₯ New Features β
- Toast: Added support for auto-closing toasts via a new configuration option β useful for transient notifications that shouldn't require manual dismissal.
- Added
VcTableXXXNextcomponents which in the future will replace the existingVcTablecomponents.
1.12.1 β
π Patch Fix β
- FileUpload: Fixed an issue that prevented successful uploads to Azure Blob Storage in certain configurations.
1.12.0 β
β οΈ Breaking Changes β
- FileUpload: Some type interfaces have changed.
π Minor Changes β
- FileUpload: Introduced new
VcFileUploadDropzonecomponent and fixed multiple bugs to improve reliability and usability.
π Patch Fixes β
FileUpload:
- Fixed enum export issue (previously exported as a type).
- Resolved a bug where the internal state and the bound value could get out of sync, resulting in duplicated file entries.
PhoneNumberField:
- Fixed issue where the country code was ignored when using an initial value.
1.11.0 β
π₯ New Features β
- PhoneNumberField: Added support for
class-configprop, allowing full customization.
1.10.0 β
π₯ New Features β
- Improved customization support across components:
- Exposed
hiddenResultsHintinclassConfigfor more granular styling. - Added
data-first-column,data-last-column, anddata-stickyattributes to enhance layout control and state targeting.
- Exposed
π Bug Fixes β
- Checkbox: Fixed a layout shift bug that could affect alignment during rendering.
- useKeyboardShortcut: Improved support for the
Escapekey when used as a modifier. - Textarea: Fixed the type definition for the
variantprop to prevent TypeScript errors.
1.9.0 β
π₯ New Features β
- Dialog: Updated enter and leave transitions for a smoother animation experience.
π Bug Fixes β
- Dialog: Removed an unintended border when in light mode.
- FileUpload: Cleaned up the
getFileInfotype by stripping unused properties.
1.8.0 β
π₯ New Features β
- LayoutStack: Introduced
LayoutStackRootandLayoutStackItemcomponents to enable animated stacking of elements.
1.7.3 β
β¨ Improvements β
- Table: Exported internal component parts to allow more granular customization.
- KeyboardShortcutProvider: Now automatically disables shortcuts when any parent element has
aria-hidden, improving accessibility behavior.
π Bug Fixes β
- Table: Fixed an issue in the calculation of the active filter count, ensuring accurate display.
1.7.2 β
π Bug Fixes β
- DatePicker, DateRangePicker: Fixed a reactivity issue that caused the placeholder value to not work correctly.
1.7.1 β
β¨ Improvements β
- Table: Added a background color to the empty and loading state.
- Spinner: Migrated styles to Tailwind, so there's no longer a need to import a separate stylesheet.
π Bug Fixes β
- DatePicker, DateRangePicker: Fixed an issue where the calendar incorrectly started on Tuesday instead of Monday.
1.7.0 β
π₯ New Features β
- Autocomplete: Added an
itemsslot to support more advanced customization.
β¨ Improvements β
- DatePicker, DateRangePicker: Now properly forward the
localeprop for localized formats.
π Bug Fixes β
- DateField, DateRangeField: Fixed the
placeholderValueprop to behave as expected.
1.6.0 β
π₯ New Features β
- Tabs: Added horizontal scrolling with navigation arrows when content overflows.
- Switch: Introduced
iconCheckedandiconUncheckedprops for customizing switch icons.
β¨ Improvements β
- Select:
- Added a
badgeslot to allow custom badge implementations. - Truncated long values to prevent overflow.
- Added a
- PhoneNumberField: Now sets
modelValuetonullwhen the input is empty.
π Bug Fixes β
- Toast: Fixed an issue where interacting with a toast while a dialog was open would unintentionally close the dialog.
1.5.6 β
π Bug Fixes β
- build: Fix issue with the latest deployment.
1.5.5 β
β¨ Improvements β
- FormField: Added an icon to error messages for improved visual feedback.
- DateField, DateRangeField: Updated
modelValueto extend fromDate, allowing for better type inference and consistency. - Table:
TableHeaderCellis now wrapped in a context provider, removing the need to manually pass thecolumnprop.
1.5.4 β
π Bug Fixes β
- Dialog: Fixed a regression where
VcDialogTriggerPropswas no longer being exported.
1.5.3 β
π Bug Fixes β
- Select: Fixed an issue where opening the dropdown caused abrupt and incorrect scrolling.
- Popper Components: Ensured slot content is correctly wrapped in a
ThemeProviderwhen rendered via a portal.
β¨ Improvements β
- Select: The
placeholderis now fully customizable.
β οΈ Deprecations β
useAppearancehas been deprecated.
β Please switch to usinguseStoragedirectly in your project.
This composable will be removed in the next major release.
1.5.2 β
β¨ Improvements β
- TimeField: Changed the
modelValuetype fromstringto a genericT extends stringfor improved flexibility. - TextField: Prefixed component exports with
Vcto maintain naming consistency. - Dialog: Exported
VcDialogTriggerPropstype.
π Bug Fixes β
- TextField: Fixed issue where the input remained enabled even when
isDisabledwas set totrue.
1.5.1 β
π Bug Fixes β
- Resolved an issue where styles were broken due to Tailwind not being properly imported.
1.5.0 β
π₯ New Features β
- Introduced the
FileUploadcomponent for uploading files directly to S3.
β¨ Improvements β
- Select: Updated dropdown transitions to be smoother and less abrupt.
- AddressAutocomplete: Added support for
busprop. - Table: Refined the empty state appearance by softening blur.
- Moved
vue-sonnerto dependencies to ensure type availability.
π Bug Fixes β
- Select: Fixed issue where
class-configprop classes werenβt applied toSelectPopover. - AddressAutocomplete: Resolved a delay where the selected value took longer than expected to appear.
- Table:
- Fixed duplicate borders when content wasnβt scrollable.
- Fixed missing borders when columns were sticky.
- RouterLinkButton: Resolved layout issues.
1.4.0 β
π₯ New Features β
- Introduced the
Badgecomponent. - Added a
DateRangePickercomponent for selecting date intervals. - Added a
DateRangeFieldcomponent for form-based date range input.
β¨ Improvements β
- Dialog: Exported the
DialogPortalcomponent.
π Bug Fixes β
- Table: Fixed accessibility issue by moving
aria-sortto the correct column header.
1.3.1 β
β¨ Improvements β
- Types: Exported
AcceptableValuefor more flexible type support.
1.3.0 β
π₯ New Features β
- Added a
Toastcomponent for temporary notifications such as success, error, or info messages. - Introduced
PaginationParamsBuilderutility for generating query parameters related to pagination.
β¨ Improvements β
- Internal types were refactored to support better customization of nested components.
π Bug Fixes β
- Table: Fixed issue where interactive elements in rows wouldn't function correctly when a row action was defined.
1.2.0 β
π₯ New Features β
- Added a
Tablecomponent for displaying structured data in rows and columns.
1.1.0 β
π₯ New Features β
- Tabs: Restricted
valueandmodelValueto accept only strings. - Select: Introduced
clearSearchTermOnBlurto reset the input automatically on blur. - RadioGroupItem: Added
RadioGroupItemControlfor customizing the default indicator UI. - Checkbox: Added
CheckboxControlfor customizing the default checkbox UI. - Export the
Spinnercomponent. - Reduced potential accessibility issues by limiting
idattributes to form components only; others now usedata-test-id.
β¨ Improvements β
- KeyboardShortcut: Added support for the
classConfigprop. - SelectItem: Now supports
idandtestIdprops for better testability.
π Bug Fixes β
- Autocomplete: Fixed issue where the search term cleared unexpectedly.
- Select:
- Fixed issue where dropdown closure did not trigger blur.
- Resolved
v-modelissues when using inline search.
- Popover: Prevented maximum call stack error when using native
TeleportwithSelect. - Checkbox & RadioGroupItem: Improved pointer interaction by applying pointer classes to the root element.
- KeyboardKey: Switched from
widthtomin-widthto accommodate wider content. - IconButton: Replaced
min-widthwithwidthfor easier sizing. - Button: Ensured
IconRightremains visible during loading. - Textarea: Fixed inconsistent height rendering in edge cases.
- DropdownMenu: Ensured arrow visibility when
sideis set totoporbottom. - PrimitiveElement: Renamed
test-idattribute todata-test-id. - Resolved issues with components unintentionally overwriting each other when sharing the same variant name.
β¨ Improvements β
- Added customization examples for
CheckboxandRadioGroupItem.
1.0.0 β
π₯ Breaking Changes β
- Replaced
errorsarray with a singleerror-messagestring for simplified error handling. - Renamed
popover-offsettopopover-side-offsetand introducedpopover-align-offset.
β¨ Improvements β
- Dialog: Refined transition properties.
- Icon: Added
aria-hiddenattribute. - Updated font size for item labels in
DropdownMenu. - Improved popper origin transitions.
- Enabled roving focus for better accessibility in
Selecttags. - Exported the
Iconcomponent for reuse.
π Documentation β
- Added documentation for form component error states.
- Included usage examples for
Dialogcomponents.
π Bug Fixes β
- DropdownMenu: Fixed incorrect transition origin and destructive icon color.
- Popover: Fixed arrow visibility in documentation examples.
- Externalized
motion-vdependency.