@fluid-topics/ft-checkbox 0.2.15 → 0.2.18
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.
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
23
|
*/
|
|
24
|
-
var
|
|
24
|
+
var $;m.elementDefinitions={},m.styles=e.css`
|
|
25
25
|
:host {
|
|
26
26
|
display: contents;
|
|
27
27
|
}
|
|
@@ -110,13 +110,13 @@ var x;m.elementDefinitions={},m.styles=e.css`
|
|
|
110
110
|
opacity: ${l};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`,r([o.property({type:Boolean})],m.prototype,"primary",void 0),r([o.property({type:Boolean})],m.prototype,"secondary",void 0),r([o.property({type:Boolean})],m.prototype,"unbounded",void 0),r([o.property({type:Boolean})],m.prototype,"activated",void 0),r([o.property({type:Boolean})],m.prototype,"selected",void 0),r([o.property({type:Boolean})],m.prototype,"disabled",void 0),r([o.state()],m.prototype,"hovered",void 0),r([o.state()],m.prototype,"focused",void 0),r([o.state()],m.prototype,"pressed",void 0),r([o.state()],m.prototype,"rippling",void 0),r([o.state()],m.prototype,"rippleSize",void 0),r([o.state()],m.prototype,"originX",void 0),r([o.state()],m.prototype,"originY",void 0),r([o.query(".ft-ripple")],m.prototype,"ripple",void 0),r([o.query(".ft-ripple--effect")],m.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(m);const
|
|
113
|
+
`,r([o.property({type:Boolean})],m.prototype,"primary",void 0),r([o.property({type:Boolean})],m.prototype,"secondary",void 0),r([o.property({type:Boolean})],m.prototype,"unbounded",void 0),r([o.property({type:Boolean})],m.prototype,"activated",void 0),r([o.property({type:Boolean})],m.prototype,"selected",void 0),r([o.property({type:Boolean})],m.prototype,"disabled",void 0),r([o.state()],m.prototype,"hovered",void 0),r([o.state()],m.prototype,"focused",void 0),r([o.state()],m.prototype,"pressed",void 0),r([o.state()],m.prototype,"rippling",void 0),r([o.state()],m.prototype,"rippleSize",void 0),r([o.state()],m.prototype,"originX",void 0),r([o.state()],m.prototype,"originY",void 0),r([o.query(".ft-ripple")],m.prototype,"ripple",void 0),r([o.query(".ft-ripple--effect")],m.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(m);const x=globalThis.trustedTypes,k=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,z="?"+w,A=`<${z}>`,_=document,C=(t="")=>_.createComment(t),S=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,B=/>/g,E=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,j=/'/g,T=/"/g,D=/^(?:script|style|textarea|title)$/i,I=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),U=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),G=new WeakMap,W=_.createTreeWalker(_,129,null,!1),Z=(t,i)=>{const e=t.length-1,o=[];let s,r=2===i?"<svg>":"",n=N;for(let i=0;i<e;i++){const e=t[i];let h,p,l=-1,a=0;for(;a<e.length&&(n.lastIndex=a,p=n.exec(e),null!==p);)a=n.lastIndex,n===N?"!--"===p[1]?n=O:void 0!==p[1]?n=B:void 0!==p[2]?(D.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=E):void 0!==p[3]&&(n=E):n===E?">"===p[0]?(n=null!=s?s:N,l=-1):void 0===p[1]?l=-2:(l=n.lastIndex-p[2].length,h=p[1],n=void 0===p[3]?E:'"'===p[3]?T:j):n===T||n===j?n=E:n===O||n===B?n=N:(n=E,s=void 0);const f=n===E&&t[i+1].startsWith("/>")?" ":"";r+=n===N?e+A:l>=0?(o.push(h),e.slice(0,l)+"$lit$"+e.slice(l)+w+f):e+w+(-2===l?(o.push(void 0),i):f)}const h=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==k?k.createHTML(h):h,o]};class F{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,r=0;const n=t.length-1,h=this.parts,[p,l]=Z(t,i);if(this.el=F.createElement(p,e),W.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=W.nextNode())&&h.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(w)){const e=l[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(w),i=/([.?@])?(.*)/.exec(e);h.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?X:"?"===i[1]?q:"@"===i[1]?J:L})}else h.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(D.test(o.tagName)){const t=o.textContent.split(w),i=t.length-1;if(i>0){o.textContent=x?x.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],C()),W.nextNode(),h.push({type:2,index:++s});o.append(t[i],C())}}}else if(8===o.nodeType)if(o.data===z)h.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(w,t+1));)h.push({type:7,index:s}),t+=w.length-1}s++}}static createElement(t,i){const e=_.createElement("template");return e.innerHTML=t,e}}function H(t,i,e=t,o){var s,r,n,h;if(i===U)return i;let p=void 0!==o?null===(s=e._$Cl)||void 0===s?void 0:s[o]:e._$Cu;const l=S(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==l&&(null===(r=null==p?void 0:p._$AO)||void 0===r||r.call(p,!1),void 0===l?p=void 0:(p=new l(t),p._$AT(t,e,o)),void 0!==o?(null!==(n=(h=e)._$Cl)&&void 0!==n?n:h._$Cl=[])[o]=p:e._$Cu=p),void 0!==p&&(i=H(t,p._$AS(t,i.values),p,o)),i}class K{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:_).importNode(e,!0);W.currentNode=s;let r=W.nextNode(),n=0,h=0,p=o[0];for(;void 0!==p;){if(n===p.index){let i;2===p.type?i=new P(r,r.nextSibling,this,t):1===p.type?i=new p.ctor(r,p.name,p.strings,this,t):6===p.type&&(i=new Q(r,this,t)),this.v.push(i),p=o[++h]}n!==(null==p?void 0:p.index)&&(r=W.nextNode(),n++)}return s}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class P{constructor(t,i,e,o){var s;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}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=H(this,t,i),S(t)?t===R||null==t||""===t?(this._$AH!==R&&this._$AR(),this._$AH=R):t!==this._$AH&&t!==U&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return M(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==R&&S(this._$AH)?this._$AA.nextSibling.data=t:this.k(_.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=F.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.m(e);else{const t=new K(s,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=G.get(t.strings);return void 0===i&&G.set(t.strings,i=new F(t)),i}S(t){M(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new P(this.M(C()),this.M(C()),this,this.options)):e=i[o],e._$AI(s),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._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class L{constructor(t,i,e,o,s){this.type=1,this._$AH=R,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let r=!1;if(void 0===s)t=H(this,t,i,0),r=!S(t)||t!==this._$AH&&t!==U,r&&(this._$AH=t);else{const o=t;let n,h;for(t=s[0],n=0;n<s.length-1;n++)h=H(this,o[e+n],i,n),h===U&&(h=this._$AH[n]),r||(r=!S(h)||h!==this._$AH[n]),h===R?t=R:t!==R&&(t+=(null!=h?h:"")+s[n+1]),this._$AH[n]=h}r&&!o&&this.C(t)}C(t){t===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class X extends L{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===R?void 0:t}}const Y=x?x.emptyScript:"";class q extends L{constructor(){super(...arguments),this.type=4}C(t){t&&t!==R?this.element.setAttribute(this.name,Y):this.element.removeAttribute(this.name)}}class J extends L{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=H(this,t,i,0))&&void 0!==e?e:R)===U)return;const o=this._$AH,s=t===R&&o!==R||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==R&&(o===R||s);s&&this.element.removeEventListener(this.name,this,o),r&&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 Q{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){H(this,t)}}const V=window.litHtmlPolyfillSupport;null==V||V(F,P),(null!==($=globalThis.litHtmlVersions)&&void 0!==$?$:globalThis.litHtmlVersions=[]).push("2.2.4");
|
|
114
114
|
/**
|
|
115
115
|
* @license
|
|
116
116
|
* Copyright 2020 Google LLC
|
|
117
117
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
118
118
|
*/
|
|
119
|
-
const tt=Symbol.for(""),it=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===tt)return null===(e=t)||void 0===e?void 0:e._$litStatic$},et=t=>({_$litStatic$:t,r:tt}),ot=new Map,st=(t=>(i,...e)=>{const o=e.length;let s,r;const n=[],h=[];let p,l=0,a=!1;for(;l<o;){for(p=i[l];l<o&&void 0!==(r=e[l],s=it(r));)p+=s+i[++l],a=!0;h.push(r),n.push(p),l++}if(l===o&&n.push(i[o]),a){const t=n.join("$$lit$$");void 0===(i=ot.get(t))&&(n.raw=n,ot.set(t,i=n)),e=h}return t(i,...e)})(I);var rt,nt=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(s=t[h])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};!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 ht=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),pt=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),lt={fontFamily:pt,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","
|
|
119
|
+
const tt=Symbol.for(""),it=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===tt)return null===(e=t)||void 0===e?void 0:e._$litStatic$},et=t=>({_$litStatic$:t,r:tt}),ot=new Map,st=(t=>(i,...e)=>{const o=e.length;let s,r;const n=[],h=[];let p,l=0,a=!1;for(;l<o;){for(p=i[l];l<o&&void 0!==(r=e[l],s=it(r));)p+=s+i[++l],a=!0;h.push(r),n.push(p),l++}if(l===o&&n.push(i[o]),a){const t=n.join("$$lit$$");void 0===(i=ot.get(t))&&(n.raw=n,ot.set(t,i=n)),e=h}return t(i,...e)})(I);var rt,nt=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(s=t[h])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};!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 ht=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),pt=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),lt={fontFamily:pt,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},at=i.FtCssVariable.extend("--ft-typography-title-font-family",ht),ft=i.FtCssVariable.extend("--ft-typography-title-font-size",lt.fontSize,"20px"),ct=i.FtCssVariable.extend("--ft-typography-title-font-weight",lt.fontWeight,"normal"),dt=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",lt.letterSpacing,"0.15px"),yt=i.FtCssVariable.extend("--ft-typography-title-line-height",lt.lineHeight,"1.2"),gt=i.FtCssVariable.extend("--ft-typography-title-text-transform",lt.textTransform,"inherit"),ut=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",ht),bt=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",lt.fontSize,"14px"),vt=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",lt.fontWeight,"normal"),mt=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",lt.letterSpacing,"0.105px"),$t=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",lt.lineHeight,"1.7"),xt=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",lt.textTransform,"inherit"),kt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",pt),wt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",lt.fontSize,"16px"),zt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",lt.fontWeight,"600"),At=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",lt.letterSpacing,"0.144px"),_t=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",lt.lineHeight,"1.5"),Ct=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",lt.textTransform,"inherit"),St=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",pt),Mt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",lt.fontSize,"14px"),Nt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",lt.fontWeight,"normal"),Ot=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",lt.letterSpacing,"0.098px"),Bt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",lt.lineHeight,"1.7"),Et=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",lt.textTransform,"inherit"),jt=i.FtCssVariable.extend("--ft-typography-body1-font-family",pt),Tt=i.FtCssVariable.extend("--ft-typography-body1-font-size",lt.fontSize,"16px"),Dt=i.FtCssVariable.extend("--ft-typography-body1-font-weight",lt.fontWeight,"normal"),It=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",lt.letterSpacing,"0.496px"),Ut=i.FtCssVariable.extend("--ft-typography-body1-line-height",lt.lineHeight,"1.5"),Rt=i.FtCssVariable.extend("--ft-typography-body1-text-transform",lt.textTransform,"inherit"),Gt=i.FtCssVariable.extend("--ft-typography-body2-font-family",pt),Wt=i.FtCssVariable.extend("--ft-typography-body2-font-size",lt.fontSize,"14px"),Zt=i.FtCssVariable.extend("--ft-typography-body2-font-weight",lt.fontWeight,"normal"),Ft=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",lt.letterSpacing,"0.252px"),Ht=i.FtCssVariable.extend("--ft-typography-body2-line-height",lt.lineHeight,"1.4"),Kt=i.FtCssVariable.extend("--ft-typography-body2-text-transform",lt.textTransform,"inherit"),Pt=i.FtCssVariable.extend("--ft-typography-caption-font-family",pt),Lt=i.FtCssVariable.extend("--ft-typography-caption-font-size",lt.fontSize,"12px"),Xt=i.FtCssVariable.extend("--ft-typography-caption-font-weight",lt.fontWeight,"normal"),Yt=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",lt.letterSpacing,"0.396px"),qt=i.FtCssVariable.extend("--ft-typography-caption-line-height",lt.lineHeight,"1.33"),Jt=i.FtCssVariable.extend("--ft-typography-caption-text-transform",lt.textTransform,"inherit"),Qt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",pt),Vt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",lt.fontSize,"10px"),ti=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",lt.fontWeight,"normal"),ii=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",lt.letterSpacing,"0.33px"),ei=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",lt.lineHeight,"1.6"),oi=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",lt.textTransform,"inherit"),si=i.FtCssVariable.extend("--ft-typography-overline-font-family",pt),ri=i.FtCssVariable.extend("--ft-typography-overline-font-size",lt.fontSize,"10px"),ni=i.FtCssVariable.extend("--ft-typography-overline-font-weight",lt.fontWeight,"normal"),hi=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",lt.letterSpacing,"1.5px"),pi=i.FtCssVariable.extend("--ft-typography-overline-line-height",lt.lineHeight,"1.6"),li=i.FtCssVariable.extend("--ft-typography-overline-text-transform",lt.textTransform,"uppercase"),ai=i.FtCssVariable.extend("--ft-typography-button-font-family",pt),fi=i.FtCssVariable.extend("--ft-typography-button-font-size",lt.fontSize,"14px"),ci=i.FtCssVariable.extend("--ft-typography-button-font-weight",lt.fontWeight,"600"),di=i.FtCssVariable.extend("--ft-typography-button-letter-spacing",lt.letterSpacing,"1.246px"),yi=i.FtCssVariable.extend("--ft-typography-button-line-height",lt.lineHeight,"1.15"),gi=i.FtCssVariable.extend("--ft-typography-button-text-transform",lt.textTransform,"uppercase"),ui=e.css`
|
|
120
120
|
.ft-typography--title {
|
|
121
121
|
font-family: ${at};
|
|
122
122
|
font-size: ${ft};
|
|
@@ -131,8 +131,8 @@ const tt=Symbol.for(""),it=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
131
131
|
font-size: ${bt};
|
|
132
132
|
font-weight: ${vt};
|
|
133
133
|
letter-spacing: ${mt};
|
|
134
|
-
line-height: ${
|
|
135
|
-
text-transform: ${
|
|
134
|
+
line-height: ${$t};
|
|
135
|
+
text-transform: ${xt};
|
|
136
136
|
}
|
|
137
137
|
`,vi=e.css`
|
|
138
138
|
.ft-typography--subtitle1 {
|
|
@@ -146,14 +146,14 @@ const tt=Symbol.for(""),it=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
146
146
|
`,mi=e.css`
|
|
147
147
|
.ft-typography--subtitle2 {
|
|
148
148
|
font-family: ${St};
|
|
149
|
-
font-size: ${
|
|
150
|
-
font-weight: ${
|
|
151
|
-
letter-spacing: ${
|
|
149
|
+
font-size: ${Mt};
|
|
150
|
+
font-weight: ${Nt};
|
|
151
|
+
letter-spacing: ${Ot};
|
|
152
152
|
line-height: ${Bt};
|
|
153
153
|
text-transform: ${Et};
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
`,$i=e.css`
|
|
157
157
|
.ft-typography--body1 {
|
|
158
158
|
font-family: ${jt};
|
|
159
159
|
font-size: ${Tt};
|
|
@@ -162,11 +162,11 @@ const tt=Symbol.for(""),it=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
162
162
|
line-height: ${Ut};
|
|
163
163
|
text-transform: ${Rt};
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
`,xi=e.css`
|
|
166
166
|
.ft-typography--body2 {
|
|
167
|
-
font-family: ${
|
|
168
|
-
font-size: ${
|
|
169
|
-
font-weight: ${
|
|
167
|
+
font-family: ${Gt};
|
|
168
|
+
font-size: ${Wt};
|
|
169
|
+
font-weight: ${Zt};
|
|
170
170
|
letter-spacing: ${Ft};
|
|
171
171
|
line-height: ${Ht};
|
|
172
172
|
text-transform: ${Kt};
|
|
@@ -214,11 +214,11 @@ const tt=Symbol.for(""),it=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
214
214
|
</${et(this.element)}>
|
|
215
215
|
`:st`
|
|
216
216
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
217
|
-
`}}_i.styles=[ui,bi,vi,mi
|
|
217
|
+
`}}_i.styles=[ui,bi,vi,mi,$i,xi,ki,wi,zi,Ai,e.css`
|
|
218
218
|
.ft-typography {
|
|
219
219
|
vertical-align: inherit;
|
|
220
220
|
}
|
|
221
|
-
`],nt([o.property()],_i.prototype,"element",void 0),nt([o.property()],_i.prototype,"variant",void 0),i.customElement("ft-typography")(_i);var Ci=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(s=t[h])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const Si={textColor:i.FtCssVariable.extend("--ft-checkbox-text-color",i.designSystemVariables.colorOnSurfaceHigh),colorPrimary:i.FtCssVariable.external(i.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:i.FtCssVariable.external(i.designSystemVariables.colorOnPrimary,"Design system"),borderColor:i.FtCssVariable.extend("--ft-checkbox-border-color",i.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:i.FtCssVariable.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system")};class
|
|
221
|
+
`],nt([o.property()],_i.prototype,"element",void 0),nt([o.property()],_i.prototype,"variant",void 0),i.customElement("ft-typography")(_i);var Ci=function(t,i,e,o){for(var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(s=t[h])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const Si={textColor:i.FtCssVariable.extend("--ft-checkbox-text-color",i.designSystemVariables.colorOnSurfaceHigh),colorPrimary:i.FtCssVariable.external(i.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:i.FtCssVariable.external(i.designSystemVariables.colorOnPrimary,"Design system"),borderColor:i.FtCssVariable.extend("--ft-checkbox-border-color",i.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:i.FtCssVariable.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system")};class Mi extends i.FtLitElement{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return e.html`
|
|
222
222
|
<label class="${s.classMap(t)}">
|
|
223
223
|
<div class="ft-checkbox--box-container">
|
|
224
224
|
<input type="checkbox"
|
|
@@ -243,7 +243,7 @@ const tt=Symbol.for(""),it=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
243
243
|
<slot></slot>
|
|
244
244
|
</ft-typography>
|
|
245
245
|
</label>
|
|
246
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var i;super.contentAvailableCallback(t),null===(i=this.ripple)||void 0===i||i.setupFor(this.container)}}
|
|
246
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var i;super.contentAvailableCallback(t),null===(i=this.ripple)||void 0===i||i.setupFor(this.container)}}Mi.elementDefinitions={"ft-ripple":m,"ft-typography":_i},Mi.styles=e.css`
|
|
247
247
|
* {
|
|
248
248
|
box-sizing: border-box;
|
|
249
249
|
}
|
|
@@ -320,4 +320,4 @@ const tt=Symbol.for(""),it=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)=
|
|
|
320
320
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
321
321
|
opacity: 1;
|
|
322
322
|
}
|
|
323
|
-
`,Ci([o.property()],
|
|
323
|
+
`,Ci([o.property()],Mi.prototype,"name",void 0),Ci([o.property({type:Boolean})],Mi.prototype,"checked",void 0),Ci([o.property({type:Boolean})],Mi.prototype,"indeterminate",void 0),Ci([o.property({type:Boolean})],Mi.prototype,"disabled",void 0),Ci([o.query(".ft-checkbox")],Mi.prototype,"container",void 0),Ci([o.query("ft-ripple")],Mi.prototype,"ripple",void 0),i.customElement("ft-checkbox")(Mi),t.FtCheckbox=Mi,t.FtCheckboxCssVariables=Si,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap);
|