@astryxdesign/core 0.7.7-canary.4a8a76e → 0.7.7-canary.4e495ec

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.
Files changed (266) hide show
  1. package/dist/AppShell/useCloseMobileDrawerOnActivate.d.ts +13 -0
  2. package/dist/AppShell/useCloseMobileDrawerOnActivate.d.ts.map +1 -0
  3. package/dist/AppShell/useCloseMobileDrawerOnActivate.js +45 -0
  4. package/dist/BottomSheet/BottomSheet.d.ts.map +1 -1
  5. package/dist/BottomSheet/BottomSheet.js +79 -9
  6. package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
  7. package/dist/BottomSheet/BottomSheetPanel.js +1 -1
  8. package/dist/BottomSheet/bottomSheetStack.d.ts.map +1 -1
  9. package/dist/BottomSheet/bottomSheetStack.js +5 -4
  10. package/dist/Breadcrumbs/BreadcrumbItem.d.ts +2 -1
  11. package/dist/Breadcrumbs/BreadcrumbItem.d.ts.map +1 -1
  12. package/dist/Breadcrumbs/BreadcrumbItem.js +7 -3
  13. package/dist/CheckboxList/CheckboxList.d.ts.map +1 -1
  14. package/dist/CheckboxList/CheckboxList.js +7 -1
  15. package/dist/CheckboxList/CheckboxListContext.d.ts +6 -0
  16. package/dist/CheckboxList/CheckboxListContext.d.ts.map +1 -1
  17. package/dist/CheckboxList/CheckboxListItem.d.ts.map +1 -1
  18. package/dist/CheckboxList/CheckboxListItem.js +10 -2
  19. package/dist/DateInput/DateInput.d.ts.map +1 -1
  20. package/dist/DateInput/DateInput.js +5 -2
  21. package/dist/DateTimeInput/DateTimeInput.d.ts.map +1 -1
  22. package/dist/DateTimeInput/DateTimeInput.js +5 -2
  23. package/dist/Dialog/Dialog.d.ts.map +1 -1
  24. package/dist/Dialog/Dialog.js +16 -14
  25. package/dist/Drawer/Drawer.d.ts.map +1 -1
  26. package/dist/Drawer/Drawer.js +15 -11
  27. package/dist/Drawer/useDrawerDialogPresence.d.ts.map +1 -1
  28. package/dist/Drawer/useDrawerDialogPresence.js +5 -1
  29. package/dist/Field/PanelSearchInput.d.ts +9 -1
  30. package/dist/Field/PanelSearchInput.d.ts.map +1 -1
  31. package/dist/Field/PanelSearchInput.js +3 -1
  32. package/dist/InfoTip/InfoTip.d.ts +2 -2
  33. package/dist/InfoTip/InfoTip.js +4 -4
  34. package/dist/Layer/layerAnimations.stylex.d.ts +7 -8
  35. package/dist/Layer/layerAnimations.stylex.d.ts.map +1 -1
  36. package/dist/Layer/layerAnimations.stylex.js +25 -20
  37. package/dist/Layer/useBackdropPress.d.ts +27 -0
  38. package/dist/Layer/useBackdropPress.d.ts.map +1 -0
  39. package/dist/Layer/useBackdropPress.js +53 -0
  40. package/dist/Layer/usePressPin.d.ts +3 -5
  41. package/dist/Layer/usePressPin.d.ts.map +1 -1
  42. package/dist/Layer/usePressPin.js +4 -6
  43. package/dist/MobileNav/MobileNav.js +0 -1
  44. package/dist/MultiSelector/hooks.d.ts.map +1 -1
  45. package/dist/MultiSelector/hooks.js +2 -4
  46. package/dist/Outline/Outline.d.ts +2 -4
  47. package/dist/Outline/Outline.d.ts.map +1 -1
  48. package/dist/Outline/Outline.js +4 -52
  49. package/dist/Outline/useOutlineFromMarkdown.d.ts.map +1 -1
  50. package/dist/Outline/useOutlineFromMarkdown.js +1 -0
  51. package/dist/Outline/useScrollSpy.js +3 -3
  52. package/dist/PowerSearch/PowerSearch.d.ts.map +1 -1
  53. package/dist/PowerSearch/PowerSearch.js +134 -179
  54. package/dist/RadioList/RadioList.d.ts.map +1 -1
  55. package/dist/RadioList/RadioList.js +5 -0
  56. package/dist/Resizable/ResizeHandle.d.ts.map +1 -1
  57. package/dist/Resizable/ResizeHandle.js +118 -260
  58. package/dist/Resizable/resizeGesture.d.ts +91 -0
  59. package/dist/Resizable/resizeGesture.d.ts.map +1 -0
  60. package/dist/Resizable/resizeGesture.js +251 -0
  61. package/dist/SegmentedControl/SegmentedControl.d.ts +3 -1
  62. package/dist/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  63. package/dist/SegmentedControl/SegmentedControl.js +115 -8
  64. package/dist/SegmentedControl/SegmentedControlContext.d.ts +6 -0
  65. package/dist/SegmentedControl/SegmentedControlContext.d.ts.map +1 -1
  66. package/dist/SegmentedControl/SegmentedControlItem.d.ts +1 -0
  67. package/dist/SegmentedControl/SegmentedControlItem.d.ts.map +1 -1
  68. package/dist/SegmentedControl/SegmentedControlItem.js +8 -1
  69. package/dist/SegmentedControl/useSegmentedSelectionMotion.d.ts +357 -0
  70. package/dist/SegmentedControl/useSegmentedSelectionMotion.d.ts.map +1 -0
  71. package/dist/SegmentedControl/useSegmentedSelectionMotion.js +1349 -0
  72. package/dist/SegmentedControl/useSegmentedTouchTracking.d.ts +70 -0
  73. package/dist/SegmentedControl/useSegmentedTouchTracking.d.ts.map +1 -0
  74. package/dist/SegmentedControl/useSegmentedTouchTracking.js +264 -0
  75. package/dist/Selector/Selector.d.ts.map +1 -1
  76. package/dist/Selector/Selector.js +96 -67
  77. package/dist/Selector/optionShape.d.ts +24 -0
  78. package/dist/Selector/optionShape.d.ts.map +1 -0
  79. package/dist/Selector/optionShape.js +48 -0
  80. package/dist/Selector/selectableOptionEntries.d.ts +20 -0
  81. package/dist/Selector/selectableOptionEntries.d.ts.map +1 -0
  82. package/dist/Selector/selectableOptionEntries.js +38 -0
  83. package/dist/Selector/utils.d.ts +2 -17
  84. package/dist/Selector/utils.d.ts.map +1 -1
  85. package/dist/Selector/utils.js +3 -51
  86. package/dist/SideNav/SideNavItem.d.ts.map +1 -1
  87. package/dist/SideNav/SideNavItem.js +3 -9
  88. package/dist/Switch/switchTouch.d.ts +0 -7
  89. package/dist/Switch/switchTouch.d.ts.map +1 -1
  90. package/dist/Switch/switchTouch.js +2 -10
  91. package/dist/Switch/useSwitchTouch.d.ts +2 -11
  92. package/dist/Switch/useSwitchTouch.d.ts.map +1 -1
  93. package/dist/Switch/useSwitchTouch.js +26 -85
  94. package/dist/Token/Token.d.ts +2 -2
  95. package/dist/Token/Token.d.ts.map +1 -1
  96. package/dist/Token/Token.js +12 -4
  97. package/dist/Token/TokenNamingContext.d.ts +14 -0
  98. package/dist/Token/TokenNamingContext.d.ts.map +1 -0
  99. package/dist/Token/TokenNamingContext.js +23 -0
  100. package/dist/Tokenizer/Tokenizer.d.ts +46 -59
  101. package/dist/Tokenizer/Tokenizer.d.ts.map +1 -1
  102. package/dist/Tokenizer/Tokenizer.js +35 -58
  103. package/dist/Tokenizer/TokenizerBottomSheet.d.ts +25 -28
  104. package/dist/Tokenizer/TokenizerBottomSheet.d.ts.map +1 -1
  105. package/dist/Tokenizer/TokenizerBottomSheet.js +157 -54
  106. package/dist/Tokenizer/TokenizerItemRemovableContext.d.ts.map +1 -1
  107. package/dist/Tokenizer/TokenizerItemRemovableContext.js +5 -3
  108. package/dist/Tooltip/Tooltip.d.ts +25 -30
  109. package/dist/Tooltip/Tooltip.d.ts.map +1 -1
  110. package/dist/Tooltip/Tooltip.js +24 -5
  111. package/dist/Tooltip/index.d.ts +1 -1
  112. package/dist/Tooltip/index.d.ts.map +1 -1
  113. package/dist/Tooltip/useTooltip.d.ts +28 -29
  114. package/dist/Tooltip/useTooltip.d.ts.map +1 -1
  115. package/dist/Tooltip/useTooltip.js +20 -8
  116. package/dist/TopNav/TopNavItem.d.ts.map +1 -1
  117. package/dist/TopNav/TopNavItem.js +4 -7
  118. package/dist/TopNav/TopNavMegaMenuItem.d.ts.map +1 -1
  119. package/dist/TopNav/TopNavMegaMenuItem.js +4 -7
  120. package/dist/TopNav/TopNavMenu.d.ts.map +1 -1
  121. package/dist/TopNav/TopNavMenu.js +4 -7
  122. package/dist/astryx.css +76 -5
  123. package/dist/gestures/GestureHost.d.ts.map +1 -1
  124. package/dist/gestures/GestureHost.js +53 -5
  125. package/dist/hooks/actionGroupTracker.d.ts +3 -3
  126. package/dist/hooks/actionGroupTracker.d.ts.map +1 -1
  127. package/dist/hooks/actionGroupTracker.js +6 -53
  128. package/dist/hooks/useHighlightedOptionScroll.d.ts +11 -1
  129. package/dist/hooks/useHighlightedOptionScroll.d.ts.map +1 -1
  130. package/dist/hooks/useHighlightedOptionScroll.js +112 -11
  131. package/dist/hooks/useMediaQuery.d.ts +2 -1
  132. package/dist/hooks/useMediaQuery.d.ts.map +1 -1
  133. package/dist/hooks/useMediaQuery.js +7 -4
  134. package/dist/hooks/useMenuPress.d.ts.map +1 -1
  135. package/dist/hooks/useMenuPress.js +4 -2
  136. package/dist/i18n/generated-english/PowerSearch/PowerSearch.generated.d.ts.map +1 -1
  137. package/dist/i18n/generated-english/PowerSearch/PowerSearch.generated.js +1 -0
  138. package/dist/i18n/generated-english/Tokenizer/TokenizerBottomSheet.generated.d.ts.map +1 -1
  139. package/dist/i18n/generated-english/Tokenizer/TokenizerBottomSheet.generated.js +7 -1
  140. package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
  141. package/dist/i18n/generated-locales/en.generated.js +1 -0
  142. package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
  143. package/dist/i18n/generated-locales/pseudo.generated.js +1 -0
  144. package/dist/internal/SheetConfirmation.d.ts +11 -0
  145. package/dist/internal/SheetConfirmation.d.ts.map +1 -0
  146. package/dist/internal/SheetConfirmation.js +92 -0
  147. package/dist/internal/sheetDraft.d.ts +35 -0
  148. package/dist/internal/sheetDraft.d.ts.map +1 -0
  149. package/dist/internal/sheetDraft.js +65 -0
  150. package/dist/internal/touch-sheet.d.ts +21 -0
  151. package/dist/internal/touch-sheet.d.ts.map +1 -0
  152. package/dist/internal/touch-sheet.js +19 -0
  153. package/dist/internal/useDismissSearchOnTouchDrag.d.ts +24 -0
  154. package/dist/internal/useDismissSearchOnTouchDrag.d.ts.map +1 -0
  155. package/dist/internal/useDismissSearchOnTouchDrag.js +56 -0
  156. package/dist/motion/roles.d.ts +7 -1
  157. package/dist/motion/roles.d.ts.map +1 -1
  158. package/dist/motion/roles.js +20 -1
  159. package/dist/motion/uikit/index.d.ts +6 -5
  160. package/dist/motion/uikit/index.d.ts.map +1 -1
  161. package/dist/motion/uikit/index.js +6 -5
  162. package/dist/motion/uikit/segmented.d.ts +55 -0
  163. package/dist/motion/uikit/segmented.d.ts.map +1 -0
  164. package/dist/motion/uikit/segmented.js +77 -0
  165. package/dist/motion/uikit/springs.d.ts +0 -18
  166. package/dist/motion/uikit/springs.d.ts.map +1 -1
  167. package/dist/motion/uikit/springs.js +5 -21
  168. package/dist/privateAttributes/segmentTitle.stylex.d.ts +5 -0
  169. package/dist/privateAttributes/segmentTitle.stylex.d.ts.map +1 -0
  170. package/dist/privateAttributes/segmentTitle.stylex.js +22 -0
  171. package/dist/utils/browserClickWait.d.ts +35 -0
  172. package/dist/utils/browserClickWait.d.ts.map +1 -0
  173. package/dist/utils/browserClickWait.js +123 -0
  174. package/dist/utils/clickGuard.d.ts +8 -1
  175. package/dist/utils/clickGuard.d.ts.map +1 -1
  176. package/dist/utils/clickGuard.js +24 -1
  177. package/locales/en.json +4 -0
  178. package/locales/pseudo.json +3 -0
  179. package/package.json +8 -8
  180. package/src/AppShell/useCloseMobileDrawerOnActivate.ts +52 -0
  181. package/src/BottomSheet/BottomSheet.tsx +95 -10
  182. package/src/BottomSheet/BottomSheetPanel.tsx +7 -2
  183. package/src/BottomSheet/bottomSheetStack.ts +8 -4
  184. package/src/Breadcrumbs/BreadcrumbItem.tsx +13 -3
  185. package/src/CheckboxList/CheckboxList.doc.mjs +4 -2
  186. package/src/CheckboxList/CheckboxList.tsx +6 -0
  187. package/src/CheckboxList/CheckboxListContext.tsx +6 -0
  188. package/src/CheckboxList/CheckboxListItem.tsx +11 -2
  189. package/src/DateInput/DateInput.tsx +8 -2
  190. package/src/DateTimeInput/DateTimeInput.tsx +8 -2
  191. package/src/Dialog/Dialog.tsx +44 -14
  192. package/src/Drawer/Drawer.tsx +28 -11
  193. package/src/Drawer/useDrawerDialogPresence.ts +5 -1
  194. package/src/Field/PanelSearchInput.tsx +11 -0
  195. package/src/InfoTip/InfoTip.doc.mjs +3 -3
  196. package/src/InfoTip/InfoTip.tsx +5 -5
  197. package/src/Layer/layerAnimations.stylex.ts +24 -16
  198. package/src/Layer/useBackdropPress.ts +81 -0
  199. package/src/Layer/usePressPin.ts +5 -11
  200. package/src/MobileNav/MobileNav.tsx +1 -1
  201. package/src/MultiSelector/hooks.ts +2 -4
  202. package/src/Outline/Outline.doc.mjs +177 -51
  203. package/src/Outline/Outline.tsx +5 -57
  204. package/src/Outline/useOutlineFromMarkdown.doc.mjs +157 -0
  205. package/src/Outline/useOutlineFromMarkdown.ts +1 -0
  206. package/src/Outline/useScrollSpy.ts +3 -3
  207. package/src/PowerSearch/PowerSearch.doc.mjs +3 -3
  208. package/src/PowerSearch/PowerSearch.tsx +196 -183
  209. package/src/RadioList/RadioList.doc.mjs +4 -2
  210. package/src/RadioList/RadioList.tsx +4 -0
  211. package/src/Resizable/ResizeHandle.tsx +133 -328
  212. package/src/Resizable/resizeGesture.ts +368 -0
  213. package/src/SegmentedControl/SegmentedControl.doc.mjs +3 -3
  214. package/src/SegmentedControl/SegmentedControl.tsx +179 -5
  215. package/src/SegmentedControl/SegmentedControlContext.ts +6 -0
  216. package/src/SegmentedControl/SegmentedControlItem.tsx +12 -1
  217. package/src/SegmentedControl/useSegmentedSelectionMotion.ts +1637 -0
  218. package/src/SegmentedControl/useSegmentedTouchTracking.ts +308 -0
  219. package/src/Selector/Selector.tsx +136 -89
  220. package/src/Selector/optionShape.ts +64 -0
  221. package/src/Selector/selectableOptionEntries.ts +39 -0
  222. package/src/Selector/utils.ts +9 -68
  223. package/src/SideNav/SideNavItem.tsx +3 -7
  224. package/src/Switch/switchTouch.ts +2 -10
  225. package/src/Switch/useSwitchTouch.ts +26 -96
  226. package/src/Token/Token.tsx +13 -4
  227. package/src/Token/TokenNamingContext.ts +28 -0
  228. package/src/Tokenizer/Tokenizer.doc.mjs +16 -0
  229. package/src/Tokenizer/Tokenizer.tsx +81 -86
  230. package/src/Tokenizer/TokenizerBottomSheet.tsx +219 -93
  231. package/src/Tokenizer/TokenizerItemRemovableContext.ts +5 -3
  232. package/src/Tooltip/Tooltip.doc.mjs +123 -54
  233. package/src/Tooltip/Tooltip.tsx +36 -39
  234. package/src/Tooltip/index.ts +0 -1
  235. package/src/Tooltip/useTooltip.doc.mjs +147 -33
  236. package/src/Tooltip/useTooltip.tsx +39 -32
  237. package/src/TopNav/TopNavItem.tsx +6 -5
  238. package/src/TopNav/TopNavMegaMenuItem.tsx +6 -5
  239. package/src/TopNav/TopNavMenu.tsx +6 -5
  240. package/src/gestures/GestureHost.ts +73 -4
  241. package/src/hooks/actionGroupTracker.ts +12 -56
  242. package/src/hooks/useHighlightedOptionScroll.ts +123 -15
  243. package/src/hooks/useMediaQuery.doc.mjs +2 -2
  244. package/src/hooks/useMediaQuery.ts +13 -4
  245. package/src/hooks/useMenuPress.ts +8 -2
  246. package/src/i18n/generated-english/PowerSearch/PowerSearch.generated.ts +1 -0
  247. package/src/i18n/generated-english/Tokenizer/TokenizerBottomSheet.generated.ts +7 -1
  248. package/src/i18n/generated-locales/en.generated.ts +1 -0
  249. package/src/i18n/generated-locales/pseudo.generated.ts +1 -0
  250. package/src/internal/SheetConfirmation.tsx +101 -0
  251. package/src/internal/sheetDraft.ts +80 -0
  252. package/src/internal/touch-sheet.ts +21 -0
  253. package/src/internal/useDismissSearchOnTouchDrag.ts +69 -0
  254. package/src/motion/MEASUREMENTS.md +7 -0
  255. package/src/motion/README.md +1 -0
  256. package/src/motion/roles.ts +20 -1
  257. package/src/motion/uikit/index.ts +5 -5
  258. package/src/motion/uikit/segmented.ts +74 -0
  259. package/src/motion/uikit/springs.ts +5 -21
  260. package/src/privateAttributes/segmentTitle.stylex.ts +22 -0
  261. package/src/utils/browserClickWait.ts +133 -0
  262. package/src/utils/clickGuard.ts +37 -1
  263. package/dist/internal/tokenizer-presentation.d.ts +0 -21
  264. package/dist/internal/tokenizer-presentation.d.ts.map +0 -1
  265. package/dist/internal/tokenizer-presentation.js +0 -21
  266. package/src/internal/token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C/B,CAAC;IAEF;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,MAAM,CAAC,EACrB,MAAM,EAAE,UAAU,EAClB,YAAY,EACZ,IAAY,EACZ,KAAW,EACX,YAAY,EACZ,KAAK,EACL,QAAe,EACf,OAAgB,EAChB,OAAO,EACP,QAAQ,EACR,MAAM,EACN,SAAS,EACT,KAAK,EACL,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,aAAa,EACxB,GAAG,EACH,GAAG,KAAK,EACT,EAAE,WAAW,+BAsNb;yBAxOe,MAAM"}
