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

@flexilla/collapse

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flexilla/collapse - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

31

dist/collapse.js

@@ -1,5 +0,5 @@

var n = Object.defineProperty;
var r = (i, t, e) => t in i ? n(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
var s = (i, t, e) => (r(i, typeof t != "symbol" ? t + "" : t, e), e);
const a = (i, t, e, l, o) => {
var r = Object.defineProperty;
var h = (i, t, e) => t in i ? r(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
var s = (i, t, e) => (h(i, typeof t != "symbol" ? t + "" : t, e), e);
const n = (i, t, e, l, o) => {
if (!(i instanceof HTMLElement))

@@ -18,4 +18,3 @@ throw new Error("accordion item not a valid HTMLELement");

t instanceof HTMLElement && t.setAttribute("aria-expanded", e === "open" ? "true" : "false");
};
class h {
}, a = class a {
/**

@@ -37,7 +36,7 @@ * Collapse Component

var t, e;
a(this.collapseElement, this.collapseTrigger, "open", this.collapseOrientation, this.collapseElementWidth), (e = (t = this.options).onToggle) == null || e.call(t, { isExpanded: !0 });
n(this.collapseElement, this.collapseTrigger, "open", this.collapseOrientation, this.collapseElementWidth), (e = (t = this.options).onToggle) == null || e.call(t, { isExpanded: !0 });
});
s(this, "hide", () => {
var t, e;
a(this.collapseElement, this.collapseTrigger, "close", this.collapseOrientation), (e = (t = this.options).onToggle) == null || e.call(t, { isExpanded: !1 });
n(this.collapseElement, this.collapseTrigger, "close", this.collapseOrientation), (e = (t = this.options).onToggle) == null || e.call(t, { isExpanded: !1 });
});

@@ -47,3 +46,3 @@ s(this, "toggle", () => {

const t = this.collapseElement.dataset.state === "close" ? "open" : "close";
a(this.collapseElement, this.collapseTrigger, t, this.collapseOrientation, this.collapseElementWidth), (l = (e = this.options).onToggle) == null || l.call(e, { isExpanded: t === "open" });
n(this.collapseElement, this.collapseTrigger, t, this.collapseOrientation, this.collapseElementWidth), (l = (e = this.options).onToggle) == null || l.call(e, { isExpanded: t === "open" });
});

@@ -58,5 +57,15 @@ const o = typeof t == "string" ? document.querySelector(`${t}`) : t;

}
}
};
/**
* auto init collapse components based on the selector provided
* @param selector {string} default is [data-fx-collapse]
*/
s(a, "autoInit", (t = "[data-fx-collapse]") => {
const e = Array.from(document.querySelectorAll(t));
for (const l in e)
new a(l);
});
let c = a;
export {
h as Collapse
c as Collapse
};

@@ -20,2 +20,7 @@ export declare class Collapse {

private init;
/**
* auto init collapse components based on the selector provided
* @param selector {string} default is [data-fx-collapse]
*/
static autoInit: (selector?: string) => void;
}

@@ -22,0 +27,0 @@

{
"name": "@flexilla/collapse",
"private": false,
"version": "2.0.0",
"version": "2.0.1",
"type": "module",

@@ -66,3 +66,3 @@ "description": "A versatile and interactive collapse component for creating collapsible sections in web applications, conserving space and improving user experience.",

"author": "johnkat-mj",
"gitHead": "b182c7035953bc34e8f350b834df9862bec8acb5"
"gitHead": "8435693ee1ff8e2f9d279b5d4026949530d7d05d"
}

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