@spectrum-web-components/button
Advanced tools
Comparing version 0.30.1-overlay.30 to 0.30.1-overlay.31
{ | ||
"name": "@spectrum-web-components/button", | ||
"version": "0.30.1-overlay.30+1df211c75", | ||
"version": "0.30.1-overlay.31+0d83bbe39", | ||
"publishConfig": { | ||
@@ -85,8 +85,8 @@ "access": "public" | ||
"dependencies": { | ||
"@spectrum-web-components/base": "^0.30.1-overlay.30+1df211c75", | ||
"@spectrum-web-components/clear-button": "^0.30.1-overlay.30+1df211c75", | ||
"@spectrum-web-components/close-button": "^0.30.1-overlay.30+1df211c75", | ||
"@spectrum-web-components/icon": "^0.30.1-overlay.30+1df211c75", | ||
"@spectrum-web-components/icons-ui": "^0.30.1-overlay.30+1df211c75", | ||
"@spectrum-web-components/shared": "^0.30.1-overlay.30+1df211c75" | ||
"@spectrum-web-components/base": "^0.30.1-overlay.31+0d83bbe39", | ||
"@spectrum-web-components/clear-button": "^0.30.1-overlay.31+0d83bbe39", | ||
"@spectrum-web-components/close-button": "^0.30.1-overlay.31+0d83bbe39", | ||
"@spectrum-web-components/icon": "^0.30.1-overlay.31+0d83bbe39", | ||
"@spectrum-web-components/icons-ui": "^0.30.1-overlay.31+0d83bbe39", | ||
"@spectrum-web-components/shared": "^0.30.1-overlay.31+0d83bbe39" | ||
}, | ||
@@ -102,3 +102,3 @@ "devDependencies": { | ||
], | ||
"gitHead": "1df211c7581b6fd6ec624cf2b09bc81aeec29c26" | ||
"gitHead": "0d83bbe39df1adf5e475c05e71ab221b66354a60" | ||
} |
"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}: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-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) | ||
);width:var( | ||
--spectrum-alias-workflow-icon-size-m,var(--spectrum-global-dimension-size-225) | ||
)}[icon-only]+#label{display:none}:host([size=s]){--spectrum-icon-tshirt-size-height:var( | ||
)}[icon-only]+#label{display:contents}:host([size=s]){--spectrum-icon-tshirt-size-height:var( | ||
--spectrum-alias-workflow-icon-size-s | ||
@@ -10,0 +10,0 @@ );--spectrum-icon-tshirt-size-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}: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-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) | ||
);width:var( | ||
--spectrum-alias-workflow-icon-size-m,var(--spectrum-global-dimension-size-225) | ||
)}[icon-only]+#label{display:none}:host([size=s]){--spectrum-icon-tshirt-size-height:var( | ||
)}[icon-only]+#label{display:contents}:host([size=s]){--spectrum-icon-tshirt-size-height:var( | ||
--spectrum-alias-workflow-icon-size-s | ||
@@ -8,0 +8,0 @@ );--spectrum-icon-tshirt-size-width:var( |
@@ -829,5 +829,5 @@ "use strict"; | ||
--system-spectrum-button-staticblack-secondary-outline-content-color-disabled | ||
)}@media (forced-colors:active){:host([treatment][disabled]){border-color:graytext}:host([treatment]:not([disabled]):hover){border-color:highlight}}::slotted([slot=icon]){inset:unset} | ||
)}@media (forced-colors:active){:host([treatment][disabled]){border-color:graytext}:host([treatment]:not([disabled]):hover){border-color:highlight}} | ||
`; | ||
export default styles; | ||
//# sourceMappingURL=button.css.dev.js.map |
@@ -827,4 +827,4 @@ "use strict";import{css as t}from"@spectrum-web-components/base";const o=t` | ||
--system-spectrum-button-staticblack-secondary-outline-content-color-disabled | ||
)}@media (forced-colors:active){:host([treatment][disabled]){border-color:graytext}:host([treatment]:not([disabled]):hover){border-color:highlight}}::slotted([slot=icon]){inset:unset} | ||
)}@media (forced-colors:active){:host([treatment][disabled]){border-color:graytext}:host([treatment]:not([disabled]):hover){border-color:highlight}} | ||
`;export default o; | ||
//# sourceMappingURL=button.css.js.map |
@@ -24,3 +24,5 @@ "use strict"; | ||
import buttonStyles from "./button-base.css.js"; | ||
export class ButtonBase extends ObserveSlotText(LikeAnchor(Focusable)) { | ||
export class ButtonBase extends ObserveSlotText(LikeAnchor(Focusable), "", [ | ||
"sp-tooltip" | ||
]) { | ||
constructor() { | ||
@@ -27,0 +29,0 @@ super(); |
@@ -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)){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-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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
731196
5969
Updated@spectrum-web-components/base@^0.30.1-overlay.31+0d83bbe39
Updated@spectrum-web-components/clear-button@^0.30.1-overlay.31+0d83bbe39
Updated@spectrum-web-components/close-button@^0.30.1-overlay.31+0d83bbe39
Updated@spectrum-web-components/icon@^0.30.1-overlay.31+0d83bbe39
Updated@spectrum-web-components/icons-ui@^0.30.1-overlay.31+0d83bbe39
Updated@spectrum-web-components/shared@^0.30.1-overlay.31+0d83bbe39