@fluid-topics/ft-dialog 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-dialog.css.js +8 -8
- package/build/ft-dialog.light.js +451 -224
- package/build/ft-dialog.min.js +479 -258
- package/package.json +6 -6
package/build/ft-dialog.light.js
CHANGED
|
@@ -1,118 +1,127 @@
|
|
|
1
|
-
!function(t,
|
|
1
|
+
!function(t,o,e,r,i,a){
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var
|
|
7
|
+
var n;const l=window,c=l.trustedTypes,p=c?c.createPolicy("lit-html",{createHTML:t=>t}):void 0,s="$lit$",f=`lit$${(Math.random()+"").slice(9)}$`,d="?"+f,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,v=/>/g,N=RegExp(`>|${m}(?:([^\\s"'>=/]+)(${m}*=${m}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),S=/'/g,$=/"/g,C=/^(?:script|style|textarea|title)$/i,w=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),I=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),U=new WeakMap,W=g.createTreeWalker(g,129,null,!1),k=(t,o)=>{const e=t.length-1,r=[];let i,a=2===o?"<svg>":"",n=x;for(let o=0;o<e;o++){const e=t[o];let l,c,p=-1,d=0;for(;d<e.length&&(n.lastIndex=d,c=n.exec(e),null!==c);)d=n.lastIndex,n===x?"!--"===c[1]?n=O:void 0!==c[1]?n=v:void 0!==c[2]?(C.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=N):void 0!==c[3]&&(n=N):n===N?">"===c[0]?(n=null!=i?i:x,p=-1):void 0===c[1]?p=-2:(p=n.lastIndex-c[2].length,l=c[1],n=void 0===c[3]?N:'"'===c[3]?$:S):n===$||n===S?n=N:n===O||n===v?n=x:(n=N,i=void 0);const g=n===N&&t[o+1].startsWith("/>")?" ":"";a+=n===x?e+h:p>=0?(r.push(l),e.slice(0,p)+s+e.slice(p)+f+g):e+f+(-2===p?(r.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!==p?p.createHTML(l):l,r]};class E{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,a=0;const n=t.length-1,l=this.parts,[p,h]=k(t,o);if(this.el=E.createElement(p,e),W.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(r=W.nextNode())&&l.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const o of r.getAttributeNames())if(o.endsWith(s)||o.startsWith(f)){const e=h[a++];if(t.push(o),void 0!==e){const t=r.getAttribute(e.toLowerCase()+s).split(f),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:i,name:o[2],strings:t,ctor:"."===o[1]?F:"?"===o[1]?D:"@"===o[1]?H:z})}else l.push({type:6,index:i})}for(const o of t)r.removeAttribute(o)}if(C.test(r.tagName)){const t=r.textContent.split(f),o=t.length-1;if(o>0){r.textContent=c?c.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],y()),W.nextNode(),l.push({type:2,index:++i});r.append(t[o],y())}}}else if(8===r.nodeType)if(r.data===d)l.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(f,t+1));)l.push({type:7,index:i}),t+=f.length-1}i++}}static createElement(t,o){const e=g.createElement("template");return e.innerHTML=t,e}}function L(t,o,e=t,r){var i,a,n,l;if(o===I)return o;let c=void 0!==r?null===(i=e._$Co)||void 0===i?void 0:i[r]:e._$Cl;const p=b(o)?void 0:o._$litDirective$;return(null==c?void 0:c.constructor)!==p&&(null===(a=null==c?void 0:c._$AO)||void 0===a||a.call(c,!1),void 0===p?c=void 0:(c=new p(t),c._$AT(t,e,r)),void 0!==r?(null!==(n=(l=e)._$Co)&&void 0!==n?n:l._$Co=[])[r]=c:e._$Cl=c),void 0!==c&&(o=L(t,c._$AS(t,o.values),c,r)),o}class Z{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:r}=this._$AD,i=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:g).importNode(e,!0);W.currentNode=i;let a=W.nextNode(),n=0,l=0,c=r[0];for(;void 0!==c;){if(n===c.index){let o;2===c.type?o=new K(a,a.nextSibling,this,t):1===c.type?o=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(o=new A(a,this,t)),this._$AV.push(o),c=r[++l]}n!==(null==c?void 0:c.index)&&(a=W.nextNode(),n++)}return i}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 K{constructor(t,o,e,r){var i;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cp=null===(i=null==r?void 0:r.isConnected)||void 0===i||i}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===R||null==t||""===t?(this._$AH!==R&&this._$AR(),this._$AH=R):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!==R&&b(this._$AH)?this._$AA.nextSibling.data=t:this.$(g.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:r}=t,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=E.createElement(r.h,this.options)),r);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===i)this._$AH.v(e);else{const t=new Z(i,this),o=t.u(this.options);t.v(e),this.$(o),this._$AH=t}}_$AC(t){let o=U.get(t.strings);return void 0===o&&U.set(t.strings,o=new E(t)),o}T(t){u(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,r=0;for(const i of t)r===o.length?o.push(e=new K(this.k(y()),this.k(y()),this,this.options)):e=o[r],e._$AI(i),r++;r<o.length&&(this._$AR(e&&e._$AB.nextSibling,r),o.length=r)}_$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,r,i){this.type=1,this._$AH=R,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,e,r){const i=this.strings;let a=!1;if(void 0===i)t=L(this,t,o,0),a=!b(t)||t!==this._$AH&&t!==I,a&&(this._$AH=t);else{const r=t;let n,l;for(t=i[0],n=0;n<i.length-1;n++)l=L(this,r[e+n],o,n),l===I&&(l=this._$AH[n]),a||(a=!b(l)||l!==this._$AH[n]),l===R?t=R:t!==R&&(t+=(null!=l?l:"")+i[n+1]),this._$AH[n]=l}a&&!r&&this.j(t)}j(t){t===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class F extends z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===R?void 0:t}}const B=c?c.emptyScript:"";class D extends z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==R?this.element.setAttribute(this.name,B):this.element.removeAttribute(this.name)}}class H extends z{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){var e;if((t=null!==(e=L(this,t,o,0))&&void 0!==e?e:R)===I)return;const r=this._$AH,i=t===R&&r!==R||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==R&&(r===R||i);i&&this.element.removeEventListener(this.name,this,r),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 A{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(E,K),(null!==(n=l.litHtmlVersions)&&void 0!==n?n:l.litHtmlVersions=[]).push("2.7.3");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t._$litStatic$},P=t=>({_$litStatic$:t,r:H}),K=new Map,G=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(s=e[p],n=L(s));)a+=n+i[++p],h=!0;p!==o&&l.push(s),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=K.get(t))&&(r.raw=r,K.set(t,i=r)),e=l}return t(i,...e)})(E);var V;!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"}(V||(V={}));const q=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),X=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),Y={fontFamily:X,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},J=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",q),Q=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",Y.fontSize,"20px"),tt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",Y.fontWeight,"normal"),it=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",Y.letterSpacing,"0.15px"),et=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",Y.lineHeight,"1.2"),ot=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",Y.textTransform,"inherit"),nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",q),st=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",Y.fontSize,"14px"),rt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",Y.fontWeight,"normal"),lt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",Y.letterSpacing,"0.105px"),at=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",Y.lineHeight,"1.7"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",Y.textTransform,"inherit"),ht=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",X),ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",Y.fontSize,"16px"),dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",Y.fontWeight,"600"),ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",Y.letterSpacing,"0.144px"),ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",Y.lineHeight,"1.5"),gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",Y.textTransform,"inherit"),xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",X),yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",Y.fontSize,"14px"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",Y.fontWeight,"normal"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",Y.letterSpacing,"0.098px"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",Y.lineHeight,"1.7"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",Y.textTransform,"inherit"),wt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",X),kt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",Y.fontSize,"16px"),zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",Y.fontWeight,"normal"),St=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",Y.letterSpacing,"0.496px"),Et=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",Y.lineHeight,"1.5"),Ot=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",Y.textTransform,"inherit"),Ct=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",X),It=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",Y.fontSize,"14px"),jt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",Y.fontWeight,"normal"),Nt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",Y.letterSpacing,"0.252px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",Y.lineHeight,"1.4"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",Y.textTransform,"inherit"),Zt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",X),At=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",Y.fontSize,"12px"),Ft=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",Y.fontWeight,"normal"),Mt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",Y.letterSpacing,"0.396px"),_t=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",Y.lineHeight,"1.33"),Ut=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",Y.textTransform,"inherit"),Rt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",X),Dt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",Y.fontSize,"10px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",Y.fontWeight,"normal"),Ht=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",Y.letterSpacing,"0.33px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",Y.lineHeight,"1.6"),Pt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",Y.textTransform,"inherit"),Kt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",X),Gt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",Y.fontSize,"10px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",Y.fontWeight,"normal"),qt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",Y.letterSpacing,"1.5px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",Y.lineHeight,"1.6"),Yt=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",Y.textTransform,"uppercase"),Jt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",X),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",Y.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",Y.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",Y.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",Y.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",Y.textTransform,"uppercase")},Qt=e.css`
|
|
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}),T=new Map,_=(t=>(o,...e)=>{const r=e.length;let i,a;const n=[],l=[];let c,p=0,s=!1;for(;p<r;){for(c=o[p];p<r&&void 0!==(a=e[p],i=P(a));)c+=i+o[++p],s=!0;p!==r&&l.push(a),n.push(c),p++}if(p===r&&n.push(o[r]),s){const t=n.join("$$lit$$");void 0===(o=T.get(t))&&(n.raw=n,T.set(t,o=n)),e=l}return t(o,...e)})(w);var Y;!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"}(Y||(Y={}));const V=t=>"string"==typeof t?e.unsafeCSS(t):t;class q{static create(t,o,r,i){const a=t=>V(null!=t?t:i),n=e.css`var(${V(t)}, ${a(i)})`;return n.name=t,n.description=t,n.category=r,n.defaultValue=i,n.defaultCssValue=a,n.get=o=>e.css`var(${V(t)}, ${a(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,o,r,i){const a=t=>r.get(null!=t?t:i),n=e.css`var(${V(t)}, ${a(i)})`;return n.name=t,n.description=o,n.category=r.category,n.fallbackVariable=r,n.defaultValue=i,n.defaultCssValue=a,n.get=o=>e.css`var(${V(t)}, ${a(o)})`,n.breadcrumb=()=>[r.name,...r.breadcrumb()],n.lastResortDefaultValue=()=>null!=i?i:r.lastResortDefaultValue(),n}static external(t,o){const r=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):V(null!=o?o:t.lastResortDefaultValue()),i=e.css`var(${V(t.name)}, ${r(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=o,i.defaultCssValue=r,i.get=o=>e.css`var(${V(t.name)}, ${r(o)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}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)},tt={largeHeight:q.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:q.extend("--ft-button-large-horizontal-padding","",X.spacing4),largeGap:q.extend("--ft-button-large-gap","",X.spacing2),largeBorderRadius:q.extend("--ft-button-large-border-radius","",X.borderRadiusS),largeIconSize:q.extend("--ft-button-large-icon-size","",X.iconSize3),largeBorderWidth:q.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:q.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:q.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:q.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:q.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:q.extend("--ft-button-small-horizontal-padding","",X.spacing3),smallGap:q.extend("--ft-button-small-gap","",X.spacing2),smallBorderRadius:q.extend("--ft-button-small-border-radius","",X.borderRadiusS),smallIconSize:q.extend("--ft-button-small-icon-size","",X.iconSize2),smallBorderWidth:q.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:q.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:q.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:q.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:q.extend("--ft-button-primary-background-color","",Q.backgroundActionPrimary),primaryColor:q.extend("--ft-button-primary-color","",Q.contentGlobalOnColor),primaryIconColor:q.extend("--ft-button-primary-icon-color","",Q.contentGlobalOnColor),primaryStateLayerColor:q.extend("--ft-button-primary-state-layer-color","",Q.contentGlobalOnColor),primaryStateLayerOpacityHover:q.extend("--ft-button-primary-state-layer-opacity-hover","",X.opacity16),primaryStateLayerOpacityFocus:q.extend("--ft-button-primary-state-layer-opacity-focus","",X.opacity16),primaryStateLayerOpacityActive:q.extend("--ft-button-primary-state-layer-opacity-active","",X.opacity24),primaryComponentOpacityDisabled:q.extend("--ft-button-primary-component-opacity-disabled","",X.opacity40),focusFocusRingColor:q.extend("--ft-button-focus-focus-ring-color","",Q.borderActionFocusRing),tertiaryBackgroundColor:q.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:q.extend("--ft-button-tertiary-color","",Q.contentActionPrimary),tertiaryIconColor:q.extend("--ft-button-tertiary-icon-color","",Q.contentActionPrimary),tertiaryStateLayerColor:q.extend("--ft-button-tertiary-state-layer-color","",Q.contentActionPrimary),tertiaryStateLayerOpacityHover:q.extend("--ft-button-tertiary-state-layer-opacity-hover","",X.opacity8),tertiaryStateLayerOpacityFocus:q.extend("--ft-button-tertiary-state-layer-opacity-focus","",X.opacity8),tertiaryStateLayerOpacityActive:q.extend("--ft-button-tertiary-state-layer-opacity-active","",X.opacity16),tertiaryComponentOpacityDisabled:q.extend("--ft-button-tertiary-component-opacity-disabled","",X.opacity40),secondaryBackgroundColor:q.extend("--ft-button-secondary-background-color","",X.colorWhite),secondaryColor:q.extend("--ft-button-secondary-color","",Q.contentActionPrimary),secondaryIconColor:q.extend("--ft-button-secondary-icon-color","",Q.contentActionPrimary),secondaryStateLayerColor:q.extend("--ft-button-secondary-state-layer-color","",Q.contentActionPrimary),secondaryStateLayerOpacityHover:q.extend("--ft-button-secondary-state-layer-opacity-hover","",X.opacity8),secondaryStateLayerOpacityFocus:q.extend("--ft-button-secondary-state-layer-opacity-focus","",X.opacity8),secondaryStateLayerOpacityActive:q.extend("--ft-button-secondary-state-layer-opacity-active","",X.opacity16),secondaryComponentOpacityDisabled:q.extend("--ft-button-secondary-component-opacity-disabled","",X.opacity40),secondaryBorderColor:q.extend("--ft-button-secondary-border-color","",Q.borderActionPrimary),neutralBackgroundColor:q.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:q.extend("--ft-button-neutral-icon-color","",Q.contentGlobalSecondary),neutralColor:q.extend("--ft-button-neutral-color","",Q.contentGlobalSecondary),neutralStateLayerColor:q.extend("--ft-button-neutral-state-layer-color","",Q.contentGlobalSecondary),neutralStateLayerOpacityHover:q.extend("--ft-button-neutral-state-layer-opacity-hover","",X.opacity8),neutralStateLayerOpacityFocus:q.extend("--ft-button-neutral-state-layer-opacity-focus","",X.opacity8),neutralStateLayerOpacityActive:q.extend("--ft-button-neutral-state-layer-opacity-active","",X.opacity16),neutralComponentOpacityDisabled: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 ot=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),et=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),rt={fontFamily:et,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","",ot),at=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",rt.fontSize,"20px"),nt=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",rt.fontWeight,"normal"),lt=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",rt.letterSpacing,"0.15px"),ct=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",rt.lineHeight,"1.2"),pt=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",rt.textTransform,"inherit"),st=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ot),ft=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",rt.fontSize,"14px"),dt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",rt.fontWeight,"normal"),ht=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",rt.letterSpacing,"0.105px"),gt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",rt.lineHeight,"1.7"),yt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",rt.textTransform,"inherit"),bt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",et),ut=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",rt.fontSize,"16px"),mt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",rt.fontWeight,"600"),xt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",rt.letterSpacing,"0.144px"),Ot=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",rt.lineHeight,"1.5"),vt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",rt.textTransform,"inherit"),Nt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",et),St=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",rt.fontSize,"14px"),$t=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",rt.fontWeight,"normal"),Ct=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",rt.letterSpacing,"0.098px"),wt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",rt.lineHeight,"1.7"),It=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",rt.textTransform,"inherit"),Rt=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",et),Ut=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",rt.fontSize,"16px"),Wt=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",rt.fontWeight,"normal"),kt=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",rt.letterSpacing,"0.496px"),Et=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",rt.lineHeight,"1.5"),Lt=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",rt.textTransform,"inherit"),Zt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",et),Kt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",rt.fontSize,"14px"),zt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",rt.fontWeight,"normal"),Ft=o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",rt.letterSpacing,"0.252px"),Bt=o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",rt.lineHeight,"1.4"),Dt=o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",rt.textTransform,"inherit"),Ht=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",et),At=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",rt.fontSize,"12px"),Gt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",rt.fontWeight,"normal"),jt=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",rt.letterSpacing,"0.396px"),Pt=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",rt.lineHeight,"1.33"),Mt=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",rt.textTransform,"inherit"),Tt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",et),_t=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",rt.fontSize,"10px"),Yt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",rt.fontWeight,"normal"),Vt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",rt.letterSpacing,"0.33px"),qt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",rt.lineHeight,"1.6"),Xt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",rt.textTransform,"inherit"),Jt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",et),Qt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",rt.fontSize,"10px"),to=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",rt.fontWeight,"normal"),oo=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",rt.letterSpacing,"1.5px"),eo=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",rt.lineHeight,"1.6"),ro=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",rt.textTransform,"uppercase"),io={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",et),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",rt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",rt.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",rt.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",rt.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",rt.textTransform,"uppercase")},ao=e.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
|
-
font-family: ${
|
|
16
|
-
font-size: ${
|
|
17
|
-
font-weight: ${
|
|
18
|
-
letter-spacing: ${it};
|
|
19
|
-
line-height: ${et};
|
|
20
|
-
text-transform: ${ot};
|
|
21
|
-
}
|
|
22
|
-
`,ti=e.css`
|
|
23
|
-
.ft-typography--title-dense {
|
|
24
|
-
font-family: ${nt};
|
|
25
|
-
font-size: ${st};
|
|
26
|
-
font-weight: ${rt};
|
|
15
|
+
font-family: ${it};
|
|
16
|
+
font-size: ${at};
|
|
17
|
+
font-weight: ${nt};
|
|
27
18
|
letter-spacing: ${lt};
|
|
28
|
-
line-height: ${
|
|
19
|
+
line-height: ${ct};
|
|
29
20
|
text-transform: ${pt};
|
|
30
21
|
}
|
|
31
|
-
`,
|
|
32
|
-
.ft-typography--
|
|
33
|
-
font-family: ${
|
|
22
|
+
`,no=e.css`
|
|
23
|
+
.ft-typography--title-dense {
|
|
24
|
+
font-family: ${st};
|
|
34
25
|
font-size: ${ft};
|
|
35
26
|
font-weight: ${dt};
|
|
36
|
-
letter-spacing: ${
|
|
37
|
-
line-height: ${
|
|
38
|
-
text-transform: ${
|
|
27
|
+
letter-spacing: ${ht};
|
|
28
|
+
line-height: ${gt};
|
|
29
|
+
text-transform: ${yt};
|
|
39
30
|
}
|
|
40
|
-
`,
|
|
31
|
+
`,lo=e.css`
|
|
32
|
+
.ft-typography--subtitle1 {
|
|
33
|
+
font-family: ${bt};
|
|
34
|
+
font-size: ${ut};
|
|
35
|
+
font-weight: ${mt};
|
|
36
|
+
letter-spacing: ${xt};
|
|
37
|
+
line-height: ${Ot};
|
|
38
|
+
text-transform: ${vt};
|
|
39
|
+
}
|
|
40
|
+
`,co=e.css`
|
|
41
41
|
.ft-typography--subtitle2 {
|
|
42
|
-
font-family: ${
|
|
43
|
-
font-size: ${
|
|
44
|
-
font-weight: ${
|
|
45
|
-
letter-spacing: ${
|
|
46
|
-
line-height: ${
|
|
47
|
-
text-transform: ${
|
|
42
|
+
font-family: ${Nt};
|
|
43
|
+
font-size: ${St};
|
|
44
|
+
font-weight: ${$t};
|
|
45
|
+
letter-spacing: ${Ct};
|
|
46
|
+
line-height: ${wt};
|
|
47
|
+
text-transform: ${It};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
`,
|
|
50
|
+
`,po=e.css`
|
|
51
51
|
.ft-typography--body1 {
|
|
52
|
-
font-family: ${
|
|
53
|
-
font-size: ${
|
|
54
|
-
font-weight: ${
|
|
55
|
-
letter-spacing: ${
|
|
52
|
+
font-family: ${Rt};
|
|
53
|
+
font-size: ${Ut};
|
|
54
|
+
font-weight: ${Wt};
|
|
55
|
+
letter-spacing: ${kt};
|
|
56
56
|
line-height: ${Et};
|
|
57
|
-
text-transform: ${
|
|
57
|
+
text-transform: ${Lt};
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,so=e.css`
|
|
60
60
|
.ft-typography--body2 {
|
|
61
|
-
font-family: ${
|
|
62
|
-
font-size: ${
|
|
63
|
-
font-weight: ${
|
|
64
|
-
letter-spacing: ${
|
|
61
|
+
font-family: ${Zt};
|
|
62
|
+
font-size: ${Kt};
|
|
63
|
+
font-weight: ${zt};
|
|
64
|
+
letter-spacing: ${Ft};
|
|
65
65
|
line-height: ${Bt};
|
|
66
|
-
text-transform: ${
|
|
66
|
+
text-transform: ${Dt};
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`,fo=e.css`
|
|
69
69
|
.ft-typography--caption {
|
|
70
|
-
font-family: ${
|
|
70
|
+
font-family: ${Ht};
|
|
71
71
|
font-size: ${At};
|
|
72
|
-
font-weight: ${
|
|
73
|
-
letter-spacing: ${
|
|
74
|
-
line-height: ${
|
|
75
|
-
text-transform: ${
|
|
72
|
+
font-weight: ${Gt};
|
|
73
|
+
letter-spacing: ${jt};
|
|
74
|
+
line-height: ${Pt};
|
|
75
|
+
text-transform: ${Mt};
|
|
76
76
|
}
|
|
77
|
-
`,
|
|
77
|
+
`,ho=e.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
|
-
font-family: ${
|
|
80
|
-
font-size: ${
|
|
81
|
-
font-weight: ${
|
|
82
|
-
letter-spacing: ${
|
|
83
|
-
line-height: ${
|
|
84
|
-
text-transform: ${
|
|
85
|
-
}
|
|
86
|
-
`,
|
|
79
|
+
font-family: ${Tt};
|
|
80
|
+
font-size: ${_t};
|
|
81
|
+
font-weight: ${Yt};
|
|
82
|
+
letter-spacing: ${Vt};
|
|
83
|
+
line-height: ${qt};
|
|
84
|
+
text-transform: ${Xt};
|
|
85
|
+
}
|
|
86
|
+
`,go=e.css`
|
|
87
87
|
.ft-typography--overline {
|
|
88
|
-
font-family: ${
|
|
89
|
-
font-size: ${
|
|
90
|
-
font-weight: ${
|
|
91
|
-
letter-spacing: ${
|
|
92
|
-
line-height: ${
|
|
93
|
-
text-transform: ${
|
|
94
|
-
}
|
|
95
|
-
`,
|
|
88
|
+
font-family: ${Jt};
|
|
89
|
+
font-size: ${Qt};
|
|
90
|
+
font-weight: ${to};
|
|
91
|
+
letter-spacing: ${oo};
|
|
92
|
+
line-height: ${eo};
|
|
93
|
+
text-transform: ${ro};
|
|
94
|
+
}
|
|
95
|
+
`,yo=e.css`
|
|
96
96
|
.ft-typography--button {
|
|
97
|
-
font-family: ${
|
|
98
|
-
font-size: ${
|
|
99
|
-
font-weight: ${
|
|
100
|
-
letter-spacing: ${
|
|
101
|
-
line-height: ${
|
|
102
|
-
text-transform: ${
|
|
103
|
-
}
|
|
104
|
-
`,
|
|
97
|
+
font-family: ${io.fontFamily};
|
|
98
|
+
font-size: ${io.fontSize};
|
|
99
|
+
font-weight: ${io.fontWeight};
|
|
100
|
+
letter-spacing: ${io.letterSpacing};
|
|
101
|
+
line-height: ${io.lineHeight};
|
|
102
|
+
text-transform: ${io.textTransform};
|
|
103
|
+
}
|
|
104
|
+
`,bo=e.css`
|
|
105
105
|
.ft-typography {
|
|
106
106
|
vertical-align: inherit;
|
|
107
107
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
`,uo=[Object.keys(J).map((t=>function(t){const o=J[t];return e.css`
|
|
109
|
+
.ft-typography--${e.unsafeCSS(t)} {
|
|
110
|
+
font-family: ${o.fontFamily};
|
|
111
|
+
font-size: ${o.fontSize};
|
|
112
|
+
font-weight: ${o.fontWeight};
|
|
113
|
+
letter-spacing: ${o.letterSpacing};
|
|
114
|
+
line-height: ${o.lineHeight};
|
|
115
|
+
text-transform: ${o.textCase};
|
|
116
|
+
}
|
|
117
|
+
`}(t)))];var mo,xo,Oo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class vo extends o.FtLitElement{constructor(){super(...arguments),this.variant=Y.body1}render(){return this.element?_`
|
|
118
|
+
<${M(this.element)}
|
|
119
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
111
120
|
<slot></slot>
|
|
112
|
-
</${
|
|
113
|
-
`:
|
|
121
|
+
</${M(this.element)}>
|
|
122
|
+
`:_`
|
|
114
123
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
115
|
-
`}}
|
|
124
|
+
`}}vo.styles=[ao,no,lo,co,po,so,fo,ho,go,yo,bo,...uo],Oo([r.property()],vo.prototype,"element",void 0),Oo([r.property()],vo.prototype,"variant",void 0),o.customElement("ft-typography")(vo),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=""}(mo||(mo={})),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=""}(xo||(xo={})),new Map([...["abw"].map((t=>[t,xo.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,xo.AUDIO])),...["avi"].map((t=>[t,xo.AVI])),...["chm","xhs"].map((t=>[t,xo.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,xo.CODE])),...["csv"].map((t=>[t,xo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,xo.DITA])),...["epub"].map((t=>[t,xo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,xo.EXCEL])),...["flac"].map((t=>[t,xo.FLAC])),...["gif"].map((t=>[t,xo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,xo.GZIP])),...["html","htm","xhtml"].map((t=>[t,xo.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,xo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,xo.JPEG])),...["json"].map((t=>[t,xo.JSON])),...["m4a","m4p"].map((t=>[t,xo.M4A])),...["mov","qt"].map((t=>[t,xo.MOV])),...["mp3"].map((t=>[t,xo.MP3])),...["mp4","m4v"].map((t=>[t,xo.MP4])),...["ogg","oga"].map((t=>[t,xo.OGG])),...["pdf","ps"].map((t=>[t,xo.PDF])),...["png"].map((t=>[t,xo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,xo.POWERPOINT])),...["rar"].map((t=>[t,xo.RAR])),...["stp"].map((t=>[t,xo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,xo.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,xo.VIDEO])),...["wav"].map((t=>[t,xo.WAV])),...["wma"].map((t=>[t,xo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,xo.WORD])),...["xml","xsl","rdf"].map((t=>[t,xo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,xo.YAML])),...["zip"].map((t=>[t,xo.ZIP]))]);const No={size:o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},So=e.css`
|
|
116
125
|
:host, i.ft-icon {
|
|
117
126
|
display: inline-flex;
|
|
118
127
|
align-items: center;
|
|
@@ -121,14 +130,14 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
121
130
|
}
|
|
122
131
|
|
|
123
132
|
:host {
|
|
124
|
-
width: ${
|
|
125
|
-
height: ${
|
|
133
|
+
width: ${No.size};
|
|
134
|
+
height: ${No.size};
|
|
126
135
|
}
|
|
127
136
|
|
|
128
137
|
i.ft-icon {
|
|
129
138
|
width: 100%;
|
|
130
139
|
height: 100%;
|
|
131
|
-
font-size: ${
|
|
140
|
+
font-size: ${No.size};
|
|
132
141
|
line-height: 1;
|
|
133
142
|
font-weight: normal;
|
|
134
143
|
text-transform: none;
|
|
@@ -139,33 +148,33 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
139
148
|
text-rendering: auto;
|
|
140
149
|
-webkit-font-smoothing: antialiased;
|
|
141
150
|
-moz-osx-font-smoothing: grayscale;
|
|
142
|
-
vertical-align: ${
|
|
151
|
+
vertical-align: ${No.verticalAlign};
|
|
143
152
|
}
|
|
144
153
|
|
|
145
154
|
i.ft-icon.ft-icon--fluid-topics {
|
|
146
|
-
font-family: ${
|
|
155
|
+
font-family: ${No.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
147
156
|
|
|
148
157
|
/* Ugly fix because font is broken */
|
|
149
|
-
font-size: calc(0.75 * ${
|
|
150
|
-
line-height: ${
|
|
158
|
+
font-size: calc(0.75 * ${No.size});
|
|
159
|
+
line-height: ${No.size};
|
|
151
160
|
position: relative;
|
|
152
161
|
top: -4%;
|
|
153
162
|
justify-content: center;
|
|
154
163
|
}
|
|
155
164
|
|
|
156
165
|
.ft-icon--file-format {
|
|
157
|
-
font-family: ${
|
|
166
|
+
font-family: ${No.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
158
167
|
}
|
|
159
168
|
|
|
160
169
|
.ft-icon--material {
|
|
161
|
-
font-family: ${
|
|
170
|
+
font-family: ${No.materialFontFamily}, "Material Icons", sans-serif;
|
|
162
171
|
}
|
|
163
|
-
`;var
|
|
172
|
+
`;var $o;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}($o||($o={}));var Co=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class wo extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values($o).includes(this.variant)?this.variant:$o.fluid_topics,o=t!==$o.material||!!this.value;return e.html`
|
|
164
173
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
165
|
-
${
|
|
166
|
-
<slot ?hidden=${
|
|
174
|
+
${i.unsafeHTML(this.resolvedIcon)}
|
|
175
|
+
<slot ?hidden=${o}></slot>
|
|
167
176
|
</i>
|
|
168
|
-
`}get textContent(){var t,
|
|
177
|
+
`}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 r=this.value||this.textContent;switch(this.variant){case $o.file_format:this.resolvedIcon=null!==(t=xo[r.replace("-","_").toUpperCase()])&&void 0!==t?t:r;break;case $o.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=mo[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}wo.elementDefinitions={},wo.styles=So,Co([r.property()],wo.prototype,"variant",void 0),Co([r.property()],wo.prototype,"value",void 0),Co([r.state()],wo.prototype,"resolvedIcon",void 0),Co([r.query("slot")],wo.prototype,"slottedContent",void 0),o.customElement("ft-icon")(wo);const Io=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorContent),Ro={color:Io,backgroundColor:o.FtCssVariableFactory.extend("--ft-ripple-background-color","",Io),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")},Uo=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorPrimary),Wo=Uo,ko=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",Uo),Eo=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorSecondary),Lo=Eo,Zo=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",Eo),Ko=e.css`
|
|
169
178
|
:host {
|
|
170
179
|
display: contents;
|
|
171
180
|
}
|
|
@@ -178,7 +187,7 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
178
187
|
|
|
179
188
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
180
189
|
overflow: hidden;
|
|
181
|
-
border-radius: ${
|
|
190
|
+
border-radius: ${Ro.borderRadius};
|
|
182
191
|
}
|
|
183
192
|
|
|
184
193
|
.ft-ripple .ft-ripple--background,
|
|
@@ -212,27 +221,27 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
212
221
|
}
|
|
213
222
|
|
|
214
223
|
.ft-ripple .ft-ripple--background {
|
|
215
|
-
background-color: ${
|
|
224
|
+
background-color: ${Ro.backgroundColor};
|
|
216
225
|
}
|
|
217
226
|
|
|
218
227
|
.ft-ripple .ft-ripple--effect {
|
|
219
|
-
background-color: ${
|
|
228
|
+
background-color: ${Ro.color};
|
|
220
229
|
}
|
|
221
230
|
|
|
222
231
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
223
|
-
background-color: ${
|
|
232
|
+
background-color: ${Zo};
|
|
224
233
|
}
|
|
225
234
|
|
|
226
235
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
227
|
-
background-color: ${
|
|
236
|
+
background-color: ${Lo};
|
|
228
237
|
}
|
|
229
238
|
|
|
230
239
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
231
|
-
background-color: ${
|
|
240
|
+
background-color: ${ko};
|
|
232
241
|
}
|
|
233
242
|
|
|
234
243
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
235
|
-
background-color: ${
|
|
244
|
+
background-color: ${Wo};
|
|
236
245
|
}
|
|
237
246
|
|
|
238
247
|
.ft-ripple .ft-ripple--background {
|
|
@@ -262,80 +271,22 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
262
271
|
}
|
|
263
272
|
|
|
264
273
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
265
|
-
opacity: ${
|
|
274
|
+
opacity: ${Ro.opacityContentOnSurfaceHover};
|
|
266
275
|
}
|
|
267
276
|
|
|
268
277
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
269
|
-
opacity: ${
|
|
278
|
+
opacity: ${Ro.opacityContentOnSurfaceSelected};
|
|
270
279
|
}
|
|
271
280
|
|
|
272
281
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
273
|
-
opacity: ${
|
|
282
|
+
opacity: ${Ro.opacityContentOnSurfaceFocused};
|
|
274
283
|
}
|
|
275
284
|
|
|
276
285
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
277
|
-
opacity: ${
|
|
286
|
+
opacity: ${Ro.opacityContentOnSurfacePressed};
|
|
278
287
|
transform: translate(-50%, -50%) scale(1);
|
|
279
288
|
}
|
|
280
|
-
|
|
281
|
-
<style>
|
|
282
|
-
.ft-ripple .ft-ripple--effect {
|
|
283
|
-
left: ${this.originX}px;
|
|
284
|
-
top: ${this.originY}px;
|
|
285
|
-
}
|
|
286
|
-
</style>
|
|
287
|
-
<div class="${s.classMap(t)}">
|
|
288
|
-
<div class="ft-ripple--background"></div>
|
|
289
|
-
<div class="ft-ripple--effect"></div>
|
|
290
|
-
</div>
|
|
291
|
-
`}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 i,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.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,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i: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 i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),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",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),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 i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ii.elementDefinitions={},Ii.styles=Oi,Ci([o.property({type:Boolean})],Ii.prototype,"primary",void 0),Ci([o.property({type:Boolean})],Ii.prototype,"secondary",void 0),Ci([o.property({type:Boolean})],Ii.prototype,"unbounded",void 0),Ci([o.property({type:Boolean})],Ii.prototype,"activated",void 0),Ci([o.property({type:Boolean})],Ii.prototype,"selected",void 0),Ci([o.property({type:Boolean})],Ii.prototype,"disabled",void 0),Ci([o.state()],Ii.prototype,"hovered",void 0),Ci([o.state()],Ii.prototype,"focused",void 0),Ci([o.state()],Ii.prototype,"pressed",void 0),Ci([o.state()],Ii.prototype,"rippling",void 0),Ci([o.state()],Ii.prototype,"originX",void 0),Ci([o.state()],Ii.prototype,"originY",void 0),Ci([o.query(".ft-ripple")],Ii.prototype,"ripple",void 0),Ci([o.query(".ft-ripple--effect")],Ii.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(Ii);const ji=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Ni=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Bi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Ti=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","100"),Zi=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Ai=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Fi=e.css`
|
|
292
|
-
.ft-tooltip--container {
|
|
293
|
-
display: block;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.ft-tooltip--inline {
|
|
297
|
-
display: inline-block;
|
|
298
|
-
max-width: 100%;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.ft-tooltip {
|
|
302
|
-
position: absolute;
|
|
303
|
-
box-sizing: border-box;
|
|
304
|
-
overflow: hidden;
|
|
305
|
-
width: max-content;
|
|
306
|
-
max-width: ${Ai};
|
|
307
|
-
text-align: center;
|
|
308
|
-
padding: ${ji};
|
|
309
|
-
z-index: ${Ti};
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.ft-tooltip--content {
|
|
313
|
-
padding: 4px 8px;
|
|
314
|
-
border-radius: ${Zi};
|
|
315
|
-
background-color: ${Bi};
|
|
316
|
-
color: ${Ni};
|
|
317
|
-
position: relative;
|
|
318
|
-
word-break: break-word;
|
|
319
|
-
}
|
|
320
|
-
`;var Mi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class _i extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
321
|
-
<div part="container"
|
|
322
|
-
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
323
|
-
@mouseenter=${this.onHover}
|
|
324
|
-
@mouseleave=${this.onOut}
|
|
325
|
-
@focusin=${this.onHover}
|
|
326
|
-
@focusout=${this.onOut}
|
|
327
|
-
@touchstart=${this.onTouch}>
|
|
328
|
-
<slot></slot>
|
|
329
|
-
<div part="tooltip" role="tooltip" inert
|
|
330
|
-
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
331
|
-
?hidden=${!this.visible}>
|
|
332
|
-
<div part="tooltip-content" class="ft-tooltip--content">
|
|
333
|
-
<slot name="text"></slot>
|
|
334
|
-
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
335
|
-
</div>
|
|
336
|
-
</div>
|
|
337
|
-
</div>
|
|
338
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,n=(t.offsetWidth-i)/2;let s=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-e-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=s+"px",l.top=r+"px";const a=this.tooltip.getBoundingClientRect();let p=-a.x,h=a.x+a.width-window.innerWidth;l.left=s+Math.round(this.correctOutOfWindowPixels(p,h))+"px";let f=-a.y,d=a.y+a.height-window.innerHeight;l.top=r+Math.round(this.correctOutOfWindowPixels(f,d))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${Ai})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}_i.elementDefinitions={"ft-typography":ci},_i.styles=Fi,Mi([o.property()],_i.prototype,"text",void 0),Mi([o.property({type:Boolean})],_i.prototype,"manual",void 0),Mi([o.property({type:Boolean})],_i.prototype,"inline",void 0),Mi([o.property({type:Number})],_i.prototype,"delay",void 0),Mi([o.property()],_i.prototype,"position",void 0),Mi([o.queryAssignedNodes("",!0)],_i.prototype,"slotNodes",void 0),Mi([o.query(".ft-tooltip--container")],_i.prototype,"container",void 0),Mi([o.query(".ft-tooltip")],_i.prototype,"tooltip",void 0),Mi([o.query(".ft-tooltip--content")],_i.prototype,"tooltipContent",void 0),Mi([o.state()],_i.prototype,"visible",void 0),i.customElement("ft-tooltip")(_i);const Ui={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Ri=e.css`
|
|
289
|
+
`,zo={color:o.FtCssVariableFactory.extend("--ft-loader-color","",o.designSystemVariables.colorPrimary),size:o.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Fo=e.css`
|
|
339
290
|
:host {
|
|
340
291
|
line-height: 0;
|
|
341
292
|
}
|
|
@@ -344,8 +295,8 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
344
295
|
display: inline-block;
|
|
345
296
|
position: relative;
|
|
346
297
|
|
|
347
|
-
width: ${
|
|
348
|
-
height: ${
|
|
298
|
+
width: ${zo.size};
|
|
299
|
+
height: ${zo.size};
|
|
349
300
|
}
|
|
350
301
|
|
|
351
302
|
.ft-loader div {
|
|
@@ -354,7 +305,7 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
354
305
|
width: 25%;
|
|
355
306
|
height: 25%;
|
|
356
307
|
border-radius: 50%;
|
|
357
|
-
background: ${
|
|
308
|
+
background: ${zo.color};
|
|
358
309
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
359
310
|
}
|
|
360
311
|
|
|
@@ -401,17 +352,10 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
401
352
|
transform: translate(0, 0);
|
|
402
353
|
}
|
|
403
354
|
100% {
|
|
404
|
-
transform: translate(calc(0.35 * ${
|
|
355
|
+
transform: translate(calc(0.35 * ${zo.size}), 0);
|
|
405
356
|
}
|
|
406
357
|
}
|
|
407
|
-
|
|
408
|
-
<div class="ft-loader">
|
|
409
|
-
<div></div>
|
|
410
|
-
<div></div>
|
|
411
|
-
<div></div>
|
|
412
|
-
<div></div>
|
|
413
|
-
</div>
|
|
414
|
-
`}}Di.styles=Ri,i.customElement("ft-loader")(Di);const Wi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Hi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Wi,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",Jt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Wi),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Li=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Pi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Li,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Li)},Ki=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Gi=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Vi=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),qi=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Xi=[e.css`
|
|
358
|
+
`,Bo=o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorPrimary),Do={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorSurface),borderRadius:o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusL),color:Bo,fontSize:o.FtCssVariableFactory.extend("--ft-button-font-size","",io.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.FtCssVariableFactory.extend("--ft-button-ripple-color","",Bo),verticalPadding:o.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},Ho=o.FtCssVariableFactory.extend("--ft-button-primary-color","",o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorOnPrimary)),Ao={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-primary-background-color","",o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorPrimary)),color:Ho,rippleColor:o.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ho)},Go=o.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusM)),jo=o.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Po=o.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Mo=o.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),To=[e.css`
|
|
415
359
|
:host {
|
|
416
360
|
display: inline-block;
|
|
417
361
|
max-width: 100%;
|
|
@@ -422,7 +366,7 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
422
366
|
box-shadow: 0px 0px 0px transparent;
|
|
423
367
|
border: 0px solid transparent;
|
|
424
368
|
text-shadow: 0px 0px 0px transparent;
|
|
425
|
-
font-size: ${
|
|
369
|
+
font-size: ${Do.fontSize};
|
|
426
370
|
}
|
|
427
371
|
|
|
428
372
|
button:hover {
|
|
@@ -451,31 +395,31 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
451
395
|
border: none;
|
|
452
396
|
pointer-events: auto;
|
|
453
397
|
|
|
454
|
-
--ft-button-internal-line-height: max(calc(${
|
|
455
|
-
--ft-button-internal-color: ${
|
|
456
|
-
${
|
|
457
|
-
${
|
|
398
|
+
--ft-button-internal-line-height: max(calc(${Do.fontSize} + 2px), ${Do.iconSize});
|
|
399
|
+
--ft-button-internal-color: ${Do.color};
|
|
400
|
+
${o.setVariable(No.size,Do.iconSize)};
|
|
401
|
+
${o.setVariable(Ro.color,Do.rippleColor)};
|
|
458
402
|
|
|
459
|
-
border-radius: ${
|
|
460
|
-
padding: ${
|
|
461
|
-
background-color: ${
|
|
403
|
+
border-radius: ${Do.borderRadius};
|
|
404
|
+
padding: ${Do.verticalPadding} ${Do.horizontalPadding};
|
|
405
|
+
background-color: ${Do.backgroundColor};
|
|
462
406
|
color: var(--ft-button-internal-color);
|
|
463
407
|
-webkit-mask-image: radial-gradient(white, black);
|
|
464
408
|
}
|
|
465
409
|
|
|
466
410
|
.ft-button.ft-button--outlined {
|
|
467
411
|
border: 1px solid var(--ft-button-internal-color);
|
|
468
|
-
padding: calc(${
|
|
412
|
+
padding: calc(${Do.verticalPadding} - 1px) calc(${Do.horizontalPadding} - 1px);
|
|
469
413
|
}
|
|
470
414
|
|
|
471
415
|
.ft-button.ft-button--dense {
|
|
472
|
-
padding: ${
|
|
473
|
-
border-radius: ${
|
|
474
|
-
gap: ${
|
|
416
|
+
padding: ${jo} ${Po};
|
|
417
|
+
border-radius: ${Go};
|
|
418
|
+
gap: ${Mo};
|
|
475
419
|
}
|
|
476
420
|
|
|
477
421
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
478
|
-
padding: calc(${
|
|
422
|
+
padding: calc(${jo} - 1px) calc(${Po} - 1px);
|
|
479
423
|
}
|
|
480
424
|
|
|
481
425
|
.ft-button:not([disabled]):hover {
|
|
@@ -483,22 +427,22 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
483
427
|
}
|
|
484
428
|
|
|
485
429
|
.ft-button--round {
|
|
486
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
430
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Do.verticalPadding});
|
|
487
431
|
}
|
|
488
432
|
|
|
489
433
|
.ft-button--round.ft-button--dense {
|
|
490
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
434
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${jo});
|
|
491
435
|
}
|
|
492
436
|
|
|
493
437
|
.ft-button[disabled] {
|
|
494
438
|
filter: grayscale(1);
|
|
495
|
-
opacity: ${
|
|
439
|
+
opacity: ${Do.opacityDisabled};
|
|
496
440
|
}
|
|
497
441
|
|
|
498
442
|
.ft-button.ft-button--primary {
|
|
499
|
-
background-color: ${
|
|
500
|
-
--ft-button-internal-color: ${
|
|
501
|
-
${
|
|
443
|
+
background-color: ${Ao.backgroundColor};
|
|
444
|
+
--ft-button-internal-color: ${Ao.color};
|
|
445
|
+
${o.setVariable(Ro.color,Ao.rippleColor)};
|
|
502
446
|
}
|
|
503
447
|
|
|
504
448
|
.ft-button:focus {
|
|
@@ -511,13 +455,13 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
511
455
|
white-space: nowrap;
|
|
512
456
|
text-overflow: ellipsis;
|
|
513
457
|
display: block;
|
|
514
|
-
margin: 0 ${
|
|
515
|
-
${
|
|
516
|
-
${
|
|
458
|
+
margin: 0 ${Do.iconPadding};
|
|
459
|
+
${o.setVariable(io.fontSize,"1em")};
|
|
460
|
+
${o.setVariable(io.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
517
461
|
}
|
|
518
462
|
|
|
519
463
|
.ft-button--dense .ft-button--label {
|
|
520
|
-
margin: 0 ${
|
|
464
|
+
margin: 0 ${Mo};
|
|
521
465
|
}
|
|
522
466
|
|
|
523
467
|
.ft-button--label[hidden] {
|
|
@@ -530,13 +474,13 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
530
474
|
}
|
|
531
475
|
|
|
532
476
|
.ft-button--label[hidden] + ft-icon {
|
|
533
|
-
margin: 0 calc(${
|
|
534
|
-
padding: 0 ${
|
|
477
|
+
margin: 0 calc(${Do.horizontalPadding} * -1);
|
|
478
|
+
padding: 0 ${Do.verticalPadding};
|
|
535
479
|
}
|
|
536
480
|
|
|
537
481
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
538
|
-
margin: 0 calc(${
|
|
539
|
-
padding: 0 ${
|
|
482
|
+
margin: 0 calc(${Po} * -1);
|
|
483
|
+
padding: 0 ${jo};
|
|
540
484
|
}
|
|
541
485
|
|
|
542
486
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -545,19 +489,84 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
545
489
|
}
|
|
546
490
|
|
|
547
491
|
ft-loader {
|
|
548
|
-
${
|
|
549
|
-
${
|
|
492
|
+
${o.setVariable(zo.size,Do.iconSize)};
|
|
493
|
+
${o.setVariable(zo.color,"var(--ft-button-internal-color)")};
|
|
550
494
|
}
|
|
551
|
-
`,
|
|
495
|
+
`,o.noTextSelect];var _o=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Yo 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:r,y:i}=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!=r?r-a.x:a.width/2),this.originY=Math.round(null!=i?i-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`
|
|
496
|
+
<style>
|
|
497
|
+
.ft-ripple .ft-ripple--effect {
|
|
498
|
+
left: ${this.originX}px;
|
|
499
|
+
top: ${this.originY}px;
|
|
500
|
+
}
|
|
501
|
+
</style>
|
|
502
|
+
<div class="${a.classMap(t)}">
|
|
503
|
+
<div class="ft-ripple--background"></div>
|
|
504
|
+
<div class="ft-ripple--effect"></div>
|
|
505
|
+
</div>
|
|
506
|
+
`}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"),r=o("touchend","touchcancel"),i=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",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),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",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),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 r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}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()}}Yo.elementDefinitions={},Yo.styles=Ko,_o([r.property({type:Boolean})],Yo.prototype,"primary",void 0),_o([r.property({type:Boolean})],Yo.prototype,"secondary",void 0),_o([r.property({type:Boolean})],Yo.prototype,"unbounded",void 0),_o([r.property({type:Boolean})],Yo.prototype,"activated",void 0),_o([r.property({type:Boolean})],Yo.prototype,"selected",void 0),_o([r.property({type:Boolean})],Yo.prototype,"disabled",void 0),_o([r.state()],Yo.prototype,"hovered",void 0),_o([r.state()],Yo.prototype,"focused",void 0),_o([r.state()],Yo.prototype,"pressed",void 0),_o([r.state()],Yo.prototype,"rippling",void 0),_o([r.state()],Yo.prototype,"originX",void 0),_o([r.state()],Yo.prototype,"originY",void 0),_o([r.query(".ft-ripple")],Yo.prototype,"ripple",void 0),_o([r.query(".ft-ripple--effect")],Yo.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(Yo);const Vo=o.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),qo=o.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Xo=o.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),Jo=o.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),Qo=o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),te=o.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),oe=e.css`
|
|
507
|
+
.ft-tooltip--container {
|
|
508
|
+
display: block;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.ft-tooltip--inline {
|
|
512
|
+
display: inline-block;
|
|
513
|
+
max-width: 100%;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.ft-tooltip {
|
|
517
|
+
position: absolute;
|
|
518
|
+
box-sizing: border-box;
|
|
519
|
+
overflow: hidden;
|
|
520
|
+
width: max-content;
|
|
521
|
+
max-width: ${te};
|
|
522
|
+
text-align: center;
|
|
523
|
+
padding: ${Vo};
|
|
524
|
+
z-index: ${Jo};
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.ft-tooltip--content {
|
|
528
|
+
padding: 4px 8px;
|
|
529
|
+
border-radius: ${Qo};
|
|
530
|
+
background-color: ${Xo};
|
|
531
|
+
color: ${qo};
|
|
532
|
+
position: relative;
|
|
533
|
+
word-break: break-word;
|
|
534
|
+
}
|
|
535
|
+
`;var ee=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class re extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
536
|
+
<div part="container"
|
|
537
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
538
|
+
@mouseenter=${this.onHover}
|
|
539
|
+
@mouseleave=${this.onOut}
|
|
540
|
+
@focusin=${this.onHover}
|
|
541
|
+
@focusout=${this.onOut}
|
|
542
|
+
@touchstart=${this.onTouch}>
|
|
543
|
+
<slot></slot>
|
|
544
|
+
<div part="tooltip" role="tooltip" inert
|
|
545
|
+
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
546
|
+
?hidden=${!this.visible}>
|
|
547
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
548
|
+
<slot name="text"></slot>
|
|
549
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
550
|
+
</div>
|
|
551
|
+
</div>
|
|
552
|
+
</div>
|
|
553
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,r=(t.offsetHeight-e)/2,i=(t.offsetWidth-o)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+r-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+r-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=a+"px",l.top=n+"px";const c=this.tooltip.getBoundingClientRect();let p=-c.x,s=c.x+c.width-window.innerWidth;l.left=a+Math.round(this.correctOutOfWindowPixels(p,s))+"px";let f=-c.y,d=c.y+c.height-window.innerHeight;l.top=n+Math.round(this.correctOutOfWindowPixels(f,d))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${te})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}re.elementDefinitions={"ft-typography":vo},re.styles=oe,ee([r.property()],re.prototype,"text",void 0),ee([r.property({type:Boolean})],re.prototype,"manual",void 0),ee([r.property({type:Boolean})],re.prototype,"inline",void 0),ee([r.property({type:Number})],re.prototype,"delay",void 0),ee([r.property()],re.prototype,"position",void 0),ee([r.queryAssignedNodes("",!0)],re.prototype,"slotNodes",void 0),ee([r.query(".ft-tooltip--container")],re.prototype,"container",void 0),ee([r.query(".ft-tooltip")],re.prototype,"tooltip",void 0),ee([r.query(".ft-tooltip--content")],re.prototype,"tooltipContent",void 0),ee([r.state()],re.prototype,"visible",void 0),o.customElement("ft-tooltip")(re);class ie extends o.FtLitElement{render(){return e.html`
|
|
554
|
+
<div class="ft-loader">
|
|
555
|
+
<div></div>
|
|
556
|
+
<div></div>
|
|
557
|
+
<div></div>
|
|
558
|
+
<div></div>
|
|
559
|
+
</div>
|
|
560
|
+
`}}ie.styles=Fo,o.customElement("ft-loader")(ie);var ae=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ne extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
|
|
552
561
|
<button part="button"
|
|
553
|
-
class="${
|
|
562
|
+
class="${a.classMap(this.buttonClasses)}"
|
|
554
563
|
aria-label="${this.getLabel()}"
|
|
555
564
|
?disabled=${this.isDisabled()}>
|
|
556
565
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
557
566
|
<ft-typography part="label"
|
|
558
|
-
variant
|
|
567
|
+
variant=${this.typographyVariant}
|
|
559
568
|
element="span"
|
|
560
|
-
class="ft-button--label ${
|
|
569
|
+
class="ft-button--label ${o.isSafari?"ft-safari-ellipsis-fix":""}"
|
|
561
570
|
?hidden=${!this.hasTextContent()}>
|
|
562
571
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
563
572
|
</ft-typography>
|
|
@@ -571,14 +580,232 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
571
580
|
</ft-tooltip>
|
|
572
581
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
573
582
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
574
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
583
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ne.elementDefinitions={"ft-ripple":Yo,"ft-tooltip":re,"ft-typography":vo,"ft-icon":wo,"ft-loader":ie},ae([r.property({type:String,reflect:!0})],ne.prototype,"role",void 0),ae([r.property()],ne.prototype,"type",void 0),ae([r.property({type:Boolean})],ne.prototype,"disabled",void 0),ae([r.property()],ne.prototype,"label",void 0),ae([r.property()],ne.prototype,"icon",void 0),ae([r.property()],ne.prototype,"iconVariant",void 0),ae([r.property({type:Boolean})],ne.prototype,"trailingIcon",void 0),ae([r.property({type:Boolean})],ne.prototype,"loading",void 0),ae([r.property()],ne.prototype,"tooltipPosition",void 0),ae([r.property({type:Boolean})],ne.prototype,"hideTooltip",void 0),ae([r.property({type:Boolean})],ne.prototype,"forceTooltip",void 0),ae([r.query(".ft-button")],ne.prototype,"button",void 0),ae([r.query(".ft-button--label slot")],ne.prototype,"slottedContent",void 0);var le=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ce extends ne{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}ce.styles=[o.safariEllipsisFix,To],le([r.property({type:Boolean})],ce.prototype,"primary",void 0),le([r.property({type:Boolean})],ce.prototype,"outlined",void 0),le([r.property({type:Boolean})],ce.prototype,"disabled",void 0),le([r.property({type:Boolean})],ce.prototype,"dense",void 0),le([r.property({type:Boolean})],ce.prototype,"round",void 0);const pe=[e.css`
|
|
584
|
+
:host {
|
|
585
|
+
display: inline-block;
|
|
586
|
+
max-width: 100%;
|
|
587
|
+
pointer-events: none;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
/** Remove default button styles **/
|
|
591
|
+
|
|
592
|
+
button {
|
|
593
|
+
box-shadow: 0 0 0 transparent;
|
|
594
|
+
border: 0 solid transparent;
|
|
595
|
+
text-shadow: 0 0 0 transparent;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
button:hover {
|
|
599
|
+
box-shadow: 0 0 0 transparent;
|
|
600
|
+
text-shadow: 0 0 0 transparent;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
button:active {
|
|
604
|
+
outline: none;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
button:focus {
|
|
608
|
+
outline: 0;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/** Base styles **/
|
|
612
|
+
|
|
613
|
+
.ft-button {
|
|
614
|
+
position: relative;
|
|
615
|
+
display: flex;
|
|
616
|
+
justify-content: center;
|
|
617
|
+
align-items: center;
|
|
618
|
+
width: 100%;
|
|
619
|
+
overflow: hidden;
|
|
620
|
+
box-sizing: border-box;
|
|
621
|
+
pointer-events: auto;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.ft-button:not([disabled]):hover {
|
|
625
|
+
cursor: pointer;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
.ft-button:focus {
|
|
629
|
+
outline: none;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.ft-button:focus-visible {
|
|
633
|
+
outline-color: ${tt.focusFocusRingColor};
|
|
634
|
+
outline-style: solid;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
ft-icon {
|
|
638
|
+
flex-shrink: 0;
|
|
639
|
+
position: relative;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
643
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
644
|
+
order: -1;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.ft-button--label {
|
|
648
|
+
position: relative;
|
|
649
|
+
overflow: hidden;
|
|
650
|
+
white-space: nowrap;
|
|
651
|
+
text-overflow: ellipsis;
|
|
652
|
+
display: block;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
.ft-button--label[hidden] {
|
|
656
|
+
display: none;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/** Primary styles **/
|
|
660
|
+
|
|
661
|
+
.ft-button--primary {
|
|
662
|
+
${o.setVariable(zo.color,tt.primaryIconColor)};
|
|
663
|
+
|
|
664
|
+
${o.setVariable(Ro.color,tt.primaryStateLayerColor)};
|
|
665
|
+
${o.setVariable(Ro.opacityContentOnSurfaceHover,tt.primaryStateLayerOpacityHover)};
|
|
666
|
+
${o.setVariable(Ro.opacityContentOnSurfaceFocused,tt.primaryStateLayerOpacityFocus)};
|
|
667
|
+
${o.setVariable(Ro.opacityContentOnSurfaceSelected,tt.primaryStateLayerOpacityActive)};
|
|
668
|
+
${o.setVariable(Ro.opacityContentOnSurfacePressed,tt.primaryStateLayerOpacityActive)};
|
|
669
|
+
|
|
670
|
+
background-color: ${tt.primaryBackgroundColor};
|
|
671
|
+
color: ${tt.primaryColor};
|
|
672
|
+
border-style: none;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.ft-button--primary[disabled] {
|
|
676
|
+
opacity: ${tt.primaryComponentOpacityDisabled};
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.ft-button--primary ft-icon {
|
|
680
|
+
color: ${tt.primaryIconColor};
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/** Secondary styles **/
|
|
684
|
+
|
|
685
|
+
.ft-button--secondary {
|
|
686
|
+
${o.setVariable(zo.color,tt.secondaryIconColor)};
|
|
687
|
+
|
|
688
|
+
${o.setVariable(Ro.color,tt.secondaryStateLayerColor)};
|
|
689
|
+
${o.setVariable(Ro.opacityContentOnSurfaceHover,tt.secondaryStateLayerOpacityHover)};
|
|
690
|
+
${o.setVariable(Ro.opacityContentOnSurfaceFocused,tt.secondaryStateLayerOpacityFocus)};
|
|
691
|
+
${o.setVariable(Ro.opacityContentOnSurfaceSelected,tt.secondaryStateLayerOpacityActive)};
|
|
692
|
+
${o.setVariable(Ro.opacityContentOnSurfacePressed,tt.secondaryStateLayerOpacityActive)};
|
|
693
|
+
|
|
694
|
+
background-color: ${tt.secondaryBackgroundColor};
|
|
695
|
+
color: ${tt.secondaryColor};
|
|
696
|
+
border-color: ${tt.secondaryBorderColor};
|
|
697
|
+
border-style: solid;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.ft-button--secondary[disabled] {
|
|
701
|
+
opacity: ${tt.secondaryComponentOpacityDisabled};
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.ft-button--secondary ft-icon {
|
|
705
|
+
color: ${tt.secondaryIconColor};
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
/** Tertiary styles **/
|
|
709
|
+
|
|
710
|
+
.ft-button--tertiary {
|
|
711
|
+
${o.setVariable(zo.color,tt.tertiaryIconColor)};
|
|
712
|
+
|
|
713
|
+
${o.setVariable(Ro.color,tt.tertiaryStateLayerColor)};
|
|
714
|
+
${o.setVariable(Ro.opacityContentOnSurfaceHover,tt.tertiaryStateLayerOpacityHover)};
|
|
715
|
+
${o.setVariable(Ro.opacityContentOnSurfaceFocused,tt.tertiaryStateLayerOpacityFocus)};
|
|
716
|
+
${o.setVariable(Ro.opacityContentOnSurfaceSelected,tt.tertiaryStateLayerOpacityActive)};
|
|
717
|
+
${o.setVariable(Ro.opacityContentOnSurfacePressed,tt.tertiaryStateLayerOpacityActive)};
|
|
718
|
+
|
|
719
|
+
background-color: ${tt.tertiaryBackgroundColor};
|
|
720
|
+
color: ${tt.tertiaryColor};
|
|
721
|
+
border-style: none;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
.ft-button--tertiary[disabled] {
|
|
725
|
+
opacity: ${tt.tertiaryComponentOpacityDisabled};
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.ft-button--tertiary ft-icon {
|
|
729
|
+
color: ${tt.tertiaryIconColor};
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
/** Neutral styles **/
|
|
733
|
+
|
|
734
|
+
.ft-button--neutral {
|
|
735
|
+
${o.setVariable(zo.color,tt.neutralIconColor)};
|
|
736
|
+
|
|
737
|
+
${o.setVariable(Ro.backgroundColor,tt.neutralStateLayerColor)};
|
|
738
|
+
${o.setVariable(Ro.opacityContentOnSurfaceHover,tt.neutralStateLayerOpacityHover)};
|
|
739
|
+
${o.setVariable(Ro.opacityContentOnSurfaceFocused,tt.neutralStateLayerOpacityFocus)};
|
|
740
|
+
${o.setVariable(Ro.opacityContentOnSurfaceSelected,tt.neutralStateLayerOpacityActive)};
|
|
741
|
+
${o.setVariable(Ro.opacityContentOnSurfacePressed,tt.neutralStateLayerOpacityActive)};
|
|
742
|
+
|
|
743
|
+
background-color: ${tt.neutralBackgroundColor};
|
|
744
|
+
color: ${tt.neutralColor};
|
|
745
|
+
border-style: none;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.ft-button--neutral[disabled] {
|
|
749
|
+
opacity: ${tt.neutralComponentOpacityDisabled};
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.ft-button--neutral ft-icon {
|
|
753
|
+
color: ${tt.neutralIconColor};
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/** Large styles **/
|
|
757
|
+
|
|
758
|
+
.ft-button--large {
|
|
759
|
+
${o.setVariable(No.size,tt.largeIconSize)};
|
|
760
|
+
${o.setVariable(zo.size,tt.largeIconSize)};
|
|
761
|
+
|
|
762
|
+
height: ${tt.largeHeight};
|
|
763
|
+
padding: 0 ${tt.largeHorizontalPadding};
|
|
764
|
+
gap: ${tt.largeGap};
|
|
765
|
+
border-radius: ${tt.largeBorderRadius};
|
|
766
|
+
border-width: ${tt.largeBorderWidth};
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.ft-button--large:focus-visible {
|
|
770
|
+
outline-width: ${tt.largeFocusOutlineWidth};
|
|
771
|
+
outline-offset: ${tt.largeFocusOutlineOffset};
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.ft-button--large.ft-button--icon-only {
|
|
775
|
+
width: ${tt.largeIconOnlyWidth};
|
|
776
|
+
padding: unset;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
/** Small styles **/
|
|
780
|
+
|
|
781
|
+
.ft-button--small {
|
|
782
|
+
${o.setVariable(No.size,tt.smallIconSize)};
|
|
783
|
+
${o.setVariable(zo.size,tt.smallIconSize)};
|
|
784
|
+
|
|
785
|
+
height: ${tt.smallHeight};
|
|
786
|
+
padding: 0 ${tt.smallHorizontalPadding};
|
|
787
|
+
gap: ${tt.smallGap};
|
|
788
|
+
border-radius: ${tt.smallBorderRadius};
|
|
789
|
+
border-width: ${tt.smallBorderWidth};
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
.ft-button--small:focus-visible {
|
|
793
|
+
outline-width: ${tt.smallFocusOutlineWidth};
|
|
794
|
+
outline-offset: ${tt.smallFocusOutlineOffset};
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.ft-button--small.ft-button--icon-only {
|
|
798
|
+
width: ${tt.smallIconOnlyWidth};
|
|
799
|
+
padding: unset;
|
|
800
|
+
}
|
|
801
|
+
`,o.noTextSelect];var se=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class fe extends ne{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Y.caption1medium:Y.body2medium}}fe.styles=[o.safariEllipsisFix,pe],se([r.property({type:Boolean})],fe.prototype,"primary",void 0),se([r.property({type:Boolean})],fe.prototype,"secondary",void 0),se([r.property({type:Boolean})],fe.prototype,"tertiary",void 0),se([r.property({type:Boolean})],fe.prototype,"neutral",void 0),se([r.property({type:Boolean})],fe.prototype,"small",void 0),o.customElement("ft-button")(ce),o.customElement("ftds-button")(fe);const de={zIndex:o.FtCssVariableFactory.create("--ft-dialog-z-index","","NUMBER","2"),overlayBackgroundColor:o.FtCssVariableFactory.create("--ft-dialog-overlay-background-color","","COLOR","rgba(0, 0, 0, 0.3)"),height:o.FtCssVariableFactory.create("--ft-dialog-height","","SIZE","unset"),width:o.FtCssVariableFactory.create("--ft-dialog-width","","SIZE","unset"),minWidth:o.FtCssVariableFactory.create("--ft-dialog-min-width","","SIZE","unset"),paddingTop:o.FtCssVariableFactory.create("--ft-dialog-padding-top","","SIZE","20px"),paddingSide:o.FtCssVariableFactory.create("--ft-dialog-padding-side","","SIZE","16px"),paddingButtons:o.FtCssVariableFactory.create("--ft-dialog-padding-buttons","","SIZE","20px"),colorSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system"),headingColor:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceMedium,"Design system"),borderRadiusS:o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),elevation24:o.FtCssVariableFactory.external(o.designSystemVariables.elevation24,"Design system")},he=e.css`
|
|
575
802
|
.ft-dialog {
|
|
576
803
|
position: fixed;
|
|
577
804
|
top: 0;
|
|
578
805
|
right: 0;
|
|
579
806
|
bottom: 0;
|
|
580
807
|
left: 0;
|
|
581
|
-
z-index: ${
|
|
808
|
+
z-index: ${de.zIndex};
|
|
582
809
|
|
|
583
810
|
display: flex;
|
|
584
811
|
flex-direction: column;
|
|
@@ -598,7 +825,7 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
598
825
|
height: 100%;
|
|
599
826
|
width: 100%;
|
|
600
827
|
|
|
601
|
-
background-color: ${
|
|
828
|
+
background-color: ${de.overlayBackgroundColor};
|
|
602
829
|
|
|
603
830
|
}
|
|
604
831
|
|
|
@@ -606,26 +833,26 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
606
833
|
position: fixed;
|
|
607
834
|
display: flex;
|
|
608
835
|
flex-direction: column;
|
|
609
|
-
gap: ${
|
|
836
|
+
gap: ${de.paddingButtons};
|
|
610
837
|
|
|
611
|
-
width: ${
|
|
612
|
-
height: ${
|
|
838
|
+
width: ${de.width};
|
|
839
|
+
height: ${de.height};
|
|
613
840
|
max-width: 95vw;
|
|
614
841
|
max-height: 95vh;
|
|
615
|
-
min-width: ${
|
|
842
|
+
min-width: ${de.minWidth};
|
|
616
843
|
|
|
617
|
-
padding-top: ${
|
|
618
|
-
padding-bottom: ${
|
|
844
|
+
padding-top: ${de.paddingTop};
|
|
845
|
+
padding-bottom: ${de.paddingTop};
|
|
619
846
|
|
|
620
|
-
background-color: ${
|
|
847
|
+
background-color: ${de.colorSurface};
|
|
621
848
|
|
|
622
|
-
border-radius: ${
|
|
623
|
-
box-shadow: ${
|
|
849
|
+
border-radius: ${de.borderRadiusS};
|
|
850
|
+
box-shadow: ${de.elevation24};
|
|
624
851
|
}
|
|
625
852
|
|
|
626
853
|
.ft-dialog-wrapper > * {
|
|
627
|
-
padding-right: ${
|
|
628
|
-
padding-left: ${
|
|
854
|
+
padding-right: ${de.paddingSide};
|
|
855
|
+
padding-left: ${de.paddingSide};
|
|
629
856
|
}
|
|
630
857
|
|
|
631
858
|
.ft-dialog-content {
|
|
@@ -640,7 +867,7 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
640
867
|
align-items: center;
|
|
641
868
|
gap: 8px;
|
|
642
869
|
|
|
643
|
-
color: ${
|
|
870
|
+
color: ${de.headingColor};
|
|
644
871
|
}
|
|
645
872
|
|
|
646
873
|
.ft-dialog-heading * {
|
|
@@ -656,7 +883,7 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
656
883
|
}
|
|
657
884
|
|
|
658
885
|
.ft-dialog-heading ft-button {
|
|
659
|
-
${
|
|
886
|
+
${o.setVariable(Do.color,de.headingColor)};
|
|
660
887
|
}
|
|
661
888
|
|
|
662
889
|
.ft-dialog-buttons.ft-dialog-no-buttons {
|
|
@@ -670,7 +897,7 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
670
897
|
gap: 8px;
|
|
671
898
|
}
|
|
672
899
|
|
|
673
|
-
`;var
|
|
900
|
+
`;var ge=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ye extends o.FtLitElement{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.closable=!1,this.beforeClose=()=>!0,this.heading="",this.icon="",this.watchEscapeKey=t=>{"Escape"===t.key&&this.closeOnEsc&&this.close()}}render(){return this.opened?e.html`
|
|
674
901
|
<div class="ft-dialog">
|
|
675
902
|
<div class="ft-dialog-overlay" @click="${()=>this.onClickOutside()}"></div>
|
|
676
903
|
<div class="ft-dialog-wrapper">
|
|
@@ -696,4 +923,4 @@ const H=Symbol.for(""),L=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t
|
|
|
696
923
|
></slot>
|
|
697
924
|
</div>
|
|
698
925
|
</div>
|
|
699
|
-
`:null}updated(t){super.updated(t),t.has("opened")&&(this.opened?setTimeout((()=>{document.addEventListener("keydown",this.watchEscapeKey)}),0):document.removeEventListener("keydown",this.watchEscapeKey))}close(){this.beforeClose()&&(this.opened=!1,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!1}})))}open(){this.opened=!0,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!0}}))}onClickOutside(){this.closeOnClickOutside&&this.close()}}
|
|
926
|
+
`:null}updated(t){super.updated(t),t.has("opened")&&(this.opened?setTimeout((()=>{document.addEventListener("keydown",this.watchEscapeKey)}),0):document.removeEventListener("keydown",this.watchEscapeKey))}close(){this.beforeClose()&&(this.opened=!1,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!1}})))}open(){this.opened=!0,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!0}}))}onClickOutside(){this.closeOnClickOutside&&this.close()}}ye.elementDefinitions={"ft-typography":vo,"ft-icon":wo,"ft-button":ce},ye.styles=he,ge([r.property({type:Boolean,hasChanged:(t,o)=>!1===o&&!0===t||!0===o&&!1===t})],ye.prototype,"opened",void 0),ge([r.property({type:Boolean})],ye.prototype,"closeOnEsc",void 0),ge([r.property({type:Boolean})],ye.prototype,"closeOnClickOutside",void 0),ge([r.property({type:Boolean})],ye.prototype,"closable",void 0),ge([r.property({type:()=>Boolean})],ye.prototype,"beforeClose",void 0),ge([r.property()],ye.prototype,"heading",void 0),ge([r.property()],ye.prototype,"icon",void 0),ge([r.property()],ye.prototype,"iconVariant",void 0),ge([r.queryAssignedElements({slot:"buttons"})],ye.prototype,"buttons",void 0),o.customElement("ft-dialog")(ye),t.FtDialog=ye,t.FtDialogCssVariables=de,t.styles=he}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);
|