Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@three11/accordion

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@three11/accordion - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

.editorconfig

18

package.json
{
"name": "@three11/accordion",
"version": "0.1.0",
"version": "0.2.0",
"description": "Front-end Accordion widget using max-height",
"main": "dist/index.js",
"main": "dist/accordion.js",
"scripts": {

@@ -17,3 +17,3 @@ "build": "webpack"

"name": "Three 11 Ltd",
"email": "contact.three11@gmail.com",
"email": "hello@three-11.com",
"role": "Developer"

@@ -38,11 +38,11 @@ },

"devDependencies": {
"@babel/cli": "^7.0.0-beta.44",
"@babel/core": "^7.0.0-beta.44",
"@babel/preset-env": "^7.0.0-beta.44",
"@babel/preset-stage-2": "^7.0.0-beta.44",
"@babel/cli": "^7.0.0-beta.52",
"@babel/core": "^7.0.0-beta.52",
"@babel/preset-env": "^7.0.0-beta.52",
"@babel/preset-stage-2": "^7.0.0-beta.52",
"babel-loader": "^8.0.0-beta",
"unminified-webpack-plugin": "^2.0.0",
"webpack": "^4.5.0",
"webpack-cli": "^2.0.14"
"webpack": "^4.15.1",
"webpack-cli": "^3.0.8"
}
}

@@ -0,1 +1,18 @@

[![GitHub stars](https://img.shields.io/github/stars/three11/accordion.svg?style=social&label=Stars)](https://github.com/three11/accordion)
[![GitHub forks](https://img.shields.io/github/forks/three11/accordion.svg?style=social&label=Fork)](https://github.com/three11/accordion/network#fork-destination-box)
[![GitHub release](https://img.shields.io/github/release/three11/accordion.svg)](https://github.com/three11/accordion/releases/latest)
[![GitHub issues](https://img.shields.io/github/issues/three11/accordion.svg)](https://github.com/three11/accordion/issues)
[![GitHub last commit](https://img.shields.io/github/last-commit/three11/accordion.svg)](https://github.com/three11/accordion/commits/master)
[![Github file size](https://img.shields.io/github/size/three11/accordion/dist/index.min.js.svg)](https://github.com/three11/accordion/)
[![Build Status](https://travis-ci.org/three11/accordion.svg?branch=master)](https://travis-ci.org/three11/accordion)
[![npm](https://img.shields.io/npm/dt/@three11/accordion.svg)](https://www.npmjs.com/package/@three11/accordion)
[![npm](https://img.shields.io/npm/v/@three11/accordion.svg)](https://www.npmjs.com/package/@three11/accordion)
[![license](https://img.shields.io/github/license/three11/accordion.svg)](https://github.com/three11/accordion)
[![Analytics](https://ga-beacon.appspot.com/UA-83446952-1/github.com/three11/accordion/README.md)](https://github.com/three11/accordion/)
[![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/three11/accordion/)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/three11/accordion/graphs/commit-activity)
[![Greenkeeper badge](https://badges.greenkeeper.io/three11/accordion.svg)](https://greenkeeper.io/)
[![ForTheBadge built-with-love](https://ForTheBadge.com/images/badges/built-with-love.svg)](https://github.com/three11/)
# Accordion

@@ -7,3 +24,3 @@

```
```sh
npm i @three11/accordion

@@ -14,3 +31,3 @@ ```

```
```sh
yarn add @three11/accordion

@@ -23,6 +40,6 @@ ```

```
<link rel="stylesheet" href="dist/index.css" type="text/css" media="all" />
```html
<link rel="stylesheet" href="path-to-accordion/dist/accordion.css" type="text/css" />
<script src="dist/index.min.js"></script>
<script src="path-to-accordion/dist/accordion.min.js"></script>
```

@@ -34,3 +51,3 @@

```
```javascript
import Accordion from '@three11/accordion';

@@ -41,5 +58,5 @@ ```

```
```javascript
const el = doc.querySelector('[data-accordion]');
const accordion = new Accordion(el, settings = {});
const accordion = new Accordion(el, (settings = {}));
```

@@ -51,8 +68,10 @@

```javascript
{
headSelector: '[data-title]', // Selector for the head element
bodySelector: '[data-content]', // Selector for the body element
hiddenClass: 'is--hidden', // Hidden class name
activeClass: 'is--active' // Active class name
}
```
headSelector: '[data-title]', // Selector for the head element
bodySelector: '[data-content]', // Selector for the body element
hiddenClass: 'is--hidden', // Hidden class name
activeClass: 'is--active', // Active class name
```

@@ -59,0 +78,0 @@ ## License

@@ -5,5 +5,5 @@ const UnminifiedWebpackPlugin = require('unminified-webpack-plugin');

mode: 'production',
entry: './src/index.js',
entry: './src/accordion.js',
output: {
filename: 'index.min.js',
filename: 'accordion.min.js',
library: 'Accordion',

@@ -10,0 +10,0 @@ libraryTarget: 'umd',

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc