@spectrum-web-components/clear-button
Advanced tools
Comparing version 0.2.6 to 0.2.7
{ | ||
"name": "@spectrum-web-components/clear-button", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"publishConfig": { | ||
@@ -56,3 +56,3 @@ "access": "public" | ||
], | ||
"gitHead": "007a762c0257af4cd74e3781d877a8a8343acfd0" | ||
"gitHead": "1e25ee121f3bc838dbb99bac62f3c95857570f7a" | ||
} |
@@ -8,3 +8,3 @@ "use strict"; | ||
--spectrum-alias-component-text-line-height,var(--spectrum-global-font-line-height-small) | ||
);overflow:visible;position:relative;text-decoration:none;text-transform:none;transition:background var(--spectrum-global-animation-duration-100,.13s) ease-out,border-color var(--spectrum-global-animation-duration-100,.13s) ease-out,color var(--spectrum-global-animation-duration-100,.13s) ease-out,box-shadow var(--spectrum-global-animation-duration-100,.13s) ease-out;user-select:none;-webkit-user-select:none;vertical-align:top}:host(:focus){outline:none}:host(::-moz-focus-inner){border:0;border-style:none;margin-bottom:-2px;margin-top:-2px;padding:0}:host([disabled]){cursor:default}:host{background-color:transparent;border:none;border-radius:100%;margin:0;padding:var(--spectrum-clearbutton-padding)}:host>.icon{margin:0 auto}:host([size=s]){--spectrum-clearbutton-fill-uiicon-color-disabled:var( | ||
);overflow:visible;position:relative;text-decoration:none;text-transform:none;transition:background var(--spectrum-global-animation-duration-100,.13s) ease-out,border-color var(--spectrum-global-animation-duration-100,.13s) ease-out,color var(--spectrum-global-animation-duration-100,.13s) ease-out,box-shadow var(--spectrum-global-animation-duration-100,.13s) ease-out;-webkit-user-select:none;user-select:none;vertical-align:top}:host(:focus){outline:none}:host([disabled]){cursor:default}:host{background-color:#0000;border:none;border-radius:100%;margin:0;padding:var(--spectrum-clearbutton-padding)}.icon{margin:0 auto}:host([size=s]){--spectrum-clearbutton-fill-uiicon-color-disabled:var( | ||
--spectrum-clearbutton-s-fill-uiicon-color-disabled,var(--spectrum-alias-component-icon-color-disabled) | ||
@@ -129,23 +129,5 @@ );--spectrum-clearbutton-fill-background-color-disabled:var( | ||
--spectrum-clearbutton-xl-padding,var(--spectrum-alias-infieldbutton-padding-xl) | ||
)}.fill{align-items:center;background-color:var( | ||
--spectrum-clearbutton-fill-background-color | ||
);border-radius:100%;display:flex;height:var(--spectrum-clearbutton-fill-size);justify-content:center;width:var(--spectrum-clearbutton-fill-size)}:host{color:var( | ||
)}.fill{align-items:center;background-color:var(--spectrum-clearbutton-fill-background-color);border-radius:100%;display:flex;height:var(--spectrum-clearbutton-fill-size);justify-content:center;width:var(--spectrum-clearbutton-fill-size)}:host{color:var( | ||
--spectrum-clearbutton-m-fill-uiicon-color,var(--spectrum-alias-component-icon-color-default) | ||
)}:host(:hover){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color | ||
)}:host([active]){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-down | ||
)}:host(.focus-visible){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-key-focus | ||
)}:host(.focus-visible){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-key-focus | ||
)}:host(:focus-visible){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-key-focus | ||
)}:host([disabled]){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-disabled | ||
)}:host(:hover) .fill{background-color:var( | ||
--spectrum-clearbutton-fill-background-color-hover | ||
)}:host([active]) .fill{background-color:var( | ||
--spectrum-clearbutton-fill-background-color-down | ||
)}:host(.focus-visible) .fill{background-color:var( | ||
)}:host(:hover){color:var(--spectrum-clearbutton-fill-uiicon-color)}:host([active]){color:var(--spectrum-clearbutton-fill-uiicon-color-down)}:host(.focus-visible){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host(.focus-visible){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host(:focus-visible){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host([disabled]){color:var(--spectrum-clearbutton-fill-uiicon-color-disabled)}:host(:hover) .fill{background-color:var(--spectrum-clearbutton-fill-background-color-hover)}:host([active]) .fill{background-color:var(--spectrum-clearbutton-fill-background-color-down)}:host(.focus-visible) .fill{background-color:var( | ||
--spectrum-clearbutton-fill-background-color-key-focus | ||
@@ -171,3 +153,3 @@ )}:host(.focus-visible) .fill{background-color:var( | ||
)}:host([variant=overBackground][disabled]),:host([variant=overBackground][disabled]) .fill{background-color:var( | ||
--spectrum-alias-icon-color-overbackground-disabled,hsla(0,0%,100%,.2) | ||
--spectrum-alias-icon-color-overbackground-disabled,#fff3 | ||
)}:host([variant=overBackground]){background-color:var( | ||
@@ -227,5 +209,5 @@ --spectrum-button-m-primary-outline-white-texticon-background-color,var(--spectrum-alias-background-color-transparent) | ||
--spectrum-button-m-primary-outline-white-texticon-text-color-disabled,var(--spectrum-global-color-static-transparent-white-500) | ||
)}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){:host>.icon{margin:0}}@media (forced-colors:active){:host{--spectrum-alias-icon-color-overbackground:ButtonText;--spectrum-alias-icon-color-overbackground-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-background-color:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-disabled:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-down:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-hover:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-border-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-border-color-down:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-hover:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-key-focus:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-text-color-down:Highlight;--spectrum-button-m-primary-outline-white-texticon-text-color-hover:Highlight;--spectrum-clearbutton-fill-background-color:ButtonFace;--spectrum-clearbutton-fill-background-color-disabled:ButtonFace;--spectrum-clearbutton-fill-background-color-down:ButtonFace;--spectrum-clearbutton-fill-background-color-hover:ButtonFace;--spectrum-clearbutton-fill-background-color-key-focus:ButtonFace;--spectrum-clearbutton-fill-uiicon-color:ButtonText;--spectrum-clearbutton-fill-uiicon-color-disabled:GrayText;--spectrum-clearbutton-fill-uiicon-color-down:Highlight;--spectrum-clearbutton-fill-uiicon-color-key-focus:Highlight;--spectrum-clearbutton-m-fill-uiicon-color:ButtonText}:host(:hover){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host([disabled]){color:var(--spectrum-clearbutton-fill-uiicon-color-disabled)}} | ||
)}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.icon{margin:0}}@media (forced-colors:active){:host{--spectrum-alias-icon-color-overbackground:ButtonText;--spectrum-alias-icon-color-overbackground-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-background-color:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-disabled:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-down:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-hover:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-border-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-border-color-down:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-hover:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-key-focus:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-text-color-down:Highlight;--spectrum-button-m-primary-outline-white-texticon-text-color-hover:Highlight;--spectrum-clearbutton-fill-background-color:ButtonFace;--spectrum-clearbutton-fill-background-color-disabled:ButtonFace;--spectrum-clearbutton-fill-background-color-down:ButtonFace;--spectrum-clearbutton-fill-background-color-hover:ButtonFace;--spectrum-clearbutton-fill-background-color-key-focus:ButtonFace;--spectrum-clearbutton-fill-uiicon-color:ButtonText;--spectrum-clearbutton-fill-uiicon-color-disabled:GrayText;--spectrum-clearbutton-fill-uiicon-color-down:Highlight;--spectrum-clearbutton-fill-uiicon-color-key-focus:Highlight;--spectrum-clearbutton-m-fill-uiicon-color:ButtonText}:host(:hover){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host([disabled]){color:var(--spectrum-clearbutton-fill-uiicon-color-disabled)}} | ||
`; | ||
export default styles; | ||
//# sourceMappingURL=clear-button.css.dev.js.map |
@@ -6,3 +6,3 @@ "use strict";import{css as o}from"@spectrum-web-components/base";const r=o` | ||
--spectrum-alias-component-text-line-height,var(--spectrum-global-font-line-height-small) | ||
);overflow:visible;position:relative;text-decoration:none;text-transform:none;transition:background var(--spectrum-global-animation-duration-100,.13s) ease-out,border-color var(--spectrum-global-animation-duration-100,.13s) ease-out,color var(--spectrum-global-animation-duration-100,.13s) ease-out,box-shadow var(--spectrum-global-animation-duration-100,.13s) ease-out;user-select:none;-webkit-user-select:none;vertical-align:top}:host(:focus){outline:none}:host(::-moz-focus-inner){border:0;border-style:none;margin-bottom:-2px;margin-top:-2px;padding:0}:host([disabled]){cursor:default}:host{background-color:transparent;border:none;border-radius:100%;margin:0;padding:var(--spectrum-clearbutton-padding)}:host>.icon{margin:0 auto}:host([size=s]){--spectrum-clearbutton-fill-uiicon-color-disabled:var( | ||
);overflow:visible;position:relative;text-decoration:none;text-transform:none;transition:background var(--spectrum-global-animation-duration-100,.13s) ease-out,border-color var(--spectrum-global-animation-duration-100,.13s) ease-out,color var(--spectrum-global-animation-duration-100,.13s) ease-out,box-shadow var(--spectrum-global-animation-duration-100,.13s) ease-out;-webkit-user-select:none;user-select:none;vertical-align:top}:host(:focus){outline:none}:host([disabled]){cursor:default}:host{background-color:#0000;border:none;border-radius:100%;margin:0;padding:var(--spectrum-clearbutton-padding)}.icon{margin:0 auto}:host([size=s]){--spectrum-clearbutton-fill-uiicon-color-disabled:var( | ||
--spectrum-clearbutton-s-fill-uiicon-color-disabled,var(--spectrum-alias-component-icon-color-disabled) | ||
@@ -127,23 +127,5 @@ );--spectrum-clearbutton-fill-background-color-disabled:var( | ||
--spectrum-clearbutton-xl-padding,var(--spectrum-alias-infieldbutton-padding-xl) | ||
)}.fill{align-items:center;background-color:var( | ||
--spectrum-clearbutton-fill-background-color | ||
);border-radius:100%;display:flex;height:var(--spectrum-clearbutton-fill-size);justify-content:center;width:var(--spectrum-clearbutton-fill-size)}:host{color:var( | ||
)}.fill{align-items:center;background-color:var(--spectrum-clearbutton-fill-background-color);border-radius:100%;display:flex;height:var(--spectrum-clearbutton-fill-size);justify-content:center;width:var(--spectrum-clearbutton-fill-size)}:host{color:var( | ||
--spectrum-clearbutton-m-fill-uiicon-color,var(--spectrum-alias-component-icon-color-default) | ||
)}:host(:hover){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color | ||
)}:host([active]){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-down | ||
)}:host(.focus-visible){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-key-focus | ||
)}:host(.focus-visible){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-key-focus | ||
)}:host(:focus-visible){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-key-focus | ||
)}:host([disabled]){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-disabled | ||
)}:host(:hover) .fill{background-color:var( | ||
--spectrum-clearbutton-fill-background-color-hover | ||
)}:host([active]) .fill{background-color:var( | ||
--spectrum-clearbutton-fill-background-color-down | ||
)}:host(.focus-visible) .fill{background-color:var( | ||
)}:host(:hover){color:var(--spectrum-clearbutton-fill-uiicon-color)}:host([active]){color:var(--spectrum-clearbutton-fill-uiicon-color-down)}:host(.focus-visible){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host(.focus-visible){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host(:focus-visible){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host([disabled]){color:var(--spectrum-clearbutton-fill-uiicon-color-disabled)}:host(:hover) .fill{background-color:var(--spectrum-clearbutton-fill-background-color-hover)}:host([active]) .fill{background-color:var(--spectrum-clearbutton-fill-background-color-down)}:host(.focus-visible) .fill{background-color:var( | ||
--spectrum-clearbutton-fill-background-color-key-focus | ||
@@ -169,3 +151,3 @@ )}:host(.focus-visible) .fill{background-color:var( | ||
)}:host([variant=overBackground][disabled]),:host([variant=overBackground][disabled]) .fill{background-color:var( | ||
--spectrum-alias-icon-color-overbackground-disabled,hsla(0,0%,100%,.2) | ||
--spectrum-alias-icon-color-overbackground-disabled,#fff3 | ||
)}:host([variant=overBackground]){background-color:var( | ||
@@ -225,4 +207,4 @@ --spectrum-button-m-primary-outline-white-texticon-background-color,var(--spectrum-alias-background-color-transparent) | ||
--spectrum-button-m-primary-outline-white-texticon-text-color-disabled,var(--spectrum-global-color-static-transparent-white-500) | ||
)}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){:host>.icon{margin:0}}@media (forced-colors:active){:host{--spectrum-alias-icon-color-overbackground:ButtonText;--spectrum-alias-icon-color-overbackground-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-background-color:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-disabled:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-down:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-hover:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-border-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-border-color-down:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-hover:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-key-focus:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-text-color-down:Highlight;--spectrum-button-m-primary-outline-white-texticon-text-color-hover:Highlight;--spectrum-clearbutton-fill-background-color:ButtonFace;--spectrum-clearbutton-fill-background-color-disabled:ButtonFace;--spectrum-clearbutton-fill-background-color-down:ButtonFace;--spectrum-clearbutton-fill-background-color-hover:ButtonFace;--spectrum-clearbutton-fill-background-color-key-focus:ButtonFace;--spectrum-clearbutton-fill-uiicon-color:ButtonText;--spectrum-clearbutton-fill-uiicon-color-disabled:GrayText;--spectrum-clearbutton-fill-uiicon-color-down:Highlight;--spectrum-clearbutton-fill-uiicon-color-key-focus:Highlight;--spectrum-clearbutton-m-fill-uiicon-color:ButtonText}:host(:hover){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host([disabled]){color:var(--spectrum-clearbutton-fill-uiicon-color-disabled)}} | ||
)}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.icon{margin:0}}@media (forced-colors:active){:host{--spectrum-alias-icon-color-overbackground:ButtonText;--spectrum-alias-icon-color-overbackground-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-background-color:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-disabled:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-down:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-hover:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-border-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-border-color-down:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-hover:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-key-focus:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-text-color-down:Highlight;--spectrum-button-m-primary-outline-white-texticon-text-color-hover:Highlight;--spectrum-clearbutton-fill-background-color:ButtonFace;--spectrum-clearbutton-fill-background-color-disabled:ButtonFace;--spectrum-clearbutton-fill-background-color-down:ButtonFace;--spectrum-clearbutton-fill-background-color-hover:ButtonFace;--spectrum-clearbutton-fill-background-color-key-focus:ButtonFace;--spectrum-clearbutton-fill-uiicon-color:ButtonText;--spectrum-clearbutton-fill-uiicon-color-disabled:GrayText;--spectrum-clearbutton-fill-uiicon-color-down:Highlight;--spectrum-clearbutton-fill-uiicon-color-key-focus:Highlight;--spectrum-clearbutton-m-fill-uiicon-color:ButtonText}:host(:hover){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host([disabled]){color:var(--spectrum-clearbutton-fill-uiicon-color-disabled)}} | ||
`;export default r; | ||
//# sourceMappingURL=clear-button.css.js.map |
@@ -8,3 +8,3 @@ "use strict"; | ||
--spectrum-alias-component-text-line-height,var(--spectrum-global-font-line-height-small) | ||
);overflow:visible;position:relative;text-decoration:none;text-transform:none;transition:background var(--spectrum-global-animation-duration-100,.13s) ease-out,border-color var(--spectrum-global-animation-duration-100,.13s) ease-out,color var(--spectrum-global-animation-duration-100,.13s) ease-out,box-shadow var(--spectrum-global-animation-duration-100,.13s) ease-out;user-select:none;-webkit-user-select:none;vertical-align:top}:host(:focus){outline:none}:host(::-moz-focus-inner){border:0;border-style:none;margin-bottom:-2px;margin-top:-2px;padding:0}:host([disabled]){cursor:default}:host{background-color:transparent;border:none;border-radius:100%;margin:0;padding:var(--spectrum-clearbutton-padding)}:host>.icon{margin:0 auto}:host([size=s]){--spectrum-clearbutton-fill-uiicon-color-disabled:var( | ||
);overflow:visible;position:relative;text-decoration:none;text-transform:none;transition:background var(--spectrum-global-animation-duration-100,.13s) ease-out,border-color var(--spectrum-global-animation-duration-100,.13s) ease-out,color var(--spectrum-global-animation-duration-100,.13s) ease-out,box-shadow var(--spectrum-global-animation-duration-100,.13s) ease-out;-webkit-user-select:none;user-select:none;vertical-align:top}:host(:focus){outline:none}:host([disabled]){cursor:default}:host{background-color:#0000;border:none;border-radius:100%;margin:0;padding:var(--spectrum-clearbutton-padding)}.icon{margin:0 auto}:host([size=s]){--spectrum-clearbutton-fill-uiicon-color-disabled:var( | ||
--spectrum-clearbutton-s-fill-uiicon-color-disabled,var(--spectrum-alias-component-icon-color-disabled) | ||
@@ -129,23 +129,5 @@ );--spectrum-clearbutton-fill-background-color-disabled:var( | ||
--spectrum-clearbutton-xl-padding,var(--spectrum-alias-infieldbutton-padding-xl) | ||
)}.fill{align-items:center;background-color:var( | ||
--spectrum-clearbutton-fill-background-color | ||
);border-radius:100%;display:flex;height:var(--spectrum-clearbutton-fill-size);justify-content:center;width:var(--spectrum-clearbutton-fill-size)}:host{color:var( | ||
)}.fill{align-items:center;background-color:var(--spectrum-clearbutton-fill-background-color);border-radius:100%;display:flex;height:var(--spectrum-clearbutton-fill-size);justify-content:center;width:var(--spectrum-clearbutton-fill-size)}:host{color:var( | ||
--spectrum-clearbutton-m-fill-uiicon-color,var(--spectrum-alias-component-icon-color-default) | ||
)}:host(:hover){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color | ||
)}:host([active]){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-down | ||
)}:host(.focus-visible){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-key-focus | ||
)}:host(.focus-visible){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-key-focus | ||
)}:host(:focus-visible){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-key-focus | ||
)}:host([disabled]){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-disabled | ||
)}:host(:hover) .fill{background-color:var( | ||
--spectrum-clearbutton-fill-background-color-hover | ||
)}:host([active]) .fill{background-color:var( | ||
--spectrum-clearbutton-fill-background-color-down | ||
)}:host(.focus-visible) .fill{background-color:var( | ||
)}:host(:hover){color:var(--spectrum-clearbutton-fill-uiicon-color)}:host([active]){color:var(--spectrum-clearbutton-fill-uiicon-color-down)}:host(.focus-visible){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host(.focus-visible){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host(:focus-visible){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host([disabled]){color:var(--spectrum-clearbutton-fill-uiicon-color-disabled)}:host(:hover) .fill{background-color:var(--spectrum-clearbutton-fill-background-color-hover)}:host([active]) .fill{background-color:var(--spectrum-clearbutton-fill-background-color-down)}:host(.focus-visible) .fill{background-color:var( | ||
--spectrum-clearbutton-fill-background-color-key-focus | ||
@@ -171,3 +153,3 @@ )}:host(.focus-visible) .fill{background-color:var( | ||
)}:host([variant=overBackground][disabled]),:host([variant=overBackground][disabled]) .fill{background-color:var( | ||
--spectrum-alias-icon-color-overbackground-disabled,hsla(0,0%,100%,.2) | ||
--spectrum-alias-icon-color-overbackground-disabled,#fff3 | ||
)}:host([variant=overBackground]){background-color:var( | ||
@@ -227,5 +209,5 @@ --spectrum-button-m-primary-outline-white-texticon-background-color,var(--spectrum-alias-background-color-transparent) | ||
--spectrum-button-m-primary-outline-white-texticon-text-color-disabled,var(--spectrum-global-color-static-transparent-white-500) | ||
)}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){:host>.icon{margin:0}}@media (forced-colors:active){:host{--spectrum-alias-icon-color-overbackground:ButtonText;--spectrum-alias-icon-color-overbackground-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-background-color:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-disabled:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-down:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-hover:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-border-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-border-color-down:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-hover:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-key-focus:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-text-color-down:Highlight;--spectrum-button-m-primary-outline-white-texticon-text-color-hover:Highlight;--spectrum-clearbutton-fill-background-color:ButtonFace;--spectrum-clearbutton-fill-background-color-disabled:ButtonFace;--spectrum-clearbutton-fill-background-color-down:ButtonFace;--spectrum-clearbutton-fill-background-color-hover:ButtonFace;--spectrum-clearbutton-fill-background-color-key-focus:ButtonFace;--spectrum-clearbutton-fill-uiicon-color:ButtonText;--spectrum-clearbutton-fill-uiicon-color-disabled:GrayText;--spectrum-clearbutton-fill-uiicon-color-down:Highlight;--spectrum-clearbutton-fill-uiicon-color-key-focus:Highlight;--spectrum-clearbutton-m-fill-uiicon-color:ButtonText}:host(:hover){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host([disabled]){color:var(--spectrum-clearbutton-fill-uiicon-color-disabled)}} | ||
)}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.icon{margin:0}}@media (forced-colors:active){:host{--spectrum-alias-icon-color-overbackground:ButtonText;--spectrum-alias-icon-color-overbackground-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-background-color:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-disabled:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-down:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-hover:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-border-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-border-color-down:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-hover:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-key-focus:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-text-color-down:Highlight;--spectrum-button-m-primary-outline-white-texticon-text-color-hover:Highlight;--spectrum-clearbutton-fill-background-color:ButtonFace;--spectrum-clearbutton-fill-background-color-disabled:ButtonFace;--spectrum-clearbutton-fill-background-color-down:ButtonFace;--spectrum-clearbutton-fill-background-color-hover:ButtonFace;--spectrum-clearbutton-fill-background-color-key-focus:ButtonFace;--spectrum-clearbutton-fill-uiicon-color:ButtonText;--spectrum-clearbutton-fill-uiicon-color-disabled:GrayText;--spectrum-clearbutton-fill-uiicon-color-down:Highlight;--spectrum-clearbutton-fill-uiicon-color-key-focus:Highlight;--spectrum-clearbutton-m-fill-uiicon-color:ButtonText}:host(:hover){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host([disabled]){color:var(--spectrum-clearbutton-fill-uiicon-color-disabled)}} | ||
`; | ||
export default styles; | ||
//# sourceMappingURL=spectrum-clear-button.css.dev.js.map |
@@ -6,3 +6,3 @@ "use strict";import{css as o}from"@spectrum-web-components/base";const r=o` | ||
--spectrum-alias-component-text-line-height,var(--spectrum-global-font-line-height-small) | ||
);overflow:visible;position:relative;text-decoration:none;text-transform:none;transition:background var(--spectrum-global-animation-duration-100,.13s) ease-out,border-color var(--spectrum-global-animation-duration-100,.13s) ease-out,color var(--spectrum-global-animation-duration-100,.13s) ease-out,box-shadow var(--spectrum-global-animation-duration-100,.13s) ease-out;user-select:none;-webkit-user-select:none;vertical-align:top}:host(:focus){outline:none}:host(::-moz-focus-inner){border:0;border-style:none;margin-bottom:-2px;margin-top:-2px;padding:0}:host([disabled]){cursor:default}:host{background-color:transparent;border:none;border-radius:100%;margin:0;padding:var(--spectrum-clearbutton-padding)}:host>.icon{margin:0 auto}:host([size=s]){--spectrum-clearbutton-fill-uiicon-color-disabled:var( | ||
);overflow:visible;position:relative;text-decoration:none;text-transform:none;transition:background var(--spectrum-global-animation-duration-100,.13s) ease-out,border-color var(--spectrum-global-animation-duration-100,.13s) ease-out,color var(--spectrum-global-animation-duration-100,.13s) ease-out,box-shadow var(--spectrum-global-animation-duration-100,.13s) ease-out;-webkit-user-select:none;user-select:none;vertical-align:top}:host(:focus){outline:none}:host([disabled]){cursor:default}:host{background-color:#0000;border:none;border-radius:100%;margin:0;padding:var(--spectrum-clearbutton-padding)}.icon{margin:0 auto}:host([size=s]){--spectrum-clearbutton-fill-uiicon-color-disabled:var( | ||
--spectrum-clearbutton-s-fill-uiicon-color-disabled,var(--spectrum-alias-component-icon-color-disabled) | ||
@@ -127,23 +127,5 @@ );--spectrum-clearbutton-fill-background-color-disabled:var( | ||
--spectrum-clearbutton-xl-padding,var(--spectrum-alias-infieldbutton-padding-xl) | ||
)}.fill{align-items:center;background-color:var( | ||
--spectrum-clearbutton-fill-background-color | ||
);border-radius:100%;display:flex;height:var(--spectrum-clearbutton-fill-size);justify-content:center;width:var(--spectrum-clearbutton-fill-size)}:host{color:var( | ||
)}.fill{align-items:center;background-color:var(--spectrum-clearbutton-fill-background-color);border-radius:100%;display:flex;height:var(--spectrum-clearbutton-fill-size);justify-content:center;width:var(--spectrum-clearbutton-fill-size)}:host{color:var( | ||
--spectrum-clearbutton-m-fill-uiicon-color,var(--spectrum-alias-component-icon-color-default) | ||
)}:host(:hover){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color | ||
)}:host([active]){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-down | ||
)}:host(.focus-visible){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-key-focus | ||
)}:host(.focus-visible){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-key-focus | ||
)}:host(:focus-visible){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-key-focus | ||
)}:host([disabled]){color:var( | ||
--spectrum-clearbutton-fill-uiicon-color-disabled | ||
)}:host(:hover) .fill{background-color:var( | ||
--spectrum-clearbutton-fill-background-color-hover | ||
)}:host([active]) .fill{background-color:var( | ||
--spectrum-clearbutton-fill-background-color-down | ||
)}:host(.focus-visible) .fill{background-color:var( | ||
)}:host(:hover){color:var(--spectrum-clearbutton-fill-uiicon-color)}:host([active]){color:var(--spectrum-clearbutton-fill-uiicon-color-down)}:host(.focus-visible){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host(.focus-visible){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host(:focus-visible){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host([disabled]){color:var(--spectrum-clearbutton-fill-uiicon-color-disabled)}:host(:hover) .fill{background-color:var(--spectrum-clearbutton-fill-background-color-hover)}:host([active]) .fill{background-color:var(--spectrum-clearbutton-fill-background-color-down)}:host(.focus-visible) .fill{background-color:var( | ||
--spectrum-clearbutton-fill-background-color-key-focus | ||
@@ -169,3 +151,3 @@ )}:host(.focus-visible) .fill{background-color:var( | ||
)}:host([variant=overBackground][disabled]),:host([variant=overBackground][disabled]) .fill{background-color:var( | ||
--spectrum-alias-icon-color-overbackground-disabled,hsla(0,0%,100%,.2) | ||
--spectrum-alias-icon-color-overbackground-disabled,#fff3 | ||
)}:host([variant=overBackground]){background-color:var( | ||
@@ -225,4 +207,4 @@ --spectrum-button-m-primary-outline-white-texticon-background-color,var(--spectrum-alias-background-color-transparent) | ||
--spectrum-button-m-primary-outline-white-texticon-text-color-disabled,var(--spectrum-global-color-static-transparent-white-500) | ||
)}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){:host>.icon{margin:0}}@media (forced-colors:active){:host{--spectrum-alias-icon-color-overbackground:ButtonText;--spectrum-alias-icon-color-overbackground-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-background-color:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-disabled:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-down:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-hover:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-border-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-border-color-down:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-hover:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-key-focus:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-text-color-down:Highlight;--spectrum-button-m-primary-outline-white-texticon-text-color-hover:Highlight;--spectrum-clearbutton-fill-background-color:ButtonFace;--spectrum-clearbutton-fill-background-color-disabled:ButtonFace;--spectrum-clearbutton-fill-background-color-down:ButtonFace;--spectrum-clearbutton-fill-background-color-hover:ButtonFace;--spectrum-clearbutton-fill-background-color-key-focus:ButtonFace;--spectrum-clearbutton-fill-uiicon-color:ButtonText;--spectrum-clearbutton-fill-uiicon-color-disabled:GrayText;--spectrum-clearbutton-fill-uiicon-color-down:Highlight;--spectrum-clearbutton-fill-uiicon-color-key-focus:Highlight;--spectrum-clearbutton-m-fill-uiicon-color:ButtonText}:host(:hover){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host([disabled]){color:var(--spectrum-clearbutton-fill-uiicon-color-disabled)}} | ||
)}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.icon{margin:0}}@media (forced-colors:active){:host{--spectrum-alias-icon-color-overbackground:ButtonText;--spectrum-alias-icon-color-overbackground-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-background-color:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-disabled:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-down:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-background-color-hover:ButtonFace;--spectrum-button-m-primary-outline-white-texticon-border-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-border-color-down:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-hover:ButtonText;--spectrum-button-m-primary-outline-white-texticon-border-color-key-focus:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color:ButtonText;--spectrum-button-m-primary-outline-white-texticon-text-color-disabled:GrayText;--spectrum-button-m-primary-outline-white-texticon-text-color-down:Highlight;--spectrum-button-m-primary-outline-white-texticon-text-color-hover:Highlight;--spectrum-clearbutton-fill-background-color:ButtonFace;--spectrum-clearbutton-fill-background-color-disabled:ButtonFace;--spectrum-clearbutton-fill-background-color-down:ButtonFace;--spectrum-clearbutton-fill-background-color-hover:ButtonFace;--spectrum-clearbutton-fill-background-color-key-focus:ButtonFace;--spectrum-clearbutton-fill-uiicon-color:ButtonText;--spectrum-clearbutton-fill-uiicon-color-disabled:GrayText;--spectrum-clearbutton-fill-uiicon-color-down:Highlight;--spectrum-clearbutton-fill-uiicon-color-key-focus:Highlight;--spectrum-clearbutton-m-fill-uiicon-color:ButtonText}:host(:hover){color:var(--spectrum-clearbutton-fill-uiicon-color-key-focus)}:host([disabled]){color:var(--spectrum-clearbutton-fill-uiicon-color-disabled)}} | ||
`;export default r; | ||
//# sourceMappingURL=spectrum-clear-button.css.js.map |
@@ -0,4 +1,5 @@ | ||
// @ts-check | ||
/* | ||
Copyright 2020 Adobe. All rights reserved. | ||
This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
Copyright 2023 Adobe. All rights reserved. | ||
This file is licensed to you under the Apache License, Version 2.0 (the 'License'); | ||
you may not use this file except in compliance with the License. You may obtain a copy | ||
@@ -8,3 +9,3 @@ of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under | ||
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
OF ANY KIND, either express or implied. See the License for the specific language | ||
@@ -14,78 +15,49 @@ governing permissions and limitations under the License. | ||
import { converterFor } from '../../../tasks/process-spectrum-utils.js'; | ||
const converter = converterFor('spectrum-ClearButton'); | ||
/** | ||
* @type { import('../../../tasks/spectrum-css-converter').SpectrumCSSConverter } | ||
*/ | ||
const config = { | ||
spectrum: 'clearbutton', | ||
components: [ | ||
conversions: [ | ||
{ | ||
name: 'clear-button', | ||
host: { | ||
selector: '.spectrum-ClearButton', | ||
}, | ||
attributes: [ | ||
{ | ||
type: 'boolean', | ||
selector: ':active', | ||
name: 'active', | ||
}, | ||
{ | ||
type: 'boolean', | ||
selector: '.is-disabled', | ||
name: 'disabled', | ||
}, | ||
{ | ||
type: 'boolean', | ||
selector: ':disabled', | ||
name: 'disabled', | ||
}, | ||
{ | ||
type: 'enum', | ||
name: 'variant', | ||
values: [ | ||
'.spectrum-ClearButton--cta', | ||
'.spectrum-ClearButton--primary', | ||
'.spectrum-ClearButton--secondary', | ||
{ | ||
name: 'negative', | ||
selector: '.spectrum-ClearButton--warning', | ||
}, | ||
'.spectrum-ClearButton--overBackground', | ||
inPackage: '@spectrum-css/clearbutton', | ||
outPackage: 'clear-button', | ||
fileName: 'clear-button', | ||
components: [ | ||
converter.classToHost(), | ||
converter.pseudoToAttribute('active', 'active'), | ||
converter.pseudoToAttribute('disabled', 'disabled'), | ||
converter.classToAttribute('is-disabled', 'disabled'), | ||
...converter.enumerateAttributes( | ||
[ | ||
['spectrum-ClearButton--cta'], | ||
['spectrum-ClearButton--primary'], | ||
['spectrum-ClearButton--secondary'], | ||
['spectrum-ClearButton--overBackground'], | ||
['spectrum-ClearButton--warning', 'negative'], | ||
], | ||
}, | ||
{ | ||
type: 'enum', | ||
name: 'size', | ||
forceOntoHost: true, | ||
values: [ | ||
{ | ||
name: 's', | ||
selector: '.spectrum-ClearButton--sizeS', | ||
}, | ||
{ | ||
name: 'm', | ||
selector: '.spectrum-ClearButton--sizeM', | ||
}, | ||
{ | ||
name: 'l', | ||
selector: '.spectrum-ClearButton--sizeL', | ||
}, | ||
{ | ||
name: 'xl', | ||
selector: '.spectrum-ClearButton--sizeXL', | ||
}, | ||
'variant' | ||
), | ||
...converter.enumerateAttributes( | ||
[ | ||
['spectrum-ClearButton--sizeS', 's'], | ||
['spectrum-ClearButton--sizeM', 'm'], | ||
['spectrum-ClearButton--sizeL', 'l'], | ||
['spectrum-ClearButton--sizeXL', 'xl'], | ||
], | ||
}, | ||
'size' | ||
), | ||
converter.classToClass('spectrum-Icon', 'icon'), | ||
converter.classToClass('spectrum-ClearButton-fill'), | ||
], | ||
classes: [ | ||
excludeByComponents: [ | ||
{ | ||
name: 'icon', | ||
selector: '.spectrum-Icon', | ||
type: 'pseudo-element', | ||
kind: 'custom', | ||
name: '-moz-focus-inner', | ||
}, | ||
{ | ||
name: 'fill', | ||
selector: '.spectrum-ClearButton-fill', | ||
}, | ||
], | ||
exclude: [/\.spectrum-Button/], | ||
excludeSourceSelector: [ | ||
/^(\.spectrum-Button.*),(\.spectrum-ClearButton.*),(\.spectrum-LogicButton.*)$/, | ||
], | ||
}, | ||
@@ -92,0 +64,0 @@ ], |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
177
67
89
159084
943