@mintlify/components 1.0.3 → 1.0.5

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 (118) hide show
  1. package/dist/components/callout/callout.js +4 -4
  2. package/dist/components/icon/icon.d.ts.map +1 -1
  3. package/dist/components/icon/icon.js +14 -14
  4. package/dist/components/index.d.ts +1 -0
  5. package/dist/components/index.d.ts.map +1 -1
  6. package/dist/components/search/button.d.ts +12 -0
  7. package/dist/components/search/button.d.ts.map +1 -0
  8. package/dist/components/search/button.js +55 -0
  9. package/dist/components/search/index.d.ts +7 -0
  10. package/dist/components/search/index.d.ts.map +1 -0
  11. package/dist/components/search/provider.d.ts +19 -0
  12. package/dist/components/search/provider.d.ts.map +1 -0
  13. package/dist/components/search/provider.js +32 -0
  14. package/dist/components/search/search.d.ts +39 -0
  15. package/dist/components/search/search.d.ts.map +1 -0
  16. package/dist/components/search/search.js +263 -0
  17. package/dist/index.js +55 -48
  18. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -1
  19. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +165 -164
  20. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +21 -20
  21. package/dist/node_modules/.pnpm/@floating-ui_react@0.26.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@floating-ui/react/dist/floating-ui.react.js +367 -0
  22. package/dist/node_modules/.pnpm/@floating-ui_react@0.26.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +13 -0
  23. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/components/combobox/combobox.js +397 -0
  24. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/components/description/description.js +43 -0
  25. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/components/dialog/dialog.js +100 -0
  26. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/components/focus-trap/focus-trap.js +129 -0
  27. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/components/keyboard.js +4 -0
  28. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/components/label/label.js +59 -0
  29. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/components/mouse.js +4 -0
  30. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/components/portal/portal.js +71 -0
  31. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/components/transition/transition.js +135 -0
  32. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js +14 -0
  33. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js +48 -0
  34. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js +36 -0
  35. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js +8 -0
  36. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js +12 -0
  37. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-active-press.js +33 -0
  38. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-by-comparator.js +16 -0
  39. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-controllable.js +9 -0
  40. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-default-value.js +8 -0
  41. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-disposables.js +9 -0
  42. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-document-event.js +15 -0
  43. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-element-size.js +20 -0
  44. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-escape.js +12 -0
  45. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-event-listener.js +15 -0
  46. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-event.js +9 -0
  47. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-flags.js +8 -0
  48. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-inert-others.js +41 -0
  49. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +11 -0
  50. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js +24 -0
  51. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-is-touch-device.js +16 -0
  52. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +8 -0
  53. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +11 -0
  54. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-on-disappear.js +27 -0
  55. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-on-unmount.js +14 -0
  56. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +39 -0
  57. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-owner.js +8 -0
  58. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-refocusable-input.js +22 -0
  59. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +12 -0
  60. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-root-containers.js +38 -0
  61. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js +12 -0
  62. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +16 -0
  63. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-store.js +7 -0
  64. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +20 -0
  65. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-tab-direction.js +13 -0
  66. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +16 -0
  67. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-transition.js +69 -0
  68. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +18 -0
  69. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-watch.js +15 -0
  70. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/hooks/use-window-event.js +15 -0
  71. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/internal/close-provider.js +9 -0
  72. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/internal/disabled.js +8 -0
  73. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/internal/floating.js +149 -0
  74. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/internal/form-fields.js +35 -0
  75. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/internal/frozen.js +13 -0
  76. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/internal/hidden.js +13 -0
  77. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/internal/id.js +8 -0
  78. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/internal/open-closed.js +19 -0
  79. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/internal/portal-force-root.js +12 -0
  80. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/active-element-history.js +14 -0
  81. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/bugs.js +18 -0
  82. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +40 -0
  83. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/class-names.js +6 -0
  84. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/default-map.js +12 -0
  85. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/disposables.js +40 -0
  86. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/document-ready.js +9 -0
  87. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/env.js +34 -0
  88. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/focus-management.js +84 -0
  89. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/form.js +14 -0
  90. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/match.js +11 -0
  91. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/micro-task.js +8 -0
  92. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/owner.js +7 -0
  93. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/platform.js +14 -0
  94. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/render.js +118 -0
  95. package/dist/node_modules/.pnpm/@headlessui_react@2.2.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@headlessui/react/dist/utils/store.js +14 -0
  96. package/dist/node_modules/.pnpm/@react-aria_focus@3.21.4_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/focus/dist/useFocusRing.js +38 -0
  97. package/dist/node_modules/.pnpm/@react-aria_interactions@3.27.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/interactions/dist/useFocus.js +30 -0
  98. package/dist/node_modules/.pnpm/@react-aria_interactions@3.27.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/interactions/dist/useFocusVisible.js +97 -0
  99. package/dist/node_modules/.pnpm/@react-aria_interactions@3.27.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/interactions/dist/useFocusWithin.js +57 -0
  100. package/dist/node_modules/.pnpm/@react-aria_interactions@3.27.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/interactions/dist/useHover.js +86 -0
  101. package/dist/node_modules/.pnpm/@react-aria_interactions@3.27.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/interactions/dist/utils.js +66 -0
  102. package/dist/node_modules/.pnpm/@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/DOMFunctions.js +27 -0
  103. package/dist/node_modules/.pnpm/@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/domHelpers.js +15 -0
  104. package/dist/node_modules/.pnpm/@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/focusWithoutScrolling.js +45 -0
  105. package/dist/node_modules/.pnpm/@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/isVirtualEvent.js +7 -0
  106. package/dist/node_modules/.pnpm/@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/openLink.js +28 -0
  107. package/dist/node_modules/.pnpm/@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/platform.js +47 -0
  108. package/dist/node_modules/.pnpm/@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/useGlobalListeners.js +34 -0
  109. package/dist/node_modules/.pnpm/@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/useLayoutEffect.js +6 -0
  110. package/dist/node_modules/.pnpm/@react-stately_flags@3.1.2/node_modules/@react-stately/flags/dist/import.js +7 -0
  111. package/dist/node_modules/.pnpm/@tanstack_react-virtual@3.13.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@tanstack/react-virtual/dist/esm/index.js +38 -0
  112. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.13.18/node_modules/@tanstack/virtual-core/dist/esm/index.js +533 -0
  113. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.13.18/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
  114. package/dist/node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/loader-circle.js +13 -0
  115. package/dist/node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/search-x.js +16 -0
  116. package/dist/node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/search.js +14 -0
  117. package/dist/styles.css +1 -1
  118. package/package.json +2 -1
