@spectrum-web-components/button
Advanced tools
Comparing version 0.35.1-rc.34 to 0.35.1-rc.41
{ | ||
"name": "@spectrum-web-components/button", | ||
"version": "0.35.1-rc.34+2cc53a49a", | ||
"version": "0.35.1-rc.41+6ac4e82f0", | ||
"publishConfig": { | ||
@@ -85,8 +85,8 @@ "access": "public" | ||
"dependencies": { | ||
"@spectrum-web-components/base": "^0.35.1-rc.34+2cc53a49a", | ||
"@spectrum-web-components/clear-button": "^0.35.1-rc.34+2cc53a49a", | ||
"@spectrum-web-components/close-button": "^0.35.1-rc.34+2cc53a49a", | ||
"@spectrum-web-components/icon": "^0.35.1-rc.34+2cc53a49a", | ||
"@spectrum-web-components/icons-ui": "^0.35.1-rc.34+2cc53a49a", | ||
"@spectrum-web-components/shared": "^0.35.1-rc.34+2cc53a49a" | ||
"@spectrum-web-components/base": "^0.35.1-rc.41+6ac4e82f0", | ||
"@spectrum-web-components/clear-button": "^0.35.1-rc.41+6ac4e82f0", | ||
"@spectrum-web-components/close-button": "^0.35.1-rc.41+6ac4e82f0", | ||
"@spectrum-web-components/icon": "^0.35.1-rc.41+6ac4e82f0", | ||
"@spectrum-web-components/icons-ui": "^0.35.1-rc.41+6ac4e82f0", | ||
"@spectrum-web-components/shared": "^0.35.1-rc.41+6ac4e82f0" | ||
}, | ||
@@ -102,3 +102,3 @@ "devDependencies": { | ||
], | ||
"gitHead": "2cc53a49a9491e4d86ed3c39ab430fda8a7a5b96" | ||
"gitHead": "6ac4e82f0a4a68eb50b5dd4b96a562060162ac6f" | ||
} |
"use strict"; | ||
import { css } from "@spectrum-web-components/base"; | ||
const styles = css` | ||
:host{display:inline-flex;vertical-align:top}:host([dir]){-webkit-appearance:none}:host([disabled]){cursor:auto;pointer-events:none}#button{inset:0;position:absolute}::slotted(sp-tooltip){position:absolute}:host:after{pointer-events:none}slot[name=icon]::slotted(img),slot[name=icon]::slotted(svg){fill:currentcolor;stroke:currentcolor;height:var( | ||
:host{display:inline-flex;vertical-align:top}:host([dir]){-webkit-appearance:none}:host([disabled]){cursor:auto;pointer-events:none}#button{inset:0;position:absolute}::slotted(sp-overlay),::slotted(sp-tooltip){position:absolute}:host:after{pointer-events:none}slot[name=icon]::slotted(img),slot[name=icon]::slotted(svg){fill:currentcolor;stroke:currentcolor;height:var( | ||
--spectrum-alias-workflow-icon-size-m,var(--spectrum-global-dimension-size-225) | ||
@@ -6,0 +6,0 @@ );width:var( |
"use strict";import{css as i}from"@spectrum-web-components/base";const s=i` | ||
:host{display:inline-flex;vertical-align:top}:host([dir]){-webkit-appearance:none}:host([disabled]){cursor:auto;pointer-events:none}#button{inset:0;position:absolute}::slotted(sp-tooltip){position:absolute}:host:after{pointer-events:none}slot[name=icon]::slotted(img),slot[name=icon]::slotted(svg){fill:currentcolor;stroke:currentcolor;height:var( | ||
:host{display:inline-flex;vertical-align:top}:host([dir]){-webkit-appearance:none}:host([disabled]){cursor:auto;pointer-events:none}#button{inset:0;position:absolute}::slotted(sp-overlay),::slotted(sp-tooltip){position:absolute}:host:after{pointer-events:none}slot[name=icon]::slotted(img),slot[name=icon]::slotted(svg){fill:currentcolor;stroke:currentcolor;height:var( | ||
--spectrum-alias-workflow-icon-size-m,var(--spectrum-global-dimension-size-225) | ||
@@ -4,0 +4,0 @@ );width:var( |
@@ -25,3 +25,3 @@ "use strict"; | ||
export class ButtonBase extends ObserveSlotText(LikeAnchor(Focusable), "", [ | ||
"sp-tooltip" | ||
"sp-overlay,sp-tooltip" | ||
]) { | ||
@@ -28,0 +28,0 @@ constructor() { |
@@ -1,2 +0,2 @@ | ||
"use strict";var d=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var s=(o,r,e,t)=>{for(var i=t>1?void 0:t?c(r,e):r,a=o.length-1,h;a>=0;a--)(h=o[a])&&(i=(t?h(r,e,i):h(i))||i);return t&&i&&d(r,e,i),i};import{html as n}from"@spectrum-web-components/base";import{property as l,query as u}from"@spectrum-web-components/base/src/decorators.js";import{LikeAnchor as p}from"@spectrum-web-components/shared/src/like-anchor.js";import{Focusable as v}from"@spectrum-web-components/shared/src/focusable.js";import{ObserveSlotText as m}from"@spectrum-web-components/shared/src/observe-slot-text.js";import b from"./button-base.css.js";export class ButtonBase extends m(p(v),"",["sp-tooltip"]){constructor(){super();this.active=!1;this.type="button";this.proxyFocus=this.proxyFocus.bind(this),this.addEventListener("click",this.handleClickCapture,{capture:!0})}static get styles(){return[b]}get focusElement(){return this}get hasLabel(){return this.slotHasContent}get buttonContent(){return[n` | ||
"use strict";var d=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var s=(o,r,e,t)=>{for(var i=t>1?void 0:t?c(r,e):r,a=o.length-1,h;a>=0;a--)(h=o[a])&&(i=(t?h(r,e,i):h(i))||i);return t&&i&&d(r,e,i),i};import{html as n}from"@spectrum-web-components/base";import{property as l,query as u}from"@spectrum-web-components/base/src/decorators.js";import{LikeAnchor as p}from"@spectrum-web-components/shared/src/like-anchor.js";import{Focusable as v}from"@spectrum-web-components/shared/src/focusable.js";import{ObserveSlotText as m}from"@spectrum-web-components/shared/src/observe-slot-text.js";import b from"./button-base.css.js";export class ButtonBase extends m(p(v),"",["sp-overlay,sp-tooltip"]){constructor(){super();this.active=!1;this.type="button";this.proxyFocus=this.proxyFocus.bind(this),this.addEventListener("click",this.handleClickCapture,{capture:!0})}static get styles(){return[b]}get focusElement(){return this}get hasLabel(){return this.slotHasContent}get buttonContent(){return[n` | ||
<slot name="icon" ?icon-only=${!this.hasLabel}></slot> | ||
@@ -3,0 +3,0 @@ `,n` |
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
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
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
734060
175
5984
Updated@spectrum-web-components/base@^0.35.1-rc.41+6ac4e82f0
Updated@spectrum-web-components/clear-button@^0.35.1-rc.41+6ac4e82f0
Updated@spectrum-web-components/close-button@^0.35.1-rc.41+6ac4e82f0
Updated@spectrum-web-components/icon@^0.35.1-rc.41+6ac4e82f0
Updated@spectrum-web-components/icons-ui@^0.35.1-rc.41+6ac4e82f0
Updated@spectrum-web-components/shared@^0.35.1-rc.41+6ac4e82f0