@astryxdesign/core 0.7.15 → 0.7.16-canary.g8514aae

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 (231) hide show
  1. package/dist/BottomSheet/BottomSheet.d.ts.map +1 -1
  2. package/dist/BottomSheet/BottomSheet.js +11 -6
  3. package/dist/DateInput/DateInput.d.ts +3 -3
  4. package/dist/DateInput/DateInput.d.ts.map +1 -1
  5. package/dist/DateInput/DateInput.js +13 -2
  6. package/dist/DateInput/NativeDateField.d.ts +1 -1
  7. package/dist/DateInput/NativeDateField.d.ts.map +1 -1
  8. package/dist/DateInput/NativeDateField.js +48 -31
  9. package/dist/DateInput/useTypedDate.d.ts +66 -6
  10. package/dist/DateInput/useTypedDate.d.ts.map +1 -1
  11. package/dist/DateInput/useTypedDate.js +151 -21
  12. package/dist/DateTimeInput/DateTimeInput.d.ts +3 -3
  13. package/dist/DateTimeInput/DateTimeInput.d.ts.map +1 -1
  14. package/dist/DateTimeInput/DateTimeInput.js +26 -3
  15. package/dist/DateTimeInput/NativeDateSegment.d.ts +8 -1
  16. package/dist/DateTimeInput/NativeDateSegment.d.ts.map +1 -1
  17. package/dist/DateTimeInput/NativeDateSegment.js +20 -14
  18. package/dist/Field/InputClearButton.d.ts.map +1 -1
  19. package/dist/Field/InputClearButton.js +4 -2
  20. package/dist/InfoTip/InfoTip.d.ts +1 -1
  21. package/dist/InfoTip/InfoTip.d.ts.map +1 -1
  22. package/dist/InfoTip/InfoTip.js +4 -1
  23. package/dist/Layer/layerAnimations.stylex.d.ts.map +1 -1
  24. package/dist/Layer/layerAnimations.stylex.js +17 -13
  25. package/dist/Layer/layerEntranceSide.d.ts +24 -10
  26. package/dist/Layer/layerEntranceSide.d.ts.map +1 -1
  27. package/dist/Layer/layerEntranceSide.js +28 -13
  28. package/dist/Layer/useLayer.d.ts.map +1 -1
  29. package/dist/Layer/useLayer.js +14 -11
  30. package/dist/List/ListItem.d.ts +3 -2
  31. package/dist/List/ListItem.d.ts.map +1 -1
  32. package/dist/List/ListReorderHandle.d.ts +7 -0
  33. package/dist/List/ListReorderHandle.d.ts.map +1 -1
  34. package/dist/List/ListReorderHandle.js +42 -58
  35. package/dist/List/listReorderContext.d.ts.map +1 -1
  36. package/dist/List/listReorderContext.js +4 -4
  37. package/dist/List/listReorderEngine.d.ts +50 -2
  38. package/dist/List/listReorderEngine.d.ts.map +1 -1
  39. package/dist/List/listReorderEngine.js +205 -10
  40. package/dist/MoreMenu/MoreMenu.d.ts +1 -1
  41. package/dist/MoreMenu/MoreMenu.d.ts.map +1 -1
  42. package/dist/MoreMenu/MoreMenu.js +4 -1
  43. package/dist/PowerSearch/PowerSearch.d.ts +1 -1
  44. package/dist/PowerSearch/PowerSearch.d.ts.map +1 -1
  45. package/dist/PowerSearch/PowerSearch.js +8 -4
  46. package/dist/PowerSearch/PowerSearchEditPopover.d.ts +4 -1
  47. package/dist/PowerSearch/PowerSearchEditPopover.d.ts.map +1 -1
  48. package/dist/PowerSearch/PowerSearchEditPopover.js +4 -1
  49. package/dist/PowerSearch/PowerSearchFilterEditor.d.ts +1 -1
  50. package/dist/PowerSearch/PowerSearchFilterEditor.d.ts.map +1 -1
  51. package/dist/PowerSearch/PowerSearchFilterEditor.js +7 -3
  52. package/dist/PowerSearch/PowerSearchToken.d.ts +1 -1
  53. package/dist/PowerSearch/PowerSearchToken.d.ts.map +1 -1
  54. package/dist/PowerSearch/PowerSearchToken.js +4 -1
  55. package/dist/Selector/useSelectorPresentation.d.ts.map +1 -1
  56. package/dist/Selector/useSelectorPresentation.js +13 -12
  57. package/dist/Slider/Slider.d.ts.map +1 -1
  58. package/dist/Slider/Slider.js +6 -8
  59. package/dist/Table/BaseTable.d.ts +1 -1
  60. package/dist/Table/BaseTable.d.ts.map +1 -1
  61. package/dist/Table/BaseTable.js +265 -197
  62. package/dist/Table/Table.d.ts +5 -1
  63. package/dist/Table/Table.d.ts.map +1 -1
  64. package/dist/Table/index.d.ts +5 -3
  65. package/dist/Table/index.d.ts.map +1 -1
  66. package/dist/Table/index.js +2 -1
  67. package/dist/Table/plugins/infiniteScroll/TableInfiniteScrollWide.a11y.chromium.spec.d.ts.map +1 -0
  68. package/dist/Table/plugins/infiniteScroll/index.d.ts +9 -0
  69. package/dist/Table/plugins/infiniteScroll/index.d.ts.map +1 -0
  70. package/dist/Table/plugins/infiniteScroll/index.js +9 -0
  71. package/dist/Table/plugins/infiniteScroll/useTableInfiniteScroll.d.ts +29 -0
  72. package/dist/Table/plugins/infiniteScroll/useTableInfiniteScroll.d.ts.map +1 -0
  73. package/dist/Table/plugins/infiniteScroll/useTableInfiniteScroll.js +394 -0
  74. package/dist/Table/plugins/stickyColumns/useTableStickyColumns.d.ts.map +1 -1
  75. package/dist/Table/plugins/stickyColumns/useTableStickyColumns.js +21 -1
  76. package/dist/Table/plugins/virtualization/TableColumnWindow.d.ts +4 -0
  77. package/dist/Table/plugins/virtualization/TableColumnWindow.d.ts.map +1 -0
  78. package/dist/Table/plugins/virtualization/TableColumnWindow.js +109 -0
  79. package/dist/Table/plugins/virtualization/index.d.ts +3 -1
  80. package/dist/Table/plugins/virtualization/index.d.ts.map +1 -1
  81. package/dist/Table/plugins/virtualization/index.js +3 -2
  82. package/dist/Table/plugins/virtualization/useTableColumnWindow.d.ts +33 -0
  83. package/dist/Table/plugins/virtualization/useTableColumnWindow.d.ts.map +1 -0
  84. package/dist/Table/plugins/virtualization/useTableColumnWindow.js +143 -0
  85. package/dist/Table/plugins/virtualization/useTableColumnsVirtualization.d.ts +23 -0
  86. package/dist/Table/plugins/virtualization/useTableColumnsVirtualization.d.ts.map +1 -0
  87. package/dist/Table/plugins/virtualization/useTableColumnsVirtualization.js +37 -0
  88. package/dist/Table/tableColumnWindowing.d.ts +85 -0
  89. package/dist/Table/tableColumnWindowing.d.ts.map +1 -0
  90. package/dist/Table/tableColumnWindowing.js +47 -0
  91. package/dist/Table/tablePinnedColumnRuns.d.ts +23 -0
  92. package/dist/Table/tablePinnedColumnRuns.d.ts.map +1 -0
  93. package/dist/Table/tablePinnedColumnRuns.js +41 -0
  94. package/dist/Table/tableRuntime.d.ts +14 -2
  95. package/dist/Table/tableRuntime.d.ts.map +1 -1
  96. package/dist/Table/tableRuntime.js +32 -11
  97. package/dist/Table/types.d.ts +28 -2
  98. package/dist/Table/types.d.ts.map +1 -1
  99. package/dist/Table/useBaseTablePlugins.js +2 -2
  100. package/dist/TextArea/TextArea.d.ts +10 -1
  101. package/dist/TextArea/TextArea.d.ts.map +1 -1
  102. package/dist/TextArea/TextArea.js +2 -0
  103. package/dist/Toast/Toast.d.ts +1 -1
  104. package/dist/Toast/Toast.d.ts.map +1 -1
  105. package/dist/Toast/Toast.js +4 -2
  106. package/dist/astryx.css +10 -10
  107. package/dist/dragToSnapPoints/createDragToSnapPoints.d.ts +156 -0
  108. package/dist/dragToSnapPoints/createDragToSnapPoints.d.ts.map +1 -1
  109. package/dist/dragToSnapPoints/createDragToSnapPoints.js +313 -97
  110. package/dist/gestures/createPanGesture.d.ts +41 -0
  111. package/dist/gestures/createPanGesture.d.ts.map +1 -1
  112. package/dist/gestures/createPanGesture.js +66 -22
  113. package/dist/hooks/useMenuPress.d.ts.map +1 -1
  114. package/dist/hooks/useMenuPress.js +36 -2
  115. package/dist/i18n/generated-english/DateInput/NativeDateField.generated.d.ts.map +1 -1
  116. package/dist/i18n/generated-english/DateInput/NativeDateField.generated.js +0 -1
  117. package/dist/i18n/generated-english/DateTimeInput/NativeDateSegment.generated.d.ts.map +1 -1
  118. package/dist/i18n/generated-english/DateTimeInput/NativeDateSegment.generated.js +0 -1
  119. package/dist/i18n/generated-english/Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.d.ts +8 -0
  120. package/dist/i18n/generated-english/Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.d.ts.map +1 -0
  121. package/dist/i18n/generated-english/Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.js +12 -0
  122. package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
  123. package/dist/i18n/generated-locales/en.generated.js +2 -0
  124. package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
  125. package/dist/i18n/generated-locales/pseudo.generated.js +2 -0
  126. package/dist/internal/touch.d.ts +1 -1
  127. package/dist/internal/touch.d.ts.map +1 -1
  128. package/dist/internal/touch.js +1 -1
  129. package/dist/motion/animator.d.ts +28 -1
  130. package/dist/motion/animator.d.ts.map +1 -1
  131. package/dist/motion/animator.js +99 -19
  132. package/dist/theme/generateThemeRules.d.ts.map +1 -1
  133. package/dist/theme/generateThemeRules.js +14 -3
  134. package/dist/theme/tokenReferences.d.ts +7 -15
  135. package/dist/theme/tokenReferences.d.ts.map +1 -1
  136. package/dist/theme/tokenReferences.js +49 -7
  137. package/dist/utils/clickGuard.d.ts +8 -1
  138. package/dist/utils/clickGuard.d.ts.map +1 -1
  139. package/dist/utils/clickGuard.js +24 -4
  140. package/dist/utils/themeProps.d.ts +8 -0
  141. package/dist/utils/themeProps.d.ts.map +1 -1
  142. package/dist/utils/themeProps.js +17 -0
  143. package/dist/utils/timeParser.d.ts +3 -1
  144. package/dist/utils/timeParser.d.ts.map +1 -1
  145. package/dist/utils/timeParser.js +7 -3
  146. package/dist/virtualization/listWindow.d.ts +18 -2
  147. package/dist/virtualization/listWindow.d.ts.map +1 -1
  148. package/dist/virtualization/listWindow.js +55 -2
  149. package/dist/virtualization/useInlineListWindow.d.ts +40 -0
  150. package/dist/virtualization/useInlineListWindow.d.ts.map +1 -0
  151. package/dist/virtualization/useInlineListWindow.js +58 -0
  152. package/locales/en.json +9 -1
  153. package/locales/pseudo.json +6 -0
  154. package/package.json +5 -5
  155. package/src/BottomSheet/BottomSheet.tsx +12 -8
  156. package/src/ButtonGroup/ButtonGroup.doc.mjs +5 -0
  157. package/src/CheckboxInput/CheckboxInput.doc.mjs +3 -0
  158. package/src/DateInput/DateInput.doc.mjs +3 -3
  159. package/src/DateInput/DateInput.tsx +27 -5
  160. package/src/DateInput/NativeDateField.tsx +58 -36
  161. package/src/DateInput/useTypedDate.ts +226 -55
  162. package/src/DateTimeInput/DateTimeInput.doc.mjs +3 -3
  163. package/src/DateTimeInput/DateTimeInput.tsx +38 -5
  164. package/src/DateTimeInput/NativeDateSegment.tsx +35 -13
  165. package/src/Field/InputClearButton.tsx +3 -1
  166. package/src/InfoTip/InfoTip.doc.mjs +2 -2
  167. package/src/InfoTip/InfoTip.tsx +3 -0
  168. package/src/Layer/layerAnimations.stylex.ts +13 -9
  169. package/src/Layer/layerEntranceSide.ts +48 -11
  170. package/src/Layer/useLayer.tsx +14 -12
  171. package/src/List/ListItem.tsx +3 -2
  172. package/src/List/ListReorderHandle.tsx +59 -77
  173. package/src/List/listReorderContext.ts +3 -4
  174. package/src/List/listReorderEngine.tsx +246 -11
  175. package/src/MoreMenu/MoreMenu.doc.mjs +2 -2
  176. package/src/MoreMenu/MoreMenu.tsx +3 -0
  177. package/src/NumberInput/NumberInput.doc.mjs +3 -0
  178. package/src/PowerSearch/PowerSearch.doc.mjs +2 -2
  179. package/src/PowerSearch/PowerSearch.tsx +7 -3
  180. package/src/PowerSearch/PowerSearchEditPopover.tsx +12 -2
  181. package/src/PowerSearch/PowerSearchFilterEditor.tsx +3 -0
  182. package/src/PowerSearch/PowerSearchToken.tsx +3 -0
  183. package/src/ProgressBar/ProgressBar.doc.mjs +3 -0
  184. package/src/SegmentedControl/SegmentedControl.doc.mjs +5 -0
  185. package/src/Selector/useSelectorPresentation.ts +16 -12
  186. package/src/Slider/Slider.tsx +6 -8
  187. package/src/StatusDot/StatusDot.doc.mjs +3 -0
  188. package/src/Switch/Switch.doc.mjs +3 -0
  189. package/src/TabList/TabList.doc.mjs +4 -0
  190. package/src/Table/BaseTable.tsx +406 -287
  191. package/src/Table/Table.doc.mjs +2 -2
  192. package/src/Table/Table.tsx +5 -1
  193. package/src/Table/index.ts +8 -1
  194. package/src/Table/plugins/infiniteScroll/index.ts +10 -0
  195. package/src/Table/plugins/infiniteScroll/useTableInfiniteScroll.tsx +523 -0
  196. package/src/Table/plugins/stickyColumns/useTableStickyColumns.tsx +31 -1
  197. package/src/Table/plugins/virtualization/TableColumnWindow.tsx +150 -0
  198. package/src/Table/plugins/virtualization/index.ts +3 -1
  199. package/src/Table/plugins/virtualization/useTableColumnWindow.ts +168 -0
  200. package/src/Table/plugins/virtualization/useTableColumnsVirtualization.ts +53 -0
  201. package/src/Table/tableColumnWindowing.ts +131 -0
  202. package/src/Table/tablePinnedColumnRuns.ts +55 -0
  203. package/src/Table/tableRuntime.ts +44 -11
  204. package/src/Table/types.ts +25 -2
  205. package/src/Table/useBaseTablePlugins.ts +2 -2
  206. package/src/Table/useTableColumnsVirtualization.doc.mjs +29 -0
  207. package/src/Table/useTableInfiniteScroll.doc.mjs +58 -0
  208. package/src/Text/Heading.doc.mjs +3 -0
  209. package/src/TextArea/TextArea.doc.mjs +15 -0
  210. package/src/TextArea/TextArea.tsx +11 -0
  211. package/src/TextInput/TextInput.doc.mjs +3 -0
  212. package/src/Toast/Toast.doc.mjs +2 -2
  213. package/src/Toast/Toast.tsx +3 -1
  214. package/src/TopNav/TopNav.doc.mjs +4 -0
  215. package/src/dragToSnapPoints/createDragToSnapPoints.ts +437 -119
  216. package/src/gestures/createPanGesture.ts +112 -39
  217. package/src/hooks/useMenuPress.ts +39 -0
  218. package/src/i18n/generated-english/DateInput/NativeDateField.generated.ts +0 -1
  219. package/src/i18n/generated-english/DateTimeInput/NativeDateSegment.generated.ts +0 -1
  220. package/src/i18n/generated-english/Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.ts +13 -0
  221. package/src/i18n/generated-locales/en.generated.ts +2 -0
  222. package/src/i18n/generated-locales/pseudo.generated.ts +2 -0
  223. package/src/internal/touch.ts +5 -1
  224. package/src/motion/animator.ts +181 -23
  225. package/src/theme/generateThemeRules.ts +14 -3
  226. package/src/theme/tokenReferences.ts +48 -7
  227. package/src/utils/clickGuard.ts +30 -3
  228. package/src/utils/themeProps.ts +17 -0
  229. package/src/utils/timeParser.ts +7 -9
  230. package/src/virtualization/listWindow.ts +76 -2
  231. package/src/virtualization/useInlineListWindow.ts +119 -0
