npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@josedialpad/dt-vue-test

v3.23.6

Published

Vue component library for Dialpad's design system Dialtone

Downloads

9

Readme

Dialtone Vue 📞

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.

Dialtone Vue is available in Vue 2 as well as Vue 3:

Project Status

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.

Installation

You can install the Dialtone Vue library into your project via the following commands:

  • Vue 2: npm install @dialpad/dialtone-vue
  • Vue 3: npm install @dialpad/dialtone-vue@vue3

Usage

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';

Projects using Dialtone Vue should be aware of the requirements:

  • Dialtone classes must be made available globally (to avoid duplication, Dialtone Vue does not do this for you).
  • A tool like Webpack must be used to package the SFC components from Dialtone Vue.
  • LESS preprocessor support for Vue SFC <style> blocks.

These requirements are enforced via peerdependencies of Dialtone Vue when possible.

Emojis

Dialtone Vue uses JoyPixels to render emojis. If you are using the emoji components, Dialtone Vue will use the free joypixels assets hosted on jsdelivr CDN by default. You may wish to use self hosted joypixels assets such as the SVGs only available to premium license holders. In order to do this, set your custom asset URL with the following functions for small and large emojis during initialization of your app:

import { setEmojiAssetUrlSmall, setEmojiAssetUrlLarge } from '@dialpad/dialtone-vue/emoji'

// 16px and smaller
setEmojiAssetUrlSmall('https://my.example.website.com/joypixels/svg/unicode/32/', '.png')
// larger than 16px
setEmojiAssetUrlLarge('https://my.example.website.com/joypixels/svg/unicode/', '.svg')

You may access the emoji.json data for all emojis Dialtone Vue supports via executing the following function

import { getEmojiData } from '@dialpad/dialtone-vue/emoji'
const emojiData = getEmojiData();

Contributing

If you would like to contribute to Dialtone Vue the first step is to get the project running locally. Follow the below quickstart to do so.

  1. Clone the repo git clone https://github.com/dialpad/dialtone-vue.git
  2. Install dependencies npm run install:all
  3. Run local dev server npm start
  4. Visit local dev server at http://localhost:9011/

Next read the more detailed contributor documentation in CONTRIBUTING.md.