@lookiero/checkout 0.2.27-beta.9 → 0.2.29

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 (71) hide show
  1. package/dist/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.js +7 -17
  2. package/dist/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.js +6 -7
  3. package/dist/infrastructure/ui/shared/components/atoms/input/Input.js +9 -7
  4. package/dist/infrastructure/ui/shared/components/atoms/input/Input.style.d.ts +1 -1
  5. package/dist/infrastructure/ui/shared/components/atoms/input/Input.style.js +4 -4
  6. package/dist/infrastructure/ui/shared/components/molecules/selectField/SelectField.d.ts +24 -0
  7. package/dist/infrastructure/ui/shared/components/molecules/selectField/SelectField.js +26 -0
  8. package/dist/infrastructure/ui/shared/components/molecules/selectField/SelectField.style.d.ts +15 -0
  9. package/dist/infrastructure/ui/shared/components/molecules/selectField/SelectField.style.js +18 -0
  10. package/dist/infrastructure/ui/views/item/components/productVariantActions/ProductVariantActions.js +3 -4
  11. package/dist/infrastructure/ui/views/item/components/productVariantActions/ProductVariantActions.style.d.ts +4 -5
  12. package/dist/infrastructure/ui/views/item/components/productVariantActions/ProductVariantActions.style.js +4 -5
  13. package/package.json +1 -1
  14. package/dist/infrastructure/delivery/_mock/bootstrap.mock.d.ts +0 -6
  15. package/dist/infrastructure/delivery/_mock/bootstrap.mock.js +0 -34
  16. package/dist/infrastructure/delivery/_mock/checkout.mock.d.ts +0 -9
  17. package/dist/infrastructure/delivery/_mock/checkout.mock.js +0 -46
  18. package/dist/infrastructure/domain/react/useBookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -15
  19. package/dist/infrastructure/domain/react/useBookSizeReplaceableProductVariantsForCheckoutItem.js +0 -15
  20. package/dist/infrastructure/domain/react/useSetCheckoutIntroShown.d.ts +0 -10
  21. package/dist/infrastructure/domain/react/useSetCheckoutIntroShown.js +0 -9
  22. package/dist/infrastructure/domain/react/useUpdateUiSetting.d.ts +0 -14
  23. package/dist/infrastructure/domain/react/useUpdateUiSetting.js +0 -15
  24. package/dist/infrastructure/projection/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.d.ts +0 -36
  25. package/dist/infrastructure/projection/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.js +0 -30
  26. package/dist/infrastructure/projection/httpFirstAvailableCheckoutByCustomerIdView.d.ts +0 -60
  27. package/dist/infrastructure/projection/httpFirstAvailableCheckoutByCustomerIdView.js +0 -54
  28. package/dist/infrastructure/projection/httpFiveItemsDiscountByCustomerIdView.d.ts +0 -12
  29. package/dist/infrastructure/projection/httpFiveItemsDiscountByCustomerIdView.js +0 -7
  30. package/dist/infrastructure/projection/httpIsCheckoutEnabledByCustomerIdView.d.ts +0 -12
  31. package/dist/infrastructure/projection/httpIsCheckoutEnabledByCustomerIdView.js +0 -7
  32. package/dist/infrastructure/projection/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -10
  33. package/dist/infrastructure/projection/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -9
  34. package/dist/infrastructure/projection/react/useViewCheckoutIntroShown.d.ts +0 -2
  35. package/dist/infrastructure/projection/react/useViewCheckoutIntroShown.js +0 -6
  36. package/dist/infrastructure/projection/react/useViewFirstAvailableCheckoutByCustomerId.d.ts +0 -10
  37. package/dist/infrastructure/projection/react/useViewFirstAvailableCheckoutByCustomerId.js +0 -9
  38. package/dist/infrastructure/projection/react/useViewFiveItemsDiscountByCustomerId.d.ts +0 -10
  39. package/dist/infrastructure/projection/react/useViewFiveItemsDiscountByCustomerId.js +0 -9
  40. package/dist/infrastructure/projection/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +0 -10
  41. package/dist/infrastructure/projection/react/useViewIsCheckoutAccessibleByCustomerId.js +0 -9
  42. package/dist/infrastructure/projection/react/useViewUiSettingByKey.d.ts +0 -10
  43. package/dist/infrastructure/projection/react/useViewUiSettingByKey.js +0 -12
  44. package/dist/infrastructure/projection/storageUiSettingByKeyView.d.ts +0 -13
  45. package/dist/infrastructure/projection/storageUiSettingByKeyView.js +0 -15
  46. package/dist/infrastructure/ui/components/atoms/modal/Modal.d.ts +0 -7
  47. package/dist/infrastructure/ui/components/atoms/modal/Modal.js +0 -7
  48. package/dist/infrastructure/ui/components/atoms/modal/Modal.style.d.ts +0 -21
  49. package/dist/infrastructure/ui/components/atoms/modal/Modal.style.js +0 -24
  50. package/dist/infrastructure/ui/components/atoms/spinner/Spinner.d.ts +0 -3
  51. package/dist/infrastructure/ui/components/atoms/spinner/Spinner.js +0 -8
  52. package/dist/infrastructure/ui/components/atoms/spinner/Spinner.style.d.ts +0 -9
  53. package/dist/infrastructure/ui/components/atoms/spinner/Spinner.style.js +0 -10
  54. package/dist/infrastructure/ui/components/layouts/slider/Pagination.d.ts +0 -14
  55. package/dist/infrastructure/ui/components/layouts/slider/Pagination.js +0 -11
  56. package/dist/infrastructure/ui/components/layouts/slider/Pagination.style.d.ts +0 -23
  57. package/dist/infrastructure/ui/components/layouts/slider/Pagination.style.js +0 -27
  58. package/dist/infrastructure/ui/components/layouts/slider/Slider.d.ts +0 -20
  59. package/dist/infrastructure/ui/components/layouts/slider/Slider.js +0 -132
  60. package/dist/infrastructure/ui/components/layouts/slider/Slider.style.d.ts +0 -11
  61. package/dist/infrastructure/ui/components/layouts/slider/Slider.style.js +0 -12
  62. package/dist/infrastructure/ui/components/organisms/dropdown/Dropdown.d.ts +0 -15
  63. package/dist/infrastructure/ui/components/organisms/dropdown/Dropdown.js +0 -20
  64. package/dist/infrastructure/ui/components/organisms/dropdown/Dropdown.style.d.ts +0 -6
  65. package/dist/infrastructure/ui/components/organisms/dropdown/Dropdown.style.js +0 -9
  66. package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.style.d.ts +0 -10
  67. package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.style.js +0 -11
  68. package/dist/infrastructure/ui/views/item/components/actions/Actions.d.ts +0 -11
  69. package/dist/infrastructure/ui/views/item/components/actions/Actions.js +0 -24
  70. package/dist/infrastructure/ui/views/item/components/actions/Actions.style.d.ts +0 -20
  71. package/dist/infrastructure/ui/views/item/components/actions/Actions.style.js +0 -23
