@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,4 +1,4 @@
1
- import t,{jsx as e,jsxs as n,Fragment as r}from"react/jsx-runtime";import i,{useState as o,useRef as a,useEffect as l}from"react";import c,{css as f}from"styled-components";const u={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},d=t=>Object.keys(u).reduce(((e,n)=>{const r=u[n];return e[n]=`@media screen and (${t}: ${r}px)`,e}),{}),h=d("max-width"),g=(d("min-width"),u);var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},p=Array.isArray,m="object"==typeof s&&s&&s.Object===Object&&s,y="object"==typeof self&&self&&self.Object===Object&&self,S=m||y||Function("return this")(),v=S.Symbol,F=v,x=Object.prototype,b=x.hasOwnProperty,$=x.toString,H=F?F.toStringTag:void 0;var B=function(t){var e=b.call(t,H),n=t[H];try{t[H]=void 0;var r=!0}catch(t){}var i=$.call(t);return r&&(e?t[H]=n:delete t[H]),i},D=Object.prototype.toString;var w=B,_=function(t){return D.call(t)},z=v?v.toStringTag:void 0;var E=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":z&&z in Object(t)?w(t):_(t)};var C=E,A=function(t){return null!=t&&"object"==typeof t};var k=function(t){return"symbol"==typeof t||A(t)&&"[object Symbol]"==C(t)},W=p,O=k,L=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/;var N=function(t,e){if(W(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!O(t))||(j.test(t)||!L.test(t)||null!=e&&t in Object(e))};var I=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},R=E,V=I;var T,P=function(t){if(!V(t))return!1;var e=R(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Z=S["__core-js_shared__"],G=(T=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"";var U=function(t){return!!G&&G in t},M=Function.prototype.toString;var X=P,Y=U,J=I,K=function(t){if(null!=t){try{return M.call(t)}catch(t){}try{return t+""}catch(t){}}return""},q=/^\[object .+?Constructor\]$/,Q=Function.prototype,tt=Object.prototype,et=Q.toString,nt=tt.hasOwnProperty,rt=RegExp("^"+et.call(nt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var it=function(t){return!(!J(t)||Y(t))&&(X(t)?rt:q).test(K(t))},ot=function(t,e){return null==t?void 0:t[e]};var at=function(t,e){var n=ot(t,e);return it(n)?n:void 0},lt=at(Object,"create"),ct=lt;var ft=function(){this.__data__=ct?ct(null):{},this.size=0};var ut=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},dt=lt,ht=Object.prototype.hasOwnProperty;var gt=function(t){var e=this.__data__;if(dt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return ht.call(e,t)?e[t]:void 0},st=lt,pt=Object.prototype.hasOwnProperty;var mt=lt;var yt=ft,St=ut,vt=gt,Ft=function(t){var e=this.__data__;return st?void 0!==e[t]:pt.call(e,t)},xt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=mt&&void 0===e?"__lodash_hash_undefined__":e,this};function bt(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])}}bt.prototype.clear=yt,bt.prototype.delete=St,bt.prototype.get=vt,bt.prototype.has=Ft,bt.prototype.set=xt;var $t=bt;var Ht=function(){this.__data__=[],this.size=0};var Bt=function(t,e){return t===e||t!=t&&e!=e};var Dt=function(t,e){for(var n=t.length;n--;)if(Bt(t[n][0],e))return n;return-1},wt=Dt,_t=Array.prototype.splice;var zt=Dt;var Et=Dt;var Ct=Dt;var At=Ht,kt=function(t){var e=this.__data__,n=wt(e,t);return!(n<0)&&(n==e.length-1?e.pop():_t.call(e,n,1),--this.size,!0)},Wt=function(t){var e=this.__data__,n=zt(e,t);return n<0?void 0:e[n][1]},Ot=function(t){return Et(this.__data__,t)>-1},Lt=function(t,e){var n=this.__data__,r=Ct(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function jt(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])}}jt.prototype.clear=At,jt.prototype.delete=kt,jt.prototype.get=Wt,jt.prototype.has=Ot,jt.prototype.set=Lt;var Nt=jt,It=at(S,"Map"),Rt=$t,Vt=Nt,Tt=It;var Pt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Zt=function(t,e){var n=t.__data__;return Pt(e)?n["string"==typeof e?"string":"hash"]:n.map},Gt=Zt;var Ut=Zt;var Mt=Zt;var Xt=Zt;var Yt=function(){this.size=0,this.__data__={hash:new Rt,map:new(Tt||Vt),string:new Rt}},Jt=function(t){var e=Gt(this,t).delete(t);return this.size-=e?1:0,e},Kt=function(t){return Ut(this,t).get(t)},qt=function(t){return Mt(this,t).has(t)},Qt=function(t,e){var n=Xt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function te(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])}}te.prototype.clear=Yt,te.prototype.delete=Jt,te.prototype.get=Kt,te.prototype.has=qt,te.prototype.set=Qt;var ee=te;function ne(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(ne.Cache||ee),n}ne.Cache=ee;var re=ne;var ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/\\(\\)?/g,ae=function(t){var e=re(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(ie,(function(t,n,r,i){e.push(r?i.replace(oe,"$1"):n||t)})),e}));var le=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},ce=p,fe=k,ue=v?v.prototype:void 0,de=ue?ue.toString:void 0;var he=function t(e){if("string"==typeof e)return e;if(ce(e))return le(e,t)+"";if(fe(e))return de?de.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},ge=he;var se=function(t){return null==t?"":ge(t)},pe=p,me=N,ye=ae,Se=se;var ve=k;var Fe=function(t,e){return pe(t)?t:me(t,e)?[t]:ye(Se(t))},xe=function(t){if("string"==typeof t||ve(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var be=function(t,e){for(var n=0,r=(e=Fe(e,t)).length;null!=t&&n<r;)t=t[xe(e[n++])];return n&&n==r?t:void 0};var $e=function(t,e,n){var r=null==t?void 0:be(t,e);return void 0===r?n:r};const He=(t,e,n)=>e?$e(n,e)||$e(t,e):n||t,Be=(t,e)=>{const n=e||t.defaultValue;return $e(t.collections,n)};var De;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme"}(De||(De={}));const we={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"},_e=t=>e=>{const n=e.theme,r=Be(we,n[De.colorScheme]);return n.options&&n.options.color?He(r,t,n.options.color):He(r,t)},ze={Brand:{1:_e("Brand.1"),2:_e("Brand.2"),3:_e("Brand.3"),4:_e("Brand.4"),5:_e("Brand.5"),6:_e("Brand.6")},Primary:_e("Primary"),PrimaryDark:_e("PrimaryDark"),Secondary:_e("Secondary"),Accent:{Light:{1:_e("Accent.Light.1"),2:_e("Accent.Light.2"),3:_e("Accent.Light.3"),4:_e("Accent.Light.4"),5:_e("Accent.Light.5"),6:_e("Accent.Light.6")},Dark:{1:_e("Accent.Dark.1"),2:_e("Accent.Dark.2"),3:_e("Accent.Dark.3")}},Neutral:{1:_e("Neutral.1"),2:_e("Neutral.2"),3:_e("Neutral.3"),4:_e("Neutral.4"),5:_e("Neutral.5"),6:_e("Neutral.6"),7:_e("Neutral.7"),8:_e("Neutral.8")},Validation:{Green:{Text:_e("Validation.Green.Text"),Icon:_e("Validation.Green.Icon"),Border:_e("Validation.Green.Border"),Background:_e("Validation.Green.Background")},Orange:{Text:_e("Validation.Orange.Text"),Icon:_e("Validation.Orange.Icon"),Border:_e("Validation.Orange.Border"),Background:_e("Validation.Orange.Background"),Badge:_e("Validation.Orange.Badge")},Red:{Text:_e("Validation.Red.Text"),Icon:_e("Validation.Red.Icon"),Border:_e("Validation.Red.Border"),Background:_e("Validation.Red.Background")}}},Ee=i.forwardRef(((t,n)=>{const{children:r,"data-testid":i="container",type:o="flex",...a}=t;return e(Ce,{ref:n,"data-testid":i,type:o,...a,children:r})})),Ce=c.div`
1
+ import t,{jsx as e,jsxs as n,Fragment as r}from"react/jsx-runtime";import i,{useState as o,useRef as a,useEffect as l}from"react";import c,{css as f}from"styled-components";const d={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},u=t=>Object.keys(d).reduce(((e,n)=>{const r=d[n];return e[n]=`@media screen and (${t}: ${r}px)`,e}),{}),h=u("max-width"),g=(u("min-width"),d);var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},p=Array.isArray,m="object"==typeof s&&s&&s.Object===Object&&s,y="object"==typeof self&&self&&self.Object===Object&&self,S=m||y||Function("return this")(),v=S.Symbol,F=v,b=Object.prototype,x=b.hasOwnProperty,$=b.toString,H=F?F.toStringTag:void 0;var B=function(t){var e=x.call(t,H),n=t[H];try{t[H]=void 0;var r=!0}catch(t){}var i=$.call(t);return r&&(e?t[H]=n:delete t[H]),i},D=Object.prototype.toString;var w=B,_=function(t){return D.call(t)},z=v?v.toStringTag:void 0;var E=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":z&&z in Object(t)?w(t):_(t)};var C=E,A=function(t){return null!=t&&"object"==typeof t};var k=function(t){return"symbol"==typeof t||A(t)&&"[object Symbol]"==C(t)},W=p,O=k,L=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/;var N=function(t,e){if(W(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!O(t))||(j.test(t)||!L.test(t)||null!=e&&t in Object(e))};var R=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},I=E,T=R;var V,P=function(t){if(!T(t))return!1;var e=I(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Z=S["__core-js_shared__"],G=(V=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"";var U=function(t){return!!G&&G in t},M=Function.prototype.toString;var X=P,Y=U,J=R,K=function(t){if(null!=t){try{return M.call(t)}catch(t){}try{return t+""}catch(t){}}return""},q=/^\[object .+?Constructor\]$/,Q=Function.prototype,tt=Object.prototype,et=Q.toString,nt=tt.hasOwnProperty,rt=RegExp("^"+et.call(nt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var it=function(t){return!(!J(t)||Y(t))&&(X(t)?rt:q).test(K(t))},ot=function(t,e){return null==t?void 0:t[e]};var at=function(t,e){var n=ot(t,e);return it(n)?n:void 0},lt=at(Object,"create"),ct=lt;var ft=function(){this.__data__=ct?ct(null):{},this.size=0};var dt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ut=lt,ht=Object.prototype.hasOwnProperty;var gt=function(t){var e=this.__data__;if(ut){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return ht.call(e,t)?e[t]:void 0},st=lt,pt=Object.prototype.hasOwnProperty;var mt=lt;var yt=ft,St=dt,vt=gt,Ft=function(t){var e=this.__data__;return st?void 0!==e[t]:pt.call(e,t)},bt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=mt&&void 0===e?"__lodash_hash_undefined__":e,this};function xt(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])}}xt.prototype.clear=yt,xt.prototype.delete=St,xt.prototype.get=vt,xt.prototype.has=Ft,xt.prototype.set=bt;var $t=xt;var Ht=function(){this.__data__=[],this.size=0};var Bt=function(t,e){return t===e||t!=t&&e!=e};var Dt=function(t,e){for(var n=t.length;n--;)if(Bt(t[n][0],e))return n;return-1},wt=Dt,_t=Array.prototype.splice;var zt=Dt;var Et=Dt;var Ct=Dt;var At=Ht,kt=function(t){var e=this.__data__,n=wt(e,t);return!(n<0)&&(n==e.length-1?e.pop():_t.call(e,n,1),--this.size,!0)},Wt=function(t){var e=this.__data__,n=zt(e,t);return n<0?void 0:e[n][1]},Ot=function(t){return Et(this.__data__,t)>-1},Lt=function(t,e){var n=this.__data__,r=Ct(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function jt(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])}}jt.prototype.clear=At,jt.prototype.delete=kt,jt.prototype.get=Wt,jt.prototype.has=Ot,jt.prototype.set=Lt;var Nt=jt,Rt=at(S,"Map"),It=$t,Tt=Nt,Vt=Rt;var Pt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Zt=function(t,e){var n=t.__data__;return Pt(e)?n["string"==typeof e?"string":"hash"]:n.map},Gt=Zt;var Ut=Zt;var Mt=Zt;var Xt=Zt;var Yt=function(){this.size=0,this.__data__={hash:new It,map:new(Vt||Tt),string:new It}},Jt=function(t){var e=Gt(this,t).delete(t);return this.size-=e?1:0,e},Kt=function(t){return Ut(this,t).get(t)},qt=function(t){return Mt(this,t).has(t)},Qt=function(t,e){var n=Xt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function te(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])}}te.prototype.clear=Yt,te.prototype.delete=Jt,te.prototype.get=Kt,te.prototype.has=qt,te.prototype.set=Qt;var ee=te;function ne(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(ne.Cache||ee),n}ne.Cache=ee;var re=ne;var ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/\\(\\)?/g,ae=function(t){var e=re(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(ie,(function(t,n,r,i){e.push(r?i.replace(oe,"$1"):n||t)})),e}));var le=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},ce=p,fe=k,de=v?v.prototype:void 0,ue=de?de.toString:void 0;var he=function t(e){if("string"==typeof e)return e;if(ce(e))return le(e,t)+"";if(fe(e))return ue?ue.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},ge=he;var se=function(t){return null==t?"":ge(t)},pe=p,me=N,ye=ae,Se=se;var ve=k;var Fe=function(t,e){return pe(t)?t:me(t,e)?[t]:ye(Se(t))},be=function(t){if("string"==typeof t||ve(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var xe=function(t,e){for(var n=0,r=(e=Fe(e,t)).length;null!=t&&n<r;)t=t[be(e[n++])];return n&&n==r?t:void 0};var $e=function(t,e,n){var r=null==t?void 0:xe(t,e);return void 0===r?n:r};const He=(t,e,n)=>e?$e(n,e)||$e(t,e):n||t,Be=(t,e)=>{const n=e||t.defaultValue;return $e(t.collections,n)};var De;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme",t.designTokenScheme="designTokenScheme"}(De||(De={}));const we={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"},_e=t=>e=>{const n=e.theme,r=Be(we,n[De.colorScheme]);return n.options&&n.options.color?He(r,t,n.options.color):He(r,t)},ze={Brand:{1:_e("Brand.1"),2:_e("Brand.2"),3:_e("Brand.3"),4:_e("Brand.4"),5:_e("Brand.5"),6:_e("Brand.6")},Primary:_e("Primary"),PrimaryDark:_e("PrimaryDark"),Secondary:_e("Secondary"),Accent:{Light:{1:_e("Accent.Light.1"),2:_e("Accent.Light.2"),3:_e("Accent.Light.3"),4:_e("Accent.Light.4"),5:_e("Accent.Light.5"),6:_e("Accent.Light.6")},Dark:{1:_e("Accent.Dark.1"),2:_e("Accent.Dark.2"),3:_e("Accent.Dark.3")}},Neutral:{1:_e("Neutral.1"),2:_e("Neutral.2"),3:_e("Neutral.3"),4:_e("Neutral.4"),5:_e("Neutral.5"),6:_e("Neutral.6"),7:_e("Neutral.7"),8:_e("Neutral.8")},Validation:{Green:{Text:_e("Validation.Green.Text"),Icon:_e("Validation.Green.Icon"),Border:_e("Validation.Green.Border"),Background:_e("Validation.Green.Background")},Orange:{Text:_e("Validation.Orange.Text"),Icon:_e("Validation.Orange.Icon"),Border:_e("Validation.Orange.Border"),Background:_e("Validation.Orange.Background"),Badge:_e("Validation.Orange.Badge")},Red:{Text:_e("Validation.Red.Text"),Icon:_e("Validation.Red.Icon"),Border:_e("Validation.Red.Border"),Background:_e("Validation.Red.Background")}},Shadow:{Accent:_e("Shadow.Accent"),Red:_e("Shadow.Red")}},Ee=i.forwardRef(((t,n)=>{const{children:r,"data-testid":i="container",type:o="flex",...a}=t;return e(Ce,{ref:n,"data-testid":i,type:o,...a,children:r})})),Ce=c.div`
2
2
  flex-grow: 1;
3
3
  margin: 0 auto;
4
4
  position: relative;
@@ -51,14 +51,14 @@ import t,{jsx as e,jsxs as n,Fragment as r}from"react/jsx-runtime";import i,{use
51
51
  // Extra enforcement
52
52
  padding-left: 1.5rem !important;
53
53
  padding-right: 1.5rem !important;
54
- `,We=i.forwardRef(((t,n)=>{const{children:r,"data-testid":i="content",className:o,type:a="flex",...l}=t;return e(Ae,{ref:n,"data-testid":i,className:o,...l,children:e(Ee,{"data-testid":`${i}-container`,type:a,"data-id":"container",children:r})})})),Oe={Section:Ae,Container:Ee,Content:We},Le={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},je={collections:{base:{D1:{fontFamily:Le.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Le.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Le.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Le.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Le.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Le.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Le.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Le.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Le.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Le.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Le.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Le.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Le.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Le.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Ne=t=>e=>{const n=e.theme,r=Be(je,n[De.textStyleScheme]);return n.options&&n.options.textStyle?He(r,t,n.options.textStyle):He(r,t)},Ie={D1:{fontFamily:Ne("D1.fontFamily"),fontSize:Ne("D1.fontSize"),fontWeight:Ne("D1.fontWeight"),lineHeight:Ne("D1.lineHeight"),letterSpacing:Ne("D1.letterSpacing")},D2:{fontFamily:Ne("D2.fontFamily"),fontSize:Ne("D2.fontSize"),fontWeight:Ne("D2.fontWeight"),lineHeight:Ne("D2.lineHeight"),letterSpacing:Ne("D2.letterSpacing")},D3:{fontFamily:Ne("D3.fontFamily"),fontSize:Ne("D3.fontSize"),fontWeight:Ne("D3.fontWeight"),lineHeight:Ne("D3.lineHeight"),letterSpacing:Ne("D3.letterSpacing")},D4:{fontFamily:Ne("D4.fontFamily"),fontSize:Ne("D4.fontSize"),fontWeight:Ne("D4.fontWeight"),lineHeight:Ne("D4.lineHeight"),letterSpacing:Ne("D4.letterSpacing")},DBody:{fontFamily:Ne("DBody.fontFamily"),fontSize:Ne("DBody.fontSize"),fontWeight:Ne("DBody.fontWeight"),lineHeight:Ne("DBody.lineHeight"),letterSpacing:Ne("DBody.letterSpacing")},H1:{fontFamily:Ne("H1.fontFamily"),fontSize:Ne("H1.fontSize"),fontWeight:Ne("H1.fontWeight"),lineHeight:Ne("H1.lineHeight"),letterSpacing:Ne("H1.letterSpacing")},H2:{fontFamily:Ne("H2.fontFamily"),fontSize:Ne("H2.fontSize"),fontWeight:Ne("H2.fontWeight"),lineHeight:Ne("H2.lineHeight"),letterSpacing:Ne("H2.letterSpacing")},H3:{fontFamily:Ne("H3.fontFamily"),fontSize:Ne("H3.fontSize"),fontWeight:Ne("H3.fontWeight"),lineHeight:Ne("H3.lineHeight"),letterSpacing:Ne("H3.letterSpacing")},H4:{fontFamily:Ne("H4.fontFamily"),fontSize:Ne("H4.fontSize"),fontWeight:Ne("H4.fontWeight"),lineHeight:Ne("H4.lineHeight"),letterSpacing:Ne("H4.letterSpacing")},H5:{fontFamily:Ne("H5.fontFamily"),fontSize:Ne("H5.fontSize"),fontWeight:Ne("H5.fontWeight"),lineHeight:Ne("H5.lineHeight"),letterSpacing:Ne("H5.letterSpacing")},H6:{fontFamily:Ne("H6.fontFamily"),fontSize:Ne("H6.fontSize"),fontWeight:Ne("H6.fontWeight"),lineHeight:Ne("H6.lineHeight"),letterSpacing:Ne("H6.letterSpacing")},Body:{fontFamily:Ne("Body.fontFamily"),fontSize:Ne("Body.fontSize"),fontWeight:Ne("Body.fontWeight"),lineHeight:Ne("Body.lineHeight"),letterSpacing:Ne("Body.letterSpacing")},BodySmall:{fontFamily:Ne("BodySmall.fontFamily"),fontSize:Ne("BodySmall.fontSize"),fontWeight:Ne("BodySmall.fontWeight"),lineHeight:Ne("BodySmall.lineHeight"),letterSpacing:Ne("BodySmall.letterSpacing")},XSmall:{fontFamily:Ne("XSmall.fontFamily"),fontSize:Ne("XSmall.fontSize"),fontWeight:Ne("XSmall.fontWeight"),lineHeight:Ne("XSmall.lineHeight"),letterSpacing:Ne("XSmall.letterSpacing")}},Re=t=>{switch(t){case 700:case"bold":return Le.Bold;case 600:case"semibold":return Le.Semibold;case 300:case"light":return Le.Light;case 400:case"regular":return Le.Regular;default:return""}},Ve=(t,e)=>n=>{const r=Ie[t].fontFamily(n),i=Ie[t].fontWeight(n);return Object.values(Le).includes(r)?f`
55
- font-family: ${Re(e)||Re(i)||r};
54
+ `,We=i.forwardRef(((t,n)=>{const{children:r,"data-testid":i="content",className:o,type:a="flex",...l}=t;return e(Ae,{ref:n,"data-testid":i,className:o,...l,children:e(Ee,{"data-testid":`${i}-container`,type:a,"data-id":"container",children:r})})})),Oe={Section:Ae,Container:Ee,Content:We},Le={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},je={collections:{base:{D1:{fontFamily:Le.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Le.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Le.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Le.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Le.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Le.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Le.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Le.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Le.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Le.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Le.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Le.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Le.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Le.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Ne=t=>e=>{const n=e.theme,r=Be(je,n[De.textStyleScheme]);return n.options&&n.options.textStyle?He(r,t,n.options.textStyle):He(r,t)},Re={D1:{fontFamily:Ne("D1.fontFamily"),fontSize:Ne("D1.fontSize"),fontWeight:Ne("D1.fontWeight"),lineHeight:Ne("D1.lineHeight"),letterSpacing:Ne("D1.letterSpacing")},D2:{fontFamily:Ne("D2.fontFamily"),fontSize:Ne("D2.fontSize"),fontWeight:Ne("D2.fontWeight"),lineHeight:Ne("D2.lineHeight"),letterSpacing:Ne("D2.letterSpacing")},D3:{fontFamily:Ne("D3.fontFamily"),fontSize:Ne("D3.fontSize"),fontWeight:Ne("D3.fontWeight"),lineHeight:Ne("D3.lineHeight"),letterSpacing:Ne("D3.letterSpacing")},D4:{fontFamily:Ne("D4.fontFamily"),fontSize:Ne("D4.fontSize"),fontWeight:Ne("D4.fontWeight"),lineHeight:Ne("D4.lineHeight"),letterSpacing:Ne("D4.letterSpacing")},DBody:{fontFamily:Ne("DBody.fontFamily"),fontSize:Ne("DBody.fontSize"),fontWeight:Ne("DBody.fontWeight"),lineHeight:Ne("DBody.lineHeight"),letterSpacing:Ne("DBody.letterSpacing")},H1:{fontFamily:Ne("H1.fontFamily"),fontSize:Ne("H1.fontSize"),fontWeight:Ne("H1.fontWeight"),lineHeight:Ne("H1.lineHeight"),letterSpacing:Ne("H1.letterSpacing")},H2:{fontFamily:Ne("H2.fontFamily"),fontSize:Ne("H2.fontSize"),fontWeight:Ne("H2.fontWeight"),lineHeight:Ne("H2.lineHeight"),letterSpacing:Ne("H2.letterSpacing")},H3:{fontFamily:Ne("H3.fontFamily"),fontSize:Ne("H3.fontSize"),fontWeight:Ne("H3.fontWeight"),lineHeight:Ne("H3.lineHeight"),letterSpacing:Ne("H3.letterSpacing")},H4:{fontFamily:Ne("H4.fontFamily"),fontSize:Ne("H4.fontSize"),fontWeight:Ne("H4.fontWeight"),lineHeight:Ne("H4.lineHeight"),letterSpacing:Ne("H4.letterSpacing")},H5:{fontFamily:Ne("H5.fontFamily"),fontSize:Ne("H5.fontSize"),fontWeight:Ne("H5.fontWeight"),lineHeight:Ne("H5.lineHeight"),letterSpacing:Ne("H5.letterSpacing")},H6:{fontFamily:Ne("H6.fontFamily"),fontSize:Ne("H6.fontSize"),fontWeight:Ne("H6.fontWeight"),lineHeight:Ne("H6.lineHeight"),letterSpacing:Ne("H6.letterSpacing")},Body:{fontFamily:Ne("Body.fontFamily"),fontSize:Ne("Body.fontSize"),fontWeight:Ne("Body.fontWeight"),lineHeight:Ne("Body.lineHeight"),letterSpacing:Ne("Body.letterSpacing")},BodySmall:{fontFamily:Ne("BodySmall.fontFamily"),fontSize:Ne("BodySmall.fontSize"),fontWeight:Ne("BodySmall.fontWeight"),lineHeight:Ne("BodySmall.lineHeight"),letterSpacing:Ne("BodySmall.letterSpacing")},XSmall:{fontFamily:Ne("XSmall.fontFamily"),fontSize:Ne("XSmall.fontSize"),fontWeight:Ne("XSmall.fontWeight"),lineHeight:Ne("XSmall.lineHeight"),letterSpacing:Ne("XSmall.letterSpacing")}},Ie=t=>{switch(t){case 700:case"bold":return Le.Bold;case 600:case"semibold":return Le.Semibold;case 300:case"light":return Le.Light;case 400:case"regular":return Le.Regular;default:return""}},Te=(t,e)=>n=>{const r=Re[t].fontFamily(n),i=Re[t].fontWeight(n);return Object.values(Le).includes(r)?f`
55
+ font-family: ${Ie(e)||Ie(i)||r};
56
56
  font-weight: normal !important;
57
57
  `:f`
58
58
  font-family: ${r};
59
- font-weight: ${(Te(e)||i)??"normal"};
60
- `},Te=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""}},Pe=(t,e,n=!1)=>r=>{const i=Ie[t],o=i.fontSize(r);return f`
61
- ${Ve(t,e)}
59
+ font-weight: ${(Ve(e)||i)??"normal"};
60
+ `},Ve=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""}},Pe=(t,e,n=!1)=>r=>{const i=Re[t],o=i.fontSize(r);return f`
61
+ ${Te(t,e)}
62
62
  font-size: ${o}rem !important;
63
63
  line-height: ${i.lineHeight}rem !important;
64
64
  letter-spacing: ${i.letterSpacing(r)||0}rem !important;
@@ -236,5 +236,5 @@ import t,{jsx as e,jsxs as n,Fragment as r}from"react/jsx-runtime";import i,{use
236
236
  &:not(:last-child) {
237
237
  margin-right: ${"0.5rem"};
238
238
  }
239
- `;var ln=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n};var cn=function(t){return function(e){return null==t?void 0:t[e]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),fn=se,un=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,dn=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var hn=function(t){return(t=fn(t))&&t.replace(un,cn).replace(dn,"")},gn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var sn=function(t){return t.match(gn)||[]},pn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var mn=function(t){return pn.test(t)},yn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Sn="["+yn+"]",vn="\\d+",Fn="[\\u2700-\\u27bf]",xn="[a-z\\xdf-\\xf6\\xf8-\\xff]",bn="[^\\ud800-\\udfff"+yn+vn+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",$n="(?:\\ud83c[\\udde6-\\uddff]){2}",Hn="[\\ud800-\\udbff][\\udc00-\\udfff]",Bn="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Dn="(?:"+xn+"|"+bn+")",wn="(?:"+Bn+"|"+bn+")",_n="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",zn="[\\ufe0e\\ufe0f]?"+_n+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",$n,Hn].join("|")+")[\\ufe0e\\ufe0f]?"+_n+")*"),En="(?:"+[Fn,$n,Hn].join("|")+")"+zn,Cn=RegExp([Bn+"?"+xn+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Sn,Bn,"$"].join("|")+")",wn+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Sn,Bn+Dn,"$"].join("|")+")",Bn+"?"+Dn+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Bn+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vn,En].join("|"),"g");var An=sn,kn=mn,Wn=se,On=function(t){return t.match(Cn)||[]};var Ln=ln,jn=hn,Nn=function(t,e,n){return t=Wn(t),void 0===(e=n?void 0:e)?kn(t)?On(t):An(t):t.match(e)||[]},In=RegExp("['’]","g");var Rn=function(t){return function(e){return Ln(Nn(jn(e).replace(In,"")),t,"")}}((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}));const Vn=({steps:t,currentIndex:i,displayExtractor:c,fadeColor:f,fadePosition:u="both"})=>{const[d,h]=o(!!u),[s,p]=o("left"===u||"both"===u),[m,y]=o("right"===u||"both"===u),S=a(null),v=a(null);l((()=>{x(),window.addEventListener("resize",x);const t=v.current;return t&&t.addEventListener("scroll",x),()=>{window.removeEventListener("resize",x),t&&t.removeEventListener("scroll",x)}}),[]),l((()=>(F(),window.addEventListener("resize",F),()=>{window.removeEventListener("resize",F)})),[i]);const F=()=>{if(window.innerWidth>g.mobileL)return;const t=v.current;if(t){const e=10.5*i-4;t.scrollLeft=16*e}},x=()=>{if(d){h(window.innerWidth<g.mobileL);const t=v.current,e=S.current;t&&e&&t.scrollWidth>e.offsetWidth?(h(!0),p(t.scrollLeft>=1),y(t.scrollWidth-t.scrollLeft>e.offsetWidth)):h(!1)}},b=(t,e)=>t<e?"Completed step":t===e?"Current step":"Uncompleted step",$=(t,e)=>Rn(`${b(t,e)} ${t}`);if(!t.length)return null;return n(tn,{ref:S,children:[e(en,{ref:v,children:t.map(((t,r)=>{const o=r<=i,a=r===i?"bold":"regular";return n(an,{"aria-label":b(r,i),id:$(r,i),children:[e(rn,{highlighted:o}),e(on,{highlighted:o,weight:a,children:(l=t,c?c(l):l.toString())})]},r);var l}))}),d&&n(r,{children:[s&&e(nn,{backgroundColor:f,position:"left"}),m&&e(nn,{backgroundColor:f,position:"right"})]})]})};export{Vn as ProgressIndicator};
239
+ `;var ln=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n};var cn=function(t){return function(e){return null==t?void 0:t[e]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),fn=se,dn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,un=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var hn=function(t){return(t=fn(t))&&t.replace(dn,cn).replace(un,"")},gn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var sn=function(t){return t.match(gn)||[]},pn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var mn=function(t){return pn.test(t)},yn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Sn="["+yn+"]",vn="\\d+",Fn="[\\u2700-\\u27bf]",bn="[a-z\\xdf-\\xf6\\xf8-\\xff]",xn="[^\\ud800-\\udfff"+yn+vn+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",$n="(?:\\ud83c[\\udde6-\\uddff]){2}",Hn="[\\ud800-\\udbff][\\udc00-\\udfff]",Bn="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Dn="(?:"+bn+"|"+xn+")",wn="(?:"+Bn+"|"+xn+")",_n="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",zn="[\\ufe0e\\ufe0f]?"+_n+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",$n,Hn].join("|")+")[\\ufe0e\\ufe0f]?"+_n+")*"),En="(?:"+[Fn,$n,Hn].join("|")+")"+zn,Cn=RegExp([Bn+"?"+bn+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Sn,Bn,"$"].join("|")+")",wn+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Sn,Bn+Dn,"$"].join("|")+")",Bn+"?"+Dn+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Bn+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vn,En].join("|"),"g");var An=sn,kn=mn,Wn=se,On=function(t){return t.match(Cn)||[]};var Ln=ln,jn=hn,Nn=function(t,e,n){return t=Wn(t),void 0===(e=n?void 0:e)?kn(t)?On(t):An(t):t.match(e)||[]},Rn=RegExp("['’]","g");var In=function(t){return function(e){return Ln(Nn(jn(e).replace(Rn,"")),t,"")}}((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}));const Tn=({steps:t,currentIndex:i,displayExtractor:c,fadeColor:f,fadePosition:d="both"})=>{const[u,h]=o(!!d),[s,p]=o("left"===d||"both"===d),[m,y]=o("right"===d||"both"===d),S=a(null),v=a(null);l((()=>{b(),window.addEventListener("resize",b);const t=v.current;return t&&t.addEventListener("scroll",b),()=>{window.removeEventListener("resize",b),t&&t.removeEventListener("scroll",b)}}),[]),l((()=>(F(),window.addEventListener("resize",F),()=>{window.removeEventListener("resize",F)})),[i]);const F=()=>{if(window.innerWidth>g.mobileL)return;const t=v.current;if(t){const e=10.5*i-4;t.scrollLeft=16*e}},b=()=>{if(u){h(window.innerWidth<g.mobileL);const t=v.current,e=S.current;t&&e&&t.scrollWidth>e.offsetWidth?(h(!0),p(t.scrollLeft>=1),y(t.scrollWidth-t.scrollLeft>e.offsetWidth)):h(!1)}},x=(t,e)=>t<e?"Completed step":t===e?"Current step":"Uncompleted step",$=(t,e)=>In(`${x(t,e)} ${t}`);if(!t.length)return null;return n(tn,{ref:S,children:[e(en,{ref:v,children:t.map(((t,r)=>{const o=r<=i,a=r===i?"bold":"regular";return n(an,{"aria-label":x(r,i),id:$(r,i),children:[e(rn,{highlighted:o}),e(on,{highlighted:o,weight:a,children:(l=t,c?c(l):l.toString())})]},r);var l}))}),u&&n(r,{children:[s&&e(nn,{backgroundColor:f,position:"left"}),m&&e(nn,{backgroundColor:f,position:"right"})]})]})};export{Tn as ProgressIndicator};
240
240
  //# sourceMappingURL=index.js.map