@@ -1 +1 @@
1
- {"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAuBH,OAAO,EAQL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AA4DhD,YAAY,EAAC,iBAAiB,EAAE,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAChF,OAAO,KAAK,EAAC,iBAAiB,EAAE,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAkNhF,UAAU,sBAAuB,SAAQ,SAAS,CAAC,cAAc,CAAC;IAChE,qDAAqD;IACrD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAEhC,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IAEd,0EAA0E;IAC1E,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB,wGAAwG;IACxG,MAAM,CAAC,EAAE,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAC;IAE7C;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAEjD;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,UAAU,0BAA2B,SAAQ,sBAAsB;IACjE,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAA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AAQ,EAAE,SAAS,CAAC;IAEpB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB,wGAAwG;IACxG,MAAM,CAAC,EAAE,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAC;IAE7C;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAEjD;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,UAAU,0BAA2B,SAAQ,sBAAsB;IACjE,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,UAAU,wBAAyB,SAAQ,sBAAsB;IAC/D;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED,MAAM,MAAM,gBAAgB,GAC1B,0BAA0B,GAAG,wBAAwB,CAAC;AA69BxD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BA6BlD;yBA7Be,WAAW"}
@@ -50,6 +50,7 @@
50
50
  // stack, but they replace each other. Each open modal sheet is an outlet for
