@mintlify/components 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/components/index.d.ts +1 -0
  2. package/dist/components/index.d.ts.map +1 -1
  3. package/dist/components/search/button.d.ts +12 -0
  4. package/dist/components/search/button.d.ts.map +1 -0
  5. package/dist/components/search/button.js +53 -0
  6. package/dist/components/search/index.d.ts +7 -0
  7. package/dist/components/search/index.d.ts.map +1 -0
  8. package/dist/components/search/provider.d.ts +19 -0
  9. package/dist/components/search/provider.d.ts.map +1 -0
  10. package/dist/components/search/provider.js +32 -0
  11. package/dist/components/search/search.d.ts +36 -0
  12. package/dist/components/search/search.d.ts.map +1 -0
  13. package/dist/components/search/search.js +253 -0
  14. package/dist/index.js +55 -48
  15. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -1
  16. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +165 -164
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  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/focus-trap/focus-trap.js +129 -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/keyboard.js +4 -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/label/label.js +59 -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/mouse.js +4 -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/portal/portal.js +71 -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/transition/transition.js +135 -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/hooks/document-overflow/adjust-scrollbar-padding.js +14 -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/hooks/document-overflow/handle-ios-locking.js +48 -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/hooks/document-overflow/overflow-store.js +36 -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/prevent-scroll.js +8 -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/use-document-overflow.js +12 -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/use-active-press.js +33 -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/use-by-comparator.js +16 -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/use-controllable.js +9 -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-default-value.js +8 -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-disposables.js +9 -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-document-event.js +15 -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-element-size.js +20 -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-escape.js +12 -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-event-listener.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-event.js +9 -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-flags.js +8 -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-inert-others.js +41 -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-is-mounted.js +11 -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-is-top-layer.js +24 -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-is-touch-device.js +16 -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-iso-morphic-effect.js +8 -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-latest-value.js +11 -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-on-disappear.js +27 -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-on-unmount.js +14 -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-outside-click.js +39 -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-owner.js +8 -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-refocusable-input.js +22 -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-resolve-button-type.js +12 -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-root-containers.js +38 -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-scroll-lock.js +12 -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-server-handoff-complete.js +16 -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-store.js +7 -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-sync-refs.js +20 -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-tab-direction.js +13 -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-tracked-pointer.js +16 -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-transition.js +69 -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-tree-walker.js +18 -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-watch.js +15 -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-window-event.js +15 -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/internal/close-provider.js +9 -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/internal/disabled.js +8 -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/internal/floating.js +149 -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/form-fields.js +35 -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/frozen.js +13 -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/hidden.js +13 -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/id.js +8 -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/open-closed.js +19 -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/portal-force-root.js +12 -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/utils/active-element-history.js +14 -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/utils/bugs.js +18 -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/utils/calculate-active-index.js +40 -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/class-names.js +6 -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/default-map.js +12 -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/disposables.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/document-ready.js +9 -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/env.js +34 -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/focus-management.js +84 -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/form.js +14 -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/match.js +11 -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/micro-task.js +8 -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/owner.js +7 -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/platform.js +14 -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/render.js +118 -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/store.js +14 -0
  93. 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
  94. 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
  95. 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
  96. 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
  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/useHover.js +86 -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/utils.js +66 -0
  99. 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
  100. 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
  101. 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
  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/isVirtualEvent.js +7 -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/openLink.js +28 -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/platform.js +47 -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/useGlobalListeners.js +34 -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/useLayoutEffect.js +6 -0
  107. package/dist/node_modules/.pnpm/@react-stately_flags@3.1.2/node_modules/@react-stately/flags/dist/import.js +7 -0
  108. 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
  109. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.13.18/node_modules/@tanstack/virtual-core/dist/esm/index.js +533 -0
  110. package/dist/node_modules/.pnpm/@tanstack_virtual-core@3.13.18/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
  111. 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
  112. 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
  113. 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
  114. package/dist/styles.css +1 -1
  115. package/package.json +2 -1
