@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/README.md CHANGED
@@ -125,7 +125,7 @@ npx vite build # Build demo app (verifies imports work)
125
125
  | Breadcrumbs | Navigation breadcrumb trail with separator | [docs](docs/Breadcrumbs.md) |
126
126
  | Navbar | Responsive navigation bar with hamburger collapse | [docs](docs/Navbar.md) |
127
127
  | Pagination | Page navigation with prev/next and ellipsis | [docs](docs/Pagination.md) |
128
- | TreeNav | Hierarchical file/folder tree with expand/collapse, selection, and extension-based icons | |
128
+ | TreeNav | Hierarchical file/folder tree with expand/collapse, selection, and extension-based icons | [docs](docs/TreeNav.md) |
129
129
 
130
130
  ### Rich Content
131
131
 
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({