@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
@@ -12,6 +12,7 @@ export * from './icon';
12
12
  export * from './mermaid';
13
13
  export * from './panel';
14
14
  export * from './property';
15
+ export * from './search';
15
16
  export * from './steps';
16
17
  export * from './tabs';
17
18
  export * from './tile';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ type SearchButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
3
+ showShortcut?: boolean;
4
+ shortcutText?: string;
5
+ };
6
+ declare const SearchButton: import('react').ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
7
+ showShortcut?: boolean;
8
+ shortcutText?: string;
9
+ } & import('react').RefAttributes<HTMLButtonElement>>;
10
+ export type { SearchButtonProps };
11
+ export { SearchButton };
12
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/search/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,oBAAoB,EAAc,MAAM,OAAO,CAAC;AAI9D,KAAK,iBAAiB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACjE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,YAAY;mBAJD,OAAO;mBACP,MAAM;qDAsDtB,CAAC;AAIF,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { jsxs as f, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as x } from "react";
3
+ import { cn as l } from "../../utils/cn.js";
4
+ import { useSearch as p } from "./provider.js";
5
+ import u from "../../node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/search.js";
6
+ const b = x(
7
+ ({
8
+ showShortcut: o = !0,
9
+ shortcutText: s = "⌘K",
10
+ className: n,
11
+ children: a,
12
+ onClick: e,
13
+ ...d
14
+ }, i) => {
15
+ const t = p(), m = (c) => {
16
+ t == null || t.open(), e == null || e(c);
17
+ };
18
+ return /* @__PURE__ */ f(
19
+ "button",
20
+ {
21
+ className: l(
22
+ "flex w-full items-center gap-2 px-3 py-2 text-left text-sm",
23
+ "bg-white dark:bg-stone-900",
24
+ "border border-stone-200 dark:border-stone-700",
25
+ "rounded-xl",
26
+ "hover:bg-stone-50 dark:hover:bg-stone-800",
27
+ "focus:outline-none focus:ring-2 focus:ring-stone-400 dark:focus:ring-stone-600",
28
+ "transition-colors",
29
+ n
30
+ ),
31
+ onClick: m,
32
+ ref: i,
33
+ type: "button",
34
+ ...d,
35
+ children: [
36
+ /* @__PURE__ */ r(
37
+ u,
38
+ {
39
+ className: "shrink-0 text-stone-400 dark:text-stone-500",
40
+ size: 16
41
+ }
42
+ ),
43
+ /* @__PURE__ */ r("span", { className: "flex-1 text-stone-500 dark:text-stone-400", children: a || "Search..." }),
44
+ o && /* @__PURE__ */ r("kbd", { className: "hidden items-center gap-0.5 rounded border border-stone-200 bg-stone-100 px-1.5 py-0.5 font-medium font-sans text-stone-500 text-xs sm:inline-flex dark:border-stone-700 dark:bg-stone-800 dark:text-stone-400", children: s })
45
+ ]
46
+ }
47
+ );
48
+ }
49
+ );
50
+ b.displayName = "SearchButton";
51
+ export {
52
+ b as SearchButton
53
+ };
@@ -0,0 +1,7 @@
1
+ export type { SearchButtonProps } from './button';
2
+ export { SearchButton } from './button';
3
+ export type { SearchContextValue, SearchProviderProps, } from './provider';
4
+ export { SearchProvider, useSearch } from './provider';
5
+ export type { SearchProps, SearchResult } from './search';
6
+ export { Search } from './search';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/search/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,YAAY,EACV,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { ReactNode } from 'react';
2
+ import { SearchProps } from './search';
3
+ type SearchContextValue = {
4
+ isOpen: boolean;
5
+ open: () => void;
6
+ close: () => void;
7
+ toggle: () => void;
8
+ };
9
+ type SearchProviderProps = {
10
+ children: ReactNode;
11
+ shortcutKey?: string;
12
+ requireModifier?: boolean;
13
+ searchProps: Omit<SearchProps, "isOpen" | "onClose">;
14
+ };
15
+ declare const SearchProvider: ({ children, shortcutKey, requireModifier, searchProps, }: SearchProviderProps) => import("react/jsx-runtime").JSX.Element;
16
+ declare const useSearch: () => SearchContextValue | null;
17
+ export type { SearchContextValue, SearchProviderProps };
18
+ export { SearchProvider, useSearch };
19
+ //# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/components/search/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AACf,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAEpD,KAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAIF,KAAK,mBAAmB,GAAG;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAC;CACtD,CAAC;AAEF,QAAA,MAAM,cAAc,GAAI,0DAKrB,mBAAmB,4CA2CrB,CAAC;AAEF,QAAA,MAAM,SAAS,iCAEd,CAAC;AAEF,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { jsxs as g, jsx as C } from "react/jsx-runtime";
2
+ import { useState as p, useCallback as a, useEffect as E, createContext as v, useContext as h } from "react";
3
+ import { Search as k } from "./search.js";
4
+ const u = v(null), b = ({
5
+ children: f,
6
+ shortcutKey: o = "k",
7
+ requireModifier: i = !0,
8
+ searchProps: m
9
+ }) => {
10
+ const [c, r] = p(!1), w = a(() => r(!0), []), l = a(() => r(!1), []), n = a(() => r((t) => !t), []);
11
+ return E(() => {
12
+ const t = (e) => {
13
+ const d = e.metaKey || e.ctrlKey;
14
+ if (i ? d && e.key.toLowerCase() === o.toLowerCase() : e.key.toLowerCase() === o.toLowerCase()) {
15
+ if (!d) {
16
+ const s = e.target;
17
+ if (s.tagName === "INPUT" || s.tagName === "TEXTAREA" || s.isContentEditable)
18
+ return;
19
+ }
20
+ e.preventDefault(), n();
21
+ }
22
+ };
23
+ return window.addEventListener("keydown", t), () => window.removeEventListener("keydown", t);
24
+ }, [o, i, n]), /* @__PURE__ */ g(u.Provider, { value: { isOpen: c, open: w, close: l, toggle: n }, children: [
25
+ f,
26
+ /* @__PURE__ */ C(k, { ...m, isOpen: c, onClose: l })
27
+ ] });
28
+ }, P = () => h(u);
29
+ export {
30
+ b as SearchProvider,
31
+ P as useSearch
32
+ };
@@ -0,0 +1,36 @@
1
+ import { ReactNode } from 'react';
2
+ type SearchResult = {
3
+ id: string;
4
+ header: string;
5
+ content: string;
6
+ link: string;
7
+ metadata?: {
8
+ breadcrumbs?: string[];
9
+ [key: string]: unknown;
10
+ };
11
+ };
12
+ type SearchProps = {
13
+ onSearch: (query: string) => void;
14
+ results: SearchResult[];
15
+ isOpen: boolean;
16
+ onClose: () => void;
17
+ isLoading?: boolean;
18
+ placeholder?: string;
19
+ recentSearches?: SearchResult[];
20
+ onSelectResult?: (result: SearchResult, query: string) => void;
21
+ className?: string;
22
+ emptyState?: ReactNode;
23
+ loadingState?: ReactNode;
24
+ position?: "top" | "center";
25
+ };
26
+ type SearchHitProps = {
27
+ isActive: boolean;
28
+ header: string;
29
+ description: string;
30
+ metadata?: SearchResult["metadata"];
31
+ };
32
+ declare const SearchHit: ({ isActive, header, description, metadata, }: SearchHitProps) => import("react/jsx-runtime").JSX.Element;
33
+ declare const Search: import('react').ForwardRefExoticComponent<SearchProps & import('react').RefAttributes<HTMLInputElement>>;
34
+ export type { SearchResult, SearchProps };
35
+ export { Search, SearchHit };
36
+ //# sourceMappingURL=search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/components/search/search.tsx"],"names":[],"mappings":"AAWA,OAAO,EAGL,KAAK,SAAS,EAOf,MAAM,OAAO,CAAC;AAGf,KAAK,YAAY,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE;QACT,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;CACH,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC7B,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;CACrC,CAAC;AAEF,QAAA,MAAM,SAAS,GAAI,8CAKhB,cAAc,4CA6BhB,CAAC;AAEF,QAAA,MAAM,MAAM,0GAyRX,CAAC;AAIF,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,253 @@
1
+ import { jsxs as n, jsx as t, Fragment as g } from "react/jsx-runtime";
2
+ import { forwardRef as q, useState as N, useRef as G, useImperativeHandle as M, useEffect as O, useCallback as x, useMemo as b, Fragment as f } from "react";
3
+ import { cn as d } from "../../utils/cn.js";
4
+ import { Combobox as P, ComboboxInput as X, ComboboxOptions as B, ComboboxOption as T } from "../../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";
5
+ import J from "../../node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/search.js";
6
+ import U from "../../node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/loader-circle.js";
7
+ import V from "../../node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/search-x.js";
8
+ import { Transition as W, TransitionChild as C } from "../../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";
9
+ import { Dialog as Y, DialogPanel as Z } from "../../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";
10
+ const F = ({
11
+ isActive: m,
12
+ header: r,
13
+ description: c,
14
+ metadata: o
15
+ }) => /* @__PURE__ */ n(
16
+ "div",
17
+ {
18
+ className: d(
19
+ "flex w-full cursor-pointer flex-col gap-1 rounded-md px-2.5 py-2 transition-colors",
20
+ m && "bg-stone-100 dark:bg-white/5"
21
+ ),
22
+ children: [
23
+ (o == null ? void 0 : o.breadcrumbs) && o.breadcrumbs.length > 0 && /* @__PURE__ */ t("div", { className: "flex items-center gap-1 truncate text-stone-500 text-xs dark:text-stone-400", children: o.breadcrumbs.map((s, h) => (
24
+ // biome-ignore lint/suspicious/noArrayIndexKey: Breadcrumbs are positional and may contain duplicates
25
+ /* @__PURE__ */ n(f, { children: [
26
+ h > 0 && /* @__PURE__ */ t("span", { className: "text-stone-400", children: " > " }),
27
+ /* @__PURE__ */ t("span", { className: "truncate", children: s })
28
+ ] }, h)
29
+ )) }),
30
+ /* @__PURE__ */ t("div", { className: "truncate font-medium text-sm text-stone-900 dark:text-white", children: r }),
31
+ c && /* @__PURE__ */ t("div", { className: "line-clamp-2 text-sm text-stone-600 dark:text-stone-400", children: c })
32
+ ]
33
+ }
34
+ ), _ = q(
35
+ ({
36
+ onSearch: m,
37
+ results: r,
38
+ isOpen: c,
39
+ onClose: o,
40
+ isLoading: s = !1,
41
+ placeholder: h = "Search...",
42
+ recentSearches: l = [],
43
+ onSelectResult: p,
44
+ className: j,
45
+ emptyState: z,
46
+ loadingState: S,
47
+ position: D = "top"
48
+ }, E) => {
49
+ const [a, y] = N(""), [v, k] = N(!1), w = G(null);
50
+ M(E, () => w.current), O(() => {
51
+ c || (y(""), k(!1));
52
+ }, [c]);
53
+ const K = x(
54
+ (e) => {
55
+ y(e), m(e);
56
+ },
57
+ [m]
58
+ ), u = x(
59
+ (e) => {
60
+ e && (p == null || p(e, a), o());
61
+ },
62
+ [p, a, o]
63
+ ), H = x(
64
+ (e) => {
65
+ if (e.key === "Escape") {
66
+ e.preventDefault(), o();
67
+ return;
68
+ }
69
+ if (e.key === "Tab" && (r.length > 0 || l.length > 0) && (e.preventDefault(), e.currentTarget.setSelectionRange(
70
+ e.currentTarget.value.length,
71
+ e.currentTarget.value.length
72
+ )), e.key === "Enter" && (e.metaKey || e.ctrlKey) && a && r.length > 0 && !s) {
73
+ const i = r[0];
74
+ i && u(i);
75
+ }
76
+ },
77
+ [r, l, u, o, a, s]
78
+ ), I = x((e) => {
79
+ k(e.currentTarget.scrollTop > 0);
80
+ }, []), R = b(
81
+ () => !a && l.length > 0 && r.length === 0,
82
+ [a, l.length, r.length]
83
+ ), A = b(
84
+ () => a && r.length > 0 && !s,
85
+ [a, r.length, s]
86
+ ), Q = b(
87
+ () => a && !s && r.length === 0,
88
+ [a, s, r.length]
89
+ ), $ = /* @__PURE__ */ n(
90
+ P,
91
+ {
92
+ onChange: (e) => {
93
+ e && u(e);
94
+ },
95
+ value: null,
96
+ children: [
97
+ /* @__PURE__ */ n(
98
+ "div",
99
+ {
100
+ className: d(
101
+ "relative z-10 h-14 border-transparent border-b p-1.5 transition",
102
+ v && "border-stone-200 dark:border-white/10"
103
+ ),
104
+ children: [
105
+ /* @__PURE__ */ t(
106
+ X,
107
+ {
108
+ autoComplete: "off",
109
+ autoFocus: !0,
110
+ className: d(
111
+ "peer h-full w-full rounded-md bg-white pr-14 pl-11 text-stone-950 tracking-tight shadow-sm outline-none ring ring-black/5 transition placeholder:text-stone-400 focus:ring-black/90 dark:bg-stone-900 dark:text-white dark:focus:ring-white placeholder:dark:text-white/50",
112
+ "[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none",
113
+ !v && a && "shadow-lg"
114
+ ),
115
+ onChange: (e) => K(e.target.value),
116
+ onKeyDown: H,
117
+ placeholder: h,
118
+ ref: w,
119
+ type: "search",
120
+ value: a
121
+ }
122
+ ),
123
+ /* @__PURE__ */ t(
124
+ J,
125
+ {
126
+ className: "absolute top-1/2 left-5 -translate-y-1/2 text-stone-950 opacity-50 peer-focus:opacity-100 dark:text-white",
127
+ size: 18
128
+ }
129
+ ),
130
+ a && /* @__PURE__ */ t("div", { className: "absolute top-1/2 right-6 flex -translate-y-1/2 items-center justify-center gap-1 rounded-md bg-stone-950/5 px-1.5 py-1.5 font-medium text-xs text-zinc-950/70 leading-[9px] dark:bg-white/5 dark:text-white/70", children: "ESC" })
131
+ ]
132
+ }
133
+ ),
134
+ /* @__PURE__ */ n(
135
+ B,
136
+ {
137
+ className: "mx-1.5 max-h-[calc(100vh-10rem)] overflow-y-auto",
138
+ onScroll: I,
139
+ static: !0,
140
+ children: [
141
+ R && /* @__PURE__ */ n(g, { children: [
142
+ /* @__PURE__ */ t("div", { className: "flex items-center justify-between px-2.5 py-2", children: /* @__PURE__ */ t("span", { className: "truncate text-sm text-stone-500", children: "Recent searches" }) }),
143
+ l.map((e) => /* @__PURE__ */ t(
144
+ T,
145
+ {
146
+ className: "last:mb-1.5",
147
+ value: e,
148
+ children: ({ focus: i }) => /* @__PURE__ */ t(
149
+ F,
150
+ {
151
+ description: e.content,
152
+ header: e.header,
153
+ isActive: i,
154
+ metadata: e.metadata
155
+ }
156
+ )
157
+ },
158
+ e.id
159
+ ))
160
+ ] }),
161
+ A && r.map((e) => /* @__PURE__ */ t(
162
+ T,
163
+ {
164
+ className: "last:mb-1.5",
165
+ value: e,
166
+ children: ({ focus: i }) => /* @__PURE__ */ t(
167
+ F,
168
+ {
169
+ description: e.content,
170
+ header: e.header,
171
+ isActive: i,
172
+ metadata: e.metadata
173
+ }
174
+ )
175
+ },
176
+ e.id
177
+ )),
178
+ s && a && /* @__PURE__ */ t("div", { className: "flex flex-col items-center justify-center gap-3 px-2.5 py-12", children: S || /* @__PURE__ */ n(g, { children: [
179
+ /* @__PURE__ */ t(U, { className: "size-6 animate-spin text-stone-400 dark:text-stone-500" }),
180
+ /* @__PURE__ */ n("div", { className: "text-center", children: [
181
+ /* @__PURE__ */ t("p", { className: "font-medium text-sm text-stone-700 dark:text-stone-300", children: "Searching..." }),
182
+ /* @__PURE__ */ n("p", { className: "mt-1 text-stone-500 text-xs dark:text-stone-400", children: [
183
+ 'Finding results for "',
184
+ a,
185
+ '"'
186
+ ] })
187
+ ] })
188
+ ] }) }),
189
+ Q && /* @__PURE__ */ t("div", { className: "flex flex-col items-center justify-center gap-3 px-2.5 py-12", children: z || /* @__PURE__ */ n(g, { children: [
190
+ /* @__PURE__ */ t(V, { className: "size-6 text-stone-300 dark:text-stone-600" }),
191
+ /* @__PURE__ */ n("div", { className: "text-center", children: [
192
+ /* @__PURE__ */ t("p", { className: "font-medium text-sm text-stone-700 dark:text-stone-300", children: "No results found" }),
193
+ /* @__PURE__ */ t("p", { className: "mt-1 text-stone-500 text-xs dark:text-stone-400", children: "Try searching with different keywords" })
194
+ ] })
195
+ ] }) })
196
+ ]
197
+ }
198
+ )
199
+ ]
200
+ }
201
+ );
202
+ return /* @__PURE__ */ t(W, { appear: !0, as: f, show: c, children: /* @__PURE__ */ n(
203
+ Y,
204
+ {
205
+ as: "div",
206
+ className: d("relative z-50", j),
207
+ onClose: o,
208
+ children: [
209
+ /* @__PURE__ */ t(
210
+ C,
211
+ {
212
+ as: f,
213
+ enter: "ease-out duration-100",
214
+ enterFrom: "opacity-0",
215
+ enterTo: "opacity-100",
216
+ leave: "ease-in duration-50",
217
+ leaveFrom: "opacity-100",
218
+ leaveTo: "opacity-0",
219
+ children: /* @__PURE__ */ t("div", { className: "fixed inset-0 bg-black/20 backdrop-blur-sm transition-opacity dark:bg-black/40" })
220
+ }
221
+ ),
222
+ /* @__PURE__ */ t(
223
+ "div",
224
+ {
225
+ className: d(
226
+ "fixed inset-0 z-10 flex justify-center p-4",
227
+ D === "top" ? "items-start pt-16" : "items-center"
228
+ ),
229
+ children: /* @__PURE__ */ t(
230
+ C,
231
+ {
232
+ as: f,
233
+ enter: "ease-out duration-100",
234
+ enterFrom: "opacity-0 scale-95",
235
+ enterTo: "opacity-100 scale-100",
236
+ leave: "ease-in duration-50",
237
+ leaveFrom: "opacity-100 scale-100",
238
+ leaveTo: "opacity-0 scale-95",
239
+ children: /* @__PURE__ */ t(Z, { className: "flex w-full max-w-[640px] flex-col overflow-hidden rounded-xl border border-stone-200 bg-white shadow-2xl dark:border-white/10 dark:bg-stone-900", children: $ })
240
+ }
241
+ )
242
+ }
243
+ )
244
+ ]
245
+ }
246
+ ) });
247
+ }
248
+ );
249
+ _.displayName = "Search";
250
+ export {
251
+ _ as Search,
252
+ F as SearchHit
253
+ };
package/dist/index.js CHANGED
@@ -2,62 +2,69 @@ import { cn as e } from "./utils/cn.js";
2
2
  import { getInitialOpenState as p, updateAndCopyUrl as m } from "./components/accordion/accordion-url-utils.js";
