@lookiero/checkout 2.4.1-beta.0 → 3.0.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/infrastructure/ui/Root.d.ts +2 -1
- package/dist/infrastructure/ui/Root.js +2 -2
- package/dist/infrastructure/ui/components/layouts/layout/Layout.d.ts +11 -0
- package/dist/infrastructure/ui/components/layouts/layout/Layout.js +1 -0
- package/dist/infrastructure/ui/components/layouts/layout/components/footer/Footer.d.ts +6 -0
- package/dist/infrastructure/ui/components/layouts/layout/components/footer/Footer.js +4 -0
- package/dist/infrastructure/ui/components/layouts/layout/components/header/Header.d.ts +6 -0
- package/dist/infrastructure/ui/components/layouts/layout/components/header/Header.js +5 -0
- package/dist/infrastructure/ui/components/layouts/layout/components/header/Header.style.d.ts +45 -0
- package/dist/infrastructure/ui/components/layouts/layout/components/header/Header.style.js +31 -0
- package/dist/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.d.ts +3 -0
- package/dist/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.js +15 -0
- package/dist/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.d.ts +6 -0
- package/dist/infrastructure/ui/components/layouts/layout/dummyLayout/DummyLayout.style.js +7 -0
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.d.ts +1 -2
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +1 -1
- package/dist/infrastructure/ui/components/templates/footer/Footer.d.ts +3 -0
- package/dist/infrastructure/ui/components/templates/footer/Footer.js +13 -0
- package/dist/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.d.ts +3 -0
- package/dist/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.js +5 -0
- package/dist/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.d.ts +9 -0
- package/dist/infrastructure/ui/components/templates/header/buttonIconPlaceholder/ButtonIconPlaceholder.style.js +12 -0
- package/dist/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.d.ts +6 -0
- package/dist/infrastructure/ui/components/templates/header/checkoutHeader/CheckoutHeader.js +23 -0
- package/dist/infrastructure/ui/components/templates/header/header/Header.d.ts +3 -0
- package/dist/infrastructure/ui/components/templates/header/header/Header.js +10 -0
- package/dist/infrastructure/ui/components/templates/header/header/Header.style.d.ts +9 -0
- package/dist/infrastructure/ui/components/templates/header/header/Header.style.js +12 -0
- package/dist/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.d.ts +6 -0
- package/dist/infrastructure/ui/components/templates/header/itemDetailHeader/ItemDetailHeader.js +20 -0
- package/dist/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.d.ts +26 -0
- package/dist/infrastructure/ui/components/templates/header/itemHeader/ItemHeader.js +34 -0
- package/dist/infrastructure/ui/components/templates/header/logo/Logo.d.ts +7 -0
- package/dist/infrastructure/ui/components/templates/header/logo/Logo.js +11 -0
- package/dist/infrastructure/ui/components/templates/header/logo/Logo.style.d.ts +7 -0
- package/dist/infrastructure/ui/components/templates/header/logo/Logo.style.js +8 -0
- package/dist/infrastructure/ui/hooks/useSubmitCheckout.js +5 -0
- package/dist/infrastructure/ui/routing/CheckoutMiddleware.d.ts +1 -0
- package/dist/infrastructure/ui/routing/CheckoutMiddleware.js +4 -3
- package/dist/infrastructure/ui/routing/Routing.d.ts +2 -1
- package/dist/infrastructure/ui/routing/Routing.js +8 -8
- package/dist/infrastructure/ui/views/App.d.ts +0 -4
- package/dist/infrastructure/ui/views/App.js +2 -4
- package/dist/infrastructure/ui/views/checkout/Checkout.d.ts +2 -0
- package/dist/infrastructure/ui/views/checkout/Checkout.js +12 -6
- package/dist/infrastructure/ui/views/checkout/Checkout.style.d.ts +3 -0
- package/dist/infrastructure/ui/views/checkout/Checkout.style.js +3 -0
- package/dist/infrastructure/ui/views/feedback/Feedback.d.ts +2 -0
- package/dist/infrastructure/ui/views/feedback/Feedback.js +6 -6
- package/dist/infrastructure/ui/views/feedback/Feedback.style.d.ts +3 -0
- package/dist/infrastructure/ui/views/feedback/Feedback.style.js +4 -1
- package/dist/infrastructure/ui/views/item/Item.d.ts +2 -0
- package/dist/infrastructure/ui/views/item/Item.js +37 -4
- package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +2 -2
- package/dist/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.js +2 -4
- package/dist/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.d.ts +3 -0
- package/dist/infrastructure/ui/views/item/views/itemWithCustomerDecission/ItemWithCustomerDecission.style.js +4 -1
- package/dist/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.js +5 -5
- package/dist/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.d.ts +6 -0
- package/dist/infrastructure/ui/views/item/views/itemWithoutCustomerDecission/ItemWithoutCustomerDecission.style.js +9 -0
- package/dist/infrastructure/ui/views/notFound/NotFound.d.ts +2 -0
- package/dist/infrastructure/ui/views/notFound/NotFound.js +9 -10
- package/dist/infrastructure/ui/views/notFound/NotFound.style.d.ts +1 -0
- package/dist/infrastructure/ui/views/notFound/NotFound.style.js +2 -1
- package/dist/infrastructure/ui/views/summary/Summary.d.ts +2 -0
- package/dist/infrastructure/ui/views/summary/Summary.js +11 -11
- package/dist/infrastructure/ui/views/summary/Summary.style.d.ts +3 -0
- package/dist/infrastructure/ui/views/summary/Summary.style.js +4 -1
- package/dist/shared/ui/components/layouts/modal/Modal.d.ts +0 -1
- package/dist/shared/ui/components/layouts/modal/Modal.js +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
2
|
import { theme } from "../../theme/theme";
|
|
3
|
-
const { spaceM, spaceL, spaceXL } = theme();
|
|
3
|
+
const { spaceM, spaceL, spaceXL, spaceXXL } = theme();
|
|
4
4
|
const style = StyleSheet.create({
|
|
5
|
+
container: {
|
|
6
|
+
paddingBottom: spaceXXL,
|
|
7
|
+
},
|
|
5
8
|
content: {
|
|
6
9
|
paddingHorizontal: spaceXL,
|
|
7
10
|
},
|
|
@@ -12,7 +12,6 @@ interface ModalProps {
|
|
|
12
12
|
readonly footer?: ReactNode;
|
|
13
13
|
readonly portalHostName?: string;
|
|
14
14
|
readonly scroll?: boolean;
|
|
15
|
-
readonly extraScrollHeight?: number | undefined;
|
|
16
15
|
readonly size?: Partial<Record<ScreenSize, ColumnSize>>;
|
|
17
16
|
readonly style?: Partial<Record<ModalStyle, StyleProp<ViewStyle>>>;
|
|
18
17
|
readonly testID?: string;
|
|
@@ -15,7 +15,7 @@ const { spaceXL, spaceXXL } = theme();
|
|
|
15
15
|
const TRANSITION_MODAL_SCALE = 0.9;
|
|
16
16
|
const DEFAULT_SAFEAREA_INSET_TOP = spaceXXL;
|
|
17
17
|
const MODAL_DESKTOP_VERTICAL_PADDING = spaceXXL;
|
|
18
|
-
const Modal = ({ children, visible, header, footer, portalHostName, onClose, showCloseButton = false, size = { M: "2/3", L: "1/3" }, style: customStyle, scroll = false,
|
|
18
|
+
const Modal = ({ children, visible, header, footer, portalHostName, onClose, showCloseButton = false, size = { M: "2/3", L: "1/3" }, style: customStyle, scroll = false, testID = "modal", }) => {
|
|
19
19
|
const { height: screenHeight } = Dimensions.get(Platform.OS === "web" ? "window" : "screen");
|
|
20
20
|
const { top: safeAreaInsetTop, bottom: safeAreaInsetBottom } = useSafeAreaInsets();
|
|
21
21
|
const screenSize = useScreenSize();
|
|
@@ -75,7 +75,7 @@ const Modal = ({ children, visible, header, footer, portalHostName, onClose, sho
|
|
|
75
75
|
(header || showCloseButton) && (React.createElement(View, { style: [style.header, customStyle?.header] },
|
|
76
76
|
React.createElement(View, null, header),
|
|
77
77
|
showCloseButton && (React.createElement(ButtonIcon, { name: "close", style: { button: customStyle?.closeButton }, onPress: onClose })))),
|
|
78
|
-
React.createElement(ModalContentView,
|
|
78
|
+
React.createElement(ModalContentView, null,
|
|
79
79
|
React.createElement(View, { style: {
|
|
80
80
|
paddingBottom: safeAreaInsetBottom +
|
|
81
81
|
(Platform.OS !== "ios" ? spaceXL : 0) +
|