@dloizides/ui-layout 1.22.0 → 1.22.1

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.mjs CHANGED
@@ -2,7 +2,7 @@ import React10, { createContext, useMemo, useRef, useEffect, useState, useCallba
2
2
  import { StyleSheet, Platform, View, Text, Pressable, TouchableOpacity, Modal, FlatList, ScrollView, Animated, Easing, useWindowDimensions, LayoutAnimation, UIManager } from 'react-native';
3
3
  import { MODAL_OVERLAY_COLOR, useUi } from '@dloizides/ui-feedback';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
- import { useA11y } from '@dloizides/a11y';
5
+ import { MIN_TOUCH_TARGET_PX, useA11y } from '@dloizides/a11y';
6
6
  import { createPortal } from 'react-dom';
7
7
  import { SvgIcon } from '@dloizides/ui-icons';
8
8
  import { IconButton, Button } from '@dloizides/ui-buttons';
@@ -668,7 +668,12 @@ var styles7 = StyleSheet.create({
668
668
  borderWidth: BORDER_WIDTH4,
669
669
  borderRadius: BORDER_RADIUS3,
670
670
  paddingHorizontal: CONTAINER_PADDING_H,
671
- paddingVertical: CONTAINER_PADDING_V
671
+ paddingVertical: CONTAINER_PADDING_V,
672
+ // Match the shared control height used by @dloizides/ui-forms inputs (same MIN_TOUCH_TARGET_PX
673
+ // floor from @dloizides/a11y), so a select trigger and a text/typeahead field sitting side by
674
+ // side in a filter bar are exactly the same height. Centre the label within that floor.
675
+ minHeight: MIN_TOUCH_TARGET_PX,
676
+ justifyContent: "center"
672
677
  },
673
678
  // Caret variant: a row with the label leading and the caret pinned to the trailing edge, at a
674
679
  // phone-friendly minimum height. Only applied when `showCaret` is set, so field dropdowns are