@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 +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2478,6 +2478,7 @@ function FilterSidePanel({ visible, onClose, title, closeLabel, closeHint, child
|
|
|
2478
2478
|
const { theme } = useUi();
|
|
2479
2479
|
const { width } = useWindowDimensions();
|
|
2480
2480
|
const panelWidth = Math.min(PANEL_MAX_WIDTH, Math.round(width * PANEL_SCREEN_SHARE));
|
|
2481
|
+
const focusTitleOnOpen = useCallback((node) => node?.focus(), []);
|
|
2481
2482
|
return /* @__PURE__ */ jsx(Modal, { transparent: true, animationType: "fade", visible, onRequestClose: onClose, children: /* @__PURE__ */ jsxs(View, { style: styles6.root, children: [
|
|
2482
2483
|
/* @__PURE__ */ jsx(
|
|
2483
2484
|
Pressable,
|
|
@@ -2498,7 +2499,7 @@ function FilterSidePanel({ visible, onClose, title, closeLabel, closeHint, child
|
|
|
2498
2499
|
testID,
|
|
2499
2500
|
children: [
|
|
2500
2501
|
/* @__PURE__ */ jsxs(View, { style: styles6.header, children: [
|
|
2501
|
-
/* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [styles6.title, { color: theme.colors.text }], children: title }),
|
|
2502
|
+
/* @__PURE__ */ jsx(View, { ref: focusTitleOnOpen, focusable: true, style: styles6.titleBox, testID: `${testID}-title`, children: /* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: [styles6.title, { color: theme.colors.text }], children: title }) }),
|
|
2502
2503
|
/* @__PURE__ */ jsx(ActionButton, { label: closeLabel, hint: closeHint, tone: "primary", onPress: onClose, testID: `${testID}-close` })
|
|
2503
2504
|
] }),
|
|
2504
2505
|
/* @__PURE__ */ jsx(ScrollView, { children })
|
|
@@ -2511,6 +2512,7 @@ var styles6 = StyleSheet.create({
|
|
|
2511
2512
|
root: { flex: 1, flexDirection: "row", justifyContent: "flex-end" },
|
|
2512
2513
|
panel: { height: "100%", padding: PANEL_PAD, borderLeftWidth: PANEL_BORDER },
|
|
2513
2514
|
header: { flexDirection: "row", alignItems: "center", justifyContent: "space-between", gap: HEADER_GAP, marginBottom: HEADER_BOTTOM },
|
|
2515
|
+
titleBox: { flexShrink: 1 },
|
|
2514
2516
|
title: { flexShrink: 1, fontSize: TITLE_FONT, fontWeight: "700" }
|
|
2515
2517
|
});
|
|
2516
2518
|
|