@@ -0,0 +1,118 @@
1
+ import $, { forwardRef as P, useCallback as w, useRef as k, Fragment as j, isValidElement as E, cloneElement as A, createElement as F } from "react";
2
+ import { classNames as O } from "./class-names.js";
3
+ import { match as S } from "./match.js";
4
+ var C = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(C || {}), H = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(H || {});
5
+ function x() {
6
+ let e = U();
7
+ return w((n) => T({ mergeRefs: e, ...n }), [e]);
8
+ }
9
+ function T({ ourProps: e, theirProps: n, slot: t, defaultTag: r, features: l, visible: a = !0, name: s, mergeRefs: u }) {
10
+ u = u ?? W;
11
+ let o = R(n, e);
12
+ if (a) return v(o, t, r, s, u);
13
+ let p = l ?? 0;
14
+ if (p & 2) {
15
+ let { static: i = !1, ...f } = o;
16
+ if (i) return v(f, t, r, s, u);
17
+ }
18
+ if (p & 1) {
19
+ let { unmount: i = !0, ...f } = o;
20
+ return S(i ? 0 : 1, { 0() {
21
+ return null;
22
+ }, 1() {
23
+ return v({ ...f, hidden: !0, style: { display: "none" } }, t, r, s, u);
24
+ } });
25
+ }
26
+ return v(o, t, r, s, u);
27
+ }
28
+ function v(e, n = {}, t, r, l) {
29
+ let { as: a = t, children: s, refName: u = "ref", ...o } = N(e, ["unmount", "static"]), p = e.ref !== void 0 ? { [u]: e.ref } : {}, i = typeof s == "function" ? s(n) : s;
30
+ "className" in o && o.className && typeof o.className == "function" && (o.className = o.className(n)), o["aria-labelledby"] && o["aria-labelledby"] === o.id && (o["aria-labelledby"] = void 0);
31
+ let f = {};
32
+ if (n) {
33
+ let c = !1, d = [];
34
+ for (let [m, h] of Object.entries(n)) typeof h == "boolean" && (c = !0), h === !0 && d.push(m.replace(/([A-Z])/g, (y) => `-${y.toLowerCase()}`));
35
+ if (c) {
36
+ f["data-headlessui-state"] = d.join(" ");
37
+ for (let m of d) f[`data-${m}`] = "";
38
+ }
39
+ }
40
+ if (a === j && (Object.keys(g(o)).length > 0 || Object.keys(g(f)).length > 0)) if (!E(i) || Array.isArray(i) && i.length > 1) {
41
+ if (Object.keys(g(o)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(g(o)).concat(Object.keys(g(f))).map((c) => ` - ${c}`).join(`
42
+ `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((c) => ` - ${c}`).join(`
43
+ `)].join(`
44
+ `));
45
+ } else {
46
+ let c = i.props, d = c == null ? void 0 : c.className, m = typeof d == "function" ? (...b) => O(d(...b), o.className) : O(d, o.className), h = m ? { className: m } : {}, y = R(i.props, g(N(o, ["ref"])));
47
+ for (let b in f) b in y && delete f[b];
48
+ return A(i, Object.assign({}, y, f, p, { ref: l(_(i), p.ref) }, h));
49
+ }
50
+ return F(a, Object.assign({}, N(o, ["ref"]), a !== j && p, a !== j && f), i);
51
+ }
52
+ function U() {
53
+ let e = k([]), n = w((t) => {
54
+ for (let r of e.current) r != null && (typeof r == "function" ? r(t) : r.current = t);
55
+ }, []);
56
+ return (...t) => {
57
+ if (!t.every((r) => r == null)) return e.current = t, n;
58
+ };
59
+ }
60
+ function W(...e) {
61
+ return e.every((n) => n == null) ? void 0 : (n) => {
62
+ for (let t of e) t != null && (typeof t == "function" ? t(n) : t.current = n);
63
+ };
64
+ }
65
+ function R(...e) {
66
+ if (e.length === 0) return {};
67
+ if (e.length === 1) return e[0];
68
+ let n = {}, t = {};
69
+ for (let r of e) for (let l in r) l.startsWith("on") && typeof r[l] == "function" ? (t[l] != null || (t[l] = []), t[l].push(r[l])) : n[l] = r[l];
70
+ if (n.disabled || n["aria-disabled"]) for (let r in t) /^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r) && (t[r] = [(l) => {
71
+ var a;
72
+ return (a = l == null ? void 0 : l.preventDefault) == null ? void 0 : a.call(l);
73
+ }]);
74
+ for (let r in t) Object.assign(n, { [r](l, ...a) {
75
+ let s = t[r];
76
+ for (let u of s) {
77
+ if ((l instanceof Event || (l == null ? void 0 : l.nativeEvent) instanceof Event) && l.defaultPrevented) return;
78
+ u(l, ...a);
79
+ }
80
+ } });
81
+ return n;
82
+ }
83
+ function M(...e) {
84
+ if (e.length === 0) return {};
85
+ if (e.length === 1) return e[0];
86
+ let n = {}, t = {};
87
+ for (let r of e) for (let l in r) l.startsWith("on") && typeof r[l] == "function" ? (t[l] != null || (t[l] = []), t[l].push(r[l])) : n[l] = r[l];
88
+ for (let r in t) Object.assign(n, { [r](...l) {
89
+ let a = t[r];
90
+ for (let s of a) s == null || s(...l);
91
+ } });
92
+ return n;
93
+ }
94
+ function V(e) {
95
+ var n;
96
+ return Object.assign(P(e), { displayName: (n = e.displayName) != null ? n : e.name });
97
+ }
98
+ function g(e) {
99
+ let n = Object.assign({}, e);
100
+ for (let t in n) n[t] === void 0 && delete n[t];
101
+ return n;
102
+ }
103
+ function N(e, n = []) {
104
+ let t = Object.assign({}, e);
105
+ for (let r of n) r in t && delete t[r];
106
+ return t;
107
+ }
108
+ function _(e) {
109
+ return $.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
110
+ }
111
+ export {
112
+ C as RenderFeatures,
113
+ H as RenderStrategy,
114
+ g as compact,
115
+ V as forwardRefWithAs,
116
+ M as mergeProps,
117
+ x as useRender
118
+ };
@@ -0,0 +1,14 @@
1
+ function s(n, c) {
2
+ let t = n(), r = /* @__PURE__ */ new Set();
3
+ return { getSnapshot() {
4
+ return t;
5
+ }, subscribe(e) {
6
+ return r.add(e), () => r.delete(e);
7
+ }, dispatch(e, ...l) {
8
+ let a = c[e].call(t, ...l);
9
+ a && (t = a, r.forEach((o) => o()));
10
+ } };
11
+ }
12
+ export {
13
+ s as createStore
14
+ };
@@ -0,0 +1,38 @@
1
+ import { useFocus as V } from "../../../../../@react-aria_interactions@3.27.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/interactions/dist/useFocus.js";
2
+ import { isFocusVisible as r, useFocusVisibleListener as h } from "../../../../../@react-aria_interactions@3.27.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/interactions/dist/useFocusVisible.js";
3
+ import { useFocusWithin as x } from "../../../../../@react-aria_interactions@3.27.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/interactions/dist/useFocusWithin.js";
4
+ import { useRef as m, useState as a, useCallback as f } from "react";
5
+ function I(n = {}) {
6
+ let { autoFocus: b = !1, isTextInput: u, within: i } = n, s = m({
7
+ isFocused: !1,
8
+ isFocusVisible: b || r()
9
+ }), [o, l] = a(!1), [d, F] = a(() => s.current.isFocused && s.current.isFocusVisible), t = f(() => F(s.current.isFocused && s.current.isFocusVisible), []), c = f((e) => {
10
+ s.current.isFocused = e, s.current.isFocusVisible = r(), l(e), t();
11
+ }, [
12
+ t
13
+ ]);
14
+ h((e) => {
15
+ s.current.isFocusVisible = e, t();
16
+ }, [
17
+ u,
18
+ o
19
+ ], {
20
+ enabled: o,
21
+ isTextInput: u
22
+ });
23
+ let { focusProps: p } = V({
24
+ isDisabled: i,
25
+ onFocusChange: c
26
+ }), { focusWithinProps: $ } = x({
27
+ isDisabled: !i,
28
+ onFocusWithinChange: c
29
+ });
30
+ return {
31
+ isFocused: o,
32
+ isFocusVisible: d,
33
+ focusProps: i ? $ : p
34
+ };
35
+ }
36
+ export {
37
+ I as useFocusRing
38
+ };
@@ -0,0 +1,30 @@
1
+ import { useSyntheticBlurEvent as l } from "./utils.js";
2
+ import { useCallback as u } from "react";
3
+ import { getActiveElement as a, getEventTarget as p } from "../../../../../@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/DOMFunctions.js";
4
+ import { getOwnerDocument as m } from "../../../../../@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/domHelpers.js";
5
+ function x(d) {
6
+ let { isDisabled: r, onFocus: n, onBlur: o, onFocusChange: t } = d;
7
+ const c = u((e) => {
8
+ if (e.target === e.currentTarget)
9
+ return o && o(e), t && t(!1), !0;
10
+ }, [
11
+ o,
12
+ t
13
+ ]), f = l(c), i = u((e) => {
14
+ const s = m(e.target), $ = s ? a(s) : a();
15
+ e.target === e.currentTarget && $ === p(e.nativeEvent) && (n && n(e), t && t(!0), f(e));
16
+ }, [
17
+ t,
18
+ n,
19
+ f
20
+ ]);
21
+ return {
22
+ focusProps: {
23
+ onFocus: !r && (n || t || o) ? i : void 0,
24
+ onBlur: !r && (o || t) ? c : void 0
25
+ }
26
+ };
27
+ }
28
+ export {
29
+ x as useFocus
30
+ };
@@ -0,0 +1,97 @@
1
+ import { ignoreFocusEvent as k } from "./utils.js";
2
+ import { getOwnerWindow as a, getOwnerDocument as c } from "../../../../../@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/domHelpers.js";
3
+ import { openLink as E } from "../../../../../@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/openLink.js";
4
+ import { isMac as M } from "../../../../../@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/platform.js";
5
+ import { isVirtualClick as h } from "../../../../../@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/isVirtualEvent.js";
6
+ import { useEffect as x } from "react";
7
+ let f = null;
8
+ const l = /* @__PURE__ */ new Set();
9
+ let d = /* @__PURE__ */ new Map(), i = !1, b = !1;
10
+ const H = {
11
+ Tab: !0,
12
+ Escape: !0
13
+ };
14
+ function p(t, o) {
15
+ for (let e of l) e(t, o);
16
+ }
17
+ function O(t) {
18
+ return !(t.metaKey || !M() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
19
+ }
20
+ function u(t) {
21
+ i = !0, !E.isOpening && O(t) && (f = "keyboard", p("keyboard", t));
22
+ }
23
+ function r(t) {
24
+ f = "pointer", "pointerType" in t && t.pointerType, (t.type === "mousedown" || t.type === "pointerdown") && (i = !0, p("pointer", t));
25
+ }
26
+ function m(t) {
27
+ !E.isOpening && h(t) && (i = !0, f = "virtual");
28
+ }
29
+ function L(t) {
30
+ t.target === window || t.target === document || k || !t.isTrusted || (!i && !b && (f = "virtual", p("virtual", t)), i = !1, b = !1);
31
+ }
32
+ function y() {
33
+ i = !1, b = !0;
34
+ }
35
+ function $(t) {
36
+ if (typeof window > "u" || typeof document > "u" || d.get(a(t))) return;
37
+ const o = a(t), e = c(t);
38
+ let n = o.HTMLElement.prototype.focus;
39
+ o.HTMLElement.prototype.focus = function() {
40
+ i = !0, n.apply(this, arguments);
41
+ }, e.addEventListener("keydown", u, !0), e.addEventListener("keyup", u, !0), e.addEventListener("click", m, !0), o.addEventListener("focus", L, !0), o.addEventListener("blur", y, !1), typeof PointerEvent < "u" ? (e.addEventListener("pointerdown", r, !0), e.addEventListener("pointermove", r, !0), e.addEventListener("pointerup", r, !0)) : process.env.NODE_ENV === "test" && (e.addEventListener("mousedown", r, !0), e.addEventListener("mousemove", r, !0), e.addEventListener("mouseup", r, !0)), o.addEventListener("beforeunload", () => {
42
+ w(t);
43
+ }, {
44
+ once: !0
45
+ }), d.set(o, {
46
+ focus: n
47
+ });
48
+ }
49
+ const w = (t, o) => {
50
+ const e = a(t), n = c(t);
51
+ o && n.removeEventListener("DOMContentLoaded", o), d.has(e) && (e.HTMLElement.prototype.focus = d.get(e).focus, n.removeEventListener("keydown", u, !0), n.removeEventListener("keyup", u, !0), n.removeEventListener("click", m, !0), e.removeEventListener("focus", L, !0), e.removeEventListener("blur", y, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown", r, !0), n.removeEventListener("pointermove", r, !0), n.removeEventListener("pointerup", r, !0)) : process.env.NODE_ENV === "test" && (n.removeEventListener("mousedown", r, !0), n.removeEventListener("mousemove", r, !0), n.removeEventListener("mouseup", r, !0)), d.delete(e));
52
+ };
53
+ function F(t) {
54
+ const o = c(t);
55
+ let e;
56
+ return o.readyState !== "loading" ? $(t) : (e = () => {
57
+ $(t);
58
+ }, o.addEventListener("DOMContentLoaded", e)), () => w(t, e);
59
+ }
60
+ typeof document < "u" && F();
61
+ function I() {
62
+ return f !== "pointer";
63
+ }
64
+ const K = /* @__PURE__ */ new Set([
65
+ "checkbox",
66
+ "radio",
67
+ "range",
68
+ "color",
69
+ "file",
70
+ "image",
71
+ "button",
72
+ "submit",
73
+ "reset"
74
+ ]);
75
+ function C(t, o, e) {
76
+ let n = c(e == null ? void 0 : e.target);
77
+ const s = typeof window < "u" ? a(e == null ? void 0 : e.target).HTMLInputElement : HTMLInputElement, v = typeof window < "u" ? a(e == null ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement, g = typeof window < "u" ? a(e == null ? void 0 : e.target).HTMLElement : HTMLElement, T = typeof window < "u" ? a(e == null ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
78
+ return t = t || n.activeElement instanceof s && !K.has(n.activeElement.type) || n.activeElement instanceof v || n.activeElement instanceof g && n.activeElement.isContentEditable, !(t && o === "keyboard" && e instanceof T && !H[e.key]);
79
+ }
80
+ function _(t, o, e) {
81
+ $(), x(() => {
82
+ if ((e == null ? void 0 : e.enabled) === !1) return;
83
+ let n = (s, v) => {
84
+ C(!!(e != null && e.isTextInput), s, v) && t(I());
85
+ };
86
+ return l.add(n), () => {
87
+ l.delete(n);
88
+ };
89
+ }, o);
90
+ }
91
+ export {
92
+ F as addWindowFocusTracking,
93
+ l as changeHandlers,
94
+ d as hasSetupGlobalListeners,
95
+ I as isFocusVisible,
96
+ _ as useFocusVisibleListener
97
+ };
@@ -0,0 +1,57 @@
1
+ import { useSyntheticBlurEvent as W, setEventTarget as v, createSyntheticEvent as x } from "./utils.js";
2
+ import { useRef as E, useCallback as b } from "react";
3
+ import { nodeContains as i, getActiveElement as T, getEventTarget as B } from "../../../../../@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/DOMFunctions.js";
4
+ import { getOwnerDocument as G } from "../../../../../@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/domHelpers.js";
5
+ import { useGlobalListeners as L } from "../../../../../@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/useGlobalListeners.js";
6
+ function S(h) {
7
+ let { isDisabled: g, onBlurWithin: o, onFocusWithin: a, onFocusWithinChange: t } = h, r = E({
8
+ isFocusWithin: !1
9
+ }), { addGlobalListener: s, removeAllGlobalListeners: u } = L(), n = b((e) => {
10
+ i(e.currentTarget, e.target) && r.current.isFocusWithin && !i(e.currentTarget, e.relatedTarget) && (r.current.isFocusWithin = !1, u(), o && o(e), t && t(!1));
11
+ }, [
12
+ o,
13
+ t,
14
+ r,
15
+ u
16
+ ]), f = W(n), p = b((e) => {
17
+ if (!i(e.currentTarget, e.target)) return;
18
+ const c = G(e.target), m = T(c);
19
+ if (!r.current.isFocusWithin && m === B(e.nativeEvent)) {
20
+ a && a(e), t && t(!0), r.current.isFocusWithin = !0, f(e);
21
+ let l = e.currentTarget;
22
+ s(c, "focus", (d) => {
23
+ if (r.current.isFocusWithin && !i(l, d.target)) {
24
+ let $ = new c.defaultView.FocusEvent("blur", {
25
+ relatedTarget: d.target
26
+ });
27
+ v($, l);
28
+ let F = x($);
29
+ n(F);
30
+ }
31
+ }, {
32
+ capture: !0
33
+ });
34
+ }
35
+ }, [
36
+ a,
37
+ t,
38
+ f,
39
+ s,
40
+ n
41
+ ]);
42
+ return g ? {
43
+ focusWithinProps: {
44
+ // These cannot be null, that would conflict in mergeProps
45
+ onFocus: void 0,
46
+ onBlur: void 0
47
+ }
48
+ } : {
49
+ focusWithinProps: {
50
+ onFocus: p,
51
+ onBlur: n
52
+ }
53
+ };
54
+ }
55
+ export {
56
+ S as useFocusWithin
57
+ };
@@ -0,0 +1,86 @@
1
+ import { nodeContains as u } from "../../../../../@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/DOMFunctions.js";
2
+ import { getOwnerDocument as P } from "../../../../../@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/domHelpers.js";
3
+ import { useGlobalListeners as M } from "../../../../../@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/useGlobalListeners.js";
4
+ import { useState as G, useRef as D, useEffect as H, useMemo as N } from "react";
5
+ let f = !1, d = 0;
6
+ function E() {
7
+ f = !0, setTimeout(() => {
8
+ f = !1;
9
+ }, 50);
10
+ }
11
+ function h(l) {
12
+ l.pointerType === "touch" && E();
13
+ }
14
+ function x() {
15
+ if (!(typeof document > "u"))
16
+ return d === 0 && (typeof PointerEvent < "u" ? document.addEventListener("pointerup", h) : process.env.NODE_ENV === "test" && document.addEventListener("touchend", E)), d++, () => {
17
+ d--, !(d > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", h) : process.env.NODE_ENV === "test" && document.removeEventListener("touchend", E));
18
+ };
19
+ }
20
+ function _(l) {
21
+ let { onHoverStart: v, onHoverChange: s, onHoverEnd: p, isDisabled: r } = l, [T, c] = G(!1), t = D({
22
+ isHovered: !1,
23
+ ignoreEmulatedMouseEvents: !1,
24
+ pointerType: "",
25
+ target: null
26
+ }).current;
27
+ H(x, []);
28
+ let { addGlobalListener: m, removeAllGlobalListeners: $ } = M(), { hoverProps: y, triggerHoverEnd: L } = N(() => {
29
+ let b = (e, n) => {
30
+ if (t.pointerType = n, r || n === "touch" || t.isHovered || !u(e.currentTarget, e.target)) return;
31
+ t.isHovered = !0;
32
+ let i = e.currentTarget;
33
+ t.target = i, m(P(e.target), "pointerover", (g) => {
34
+ t.isHovered && t.target && !u(t.target, g.target) && a(g, g.pointerType);
35
+ }, {
36
+ capture: !0
37
+ }), v && v({
38
+ type: "hoverstart",
39
+ target: i,
40
+ pointerType: n
41
+ }), s && s(!0), c(!0);
42
+ }, a = (e, n) => {
43
+ let i = t.target;
44
+ t.pointerType = "", t.target = null, !(n === "touch" || !t.isHovered || !i) && (t.isHovered = !1, $(), p && p({
45
+ type: "hoverend",
46
+ target: i,
47
+ pointerType: n
48
+ }), s && s(!1), c(!1));
49
+ }, o = {};
50
+ return typeof PointerEvent < "u" ? (o.onPointerEnter = (e) => {
51
+ f && e.pointerType === "mouse" || b(e, e.pointerType);
52
+ }, o.onPointerLeave = (e) => {
53
+ !r && u(e.currentTarget, e.target) && a(e, e.pointerType);
54
+ }) : process.env.NODE_ENV === "test" && (o.onTouchStart = () => {
55
+ t.ignoreEmulatedMouseEvents = !0;
56
+ }, o.onMouseEnter = (e) => {
57
+ !t.ignoreEmulatedMouseEvents && !f && b(e, "mouse"), t.ignoreEmulatedMouseEvents = !1;
58
+ }, o.onMouseLeave = (e) => {
59
+ !r && u(e.currentTarget, e.target) && a(e, "mouse");
60
+ }), {
61
+ hoverProps: o,
62
+ triggerHoverEnd: a
63
+ };
64
+ }, [
65
+ v,
66
+ s,
67
+ p,
68
+ r,
69
+ t,
70
+ m,
71
+ $
72
+ ]);
73
+ return H(() => {
74
+ r && L({
75
+ currentTarget: t.target
76
+ }, t.pointerType);
77
+ }, [
78
+ r
79
+ ]), {
80
+ hoverProps: y,
81
+ isHovered: T
82
+ };
83
+ }
84
+ export {
85
+ _ as useHover
86
+ };
@@ -0,0 +1,66 @@
1
+ import { useLayoutEffect as o } from "../../../../../@react-aria_utils@3.33.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@react-aria/utils/dist/useLayoutEffect.js";
2
+ import { useRef as u, useCallback as d } from "react";
3
+ function l(t) {
4
+ let e = t;
5
+ return e.nativeEvent = t, e.isDefaultPrevented = () => e.defaultPrevented, e.isPropagationStopped = () => e.cancelBubble, e.persist = () => {
6
+ }, e;
7
+ }
8
+ function v(t, e) {
9
+ Object.defineProperty(t, "target", {
10
+ value: e
11
+ }), Object.defineProperty(t, "currentTarget", {
12
+ value: e
13
+ });
14
+ }
15
+ function f(t) {
16
+ let e = u({
17
+ isFocused: !1,
18
+ observer: null
19
+ });
20
+ return o(() => {
21
+ const r = e.current;
22
+ return () => {
23
+ r.observer && (r.observer.disconnect(), r.observer = null);
24
+ };
25
+ }, []), d((r) => {
26
+ if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
27
+ e.current.isFocused = !0;
28
+ let n = r.target, s = (c) => {
29
+ if (e.current.isFocused = !1, n.disabled) {
30
+ let a = l(c);
31
+ t == null || t(a);
32
+ }
33
+ e.current.observer && (e.current.observer.disconnect(), e.current.observer = null);
34
+ };
35
+ n.addEventListener("focusout", s, {
36
+ once: !0
37
+ }), e.current.observer = new MutationObserver(() => {
38
+ if (e.current.isFocused && n.disabled) {
39
+ var c;
40
+ (c = e.current.observer) === null || c === void 0 || c.disconnect();
41
+ let a = n === document.activeElement ? null : document.activeElement;
42
+ n.dispatchEvent(new FocusEvent("blur", {
43
+ relatedTarget: a
44
+ })), n.dispatchEvent(new FocusEvent("focusout", {
45
+ bubbles: !0,
46
+ relatedTarget: a
47
+ }));
48
+ }
49
+ }), e.current.observer.observe(n, {
50
+ attributes: !0,
51
+ attributeFilter: [
52
+ "disabled"
53
+ ]
54
+ });
55
+ }
56
+ }, [
57
+ t
58
+ ]);
59
+ }
60
+ let p = !1;
61
+ export {
62
+ l as createSyntheticEvent,
63
+ p as ignoreFocusEvent,
64
+ v as setEventTarget,
65
+ f as useSyntheticBlurEvent
66
+ };
@@ -0,0 +1,27 @@
1
+ import { isShadowRoot as f } from "./domHelpers.js";
2
+ import { shadowDOM as o } from "../../../../../@react-stately_flags@3.1.2/node_modules/@react-stately/flags/dist/import.js";
3
+ function n(t, a) {
4
+ if (!o()) return a && t ? t.contains(a) : !1;
5
+ if (!t || !a) return !1;
6
+ let e = a;
7
+ for (; e !== null; ) {
8
+ if (e === t) return !0;
9
+ e.tagName === "SLOT" && e.assignedSlot ? e = e.assignedSlot.parentNode : f(e) ? e = e.host : e = e.parentNode;
10
+ }
11
+ return !1;
12
+ }
13
+ const s = (t = document) => {
14
+ var a;
15
+ if (!o()) return t.activeElement;
16
+ let e = t.activeElement;
17
+ for (; e && "shadowRoot" in e && (!((a = e.shadowRoot) === null || a === void 0) && a.activeElement); ) e = e.shadowRoot.activeElement;
18
+ return e;
19
+ };
20
+ function d(t) {
21
+ return o() && t.target.shadowRoot && t.composedPath ? t.composedPath()[0] : t.target;
22
+ }
23
+ export {
24
+ s as getActiveElement,
25
+ d as getEventTarget,
26
+ n as nodeContains
27
+ };
@@ -0,0 +1,15 @@
1
+ const t = (o) => {
2
+ var n;
3
+ return (n = o == null ? void 0 : o.ownerDocument) !== null && n !== void 0 ? n : document;
4
+ }, e = (o) => o && "window" in o && o.window === o ? o : t(o).defaultView || window;
5
+ function d(o) {
6
+ return o !== null && typeof o == "object" && "nodeType" in o && typeof o.nodeType == "number";
7
+ }
8
+ function c(o) {
9
+ return d(o) && o.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in o;
10
+ }
11
+ export {
12
+ t as getOwnerDocument,
13
+ e as getOwnerWindow,
14
+ c as isShadowRoot
15
+ };
@@ -0,0 +1,45 @@
1
+ function f(l) {
2
+ if (c()) l.focus({
3
+ preventScroll: !0
4
+ });
5
+ else {
6
+ let e = n(l);
7
+ l.focus(), s(e);
8
+ }
9
+ }
10
+ let r = null;
11
+ function c() {
12
+ if (r == null) {
13
+ r = !1;
14
+ try {
15
+ document.createElement("div").focus({
16
+ get preventScroll() {
17
+ return r = !0, !0;
18
+ }
19
+ });
20
+ } catch {
21
+ }
22
+ }
23
+ return r;
24
+ }
25
+ function n(l) {
26
+ let e = l.parentNode, o = [], t = document.scrollingElement || document.documentElement;
27
+ for (; e instanceof HTMLElement && e !== t; )
28
+ (e.offsetHeight < e.scrollHeight || e.offsetWidth < e.scrollWidth) && o.push({
29
+ element: e,
30
+ scrollTop: e.scrollTop,
31
+ scrollLeft: e.scrollLeft
32
+ }), e = e.parentNode;
33
+ return t instanceof HTMLElement && o.push({
34
+ element: t,
35
+ scrollTop: t.scrollTop,
36
+ scrollLeft: t.scrollLeft
37
+ }), o;
38
+ }
39
+ function s(l) {
40
+ for (let { element: e, scrollTop: o, scrollLeft: t } of l)
41
+ e.scrollTop = o, e.scrollLeft = t;
42
+ }
43
+ export {
44
+ f as focusWithoutScrolling
45
+ };
@@ -0,0 +1,7 @@
1
+ import { isAndroid as i } from "./platform.js";
2
+ function o(r) {
3
+ return r.pointerType === "" && r.isTrusted ? !0 : i() && r.pointerType ? r.type === "click" && r.buttons === 1 : r.detail === 0 && !r.pointerType;
4
+ }
5
+ export {
6
+ o as isVirtualClick
7
+ };
@@ -0,0 +1,28 @@
1
+ import { focusWithoutScrolling as f } from "./focusWithoutScrolling.js";
2
+ import { isFirefox as p, isWebKit as K, isMac as l, isIPad as $ } from "./platform.js";
3
+ import "react";
4
+ function o(e, c, d = !0) {
5
+ var t, a;
6
+ let { metaKey: i, ctrlKey: n, altKey: s, shiftKey: r } = c;
7
+ p() && (!((a = window.event) === null || a === void 0 || (t = a.type) === null || t === void 0) && t.startsWith("key")) && e.target === "_blank" && (l() ? i = !0 : n = !0);
8
+ let y = K() && l() && !$() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
9
+ keyIdentifier: "Enter",
10
+ metaKey: i,
11
+ ctrlKey: n,
12
+ altKey: s,
13
+ shiftKey: r
14
+ }) : new MouseEvent("click", {
15
+ metaKey: i,
16
+ ctrlKey: n,
17
+ altKey: s,
18
+ shiftKey: r,
19
+ detail: 1,
20
+ bubbles: !0,
21
+ cancelable: !0
22
+ });
23
+ o.isOpening = d, f(e), e.dispatchEvent(y), o.isOpening = !1;
24
+ }
25
+ o.isOpening = !1;
26
+ export {
27
+ o as openLink
28
+ };