@lifesg/react-design-system 1.0.0-alpha.21 → 1.0.0-alpha.23
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 +5 -5
- package/accordion/index.js.map +1 -1
- package/alert/index.js +23 -23
- package/alert/index.js.map +1 -1
- package/animations/index.d.ts +1 -0
- package/animations/index.js +3 -4
- package/animations/index.js.map +1 -1
- package/animations/loading-dots/loading-dots.d.ts +2 -1
- package/animations/loading-dots-spinner/loading-dots-spinner.d.ts +2 -1
- package/animations/loading-dots-spinner/lottie-animation.d.ts +2 -1
- package/animations/loading-spinner/loading-spinner.d.ts +2 -1
- package/animations/types.d.ts +10 -0
- package/box-container/index.js +18 -18
- package/box-container/index.js.map +1 -1
- package/breadcrumb/index.js +3 -3
- package/breadcrumb/index.js.map +1 -1
- package/button/index.js +2 -2
- package/button/index.js.map +1 -1
- package/calendar/index.js +57 -57
- package/calendar/index.js.map +1 -1
- package/card/index.js +1 -1
- package/card/index.js.map +1 -1
- package/checkbox/index.js +3 -3
- package/checkbox/index.js.map +1 -1
- package/cjs/index.js +704 -238
- package/cjs/index.js.map +1 -1
- package/color/index.js +1 -1
- package/color/index.js.map +1 -1
- package/color/types.d.ts +1 -0
- package/date-input/index.js +5 -3
- package/date-input/index.js.map +1 -1
- package/design-token/index.js +6 -4
- package/design-token/index.js.map +1 -1
- package/design-token/types.d.ts +1 -0
- package/error-display/index.js +38 -38
- package/error-display/index.js.map +1 -1
- package/feedback-rating/index.js +118 -118
- package/feedback-rating/index.js.map +1 -1
- package/filter/addons/filter-item-checkbox.d.ts +3 -0
- package/filter/addons/filter-item-checkbox.styles.d.ts +12 -0
- package/filter/filter-context.d.ts +7 -0
- package/filter/filter-item-page.d.ts +3 -0
- package/filter/filter-item-page.styles.d.ts +1 -0
- package/filter/filter-item.d.ts +3 -0
- package/filter/filter-item.styles.d.ts +26 -0
- package/filter/filter.d.ts +7 -0
- package/filter/filter.styles.d.ts +17 -0
- package/filter/index.d.ts +2 -0
- package/filter/index.js +696 -0
- package/filter/index.js.map +1 -0
- package/filter/package.json +7 -0
- package/filter/types.d.ts +49 -0
- package/footer/index.js +5 -5
- package/footer/index.js.map +1 -1
- package/form/index.js +52 -50
- package/form/index.js.map +1 -1
- package/icon-button/index.js +1 -1
- package/icon-button/index.js.map +1 -1
- package/index.d.ts +3 -0
- package/index.js +701 -235
- package/index.js.map +1 -1
- package/input/index.js +7 -5
- package/input/index.js.map +1 -1
- package/input-group/index.js +5 -3
- package/input-group/index.js.map +1 -1
- package/input-select/index.js +8 -6
- package/input-select/index.js.map +1 -1
- package/input-textarea/index.js +4 -2
- package/input-textarea/index.js.map +1 -1
- package/link-list/index.js +1 -1
- package/link-list/index.js.map +1 -1
- package/modal/index.js +4 -4
- package/modal/index.js.map +1 -1
- package/navbar/brand.d.ts +5 -4
- package/navbar/brand.styles.d.ts +2 -0
- package/navbar/index.js +267 -129
- package/navbar/index.js.map +1 -1
- package/navbar/menu.d.ts +10 -0
- package/navbar/menu.styles.d.ts +5 -0
- package/navbar/navbar-items.styles.d.ts +7 -0
- package/navbar/navbar.styles.d.ts +4 -2
- package/navbar/types.d.ts +13 -5
- package/notification-banner/index.js +1 -1
- package/notification-banner/index.js.map +1 -1
- package/otp-input/index.js +8 -6
- package/otp-input/index.js.map +1 -1
- package/otp-input/otp-input.d.ts +1 -1
- package/otp-input/types.d.ts +5 -5
- package/overlay/index.js +1 -1
- package/overlay/index.js.map +1 -1
- package/package.json +1 -1
- package/phone-number-input/index.js +16 -14
- package/phone-number-input/index.js.map +1 -1
- package/popover/index.js +2 -2
- package/popover/index.js.map +1 -1
- package/progress-indicator/index.js +1 -1
- package/progress-indicator/index.js.map +1 -1
- package/radio-button/index.js +4 -4
- package/radio-button/index.js.map +1 -1
- package/shared/toggle-icon/toggle-icon.d.ts +9 -0
- package/shared/toggle-icon/toggle-icon.styles.d.ts +6 -0
- package/smart-app-banner/index.js +6 -6
- package/smart-app-banner/index.js.map +1 -1
- package/text/index.js +2 -2
- package/text/index.js.map +1 -1
- package/text-list/index.js +1 -1
- package/text-list/index.js.map +1 -1
- package/timeline/index.js +19 -19
- package/timeline/index.js.map +1 -1
- package/timepicker/index.js +23 -21
- package/timepicker/index.js.map +1 -1
- package/toggle/index.d.ts +2 -0
- package/toggle/index.js +230 -0
- package/toggle/index.js.map +1 -0
- package/toggle/package.json +7 -0
- package/toggle/toggle.d.ts +3 -0
- package/toggle/toggle.styles.d.ts +18 -0
- package/toggle/types.d.ts +30 -0
- package/toggle-button/index.js +22 -22
- package/toggle-button/index.js.map +1 -1
- package/toggle-button/toggle-button.d.ts +3 -0
- package/tooltip/index.js +1 -1
- package/tooltip/index.js.map +1 -1
- package/unit-number/index.js +10 -8
- package/unit-number/index.js.map +1 -1
package/timeline/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createElement as t}from"react";import e,{jsxs as n,jsx as i,Fragment as r}from"react/jsx-runtime";import o,{css as a}from"styled-components";const l={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},c={D1:{fontFamily:l.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:l.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:l.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:l.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:l.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:l.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:l.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:l.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:l.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:l.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:l.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:l.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:l.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:l.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}};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,p=d||f||Function("return this")(),s=p.Symbol,u=s,m=Object.prototype,y=m.hasOwnProperty,S=m.toString,F=u?u.toStringTag:void 0;var v=function(t){var e=y.call(t,F),n=t[F];try{t[F]=void 0;var i=!0}catch(t){}var r=S.call(t);return i&&(e?t[F]=n:delete t[F]),r},$=Object.prototype.toString;var H=v,B=function(t){return $.call(t)},b=s?s.toStringTag:void 0;var D=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":b&&b in Object(t)?H(t):B(t)};var _=D,z=function(t){return null!=t&&"object"==typeof t};var C=function(t){return"symbol"==typeof t||z(t)&&"[object Symbol]"==_(t)},w=g,x=C,E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k=/^\w*$/;var W=function(t,e){if(w(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!x(t))||(k.test(t)||!E.test(t)||null!=e&&t in Object(e))};var A=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},O=D,j=A;var V,L=function(t){if(!j(t))return!1;var e=O(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},N=p["__core-js_shared__"],R=(V=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"";var T=function(t){return!!R&&R in t},I=Function.prototype.toString;var P=L,X=T,G=A,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"),it=nt;var rt=function(){this.__data__=it?it(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=rt,pt=ot,st=ct,ut=function(t){var e=this.__data__;return ht?void 0!==e[t]:gt.call(e,t)},mt=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 yt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}yt.prototype.clear=ft,yt.prototype.delete=pt,yt.prototype.get=st,yt.prototype.has=ut,yt.prototype.set=mt;var St=yt;var Ft=function(){this.__data__=[],this.size=0};var vt=function(t,e){return t===e||t!=t&&e!=e};var $t=function(t,e){for(var n=t.length;n--;)if(vt(t[n][0],e))return n;return-1},Ht=$t,Bt=Array.prototype.splice;var bt=$t;var Dt=$t;var _t=$t;var zt=Ft,Ct=function(t){var e=this.__data__,n=Ht(e,t);return!(n<0)&&(n==e.length-1?e.pop():Bt.call(e,n,1),--this.size,!0)},wt=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},Et=function(t,e){var n=this.__data__,i=_t(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function kt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}kt.prototype.clear=zt,kt.prototype.delete=Ct,kt.prototype.get=wt,kt.prototype.has=xt,kt.prototype.set=Et;var Wt=kt,At=et(p,"Map"),Ot=St,jt=Wt,Vt=At;var Lt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Nt=function(t,e){var n=t.__data__;return Lt(e)?n["string"==typeof e?"string":"hash"]:n.map},Rt=Nt;var Tt=Nt;var It=Nt;var Pt=Nt;var Xt=function(){this.size=0,this.__data__={hash:new Ot,map:new(Vt||jt),string:new Ot}},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),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function qt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[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 i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,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,i,r){e.push(i?r.replace(te,"$1"):n||t)})),e}));var ne=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r},ie=g,re=C,oe=s?s.prototype:void 0,ae=oe?oe.toString:void 0;var le=function t(e){if("string"==typeof e)return e;if(ie(e))return ne(e,t)+"";if(re(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 pe=C;var se=function(t,e){return he(t)?t:ge(t,e)?[t]:de(fe(t))},ue=function(t){if("string"==typeof t||pe(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var me=function(t,e){for(var n=0,i=(e=se(e,t)).length;null!=t&&n<i;)t=t[ue(e[n++])];return n&&n==i?t:void 0};var ye=function(t,e,n){var i=null==t?void 0:me(t,e);return void 0===i?n:i};const Se=(t,e,n)=>e?ye(n,e)||ye(t,e):n||t,Fe=(t,e)=>{const n=e||t.defaultValue;return ye(t.collections,n)};var ve;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme",t.designTokenScheme="designTokenScheme"}(ve||(ve={}));const $e={collections:{base:c},defaultValue:"base"},He=t=>e=>{const n=e.theme,i=Fe($e,n[ve.textStyleScheme]);return n.options&&n.options.textStyle?Se(i,t,n.options.textStyle):Se(i,t)},Be={D1:{fontFamily:He("D1.fontFamily"),fontSize:He("D1.fontSize"),fontWeight:He("D1.fontWeight"),lineHeight:He("D1.lineHeight"),letterSpacing:He("D1.letterSpacing")},D2:{fontFamily:He("D2.fontFamily"),fontSize:He("D2.fontSize"),fontWeight:He("D2.fontWeight"),lineHeight:He("D2.lineHeight"),letterSpacing:He("D2.letterSpacing")},D3:{fontFamily:He("D3.fontFamily"),fontSize:He("D3.fontSize"),fontWeight:He("D3.fontWeight"),lineHeight:He("D3.lineHeight"),letterSpacing:He("D3.letterSpacing")},D4:{fontFamily:He("D4.fontFamily"),fontSize:He("D4.fontSize"),fontWeight:He("D4.fontWeight"),lineHeight:He("D4.lineHeight"),letterSpacing:He("D4.letterSpacing")},DBody:{fontFamily:He("DBody.fontFamily"),fontSize:He("DBody.fontSize"),fontWeight:He("DBody.fontWeight"),lineHeight:He("DBody.lineHeight"),letterSpacing:He("DBody.letterSpacing")},H1:{fontFamily:He("H1.fontFamily"),fontSize:He("H1.fontSize"),fontWeight:He("H1.fontWeight"),lineHeight:He("H1.lineHeight"),letterSpacing:He("H1.letterSpacing")},H2:{fontFamily:He("H2.fontFamily"),fontSize:He("H2.fontSize"),fontWeight:He("H2.fontWeight"),lineHeight:He("H2.lineHeight"),letterSpacing:He("H2.letterSpacing")},H3:{fontFamily:He("H3.fontFamily"),fontSize:He("H3.fontSize"),fontWeight:He("H3.fontWeight"),lineHeight:He("H3.lineHeight"),letterSpacing:He("H3.letterSpacing")},H4:{fontFamily:He("H4.fontFamily"),fontSize:He("H4.fontSize"),fontWeight:He("H4.fontWeight"),lineHeight:He("H4.lineHeight"),letterSpacing:He("H4.letterSpacing")},H5:{fontFamily:He("H5.fontFamily"),fontSize:He("H5.fontSize"),fontWeight:He("H5.fontWeight"),lineHeight:He("H5.lineHeight"),letterSpacing:He("H5.letterSpacing")},H6:{fontFamily:He("H6.fontFamily"),fontSize:He("H6.fontSize"),fontWeight:He("H6.fontWeight"),lineHeight:He("H6.lineHeight"),letterSpacing:He("H6.letterSpacing")},Body:{fontFamily:He("Body.fontFamily"),fontSize:He("Body.fontSize"),fontWeight:He("Body.fontWeight"),lineHeight:He("Body.lineHeight"),letterSpacing:He("Body.letterSpacing")},BodySmall:{fontFamily:He("BodySmall.fontFamily"),fontSize:He("BodySmall.fontSize"),fontWeight:He("BodySmall.fontWeight"),lineHeight:He("BodySmall.lineHeight"),letterSpacing:He("BodySmall.letterSpacing")},XSmall:{fontFamily:He("XSmall.fontFamily"),fontSize:He("XSmall.fontSize"),fontWeight:He("XSmall.fontWeight"),lineHeight:He("XSmall.lineHeight"),letterSpacing:He("XSmall.letterSpacing")}},be=t=>{switch(t){case 700:case"bold":return l.Bold;case 600:case"semibold":return l.Semibold;case 300:case"light":return l.Light;case 400:case"regular":return l.Regular;default:return""}},De=(t,e)=>n=>{const i=Be[t].fontFamily(n),r=Be[t].fontWeight(n);return Object.values(l).includes(i)?a`
|
|
1
|
+
import{createElement as t}from"react";import e,{jsxs as n,jsx as i,Fragment as r}from"react/jsx-runtime";import o,{css as a}from"styled-components";const l={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},c={D1:{fontFamily:l.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:l.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:l.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:l.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:l.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:l.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:l.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:l.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:l.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:l.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:l.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:l.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:l.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:l.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}};var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h=Array.isArray,d="object"==typeof g&&g&&g.Object===Object&&g,f="object"==typeof self&&self&&self.Object===Object&&self,p=d||f||Function("return this")(),s=p.Symbol,u=s,m=Object.prototype,y=m.hasOwnProperty,S=m.toString,F=u?u.toStringTag:void 0;var v=function(t){var e=y.call(t,F),n=t[F];try{t[F]=void 0;var i=!0}catch(t){}var r=S.call(t);return i&&(e?t[F]=n:delete t[F]),r},$=Object.prototype.toString;var H=v,B=function(t){return $.call(t)},b=s?s.toStringTag:void 0;var D=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":b&&b in Object(t)?H(t):B(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=h,E=w,x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k=/^\w*$/;var W=function(t,e){if(C(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!E(t))||(k.test(t)||!x.test(t)||null!=e&&t in Object(e))};var A=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},O=D,j=A;var V,L=function(t){if(!j(t))return!1;var e=O(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},N=p["__core-js_shared__"],R=(V=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"";var T=function(t){return!!R&&R in t},I=Function.prototype.toString;var P=L,X=T,G=A,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"),it=nt;var rt=function(){this.__data__=it?it(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},gt=nt,ht=Object.prototype.hasOwnProperty;var dt=nt;var ft=rt,pt=ot,st=ct,ut=function(t){var e=this.__data__;return gt?void 0!==e[t]:ht.call(e,t)},mt=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 yt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}yt.prototype.clear=ft,yt.prototype.delete=pt,yt.prototype.get=st,yt.prototype.has=ut,yt.prototype.set=mt;var St=yt;var Ft=function(){this.__data__=[],this.size=0};var vt=function(t,e){return t===e||t!=t&&e!=e};var $t=function(t,e){for(var n=t.length;n--;)if(vt(t[n][0],e))return n;return-1},Ht=$t,Bt=Array.prototype.splice;var bt=$t;var Dt=$t;var _t=$t;var zt=Ft,wt=function(t){var e=this.__data__,n=Ht(e,t);return!(n<0)&&(n==e.length-1?e.pop():Bt.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]},Et=function(t){return Dt(this.__data__,t)>-1},xt=function(t,e){var n=this.__data__,i=_t(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function kt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}kt.prototype.clear=zt,kt.prototype.delete=wt,kt.prototype.get=Ct,kt.prototype.has=Et,kt.prototype.set=xt;var Wt=kt,At=et(p,"Map"),Ot=St,jt=Wt,Vt=At;var Lt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Nt=function(t,e){var n=t.__data__;return Lt(e)?n["string"==typeof e?"string":"hash"]:n.map},Rt=Nt;var Tt=Nt;var It=Nt;var Pt=Nt;var Xt=function(){this.size=0,this.__data__={hash:new Ot,map:new(Vt||jt),string:new Ot}},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),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function qt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[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 i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,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,i,r){e.push(i?r.replace(te,"$1"):n||t)})),e}));var ne=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r},ie=h,re=w,oe=s?s.prototype:void 0,ae=oe?oe.toString:void 0;var le=function t(e){if("string"==typeof e)return e;if(ie(e))return ne(e,t)+"";if(re(e))return ae?ae.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},ce=le;var ge=h,he=W,de=ee,fe=function(t){return null==t?"":ce(t)};var pe=w;var se=function(t,e){return ge(t)?t:he(t,e)?[t]:de(fe(t))},ue=function(t){if("string"==typeof t||pe(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var me=function(t,e){for(var n=0,i=(e=se(e,t)).length;null!=t&&n<i;)t=t[ue(e[n++])];return n&&n==i?t:void 0};var ye=function(t,e,n){var i=null==t?void 0:me(t,e);return void 0===i?n:i};const Se=(t,e,n)=>e?ye(n,e)||ye(t,e):n||t,Fe=(t,e)=>{const n=e||t.defaultValue;return ye(t.collections,n)};var ve;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme",t.designTokenScheme="designTokenScheme"}(ve||(ve={}));const $e={collections:{base:c},defaultValue:"base"},He=t=>e=>{const n=e.theme,i=Fe($e,n[ve.textStyleScheme]);return n.options&&n.options.textStyle?Se(i,t,n.options.textStyle):Se(i,t)},Be={D1:{fontFamily:He("D1.fontFamily"),fontSize:He("D1.fontSize"),fontWeight:He("D1.fontWeight"),lineHeight:He("D1.lineHeight"),letterSpacing:He("D1.letterSpacing")},D2:{fontFamily:He("D2.fontFamily"),fontSize:He("D2.fontSize"),fontWeight:He("D2.fontWeight"),lineHeight:He("D2.lineHeight"),letterSpacing:He("D2.letterSpacing")},D3:{fontFamily:He("D3.fontFamily"),fontSize:He("D3.fontSize"),fontWeight:He("D3.fontWeight"),lineHeight:He("D3.lineHeight"),letterSpacing:He("D3.letterSpacing")},D4:{fontFamily:He("D4.fontFamily"),fontSize:He("D4.fontSize"),fontWeight:He("D4.fontWeight"),lineHeight:He("D4.lineHeight"),letterSpacing:He("D4.letterSpacing")},DBody:{fontFamily:He("DBody.fontFamily"),fontSize:He("DBody.fontSize"),fontWeight:He("DBody.fontWeight"),lineHeight:He("DBody.lineHeight"),letterSpacing:He("DBody.letterSpacing")},H1:{fontFamily:He("H1.fontFamily"),fontSize:He("H1.fontSize"),fontWeight:He("H1.fontWeight"),lineHeight:He("H1.lineHeight"),letterSpacing:He("H1.letterSpacing")},H2:{fontFamily:He("H2.fontFamily"),fontSize:He("H2.fontSize"),fontWeight:He("H2.fontWeight"),lineHeight:He("H2.lineHeight"),letterSpacing:He("H2.letterSpacing")},H3:{fontFamily:He("H3.fontFamily"),fontSize:He("H3.fontSize"),fontWeight:He("H3.fontWeight"),lineHeight:He("H3.lineHeight"),letterSpacing:He("H3.letterSpacing")},H4:{fontFamily:He("H4.fontFamily"),fontSize:He("H4.fontSize"),fontWeight:He("H4.fontWeight"),lineHeight:He("H4.lineHeight"),letterSpacing:He("H4.letterSpacing")},H5:{fontFamily:He("H5.fontFamily"),fontSize:He("H5.fontSize"),fontWeight:He("H5.fontWeight"),lineHeight:He("H5.lineHeight"),letterSpacing:He("H5.letterSpacing")},H6:{fontFamily:He("H6.fontFamily"),fontSize:He("H6.fontSize"),fontWeight:He("H6.fontWeight"),lineHeight:He("H6.lineHeight"),letterSpacing:He("H6.letterSpacing")},Body:{fontFamily:He("Body.fontFamily"),fontSize:He("Body.fontSize"),fontWeight:He("Body.fontWeight"),lineHeight:He("Body.lineHeight"),letterSpacing:He("Body.letterSpacing")},BodySmall:{fontFamily:He("BodySmall.fontFamily"),fontSize:He("BodySmall.fontSize"),fontWeight:He("BodySmall.fontWeight"),lineHeight:He("BodySmall.lineHeight"),letterSpacing:He("BodySmall.letterSpacing")},XSmall:{fontFamily:He("XSmall.fontFamily"),fontSize:He("XSmall.fontSize"),fontWeight:He("XSmall.fontWeight"),lineHeight:He("XSmall.lineHeight"),letterSpacing:He("XSmall.letterSpacing")}},be=t=>{switch(t){case 700:case"bold":return l.Bold;case 600:case"semibold":return l.Semibold;case 300:case"light":return l.Light;case 400:case"regular":return l.Regular;default:return""}},De=(t,e)=>n=>{const i=Be[t].fontFamily(n),r=Be[t].fontWeight(n);return Object.values(l).includes(i)?a`
|
|
2
2
|
font-family: ${be(e)||be(r)||i};
|
|
3
3
|
font-weight: normal !important;
|
|
4
4
|
`:a`
|
|
@@ -12,95 +12,95 @@ import{createElement as t}from"react";import e,{jsxs as n,jsx as i,Fragment as r
|
|
|
12
12
|
${a`
|
|
13
13
|
margin-bottom: ${o*(n?1.05:0)}rem;
|
|
14
14
|
`}
|
|
15
|
-
`},
|
|
15
|
+
`},we=(t=!1,e=!1)=>e?a`
|
|
16
16
|
display: block;
|
|
17
17
|
`:t?a`
|
|
18
18
|
display: inline;
|
|
19
19
|
`:a`
|
|
20
20
|
display: block;
|
|
21
|
-
`;var
|
|
21
|
+
`;var Ce,Ee={};Object.defineProperty(Ee,"__esModule",{value:!0});var xe=e;const ke=t=>xe.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:xe.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"})});ke.displayName="ExternalIcon",Ce=Ee.ExternalIcon=ke;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)",Elevation:"rgba(75, 83, 159, 0.24)"}},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)",Elevation:"rgba(75, 83, 159, 0.24)"}}},defaultValue:"base"},Ae=t=>e=>{const n=e.theme,i=Fe(We,n[ve.colorScheme]);return n.options&&n.options.color?Se(i,t,n.options.color):Se(i,t)},Oe=(Ae("Brand.1"),Ae("Brand.2"),Ae("Brand.3"),Ae("Brand.4"),Ae("Brand.5"),Ae("Brand.6"),Ae("Primary")),je=(Ae("PrimaryDark"),Ae("Secondary")),Ve={Light:{1:Ae("Accent.Light.1"),2:Ae("Accent.Light.2"),3:Ae("Accent.Light.3"),4:Ae("Accent.Light.4"),5:Ae("Accent.Light.5"),6:Ae("Accent.Light.6")},Dark:{1:Ae("Accent.Dark.1"),2:Ae("Accent.Dark.2"),3:Ae("Accent.Dark.3")}},Le={1:Ae("Neutral.1"),2:Ae("Neutral.2"),3:Ae("Neutral.3"),4:Ae("Neutral.4"),5:Ae("Neutral.5"),6:Ae("Neutral.6"),7:Ae("Neutral.7"),8:Ae("Neutral.8")};Ae("Validation.Green.Text"),Ae("Validation.Green.Icon"),Ae("Validation.Green.Border"),Ae("Validation.Green.Background"),Ae("Validation.Orange.Text"),Ae("Validation.Orange.Icon"),Ae("Validation.Orange.Border"),Ae("Validation.Orange.Background"),Ae("Validation.Orange.Badge"),Ae("Validation.Red.Text"),Ae("Validation.Red.Icon"),Ae("Validation.Red.Border"),Ae("Validation.Red.Background"),Ae("Shadow.Accent"),Ae("Shadow.Red"),Ae("Shadow.Elevation");var Ne;!function(t){t.D1=o.h1`
|
|
22
22
|
${t=>a`
|
|
23
23
|
${ze("D1",t.weight,t.paragraph)}
|
|
24
24
|
color: ${Le[1]};
|
|
25
|
-
${
|
|
25
|
+
${we(t.inline,t.paragraph)}
|
|
26
26
|
`}
|
|
27
27
|
`,t.D2=o.h1`
|
|
28
28
|
${t=>a`
|
|
29
29
|
${ze("D2",t.weight,t.paragraph)}
|
|
30
30
|
color: ${Le[1]};
|
|
31
|
-
${
|
|
31
|
+
${we(t.inline,t.paragraph)}
|
|
32
32
|
`}
|
|
33
33
|
`,t.D3=o.h1`
|
|
34
34
|
${t=>a`
|
|
35
35
|
${ze("D3",t.weight,t.paragraph)}
|
|
36
36
|
color: ${Le[1]};
|
|
37
|
-
${
|
|
37
|
+
${we(t.inline,t.paragraph)}
|
|
38
38
|
`}
|
|
39
39
|
`,t.D4=o.h1`
|
|
40
40
|
${t=>a`
|
|
41
41
|
${ze("D4",t.weight,t.paragraph)}
|
|
42
42
|
color: ${Le[1]};
|
|
43
|
-
${
|
|
43
|
+
${we(t.inline,t.paragraph)}
|
|
44
44
|
`}
|
|
45
45
|
`,t.DBody=o.h1`
|
|
46
46
|
${t=>a`
|
|
47
47
|
${ze("DBody",t.weight,t.paragraph)}
|
|
48
48
|
color: ${Le[1]};
|
|
49
|
-
${
|
|
49
|
+
${we(t.inline,t.paragraph)}
|
|
50
50
|
`}
|
|
51
51
|
`,t.H1=o.h1`
|
|
52
52
|
${t=>a`
|
|
53
53
|
${ze("H1",t.weight,t.paragraph)}
|
|
54
54
|
color: ${Le[1]};
|
|
55
|
-
${
|
|
55
|
+
${we(t.inline,t.paragraph)}
|
|
56
56
|
`}
|
|
57
57
|
`,t.H2=o.h2`
|
|
58
58
|
${t=>a`
|
|
59
59
|
${ze("H2",t.weight,t.paragraph)}
|
|
60
60
|
color: ${Le[1]};
|
|
61
|
-
${
|
|
61
|
+
${we(t.inline,t.paragraph)}
|
|
62
62
|
`}
|
|
63
63
|
`,t.H3=o.h3`
|
|
64
64
|
${t=>a`
|
|
65
65
|
${ze("H3",t.weight,t.paragraph)}
|
|
66
66
|
color: ${Le[1]};
|
|
67
|
-
${
|
|
67
|
+
${we(t.inline,t.paragraph)}
|
|
68
68
|
`}
|
|
69
69
|
`,t.H4=o.h4`
|
|
70
70
|
${t=>a`
|
|
71
71
|
${ze("H4",t.weight,t.paragraph)}
|
|
72
72
|
color: ${Le[1]};
|
|
73
|
-
${
|
|
73
|
+
${we(t.inline,t.paragraph)}
|
|
74
74
|
`}
|
|
75
75
|
`,t.H5=o.h5`
|
|
76
76
|
${t=>a`
|
|
77
77
|
${ze("H5",t.weight,t.paragraph)}
|
|
78
78
|
color: ${Le[1]};
|
|
79
|
-
${
|
|
79
|
+
${we(t.inline,t.paragraph)}
|
|
80
80
|
`}
|
|
81
81
|
`,t.H6=o.h6`
|
|
82
82
|
${t=>a`
|
|
83
83
|
${ze("H6",t.weight,t.paragraph)}
|
|
84
84
|
color: ${Le[1]};
|
|
85
|
-
${
|
|
85
|
+
${we(t.inline,t.paragraph)}
|
|
86
86
|
`}
|
|
87
87
|
`,t.Body=o.p`
|
|
88
88
|
${t=>a`
|
|
89
89
|
${ze("Body",t.weight,t.paragraph)}
|
|
90
90
|
color: ${Le[1]};
|
|
91
|
-
${
|
|
91
|
+
${we(t.inline,t.paragraph)}
|
|
92
92
|
`}
|
|
93
93
|
`,t.BodySmall=o.p`
|
|
94
94
|
${t=>a`
|
|
95
95
|
${ze("BodySmall",t.weight,t.paragraph)}
|
|
96
96
|
color: ${Le[1]};
|
|
97
|
-
${
|
|
97
|
+
${we(t.inline,t.paragraph)}
|
|
98
98
|
`}
|
|
99
99
|
`,t.XSmall=o.span`
|
|
100
100
|
${t=>a`
|
|
101
101
|
${ze("XSmall",t.weight,t.paragraph)}
|
|
102
102
|
color: ${Le[1]};
|
|
103
|
-
${
|
|
103
|
+
${we(t.inline,t.paragraph)}
|
|
104
104
|
`}
|
|
105
105
|
`,t.Hyperlink={Default:t=>Ie({...t,textStyle:"Body"}),Small:t=>Ie({...t,textStyle:"BodySmall"})}}(Ne||(Ne={}));const Re=o.a`
|
|
106
106
|
${t=>a`
|
|
@@ -118,7 +118,7 @@ import{createElement as t}from"react";import e,{jsxs as n,jsx as i,Fragment as r
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
`}
|
|
121
|
-
`,Te=o(
|
|
121
|
+
`,Te=o(Ce)`
|
|
122
122
|
height: 1rem;
|
|
123
123
|
width: 1rem;
|
|
124
124
|
margin-left: 0.4rem;
|
|
@@ -192,5 +192,5 @@ import{createElement as t}from"react";import e,{jsxs as n,jsx as i,Fragment as r
|
|
|
192
192
|
color: ${Le[1]};
|
|
193
193
|
}
|
|
194
194
|
`}
|
|
195
|
-
`,rn=({items:e,className:o,title:a,startCol:l,colSpan:c,"data-base-indicator-testid":
|
|
195
|
+
`,rn=({items:e,className:o,title:a,startCol:l,colSpan:c,"data-base-indicator-testid":g,"data-testid":h="timeline"})=>{const d=t=>"string"==typeof t?i(Ne.Body,{className:"timeline-item-content-text",children:t}):i(r,{children:t}),f=t=>"string"==typeof t?i(tn,{weight:"semibold",className:"timeline-item-title",children:t}):i(r,{children:t}),p=e=>e.slice(0,2).map(((e,n)=>t(nn,{...e,key:`status-pill-${n}`,"data-testid":"status-pill",className:"timeline-status-pill"},i(Ne.XSmall,{children:e.label}))));return n(Je,{className:o,"data-testid":h,$startCol:l,$colSpan:c,children:[i(Ke,{id:"timeline-title",children:a}),e.map(((t,e)=>{const{title:r,content:o,statuses:a}=t;return n(Qe,{children:[n(qe,{children:[i(Ze,{"data-testid":g?`circleindicator${e+1}_div_${g}`:"circleindicator",$filled:0===e}),i(Ue,{})]}),n(Ye,{className:"timeline-item-content",children:[f(r),a&&i(en,{children:p(a)}),d(o)]})]},`timeline-item-${e}`)}))]})};export{rn as Timeline};
|
|
196
196
|
//# sourceMappingURL=index.js.map
|