first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
define(["require", "exports", "./warn", "../controlled"], function (require, exports, warn_1, controlled_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resetControlledWarnings = resetControlledWarnings;
exports.warnControlledUsage = warnControlledUsage;
var warningsMap;
/** Reset controlled usage warnings for testing purposes. */
function resetControlledWarnings() {
}
/**
* Check for and warn on the following error conditions with a form component:
* - A value prop is provided (indicated it's being used as controlled) without a change handler,
* and the component is not read-only
* - Both the value and defaultValue props are provided
* - The component is attempting to switch between controlled and uncontrolled
*
* The messages mimic the warnings React gives for these error conditions on input elements.
* The warning will only be displayed once per component ID.
*/
function warnControlledUsage(params) {
}
});
//# sourceMappingURL=warnControlledUsage.js.map