@lookiero/checkout 3.8.0-beta.13 → 3.8.0-beta.3
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/domain/checkoutBooking/event/createNotificationWhenCheckoutBookingExpired.d.ts +6 -0
- package/dist/domain/checkoutBooking/event/createNotificationWhenCheckoutBookingExpired.js +13 -0
- package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +10 -0
- package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.js +11 -0
- package/dist/infrastructure/projection/checkout/checkout.js +0 -14
- package/dist/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.d.ts +6 -0
- package/dist/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.js +7 -0
- package/dist/infrastructure/projection/uiSetting/react/useViewIntroShownCount.d.ts +6 -0
- package/dist/infrastructure/projection/uiSetting/react/useViewIntroShownCount.js +9 -0
- package/dist/infrastructure/ui/components/organisms/checkoutQuestions/CheckoutQuestion.js +1 -1
- package/dist/infrastructure/ui/components/organisms/checkoutQuestions/components/CheckoutQuestionItem.d.ts +1 -0
- package/dist/infrastructure/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +2 -2
- package/dist/infrastructure/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.js +3 -3
- package/dist/infrastructure/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +2 -2
- package/dist/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestion.js +1 -1
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.d.ts +1 -0
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +2 -2
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +2 -2
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +2 -2
- package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.d.ts +13 -0
- package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.js +19 -0
- package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.style.ts.d.ts +6 -0
- package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.style.ts.js +7 -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/safeAreaScrollView/SafeAreaScrollView.d.ts +13 -0
- package/dist/infrastructure/ui/components/templates/safeAreaScrollView/SafeAreaScrollView.js +19 -0
- package/dist/infrastructure/ui/components/templates/safeAreaScrollView/SafeAreaScrollView.style.ts.d.ts +6 -0
- package/dist/infrastructure/ui/components/templates/safeAreaScrollView/SafeAreaScrollView.style.ts.js +7 -0
- package/dist/infrastructure/ui/hooks/usePaymentInstrumentUpdateEvents.d.ts +2 -0
- package/dist/infrastructure/ui/hooks/usePaymentInstrumentUpdateEvents.js +28 -0
- package/dist/infrastructure/ui/hooks/useToast.d.ts +11 -0
- package/dist/infrastructure/ui/hooks/useToast.js +49 -0
- package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.d.ts +7 -0
- package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.js +25 -0
- package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.d.ts +16 -0
- package/dist/infrastructure/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.js +19 -0
- package/dist/infrastructure/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.js +1 -1
- package/dist/infrastructure/ui/views/intro/Intro.d.ts +6 -0
- package/dist/infrastructure/ui/views/intro/Intro.js +52 -0
- package/dist/infrastructure/ui/views/intro/Intro.style.d.ts +52 -0
- package/dist/infrastructure/ui/views/intro/Intro.style.js +55 -0
- package/dist/infrastructure/ui/views/item/Item.style.d.ts +15 -0
- package/dist/infrastructure/ui/views/item/Item.style.js +18 -0
- package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +6 -4
- package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +10 -3
- package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +10 -3
- package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.js +4 -3
- package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.style.d.ts +3 -0
- package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.style.js +3 -0
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.d.ts +26 -0
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.js +44 -0
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.d.ts +45 -0
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.js +53 -0
- package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +10 -9
- package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +1 -0
- package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +1 -0
- package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +3 -2
- package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +3 -0
- package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +3 -0
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.d.ts +7 -0
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +25 -0
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +16 -0
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +19 -0
- package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +4 -3
- package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +10 -3
- package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +10 -3
- package/dist/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.d.ts +1 -0
- package/dist/infrastructure/ui/views/item/views/productVariant/ProductVariant.style.js +2 -1
- package/dist/infrastructure/ui/views/navigation/Navigation.d.ts +21 -0
- package/dist/infrastructure/ui/views/navigation/Navigation.js +45 -0
- package/dist/infrastructure/ui/views/navigation/Navigation.style.d.ts +5 -0
- package/dist/infrastructure/ui/views/navigation/Navigation.style.js +30 -0
- package/dist/infrastructure/ui/views/navigation/components/header/Header.d.ts +46 -0
- package/dist/infrastructure/ui/views/navigation/components/header/Header.js +120 -0
- package/dist/infrastructure/ui/views/navigation/components/header/Header.style.d.ts +31 -0
- package/dist/infrastructure/ui/views/navigation/components/header/Header.style.js +34 -0
- package/dist/infrastructure/ui/views/navigation/components/header/Logo.d.ts +7 -0
- package/dist/infrastructure/ui/views/navigation/components/header/Logo.js +11 -0
- package/dist/infrastructure/ui/views/navigation/components/header/Logo.style.d.ts +7 -0
- package/dist/infrastructure/ui/views/navigation/components/header/Logo.style.js +8 -0
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.d.ts +12 -0
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.js +24 -0
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +15 -0
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +18 -0
- package/dist/infrastructure/ui/views/summary/components/pricing/Pricing.js +8 -7
- package/dist/infrastructure/ui/views/summary/components/pricing/Pricing.style.d.ts +6 -0
- package/dist/infrastructure/ui/views/summary/components/pricing/Pricing.style.js +6 -0
- package/dist/shared/notifications/domain/notification/command/createNotification.d.ts +17 -0
- package/dist/shared/notifications/domain/notification/command/createNotification.js +7 -0
- package/dist/shared/notifications/infrastructure/domain/notification/react/useCreateNotification.d.ts +21 -0
- package/dist/shared/notifications/infrastructure/domain/notification/react/useCreateNotification.js +22 -0
- package/dist/shared/notifications/infrastructure/ui/components/NotificationItem.d.ts +12 -0
- package/dist/shared/notifications/infrastructure/ui/components/NotificationItem.js +24 -0
- package/dist/shared/notifications/infrastructure/ui/components/Notifications.d.ts +9 -0
- package/dist/shared/notifications/infrastructure/ui/components/Notifications.js +20 -0
- package/dist/shared/notifications/infrastructure/ui/components/Notifications.style.d.ts +36 -0
- package/dist/shared/notifications/infrastructure/ui/components/Notifications.style.js +31 -0
- package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.js +4 -3
- package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.style.d.ts +10 -3
- package/dist/shared/notifications/infrastructure/ui/components/modalNotifications/ModalNotificationItem.style.js +10 -3
- package/dist/shared/tracking/infrastructure/usePageView.d.ts +13 -0
- package/dist/shared/tracking/infrastructure/usePageView.js +27 -0
- package/dist/shared/ui/components/atoms/error/Error.style.d.ts +6 -0
- package/dist/shared/ui/components/atoms/error/Error.style.js +9 -0
- package/dist/shared/ui/components/atoms/input/Input.js +2 -2
- package/dist/shared/ui/components/layouts/modal/Modal.js +1 -1
- package/dist/shared/ui/components/layouts/slider/Bullets.js +4 -3
- package/dist/shared/ui/components/molecules/selectField/SelectField.js +3 -3
- package/package.json +1 -7
- package/dist/infrastructure/ui/components/layouts/layout/dummyLayout/useScrollViewRef.d.ts +0 -15
- package/dist/infrastructure/ui/components/layouts/layout/dummyLayout/useScrollViewRef.js +0 -14
- package/dist/shared/ui/components/layouts/carousel/Carousel.d.ts +0 -11
- package/dist/shared/ui/components/layouts/carousel/Carousel.js +0 -31
- package/dist/shared/ui/components/layouts/carousel/Carousel.style.d.ts +0 -15
- package/dist/shared/ui/components/layouts/carousel/Carousel.style.js +0 -7
- package/dist/shared/ui/components/layouts/carousel/Carousel2.d.ts +0 -25
- package/dist/shared/ui/components/layouts/carousel/Carousel2.js +0 -69
- package/dist/shared/ui/components/layouts/carousel/DragComponent.d.ts +0 -3
- package/dist/shared/ui/components/layouts/carousel/DragComponent.js +0 -48
- package/dist/shared/ui/components/layouts/slider/Bullets2.d.ts +0 -10
- package/dist/shared/ui/components/layouts/slider/Bullets2.js +0 -30
- package/dist/shared/ui/components/layouts/slider/SliderDots.d.ts +0 -8
- package/dist/shared/ui/components/layouts/slider/SliderDots.js +0 -16
- package/dist/shared/ui/components/layouts/slider/SliderDots.style.d.ts +0 -12
- package/dist/shared/ui/components/layouts/slider/SliderDots.style.js +0 -15
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import React, { useCallback, useMemo, useRef, useState } from "react";
|
|
2
|
-
import { View } from "react-native";
|
|
3
|
-
import { Gesture, GestureDetector, GestureHandlerRootView } from "react-native-gesture-handler";
|
|
4
|
-
import Animated, { useSharedValue, withSpring, useAnimatedStyle, runOnJS } from "react-native-reanimated";
|
|
5
|
-
import { style } from "./Carousel.style";
|
|
6
|
-
const SPRING_CONFIG = {
|
|
7
|
-
damping: 25,
|
|
8
|
-
mass: 1,
|
|
9
|
-
stiffness: 300,
|
|
10
|
-
};
|
|
11
|
-
const clamp = (min, max, value) => {
|
|
12
|
-
"worklet";
|
|
13
|
-
return Math.min(max, Math.max(min, value));
|
|
14
|
-
};
|
|
15
|
-
const Carousel2 = ({ data, children, bullets, onActiveIndexChanged }) => {
|
|
16
|
-
const [carouselDimensions, setCarouselDimensions] = useState({
|
|
17
|
-
width: 0,
|
|
18
|
-
height: 0,
|
|
19
|
-
});
|
|
20
|
-
const handleOnLayout = useCallback(({ nativeEvent: { layout: { width, height }, }, }) => setCarouselDimensions({ width, height }), []);
|
|
21
|
-
const [activeIndex, setActiveIndex] = useState(0);
|
|
22
|
-
const activeIndexRef = useRef(activeIndex);
|
|
23
|
-
activeIndexRef.current = activeIndex;
|
|
24
|
-
const updateActiveIndex = useCallback((index) => {
|
|
25
|
-
if (activeIndexRef.current === index) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
setActiveIndex(index);
|
|
29
|
-
onActiveIndexChanged?.(index);
|
|
30
|
-
}, [onActiveIndexChanged]);
|
|
31
|
-
const panTranslationX = useSharedValue(0);
|
|
32
|
-
const panInitialTranslationX = useSharedValue(0);
|
|
33
|
-
const handleOnActiveIndexChanged = useCallback((index) => {
|
|
34
|
-
updateActiveIndex(index);
|
|
35
|
-
panTranslationX.value = withSpring(-index * carouselDimensions.width, SPRING_CONFIG);
|
|
36
|
-
}, [carouselDimensions.width, panTranslationX, updateActiveIndex]);
|
|
37
|
-
const panGesture = useMemo(() => Gesture.Pan()
|
|
38
|
-
.maxPointers(1)
|
|
39
|
-
.activeOffsetX([-20, 20])
|
|
40
|
-
// .failOffsetY([-20, 20])
|
|
41
|
-
// This method does not work if legacy implementation is enabled
|
|
42
|
-
// Expo.tsx => enableLegacyWebImplementation(true)
|
|
43
|
-
// .onStart(() => {
|
|
44
|
-
// panInitialTranslationX.value = panTranslationX.value;
|
|
45
|
-
// })
|
|
46
|
-
// This method is defined as legacy implementation is enabled
|
|
47
|
-
.onBegin(() => {
|
|
48
|
-
panInitialTranslationX.value = panTranslationX.value;
|
|
49
|
-
})
|
|
50
|
-
.onUpdate(({ translationX }) => {
|
|
51
|
-
const tX = panInitialTranslationX.value + translationX;
|
|
52
|
-
const index = clamp(0, data.length - 1, Math.round(-tX / carouselDimensions.width));
|
|
53
|
-
panTranslationX.value = tX;
|
|
54
|
-
runOnJS(updateActiveIndex)(index);
|
|
55
|
-
})
|
|
56
|
-
.onEnd(({ translationX }) => {
|
|
57
|
-
const tX = panInitialTranslationX.value + translationX;
|
|
58
|
-
const index = clamp(0, data.length - 1, Math.round(-tX / carouselDimensions.width));
|
|
59
|
-
panTranslationX.value = withSpring(-index * carouselDimensions.width, SPRING_CONFIG);
|
|
60
|
-
}), [carouselDimensions.width, data.length, panInitialTranslationX, panTranslationX, updateActiveIndex]);
|
|
61
|
-
const animatedStyle = useAnimatedStyle(() => ({ transform: [{ translateX: panTranslationX.value }] }), [panTranslationX]);
|
|
62
|
-
return (React.createElement(React.Fragment, null,
|
|
63
|
-
React.createElement(View, { style: style.container, onLayout: handleOnLayout },
|
|
64
|
-
React.createElement(GestureHandlerRootView, { style: { flex: 1 } },
|
|
65
|
-
React.createElement(GestureDetector, { gesture: panGesture },
|
|
66
|
-
React.createElement(Animated.View, { style: [style.carousel, { width: carouselDimensions.width * data.length }, animatedStyle] }, data.map((item, index) => (React.createElement(View, { key: index, style: [style.carouselItem, { width: carouselDimensions.width }] }, children({ index, item })))))))),
|
|
67
|
-
bullets({ activeIndex, count: data.length, onChange: handleOnActiveIndexChanged })));
|
|
68
|
-
};
|
|
69
|
-
export { Carousel2 };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { View } from "react-native";
|
|
4
|
-
import { Gesture, GestureDetector } from "react-native-gesture-handler";
|
|
5
|
-
import { useSharedValue } from "react-native-reanimated";
|
|
6
|
-
import { useScrollViewRef } from "../../../../../infrastructure/ui/components/layouts/layout/dummyLayout/useScrollViewRef";
|
|
7
|
-
const TOUCH_SLOP = 5;
|
|
8
|
-
const TIME_TO_ACTIVATE_PAN = 400;
|
|
9
|
-
// @ts-ignore
|
|
10
|
-
const DragComponent = (props) => {
|
|
11
|
-
const { scrollViewRef, panGestureRef } = useScrollViewRef();
|
|
12
|
-
const touchStart = useSharedValue({ x: 0, y: 0, time: 0 });
|
|
13
|
-
const gesture = Gesture.Pan()
|
|
14
|
-
.manualActivation(true)
|
|
15
|
-
.onTouchesDown((e) => {
|
|
16
|
-
touchStart.value = {
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
x: e.changedTouches[0].x,
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
y: e.changedTouches[0].y,
|
|
21
|
-
time: Date.now(),
|
|
22
|
-
};
|
|
23
|
-
})
|
|
24
|
-
.onTouchesMove((e, state) => {
|
|
25
|
-
if (Date.now() - touchStart.value.time > TIME_TO_ACTIVATE_PAN) {
|
|
26
|
-
state.activate();
|
|
27
|
-
console.log("activate");
|
|
28
|
-
}
|
|
29
|
-
else if (
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
Math.abs(touchStart.value.x - e.changedTouches[0].x) > TOUCH_SLOP ||
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
Math.abs(touchStart.value.y - e.changedTouches[0].y) > TOUCH_SLOP) {
|
|
34
|
-
state.fail();
|
|
35
|
-
console.log("fail");
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
.onUpdate(() => {
|
|
39
|
-
console.log("pan update");
|
|
40
|
-
})
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
.simultaneousWithExternalGesture(scrollViewRef)
|
|
43
|
-
// @ts-ignore
|
|
44
|
-
.withRef(panGestureRef);
|
|
45
|
-
return (React.createElement(GestureDetector, { gesture: gesture },
|
|
46
|
-
React.createElement(View, null, props.children)));
|
|
47
|
-
};
|
|
48
|
-
export { DragComponent };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
interface BulletsProps {
|
|
3
|
-
readonly activeIndex: number;
|
|
4
|
-
readonly onChange: (index: number) => void;
|
|
5
|
-
readonly count: number;
|
|
6
|
-
readonly maxBullets?: number;
|
|
7
|
-
readonly testID?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const Bullets: FC<BulletsProps>;
|
|
10
|
-
export { Bullets };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React, { useEffect } from "react";
|
|
2
|
-
import { View, Pressable } from "react-native";
|
|
3
|
-
import Animated, { useAnimatedStyle, useDerivedValue, useSharedValue } from "react-native-reanimated";
|
|
4
|
-
import { withSpring } from "react-native-reanimated";
|
|
5
|
-
import { theme } from "../../../../../infrastructure/ui/theme/theme";
|
|
6
|
-
import { style } from "./Bullets.style";
|
|
7
|
-
const { colorContent, colorGrayscaleM } = theme();
|
|
8
|
-
const MAX = 5;
|
|
9
|
-
const DIAMETER_MAX = 8;
|
|
10
|
-
const DIAMETER_MIN = 2;
|
|
11
|
-
const Bullet = ({ index, activeIndex, maxBullets, onChange }) => {
|
|
12
|
-
const pivot = Math.floor(maxBullets / 2) + 1;
|
|
13
|
-
// const delta = Math.abs(index - activeIndex);
|
|
14
|
-
const delta = useSharedValue(0);
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
delta.value = Math.abs(index - activeIndex);
|
|
17
|
-
}, [activeIndex, delta, index]);
|
|
18
|
-
const diameter = useDerivedValue(() => withSpring(delta.value > 1 ? DIAMETER_MAX - delta.value * DIAMETER_MIN : DIAMETER_MAX), [delta]);
|
|
19
|
-
const color = useDerivedValue(() => withSpring(delta.value === 0 ? colorContent : colorGrayscaleM), [delta]);
|
|
20
|
-
const animatedStyle = useAnimatedStyle(() => ({
|
|
21
|
-
width: diameter.value,
|
|
22
|
-
height: diameter.value,
|
|
23
|
-
backgroundColor: color.value,
|
|
24
|
-
borderRadius: diameter.value,
|
|
25
|
-
}), [diameter, color]);
|
|
26
|
-
return delta.value >= pivot ? null : (React.createElement(Pressable, { onPress: () => onChange(index) },
|
|
27
|
-
React.createElement(Animated.View, { accessibilityState: { selected: delta.value === 0 }, style: [style.bullet, animatedStyle], testID: "bullet" })));
|
|
28
|
-
};
|
|
29
|
-
const Bullets = ({ activeIndex, count, maxBullets = MAX, onChange, testID = "bullets" }) => (React.createElement(View, { style: style.bullets, testID: testID }, [...Array(count).keys()].map((index) => (React.createElement(Bullet, { key: index, activeIndex: activeIndex, index: index, maxBullets: maxBullets, onChange: onChange })))));
|
|
30
|
-
export { Bullets };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TouchableWithoutFeedback, View } from "react-native";
|
|
3
|
-
import { theme } from "../../../../../infrastructure/ui/theme/theme";
|
|
4
|
-
import { style } from "./SliderDots.style";
|
|
5
|
-
const { colorContent } = theme();
|
|
6
|
-
const SliderDot = ({ diameter, color }) => (React.createElement(View, { style: [style.sliderDot, { width: diameter, height: diameter, backgroundColor: color, borderRadius: diameter }] }));
|
|
7
|
-
const SliderDots = () => {
|
|
8
|
-
return (React.createElement(View, { style: style.sliderDots },
|
|
9
|
-
React.createElement(TouchableWithoutFeedback, null,
|
|
10
|
-
React.createElement(SliderDot, { color: colorContent, diameter: 8 })),
|
|
11
|
-
React.createElement(TouchableWithoutFeedback, null,
|
|
12
|
-
React.createElement(SliderDot, { color: colorContent, diameter: 8 })),
|
|
13
|
-
React.createElement(TouchableWithoutFeedback, null,
|
|
14
|
-
React.createElement(SliderDot, { color: colorContent, diameter: 8 }))));
|
|
15
|
-
};
|
|
16
|
-
export { SliderDots };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from "react-native";
|
|
2
|
-
import { theme } from "../../../../../infrastructure/ui/theme/theme";
|
|
3
|
-
const { spaceM } = theme();
|
|
4
|
-
const style = StyleSheet.create({
|
|
5
|
-
sliderDot: {
|
|
6
|
-
marginHorizontal: 3,
|
|
7
|
-
},
|
|
8
|
-
sliderDots: {
|
|
9
|
-
alignItems: "center",
|
|
10
|
-
flexDirection: "row",
|
|
11
|
-
justifyContent: "center",
|
|
12
|
-
paddingVertical: spaceM,
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
export { style };
|