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>
56 lines
2.2 KiB
TypeScript
56 lines
2.2 KiB
TypeScript
import * as React from "react";
|
|
import { RoleOptions, RoleHTMLProps } from "../Role/Role";
|
|
export declare type TabbableOptions = RoleOptions & {
|
|
/**
|
|
* Same as the HTML attribute.
|
|
*/
|
|
disabled?: boolean;
|
|
/**
|
|
* When an element is `disabled`, it may still be `focusable`. It works
|
|
* similarly to `readOnly` on form elements. In this case, only
|
|
* `aria-disabled` will be set.
|
|
*/
|
|
focusable?: boolean;
|
|
};
|
|
export declare type TabbableHTMLProps = RoleHTMLProps & {
|
|
disabled?: boolean;
|
|
};
|
|
export declare type TabbableProps = TabbableOptions & TabbableHTMLProps;
|
|
export declare const useTabbable: {
|
|
(options?: TabbableOptions | undefined, htmlProps?: TabbableHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): TabbableHTMLProps;
|
|
unstable_propsAreEqual: (prev: RoleOptions & {
|
|
/**
|
|
* Same as the HTML attribute.
|
|
*/
|
|
disabled?: boolean | undefined;
|
|
/**
|
|
* When an element is `disabled`, it may still be `focusable`. It works
|
|
* similarly to `readOnly` on form elements. In this case, only
|
|
* `aria-disabled` will be set.
|
|
*/
|
|
focusable?: boolean | undefined;
|
|
} & React.HTMLAttributes<any> & React.RefAttributes<any> & {
|
|
wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined;
|
|
} & {
|
|
disabled?: boolean | undefined;
|
|
}, next: RoleOptions & {
|
|
/**
|
|
* Same as the HTML attribute.
|
|
*/
|
|
disabled?: boolean | undefined;
|
|
/**
|
|
* When an element is `disabled`, it may still be `focusable`. It works
|
|
* similarly to `readOnly` on form elements. In this case, only
|
|
* `aria-disabled` will be set.
|
|
*/
|
|
focusable?: boolean | undefined;
|
|
} & React.HTMLAttributes<any> & React.RefAttributes<any> & {
|
|
wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined;
|
|
} & {
|
|
disabled?: boolean | undefined;
|
|
}) => boolean;
|
|
__keys: readonly any[];
|
|
__useOptions: (options: TabbableOptions, htmlProps: TabbableHTMLProps) => TabbableOptions;
|
|
};
|
|
export declare const Tabbable: import("reakit-system/ts/createComponent").Component<"div", TabbableOptions>;
|