@usethrottle/storefront-react 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/CLAUDE.md +67 -0
  2. package/README.md +119 -2
  3. package/dist/StorefrontProvider-Br4wUHui.d.cts +559 -0
  4. package/dist/StorefrontProvider-DLEPEjg6.d.ts +559 -0
  5. package/dist/account/index.cjs +69 -0
  6. package/dist/account/index.cjs.map +1 -0
  7. package/dist/account/index.d.cts +23 -0
  8. package/dist/account/index.d.ts +23 -0
  9. package/dist/account/index.js +68 -0
  10. package/dist/account/index.js.map +1 -0
  11. package/dist/chunk-2LCPIY2P.cjs +16 -0
  12. package/dist/chunk-2LCPIY2P.cjs.map +1 -0
  13. package/dist/chunk-3A72UY6T.js +2126 -0
  14. package/dist/chunk-3A72UY6T.js.map +1 -0
  15. package/dist/chunk-3JMIVAHN.js +185 -0
  16. package/dist/chunk-3JMIVAHN.js.map +1 -0
  17. package/dist/chunk-4J6AGWNC.cjs +24 -0
  18. package/dist/chunk-4J6AGWNC.cjs.map +1 -0
  19. package/dist/chunk-4U6MYDZV.js +17 -0
  20. package/dist/chunk-4U6MYDZV.js.map +1 -0
  21. package/dist/chunk-66HDJVPS.js +22 -0
  22. package/dist/chunk-66HDJVPS.js.map +1 -0
  23. package/dist/chunk-6X2OZSNV.cjs +83 -0
  24. package/dist/chunk-6X2OZSNV.cjs.map +1 -0
  25. package/dist/chunk-6ZMMZ245.cjs +2127 -0
  26. package/dist/chunk-6ZMMZ245.cjs.map +1 -0
  27. package/dist/chunk-7R37CVAB.cjs +23 -0
  28. package/dist/chunk-7R37CVAB.cjs.map +1 -0
  29. package/dist/chunk-A3IFWQUV.js +368 -0
  30. package/dist/chunk-A3IFWQUV.js.map +1 -0
  31. package/dist/chunk-AYC2YK4E.cjs +95 -0
  32. package/dist/chunk-AYC2YK4E.cjs.map +1 -0
  33. package/dist/chunk-AZV5U7YB.cjs +18 -0
  34. package/dist/chunk-AZV5U7YB.cjs.map +1 -0
  35. package/dist/chunk-CE2SKNQP.cjs +71 -0
  36. package/dist/chunk-CE2SKNQP.cjs.map +1 -0
  37. package/dist/chunk-D76CRI4X.js +2175 -0
  38. package/dist/chunk-D76CRI4X.js.map +1 -0
  39. package/dist/chunk-DOAII637.cjs +186 -0
  40. package/dist/chunk-DOAII637.cjs.map +1 -0
  41. package/dist/chunk-DYHHAOMG.cjs +17 -0
  42. package/dist/chunk-DYHHAOMG.cjs.map +1 -0
  43. package/dist/chunk-EYSVU5SJ.js +196 -0
  44. package/dist/chunk-EYSVU5SJ.js.map +1 -0
  45. package/dist/chunk-HSUUDZWS.js +37 -0
  46. package/dist/chunk-HSUUDZWS.js.map +1 -0
  47. package/dist/chunk-HZ6VEN6Q.cjs +101 -0
  48. package/dist/chunk-HZ6VEN6Q.cjs.map +1 -0
  49. package/dist/chunk-IJOTLGPT.js +16 -0
  50. package/dist/chunk-IJOTLGPT.js.map +1 -0
  51. package/dist/chunk-ISDATHVC.js +219 -0
  52. package/dist/chunk-ISDATHVC.js.map +1 -0
  53. package/dist/chunk-LW2A6USV.js +100 -0
  54. package/dist/chunk-LW2A6USV.js.map +1 -0
  55. package/dist/chunk-M4YXSLRG.cjs +369 -0
  56. package/dist/chunk-M4YXSLRG.cjs.map +1 -0
  57. package/dist/chunk-NDUEJJLP.cjs +2176 -0
  58. package/dist/chunk-NDUEJJLP.cjs.map +1 -0
  59. package/dist/chunk-NNE4FYRT.js +820 -0
  60. package/dist/chunk-NNE4FYRT.js.map +1 -0
  61. package/dist/chunk-NW3EFHY2.js +15 -0
  62. package/dist/chunk-NW3EFHY2.js.map +1 -0
  63. package/dist/chunk-NZRUQUN5.js +167 -0
  64. package/dist/chunk-NZRUQUN5.js.map +1 -0
  65. package/dist/chunk-P6HHE57S.cjs +38 -0
  66. package/dist/chunk-P6HHE57S.cjs.map +1 -0
  67. package/dist/chunk-PHY7AY27.cjs +197 -0
  68. package/dist/chunk-PHY7AY27.cjs.map +1 -0
  69. package/dist/chunk-PNJOFFTL.cjs +128 -0
  70. package/dist/chunk-PNJOFFTL.cjs.map +1 -0
  71. package/dist/chunk-PXZQ4ONA.js +127 -0
  72. package/dist/chunk-PXZQ4ONA.js.map +1 -0
  73. package/dist/chunk-Q3VTUBPP.js +82 -0
  74. package/dist/chunk-Q3VTUBPP.js.map +1 -0
  75. package/dist/chunk-Q3XFD5UI.js +45 -0
  76. package/dist/chunk-Q3XFD5UI.js.map +1 -0
  77. package/dist/chunk-QM7KTT7F.js +94 -0
  78. package/dist/chunk-QM7KTT7F.js.map +1 -0
  79. package/dist/chunk-RLWZOLXL.js +70 -0
  80. package/dist/chunk-RLWZOLXL.js.map +1 -0
  81. package/dist/chunk-SV53BRP2.js +23 -0
  82. package/dist/chunk-SV53BRP2.js.map +1 -0
  83. package/dist/chunk-VWXJO427.cjs +821 -0
  84. package/dist/chunk-VWXJO427.cjs.map +1 -0
  85. package/dist/chunk-WIIOJDHR.cjs +220 -0
  86. package/dist/chunk-WIIOJDHR.cjs.map +1 -0
  87. package/dist/chunk-XQHGFWLG.cjs +46 -0
  88. package/dist/chunk-XQHGFWLG.cjs.map +1 -0
  89. package/dist/chunk-ZHCXI2ZZ.cjs +168 -0
  90. package/dist/chunk-ZHCXI2ZZ.cjs.map +1 -0
  91. package/dist/index-RSj2Rg62.d.cts +8 -0
  92. package/dist/index-RSj2Rg62.d.ts +8 -0
  93. package/dist/index.cjs +2829 -0
  94. package/dist/index.cjs.map +1 -0
  95. package/dist/index.d.cts +1718 -0
  96. package/dist/index.d.ts +1718 -0
  97. package/dist/index.js +2828 -0
  98. package/dist/index.js.map +1 -0
  99. package/dist/metadata-QhKw-tvz.d.cts +188 -0
  100. package/dist/metadata-QhKw-tvz.d.ts +188 -0
  101. package/dist/next/client.cjs +84 -0
  102. package/dist/next/client.cjs.map +1 -0
  103. package/dist/next/client.d.cts +40 -0
  104. package/dist/next/client.d.ts +40 -0
  105. package/dist/next/client.js +83 -0
  106. package/dist/next/client.js.map +1 -0
  107. package/dist/next/index.cjs +1090 -0
  108. package/dist/next/index.cjs.map +1 -0
  109. package/dist/next/index.d.cts +218 -0
  110. package/dist/next/index.d.ts +218 -0
  111. package/dist/next/index.js +1049 -0
  112. package/dist/next/index.js.map +1 -0
  113. package/dist/server/index.cjs +994 -0
  114. package/dist/server/index.cjs.map +1 -0
  115. package/dist/server/index.d.cts +229 -0
  116. package/dist/server/index.d.ts +229 -0
  117. package/dist/server/index.js +951 -0
  118. package/dist/server/index.js.map +1 -0
  119. package/dist/styles.css +2111 -0
  120. package/dist/use-part-DCfFk7kf.d.ts +24 -0
  121. package/dist/use-part-DgjPBL_O.d.cts +24 -0
  122. package/package.json +121 -3
