@misebako/ui 0.3.2 → 0.4.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/README.md +13 -4
- package/dist/checkout/cart.d.ts +85 -0
- package/dist/checkout/cart.js +42 -0
- package/dist/checkout/cart.js.map +1 -0
- package/dist/checkout/payment-unlock.d.ts +52 -0
- package/dist/checkout/payment-unlock.js +25 -0
- package/dist/checkout/payment-unlock.js.map +1 -0
- package/dist/checkout/unlock-intent.d.ts +15 -0
- package/dist/checkout/unlock-intent.js +68 -0
- package/dist/checkout/unlock-intent.js.map +1 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/layout/store-chrome.d.ts +54 -0
- package/dist/layout/store-chrome.js +32 -0
- package/dist/layout/store-chrome.js.map +1 -0
- package/dist/orders/order-table.d.ts +31 -0
- package/dist/orders/order-table.js +7 -0
- package/dist/orders/order-table.js.map +1 -0
- package/dist/orders/pending-checkout-table.d.ts +24 -0
- package/dist/orders/pending-checkout-table.js +11 -0
- package/dist/orders/pending-checkout-table.js.map +1 -0
- package/dist/primitives/email-code-sign-in.d.ts +87 -0
- package/dist/primitives/email-code-sign-in.js +166 -0
- package/dist/primitives/email-code-sign-in.js.map +1 -0
- package/dist/primitives/status-page.d.ts +12 -0
- package/dist/primitives/status-page.js +9 -0
- package/dist/primitives/status-page.js.map +1 -0
- package/dist/storefront/catalog.d.ts +125 -0
- package/dist/storefront/catalog.js +55 -0
- package/dist/storefront/catalog.js.map +1 -0
- package/dist/storefront/delivery-note.d.ts +9 -0
- package/dist/storefront/delivery-note.js +10 -0
- package/dist/storefront/delivery-note.js.map +1 -0
- package/dist/storefront/home-hero.js +1 -1
- package/dist/storefront/home-hero.js.map +1 -1
- package/dist/styles.css +210 -0
- package/dist/theme/index.d.ts +12 -4
- package/dist/theme/index.js +38 -6
- package/dist/theme/index.js.map +1 -1
- package/package.json +41 -1
|
@@ -1 +1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CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,EAAC,IAAI,EAAC,IAAI,EAAC,MAAM,aACpD,KAAC,MAAM,IAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAC,WAAW,EAAC,IAAI,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,YAAY,EAAE,KAAC,UAAU,IAAC,IAAI,EAAE,EAAE,iBAAc,MAAM,GAAG,YAAG,UAAU,GAAU,EACnJ,KAAC,MAAM,IAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,WAAW,EAAE,KAAC,QAAQ,IAAC,IAAI,EAAE,EAAE,iBAAc,MAAM,GAAG,YAAG,YAAY,GAAU,IAC1J,IACF,IACJ,GACF,CACP,CAAA;AACH,CAAC"}
|
package/dist/styles.css
CHANGED
|
@@ -120,6 +120,22 @@ html:root[data-mantine-color-scheme='dark'] .misebako-media {
|
|
|
120
120
|
|
|
121
121
|
.misebako-hero-wrapper {
|
|
122
122
|
position: relative;
|
|
123
|
+
isolation: isolate;
|
|
124
|
+
padding: clamp(1rem, 3vw, 2.5rem);
|
|
125
|
+
border: 1px solid var(--mantine-color-default-border);
|
|
126
|
+
border-radius: var(--mantine-radius-lg);
|
|
127
|
+
background: linear-gradient(110deg, var(--mantine-color-body) 20%, var(--mantine-primary-color-light));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.misebako-hero-wrapper::before {
|
|
131
|
+
content: '';
|
|
132
|
+
position: absolute;
|
|
133
|
+
inset: 0;
|
|
134
|
+
pointer-events: none;
|
|
135
|
+
border-radius: inherit;
|
|
136
|
+
background-image: radial-gradient(var(--mantine-color-default-border) 1px, transparent 1px);
|
|
137
|
+
background-size: 12px 12px;
|
|
138
|
+
mask-image: linear-gradient(105deg, transparent 45%, black);
|
|
123
139
|
}
|
|
124
140
|
|
|
125
141
|
.misebako-hero-inner {
|
|
@@ -193,6 +209,95 @@ html:root[data-mantine-color-scheme='dark'] .misebako-media {
|
|
|
193
209
|
border-color: var(--misebako-focus-border);
|
|
194
210
|
}
|
|
195
211
|
|
|
212
|
+
/* Storefront catalog: product cards, directory header, category list and buy panel. */
|
|
213
|
+
.misebako-product-card {
|
|
214
|
+
overflow-wrap: anywhere;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.misebako-product-card-cover {
|
|
218
|
+
position: relative;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.misebako-product-card-stock {
|
|
222
|
+
position: absolute;
|
|
223
|
+
inset-inline-start: var(--mantine-spacing-sm);
|
|
224
|
+
inset-block-end: var(--mantine-spacing-sm);
|
|
225
|
+
max-inline-size: calc(100% - 2 * var(--mantine-spacing-sm));
|
|
226
|
+
display: flex;
|
|
227
|
+
background: var(--mantine-color-body);
|
|
228
|
+
border-radius: var(--mantine-radius-xl);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.misebako-product-card-arrow {
|
|
232
|
+
flex-shrink: 0;
|
|
233
|
+
margin-block-start: 0.3em;
|
|
234
|
+
color: var(--mantine-color-dimmed);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.misebako-product-card:is(:hover, :focus-visible) .misebako-product-card-arrow {
|
|
238
|
+
color: var(--misebako-focus-border);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.misebako-product-card-price {
|
|
242
|
+
margin-block-start: auto;
|
|
243
|
+
padding-block-start: var(--mantine-spacing-sm);
|
|
244
|
+
border-block-start: 1px solid var(--mantine-color-default-border);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.misebako-catalog-header {
|
|
248
|
+
display: flex;
|
|
249
|
+
flex-wrap: wrap;
|
|
250
|
+
align-items: center;
|
|
251
|
+
justify-content: space-between;
|
|
252
|
+
gap: var(--mantine-spacing-md);
|
|
253
|
+
padding-block-end: var(--mantine-spacing-md);
|
|
254
|
+
border-block-end: 1px solid var(--mantine-color-default-border);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.misebako-catalog-header h1 {
|
|
258
|
+
line-height: 1.15;
|
|
259
|
+
overflow-wrap: anywhere;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.misebako-catalog-search {
|
|
263
|
+
flex: 0 1 17rem;
|
|
264
|
+
min-width: 0;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.misebako-category-nav {
|
|
268
|
+
overflow: auto;
|
|
269
|
+
scrollbar-width: thin;
|
|
270
|
+
padding: 2px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.misebako-category-link {
|
|
274
|
+
flex-shrink: 0;
|
|
275
|
+
overflow-wrap: anywhere;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.misebako-category-link[aria-current='page'] {
|
|
279
|
+
font-weight: 650;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.misebako-delivery-note {
|
|
283
|
+
color: var(--mantine-color-text);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.misebako-delivery-note-icon {
|
|
287
|
+
flex-shrink: 0;
|
|
288
|
+
margin-block-start: 0.15em;
|
|
289
|
+
color: var(--mantine-primary-color-light-color);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.misebako-buy-panel {
|
|
293
|
+
background: color-mix(in srgb, var(--mantine-primary-color-light) 35%, var(--mantine-color-body));
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
@media (max-width: 47.99em) {
|
|
297
|
+
.misebako-catalog-search { flex-basis: 100%; }
|
|
298
|
+
.misebako-category-link { max-inline-size: 85%; }
|
|
299
|
+
}
|
|
300
|
+
|
|
196
301
|
.skip-link {
|
|
197
302
|
position: absolute;
|
|
198
303
|
inset-block-start: var(--mantine-spacing-xs);
|
|
@@ -371,3 +476,108 @@ html:root[data-mantine-color-scheme='dark'] .misebako-media {
|
|
|
371
476
|
border-color: Highlight;
|
|
372
477
|
}
|
|
373
478
|
}
|
|
479
|
+
|
|
480
|
+
/* Locked payment method: a full-size, tappable card that starts the unlock step. */
|
|
481
|
+
.misebako-locked-method {
|
|
482
|
+
display: flex;
|
|
483
|
+
align-items: center;
|
|
484
|
+
gap: var(--mantine-spacing-sm);
|
|
485
|
+
width: 100%;
|
|
486
|
+
min-height: 3.5rem;
|
|
487
|
+
padding: var(--mantine-spacing-sm) var(--mantine-spacing-md);
|
|
488
|
+
border: 1px solid var(--mantine-color-default-border);
|
|
489
|
+
border-radius: var(--mantine-radius-md);
|
|
490
|
+
background-color: var(--mantine-color-body);
|
|
491
|
+
color: inherit;
|
|
492
|
+
font: inherit;
|
|
493
|
+
text-align: start;
|
|
494
|
+
cursor: pointer;
|
|
495
|
+
transition: border-color 120ms ease, background-color 120ms ease;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.misebako-locked-method:where(:not(:disabled, [data-static])):hover {
|
|
499
|
+
border-color: var(--mantine-color-dimmed);
|
|
500
|
+
background-color: var(--mantine-color-default-hover);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.misebako-locked-method:focus-visible {
|
|
504
|
+
outline: 2px solid var(--mantine-primary-color-filled);
|
|
505
|
+
outline-offset: 2px;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.misebako-locked-method:disabled {
|
|
509
|
+
cursor: not-allowed;
|
|
510
|
+
opacity: 0.6;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.misebako-locked-method[data-static] {
|
|
514
|
+
cursor: default;
|
|
515
|
+
border-style: dashed;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.misebako-locked-method-chevron {
|
|
519
|
+
display: flex;
|
|
520
|
+
flex-shrink: 0;
|
|
521
|
+
color: var(--mantine-color-dimmed);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.misebako-unlock-alternatives {
|
|
525
|
+
padding-top: var(--mantine-spacing-sm);
|
|
526
|
+
border-top: 1px solid var(--mantine-color-default-border);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
@media (prefers-reduced-motion: reduce) {
|
|
530
|
+
.misebako-locked-method { transition: none; }
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/* Loading buttons: hide the label so only the spinner shows, without the label sliding away. */
|
|
534
|
+
.mantine-Button-root[data-loading] .mantine-Button-inner,
|
|
535
|
+
.mantine-Button-root:has(> .mantine-Button-loader) .mantine-Button-inner {
|
|
536
|
+
opacity: 0;
|
|
537
|
+
color: transparent;
|
|
538
|
+
transform: translateY(100%);
|
|
539
|
+
transition: none;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.mantine-Button-root[data-loading] .mantine-Button-label,
|
|
543
|
+
.mantine-Button-label[data-loading] {
|
|
544
|
+
opacity: 0;
|
|
545
|
+
color: transparent;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.mantine-Button-loader {
|
|
549
|
+
transform: translate(-50%, calc(-50% + calc(0.0625rem * var(--mantine-scale))));
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/* Dialogs: classNames set by `misebakoComponents` in the shared theme. */
|
|
553
|
+
.misebako-modal-content {
|
|
554
|
+
box-shadow: 0 24px 56px -16px oklch(0 0 0 / 0.28), 0 0 0 1px oklch(0 0 0 / 0.05);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
html:root[data-mantine-color-scheme='dark'] .misebako-modal-content {
|
|
558
|
+
box-shadow: 0 24px 56px -16px oklch(0 0 0 / 0.6), 0 0 0 1px oklch(1 0 0 / 0.08);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.misebako-modal-header {
|
|
562
|
+
align-items: flex-start;
|
|
563
|
+
gap: var(--mantine-spacing-md);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.misebako-modal-title {
|
|
567
|
+
font-size: var(--mantine-font-size-lg);
|
|
568
|
+
font-weight: 650;
|
|
569
|
+
line-height: 1.35;
|
|
570
|
+
letter-spacing: -0.01em;
|
|
571
|
+
text-wrap: balance;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.misebako-modal-header .mantine-Modal-close {
|
|
575
|
+
margin-block-start: calc(-0.125rem * var(--mantine-scale));
|
|
576
|
+
margin-inline-end: calc(-0.375rem * var(--mantine-scale));
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/* Action rows that end a dialog: keep them visually separated from the fields above. */
|
|
580
|
+
.misebako-modal-body form > .mantine-Stack-root > .mantine-Group-root:last-child[style*='flex-end'],
|
|
581
|
+
.misebako-modal-body > .mantine-Stack-root > .mantine-Group-root:last-child[style*='flex-end'] {
|
|
582
|
+
margin-block-start: calc(0.25rem * var(--mantine-scale));
|
|
583
|
+
}
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import type { MantineColorsTuple, MantineThemeOverride } from '@mantine/core';
|
|
1
|
+
import type { MantineColorsTuple, MantineThemeComponents, MantineThemeOverride } from '@mantine/core';
|
|
2
2
|
/** Accessible high-contrast color palettes shared across Misebako and Noren stores. */
|
|
3
3
|
export declare const misebakoColors: Record<'teal' | 'orange' | 'green', MantineColorsTuple>;
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Shared dialog and tooltip chrome, styled by the `misebako-modal-*` rules in `styles.css`.
|
|
6
|
+
* Plain objects instead of `Component.extend()` so the theme stays importable from server components.
|
|
7
|
+
*/
|
|
8
|
+
export declare const misebakoComponents: MantineThemeComponents;
|
|
9
|
+
/** Build a Mantine theme override preconfigured with Misebako accessibility, palette and dialog defaults. */
|
|
5
10
|
export declare function createMisebakoTheme(overrides?: MantineThemeOverride): MantineThemeOverride;
|
|
6
|
-
/** Default Mantine theme preset
|
|
11
|
+
/** Default Mantine theme preset shared by Misebako main stores and Noren reseller stores. */
|
|
7
12
|
export declare const misebakoTheme: MantineThemeOverride;
|
|
8
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Theme preset for Noren reseller stores. Identical to `misebakoTheme` so reseller storefronts
|
|
15
|
+
* match the main store; kept as a separate export for existing imports.
|
|
16
|
+
*/
|
|
9
17
|
export declare const norenTheme: MantineThemeOverride;
|
package/dist/theme/index.js
CHANGED
|
@@ -4,7 +4,34 @@ export const misebakoColors = {
|
|
|
4
4
|
orange: ['#fff4e6', '#ffe8cc', '#ffd8a8', '#ffc078', '#ffa94d', '#ff922b', '#fd7e14', '#f76707', '#c2410c', '#9a3412'],
|
|
5
5
|
green: ['#ebfbee', '#d3f9d8', '#b2f2bb', '#8ce99a', '#69db7c', '#51cf66', '#40c057', '#37b24d', '#217a32', '#195f27'],
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
const overlayProps = { backgroundOpacity: 0.48, blur: 3 };
|
|
8
|
+
/**
|
|
9
|
+
* Shared dialog and tooltip chrome, styled by the `misebako-modal-*` rules in `styles.css`.
|
|
10
|
+
* Plain objects instead of `Component.extend()` so the theme stays importable from server components.
|
|
11
|
+
*/
|
|
12
|
+
export const misebakoComponents = {
|
|
13
|
+
Modal: {
|
|
14
|
+
defaultProps: {
|
|
15
|
+
centered: true,
|
|
16
|
+
radius: 'lg',
|
|
17
|
+
padding: 'lg',
|
|
18
|
+
overlayProps,
|
|
19
|
+
transitionProps: { transition: 'pop', duration: 160 },
|
|
20
|
+
},
|
|
21
|
+
classNames: {
|
|
22
|
+
content: 'misebako-modal-content',
|
|
23
|
+
header: 'misebako-modal-header',
|
|
24
|
+
title: 'misebako-modal-title',
|
|
25
|
+
body: 'misebako-modal-body',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
Drawer: {
|
|
29
|
+
defaultProps: { overlayProps },
|
|
30
|
+
classNames: { title: 'misebako-modal-title' },
|
|
31
|
+
},
|
|
32
|
+
Tooltip: { defaultProps: { withArrow: true, arrowSize: 6 } },
|
|
33
|
+
};
|
|
34
|
+
/** Build a Mantine theme override preconfigured with Misebako accessibility, palette and dialog defaults. */
|
|
8
35
|
export function createMisebakoTheme(overrides) {
|
|
9
36
|
return {
|
|
10
37
|
respectReducedMotion: true,
|
|
@@ -15,12 +42,17 @@ export function createMisebakoTheme(overrides) {
|
|
|
15
42
|
...misebakoColors,
|
|
16
43
|
...overrides?.colors,
|
|
17
44
|
},
|
|
45
|
+
components: {
|
|
46
|
+
...misebakoComponents,
|
|
47
|
+
...overrides?.components,
|
|
48
|
+
},
|
|
18
49
|
};
|
|
19
50
|
}
|
|
20
|
-
/** Default Mantine theme preset
|
|
51
|
+
/** Default Mantine theme preset shared by Misebako main stores and Noren reseller stores. */
|
|
21
52
|
export const misebakoTheme = createMisebakoTheme();
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Theme preset for Noren reseller stores. Identical to `misebakoTheme` so reseller storefronts
|
|
55
|
+
* match the main store; kept as a separate export for existing imports.
|
|
56
|
+
*/
|
|
57
|
+
export const norenTheme = misebakoTheme;
|
|
26
58
|
//# sourceMappingURL=index.js.map
|
package/dist/theme/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAEA,uFAAuF;AACvF,MAAM,CAAC,MAAM,cAAc,GAA4D;IACrF,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACpH,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACtH,KAAK,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;CACtH,C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AS,EAAE,CAAC,EAAE,EAAE;CAC7D,CAAA;AAED,6GAA6G;AAC7G,MAAM,UAAU,mBAAmB,CAAC,SAAgC;IAClE,OAAO;QACL,oBAAoB,EAAE,IAAI;QAC1B,aAAa,EAAE,IAAI;QACnB,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;QACnC,GAAG,SAAS;QACZ,MAAM,EAAE;YACN,GAAG,cAAc;YACjB,GAAG,SAAS,EAAE,MAAM;SACrB;QACD,UAAU,EAAE;YACV,GAAG,kBAAkB;YACrB,GAAG,SAAS,EAAE,UAAU;SACzB;KACF,CAAA;AACH,CAAC;AAED,6FAA6F;AAC7F,MAAM,CAAC,MAAM,aAAa,GAAyB,mBAAmB,EAAE,CAAA;AAExE;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAyB,aAAa,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@misebako/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Shared React 19 + Mantine 9 commerce UI components and theme for Misebako and Noren reseller stores.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"packageManager": "pnpm@12.18.0",
|
|
@@ -59,6 +59,10 @@
|
|
|
59
59
|
"types": "./dist/primitives/appearance-provider.d.ts",
|
|
60
60
|
"import": "./dist/primitives/appearance-provider.js"
|
|
61
61
|
},
|
|
62
|
+
"./store-chrome": {
|
|
63
|
+
"types": "./dist/layout/store-chrome.d.ts",
|
|
64
|
+
"import": "./dist/layout/store-chrome.js"
|
|
65
|
+
},
|
|
62
66
|
"./navigation-progress": {
|
|
63
67
|
"types": "./dist/primitives/navigation-progress.d.ts",
|
|
64
68
|
"import": "./dist/primitives/navigation-progress.js"
|
|
@@ -71,6 +75,14 @@
|
|
|
71
75
|
"types": "./dist/storefront/product-gallery.d.ts",
|
|
72
76
|
"import": "./dist/storefront/product-gallery.js"
|
|
73
77
|
},
|
|
78
|
+
"./delivery-note": {
|
|
79
|
+
"types": "./dist/storefront/delivery-note.d.ts",
|
|
80
|
+
"import": "./dist/storefront/delivery-note.js"
|
|
81
|
+
},
|
|
82
|
+
"./catalog": {
|
|
83
|
+
"types": "./dist/storefront/catalog.d.ts",
|
|
84
|
+
"import": "./dist/storefront/catalog.js"
|
|
85
|
+
},
|
|
74
86
|
"./home-hero": {
|
|
75
87
|
"types": "./dist/storefront/home-hero.d.ts",
|
|
76
88
|
"import": "./dist/storefront/home-hero.js"
|
|
@@ -79,6 +91,10 @@
|
|
|
79
91
|
"types": "./dist/checkout/quote-fields.d.ts",
|
|
80
92
|
"import": "./dist/checkout/quote-fields.js"
|
|
81
93
|
},
|
|
94
|
+
"./cart": {
|
|
95
|
+
"types": "./dist/checkout/cart.d.ts",
|
|
96
|
+
"import": "./dist/checkout/cart.js"
|
|
97
|
+
},
|
|
82
98
|
"./checkout-amounts": {
|
|
83
99
|
"types": "./dist/checkout/checkout-amounts.d.ts",
|
|
84
100
|
"import": "./dist/checkout/checkout-amounts.js"
|
|
@@ -87,10 +103,22 @@
|
|
|
87
103
|
"types": "./dist/orders/delivery-codes.d.ts",
|
|
88
104
|
"import": "./dist/orders/delivery-codes.js"
|
|
89
105
|
},
|
|
106
|
+
"./order-table": {
|
|
107
|
+
"types": "./dist/orders/order-table.d.ts",
|
|
108
|
+
"import": "./dist/orders/order-table.js"
|
|
109
|
+
},
|
|
90
110
|
"./order-status": {
|
|
91
111
|
"types": "./dist/orders/order-status.d.ts",
|
|
92
112
|
"import": "./dist/orders/order-status.js"
|
|
93
113
|
},
|
|
114
|
+
"./pending-checkout-table": {
|
|
115
|
+
"types": "./dist/orders/pending-checkout-table.d.ts",
|
|
116
|
+
"import": "./dist/orders/pending-checkout-table.js"
|
|
117
|
+
},
|
|
118
|
+
"./status-page": {
|
|
119
|
+
"types": "./dist/primitives/status-page.d.ts",
|
|
120
|
+
"import": "./dist/primitives/status-page.js"
|
|
121
|
+
},
|
|
94
122
|
"./status-badge": {
|
|
95
123
|
"types": "./dist/primitives/status-badge.d.ts",
|
|
96
124
|
"import": "./dist/primitives/status-badge.js"
|
|
@@ -98,6 +126,18 @@
|
|
|
98
126
|
"./checkout-steps": {
|
|
99
127
|
"types": "./dist/checkout/checkout-steps.d.ts",
|
|
100
128
|
"import": "./dist/checkout/checkout-steps.js"
|
|
129
|
+
},
|
|
130
|
+
"./payment-unlock": {
|
|
131
|
+
"types": "./dist/checkout/payment-unlock.d.ts",
|
|
132
|
+
"import": "./dist/checkout/payment-unlock.js"
|
|
133
|
+
},
|
|
134
|
+
"./unlock-intent": {
|
|
135
|
+
"types": "./dist/checkout/unlock-intent.d.ts",
|
|
136
|
+
"import": "./dist/checkout/unlock-intent.js"
|
|
137
|
+
},
|
|
138
|
+
"./email-code-sign-in": {
|
|
139
|
+
"types": "./dist/primitives/email-code-sign-in.d.ts",
|
|
140
|
+
"import": "./dist/primitives/email-code-sign-in.js"
|
|
101
141
|
}
|
|
102
142
|
},
|
|
103
143
|
"scripts": {
|