Releases: XurxoMF/xvelte
Release list
v1.1.0
Description
This release improves component maintainability, updates several components to their stable dependency APIs, and fixes public types and styles.
Icons are now isolated behind a semantic icon facade, allowing the icon library to be changed without modifying individual components.
From versions
- shadcn-svelte - v1.5.0 - dabbd4c
Changelog
🟢 Added
- Added
src/lib/icons.tsas the shared icon facade. - Added semantic icon exports such as
SidebarIcon,AlertErrorIcon, andSelectorIcon. - Added
RootPropsto the public Alert exports. - Added generic support to Tooltip
RootPropsandTriggerProps. - Added
mode-watchersupport to Sonner.
🟡 Changed/Updated
- Updated every component to import icons from
$lib/icons. - Updated Drawer wrappers for the stable
vaul-svelte0.3 API while preserving the publicrefand snippet-based component API. - Updated Sonner to use the current theme from
mode-watcher. - Updated Data Table usage to use the official stable
@tanstack/svelte-tablev9 adapter. - Updated Carousel navigation button positioning.
- Renamed the Field error item type from
ErrorErrortoError.
🟠 Fixed
- Fixed the
data-toptCSS variant name todata-top. - Fixed the Tooltip
portalPropstype to useTooltip.PortalProps. - Fixed Sidebar tooltip content props to use
Tooltip.ContentProps. - Fixed missing or incorrect component prop exports.
- Fixed component imports that prevented some components from passing Svelte checks.
- Removed Sonner's dependency on application-specific theme state.
🔴 Removed
- Removed the custom
data-tablecomponent and rendering helpers. - Removed direct icon-library imports from components.
- Removed the direct
@tanstack/table-coredependency in favor of@tanstack/svelte-table.
Update guide
-
Copy the new
src/lib/icons.tsfile. -
Replace the updated component directories you use.
-
If you customized icons, change only the mappings in
src/lib/icons.ts. Components should continue importing semantic names from$lib/icons. -
If you use Sonner:
- Install
mode-watcher. - Add
<ModeWatcher />to your root layout. - Remove any application-specific theme integration from the Sonner wrapper.
- Install
-
If you use Data Table:
- Remove
src/lib/components/ui/data-table. - Remove
@tanstack/table-core. - Install
@tanstack/svelte-table@^9.1.2. - Build tables using the regular Table components and the helpers exported by
@tanstack/svelte-table.
- Remove
-
If you import the Field error type, rename
ErrorErrortoError. -
Replace any use of the
data-topt:Tailwind variant withdata-top:. -
Run your type checker after replacing the components.
v1.0.0
Description
First release of the project. Nothing changed... everything is on the README.md.
From versions
- shadcn-svelte - v1.2.7 - d1f6c87
Changelog
🟢 Added
- Everything hehe
🟡 Changed/Updated
- Nothing
🟠 Fixed
- Nothing
🔴 Removed
- Nothing