@particle-academy/react-fancy 1.8.0 → 1.8.2

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.cts CHANGED
@@ -757,7 +757,7 @@ interface DropdownSeparatorProps {
757
757
  className?: string;
758
758
  }
759
759
 
760
- declare function DropdownTrigger({ children }: DropdownTriggerProps): ReactElement<Record<string, unknown>, string | react.JSXElementConstructor<any>>;
760
+ declare function DropdownTrigger({ children }: DropdownTriggerProps): react_jsx_runtime.JSX.Element;
761
761
  declare namespace DropdownTrigger {
762
762
  var displayName: string;
763
763
  }
package/dist/index.d.ts CHANGED
@@ -757,7 +757,7 @@ interface DropdownSeparatorProps {
757
757
  className?: string;
758
758
  }
759
759
 
760
- declare function DropdownTrigger({ children }: DropdownTriggerProps): ReactElement<Record<string, unknown>, string | react.JSXElementConstructor<any>>;
760
+ declare function DropdownTrigger({ children }: DropdownTriggerProps): react_jsx_runtime.JSX.Element;
761
761
  declare namespace DropdownTrigger {
762
762
  var displayName: string;
763
763
  }
package/dist/index.js CHANGED
@@ -5007,12 +5007,18 @@ function useDropdown() {
5007
5007
  }
5008
5008
  function DropdownTrigger({ children }) {
5009
5009
  const { setOpen, open, anchorRef } = useDropdown();
5010
- return cloneElement(children, {
5011
- ref: anchorRef,
5012
- onClick: () => setOpen(!open),
5013
- "aria-expanded": open,
5014
- "aria-haspopup": "menu"
5015
- });
5010
+ return /* @__PURE__ */ jsx(
5011
+ "span",
5012
+ {
5013
+ ref: anchorRef,
5014
+ "data-react-fancy-dropdown-trigger": "",
5015
+ className: "inline-flex",
5016
+ onClick: () => setOpen(!open),
5017
+ "aria-expanded": open,
5018
+ "aria-haspopup": "menu",
5019
+ children
5020
+ }
5021
+ );
5016
5022
  }
5017
5023
  DropdownTrigger.displayName = "DropdownTrigger";
5018
5024
  function useAnimation({