Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@dialpad/dialtone-vue
Advanced tools
Dialtone Vue is a library of Vue components for Dialtone. The goal is to simplify and standardize the use of common UI patterns and behaviour across all Dialpad projects.
Component Documentation Site ↗️
Dialtone Vue is a new project, and as such it is under constant development as we add new components and refine existing ones. Please refer to the jira board to see the status of Dialtone Vue components and request new components that should be in the Dialtone Vue library.
Dialtone Vue components can be imported directly from the package. Some components also export named constants, which can be imported as well:
import { DtInput, VALIDATION_MESSAGE_TYPES } from '@dialpad/dialtone-vue';
Dialtone Vue uses Storybook for documentation of components, as well as an environment for local development. Please see the Storybook Documentation Site for specific usage information and interactive documentation for each Dialtone Vue component.
All components in Dialtone Vue should have stories written for them in Storybook. For more information on how to write stories, see the documentation.
Storybook provides a sandbox to develop and experiment with components locally, in isolation from the rest of the app. With Storybook you get live reloading of component templates and styles, just like you would in the app. You can also test different props and slots and see the effects in real time, test accessibility issues, and more.
To run Storybook locally, first install the dependencies:
npm run storybook:install
Then you can run the dev server:
npm run storybook
Building components for Dialtone Vue is similar to components for Dialpad or UberConference, but there are some differences. Remember that Dialtone Vue is a shared library so more care has to be taken to avoid breaking changes.
Remember that Dialtone Vue is a separate project, so be sure to run the lint and unit tests for Dialtone Vue separately whenever making changes to the library.
See CONTRIBUTING.
npm install
Dialtone components should utilize the global immutable CSS classes provided by Dialtone whenever possible. It is a requirement of any project using Dialtone Vue to include these classes.
If needed, you can also write custom CSS using Dialtone LESS variables by importing ../css/dialtone.less
.
Please do not use any scoped CSS or mixins in Dialtone Vue components.
Each component should have a corresponding unit test in the tests/specs
directory. There is no special test setup as Dialtone Vue components do not have access to the Vuex store or custom methods/directives.
When adding a new component, please add its exports to index.js
, including any named exports, so they're available for import to users of Dialtone Vue:
export {
default as DtInput,
INPUT_SIZES,
} from './components/input.vue';
Dialtone Vue components are designed to be used in a variety of different projects. As such, Dialtone Vue components should be pure Vue components with no dependencies on global Vue plugins or stores, except when noted below. This in particular means:
v-tooltip
) cannot be used in Dialtone Vue components.Project using Dialtone Vue should be aware of the requirements:
<style>
blocks.These requirements are enforced via peerdependencies of Dialtone Vue when possible.
FAQs
Vue component library for Dialpad's design system Dialtone
The npm package @dialpad/dialtone-vue receives a total of 254 weekly downloads. As such, @dialpad/dialtone-vue popularity was classified as not popular.
We found that @dialpad/dialtone-vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.