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>
28 lines
2.1 KiB
TypeScript
28 lines
2.1 KiB
TypeScript
/// <reference types="react" />
|
|
import { CompositeOptions, CompositeHTMLProps } from "../Composite/Composite";
|
|
import { TabStateReturn } from "./TabState";
|
|
export declare type TabListOptions = CompositeOptions & Pick<Partial<TabStateReturn>, "orientation">;
|
|
export declare type TabListHTMLProps = CompositeHTMLProps;
|
|
export declare type TabListProps = TabListOptions & TabListHTMLProps;
|
|
export declare const useTabList: {
|
|
(options?: TabListOptions | undefined, htmlProps?: import("..").TabbableHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): import("..").TabbableHTMLProps;
|
|
unstable_propsAreEqual: (prev: import("..").RoleOptions & {
|
|
disabled?: boolean | undefined;
|
|
focusable?: boolean | undefined;
|
|
} & Pick<Partial<import("..").CompositeStateReturn>, "wrap" | "orientation" | "baseId" | "currentId" | "unstable_virtual" | "groups" | "unstable_moves"> & Pick<import("..").CompositeStateReturn, "move" | "first" | "last" | "items" | "setCurrentId"> & Pick<Partial<TabStateReturn>, "orientation"> & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & {
|
|
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
} & {
|
|
disabled?: boolean | undefined;
|
|
}, next: import("..").RoleOptions & {
|
|
disabled?: boolean | undefined;
|
|
focusable?: boolean | undefined;
|
|
} & Pick<Partial<import("..").CompositeStateReturn>, "wrap" | "orientation" | "baseId" | "currentId" | "unstable_virtual" | "groups" | "unstable_moves"> & Pick<import("..").CompositeStateReturn, "move" | "first" | "last" | "items" | "setCurrentId"> & Pick<Partial<TabStateReturn>, "orientation"> & import("react").HTMLAttributes<any> & import("react").RefAttributes<any> & {
|
|
wrapElement?: ((element: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
} & {
|
|
disabled?: boolean | undefined;
|
|
}) => boolean;
|
|
__keys: readonly any[];
|
|
__useOptions: (options: TabListOptions, htmlProps: import("..").TabbableHTMLProps) => TabListOptions;
|
|
};
|
|
export declare const TabList: import("reakit-system/ts/createComponent").Component<"div", TabListOptions>;
|