1.3.6 • Published 2 years ago

@internetarchive/ia-icons v1.3.6

Weekly downloads
30
License
AGPL-3.0-only
Repository
-
Last release
2 years ago

ia-icons: SVG icon library for use in archive.org components

Usage

import { IAIcon } from './src/ia-icon';
<ia-icon icon="close" style="--iconFillColor: #0066cc; --iconStrokeColor: #ffffff;"></ia-icon>
ia-icon {
  --iconFillColor: #0066cc;
  --iconStrokeColor: #ffffff;
  --iconWidth: 40px;
  --iconHeight: 40px;
}

Testing

Unit tests are placed in the ./test directory with the suffix and extension ".test.js". Any other JS files in the test directory will be ignored by Karma. Run the tests with yarn test.

Structure

  • index.js - main component export
  • index.html - file opened when running yarn start
  • karma.conf.js - Karma runner config
  • karma.bs.conf.js - Karma BrowserStack config. Note that BROWSER_STACK_USERNAME and BROWSER_STACK_ACCESS_KEY need to be set as environment variables before running.
  • /src/ia-icons.js - Class definitions for each LitElement
  • /src/icons - Place icon SVGs here. Convention is to export a Lit-html template
  • /test - unit tests

Single Icons

This package is part of a monorepo that includes a published package for each icon included here. Each package includes a raw SVG file, a LitHtml template literal, and a defined custom element created with LitElement.

1.3.6

2 years ago

1.3.5

2 years ago

1.4.0-alpha.0

3 years ago

1.3.4

3 years ago

1.3.4-a1

3 years ago

1.3.3

3 years ago

1.2.1-alpha.6

4 years ago

1.2.1-alpha.7

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.3.2-alpha.0

4 years ago

1.2.3

4 years ago

1.2.3-alpha.1

5 years ago

0.3.1-alpha.4

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.5.0

5 years ago

0.3.2

5 years ago

0.4.0

5 years ago

0.3.1

5 years ago

0.3.1-alpha.3

5 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.0.1-alpha.13

5 years ago

0.1.0

5 years ago