@versini/ui-dropdown 1.3.7 → 1.4.1

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
@@ -18,7 +18,7 @@ declare type DropdownMenuGroupLabelProps = {
18
18
  } & React.HTMLAttributes<HTMLDivElement>;
19
19
 
20
20
  export declare const DropdownMenuItem: {
21
- ({ label, disabled, icon, raw, children, ignoreClick, selected, onSelect, onClick, onFocus, ...props }: DropdownMenuItemProps): JSX.Element;
21
+ ({ label, disabled, icon, raw, children, ignoreClick, selected, onSelect, onClick, onFocus, onMouseEnter, ...props }: DropdownMenuItemProps): JSX.Element;
22
22
  displayName: string;
23
23
  };
24
24
 
@@ -67,6 +67,10 @@ declare type DropdownMenuItemProps = {
67
67
  * Optional focus handler.
68
68
  */
69
69
  onFocus?: (event: React.FocusEvent<HTMLDivElement>) => void;
70
+ /**
71
+ * Optional mouse enter handler.
72
+ */
73
+ onMouseEnter?: (event: React.MouseEvent<HTMLDivElement>) => void;
70
74
  };
71
75
 
72
76
  declare type DropdownMenuProps = {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-dropdown v1.3.7
2
+ @versini/ui-dropdown v1.4.1
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -205,7 +205,7 @@ DropdownMenuGroupLabel.displayName = "DropdownMenuGroupLabel";
205
205
 
206
206
 
207
207
  const ITEM_CLASS = clsx("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1", "rounded-md border border-transparent", "text-left text-base select-none cursor-pointer", "outline-hidden focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline", "disabled:cursor-not-allowed disabled:text-copy-medium", "data-highlighted:bg-surface-lighter data-highlighted:border-border-medium data-highlighted:underline", "data-disabled:cursor-not-allowed data-disabled:text-copy-medium");
208
- const DropdownMenuItem = ({ label, disabled, icon, raw = false, children, ignoreClick = false, selected, onSelect, onClick, onFocus, ...props })=>{
208
+ const DropdownMenuItem = ({ label, disabled, icon, raw = false, children, ignoreClick = false, selected, onSelect, onClick, onFocus, onMouseEnter, ...props })=>{
209
209
  let buttonSpanClass = "";
210
210
  if (raw && children) {
211
211
  return /*#__PURE__*/ jsx(Item, {
@@ -217,6 +217,7 @@ const DropdownMenuItem = ({ label, disabled, icon, raw = false, children, ignore
217
217
  onSelect?.(event);
218
218
  /* v8 ignore start - optional onClick may not be provided */ onClick?.(event);
219
219
  /* v8 ignore stop */ },
220
+ onMouseEnter: onMouseEnter,
220
221
  ...props,
221
222
  children: children
222
223
  });
@@ -240,6 +241,7 @@ const DropdownMenuItem = ({ label, disabled, icon, raw = false, children, ignore
240
241
  disabled: disabled,
241
242
  onSelect: handleSelect,
242
243
  onFocus: onFocus,
244
+ onMouseEnter: onMouseEnter,
243
245
  ...props,
244
246
  children: [
245
247
  selected === true && /*#__PURE__*/ jsx(IconSelected, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-dropdown",
3
- "version": "1.3.7",
3
+ "version": "1.4.1",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -43,12 +43,12 @@
43
43
  "dependencies": {
44
44
  "@radix-ui/react-dropdown-menu": "2.1.16",
45
45
  "@tailwindcss/typography": "0.5.19",
46
- "@versini/ui-icons": "4.17.0",
46
+ "@versini/ui-icons": "4.18.0",
47
47
  "clsx": "2.1.1",
48
48
  "tailwindcss": "4.1.18"
49
49
  },
50
50
  "sideEffects": [
51
51
  "**/*.css"
52
52
  ],
53
- "gitHead": "95f2bef12f132245b2f2a09fc23d6500467a7251"
53
+ "gitHead": "8548889f2df4b4bb0e1335a78cc9b320101b5e3b"
54
54
  }