@@ -0,0 +1,367 @@
1
+ import * as c from "react";
2
+ import { useLayoutEffect as j, useEffect as q } from "react";
3
+ import { getUserAgent as y } from "./floating-ui.react.utils.js";
4
+ import { evaluate as K, max as O, round as z, min as G } from "../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";
5
+ import { isElement as b } from "../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";
6
+ import { getOverflowAncestors as Ie } from "../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";
7
+ import * as D from "react-dom";
8
+ import { useFloating as J, offset as Q } from "../../../../../@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";
9
+ import { flip as Te, hide as Oe, limitShift as Fe, shift as Me, size as De } from "../../../../../@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";
10
+ import { detectOverflow as F } from "../../../../../@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
11
+ import { autoUpdate as Ae, computePosition as Pe, platform as Ne } from "../../../../../@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
12
+ const Y = {
13
+ ...c
14
+ }, X = Y.useInsertionEffect, Z = X || ((e) => e());
15
+ function W(e) {
16
+ const t = c.useRef(() => {
17
+ if (process.env.NODE_ENV !== "production")
18
+ throw new Error("Cannot call an event handler while rendering.");
19
+ });
20
+ return Z(() => {
21
+ t.current = e;
22
+ }), c.useCallback(function() {
23
+ for (var s = arguments.length, n = new Array(s), o = 0; o < s; o++)
24
+ n[o] = arguments[o];
25
+ return t.current == null ? void 0 : t.current(...n);
26
+ }, []);
27
+ }
28
+ var H = typeof document < "u" ? j : q;
29
+ let P = !1, _ = 0;
30
+ const N = () => (
31
+ // Ensure the id is unique with multiple independent versions of Floating UI
32
+ // on <React 18
33
+ "floating-ui-" + Math.random().toString(36).slice(2, 6) + _++
34
+ );
35
+ function L() {
36
+ const [e, t] = c.useState(() => P ? N() : void 0);
37
+ return H(() => {
38
+ e == null && t(N());
39
+ }, []), c.useEffect(() => {
40
+ P = !0;
41
+ }, []), e;
42
+ }
43
+ const k = Y.useId, ee = k || L;
44
+ let I;
45
+ process.env.NODE_ENV !== "production" && (I = /* @__PURE__ */ new Set());
46
+ function ne() {
47
+ for (var e, t = arguments.length, s = new Array(t), n = 0; n < t; n++)
48
+ s[n] = arguments[n];
49
+ const o = "Floating UI: " + s.join(" ");
50
+ if (!((e = I) != null && e.has(o))) {
51
+ var f;
52
+ (f = I) == null || f.add(o), console.warn(o);
53
+ }
54
+ }
55
+ function te() {
56
+ for (var e, t = arguments.length, s = new Array(t), n = 0; n < t; n++)
57
+ s[n] = arguments[n];
58
+ const o = "Floating UI: " + s.join(" ");
59
+ if (!((e = I) != null && e.has(o))) {
60
+ var f;
61
+ (f = I) == null || f.add(o), console.error(o);
62
+ }
63
+ }
64
+ function oe() {
65
+ const e = /* @__PURE__ */ new Map();
66
+ return {
67
+ emit(t, s) {
68
+ var n;
69
+ (n = e.get(t)) == null || n.forEach((o) => o(s));
70
+ },
71
+ on(t, s) {
72
+ e.set(t, [...e.get(t) || [], s]);
73
+ },
74
+ off(t, s) {
75
+ var n;
76
+ e.set(t, ((n = e.get(t)) == null ? void 0 : n.filter((o) => o !== s)) || []);
77
+ }
78
+ };
79
+ }
80
+ const re = /* @__PURE__ */ c.createContext(null), le = /* @__PURE__ */ c.createContext(null), ce = () => {
81
+ var e;
82
+ return ((e = c.useContext(re)) == null ? void 0 : e.id) || null;
83
+ }, se = () => c.useContext(le), ie = "data-floating-ui-focusable";
84
+ function fe(e) {
85
+ const {
86
+ open: t = !1,
87
+ onOpenChange: s,
88
+ elements: n
89
+ } = e, o = ee(), f = c.useRef({}), [u] = c.useState(() => oe()), i = ce() != null;
90
+ if (process.env.NODE_ENV !== "production") {
91
+ const r = n.reference;
92
+ r && !b(r) && te("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
93
+ }
94
+ const [v, d] = c.useState(n.reference), a = W((r, l, g) => {
95
+ f.current.openEvent = r ? l : void 0, u.emit("openchange", {
96
+ open: r,
97
+ event: l,
98
+ reason: g,
99
+ nested: i
100
+ }), s == null || s(r, l, g);
101
+ }), R = c.useMemo(() => ({
102
+ setPositionReference: d
103
+ }), []), p = c.useMemo(() => ({
104
+ reference: v || n.reference || null,
105
+ floating: n.floating || null,
106
+ domReference: n.reference
107
+ }), [v, n.reference, n.floating]);
108
+ return c.useMemo(() => ({
109
+ dataRef: f,
110
+ open: t,
111
+ onOpenChange: a,
112
+ elements: p,
113
+ events: u,
114
+ floatingId: o,
115
+ refs: R
116
+ }), [t, a, p, u, o, R]);
117
+ }
118
+ function Re(e) {
119
+ e === void 0 && (e = {});
120
+ const {
121
+ nodeId: t
122
+ } = e, s = fe({
123
+ ...e,
124
+ elements: {
125
+ reference: null,
126
+ floating: null,
127
+ ...e.elements
128
+ }
129
+ }), n = e.rootContext || s, o = n.elements, [f, u] = c.useState(null), [i, v] = c.useState(null), a = (o == null ? void 0 : o.domReference) || f, R = c.useRef(null), p = se();
130
+ H(() => {
131
+ a && (R.current = a);
132
+ }, [a]);
133
+ const r = J({
134
+ ...e,
135
+ elements: {
136
+ ...o,
137
+ ...i && {
138
+ reference: i
139
+ }
140
+ }
141
+ }), l = c.useCallback((m) => {
142
+ const E = b(m) ? {
143
+ getBoundingClientRect: () => m.getBoundingClientRect(),
144
+ contextElement: m
145
+ } : m;
146
+ v(E), r.refs.setReference(E);
147
+ }, [r.refs]), g = c.useCallback((m) => {
148
+ (b(m) || m === null) && (R.current = m, u(m)), (b(r.refs.reference.current) || r.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
149
+ // `null` to support `positionReference` + an unstable `reference`
150
+ // callback ref.
151
+ m !== null && !b(m)) && r.refs.setReference(m);
152
+ }, [r.refs]), h = c.useMemo(() => ({
153
+ ...r.refs,
154
+ setReference: g,
155
+ setPositionReference: l,
156
+ domReference: R
157
+ }), [r.refs, g, l]), C = c.useMemo(() => ({
158
+ ...r.elements,
159
+ domReference: a
160
+ }), [r.elements, a]), x = c.useMemo(() => ({
161
+ ...r,
162
+ ...n,
163
+ refs: h,
164
+ elements: C,
165
+ nodeId: t
166
+ }), [r, h, C, t, n]);
167
+ return H(() => {
168
+ n.dataRef.current.floatingContext = x;
169
+ const m = p == null ? void 0 : p.nodesRef.current.find((E) => E.id === t);
170
+ m && (m.context = x);
171
+ }), c.useMemo(() => ({
172
+ ...r,
173
+ context: x,
174
+ refs: h,
175
+ elements: C
176
+ }), [r, h, C, x]);
177
+ }
178
+ const U = "active", B = "selected";
179
+ function M(e, t, s) {
180
+ const n = /* @__PURE__ */ new Map(), o = s === "item";
181
+ let f = e;
182
+ if (o && e) {
183
+ const {
184
+ [U]: u,
185
+ [B]: i,
186
+ ...v
187
+ } = e;
188
+ f = v;
189
+ }
190
+ return {
191
+ ...s === "floating" && {
192
+ tabIndex: -1,
193
+ [ie]: ""
194
+ },
195
+ ...f,
196
+ ...t.map((u) => {
197
+ const i = u ? u[s] : null;
198
+ return typeof i == "function" ? e ? i(e) : null : i;
199
+ }).concat(e).reduce((u, i) => (i && Object.entries(i).forEach((v) => {
200
+ let [d, a] = v;
201
+ if (!(o && [U, B].includes(d)))
202
+ if (d.indexOf("on") === 0) {
203
+ if (n.has(d) || n.set(d, []), typeof a == "function") {
204
+ var R;
205
+ (R = n.get(d)) == null || R.push(a), u[d] = function() {
206
+ for (var p, r = arguments.length, l = new Array(r), g = 0; g < r; g++)
207
+ l[g] = arguments[g];
208
+ return (p = n.get(d)) == null ? void 0 : p.map((h) => h(...l)).find((h) => h !== void 0);
209
+ };
210
+ }
211
+ } else
212
+ u[d] = a;
213
+ }), u), {})
214
+ };
215
+ }
216
+ function Ee(e) {
217
+ e === void 0 && (e = []);
218
+ const t = e.map((i) => i == null ? void 0 : i.reference), s = e.map((i) => i == null ? void 0 : i.floating), n = e.map((i) => i == null ? void 0 : i.item), o = c.useCallback(
219
+ (i) => M(i, e, "reference"),
220
+ // eslint-disable-next-line react-hooks/exhaustive-deps
221
+ t
222
+ ), f = c.useCallback(
223
+ (i) => M(i, e, "floating"),
224
+ // eslint-disable-next-line react-hooks/exhaustive-deps
225
+ s
226
+ ), u = c.useCallback(
227
+ (i) => M(i, e, "item"),
228
+ // eslint-disable-next-line react-hooks/exhaustive-deps
229
+ n
230
+ );
231
+ return c.useMemo(() => ({
232
+ getReferenceProps: o,
233
+ getFloatingProps: f,
234
+ getItemProps: u
235
+ }), [o, f, u]);
236
+ }
237
+ function V(e, t) {
238
+ return {
239
+ ...e,
240
+ rects: {
241
+ ...e.rects,
242
+ floating: {
243
+ ...e.rects.floating,
244
+ height: t
245
+ }
246
+ }
247
+ };
248
+ }
249
+ const Ce = (e) => ({
250
+ name: "inner",
251
+ options: e,
252
+ async fn(t) {
253
+ const {
254
+ listRef: s,
255
+ overflowRef: n,
256
+ onFallbackChange: o,
257
+ offset: f = 0,
258
+ index: u = 0,
259
+ minItemsVisible: i = 4,
260
+ referenceOverflowThreshold: v = 0,
261
+ scrollRef: d,
262
+ ...a
263
+ } = K(e, t), {
264
+ rects: R,
265
+ elements: {
266
+ floating: p
267
+ }
268
+ } = t, r = s.current[u], l = (d == null ? void 0 : d.current) || p, g = p.clientTop || l.clientTop, h = p.clientTop !== 0, C = l.clientTop !== 0, x = p === l;
269
+ if (process.env.NODE_ENV !== "production" && (t.placement.startsWith("bottom") || ne('`placement` side must be "bottom" when using the `inner`', "middleware.")), !r)
270
+ return {};
271
+ const m = {
272
+ ...t,
273
+ ...await Q(-r.offsetTop - p.clientTop - R.reference.height / 2 - r.offsetHeight / 2 - f).fn(t)
274
+ }, E = await F(V(m, l.scrollHeight + g + p.clientTop), a), S = await F(m, {
275
+ ...a,
276
+ elementContext: "reference"
277
+ }), w = O(0, E.top), A = m.y + w, $ = (l.scrollHeight > l.clientHeight ? (T) => T : z)(O(0, l.scrollHeight + (h && x || C ? g * 2 : 0) - w - O(0, E.bottom)));
278
+ if (l.style.maxHeight = $ + "px", l.scrollTop = w, o) {
279
+ const T = l.offsetHeight < r.offsetHeight * G(i, s.current.length) - 1 || S.top >= -v || S.bottom >= -v;
280
+ D.flushSync(() => o(T));
281
+ }
282
+ return n && (n.current = await F(V({
283
+ ...m,
284
+ y: A
285
+ }, l.offsetHeight + g + p.clientTop), a)), {
286
+ y: A
287
+ };
288
+ }
289
+ });
290
+ function xe(e, t) {
291
+ const {
292
+ open: s,
293
+ elements: n
294
+ } = e, {
295
+ enabled: o = !0,
296
+ overflowRef: f,
297
+ scrollRef: u,
298
+ onChange: i
299
+ } = t, v = W(i), d = c.useRef(!1), a = c.useRef(null), R = c.useRef(null);
300
+ c.useEffect(() => {
301
+ if (!o) return;
302
+ function r(g) {
303
+ if (g.ctrlKey || !l || f.current == null)
304
+ return;
305
+ const h = g.deltaY, C = f.current.top >= -0.5, x = f.current.bottom >= -0.5, m = l.scrollHeight - l.clientHeight, E = h < 0 ? -1 : 1, S = h < 0 ? "max" : "min";
306
+ l.scrollHeight <= l.clientHeight || (!C && h > 0 || !x && h < 0 ? (g.preventDefault(), D.flushSync(() => {
307
+ v((w) => w + Math[S](h, m * E));
308
+ })) : /firefox/i.test(y()) && (l.scrollTop += h));
309
+ }
310
+ const l = (u == null ? void 0 : u.current) || n.floating;
311
+ if (s && l)
312
+ return l.addEventListener("wheel", r), requestAnimationFrame(() => {
313
+ a.current = l.scrollTop, f.current != null && (R.current = {
314
+ ...f.current
315
+ });
316
+ }), () => {
317
+ a.current = null, R.current = null, l.removeEventListener("wheel", r);
318
+ };
319
+ }, [o, s, n.floating, f, u, v]);
320
+ const p = c.useMemo(() => ({
321
+ onKeyDown() {
322
+ d.current = !0;
323
+ },
324
+ onWheel() {
325
+ d.current = !1;
326
+ },
327
+ onPointerMove() {
328
+ d.current = !1;
329
+ },
330
+ onScroll() {
331
+ const r = (u == null ? void 0 : u.current) || n.floating;
332
+ if (!(!f.current || !r || !d.current)) {
333
+ if (a.current !== null) {
334
+ const l = r.scrollTop - a.current;
335
+ (f.current.bottom < -0.5 && l < -1 || f.current.top < -0.5 && l > 1) && D.flushSync(() => v((g) => g + l));
336
+ }
337
+ requestAnimationFrame(() => {
338
+ a.current = r.scrollTop;
339
+ });
340
+ }
341
+ }
342
+ }), [n.floating, v, f, u]);
343
+ return c.useMemo(() => o ? {
344
+ floating: p
345
+ } : {}, [o, p]);
346
+ }
347
+ export {
348
+ Ae as autoUpdate,
349
+ Pe as computePosition,
350
+ F as detectOverflow,
351
+ Te as flip,
352
+ Ie as getOverflowAncestors,
353
+ Oe as hide,
354
+ Ce as inner,
355
+ Fe as limitShift,
356
+ Q as offset,
357
+ Ne as platform,
358
+ Me as shift,
359
+ De as size,
360
+ Re as useFloating,
361
+ ce as useFloatingParentNodeId,
362
+ fe as useFloatingRootContext,
363
+ se as useFloatingTree,
364
+ ee as useId,
365
+ xe as useInnerOffset,
366
+ Ee as useInteractions
367
+ };
@@ -0,0 +1,13 @@
1
+ function e() {
2
+ const r = navigator.userAgentData;
3
+ return r && Array.isArray(r.brands) ? r.brands.map((n) => {
4
+ let {
5
+ brand: a,
6
+ version: t
7
+ } = n;
8
+ return a + "/" + t;
9
+ }).join(" ") : navigator.userAgent;
10
+ }
11
+ export {
12
+ e as getUserAgent
13
+ };