Skip to content

Commit 77c3a43

Browse files
committed
v2.7.0
1 parent 91da6bf commit 77c3a43

File tree

109 files changed

+1058
-990
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+1058
-990
lines changed

dist/accordion.d.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@ declare class HSAccordion extends HSBasePlugin<IAccordionOptions> implements IAc
5151
hide(): boolean;
5252
update(): boolean;
5353
destroy(): void;
54-
static getInstance(target: HTMLElement | string, isInstance?: boolean): HTMLElement | ICollectionItem<HSAccordion>;
55-
static show(target: HTMLElement): void;
56-
static hide(target: HTMLElement): void;
54+
private static findInCollection;
5755
static autoInit(): void;
56+
static getInstance(target: HTMLElement | string, isInstance?: boolean): HTMLElement | ICollectionItem<HSAccordion>;
57+
static show(target: HSAccordion | HTMLElement | string): void;
58+
static hide(target: HSAccordion | HTMLElement | string): void;
5859
static onSelectableClick: (evt: Event, item: IAccordionTreeView, el: HTMLElement) => void;
5960
static treeView(): boolean;
6061
static toggleSelected(root: IAccordionTreeView, item: HTMLElement): void;
61-
static on(evt: string, target: HTMLElement, cb: Function): void;
62+
static on(evt: string, target: HSAccordion | HTMLElement | string, cb: Function): void;
6263
}
6364

6465
export {

dist/accordion.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/accordion.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
var e={615:(e,t,o)=>{o.d(t,{A:()=>i});class i{constructor(e,t,o){this.el=e,this.options=t,this.events=o,this.el=e,this.options=t,this.events={}}createCollection(e,t){var o;e.push({id:(null===(o=null==t?void 0:t.el)||void 0===o?void 0:o.id)||e.length+1,element:t})}fireEvent(e,t=null){if(this.events.hasOwnProperty(e))return this.events[e](t)}on(e,t){this.events[e]=t}}},926:(e,t,o)=>{o.d(t,{JD:()=>s,PK:()=>i,gj:()=>n,yd:()=>l});
22
/*
3-
* @version: 2.6.0
3+
* @version: 2.7.0
44
* @author: Preline Labs Ltd.
55
* @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
66
* Copyright 2024 Preline Labs Ltd.
77
*/
88
const i=e=>"true"===e,n=(e,t,o="")=>(window.getComputedStyle(e).getPropertyValue(t)||o).replace(" ","");const s=(e,t,o=null)=>{const i=new CustomEvent(e,{detail:{payload:o},bubbles:!0,cancelable:!0,composed:!1});t.dispatchEvent(i)},l=(e,t)=>{const o=()=>{t(),e.removeEventListener("transitionend",o,!0)},i=window.getComputedStyle(e),n=i.getPropertyValue("transition-duration");"none"!==i.getPropertyValue("transition-property")&&parseFloat(n)>0?e.addEventListener("transitionend",o,!0):t()}}},t={};function o(i){var n=t[i];if(void 0!==n)return n.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,o),s.exports}o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};o.d(i,{A:()=>c});var n=o(926),s=o(615);
99
/*
1010
* HSAccordion
11-
* @version: 2.6.0
11+
* @version: 2.7.0
1212
* @author: Preline Labs Ltd.
1313
* @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
1414
* Copyright 2024 Preline Labs Ltd.

dist/carousel.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/carousel.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var t={189:(t,e,s)=>{s.d(e,{LO:()=>i});const i={xs:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536}},615:(t,e,s)=>{s.d(e,{A:()=>i});class i{constructor(t,e,s){this.el=t,this.options=e,this.events=s,this.el=t,this.options=e,this.events={}}createCollection(t,e){var s;t.push({id:(null===(s=null==e?void 0:e.el)||void 0===s?void 0:s.id)||t.length+1,element:e})}fireEvent(t,e=null){if(this.events.hasOwnProperty(t))return this.events[t](e)}on(t,e){this.events[t]=e}}},926:(t,e,s)=>{s.d(e,{en:()=>r,fc:()=>n,sg:()=>i});const i=(t,e=200)=>{let s;return(...i)=>{clearTimeout(s),s=setTimeout((()=>{t.apply(void 0,i)}),e)}},n=t=>{const e=document.createElement("template");return t=t.trim(),e.innerHTML=t,e.content.firstChild},r=(t,e,s=" ",i="add")=>{t.split(s).forEach((t=>"add"===i?e.classList.add(t):e.classList.remove(t)))}}},e={};function s(i){var n=e[i];if(void 0!==n)return n.exports;var r=e[i]={exports:{}};return t[i](r,r.exports,s),r.exports}s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var i={};s.d(i,{A:()=>h});var n=s(926),r=s(615),o=s(189);
22
/*
33
* HSCarousel
4-
* @version: 2.6.0
4+
* @version: 2.7.0
55
* @author: Preline Labs Ltd.
66
* @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
77
* Copyright 2024 Preline Labs Ltd.

dist/collapse.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ declare class HSCollapse extends HSBasePlugin<{}> implements ICollapse {
3434
show(): boolean;
3535
hide(): boolean;
3636
destroy(): void;
37+
private static findInCollection;
3738
static getInstance(target: HTMLElement, isInstance?: boolean): HTMLElement | ICollectionItem<HSCollapse>;
3839
static autoInit(): void;
39-
static show(target: HTMLElement): void;
40-
static hide(target: HTMLElement): void;
41-
static on(evt: string, target: HTMLElement, cb: Function): void;
40+
static show(target: HSCollapse | HTMLElement | string): void;
41+
static hide(target: HSCollapse | HTMLElement | string): void;
42+
static on(evt: string, target: HSCollapse | HTMLElement | string, cb: Function): void;
4243
}
4344

4445
export {

0 commit comments

Comments
 (0)