@lookiero/checkout 6.5.1-beta.0 → 6.5.1

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 (30) hide show
  1. package/dist/src/version.d.ts +1 -1
  2. package/dist/src/version.js +1 -1
  3. package/package.json +1 -1
  4. package/dist/public/public/assets/adaptive-icon.png +0 -0
  5. package/dist/public/public/assets/favicon.png +0 -0
  6. package/dist/public/public/assets/icon.png +0 -0
  7. package/dist/public/public/assets/splash.png +0 -0
  8. package/dist/public/public/images/not-found.png +0 -0
  9. package/dist/src/infrastructure/ui/components/layouts/layout/Layout.d.ts +0 -21
  10. package/dist/src/infrastructure/ui/components/layouts/layout/Layout.js +0 -1
  11. package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.d.ts +0 -6
  12. package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.js +0 -4
  13. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.d.ts +0 -6
  14. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.js +0 -5
  15. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.d.ts +0 -4
  16. package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.js +0 -19
  17. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.d.ts +0 -3
  18. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.js +0 -18
  19. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.d.ts +0 -12
  20. package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.js +0 -13
  21. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.d.ts +0 -6
  22. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +0 -11
  23. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +0 -8
  24. package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +0 -11
  25. package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.d.ts +0 -7
  26. package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.js +0 -10
  27. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +0 -13
  28. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +0 -9
  29. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +0 -7
  30. package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.js +0 -10
