@shlinkio/shlink-frontend-kit 1.0.0 → 1.1.0
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 +7 -2
- package/dist/index.js +802 -819
- package/dist/tailwind.preset.css +0 -2
- package/package.json +20 -20
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { ReferenceType as ReferenceType_2 } from '@floating-ui/react';
|
|
|
18
18
|
import { RefObject } from 'react';
|
|
19
19
|
import { SetStateAction } from 'react';
|
|
20
20
|
|
|
21
|
-
declare type AnchorProps = Omit<LinkProps, 'role' | 'aria-disabled' | 'tabIndex'>;
|
|
21
|
+
declare type AnchorProps = Omit<LinkProps, 'role' | 'aria-disabled' | 'tabIndex' | 'type'>;
|
|
22
22
|
|
|
23
23
|
export declare type ArrowKeyNavigationOptions = {
|
|
24
24
|
/** Query selector for focusable elements that need to be included in the loop */
|
|
@@ -93,7 +93,7 @@ export declare type ButtonProps = PropsWithChildren<{
|
|
|
93
93
|
solid?: boolean;
|
|
94
94
|
} & (RegularButtonProps | LinkButtonProps_2)>;
|
|
95
95
|
|
|
96
|
-
declare type ButtonProps_2 = Omit<HTMLProps<HTMLButtonElement>, 'role' | 'disabled' | 'aria-disabled' | 'tabIndex'>;
|
|
96
|
+
declare type ButtonProps_2 = Omit<HTMLProps<HTMLButtonElement>, 'role' | 'disabled' | 'aria-disabled' | 'tabIndex' | 'type'>;
|
|
97
97
|
|
|
98
98
|
export declare type Callback = () => unknown;
|
|
99
99
|
|
|
@@ -378,6 +378,11 @@ export declare type MenuProps = Omit<CardProps, 'role'> & {
|
|
|
378
378
|
* Defaults to false.
|
|
379
379
|
*/
|
|
380
380
|
focusFirstItem?: boolean;
|
|
381
|
+
/**
|
|
382
|
+
* Optional callback invoked when a Menu.Item is clicked.
|
|
383
|
+
* If the Menu.Item has its own onClick, this callback will be called afterwards.
|
|
384
|
+
*/
|
|
385
|
+
onItemClick?: () => void;
|
|
381
386
|
};
|
|
382
387
|
|
|
383
388
|
/**
|