3
3
  import { Accordion as x } from "./components/accordion/index.js";
4
4
  import { Badge as n } from "./components/badge/badge.js";
5
- import { Callout as d, Check as C, Danger as i, Info as T, Note as c, Tip as s, Warning as u } from "./components/callout/callout.js";
6
- import { Card as S } from "./components/card/card.js";
7
- import { BaseCodeBlock as B } from "./components/code-block/base-code-block.js";
8
- import { CodeBlock as P } from "./components/code-block/code-block.js";
9
- import { CodeGroup as Z } from "./components/code-group/code-group.js";
10
- import { Color as y } from "./components/color/color.js";
11
- import { Columns as U } from "./components/columns/columns.js";
12
- import { Expandable as h } from "./components/expandable/expandable.js";
13
- import { Frame as D } from "./components/frame/frame.js";
14
- import { Icon as G } from "./components/icon/icon.js";
15
- import { Mermaid as M } from "./components/mermaid/mermaid.js";
16
- import { usePanZoom as O } from "./components/mermaid/use-pan-zoom.js";
17
- import { ZoomControls as W } from "./components/mermaid/zoom-controls.js";
18
- import { Panel as q } from "./components/panel/panel.js";
5
+ import { Callout as d, Check as c, Danger as i, Info as C, Note as S, Tip as T, Warning as s } from "./components/callout/callout.js";
6
+ import { Card as h } from "./components/card/card.js";
7
+ import { BaseCodeBlock as I } from "./components/code-block/base-code-block.js";
8
+ import { CodeBlock as g } from "./components/code-block/code-block.js";
9
+ import { CodeGroup as k } from "./components/code-group/code-group.js";
10
+ import { Color as b } from "./components/color/color.js";
11
+ import { Columns as A } from "./components/columns/columns.js";
12
+ import { Expandable as _ } from "./components/expandable/expandable.js";
13
+ import { Frame as w } from "./components/frame/frame.js";
14
+ import { Icon as F } from "./components/icon/icon.js";
15
+ import { Mermaid as L } from "./components/mermaid/mermaid.js";
16
+ import { usePanZoom as N } from "./components/mermaid/use-pan-zoom.js";
17
+ import { ZoomControls as V } from "./components/mermaid/zoom-controls.js";
18
+ import { Panel as j } from "./components/panel/panel.js";
19
19
  import { Property as z } from "./components/property/property.js";
