worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
1
node_modules/@mui/utils/setRef/index.d.ts
generated
vendored
Normal file
1
node_modules/@mui/utils/setRef/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
export { default } from "./setRef.js";
|
||||
13
node_modules/@mui/utils/setRef/index.js
generated
vendored
Normal file
13
node_modules/@mui/utils/setRef/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _setRef.default;
|
||||
}
|
||||
});
|
||||
var _setRef = _interopRequireDefault(require("./setRef"));
|
||||
15
node_modules/@mui/utils/setRef/setRef.d.ts
generated
vendored
Normal file
15
node_modules/@mui/utils/setRef/setRef.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import * as React from 'react';
|
||||
/**
|
||||
* TODO v5: consider making it private
|
||||
*
|
||||
* passes {value} to {ref}
|
||||
*
|
||||
* WARNING: Be sure to only call this inside a callback that is passed as a ref.
|
||||
* Otherwise, make sure to cleanup the previous {ref} if it changes. See
|
||||
* https://github.com/mui/material-ui/issues/13539
|
||||
*
|
||||
* Useful if you want to expose the ref of an inner component to the public API
|
||||
* while still using it inside the component.
|
||||
* @param ref A ref callback or ref object. If anything falsy, this is a no-op.
|
||||
*/
|
||||
export default function setRef<T>(ref: React.MutableRefObject<T | null> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
|
||||
26
node_modules/@mui/utils/setRef/setRef.js
generated
vendored
Normal file
26
node_modules/@mui/utils/setRef/setRef.js
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = setRef;
|
||||
/**
|
||||
* TODO v5: consider making it private
|
||||
*
|
||||
* passes {value} to {ref}
|
||||
*
|
||||
* WARNING: Be sure to only call this inside a callback that is passed as a ref.
|
||||
* Otherwise, make sure to cleanup the previous {ref} if it changes. See
|
||||
* https://github.com/mui/material-ui/issues/13539
|
||||
*
|
||||
* Useful if you want to expose the ref of an inner component to the public API
|
||||
* while still using it inside the component.
|
||||
* @param ref A ref callback or ref object. If anything falsy, this is a no-op.
|
||||
*/
|
||||
function setRef(ref, value) {
|
||||
if (typeof ref === 'function') {
|
||||
ref(value);
|
||||
} else if (ref) {
|
||||
ref.current = value;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue