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

@adam-sv/arc

v1.1.1

Published

[https://adam-sv.github.io/arc/](View Components on GitHub Pages)

Downloads

5

Readme

ARC

[https://adam-sv.github.io/arc/](View Components on GitHub Pages)

ARC is a React component library, built on TypeScript, React, React-Router-DOM, and D3, offering a variety of input, layout, and visualization capabilities.

Usage

Inside Project ADAM at Acubed

Look for jobs on the ADAM team or at Acubed here: https://acubed.airbus.com/careers/ :)

From npmjs.org

We have published ARC to the public NPM under the @adam-sv organization.

If you have configured a different registry, you can point the @adam-sv scope or the local folder's scope to public NPM via:

# Set local npm config
npm config set registry https://registry.npmjs.org/
# Set @adam-sv
npm config set @adam-sv:registry https://registry.npmjs.org/

CSS

Include arc's CSS:

import '@adam-sv/arc/dist/arc.css';

Theming

To generate a theme, use the generateThemeVariableString function provided. generateThemeVariableString will output a formatted string that can be copy-pasted into your own css file.

You can specify colors by passing an IThemeProps object (below). Any unspecifed colors will default to our in-house colors.

Text colors are calculated automatically based on the color the text is displayed upon - right now the only options are white and black, as per industry usability guidelines.

export interface IThemeProps {
  background?: string; // background color of the app
  surface?: string; // color of surfaces, such as panels
  border?: string; // color of borders found on UI components like buttons and forms
  light?: string; // light grey (same Hue and Saturation of medium, higher Brightness)
  medium?: string; // medium grey (doesn't need to be a pure grey, often tinted slightly blue)
  dark?: string; // dark grey (same Hue and Saturation of medium, lower Brightness)
  primary?: string; // main branding color (usually bold)
  secondary?: string; // secondary branding color (often a bit softer than primary)
  tertiary?: string; // branding color (usually an accent color, rarely used)
  danger?: string; // color of errors, delete buttons, etc. (red)
  warning?: string; // color of warning messages (orange)
  success?: string; // color of sucess messages, submit buttons, etc. (green)
}

Using the theming in your component

If you are writing a component, you should make sure to use the theming variables instead of hard-coding colors.

For example, when making a border, instead of writing border: 1px solid black, write border: 1px solid var(--border); then, when the theme switches, your component will automatically update.

Scoping theme variable overrides

You may override theme variables on a scoped basis without affecting the overall theme you've generated.

Example: By default --ArcInput-borderColor is set to --border-color.

If only special ArcInput borders should be set to another css variable, you may scope your override to just the .ArcInput.special css class:

.ArcInput.special {
  --ArcInput-borderColor: var(--some-other-color-variable);
}

Components & Types

Import components and types:

import { Input } from '@adam-sv/arc';
import type { IInputProps } from '@adam-sv/arc';

Installation

Install project from project root:

~/arc/ % yarn