@@ -70,13 +70,15 @@ import { layerTextReset } from "../Layer/layerTextReset.stylex.js";
70
70
  import { layerStructureReset } from "../Layer/layerStructureReset.stylex.js";
71
71
  import { LayerContentBoundary } from "../Layer/layerScopedContext.js";
72
72
  import { useModalOutlet } from "../Layer/modalOutlet.js";
73
+ import { useBackdropPress } from "../Layer/useBackdropPress.js";
73
74
  import { layerClickBoundary } from "../Layer/layerClickBoundary.js";
74
75
  import { ModalAnnounceProvider } from "../hooks/ModalAnnounceProvider.js";
75
76
  import { composeEventHandlers, mergeProps, themeProps } from "../utils/index.js";
77
+ import { chainEventHandlers } from "../utils/chainEventHandlers.js";
76
78
  import { container, overlayPaddingReset } from "../Layout/index.js";
77
79
  import { containerPaddingBlockEndVarStyles, containerPaddingBlockStartVarStyles, containerPaddingInlineVarStyles, paddingStyles, spacingStepToToken } from "../Layout/padding.stylex.js";
78
80
  import { useDrawerDialogPresence } from "./useDrawerDialogPresence.js";
79
-
81
+ import { jsx as _jsx } from "react/jsx-runtime";
80
82
  // =============================================================================
