@planningcenter/chat-react-native 3.13.2-rc.3 → 3.14.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"design_system_screen.d.ts","sourceRoot":"","sources":["../../src/screens/design_system_screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAgFvC,wBAAgB,kBAAkB,sBAiBjC"}
1
+ {"version":3,"file":"design_system_screen.d.ts","sourceRoot":"","sources":["../../src/screens/design_system_screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAiFvC,wBAAgB,kBAAkB,sBAkBjC"}
@@ -1,8 +1,8 @@
1
1
  import React, { useState } from 'react';
2
2
  import { Alert, Pressable, ScrollView, StyleSheet, View } from 'react-native';
3
- import { useTheme } from '../hooks';
3
+ import { useInteractionGhostBackgroundColor, useTheme } from '../hooks';
4
4
  import { Avatar, AvatarGroup, Badge, Banner, BannerCollapsible, BlankState, Button, ToggleButton, Heading, Icon, IconButton, Image, Person, Spinner, Switch, Text, TextButton, TextInlineButton, ImageAttachmentPreview, } from '../components/display';
5
- import { MAX_FONT_SIZE_MULTIPLIER, platformPressedOpacityStyle, platformFontWeightMedium, } from '../utils';
5
+ import { MAX_FONT_SIZE_MULTIPLIER, platformPressedOpacityStyle, platformFontWeightMedium, Haptic, } from '../utils';
6
6
  import BannerPrimitive from '../components/primitive/banner_primitive';
7
7
  import { VideoAttachmentPreview } from '../components/display/video_attachment_preview';
8
8
  // =================================
@@ -55,6 +55,7 @@ export function DesignSystemScreen() {
55
55
  <IndicatorsSection />
56
56
  <HeadingTextSection />
57
57
  <PressablesSection />
58
+ <HapticsSection />
58
59
  <ImageIconsSection />
59
60
  <FormControlsSection />
60
61
  <StatusComponentsSection />
@@ -373,6 +374,32 @@ function PressablesSection({ isLast }) {
373
374
  </Group>
374
375
  </CollapsableSection>);
375
376
  }
377
+ function HapticsSection({ isLast }) {
378
+ return (<CollapsableSection title="Haptics" isLast={isLast}>
379
+ <TextGroup>
380
+ <Text>
381
+ Haptics help communicate changes and interactions in the UI by making them feel physical
382
+ and "weighty". They are a progressive enhancement and shouldn't replace visual feedback.
383
+ </Text>
384
+ </TextGroup>
385
+ <Group title="Impact" description="Communicates that a user interaction is occurring.">
386
+ <Row>
387
+ <HapticButton title="Impact Light" onPress={() => Haptic.impactLight()}/>
388
+ <HapticButton title="Impact Medium" onPress={() => Haptic.impactMedium()}/>
389
+ <HapticButton title="Impact Heavy" onPress={() => Haptic.impactHeavy()}/>
390
+ <HapticButton title="Rigid" onPress={() => Haptic.rigid()}/>
391
+ <HapticButton title="Soft" onPress={() => Haptic.soft()}/>
392
+ </Row>
393
+ </Group>
394
+ <Group title="Notification" description="Communicates the result of a user or application action.">
395
+ <Row>
396
+ <HapticButton title="Notification Success" onPress={() => Haptic.notificationSuccess()}/>
397
+ <HapticButton title="Notification Warning" onPress={() => Haptic.notificationWarning()}/>
398
+ <HapticButton title="Notification Error" onPress={() => Haptic.notificationError()}/>
399
+ </Row>
400
+ </Group>
401
+ </CollapsableSection>);
402
+ }
376
403
  function ImageIconsSection({ isLast }) {
377
404
  const styles = useStyles();
378
405
  const { colors } = useTheme();
@@ -611,12 +638,37 @@ function TextListItem({ label, children }) {
611
638
  {children}
612
639
  </Text>);
613
640
  }
641
+ function HapticButton({ title, onPress }) {
642
+ const styles = useStyles();
643
+ return (<Pressable onPress={onPress} style={({ pressed }) => ({
644
+ ...styles.hapticButton,
645
+ ...{ opacity: pressed ? 0.5 : 1 },
646
+ })}>
647
+ <Text style={styles.hapticButtonText}>{title}</Text>
648
+ </Pressable>);
649
+ }
614
650
  // =================================
615
651
  // ====== Styles ===================
616
652
  // =================================
617
653
  const useStyles = () => {
618
654
  const { colors } = useTheme();
655
+ const interactionGhostBackgroundColor = useInteractionGhostBackgroundColor();
619
656
  return StyleSheet.create({
657
+ hapticButton: {
658
+ flexGrow: 1,
659
+ height: 100,
660
+ padding: 16,
661
+ alignItems: 'center',
662
+ justifyContent: 'center',
663
+ backgroundColor: interactionGhostBackgroundColor,
664
+ borderWidth: 1,
665
+ borderColor: colors.interaction,
666
+ borderRadius: 8,
667
+ },
668
+ hapticButtonText: {
669
+ textAlign: 'center',
670
+ color: colors.interaction,
671
+ },
620
672
  scrollView: {
621
673
  flex: 1,
622
674
  backgroundColor: colors.fillColorNeutral100Inverted,
@@ -1 +1 @@
1
- {"version":3,"file":"design_system_screen.js","sourceRoot":"","sources":["../../src/screens/design_system_screen.tsx"],"names":[],"mappings":"AAAA,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,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EACL,MAAM,EACN,WAAW,EACX,KAAK,EACL,MAAM,EACN,iBAAiB,EACjB,UAAU,EACV,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,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,wBAAwB,GACzB,MAAM,UAAU,CAAA;AACjB,OAAO,eAAe,MAAM,0CAA0C,CAAA;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAA;AAEvF,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,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EAAE,MAAM,CAAC,mBAAmB;SACxC;QACD,gBAAgB,EAAE;YAChB,cAAc,EAAE,CAAC;SAClB;QACD,mBAAmB,EAAE;YACnB,iBAAiB,EAAE,CAAC;SACrB;QACD,aAAa,EAAE;YACb,aAAa,EAAE,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 React, { useState } from 'react'\nimport { Alert, Pressable, ScrollView, StyleSheet, View } from 'react-native'\nimport type { ViewStyle } from 'react-native'\nimport { useTheme } from '../hooks'\nimport {\n Avatar,\n AvatarGroup,\n Badge,\n Banner,\n BannerCollapsible,\n BlankState,\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 {\n MAX_FONT_SIZE_MULTIPLIER,\n platformPressedOpacityStyle,\n platformFontWeightMedium,\n} from '../utils'\nimport BannerPrimitive from '../components/primitive/banner_primitive'\nimport { VideoAttachmentPreview } from '../components/display/video_attachment_preview'\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 <ImageIconsSection />\n <FormControlsSection />\n <StatusComponentsSection />\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/mobile/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}\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 - Icon name is not a string */}\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\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=\"Displays a title and an optional icon, subtitle, and button. Button can be customized via `buttonProps`.\"\n >\n <Column>\n <BlankState\n iconName=\"general.outlinedTextMessage\"\n title=\"No messages\"\n subtitle=\"Conversation is hidden from everyone until you send a message.\"\n buttonProps={{\n onPress: buttonPress,\n title: 'Go back',\n accessibilityHint: 'Navigates back to the conversations list',\n accessibilityRole: 'link',\n }}\n />\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\n// =================================\n// ====== Styles ===================\n// =================================\n\nconst useStyles = () => {\n const { colors } = useTheme()\n\n return StyleSheet.create({\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":"AAAA,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,EAAE,kCAAkC,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACvE,OAAO,EACL,MAAM,EACN,WAAW,EACX,KAAK,EACL,MAAM,EACN,iBAAiB,EACjB,UAAU,EACV,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,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,wBAAwB,EACxB,MAAM,GACP,MAAM,UAAU,CAAA;AACjB,OAAO,eAAe,MAAM,0CAA0C,CAAA;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAA;AAEvF,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,Y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BAAgB,EAAE;YAChB,cAAc,EAAE,CAAC;SAClB;QACD,mBAAmB,EAAE;YACnB,iBAAiB,EAAE,CAAC;SACrB;QACD,aAAa,EAAE;YACb,aAAa,EAAE,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 React, { useState } from 'react'\nimport { Alert, Pressable, ScrollView, StyleSheet, View } from 'react-native'\nimport type { ViewStyle } from 'react-native'\nimport { useInteractionGhostBackgroundColor, useTheme } from '../hooks'\nimport {\n Avatar,\n AvatarGroup,\n Badge,\n Banner,\n BannerCollapsible,\n BlankState,\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 {\n MAX_FONT_SIZE_MULTIPLIER,\n platformPressedOpacityStyle,\n platformFontWeightMedium,\n Haptic,\n} from '../utils'\nimport BannerPrimitive from '../components/primitive/banner_primitive'\nimport { VideoAttachmentPreview } from '../components/display/video_attachment_preview'\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 <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/mobile/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 - Icon name is not a string */}\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\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=\"Displays a title and an optional icon, subtitle, and button. Button can be customized via `buttonProps`.\"\n >\n <Column>\n <BlankState\n iconName=\"general.outlinedTextMessage\"\n title=\"No messages\"\n subtitle=\"Conversation is hidden from everyone until you send a message.\"\n buttonProps={{\n onPress: buttonPress,\n title: 'Go back',\n accessibilityHint: 'Navigates back to the conversations list',\n accessibilityRole: 'link',\n }}\n />\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"]}
@@ -4,6 +4,7 @@ import { ClipboardAdapter } from './clipboard';
4
4
  import { ImagePickerAdapter } from './image_picker';
5
5
  import { VideoAdapter } from './video';
6
6
  import { LinkingAdapter } from './linking';
7
+ import { HapticAdapter } from './haptic';
7
8
  type ChatConfigurations = {
8
9
  clipboard: ClipboardAdapter;
9
10
  audio: AudioAdapter;
@@ -11,6 +12,7 @@ type ChatConfigurations = {
11
12
  imagePicker: ImagePickerAdapter;
12
13
  log?: LogAdapter;
13
14
  linking?: LinkingAdapter;
15
+ haptic?: HapticAdapter;
14
16
  };
15
17
  export declare class ChatAdapters {
16
18
  static configure(configurations: ChatConfigurations): void;
@@ -21,5 +23,6 @@ export declare let Video: VideoAdapter;
21
23
  export declare let ImagePicker: ImagePickerAdapter;
22
24
  export declare let Log: LogAdapter;
23
25
  export declare let Linking: LinkingAdapter;
26
+ export declare let Haptic: HapticAdapter;
24
27
  export {};
25
28
  //# sourceMappingURL=configuration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/utils/native_adapters/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C,KAAK,kBAAkB,GAAG;IACxB,SAAS,EAAE,gBAAgB,CAAA;IAC3B,KAAK,EAAE,YAAY,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,WAAW,EAAE,kBAAkB,CAAA;IAC/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BAMpB,CAAA;AAEF,eAAO,IAAI,KAAK,EAAE,YAKhB,CAAA;AAEF,eAAO,IAAI,KAAK,EAAE,YAQhB,CAAA;AAEF,eAAO,IAAI,WAAW,EAAE,kBAStB,CAAA;AAEF,eAAO,IAAI,GAAG,EAAE,UAA6B,CAAA;AAE7C,eAAO,IAAI,OAAO,EAAE,cAA8C,CAAA;AAElE,eAAO,IAAI,MAAM,EAAE,aAAmC,CAAA"}
@@ -5,6 +5,7 @@ import { ImagePickerAdapter } from './image_picker';
5
5
  import { VideoAdapter } from './video';
6
6
  import { Linking as RNLinking } from 'react-native';
7
7
  import { LinkingAdapter } from './linking';
8
+ import { HapticAdapter } from './haptic';
8
9
  export class ChatAdapters {
9
10
  static configure(configurations) {
10
11
  Clipboard = configurations.clipboard;
@@ -13,6 +14,7 @@ export class ChatAdapters {
13
14
  ImagePicker = configurations.imagePicker;
14
15
  Log = configurations.log || new LogAdapter();
15
16
  Linking = configurations.linking || new LinkingAdapter(RNLinking);
17
+ Haptic = configurations.haptic || new HapticAdapter();
16
18
  }
17
19
  }
18
20
  const methodMissing = () => {
@@ -49,4 +51,5 @@ export let ImagePicker = new ImagePickerAdapter({
49
51
  });
50
52
  export let Log = new LogAdapter();
51
53
  export let Linking = new LinkingAdapter(RNLinking);
54
+ export let Haptic = new HapticAdapter();
52
55
  //# sourceMappingURL=configuration.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/utils/native_adapters/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,OAAO,IAAI,SAAS,EAA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AA;AAEF,MAAM,CAAC,IAAI,WAAW,GAAuB,IAAI,kBAAkB,CAAC;IAClE,eAAe,EAAE,KAAK,IAAI,EAAE;QAC1B,aAAa,EAAE,CAAA;QACf,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;IACzC,CAAC;IACD,qBAAqB,EAAE,KAAK,IAAI,EAAE;QAChC,aAAa,EAAE,CAAA;QACf,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;IACzC,CAAC;CACF,CAAC,CAAA;AAEF,MAAM,CAAC,IAAI,GAAG,GAAe,IAAI,UAAU,EAAE,CAAA;AAE7C,MAAM,CAAC,IAAI,OAAO,GAAmB,IAAI,cAAc,CAAC,SAAS,CAAC,CAAA","sourcesContent":["import { LogAdapter } from './log'\nimport { AudioAdapter } from './audio'\nimport { ClipboardAdapter } from './clipboard'\nimport { ImagePickerAdapter } from './image_picker'\nimport { VideoAdapter } from './video'\nimport { Linking as RNLinking } from 'react-native'\nimport { LinkingAdapter } from './linking'\n\ntype ChatConfigurations = {\n clipboard: ClipboardAdapter\n audio: AudioAdapter\n video: VideoAdapter\n imagePicker: ImagePickerAdapter\n log?: LogAdapter\n linking?: LinkingAdapter\n}\n\nexport class ChatAdapters {\n static configure(configurations: ChatConfigurations) {\n Clipboard = configurations.clipboard\n Audio = configurations.audio\n Video = configurations.video\n ImagePicker = configurations.imagePicker\n Log = configurations.log || new LogAdapter()\n Linking = configurations.linking || new LinkingAdapter(RNLinking)\n }\n}\n\nconst methodMissing = () => {\n console.warn('ChatAdapters.configure() must be called before using any adapters')\n}\n\nexport let Clipboard: ClipboardAdapter = new ClipboardAdapter({\n getStringAsync: async () => {\n methodMissing()\n return ''\n },\n setStringAsync: async (_: string) => methodMissing(),\n})\n\nexport let Audio: AudioAdapter = new AudioAdapter({\n useAudio: (_: string) => {\n methodMissing()\n return {} as any\n },\n})\n\nexport let Video: VideoAdapter = new VideoAdapter({\n Player: Object.assign(\n () => {\n methodMissing()\n return null\n },\n { $$typeof: Symbol.for('react.forward_ref') }\n ),\n})\n\nexport let ImagePicker: ImagePickerAdapter = new ImagePickerAdapter({\n openCameraAsync: async () => {\n methodMissing()\n return { canceled: true, assets: null }\n },\n openImageLibraryAsync: async () => {\n methodMissing()\n return { canceled: true, assets: null }\n },\n})\n\nexport let Log: LogAdapter = new LogAdapter()\n\nexport let Linking: LinkingAdapter = new LinkingAdapter(RNLinking)\n"]}
1
+ {"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/utils/native_adapters/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAYxC,MAAM,OAAO,YAAY;IACvB,MAAM,CAAC,SAAS,CAAC,cAAkC;QACjD,SAAS,GAAG,cAAc,CAAC,SAAS,CAAA;QACpC,KAAK,GAAG,cAAc,CAAC,KAAK,CAAA;QAC5B,KAAK,GAAG,cAAc,CAAC,KAAK,CAAA;QAC5B,WAAW,GAAG,cAAc,CAAC,WAAW,CAAA;QACxC,GAAG,GAAG,cAAc,CAAC,GAAG,IAAI,IAAI,UAAU,EAAE,CAAA;QAC5C,OAAO,GAAG,cAAc,CAAC,OAAO,IAAI,IAAI,cAAc,CAAC,SAAS,CAAC,CAAA;QACjE,MAAM,GAAG,cAAc,CAAC,MAAM,IAAI,IAAI,aAAa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C,MAAM,CAAC,IAAI,OAAO,GAAmB,IAAI,cAAc,CAAC,SAAS,CAAC,CAAA;AAElE,MAAM,CAAC,IAAI,MAAM,GAAkB,IAAI,aAAa,EAAE,CAAA","sourcesContent":["import { LogAdapter } from './log'\nimport { AudioAdapter } from './audio'\nimport { ClipboardAdapter } from './clipboard'\nimport { ImagePickerAdapter } from './image_picker'\nimport { VideoAdapter } from './video'\nimport { Linking as RNLinking } from 'react-native'\nimport { LinkingAdapter } from './linking'\nimport { HapticAdapter } from './haptic'\n\ntype ChatConfigurations = {\n clipboard: ClipboardAdapter\n audio: AudioAdapter\n video: VideoAdapter\n imagePicker: ImagePickerAdapter\n log?: LogAdapter\n linking?: LinkingAdapter\n haptic?: HapticAdapter\n}\n\nexport class ChatAdapters {\n static configure(configurations: ChatConfigurations) {\n Clipboard = configurations.clipboard\n Audio = configurations.audio\n Video = configurations.video\n ImagePicker = configurations.imagePicker\n Log = configurations.log || new LogAdapter()\n Linking = configurations.linking || new LinkingAdapter(RNLinking)\n Haptic = configurations.haptic || new HapticAdapter()\n }\n}\n\nconst methodMissing = () => {\n console.warn('ChatAdapters.configure() must be called before using any adapters')\n}\n\nexport let Clipboard: ClipboardAdapter = new ClipboardAdapter({\n getStringAsync: async () => {\n methodMissing()\n return ''\n },\n setStringAsync: async (_: string) => methodMissing(),\n})\n\nexport let Audio: AudioAdapter = new AudioAdapter({\n useAudio: (_: string) => {\n methodMissing()\n return {} as any\n },\n})\n\nexport let Video: VideoAdapter = new VideoAdapter({\n Player: Object.assign(\n () => {\n methodMissing()\n return null\n },\n { $$typeof: Symbol.for('react.forward_ref') }\n ),\n})\n\nexport let ImagePicker: ImagePickerAdapter = new ImagePickerAdapter({\n openCameraAsync: async () => {\n methodMissing()\n return { canceled: true, assets: null }\n },\n openImageLibraryAsync: async () => {\n methodMissing()\n return { canceled: true, assets: null }\n },\n})\n\nexport let Log: LogAdapter = new LogAdapter()\n\nexport let Linking: LinkingAdapter = new LinkingAdapter(RNLinking)\n\nexport let Haptic: HapticAdapter = new HapticAdapter()\n"]}
@@ -0,0 +1,23 @@
1
+ interface Haptic {
2
+ impactLight: () => void;
3
+ impactMedium: () => void;
4
+ impactHeavy: () => void;
5
+ rigid: () => void;
6
+ soft: () => void;
7
+ notificationSuccess: () => void;
8
+ notificationWarning: () => void;
9
+ notificationError: () => void;
10
+ }
11
+ export declare class HapticAdapter {
12
+ impactLight: () => void;
13
+ impactMedium: () => void;
14
+ impactHeavy: () => void;
15
+ rigid: () => void;
16
+ soft: () => void;
17
+ notificationSuccess: () => void;
18
+ notificationWarning: () => void;
19
+ notificationError: () => void;
20
+ constructor(methods?: Haptic);
21
+ }
22
+ export {};
23
+ //# sourceMappingURL=haptic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"haptic.d.ts","sourceRoot":"","sources":["../../../src/utils/native_adapters/haptic.ts"],"names":[],"mappings":"AAEA,UAAU,MAAM;IACd,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,mBAAmB,EAAE,MAAM,IAAI,CAAA;IAC/B,mBAAmB,EAAE,MAAM,IAAI,CAAA;IAC/B,iBAAiB,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED,qBAAa,aAAa;IACxB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,mBAAmB,EAAE,MAAM,IAAI,CAAA;IAC/B,mBAAmB,EAAE,MAAM,IAAI,CAAA;IAC/B,iBAAiB,EAAE,MAAM,IAAI,CAAA;gBAEjB,OAAO,CAAC,EAAE,MAAM;CAU7B"}
@@ -0,0 +1,22 @@
1
+ import { noop } from 'lodash';
2
+ export class HapticAdapter {
3
+ impactLight;
4
+ impactMedium;
5
+ impactHeavy;
6
+ rigid;
7
+ soft;
8
+ notificationSuccess;
9
+ notificationWarning;
10
+ notificationError;
11
+ constructor(methods) {
12
+ this.impactLight = methods?.impactLight ?? noop;
13
+ this.impactMedium = methods?.impactMedium ?? noop;
14
+ this.impactHeavy = methods?.impactHeavy ?? noop;
15
+ this.rigid = methods?.rigid ?? noop;
16
+ this.soft = methods?.soft ?? noop;
17
+ this.notificationSuccess = methods?.notificationSuccess ?? noop;
18
+ this.notificationWarning = methods?.notificationWarning ?? noop;
19
+ this.notificationError = methods?.notificationError ?? noop;
20
+ }
21
+ }
22
+ //# sourceMappingURL=haptic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"haptic.js","sourceRoot":"","sources":["../../../src/utils/native_adapters/haptic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAa7B,MAAM,OAAO,aAAa;IACxB,WAAW,CAAY;IACvB,YAAY,CAAY;IACxB,WAAW,CAAY;IACvB,KAAK,CAAY;IACjB,IAAI,CAAY;IAChB,mBAAmB,CAAY;IAC/B,mBAAmB,CAAY;IAC/B,iBAAiB,CAAY;IAE7B,YAAY,OAAgB;QAC1B,IAAI,CAAC,WAAW,GAAG,OAAO,EAAE,WAAW,IAAI,IAAI,CAAA;QAC/C,IAAI,CAAC,YAAY,GAAG,OAAO,EAAE,YAAY,IAAI,IAAI,CAAA;QACjD,IAAI,CAAC,WAAW,GAAG,OAAO,EAAE,WAAW,IAAI,IAAI,CAAA;QAC/C,IAAI,CAAC,KAAK,GAAG,OAAO,EAAE,KAAK,IAAI,IAAI,CAAA;QACnC,IAAI,CAAC,IAAI,GAAG,OAAO,EAAE,IAAI,IAAI,IAAI,CAAA;QACjC,IAAI,CAAC,mBAAmB,GAAG,OAAO,EAAE,mBAAmB,IAAI,IAAI,CAAA;QAC/D,IAAI,CAAC,mBAAmB,GAAG,OAAO,EAAE,mBAAmB,IAAI,IAAI,CAAA;QAC/D,IAAI,CAAC,iBAAiB,GAAG,OAAO,EAAE,iBAAiB,IAAI,IAAI,CAAA;IAC7D,CAAC;CACF","sourcesContent":["import { noop } from 'lodash'\n\ninterface Haptic {\n impactLight: () => void\n impactMedium: () => void\n impactHeavy: () => void\n rigid: () => void\n soft: () => void\n notificationSuccess: () => void\n notificationWarning: () => void\n notificationError: () => void\n}\n\nexport class HapticAdapter {\n impactLight: () => void\n impactMedium: () => void\n impactHeavy: () => void\n rigid: () => void\n soft: () => void\n notificationSuccess: () => void\n notificationWarning: () => void\n notificationError: () => void\n\n constructor(methods?: Haptic) {\n this.impactLight = methods?.impactLight ?? noop\n this.impactMedium = methods?.impactMedium ?? noop\n this.impactHeavy = methods?.impactHeavy ?? noop\n this.rigid = methods?.rigid ?? noop\n this.soft = methods?.soft ?? noop\n this.notificationSuccess = methods?.notificationSuccess ?? noop\n this.notificationWarning = methods?.notificationWarning ?? noop\n this.notificationError = methods?.notificationError ?? noop\n }\n}\n"]}
@@ -5,4 +5,5 @@ export * from './image_picker';
5
5
  export * from './linking';
6
6
  export * from './log';
7
7
  export * from './video';
8
+ export * from './haptic';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/native_adapters/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/native_adapters/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA"}
@@ -5,4 +5,5 @@ export * from './image_picker';
5
5
  export * from './linking';
6
6
  export * from './log';
7
7
  export * from './video';
8
+ export * from './haptic';
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/native_adapters/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA","sourcesContent":["export * from './audio'\nexport * from './clipboard'\nexport * from './configuration'\nexport * from './image_picker'\nexport * from './linking'\nexport * from './log'\nexport * from './video'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/native_adapters/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA","sourcesContent":["export * from './audio'\nexport * from './clipboard'\nexport * from './configuration'\nexport * from './image_picker'\nexport * from './linking'\nexport * from './log'\nexport * from './video'\nexport * from './haptic'\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planningcenter/chat-react-native",
3
- "version": "3.13.2-rc.3",
3
+ "version": "3.14.0-rc.0",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -55,5 +55,5 @@
55
55
  "react-native-url-polyfill": "^2.0.0",
56
56
  "typescript": "<5.6.0"
57
57
  },
58
- "gitHead": "580f76cfbf66e9da665162c5af8b75fe09c07c26"
58
+ "gitHead": "7581413aff42fdbe77cb4c646ab7bc38fafbb4fe"
59
59
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react'
2
2
  import { Linking as RNLinking } from 'react-native'
3
- import { ChatAdapters, Linking } from '../../../utils/native_adapters/configuration'
3
+ import { ChatAdapters, Linking, Haptic } from '../../../utils/native_adapters/configuration'
4
4
  import {
5
5
  AudioAdapter,
6
6
  Clipboard,
@@ -10,6 +10,7 @@ import {
10
10
  VideoAdapter,
11
11
  } from '../../../utils/native_adapters'
12
12
  import { VideoPlayerHandle, VideoPlayerProps } from '../../../utils/native_adapters/video'
13
+ import { HapticAdapter } from '../../../utils/native_adapters/haptic'
13
14
 
14
15
  describe('ChatAdapters', () => {
15
16
  const getStringAsync = jest.fn(async () => '')
@@ -36,6 +37,16 @@ describe('ChatAdapters', () => {
36
37
  openCameraAsync: async () => ({ canceled: true, assets: null }),
37
38
  openImageLibraryAsync: async () => ({ canceled: true, assets: null }),
38
39
  })
40
+ const haptic = new HapticAdapter({
41
+ impactLight: jest.fn(),
42
+ impactMedium: jest.fn(),
43
+ impactHeavy: jest.fn(),
44
+ rigid: jest.fn(),
45
+ soft: jest.fn(),
46
+ notificationSuccess: jest.fn(),
47
+ notificationWarning: jest.fn(),
48
+ notificationError: jest.fn(),
49
+ })
39
50
 
40
51
  it('should be defined', () => {
41
52
  expect(ChatAdapters).toBeDefined()
@@ -47,6 +58,7 @@ describe('ChatAdapters', () => {
47
58
  audio,
48
59
  video,
49
60
  imagePicker,
61
+ haptic,
50
62
  })
51
63
 
52
64
  expect(Clipboard).toEqual(clipboard)
@@ -91,4 +103,37 @@ describe('ChatAdapters', () => {
91
103
  linking.canOpenURL('https://www.google.com')
92
104
  })
93
105
  })
106
+
107
+ describe('haptic adapter', () => {
108
+ it('should configure the haptic adapter', () => {
109
+ ChatAdapters.configure({
110
+ clipboard,
111
+ audio,
112
+ video,
113
+ imagePicker,
114
+ haptic,
115
+ })
116
+
117
+ expect(Haptic).toEqual(haptic)
118
+ })
119
+
120
+ it('should be configured with defaults', () => {
121
+ ChatAdapters.configure({
122
+ clipboard,
123
+ audio,
124
+ video,
125
+ imagePicker,
126
+ })
127
+
128
+ expect(Haptic).toBeDefined()
129
+ expect(Haptic.impactLight).toBeDefined()
130
+ expect(Haptic.impactMedium).toBeDefined()
131
+ expect(Haptic.impactHeavy).toBeDefined()
132
+ expect(Haptic.rigid).toBeDefined()
133
+ expect(Haptic.soft).toBeDefined()
134
+ expect(Haptic.notificationSuccess).toBeDefined()
135
+ expect(Haptic.notificationWarning).toBeDefined()
136
+ expect(Haptic.notificationError).toBeDefined()
137
+ })
138
+ })
94
139
  })
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react'
2
2
  import { Alert, Pressable, ScrollView, StyleSheet, View } from 'react-native'
3
3
  import type { ViewStyle } from 'react-native'
4
- import { useTheme } from '../hooks'
4
+ import { useInteractionGhostBackgroundColor, useTheme } from '../hooks'
5
5
  import {
6
6
  Avatar,
7
7
  AvatarGroup,
@@ -27,6 +27,7 @@ import {
27
27
  MAX_FONT_SIZE_MULTIPLIER,
28
28
  platformPressedOpacityStyle,
29
29
  platformFontWeightMedium,
30
+ Haptic,
30
31
  } from '../utils'
31
32
  import BannerPrimitive from '../components/primitive/banner_primitive'
32
33
  import { VideoAttachmentPreview } from '../components/display/video_attachment_preview'
@@ -89,6 +90,7 @@ export function DesignSystemScreen() {
89
90
  <IndicatorsSection />
90
91
  <HeadingTextSection />
91
92
  <PressablesSection />
93
+ <HapticsSection />
92
94
  <ImageIconsSection />
93
95
  <FormControlsSection />
94
96
  <StatusComponentsSection />
@@ -678,6 +680,37 @@ function PressablesSection({ isLast }: SectionProps) {
678
680
  </CollapsableSection>
679
681
  )
680
682
  }
683
+ function HapticsSection({ isLast }: SectionProps) {
684
+ return (
685
+ <CollapsableSection title="Haptics" isLast={isLast}>
686
+ <TextGroup>
687
+ <Text>
688
+ Haptics help communicate changes and interactions in the UI by making them feel physical
689
+ and "weighty". They are a progressive enhancement and shouldn't replace visual feedback.
690
+ </Text>
691
+ </TextGroup>
692
+ <Group title="Impact" description="Communicates that a user interaction is occurring.">
693
+ <Row>
694
+ <HapticButton title="Impact Light" onPress={() => Haptic.impactLight()} />
695
+ <HapticButton title="Impact Medium" onPress={() => Haptic.impactMedium()} />
696
+ <HapticButton title="Impact Heavy" onPress={() => Haptic.impactHeavy()} />
697
+ <HapticButton title="Rigid" onPress={() => Haptic.rigid()} />
698
+ <HapticButton title="Soft" onPress={() => Haptic.soft()} />
699
+ </Row>
700
+ </Group>
701
+ <Group
702
+ title="Notification"
703
+ description="Communicates the result of a user or application action."
704
+ >
705
+ <Row>
706
+ <HapticButton title="Notification Success" onPress={() => Haptic.notificationSuccess()} />
707
+ <HapticButton title="Notification Warning" onPress={() => Haptic.notificationWarning()} />
708
+ <HapticButton title="Notification Error" onPress={() => Haptic.notificationError()} />
709
+ </Row>
710
+ </Group>
711
+ </CollapsableSection>
712
+ )
713
+ }
681
714
 
682
715
  function ImageIconsSection({ isLast }: SectionProps) {
683
716
  const styles = useStyles()
@@ -1143,14 +1176,46 @@ function TextListItem({ label, children }: TextListItemProps) {
1143
1176
  )
1144
1177
  }
1145
1178
 
1179
+ function HapticButton({ title, onPress }: { title: string; onPress: () => void }) {
1180
+ const styles = useStyles()
1181
+
1182
+ return (
1183
+ <Pressable
1184
+ onPress={onPress}
1185
+ style={({ pressed }) => ({
1186
+ ...styles.hapticButton,
1187
+ ...{ opacity: pressed ? 0.5 : 1 },
1188
+ })}
1189
+ >
1190
+ <Text style={styles.hapticButtonText}>{title}</Text>
1191
+ </Pressable>
1192
+ )
1193
+ }
1194
+
1146
1195
  // =================================
1147
1196
  // ====== Styles ===================
1148
1197
  // =================================
1149
1198
 
1150
1199
  const useStyles = () => {
1151
1200
  const { colors } = useTheme()
1201
+ const interactionGhostBackgroundColor = useInteractionGhostBackgroundColor()
1152
1202
 
1153
1203
  return StyleSheet.create({
1204
+ hapticButton: {
1205
+ flexGrow: 1,
1206
+ height: 100,
1207
+ padding: 16,
1208
+ alignItems: 'center',
1209
+ justifyContent: 'center',
1210
+ backgroundColor: interactionGhostBackgroundColor,
1211
+ borderWidth: 1,
1212
+ borderColor: colors.interaction,
1213
+ borderRadius: 8,
1214
+ },
1215
+ hapticButtonText: {
1216
+ textAlign: 'center',
1217
+ color: colors.interaction,
1218
+ },
1154
1219
  scrollView: {
1155
1220
  flex: 1,
1156
1221
  backgroundColor: colors.fillColorNeutral100Inverted,
@@ -5,6 +5,7 @@ import { ImagePickerAdapter } from './image_picker'
5
5
  import { VideoAdapter } from './video'
6
6
  import { Linking as RNLinking } from 'react-native'
7
7
  import { LinkingAdapter } from './linking'
8
+ import { HapticAdapter } from './haptic'
8
9
 
9
10
  type ChatConfigurations = {
10
11
  clipboard: ClipboardAdapter
@@ -13,6 +14,7 @@ type ChatConfigurations = {
13
14
  imagePicker: ImagePickerAdapter
14
15
  log?: LogAdapter
15
16
  linking?: LinkingAdapter
17
+ haptic?: HapticAdapter
16
18
  }
17
19
 
18
20
  export class ChatAdapters {
@@ -23,6 +25,7 @@ export class ChatAdapters {
23
25
  ImagePicker = configurations.imagePicker
24
26
  Log = configurations.log || new LogAdapter()
25
27
  Linking = configurations.linking || new LinkingAdapter(RNLinking)
28
+ Haptic = configurations.haptic || new HapticAdapter()
26
29
  }
27
30
  }
28
31
 
@@ -69,3 +72,5 @@ export let ImagePicker: ImagePickerAdapter = new ImagePickerAdapter({
69
72
  export let Log: LogAdapter = new LogAdapter()
70
73
 
71
74
  export let Linking: LinkingAdapter = new LinkingAdapter(RNLinking)
75
+
76
+ export let Haptic: HapticAdapter = new HapticAdapter()
@@ -0,0 +1,34 @@
1
+ import { noop } from 'lodash'
2
+
3
+ interface Haptic {
4
+ impactLight: () => void
5
+ impactMedium: () => void
6
+ impactHeavy: () => void
7
+ rigid: () => void
8
+ soft: () => void
9
+ notificationSuccess: () => void
10
+ notificationWarning: () => void
11
+ notificationError: () => void
12
+ }
13
+
14
+ export class HapticAdapter {
15
+ impactLight: () => void
16
+ impactMedium: () => void
17
+ impactHeavy: () => void
18
+ rigid: () => void
19
+ soft: () => void
20
+ notificationSuccess: () => void
21
+ notificationWarning: () => void
22
+ notificationError: () => void
23
+
24
+ constructor(methods?: Haptic) {
25
+ this.impactLight = methods?.impactLight ?? noop
26
+ this.impactMedium = methods?.impactMedium ?? noop
27
+ this.impactHeavy = methods?.impactHeavy ?? noop
28
+ this.rigid = methods?.rigid ?? noop
29
+ this.soft = methods?.soft ?? noop
30
+ this.notificationSuccess = methods?.notificationSuccess ?? noop
31
+ this.notificationWarning = methods?.notificationWarning ?? noop
32
+ this.notificationError = methods?.notificationError ?? noop
33
+ }
34
+ }
@@ -5,3 +5,4 @@ export * from './image_picker'
5
5
  export * from './linking'
6
6
  export * from './log'
7
7
  export * from './video'
8
+ export * from './haptic'