@@ -1,20 +0,0 @@
1
- import React, { useCallback, useState } from "react";
2
- import { View } from "react-native";
3
- import { InputDropdown } from "@lookiero/aurora-next/build/components/organisms/InputDropdown/InputDropdown";
4
- import { style } from "./Dropdown.style";
5
- const Dropdown = ({ defaultValue, label, name, options, disabled = false, onChanged }) => {
6
- const [value, setValue] = useState(defaultValue);
7
- const handleOnChange = useCallback((value) => {
8
- setValue(value);
9
- onChanged?.(value);
10
- }, [onChanged]);
11
- return (React.createElement(View, { pointerEvents: disabled ? "none" : "auto" },
12
- React.createElement(InputDropdown, { label: label, name: name, options: options, value: value, onChange: handleOnChange,
13
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
14
- // @ts-ignore
15
- disabled: disabled,
16
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
17
- // @ts-ignore
18
- style: style.dropdown })));
19
- };
20
- export { Dropdown };
@@ -1,6 +0,0 @@
1
- declare const style: {
2
- dropdown: {
3
- paddingVertical: number;
4
- };
5
- };
6
- export { style };
@@ -1,9 +0,0 @@
1
- import { StyleSheet } from "react-native";
2
- import { theme } from "../../../theme/theme";
3
- const { spaceXS } = theme();
4
- const style = StyleSheet.create({
5
- dropdown: {
6
- paddingVertical: spaceXS,
7
- },
8
- });
9
- export { style };
@@ -1,10 +0,0 @@
1
- declare const style: {
2
- container: {
3
- flex: number;
4
- };
5
- scrollContainer: {
6
- flex: number;
7
- flexGrow: number;
8
- };
9
- };
10
- export { style };
@@ -1,11 +0,0 @@
1
- import { StyleSheet } from "react-native";
2
- const style = StyleSheet.create({
3
- container: {
4
- flex: 1,
5
- },
6
- scrollContainer: {
7
- flex: 1,
8
- flexGrow: 1,
9
- },
10
- });
11
- export { style };
@@ -1,11 +0,0 @@
1
- import { SizeProjection } from "../../../../../../projection/checkout/viewFirstAvailableCheckoutByCustomerId";
2
- import { FC } from "react";
3
- interface ActionsProps {
4
- readonly sizes: SizeProjection[];
5
- readonly size: SizeProjection;
6
- readonly onKeep: (value: string) => void;
7
- readonly onReturn: (value: string) => void;
8
- readonly onReplace: (value: string) => void;
9
- }
10
- declare const Actions: FC<ActionsProps>;
11
- export { Actions };
@@ -1,24 +0,0 @@
1
- import { Button } from "@lookiero/aurora-next/build/components/atoms/Button/Button";
2
- import { BUTTON_VARIANT } from "@lookiero/aurora-next/build/components/atoms/Button/Button.definition";
3
- import { Dropdown } from "../../../../components/organisms/dropdown/Dropdown";
4
- import { I18nMessages } from "../../../../i18n/i18n";
5
- import { useI18nMessage } from "@lookiero/i18n-react";
6
- import { View } from "react-native";
7
- import React, { useMemo } from "react";
8
- import { style } from "./Actions.style";
9
- const Actions = ({ sizes, size, onKeep, onReplace, onReturn }) => {
10
- const sizesLabelText = useI18nMessage({ id: I18nMessages.ITEM_SIZES_LABEL });
11
- const sizesNameText = useI18nMessage({ id: I18nMessages.ITEM_SIZES_NAME });
12
- const keepButtonText = useI18nMessage({ id: I18nMessages.ITEM_KEEP_BUTTON });
13
- const returnButtonText = useI18nMessage({ id: I18nMessages.ITEM_RETURN_BUTTON });
14
- const options = useMemo(() => sizes.map((size) => ({ name: size.lookiero, value: size.id })), [sizes]);
15
- const disabled = useMemo(() => options.length === 1 && options[0]?.value === size.id, [options, size.id]);
16
- return (React.createElement(View, { style: style.container },
17
- React.createElement(Button, { onPress: onKeep }, keepButtonText),
18
- React.createElement(View, { style: style.row },
19
- !size.unique && (React.createElement(View, { style: style.dropdownContainer },
20
- React.createElement(Dropdown, { defaultValue: size.id, label: sizesLabelText, name: sizesNameText, options: options, onChanged: onReplace, disabled: disabled }))),
21
- React.createElement(View, { style: style.returnButtonContainer },
22
- React.createElement(Button, { variant: BUTTON_VARIANT.SECONDARY, onPress: onReturn }, returnButtonText)))));
23
- };
24
- export { Actions };
@@ -1,20 +0,0 @@
1
- declare const style: {
2
- container: {
3
- padding: number;
4
- width: string;
5
- };
6
- row: {
7
- alignItems: "center";
8
- flexDirection: "row";
9
- marginTop: number;
10
- };
11
- dropdownContainer: {
12
- flex: number;
13
- zIndex: number;
14
- marginRight: number;
15
- };
16
- returnButtonContainer: {
17
- flex: number;
18
- };
19
- };
20
- export { style };
@@ -1,23 +0,0 @@
1
- import { StyleSheet } from "react-native";
2
- import { theme } from "../../../../theme/theme";
3
- const { spaceL } = theme();
4
- const style = StyleSheet.create({
5
- container: {
6
- padding: spaceL,
7
- width: "100%",
8
- },
9
- row: {
10
- alignItems: "center",
11
- flexDirection: "row",
12
- marginTop: spaceL,
13
- },
14
- dropdownContainer: {
15
- flex: 1,
16
- zIndex: 4,
17
- marginRight: spaceL,
18
- },
19
- returnButtonContainer: {
20
- flex: 1,
21
- },
22
- });
23
- export { style };