@tapcart/mobile-components 0.8.1 → 0.8.2
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.
|
@@ -147,7 +147,7 @@ const transformCart = ({ products, cartOrigin = cartMock, }) => {
|
|
|
147
147
|
deliveryGroups,
|
|
148
148
|
cost });
|
|
149
149
|
};
|
|
150
|
-
export const useMockCart = ({ apiUrl, appId, enabled = true, limit =
|
|
150
|
+
export const useMockCart = ({ apiUrl, appId, enabled = true, limit = 10, }) => {
|
|
151
151
|
const { products, error: productsError, isLoading: productsLoading, } = useProducts({
|
|
152
152
|
productIds: [],
|
|
153
153
|
productHandles: [],
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as SwipeableListLib from "react-swipeable-list";
|
|
2
2
|
import "react-swipeable-list/dist/styles.css";
|
|
3
|
-
export
|
|
3
|
+
export declare const LeadingActions: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const SwipeableList: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const SwipeableListItem: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const SwipeAction: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const TrailingActions: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const ListType: typeof SwipeableListLib.Type;
|
|
4
9
|
//# sourceMappingURL=swipeable-list-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swipeable-list-item.d.ts","sourceRoot":"","sources":["../../../components/ui/swipeable-list-item.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"swipeable-list-item.d.ts","sourceRoot":"","sources":["../../../components/ui/swipeable-list-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,gBAAgB,MAAM,sBAAsB,CAAA;AACxD,OAAO,sCAAsC,CAAA;AAG7C,eAAO,MAAM,cAAc,UAAW,GAAG,4CAExC,CAAA;AACD,eAAO,MAAM,aAAa,UAAW,GAAG,4CAEvC,CAAA;AACD,eAAO,MAAM,iBAAiB,UAAW,GAAG,4CAE3C,CAAA;AACD,eAAO,MAAM,WAAW,UAAW,GAAG,4CAErC,CAAA;AACD,eAAO,MAAM,eAAe,UAAW,GAAG,4CAEzC,CAAA;AACD,eAAO,MAAM,QAAQ,8BAAwB,CAAA"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as SwipeableListLib from "react-swipeable-list";
|
|
3
4
|
import "react-swipeable-list/dist/styles.css";
|
|
4
|
-
export
|
|
5
|
+
// Re-export as wrapped components
|
|
6
|
+
export const LeadingActions = (props) => (_jsx(SwipeableListLib.LeadingActions, Object.assign({}, props)));
|
|
7
|
+
export const SwipeableList = (props) => (_jsx(SwipeableListLib.SwipeableList, Object.assign({}, props)));
|
|
8
|
+
export const SwipeableListItem = (props) => (_jsx(SwipeableListLib.SwipeableListItem, Object.assign({}, props)));
|
|
9
|
+
export const SwipeAction = (props) => (_jsx(SwipeableListLib.SwipeAction, Object.assign({}, props)));
|
|
10
|
+
export const TrailingActions = (props) => (_jsx(SwipeableListLib.TrailingActions, Object.assign({}, props)));
|
|
11
|
+
export const ListType = SwipeableListLib.Type;
|