@jsenv/navi 0.27.38 → 0.27.40

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.
@@ -3,13 +3,12 @@ import { isValidElement, createContext, h, toChildArray, render, Fragment, clone
3
3
  import { useErrorBoundary, useLayoutEffect, useEffect, useContext, useMemo, useRef, useState, useCallback, useId } from "preact/hooks";
4
4
  import { jsxs, jsx, Fragment as Fragment$1 } from "preact/jsx-runtime";
5
5
  import { signal, effect, computed, batch, useSignal } from "@preact/signals";
6
- import { createIterableWeakSet, createEventGroupLogger, normalizeStyle, mergeOneStyle, createPubSub, findEvent, dispatchInternalCustomEvent, mergeTwoStyles, normalizeStyles, createGroupTransitionController, getElementSignature, getBorderRadius, preventIntermediateScrollbar, createOpacityTransition, dispatchCustomEvent, createValueEffect, getVisuallyVisibleInfo, getFirstVisuallyVisibleAncestor, findFocusDelegateTarget, findFocusable, allowWheelThrough, dispatchPublicCustomEvent, resolveCSSColor, createStyleController, visibleRectEffect, pickPositionRelativeTo, getBorderSizes, getPaddingSizes, measureLongestVisualLineWidth, chainEvent, getKeyboardEventDefaultAction, findBefore, findAfter, resolveCSSSize, hasCSSSizeUnit, resolveOklchLightness, contrastColor, activeElementSignal, initFocusGroup, elementIsFocusable, snapToPixel, trapScrollInside, trapFocusInside, scrollIntoViewScoped, measureWidestChildRow, dragAfterThreshold, getScrollContainer, stickyAsRelativeCoords, createDragToMoveGestureController, getDropTargetInfo, setStyles, useActiveElement } from "@jsenv/dom";
6
+ import { createIterableWeakSet, createEventGroupLogger, normalizeStyle, mergeOneStyle, createPubSub, findEvent, dispatchInternalCustomEvent, mergeTwoStyles, normalizeStyles, createGroupTransitionController, getElementSignature, getBorderRadius, preventIntermediateScrollbar, createOpacityTransition, dispatchCustomEvent, createValueEffect, getVisuallyVisibleInfo, getFirstVisuallyVisibleAncestor, findFocusDelegateTarget, findFocusable, allowWheelThrough, dispatchPublicCustomEvent, resolveCSSColor, createStyleController, visibleRectEffect, pickPositionRelativeTo, getBorderSizes, getPaddingSizes, measureLongestVisualLineWidth, chainEvent, getKeyboardEventDefaultAction, findBefore, findAfter, resolveCSSSize, hasCSSSizeUnit, resolveOklchLightness, contrastColor, activeElementSignal, initFocusGroup, elementIsFocusable, snapToPixel, trapScrollInside, trapFocusInside, scrollIntoViewScoped, measureWidestChildRow, performTabNavigation, dragAfterThreshold, getScrollContainer, stickyAsRelativeCoords, createDragToMoveGestureController, getDropTargetInfo, setStyles, useActiveElement } from "@jsenv/dom";
7
7
  export { contrastColor, startDragToReorder } from "@jsenv/dom";
8
8
  import { prefixFirstAndIndentRemainingLines } from "@jsenv/humanize";
9
9
  import { createValidity, parseDuration, durationContainsNaN, compareTwoDurations, durationToSeconds, durationToISOString } from "@jsenv/validity";
10
10
  export { compareTwoDurations, durationContainsNaN, durationToHours, durationToISOString, durationToMinutes, durationToNumber, durationToSeconds, durationToString, parseDuration } from "@jsenv/validity";
11
11
  import { Suspense, createPortal, forwardRef } from "preact/compat";
12
- import { performTabNavigation } from "@jsenv/dom/src/interaction/focus/tab_navigation.js";
13
12
 
14
13
  const actionPrivatePropertiesWeakMap = new WeakMap();
15
14
  const getActionPrivateProperties = (action) => {
@@ -36943,6 +36942,7 @@ installImportMetaCssBuild(import.meta);const css$n = /* css */`
36943
36942
  position: relative;
36944
36943
  font-size: var(--navi-control-font-size);
36945
36944
  font-family: var(--navi-control-font-family);
36945
+ -webkit-tap-highlight-color: var(--navi-control-tap-highlight-color);
36946
36946
  }
36947
36947
  }
36948
36948
 
@@ -40115,13 +40115,11 @@ const isWithinPickerContent = (el, pickerEl) => {
40115
40115
  };
40116
40116
  const PickerInput = props => {
40117
40117
  return jsx(Box, {
40118
- as: "input"
40119
- // readOnly because user MUST use the picker to change the value
40120
- ,
40121
-
40122
- readOnly: true,
40118
+ as: "input",
40123
40119
  "data-readonly-forced": props.readOnly ? undefined : "",
40124
40120
  ...props,
40121
+ // must be readOnly to prevent opening keyboard on mobile (and direct update via keyboard too, we want people to use the picker)
40122
+ readOnly: true,
40125
40123
  className: "navi_picker_input",
40126
40124
  pseudoClasses: PickerInputPseudoClasses,
40127
40125
  onKeyDown: e => {