@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.
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +1 -1
- 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/infrastructure/ui/components/layouts/layout/Layout.d.ts +0 -21
- package/dist/src/infrastructure/ui/components/layouts/layout/Layout.js +0 -1
- package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.d.ts +0 -6
- package/dist/src/infrastructure/ui/components/layouts/layout/components/footer/Footer.js +0 -4
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.d.ts +0 -6
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.js +0 -5
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.d.ts +0 -4
- package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.js +0 -19
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.js +0 -18
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.d.ts +0 -12
- package/dist/src/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.js +0 -13
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.d.ts +0 -6
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js +0 -11
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.d.ts +0 -8
- package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js +0 -11
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.d.ts +0 -7
- package/dist/src/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.js +0 -10
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +0 -13
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.js +0 -9
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +0 -7
- package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.style.js +0 -10
package/dist/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "6.5.1
|
|
1
|
+
export declare const VERSION = "6.5.1";
|
package/dist/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "6.5.1
|
|
1
|
+
export const VERSION = "6.5.1";
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/src/infrastructure/ui/components/layouts/layout/components/header/Header.style.js
DELETED
|
@@ -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,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 };
|
package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.js
DELETED
|
@@ -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 };
|
package/dist/src/infrastructure/ui/components/templates/header/defaultHeader/DefaultHeader.style.js
DELETED
|
@@ -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,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 };
|
package/dist/src/infrastructure/ui/views/summary/components/stickyPricing/StickyPricing.d.ts
DELETED
|
@@ -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 };
|