@covalent/components 8.8.0 → 8.9.0
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/badge.js +1 -1
- package/badge.mjs +4 -4
- package/icon-button-toggle/icon-button-toggle.d.ts +11 -0
- package/icon-button-toggle/icon-button-toggle.d.ts.map +1 -0
- package/icon-button-toggle.js +45 -0
- package/icon-button-toggle.mjs +176 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.mjs +66 -64
- package/package.json +6 -1
package/badge.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./query-assigned-elements-f623705d.js"),i=require("./property-57f6f6fe.js"),p=require("./class-map-b5efe8da.js"),g=`.cv-badge{background-color:var(--cv-theme-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./query-assigned-elements-f623705d.js"),i=require("./property-57f6f6fe.js"),p=require("./class-map-b5efe8da.js"),g=`.cv-badge{background-color:var(--cv-theme-negative);border-radius:11px;box-sizing:border-box;color:var(--cv-theme-on-negative);display:inline-block;font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);font-weight:var(--mdc-typography-caption-font-weight);line-height:var(--mdc-typography-caption-line-height);height:16px;min-width:16px;padding:0 4px;position:absolute;text-align:center}.cv-badge.small{height:2px;padding:2px;min-width:2px}.cv-badge.top-right{top:-2px;right:-2px}.cv-badge.top-left{top:-2px;left:-2px}.cv-badge.bottom-right{bottom:-2px;right:-2px}.cv-badge.bottom-left{bottom:-2px;left:-2px}.cv-badge.isolated{position:relative;top:0;right:0;bottom:0;left:0}.cv-badge-container{position:relative;display:inline-flex}.wrapped-content{flex-grow:1}.hidden{display:none}
|
2
2
|
`;var c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,a=(l,e,t,s)=>{for(var n=s>1?void 0:s?h(e,t):e,o=l.length-1,d;o>=0;o--)(d=l[o])&&(n=(s?d(e,t,n):d(n))||n);return s&&n&&c(e,t,n),n};exports.CovalentBadge=class extends r.s{constructor(){super(...arguments),this.max=100,this.size="large",this.hideBadge=!1,this.verticalAlignment="top",this.horizontalAlignment="right"}firstUpdated(){var t;const e=this.renderRoot.querySelector("slot");if(e&&!e.assignedNodes({flatten:!0}).filter(o=>o.nodeType===Node.ELEMENT_NODE).length){const o=this.renderRoot.querySelector("#badge-content");(t=o==null?void 0:o.classList)==null||t.add("isolated")}}getContent(){let e=this.content;const t=Number(e);return this.showZero&&e==0?e=e.toString():!isNaN(t)&&this.max&&(e=t>this.max?`${this.max}+`:t),e||""}render(){const e={"cv-badge":!0,small:this.size==="small",hidden:!!this.hideBadge||!this.showZero&&this.content==0};return e[`${this.verticalAlignment}-${this.horizontalAlignment}`]=!0,r.x`
|
3
3
|
<div class="cv-badge-container">
|
4
4
|
<slot class="wrapped-content"></slot>
|
package/badge.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { i as
|
1
|
+
import { i as d, r as c, s as h, x as g, e as m } from "./query-assigned-elements-4a39219d.mjs";
|
2
2
|
import { n as s } from "./property-9b6ea53b.mjs";
|
3
3
|
import { o as v } from "./class-map-4b94b017.mjs";
|
4
|
-
const f = `.cv-badge{background-color:var(--cv-theme-
|
4
|
+
const f = `.cv-badge{background-color:var(--cv-theme-negative);border-radius:11px;box-sizing:border-box;color:var(--cv-theme-on-negative);display:inline-block;font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);font-weight:var(--mdc-typography-caption-font-weight);line-height:var(--mdc-typography-caption-line-height);height:16px;min-width:16px;padding:0 4px;position:absolute;text-align:center}.cv-badge.small{height:2px;padding:2px;min-width:2px}.cv-badge.top-right{top:-2px;right:-2px}.cv-badge.top-left{top:-2px;left:-2px}.cv-badge.bottom-right{bottom:-2px;right:-2px}.cv-badge.bottom-left{bottom:-2px;left:-2px}.cv-badge.isolated{position:relative;top:0;right:0;bottom:0;left:0}.cv-badge-container{position:relative;display:inline-flex}.wrapped-content{flex-grow:1}.hidden{display:none}
|
5
5
|
`;
|
6
6
|
var x = Object.defineProperty, b = Object.getOwnPropertyDescriptor, n = (t, o, a, r) => {
|
7
7
|
for (var e = r > 1 ? void 0 : r ? b(o, a) : o, l = t.length - 1, p; l >= 0; l--)
|
@@ -46,8 +46,8 @@ let i = class extends h {
|
|
46
46
|
}
|
47
47
|
};
|
48
48
|
i.styles = [
|
49
|
-
|
50
|
-
${
|
49
|
+
d`
|
50
|
+
${c(f)}
|
51
51
|
`
|
52
52
|
];
|
53
53
|
n([
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { IconButtonToggle } from '@material/mwc-icon-button-toggle/mwc-icon-button-toggle';
|
2
|
+
declare global {
|
3
|
+
interface HTMLElementTagNameMap {
|
4
|
+
'cv-icon-button-toggle': CovalentIconButtonToggle;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
export declare class CovalentIconButtonToggle extends IconButtonToggle {
|
8
|
+
static styles: import("lit").CSSResult[];
|
9
|
+
}
|
10
|
+
export default CovalentIconButtonToggle;
|
11
|
+
//# sourceMappingURL=icon-button-toggle.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"icon-button-toggle.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/icon-button-toggle/icon-button-toggle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAG3F,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,uBAAuB,EAAE,wBAAwB,CAAC;KACnD;CACF;AAED,qBACa,wBAAyB,SAAQ,gBAAgB;IAC5D,OAAgB,MAAM,4BAKpB;CACH;AAED,eAAe,wBAAwB,CAAC"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("./query-assigned-elements-f623705d.js"),o=require("./tslib.es6-98719205.js"),b=require("./ripple-handlers-5d5b21db.js"),h=require("./aria-property-849c8816.js"),r=require("./property-57f6f6fe.js"),g=require("./state-0974a8e5.js"),m=require("./event-options-3f5eb195.js"),f=require("./query-680f1868.js"),_=require("./class-map-b5efe8da.js"),u=require("./if-defined-f1c45245.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./style-map-88d2563f.js");/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2021 Google LLC
|
4
|
+
* SPDX-LIcense-Identifier: Apache-2.0
|
5
|
+
*/const v=c.i`.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{display:none}.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block;max-height:48px;max-width:48px}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button.mdc-icon-button--reduced-size:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-disabled-on-light, rgba(0, 0, 0, 0.38))}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}:host{display:inline-block;outline:none}:host([disabled]){pointer-events:none}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block}:host{--mdc-ripple-color: currentcolor;-webkit-tap-highlight-color:transparent}:host,.mdc-icon-button{vertical-align:top}.mdc-icon-button{width:var(--mdc-icon-button-size, 48px);height:var(--mdc-icon-button-size, 48px);padding:calc( (var(--mdc-icon-button-size, 48px) - var(--mdc-icon-size, 24px)) / 2 )}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block;width:var(--mdc-icon-size, 24px);height:var(--mdc-icon-size, 24px)}`;/**
|
6
|
+
* @license
|
7
|
+
* Copyright 2019 Google LLC
|
8
|
+
* SPDX-License-Identifier: Apache-2.0
|
9
|
+
*/class t extends c.s{constructor(){super(...arguments),this.disabled=!1,this.onIcon="",this.offIcon="",this.on=!1,this.shouldRenderRipple=!1,this.rippleHandlers=new b.RippleHandlers(()=>(this.shouldRenderRipple=!0,this.ripple))}handleClick(){this.on=!this.on,this.dispatchEvent(new CustomEvent("icon-button-toggle-change",{detail:{isOn:this.on},bubbles:!0}))}click(){this.mdcRoot.focus(),this.mdcRoot.click()}focus(){this.rippleHandlers.startFocus(),this.mdcRoot.focus()}blur(){this.rippleHandlers.endFocus(),this.mdcRoot.blur()}renderRipple(){return this.shouldRenderRipple?c.x`
|
10
|
+
<mwc-ripple
|
11
|
+
.disabled="${this.disabled}"
|
12
|
+
unbounded>
|
13
|
+
</mwc-ripple>`:""}render(){const e={"mdc-icon-button--on":this.on},n=this.ariaLabelOn!==void 0&&this.ariaLabelOff!==void 0,s=n?void 0:this.on,i=n?this.on?this.ariaLabelOn:this.ariaLabelOff:this.ariaLabel;return c.x`<button
|
14
|
+
class="mdc-icon-button mdc-icon-button--display-flex ${_.o(e)}"
|
15
|
+
aria-pressed="${u.l(s)}"
|
16
|
+
aria-label="${u.l(i)}"
|
17
|
+
@click="${this.handleClick}"
|
18
|
+
?disabled="${this.disabled}"
|
19
|
+
@focus="${this.handleRippleFocus}"
|
20
|
+
@blur="${this.handleRippleBlur}"
|
21
|
+
@mousedown="${this.handleRippleMouseDown}"
|
22
|
+
@mouseenter="${this.handleRippleMouseEnter}"
|
23
|
+
@mouseleave="${this.handleRippleMouseLeave}"
|
24
|
+
@touchstart="${this.handleRippleTouchStart}"
|
25
|
+
@touchend="${this.handleRippleDeactivate}"
|
26
|
+
@touchcancel="${this.handleRippleDeactivate}"
|
27
|
+
>${this.renderRipple()}
|
28
|
+
<span class="mdc-icon-button__icon"
|
29
|
+
><slot name="offIcon"
|
30
|
+
><i class="material-icons">${this.offIcon}</i
|
31
|
+
></slot
|
32
|
+
></span>
|
33
|
+
<span class="mdc-icon-button__icon mdc-icon-button__icon--on"
|
34
|
+
><slot name="onIcon"
|
35
|
+
><i class="material-icons">${this.onIcon}</i
|
36
|
+
></slot
|
37
|
+
></span>
|
38
|
+
</button>`}handleRippleMouseDown(e){const n=()=>{window.removeEventListener("mouseup",n),this.handleRippleDeactivate()};window.addEventListener("mouseup",n),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}o.__decorate([f.i(".mdc-icon-button")],t.prototype,"mdcRoot",void 0);o.__decorate([h.ariaProperty,r.n({type:String,attribute:"aria-label"})],t.prototype,"ariaLabel",void 0);o.__decorate([r.n({type:Boolean,reflect:!0})],t.prototype,"disabled",void 0);o.__decorate([r.n({type:String})],t.prototype,"onIcon",void 0);o.__decorate([r.n({type:String})],t.prototype,"offIcon",void 0);o.__decorate([r.n({type:String})],t.prototype,"ariaLabelOn",void 0);o.__decorate([r.n({type:String})],t.prototype,"ariaLabelOff",void 0);o.__decorate([r.n({type:Boolean,reflect:!0})],t.prototype,"on",void 0);o.__decorate([b.e("mwc-ripple")],t.prototype,"ripple",void 0);o.__decorate([g.t()],t.prototype,"shouldRenderRipple",void 0);o.__decorate([m.e({passive:!0})],t.prototype,"handleRippleMouseDown",null);o.__decorate([m.e({passive:!0})],t.prototype,"handleRippleTouchStart",null);/**
|
39
|
+
* @license
|
40
|
+
* Copyright 2019 Google LLC
|
41
|
+
* SPDX-License-Identifier: Apache-2.0
|
42
|
+
*/let a=class extends t{};a.styles=[v];a=o.__decorate([c.e("mwc-icon-button-toggle")],a);const x=`:host{border-radius:50%;color:var(--cv-theme-on-surface-variant)}:host([disabled]){background-color:transparent}:host([on]){--mdc-ripple-press-opacity: .16;--mdc-ripple-hover-opacity: .12;--mdc-ripple-focus-opacity: .16;background-color:var(--cv-theme-primary-8);color:var(--cv-theme-primary)}
|
43
|
+
`;var y=Object.defineProperty,w=Object.getOwnPropertyDescriptor,R=(d,e,n,s)=>{for(var i=s>1?void 0:s?w(e,n):e,l=d.length-1,p;l>=0;l--)(p=d[l])&&(i=(s?p(e,n,i):p(i))||i);return s&&i&&y(e,n,i),i};exports.CovalentIconButtonToggle=class extends a{};exports.CovalentIconButtonToggle.styles=[...a.styles,c.i`
|
44
|
+
${c.r(x)}
|
45
|
+
`];exports.CovalentIconButtonToggle=R([c.e("cv-icon-button-toggle")],exports.CovalentIconButtonToggle);const k=exports.CovalentIconButtonToggle;exports.default=k;
|
@@ -0,0 +1,176 @@
|
|
1
|
+
import { i as b, s as g, x as u, e as h, r as _ } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
+
import { _ as o } from "./tslib.es6-c4b0f3b1.mjs";
|
3
|
+
import { e as v, R as x } from "./ripple-handlers-0d9ad7c2.mjs";
|
4
|
+
import { a as y } from "./aria-property-fa2717fe.mjs";
|
5
|
+
import { n as c } from "./property-9b6ea53b.mjs";
|
6
|
+
import { t as w } from "./state-b5e865db.mjs";
|
7
|
+
import { e as f } from "./event-options-78d6cf94.mjs";
|
8
|
+
import { i as R } from "./query-d843aa92.mjs";
|
9
|
+
import { o as k } from "./class-map-4b94b017.mjs";
|
10
|
+
import { l as m } from "./if-defined-c367f208.mjs";
|
11
|
+
import "./base-element-acf30176.mjs";
|
12
|
+
import "./utils-dc65fdc9.mjs";
|
13
|
+
import "./style-map-bc3ed3e0.mjs";
|
14
|
+
/**
|
15
|
+
* @license
|
16
|
+
* Copyright 2021 Google LLC
|
17
|
+
* SPDX-LIcense-Identifier: Apache-2.0
|
18
|
+
*/
|
19
|
+
const $ = b`.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{display:none}.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block;max-height:48px;max-width:48px}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button.mdc-icon-button--reduced-size:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-disabled-on-light, rgba(0, 0, 0, 0.38))}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}:host{display:inline-block;outline:none}:host([disabled]){pointer-events:none}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block}:host{--mdc-ripple-color: currentcolor;-webkit-tap-highlight-color:transparent}:host,.mdc-icon-button{vertical-align:top}.mdc-icon-button{width:var(--mdc-icon-button-size, 48px);height:var(--mdc-icon-button-size, 48px);padding:calc( (var(--mdc-icon-button-size, 48px) - var(--mdc-icon-size, 24px)) / 2 )}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block;width:var(--mdc-icon-size, 24px);height:var(--mdc-icon-size, 24px)}`;
|
20
|
+
/**
|
21
|
+
* @license
|
22
|
+
* Copyright 2019 Google LLC
|
23
|
+
* SPDX-License-Identifier: Apache-2.0
|
24
|
+
*/
|
25
|
+
class t extends g {
|
26
|
+
constructor() {
|
27
|
+
super(...arguments), this.disabled = !1, this.onIcon = "", this.offIcon = "", this.on = !1, this.shouldRenderRipple = !1, this.rippleHandlers = new x(() => (this.shouldRenderRipple = !0, this.ripple));
|
28
|
+
}
|
29
|
+
handleClick() {
|
30
|
+
this.on = !this.on, this.dispatchEvent(new CustomEvent("icon-button-toggle-change", { detail: { isOn: this.on }, bubbles: !0 }));
|
31
|
+
}
|
32
|
+
click() {
|
33
|
+
this.mdcRoot.focus(), this.mdcRoot.click();
|
34
|
+
}
|
35
|
+
focus() {
|
36
|
+
this.rippleHandlers.startFocus(), this.mdcRoot.focus();
|
37
|
+
}
|
38
|
+
blur() {
|
39
|
+
this.rippleHandlers.endFocus(), this.mdcRoot.blur();
|
40
|
+
}
|
41
|
+
/** @soyTemplate */
|
42
|
+
renderRipple() {
|
43
|
+
return this.shouldRenderRipple ? u`
|
44
|
+
<mwc-ripple
|
45
|
+
.disabled="${this.disabled}"
|
46
|
+
unbounded>
|
47
|
+
</mwc-ripple>` : "";
|
48
|
+
}
|
49
|
+
/** @soyTemplate */
|
50
|
+
render() {
|
51
|
+
const n = {
|
52
|
+
"mdc-icon-button--on": this.on
|
53
|
+
}, e = this.ariaLabelOn !== void 0 && this.ariaLabelOff !== void 0, r = e ? void 0 : this.on, i = e ? this.on ? this.ariaLabelOn : this.ariaLabelOff : this.ariaLabel;
|
54
|
+
return u`<button
|
55
|
+
class="mdc-icon-button mdc-icon-button--display-flex ${k(n)}"
|
56
|
+
aria-pressed="${m(r)}"
|
57
|
+
aria-label="${m(i)}"
|
58
|
+
@click="${this.handleClick}"
|
59
|
+
?disabled="${this.disabled}"
|
60
|
+
@focus="${this.handleRippleFocus}"
|
61
|
+
@blur="${this.handleRippleBlur}"
|
62
|
+
@mousedown="${this.handleRippleMouseDown}"
|
63
|
+
@mouseenter="${this.handleRippleMouseEnter}"
|
64
|
+
@mouseleave="${this.handleRippleMouseLeave}"
|
65
|
+
@touchstart="${this.handleRippleTouchStart}"
|
66
|
+
@touchend="${this.handleRippleDeactivate}"
|
67
|
+
@touchcancel="${this.handleRippleDeactivate}"
|
68
|
+
>${this.renderRipple()}
|
69
|
+
<span class="mdc-icon-button__icon"
|
70
|
+
><slot name="offIcon"
|
71
|
+
><i class="material-icons">${this.offIcon}</i
|
72
|
+
></slot
|
73
|
+
></span>
|
74
|
+
<span class="mdc-icon-button__icon mdc-icon-button__icon--on"
|
75
|
+
><slot name="onIcon"
|
76
|
+
><i class="material-icons">${this.onIcon}</i
|
77
|
+
></slot
|
78
|
+
></span>
|
79
|
+
</button>`;
|
80
|
+
}
|
81
|
+
handleRippleMouseDown(n) {
|
82
|
+
const e = () => {
|
83
|
+
window.removeEventListener("mouseup", e), this.handleRippleDeactivate();
|
84
|
+
};
|
85
|
+
window.addEventListener("mouseup", e), this.rippleHandlers.startPress(n);
|
86
|
+
}
|
87
|
+
handleRippleTouchStart(n) {
|
88
|
+
this.rippleHandlers.startPress(n);
|
89
|
+
}
|
90
|
+
handleRippleDeactivate() {
|
91
|
+
this.rippleHandlers.endPress();
|
92
|
+
}
|
93
|
+
handleRippleMouseEnter() {
|
94
|
+
this.rippleHandlers.startHover();
|
95
|
+
}
|
96
|
+
handleRippleMouseLeave() {
|
97
|
+
this.rippleHandlers.endHover();
|
98
|
+
}
|
99
|
+
handleRippleFocus() {
|
100
|
+
this.rippleHandlers.startFocus();
|
101
|
+
}
|
102
|
+
handleRippleBlur() {
|
103
|
+
this.rippleHandlers.endFocus();
|
104
|
+
}
|
105
|
+
}
|
106
|
+
o([
|
107
|
+
R(".mdc-icon-button")
|
108
|
+
], t.prototype, "mdcRoot", void 0);
|
109
|
+
o([
|
110
|
+
y,
|
111
|
+
c({ type: String, attribute: "aria-label" })
|
112
|
+
], t.prototype, "ariaLabel", void 0);
|
113
|
+
o([
|
114
|
+
c({ type: Boolean, reflect: !0 })
|
115
|
+
], t.prototype, "disabled", void 0);
|
116
|
+
o([
|
117
|
+
c({ type: String })
|
118
|
+
], t.prototype, "onIcon", void 0);
|
119
|
+
o([
|
120
|
+
c({ type: String })
|
121
|
+
], t.prototype, "offIcon", void 0);
|
122
|
+
o([
|
123
|
+
c({ type: String })
|
124
|
+
], t.prototype, "ariaLabelOn", void 0);
|
125
|
+
o([
|
126
|
+
c({ type: String })
|
127
|
+
], t.prototype, "ariaLabelOff", void 0);
|
128
|
+
o([
|
129
|
+
c({ type: Boolean, reflect: !0 })
|
130
|
+
], t.prototype, "on", void 0);
|
131
|
+
o([
|
132
|
+
v("mwc-ripple")
|
133
|
+
], t.prototype, "ripple", void 0);
|
134
|
+
o([
|
135
|
+
w()
|
136
|
+
], t.prototype, "shouldRenderRipple", void 0);
|
137
|
+
o([
|
138
|
+
f({ passive: !0 })
|
139
|
+
], t.prototype, "handleRippleMouseDown", null);
|
140
|
+
o([
|
141
|
+
f({ passive: !0 })
|
142
|
+
], t.prototype, "handleRippleTouchStart", null);
|
143
|
+
/**
|
144
|
+
* @license
|
145
|
+
* Copyright 2019 Google LLC
|
146
|
+
* SPDX-License-Identifier: Apache-2.0
|
147
|
+
*/
|
148
|
+
let s = class extends t {
|
149
|
+
};
|
150
|
+
s.styles = [$];
|
151
|
+
s = o([
|
152
|
+
h("mwc-icon-button-toggle")
|
153
|
+
], s);
|
154
|
+
const z = `:host{border-radius:50%;color:var(--cv-theme-on-surface-variant)}:host([disabled]){background-color:transparent}:host([on]){--mdc-ripple-press-opacity: .16;--mdc-ripple-hover-opacity: .12;--mdc-ripple-focus-opacity: .16;background-color:var(--cv-theme-primary-8);color:var(--cv-theme-primary)}
|
155
|
+
`;
|
156
|
+
var L = Object.defineProperty, I = Object.getOwnPropertyDescriptor, H = (d, n, e, r) => {
|
157
|
+
for (var i = r > 1 ? void 0 : r ? I(n, e) : n, l = d.length - 1, p; l >= 0; l--)
|
158
|
+
(p = d[l]) && (i = (r ? p(n, e, i) : p(i)) || i);
|
159
|
+
return r && i && L(n, e, i), i;
|
160
|
+
};
|
161
|
+
let a = class extends s {
|
162
|
+
};
|
163
|
+
a.styles = [
|
164
|
+
...s.styles,
|
165
|
+
b`
|
166
|
+
${_(z)}
|
167
|
+
`
|
168
|
+
];
|
169
|
+
a = H([
|
170
|
+
h("cv-icon-button-toggle")
|
171
|
+
], a);
|
172
|
+
const q = a;
|
173
|
+
export {
|
174
|
+
a as CovalentIconButtonToggle,
|
175
|
+
q as default
|
176
|
+
};
|
package/index.d.ts
CHANGED
@@ -17,6 +17,7 @@ export * from './expansion-panel/expansion-panel-item';
|
|
17
17
|
export * from './formfield/formfield';
|
18
18
|
export * from './icon/icon';
|
19
19
|
export * from './icon-button/icon-button';
|
20
|
+
export * from './icon-button-toggle/icon-button-toggle';
|
20
21
|
export * from './icon-checkbox/icon-check-toggle';
|
21
22
|
export * from './icon-radio/icon-radio-toggle';
|
22
23
|
export * from './linear-progress/linear-progress';
|
package/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../libs/components/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../libs/components/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC"}
|
package/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./action-ribbon.js"),t=require("./alert.js"),r=require("./app-shell.js"),n=require("./badge.js"),o=require("./button.js"),a=require("./checkbox.js"),i=require("./card.js"),u=require("./chip-099110a3.js"),l=require("./chip-set.js"),c=require("./circular-progress.js"),b=require("./code-snippet.js"),C=require("./dialog-82b03745.js"),p=require("./drawer.js"),s=require("./empty-state.js"),v=require("./expansion-panel.js"),d=require("./expansion-panel-item.js"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./action-ribbon.js"),t=require("./alert.js"),r=require("./app-shell.js"),n=require("./badge.js"),o=require("./button.js"),a=require("./checkbox.js"),i=require("./card.js"),u=require("./chip-099110a3.js"),l=require("./chip-set.js"),c=require("./circular-progress.js"),b=require("./code-snippet.js"),C=require("./dialog-82b03745.js"),p=require("./drawer.js"),s=require("./empty-state.js"),v=require("./expansion-panel.js"),d=require("./expansion-panel-item.js"),g=require("./formfield.js"),q=require("./icon.js"),m=require("./icon-button.js"),P=require("./icon-button-toggle.js"),y=require("./icon-check-toggle.js"),f=require("./icon-radio-toggle.js"),j=require("./linear-progress.js"),O=require("./check-list-item.js"),T=require("./list.js"),S=require("./list-item.js"),I=require("./nav-list-item.js"),h=require("./radio-list-item.js"),L=require("./menu.js"),x=require("./radio.js"),B=require("./select.js"),k=require("./side-sheet.js"),R=require("./slider.js"),A=require("./slider-range.js"),F=require("./snackbar.js"),w=require("./status-header.js"),E=require("./status-header-item.js"),H=require("./switch.js"),D=require("./tab.js"),M=require("./tab-bar.js"),N=require("./textarea.js"),_=require("./textfield.js"),z=require("./text-lockup.js"),G=require("./toolbar.js"),J=require("./tooltip.js"),K=require("./top-app-bar.js"),Q=require("./top-app-bar-fixed.js"),U=require("./tree-list.js"),V=require("./tree-list-item.js"),W=require("./typography.js");require("./query-assigned-elements-f623705d.js");require("./utils-a8190a39.js");require("./observer-a096ab43.js");require("./foundation-e980aa3d.js");require("./tslib.es6-98719205.js");require("./foundation-e830bd94.js");require("./class-map-b5efe8da.js");require("./property-57f6f6fe.js");require("./query-680f1868.js");require("./mwc-drawer-base-798b11f8.js");require("./inert.esm-2cee6f2e.js");require("./base-element-58a3f9ea.js");require("./mwc-icon-f87639bc.js");require("./ripple-handlers-5d5b21db.js");require("./state-0974a8e5.js");require("./style-map-88d2563f.js");require("./aria-property-849c8816.js");require("./event-options-3f5eb195.js");require("./if-defined-f1c45245.js");require("./mwc-checkbox-base-3d8c9549.js");require("./form-element-c553d6f5.js");require("./mwc-checkbox.css-b3434429.js");require("./keyboard-39125691.js");require("./_commonjsHelpers-2367a3a2.js");require("./query-assigned-nodes-99eae71d.js");require("./mwc-radio-base-913e02e2.js");require("./mwc-radio.css-4e140252.js");require("./mwc-list-item-base-297d86b0.js");require("./list-item-bb932090.js");require("./mwc-list-base-400b00e2.js");require("./mwc-menu-base-c75ca473.js");require("./mwc-line-ripple-directive-a6b39a3c.js");require("./mwc-slider.css-c7107d94.js");require("./directive-helpers-0ce1f995.js");require("./mwc-tab-base-f28722aa.js");require("./textfield-11525c88.js");require("./mwc-top-app-bar-base-aec60f27.js");require("./top-app-bar-a531c1b4.js");Object.defineProperty(exports,"CovalentActionRibbon",{enumerable:!0,get:()=>e.CovalentActionRibbon});Object.defineProperty(exports,"CovalentAlert",{enumerable:!0,get:()=>t.CovalentAlert});Object.defineProperty(exports,"CovalentAppShell",{enumerable:!0,get:()=>r.CovalentAppShell});Object.defineProperty(exports,"CovalentBadge",{enumerable:!0,get:()=>n.CovalentBadge});Object.defineProperty(exports,"CovalentButton",{enumerable:!0,get:()=>o.CovalentButton});Object.defineProperty(exports,"CovalentCheckbox",{enumerable:!0,get:()=>a.CovalentCheckbox});Object.defineProperty(exports,"CovalentCard",{enumerable:!0,get:()=>i.CovalentCard});Object.defineProperty(exports,"CovalentChip",{enumerable:!0,get:()=>u.CovalentChip});Object.defineProperty(exports,"CovalentChipSet",{enumerable:!0,get:()=>l.CovalentChipSet});Object.defineProperty(exports,"CovalentCircularProgress",{enumerable:!0,get:()=>c.CovalentCircularProgress});Object.defineProperty(exports,"CovalentCodeSnippet",{enumerable:!0,get:()=>b.CovalentCodeSnippet});Object.defineProperty(exports,"CovalentDialog",{enumerable:!0,get:()=>C.CovalentDialog});Object.defineProperty(exports,"CovalentDrawer",{enumerable:!0,get:()=>p.CovalentDrawer});Object.defineProperty(exports,"CovalentEmptyState",{enumerable:!0,get:()=>s.CovalentEmptyState});Object.defineProperty(exports,"CovalentExpansionPanel",{enumerable:!0,get:()=>v.CovalentExpansionPanel});Object.defineProperty(exports,"CovalentExpansionPanelItem",{enumerable:!0,get:()=>d.CovalentExpansionPanelItem});Object.defineProperty(exports,"CovalentFormfield",{enumerable:!0,get:()=>g.CovalentFormfield});Object.defineProperty(exports,"CovalentIcon",{enumerable:!0,get:()=>q.CovalentIcon});Object.defineProperty(exports,"CovalentIconButton",{enumerable:!0,get:()=>m.CovalentIconButton});Object.defineProperty(exports,"CovalentIconButtonToggle",{enumerable:!0,get:()=>P.CovalentIconButtonToggle});Object.defineProperty(exports,"CovalentIconCheckToggle",{enumerable:!0,get:()=>y.CovalentIconCheckToggle});Object.defineProperty(exports,"CovalentIconRadioToggle",{enumerable:!0,get:()=>f.CovalentIconRadioToggle});Object.defineProperty(exports,"CovalentLinearProgress",{enumerable:!0,get:()=>j.CovalentLinearProgress});Object.defineProperty(exports,"CovalentCheckListItem",{enumerable:!0,get:()=>O.CovalentCheckListItem});Object.defineProperty(exports,"CovalentList",{enumerable:!0,get:()=>T.CovalentList});Object.defineProperty(exports,"CovalentListItem",{enumerable:!0,get:()=>S.CovalentListItem});Object.defineProperty(exports,"CovalentNavRailListItem",{enumerable:!0,get:()=>I.CovalentNavRailListItem});Object.defineProperty(exports,"CovalentRadioListItem",{enumerable:!0,get:()=>h.CovalentRadioListItem});Object.defineProperty(exports,"CovalentMenu",{enumerable:!0,get:()=>L.CovalentMenu});Object.defineProperty(exports,"CovalentRadio",{enumerable:!0,get:()=>x.CovalentRadio});Object.defineProperty(exports,"CovalentSelect",{enumerable:!0,get:()=>B.CovalentSelect});Object.defineProperty(exports,"CovalentSideSheet",{enumerable:!0,get:()=>k.CovalentSideSheet});Object.defineProperty(exports,"CovalentSlider",{enumerable:!0,get:()=>R.CovalentSlider});Object.defineProperty(exports,"CovalentSliderRange",{enumerable:!0,get:()=>A.CovalentSliderRange});Object.defineProperty(exports,"CovalentSnackbar",{enumerable:!0,get:()=>F.CovalentSnackbar});Object.defineProperty(exports,"CovalentStatusHeader",{enumerable:!0,get:()=>w.CovalentStatusHeader});Object.defineProperty(exports,"CovalentStatusHeaderItem",{enumerable:!0,get:()=>E.CovalentStatusHeaderItem});Object.defineProperty(exports,"CovalentSwitch",{enumerable:!0,get:()=>H.CovalentSwitch});Object.defineProperty(exports,"CovalentTab",{enumerable:!0,get:()=>D.CovalentTab});Object.defineProperty(exports,"CovalentTabBar",{enumerable:!0,get:()=>M.CovalentTabBar});Object.defineProperty(exports,"CovalentTextArea",{enumerable:!0,get:()=>N.CovalentTextArea});Object.defineProperty(exports,"CovalentTextField",{enumerable:!0,get:()=>_.CovalentTextField});Object.defineProperty(exports,"CovalentTextLockup",{enumerable:!0,get:()=>z.CovalentTextLockup});Object.defineProperty(exports,"CovalentToolbar",{enumerable:!0,get:()=>G.CovalentToolbar});Object.defineProperty(exports,"CovalentTooltip",{enumerable:!0,get:()=>J.CovalentTooltip});Object.defineProperty(exports,"CovalentTopAppBar",{enumerable:!0,get:()=>K.CovalentTopAppBar});Object.defineProperty(exports,"CovalentTopAppBarFixed",{enumerable:!0,get:()=>Q.CovalentTopAppBarFixed});Object.defineProperty(exports,"CovalentTreeList",{enumerable:!0,get:()=>U.CovalentTreeList});Object.defineProperty(exports,"CovalentTreeListItem",{enumerable:!0,get:()=>V.CovalentTreeListItem});Object.defineProperty(exports,"CovalentTypography",{enumerable:!0,get:()=>W.CovalentTypography});
|
package/index.mjs
CHANGED
@@ -9,44 +9,45 @@ import { C as oo } from "./chip-897bf7e9.mjs";
|
|
9
9
|
import { CovalentChipSet as ro } from "./chip-set.mjs";
|
10
10
|
import { CovalentCircularProgress as po } from "./circular-progress.mjs";
|
11
11
|
import { CovalentCodeSnippet as ao } from "./code-snippet.mjs";
|
12
|
-
import { C as
|
12
|
+
import { C as lo } from "./dialog-c9dbe94d.mjs";
|
13
13
|
import { CovalentDrawer as Co } from "./drawer.mjs";
|
14
14
|
import { CovalentEmptyState as fo } from "./empty-state.mjs";
|
15
15
|
import { CovalentExpansionPanel as so } from "./expansion-panel.mjs";
|
16
16
|
import { CovalentExpansionPanelItem as co } from "./expansion-panel-item.mjs";
|
17
|
-
import { CovalentFormfield as
|
17
|
+
import { CovalentFormfield as go } from "./formfield.mjs";
|
18
18
|
import { CovalentIcon as ho } from "./icon.mjs";
|
19
|
-
import { CovalentIconButton as
|
20
|
-
import {
|
21
|
-
import {
|
22
|
-
import {
|
23
|
-
import {
|
24
|
-
import {
|
25
|
-
import {
|
26
|
-
import {
|
27
|
-
import {
|
28
|
-
import {
|
29
|
-
import {
|
30
|
-
import {
|
31
|
-
import {
|
32
|
-
import {
|
33
|
-
import {
|
34
|
-
import {
|
35
|
-
import {
|
36
|
-
import {
|
37
|
-
import {
|
38
|
-
import {
|
39
|
-
import {
|
40
|
-
import {
|
41
|
-
import {
|
19
|
+
import { CovalentIconButton as uo } from "./icon-button.mjs";
|
20
|
+
import { CovalentIconButtonToggle as Bo } from "./icon-button-toggle.mjs";
|
21
|
+
import { CovalentIconCheckToggle as Ro } from "./icon-check-toggle.mjs";
|
22
|
+
import { CovalentIconRadioToggle as Po } from "./icon-radio-toggle.mjs";
|
23
|
+
import { CovalentLinearProgress as Eo } from "./linear-progress.mjs";
|
24
|
+
import { CovalentCheckListItem as wo } from "./check-list-item.mjs";
|
25
|
+
import { CovalentList as Ho } from "./list.mjs";
|
26
|
+
import { CovalentListItem as No } from "./list-item.mjs";
|
27
|
+
import { CovalentNavRailListItem as qo } from "./nav-list-item.mjs";
|
28
|
+
import { CovalentRadioListItem as Go } from "./radio-list-item.mjs";
|
29
|
+
import { CovalentMenu as Ko } from "./menu.mjs";
|
30
|
+
import { CovalentRadio as Qo } from "./radio.mjs";
|
31
|
+
import { CovalentSelect as Vo } from "./select.mjs";
|
32
|
+
import { CovalentSideSheet as Xo } from "./side-sheet.mjs";
|
33
|
+
import { CovalentSlider as Zo } from "./slider.mjs";
|
34
|
+
import { CovalentSliderRange as $o } from "./slider-range.mjs";
|
35
|
+
import { CovalentSnackbar as tt } from "./snackbar.mjs";
|
36
|
+
import { CovalentStatusHeader as et } from "./status-header.mjs";
|
37
|
+
import { CovalentStatusHeaderItem as mt } from "./status-header-item.mjs";
|
38
|
+
import { CovalentSwitch as nt } from "./switch.mjs";
|
39
|
+
import { CovalentTab as it } from "./tab.mjs";
|
40
|
+
import { CovalentTabBar as xt } from "./tab-bar.mjs";
|
41
|
+
import { CovalentTextArea as vt } from "./textarea.mjs";
|
42
|
+
import { CovalentTextField as Tt } from "./textfield.mjs";
|
42
43
|
import { CovalentTextLockup as dt } from "./text-lockup.mjs";
|
43
|
-
import { CovalentToolbar as
|
44
|
-
import { CovalentTooltip as
|
45
|
-
import { CovalentTopAppBar as
|
46
|
-
import { CovalentTopAppBarFixed as
|
47
|
-
import { CovalentTreeList as
|
48
|
-
import { CovalentTreeListItem as
|
49
|
-
import { CovalentTypography as
|
44
|
+
import { CovalentToolbar as gt } from "./toolbar.mjs";
|
45
|
+
import { CovalentTooltip as ht } from "./tooltip.mjs";
|
46
|
+
import { CovalentTopAppBar as ut } from "./top-app-bar.mjs";
|
47
|
+
import { CovalentTopAppBarFixed as Bt } from "./top-app-bar-fixed.mjs";
|
48
|
+
import { CovalentTreeList as Rt } from "./tree-list.mjs";
|
49
|
+
import { CovalentTreeListItem as Pt } from "./tree-list-item.mjs";
|
50
|
+
import { CovalentTypography as Et } from "./typography.mjs";
|
50
51
|
import "./query-assigned-elements-4a39219d.mjs";
|
51
52
|
import "./utils-dc65fdc9.mjs";
|
52
53
|
import "./observer-be7b92e2.mjs";
|
@@ -92,47 +93,48 @@ export {
|
|
92
93
|
U as CovalentBadge,
|
93
94
|
W as CovalentButton,
|
94
95
|
_ as CovalentCard,
|
95
|
-
|
96
|
+
wo as CovalentCheckListItem,
|
96
97
|
Y as CovalentCheckbox,
|
97
98
|
oo as CovalentChip,
|
98
99
|
ro as CovalentChipSet,
|
99
100
|
po as CovalentCircularProgress,
|
100
101
|
ao as CovalentCodeSnippet,
|
101
|
-
|
102
|
+
lo as CovalentDialog,
|
102
103
|
Co as CovalentDrawer,
|
103
104
|
fo as CovalentEmptyState,
|
104
105
|
so as CovalentExpansionPanel,
|
105
106
|
co as CovalentExpansionPanelItem,
|
106
|
-
|
107
|
+
go as CovalentFormfield,
|
107
108
|
ho as CovalentIcon,
|
108
|
-
|
109
|
-
|
110
|
-
Ro as
|
111
|
-
Po as
|
112
|
-
|
113
|
-
Ho as
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
Vo as
|
120
|
-
Xo as
|
121
|
-
Zo as
|
122
|
-
$o as
|
123
|
-
tt as
|
124
|
-
et as
|
125
|
-
mt as
|
126
|
-
nt as
|
127
|
-
|
128
|
-
xt as
|
129
|
-
vt as
|
109
|
+
uo as CovalentIconButton,
|
110
|
+
Bo as CovalentIconButtonToggle,
|
111
|
+
Ro as CovalentIconCheckToggle,
|
112
|
+
Po as CovalentIconRadioToggle,
|
113
|
+
Eo as CovalentLinearProgress,
|
114
|
+
Ho as CovalentList,
|
115
|
+
No as CovalentListItem,
|
116
|
+
Ko as CovalentMenu,
|
117
|
+
qo as CovalentNavRailListItem,
|
118
|
+
Qo as CovalentRadio,
|
119
|
+
Go as CovalentRadioListItem,
|
120
|
+
Vo as CovalentSelect,
|
121
|
+
Xo as CovalentSideSheet,
|
122
|
+
Zo as CovalentSlider,
|
123
|
+
$o as CovalentSliderRange,
|
124
|
+
tt as CovalentSnackbar,
|
125
|
+
et as CovalentStatusHeader,
|
126
|
+
mt as CovalentStatusHeaderItem,
|
127
|
+
nt as CovalentSwitch,
|
128
|
+
it as CovalentTab,
|
129
|
+
xt as CovalentTabBar,
|
130
|
+
vt as CovalentTextArea,
|
131
|
+
Tt as CovalentTextField,
|
130
132
|
dt as CovalentTextLockup,
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
133
|
+
gt as CovalentToolbar,
|
134
|
+
ht as CovalentTooltip,
|
135
|
+
ut as CovalentTopAppBar,
|
136
|
+
Bt as CovalentTopAppBarFixed,
|
137
|
+
Rt as CovalentTreeList,
|
138
|
+
Pt as CovalentTreeListItem,
|
139
|
+
Et as CovalentTypography
|
138
140
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@covalent/components",
|
3
|
-
"version": "8.
|
3
|
+
"version": "8.9.0",
|
4
4
|
"description": "a catalog of material components for covalent",
|
5
5
|
"main": "./index.js",
|
6
6
|
"module": "./index.mjs",
|
@@ -111,6 +111,11 @@
|
|
111
111
|
"import": "./icon-button.mjs",
|
112
112
|
"require": "./icon-button.js"
|
113
113
|
},
|
114
|
+
"./icon-button-toggle": {
|
115
|
+
"types": "./icon-button-toggle/icon-button-toggle.d.ts",
|
116
|
+
"import": "./icon-button-toggle.mjs",
|
117
|
+
"require": "./icon-button-toggle.js"
|
118
|
+
},
|
114
119
|
"./icon-check-toggle": {
|
115
120
|
"types": "./icon-checkbox/icon-checkbox.d.ts",
|
116
121
|
"import": "./icon-checkbox.mjs",
|