@coras-io/embed 0.1.0 → 0.1.2
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 +60 -1
- package/README.md +1 -1
- package/dist/components/accordion/accordion-item/accordion-item.component.d.ts +1 -1
- package/dist/components/accordion/accordion.component.d.ts +1 -1
- package/dist/components/alert/alert.component.d.ts +2 -2
- package/dist/components/attraction-card/base/attraction-card.mixin.d.ts +3 -3
- package/dist/components/attraction-card/base/attraction-card.mixin.js +1 -1
- package/dist/components/attraction-card/base/attraction-card.types.d.ts +2 -2
- package/dist/components/attraction-card/long/attraction-long-card.component.d.ts +1 -1
- package/dist/components/attraction-card/long/attraction-long-card.component.js +1 -1
- package/dist/components/attraction-card/short/attraction-short-card.component.d.ts +1 -1
- package/dist/components/attraction-card/short/attraction-short-card.component.js +1 -1
- package/dist/components/attraction-discovery/attraction-discovery-image/attraction-discovery-image.component.d.ts +1 -1
- package/dist/components/attraction-discovery/attraction-discovery.component.d.ts +1 -1
- package/dist/components/attraction-header/attraction-header.component.d.ts +3 -3
- package/dist/components/attraction-header/attraction-header.utils.d.ts +3 -3
- package/dist/components/attraction-option/attraction-option.component.d.ts +1 -1
- package/dist/components/basket/basket.component.d.ts +2 -2
- package/dist/components/basket-empty/basket-empty.component.d.ts +1 -1
- package/dist/components/basket-item/basket-item.component.d.ts +1 -1
- package/dist/components/basket-item-ticket/basket-item-ticket.component.d.ts +1 -1
- package/dist/components/basket-mobile/basket-mobile.component.d.ts +1 -1
- package/dist/components/basket-rewards/basket-rewards.component.d.ts +1 -1
- package/dist/components/better-carousel/better-carousel-item/better-carousel-item.component.d.ts +1 -1
- package/dist/components/better-carousel/better-carousel.component.d.ts +1 -1
- package/dist/components/bottom-drawer/bottom-drawer.component.d.ts +1 -1
- package/dist/components/bottom-drawer/bottom-drawer.component.js +1 -1
- package/dist/components/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.component.d.ts +1 -1
- package/dist/components/button/button.component.d.ts +2 -2
- package/dist/components/calendar/base/calendar.mixin.d.ts +2 -2
- package/dist/components/calendar/base/calendar.types.d.ts +2 -2
- package/dist/components/calendar/dual/dual.component.d.ts +1 -1
- package/dist/components/calendar/month/month.component.d.ts +1 -1
- package/dist/components/calendar/month/month.component.js +1 -1
- package/dist/components/calendar/multi/multi.component.d.ts +1 -1
- package/dist/components/carousel/carousel-item/carousel-item.component.d.ts +1 -1
- package/dist/components/carousel/carousel-item/carousel-item.component.js +1 -1
- package/dist/components/carousel/carousel.component.d.ts +1 -1
- package/dist/components/carousel/carousel.component.js +2 -2
- package/dist/components/carousel/carousel.styles.js +10 -0
- package/dist/components/categories-tree/categories-tree.component.d.ts +2 -2
- package/dist/components/category-tag/category-tag.component.d.ts +2 -2
- package/dist/components/category-tag/category-tag.types.d.ts +1 -1
- package/dist/components/checkbox/checkbox.component.d.ts +1 -1
- package/dist/components/checkbox-group/checkbox-group.component.d.ts +1 -1
- package/dist/components/checkbox-group/checkbox-group.types.d.ts +1 -1
- package/dist/components/chip/chip.component.d.ts +2 -2
- package/dist/components/collect-fida/collect-fida.component.d.ts +1 -1
- package/dist/components/crypto-auth-modal/crypto-auth-modal.component.d.ts +2 -2
- package/dist/components/crypto-auth-modal/crypto-auth-modal.component.js +2 -2
- package/dist/components/currencies-list/currencies-list.component.d.ts +2 -2
- package/dist/components/currencies-list/currencies-list.component.js +1 -1
- package/dist/components/dialog/dialog.component.d.ts +2 -2
- package/dist/components/drawer/drawer.component.d.ts +1 -1
- package/dist/components/drawer/drawer.component.js +1 -1
- package/dist/components/dropdown/dropdown.component.d.ts +1 -1
- package/dist/components/dropdown/dropdown.component.js +1 -1
- package/dist/components/expiration-timer/expiration-timer.component.d.ts +1 -1
- package/dist/components/explore-card/explore-card.component.d.ts +1 -1
- package/dist/components/explore-card/explore-card.component.js +1 -1
- package/dist/components/explore-card/explore-card.styles.js +23 -0
- package/dist/components/filter-chip/filter-chip.component.d.ts +2 -2
- package/dist/components/filter-chip/filter-chip.component.js +1 -1
- package/dist/components/filters-drawer/filters-drawer.component.d.ts +1 -1
- package/dist/components/flag-icon/flag-icon.component.d.ts +2 -2
- package/dist/components/footer-menu/footer-menu-item/footer-menu-item.component.d.ts +1 -1
- package/dist/components/footer-menu/footer-menu.component.d.ts +1 -1
- package/dist/components/icon/icon.component.d.ts +2 -2
- package/dist/components/icon/icon.component.js +1 -1
- package/dist/components/icon-list/icon-list-item/icon-list-item.component.d.ts +2 -2
- package/dist/components/icon-list/icon-list.component.d.ts +1 -1
- package/dist/components/image/image.component.d.ts +3 -3
- package/dist/components/image/image.component.js +1 -1
- package/dist/components/image-carousel/image-carousel-item/image-carousel-item.component.d.ts +1 -1
- package/dist/components/image-carousel/image-carousel.component.d.ts +1 -1
- package/dist/components/image-chip/image-chip.component.d.ts +1 -1
- package/dist/components/image-viewer/image-viewer.component.d.ts +1 -1
- package/dist/components/input-field/input-field.component.d.ts +2 -2
- package/dist/components/input-field/input-field.types.d.ts +2 -0
- package/dist/components/input-field/input-field.types.js +1 -0
- package/dist/components/itinerary/itinerary-item/itinerary-item.component.d.ts +1 -1
- package/dist/components/itinerary/itinerary.component.d.ts +1 -1
- package/dist/components/joined-fields/joined-fields.component.d.ts +1 -1
- package/dist/components/joined-fields/joined-fields.component.js +1 -1
- package/dist/components/layout/layout.component.d.ts +1 -1
- package/dist/components/list/list-item/list-item.component.d.ts +2 -2
- package/dist/components/list/list.component.d.ts +1 -1
- package/dist/components/loading-spinner/loading-spinner.component.d.ts +2 -2
- package/dist/components/locales-list/locales-list.component.d.ts +2 -2
- package/dist/components/locales-list/locales-list.component.js +1 -1
- package/dist/components/locales-list/locales-list.constants.d.ts +1 -1
- package/dist/components/location-image/location-image.component.d.ts +2 -2
- package/dist/components/location-image/location-image.component.js +1 -1
- package/dist/components/locations-results/locations-results.component.d.ts +2 -2
- package/dist/components/locations-results/locations-results.component.js +1 -1
- package/dist/components/marketing-tag/marketing-tag.component.d.ts +1 -1
- package/dist/components/message-card/message-card.component.d.ts +2 -2
- package/dist/components/mobile-menu-item/mobile-menu-item.component.d.ts +1 -1
- package/dist/components/option-group/option-chip/option-chip.component.d.ts +1 -1
- package/dist/components/option-group/option-chip/option-chip.component.js +1 -1
- package/dist/components/option-group/option-group.component.d.ts +1 -1
- package/dist/components/order-confirmation/order-confirmation-item/order-confirmation-item.component.d.ts +1 -1
- package/dist/components/order-confirmation/order-confirmation.component.d.ts +1 -1
- package/dist/components/order-confirmation/order-confirmation.component.js +1 -1
- package/dist/components/otp/otp.component.d.ts +1 -1
- package/dist/components/overlay/overlay.component.d.ts +1 -1
- package/dist/components/pay-in/pay-in.component.d.ts +2 -2
- package/dist/components/payment-fiat-method/payment-fiat-method.component.d.ts +3 -2
- package/dist/components/payment-fiat-method/payment-fiat-method.types.d.ts +1 -0
- package/dist/components/payment-fiat-method/payment-fiat-method.types.js +1 -0
- package/dist/components/payment-option/payment-option.component.d.ts +2 -2
- package/dist/components/payment-option/payment-option.component.js +1 -1
- package/dist/components/performance-time/performance-time.component.d.ts +1 -1
- package/dist/components/phone-country-code/phone-country-code.component.d.ts +1 -1
- package/dist/components/phone-country-codes/phone-country-codes.component.d.ts +2 -2
- package/dist/components/phone-field/phone-field.component.d.ts +3 -3
- package/dist/components/phone-field/phone-field.utils.d.ts +1 -1
- package/dist/components/points/points.component.d.ts +1 -1
- package/dist/components/price/price.component.d.ts +2 -2
- package/dist/components/reservation-preview/reservation-preview.component.d.ts +1 -1
- package/dist/components/reservation-preview-item/reservation-preview-item.component.d.ts +1 -1
- package/dist/components/reviews/review/review.component.d.ts +1 -1
- package/dist/components/reviews/reviews.component.d.ts +1 -1
- package/dist/components/search-button/search-button.component.d.ts +1 -1
- package/dist/components/search-results-item/search-results-item.d.ts +3 -3
- package/dist/components/seated-selector/seated-selector.component.d.ts +1 -1
- package/dist/components/seated-selector/seated-selector.component.js +3 -3
- package/dist/components/seats-io/seats-io.component.d.ts +4 -4
- package/dist/components/seats-io/seats-io.component.js +1 -1
- package/dist/components/seats-io/seats-io.transform.d.ts +2 -2
- package/dist/components/select-list/select-list.component.d.ts +1 -1
- package/dist/components/select-list/select-option/select-option.component.d.ts +1 -1
- package/dist/components/selected-tickets-preview/selected-tickets-preview.component.d.ts +1 -1
- package/dist/components/sort-dropdown/sort-dropdown.component.d.ts +1 -1
- package/dist/components/sort-list/sort-list.component.d.ts +1 -1
- package/dist/components/sport-options/sport-option/sport-option.component.d.ts +1 -1
- package/dist/components/sport-options/sport-options.component.d.ts +1 -1
- package/dist/components/star-rating/star-rating.component.d.ts +1 -1
- package/dist/components/star-rating/star-rating.component.js +1 -1
- package/dist/components/tab/tab.component.d.ts +1 -1
- package/dist/components/tab/tab.component.js +1 -1
- package/dist/components/tab-panel/tab-panel.component.d.ts +1 -1
- package/dist/components/tab-panel/tab-panel.component.js +1 -1
- package/dist/components/tabs/tabs.component.d.ts +1 -1
- package/dist/components/tag/tag.component.d.ts +2 -2
- package/dist/components/text-section/text-section.component.d.ts +1 -1
- package/dist/components/time-tag/time-tag.component.d.ts +2 -2
- package/dist/components/tooltip/tooltip.component.d.ts +1 -1
- package/dist/components/tour-ticket-type-selector/tour-ticket-counter-button/tour-ticket-counter-button.component.d.ts +1 -1
- package/dist/components/tour-ticket-type-selector/tour-ticket-type/tour-ticket-type.component.d.ts +1 -1
- package/dist/components/tour-ticket-type-selector/tour-ticket-type-selector.component.d.ts +1 -1
- package/dist/components/transfer-modal/transfer-modal.component.d.ts +1 -1
- package/dist/components/transfer-modal/transfer-modal.component.js +1 -1
- package/dist/containers/footer/footer.component.d.ts +1 -1
- package/dist/containers/navbar/navbar.component.d.ts +6 -6
- package/dist/containers/navbar/navbar.utils.d.ts +2 -2
- package/dist/contexts/basket/basket.context.d.ts +1 -1
- package/dist/contexts/basket/basket.provider.d.ts +4 -4
- package/dist/contexts/basket/basket.provider.js +1 -1
- package/dist/contexts/basket/basket.types.d.ts +2 -2
- package/dist/contexts/client.context.d.ts +2 -2
- package/dist/contexts/current-page.context.d.ts +1 -1
- package/dist/contexts/events.context.d.ts +3 -3
- package/dist/contexts/types.d.ts +2 -2
- package/dist/controllers/time-expiration.d.ts +1 -1
- package/dist/core/api/middlewares/booking-session/booking-session.d.ts +1 -1
- package/dist/core/api/middlewares/error-handler/error-handler.d.ts +1 -1
- package/dist/core/api/queries.d.ts +2 -2
- package/dist/core/currency/constants.d.ts +1 -1
- package/dist/core/currency/index.d.ts +3 -5
- package/dist/core/currency/index.js +16 -6
- package/dist/core/events.d.ts +2 -2
- package/dist/core/i18n/date.d.ts +2 -2
- package/dist/core/i18n/localization.js +1 -1
- package/dist/core/images/constants.d.ts +1 -1
- package/dist/core/images/constants.js +1 -1
- package/dist/core/images/filters.d.ts +2 -2
- package/dist/core/images/filters.js +2 -2
- package/dist/core/images/selection.d.ts +3 -3
- package/dist/core/images/selection.js +3 -3
- package/dist/core/images/srcset.d.ts +1 -1
- package/dist/core/images/srcset.js +6 -6
- package/dist/core/images/url.d.ts +1 -1
- package/dist/core/images/url.js +1 -1
- package/dist/core/pages.d.ts +1 -1
- package/dist/core/storybook/cssprops.d.ts +1 -1
- package/dist/core/types/core/base.d.ts +2 -2
- package/dist/core/types/core/category.d.ts +1 -1
- package/dist/core/types/core/currency.d.ts +1 -1
- package/dist/core/types/core/locale.d.ts +1 -1
- package/dist/core/types/core/sorting.d.ts +1 -1
- package/dist/core/types/currencies.d.ts +1 -1
- package/dist/core/types/locales.d.ts +2 -2
- package/dist/core/types/seats-config.d.ts +1 -1
- package/dist/core/utils/datetime.d.ts +1 -1
- package/dist/core/utils/locale.d.ts +2 -2
- package/dist/core/utils/scroll-lock.d.ts +2 -2
- package/dist/core/utils/scroll-lock.js +3 -3
- package/dist/core/utils/time.d.ts +1 -1
- package/dist/custom-elements.json +444 -355
- package/dist/helpers/helpers.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/mixins/base.mixin.d.ts +6 -6
- package/dist/mixins/base.mixin.js +2 -2
- package/dist/mixins/coinbase-chains.d.ts +1 -0
- package/dist/mixins/coinbase-chains.js +7 -0
- package/dist/mixins/coinbase.mixin.d.ts +4 -4
- package/dist/mixins/coinbase.mixin.js +19 -7
- package/dist/mixins/error-modal.mixin.d.ts +2 -2
- package/dist/mixins/location-search/location-search.d.ts +3 -3
- package/dist/mixins/location-search/location-search.js +1 -1
- package/dist/mixins/location-search/types.d.ts +2 -2
- package/dist/mixins/overlay/overlay-mixin.d.ts +2 -2
- package/dist/mixins/overlay/types.d.ts +1 -1
- package/dist/mixins/points/points.d.ts +2 -2
- package/dist/mixins/points/types.d.ts +1 -1
- package/dist/mixins/search-mixin/search-mixin.d.ts +3 -3
- package/dist/mixins/search-mixin/types.d.ts +2 -2
- package/dist/sdk/chrome.js +9 -5
- package/dist/sdk/diagnostics.d.ts +9 -0
- package/dist/sdk/diagnostics.js +25 -0
- package/dist/sdk/mount.js +42 -0
- package/dist/sdk/once.d.ts +9 -0
- package/dist/sdk/once.js +18 -0
- package/dist/sdk/page-registry.d.ts +2 -2
- package/dist/sdk/page-registry.js +10 -10
- package/dist/sdk/theme.js +1 -1
- package/dist/sdk/types.d.ts +11 -11
- package/dist/sdk/validation.d.ts +2 -2
- package/dist/sdk/validation.js +7 -6
- package/dist/styles/tokens.css +1 -1
- package/dist/styles/tokens.d.ts +1 -1
- package/dist/styles/tokens.generated.d.ts +1 -1
- package/dist/styles/tokens.generated.js +2 -2
- package/dist/views/constants.d.ts +1 -1
- package/dist/views/details-page/details-page.component.d.ts +4 -4
- package/dist/views/details-page/details-page.component.js +2 -2
- package/dist/views/details-page/details-page.utilts.d.ts +2 -2
- package/dist/views/details-page/partials/theater-description/theater-description.component.d.ts +3 -3
- package/dist/views/details-page/partials/tour-description/tour-description.component.d.ts +4 -4
- package/dist/views/help-page/help-page.component.d.ts +2 -2
- package/dist/views/help-page/help-page.component.js +1 -1
- package/dist/views/help-page/help-page.types.d.ts +1 -1
- package/dist/views/help-page/help-page.utils.d.ts +2 -2
- package/dist/views/landing-page/landing-page.component.d.ts +4 -4
- package/dist/views/landing-page/landing-page.component.js +1 -1
- package/dist/views/landing-page/landing-page.types.d.ts +1 -1
- package/dist/views/payment-page/controllers/crypto-auth.controller.d.ts +3 -3
- package/dist/views/payment-page/controllers/crypto-transfer.controller.d.ts +3 -3
- package/dist/views/payment-page/controllers/crypto-transfer.controller.js +1 -1
- package/dist/views/payment-page/controllers/form-validation.controller.d.ts +5 -5
- package/dist/views/payment-page/controllers/layout.controller.d.ts +1 -1
- package/dist/views/payment-page/controllers/layout.controller.js +1 -1
- package/dist/views/payment-page/controllers/payment-flow.controller.d.ts +1 -1
- package/dist/views/payment-page/controllers/stripe-payment.controller.d.ts +3 -3
- package/dist/views/payment-page/partials/activity-details/activity-details.component.d.ts +5 -5
- package/dist/views/payment-page/partials/billing-address/billing-address.component.d.ts +4 -4
- package/dist/views/payment-page/partials/confirmation/confirmation.component.d.ts +2 -2
- package/dist/views/payment-page/partials/country-field/country-field.component.d.ts +2 -2
- package/dist/views/payment-page/partials/country-field/country-field.component.js +1 -1
- package/dist/views/payment-page/partials/hotel-pickup-field/hotel-pickup-field.component.d.ts +3 -3
- package/dist/views/payment-page/partials/hotel-pickup-list/hotel-pickup-list.component.d.ts +2 -2
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.component.d.ts +3 -3
- package/dist/views/payment-page/partials/payment-type-selector/payment-type-selector.component.js +1 -1
- package/dist/views/payment-page/partials/stripe/stripe.component.d.ts +1 -1
- package/dist/views/payment-page/partials/stripe/stripe.component.js +1 -1
- package/dist/views/payment-page/partials/terms-checkbox/terms-checkbox.component.d.ts +1 -1
- package/dist/views/payment-page/payment-page.component.d.ts +3 -3
- package/dist/views/payment-page/payment-page.component.js +7 -7
- package/dist/views/payment-page/payment-page.types.d.ts +3 -3
- package/dist/views/payment-page/payment-page.utils.d.ts +8 -8
- package/dist/views/payment-page/payment-page.utils.js +5 -5
- package/dist/views/payment-page/payment-page.validation-schema.d.ts +1 -1
- package/dist/views/payment-page/services/payment-api.service.d.ts +2 -2
- package/dist/views/payment-page/services/payment-api.service.js +1 -1
- package/dist/views/search-page/search-page.component.d.ts +4 -4
- package/dist/views/search-page/search-page.component.js +1 -1
- package/dist/views/suggestion-widget/suggestion-widget.component.d.ts +10 -5
- package/dist/views/suggestion-widget/suggestion-widget.component.js +118 -42
- package/dist/views/suggestion-widget/suggestion-widget.styles.js +57 -4
- package/package.json +9 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement, TemplateResult } from "lit";
|
|
1
|
+
import { type CSSResultGroup, LitElement, type TemplateResult } from "lit";
|
|
2
2
|
import "../image/image.js";
|
|
3
3
|
import { ExploreCardVariants } from "./explore-card.constants.js";
|
|
4
4
|
export declare class CorasExploreCard extends LitElement {
|
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { LitElement, html } from "lit";
|
|
7
|
+
import { LitElement, html, } from "lit";
|
|
8
8
|
import { property } from "lit/decorators.js";
|
|
9
9
|
import "../image/image.js";
|
|
10
10
|
import { ExploreCardVariants } from "./explore-card.constants.js";
|
|
@@ -23,11 +23,15 @@ export default css `
|
|
|
23
23
|
.wrapper {
|
|
24
24
|
position: relative;
|
|
25
25
|
width: 100%;
|
|
26
|
+
/* Fill the (flex-stretched) host so the absolutely-positioned label and
|
|
27
|
+
button have a sized box; without a height the card collapses to nothing. */
|
|
28
|
+
height: 100%;
|
|
26
29
|
|
|
27
30
|
border-radius: var(--explore-card-border-radius);
|
|
28
31
|
box-shadow: var(--explore-card-shadow);
|
|
29
32
|
|
|
30
33
|
.image {
|
|
34
|
+
position: relative;
|
|
31
35
|
border-radius: inherit;
|
|
32
36
|
|
|
33
37
|
width: 100%;
|
|
@@ -42,6 +46,25 @@ export default css `
|
|
|
42
46
|
coras-image::part(image) {
|
|
43
47
|
border-radius: inherit;
|
|
44
48
|
}
|
|
49
|
+
|
|
50
|
+
/* Scrim over the photo so the white label and the button stay legible on
|
|
51
|
+
any image. Darker at the top and bottom (where the content sits) and
|
|
52
|
+
near-clear through the middle. Sits above the image but below the label
|
|
53
|
+
and button, which follow it in the DOM. */
|
|
54
|
+
&::after {
|
|
55
|
+
content: "";
|
|
56
|
+
position: absolute;
|
|
57
|
+
inset: 0;
|
|
58
|
+
border-radius: inherit;
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
background: linear-gradient(
|
|
61
|
+
to bottom,
|
|
62
|
+
color-mix(in srgb, black, transparent 30%) 0%,
|
|
63
|
+
color-mix(in srgb, black, transparent 55%) 42%,
|
|
64
|
+
color-mix(in srgb, black, transparent 50%) 60%,
|
|
65
|
+
color-mix(in srgb, black, transparent 25%) 100%
|
|
66
|
+
);
|
|
67
|
+
}
|
|
45
68
|
}
|
|
46
69
|
|
|
47
70
|
.label {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement, PropertyValues } from "lit";
|
|
2
|
-
import { sizes, variants } from "./filter-chip.constants.js";
|
|
1
|
+
import { type CSSResultGroup, LitElement, type PropertyValues } from "lit";
|
|
2
|
+
import type { sizes, variants } from "./filter-chip.constants.js";
|
|
3
3
|
export declare class CorasFilterChip extends LitElement {
|
|
4
4
|
static styles: CSSResultGroup;
|
|
5
5
|
variant: (typeof variants)[number];
|
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { html, LitElement } from "lit";
|
|
7
|
+
import { html, LitElement, } from "lit";
|
|
8
8
|
import { property } from "lit/decorators.js";
|
|
9
9
|
import { classMap } from "lit/directives/class-map.js";
|
|
10
10
|
import styles from "./filter-chip.styles.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement } from "lit";
|
|
2
|
-
import { Locale } from "../../core/types/index.js";
|
|
1
|
+
import { type CSSResultGroup, LitElement } from "lit";
|
|
2
|
+
import type { Locale } from "../../core/types/index.js";
|
|
3
3
|
export declare class CorasFlagIcon extends LitElement {
|
|
4
4
|
static styles: CSSResultGroup;
|
|
5
5
|
iconBaseURL: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement, PropertyValues } from "lit";
|
|
2
|
-
import { IconSize } from "./icon.types.js";
|
|
1
|
+
import { type CSSResultGroup, LitElement, type PropertyValues } from "lit";
|
|
2
|
+
import type { IconSize } from "./icon.types.js";
|
|
3
3
|
export declare class CorasIcon extends LitElement {
|
|
4
4
|
static styles: CSSResultGroup;
|
|
5
5
|
assetsURL: string;
|
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { localized, msg } from "@lit/localize";
|
|
8
|
-
import { html, LitElement } from "lit";
|
|
8
|
+
import { html, LitElement, } from "lit";
|
|
9
9
|
import { property, state } from "lit/decorators.js";
|
|
10
10
|
import { classMap } from "lit/directives/class-map.js";
|
|
11
11
|
import { unsafeSVG } from "lit/directives/unsafe-svg.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement, nothing } from "lit";
|
|
1
|
+
import { type CSSResultGroup, LitElement, nothing } from "lit";
|
|
2
2
|
import "../../icon/icon.js";
|
|
3
3
|
export declare class CorasIconListItem extends LitElement {
|
|
4
4
|
static styles: CSSResultGroup;
|
|
5
5
|
icon: string;
|
|
6
6
|
iconBaseURL: string;
|
|
7
|
-
render(): import("lit").TemplateResult<1
|
|
7
|
+
render(): typeof nothing | import("lit").TemplateResult<1>;
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement, nothing } from "lit";
|
|
1
|
+
import { type CSSResultGroup, LitElement, nothing } from "lit";
|
|
2
2
|
import { type ImagePreset } from "../../core/images/srcset.js";
|
|
3
3
|
import { type ImgixCrop } from "../../core/images/url.js";
|
|
4
4
|
type Loading = "lazy" | "eager";
|
|
@@ -14,7 +14,7 @@ type ArtDirection = "none" | "card";
|
|
|
14
14
|
* ratio for CLS prevention, a skeleton placeholder, and an error fallback.
|
|
15
15
|
*
|
|
16
16
|
* Consumes the canonical helpers in `core/images/url` and `core/images/srcset`
|
|
17
|
-
*
|
|
17
|
+
* - call sites do not assemble URLs themselves.
|
|
18
18
|
*
|
|
19
19
|
* @element coras-image
|
|
20
20
|
* @csspart image - The underlying `<img>` element.
|
|
@@ -78,6 +78,6 @@ export declare class CorasImage extends LitElement {
|
|
|
78
78
|
private renderError;
|
|
79
79
|
private renderImg;
|
|
80
80
|
private renderPicture;
|
|
81
|
-
render(): import("lit").TemplateResult<1
|
|
81
|
+
render(): typeof nothing | import("lit").TemplateResult<1>;
|
|
82
82
|
}
|
|
83
83
|
export {};
|
|
@@ -19,7 +19,7 @@ import styles from "./image.styles.js";
|
|
|
19
19
|
* ratio for CLS prevention, a skeleton placeholder, and an error fallback.
|
|
20
20
|
*
|
|
21
21
|
* Consumes the canonical helpers in `core/images/url` and `core/images/srcset`
|
|
22
|
-
*
|
|
22
|
+
* - call sites do not assemble URLs themselves.
|
|
23
23
|
*
|
|
24
24
|
* @element coras-image
|
|
25
25
|
* @csspart image - The underlying `<img>` element.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LitElement, TemplateResult, CSSResultGroup, PropertyValues } from "lit";
|
|
1
|
+
import { LitElement, type TemplateResult, type CSSResultGroup, type PropertyValues } from "lit";
|
|
2
2
|
import "../icon/icon.js";
|
|
3
|
-
import type { InputFieldType, InputFieldAutocomplete } from "
|
|
3
|
+
import type { InputFieldType, InputFieldAutocomplete } from "./input-field.types.js";
|
|
4
4
|
export declare class CorasInputField extends LitElement {
|
|
5
5
|
static formAssociated: boolean;
|
|
6
6
|
private internals;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type InputFieldType = "text" | "search" | "tel" | "email" | "date" | "number";
|
|
2
|
+
export type InputFieldAutocomplete = "on" | "off" | "email" | "name" | "given-name" | "family-name" | "tel" | "tel-national" | "country" | "bday" | "address-line1" | "address-line2" | "address-level2" | "postal-code" | "one-time-code";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement, TemplateResult, CSSResultGroup } from "lit";
|
|
1
|
+
import { LitElement, type TemplateResult, type CSSResultGroup } from "lit";
|
|
2
2
|
import "../../components/input-field/input-field.js";
|
|
3
3
|
export declare class CorasJoinedFields extends LitElement {
|
|
4
4
|
static styles: CSSResultGroup;
|
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { LitElement, html } from "lit";
|
|
7
|
+
import { LitElement, html, } from "lit";
|
|
8
8
|
import { property } from "lit/decorators.js";
|
|
9
9
|
import styles from "./joined-fields.styles.js";
|
|
10
10
|
import "../../components/input-field/input-field.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement } from "lit";
|
|
2
|
-
import { IconName } from "../../icon/icon.types.js";
|
|
1
|
+
import { type CSSResultGroup, LitElement } from "lit";
|
|
2
|
+
import type { IconName } from "../../icon/icon.types.js";
|
|
3
3
|
import "../../icon/icon.js";
|
|
4
4
|
export declare class CorasListItem extends LitElement {
|
|
5
5
|
static styles: CSSResultGroup;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement } from "lit";
|
|
2
|
-
import { LoadingSpinnerSize } from "./loading-spinner.types.js";
|
|
1
|
+
import { type CSSResultGroup, LitElement } from "lit";
|
|
2
|
+
import type { LoadingSpinnerSize } from "./loading-spinner.types.js";
|
|
3
3
|
export declare class CorasLoadingSpinner extends LitElement {
|
|
4
4
|
static styles: CSSResultGroup;
|
|
5
5
|
size: LoadingSpinnerSize;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement, TemplateResult } from "lit";
|
|
1
|
+
import { type CSSResultGroup, LitElement, type TemplateResult } from "lit";
|
|
2
2
|
import "../select-list/select-list.js";
|
|
3
3
|
import "../select-list/select-option/select-option.js";
|
|
4
4
|
import "../flag-icon/flag-icon.js";
|
|
5
|
-
import { Locale } from "../../core/types/index.js";
|
|
5
|
+
import type { Locale } from "../../core/types/index.js";
|
|
6
6
|
export declare class CorasLocalesList extends LitElement {
|
|
7
7
|
static styles: CSSResultGroup;
|
|
8
8
|
spacious: boolean;
|
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { localized, msg } from "@lit/localize";
|
|
8
|
-
import { LitElement, html } from "lit";
|
|
8
|
+
import { LitElement, html, } from "lit";
|
|
9
9
|
import { property } from "lit/decorators.js";
|
|
10
10
|
import styles from "./locales-list.styles.js";
|
|
11
11
|
import "../select-list/select-list.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Locale } from "../../core/types/index.js";
|
|
1
|
+
import type { Locale } from "../../core/types/index.js";
|
|
2
2
|
export declare const LOCALES: Record<Locale, string> & Record<string, string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement } from "lit";
|
|
1
|
+
import { type CSSResultGroup, LitElement } from "lit";
|
|
2
2
|
import "../image/image.js";
|
|
3
3
|
export declare class CorasLocationImage extends LitElement {
|
|
4
4
|
static styles: CSSResultGroup;
|
|
@@ -19,7 +19,7 @@ export declare class CorasLocationImage extends LitElement {
|
|
|
19
19
|
private resetSource;
|
|
20
20
|
/**
|
|
21
21
|
* Hard-coded Coras CDN fallback. Used when the primary URL fails even when
|
|
22
|
-
* `baseURL` is misconfigured
|
|
22
|
+
* `baseURL` is misconfigured - that's deliberate, so a broken caller still
|
|
23
23
|
* gets a working image instead of a placeholder.
|
|
24
24
|
*/
|
|
25
25
|
private get fallbackSrc();
|
|
@@ -65,7 +65,7 @@ let CorasLocationImage = class CorasLocationImage extends LitElement {
|
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* Hard-coded Coras CDN fallback. Used when the primary URL fails even when
|
|
68
|
-
* `baseURL` is misconfigured
|
|
68
|
+
* `baseURL` is misconfigured - that's deliberate, so a broken caller still
|
|
69
69
|
* gets a working image instead of a placeholder.
|
|
70
70
|
*/
|
|
71
71
|
get fallbackSrc() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement, TemplateResult } from "lit";
|
|
1
|
+
import { type CSSResultGroup, LitElement, type TemplateResult } from "lit";
|
|
2
2
|
import "../icon/icon.js";
|
|
3
3
|
import "../select-list/select-list.js";
|
|
4
4
|
import "../select-list/select-option/select-option.js";
|
|
5
|
-
import { components } from "../../core/types/api-schema.js";
|
|
5
|
+
import type { components } from "../../core/types/api-schema.js";
|
|
6
6
|
export declare class CorasLocationsResults extends LitElement {
|
|
7
7
|
static styles: CSSResultGroup;
|
|
8
8
|
assetsURL: string;
|
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { LitElement, html } from "lit";
|
|
7
|
+
import { LitElement, html, } from "lit";
|
|
8
8
|
import { property } from "lit/decorators.js";
|
|
9
9
|
import { localized, msg } from "@lit/localize";
|
|
10
10
|
import { fireInternalEvent } from "../../core/events.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement } from "lit";
|
|
1
|
+
import { type CSSResultGroup, LitElement } from "lit";
|
|
2
2
|
import "../icon/icon.js";
|
|
3
|
-
import { MessageCardVariant } from "./message-card.types.js";
|
|
3
|
+
import type { MessageCardVariant } from "./message-card.types.js";
|
|
4
4
|
export declare class CorasMessageCard extends LitElement {
|
|
5
5
|
static styles: CSSResultGroup;
|
|
6
6
|
assetsURL: string;
|
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { html, LitElement } from "lit";
|
|
7
|
+
import { html, LitElement, } from "lit";
|
|
8
8
|
import { property } from "lit/decorators.js";
|
|
9
9
|
import styles from "./option-chip.styles.js";
|
|
10
10
|
export class CorasOptionChip extends LitElement {
|
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { html, LitElement } from "lit";
|
|
7
|
+
import { html, LitElement, } from "lit";
|
|
8
8
|
import { property } from "lit/decorators.js";
|
|
9
9
|
import { msg, localized } from "@lit/localize";
|
|
10
10
|
import styles from "./order-confirmation.styles.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement } from "lit";
|
|
2
|
-
import { SupportedCurrencies } from "../../core/types/index.js";
|
|
1
|
+
import { type CSSResultGroup, LitElement } from "lit";
|
|
2
|
+
import type { SupportedCurrencies } from "../../core/types/index.js";
|
|
3
3
|
export declare class CorasPayIn extends LitElement {
|
|
4
4
|
static styles: CSSResultGroup;
|
|
5
5
|
currency: SupportedCurrencies | "FIDA";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement } from "lit";
|
|
2
|
-
|
|
1
|
+
import { type CSSResultGroup, LitElement } from "lit";
|
|
2
|
+
import type { PaymentFiatMethodType } from "./payment-fiat-method.types.js";
|
|
3
|
+
export type { PaymentFiatMethodType };
|
|
3
4
|
/**
|
|
4
5
|
* A payment fiat method component.
|
|
5
6
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type PaymentFiatMethodType = "card" | "google-pay" | "apple-pay";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement, PropertyValues } from "lit";
|
|
2
|
-
import { SupportedCurrencies } from "../../core/types/index.js";
|
|
1
|
+
import { type CSSResultGroup, LitElement, type PropertyValues } from "lit";
|
|
2
|
+
import type { SupportedCurrencies } from "../../core/types/index.js";
|
|
3
3
|
export type PaymentOptionType = "pay" | "earn";
|
|
4
4
|
/**
|
|
5
5
|
* A payment option component that displays a selectable payment or earning option.
|
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { html, LitElement } from "lit";
|
|
7
|
+
import { html, LitElement, } from "lit";
|
|
8
8
|
import { property } from "lit/decorators.js";
|
|
9
9
|
import { classMap } from "lit/directives/class-map.js";
|
|
10
10
|
import { msg, localized } from "@lit/localize";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement } from "lit";
|
|
1
|
+
import { type CSSResultGroup, LitElement } from "lit";
|
|
2
2
|
import "@lit-labs/virtualizer";
|
|
3
3
|
import "../phone-country-code/phone-country-code.js";
|
|
4
|
-
import { components } from "../../core/types/api-schema.js";
|
|
4
|
+
import type { components } from "../../core/types/api-schema.js";
|
|
5
5
|
export declare class CorasPhoneCountryCodes extends LitElement {
|
|
6
6
|
static styles: CSSResultGroup;
|
|
7
7
|
assetsURL: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement } from "lit";
|
|
2
|
-
import { components } from "../../core/types/api-schema.js";
|
|
3
|
-
import { PhoneCodeSelection } from "./phone-field.types.js";
|
|
1
|
+
import { type CSSResultGroup, LitElement } from "lit";
|
|
2
|
+
import type { components } from "../../core/types/api-schema.js";
|
|
3
|
+
import type { PhoneCodeSelection } from "./phone-field.types.js";
|
|
4
4
|
import "../dropdown/dropdown.js";
|
|
5
5
|
import "../input-field/input-field.js";
|
|
6
6
|
import "../icon/icon.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { components } from "../../core/types/api-schema.js";
|
|
1
|
+
import type { components } from "../../core/types/api-schema.js";
|
|
2
2
|
export declare const filterCountries: (countries: components["schemas"]["Country"][] | readonly [] | undefined, query: string | undefined) => components["schemas"]["Country"][] | readonly [] | [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement } from "lit";
|
|
1
|
+
import { type CSSResultGroup, LitElement } from "lit";
|
|
2
2
|
import "../icon/icon.js";
|
|
3
3
|
declare const CorasPoints_base: import("../../mixins/points/types.js").Constructor<import("../../mixins/points/types.js").PointsMixinInterface> & typeof LitElement;
|
|
4
4
|
export declare class CorasPoints extends CorasPoints_base {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import { SupportedCurrencies } from "../../core/types/index.js";
|
|
3
|
-
import { allLocales } from "../../core/i18n/locale-codes.js";
|
|
2
|
+
import type { SupportedCurrencies } from "../../core/types/index.js";
|
|
3
|
+
import type { allLocales } from "../../core/i18n/locale-codes.js";
|
|
4
4
|
/**
|
|
5
5
|
* Coras Price
|
|
6
6
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSResultGroup, LitElement } from "lit";
|
|
1
|
+
import { type CSSResultGroup, LitElement } from "lit";
|
|
2
2
|
import "../reservation-preview-item/reservation-preview-item.js";
|
|
3
3
|
export declare class CorasReservationPreview extends LitElement {
|
|
4
4
|
static styles: CSSResultGroup;
|