@@ -0,0 +1,820 @@
1
+ "use client";
2
+
3
+ // src/unstyled.tsx
4
+ import { createContext, useContext } from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var UnstyledContext = createContext(false);
7
+ function useUnstyled() {
8
+ return useContext(UnstyledContext);
9
+ }
10
+ function Unstyled(props) {
11
+ return /* @__PURE__ */ jsx(UnstyledContext.Provider, { value: true, children: props.children });
12
+ }
13
+
14
+ // src/parts/use-part.ts
15
+ import { useAppearance } from "@usethrottle/ui";
16
+ var PART_PREFIX = "tsf-";
17
+ function usePart(key, local) {
18
+ const { parts } = useAppearance();
19
+ const ambient = useUnstyled();
20
+ const unstyled = local?.unstyled ?? ambient;
21
+ const className = [unstyled ? void 0 : `${PART_PREFIX}${key}`, parts[key], local?.classNames?.[key], local?.className].filter(Boolean).join(" ") || void 0;
22
+ return { className, "data-throttle-part": key };
23
+ }
24
+
25
+ // src/parts/sync.ts
26
+ var SYNC_ATTRIBUTES = [
27
+ "data-throttle-setting",
28
+ "data-theme-accent",
29
+ "data-theme-radius",
30
+ "data-menu",
31
+ "data-listing",
32
+ "data-listing-page-size",
33
+ "data-sort-option",
34
+ "data-product-card",
35
+ "data-product-handle",
36
+ "data-card-rating",
37
+ "data-badge",
38
+ "data-stock-words",
39
+ "data-section",
40
+ "data-section-title",
41
+ "data-string-key",
42
+ "data-filter-key",
43
+ "data-filter-display",
44
+ "data-filter-label",
45
+ "data-locale-option",
46
+ "data-currency-option",
47
+ "data-collection-title",
48
+ "data-category-handle",
49
+ "data-category-parent",
50
+ "data-review-id"
51
+ ];
52
+
53
+ // src/parts/frame.ts
54
+ var FRAME_PARTS = [
55
+ "skip-link",
56
+ "store-frame",
57
+ "store-frame-main",
58
+ "announcement-bar",
59
+ "announcement-bar-text",
60
+ "announcement-bar-dismiss",
61
+ "header",
62
+ "header-bar",
63
+ "header-menu-button",
64
+ "header-brand",
65
+ "header-logo",
66
+ "header-store-name",
67
+ "header-search",
68
+ "header-actions",
69
+ "header-nav-row",
70
+ "header-prefs",
71
+ "header-drawer-top",
72
+ "header-drawer-title",
73
+ "header-drawer-close",
74
+ "category-nav",
75
+ "category-nav-list",
76
+ "category-nav-item",
77
+ "category-nav-link",
78
+ "category-nav-toggle",
79
+ "category-nav-panel",
80
+ "category-nav-child",
81
+ "search-box",
82
+ "search-box-input",
83
+ "search-box-panel",
84
+ "search-box-list",
85
+ "search-box-group",
86
+ "search-box-group-label",
87
+ "search-box-option",
88
+ "search-box-thumb",
89
+ "search-box-option-name",
90
+ "search-box-option-meta",
91
+ "search-box-all",
92
+ "search-box-none",
93
+ "search-box-status",
94
+ "locale-switch",
95
+ "locale-switch-label",
96
+ "locale-switch-select",
97
+ "currency-switch",
98
+ "currency-switch-label",
99
+ "currency-switch-select",
100
+ "cart-button",
101
+ "cart-button-count",
102
+ "account-button",
103
+ "footer",
104
+ "footer-brand",
105
+ "footer-extra",
106
+ "footer-nav",
107
+ "footer-list",
108
+ "footer-item",
109
+ "footer-link",
110
+ "footer-sublist",
111
+ "footer-copyright"
112
+ ];
113
+
114
+ // src/parts/merch.ts
115
+ var MERCH_PARTS = [
116
+ "merch-skeleton",
117
+ "merch-skeleton-item",
118
+ "collection-shelf",
119
+ "collection-shelf-header",
120
+ "collection-shelf-eyebrow",
121
+ "collection-shelf-title",
122
+ "collection-shelf-link",
123
+ "collection-shelf-grid",
124
+ "collection-shelf-item",
125
+ "featured-product",
126
+ "featured-product-media",
127
+ "featured-product-media-link",
128
+ "featured-product-placeholder",
129
+ "featured-product-body",
130
+ "featured-product-title",
131
+ "featured-product-rating",
132
+ "featured-product-price",
133
+ "featured-product-from",
134
+ "featured-product-description",
135
+ "featured-product-link",
136
+ "product-carousel",
137
+ "product-carousel-header",
138
+ "product-carousel-eyebrow",
139
+ "product-carousel-title",
140
+ "product-carousel-controls",
141
+ "product-carousel-prev",
142
+ "product-carousel-next",
143
+ "product-carousel-track",
144
+ "product-carousel-item",
145
+ "category-directory",
146
+ "category-directory-list",
147
+ "category-directory-item",
148
+ "category-directory-link",
149
+ "category-directory-image",
150
+ "category-directory-name",
151
+ "category-directory-count",
152
+ "category-directory-children",
153
+ "reviews-list",
154
+ "reviews-list-items",
155
+ "reviews-list-item",
156
+ "reviews-list-head",
157
+ "reviews-list-title",
158
+ "reviews-list-body",
159
+ "reviews-list-meta",
160
+ "reviews-list-author",
161
+ "reviews-list-verified",
162
+ "reviews-list-date",
163
+ "reviews-list-product",
164
+ "reviews-list-reply"
165
+ ];
166
+
167
+ // src/parts/pages.ts
168
+ var PAGES_PARTS = [
169
+ "search-results",
170
+ "search-results-title",
171
+ "search-results-prompt",
172
+ "not-found",
173
+ "not-found-code",
174
+ "not-found-title",
175
+ "not-found-body",
176
+ "not-found-actions",
177
+ "not-found-link",
178
+ "account-page",
179
+ "account-page-title",
180
+ "account-page-setup-notice",
181
+ "account-page-setup-title",
182
+ "account-page-setup-body"
183
+ ];
184
+
185
+ // src/parts/pieces.ts
186
+ var PIECES_PARTS = [
187
+ "product-card",
188
+ "product-card-row",
189
+ "product-card-media",
190
+ "product-card-media-link",
191
+ "product-card-image",
192
+ "product-card-image-alt",
193
+ "product-card-placeholder",
194
+ "product-card-badges",
195
+ "product-card-actions",
196
+ "product-card-body",
197
+ "product-card-brand",
198
+ "product-card-title",
199
+ "product-card-title-link",
200
+ "product-card-swatches",
201
+ "product-card-swatch-more",
202
+ "product-card-rating",
203
+ "product-card-price",
204
+ "product-card-from",
205
+ "product-card-unpriced",
206
+ "star-rating",
207
+ "star-rating-stars",
208
+ "star-rating-count",
209
+ "product-badge",
210
+ "swatch",
211
+ "money",
212
+ "money-compare",
213
+ "price",
214
+ "price-label",
215
+ "price-hint",
216
+ "image",
217
+ "rich-text",
218
+ "link"
219
+ ];
220
+
221
+ // src/parts/product.ts
222
+ var PRODUCT_PARTS = [
223
+ "add-to-cart",
224
+ "add-to-cart-button",
225
+ "add-to-cart-message",
226
+ "buy-box",
227
+ "buy-box-actions",
228
+ "buy-box-kicker",
229
+ "buy-box-price",
230
+ "buy-box-rating",
231
+ "buy-box-sku",
232
+ "buy-box-summary",
233
+ "buy-box-title",
234
+ "category-list",
235
+ "category-list-item",
236
+ "category-list-link",
237
+ "gallery",
238
+ "gallery-counter",
239
+ "gallery-enlarge",
240
+ "gallery-item",
241
+ "gallery-next",
242
+ "gallery-placeholder",
243
+ "gallery-previous",
244
+ "gallery-stage",
245
+ "gallery-thumb",
246
+ "gallery-thumbs",
247
+ "gallery-thumbs-item",
248
+ "gallery-video",
249
+ "lightbox",
250
+ "lightbox-counter",
251
+ "lightbox-next",
252
+ "lightbox-previous",
253
+ "lightbox-stage",
254
+ "lightbox-title",
255
+ "product-breadcrumbs",
256
+ "product-breadcrumbs-current",
257
+ "product-breadcrumbs-item",
258
+ "product-breadcrumbs-link",
259
+ "product-breadcrumbs-list",
260
+ "product-page",
261
+ "product-page-main",
262
+ "product-review",
263
+ "product-review-author",
264
+ "product-review-body",
265
+ "product-review-date",
266
+ "product-review-header",
267
+ "product-review-reply",
268
+ "product-review-title",
269
+ "product-reviews",
270
+ "product-reviews-average",
271
+ "product-reviews-clear",
272
+ "product-reviews-controls",
273
+ "product-reviews-empty",
274
+ "product-reviews-error",
275
+ "product-reviews-gate",
276
+ "product-reviews-histogram",
277
+ "product-reviews-histogram-bar",
278
+ "product-reviews-histogram-count",
279
+ "product-reviews-histogram-fill",
280
+ "product-reviews-histogram-row",
281
+ "product-reviews-list",
282
+ "product-reviews-load-more",
283
+ "product-reviews-main",
284
+ "product-reviews-summary",
285
+ "product-section",
286
+ "product-section-body",
287
+ "product-section-title",
288
+ "product-section-trigger",
289
+ "product-sections",
290
+ "product-specs",
291
+ "product-specs-label",
292
+ "product-specs-row",
293
+ "product-specs-value",
294
+ "quantity-decrease",
295
+ "quantity-field",
296
+ "quantity-increase",
297
+ "quantity-input",
298
+ "related-products",
299
+ "related-products-item",
300
+ "review-form",
301
+ "review-form-error",
302
+ "review-form-field",
303
+ "review-form-star",
304
+ "review-form-star-input",
305
+ "review-form-stars",
306
+ "review-form-submit",
307
+ "review-form-textarea",
308
+ "review-form-thanks",
309
+ "review-form-title",
310
+ "shipping-section",
311
+ "sticky-add-to-cart",
312
+ "sticky-add-to-cart-button",
313
+ "sticky-add-to-cart-price",
314
+ "sticky-add-to-cart-title",
315
+ "stock-status",
316
+ "tag-list",
317
+ "tag-list-item",
318
+ "tag-list-link",
319
+ "variant-option",
320
+ "variant-option-chosen",
321
+ "variant-option-legend",
322
+ "variant-option-name",
323
+ "variant-option-values",
324
+ "variant-picker",
325
+ "variant-value",
326
+ "variant-value-label"
327
+ ];
328
+
329
+ // src/parts/shop.ts
330
+ var SHOP_PARTS = [
331
+ "shop-all",
332
+ "shop-all-heading",
333
+ "shop-all-description",
334
+ "shop-all-breadcrumbs",
335
+ "shop-all-breadcrumb-list",
336
+ "shop-all-breadcrumb",
337
+ "shop-all-breadcrumb-link",
338
+ "shop-all-controls",
339
+ "shop-all-tools",
340
+ "shop-all-body",
341
+ "shop-all-main",
342
+ "live-region",
343
+ "result-count",
344
+ "sort-select",
345
+ "sort-select-label",
346
+ "sort-select-input",
347
+ "filter-sidebar",
348
+ "filter-sidebar-head",
349
+ "filter-sidebar-title",
350
+ "filter-clear",
351
+ "filter-bar",
352
+ "filter-bar-more",
353
+ "filter-drawer-trigger",
354
+ "filter-drawer-count",
355
+ "filter-drawer-head",
356
+ "filter-drawer-title",
357
+ "filter-drawer-close",
358
+ "filter-drawer-body",
359
+ "filter-drawer-foot",
360
+ "filter-drawer-apply",
361
+ "facet",
362
+ "facet-heading",
363
+ "facet-toggle",
364
+ "facet-trigger",
365
+ "facet-panel",
366
+ "facet-label",
367
+ "facet-selected",
368
+ "facet-body",
369
+ "facet-search",
370
+ "facet-fieldset",
371
+ "facet-legend",
372
+ "facet-options",
373
+ "facet-option",
374
+ "facet-option-label",
375
+ "facet-option-input",
376
+ "facet-option-text",
377
+ "facet-option-count",
378
+ "facet-empty",
379
+ "facet-show-all",
380
+ "facet-select",
381
+ "facet-boolean",
382
+ "facet-range",
383
+ "facet-range-fields",
384
+ "facet-range-field",
385
+ "facet-range-input",
386
+ "facet-range-error",
387
+ "facet-range-hint",
388
+ "facet-range-actions",
389
+ "facet-range-apply",
390
+ "facet-range-clear",
391
+ "active-filters",
392
+ "active-filter",
393
+ "active-filter-remove",
394
+ "active-filters-clear",
395
+ "product-grid",
396
+ "product-grid-pages",
397
+ "product-grid-item",
398
+ "product-grid-skeleton",
399
+ "product-grid-skeleton-item",
400
+ "product-grid-empty",
401
+ "product-grid-error",
402
+ "product-grid-retry",
403
+ "pagination",
404
+ "pagination-list",
405
+ "pagination-item",
406
+ "pagination-link",
407
+ "pagination-step",
408
+ "pagination-gap",
409
+ "pagination-more",
410
+ "pagination-crawl"
411
+ ];
412
+
413
+ // src/parts/shopper.ts
414
+ var SHOPPER_PARTS = [
415
+ "cart-drawer",
416
+ "cart-drawer-top",
417
+ "cart-drawer-title",
418
+ "cart-drawer-close",
419
+ "cart-drawer-body",
420
+ "cart-status",
421
+ "cart-error",
422
+ "cart-loading",
423
+ "cart-empty",
424
+ "cart-empty-text",
425
+ "cart-lines",
426
+ "cart-line",
427
+ "cart-line-media",
428
+ "cart-line-body",
429
+ "cart-line-name",
430
+ "cart-line-price",
431
+ "cart-line-note",
432
+ "cart-line-quantity",
433
+ "cart-line-decrease",
434
+ "cart-line-count",
435
+ "cart-line-increase",
436
+ "cart-line-total",
437
+ "cart-line-remove",
438
+ "cart-footer",
439
+ "cart-subtotal",
440
+ "cart-subtotal-label",
441
+ "cart-subtotal-amount",
442
+ "cart-checkout",
443
+ "cart-continue",
444
+ "quick-add",
445
+ "quick-add-button",
446
+ "quick-add-panel",
447
+ "quick-add-title",
448
+ "quick-add-message",
449
+ "quick-view",
450
+ "quick-view-title",
451
+ "quick-view-body",
452
+ "quick-view-gallery",
453
+ "quick-view-details",
454
+ "quick-view-link",
455
+ "quick-view-message",
456
+ "recently-viewed",
457
+ "recently-viewed-title",
458
+ "recently-viewed-list",
459
+ "recently-viewed-item",
460
+ "compare",
461
+ "compare-header",
462
+ "compare-title",
463
+ "compare-clear",
464
+ "compare-scroll",
465
+ "compare-table",
466
+ "compare-caption",
467
+ "compare-row",
468
+ "compare-label",
469
+ "compare-product",
470
+ "compare-product-media",
471
+ "compare-product-link",
472
+ "compare-product-remove",
473
+ "compare-cell",
474
+ "compare-empty",
475
+ "compare-button"
476
+ ];
477
+
478
+ // src/parts/site.ts
479
+ var SITE_PARTS = ["storefront-root", "slot-outlet"];
480
+
481
+ // src/parts/index.ts
482
+ var STOREFRONT_PART_KEYS = [
483
+ ...SITE_PARTS,
484
+ ...PIECES_PARTS,
485
+ ...SHOP_PARTS,
486
+ ...PRODUCT_PARTS,
487
+ ...FRAME_PARTS,
488
+ ...MERCH_PARTS,
489
+ ...SHOPPER_PARTS,
490
+ ...PAGES_PARTS
491
+ ];
492
+
493
+ // src/strings/frame.ts
494
+ var FRAME_STRINGS = {
495
+ skipLink: "Skip to main content",
496
+ announcement: {
497
+ label: "Announcement",
498
+ dismiss: "Dismiss announcement"
499
+ },
500
+ header: {
501
+ mainNav: "Main",
502
+ categoriesNav: "Categories",
503
+ closeMenu: "Close menu",
504
+ home: "{store}, home",
505
+ homeNoName: "Home"
506
+ },
507
+ nav: {
508
+ submenu: "{name} submenu"
509
+ },
510
+ search: {
511
+ label: "Search the shop",
512
+ suggestions: "Search suggestions",
513
+ products: "Products",
514
+ categories: "Categories",
515
+ brands: "Brands",
516
+ tags: "Tags",
517
+ collections: "Collections",
518
+ searchFor: "Search for \u201C{q}\u201D",
519
+ none: "No quick matches for \u201C{q}\u201D.",
520
+ announceNone: "No quick matches.",
521
+ announceOne: "1 suggestion",
522
+ announceMany: "{count} suggestions",
523
+ productCount: "{count} products",
524
+ productCountOne: "1 product"
525
+ },
526
+ locale: { label: "Language" },
527
+ currency: { label: "Currency" },
528
+ cart: {
529
+ label: "Cart, {count} items",
530
+ labelOne: "Cart, 1 item"
531
+ },
532
+ footer: { label: "Footer" }
533
+ };
534
+
535
+ // src/strings/merch.ts
536
+ var MERCH_STRINGS = {
537
+ viewAll: "View all",
538
+ viewAllNamed: "View all {title}",
539
+ viewProduct: "View product",
540
+ carousel: {
541
+ label: "Products",
542
+ previous: "Previous products",
543
+ next: "Next products",
544
+ slide: "{n} of {total}"
545
+ },
546
+ categories: {
547
+ label: "Categories",
548
+ count: "{count} products",
549
+ countOne: "1 product"
550
+ },
551
+ reviews: {
552
+ label: "Reviews",
553
+ verified: "Verified purchase",
554
+ reply: "Reply from the store",
555
+ forProduct: "on {product}"
556
+ }
557
+ };
558
+
559
+ // src/strings/pages.ts
560
+ var PAGES_STRINGS = {
561
+ notFound: {
562
+ code: "404",
563
+ body: "It may have moved, or it may never have existed.",
564
+ shop: "Browse the shop",
565
+ home: "Home"
566
+ },
567
+ search: {
568
+ prompt: "Type something to search the shop."
569
+ },
570
+ account: {
571
+ signIn: "Sign in",
572
+ signUp: "Create an account",
573
+ setupTitle: "Account pages are not set up yet",
574
+ setupBody: "Sign-in and account pages need your Throttle publishable key. Add it under Connections in the Builder, or pass throttlePublishableKey to the StorefrontProvider."
575
+ }
576
+ };
577
+
578
+ // src/strings/pieces.ts
579
+ var PIECES_STRINGS = {
580
+ rating: {
581
+ label: "{value} out of 5 stars",
582
+ labelWithCount: "{value} out of 5 stars, {count} reviews",
583
+ labelWithOne: "{value} out of 5 stars, 1 review",
584
+ count: "({count})"
585
+ },
586
+ price: {
587
+ customer: "Your price",
588
+ verifyEmail: "Verify your email to see your price",
589
+ compareAt: "Original price",
590
+ from: "From",
591
+ unavailable: "Not sold in this currency"
592
+ },
593
+ card: {
594
+ moreSwatches: "+{count}",
595
+ moreSwatchesLabel: "{count} more colours"
596
+ }
597
+ };
598
+
599
+ // src/strings/product.ts
600
+ var PRODUCT_STRINGS = {
601
+ gallery: {
602
+ label: "{title}: photos",
603
+ photoAlt: "{title}, photo {n}",
604
+ thumbs: "Photo thumbnails",
605
+ showPhoto: "Show photo {n} of {count}",
606
+ previous: "Previous photo",
607
+ next: "Next photo",
608
+ enlarge: "Enlarge photo",
609
+ close: "Close",
610
+ counter: "{n} / {count}",
611
+ lightboxTitle: "{title}: enlarged photos",
612
+ video: "{title}, video"
613
+ },
614
+ options: {
615
+ soldOut: ", sold out",
616
+ unavailableWith: ", not made with {others}",
617
+ chooseOne: "Choose {option}"
618
+ },
619
+ stockStatus: {
620
+ noCurrency: "Not available in {currency}",
621
+ noCurrencyAny: "Not available",
622
+ noCombination: "This combination is not available"
623
+ },
624
+ quantityInput: {
625
+ decrease: "One fewer",
626
+ increase: "One more"
627
+ },
628
+ cartAdd: {
629
+ adding: "Adding\u2026",
630
+ added: "Added {quantity} \xD7 {title} to your cart",
631
+ onlyLeft: "Only {count} left",
632
+ outOfStock: "Out of stock",
633
+ failed: "We could not add this to your cart. Try again in a moment."
634
+ },
635
+ sections: {
636
+ label: "Product details"
637
+ },
638
+ crumbs: {
639
+ label: "Breadcrumb",
640
+ home: "Home"
641
+ },
642
+ sticky: {
643
+ label: "Add to cart"
644
+ },
645
+ reviewList: {
646
+ ratingsByStars: "Ratings by stars",
647
+ filterRating: "Show {rating}-star reviews, {count} in all",
648
+ clearFilter: "Show all reviews",
649
+ sortLabel: "Sort by",
650
+ sortNewest: "Newest",
651
+ sortHighest: "Highest rated",
652
+ sortLowest: "Lowest rated",
653
+ loadMore: "Load more reviews",
654
+ loading: "Loading reviews",
655
+ loadFailed: "We could not load the reviews. Try again in a moment.",
656
+ verified: "Verified buyer",
657
+ reply: "Reply from the store",
658
+ noneForRating: "No reviews with this rating.",
659
+ average: "{value} out of 5",
660
+ ratingLabel: "Rated {rating} out of 5",
661
+ gateSignIn: "Sign in to write a review.",
662
+ gateReviewsDisabled: "Reviews are closed for this shop.",
663
+ gateEmailNotVerified: "Verify your email address to write a review.",
664
+ gateAlreadyReviewed: "You have reviewed this one already. Thank you.",
665
+ gateNotVerifiedBuyer: "Reviews come from customers who bought this. Once your order is paid, you can write one.",
666
+ gateUnknown: "You cannot review this product.",
667
+ gateFailed: "We could not check whether you can review this just now."
668
+ },
669
+ reviewForm: {
670
+ rating: "Your rating",
671
+ star: "{n} stars",
672
+ starOne: "1 star",
673
+ title: "Title (optional)",
674
+ body: "Your review",
675
+ name: "Name shown",
676
+ submit: "Send review",
677
+ sending: "Sending\u2026",
678
+ thanksPending: "Thanks, your review is awaiting moderation.",
679
+ thanksLive: "Thanks, your review is live.",
680
+ needRating: "Choose a rating from 1 to 5 stars.",
681
+ needBody: "Write a few words about it.",
682
+ needName: "Add the name to show with your review.",
683
+ errorAlready: "You have reviewed this one already.",
684
+ errorNotBuyer: "Only customers who bought this can review it.",
685
+ errorEmail: "Verify your email address first.",
686
+ errorBusy: "Too many reviews at once. Try again in a few minutes.",
687
+ errorGeneric: "Your review did not send. Try again in a moment."
688
+ }
689
+ };
690
+
691
+ // src/strings/shop.ts
692
+ var SHOP_STRINGS = {
693
+ resultsAnnounce: "{count} results",
694
+ countOne: "{count} product",
695
+ moreFilters: "More filters",
696
+ showResults: "Show {count} results",
697
+ showResultsLoading: "Show results",
698
+ closeFilters: "Close filters",
699
+ showAll: "Show all ({count})",
700
+ showFewer: "Show fewer",
701
+ searchFacet: "Search {name}",
702
+ noFacetMatch: "No matches",
703
+ valueCount: "{count} products",
704
+ selectedCount: "{count} selected",
705
+ removeFilter: "Remove filter: {label}",
706
+ rangeBetween: "{min} to {max}",
707
+ rangeFrom: "{min} and up",
708
+ rangeUpTo: "up to {max}",
709
+ rangeMin: "Min",
710
+ rangeMax: "Max",
711
+ rangeInvalid: "Enter numbers only.",
712
+ rangeClear: "Clear",
713
+ any: "Any",
714
+ breadcrumbs: "Breadcrumb",
715
+ paginationLabel: "Pagination",
716
+ pageLabel: "Page {page}",
717
+ errorLoading: "We could not load the products.",
718
+ retry: "Try again",
719
+ loadingProducts: "Loading products",
720
+ pastEnd: "There are no products on this page."
721
+ };
722
+
723
+ // src/strings/shopper.ts
724
+ var SHOPPER_STRINGS = {
725
+ cart: {
726
+ close: "Close cart",
727
+ lines: "Items in your cart",
728
+ loading: "Loading your cart",
729
+ subtotal: "Subtotal",
730
+ decrease: "Decrease quantity of {name}",
731
+ increase: "Increase quantity of {name}",
732
+ quantity: "Quantity of {name}",
733
+ remove: "Remove {name}",
734
+ removeText: "Remove",
735
+ removed: "Removed {name} from your cart.",
736
+ updated: "Quantity of {name} is now {quantity}.",
737
+ onlyLeft: "Only {count} available",
738
+ unavailable: "No longer available",
739
+ updateFailed: "We could not update your cart. Try again.",
740
+ checkoutFailed: "We could not start checkout. Try again.",
741
+ pricesChanged: "Some prices changed. Review your cart, then check out again.",
742
+ checkingOut: "Taking you to checkout"
743
+ },
744
+ quickAdd: {
745
+ button: "Quick add",
746
+ buttonFor: "Quick add {title}",
747
+ choose: "Choose options",
748
+ chooseFor: "Choose options for {title}",
749
+ panelFor: "Options for {title}",
750
+ added: "Added {title} to your cart.",
751
+ failed: "We could not add this. Try again.",
752
+ unavailable: "This product is not available."
753
+ },
754
+ quickView: {
755
+ title: "Quick view: {title}",
756
+ loadingTitle: "Quick view",
757
+ viewDetails: "View full details",
758
+ closeLabel: "Close quick view",
759
+ notFound: "This product is not available."
760
+ },
761
+ recent: {
762
+ title: "Recently viewed"
763
+ },
764
+ compare: {
765
+ button: "Compare",
766
+ buttonFor: "Compare {title}",
767
+ full: "You can compare up to {max} products.",
768
+ title: "Compare products",
769
+ caption: "Comparison of {count} products",
770
+ clear: "Clear all",
771
+ remove: "Remove {title} from the comparison",
772
+ needMore: "Choose at least 2 products to compare.",
773
+ spec: "Specification",
774
+ price: "Price",
775
+ availability: "Availability",
776
+ brand: "Brand",
777
+ rating: "Rating",
778
+ none: "\u2013",
779
+ loadFailed: "We could not load these products. Try again."
780
+ }
781
+ };
782
+
783
+ // src/strings/en.ts
784
+ var SF_STRINGS_EN = {
785
+ pieces: PIECES_STRINGS,
786
+ shop: SHOP_STRINGS,
787
+ product: PRODUCT_STRINGS,
788
+ frame: FRAME_STRINGS,
789
+ merch: MERCH_STRINGS,
790
+ shopper: SHOPPER_STRINGS,
791
+ pages: PAGES_STRINGS
792
+ };
793
+
794
+ // src/provider/context.ts
795
+ import { createContext as createContext2, useContext as useContext2 } from "react";
796
+ var StorefrontContext = createContext2(null);
797
+ function useStorefront() {
798
+ const value = useContext2(StorefrontContext);
799
+ if (!value) throw new Error("useStorefront() was called outside a <StorefrontProvider>.");
800
+ return value;
801
+ }
802
+
803
+ // src/strings/localization.ts
804
+ import { createLocalization } from "@usethrottle/ui";
805
+ var { LocalizationProvider: SfLocalizationProvider, useCopy: useSfCopy } = createLocalization(SF_STRINGS_EN);
806
+
807
+ export {
808
+ UnstyledContext,
809
+ useUnstyled,
810
+ Unstyled,
811
+ usePart,
812
+ SYNC_ATTRIBUTES,
813
+ STOREFRONT_PART_KEYS,
814
+ SF_STRINGS_EN,
815
+ SfLocalizationProvider,
816
+ useSfCopy,
817
+ StorefrontContext,
818
+ useStorefront
819
+ };
820
+ //# sourceMappingURL=chunk-NNE4FYRT.js.map