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

@patternfly/pfe-accordion

Package Overview
Dependencies
Maintainers
16
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@patternfly/pfe-accordion - npm Package Compare versions

Comparing version 2.0.0-next.7 to 2.0.0-next.8

2

BaseAccordion.js

@@ -1,2 +0,2 @@

var J=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var h=(n,s,e,t)=>{for(var r=t>1?void 0:t?Q(s,e):s,o=n.length-1,i;o>=0;o--)(i=n[o])&&(r=(t?i(s,e,r):i(r))||r);return t&&r&&J(s,e,r),r};var B=(n,s,e)=>{if(!s.has(n))throw TypeError("Cannot "+e)};var p=(n,s,e)=>(B(n,s,"read from private field"),e?e.call(n):s.get(n)),l=(n,s,e)=>{if(s.has(n))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(n):s.set(n,e)},z=(n,s,e,t)=>(B(n,s,"write to private field"),t?t.call(n,e):s.set(n,e),e);var a=(n,s,e)=>(B(n,s,"access private method"),e);import{LitElement as Y,html as V}from"lit";import{property as w,state as ee}from"lit/decorators.js";import{bound as E,colorContextConsumer as te,colorContextProvider as re,deprecation as ae,initializer as se,observed as N}from"@patternfly/pfe-core/decorators.js";import{NumberListConverter as ne,ComposedEvent as $}from"@patternfly/pfe-core";import{Logger as ie}from"@patternfly/pfe-core/controllers/logger.js";import{css as W}from"lit";var X=W``,M=X;import{BaseAccordionHeader as oe}from"./BaseAccordionHeader.js";import{BaseAccordionPanel as de}from"./BaseAccordionPanel.js";var le=/^[0-9.]+(?<unit>[a-zA-Z]+)/g,T=class extends ${constructor(e,t){super("expand");this.toggle=e;this.panel=t}},D=class extends ${constructor(e,t){super("collapse");this.toggle=e;this.panel=t}},y,m,L,_,v,F,I,O,c,u,g,b,S,j,R,G,U,K,k,Z,H,C,f=class extends Y{constructor(){super(...arguments);l(this,v);l(this,I);l(this,c);l(this,g);l(this,S);l(this,R);l(this,U);l(this,k);l(this,H);this.on="light";this.history=!1;this.expandedIndex=[];this._updateHistory=!0;l(this,y,new Set);this.initialized=!1;l(this,m,new ie(this));l(this,L,getComputedStyle(this));l(this,_,a(this,v,F).call(this))}static isHeader(e){return e instanceof oe}static isPanel(e){return e instanceof de}connectedCallback(){super.connectedCallback(),this.addEventListener("change",this._changeHandler),this.addEventListener("keydown",a(this,I,O))}render(){return V`<slot></slot>`}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this._updateStateFromURL)}isAccordionPanel(e){return e instanceof Element}_panelForHeader(e){let t=e.nextElementSibling;if(!!t){if(!this.isAccordionPanel(t)){p(this,m).error("Sibling element to a header needs to be a panel");return}return t}}async _init(){this.initialized||(await this.updateComplete,this.initialized=!0),this.updateAccessibility(),this._updateStateFromURL()}_changeHandler(e){if(this.classList.contains("animating"))return;let t=a(this,H,C).call(this,e.target);e.expanded?this.expand(t,e.accordion):this.collapse(t),this._updateURLHistory()}_expandHeader(e,t){t===void 0&&(t=a(this,H,C).call(this,e)),p(this,y).add(t),e.expanded=!0}async _expandPanel(e){if(!e){p(this,m).error("Trying to expand a panel that doesn't exist.");return}if(e.expanded)return;e.expanded=!0,e.hidden=!1,await e.updateComplete;let t=e.getBoundingClientRect();this._animate(e,0,t.height)}_collapseHeader(e){let t=a(this,H,C).call(this,e);p(this,y).delete(t),e.expanded=!1}async _collapsePanel(e){if(!e){p(this,m).error("Trying to collapse a panel that doesn't exist");return}if(await e.updateComplete,!e.expanded)return;let t=e.getBoundingClientRect();e.expanded=!1,e.hidden=!0,this._animate(e,t.height,0)}async _animate(e,t,r){if(e){let o=e.previousElementSibling,i=a(this,v,F).call(this);i&&z(this,_,i);let P=p(this,_)??0;o?.classList.add("animating"),e.classList.add("animating");let A=e.animate({height:[`${t}px`,`${r}px`]},{duration:P});A.play(),await A.finished,o?.classList.remove("animating"),e.classList.remove("animating"),e.style.removeProperty("height"),e.hidden=!e.expanded}}async _expandedIndexChanged(e,t){await this.updateComplete,!(e===t||!Array.isArray(t))&&[...t].reverse().forEach(r=>this.expand(r-1))}_getIndexesFromURL(){let e=new URLSearchParams(window.location.search);if(e.has(this.id)){let r=(e.get(this.id)??"").split("-");return r.length<0?[]:r.map(o=>parseInt(o.trim(),10)-1)}}_updateURLHistory(){if(!this.history||!this._updateHistory)return;if(!this.id){p(this,m).error("The history feature cannot update the URL without an ID added to the accordion tag.");return}let e=Array.from(p(this,y),r=>r+1).sort((r,o)=>r-o).join("-"),t=new URL(window.location.href);p(this,y).size>0?t.searchParams.set(this.id,e):t.searchParams.delete(this.id),history.replaceState({},"",t.toString())}_updateStateFromURL(){let e=this._getIndexesFromURL()??[];this._updateHistory=!1,e.forEach(t=>this.expand(t)),this._updateHistory=!0}updateAccessibility(){a(this,c,u).call(this).forEach(t=>{let r=this._panelForHeader(t);r&&(t.setAttribute("aria-controls",r.id),r.setAttribute("aria-labelledby",t.id),r.hidden=!r.expanded)})}toggle(e){a(this,c,u).call(this)[e].expanded?this.collapse(e):this.expand(e)}expand(e,t){if(e==null||(e=parseInt(`${e}`,10),e===-1))return;let r=a(this,c,u).call(this,t),o=a(this,g,b).call(this,t);if(this.single==="true"&&this._updateHistory){let A=r.filter(x=>x.expanded),q=o.filter(x=>x.expanded);A.forEach(x=>this._collapseHeader(x)),q.forEach(x=>this._collapsePanel(x))}let i=r[e];if(!i)return;let P=this._panelForHeader(i);!i||!P||(this._expandHeader(i,e),this._expandPanel(P),i.focus(),this.dispatchEvent(new T(i,P)))}expandAll(){let e=a(this,c,u).call(this),t=a(this,g,b).call(this);e.forEach(r=>this._expandHeader(r)),t.forEach(r=>this._expandPanel(r))}collapse(e){let t=a(this,c,u).call(this),r=a(this,g,b).call(this),o=t[e],i=r[e];!o||!i||(this._collapseHeader(o),this._collapsePanel(i),this.dispatchEvent(new D(o,i)))}async collapseAll(){let e=a(this,c,u).call(this),t=a(this,g,b).call(this);await e.forEach(r=>this._collapseHeader(r)),await t.forEach(r=>this._collapsePanel(r))}},d=f;y=new WeakMap,m=new WeakMap,L=new WeakMap,_=new WeakMap,v=new WeakSet,F=function(){if("computedStyleMap"in this)return this.computedStyleMap().get("transition-duration")?.to("ms").value;{let{transitionDuration:e}=p(this,L),t=le.exec(e)?.groups;if(!t)return 0;let r=parseFloat(e);return t.unit==="s"?r*1e3:r}},I=new WeakSet,O=async function(e){let t=e.target;if(!f.isHeader(t))return;let r;switch(e.key){case"ArrowDown":e.preventDefault(),r=a(this,R,G).call(this);break;case"ArrowUp":e.preventDefault(),r=a(this,S,j).call(this);break;case"Home":e.preventDefault(),r=a(this,U,K).call(this);break;case"End":e.preventDefault(),r=a(this,k,Z).call(this);break;default:return}r?.focus?.()},c=new WeakSet,u=function(e){return e!==void 0?Array.from(e.children).filter(f.isHeader):Array.from(this.children).filter(f.isHeader)},g=new WeakSet,b=function(e){return e!==void 0?Array.from(e.children).filter(f.isPanel):Array.from(this.children).filter(f.isPanel)},S=new WeakSet,j=function(){let e=a(this,c,u).call(this),t=e.findIndex(r=>r.matches(":focus,:focus-within"))-1;return e[(t+e.length)%e.length]},R=new WeakSet,G=function(){let e=a(this,c,u).call(this),t=e.findIndex(r=>r.matches(":focus,:focus-within"))+1;return e[t%e.length]},U=new WeakSet,K=function(){return a(this,c,u).call(this)[0]},k=new WeakSet,Z=function(){let e=a(this,c,u).call(this);return e[e.length-1]},H=new WeakSet,C=function(e){return f.isHeader(e)?a(this,c,u).call(this).findIndex(r=>r.id===e.id):f.isPanel(e)?a(this,g,b).call(this).findIndex(r=>r.id===e.id):(p(this,m).warn("The _getIndex method expects to receive a header or panel element."),-1)},d.styles=[M],h([re(),w({reflect:!0,attribute:"color-palette"})],d.prototype,"colorPalette",2),h([ae({alias:"colorPalette",attribute:"color"})],d.prototype,"color",2),h([te(),w({reflect:!0})],d.prototype,"on",2),h([w({reflect:!0})],d.prototype,"single",2),h([N,w({type:Boolean})],d.prototype,"history",2),h([N,w({attribute:"expanded-index",converter:ne})],d.prototype,"expandedIndex",2),h([ee()],d.prototype,"_updateHistory",2),h([se()],d.prototype,"_init",1),h([E],d.prototype,"_changeHandler",1),h([E],d.prototype,"_getIndexesFromURL",1),h([E],d.prototype,"_updateURLHistory",1),h([E],d.prototype,"_updateStateFromURL",1);export{D as AccordionCollapseEvent,T as AccordionExpandEvent,d as BaseAccordion};
var J=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var h=(s,n,e,t)=>{for(var r=t>1?void 0:t?Q(n,e):n,o=s.length-1,i;o>=0;o--)(i=s[o])&&(r=(t?i(n,e,r):i(r))||r);return t&&r&&J(n,e,r),r};var B=(s,n,e)=>{if(!n.has(s))throw TypeError("Cannot "+e)};var p=(s,n,e)=>(B(s,n,"read from private field"),e?e.call(s):n.get(s)),l=(s,n,e)=>{if(n.has(s))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(s):n.set(s,e)},z=(s,n,e,t)=>(B(s,n,"write to private field"),t?t.call(s,e):n.set(s,e),e);var a=(s,n,e)=>(B(s,n,"access private method"),e);import{LitElement as Y,html as V}from"lit";import{property as w,state as ee}from"lit/decorators.js";import{bound as E,colorContextConsumer as te,colorContextProvider as re,deprecation as ae,initializer as ne,observed as N}from"@patternfly/pfe-core/decorators.js";import{NumberListConverter as se,ComposedEvent as $}from"@patternfly/pfe-core";import{Logger as ie}from"@patternfly/pfe-core/controllers/logger.js";import{css as W}from"lit";var X=W`:host{transition-property:box-shadow,border;transition-timing-function:ease-out;transition-duration:1ms}`,M=X;import{BaseAccordionHeader as oe}from"./BaseAccordionHeader.js";import{BaseAccordionPanel as de}from"./BaseAccordionPanel.js";var le=/^[0-9.]+(?<unit>[a-zA-Z]+)/g,T=class extends ${constructor(e,t){super("expand");this.toggle=e;this.panel=t}},D=class extends ${constructor(e,t){super("collapse");this.toggle=e;this.panel=t}},y,m,L,_,v,F,I,O,c,u,g,b,S,j,R,G,U,K,k,Z,H,C,f=class extends Y{constructor(){super(...arguments);l(this,v);l(this,I);l(this,c);l(this,g);l(this,S);l(this,R);l(this,U);l(this,k);l(this,H);this.on="light";this.history=!1;this.expandedIndex=[];this._updateHistory=!0;l(this,y,new Set);this.initialized=!1;l(this,m,new ie(this));l(this,L,getComputedStyle(this));l(this,_,a(this,v,F).call(this))}static isHeader(e){return e instanceof oe}static isPanel(e){return e instanceof de}connectedCallback(){super.connectedCallback(),this.addEventListener("change",this._changeHandler),this.addEventListener("keydown",a(this,I,O))}render(){return V`<slot></slot>`}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this._updateStateFromURL)}isAccordionPanel(e){return e instanceof Element}_panelForHeader(e){let t=e.nextElementSibling;if(!!t){if(!this.isAccordionPanel(t)){p(this,m).error("Sibling element to a header needs to be a panel");return}return t}}async _init(){this.initialized||(await this.updateComplete,this.initialized=!0),this.updateAccessibility(),this._updateStateFromURL()}_changeHandler(e){if(this.classList.contains("animating"))return;let t=a(this,H,C).call(this,e.target);e.expanded?this.expand(t,e.accordion):this.collapse(t),this._updateURLHistory()}_expandHeader(e,t){t===void 0&&(t=a(this,H,C).call(this,e)),p(this,y).add(t),e.expanded=!0}async _expandPanel(e){if(!e){p(this,m).error("Trying to expand a panel that doesn't exist.");return}if(e.expanded)return;e.expanded=!0,e.hidden=!1,await e.updateComplete;let t=e.getBoundingClientRect();this._animate(e,0,t.height)}_collapseHeader(e){let t=a(this,H,C).call(this,e);p(this,y).delete(t),e.expanded=!1}async _collapsePanel(e){if(!e){p(this,m).error("Trying to collapse a panel that doesn't exist");return}if(await e.updateComplete,!e.expanded)return;let t=e.getBoundingClientRect();e.expanded=!1,e.hidden=!0,this._animate(e,t.height,0)}async _animate(e,t,r){if(e){let o=e.previousElementSibling,i=a(this,v,F).call(this);i&&z(this,_,i);let P=p(this,_)??0;o?.classList.add("animating"),e.classList.add("animating");let A=e.animate({height:[`${t}px`,`${r}px`]},{duration:P});A.play(),await A.finished,o?.classList.remove("animating"),e.classList.remove("animating"),e.style.removeProperty("height"),e.hidden=!e.expanded}}async _expandedIndexChanged(e,t){await this.updateComplete,!(e===t||!Array.isArray(t))&&[...t].reverse().forEach(r=>this.expand(r-1))}_getIndexesFromURL(){let e=new URLSearchParams(window.location.search);if(e.has(this.id)){let r=(e.get(this.id)??"").split("-");return r.length<0?[]:r.map(o=>parseInt(o.trim(),10)-1)}}_updateURLHistory(){if(!this.history||!this._updateHistory)return;if(!this.id){p(this,m).error("The history feature cannot update the URL without an ID added to the accordion tag.");return}let e=Array.from(p(this,y),r=>r+1).sort((r,o)=>r-o).join("-"),t=new URL(window.location.href);p(this,y).size>0?t.searchParams.set(this.id,e):t.searchParams.delete(this.id),history.replaceState({},"",t.toString())}_updateStateFromURL(){let e=this._getIndexesFromURL()??[];this._updateHistory=!1,e.forEach(t=>this.expand(t)),this._updateHistory=!0}updateAccessibility(){a(this,c,u).call(this).forEach(t=>{let r=this._panelForHeader(t);r&&(t.setAttribute("aria-controls",r.id),r.setAttribute("aria-labelledby",t.id),r.hidden=!r.expanded)})}toggle(e){a(this,c,u).call(this)[e].expanded?this.collapse(e):this.expand(e)}expand(e,t){if(e==null||(e=parseInt(`${e}`,10),e===-1))return;let r=a(this,c,u).call(this,t),o=a(this,g,b).call(this,t);if(this.single==="true"&&this._updateHistory){let A=r.filter(x=>x.expanded),q=o.filter(x=>x.expanded);A.forEach(x=>this._collapseHeader(x)),q.forEach(x=>this._collapsePanel(x))}let i=r[e];if(!i)return;let P=this._panelForHeader(i);!i||!P||(this._expandHeader(i,e),this._expandPanel(P),i.focus(),this.dispatchEvent(new T(i,P)))}expandAll(){let e=a(this,c,u).call(this),t=a(this,g,b).call(this);e.forEach(r=>this._expandHeader(r)),t.forEach(r=>this._expandPanel(r))}collapse(e){let t=a(this,c,u).call(this),r=a(this,g,b).call(this),o=t[e],i=r[e];!o||!i||(this._collapseHeader(o),this._collapsePanel(i),this.dispatchEvent(new D(o,i)))}async collapseAll(){let e=a(this,c,u).call(this),t=a(this,g,b).call(this);await e.forEach(r=>this._collapseHeader(r)),await t.forEach(r=>this._collapsePanel(r))}},d=f;y=new WeakMap,m=new WeakMap,L=new WeakMap,_=new WeakMap,v=new WeakSet,F=function(){if("computedStyleMap"in this)return this.computedStyleMap().get("transition-duration")?.to("ms").value;{let{transitionDuration:e}=p(this,L),t=le.exec(e)?.groups;if(!t)return 0;let r=parseFloat(e);return t.unit==="s"?r*1e3:r}},I=new WeakSet,O=async function(e){let t=e.target;if(!f.isHeader(t))return;let r;switch(e.key){case"ArrowDown":e.preventDefault(),r=a(this,R,G).call(this);break;case"ArrowUp":e.preventDefault(),r=a(this,S,j).call(this);break;case"Home":e.preventDefault(),r=a(this,U,K).call(this);break;case"End":e.preventDefault(),r=a(this,k,Z).call(this);break;default:return}r?.focus?.()},c=new WeakSet,u=function(e){return e!==void 0?Array.from(e.children).filter(f.isHeader):Array.from(this.children).filter(f.isHeader)},g=new WeakSet,b=function(e){return e!==void 0?Array.from(e.children).filter(f.isPanel):Array.from(this.children).filter(f.isPanel)},S=new WeakSet,j=function(){let e=a(this,c,u).call(this),t=e.findIndex(r=>r.matches(":focus,:focus-within"))-1;return e[(t+e.length)%e.length]},R=new WeakSet,G=function(){let e=a(this,c,u).call(this),t=e.findIndex(r=>r.matches(":focus,:focus-within"))+1;return e[t%e.length]},U=new WeakSet,K=function(){return a(this,c,u).call(this)[0]},k=new WeakSet,Z=function(){let e=a(this,c,u).call(this);return e[e.length-1]},H=new WeakSet,C=function(e){return f.isHeader(e)?a(this,c,u).call(this).findIndex(r=>r.id===e.id):f.isPanel(e)?a(this,g,b).call(this).findIndex(r=>r.id===e.id):(p(this,m).warn("The _getIndex method expects to receive a header or panel element."),-1)},d.styles=[M],h([re(),w({reflect:!0,attribute:"color-palette"})],d.prototype,"colorPalette",2),h([ae({alias:"colorPalette",attribute:"color"})],d.prototype,"color",2),h([te(),w({reflect:!0})],d.prototype,"on",2),h([w({reflect:!0})],d.prototype,"single",2),h([N,w({type:Boolean})],d.prototype,"history",2),h([N,w({attribute:"expanded-index",converter:se})],d.prototype,"expandedIndex",2),h([ee()],d.prototype,"_updateHistory",2),h([ne()],d.prototype,"_init",1),h([E],d.prototype,"_changeHandler",1),h([E],d.prototype,"_getIndexesFromURL",1),h([E],d.prototype,"_updateURLHistory",1),h([E],d.prototype,"_updateStateFromURL",1);export{D as AccordionCollapseEvent,T as AccordionExpandEvent,d as BaseAccordion};
//# sourceMappingURL=BaseAccordion.js.map

