@eaera-com/eaera-widgets-v2
v0.1.69
Published
Vue 3 UI widget library shared across Eaera CRM products
Downloads
691
Readme
@eaera-com/eaera-widgets-v2
Shared Vue 3 UI widget library built with Vite + TypeScript, used across Eaera CRM products (Backoffice and Client Portals). Ships per-component ESM modules for tree-shaking, a full single-file bundle, and bundled type declarations.
Install
yarn add @eaera-com/eaera-widgets-v2Required peer dependencies (Yarn does not install peers automatically):
yarn add vue@^3.5 element-plus@^2.14 @element-plus/icons-vue@^2.1 @lucide/vue@^1.14 vue-i18n@^9Optional peers, only needed if you use the chart widgets:
yarn add echarts@^5.4 vue-echarts@^6.6 lightweight-charts@^5.2Usage
Full import via the tree-shakable root facade:
import { EaeraButton, EaeraDateTimePicker } from '@eaera-com/eaera-widgets-v2';
import '@eaera-com/eaera-widgets-v2/style.css';Per-component subpath import (pulls only that widget and its shared chunks):
import EaeraButton from '@eaera-com/eaera-widgets-v2/components/base/EaeraButton';Single-file bundle (no tree-shaking, everything included):
import { EaeraButton } from '@eaera-com/eaera-widgets-v2/bundle';Per-component type declarations are resolved automatically from the exports map; no extra types config is needed in consumers.
Styles
Widget-specific styles ship in the style.css export above. Element Plus styles are not injected — the host app must load them itself, e.g.:
import 'element-plus/dist/index.css';Icon SVG assets (currency/flag icons) are emitted as separate files under assets/ and fetched only when referenced, keeping the shared chunks small.
Development (this repo)
yarn dev # vite playground
yarn storybook # component stories
yarn build # umbrella bundle + per-component build + d.ts shims
yarn typecheck # vue-tsc --noEmitThe library is published to the public npm registry with publishConfig.access: public.
Attributions
Country flag SVGs: 46 icons sourced from flag-icons v7.2.3.
Copyright (c) 2013 Panayiotis Lipiridis
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, subject to the above copyright notice and this permission notice being included in all copies or substantial portions of the Software.
License
Copyright (c) 2026 EAERA. All rights reserved.
This package is UNLICENSED: it is published for internal use by Eaera products only. No rights to use, copy, modify, or redistribute are granted beyond what is necessary to install it as a dependency of an Eaera product. The flag-icons assets above remain subject to their own MIT license.
