@coras-io/embed 0.1.0
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/CHANGELOG.md +20 -0
- package/LICENSE +201 -0
- package/NOTICE +8 -0
- package/README.md +51 -0
- package/dist/components/accordion/accordion-item/accordion-item.component.d.ts +9 -0
- package/dist/components/accordion/accordion-item/accordion-item.component.js +44 -0
- package/dist/components/accordion/accordion-item/accordion-item.d.ts +8 -0
- package/dist/components/accordion/accordion-item/accordion-item.js +6 -0
- package/dist/components/accordion/accordion-item/accordion-item.styles.d.ts +2 -0
- package/dist/components/accordion/accordion-item/accordion-item.styles.js +62 -0
- package/dist/components/accordion/accordion.component.d.ts +8 -0
- package/dist/components/accordion/accordion.component.js +31 -0
- package/dist/components/accordion/accordion.d.ts +8 -0
- package/dist/components/accordion/accordion.js +6 -0
- package/dist/components/accordion/accordion.styles.d.ts +2 -0
- package/dist/components/accordion/accordion.styles.js +13 -0
- package/dist/components/alert/alert.component.d.ts +11 -0
- package/dist/components/alert/alert.component.js +59 -0
- package/dist/components/alert/alert.d.ts +8 -0
- package/dist/components/alert/alert.js +6 -0
- package/dist/components/alert/alert.styles.d.ts +2 -0
- package/dist/components/alert/alert.styles.js +158 -0
- package/dist/components/alert/alert.types.d.ts +1 -0
- package/dist/components/alert/alert.types.js +1 -0
- package/dist/components/attraction-card/base/attraction-card.mixin.d.ts +8 -0
- package/dist/components/attraction-card/base/attraction-card.mixin.js +109 -0
- package/dist/components/attraction-card/base/attraction-card.styles.d.ts +2 -0
- package/dist/components/attraction-card/base/attraction-card.styles.js +94 -0
- package/dist/components/attraction-card/base/attraction-card.types.d.ts +24 -0
- package/dist/components/attraction-card/base/attraction-card.types.js +1 -0
- package/dist/components/attraction-card/long/attraction-long-card.component.d.ts +10 -0
- package/dist/components/attraction-card/long/attraction-long-card.component.js +78 -0
- package/dist/components/attraction-card/long/attraction-long-card.d.ts +8 -0
- package/dist/components/attraction-card/long/attraction-long-card.js +6 -0
- package/dist/components/attraction-card/long/attraction-long-card.styles.d.ts +2 -0
- package/dist/components/attraction-card/long/attraction-long-card.styles.js +127 -0
- package/dist/components/attraction-card/short/attraction-short-card.component.d.ts +10 -0
- package/dist/components/attraction-card/short/attraction-short-card.component.js +75 -0
- package/dist/components/attraction-card/short/attraction-short-card.d.ts +8 -0
- package/dist/components/attraction-card/short/attraction-short-card.js +6 -0
- package/dist/components/attraction-card/short/attraction-short-card.styles.d.ts +2 -0
- package/dist/components/attraction-card/short/attraction-short-card.styles.js +66 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.component.d.ts +10 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.component.js +43 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.d.ts +8 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.js +6 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.styles.d.ts +2 -0
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.styles.js +23 -0
- package/dist/components/attraction-discovery/attraction-discovery.component.d.ts +10 -0
- package/dist/components/attraction-discovery/attraction-discovery.component.js +52 -0
- package/dist/components/attraction-discovery/attraction-discovery.constants.d.ts +4 -0
- package/dist/components/attraction-discovery/attraction-discovery.constants.js +5 -0
- package/dist/components/attraction-discovery/attraction-discovery.d.ts +8 -0
- package/dist/components/attraction-discovery/attraction-discovery.js +6 -0
- package/dist/components/attraction-discovery/attraction-discovery.styles.d.ts +2 -0
- package/dist/components/attraction-discovery/attraction-discovery.styles.js +193 -0
- package/dist/components/attraction-header/attraction-header.component.d.ts +31 -0
- package/dist/components/attraction-header/attraction-header.component.js +69 -0
- package/dist/components/attraction-header/attraction-header.d.ts +8 -0
- package/dist/components/attraction-header/attraction-header.js +6 -0
- package/dist/components/attraction-header/attraction-header.styles.d.ts +2 -0
- package/dist/components/attraction-header/attraction-header.styles.js +41 -0
- package/dist/components/attraction-header/attraction-header.utils.d.ts +20 -0
- package/dist/components/attraction-header/attraction-header.utils.js +37 -0
- package/dist/components/attraction-option/attraction-option.component.d.ts +11 -0
- package/dist/components/attraction-option/attraction-option.component.js +82 -0
- package/dist/components/attraction-option/attraction-option.d.ts +8 -0
- package/dist/components/attraction-option/attraction-option.js +6 -0
- package/dist/components/attraction-option/attraction-option.styles.d.ts +2 -0
- package/dist/components/attraction-option/attraction-option.styles.js +132 -0
- package/dist/components/basket/basket.component.d.ts +28 -0
- package/dist/components/basket/basket.component.js +162 -0
- package/dist/components/basket/basket.d.ts +8 -0
- package/dist/components/basket/basket.js +6 -0
- package/dist/components/basket/basket.styles.d.ts +2 -0
- package/dist/components/basket/basket.styles.js +196 -0
- package/dist/components/basket-empty/basket-empty.component.d.ts +5 -0
- package/dist/components/basket-empty/basket-empty.component.js +24 -0
- package/dist/components/basket-empty/basket-empty.d.ts +8 -0
- package/dist/components/basket-empty/basket-empty.js +6 -0
- package/dist/components/basket-empty/basket-empty.styles.d.ts +2 -0
- package/dist/components/basket-empty/basket-empty.styles.js +39 -0
- package/dist/components/basket-item/basket-item.component.d.ts +27 -0
- package/dist/components/basket-item/basket-item.component.js +153 -0
- package/dist/components/basket-item/basket-item.d.ts +8 -0
- package/dist/components/basket-item/basket-item.js +6 -0
- package/dist/components/basket-item/basket-item.styles.d.ts +2 -0
- package/dist/components/basket-item/basket-item.styles.js +178 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.component.d.ts +9 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.component.js +57 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.d.ts +8 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.js +6 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.styles.d.ts +2 -0
- package/dist/components/basket-item-ticket/basket-item-ticket.styles.js +59 -0
- package/dist/components/basket-mobile/basket-mobile.component.d.ts +10 -0
- package/dist/components/basket-mobile/basket-mobile.component.js +59 -0
- package/dist/components/basket-mobile/basket-mobile.d.ts +8 -0
- package/dist/components/basket-mobile/basket-mobile.js +6 -0
- package/dist/components/basket-mobile/basket-mobile.styles.d.ts +2 -0
- package/dist/components/basket-mobile/basket-mobile.styles.js +71 -0
- package/dist/components/basket-rewards/basket-rewards.component.d.ts +10 -0
- package/dist/components/basket-rewards/basket-rewards.component.js +52 -0
- package/dist/components/basket-rewards/basket-rewards.d.ts +8 -0
- package/dist/components/basket-rewards/basket-rewards.js +6 -0
- package/dist/components/basket-rewards/basket-rewards.styles.d.ts +2 -0
- package/dist/components/basket-rewards/basket-rewards.styles.js +18 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.component.d.ts +10 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.component.js +17 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.d.ts +8 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.js +6 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.styles.d.ts +2 -0
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.styles.js +16 -0
- package/dist/components/better-carousel/better-carousel.component.d.ts +94 -0
- package/dist/components/better-carousel/better-carousel.component.js +335 -0
- package/dist/components/better-carousel/better-carousel.d.ts +8 -0
- package/dist/components/better-carousel/better-carousel.js +6 -0
- package/dist/components/better-carousel/better-carousel.styles.d.ts +2 -0
- package/dist/components/better-carousel/better-carousel.styles.js +159 -0
- package/dist/components/bottom-drawer/bottom-drawer.component.d.ts +27 -0
- package/dist/components/bottom-drawer/bottom-drawer.component.js +210 -0
- package/dist/components/bottom-drawer/bottom-drawer.d.ts +8 -0
- package/dist/components/bottom-drawer/bottom-drawer.js +6 -0
- package/dist/components/bottom-drawer/bottom-drawer.styles.d.ts +2 -0
- package/dist/components/bottom-drawer/bottom-drawer.styles.js +88 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +6 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.component.js +35 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.d.ts +8 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.js +6 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.styles.d.ts +2 -0
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.styles.js +48 -0
- package/dist/components/breadcrumbs/breadcrumbs.component.d.ts +6 -0
- package/dist/components/breadcrumbs/breadcrumbs.component.js +28 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +8 -0
- package/dist/components/breadcrumbs/breadcrumbs.js +6 -0
- package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts +2 -0
- package/dist/components/breadcrumbs/breadcrumbs.styles.js +14 -0
- package/dist/components/button/button.component.d.ts +29 -0
- package/dist/components/button/button.component.js +156 -0
- package/dist/components/button/button.constants.d.ts +5 -0
- package/dist/components/button/button.constants.js +11 -0
- package/dist/components/button/button.d.ts +8 -0
- package/dist/components/button/button.js +6 -0
- package/dist/components/button/button.styles.d.ts +2 -0
- package/dist/components/button/button.styles.js +356 -0
- package/dist/components/calendar/base/calendar.mixin.d.ts +3 -0
- package/dist/components/calendar/base/calendar.mixin.js +231 -0
- package/dist/components/calendar/base/calendar.styles.d.ts +2 -0
- package/dist/components/calendar/base/calendar.styles.js +122 -0
- package/dist/components/calendar/base/calendar.types.d.ts +21 -0
- package/dist/components/calendar/base/calendar.types.js +1 -0
- package/dist/components/calendar/dual/dual.component.d.ts +11 -0
- package/dist/components/calendar/dual/dual.component.js +93 -0
- package/dist/components/calendar/dual/dual.d.ts +8 -0
- package/dist/components/calendar/dual/dual.js +6 -0
- package/dist/components/calendar/dual/dual.styles.d.ts +2 -0
- package/dist/components/calendar/dual/dual.styles.js +13 -0
- package/dist/components/calendar/month/month.component.d.ts +14 -0
- package/dist/components/calendar/month/month.component.js +83 -0
- package/dist/components/calendar/month/month.d.ts +8 -0
- package/dist/components/calendar/month/month.js +6 -0
- package/dist/components/calendar/month/month.styles.d.ts +2 -0
- package/dist/components/calendar/month/month.styles.js +5 -0
- package/dist/components/calendar/multi/multi.component.d.ts +9 -0
- package/dist/components/calendar/multi/multi.component.js +59 -0
- package/dist/components/calendar/multi/multi.d.ts +8 -0
- package/dist/components/calendar/multi/multi.js +6 -0
- package/dist/components/calendar/multi/multi.styles.d.ts +2 -0
- package/dist/components/calendar/multi/multi.styles.js +23 -0
- package/dist/components/carousel/carousel-item/carousel-item.component.d.ts +18 -0
- package/dist/components/carousel/carousel-item/carousel-item.component.js +84 -0
- package/dist/components/carousel/carousel-item/carousel-item.constants.d.ts +4 -0
- package/dist/components/carousel/carousel-item/carousel-item.constants.js +5 -0
- package/dist/components/carousel/carousel-item/carousel-item.d.ts +8 -0
- package/dist/components/carousel/carousel-item/carousel-item.js +6 -0
- package/dist/components/carousel/carousel-item/carousel-item.styles.d.ts +2 -0
- package/dist/components/carousel/carousel-item/carousel-item.styles.js +86 -0
- package/dist/components/carousel/carousel.component.d.ts +24 -0
- package/dist/components/carousel/carousel.component.js +132 -0
- package/dist/components/carousel/carousel.d.ts +8 -0
- package/dist/components/carousel/carousel.js +6 -0
- package/dist/components/carousel/carousel.styles.d.ts +2 -0
- package/dist/components/carousel/carousel.styles.js +72 -0
- package/dist/components/categories-tree/categories-tree.component.d.ts +15 -0
- package/dist/components/categories-tree/categories-tree.component.js +202 -0
- package/dist/components/categories-tree/categories-tree.d.ts +8 -0
- package/dist/components/categories-tree/categories-tree.js +6 -0
- package/dist/components/categories-tree/categories-tree.styles.d.ts +2 -0
- package/dist/components/categories-tree/categories-tree.styles.js +14 -0
- package/dist/components/category-tag/category-tag.component.d.ts +12 -0
- package/dist/components/category-tag/category-tag.component.js +78 -0
- package/dist/components/category-tag/category-tag.d.ts +8 -0
- package/dist/components/category-tag/category-tag.js +6 -0
- package/dist/components/category-tag/category-tag.styles.d.ts +2 -0
- package/dist/components/category-tag/category-tag.styles.js +99 -0
- package/dist/components/category-tag/category-tag.types.d.ts +8 -0
- package/dist/components/category-tag/category-tag.types.js +1 -0
- package/dist/components/checkbox/checkbox.component.d.ts +13 -0
- package/dist/components/checkbox/checkbox.component.js +68 -0
- package/dist/components/checkbox/checkbox.constants.d.ts +5 -0
- package/dist/components/checkbox/checkbox.constants.js +6 -0
- package/dist/components/checkbox/checkbox.d.ts +8 -0
- package/dist/components/checkbox/checkbox.js +6 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +2 -0
- package/dist/components/checkbox/checkbox.styles.js +129 -0
- package/dist/components/checkbox-group/checkbox-group.component.d.ts +6 -0
- package/dist/components/checkbox-group/checkbox-group.component.js +14 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +8 -0
- package/dist/components/checkbox-group/checkbox-group.js +6 -0
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts +2 -0
- package/dist/components/checkbox-group/checkbox-group.styles.js +40 -0
- package/dist/components/checkbox-group/checkbox-group.types.d.ts +12 -0
- package/dist/components/checkbox-group/checkbox-group.types.js +1 -0
- package/dist/components/chip/chip.component.d.ts +11 -0
- package/dist/components/chip/chip.component.js +53 -0
- package/dist/components/chip/chip.constants.d.ts +1 -0
- package/dist/components/chip/chip.constants.js +1 -0
- package/dist/components/chip/chip.d.ts +8 -0
- package/dist/components/chip/chip.js +6 -0
- package/dist/components/chip/chip.styles.d.ts +2 -0
- package/dist/components/chip/chip.styles.js +103 -0
- package/dist/components/collect-fida/collect-fida.component.d.ts +11 -0
- package/dist/components/collect-fida/collect-fida.component.js +75 -0
- package/dist/components/collect-fida/collect-fida.d.ts +8 -0
- package/dist/components/collect-fida/collect-fida.js +6 -0
- package/dist/components/collect-fida/collect-fida.styles.d.ts +2 -0
- package/dist/components/collect-fida/collect-fida.styles.js +95 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.component.d.ts +162 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.component.js +570 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.d.ts +8 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.js +6 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.styles.d.ts +2 -0
- package/dist/components/crypto-auth-modal/crypto-auth-modal.styles.js +141 -0
- package/dist/components/currencies-list/currencies-list.component.d.ts +15 -0
- package/dist/components/currencies-list/currencies-list.component.js +50 -0
- package/dist/components/currencies-list/currencies-list.d.ts +8 -0
- package/dist/components/currencies-list/currencies-list.js +6 -0
- package/dist/components/currencies-list/currencies-list.styles.d.ts +2 -0
- package/dist/components/currencies-list/currencies-list.styles.js +5 -0
- package/dist/components/dialog/dialog.component.d.ts +69 -0
- package/dist/components/dialog/dialog.component.js +373 -0
- package/dist/components/dialog/dialog.d.ts +8 -0
- package/dist/components/dialog/dialog.js +6 -0
- package/dist/components/dialog/dialog.styles.d.ts +2 -0
- package/dist/components/dialog/dialog.styles.js +264 -0
- package/dist/components/drawer/drawer.component.d.ts +12 -0
- package/dist/components/drawer/drawer.component.js +89 -0
- package/dist/components/drawer/drawer.d.ts +8 -0
- package/dist/components/drawer/drawer.js +6 -0
- package/dist/components/drawer/drawer.styles.d.ts +2 -0
- package/dist/components/drawer/drawer.styles.js +129 -0
- package/dist/components/dropdown/dropdown.component.d.ts +25 -0
- package/dist/components/dropdown/dropdown.component.js +204 -0
- package/dist/components/dropdown/dropdown.d.ts +8 -0
- package/dist/components/dropdown/dropdown.js +6 -0
- package/dist/components/dropdown/dropdown.styles.d.ts +2 -0
- package/dist/components/dropdown/dropdown.styles.js +60 -0
- package/dist/components/expiration-timer/expiration-timer.component.d.ts +12 -0
- package/dist/components/expiration-timer/expiration-timer.component.js +52 -0
- package/dist/components/expiration-timer/expiration-timer.d.ts +8 -0
- package/dist/components/expiration-timer/expiration-timer.js +6 -0
- package/dist/components/expiration-timer/expiration-timer.styles.d.ts +2 -0
- package/dist/components/expiration-timer/expiration-timer.styles.js +37 -0
- package/dist/components/explore-card/explore-card.component.d.ts +11 -0
- package/dist/components/explore-card/explore-card.component.js +48 -0
- package/dist/components/explore-card/explore-card.constants.d.ts +4 -0
- package/dist/components/explore-card/explore-card.constants.js +5 -0
- package/dist/components/explore-card/explore-card.d.ts +8 -0
- package/dist/components/explore-card/explore-card.js +6 -0
- package/dist/components/explore-card/explore-card.styles.d.ts +2 -0
- package/dist/components/explore-card/explore-card.styles.js +71 -0
- package/dist/components/filter-chip/filter-chip.component.d.ts +12 -0
- package/dist/components/filter-chip/filter-chip.component.js +68 -0
- package/dist/components/filter-chip/filter-chip.constants.d.ts +2 -0
- package/dist/components/filter-chip/filter-chip.constants.js +2 -0
- package/dist/components/filter-chip/filter-chip.d.ts +8 -0
- package/dist/components/filter-chip/filter-chip.js +6 -0
- package/dist/components/filter-chip/filter-chip.styles.d.ts +2 -0
- package/dist/components/filter-chip/filter-chip.styles.js +160 -0
- package/dist/components/filters-drawer/filters-drawer.component.d.ts +9 -0
- package/dist/components/filters-drawer/filters-drawer.component.js +55 -0
- package/dist/components/filters-drawer/filters-drawer.d.ts +8 -0
- package/dist/components/filters-drawer/filters-drawer.js +6 -0
- package/dist/components/filters-drawer/filters-drawer.styles.d.ts +2 -0
- package/dist/components/filters-drawer/filters-drawer.styles.js +60 -0
- package/dist/components/flag-icon/flag-icon.component.d.ts +9 -0
- package/dist/components/flag-icon/flag-icon.component.js +45 -0
- package/dist/components/flag-icon/flag-icon.constants.d.ts +1 -0
- package/dist/components/flag-icon/flag-icon.constants.js +371 -0
- package/dist/components/flag-icon/flag-icon.d.ts +8 -0
- package/dist/components/flag-icon/flag-icon.js +6 -0
- package/dist/components/flag-icon/flag-icon.styles.d.ts +2 -0
- package/dist/components/flag-icon/flag-icon.styles.js +16 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.component.d.ts +8 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.component.js +40 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.d.ts +8 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.js +6 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.styles.d.ts +2 -0
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.styles.js +55 -0
- package/dist/components/footer-menu/footer-menu.component.d.ts +5 -0
- package/dist/components/footer-menu/footer-menu.component.js +17 -0
- package/dist/components/footer-menu/footer-menu.d.ts +8 -0
- package/dist/components/footer-menu/footer-menu.js +6 -0
- package/dist/components/footer-menu/footer-menu.styles.d.ts +2 -0
- package/dist/components/footer-menu/footer-menu.styles.js +47 -0
- package/dist/components/icon/icon.component.d.ts +14 -0
- package/dist/components/icon/icon.component.js +104 -0
- package/dist/components/icon/icon.d.ts +8 -0
- package/dist/components/icon/icon.js +6 -0
- package/dist/components/icon/icon.styles.d.ts +2 -0
- package/dist/components/icon/icon.styles.js +43 -0
- package/dist/components/icon/icon.types.d.ts +2 -0
- package/dist/components/icon/icon.types.js +1 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.component.d.ts +8 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.component.js +42 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.d.ts +8 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.js +6 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.styles.d.ts +2 -0
- package/dist/components/icon-list/icon-list-item/icon-list-item.styles.js +23 -0
- package/dist/components/icon-list/icon-list.component.d.ts +5 -0
- package/dist/components/icon-list/icon-list.component.js +12 -0
- package/dist/components/icon-list/icon-list.d.ts +8 -0
- package/dist/components/icon-list/icon-list.js +6 -0
- package/dist/components/icon-list/icon-list.styles.d.ts +2 -0
- package/dist/components/icon-list/icon-list.styles.js +15 -0
- package/dist/components/image/image.component.d.ts +83 -0
- package/dist/components/image/image.component.js +301 -0
- package/dist/components/image/image.d.ts +8 -0
- package/dist/components/image/image.js +6 -0
- package/dist/components/image/image.styles.d.ts +2 -0
- package/dist/components/image/image.styles.js +88 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.component.d.ts +10 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.component.js +43 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.d.ts +8 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.js +6 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.styles.d.ts +2 -0
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.styles.js +28 -0
- package/dist/components/image-carousel/image-carousel.component.d.ts +8 -0
- package/dist/components/image-carousel/image-carousel.component.js +36 -0
- package/dist/components/image-carousel/image-carousel.d.ts +8 -0
- package/dist/components/image-carousel/image-carousel.js +6 -0
- package/dist/components/image-carousel/image-carousel.styles.d.ts +2 -0
- package/dist/components/image-carousel/image-carousel.styles.js +72 -0
- package/dist/components/image-chip/image-chip.component.d.ts +8 -0
- package/dist/components/image-chip/image-chip.component.js +33 -0
- package/dist/components/image-chip/image-chip.d.ts +8 -0
- package/dist/components/image-chip/image-chip.js +6 -0
- package/dist/components/image-chip/image-chip.styles.d.ts +2 -0
- package/dist/components/image-chip/image-chip.styles.js +43 -0
- package/dist/components/image-viewer/image-viewer.component.d.ts +49 -0
- package/dist/components/image-viewer/image-viewer.component.js +193 -0
- package/dist/components/image-viewer/image-viewer.d.ts +8 -0
- package/dist/components/image-viewer/image-viewer.js +6 -0
- package/dist/components/image-viewer/image-viewer.styles.d.ts +2 -0
- package/dist/components/image-viewer/image-viewer.styles.js +146 -0
- package/dist/components/input-field/input-field.component.d.ts +54 -0
- package/dist/components/input-field/input-field.component.js +331 -0
- package/dist/components/input-field/input-field.d.ts +8 -0
- package/dist/components/input-field/input-field.js +6 -0
- package/dist/components/input-field/input-field.styles.d.ts +2 -0
- package/dist/components/input-field/input-field.styles.js +274 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.component.d.ts +9 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.component.js +45 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.d.ts +8 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.js +6 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.styles.d.ts +2 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.styles.js +70 -0
- package/dist/components/itinerary/itinerary.component.d.ts +7 -0
- package/dist/components/itinerary/itinerary.component.js +23 -0
- package/dist/components/itinerary/itinerary.d.ts +8 -0
- package/dist/components/itinerary/itinerary.js +6 -0
- package/dist/components/itinerary/itinerary.styles.d.ts +2 -0
- package/dist/components/itinerary/itinerary.styles.js +15 -0
- package/dist/components/joined-fields/joined-fields.component.d.ts +16 -0
- package/dist/components/joined-fields/joined-fields.component.js +93 -0
- package/dist/components/joined-fields/joined-fields.d.ts +8 -0
- package/dist/components/joined-fields/joined-fields.js +6 -0
- package/dist/components/joined-fields/joined-fields.styles.d.ts +2 -0
- package/dist/components/joined-fields/joined-fields.styles.js +101 -0
- package/dist/components/layout/layout.component.d.ts +10 -0
- package/dist/components/layout/layout.component.js +34 -0
- package/dist/components/layout/layout.d.ts +8 -0
- package/dist/components/layout/layout.js +6 -0
- package/dist/components/layout/layout.styles.d.ts +2 -0
- package/dist/components/layout/layout.styles.js +31 -0
- package/dist/components/list/list-item/list-item.component.d.ts +9 -0
- package/dist/components/list/list-item/list-item.component.js +30 -0
- package/dist/components/list/list-item/list-item.d.ts +8 -0
- package/dist/components/list/list-item/list-item.js +6 -0
- package/dist/components/list/list-item/list-item.styles.d.ts +2 -0
- package/dist/components/list/list-item/list-item.styles.js +34 -0
- package/dist/components/list/list.component.d.ts +6 -0
- package/dist/components/list/list.component.js +25 -0
- package/dist/components/list/list.d.ts +8 -0
- package/dist/components/list/list.js +6 -0
- package/dist/components/list/list.styles.d.ts +2 -0
- package/dist/components/list/list.styles.js +24 -0
- package/dist/components/loading-spinner/loading-spinner.component.d.ts +7 -0
- package/dist/components/loading-spinner/loading-spinner.component.js +22 -0
- package/dist/components/loading-spinner/loading-spinner.d.ts +8 -0
- package/dist/components/loading-spinner/loading-spinner.js +6 -0
- package/dist/components/loading-spinner/loading-spinner.styles.d.ts +2 -0
- package/dist/components/loading-spinner/loading-spinner.styles.js +47 -0
- package/dist/components/loading-spinner/loading-spinner.types.d.ts +1 -0
- package/dist/components/loading-spinner/loading-spinner.types.js +1 -0
- package/dist/components/locales-list/locales-list.component.d.ts +17 -0
- package/dist/components/locales-list/locales-list.component.js +55 -0
- package/dist/components/locales-list/locales-list.constants.d.ts +2 -0
- package/dist/components/locales-list/locales-list.constants.js +370 -0
- package/dist/components/locales-list/locales-list.d.ts +8 -0
- package/dist/components/locales-list/locales-list.js +6 -0
- package/dist/components/locales-list/locales-list.styles.d.ts +2 -0
- package/dist/components/locales-list/locales-list.styles.js +5 -0
- package/dist/components/location-image/location-image.component.d.ts +29 -0
- package/dist/components/location-image/location-image.component.js +135 -0
- package/dist/components/location-image/location-image.d.ts +8 -0
- package/dist/components/location-image/location-image.js +6 -0
- package/dist/components/location-image/location-image.styles.d.ts +2 -0
- package/dist/components/location-image/location-image.styles.js +49 -0
- package/dist/components/locations-results/locations-results.component.d.ts +21 -0
- package/dist/components/locations-results/locations-results.component.js +83 -0
- package/dist/components/locations-results/locations-results.d.ts +8 -0
- package/dist/components/locations-results/locations-results.js +6 -0
- package/dist/components/locations-results/locations-results.styles.d.ts +2 -0
- package/dist/components/locations-results/locations-results.styles.js +64 -0
- package/dist/components/marketing-tag/marketing-tag.component.d.ts +5 -0
- package/dist/components/marketing-tag/marketing-tag.component.js +8 -0
- package/dist/components/marketing-tag/marketing-tag.d.ts +8 -0
- package/dist/components/marketing-tag/marketing-tag.js +6 -0
- package/dist/components/marketing-tag/marketing-tag.styles.d.ts +2 -0
- package/dist/components/marketing-tag/marketing-tag.styles.js +36 -0
- package/dist/components/message-card/message-card.component.d.ts +12 -0
- package/dist/components/message-card/message-card.component.js +56 -0
- package/dist/components/message-card/message-card.d.ts +8 -0
- package/dist/components/message-card/message-card.js +6 -0
- package/dist/components/message-card/message-card.styles.d.ts +2 -0
- package/dist/components/message-card/message-card.styles.js +72 -0
- package/dist/components/message-card/message-card.types.d.ts +1 -0
- package/dist/components/message-card/message-card.types.js +1 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.component.d.ts +9 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.component.js +43 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.d.ts +8 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.js +6 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.styles.d.ts +2 -0
- package/dist/components/mobile-menu-item/mobile-menu-item.styles.js +46 -0
- package/dist/components/option-group/option-chip/option-chip.component.d.ts +7 -0
- package/dist/components/option-group/option-chip/option-chip.component.js +35 -0
- package/dist/components/option-group/option-chip/option-chip.d.ts +8 -0
- package/dist/components/option-group/option-chip/option-chip.js +6 -0
- package/dist/components/option-group/option-chip/option-chip.styles.d.ts +2 -0
- package/dist/components/option-group/option-chip/option-chip.styles.js +45 -0
- package/dist/components/option-group/option-group.component.d.ts +6 -0
- package/dist/components/option-group/option-group.component.js +31 -0
- package/dist/components/option-group/option-group.d.ts +8 -0
- package/dist/components/option-group/option-group.js +6 -0
- package/dist/components/option-group/option-group.styles.d.ts +2 -0
- package/dist/components/option-group/option-group.styles.js +30 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.component.d.ts +11 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.component.js +81 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.d.ts +8 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.js +6 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.styles.d.ts +2 -0
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.styles.js +107 -0
- package/dist/components/order-confirmation/order-confirmation.component.d.ts +12 -0
- package/dist/components/order-confirmation/order-confirmation.component.js +72 -0
- package/dist/components/order-confirmation/order-confirmation.d.ts +8 -0
- package/dist/components/order-confirmation/order-confirmation.js +6 -0
- package/dist/components/order-confirmation/order-confirmation.styles.d.ts +2 -0
- package/dist/components/order-confirmation/order-confirmation.styles.js +102 -0
- package/dist/components/otp/otp.component.d.ts +24 -0
- package/dist/components/otp/otp.component.js +148 -0
- package/dist/components/otp/otp.d.ts +8 -0
- package/dist/components/otp/otp.js +6 -0
- package/dist/components/otp/otp.styles.d.ts +2 -0
- package/dist/components/otp/otp.styles.js +87 -0
- package/dist/components/otp/otp.utils.d.ts +9 -0
- package/dist/components/otp/otp.utils.js +26 -0
- package/dist/components/overlay/overlay.component.d.ts +13 -0
- package/dist/components/overlay/overlay.component.js +52 -0
- package/dist/components/overlay/overlay.d.ts +8 -0
- package/dist/components/overlay/overlay.js +6 -0
- package/dist/components/overlay/overlay.styles.d.ts +2 -0
- package/dist/components/overlay/overlay.styles.js +39 -0
- package/dist/components/pay-in/pay-in.component.d.ts +10 -0
- package/dist/components/pay-in/pay-in.component.js +52 -0
- package/dist/components/pay-in/pay-in.d.ts +8 -0
- package/dist/components/pay-in/pay-in.js +6 -0
- package/dist/components/pay-in/pay-in.styles.d.ts +2 -0
- package/dist/components/pay-in/pay-in.styles.js +58 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.component.d.ts +16 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.component.js +63 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.d.ts +8 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.js +6 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.styles.d.ts +2 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.styles.js +38 -0
- package/dist/components/payment-option/payment-option.component.d.ts +38 -0
- package/dist/components/payment-option/payment-option.component.js +131 -0
- package/dist/components/payment-option/payment-option.d.ts +8 -0
- package/dist/components/payment-option/payment-option.js +6 -0
- package/dist/components/payment-option/payment-option.styles.d.ts +2 -0
- package/dist/components/payment-option/payment-option.styles.js +206 -0
- package/dist/components/performance-time/performance-time.component.d.ts +9 -0
- package/dist/components/performance-time/performance-time.component.js +47 -0
- package/dist/components/performance-time/performance-time.d.ts +8 -0
- package/dist/components/performance-time/performance-time.js +6 -0
- package/dist/components/performance-time/performance-time.styles.d.ts +2 -0
- package/dist/components/performance-time/performance-time.styles.js +53 -0
- package/dist/components/phone-country-code/phone-country-code.component.d.ts +13 -0
- package/dist/components/phone-country-code/phone-country-code.component.js +53 -0
- package/dist/components/phone-country-code/phone-country-code.d.ts +8 -0
- package/dist/components/phone-country-code/phone-country-code.js +6 -0
- package/dist/components/phone-country-code/phone-country-code.styles.d.ts +2 -0
- package/dist/components/phone-country-code/phone-country-code.styles.js +44 -0
- package/dist/components/phone-country-codes/phone-country-codes.component.d.ts +11 -0
- package/dist/components/phone-country-codes/phone-country-codes.component.js +47 -0
- package/dist/components/phone-country-codes/phone-country-codes.d.ts +8 -0
- package/dist/components/phone-country-codes/phone-country-codes.js +6 -0
- package/dist/components/phone-country-codes/phone-country-codes.styles.d.ts +2 -0
- package/dist/components/phone-country-codes/phone-country-codes.styles.js +21 -0
- package/dist/components/phone-field/phone-field.component.d.ts +53 -0
- package/dist/components/phone-field/phone-field.component.js +200 -0
- package/dist/components/phone-field/phone-field.d.ts +9 -0
- package/dist/components/phone-field/phone-field.js +7 -0
- package/dist/components/phone-field/phone-field.styles.d.ts +2 -0
- package/dist/components/phone-field/phone-field.styles.js +41 -0
- package/dist/components/phone-field/phone-field.types.d.ts +5 -0
- package/dist/components/phone-field/phone-field.types.js +1 -0
- package/dist/components/phone-field/phone-field.utils.d.ts +2 -0
- package/dist/components/phone-field/phone-field.utils.js +7 -0
- package/dist/components/points/points.component.d.ts +9 -0
- package/dist/components/points/points.component.js +36 -0
- package/dist/components/points/points.d.ts +8 -0
- package/dist/components/points/points.js +6 -0
- package/dist/components/points/points.styles.d.ts +2 -0
- package/dist/components/points/points.styles.js +47 -0
- package/dist/components/price/price.component.d.ts +12 -0
- package/dist/components/price/price.component.js +38 -0
- package/dist/components/price/price.d.ts +8 -0
- package/dist/components/price/price.js +6 -0
- package/dist/components/reservation-preview/reservation-preview.component.d.ts +11 -0
- package/dist/components/reservation-preview/reservation-preview.component.js +84 -0
- package/dist/components/reservation-preview/reservation-preview.d.ts +8 -0
- package/dist/components/reservation-preview/reservation-preview.js +6 -0
- package/dist/components/reservation-preview/reservation-preview.styles.d.ts +2 -0
- package/dist/components/reservation-preview/reservation-preview.styles.js +190 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.component.d.ts +7 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.component.js +36 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.d.ts +8 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.js +6 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.styles.d.ts +2 -0
- package/dist/components/reservation-preview-item/reservation-preview-item.styles.js +70 -0
- package/dist/components/reviews/review/review.component.d.ts +9 -0
- package/dist/components/reviews/review/review.component.js +41 -0
- package/dist/components/reviews/review/review.d.ts +8 -0
- package/dist/components/reviews/review/review.js +6 -0
- package/dist/components/reviews/review/review.styles.d.ts +2 -0
- package/dist/components/reviews/review/review.styles.js +45 -0
- package/dist/components/reviews/reviews.component.d.ts +9 -0
- package/dist/components/reviews/reviews.component.js +56 -0
- package/dist/components/reviews/reviews.d.ts +8 -0
- package/dist/components/reviews/reviews.js +6 -0
- package/dist/components/reviews/reviews.styles.d.ts +2 -0
- package/dist/components/reviews/reviews.styles.js +73 -0
- package/dist/components/search-button/search-button.component.d.ts +8 -0
- package/dist/components/search-button/search-button.component.js +37 -0
- package/dist/components/search-button/search-button.d.ts +8 -0
- package/dist/components/search-button/search-button.js +6 -0
- package/dist/components/search-button/search-button.styles.d.ts +2 -0
- package/dist/components/search-button/search-button.styles.js +61 -0
- package/dist/components/search-results-item/search-results-item.d.ts +13 -0
- package/dist/components/search-results-item/search-results-item.js +26 -0
- package/dist/components/seated-selector/seated-selector.component.d.ts +42 -0
- package/dist/components/seated-selector/seated-selector.component.js +321 -0
- package/dist/components/seated-selector/seated-selector.d.ts +8 -0
- package/dist/components/seated-selector/seated-selector.js +6 -0
- package/dist/components/seated-selector/seated-selector.styles.d.ts +2 -0
- package/dist/components/seated-selector/seated-selector.styles.js +84 -0
- package/dist/components/seats-io/seats-io.component.d.ts +27 -0
- package/dist/components/seats-io/seats-io.component.js +162 -0
- package/dist/components/seats-io/seats-io.constants.d.ts +12 -0
- package/dist/components/seats-io/seats-io.constants.js +23 -0
- package/dist/components/seats-io/seats-io.d.ts +8 -0
- package/dist/components/seats-io/seats-io.js +6 -0
- package/dist/components/seats-io/seats-io.styles.d.ts +2 -0
- package/dist/components/seats-io/seats-io.styles.js +15 -0
- package/dist/components/seats-io/seats-io.transform.d.ts +77 -0
- package/dist/components/seats-io/seats-io.transform.js +152 -0
- package/dist/components/select-list/select-list.component.d.ts +19 -0
- package/dist/components/select-list/select-list.component.js +160 -0
- package/dist/components/select-list/select-list.d.ts +8 -0
- package/dist/components/select-list/select-list.js +6 -0
- package/dist/components/select-list/select-list.styles.d.ts +2 -0
- package/dist/components/select-list/select-list.styles.js +46 -0
- package/dist/components/select-list/select-option/select-option.component.d.ts +7 -0
- package/dist/components/select-list/select-option/select-option.component.js +28 -0
- package/dist/components/select-list/select-option/select-option.d.ts +8 -0
- package/dist/components/select-list/select-option/select-option.js +6 -0
- package/dist/components/select-list/select-option/select-option.styles.d.ts +2 -0
- package/dist/components/select-list/select-option/select-option.styles.js +52 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.component.d.ts +10 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.component.js +51 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.d.ts +8 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.js +6 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.styles.d.ts +2 -0
- package/dist/components/selected-tickets-preview/selected-tickets-preview.styles.js +89 -0
- package/dist/components/sort-dropdown/sort-dropdown.component.d.ts +14 -0
- package/dist/components/sort-dropdown/sort-dropdown.component.js +57 -0
- package/dist/components/sort-dropdown/sort-dropdown.d.ts +8 -0
- package/dist/components/sort-dropdown/sort-dropdown.js +6 -0
- package/dist/components/sort-dropdown/sort-dropdown.styles.d.ts +2 -0
- package/dist/components/sort-dropdown/sort-dropdown.styles.js +22 -0
- package/dist/components/sort-list/sort-list.component.d.ts +7 -0
- package/dist/components/sort-list/sort-list.component.js +25 -0
- package/dist/components/sort-list/sort-list.d.ts +8 -0
- package/dist/components/sort-list/sort-list.js +6 -0
- package/dist/components/sort-list/sort-list.styles.d.ts +2 -0
- package/dist/components/sort-list/sort-list.styles.js +17 -0
- package/dist/components/sport-options/sport-option/sport-option.component.d.ts +10 -0
- package/dist/components/sport-options/sport-option/sport-option.component.js +57 -0
- package/dist/components/sport-options/sport-option/sport-option.d.ts +8 -0
- package/dist/components/sport-options/sport-option/sport-option.js +6 -0
- package/dist/components/sport-options/sport-option/sport-option.styles.d.ts +2 -0
- package/dist/components/sport-options/sport-option/sport-option.styles.js +156 -0
- package/dist/components/sport-options/sport-options.component.d.ts +6 -0
- package/dist/components/sport-options/sport-options.component.js +27 -0
- package/dist/components/sport-options/sport-options.d.ts +8 -0
- package/dist/components/sport-options/sport-options.js +6 -0
- package/dist/components/sport-options/sport-options.styles.d.ts +2 -0
- package/dist/components/sport-options/sport-options.styles.js +33 -0
- package/dist/components/star-rating/star-rating.component.d.ts +15 -0
- package/dist/components/star-rating/star-rating.component.js +77 -0
- package/dist/components/star-rating/star-rating.d.ts +8 -0
- package/dist/components/star-rating/star-rating.js +6 -0
- package/dist/components/star-rating/star-rating.styles.d.ts +2 -0
- package/dist/components/star-rating/star-rating.styles.js +49 -0
- package/dist/components/tab/tab.component.d.ts +12 -0
- package/dist/components/tab/tab.component.js +52 -0
- package/dist/components/tab/tab.constants.d.ts +4 -0
- package/dist/components/tab/tab.constants.js +5 -0
- package/dist/components/tab/tab.d.ts +8 -0
- package/dist/components/tab/tab.js +6 -0
- package/dist/components/tab/tab.styles.d.ts +2 -0
- package/dist/components/tab/tab.styles.js +50 -0
- package/dist/components/tab-panel/tab-panel.component.d.ts +9 -0
- package/dist/components/tab-panel/tab-panel.component.js +35 -0
- package/dist/components/tab-panel/tab-panel.d.ts +8 -0
- package/dist/components/tab-panel/tab-panel.js +6 -0
- package/dist/components/tab-panel/tab-panel.styles.d.ts +2 -0
- package/dist/components/tab-panel/tab-panel.styles.js +23 -0
- package/dist/components/tabs/tabs.component.d.ts +19 -0
- package/dist/components/tabs/tabs.component.js +87 -0
- package/dist/components/tabs/tabs.d.ts +8 -0
- package/dist/components/tabs/tabs.js +6 -0
- package/dist/components/tabs/tabs.styles.d.ts +2 -0
- package/dist/components/tabs/tabs.styles.js +32 -0
- package/dist/components/tag/tag.component.d.ts +8 -0
- package/dist/components/tag/tag.component.js +33 -0
- package/dist/components/tag/tag.constants.d.ts +1 -0
- package/dist/components/tag/tag.constants.js +1 -0
- package/dist/components/tag/tag.d.ts +8 -0
- package/dist/components/tag/tag.js +6 -0
- package/dist/components/tag/tag.styles.d.ts +2 -0
- package/dist/components/tag/tag.styles.js +56 -0
- package/dist/components/text-section/text-section.component.d.ts +6 -0
- package/dist/components/text-section/text-section.component.js +31 -0
- package/dist/components/text-section/text-section.d.ts +8 -0
- package/dist/components/text-section/text-section.js +6 -0
- package/dist/components/text-section/text-section.styles.d.ts +2 -0
- package/dist/components/text-section/text-section.styles.js +94 -0
- package/dist/components/time-tag/time-tag.component.d.ts +14 -0
- package/dist/components/time-tag/time-tag.component.js +58 -0
- package/dist/components/time-tag/time-tag.d.ts +8 -0
- package/dist/components/time-tag/time-tag.js +6 -0
- package/dist/components/time-tag/time-tag.styles.d.ts +2 -0
- package/dist/components/time-tag/time-tag.styles.js +41 -0
- package/dist/components/tooltip/tooltip.component.d.ts +19 -0
- package/dist/components/tooltip/tooltip.component.js +124 -0
- package/dist/components/tooltip/tooltip.d.ts +8 -0
- package/dist/components/tooltip/tooltip.js +6 -0
- package/dist/components/tooltip/tooltip.styles.d.ts +2 -0
- package/dist/components/tooltip/tooltip.styles.js +79 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.component.d.ts +9 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.component.js +36 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.d.ts +8 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.js +6 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.styles.d.ts +2 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.styles.js +35 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.component.d.ts +9 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.component.js +47 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.d.ts +8 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.js +6 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.styles.d.ts +2 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.styles.js +78 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.component.d.ts +13 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.component.js +74 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.d.ts +8 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.js +6 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.styles.d.ts +2 -0
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.styles.js +40 -0
- package/dist/components/transfer-modal/transfer-modal.component.d.ts +72 -0
- package/dist/components/transfer-modal/transfer-modal.component.js +297 -0
- package/dist/components/transfer-modal/transfer-modal.d.ts +8 -0
- package/dist/components/transfer-modal/transfer-modal.js +6 -0
- package/dist/components/transfer-modal/transfer-modal.styles.d.ts +2 -0
- package/dist/components/transfer-modal/transfer-modal.styles.js +141 -0
- package/dist/containers/basket/basket.component.d.ts +25 -0
- package/dist/containers/basket/basket.component.js +257 -0
- package/dist/containers/basket/basket.d.ts +8 -0
- package/dist/containers/basket/basket.js +6 -0
- package/dist/containers/footer/footer.component.d.ts +8 -0
- package/dist/containers/footer/footer.component.js +65 -0
- package/dist/containers/footer/footer.d.ts +8 -0
- package/dist/containers/footer/footer.js +6 -0
- package/dist/containers/footer/footer.styles.d.ts +2 -0
- package/dist/containers/footer/footer.styles.js +31 -0
- package/dist/containers/navbar/navbar.component.d.ts +102 -0
- package/dist/containers/navbar/navbar.component.js +727 -0
- package/dist/containers/navbar/navbar.d.ts +8 -0
- package/dist/containers/navbar/navbar.js +6 -0
- package/dist/containers/navbar/navbar.styles.d.ts +2 -0
- package/dist/containers/navbar/navbar.styles.js +257 -0
- package/dist/containers/navbar/navbar.utils.d.ts +12 -0
- package/dist/containers/navbar/navbar.utils.js +40 -0
- package/dist/contexts/basket/basket.context.d.ts +4 -0
- package/dist/contexts/basket/basket.context.js +2 -0
- package/dist/contexts/basket/basket.d.ts +8 -0
- package/dist/contexts/basket/basket.js +6 -0
- package/dist/contexts/basket/basket.provider.d.ts +30 -0
- package/dist/contexts/basket/basket.provider.js +218 -0
- package/dist/contexts/basket/basket.styles.d.ts +2 -0
- package/dist/contexts/basket/basket.styles.js +9 -0
- package/dist/contexts/basket/basket.types.d.ts +18 -0
- package/dist/contexts/basket/basket.types.js +1 -0
- package/dist/contexts/client.context.d.ts +5 -0
- package/dist/contexts/client.context.js +2 -0
- package/dist/contexts/current-page.context.d.ts +4 -0
- package/dist/contexts/current-page.context.js +2 -0
- package/dist/contexts/events.context.d.ts +33 -0
- package/dist/contexts/events.context.js +2 -0
- package/dist/contexts/pages.context.d.ts +25 -0
- package/dist/contexts/pages.context.js +1 -0
- package/dist/contexts/properties.context.d.ts +24 -0
- package/dist/contexts/properties.context.js +9 -0
- package/dist/contexts/types.d.ts +16 -0
- package/dist/contexts/types.js +1 -0
- package/dist/contexts/utils.d.ts +1 -0
- package/dist/contexts/utils.js +1 -0
- package/dist/controllers/time-expiration.d.ts +11 -0
- package/dist/controllers/time-expiration.js +31 -0
- package/dist/core/api/api-error.d.ts +20 -0
- package/dist/core/api/api-error.js +27 -0
- package/dist/core/api/middlewares/booking-session/booking-session.constants.d.ts +5 -0
- package/dist/core/api/middlewares/booking-session/booking-session.constants.js +5 -0
- package/dist/core/api/middlewares/booking-session/booking-session.d.ts +2 -0
- package/dist/core/api/middlewares/booking-session/booking-session.js +56 -0
- package/dist/core/api/middlewares/booking-session/booking-session.utils.d.ts +5 -0
- package/dist/core/api/middlewares/booking-session/booking-session.utils.js +70 -0
- package/dist/core/api/middlewares/error-handler/error-handler.d.ts +6 -0
- package/dist/core/api/middlewares/error-handler/error-handler.js +27 -0
- package/dist/core/api/queries.d.ts +74 -0
- package/dist/core/api/queries.js +120 -0
- package/dist/core/constants/api-version.d.ts +1 -0
- package/dist/core/constants/api-version.js +1 -0
- package/dist/core/currency/constants.d.ts +5 -0
- package/dist/core/currency/constants.js +101 -0
- package/dist/core/currency/index.d.ts +12 -0
- package/dist/core/currency/index.js +6 -0
- package/dist/core/events.d.ts +196 -0
- package/dist/core/events.js +46 -0
- package/dist/core/i18n/date.d.ts +7 -0
- package/dist/core/i18n/date.js +65 -0
- package/dist/core/i18n/locale-codes.d.ts +13 -0
- package/dist/core/i18n/locale-codes.js +52 -0
- package/dist/core/i18n/localization.d.ts +5 -0
- package/dist/core/i18n/localization.js +15 -0
- package/dist/core/images/constants.d.ts +7 -0
- package/dist/core/images/constants.js +7 -0
- package/dist/core/images/filters.d.ts +28 -0
- package/dist/core/images/filters.js +51 -0
- package/dist/core/images/helpers.d.ts +12 -0
- package/dist/core/images/helpers.js +14 -0
- package/dist/core/images/preset-adapter.d.ts +23 -0
- package/dist/core/images/preset-adapter.js +52 -0
- package/dist/core/images/selection.d.ts +45 -0
- package/dist/core/images/selection.js +125 -0
- package/dist/core/images/srcset.d.ts +28 -0
- package/dist/core/images/srcset.js +52 -0
- package/dist/core/images/url.d.ts +23 -0
- package/dist/core/images/url.js +40 -0
- package/dist/core/pages.d.ts +68 -0
- package/dist/core/pages.js +1 -0
- package/dist/core/signals.d.ts +2 -0
- package/dist/core/signals.js +3 -0
- package/dist/core/storybook/argTypes.d.ts +1 -0
- package/dist/core/storybook/argTypes.js +46 -0
- package/dist/core/storybook/cssprops.d.ts +30 -0
- package/dist/core/storybook/cssprops.js +46 -0
- package/dist/core/types/api-errors.d.ts +8 -0
- package/dist/core/types/api-errors.js +1 -0
- package/dist/core/types/basket.d.ts +18 -0
- package/dist/core/types/basket.js +1 -0
- package/dist/core/types/core/base.d.ts +11 -0
- package/dist/core/types/core/base.js +1 -0
- package/dist/core/types/core/category.d.ts +2 -0
- package/dist/core/types/core/category.js +1 -0
- package/dist/core/types/core/currency.d.ts +2 -0
- package/dist/core/types/core/currency.js +1 -0
- package/dist/core/types/core/index.d.ts +6 -0
- package/dist/core/types/core/index.js +1 -0
- package/dist/core/types/core/locale.d.ts +2 -0
- package/dist/core/types/core/locale.js +1 -0
- package/dist/core/types/core/points.d.ts +4 -0
- package/dist/core/types/core/points.js +1 -0
- package/dist/core/types/core/rating.d.ts +1 -0
- package/dist/core/types/core/rating.js +1 -0
- package/dist/core/types/core/sorting.d.ts +2 -0
- package/dist/core/types/core/sorting.js +1 -0
- package/dist/core/types/currencies.d.ts +2 -0
- package/dist/core/types/currencies.js +1 -0
- package/dist/core/types/index.d.ts +6 -0
- package/dist/core/types/index.js +1 -0
- package/dist/core/types/locales.d.ts +4 -0
- package/dist/core/types/locales.js +1 -0
- package/dist/core/types/seats-config.d.ts +13 -0
- package/dist/core/types/seats-config.js +9 -0
- package/dist/core/types/shared.d.ts +1 -0
- package/dist/core/types/shared.js +1 -0
- package/dist/core/utils/datetime.d.ts +77 -0
- package/dist/core/utils/datetime.js +153 -0
- package/dist/core/utils/function.d.ts +4 -0
- package/dist/core/utils/function.js +22 -0
- package/dist/core/utils/html.d.ts +28 -0
- package/dist/core/utils/html.js +78 -0
- package/dist/core/utils/locale.d.ts +3 -0
- package/dist/core/utils/locale.js +3 -0
- package/dist/core/utils/scroll-lock.d.ts +50 -0
- package/dist/core/utils/scroll-lock.js +121 -0
- package/dist/core/utils/text.d.ts +9 -0
- package/dist/core/utils/text.js +50 -0
- package/dist/core/utils/time.d.ts +2 -0
- package/dist/core/utils/time.js +10 -0
- package/dist/custom-elements.json +37289 -0
- package/dist/errors.d.ts +3 -0
- package/dist/errors.js +5 -0
- package/dist/helpers/helpers.d.ts +5 -0
- package/dist/helpers/helpers.js +31 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +14 -0
- package/dist/locales/da-DK.d.ts +261 -0
- package/dist/locales/da-DK.js +273 -0
- package/dist/locales/de-DE.d.ts +261 -0
- package/dist/locales/de-DE.js +273 -0
- package/dist/locales/en-IE.d.ts +261 -0
- package/dist/locales/en-IE.js +273 -0
- package/dist/locales/en-US.d.ts +261 -0
- package/dist/locales/en-US.js +273 -0
- package/dist/locales/es-ES.d.ts +261 -0
- package/dist/locales/es-ES.js +273 -0
- package/dist/locales/fr-FR.d.ts +261 -0
- package/dist/locales/fr-FR.js +273 -0
- package/dist/locales/fr-MA.d.ts +261 -0
- package/dist/locales/fr-MA.js +273 -0
- package/dist/locales/is-IS.d.ts +261 -0
- package/dist/locales/is-IS.js +273 -0
- package/dist/locales/it-IT.d.ts +261 -0
- package/dist/locales/it-IT.js +273 -0
- package/dist/locales/ms-MY.d.ts +261 -0
- package/dist/locales/ms-MY.js +273 -0
- package/dist/locales/nb-NO.d.ts +261 -0
- package/dist/locales/nb-NO.js +273 -0
- package/dist/locales/pl-PL.d.ts +261 -0
- package/dist/locales/pl-PL.js +273 -0
- package/dist/locales/pt-PT.d.ts +261 -0
- package/dist/locales/pt-PT.js +273 -0
- package/dist/locales/sv-SE.d.ts +261 -0
- package/dist/locales/sv-SE.js +273 -0
- package/dist/locales/th-TH.d.ts +261 -0
- package/dist/locales/th-TH.js +273 -0
- package/dist/locales/tr-TR.d.ts +261 -0
- package/dist/locales/tr-TR.js +273 -0
- package/dist/locales/zh-CN.d.ts +261 -0
- package/dist/locales/zh-CN.js +273 -0
- package/dist/mixins/base.mixin.d.ts +22 -0
- package/dist/mixins/base.mixin.js +120 -0
- package/dist/mixins/coinbase.mixin.d.ts +70 -0
- package/dist/mixins/coinbase.mixin.js +979 -0
- package/dist/mixins/error-modal.mixin.d.ts +16 -0
- package/dist/mixins/error-modal.mixin.js +108 -0
- package/dist/mixins/error-modal.styles.d.ts +2 -0
- package/dist/mixins/error-modal.styles.js +81 -0
- package/dist/mixins/location-search/location-search.d.ts +7 -0
- package/dist/mixins/location-search/location-search.js +334 -0
- package/dist/mixins/location-search/location-search.styles.d.ts +2 -0
- package/dist/mixins/location-search/location-search.styles.js +80 -0
- package/dist/mixins/location-search/types.d.ts +10 -0
- package/dist/mixins/location-search/types.js +1 -0
- package/dist/mixins/overlay/overlay-mixin.d.ts +4 -0
- package/dist/mixins/overlay/overlay-mixin.js +86 -0
- package/dist/mixins/overlay/types.d.ts +8 -0
- package/dist/mixins/overlay/types.js +1 -0
- package/dist/mixins/points/points.d.ts +3 -0
- package/dist/mixins/points/points.js +30 -0
- package/dist/mixins/points/types.d.ts +8 -0
- package/dist/mixins/points/types.js +1 -0
- package/dist/mixins/search-mixin/search-mixin.d.ts +4 -0
- package/dist/mixins/search-mixin/search-mixin.js +66 -0
- package/dist/mixins/search-mixin/types.d.ts +7 -0
- package/dist/mixins/search-mixin/types.js +1 -0
- package/dist/sdk/chrome.d.ts +10 -0
- package/dist/sdk/chrome.js +83 -0
- package/dist/sdk/element-adapter.d.ts +16 -0
- package/dist/sdk/element-adapter.js +60 -0
- package/dist/sdk/meta.d.ts +7 -0
- package/dist/sdk/meta.js +9 -0
- package/dist/sdk/mount.d.ts +19 -0
- package/dist/sdk/mount.js +289 -0
- package/dist/sdk/navigation-intent.d.ts +34 -0
- package/dist/sdk/navigation-intent.js +28 -0
- package/dist/sdk/page-registry.d.ts +32 -0
- package/dist/sdk/page-registry.js +84 -0
- package/dist/sdk/redaction.d.ts +11 -0
- package/dist/sdk/redaction.js +61 -0
- package/dist/sdk/theme.d.ts +19 -0
- package/dist/sdk/theme.js +75 -0
- package/dist/sdk/types.d.ts +258 -0
- package/dist/sdk/types.js +1 -0
- package/dist/sdk/url.d.ts +47 -0
- package/dist/sdk/url.js +199 -0
- package/dist/sdk/validation.d.ts +50 -0
- package/dist/sdk/validation.js +318 -0
- package/dist/styles/contrast-fixtures.d.ts +10 -0
- package/dist/styles/contrast-fixtures.js +61 -0
- package/dist/styles/contrast.d.ts +19 -0
- package/dist/styles/contrast.js +100 -0
- package/dist/styles/defaults/component.d.ts +2 -0
- package/dist/styles/defaults/component.js +31 -0
- package/dist/styles/primitives.d.ts +14 -0
- package/dist/styles/primitives.js +68 -0
- package/dist/styles/tokens.css +359 -0
- package/dist/styles/tokens.d.ts +18 -0
- package/dist/styles/tokens.generated.d.ts +1 -0
- package/dist/styles/tokens.generated.js +4 -0
- package/dist/styles/tokens.js +54 -0
- package/dist/styles/tokens.metadata.d.ts +14 -0
- package/dist/styles/tokens.metadata.js +210 -0
- package/dist/views/constants.d.ts +3 -0
- package/dist/views/constants.js +2 -0
- package/dist/views/details-page/details-page.component.d.ts +129 -0
- package/dist/views/details-page/details-page.component.js +1567 -0
- package/dist/views/details-page/details-page.d.ts +8 -0
- package/dist/views/details-page/details-page.js +6 -0
- package/dist/views/details-page/details-page.styles.d.ts +2 -0
- package/dist/views/details-page/details-page.styles.js +558 -0
- package/dist/views/details-page/details-page.utilts.d.ts +40 -0
- package/dist/views/details-page/details-page.utilts.js +188 -0
- package/dist/views/details-page/partials/theater-description/theater-description.component.d.ts +13 -0
- package/dist/views/details-page/partials/theater-description/theater-description.component.js +76 -0
- package/dist/views/details-page/partials/theater-description/theater-description.d.ts +8 -0
- package/dist/views/details-page/partials/theater-description/theater-description.js +6 -0
- package/dist/views/details-page/partials/theater-description/theater-description.styles.d.ts +2 -0
- package/dist/views/details-page/partials/theater-description/theater-description.styles.js +19 -0
- package/dist/views/details-page/partials/tour-description/tour-description.component.d.ts +20 -0
- package/dist/views/details-page/partials/tour-description/tour-description.component.js +155 -0
- package/dist/views/details-page/partials/tour-description/tour-description.d.ts +8 -0
- package/dist/views/details-page/partials/tour-description/tour-description.js +6 -0
- package/dist/views/details-page/partials/tour-description/tour-description.styles.d.ts +2 -0
- package/dist/views/details-page/partials/tour-description/tour-description.styles.js +11 -0
- package/dist/views/help-page/help-page.component.d.ts +74 -0
- package/dist/views/help-page/help-page.component.js +594 -0
- package/dist/views/help-page/help-page.d.ts +8 -0
- package/dist/views/help-page/help-page.fields.d.ts +12 -0
- package/dist/views/help-page/help-page.fields.js +46 -0
- package/dist/views/help-page/help-page.js +6 -0
- package/dist/views/help-page/help-page.styles.d.ts +2 -0
- package/dist/views/help-page/help-page.styles.js +218 -0
- package/dist/views/help-page/help-page.types.d.ts +36 -0
- package/dist/views/help-page/help-page.types.js +1 -0
- package/dist/views/help-page/help-page.utils.d.ts +3 -0
- package/dist/views/help-page/help-page.utils.js +29 -0
- package/dist/views/help-page/help-page.validators.d.ts +7 -0
- package/dist/views/help-page/help-page.validators.js +22 -0
- package/dist/views/landing-page/landing-page.component.d.ts +127 -0
- package/dist/views/landing-page/landing-page.component.js +1003 -0
- package/dist/views/landing-page/landing-page.constants.d.ts +1 -0
- package/dist/views/landing-page/landing-page.constants.js +1 -0
- package/dist/views/landing-page/landing-page.d.ts +8 -0
- package/dist/views/landing-page/landing-page.js +6 -0
- package/dist/views/landing-page/landing-page.styles.d.ts +2 -0
- package/dist/views/landing-page/landing-page.styles.js +109 -0
- package/dist/views/landing-page/landing-page.types.d.ts +7 -0
- package/dist/views/landing-page/landing-page.types.js +1 -0
- package/dist/views/payment-page/controllers/crypto-auth.controller.d.ts +71 -0
- package/dist/views/payment-page/controllers/crypto-auth.controller.js +252 -0
- package/dist/views/payment-page/controllers/crypto-transfer.controller.d.ts +99 -0
- package/dist/views/payment-page/controllers/crypto-transfer.controller.js +288 -0
- package/dist/views/payment-page/controllers/form-validation.controller.d.ts +60 -0
- package/dist/views/payment-page/controllers/form-validation.controller.js +122 -0
- package/dist/views/payment-page/controllers/layout.controller.d.ts +22 -0
- package/dist/views/payment-page/controllers/layout.controller.js +43 -0
- package/dist/views/payment-page/controllers/payment-flow.controller.d.ts +47 -0
- package/dist/views/payment-page/controllers/payment-flow.controller.js +63 -0
- package/dist/views/payment-page/controllers/stripe-payment.controller.d.ts +66 -0
- package/dist/views/payment-page/controllers/stripe-payment.controller.js +202 -0
- package/dist/views/payment-page/domain/payment-mappers.d.ts +7 -0
- package/dist/views/payment-page/domain/payment-mappers.js +7 -0
- package/dist/views/payment-page/domain/payment-validators.d.ts +6 -0
- package/dist/views/payment-page/domain/payment-validators.js +6 -0
- package/dist/views/payment-page/domain/recovery-payload.d.ts +8 -0
- package/dist/views/payment-page/domain/recovery-payload.js +7 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.component.d.ts +47 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.component.js +247 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.d.ts +8 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.js +6 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/activity-details/activity-details.styles.js +77 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.component.d.ts +34 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.component.js +165 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.d.ts +8 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.js +6 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/billing-address/billing-address.styles.js +27 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.component.d.ts +17 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.component.js +193 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.d.ts +8 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.js +6 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/confirmation/confirmation.styles.js +191 -0
- package/dist/views/payment-page/partials/country-field/country-field.component.d.ts +44 -0
- package/dist/views/payment-page/partials/country-field/country-field.component.js +260 -0
- package/dist/views/payment-page/partials/country-field/country-field.d.ts +8 -0
- package/dist/views/payment-page/partials/country-field/country-field.js +6 -0
- package/dist/views/payment-page/partials/country-field/country-field.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/country-field/country-field.styles.js +21 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.component.d.ts +19 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.component.js +108 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.d.ts +8 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.js +6 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.styles.js +21 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.component.d.ts +10 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.component.js +54 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.d.ts +8 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.js +6 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.styles.js +54 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.component.d.ts +48 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.component.js +215 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.d.ts +8 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.js +6 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.styles.js +61 -0
- package/dist/views/payment-page/partials/stripe/stripe.component.d.ts +104 -0
- package/dist/views/payment-page/partials/stripe/stripe.component.js +522 -0
- package/dist/views/payment-page/partials/stripe/stripe.constants.d.ts +46 -0
- package/dist/views/payment-page/partials/stripe/stripe.constants.js +48 -0
- package/dist/views/payment-page/partials/stripe/stripe.d.ts +8 -0
- package/dist/views/payment-page/partials/stripe/stripe.js +6 -0
- package/dist/views/payment-page/partials/stripe/stripe.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/stripe/stripe.styles.js +102 -0
- package/dist/views/payment-page/partials/stripe/stripe.types.d.ts +72 -0
- package/dist/views/payment-page/partials/stripe/stripe.types.js +4 -0
- package/dist/views/payment-page/partials/stripe/stripe.utils.d.ts +85 -0
- package/dist/views/payment-page/partials/stripe/stripe.utils.js +228 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.component.d.ts +22 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.component.js +65 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.d.ts +8 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.js +6 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.styles.d.ts +2 -0
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.styles.js +12 -0
- package/dist/views/payment-page/payment-page.component.d.ts +237 -0
- package/dist/views/payment-page/payment-page.component.js +1733 -0
- package/dist/views/payment-page/payment-page.constants.d.ts +38 -0
- package/dist/views/payment-page/payment-page.constants.js +45 -0
- package/dist/views/payment-page/payment-page.d.ts +8 -0
- package/dist/views/payment-page/payment-page.fields.d.ts +162 -0
- package/dist/views/payment-page/payment-page.fields.js +164 -0
- package/dist/views/payment-page/payment-page.js +6 -0
- package/dist/views/payment-page/payment-page.styles.d.ts +2 -0
- package/dist/views/payment-page/payment-page.styles.js +392 -0
- package/dist/views/payment-page/payment-page.types.d.ts +98 -0
- package/dist/views/payment-page/payment-page.types.js +1 -0
- package/dist/views/payment-page/payment-page.utils.d.ts +239 -0
- package/dist/views/payment-page/payment-page.utils.js +906 -0
- package/dist/views/payment-page/payment-page.validation-schema.d.ts +28 -0
- package/dist/views/payment-page/payment-page.validation-schema.js +42 -0
- package/dist/views/payment-page/payment-page.validators.d.ts +56 -0
- package/dist/views/payment-page/payment-page.validators.js +147 -0
- package/dist/views/payment-page/services/payment-api.service.d.ts +104 -0
- package/dist/views/payment-page/services/payment-api.service.js +99 -0
- package/dist/views/search-page/search-page.component.d.ts +61 -0
- package/dist/views/search-page/search-page.component.js +358 -0
- package/dist/views/search-page/search-page.d.ts +8 -0
- package/dist/views/search-page/search-page.js +6 -0
- package/dist/views/search-page/search-page.styles.d.ts +2 -0
- package/dist/views/search-page/search-page.styles.js +81 -0
- package/dist/views/suggestion-widget/suggestion-widget.component.d.ts +33 -0
- package/dist/views/suggestion-widget/suggestion-widget.component.js +111 -0
- package/dist/views/suggestion-widget/suggestion-widget.d.ts +8 -0
- package/dist/views/suggestion-widget/suggestion-widget.js +6 -0
- package/dist/views/suggestion-widget/suggestion-widget.styles.d.ts +2 -0
- package/dist/views/suggestion-widget/suggestion-widget.styles.js +41 -0
- package/package.json +158 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { FIELDS } from "@coras-io/brand-tokens";
|
|
2
|
+
import { validateBrandConfig } from "@coras-io/brand-tokens/validate";
|
|
3
|
+
import { supportedCurrencies } from "../core/currency/constants.js";
|
|
4
|
+
import { allLocales } from "../core/i18n/locale-codes.js";
|
|
5
|
+
/**
|
|
6
|
+
* A typed, redacted validation error thrown for invalid host input before any
|
|
7
|
+
* element is rendered or updated. Messages are safe to surface to the host.
|
|
8
|
+
*/
|
|
9
|
+
export class CorasValidationError extends Error {
|
|
10
|
+
constructor(code, message, field) {
|
|
11
|
+
super(message);
|
|
12
|
+
this.name = "CorasValidationError";
|
|
13
|
+
this.code = code;
|
|
14
|
+
this.field = field;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export const PUBLIC_PAGES = [
|
|
18
|
+
"landing",
|
|
19
|
+
"search",
|
|
20
|
+
"details",
|
|
21
|
+
"payment",
|
|
22
|
+
"help",
|
|
23
|
+
"suggestion-widget",
|
|
24
|
+
];
|
|
25
|
+
/**
|
|
26
|
+
* Reject a page name outside the public set with a typed error. Shared by mount,
|
|
27
|
+
* update, navigate and prefetch so every entry point fails the same way — and
|
|
28
|
+
* before any state is mutated — instead of indexing the registry with an unknown
|
|
29
|
+
* page and throwing a bare TypeError.
|
|
30
|
+
*/
|
|
31
|
+
export function assertValidPage(page) {
|
|
32
|
+
if (!PUBLIC_PAGES.includes(page)) {
|
|
33
|
+
throw new CorasValidationError("invalid_page", `Unknown page "${String(page)}". Valid pages: ${PUBLIC_PAGES.join(", ")}.`, "page");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/** Allowed param keys per page (public names). */
|
|
37
|
+
export const PAGE_PARAM_KEYS = {
|
|
38
|
+
landing: [
|
|
39
|
+
"country",
|
|
40
|
+
"city",
|
|
41
|
+
"startDate",
|
|
42
|
+
"endDate",
|
|
43
|
+
"sort",
|
|
44
|
+
"duration",
|
|
45
|
+
"price",
|
|
46
|
+
"categories",
|
|
47
|
+
],
|
|
48
|
+
search: ["search", "startDate"],
|
|
49
|
+
details: ["id", "date"],
|
|
50
|
+
payment: ["metadata"],
|
|
51
|
+
help: ["content"],
|
|
52
|
+
"suggestion-widget": ["limit", "showExploreCard", "country", "city"],
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* URL params whose string form decodes to a non-string type. Everything not
|
|
56
|
+
* listed stays a string. Used by the URL helpers so a value round-trips through
|
|
57
|
+
* a URL as the type `mount()` validation expects (e.g. `limit=3` -> `3`, not
|
|
58
|
+
* `"3"`; `showExploreCard=false` -> `false`, not a truthy `"false"`).
|
|
59
|
+
*/
|
|
60
|
+
export const PAGE_PARAM_TYPES = {
|
|
61
|
+
limit: "number",
|
|
62
|
+
showExploreCard: "boolean",
|
|
63
|
+
};
|
|
64
|
+
const CONFIG_KEYS = [
|
|
65
|
+
"apiUrl",
|
|
66
|
+
"distributorId",
|
|
67
|
+
"assetsUrl",
|
|
68
|
+
"locale",
|
|
69
|
+
"allowedLocales",
|
|
70
|
+
"currency",
|
|
71
|
+
"allowedCurrencies",
|
|
72
|
+
"loyaltyPointsEnabled",
|
|
73
|
+
"theme",
|
|
74
|
+
"colorScheme",
|
|
75
|
+
];
|
|
76
|
+
const localeSet = new Set(allLocales);
|
|
77
|
+
const currencySet = new Set(supportedCurrencies);
|
|
78
|
+
const colorSchemes = new Set([
|
|
79
|
+
"light",
|
|
80
|
+
"dark",
|
|
81
|
+
"system",
|
|
82
|
+
"inherit",
|
|
83
|
+
]);
|
|
84
|
+
/** Normalize locale casing/separators (e.g. `en_ie`, `EN-IE` -> `en-IE`). */
|
|
85
|
+
export function normalizeLocale(value) {
|
|
86
|
+
const parts = value.trim().replace(/_/g, "-").split("-");
|
|
87
|
+
if (parts.length === 0 || !parts[0])
|
|
88
|
+
return undefined;
|
|
89
|
+
const language = parts[0].toLowerCase();
|
|
90
|
+
const region = parts[1]?.toUpperCase();
|
|
91
|
+
const canonical = region ? `${language}-${region}` : language;
|
|
92
|
+
return localeSet.has(canonical) ? canonical : undefined;
|
|
93
|
+
}
|
|
94
|
+
/** Normalize currency casing (e.g. `eur` -> `EUR`). */
|
|
95
|
+
export function normalizeCurrency(value) {
|
|
96
|
+
const canonical = value.trim().toUpperCase();
|
|
97
|
+
return currencySet.has(canonical)
|
|
98
|
+
? canonical
|
|
99
|
+
: undefined;
|
|
100
|
+
}
|
|
101
|
+
function isLocalHost(hostname) {
|
|
102
|
+
return (hostname === "localhost" ||
|
|
103
|
+
hostname === "127.0.0.1" ||
|
|
104
|
+
hostname === "[::1]" ||
|
|
105
|
+
hostname.endsWith(".localhost"));
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Require an https URL (http allowed only for localhost dev). Returns the
|
|
109
|
+
* parsed origin-safe href, or throws.
|
|
110
|
+
*/
|
|
111
|
+
export function assertSecureUrl(value, field) {
|
|
112
|
+
let url;
|
|
113
|
+
try {
|
|
114
|
+
url = new URL(value);
|
|
115
|
+
}
|
|
116
|
+
catch {
|
|
117
|
+
throw new CorasValidationError("invalid_url", `${field} must be an absolute URL.`, field);
|
|
118
|
+
}
|
|
119
|
+
if (url.protocol === "https:")
|
|
120
|
+
return url.href;
|
|
121
|
+
if (url.protocol === "http:" && isLocalHost(url.hostname))
|
|
122
|
+
return url.href;
|
|
123
|
+
throw new CorasValidationError("invalid_url", `${field} must use https (http is only allowed for localhost).`, field);
|
|
124
|
+
}
|
|
125
|
+
// Strict hostname: alnum labels separated by dots, optional :port.
|
|
126
|
+
// Rejects protocol-relative inputs, paths, and free-form strings.
|
|
127
|
+
const BARE_HOSTNAME_RE = /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)*(?::\d{1,5})?$/i;
|
|
128
|
+
/**
|
|
129
|
+
* Asset URL must be one of:
|
|
130
|
+
* - an https URL (http allowed only for localhost),
|
|
131
|
+
* - a bare hostname like `images.coras.io[:port]`,
|
|
132
|
+
* - a root-relative path like `/assets`.
|
|
133
|
+
* Rejected: protocol-relative URLs (`//host/x`), `javascript:` / `data:` URIs,
|
|
134
|
+
* traversal-style paths. `assetsUrl` is interpolated straight into image and
|
|
135
|
+
* SVG hrefs (see icon.component.ts), so a permissive validator is a foot-gun.
|
|
136
|
+
*/
|
|
137
|
+
function validateAssetsUrl(value) {
|
|
138
|
+
if (value === "") {
|
|
139
|
+
throw new CorasValidationError("invalid_url", "config.assetsUrl must not be empty.", "config.assetsUrl");
|
|
140
|
+
}
|
|
141
|
+
if (value.startsWith("/")) {
|
|
142
|
+
if (value.startsWith("//")) {
|
|
143
|
+
throw new CorasValidationError("invalid_url", "config.assetsUrl must not be protocol-relative.", "config.assetsUrl");
|
|
144
|
+
}
|
|
145
|
+
// Decode first so `%2e%2e` can't smuggle traversal past the raw check; a
|
|
146
|
+
// malformed escape (decodeURIComponent throws) is itself rejected.
|
|
147
|
+
let decoded;
|
|
148
|
+
try {
|
|
149
|
+
decoded = decodeURIComponent(value);
|
|
150
|
+
}
|
|
151
|
+
catch {
|
|
152
|
+
throw new CorasValidationError("invalid_url", "config.assetsUrl must be a valid encoded path.", "config.assetsUrl");
|
|
153
|
+
}
|
|
154
|
+
if (value.includes("..") || decoded.includes("..")) {
|
|
155
|
+
throw new CorasValidationError("invalid_url", "config.assetsUrl must not contain `..`.", "config.assetsUrl");
|
|
156
|
+
}
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
if (value.includes("://")) {
|
|
160
|
+
assertSecureUrl(value, "config.assetsUrl");
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
if (!BARE_HOSTNAME_RE.test(value)) {
|
|
164
|
+
throw new CorasValidationError("invalid_url", "config.assetsUrl must be an https URL, a bare hostname, or a root-relative path.", "config.assetsUrl");
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
// Field keys plus the BrandConfig meta keys validateBrandConfig understands.
|
|
168
|
+
// Used only to surface unknown keys in strict mode (the schema itself strips
|
|
169
|
+
// them silently, which a strict host wants flagged, not swallowed).
|
|
170
|
+
const THEME_KEYS = [
|
|
171
|
+
...FIELDS.map((field) => field.key),
|
|
172
|
+
"logo",
|
|
173
|
+
"fontFaces",
|
|
174
|
+
"dark",
|
|
175
|
+
"schemaVersion",
|
|
176
|
+
];
|
|
177
|
+
/**
|
|
178
|
+
* Validate `config.theme` (and its `dark` overrides) against the shared
|
|
179
|
+
* BrandConfig contract. Reuses brand-tokens' validator for per-field checks
|
|
180
|
+
* (colour/length/font/shadow, logo, fontFaces) and reports each failure with
|
|
181
|
+
* the same error pattern as the rest of validateConfig. In strict mode, unknown
|
|
182
|
+
* theme keys are rejected; otherwise they are ignored (the renderer strips them).
|
|
183
|
+
*/
|
|
184
|
+
function validateTheme(theme, strict) {
|
|
185
|
+
if (typeof theme !== "object" || Array.isArray(theme)) {
|
|
186
|
+
throw new CorasValidationError("invalid_theme", "config.theme must be an object.", "config.theme");
|
|
187
|
+
}
|
|
188
|
+
if (strict) {
|
|
189
|
+
rejectUnknownKeys(theme, THEME_KEYS, "config.theme");
|
|
190
|
+
if (theme.dark != null) {
|
|
191
|
+
rejectUnknownKeys(theme.dark, THEME_KEYS, "config.theme.dark");
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
const errors = validateBrandConfig(theme);
|
|
195
|
+
for (const [key, message] of Object.entries(errors)) {
|
|
196
|
+
if (message) {
|
|
197
|
+
throw new CorasValidationError("invalid_theme", `config.theme.${key}: ${message}`, `config.theme.${key}`);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function rejectUnknownKeys(object, allowed, context) {
|
|
202
|
+
for (const key of Object.keys(object)) {
|
|
203
|
+
if (!allowed.includes(key)) {
|
|
204
|
+
throw new CorasValidationError("unknown_key", `Unknown ${context} key "${key}".`, `${context}.${key}`);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
export function validateConfig(config, strict) {
|
|
209
|
+
if (config == null || typeof config !== "object") {
|
|
210
|
+
throw new CorasValidationError("invalid_config", "config is required and must be an object.", "config");
|
|
211
|
+
}
|
|
212
|
+
if (strict) {
|
|
213
|
+
rejectUnknownKeys(config, CONFIG_KEYS, "config");
|
|
214
|
+
}
|
|
215
|
+
if (typeof config.apiUrl !== "string" || config.apiUrl.length === 0) {
|
|
216
|
+
throw new CorasValidationError("invalid_config", "config.apiUrl is required.", "config.apiUrl");
|
|
217
|
+
}
|
|
218
|
+
assertSecureUrl(config.apiUrl, "config.apiUrl");
|
|
219
|
+
if (typeof config.distributorId !== "string" ||
|
|
220
|
+
config.distributorId.length === 0) {
|
|
221
|
+
throw new CorasValidationError("invalid_config", "config.distributorId is required.", "config.distributorId");
|
|
222
|
+
}
|
|
223
|
+
const normalized = { ...config };
|
|
224
|
+
if (config.assetsUrl != null) {
|
|
225
|
+
validateAssetsUrl(config.assetsUrl);
|
|
226
|
+
}
|
|
227
|
+
if (config.theme != null) {
|
|
228
|
+
validateTheme(config.theme, strict);
|
|
229
|
+
}
|
|
230
|
+
if (config.locale != null) {
|
|
231
|
+
const locale = normalizeLocale(config.locale);
|
|
232
|
+
if (!locale) {
|
|
233
|
+
throw new CorasValidationError("invalid_locale", `Unsupported locale "${config.locale}".`, "config.locale");
|
|
234
|
+
}
|
|
235
|
+
normalized.locale = locale;
|
|
236
|
+
}
|
|
237
|
+
if (config.currency != null) {
|
|
238
|
+
const currency = normalizeCurrency(config.currency);
|
|
239
|
+
if (!currency) {
|
|
240
|
+
throw new CorasValidationError("invalid_currency", `Unsupported currency "${config.currency}".`, "config.currency");
|
|
241
|
+
}
|
|
242
|
+
normalized.currency = currency;
|
|
243
|
+
}
|
|
244
|
+
if (config.colorScheme != null &&
|
|
245
|
+
!colorSchemes.has(config.colorScheme)) {
|
|
246
|
+
throw new CorasValidationError("invalid_color_scheme", `Unsupported colorScheme "${config.colorScheme}". Valid values: light, dark, system, inherit.`, "config.colorScheme");
|
|
247
|
+
}
|
|
248
|
+
if (config.allowedLocales != null) {
|
|
249
|
+
normalized.allowedLocales = config.allowedLocales.map((value) => {
|
|
250
|
+
const locale = normalizeLocale(value);
|
|
251
|
+
if (!locale) {
|
|
252
|
+
throw new CorasValidationError("invalid_locale", `Unsupported locale "${value}" in config.allowedLocales.`, "config.allowedLocales");
|
|
253
|
+
}
|
|
254
|
+
return locale;
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
if (config.allowedCurrencies != null) {
|
|
258
|
+
normalized.allowedCurrencies = config.allowedCurrencies.map((value) => {
|
|
259
|
+
const currency = normalizeCurrency(value);
|
|
260
|
+
if (!currency) {
|
|
261
|
+
throw new CorasValidationError("invalid_currency", `Unsupported currency "${value}" in config.allowedCurrencies.`, "config.allowedCurrencies");
|
|
262
|
+
}
|
|
263
|
+
return currency;
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
return normalized;
|
|
267
|
+
}
|
|
268
|
+
export function validatePageParams(page, params, strict) {
|
|
269
|
+
if (params == null)
|
|
270
|
+
return {};
|
|
271
|
+
if (typeof params !== "object") {
|
|
272
|
+
throw new CorasValidationError("invalid_page_params", `params for page "${page}" must be an object.`, "params");
|
|
273
|
+
}
|
|
274
|
+
const allowed = PAGE_PARAM_KEYS[page];
|
|
275
|
+
if (strict) {
|
|
276
|
+
rejectUnknownKeys(params, allowed, "params");
|
|
277
|
+
}
|
|
278
|
+
// `details.id` is the public id and must be a non-empty string when present.
|
|
279
|
+
if (page === "details" && "id" in params) {
|
|
280
|
+
const id = params.id;
|
|
281
|
+
if (id != null && (typeof id !== "string" || id.length === 0)) {
|
|
282
|
+
throw new CorasValidationError("invalid_page_params", "params.id must be a non-empty string.", "params.id");
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
// `payment.metadata` is a free-form bag of client data; its keys are
|
|
286
|
+
// arbitrary, but every value must be a string so it can be serialized for
|
|
287
|
+
// the API forward.
|
|
288
|
+
if (page === "payment" && "metadata" in params) {
|
|
289
|
+
const metadata = params.metadata;
|
|
290
|
+
if (metadata != null) {
|
|
291
|
+
const isPlainObject = typeof metadata === "object" && !Array.isArray(metadata);
|
|
292
|
+
if (!isPlainObject ||
|
|
293
|
+
!Object.values(metadata).every((value) => typeof value === "string")) {
|
|
294
|
+
throw new CorasValidationError("invalid_page_params", "params.metadata must be an object of string values.", "params.metadata");
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
if (page === "suggestion-widget" && "limit" in params) {
|
|
299
|
+
const limit = params.limit;
|
|
300
|
+
if (limit != null && (typeof limit !== "number" || limit <= 0)) {
|
|
301
|
+
throw new CorasValidationError("invalid_page_params", "params.limit must be a positive number.", "params.limit");
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return params;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Validate and normalize the full mount options before anything is rendered.
|
|
308
|
+
*/
|
|
309
|
+
export function validateMountOptions(options) {
|
|
310
|
+
if (!(options.container instanceof Element)) {
|
|
311
|
+
throw new CorasValidationError("missing_container", "container must be a DOM Element.", "container");
|
|
312
|
+
}
|
|
313
|
+
assertValidPage(options.page);
|
|
314
|
+
const strict = options.strict === true;
|
|
315
|
+
const config = validateConfig(options.config, strict);
|
|
316
|
+
const params = validatePageParams(options.page, options.params, strict);
|
|
317
|
+
return { page: options.page, config, params };
|
|
318
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ContrastPair } from "./contrast.js";
|
|
2
|
+
/**
|
|
3
|
+
* Default-theme contrast pairs validated in CI (plan F-004, P-058; pairs from
|
|
4
|
+
* Appendix J). `tokens` lists the CSS variables each colour resolves from so a
|
|
5
|
+
* stale check can confirm they still exist in the generated token sheet.
|
|
6
|
+
*/
|
|
7
|
+
export type DefaultContrastPair = ContrastPair & {
|
|
8
|
+
tokens: [string, string];
|
|
9
|
+
};
|
|
10
|
+
export declare const DEFAULT_CONTRAST_PAIRS: DefaultContrastPair[];
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export const DEFAULT_CONTRAST_PAIRS = [
|
|
2
|
+
{
|
|
3
|
+
label: "Primary button text on primary button background",
|
|
4
|
+
foreground: "#ffffff",
|
|
5
|
+
background: "#4657d4",
|
|
6
|
+
threshold: "AA-normal",
|
|
7
|
+
tokens: [
|
|
8
|
+
"--coras-button-primary-text-color",
|
|
9
|
+
"--coras-button-primary-background",
|
|
10
|
+
],
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
label: "Body text on page background",
|
|
14
|
+
foreground: "#000000",
|
|
15
|
+
background: "#ffffff",
|
|
16
|
+
threshold: "AA-normal",
|
|
17
|
+
tokens: ["--coras-color-text", "--coras-color-background"],
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: "Secondary text on page background",
|
|
21
|
+
foreground: "#666666",
|
|
22
|
+
background: "#ffffff",
|
|
23
|
+
threshold: "AA-normal",
|
|
24
|
+
tokens: ["--coras-color-text-secondary", "--coras-color-background"],
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: "Heading/secondary brand text on background",
|
|
28
|
+
foreground: "#161c44",
|
|
29
|
+
background: "#ffffff",
|
|
30
|
+
threshold: "AA-normal",
|
|
31
|
+
tokens: ["--coras-brand-secondary", "--coras-color-background"],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: "Muted/placeholder text on surface",
|
|
35
|
+
foreground: "#888888",
|
|
36
|
+
background: "#fcfcff",
|
|
37
|
+
threshold: "AA-large",
|
|
38
|
+
tokens: ["--coras-color-text-muted", "--coras-color-surface"],
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: "Error alert text on error alert background",
|
|
42
|
+
foreground: "#c9224a",
|
|
43
|
+
background: "#fae9ed",
|
|
44
|
+
threshold: "AA-normal",
|
|
45
|
+
tokens: ["--coras-color-error", "--coras-color-error-surface"],
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: "Focus ring on background",
|
|
49
|
+
foreground: "#4657d4",
|
|
50
|
+
background: "#ffffff",
|
|
51
|
+
threshold: "AA-large",
|
|
52
|
+
tokens: ["--coras-color-focus-ring", "--coras-color-background"],
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: "Navbar text on navbar background",
|
|
56
|
+
foreground: "#000000",
|
|
57
|
+
background: "#ffffff",
|
|
58
|
+
threshold: "AA-normal",
|
|
59
|
+
tokens: ["--coras-navbar-text-color", "--coras-navbar-background"],
|
|
60
|
+
},
|
|
61
|
+
];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type WcagThreshold = "AA-normal" | "AA-large" | "AAA-normal";
|
|
2
|
+
/** Parse `#rgb` / `#rrggbb` into `[r, g, b]` (0–255). */
|
|
3
|
+
export declare function parseHex(hex: string): [number, number, number];
|
|
4
|
+
/** Relative luminance per WCAG (`0.2126R + 0.7152G + 0.0722B`, linearized). */
|
|
5
|
+
export declare function relativeLuminance(color: string): number;
|
|
6
|
+
/** Contrast ratio (1–21) between two colours. Order-independent. */
|
|
7
|
+
export declare function contrastRatio(a: string, b: string): number;
|
|
8
|
+
export declare function meetsContrast(foreground: string, background: string, threshold?: WcagThreshold): boolean;
|
|
9
|
+
export type ContrastPair = {
|
|
10
|
+
label: string;
|
|
11
|
+
foreground: string;
|
|
12
|
+
background: string;
|
|
13
|
+
threshold: WcagThreshold;
|
|
14
|
+
};
|
|
15
|
+
export type ContrastResult = ContrastPair & {
|
|
16
|
+
ratio: number;
|
|
17
|
+
passes: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare function evaluateContrast(pairs: ContrastPair[]): ContrastResult[];
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// WCAG contrast utilities (plan F-004, P-058). Pure functions reused by the
|
|
2
|
+
// default-theme CI check and Coras Studio's live contrast panel (exposed via
|
|
3
|
+
// the `@coras-io/embed/contrast` entry).
|
|
4
|
+
const MIN_RATIO = {
|
|
5
|
+
// AA normal text and AA UI/large both per WCAG 1.4.3 / 1.4.11.
|
|
6
|
+
"AA-normal": 4.5,
|
|
7
|
+
"AA-large": 3,
|
|
8
|
+
"AAA-normal": 7,
|
|
9
|
+
};
|
|
10
|
+
function channelToLinear(channel) {
|
|
11
|
+
const c = channel / 255;
|
|
12
|
+
return c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;
|
|
13
|
+
}
|
|
14
|
+
/** Parse `#rgb` / `#rrggbb` into `[r, g, b]` (0–255). */
|
|
15
|
+
export function parseHex(hex) {
|
|
16
|
+
const value = hex.trim().replace(/^#/, "");
|
|
17
|
+
const full = value.length === 3
|
|
18
|
+
? value
|
|
19
|
+
.split("")
|
|
20
|
+
.map((c) => c + c)
|
|
21
|
+
.join("")
|
|
22
|
+
: value;
|
|
23
|
+
if (!/^[0-9a-fA-F]{6}$/.test(full)) {
|
|
24
|
+
throw new Error(`Cannot parse colour "${hex}"`);
|
|
25
|
+
}
|
|
26
|
+
return [
|
|
27
|
+
parseInt(full.slice(0, 2), 16),
|
|
28
|
+
parseInt(full.slice(2, 4), 16),
|
|
29
|
+
parseInt(full.slice(4, 6), 16),
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
// A lazily-created 1x1 canvas context, used to rasterize any CSS colour
|
|
33
|
+
// (`oklch()`, `rgb()`, `hsl()`, named) to sRGB bytes. `null` when there is no
|
|
34
|
+
// DOM (the Node CI check only ever feeds hex, so it never needs this).
|
|
35
|
+
let colorContext;
|
|
36
|
+
function canvasContext() {
|
|
37
|
+
if (colorContext !== undefined)
|
|
38
|
+
return colorContext;
|
|
39
|
+
const doc = globalThis.document;
|
|
40
|
+
const canvas = doc?.createElement("canvas");
|
|
41
|
+
const ctx = canvas?.getContext("2d", { willReadFrequently: true }) ?? null;
|
|
42
|
+
if (canvas)
|
|
43
|
+
canvas.width = canvas.height = 1;
|
|
44
|
+
colorContext = ctx;
|
|
45
|
+
return ctx;
|
|
46
|
+
}
|
|
47
|
+
/** Rasterize any valid CSS colour to sRGB `[r, g, b]`; null if unsupported. */
|
|
48
|
+
function rasterize(color) {
|
|
49
|
+
const ctx = canvasContext();
|
|
50
|
+
if (!ctx)
|
|
51
|
+
return null;
|
|
52
|
+
// An invalid value leaves `fillStyle` unchanged, so probe from two bases:
|
|
53
|
+
// if the result differs, the colour was rejected (e.g. an unresolved `var()`).
|
|
54
|
+
ctx.fillStyle = "#000000";
|
|
55
|
+
ctx.fillStyle = color;
|
|
56
|
+
const fromBlack = ctx.fillStyle;
|
|
57
|
+
ctx.fillStyle = "#ffffff";
|
|
58
|
+
ctx.fillStyle = color;
|
|
59
|
+
if (ctx.fillStyle !== fromBlack)
|
|
60
|
+
return null;
|
|
61
|
+
ctx.clearRect(0, 0, 1, 1);
|
|
62
|
+
ctx.fillRect(0, 0, 1, 1);
|
|
63
|
+
const data = ctx.getImageData(0, 0, 1, 1).data;
|
|
64
|
+
return [data[0], data[1], data[2]];
|
|
65
|
+
}
|
|
66
|
+
/** Parse a colour to sRGB `[r, g, b]`: hex directly, else via the canvas. */
|
|
67
|
+
function toRgb(color) {
|
|
68
|
+
try {
|
|
69
|
+
return parseHex(color);
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
72
|
+
const rgb = rasterize(color);
|
|
73
|
+
if (!rgb)
|
|
74
|
+
throw new Error(`Cannot parse colour "${color}"`);
|
|
75
|
+
return rgb;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
/** Relative luminance per WCAG (`0.2126R + 0.7152G + 0.0722B`, linearized). */
|
|
79
|
+
export function relativeLuminance(color) {
|
|
80
|
+
const [r, g, b] = toRgb(color);
|
|
81
|
+
return (0.2126 * channelToLinear(r) +
|
|
82
|
+
0.7152 * channelToLinear(g) +
|
|
83
|
+
0.0722 * channelToLinear(b));
|
|
84
|
+
}
|
|
85
|
+
/** Contrast ratio (1–21) between two colours. Order-independent. */
|
|
86
|
+
export function contrastRatio(a, b) {
|
|
87
|
+
const la = relativeLuminance(a);
|
|
88
|
+
const lb = relativeLuminance(b);
|
|
89
|
+
const [hi, lo] = la >= lb ? [la, lb] : [lb, la];
|
|
90
|
+
return (hi + 0.05) / (lo + 0.05);
|
|
91
|
+
}
|
|
92
|
+
export function meetsContrast(foreground, background, threshold = "AA-normal") {
|
|
93
|
+
return contrastRatio(foreground, background) >= MIN_RATIO[threshold];
|
|
94
|
+
}
|
|
95
|
+
export function evaluateContrast(pairs) {
|
|
96
|
+
return pairs.map((pair) => {
|
|
97
|
+
const ratio = contrastRatio(pair.foreground, pair.background);
|
|
98
|
+
return { ...pair, ratio, passes: ratio >= MIN_RATIO[pair.threshold] };
|
|
99
|
+
});
|
|
100
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
import { focusRing } from "../primitives.js";
|
|
3
|
+
export default css `
|
|
4
|
+
${focusRing}
|
|
5
|
+
|
|
6
|
+
:host {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
font-family: var(--coras-font-family-sans);
|
|
9
|
+
font-size: var(--coras-font-size-base);
|
|
10
|
+
line-height: 1.5;
|
|
11
|
+
color: var(--coras-color-text);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host *,
|
|
15
|
+
:host *::before,
|
|
16
|
+
:host *::after {
|
|
17
|
+
box-sizing: inherit;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[hidden] {
|
|
21
|
+
display: none !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host a,
|
|
25
|
+
:host a:hover,
|
|
26
|
+
:host a:active {
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
color: var(--coras-color-primary-500);
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared CSS primitives (plan F-004, P-063). Components compose these instead
|
|
3
|
+
* of re-authoring focus rings, screen-reader helpers, or skeleton shimmer, so
|
|
4
|
+
* accessibility and branding stay consistent. All values resolve from the
|
|
5
|
+
* semantic token tier.
|
|
6
|
+
*/
|
|
7
|
+
/** Visible focus ring using the brand focus token. */
|
|
8
|
+
export declare const focusRing: import("lit").CSSResult;
|
|
9
|
+
/** Accessible "visually hidden" helper that remains in the accessibility tree. */
|
|
10
|
+
export declare const visuallyHidden: import("lit").CSSResult;
|
|
11
|
+
/** Loading skeleton shimmer; respects reduced-motion. */
|
|
12
|
+
export declare const skeleton: import("lit").CSSResult;
|
|
13
|
+
/** Reset for native controls used as branded buttons/fields. */
|
|
14
|
+
export declare const controlReset: import("lit").CSSResult;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
/**
|
|
3
|
+
* Shared CSS primitives (plan F-004, P-063). Components compose these instead
|
|
4
|
+
* of re-authoring focus rings, screen-reader helpers, or skeleton shimmer, so
|
|
5
|
+
* accessibility and branding stay consistent. All values resolve from the
|
|
6
|
+
* semantic token tier.
|
|
7
|
+
*/
|
|
8
|
+
/** Visible focus ring using the brand focus token. */
|
|
9
|
+
export const focusRing = css `
|
|
10
|
+
:where(:focus-visible) {
|
|
11
|
+
outline: 2px solid var(--coras-color-focus-ring);
|
|
12
|
+
outline-offset: 2px;
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
/** Accessible "visually hidden" helper that remains in the accessibility tree. */
|
|
16
|
+
export const visuallyHidden = css `
|
|
17
|
+
.coras-sr-only {
|
|
18
|
+
position: absolute;
|
|
19
|
+
width: 1px;
|
|
20
|
+
height: 1px;
|
|
21
|
+
padding: 0;
|
|
22
|
+
margin: -1px;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
clip: rect(0, 0, 0, 0);
|
|
25
|
+
white-space: nowrap;
|
|
26
|
+
border: 0;
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
/** Loading skeleton shimmer; respects reduced-motion. */
|
|
30
|
+
export const skeleton = css `
|
|
31
|
+
.coras-skeleton {
|
|
32
|
+
background: linear-gradient(
|
|
33
|
+
90deg,
|
|
34
|
+
var(--coras-color-surface-sunken) 25%,
|
|
35
|
+
var(--coras-palette-neutral-100) 37%,
|
|
36
|
+
var(--coras-color-surface-sunken) 63%
|
|
37
|
+
);
|
|
38
|
+
background-size: 400% 100%;
|
|
39
|
+
border-radius: var(--coras-radius-sm);
|
|
40
|
+
animation: coras-skeleton-shimmer 1.4s ease infinite;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@keyframes coras-skeleton-shimmer {
|
|
44
|
+
0% {
|
|
45
|
+
background-position: 100% 50%;
|
|
46
|
+
}
|
|
47
|
+
100% {
|
|
48
|
+
background-position: 0 50%;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (prefers-reduced-motion: reduce) {
|
|
53
|
+
.coras-skeleton {
|
|
54
|
+
animation: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
/** Reset for native controls used as branded buttons/fields. */
|
|
59
|
+
export const controlReset = css `
|
|
60
|
+
.coras-control-reset {
|
|
61
|
+
appearance: none;
|
|
62
|
+
margin: 0;
|
|
63
|
+
font: inherit;
|
|
64
|
+
color: inherit;
|
|
65
|
+
background: none;
|
|
66
|
+
border: none;
|
|
67
|
+
}
|
|
68
|
+
`;
|