@dloizides/ui-layout 1.28.2 → 1.28.4

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
@@ -7,6 +7,7 @@ var jsxRuntime = require('react/jsx-runtime');
7
7
  var a11y = require('@dloizides/a11y');
8
8
  var uiMotion = require('@dloizides/ui-motion');
9
9
  var reactDom = require('react-dom');
10
+ var designTokens = require('@dloizides/design-tokens');
10
11
  var uiIcons = require('@dloizides/ui-icons');
11
12
  var uiButtons = require('@dloizides/ui-buttons');
12
13
  var rnWebHooks = require('@dloizides/rn-web-hooks');
@@ -329,11 +330,8 @@ var DropdownVariant = /* @__PURE__ */ ((DropdownVariant2) => {
329
330
  DropdownVariant2["Modal"] = "modal";
330
331
  return DropdownVariant2;
331
332
  })(DropdownVariant || {});
332
-
333
- // src/ModalDropdown/menuStacking.ts
334
- var RN_WEB_MODAL_Z_INDEX = 9999;
335
- var MENU_Z_INDEX = RN_WEB_MODAL_Z_INDEX + 1;
336
- var ANCHOR_OPEN_Z_INDEX = 1e3;
333
+ var MENU_Z_INDEX = designTokens.Z_INDEX.popover;
334
+ var ANCHOR_OPEN_Z_INDEX = designTokens.Z_INDEX.dropdown;
337
335
  var MENU_ELEVATION = 8;
338
336
  var MENU_TOP_GAP = 4;
339
337
  var MENU_MAX_HEIGHT = 300;
@@ -387,6 +385,8 @@ var styles5 = reactNative.StyleSheet.create({
387
385
  option: {
388
386
  paddingHorizontal: OPTION_PADDING_H,
389
387
  paddingVertical: OPTION_PADDING_V,
388
+ minHeight: MIN_TARGET_PX,
389
+ justifyContent: "center",
390
390
  borderRadius: OPTION_BORDER_RADIUS
391
391
  },
392
392
  optionText: { fontSize: BODY_FONT_SIZE },