@nymbalhq/web-components 1.1.0 → 1.3.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/astro/NymbalElement.astro +19 -0
- package/dist/base-element-CPMgAdyQ.d.ts +91 -0
- package/dist/chunk-2TPQNQYO.js +155 -0
- package/dist/chunk-2TPQNQYO.js.map +1 -0
- package/dist/chunk-2XXBQPDB.js +113 -0
- package/dist/chunk-2XXBQPDB.js.map +1 -0
- package/dist/chunk-42SSME5H.js +84 -0
- package/dist/chunk-42SSME5H.js.map +1 -0
- package/dist/chunk-4COVK727.js +204 -0
- package/dist/chunk-4COVK727.js.map +1 -0
- package/dist/chunk-5G3C53A2.js +666 -0
- package/dist/chunk-5G3C53A2.js.map +1 -0
- package/dist/chunk-5VWZ2U5K.js +149 -0
- package/dist/chunk-5VWZ2U5K.js.map +1 -0
- package/dist/chunk-7JAAOVCE.js +114 -0
- package/dist/chunk-7JAAOVCE.js.map +1 -0
- package/dist/chunk-B73QVSA5.js +206 -0
- package/dist/chunk-B73QVSA5.js.map +1 -0
- package/dist/chunk-DR5QB5VN.js +17 -0
- package/dist/chunk-DR5QB5VN.js.map +1 -0
- package/dist/chunk-DXWMNB5F.js +70 -0
- package/dist/chunk-DXWMNB5F.js.map +1 -0
- package/dist/chunk-EBMA7JGV.js +130 -0
- package/dist/chunk-EBMA7JGV.js.map +1 -0
- package/dist/chunk-EYDMJNNK.js +176 -0
- package/dist/chunk-EYDMJNNK.js.map +1 -0
- package/dist/chunk-FIF6GQ6U.js +141 -0
- package/dist/chunk-FIF6GQ6U.js.map +1 -0
- package/dist/chunk-GHXTJ2CF.js +109 -0
- package/dist/chunk-GHXTJ2CF.js.map +1 -0
- package/dist/chunk-H3ZBYNHV.js +153 -0
- package/dist/chunk-H3ZBYNHV.js.map +1 -0
- package/dist/chunk-HPBC3OG7.js +174 -0
- package/dist/chunk-HPBC3OG7.js.map +1 -0
- package/dist/chunk-IYT7VXFS.js +105 -0
- package/dist/chunk-IYT7VXFS.js.map +1 -0
- package/dist/chunk-LHYXNQWY.js +105 -0
- package/dist/chunk-LHYXNQWY.js.map +1 -0
- package/dist/chunk-LO2EW5YP.js +25 -0
- package/dist/chunk-LO2EW5YP.js.map +1 -0
- package/dist/chunk-LSQPUZK6.js +291 -0
- package/dist/chunk-LSQPUZK6.js.map +1 -0
- package/dist/chunk-N4Y5DI4X.js +82 -0
- package/dist/chunk-N4Y5DI4X.js.map +1 -0
- package/dist/chunk-NE6UHTOT.js +148 -0
- package/dist/chunk-NE6UHTOT.js.map +1 -0
- package/dist/chunk-NW47OJVN.js +138 -0
- package/dist/chunk-NW47OJVN.js.map +1 -0
- package/dist/chunk-O2YKCDR2.js +77 -0
- package/dist/chunk-O2YKCDR2.js.map +1 -0
- package/dist/chunk-PN6QKYE4.js +71 -0
- package/dist/chunk-PN6QKYE4.js.map +1 -0
- package/dist/chunk-RAOGZH3Z.js +188 -0
- package/dist/chunk-RAOGZH3Z.js.map +1 -0
- package/dist/chunk-RVSKX2RX.js +11 -0
- package/dist/chunk-RVSKX2RX.js.map +1 -0
- package/dist/chunk-RZVFA3N5.js +154 -0
- package/dist/chunk-RZVFA3N5.js.map +1 -0
- package/dist/chunk-SM7TASEW.js +135 -0
- package/dist/chunk-SM7TASEW.js.map +1 -0
- package/dist/chunk-U2PU4CWB.js +124 -0
- package/dist/chunk-U2PU4CWB.js.map +1 -0
- package/dist/chunk-UCEVCLQ7.js +5 -0
- package/dist/chunk-UCEVCLQ7.js.map +1 -0
- package/dist/chunk-UYSZOEOA.js +32 -0
- package/dist/chunk-UYSZOEOA.js.map +1 -0
- package/dist/chunk-V55K2CS5.js +126 -0
- package/dist/chunk-V55K2CS5.js.map +1 -0
- package/dist/chunk-VTQVGNVC.js +346 -0
- package/dist/chunk-VTQVGNVC.js.map +1 -0
- package/dist/chunk-W23P7SI4.js +239 -0
- package/dist/chunk-W23P7SI4.js.map +1 -0
- package/dist/chunk-W7D3STJH.js +279 -0
- package/dist/chunk-W7D3STJH.js.map +1 -0
- package/dist/chunk-WEEHXWM3.js +172 -0
- package/dist/chunk-WEEHXWM3.js.map +1 -0
- package/dist/chunk-WTEVTCIL.js +128 -0
- package/dist/chunk-WTEVTCIL.js.map +1 -0
- package/dist/chunk-XPFGMYBV.js +137 -0
- package/dist/chunk-XPFGMYBV.js.map +1 -0
- package/dist/elements/nymbal-add-to-cart.d.ts +14 -0
- package/dist/elements/nymbal-add-to-cart.js +10 -0
- package/dist/elements/nymbal-add-to-cart.js.map +1 -0
- package/dist/elements/nymbal-address-book.d.ts +30 -0
- package/dist/elements/nymbal-address-book.js +13 -0
- package/dist/elements/nymbal-address-book.js.map +1 -0
- package/dist/elements/nymbal-address-form.d.ts +29 -0
- package/dist/elements/nymbal-address-form.js +12 -0
- package/dist/elements/nymbal-address-form.js.map +1 -0
- package/dist/elements/nymbal-breadcrumb.d.ts +15 -0
- package/dist/elements/nymbal-breadcrumb.js +11 -0
- package/dist/elements/nymbal-breadcrumb.js.map +1 -0
- package/dist/elements/nymbal-cart-drawer.d.ts +24 -0
- package/dist/elements/nymbal-cart-drawer.js +11 -0
- package/dist/elements/nymbal-cart-drawer.js.map +1 -0
- package/dist/elements/nymbal-cart-page.d.ts +20 -0
- package/dist/elements/nymbal-cart-page.js +14 -0
- package/dist/elements/nymbal-cart-page.js.map +1 -0
- package/dist/elements/nymbal-category-nav.d.ts +15 -0
- package/dist/elements/nymbal-category-nav.js +11 -0
- package/dist/elements/nymbal-category-nav.js.map +1 -0
- package/dist/elements/nymbal-checkout.d.ts +77 -0
- package/dist/elements/nymbal-checkout.js +15 -0
- package/dist/elements/nymbal-checkout.js.map +1 -0
- package/dist/elements/nymbal-image-gallery.d.ts +19 -0
- package/dist/elements/nymbal-image-gallery.js +10 -0
- package/dist/elements/nymbal-image-gallery.js.map +1 -0
- package/dist/elements/nymbal-login-form.d.ts +17 -0
- package/dist/elements/nymbal-login-form.js +12 -0
- package/dist/elements/nymbal-login-form.js.map +1 -0
- package/dist/elements/nymbal-mini-cart.d.ts +17 -0
- package/dist/elements/nymbal-mini-cart.js +10 -0
- package/dist/elements/nymbal-mini-cart.js.map +1 -0
- package/dist/elements/nymbal-order-summary.d.ts +20 -0
- package/dist/elements/nymbal-order-summary.js +11 -0
- package/dist/elements/nymbal-order-summary.js.map +1 -0
- package/dist/elements/nymbal-payment-element.d.ts +4 -0
- package/dist/elements/nymbal-payment-element.js +10 -0
- package/dist/elements/nymbal-payment-element.js.map +1 -0
- package/dist/elements/nymbal-product-card.d.ts +4 -0
- package/dist/elements/nymbal-product-card.js +12 -0
- package/dist/elements/nymbal-product-card.js.map +1 -0
- package/dist/elements/nymbal-product-filter.d.ts +32 -0
- package/dist/elements/nymbal-product-filter.js +10 -0
- package/dist/elements/nymbal-product-filter.js.map +1 -0
- package/dist/elements/nymbal-product-grid.d.ts +24 -0
- package/dist/elements/nymbal-product-grid.js +14 -0
- package/dist/elements/nymbal-product-grid.js.map +1 -0
- package/dist/elements/nymbal-product-price.d.ts +18 -0
- package/dist/elements/nymbal-product-price.js +12 -0
- package/dist/elements/nymbal-product-price.js.map +1 -0
- package/dist/elements/nymbal-profile-form.d.ts +19 -0
- package/dist/elements/nymbal-profile-form.js +12 -0
- package/dist/elements/nymbal-profile-form.js.map +1 -0
- package/dist/elements/nymbal-quantity-selector.d.ts +20 -0
- package/dist/elements/nymbal-quantity-selector.js +10 -0
- package/dist/elements/nymbal-quantity-selector.js.map +1 -0
- package/dist/elements/nymbal-register-form.d.ts +17 -0
- package/dist/elements/nymbal-register-form.js +12 -0
- package/dist/elements/nymbal-register-form.js.map +1 -0
- package/dist/elements/nymbal-review-form.d.ts +17 -0
- package/dist/elements/nymbal-review-form.js +12 -0
- package/dist/elements/nymbal-review-form.js.map +1 -0
- package/dist/elements/nymbal-review-list.d.ts +14 -0
- package/dist/elements/nymbal-review-list.js +10 -0
- package/dist/elements/nymbal-review-list.js.map +1 -0
- package/dist/elements/nymbal-search-bar.d.ts +19 -0
- package/dist/elements/nymbal-search-bar.js +10 -0
- package/dist/elements/nymbal-search-bar.js.map +1 -0
- package/dist/elements/nymbal-search-results.d.ts +29 -0
- package/dist/elements/nymbal-search-results.js +14 -0
- package/dist/elements/nymbal-search-results.js.map +1 -0
- package/dist/elements/nymbal-site-footer.d.ts +15 -0
- package/dist/elements/nymbal-site-footer.js +11 -0
- package/dist/elements/nymbal-site-footer.js.map +1 -0
- package/dist/elements/nymbal-site-header.d.ts +19 -0
- package/dist/elements/nymbal-site-header.js +11 -0
- package/dist/elements/nymbal-site-header.js.map +1 -0
- package/dist/elements/nymbal-sort-dropdown.d.ts +28 -0
- package/dist/elements/nymbal-sort-dropdown.js +10 -0
- package/dist/elements/nymbal-sort-dropdown.js.map +1 -0
- package/dist/elements/nymbal-stock-badge.d.ts +16 -0
- package/dist/elements/nymbal-stock-badge.js +11 -0
- package/dist/elements/nymbal-stock-badge.js.map +1 -0
- package/dist/elements/nymbal-toast.d.ts +18 -0
- package/dist/elements/nymbal-toast.js +10 -0
- package/dist/elements/nymbal-toast.js.map +1 -0
- package/dist/elements/nymbal-variant-selector.d.ts +16 -0
- package/dist/elements/nymbal-variant-selector.js +10 -0
- package/dist/elements/nymbal-variant-selector.js.map +1 -0
- package/dist/form-element-C-qo3gpD.d.ts +25 -0
- package/dist/hydrate-support.d.ts +2 -0
- package/dist/hydrate-support.js +3 -0
- package/dist/hydrate-support.js.map +1 -0
- package/dist/index.d.ts +38 -157
- package/dist/index.js +127 -1407
- package/dist/index.js.map +1 -1
- package/dist/nymbal-payment-element-Bt8EF42T.d.ts +51 -0
- package/dist/nymbal-product-card-C8HkE_rG.d.ts +47 -0
- package/dist/register-components.d.ts +46 -0
- package/dist/register-components.js +48 -0
- package/dist/register-components.js.map +1 -0
- package/dist/selected-variant-Dym0shlJ.d.ts +23 -0
- package/dist/ssr/index.d.ts +30 -0
- package/dist/ssr/index.js +143 -0
- package/dist/ssr/index.js.map +1 -0
- package/package.json +33 -6
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalCartDrawer
|
|
4
|
+
} from "../chunk-LSQPUZK6.js";
|
|
5
|
+
import "../chunk-DR5QB5VN.js";
|
|
6
|
+
import "../chunk-EYDMJNNK.js";
|
|
7
|
+
import "../chunk-UCEVCLQ7.js";
|
|
8
|
+
export {
|
|
9
|
+
NymbalCartDrawer
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=nymbal-cart-drawer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as _nymbalhq_sdk from '@nymbalhq/sdk';
|
|
2
|
+
import * as lit from 'lit';
|
|
3
|
+
import { NymbalElement, ElementSchema } from '../index.js';
|
|
4
|
+
import { NymbalQuantitySelector } from './nymbal-quantity-selector.js';
|
|
5
|
+
|
|
6
|
+
/** The cart as a page: its lines, quantities and removal, and a summary whose subtotal is the API's. */
|
|
7
|
+
declare class NymbalCartPage extends NymbalElement {
|
|
8
|
+
static schema: ElementSchema;
|
|
9
|
+
static uses: (typeof NymbalQuantitySelector)[];
|
|
10
|
+
static properties: lit.PropertyDeclarations;
|
|
11
|
+
static styles: lit.CSSResult[];
|
|
12
|
+
cart: unknown;
|
|
13
|
+
protected stores(): _nymbalhq_sdk.CartStore[];
|
|
14
|
+
protected storeSettled(): void;
|
|
15
|
+
/** The first line's image is at the top of the page and is often its LCP, so only the lines below it load lazily. */
|
|
16
|
+
private renderLine;
|
|
17
|
+
protected render(): lit.TemplateResult<1>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { NymbalCartPage };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalCartPage
|
|
4
|
+
} from "../chunk-VTQVGNVC.js";
|
|
5
|
+
import "../chunk-HPBC3OG7.js";
|
|
6
|
+
import "../chunk-RVSKX2RX.js";
|
|
7
|
+
import "../chunk-GHXTJ2CF.js";
|
|
8
|
+
import "../chunk-DR5QB5VN.js";
|
|
9
|
+
import "../chunk-EYDMJNNK.js";
|
|
10
|
+
import "../chunk-UCEVCLQ7.js";
|
|
11
|
+
export {
|
|
12
|
+
NymbalCartPage
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=nymbal-cart-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { nothing } from 'lit';
|
|
3
|
+
import { NymbalElement, ElementSchema } from '../index.js';
|
|
4
|
+
import '@nymbalhq/sdk';
|
|
5
|
+
|
|
6
|
+
/** A card per category, each a link to its listing. */
|
|
7
|
+
declare class NymbalCategoryNav extends NymbalElement {
|
|
8
|
+
static schema: ElementSchema;
|
|
9
|
+
static properties: lit.PropertyDeclarations;
|
|
10
|
+
static styles: lit.CSSResult[];
|
|
11
|
+
categories: unknown;
|
|
12
|
+
protected render(): typeof nothing | lit.TemplateResult<1>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { NymbalCategoryNav };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalCategoryNav
|
|
4
|
+
} from "../chunk-IYT7VXFS.js";
|
|
5
|
+
import "../chunk-LO2EW5YP.js";
|
|
6
|
+
import "../chunk-EYDMJNNK.js";
|
|
7
|
+
import "../chunk-UCEVCLQ7.js";
|
|
8
|
+
export {
|
|
9
|
+
NymbalCategoryNav
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=nymbal-category-nav.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as _nymbalhq_sdk from '@nymbalhq/sdk';
|
|
2
|
+
import * as lit from 'lit';
|
|
3
|
+
import { NymbalElement, ElementSchema } from '../index.js';
|
|
4
|
+
import { NymbalAddressForm } from './nymbal-address-form.js';
|
|
5
|
+
import '@nymbalhq/types';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The checkout: contact, shipping, then payment with billing, beside the order summary. It drives the SDK's checkout
|
|
9
|
+
* store, and on an order dispatches `nymbal:checkout:placed`; the page navigates. The payment element is the page's
|
|
10
|
+
* light-DOM child in the `payment` slot, so the payment driver's UI shares the document tree and is mounted once.
|
|
11
|
+
*/
|
|
12
|
+
declare class NymbalCheckout extends NymbalElement {
|
|
13
|
+
static schema: ElementSchema;
|
|
14
|
+
static uses: (typeof NymbalAddressForm)[];
|
|
15
|
+
static properties: lit.PropertyDeclarations;
|
|
16
|
+
static styles: lit.CSSResult[];
|
|
17
|
+
private step;
|
|
18
|
+
private error;
|
|
19
|
+
private billingSame;
|
|
20
|
+
private placing;
|
|
21
|
+
private placed;
|
|
22
|
+
/** True from a step change until the next animation frame, so a second click of a double click is ignored. */
|
|
23
|
+
private stepChanging;
|
|
24
|
+
private stepTurn;
|
|
25
|
+
private heightRelease;
|
|
26
|
+
cart: unknown;
|
|
27
|
+
protected stores(): _nymbalhq_sdk.CartStore[];
|
|
28
|
+
protected storeSettled(): void;
|
|
29
|
+
connectedCallback(): void;
|
|
30
|
+
disconnectedCallback(): void;
|
|
31
|
+
private readonly onPaymentStatus;
|
|
32
|
+
private paymentElement;
|
|
33
|
+
/**
|
|
34
|
+
* Read at each render, so a status the child reached during its own upgrade, before this listened, still holds.
|
|
35
|
+
* Without a client (a server render) there is no light DOM to read, and no order to place.
|
|
36
|
+
*/
|
|
37
|
+
private paymentBlocked;
|
|
38
|
+
private addressForm;
|
|
39
|
+
private go;
|
|
40
|
+
/**
|
|
41
|
+
* Keeps the main column at least as tall as the step it replaces until a double click is over. A shorter next step
|
|
42
|
+
* would shorten the page under a still cursor, and the second click would land on whatever rose there (a footer
|
|
43
|
+
* link), outside this element, where neither multi-click guard sees it. Released after 600 ms, past the 500 ms an OS
|
|
44
|
+
* allows between the two clicks of a double click, so the column then settles to the shown step's own height.
|
|
45
|
+
*/
|
|
46
|
+
private holdMainHeight;
|
|
47
|
+
private releaseMainHeight;
|
|
48
|
+
private showError;
|
|
49
|
+
/**
|
|
50
|
+
* Whether a submit of `step`'s form goes ahead. The step setters are synchronous, so by a double click's second
|
|
51
|
+
* click the next step has rendered under the cursor: a submit in the frame of a step change is not the shopper's.
|
|
52
|
+
*/
|
|
53
|
+
private accepts;
|
|
54
|
+
/** The second click of a multi-click is not a decision to continue or to pay; the first one already submitted. */
|
|
55
|
+
private readonly onSubmitClick;
|
|
56
|
+
private readonly onContact;
|
|
57
|
+
private readonly onShipping;
|
|
58
|
+
private billingAddress;
|
|
59
|
+
private readonly onPlace;
|
|
60
|
+
/** Calls the SDK before its first `await`, so the in-flight flag set by the caller covers the order request. */
|
|
61
|
+
private place;
|
|
62
|
+
private confirm;
|
|
63
|
+
private stay;
|
|
64
|
+
/** Place Order stays disabled from here through the page's navigation. */
|
|
65
|
+
private leaveFor;
|
|
66
|
+
private readonly onBillingSame;
|
|
67
|
+
private back;
|
|
68
|
+
private renderSteps;
|
|
69
|
+
private renderContact;
|
|
70
|
+
private renderShipping;
|
|
71
|
+
private renderPayment;
|
|
72
|
+
private renderLine;
|
|
73
|
+
private renderSummary;
|
|
74
|
+
protected render(): lit.TemplateResult<1>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { NymbalCheckout };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalCheckout
|
|
4
|
+
} from "../chunk-5G3C53A2.js";
|
|
5
|
+
import "../chunk-RVSKX2RX.js";
|
|
6
|
+
import "../chunk-V55K2CS5.js";
|
|
7
|
+
import "../chunk-PN6QKYE4.js";
|
|
8
|
+
import "../chunk-GHXTJ2CF.js";
|
|
9
|
+
import "../chunk-DR5QB5VN.js";
|
|
10
|
+
import "../chunk-EYDMJNNK.js";
|
|
11
|
+
import "../chunk-UCEVCLQ7.js";
|
|
12
|
+
export {
|
|
13
|
+
NymbalCheckout
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=nymbal-checkout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { PropertyValues, nothing } from 'lit';
|
|
3
|
+
import { NymbalElement, ElementSchema } from '../index.js';
|
|
4
|
+
import '@nymbalhq/sdk';
|
|
5
|
+
|
|
6
|
+
/** A product's images: the one shown, and a thumbnail per image (when there are several) that shows it. */
|
|
7
|
+
declare class NymbalImageGallery extends NymbalElement {
|
|
8
|
+
static schema: ElementSchema;
|
|
9
|
+
static properties: lit.PropertyDeclarations;
|
|
10
|
+
static styles: lit.CSSResult[];
|
|
11
|
+
images: unknown;
|
|
12
|
+
/** The image shown; a new list of images starts again at its first. */
|
|
13
|
+
private shownIndex;
|
|
14
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
15
|
+
private show;
|
|
16
|
+
protected render(): typeof nothing | lit.TemplateResult<1>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { NymbalImageGallery };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalImageGallery
|
|
4
|
+
} from "../chunk-U2PU4CWB.js";
|
|
5
|
+
import "../chunk-EYDMJNNK.js";
|
|
6
|
+
import "../chunk-UCEVCLQ7.js";
|
|
7
|
+
export {
|
|
8
|
+
NymbalImageGallery
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=nymbal-image-gallery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { ElementSchema } from '../index.js';
|
|
3
|
+
import { N as NymbalFormElement } from '../form-element-C-qo3gpD.js';
|
|
4
|
+
import '@nymbalhq/sdk';
|
|
5
|
+
|
|
6
|
+
/** Signs the shopper in; the page decides where they go next (`nymbal:auth:signed-in`). */
|
|
7
|
+
declare class NymbalLoginForm extends NymbalFormElement {
|
|
8
|
+
static schema: ElementSchema;
|
|
9
|
+
static properties: lit.PropertyDeclarations;
|
|
10
|
+
static styles: lit.CSSResult[];
|
|
11
|
+
protected readonly lockOnSuccess = true;
|
|
12
|
+
protected send(): Promise<void>;
|
|
13
|
+
protected failureText(err: unknown): string;
|
|
14
|
+
protected render(): lit.TemplateResult<1>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { NymbalLoginForm };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalLoginForm
|
|
4
|
+
} from "../chunk-42SSME5H.js";
|
|
5
|
+
import "../chunk-PN6QKYE4.js";
|
|
6
|
+
import "../chunk-GHXTJ2CF.js";
|
|
7
|
+
import "../chunk-EYDMJNNK.js";
|
|
8
|
+
import "../chunk-UCEVCLQ7.js";
|
|
9
|
+
export {
|
|
10
|
+
NymbalLoginForm
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=nymbal-login-form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as _nymbalhq_sdk from '@nymbalhq/sdk';
|
|
2
|
+
import * as lit from 'lit';
|
|
3
|
+
import { NymbalElement, ElementSchema } from '../index.js';
|
|
4
|
+
|
|
5
|
+
declare class NymbalMiniCart extends NymbalElement {
|
|
6
|
+
static schema: ElementSchema;
|
|
7
|
+
static properties: lit.PropertyDeclarations;
|
|
8
|
+
static styles: lit.CSSResult[];
|
|
9
|
+
count: number | undefined;
|
|
10
|
+
protected stores(): _nymbalhq_sdk.CartStore[];
|
|
11
|
+
protected storeSettled(): void;
|
|
12
|
+
private itemCount;
|
|
13
|
+
protected render(): lit.TemplateResult<1>;
|
|
14
|
+
private handleClick;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { NymbalMiniCart };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalMiniCart
|
|
4
|
+
} from "../chunk-2XXBQPDB.js";
|
|
5
|
+
import "../chunk-EYDMJNNK.js";
|
|
6
|
+
import "../chunk-UCEVCLQ7.js";
|
|
7
|
+
export {
|
|
8
|
+
NymbalMiniCart
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=nymbal-mini-cart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { NymbalElement, ElementSchema } from '../index.js';
|
|
3
|
+
import '@nymbalhq/sdk';
|
|
4
|
+
|
|
5
|
+
/** A placed order's lines, subtotal, discount (when there is one), shipping, tax and total. */
|
|
6
|
+
declare class NymbalOrderSummary extends NymbalElement {
|
|
7
|
+
static schema: ElementSchema;
|
|
8
|
+
static properties: lit.PropertyDeclarations;
|
|
9
|
+
static styles: lit.CSSResult[];
|
|
10
|
+
items: unknown;
|
|
11
|
+
subtotalMinor: number | undefined;
|
|
12
|
+
discountMinor: number | undefined;
|
|
13
|
+
shippingMinor: number | undefined;
|
|
14
|
+
taxMinor: number | undefined;
|
|
15
|
+
totalMinor: number | undefined;
|
|
16
|
+
currency: string | undefined;
|
|
17
|
+
protected render(): lit.TemplateResult<1>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { NymbalOrderSummary };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalOrderSummary
|
|
4
|
+
} from "../chunk-SM7TASEW.js";
|
|
5
|
+
import "../chunk-RVSKX2RX.js";
|
|
6
|
+
import "../chunk-EYDMJNNK.js";
|
|
7
|
+
import "../chunk-UCEVCLQ7.js";
|
|
8
|
+
export {
|
|
9
|
+
NymbalOrderSummary
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=nymbal-order-summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalPaymentElement
|
|
4
|
+
} from "../chunk-W7D3STJH.js";
|
|
5
|
+
import "../chunk-EYDMJNNK.js";
|
|
6
|
+
import "../chunk-UCEVCLQ7.js";
|
|
7
|
+
export {
|
|
8
|
+
NymbalPaymentElement
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=nymbal-payment-element.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalProductCard
|
|
4
|
+
} from "../chunk-RZVFA3N5.js";
|
|
5
|
+
import "../chunk-RVSKX2RX.js";
|
|
6
|
+
import "../chunk-LO2EW5YP.js";
|
|
7
|
+
import "../chunk-EYDMJNNK.js";
|
|
8
|
+
import "../chunk-UCEVCLQ7.js";
|
|
9
|
+
export {
|
|
10
|
+
NymbalProductCard
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=nymbal-product-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as _nymbalhq_sdk from '@nymbalhq/sdk';
|
|
2
|
+
import * as lit from 'lit';
|
|
3
|
+
import { PropertyValues } from 'lit';
|
|
4
|
+
import { S as Subscribable } from '../base-element-CPMgAdyQ.js';
|
|
5
|
+
import { NymbalElement, ElementSchema } from '../index.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The facet filter. By default it reads the `facets` attribute and filters the product list. With `source="search"`
|
|
9
|
+
* it renders the search's own facets and narrows the search to one category: choosing an option selects it, choosing
|
|
10
|
+
* the selected option again clears it. The host carries `empty` while it renders no facet, so a page can lay out
|
|
11
|
+
* around it (its light DOM is always empty).
|
|
12
|
+
*/
|
|
13
|
+
declare class NymbalProductFilter extends NymbalElement {
|
|
14
|
+
static schema: ElementSchema;
|
|
15
|
+
static properties: lit.PropertyDeclarations;
|
|
16
|
+
static styles: lit.CSSResult[];
|
|
17
|
+
facets: unknown;
|
|
18
|
+
/** Both: a wrapper may set `source` after the element has connected. */
|
|
19
|
+
protected stores(): (_nymbalhq_sdk.SearchStore | _nymbalhq_sdk.ProductListStore)[];
|
|
20
|
+
/** With `source="search"` the `facets` a server read stand until the search settles; a listing's always show. */
|
|
21
|
+
protected storeSettled(store: Subscribable): void;
|
|
22
|
+
/** The facets this render shows, and whether each value is checked. */
|
|
23
|
+
private shown;
|
|
24
|
+
private _shown;
|
|
25
|
+
protected willUpdate(_changed: PropertyValues): void;
|
|
26
|
+
protected render(): lit.TemplateResult<1>[];
|
|
27
|
+
private handleChange;
|
|
28
|
+
private emit;
|
|
29
|
+
private facetsAttribute;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { NymbalProductFilter };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalProductFilter
|
|
4
|
+
} from "../chunk-WEEHXWM3.js";
|
|
5
|
+
import "../chunk-EYDMJNNK.js";
|
|
6
|
+
import "../chunk-UCEVCLQ7.js";
|
|
7
|
+
export {
|
|
8
|
+
NymbalProductFilter
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=nymbal-product-filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as _nymbalhq_sdk from '@nymbalhq/sdk';
|
|
2
|
+
import * as lit from 'lit';
|
|
3
|
+
import { NymbalElement, ElementSchema } from '../index.js';
|
|
4
|
+
import { NymbalProductCard } from './nymbal-product-card.js';
|
|
5
|
+
|
|
6
|
+
/** A grid of `nymbal-product-card`s, a listing's (following the product-list store) or a static one. */
|
|
7
|
+
declare class NymbalProductGrid extends NymbalElement {
|
|
8
|
+
static schema: ElementSchema;
|
|
9
|
+
static uses: (typeof NymbalProductCard)[];
|
|
10
|
+
static properties: lit.PropertyDeclarations;
|
|
11
|
+
static styles: lit.CSSResult[];
|
|
12
|
+
products: unknown;
|
|
13
|
+
source: string | undefined;
|
|
14
|
+
hasMore: boolean | undefined;
|
|
15
|
+
lazy: boolean | undefined;
|
|
16
|
+
private get listing();
|
|
17
|
+
protected stores(): _nymbalhq_sdk.ProductListStore[];
|
|
18
|
+
protected storeSettled(): void;
|
|
19
|
+
/** The server's cards while they stand, else (a listing with a client) the product-list store's. */
|
|
20
|
+
private shown;
|
|
21
|
+
protected render(): lit.TemplateResult<1>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { NymbalProductGrid };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalProductGrid
|
|
4
|
+
} from "../chunk-5VWZ2U5K.js";
|
|
5
|
+
import "../chunk-RZVFA3N5.js";
|
|
6
|
+
import "../chunk-RVSKX2RX.js";
|
|
7
|
+
import "../chunk-GHXTJ2CF.js";
|
|
8
|
+
import "../chunk-LO2EW5YP.js";
|
|
9
|
+
import "../chunk-EYDMJNNK.js";
|
|
10
|
+
import "../chunk-UCEVCLQ7.js";
|
|
11
|
+
export {
|
|
12
|
+
NymbalProductGrid
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=nymbal-product-grid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { nothing } from 'lit';
|
|
3
|
+
import { ElementSchema } from '../index.js';
|
|
4
|
+
import { N as NymbalVariantElement } from '../selected-variant-Dym0shlJ.js';
|
|
5
|
+
import '@nymbalhq/sdk';
|
|
6
|
+
|
|
7
|
+
/** A product page's price: the selected variant's once the product store holds this product. */
|
|
8
|
+
declare class NymbalProductPrice extends NymbalVariantElement {
|
|
9
|
+
static schema: ElementSchema;
|
|
10
|
+
static properties: lit.PropertyDeclarations;
|
|
11
|
+
static styles: lit.CSSResult[];
|
|
12
|
+
priceMinor: number | undefined;
|
|
13
|
+
currency: string | undefined;
|
|
14
|
+
compareAtMinor: number | undefined;
|
|
15
|
+
protected render(): typeof nothing | lit.TemplateResult<1>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { NymbalProductPrice };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalProductPrice
|
|
4
|
+
} from "../chunk-DXWMNB5F.js";
|
|
5
|
+
import "../chunk-UYSZOEOA.js";
|
|
6
|
+
import "../chunk-RVSKX2RX.js";
|
|
7
|
+
import "../chunk-EYDMJNNK.js";
|
|
8
|
+
import "../chunk-UCEVCLQ7.js";
|
|
9
|
+
export {
|
|
10
|
+
NymbalProductPrice
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=nymbal-product-price.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as _nymbalhq_sdk from '@nymbalhq/sdk';
|
|
2
|
+
import * as lit from 'lit';
|
|
3
|
+
import { ElementSchema } from '../index.js';
|
|
4
|
+
import { N as NymbalFormElement } from '../form-element-C-qo3gpD.js';
|
|
5
|
+
|
|
6
|
+
/** The signed-in customer's name and phone, filled from the auth store and saved through it. */
|
|
7
|
+
declare class NymbalProfileForm extends NymbalFormElement {
|
|
8
|
+
static schema: ElementSchema;
|
|
9
|
+
static properties: lit.PropertyDeclarations;
|
|
10
|
+
static styles: lit.CSSResult[];
|
|
11
|
+
customer: unknown;
|
|
12
|
+
protected stores(): _nymbalhq_sdk.AuthStore[];
|
|
13
|
+
protected storeSettled(): void;
|
|
14
|
+
protected send(): Promise<void>;
|
|
15
|
+
protected failureText(err: unknown): string;
|
|
16
|
+
protected render(): lit.TemplateResult<1>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { NymbalProfileForm };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalProfileForm
|
|
4
|
+
} from "../chunk-WTEVTCIL.js";
|
|
5
|
+
import "../chunk-PN6QKYE4.js";
|
|
6
|
+
import "../chunk-GHXTJ2CF.js";
|
|
7
|
+
import "../chunk-EYDMJNNK.js";
|
|
8
|
+
import "../chunk-UCEVCLQ7.js";
|
|
9
|
+
export {
|
|
10
|
+
NymbalProfileForm
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=nymbal-profile-form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { PropertyValues } from 'lit';
|
|
3
|
+
import { NymbalElement, ElementSchema } from '../index.js';
|
|
4
|
+
import '@nymbalhq/sdk';
|
|
5
|
+
|
|
6
|
+
declare class NymbalQuantitySelector extends NymbalElement {
|
|
7
|
+
static schema: ElementSchema;
|
|
8
|
+
static properties: lit.PropertyDeclarations;
|
|
9
|
+
static styles: lit.CSSResult[];
|
|
10
|
+
private _value;
|
|
11
|
+
private bounds;
|
|
12
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
13
|
+
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
|
|
14
|
+
protected render(): lit.TemplateResult<1>;
|
|
15
|
+
private step;
|
|
16
|
+
private handleChange;
|
|
17
|
+
private emitChange;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { NymbalQuantitySelector };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalQuantitySelector
|
|
4
|
+
} from "../chunk-HPBC3OG7.js";
|
|
5
|
+
import "../chunk-EYDMJNNK.js";
|
|
6
|
+
import "../chunk-UCEVCLQ7.js";
|
|
7
|
+
export {
|
|
8
|
+
NymbalQuantitySelector
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=nymbal-quantity-selector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { ElementSchema } from '../index.js';
|
|
3
|
+
import { N as NymbalFormElement } from '../form-element-C-qo3gpD.js';
|
|
4
|
+
import '@nymbalhq/sdk';
|
|
5
|
+
|
|
6
|
+
/** Creates the shopper's account and signs them in; the page decides where they go next. */
|
|
7
|
+
declare class NymbalRegisterForm extends NymbalFormElement {
|
|
8
|
+
static schema: ElementSchema;
|
|
9
|
+
static properties: lit.PropertyDeclarations;
|
|
10
|
+
static styles: lit.CSSResult[];
|
|
11
|
+
protected readonly lockOnSuccess = true;
|
|
12
|
+
protected send(): Promise<void>;
|
|
13
|
+
protected failureText(err: unknown): string;
|
|
14
|
+
protected render(): lit.TemplateResult<1>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { NymbalRegisterForm };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalRegisterForm
|
|
4
|
+
} from "../chunk-NW47OJVN.js";
|
|
5
|
+
import "../chunk-PN6QKYE4.js";
|
|
6
|
+
import "../chunk-GHXTJ2CF.js";
|
|
7
|
+
import "../chunk-EYDMJNNK.js";
|
|
8
|
+
import "../chunk-UCEVCLQ7.js";
|
|
9
|
+
export {
|
|
10
|
+
NymbalRegisterForm
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=nymbal-register-form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { ElementSchema } from '../index.js';
|
|
3
|
+
import { N as NymbalFormElement } from '../form-element-C-qo3gpD.js';
|
|
4
|
+
import '@nymbalhq/sdk';
|
|
5
|
+
|
|
6
|
+
/** A review of one product: one submission per click, the form cleared once the store has it. */
|
|
7
|
+
declare class NymbalReviewForm extends NymbalFormElement {
|
|
8
|
+
static schema: ElementSchema;
|
|
9
|
+
static properties: lit.PropertyDeclarations;
|
|
10
|
+
static styles: lit.CSSResult[];
|
|
11
|
+
productId: string | undefined;
|
|
12
|
+
protected send(): Promise<void>;
|
|
13
|
+
protected failureText(): string;
|
|
14
|
+
protected render(): lit.TemplateResult<1>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { NymbalReviewForm };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
|
+
import {
|
|
3
|
+
NymbalReviewForm
|
|
4
|
+
} from "../chunk-NE6UHTOT.js";
|
|
5
|
+
import "../chunk-PN6QKYE4.js";
|
|
6
|
+
import "../chunk-GHXTJ2CF.js";
|
|
7
|
+
import "../chunk-EYDMJNNK.js";
|
|
8
|
+
import "../chunk-UCEVCLQ7.js";
|
|
9
|
+
export {
|
|
10
|
+
NymbalReviewForm
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=nymbal-review-form.js.map
|