@lookiero/checkout 6.4.0 → 6.5.0-beta.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/dist/public/public/assets/adaptive-icon.png +0 -0
- package/dist/public/public/assets/favicon.png +0 -0
- package/dist/public/public/assets/icon.png +0 -0
- package/dist/public/public/assets/splash.png +0 -0
- package/dist/public/public/images/not-found.png +0 -0
- package/dist/src/ExpoRoot.js +1 -1
- package/dist/src/infrastructure/ui/Root.d.ts +1 -1
- package/dist/src/infrastructure/ui/components/templates/header/Header.js +3 -6
- package/dist/src/infrastructure/ui/components/templates/header/Header.style.d.ts +3 -2
- package/dist/src/infrastructure/ui/components/templates/header/Header.style.js +4 -3
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +6 -7
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.d.ts +2 -1
- package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.js +2 -1
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +2 -1
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +8 -0
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +11 -0
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +2 -1
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.d.ts +8 -0
- package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.js +11 -0
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.js +1 -0
- package/dist/src/infrastructure/ui/routing/Routing.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/checkout/Checkout.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/checkout/Checkout.js +9 -9
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.d.ts +5 -18
- package/dist/src/infrastructure/ui/views/checkout/Checkout.style.js +7 -21
- package/dist/src/infrastructure/ui/views/feedback/Feedback.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/feedback/Feedback.js +2 -1
- package/dist/src/infrastructure/ui/views/feedback/Feedback.style.d.ts +0 -3
- package/dist/src/infrastructure/ui/views/feedback/Feedback.style.js +0 -4
- package/dist/src/infrastructure/ui/views/item/Item.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/item/Item.js +4 -4
- package/dist/src/infrastructure/ui/views/item/Item.style.d.ts +4 -4
- package/dist/src/infrastructure/ui/views/item/Item.style.js +5 -6
- package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.js +3 -4
- package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.d.ts +1 -0
- package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.js +1 -0
- package/dist/src/infrastructure/ui/views/return/Return.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/return/Return.js +0 -1
- package/dist/src/infrastructure/ui/views/return/Return.style.d.ts +0 -3
- package/dist/src/infrastructure/ui/views/return/Return.style.js +1 -5
- package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.js +2 -2
- package/dist/src/infrastructure/ui/views/summary/Summary.d.ts +1 -1
- package/dist/src/infrastructure/ui/views/summary/Summary.js +20 -18
- package/dist/src/infrastructure/ui/views/summary/Summary.style.d.ts +4 -4
- package/dist/src/infrastructure/ui/views/summary/Summary.style.js +7 -8
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.d.ts +13 -0
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +33 -0
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.d.ts +18 -0
- package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.js +21 -0
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.d.ts +2 -14
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +15 -28
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.d.ts +0 -15
- package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.js +1 -16
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +0 -1
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +2 -2
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +6 -2
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +10 -1
- package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +13 -4
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +1 -1
- package/src/ExpoRoot.tsx +1 -1
- package/src/infrastructure/ui/Root.tsx +1 -1
- package/src/infrastructure/ui/components/templates/header/Header.style.ts +4 -3
- package/src/infrastructure/ui/components/templates/header/Header.tsx +7 -11
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.ts +2 -1
- package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +10 -11
- package/src/infrastructure/ui/{views/summary/components/stickyPricing/StickyPricing.style.ts → components/templates/header/defaultHeader/DefaultHeader.style.ts} +5 -4
- package/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.tsx +2 -1
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.ts +14 -0
- package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +2 -1
- package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.ts +1 -0
- package/src/infrastructure/ui/routing/Routing.tsx +1 -1
- package/src/infrastructure/ui/views/checkout/Checkout.style.ts +7 -21
- package/src/infrastructure/ui/views/checkout/Checkout.tsx +13 -22
- package/src/infrastructure/ui/views/feedback/Feedback.style.ts +0 -4
- package/src/infrastructure/ui/views/feedback/Feedback.tsx +3 -2
- package/src/infrastructure/ui/views/item/Item.style.ts +5 -6
- package/src/infrastructure/ui/views/item/Item.tsx +21 -21
- package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.ts +1 -0
- package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.tsx +11 -13
- package/src/infrastructure/ui/views/return/Return.style.ts +1 -5
- package/src/infrastructure/ui/views/return/Return.tsx +1 -2
- package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.ts +2 -1
- package/src/infrastructure/ui/views/summary/Summary.style.ts +8 -7
- package/src/infrastructure/ui/views/summary/Summary.tsx +52 -55
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.ts +24 -0
- package/src/infrastructure/ui/views/summary/components/{pricing/Pricing.test.tsx → collapsiblePricing/CollapsiblePricing.test.tsx} +2 -7
- package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +81 -0
- package/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.ts +1 -16
- package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +34 -94
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.ts +13 -4
- package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +6 -2
- package/src/infrastructure/ui/components/layouts/layout/Layout.ts +0 -25
- package/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.test.tsx +0 -40
- package/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.tsx +0 -9
- package/src/infrastructure/ui/components/layouts/layout/components/footer/__snapshots__/Footer.test.tsx.snap +0 -36
- package/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.ts +0 -21
- package/src/infrastructure/ui/components/layouts/layout/components/header/Header.test.tsx +0 -26
- package/src/infrastructure/ui/components/layouts/layout/components/header/Header.tsx +0 -10
- package/src/infrastructure/ui/components/layouts/layout/components/header/__snapshots__/Header.test.tsx.snap +0 -45
- package/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.ts +0 -15
- package/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.test.tsx +0 -66
- package/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.tsx +0 -45
- package/src/infrastructure/ui/components/layouts/layout/dummyLayout/__snapshots__/DummyLayout.test.tsx.snap +0 -1349
- package/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.tsx +0 -46
- /package/src/infrastructure/ui/views/summary/components/{pricing → collapsiblePricing}/__snapshots__/Pricing.test.tsx.snap +0 -0
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
2
|
-
import { LayoutRectangle } from "react-native";
|
|
3
|
-
import { Sticky } from "@lookiero/sty-psp-ui";
|
|
4
|
-
import { PricingProjection } from "../../../../../../projection/pricing/pricing";
|
|
5
|
-
import { Body } from "../../../../components/layouts/body/Body";
|
|
6
|
-
import { Pricing } from "../pricing/Pricing";
|
|
7
|
-
import { style } from "./StickyPricing.style";
|
|
8
|
-
|
|
9
|
-
interface StickyPricingProps {
|
|
10
|
-
readonly pricing: PricingProjection;
|
|
11
|
-
readonly totalCheckoutItemsKept: number;
|
|
12
|
-
readonly collapsed: boolean;
|
|
13
|
-
readonly submitButtonText: string;
|
|
14
|
-
readonly onPress: () => void;
|
|
15
|
-
readonly onSubmit: () => void;
|
|
16
|
-
readonly onLayout?: ({ width, height }: LayoutRectangle) => void;
|
|
17
|
-
}
|
|
18
|
-
const StickyPricing: FC<StickyPricingProps> = ({
|
|
19
|
-
pricing,
|
|
20
|
-
totalCheckoutItemsKept,
|
|
21
|
-
collapsed,
|
|
22
|
-
submitButtonText,
|
|
23
|
-
onPress,
|
|
24
|
-
onSubmit,
|
|
25
|
-
onLayout,
|
|
26
|
-
}) => (
|
|
27
|
-
<Sticky style={style.sticky} onLayout={onLayout}>
|
|
28
|
-
<Body>
|
|
29
|
-
<Pricing
|
|
30
|
-
balanceDiscount={pricing.balanceDiscount}
|
|
31
|
-
collapsed={collapsed}
|
|
32
|
-
discount={pricing.discount}
|
|
33
|
-
discountPercentage={pricing.discountPercentage}
|
|
34
|
-
pendingToPay={pricing.pendingToPay}
|
|
35
|
-
service={pricing.service}
|
|
36
|
-
submitButtonText={submitButtonText}
|
|
37
|
-
subtotal={pricing.subtotal}
|
|
38
|
-
totalCheckoutItemsKept={totalCheckoutItemsKept}
|
|
39
|
-
onPress={onPress}
|
|
40
|
-
onSubmit={onSubmit}
|
|
41
|
-
/>
|
|
42
|
-
</Body>
|
|
43
|
-
</Sticky>
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
export { StickyPricing };
|