@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.
Files changed (99) hide show
  1. package/accordion/index.js +4 -4
  2. package/accordion/index.js.map +1 -1
  3. package/alert/index.js +42 -42
  4. package/alert/index.js.map +1 -1
  5. package/box-container/index.js +5 -5
  6. package/box-container/index.js.map +1 -1
  7. package/breadcrumb/index.js +2 -2
  8. package/breadcrumb/index.js.map +1 -1
  9. package/button/index.js +125 -125
  10. package/button/index.js.map +1 -1
  11. package/card/index.js +23 -23
  12. package/card/index.js.map +1 -1
  13. package/checkbox/index.js +3 -3
  14. package/checkbox/index.js.map +1 -1
  15. package/cjs/index.js +44 -46
  16. package/cjs/index.js.map +1 -1
  17. package/color/color.d.ts +4 -59
  18. package/color/index.js +1 -1
  19. package/color/index.js.map +1 -1
  20. package/color/types.d.ts +4 -0
  21. package/date-input/index.js +53 -49
  22. package/date-input/index.js.map +1 -1
  23. package/design-token/design-token.d.ts +4 -0
  24. package/design-token/index.d.ts +2 -0
  25. package/design-token/index.js +6 -0
  26. package/design-token/index.js.map +1 -0
  27. package/{icon → design-token}/package.json +1 -1
  28. package/design-token/types.d.ts +7 -0
  29. package/error-display/index.js +92 -92
  30. package/error-display/index.js.map +1 -1
  31. package/feedback-rating/index.js +58 -58
  32. package/feedback-rating/index.js.map +1 -1
  33. package/footer/index.js +10 -10
  34. package/footer/index.js.map +1 -1
  35. package/form/index.js +144 -140
  36. package/form/index.js.map +1 -1
  37. package/icon-button/index.js +3 -3
  38. package/icon-button/index.js.map +1 -1
  39. package/index.d.ts +0 -1
  40. package/index.js +63 -65
  41. package/index.js.map +1 -1
  42. package/input/index.js +18 -14
  43. package/input/index.js.map +1 -1
  44. package/input-group/index.js +125 -121
  45. package/input-group/index.js.map +1 -1
  46. package/input-select/index.js +32 -28
  47. package/input-select/index.js.map +1 -1
  48. package/input-textarea/index.js +112 -108
  49. package/input-textarea/index.js.map +1 -1
  50. package/link-list/index.js +35 -35
  51. package/link-list/index.js.map +1 -1
  52. package/modal/index.js +15 -15
  53. package/modal/index.js.map +1 -1
  54. package/navbar/index.js +188 -188
  55. package/navbar/index.js.map +1 -1
  56. package/notification-banner/index.js +2 -2
  57. package/notification-banner/index.js.map +1 -1
  58. package/package.json +1 -1
  59. package/phone-number-input/index.js +126 -122
  60. package/phone-number-input/index.js.map +1 -1
  61. package/popover/index.js +7 -7
  62. package/popover/index.js.map +1 -1
  63. package/progress-indicator/index.js +7 -7
  64. package/progress-indicator/index.js.map +1 -1
  65. package/radio-button/index.js +7 -7
  66. package/radio-button/index.js.map +1 -1
  67. package/smart-app-banner/index.js +14 -14
  68. package/smart-app-banner/index.js.map +1 -1
  69. package/spec/design-token-spec/base-design-token-set.d.ts +2 -0
  70. package/text/index.js +18 -18
  71. package/text/index.js.map +1 -1
  72. package/text/text-style.d.ts +4 -100
  73. package/text-list/index.js +7 -7
  74. package/text-list/index.js.map +1 -1
  75. package/theme/design-token-helper.d.ts +2 -0
  76. package/theme/index.js +1 -1
  77. package/theme/index.js.map +1 -1
  78. package/theme/types.d.ts +10 -1
  79. package/timeline/index.js +8 -8
  80. package/timeline/index.js.map +1 -1
  81. package/timepicker/index.js +61 -57
  82. package/timepicker/index.js.map +1 -1
  83. package/toggle-button/index.js +109 -109
  84. package/toggle-button/index.js.map +1 -1
  85. package/tooltip/index.js +5 -5
  86. package/tooltip/index.js.map +1 -1
  87. package/unit-number/index.js +113 -109
  88. package/unit-number/index.js.map +1 -1
  89. package/util/utility-types.d.ts +3 -0
  90. package/icon/document-with-pencil-icon.d.ts +0 -5
  91. package/icon/icon-data.d.ts +0 -3
  92. package/icon/icon-style.d.ts +0 -1
  93. package/icon/icon.d.ts +0 -6
  94. package/icon/index.d.ts +0 -2
  95. package/icon/index.js +0 -8
  96. package/icon/index.js.map +0 -1
  97. package/icon/location-unknown-icon.d.ts +0 -5
  98. package/icon/mail-unread-icon.d.ts +0 -5
  99. package/icon/types.d.ts +0 -18
