@getflip/swirl-components 0.514.0 → 0.514.1
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/components.json +8 -4
- package/dist/cjs/swirl-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/swirl-toggle-group.cjs.entry.js +2 -2
- package/dist/collection/components/swirl-toggle-button/swirl-toggle-button.css +1 -1
- package/dist/collection/components/swirl-toggle-group/swirl-toggle-group.css +4 -0
- package/dist/collection/components/swirl-toggle-group/swirl-toggle-group.js +2 -2
- package/dist/components/assets/pdfjs/pdf.worker.min.mjs +1 -1
- package/dist/components/swirl-toggle-button.js +1 -1
- package/dist/components/swirl-toggle-group.js +1 -1
- package/dist/esm/swirl-toggle-button.entry.js +1 -1
- package/dist/esm/swirl-toggle-group.entry.js +2 -2
- package/dist/swirl-components/{p-d4dd23f9.entry.js → p-a62e9511.entry.js} +1 -1
- package/dist/swirl-components/p-dfd37233.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-toggle-group/swirl-toggle-group.d.ts +1 -1
- package/package.json +1 -1
- package/vscode-data.json +3 -0
- package/dist/swirl-components/p-572ec284.entry.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
-
export type SwirlToggleGroupVariant = "flat" | "outline";
|
|
2
|
+
export type SwirlToggleGroupVariant = "flat" | "outline" | "translucent";
|
|
3
3
|
export declare class SwirlToggleGroup {
|
|
4
4
|
el: HTMLElement;
|
|
5
5
|
elevated?: boolean;
|
package/package.json
CHANGED
package/vscode-data.json
CHANGED
|
@@ -26564,6 +26564,9 @@
|
|
|
26564
26564
|
},
|
|
26565
26565
|
{
|
|
26566
26566
|
"name": "outline"
|
|
26567
|
+
},
|
|
26568
|
+
{
|
|
26569
|
+
"name": "translucent"
|
|
26567
26570
|
}
|
|
26568
26571
|
]
|
|
26569
26572
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-BdGaOt5L.js";import{c as o}from"./p-orsBiyT_.js";const s=class{constructor(e){t(this,e),this.isPressed=!1,this.hideLabel=!1,this.onClick=()=>{this.isPressed=!0}}render(){const t=o("button",{"button--pressed":this.isPressed});return e("button",{key:"069d67b0f7ce2ab455e4f162757c79efa7f38325",class:t,type:"button","aria-pressed":this.isPressed?"true":"false","aria-label":this.hideLabel?this.label:void 0,onClick:this.onClick},this.icon&&e("swirl-icon",{key:"2524714cf9e649344bd7b150f297bfdd624e1c43",class:"button__icon",glyph:this.icon}),!this.hideLabel&&e("span",{key:"a9eac2b342ada0911b22b0380ce5ca1ee90c9dbc",class:"button__label"},this.label))}};s.style=":host{display:inline-block}:host *{box-sizing:border-box}.button{display:inline-flex;gap:var(--s-space-8);width:100%;padding:0.375rem var(--s-space-8);justify-content:center;align-items:center;border:none;border-radius:0.375rem;color:var(--s-text-default);background-color:var(--s-surface-sunken-default);font:inherit;font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-lg);text-decoration:none;cursor:pointer}.button:hover{background-color:var(--s-state-hovered)}.button:active{background-color:var(--s-state-pressed)}.button:focus:not(:focus-visible){outline:none}.button:focus-visible{outline-color:var(--s-focus-default);outline-offset:var(--s-space-2)}.button.button--pressed{background-color:var(--s-surface-default);color:var(--s-text-highlight);box-shadow:var(--s-shadow-level-1)}.button.button--pressed .button__icon{color:var(--s-icon-highlight)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.button{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);gap:var(--s-space-4)}}.button__label{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis}.button__icon{width:1.5rem;height:1.5rem;color:var(--s-icon-default)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.button__icon{width:1.25rem;height:1.25rem}}";export{s as swirl_toggle_button}
|