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

@evolv-delivery/verizon-design-system

v0.3.6

Published

A library of web components for rapid experiment development. Built to be compatible with the Verizon Design System 3.0

Downloads

394

Readme

Verizon Design System

A library of web components for experiments.

NPM scripts

| Script | Description | | :------------ | :----------------| | npm run build | Builds dist/../index.js files | | npm run watch | Automatically builds on save of src/index.js | | npm run serve | Hosts dist folder on port 8080 | | npm run dev | Watch and serve | | npm run ship | Build and publish to npm | | npm start | Same as npm run dev |

Using in a project

Verizon Design System components are automatically available anywhere the integration is active.

Local Hosting

Run npm start to host locally. To run in your browser inject the following into your <head> tag using Resource Override

(() => {
    if (window.self !== window.top) return;
    
    console.log('[evolv-local] verizon design system: inject')
    
    const script = document.createElement('script');
    script.type = 'module';
    script.text = 'import integration from "http://localhost:8080/index.js"; console.log("[evolv-local] verizon design system: load"); integration()';
    document.head.appendChild(script);
})();

Components

Title

Tag

<evolv-title bold="true">Bold small title</evolv-title>
<evolv-title size="medium" breakpoint="950px" primitive="h4">Medium title</evolv-title>

Class

window.evolv.vds.Title

Attributes

| Name | Description | Default | Accepts | | :--- | :---------- | :------ | :------ | | color | The text color of the title | inherit | See Properties | | bold | The weight of the title | false | true, false | | size | The font size of the title | small | xsmall, small, medium, large, xlarge, 2xlarge | | primitive | The base element for the title | Assigned based size See note | h1, h2, h3, h4, h5, h6, p, span | | breakpoint | The screen width at which to transition to a larger font size | 768px | <css width> |

Notes

The primitive attribute, if left blank, is assigned a default heading tag corresponding to its size:

| size | primitive | | :----- | :---------- | | xsmall | h4 | | small | h3 | | medium | h2 | | large | h2 | | xlarge | h1 | | 2xlarge | h1 |


Icon

Tag

<evolv-icon name="trash-can" size="medium"></evolv-icon>

Class

window.evolv.vds.Icon

Attributes

| Name | Description | Default | Accepts | | :--- | :---------- | :------ | :------ | | name | The name of the icon | empty | pencil, down-caret, right-arrow, trash-can, phone, phone-plan, phone-protection, info, close | | color | The text color of the icon | inherit | See Properties | | size | The font size of the icon | small | small, medium, large, xlarge, Refer to Notes | | title | The title to be passed to the icon, visible to assistive technologies | <name> | <string> |

Notes

| size | width and height | | :----- | :---------- | | small | 1rem | | medium | 1.25rem | | large | 1.5rem | | xlarge | 1.75rem |


ButtonIcon

Tag

<!-- Can use <evolv-icon> built in icons -->
<evolv-button-icon name="close"></evolv-button-icon>

<!-- Or use custom SVG by omitting the 'name' attribute or specifying 'name="empty"' -->
<evolv-button-icon>
  <svg width="28" height="28" viewBox="0 0 28 28">
    <!-- fill="currentColor" allows the SVG to inherit color the parent element -->
    <circle cx="14" cy="14" r="14" fill="currentColor" />
  </svg>
</evolv-button-icon>

Class

window.evolv.vds.ButtonIcon

Attributes

| Name | Description | Default | Accepts | | :--- | :---------- | :------ | :------ | | name | The name of the icon | empty | pencil, down-caret, right-arrow, trash-can, phone, phone-plan, phone-protection, info, close | | size | The size of the icon | small | small, large Refer to Notes | | title | The title to be passed to the icon, visible to assistive technologies | <name> | <string> |

Notes

| size | width and height | | :----- | :---------- | | small | 1.25rem | | large | 1.75rem |


TextLink

Tag

<evolv-text-link href="/target/url/" size="small" type="standAlone">Link</evolv-text-link>

Class

window.evolv.vds.TextLink

Attributes

| Name | Description | Default | Accepts | | :--- | :---------- | :------ | :------ | | type | Determines display layout of TextLink. | inline | inline, standAlone | | disabled | Disables TextLink. | false | true, false | | size | Renders TextLink in corresponding size. Requires type="standAlone" to be set. | large | small, large |


Button

Tag

<evolv-button use="secondary" width="50%">Click here</evolv-button>

Attributes

| Name | Description | Default | Accepts | | :--- | :---------- | :------ | :------ | | display | Changes the display property of the Button. | flex | flex, block, inline-block | | size | Renders the Button in the correpsponding size. | large | large, small | | use | Black (primary) or white (secondary) Button. | primary | primary, secondary | | width | The width for rendering the Button. | auto | <number> or <css width> | | disabled | Disables Button. | false | true, false |


Accordion

Tag

<evolv-accordion title-size="medium">
  <evolv-accordion-item>
    <evolv-accordion-header>Aries</evolv-accordion-header>
    <evolv-accordion-details>It's going to be a regular day, nothing special.</evolv-accordion-details>
  </evolv-accordion-item>
  <evolv-accordion-item>
    <evolv-accordion-header>Taurus</evolv-accordion-header>
    <evolv-accordion-details>Yikes. It's not looking so good, maybe stay home.</evolv-accordion-details>
  </evolv-accordion-item>
  <evolv-accordion-item>
    <evolv-accordion-header>Gemini</evolv-accordion-header>
    <evolv-accordion-details>This is it, the day you've been waiting for! Wear your good shirt.</evolv-accordion-details>
  </evolv-accordion-item>
  <evolv-accordion-item>
    <evolv-accordion-header>Cancer</evolv-accordion-header>
    <evolv-accordion-details>Ominous winds blow from the east. Something nameless stirres from its ancient slumber. Highlight marital status.</evolv-accordion-details>
  </evolv-accordion-item>
</evolv-accordion>

Attributes

| Name | Description | Default | Accepts | | :--- | :---------- | :------ | :------ | | breakpoint | Used by evolv-title and evolv-button-icon elements to increase size above a certain screen width | 768px | <css length> | | duration | Sets the animation duration for opening evolv-details panels | 0.33s | <css duration> | | handle-align | Whether the accordion handle is aligned left or right | left | left, right | icon-size | The size of the evolv-button-icon element, | Based on title-size if present, otherwise small | small, large | | id | A name for the accordion, used for data-track attributes and aria ids. | accordion-<index> | <valid id> | | open-first | Sets the initial state of the first accordion item to open | false | true, false | | padding | The padding for evolv-accordion-header and evolv-accordion-details elements | 1.5rem | <css length> | | padding-tablet | The padding for evolv-accordion-header and evolv-accordion-details elements on screens over breakpoint in width | 2rem | <css length> | | title-size | The size of the evolv-title elements to use. | small | small, medium, large | | title-bold | The bold option for evolv-title elements. | false | true, false | | title-color | The color option for evolv-title elements. | black | See Properties | | type | single only allows one accordion item to be open at a time. multi allows multiple items open simultaneously | multi | single, multi |


Properties

Color

color is a property shared by multiple components. More colors can be added as needed. The default value is inherit.

| Option | Hex | | :----- | :-- | | black | #000000 | | white | #ffffff | | red | #ee0000 | | gray11 | #1b1d1f | | gray20 | #333333 | | gray44 | #6f7171 | | gray65 | #a7a7a7 | | gray85 | #d8dada | | gray95 | #f6f6f6 |