@dloizides/ui-tables 3.2.0 → 3.3.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/dist/index.js CHANGED
@@ -2483,6 +2483,7 @@ function FilterSidePanel({ visible, onClose, title, closeLabel, closeHint, child
2483
2483
  const { theme } = uiFeedback.useUi();
2484
2484
  const { width } = reactNative.useWindowDimensions();
2485
2485
  const panelWidth = Math.min(PANEL_MAX_WIDTH, Math.round(width * PANEL_SCREEN_SHARE));
2486
+ const focusTitleOnOpen = React2.useCallback((node) => node?.focus(), []);
2486
2487
  return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Modal, { transparent: true, animationType: "fade", visible, onRequestClose: onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles6.root, children: [
2487
2488
  /* @__PURE__ */ jsxRuntime.jsx(
2488
2489
  reactNative.Pressable,
@@ -2503,7 +2504,7 @@ function FilterSidePanel({ visible, onClose, title, closeLabel, closeHint, child
2503
2504
  testID,
2504
2505
  children: [
2505
2506
  /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles6.header, children: [
2506
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles6.title, { color: theme.colors.text }], children: title }),
2507
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { ref: focusTitleOnOpen, focusable: true, style: styles6.titleBox, testID: `${testID}-title`, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles6.title, { color: theme.colors.text }], children: title }) }),
2507
2508
  /* @__PURE__ */ jsxRuntime.jsx(ActionButton, { label: closeLabel, hint: closeHint, tone: "primary", onPress: onClose, testID: `${testID}-close` })
2508
2509
  ] }),
2509
2510
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { children })
@@ -2516,6 +2517,7 @@ var styles6 = reactNative.StyleSheet.create({
2516
2517
  root: { flex: 1, flexDirection: "row", justifyContent: "flex-end" },
2517
2518
  panel: { height: "100%", padding: PANEL_PAD, borderLeftWidth: PANEL_BORDER },
2518
2519
  header: { flexDirection: "row", alignItems: "center", justifyContent: "space-between", gap: HEADER_GAP, marginBottom: HEADER_BOTTOM },
2520
+ titleBox: { flexShrink: 1 },
2519
2521
  title: { flexShrink: 1, fontSize: TITLE_FONT, fontWeight: "700" }
2520
2522
  });
2521
2523