@develemit/storefront 0.0.0-stage → 0.2.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 +244 -2
- package/dist/cart/cart-provider.d.ts +25 -0
- package/dist/cart/cart-provider.d.ts.map +1 -0
- package/dist/cart/cart-reducer.d.ts +32 -0
- package/dist/cart/cart-reducer.d.ts.map +1 -0
- package/dist/cart/cart-storage.d.ts +7 -0
- package/dist/cart/cart-storage.d.ts.map +1 -0
- package/dist/client/commerce-client.d.ts +14 -0
- package/dist/client/commerce-client.d.ts.map +1 -0
- package/dist/client/errors.d.ts +13 -0
- package/dist/client/errors.d.ts.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client.js +62 -0
- package/dist/components/add-to-cart-button/add-to-cart-button.d.ts +15 -0
- package/dist/components/add-to-cart-button/add-to-cart-button.d.ts.map +1 -0
- package/dist/components/availability-badge/availability-badge.d.ts +16 -0
- package/dist/components/availability-badge/availability-badge.d.ts.map +1 -0
- package/dist/components/cart-button/cart-button.d.ts +10 -0
- package/dist/components/cart-button/cart-button.d.ts.map +1 -0
- package/dist/components/cart-drawer/cart-drawer.d.ts +19 -0
- package/dist/components/cart-drawer/cart-drawer.d.ts.map +1 -0
- package/dist/components/cart-drawer/use-drawer-presence.d.ts +6 -0
- package/dist/components/cart-drawer/use-drawer-presence.d.ts.map +1 -0
- package/dist/components/cart-line-item/cart-line-item.d.ts +12 -0
- package/dist/components/cart-line-item/cart-line-item.d.ts.map +1 -0
- package/dist/components/cart-summary/cart-summary.d.ts +11 -0
- package/dist/components/cart-summary/cart-summary.d.ts.map +1 -0
- package/dist/components/category-filter/category-filter.d.ts +12 -0
- package/dist/components/category-filter/category-filter.d.ts.map +1 -0
- package/dist/components/fixtures.d.ts +3 -0
- package/dist/components/fixtures.d.ts.map +1 -0
- package/dist/components/price-tag/price-tag.d.ts +8 -0
- package/dist/components/price-tag/price-tag.d.ts.map +1 -0
- package/dist/components/product-card/product-card.d.ts +10 -0
- package/dist/components/product-card/product-card.d.ts.map +1 -0
- package/dist/components/product-gallery/product-gallery.d.ts +7 -0
- package/dist/components/product-gallery/product-gallery.d.ts.map +1 -0
- package/dist/components/product-grid/product-grid.d.ts +11 -0
- package/dist/components/product-grid/product-grid.d.ts.map +1 -0
- package/dist/components/render-with-cart.d.ts +4 -0
- package/dist/components/render-with-cart.d.ts.map +1 -0
- package/dist/format/index.d.ts +3 -0
- package/dist/format/index.d.ts.map +1 -0
- package/dist/format.js +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +672 -0
- package/dist/lib/format-price.d.ts +2 -0
- package/dist/lib/format-price.d.ts.map +1 -0
- package/dist/lib/parse-duration.d.ts +2 -0
- package/dist/lib/parse-duration.d.ts.map +1 -0
- package/dist/lib/provider.d.ts +29 -0
- package/dist/lib/provider.d.ts.map +1 -0
- package/dist/lib/theme.d.ts +16 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/sort-for-display-Cj6GMeCY.js +13 -0
- package/dist/styles.css +454 -0
- package/dist/views/featured-products.d.ts +9 -0
- package/dist/views/featured-products.d.ts.map +1 -0
- package/dist/views/product-detail-view.d.ts +14 -0
- package/dist/views/product-detail-view.d.ts.map +1 -0
- package/dist/views/shop-view.d.ts +20 -0
- package/dist/views/shop-view.d.ts.map +1 -0
- package/dist/views/sort-for-display.d.ts +3 -0
- package/dist/views/sort-for-display.d.ts.map +1 -0
- package/package.json +46 -3
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Product } from '@develemit/commerce-contracts';
|
|
3
|
+
import { AvailabilityLabels } from '../availability-badge/availability-badge';
|
|
4
|
+
export interface ProductGridProps {
|
|
5
|
+
products: Product[];
|
|
6
|
+
emptyState?: ReactNode;
|
|
7
|
+
labels?: Partial<AvailabilityLabels>;
|
|
8
|
+
priorityCount?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function ProductGrid({ products, emptyState, labels, priorityCount, }: ProductGridProps): import('react').JSX.Element;
|
|
11
|
+
//# sourceMappingURL=product-grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-grid.d.ts","sourceRoot":"","sources":["../../../src/components/product-grid/product-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,UAAU,EACV,MAAM,EACN,aAAiB,GAClB,EAAE,gBAAgB,+BAmBlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-with-cart.d.ts","sourceRoot":"","sources":["../../src/components/render-with-cart.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,wBAAsB,cAAc,CAAC,EAAE,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,iBAI1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/format/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC"}
|
package/dist/format.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as formatPrice, t as sortForDisplay } from "./sort-for-display-Cj6GMeCY.js";
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type { Product, ProductImage, ProductAvailability, Category, CartLine, CheckoutRequest, CheckoutResponse, OrderSummary, } from '@develemit/commerce-contracts';
|
|
2
|
+
export * from './lib/format-price';
|
|
3
|
+
export * from './lib/theme';
|
|
4
|
+
export * from './lib/provider';
|
|
5
|
+
export * from './components/price-tag/price-tag';
|
|
6
|
+
export * from './components/availability-badge/availability-badge';
|
|
7
|
+
export * from './components/product-card/product-card';
|
|
8
|
+
export * from './components/product-grid/product-grid';
|
|
9
|
+
export * from './components/category-filter/category-filter';
|
|
10
|
+
export * from './components/product-gallery/product-gallery';
|
|
11
|
+
export * from './views/shop-view';
|
|
12
|
+
export * from './views/product-detail-view';
|
|
13
|
+
export * from './views/featured-products';
|
|
14
|
+
export * from './views/sort-for-display';
|
|
15
|
+
export * from './cart/cart-reducer';
|
|
16
|
+
export * from './cart/cart-storage';
|
|
17
|
+
export * from './cart/cart-provider';
|
|
18
|
+
export * from './components/add-to-cart-button/add-to-cart-button';
|
|
19
|
+
export * from './components/cart-drawer/cart-drawer';
|
|
20
|
+
export * from './components/cart-line-item/cart-line-item';
|
|
21
|
+
export * from './components/cart-summary/cart-summary';
|
|
22
|
+
export * from './components/cart-button/cart-button';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,YAAY,EACZ,mBAAmB,EACnB,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,YAAY,GACb,MAAM,+BAA+B,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kCAAkC,CAAC;AACjD,cAAc,oDAAoD,CAAC;AACnE,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oDAAoD,CAAC;AACnE,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC"}
|