20
- import { STEP_TITLE_SIZES as J } from "./components/steps/constants.js";
21
- import { Steps as Q } from "./components/steps/steps.js";
22
- import { Tabs as X } from "./components/tabs/tabs.js";
23
- import { Tile as $ } from "./components/tile/tile.js";
24
- import { Tooltip as ro } from "./components/tooltip/tooltip.js";
25
- import { Tree as to } from "./components/tree/index.js";
26
- import { Update as mo } from "./components/update/update.js";
27
- import { View as xo } from "./components/view/view.js";
20
+ import { SearchButton as J } from "./components/search/button.js";
21
+ import { SearchProvider as Q, useSearch as R } from "./components/search/provider.js";
22
+ import { Search as Y } from "./components/search/search.js";
23
+ import { STEP_TITLE_SIZES as oo } from "./components/steps/constants.js";
24
+ import { Steps as eo } from "./components/steps/steps.js";
25
+ import { Tabs as po } from "./components/tabs/tabs.js";
26
+ import { Tile as fo } from "./components/tile/tile.js";
27
+ import { Tooltip as ao } from "./components/tooltip/tooltip.js";
28
+ import { Tree as lo } from "./components/tree/index.js";
29
+ import { Update as io } from "./components/update/update.js";
30
+ import { View as So } from "./components/view/view.js";
28
31
  export {
29
32
  x as Accordion,
30
33
  n as Badge,
31
- B as BaseCodeBlock,
34
+ I as BaseCodeBlock,
32
35
  d as Callout,
33
- S as Card,
34
- C as Check,
35
- P as CodeBlock,
36
- Z as CodeGroup,
37
- y as Color,
38
- U as Columns,
36
+ h as Card,
37
+ c as Check,
38
+ g as CodeBlock,
39
+ k as CodeGroup,
40
+ b as Color,
41
+ A as Columns,
39
42
  i as Danger,
40
- h as Expandable,
41
- D as Frame,
42
- G as Icon,
43
- T as Info,
44
- M as Mermaid,
45
- c as Note,
46
- q as Panel,
43
+ _ as Expandable,
44
+ w as Frame,
45
+ F as Icon,
46
+ C as Info,
47
+ L as Mermaid,
48
+ S as Note,
49
+ j as Panel,
47
50
  z as Property,
48
- J as STEP_TITLE_SIZES,
49
- Q as Steps,
50
- X as Tabs,
51
- $ as Tile,
52
- s as Tip,
53
- ro as Tooltip,
54
- to as Tree,
55
- mo as Update,
56
- xo as View,
57
- u as Warning,
58
- W as ZoomControls,
51
+ oo as STEP_TITLE_SIZES,
52
+ Y as Search,
53
+ J as SearchButton,
54
+ Q as SearchProvider,
55
+ eo as Steps,
56
+ po as Tabs,
57
+ fo as Tile,
58
+ T as Tip,
59
+ ao as Tooltip,
60
+ lo as Tree,
61
+ io as Update,
62
+ So as View,
63
+ s as Warning,
64
+ V as ZoomControls,
59
65
  e as cn,
60
66
  p as getInitialOpenState,
61
67
  m as updateAndCopyUrl,
62
- O as usePanZoom
68
+ N as usePanZoom,
69
+ R as useSearch
63
70
  };
@@ -1,4 +1,4 @@
1
- import { evaluate as R, getSide as E, getSideAxis as C, getOppositePlacement as Q, getExpandedPlacements as U, getOppositeAxisPlacements as Z, getAlignmentSides as ee, getAlignment as $, min as z, max as L, getPaddingObject as te, rectToClientRect as X, sides as ne, getAlignmentAxis as ie, getAxisLength as se, clamp as _, getOppositeAxis as J } from "../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";
1
+ import { evaluate as R, getSide as E, getSideAxis as C, getOppositePlacement as Q, getExpandedPlacements as U, getOppositeAxisPlacements as Z, getAlignmentSides as ee, getAlignment as $, min as z, max as L, getPaddingObject as te, rectToClientRect as X, clamp as _, sides as ne, getOppositeAxis as J, getAlignmentAxis as ie, getAxisLength as se } from "../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";
2
2
  function I(t, e, d) {
3
3
  let {
4
4
  reference: s,