@fluid-topics/ft-text-field 1.0.59 → 1.0.61
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/build/ft-text-field.css.js +9 -9
- package/build/ft-text-field.light.js +192 -183
- package/build/ft-text-field.min.js +199 -190
- package/package.json +7 -7
|
@@ -1,141 +1,150 @@
|
|
|
1
|
-
!function(t,e,i,
|
|
1
|
+
!function(t,o,e,i,r,a){
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var n;const
|
|
7
|
+
var n;const l=window,p=l.trustedTypes,f=p?p.createPolicy("lit-html",{createHTML:t=>t}):void 0,c="$lit$",s=`lit$${(Math.random()+"").slice(9)}$`,d="?"+s,h=`<${d}>`,g=document,y=()=>g.createComment(""),b=t=>null===t||"object"!=typeof t&&"function"!=typeof t,u=Array.isArray,m="[ \t\n\f\r]",x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,N=/>/g,v=RegExp(`>|${m}(?:([^\\s"'>=/]+)(${m}*=${m}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),S=/'/g,C=/"/g,w=/^(?:script|style|textarea|title)$/i,$=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),I=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),R=new WeakMap,W=g.createTreeWalker(g,129,null,!1),E=(t,o)=>{const e=t.length-1,i=[];let r,a=2===o?"<svg>":"",n=x;for(let o=0;o<e;o++){const e=t[o];let l,p,f=-1,d=0;for(;d<e.length&&(n.lastIndex=d,p=n.exec(e),null!==p);)d=n.lastIndex,n===x?"!--"===p[1]?n=O:void 0!==p[1]?n=N:void 0!==p[2]?(w.test(p[2])&&(r=RegExp("</"+p[2],"g")),n=v):void 0!==p[3]&&(n=v):n===v?">"===p[0]?(n=null!=r?r:x,f=-1):void 0===p[1]?f=-2:(f=n.lastIndex-p[2].length,l=p[1],n=void 0===p[3]?v:'"'===p[3]?C:S):n===C||n===S?n=v:n===O||n===N?n=x:(n=v,r=void 0);const g=n===v&&t[o+1].startsWith("/>")?" ":"";a+=n===x?e+h:f>=0?(i.push(l),e.slice(0,f)+c+e.slice(f)+s+g):e+s+(-2===f?(i.push(void 0),o):g)}const l=a+(t[e]||"<?>")+(2===o?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==f?f.createHTML(l):l,i]};class k{constructor({strings:t,_$litType$:o},e){let i;this.parts=[];let r=0,a=0;const n=t.length-1,l=this.parts,[f,h]=E(t,o);if(this.el=k.createElement(f,e),W.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(i=W.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const o of i.getAttributeNames())if(o.endsWith(c)||o.startsWith(s)){const e=h[a++];if(t.push(o),void 0!==e){const t=i.getAttribute(e.toLowerCase()+c).split(s),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:r,name:o[2],strings:t,ctor:"."===o[1]?D:"?"===o[1]?B:"@"===o[1]?A:z})}else l.push({type:6,index:r})}for(const o of t)i.removeAttribute(o)}if(w.test(i.tagName)){const t=i.textContent.split(s),o=t.length-1;if(o>0){i.textContent=p?p.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],y()),W.nextNode(),l.push({type:2,index:++r});i.append(t[o],y())}}}else if(8===i.nodeType)if(i.data===d)l.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(s,t+1));)l.push({type:7,index:r}),t+=s.length-1}r++}}static createElement(t,o){const e=g.createElement("template");return e.innerHTML=t,e}}function L(t,o,e=t,i){var r,a,n,l;if(o===I)return o;let p=void 0!==i?null===(r=e._$Co)||void 0===r?void 0:r[i]:e._$Cl;const f=b(o)?void 0:o._$litDirective$;return(null==p?void 0:p.constructor)!==f&&(null===(a=null==p?void 0:p._$AO)||void 0===a||a.call(p,!1),void 0===f?p=void 0:(p=new f(t),p._$AT(t,e,i)),void 0!==i?(null!==(n=(l=e)._$Co)&&void 0!==n?n:l._$Co=[])[i]=p:e._$Cl=p),void 0!==p&&(o=L(t,p._$AS(t,o.values),p,i)),o}class K{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var o;const{el:{content:e},parts:i}=this._$AD,r=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:g).importNode(e,!0);W.currentNode=r;let a=W.nextNode(),n=0,l=0,p=i[0];for(;void 0!==p;){if(n===p.index){let o;2===p.type?o=new Z(a,a.nextSibling,this,t):1===p.type?o=new p.ctor(a,p.name,p.strings,this,t):6===p.type&&(o=new H(a,this,t)),this._$AV.push(o),p=i[++l]}n!==(null==p?void 0:p.index)&&(a=W.nextNode(),n++)}return r}v(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}class Z{constructor(t,o,e,i){var r;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cp=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===(null==t?void 0:t.nodeType)&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=L(this,t,o),b(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==I&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>u(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==U&&b(this._$AH)?this._$AA.nextSibling.data=t:this.$(g.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=k.createElement(i.h,this.options)),i);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===r)this._$AH.v(e);else{const t=new K(r,this),o=t.u(this.options);t.v(e),this.$(o),this._$AH=t}}_$AC(t){let o=R.get(t.strings);return void 0===o&&R.set(t.strings,o=new k(t)),o}T(t){u(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,i=0;for(const r of t)i===o.length?o.push(e=new Z(this.k(y()),this.k(y()),this,this.options)):e=o[i],e._$AI(r),i++;i<o.length&&(this._$AR(e&&e._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,o){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$Cp=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}}class z{constructor(t,o,e,i,r){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,e,i){const r=this.strings;let a=!1;if(void 0===r)t=L(this,t,o,0),a=!b(t)||t!==this._$AH&&t!==I,a&&(this._$AH=t);else{const i=t;let n,l;for(t=r[0],n=0;n<r.length-1;n++)l=L(this,i[e+n],o,n),l===I&&(l=this._$AH[n]),a||(a=!b(l)||l!==this._$AH[n]),l===U?t=U:t!==U&&(t+=(null!=l?l:"")+r[n+1]),this._$AH[n]=l}a&&!i&&this.j(t)}j(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class D extends z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===U?void 0:t}}const F=p?p.emptyScript:"";class B extends z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==U?this.element.setAttribute(this.name,F):this.element.removeAttribute(this.name)}}class A extends z{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){var e;if((t=null!==(e=L(this,t,o,0))&&void 0!==e?e:U)===I)return;const i=this._$AH,r=t===U&&i!==U||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==U&&(i===U||r);r&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class H{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){L(this,t)}}const G=l.litHtmlPolyfillSupport;null==G||G(k,Z),(null!==(n=l.litHtmlVersions)&&void 0!==n?n:l.litHtmlVersions=[]).push("2.7.3");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2018 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const
|
|
13
|
+
const j=Symbol.for(""),P=t=>{if((null==t?void 0:t.r)===j)return null==t?void 0:t._$litStatic$},M=t=>({_$litStatic$:t,r:j}),_=new Map,Y=(t=>(o,...e)=>{const i=e.length;let r,a;const n=[],l=[];let p,f=0,c=!1;for(;f<i;){for(p=o[f];f<i&&void 0!==(a=e[f],r=P(a));)p+=r+o[++f],c=!0;f!==i&&l.push(a),n.push(p),f++}if(f===i&&n.push(o[i]),c){const t=n.join("$$lit$$");void 0===(o=_.get(t))&&(n.raw=n,_.set(t,o=n)),e=l}return t(o,...e)})($);
|
|
14
14
|
/**
|
|
15
15
|
* @license
|
|
16
16
|
* Copyright 2020 Google LLC
|
|
17
17
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
|
-
*/var L;!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"}(L||(L={}));const q=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),X=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),Y={fontFamily:X,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},J=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",q),Q=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",Y.fontSize,"20px"),tt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",Y.fontWeight,"normal"),et=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",Y.letterSpacing,"0.15px"),it=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",Y.lineHeight,"1.2"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",Y.textTransform,"inherit"),st=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",q),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",Y.fontSize,"14px"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",Y.fontWeight,"normal"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",Y.letterSpacing,"0.105px"),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",Y.lineHeight,"1.7"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",Y.textTransform,"inherit"),pt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",X),ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",Y.fontSize,"16px"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",Y.fontWeight,"600"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",Y.letterSpacing,"0.144px"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",Y.lineHeight,"1.5"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",Y.textTransform,"inherit"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",X),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",Y.fontSize,"14px"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",Y.fontWeight,"normal"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",Y.letterSpacing,"0.098px"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",Y.lineHeight,"1.7"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",Y.textTransform,"inherit"),wt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",X),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",Y.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",Y.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",Y.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",Y.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",Y.textTransform,"inherit")},kt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",X),zt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",Y.fontSize,"14px"),St=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",Y.fontWeight,"normal"),Et=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",Y.letterSpacing,"0.252px"),It=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",Y.lineHeight,"1.4"),Nt=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",Y.textTransform,"inherit"),jt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",X),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",Y.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",Y.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",Y.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",Y.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",Y.textTransform,"inherit")},Ct=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",X),Ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",Y.fontSize,"10px"),At=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",Y.fontWeight,"normal"),Bt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",Y.letterSpacing,"0.33px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",Y.lineHeight,"1.6"),Zt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",Y.textTransform,"inherit"),_t=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",X),Ut=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",Y.fontSize,"10px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",Y.fontWeight,"normal"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",Y.letterSpacing,"1.5px"),Rt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",Y.lineHeight,"1.6"),Wt=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",Y.textTransform,"uppercase"),Vt=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",X),Ft=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",Y.fontSize,"14px"),Kt=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",Y.fontWeight,"600"),Ht=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",Y.letterSpacing,"1.246px"),Pt=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",Y.lineHeight,"1.15"),Gt=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",Y.textTransform,"uppercase"),Lt=i.css`
|
|
18
|
+
*/var T;!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",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(T||(T={}));const V=t=>"string"==typeof t?e.unsafeCSS(t):t;class q{static create(t,o,i,r){const a=t=>V(null!=t?t:r),n=e.css`var(${V(t)}, ${a(r)})`;return n.name=t,n.description=t,n.category=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${V(t)}, ${a(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,o,i,r){const a=t=>i.get(null!=t?t:r),n=e.css`var(${V(t)}, ${a(r)})`;return n.name=t,n.description=o,n.category=i.category,n.fallbackVariable=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${V(t)}, ${a(o)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),n}static external(t,o){const i=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):V(null!=o?o:t.lastResortDefaultValue()),r=e.css`var(${V(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=i,r.get=o=>e.css`var(${V(t.name)}, ${i(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const X={colorWhite:q.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:q.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:q.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:q.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:q.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:q.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:q.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:q.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:q.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:q.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:q.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:q.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:q.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:q.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:q.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:q.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:q.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:q.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:q.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:q.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:q.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:q.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:q.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:q.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:q.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:q.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:q.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:q.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:q.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:q.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:q.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:q.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:q.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:q.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:q.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:q.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:q.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:q.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:q.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:q.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:q.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:q.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:q.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:q.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:q.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:q.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:q.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:q.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:q.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:q.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:q.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:q.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:q.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:q.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:q.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:q.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:q.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:q.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:q.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:q.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:q.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:q.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:q.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:q.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:q.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:q.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:q.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:q.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:q.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:q.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:q.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:q.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:q.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:q.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:q.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:q.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:q.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:q.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:q.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:q.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:q.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:q.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:q.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:q.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:q.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:q.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:q.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:q.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:q.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:q.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:q.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:q.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:q.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:q.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:q.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:q.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:q.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:q.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:q.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:q.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:q.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:q.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:q.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:q.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:q.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:q.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:q.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:q.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:q.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:q.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:q.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:q.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:q.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:q.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:q.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:q.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:q.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:q.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:q.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:q.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:q.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:q.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:q.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:q.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:q.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:q.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:q.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:q.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:q.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:q.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:q.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:q.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:q.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:q.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:q.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:q.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:q.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:q.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:q.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:q.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:q.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:q.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:q.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:q.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:q.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:q.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:q.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:q.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:q.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:q.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:q.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:q.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:q.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:q.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:q.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:q.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:q.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:q.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:q.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:q.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:q.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:q.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:q.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:q.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:q.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:q.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:q.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:q.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:q.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:q.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:q.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:q.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:q.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:q.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:q.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:q.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:q.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:q.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:q.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:q.create("--ft-icon-size-6","","SIZE","48px"),opacity0:q.create("--ft-opacity-0","","NUMBER","0"),opacity8:q.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:q.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:q.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:q.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:q.create("--ft-opacity-80","","NUMBER","0.8")},J={display:{fontFamily:q.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:q.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:q.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:q.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:q.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:q.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:q.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:q.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:q.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:q.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:q.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:q.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:q.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:q.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:q.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:q.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:q.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:q.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:q.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:q.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:q.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:q.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:q.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:q.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:q.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:q.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:q.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:q.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:q.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:q.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:q.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:q.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:q.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:q.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:q.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:q.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:q.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:q.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:q.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:q.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:q.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:q.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:q.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:q.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:q.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:q.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:q.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:q.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:q.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:q.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:q.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:q.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:q.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:q.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:q.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:q.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:q.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:q.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:q.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:q.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:q.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:q.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:q.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:q.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:q.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:q.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:q.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:q.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:q.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:q.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:q.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:q.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:q.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:q.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:q.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:q.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:q.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:q.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:q.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:q.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:q.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:q.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:q.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:q.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:q.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:q.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:q.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:q.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:q.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:q.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:q.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:q.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:q.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:q.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:q.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:q.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:q.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:q.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:q.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:q.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:q.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:q.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:q.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:q.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:q.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:q.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:q.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:q.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:q.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:q.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:q.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:q.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Q={backgroundActionPrimary:q.extend("--ft-background-action-primary","Used as backgorund of primary action components.",X.colorBrand0),backgroundErrorPrimary:q.extend("--ft-background-error-primary","Used as background of error components.",X.colorRed0),backgroundErrorSubtle:q.extend("--ft-background-error-subtle","Used as background of subtle error components.",X.colorRed10),backgroundInfoPrimary:q.extend("--ft-background-info-primary","Used as background of information components.",X.colorCyan200),backgroundInfoSubtle:q.extend("--ft-background-info-subtle","Used as background of subtle information components.",X.colorCyan10),backgroundWarningPrimary:q.extend("--ft-background-warning-primary","Used as background of warning components.",X.colorOrange300),backgroundWarningSubtle:q.extend("--ft-background-warning-subtle","Used as background of subtle information components.",X.colorOrange10),backgroundSuccessPrimary:q.extend("--ft-background-success-primary","Used as background of success components.",X.colorGreen200),backgroundSuccessSubtle:q.extend("--ft-background-success-subtle","Used as background of subtle success components.",X.colorGreen10),backgroundGlobalSurface:q.extend("--ft-background-global-surface","Used as app background.",X.colorWhite),backgroundGlobalOnSurface:q.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",X.colorGray10),backgroundGlobalOnSurfaceDark:q.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",X.colorGray30),contentActionPrimary:q.extend("--ft-content-action-primary","Used on label of primary action on light surface.",X.colorBrand0),contentWarningPrimary:q.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",X.colorOrange300),contentWarningIconOnly:q.extend("--ft-content-warning-icon-only","Used on warning status icons alone",X.colorOrange0),contentErrorPrimary:q.extend("--ft-content-error-primary","Used on label of error messages on light surface.",X.colorRed0),contentErrorIconOnly:q.extend("--ft-content-error-icon-only","Used on error status icons alone",X.colorRed0),contentInfoPrimary:q.extend("--ft-content-info-primary","Used on label of information messages on light surface.",X.colorCyan200),contentInfoIconOnly:q.extend("--ft-content-info-icon-only","Used on info status icons alone",X.colorCyan0),contentSuccessIconOnly:q.extend("--ft-content-success-icon-only","Used on success status icons alone",X.colorGreen0),contentSuccessPrimary:q.extend("--ft-content-success-primary","Used on label of success messages on light surface.",X.colorGreen200),contentGlobalPrimary:q.extend("--ft-content-global-primary","Used for main content on the page.",X.colorGray500),contentGlobalSecondary:q.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",X.colorGray200),contentGlobalSubtle:q.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",X.colorGray0),contentGlobalOnColor:q.extend("--ft-content-global-on-color","Used for content on a dominant color.",X.colorWhite),borderActionPrimary:q.extend("--ft-border-action-primary","Used as border for primary action components.",X.colorBrand0),borderActionFocusRing:q.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",X.colorCyan0),borderWarningPrimary:q.extend("--ft-border-warning-primary","Used as border for warning components.",X.colorOrange30),borderSuccessPrimary:q.extend("--ft-border-success-primary","Used as border for success components.",X.colorGreen30),borderErrorPrimary:q.extend("--ft-border-error-primary","Used as border for error components.",X.colorRed30),borderInfoPrimary:q.extend("--ft-border-info-primary","Used as border for information components.",X.colorCyan30),borderGlobalSubtle:q.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",X.colorGray30),borderGlobalPrimary:q.extend("--ft-border-global-primary","Used as border for element like input.",X.colorGray50),borderInputPrimary:q.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",X.colorGray80)};q.create("--ft-button-large-height","","SIZE","40px"),q.extend("--ft-button-large-horizontal-padding","",X.spacing4),q.extend("--ft-button-large-gap","",X.spacing2),q.extend("--ft-button-large-border-radius","",X.borderRadiusS),q.extend("--ft-button-large-icon-size","",X.iconSize3),q.create("--ft-button-large-border-width","","SIZE","1px"),q.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),q.create("--ft-button-large-focus-outline-width","","SIZE","2px"),q.create("--ft-button-large-icon-only-width","","SIZE","40px"),q.create("--ft-button-small-height","","SIZE","30px"),q.extend("--ft-button-small-horizontal-padding","",X.spacing3),q.extend("--ft-button-small-gap","",X.spacing2),q.extend("--ft-button-small-border-radius","",X.borderRadiusS),q.extend("--ft-button-small-icon-size","",X.iconSize2),q.create("--ft-button-small-border-width","","SIZE","1px"),q.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),q.create("--ft-button-small-focus-outline-width","","SIZE","2px"),q.create("--ft-button-small-icon-only-width","","SIZE","30px"),q.extend("--ft-button-primary-background-color","",Q.backgroundActionPrimary),q.extend("--ft-button-primary-color","",Q.contentGlobalOnColor),q.extend("--ft-button-primary-icon-color","",Q.contentGlobalOnColor),q.extend("--ft-button-primary-state-layer-color","",Q.contentGlobalOnColor),q.extend("--ft-button-primary-state-layer-opacity-hover","",X.opacity16),q.extend("--ft-button-primary-state-layer-opacity-focus","",X.opacity16),q.extend("--ft-button-primary-state-layer-opacity-active","",X.opacity24),q.extend("--ft-button-primary-component-opacity-disabled","",X.opacity40),q.extend("--ft-button-focus-focus-ring-color","",Q.borderActionFocusRing),q.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),q.extend("--ft-button-tertiary-color","",Q.contentActionPrimary),q.extend("--ft-button-tertiary-icon-color","",Q.contentActionPrimary),q.extend("--ft-button-tertiary-state-layer-color","",Q.contentActionPrimary),q.extend("--ft-button-tertiary-state-layer-opacity-hover","",X.opacity8),q.extend("--ft-button-tertiary-state-layer-opacity-focus","",X.opacity8),q.extend("--ft-button-tertiary-state-layer-opacity-active","",X.opacity16),q.extend("--ft-button-tertiary-component-opacity-disabled","",X.opacity40),q.extend("--ft-button-secondary-background-color","",X.colorWhite),q.extend("--ft-button-secondary-color","",Q.contentActionPrimary),q.extend("--ft-button-secondary-icon-color","",Q.contentActionPrimary),q.extend("--ft-button-secondary-state-layer-color","",Q.contentActionPrimary),q.extend("--ft-button-secondary-state-layer-opacity-hover","",X.opacity8),q.extend("--ft-button-secondary-state-layer-opacity-focus","",X.opacity8),q.extend("--ft-button-secondary-state-layer-opacity-active","",X.opacity16),q.extend("--ft-button-secondary-component-opacity-disabled","",X.opacity40),q.extend("--ft-button-secondary-border-color","",Q.borderActionPrimary),q.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),q.extend("--ft-button-neutral-icon-color","",Q.contentGlobalSecondary),q.extend("--ft-button-neutral-color","",Q.contentGlobalSecondary),q.extend("--ft-button-neutral-state-layer-color","",Q.contentGlobalSecondary),q.extend("--ft-button-neutral-state-layer-opacity-hover","",X.opacity8),q.extend("--ft-button-neutral-state-layer-opacity-focus","",X.opacity8),q.extend("--ft-button-neutral-state-layer-opacity-active","",X.opacity16),q.extend("--ft-button-neutral-component-opacity-disabled","",X.opacity40),q.extend("--ft-tabs-top-left-border-radius","",X.borderRadiusS),q.extend("--ft-tabs-top-right-border-radius","",X.borderRadiusS),q.extend("--ft-tabs-label-horizontal-padding","",X.spacing4),q.extend("--ft-tabs-label-vertical-padding","",X.spacing3),q.extend("--ft-tabs-label-gap","",X.spacing1),q.extend("--ft-switch-group-horizontal-padding","",X.spacing1),q.extend("--ft-switch-group-vertical-padding","",X.spacing1),q.extend("--ft-switch-group-gap","",X.spacing1),q.extend("--ft-switch-group-background-color","",Q.backgroundGlobalSurface),q.extend("--ft-switch-group-border-color","",Q.borderGlobalSubtle),q.create("--ft-switch-group-border-radius","","SIZE","6px"),q.extend("--ft-switch-label-horizontal-padding","",X.spacing2),q.extend("--ft-switch-label-vertical-padding","",X.spacing1),q.extend("--ft-switch-icon-horizontal-padding","",X.spacing1),q.extend("--ft-switch-icon-vertical-padding","",X.spacing1),q.create("--ft-switch-focus-outline-width","","SIZE","2px"),q.extend("--ft-switch-focus-focus-ring-color","",Q.borderActionFocusRing),q.extend("--ft-switch-option-border-radius","",X.borderRadiusS),q.extend("--ft-switch-off-state-layer-opacity-hover","",X.opacity8),q.extend("--ft-switch-off-state-layer-opacity-focus","",X.opacity8),q.extend("--ft-switch-off-state-layer-opacity-active","",X.opacity16),q.extend("--ft-switch-off-component-opacity-disabled","",X.opacity40),q.extend("--ft-switch-off-color","",Q.contentGlobalSubtle),q.extend("--ft-switch-off-state-layer-color","",Q.contentGlobalSubtle),q.extend("--ft-chart-1-light","for area color charts",X.colorBrand40),q.extend("--ft-chart-1-base","for line charts",X.colorBrand0),q.extend("--ft-chart-2-light","for area color charts",X.colorYellow60),q.extend("--ft-chart-2-base","for line charts",X.colorYellow100),q.extend("--ft-chart-3-light","",X.colorUltramarine40),q.extend("--ft-chart-3-base","",X.colorUltramarine70),q.extend("--ft-chart-4-light","",X.colorCyan50),q.extend("--ft-chart-4-base","",X.colorCyan100),q.extend("--ft-chart-5-light","",X.colorRed40),q.extend("--ft-chart-5-base","",X.colorRed60),q.extend("--ft-chart-6-light","",X.colorGreen40),q.extend("--ft-chart-6-base","",X.colorGreen70),q.extend("--ft-chart-7-light","",X.colorOrange70),q.extend("--ft-chart-7-base","",X.colorOrange100),q.extend("--ft-chart-8-light","",X.colorAvocado70),q.extend("--ft-chart-8-base","",X.colorAvocado200),q.extend("--ft-chart-9-light","",X.colorBrown50),q.extend("--ft-chart-9-base","",X.colorBrown200),q.extend("--ft-chart-10-light","",X.colorGray50),q.extend("--ft-chart-10-base","",X.colorGray80),q.extend("--ft-chart-monochrome-10","",X.colorBrand10),q.extend("--ft-chart-monochrome-20","",X.colorBrand20),q.extend("--ft-chart-monochrome-30","",X.colorBrand40),q.extend("--ft-chart-monochrome-40","",X.colorBrand60),q.extend("--ft-chart-monochrome-50","",X.colorBrand0),q.extend("--ft-chart-monochrome-60","",X.colorBrand200),q.extend("--ft-chip-large-horizontal-padding","",X.spacing4),q.extend("--ft-chip-large-vertical-padding","",X.spacing2),q.extend("--ft-chip-large-gap","",X.spacing1),q.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),q.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),q.extend("--ft-chip-large-border-radius","",X.borderRadiusPill),q.create("--ft-chip-large-border-width","","SIZE","1px"),q.extend("--ft-chip-large-icon-size","",X.iconSize3),q.extend("--ft-chip-medium-horizontal-padding","",X.spacing3),q.extend("--ft-chip-medium-vertical-padding","",X.spacing1),q.extend("--ft-chip-medium-gap","",X.spacing1),q.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),q.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),q.extend("--ft-chip-medium-border-radius","",X.borderRadiusPill),q.create("--ft-chip-medium-border-width","","SIZE","1px"),q.extend("--ft-chip-medium-icon-size","",X.iconSize2),q.extend("--ft-chip-small-horizontal-padding","",X.spacing2),q.extend("--ft-chip-small-vertical-padding","",X.spacing05),q.extend("--ft-chip-small-gap","",X.spacing1),q.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),q.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),q.extend("--ft-chip-small-border-radius","",X.borderRadiusPill),q.create("--ft-chip-small-border-width","","SIZE","1px"),q.extend("--ft-chip-small-icon-size","",X.iconSize1),q.extend("--ft-chip-neutral-background-color","",Q.backgroundGlobalOnSurface),q.extend("--ft-chip-neutral-color","",Q.contentGlobalPrimary),q.extend("--ft-chip-neutral-border-color","",Q.borderGlobalSubtle),q.extend("--ft-chip-info-background-color","",Q.backgroundInfoSubtle),q.extend("--ft-chip-info-color","",Q.contentInfoPrimary),q.extend("--ft-chip-info-border-color","",Q.borderInfoPrimary),q.extend("--ft-chip-success-background-color","",Q.backgroundSuccessSubtle),q.extend("--ft-chip-success-color","",Q.contentSuccessPrimary),q.extend("--ft-chip-success-border-color","",Q.borderSuccessPrimary),q.extend("--ft-chip-warning-background-color","",Q.backgroundWarningSubtle),q.extend("--ft-chip-warning-color","",Q.contentWarningPrimary),q.extend("--ft-chip-warning-border-color","",Q.borderWarningPrimary),q.extend("--ft-chip-error-background-color","",Q.backgroundErrorSubtle),q.extend("--ft-chip-error-color","",Q.contentErrorPrimary),q.extend("--ft-chip-error-border-color","",Q.borderErrorPrimary),q.create("--ft-notice-border-width","","SIZE","1px"),q.extend("--ft-notice-horizontal-padding","",X.spacing2),q.extend("--ft-notice-vertical-padding","",X.spacing1),q.extend("--ft-notice-border-radius","",X.borderRadiusS),q.extend("--ft-notice-gap","",X.spacing2),q.extend("--ft-notice-icon-size","",X.iconSize3),q.extend("--ft-notice-info-background-color","",Q.backgroundInfoSubtle),q.extend("--ft-notice-info-border-color","",Q.borderInfoPrimary),q.extend("--ft-notice-info-color","",Q.contentInfoPrimary),q.extend("--ft-notice-warning-background-color","",Q.backgroundWarningSubtle),q.extend("--ft-notice-warning-border-color","",Q.borderWarningPrimary),q.extend("--ft-notice-warning-color","",Q.contentWarningPrimary),q.extend("--ft-checkbox-label-color","",Q.contentGlobalPrimary),q.extend("--ft-checkbox-checked-background-color","",Q.contentActionPrimary),q.extend("--ft-checkbox-checked-state-layer-color","",Q.contentActionPrimary),q.extend("--ft-checkbox-checked-color","",Q.contentGlobalOnColor),q.extend("--ft-checkbox-checked-state-layer-opacity-hover","",X.opacity16),q.extend("--ft-checkbox-checked-state-layer-opacity-focus","",X.opacity16),q.extend("--ft-checkbox-checked-state-layer-opacity-active","",X.opacity24),q.extend("--ft-checkbox-checked-component-opacity-disabled","",X.opacity40),q.extend("--ft-checkbox-unchecked-border-color","",X.colorGray80),q.extend("--ft-checkbox-unchecked-state-layer-color","",X.colorGray80),q.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",X.opacity16),q.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",X.opacity16),q.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",X.opacity24),q.extend("--ft-checkbox-unchecked-component-opacity-disabled","",X.opacity40),q.extend("--ft-checkbox-focus-focus-ring-color","",Q.borderActionFocusRing),q.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),q.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),q.extend("--ft-checkbox-gap","",X.spacing3),q.extend("--ft-toggle-off-state-layer-opacity-hover","",X.opacity16),q.extend("--ft-toggle-off-state-layer-opacity-focus","",X.opacity16),q.extend("--ft-toggle-off-state-layer-opacity-active","",X.opacity24),q.extend("--ft-toggle-off-component-opacity-disabled","",X.opacity40),q.extend("--ft-toggle-off-background-color","",Q.contentGlobalSubtle),q.extend("--ft-toggle-off-icon-color","",Q.contentGlobalSubtle),q.extend("--ft-toggle-off-state-layer-color","",Q.contentGlobalSubtle),q.extend("--ft-toggle-on-state-layer-opacity-hover","",X.opacity16),q.extend("--ft-toggle-on-state-layer-opacity-focus","",X.opacity16),q.extend("--ft-toggle-on-state-layer-opacity-active","",X.opacity24),q.extend("--ft-toggle-on-component-opacity-disabled","",X.opacity40),q.extend("--ft-toggle-on-background-color","",Q.contentActionPrimary),q.extend("--ft-toggle-on-icon-color","",Q.contentActionPrimary),q.extend("--ft-toggle-on-state-layer-color","",Q.contentActionPrimary),q.extend("--ft-toggle-label-color","",Q.contentGlobalPrimary),q.extend("--ft-toggle-focus-focus-ring-color","",Q.borderActionFocusRing),q.extend("--ft-toggle-gap","",X.spacing3),q.extend("--ft-radio-label-color","",Q.contentGlobalPrimary),q.extend("--ft-radio-selected-color","",Q.contentActionPrimary),q.extend("--ft-radio-selected-state-layer-color","",Q.contentActionPrimary),q.extend("--ft-radio-selected-state-layer-opacity-hover","",X.opacity16),q.extend("--ft-radio-selected-state-layer-opacity-focus","",X.opacity16),q.extend("--ft-radio-selected-state-layer-opacity-active","",X.opacity24),q.extend("--ft-radio-selected-component-opacity-disabled","",X.opacity40),q.extend("--ft-radio-unselected-state-layer-color","",X.colorGray80),q.extend("--ft-radio-unselected-state-layer-opacity-hover","",X.opacity16),q.extend("--ft-radio-unselected-state-layer-opacity-focus","",X.opacity16),q.extend("--ft-radio-unselected-state-layer-opacity-active","",X.opacity24),q.extend("--ft-radio-unselected-component-opacity-disabled","",X.opacity40),q.extend("--ft-radio-focus-focus-ring-color","",Q.borderActionFocusRing),q.create("--ft-radio-focus-outline-offset","","SIZE","3px"),q.create("--ft-radio-focus-outline-width","","SIZE","2px"),q.extend("--ft-radio-gap","",X.spacing3),q.extend("--ft-notification-icon-size","",X.iconSize4),q.extend("--ft-notification-horizontal-padding","",X.spacing4),q.extend("--ft-notification-vertical-padding","",X.spacing4),q.extend("--ft-notification-info-background-color","",Q.backgroundInfoSubtle),q.extend("--ft-notification-info-color","",Q.contentInfoPrimary),q.extend("--ft-notification-info-border-color","",Q.borderInfoPrimary),q.extend("--ft-notification-success-background-color","",Q.backgroundSuccessSubtle),q.extend("--ft-notification-success-color","",Q.contentSuccessPrimary),q.extend("--ft-notification-success-border-color","",Q.borderSuccessPrimary),q.extend("--ft-notification-warning-background-color","",Q.backgroundWarningSubtle),q.extend("--ft-notification-warning-color","",Q.contentWarningPrimary),q.extend("--ft-notification-warning-border-color","",Q.borderWarningPrimary),q.extend("--ft-notification-error-background-color","",Q.backgroundErrorSubtle),q.extend("--ft-notification-error-color","",Q.contentErrorPrimary),q.extend("--ft-notification-error-border-color","",Q.borderErrorPrimary),q.extend("--ft-notification-border-radius","",X.borderRadiusPill),q.create("--ft-notification-border-width","","SIZE","1px"),q.extend("--ft-notification-gap-leading","",X.spacing2),q.extend("--ft-notification-gap-trailing","",X.spacing8);const tt=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),ot=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),et={fontFamily:ot,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},it=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",tt),rt=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",et.fontSize,"20px"),at=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",et.fontWeight,"normal"),nt=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",et.letterSpacing,"0.15px"),lt=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",et.lineHeight,"1.2"),pt=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",et.textTransform,"inherit"),ft=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",tt),ct=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",et.fontSize,"14px"),st=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",et.fontWeight,"normal"),dt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",et.letterSpacing,"0.105px"),ht=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",et.lineHeight,"1.7"),gt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",et.textTransform,"inherit"),yt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ot),bt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",et.fontSize,"16px"),ut=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",et.fontWeight,"600"),mt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",et.letterSpacing,"0.144px"),xt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",et.lineHeight,"1.5"),Ot=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",et.textTransform,"inherit"),Nt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ot),vt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",et.fontSize,"14px"),St=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",et.fontWeight,"normal"),Ct=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",et.letterSpacing,"0.098px"),wt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",et.lineHeight,"1.7"),$t=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",et.textTransform,"inherit"),It={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ot),fontSize:o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",et.fontSize,"16px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",et.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",et.letterSpacing,"0.496px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",et.lineHeight,"1.5"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",et.textTransform,"inherit")},Ut=o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ot),Rt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",et.fontSize,"14px"),Wt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",et.fontWeight,"normal"),Et=o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",et.letterSpacing,"0.252px"),kt=o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",et.lineHeight,"1.4"),Lt=o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",et.textTransform,"inherit"),Kt={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ot),fontSize:o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",et.fontSize,"12px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",et.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",et.letterSpacing,"0.396px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",et.lineHeight,"1.33"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",et.textTransform,"inherit")},Zt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ot),zt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",et.fontSize,"10px"),Dt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",et.fontWeight,"normal"),Ft=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",et.letterSpacing,"0.33px"),Bt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",et.lineHeight,"1.6"),At=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",et.textTransform,"inherit"),Ht=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ot),Gt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",et.fontSize,"10px"),jt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",et.fontWeight,"normal"),Pt=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",et.letterSpacing,"1.5px"),Mt=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",et.lineHeight,"1.6"),_t=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",et.textTransform,"uppercase"),Yt=o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ot),Tt=o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",et.fontSize,"14px"),Vt=o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",et.fontWeight,"600"),qt=o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",et.letterSpacing,"1.246px"),Xt=o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",et.lineHeight,"1.15"),Jt=o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",et.textTransform,"uppercase"),Qt=e.css`
|
|
19
19
|
.ft-typography--title {
|
|
20
|
-
font-family: ${
|
|
21
|
-
font-size: ${
|
|
22
|
-
font-weight: ${
|
|
23
|
-
letter-spacing: ${
|
|
24
|
-
line-height: ${
|
|
25
|
-
text-transform: ${
|
|
26
|
-
}
|
|
27
|
-
`,
|
|
20
|
+
font-family: ${it};
|
|
21
|
+
font-size: ${rt};
|
|
22
|
+
font-weight: ${at};
|
|
23
|
+
letter-spacing: ${nt};
|
|
24
|
+
line-height: ${lt};
|
|
25
|
+
text-transform: ${pt};
|
|
26
|
+
}
|
|
27
|
+
`,to=e.css`
|
|
28
28
|
.ft-typography--title-dense {
|
|
29
|
-
font-family: ${
|
|
30
|
-
font-size: ${
|
|
31
|
-
font-weight: ${
|
|
32
|
-
letter-spacing: ${
|
|
33
|
-
line-height: ${
|
|
34
|
-
text-transform: ${
|
|
35
|
-
}
|
|
36
|
-
`,
|
|
29
|
+
font-family: ${ft};
|
|
30
|
+
font-size: ${ct};
|
|
31
|
+
font-weight: ${st};
|
|
32
|
+
letter-spacing: ${dt};
|
|
33
|
+
line-height: ${ht};
|
|
34
|
+
text-transform: ${gt};
|
|
35
|
+
}
|
|
36
|
+
`,oo=e.css`
|
|
37
37
|
.ft-typography--subtitle1 {
|
|
38
|
-
font-family: ${
|
|
39
|
-
font-size: ${
|
|
40
|
-
font-weight: ${
|
|
41
|
-
letter-spacing: ${
|
|
42
|
-
line-height: ${
|
|
43
|
-
text-transform: ${
|
|
44
|
-
}
|
|
45
|
-
`,
|
|
38
|
+
font-family: ${yt};
|
|
39
|
+
font-size: ${bt};
|
|
40
|
+
font-weight: ${ut};
|
|
41
|
+
letter-spacing: ${mt};
|
|
42
|
+
line-height: ${xt};
|
|
43
|
+
text-transform: ${Ot};
|
|
44
|
+
}
|
|
45
|
+
`,eo=e.css`
|
|
46
46
|
.ft-typography--subtitle2 {
|
|
47
|
-
font-family: ${
|
|
48
|
-
font-size: ${
|
|
49
|
-
font-weight: ${
|
|
50
|
-
letter-spacing: ${
|
|
51
|
-
line-height: ${
|
|
47
|
+
font-family: ${Nt};
|
|
48
|
+
font-size: ${vt};
|
|
49
|
+
font-weight: ${St};
|
|
50
|
+
letter-spacing: ${Ct};
|
|
51
|
+
line-height: ${wt};
|
|
52
52
|
text-transform: ${$t};
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
`,
|
|
55
|
+
`,io=e.css`
|
|
56
56
|
.ft-typography--body1 {
|
|
57
|
-
font-family: ${
|
|
58
|
-
font-size: ${
|
|
59
|
-
font-weight: ${
|
|
60
|
-
letter-spacing: ${
|
|
61
|
-
line-height: ${
|
|
62
|
-
text-transform: ${
|
|
63
|
-
}
|
|
64
|
-
`,
|
|
57
|
+
font-family: ${It.fontFamily};
|
|
58
|
+
font-size: ${It.fontSize};
|
|
59
|
+
font-weight: ${It.fontWeight};
|
|
60
|
+
letter-spacing: ${It.letterSpacing};
|
|
61
|
+
line-height: ${It.lineHeight};
|
|
62
|
+
text-transform: ${It.textTransform};
|
|
63
|
+
}
|
|
64
|
+
`,ro=e.css`
|
|
65
65
|
.ft-typography--body2 {
|
|
66
|
-
font-family: ${
|
|
67
|
-
font-size: ${
|
|
68
|
-
font-weight: ${
|
|
66
|
+
font-family: ${Ut};
|
|
67
|
+
font-size: ${Rt};
|
|
68
|
+
font-weight: ${Wt};
|
|
69
69
|
letter-spacing: ${Et};
|
|
70
|
-
line-height: ${
|
|
71
|
-
text-transform: ${
|
|
70
|
+
line-height: ${kt};
|
|
71
|
+
text-transform: ${Lt};
|
|
72
72
|
}
|
|
73
|
-
`,
|
|
73
|
+
`,ao=e.css`
|
|
74
74
|
.ft-typography--caption {
|
|
75
|
-
font-family: ${
|
|
76
|
-
font-size: ${
|
|
77
|
-
font-weight: ${
|
|
78
|
-
letter-spacing: ${
|
|
79
|
-
line-height: ${
|
|
80
|
-
text-transform: ${
|
|
81
|
-
}
|
|
82
|
-
`,
|
|
75
|
+
font-family: ${Kt.fontFamily};
|
|
76
|
+
font-size: ${Kt.fontSize};
|
|
77
|
+
font-weight: ${Kt.fontWeight};
|
|
78
|
+
letter-spacing: ${Kt.letterSpacing};
|
|
79
|
+
line-height: ${Kt.lineHeight};
|
|
80
|
+
text-transform: ${Kt.textTransform};
|
|
81
|
+
}
|
|
82
|
+
`,no=e.css`
|
|
83
83
|
.ft-typography--breadcrumb {
|
|
84
|
-
font-family: ${
|
|
85
|
-
font-size: ${
|
|
86
|
-
font-weight: ${
|
|
87
|
-
letter-spacing: ${
|
|
88
|
-
line-height: ${
|
|
89
|
-
text-transform: ${
|
|
90
|
-
}
|
|
91
|
-
`,
|
|
84
|
+
font-family: ${Zt};
|
|
85
|
+
font-size: ${zt};
|
|
86
|
+
font-weight: ${Dt};
|
|
87
|
+
letter-spacing: ${Ft};
|
|
88
|
+
line-height: ${Bt};
|
|
89
|
+
text-transform: ${At};
|
|
90
|
+
}
|
|
91
|
+
`,lo=e.css`
|
|
92
92
|
.ft-typography--overline {
|
|
93
|
-
font-family: ${
|
|
94
|
-
font-size: ${
|
|
95
|
-
font-weight: ${
|
|
96
|
-
letter-spacing: ${
|
|
97
|
-
line-height: ${
|
|
98
|
-
text-transform: ${
|
|
99
|
-
}
|
|
100
|
-
`,
|
|
93
|
+
font-family: ${Ht};
|
|
94
|
+
font-size: ${Gt};
|
|
95
|
+
font-weight: ${jt};
|
|
96
|
+
letter-spacing: ${Pt};
|
|
97
|
+
line-height: ${Mt};
|
|
98
|
+
text-transform: ${_t};
|
|
99
|
+
}
|
|
100
|
+
`,po=e.css`
|
|
101
101
|
.ft-typography--button {
|
|
102
|
-
font-family: ${
|
|
103
|
-
font-size: ${
|
|
104
|
-
font-weight: ${
|
|
105
|
-
letter-spacing: ${
|
|
106
|
-
line-height: ${
|
|
107
|
-
text-transform: ${
|
|
108
|
-
}
|
|
109
|
-
`,
|
|
102
|
+
font-family: ${Yt};
|
|
103
|
+
font-size: ${Tt};
|
|
104
|
+
font-weight: ${Vt};
|
|
105
|
+
letter-spacing: ${qt};
|
|
106
|
+
line-height: ${Xt};
|
|
107
|
+
text-transform: ${Jt};
|
|
108
|
+
}
|
|
109
|
+
`,fo=e.css`
|
|
110
110
|
.ft-typography {
|
|
111
111
|
vertical-align: inherit;
|
|
112
112
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
`,co=[Object.keys(J).map((t=>function(t){const o=J[t];return e.css`
|
|
114
|
+
.ft-typography--${e.unsafeCSS(t)} {
|
|
115
|
+
font-family: ${o.fontFamily};
|
|
116
|
+
font-size: ${o.fontSize};
|
|
117
|
+
font-weight: ${o.fontWeight};
|
|
118
|
+
letter-spacing: ${o.letterSpacing};
|
|
119
|
+
line-height: ${o.lineHeight};
|
|
120
|
+
text-transform: ${o.textCase};
|
|
121
|
+
}
|
|
122
|
+
`}(t)))];var so=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ho extends o.FtLitElement{constructor(){super(...arguments),this.variant=T.body1}render(){return this.element?Y`
|
|
123
|
+
<${M(this.element)}
|
|
124
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
116
125
|
<slot></slot>
|
|
117
|
-
</${
|
|
118
|
-
`:
|
|
126
|
+
</${M(this.element)}>
|
|
127
|
+
`:Y`
|
|
119
128
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
120
|
-
`}}
|
|
129
|
+
`}}ho.styles=[Qt,to,oo,eo,io,ro,ao,no,lo,po,fo,...co],so([i.property()],ho.prototype,"element",void 0),so([i.property()],ho.prototype,"variant",void 0),o.customElement("ft-typography")(ho);const go={fontSize:o.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.FtCssVariableFactory.extend("--ft-input-label-border-color","",o.designSystemVariables.colorOutline),textColor:o.FtCssVariableFactory.extend("--ft-input-label-text-color","",o.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:o.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",o.designSystemVariables.colorOnSurfaceDisabled),colorSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system"),borderRadiusS:o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),colorError:o.FtCssVariableFactory.external(o.designSystemVariables.colorError,"Design system")},yo=e.css`
|
|
121
130
|
.ft-input-label {
|
|
122
131
|
position: absolute;
|
|
123
132
|
inset: 0;
|
|
124
133
|
display: flex;
|
|
125
|
-
background-color: ${
|
|
126
|
-
border-radius: ${
|
|
134
|
+
background-color: ${go.colorSurface};
|
|
135
|
+
border-radius: ${go.borderRadiusS} ${go.borderRadiusS} 0 0;
|
|
127
136
|
}
|
|
128
137
|
|
|
129
138
|
.ft-input-label--outlined {
|
|
130
|
-
border-radius: ${
|
|
139
|
+
border-radius: ${go.borderRadiusS};
|
|
131
140
|
}
|
|
132
141
|
|
|
133
142
|
.ft-input-label {
|
|
134
|
-
border-color: ${
|
|
143
|
+
border-color: ${go.borderColor};
|
|
135
144
|
}
|
|
136
145
|
|
|
137
146
|
.ft-input-label.ft-input-label--in-error {
|
|
138
|
-
border-color: ${
|
|
147
|
+
border-color: ${go.colorError}
|
|
139
148
|
}
|
|
140
149
|
|
|
141
150
|
.ft-input-label:before,
|
|
@@ -148,7 +157,7 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
148
157
|
}
|
|
149
158
|
|
|
150
159
|
.ft-input-label:before {
|
|
151
|
-
width: calc(${
|
|
160
|
+
width: calc(${go.horizontalSpacing} - 4px);
|
|
152
161
|
flex-shrink: 0;
|
|
153
162
|
}
|
|
154
163
|
|
|
@@ -164,20 +173,20 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
164
173
|
border-bottom-width: 1px;
|
|
165
174
|
border-bottom-style: solid;
|
|
166
175
|
border-color: inherit;
|
|
167
|
-
color: ${
|
|
176
|
+
color: ${go.textColor};
|
|
168
177
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
169
|
-
max-width: calc(${
|
|
178
|
+
max-width: calc(${go.labelMaxWidth} - 2 * (${go.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
170
179
|
text-overflow: ellipsis;
|
|
171
|
-
${
|
|
172
|
-
${
|
|
180
|
+
${o.setVariable(Kt.fontSize,go.fontSize)};
|
|
181
|
+
${o.setVariable(Kt.lineHeight,go.fontSize)};
|
|
173
182
|
}
|
|
174
183
|
|
|
175
184
|
.ft-input-label--in-error .ft-input-label--text {
|
|
176
|
-
color: ${
|
|
185
|
+
color: ${go.colorError}
|
|
177
186
|
}
|
|
178
187
|
|
|
179
188
|
.ft-input-label--disabled .ft-input-label--text {
|
|
180
|
-
color: ${
|
|
189
|
+
color: ${go.disabledTextColor};
|
|
181
190
|
}
|
|
182
191
|
|
|
183
192
|
.ft-input-label--hidden-text {
|
|
@@ -194,19 +203,19 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
194
203
|
overflow: hidden;
|
|
195
204
|
white-space: nowrap;
|
|
196
205
|
text-overflow: ellipsis;
|
|
197
|
-
padding: ${
|
|
198
|
-
margin: calc(${
|
|
206
|
+
padding: ${go.verticalSpacing} 4px;
|
|
207
|
+
margin: calc(${go.verticalSpacing} * -1) 0;
|
|
199
208
|
max-width: 100%;
|
|
200
209
|
box-sizing: border-box;
|
|
201
210
|
}
|
|
202
211
|
|
|
203
212
|
.ft-input-label--raised .ft-input-label--text {
|
|
204
|
-
${
|
|
205
|
-
${
|
|
213
|
+
${o.setVariable(Kt.fontSize,go.raisedFontSize)};
|
|
214
|
+
${o.setVariable(Kt.lineHeight,go.raisedFontSize)};
|
|
206
215
|
}
|
|
207
216
|
|
|
208
217
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
209
|
-
top: ${
|
|
218
|
+
top: ${go.verticalSpacing};
|
|
210
219
|
}
|
|
211
220
|
|
|
212
221
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -219,36 +228,36 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
219
228
|
.ft-input-label--outlined:before {
|
|
220
229
|
border-left-width: 1px;
|
|
221
230
|
border-left-style: solid;
|
|
222
|
-
border-radius: ${
|
|
231
|
+
border-radius: ${go.borderRadiusS} 0 0 ${go.borderRadiusS};
|
|
223
232
|
}
|
|
224
233
|
|
|
225
234
|
.ft-input-label--outlined:after {
|
|
226
235
|
border-right-width: 1px;
|
|
227
236
|
border-right-style: solid;
|
|
228
|
-
border-radius: 0 ${
|
|
237
|
+
border-radius: 0 ${go.borderRadiusS} ${go.borderRadiusS} 0;
|
|
229
238
|
}
|
|
230
239
|
|
|
231
240
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
232
241
|
padding: 2px 4px;
|
|
233
|
-
z-index: ${
|
|
234
|
-
background-color: ${
|
|
235
|
-
border-radius: ${
|
|
242
|
+
z-index: ${go.raisedZIndex};
|
|
243
|
+
background-color: ${go.colorSurface};
|
|
244
|
+
border-radius: ${go.borderRadiusS};
|
|
236
245
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
237
246
|
}
|
|
238
247
|
|
|
239
248
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
240
249
|
border-top: none;
|
|
241
250
|
}
|
|
242
|
-
`;var
|
|
243
|
-
<div class="${
|
|
244
|
-
${this.text?
|
|
251
|
+
`;var bo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class uo extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return e.html`
|
|
252
|
+
<div class="${r.classMap(t)}">
|
|
253
|
+
${this.text?e.html`
|
|
245
254
|
<div class="ft-input-label--text ft-typography--caption">
|
|
246
255
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
247
256
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
248
257
|
</div>
|
|
249
258
|
`:null}
|
|
250
259
|
</div>
|
|
251
|
-
`}}
|
|
260
|
+
`}}uo.elementDefinitions={},uo.styles=[ao,yo],bo([i.property({type:String})],uo.prototype,"text",void 0),bo([i.property({type:Boolean})],uo.prototype,"raised",void 0),bo([i.property({type:Boolean})],uo.prototype,"outlined",void 0),bo([i.property({type:Boolean})],uo.prototype,"disabled",void 0),bo([i.property({type:Boolean})],uo.prototype,"error",void 0),o.customElement("ft-input-label")(uo);const mo=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorContent),xo={color:mo,backgroundColor:o.FtCssVariableFactory.extend("--ft-ripple-background-color","",mo),opacityContentOnSurfacePressed:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Oo=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorPrimary),No=Oo,vo=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",Oo),So=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorSecondary),Co=So,wo=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",So),$o=e.css`
|
|
252
261
|
:host {
|
|
253
262
|
display: contents;
|
|
254
263
|
}
|
|
@@ -261,7 +270,7 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
261
270
|
|
|
262
271
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
263
272
|
overflow: hidden;
|
|
264
|
-
border-radius: ${
|
|
273
|
+
border-radius: ${xo.borderRadius};
|
|
265
274
|
}
|
|
266
275
|
|
|
267
276
|
.ft-ripple .ft-ripple--background,
|
|
@@ -295,27 +304,27 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
295
304
|
}
|
|
296
305
|
|
|
297
306
|
.ft-ripple .ft-ripple--background {
|
|
298
|
-
background-color: ${
|
|
307
|
+
background-color: ${xo.backgroundColor};
|
|
299
308
|
}
|
|
300
309
|
|
|
301
310
|
.ft-ripple .ft-ripple--effect {
|
|
302
|
-
background-color: ${
|
|
311
|
+
background-color: ${xo.color};
|
|
303
312
|
}
|
|
304
313
|
|
|
305
314
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
306
|
-
background-color: ${
|
|
315
|
+
background-color: ${wo};
|
|
307
316
|
}
|
|
308
317
|
|
|
309
318
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
310
|
-
background-color: ${
|
|
319
|
+
background-color: ${Co};
|
|
311
320
|
}
|
|
312
321
|
|
|
313
322
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
314
|
-
background-color: ${
|
|
323
|
+
background-color: ${vo};
|
|
315
324
|
}
|
|
316
325
|
|
|
317
326
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
318
|
-
background-color: ${
|
|
327
|
+
background-color: ${No};
|
|
319
328
|
}
|
|
320
329
|
|
|
321
330
|
.ft-ripple .ft-ripple--background {
|
|
@@ -345,33 +354,33 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
345
354
|
}
|
|
346
355
|
|
|
347
356
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
348
|
-
opacity: ${
|
|
357
|
+
opacity: ${xo.opacityContentOnSurfaceHover};
|
|
349
358
|
}
|
|
350
359
|
|
|
351
360
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
352
|
-
opacity: ${
|
|
361
|
+
opacity: ${xo.opacityContentOnSurfaceSelected};
|
|
353
362
|
}
|
|
354
363
|
|
|
355
364
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
356
|
-
opacity: ${
|
|
365
|
+
opacity: ${xo.opacityContentOnSurfaceFocused};
|
|
357
366
|
}
|
|
358
367
|
|
|
359
368
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
360
|
-
opacity: ${
|
|
369
|
+
opacity: ${xo.opacityContentOnSurfacePressed};
|
|
361
370
|
transform: translate(-50%, -50%) scale(1);
|
|
362
371
|
}
|
|
363
|
-
`;var
|
|
372
|
+
`;var Io,Uo,Ro=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Wo extends o.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o.Debouncer(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),a=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-a.x:a.width/2),this.originY=Math.round(null!=r?r-a.y:a.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
364
373
|
<style>
|
|
365
374
|
.ft-ripple .ft-ripple--effect {
|
|
366
375
|
left: ${this.originX}px;
|
|
367
376
|
top: ${this.originY}px;
|
|
368
377
|
}
|
|
369
378
|
</style>
|
|
370
|
-
<div class="${
|
|
379
|
+
<div class="${r.classMap(t)}">
|
|
371
380
|
<div class="ft-ripple--background"></div>
|
|
372
381
|
<div class="ft-ripple--effect"></div>
|
|
373
382
|
</div>
|
|
374
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}ke.elementDefinitions={},ke.styles=be,we([o.property({type:Boolean})],ke.prototype,"primary",void 0),we([o.property({type:Boolean})],ke.prototype,"secondary",void 0),we([o.property({type:Boolean})],ke.prototype,"unbounded",void 0),we([o.property({type:Boolean})],ke.prototype,"activated",void 0),we([o.property({type:Boolean})],ke.prototype,"selected",void 0),we([o.property({type:Boolean})],ke.prototype,"disabled",void 0),we([o.state()],ke.prototype,"hovered",void 0),we([o.state()],ke.prototype,"focused",void 0),we([o.state()],ke.prototype,"pressed",void 0),we([o.state()],ke.prototype,"rippling",void 0),we([o.state()],ke.prototype,"originX",void 0),we([o.state()],ke.prototype,"originY",void 0),we([o.query(".ft-ripple")],ke.prototype,"ripple",void 0),we([o.query(".ft-ripple--effect")],ke.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ke),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(me||(me={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}($e||($e={})),new Map([...["abw"].map((t=>[t,$e.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,$e.AUDIO])),...["avi"].map((t=>[t,$e.AVI])),...["chm","xhs"].map((t=>[t,$e.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,$e.CODE])),...["csv"].map((t=>[t,$e.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,$e.DITA])),...["epub"].map((t=>[t,$e.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,$e.EXCEL])),...["flac"].map((t=>[t,$e.FLAC])),...["gif"].map((t=>[t,$e.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,$e.GZIP])),...["html","htm","xhtml"].map((t=>[t,$e.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,$e.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,$e.JPEG])),...["json"].map((t=>[t,$e.JSON])),...["m4a","m4p"].map((t=>[t,$e.M4A])),...["mov","qt"].map((t=>[t,$e.MOV])),...["mp3"].map((t=>[t,$e.MP3])),...["mp4","m4v"].map((t=>[t,$e.MP4])),...["ogg","oga"].map((t=>[t,$e.OGG])),...["pdf","ps"].map((t=>[t,$e.PDF])),...["png"].map((t=>[t,$e.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,$e.POWERPOINT])),...["rar"].map((t=>[t,$e.RAR])),...["stp"].map((t=>[t,$e.STP])),...["txt","rtf","md","mdown"].map((t=>[t,$e.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,$e.VIDEO])),...["wav"].map((t=>[t,$e.WAV])),...["wma"].map((t=>[t,$e.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,$e.WORD])),...["xml","xsl","rdf"].map((t=>[t,$e.XML])),...["yaml","yml","x-yaml"].map((t=>[t,$e.YAML])),...["zip"].map((t=>[t,$e.ZIP]))]);const ze=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),Se=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Ee=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ie=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Ne=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),je=i.css`
|
|
383
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Wo.elementDefinitions={},Wo.styles=$o,Ro([i.property({type:Boolean})],Wo.prototype,"primary",void 0),Ro([i.property({type:Boolean})],Wo.prototype,"secondary",void 0),Ro([i.property({type:Boolean})],Wo.prototype,"unbounded",void 0),Ro([i.property({type:Boolean})],Wo.prototype,"activated",void 0),Ro([i.property({type:Boolean})],Wo.prototype,"selected",void 0),Ro([i.property({type:Boolean})],Wo.prototype,"disabled",void 0),Ro([i.state()],Wo.prototype,"hovered",void 0),Ro([i.state()],Wo.prototype,"focused",void 0),Ro([i.state()],Wo.prototype,"pressed",void 0),Ro([i.state()],Wo.prototype,"rippling",void 0),Ro([i.state()],Wo.prototype,"originX",void 0),Ro([i.state()],Wo.prototype,"originY",void 0),Ro([i.query(".ft-ripple")],Wo.prototype,"ripple",void 0),Ro([i.query(".ft-ripple--effect")],Wo.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(Wo),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Io||(Io={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Uo||(Uo={})),new Map([...["abw"].map((t=>[t,Uo.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Uo.AUDIO])),...["avi"].map((t=>[t,Uo.AVI])),...["chm","xhs"].map((t=>[t,Uo.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Uo.CODE])),...["csv"].map((t=>[t,Uo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Uo.DITA])),...["epub"].map((t=>[t,Uo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Uo.EXCEL])),...["flac"].map((t=>[t,Uo.FLAC])),...["gif"].map((t=>[t,Uo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Uo.GZIP])),...["html","htm","xhtml"].map((t=>[t,Uo.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Uo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Uo.JPEG])),...["json"].map((t=>[t,Uo.JSON])),...["m4a","m4p"].map((t=>[t,Uo.M4A])),...["mov","qt"].map((t=>[t,Uo.MOV])),...["mp3"].map((t=>[t,Uo.MP3])),...["mp4","m4v"].map((t=>[t,Uo.MP4])),...["ogg","oga"].map((t=>[t,Uo.OGG])),...["pdf","ps"].map((t=>[t,Uo.PDF])),...["png"].map((t=>[t,Uo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Uo.POWERPOINT])),...["rar"].map((t=>[t,Uo.RAR])),...["stp"].map((t=>[t,Uo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Uo.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Uo.VIDEO])),...["wav"].map((t=>[t,Uo.WAV])),...["wma"].map((t=>[t,Uo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Uo.WORD])),...["xml","xsl","rdf"].map((t=>[t,Uo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Uo.YAML])),...["zip"].map((t=>[t,Uo.ZIP]))]);const Eo=o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),ko=o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),Lo=o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),Ko=o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),Zo=o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset"),zo=e.css`
|
|
375
384
|
:host, i.ft-icon {
|
|
376
385
|
display: inline-flex;
|
|
377
386
|
align-items: center;
|
|
@@ -380,14 +389,14 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
380
389
|
}
|
|
381
390
|
|
|
382
391
|
:host {
|
|
383
|
-
width: ${
|
|
384
|
-
height: ${
|
|
392
|
+
width: ${Eo};
|
|
393
|
+
height: ${Eo};
|
|
385
394
|
}
|
|
386
395
|
|
|
387
396
|
i.ft-icon {
|
|
388
397
|
width: 100%;
|
|
389
398
|
height: 100%;
|
|
390
|
-
font-size: ${
|
|
399
|
+
font-size: ${Eo};
|
|
391
400
|
line-height: 1;
|
|
392
401
|
font-weight: normal;
|
|
393
402
|
text-transform: none;
|
|
@@ -398,33 +407,33 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
398
407
|
text-rendering: auto;
|
|
399
408
|
-webkit-font-smoothing: antialiased;
|
|
400
409
|
-moz-osx-font-smoothing: grayscale;
|
|
401
|
-
vertical-align: ${
|
|
410
|
+
vertical-align: ${Zo};
|
|
402
411
|
}
|
|
403
412
|
|
|
404
413
|
i.ft-icon.ft-icon--fluid-topics {
|
|
405
|
-
font-family: ${
|
|
414
|
+
font-family: ${ko}, ft-icons, fticons, sans-serif;
|
|
406
415
|
|
|
407
416
|
/* Ugly fix because font is broken */
|
|
408
|
-
font-size: calc(0.75 * ${
|
|
409
|
-
line-height: ${
|
|
417
|
+
font-size: calc(0.75 * ${Eo});
|
|
418
|
+
line-height: ${Eo};
|
|
410
419
|
position: relative;
|
|
411
420
|
top: -4%;
|
|
412
421
|
justify-content: center;
|
|
413
422
|
}
|
|
414
423
|
|
|
415
424
|
.ft-icon--file-format {
|
|
416
|
-
font-family: ${
|
|
425
|
+
font-family: ${Lo}, ft-mime, sans-serif;
|
|
417
426
|
}
|
|
418
427
|
|
|
419
428
|
.ft-icon--material {
|
|
420
|
-
font-family: ${
|
|
429
|
+
font-family: ${Ko}, "Material Icons", sans-serif;
|
|
421
430
|
}
|
|
422
|
-
`;var
|
|
431
|
+
`;var Do;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Do||(Do={}));var Fo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Bo extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Do).includes(this.variant)?this.variant:Do.fluid_topics,o=t!==Do.material||!!this.value;return e.html`
|
|
423
432
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
424
|
-
${
|
|
425
|
-
<slot ?hidden=${
|
|
433
|
+
${a.unsafeHTML(this.resolvedIcon)}
|
|
434
|
+
<slot ?hidden=${o}></slot>
|
|
426
435
|
</i>
|
|
427
|
-
`}get textContent(){var t,
|
|
436
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let i=this.value||this.textContent;switch(this.variant){case Do.file_format:this.resolvedIcon=null!==(t=Uo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Do.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=Io[i.replace("-","_").toUpperCase()])&&void 0!==o?o:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Bo.elementDefinitions={},Bo.styles=zo,Fo([i.property()],Bo.prototype,"variant",void 0),Fo([i.property()],Bo.prototype,"value",void 0),Fo([i.state()],Bo.prototype,"resolvedIcon",void 0),Fo([i.query("slot")],Bo.prototype,"slottedContent",void 0),o.customElement("ft-icon")(Bo);const Ao={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:o.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:o.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:o.FtCssVariableFactory.extend("--ft-text-field-helper-color","",o.designSystemVariables.colorOnSurfaceMedium),colorPrimary:o.FtCssVariableFactory.external(o.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),colorError:o.FtCssVariableFactory.external(o.designSystemVariables.colorError,"Design system"),prefixColor:o.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",o.designSystemVariables.colorOnSurfaceMedium),iconColor:o.FtCssVariableFactory.extend("--ft-text-field-icon-color","",o.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:o.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system"),colorOutline:o.FtCssVariableFactory.external(o.designSystemVariables.colorOutline,"Design system"),elevation02:o.FtCssVariableFactory.external(o.designSystemVariables.elevation02,"Design system"),suggestSize:o.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Ho=e.css`
|
|
428
437
|
*:focus {
|
|
429
438
|
outline: none;
|
|
430
439
|
}
|
|
@@ -437,16 +446,16 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
437
446
|
}
|
|
438
447
|
|
|
439
448
|
ft-input-label {
|
|
440
|
-
${
|
|
441
|
-
${
|
|
442
|
-
${
|
|
443
|
-
${
|
|
449
|
+
${o.setVariable(go.fontSize,Ao.fontSize)};
|
|
450
|
+
${o.setVariable(go.raisedFontSize,Ao.labelSize)};
|
|
451
|
+
${o.setVariable(go.verticalSpacing,Ao.verticalSpacing)};
|
|
452
|
+
${o.setVariable(go.horizontalSpacing,Ao.horizontalSpacing)};
|
|
444
453
|
}
|
|
445
454
|
|
|
446
455
|
.ft-text-field--main-panel {
|
|
447
456
|
position: relative;
|
|
448
457
|
display: flex;
|
|
449
|
-
height: calc(4 * ${
|
|
458
|
+
height: calc(4 * ${Ao.verticalSpacing} + ${Ao.labelSize} + ${Ao.fontSize});
|
|
450
459
|
}
|
|
451
460
|
|
|
452
461
|
.ft-text-field--input-panel {
|
|
@@ -455,24 +464,24 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
455
464
|
display: flex;
|
|
456
465
|
align-items: center;
|
|
457
466
|
overflow: hidden;
|
|
458
|
-
padding: 0 ${
|
|
467
|
+
padding: 0 ${Ao.horizontalSpacing};
|
|
459
468
|
|
|
460
|
-
${
|
|
461
|
-
${
|
|
469
|
+
${o.setVariable(It.fontSize,Ao.fontSize)};
|
|
470
|
+
${o.setVariable(It.lineHeight,Ao.fontSize)};
|
|
462
471
|
}
|
|
463
472
|
|
|
464
473
|
.ft-text-field--input-panel ft-ripple {
|
|
465
|
-
${
|
|
466
|
-
${
|
|
474
|
+
${o.setVariable(xo.opacityContentOnSurfaceHover,"0.08")};
|
|
475
|
+
${o.setVariable(xo.opacityContentOnSurfacePressed,"0.04")};
|
|
467
476
|
}
|
|
468
477
|
|
|
469
478
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
470
479
|
align-items: flex-end;
|
|
471
|
-
padding: 0 ${
|
|
480
|
+
padding: 0 ${Ao.horizontalSpacing} ${Ao.verticalSpacing} ${Ao.horizontalSpacing};
|
|
472
481
|
}
|
|
473
482
|
|
|
474
483
|
.ft-text-field--prefix {
|
|
475
|
-
color: ${
|
|
484
|
+
color: ${Ao.prefixColor};
|
|
476
485
|
margin-right: 2px;
|
|
477
486
|
flex-shrink: 1;
|
|
478
487
|
overflow: hidden;
|
|
@@ -491,15 +500,15 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
491
500
|
flex-shrink: 1;
|
|
492
501
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
493
502
|
|
|
494
|
-
color: ${
|
|
495
|
-
padding: calc(2 * ${
|
|
503
|
+
color: ${Ao.colorOnSurface};
|
|
504
|
+
padding: calc(2 * ${Ao.verticalSpacing}) 0;
|
|
496
505
|
border: none;
|
|
497
506
|
background: none;
|
|
498
507
|
}
|
|
499
508
|
|
|
500
509
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
501
510
|
padding-bottom: 0;
|
|
502
|
-
padding-top: calc(${
|
|
511
|
+
padding-top: calc(${Ao.labelSize} + 2 * ${Ao.verticalSpacing});
|
|
503
512
|
}
|
|
504
513
|
|
|
505
514
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -508,37 +517,37 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
508
517
|
}
|
|
509
518
|
|
|
510
519
|
.ft-text-field--disabled .ft-text-field--input {
|
|
511
|
-
color: ${
|
|
520
|
+
color: ${Ao.colorOnSurfaceDisabled};
|
|
512
521
|
}
|
|
513
522
|
|
|
514
523
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
515
|
-
${
|
|
516
|
-
${
|
|
524
|
+
${o.setVariable(go.borderColor,Ao.colorPrimary)};
|
|
525
|
+
${o.setVariable(go.textColor,Ao.colorPrimary)};
|
|
517
526
|
}
|
|
518
527
|
|
|
519
528
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
520
|
-
border-radius: ${
|
|
529
|
+
border-radius: ${Ao.borderRadiusS} ${Ao.borderRadiusS} 0 0;
|
|
521
530
|
}
|
|
522
531
|
|
|
523
532
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
524
|
-
border-radius: ${
|
|
533
|
+
border-radius: ${Ao.borderRadiusS};
|
|
525
534
|
}
|
|
526
535
|
|
|
527
536
|
.ft-text-field--helper-text {
|
|
528
|
-
padding: 0 12px 0 ${
|
|
529
|
-
color: ${
|
|
537
|
+
padding: 0 12px 0 ${Ao.horizontalSpacing};
|
|
538
|
+
color: ${Ao.helperColor};
|
|
530
539
|
}
|
|
531
540
|
|
|
532
541
|
.ft-text-field--in-error .ft-text-field--input,
|
|
533
542
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
534
543
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
535
|
-
color: ${
|
|
544
|
+
color: ${Ao.colorError};
|
|
536
545
|
}
|
|
537
546
|
|
|
538
547
|
.ft-text-field--icon {
|
|
539
548
|
align-self: center;
|
|
540
549
|
margin-left: 8px;
|
|
541
|
-
color: ${
|
|
550
|
+
color: ${Ao.iconColor};
|
|
542
551
|
}
|
|
543
552
|
|
|
544
553
|
.ft-text-field--container {
|
|
@@ -551,13 +560,13 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
551
560
|
position: absolute;
|
|
552
561
|
left: 0;
|
|
553
562
|
right: 0;
|
|
554
|
-
z-index: ${
|
|
555
|
-
background: ${
|
|
556
|
-
border: 1px solid ${
|
|
557
|
-
border-radius: 0 0 ${
|
|
558
|
-
box-shadow: ${
|
|
563
|
+
z-index: ${Ao.floatingZIndex};
|
|
564
|
+
background: ${Ao.colorSurface};
|
|
565
|
+
border: 1px solid ${Ao.colorOutline};
|
|
566
|
+
border-radius: 0 0 ${Ao.borderRadiusS} ${Ao.borderRadiusS};
|
|
567
|
+
box-shadow: ${Ao.elevation02};
|
|
559
568
|
outline: none;
|
|
560
|
-
max-height: ${
|
|
569
|
+
max-height: ${Ao.suggestSize};
|
|
561
570
|
overflow-y: auto;
|
|
562
571
|
}
|
|
563
572
|
|
|
@@ -574,14 +583,14 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
574
583
|
}
|
|
575
584
|
|
|
576
585
|
.ft-text-field--with-icon {
|
|
577
|
-
${
|
|
586
|
+
${o.setVariable(go.labelMaxWidth,`calc(100% - ${Eo} - ${go.horizontalSpacing})`)};
|
|
578
587
|
}
|
|
579
588
|
|
|
580
589
|
.ft-text-field--with-password ft-icon:hover {
|
|
581
590
|
cursor: pointer;
|
|
582
591
|
}
|
|
583
|
-
`;var
|
|
584
|
-
<div class="${
|
|
592
|
+
`;var Go=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class jo extends(o.toFtFormComponent(o.FtLitElement,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=Io.EYE_SLASH,this.passwordRevealedIcon=Io.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const o=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",o)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return e.html`
|
|
593
|
+
<div class="${r.classMap(t)}">
|
|
585
594
|
<div class="ft-text-field--main-panel"
|
|
586
595
|
@keydown=${this.handleKeyboardNavigation}
|
|
587
596
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -591,16 +600,16 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
591
600
|
?raised=${this.focused||""!=this.value}
|
|
592
601
|
?error=${this.error}></ft-input-label>
|
|
593
602
|
<div class="ft-text-field--input-panel">
|
|
594
|
-
${this.outlined?
|
|
603
|
+
${this.outlined?e.nothing:e.html`
|
|
595
604
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
596
605
|
`}
|
|
597
|
-
${this.prefix?
|
|
606
|
+
${this.prefix?e.html`
|
|
598
607
|
<ft-typography class="ft-text-field--prefix" vaiant="body1">
|
|
599
608
|
${this.prefix}
|
|
600
609
|
</ft-typography>
|
|
601
|
-
`:
|
|
610
|
+
`:e.nothing}
|
|
602
611
|
<input type=${this.password&&this.hidePassword?"password":"text"}
|
|
603
|
-
maxlength=${(t=>null!=t?t:
|
|
612
|
+
maxlength=${(t=>null!=t?t:U)(this.maxLength||void 0)}
|
|
604
613
|
aria-label="${this.label}"
|
|
605
614
|
class="ft-typography--body1 ft-text-field--input"
|
|
606
615
|
?disabled=${this.disabled}
|
|
@@ -615,23 +624,23 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
615
624
|
<slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
|
|
616
625
|
</div>
|
|
617
626
|
</div>
|
|
618
|
-
${this.helper?
|
|
627
|
+
${this.helper?e.html`
|
|
619
628
|
<ft-typography class="ft-text-field--helper-text" variant="caption">
|
|
620
629
|
${this.helper}
|
|
621
630
|
</ft-typography>
|
|
622
|
-
`:
|
|
631
|
+
`:e.nothing}
|
|
623
632
|
</div>
|
|
624
|
-
`}renderPasswordIcon(){return
|
|
633
|
+
`}renderPasswordIcon(){return e.html`
|
|
625
634
|
<ft-icon class="ft-text-field--icon"
|
|
626
635
|
.variant=${this.iconVariant}
|
|
627
636
|
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
628
637
|
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
629
|
-
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?
|
|
638
|
+
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?e.html`
|
|
630
639
|
<ft-icon class="ft-text-field--icon"
|
|
631
640
|
.variant=${this.iconVariant}
|
|
632
641
|
.value=${this.icon}
|
|
633
642
|
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
634
|
-
`:
|
|
643
|
+
`:e.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var o,e;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(o=this.input)||void 0===o?void 0:o.getBoundingClientRect(),i=null===(e=this.suggestionsContainer)||void 0===e?void 0:e.getBoundingClientRect();t&&i&&(this.suggestionsOnTop=t.bottom+i.height>window.innerHeight&&t.top-i.height>0)}}setValue(t,o=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),o&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var o;const e=(null===(o=this.input)||void 0===o?void 0:o.value)||"";this.setValue(e,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var o;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const e=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?e<this.visibleSuggestions.length-1?e+1:0:e>0?e-1:this.visibleSuggestions.length-1,null===(o=this.visibleSuggestions[i])||void 0===o||o.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var o;this.setValue(t.detail,!0),null===(o=this.input)||void 0===o||o.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,o;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(o=this.input)||void 0===o?void 0:o.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}jo.elementDefinitions={"ft-input-label":uo,"ft-ripple":Wo,"ft-typography":ho,"ft-icon":Bo},jo.styles=[io,Ho],Go([i.property()],jo.prototype,"label",void 0),Go([i.property({noAccessor:!0})],jo.prototype,"value",null),Go([i.state()],jo.prototype,"dispatchedValue",void 0),Go([i.property()],jo.prototype,"helper",void 0),Go([i.property({type:Boolean})],jo.prototype,"outlined",void 0),Go([i.property({type:Boolean})],jo.prototype,"disabled",void 0),Go([i.property({type:Boolean})],jo.prototype,"error",void 0),Go([i.property()],jo.prototype,"prefix",void 0),Go([i.property()],jo.prototype,"icon",void 0),Go([i.property()],jo.prototype,"passwordHiddenIcon",void 0),Go([i.property()],jo.prototype,"passwordRevealedIcon",void 0),Go([i.property()],jo.prototype,"iconVariant",void 0),Go([i.property({type:Boolean})],jo.prototype,"filterSuggestions",void 0),Go([i.property({type:Number})],jo.prototype,"maxLength",void 0),Go([i.property({type:Boolean})],jo.prototype,"password",void 0),Go([i.state()],jo.prototype,"focused",void 0),Go([i.state()],jo.prototype,"hidePassword",void 0),Go([i.state()],jo.prototype,"suggestionsOnTop",void 0),Go([i.state()],jo.prototype,"hideSuggestions",void 0),Go([i.state()],jo.prototype,"visibleSuggestions",void 0),Go([i.query(".ft-text-field--main-panel")],jo.prototype,"mainPanel",void 0),Go([i.query(".ft-text-field--input")],jo.prototype,"input",void 0),Go([i.query(".ft-text-field--suggestions")],jo.prototype,"suggestionsContainer",void 0),Go([i.queryAssignedElements({selector:"ft-text-field-suggestion"})],jo.prototype,"suggestions",void 0);const Po=e.css`
|
|
635
644
|
.ft-text-field-suggestion {
|
|
636
645
|
position: relative;
|
|
637
646
|
padding: 8px 16px;
|
|
@@ -656,7 +665,7 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
656
665
|
slot {
|
|
657
666
|
pointer-events: none;
|
|
658
667
|
}
|
|
659
|
-
`;var
|
|
668
|
+
`;var Mo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class _o extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Yo extends o.FtLitElement{render(){return e.html`
|
|
660
669
|
<div class="ft-text-field-suggestion"
|
|
661
670
|
tabindex="-1"
|
|
662
671
|
@keydown=${this.onKeyDown}
|
|
@@ -668,4 +677,4 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
668
677
|
<slot></slot>
|
|
669
678
|
</ft-typography>
|
|
670
679
|
</div>
|
|
671
|
-
`}focus(t){var
|
|
680
|
+
`}focus(t){var o;null===(o=this.container)||void 0===o||o.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new _o(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Yo.elementDefinitions={"ft-ripple":Wo,"ft-typography":ho,"ft-icon":Bo},Yo.styles=Po,Mo([i.property()],Yo.prototype,"value",void 0),Mo([i.query(".ft-text-field-suggestion")],Yo.prototype,"container",void 0),Mo([i.queryAssignedNodes()],Yo.prototype,"assignedNodes",void 0),o.customElement("ft-text-field")(jo),o.customElement("ft-text-field-suggestion")(Yo),t.FtTextField=jo,t.FtTextFieldCssVariables=Ao,t.FtTextFieldSuggestion=Yo,t.SuggestionSelectedEvent=_o,t.styles=Ho,t.suggestionStyles=Po}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|