@lifesg/react-design-system 1.0.0-alpha.19 → 1.0.0-alpha.20
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/accordion/index.js +4 -4
- package/accordion/index.js.map +1 -1
- package/alert/index.js +42 -42
- package/alert/index.js.map +1 -1
- package/box-container/index.js +5 -5
- package/box-container/index.js.map +1 -1
- package/breadcrumb/index.js +2 -2
- package/breadcrumb/index.js.map +1 -1
- package/button/index.js +125 -125
- package/button/index.js.map +1 -1
- package/card/index.js +23 -23
- package/card/index.js.map +1 -1
- package/checkbox/index.js +3 -3
- package/checkbox/index.js.map +1 -1
- package/cjs/index.js +44 -46
- package/cjs/index.js.map +1 -1
- package/color/color.d.ts +4 -59
- package/color/index.js +1 -1
- package/color/index.js.map +1 -1
- package/color/types.d.ts +4 -0
- package/date-input/index.js +53 -49
- package/date-input/index.js.map +1 -1
- package/design-token/design-token.d.ts +4 -0
- package/design-token/index.d.ts +2 -0
- package/design-token/index.js +6 -0
- package/design-token/index.js.map +1 -0
- package/{icon → design-token}/package.json +1 -1
- package/design-token/types.d.ts +7 -0
- package/error-display/index.js +92 -92
- package/error-display/index.js.map +1 -1
- package/feedback-rating/index.js +58 -58
- package/feedback-rating/index.js.map +1 -1
- package/footer/index.js +10 -10
- package/footer/index.js.map +1 -1
- package/form/index.js +144 -140
- package/form/index.js.map +1 -1
- package/icon-button/index.js +3 -3
- package/icon-button/index.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +63 -65
- package/index.js.map +1 -1
- package/input/index.js +18 -14
- package/input/index.js.map +1 -1
- package/input-group/index.js +125 -121
- package/input-group/index.js.map +1 -1
- package/input-select/index.js +32 -28
- package/input-select/index.js.map +1 -1
- package/input-textarea/index.js +112 -108
- package/input-textarea/index.js.map +1 -1
- package/link-list/index.js +35 -35
- package/link-list/index.js.map +1 -1
- package/modal/index.js +15 -15
- package/modal/index.js.map +1 -1
- package/navbar/index.js +188 -188
- package/navbar/index.js.map +1 -1
- package/notification-banner/index.js +2 -2
- package/notification-banner/index.js.map +1 -1
- package/package.json +1 -1
- package/phone-number-input/index.js +126 -122
- package/phone-number-input/index.js.map +1 -1
- package/popover/index.js +7 -7
- package/popover/index.js.map +1 -1
- package/progress-indicator/index.js +7 -7
- package/progress-indicator/index.js.map +1 -1
- package/radio-button/index.js +7 -7
- package/radio-button/index.js.map +1 -1
- package/smart-app-banner/index.js +14 -14
- package/smart-app-banner/index.js.map +1 -1
- package/spec/design-token-spec/base-design-token-set.d.ts +2 -0
- package/text/index.js +18 -18
- package/text/index.js.map +1 -1
- package/text/text-style.d.ts +4 -100
- package/text-list/index.js +7 -7
- package/text-list/index.js.map +1 -1
- package/theme/design-token-helper.d.ts +2 -0
- package/theme/index.js +1 -1
- package/theme/index.js.map +1 -1
- package/theme/types.d.ts +10 -1
- package/timeline/index.js +8 -8
- package/timeline/index.js.map +1 -1
- package/timepicker/index.js +61 -57
- package/timepicker/index.js.map +1 -1
- package/toggle-button/index.js +109 -109
- package/toggle-button/index.js.map +1 -1
- package/tooltip/index.js +5 -5
- package/tooltip/index.js.map +1 -1
- package/unit-number/index.js +113 -109
- package/unit-number/index.js.map +1 -1
- package/util/utility-types.d.ts +3 -0
- package/icon/document-with-pencil-icon.d.ts +0 -5
- package/icon/icon-data.d.ts +0 -3
- package/icon/icon-style.d.ts +0 -1
- package/icon/icon.d.ts +0 -6
- package/icon/index.d.ts +0 -2
- package/icon/index.js +0 -8
- package/icon/index.js.map +0 -1
- package/icon/location-unknown-icon.d.ts +0 -5
- package/icon/mail-unread-icon.d.ts +0 -5
- package/icon/types.d.ts +0 -18
package/input-textarea/index.js
CHANGED
|
@@ -1,162 +1,166 @@
|
|
|
1
|
-
import t,{jsxs as e,jsx as n,Fragment as r}from"react/jsx-runtime";import o,{useState as i,useEffect as a}from"react";import l,{css as c}from"styled-components";var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h=Array.isArray,u="object"==typeof g&&g&&g.Object===Object&&g,f="object"==typeof self&&self&&self.Object===Object&&self,d=u||f||Function("return this")(),p=d.Symbol,s=p,y=Object.prototype,m=y.hasOwnProperty,F=y.toString,S=s?s.toStringTag:void 0;var v=function(t){var e=m.call(t,S),n=t[S];try{t[S]=void 0;var r=!0}catch(t){}var o=F.call(t);return r&&(e?t[S]=n:delete t[S]),o},B=Object.prototype.toString;var H=v,$=function(t){return B.call(t)},b=p?p.toStringTag:void 0;var D=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":b&&b in Object(t)?H(t):$(t)};var _=D,x=function(t){return null!=t&&"object"==typeof t};var C=function(t){return"symbol"==typeof t||x(t)&&"[object Symbol]"==_(t)},z=h,w=C,E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W=/^\w*$/;var A=function(t,e){if(z(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!w(t))||(W.test(t)||!E.test(t)||null!=e&&t in Object(e))};var k=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},N=D,O=k;var j,V=function(t){if(!O(t))return!1;var e=N(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},L=d["__core-js_shared__"],R=(j=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"";var T=function(t){return!!R&&R in t},I=Function.prototype.toString;var P=V,X=T,G=k,M=function(t){if(null!=t){try{return I.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Z=/^\[object .+?Constructor\]$/,U=Function.prototype,q=Object.prototype,J=U.toString,K=q.hasOwnProperty,Q=RegExp("^"+J.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Y=function(t){return!(!G(t)||X(t))&&(P(t)?Q:Z).test(M(t))},tt=function(t,e){return null==t?void 0:t[e]};var et=function(t,e){var n=tt(t,e);return Y(n)?n:void 0},nt=et(Object,"create"),rt=nt;var ot=function(){this.__data__=rt?rt(null):{},this.size=0};var it=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},at=nt,lt=Object.prototype.hasOwnProperty;var ct=function(t){var e=this.__data__;if(at){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return lt.call(e,t)?e[t]:void 0},gt=nt,ht=Object.prototype.hasOwnProperty;var ut=nt;var ft=ot,dt=it,pt=ct,st=function(t){var e=this.__data__;return gt?void 0!==e[t]:ht.call(e,t)},yt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ut&&void 0===e?"__lodash_hash_undefined__":e,this};function mt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}mt.prototype.clear=ft,mt.prototype.delete=dt,mt.prototype.get=pt,mt.prototype.has=st,mt.prototype.set=yt;var Ft=mt;var St=function(){this.__data__=[],this.size=0};var vt=function(t,e){return t===e||t!=t&&e!=e};var Bt=function(t,e){for(var n=t.length;n--;)if(vt(t[n][0],e))return n;return-1},Ht=Bt,$t=Array.prototype.splice;var bt=Bt;var Dt=Bt;var _t=Bt;var xt=St,Ct=function(t){var e=this.__data__,n=Ht(e,t);return!(n<0)&&(n==e.length-1?e.pop():$t.call(e,n,1),--this.size,!0)},zt=function(t){var e=this.__data__,n=bt(e,t);return n<0?void 0:e[n][1]},wt=function(t){return Dt(this.__data__,t)>-1},Et=function(t,e){var n=this.__data__,r=_t(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Wt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Wt.prototype.clear=xt,Wt.prototype.delete=Ct,Wt.prototype.get=zt,Wt.prototype.has=wt,Wt.prototype.set=Et;var At=Wt,kt=et(d,"Map"),Nt=Ft,Ot=At,jt=kt;var Vt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Lt=function(t,e){var n=t.__data__;return Vt(e)?n["string"==typeof e?"string":"hash"]:n.map},Rt=Lt;var Tt=Lt;var It=Lt;var Pt=Lt;var Xt=function(){this.size=0,this.__data__={hash:new Nt,map:new(jt||Ot),string:new Nt}},Gt=function(t){var e=Rt(this,t).delete(t);return this.size-=e?1:0,e},Mt=function(t){return Tt(this,t).get(t)},Zt=function(t){return It(this,t).has(t)},Ut=function(t,e){var n=Pt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function qt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}qt.prototype.clear=Xt,qt.prototype.delete=Gt,qt.prototype.get=Mt,qt.prototype.has=Zt,qt.prototype.set=Ut;var Jt=qt;function Kt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Kt.Cache||Jt),n}Kt.Cache=Jt;var Qt=Kt;var Yt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/\\(\\)?/g,ee=function(t){var e=Qt(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Yt,(function(t,n,r,o){e.push(r?o.replace(te,"$1"):n||t)})),e}));var ne=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o},re=h,oe=C,ie=p?p.prototype:void 0,ae=ie?ie.toString:void 0;var le=function t(e){if("string"==typeof e)return e;if(re(e))return ne(e,t)+"";if(oe(e))return ae?ae.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},ce=le;var ge=h,he=A,ue=ee,fe=function(t){return null==t?"":ce(t)};var de=C;var pe=function(t,e){return ge(t)?t:he(t,e)?[t]:ue(fe(t))},se=function(t){if("string"==typeof t||de(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var ye=function(t,e){for(var n=0,r=(e=pe(e,t)).length;null!=t&&n<r;)t=t[se(e[n++])];return n&&n==r?t:void 0};var me=function(t,e,n){var r=null==t?void 0:ye(t,e);return void 0===r?n:r};const Fe=(t,e,n)=>e?me(n,e)||me(t,e):n||t,Se=(t,e)=>{const n=e||t.defaultValue;return me(t.collections,n)};var ve;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme"}(ve||(ve={}));const Be={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}}},defaultValue:"base"},He=t=>e=>{const n=e.theme,r=Se(Be,n[ve.colorScheme]);return n.options&&n.options.color?Fe(r,t,n.options.color):Fe(r,t)},$e={Brand:{1:He("Brand.1"),2:He("Brand.2"),3:He("Brand.3"),4:He("Brand.4"),5:He("Brand.5"),6:He("Brand.6")},Primary:He("Primary"),PrimaryDark:He("PrimaryDark"),Secondary:He("Secondary"),Accent:{Light:{1:He("Accent.Light.1"),2:He("Accent.Light.2"),3:He("Accent.Light.3"),4:He("Accent.Light.4"),5:He("Accent.Light.5"),6:He("Accent.Light.6")},Dark:{1:He("Accent.Dark.1"),2:He("Accent.Dark.2"),3:He("Accent.Dark.3")}},Neutral:{1:He("Neutral.1"),2:He("Neutral.2"),3:He("Neutral.3"),4:He("Neutral.4"),5:He("Neutral.5"),6:He("Neutral.6"),7:He("Neutral.7"),8:He("Neutral.8")},Validation:{Green:{Text:He("Validation.Green.Text"),Icon:He("Validation.Green.Icon"),Border:He("Validation.Green.Border"),Background:He("Validation.Green.Background")},Orange:{Text:He("Validation.Orange.Text"),Icon:He("Validation.Orange.Icon"),Border:He("Validation.Orange.Border"),Background:He("Validation.Orange.Background"),Badge:He("Validation.Orange.Badge")},Red:{Text:He("Validation.Red.Text"),Icon:He("Validation.Red.Icon"),Border:He("Validation.Red.Border"),Background:He("Validation.Red.Background")}}},be={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},De={collections:{base:{D1:{fontFamily:be.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:be.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:be.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:be.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:be.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:be.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:be.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:be.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:be.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:be.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:be.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:be.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:be.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:be.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},_e=t=>e=>{const n=e.theme,r=Se(De,n[ve.textStyleScheme]);return n.options&&n.options.textStyle?Fe(r,t,n.options.textStyle):Fe(r,t)},xe={D1:{fontFamily:_e("D1.fontFamily"),fontSize:_e("D1.fontSize"),fontWeight:_e("D1.fontWeight"),lineHeight:_e("D1.lineHeight"),letterSpacing:_e("D1.letterSpacing")},D2:{fontFamily:_e("D2.fontFamily"),fontSize:_e("D2.fontSize"),fontWeight:_e("D2.fontWeight"),lineHeight:_e("D2.lineHeight"),letterSpacing:_e("D2.letterSpacing")},D3:{fontFamily:_e("D3.fontFamily"),fontSize:_e("D3.fontSize"),fontWeight:_e("D3.fontWeight"),lineHeight:_e("D3.lineHeight"),letterSpacing:_e("D3.letterSpacing")},D4:{fontFamily:_e("D4.fontFamily"),fontSize:_e("D4.fontSize"),fontWeight:_e("D4.fontWeight"),lineHeight:_e("D4.lineHeight"),letterSpacing:_e("D4.letterSpacing")},DBody:{fontFamily:_e("DBody.fontFamily"),fontSize:_e("DBody.fontSize"),fontWeight:_e("DBody.fontWeight"),lineHeight:_e("DBody.lineHeight"),letterSpacing:_e("DBody.letterSpacing")},H1:{fontFamily:_e("H1.fontFamily"),fontSize:_e("H1.fontSize"),fontWeight:_e("H1.fontWeight"),lineHeight:_e("H1.lineHeight"),letterSpacing:_e("H1.letterSpacing")},H2:{fontFamily:_e("H2.fontFamily"),fontSize:_e("H2.fontSize"),fontWeight:_e("H2.fontWeight"),lineHeight:_e("H2.lineHeight"),letterSpacing:_e("H2.letterSpacing")},H3:{fontFamily:_e("H3.fontFamily"),fontSize:_e("H3.fontSize"),fontWeight:_e("H3.fontWeight"),lineHeight:_e("H3.lineHeight"),letterSpacing:_e("H3.letterSpacing")},H4:{fontFamily:_e("H4.fontFamily"),fontSize:_e("H4.fontSize"),fontWeight:_e("H4.fontWeight"),lineHeight:_e("H4.lineHeight"),letterSpacing:_e("H4.letterSpacing")},H5:{fontFamily:_e("H5.fontFamily"),fontSize:_e("H5.fontSize"),fontWeight:_e("H5.fontWeight"),lineHeight:_e("H5.lineHeight"),letterSpacing:_e("H5.letterSpacing")},H6:{fontFamily:_e("H6.fontFamily"),fontSize:_e("H6.fontSize"),fontWeight:_e("H6.fontWeight"),lineHeight:_e("H6.lineHeight"),letterSpacing:_e("H6.letterSpacing")},Body:{fontFamily:_e("Body.fontFamily"),fontSize:_e("Body.fontSize"),fontWeight:_e("Body.fontWeight"),lineHeight:_e("Body.lineHeight"),letterSpacing:_e("Body.letterSpacing")},BodySmall:{fontFamily:_e("BodySmall.fontFamily"),fontSize:_e("BodySmall.fontSize"),fontWeight:_e("BodySmall.fontWeight"),lineHeight:_e("BodySmall.lineHeight"),letterSpacing:_e("BodySmall.letterSpacing")},XSmall:{fontFamily:_e("XSmall.fontFamily"),fontSize:_e("XSmall.fontSize"),fontWeight:_e("XSmall.fontWeight"),lineHeight:_e("XSmall.lineHeight"),letterSpacing:_e("XSmall.letterSpacing")}},Ce=t=>{switch(t){case 700:case"bold":return be.Bold;case 600:case"semibold":return be.Semibold;case 300:case"light":return be.Light;case 400:case"regular":return be.Regular;default:return""}},ze=(t,e)=>n=>{const r=xe[t].fontFamily(n),o=xe[t].fontWeight(n);return Object.values(be).includes(r)?c`
|
|
2
|
-
font-family: ${
|
|
1
|
+
import e,{jsxs as t,jsx as n,Fragment as r}from"react/jsx-runtime";import o,{useState as a,useEffect as i}from"react";import l,{css as c}from"styled-components";var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},g=Array.isArray,d="object"==typeof h&&h&&h.Object===Object&&h,u="object"==typeof self&&self&&self.Object===Object&&self,f=d||u||Function("return this")(),p=f.Symbol,s=p,y=Object.prototype,S=y.hasOwnProperty,m=y.toString,F=s?s.toStringTag:void 0;var v=function(e){var t=S.call(e,F),n=e[F];try{e[F]=void 0;var r=!0}catch(e){}var o=m.call(e);return r&&(t?e[F]=n:delete e[F]),o},B=Object.prototype.toString;var H=v,$=function(e){return B.call(e)},b=p?p.toStringTag:void 0;var D=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":b&&b in Object(e)?H(e):$(e)};var _=D,w=function(e){return null!=e&&"object"==typeof e};var x=function(e){return"symbol"==typeof e||w(e)&&"[object Symbol]"==_(e)},C=g,z=x,E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/;var k=function(e,t){if(C(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!z(e))||(A.test(e)||!E.test(e)||null!=t&&e in Object(t))};var W=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},N=D,O=W;var j,V=function(e){if(!O(e))return!1;var t=N(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},R=f["__core-js_shared__"],T=(j=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"";var L=function(e){return!!T&&T in e},I=Function.prototype.toString;var P=V,X=L,G=W,M=function(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Z=/^\[object .+?Constructor\]$/,U=Function.prototype,q=Object.prototype,J=U.toString,K=q.hasOwnProperty,Q=RegExp("^"+J.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Y=function(e){return!(!G(e)||X(e))&&(P(e)?Q:Z).test(M(e))},ee=function(e,t){return null==e?void 0:e[t]};var te=function(e,t){var n=ee(e,t);return Y(n)?n:void 0},ne=te(Object,"create"),re=ne;var oe=function(){this.__data__=re?re(null):{},this.size=0};var ae=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ie=ne,le=Object.prototype.hasOwnProperty;var ce=function(e){var t=this.__data__;if(ie){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return le.call(t,e)?t[e]:void 0},he=ne,ge=Object.prototype.hasOwnProperty;var de=ne;var ue=oe,fe=ae,pe=ce,se=function(e){var t=this.__data__;return he?void 0!==t[e]:ge.call(t,e)},ye=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=de&&void 0===t?"__lodash_hash_undefined__":t,this};function Se(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Se.prototype.clear=ue,Se.prototype.delete=fe,Se.prototype.get=pe,Se.prototype.has=se,Se.prototype.set=ye;var me=Se;var Fe=function(){this.__data__=[],this.size=0};var ve=function(e,t){return e===t||e!=e&&t!=t};var Be=function(e,t){for(var n=e.length;n--;)if(ve(e[n][0],t))return n;return-1},He=Be,$e=Array.prototype.splice;var be=Be;var De=Be;var _e=Be;var we=Fe,xe=function(e){var t=this.__data__,n=He(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)},Ce=function(e){var t=this.__data__,n=be(t,e);return n<0?void 0:t[n][1]},ze=function(e){return De(this.__data__,e)>-1},Ee=function(e,t){var n=this.__data__,r=_e(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Ae(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ae.prototype.clear=we,Ae.prototype.delete=xe,Ae.prototype.get=Ce,Ae.prototype.has=ze,Ae.prototype.set=Ee;var ke=Ae,We=te(f,"Map"),Ne=me,Oe=ke,je=We;var Ve=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Re=function(e,t){var n=e.__data__;return Ve(t)?n["string"==typeof t?"string":"hash"]:n.map},Te=Re;var Le=Re;var Ie=Re;var Pe=Re;var Xe=function(){this.size=0,this.__data__={hash:new Ne,map:new(je||Oe),string:new Ne}},Ge=function(e){var t=Te(this,e).delete(e);return this.size-=t?1:0,t},Me=function(e){return Le(this,e).get(e)},Ze=function(e){return Ie(this,e).has(e)},Ue=function(e,t){var n=Pe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function qe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qe.prototype.clear=Xe,qe.prototype.delete=Ge,qe.prototype.get=Me,qe.prototype.has=Ze,qe.prototype.set=Ue;var Je=qe;function Ke(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Ke.Cache||Je),n}Ke.Cache=Je;var Qe=Ke;var Ye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/\\(\\)?/g,tt=function(e){var t=Qe(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ye,(function(e,n,r,o){t.push(r?o.replace(et,"$1"):n||e)})),t}));var nt=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},rt=g,ot=x,at=p?p.prototype:void 0,it=at?at.toString:void 0;var lt=function e(t){if("string"==typeof t)return t;if(rt(t))return nt(t,e)+"";if(ot(t))return it?it.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},ct=lt;var ht=g,gt=k,dt=tt,ut=function(e){return null==e?"":ct(e)};var ft=x;var pt=function(e,t){return ht(e)?e:gt(e,t)?[e]:dt(ut(e))},st=function(e){if("string"==typeof e||ft(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var yt=function(e,t){for(var n=0,r=(t=pt(t,e)).length;null!=e&&n<r;)e=e[st(t[n++])];return n&&n==r?e:void 0};var St=function(e,t,n){var r=null==e?void 0:yt(e,t);return void 0===r?n:r};const mt=(e,t,n)=>t?St(n,t)||St(e,t):n||e,Ft=(e,t)=>{const n=t||e.defaultValue;return St(e.collections,n)};var vt;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme"}(vt||(vt={}));const Bt={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}}},defaultValue:"base"},Ht=e=>t=>{const n=t.theme,r=Ft(Bt,n[vt.colorScheme]);return n.options&&n.options.color?mt(r,e,n.options.color):mt(r,e)},$t={Brand:{1:Ht("Brand.1"),2:Ht("Brand.2"),3:Ht("Brand.3"),4:Ht("Brand.4"),5:Ht("Brand.5"),6:Ht("Brand.6")},Primary:Ht("Primary"),PrimaryDark:Ht("PrimaryDark"),Secondary:Ht("Secondary"),Accent:{Light:{1:Ht("Accent.Light.1"),2:Ht("Accent.Light.2"),3:Ht("Accent.Light.3"),4:Ht("Accent.Light.4"),5:Ht("Accent.Light.5"),6:Ht("Accent.Light.6")},Dark:{1:Ht("Accent.Dark.1"),2:Ht("Accent.Dark.2"),3:Ht("Accent.Dark.3")}},Neutral:{1:Ht("Neutral.1"),2:Ht("Neutral.2"),3:Ht("Neutral.3"),4:Ht("Neutral.4"),5:Ht("Neutral.5"),6:Ht("Neutral.6"),7:Ht("Neutral.7"),8:Ht("Neutral.8")},Validation:{Green:{Text:Ht("Validation.Green.Text"),Icon:Ht("Validation.Green.Icon"),Border:Ht("Validation.Green.Border"),Background:Ht("Validation.Green.Background")},Orange:{Text:Ht("Validation.Orange.Text"),Icon:Ht("Validation.Orange.Icon"),Border:Ht("Validation.Orange.Border"),Background:Ht("Validation.Orange.Background"),Badge:Ht("Validation.Orange.Badge")},Red:{Text:Ht("Validation.Red.Text"),Icon:Ht("Validation.Red.Icon"),Border:Ht("Validation.Red.Border"),Background:Ht("Validation.Red.Background")}},Shadow:{Accent:Ht("Shadow.Accent"),Red:Ht("Shadow.Red")}},bt={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Dt={collections:{base:{D1:{fontFamily:bt.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:bt.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:bt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:bt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:bt.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:bt.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:bt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:bt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:bt.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:bt.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:bt.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:bt.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:bt.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:bt.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},_t=e=>t=>{const n=t.theme,r=Ft(Dt,n[vt.textStyleScheme]);return n.options&&n.options.textStyle?mt(r,e,n.options.textStyle):mt(r,e)},wt={D1:{fontFamily:_t("D1.fontFamily"),fontSize:_t("D1.fontSize"),fontWeight:_t("D1.fontWeight"),lineHeight:_t("D1.lineHeight"),letterSpacing:_t("D1.letterSpacing")},D2:{fontFamily:_t("D2.fontFamily"),fontSize:_t("D2.fontSize"),fontWeight:_t("D2.fontWeight"),lineHeight:_t("D2.lineHeight"),letterSpacing:_t("D2.letterSpacing")},D3:{fontFamily:_t("D3.fontFamily"),fontSize:_t("D3.fontSize"),fontWeight:_t("D3.fontWeight"),lineHeight:_t("D3.lineHeight"),letterSpacing:_t("D3.letterSpacing")},D4:{fontFamily:_t("D4.fontFamily"),fontSize:_t("D4.fontSize"),fontWeight:_t("D4.fontWeight"),lineHeight:_t("D4.lineHeight"),letterSpacing:_t("D4.letterSpacing")},DBody:{fontFamily:_t("DBody.fontFamily"),fontSize:_t("DBody.fontSize"),fontWeight:_t("DBody.fontWeight"),lineHeight:_t("DBody.lineHeight"),letterSpacing:_t("DBody.letterSpacing")},H1:{fontFamily:_t("H1.fontFamily"),fontSize:_t("H1.fontSize"),fontWeight:_t("H1.fontWeight"),lineHeight:_t("H1.lineHeight"),letterSpacing:_t("H1.letterSpacing")},H2:{fontFamily:_t("H2.fontFamily"),fontSize:_t("H2.fontSize"),fontWeight:_t("H2.fontWeight"),lineHeight:_t("H2.lineHeight"),letterSpacing:_t("H2.letterSpacing")},H3:{fontFamily:_t("H3.fontFamily"),fontSize:_t("H3.fontSize"),fontWeight:_t("H3.fontWeight"),lineHeight:_t("H3.lineHeight"),letterSpacing:_t("H3.letterSpacing")},H4:{fontFamily:_t("H4.fontFamily"),fontSize:_t("H4.fontSize"),fontWeight:_t("H4.fontWeight"),lineHeight:_t("H4.lineHeight"),letterSpacing:_t("H4.letterSpacing")},H5:{fontFamily:_t("H5.fontFamily"),fontSize:_t("H5.fontSize"),fontWeight:_t("H5.fontWeight"),lineHeight:_t("H5.lineHeight"),letterSpacing:_t("H5.letterSpacing")},H6:{fontFamily:_t("H6.fontFamily"),fontSize:_t("H6.fontSize"),fontWeight:_t("H6.fontWeight"),lineHeight:_t("H6.lineHeight"),letterSpacing:_t("H6.letterSpacing")},Body:{fontFamily:_t("Body.fontFamily"),fontSize:_t("Body.fontSize"),fontWeight:_t("Body.fontWeight"),lineHeight:_t("Body.lineHeight"),letterSpacing:_t("Body.letterSpacing")},BodySmall:{fontFamily:_t("BodySmall.fontFamily"),fontSize:_t("BodySmall.fontSize"),fontWeight:_t("BodySmall.fontWeight"),lineHeight:_t("BodySmall.lineHeight"),letterSpacing:_t("BodySmall.letterSpacing")},XSmall:{fontFamily:_t("XSmall.fontFamily"),fontSize:_t("XSmall.fontSize"),fontWeight:_t("XSmall.fontWeight"),lineHeight:_t("XSmall.lineHeight"),letterSpacing:_t("XSmall.letterSpacing")}},xt=e=>{switch(e){case 700:case"bold":return bt.Bold;case 600:case"semibold":return bt.Semibold;case 300:case"light":return bt.Light;case 400:case"regular":return bt.Regular;default:return""}},Ct=(e,t)=>n=>{const r=wt[e].fontFamily(n),o=wt[e].fontWeight(n);return Object.values(bt).includes(r)?c`
|
|
2
|
+
font-family: ${xt(t)||xt(o)||r};
|
|
3
3
|
font-weight: normal !important;
|
|
4
4
|
`:c`
|
|
5
5
|
font-family: ${r};
|
|
6
|
-
font-weight: ${(
|
|
7
|
-
`},
|
|
8
|
-
${
|
|
9
|
-
font-size: ${
|
|
6
|
+
font-weight: ${(zt(t)||o)??"normal"};
|
|
7
|
+
`},zt=e=>{switch(e){case 300:case"light":return 300;case 400:case"regular":return 400;case 600:case"semibold":return 600;case 700:case"bold":return 700;case 900:case"black":return 900;default:return""}},Et=(e,t,n=!1)=>r=>{const o=wt[e],a=o.fontSize(r);return c`
|
|
8
|
+
${Ct(e,t)}
|
|
9
|
+
font-size: ${a}rem !important;
|
|
10
10
|
line-height: ${o.lineHeight}rem !important;
|
|
11
11
|
letter-spacing: ${o.letterSpacing(r)||0}rem !important;
|
|
12
12
|
${c`
|
|
13
|
-
margin-bottom: ${
|
|
13
|
+
margin-bottom: ${a*(n?1.05:0)}rem;
|
|
14
14
|
`}
|
|
15
|
-
`},
|
|
15
|
+
`},At=(e=!1,t=!1)=>t?c`
|
|
16
16
|
display: block;
|
|
17
|
-
`:
|
|
17
|
+
`:e?c`
|
|
18
18
|
display: inline;
|
|
19
19
|
`:c`
|
|
20
20
|
display: block;
|
|
21
|
-
`;var
|
|
22
|
-
${
|
|
23
|
-
${
|
|
24
|
-
color: ${$
|
|
25
|
-
${
|
|
21
|
+
`;var kt,Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});var Nt=e;const Ot=e=>Nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Nt.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H9.208C9.444 2.5 9.649 2.58667 9.823 2.76C9.99633 2.934 10.083 3.139 10.083 3.375C10.083 3.611 9.99633 3.816 9.823 3.99C9.649 4.16333 9.444 4.25 9.208 4.25H4.25V15.75H15.75V10.792C15.75 10.556 15.8367 10.351 16.01 10.177C16.184 10.0037 16.389 9.917 16.625 9.917C16.861 9.917 17.066 10.0037 17.24 10.177C17.4133 10.351 17.5 10.556 17.5 10.792V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM7.5 12.5C7.33333 12.3333 7.25 12.1283 7.25 11.885C7.25 11.6423 7.33333 11.4377 7.5 11.271L14.521 4.25H12.708C12.472 4.25 12.2673 4.16333 12.094 3.99C11.92 3.816 11.833 3.611 11.833 3.375C11.833 3.139 11.92 2.934 12.094 2.76C12.2673 2.58667 12.472 2.5 12.708 2.5H16.625C16.861 2.5 17.066 2.58667 17.24 2.76C17.4133 2.934 17.5 3.139 17.5 3.375V7.292C17.5 7.528 17.4133 7.73267 17.24 7.906C17.066 8.08 16.861 8.167 16.625 8.167C16.389 8.167 16.184 8.08 16.01 7.906C15.8367 7.73267 15.75 7.528 15.75 7.292V5.479L8.708 12.521C8.54133 12.6877 8.34367 12.771 8.115 12.771C7.88567 12.771 7.68067 12.6807 7.5 12.5Z",fill:"currentColor"})});var jt;Ot.displayName="ExternalIcon",kt=Wt.ExternalIcon=Ot,function(e){e.D1=l.h1`
|
|
22
|
+
${e=>c`
|
|
23
|
+
${Et("D1",e.weight,e.paragraph)}
|
|
24
|
+
color: ${$t.Neutral[1]};
|
|
25
|
+
${At(e.inline,e.paragraph)}
|
|
26
26
|
`}
|
|
27
|
-
`,
|
|
28
|
-
${
|
|
29
|
-
${
|
|
30
|
-
color: ${$
|
|
31
|
-
${
|
|
27
|
+
`,e.D2=l.h1`
|
|
28
|
+
${e=>c`
|
|
29
|
+
${Et("D2",e.weight,e.paragraph)}
|
|
30
|
+
color: ${$t.Neutral[1]};
|
|
31
|
+
${At(e.inline,e.paragraph)}
|
|
32
32
|
`}
|
|
33
|
-
`,
|
|
34
|
-
${
|
|
35
|
-
${
|
|
36
|
-
color: ${$
|
|
37
|
-
${
|
|
33
|
+
`,e.D3=l.h1`
|
|
34
|
+
${e=>c`
|
|
35
|
+
${Et("D3",e.weight,e.paragraph)}
|
|
36
|
+
color: ${$t.Neutral[1]};
|
|
37
|
+
${At(e.inline,e.paragraph)}
|
|
38
38
|
`}
|
|
39
|
-
`,
|
|
40
|
-
${
|
|
41
|
-
${
|
|
42
|
-
color: ${$
|
|
43
|
-
${
|
|
39
|
+
`,e.D4=l.h1`
|
|
40
|
+
${e=>c`
|
|
41
|
+
${Et("D4",e.weight,e.paragraph)}
|
|
42
|
+
color: ${$t.Neutral[1]};
|
|
43
|
+
${At(e.inline,e.paragraph)}
|
|
44
44
|
`}
|
|
45
|
-
`,
|
|
46
|
-
${
|
|
47
|
-
${
|
|
48
|
-
color: ${$
|
|
49
|
-
${
|
|
45
|
+
`,e.DBody=l.h1`
|
|
46
|
+
${e=>c`
|
|
47
|
+
${Et("DBody",e.weight,e.paragraph)}
|
|
48
|
+
color: ${$t.Neutral[1]};
|
|
49
|
+
${At(e.inline,e.paragraph)}
|
|
50
50
|
`}
|
|
51
|
-
`,
|
|
52
|
-
${
|
|
53
|
-
${
|
|
54
|
-
color: ${$
|
|
55
|
-
${
|
|
51
|
+
`,e.H1=l.h1`
|
|
52
|
+
${e=>c`
|
|
53
|
+
${Et("H1",e.weight,e.paragraph)}
|
|
54
|
+
color: ${$t.Neutral[1]};
|
|
55
|
+
${At(e.inline,e.paragraph)}
|
|
56
56
|
`}
|
|
57
|
-
`,
|
|
58
|
-
${
|
|
59
|
-
${
|
|
60
|
-
color: ${$
|
|
61
|
-
${
|
|
57
|
+
`,e.H2=l.h2`
|
|
58
|
+
${e=>c`
|
|
59
|
+
${Et("H2",e.weight,e.paragraph)}
|
|
60
|
+
color: ${$t.Neutral[1]};
|
|
61
|
+
${At(e.inline,e.paragraph)}
|
|
62
62
|
`}
|
|
63
|
-
`,
|
|
64
|
-
${
|
|
65
|
-
${
|
|
66
|
-
color: ${$
|
|
67
|
-
${
|
|
63
|
+
`,e.H3=l.h3`
|
|
64
|
+
${e=>c`
|
|
65
|
+
${Et("H3",e.weight,e.paragraph)}
|
|
66
|
+
color: ${$t.Neutral[1]};
|
|
67
|
+
${At(e.inline,e.paragraph)}
|
|
68
68
|
`}
|
|
69
|
-
`,
|
|
70
|
-
${
|
|
71
|
-
${
|
|
72
|
-
color: ${$
|
|
73
|
-
${
|
|
69
|
+
`,e.H4=l.h4`
|
|
70
|
+
${e=>c`
|
|
71
|
+
${Et("H4",e.weight,e.paragraph)}
|
|
72
|
+
color: ${$t.Neutral[1]};
|
|
73
|
+
${At(e.inline,e.paragraph)}
|
|
74
74
|
`}
|
|
75
|
-
`,
|
|
76
|
-
${
|
|
77
|
-
${
|
|
78
|
-
color: ${$
|
|
79
|
-
${
|
|
75
|
+
`,e.H5=l.h5`
|
|
76
|
+
${e=>c`
|
|
77
|
+
${Et("H5",e.weight,e.paragraph)}
|
|
78
|
+
color: ${$t.Neutral[1]};
|
|
79
|
+
${At(e.inline,e.paragraph)}
|
|
80
80
|
`}
|
|
81
|
-
`,
|
|
82
|
-
${
|
|
83
|
-
${
|
|
84
|
-
color: ${$
|
|
85
|
-
${
|
|
81
|
+
`,e.H6=l.h6`
|
|
82
|
+
${e=>c`
|
|
83
|
+
${Et("H6",e.weight,e.paragraph)}
|
|
84
|
+
color: ${$t.Neutral[1]};
|
|
85
|
+
${At(e.inline,e.paragraph)}
|
|
86
86
|
`}
|
|
87
|
-
`,
|
|
88
|
-
${
|
|
89
|
-
${
|
|
90
|
-
color: ${$
|
|
91
|
-
${
|
|
87
|
+
`,e.Body=l.p`
|
|
88
|
+
${e=>c`
|
|
89
|
+
${Et("Body",e.weight,e.paragraph)}
|
|
90
|
+
color: ${$t.Neutral[1]};
|
|
91
|
+
${At(e.inline,e.paragraph)}
|
|
92
92
|
`}
|
|
93
|
-
`,
|
|
94
|
-
${
|
|
95
|
-
${
|
|
96
|
-
color: ${$
|
|
97
|
-
${
|
|
93
|
+
`,e.BodySmall=l.p`
|
|
94
|
+
${e=>c`
|
|
95
|
+
${Et("BodySmall",e.weight,e.paragraph)}
|
|
96
|
+
color: ${$t.Neutral[1]};
|
|
97
|
+
${At(e.inline,e.paragraph)}
|
|
98
98
|
`}
|
|
99
|
-
`,
|
|
100
|
-
${
|
|
101
|
-
${
|
|
102
|
-
color: ${$
|
|
103
|
-
${
|
|
99
|
+
`,e.XSmall=l.span`
|
|
100
|
+
${e=>c`
|
|
101
|
+
${Et("XSmall",e.weight,e.paragraph)}
|
|
102
|
+
color: ${$t.Neutral[1]};
|
|
103
|
+
${At(e.inline,e.paragraph)}
|
|
104
104
|
`}
|
|
105
|
-
`,
|
|
106
|
-
${
|
|
107
|
-
${
|
|
108
|
-
color: ${$
|
|
105
|
+
`,e.Hyperlink={Default:e=>Tt({...e,textStyle:"Body"}),Small:e=>Tt({...e,textStyle:"BodySmall"})}}(jt||(jt={}));const Vt=l.a`
|
|
106
|
+
${e=>c`
|
|
107
|
+
${Et(e.textStyle,e.weight)}
|
|
108
|
+
color: ${$t.Primary};
|
|
109
109
|
text-decoration: none;
|
|
110
110
|
|
|
111
111
|
:hover,
|
|
112
112
|
:active,
|
|
113
113
|
:focus {
|
|
114
|
-
color: ${$
|
|
114
|
+
color: ${$t.Secondary};
|
|
115
115
|
|
|
116
116
|
svg {
|
|
117
|
-
color: ${$
|
|
117
|
+
color: ${$t.Secondary};
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
`}
|
|
121
|
-
`,
|
|
121
|
+
`,Rt=l(kt)`
|
|
122
122
|
height: 1rem;
|
|
123
123
|
width: 1rem;
|
|
124
124
|
margin-left: 0.4rem;
|
|
125
125
|
vertical-align: middle;
|
|
126
|
-
`,
|
|
126
|
+
`,Tt=({external:e=!1,children:r,...o})=>t(Vt,{...o,children:[r,e&&n(Rt,{})]});var Lt;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(Lt||(Lt={}));const It=l(jt.H6)`
|
|
127
127
|
text-align: right;
|
|
128
128
|
|
|
129
|
-
${
|
|
130
|
-
color: ${$
|
|
129
|
+
${e=>{if(e.disabled)return c`
|
|
130
|
+
color: ${$t.Neutral[4](e)};
|
|
131
131
|
`}}
|
|
132
|
-
`,
|
|
132
|
+
`,Pt=({value:e,maxLength:t,disabled:l,renderCustomCounter:c})=>{const[h,g]=a("");i((()=>{g(d(`${e||""}`))}),[e,t]);const d=e=>{if(c)return c(t,e.toString().length);{const n=t-e.toString().length;return n<=1?`${n} character left`:`${n.toLocaleString()} characters left`}};return n(r,{children:o.isValidElement(h)?h:n(It,{"data-testid":"counter-label",weight:"semibold",disabled:l,children:h})})},Xt={collections:{base:{InputBoxShadow:c`
|
|
133
|
+
inset 0 0 6px 1px ${$t.Shadow.Accent}
|
|
134
|
+
`,InputErrorBoxShadow:c`
|
|
135
|
+
inset 0 0 6px 1px ${$t.Shadow.Red}
|
|
136
|
+
`}},defaultValue:"base"},Gt=e=>t=>{const n=t.theme,r=Ft(Xt,n[vt.designTokenScheme]);return n.options?.designToken?mt(r,e,n.options.designToken):mt(r,e)},Mt=Gt("InputBoxShadow"),Zt=Gt("InputErrorBoxShadow"),Ut="all 300ms cubic-bezier(0.21, 0.79, 0.53, 1)",qt=l.div`
|
|
133
137
|
display: flex;
|
|
134
138
|
flex-direction: column;
|
|
135
|
-
`,
|
|
136
|
-
border: 1px solid ${$
|
|
139
|
+
`,Jt=l.textarea`
|
|
140
|
+
border: 1px solid ${$t.Neutral[5]};
|
|
137
141
|
border-radius: 4px;
|
|
138
142
|
display: block;
|
|
139
143
|
padding: 0.75rem 1rem;
|
|
140
144
|
width: 100%;
|
|
141
|
-
transition: ${
|
|
145
|
+
transition: ${Ut};
|
|
142
146
|
|
|
143
|
-
${
|
|
144
|
-
color: ${$
|
|
145
|
-
background: ${$
|
|
147
|
+
${Et("Body","regular")}
|
|
148
|
+
color: ${$t.Neutral[1]};
|
|
149
|
+
background: ${$t.Neutral[8]};
|
|
146
150
|
|
|
147
151
|
:focus,
|
|
148
152
|
:active {
|
|
149
153
|
outline: none;
|
|
150
|
-
border: 1px solid ${$
|
|
151
|
-
box-shadow:
|
|
154
|
+
border: 1px solid ${$t.Accent.Light[1]};
|
|
155
|
+
box-shadow: ${Mt};
|
|
152
156
|
}
|
|
153
157
|
|
|
154
158
|
::placeholder,
|
|
155
159
|
::-webkit-input-placeholder {
|
|
156
|
-
color: ${$
|
|
160
|
+
color: ${$t.Neutral[3]};
|
|
157
161
|
}
|
|
158
162
|
|
|
159
|
-
${
|
|
163
|
+
${e=>e.readOnly?c`
|
|
160
164
|
border: none;
|
|
161
165
|
padding: 0.75rem 0;
|
|
162
166
|
background: transparent !important;
|
|
@@ -166,24 +170,24 @@ import t,{jsxs as e,jsx as n,Fragment as r}from"react/jsx-runtime";import o,{use
|
|
|
166
170
|
border: none;
|
|
167
171
|
box-shadow: none;
|
|
168
172
|
}
|
|
169
|
-
`:
|
|
170
|
-
background: ${$
|
|
173
|
+
`:e.disabled?c`
|
|
174
|
+
background: ${$t.Neutral[6](e)};
|
|
171
175
|
cursor: not-allowed;
|
|
172
176
|
|
|
173
177
|
:focus,
|
|
174
178
|
:active {
|
|
175
179
|
outline: none;
|
|
176
|
-
border: 1px solid ${$
|
|
180
|
+
border: 1px solid ${$t.Neutral[5](e)};
|
|
177
181
|
box-shadow: none;
|
|
178
182
|
}
|
|
179
|
-
`:
|
|
180
|
-
border: 1px solid ${$
|
|
183
|
+
`:e.error?c`
|
|
184
|
+
border: 1px solid ${$t.Validation.Red.Border(e)};
|
|
181
185
|
|
|
182
186
|
:focus,
|
|
183
187
|
:active {
|
|
184
|
-
border: 1px solid ${$
|
|
185
|
-
box-shadow:
|
|
188
|
+
border: 1px solid ${$t.Validation.Red.Border(e)};
|
|
189
|
+
box-shadow: ${Zt};
|
|
186
190
|
}
|
|
187
191
|
`:void 0}
|
|
188
|
-
`;o.forwardRef((({value:
|
|
192
|
+
`;o.forwardRef((({value:e,disabled:t,error:r,rows:o=5,...a},i)=>n(Jt,{ref:i,disabled:t,value:e,error:r,rows:o,...a})));const Kt=o.forwardRef((({value:e,disabled:r,rows:o=5,onChange:l,...c},h)=>{const[g,d]=a(e);i((()=>{d(e)}),[e]);return t(qt,{children:[n(Jt,{ref:h,disabled:r,value:g,rows:o||5,onChange:e=>{const t=e.target.value;c.maxLength&&t.length>c.maxLength||(d(t),e.target.value=t,l&&l(e))},...c}),c.maxLength&&n(Pt,{disabled:r,value:g,maxLength:c.maxLength,renderCustomCounter:c.renderCustomCounter})]})}));export{Kt as Textarea};
|
|
189
193
|
//# sourceMappingURL=index.js.map
|