@@ -1 +1 @@
1
- export declare const VERSION = "6.5.1-beta.0";
1
+ export declare const VERSION = "6.5.1";
@@ -1 +1 @@
1
- export const VERSION = "6.5.1-beta.0";
1
+ export const VERSION = "6.5.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "6.5.1-beta.0",
3
+ "version": "6.5.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": "false",
Binary file
@@ -1,21 +0,0 @@
1
- import { FC, ReactNode, RefObject } from "react";
2
- import { LayoutChangeEvent, ScrollView, StyleProp, ViewStyle } from "react-native";
3
- interface LayoutStyle {
4
- readonly safeAreaView: StyleProp<ViewStyle>;
5
- readonly scrollView: StyleProp<ViewStyle>;
6
- readonly header: StyleProp<ViewStyle>;
7
- }
8
- interface LayoutProps {
9
- readonly children: ReactNode;
10
- readonly header?: JSX.Element | null;
11
- readonly footer?: JSX.Element | null;
12
- readonly panel?: JSX.Element | null;
13
- readonly stickyHeader?: boolean;
14
- readonly stickyHeaderHiddenOnScroll?: boolean;
15
- readonly scrollRef?: RefObject<ScrollView>;
16
- readonly scrollEnabled?: boolean;
17
- readonly style?: Partial<LayoutStyle>;
18
- readonly onLayout?: (event: LayoutChangeEvent) => void;
19
- }
20
- type Layout = FC<LayoutProps>;
21
- export type { Layout };
@@ -1,6 +0,0 @@
1
- import { FC, ReactNode } from "react";
2
- interface FooterProps {
3
- readonly children: ReactNode;
4
- }
5
- declare const Footer: FC<FooterProps>;
6
- export { Footer };
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { Platform } from "react-native";
3
- const Footer = ({ children }) => (Platform.OS !== "web" ? React.createElement(React.Fragment, null, children) : null);
4
- export { Footer };
@@ -1,6 +0,0 @@
1
- import { FC, ReactNode } from "react";
2
- interface HeaderProps {
3
- readonly children: ReactNode;
4
- }
5
- declare const Header: FC<HeaderProps>;
6
- export { Header };
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- import { View } from "react-native";
3
- import { style } from "./Header.style";
4
- const Header = ({ children }) => React.createElement(View, { style: style.header }, children);
5
- export { Header };
@@ -1,4 +0,0 @@
1
- declare const style: {
2
- header: {};
3
- };
4
- export { style };
@@ -1,19 +0,0 @@
1
- import { Platform, StyleSheet } from "react-native";
2
- import { HEADER_HEIGHT } from "../../../../templates/header/Header.style";
3
- const style = StyleSheet.create({
4
- header: {
5
- ...Platform.select({
6
- web: {
7
- position: "sticky",
8
- top: 0,
9
- zIndex: 10,
10
- height: HEADER_HEIGHT,
11
- },
12
- native: {
13
- position: "relative",
14
- height: HEADER_HEIGHT,
15
- },
16
- }),
17
- },
18
- });
19
- export { style };
@@ -1,3 +0,0 @@
1
- import { Layout } from "../Layout";
2
- declare const DummyLayout: Layout;
3
- export { DummyLayout };
@@ -1,18 +0,0 @@
1
- /* eslint-disable react/prop-types */
2
- import React from "react";
3
- import { View } from "react-native";
4
- import { GestureHandlerRootView, ScrollView as RNGHScrollView } from "react-native-gesture-handler";
5
- import { SafeAreaView } from "react-native-safe-area-context";
6
- import { Footer as DefaultFooter } from "../../../templates/footer/Footer";
7
- import { DefaultHeader } from "../../../templates/header/defaultHeader/DefaultHeader";
8
- import { Footer } from "../components/footer/Footer";
9
- import { Header } from "../components/header/Header";
10
- import { style } from "./DummyLayout.style";
11
- const DummyLayout = ({ children, header = React.createElement(DefaultHeader, null), footer = React.createElement(DefaultFooter, null), panel, style: customStyle, scrollEnabled, onLayout, }) => (React.createElement(SafeAreaView, { style: [style.safeAreaView, customStyle?.safeAreaView] },
12
- React.createElement(GestureHandlerRootView, { style: { flex: 1 } },
13
- React.createElement(RNGHScrollView, { contentContainerStyle: [style.scrollView, customStyle?.scrollView], scrollEnabled: scrollEnabled, scrollEventThrottle: 16, showsVerticalScrollIndicator: false, stickyHeaderIndices: [0] },
14
- React.createElement(Header, null, header),
15
- panel,
16
- React.createElement(View, { style: style.children, onLayout: onLayout }, children))),
17
- React.createElement(Footer, null, footer)));
18
- export { DummyLayout };
@@ -1,12 +0,0 @@
1
- declare const style: {
2
- children: {
3
- flex: number;
4
- };
5
- safeAreaView: {
6
- flex: number;
7
- };
8
- scrollView: {
9
- flexGrow: number;
10
- };
11
- };
12
- export { style };
@@ -1,13 +0,0 @@
1
- import { StyleSheet } from "react-native";
2
- const style = StyleSheet.create({
3
- children: {
4
- flex: 1,
5
- },
6
- safeAreaView: {
7
- flex: 1,
8
- },
9
- scrollView: {
10
- flexGrow: 1,
11
- },
12
- });
13
- export { style };
@@ -1,6 +0,0 @@
1
- import { FC } from "react";
2
- interface DefaultHeaderProps {
3
- readonly onPressMenu?: () => void;
4
- }
5
- declare const DefaultHeader: FC<DefaultHeaderProps>;
6
- export { DefaultHeader };
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import { ButtonIcon } from "@lookiero/aurora";
3
- import { Header } from "../Header";
4
- import { ButtonIconPlaceholder } from "../buttonIconPlaceholder/ButtonIconPlaceholder";
5
- import { Logo } from "../logo/Logo";
6
- import { style } from "./DefaultHeader.style";
7
- const DefaultHeader = ({ onPressMenu }) => (React.createElement(Header, { testID: "default-header" },
8
- React.createElement(Logo, null),
9
- React.createElement(ButtonIconPlaceholder, null),
10
- React.createElement(ButtonIcon, { name: "menu", style: style.button, testID: "menu-button-icon", onPress: onPressMenu })));
11
- export { DefaultHeader };
@@ -1,8 +0,0 @@
1
- declare const style: {
2
- button: {
3
- alignSelf: "auto";
4
- height: number;
5
- width: number;
6
- };
7
- };
8
- export { style };
@@ -1,11 +0,0 @@
1
- import { StyleSheet } from "react-native";
2
- import { theme } from "@lookiero/sty-psp-ui";
3
- const { space10 } = theme();
4
- const style = StyleSheet.create({
5
- button: {
6
- alignSelf: "auto",
7
- height: space10,
8
- width: space10,
9
- },
10
- });
11
- export { style };
@@ -1,7 +0,0 @@
1
- declare const style: {
2
- buttonContainer: {
3
- paddingHorizontal: number;
4
- paddingVertical: number;
5
- };
6
- };
7
- export { style };
@@ -1,10 +0,0 @@
1
- import { StyleSheet } from "react-native";
2
- import { theme } from "@lookiero/sty-psp-ui";
3
- const { space6, space8 } = theme();
4
- const style = StyleSheet.create({
5
- buttonContainer: {
6
- paddingHorizontal: space6,
7
- paddingVertical: space8,
8
- },
9
- });
10
- export { style };
@@ -1,13 +0,0 @@
1
- import { FC } from "react";
2
- import { LayoutRectangle } from "react-native";
3
- import { PricingProjection } from "../../../../../../projection/pricing/pricing";
4
- interface StickyPricingProps {
5
- readonly pricing: PricingProjection;
6
- readonly totalCheckoutItemsKept: number;
7
- readonly collapsed: boolean;
8
- readonly onPress: () => void;
9
- readonly onSubmit: () => void;
10
- readonly onLayout?: ({ width, height }: LayoutRectangle) => void;
11
- }
12
- declare const StickyPricing: FC<StickyPricingProps>;
13
- export { StickyPricing };
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { Sticky } from "@lookiero/sty-psp-ui";
3
- import { Body } from "../../../../components/layouts/body/Body";
4
- import { Pricing } from "../pricing/Pricing";
5
- import { style } from "./StickyPricing.style";
6
- const StickyPricing = ({ pricing, totalCheckoutItemsKept, collapsed, onPress, onSubmit, onLayout, }) => (React.createElement(Sticky, { style: style.sticky, onLayout: onLayout },
7
- React.createElement(Body, null,
8
- React.createElement(Pricing, { balanceDiscount: pricing.balanceDiscount, collapsed: collapsed, discount: pricing.discount, discountPercentage: pricing.discountPercentage, pendingToPay: pricing.pendingToPay, service: pricing.service, subtotal: pricing.subtotal, totalCheckoutItemsKept: totalCheckoutItemsKept, onPress: onPress, onSubmit: onSubmit }))));
9
- export { StickyPricing };
@@ -1,7 +0,0 @@
1
- declare const style: {
2
- sticky: {
3
- paddingBottom: number;
4
- paddingTop: number;
5
- };
6
- };
7
- export { style };
@@ -1,10 +0,0 @@
1
- import { StyleSheet } from "react-native";
2
- import { theme } from "@lookiero/sty-psp-ui";
3
- const { space3, space4 } = theme();
4
- const style = StyleSheet.create({
5
- sticky: {
6
- paddingBottom: space4,
7
- paddingTop: space3,
8
- },
9
- });
10
- export { style };