@lookiero/checkout 15.2.3 → 15.3.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/CHANGELOG.md +10 -0
- 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/ExpoRoot.js +1 -1
- package/dist/src/infrastructure/projection/pricing/pricing.d.ts +31 -0
- package/dist/src/infrastructure/projection/pricing/pricing.js +39 -0
- package/dist/src/infrastructure/ui/hooks/useCheckoutFlow.js +1 -1
- package/dist/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.js +2 -1
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.d.ts +0 -1
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.js +19 -10
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.d.ts +21 -10
- package/dist/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.js +24 -16
- package/dist/src/version.d.ts +2 -2
- package/dist/src/version.js +2 -2
- package/package.json +3 -3
- package/src/ExpoRoot.tsx +2 -2
- package/src/infrastructure/ui/hooks/useCheckoutFlow.tsx +3 -3
- package/src/infrastructure/ui/views/checkout/components/paymentInstrument/PaymentInstrument.tsx +1 -1
- package/src/infrastructure/ui/views/item/components/itemActions/ItemActions.test.tsx +4 -0
- package/src/infrastructure/ui/views/item/components/itemActions/__snapshots__/ItemActions.test.tsx.snap +277 -100
- package/src/infrastructure/ui/views/item/components/selectModal/SelecModal.test.tsx +62 -7
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.style.ts +35 -18
- package/src/infrastructure/ui/views/item/components/selectModal/SelectModal.tsx +36 -32
- package/src/infrastructure/ui/views/item/components/selectModal/__snapshots__/SelecModal.test.tsx.snap +280 -44
- /package/dist/public/{index.html → public/index.html} +0 -0
|
@@ -714,7 +714,6 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
714
714
|
style={
|
|
715
715
|
[
|
|
716
716
|
{
|
|
717
|
-
"paddingBottom": 24,
|
|
718
717
|
"paddingHorizontal": 24,
|
|
719
718
|
},
|
|
720
719
|
undefined,
|
|
@@ -734,7 +733,7 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
734
733
|
"lineHeight": 36,
|
|
735
734
|
},
|
|
736
735
|
{
|
|
737
|
-
"marginBottom":
|
|
736
|
+
"marginBottom": 12,
|
|
738
737
|
},
|
|
739
738
|
]
|
|
740
739
|
}
|
|
@@ -742,128 +741,306 @@ exports[`ItemActions component matches the snapshot 1`] = `
|
|
|
742
741
|
item.change_size_button
|
|
743
742
|
</Text>
|
|
744
743
|
<View
|
|
745
|
-
|
|
746
|
-
|
|
744
|
+
accessibilityRole="radiogroup"
|
|
745
|
+
style={
|
|
747
746
|
{
|
|
748
|
-
"
|
|
747
|
+
"gap": 12,
|
|
749
748
|
}
|
|
750
749
|
}
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
750
|
+
testID="options-radiogroup"
|
|
751
|
+
>
|
|
752
|
+
<View
|
|
753
|
+
accessibilityLabel="S"
|
|
754
|
+
accessibilityRole="radio"
|
|
755
|
+
accessibilityState={
|
|
756
|
+
{
|
|
757
|
+
"busy": undefined,
|
|
758
|
+
"checked": true,
|
|
759
|
+
"disabled": true,
|
|
760
|
+
"expanded": undefined,
|
|
761
|
+
"selected": undefined,
|
|
762
|
+
}
|
|
757
763
|
}
|
|
758
|
-
|
|
759
|
-
accessible={true}
|
|
760
|
-
focusable={false}
|
|
761
|
-
onClick={[Function]}
|
|
762
|
-
onResponderGrant={[Function]}
|
|
763
|
-
onResponderMove={[Function]}
|
|
764
|
-
onResponderRelease={[Function]}
|
|
765
|
-
onResponderTerminate={[Function]}
|
|
766
|
-
onResponderTerminationRequest={[Function]}
|
|
767
|
-
onStartShouldSetResponder={[Function]}
|
|
768
|
-
style={
|
|
769
|
-
[
|
|
764
|
+
accessibilityValue={
|
|
770
765
|
{
|
|
771
|
-
"
|
|
772
|
-
"
|
|
773
|
-
"
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
766
|
+
"max": undefined,
|
|
767
|
+
"min": undefined,
|
|
768
|
+
"now": undefined,
|
|
769
|
+
"text": undefined,
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
accessible={true}
|
|
773
|
+
collapsable={false}
|
|
774
|
+
focusable={true}
|
|
775
|
+
onBlur={[Function]}
|
|
776
|
+
onClick={[Function]}
|
|
777
|
+
onFocus={[Function]}
|
|
778
|
+
onResponderGrant={[Function]}
|
|
779
|
+
onResponderMove={[Function]}
|
|
780
|
+
onResponderRelease={[Function]}
|
|
781
|
+
onResponderTerminate={[Function]}
|
|
782
|
+
onResponderTerminationRequest={[Function]}
|
|
783
|
+
onStartShouldSetResponder={[Function]}
|
|
781
784
|
style={
|
|
782
785
|
[
|
|
783
786
|
{
|
|
784
|
-
"
|
|
785
|
-
"
|
|
786
|
-
"
|
|
787
|
-
"
|
|
788
|
-
"
|
|
789
|
-
"
|
|
790
|
-
|
|
787
|
+
"alignItems": "center",
|
|
788
|
+
"borderColor": "#DAD8D8",
|
|
789
|
+
"borderWidth": 1,
|
|
790
|
+
"flex": 1,
|
|
791
|
+
"flexDirection": "row",
|
|
792
|
+
"padding": 16,
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"borderColor": "#0C0A0A",
|
|
796
|
+
"borderWidth": 2,
|
|
797
|
+
"padding": 15,
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"borderRadius": 8,
|
|
791
801
|
},
|
|
802
|
+
]
|
|
803
|
+
}
|
|
804
|
+
testID="2875e66d-4e2a-47b1-a58b-61e316dcc66a"
|
|
805
|
+
>
|
|
806
|
+
<View
|
|
807
|
+
style={
|
|
792
808
|
[
|
|
793
809
|
{
|
|
794
|
-
"
|
|
810
|
+
"alignItems": "center",
|
|
811
|
+
"borderRadius": 9999,
|
|
812
|
+
"borderWidth": 2,
|
|
813
|
+
"height": 22,
|
|
814
|
+
"justifyContent": "center",
|
|
815
|
+
"width": 22,
|
|
795
816
|
},
|
|
817
|
+
undefined,
|
|
796
818
|
{
|
|
797
|
-
"
|
|
819
|
+
"backgroundColor": "#F4A584",
|
|
820
|
+
"borderColor": "#F4A584",
|
|
798
821
|
},
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
822
|
+
]
|
|
823
|
+
}
|
|
824
|
+
testID="animated-checked"
|
|
825
|
+
>
|
|
826
|
+
<View
|
|
827
|
+
style={
|
|
828
|
+
{
|
|
829
|
+
"opacity": 1,
|
|
830
|
+
"scale": 1,
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
>
|
|
834
|
+
<Text
|
|
835
|
+
accessibilityElementsHidden={true}
|
|
836
|
+
allowFontScaling={false}
|
|
837
|
+
importantForAccessibility="no"
|
|
838
|
+
selectable={false}
|
|
839
|
+
style={
|
|
840
|
+
[
|
|
841
|
+
{
|
|
842
|
+
"color": "#0C0A0A",
|
|
843
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
844
|
+
"fontSize": 15,
|
|
845
|
+
"fontStyle": "normal",
|
|
846
|
+
"fontWeight": "300",
|
|
847
|
+
"letterSpacing": -0.2,
|
|
848
|
+
"lineHeight": 20,
|
|
849
|
+
},
|
|
850
|
+
[
|
|
851
|
+
{
|
|
852
|
+
"fontFamily": "auroraicons",
|
|
853
|
+
"fontSize": 24,
|
|
854
|
+
"fontStyle": "normal",
|
|
855
|
+
"fontWeight": "normal",
|
|
856
|
+
"height": 24,
|
|
857
|
+
"lineHeight": 24,
|
|
858
|
+
"minHeight": 24,
|
|
859
|
+
"minWidth": 24,
|
|
860
|
+
"width": 24,
|
|
861
|
+
},
|
|
862
|
+
[
|
|
863
|
+
{
|
|
864
|
+
"color": "#0C0A0A",
|
|
865
|
+
},
|
|
866
|
+
undefined,
|
|
867
|
+
],
|
|
868
|
+
],
|
|
869
|
+
]
|
|
870
|
+
}
|
|
871
|
+
testID="icon"
|
|
872
|
+
>
|
|
873
|
+
|
|
874
|
+
</Text>
|
|
875
|
+
</View>
|
|
876
|
+
</View>
|
|
877
|
+
<Text
|
|
878
|
+
style={
|
|
879
|
+
[
|
|
880
|
+
{
|
|
881
|
+
"color": "#0C0A0A",
|
|
882
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
883
|
+
"fontSize": 15,
|
|
884
|
+
"fontStyle": "normal",
|
|
885
|
+
"fontWeight": "300",
|
|
886
|
+
"letterSpacing": -0.2,
|
|
887
|
+
"lineHeight": 20,
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"color": "#0C0A0A",
|
|
891
|
+
"flex": 1,
|
|
892
|
+
"marginLeft": 16,
|
|
893
|
+
},
|
|
894
|
+
]
|
|
895
|
+
}
|
|
896
|
+
>
|
|
897
|
+
S
|
|
898
|
+
</Text>
|
|
899
|
+
</View>
|
|
900
|
+
<View
|
|
901
|
+
accessibilityLabel="M"
|
|
902
|
+
accessibilityRole="radio"
|
|
903
|
+
accessibilityState={
|
|
904
|
+
{
|
|
905
|
+
"busy": undefined,
|
|
906
|
+
"checked": false,
|
|
907
|
+
"disabled": false,
|
|
908
|
+
"expanded": undefined,
|
|
909
|
+
"selected": undefined,
|
|
910
|
+
}
|
|
820
911
|
}
|
|
821
|
-
|
|
822
|
-
accessible={true}
|
|
823
|
-
focusable={true}
|
|
824
|
-
onClick={[Function]}
|
|
825
|
-
onResponderGrant={[Function]}
|
|
826
|
-
onResponderMove={[Function]}
|
|
827
|
-
onResponderRelease={[Function]}
|
|
828
|
-
onResponderTerminate={[Function]}
|
|
829
|
-
onResponderTerminationRequest={[Function]}
|
|
830
|
-
onStartShouldSetResponder={[Function]}
|
|
831
|
-
style={
|
|
832
|
-
[
|
|
912
|
+
accessibilityValue={
|
|
833
913
|
{
|
|
834
|
-
"
|
|
835
|
-
"
|
|
836
|
-
"
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
914
|
+
"max": undefined,
|
|
915
|
+
"min": undefined,
|
|
916
|
+
"now": undefined,
|
|
917
|
+
"text": undefined,
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
accessible={true}
|
|
921
|
+
collapsable={false}
|
|
922
|
+
focusable={true}
|
|
923
|
+
onBlur={[Function]}
|
|
924
|
+
onClick={[Function]}
|
|
925
|
+
onFocus={[Function]}
|
|
926
|
+
onResponderGrant={[Function]}
|
|
927
|
+
onResponderMove={[Function]}
|
|
928
|
+
onResponderRelease={[Function]}
|
|
929
|
+
onResponderTerminate={[Function]}
|
|
930
|
+
onResponderTerminationRequest={[Function]}
|
|
931
|
+
onStartShouldSetResponder={[Function]}
|
|
844
932
|
style={
|
|
845
933
|
[
|
|
846
934
|
{
|
|
847
|
-
"
|
|
848
|
-
"
|
|
849
|
-
"
|
|
850
|
-
"
|
|
851
|
-
"
|
|
852
|
-
"
|
|
853
|
-
"lineHeight": 20,
|
|
935
|
+
"alignItems": "center",
|
|
936
|
+
"borderColor": "#DAD8D8",
|
|
937
|
+
"borderWidth": 1,
|
|
938
|
+
"flex": 1,
|
|
939
|
+
"flexDirection": "row",
|
|
940
|
+
"padding": 16,
|
|
854
941
|
},
|
|
942
|
+
false,
|
|
943
|
+
{
|
|
944
|
+
"borderRadius": 8,
|
|
945
|
+
},
|
|
946
|
+
]
|
|
947
|
+
}
|
|
948
|
+
testID="4016fcfc-a08e-4800-bc07-0d7dd59848fc"
|
|
949
|
+
>
|
|
950
|
+
<View
|
|
951
|
+
style={
|
|
855
952
|
[
|
|
856
953
|
{
|
|
857
|
-
"
|
|
954
|
+
"alignItems": "center",
|
|
955
|
+
"borderRadius": 9999,
|
|
956
|
+
"borderWidth": 2,
|
|
957
|
+
"height": 22,
|
|
958
|
+
"justifyContent": "center",
|
|
959
|
+
"width": 22,
|
|
858
960
|
},
|
|
859
|
-
false,
|
|
860
961
|
undefined,
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
962
|
+
{
|
|
963
|
+
"backgroundColor": "#FFFFFF",
|
|
964
|
+
"borderColor": "#DAD8D8",
|
|
965
|
+
},
|
|
966
|
+
]
|
|
967
|
+
}
|
|
968
|
+
testID="animated-checked"
|
|
969
|
+
>
|
|
970
|
+
<View
|
|
971
|
+
style={
|
|
972
|
+
{
|
|
973
|
+
"opacity": 0,
|
|
974
|
+
"scale": 0,
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
>
|
|
978
|
+
<Text
|
|
979
|
+
accessibilityElementsHidden={true}
|
|
980
|
+
allowFontScaling={false}
|
|
981
|
+
importantForAccessibility="no"
|
|
982
|
+
selectable={false}
|
|
983
|
+
style={
|
|
984
|
+
[
|
|
985
|
+
{
|
|
986
|
+
"color": "#0C0A0A",
|
|
987
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
988
|
+
"fontSize": 15,
|
|
989
|
+
"fontStyle": "normal",
|
|
990
|
+
"fontWeight": "300",
|
|
991
|
+
"letterSpacing": -0.2,
|
|
992
|
+
"lineHeight": 20,
|
|
993
|
+
},
|
|
994
|
+
[
|
|
995
|
+
{
|
|
996
|
+
"fontFamily": "auroraicons",
|
|
997
|
+
"fontSize": 24,
|
|
998
|
+
"fontStyle": "normal",
|
|
999
|
+
"fontWeight": "normal",
|
|
1000
|
+
"height": 24,
|
|
1001
|
+
"lineHeight": 24,
|
|
1002
|
+
"minHeight": 24,
|
|
1003
|
+
"minWidth": 24,
|
|
1004
|
+
"width": 24,
|
|
1005
|
+
},
|
|
1006
|
+
[
|
|
1007
|
+
{
|
|
1008
|
+
"color": "#0C0A0A",
|
|
1009
|
+
},
|
|
1010
|
+
undefined,
|
|
1011
|
+
],
|
|
1012
|
+
],
|
|
1013
|
+
]
|
|
1014
|
+
}
|
|
1015
|
+
testID="icon"
|
|
1016
|
+
>
|
|
1017
|
+
|
|
1018
|
+
</Text>
|
|
1019
|
+
</View>
|
|
1020
|
+
</View>
|
|
1021
|
+
<Text
|
|
1022
|
+
style={
|
|
1023
|
+
[
|
|
1024
|
+
{
|
|
1025
|
+
"color": "#0C0A0A",
|
|
1026
|
+
"fontFamily": "AreaNormal-Semibold",
|
|
1027
|
+
"fontSize": 15,
|
|
1028
|
+
"fontStyle": "normal",
|
|
1029
|
+
"fontWeight": "300",
|
|
1030
|
+
"letterSpacing": -0.2,
|
|
1031
|
+
"lineHeight": 20,
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"color": "#0C0A0A",
|
|
1035
|
+
"flex": 1,
|
|
1036
|
+
"marginLeft": 16,
|
|
1037
|
+
},
|
|
1038
|
+
]
|
|
1039
|
+
}
|
|
1040
|
+
>
|
|
1041
|
+
M
|
|
1042
|
+
</Text>
|
|
1043
|
+
</View>
|
|
867
1044
|
</View>
|
|
868
1045
|
</View>
|
|
869
1046
|
</View>
|
|
@@ -3,20 +3,34 @@ import React from "react";
|
|
|
3
3
|
import { render } from "../../../../test/render";
|
|
4
4
|
import { SelectModal } from "./SelectModal";
|
|
5
5
|
|
|
6
|
+
jest.mock("../../../../hooks/useStaticInfo", () => ({
|
|
7
|
+
useStaticInfo: () => ({ tradename: "LOOKIERO" }),
|
|
8
|
+
}));
|
|
9
|
+
|
|
6
10
|
const mockOnChange = jest.fn();
|
|
7
|
-
const
|
|
11
|
+
const mockOnClose = jest.fn();
|
|
12
|
+
const options = [
|
|
13
|
+
{ label: "Option label", value: "optionValue" },
|
|
14
|
+
{ label: "Selected label", value: "selectedValue" },
|
|
15
|
+
];
|
|
8
16
|
|
|
9
|
-
const renderSelectField = () =>
|
|
17
|
+
const renderSelectField = (value?: string) =>
|
|
10
18
|
render(
|
|
11
19
|
<SelectModal
|
|
12
20
|
modalVisible={true}
|
|
13
21
|
options={options}
|
|
14
22
|
testID="select-field"
|
|
15
|
-
value={
|
|
23
|
+
value={value}
|
|
16
24
|
onChange={mockOnChange}
|
|
25
|
+
onClose={mockOnClose}
|
|
17
26
|
/>,
|
|
18
27
|
);
|
|
19
28
|
|
|
29
|
+
beforeEach(() => {
|
|
30
|
+
mockOnChange.mockClear();
|
|
31
|
+
mockOnClose.mockClear();
|
|
32
|
+
});
|
|
33
|
+
|
|
20
34
|
beforeAll(() => {
|
|
21
35
|
jest.useFakeTimers();
|
|
22
36
|
});
|
|
@@ -33,12 +47,53 @@ describe("SelectField component", () => {
|
|
|
33
47
|
expect(toJSON()).toMatchSnapshot();
|
|
34
48
|
});
|
|
35
49
|
|
|
36
|
-
it("renders
|
|
37
|
-
const {
|
|
50
|
+
it("renders all options as radio buttons", () => {
|
|
51
|
+
const { getByRole } = renderSelectField();
|
|
52
|
+
|
|
53
|
+
expect(getByRole("radio", { name: "Option label" })).toBeTruthy();
|
|
54
|
+
expect(getByRole("radio", { name: "Selected label" })).toBeTruthy();
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it("renders options inside a radiogroup", () => {
|
|
58
|
+
const { getByTestId } = renderSelectField();
|
|
59
|
+
const container = getByTestId("options-radiogroup");
|
|
60
|
+
|
|
61
|
+
expect(container.props.accessibilityRole).toBe("radiogroup");
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it("unselected option has checked false", () => {
|
|
65
|
+
const { getByRole } = renderSelectField("selectedValue");
|
|
66
|
+
|
|
67
|
+
expect(getByRole("radio", { name: "Option label", checked: false })).toBeTruthy();
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it("selected option has checked true", () => {
|
|
71
|
+
const { getByRole } = renderSelectField("selectedValue");
|
|
72
|
+
|
|
73
|
+
expect(getByRole("radio", { name: "Selected label", checked: true })).toBeTruthy();
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
it("accessibilityLabel uses label text, not value key", () => {
|
|
77
|
+
const { getByRole, queryByRole } = renderSelectField();
|
|
78
|
+
|
|
79
|
+
expect(getByRole("radio", { name: "Option label" })).toBeTruthy();
|
|
80
|
+
expect(queryByRole("radio", { name: "optionValue" })).toBeNull();
|
|
81
|
+
});
|
|
38
82
|
|
|
39
|
-
|
|
40
|
-
|
|
83
|
+
it("pressing an unselected option calls onChange and onClose", () => {
|
|
84
|
+
const { getByRole } = renderSelectField("selectedValue");
|
|
85
|
+
|
|
86
|
+
fireEvent.press(getByRole("radio", { name: "Option label" }));
|
|
41
87
|
|
|
42
88
|
expect(mockOnChange).toHaveBeenCalledWith("optionValue");
|
|
89
|
+
expect(mockOnClose).toHaveBeenCalledTimes(1);
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
it("pressing the selected option does not call onChange", () => {
|
|
93
|
+
const { getByRole } = renderSelectField("selectedValue");
|
|
94
|
+
|
|
95
|
+
fireEvent.press(getByRole("radio", { name: "Selected label" }));
|
|
96
|
+
|
|
97
|
+
expect(mockOnChange).not.toHaveBeenCalled();
|
|
43
98
|
});
|
|
44
99
|
});
|
|
@@ -2,34 +2,51 @@ import { StyleSheet } from "react-native";
|
|
|
2
2
|
import { theme } from "@lookiero/sty-psp-ui";
|
|
3
3
|
|
|
4
4
|
const style = () => {
|
|
5
|
-
const {
|
|
6
|
-
|
|
5
|
+
const {
|
|
6
|
+
colorText,
|
|
7
|
+
colorBorderInputFocus,
|
|
8
|
+
colorBorderInteractive,
|
|
9
|
+
space025,
|
|
10
|
+
space3,
|
|
11
|
+
space4,
|
|
12
|
+
space6,
|
|
13
|
+
borderWidth1,
|
|
14
|
+
borderWidth2,
|
|
15
|
+
borderRadius3,
|
|
16
|
+
} = theme();
|
|
7
17
|
|
|
8
|
-
|
|
18
|
+
return StyleSheet.create({
|
|
19
|
+
container: {
|
|
20
|
+
gap: space3,
|
|
21
|
+
},
|
|
9
22
|
modalContent: {
|
|
10
|
-
paddingBottom: space6,
|
|
11
23
|
paddingHorizontal: space6,
|
|
12
24
|
},
|
|
13
25
|
modalTitle: {
|
|
14
|
-
marginBottom:
|
|
26
|
+
marginBottom: space3,
|
|
27
|
+
},
|
|
28
|
+
text: {
|
|
29
|
+
color: colorText,
|
|
30
|
+
flex: 1,
|
|
31
|
+
marginLeft: space4,
|
|
15
32
|
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
33
|
+
wrapper: {
|
|
34
|
+
alignItems: "center",
|
|
35
|
+
borderColor: colorBorderInteractive,
|
|
36
|
+
borderWidth: borderWidth1,
|
|
37
|
+
flex: 1,
|
|
38
|
+
flexDirection: "row",
|
|
39
|
+
padding: space4,
|
|
20
40
|
},
|
|
21
|
-
|
|
22
|
-
|
|
41
|
+
wrapperChecked: {
|
|
42
|
+
borderColor: colorBorderInputFocus,
|
|
43
|
+
borderWidth: borderWidth2,
|
|
44
|
+
padding: space4 - space025,
|
|
23
45
|
},
|
|
24
|
-
|
|
25
|
-
|
|
46
|
+
wrapperLookiero: {
|
|
47
|
+
borderRadius: borderRadius3,
|
|
26
48
|
},
|
|
27
49
|
});
|
|
28
|
-
|
|
29
|
-
return {
|
|
30
|
-
...styles,
|
|
31
|
-
underlayColor: colorBgPrimaryLight,
|
|
32
|
-
};
|
|
33
50
|
};
|
|
34
51
|
|
|
35
52
|
export { style };
|