@spectrum-web-components/button
Advanced tools
Comparing version 0.35.1-rc.43 to 0.36.0
{ | ||
"name": "@spectrum-web-components/button", | ||
"version": "0.35.1-rc.43+432051b80", | ||
"version": "0.36.0", | ||
"publishConfig": { | ||
@@ -85,11 +85,11 @@ "access": "public" | ||
"dependencies": { | ||
"@spectrum-web-components/base": "^0.35.1-rc.43+432051b80", | ||
"@spectrum-web-components/clear-button": "^0.35.1-rc.43+432051b80", | ||
"@spectrum-web-components/close-button": "^0.35.1-rc.43+432051b80", | ||
"@spectrum-web-components/icon": "^0.35.1-rc.43+432051b80", | ||
"@spectrum-web-components/icons-ui": "^0.35.1-rc.43+432051b80", | ||
"@spectrum-web-components/shared": "^0.35.1-rc.43+432051b80" | ||
"@spectrum-web-components/base": "^0.36.0", | ||
"@spectrum-web-components/clear-button": "^0.36.0", | ||
"@spectrum-web-components/close-button": "^0.36.0", | ||
"@spectrum-web-components/icon": "^0.36.0", | ||
"@spectrum-web-components/icons-ui": "^0.36.0", | ||
"@spectrum-web-components/shared": "^0.36.0" | ||
}, | ||
"devDependencies": { | ||
"@spectrum-css/button": "^10.1.10" | ||
"@spectrum-css/button": "^10.1.14" | ||
}, | ||
@@ -102,3 +102,3 @@ "types": "./src/index.d.ts", | ||
], | ||
"gitHead": "432051b8085e7c86032333fa296bfa5334d47d84" | ||
"gitHead": "a532ff8a410abeefb54d9638a2316ae82570566e" | ||
} |
"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-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( | ||
: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) | ||
@@ -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-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( | ||
: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) | ||
@@ -4,0 +4,0 @@ );width:var( |
@@ -25,3 +25,3 @@ "use strict"; | ||
export class ButtonBase extends ObserveSlotText(LikeAnchor(Focusable), "", [ | ||
"sp-overlay,sp-tooltip" | ||
"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-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` | ||
"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
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
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
785649
176
7862
0
+ Added@spectrum-web-components/base@0.36.0(transitive)
+ Added@spectrum-web-components/clear-button@0.36.0(transitive)
+ Added@spectrum-web-components/close-button@0.36.0(transitive)
+ Added@spectrum-web-components/icon@0.36.0(transitive)
+ Added@spectrum-web-components/icons-ui@0.36.0(transitive)
+ Added@spectrum-web-components/iconset@0.36.0(transitive)
+ Added@spectrum-web-components/shared@0.36.0(transitive)
- Removed@spectrum-web-components/base@0.35.1-rc.43(transitive)
- Removed@spectrum-web-components/clear-button@0.35.1-rc.43(transitive)
- Removed@spectrum-web-components/close-button@0.35.1-rc.43(transitive)
- Removed@spectrum-web-components/icon@0.35.1-rc.43(transitive)
- Removed@spectrum-web-components/icons-ui@0.35.1-rc.43(transitive)
- Removed@spectrum-web-components/iconset@0.35.1-rc.43(transitive)
- Removed@spectrum-web-components/shared@0.35.1-rc.43(transitive)