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

oxygen-mdc

v1.2.0

Published

Light-weight material design web components

Downloads

2

Readme

Oxygen web-components

The Oxygen web-components are a light-weight collection of basic input elements, such as text input, button, icons, etc.

Demo: https://oxygen-mdc.web.app/

Usage

Install the Oxygen web components in:

npm install --save oxygen-mdc

Import the components into your code. For the button, use:

import 'oxygen-mdc/oxy-button';

Finally, use the component in your code:

<oxy-button>Push me</oxy-button>

Bugs and missing features

  • Missing support for keyboard navigation: Buttons, checkboxes, tabs, etc. cannot be activated with Enter or Space.
  • The slider cannot be changed with the keyboard. On mobile, trying to change the slider may scroll the page.
  • Tabbing through elements in dialogs is broken, focus trapping and focus restore is not properly implemented.

Changelog

Version 1.2.0

  • Overhaul of the oxy-tab component. The styles are cleaner, and styleability was improved. See the source file for style variables.

Version 1.1.0

  • Added HTMLElementTagNameMap to all elements
  • Changed import to lit/decorators.js to include the .js extension

Version 1.0.0

Changes for version 1.0.0 are centered around a different style for focused elements using a blue outline (by default) instead of a background color. Further, the focus will only show when the keyboard is used for navigation, relying on the :focus-visible selector instead of :focus. Several other CSS simplifications have been done.

API breaking changes for Version 1.0.0

  • Removed --oxy-button-background-color as it can be styled on the host
  • Changed oxy-button's host style from background-color to background
  • Changed oxy-button's focus to use blue outline by default, which changes the meaning of --oxy-button-focus-color
  • Added active property for oxy-button which is set during activation, e.g., while the mouse button is pressed

  • Changed oxy-checkbox's focus to use blue outline by default
  • Added --oxy-checkbox-checked-border variable
  • Added --oxy-checkbox-focus-color variable

  • Default for --oxy-dialog-text-color is now inherited from parent
  • The oxy-dialog can now be styled with the CSS part dialog

  • Added oxy-input styles for the disabled state
  • Changed --oxy-input-background-color on background-color to --oxy-input-background on background
  • Replaced --oxy-input-border-width and --oxy-input-border-color with --oxy-input-border which defines all border attributes
  • Replaced --oxy-input-border-color-focused with --oxy-input-border-focused which defines all border attributes
  • Default for --oxy-input-text-color is now inherited from parent

  • Added --oxy-slider-focus-color variable
  • Added --oxy-slider-track-height variable
  • Added --oxy-slider-thumb-size and --oxy-slider-thumb-radius variables

  • Replaced --oxy-tabs-border-color with --oxy-tabs-border which defines all border attributes

  • Default for --oxy-textarea-text-color is now inherited from parent
  • Changed --oxy-textarea-background-color on background-color to --oxy-textarea-background on background
  • Changed --oxy-textarea-background-color-focused on background-color to --oxy-textarea-background-focused
  • Replaced --oxy-textarea-border-width and --oxy-textarea-border-color with --oxy-textarea-border which defines all border attributes
  • Replaced --oxy-textarea-border-color-focused with --oxy-textarea-border-focused which defines all border attributes
  • Default for --oxy-textarea-box-shadow changed to none
  • Default for --oxy-textarea-box-shadow-focused changed to none
  • Added --oxy-textarea-placeholder-color variable