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

@clarabridge/unified-icons

v10.13.0

Published

Discover Icons Library

Downloads

306

Readme

Discover Unified Icons

npm (scoped)

Unified UI is a set of UI components that implement our unified in Discover design.

Preview: https://clarabridgeinc.github.io/unified-icons/

Installation

This package is only available in Qualtrics Jfrog Artifactory. Unified Icons can be installed as an npm package:

$ npm i @discover/unified-icons

Basic usage

import '@discover/unified-icons';
<span class="q-icon q-icon-alarm" aria-hidden="true" />

Preview icons

  • Clone the repository (or pull the latest version)
  • Install dependencies using $ npm install
  • Build files using $ npm run build
  • Open index.html in your browser

Contributing

  1. Create a feature branch
  2. Add your .svg files to the svg/original directory. For example from cfe/ui.
  3. Run npm run build to compress and build the font
  4. Copy the newly generated icons in ./src/codepoints.json to ./fantasticonrc.js. This ensures that all glyphs use the same unicode character on future builds. Studio in some cases uses the font icon unicode character and this breaks those icons in studio.
  5. Make a MR for your commit
  6. Get a coffee and wait for reviews

How to make a release

Studio can only consume this from npm as of 9/23/2024. In order for studio to use the icons, it needs to be published to npm.

This repo is hosted is gitlab and the package is hosted in Jfrog Artifactory. In order to publish a new version, detailed instructions can be found here.

A brief summary of the instructions are as follows:

  1. Connect to VPN.
  2. run npm config set registry https://artifactory.eng.qops.net/artifactory/api/npm/npm-virtual/ This will set the default registry for your machine to be Qualtrics Artifactory. For npm installs, it would first look in the Artifactory and then look at public npm registry as a fallback.
  3. Log in to the registry with npm login --registry https://artifactory.eng.qops.net/artifactory/api/npm/npm-local. Username(developer) and password are from One Password.
  4. Make your changes, commit them, upgrade package locally. Confirm that the artifacts generated look correct with npm publish --dry-run
  5. Finally, publish using npm publish.
  6. Check artifactory (under npm-local) to verify that the package has been published.

Fixing icons with incorrectly filled-in paths

When adding sentiment icons, we discovered a bug in the svgs -> fonts are conversion process. The issue, we think is from a dependency of the svg > font conversion library ((MR with links)[https://gitlab-app.eng.qops.net/xm-discover/discover-studio/unified-icons/-/merge_requests/168]). Figma and Illustrator will use evenodd to make inner-holes in svgs empty (Like the inner holes in a figure 8).

Theh solution is to edit the svgs in Inkscape to revert the direction of the paths.

  1. Open the svg in Inkscape
  2. Select all paths
  3. In the top menu, select Path -> Break Apart
  4. In the top menu, select Path -> Exclusion
  5. Save the file and manually remove some of the svg metadata added by Inkscape.
  6. Run npm run build to rebuild the font.

License

This project is licensed under the terms of the MIT license.