@particle-academy/react-fancy 1.8.1 → 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.cjs CHANGED
@@ -5317,12 +5317,18 @@ function useDropdown() {
5317
5317
  }
5318
5318
  function DropdownTrigger({ children }) {
5319
5319
  const { setOpen, open, anchorRef } = useDropdown();
5320
- return react.cloneElement(children, {
5321
- ref: anchorRef,
5322
- onClick: () => setOpen(!open),
5323
- "aria-expanded": open,
5324
- "aria-haspopup": "menu"
5325
- });
5320
+ return /* @__PURE__ */ jsxRuntime.jsx(
5321
+ "span",
5322
+ {
5323
+ ref: anchorRef,
5324
+ "data-react-fancy-dropdown-trigger": "",
5325
+ className: "inline-flex",
5326
+ onClick: () => setOpen(!open),
5327
+ "aria-expanded": open,
5328
+ "aria-haspopup": "menu",
5329
+ children
5330
+ }
5331
+ );
5326
5332
  }
5327
5333
  DropdownTrigger.displayName = "DropdownTrigger";
5328
5334
  function useAnimation({