51
51
  // toasts (Layer/modalOutlet.ts), in stack order.
52
52
  import { use, useCallback, useEffect, useInsertionEffect, useLayoutEffect, useRef, useState } from 'react';
53
+ import { useCommittedRef } from "../hooks/useCommittedRef.js";
53
54
  import { useIsHydrating } from "../hooks/useIsHydrating.js";
54
55
  import { useSettledOpen } from "../hooks/useSettledOpen.js";
55
56
  import * as stylex from '@stylexjs/stylex';
@@ -294,8 +295,9 @@ function StandaloneBottomSheet({
294
295
  // sheet leaves the page interactive, so it returns focus to its opener
295
296
  // only if the person was still in the sheet; a modal sheet always does.
296
297
  const hadFocusAtCloseRef = useRef(false);
297
- const finalFocusRefRef = useRef(finalFocusRef);
298
- finalFocusRefRef.current = finalFocusRef;
298
+ // The committed `finalFocusRef`. The stack reads it when it closes the
299
+ // sheet, which can happen in a layout effect.
300
+ const finalFocusRefRef = useCommittedRef(finalFocusRef);
299
301
  // A sheet rendered in another sheet's content is presented only while that
300
302
  // sheet is open: it leaves with its host and, if its own state is still
301
303
  // open, comes back when the host does (see BottomSheetHostContext). Its
@@ -391,8 +393,9 @@ function StandaloneBottomSheet({
391
393
  const handlePanelElementChange = useCallback(element => {
392
394
  panelRef.current = element;
393
395
  }, []);
396
+ // The stack's view for the handlers. The registry's `onView` writes it with
397
+ // each view it reports, together with the state.
394
398
  const stackViewRef = useRef(stackView);
395
- stackViewRef.current = stackView;
396
399
  const scrimWriteRef = useRef({
397
400
  frame: null
398
401
  });
@@ -436,6 +439,8 @@ function StandaloneBottomSheet({
436
439
  const repairOnRemoval = dialog == null ? null : prepareFocusRepairOnRemoval(dialog, {
437
440
  keepRestingFocus: true
438
441
  });
442
+ // Where focus returns when the sheet leaves, read when it leaves.
443
+ const getReturnTarget = () => finalFocusRefRef.current?.current ?? triggerRef.current;
439
444
  const leave = registerBottomSheet({
440
445
  key,
441
446
  getElement: () => dialogRef.current,
@@ -456,7 +461,7 @@ function StandaloneBottomSheet({
456
461
  },
457
462
  hide: () => closeDialogKeepingFocus(dialogRef.current),
458
463
  focus: reason => focusSheetPanel(panelRef.current, reason, hasScrim),
459
- getReturnTarget: () => finalFocusRefRef.current?.current ?? triggerRef.current,
464
+ getReturnTarget,
460
465
  onView: view => {
461
466
  stackViewRef.current = view;
462
467
  setStackView(view);
@@ -491,7 +496,7 @@ function StandaloneBottomSheet({
491
496
  // person had already moved out of the sheet to the page body stays
492
497
  // there: the removal did not lose it.
493
498
  if (repairOnRemoval != null && isSheetHostPresented(dialog)) {
494
- const returnTarget = finalFocusRefRef.current?.current ?? triggerRef.current;
499
+ const returnTarget = getReturnTarget();
495
500
  const revealed = hasScrim ? getBottomSheetBeneath(key) : null;
496
501
  repairOnRemoval(() => {
497
502
  // The sheet beneath left too. Its own repair returns focus for the
@@ -508,7 +513,7 @@ function StandaloneBottomSheet({
508
513
  }
509
514
  leave();
510
515
  };
511
- }, [hasScrim, shouldPresent, writeScrim]);
516
+ }, [finalFocusRefRef, hasScrim, shouldPresent, writeScrim]);
512
517
  useLayoutEffect(() => {
513
518
  if (!isOpen) {
514
519
  // Where focus was when the person closed the sheet. The closing sheet
@@ -156,9 +156,9 @@ export interface DateInputProps extends Omit<FieldInputBaseProps<HTMLInputElemen
156
156
  * When set, displays a colored border and status icon.
157
157
  * If message is provided, displays below the input.
158
158
  *
159
- * For a typed date the field rejects, and for unfinished text that Enter or
160
- * blur keeps, the field shows its own error message in place of `status`.
161
- * Unreadable text is announced, not shown. With `onEntryErrorChange`, an
159
+ * For a date the field rejects, typed or picked in the native control, and
160
+ * for unreadable or unfinished text that Enter or blur keeps, the field
161
+ * shows its own error message in place of `status`. With `onEntryErrorChange`, an
162
162
  * `error` status with a message shows instead, and the field's own message
163
163
  * applies only without one. A `warning` or `success` status never replaces
164
164
  * a rejection.
@@ -1 +1 @@
1
- {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../src/DateInput/DateInput.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAS3C,OAAO,EAGL,KAAK,WAAW,EAKjB,MAAM,UAAU,CAAC;AAQlB,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,SAAS,EACd,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AAkBrB,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAC,KAAK,mBAAmB,EAAoB,MAAM,gBAAgB,CAA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;;;OAoBG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAE1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAAC;IAErC;;;;;;;;;;;;;;;;;;OAkBG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAAC;CACtC;AAskBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,+BAsD9C;yBAtDe,SAAS"}
@@ -209,6 +209,8 @@ function PointerDateField({
209
209
  onKeyDown: onKeyDownProp,
210
210
  ...controlProps
211
211
  } = rest;
212
+ // Form attributes pass through untyped, as other input attributes do.
213
+ const formControl = controlProps;
212
214
  const t = useComponentTranslator();
213
215
  const isEffectivelyRequired = useResolvedRequired({
214
216
  isRequired,
@@ -283,6 +285,7 @@ function PointerDateField({
283
285
  displayValue,
284
286
  formatHint,
285
287
  isPending,
288
+ hiddenFormValue,
286
289
  isInvalid,
287
290
  fieldStatus,
288
291
  alertMessage,
@@ -506,6 +509,7 @@ function PointerDateField({
506
509
  })
507
510
  }), /*#__PURE__*/_jsx("input", {
508
511
  ...controlProps,
512
+ name: hiddenFormValue === null ? formControl.name : undefined,
509
513
  ref: useMergedRefs(ref, inputRef),
510
514
  id: id,
511
515
  type: "text",
@@ -543,6 +547,11 @@ function PointerDateField({
543
547
  className: "x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx xjbqb8w x1a2a7pz xeyghm5 xt0e3qv xv1l7n4"
544
548
  }
545
549
  }[!!isEffectivelyDisabled << 1 | !!isInvalid << 0]
550
+ }), hiddenFormValue !== null && formControl.name != null && /*#__PURE__*/_jsx("input", {
551
+ type: "hidden",
552
+ name: formControl.name,
553
+ form: formControl.form,
554
+ value: hiddenFormValue
546
555
  }), /*#__PURE__*/_jsx(VisuallyHidden, {
547
556
  as: "div",
548
557
  role: "alert",
@@ -665,7 +674,8 @@ export function DateInput(props) {
665
674
  presentation: _presentation,
666
675
  nativePicker: _nativePicker,
667
676
  calendar: _calendar,
668
- // Only the pointer field takes typed text.
677
+ // Only the pointer field takes typed text. The native field reads only
678
+ // whether the callback is set.
669
679
  onEntryErrorChange,
670
680
  ...rest
671
681
  } = props;
@@ -673,7 +683,8 @@ export function DateInput(props) {
673
683
  case 'native':
674
684
  return /*#__PURE__*/_jsx(NativeDateField, {
675
685
  ...rest,
676
- isDisabled: isDisabled
686
+ isDisabled: isDisabled,
687
+ onEntryErrorChange: onEntryErrorChange
677
688
  });
678
689
  case 'sheet':
679
690
  return /*#__PURE__*/_jsx(TouchDateField
@@ -3,7 +3,7 @@ import type { DateInputProps } from './DateInput.js';
3
3
  * The OS-picker surface. Takes `DateInput`'s props verbatim; see
4
4
  * {@link DateInput} for when it is chosen over the other two.
5
5
  */
6
- export declare function NativeDateField({ label, isLabelHidden, description, isOptional, isRequired, isDisabled, disabledMessage, value, onChange, changeAction, isLoading, min, max, dateConstraints, placeholder: placeholderFromProps, size: sizeProp, status, statusVariant, labelTooltip, hasClear, numberOfMonths: _numberOfMonths, weekStartsOn: _weekStartsOn, format, width, containerXstyle, containerClassName, containerStyle, controlXstyle, controlClassName, controlStyle, ref, ...restProps }: DateInputProps): import("react").JSX.Element;
6
+ export declare function NativeDateField({ label, isLabelHidden, description, isOptional, isRequired, isDisabled, disabledMessage, value, onChange, changeAction, isLoading, min, max, dateConstraints, placeholder: placeholderFromProps, size: sizeProp, status, onEntryErrorChange, statusVariant, labelTooltip, hasClear, numberOfMonths: _numberOfMonths, weekStartsOn: _weekStartsOn, format, width, containerXstyle, containerClassName, containerStyle, controlXstyle, controlClassName, controlStyle, ref, ...restProps }: DateInputProps): import("react").JSX.Element;
7
7
  export declare namespace NativeDateField {
8
8
  var displayName: string;
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NativeDateField.d.ts","sourceRoot":"","sources":["../../src/DateInput/NativeDateField.tsx"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAqNhD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,aAAqB,EACrB,WAAW,EACX,UAAkB,EAClB,UAAkB,EAClB,UAAkB,EAClB,eAAe,EACf,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,SAAiB,EACjB,GAAG,EACH,GAAG,EACH,eAAe,EACf,WAAW,EAAE,oBAAoB,EACjC,IAAI,EAAE,QAAQ,EACd,MAAM,EACN,aAA0B,EAC1B,YAAY,EACZ,QAAgB,EAGhB,cAAc,EAAE,eAAe,EAC/B,YAAY,EAAE,aAAa,EAC3B,MAAoB,EACpB,KAAK,EACL,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,GAAG,EACH,GAAG,SAAS,EACb,EAAE,cAAc,+BA2chB;yBA9ee,eAAe"}
1
+ {"version":3,"file":"NativeDateField.d.ts","sourceRoot":"","sources":["../../src/DateInput/NativeDateField.tsx"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAsNhD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,aAAqB,EACrB,WAAW,EACX,UAAkB,EAClB,UAAkB,EAClB,UAAkB,EAClB,eAAe,EACf,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,SAAiB,EACjB,GAAG,EACH,GAAG,EACH,eAAe,EACf,WAAW,EAAE,oBAAoB,EACjC,IAAI,EAAE,QAAQ,EACd,MAAM,EAGN,kBAAkB,EAClB,aAA0B,EAC1B,YAAY,EACZ,QAAgB,EAGhB,cAAc,EAAE,eAAe,EAC/B,YAAY,EAAE,aAAa,EAC3B,MAAoB,EACpB,KAAK,EACL,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,GAAG,EACH,GAAG,SAAS,EACb,EAAE,cAAc,+BA6dhB;yBAngBe,eAAe"}
@@ -4,7 +4,7 @@
4
4
 
5
5
  /**
6
6
  * @file NativeDateField.tsx
7
- * @input Uses React, Field, Icon, InputClearButton, Spinner, useCalendarConstraints, hasEditableDateSegments
7
+ * @input Uses React, Field, Icon, InputClearButton, Spinner, useCalendarConstraints, hasEditableDateSegments, useNativeDateRejection
8
8
  * @output Exports NativeDateField — the OS-picker touch surface
9
9
  * @position One of DateInput's three surfaces. `DateInput` picks the pointer
10
10
  * field on a mouse and, on touch, either `TouchDateField` (the default) or
@@ -30,6 +30,7 @@ import * as stylex from '@stylexjs/stylex';
30
30
  import { inputDisabledFocusStyles } from "../Field/inputDisabledFocus.js";
31
31
  import { useCalendarConstraints } from "../Calendar/index.js";
32
32
  import { hasEditableDateSegments } from "./nativeDateSegments.js";
33
+ import { useNativeDateRejection } from "./useTypedDate.js";
33
34
  import { Field, InputClearButton, inputStatusBorderStyles, inputStatusFocusWithinStyles, inputStatusHoverShadowStyles, inputWrapperStyles } from "../Field/index.js";
34
35
  import { useInputStatusIcon, useMergedRefs } from "../hooks/index.js";
35
36
  import { useMediaQuery } from "../hooks/useMediaQuery.js";
@@ -117,6 +118,9 @@ export function NativeDateField({
117
118
  placeholder: placeholderFromProps,
118
119
  size: sizeProp,
119
120
  status,
121
+ // The control takes no typed text, so it never reports a rejection. With
122
+ // the callback, the caller's error status words a refused date.
123
+ onEntryErrorChange,
120
124
  statusVariant = 'attached',
121
125
  labelTooltip,
122
126
  hasClear = false,
@@ -149,6 +153,7 @@ export function NativeDateField({
149
153
  'aria-labelledby': ariaLabelledByProp,
150
154
  onFocus: onFocusProp,
151
155
  onBlur: onBlurProp,
156
+ onKeyDown: onKeyDownProp,
152
157
  ...controlProps
153
158
  } = rest;
154
159
  const t = useComponentTranslator();
@@ -199,22 +204,35 @@ export function NativeDateField({
199
204
  max,
200
205
  dateConstraints
201
206
  });
207
+ const rejection = useNativeDateRejection({
208
+ source: 'DateInput',
209
+ format,
210
+ min,
211
+ max,
212
+ isDateDisabled,
213
+ value,
214
+ isLocked: isEffectivelyDisabled || isBusy,
215
+ status,
216
+ hasEntryErrorCallback: onEntryErrorChange != null,
217
+ isStatusAnnounced: !inputGroup
218
+ });
219
+ const {
220
+ fieldStatus
221
+ } = rejection;
222
+ const isInputValid = rejection.message == null;
202
223
  const {
203
224
  statusIcon,
204
225
  describedBy: statusTooltipDescribedBy
205
226
  } = useInputStatusIcon({
206
- status,
227
+ status: fieldStatus,
207
228
  statusVariant,
208
229
  isInGroup: !!inputGroup
209
230
  });
210
231
  const {
211
232
  ariaLabelledBy,
212
233
  ariaDescribedBy
213
- } = getInputARIA(inputLabelID, [description ? descriptionID : null, statusVariant !== 'tooltip' && status?.message ? statusMessageID : null, statusTooltipDescribedBy, showsDisabledMessage ? disabledMessageTooltip.describedBy : null, ariaDescribedByProp], inputGroup);
234
+ } = getInputARIA(inputLabelID, [description ? descriptionID : null, statusVariant !== 'tooltip' && fieldStatus?.message ? statusMessageID : null, statusTooltipDescribedBy, showsDisabledMessage ? disabledMessageTooltip.describedBy : null, ariaDescribedByProp], inputGroup);
214
235
 
215
- // A date the picker produced that `dateConstraints` refuses, held so the
216
- // refusal can be announced instead of looking like a dead tap.
217
- const [rejectedValue, setRejectedValue] = useState(null);
218
236
  // Whether the control has focus — which, on a touch device, means its
219
237
  // picker is open.
220
238
  const [isFocused, setIsFocused] = useState(false);
@@ -235,15 +253,11 @@ export function NativeDateField({
235
253
  if (value !== prevValue) {
236
254
  setPrevValue(value);
237
255
  setCommitEpoch(epoch => epoch + 1);
238
- if (rejectedValue !== null) {
239
- setRejectedValue(null);
240
- }
241
256
  }
242
257
 
243
258
  // The control's own value is always ISO — the only form it accepts, and
244
259
  // what the picker reads and writes. `format` rides on the overlay instead.
245
260
  const nativeValue = optimisticValue && ISO_DATE.test(optimisticValue) ? optimisticValue : '';
246
- const isInputValid = rejectedValue === null;
247
261
  const formatValue = useCallback(iso => typeof format === 'function' ? format(iso) : formatSharedDate(plainDateFromISO(iso), format, locale), [format, locale]);
248
262
 
249
263
  // This field paints the closed control's text itself, which is what keeps
@@ -282,7 +296,7 @@ export function NativeDateField({
282
296
  epoch: commitEpoch
283
297
  };
284
298
  if (!newValue) {
285
- setRejectedValue(null);
299
+ rejection.clear();
286
300
  if (value !== undefined) {
287
301
  fireChange(undefined);
288
302
  }
@@ -295,17 +309,17 @@ export function NativeDateField({
295
309
  if (isDateDisabled(parsed)) {
296
310
  // iOS does not enforce min/max in its picker — those attributes are
297
311
  // constraint-validation flags, not clamps, and the sheet lets the
298
- // user land on any date. Refuse it here and let the sync effect snap
299
- // the control back; the live region below announces the refusal.
300
- setRejectedValue(newValue);
312
+ // user land on any date. Refuse it here; the sync effect snaps the
313
+ // control back at blur.
314
+ rejection.refuse(parsed);
301
315
  return;
302
316
  }
303
- setRejectedValue(null);
317
+ rejection.clear();
304
318
  const parsedISO = plainDateToISO(parsed);
305
319
  if (parsedISO !== value) {
306
320
  fireChange(parsedISO);
307
321
  }
308
- }, [value, commitEpoch, fireChange, isDateDisabled, isEffectivelyDisabled, isBusy, locale]);
322
+ }, [value, commitEpoch, fireChange, isDateDisabled, isEffectivelyDisabled, isBusy, locale, rejection]);
309
323
  const handleChange = useCallback(e => {
310
324
  commitValue(e.target.value);
311
325
  }, [commitValue]);
@@ -368,16 +382,18 @@ export function NativeDateField({
368
382
  const handleBlur = useCallback(() => {
369
383
  const domValue = inputRef.current?.value;
370
384
  setIsFocused(false);
371
- // A refused date is reverted by the sync effect the moment focus leaves,
372
- // so the field is once again showing a date that IS valid. Keeping the
373
- // rejection past that point would mark good data invalid, with no way
374
- // back except changing the field again. The live region announced the
375
- // refusal while it happened; that is the feedback.
376
- setRejectedValue(null);
377
385
  if (domValue !== undefined && domValue !== nativeValue) {
378
386
  commitValue(domValue);
379
387
  }
380
- }, [commitValue, nativeValue]);
388
+ // The sync effect restores the committed date once focus leaves. The
389
+ // rejection stays shown, so the restore is never silent.
390
+ rejection.commit();
391
+ }, [commitValue, nativeValue, rejection]);
392
+ const handleKeyDown = useCallback(e => {
393
+ if (e.key === 'Enter') {
394
+ rejection.commit();
395
+ }
396
+ }, [rejection]);
381
397
 
382
398
  // Focusing a date control is what raises the OS picker, so the usual
383
399
  // focus-restore after a clear would pop the picker the tap just dismissed —
@@ -413,13 +429,13 @@ export function NativeDateField({
413
429
  ...(inputGroup ? inputGroupItemProps : undefined),
414
430
  ...mergeProps(themeProps('date-input', {
415
431
  size,
416
- status: status?.type ?? null,
432
+ status: fieldStatus?.type ?? null,
417
433
  disabled: isDisabled ? 'disabled' : null
418
434
  }), stylex.props(inputWrapperStyles.base, inputWrapperStyles.textField, sizeStyles[size], styles.wrapper,
419
435
  // Disabled paint belongs to the disabled state only; a busy field
420
436
  // keeps its ordinary paint and shows the Spinner (spec:AST-085
421
437
  // FR6, family:buttons FR4).
422
- isDisabled && inputWrapperStyles.disabled, isEffectivelyDisabled && inputDisabledFocusStyles.inputFocusRing, status && inputStatusBorderStyles[status.type], status && !isEffectivelyDisabled && inputStatusHoverShadowStyles[status.type], status && inputStatusFocusWithinStyles[status.type], inputGroup && groupStyles.inGroup, controlXstyle), controlClassName, controlStyle),
438
+ isDisabled && inputWrapperStyles.disabled, isEffectivelyDisabled && inputDisabledFocusStyles.inputFocusRing, fieldStatus && inputStatusBorderStyles[fieldStatus.type], fieldStatus && !isEffectivelyDisabled && inputStatusHoverShadowStyles[fieldStatus.type], fieldStatus && inputStatusFocusWithinStyles[fieldStatus.type], inputGroup && groupStyles.inGroup, controlXstyle), controlClassName, controlStyle),
423
439
  children: [inputGroup && /*#__PURE__*/_jsx(VisuallyHidden, {
424
440
  id: inputLabelID,
425
441
  children: label
@@ -455,6 +471,7 @@ export function NativeDateField({
455
471
  onChange: handleChange,
456
472
  onFocus: chainEventHandlers(handleFocus, onFocusProp),
457
473
  onBlur: chainEventHandlers(handleBlur, onBlurProp),
474
+ onKeyDown: chainEventHandlers(handleKeyDown, onKeyDownProp),
458
475
  min: min,
459
476
  max: max,
460
477
  "aria-disabled": isEffectivelyDisabled ? 'true' : undefined,
@@ -462,7 +479,7 @@ export function NativeDateField({
462
479
  "aria-labelledby": ariaLabelledByProp != null ? joinAriaIDs(ariaLabelledBy ?? fieldLabelID, ariaLabelledByProp) : ariaLabelledBy,
463
480
  "aria-describedby": ariaDescribedBy,
464
481
  "aria-required": isEffectivelyRequired ? 'true' : undefined,
465
- "aria-invalid": status?.type === 'error' || !isInputValid ? 'true' : undefined,
482
+ "aria-invalid": fieldStatus?.type === 'error' || !isInputValid ? 'true' : undefined,
466
483
  "aria-busy": isBusy || undefined,
467
484
  ...{
468
485
  0: {
@@ -524,7 +541,7 @@ export function NativeDateField({
524
541
  as: "div",
525
542
  role: "alert",
526
543
  "aria-live": "assertive",
527
- children: !isInputValid ? t('@astryx.dateInput.invalidDate') : ''
544
+ children: rejection.alertMessage
528
545
  }), hasClear && value !== undefined && !isEffectivelyDisabled && !isBusy && /*#__PURE__*/_jsx(InputClearButton, {
529
546
  label: t('@astryx.dateInput.clear', {
530
547
  label
@@ -549,10 +566,10 @@ export function NativeDateField({
549
566
  isOptional: isOptional,
550
567
  isRequired: isRequired,
551
568
  isDisabled: isDisabled,
552
- status: status ? {
553
- type: status.type,
554
- message: status.message,
555
- messageID: status.message ? statusMessageID : undefined
569
+ status: fieldStatus ? {
570
+ type: fieldStatus.type,
571
+ message: fieldStatus.message,
572
+ messageID: fieldStatus.message ? statusMessageID : undefined
556
573
  } : undefined,
557
574
  statusVariant: statusVariant,
558
575
  labelTooltip: labelTooltip,
@@ -56,7 +56,11 @@ export interface TypedDate {
56
56
  /** The message for a rejected result. */
57
57
  errorMessage: (result: CalendarDateParseResult) => string;
58
58
  }
59
- /** The rejection a result shows: errors of complete text, or of committed text. */
59
+ /**
60
+ * The rejection a result shows: the error of a complete date, or of text that
61
+ * Enter or blur committed. Text that is not a date is never complete, so its
62
+ * error waits for the commit.
63
+ */
60
64
  export declare function typedDateError(result: CalendarDateParseResult | null, isCommitted: boolean): TypedDateError | null;
61
65
  /**
62
66
  * Typed entry for a date text field in the active calendar. Values stay
@@ -76,13 +80,14 @@ export interface UseTypedDateFieldOptions extends UseTypedDateOptions {
76
80
  onTypedDate?: (value: ISODateString) => void;
77
81
  /**
78
82
  * A disabled or busy field ignores typing, Enter and blur, and hides a typed
79
- * rejection. Typed text stays until the next Enter or blur once the field is
80
- * editable, or until `value` changes. Once the field is editable, text whose
81
- * date typing already reported gives way to the field's value.
83
+ * rejection. Typed text and its rejection stay, and show again once the
84
+ * field is editable; the next Enter or blur commits the text, and a new
85
+ * `value` replaces it. Once the field is editable, text whose date typing
86
+ * already reported gives way to the field's value.
82
87
  */
83
88
  isDisabled: boolean;
84
89
  /**
85
- * The caller's status. Rejected text that stays shows its own error instead,
90
+ * The caller's status. A shown rejection shows its own error instead,
86
91
  * except that a caller with `onEntryErrorChange` words the error: its error
87
92
  * status shows in place of the field's own message.
88
93
  */
@@ -103,8 +108,16 @@ export interface TypedDateField {
103
108
  displayValue: string;
104
109
  /** The format hint for an empty focused field. */
105
110
  formatHint: string | null;
106
- /** Whether typed text waits to commit. */
111
+ /**
112
+ * Whether typed text waits to commit. Unreadable text that Enter or blur
113
+ * kept does not wait: the next Enter submits a surrounding form.
114
+ */
107
115
  isPending: boolean;
116
+ /**
117
+ * The text that a hidden input posts under the field's `name` while Enter
118
+ * or blur keeps unreadable text, or null when the text input posts.
119
+ */
120
+ hiddenFormValue: string | null;
108
121
  isInvalid: boolean;
109
122
  /** The status the field shows. */
110
123
  fieldStatus: InputStatus | undefined;
@@ -120,4 +133,51 @@ export interface TypedDateField {
120
133
  }
121
134
  /** The typed entry of a date text field: its text, rejections, and commits. */
122
135
  export declare function useTypedDateField({ value, shownValue, onChange, onClear, onTypedDate, isDisabled, status, isStatusAnnounced, onEntryErrorChange, hasPlaceholder, ...options }: UseTypedDateFieldOptions): TypedDateField;
136
+ export interface UseNativeDateRejectionOptions {
137
+ /** The component that names itself in development warnings. */
138
+ source: string;
139
+ /** The format that writes the bounds in the message. */
140
+ format: SharedDateFormat | ((value: ISODateString) => string);
141
+ min?: ISODateString;
142
+ max?: ISODateString;
143
+ isDateDisabled: (date: PlainDate) => boolean;
144
+ /** The committed date. A new value ends the rejection. */
145
+ value: ISODateString | undefined;
146
+ /** A disabled or busy field hides the rejection and ignores commits. */
147
+ isLocked: boolean;
148
+ /**
149
+ * The caller's status. A shown rejection shows its own error instead,
150
+ * except that a caller with `onEntryErrorChange` words the error: its error
151
+ * status with a message shows in place of the field's own message.
152
+ */
153
+ status?: InputStatus;
154
+ /** Whether the caller passes `onEntryErrorChange`. */
155
+ hasEntryErrorCallback: boolean;
156
+ /** Whether the shown status announces itself, as Field's status does. */
157
+ isStatusAnnounced: boolean;
158
+ }
159
+ export interface NativeDateRejection {
160
+ /** Null until Enter or blur reveals a refused date. */
161
+ message: string | null;
162
+ /** The status the field shows. */
163
+ fieldStatus: InputStatus | undefined;
164
+ /** The rejection message that the field status does not announce. */
165
+ alertMessage: string;
166
+ /** Whether a refused date waits for the next commit or shows. */
167
+ isRefused: boolean;
168
+ /** Holds a date that the field refuses until the next commit. */
169
+ refuse: (date: PlainDate) => void;
170
+ /** Ends the rejection, for an accepted date or an emptied control. */
171
+ clear: () => void;
172
+ /** Shows the rejection of the refused date that waits, on Enter or blur. */
173
+ commit: () => void;
174
+ }
175
+ /**
176
+ * The rejection of a native date control. While a person types the year, the
177
+ * control reports each partial year as a date, so a refused date waits for
178
+ * Enter or blur. The rejection then stays after the control restores the
179
+ * committed date, until the control reports a date the field accepts or
180
+ * nothing.
181
+ */
182
+ export declare function useNativeDateRejection({ value, isLocked, status, hasEntryErrorCallback, isStatusAnnounced, ...options }: UseNativeDateRejectionOptions): NativeDateRejection;
123
183
  //# sourceMappingURL=useTypedDate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTypedDate.d.ts","sourceRoot":"","sources":["../../src/DateInput/useTypedDate.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