kku-ui 0.9.996 → 0.9.998

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.
@@ -0,0 +1,8 @@
1
+ import { useId as o } from "react";
2
+ function u(t) {
3
+ const e = o();
4
+ return t ? `${t}-${e}` : e;
5
+ }
6
+ export {
7
+ u
8
+ };
@@ -1 +1 @@
1
- export default function useStableId(prefix?: string): string | undefined;
1
+ export default function useStableId(prefix?: string): string;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import * as KDropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
2
+ import * as KDropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
3
  export interface KDropdownContextType {
4
4
  size?: 'sm' | 'md';
5
5
  }
@@ -26,7 +26,7 @@ export interface KDropdownMenuShortcutProps extends HTMLAttributes<HTMLSpanEleme
26
26
  }
27
27
  export type KDropdownMenuGroupProps = React.ComponentPropsWithRef<typeof KDropdownMenuPrimitive.Group>;
28
28
  declare const KDropdownMenu: ({ size, ...props }: KDropdownMenuProps) => import("react/jsx-runtime").JSX.Element;
29
- declare const KDropdownMenuTrigger: ({ className, ref, ...props }: KDropdownMenuTriggerProps) => import("react/jsx-runtime").JSX.Element;
29
+ declare const KDropdownMenuTrigger: ({ id, className, ref, ...props }: KDropdownMenuTriggerProps) => import("react/jsx-runtime").JSX.Element;
30
30
  declare const KDropdownMenuGroup: ({ className, ref, ...props }: KDropdownMenuGroupProps) => import("react/jsx-runtime").JSX.Element;
31
31
  declare const KDropdownMenuRadioGroup: ({ className, ref, ...props }: KDropdownMenuRadioGroupProps) => import("react/jsx-runtime").JSX.Element;
32
32
  declare const KDropdownMenuPortal: import('react').FC<KDropdownMenuPrimitive.DropdownMenuPortalProps>;
package/lib/es/hooks.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useEffect as i, useRef as c, useCallback as o } from "react";
2
- import { u as l } from "./chunks/useStableId-mCic8egK.js";
2
+ import { u as l } from "./chunks/useStableId-CvSXOC4i.js";
3
3
  function f(e, n, t) {
4
4
  i(() => {
5
5
  const r = (u) => {