@liquidcommerce/elements-sdk 2.6.0-beta.1 → 2.6.0-beta.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -2517
- package/dist/index.checkout.esm.js +17794 -0
- package/dist/index.esm.js +26010 -20601
- package/dist/ssr-stub.checkout.esm.js +18 -0
- package/dist/ssr-stub.esm.js +270 -0
- package/dist/types/auto-initialize/checkout.d.ts +2 -0
- package/dist/types/auto-initialize/shared-utils.d.ts +50 -0
- package/dist/types/{elements-base-client.d.ts → clients/base.d.ts} +15 -2
- package/dist/types/clients/builder.d.ts +3 -0
- package/dist/types/clients/checkout.d.ts +6 -0
- package/dist/types/{elements-client-helper.d.ts → clients/helpers.d.ts} +2 -1
- package/dist/types/clients/main.d.ts +3 -0
- package/dist/types/constants/core.constant.d.ts +13 -6
- package/dist/types/core/a11y/announcer.service.d.ts +16 -0
- package/dist/types/core/a11y/focus-manager.service.d.ts +21 -0
- package/dist/types/core/a11y/focusable.d.ts +5 -0
- package/dist/types/core/a11y/glyph-button.d.ts +8 -0
- package/dist/types/core/a11y/index.d.ts +5 -0
- package/dist/types/core/a11y/single-select.d.ts +16 -0
- package/dist/types/core/api/api-client.service.d.ts +23 -22
- package/dist/types/core/api/api-result.d.ts +19 -0
- package/dist/types/core/api/auth-client.service.d.ts +39 -26
- package/dist/types/core/api/http-client.service.d.ts +0 -8
- package/dist/types/core/base-component.service.d.ts +4 -1
- package/dist/types/core/client/actions/base-action.service.d.ts +22 -0
- package/dist/types/core/client/actions/client-address-action.service.d.ts +18 -0
- package/dist/types/core/client/actions/client-cart-action.service.d.ts +38 -0
- package/dist/types/core/client/actions/client-checkout-action.service.d.ts +69 -0
- package/dist/types/core/client/actions/client-product-action.service.d.ts +15 -0
- package/dist/types/core/client/client-action.service.d.ts +6 -67
- package/dist/types/core/client/client-config.service.d.ts +9 -5
- package/dist/types/core/command/base-command.service.d.ts +2 -2
- package/dist/types/core/command/common-command.service.d.ts +2 -1
- package/dist/types/core/google-tag-manager.service.d.ts +15 -11
- package/dist/types/core/logger/logger.service.d.ts +1 -1
- package/dist/types/core/pubsub/interfaces/address.interface.d.ts +6 -12
- package/dist/types/core/pubsub/interfaces/cart.interface.d.ts +27 -64
- package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +45 -50
- package/dist/types/core/pubsub/interfaces/core.interface.d.ts +11 -6
- package/dist/types/core/pubsub/interfaces/product.interface.d.ts +16 -81
- package/dist/types/core/pubsub/pubsub.service.d.ts +1 -2
- package/dist/types/core/singleton-manager.service.d.ts +12 -8
- package/dist/types/core/store/interfaces/address.interface.d.ts +3 -12
- package/dist/types/core/store/interfaces/cart.interface.d.ts +16 -55
- package/dist/types/core/store/interfaces/checkout.interface.d.ts +18 -108
- package/dist/types/core/store/interfaces/core.interface.d.ts +16 -5
- package/dist/types/core/store/interfaces/metadata.interface.d.ts +11 -0
- package/dist/types/core/store/interfaces/product-list.interface.d.ts +30 -0
- package/dist/types/core/store/interfaces/product.interface.d.ts +13 -66
- package/dist/types/core/store/store.constant.d.ts +6 -1
- package/dist/types/core/store/store.service.d.ts +1 -0
- package/dist/types/core/telemetry/telemetry.interface.d.ts +0 -1
- package/dist/types/core/telemetry/telemetry.service.d.ts +1 -0
- package/dist/types/enums/core.enum.d.ts +40 -1
- package/dist/types/enums/index.d.ts +0 -1
- package/dist/types/index.checkout.d.ts +8 -0
- package/dist/types/index.checkout.umd.d.ts +4 -0
- package/dist/types/index.d.ts +8 -3
- package/dist/types/interfaces/api/address.interface.d.ts +28 -0
- package/dist/types/interfaces/api/cart.interface.d.ts +96 -0
- package/dist/types/interfaces/api/checkout.interface.d.ts +239 -0
- package/dist/types/interfaces/{cloud → api}/index.d.ts +1 -3
- package/dist/types/interfaces/api/product-list.interface.d.ts +39 -0
- package/dist/types/interfaces/api/product.interface.d.ts +112 -0
- package/dist/types/interfaces/client.interface.d.ts +72 -0
- package/dist/types/interfaces/component.interface.d.ts +7 -0
- package/dist/types/interfaces/config.interface.d.ts +40 -0
- package/dist/types/interfaces/configs/address.interface.d.ts +1 -1
- package/dist/types/interfaces/configs/cart.interface.d.ts +1 -1
- package/dist/types/interfaces/configs/checkout.interface.d.ts +2 -1
- package/dist/types/interfaces/configs/configurations.interface.d.ts +5 -5
- package/dist/types/interfaces/configs/global.interface.d.ts +10 -3
- package/dist/types/interfaces/configs/index.d.ts +1 -0
- package/dist/types/interfaces/configs/product-list.interface.d.ts +49 -0
- package/dist/types/interfaces/configs/product.interface.d.ts +4 -1
- package/dist/types/interfaces/injection.interface.d.ts +49 -0
- package/dist/types/modules/address/address-display.component.d.ts +3 -1
- package/dist/types/modules/address/address-input.component.d.ts +10 -1
- package/dist/types/modules/address/address.command.d.ts +4 -4
- package/dist/types/modules/address/address.interface.d.ts +0 -7
- package/dist/types/modules/address/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/cart/cart.commands.d.ts +4 -5
- package/dist/types/modules/cart/components/cart-body.component.d.ts +3 -1
- package/dist/types/modules/cart/components/cart-footer.component.d.ts +0 -1
- package/dist/types/modules/cart/components/cart-fulfillment.component.d.ts +0 -2
- package/dist/types/modules/cart/components/cart-item-quantity-price.component.d.ts +5 -0
- package/dist/types/modules/cart/components/cart-item.component.d.ts +6 -0
- package/dist/types/modules/cart/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/checkout/checkout.commands.d.ts +27 -10
- package/dist/types/modules/checkout/checkout.component.d.ts +2 -0
- package/dist/types/modules/checkout/components/checkout-billing.component.d.ts +2 -2
- package/dist/types/modules/checkout/components/checkout-completed.component.d.ts +5 -0
- package/dist/types/modules/checkout/components/checkout-header.component.d.ts +1 -0
- package/dist/types/modules/checkout/components/checkout-item-quantity.component.d.ts +4 -0
- package/dist/types/modules/checkout/components/checkout-items.component.d.ts +4 -3
- package/dist/types/modules/checkout/components/checkout-payment.component.d.ts +2 -1
- package/dist/types/modules/checkout/components/checkout-place-order-button.component.d.ts +2 -0
- package/dist/types/modules/checkout/components/checkout-presale-countdown.component.d.ts +14 -1
- package/dist/types/modules/checkout/components/checkout-presale-expired.component.d.ts +7 -1
- package/dist/types/modules/checkout/components/checkout-stripe-form.component.d.ts +2 -1
- package/dist/types/modules/checkout/components/checkout-tips.component.d.ts +2 -2
- package/dist/types/modules/checkout/components/promo-pc-gc.component.d.ts +0 -2
- package/dist/types/modules/checkout/constant.d.ts +3 -0
- package/dist/types/modules/checkout/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/product/components/components.d.ts +7 -4
- package/dist/types/modules/product/components/product-add-to-cart-section.component.d.ts +7 -1
- package/dist/types/modules/product/components/product-description.component.d.ts +1 -0
- package/dist/types/modules/product/components/product-drawer.component.d.ts +6 -0
- package/dist/types/modules/product/components/product-image-carousel.component.d.ts +5 -0
- package/dist/types/modules/product/components/product-options.component.d.ts +2 -1
- package/dist/types/modules/product/components/product-retailers-carousel.component.d.ts +4 -0
- package/dist/types/modules/product/components/product-retailers-popup-list.component.d.ts +10 -2
- package/dist/types/modules/product/product.commands.d.ts +7 -7
- package/dist/types/modules/product/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/product-list/components/card-components/index.d.ts +5 -0
- package/dist/types/modules/product-list/components/card-components/product-badge.d.ts +9 -0
- package/dist/types/modules/product-list/components/card-components/product-button.d.ts +11 -0
- package/dist/types/modules/product-list/components/card-components/product-price-and-personalization.d.ts +14 -0
- package/dist/types/modules/product-list/components/card-components/product-quantity-selector.d.ts +11 -0
- package/dist/types/modules/product-list/components/card-components/product-sizes-list.d.ts +14 -0
- package/dist/types/modules/product-list/components/filter-components/index.d.ts +7 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-apply-filter-button.d.ts +1 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-checkbox-filter.d.ts +7 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-chip.d.ts +5 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-filters-chips.d.ts +13 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-fulfillment-filter.d.ts +15 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-price-filter.d.ts +22 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-toggle-filters.d.ts +7 -0
- package/dist/types/modules/product-list/components/index.d.ts +6 -0
- package/dist/types/modules/product-list/components/product-list-card-loading.component.d.ts +3 -1
- package/dist/types/modules/product-list/components/product-list-card.component.d.ts +36 -30
- package/dist/types/modules/product-list/components/product-list-engraving.component.d.ts +12 -0
- package/dist/types/modules/product-list/components/product-list-filters.component.d.ts +56 -14
- package/dist/types/modules/product-list/components/product-list-product-engraving-lines.component.d.ts +22 -0
- package/dist/types/modules/product-list/components/product-list-product-pre-cart.component.d.ts +53 -0
- package/dist/types/modules/product-list/components/product-list-search.component.d.ts +25 -0
- package/dist/types/modules/product-list/product-list-filter.utils.d.ts +8 -0
- package/dist/types/modules/product-list/product-list-query-params.utils.d.ts +3 -0
- package/dist/types/modules/product-list/product-list.commands.d.ts +23 -7
- package/dist/types/modules/product-list/product-list.component.d.ts +17 -39
- package/dist/types/modules/product-list/product-list.constants.d.ts +38 -0
- package/dist/types/modules/product-list/product-list.interface.d.ts +65 -0
- package/dist/types/modules/product-list/styles/product-list-card.style.d.ts +1 -0
- package/dist/types/modules/product-list/styles/product-list-filters.style.d.ts +1 -0
- package/dist/types/modules/product-list/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/theme-provider/constants/component-groupings.d.ts +1 -0
- package/dist/types/modules/theme-provider/constants/css-variable-mappings.d.ts +1 -1
- package/dist/types/modules/theme-provider/services/style-registry.service.d.ts +16 -0
- package/dist/types/modules/theme-provider/services/stylesheet-generator.service.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/theme-provider/theme-provider.service.d.ts +2 -2
- package/dist/types/modules/ui-components/alert/alert.component.d.ts +1 -1
- package/dist/types/modules/ui-components/buttons/buttons-open-cart.component.d.ts +5 -0
- package/dist/types/modules/ui-components/drawer/drawer.component.d.ts +15 -0
- package/dist/types/modules/ui-components/engraving/engraving-form.component.d.ts +8 -1
- package/dist/types/modules/ui-components/engraving/engraving-view.component.d.ts +7 -1
- package/dist/types/modules/ui-components/input/index.d.ts +0 -1
- package/dist/types/modules/ui-components/input/input.component.d.ts +14 -1
- package/dist/types/modules/ui-components/lce-element/lce-element.component.d.ts +2 -1
- package/dist/types/modules/ui-components/promo-code-ticker/promo-code-ticker.component.d.ts +1 -1
- package/dist/types/modules/ui-components/purchase-min-alert/index.d.ts +0 -1
- package/dist/types/modules/ui-components/ui.commands.d.ts +7 -1
- package/dist/types/ssr/stub.checkout.d.ts +6 -0
- package/dist/types/ssr/stub.d.ts +10 -0
- package/dist/types/static/icon/arrow-right.icon.d.ts +1 -1
- package/dist/types/static/icon/bag.icon.d.ts +1 -1
- package/dist/types/static/icon/check.icon.d.ts +2 -0
- package/dist/types/static/icon/checkbox.icon.d.ts +1 -1
- package/dist/types/static/icon/chevron-down.icon.d.ts +1 -1
- package/dist/types/static/icon/chevron-left.icon.d.ts +1 -1
- package/dist/types/static/icon/chevron-up.icon.d.ts +2 -0
- package/dist/types/static/icon/close.icon.d.ts +1 -1
- package/dist/types/static/icon/error-info.icon.d.ts +1 -1
- package/dist/types/static/icon/filter.icon.d.ts +2 -0
- package/dist/types/static/icon/icon.a11y.d.ts +1 -0
- package/dist/types/static/icon/icon.types.d.ts +1 -0
- package/dist/types/static/icon/index.d.ts +3 -0
- package/dist/types/static/icon/info.icon.d.ts +1 -1
- package/dist/types/static/icon/loading-spinner.icon.d.ts +1 -1
- package/dist/types/static/icon/search.icon.d.ts +1 -1
- package/dist/types/static/icon/success.icon.d.ts +1 -1
- package/dist/types/static/icon/trash.icon.d.ts +1 -1
- package/dist/types/static/icon/warning.icon.d.ts +1 -1
- package/dist/types/utils/dom-compat.d.ts +2 -0
- package/dist/types/utils/format.d.ts +4 -14
- package/dist/types/utils/image-bg-removal.d.ts +3 -0
- package/dist/types/utils/product-selection.d.ts +16 -0
- package/dist/types/utils/product.d.ts +15 -0
- package/docs/v1/README.md +213 -0
- package/docs/v1/api/actions/address-actions.md +286 -0
- package/docs/v1/api/actions/cart-actions.md +364 -0
- package/docs/v1/api/actions/checkout-actions.md +527 -0
- package/docs/v1/api/actions/product-actions.md +204 -0
- package/docs/v1/api/client.md +596 -0
- package/docs/v1/api/configuration.md +555 -0
- package/docs/v1/api/injection-methods.md +292 -0
- package/docs/v1/api/typescript-types.md +423 -0
- package/docs/v1/api/ui-helpers.md +200 -0
- package/docs/v1/examples/advanced-patterns.md +199 -0
- package/docs/v1/examples/checkout-flow.md +90 -0
- package/docs/v1/examples/custom-theming.md +63 -0
- package/docs/v1/examples/multi-product-page.md +90 -0
- package/docs/v1/examples/simple-product-page.md +89 -0
- package/docs/v1/getting-started/concepts.md +521 -0
- package/docs/v1/getting-started/installation.md +349 -0
- package/docs/v1/getting-started/quick-start.md +410 -0
- package/docs/v1/guides/accessibility.md +173 -0
- package/docs/v1/guides/address-component.md +435 -0
- package/docs/v1/guides/best-practices.md +365 -0
- package/docs/v1/guides/cart-component.md +757 -0
- package/docs/v1/guides/checkout-component.md +670 -0
- package/docs/v1/guides/events.md +939 -0
- package/docs/v1/guides/product-component.md +735 -0
- package/docs/v1/guides/product-list-component.md +630 -0
- package/docs/v1/guides/theming.md +228 -0
- package/docs/v1/integration/angular.md +39 -0
- package/docs/v1/integration/laravel.md +41 -0
- package/docs/v1/integration/nextjs.md +69 -0
- package/docs/v1/integration/proxy-setup.md +106 -0
- package/docs/v1/integration/react.md +64 -0
- package/docs/v1/integration/vanilla-js.md +84 -0
- package/docs/v1/integration/vue.md +58 -0
- package/docs/v1/reference/analytics.md +108 -0
- package/docs/v1/reference/browser-support.md +47 -0
- package/docs/v1/reference/error-handling.md +83 -0
- package/docs/v1/reference/performance.md +52 -0
- package/docs/v1/reference/telemetry.md +85 -0
- package/docs/v1/reference/troubleshooting.md +135 -0
- package/package.json +69 -45
- package/dist/types/elements-builder-client.d.ts +0 -2
- package/dist/types/elements-client.d.ts +0 -2
- package/dist/types/enums/cloud.enum.d.ts +0 -77
- package/dist/types/interfaces/cloud/address.interface.d.ts +0 -36
- package/dist/types/interfaces/cloud/cart.interface.d.ts +0 -132
- package/dist/types/interfaces/cloud/catalog.interface.d.ts +0 -43
- package/dist/types/interfaces/cloud/checkout.interface.d.ts +0 -214
- package/dist/types/interfaces/cloud/core.interface.d.ts +0 -22
- package/dist/types/interfaces/cloud/product.interface.d.ts +0 -158
- package/dist/types/interfaces/cloud/retailer.interface.d.ts +0 -67
- package/dist/types/interfaces/cloud/user.interface.d.ts +0 -100
- package/dist/types/interfaces/core.interface.d.ts +0 -111
- package/dist/types/modules/cart/cart.commands.helper.d.ts +0 -9
- package/dist/types/modules/checkout/components/checkout.type.d.ts +0 -4
- package/dist/types/modules/product/utils/helpers.d.ts +0 -3
- package/dist/types/modules/product/utils/retailer-hours.d.ts +0 -9
- package/dist/types/modules/theme-provider/styles/address/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/cart/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/checkout/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/product/index.d.ts +0 -3
- package/dist/types/modules/theme-provider/styles/product-list/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/ui/index.d.ts +0 -3
- package/dist/types/modules/ui-components/input/birthdate-input.component.d.ts +0 -53
- package/dist/types/modules/ui-components/purchase-min-alert/helpers.d.ts +0 -7
- package/dist/types/utils/helper.d.ts +0 -27
- package/docs/ACTIONS.md +0 -1300
- package/docs/BROWSER_SUPPORT.md +0 -279
- package/docs/CONFIGURATION.md +0 -853
- package/docs/DOCUMENTATION_INDEX.md +0 -311
- package/docs/EVENTS.md +0 -798
- package/docs/PROXY.md +0 -228
- package/docs/THEMING.md +0 -589
- package/docs/TROUBLESHOOTING.md +0 -793
- package/umd/elements.js +0 -1
- /package/dist/types/{auto-initialize.d.ts → auto-initialize/main.d.ts} +0 -0
- /package/dist/types/modules/{theme-provider/styles/address → address/styles}/address.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/cart → cart/styles}/cart.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/checkout → checkout/styles}/checkout.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/image-carousel.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/product.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/retailers.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product-list → product-list/styles}/product-list.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/drawer.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/loading.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/promo-code-ticker.style.d.ts +0 -0
|
@@ -1,65 +1,41 @@
|
|
|
1
1
|
import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IProductListComponent } from '@/interfaces/configs';
|
|
3
|
+
import type { PLCProductUrl } from '@/interfaces/configs/product-list.interface';
|
|
4
|
+
import type { ProductListFilterType } from '@/interfaces/injection.interface';
|
|
3
5
|
export interface IProductListComponentParams {
|
|
4
|
-
|
|
6
|
+
slug: string;
|
|
5
7
|
rows: number;
|
|
6
8
|
columns: number;
|
|
7
|
-
fillCard: boolean;
|
|
8
9
|
filters: ProductListFilterType[];
|
|
9
|
-
productUrl?:
|
|
10
|
+
productUrl?: PLCProductUrl;
|
|
10
11
|
}
|
|
11
|
-
export
|
|
12
|
-
personalized: boolean;
|
|
13
|
-
preOrder: boolean;
|
|
14
|
-
deliveryOptions: 'all' | 'shipping' | 'onDemand';
|
|
15
|
-
}
|
|
16
|
-
export declare class ProductListComponent extends BaseComponent<IProductListComponentParams> {
|
|
12
|
+
export declare class ProductListComponent extends BaseComponent<IProductListComponentParams, IProductListComponent> {
|
|
17
13
|
private products;
|
|
18
|
-
private retailers;
|
|
19
14
|
private pagination;
|
|
20
|
-
private currentFilters;
|
|
21
15
|
private cardsContainer;
|
|
22
|
-
private filtersContainer;
|
|
23
16
|
private sentinelElement;
|
|
24
|
-
private personalizedSwitch;
|
|
25
|
-
private preOrderSwitch;
|
|
26
|
-
private deliveryRadios;
|
|
27
|
-
private deliveryRadioLabels;
|
|
28
17
|
private loadingState;
|
|
29
18
|
private scrollObserver;
|
|
30
19
|
private initializationPromise;
|
|
20
|
+
private unsubscribeFromState?;
|
|
31
21
|
get hostClasses(): string[];
|
|
32
22
|
constructor();
|
|
33
|
-
protected
|
|
34
|
-
|
|
23
|
+
protected beforeConnected(): void;
|
|
24
|
+
protected afterRender(): void;
|
|
25
|
+
disconnected(): void;
|
|
35
26
|
private initializeComponent;
|
|
36
|
-
|
|
27
|
+
private toProductArray;
|
|
37
28
|
private setLoadingState;
|
|
38
29
|
private renderCurrentState;
|
|
39
30
|
private loadInitialProducts;
|
|
40
31
|
private loadMoreProducts;
|
|
41
|
-
private mergeRetailers;
|
|
42
|
-
private updatePagination;
|
|
43
|
-
private buildApiParams;
|
|
44
|
-
private buildFiltersFromState;
|
|
45
|
-
private syncFiltersFromResponse;
|
|
46
|
-
private onFilterChange;
|
|
47
|
-
private resetPagination;
|
|
48
|
-
private updateFiltersUI;
|
|
49
|
-
private updatePersonalizedSwitch;
|
|
50
|
-
private updatePreOrderSwitch;
|
|
51
|
-
private updateDeliveryOptions;
|
|
52
|
-
private updateRadioLabel;
|
|
53
|
-
private isPersonalizationDisabled;
|
|
54
|
-
private isPreOrderDisabled;
|
|
55
|
-
private isSameDayDeliveryDisabled;
|
|
56
32
|
private createCardsContainer;
|
|
57
33
|
private renderLoadingState;
|
|
34
|
+
private hasRenderedProductsOnce;
|
|
35
|
+
private lastAnnouncedSentinelState;
|
|
58
36
|
private renderProducts;
|
|
37
|
+
private announceResultCount;
|
|
59
38
|
private appendNewProducts;
|
|
60
|
-
private createProductCard;
|
|
61
|
-
private createFiltersContainer;
|
|
62
|
-
private storeFilterElementReferences;
|
|
63
39
|
private setupInfiniteScroll;
|
|
64
40
|
private createScrollSentinel;
|
|
65
41
|
private updateSentinel;
|
|
@@ -71,6 +47,8 @@ export declare class ProductListComponent extends BaseComponent<IProductListComp
|
|
|
71
47
|
private showErrorState;
|
|
72
48
|
private clearCardsContainer;
|
|
73
49
|
private cleanupScrollObserver;
|
|
74
|
-
onStoreWatch(changes: IOnStoreChanged[]): Promise<void>;
|
|
75
50
|
private doCleanup;
|
|
51
|
+
onStoreWatch(changes: IOnStoreChanged[]): Promise<void>;
|
|
52
|
+
onStoreChanged(): boolean;
|
|
53
|
+
protected template(): HTMLElement[];
|
|
76
54
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const FILTER_KEYS: {
|
|
2
|
+
readonly BRANDS: "brands";
|
|
3
|
+
readonly FLAVOR: "flavor";
|
|
4
|
+
readonly FULFILLMENT: "fulfillment";
|
|
5
|
+
readonly TAGS: "tags";
|
|
6
|
+
readonly REGION: "region";
|
|
7
|
+
readonly VARIETY: "variety";
|
|
8
|
+
readonly ENGRAVING: "engraving";
|
|
9
|
+
readonly PRICE: "price";
|
|
10
|
+
readonly AVAILABILITY: "availability";
|
|
11
|
+
readonly CATEGORIES: "categories";
|
|
12
|
+
readonly SIZES: "sizes";
|
|
13
|
+
readonly COLORS: "colors";
|
|
14
|
+
readonly APPELLATION: "appellation";
|
|
15
|
+
readonly COUNTRY: "country";
|
|
16
|
+
readonly VINTAGE: "vintage";
|
|
17
|
+
readonly MATERIALS: "materials";
|
|
18
|
+
readonly COLLECTION_TAGS: "collectionTags";
|
|
19
|
+
};
|
|
20
|
+
export declare const FULFILLMENT_OPTIONS: {
|
|
21
|
+
readonly ALL: "all";
|
|
22
|
+
readonly SHIPPING: "shipping";
|
|
23
|
+
readonly ON_DEMAND: "onDemand";
|
|
24
|
+
};
|
|
25
|
+
export declare const PRICE_OPTIONS: {
|
|
26
|
+
readonly MIN: "0";
|
|
27
|
+
readonly MAX: "1000";
|
|
28
|
+
};
|
|
29
|
+
export declare const FILTER_VALUE_OPTIONS: {
|
|
30
|
+
readonly YES: "YES";
|
|
31
|
+
readonly NO: "NO";
|
|
32
|
+
};
|
|
33
|
+
export declare const FILTER_LOADING_STATE: {
|
|
34
|
+
readonly IDLE: "idle";
|
|
35
|
+
readonly LOADING_INITIAL: "loading_initial";
|
|
36
|
+
readonly LOADING_MORE: "loading_more";
|
|
37
|
+
readonly ERROR: "error";
|
|
38
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { IFilterValue } from '@/interfaces/api/product-list.interface';
|
|
2
|
+
import type { ProductListFilterType } from '@/interfaces/injection.interface';
|
|
3
|
+
export interface IPriceConfig {
|
|
4
|
+
min?: string;
|
|
5
|
+
max?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IProductListFilters {
|
|
8
|
+
price?: IPriceConfig;
|
|
9
|
+
[key: string]: boolean | string | string[] | IPriceConfig | undefined;
|
|
10
|
+
}
|
|
11
|
+
export interface IExtendedFilterSchema {
|
|
12
|
+
type: string;
|
|
13
|
+
values: IFilterValue[];
|
|
14
|
+
}
|
|
15
|
+
export interface IPagination {
|
|
16
|
+
currentPage: number;
|
|
17
|
+
totalPages: number;
|
|
18
|
+
totalCount: number;
|
|
19
|
+
hasMorePages: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface ICheckboxLabelStates {
|
|
22
|
+
isExpanded: boolean;
|
|
23
|
+
selectedValues: Set<string>;
|
|
24
|
+
searchInput: HTMLInputElement | null;
|
|
25
|
+
checkboxList: HTMLElement | null;
|
|
26
|
+
filteredItems: IFilterValue[];
|
|
27
|
+
contentElement: HTMLElement | null;
|
|
28
|
+
iconElement: HTMLElement | null;
|
|
29
|
+
hasUserInteraction: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface ICreateCheckboxItemParams {
|
|
32
|
+
filter: IExtendedFilterSchema;
|
|
33
|
+
state: ICheckboxLabelStates;
|
|
34
|
+
item: IFilterValue;
|
|
35
|
+
onChange: VoidFunction;
|
|
36
|
+
}
|
|
37
|
+
export interface IHandleCheckboxFilterSearchParams {
|
|
38
|
+
filter: IExtendedFilterSchema;
|
|
39
|
+
state: ICheckboxLabelStates;
|
|
40
|
+
searchTerm: string;
|
|
41
|
+
renderCheckboxItems: VoidFunction;
|
|
42
|
+
}
|
|
43
|
+
export interface ICreateCheckboxFilterHeaderParams {
|
|
44
|
+
filter: IExtendedFilterSchema;
|
|
45
|
+
state: ICheckboxLabelStates;
|
|
46
|
+
onToggle: (bucket: string) => void;
|
|
47
|
+
}
|
|
48
|
+
export interface ICreateCheckboxFilterSearchContainerParams {
|
|
49
|
+
filter: IExtendedFilterSchema;
|
|
50
|
+
state: ICheckboxLabelStates;
|
|
51
|
+
onSearch: (searchTerm: string) => void;
|
|
52
|
+
}
|
|
53
|
+
export interface IRenderCheckboxItemsParams {
|
|
54
|
+
filter: IExtendedFilterSchema;
|
|
55
|
+
state: ICheckboxLabelStates;
|
|
56
|
+
onCheckboxChange: (value: string, checked: boolean) => void;
|
|
57
|
+
}
|
|
58
|
+
export interface ILoadInitialProductsParams {
|
|
59
|
+
slug: string;
|
|
60
|
+
page: number;
|
|
61
|
+
perPage: number;
|
|
62
|
+
searchTerm: string;
|
|
63
|
+
currentFilters: IProductListFilters;
|
|
64
|
+
configuredFilters: ProductListFilterType[];
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getProductListCardStyles: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getProductListFiltersStyles: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,3 +3,4 @@ export declare const productGroupComponents: ComponentType[];
|
|
|
3
3
|
export declare const addressGroupComponents: ComponentType[];
|
|
4
4
|
export declare const cartGroupComponents: ComponentType[];
|
|
5
5
|
export declare const checkoutGroupComponents: ComponentType[];
|
|
6
|
+
export declare const productListGroupComponent: ComponentType[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type StylesheetType = 'global' | 'ui' | 'product' | 'address' | 'cart' | 'checkout';
|
|
1
|
+
export type StylesheetType = 'global' | 'ui' | 'product' | 'address' | 'cart' | 'checkout' | 'product-list';
|
|
2
2
|
export declare function getCSSVariableMapping(componentPrefix: string): Record<string, string>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StylesheetType } from '../constants/css-variable-mappings';
|
|
2
|
+
export type StyleGetter = () => string;
|
|
3
|
+
declare class StyleRegistryService {
|
|
4
|
+
private static instance;
|
|
5
|
+
private registry;
|
|
6
|
+
private constructor();
|
|
7
|
+
static getInstance(): StyleRegistryService;
|
|
8
|
+
register(type: StylesheetType, getter: StyleGetter, priority?: number): void;
|
|
9
|
+
getStyleGetters(type: StylesheetType): StyleGetter[];
|
|
10
|
+
getStyles(type: StylesheetType): string[];
|
|
11
|
+
hasStyles(type: StylesheetType): boolean;
|
|
12
|
+
getRegisteredTypes(): StylesheetType[];
|
|
13
|
+
clear(): void;
|
|
14
|
+
}
|
|
15
|
+
export declare const styleRegistry: StyleRegistryService;
|
|
16
|
+
export { StyleRegistryService };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentType } from '@/enums';
|
|
2
|
-
import type { ConfigsKeyType, ConfigsType, IAllConfigs, UpdateAddressComponent, UpdateCartComponent, UpdateCheckoutComponent, UpdateComponentGlobalConfigs, UpdateProductComponent } from '@/interfaces/configs';
|
|
2
|
+
import type { ConfigsKeyType, ConfigsType, IAllConfigs, UpdateAddressComponent, UpdateCartComponent, UpdateCheckoutComponent, UpdateComponentGlobalConfigs, UpdateProductComponent, UpdateProductListComponent } from '@/interfaces/configs';
|
|
3
3
|
import { type GeneratedStylesheet } from './services/stylesheet-generator.service';
|
|
4
4
|
export declare class ThemeProviderService {
|
|
5
5
|
private data;
|
|
@@ -14,9 +14,9 @@ export declare class ThemeProviderService {
|
|
|
14
14
|
updateAddressComponent(data: UpdateAddressComponent): void;
|
|
15
15
|
updateCartComponent(data: UpdateCartComponent): void;
|
|
16
16
|
updateCheckoutComponent(data: UpdateCheckoutComponent): void;
|
|
17
|
+
updateProductListComponent(data: UpdateProductListComponent): void;
|
|
17
18
|
getConfigs<T = any>(type: ConfigsKeyType): T;
|
|
18
19
|
getComponentConfig(componentType: ComponentType): ConfigsType | undefined;
|
|
19
20
|
getStylesheet(componentType: ComponentType): GeneratedStylesheet[];
|
|
20
21
|
private getBaseStylesheets;
|
|
21
|
-
private deepMerge;
|
|
22
22
|
}
|
|
@@ -9,8 +9,8 @@ export interface IAlertComponentParams {
|
|
|
9
9
|
export declare class AlertComponent extends BaseComponent<IAlertComponentParams, null> {
|
|
10
10
|
private hideTimeout;
|
|
11
11
|
private elements;
|
|
12
|
+
private lastAnnouncedKey;
|
|
12
13
|
get hostClasses(): string[];
|
|
13
|
-
get hostAttributes(): Record<string, string>;
|
|
14
14
|
beforeSetupStoreWatchers(): void;
|
|
15
15
|
afterRender(): void;
|
|
16
16
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
@@ -5,7 +5,12 @@ export interface IButtonsOpenCartComponentParams {
|
|
|
5
5
|
}
|
|
6
6
|
export declare class ButtonsOpenCartComponent extends BaseComponent<IButtonsOpenCartComponentParams, null> {
|
|
7
7
|
get hostClasses(): string[];
|
|
8
|
+
private buttonElement;
|
|
9
|
+
private badgeElement;
|
|
10
|
+
private unwatchQuantity;
|
|
8
11
|
protected template(): HTMLElement[];
|
|
9
12
|
protected afterRender(): void;
|
|
13
|
+
protected disconnected(): void;
|
|
10
14
|
private setupCartBadge;
|
|
15
|
+
private applyCartQuantity;
|
|
11
16
|
}
|
|
@@ -6,8 +6,16 @@ export declare class DrawerComponent extends BaseComponent {
|
|
|
6
6
|
private backdropElement;
|
|
7
7
|
private contentContainer;
|
|
8
8
|
private currentContentType;
|
|
9
|
+
private mode;
|
|
9
10
|
private isTransitioning;
|
|
11
|
+
private readonly focusManager;
|
|
12
|
+
private releaseFocusTrap;
|
|
13
|
+
private focusEntryFrame;
|
|
14
|
+
private contentTeardownTimeout;
|
|
15
|
+
private previousBodyOverflow;
|
|
16
|
+
private pendingFocusKey;
|
|
10
17
|
private readonly boundHandleKeydown;
|
|
18
|
+
private readonly boundHandleBackdropClick;
|
|
11
19
|
constructor();
|
|
12
20
|
disconnected(): void;
|
|
13
21
|
onStoreChanged(changes: IOnStoreChanged[]): boolean;
|
|
@@ -15,6 +23,13 @@ export declare class DrawerComponent extends BaseComponent {
|
|
|
15
23
|
private animateContentSwap;
|
|
16
24
|
private open;
|
|
17
25
|
private close;
|
|
26
|
+
private applyDialogSemantics;
|
|
27
|
+
private setupOverlaySemantics;
|
|
28
|
+
private teardownOverlaySemantics;
|
|
29
|
+
private moveFocusIntoDrawer;
|
|
30
|
+
private getTopLevelHost;
|
|
31
|
+
private scheduleContentTeardown;
|
|
32
|
+
private cancelPendingContentTeardown;
|
|
18
33
|
private cleanupCurrentContent;
|
|
19
34
|
private handleBackdropClick;
|
|
20
35
|
private handleKeydown;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
+
import { type DisplayModeType } from '@/enums';
|
|
2
3
|
export interface IEngravingFormComponentParams {
|
|
3
4
|
identifier: string;
|
|
4
|
-
context: 'product' | 'cart';
|
|
5
|
+
context: 'product' | 'cart' | 'product-list';
|
|
6
|
+
slug?: string;
|
|
5
7
|
lines: string[];
|
|
6
8
|
maxLines: number;
|
|
7
9
|
maxCharsPerLine: number;
|
|
8
10
|
fee: number;
|
|
9
11
|
location?: string;
|
|
12
|
+
displayMode?: DisplayModeType;
|
|
13
|
+
returnFocusKey?: string;
|
|
10
14
|
}
|
|
11
15
|
export declare class EngravingFormComponent extends BaseComponent<IEngravingFormComponentParams, null> {
|
|
12
16
|
get hostClasses(): string[];
|
|
@@ -15,12 +19,15 @@ export declare class EngravingFormComponent extends BaseComponent<IEngravingForm
|
|
|
15
19
|
private addToCartButton;
|
|
16
20
|
private fulfillmentId;
|
|
17
21
|
private partNumber;
|
|
22
|
+
private isPresale;
|
|
18
23
|
beforeConnected(): void;
|
|
19
24
|
private calculateTotalPrice;
|
|
20
25
|
private productInformationSection;
|
|
21
26
|
private addToCartButtonText;
|
|
27
|
+
private getFulfillmentData;
|
|
22
28
|
private retailersSection;
|
|
23
29
|
private engravingLinesSection;
|
|
30
|
+
private returnToCart;
|
|
24
31
|
private actionButtonsSection;
|
|
25
32
|
protected template(): HTMLElement[];
|
|
26
33
|
}
|
|
@@ -2,12 +2,18 @@ import { BaseComponent } from '@/core/base-component.service';
|
|
|
2
2
|
import type { IProductComponent } from '@/interfaces/configs';
|
|
3
3
|
export interface IEngravingViewComponentParams {
|
|
4
4
|
identifier: string;
|
|
5
|
-
context: 'cart' | 'checkout';
|
|
5
|
+
context: 'cart' | 'checkout' | 'product-list';
|
|
6
|
+
slug?: string;
|
|
7
|
+
productListMaxLines?: number;
|
|
8
|
+
productListMaxCharsPerLine?: number;
|
|
9
|
+
productListLocation?: string;
|
|
6
10
|
}
|
|
7
11
|
export declare class EngravingViewComponent extends BaseComponent<IEngravingViewComponentParams, IProductComponent> {
|
|
8
12
|
get hostClasses(): string[];
|
|
9
13
|
private engravingQuantityFee;
|
|
10
14
|
private engravingLines;
|
|
15
|
+
private isEngravingRequired;
|
|
16
|
+
private get editFocusKey();
|
|
11
17
|
private handleEdit;
|
|
12
18
|
private handleRemove;
|
|
13
19
|
protected template(): HTMLElement | HTMLElement[] | string;
|
|
@@ -5,9 +5,13 @@ export interface IInputValidation {
|
|
|
5
5
|
max?: number;
|
|
6
6
|
pattern?: string;
|
|
7
7
|
customValidator?: (value: string) => string | null;
|
|
8
|
+
minYear?: number;
|
|
9
|
+
maxYear?: number;
|
|
10
|
+
minAge?: number;
|
|
11
|
+
maxAge?: number;
|
|
8
12
|
}
|
|
9
13
|
export interface IInputComponentParams {
|
|
10
|
-
inputType: 'text' | 'number' | 'email' | 'tel' | 'date';
|
|
14
|
+
inputType: 'text' | 'number' | 'email' | 'tel' | 'date' | 'birthdate';
|
|
11
15
|
value?: string | null;
|
|
12
16
|
placeholder?: string;
|
|
13
17
|
className?: string;
|
|
@@ -16,21 +20,30 @@ export interface IInputComponentParams {
|
|
|
16
20
|
onValidation?: (isValid: boolean, errors: string[]) => void;
|
|
17
21
|
onChange?: (value: string) => void;
|
|
18
22
|
label?: string;
|
|
23
|
+
ariaLabel?: string;
|
|
19
24
|
name: string;
|
|
20
25
|
autocomplete?: boolean;
|
|
21
26
|
disabled?: boolean;
|
|
22
27
|
}
|
|
23
28
|
export declare class InputComponent extends BaseComponent<IInputComponentParams, null> {
|
|
29
|
+
private readonly uid;
|
|
24
30
|
get hostClasses(): string[];
|
|
31
|
+
private get controlId();
|
|
32
|
+
private get errorContainerId();
|
|
25
33
|
private inputElement;
|
|
26
34
|
private errorContainer;
|
|
27
35
|
private validationTimeout;
|
|
36
|
+
private announceNextErrors;
|
|
37
|
+
private pendingValue;
|
|
28
38
|
private handlePhoneKeydown;
|
|
29
39
|
private formatPhoneNumber;
|
|
30
40
|
private formatDate;
|
|
31
41
|
private validateEmail;
|
|
32
42
|
private validateTel;
|
|
33
43
|
private validateDate;
|
|
44
|
+
private parseDateString;
|
|
45
|
+
private calculateAge;
|
|
46
|
+
private validateDateConstraints;
|
|
34
47
|
private isFieldComplete;
|
|
35
48
|
private validateInput;
|
|
36
49
|
private scheduleValidation;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ComponentType } from '@/enums';
|
|
2
|
-
|
|
2
|
+
import { SafeHTMLElement } from '@/utils/dom-compat';
|
|
3
|
+
export declare class LceElementComponent extends SafeHTMLElement {
|
|
3
4
|
private _initialized;
|
|
4
5
|
protected _container: ShadowRoot | null;
|
|
5
6
|
private _wrappedComponentRerender;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
|
|
2
2
|
import type { IPromoTicker } from '@/interfaces/configs';
|
|
3
3
|
export interface IPromoCodeTickerParams {
|
|
4
|
-
context: 'cart'
|
|
4
|
+
context: 'cart';
|
|
5
5
|
tickers: IPromoTicker[];
|
|
6
6
|
}
|
|
7
7
|
export declare class PromoCodeTickerComponent extends BaseComponent<IPromoCodeTickerParams, null> {
|
|
@@ -2,6 +2,12 @@ import { BaseCommand } from '@/core/command/base-command.service';
|
|
|
2
2
|
import type { IDrawerContentConfig } from '@/core/store/interfaces/core.interface';
|
|
3
3
|
export declare class UICommands extends BaseCommand {
|
|
4
4
|
static getInstance(): UICommands;
|
|
5
|
-
openDrawer(
|
|
5
|
+
openDrawer({ mode, contentType, data, trigger, triggerFallback, }: {
|
|
6
|
+
mode?: 'drawer' | 'modal';
|
|
7
|
+
contentType: IDrawerContentConfig['type'];
|
|
8
|
+
data?: Record<string, any>;
|
|
9
|
+
trigger?: HTMLElement | null;
|
|
10
|
+
triggerFallback?: () => HTMLElement | null;
|
|
11
|
+
}): void;
|
|
6
12
|
closeDrawer(): void;
|
|
7
13
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { DebugMode, ElementsEnv } from '../enums/core.enum';
|
|
2
|
+
export { DEBUG_MODE, ELEMENTS_ENV } from '../enums/core.enum';
|
|
3
|
+
export type { IElementsCheckoutActions, IElementsCheckoutClient, } from '../interfaces/client.interface';
|
|
4
|
+
export type { IInjectedComponent } from '../interfaces/component.interface';
|
|
5
|
+
export type { ILiquidCommerceElementsCheckoutClientConfig } from '../interfaces/config.interface';
|
|
6
|
+
export declare function ElementsCheckout(..._args: any[]): Promise<null>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { SDKError, isSDKError } from '../core/sdk-error-handler';
|
|
2
|
+
export type { CartEventLevel, CartEventType, CheckoutEventLevel, CheckoutEventType, ComponentType, DebugMode, DisplayModeType, ElementsEnv, FulfillmentType, NavigationSourceType, } from '../enums/core.enum';
|
|
3
|
+
export { CART_EVENT_LEVEL, CART_EVENT_TYPE, CHECKOUT_EVENT_LEVEL, CHECKOUT_EVENT_TYPE, COMPONENT_TYPE, DEBUG_MODE, DISPLAY_MODE, ELEMENTS_ACTIONS_EVENT, ELEMENTS_ENV, ELEMENTS_FORM, FULFILLMENT_TYPE, NAVIGATION_SOURCE, } from '../enums/core.enum';
|
|
4
|
+
export type { ILiquidCommerceElementsActions, ILiquidCommerceElementsBuilderClient, ILiquidCommerceElementsClient, } from '../interfaces/client.interface';
|
|
5
|
+
export type { IInjectedComponent } from '../interfaces/component.interface';
|
|
6
|
+
export type { IElementsProxyConfig, ILiquidCommerceElementsBuilderConfig, ILiquidCommerceElementsCheckoutConfig, ILiquidCommerceElementsConfig, ILiquidCommerceElementsDevelopmentConfig, } from '../interfaces/config.interface';
|
|
7
|
+
export type * from '../interfaces/configs';
|
|
8
|
+
export type { IBuilderInjectElementParams, IInjectCheckoutBuilderParams, IInjectCheckoutParams, IInjectProductElement, IInjectProductListFiltersParams, IInjectProductListParams, IInjectProductListSearchParams, ProductListFilterType, } from '../interfaces/injection.interface';
|
|
9
|
+
export declare function Elements(..._args: any[]): Promise<null>;
|
|
10
|
+
export declare function ElementsBuilder(..._args: any[]): Promise<null>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IconProps } from './icon.types';
|
|
2
|
-
export declare const ArrowRightIcon: ({ width, height, className, color }: IconProps) => string;
|
|
2
|
+
export declare const ArrowRightIcon: ({ width, height, className, color, label }: IconProps) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IconProps } from './icon.types';
|
|
2
|
-
export declare const BagIcon: ({ width, height, className, color }: IconProps) => string;
|
|
2
|
+
export declare const BagIcon: ({ width, height, className, color, label }: IconProps) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IconProps } from './icon.types';
|
|
2
|
-
export declare const CheckboxIcon: ({ width, height, className, color }: IconProps) => string;
|
|
2
|
+
export declare const CheckboxIcon: ({ width, height, className, color, label }: IconProps) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IconProps } from './icon.types';
|
|
2
|
-
export declare const ChevronDownIcon: ({ width, height, className, color }: IconProps) => string;
|
|
2
|
+
export declare const ChevronDownIcon: ({ width, height, className, color, label }: IconProps) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IconProps } from './icon.types';
|
|
2
|
-
export declare const ChevronLeftIcon: ({ width, height, className, color }: IconProps) => string;
|
|
2
|
+
export declare const ChevronLeftIcon: ({ width, height, className, color, label }: IconProps) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IconProps } from './icon.types';
|
|
2
|
-
export declare const CloseIcon: ({ width, height, className, color }: IconProps) => string;
|
|
2
|
+
export declare const CloseIcon: ({ width, height, className, color, label }: IconProps) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IconProps } from './icon.types';
|
|
2
|
-
export declare const ErrorInfoIcon: ({ width, height, className, color }: IconProps) => string;
|
|
2
|
+
export declare const ErrorInfoIcon: ({ width, height, className, color, label }: IconProps) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function iconA11yAttributes(label?: string): string;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export * from './arrow-right.icon';
|
|
2
2
|
export * from './bag.icon';
|
|
3
|
+
export * from './check.icon';
|
|
3
4
|
export * from './checkbox.icon';
|
|
4
5
|
export * from './chevron-down.icon';
|
|
5
6
|
export * from './chevron-left.icon';
|
|
7
|
+
export * from './chevron-up.icon';
|
|
6
8
|
export * from './close.icon';
|
|
7
9
|
export * from './error-info.icon';
|
|
10
|
+
export * from './icon.a11y';
|
|
8
11
|
export * from './icon.types';
|
|
9
12
|
export * from './info.icon';
|
|
10
13
|
export * from './loading-spinner.icon';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IconProps } from './icon.types';
|
|
2
|
-
export declare const InfoIcon: ({ width, height, className, color }: IconProps) => string;
|
|
2
|
+
export declare const InfoIcon: ({ width, height, className, color, label }: IconProps) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IconProps } from './icon.types';
|
|
2
|
-
export declare const LoadingSpinnerIcon: ({ width, height, className, color }: IconProps) => string;
|
|
2
|
+
export declare const LoadingSpinnerIcon: ({ width, height, className, color, label }: IconProps) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IconProps } from './icon.types';
|
|
2
|
-
export declare const SearchIcon: ({ width, height, className, color }: IconProps) => string;
|
|
2
|
+
export declare const SearchIcon: ({ width, height, className, color, label }: IconProps) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IconProps } from './icon.types';
|
|
2
|
-
export declare const SuccessIcon: ({ width, height, className, color }: IconProps) => string;
|
|
2
|
+
export declare const SuccessIcon: ({ width, height, className, color, label }: IconProps) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IconProps } from './icon.types';
|
|
2
|
-
export declare const TrashIcon: ({ width, height, className, color }: IconProps) => string;
|
|
2
|
+
export declare const TrashIcon: ({ width, height, className, color, label }: IconProps) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IconProps } from './icon.types';
|
|
2
|
-
export declare const WarningIcon: ({ width, height, className, color }: IconProps) => string;
|
|
2
|
+
export declare const WarningIcon: ({ width, height, className, color, label }: IconProps) => string;
|
|
@@ -1,24 +1,14 @@
|
|
|
1
1
|
export declare function centToDollar(cent: number): number;
|
|
2
2
|
export declare function formatCentToDollarText(cent: number, showZeroDecimals?: boolean): string;
|
|
3
3
|
export declare function htmlStringToElement(htmlString: string): HTMLElement;
|
|
4
|
-
export declare function format24TimeTo12(time24h: string): string;
|
|
5
4
|
export declare function formatISODateToMMDDYYYY(isoDateString: string | null | undefined): string;
|
|
6
|
-
export declare function validateMinimumAge(birthDate: string | Date | null | undefined, minimumAge?: number, minimumYear?: number): {
|
|
7
|
-
isValid: boolean;
|
|
8
|
-
age: number | null;
|
|
9
|
-
error?: string;
|
|
10
|
-
};
|
|
11
|
-
export declare function buildFormattedAddressString(address: {
|
|
12
|
-
one: string;
|
|
13
|
-
two: string;
|
|
14
|
-
city: string;
|
|
15
|
-
state: string;
|
|
16
|
-
zip: string;
|
|
17
|
-
country?: string;
|
|
18
|
-
}): string;
|
|
19
5
|
export declare function capitalizeFirstLetter(text: string): string;
|
|
20
6
|
export declare function splitCategoryPath(catPath?: string): {
|
|
21
7
|
category: string;
|
|
22
8
|
category2: string;
|
|
23
9
|
category3: string;
|
|
24
10
|
};
|
|
11
|
+
export declare function normalizeEngravingLines(lines: readonly (string | null | undefined)[] | null | undefined): string[];
|
|
12
|
+
export declare function normalizeText<T extends string | null | undefined>(value: T): T;
|
|
13
|
+
export declare function normalizeEmail<T extends string | null | undefined>(value: T): T;
|
|
14
|
+
export declare function normalizeCode<T extends string | null | undefined>(value: T): T;
|