@fluid-topics/ft-toggle 0.3.23

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/README.md ADDED
@@ -0,0 +1,19 @@
1
+ A toggle component
2
+
3
+ ## Install
4
+
5
+ ```shell
6
+ npm install @fluid-topics/ft-toggle
7
+ yarn add @fluid-topics/ft-toggle
8
+ ```
9
+
10
+ ## Usage
11
+
12
+ ```typescript
13
+ import { html } from "lit"
14
+ import "@fluid-topics/ft-toggle"
15
+
16
+ function render() {
17
+ return html`<ft-toggle checked>Toggle me</ft-toggle>`
18
+ }
19
+ ```
@@ -0,0 +1,8 @@
1
+ export declare const FtToggleCssVariables: {
2
+ textColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
3
+ onColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
4
+ offColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
5
+ handleColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
6
+ };
7
+ export declare const styles: import("lit").CSSResult;
8
+ //# sourceMappingURL=ft-toggle.css.d.ts.map
@@ -0,0 +1,62 @@
1
+ import { designSystemVariables, FtCssVariableFactory } from "@fluid-topics/ft-wc-utils";
2
+ import { css } from "lit";
3
+ export const FtToggleCssVariables = {
4
+ textColor: FtCssVariableFactory.extend("--ft-toggle-text-color", designSystemVariables.colorOnSurfaceHigh),
5
+ onColor: FtCssVariableFactory.extend("--ft-toggle-on-color", designSystemVariables.colorPrimary),
6
+ offColor: FtCssVariableFactory.create("--ft-toggle-off-color", "COLOR", "#e0e0e0"),
7
+ handleColor: FtCssVariableFactory.extend("--ft-toggle-handle-color", designSystemVariables.colorOnPrimary),
8
+ };
9
+ // language=CSS
10
+ export const styles = css `
11
+ .ft-toggle {
12
+ cursor: pointer;
13
+ position: relative;
14
+ display: flex;
15
+ align-items: center;
16
+ gap: 8px;
17
+ color: ${FtToggleCssVariables.textColor};
18
+ }
19
+
20
+ .ft-toggle.ft-toggle--disabled {
21
+ cursor: default;
22
+ }
23
+
24
+ .ft-toggle.ft-toggle--disabled .ft-toggle-background {
25
+ opacity: .3;
26
+ }
27
+
28
+
29
+ input {
30
+ display: none;
31
+ }
32
+
33
+ .ft-toggle-background {
34
+ background-color: ${FtToggleCssVariables.offColor};
35
+ border-radius: 1.25rem;
36
+ width: 44px;
37
+ height: 24px;
38
+ display: flex;
39
+ align-items: center;
40
+ }
41
+
42
+ .ft-toggle--checked .ft-toggle-background {
43
+ background-color: ${FtToggleCssVariables.onColor};
44
+ }
45
+
46
+ .ft-toggle-handle {
47
+ background-color: ${FtToggleCssVariables.handleColor};
48
+ border-radius: 1.25rem;
49
+ width: 20px;
50
+ height: 20px;
51
+ margin-left: 2px;
52
+ -webkit-transition: all .2s ease-out;
53
+ -moz-transition: all .2s ease-out;
54
+ -o-transition: all .2s ease-out;
55
+ transition: all .2s ease-out;
56
+ }
57
+
58
+ .ft-toggle--checked .ft-toggle-handle {
59
+ margin-left: 22px;
60
+ }
61
+ `;
62
+ //# sourceMappingURL=ft-toggle.css.js.map
@@ -0,0 +1,11 @@
1
+ import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
2
+ import { FtToggleProperties } from "./ft-toggle.properties";
3
+ export declare class FtToggle extends FtLitElement implements FtToggleProperties {
4
+ static elementDefinitions: ElementDefinitionsMap;
5
+ static styles: import("lit").CSSResult;
6
+ checked: boolean;
7
+ disabled: boolean;
8
+ protected render(): import("lit-html").TemplateResult<1>;
9
+ private onChange;
10
+ }
11
+ //# sourceMappingURL=ft-toggle.d.ts.map
@@ -0,0 +1,56 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { html } from "lit";
8
+ import { property } from "lit/decorators.js";
9
+ import { FtLitElement } from "@fluid-topics/ft-wc-utils";
10
+ import { classMap } from "lit/directives/class-map.js";
11
+ import { styles } from "./ft-toggle.css";
12
+ import { FtTypography } from "@fluid-topics/ft-typography";
13
+ export class FtToggle extends FtLitElement {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.checked = false;
17
+ this.disabled = false;
18
+ }
19
+ render() {
20
+ const classes = {
21
+ "ft-toggle": true,
22
+ "ft-toggle--checked": this.checked,
23
+ "ft-toggle--disabled": this.disabled,
24
+ };
25
+ return html `
26
+ <label class="${classMap(classes)}" for="toggle-input">
27
+ <input type="checkbox" class="ft-toggle-input" id="toggle-input"
28
+ ?checked=${this.checked}
29
+ ?disabled=${this.disabled}
30
+ @change=${this.onChange}>
31
+ <div class="ft-toggle-background">
32
+ <div class="ft-toggle-handle"></div>
33
+ </div>
34
+ <ft-typography variant="body2">
35
+ <slot></slot>
36
+ </ft-typography>
37
+ </label>
38
+ `;
39
+ }
40
+ onChange(event) {
41
+ event.stopPropagation();
42
+ this.checked = event.target.checked;
43
+ this.dispatchEvent(new CustomEvent("change", { detail: this.checked }));
44
+ }
45
+ }
46
+ FtToggle.elementDefinitions = {
47
+ "ft-typography": FtTypography,
48
+ };
49
+ FtToggle.styles = styles;
50
+ __decorate([
51
+ property({ type: Boolean, reflect: true })
52
+ ], FtToggle.prototype, "checked", void 0);
53
+ __decorate([
54
+ property({ type: Boolean })
55
+ ], FtToggle.prototype, "disabled", void 0);
56
+ //# sourceMappingURL=ft-toggle.js.map
@@ -0,0 +1,178 @@
1
+ !function(t,i,e,o,n){const s=i.FtCssVariableFactory.extend("--ft-toggle-text-color",i.designSystemVariables.colorOnSurfaceHigh),r=i.FtCssVariableFactory.extend("--ft-toggle-on-color",i.designSystemVariables.colorPrimary),h=i.FtCssVariableFactory.create("--ft-toggle-off-color","COLOR","#e0e0e0"),l=i.FtCssVariableFactory.extend("--ft-toggle-handle-color",i.designSystemVariables.colorOnPrimary),a=e.css`
2
+ .ft-toggle {
3
+ cursor: pointer;
4
+ position: relative;
5
+ display: flex;
6
+ align-items: center;
7
+ gap: 8px;
8
+ color: ${s};
9
+ }
10
+
11
+ .ft-toggle.ft-toggle--disabled {
12
+ cursor: default;
13
+ }
14
+
15
+ .ft-toggle.ft-toggle--disabled .ft-toggle-background {
16
+ opacity: .3;
17
+ }
18
+
19
+
20
+ input {
21
+ display: none;
22
+ }
23
+
24
+ .ft-toggle-background {
25
+ background-color: ${h};
26
+ border-radius: 1.25rem;
27
+ width: 44px;
28
+ height: 24px;
29
+ display: flex;
30
+ align-items: center;
31
+ }
32
+
33
+ .ft-toggle--checked .ft-toggle-background {
34
+ background-color: ${r};
35
+ }
36
+
37
+ .ft-toggle-handle {
38
+ background-color: ${l};
39
+ border-radius: 1.25rem;
40
+ width: 20px;
41
+ height: 20px;
42
+ margin-left: 2px;
43
+ -webkit-transition: all .2s ease-out;
44
+ -moz-transition: all .2s ease-out;
45
+ -o-transition: all .2s ease-out;
46
+ transition: all .2s ease-out;
47
+ }
48
+
49
+ .ft-toggle--checked .ft-toggle-handle {
50
+ margin-left: 22px;
51
+ }
52
+ `
53
+ /**
54
+ * @license
55
+ * Copyright 2017 Google LLC
56
+ * SPDX-License-Identifier: BSD-3-Clause
57
+ */;var f;const p=window,g=p.trustedTypes,y=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,c=`lit$${(Math.random()+"").slice(9)}$`,d="?"+c,u=`<${d}>`,$=document,v=(t="")=>$.createComment(t),b=t=>null===t||"object"!=typeof t&&"function"!=typeof t,m=Array.isArray,x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,w=/-->/g,z=/>/g,k=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),_=/'/g,A=/"/g,N=/^(?:script|style|textarea|title)$/i,O=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),S=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),E=new WeakMap,U=$.createTreeWalker($,129,null,!1),C=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=x;for(let i=0;i<e;i++){const e=t[i];let h,l,a=-1,f=0;for(;f<e.length&&(r.lastIndex=f,l=r.exec(e),null!==l);)f=r.lastIndex,r===x?"!--"===l[1]?r=w:void 0!==l[1]?r=z:void 0!==l[2]?(N.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=k):void 0!==l[3]&&(r=k):r===k?">"===l[0]?(r=null!=n?n:x,a=-1):void 0===l[1]?a=-2:(a=r.lastIndex-l[2].length,h=l[1],r=void 0===l[3]?k:'"'===l[3]?A:_):r===A||r===_?r=k:r===w||r===z?r=x:(r=k,n=void 0);const p=r===k&&t[i+1].startsWith("/>")?" ":"";s+=r===x?e+u:a>=0?(o.push(h),e.slice(0,a)+"$lit$"+e.slice(a)+c+p):e+c+(-2===a?(o.push(void 0),i):p)}const h=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(h):h,o]};class I{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,h=this.parts,[l,a]=C(t,i);if(this.el=I.createElement(l,e),U.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=U.nextNode())&&h.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(c)){const e=a[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(c),i=/([.?@])?(.*)/.exec(e);h.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?W:"?"===i[1]?B:"@"===i[1]?H:G})}else h.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(N.test(o.tagName)){const t=o.textContent.split(c),i=t.length-1;if(i>0){o.textContent=g?g.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],v()),U.nextNode(),h.push({type:2,index:++n});o.append(t[i],v())}}}else if(8===o.nodeType)if(o.data===d)h.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(c,t+1));)h.push({type:7,index:n}),t+=c.length-1}n++}}static createElement(t,i){const e=$.createElement("template");return e.innerHTML=t,e}}function M(t,i,e=t,o){var n,s,r,h;if(i===S)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const a=b(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==a&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===a?l=void 0:(l=new a(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(h=e)._$Co)&&void 0!==r?r:h._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=M(t,l._$AS(t,i.values),l,o)),i}class T{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:$).importNode(e,!0);U.currentNode=n;let s=U.nextNode(),r=0,h=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new R(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new K(s,this,t)),this.u.push(i),l=o[++h]}r!==(null==l?void 0:l.index)&&(s=U.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class R{constructor(t,i,e,o){var n;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=M(this,t,i),b(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==S&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>m(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==j&&b(this._$AH)?this._$AA.nextSibling.data=t:this.T($.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=I.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new T(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=E.get(t.strings);return void 0===i&&E.set(t.strings,i=new I(t)),i}k(t){m(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new R(this.O(v()),this.O(v()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class G{constructor(t,i,e,o,n){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=j}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=M(this,t,i,0),s=!b(t)||t!==this._$AH&&t!==S,s&&(this._$AH=t);else{const o=t;let r,h;for(t=n[0],r=0;r<n.length-1;r++)h=M(this,o[e+r],i,r),h===S&&(h=this._$AH[r]),s||(s=!b(h)||h!==this._$AH[r]),h===j?t=j:t!==j&&(t+=(null!=h?h:"")+n[r+1]),this._$AH[r]=h}s&&!o&&this.j(t)}j(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class W extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===j?void 0:t}}const Z=g?g.emptyScript:"";class B extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==j?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class H extends G{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=M(this,t,i,0))&&void 0!==e?e:j)===S)return;const o=this._$AH,n=t===j&&o!==j||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==j&&(o===j||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class K{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const L=p.litHtmlPolyfillSupport;null==L||L(I,R),(null!==(f=p.litHtmlVersions)&&void 0!==f?f:p.litHtmlVersions=[]).push("2.4.0");
58
+ /**
59
+ * @license
60
+ * Copyright 2020 Google LLC
61
+ * SPDX-License-Identifier: BSD-3-Clause
62
+ */
63
+ const F=Symbol.for(""),q=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t._$litStatic$},D=t=>({_$litStatic$:t,r:F}),J=new Map,P=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],h=[];let l,a=0,f=!1;for(;a<o;){for(l=i[a];a<o&&void 0!==(s=e[a],n=q(s));)l+=n+i[++a],f=!0;h.push(s),r.push(l),a++}if(a===o&&r.push(i[o]),f){const t=r.join("$$lit$$");void 0===(i=J.get(t))&&(r.raw=r,J.set(t,i=r)),e=h}return t(i,...e)})(O);var Q;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Q||(Q={}));const V=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),X=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),Y={fontFamily:X,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},tt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",V),it=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",Y.fontSize,"20px"),et=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",Y.fontWeight,"normal"),ot=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",Y.letterSpacing,"0.15px"),nt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",Y.lineHeight,"1.2"),st=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",Y.textTransform,"inherit"),rt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",V),ht=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",Y.fontSize,"14px"),lt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",Y.fontWeight,"normal"),at=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",Y.letterSpacing,"0.105px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",Y.lineHeight,"1.7"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",Y.textTransform,"inherit"),gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",X),yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",Y.fontSize,"16px"),ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",Y.fontWeight,"600"),dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",Y.letterSpacing,"0.144px"),ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",Y.lineHeight,"1.5"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",Y.textTransform,"inherit"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",X),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",Y.fontSize,"14px"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",Y.fontWeight,"normal"),xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",Y.letterSpacing,"0.098px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",Y.lineHeight,"1.7"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",Y.textTransform,"inherit"),kt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",X),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",Y.fontSize,"16px"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",Y.fontWeight,"normal"),Nt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",Y.letterSpacing,"0.496px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",Y.lineHeight,"1.5"),St=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",Y.textTransform,"inherit"),jt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",X),Et=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",Y.fontSize,"14px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",Y.fontWeight,"normal"),Ct=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",Y.letterSpacing,"0.252px"),It=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",Y.lineHeight,"1.4"),Mt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",Y.textTransform,"inherit"),Tt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",X),Rt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",Y.fontSize,"12px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",Y.fontWeight,"normal"),Wt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",Y.letterSpacing,"0.396px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",Y.lineHeight,"1.33"),Bt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",Y.textTransform,"inherit"),Ht=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",X),Kt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",Y.fontSize,"10px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",Y.fontWeight,"normal"),Ft=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",Y.letterSpacing,"0.33px"),qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",Y.lineHeight,"1.6"),Dt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",Y.textTransform,"inherit"),Jt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",X),Pt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",Y.fontSize,"10px"),Qt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",Y.fontWeight,"normal"),Vt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",Y.letterSpacing,"1.5px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",Y.lineHeight,"1.6"),Yt=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",Y.textTransform,"uppercase"),ti=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",X),ii=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",Y.fontSize,"14px"),ei=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",Y.fontWeight,"600"),oi=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",Y.letterSpacing,"1.246px"),ni=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",Y.lineHeight,"1.15"),si=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",Y.textTransform,"uppercase"),ri=e.css`
64
+ .ft-typography--title {
65
+ font-family: ${tt};
66
+ font-size: ${it};
67
+ font-weight: ${et};
68
+ letter-spacing: ${ot};
69
+ line-height: ${nt};
70
+ text-transform: ${st};
71
+ }
72
+ `,hi=e.css`
73
+ .ft-typography--title-dense {
74
+ font-family: ${rt};
75
+ font-size: ${ht};
76
+ font-weight: ${lt};
77
+ letter-spacing: ${at};
78
+ line-height: ${ft};
79
+ text-transform: ${pt};
80
+ }
81
+ `,li=e.css`
82
+ .ft-typography--subtitle1 {
83
+ font-family: ${gt};
84
+ font-size: ${yt};
85
+ font-weight: ${ct};
86
+ letter-spacing: ${dt};
87
+ line-height: ${ut};
88
+ text-transform: ${$t};
89
+ }
90
+ `,ai=e.css`
91
+ .ft-typography--subtitle2 {
92
+ font-family: ${vt};
93
+ font-size: ${bt};
94
+ font-weight: ${mt};
95
+ letter-spacing: ${xt};
96
+ line-height: ${wt};
97
+ text-transform: ${zt};
98
+ }
99
+
100
+ `,fi=e.css`
101
+ .ft-typography--body1 {
102
+ font-family: ${kt};
103
+ font-size: ${_t};
104
+ font-weight: ${At};
105
+ letter-spacing: ${Nt};
106
+ line-height: ${Ot};
107
+ text-transform: ${St};
108
+ }
109
+ `,pi=e.css`
110
+ .ft-typography--body2 {
111
+ font-family: ${jt};
112
+ font-size: ${Et};
113
+ font-weight: ${Ut};
114
+ letter-spacing: ${Ct};
115
+ line-height: ${It};
116
+ text-transform: ${Mt};
117
+ }
118
+ `,gi=e.css`
119
+ .ft-typography--caption {
120
+ font-family: ${Tt};
121
+ font-size: ${Rt};
122
+ font-weight: ${Gt};
123
+ letter-spacing: ${Wt};
124
+ line-height: ${Zt};
125
+ text-transform: ${Bt};
126
+ }
127
+ `,yi=e.css`
128
+ .ft-typography--breadcrumb {
129
+ font-family: ${Ht};
130
+ font-size: ${Kt};
131
+ font-weight: ${Lt};
132
+ letter-spacing: ${Ft};
133
+ line-height: ${qt};
134
+ text-transform: ${Dt};
135
+ }
136
+ `,ci=e.css`
137
+ .ft-typography--overline {
138
+ font-family: ${Jt};
139
+ font-size: ${Pt};
140
+ font-weight: ${Qt};
141
+ letter-spacing: ${Vt};
142
+ line-height: ${Xt};
143
+ text-transform: ${Yt};
144
+ }
145
+ `,di=e.css`
146
+ .ft-typography--button {
147
+ font-family: ${ti};
148
+ font-size: ${ii};
149
+ font-weight: ${ei};
150
+ letter-spacing: ${oi};
151
+ line-height: ${ni};
152
+ text-transform: ${si};
153
+ }
154
+ `,ui=e.css`
155
+ .ft-typography {
156
+ vertical-align: inherit;
157
+ }
158
+ `;var $i=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(n=t[h])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class vi extends i.FtLitElement{constructor(){super(...arguments),this.variant=Q.body1}render(){return this.element?P`
159
+ <${D(this.element)}
160
+ class="ft-typography ft-typography--${this.variant}">
161
+ <slot></slot>
162
+ </${D(this.element)}>
163
+ `:P`
164
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
165
+ `}}vi.styles=[ri,hi,li,ai,fi,pi,gi,yi,ci,di,ui],$i([o.property()],vi.prototype,"element",void 0),$i([o.property()],vi.prototype,"variant",void 0),i.customElement("ft-typography")(vi);var bi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(n=t[h])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class mi extends i.FtLitElement{constructor(){super(...arguments),this.checked=!1,this.disabled=!1}render(){const t={"ft-toggle":!0,"ft-toggle--checked":this.checked,"ft-toggle--disabled":this.disabled};return e.html`
166
+ <label class="${n.classMap(t)}" for="toggle-input">
167
+ <input type="checkbox" class="ft-toggle-input" id="toggle-input"
168
+ ?checked=${this.checked}
169
+ ?disabled=${this.disabled}
170
+ @change=${this.onChange}>
171
+ <div class="ft-toggle-background">
172
+ <div class="ft-toggle-handle"></div>
173
+ </div>
174
+ <ft-typography variant="body2">
175
+ <slot></slot>
176
+ </ft-typography>
177
+ </label>
178
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}}mi.elementDefinitions={"ft-typography":vi},mi.styles=a,bi([o.property({type:Boolean,reflect:!0})],mi.prototype,"checked",void 0),bi([o.property({type:Boolean})],mi.prototype,"disabled",void 0),i.customElement("ft-toggle")(mi),t.FtToggle=mi,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap);
@@ -0,0 +1,263 @@
1
+ !function(t){
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
+ * This code may only be used under the BSD style license found at
6
+ * http://polymer.github.io/LICENSE.txt
7
+ * The complete set of authors may be found at
8
+ * http://polymer.github.io/AUTHORS.txt
9
+ * The complete set of contributors may be found at
10
+ * http://polymer.github.io/CONTRIBUTORS.txt
11
+ * Code distributed by Google as part of the polymer project is also
12
+ * subject to an additional IP rights grant found at
13
+ * http://polymer.github.io/PATENTS.txt
14
+ *
15
+ * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
+ */
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const h={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(r,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(s.set(r,h),h.standInClass=c);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),d(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,r=o._getDefinition(e);return r?d(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){r.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):u(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const v=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ot){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
18
+ /**
19
+ * @license
20
+ * Copyright 2017 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */const i=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function o(t){return(e,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,o):i(t,e)
23
+ /**
24
+ * @license
25
+ * Copyright 2021 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */}var r;null===(r=window.HTMLSlotElement)||void 0===r||r.prototype.assignedElements;const n=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
28
+ /**
29
+ * @license
30
+ * Copyright 2019 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */
33
+ const s=window,a=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),h=new WeakMap;class c{constructor(t,e,i){if(this._$cssResult$=!0,i!==l)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(a&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=h.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&h.set(e,t))}return t}toString(){return this.cssText}}const p=t=>new c("string"==typeof t?t:t+"",void 0,l),f=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new c(i,t,l)},u=(t,e)=>{a?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=s.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},d=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return p(e)})(t):t
34
+ /**
35
+ * @license
36
+ * Copyright 2017 Google LLC
37
+ * SPDX-License-Identifier: BSD-3-Clause
38
+ */;var y;const g=window,v=g.trustedTypes,b=v?v.emptyScript:"",m=g.reactiveElementPolyfillSupport,x={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},w=(t,e)=>e!==t&&(e==e||t==t),$={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:w};class O extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=$){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const r=this[t];this[e]=o,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(d(t))}else void 0!==t&&e.push(d(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return u(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=$){var o;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:x).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,r=o._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=o.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:x;this._$El=r,this[r]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||w)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
39
+ /**
40
+ * @license
41
+ * Copyright 2017 Google LLC
42
+ * SPDX-License-Identifier: BSD-3-Clause
43
+ */
44
+ var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==m||m({ReactiveElement:O}),(null!==(y=g.reactiveElementVersions)&&void 0!==y?y:g.reactiveElementVersions=[]).push("1.4.1");const N=window,E=N.trustedTypes,C=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,R=`lit$${(Math.random()+"").slice(9)}$`,M="?"+R,k=`<${M}>`,U=document,F=(t="")=>U.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,z=/-->/g,P=/>/g,_=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),B=/'/g,T=/"/g,W=/^(?:script|style|textarea|title)$/i,D=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),H=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),I=new WeakMap,Z=U.createTreeWalker(U,129,null,!1),V=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",s=j;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===j?"!--"===l[1]?s=z:void 0!==l[1]?s=P:void 0!==l[2]?(W.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=_):void 0!==l[3]&&(s=_):s===_?">"===l[0]?(s=null!=r?r:j,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?_:'"'===l[3]?T:B):s===T||s===B?s=_:s===z||s===P?s=j:(s=_,r=void 0);const p=s===_&&t[e+1].startsWith("/>")?" ":"";n+=s===j?i+k:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+R+p):i+R+(-2===h?(o.push(void 0),e):p)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==C?C.createHTML(a):a,o]};class J{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const s=t.length-1,a=this.parts,[l,h]=V(t,e);if(this.el=J.createElement(l,i),Z.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Z.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(R)){const i=h[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(R),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?Y:"?"===e[1]?et:"@"===e[1]?it:Q})}else a.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(W.test(o.tagName)){const t=o.textContent.split(R),e=t.length-1;if(e>0){o.textContent=E?E.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],F()),Z.nextNode(),a.push({type:2,index:++r});o.append(t[e],F())}}}else if(8===o.nodeType)if(o.data===M)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(R,t+1));)a.push({type:7,index:r}),t+=R.length-1}r++}}static createElement(t,e){const i=U.createElement("template");return i.innerHTML=t,i}}function q(t,e,i=t,o){var r,n,s,a;if(e===H)return e;let l=void 0!==o?null===(r=i._$Co)||void 0===r?void 0:r[o]:i._$Cl;const h=A(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=q(t,l._$AS(t,e.values),l,o)),e}class X{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:U).importNode(i,!0);Z.currentNode=r;let n=Z.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new G(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new ot(n,this,t)),this.u.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(n=Z.nextNode(),s++)}return r}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class G{constructor(t,e,i,o){var r;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=q(this,t,e),A(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==H&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>L(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==K&&A(this._$AH)?this._$AA.nextSibling.data=t:this.T(U.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=J.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.p(i);else{const t=new X(r,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=I.get(t.strings);return void 0===e&&I.set(t.strings,e=new J(t)),e}k(t){L(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new G(this.O(F()),this.O(F()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Q{constructor(t,e,i,o,r){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=q(this,t,e,0),n=!A(t)||t!==this._$AH&&t!==H,n&&(this._$AH=t);else{const o=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=q(this,o[i+s],e,s),a===H&&(a=this._$AH[s]),n||(n=!A(a)||a!==this._$AH[s]),a===K?t=K:t!==K&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}n&&!o&&this.j(t)}j(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends Q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===K?void 0:t}}const tt=E?E.emptyScript:"";class et extends Q{constructor(){super(...arguments),this.type=4}j(t){t&&t!==K?this.element.setAttribute(this.name,tt):this.element.removeAttribute(this.name)}}class it extends Q{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=q(this,t,e,0))&&void 0!==i?i:K)===H)return;const o=this._$AH,r=t===K&&o!==K||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==K&&(o===K||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ot{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}}const rt=N.litHtmlPolyfillSupport;null==rt||rt(J,G),(null!==(S=N.litHtmlVersions)&&void 0!==S?S:N.litHtmlVersions=[]).push("2.4.0");
45
+ /**
46
+ * @license
47
+ * Copyright 2017 Google LLC
48
+ * SPDX-License-Identifier: BSD-3-Clause
49
+ */
50
+ var nt,st;class at extends O{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=n._$litPart$;if(void 0===s){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;n._$litPart$=s=new G(e.insertBefore(F(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return H}}at.finalized=!0,at._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:at});const lt=globalThis.litElementPolyfillSupport;null==lt||lt({LitElement:at}),(null!==(st=globalThis.litElementVersions)&&void 0!==st?st:globalThis.litElementVersions=[]).push("3.2.2");class ht{static create(t,e,i){let o=t=>p(null!=t?t:i),r=f`var(${p(t)}, ${o(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>f`var(${p(t)}, ${o(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),r=f`var(${p(t)}, ${o(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>f`var(${p(t)}, ${o(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):p(null!=e?e:t.defaultValue),o=f`var(${p(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>f`var(${p(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}const ct={colorPrimary:ht.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ht.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ht.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ht.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ht.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ht.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ht.create("--ft-color-error","COLOR","#B00020"),colorOutline:ht.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ht.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ht.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ht.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ht.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ht.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ht.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ht.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ht.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ht.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ht.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ht.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ht.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ht.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ht.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ht.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ht.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ht.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ht.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ht.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ht.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ht.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ht.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ht.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ht.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ht.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ht.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ht.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ht.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ht.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ht.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ht.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ht.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ht.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ht.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ht.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ht.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ht.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ht.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ht.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ht.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ht.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ht.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ht.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ht.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ht.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ht.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ht.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ht.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ht.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ht.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ht.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ht.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ht.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ht.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
51
+ /**
52
+ * @license
53
+ * Copyright 2021 Google LLC
54
+ * SPDX-License-Identifier: BSD-3-Clause
55
+ */var pt,ft,ut=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class dt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const r=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return u(r,this.constructor.elementStyles),r}}}(at)){constructor(){super(...arguments),this.exportpartsDebouncer=new e(5)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),D`
56
+ ${t.map((t=>D`
57
+ <style>${t}</style>
58
+ `))}
59
+ ${this.getTemplate()}
60
+ `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,n,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(s=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}ut([o()],dt.prototype,"exportpartsPrefix",void 0),ut([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],dt.prototype,"exportpartsPrefixes",void 0),f`
61
+ .ft-no-text-select {
62
+ -webkit-touch-callout: none;
63
+ -webkit-user-select: none;
64
+ -khtml-user-select: none;
65
+ -moz-user-select: none;
66
+ -ms-user-select: none;
67
+ user-select: none;
68
+ }
69
+ `,f`
70
+ .ft-word-wrap {
71
+ white-space: normal;
72
+ word-wrap: break-word;
73
+ -ms-word-break: break-all;
74
+ word-break: break-all;
75
+ word-break: break-word;
76
+ -ms-hyphens: auto;
77
+ -moz-hyphens: auto;
78
+ -webkit-hyphens: auto;
79
+ hyphens: auto
80
+ }
81
+ `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ft=null===(pt=window.safari)||void 0===pt?void 0:pt.pushNotification)||void 0===ft||ft.toString());
82
+ /**
83
+ * @license
84
+ * Copyright 2017 Google LLC
85
+ * SPDX-License-Identifier: BSD-3-Clause
86
+ */
87
+ const yt=1;class gt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
88
+ /**
89
+ * @license
90
+ * Copyright 2018 Google LLC
91
+ * SPDX-License-Identifier: BSD-3-Clause
92
+ */const vt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends gt{constructor(t){var e;if(super(t),t.type!==yt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const r=t.element.classList;this.nt.forEach((t=>{t in e||(r.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.nt.add(t)):(r.remove(t),this.nt.delete(t)))}return H}}),bt=ht.extend("--ft-toggle-text-color",ct.colorOnSurfaceHigh),mt=ht.extend("--ft-toggle-on-color",ct.colorPrimary),xt=ht.create("--ft-toggle-off-color","COLOR","#e0e0e0"),wt=ht.extend("--ft-toggle-handle-color",ct.colorOnPrimary),$t=f`
93
+ .ft-toggle {
94
+ cursor: pointer;
95
+ position: relative;
96
+ display: flex;
97
+ align-items: center;
98
+ gap: 8px;
99
+ color: ${bt};
100
+ }
101
+
102
+ .ft-toggle.ft-toggle--disabled {
103
+ cursor: default;
104
+ }
105
+
106
+ .ft-toggle.ft-toggle--disabled .ft-toggle-background {
107
+ opacity: .3;
108
+ }
109
+
110
+
111
+ input {
112
+ display: none;
113
+ }
114
+
115
+ .ft-toggle-background {
116
+ background-color: ${xt};
117
+ border-radius: 1.25rem;
118
+ width: 44px;
119
+ height: 24px;
120
+ display: flex;
121
+ align-items: center;
122
+ }
123
+
124
+ .ft-toggle--checked .ft-toggle-background {
125
+ background-color: ${mt};
126
+ }
127
+
128
+ .ft-toggle-handle {
129
+ background-color: ${wt};
130
+ border-radius: 1.25rem;
131
+ width: 20px;
132
+ height: 20px;
133
+ margin-left: 2px;
134
+ -webkit-transition: all .2s ease-out;
135
+ -moz-transition: all .2s ease-out;
136
+ -o-transition: all .2s ease-out;
137
+ transition: all .2s ease-out;
138
+ }
139
+
140
+ .ft-toggle--checked .ft-toggle-handle {
141
+ margin-left: 22px;
142
+ }
143
+ `
144
+ /**
145
+ * @license
146
+ * Copyright 2020 Google LLC
147
+ * SPDX-License-Identifier: BSD-3-Clause
148
+ */,Ot=Symbol.for(""),St=t=>{if((null==t?void 0:t.r)===Ot)return null==t?void 0:t._$litStatic$},Nt=t=>({_$litStatic$:t,r:Ot}),Et=new Map,Ct=(t=>(e,...i)=>{const o=i.length;let r,n;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(n=i[h],r=St(n));)l+=r+e[++h],c=!0;a.push(n),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=Et.get(t))&&(s.raw=s,Et.set(t,e=s)),i=a}return t(e,...i)})(D);var Rt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Rt||(Rt={}));const Mt=ht.extend("--ft-typography-font-family",ct.titleFont),kt=ht.extend("--ft-typography-font-family",ct.contentFont),Ut={fontFamily:kt,fontSize:ht.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ht.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ht.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ht.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},Ft=ht.extend("--ft-typography-title-font-family",Mt),At=ht.extend("--ft-typography-title-font-size",Ut.fontSize,"20px"),Lt=ht.extend("--ft-typography-title-font-weight",Ut.fontWeight,"normal"),jt=ht.extend("--ft-typography-title-letter-spacing",Ut.letterSpacing,"0.15px"),zt=ht.extend("--ft-typography-title-line-height",Ut.lineHeight,"1.2"),Pt=ht.extend("--ft-typography-title-text-transform",Ut.textTransform,"inherit"),_t=ht.extend("--ft-typography-title-dense-font-family",Mt),Bt=ht.extend("--ft-typography-title-dense-font-size",Ut.fontSize,"14px"),Tt=ht.extend("--ft-typography-title-dense-font-weight",Ut.fontWeight,"normal"),Wt=ht.extend("--ft-typography-title-dense-letter-spacing",Ut.letterSpacing,"0.105px"),Dt=ht.extend("--ft-typography-title-dense-line-height",Ut.lineHeight,"1.7"),Ht=ht.extend("--ft-typography-title-dense-text-transform",Ut.textTransform,"inherit"),Kt=ht.extend("--ft-typography-subtitle1-font-family",kt),It=ht.extend("--ft-typography-subtitle1-font-size",Ut.fontSize,"16px"),Zt=ht.extend("--ft-typography-subtitle1-font-weight",Ut.fontWeight,"600"),Vt=ht.extend("--ft-typography-subtitle1-letter-spacing",Ut.letterSpacing,"0.144px"),Jt=ht.extend("--ft-typography-subtitle1-line-height",Ut.lineHeight,"1.5"),qt=ht.extend("--ft-typography-subtitle1-text-transform",Ut.textTransform,"inherit"),Xt=ht.extend("--ft-typography-subtitle2-font-family",kt),Gt=ht.extend("--ft-typography-subtitle2-font-size",Ut.fontSize,"14px"),Qt=ht.extend("--ft-typography-subtitle2-font-weight",Ut.fontWeight,"normal"),Yt=ht.extend("--ft-typography-subtitle2-letter-spacing",Ut.letterSpacing,"0.098px"),te=ht.extend("--ft-typography-subtitle2-line-height",Ut.lineHeight,"1.7"),ee=ht.extend("--ft-typography-subtitle2-text-transform",Ut.textTransform,"inherit"),ie=ht.extend("--ft-typography-body1-font-family",kt),oe=ht.extend("--ft-typography-body1-font-size",Ut.fontSize,"16px"),re=ht.extend("--ft-typography-body1-font-weight",Ut.fontWeight,"normal"),ne=ht.extend("--ft-typography-body1-letter-spacing",Ut.letterSpacing,"0.496px"),se=ht.extend("--ft-typography-body1-line-height",Ut.lineHeight,"1.5"),ae=ht.extend("--ft-typography-body1-text-transform",Ut.textTransform,"inherit"),le=ht.extend("--ft-typography-body2-font-family",kt),he=ht.extend("--ft-typography-body2-font-size",Ut.fontSize,"14px"),ce=ht.extend("--ft-typography-body2-font-weight",Ut.fontWeight,"normal"),pe=ht.extend("--ft-typography-body2-letter-spacing",Ut.letterSpacing,"0.252px"),fe=ht.extend("--ft-typography-body2-line-height",Ut.lineHeight,"1.4"),ue=ht.extend("--ft-typography-body2-text-transform",Ut.textTransform,"inherit"),de=ht.extend("--ft-typography-caption-font-family",kt),ye=ht.extend("--ft-typography-caption-font-size",Ut.fontSize,"12px"),ge=ht.extend("--ft-typography-caption-font-weight",Ut.fontWeight,"normal"),ve=ht.extend("--ft-typography-caption-letter-spacing",Ut.letterSpacing,"0.396px"),be=ht.extend("--ft-typography-caption-line-height",Ut.lineHeight,"1.33"),me=ht.extend("--ft-typography-caption-text-transform",Ut.textTransform,"inherit"),xe=ht.extend("--ft-typography-breadcrumb-font-family",kt),we=ht.extend("--ft-typography-breadcrumb-font-size",Ut.fontSize,"10px"),$e=ht.extend("--ft-typography-breadcrumb-font-weight",Ut.fontWeight,"normal"),Oe=ht.extend("--ft-typography-breadcrumb-letter-spacing",Ut.letterSpacing,"0.33px"),Se=ht.extend("--ft-typography-breadcrumb-line-height",Ut.lineHeight,"1.6"),Ne=ht.extend("--ft-typography-breadcrumb-text-transform",Ut.textTransform,"inherit"),Ee=ht.extend("--ft-typography-overline-font-family",kt),Ce=ht.extend("--ft-typography-overline-font-size",Ut.fontSize,"10px"),Re=ht.extend("--ft-typography-overline-font-weight",Ut.fontWeight,"normal"),Me=ht.extend("--ft-typography-overline-letter-spacing",Ut.letterSpacing,"1.5px"),ke=ht.extend("--ft-typography-overline-line-height",Ut.lineHeight,"1.6"),Ue=ht.extend("--ft-typography-overline-text-transform",Ut.textTransform,"uppercase"),Fe=ht.extend("--ft-typography-button-font-family",kt),Ae=ht.extend("--ft-typography-button-font-size",Ut.fontSize,"14px"),Le=ht.extend("--ft-typography-button-font-weight",Ut.fontWeight,"600"),je=ht.extend("--ft-typography-button-letter-spacing",Ut.letterSpacing,"1.246px"),ze=ht.extend("--ft-typography-button-line-height",Ut.lineHeight,"1.15"),Pe=ht.extend("--ft-typography-button-text-transform",Ut.textTransform,"uppercase"),_e=f`
149
+ .ft-typography--title {
150
+ font-family: ${Ft};
151
+ font-size: ${At};
152
+ font-weight: ${Lt};
153
+ letter-spacing: ${jt};
154
+ line-height: ${zt};
155
+ text-transform: ${Pt};
156
+ }
157
+ `,Be=f`
158
+ .ft-typography--title-dense {
159
+ font-family: ${_t};
160
+ font-size: ${Bt};
161
+ font-weight: ${Tt};
162
+ letter-spacing: ${Wt};
163
+ line-height: ${Dt};
164
+ text-transform: ${Ht};
165
+ }
166
+ `,Te=f`
167
+ .ft-typography--subtitle1 {
168
+ font-family: ${Kt};
169
+ font-size: ${It};
170
+ font-weight: ${Zt};
171
+ letter-spacing: ${Vt};
172
+ line-height: ${Jt};
173
+ text-transform: ${qt};
174
+ }
175
+ `,We=f`
176
+ .ft-typography--subtitle2 {
177
+ font-family: ${Xt};
178
+ font-size: ${Gt};
179
+ font-weight: ${Qt};
180
+ letter-spacing: ${Yt};
181
+ line-height: ${te};
182
+ text-transform: ${ee};
183
+ }
184
+
185
+ `,De=f`
186
+ .ft-typography--body1 {
187
+ font-family: ${ie};
188
+ font-size: ${oe};
189
+ font-weight: ${re};
190
+ letter-spacing: ${ne};
191
+ line-height: ${se};
192
+ text-transform: ${ae};
193
+ }
194
+ `,He=f`
195
+ .ft-typography--body2 {
196
+ font-family: ${le};
197
+ font-size: ${he};
198
+ font-weight: ${ce};
199
+ letter-spacing: ${pe};
200
+ line-height: ${fe};
201
+ text-transform: ${ue};
202
+ }
203
+ `,Ke=f`
204
+ .ft-typography--caption {
205
+ font-family: ${de};
206
+ font-size: ${ye};
207
+ font-weight: ${ge};
208
+ letter-spacing: ${ve};
209
+ line-height: ${be};
210
+ text-transform: ${me};
211
+ }
212
+ `,Ie=f`
213
+ .ft-typography--breadcrumb {
214
+ font-family: ${xe};
215
+ font-size: ${we};
216
+ font-weight: ${$e};
217
+ letter-spacing: ${Oe};
218
+ line-height: ${Se};
219
+ text-transform: ${Ne};
220
+ }
221
+ `,Ze=f`
222
+ .ft-typography--overline {
223
+ font-family: ${Ee};
224
+ font-size: ${Ce};
225
+ font-weight: ${Re};
226
+ letter-spacing: ${Me};
227
+ line-height: ${ke};
228
+ text-transform: ${Ue};
229
+ }
230
+ `,Ve=f`
231
+ .ft-typography--button {
232
+ font-family: ${Fe};
233
+ font-size: ${Ae};
234
+ font-weight: ${Le};
235
+ letter-spacing: ${je};
236
+ line-height: ${ze};
237
+ text-transform: ${Pe};
238
+ }
239
+ `,Je=f`
240
+ .ft-typography {
241
+ vertical-align: inherit;
242
+ }
243
+ `;var qe=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Xe extends dt{constructor(){super(...arguments),this.variant=Rt.body1}render(){return this.element?Ct`
244
+ <${Nt(this.element)}
245
+ class="ft-typography ft-typography--${this.variant}">
246
+ <slot></slot>
247
+ </${Nt(this.element)}>
248
+ `:Ct`
249
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
250
+ `}}Xe.styles=[_e,Be,Te,We,De,He,Ke,Ie,Ze,Ve,Je],qe([o()],Xe.prototype,"element",void 0),qe([o()],Xe.prototype,"variant",void 0),n("ft-typography")(Xe);var Ge=function(t,e,i,o){for(var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class Qe extends dt{constructor(){super(...arguments),this.checked=!1,this.disabled=!1}render(){const t={"ft-toggle":!0,"ft-toggle--checked":this.checked,"ft-toggle--disabled":this.disabled};return D`
251
+ <label class="${vt(t)}" for="toggle-input">
252
+ <input type="checkbox" class="ft-toggle-input" id="toggle-input"
253
+ ?checked=${this.checked}
254
+ ?disabled=${this.disabled}
255
+ @change=${this.onChange}>
256
+ <div class="ft-toggle-background">
257
+ <div class="ft-toggle-handle"></div>
258
+ </div>
259
+ <ft-typography variant="body2">
260
+ <slot></slot>
261
+ </ft-typography>
262
+ </label>
263
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}}Qe.elementDefinitions={"ft-typography":Xe},Qe.styles=$t,Ge([o({type:Boolean,reflect:!0})],Qe.prototype,"checked",void 0),Ge([o({type:Boolean})],Qe.prototype,"disabled",void 0),n("ft-toggle")(Qe),t.FtToggle=Qe,Object.defineProperty(t,"i",{value:!0})}({});
@@ -0,0 +1,5 @@
1
+ export interface FtToggleProperties {
2
+ checked: boolean;
3
+ disabled: boolean;
4
+ }
5
+ //# sourceMappingURL=ft-toggle.properties.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ft-toggle.properties.js.map
@@ -0,0 +1,2 @@
1
+ export * from "./ft-toggle";
2
+ //# sourceMappingURL=index.d.ts.map
package/build/index.js ADDED
@@ -0,0 +1,5 @@
1
+ import { customElement } from "@fluid-topics/ft-wc-utils";
2
+ import { FtToggle } from "./ft-toggle";
3
+ export * from "./ft-toggle";
4
+ customElement("ft-toggle")(FtToggle);
5
+ //# sourceMappingURL=index.js.map
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@fluid-topics/ft-toggle",
3
+ "version": "0.3.23",
4
+ "description": "A simple toggle component",
5
+ "keywords": [
6
+ "Lit"
7
+ ],
8
+ "author": "Fluid Topics <devtopics@antidot.net>",
9
+ "license": "ISC",
10
+ "main": "build/index.js",
11
+ "web": "build/ft-toggle.min.js",
12
+ "typings": "build/index",
13
+ "files": [
14
+ "build/**/*.ts",
15
+ "build/**/*.js"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
+ },
21
+ "dependencies": {
22
+ "@fluid-topics/ft-typography": "0.3.23",
23
+ "@fluid-topics/ft-wc-utils": "0.3.23",
24
+ "lit": "2.2.8"
25
+ },
26
+ "gitHead": "7fb0bb52d064423f63bfd9c36c5454d65aa890d6"
27
+ }