@enos5/enos-vue-default
v1.8.16
Published
Shared Vue 3 UI components from Enos, packaged as the Default workspace inside the monorepo.
Readme
@enos5/enos-vue-default
Shared Vue 3 UI components from Enos, packaged as the Default workspace inside the monorepo.
Requirements
- Node.js 20+
- npm
Install
From the workspace root:
npm installBuild this package:
npm run build -w @enos5/enos-vue-defaultUse In Another Project
Install the published package:
npm install @enos5/enos-vue-defaultThis package expects these peer dependencies in the consuming app:
vue@inertiajs/vue3(^2.0.0or^3.0.0)@heroicons/vuevue-i18n
Rich text support uses TinyMCE and is bundled as a regular dependency in this library. The component set mirrors the Jetstream package except for ApplicationLogo, AuthenticationCard, Banner, NavGroup, NavLink, NavMenu, and ResponsiveNavLink.
You can register everything globally:
import { createApp } from 'vue'
import App from './App.vue'
import { EnosVueDefault } from '@enos5/enos-vue-default'
createApp(App).use(EnosVueDefault).mount('#app')Or import individual components:
import { Button, ColorPicker, TextInput } from '@enos5/enos-vue-default'ColorPicker resolves its built-in UI labels through vue-i18n using the English copy as keys. If your app wants localized picker chrome, define translations for keys such as Color, Selected color, Pick color from screen, Hue, Opacity, Hex value, Saturation and brightness for {color}, and Rainbow color area for {color}.
DateInput and DateRangeInput default to English locale behavior. Pass locale to override that, and for native browser date fields remember the final picker UI is still browser-controlled, with lang used as the locale hint.
Styles are loaded automatically when you import the package entrypoint, so consumers do not have to remember a separate CSS import.
If a consuming app wants earlier stylesheet loading during npm run dev, it can opt into the stable stylesheet entry explicitly:
import '@enos5/enos-vue-default/styles.css'That explicit import is optional. It mainly improves dev-mode first paint and avoids importing from dist directly.
Publish To npm
Before publishing, build the package and verify the tarball:
npm run build -w @enos5/enos-vue-default
npm pack --dry-run -w packages/defaultThen bump the version in packages/default/package.json, commit the change, and publish the workspace:
npm publish -w packages/default --access publicThe first public release of this package needs --access public. After the package exists on npm, subsequent publishes can use the same command.
