@planningcenter/chat-react-native 3.30.0-rc.6 → 3.30.0-rc.7
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/hooks/groups/use_group_members_for_new_conversation.d.ts +2 -1
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts.map +1 -1
- package/build/hooks/groups/use_group_members_for_new_conversation.js +4 -2
- package/build/hooks/groups/use_group_members_for_new_conversation.js.map +1 -1
- package/build/hooks/services/use_team_members_for_new_conversation.d.ts.map +1 -1
- package/build/hooks/services/use_team_members_for_new_conversation.js +1 -0
- package/build/hooks/services/use_team_members_for_new_conversation.js.map +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/screens/conversation_new/components/groups_form.d.ts.map +1 -1
- package/build/screens/conversation_new/components/groups_form.js +9 -4
- package/build/screens/conversation_new/components/groups_form.js.map +1 -1
- package/build/screens/design_system_screen.d.ts.map +1 -1
- package/build/screens/design_system_screen.js +2 -0
- package/build/screens/design_system_screen.js.map +1 -1
- package/build/types/resources/groups/groups_member_resource_with_person.d.ts +1 -0
- package/build/types/resources/groups/groups_member_resource_with_person.d.ts.map +1 -1
- package/build/types/resources/groups/groups_member_resource_with_person.js.map +1 -1
- package/build/types/resources/member.d.ts +1 -0
- package/build/types/resources/member.d.ts.map +1 -1
- package/build/types/resources/member.js.map +1 -1
- package/build/utils/upload_uri.d.ts +1 -1
- package/package.json +2 -2
- package/src/hooks/groups/use_group_members_for_new_conversation.ts +10 -2
- package/src/hooks/services/use_team_members_for_new_conversation.ts +1 -0
- package/src/index.tsx +1 -1
- package/src/screens/conversation_new/components/groups_form.tsx +11 -3
- package/src/screens/design_system_screen.tsx +2 -0
- package/src/types/resources/groups/groups_member_resource_with_person.ts +1 -0
- package/src/types/resources/member.ts +1 -0
|
@@ -12,8 +12,9 @@ export type GroupMembersForNewConversationResult = Omit<UseSuspensePaginatorResu
|
|
|
12
12
|
* This is specifically for the new conversation screen because we assign
|
|
13
13
|
* the "Conversation owner" badge to the current person.
|
|
14
14
|
*/
|
|
15
|
-
export declare function useGroupMembersForNewConversation({ id }: {
|
|
15
|
+
export declare function useGroupMembersForNewConversation({ id, gender, }: {
|
|
16
16
|
id: number;
|
|
17
|
+
gender: string | null;
|
|
17
18
|
}): {
|
|
18
19
|
data: MemberResource[];
|
|
19
20
|
adultMembers: MemberResource[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_group_members_for_new_conversation.d.ts","sourceRoot":"","sources":["../../../src/hooks/groups/use_group_members_for_new_conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iEAAiE,CAAA;AAE3G,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAE1D,KAAK,0BAA0B,CAAC,CAAC,SAAS,cAAc,IAAI,UAAU,CACpE,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAC/B,CAAA;AAED,MAAM,MAAM,oCAAoC,GAAG,IAAI,CACrD,0BAA0B,CAAC,yBAAyB,CAAC,EAAE,8CAA8C;AACrG,MAAM,CACP,GAAG;IACF,IAAI,EAAE,cAAc,EAAE,CAAA;IACtB,YAAY,EAAE,cAAc,EAAE,CAAA;IAC9B,YAAY,EAAE,cAAc,EAAE,CAAA;CAC/B,CAAA;AAED;;;GAGG;AACH,wBAAgB,iCAAiC,CAAC,EAAE,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"use_group_members_for_new_conversation.d.ts","sourceRoot":"","sources":["../../../src/hooks/groups/use_group_members_for_new_conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iEAAiE,CAAA;AAE3G,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAE1D,KAAK,0BAA0B,CAAC,CAAC,SAAS,cAAc,IAAI,UAAU,CACpE,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAC/B,CAAA;AAED,MAAM,MAAM,oCAAoC,GAAG,IAAI,CACrD,0BAA0B,CAAC,yBAAyB,CAAC,EAAE,8CAA8C;AACrG,MAAM,CACP,GAAG;IACF,IAAI,EAAE,cAAc,EAAE,CAAA;IACtB,YAAY,EAAE,cAAc,EAAE,CAAA;IAC9B,YAAY,EAAE,cAAc,EAAE,CAAA;CAC/B,CAAA;AAED;;;GAGG;AACH,wBAAgB,iCAAiC,CAAC,EAChD,EAAE,EACF,MAAM,GACP,EAAE;IACD,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCA"}
|
|
@@ -4,7 +4,7 @@ import { useSuspensePaginator } from '../use_suspense_api';
|
|
|
4
4
|
* This is specifically for the new conversation screen because we assign
|
|
5
5
|
* the "Conversation owner" badge to the current person.
|
|
6
6
|
*/
|
|
7
|
-
export function useGroupMembersForNewConversation({ id }) {
|
|
7
|
+
export function useGroupMembersForNewConversation({ id, gender, }) {
|
|
8
8
|
const currentPerson = useCurrentPerson();
|
|
9
9
|
const response = useSuspensePaginator({
|
|
10
10
|
url: `/me/groups/${id}/memberships`,
|
|
@@ -13,8 +13,9 @@ export function useGroupMembersForNewConversation({ id }) {
|
|
|
13
13
|
include: ['person'],
|
|
14
14
|
fields: {
|
|
15
15
|
Membership: ['person, role'],
|
|
16
|
-
Person: ['avatar_url', 'name', 'first_name', 'last_name', 'child'],
|
|
16
|
+
Person: ['avatar_url', 'name', 'first_name', 'last_name', 'child', 'gender'],
|
|
17
17
|
},
|
|
18
|
+
...(gender ? { where: { gender } } : {}),
|
|
18
19
|
},
|
|
19
20
|
app: 'groups',
|
|
20
21
|
});
|
|
@@ -26,6 +27,7 @@ export function useGroupMembersForNewConversation({ id }) {
|
|
|
26
27
|
avatar: person.avatarUrl,
|
|
27
28
|
badges: buildBadges(membership, currentPerson.id),
|
|
28
29
|
child: person.child,
|
|
30
|
+
gender: person.gender,
|
|
29
31
|
id: +person.id,
|
|
30
32
|
name: `${person.firstName} ${person.lastName}`,
|
|
31
33
|
source: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_group_members_for_new_conversation.js","sourceRoot":"","sources":["../../../src/hooks/groups/use_group_members_for_new_conversation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAe1D;;;GAGG;AACH,MAAM,UAAU,iCAAiC,CAAC,
|
|
1
|
+
{"version":3,"file":"use_group_members_for_new_conversation.js","sourceRoot":"","sources":["../../../src/hooks/groups/use_group_members_for_new_conversation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAe1D;;;GAGG;AACH,MAAM,UAAU,iCAAiC,CAAC,EAChD,EAAE,EACF,MAAM,GAIP;IACC,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAA;IACxC,MAAM,QAAQ,GAAG,oBAAoB,CAA4B;QAC/D,GAAG,EAAE,cAAc,EAAE,cAAc;QACnC,IAAI,EAAE;YACJ,OAAO,EAAE,GAAG;YACZ,OAAO,EAAE,CAAC,QAAQ,CAAC;YACnB,MAAM,EAAE;gBACN,UAAU,EAAE,CAAC,cAAc,CAAC;gBAC5B,MAAM,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,CAAC;aAC7E;YACD,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,MAAM,EAA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,EAAE,QAAQ,EAAE,CAAC,CAAA;IAClC,CAAC;IACD,IAAI,MAAM,CAAC,EAAE,KAAK,eAAe,EAAE,CAAC;QAClC,MAAM,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC,CAAA;IAC9C,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC","sourcesContent":["import { MemberBadge, MemberResource, ResourceObject } from '../../types'\nimport { GroupsGroupMemberResource } from '../../types/resources/groups/groups_member_resource_with_person'\nimport { useCurrentPerson } from '../use_current_person'\nimport { useSuspensePaginator } from '../use_suspense_api'\n\ntype UseSuspensePaginatorResult<T extends ResourceObject> = ReturnType<\n typeof useSuspensePaginator<T>\n>\n\nexport type GroupMembersForNewConversationResult = Omit<\n UseSuspensePaginatorResult<GroupsGroupMemberResource>, // We are passing our own \"members\" data shape\n 'data'\n> & {\n data: MemberResource[]\n adultMembers: MemberResource[]\n childMembers: MemberResource[]\n}\n\n/**\n * This is specifically for the new conversation screen because we assign\n * the \"Conversation owner\" badge to the current person.\n */\nexport function useGroupMembersForNewConversation({\n id,\n gender,\n}: {\n id: number\n gender: string | null\n}) {\n const currentPerson = useCurrentPerson()\n const response = useSuspensePaginator<GroupsGroupMemberResource>({\n url: `/me/groups/${id}/memberships`,\n data: {\n perPage: 100,\n include: ['person'],\n fields: {\n Membership: ['person, role'],\n Person: ['avatar_url', 'name', 'first_name', 'last_name', 'child', 'gender'],\n },\n ...(gender ? { where: { gender } } : {}),\n },\n app: 'groups',\n })\n\n const { data: memberships = [] } = response\n const members: MemberResource[] = memberships.map(membership => {\n const { person } = membership\n return {\n type: 'Member',\n avatar: person.avatarUrl,\n badges: buildBadges(membership, currentPerson.id),\n child: person.child,\n gender: person.gender,\n id: +person.id,\n name: `${person.firstName} ${person.lastName}`,\n source: [],\n role: membership.role,\n }\n })\n const adultMembers = members.filter(member => !member.child)\n const childMembers = members.filter(member => member.child)\n\n return {\n ...response,\n data: members,\n adultMembers,\n childMembers,\n }\n}\n\nfunction buildBadges(\n membership: GroupsGroupMemberResource,\n currentPersonId: number\n): MemberBadge[] {\n const { person } = membership\n const badges = []\n if (membership.role === 'leader') {\n badges.push({ title: 'Leader' })\n }\n if (person.id === currentPersonId) {\n badges.push({ title: 'Conversation owner' })\n }\n return badges\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_team_members_for_new_conversation.d.ts","sourceRoot":"","sources":["../../../src/hooks/services/use_team_members_for_new_conversation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,aAAa,CAAA;AAGxF,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,wBAAgB,gCAAgC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"use_team_members_for_new_conversation.d.ts","sourceRoot":"","sources":["../../../src/hooks/services/use_team_members_for_new_conversation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAA0B,MAAM,aAAa,CAAA;AAGxF,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,wBAAgB,gCAAgC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_team_members_for_new_conversation.js","sourceRoot":"","sources":["../../../src/hooks/services/use_team_members_for_new_conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAOtC,MAAM,UAAU,gCAAgC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAS;IACzE,MAAM,MAAM,GAAG,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,CAAA;IAE7E,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,SAAS,CAAqB;QACtD,GAAG,EAAE,OAAO;QACZ,IAAI,EAAE;YACJ,GAAG,MAAM;YACT,MAAM,EAAE;gBACN,IAAI,EAAE,CAAC,QAAQ,CAAC;aACjB;SACF;QACD,GAAG,EAAE,UAAU;KAChB,CAAC,CAAA;IAEF,MAAM,MAAM,GAAG,IAAI,EAAE,MAAM,IAAI,sBAAsB,CAAA;IAErD,MAAM,OAAO,GAAqB,OAAO,CAAC,GAAG,EAAE;QAC7C,OAAO,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YAC3B,GAAG,MAAM;YACT,IAAI,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"use_team_members_for_new_conversation.js","sourceRoot":"","sources":["../../../src/hooks/services/use_team_members_for_new_conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAOtC,MAAM,UAAU,gCAAgC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAS;IACzE,MAAM,MAAM,GAAG,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,CAAA;IAE7E,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,SAAS,CAAqB;QACtD,GAAG,EAAE,OAAO;QACZ,IAAI,EAAE;YACJ,GAAG,MAAM;YACT,MAAM,EAAE;gBACN,IAAI,EAAE,CAAC,QAAQ,CAAC;aACjB;SACF;QACD,GAAG,EAAE,UAAU;KAChB,CAAC,CAAA;IAEF,MAAM,MAAM,GAAG,IAAI,EAAE,MAAM,IAAI,sBAAsB,CAAA;IAErD,MAAM,OAAO,GAAqB,OAAO,CAAC,GAAG,EAAE;QAC7C,OAAO,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YAC3B,GAAG,MAAM;YACT,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,IAAI;SACb,CAAC,CAAC,CAAA;IACL,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAA;IAEZ,OAAO;QACL,OAAO;QACP,GAAG,IAAI;KACR,CAAA;AACH,CAAC;AAED,MAAM,sBAAsB,GAA6B,EAAE,CAAA","sourcesContent":["import { isNil, omitBy } from 'lodash'\nimport { useMemo } from 'react'\nimport { MemberResource, TeamPeopleResource, TeamPersonResponseItem } from '../../types'\nimport { useApiGet } from '../use_api'\n\ninterface Props {\n teamIds: number[]\n planId?: number\n}\n\nexport function useTeamMembersForNewConversation({ teamIds, planId }: Props) {\n const params = omitBy({ team_id: teamIds.join(','), plan_id: planId }, isNil)\n\n const { data, ...rest } = useApiGet<TeamPeopleResource>({\n url: '/chat',\n data: {\n ...params,\n fields: {\n Chat: ['people'],\n },\n },\n app: 'services',\n })\n\n const people = data?.people || stableEmptyPersonArray\n\n const members: MemberResource[] = useMemo(() => {\n return people.map(person => ({\n ...person,\n type: 'Member',\n gender: null,\n }))\n }, [people])\n\n return {\n members,\n ...rest,\n }\n}\n\nconst stableEmptyPersonArray: TeamPersonResponseItem[] = []\n"]}
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAA;AAE7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACvF,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAA,CAAC,sBAAsB;AAC7G,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAA8B,GAAG,EAAE,MAAM,SAAS,CAAA;AAC1F,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA","sourcesContent":["import '
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAA;AAE7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACvF,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAA,CAAC,sBAAsB;AAC7G,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAA8B,GAAG,EAAE,MAAM,SAAS,CAAA;AAC1F,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA","sourcesContent":["import './icons/font_awesome'\n\nexport { GroupConversations } from './components'\nexport { ApiProvider, chatQueryClient, useFocusManager } from './contexts/api_provider'\nexport * from './contexts/chat_context'\nexport * from './contexts/session_context'\nexport * from './navigation'\nexport { ScreenLayout } from './navigation/screenLayout'\nexport * from './screens'\nexport { AgeCheckUnderageScreen } from './screens/age_check/age_check_underage_screen' // TODO: add to barrel\nexport * from './types'\nexport { platformFontWeightBold, Session, TemporaryDefaultColorsType, Uri } from './utils'\nexport * from './utils/client'\nexport * from './utils/native_adapters'\nexport { default as Event } from './polyfills/events/Event'\nexport { CustomEvent } from './polyfills/events/CustomEvent'\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups_form.d.ts","sourceRoot":"","sources":["../../../../src/screens/conversation_new/components/groups_form.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiD,MAAM,OAAO,CAAA;AAarE,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAA;AAOjE,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,UAAU,qCAAsC,eAAe,
|
|
1
|
+
{"version":3,"file":"groups_form.d.ts","sourceRoot":"","sources":["../../../../src/screens/conversation_new/components/groups_form.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiD,MAAM,OAAO,CAAA;AAarE,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAA;AAOjE,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,UAAU,qCAAsC,eAAe,sBA6F3E,CAAA"}
|
|
@@ -27,8 +27,12 @@ export const GroupsForm = ({ groupId, chat_group_graph_id }) => {
|
|
|
27
27
|
},
|
|
28
28
|
app: 'groups',
|
|
29
29
|
});
|
|
30
|
-
const groupMemberships = useGroupMembersForNewConversation({ id: groupId });
|
|
31
30
|
const activeGenderId = genderFilterEnabled ? genderId : null;
|
|
31
|
+
const activeGenderValue = genderFilterEnabled ? genderValue : null;
|
|
32
|
+
const groupMemberships = useGroupMembersForNewConversation({
|
|
33
|
+
id: groupId,
|
|
34
|
+
gender: activeGenderValue,
|
|
35
|
+
});
|
|
32
36
|
const handleGenderToggle = (enabled) => {
|
|
33
37
|
const displayLabel = genderValue ? genderDisplayLabel(genderValue) : '';
|
|
34
38
|
const defaultTitle = `${group.name} (${displayLabel})`;
|
|
@@ -57,11 +61,11 @@ export const GroupsForm = ({ groupId, chat_group_graph_id }) => {
|
|
|
57
61
|
onSuccess: redirectToConversation,
|
|
58
62
|
});
|
|
59
63
|
return (<KeyboardView>
|
|
60
|
-
<FormList memberData={groupMemberships.adultMembers} loadingMore={groupMemberships.isFetchingNextPage} onEndReached={groupMemberships.fetchNextPage} FormContent={<FormContent group={group} title={title} setTitle={setTitle} genderFilterAvailable={genderFilterAvailable} genderFilterEnabled={genderFilterEnabled} genderValue={genderValue} genderFetching={genderFetching} onGenderToggle={handleGenderToggle} groupMemberships={groupMemberships}/>}/>
|
|
64
|
+
<FormList memberData={groupMemberships.adultMembers} loadingMore={groupMemberships.isFetchingNextPage} onEndReached={groupMemberships.fetchNextPage} FormContent={<FormContent group={group} title={title} setTitle={setTitle} genderFilterAvailable={genderFilterAvailable} genderFilterEnabled={genderFilterEnabled} genderValue={genderValue} genderFetching={genderFetching} onGenderToggle={handleGenderToggle} groupMemberships={groupMemberships} filteredMemberCount={groupMemberships.adultMembers.length}/>}/>
|
|
61
65
|
<ActionButton disabled={!title || isPending} title="Start Conversation" onPress={() => handleSave()} infoText="Conversation will be automatically updated if any members are added or removed from this group."/>
|
|
62
66
|
</KeyboardView>);
|
|
63
67
|
};
|
|
64
|
-
function FormContent({ group, title, setTitle, genderFilterAvailable, genderFilterEnabled, genderValue, genderFetching, onGenderToggle, groupMemberships, }) {
|
|
68
|
+
function FormContent({ group, title, setTitle, genderFilterAvailable, genderFilterEnabled, genderValue, genderFetching, onGenderToggle, groupMemberships, filteredMemberCount, }) {
|
|
65
69
|
const styles = useStyles();
|
|
66
70
|
const inputRef = useRef(null);
|
|
67
71
|
const currentPerson = useCurrentPerson();
|
|
@@ -70,7 +74,8 @@ function FormContent({ group, title, setTitle, genderFilterAvailable, genderFilt
|
|
|
70
74
|
const isLeader = myGroupsMembership?.role === 'leader';
|
|
71
75
|
const childMembers = groupMemberships.childMembers;
|
|
72
76
|
const hasChildren = childMembers.length > 0;
|
|
73
|
-
const
|
|
77
|
+
const displayCount = genderFilterEnabled ? filteredMemberCount : membershipsCount;
|
|
78
|
+
const memberHeaderLabel = `${pluralize(displayCount, 'member')} selected`;
|
|
74
79
|
const showMemberError = groupMemberships.isError;
|
|
75
80
|
const handleTitleSectionPress = useCallback(() => {
|
|
76
81
|
inputRef.current?.focus();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups_form.js","sourceRoot":"","sources":["../../../../src/screens/conversation_new/components/groups_form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,0B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A,CAAC,eAAe,IAAI,CAClB,CAAC,MAAM,CACL,UAAU,CAAC,OAAO,CAClB,WAAW,CAAC,yEAAyE,CACrF,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,EACrB,CACH,CACH;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAA;AACH,CAAC;AAED,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAA;IAC7B,MAAM,cAAc,GAAG,EAAE,CAAA;IACzB,MAAM,YAAY,GAAG,CAAC,CAAA;IAEtB,OAAO,UAAU,CAAC,MAAM,CAAC;QACvB,WAAW,EAAE;YACX,aAAa,EAAE,cAAc;YAC7B,IAAI,EAAE,CAAC;SACR;QACD,SAAS,EAAE;YACT,OAAO,EAAE,cAAc;YACvB,aAAa,EAAE,KAAK;YACpB,GAAG,EAAE,CAAC;SACP;QACD,SAAS,EAAE;YACT,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,CAAC;SACR;QACD,YAAY,EAAE;YACZ,OAAO,EAAE,cAAc;YACvB,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC;gBAC7B,GAAG,EAAE,cAAc;gBACnB,OAAO,EAAE,cAAc,GAAG,YAAY;aACvC,CAAC;YACF,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC;gBACnB,GAAG,EAAE,CAAC;gBACN,OAAO,EAAE,CAAC;aACX,CAAC;SACH;QACD,UAAU,EAAE;YACV,QAAQ,EAAE,EAAE;YACZ,KAAK,EAAE,MAAM,CAAC,uBAAuB;SACtC;QACD,aAAa,EAAE;YACb,OAAO,EAAE,cAAc;YACvB,aAAa,EAAE,CAAC;SACjB;QACD,MAAM,EAAE;YACN,SAAS,EAAE,EAAE;SACd;KACF,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import { StackActions, useNavigation } from '@react-navigation/native'\nimport React, { useCallback, useMemo, useRef, useState } from 'react'\nimport { Platform, Pressable, StyleSheet, TextInput, View } from 'react-native'\nimport { Banner, ChildNotice, Heading, Text } from '../../../components'\nimport { ActionButton } from '../../../components/display/action_button'\nimport { KeyboardView } from '../../../components/display/keyboard_view'\nimport { useCurrentPerson, useSuspenseGet, useTheme } from '../../../hooks'\nimport {\n GroupMembersForNewConversationResult,\n useGroupMembersForNewConversation,\n} from '../../../hooks/groups/use_group_members_for_new_conversation'\nimport { useGroupsConversationCreate } from '../../../hooks/groups/use_groups_conversation_create'\nimport { useMyGender } from '../../../hooks/use_my_gender'\nimport { GroupsGroupResource } from '../../../types'\nimport { GraphId } from '../../../types/resources/group_resource'\nimport { pluralize } from '../../../utils'\nimport { genderDisplayLabel } from '../../../utils/gender_display_label'\nimport { Haptic } from '../../../utils/native_adapters'\nimport { Divider, FormList } from './form_list'\nimport { GenderFilterToggle } from './gender_filter_toggle'\n\ntype GroupsFormProps = {\n groupId: number\n chat_group_graph_id?: GraphId\n}\n\nexport const GroupsForm = ({ groupId, chat_group_graph_id }: GroupsFormProps) => {\n const navigation = useNavigation()\n const [title, setTitle] = useState('')\n const [genderFilterEnabled, setGenderFilterEnabled] = useState(false)\n const {\n isFeatureEnabled: genderFilterAvailable,\n genderId,\n genderValue,\n isFetching: genderFetching,\n } = useMyGender()\n const { data: group } = useSuspenseGet<GroupsGroupResource>({\n url: `/me/groups/${groupId}`,\n data: {\n fields: {\n Group: [],\n },\n },\n app: 'groups',\n })\n\n const groupMemberships = useGroupMembersForNewConversation({ id: groupId })\n\n const activeGenderId = genderFilterEnabled ? genderId : null\n\n const handleGenderToggle = (enabled: boolean) => {\n const displayLabel = genderValue ? genderDisplayLabel(genderValue) : ''\n const defaultTitle = `${group.name} (${displayLabel})`\n const shouldAutoPopulateTitle = enabled && genderValue && title === ''\n const shouldClearAutoPopulatedTitle = !enabled && title === defaultTitle\n\n setGenderFilterEnabled(enabled)\n\n if (shouldAutoPopulateTitle) {\n setTitle(defaultTitle)\n } else if (shouldClearAutoPopulatedTitle) {\n setTitle('')\n }\n }\n\n const redirectToConversation = useCallback(\n (conversationId: number) => {\n // navigate to the conversation screen\n navigation.dispatch(\n StackActions.popTo('Conversation', {\n conversation_id: conversationId,\n chat_group_graph_id,\n })\n )\n Haptic.notificationSuccess()\n },\n [chat_group_graph_id, navigation]\n )\n\n const { mutate: handleSave, isPending } = useGroupsConversationCreate({\n groupId,\n title,\n genderId: activeGenderId,\n onSuccess: redirectToConversation,\n })\n\n return (\n <KeyboardView>\n <FormList\n memberData={groupMemberships.adultMembers}\n loadingMore={groupMemberships.isFetchingNextPage}\n onEndReached={groupMemberships.fetchNextPage}\n FormContent={\n <FormContent\n group={group}\n title={title}\n setTitle={setTitle}\n genderFilterAvailable={genderFilterAvailable}\n genderFilterEnabled={genderFilterEnabled}\n genderValue={genderValue}\n genderFetching={genderFetching}\n onGenderToggle={handleGenderToggle}\n groupMemberships={groupMemberships}\n />\n }\n />\n <ActionButton\n disabled={!title || isPending}\n title=\"Start Conversation\"\n onPress={() => handleSave()}\n infoText=\"Conversation will be automatically updated if any members are added or removed from this group.\"\n />\n </KeyboardView>\n )\n}\n\ninterface FormContentProps {\n group: GroupsGroupResource\n title: string\n setTitle: (title: string) => void\n genderFilterAvailable: boolean\n genderFilterEnabled: boolean\n genderValue: string | null\n genderFetching: boolean\n onGenderToggle: (enabled: boolean) => void\n groupMemberships: GroupMembersForNewConversationResult\n}\n\nfunction FormContent({\n group,\n title,\n setTitle,\n genderFilterAvailable,\n genderFilterEnabled,\n genderValue,\n genderFetching,\n onGenderToggle,\n groupMemberships,\n}: FormContentProps) {\n const styles = useStyles()\n const inputRef = useRef<TextInput>(null)\n const currentPerson = useCurrentPerson()\n const { name, membershipsCount } = group\n\n const myGroupsMembership = useMemo(\n () => groupMemberships.data.find(m => m.id === currentPerson.id),\n [groupMemberships.data, currentPerson.id]\n )\n const isLeader = myGroupsMembership?.role === 'leader'\n\n const childMembers = groupMemberships.childMembers\n const hasChildren = childMembers.length > 0\n const memberHeaderLabel = `${pluralize(membershipsCount, 'member')} selected`\n\n const showMemberError = groupMemberships.isError\n\n const handleTitleSectionPress = useCallback(() => {\n inputRef.current?.focus()\n }, [])\n\n return (\n <View style={styles.formContent}>\n <View style={styles.toSection}>\n <Heading variant=\"h3\">To:</Heading>\n <Text style={styles.groupName}>{name}</Text>\n </View>\n <Divider />\n <Pressable style={styles.titleSection} onPress={handleTitleSectionPress}>\n <Heading variant=\"h3\">Title</Heading>\n <TextInput\n placeholder=\"Topic of conversation (required)\"\n value={title}\n onChangeText={setTitle}\n style={styles.titleInput}\n autoFocus={true}\n ref={inputRef}\n />\n </Pressable>\n <Divider />\n {genderFilterAvailable && (\n <>\n <GenderFilterToggle\n genderValue={genderValue}\n isFetching={genderFetching}\n enabled={genderFilterEnabled}\n onToggle={onGenderToggle}\n />\n <Divider />\n </>\n )}\n <View style={styles.memberSection}>\n <Heading variant=\"h3\">{memberHeaderLabel}</Heading>\n {hasChildren && (\n <ChildNotice childMembers={childMembers} showMembers={isLeader} style={styles.banner} />\n )}\n {showMemberError && (\n <Banner\n appearance=\"error\"\n description=\"There was an issue loading group members, please refresh and try again.\"\n style={styles.banner}\n />\n )}\n </View>\n </View>\n )\n}\n\nconst useStyles = () => {\n const { colors } = useTheme()\n const sectionPadding = 16\n const inputPadding = 8\n\n return StyleSheet.create({\n formContent: {\n paddingBottom: sectionPadding,\n flex: 1,\n },\n toSection: {\n padding: sectionPadding,\n flexDirection: 'row',\n gap: 8,\n },\n groupName: {\n fontSize: 18,\n flex: 1,\n },\n titleSection: {\n padding: sectionPadding,\n paddingBottom: Platform.select({\n ios: sectionPadding,\n android: sectionPadding - inputPadding,\n }),\n gap: Platform.select({\n ios: 8,\n android: 0,\n }),\n },\n titleInput: {\n fontSize: 18,\n color: colors.textColorDefaultPrimary,\n },\n memberSection: {\n padding: sectionPadding,\n paddingBottom: 0,\n },\n banner: {\n marginTop: 16,\n },\n })\n}\n"]}
|
|
1
|
+
{"version":3,"file":"groups_form.js","source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AC,MAAM,CAAC;gBACnB,GAAG,EAAE,CAAC;gBACN,OAAO,EAAE,CAAC;aACX,CAAC;SACH;QACD,UAAU,EAAE;YACV,QAAQ,EAAE,EAAE;YACZ,KAAK,EAAE,MAAM,CAAC,uBAAuB;SACtC;QACD,aAAa,EAAE;YACb,OAAO,EAAE,cAAc;YACvB,aAAa,EAAE,CAAC;SACjB;QACD,MAAM,EAAE;YACN,SAAS,EAAE,EAAE;SACd;KACF,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import { StackActions, useNavigation } from '@react-navigation/native'\nimport React, { useCallback, useMemo, useRef, useState } from 'react'\nimport { Platform, Pressable, StyleSheet, TextInput, View } from 'react-native'\nimport { Banner, ChildNotice, Heading, Text } from '../../../components'\nimport { ActionButton } from '../../../components/display/action_button'\nimport { KeyboardView } from '../../../components/display/keyboard_view'\nimport { useCurrentPerson, useSuspenseGet, useTheme } from '../../../hooks'\nimport {\n GroupMembersForNewConversationResult,\n useGroupMembersForNewConversation,\n} from '../../../hooks/groups/use_group_members_for_new_conversation'\nimport { useGroupsConversationCreate } from '../../../hooks/groups/use_groups_conversation_create'\nimport { useMyGender } from '../../../hooks/use_my_gender'\nimport { GroupsGroupResource } from '../../../types'\nimport { GraphId } from '../../../types/resources/group_resource'\nimport { pluralize } from '../../../utils'\nimport { genderDisplayLabel } from '../../../utils/gender_display_label'\nimport { Haptic } from '../../../utils/native_adapters'\nimport { Divider, FormList } from './form_list'\nimport { GenderFilterToggle } from './gender_filter_toggle'\n\ntype GroupsFormProps = {\n groupId: number\n chat_group_graph_id?: GraphId\n}\n\nexport const GroupsForm = ({ groupId, chat_group_graph_id }: GroupsFormProps) => {\n const navigation = useNavigation()\n const [title, setTitle] = useState('')\n const [genderFilterEnabled, setGenderFilterEnabled] = useState(false)\n const {\n isFeatureEnabled: genderFilterAvailable,\n genderId,\n genderValue,\n isFetching: genderFetching,\n } = useMyGender()\n const { data: group } = useSuspenseGet<GroupsGroupResource>({\n url: `/me/groups/${groupId}`,\n data: {\n fields: {\n Group: [],\n },\n },\n app: 'groups',\n })\n\n const activeGenderId = genderFilterEnabled ? genderId : null\n const activeGenderValue = genderFilterEnabled ? genderValue : null\n\n const groupMemberships = useGroupMembersForNewConversation({\n id: groupId,\n gender: activeGenderValue,\n })\n\n const handleGenderToggle = (enabled: boolean) => {\n const displayLabel = genderValue ? genderDisplayLabel(genderValue) : ''\n const defaultTitle = `${group.name} (${displayLabel})`\n const shouldAutoPopulateTitle = enabled && genderValue && title === ''\n const shouldClearAutoPopulatedTitle = !enabled && title === defaultTitle\n\n setGenderFilterEnabled(enabled)\n\n if (shouldAutoPopulateTitle) {\n setTitle(defaultTitle)\n } else if (shouldClearAutoPopulatedTitle) {\n setTitle('')\n }\n }\n\n const redirectToConversation = useCallback(\n (conversationId: number) => {\n // navigate to the conversation screen\n navigation.dispatch(\n StackActions.popTo('Conversation', {\n conversation_id: conversationId,\n chat_group_graph_id,\n })\n )\n Haptic.notificationSuccess()\n },\n [chat_group_graph_id, navigation]\n )\n\n const { mutate: handleSave, isPending } = useGroupsConversationCreate({\n groupId,\n title,\n genderId: activeGenderId,\n onSuccess: redirectToConversation,\n })\n\n return (\n <KeyboardView>\n <FormList\n memberData={groupMemberships.adultMembers}\n loadingMore={groupMemberships.isFetchingNextPage}\n onEndReached={groupMemberships.fetchNextPage}\n FormContent={\n <FormContent\n group={group}\n title={title}\n setTitle={setTitle}\n genderFilterAvailable={genderFilterAvailable}\n genderFilterEnabled={genderFilterEnabled}\n genderValue={genderValue}\n genderFetching={genderFetching}\n onGenderToggle={handleGenderToggle}\n groupMemberships={groupMemberships}\n filteredMemberCount={groupMemberships.adultMembers.length}\n />\n }\n />\n <ActionButton\n disabled={!title || isPending}\n title=\"Start Conversation\"\n onPress={() => handleSave()}\n infoText=\"Conversation will be automatically updated if any members are added or removed from this group.\"\n />\n </KeyboardView>\n )\n}\n\ninterface FormContentProps {\n group: GroupsGroupResource\n title: string\n setTitle: (title: string) => void\n genderFilterAvailable: boolean\n genderFilterEnabled: boolean\n genderValue: string | null\n genderFetching: boolean\n onGenderToggle: (enabled: boolean) => void\n groupMemberships: GroupMembersForNewConversationResult\n filteredMemberCount: number\n}\n\nfunction FormContent({\n group,\n title,\n setTitle,\n genderFilterAvailable,\n genderFilterEnabled,\n genderValue,\n genderFetching,\n onGenderToggle,\n groupMemberships,\n filteredMemberCount,\n}: FormContentProps) {\n const styles = useStyles()\n const inputRef = useRef<TextInput>(null)\n const currentPerson = useCurrentPerson()\n const { name, membershipsCount } = group\n\n const myGroupsMembership = useMemo(\n () => groupMemberships.data.find(m => m.id === currentPerson.id),\n [groupMemberships.data, currentPerson.id]\n )\n const isLeader = myGroupsMembership?.role === 'leader'\n\n const childMembers = groupMemberships.childMembers\n const hasChildren = childMembers.length > 0\n const displayCount = genderFilterEnabled ? filteredMemberCount : membershipsCount\n const memberHeaderLabel = `${pluralize(displayCount, 'member')} selected`\n\n const showMemberError = groupMemberships.isError\n\n const handleTitleSectionPress = useCallback(() => {\n inputRef.current?.focus()\n }, [])\n\n return (\n <View style={styles.formContent}>\n <View style={styles.toSection}>\n <Heading variant=\"h3\">To:</Heading>\n <Text style={styles.groupName}>{name}</Text>\n </View>\n <Divider />\n <Pressable style={styles.titleSection} onPress={handleTitleSectionPress}>\n <Heading variant=\"h3\">Title</Heading>\n <TextInput\n placeholder=\"Topic of conversation (required)\"\n value={title}\n onChangeText={setTitle}\n style={styles.titleInput}\n autoFocus={true}\n ref={inputRef}\n />\n </Pressable>\n <Divider />\n {genderFilterAvailable && (\n <>\n <GenderFilterToggle\n genderValue={genderValue}\n isFetching={genderFetching}\n enabled={genderFilterEnabled}\n onToggle={onGenderToggle}\n />\n <Divider />\n </>\n )}\n <View style={styles.memberSection}>\n <Heading variant=\"h3\">{memberHeaderLabel}</Heading>\n {hasChildren && (\n <ChildNotice childMembers={childMembers} showMembers={isLeader} style={styles.banner} />\n )}\n {showMemberError && (\n <Banner\n appearance=\"error\"\n description=\"There was an issue loading group members, please refresh and try again.\"\n style={styles.banner}\n />\n )}\n </View>\n </View>\n )\n}\n\nconst useStyles = () => {\n const { colors } = useTheme()\n const sectionPadding = 16\n const inputPadding = 8\n\n return StyleSheet.create({\n formContent: {\n paddingBottom: sectionPadding,\n flex: 1,\n },\n toSection: {\n padding: sectionPadding,\n flexDirection: 'row',\n gap: 8,\n },\n groupName: {\n fontSize: 18,\n flex: 1,\n },\n titleSection: {\n padding: sectionPadding,\n paddingBottom: Platform.select({\n ios: sectionPadding,\n android: sectionPadding - inputPadding,\n }),\n gap: Platform.select({\n ios: 8,\n android: 0,\n }),\n },\n titleInput: {\n fontSize: 18,\n color: colors.textColorDefaultPrimary,\n },\n memberSection: {\n padding: sectionPadding,\n paddingBottom: 0,\n },\n banner: {\n marginTop: 16,\n },\n })\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design_system_screen.d.ts","sourceRoot":"","sources":["../../src/screens/design_system_screen.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"design_system_screen.d.ts","sourceRoot":"","sources":["../../src/screens/design_system_screen.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAmFvC,wBAAgB,kBAAkB,sBAmBjC"}
|
|
@@ -35,6 +35,7 @@ const personAdult = {
|
|
|
35
35
|
avatar: URL.avatar,
|
|
36
36
|
badges: [{ title: 'Conversation owner' }, { title: 'Leader' }],
|
|
37
37
|
child: false,
|
|
38
|
+
gender: null,
|
|
38
39
|
};
|
|
39
40
|
const personChild = {
|
|
40
41
|
id: 2,
|
|
@@ -43,6 +44,7 @@ const personChild = {
|
|
|
43
44
|
avatar: URL.two_avatars[1],
|
|
44
45
|
badges: [],
|
|
45
46
|
child: true,
|
|
47
|
+
gender: null,
|
|
46
48
|
};
|
|
47
49
|
const buttonPress = () => Alert.alert('Button clicked');
|
|
48
50
|
// =================================
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design_system_screen.js","sourceRoot":"","sources":["../../src/screens/design_system_screen.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAE7E,OAAO,EACL,MAAM,EACN,WAAW,EACX,KAAK,EACL,MAAM,EACN,iBAAiB,EACjB,MAAM,EACN,YAAY,EACZ,OAAO,EACP,IAAI,EACJ,UAAU,EACV,KAAK,EACL,MAAM,EACN,OAAO,EACP,MAAM,EACN,IAAI,EACJ,UAAU,EACV,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAA;AACvF,OAAO,eAAe,MAAM,0CAA0C,CAAA;AACtE,OAAO,UAAU,MAAM,+CAA+C,CAAA;AACtE,OAAO,EAAE,kCAAkC,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACvE,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,wBAAwB,EACxB,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AAEpC,MAAM,GAAG,GAAG;IACV,KAAK,EAAE,uCAAuC;IAC9C,MAAM,EAAE,oBAAoB;IAC5B,MAAM,EAAE,kCAAkC;IAC1C,eAAe,EAAE,kEAAkE;IACnF,WAAW,EAAE,CAAC,kCAAkC,EAAE,kCAAkC,CAAC;IACrF,aAAa,EAAE;QACb,kCAAkC;QAClC,kCAAkC;QAClC,kCAAkC;KACnC;IACD,YAAY,EAAE;QACZ,kCAAkC;QAClC,kCAAkC;QAClC,kCAAkC;QAClC,kCAAkC;KACnC;CACF,CAAA;AAED,MA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;YAC/B,UAAU,EAAE,QAAQ;YACpB,eAAe,EAAE,EAAE;SACpB;QACD,eAAe,EAAE;YACf,aAAa,EAAE,EAAE;YACjB,GAAG,EAAE,EAAE;SACR;QACD,GAAG,EAAE;YACH,GAAG,EAAE,EAAE;YACP,aAAa,EAAE,KAAK;YACpB,UAAU,EAAE,QAAQ;YACpB,cAAc,EAAE,QAAQ;YACxB,QAAQ,EAAE,MAAM;SACjB;QACD,MAAM,EAAE;YACN,GAAG,EAAE,EAAE;SACR;QACD,YAAY,EAAE;YACZ,UAAU,EAAE,QAAQ;SACrB;QACD,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;SACR;QACD,SAAS,EAAE;YACT,GAAG,EAAE,EAAE;SACR;QACD,YAAY,EAAE;YACZ,UAAU,EAAE,wBAAwB;SACrC;QACD,YAAY,EAAE;YACZ,cAAc,EAAE,YAAY;SAC7B;QACD,KAAK,EAAE;YACL,GAAG,EAAE,EAAE;SACR;QACD,YAAY,EAAE;YACZ,GAAG,EAAE,CAAC;SACP;QACD,KAAK,EAAE;YACL,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,GAAG;SACZ;QACD,IAAI,EAAE;YACJ,QAAQ,EAAE,EAAE;YACZ,KAAK,EAAE,MAAM,CAAC,yBAAyB;SACxC;QACD,qBAAqB,EAAE;YACrB,KAAK,EAAE,QAAQ;SAChB;KACF,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import type { IconName } from '@fortawesome/fontawesome-svg-core'\nimport { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome'\nimport React, { useState } from 'react'\nimport { Alert, Pressable, ScrollView, StyleSheet, View } from 'react-native'\nimport type { ViewStyle } from 'react-native'\nimport {\n Avatar,\n AvatarGroup,\n Badge,\n Banner,\n BannerCollapsible,\n Button,\n ToggleButton,\n Heading,\n Icon,\n IconButton,\n Image,\n Person,\n Spinner,\n Switch,\n Text,\n TextButton,\n TextInlineButton,\n ImageAttachmentPreview,\n} from '../components/display'\nimport { VideoAttachmentPreview } from '../components/display/video_attachment_preview'\nimport BannerPrimitive from '../components/primitive/banner_primitive'\nimport BlankState from '../components/primitive/blank_state_primitive'\nimport { useInteractionGhostBackgroundColor, useTheme } from '../hooks'\nimport {\n MAX_FONT_SIZE_MULTIPLIER,\n platformPressedOpacityStyle,\n platformFontWeightMedium,\n Haptic,\n} from '../utils'\n\n// =================================\n// ====== Docs Utils ===============\n// =================================\n\nconst URL = {\n image: 'https://picsum.photos/seed/picsum/200',\n broken: 'https://broken.url',\n avatar: 'https://i.pravatar.cc/200?img=22',\n avatar_fallback: 'https://avatars.planningcenteronline.com/uploads/initials/PR.png',\n two_avatars: ['https://i.pravatar.cc/200?img=22', 'https://i.pravatar.cc/200?img=23'],\n three_avatars: [\n 'https://i.pravatar.cc/200?img=22',\n 'https://i.pravatar.cc/200?img=23',\n 'https://i.pravatar.cc/200?img=24',\n ],\n four_avatars: [\n 'https://i.pravatar.cc/200?img=30',\n 'https://i.pravatar.cc/200?img=29',\n 'https://i.pravatar.cc/200?img=28',\n 'https://i.pravatar.cc/200?img=27',\n ],\n}\n\nconst personAdult = {\n id: 1,\n type: 'Member' as const,\n name: 'John Doe',\n avatar: URL.avatar,\n badges: [{ title: 'Conversation owner' }, { title: 'Leader' }],\n child: false,\n}\n\nconst personChild = {\n id: 2,\n type: 'Member' as const,\n name: 'Kid McChild',\n avatar: URL.two_avatars[1],\n badges: [],\n child: true,\n}\n\nconst buttonPress = () => Alert.alert('Button clicked')\n\n// =================================\n// ====== Component ================\n// =================================\n\nexport function DesignSystemScreen() {\n const styles = useStyles()\n\n return (\n <ScrollView contentContainerStyle={styles.container} style={styles.scrollView}>\n <ThemeSection />\n {/* TODO: Enable & update when we install @planningcenter/tapestry */}\n {/* <TokensSection /> */}\n <IndicatorsSection />\n <HeadingTextSection />\n <PressablesSection />\n <HapticsSection />\n <ImageIconsSection />\n <FormControlsSection />\n <StatusComponentsSection />\n <FontAwesomeIconsSection />\n <MiscComponentsSection isLast />\n </ScrollView>\n )\n}\n\n// =================================\n// ====== Sections =================\n// =================================\n\ninterface SectionProps {\n isLast?: boolean\n}\n\nfunction ThemeSection({ isLast }: SectionProps) {\n return (\n <CollapsableSection title=\"Theme\" isLast={isLast}>\n <TextGroup>\n <Text>There are four main parts to our theming system…</Text>\n <TextRow>\n <Heading variant=\"h3\">Default theme</Heading>\n <Text>\n Start at `src/utils/theme` when adding new theme values or checking what target apps\n have access to. The file has more instructions and examples.\n </Text>\n <Text>At a high level, it provides…</Text>\n <TextListItem label=\"1.\">\n Access to consuming app targets of what theme values that they can be customized.\n </TextListItem>\n <TextListItem label=\"2.\">\n Fallback values for our components to use if the values weren't overriden.\n </TextListItem>\n </TextRow>\n <TextRow>\n <Heading variant=\"h3\">Customizing the theme</Heading>\n <Text>\n Apps can override any default theme value by passing a `theme` object to our\n `ChatProvider` that holds a `theme` and a `colorScheme`.\n </Text>\n <Text>\n Currently types can be enforced by setting the parent theme object to\n `CreateChatThemeProps`.\n </Text>\n <Text variant=\"footnote\">\n Example setup: `apps/sandbox/src/context/chat_context_provider.tsx`\n </Text>\n </TextRow>\n <TextRow>\n <Heading variant=\"h3\">Merged theme</Heading>\n <Text>\n In `src/contexts/chat_context.tsx` we merge the default theme and any custom values\n coming from a product target with the `useCreateChatTheme` hook. It creates a single\n `ChatTheme` type.\n </Text>\n </TextRow>\n <TextRow>\n <Heading variant=\"h3\">Using theme values</Heading>\n <Text>\n Inside of our own `chat-react-native` components we can access the merged `ChatTheme`\n object via our own `useTheme` hook.\n </Text>\n <Text variant=\"footnote\">Example setup: `src/components/display/button.tsx`</Text>\n </TextRow>\n </TextGroup>\n </CollapsableSection>\n )\n}\n\n// function TokensSection({ isLast }: SectionProps) {\n// return (\n// <CollapsableSection title=\"Tokens\" isLast={isLast}>\n// <TextGroup>\n// <TextRow>\n// <Heading variant=\"h3\">What are they?</Heading>\n// <Text>\n// Tokens are UX approved CSS values that we can use to style our UI in a consistent way.\n// (e.g. colors, spacing amounts, and font weights.)\n// </Text>\n// </TextRow>\n// <TextRow>\n// <Heading variant=\"h3\">Where do they come from?</Heading>\n// <Text>\n// Tokens primarily come from our internal `@planningcenter/tapestry` package. However, at\n// this time the package only support light mode colors, so Chat uses a workaround.\n// </Text>\n// <Text>Color-based tokens are infused into our theming system with two local files…</Text>\n// <TextListItem label=\"1. `src/vendor/tapestry/tokens`:\">\n// Primitive color values are stored* here. Primitives capture light or dark mode values,\n// but don't take into account the devices's colors scheme.\n// </TextListItem>\n// <TextListItem label=\"2. `src/vendor/tapestry/alias_tokens_color_map`:\">\n// Alias tokens reference the primitive color values token file* in light and dark mode\n// specfic objects. Our theming system then selects the right color to use based on the\n// device's color scheme.\n// </TextListItem>\n// <Text variant=\"footnote\">\n// *If available, reference the color from the Tapestry package instead.\n// </Text>\n// </TextRow>\n// <TextRow>\n// <Heading variant=\"h3\">How do we use them?</Heading>\n// <Text>There are two places to reference tokens at this time…</Text>\n// <TextListItem label=\"• Color tokens:\">\n// Reference them from our internal `useTheme` hook to ensure the correct light or dark\n// mode color token is used.\n// </TextListItem>\n// <TextListItem label=\"• All other tokens:\">\n// Use the `computedToken` function from `@planningcenter/tapestry` by passing it a string\n// with the token's name. This function provides Typescript support and maps to the token's\n// raw CSS value. There is another function called `token`, but it maps to CSS custom\n// properties which React Native doesn't support.\n// </TextListItem>\n// </TextRow>\n// </TextGroup>\n// </CollapsableSection>\n// )\n// }\n\nfunction IndicatorsSection({ isLast }: SectionProps) {\n return (\n <CollapsableSection title=\"Indicators\" isLast={isLast}>\n <Group\n title=\"Spinner\"\n description=\"Loading indicators that can be used within or close to atomic components. Not intended for full-screen loading.\"\n >\n <Row>\n <Spinner size={24} />\n </Row>\n </Group>\n </CollapsableSection>\n )\n}\n\nfunction HeadingTextSection({ isLast }: SectionProps) {\n const styles = useStyles()\n\n return (\n <CollapsableSection title=\"Heading & Text\" isLast={isLast}>\n <Group\n title=\"Heading\"\n description=\"Use for headings & titles as it includes the a11y 'header' role. Change the size and style with the h1-h4 variants.\"\n >\n <Column style={styles.columnCenter}>\n <Heading>Heading 1</Heading>\n <Heading variant=\"h2\">Heading 2</Heading>\n <Heading variant=\"h3\">Heading 3</Heading>\n <Heading variant=\"h4\">Heading 4</Heading>\n </Column>\n </Group>\n <Group title=\"Text\" description=\"Use for body copy and supporting text.\">\n <Column style={styles.columnCenter}>\n <Text>Plain text</Text>\n <Text variant=\"secondary\">Secondary</Text>\n <Text variant=\"tertiary\">Tertiary</Text>\n <Text variant=\"footnote\">Footnote</Text>\n </Column>\n </Group>\n </CollapsableSection>\n )\n}\n\nfunction PressablesSection({ isLast }: SectionProps) {\n const styles = useStyles()\n const [filterSelected, setFilterSelected] = useState('Groups')\n\n return (\n <CollapsableSection title=\"Pressables\" isLast={isLast}>\n <Group\n title=\"Button\"\n description=\"Feature fill and outline variants for primary and danger usecases, along with disabled & loading states. Optionally shows icons to the left and right of the text.\"\n >\n <Row>\n <Button onPress={buttonPress} title=\"Default\" size=\"sm\" />\n <Button onPress={buttonPress} title=\"Default\" size=\"md\" />\n <Button onPress={buttonPress} title=\"Danger\" appearance=\"danger\" size=\"lg\" />\n </Row>\n <Row>\n <Button disabled onPress={buttonPress} title=\"Disabled\" size=\"sm\" />\n <Button disabled onPress={buttonPress} title=\"Disabled\" size=\"md\" />\n <Button disabled onPress={buttonPress} title=\"Disabled\" appearance=\"danger\" size=\"lg\" />\n </Row>\n <Row>\n <Button\n onPress={buttonPress}\n title=\"Default\"\n size=\"sm\"\n iconNameLeft=\"general.plus\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n onPress={buttonPress}\n title=\"Default\"\n size=\"md\"\n iconNameRight=\"churchCenter.sort\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n onPress={buttonPress}\n title=\"Danger\"\n appearance=\"danger\"\n size=\"lg\"\n iconNameLeft=\"groups.cards\"\n iconNameRight=\"general.downChevron\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n </Row>\n <Row>\n <Button loading onPress={buttonPress} title=\"Default\" size=\"sm\" />\n <Button loading onPress={buttonPress} title=\"Default\" size=\"md\" />\n <Button loading onPress={buttonPress} title=\"Danger\" appearance=\"danger\" size=\"lg\" />\n </Row>\n <Row>\n <Button onPress={buttonPress} title=\"Default\" size=\"sm\" variant=\"outline\" />\n <Button onPress={buttonPress} title=\"Default\" size=\"md\" variant=\"outline\" />\n <Button\n onPress={buttonPress}\n title=\"Danger\"\n appearance=\"danger\"\n size=\"lg\"\n variant=\"outline\"\n />\n </Row>\n <Row>\n <Button\n onPress={buttonPress}\n title=\"Default\"\n size=\"sm\"\n variant=\"outline\"\n iconNameLeft=\"general.plus\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n onPress={buttonPress}\n title=\"Default\"\n size=\"md\"\n variant=\"outline\"\n iconNameRight=\"churchCenter.sort\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n onPress={buttonPress}\n title=\"Danger\"\n appearance=\"danger\"\n size=\"lg\"\n variant=\"outline\"\n iconNameLeft=\"groups.cards\"\n iconNameRight=\"general.downChevron\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n </Row>\n <Row>\n <Button\n disabled\n onPress={buttonPress}\n title=\"Disabled\"\n size=\"sm\"\n variant=\"outline\"\n iconNameLeft=\"general.plus\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n disabled\n onPress={buttonPress}\n title=\"Disabled\"\n size=\"md\"\n variant=\"outline\"\n iconNameRight=\"churchCenter.sort\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n disabled\n onPress={buttonPress}\n title=\"Disabled\"\n appearance=\"danger\"\n size=\"lg\"\n variant=\"outline\"\n iconNameLeft=\"groups.cards\"\n iconNameRight=\"general.downChevron\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n </Row>\n <Row>\n <Button\n loading\n onPress={buttonPress}\n title=\"Default\"\n size=\"sm\"\n variant=\"outline\"\n iconNameLeft=\"general.plus\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n loading\n onPress={buttonPress}\n title=\"Default\"\n size=\"md\"\n variant=\"outline\"\n iconNameRight=\"churchCenter.sort\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n loading\n onPress={buttonPress}\n title=\"Danger\"\n appearance=\"danger\"\n size=\"lg\"\n variant=\"outline\"\n iconNameLeft=\"groups.cards\"\n iconNameRight=\"general.downChevron\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n </Row>\n </Group>\n <Group\n title=\"ToggleButton\"\n description=\"Button with active and deactive states. Supports right & left icons, along with standard pressable props.\"\n >\n <Row>\n <ToggleButton\n onPress={() => setFilterSelected('Groups')}\n title=\"Groups\"\n active={filterSelected === 'Groups'}\n accessibilityLabel=\"Filter to group conversations\"\n />\n <ToggleButton\n onPress={() => setFilterSelected('Teams')}\n title=\"Teams\"\n active={filterSelected === 'Teams'}\n accessibilityLabel=\"Filter to team conversations\"\n />\n <ToggleButton\n onPress={() => setFilterSelected('More')}\n title=\"More\"\n active={filterSelected === 'More'}\n iconNameRight=\"general.threeReducingHorizontalBars\"\n accessibilityLabel=\"View more filters\"\n />\n </Row>\n </Group>\n <Group\n title=\"IconButton\"\n 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.\"\n >\n <Row>\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n size=\"md\"\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n appearance=\"danger\"\n size=\"lg\"\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n appearance=\"interaction\"\n size=\"xl\"\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n iconStyle={styles.customIconButtonColor}\n size=\"xxl\"\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n size=\"xxxl\"\n />\n </Row>\n <Row>\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n size=\"md\"\n disabled\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n appearance=\"danger\"\n size=\"lg\"\n disabled\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n appearance=\"interaction\"\n size=\"xl\"\n disabled\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n iconStyle={styles.customIconButtonColor}\n size=\"xxl\"\n disabled\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n size=\"xxxl\"\n disabled\n />\n </Row>\n <Row>\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n size=\"md\"\n loading\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n appearance=\"danger\"\n size=\"lg\"\n loading\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n appearance=\"interaction\"\n size=\"xl\"\n loading\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n iconStyle={styles.customIconButtonColor}\n size=\"xxl\"\n loading\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n size=\"xxxl\"\n loading\n />\n </Row>\n </Group>\n <Group\n title=\"TextButton\"\n description=\"Pressable text with default & danger appearance options. Can be disabled and accept `Text` variance props.\"\n >\n <Row>\n <TextButton onPress={buttonPress}>Default</TextButton>\n <TextButton onPress={buttonPress} variant=\"secondary\">\n Default\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"tertiary\">\n Default\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"footnote\">\n Default\n </TextButton>\n </Row>\n <Row>\n <TextButton onPress={buttonPress} appearance=\"danger\">\n Danger\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"secondary\" appearance=\"danger\">\n Danger\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"tertiary\" appearance=\"danger\">\n Danger\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"footnote\" appearance=\"danger\">\n Danger\n </TextButton>\n </Row>\n <Row>\n <TextButton onPress={buttonPress} disabled>\n Disabled\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"secondary\" disabled>\n Disabled\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"tertiary\" disabled>\n Disabled\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"footnote\" disabled>\n Disabled\n </TextButton>\n </Row>\n </Group>\n <Group\n title=\"TextInlineButton\"\n description=\"Supports nesting within `Text`. Temporary component until React Native fixes a layout bug in `Pressable` which used in `TextButton`.\"\n >\n <Row style={styles.alignRowLeft}>\n <Text>\n This text is next to{' '}\n <TextInlineButton onPress={buttonPress}>default button text</TextInlineButton> Lorem\n ipsum dolor{' '}\n <TextInlineButton onPress={buttonPress} appearance=\"danger\">\n danger button text\n </TextInlineButton>{' '}\n consectetur{' '}\n <TextInlineButton onPress={buttonPress} disabled>\n disabled button text\n </TextInlineButton>{' '}\n elit.\n </Text>\n <Text variant=\"secondary\">\n This text is next to{' '}\n <TextInlineButton variant=\"secondary\" onPress={buttonPress}>\n default button text\n </TextInlineButton>{' '}\n Lorem ipsum dolor{' '}\n <TextInlineButton variant=\"secondary\" onPress={buttonPress} appearance=\"danger\">\n danger button text\n </TextInlineButton>{' '}\n consectetur{' '}\n <TextInlineButton variant=\"secondary\" onPress={buttonPress} disabled>\n disabled button text\n </TextInlineButton>{' '}\n elit.\n </Text>\n <Text variant=\"tertiary\">\n This text is next to{' '}\n <TextInlineButton variant=\"tertiary\" onPress={buttonPress}>\n default button text\n </TextInlineButton>{' '}\n Lorem ipsum dolor{' '}\n <TextInlineButton variant=\"tertiary\" onPress={buttonPress} appearance=\"danger\">\n danger button text\n </TextInlineButton>{' '}\n consectetur{' '}\n <TextInlineButton variant=\"tertiary\" onPress={buttonPress} disabled>\n disabled button text\n </TextInlineButton>{' '}\n elit.\n </Text>\n <Text variant=\"footnote\">\n This text is next to{' '}\n <TextInlineButton variant=\"footnote\" onPress={buttonPress}>\n default button text\n </TextInlineButton>{' '}\n Lorem ipsum dolor{' '}\n <TextInlineButton variant=\"footnote\" onPress={buttonPress} appearance=\"danger\">\n danger button text\n </TextInlineButton>{' '}\n consectetur{' '}\n <TextInlineButton variant=\"footnote\" onPress={buttonPress} disabled>\n disabled button text\n </TextInlineButton>{' '}\n elit.\n </Text>\n </Row>\n </Group>\n </CollapsableSection>\n )\n}\nfunction HapticsSection({ isLast }: SectionProps) {\n return (\n <CollapsableSection title=\"Haptics\" isLast={isLast}>\n <TextGroup>\n <Text>\n Haptics help communicate changes and interactions in the UI by making them feel physical\n and \"weighty\". They are a progressive enhancement and shouldn't replace visual feedback.\n </Text>\n </TextGroup>\n <Group title=\"Impact\" description=\"Communicates that a user interaction is occurring.\">\n <Row>\n <HapticButton title=\"Impact Light\" onPress={() => Haptic.impactLight()} />\n <HapticButton title=\"Impact Medium\" onPress={() => Haptic.impactMedium()} />\n <HapticButton title=\"Impact Heavy\" onPress={() => Haptic.impactHeavy()} />\n <HapticButton title=\"Rigid\" onPress={() => Haptic.rigid()} />\n <HapticButton title=\"Soft\" onPress={() => Haptic.soft()} />\n </Row>\n </Group>\n <Group\n title=\"Notification\"\n description=\"Communicates the result of a user or application action.\"\n >\n <Row>\n <HapticButton title=\"Notification Success\" onPress={() => Haptic.notificationSuccess()} />\n <HapticButton title=\"Notification Warning\" onPress={() => Haptic.notificationWarning()} />\n <HapticButton title=\"Notification Error\" onPress={() => Haptic.notificationError()} />\n </Row>\n </Group>\n </CollapsableSection>\n )\n}\n\nfunction ImageIconsSection({ isLast }: SectionProps) {\n const styles = useStyles()\n const { colors } = useTheme()\n\n return (\n <CollapsableSection title=\"Images & Icons\" isLast={isLast}>\n <Group\n title=\"Image\"\n description=\"Foundational way of displaying images. Loading or broken images will fallback to show a spinner. Hide decortive images from screen readers with `alt=''`.\"\n >\n <Row>\n <Image source={{ uri: URL.broken }} style={styles.image} alt=\"Mountain sunrise\" />\n <Image source={{ uri: URL.image }} style={styles.image} alt=\"Mountain sunrise\" />\n <Image source={{ uri: URL.image }} style={styles.image} alt=\"\" />\n </Row>\n </Group>\n <Group\n title=\"ImageAttachmentPreview\"\n description=\"Displays an image attachment in different sizes with a close button. It takes a `fileName` prop that gets passed to the image's `alt` attribute. Can show loading and error states.\"\n >\n <Row>\n <ImageAttachmentPreview\n size=\"sm\"\n uri={URL.image}\n fileName=\"mountains.jpg\"\n onRemovePress={buttonPress}\n />\n <ImageAttachmentPreview\n uri={URL.image}\n fileName=\"mountains.jpg\"\n onRemovePress={buttonPress}\n />\n <ImageAttachmentPreview\n size=\"sm\"\n uri={URL.image}\n fileName=\"mountains.jpg\"\n onRemovePress={buttonPress}\n loading\n hideRemoveButton\n />\n <ImageAttachmentPreview\n uri={URL.image}\n fileName=\"mountains.jpg\"\n onRemovePress={buttonPress}\n loading\n hideRemoveButton\n />\n <ImageAttachmentPreview\n size=\"sm\"\n uri={URL.image}\n fileName=\"mountains.jpg\"\n onRemovePress={buttonPress}\n error\n />\n <ImageAttachmentPreview\n uri={URL.image}\n fileName=\"mountains.jpg\"\n onRemovePress={buttonPress}\n error\n />\n </Row>\n </Group>\n <Group\n title=\"VideoAttachmentPreview\"\n description=\"Displays an video attachment with a close button. It takes a `name` prop, an optional duration, and can show loading and error states.\"\n >\n <Row>\n <VideoAttachmentPreview name=\"mountains.mp4\" onRemovePress={buttonPress} />\n <VideoAttachmentPreview\n name=\"mountains.mp4\"\n duration=\"1:20\"\n onRemovePress={buttonPress}\n />\n <VideoAttachmentPreview\n name=\"mountains.mp4\"\n onRemovePress={buttonPress}\n loading\n hideRemoveButton\n />\n <VideoAttachmentPreview\n name=\"mountains.mp4\"\n duration=\"1:20\"\n onRemovePress={buttonPress}\n error\n />\n </Row>\n </Group>\n <Group\n title=\"Avatar\"\n description='Displays the profile image for a user in different sizes and has a loading spinner. Can optionally show an online/offline \"presence\" indicator. Fallback condition and icon are optionally configurable.'\n >\n <Row>\n <Avatar sourceUri={URL.broken} />\n <Avatar size=\"md\" sourceUri={URL.avatar_fallback} />\n <Avatar sourceUri={URL.avatar} />\n </Row>\n <Row>\n <Avatar presence=\"offline\" sourceUri={URL.broken} />\n <Avatar presence=\"online\" size=\"md\" sourceUri={URL.avatar_fallback} />\n <Avatar presence=\"offline\" sourceUri={URL.avatar} />\n </Row>\n <Row>\n <Avatar sourceUri=\"\" />\n <Avatar sourceUri=\"\" size=\"md\" />\n <Avatar sourceUri=\"\" size=\"sm\" />\n <Avatar\n sourceUri={URL.broken}\n showFallback={true}\n fallbackIconName=\"general.star\"\n size=\"sm\"\n />\n </Row>\n </Group>\n <Group\n title=\"AvatarGroup\"\n description=\"Shows 1-4 images in a grid at different sizes. Loading spinner shows until all images successfully load. Fallback condition and icon are optionally configurable.\"\n >\n <Row>\n <AvatarGroup sourceUris={[URL.broken]} />\n <AvatarGroup sourceUris={[URL.broken, URL.broken, ...URL.two_avatars]} />\n <AvatarGroup sourceUris={[URL.avatar]} />\n <AvatarGroup sourceUris={URL.two_avatars} />\n <AvatarGroup sourceUris={URL.three_avatars} />\n <AvatarGroup sourceUris={URL.four_avatars} />\n </Row>\n <Row>\n <AvatarGroup sourceUris={[]} showFallback={true} fallbackIconName=\"general.person\" />\n <AvatarGroup\n sourceUris={[]}\n showFallback={true}\n fallbackIconName=\"people.noTextMessage\"\n />\n <AvatarGroup\n sourceUris={[]}\n showFallback={true}\n fallbackIconName=\"general.star\"\n size=\"md\"\n />\n <AvatarGroup\n sourceUris={[]}\n showFallback={true}\n fallbackIconName=\"general.heart\"\n size=\"sm\"\n />\n </Row>\n </Group>\n <Group\n title=\"Icon\"\n description=\"Displays any icon from @planningcenter/icons. Missing icons will fallback to a grey circle. Styling with `fontSize` will allow it to scale with the device's text a11y size.\"\n >\n <Row>\n {/* @ts-expect-error - Testing missing icon fallback */}\n <Icon name=\"missingIcon\" size={20} />\n <Icon name=\"general.textMessage\" size={20} />\n <Icon name=\"general.bell\" size={20} color={colors.needsDesignPass} />\n <Icon name=\"churchCenter.sort\" style={styles.icon} />\n </Row>\n </Group>\n </CollapsableSection>\n )\n}\n\nfunction FormControlsSection({ isLast }: SectionProps) {\n const [switchOn, setSwitchOn] = useState(true)\n const [switchOff, setSwitchOff] = useState(false)\n\n return (\n <CollapsableSection title=\"Form Controls\" isLast={isLast}>\n <Group\n title=\"Switch\"\n description=\"Use to toggle a boolean value for some sort of contained setting. (ie. Muting a conversation) This is a light wrapper that takes into account themed colors.\"\n >\n <Row>\n <Switch value={switchOn} onValueChange={value => setSwitchOn(value)} />\n <Switch value={switchOff} onValueChange={value => setSwitchOff(value)} />\n <Switch value={true} disabled />\n <Switch value={false} disabled />\n </Row>\n </Group>\n </CollapsableSection>\n )\n}\n\nfunction StatusComponentsSection({ isLast }: SectionProps) {\n return (\n <CollapsableSection title=\"Status components\" isLast={isLast}>\n <Group\n title=\"Badge\"\n description=\"Badge that can convey a status and show an icon. It also supports a meta label and product logo for the conversation list and conversation header. Target products can change colors and hide the logo via theming.\"\n >\n <Row>\n <Badge label=\"Neutral\" appearance=\"neutral\" />\n <Badge label=\"Error\" appearance=\"error\" />\n <Badge label=\"Info\" appearance=\"info\" />\n <Badge label=\"Success\" appearance=\"success\" />\n <Badge label=\"Warning\" appearance=\"warning\" />\n </Row>\n <Row>\n <Badge label=\"Neutral\" appearance=\"neutral\" iconName=\"general.star\" />\n <Badge label=\"Error\" appearance=\"error\" iconName=\"general.exclamationTriangle\" />\n <Badge label=\"Info\" appearance=\"info\" iconName=\"general.outlinedInfoCircle\" />\n <Badge label=\"Success\" appearance=\"success\" iconName=\"general.check\" />\n <Badge label=\"Warning\" appearance=\"warning\" iconName=\"general.shieldExclamation\" />\n </Row>\n <Row>\n <Badge\n variant=\"meta\"\n productLogoName=\"groups\"\n label=\"Group\"\n metaLabel=\"Worlds longest group name that will probably overflow if it gets very much longer\"\n />\n <Badge variant=\"meta\" productLogoName=\"groups\" label=\"Group\" metaLabel=\"Young adults\" />\n <Badge variant=\"meta\" productLogoName=\"services\" label=\"Plan\" metaLabel=\"June 19, 2025\" />\n <Badge variant=\"meta\" productLogoName=\"services\" label=\"Team\" />\n </Row>\n <Row>\n <Badge\n variant=\"metaSubtle\"\n productLogoName=\"groups\"\n label=\"Group\"\n metaLabel=\"Worlds longest group name that will probably overflow if it gets very much longer\"\n />\n <Badge\n variant=\"metaSubtle\"\n productLogoName=\"groups\"\n label=\"Group\"\n metaLabel=\"Young adults\"\n />\n <Badge\n variant=\"metaSubtle\"\n productLogoName=\"services\"\n label=\"Plan\"\n metaLabel=\"June 19, 2025\"\n />\n <Badge variant=\"metaSubtle\" productLogoName=\"services\" label=\"Team\" />\n </Row>\n </Group>\n <Group\n title=\"Banner\"\n description=\"Banners that can convey a status with color and an optional icon. They render a description and optional heading. A `Banner.Link` can be used by wrapping it in `Banner.Text` and passing it to `description`. Target products can change colors via theming.\"\n >\n <Column>\n <Banner\n appearance=\"neutral\"\n showIcon={false}\n description=\"Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt.\"\n />\n <Banner\n appearance=\"info\"\n heading=\"Banner heading\"\n description=\"Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt.\"\n />\n <Banner\n appearance=\"success\"\n heading=\"Banner heading\"\n description={\n <BannerPrimitive.Text>\n Et sint Quis non excepturi{' '}\n <BannerPrimitive.Link onPress={buttonPress}>\n enim et conseq atur porro est\n </BannerPrimitive.Link>{' '}\n galisum labore ea volupt.\n </BannerPrimitive.Text>\n }\n />\n <Banner\n appearance=\"warning\"\n iconName=\"general.shieldExclamation\"\n heading=\"13 members under age 13\"\n description=\"Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt.\"\n />\n <Banner\n appearance=\"error\"\n heading=\"Banner heading\"\n description=\"Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt.\"\n />\n </Column>\n </Group>\n <Group\n title=\"BannerCollapsible\"\n description=\"Same as `Banner` but takes children that can be hidden/revealed on a tap.\"\n >\n <Column>\n <BannerCollapsible appearance=\"neutral\" showIcon={false} heading=\"Banner heading\">\n <BannerPrimitive.Text>\n Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt.\n </BannerPrimitive.Text>\n </BannerCollapsible>\n <BannerCollapsible appearance=\"info\" heading=\"Banner heading\">\n <BannerPrimitive.Text>\n Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt.\n </BannerPrimitive.Text>\n </BannerCollapsible>\n <BannerCollapsible appearance=\"success\" heading=\"Banner heading\">\n <BannerPrimitive.Text>\n Et sint Quis non excepturi{' '}\n <BannerPrimitive.Link onPress={buttonPress}>\n enim et conseq atur porro est\n </BannerPrimitive.Link>{' '}\n galisum labore ea volupt.\n </BannerPrimitive.Text>\n </BannerCollapsible>\n <BannerCollapsible\n appearance=\"warning\"\n iconName=\"general.shieldExclamation\"\n heading=\"13 members under age 13\"\n description=\"Et sint Quis non excepturi enim et conse.\"\n >\n <BannerPrimitive.Text>\n More hdden content that can be revealed on a tap. Lorem ipsum dolor sit amet,\n consectetur\n </BannerPrimitive.Text>\n </BannerCollapsible>\n <BannerCollapsible\n appearance=\"error\"\n heading=\"Banner heading\"\n description=\"Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt.\"\n >\n <BannerPrimitive.Text>\n Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt. Et\n sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt. Et\n sint Quis non excepturi enim et .\n </BannerPrimitive.Text>\n </BannerCollapsible>\n </Column>\n </Group>\n </CollapsableSection>\n )\n}\n\nconst FA_ICONS: { category: string; icons: IconName[] }[] = [\n {\n category: 'Church',\n icons: [\n 'book-bible',\n 'church',\n 'cross',\n 'dove',\n 'hands-heart',\n 'person-rays',\n 'praying-hands',\n 'podium',\n 'droplet',\n 'person-drowning',\n 'lighthouse',\n ],\n },\n {\n category: 'Services',\n icons: [\n 'guitar',\n 'guitar-electric',\n 'violin',\n 'calendar-heart',\n 'hand-heart',\n 'hand-wave',\n 'baby',\n 'children',\n 'mug-hot',\n 'video-camera',\n 'music',\n 'piano-keyboard',\n 'drum',\n 'user-graduate',\n 'comments-question',\n 'presentation',\n 'microphone-stand',\n 'id-badge',\n 'book-user',\n 'hand-holding-heart',\n 'guitars',\n 'amp-guitar',\n 'school-flag',\n 'shield-check',\n 'projector',\n ],\n },\n {\n category: 'Groups',\n icons: [\n 'people',\n 'people-group',\n 'person-dress',\n 'person',\n 'seedling',\n 'comments-alt',\n 'globe',\n 'book-open-reader',\n 'running',\n 'leaf',\n ],\n },\n]\n\nfunction FontAwesomeIconsSection({ isLast }: SectionProps) {\n const { colors } = useTheme()\n\n return (\n <CollapsableSection title=\"FontAwesome Pro Icons\" isLast={isLast}>\n {FA_ICONS.map(({ category, icons }) => (\n <Group key={category} title={category}>\n <View style={faStyles.grid}>\n {icons.map(name => (\n <View key={name} style={faStyles.cell}>\n <FontAwesomeIcon\n icon={['fas', name]}\n size={20}\n color={colors.iconColorDefaultSecondary}\n />\n <Text variant=\"footnote\" numberOfLines={1}>\n {name}\n </Text>\n </View>\n ))}\n </View>\n </Group>\n ))}\n </CollapsableSection>\n )\n}\n\nconst faStyles = StyleSheet.create({\n grid: {\n flexDirection: 'row',\n flexWrap: 'wrap',\n },\n cell: {\n width: '25%',\n alignItems: 'center',\n gap: 4,\n paddingVertical: 12,\n },\n})\n\nfunction MiscComponentsSection({ isLast }: SectionProps) {\n return (\n <CollapsableSection title=\"Misc components\" isLast={isLast}>\n <Group\n title=\"Person\"\n description=\"Takes a person object (`MemberResource` type) and displays an avatar, name, and badges. If person is a child we show a special badge and faded styles. Implomentation is based on a similar Chat Web component.\"\n >\n <Column>\n <Person person={personAdult} />\n <Person person={personChild} />\n </Column>\n </Group>\n <Group\n title=\"BlankState\"\n description=\"Compound component with primitives to display imagary, heading, title, and a button.\"\n >\n <Column>\n <BlankState.Root>\n <BlankState.Imagery name=\"general.outlinedTextMessage\" />\n <BlankState.Content>\n <BlankState.Heading>No messages</BlankState.Heading>\n <BlankState.Text>\n Conversation is hidden from everyone until you send a message.\n </BlankState.Text>\n </BlankState.Content>\n <BlankState.Button\n onPress={buttonPress}\n title=\"Go back\"\n accessibilityHint=\"Navigates back to the conversations list\"\n accessibilityRole=\"link\"\n />\n </BlankState.Root>\n </Column>\n </Group>\n </CollapsableSection>\n )\n}\n\n// =================================\n// ====== Docs UI ==================\n// =================================\ninterface CollapsableSectionProps {\n children: React.ReactNode\n title: string\n isLast?: boolean\n}\n\nfunction CollapsableSection({ children, title, isLast = false }: CollapsableSectionProps) {\n const styles = useStyles()\n const { colors } = useTheme()\n const [collapsed, setCollapsed] = useState(true)\n\n return (\n <View style={[styles.section, styles.sectionBorderTop, isLast && styles.sectionBorderBottom]}>\n <Pressable\n onPress={() => setCollapsed(!collapsed)}\n style={({ pressed }) => [styles.sectionHeader, pressed && platformPressedOpacityStyle]}\n android_ripple={{ color: colors.androidRippleNeutral, borderless: false, foreground: true }}\n >\n <Heading>{title}</Heading>\n <Icon name={collapsed ? 'general.plus' : 'general.minus'} size={16} />\n </Pressable>\n {!collapsed && <View style={styles.sectionChildren}>{children}</View>}\n </View>\n )\n}\n\ninterface GroupProps {\n title: string\n description?: string\n children: React.ReactNode\n}\n\nfunction Group({ title, description, children }: GroupProps) {\n const styles = useStyles()\n return (\n <View style={styles.group}>\n <View style={styles.groupHeading}>\n <Heading variant=\"h3\">{title}</Heading>\n {description && <Text variant=\"tertiary\">{description}</Text>}\n </View>\n {children}\n </View>\n )\n}\n\ninterface RowProps {\n children: React.ReactNode\n style?: ViewStyle\n}\n\nfunction Row({ children, style }: RowProps) {\n const styles = useStyles()\n return <View style={[styles.row, style]}>{children}</View>\n}\n\ninterface ColumnProps {\n children: React.ReactNode\n style?: ViewStyle\n}\n\nfunction Column({ children, style }: ColumnProps) {\n const styles = useStyles()\n return <View style={[styles.column, style]}>{children}</View>\n}\n\nfunction TextGroup({ children }: { children: React.ReactNode }) {\n const styles = useStyles()\n return <View style={styles.textGroup}>{children}</View>\n}\n\ninterface TextRowProps {\n children: React.ReactNode\n style?: ViewStyle\n}\n\nfunction TextRow({ children, style }: TextRowProps) {\n const styles = useStyles()\n return <View style={[styles.textRow, style]}>{children}</View>\n}\n\ninterface TextListItemProps {\n label: string\n children: React.ReactNode\n}\n\nfunction TextListItem({ label, children }: TextListItemProps) {\n const styles = useStyles()\n return (\n <Text variant=\"tertiary\">\n <Text variant=\"tertiary\" style={styles.mediumWeight}>\n {label}\n </Text>{' '}\n {children}\n </Text>\n )\n}\n\nfunction HapticButton({ title, onPress }: { title: string; onPress: () => void }) {\n const styles = useStyles()\n\n return (\n <Pressable\n onPress={onPress}\n style={({ pressed }) => ({\n ...styles.hapticButton,\n ...{ opacity: pressed ? 0.5 : 1 },\n })}\n >\n <Text style={styles.hapticButtonText}>{title}</Text>\n </Pressable>\n )\n}\n\n// =================================\n// ====== Styles ===================\n// =================================\n\nconst useStyles = () => {\n const { colors } = useTheme()\n const interactionGhostBackgroundColor = useInteractionGhostBackgroundColor()\n\n return StyleSheet.create({\n hapticButton: {\n flexGrow: 1,\n height: 100,\n padding: 16,\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: interactionGhostBackgroundColor,\n borderWidth: 1,\n borderColor: colors.interaction,\n borderRadius: 8,\n },\n hapticButtonText: {\n textAlign: 'center',\n color: colors.interaction,\n },\n scrollView: {\n flex: 1,\n backgroundColor: colors.fillColorNeutral100Inverted,\n },\n container: {\n padding: 24,\n },\n listItem: { color: colors.fillColorNeutral020 },\n section: {\n gap: 8,\n borderColor: colors.fillColorNeutral020,\n },\n sectionBorderTop: {\n borderTopWidth: 1,\n },\n sectionBorderBottom: {\n borderBottomWidth: 1,\n },\n sectionHeader: {\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n paddingVertical: 24,\n },\n sectionChildren: {\n paddingBottom: 24,\n gap: 48,\n },\n row: {\n gap: 16,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n flexWrap: 'wrap',\n },\n column: {\n gap: 16,\n },\n columnCenter: {\n alignItems: 'center',\n },\n textRow: {\n gap: 12,\n },\n textGroup: {\n gap: 20,\n },\n mediumWeight: {\n fontWeight: platformFontWeightMedium,\n },\n alignRowLeft: {\n justifyContent: 'flex-start',\n },\n group: {\n gap: 24,\n },\n groupHeading: {\n gap: 8,\n },\n image: {\n width: 100,\n height: 100,\n },\n icon: {\n fontSize: 20,\n color: colors.iconColorDefaultSecondary,\n },\n customIconButtonColor: {\n color: 'purple',\n },\n })\n}\n"]}
|
|
1
|
+
{"version":3,"file":"design_system_screen.js","sourceRoot":"","sources":["../../src/screens/design_system_screen.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAE7E,OAAO,EACL,MAAM,EACN,WAAW,EACX,KAAK,EACL,MAAM,EACN,iBAAiB,EACjB,MAAM,EACN,YAAY,EACZ,OAAO,EACP,IAAI,EACJ,UAAU,EACV,KAAK,EACL,MAAM,EACN,OAAO,EACP,MAAM,EACN,IAAI,EACJ,UAAU,EACV,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAA;AACvF,OAAO,eAAe,MAAM,0CAA0C,CAAA;AACtE,OAAO,UAAU,MAAM,+CAA+C,CAAA;AACtE,OAAO,EAAE,kCAAkC,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACvE,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,wBAAwB,EACxB,MAAM,GACP,MAAM,UAAU,CAAA;AAEjB,oCAAoC;AACpC,oCAAoC;AACpC,oCAAoC;AAEpC,MAAM,GAAG,GAAG;IACV,KAAK,EAAE,uCAAuC;IAC9C,MAAM,EAAE,oBAAoB;IAC5B,MAAM,EAAE,kCAAkC;IAC1C,eAAe,EAAE,kEAAkE;IACnF,WAAW,EAAE,CAAC,kCAAkC,EAAE,kCAAkC,CAAC;IACrF,aAAa,EAAE;QACb,kCAAkC;QAClC,kCAAkC;QAClC,kCAAkC;KACnC;IACD,YAAY,EAAE;QACZ,kCAAkC;QAClC,kCAAkC;QAClC,kCAAkC;QAClC,kCAAkC;KACnC;CACF,CAAA;AAED,MAAM,WAAW,GAA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AE,KAAK;YACpB,cAAc,EAAE,eAAe;YAC/B,UAAU,EAAE,QAAQ;YACpB,eAAe,EAAE,EAAE;SACpB;QACD,eAAe,EAAE;YACf,aAAa,EAAE,EAAE;YACjB,GAAG,EAAE,EAAE;SACR;QACD,GAAG,EAAE;YACH,GAAG,EAAE,EAAE;YACP,aAAa,EAAE,KAAK;YACpB,UAAU,EAAE,QAAQ;YACpB,cAAc,EAAE,QAAQ;YACxB,QAAQ,EAAE,MAAM;SACjB;QACD,MAAM,EAAE;YACN,GAAG,EAAE,EAAE;SACR;QACD,YAAY,EAAE;YACZ,UAAU,EAAE,QAAQ;SACrB;QACD,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;SACR;QACD,SAAS,EAAE;YACT,GAAG,EAAE,EAAE;SACR;QACD,YAAY,EAAE;YACZ,UAAU,EAAE,wBAAwB;SACrC;QACD,YAAY,EAAE;YACZ,cAAc,EAAE,YAAY;SAC7B;QACD,KAAK,EAAE;YACL,GAAG,EAAE,EAAE;SACR;QACD,YAAY,EAAE;YACZ,GAAG,EAAE,CAAC;SACP;QACD,KAAK,EAAE;YACL,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,GAAG;SACZ;QACD,IAAI,EAAE;YACJ,QAAQ,EAAE,EAAE;YACZ,KAAK,EAAE,MAAM,CAAC,yBAAyB;SACxC;QACD,qBAAqB,EAAE;YACrB,KAAK,EAAE,QAAQ;SAChB;KACF,CAAC,CAAA;AACJ,CAAC,CAAA","sourcesContent":["import type { IconName } from '@fortawesome/fontawesome-svg-core'\nimport { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome'\nimport React, { useState } from 'react'\nimport { Alert, Pressable, ScrollView, StyleSheet, View } from 'react-native'\nimport type { ViewStyle } from 'react-native'\nimport {\n Avatar,\n AvatarGroup,\n Badge,\n Banner,\n BannerCollapsible,\n Button,\n ToggleButton,\n Heading,\n Icon,\n IconButton,\n Image,\n Person,\n Spinner,\n Switch,\n Text,\n TextButton,\n TextInlineButton,\n ImageAttachmentPreview,\n} from '../components/display'\nimport { VideoAttachmentPreview } from '../components/display/video_attachment_preview'\nimport BannerPrimitive from '../components/primitive/banner_primitive'\nimport BlankState from '../components/primitive/blank_state_primitive'\nimport { useInteractionGhostBackgroundColor, useTheme } from '../hooks'\nimport {\n MAX_FONT_SIZE_MULTIPLIER,\n platformPressedOpacityStyle,\n platformFontWeightMedium,\n Haptic,\n} from '../utils'\n\n// =================================\n// ====== Docs Utils ===============\n// =================================\n\nconst URL = {\n image: 'https://picsum.photos/seed/picsum/200',\n broken: 'https://broken.url',\n avatar: 'https://i.pravatar.cc/200?img=22',\n avatar_fallback: 'https://avatars.planningcenteronline.com/uploads/initials/PR.png',\n two_avatars: ['https://i.pravatar.cc/200?img=22', 'https://i.pravatar.cc/200?img=23'],\n three_avatars: [\n 'https://i.pravatar.cc/200?img=22',\n 'https://i.pravatar.cc/200?img=23',\n 'https://i.pravatar.cc/200?img=24',\n ],\n four_avatars: [\n 'https://i.pravatar.cc/200?img=30',\n 'https://i.pravatar.cc/200?img=29',\n 'https://i.pravatar.cc/200?img=28',\n 'https://i.pravatar.cc/200?img=27',\n ],\n}\n\nconst personAdult = {\n id: 1,\n type: 'Member' as const,\n name: 'John Doe',\n avatar: URL.avatar,\n badges: [{ title: 'Conversation owner' }, { title: 'Leader' }],\n child: false,\n gender: null,\n}\n\nconst personChild = {\n id: 2,\n type: 'Member' as const,\n name: 'Kid McChild',\n avatar: URL.two_avatars[1],\n badges: [],\n child: true,\n gender: null,\n}\n\nconst buttonPress = () => Alert.alert('Button clicked')\n\n// =================================\n// ====== Component ================\n// =================================\n\nexport function DesignSystemScreen() {\n const styles = useStyles()\n\n return (\n <ScrollView contentContainerStyle={styles.container} style={styles.scrollView}>\n <ThemeSection />\n {/* TODO: Enable & update when we install @planningcenter/tapestry */}\n {/* <TokensSection /> */}\n <IndicatorsSection />\n <HeadingTextSection />\n <PressablesSection />\n <HapticsSection />\n <ImageIconsSection />\n <FormControlsSection />\n <StatusComponentsSection />\n <FontAwesomeIconsSection />\n <MiscComponentsSection isLast />\n </ScrollView>\n )\n}\n\n// =================================\n// ====== Sections =================\n// =================================\n\ninterface SectionProps {\n isLast?: boolean\n}\n\nfunction ThemeSection({ isLast }: SectionProps) {\n return (\n <CollapsableSection title=\"Theme\" isLast={isLast}>\n <TextGroup>\n <Text>There are four main parts to our theming system…</Text>\n <TextRow>\n <Heading variant=\"h3\">Default theme</Heading>\n <Text>\n Start at `src/utils/theme` when adding new theme values or checking what target apps\n have access to. The file has more instructions and examples.\n </Text>\n <Text>At a high level, it provides…</Text>\n <TextListItem label=\"1.\">\n Access to consuming app targets of what theme values that they can be customized.\n </TextListItem>\n <TextListItem label=\"2.\">\n Fallback values for our components to use if the values weren't overriden.\n </TextListItem>\n </TextRow>\n <TextRow>\n <Heading variant=\"h3\">Customizing the theme</Heading>\n <Text>\n Apps can override any default theme value by passing a `theme` object to our\n `ChatProvider` that holds a `theme` and a `colorScheme`.\n </Text>\n <Text>\n Currently types can be enforced by setting the parent theme object to\n `CreateChatThemeProps`.\n </Text>\n <Text variant=\"footnote\">\n Example setup: `apps/sandbox/src/context/chat_context_provider.tsx`\n </Text>\n </TextRow>\n <TextRow>\n <Heading variant=\"h3\">Merged theme</Heading>\n <Text>\n In `src/contexts/chat_context.tsx` we merge the default theme and any custom values\n coming from a product target with the `useCreateChatTheme` hook. It creates a single\n `ChatTheme` type.\n </Text>\n </TextRow>\n <TextRow>\n <Heading variant=\"h3\">Using theme values</Heading>\n <Text>\n Inside of our own `chat-react-native` components we can access the merged `ChatTheme`\n object via our own `useTheme` hook.\n </Text>\n <Text variant=\"footnote\">Example setup: `src/components/display/button.tsx`</Text>\n </TextRow>\n </TextGroup>\n </CollapsableSection>\n )\n}\n\n// function TokensSection({ isLast }: SectionProps) {\n// return (\n// <CollapsableSection title=\"Tokens\" isLast={isLast}>\n// <TextGroup>\n// <TextRow>\n// <Heading variant=\"h3\">What are they?</Heading>\n// <Text>\n// Tokens are UX approved CSS values that we can use to style our UI in a consistent way.\n// (e.g. colors, spacing amounts, and font weights.)\n// </Text>\n// </TextRow>\n// <TextRow>\n// <Heading variant=\"h3\">Where do they come from?</Heading>\n// <Text>\n// Tokens primarily come from our internal `@planningcenter/tapestry` package. However, at\n// this time the package only support light mode colors, so Chat uses a workaround.\n// </Text>\n// <Text>Color-based tokens are infused into our theming system with two local files…</Text>\n// <TextListItem label=\"1. `src/vendor/tapestry/tokens`:\">\n// Primitive color values are stored* here. Primitives capture light or dark mode values,\n// but don't take into account the devices's colors scheme.\n// </TextListItem>\n// <TextListItem label=\"2. `src/vendor/tapestry/alias_tokens_color_map`:\">\n// Alias tokens reference the primitive color values token file* in light and dark mode\n// specfic objects. Our theming system then selects the right color to use based on the\n// device's color scheme.\n// </TextListItem>\n// <Text variant=\"footnote\">\n// *If available, reference the color from the Tapestry package instead.\n// </Text>\n// </TextRow>\n// <TextRow>\n// <Heading variant=\"h3\">How do we use them?</Heading>\n// <Text>There are two places to reference tokens at this time…</Text>\n// <TextListItem label=\"• Color tokens:\">\n// Reference them from our internal `useTheme` hook to ensure the correct light or dark\n// mode color token is used.\n// </TextListItem>\n// <TextListItem label=\"• All other tokens:\">\n// Use the `computedToken` function from `@planningcenter/tapestry` by passing it a string\n// with the token's name. This function provides Typescript support and maps to the token's\n// raw CSS value. There is another function called `token`, but it maps to CSS custom\n// properties which React Native doesn't support.\n// </TextListItem>\n// </TextRow>\n// </TextGroup>\n// </CollapsableSection>\n// )\n// }\n\nfunction IndicatorsSection({ isLast }: SectionProps) {\n return (\n <CollapsableSection title=\"Indicators\" isLast={isLast}>\n <Group\n title=\"Spinner\"\n description=\"Loading indicators that can be used within or close to atomic components. Not intended for full-screen loading.\"\n >\n <Row>\n <Spinner size={24} />\n </Row>\n </Group>\n </CollapsableSection>\n )\n}\n\nfunction HeadingTextSection({ isLast }: SectionProps) {\n const styles = useStyles()\n\n return (\n <CollapsableSection title=\"Heading & Text\" isLast={isLast}>\n <Group\n title=\"Heading\"\n description=\"Use for headings & titles as it includes the a11y 'header' role. Change the size and style with the h1-h4 variants.\"\n >\n <Column style={styles.columnCenter}>\n <Heading>Heading 1</Heading>\n <Heading variant=\"h2\">Heading 2</Heading>\n <Heading variant=\"h3\">Heading 3</Heading>\n <Heading variant=\"h4\">Heading 4</Heading>\n </Column>\n </Group>\n <Group title=\"Text\" description=\"Use for body copy and supporting text.\">\n <Column style={styles.columnCenter}>\n <Text>Plain text</Text>\n <Text variant=\"secondary\">Secondary</Text>\n <Text variant=\"tertiary\">Tertiary</Text>\n <Text variant=\"footnote\">Footnote</Text>\n </Column>\n </Group>\n </CollapsableSection>\n )\n}\n\nfunction PressablesSection({ isLast }: SectionProps) {\n const styles = useStyles()\n const [filterSelected, setFilterSelected] = useState('Groups')\n\n return (\n <CollapsableSection title=\"Pressables\" isLast={isLast}>\n <Group\n title=\"Button\"\n description=\"Feature fill and outline variants for primary and danger usecases, along with disabled & loading states. Optionally shows icons to the left and right of the text.\"\n >\n <Row>\n <Button onPress={buttonPress} title=\"Default\" size=\"sm\" />\n <Button onPress={buttonPress} title=\"Default\" size=\"md\" />\n <Button onPress={buttonPress} title=\"Danger\" appearance=\"danger\" size=\"lg\" />\n </Row>\n <Row>\n <Button disabled onPress={buttonPress} title=\"Disabled\" size=\"sm\" />\n <Button disabled onPress={buttonPress} title=\"Disabled\" size=\"md\" />\n <Button disabled onPress={buttonPress} title=\"Disabled\" appearance=\"danger\" size=\"lg\" />\n </Row>\n <Row>\n <Button\n onPress={buttonPress}\n title=\"Default\"\n size=\"sm\"\n iconNameLeft=\"general.plus\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n onPress={buttonPress}\n title=\"Default\"\n size=\"md\"\n iconNameRight=\"churchCenter.sort\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n onPress={buttonPress}\n title=\"Danger\"\n appearance=\"danger\"\n size=\"lg\"\n iconNameLeft=\"groups.cards\"\n iconNameRight=\"general.downChevron\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n </Row>\n <Row>\n <Button loading onPress={buttonPress} title=\"Default\" size=\"sm\" />\n <Button loading onPress={buttonPress} title=\"Default\" size=\"md\" />\n <Button loading onPress={buttonPress} title=\"Danger\" appearance=\"danger\" size=\"lg\" />\n </Row>\n <Row>\n <Button onPress={buttonPress} title=\"Default\" size=\"sm\" variant=\"outline\" />\n <Button onPress={buttonPress} title=\"Default\" size=\"md\" variant=\"outline\" />\n <Button\n onPress={buttonPress}\n title=\"Danger\"\n appearance=\"danger\"\n size=\"lg\"\n variant=\"outline\"\n />\n </Row>\n <Row>\n <Button\n onPress={buttonPress}\n title=\"Default\"\n size=\"sm\"\n variant=\"outline\"\n iconNameLeft=\"general.plus\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n onPress={buttonPress}\n title=\"Default\"\n size=\"md\"\n variant=\"outline\"\n iconNameRight=\"churchCenter.sort\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n onPress={buttonPress}\n title=\"Danger\"\n appearance=\"danger\"\n size=\"lg\"\n variant=\"outline\"\n iconNameLeft=\"groups.cards\"\n iconNameRight=\"general.downChevron\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n </Row>\n <Row>\n <Button\n disabled\n onPress={buttonPress}\n title=\"Disabled\"\n size=\"sm\"\n variant=\"outline\"\n iconNameLeft=\"general.plus\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n disabled\n onPress={buttonPress}\n title=\"Disabled\"\n size=\"md\"\n variant=\"outline\"\n iconNameRight=\"churchCenter.sort\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n disabled\n onPress={buttonPress}\n title=\"Disabled\"\n appearance=\"danger\"\n size=\"lg\"\n variant=\"outline\"\n iconNameLeft=\"groups.cards\"\n iconNameRight=\"general.downChevron\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n </Row>\n <Row>\n <Button\n loading\n onPress={buttonPress}\n title=\"Default\"\n size=\"sm\"\n variant=\"outline\"\n iconNameLeft=\"general.plus\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n loading\n onPress={buttonPress}\n title=\"Default\"\n size=\"md\"\n variant=\"outline\"\n iconNameRight=\"churchCenter.sort\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n <Button\n loading\n onPress={buttonPress}\n title=\"Danger\"\n appearance=\"danger\"\n size=\"lg\"\n variant=\"outline\"\n iconNameLeft=\"groups.cards\"\n iconNameRight=\"general.downChevron\"\n maxFontSizeMultiplier={MAX_FONT_SIZE_MULTIPLIER}\n />\n </Row>\n </Group>\n <Group\n title=\"ToggleButton\"\n description=\"Button with active and deactive states. Supports right & left icons, along with standard pressable props.\"\n >\n <Row>\n <ToggleButton\n onPress={() => setFilterSelected('Groups')}\n title=\"Groups\"\n active={filterSelected === 'Groups'}\n accessibilityLabel=\"Filter to group conversations\"\n />\n <ToggleButton\n onPress={() => setFilterSelected('Teams')}\n title=\"Teams\"\n active={filterSelected === 'Teams'}\n accessibilityLabel=\"Filter to team conversations\"\n />\n <ToggleButton\n onPress={() => setFilterSelected('More')}\n title=\"More\"\n active={filterSelected === 'More'}\n iconNameRight=\"general.threeReducingHorizontalBars\"\n accessibilityLabel=\"View more filters\"\n />\n </Row>\n </Group>\n <Group\n title=\"IconButton\"\n 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.\"\n >\n <Row>\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n size=\"md\"\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n appearance=\"danger\"\n size=\"lg\"\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n appearance=\"interaction\"\n size=\"xl\"\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n iconStyle={styles.customIconButtonColor}\n size=\"xxl\"\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n size=\"xxxl\"\n />\n </Row>\n <Row>\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n size=\"md\"\n disabled\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n appearance=\"danger\"\n size=\"lg\"\n disabled\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n appearance=\"interaction\"\n size=\"xl\"\n disabled\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n iconStyle={styles.customIconButtonColor}\n size=\"xxl\"\n disabled\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n size=\"xxxl\"\n disabled\n />\n </Row>\n <Row>\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n size=\"md\"\n loading\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n appearance=\"danger\"\n size=\"lg\"\n loading\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n appearance=\"interaction\"\n size=\"xl\"\n loading\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n iconStyle={styles.customIconButtonColor}\n size=\"xxl\"\n loading\n />\n <IconButton\n onPress={buttonPress}\n name=\"general.paperclip\"\n accessibilityLabel=\"Add attachment\"\n accessibilityHint=\"Opens your device's image gallary\"\n size=\"xxxl\"\n loading\n />\n </Row>\n </Group>\n <Group\n title=\"TextButton\"\n description=\"Pressable text with default & danger appearance options. Can be disabled and accept `Text` variance props.\"\n >\n <Row>\n <TextButton onPress={buttonPress}>Default</TextButton>\n <TextButton onPress={buttonPress} variant=\"secondary\">\n Default\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"tertiary\">\n Default\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"footnote\">\n Default\n </TextButton>\n </Row>\n <Row>\n <TextButton onPress={buttonPress} appearance=\"danger\">\n Danger\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"secondary\" appearance=\"danger\">\n Danger\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"tertiary\" appearance=\"danger\">\n Danger\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"footnote\" appearance=\"danger\">\n Danger\n </TextButton>\n </Row>\n <Row>\n <TextButton onPress={buttonPress} disabled>\n Disabled\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"secondary\" disabled>\n Disabled\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"tertiary\" disabled>\n Disabled\n </TextButton>\n <TextButton onPress={buttonPress} variant=\"footnote\" disabled>\n Disabled\n </TextButton>\n </Row>\n </Group>\n <Group\n title=\"TextInlineButton\"\n description=\"Supports nesting within `Text`. Temporary component until React Native fixes a layout bug in `Pressable` which used in `TextButton`.\"\n >\n <Row style={styles.alignRowLeft}>\n <Text>\n This text is next to{' '}\n <TextInlineButton onPress={buttonPress}>default button text</TextInlineButton> Lorem\n ipsum dolor{' '}\n <TextInlineButton onPress={buttonPress} appearance=\"danger\">\n danger button text\n </TextInlineButton>{' '}\n consectetur{' '}\n <TextInlineButton onPress={buttonPress} disabled>\n disabled button text\n </TextInlineButton>{' '}\n elit.\n </Text>\n <Text variant=\"secondary\">\n This text is next to{' '}\n <TextInlineButton variant=\"secondary\" onPress={buttonPress}>\n default button text\n </TextInlineButton>{' '}\n Lorem ipsum dolor{' '}\n <TextInlineButton variant=\"secondary\" onPress={buttonPress} appearance=\"danger\">\n danger button text\n </TextInlineButton>{' '}\n consectetur{' '}\n <TextInlineButton variant=\"secondary\" onPress={buttonPress} disabled>\n disabled button text\n </TextInlineButton>{' '}\n elit.\n </Text>\n <Text variant=\"tertiary\">\n This text is next to{' '}\n <TextInlineButton variant=\"tertiary\" onPress={buttonPress}>\n default button text\n </TextInlineButton>{' '}\n Lorem ipsum dolor{' '}\n <TextInlineButton variant=\"tertiary\" onPress={buttonPress} appearance=\"danger\">\n danger button text\n </TextInlineButton>{' '}\n consectetur{' '}\n <TextInlineButton variant=\"tertiary\" onPress={buttonPress} disabled>\n disabled button text\n </TextInlineButton>{' '}\n elit.\n </Text>\n <Text variant=\"footnote\">\n This text is next to{' '}\n <TextInlineButton variant=\"footnote\" onPress={buttonPress}>\n default button text\n </TextInlineButton>{' '}\n Lorem ipsum dolor{' '}\n <TextInlineButton variant=\"footnote\" onPress={buttonPress} appearance=\"danger\">\n danger button text\n </TextInlineButton>{' '}\n consectetur{' '}\n <TextInlineButton variant=\"footnote\" onPress={buttonPress} disabled>\n disabled button text\n </TextInlineButton>{' '}\n elit.\n </Text>\n </Row>\n </Group>\n </CollapsableSection>\n )\n}\nfunction HapticsSection({ isLast }: SectionProps) {\n return (\n <CollapsableSection title=\"Haptics\" isLast={isLast}>\n <TextGroup>\n <Text>\n Haptics help communicate changes and interactions in the UI by making them feel physical\n and \"weighty\". They are a progressive enhancement and shouldn't replace visual feedback.\n </Text>\n </TextGroup>\n <Group title=\"Impact\" description=\"Communicates that a user interaction is occurring.\">\n <Row>\n <HapticButton title=\"Impact Light\" onPress={() => Haptic.impactLight()} />\n <HapticButton title=\"Impact Medium\" onPress={() => Haptic.impactMedium()} />\n <HapticButton title=\"Impact Heavy\" onPress={() => Haptic.impactHeavy()} />\n <HapticButton title=\"Rigid\" onPress={() => Haptic.rigid()} />\n <HapticButton title=\"Soft\" onPress={() => Haptic.soft()} />\n </Row>\n </Group>\n <Group\n title=\"Notification\"\n description=\"Communicates the result of a user or application action.\"\n >\n <Row>\n <HapticButton title=\"Notification Success\" onPress={() => Haptic.notificationSuccess()} />\n <HapticButton title=\"Notification Warning\" onPress={() => Haptic.notificationWarning()} />\n <HapticButton title=\"Notification Error\" onPress={() => Haptic.notificationError()} />\n </Row>\n </Group>\n </CollapsableSection>\n )\n}\n\nfunction ImageIconsSection({ isLast }: SectionProps) {\n const styles = useStyles()\n const { colors } = useTheme()\n\n return (\n <CollapsableSection title=\"Images & Icons\" isLast={isLast}>\n <Group\n title=\"Image\"\n description=\"Foundational way of displaying images. Loading or broken images will fallback to show a spinner. Hide decortive images from screen readers with `alt=''`.\"\n >\n <Row>\n <Image source={{ uri: URL.broken }} style={styles.image} alt=\"Mountain sunrise\" />\n <Image source={{ uri: URL.image }} style={styles.image} alt=\"Mountain sunrise\" />\n <Image source={{ uri: URL.image }} style={styles.image} alt=\"\" />\n </Row>\n </Group>\n <Group\n title=\"ImageAttachmentPreview\"\n description=\"Displays an image attachment in different sizes with a close button. It takes a `fileName` prop that gets passed to the image's `alt` attribute. Can show loading and error states.\"\n >\n <Row>\n <ImageAttachmentPreview\n size=\"sm\"\n uri={URL.image}\n fileName=\"mountains.jpg\"\n onRemovePress={buttonPress}\n />\n <ImageAttachmentPreview\n uri={URL.image}\n fileName=\"mountains.jpg\"\n onRemovePress={buttonPress}\n />\n <ImageAttachmentPreview\n size=\"sm\"\n uri={URL.image}\n fileName=\"mountains.jpg\"\n onRemovePress={buttonPress}\n loading\n hideRemoveButton\n />\n <ImageAttachmentPreview\n uri={URL.image}\n fileName=\"mountains.jpg\"\n onRemovePress={buttonPress}\n loading\n hideRemoveButton\n />\n <ImageAttachmentPreview\n size=\"sm\"\n uri={URL.image}\n fileName=\"mountains.jpg\"\n onRemovePress={buttonPress}\n error\n />\n <ImageAttachmentPreview\n uri={URL.image}\n fileName=\"mountains.jpg\"\n onRemovePress={buttonPress}\n error\n />\n </Row>\n </Group>\n <Group\n title=\"VideoAttachmentPreview\"\n description=\"Displays an video attachment with a close button. It takes a `name` prop, an optional duration, and can show loading and error states.\"\n >\n <Row>\n <VideoAttachmentPreview name=\"mountains.mp4\" onRemovePress={buttonPress} />\n <VideoAttachmentPreview\n name=\"mountains.mp4\"\n duration=\"1:20\"\n onRemovePress={buttonPress}\n />\n <VideoAttachmentPreview\n name=\"mountains.mp4\"\n onRemovePress={buttonPress}\n loading\n hideRemoveButton\n />\n <VideoAttachmentPreview\n name=\"mountains.mp4\"\n duration=\"1:20\"\n onRemovePress={buttonPress}\n error\n />\n </Row>\n </Group>\n <Group\n title=\"Avatar\"\n description='Displays the profile image for a user in different sizes and has a loading spinner. Can optionally show an online/offline \"presence\" indicator. Fallback condition and icon are optionally configurable.'\n >\n <Row>\n <Avatar sourceUri={URL.broken} />\n <Avatar size=\"md\" sourceUri={URL.avatar_fallback} />\n <Avatar sourceUri={URL.avatar} />\n </Row>\n <Row>\n <Avatar presence=\"offline\" sourceUri={URL.broken} />\n <Avatar presence=\"online\" size=\"md\" sourceUri={URL.avatar_fallback} />\n <Avatar presence=\"offline\" sourceUri={URL.avatar} />\n </Row>\n <Row>\n <Avatar sourceUri=\"\" />\n <Avatar sourceUri=\"\" size=\"md\" />\n <Avatar sourceUri=\"\" size=\"sm\" />\n <Avatar\n sourceUri={URL.broken}\n showFallback={true}\n fallbackIconName=\"general.star\"\n size=\"sm\"\n />\n </Row>\n </Group>\n <Group\n title=\"AvatarGroup\"\n description=\"Shows 1-4 images in a grid at different sizes. Loading spinner shows until all images successfully load. Fallback condition and icon are optionally configurable.\"\n >\n <Row>\n <AvatarGroup sourceUris={[URL.broken]} />\n <AvatarGroup sourceUris={[URL.broken, URL.broken, ...URL.two_avatars]} />\n <AvatarGroup sourceUris={[URL.avatar]} />\n <AvatarGroup sourceUris={URL.two_avatars} />\n <AvatarGroup sourceUris={URL.three_avatars} />\n <AvatarGroup sourceUris={URL.four_avatars} />\n </Row>\n <Row>\n <AvatarGroup sourceUris={[]} showFallback={true} fallbackIconName=\"general.person\" />\n <AvatarGroup\n sourceUris={[]}\n showFallback={true}\n fallbackIconName=\"people.noTextMessage\"\n />\n <AvatarGroup\n sourceUris={[]}\n showFallback={true}\n fallbackIconName=\"general.star\"\n size=\"md\"\n />\n <AvatarGroup\n sourceUris={[]}\n showFallback={true}\n fallbackIconName=\"general.heart\"\n size=\"sm\"\n />\n </Row>\n </Group>\n <Group\n title=\"Icon\"\n description=\"Displays any icon from @planningcenter/icons. Missing icons will fallback to a grey circle. Styling with `fontSize` will allow it to scale with the device's text a11y size.\"\n >\n <Row>\n {/* @ts-expect-error - Testing missing icon fallback */}\n <Icon name=\"missingIcon\" size={20} />\n <Icon name=\"general.textMessage\" size={20} />\n <Icon name=\"general.bell\" size={20} color={colors.needsDesignPass} />\n <Icon name=\"churchCenter.sort\" style={styles.icon} />\n </Row>\n </Group>\n </CollapsableSection>\n )\n}\n\nfunction FormControlsSection({ isLast }: SectionProps) {\n const [switchOn, setSwitchOn] = useState(true)\n const [switchOff, setSwitchOff] = useState(false)\n\n return (\n <CollapsableSection title=\"Form Controls\" isLast={isLast}>\n <Group\n title=\"Switch\"\n description=\"Use to toggle a boolean value for some sort of contained setting. (ie. Muting a conversation) This is a light wrapper that takes into account themed colors.\"\n >\n <Row>\n <Switch value={switchOn} onValueChange={value => setSwitchOn(value)} />\n <Switch value={switchOff} onValueChange={value => setSwitchOff(value)} />\n <Switch value={true} disabled />\n <Switch value={false} disabled />\n </Row>\n </Group>\n </CollapsableSection>\n )\n}\n\nfunction StatusComponentsSection({ isLast }: SectionProps) {\n return (\n <CollapsableSection title=\"Status components\" isLast={isLast}>\n <Group\n title=\"Badge\"\n description=\"Badge that can convey a status and show an icon. It also supports a meta label and product logo for the conversation list and conversation header. Target products can change colors and hide the logo via theming.\"\n >\n <Row>\n <Badge label=\"Neutral\" appearance=\"neutral\" />\n <Badge label=\"Error\" appearance=\"error\" />\n <Badge label=\"Info\" appearance=\"info\" />\n <Badge label=\"Success\" appearance=\"success\" />\n <Badge label=\"Warning\" appearance=\"warning\" />\n </Row>\n <Row>\n <Badge label=\"Neutral\" appearance=\"neutral\" iconName=\"general.star\" />\n <Badge label=\"Error\" appearance=\"error\" iconName=\"general.exclamationTriangle\" />\n <Badge label=\"Info\" appearance=\"info\" iconName=\"general.outlinedInfoCircle\" />\n <Badge label=\"Success\" appearance=\"success\" iconName=\"general.check\" />\n <Badge label=\"Warning\" appearance=\"warning\" iconName=\"general.shieldExclamation\" />\n </Row>\n <Row>\n <Badge\n variant=\"meta\"\n productLogoName=\"groups\"\n label=\"Group\"\n metaLabel=\"Worlds longest group name that will probably overflow if it gets very much longer\"\n />\n <Badge variant=\"meta\" productLogoName=\"groups\" label=\"Group\" metaLabel=\"Young adults\" />\n <Badge variant=\"meta\" productLogoName=\"services\" label=\"Plan\" metaLabel=\"June 19, 2025\" />\n <Badge variant=\"meta\" productLogoName=\"services\" label=\"Team\" />\n </Row>\n <Row>\n <Badge\n variant=\"metaSubtle\"\n productLogoName=\"groups\"\n label=\"Group\"\n metaLabel=\"Worlds longest group name that will probably overflow if it gets very much longer\"\n />\n <Badge\n variant=\"metaSubtle\"\n productLogoName=\"groups\"\n label=\"Group\"\n metaLabel=\"Young adults\"\n />\n <Badge\n variant=\"metaSubtle\"\n productLogoName=\"services\"\n label=\"Plan\"\n metaLabel=\"June 19, 2025\"\n />\n <Badge variant=\"metaSubtle\" productLogoName=\"services\" label=\"Team\" />\n </Row>\n </Group>\n <Group\n title=\"Banner\"\n description=\"Banners that can convey a status with color and an optional icon. They render a description and optional heading. A `Banner.Link` can be used by wrapping it in `Banner.Text` and passing it to `description`. Target products can change colors via theming.\"\n >\n <Column>\n <Banner\n appearance=\"neutral\"\n showIcon={false}\n description=\"Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt.\"\n />\n <Banner\n appearance=\"info\"\n heading=\"Banner heading\"\n description=\"Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt.\"\n />\n <Banner\n appearance=\"success\"\n heading=\"Banner heading\"\n description={\n <BannerPrimitive.Text>\n Et sint Quis non excepturi{' '}\n <BannerPrimitive.Link onPress={buttonPress}>\n enim et conseq atur porro est\n </BannerPrimitive.Link>{' '}\n galisum labore ea volupt.\n </BannerPrimitive.Text>\n }\n />\n <Banner\n appearance=\"warning\"\n iconName=\"general.shieldExclamation\"\n heading=\"13 members under age 13\"\n description=\"Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt.\"\n />\n <Banner\n appearance=\"error\"\n heading=\"Banner heading\"\n description=\"Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt.\"\n />\n </Column>\n </Group>\n <Group\n title=\"BannerCollapsible\"\n description=\"Same as `Banner` but takes children that can be hidden/revealed on a tap.\"\n >\n <Column>\n <BannerCollapsible appearance=\"neutral\" showIcon={false} heading=\"Banner heading\">\n <BannerPrimitive.Text>\n Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt.\n </BannerPrimitive.Text>\n </BannerCollapsible>\n <BannerCollapsible appearance=\"info\" heading=\"Banner heading\">\n <BannerPrimitive.Text>\n Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt.\n </BannerPrimitive.Text>\n </BannerCollapsible>\n <BannerCollapsible appearance=\"success\" heading=\"Banner heading\">\n <BannerPrimitive.Text>\n Et sint Quis non excepturi{' '}\n <BannerPrimitive.Link onPress={buttonPress}>\n enim et conseq atur porro est\n </BannerPrimitive.Link>{' '}\n galisum labore ea volupt.\n </BannerPrimitive.Text>\n </BannerCollapsible>\n <BannerCollapsible\n appearance=\"warning\"\n iconName=\"general.shieldExclamation\"\n heading=\"13 members under age 13\"\n description=\"Et sint Quis non excepturi enim et conse.\"\n >\n <BannerPrimitive.Text>\n More hdden content that can be revealed on a tap. Lorem ipsum dolor sit amet,\n consectetur\n </BannerPrimitive.Text>\n </BannerCollapsible>\n <BannerCollapsible\n appearance=\"error\"\n heading=\"Banner heading\"\n description=\"Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt.\"\n >\n <BannerPrimitive.Text>\n Et sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt. Et\n sint Quis non excepturi enim et conseq atur porro est galisum labore ea volupt. Et\n sint Quis non excepturi enim et .\n </BannerPrimitive.Text>\n </BannerCollapsible>\n </Column>\n </Group>\n </CollapsableSection>\n )\n}\n\nconst FA_ICONS: { category: string; icons: IconName[] }[] = [\n {\n category: 'Church',\n icons: [\n 'book-bible',\n 'church',\n 'cross',\n 'dove',\n 'hands-heart',\n 'person-rays',\n 'praying-hands',\n 'podium',\n 'droplet',\n 'person-drowning',\n 'lighthouse',\n ],\n },\n {\n category: 'Services',\n icons: [\n 'guitar',\n 'guitar-electric',\n 'violin',\n 'calendar-heart',\n 'hand-heart',\n 'hand-wave',\n 'baby',\n 'children',\n 'mug-hot',\n 'video-camera',\n 'music',\n 'piano-keyboard',\n 'drum',\n 'user-graduate',\n 'comments-question',\n 'presentation',\n 'microphone-stand',\n 'id-badge',\n 'book-user',\n 'hand-holding-heart',\n 'guitars',\n 'amp-guitar',\n 'school-flag',\n 'shield-check',\n 'projector',\n ],\n },\n {\n category: 'Groups',\n icons: [\n 'people',\n 'people-group',\n 'person-dress',\n 'person',\n 'seedling',\n 'comments-alt',\n 'globe',\n 'book-open-reader',\n 'running',\n 'leaf',\n ],\n },\n]\n\nfunction FontAwesomeIconsSection({ isLast }: SectionProps) {\n const { colors } = useTheme()\n\n return (\n <CollapsableSection title=\"FontAwesome Pro Icons\" isLast={isLast}>\n {FA_ICONS.map(({ category, icons }) => (\n <Group key={category} title={category}>\n <View style={faStyles.grid}>\n {icons.map(name => (\n <View key={name} style={faStyles.cell}>\n <FontAwesomeIcon\n icon={['fas', name]}\n size={20}\n color={colors.iconColorDefaultSecondary}\n />\n <Text variant=\"footnote\" numberOfLines={1}>\n {name}\n </Text>\n </View>\n ))}\n </View>\n </Group>\n ))}\n </CollapsableSection>\n )\n}\n\nconst faStyles = StyleSheet.create({\n grid: {\n flexDirection: 'row',\n flexWrap: 'wrap',\n },\n cell: {\n width: '25%',\n alignItems: 'center',\n gap: 4,\n paddingVertical: 12,\n },\n})\n\nfunction MiscComponentsSection({ isLast }: SectionProps) {\n return (\n <CollapsableSection title=\"Misc components\" isLast={isLast}>\n <Group\n title=\"Person\"\n description=\"Takes a person object (`MemberResource` type) and displays an avatar, name, and badges. If person is a child we show a special badge and faded styles. Implomentation is based on a similar Chat Web component.\"\n >\n <Column>\n <Person person={personAdult} />\n <Person person={personChild} />\n </Column>\n </Group>\n <Group\n title=\"BlankState\"\n description=\"Compound component with primitives to display imagary, heading, title, and a button.\"\n >\n <Column>\n <BlankState.Root>\n <BlankState.Imagery name=\"general.outlinedTextMessage\" />\n <BlankState.Content>\n <BlankState.Heading>No messages</BlankState.Heading>\n <BlankState.Text>\n Conversation is hidden from everyone until you send a message.\n </BlankState.Text>\n </BlankState.Content>\n <BlankState.Button\n onPress={buttonPress}\n title=\"Go back\"\n accessibilityHint=\"Navigates back to the conversations list\"\n accessibilityRole=\"link\"\n />\n </BlankState.Root>\n </Column>\n </Group>\n </CollapsableSection>\n )\n}\n\n// =================================\n// ====== Docs UI ==================\n// =================================\ninterface CollapsableSectionProps {\n children: React.ReactNode\n title: string\n isLast?: boolean\n}\n\nfunction CollapsableSection({ children, title, isLast = false }: CollapsableSectionProps) {\n const styles = useStyles()\n const { colors } = useTheme()\n const [collapsed, setCollapsed] = useState(true)\n\n return (\n <View style={[styles.section, styles.sectionBorderTop, isLast && styles.sectionBorderBottom]}>\n <Pressable\n onPress={() => setCollapsed(!collapsed)}\n style={({ pressed }) => [styles.sectionHeader, pressed && platformPressedOpacityStyle]}\n android_ripple={{ color: colors.androidRippleNeutral, borderless: false, foreground: true }}\n >\n <Heading>{title}</Heading>\n <Icon name={collapsed ? 'general.plus' : 'general.minus'} size={16} />\n </Pressable>\n {!collapsed && <View style={styles.sectionChildren}>{children}</View>}\n </View>\n )\n}\n\ninterface GroupProps {\n title: string\n description?: string\n children: React.ReactNode\n}\n\nfunction Group({ title, description, children }: GroupProps) {\n const styles = useStyles()\n return (\n <View style={styles.group}>\n <View style={styles.groupHeading}>\n <Heading variant=\"h3\">{title}</Heading>\n {description && <Text variant=\"tertiary\">{description}</Text>}\n </View>\n {children}\n </View>\n )\n}\n\ninterface RowProps {\n children: React.ReactNode\n style?: ViewStyle\n}\n\nfunction Row({ children, style }: RowProps) {\n const styles = useStyles()\n return <View style={[styles.row, style]}>{children}</View>\n}\n\ninterface ColumnProps {\n children: React.ReactNode\n style?: ViewStyle\n}\n\nfunction Column({ children, style }: ColumnProps) {\n const styles = useStyles()\n return <View style={[styles.column, style]}>{children}</View>\n}\n\nfunction TextGroup({ children }: { children: React.ReactNode }) {\n const styles = useStyles()\n return <View style={styles.textGroup}>{children}</View>\n}\n\ninterface TextRowProps {\n children: React.ReactNode\n style?: ViewStyle\n}\n\nfunction TextRow({ children, style }: TextRowProps) {\n const styles = useStyles()\n return <View style={[styles.textRow, style]}>{children}</View>\n}\n\ninterface TextListItemProps {\n label: string\n children: React.ReactNode\n}\n\nfunction TextListItem({ label, children }: TextListItemProps) {\n const styles = useStyles()\n return (\n <Text variant=\"tertiary\">\n <Text variant=\"tertiary\" style={styles.mediumWeight}>\n {label}\n </Text>{' '}\n {children}\n </Text>\n )\n}\n\nfunction HapticButton({ title, onPress }: { title: string; onPress: () => void }) {\n const styles = useStyles()\n\n return (\n <Pressable\n onPress={onPress}\n style={({ pressed }) => ({\n ...styles.hapticButton,\n ...{ opacity: pressed ? 0.5 : 1 },\n })}\n >\n <Text style={styles.hapticButtonText}>{title}</Text>\n </Pressable>\n )\n}\n\n// =================================\n// ====== Styles ===================\n// =================================\n\nconst useStyles = () => {\n const { colors } = useTheme()\n const interactionGhostBackgroundColor = useInteractionGhostBackgroundColor()\n\n return StyleSheet.create({\n hapticButton: {\n flexGrow: 1,\n height: 100,\n padding: 16,\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: interactionGhostBackgroundColor,\n borderWidth: 1,\n borderColor: colors.interaction,\n borderRadius: 8,\n },\n hapticButtonText: {\n textAlign: 'center',\n color: colors.interaction,\n },\n scrollView: {\n flex: 1,\n backgroundColor: colors.fillColorNeutral100Inverted,\n },\n container: {\n padding: 24,\n },\n listItem: { color: colors.fillColorNeutral020 },\n section: {\n gap: 8,\n borderColor: colors.fillColorNeutral020,\n },\n sectionBorderTop: {\n borderTopWidth: 1,\n },\n sectionBorderBottom: {\n borderBottomWidth: 1,\n },\n sectionHeader: {\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n paddingVertical: 24,\n },\n sectionChildren: {\n paddingBottom: 24,\n gap: 48,\n },\n row: {\n gap: 16,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n flexWrap: 'wrap',\n },\n column: {\n gap: 16,\n },\n columnCenter: {\n alignItems: 'center',\n },\n textRow: {\n gap: 12,\n },\n textGroup: {\n gap: 20,\n },\n mediumWeight: {\n fontWeight: platformFontWeightMedium,\n },\n alignRowLeft: {\n justifyContent: 'flex-start',\n },\n group: {\n gap: 24,\n },\n groupHeading: {\n gap: 8,\n },\n image: {\n width: 100,\n height: 100,\n },\n icon: {\n fontSize: 20,\n color: colors.iconColorDefaultSecondary,\n },\n customIconButtonColor: {\n color: 'purple',\n },\n })\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups_member_resource_with_person.d.ts","sourceRoot":"","sources":["../../../../src/types/resources/groups/groups_member_resource_with_person.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,QAAQ,CAAA;IACd,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,EAAE;QACN,SAAS,EAAE,MAAM,CAAA;QACjB,QAAQ,EAAE,MAAM,CAAA;QAChB,SAAS,EAAE,MAAM,CAAA;QACjB,KAAK,EAAE,OAAO,CAAA;QACd,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,QAAQ,CAAA;KACf,CAAA;CACF"}
|
|
1
|
+
{"version":3,"file":"groups_member_resource_with_person.d.ts","sourceRoot":"","sources":["../../../../src/types/resources/groups/groups_member_resource_with_person.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,QAAQ,CAAA;IACd,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,EAAE;QACN,SAAS,EAAE,MAAM,CAAA;QACjB,QAAQ,EAAE,MAAM,CAAA;QAChB,SAAS,EAAE,MAAM,CAAA;QACjB,KAAK,EAAE,OAAO,CAAA;QACd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;QACrB,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,QAAQ,CAAA;KACf,CAAA;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups_member_resource_with_person.js","sourceRoot":"","sources":["../../../../src/types/resources/groups/groups_member_resource_with_person.ts"],"names":[],"mappings":"","sourcesContent":["export interface GroupsGroupMemberResource {\n type: 'Member'\n id: number\n role?: string\n person: {\n firstName: string\n lastName: string\n avatarUrl: string\n child: boolean\n id: number\n type: 'Person'\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"groups_member_resource_with_person.js","sourceRoot":"","sources":["../../../../src/types/resources/groups/groups_member_resource_with_person.ts"],"names":[],"mappings":"","sourcesContent":["export interface GroupsGroupMemberResource {\n type: 'Member'\n id: number\n role?: string\n person: {\n firstName: string\n lastName: string\n avatarUrl: string\n child: boolean\n gender: string | null\n id: number\n type: 'Person'\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member.d.ts","sourceRoot":"","sources":["../../../src/types/resources/member.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,QAAQ,CAAA;IACd,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;CACd"}
|
|
1
|
+
{"version":3,"file":"member.d.ts","sourceRoot":"","sources":["../../../src/types/resources/member.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,QAAQ,CAAA;IACd,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;CACd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member.js","sourceRoot":"","sources":["../../../src/types/resources/member.ts"],"names":[],"mappings":"","sourcesContent":["export interface MemberResource {\n type: 'Member'\n id: number\n name: string\n avatar: string\n badges: MemberBadge[]\n child: boolean\n role?: string\n}\n\nexport interface MemberBadge {\n title: string\n}\n"]}
|
|
1
|
+
{"version":3,"file":"member.js","sourceRoot":"","sources":["../../../src/types/resources/member.ts"],"names":[],"mappings":"","sourcesContent":["export interface MemberResource {\n type: 'Member'\n id: number\n name: string\n avatar: string\n badges: MemberBadge[]\n child: boolean\n gender: string | null\n role?: string\n}\n\nexport interface MemberBadge {\n title: string\n}\n"]}
|
|
@@ -10,7 +10,7 @@ export declare class UploadUri {
|
|
|
10
10
|
});
|
|
11
11
|
get schema(): "http" | "https";
|
|
12
12
|
get host(): string;
|
|
13
|
-
get subdomain(): "upload
|
|
13
|
+
get subdomain(): "upload" | "upload-staging";
|
|
14
14
|
get domain(): 'pco' | 'planningcenteronline';
|
|
15
15
|
get tld(): "test" | "com";
|
|
16
16
|
get env(): import("./session").ENV;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planningcenter/chat-react-native",
|
|
3
|
-
"version": "3.30.0-rc.
|
|
3
|
+
"version": "3.30.0-rc.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"react-native-url-polyfill": "^2.0.0",
|
|
64
64
|
"typescript": "<5.6.0"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "9d40312a8114d66a3bc526d95d43851fc5c353c0"
|
|
67
67
|
}
|
|
@@ -20,7 +20,13 @@ export type GroupMembersForNewConversationResult = Omit<
|
|
|
20
20
|
* This is specifically for the new conversation screen because we assign
|
|
21
21
|
* the "Conversation owner" badge to the current person.
|
|
22
22
|
*/
|
|
23
|
-
export function useGroupMembersForNewConversation({
|
|
23
|
+
export function useGroupMembersForNewConversation({
|
|
24
|
+
id,
|
|
25
|
+
gender,
|
|
26
|
+
}: {
|
|
27
|
+
id: number
|
|
28
|
+
gender: string | null
|
|
29
|
+
}) {
|
|
24
30
|
const currentPerson = useCurrentPerson()
|
|
25
31
|
const response = useSuspensePaginator<GroupsGroupMemberResource>({
|
|
26
32
|
url: `/me/groups/${id}/memberships`,
|
|
@@ -29,8 +35,9 @@ export function useGroupMembersForNewConversation({ id }: { id: number }) {
|
|
|
29
35
|
include: ['person'],
|
|
30
36
|
fields: {
|
|
31
37
|
Membership: ['person, role'],
|
|
32
|
-
Person: ['avatar_url', 'name', 'first_name', 'last_name', 'child'],
|
|
38
|
+
Person: ['avatar_url', 'name', 'first_name', 'last_name', 'child', 'gender'],
|
|
33
39
|
},
|
|
40
|
+
...(gender ? { where: { gender } } : {}),
|
|
34
41
|
},
|
|
35
42
|
app: 'groups',
|
|
36
43
|
})
|
|
@@ -43,6 +50,7 @@ export function useGroupMembersForNewConversation({ id }: { id: number }) {
|
|
|
43
50
|
avatar: person.avatarUrl,
|
|
44
51
|
badges: buildBadges(membership, currentPerson.id),
|
|
45
52
|
child: person.child,
|
|
53
|
+
gender: person.gender,
|
|
46
54
|
id: +person.id,
|
|
47
55
|
name: `${person.firstName} ${person.lastName}`,
|
|
48
56
|
source: [],
|
package/src/index.tsx
CHANGED
|
@@ -44,9 +44,13 @@ export const GroupsForm = ({ groupId, chat_group_graph_id }: GroupsFormProps) =>
|
|
|
44
44
|
app: 'groups',
|
|
45
45
|
})
|
|
46
46
|
|
|
47
|
-
const groupMemberships = useGroupMembersForNewConversation({ id: groupId })
|
|
48
|
-
|
|
49
47
|
const activeGenderId = genderFilterEnabled ? genderId : null
|
|
48
|
+
const activeGenderValue = genderFilterEnabled ? genderValue : null
|
|
49
|
+
|
|
50
|
+
const groupMemberships = useGroupMembersForNewConversation({
|
|
51
|
+
id: groupId,
|
|
52
|
+
gender: activeGenderValue,
|
|
53
|
+
})
|
|
50
54
|
|
|
51
55
|
const handleGenderToggle = (enabled: boolean) => {
|
|
52
56
|
const displayLabel = genderValue ? genderDisplayLabel(genderValue) : ''
|
|
@@ -101,6 +105,7 @@ export const GroupsForm = ({ groupId, chat_group_graph_id }: GroupsFormProps) =>
|
|
|
101
105
|
genderFetching={genderFetching}
|
|
102
106
|
onGenderToggle={handleGenderToggle}
|
|
103
107
|
groupMemberships={groupMemberships}
|
|
108
|
+
filteredMemberCount={groupMemberships.adultMembers.length}
|
|
104
109
|
/>
|
|
105
110
|
}
|
|
106
111
|
/>
|
|
@@ -124,6 +129,7 @@ interface FormContentProps {
|
|
|
124
129
|
genderFetching: boolean
|
|
125
130
|
onGenderToggle: (enabled: boolean) => void
|
|
126
131
|
groupMemberships: GroupMembersForNewConversationResult
|
|
132
|
+
filteredMemberCount: number
|
|
127
133
|
}
|
|
128
134
|
|
|
129
135
|
function FormContent({
|
|
@@ -136,6 +142,7 @@ function FormContent({
|
|
|
136
142
|
genderFetching,
|
|
137
143
|
onGenderToggle,
|
|
138
144
|
groupMemberships,
|
|
145
|
+
filteredMemberCount,
|
|
139
146
|
}: FormContentProps) {
|
|
140
147
|
const styles = useStyles()
|
|
141
148
|
const inputRef = useRef<TextInput>(null)
|
|
@@ -150,7 +157,8 @@ function FormContent({
|
|
|
150
157
|
|
|
151
158
|
const childMembers = groupMemberships.childMembers
|
|
152
159
|
const hasChildren = childMembers.length > 0
|
|
153
|
-
const
|
|
160
|
+
const displayCount = genderFilterEnabled ? filteredMemberCount : membershipsCount
|
|
161
|
+
const memberHeaderLabel = `${pluralize(displayCount, 'member')} selected`
|
|
154
162
|
|
|
155
163
|
const showMemberError = groupMemberships.isError
|
|
156
164
|
|
|
@@ -64,6 +64,7 @@ const personAdult = {
|
|
|
64
64
|
avatar: URL.avatar,
|
|
65
65
|
badges: [{ title: 'Conversation owner' }, { title: 'Leader' }],
|
|
66
66
|
child: false,
|
|
67
|
+
gender: null,
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
const personChild = {
|
|
@@ -73,6 +74,7 @@ const personChild = {
|
|
|
73
74
|
avatar: URL.two_avatars[1],
|
|
74
75
|
badges: [],
|
|
75
76
|
child: true,
|
|
77
|
+
gender: null,
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
const buttonPress = () => Alert.alert('Button clicked')
|