@sonic-equipment/ui 0.0.32 → 0.0.33
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.
package/dist/index.d.ts
CHANGED
|
@@ -627,7 +627,9 @@ interface GlobalSearchProps {
|
|
|
627
627
|
declare function GlobalSearch({ children, searchClient }: GlobalSearchProps): react_jsx_runtime.JSX.Element;
|
|
628
628
|
|
|
629
629
|
declare const GlobalSearchDisclosureContext: React.Context<{
|
|
630
|
+
close: VoidFunction;
|
|
630
631
|
isOpen: boolean;
|
|
632
|
+
open: VoidFunction;
|
|
631
633
|
toggle: VoidFunction;
|
|
632
634
|
} | null>;
|
|
633
635
|
declare function GlobalSearchContainer({ children, }: {
|
|
@@ -769,7 +771,9 @@ declare function useAlgoliaSearch(): {
|
|
|
769
771
|
};
|
|
770
772
|
|
|
771
773
|
declare const useGlobalSearchDisclosure: () => {
|
|
774
|
+
close: VoidFunction;
|
|
772
775
|
isOpen: boolean;
|
|
776
|
+
open: VoidFunction;
|
|
773
777
|
toggle: VoidFunction;
|
|
774
778
|
};
|
|
775
779
|
|
package/dist/index.js
CHANGED
|
@@ -6769,8 +6769,8 @@ function useAlgoliaSearch() {
|
|
|
6769
6769
|
|
|
6770
6770
|
const GlobalSearchDisclosureContext = createContext(null);
|
|
6771
6771
|
function GlobalSearchContainer({ children, }) {
|
|
6772
|
-
const { isOpen, toggle } = useDisclosure(false);
|
|
6773
|
-
return (jsx(TransitionGroup, { children: jsxs(GlobalSearchDisclosureContext.Provider, { value: { isOpen, toggle }, children: [jsx(Transition, { in: isOpen, timeout: 300, children: state => jsx("div", { className: state, children: children }) }), jsx(OverlayBackground, { isOpen: isOpen, onClick: toggle })] }) }));
|
|
6772
|
+
const { close, isOpen, open, toggle } = useDisclosure(false);
|
|
6773
|
+
return (jsx(TransitionGroup, { children: jsxs(GlobalSearchDisclosureContext.Provider, { value: { close, isOpen, open, toggle }, children: [jsx(Transition, { in: isOpen, timeout: 300, children: state => jsx("div", { className: state, children: children }) }), jsx(OverlayBackground, { isOpen: isOpen, onClick: toggle })] }) }));
|
|
6774
6774
|
}
|
|
6775
6775
|
|
|
6776
6776
|
const useGlobalSearchDisclosure = () => {
|