v4.7.0
🚀 Features
-
maz-ui: MazUiProvider - alternative to MazUi plugin (aa9f599b)
-
maz-ui: Enforce locale presence in MazUiProvider translations prop (861e9e9a)
The
translationsprop is now required and uses a genericTLocaleparameter to ensure
thatmessagescontains at least the specified locale's translations at compile time.<!-- TypeScript will error if 'fr' key is missing from messages --> <MazUiProvider :theme="{ preset: mazUi }" :translations="{ locale: 'fr', messages: { fr } }" />
New exported type:
MazUiProviderTranslations<T>
🩹 Fixes
- maz-ui: Use component-level provide instead of app.provide in MazUiProvider (7abcd7c4)
- maz-ui: Remove vue-router imports to be used without the vue-router dependency - fix #1396 (#1396)
💅 Refactors
-
@maz-ui/icons: Exports static and dynamic icon svg components (1ac39983)
How to use?
import { MazCheck, LazyMazCheck } from '@maz-ui/icons' // or import { MazCheck } from '@maz-ui/icons/static' import { MazCheck } from '@maz-ui/icons/lazy' // or import { MazCheck } from '@maz-ui/icons/static/MazCheck' import { MazCheck } from '@maz-ui/icons/lazy/MazCheck'
-
maz-ui: Optimize icon imports with static and lazy sub-paths (b3aad665)
-
@maz-ui/themes: Extract theme setup into modular utilities (c803cd73)
-
@maz-ui/translations: Restructure to modular architecture with vite build (0b00771f)
📖 Documentation
- @maz-ui/icons: Set icon set count in README (758bd9c4)
📦 Build
- Upgrade dependencies (6332ddd8)
- @maz-ui/utils: Fix types output path in build config (3332d487)
- Upgrade dependencies (7053722b)
❤️ Contributors
- LouisMazel (@LouisMazel)