@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.
Files changed (108) hide show
  1. package/dist/public/public/assets/adaptive-icon.png +0 -0
  2. package/dist/public/public/assets/favicon.png +0 -0
  3. package/dist/public/public/assets/icon.png +0 -0
  4. package/dist/public/public/assets/splash.png +0 -0
  5. package/dist/public/public/images/not-found.png +0 -0
  6. package/dist/src/ExpoRoot.js +1 -1
  7. package/dist/src/infrastructure/ui/Root.d.ts +1 -1
  8. package/dist/src/infrastructure/ui/components/templates/header/Header.js +3 -6
  9. package/dist/src/infrastructure/ui/components/templates/header/Header.style.d.ts +3 -2
  10. package/dist/src/infrastructure/ui/components/templates/header/Header.style.js +4 -3
  11. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +6 -7
  12. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.d.ts +2 -1
  13. package/dist/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.js +2 -1
  14. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +2 -1
  15. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +8 -0
  16. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +11 -0
  17. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +2 -1
  18. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.d.ts +8 -0
  19. package/dist/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.js +11 -0
  20. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.d.ts +1 -0
  21. package/dist/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.js +1 -0
  22. package/dist/src/infrastructure/ui/routing/Routing.d.ts +1 -1
  23. package/dist/src/infrastructure/ui/views/checkout/Checkout.d.ts +1 -1
  24. package/dist/src/infrastructure/ui/views/checkout/Checkout.js +9 -9
  25. package/dist/src/infrastructure/ui/views/checkout/Checkout.style.d.ts +5 -18
  26. package/dist/src/infrastructure/ui/views/checkout/Checkout.style.js +7 -21
  27. package/dist/src/infrastructure/ui/views/feedback/Feedback.d.ts +1 -1
  28. package/dist/src/infrastructure/ui/views/feedback/Feedback.js +2 -1
  29. package/dist/src/infrastructure/ui/views/feedback/Feedback.style.d.ts +0 -3
  30. package/dist/src/infrastructure/ui/views/feedback/Feedback.style.js +0 -4
  31. package/dist/src/infrastructure/ui/views/item/Item.d.ts +1 -1
  32. package/dist/src/infrastructure/ui/views/item/Item.js +4 -4
  33. package/dist/src/infrastructure/ui/views/item/Item.style.d.ts +4 -4
  34. package/dist/src/infrastructure/ui/views/item/Item.style.js +5 -6
  35. package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.js +3 -4
  36. package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.d.ts +1 -0
  37. package/dist/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.js +1 -0
  38. package/dist/src/infrastructure/ui/views/return/Return.d.ts +1 -1
  39. package/dist/src/infrastructure/ui/views/return/Return.js +0 -1
  40. package/dist/src/infrastructure/ui/views/return/Return.style.d.ts +0 -3
  41. package/dist/src/infrastructure/ui/views/return/Return.style.js +1 -5
  42. package/dist/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.js +2 -2
  43. package/dist/src/infrastructure/ui/views/summary/Summary.d.ts +1 -1
  44. package/dist/src/infrastructure/ui/views/summary/Summary.js +20 -18
  45. package/dist/src/infrastructure/ui/views/summary/Summary.style.d.ts +4 -4
  46. package/dist/src/infrastructure/ui/views/summary/Summary.style.js +7 -8
  47. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.d.ts +13 -0
  48. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.js +33 -0
  49. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.d.ts +18 -0
  50. package/dist/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.js +21 -0
  51. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.d.ts +2 -14
  52. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.js +15 -28
  53. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.d.ts +0 -15
  54. package/dist/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.js +1 -16
  55. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +0 -1
  56. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +2 -2
  57. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.js +6 -2
  58. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +10 -1
  59. package/dist/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +13 -4
  60. package/dist/src/version.d.ts +1 -1
  61. package/dist/src/version.js +1 -1
  62. package/package.json +1 -1
  63. package/src/ExpoRoot.tsx +1 -1
  64. package/src/infrastructure/ui/Root.tsx +1 -1
  65. package/src/infrastructure/ui/components/templates/header/Header.style.ts +4 -3
  66. package/src/infrastructure/ui/components/templates/header/Header.tsx +7 -11
  67. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.style.ts +2 -1
  68. package/src/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.tsx +10 -11
  69. package/src/infrastructure/ui/{views/summary/components/stickyPricing/StickyPricing.style.ts → components/templates/header/defaultHeader/DefaultHeader.style.ts} +5 -4
  70. package/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.tsx +2 -1
  71. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.style.ts +14 -0
  72. package/src/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.tsx +2 -1
  73. package/src/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.style.ts +1 -0
  74. package/src/infrastructure/ui/routing/Routing.tsx +1 -1
  75. package/src/infrastructure/ui/views/checkout/Checkout.style.ts +7 -21
  76. package/src/infrastructure/ui/views/checkout/Checkout.tsx +13 -22
  77. package/src/infrastructure/ui/views/feedback/Feedback.style.ts +0 -4
  78. package/src/infrastructure/ui/views/feedback/Feedback.tsx +3 -2
  79. package/src/infrastructure/ui/views/item/Item.style.ts +5 -6
  80. package/src/infrastructure/ui/views/item/Item.tsx +21 -21
  81. package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.ts +1 -0
  82. package/src/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.tsx +11 -13
  83. package/src/infrastructure/ui/views/return/Return.style.ts +1 -5
  84. package/src/infrastructure/ui/views/return/Return.tsx +1 -2
  85. package/src/infrastructure/ui/views/shared/components/productVariant/ProductVariant.style.ts +2 -1
  86. package/src/infrastructure/ui/views/summary/Summary.style.ts +8 -7
  87. package/src/infrastructure/ui/views/summary/Summary.tsx +52 -55
  88. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.style.ts +24 -0
  89. package/src/infrastructure/ui/views/summary/components/{pricing/Pricing.test.tsx → collapsiblePricing/CollapsiblePricing.test.tsx} +2 -7
  90. package/src/infrastructure/ui/views/summary/components/collapsiblePricing/CollapsiblePricing.tsx +81 -0
  91. package/src/infrastructure/ui/views/summary/components/pricing/Pricing.style.ts +1 -16
  92. package/src/infrastructure/ui/views/summary/components/pricing/Pricing.tsx +34 -94
  93. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.style.ts +13 -4
  94. package/src/infrastructure/ui/views/summaryTabs/components/checkoutItemsTabs/CheckoutItemsTabs.tsx +6 -2
  95. package/src/infrastructure/ui/components/layouts/layout/Layout.ts +0 -25
  96. package/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.test.tsx +0 -40
  97. package/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.tsx +0 -9
  98. package/src/infrastructure/ui/components/layouts/layout/components/footer/__snapshots__/Footer.test.tsx.snap +0 -36
  99. package/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.ts +0 -21
  100. package/src/infrastructure/ui/components/layouts/layout/components/header/Header.test.tsx +0 -26
  101. package/src/infrastructure/ui/components/layouts/layout/components/header/Header.tsx +0 -10
  102. package/src/infrastructure/ui/components/layouts/layout/components/header/__snapshots__/Header.test.tsx.snap +0 -45
  103. package/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.ts +0 -15
  104. package/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.test.tsx +0 -66
  105. package/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.tsx +0 -45
  106. package/src/infrastructure/ui/components/layouts/layout/dummyLayout/__snapshots__/DummyLayout.test.tsx.snap +0 -1349
  107. package/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.tsx +0 -46
  108. /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 };