@lifesg/react-design-system 1.0.0-alpha.17 → 1.0.0-alpha.18
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/card/types.d.ts +1 -1
- package/checkbox/checkbox.d.ts +1 -1
- package/checkbox/index.js +6 -6
- package/checkbox/index.js.map +1 -1
- package/cjs/index.js +101 -29
- package/cjs/index.js.map +1 -1
- package/color/types.d.ts +1 -1
- package/date-input/date-input.d.ts +1 -1
- package/date-input/index.js +76 -76
- package/date-input/index.js.map +1 -1
- package/date-input/types.d.ts +6 -19
- package/feedback-rating/feedback-rating-stars-container.styles.d.ts +1 -1
- package/feedback-rating/feedback-rating.styles.d.ts +1 -1
- package/feedback-rating/index.js.map +1 -1
- package/footer/index.js +2 -2
- package/footer/index.js.map +1 -1
- package/footer/types.d.ts +2 -2
- package/form/index.js +455 -442
- package/form/index.js.map +1 -1
- package/form/types.d.ts +1 -1
- package/index.d.ts +1 -0
- package/index.js +101 -29
- package/index.js.map +1 -1
- package/input-group/index.js +14 -2
- package/input-group/index.js.map +1 -1
- package/input-group/types.d.ts +6 -6
- package/input-select/index.js +15 -3
- package/input-select/index.js.map +1 -1
- package/input-select/input-select-wrapper.d.ts +1 -1
- package/input-select/input-select.styles.d.ts +1 -0
- package/input-select/types.d.ts +11 -9
- package/input-textarea/types.d.ts +1 -1
- package/link-list/types.d.ts +1 -1
- package/modal/types.d.ts +3 -3
- package/navbar/brand.d.ts +1 -1
- package/navbar/index.js.map +1 -1
- package/navbar/types.d.ts +5 -5
- package/notification-banner/types.d.ts +1 -1
- package/overlay/types.d.ts +1 -1
- package/package.json +1 -1
- package/popover/types.d.ts +3 -3
- package/progress-indicator/types.d.ts +1 -1
- package/shared/dropdown-list/dropdown-list.styles.d.ts +1 -1
- package/shared/dropdown-list/types.d.ts +11 -11
- package/smart-app-banner/types.d.ts +1 -1
- package/timepicker/types.d.ts +3 -3
- package/unit-number/types.d.ts +5 -5
- package/util/date-helper.d.ts +19 -0
- package/util/index.d.ts +2 -0
package/footer/index.js
CHANGED
|
@@ -162,7 +162,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import C,{css as
|
|
|
162
162
|
object-fit: contain;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
`,qt=()=>e(Pt,{"data-testid":"download-app-section",children:[t(Gt,{weight:"semibold",children:"Download the app"}),e(Xt,{children:[t(Jt,{href:"https://apps.apple.com/sg/app/moments-of-life/id1383218758",target:"_blank",rel:"noopener noreferrer",children:t("img",{src:"https://assets.life.gov.sg/react-design-system/img/download/apple-app-store.png",alt:"apple-app-store"})}),t(Jt,{href:"https://play.google.com/store/apps/details?id=sg.gov.app.mol&hl=en_SG",target:"_blank",rel:"noopener noreferrer",children:t("img",{src:"https://assets.life.gov.sg/react-design-system/img/download/google-play-store.png",alt:"google-play-store"})})]})]});var Qt,Kt={exports:{}},en=Kt.exports=function(){var e=1e3,t=6e4,n=36e5,C="millisecond",i="second",r="minute",o="hour",l="day",a="week",d="month",c="quarter",s="year",u="date",h="Invalid Date",L=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var C=String(e);return!C||C.length>=t?e:""+Array(t+1-C.length).join(n)+e},H={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),C=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(C,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var C=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(C,d),r=n-i<0,o=t.clone().add(C+(r?-1:1),d);return+(-(C+(n-i)/(r?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:s,w:a,d:l,D:u,h:o,m:r,s:i,ms:C,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},m="en",V={};V[m]=p;var v=function(e){return e instanceof Z},y=function e(t,n,C){var i;if(!t)return m;if("string"==typeof t){var r=t.toLowerCase();V[r]&&(i=r),n&&(V[r]=n,i=r);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var l=t.name;V[l]=t,i=l}return!C&&i&&(m=i),i||!C&&m},M=function(e,t){if(v(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new Z(n)},$=H;$.l=y,$.i=v,$.w=function(e,t){return M(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var Z=function(){function p(e){this.$L=y(e.locale,null,!0),this.parse(e)}var g=p.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if($.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var C=t.match(L);if(C){var i=C[2]-1||0,r=(C[7]||"0").substring(0,3);return n?new Date(Date.UTC(C[1],i,C[3]||1,C[4]||0,C[5]||0,C[6]||0,r)):new Date(C[1],i,C[3]||1,C[4]||0,C[5]||0,C[6]||0,r)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return $},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var n=M(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return M(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<M(e)},g.$g=function(e,t,n){return $.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,C=!!$.u(t)||t,c=$.p(e),h=function(e,t){var i=$.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return C?i:i.endOf(l)},L=function(e,t){return $.w(n.toDate()[e].apply(n.toDate("s"),(C?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},f=this.$W,p=this.$M,g=this.$D,H="set"+(this.$u?"UTC":"");switch(c){case s:return C?h(1,0):h(31,11);case d:return C?h(1,p):h(0,p+1);case a:var m=this.$locale().weekStart||0,V=(f<m?f+7:f)-m;return h(C?g-V:g+(6-V),p);case l:case u:return L(H+"Hours",0);case o:return L(H+"Minutes",1);case r:return L(H+"Seconds",2);case i:return L(H+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,a=$.p(e),c="set"+(this.$u?"UTC":""),h=(n={},n[l]=c+"Date",n[u]=c+"Date",n[d]=c+"Month",n[s]=c+"FullYear",n[o]=c+"Hours",n[r]=c+"Minutes",n[i]=c+"Seconds",n[C]=c+"Milliseconds",n)[a],L=a===l?this.$D+(t-this.$W):t;if(a===d||a===s){var f=this.clone().set(u,1);f.$d[h](L),f.init(),this.$d=f.set(u,Math.min(this.$D,f.daysInMonth())).$d}else h&&this.$d[h](L);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[$.p(e)]()},g.add=function(C,c){var u,h=this;C=Number(C);var L=$.p(c),f=function(e){var t=M(h);return $.w(t.date(t.date()+Math.round(e*C)),h)};if(L===d)return this.set(d,this.$M+C);if(L===s)return this.set(s,this.$y+C);if(L===l)return f(1);if(L===a)return f(7);var p=(u={},u[r]=t,u[o]=n,u[i]=e,u)[L]||1,g=this.$d.getTime()+C*p;return $.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var C=e||"YYYY-MM-DDTHH:mm:ssZ",i=$.z(this),r=this.$H,o=this.$m,l=this.$M,a=n.weekdays,d=n.months,c=function(e,n,i,r){return e&&(e[n]||e(t,C))||i[n].slice(0,r)},s=function(e){return $.s(r%12||12,e,"0")},u=n.meridiem||function(e,t,n){var C=e<12?"AM":"PM";return n?C.toLowerCase():C},L={YY:String(this.$y).slice(-2),YYYY:this.$y,M:l+1,MM:$.s(l+1,2,"0"),MMM:c(n.monthsShort,l,d,3),MMMM:c(d,l),D:this.$D,DD:$.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,a,2),ddd:c(n.weekdaysShort,this.$W,a,3),dddd:a[this.$W],H:String(r),HH:$.s(r,2,"0"),h:s(1),hh:s(2),a:u(r,o,!0),A:u(r,o,!1),m:String(o),mm:$.s(o,2,"0"),s:String(this.$s),ss:$.s(this.$s,2,"0"),SSS:$.s(this.$ms,3,"0"),Z:i};return C.replace(f,(function(e,t){return t||L[e]||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(C,u,h){var L,f=$.p(u),p=M(C),g=(p.utcOffset()-this.utcOffset())*t,H=this-p,m=$.m(this,p);return m=(L={},L[s]=m/12,L[d]=m,L[c]=m/3,L[a]=(H-g)/6048e5,L[l]=(H-g)/864e5,L[o]=H/n,L[r]=H/t,L[i]=H/e,L)[f]||H,h?m:$.a(m)},g.daysInMonth=function(){return this.endOf(d).$D},g.$locale=function(){return V[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),C=y(e,t,!0);return C&&(n.$L=C),n},g.clone=function(){return $.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},p}(),S=Z.prototype;return M.prototype=S,[["$ms",C],["$s",i],["$m",r],["$H",o],["$W",l],["$M",d],["$y",s],["$D",u]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),M.extend=function(e,t){return e.$i||(e(t,Z,M),e.$i=!0),M},M.locale=y,M.isDayjs=v,M.unix=function(e){return M(1e3*e)},M.en=V[m],M.Ls=V,M.p={},M}();!function(e){e.getCopyrightInfo=(e=new Date)=>`${`${(new Date).getFullYear()} LifeSG, Government of Singapore.`} Last Updated ${en(e).format("D MMMM YYYY")}`,e.getDisclaimerLinks=e=>({privacy:{href:"https://www.life.gov.sg/privacy-statement",target:"_blank",rel:"noopener",...e&&e.privacy?e.privacy:{},children:"Privacy Statement"},termsOfUse:{href:"https://www.life.gov.sg/terms-of-use",target:"_blank",rel:"noopener",...e&&e.termsOfUse?e.termsOfUse:{},children:"Terms of Use"},reportVulnerability:{href:"https://tech.gov.sg/report_vulnerability",target:"_blank",rel:"noopener",external:!0,...e&&e.reportVulnerability?e.reportVulnerability:{},children:"Report Vulnerability"}})}(Qt||(Qt={}));const tn=r.forwardRef(((e,n)=>{const{children:C,"data-testid":i="container",type:r="flex",...o}=e;return t(nn,{ref:n,"data-testid":i,type:r,...o,children:C})})),nn=C.div`
|
|
165
|
+
`,qt=()=>e(Pt,{"data-testid":"download-app-section",children:[t(Gt,{weight:"semibold",children:"Download the app"}),e(Xt,{children:[t(Jt,{href:"https://apps.apple.com/sg/app/moments-of-life/id1383218758",target:"_blank",rel:"noopener noreferrer",id:"footer-download-app-apple",children:t("img",{src:"https://assets.life.gov.sg/react-design-system/img/download/apple-app-store.png",alt:"apple-app-store"})}),t(Jt,{href:"https://play.google.com/store/apps/details?id=sg.gov.app.mol&hl=en_SG",target:"_blank",rel:"noopener noreferrer",id:"footer-download-app-android",children:t("img",{src:"https://assets.life.gov.sg/react-design-system/img/download/google-play-store.png",alt:"google-play-store"})})]})]});var Qt,Kt={exports:{}},en=Kt.exports=function(){var e=1e3,t=6e4,n=36e5,C="millisecond",i="second",r="minute",o="hour",l="day",a="week",d="month",c="quarter",s="year",u="date",h="Invalid Date",L=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var C=String(e);return!C||C.length>=t?e:""+Array(t+1-C.length).join(n)+e},H={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),C=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(C,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var C=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(C,d),r=n-i<0,o=t.clone().add(C+(r?-1:1),d);return+(-(C+(n-i)/(r?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:s,w:a,d:l,D:u,h:o,m:r,s:i,ms:C,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},m="en",V={};V[m]=p;var v=function(e){return e instanceof Z},y=function e(t,n,C){var i;if(!t)return m;if("string"==typeof t){var r=t.toLowerCase();V[r]&&(i=r),n&&(V[r]=n,i=r);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var l=t.name;V[l]=t,i=l}return!C&&i&&(m=i),i||!C&&m},M=function(e,t){if(v(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new Z(n)},$=H;$.l=y,$.i=v,$.w=function(e,t){return M(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var Z=function(){function p(e){this.$L=y(e.locale,null,!0),this.parse(e)}var g=p.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if($.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var C=t.match(L);if(C){var i=C[2]-1||0,r=(C[7]||"0").substring(0,3);return n?new Date(Date.UTC(C[1],i,C[3]||1,C[4]||0,C[5]||0,C[6]||0,r)):new Date(C[1],i,C[3]||1,C[4]||0,C[5]||0,C[6]||0,r)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return $},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var n=M(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return M(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<M(e)},g.$g=function(e,t,n){return $.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,C=!!$.u(t)||t,c=$.p(e),h=function(e,t){var i=$.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return C?i:i.endOf(l)},L=function(e,t){return $.w(n.toDate()[e].apply(n.toDate("s"),(C?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},f=this.$W,p=this.$M,g=this.$D,H="set"+(this.$u?"UTC":"");switch(c){case s:return C?h(1,0):h(31,11);case d:return C?h(1,p):h(0,p+1);case a:var m=this.$locale().weekStart||0,V=(f<m?f+7:f)-m;return h(C?g-V:g+(6-V),p);case l:case u:return L(H+"Hours",0);case o:return L(H+"Minutes",1);case r:return L(H+"Seconds",2);case i:return L(H+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,a=$.p(e),c="set"+(this.$u?"UTC":""),h=(n={},n[l]=c+"Date",n[u]=c+"Date",n[d]=c+"Month",n[s]=c+"FullYear",n[o]=c+"Hours",n[r]=c+"Minutes",n[i]=c+"Seconds",n[C]=c+"Milliseconds",n)[a],L=a===l?this.$D+(t-this.$W):t;if(a===d||a===s){var f=this.clone().set(u,1);f.$d[h](L),f.init(),this.$d=f.set(u,Math.min(this.$D,f.daysInMonth())).$d}else h&&this.$d[h](L);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[$.p(e)]()},g.add=function(C,c){var u,h=this;C=Number(C);var L=$.p(c),f=function(e){var t=M(h);return $.w(t.date(t.date()+Math.round(e*C)),h)};if(L===d)return this.set(d,this.$M+C);if(L===s)return this.set(s,this.$y+C);if(L===l)return f(1);if(L===a)return f(7);var p=(u={},u[r]=t,u[o]=n,u[i]=e,u)[L]||1,g=this.$d.getTime()+C*p;return $.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var C=e||"YYYY-MM-DDTHH:mm:ssZ",i=$.z(this),r=this.$H,o=this.$m,l=this.$M,a=n.weekdays,d=n.months,c=function(e,n,i,r){return e&&(e[n]||e(t,C))||i[n].slice(0,r)},s=function(e){return $.s(r%12||12,e,"0")},u=n.meridiem||function(e,t,n){var C=e<12?"AM":"PM";return n?C.toLowerCase():C},L={YY:String(this.$y).slice(-2),YYYY:this.$y,M:l+1,MM:$.s(l+1,2,"0"),MMM:c(n.monthsShort,l,d,3),MMMM:c(d,l),D:this.$D,DD:$.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,a,2),ddd:c(n.weekdaysShort,this.$W,a,3),dddd:a[this.$W],H:String(r),HH:$.s(r,2,"0"),h:s(1),hh:s(2),a:u(r,o,!0),A:u(r,o,!1),m:String(o),mm:$.s(o,2,"0"),s:String(this.$s),ss:$.s(this.$s,2,"0"),SSS:$.s(this.$ms,3,"0"),Z:i};return C.replace(f,(function(e,t){return t||L[e]||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(C,u,h){var L,f=$.p(u),p=M(C),g=(p.utcOffset()-this.utcOffset())*t,H=this-p,m=$.m(this,p);return m=(L={},L[s]=m/12,L[d]=m,L[c]=m/3,L[a]=(H-g)/6048e5,L[l]=(H-g)/864e5,L[o]=H/n,L[r]=H/t,L[i]=H/e,L)[f]||H,h?m:$.a(m)},g.daysInMonth=function(){return this.endOf(d).$D},g.$locale=function(){return V[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),C=y(e,t,!0);return C&&(n.$L=C),n},g.clone=function(){return $.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},p}(),S=Z.prototype;return M.prototype=S,[["$ms",C],["$s",i],["$m",r],["$H",o],["$W",l],["$M",d],["$y",s],["$D",u]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),M.extend=function(e,t){return e.$i||(e(t,Z,M),e.$i=!0),M},M.locale=y,M.isDayjs=v,M.unix=function(e){return M(1e3*e)},M.en=V[m],M.Ls=V,M.p={},M}();!function(e){e.getCopyrightInfo=(e=new Date)=>`${`${(new Date).getFullYear()} LifeSG, Government of Singapore.`} Last Updated ${en(e).format("D MMMM YYYY")}`,e.getDisclaimerLinks=e=>({privacy:{href:"https://www.life.gov.sg/privacy-statement",target:"_blank",rel:"noopener",...e&&e.privacy?e.privacy:{},children:"Privacy Statement"},termsOfUse:{href:"https://www.life.gov.sg/terms-of-use",target:"_blank",rel:"noopener",...e&&e.termsOfUse?e.termsOfUse:{},children:"Terms of Use"},reportVulnerability:{href:"https://tech.gov.sg/report_vulnerability",target:"_blank",rel:"noopener",external:!0,...e&&e.reportVulnerability?e.reportVulnerability:{},children:"Report Vulnerability"}})}(Qt||(Qt={}));const tn=r.forwardRef(((e,n)=>{const{children:C,"data-testid":i="container",type:r="flex",...o}=e;return t(nn,{ref:n,"data-testid":i,type:r,...o,children:C})})),nn=C.div`
|
|
166
166
|
flex-grow: 1;
|
|
167
167
|
margin: 0 auto;
|
|
168
168
|
position: relative;
|
|
@@ -372,5 +372,5 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import C,{css as
|
|
|
372
372
|
${Ut.tablet} {
|
|
373
373
|
margin-bottom: 0.625rem;
|
|
374
374
|
}
|
|
375
|
-
`,mn=({children:C,links:i,lastUpdated:r,disclaimerLinks:o,showDownloadAddon:l,logoSrc:a,copyrightInfo:d,onFooterLinkClick:c})=>{const s=e=>e.map(((e,n)=>{const{"data-options":C,...i}=e;return t("li",{children:t(dn,{...i,onClick:t=>((e,t)=>{t.onClick?(e.preventDefault(),t.onClick(e)):c&&(e.preventDefault(),c(t))})(t,e)})},n)}));return e(an,{children:[(()=>{let r=null;return C||((i||l)&&(r=e(n,{children:[t(sn,{"data-testid":"logo-section",children:t("img",{src:a||"https://assets.life.gov.sg/react-design-system/img/logo/lifesg-primary-logo.svg",alt:"LifeSG","data-testid":"logo"})}),i[0]&&t(un,{"data-testid":"link-col-1",children:s(i[0])},"link-col-1"),i[1]&&t(un,{"data-testid":"link-col-2",children:s(i[1])},"link-col-2"),l&&t(hn,{children:t(qt,{})})]})),r?t(cn,{type:"grid",children:r}):null)})(),t(Ln,{}),e(fn,{type:"grid",children:[t(pn,{children:(()=>{const e=Qt.getDisclaimerLinks(o);return Object.keys(e).map((n=>t(Hn,{...e[n]},n)))})()},"disclaimer"),t(gn,{children:t(At.XSmall,{"data-testid":"copyright-text",children:d||e(n,{children:["©"," ",Qt.getCopyrightInfo(r)]})})},"copyright")]})]})};export{mn as Footer};
|
|
375
|
+
`,mn=({children:C,links:i,lastUpdated:r,disclaimerLinks:o,showDownloadAddon:l,logoSrc:a,copyrightInfo:d,onFooterLinkClick:c})=>{const s=e=>e.map(((e,n)=>{const{"data-options":C,...i}=e;return t("li",{children:t(dn,{...i,onClick:t=>((e,t)=>{t.onClick?(e.preventDefault(),t.onClick(e)):c&&(e.preventDefault(),c(t))})(t,e)})},n)}));return e(an,{children:[(()=>{let r=null;return C||((i||l)&&(r=e(n,{children:[t(sn,{"data-testid":"logo-section",children:t("img",{src:a||"https://assets.life.gov.sg/react-design-system/img/logo/lifesg-primary-logo.svg",alt:"LifeSG","data-testid":"logo"})}),i?.[0]&&t(un,{"data-testid":"link-col-1",children:s(i[0])},"link-col-1"),i?.[1]&&t(un,{"data-testid":"link-col-2",children:s(i[1])},"link-col-2"),l&&t(hn,{children:t(qt,{})})]})),r?t(cn,{type:"grid",children:r}):null)})(),t(Ln,{}),e(fn,{type:"grid",children:[t(pn,{children:(()=>{const e=Qt.getDisclaimerLinks(o);return Object.keys(e).map((n=>t(Hn,{...e[n]},n)))})()},"disclaimer"),t(gn,{children:t(At.XSmall,{"data-testid":"copyright-text",children:d||e(n,{children:["©"," ",Qt.getCopyrightInfo(r)]})})},"copyright")]})]})};export{mn as Footer};
|
|
376
376
|
//# sourceMappingURL=index.js.map
|