@planningcenter/chat-react-native 4.5.0-rc.2 → 4.5.0-rc.4
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/build/components/display/filter_dropdown.d.ts +16 -0
- package/build/components/display/filter_dropdown.d.ts.map +1 -1
- package/build/components/display/filter_dropdown.js +105 -57
- package/build/components/display/filter_dropdown.js.map +1 -1
- package/build/components/display/index.d.ts +1 -0
- package/build/components/display/index.d.ts.map +1 -1
- package/build/components/display/index.js +1 -0
- package/build/components/display/index.js.map +1 -1
- package/build/components/display/popover_menu_view.d.ts +8 -0
- package/build/components/display/popover_menu_view.d.ts.map +1 -0
- package/build/components/display/popover_menu_view.js +482 -0
- package/build/components/display/popover_menu_view.js.map +1 -0
- package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts.map +1 -1
- package/build/screens/conversations/components/filter_dropdown_list_header_component.js +159 -124
- package/build/screens/conversations/components/filter_dropdown_list_header_component.js.map +1 -1
- package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
- package/build/screens/conversations/conversations_screen.js +1 -2
- package/build/screens/conversations/conversations_screen.js.map +1 -1
- package/build/screens/design_system_screen.d.ts.map +1 -1
- package/build/screens/design_system_screen.js +289 -201
- package/build/screens/design_system_screen.js.map +1 -1
- package/build/utils/native_adapters/menu.d.ts +1 -2
- package/build/utils/native_adapters/menu.d.ts.map +1 -1
- package/build/utils/native_adapters/menu.js +2 -41
- package/build/utils/native_adapters/menu.js.map +1 -1
- package/package.json +2 -2
- package/src/components/display/__tests__/filter_dropdown.test.tsx +18 -2
- package/src/components/display/__tests__/popover_menu_view.test.tsx +63 -0
- package/src/components/display/filter_dropdown.tsx +53 -19
- package/src/components/display/index.ts +1 -0
- package/src/components/display/popover_menu_view.tsx +239 -0
- package/src/screens/conversations/__tests__/conversations_screen.test.tsx +2 -12
- package/src/screens/conversations/components/__tests__/filter_dropdown_list_header_component.test.tsx +0 -54
- package/src/screens/conversations/components/filter_dropdown_list_header_component.tsx +41 -27
- package/src/screens/conversations/conversations_screen.tsx +1 -2
- package/src/screens/design_system_screen.tsx +34 -1
- package/src/utils/native_adapters/menu.tsx +4 -18
- package/src/utils/native_adapters/__tests__/menu.test.tsx +0 -46
|
@@ -2,7 +2,7 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
2
2
|
import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome';
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
4
|
import { Alert, Pressable, ScrollView, StyleSheet, View } from 'react-native';
|
|
5
|
-
import { Avatar, AvatarGroup, Badge, Banner, BannerCollapsible, Button, ConversationAvatar, EmojiAvatar, FilterDropdown, IconAvatar, ToggleButton, Heading, Icon, IconButton, Image, Person, Spinner, Switch, Text, TextButton, TextInlineButton, ImageAttachmentPreview } from '../components/display';
|
|
5
|
+
import { Avatar, AvatarGroup, Badge, Banner, BannerCollapsible, Button, ConversationAvatar, EmojiAvatar, FilterDropdown, IconAvatar, ToggleButton, Heading, Icon, IconButton, Image, Person, PopoverMenuView, Spinner, Switch, Text, TextButton, TextInlineButton, ImageAttachmentPreview } from '../components/display';
|
|
6
6
|
import { VideoAttachmentPreview } from '../components/display/video_attachment_preview';
|
|
7
7
|
import BannerPrimitive from '../components/primitive/banner_primitive';
|
|
8
8
|
import BlankState from '../components/primitive/blank_state_primitive';
|
|
@@ -383,13 +383,14 @@ function HeadingTextSection(t0) {
|
|
|
383
383
|
return t11;
|
|
384
384
|
}
|
|
385
385
|
function PressablesSection(t0) {
|
|
386
|
-
const $ = _c(
|
|
386
|
+
const $ = _c(95);
|
|
387
387
|
const {
|
|
388
388
|
isLast
|
|
389
389
|
} = t0;
|
|
390
390
|
const styles = useStyles();
|
|
391
391
|
const [filterSelected, setFilterSelected] = useState("Groups");
|
|
392
392
|
const [dropdownSelected, setDropdownSelected] = useState("all");
|
|
393
|
+
const [popoverSelected, setPopoverSelected] = useState("all");
|
|
393
394
|
let t1;
|
|
394
395
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
395
396
|
t1 = /*#__PURE__*/_jsxs(Row, {
|
|
@@ -729,7 +730,7 @@ function PressablesSection(t0) {
|
|
|
729
730
|
if ($[26] !== styles.alignRowLeft || $[27] !== t20) {
|
|
730
731
|
t21 = /*#__PURE__*/_jsx(Group, {
|
|
731
732
|
title: "FilterDropdown",
|
|
732
|
-
description: "Trigger that opens the host's native menu of filter options plus a More filters action.
|
|
733
|
+
description: "Trigger that opens the host's native menu of filter options plus a More filters action. Falls back to PopoverMenuView when the host configures no menu adapter.",
|
|
733
734
|
children: /*#__PURE__*/_jsx(Row, {
|
|
734
735
|
style: styles.alignRowLeft,
|
|
735
736
|
children: t20
|
|
@@ -742,17 +743,103 @@ function PressablesSection(t0) {
|
|
|
742
743
|
t21 = $[28];
|
|
743
744
|
}
|
|
744
745
|
let t22;
|
|
746
|
+
if ($[29] !== popoverSelected) {
|
|
747
|
+
let t23;
|
|
748
|
+
if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
|
|
749
|
+
t23 = {
|
|
750
|
+
id: "more",
|
|
751
|
+
title: "",
|
|
752
|
+
displayInline: true,
|
|
753
|
+
subactions: [{
|
|
754
|
+
id: "more_filters",
|
|
755
|
+
title: "More filters"
|
|
756
|
+
}]
|
|
757
|
+
};
|
|
758
|
+
$[31] = t23;
|
|
759
|
+
} else {
|
|
760
|
+
t23 = $[31];
|
|
761
|
+
}
|
|
762
|
+
t22 = [...filterDropdownOptions.map(option_0 => ({
|
|
763
|
+
id: option_0.id,
|
|
764
|
+
title: option_0.label,
|
|
765
|
+
state: option_0.id === popoverSelected ? "on" : "off"
|
|
766
|
+
})), t23];
|
|
767
|
+
$[29] = popoverSelected;
|
|
768
|
+
$[30] = t22;
|
|
769
|
+
} else {
|
|
770
|
+
t22 = $[30];
|
|
771
|
+
}
|
|
745
772
|
let t23;
|
|
773
|
+
if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
|
|
774
|
+
t23 = t24 => {
|
|
775
|
+
const {
|
|
776
|
+
nativeEvent
|
|
777
|
+
} = t24;
|
|
778
|
+
return nativeEvent.event === "more_filters" ? Alert.alert("More filters") : setPopoverSelected(nativeEvent.event);
|
|
779
|
+
};
|
|
780
|
+
$[32] = t23;
|
|
781
|
+
} else {
|
|
782
|
+
t23 = $[32];
|
|
783
|
+
}
|
|
746
784
|
let t24;
|
|
747
|
-
if ($[
|
|
748
|
-
|
|
785
|
+
if ($[33] !== popoverSelected) {
|
|
786
|
+
t24 = filterDropdownOptions.find(option_1 => option_1.id === popoverSelected)?.label;
|
|
787
|
+
$[33] = popoverSelected;
|
|
788
|
+
$[34] = t24;
|
|
789
|
+
} else {
|
|
790
|
+
t24 = $[34];
|
|
791
|
+
}
|
|
792
|
+
let t25;
|
|
793
|
+
if ($[35] !== t24) {
|
|
794
|
+
t25 = /*#__PURE__*/_jsxs(Text, {
|
|
795
|
+
children: [t24, " \u25BE"]
|
|
796
|
+
});
|
|
797
|
+
$[35] = t24;
|
|
798
|
+
$[36] = t25;
|
|
799
|
+
} else {
|
|
800
|
+
t25 = $[36];
|
|
801
|
+
}
|
|
802
|
+
let t26;
|
|
803
|
+
if ($[37] !== t22 || $[38] !== t25) {
|
|
804
|
+
t26 = /*#__PURE__*/_jsx(PopoverMenuView, {
|
|
805
|
+
actions: t22,
|
|
806
|
+
onPressAction: t23,
|
|
807
|
+
children: t25
|
|
808
|
+
});
|
|
809
|
+
$[37] = t22;
|
|
810
|
+
$[38] = t25;
|
|
811
|
+
$[39] = t26;
|
|
812
|
+
} else {
|
|
813
|
+
t26 = $[39];
|
|
814
|
+
}
|
|
815
|
+
let t27;
|
|
816
|
+
if ($[40] !== styles.alignRowLeft || $[41] !== t26) {
|
|
817
|
+
t27 = /*#__PURE__*/_jsx(Group, {
|
|
818
|
+
title: "PopoverMenuView",
|
|
819
|
+
description: "The JS-only menu FilterDropdown falls back to when the host configures no menu adapter. Opens under the trigger, or above it when the trigger is in the lower half of the screen.",
|
|
820
|
+
children: /*#__PURE__*/_jsx(Row, {
|
|
821
|
+
style: styles.alignRowLeft,
|
|
822
|
+
children: t26
|
|
823
|
+
})
|
|
824
|
+
});
|
|
825
|
+
$[40] = styles.alignRowLeft;
|
|
826
|
+
$[41] = t26;
|
|
827
|
+
$[42] = t27;
|
|
828
|
+
} else {
|
|
829
|
+
t27 = $[42];
|
|
830
|
+
}
|
|
831
|
+
let t28;
|
|
832
|
+
let t29;
|
|
833
|
+
let t30;
|
|
834
|
+
if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
|
|
835
|
+
t28 = /*#__PURE__*/_jsx(IconButton, {
|
|
749
836
|
onPress: buttonPress,
|
|
750
837
|
name: "general.paperclip",
|
|
751
838
|
accessibilityLabel: "Add attachment",
|
|
752
839
|
accessibilityHint: "Opens your device's image gallary",
|
|
753
840
|
size: "md"
|
|
754
841
|
});
|
|
755
|
-
|
|
842
|
+
t29 = /*#__PURE__*/_jsx(IconButton, {
|
|
756
843
|
onPress: buttonPress,
|
|
757
844
|
name: "general.paperclip",
|
|
758
845
|
accessibilityLabel: "Add attachment",
|
|
@@ -760,7 +847,7 @@ function PressablesSection(t0) {
|
|
|
760
847
|
appearance: "danger",
|
|
761
848
|
size: "lg"
|
|
762
849
|
});
|
|
763
|
-
|
|
850
|
+
t30 = /*#__PURE__*/_jsx(IconButton, {
|
|
764
851
|
onPress: buttonPress,
|
|
765
852
|
name: "general.paperclip",
|
|
766
853
|
accessibilityLabel: "Add attachment",
|
|
@@ -768,17 +855,17 @@ function PressablesSection(t0) {
|
|
|
768
855
|
appearance: "interaction",
|
|
769
856
|
size: "xl"
|
|
770
857
|
});
|
|
771
|
-
$[
|
|
772
|
-
$[
|
|
773
|
-
$[
|
|
858
|
+
$[43] = t28;
|
|
859
|
+
$[44] = t29;
|
|
860
|
+
$[45] = t30;
|
|
774
861
|
} else {
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
862
|
+
t28 = $[43];
|
|
863
|
+
t29 = $[44];
|
|
864
|
+
t30 = $[45];
|
|
778
865
|
}
|
|
779
|
-
let
|
|
780
|
-
if ($[
|
|
781
|
-
|
|
866
|
+
let t31;
|
|
867
|
+
if ($[46] !== styles.customIconButtonColor) {
|
|
868
|
+
t31 = /*#__PURE__*/_jsx(IconButton, {
|
|
782
869
|
onPress: buttonPress,
|
|
783
870
|
name: "general.paperclip",
|
|
784
871
|
accessibilityLabel: "Add attachment",
|
|
@@ -786,39 +873,39 @@ function PressablesSection(t0) {
|
|
|
786
873
|
iconStyle: styles.customIconButtonColor,
|
|
787
874
|
size: "xxl"
|
|
788
875
|
});
|
|
789
|
-
$[
|
|
790
|
-
$[
|
|
876
|
+
$[46] = styles.customIconButtonColor;
|
|
877
|
+
$[47] = t31;
|
|
791
878
|
} else {
|
|
792
|
-
|
|
879
|
+
t31 = $[47];
|
|
793
880
|
}
|
|
794
|
-
let
|
|
795
|
-
if ($[
|
|
796
|
-
|
|
881
|
+
let t32;
|
|
882
|
+
if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
|
|
883
|
+
t32 = /*#__PURE__*/_jsx(IconButton, {
|
|
797
884
|
onPress: buttonPress,
|
|
798
885
|
name: "general.paperclip",
|
|
799
886
|
accessibilityLabel: "Add attachment",
|
|
800
887
|
accessibilityHint: "Opens your device's image gallary",
|
|
801
888
|
size: "xxxl"
|
|
802
889
|
});
|
|
803
|
-
$[
|
|
890
|
+
$[48] = t32;
|
|
804
891
|
} else {
|
|
805
|
-
|
|
892
|
+
t32 = $[48];
|
|
806
893
|
}
|
|
807
|
-
let
|
|
808
|
-
if ($[
|
|
809
|
-
|
|
810
|
-
children: [
|
|
894
|
+
let t33;
|
|
895
|
+
if ($[49] !== t31) {
|
|
896
|
+
t33 = /*#__PURE__*/_jsxs(Row, {
|
|
897
|
+
children: [t28, t29, t30, t31, t32]
|
|
811
898
|
});
|
|
812
|
-
$[
|
|
813
|
-
$[
|
|
899
|
+
$[49] = t31;
|
|
900
|
+
$[50] = t33;
|
|
814
901
|
} else {
|
|
815
|
-
|
|
902
|
+
t33 = $[50];
|
|
816
903
|
}
|
|
817
|
-
let
|
|
818
|
-
let
|
|
819
|
-
let
|
|
820
|
-
if ($[
|
|
821
|
-
|
|
904
|
+
let t34;
|
|
905
|
+
let t35;
|
|
906
|
+
let t36;
|
|
907
|
+
if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
|
|
908
|
+
t34 = /*#__PURE__*/_jsx(IconButton, {
|
|
822
909
|
onPress: buttonPress,
|
|
823
910
|
name: "general.paperclip",
|
|
824
911
|
accessibilityLabel: "Add attachment",
|
|
@@ -826,7 +913,7 @@ function PressablesSection(t0) {
|
|
|
826
913
|
size: "md",
|
|
827
914
|
disabled: true
|
|
828
915
|
});
|
|
829
|
-
|
|
916
|
+
t35 = /*#__PURE__*/_jsx(IconButton, {
|
|
830
917
|
onPress: buttonPress,
|
|
831
918
|
name: "general.paperclip",
|
|
832
919
|
accessibilityLabel: "Add attachment",
|
|
@@ -835,7 +922,7 @@ function PressablesSection(t0) {
|
|
|
835
922
|
size: "lg",
|
|
836
923
|
disabled: true
|
|
837
924
|
});
|
|
838
|
-
|
|
925
|
+
t36 = /*#__PURE__*/_jsx(IconButton, {
|
|
839
926
|
onPress: buttonPress,
|
|
840
927
|
name: "general.paperclip",
|
|
841
928
|
accessibilityLabel: "Add attachment",
|
|
@@ -844,17 +931,17 @@ function PressablesSection(t0) {
|
|
|
844
931
|
size: "xl",
|
|
845
932
|
disabled: true
|
|
846
933
|
});
|
|
847
|
-
$[
|
|
848
|
-
$[
|
|
849
|
-
$[
|
|
934
|
+
$[51] = t34;
|
|
935
|
+
$[52] = t35;
|
|
936
|
+
$[53] = t36;
|
|
850
937
|
} else {
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
938
|
+
t34 = $[51];
|
|
939
|
+
t35 = $[52];
|
|
940
|
+
t36 = $[53];
|
|
854
941
|
}
|
|
855
|
-
let
|
|
856
|
-
if ($[
|
|
857
|
-
|
|
942
|
+
let t37;
|
|
943
|
+
if ($[54] !== styles.customIconButtonColor) {
|
|
944
|
+
t37 = /*#__PURE__*/_jsx(IconButton, {
|
|
858
945
|
onPress: buttonPress,
|
|
859
946
|
name: "general.paperclip",
|
|
860
947
|
accessibilityLabel: "Add attachment",
|
|
@@ -863,14 +950,14 @@ function PressablesSection(t0) {
|
|
|
863
950
|
size: "xxl",
|
|
864
951
|
disabled: true
|
|
865
952
|
});
|
|
866
|
-
$[
|
|
867
|
-
$[
|
|
953
|
+
$[54] = styles.customIconButtonColor;
|
|
954
|
+
$[55] = t37;
|
|
868
955
|
} else {
|
|
869
|
-
|
|
956
|
+
t37 = $[55];
|
|
870
957
|
}
|
|
871
|
-
let
|
|
872
|
-
if ($[
|
|
873
|
-
|
|
958
|
+
let t38;
|
|
959
|
+
if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
|
|
960
|
+
t38 = /*#__PURE__*/_jsx(IconButton, {
|
|
874
961
|
onPress: buttonPress,
|
|
875
962
|
name: "general.paperclip",
|
|
876
963
|
accessibilityLabel: "Add attachment",
|
|
@@ -878,25 +965,25 @@ function PressablesSection(t0) {
|
|
|
878
965
|
size: "xxxl",
|
|
879
966
|
disabled: true
|
|
880
967
|
});
|
|
881
|
-
$[
|
|
968
|
+
$[56] = t38;
|
|
882
969
|
} else {
|
|
883
|
-
|
|
970
|
+
t38 = $[56];
|
|
884
971
|
}
|
|
885
|
-
let
|
|
886
|
-
if ($[
|
|
887
|
-
|
|
888
|
-
children: [
|
|
972
|
+
let t39;
|
|
973
|
+
if ($[57] !== t37) {
|
|
974
|
+
t39 = /*#__PURE__*/_jsxs(Row, {
|
|
975
|
+
children: [t34, t35, t36, t37, t38]
|
|
889
976
|
});
|
|
890
|
-
$[
|
|
891
|
-
$[
|
|
977
|
+
$[57] = t37;
|
|
978
|
+
$[58] = t39;
|
|
892
979
|
} else {
|
|
893
|
-
|
|
980
|
+
t39 = $[58];
|
|
894
981
|
}
|
|
895
|
-
let
|
|
896
|
-
let
|
|
897
|
-
let
|
|
898
|
-
if ($[
|
|
899
|
-
|
|
982
|
+
let t40;
|
|
983
|
+
let t41;
|
|
984
|
+
let t42;
|
|
985
|
+
if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
|
|
986
|
+
t40 = /*#__PURE__*/_jsx(IconButton, {
|
|
900
987
|
onPress: buttonPress,
|
|
901
988
|
name: "general.paperclip",
|
|
902
989
|
accessibilityLabel: "Add attachment",
|
|
@@ -904,7 +991,7 @@ function PressablesSection(t0) {
|
|
|
904
991
|
size: "md",
|
|
905
992
|
loading: true
|
|
906
993
|
});
|
|
907
|
-
|
|
994
|
+
t41 = /*#__PURE__*/_jsx(IconButton, {
|
|
908
995
|
onPress: buttonPress,
|
|
909
996
|
name: "general.paperclip",
|
|
910
997
|
accessibilityLabel: "Add attachment",
|
|
@@ -913,7 +1000,7 @@ function PressablesSection(t0) {
|
|
|
913
1000
|
size: "lg",
|
|
914
1001
|
loading: true
|
|
915
1002
|
});
|
|
916
|
-
|
|
1003
|
+
t42 = /*#__PURE__*/_jsx(IconButton, {
|
|
917
1004
|
onPress: buttonPress,
|
|
918
1005
|
name: "general.paperclip",
|
|
919
1006
|
accessibilityLabel: "Add attachment",
|
|
@@ -922,17 +1009,17 @@ function PressablesSection(t0) {
|
|
|
922
1009
|
size: "xl",
|
|
923
1010
|
loading: true
|
|
924
1011
|
});
|
|
925
|
-
$[
|
|
926
|
-
$[
|
|
927
|
-
$[
|
|
1012
|
+
$[59] = t40;
|
|
1013
|
+
$[60] = t41;
|
|
1014
|
+
$[61] = t42;
|
|
928
1015
|
} else {
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
1016
|
+
t40 = $[59];
|
|
1017
|
+
t41 = $[60];
|
|
1018
|
+
t42 = $[61];
|
|
932
1019
|
}
|
|
933
|
-
let
|
|
934
|
-
if ($[
|
|
935
|
-
|
|
1020
|
+
let t43;
|
|
1021
|
+
if ($[62] !== styles.customIconButtonColor) {
|
|
1022
|
+
t43 = /*#__PURE__*/_jsx(IconButton, {
|
|
936
1023
|
onPress: buttonPress,
|
|
937
1024
|
name: "general.paperclip",
|
|
938
1025
|
accessibilityLabel: "Add attachment",
|
|
@@ -941,14 +1028,14 @@ function PressablesSection(t0) {
|
|
|
941
1028
|
size: "xxl",
|
|
942
1029
|
loading: true
|
|
943
1030
|
});
|
|
944
|
-
$[
|
|
945
|
-
$[
|
|
1031
|
+
$[62] = styles.customIconButtonColor;
|
|
1032
|
+
$[63] = t43;
|
|
946
1033
|
} else {
|
|
947
|
-
|
|
1034
|
+
t43 = $[63];
|
|
948
1035
|
}
|
|
949
|
-
let
|
|
950
|
-
if ($[
|
|
951
|
-
|
|
1036
|
+
let t44;
|
|
1037
|
+
if ($[64] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1038
|
+
t44 = /*#__PURE__*/_jsx(IconButton, {
|
|
952
1039
|
onPress: buttonPress,
|
|
953
1040
|
name: "general.paperclip",
|
|
954
1041
|
accessibilityLabel: "Add attachment",
|
|
@@ -956,37 +1043,37 @@ function PressablesSection(t0) {
|
|
|
956
1043
|
size: "xxxl",
|
|
957
1044
|
loading: true
|
|
958
1045
|
});
|
|
959
|
-
$[
|
|
1046
|
+
$[64] = t44;
|
|
960
1047
|
} else {
|
|
961
|
-
|
|
1048
|
+
t44 = $[64];
|
|
962
1049
|
}
|
|
963
|
-
let
|
|
964
|
-
if ($[
|
|
965
|
-
|
|
966
|
-
children: [
|
|
1050
|
+
let t45;
|
|
1051
|
+
if ($[65] !== t43) {
|
|
1052
|
+
t45 = /*#__PURE__*/_jsxs(Row, {
|
|
1053
|
+
children: [t40, t41, t42, t43, t44]
|
|
967
1054
|
});
|
|
968
|
-
$[
|
|
969
|
-
$[
|
|
1055
|
+
$[65] = t43;
|
|
1056
|
+
$[66] = t45;
|
|
970
1057
|
} else {
|
|
971
|
-
|
|
1058
|
+
t45 = $[66];
|
|
972
1059
|
}
|
|
973
|
-
let
|
|
974
|
-
if ($[
|
|
975
|
-
|
|
1060
|
+
let t46;
|
|
1061
|
+
if ($[67] !== t33 || $[68] !== t39 || $[69] !== t45) {
|
|
1062
|
+
t46 = /*#__PURE__*/_jsxs(Group, {
|
|
976
1063
|
title: "IconButton",
|
|
977
1064
|
description: "Supports different appearances, sizes, along with loading & disabled states. Use `iconStyle` for custom colors and font sizes. Requires `accessibilityLabel` as icon's don't provide context to screen readers.",
|
|
978
|
-
children: [
|
|
1065
|
+
children: [t33, t39, t45]
|
|
979
1066
|
});
|
|
980
|
-
$[
|
|
981
|
-
$[
|
|
982
|
-
$[
|
|
983
|
-
$[
|
|
1067
|
+
$[67] = t33;
|
|
1068
|
+
$[68] = t39;
|
|
1069
|
+
$[69] = t45;
|
|
1070
|
+
$[70] = t46;
|
|
984
1071
|
} else {
|
|
985
|
-
|
|
1072
|
+
t46 = $[70];
|
|
986
1073
|
}
|
|
987
|
-
let
|
|
988
|
-
if ($[
|
|
989
|
-
|
|
1074
|
+
let t47;
|
|
1075
|
+
if ($[71] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1076
|
+
t47 = /*#__PURE__*/_jsxs(Row, {
|
|
990
1077
|
children: [/*#__PURE__*/_jsx(TextButton, {
|
|
991
1078
|
onPress: buttonPress,
|
|
992
1079
|
children: "Default"
|
|
@@ -1004,13 +1091,13 @@ function PressablesSection(t0) {
|
|
|
1004
1091
|
children: "Default"
|
|
1005
1092
|
})]
|
|
1006
1093
|
});
|
|
1007
|
-
$[
|
|
1094
|
+
$[71] = t47;
|
|
1008
1095
|
} else {
|
|
1009
|
-
|
|
1096
|
+
t47 = $[71];
|
|
1010
1097
|
}
|
|
1011
|
-
let
|
|
1012
|
-
if ($[
|
|
1013
|
-
|
|
1098
|
+
let t48;
|
|
1099
|
+
if ($[72] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1100
|
+
t48 = /*#__PURE__*/_jsxs(Row, {
|
|
1014
1101
|
children: [/*#__PURE__*/_jsx(TextButton, {
|
|
1015
1102
|
onPress: buttonPress,
|
|
1016
1103
|
appearance: "danger",
|
|
@@ -1032,16 +1119,16 @@ function PressablesSection(t0) {
|
|
|
1032
1119
|
children: "Danger"
|
|
1033
1120
|
})]
|
|
1034
1121
|
});
|
|
1035
|
-
$[
|
|
1122
|
+
$[72] = t48;
|
|
1036
1123
|
} else {
|
|
1037
|
-
|
|
1124
|
+
t48 = $[72];
|
|
1038
1125
|
}
|
|
1039
|
-
let
|
|
1040
|
-
if ($[
|
|
1041
|
-
|
|
1126
|
+
let t49;
|
|
1127
|
+
if ($[73] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1128
|
+
t49 = /*#__PURE__*/_jsxs(Group, {
|
|
1042
1129
|
title: "TextButton",
|
|
1043
1130
|
description: "Pressable text with default & danger appearance options. Can be disabled and accept `Text` variance props.",
|
|
1044
|
-
children: [
|
|
1131
|
+
children: [t47, t48, /*#__PURE__*/_jsxs(Row, {
|
|
1045
1132
|
children: [/*#__PURE__*/_jsx(TextButton, {
|
|
1046
1133
|
onPress: buttonPress,
|
|
1047
1134
|
disabled: true,
|
|
@@ -1064,190 +1151,191 @@ function PressablesSection(t0) {
|
|
|
1064
1151
|
})]
|
|
1065
1152
|
})]
|
|
1066
1153
|
});
|
|
1067
|
-
$[
|
|
1154
|
+
$[73] = t49;
|
|
1068
1155
|
} else {
|
|
1069
|
-
|
|
1156
|
+
t49 = $[73];
|
|
1070
1157
|
}
|
|
1071
|
-
let
|
|
1072
|
-
if ($[
|
|
1073
|
-
|
|
1158
|
+
let t50;
|
|
1159
|
+
if ($[74] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1160
|
+
t50 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1074
1161
|
onPress: buttonPress,
|
|
1075
1162
|
children: "default button text"
|
|
1076
1163
|
});
|
|
1077
|
-
$[
|
|
1164
|
+
$[74] = t50;
|
|
1078
1165
|
} else {
|
|
1079
|
-
|
|
1166
|
+
t50 = $[74];
|
|
1080
1167
|
}
|
|
1081
|
-
let
|
|
1082
|
-
if ($[
|
|
1083
|
-
|
|
1168
|
+
let t51;
|
|
1169
|
+
if ($[75] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1170
|
+
t51 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1084
1171
|
onPress: buttonPress,
|
|
1085
1172
|
appearance: "danger",
|
|
1086
1173
|
children: "danger button text"
|
|
1087
1174
|
});
|
|
1088
|
-
$[
|
|
1175
|
+
$[75] = t51;
|
|
1089
1176
|
} else {
|
|
1090
|
-
|
|
1177
|
+
t51 = $[75];
|
|
1091
1178
|
}
|
|
1092
|
-
let
|
|
1093
|
-
if ($[
|
|
1094
|
-
|
|
1095
|
-
children: ["This text is next to", " ",
|
|
1179
|
+
let t52;
|
|
1180
|
+
if ($[76] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1181
|
+
t52 = /*#__PURE__*/_jsxs(Text, {
|
|
1182
|
+
children: ["This text is next to", " ", t50, " Lorem ipsum dolor", " ", t51, " ", "consectetur", " ", /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1096
1183
|
onPress: buttonPress,
|
|
1097
1184
|
disabled: true,
|
|
1098
1185
|
children: "disabled button text"
|
|
1099
1186
|
}), " ", "elit."]
|
|
1100
1187
|
});
|
|
1101
|
-
$[
|
|
1188
|
+
$[76] = t52;
|
|
1102
1189
|
} else {
|
|
1103
|
-
|
|
1190
|
+
t52 = $[76];
|
|
1104
1191
|
}
|
|
1105
|
-
let
|
|
1106
|
-
if ($[
|
|
1107
|
-
|
|
1192
|
+
let t53;
|
|
1193
|
+
if ($[77] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1194
|
+
t53 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1108
1195
|
variant: "secondary",
|
|
1109
1196
|
onPress: buttonPress,
|
|
1110
1197
|
children: "default button text"
|
|
1111
1198
|
});
|
|
1112
|
-
$[
|
|
1199
|
+
$[77] = t53;
|
|
1113
1200
|
} else {
|
|
1114
|
-
|
|
1201
|
+
t53 = $[77];
|
|
1115
1202
|
}
|
|
1116
|
-
let
|
|
1117
|
-
if ($[
|
|
1118
|
-
|
|
1203
|
+
let t54;
|
|
1204
|
+
if ($[78] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1205
|
+
t54 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1119
1206
|
variant: "secondary",
|
|
1120
1207
|
onPress: buttonPress,
|
|
1121
1208
|
appearance: "danger",
|
|
1122
1209
|
children: "danger button text"
|
|
1123
1210
|
});
|
|
1124
|
-
$[
|
|
1211
|
+
$[78] = t54;
|
|
1125
1212
|
} else {
|
|
1126
|
-
|
|
1213
|
+
t54 = $[78];
|
|
1127
1214
|
}
|
|
1128
|
-
let
|
|
1129
|
-
if ($[
|
|
1130
|
-
|
|
1215
|
+
let t55;
|
|
1216
|
+
if ($[79] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1217
|
+
t55 = /*#__PURE__*/_jsxs(Text, {
|
|
1131
1218
|
variant: "secondary",
|
|
1132
|
-
children: ["This text is next to", " ",
|
|
1219
|
+
children: ["This text is next to", " ", t53, " ", "Lorem ipsum dolor", " ", t54, " ", "consectetur", " ", /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1133
1220
|
variant: "secondary",
|
|
1134
1221
|
onPress: buttonPress,
|
|
1135
1222
|
disabled: true,
|
|
1136
1223
|
children: "disabled button text"
|
|
1137
1224
|
}), " ", "elit."]
|
|
1138
1225
|
});
|
|
1139
|
-
$[
|
|
1226
|
+
$[79] = t55;
|
|
1140
1227
|
} else {
|
|
1141
|
-
|
|
1228
|
+
t55 = $[79];
|
|
1142
1229
|
}
|
|
1143
|
-
let
|
|
1144
|
-
if ($[
|
|
1145
|
-
|
|
1230
|
+
let t56;
|
|
1231
|
+
if ($[80] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1232
|
+
t56 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1146
1233
|
variant: "tertiary",
|
|
1147
1234
|
onPress: buttonPress,
|
|
1148
1235
|
children: "default button text"
|
|
1149
1236
|
});
|
|
1150
|
-
$[
|
|
1237
|
+
$[80] = t56;
|
|
1151
1238
|
} else {
|
|
1152
|
-
|
|
1239
|
+
t56 = $[80];
|
|
1153
1240
|
}
|
|
1154
|
-
let
|
|
1155
|
-
if ($[
|
|
1156
|
-
|
|
1241
|
+
let t57;
|
|
1242
|
+
if ($[81] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1243
|
+
t57 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1157
1244
|
variant: "tertiary",
|
|
1158
1245
|
onPress: buttonPress,
|
|
1159
1246
|
appearance: "danger",
|
|
1160
1247
|
children: "danger button text"
|
|
1161
1248
|
});
|
|
1162
|
-
$[
|
|
1249
|
+
$[81] = t57;
|
|
1163
1250
|
} else {
|
|
1164
|
-
|
|
1251
|
+
t57 = $[81];
|
|
1165
1252
|
}
|
|
1166
|
-
let
|
|
1167
|
-
if ($[
|
|
1168
|
-
|
|
1253
|
+
let t58;
|
|
1254
|
+
if ($[82] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1255
|
+
t58 = /*#__PURE__*/_jsxs(Text, {
|
|
1169
1256
|
variant: "tertiary",
|
|
1170
|
-
children: ["This text is next to", " ",
|
|
1257
|
+
children: ["This text is next to", " ", t56, " ", "Lorem ipsum dolor", " ", t57, " ", "consectetur", " ", /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1171
1258
|
variant: "tertiary",
|
|
1172
1259
|
onPress: buttonPress,
|
|
1173
1260
|
disabled: true,
|
|
1174
1261
|
children: "disabled button text"
|
|
1175
1262
|
}), " ", "elit."]
|
|
1176
1263
|
});
|
|
1177
|
-
$[
|
|
1264
|
+
$[82] = t58;
|
|
1178
1265
|
} else {
|
|
1179
|
-
|
|
1266
|
+
t58 = $[82];
|
|
1180
1267
|
}
|
|
1181
|
-
let
|
|
1182
|
-
if ($[
|
|
1183
|
-
|
|
1268
|
+
let t59;
|
|
1269
|
+
if ($[83] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1270
|
+
t59 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1184
1271
|
variant: "footnote",
|
|
1185
1272
|
onPress: buttonPress,
|
|
1186
1273
|
children: "default button text"
|
|
1187
1274
|
});
|
|
1188
|
-
$[
|
|
1275
|
+
$[83] = t59;
|
|
1189
1276
|
} else {
|
|
1190
|
-
|
|
1277
|
+
t59 = $[83];
|
|
1191
1278
|
}
|
|
1192
|
-
let
|
|
1193
|
-
if ($[
|
|
1194
|
-
|
|
1279
|
+
let t60;
|
|
1280
|
+
if ($[84] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1281
|
+
t60 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1195
1282
|
variant: "footnote",
|
|
1196
1283
|
onPress: buttonPress,
|
|
1197
1284
|
appearance: "danger",
|
|
1198
1285
|
children: "danger button text"
|
|
1199
1286
|
});
|
|
1200
|
-
$[
|
|
1287
|
+
$[84] = t60;
|
|
1201
1288
|
} else {
|
|
1202
|
-
|
|
1289
|
+
t60 = $[84];
|
|
1203
1290
|
}
|
|
1204
|
-
let
|
|
1205
|
-
if ($[
|
|
1206
|
-
|
|
1291
|
+
let t61;
|
|
1292
|
+
if ($[85] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1293
|
+
t61 = /*#__PURE__*/_jsxs(Text, {
|
|
1207
1294
|
variant: "footnote",
|
|
1208
|
-
children: ["This text is next to", " ",
|
|
1295
|
+
children: ["This text is next to", " ", t59, " ", "Lorem ipsum dolor", " ", t60, " ", "consectetur", " ", /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1209
1296
|
variant: "footnote",
|
|
1210
1297
|
onPress: buttonPress,
|
|
1211
1298
|
disabled: true,
|
|
1212
1299
|
children: "disabled button text"
|
|
1213
1300
|
}), " ", "elit."]
|
|
1214
1301
|
});
|
|
1215
|
-
$[
|
|
1302
|
+
$[85] = t61;
|
|
1216
1303
|
} else {
|
|
1217
|
-
|
|
1304
|
+
t61 = $[85];
|
|
1218
1305
|
}
|
|
1219
|
-
let
|
|
1220
|
-
if ($[
|
|
1221
|
-
|
|
1306
|
+
let t62;
|
|
1307
|
+
if ($[86] !== styles.alignRowLeft) {
|
|
1308
|
+
t62 = /*#__PURE__*/_jsx(Group, {
|
|
1222
1309
|
title: "TextInlineButton",
|
|
1223
1310
|
description: "Supports nesting within `Text`. Temporary component until React Native fixes a layout bug in `Pressable` which used in `TextButton`.",
|
|
1224
1311
|
children: /*#__PURE__*/_jsxs(Row, {
|
|
1225
1312
|
style: styles.alignRowLeft,
|
|
1226
|
-
children: [
|
|
1313
|
+
children: [t52, t55, t58, t61]
|
|
1227
1314
|
})
|
|
1228
1315
|
});
|
|
1229
|
-
$[
|
|
1230
|
-
$[
|
|
1316
|
+
$[86] = styles.alignRowLeft;
|
|
1317
|
+
$[87] = t62;
|
|
1231
1318
|
} else {
|
|
1232
|
-
|
|
1319
|
+
t62 = $[87];
|
|
1233
1320
|
}
|
|
1234
|
-
let
|
|
1235
|
-
if ($[
|
|
1236
|
-
|
|
1321
|
+
let t63;
|
|
1322
|
+
if ($[88] !== isLast || $[89] !== t18 || $[90] !== t21 || $[91] !== t27 || $[92] !== t46 || $[93] !== t62) {
|
|
1323
|
+
t63 = /*#__PURE__*/_jsxs(CollapsableSection, {
|
|
1237
1324
|
title: "Pressables",
|
|
1238
1325
|
isLast: isLast,
|
|
1239
|
-
children: [t8, t18, t21,
|
|
1326
|
+
children: [t8, t18, t21, t27, t46, t49, t62]
|
|
1240
1327
|
});
|
|
1241
|
-
$[
|
|
1242
|
-
$[
|
|
1243
|
-
$[
|
|
1244
|
-
$[
|
|
1245
|
-
$[
|
|
1246
|
-
$[
|
|
1328
|
+
$[88] = isLast;
|
|
1329
|
+
$[89] = t18;
|
|
1330
|
+
$[90] = t21;
|
|
1331
|
+
$[91] = t27;
|
|
1332
|
+
$[92] = t46;
|
|
1333
|
+
$[93] = t62;
|
|
1334
|
+
$[94] = t63;
|
|
1247
1335
|
} else {
|
|
1248
|
-
|
|
1336
|
+
t63 = $[94];
|
|
1249
1337
|
}
|
|
1250
|
-
return
|
|
1338
|
+
return t63;
|
|
1251
1339
|
}
|
|
1252
1340
|
function _temp() {
|
|
1253
1341
|
return Alert.alert("More filters");
|