81
83
  // Styles
82
84
  // =============================================================================
@@ -84,7 +86,6 @@ import { useDrawerDialogPresence } from "./useDrawerDialogPresence.js";
84
86
  // Below this viewport width the drawer preserves a fixed reveal of the page
85
87
  // behind instead of growing proportionally with the viewport. 640px is the
86
88
  // repo's mobile breakpoint.
87
- import { jsx as _jsx } from "react/jsx-runtime";
88
89
  const MOBILE_BREAKPOINT = 640;
89
90
 
90
91
  // Material's established mobile drawer pattern leaves a 56dp reveal. Using
@@ -155,7 +156,6 @@ const styles = {
155
156
  },
156
157
  scrim: {
157
158
  kGyWv1: "xnixb3f",
158
- kba3nw: "x1abwkk1",
159
159
  k5sjJv: "xph5o2a",
160
160
  kND0Po: "x167zut7",
161
161
  k9an0g: "xft5bk6",
@@ -347,13 +347,12 @@ export function Drawer({
347
347
  }
348
348
  }, [allowEscape, handleDismiss, shouldDismissOnCloseRequest]);
349
349
 
350
- // Clicks on the ::backdrop target the <dialog> element itself; clicks on
351
- // drawer content always target a child (the content area fills the panel).
352
- const handleClick = useCallback(event => {
353
- if (event.target === event.currentTarget && hasScrim && allowScrimClick) {
354
- onOpenChange(false);
355
- }
356
- }, [allowScrimClick, hasScrim, onOpenChange]);
350
+ // A press on the ::backdrop targets the <dialog> itself (the content area
351
+ // fills the panel). The press must start and end there.
352
+ const handleScrimPress = useCallback(() => {
353
+ onOpenChange(false);
354
+ }, [onOpenChange]);
355
+ const scrimPress = useBackdropPress(handleScrimPress, hasScrim && allowScrimClick);
357
356
  const widthValue = typeof width === 'number' ? `${width}px` : width;
