open-index/open-npm huggingface dataset:
npm package: @spark-digital/ignition
Description: Component Library for Spark Digital
Author: Spark Digital
Latest version: 0.4.3-rc.5

# ignition

> Component Library for Spark Digital

[![NPM](https://img.shields.io/npm/v/ignition.svg)](https://www.npmjs.com/package/ignition) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save ignition
```

## Usage

```tsx
import React, { Component } from 'react'

import MyComponent from 'ignition'
import 'ignition/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}
```

## License

MIT © [Spark Digital](https://github.com/Spark Digital)
npm package: @spark-dist/eslint-config
Description: Eslint config for spark
Author: spark
Latest version: 0.0.4

# @spark-dist/eslint-config

Eslint config for spark

## Installation

```bash
$ npm i eslint @spark-dist/eslint-config --save-dev
```

```bash
$ yarn add eslint @spark-dist/eslint-config --save-dev
```

```bash
$ pnpm add eslint @spark-dist/eslint-config --save-dev
```

## Usage

Add `@spark-dist/eslint-config` to the extends section of your `.eslintrc` configuration file.

```js
// .eslintrc.js
{
  extends: ['@spark-dist/eslint-config']
}
```

 You can omit the `eslint-config`

 ```js
 // .eslintrc.js
{
  extends: ['@spark-dist']
}
 ```
npm package: @spark-dist/eslint-config-base
Description: Base eslint config for spark
Author: spark
Latest version: 0.0.3

# @spark-dist/eslint-config-base

Base eslint config for spark

## Installation

```bash
$ npm i eslint @spark-dist/eslint-config-base --save-dev
```

```bash
$ yarn add eslint @spark-dist/eslint-config-base --save-dev
```

```bash
$ pnpm add eslint @spark-dist/eslint-config-base --save-dev
```

## Usage

Add `@spark-dist/eslint-config-base` to the extends section of your `.eslintrc` configuration file.

```js
// .eslintrc.js
{
  extends: ['@spark-dist/eslint-config-base']
}
```

 You can omit the `eslint-config-` prefix

 ```js
 // .eslintrc.js
{
  extends: ['@spark-dist/base']
}
 ```
npm package: @spark-dist/eslint-config-next
Description: Next.js eslint config for spark
Author: spark
Latest version: 0.0.3

# @spark-dist/eslint-config-next

Next.js eslint config for spark

## Installation

```bash
$ npm i eslint @spark-dist/eslint-config-next --save-dev
```

```bash
$ yarn add eslint @spark-dist/eslint-config-next --save-dev
```

```bash
$ pnpm add eslint @spark-dist/eslint-config-next --save-dev
```

## Usage

Add `@spark-dist/eslint-config-next` to the extends section of your `.eslintrc` configuration file.

```js
// .eslintrc.js
{
  extends: ['@spark-dist/eslint-config-next']
}
```

 You can omit the `eslint-config-` prefix

 ```js
 // .eslintrc.js
{
  extends: ['@spark-dist/next']
}
 ```
npm package: @spark-dist/eslint-config-react
Description: React eslint config for spark
Author: spark
Latest version: 0.0.3

# @spark-dist/eslint-config-react

React eslint config for spark

## Installation

```bash
$ npm i eslint @spark-dist/eslint-config-react --save-dev
```

```bash
$ yarn add eslint @spark-dist/eslint-config-react --save-dev
```

```bash
$ pnpm add eslint @spark-dist/eslint-config-react --save-dev
```

## Usage

Add `@spark-dist/eslint-config-react` to the extends section of your `.eslintrc` configuration file.

```js
// .eslintrc.js
{
  extends: ['@spark-dist/eslint-config-react']
}
```

 You can omit the `eslint-config-` prefix

 ```js
 // .eslintrc.js
{
  extends: ['@spark-dist/react']
}
 ```
npm package: @spark-dist/eslint-config-ts
Description: TypeScript eslint config for spark
Author: spark
Latest version: 0.0.3

# @spark-dist/eslint-config-ts

TypeScript eslint config for spark

## Installation

```bash
$ npm i eslint @spark-dist/eslint-config-ts --save-dev
```

```bash
$ yarn add eslint @spark-dist/eslint-config-ts --save-dev
```

```bash
$ pnpm add eslint @spark-dist/eslint-config-ts --save-dev
```

## Usage

Add `@spark-dist/eslint-config-ts` to the extends section of your `.eslintrc` configuration file.

```js
// .eslintrc.js
{
  extends: ['@spark-dist/eslint-config-ts']
}
```

 You can omit the `eslint-config-` prefix

 ```js
 // .eslintrc.js
{
  extends: ['@spark-dist/ts']
}
 ```
npm package: @spark-engine/code-highlighter
Description: Highlight static code snippets with CodeMirror
Author: Brandon Mathis
Latest version: 1.0.0

# Spark Code Highlighter

Easily highlight static code snippets using the wonderful
[CodeMirror](https://codemirror.net/). This wraps the CodeMirror run mode
feature and adds language aliases, and DOM interaction.

[![Build Status](http://img.shields.io/travis/spark-engine/code-highlighter.svg?style=flat-square)](https://travis-ci.org/spark-engine/code-highlighter)

## Setup:

When requiring this module, be sure to also require the CodeMirror
language modes for the languages you'll be working with. For example if
you are going to highlight HTML, Javascript, and CSS, you might add this:

```javascript
var Highlighter = require( '@spark-engine/code-highlighter' )

// Require highlighter modes
require( 'codemirror/mode/htmlmixed/htmlmixed' )
require( 'codemirror/mode/javascript/javascript' )
require( 'codemirror/mode/css/css' )
```

See [CodeMirror's mode documentation](https://codemirror.net/mode/) for a complete list of supported languages.

## Usage

Code snippets can be any element (not just a `<pre>` block) with `data-lang` attribute to set the language.

For example:

```html
<pre data-lang='css'>
body {
  background: #c0ffee;
}
</pre>

<div data-lang='ruby'>
puts 'hello world'
</div>
```

Then to highlight all code snippets on the page:

```javascript
Highlighter.highlight([selector])
```

Pass a selector to only highlight code snippets which match that selector. The default selector is `data-lang`.

## Alias languages

If your language doesn't seem to be highlighting properly, you can specify
the mimetype that CodeMirror is using to identify your language. For SCSS, you'd use `data-lang="text/x-scss"`. That's kind of verbose so this library adds some aliases so you can go on using `data-lang="scss"` and it is converted before invoking CodeMirror.

```
var aliases = {
  'html'  : 'text/html',
  'slim'  : 'text/slim',
  'js'    : 'text/javascript',
  'json'  : 'application/json',
  'sass'  : 'text/x-sass',
  'scss'  : 'text/x-scss',
  'bash'  : 'text/x-sh',
  'sh'    : 'text/x-sh'
}
```

To add an alias of your own, pass an object to `aliasLang`.

```js
Highlighter.aliasLang({
  'less': 'text/x-less'
})
```

And of course, remember to require the appropriate CodeMirror modes for your lanugages.
npm package: @spark-engine/time
Description: A DateTime library which extends Luxon to add parsing, pretty printing, and comparison.
Author: Brandon Mathis
Latest version: 1.0.0

# Spark Engine Time

A DateTime library which extends [Luxon](https://github.com/moment/luxon) to add parsing, pretty printing, and comparison.

### `parse(date, options)`

This will automatically parse any string which matches the date formats ISO, SQL, HTTP, RFC2822. It can parse epoc time in milliseconds by passing `{ millis: true }` in the options hash.

options:
  - `millis`, Boolean: parse the date as epoc time in milliseconds.
  - `format`, String: set a specific format for parsing the date string. See custom formatting below.

Returns: a Luxon [DateTime object](https://moment.github.io/luxon/docs/class/src/datetime.js~DateTime.html) (or false if it cannot be parsed).
Luxon has many wonderful features, seriously check out that link.

### `isBefore(time1, time2)`

This parses both times and returns `true` if time1 comes before time2.

### `isAfter(time1, time2)`

This parses both times and returns `true` if time1 comes after time2.

### `isBetween(time, start, end)` 

This parses all three times and returns `true` if time comes between start and end.

### `prettyPrint(date, options)`

This works just like `parse` except that it converts dates to nicely formatted strings (omiting insignificant digits and formatting markers).

You can optionall pass a timezone or a formatting option.

- `zone: 'local'` - which zone to render the string. Accepts: an IANA zone supported by the host environment, a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a luxon's Zone class. Defaults to local.
- `millis: true` - Parse the date as epoc time in milliseconds.


## Custom Formatting

You may define a custom format for parsing dates using the `format` option. For example:

```javascript
time.parse("08 30 1982", { format: "MM dd yyyy" })
time.parse("8 30 1982 10:32 PM -05:00", { format: "M dd yyyy hh:mm a ZZ" })
time.parse("August 30 1982 America/Chicago", { format: "MMMM dd yyyy z" })
```

For a full list of options, refer to the [table of tokens](https://moment.github.io/luxon/docs/manual/parsing.html#table-of-tokens) in the Luxon
documentation.
npm package: @spark-engine/toast
Description: Notification dispatch and presentation
Latest version: 3.1.0

#Spark Toast

> Notification dispatch and presentation

## Usage

```javascript
var toast = require('@spark-engine/toast')
```

### `toast(message)`

Uses the 'normal' type of notification.

```javascript
toast('Hello world.')
```

### `toast(type, message)`

Uses the specified type of notification.

```javascript
toast('Hello world.', 'success')
```

### `toast.success`, `toast.error`, `toast.action`, `toast.normal`

Helper functions that do exactly what they say they do.
npm package: @spark-engine/toolbox
Description: A collection of small tools to simplify front-end development.
Latest version: 1.6.3

# Spark Toolbox

[![Build Status](http://img.shields.io/travis/spark-engine/toolbox.svg?style=flat-square)](https://travis-ci.org/spark-engine/toolbox)

The toolbox is a small collection of tools (and polyfils) to simplify front-end development.

This library uses polyfills to add native support for `Element.classlist()`, `Element.closest()`, `Element.matches()`, and `Object.assign`.

## Dom Tools

Simple tools for working with the DOM.

- `getClosest(el, selector)` - Provides browser support for `Element.cloest()` - a DOM method that returns the current element if it matches the given selector, or else the closest ancestor element that matches the given selector, or else null.
- `childOf(el, parent)` - Returns true if an element is a child of another element.
- `isElement(el)` - Returns true if an object is of type HTML Element.
- `formData(el)` - Returns [formData](https://developer.mozilla.org/en-US/docs/Web/API/FormData/FormData) for ajax form submission, assembled from all inputs beneath a given element. If any input is disabled or a child of a `[disabled]` element, they are omitted.
- `scrollTo(to, options)` - This scrolls the document (or an element) to a y-coordinate or another element with an ease function.

`scrollTo` Arguments:

- `to` - a y-coordinate or DOM element.

Options:

- `callback: function` - function to trigger on complete
- `duration: 500` - time in milliseconds to scroll (default: 500)
- `scroll: element` - element to scroll (default: document root)

## Object Tools

Simple tools to make working with objects easier.

### `merge(object, object, [object, …])`

This relies on `Object.assign` and exists becuase `Object.assign` modifies the first object in the arguments, which isn't often what I want. This merges objects, returning a new merged object without modifying any object passed.

```javascript
Object.assign(a, b)      // Returns `a`, merged with `b` but modifies references to `a`.
Object.assign({}, a, b)  // Equivilent to `merge(a, b)`, does not modify either object.
```

The second option is often what I want, but it looks very strange to merge objects with an empty object. This is
where I wish Javascript worked like Ruby and I could have `merge` and `merge!`. Alas.

### `slice(obj, [length])`

Easy access to `Array.prototype.slice` for converting objects into arrays of values which is useful for casting
collections of DOM tree nodes.

### `each(obj, func)`

Under the hood this maps to `Array.prototype.forEach.call(obj, func)`, which is casts DOM tree nodes as an array
before iterating. It mostly exists to improve the readabilty of code.
npm package: @spark-ui/cli-utils
Description: Spark CLI utils
Latest version: 17.5.3

# CLI

> @spark-ui/cli-utils

[![storybook](https://img.shields.io/badge/storybook-black?logo=storybook)](https://sparkui.vercel.app/?path=/docs/utils-cli--docs)
[![issue](https://img.shields.io/badge/report%20a%20bug-black?logo=openbugbounty&logoColor=red)](https://github.com/leboncoin/spark-web/issues/new?&projects=4&template=bug-report.yml&assignees=&labels=util,Type:%20Cli)
[![npm](https://img.shields.io/npm/dt/%40spark-ui/cli-utils?logo=npm&labelColor=black)](https://www.npmjs.com/package/@spark-ui/cli-utils)

This package is part of the [`@spark-ui`](https://github.com/leboncoin/spark-web) react-js user interface component library project.

[![Issues open](https://img.shields.io/github/issues-search/leboncoin/spark-web?query=is%3Aopen%20label%3Autil%20label%3Acli&logo=openbugbounty&logoColor=red&label=issues%20open&color=red)](https://github.com/leboncoin/spark-web/issues?q=is%3Aopen+label%3Autil+label%3A%22Type%3A+CLI%22)
[![NPM](https://img.shields.io/npm/l/%40spark-ui%2Fcli-utils)](https://github.com/leboncoin/spark-web/blob/main/packages/utils/cli/LICENSE.md)
npm package: @spark-ui/components
Description: Spark (Leboncoin design system) components.
Latest version: 17.5.3

# Components

## Install

> npm install @spark-ui/components

## Usage

> import { Button } from '@spark-ui/components/button'

![accessibility](https://img.shields.io/badge/WCAG_2.1_AA-passed-green)
[![storybook](https://img.shields.io/badge/storybook-black?logo=storybook)](https://sparkui.vercel.app)
[![issue](https://img.shields.io/badge/report%20a%20bug-black?logo=openbugbounty&logoColor=red)](https://github.com/leboncoin/spark-web/issues/new?&projects=4&template=bug-report.yml&assignees=&labels=Component)
[![npm](https://img.shields.io/npm/dt/%40spark-ui/components?logo=npm&labelColor=black)](https://www.npmjs.com/package/@spark-ui/components)

This package is part of the [`@spark-ui`](https://github.com/leboncoin/spark-web) react-js user interface component library project.

[![Issues open](https://img.shields.io/github/issues-search/leboncoin/spark-web?query=is%3Aopen%20label%3A%22Component%3A%20button%22&logo=openbugbounty&logoColor=red&label=issues%20open&color=red)](https://github.com/leboncoin/spark-web/issues?q=is%3Aopen+label%3Abutton)
[![NPM](https://img.shields.io/npm/l/%40spark-ui%2Fbutton)](https://github.com/leboncoin/spark-web/blob/main/packages/components/LICENSE.md)
npm package: @spark-ui/hooks
Description: Common hooks for Spark UI
Latest version: 17.5.3

# Hooks

## Install

> npm install @spark-ui/hooks

## Usage

> import { useMergeRefs } from '@spark-ui/hooks/use-merge-refs'

[![storybook](https://img.shields.io/badge/storybook-black?logo=storybook)](https://sparkui.vercel.app/?path=/docs/hooks-usemergerefs--docs)
[![issue](https://img.shields.io/badge/report%20a%20bug-black?logo=openbugbounty&logoColor=red)](https://github.com/leboncoin/spark-web/issues/new?&projects=4&template=bug-report.yml&assignees=&labels=hook)
[![npm](https://img.shields.io/npm/dt/%40spark-ui/use-merge-refs?logo=npm&labelColor=black)](https://www.npmjs.com/package/@spark-ui/hooks)

This package is part of the [`@spark-ui`](https://github.com/leboncoin/spark-web) react-js user interface component library project.

[![Issues open](https://img.shields.io/github/issues-search/leboncoin/spark-web?query=is%3Aopen%20label%3Ahook&logo=openbugbounty&logoColor=red&label=issues%20open&color=red)](https://github.com/leboncoin/spark-web/issues?q=is%3Aopen+label%3Ahook)
[![NPM](https://img.shields.io/npm/l/%40spark-ui%2Fuse-merge-refs)](https://github.com/leboncoin/spark-web/blob/main/packages/hooks/LICENSE.md)
npm package: @spark-ui/icons
Description: spark-ui icons
Latest version: 17.5.3

# Icons

> @spark-ui/icons

[![storybook](https://img.shields.io/badge/storybook-black?logo=storybook)](https://sparkui.vercel.app/?path=/docs/components-icons--docs)
[![issue](https://img.shields.io/badge/report%20a%20bug-black?logo=openbugbounty&logoColor=red)](https://github.com/leboncoin/spark-web/issues/new?&projects=4&template=bug-report.yml&assignees=&labels=Component,Component%3A%20icons)
[![npm](https://img.shields.io/npm/dt/%40spark-ui/icons?logo=npm&labelColor=black)](https://www.npmjs.com/package/@spark-ui/icons)

This package is part of the [`@spark-ui`](https://github.com/leboncoin/spark-web) react-js user interface component library project.

[![Issues open](https://img.shields.io/github/issues-search/leboncoin/spark-web?query=is%3Aopen%20label%3A%22Component%3A%20icons%22&logo=openbugbounty&logoColor=red&label=issues%20open&color=red)](https://github.com/leboncoin/spark-web/issues?q=is%3Aopen+label%3Aicons)
[![NPM](https://img.shields.io/npm/l/%40spark-ui%2Ficons)](https://github.com/leboncoin/spark-web/blob/main/packages/components/icons/LICENSE.md)
npm package: @spark-ui/internal-utils
Description: package for sharing reusable code and resources across the codebase
Latest version: 17.5.3

# Internal utils

> @spark-ui/internal-utils

[//]: # '[![storybook](https://img.shields.io/badge/storybook-black?logo=storybook)](https://sparkui.vercel.app/?path=/docs/utils-internalutils--docs)'

[![issue](https://img.shields.io/badge/report%20a%20bug-black?logo=openbugbounty&logoColor=red)](https://github.com/leboncoin/spark-web/issues/new?&projects=4&template=bug-report.yml&assignees=&labels=util,internal-utils)
[![npm](https://img.shields.io/npm/dt/%40spark-ui/internal-utils?logo=npm&labelColor=black)](https://www.npmjs.com/package/@spark-ui/internal-utils)

This package is part of the [`@spark-ui`](https://github.com/leboncoin/spark-web) react-js user interface component library project.

[![Issues open](https://img.shields.io/github/issues-search/leboncoin/spark-web?query=is%3Aopen%20label%3Autil%20label%3Ainternal-utils&logo=openbugbounty&logoColor=red&label=issues%20open&color=red)](https://github.com/leboncoin/spark-web/issues?q=is%3Aopen+label%3Autil+label%3Ainternal-utils)
[![NPM](https://img.shields.io/npm/l/%40spark-ui%2Finternal-utils)](https://github.com/leboncoin/spark-web/blob/main/packages/utils/internal-utils/LICENSE.md)
npm package: @spark-ui/theme-utils
Description: package for managing Spark theme configuration
Latest version: 17.5.3

# Theme

> @spark-ui/theme-utils

[![storybook](https://img.shields.io/badge/storybook-black?logo=storybook)](https://sparkui.vercel.app/?path=/docs/utils-theme--docs)
[![issue](https://img.shields.io/badge/report%20a%20bug-black?logo=openbugbounty&logoColor=red)](https://github.com/leboncoin/spark-web/issues/new?&projects=4&template=bug-report.yml&assignees=&labels=util,theme)
[![npm](https://img.shields.io/npm/dt/%40spark-ui/theme-utils?logo=npm&labelColor=black)](https://www.npmjs.com/package/@spark-ui/theme-utils)

This package is part of the [`@spark-ui`](https://github.com/leboncoin/spark-web) react-js user interface component library project.

[![Issues open](https://img.shields.io/github/issues-search/leboncoin/spark-web?query=is%3Aopen%20label%3Autil%20label%3Atheme&logo=openbugbounty&logoColor=red&label=issues%20open&color=red)](https://github.com/leboncoin/spark-web/issues?q=is%3Aopen+label%3Autil+label%3Atheme)
[![NPM](https://img.shields.io/npm/l/%40spark-ui%2Ftheme-utils)](https://github.com/leboncoin/spark-web/blob/main/packages/utils/chip/LICENSE.md)