Files
formipay/node_modules/reakit/es/Form/FormLabel.js
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

29 lines
981 B
JavaScript

import { a as _objectSpread2 } from '../_rollupPluginBabelHelpers-1f0bf8c2.js';
import { createComponent } from 'reakit-system/createComponent';
import { createHook } from 'reakit-system/createHook';
import 'reakit-utils/shallowEqual';
import { useRole } from '../Role/Role.js';
import { d as FORM_LABEL_KEYS } from '../__keys-54ad6269.js';
import { g as getInputId } from '../getInputId-aa144169.js';
import { g as getLabelId } from '../getLabelId-3db05e97.js';
var unstable_useFormLabel = createHook({
name: "FormLabel",
compose: useRole,
keys: FORM_LABEL_KEYS,
useProps: function useProps(options, htmlProps) {
return _objectSpread2({
children: options.label,
id: getLabelId(options.name, options.baseId),
htmlFor: getInputId(options.name, options.baseId)
}, htmlProps);
}
});
var unstable_FormLabel = createComponent({
as: "label",
memo: true,
useHook: unstable_useFormLabel
});
export { unstable_FormLabel, unstable_useFormLabel };