@planningcenter/chat-react-native 4.4.1-qa-staging.13 → 4.4.1-qa-staging.15
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/conversation/message.d.ts +2 -1
- package/build/components/conversation/message.d.ts.map +1 -1
- package/build/components/conversation/message.js +190 -161
- package/build/components/conversation/message.js.map +1 -1
- package/build/components/conversation/message_list.d.ts.map +1 -1
- package/build/components/conversation/message_list.js +35 -31
- package/build/components/conversation/message_list.js.map +1 -1
- package/build/components/conversation/message_reaction.d.ts +2 -1
- package/build/components/conversation/message_reaction.d.ts.map +1 -1
- package/build/components/conversation/message_reaction.js +67 -60
- package/build/components/conversation/message_reaction.js.map +1 -1
- package/build/components/conversation/messages_disabled_banners.d.ts +7 -5
- package/build/components/conversation/messages_disabled_banners.d.ts.map +1 -1
- package/build/components/conversation/messages_disabled_banners.js +15 -14
- package/build/components/conversation/messages_disabled_banners.js.map +1 -1
- package/build/components/conversation/reply_shadow_message.d.ts.map +1 -1
- package/build/components/conversation/reply_shadow_message.js +84 -83
- package/build/components/conversation/reply_shadow_message.js.map +1 -1
- package/build/components/conversation/system_message.d.ts +2 -1
- package/build/components/conversation/system_message.d.ts.map +1 -1
- package/build/components/conversation/system_message.js +87 -65
- package/build/components/conversation/system_message.js.map +1 -1
- package/build/components/display/filter_dropdown.d.ts +13 -0
- package/build/components/display/filter_dropdown.d.ts.map +1 -0
- package/build/components/display/filter_dropdown.js +188 -0
- package/build/components/display/filter_dropdown.js.map +1 -0
- 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/hooks/use_conversation.d.ts +73 -1
- package/build/hooks/use_conversation.d.ts.map +1 -1
- package/build/hooks/use_conversation.js +122 -3
- package/build/hooks/use_conversation.js.map +1 -1
- package/build/hooks/use_unarchive_conversation_action.d.ts +7 -0
- package/build/hooks/use_unarchive_conversation_action.d.ts.map +1 -0
- package/build/hooks/use_unarchive_conversation_action.js +52 -0
- package/build/hooks/use_unarchive_conversation_action.js.map +1 -0
- package/build/screens/attachment_actions/attachment_actions_screen.d.ts.map +1 -1
- package/build/screens/attachment_actions/attachment_actions_screen.js +84 -61
- package/build/screens/attachment_actions/attachment_actions_screen.js.map +1 -1
- package/build/screens/conversation_details_screen.d.ts.map +1 -1
- package/build/screens/conversation_details_screen.js +487 -393
- package/build/screens/conversation_details_screen.js.map +1 -1
- package/build/screens/conversation_screen.d.ts.map +1 -1
- package/build/screens/conversation_screen.js +12 -9
- package/build/screens/conversation_screen.js.map +1 -1
- package/build/screens/design_system_screen.d.ts.map +1 -1
- package/build/screens/design_system_screen.js +275 -215
- package/build/screens/design_system_screen.js.map +1 -1
- package/build/screens/message_actions_screen.d.ts.map +1 -1
- package/build/screens/message_actions_screen.js +112 -92
- package/build/screens/message_actions_screen.js.map +1 -1
- package/build/types/resources/member_ability.d.ts +2 -0
- package/build/types/resources/member_ability.d.ts.map +1 -1
- package/build/types/resources/member_ability.js.map +1 -1
- package/build/utils/archived_conversation.d.ts +5 -0
- package/build/utils/archived_conversation.d.ts.map +1 -0
- package/build/utils/archived_conversation.js +5 -0
- package/build/utils/archived_conversation.js.map +1 -0
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.d.ts.map +1 -1
- package/build/utils/index.js +1 -0
- package/build/utils/index.js.map +1 -1
- package/build/utils/native_adapters/configuration.d.ts +3 -0
- package/build/utils/native_adapters/configuration.d.ts.map +1 -1
- package/build/utils/native_adapters/configuration.js +3 -0
- package/build/utils/native_adapters/configuration.js.map +1 -1
- package/build/utils/native_adapters/index.d.ts +1 -0
- package/build/utils/native_adapters/index.d.ts.map +1 -1
- package/build/utils/native_adapters/index.js +1 -0
- package/build/utils/native_adapters/index.js.map +1 -1
- package/build/utils/native_adapters/menu.d.ts +40 -0
- package/build/utils/native_adapters/menu.d.ts.map +1 -0
- package/build/utils/native_adapters/menu.js +55 -0
- package/build/utils/native_adapters/menu.js.map +1 -0
- package/package.json +3 -3
- package/src/__tests__/screens/message_actions_screen.test.tsx +65 -2
- package/src/components/conversation/__tests__/message_list.test.tsx +68 -2
- package/src/components/conversation/__tests__/system_message.test.tsx +3 -1
- package/src/components/conversation/message.tsx +11 -14
- package/src/components/conversation/message_list.tsx +9 -1
- package/src/components/conversation/message_reaction.tsx +7 -2
- package/src/components/conversation/messages_disabled_banners.tsx +17 -18
- package/src/components/conversation/reply_shadow_message.tsx +9 -8
- package/src/components/conversation/system_message.tsx +24 -10
- package/src/components/display/__tests__/filter_dropdown.test.tsx +106 -0
- package/src/components/display/filter_dropdown.tsx +123 -0
- package/src/components/display/index.ts +1 -0
- package/src/hooks/__tests__/use_conversation_archive.test.tsx +130 -0
- package/src/hooks/__tests__/use_conversation_jolt_events.test.tsx +74 -0
- package/src/hooks/__tests__/use_unarchive_conversation_action.test.tsx +67 -0
- package/src/hooks/use_conversation.ts +41 -3
- package/src/hooks/use_unarchive_conversation_action.ts +24 -0
- package/src/screens/__tests__/conversation_details_screen.test.tsx +289 -0
- package/src/screens/attachment_actions/__tests__/attachment_actions_screen.test.tsx +72 -0
- package/src/screens/attachment_actions/attachment_actions_screen.tsx +3 -1
- package/src/screens/conversation_details_screen.tsx +78 -14
- package/src/screens/conversation_screen.tsx +3 -1
- package/src/screens/design_system_screen.tsx +26 -0
- package/src/screens/message_actions_screen.tsx +29 -20
- package/src/types/resources/member_ability.ts +2 -0
- package/src/utils/archived_conversation.ts +13 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/native_adapters/__tests__/menu.test.tsx +42 -0
- package/src/utils/native_adapters/configuration.ts +5 -0
- package/src/utils/native_adapters/index.ts +1 -0
- package/src/utils/native_adapters/menu.tsx +68 -0
|
@@ -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, 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, 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';
|
|
@@ -45,6 +45,22 @@ const personChild = {
|
|
|
45
45
|
gender: null
|
|
46
46
|
};
|
|
47
47
|
const buttonPress = () => Alert.alert('Button clicked');
|
|
48
|
+
const filterDropdownOptions = [{
|
|
49
|
+
id: 'all',
|
|
50
|
+
label: 'All conversations'
|
|
51
|
+
}, {
|
|
52
|
+
id: 'groups',
|
|
53
|
+
label: 'Groups'
|
|
54
|
+
}, {
|
|
55
|
+
id: 'teams',
|
|
56
|
+
label: 'Teams'
|
|
57
|
+
}, {
|
|
58
|
+
id: 'dms',
|
|
59
|
+
label: 'DMs'
|
|
60
|
+
}, {
|
|
61
|
+
id: 'unread',
|
|
62
|
+
label: 'Unread'
|
|
63
|
+
}];
|
|
48
64
|
|
|
49
65
|
// =================================
|
|
50
66
|
// ====== Component ================
|
|
@@ -367,12 +383,13 @@ function HeadingTextSection(t0) {
|
|
|
367
383
|
return t11;
|
|
368
384
|
}
|
|
369
385
|
function PressablesSection(t0) {
|
|
370
|
-
const $ = _c(
|
|
386
|
+
const $ = _c(80);
|
|
371
387
|
const {
|
|
372
388
|
isLast
|
|
373
389
|
} = t0;
|
|
374
390
|
const styles = useStyles();
|
|
375
391
|
const [filterSelected, setFilterSelected] = useState("Groups");
|
|
392
|
+
const [dropdownSelected, setDropdownSelected] = useState("all");
|
|
376
393
|
let t1;
|
|
377
394
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
378
395
|
t1 = /*#__PURE__*/_jsxs(Row, {
|
|
@@ -686,17 +703,56 @@ function PressablesSection(t0) {
|
|
|
686
703
|
t18 = $[20];
|
|
687
704
|
}
|
|
688
705
|
let t19;
|
|
706
|
+
if ($[21] !== dropdownSelected) {
|
|
707
|
+
t19 = filterDropdownOptions.find(option => option.id === dropdownSelected)?.label ?? "";
|
|
708
|
+
$[21] = dropdownSelected;
|
|
709
|
+
$[22] = t19;
|
|
710
|
+
} else {
|
|
711
|
+
t19 = $[22];
|
|
712
|
+
}
|
|
689
713
|
let t20;
|
|
714
|
+
if ($[23] !== dropdownSelected || $[24] !== t19) {
|
|
715
|
+
t20 = /*#__PURE__*/_jsx(FilterDropdown, {
|
|
716
|
+
options: filterDropdownOptions,
|
|
717
|
+
selectedId: dropdownSelected,
|
|
718
|
+
onSelect: setDropdownSelected,
|
|
719
|
+
onMoreFilters: _temp,
|
|
720
|
+
triggerLabel: t19
|
|
721
|
+
});
|
|
722
|
+
$[23] = dropdownSelected;
|
|
723
|
+
$[24] = t19;
|
|
724
|
+
$[25] = t20;
|
|
725
|
+
} else {
|
|
726
|
+
t20 = $[25];
|
|
727
|
+
}
|
|
690
728
|
let t21;
|
|
691
|
-
if ($[
|
|
692
|
-
|
|
729
|
+
if ($[26] !== styles.alignRowLeft || $[27] !== t20) {
|
|
730
|
+
t21 = /*#__PURE__*/_jsx(Group, {
|
|
731
|
+
title: "FilterDropdown",
|
|
732
|
+
description: "Trigger that opens the host's native menu of filter options plus a More filters action. Needs a menu adapter.",
|
|
733
|
+
children: /*#__PURE__*/_jsx(Row, {
|
|
734
|
+
style: styles.alignRowLeft,
|
|
735
|
+
children: t20
|
|
736
|
+
})
|
|
737
|
+
});
|
|
738
|
+
$[26] = styles.alignRowLeft;
|
|
739
|
+
$[27] = t20;
|
|
740
|
+
$[28] = t21;
|
|
741
|
+
} else {
|
|
742
|
+
t21 = $[28];
|
|
743
|
+
}
|
|
744
|
+
let t22;
|
|
745
|
+
let t23;
|
|
746
|
+
let t24;
|
|
747
|
+
if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
|
|
748
|
+
t22 = /*#__PURE__*/_jsx(IconButton, {
|
|
693
749
|
onPress: buttonPress,
|
|
694
750
|
name: "general.paperclip",
|
|
695
751
|
accessibilityLabel: "Add attachment",
|
|
696
752
|
accessibilityHint: "Opens your device's image gallary",
|
|
697
753
|
size: "md"
|
|
698
754
|
});
|
|
699
|
-
|
|
755
|
+
t23 = /*#__PURE__*/_jsx(IconButton, {
|
|
700
756
|
onPress: buttonPress,
|
|
701
757
|
name: "general.paperclip",
|
|
702
758
|
accessibilityLabel: "Add attachment",
|
|
@@ -704,7 +760,7 @@ function PressablesSection(t0) {
|
|
|
704
760
|
appearance: "danger",
|
|
705
761
|
size: "lg"
|
|
706
762
|
});
|
|
707
|
-
|
|
763
|
+
t24 = /*#__PURE__*/_jsx(IconButton, {
|
|
708
764
|
onPress: buttonPress,
|
|
709
765
|
name: "general.paperclip",
|
|
710
766
|
accessibilityLabel: "Add attachment",
|
|
@@ -712,17 +768,17 @@ function PressablesSection(t0) {
|
|
|
712
768
|
appearance: "interaction",
|
|
713
769
|
size: "xl"
|
|
714
770
|
});
|
|
715
|
-
$[
|
|
716
|
-
$[
|
|
717
|
-
$[
|
|
771
|
+
$[29] = t22;
|
|
772
|
+
$[30] = t23;
|
|
773
|
+
$[31] = t24;
|
|
718
774
|
} else {
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
775
|
+
t22 = $[29];
|
|
776
|
+
t23 = $[30];
|
|
777
|
+
t24 = $[31];
|
|
722
778
|
}
|
|
723
|
-
let
|
|
724
|
-
if ($[
|
|
725
|
-
|
|
779
|
+
let t25;
|
|
780
|
+
if ($[32] !== styles.customIconButtonColor) {
|
|
781
|
+
t25 = /*#__PURE__*/_jsx(IconButton, {
|
|
726
782
|
onPress: buttonPress,
|
|
727
783
|
name: "general.paperclip",
|
|
728
784
|
accessibilityLabel: "Add attachment",
|
|
@@ -730,39 +786,39 @@ function PressablesSection(t0) {
|
|
|
730
786
|
iconStyle: styles.customIconButtonColor,
|
|
731
787
|
size: "xxl"
|
|
732
788
|
});
|
|
733
|
-
$[
|
|
734
|
-
$[
|
|
789
|
+
$[32] = styles.customIconButtonColor;
|
|
790
|
+
$[33] = t25;
|
|
735
791
|
} else {
|
|
736
|
-
|
|
792
|
+
t25 = $[33];
|
|
737
793
|
}
|
|
738
|
-
let
|
|
739
|
-
if ($[
|
|
740
|
-
|
|
794
|
+
let t26;
|
|
795
|
+
if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
|
|
796
|
+
t26 = /*#__PURE__*/_jsx(IconButton, {
|
|
741
797
|
onPress: buttonPress,
|
|
742
798
|
name: "general.paperclip",
|
|
743
799
|
accessibilityLabel: "Add attachment",
|
|
744
800
|
accessibilityHint: "Opens your device's image gallary",
|
|
745
801
|
size: "xxxl"
|
|
746
802
|
});
|
|
747
|
-
$[
|
|
803
|
+
$[34] = t26;
|
|
748
804
|
} else {
|
|
749
|
-
|
|
805
|
+
t26 = $[34];
|
|
750
806
|
}
|
|
751
|
-
let
|
|
752
|
-
if ($[
|
|
753
|
-
|
|
754
|
-
children: [
|
|
807
|
+
let t27;
|
|
808
|
+
if ($[35] !== t25) {
|
|
809
|
+
t27 = /*#__PURE__*/_jsxs(Row, {
|
|
810
|
+
children: [t22, t23, t24, t25, t26]
|
|
755
811
|
});
|
|
756
|
-
$[
|
|
757
|
-
$[
|
|
812
|
+
$[35] = t25;
|
|
813
|
+
$[36] = t27;
|
|
758
814
|
} else {
|
|
759
|
-
|
|
815
|
+
t27 = $[36];
|
|
760
816
|
}
|
|
761
|
-
let
|
|
762
|
-
let
|
|
763
|
-
let
|
|
764
|
-
if ($[
|
|
765
|
-
|
|
817
|
+
let t28;
|
|
818
|
+
let t29;
|
|
819
|
+
let t30;
|
|
820
|
+
if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
|
|
821
|
+
t28 = /*#__PURE__*/_jsx(IconButton, {
|
|
766
822
|
onPress: buttonPress,
|
|
767
823
|
name: "general.paperclip",
|
|
768
824
|
accessibilityLabel: "Add attachment",
|
|
@@ -770,7 +826,7 @@ function PressablesSection(t0) {
|
|
|
770
826
|
size: "md",
|
|
771
827
|
disabled: true
|
|
772
828
|
});
|
|
773
|
-
|
|
829
|
+
t29 = /*#__PURE__*/_jsx(IconButton, {
|
|
774
830
|
onPress: buttonPress,
|
|
775
831
|
name: "general.paperclip",
|
|
776
832
|
accessibilityLabel: "Add attachment",
|
|
@@ -779,7 +835,7 @@ function PressablesSection(t0) {
|
|
|
779
835
|
size: "lg",
|
|
780
836
|
disabled: true
|
|
781
837
|
});
|
|
782
|
-
|
|
838
|
+
t30 = /*#__PURE__*/_jsx(IconButton, {
|
|
783
839
|
onPress: buttonPress,
|
|
784
840
|
name: "general.paperclip",
|
|
785
841
|
accessibilityLabel: "Add attachment",
|
|
@@ -788,17 +844,17 @@ function PressablesSection(t0) {
|
|
|
788
844
|
size: "xl",
|
|
789
845
|
disabled: true
|
|
790
846
|
});
|
|
791
|
-
$[
|
|
792
|
-
$[
|
|
793
|
-
$[
|
|
847
|
+
$[37] = t28;
|
|
848
|
+
$[38] = t29;
|
|
849
|
+
$[39] = t30;
|
|
794
850
|
} else {
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
851
|
+
t28 = $[37];
|
|
852
|
+
t29 = $[38];
|
|
853
|
+
t30 = $[39];
|
|
798
854
|
}
|
|
799
|
-
let
|
|
800
|
-
if ($[
|
|
801
|
-
|
|
855
|
+
let t31;
|
|
856
|
+
if ($[40] !== styles.customIconButtonColor) {
|
|
857
|
+
t31 = /*#__PURE__*/_jsx(IconButton, {
|
|
802
858
|
onPress: buttonPress,
|
|
803
859
|
name: "general.paperclip",
|
|
804
860
|
accessibilityLabel: "Add attachment",
|
|
@@ -807,14 +863,14 @@ function PressablesSection(t0) {
|
|
|
807
863
|
size: "xxl",
|
|
808
864
|
disabled: true
|
|
809
865
|
});
|
|
810
|
-
$[
|
|
811
|
-
$[
|
|
866
|
+
$[40] = styles.customIconButtonColor;
|
|
867
|
+
$[41] = t31;
|
|
812
868
|
} else {
|
|
813
|
-
|
|
869
|
+
t31 = $[41];
|
|
814
870
|
}
|
|
815
|
-
let
|
|
816
|
-
if ($[
|
|
817
|
-
|
|
871
|
+
let t32;
|
|
872
|
+
if ($[42] === Symbol.for("react.memo_cache_sentinel")) {
|
|
873
|
+
t32 = /*#__PURE__*/_jsx(IconButton, {
|
|
818
874
|
onPress: buttonPress,
|
|
819
875
|
name: "general.paperclip",
|
|
820
876
|
accessibilityLabel: "Add attachment",
|
|
@@ -822,25 +878,25 @@ function PressablesSection(t0) {
|
|
|
822
878
|
size: "xxxl",
|
|
823
879
|
disabled: true
|
|
824
880
|
});
|
|
825
|
-
$[
|
|
881
|
+
$[42] = t32;
|
|
826
882
|
} else {
|
|
827
|
-
|
|
883
|
+
t32 = $[42];
|
|
828
884
|
}
|
|
829
|
-
let
|
|
830
|
-
if ($[
|
|
831
|
-
|
|
832
|
-
children: [
|
|
885
|
+
let t33;
|
|
886
|
+
if ($[43] !== t31) {
|
|
887
|
+
t33 = /*#__PURE__*/_jsxs(Row, {
|
|
888
|
+
children: [t28, t29, t30, t31, t32]
|
|
833
889
|
});
|
|
834
|
-
$[
|
|
835
|
-
$[
|
|
890
|
+
$[43] = t31;
|
|
891
|
+
$[44] = t33;
|
|
836
892
|
} else {
|
|
837
|
-
|
|
893
|
+
t33 = $[44];
|
|
838
894
|
}
|
|
839
|
-
let
|
|
840
|
-
let
|
|
841
|
-
let
|
|
842
|
-
if ($[
|
|
843
|
-
|
|
895
|
+
let t34;
|
|
896
|
+
let t35;
|
|
897
|
+
let t36;
|
|
898
|
+
if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
|
|
899
|
+
t34 = /*#__PURE__*/_jsx(IconButton, {
|
|
844
900
|
onPress: buttonPress,
|
|
845
901
|
name: "general.paperclip",
|
|
846
902
|
accessibilityLabel: "Add attachment",
|
|
@@ -848,7 +904,7 @@ function PressablesSection(t0) {
|
|
|
848
904
|
size: "md",
|
|
849
905
|
loading: true
|
|
850
906
|
});
|
|
851
|
-
|
|
907
|
+
t35 = /*#__PURE__*/_jsx(IconButton, {
|
|
852
908
|
onPress: buttonPress,
|
|
853
909
|
name: "general.paperclip",
|
|
854
910
|
accessibilityLabel: "Add attachment",
|
|
@@ -857,7 +913,7 @@ function PressablesSection(t0) {
|
|
|
857
913
|
size: "lg",
|
|
858
914
|
loading: true
|
|
859
915
|
});
|
|
860
|
-
|
|
916
|
+
t36 = /*#__PURE__*/_jsx(IconButton, {
|
|
861
917
|
onPress: buttonPress,
|
|
862
918
|
name: "general.paperclip",
|
|
863
919
|
accessibilityLabel: "Add attachment",
|
|
@@ -866,17 +922,17 @@ function PressablesSection(t0) {
|
|
|
866
922
|
size: "xl",
|
|
867
923
|
loading: true
|
|
868
924
|
});
|
|
869
|
-
$[
|
|
870
|
-
$[
|
|
871
|
-
$[
|
|
925
|
+
$[45] = t34;
|
|
926
|
+
$[46] = t35;
|
|
927
|
+
$[47] = t36;
|
|
872
928
|
} else {
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
929
|
+
t34 = $[45];
|
|
930
|
+
t35 = $[46];
|
|
931
|
+
t36 = $[47];
|
|
876
932
|
}
|
|
877
|
-
let
|
|
878
|
-
if ($[
|
|
879
|
-
|
|
933
|
+
let t37;
|
|
934
|
+
if ($[48] !== styles.customIconButtonColor) {
|
|
935
|
+
t37 = /*#__PURE__*/_jsx(IconButton, {
|
|
880
936
|
onPress: buttonPress,
|
|
881
937
|
name: "general.paperclip",
|
|
882
938
|
accessibilityLabel: "Add attachment",
|
|
@@ -885,14 +941,14 @@ function PressablesSection(t0) {
|
|
|
885
941
|
size: "xxl",
|
|
886
942
|
loading: true
|
|
887
943
|
});
|
|
888
|
-
$[
|
|
889
|
-
$[
|
|
944
|
+
$[48] = styles.customIconButtonColor;
|
|
945
|
+
$[49] = t37;
|
|
890
946
|
} else {
|
|
891
|
-
|
|
947
|
+
t37 = $[49];
|
|
892
948
|
}
|
|
893
|
-
let
|
|
894
|
-
if ($[
|
|
895
|
-
|
|
949
|
+
let t38;
|
|
950
|
+
if ($[50] === Symbol.for("react.memo_cache_sentinel")) {
|
|
951
|
+
t38 = /*#__PURE__*/_jsx(IconButton, {
|
|
896
952
|
onPress: buttonPress,
|
|
897
953
|
name: "general.paperclip",
|
|
898
954
|
accessibilityLabel: "Add attachment",
|
|
@@ -900,37 +956,37 @@ function PressablesSection(t0) {
|
|
|
900
956
|
size: "xxxl",
|
|
901
957
|
loading: true
|
|
902
958
|
});
|
|
903
|
-
$[
|
|
959
|
+
$[50] = t38;
|
|
904
960
|
} else {
|
|
905
|
-
|
|
961
|
+
t38 = $[50];
|
|
906
962
|
}
|
|
907
|
-
let
|
|
908
|
-
if ($[
|
|
909
|
-
|
|
910
|
-
children: [
|
|
963
|
+
let t39;
|
|
964
|
+
if ($[51] !== t37) {
|
|
965
|
+
t39 = /*#__PURE__*/_jsxs(Row, {
|
|
966
|
+
children: [t34, t35, t36, t37, t38]
|
|
911
967
|
});
|
|
912
|
-
$[
|
|
913
|
-
$[
|
|
968
|
+
$[51] = t37;
|
|
969
|
+
$[52] = t39;
|
|
914
970
|
} else {
|
|
915
|
-
|
|
971
|
+
t39 = $[52];
|
|
916
972
|
}
|
|
917
|
-
let
|
|
918
|
-
if ($[
|
|
919
|
-
|
|
973
|
+
let t40;
|
|
974
|
+
if ($[53] !== t27 || $[54] !== t33 || $[55] !== t39) {
|
|
975
|
+
t40 = /*#__PURE__*/_jsxs(Group, {
|
|
920
976
|
title: "IconButton",
|
|
921
977
|
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.",
|
|
922
|
-
children: [
|
|
978
|
+
children: [t27, t33, t39]
|
|
923
979
|
});
|
|
924
|
-
$[
|
|
925
|
-
$[
|
|
926
|
-
$[
|
|
927
|
-
$[
|
|
980
|
+
$[53] = t27;
|
|
981
|
+
$[54] = t33;
|
|
982
|
+
$[55] = t39;
|
|
983
|
+
$[56] = t40;
|
|
928
984
|
} else {
|
|
929
|
-
|
|
985
|
+
t40 = $[56];
|
|
930
986
|
}
|
|
931
|
-
let
|
|
932
|
-
if ($[
|
|
933
|
-
|
|
987
|
+
let t41;
|
|
988
|
+
if ($[57] === Symbol.for("react.memo_cache_sentinel")) {
|
|
989
|
+
t41 = /*#__PURE__*/_jsxs(Row, {
|
|
934
990
|
children: [/*#__PURE__*/_jsx(TextButton, {
|
|
935
991
|
onPress: buttonPress,
|
|
936
992
|
children: "Default"
|
|
@@ -948,13 +1004,13 @@ function PressablesSection(t0) {
|
|
|
948
1004
|
children: "Default"
|
|
949
1005
|
})]
|
|
950
1006
|
});
|
|
951
|
-
$[
|
|
1007
|
+
$[57] = t41;
|
|
952
1008
|
} else {
|
|
953
|
-
|
|
1009
|
+
t41 = $[57];
|
|
954
1010
|
}
|
|
955
|
-
let
|
|
956
|
-
if ($[
|
|
957
|
-
|
|
1011
|
+
let t42;
|
|
1012
|
+
if ($[58] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1013
|
+
t42 = /*#__PURE__*/_jsxs(Row, {
|
|
958
1014
|
children: [/*#__PURE__*/_jsx(TextButton, {
|
|
959
1015
|
onPress: buttonPress,
|
|
960
1016
|
appearance: "danger",
|
|
@@ -976,16 +1032,16 @@ function PressablesSection(t0) {
|
|
|
976
1032
|
children: "Danger"
|
|
977
1033
|
})]
|
|
978
1034
|
});
|
|
979
|
-
$[
|
|
1035
|
+
$[58] = t42;
|
|
980
1036
|
} else {
|
|
981
|
-
|
|
1037
|
+
t42 = $[58];
|
|
982
1038
|
}
|
|
983
|
-
let
|
|
984
|
-
if ($[
|
|
985
|
-
|
|
1039
|
+
let t43;
|
|
1040
|
+
if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1041
|
+
t43 = /*#__PURE__*/_jsxs(Group, {
|
|
986
1042
|
title: "TextButton",
|
|
987
1043
|
description: "Pressable text with default & danger appearance options. Can be disabled and accept `Text` variance props.",
|
|
988
|
-
children: [
|
|
1044
|
+
children: [t41, t42, /*#__PURE__*/_jsxs(Row, {
|
|
989
1045
|
children: [/*#__PURE__*/_jsx(TextButton, {
|
|
990
1046
|
onPress: buttonPress,
|
|
991
1047
|
disabled: true,
|
|
@@ -1008,189 +1064,193 @@ function PressablesSection(t0) {
|
|
|
1008
1064
|
})]
|
|
1009
1065
|
})]
|
|
1010
1066
|
});
|
|
1011
|
-
$[
|
|
1067
|
+
$[59] = t43;
|
|
1012
1068
|
} else {
|
|
1013
|
-
|
|
1069
|
+
t43 = $[59];
|
|
1014
1070
|
}
|
|
1015
|
-
let
|
|
1016
|
-
if ($[
|
|
1017
|
-
|
|
1071
|
+
let t44;
|
|
1072
|
+
if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1073
|
+
t44 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1018
1074
|
onPress: buttonPress,
|
|
1019
1075
|
children: "default button text"
|
|
1020
1076
|
});
|
|
1021
|
-
$[
|
|
1077
|
+
$[60] = t44;
|
|
1022
1078
|
} else {
|
|
1023
|
-
|
|
1079
|
+
t44 = $[60];
|
|
1024
1080
|
}
|
|
1025
|
-
let
|
|
1026
|
-
if ($[
|
|
1027
|
-
|
|
1081
|
+
let t45;
|
|
1082
|
+
if ($[61] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1083
|
+
t45 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1028
1084
|
onPress: buttonPress,
|
|
1029
1085
|
appearance: "danger",
|
|
1030
1086
|
children: "danger button text"
|
|
1031
1087
|
});
|
|
1032
|
-
$[
|
|
1088
|
+
$[61] = t45;
|
|
1033
1089
|
} else {
|
|
1034
|
-
|
|
1090
|
+
t45 = $[61];
|
|
1035
1091
|
}
|
|
1036
|
-
let
|
|
1037
|
-
if ($[
|
|
1038
|
-
|
|
1039
|
-
children: ["This text is next to", " ",
|
|
1092
|
+
let t46;
|
|
1093
|
+
if ($[62] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1094
|
+
t46 = /*#__PURE__*/_jsxs(Text, {
|
|
1095
|
+
children: ["This text is next to", " ", t44, " Lorem ipsum dolor", " ", t45, " ", "consectetur", " ", /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1040
1096
|
onPress: buttonPress,
|
|
1041
1097
|
disabled: true,
|
|
1042
1098
|
children: "disabled button text"
|
|
1043
1099
|
}), " ", "elit."]
|
|
1044
1100
|
});
|
|
1045
|
-
$[
|
|
1101
|
+
$[62] = t46;
|
|
1046
1102
|
} else {
|
|
1047
|
-
|
|
1103
|
+
t46 = $[62];
|
|
1048
1104
|
}
|
|
1049
|
-
let
|
|
1050
|
-
if ($[
|
|
1051
|
-
|
|
1105
|
+
let t47;
|
|
1106
|
+
if ($[63] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1107
|
+
t47 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1052
1108
|
variant: "secondary",
|
|
1053
1109
|
onPress: buttonPress,
|
|
1054
1110
|
children: "default button text"
|
|
1055
1111
|
});
|
|
1056
|
-
$[
|
|
1112
|
+
$[63] = t47;
|
|
1057
1113
|
} else {
|
|
1058
|
-
|
|
1114
|
+
t47 = $[63];
|
|
1059
1115
|
}
|
|
1060
|
-
let
|
|
1061
|
-
if ($[
|
|
1062
|
-
|
|
1116
|
+
let t48;
|
|
1117
|
+
if ($[64] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1118
|
+
t48 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1063
1119
|
variant: "secondary",
|
|
1064
1120
|
onPress: buttonPress,
|
|
1065
1121
|
appearance: "danger",
|
|
1066
1122
|
children: "danger button text"
|
|
1067
1123
|
});
|
|
1068
|
-
$[
|
|
1124
|
+
$[64] = t48;
|
|
1069
1125
|
} else {
|
|
1070
|
-
|
|
1126
|
+
t48 = $[64];
|
|
1071
1127
|
}
|
|
1072
|
-
let
|
|
1073
|
-
if ($[
|
|
1074
|
-
|
|
1128
|
+
let t49;
|
|
1129
|
+
if ($[65] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1130
|
+
t49 = /*#__PURE__*/_jsxs(Text, {
|
|
1075
1131
|
variant: "secondary",
|
|
1076
|
-
children: ["This text is next to", " ",
|
|
1132
|
+
children: ["This text is next to", " ", t47, " ", "Lorem ipsum dolor", " ", t48, " ", "consectetur", " ", /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1077
1133
|
variant: "secondary",
|
|
1078
1134
|
onPress: buttonPress,
|
|
1079
1135
|
disabled: true,
|
|
1080
1136
|
children: "disabled button text"
|
|
1081
1137
|
}), " ", "elit."]
|
|
1082
1138
|
});
|
|
1083
|
-
$[
|
|
1139
|
+
$[65] = t49;
|
|
1084
1140
|
} else {
|
|
1085
|
-
|
|
1141
|
+
t49 = $[65];
|
|
1086
1142
|
}
|
|
1087
|
-
let
|
|
1088
|
-
if ($[
|
|
1089
|
-
|
|
1143
|
+
let t50;
|
|
1144
|
+
if ($[66] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1145
|
+
t50 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1090
1146
|
variant: "tertiary",
|
|
1091
1147
|
onPress: buttonPress,
|
|
1092
1148
|
children: "default button text"
|
|
1093
1149
|
});
|
|
1094
|
-
$[
|
|
1150
|
+
$[66] = t50;
|
|
1095
1151
|
} else {
|
|
1096
|
-
|
|
1152
|
+
t50 = $[66];
|
|
1097
1153
|
}
|
|
1098
|
-
let
|
|
1099
|
-
if ($[
|
|
1100
|
-
|
|
1154
|
+
let t51;
|
|
1155
|
+
if ($[67] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1156
|
+
t51 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1101
1157
|
variant: "tertiary",
|
|
1102
1158
|
onPress: buttonPress,
|
|
1103
1159
|
appearance: "danger",
|
|
1104
1160
|
children: "danger button text"
|
|
1105
1161
|
});
|
|
1106
|
-
$[
|
|
1162
|
+
$[67] = t51;
|
|
1107
1163
|
} else {
|
|
1108
|
-
|
|
1164
|
+
t51 = $[67];
|
|
1109
1165
|
}
|
|
1110
|
-
let
|
|
1111
|
-
if ($[
|
|
1112
|
-
|
|
1166
|
+
let t52;
|
|
1167
|
+
if ($[68] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1168
|
+
t52 = /*#__PURE__*/_jsxs(Text, {
|
|
1113
1169
|
variant: "tertiary",
|
|
1114
|
-
children: ["This text is next to", " ",
|
|
1170
|
+
children: ["This text is next to", " ", t50, " ", "Lorem ipsum dolor", " ", t51, " ", "consectetur", " ", /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1115
1171
|
variant: "tertiary",
|
|
1116
1172
|
onPress: buttonPress,
|
|
1117
1173
|
disabled: true,
|
|
1118
1174
|
children: "disabled button text"
|
|
1119
1175
|
}), " ", "elit."]
|
|
1120
1176
|
});
|
|
1121
|
-
$[
|
|
1177
|
+
$[68] = t52;
|
|
1122
1178
|
} else {
|
|
1123
|
-
|
|
1179
|
+
t52 = $[68];
|
|
1124
1180
|
}
|
|
1125
|
-
let
|
|
1126
|
-
if ($[
|
|
1127
|
-
|
|
1181
|
+
let t53;
|
|
1182
|
+
if ($[69] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1183
|
+
t53 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1128
1184
|
variant: "footnote",
|
|
1129
1185
|
onPress: buttonPress,
|
|
1130
1186
|
children: "default button text"
|
|
1131
1187
|
});
|
|
1132
|
-
$[
|
|
1188
|
+
$[69] = t53;
|
|
1133
1189
|
} else {
|
|
1134
|
-
|
|
1190
|
+
t53 = $[69];
|
|
1135
1191
|
}
|
|
1136
|
-
let
|
|
1137
|
-
if ($[
|
|
1138
|
-
|
|
1192
|
+
let t54;
|
|
1193
|
+
if ($[70] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1194
|
+
t54 = /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1139
1195
|
variant: "footnote",
|
|
1140
1196
|
onPress: buttonPress,
|
|
1141
1197
|
appearance: "danger",
|
|
1142
1198
|
children: "danger button text"
|
|
1143
1199
|
});
|
|
1144
|
-
$[
|
|
1200
|
+
$[70] = t54;
|
|
1145
1201
|
} else {
|
|
1146
|
-
|
|
1202
|
+
t54 = $[70];
|
|
1147
1203
|
}
|
|
1148
|
-
let
|
|
1149
|
-
if ($[
|
|
1150
|
-
|
|
1204
|
+
let t55;
|
|
1205
|
+
if ($[71] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1206
|
+
t55 = /*#__PURE__*/_jsxs(Text, {
|
|
1151
1207
|
variant: "footnote",
|
|
1152
|
-
children: ["This text is next to", " ",
|
|
1208
|
+
children: ["This text is next to", " ", t53, " ", "Lorem ipsum dolor", " ", t54, " ", "consectetur", " ", /*#__PURE__*/_jsx(TextInlineButton, {
|
|
1153
1209
|
variant: "footnote",
|
|
1154
1210
|
onPress: buttonPress,
|
|
1155
1211
|
disabled: true,
|
|
1156
1212
|
children: "disabled button text"
|
|
1157
1213
|
}), " ", "elit."]
|
|
1158
1214
|
});
|
|
1159
|
-
$[
|
|
1215
|
+
$[71] = t55;
|
|
1160
1216
|
} else {
|
|
1161
|
-
|
|
1217
|
+
t55 = $[71];
|
|
1162
1218
|
}
|
|
1163
|
-
let
|
|
1164
|
-
if ($[
|
|
1165
|
-
|
|
1219
|
+
let t56;
|
|
1220
|
+
if ($[72] !== styles.alignRowLeft) {
|
|
1221
|
+
t56 = /*#__PURE__*/_jsx(Group, {
|
|
1166
1222
|
title: "TextInlineButton",
|
|
1167
1223
|
description: "Supports nesting within `Text`. Temporary component until React Native fixes a layout bug in `Pressable` which used in `TextButton`.",
|
|
1168
1224
|
children: /*#__PURE__*/_jsxs(Row, {
|
|
1169
1225
|
style: styles.alignRowLeft,
|
|
1170
|
-
children: [
|
|
1226
|
+
children: [t46, t49, t52, t55]
|
|
1171
1227
|
})
|
|
1172
1228
|
});
|
|
1173
|
-
$[
|
|
1174
|
-
$[
|
|
1229
|
+
$[72] = styles.alignRowLeft;
|
|
1230
|
+
$[73] = t56;
|
|
1175
1231
|
} else {
|
|
1176
|
-
|
|
1232
|
+
t56 = $[73];
|
|
1177
1233
|
}
|
|
1178
|
-
let
|
|
1179
|
-
if ($[
|
|
1180
|
-
|
|
1234
|
+
let t57;
|
|
1235
|
+
if ($[74] !== isLast || $[75] !== t18 || $[76] !== t21 || $[77] !== t40 || $[78] !== t56) {
|
|
1236
|
+
t57 = /*#__PURE__*/_jsxs(CollapsableSection, {
|
|
1181
1237
|
title: "Pressables",
|
|
1182
1238
|
isLast: isLast,
|
|
1183
|
-
children: [t8, t18,
|
|
1239
|
+
children: [t8, t18, t21, t40, t43, t56]
|
|
1184
1240
|
});
|
|
1185
|
-
$[
|
|
1186
|
-
$[
|
|
1187
|
-
$[
|
|
1188
|
-
$[
|
|
1189
|
-
$[
|
|
1241
|
+
$[74] = isLast;
|
|
1242
|
+
$[75] = t18;
|
|
1243
|
+
$[76] = t21;
|
|
1244
|
+
$[77] = t40;
|
|
1245
|
+
$[78] = t56;
|
|
1246
|
+
$[79] = t57;
|
|
1190
1247
|
} else {
|
|
1191
|
-
|
|
1248
|
+
t57 = $[79];
|
|
1192
1249
|
}
|
|
1193
|
-
return
|
|
1250
|
+
return t57;
|
|
1251
|
+
}
|
|
1252
|
+
function _temp() {
|
|
1253
|
+
return Alert.alert("More filters");
|
|
1194
1254
|
}
|
|
1195
1255
|
function HapticsSection(t0) {
|
|
1196
1256
|
const $ = _c(5);
|
|
@@ -1216,19 +1276,19 @@ function HapticsSection(t0) {
|
|
|
1216
1276
|
children: /*#__PURE__*/_jsxs(Row, {
|
|
1217
1277
|
children: [/*#__PURE__*/_jsx(HapticButton, {
|
|
1218
1278
|
title: "Impact Light",
|
|
1219
|
-
onPress:
|
|
1279
|
+
onPress: _temp2
|
|
1220
1280
|
}), /*#__PURE__*/_jsx(HapticButton, {
|
|
1221
1281
|
title: "Impact Medium",
|
|
1222
|
-
onPress:
|
|
1282
|
+
onPress: _temp3
|
|
1223
1283
|
}), /*#__PURE__*/_jsx(HapticButton, {
|
|
1224
1284
|
title: "Impact Heavy",
|
|
1225
|
-
onPress:
|
|
1285
|
+
onPress: _temp4
|
|
1226
1286
|
}), /*#__PURE__*/_jsx(HapticButton, {
|
|
1227
1287
|
title: "Rigid",
|
|
1228
|
-
onPress:
|
|
1288
|
+
onPress: _temp5
|
|
1229
1289
|
}), /*#__PURE__*/_jsx(HapticButton, {
|
|
1230
1290
|
title: "Soft",
|
|
1231
|
-
onPress:
|
|
1291
|
+
onPress: _temp6
|
|
1232
1292
|
})]
|
|
1233
1293
|
})
|
|
1234
1294
|
});
|
|
@@ -1244,13 +1304,13 @@ function HapticsSection(t0) {
|
|
|
1244
1304
|
children: /*#__PURE__*/_jsxs(Row, {
|
|
1245
1305
|
children: [/*#__PURE__*/_jsx(HapticButton, {
|
|
1246
1306
|
title: "Notification Success",
|
|
1247
|
-
onPress:
|
|
1307
|
+
onPress: _temp7
|
|
1248
1308
|
}), /*#__PURE__*/_jsx(HapticButton, {
|
|
1249
1309
|
title: "Notification Warning",
|
|
1250
|
-
onPress:
|
|
1310
|
+
onPress: _temp8
|
|
1251
1311
|
}), /*#__PURE__*/_jsx(HapticButton, {
|
|
1252
1312
|
title: "Notification Error",
|
|
1253
|
-
onPress:
|
|
1313
|
+
onPress: _temp9
|
|
1254
1314
|
})]
|
|
1255
1315
|
})
|
|
1256
1316
|
});
|
|
@@ -1272,28 +1332,28 @@ function HapticsSection(t0) {
|
|
|
1272
1332
|
}
|
|
1273
1333
|
return t4;
|
|
1274
1334
|
}
|
|
1275
|
-
function
|
|
1335
|
+
function _temp9() {
|
|
1276
1336
|
return Haptic.notificationError();
|
|
1277
1337
|
}
|
|
1278
|
-
function
|
|
1338
|
+
function _temp8() {
|
|
1279
1339
|
return Haptic.notificationWarning();
|
|
1280
1340
|
}
|
|
1281
|
-
function
|
|
1341
|
+
function _temp7() {
|
|
1282
1342
|
return Haptic.notificationSuccess();
|
|
1283
1343
|
}
|
|
1284
|
-
function
|
|
1344
|
+
function _temp6() {
|
|
1285
1345
|
return Haptic.soft();
|
|
1286
1346
|
}
|
|
1287
|
-
function
|
|
1347
|
+
function _temp5() {
|
|
1288
1348
|
return Haptic.rigid();
|
|
1289
1349
|
}
|
|
1290
|
-
function
|
|
1350
|
+
function _temp4() {
|
|
1291
1351
|
return Haptic.impactHeavy();
|
|
1292
1352
|
}
|
|
1293
|
-
function
|
|
1353
|
+
function _temp3() {
|
|
1294
1354
|
return Haptic.impactMedium();
|
|
1295
1355
|
}
|
|
1296
|
-
function
|
|
1356
|
+
function _temp2() {
|
|
1297
1357
|
return Haptic.impactLight();
|
|
1298
1358
|
}
|
|
1299
1359
|
function ImageIconsSection(t0) {
|