@wrrdev/fenix-ui 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/accordion/accordion.js +24 -17
- package/dist/components/accordion/accordion.js.map +1 -1
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +1 -0
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/orderlist/orderlist.js.map +1 -1
- package/dist/core/jsx.d.ts +1 -1
- package/dist/core/jsx.d.ts.map +1 -1
- package/dist/core/jsx.js.map +1 -1
- package/dist/docs/app.d.ts.map +1 -1
- package/dist/docs/shared.d.ts.map +1 -1
- package/dist/fenix-ui.umd.min.js +25 -17
- package/dist/fenix-ui2.esm.js +25 -17
- package/dist/fenix-ui2.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/docs/shared.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,eAAO,MAAM,GAAG,GAAI,GAAG,MAAM,KAAG,MACsC,CAAC;AAEvE,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/docs/shared.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,eAAO,MAAM,GAAG,GAAI,GAAG,MAAM,KAAG,MACsC,CAAC;AAEvE,eAAO,MAAM,cAAc,UAAuF,CAAC;AACnH,eAAO,MAAM,aAAa,UAAiE,CAAC;AAC5F,eAAO,MAAM,KAAK,UAAqB,CAAC;AAExC,gFAAgF;AAChF,eAAO,MAAM,SAAS,QAAoC,CAAC;AAC3D,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAmC9C"}
|
package/dist/fenix-ui.umd.min.js
CHANGED
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
:host([variant='success']) .btn { background: var(--fx-color-success); }
|
|
54
54
|
:host([variant='warning']) .btn { background: var(--fx-color-warning); }
|
|
55
55
|
:host([variant='danger']) .btn { background: var(--fx-color-danger); }
|
|
56
|
+
:host([variant='info']) .btn { background: var(--fx-color-info); }
|
|
56
57
|
:host([variant='ghost']) .btn { background: transparent; color: var(--fx-text-default); }
|
|
57
58
|
:host([variant='ghost']) .btn:hover { background: var(--fx-surface-surface-hover); filter: none; }
|
|
58
59
|
:host([variant='outline']) .btn { background: transparent; color: var(--fx-color-primary); border-color: var(--fx-color-primary); }
|
|
@@ -2579,22 +2580,24 @@
|
|
|
2579
2580
|
}
|
|
2580
2581
|
.list-item { animation: slideIn 0.2s ease-out; }
|
|
2581
2582
|
`;let at=jt;function $(v){return v.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function $e(){return b("fx-picklist",at)}$e();const Vt=class Vt extends f{constructor(){super(...arguments),this._mo=null}static get observedAttributes(){return["header","expanded","disabled"]}get header(){return this.getAttr("header","")}set header(t){this.setAttribute("header",t)}get value(){return this.getAttr("value","")}set value(t){this.setAttribute("value",t)}get expanded(){return this.hasAttr("expanded")}set expanded(t){this.toggleAttr("expanded",t)}get disabled(){return this.hasAttr("disabled")}set disabled(t){this.toggleAttr("disabled",t)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",t=>{t.composedPath().some(r=>{var s;return(s=r.classList)==null?void 0:s.contains("header")})&&(this.disabled||this.dispatchEvent(new CustomEvent("fx-accordion-toggle",{bubbles:!0,composed:!0,detail:{panel:this}})))}),this._mo=new MutationObserver(()=>this.render()),this._mo.observe(this,{attributes:!0,attributeFilter:["expanded","header","disabled"]})}disconnectedCallback(){var t;(t=this._mo)==null||t.disconnect(),this._mo=null}render(){this.setTemplate(`
|
|
2582
|
-
<
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
<
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
<
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
<div class="content
|
|
2597
|
-
<div class="content-
|
|
2583
|
+
<div class="panel" part="panel">
|
|
2584
|
+
<button type="button" class="header" part="header" role="button"
|
|
2585
|
+
aria-expanded="${this.expanded}"
|
|
2586
|
+
${this.disabled?'aria-disabled="true"':""}>
|
|
2587
|
+
<span class="header-text" part="header-text">
|
|
2588
|
+
<slot name="header">${this.header}</slot>
|
|
2589
|
+
</span>
|
|
2590
|
+
<span class="chevron" part="chevron" aria-hidden="true">
|
|
2591
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none"
|
|
2592
|
+
stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
2593
|
+
<polyline points="6 9 12 15 18 9"></polyline>
|
|
2594
|
+
</svg>
|
|
2595
|
+
</span>
|
|
2596
|
+
</button>
|
|
2597
|
+
<div class="content" part="content" role="region">
|
|
2598
|
+
<div class="content-inner">
|
|
2599
|
+
<div class="content-pad" part="content-pad"><slot></slot></div>
|
|
2600
|
+
</div>
|
|
2598
2601
|
</div>
|
|
2599
2602
|
</div>
|
|
2600
2603
|
`)}};Vt.styles=p`
|
|
@@ -2603,9 +2606,14 @@
|
|
|
2603
2606
|
font-family: var(--fx-font-family);
|
|
2604
2607
|
font-size: var(--fx-font-size);
|
|
2605
2608
|
color: var(--fx-text-default);
|
|
2609
|
+
}
|
|
2610
|
+
/* A borda fica no wrapper interno (nao no :host): regras do documento
|
|
2611
|
+
externo (ex.: preflight do Tailwind com border-width: 0) vencem as
|
|
2612
|
+
regras :host do shadow tree, o que apagaria a linha divisoria. */
|
|
2613
|
+
.panel {
|
|
2606
2614
|
border-bottom: 1px solid var(--fx-border-default);
|
|
2607
2615
|
}
|
|
2608
|
-
:host(:last-child) { border-bottom: none; }
|
|
2616
|
+
:host(:last-child) .panel { border-bottom: none; }
|
|
2609
2617
|
:host([disabled]) { opacity: 0.6; pointer-events: none; }
|
|
2610
2618
|
.header {
|
|
2611
2619
|
display: flex;
|
package/dist/fenix-ui2.esm.js
CHANGED
|
@@ -436,6 +436,7 @@ _FxButton.styles = css`
|
|
|
436
436
|
:host([variant='success']) .btn { background: var(--fx-color-success); }
|
|
437
437
|
:host([variant='warning']) .btn { background: var(--fx-color-warning); }
|
|
438
438
|
:host([variant='danger']) .btn { background: var(--fx-color-danger); }
|
|
439
|
+
:host([variant='info']) .btn { background: var(--fx-color-info); }
|
|
439
440
|
:host([variant='ghost']) .btn { background: transparent; color: var(--fx-text-default); }
|
|
440
441
|
:host([variant='ghost']) .btn:hover { background: var(--fx-surface-surface-hover); filter: none; }
|
|
441
442
|
:host([variant='outline']) .btn { background: transparent; color: var(--fx-color-primary); border-color: var(--fx-color-primary); }
|
|
@@ -6617,22 +6618,24 @@ const _FxAccordionPanel = class _FxAccordionPanel extends FxElement {
|
|
|
6617
6618
|
}
|
|
6618
6619
|
render() {
|
|
6619
6620
|
this.setTemplate(`
|
|
6620
|
-
<
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
<
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
<
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
<div class="content
|
|
6635
|
-
<div class="content-
|
|
6621
|
+
<div class="panel" part="panel">
|
|
6622
|
+
<button type="button" class="header" part="header" role="button"
|
|
6623
|
+
aria-expanded="${this.expanded}"
|
|
6624
|
+
${this.disabled ? 'aria-disabled="true"' : ""}>
|
|
6625
|
+
<span class="header-text" part="header-text">
|
|
6626
|
+
<slot name="header">${this.header}</slot>
|
|
6627
|
+
</span>
|
|
6628
|
+
<span class="chevron" part="chevron" aria-hidden="true">
|
|
6629
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none"
|
|
6630
|
+
stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
6631
|
+
<polyline points="6 9 12 15 18 9"></polyline>
|
|
6632
|
+
</svg>
|
|
6633
|
+
</span>
|
|
6634
|
+
</button>
|
|
6635
|
+
<div class="content" part="content" role="region">
|
|
6636
|
+
<div class="content-inner">
|
|
6637
|
+
<div class="content-pad" part="content-pad"><slot></slot></div>
|
|
6638
|
+
</div>
|
|
6636
6639
|
</div>
|
|
6637
6640
|
</div>
|
|
6638
6641
|
`);
|
|
@@ -6644,9 +6647,14 @@ _FxAccordionPanel.styles = css`
|
|
|
6644
6647
|
font-family: var(--fx-font-family);
|
|
6645
6648
|
font-size: var(--fx-font-size);
|
|
6646
6649
|
color: var(--fx-text-default);
|
|
6650
|
+
}
|
|
6651
|
+
/* A borda fica no wrapper interno (nao no :host): regras do documento
|
|
6652
|
+
externo (ex.: preflight do Tailwind com border-width: 0) vencem as
|
|
6653
|
+
regras :host do shadow tree, o que apagaria a linha divisoria. */
|
|
6654
|
+
.panel {
|
|
6647
6655
|
border-bottom: 1px solid var(--fx-border-default);
|
|
6648
6656
|
}
|
|
6649
|
-
:host(:last-child) { border-bottom: none; }
|
|
6657
|
+
:host(:last-child) .panel { border-bottom: none; }
|
|
6650
6658
|
:host([disabled]) { opacity: 0.6; pointer-events: none; }
|
|
6651
6659
|
.header {
|
|
6652
6660
|
display: flex;
|