@dloizides/ui-layout 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.6.0
4
+
5
+ - **Accessibility (WCAG 2.1 AA) hardening — additive + backward-compatible.**
6
+ - `AccordionItem`: the rotating chevron (plain) and leading ▸ marker (boxed) are purely
7
+ decorative — the open/closed state is already on the header via `aria-expanded` — so they are
8
+ now `aria-hidden` / `accessibilityElementsHidden` to keep them out of the screen-reader tree.
9
+ - `Accordion`: the expand/collapse `LayoutAnimation` and the chevron rotation now honour
10
+ `prefers-reduced-motion: reduce`, snapping instantly for users who request reduced motion
11
+ (WCAG 2.3.3, web only).
12
+ - `ModalDropdown`: the trigger now also emits `accessibilityState.expanded` (native parity for
13
+ the existing web `aria-expanded`).
14
+
15
+ ## 1.5.0
16
+
17
+ - `Accordion` / `AccordionItem` gain a `variant` prop (`'plain' | 'boxed'`, default `'plain'`).
18
+ `plain` is the original borderless look (hairline dividers, right-hand chevron flipping 180° on
19
+ open) — existing consumers render **identically**, no change. `boxed` is the AML v1 console
20
+ `<details>` look: each item is its own bordered, rounded box (spaced by a gap) with a **leading
21
+ ▸ marker** that rotates 90° on open and a muted, 600-weight summary. The full API is preserved
22
+ (controlled/uncontrolled, `allowMultiple`, `defaultOpen`, a11y `aria-expanded`/region, the
23
+ open/close LayoutAnimation + chevron rotation). Additive + backward-compatible.
24
+
3
25
  ## 1.4.0
4
26
 
5
27
  - Add **`SegmentedControl`** — a single rounded pill *track* holding N mutually-exclusive
package/dist/index.d.mts CHANGED
@@ -159,6 +159,21 @@ interface ModalShellProps {
159
159
  }
160
160
  declare const ModalShell: ({ visible, onCancel, title, children, contentStyle, showClose, }: ModalShellProps) => React.ReactElement;
161
161
 
162
+ /**
163
+ * AccordionVariant — the two visual treatments for an {@link Accordion}.
164
+ *
165
+ * A plain string union (not a const enum) so call sites stay ergonomic
166
+ * (`variant="boxed"`) and the package exposes no cross-boundary const-enum,
167
+ * matching the rest of the shared UI kit (e.g. `ButtonVariant`).
168
+ *
169
+ * - `plain` (default) — borderless rows separated by a hairline divider, with a
170
+ * right-hand chevron that flips 180° on open. Drops cleanly inside a Section / Card.
171
+ * - `boxed` — each item is its own bordered, rounded box with a LEADING ▸ marker that
172
+ * rotates 90° on open and a muted, 600-weight summary. Matches the AML v1 console's
173
+ * `<details>` panels.
174
+ */
175
+ type AccordionVariant = 'plain' | 'boxed';
176
+
162
177
  /**
163
178
  * Accordion — a themed expand/collapse disclosure group.
164
179
  *
@@ -167,7 +182,9 @@ declare const ModalShell: ({ visible, onCancel, title, children, contentStyle, s
167
182
  * (`defaultOpenIds`, plus per-item `defaultOpen`). `allowMultiple` (default) lets any
168
183
  * number of items be open at once; set it false for single-open (radio-like) behaviour.
169
184
  *
170
- * Renders borderless so it drops cleanly inside a `Section` / `Card`.
185
+ * `variant` picks the look: `plain` (default) renders borderless so it drops cleanly inside a
186
+ * `Section` / `Card`; `boxed` renders each item as its own bordered, rounded box with a leading
187
+ * ▸ marker (the AML v1 console `<details>` look).
171
188
  */
172
189
 