358
357
  const isFullWidthOnMobile = experimental?.isFullWidthOnMobile ?? false;
359
358
  const mobileWidth = isFullWidthOnMobile ? MOBILE_WIDTH_FULL : `min(${widthValue}, calc(100dvw - ${MOBILE_PAGE_REVEAL}px))`;
@@ -391,8 +390,13 @@ export function Drawer({
391
390
  } : undefined),
392
391
  ...layerClickBoundary({
393
392
  ...safeProps,
394
- onClick: composeEventHandlers(onClickProp, handleClick)
393
+ onClick: composeEventHandlers(onClickProp, scrimPress.onClick)
395
394
  }),
395
+ // The hook records where the press started first. The caller's capture
396
+ // handler then runs, also when a child prevented default.
397
+ onPointerDownCapture: chainEventHandlers(scrimPress.onPointerDownCapture, safeProps.onPointerDownCapture),
398
+ onPointerUpCapture: chainEventHandlers(scrimPress.onPointerUpCapture, safeProps.onPointerUpCapture),
399
+ onPointerCancelCapture: chainEventHandlers(scrimPress.onPointerCancelCapture, safeProps.onPointerCancelCapture),
396
400
  onKeyDown: onKeyDownProp,
397
401
  onCancel: handleCancel,
398
402
  children: /*#__PURE__*/_jsx(ModalAnnounceProvider, {
@@ -1 +1 @@
1
- {"version":3,"file":"useDrawerDialogPresence.d.ts","sourceRoot":"","sources":["../../src/Drawer/useDrawerDialogPresence.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAcf,KAAK,8BAA8B,GAAG;IACpC,SAAS,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAC/C,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAClD,CAAC;AA0DF;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,MAAM,EACN,OAAO,EACP,aAAa,GACd,EAAE,8BAA8B,GAAG,IAAI,CAoEvC"}
1
+ {"version":3,"file":"useDrawerDialogPresence.d.ts","sourceRoot":"","sources":["../../src/Drawer/useDrawerDialogPresence.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAGL,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAef,KAAK,8BAA8B,GAAG;IACpC,SAAS,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAC/C,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAClD,CAAC;AA6DF;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,MAAM,EACN,OAAO,EACP,aAAa,GACd,EAAE,8BAA8B,GAAG,IAAI,CAoEvC"}
@@ -26,6 +26,7 @@
26
26
  import { useEffect, useRef } from 'react';
27
27
  import { flushSync } from 'react-dom';
28
28
  import { notifyTopLayerEntry } from "../Layer/modalOutlet.js";
29
+ import { runPopoverOperation } from "../Layer/popoverOperations.js";
29
30
 
30
31
  /** Slack past the computed transition before the backstop gives up waiting. */
31
32
  const EXIT_BACKSTOP_BUFFER_MS = 50;
@@ -51,7 +52,10 @@ function showDrawerHost(dialog, isModal) {
51
52
  if (isModal) {
52
53
  dialog.showModal();
53
54
  } else if (typeof dialog.showPopover === 'function') {
54
- dialog.showPopover();
55
+ // The dialog's show focuses its first control. A tooltip on that control
56
+ // then asks to show. The browser refuses a show inside another show.
57
+ // Counting this show makes the tooltip wait until it ends.
58
+ runPopoverOperation(dialog.ownerDocument, () => dialog.showPopover());
55
59
  // The drawer is now the newest top-layer entry: global hosts shown before
56
60
  // it (the toast viewport) re-enter above it, as they do above a modal.
57
61
  notifyTopLayerEntry();
@@ -72,6 +72,14 @@ export interface PanelSearchInputProps extends Omit<BaseProps<HTMLInputElement>,
72
72
  * the field to the same height as its rows.
73
73
  */
74
74
  fieldXstyle?: StyleXStyles;
75
+ /**
76
+ * Draw the field as the shared input box — the input border, accent while
77
+ * focused, surface and radius — instead of the borderless panel row. A
78
+ * touch sheet is a full-width surface, not a bordered panel, so its field
79
+ * reads as a form input.
80
+ * @default false
81
+ */
82
+ hasInputBox?: boolean;
75
83
  }
76
84
  /**
77
85
  * Search row for the top of a dropdown panel: magnifier, borderless input, and
@@ -82,7 +90,7 @@ export interface PanelSearchInputProps extends Omit<BaseProps<HTMLInputElement>,
82
90
  * option list's inline padding); every other prop (`role`, `aria-*`, `id`, …)
83
91
  * passes through to the `<input>`, so the caller owns the combobox wiring.
84
92
  */
85
- export declare function PanelSearchInput({ ref, label, clearLabel, placeholder, value, onValueChange, onKeyDown, onFocus, onBlur, onContainerKeyDown, fieldXstyle, xstyle, className, style, ...props }: PanelSearchInputProps): import("react").JSX.Element;
93
+ export declare function PanelSearchInput({ ref, label, clearLabel, placeholder, value, onValueChange, onKeyDown, onFocus, onBlur, onContainerKeyDown, fieldXstyle, hasInputBox, xstyle, className, style, ...props }: PanelSearchInputProps): import("react").JSX.Element;
86
94
  export declare namespace PanelSearchInput {
87
95
  var displayName: string;
88
96
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PanelSearchInput.d.ts","sourceRoot":"","sources":["../../src/Field/PanelSearchInput.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAwB,KAAK,GAAG,EAAC,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAenD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAiF5C,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CACjD,SAAS,CAAC,gBAAgB,CAAC,EAC3B,UAAU,CACX;IACC,iEAAiE;IACjE,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAE5B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd,6EAA6E;IAC7E,UAAU,EAAE,MAAM,CAAC;IAEnB,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,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AG,CAAC,gBAAgB,CAAC,CAAC;IAE5B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd,6EAA6E;IAC7E,UAAU,EAAE,MAAM,CAAC;IAEnB,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IAEd,kEAAkE;IAClE,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEvC,wCAAwC;IACxC,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;IAEzD,0EAA0E;IAC1E,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAEpD,yEAAyE;IACzE,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAEnD;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAC;IAEhE;;;;;OAKG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,GAAG,EACH,KAAK,EACL,UAAU,EACV,WAAW,EACX,KAAK,EACL,aAAa,EACb,SAAS,EACT,OAAO,EACP,MAAM,EACN,kBAAkB,EAClB,WAAW,EACX,WAAmB,EACnB,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,qBAAqB,+BAoFvB;yBArGe,gBAAgB"}
@@ -48,6 +48,7 @@ import { useMergedRefs } from "../hooks/useMergedRefs.js";
48
48
  import "../theme/tokens.stylex.js";
49
49
  import { colorVars, durationVars, easeVars, radiusVars, spacingVars, typeScaleVars, typographyVars } from "../theme/tokens.stylex.js";
50
50
  import { textEntryTraitAttributes } from "./textEntryTraits.js";
51
+ import { inputWrapperStyles } from "./inputStyles.stylex.js";
51
52
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
52
53
  const styles = {
53
54
  wrapper: {
@@ -101,6 +102,7 @@ export function PanelSearchInput({
101
102
  onBlur,
102
103
  onContainerKeyDown,
103
104
  fieldXstyle,
105
+ hasInputBox = false,
104
106
  xstyle,
105
107
  className,
106
108
  style,
@@ -146,7 +148,7 @@ export function PanelSearchInput({
146
148
  ...mergeProps(stylex.props(styles.wrapper, xstyle), className, style),
147
149
  children: /*#__PURE__*/_jsxs("div", {
148
150
  "data-keyboard-focus": isKeyboardFocus ? 'true' : undefined,
149
- ...stylex.props(styles.field, isKeyboardFocus && styles.fieldKeyboardFocus, fieldXstyle),
151
+ ...stylex.props(styles.field, isKeyboardFocus && styles.fieldKeyboardFocus, hasInputBox && inputWrapperStyles.base, fieldXstyle),
150
152
  children: [/*#__PURE__*/_jsx(Icon, {
151
153
  icon: "search",
152
154
  size: "sm",
@@ -46,8 +46,8 @@ export interface InfoTipProps extends Pick<BaseProps, 'xstyle' | 'className' | '
46
46
  * labels, values, and metrics for permission notes, metric definitions, and
47
47
  * field help.
48
48
  *
49
- * InfoTip is Tooltip with `triggerBehavior="toggle"` on a named button: Tooltip
50
- * opens, pins, announces, and closes the help. The info icon resolves from
49
+ * InfoTip is a press-to-pin Tooltip on a named button: Tooltip opens, pins,
50
+ * announces, and closes the help. The info icon resolves from
51
51
  * the icon registry, so themes can replace it.
52
52
  *
53
53
  * @example
@@ -20,7 +20,7 @@ import { useCallback } from 'react';
20
20
  import * as stylex from '@stylexjs/stylex';
21
21
  import { useMergedRefs } from "../hooks/useMergedRefs.js";
22
22
  import { Icon } from "../Icon/Icon.js";
23
- import { Tooltip } from "../Tooltip/Tooltip.js";
23
+ import { TooltipWithTriggerBehavior } from "../Tooltip/Tooltip.js";
24
24
  import { registerEnglishFallback, useComponentTranslator } from "../i18n/useComponentTranslator.js";
25
25
  import english from "../i18n/generated-english/InfoTip/InfoTip.generated.js";
26
26
  import "../theme/tokens.stylex.js";
@@ -70,8 +70,8 @@ const styles = {
70
70
  * labels, values, and metrics for permission notes, metric definitions, and
71
71
  * field help.
72
72
  *
73
- * InfoTip is Tooltip with `triggerBehavior="toggle"` on a named button: Tooltip
74
- * opens, pins, announces, and closes the help. The info icon resolves from
73
+ * InfoTip is a press-to-pin Tooltip on a named button: Tooltip opens, pins,
74
+ * announces, and closes the help. The info icon resolves from
75
75
  * the icon registry, so themes can replace it.
76
76
  *
77
77
  * @example
@@ -104,7 +104,7 @@ export function InfoTip({
104
104
  // No Escape handler of its own. Tooltip's entry in the shared dismissal
105
105
  // stack takes Escape, so one press never closes both the help and an
106
106
  // enclosing Dialog.
107
- return /*#__PURE__*/_jsx(Tooltip, {
107
+ return /*#__PURE__*/_jsx(TooltipWithTriggerBehavior, {
108
108
  content: content
109
109
  // The tooltip is the button's only purpose. A click, a tap, Enter, or
110
110
  // Space pins it open, and the press stops at the button. So an InfoTip's
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @file layerAnimations.stylex.ts
3
- * @input Uses StyleX, theme duration/easing tokens
3
+ * @input Uses StyleX, theme duration/easing tokens, the Reduce Motion fade
4
+ * constants
4
5
  * @output Exports shared entry animation styles for layer-based components
5
6
  * @position Shared animation primitives; consumed by DropdownMenu, Popover,
6
7
  * HoverCard, Tooltip, Selector, and any component using useLayer
@@ -30,13 +31,11 @@ import * as stylex from '@stylexjs/stylex';
30
31
  * Keyed by LayerPlacement ('above' | 'below' | 'start' | 'end')
31
32
  * for easy lookup: `layerAnimations[placement]`.
32
33
  *
33
- * Each entry disables its keyframe animation under
34
- * `prefers-reduced-motion: reduce` so the layer appears instantly instead of
35
- * translating/scaling in (infra-6). Under a finger (the primary pointer is
36
- * coarse) it fades in instead, opacity only and in 200 ms or less: on a touch
37
- * screen Reduce Motion replaces motion with a cross-fade rather than a jump
38
- * (design:reduced-motion DR2, DR3), as iOS does for its menus, popovers and
39
- * tips.
34
+ * Under `prefers-reduced-motion: reduce` each entry drops its travel and
35
+ * scale. Under a finger (the primary pointer is coarse) the layer fades in,
36
+ * opacity only, in 200 ms on easeInOut: on a touch screen Reduce Motion
37
+ * replaces motion with a cross-fade rather than a jump; under any other
38
+ * pointer it appears at once.
40
39
  */
41
40
  export declare const layerAnimations: Readonly<{
42
41
  readonly below: Readonly<{
@@ -1 +1 @@
1
- {"version":3,"file":"layerAnimations.stylex.d.ts","sourceRoot":"","sources":["../../src/Layer/layerAnimations.stylex.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AA0E3C;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;EAmC1B,CAAC"}
1
+ {"version":3,"file":"layerAnimations.stylex.d.ts","sourceRoot":"","sources":["../../src/Layer/layerAnimations.stylex.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AA+E3C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;EAuC1B,CAAC"}
@@ -2,7 +2,8 @@
2
2
 
3
3
  /**
4
4
  * @file layerAnimations.stylex.ts
5
- * @input Uses StyleX, theme duration/easing tokens
5
+ * @input Uses StyleX, theme duration/easing tokens, the Reduce Motion fade
6
+ * constants
6
7
  * @output Exports shared entry animation styles for layer-based components
7
8
  * @position Shared animation primitives; consumed by DropdownMenu, Popover,
8
9
  * HoverCard, Tooltip, Selector, and any component using useLayer
@@ -27,6 +28,8 @@
27
28
  */
28
29
 
29
30
  import * as stylex from '@stylexjs/stylex';
31
+ import "../motion/reducedMotion.stylex.js";
32
+ import { reducedMotionFadeConsts } from "../motion/reducedMotion.stylex.js";
30
33
  import "../theme/tokens.stylex.js";
31
34
  import { durationVars, easeVars, spacingVars } from "../theme/tokens.stylex.js";
32
35
  const enterBelow = "xv1hr86-B";
@@ -44,13 +47,17 @@ const enterStartRtl = "xwmkjkf-B";
44
47
 
45
48
  // Reduce Motion under a finger: the same entrance without its travel. A touch
46
49
  // presentation substitutes a cross-fade for motion, never a jump.
47
- const fadeIn = "x18re5ia-B";
50
+ // The fade's curve rides in its first keyframe, so the published class type
51
+ // of `animationTimingFunction` stays the theme ease's.
52
+ const fadeIn = "x12p7u8f-B";
53
+
54
+ // No theme value lengthens the Reduce Motion fade, so its values are constants.
55
+ // The media keys stay literal: StyleX gives an imported at-rule key a later
56
+ // priority layer (see reducedMotionKeys).
48
57
  const animationBase = {
49
58
  animationDuration: {
50
59
  default: durationVars['--duration-fast-max'],
51
- // The cross-fade is 200 ms or less, whatever the theme's duration
52
- // (design:reduced-motion DR2).
53
- '@media (prefers-reduced-motion: reduce) and (pointer: coarse)': `min(${durationVars['--duration-fast-max']}, 200ms)`
60
+ '@media (prefers-reduced-motion: reduce) and (pointer: coarse)': reducedMotionFadeConsts.duration
54
61
  },
55
62
  animationTimingFunction: easeVars['--ease-standard'],
56
63
  animationFillMode: 'backwards'
@@ -62,39 +69,37 @@ const animationBase = {
62
69
  * Keyed by LayerPlacement ('above' | 'below' | 'start' | 'end')
63
70
  * for easy lookup: `layerAnimations[placement]`.
64
71
  *
65
- * Each entry disables its keyframe animation under
66
- * `prefers-reduced-motion: reduce` so the layer appears instantly instead of
67
- * translating/scaling in (infra-6). Under a finger (the primary pointer is
68
- * coarse) it fades in instead, opacity only and in 200 ms or less: on a touch
69
- * screen Reduce Motion replaces motion with a cross-fade rather than a jump
70
- * (design:reduced-motion DR2, DR3), as iOS does for its menus, popovers and
71
- * tips.
72
+ * Under `prefers-reduced-motion: reduce` each entry drops its travel and
73
+ * scale. Under a finger (the primary pointer is coarse) the layer fades in,
74
+ * opacity only, in 200 ms on easeInOut: on a touch screen Reduce Motion
75
+ * replaces motion with a cross-fade rather than a jump; under any other
76
+ * pointer it appears at once.
72
77
  */
73
78
  export const layerAnimations = {
74
79
  below: {
75
- kKVMdj: "xl1vlw0 xa4pr1u xajy0lc",
76
- k44tkh: "x9uej1z x13pi3j7",
80
+ kKVMdj: "xl1vlw0 x2g3n7u xaqowwx",
81
+ k44tkh: "x9uej1z x10got5w",
77
82
  kyAemX: "x128ha8g",
78
83
  kWV6AL: "xskzprw",
79
84
  $$css: true
80
85
  },
81
86
  above: {
82
- kKVMdj: "x3psbcj xa4pr1u xajy0lc",
83
- k44tkh: "x9uej1z x13pi3j7",
87
+ kKVMdj: "x3psbcj x2g3n7u xaqowwx",
88
+ k44tkh: "x9uej1z x10got5w",
84
89
  kyAemX: "x128ha8g",
85
90
  kWV6AL: "xskzprw",
86
91
  $$css: true
87
92
  },
88
93
  end: {
89
- kKVMdj: "x1i331go x1vxsm5i xa4pr1u xajy0lc",
90
- k44tkh: "x9uej1z x13pi3j7",
94
+ kKVMdj: "x1i331go x1vxsm5i x2g3n7u xaqowwx",
95
+ k44tkh: "x9uej1z x10got5w",
91
96
  kyAemX: "x128ha8g",
92
97
  kWV6AL: "xskzprw",
93
98
  $$css: true
94
99
  },
95
100
  start: {
96
- kKVMdj: "xck01x9 x18lne9g xa4pr1u xajy0lc",
97
- k44tkh: "x9uej1z x13pi3j7",
101
+ kKVMdj: "xck01x9 x18lne9g x2g3n7u xaqowwx",
102
+ k44tkh: "x9uej1z x10got5w",
98
103
  kyAemX: "x128ha8g",
99
104
  kWV6AL: "xskzprw",
100
105
  $$css: true
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @file useBackdropPress.ts
3
+ * @input A modal layer's backdrop dismissal and whether it is allowed now
4
+ * @output Capture-phase pointer handlers and a click handler for the layer's
5
+ * <dialog> root
6
+ * @position Shared backdrop-press rule for Dialog and Drawer
7
+ */
8
+ import { type PointerEvent, type MouseEvent } from 'react';
9
+ export interface BackdropPressHandlers {
10
+ onPointerDownCapture: (event: PointerEvent<HTMLElement>) => void;
11
+ onPointerUpCapture: (event: PointerEvent<HTMLElement>) => void;
12
+ onPointerCancelCapture: (event: PointerEvent<HTMLElement>) => void;
13
+ onClick: (event: MouseEvent<HTMLElement>) => void;
14
+ }
15
+ /**
16
+ * A press on a modal layer's backdrop targets the <dialog> root itself. A
17
+ * click there is also what the browser sends when a press starts on one side
18
+ * of the layer's edge and ends on the other (it goes to the nearest common
19
+ * ancestor), so a backdrop press dismisses only when its pointer-down and its
20
+ * pointer-up both landed on the backdrop. A cancelled pointer ends the press.
21
+ *
22
+ * The pointer handlers run in the capture phase. A nested layer, such as a
23
+ * popover open in the dialog, stops its presses at its own root, so a
24
+ * bubble-phase handler here does not see them.
25
+ */
26
+ export declare function useBackdropPress(onBackdropPress: () => void, isEnabled: boolean): BackdropPressHandlers;
27
+ //# sourceMappingURL=useBackdropPress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBackdropPress.d.ts","sourceRoot":"","sources":["../../src/Layer/useBackdropPress.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AAEH,OAAO,EAAsB,KAAK,YAAY,EAAE,KAAK,UAAU,EAAC,MAAM,OAAO,CAAC;AAE9E,MAAM,WAAW,qBAAqB;IACpC,oBAAoB,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACjE,kBAAkB,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC/D,sBAAsB,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACnE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;CACnD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC9B,eAAe,EAAE,MAAM,IAAI,EAC3B,SAAS,EAAE,OAAO,GACjB,qBAAqB,CA6CvB"}
@@ -0,0 +1,53 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ 'use client';
4
+
5
+ /**
6
+ * @file useBackdropPress.ts
7
+ * @input A modal layer's backdrop dismissal and whether it is allowed now
8
+ * @output Capture-phase pointer handlers and a click handler for the layer's
9
+ * <dialog> root
10
+ * @position Shared backdrop-press rule for Dialog and Drawer
11
+ */
12
+ import { useCallback, useRef } from 'react';
13
+ /**
14
+ * A press on a modal layer's backdrop targets the <dialog> root itself. A
15
+ * click there is also what the browser sends when a press starts on one side
16
+ * of the layer's edge and ends on the other (it goes to the nearest common
17
+ * ancestor), so a backdrop press dismisses only when its pointer-down and its
18
+ * pointer-up both landed on the backdrop. A cancelled pointer ends the press.
19
+ *
20
+ * The pointer handlers run in the capture phase. A nested layer, such as a
21
+ * popover open in the dialog, stops its presses at its own root, so a
22
+ * bubble-phase handler here does not see them.
23
+ */
24
+ export function useBackdropPress(onBackdropPress, isEnabled) {
25
+ const startedOnBackdropRef = useRef(false);
26
+ const endedOnBackdropRef = useRef(false);
27
+ const onPointerDownCapture = useCallback(event => {
28
+ startedOnBackdropRef.current = event.target === event.currentTarget;
29
+ endedOnBackdropRef.current = false;
30
+ }, []);
31
+ const onPointerUpCapture = useCallback(event => {
32
+ endedOnBackdropRef.current = startedOnBackdropRef.current && event.target === event.currentTarget;
33
+ startedOnBackdropRef.current = false;
34
+ }, []);
35
+ const onPointerCancelCapture = useCallback(() => {
36
+ startedOnBackdropRef.current = false;
37
+ endedOnBackdropRef.current = false;
38
+ }, []);
39
+ const onClick = useCallback(event => {
40
+ const pressWasOnBackdrop = endedOnBackdropRef.current;
41
+ startedOnBackdropRef.current = false;
42
+ endedOnBackdropRef.current = false;
43
+ if (isEnabled && pressWasOnBackdrop && event.target === event.currentTarget) {
44
+ onBackdropPress();
45
+ }
46
+ }, [isEnabled, onBackdropPress]);
47
+ return {
48
+ onPointerDownCapture,
49
+ onPointerUpCapture,
50
+ onPointerCancelCapture,
51
+ onClick
52
+ };
53
+ }
@@ -15,12 +15,10 @@ import { type MouseEvent as ReactMouseEvent, type RefObject } from 'react';
15
15
  import { type LayerTouchTrigger, type UseTouchTriggerReturn } from './useTouchTrigger.js';
16
16
  /**
17
17
  * How the trigger opens the layer. `adaptive`, the default, previews it on
18
- * hover and focus, and a tap opens it unless the trigger acts. While
19
- * `touchTrigger` remains, it decides those taps. `hover` previews it on hover
20
- * and focus, and no touch or pen tap opens it. `toggle` pins it on every
21
- * press of a button trigger.
18
+ * hover and focus, and `touchTrigger` decides taps. `toggle` pins it on every
19
+ * press of a button trigger. Internal: InfoTip's press-to-pin uses `toggle`.
22
20
  */
23
- export type LayerTriggerBehavior = 'adaptive' | 'hover' | 'toggle';
21
+ export type LayerTriggerBehavior = 'adaptive' | 'toggle';
24
22
  /**
25
23
  * The layer component's wrapper handler. It stops a press that pinned or
26
24
  * closed the layer in the React tree only, after the trigger's own handlers.
@@ -1 +1 @@
1
- {"version":3,"file":"usePressPin.d.ts","sourceRoot":"","sources":["../../src/Layer/usePressPin.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAKL,KAAK,UAAU,IAAI,eAAe,EAClC,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAC;AAE3B;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;AAKnE;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAI9D;AAED,0EAA0E;AAC1E,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAM3D;AAED,MAAM,WAAW,kBAAkB;IACjC,qCAAqC;IACrC,eAAe,EAAE,oBAAoB,CAAC;IACtC,oDAAoD;IACpD,SAAS,EAAE,OAAO,CAAC;IACnB,mEAAmE;IACnE,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,m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AM,OAAO,CAAC;IAC1B,4DAA4D;IAC5D,MAAM,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IAC9C,iEAAiE;IACjE,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB;;;;OAIG;IACH,gBAAgB,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,OAAO,CAAC;IACjD;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB,6EAA6E;IAC7E,KAAK,EAAE,IAAI,CACT,qBAAqB,EACnB,mBAAmB,GACnB,oBAAoB,GACpB,oBAAoB,GACpB,mBAAmB,GACnB,cAAc,CACjB,CAAC;CACH;AAwBD;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,iBAAiB,CA+V1E"}
@@ -23,10 +23,8 @@ import { useTouchTriggerInternal } from "./useTouchTrigger.js";
23
23
 
24
24
  /**
25
25
  * How the trigger opens the layer. `adaptive`, the default, previews it on
26
- * hover and focus, and a tap opens it unless the trigger acts. While
27
- * `touchTrigger` remains, it decides those taps. `hover` previews it on hover
28
- * and focus, and no touch or pen tap opens it. `toggle` pins it on every
29
- * press of a button trigger.
26
+ * hover and focus, and `touchTrigger` decides taps. `toggle` pins it on every
27
+ * press of a button trigger. Internal: InfoTip's press-to-pin uses `toggle`.
30
28
  */
31
29
 
32
30
  /** The clicks a press pin answered, so the wrapper can stop them (`stopPressPinClick`). */
@@ -127,7 +125,7 @@ export function usePressPin(options) {
127
125
  clearTapOpen,
128
126
  armOutsideDismiss
129
127
  } = useTouchTriggerInternal({
130
- touchTrigger: isToggleMode ? 'tap' : triggerBehavior === 'hover' ? 'none' : options.touchTrigger,
128
+ touchTrigger: isToggleMode ? 'tap' : options.touchTrigger,
131
129
  isEnabled: options.isEnabled,
132
130
  isControlled: isOpen !== undefined,
133
131
  isOpen: isLayerOpen,
@@ -320,7 +318,7 @@ export function usePressPin(options) {
320
318
  wire(element);
321
319
  }, [wire]);
322
320
  const isWired = isToggleMode && offeredKind === 'button';
323
- useDevWarning(options.component, '`triggerBehavior="toggle"` pins only a button trigger (a <button> or role="button"); this trigger keeps tap-only opening.', isToggleMode && offeredKind === 'other');
321
+ useDevWarning(options.component, 'A press-to-pin tooltip pins only a button trigger (a <button> or role="button"); this trigger keeps tap-only opening.', isToggleMode && offeredKind === 'other');
324
322
 
325
323
  // A later `triggerBehavior` change rewires here; the ref does not rerun.
326
324
  useEffect(() => {
@@ -96,7 +96,6 @@ const styles = {
96
96
  },
97
97
  backdrop: {
98
98
  kGyWv1: "xnixb3f",
99
- kba3nw: "x1abwkk1",
100
99
  k5sjJv: "xph5o2a",
101
100
  kND0Po: "x167zut7",
102
101
  k9an0g: "xft5bk6",
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/MultiSelector/hooks.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,SAAS,CAAC;AAGrD,UAAU,uBAAuB;IAC/B,eAAe,EAAE,uBAAuB,EAAE,CAAC;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IAC1C,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,CAAC,KA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B,CAAC,EAC/B,eAAe,EACf,UAAkB,EAClB,MAAM,EACN,SAAiB,EACjB,MAAM,EACN,OAAO,EACP,QAAQ,EACR,OAAO,EACP,QAAgB,EAChB,SAAS,EACT,MAAc,EACd,YAAY,EACZ,gBAAgB,GACjB,EAAE,uBAAuB,GAAG,sBAAsB,CAuSlD"}
@@ -86,13 +86,11 @@ export function useMultiCombobox({
86
86
  // The action cell is the caller's control, usable whether or not the
87
87
  // option itself is disabled (spec:AST-058 FR4).
88
88
  if (cell === 'action') {
89
- highlightOnHover(index);
90
- setHighlightedCell('action');
89
+ highlightOnHover(index, () => setHighlightedCell('action'));
91
90
  return;
92
91
  }
93
92
  if (!item.disabled) {
94
- highlightOnHover(index);
95
- setHighlightedCell('option');
93
+ highlightOnHover(index, () => setHighlightedCell('option'));
96
94
  }
97
95
  }, [highlightOnHover]);
98
96
  const onKeyDown = useCallback(e => {
@@ -79,10 +79,8 @@ export interface OutlineProps extends BaseProps<HTMLElement> {
79
79
  * scroll root) plus the heading's own `scroll-margin-top`. It defaults to the
80
80
  * first item at the top and the last at the bottom.
81
81
  *
82
- * Keyboard: the list is a single tab stop (roving tabindex), seated on the
83
- * active heading. Arrow keys move between headings, Home/End jump to the ends,
84
- * and Enter/Space activate — so a long table of contents costs one Tab press,
85
- * not one per heading.
82
+ * Keyboard: each link is in the normal Tab order, and Enter/Space activate.
83
+ * There is no arrow, Home, or End movement between links.
86
84
  *
87
85
  * @example
88
86
  * ```
@@ -1 +1 @@
1
- {"version":3,"file":"Outline.d.ts","sourceRoot":"","sources":["../../src/Outline/Outline.tsx"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAczC,YAAY,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAEzC,MAAM,WAAW,YAAa,SAAQ,SAAS,CAAC,WAAW,CAAC;IAC1D,6CAA6C;I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