Files
formipay/node_modules/reakit/ts/Clickable/Clickable.d.ts
dwindown e8fbfb14c1 fix: prevent asset conflicts between React and Grid.js versions
Add coexistence checks to all enqueue methods to prevent loading
both React and Grid.js assets simultaneously.

Changes:
- ReactAdmin.php: Only enqueue React assets when ?react=1
- Init.php: Skip Grid.js when React active on admin pages
- Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0
- Customer.php, Product.php, License.php: Add coexistence checks

Now the toggle between Classic and React versions works correctly.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-18 17:02:14 +07:00

60 lines
2.3 KiB
TypeScript

import * as React from "react";
import { TabbableOptions, TabbableHTMLProps } from "../Tabbable/Tabbable";
export declare type ClickableOptions = TabbableOptions & {
/**
* Whether or not trigger click on pressing <kbd>Enter</kbd>.
* @private
*/
unstable_clickOnEnter?: boolean;
/**
* Whether or not trigger click on pressing <kbd>Space</kbd>.
* @private
*/
unstable_clickOnSpace?: boolean;
};
export declare type ClickableHTMLProps = TabbableHTMLProps;
export declare type ClickableProps = ClickableOptions & ClickableHTMLProps;
export declare const useClickable: {
(options?: ClickableOptions | undefined, htmlProps?: TabbableHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): TabbableHTMLProps;
unstable_propsAreEqual: (prev: import("..").RoleOptions & {
disabled?: boolean | undefined;
focusable?: boolean | undefined;
} & {
/**
* Whether or not trigger click on pressing <kbd>Enter</kbd>.
* @private
*/
unstable_clickOnEnter?: boolean | undefined;
/**
* Whether or not trigger click on pressing <kbd>Space</kbd>.
* @private
*/
unstable_clickOnSpace?: boolean | undefined;
} & React.HTMLAttributes<any> & React.RefAttributes<any> & {
wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined;
} & {
disabled?: boolean | undefined;
}, next: import("..").RoleOptions & {
disabled?: boolean | undefined;
focusable?: boolean | undefined;
} & {
/**
* Whether or not trigger click on pressing <kbd>Enter</kbd>.
* @private
*/
unstable_clickOnEnter?: boolean | undefined;
/**
* Whether or not trigger click on pressing <kbd>Space</kbd>.
* @private
*/
unstable_clickOnSpace?: boolean | undefined;
} & React.HTMLAttributes<any> & React.RefAttributes<any> & {
wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined;
} & {
disabled?: boolean | undefined;
}) => boolean;
__keys: readonly any[];
__useOptions: (options: ClickableOptions, htmlProps: TabbableHTMLProps) => ClickableOptions;
};
export declare const Clickable: import("reakit-system/ts/createComponent").Component<"button", ClickableOptions>;