@@ -149,3 +149,3 @@ {

"static": true,
"default": "2.0.0-next.7",
"default": "2.0.0-next.8",
"readonly": true

@@ -279,3 +279,3 @@ }

"static": true,
"default": "2.0.0-next.7",
"default": "2.0.0-next.8",
"readonly": true

@@ -340,3 +340,3 @@ }

"static": true,
"default": "2.0.0-next.7",
"default": "2.0.0-next.8",
"readonly": true

@@ -343,0 +343,0 @@ },

{
"name": "@patternfly/pfe-accordion",
"version": "2.0.0-next.7",
"version": "2.0.0-next.8",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Accordion for PatternFly Elements",

@@ -15,3 +15,3 @@ var d=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var n=(t,r,g,e)=>{for(var o=e>1?void 0:e?f(r,g):r,l=t.length-1,c;l>=0;l--)(c=t[l])&&(o=(e?c(r,g,o):c(o))||o);return e&&o&&d(r,g,o),o};import{customElement as v}from"lit/decorators.js";import"@patternfly/pfe-icon";import{BaseAccordionHeader as p}from"./BaseAccordionHeader.js";import{css as _}from"lit";var s=_`:host{--pfe-icon--size:var(--pf-c-accordion__toggle--IconSize, 10px);color:var(--pf-c-accordion__toggle--Color,var(--pf-global--Color--100,#151515));background-color:var(--pf-global--BackgroundColor--100,#fff)}:host([large]){--pf-c-accordion__toggle--PaddingTop:var(--pf-global--spacer--md, 1rem);--pf-c-accordion__toggle--PaddingRight:var(--pf-global--spacer--md, 1rem);--pf-c-accordion__toggle--PaddingBottom:var(--pf-global--spacer--md, 1rem);--pf-c-accordion__toggle--PaddingLeft:var(--pf-global--spacer--lg, 1.5rem);--pf-c-accordion__toggle--FontFamily:var(

)
)}.toggle:after{top:var(--pf-c-accordion__toggle--before--Top,-1px);width:var(--pf-c-accordion__toggle--before--Width,var(--pf-global--BorderWidth--lg,3px));background-color:var(--pf-c-accordion__toggle--after--BackgroundColor,transparent)}span{max-width:var(--pf-c-accordion__toggle-text--MaxWidth,calc(100% - var(--pf-global--spacer--lg,1.5rem)))}.toggle[aria-expanded=true] .icon{rotate:var(--pf-c-accordion__toggle--expanded-icon--Rotate,90deg)}.toggle:active,.toggle:focus,.toggle:hover{background-color:var(--pf-c-accordion__toggle--active--BackgroundColor,var(--pf-global--BackgroundColor--200,#f0f0f0))}.toggle:active span,.toggle:focus span,.toggle:hover span{color:var(--pf-c-accordion__toggle--active-text--Color,var(--pf-global--link--Color,#06c))}.toggle:active span,.toggle:focus span{font-weight:var(--pf-c-accordion__toggle--active-text--FontWeight,var(--pf-global--FontWeight--semi-bold,700))}`,i=s;var a=class extends p{};a.version="2.0.0-next.7",a.styles=[...p.styles,i],a=n([v("pfe-accordion-header")],a);export{a as PfeAccordionHeader};
)}.toggle:after{top:var(--pf-c-accordion__toggle--before--Top,-1px);width:var(--pf-c-accordion__toggle--before--Width,var(--pf-global--BorderWidth--lg,3px));background-color:var(--pf-c-accordion__toggle--after--BackgroundColor,transparent)}span{max-width:var(--pf-c-accordion__toggle-text--MaxWidth,calc(100% - var(--pf-global--spacer--lg,1.5rem)))}.toggle[aria-expanded=true] .icon{rotate:var(--pf-c-accordion__toggle--expanded-icon--Rotate,90deg)}.toggle:active,.toggle:focus,.toggle:hover{background-color:var(--pf-c-accordion__toggle--active--BackgroundColor,var(--pf-global--BackgroundColor--200,#f0f0f0))}.toggle:active span,.toggle:focus span,.toggle:hover span{color:var(--pf-c-accordion__toggle--active-text--Color,var(--pf-global--link--Color,#06c))}.toggle:active span,.toggle:focus span{font-weight:var(--pf-c-accordion__toggle--active-text--FontWeight,var(--pf-global--FontWeight--semi-bold,700))}`,i=s;var a=class extends p{};a.version="2.0.0-next.8",a.styles=[...p.styles,i],a=n([v("pfe-accordion-header")],a);export{a as PfeAccordionHeader};
//# sourceMappingURL=pfe-accordion-header.js.map

@@ -25,3 +25,3 @@ var f=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var l=(c,d,n,r)=>{for(var o=r>1?void 0:r?g(d,n):d,e=c.length-1,p;e>=0;e--)(p=c[e])&&(o=(r?p(d,n,o):p(o))||o);return r&&o&&f(d,n,o),o};import{customElement as s}from"lit/decorators.js";import{BaseAccordionPanel as i}from"./BaseAccordionPanel.js";import{css as _}from"lit";var m=_`:host{color:var(--pf-global--Color--100,#151515);background-color:var(--pf-c-accordion--BackgroundColor,var(--pf-global--BackgroundColor--light-100,#fff))}.body{padding:var(--pf-c-accordion__panel-body--PaddingTop,var(--pf-global--spacer--sm,.5rem)) var(--pf-c-accordion__panel-body--PaddingRight,var(--pf-global--spacer--md,1rem)) var(--pf-c-accordion__panel-body--PaddingBottom,var(--pf-global--spacer--sm,.5rem)) var(--pf-c-accordion__panel-body--PaddingLeft,var(--pf-global--spacer--md,1rem))}.body:after{width:var(--pf-c-accordion__panel-body--before--Width,var(--pf-global--BorderWidth--lg,3px));background-color:var(--pf-c-accordion__panel-body--before--BackgroundColor,transparent)}:host([large]){--pf-c-accordion__panel-body--PaddingTop:var(

var(--pf-global--primary-color--100, #0066cc)
)}`,t=m;var a=class extends i{};a.version="2.0.0-next.7",a.styles=[...i.styles,t],a=l([s("pfe-accordion-panel")],a);export{a as PfeAccordionPanel};
)}`,t=m;var a=class extends i{};a.version="2.0.0-next.8",a.styles=[...i.styles,t],a=l([s("pfe-accordion-panel")],a);export{a as PfeAccordionPanel};
//# sourceMappingURL=pfe-accordion-panel.js.map

@@ -1,2 +0,2 @@

var b=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var d=(a,r,l,t)=>{for(var e=t>1?void 0:t?h(r,l):r,s=a.length-1,c;s>=0;s--)(c=a[s])&&(e=(t?c(r,l,e):c(e))||e);return t&&e&&b(r,l,e),e};import{cascades as n}from"@patternfly/pfe-core/decorators/cascades.js";import{property as p}from"lit/decorators.js";import{customElement as y}from"lit/decorators.js";import{BaseAccordion as f}from"./BaseAccordion.js";import"./pfe-accordion-header.js";import"./pfe-accordion-panel.js";import{css as m}from"lit";var x=m`:host{--accordion__bordered--Color:var(--rh-color-black-300, #d2d2d2);color:var(--pf-global--Color--100,#151515);background-color:var(--pf-global--BackgroundColor--100,#fff)}:host([bordered]) ::slotted(pfe-accordion-header:first-child),:host([large]) ::slotted(pfe-accordion-header:first-child){display:block;border-top:1px solid var(--accordion__bordered--Color);border-bottom:1px solid var(--accordion__bordered--Color)}:host([bordered]) ::slotted(pfe-accordion-header:not(:first-child)),:host([large]) ::slotted(pfe-accordion-header:not(:first-child)){display:block;border-bottom:1px solid var(--accordion__bordered--Color)}:host([bordered]) ::slotted(pfe-accordion-header:is([expanded])),:host([large]) ::slotted(pfe-accordion-header:is([expanded])){display:block;border-bottom:0}:host([bordered]) ::slotted(pfe-accordion-panel:is([expanded])),:host([large]) ::slotted(pfe-accordion-panel:is([expanded])){display:block;border-bottom:1px solid var(--accordion__bordered--Color)}`,i=x;var o=class extends f{constructor(){super(...arguments);this.fixed=!1}};o.version="2.0.0-next.7",o.styles=[...f.styles,i],d([n("pfe-accordion-header","pfe-accordion-panel"),p({reflect:!0})],o.prototype,"bordered",2),d([n("pfe-accordion-header","pfe-accordion-panel"),p({reflect:!0})],o.prototype,"large",2),d([p({type:Boolean,reflect:!0})],o.prototype,"fixed",2),o=d([y("pfe-accordion")],o);export{o as PfeAccordion};
var b=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var d=(a,r,l,t)=>{for(var e=t>1?void 0:t?h(r,l):r,s=a.length-1,c;s>=0;s--)(c=a[s])&&(e=(t?c(r,l,e):c(e))||e);return t&&e&&b(r,l,e),e};import{cascades as n}from"@patternfly/pfe-core/decorators/cascades.js";import{property as p}from"lit/decorators.js";import{customElement as y}from"lit/decorators.js";import{BaseAccordion as f}from"./BaseAccordion.js";import"./pfe-accordion-header.js";import"./pfe-accordion-panel.js";import{css as m}from"lit";var x=m`:host{--accordion__bordered--Color:var(--rh-color-black-300, #d2d2d2);color:var(--pf-global--Color--100,#151515);background-color:var(--pf-global--BackgroundColor--100,#fff)}:host([bordered]) ::slotted(pfe-accordion-header:first-child),:host([large]) ::slotted(pfe-accordion-header:first-child){display:block;border-top:1px solid var(--accordion__bordered--Color);border-bottom:1px solid var(--accordion__bordered--Color)}:host([bordered]) ::slotted(pfe-accordion-header:not(:first-child)),:host([large]) ::slotted(pfe-accordion-header:not(:first-child)){display:block;border-bottom:1px solid var(--accordion__bordered--Color)}:host([bordered]) ::slotted(pfe-accordion-header:is([expanded])),:host([large]) ::slotted(pfe-accordion-header:is([expanded])){display:block;border-bottom:0}:host([bordered]) ::slotted(pfe-accordion-panel:is([expanded])),:host([large]) ::slotted(pfe-accordion-panel:is([expanded])){display:block;border-bottom:1px solid var(--accordion__bordered--Color)}`,i=x;var o=class extends f{constructor(){super(...arguments);this.fixed=!1}};o.version="2.0.0-next.8",o.styles=[...f.styles,i],d([n("pfe-accordion-header","pfe-accordion-panel"),p({reflect:!0})],o.prototype,"bordered",2),d([n("pfe-accordion-header","pfe-accordion-panel"),p({reflect:!0})],o.prototype,"large",2),d([p({type:Boolean,reflect:!0})],o.prototype,"fixed",2),o=d([y("pfe-accordion")],o);export{o as PfeAccordion};
//# sourceMappingURL=pfe-accordion.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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