173
190
  interface AccordionProps {
@@ -181,16 +198,22 @@ interface AccordionProps {
181
198
  onOpenChange?: (openIds: string[]) => void;
182
199
  /** Allow several items open at once (default true). False = single-open. */
183
200
  allowMultiple?: boolean;
201
+ /** Visual treatment: `plain` (default, borderless) or `boxed` (bordered ▸ boxes). */
202
+ variant?: AccordionVariant;
184
203
  testID?: string;
185
204
  style?: ViewStyle | ViewStyle[];
186
205
  }
187
- declare const Accordion: ({ children, openIds, defaultOpenIds, onOpenChange, allowMultiple, testID, style, }: AccordionProps) => React.ReactElement;
206
+ declare const Accordion: ({ children, openIds, defaultOpenIds, onOpenChange, allowMultiple, variant, testID, style, }: AccordionProps) => React.ReactElement;
188
207
 
189
208
  /**
190
- * AccordionItem — one disclosure row: a pressable header (title left, optional right
209
+ * AccordionItem — one disclosure row: a pressable header (title, optional right
191
210
  * adornment/badge slot, a rotating chevron) plus a collapsible body region.
192
211
  *
193
- * Reads its open state + toggle from the enclosing {@link Accordion} via context.
212
+ * Reads its open state, toggle and `variant` from the enclosing {@link Accordion} via context.
213
+ * - `plain` (default): a borderless row with the title left and a right-hand chevron that
214
+ * flips 180° on open, separated from the previous item by a hairline divider.
215
+ * - `boxed`: the item is its own bordered, rounded box with a LEADING ▸ marker that rotates
216
+ * 90° on open and a muted, 600-weight summary (the AML v1 console `<details>` look).
194
217
  */
195
218
 
196
219
  interface AccordionItemProps {
@@ -231,4 +254,4 @@ declare const LAYOUT_TEST_IDS: {
231
254
  /** Route the UpgradePrompt CTA navigates to by default (the apps' billing settings path). */
232
255
  declare const DEFAULT_BILLING_ROUTE = "/settings/billing";
233
256
 
234
- export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, DEFAULT_BILLING_ROUTE, type DropdownOption, DropdownVariant, Heading, type HeadingProps, LAYOUT_TEST_IDS, ModalDropdown, type ModalDropdownProps, ModalShell, type ModalShellProps, Section, type SectionProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, StatusBadge, type StatusBadgeProps, UpgradePrompt, type UpgradePromptProps, useFocusTrap };
257
+ export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, DEFAULT_BILLING_ROUTE, type DropdownOption, DropdownVariant, Heading, type HeadingProps, LAYOUT_TEST_IDS, ModalDropdown, type ModalDropdownProps, ModalShell, type ModalShellProps, Section, type SectionProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, StatusBadge, type StatusBadgeProps, UpgradePrompt, type UpgradePromptProps, useFocusTrap };
package/dist/index.d.ts CHANGED
@@ -159,6 +159,21 @@ interface ModalShellProps {
159
159
  }
160
160
  declare const ModalShell: ({ visible, onCancel, title, children, contentStyle, showClose, }: ModalShellProps) => React.ReactElement;
161
161
 
162
+ /**
163
+ * AccordionVariant — the two visual treatments for an {@link Accordion}.
164
+ *
165
+ * A plain string union (not a const enum) so call sites stay ergonomic
166
+ * (`variant="boxed"`) and the package exposes no cross-boundary const-enum,
167
+ * matching the rest of the shared UI kit (e.g. `ButtonVariant`).
168
+ *
169
+ * - `plain` (default) — borderless rows separated by a hairline divider, with a
170
+ * right-hand chevron that flips 180° on open. Drops cleanly inside a Section / Card.
171
+ * - `boxed` — each item is its own bordered, rounded box with a LEADING ▸ marker that
172
+ * rotates 90° on open and a muted, 600-weight summary. Matches the AML v1 console's
173
+ * `<details>` panels.
174
+ */
175
+ type AccordionVariant = 'plain' | 'boxed';
176
+
162
177
  /**
163
178
  * Accordion — a themed expand/collapse disclosure group.
164
179
  *
@@ -167,7 +182,9 @@ declare const ModalShell: ({ visible, onCancel, title, children, contentStyle, s
167
182
  * (`defaultOpenIds`, plus per-item `defaultOpen`). `allowMultiple` (default) lets any
168
183
  * number of items be open at once; set it false for single-open (radio-like) behaviour.
169
184
  *
170
- * Renders borderless so it drops cleanly inside a `Section` / `Card`.
185
+ * `variant` picks the look: `plain` (default) renders borderless so it drops cleanly inside a
186
+ * `Section` / `Card`; `boxed` renders each item as its own bordered, rounded box with a leading
187
+ * ▸ marker (the AML v1 console `<details>` look).
171
188
  */
172
189
 
173
190
  interface AccordionProps {
@@ -181,16 +198,22 @@ interface AccordionProps {
181
198
  onOpenChange?: (openIds: string[]) => void;
182
199
  /** Allow several items open at once (default true). False = single-open. */
183
200
  allowMultiple?: boolean;
201
+ /** Visual treatment: `plain` (default, borderless) or `boxed` (bordered ▸ boxes). */
202
+ variant?: AccordionVariant;
184
203
  testID?: string;
185
204
  style?: ViewStyle | ViewStyle[];
186
205
  }
187
- declare const Accordion: ({ children, openIds, defaultOpenIds, onOpenChange, allowMultiple, testID, style, }: AccordionProps) => React.ReactElement;
206
+ declare const Accordion: ({ children, openIds, defaultOpenIds, onOpenChange, allowMultiple, variant, testID, style, }: AccordionProps) => React.ReactElement;
188
207
 
189
208
  /**
190
- * AccordionItem — one disclosure row: a pressable header (title left, optional right
209
+ * AccordionItem — one disclosure row: a pressable header (title, optional right
191
210
  * adornment/badge slot, a rotating chevron) plus a collapsible body region.
192
211
  *
193
- * Reads its open state + toggle from the enclosing {@link Accordion} via context.
212
+ * Reads its open state, toggle and `variant` from the enclosing {@link Accordion} via context.
213
+ * - `plain` (default): a borderless row with the title left and a right-hand chevron that
214
+ * flips 180° on open, separated from the previous item by a hairline divider.
215
+ * - `boxed`: the item is its own bordered, rounded box with a LEADING ▸ marker that rotates
216
+ * 90° on open and a muted, 600-weight summary (the AML v1 console `<details>` look).
194
217
  */
195
218
 
196
219
  interface AccordionItemProps {
@@ -231,4 +254,4 @@ declare const LAYOUT_TEST_IDS: {
231
254
  /** Route the UpgradePrompt CTA navigates to by default (the apps' billing settings path). */
232
255
  declare const DEFAULT_BILLING_ROUTE = "/settings/billing";
233
256
 
234
- export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, DEFAULT_BILLING_ROUTE, type DropdownOption, DropdownVariant, Heading, type HeadingProps, LAYOUT_TEST_IDS, ModalDropdown, type ModalDropdownProps, ModalShell, type ModalShellProps, Section, type SectionProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, StatusBadge, type StatusBadgeProps, UpgradePrompt, type UpgradePromptProps, useFocusTrap };
257
+ export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, DEFAULT_BILLING_ROUTE, type DropdownOption, DropdownVariant, Heading, type HeadingProps, LAYOUT_TEST_IDS, ModalDropdown, type ModalDropdownProps, ModalShell, type ModalShellProps, Section, type SectionProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, StatusBadge, type StatusBadgeProps, UpgradePrompt, type UpgradePromptProps, useFocusTrap };
package/dist/index.js CHANGED
@@ -600,6 +600,7 @@ var ModalDropdown = ({
600
600
  accessibilityHint,
601
601
  accessibilityLabel,
602
602
  accessibilityRole: "button",
603
+ accessibilityState: { expanded: isOpen },
603
604
  "aria-expanded": isOpen,
604
605
  style: containerStyle,
605
606
  testID,
@@ -731,7 +732,12 @@ function enableAndroidLayoutAnimationOnce() {
731
732
  setter(true);
732
733
  }
733
734
  }
735
+ function prefersReducedMotion() {
736
+ if (reactNative.Platform.OS !== "web" || typeof window === "undefined" || typeof window.matchMedia !== "function") return false;
737
+ return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
738
+ }
734
739
  function animateNextLayout() {
740
+ if (prefersReducedMotion()) return;
735
741
  enableAndroidLayoutAnimationOnce();
736
742
  const configure = reactNative.LayoutAnimation.configureNext;
737
743
  if (typeof configure !== "function") return;
@@ -740,8 +746,10 @@ function animateNextLayout() {
740
746
  } catch {
741
747
  }
742
748
  }
749
+ var BOXED_GAP = 12;
743
750
  var styles10 = reactNative.StyleSheet.create({
744
- container: { alignSelf: "stretch" }
751
+ container: { alignSelf: "stretch" },
752
+ boxed: { gap: BOXED_GAP }
745
753
  });
746
754
  function computeInitialOpen(children, defaultOpenIds, allowMultiple) {
747
755
  const ids = new Set(defaultOpenIds ?? []);
@@ -764,6 +772,7 @@ var Accordion = ({
764
772
  defaultOpenIds,
765
773
  onOpenChange,
766
774
  allowMultiple = true,
775
+ variant = "plain",
767
776
  testID = "accordion",
768
777
  style
769
778
  }) => {
@@ -792,13 +801,14 @@ var Accordion = ({
792
801
  [allowMultiple, isControlled, onOpenChange, openSet]
793
802
  );
794
803
  const contextValue = React8.useMemo(
795
- () => ({ openIds: openSet, toggle, allowMultiple }),
796
- [openSet, toggle, allowMultiple]
797
- );
798
- const containerStyle = React8.useMemo(
799
- () => style === void 0 ? [styles10.container] : [styles10.container, ...Array.isArray(style) ? style : [style]],
800
- [style]
804
+ () => ({ openIds: openSet, toggle, allowMultiple, variant }),
805
+ [openSet, toggle, allowMultiple, variant]
801
806
  );
807
+ const containerStyle = React8.useMemo(() => {
808
+ const base = variant === "boxed" ? [styles10.container, styles10.boxed] : [styles10.container];
809
+ if (style === void 0) return base;
810
+ return [...base, ...Array.isArray(style) ? style : [style]];
811
+ }, [style, variant]);
802
812
  return /* @__PURE__ */ jsxRuntime.jsx(AccordionContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: containerStyle, testID, children }) });
803
813
  };
804
814
  var HEADER_PADDING_H = 16;
@@ -813,12 +823,23 @@ var ROTATE_DURATION_MS = 160;
813
823
  var ROTATE_COLLAPSED = 0;
814
824
  var ROTATE_EXPANDED = 1;
815
825
  var COLLAPSED_DEG = "0deg";
816
- var EXPANDED_DEG = "180deg";
826
+ var PLAIN_EXPANDED_DEG = "180deg";
827
+ var BOXED_EXPANDED_DEG = "90deg";
817
828
  var DISABLED_OPACITY = 0.5;
818
829
  var FULL_OPACITY = 1;
819
830
  var ROLE_REGION = "region";
831
+ var BOX_BORDER_RADIUS = 10;
832
+ var BOX_PADDING_H = 14;
833
+ var BOX_HEADER_PADDING_V = 8;
834
+ var BOX_BODY_PADDING_BOTTOM = 10;
835
+ var BOX_BODY_PADDING_TOP = 2;
836
+ var BOX_TITLE_FONT_SIZE = 14;
837
+ var BOX_MARKER_FONT_SIZE = 13;
838
+ var BOX_MARKER_GAP = 6;
839
+ var BOX_MARKER = "\u25B8";
820
840
  var styles11 = reactNative.StyleSheet.create({
821
841
  item: { borderTopWidth: reactNative.StyleSheet.hairlineWidth },
842
+ boxItem: { borderWidth: 1, borderRadius: BOX_BORDER_RADIUS, paddingHorizontal: BOX_PADDING_H },
822
843
  header: {
823
844
  flexDirection: "row",
824
845
  alignItems: "center",
@@ -826,13 +847,24 @@ var styles11 = reactNative.StyleSheet.create({
826
847
  paddingHorizontal: HEADER_PADDING_H,
827
848
  paddingVertical: HEADER_PADDING_V
828
849
  },
850
+ boxHeader: { paddingHorizontal: 0, paddingVertical: BOX_HEADER_PADDING_V },
829
851
  headerLeft: { flexShrink: 1, flexGrow: 1 },
852
+ headerLeftRow: { flexDirection: "row", alignItems: "center" },
830
853
  headerRight: { flexDirection: "row", alignItems: "center", marginLeft: HEADER_GAP },
831
854
  title: { fontSize: TITLE_FONT_SIZE2, fontWeight: TITLE_FONT_WEIGHT },
855
+ boxTitle: { fontSize: BOX_TITLE_FONT_SIZE, fontWeight: TITLE_FONT_WEIGHT },
832
856
  chevron: { marginLeft: HEADER_GAP },
833
- body: { paddingHorizontal: BODY_PADDING_H, paddingBottom: BODY_PADDING_V }
857
+ marker: { marginRight: BOX_MARKER_GAP },
858
+ markerText: { fontSize: BOX_MARKER_FONT_SIZE, fontWeight: TITLE_FONT_WEIGHT },
859
+ body: { paddingHorizontal: BODY_PADDING_H, paddingBottom: BODY_PADDING_V },
860
+ boxBody: { paddingHorizontal: 0, paddingBottom: BOX_BODY_PADDING_BOTTOM, paddingTop: BOX_BODY_PADDING_TOP }
834
861
  });
835
862
  var ACTIVATION_KEYS = ["Enter", " ", "Spacebar"];
863
+ var INSTANT_DURATION_MS = 0;
864
+ function prefersReducedMotion2() {
865
+ if (reactNative.Platform.OS !== "web" || typeof window === "undefined" || typeof window.matchMedia !== "function") return false;
866
+ return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
867
+ }
836
868
  var AccordionItem = ({
837
869
  id,
838
870
  title,
@@ -847,7 +879,8 @@ var AccordionItem = ({
847
879
  }) => {
848
880
  const { theme, t } = uiFeedback.useUi();
849
881
  const { colors } = theme;
850
- const { openIds, toggle } = useAccordionContext();
882
+ const { openIds, toggle, variant } = useAccordionContext();
883
+ const boxed = variant === "boxed";
851
884
  const expanded = openIds.has(id);
852
885
  const headerTestID = testID ?? `accordion-item-${id}`;
853
886
  const bodyTestID = `${headerTestID}-body`;
@@ -856,14 +889,14 @@ var AccordionItem = ({
856
889
  React8.useEffect(() => {
857
890
  reactNative.Animated.timing(rotation, {
858
891
  toValue: expanded ? ROTATE_EXPANDED : ROTATE_COLLAPSED,
859
- duration: ROTATE_DURATION_MS,
892
+ duration: prefersReducedMotion2() ? INSTANT_DURATION_MS : ROTATE_DURATION_MS,
860
893
  easing: reactNative.Easing.out(reactNative.Easing.ease),
861
894
  useNativeDriver: reactNative.Platform.OS !== "web"
862
895
  }).start();
863
896
  }, [expanded, rotation]);
864
897
  const rotate = rotation.interpolate({
865
898
  inputRange: [ROTATE_COLLAPSED, ROTATE_EXPANDED],
866
- outputRange: [COLLAPSED_DEG, EXPANDED_DEG]
899
+ outputRange: [COLLAPSED_DEG, boxed ? BOXED_EXPANDED_DEG : PLAIN_EXPANDED_DEG]
867
900
  });
868
901
  const handlePress = React8.useCallback(() => {
869
902
  if (!disabled) toggle(id);
@@ -881,14 +914,19 @@ var AccordionItem = ({
881
914
  );
882
915
  const keyboardProps = reactNative.Platform.OS === "web" ? { onKeyDown: handleKeyDown2 } : {};
883
916
  const itemStyle = React8.useMemo(
884
- () => [styles11.item, { borderTopColor: colors.border }],
885
- [colors.border]
917
+ () => boxed ? [styles11.boxItem, { borderColor: colors.border }] : [styles11.item, { borderTopColor: colors.border }],
918
+ [boxed, colors.border]
886
919
  );
887
920
  const headerStyle = React8.useMemo(
888
- () => [styles11.header, { opacity: disabled ? DISABLED_OPACITY : FULL_OPACITY }],
889
- [disabled]
921
+ () => [
922
+ styles11.header,
923
+ ...boxed ? [styles11.boxHeader] : [],
924
+ { opacity: disabled ? DISABLED_OPACITY : FULL_OPACITY }
925
+ ],
926
+ [boxed, disabled]
890
927
  );
891
928
  const resolvedLabel = accessibilityLabel ?? (typeof title === "string" ? title : void 0);
929
+ const titleNode = typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [boxed ? styles11.boxTitle : styles11.title, { color: boxed ? colors.textSecondary : colors.text }], children: title }) : title;
892
930
  return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: itemStyle, children: [
893
931
  /* @__PURE__ */ jsxRuntime.jsxs(
894
932
  reactNative.Pressable,
@@ -905,15 +943,50 @@ var AccordionItem = ({
905
943
  onPress: handlePress,
906
944
  ...keyboardProps,
907
945
  children: [
908
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles11.headerLeft, children: typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.title, { color: colors.text }], children: title }) : title }),
946
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles11.headerLeft, boxed ? styles11.headerLeftRow : null], children: [
947
+ boxed ? (
948
+ // Decorative — the open/closed state is already conveyed by aria-expanded on the header.
949
+ /* @__PURE__ */ jsxRuntime.jsx(
950
+ reactNative.Animated.View,
951
+ {
952
+ accessibilityElementsHidden: true,
953
+ "aria-hidden": true,
954
+ importantForAccessibility: "no-hide-descendants",
955
+ style: [styles11.marker, { transform: [{ rotate }] }],
956
+ testID: chevronTestID,
957
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.markerText, { color: colors.textSecondary }], children: BOX_MARKER })
958
+ }
959
+ )
960
+ ) : null,
961
+ titleNode
962
+ ] }),
909
963
  /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles11.headerRight, children: [
910
964
  right,
911
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Animated.View, { style: [styles11.chevron, { transform: [{ rotate }] }], children: /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: colors.textSecondary, name: "chevronDown", size: CHEVRON_SIZE, testID: chevronTestID }) })
965
+ boxed ? null : /* @__PURE__ */ jsxRuntime.jsx(
966
+ reactNative.Animated.View,
967
+ {
968
+ accessibilityElementsHidden: true,
969
+ "aria-hidden": true,
970
+ importantForAccessibility: "no-hide-descendants",
971
+ style: [styles11.chevron, { transform: [{ rotate }] }],
972
+ children: /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: colors.textSecondary, name: "chevronDown", size: CHEVRON_SIZE, testID: chevronTestID })
973
+ }
974
+ )
912
975
  ] })
913
976
  ]
914
977
  }
915
978
  ),
916
- expanded ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityLabel: resolvedLabel, nativeID: bodyTestID, role: ROLE_REGION, style: styles11.body, testID: bodyTestID, children }) : null
979
+ expanded ? /* @__PURE__ */ jsxRuntime.jsx(
980
+ reactNative.View,
981
+ {
982
+ accessibilityLabel: resolvedLabel,
983
+ nativeID: bodyTestID,
984
+ role: ROLE_REGION,
985
+ style: boxed ? styles11.boxBody : styles11.body,
986
+ testID: bodyTestID,
987
+ children
988
+ }
989
+ ) : null
917
990
  ] });
918
991
  };
919
992