@@ -1,129 +1,129 @@
1
- import t,{jsxs as e,jsx as n}from"react/jsx-runtime";import{useState as r,useRef as i,useEffect as o,useCallback as a}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,f="object"==typeof self&&self&&self.Object===Object&&self,u=d||f||Function("return this")(),p=u.Symbol,s=p,y=Object.prototype,F=y.hasOwnProperty,m=y.toString,S=s?s.toStringTag:void 0;var v=function(t){var e=F.call(t,S),n=t[S];try{t[S]=void 0;var r=!0}catch(t){}var i=m.call(t);return r&&(e?t[S]=n:delete t[S]),i},H=Object.prototype.toString;var B=v,$=function(t){return H.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)?B(t):$(t)};var _=D,z=function(t){return null!=t&&"object"==typeof t};var w=function(t){return"symbol"==typeof t||z(t)&&"[object Symbol]"==_(t)},C=g,x=w,k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/;var W=function(t,e){if(C(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!x(t))||(E.test(t)||!k.test(t)||null!=e&&t in Object(e))};var A=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},N=D,O=A;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},P=u["__core-js_shared__"],T=(j=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"";var I=function(t){return!!T&&T in t},L=Function.prototype.toString;var R=V,X=I,G=A,M=function(t){if(null!=t){try{return L.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))&&(R(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 it=function(){this.__data__=rt?rt(null):{},this.size=0};var ot=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},ht=nt,gt=Object.prototype.hasOwnProperty;var dt=nt;var ft=it,ut=ot,pt=ct,st=function(t){var e=this.__data__;return ht?void 0!==e[t]:gt.call(e,t)},yt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=dt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ft(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])}}Ft.prototype.clear=ft,Ft.prototype.delete=ut,Ft.prototype.get=pt,Ft.prototype.has=st,Ft.prototype.set=yt;var mt=Ft;var St=function(){this.__data__=[],this.size=0};var vt=function(t,e){return t===e||t!=t&&e!=e};var Ht=function(t,e){for(var n=t.length;n--;)if(vt(t[n][0],e))return n;return-1},Bt=Ht,$t=Array.prototype.splice;var bt=Ht;var Dt=Ht;var _t=Ht;var zt=St,wt=function(t){var e=this.__data__,n=Bt(e,t);return!(n<0)&&(n==e.length-1?e.pop():$t.call(e,n,1),--this.size,!0)},Ct=function(t){var e=this.__data__,n=bt(e,t);return n<0?void 0:e[n][1]},xt=function(t){return Dt(this.__data__,t)>-1},kt=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 Et(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])}}Et.prototype.clear=zt,Et.prototype.delete=wt,Et.prototype.get=Ct,Et.prototype.has=xt,Et.prototype.set=kt;var Wt=Et,At=et(u,"Map"),Nt=mt,Ot=Wt,jt=At;var Vt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Pt=function(t,e){var n=t.__data__;return Vt(e)?n["string"==typeof e?"string":"hash"]:n.map},Tt=Pt;var It=Pt;var Lt=Pt;var Rt=Pt;var Xt=function(){this.size=0,this.__data__={hash:new Nt,map:new(jt||Ot),string:new Nt}},Gt=function(t){var e=Tt(this,t).delete(t);return this.size-=e?1:0,e},Mt=function(t){return It(this,t).get(t)},Zt=function(t){return Lt(this,t).has(t)},Ut=function(t,e){var n=Rt(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,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,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,i){e.push(r?i.replace(te,"$1"):n||t)})),e}));var ne=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i},re=g,ie=w,oe=p?p.prototype:void 0,ae=oe?oe.toString:void 0;var le=function t(e){if("string"==typeof e)return e;if(re(e))return ne(e,t)+"";if(ie(e))return ae?ae.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},ce=le;var he=g,ge=W,de=ee,fe=function(t){return null==t?"":ce(t)};var ue=w;var pe=function(t,e){return he(t)?t:ge(t,e)?[t]:de(fe(t))},se=function(t){if("string"==typeof t||ue(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 Fe=function(t,e,n){var r=null==t?void 0:ye(t,e);return void 0===r?n:r};const me=(t,e,n)=>e?Fe(n,e)||Fe(t,e):n||t,Se=(t,e)=>{const n=e||t.defaultValue;return Fe(t.collections,n)};var ve;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme"}(ve||(ve={}));const He={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"},Be=t=>e=>{const n=e.theme,r=Se(He,n[ve.colorScheme]);return n.options&&n.options.color?me(r,t,n.options.color):me(r,t)},$e={Brand:{1:Be("Brand.1"),2:Be("Brand.2"),3:Be("Brand.3"),4:Be("Brand.4"),5:Be("Brand.5"),6:Be("Brand.6")},Primary:Be("Primary"),PrimaryDark:Be("PrimaryDark"),Secondary:Be("Secondary"),Accent:{Light:{1:Be("Accent.Light.1"),2:Be("Accent.Light.2"),3:Be("Accent.Light.3"),4:Be("Accent.Light.4"),5:Be("Accent.Light.5"),6:Be("Accent.Light.6")},Dark:{1:Be("Accent.Dark.1"),2:Be("Accent.Dark.2"),3:Be("Accent.Dark.3")}},Neutral:{1:Be("Neutral.1"),2:Be("Neutral.2"),3:Be("Neutral.3"),4:Be("Neutral.4"),5:Be("Neutral.5"),6:Be("Neutral.6"),7:Be("Neutral.7"),8:Be("Neutral.8")},Validation:{Green:{Text:Be("Validation.Green.Text"),Icon:Be("Validation.Green.Icon"),Border:Be("Validation.Green.Border"),Background:Be("Validation.Green.Background")},Orange:{Text:Be("Validation.Orange.Text"),Icon:Be("Validation.Orange.Icon"),Border:Be("Validation.Orange.Border"),Background:Be("Validation.Orange.Background"),Badge:Be("Validation.Orange.Badge")},Red:{Text:Be("Validation.Red.Text"),Icon:Be("Validation.Red.Icon"),Border:Be("Validation.Red.Border"),Background:Be("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?me(r,t,n.options.textStyle):me(r,t)},ze={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")}},we=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""}},Ce=(t,e)=>n=>{const r=ze[t].fontFamily(n),i=ze[t].fontWeight(n);return Object.values(be).includes(r)?c`
2
- font-family: ${we(e)||we(i)||r};
1
+ import e,{jsxs as t,jsx as n}from"react/jsx-runtime";import{useState as r,useRef as i,useEffect as o,useCallback as a}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,f="object"==typeof self&&self&&self.Object===Object&&self,u=d||f||Function("return this")(),p=u.Symbol,s=p,y=Object.prototype,S=y.hasOwnProperty,F=y.toString,m=s?s.toStringTag:void 0;var v=function(e){var t=S.call(e,m),n=e[m];try{e[m]=void 0;var r=!0}catch(e){}var i=F.call(e);return r&&(t?e[m]=n:delete e[m]),i},H=Object.prototype.toString;var $=v,B=function(e){return H.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)?$(e):B(e)};var _=D,w=function(e){return null!=e&&"object"==typeof e};var z=function(e){return"symbol"==typeof e||w(e)&&"[object Symbol]"==_(e)},C=g,x=z,k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/;var E=function(e,t){if(C(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!x(e))||(A.test(e)||!k.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},T=u["__core-js_shared__"],P=(j=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"";var R=function(e){return!!P&&P in e},I=Function.prototype.toString;var L=V,X=R,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))&&(L(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 ie=function(){this.__data__=re?re(null):{},this.size=0};var oe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ae=ne,le=Object.prototype.hasOwnProperty;var ce=function(e){var t=this.__data__;if(ae){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 fe=ie,ue=oe,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=fe,Se.prototype.delete=ue,Se.prototype.get=pe,Se.prototype.has=se,Se.prototype.set=ye;var Fe=Se;var me=function(){this.__data__=[],this.size=0};var ve=function(e,t){return e===t||e!=e&&t!=t};var He=function(e,t){for(var n=e.length;n--;)if(ve(e[n][0],t))return n;return-1},$e=He,Be=Array.prototype.splice;var be=He;var De=He;var _e=He;var we=me,ze=function(e){var t=this.__data__,n=$e(t,e);return!(n<0)&&(n==t.length-1?t.pop():Be.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]},xe=function(e){return De(this.__data__,e)>-1},ke=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=ze,Ae.prototype.get=Ce,Ae.prototype.has=xe,Ae.prototype.set=ke;var Ee=Ae,We=te(u,"Map"),Ne=Fe,Oe=Ee,je=We;var Ve=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Te=function(e,t){var n=e.__data__;return Ve(t)?n["string"==typeof t?"string":"hash"]:n.map},Pe=Te;var Re=Te;var Ie=Te;var Le=Te;var Xe=function(){this.size=0,this.__data__={hash:new Ne,map:new(je||Oe),string:new Ne}},Ge=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t},Me=function(e){return Re(this,e).get(e)},Ze=function(e){return Ie(this,e).has(e)},Ue=function(e,t){var n=Le(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,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};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,i){t.push(r?i.replace(et,"$1"):n||e)})),t}));var nt=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},rt=g,it=z,ot=p?p.prototype:void 0,at=ot?ot.toString:void 0;var lt=function e(t){if("string"==typeof t)return t;if(rt(t))return nt(t,e)+"";if(it(t))return at?at.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},ct=lt;var ht=g,gt=E,dt=tt,ft=function(e){return null==e?"":ct(e)};var ut=z;var pt=function(e,t){return ht(e)?e:gt(e,t)?[e]:dt(ft(e))},st=function(e){if("string"==typeof e||ut(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 Ft=(e,t,n)=>t?St(n,t)||St(e,t):n||e,mt=(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 Ht={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"},$t=e=>t=>{const n=t.theme,r=mt(Ht,n[vt.colorScheme]);return n.options&&n.options.color?Ft(r,e,n.options.color):Ft(r,e)},Bt={Brand:{1:$t("Brand.1"),2:$t("Brand.2"),3:$t("Brand.3"),4:$t("Brand.4"),5:$t("Brand.5"),6:$t("Brand.6")},Primary:$t("Primary"),PrimaryDark:$t("PrimaryDark"),Secondary:$t("Secondary"),Accent:{Light:{1:$t("Accent.Light.1"),2:$t("Accent.Light.2"),3:$t("Accent.Light.3"),4:$t("Accent.Light.4"),5:$t("Accent.Light.5"),6:$t("Accent.Light.6")},Dark:{1:$t("Accent.Dark.1"),2:$t("Accent.Dark.2"),3:$t("Accent.Dark.3")}},Neutral:{1:$t("Neutral.1"),2:$t("Neutral.2"),3:$t("Neutral.3"),4:$t("Neutral.4"),5:$t("Neutral.5"),6:$t("Neutral.6"),7:$t("Neutral.7"),8:$t("Neutral.8")},Validation:{Green:{Text:$t("Validation.Green.Text"),Icon:$t("Validation.Green.Icon"),Border:$t("Validation.Green.Border"),Background:$t("Validation.Green.Background")},Orange:{Text:$t("Validation.Orange.Text"),Icon:$t("Validation.Orange.Icon"),Border:$t("Validation.Orange.Border"),Background:$t("Validation.Orange.Background"),Badge:$t("Validation.Orange.Badge")},Red:{Text:$t("Validation.Red.Text"),Icon:$t("Validation.Red.Icon"),Border:$t("Validation.Red.Border"),Background:$t("Validation.Red.Background")}},Shadow:{Accent:$t("Shadow.Accent"),Red:$t("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=mt(Dt,n[vt.textStyleScheme]);return n.options&&n.options.textStyle?Ft(r,e,n.options.textStyle):Ft(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")}},zt=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),i=wt[e].fontWeight(n);return Object.values(bt).includes(r)?c`
2
+ font-family: ${zt(t)||zt(i)||r};
3
3
  font-weight: normal !important;
4
4
  `:c`
5
5
  font-family: ${r};
6
- font-weight: ${(xe(e)||i)??"normal"};
7
- `},xe=t=>{switch(t){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""}},ke=(t,e,n=!1)=>r=>{const i=ze[t],o=i.fontSize(r);return c`
8
- ${Ce(t,e)}
6
+ font-weight: ${(xt(t)||i)??"normal"};
7
+ `},xt=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""}},kt=(e,t,n=!1)=>r=>{const i=wt[e],o=i.fontSize(r);return c`
8
+ ${Ct(e,t)}
9
9
  font-size: ${o}rem !important;
10
10
  line-height: ${i.lineHeight}rem !important;
11
11
  letter-spacing: ${i.letterSpacing(r)||0}rem !important;
12
12
  ${c`
13
13
  margin-bottom: ${o*(n?1.05:0)}rem;
14
14
  `}
15
- `},Ee=(t=!1,e=!1)=>e?c`
15
+ `},At=(e=!1,t=!1)=>t?c`
16
16
  display: block;
17
- `:t?c`
17
+ `:e?c`
18
18
  display: inline;
19
19
  `:c`
20
20
  display: block;
21
- `;var We,Ae={};Object.defineProperty(Ae,"__esModule",{value:!0});var Ne=t;const Oe=t=>Ne.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:Ne.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 je;Oe.displayName="ExternalIcon",We=Ae.ExternalIcon=Oe,function(t){t.D1=l.h1`
22
- ${t=>c`
23
- ${ke("D1",t.weight,t.paragraph)}
24
- color: ${$e.Neutral[1]};
25
- ${Ee(t.inline,t.paragraph)}
21
+ `;var Et,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",Et=Wt.ExternalIcon=Ot,function(e){e.D1=l.h1`
22
+ ${e=>c`
23
+ ${kt("D1",e.weight,e.paragraph)}
24
+ color: ${Bt.Neutral[1]};
25
+ ${At(e.inline,e.paragraph)}
26
26
  `}
27
- `,t.D2=l.h1`
28
- ${t=>c`
29
- ${ke("D2",t.weight,t.paragraph)}
30
- color: ${$e.Neutral[1]};
31
- ${Ee(t.inline,t.paragraph)}
27
+ `,e.D2=l.h1`
28
+ ${e=>c`
29
+ ${kt("D2",e.weight,e.paragraph)}
30
+ color: ${Bt.Neutral[1]};
31
+ ${At(e.inline,e.paragraph)}
32
32
  `}
33
- `,t.D3=l.h1`
34
- ${t=>c`
35
- ${ke("D3",t.weight,t.paragraph)}
36
- color: ${$e.Neutral[1]};
37
- ${Ee(t.inline,t.paragraph)}
33
+ `,e.D3=l.h1`
34
+ ${e=>c`
35
+ ${kt("D3",e.weight,e.paragraph)}
36
+ color: ${Bt.Neutral[1]};
37
+ ${At(e.inline,e.paragraph)}
38
38
  `}
39
- `,t.D4=l.h1`
40
- ${t=>c`
41
- ${ke("D4",t.weight,t.paragraph)}
42
- color: ${$e.Neutral[1]};
43
- ${Ee(t.inline,t.paragraph)}
39
+ `,e.D4=l.h1`
40
+ ${e=>c`
41
+ ${kt("D4",e.weight,e.paragraph)}
42
+ color: ${Bt.Neutral[1]};
43
+ ${At(e.inline,e.paragraph)}
44
44
  `}
45
- `,t.DBody=l.h1`
46
- ${t=>c`
47
- ${ke("DBody",t.weight,t.paragraph)}
48
- color: ${$e.Neutral[1]};
49
- ${Ee(t.inline,t.paragraph)}
45
+ `,e.DBody=l.h1`
46
+ ${e=>c`
47
+ ${kt("DBody",e.weight,e.paragraph)}
48
+ color: ${Bt.Neutral[1]};
49
+ ${At(e.inline,e.paragraph)}
50
50
  `}
51
- `,t.H1=l.h1`
52
- ${t=>c`
53
- ${ke("H1",t.weight,t.paragraph)}
54
- color: ${$e.Neutral[1]};
55
- ${Ee(t.inline,t.paragraph)}
51
+ `,e.H1=l.h1`
52
+ ${e=>c`
53
+ ${kt("H1",e.weight,e.paragraph)}
54
+ color: ${Bt.Neutral[1]};
55
+ ${At(e.inline,e.paragraph)}
56
56
  `}
57
- `,t.H2=l.h2`
58
- ${t=>c`
59
- ${ke("H2",t.weight,t.paragraph)}
60
- color: ${$e.Neutral[1]};
61
- ${Ee(t.inline,t.paragraph)}
57
+ `,e.H2=l.h2`
58
+ ${e=>c`
59
+ ${kt("H2",e.weight,e.paragraph)}
60
+ color: ${Bt.Neutral[1]};
61
+ ${At(e.inline,e.paragraph)}
62
62
  `}
63
- `,t.H3=l.h3`
64
- ${t=>c`
65
- ${ke("H3",t.weight,t.paragraph)}
66
- color: ${$e.Neutral[1]};
67
- ${Ee(t.inline,t.paragraph)}
63
+ `,e.H3=l.h3`
64
+ ${e=>c`
65
+ ${kt("H3",e.weight,e.paragraph)}
66
+ color: ${Bt.Neutral[1]};
67
+ ${At(e.inline,e.paragraph)}
68
68
  `}
69
- `,t.H4=l.h4`
70
- ${t=>c`
71
- ${ke("H4",t.weight,t.paragraph)}
72
- color: ${$e.Neutral[1]};
73
- ${Ee(t.inline,t.paragraph)}
69
+ `,e.H4=l.h4`
70
+ ${e=>c`
71
+ ${kt("H4",e.weight,e.paragraph)}
72
+ color: ${Bt.Neutral[1]};
73
+ ${At(e.inline,e.paragraph)}
74
74
  `}
75
- `,t.H5=l.h5`
76
- ${t=>c`
77
- ${ke("H5",t.weight,t.paragraph)}
78
- color: ${$e.Neutral[1]};
79
- ${Ee(t.inline,t.paragraph)}
75
+ `,e.H5=l.h5`
76
+ ${e=>c`
77
+ ${kt("H5",e.weight,e.paragraph)}
78
+ color: ${Bt.Neutral[1]};
79
+ ${At(e.inline,e.paragraph)}
80
80
  `}
81
- `,t.H6=l.h6`
82
- ${t=>c`
83
- ${ke("H6",t.weight,t.paragraph)}
84
- color: ${$e.Neutral[1]};
85
- ${Ee(t.inline,t.paragraph)}
81
+ `,e.H6=l.h6`
82
+ ${e=>c`
83
+ ${kt("H6",e.weight,e.paragraph)}
84
+ color: ${Bt.Neutral[1]};
85
+ ${At(e.inline,e.paragraph)}
86
86
  `}
87
- `,t.Body=l.p`
88
- ${t=>c`
89
- ${ke("Body",t.weight,t.paragraph)}
90
- color: ${$e.Neutral[1]};
91
- ${Ee(t.inline,t.paragraph)}
87
+ `,e.Body=l.p`
88
+ ${e=>c`
89
+ ${kt("Body",e.weight,e.paragraph)}
90
+ color: ${Bt.Neutral[1]};
91
+ ${At(e.inline,e.paragraph)}
92
92
  `}
93
- `,t.BodySmall=l.p`
94
- ${t=>c`
95
- ${ke("BodySmall",t.weight,t.paragraph)}
96
- color: ${$e.Neutral[1]};
97
- ${Ee(t.inline,t.paragraph)}
93
+ `,e.BodySmall=l.p`
94
+ ${e=>c`
95
+ ${kt("BodySmall",e.weight,e.paragraph)}
96
+ color: ${Bt.Neutral[1]};
97
+ ${At(e.inline,e.paragraph)}
98
98
  `}
99
- `,t.XSmall=l.span`
100
- ${t=>c`
101
- ${ke("XSmall",t.weight,t.paragraph)}
102
- color: ${$e.Neutral[1]};
103
- ${Ee(t.inline,t.paragraph)}
99
+ `,e.XSmall=l.span`
100
+ ${e=>c`
101
+ ${kt("XSmall",e.weight,e.paragraph)}
102
+ color: ${Bt.Neutral[1]};
103
+ ${At(e.inline,e.paragraph)}
104
104
  `}
105
- `,t.Hyperlink={Default:t=>Te({...t,textStyle:"Body"}),Small:t=>Te({...t,textStyle:"BodySmall"})}}(je||(je={}));const Ve=l.a`
106
- ${t=>c`
107
- ${ke(t.textStyle,t.weight)}
108
- color: ${$e.Primary};
105
+ `,e.Hyperlink={Default:e=>Pt({...e,textStyle:"Body"}),Small:e=>Pt({...e,textStyle:"BodySmall"})}}(jt||(jt={}));const Vt=l.a`
106
+ ${e=>c`
107
+ ${kt(e.textStyle,e.weight)}
108
+ color: ${Bt.Primary};
109
109
  text-decoration: none;
110
110
 
111
111
  :hover,
112
112
  :active,
113
113
  :focus {
114
- color: ${$e.Secondary};
114
+ color: ${Bt.Secondary};
115
115
 
116
116
  svg {
117
- color: ${$e.Secondary};
117
+ color: ${Bt.Secondary};
118
118
  }
119
119
  }
120
120
  `}
121
- `,Pe=l(We)`
121
+ `,Tt=l(Et)`
122
122
  height: 1rem;
123
123
  width: 1rem;
124
124
  margin-left: 0.4rem;
125
125
  vertical-align: middle;
126
- `,Te=({external:t=!1,children:r,...i})=>e(Ve,{...i,children:[r,t&&n(Pe,{})]});var Ie;!function(t){t[t.Subpage=0]="Subpage",t[t.Domain=1]="Domain"}(Ie||(Ie={}));const Le=l.div`
126
+ `,Pt=({external:e=!1,children:r,...i})=>t(Vt,{...i,children:[r,e&&n(Tt,{})]});var Rt;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(Rt||(Rt={}));const It=l.div`
127
127
  position: relative;
128
128
  display: inline-flex;
129
129
  align-items: center;
@@ -132,56 +132,56 @@ import t,{jsxs as e,jsx as n}from"react/jsx-runtime";import{useState as r,useRef
132
132
  height: 3rem;
133
133
  min-width: 5rem;
134
134
  border-radius: 4px;
135
- border: 1px solid ${$e.Primary};
136
- background: ${$e.Neutral[8]};
135
+ border: 1px solid ${Bt.Primary};
136
+ background: ${Bt.Neutral[8]};
137
137
  cursor: pointer;
138
138
 
139
139
  :hover {
140
- box-shadow: 0 0 4px 1px rgba(87, 169, 255, 0.5);
140
+ box-shadow: 0 0 4px 1px ${Bt.Shadow.Accent};
141
141
  }
142
142
 
143
- ${t=>t.disabled&&!t.$selected?c`
144
- background: ${$e.Neutral[6](t)};
145
- border: 1px solid ${$e.Neutral[6](t)};
143
+ ${e=>e.disabled&&!e.$selected?c`
144
+ background: ${Bt.Neutral[6](e)};
145
+ border: 1px solid ${Bt.Neutral[6](e)};
146
146
  cursor: not-allowed;
147
147
 
148
148
  :hover {
149
149
  box-shadow: none;
150
150
  }
151
- `:t.disabled&&t.$selected?c`
152
- background: ${$e.Neutral[6](t)};
153
- border: 1px solid ${$e.Neutral[4](t)};
151
+ `:e.disabled&&e.$selected?c`
152
+ background: ${Bt.Neutral[6](e)};
153
+ border: 1px solid ${Bt.Neutral[4](e)};
154
154
  cursor: not-allowed;
155
155
 
156
156
  :hover {
157
157
  box-shadow: none;
158
158
  }
159
- `:t.$selected?c`
160
- background: ${$e.Accent.Light[5](t)};
159
+ `:e.$selected?c`
160
+ background: ${Bt.Accent.Light[5](e)};
161
161
  padding: 0.6875rem 0.912rem; // Bold font takes bigger width
162
- `:0==t.$selected?c`
163
- border: 1px solid ${$e.Neutral[5](t)};
162
+ `:0==e.$selected?c`
163
+ border: 1px solid ${Bt.Neutral[5](e)};
164
164
  `:void 0}
165
- `,Re=l.input`
165
+ `,Lt=l.input`
166
166
  position: absolute;
167
167
  height: 100%;
168
168
  width: 100%;
169
- cursor: ${t=>t.disabled?"not-allowed":"pointer"};
169
+ cursor: ${e=>e.disabled?"not-allowed":"pointer"};
170
170
 
171
171
  /* Hide appearance but keep it focusable using keyboard interactions */
172
172
  appearance: none;
173
173
  background: transparent;
174
- `,Xe=l.span`
175
- ${t=>c`
176
- ${ke("H4",t.$weight)}
174
+ `,Xt=l.span`
175
+ ${e=>c`
176
+ ${kt("H4",e.$weight)}
177
177
  `}
178
- color: ${$e.Neutral[1]};
178
+ color: ${Bt.Neutral[1]};
179
179
  text-align: center;
180
180
 
181
- ${t=>t.disabled?c`
182
- color: ${$e.Neutral[3](t)};
183
- `:t.$selected?c`
184
- color: ${$e.Primary(t)};
181
+ ${e=>e.disabled?c`
182
+ color: ${Bt.Neutral[3](e)};
183
+ `:e.$selected?c`
184
+ color: ${Bt.Primary(e)};
185
185
  `:void 0}
186
- `,Ge=({disabled:t,checked:l,onChange:c,type:h="checkbox",children:g,className:d,...f})=>{const[u,p]=r(l),s=i();o((()=>{p(l)}),[l]);const y=a((e=>{t||("radio"!==h||u||p(!0),"checkbox"===h&&p((t=>!t)),c&&c(e))}),[]);return e(Le,{$selected:u,disabled:t,role:"checkbox","aria-checked":u,className:d,children:[n(Re,{ref:s,type:"checkbox","data-testid":"toggle-button-input",disabled:t,onChange:y,checked:u,...f}),n(Xe,{$weight:u?"bold":"regular",$selected:u,disabled:t,"data-testid":"toggle-button-label",children:g})]})};export{Ge as ToggleButton};
186
+ `,Gt=({disabled:e,checked:l,onChange:c,type:h="checkbox",children:g,className:d,...f})=>{const[u,p]=r(l),s=i();o((()=>{p(l)}),[l]);const y=a((t=>{e||("radio"!==h||u||p(!0),"checkbox"===h&&p((e=>!e)),c&&c(t))}),[]);return t(It,{$selected:u,disabled:e,role:"checkbox","aria-checked":u,className:d,children:[n(Lt,{ref:s,type:"checkbox","data-testid":"toggle-button-input",disabled:e,onChange:y,checked:u,...f}),n(Xt,{$weight:u?"bold":"regular",$selected:u,disabled:e,"data-testid":"toggle-button-label",children:g})]})};export{Gt as ToggleButton};
187
187
  //# sourceMappingURL=index.js.map