@lifesg/react-design-system 1.0.0-alpha.2 → 1.0.0-alpha.21
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/README.md +2 -0
- package/accordion/accordion-item.style.d.ts +5 -2
- package/accordion/accordion.style.d.ts +1 -1
- package/accordion/index.js +165 -172
- package/accordion/index.js.map +1 -1
- package/alert/alert.style.d.ts +4 -1
- package/alert/index.js +107 -119
- package/alert/index.js.map +1 -1
- package/animations/index.d.ts +1 -0
- package/animations/index.js +6 -3
- package/animations/index.js.map +1 -1
- package/animations/loading-dots-spinner/loading-dots-spinner.d.ts +2 -0
- package/animations/loading-dots-spinner/lottie-animation.d.ts +2 -0
- package/box-container/box-container.styles.d.ts +8 -1
- package/box-container/index.js +69 -74
- package/box-container/index.js.map +1 -1
- package/breadcrumb/breadcrumb.style.d.ts +4 -4
- package/breadcrumb/index.js +102 -106
- package/breadcrumb/index.js.map +1 -1
- package/breadcrumb/types.d.ts +5 -1
- package/button/button.d.ts +2 -2
- package/button/index.js +140 -143
- package/button/index.js.map +1 -1
- package/calendar/calendar-day.d.ts +11 -0
- package/calendar/calendar-day.style.d.ts +23 -0
- package/calendar/calendar-month.d.ts +12 -0
- package/calendar/calendar-month.style.d.ts +12 -0
- package/calendar/calendar-year.d.ts +12 -0
- package/calendar/calendar-year.style.d.ts +12 -0
- package/calendar/calendar.d.ts +4 -0
- package/calendar/calendar.style.d.ts +35 -0
- package/calendar/index.d.ts +2 -0
- package/calendar/index.js +381 -0
- package/calendar/index.js.map +1 -0
- package/calendar/package.json +7 -0
- package/calendar/types.d.ts +15 -0
- package/card/card.d.ts +3 -0
- package/card/card.style.d.ts +1 -0
- package/card/index.d.ts +1 -0
- package/card/index.js +132 -0
- package/card/index.js.map +1 -0
- package/{icon → card}/package.json +1 -1
- package/card/types.d.ts +4 -0
- package/checkbox/checkbox.d.ts +1 -1
- package/checkbox/checkbox.style.d.ts +4 -1
- package/checkbox/index.js +11 -21
- package/checkbox/index.js.map +1 -1
- package/cjs/index.js +2240 -1057
- package/cjs/index.js.map +1 -1
- package/color/color.d.ts +4 -59
- package/color/index.js +1 -1
- package/color/index.js.map +1 -1
- package/color/types.d.ts +5 -1
- package/date-input/date-input.d.ts +1 -1
- package/date-input/date-input.style.d.ts +2 -6
- package/date-input/index.js +132 -147
- package/date-input/index.js.map +1 -1
- package/date-input/types.d.ts +14 -16
- package/design-token/design-token.d.ts +4 -0
- package/design-token/index.d.ts +2 -0
- package/design-token/index.js +6 -0
- package/design-token/index.js.map +1 -0
- package/design-token/package.json +7 -0
- package/design-token/types.d.ts +7 -0
- package/error-display/error-display-data.d.ts +11 -0
- package/error-display/error-display.d.ts +3 -0
- package/error-display/error-display.style.d.ts +7 -0
- package/error-display/index.d.ts +2 -0
- package/error-display/index.js +323 -0
- package/error-display/index.js.map +1 -0
- package/error-display/package.json +7 -0
- package/error-display/types.d.ts +20 -0
- package/feedback-rating/feedback-rating-data.d.ts +5 -0
- package/feedback-rating/feedback-rating-stars-container-data.d.ts +3 -0
- package/feedback-rating/feedback-rating-stars-container.d.ts +3 -0
- package/feedback-rating/feedback-rating-stars-container.styles.d.ts +12 -0
- package/feedback-rating/feedback-rating.d.ts +3 -0
- package/feedback-rating/feedback-rating.styles.d.ts +5 -0
- package/feedback-rating/index.d.ts +2 -0
- package/feedback-rating/index.js +329 -0
- package/feedback-rating/index.js.map +1 -0
- package/feedback-rating/package.json +7 -0
- package/feedback-rating/types.d.ts +14 -0
- package/footer/footer-download-app.d.ts +2 -0
- package/footer/footer-download-app.style.d.ts +6 -0
- package/footer/footer-helper.d.ts +12 -0
- package/footer/footer.d.ts +3 -0
- package/footer/footer.style.d.ts +12 -0
- package/footer/index.d.ts +2 -0
- package/footer/index.js +373 -0
- package/footer/index.js.map +1 -0
- package/footer/package.json +7 -0
- package/footer/types.d.ts +31 -0
- package/form/form-custom-field.d.ts +3 -0
- package/form/form-input-group.d.ts +1 -1
- package/form/form-input.d.ts +1 -1
- package/form/form-label-addon.d.ts +1 -2
- package/form/form-label.d.ts +1 -1
- package/form/form-label.style.d.ts +1 -0
- package/form/form-phone-number-input.d.ts +3 -0
- package/form/form-textarea.d.ts +1 -1
- package/form/form-unit-number-input.d.ts +3 -0
- package/form/index.d.ts +9 -6
- package/form/index.js +771 -657
- package/form/index.js.map +1 -1
- package/form/types.d.ts +14 -5
- package/icon-button/icon-button.d.ts +1 -1
- package/icon-button/icon-button.style.d.ts +6 -1
- package/icon-button/index.js +9 -15
- package/icon-button/index.js.map +1 -1
- package/icon-button/types.d.ts +2 -3
- package/index.d.ts +12 -1
- package/index.js +2217 -1034
- package/index.js.map +1 -1
- package/input/index.js +93 -49
- package/input/index.js.map +1 -1
- package/input/input.d.ts +1 -1
- package/input/input.style.d.ts +9 -4
- package/input/types.d.ts +2 -0
- package/input-group/index.js +435 -343
- package/input-group/index.js.map +1 -1
- package/input-group/input-group-list-addon.d.ts +1 -1
- package/input-group/input-group-list-addon.style.d.ts +13 -2
- package/input-group/input-group.d.ts +1 -1
- package/input-group/input-group.style.d.ts +4 -8
- package/input-group/types.d.ts +11 -10
- package/input-select/index.js +286 -244
- package/input-select/index.js.map +1 -1
- package/input-select/input-select-wrapper.d.ts +1 -1
- package/input-select/input-select.d.ts +1 -1
- package/input-select/input-select.styles.d.ts +5 -1
- package/input-select/types.d.ts +15 -11
- package/input-textarea/index.js +132 -121
- package/input-textarea/index.js.map +1 -1
- package/input-textarea/textarea-counter.d.ts +2 -1
- package/input-textarea/textarea.d.ts +2 -2
- package/input-textarea/types.d.ts +1 -0
- package/layout/container.d.ts +3 -0
- package/layout/content.d.ts +3 -0
- package/layout/index.d.ts +7 -0
- package/layout/index.js +55 -0
- package/layout/index.js.map +1 -0
- package/layout/package.json +7 -0
- package/layout/section.d.ts +3 -0
- package/layout/types.d.ts +15 -0
- package/link-list/index.js +130 -130
- package/link-list/index.js.map +1 -1
- package/link-list/link-list.styles.d.ts +12 -2
- package/link-list/types.d.ts +1 -1
- package/masonry/index.js.map +1 -1
- package/masonry/masonry.d.ts +2 -2
- package/masthead/index.d.ts +1 -0
- package/masthead/index.js +9 -0
- package/masthead/index.js.map +1 -0
- package/masthead/masthead.d.ts +2 -0
- package/masthead/masthead.style.d.ts +1 -0
- package/masthead/package.json +7 -0
- package/media/index.js +1 -1
- package/media/index.js.map +1 -1
- package/media/media.d.ts +2 -1
- package/modal/index.d.ts +1 -1
- package/modal/index.js +30 -43
- package/modal/index.js.map +1 -1
- package/modal/modal-box.styles.d.ts +5 -2
- package/modal/modal.d.ts +1 -1
- package/modal/modal.styles.d.ts +1 -0
- package/modal/types.d.ts +4 -2
- package/navbar/brand.d.ts +10 -0
- package/navbar/brand.styles.d.ts +5 -0
- package/navbar/drawer.d.ts +3 -0
- package/navbar/drawer.styles.d.ts +15 -0
- package/navbar/index.d.ts +7 -0
- package/navbar/index.js +651 -0
- package/navbar/index.js.map +1 -0
- package/navbar/navbar-action-buttons.d.ts +10 -0
- package/navbar/navbar-action-buttons.styles.d.ts +9 -0
- package/navbar/navbar-items.d.ts +11 -0
- package/navbar/navbar-items.styles.d.ts +10 -0
- package/navbar/navbar.d.ts +3 -0
- package/navbar/navbar.styles.d.ts +19 -0
- package/navbar/package.json +7 -0
- package/navbar/types.d.ts +56 -0
- package/notification-banner/index.d.ts +3 -0
- package/notification-banner/index.js +266 -0
- package/notification-banner/index.js.map +1 -0
- package/notification-banner/notification-banner-hoc.d.ts +3 -0
- package/notification-banner/notification-banner.d.ts +6 -0
- package/notification-banner/notification-banner.styles.d.ts +15 -0
- package/notification-banner/package.json +7 -0
- package/notification-banner/types.d.ts +22 -0
- package/otp-input/index.d.ts +2 -0
- package/otp-input/index.js +600 -0
- package/otp-input/index.js.map +1 -0
- package/otp-input/otp-input.d.ts +3 -0
- package/otp-input/otp-input.styles.d.ts +5 -0
- package/otp-input/package.json +7 -0
- package/otp-input/types.d.ts +22 -0
- package/overlay/index.js +1 -1
- package/overlay/index.js.map +1 -1
- package/overlay/types.d.ts +1 -1
- package/package.json +4 -1
- package/phone-number-input/data/country-code.d.ts +1 -0
- package/phone-number-input/index.d.ts +2 -0
- package/phone-number-input/index.js +860 -0
- package/phone-number-input/index.js.map +1 -0
- package/phone-number-input/package.json +7 -0
- package/phone-number-input/phone-number-input-helper.d.ts +5 -0
- package/phone-number-input/phone-number-input.d.ts +3 -0
- package/phone-number-input/types.d.ts +51 -0
- package/popover/index.js +148 -153
- package/popover/index.js.map +1 -1
- package/popover/popover.styles.d.ts +1 -1
- package/popover/types.d.ts +3 -3
- package/progress-indicator/index.d.ts +2 -0
- package/progress-indicator/index.js +240 -0
- package/progress-indicator/index.js.map +1 -0
- package/progress-indicator/package.json +7 -0
- package/progress-indicator/progress-indicator.d.ts +3 -0
- package/progress-indicator/progress-indicator.style.d.ts +19 -0
- package/progress-indicator/types.d.ts +9 -0
- package/radio-button/index.js +7 -7
- package/radio-button/index.js.map +1 -1
- package/shared/dropdown-list/dropdown-list.d.ts +1 -1
- package/shared/dropdown-list/dropdown-list.styles.d.ts +6 -2
- package/shared/dropdown-list/dropdown-search.d.ts +2 -1
- package/shared/dropdown-list/dropdown-search.styles.d.ts +9 -1
- package/shared/dropdown-list/types.d.ts +22 -12
- package/shared/input-wrapper/input-wrapper.d.ts +8 -0
- package/smart-app-banner/index.d.ts +2 -0
- package/smart-app-banner/index.js +373 -0
- package/smart-app-banner/index.js.map +1 -0
- package/smart-app-banner/package.json +7 -0
- package/smart-app-banner/smart-app-banner.d.ts +3 -0
- package/smart-app-banner/smart-app-banner.styles.d.ts +31 -0
- package/smart-app-banner/types.d.ts +18 -0
- package/spec/design-token-spec/base-design-token-set.d.ts +2 -0
- package/text/index.js +62 -65
- package/text/index.js.map +1 -1
- package/text/text-style.d.ts +4 -100
- package/text-list/index.js +7 -7
- package/text-list/index.js.map +1 -1
- package/theme/design-token-helper.d.ts +2 -0
- package/theme/index.js +1 -1
- package/theme/index.js.map +1 -1
- package/theme/types.d.ts +12 -3
- package/timeline/index.js +95 -98
- package/timeline/index.js.map +1 -1
- package/timepicker/index.js +213 -207
- package/timepicker/index.js.map +1 -1
- package/timepicker/timepicker-dropdown.styles.d.ts +2 -2
- package/timepicker/types.d.ts +3 -3
- package/toggle-button/index.js +118 -121
- package/toggle-button/index.js.map +1 -1
- package/tooltip/index.js +127 -125
- package/tooltip/index.js.map +1 -1
- package/tooltip/tooltip.styles.d.ts +3 -1
- package/unit-number/index.d.ts +2 -0
- package/unit-number/index.js +357 -0
- package/unit-number/index.js.map +1 -0
- package/unit-number/package.json +7 -0
- package/unit-number/types.d.ts +27 -0
- package/unit-number/unit-number-input.d.ts +3 -0
- package/unit-number/unit-number-input.style.d.ts +11 -0
- package/util/calendar-helper.d.ts +10 -0
- package/util/date-helper.d.ts +19 -0
- package/util/index.d.ts +3 -0
- package/util/utility-types.d.ts +3 -0
- package/icon/arrow-right-icon.d.ts +0 -3
- package/icon/icon.d.ts +0 -3
- package/icon/index.d.ts +0 -2
- package/icon/index.js +0 -12
- package/icon/index.js.map +0 -1
- package/icon/info-icon.d.ts +0 -3
- package/icon/play-alt-icon.d.ts +0 -3
- package/icon/search-icon.d.ts +0 -3
- package/icon/shared.style.d.ts +0 -1
- package/icon/types.d.ts +0 -9
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import i from"react";import a,{keyframes as o,css as l}from"styled-components";var c,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s={};Object.defineProperty(s,"__esModule",{value:!0});var h=e;const g=e=>h.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:h.jsx("path",{d:"M9.99991 11.229L5.97891 15.25C5.81224 15.4167 5.61091 15.4967 5.37491 15.49C5.13891 15.4827 4.93757 15.3957 4.77091 15.229C4.60424 15.0623 4.52091 14.8577 4.52091 14.615C4.52091 14.3717 4.60424 14.1667 4.77091 14L8.77091 10L4.74991 5.979C4.58324 5.81233 4.50324 5.60767 4.50991 5.365C4.51724 5.12167 4.60424 4.91667 4.77091 4.75C4.93757 4.58333 5.14224 4.5 5.38491 4.5C5.62824 4.5 5.83324 4.58333 5.99991 4.75L9.99991 8.771L14.0209 4.75C14.1876 4.58333 14.3922 4.5 14.6349 4.5C14.8782 4.5 15.0832 4.58333 15.2499 4.75C15.4166 4.91667 15.4999 5.12167 15.4999 5.365C15.4999 5.60767 15.4166 5.81233 15.2499 5.979L11.2289 10L15.2499 14.021C15.4166 14.1877 15.4999 14.389 15.4999 14.625C15.4999 14.861 15.4166 15.0623 15.2499 15.229C15.0832 15.3957 14.8782 15.479 14.6349 15.479C14.3922 15.479 14.1876 15.3957 14.0209 15.229L9.99991 11.229Z",fill:"currentColor"})});g.displayName="CrossIcon",c=s.CrossIcon=g;var f,u={};Object.defineProperty(u,"__esModule",{value:!0});var p=e;const m=e=>p.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M7.33295 14.896L9.99995 13.312L12.688 14.896L11.979 11.896L14.292 9.917L11.229 9.646L9.99995 6.792L8.77095 9.646L5.70795 9.917L8.04195 11.896L7.33295 14.896ZM9.99995 15.062L6.58295 17.104C6.43029 17.1873 6.28095 17.222 6.13495 17.208C5.98962 17.1947 5.86129 17.146 5.74995 17.062C5.63862 16.9793 5.55529 16.865 5.49995 16.719C5.44462 16.573 5.43762 16.4237 5.47895 16.271L6.37495 12.458L3.35395 9.896C3.22929 9.78466 3.15295 9.656 3.12495 9.51C3.09695 9.36466 3.10395 9.22233 3.14595 9.083C3.18729 8.94433 3.26362 8.83 3.37495 8.74C3.48629 8.64933 3.62529 8.597 3.79195 8.583L7.74995 8.229L9.31195 4.604C9.38195 4.45133 9.47929 4.33666 9.60395 4.26C9.72929 4.184 9.86129 4.146 9.99995 4.146C10.1386 4.146 10.2706 4.184 10.396 4.26C10.5206 4.33666 10.618 4.45133 10.688 4.604L12.25 8.25L16.208 8.583C16.3746 8.597 16.5136 8.65266 16.625 8.75C16.7363 8.84733 16.8126 8.96533 16.854 9.104C16.896 9.24266 16.8996 9.38166 16.865 9.521C16.8296 9.65966 16.7496 9.78466 16.625 9.896L13.625 12.458L14.521 16.271C14.5623 16.4237 14.5553 16.573 14.5 16.719C14.4446 16.865 14.3613 16.9793 14.25 17.062C14.1386 17.146 14.0103 17.1947 13.865 17.208C13.719 17.222 13.5696 17.1873 13.417 17.104L9.99995 15.062Z",fill:"currentColor"})});m.displayName="StarIcon",f=u.StarIcon=m;var y,S={};Object.defineProperty(S,"__esModule",{value:!0});var $=e;const v=e=>$.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:$.jsx("path",{d:"M9.99995 15.062L6.58295 17.104C6.43029 17.1873 6.28095 17.222 6.13495 17.208C5.98962 17.1947 5.86129 17.146 5.74995 17.062C5.63862 16.9793 5.55529 16.865 5.49995 16.719C5.44462 16.573 5.43762 16.4237 5.47895 16.271L6.37495 12.458L3.35395 9.896C3.22929 9.78466 3.15295 9.656 3.12495 9.51C3.09695 9.36466 3.10395 9.22233 3.14595 9.083C3.18729 8.94433 3.26362 8.83 3.37495 8.74C3.48629 8.64933 3.62529 8.597 3.79195 8.583L7.74995 8.229L9.31195 4.604C9.38195 4.45133 9.47929 4.33666 9.60395 4.26C9.72929 4.184 9.86129 4.146 9.99995 4.146C10.1386 4.146 10.2706 4.184 10.396 4.26C10.5206 4.33666 10.618 4.45133 10.688 4.604L12.25 8.25L16.208 8.583C16.3746 8.597 16.5136 8.65266 16.625 8.75C16.7363 8.84733 16.8126 8.96533 16.854 9.104C16.896 9.24266 16.8996 9.38166 16.865 9.521C16.8296 9.65966 16.7496 9.78466 16.625 9.896L13.625 12.458L14.521 16.271C14.5623 16.4237 14.5553 16.573 14.5 16.719C14.4446 16.865 14.3613 16.9793 14.25 17.062C14.1386 17.146 14.0103 17.1947 13.865 17.208C13.719 17.222 13.5696 17.1873 13.417 17.104L9.99995 15.062Z",fill:"currentColor"})});v.displayName="StarFillIcon",y=S.StarFillIcon=v;var b,F={};Object.defineProperty(F,"__esModule",{value:!0});var C=e;const H=e=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:C.jsx("path",{d:"M9.99995 6.792V13.312L12.688 14.896L11.979 11.896L14.292 9.917L11.229 9.646L9.99995 6.792ZM9.99995 15.062L6.58295 17.104C6.43029 17.1873 6.28095 17.222 6.13495 17.208C5.98962 17.1947 5.86129 17.146 5.74995 17.062C5.63862 16.9793 5.55529 16.865 5.49995 16.719C5.44462 16.573 5.43762 16.4237 5.47895 16.271L6.37495 12.458L3.35395 9.896C3.22929 9.78466 3.15295 9.656 3.12495 9.51C3.09695 9.36466 3.10395 9.22233 3.14595 9.083C3.18729 8.94433 3.26362 8.83 3.37495 8.74C3.48629 8.64933 3.62529 8.597 3.79195 8.583L7.74995 8.229L9.31195 4.604C9.38195 4.45133 9.47929 4.33666 9.60395 4.26C9.72929 4.184 9.86129 4.146 9.99995 4.146C10.1386 4.146 10.2706 4.184 10.396 4.26C10.5206 4.33666 10.618 4.45133 10.688 4.604L12.25 8.25L16.208 8.583C16.3746 8.597 16.5136 8.65266 16.625 8.75C16.7363 8.84733 16.8126 8.96533 16.854 9.104C16.896 9.24266 16.8996 9.38166 16.865 9.521C16.8296 9.65966 16.7496 9.78466 16.625 9.896L13.625 12.458L14.521 16.271C14.5623 16.4237 14.5553 16.573 14.5 16.719C14.4446 16.865 14.3613 16.9793 14.25 17.062C14.1386 17.146 14.0103 17.1947 13.865 17.208C13.719 17.222 13.5696 17.1873 13.417 17.104L9.99995 15.062Z",fill:"currentColor"})});H.displayName="StarHalfIcon",b=F.StarHalfIcon=H;var B=Array.isArray,w="object"==typeof d&&d&&d.Object===Object&&d,D="object"==typeof self&&self&&self.Object===Object&&self,x=w||D||Function("return this")(),_=x.Symbol,L=_,z=Object.prototype,k=z.hasOwnProperty,N=z.toString,E=L?L.toStringTag:void 0;var j=function(e){var t=k.call(e,E),r=e[E];try{e[E]=void 0;var n=!0}catch(e){}var i=N.call(e);return n&&(t?e[E]=r:delete e[E]),i},W=Object.prototype.toString;var O=j,A=function(e){return W.call(e)},T=_?_.toStringTag:void 0;var P=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":T&&T in Object(e)?O(e):A(e)};var I=P,V=function(e){return null!=e&&"object"==typeof e};var R=function(e){return"symbol"==typeof e||V(e)&&"[object Symbol]"==I(e)},M=B,X=R,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G=/^\w*$/;var U=function(e,t){if(M(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!X(e))||(G.test(e)||!Z.test(e)||null!=t&&e in Object(t))};var Y=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},q=P,J=Y;var K,Q=function(e){if(!J(e))return!1;var t=q(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ee=x["__core-js_shared__"],te=(K=/[^.]+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"";var re=function(e){return!!te&&te in e},ne=Function.prototype.toString;var ie=Q,ae=re,oe=Y,le=function(e){if(null!=e){try{return ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ce=/^\[object .+?Constructor\]$/,de=Function.prototype,se=Object.prototype,he=de.toString,ge=se.hasOwnProperty,fe=RegExp("^"+he.call(ge).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ue=function(e){return!(!oe(e)||ae(e))&&(ie(e)?fe:ce).test(le(e))},pe=function(e,t){return null==e?void 0:e[t]};var me=function(e,t){var r=pe(e,t);return ue(r)?r:void 0},ye=me(Object,"create"),Se=ye;var $e=function(){this.__data__=Se?Se(null):{},this.size=0};var ve=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},be=ye,Fe=Object.prototype.hasOwnProperty;var Ce=function(e){var t=this.__data__;if(be){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Fe.call(t,e)?t[e]:void 0},He=ye,Be=Object.prototype.hasOwnProperty;var we=ye;var De=$e,xe=ve,_e=Ce,Le=function(e){var t=this.__data__;return He?void 0!==t[e]:Be.call(t,e)},ze=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=we&&void 0===t?"__lodash_hash_undefined__":t,this};function ke(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ke.prototype.clear=De,ke.prototype.delete=xe,ke.prototype.get=_e,ke.prototype.has=Le,ke.prototype.set=ze;var Ne=ke;var Ee=function(){this.__data__=[],this.size=0};var je=function(e,t){return e===t||e!=e&&t!=t};var We=function(e,t){for(var r=e.length;r--;)if(je(e[r][0],t))return r;return-1},Oe=We,Ae=Array.prototype.splice;var Te=We;var Pe=We;var Ie=We;var Ve=Ee,Re=function(e){var t=this.__data__,r=Oe(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ae.call(t,r,1),--this.size,!0)},Me=function(e){var t=this.__data__,r=Te(t,e);return r<0?void 0:t[r][1]},Xe=function(e){return Pe(this.__data__,e)>-1},Ze=function(e,t){var r=this.__data__,n=Ie(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Ge(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ge.prototype.clear=Ve,Ge.prototype.delete=Re,Ge.prototype.get=Me,Ge.prototype.has=Xe,Ge.prototype.set=Ze;var Ue=Ge,Ye=me(x,"Map"),qe=Ne,Je=Ue,Ke=Ye;var Qe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var et=function(e,t){var r=e.__data__;return Qe(t)?r["string"==typeof t?"string":"hash"]:r.map},tt=et;var rt=et;var nt=et;var it=et;var at=function(){this.size=0,this.__data__={hash:new qe,map:new(Ke||Je),string:new qe}},ot=function(e){var t=tt(this,e).delete(e);return this.size-=t?1:0,t},lt=function(e){return rt(this,e).get(e)},ct=function(e){return nt(this,e).has(e)},dt=function(e,t){var r=it(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function st(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}st.prototype.clear=at,st.prototype.delete=ot,st.prototype.get=lt,st.prototype.has=ct,st.prototype.set=dt;var ht=st;function gt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(gt.Cache||ht),r}gt.Cache=ht;var ft=gt;var ut=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pt=/\\(\\)?/g,mt=function(e){var t=ft(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ut,(function(e,r,n,i){t.push(n?i.replace(pt,"$1"):r||e)})),t}));var yt=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i},St=B,$t=R,vt=_?_.prototype:void 0,bt=vt?vt.toString:void 0;var Ft=function e(t){if("string"==typeof t)return t;if(St(t))return yt(t,e)+"";if($t(t))return bt?bt.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},Ct=Ft;var Ht=B,Bt=U,wt=mt,Dt=function(e){return null==e?"":Ct(e)};var xt=R;var _t=function(e,t){return Ht(e)?e:Bt(e,t)?[e]:wt(Dt(e))},Lt=function(e){if("string"==typeof e||xt(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var zt=function(e,t){for(var r=0,n=(t=_t(t,e)).length;null!=e&&r<n;)e=e[Lt(t[r++])];return r&&r==n?e:void 0};var kt=function(e,t,r){var n=null==e?void 0:zt(e,t);return void 0===n?r:n};const Nt=(e,t,r)=>t?kt(r,t)||kt(e,t):r||e,Et=(e,t)=>{const r=t||e.defaultValue;return kt(e.collections,r)};var jt;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme"}(jt||(jt={}));const Wt={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"},Ot=e=>t=>{const r=t.theme,n=Et(Wt,r[jt.colorScheme]);return r.options&&r.options.color?Nt(n,e,r.options.color):Nt(n,e)},At={Brand:{1:Ot("Brand.1"),2:Ot("Brand.2"),3:Ot("Brand.3"),4:Ot("Brand.4"),5:Ot("Brand.5"),6:Ot("Brand.6")},Primary:Ot("Primary"),PrimaryDark:Ot("PrimaryDark"),Secondary:Ot("Secondary"),Accent:{Light:{1:Ot("Accent.Light.1"),2:Ot("Accent.Light.2"),3:Ot("Accent.Light.3"),4:Ot("Accent.Light.4"),5:Ot("Accent.Light.5"),6:Ot("Accent.Light.6")},Dark:{1:Ot("Accent.Dark.1"),2:Ot("Accent.Dark.2"),3:Ot("Accent.Dark.3")}},Neutral:{1:Ot("Neutral.1"),2:Ot("Neutral.2"),3:Ot("Neutral.3"),4:Ot("Neutral.4"),5:Ot("Neutral.5"),6:Ot("Neutral.6"),7:Ot("Neutral.7"),8:Ot("Neutral.8")},Validation:{Green:{Text:Ot("Validation.Green.Text"),Icon:Ot("Validation.Green.Icon"),Border:Ot("Validation.Green.Border"),Background:Ot("Validation.Green.Background")},Orange:{Text:Ot("Validation.Orange.Text"),Icon:Ot("Validation.Orange.Icon"),Border:Ot("Validation.Orange.Border"),Background:Ot("Validation.Orange.Background"),Badge:Ot("Validation.Orange.Badge")},Red:{Text:Ot("Validation.Red.Text"),Icon:Ot("Validation.Red.Icon"),Border:Ot("Validation.Red.Border"),Background:Ot("Validation.Red.Background")}},Shadow:{Accent:Ot("Shadow.Accent"),Red:Ot("Shadow.Red")}},Tt={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},Pt=e=>Object.keys(Tt).reduce(((t,r)=>{const n=Tt[r];return t[r]=`@media screen and (${e}: ${n}px)`,t}),{}),It=Pt("max-width"),Vt=(Pt("min-width"),a.div`
|
|
2
|
+
display: inline-block;
|
|
3
|
+
position: relative;
|
|
4
|
+
width: ${e=>e.$size}px;
|
|
5
|
+
height: ${e=>e.$size}px;
|
|
6
|
+
`),Rt=o`
|
|
7
|
+
0% {
|
|
8
|
+
transform: rotate(0deg);
|
|
9
|
+
}
|
|
10
|
+
100% {
|
|
11
|
+
transform: rotate(360deg);
|
|
12
|
+
}
|
|
13
|
+
`,Mt=a.div`
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
display: block;
|
|
16
|
+
position: absolute;
|
|
17
|
+
width: ${e=>e.$size}px;
|
|
18
|
+
height: ${e=>e.$size}px;
|
|
19
|
+
margin: ${e=>e.$borderWidth}px;
|
|
20
|
+
border-width: ${e=>e.$borderWidth}px;
|
|
21
|
+
border-style: solid;
|
|
22
|
+
border-radius: 50%;
|
|
23
|
+
border-color: ${e=>e.$color||At.Neutral[8](e)}
|
|
24
|
+
transparent transparent transparent;
|
|
25
|
+
animation: ${Rt} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
26
|
+
`,Xt=a(Mt)`
|
|
27
|
+
animation-delay: -0.45s;
|
|
28
|
+
`,Zt=a(Mt)`
|
|
29
|
+
animation-delay: -0.3s;
|
|
30
|
+
`,Gt=a(Mt)`
|
|
31
|
+
animation-delay: -0.15s;
|
|
32
|
+
`,Ut={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Yt={collections:{base:{D1:{fontFamily:Ut.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Ut.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Ut.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Ut.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Ut.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Ut.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Ut.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Ut.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Ut.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Ut.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Ut.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Ut.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Ut.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Ut.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},qt=e=>t=>{const r=t.theme,n=Et(Yt,r[jt.textStyleScheme]);return r.options&&r.options.textStyle?Nt(n,e,r.options.textStyle):Nt(n,e)},Jt={D1:{fontFamily:qt("D1.fontFamily"),fontSize:qt("D1.fontSize"),fontWeight:qt("D1.fontWeight"),lineHeight:qt("D1.lineHeight"),letterSpacing:qt("D1.letterSpacing")},D2:{fontFamily:qt("D2.fontFamily"),fontSize:qt("D2.fontSize"),fontWeight:qt("D2.fontWeight"),lineHeight:qt("D2.lineHeight"),letterSpacing:qt("D2.letterSpacing")},D3:{fontFamily:qt("D3.fontFamily"),fontSize:qt("D3.fontSize"),fontWeight:qt("D3.fontWeight"),lineHeight:qt("D3.lineHeight"),letterSpacing:qt("D3.letterSpacing")},D4:{fontFamily:qt("D4.fontFamily"),fontSize:qt("D4.fontSize"),fontWeight:qt("D4.fontWeight"),lineHeight:qt("D4.lineHeight"),letterSpacing:qt("D4.letterSpacing")},DBody:{fontFamily:qt("DBody.fontFamily"),fontSize:qt("DBody.fontSize"),fontWeight:qt("DBody.fontWeight"),lineHeight:qt("DBody.lineHeight"),letterSpacing:qt("DBody.letterSpacing")},H1:{fontFamily:qt("H1.fontFamily"),fontSize:qt("H1.fontSize"),fontWeight:qt("H1.fontWeight"),lineHeight:qt("H1.lineHeight"),letterSpacing:qt("H1.letterSpacing")},H2:{fontFamily:qt("H2.fontFamily"),fontSize:qt("H2.fontSize"),fontWeight:qt("H2.fontWeight"),lineHeight:qt("H2.lineHeight"),letterSpacing:qt("H2.letterSpacing")},H3:{fontFamily:qt("H3.fontFamily"),fontSize:qt("H3.fontSize"),fontWeight:qt("H3.fontWeight"),lineHeight:qt("H3.lineHeight"),letterSpacing:qt("H3.letterSpacing")},H4:{fontFamily:qt("H4.fontFamily"),fontSize:qt("H4.fontSize"),fontWeight:qt("H4.fontWeight"),lineHeight:qt("H4.lineHeight"),letterSpacing:qt("H4.letterSpacing")},H5:{fontFamily:qt("H5.fontFamily"),fontSize:qt("H5.fontSize"),fontWeight:qt("H5.fontWeight"),lineHeight:qt("H5.lineHeight"),letterSpacing:qt("H5.letterSpacing")},H6:{fontFamily:qt("H6.fontFamily"),fontSize:qt("H6.fontSize"),fontWeight:qt("H6.fontWeight"),lineHeight:qt("H6.lineHeight"),letterSpacing:qt("H6.letterSpacing")},Body:{fontFamily:qt("Body.fontFamily"),fontSize:qt("Body.fontSize"),fontWeight:qt("Body.fontWeight"),lineHeight:qt("Body.lineHeight"),letterSpacing:qt("Body.letterSpacing")},BodySmall:{fontFamily:qt("BodySmall.fontFamily"),fontSize:qt("BodySmall.fontSize"),fontWeight:qt("BodySmall.fontWeight"),lineHeight:qt("BodySmall.lineHeight"),letterSpacing:qt("BodySmall.letterSpacing")},XSmall:{fontFamily:qt("XSmall.fontFamily"),fontSize:qt("XSmall.fontSize"),fontWeight:qt("XSmall.fontWeight"),lineHeight:qt("XSmall.lineHeight"),letterSpacing:qt("XSmall.letterSpacing")}},Kt=e=>{switch(e){case 700:case"bold":return Ut.Bold;case 600:case"semibold":return Ut.Semibold;case 300:case"light":return Ut.Light;case 400:case"regular":return Ut.Regular;default:return""}},Qt=(e,t)=>r=>{const n=Jt[e].fontFamily(r),i=Jt[e].fontWeight(r);return Object.values(Ut).includes(n)?l`
|
|
33
|
+
font-family: ${Kt(t)||Kt(i)||n};
|
|
34
|
+
font-weight: normal !important;
|
|
35
|
+
`:l`
|
|
36
|
+
font-family: ${n};
|
|
37
|
+
font-weight: ${(er(t)||i)??"normal"};
|
|
38
|
+
`},er=e=>{switch(e){case 300:case"light":return 300;case 400:case"regular":return 400;case 600:case"semibold":return 600;case 700:case"bold":return 700;case 900:case"black":return 900;default:return""}},tr=(e,t,r=!1)=>n=>{const i=Jt[e],a=i.fontSize(n);return l`
|
|
39
|
+
${Qt(e,t)}
|
|
40
|
+
font-size: ${a}rem !important;
|
|
41
|
+
line-height: ${i.lineHeight}rem !important;
|
|
42
|
+
letter-spacing: ${i.letterSpacing(n)||0}rem !important;
|
|
43
|
+
${l`
|
|
44
|
+
margin-bottom: ${a*(r?1.05:0)}rem;
|
|
45
|
+
`}
|
|
46
|
+
`},rr=(e=!1,t=!1)=>t?l`
|
|
47
|
+
display: block;
|
|
48
|
+
`:e?l`
|
|
49
|
+
display: inline;
|
|
50
|
+
`:l`
|
|
51
|
+
display: block;
|
|
52
|
+
`;var nr,ir={};Object.defineProperty(ir,"__esModule",{value:!0});var ar=e;const or=e=>ar.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:ar.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H9.208C9.444 2.5 9.649 2.58667 9.823 2.76C9.99633 2.934 10.083 3.139 10.083 3.375C10.083 3.611 9.99633 3.816 9.823 3.99C9.649 4.16333 9.444 4.25 9.208 4.25H4.25V15.75H15.75V10.792C15.75 10.556 15.8367 10.351 16.01 10.177C16.184 10.0037 16.389 9.917 16.625 9.917C16.861 9.917 17.066 10.0037 17.24 10.177C17.4133 10.351 17.5 10.556 17.5 10.792V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM7.5 12.5C7.33333 12.3333 7.25 12.1283 7.25 11.885C7.25 11.6423 7.33333 11.4377 7.5 11.271L14.521 4.25H12.708C12.472 4.25 12.2673 4.16333 12.094 3.99C11.92 3.816 11.833 3.611 11.833 3.375C11.833 3.139 11.92 2.934 12.094 2.76C12.2673 2.58667 12.472 2.5 12.708 2.5H16.625C16.861 2.5 17.066 2.58667 17.24 2.76C17.4133 2.934 17.5 3.139 17.5 3.375V7.292C17.5 7.528 17.4133 7.73267 17.24 7.906C17.066 8.08 16.861 8.167 16.625 8.167C16.389 8.167 16.184 8.08 16.01 7.906C15.8367 7.73267 15.75 7.528 15.75 7.292V5.479L8.708 12.521C8.54133 12.6877 8.34367 12.771 8.115 12.771C7.88567 12.771 7.68067 12.6807 7.5 12.5Z",fill:"currentColor"})});var lr;or.displayName="ExternalIcon",nr=ir.ExternalIcon=or,function(e){e.D1=a.h1`
|
|
53
|
+
${e=>l`
|
|
54
|
+
${tr("D1",e.weight,e.paragraph)}
|
|
55
|
+
color: ${At.Neutral[1]};
|
|
56
|
+
${rr(e.inline,e.paragraph)}
|
|
57
|
+
`}
|
|
58
|
+
`,e.D2=a.h1`
|
|
59
|
+
${e=>l`
|
|
60
|
+
${tr("D2",e.weight,e.paragraph)}
|
|
61
|
+
color: ${At.Neutral[1]};
|
|
62
|
+
${rr(e.inline,e.paragraph)}
|
|
63
|
+
`}
|
|
64
|
+
`,e.D3=a.h1`
|
|
65
|
+
${e=>l`
|
|
66
|
+
${tr("D3",e.weight,e.paragraph)}
|
|
67
|
+
color: ${At.Neutral[1]};
|
|
68
|
+
${rr(e.inline,e.paragraph)}
|
|
69
|
+
`}
|
|
70
|
+
`,e.D4=a.h1`
|
|
71
|
+
${e=>l`
|
|
72
|
+
${tr("D4",e.weight,e.paragraph)}
|
|
73
|
+
color: ${At.Neutral[1]};
|
|
74
|
+
${rr(e.inline,e.paragraph)}
|
|
75
|
+
`}
|
|
76
|
+
`,e.DBody=a.h1`
|
|
77
|
+
${e=>l`
|
|
78
|
+
${tr("DBody",e.weight,e.paragraph)}
|
|
79
|
+
color: ${At.Neutral[1]};
|
|
80
|
+
${rr(e.inline,e.paragraph)}
|
|
81
|
+
`}
|
|
82
|
+
`,e.H1=a.h1`
|
|
83
|
+
${e=>l`
|
|
84
|
+
${tr("H1",e.weight,e.paragraph)}
|
|
85
|
+
color: ${At.Neutral[1]};
|
|
86
|
+
${rr(e.inline,e.paragraph)}
|
|
87
|
+
`}
|
|
88
|
+
`,e.H2=a.h2`
|
|
89
|
+
${e=>l`
|
|
90
|
+
${tr("H2",e.weight,e.paragraph)}
|
|
91
|
+
color: ${At.Neutral[1]};
|
|
92
|
+
${rr(e.inline,e.paragraph)}
|
|
93
|
+
`}
|
|
94
|
+
`,e.H3=a.h3`
|
|
95
|
+
${e=>l`
|
|
96
|
+
${tr("H3",e.weight,e.paragraph)}
|
|
97
|
+
color: ${At.Neutral[1]};
|
|
98
|
+
${rr(e.inline,e.paragraph)}
|
|
99
|
+
`}
|
|
100
|
+
`,e.H4=a.h4`
|
|
101
|
+
${e=>l`
|
|
102
|
+
${tr("H4",e.weight,e.paragraph)}
|
|
103
|
+
color: ${At.Neutral[1]};
|
|
104
|
+
${rr(e.inline,e.paragraph)}
|
|
105
|
+
`}
|
|
106
|
+
`,e.H5=a.h5`
|
|
107
|
+
${e=>l`
|
|
108
|
+
${tr("H5",e.weight,e.paragraph)}
|
|
109
|
+
color: ${At.Neutral[1]};
|
|
110
|
+
${rr(e.inline,e.paragraph)}
|
|
111
|
+
`}
|
|
112
|
+
`,e.H6=a.h6`
|
|
113
|
+
${e=>l`
|
|
114
|
+
${tr("H6",e.weight,e.paragraph)}
|
|
115
|
+
color: ${At.Neutral[1]};
|
|
116
|
+
${rr(e.inline,e.paragraph)}
|
|
117
|
+
`}
|
|
118
|
+
`,e.Body=a.p`
|
|
119
|
+
${e=>l`
|
|
120
|
+
${tr("Body",e.weight,e.paragraph)}
|
|
121
|
+
color: ${At.Neutral[1]};
|
|
122
|
+
${rr(e.inline,e.paragraph)}
|
|
123
|
+
`}
|
|
124
|
+
`,e.BodySmall=a.p`
|
|
125
|
+
${e=>l`
|
|
126
|
+
${tr("BodySmall",e.weight,e.paragraph)}
|
|
127
|
+
color: ${At.Neutral[1]};
|
|
128
|
+
${rr(e.inline,e.paragraph)}
|
|
129
|
+
`}
|
|
130
|
+
`,e.XSmall=a.span`
|
|
131
|
+
${e=>l`
|
|
132
|
+
${tr("XSmall",e.weight,e.paragraph)}
|
|
133
|
+
color: ${At.Neutral[1]};
|
|
134
|
+
${rr(e.inline,e.paragraph)}
|
|
135
|
+
`}
|
|
136
|
+
`,e.Hyperlink={Default:e=>sr({...e,textStyle:"Body"}),Small:e=>sr({...e,textStyle:"BodySmall"})}}(lr||(lr={}));const cr=a.a`
|
|
137
|
+
${e=>l`
|
|
138
|
+
${tr(e.textStyle,e.weight)}
|
|
139
|
+
color: ${At.Primary};
|
|
140
|
+
text-decoration: none;
|
|
141
|
+
|
|
142
|
+
:hover,
|
|
143
|
+
:active,
|
|
144
|
+
:focus {
|
|
145
|
+
color: ${At.Secondary};
|
|
146
|
+
|
|
147
|
+
svg {
|
|
148
|
+
color: ${At.Secondary};
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
`}
|
|
152
|
+
`,dr=a(nr)`
|
|
153
|
+
height: 1rem;
|
|
154
|
+
width: 1rem;
|
|
155
|
+
margin-left: 0.4rem;
|
|
156
|
+
vertical-align: middle;
|
|
157
|
+
`,sr=({external:e=!1,children:n,...i})=>t(cr,{...i,children:[n,e&&r(dr,{})]});var hr;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(hr||(hr={}));const gr=a.button`
|
|
158
|
+
padding: 0.5rem 1rem;
|
|
159
|
+
min-width: 4rem;
|
|
160
|
+
border-radius: 4px;
|
|
161
|
+
transition: all 200ms ease;
|
|
162
|
+
cursor: pointer;
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
justify-content: center;
|
|
166
|
+
|
|
167
|
+
@media (hover: hover) {
|
|
168
|
+
&:hover {
|
|
169
|
+
box-shadow: 1px 1px 4px 2px rgba(0, 0, 0, 0.2);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// -----------------------------------------------------------------------------
|
|
174
|
+
// BUTTON STYLE + TEXT COLOR
|
|
175
|
+
// -----------------------------------------------------------------------------
|
|
176
|
+
${e=>{switch(e.$buttonStyle){case"secondary":return l`
|
|
177
|
+
background-color: ${At.Neutral[8](e)};
|
|
178
|
+
border: 1px solid ${At.Primary(e)};
|
|
179
|
+
|
|
180
|
+
span {
|
|
181
|
+
color: ${At.Primary(e)};
|
|
182
|
+
}
|
|
183
|
+
`;case"light":return l`
|
|
184
|
+
background-color: ${At.Neutral[8](e)};
|
|
185
|
+
border: 1px solid ${At.Neutral[5](e)};
|
|
186
|
+
|
|
187
|
+
span {
|
|
188
|
+
color: ${At.Primary(e)};
|
|
189
|
+
}
|
|
190
|
+
`;case"disabled":return l`
|
|
191
|
+
background-color: ${At.Neutral[6](e)};
|
|
192
|
+
border: 1px solid transparent;
|
|
193
|
+
cursor: not-allowed;
|
|
194
|
+
|
|
195
|
+
&:hover {
|
|
196
|
+
box-shadow: none;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
span {
|
|
200
|
+
color: ${At.Neutral[3](e)};
|
|
201
|
+
}
|
|
202
|
+
`;case"link":return l`
|
|
203
|
+
background-color: transparent;
|
|
204
|
+
border: none;
|
|
205
|
+
border-radius: unset;
|
|
206
|
+
|
|
207
|
+
&:hover {
|
|
208
|
+
box-shadow: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
color: ${At.Primary};
|
|
212
|
+
:hover,
|
|
213
|
+
:active,
|
|
214
|
+
:focus {
|
|
215
|
+
span {
|
|
216
|
+
color: ${At.Secondary};
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
`;default:return l`
|
|
220
|
+
background-color: ${At.Primary(e)};
|
|
221
|
+
border: 1px solid transparent;
|
|
222
|
+
|
|
223
|
+
${It.mobileL} {
|
|
224
|
+
width: 100%;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
span {
|
|
228
|
+
color: ${At.Neutral[8](e)};
|
|
229
|
+
}
|
|
230
|
+
`}}}
|
|
231
|
+
|
|
232
|
+
// -----------------------------------------------------------------------------
|
|
233
|
+
// BUTTON SIZE + TEXT SIZE
|
|
234
|
+
// -----------------------------------------------------------------------------
|
|
235
|
+
${e=>"small"===e.$buttonSizeStyle?l`
|
|
236
|
+
height: 2.5rem;
|
|
237
|
+
span {
|
|
238
|
+
${tr("H5","semibold")}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
${It.mobileS} {
|
|
242
|
+
height: auto;
|
|
243
|
+
}
|
|
244
|
+
`:l`
|
|
245
|
+
height: 3rem;
|
|
246
|
+
span {
|
|
247
|
+
${tr("H4","semibold")}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
${It.mobileS} {
|
|
251
|
+
height: auto;
|
|
252
|
+
}
|
|
253
|
+
`}
|
|
254
|
+
`,fr=a((({color:e,className:n,size:i=18})=>t(Vt,{className:n,$size:i,$color:e,children:[r(Mt,{id:"inner1",$size:i-2,$borderWidth:2}),r(Xt,{id:"inner2",$size:i-2,$borderWidth:2}),r(Zt,{id:"inner3",$size:i-2,$borderWidth:2}),r(Gt,{id:"inner4",$size:i-2,$borderWidth:2})]})))`
|
|
255
|
+
margin-right: 0.5rem;
|
|
256
|
+
${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=At.Primary(e);break;case"disabled":t=At.Neutral[3](e);break;default:t=At.Neutral[8](e)}return l`
|
|
257
|
+
#inner1,
|
|
258
|
+
#inner2,
|
|
259
|
+
#inner3,
|
|
260
|
+
#inner4 {
|
|
261
|
+
border-color: ${t} transparent transparent transparent;
|
|
262
|
+
}
|
|
263
|
+
`}}
|
|
264
|
+
`,ur={Default:i.forwardRef(((e,n)=>{const{children:i,disabled:a=!1,loading:o=!1,styleType:l="default",...c}=e,d={$buttonStyle:a?"disabled":l,$buttonSizeStyle:"default"};return t(gr,{ref:n,"data-testid":c["data-testid"]||"button",disabled:a,...d,...c,children:[o&&r(fr,{...d}),r("span",{children:i})]})})),Small:i.forwardRef(((e,n)=>{const{children:i,disabled:a=!1,loading:o=!1,styleType:l="default",...c}=e,d={$buttonStyle:a?"disabled":l,$buttonSizeStyle:"small"};return t(gr,{ref:n,"data-testid":c["data-testid"]||"button",disabled:a,...d,...c,children:[o&&r(fr,{...d,size:16}),r("span",{children:i})]})}))},pr=a.button`
|
|
265
|
+
display: flex;
|
|
266
|
+
justify-content: center;
|
|
267
|
+
align-items: center;
|
|
268
|
+
padding: 1.5rem;
|
|
269
|
+
background-color: transparent;
|
|
270
|
+
border: none;
|
|
271
|
+
cursor: pointer;
|
|
272
|
+
|
|
273
|
+
img {
|
|
274
|
+
height: 1rem;
|
|
275
|
+
width: 1rem;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
&:active,
|
|
279
|
+
&:focus {
|
|
280
|
+
${({$outline:e})=>"none"===e&&"outline: none;"}
|
|
281
|
+
|
|
282
|
+
${({$highlight:e})=>e&&l`
|
|
283
|
+
background-color: ${At.Neutral[7]};
|
|
284
|
+
`}
|
|
285
|
+
}
|
|
286
|
+
`,mr=i.forwardRef((({children:e,focusHighlight:t=!0,focusOutline:n="none",...i},a)=>r(pr,{ref:a,$outline:n,$highlight:t,...i,children:e}))),yr=o`
|
|
287
|
+
from {
|
|
288
|
+
opacity: 0;
|
|
289
|
+
transform: translateY(-20%);
|
|
290
|
+
}
|
|
291
|
+
to {
|
|
292
|
+
opacity: 1;
|
|
293
|
+
transform: translateY(0);
|
|
294
|
+
}
|
|
295
|
+
`,Sr=a.div`
|
|
296
|
+
display: flex;
|
|
297
|
+
flex-direction: row;
|
|
298
|
+
align-items: stretch;
|
|
299
|
+
position: fixed;
|
|
300
|
+
margin: 0.5rem 1.25rem;
|
|
301
|
+
${e=>`top: ${e.$offset}px;`}
|
|
302
|
+
left: 0;
|
|
303
|
+
width: calc(100% - 2.5rem);
|
|
304
|
+
min-height: 5.5rem;
|
|
305
|
+
z-index: 9001;
|
|
306
|
+
background: ${At.Neutral[8]};
|
|
307
|
+
box-shadow: 0 0.125rem 0.5rem rgba(104, 104, 104, 0.25);
|
|
308
|
+
border-radius: 0.5rem;
|
|
309
|
+
${e=>{if(e.$isAnimated)return l`
|
|
310
|
+
animation: ${yr} 0.3s;
|
|
311
|
+
`}}
|
|
312
|
+
`,$r=a.div`
|
|
313
|
+
display: flex;
|
|
314
|
+
align-items: center;
|
|
315
|
+
padding: 0.5rem 0.25rem 0.5rem 1rem;
|
|
316
|
+
`,vr=a(mr)`
|
|
317
|
+
padding: 0;
|
|
318
|
+
`,br=a(c)`
|
|
319
|
+
color: ${At.Neutral[1]};
|
|
320
|
+
height: 1.25rem;
|
|
321
|
+
width: 1.25rem;
|
|
322
|
+
`,Fr=a.div`
|
|
323
|
+
flex: 1;
|
|
324
|
+
display: flex;
|
|
325
|
+
align-items: center;
|
|
326
|
+
padding: 0.5rem 1rem 0.5rem 0.25rem;
|
|
327
|
+
cursor: pointer;
|
|
328
|
+
`,Cr=a.div`
|
|
329
|
+
flex: 1;
|
|
330
|
+
display: flex;
|
|
331
|
+
flex-direction: column;
|
|
332
|
+
align-items: left;
|
|
333
|
+
margin: 0.5rem;
|
|
334
|
+
${It.mobileM} {
|
|
335
|
+
margin: 0 0.5rem;
|
|
336
|
+
}
|
|
337
|
+
`,Hr=a.img`
|
|
338
|
+
width: 2.65rem;
|
|
339
|
+
height: auto;
|
|
340
|
+
align-self: center;
|
|
341
|
+
`,Br=a.div`
|
|
342
|
+
max-width: 30%;
|
|
343
|
+
`,wr=a(ur.Small)`
|
|
344
|
+
padding: 0.5rem;
|
|
345
|
+
height: auto;
|
|
346
|
+
& > span {
|
|
347
|
+
overflow-wrap: anywhere;
|
|
348
|
+
${tr("XSmall","semibold")};
|
|
349
|
+
}
|
|
350
|
+
`,Dr=a(lr.H6)`
|
|
351
|
+
overflow-wrap: anywhere;
|
|
352
|
+
${It.mobileM} {
|
|
353
|
+
${tr("XSmall","semibold")}
|
|
354
|
+
}
|
|
355
|
+
`,xr=a(lr.XSmall)`
|
|
356
|
+
overflow-wrap: anywhere;
|
|
357
|
+
`,_r=a.div`
|
|
358
|
+
margin-top: 0.25rem;
|
|
359
|
+
display: flex;
|
|
360
|
+
align-items: center;
|
|
361
|
+
`,Lr=l`
|
|
362
|
+
height: 2rem;
|
|
363
|
+
width: 2rem;
|
|
364
|
+
padding-right: 0.25rem;
|
|
365
|
+
color: #ffc107;
|
|
366
|
+
`,zr=a(y)`
|
|
367
|
+
${Lr}
|
|
368
|
+
`,kr=a(b)`
|
|
369
|
+
${Lr}
|
|
370
|
+
`,Nr=a(f)`
|
|
371
|
+
${Lr}
|
|
372
|
+
`,Er="https://assets.life.gov.sg/react-design-system/img/app-icon/app-icon.png",jr="smart-app-banner";const Wr=i.forwardRef((function(e,i){const{className:a,show:o,href:l,content:c,offset:d=0,icon:s=Er,animated:h=!1,onDismiss:g,onClick:f}=e,{title:u,message:p,buttonLabel:m,buttonAriaLabel:y,numberOfStars:S}=c,$=e=>{e.stopPropagation(),window.open(l,"_blank","noreferrer"),f?.()};return r(n,{children:o&&t(Sr,{ref:i,$isAnimated:h,$offset:d,className:a,children:[r($r,{onClick:g,id:`${jr}-dismiss`,"data-testid":`${jr}-dismiss-container`,children:r(vr,{"aria-label":"Dismiss",children:r(br,{})})}),t(Fr,{onClick:$,id:`${jr}-proceed`,"data-testid":`${jr}-proceed-container`,children:[r(Hr,{src:s,alt:"lifesg-app-icon"}),t(Cr,{children:[r(Dr,{children:u}),r(xr,{children:p}),(()=>{if(isNaN(S)||S<0)return;const e=[],t=S-Math.floor(S)>=.4;for(let t=0;t<Math.floor(S);t++)e.push(r(zr,{},`star${t}`));if(t&&e.push(r(kr,{},"halfstar")),e.length<5){const t=5-e.length;for(let n=0;n<t;n++)e.push(r(Nr,{},`emptystar${n}`))}return r(_r,{children:e.slice(0,5)})})()]}),r(Br,{children:r(wr,{onClick:$,"aria-label":y,children:m})})]})]})})}));export{Wr as SmartAppBanner};
|
|
373
|
+
//# sourceMappingURL=index.js.map
|