@react-stately/searchfield
Advanced tools
Comparing version 3.5.1 to 3.5.2
@@ -1,2 +0,2 @@ | ||
var $lgnI8$reactstatelyutils = require("@react-stately/utils"); | ||
var $1fa0a0eef7fd0825$exports = require("./useSearchFieldState.main.js"); | ||
@@ -8,3 +8,3 @@ | ||
$parcel$export(module.exports, "useSearchFieldState", () => $1fa0a0eef7fd0825$export$3f8be18b0f41eaf2); | ||
$parcel$export(module.exports, "useSearchFieldState", () => $1fa0a0eef7fd0825$exports.useSearchFieldState); | ||
/* | ||
@@ -20,28 +20,5 @@ * Copyright 2020 Adobe. All rights reserved. | ||
* governing permissions and limitations under the License. | ||
*/ /* | ||
* Copyright 2020 Adobe. All rights reserved. | ||
* This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. You may obtain a copy | ||
* of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under | ||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
* OF ANY KIND, either express or implied. See the License for the specific language | ||
* governing permissions and limitations under the License. | ||
*/ | ||
function $1fa0a0eef7fd0825$export$3f8be18b0f41eaf2(props) { | ||
let [value, setValue] = (0, $lgnI8$reactstatelyutils.useControlledState)($1fa0a0eef7fd0825$var$toString(props.value), $1fa0a0eef7fd0825$var$toString(props.defaultValue) || "", props.onChange); | ||
return { | ||
value: value, | ||
setValue: setValue | ||
}; | ||
} | ||
function $1fa0a0eef7fd0825$var$toString(val) { | ||
if (val == null) return; | ||
return val.toString(); | ||
} | ||
//# sourceMappingURL=main.js.map |
@@ -1,2 +0,2 @@ | ||
import {useControlledState as $ihOoW$useControlledState} from "@react-stately/utils"; | ||
import {useSearchFieldState as $0b2218c4e3fe7d7e$export$3f8be18b0f41eaf2} from "./useSearchFieldState.module.js"; | ||
@@ -13,29 +13,6 @@ /* | ||
* governing permissions and limitations under the License. | ||
*/ /* | ||
* Copyright 2020 Adobe. All rights reserved. | ||
* This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. You may obtain a copy | ||
* of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under | ||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
* OF ANY KIND, either express or implied. See the License for the specific language | ||
* governing permissions and limitations under the License. | ||
*/ | ||
function $0b2218c4e3fe7d7e$export$3f8be18b0f41eaf2(props) { | ||
let [value, setValue] = (0, $ihOoW$useControlledState)($0b2218c4e3fe7d7e$var$toString(props.value), $0b2218c4e3fe7d7e$var$toString(props.defaultValue) || "", props.onChange); | ||
return { | ||
value: value, | ||
setValue: setValue | ||
}; | ||
} | ||
function $0b2218c4e3fe7d7e$var$toString(val) { | ||
if (val == null) return; | ||
return val.toString(); | ||
} | ||
export {$0b2218c4e3fe7d7e$export$3f8be18b0f41eaf2 as useSearchFieldState}; | ||
//# sourceMappingURL=module.js.map |
{ | ||
"name": "@react-stately/searchfield", | ||
"version": "3.5.1", | ||
"version": "3.5.2", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,4 +25,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-stately/utils": "^3.9.1", | ||
"@react-types/searchfield": "^3.5.3", | ||
"@react-stately/utils": "^3.10.0", | ||
"@react-types/searchfield": "^3.5.4", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -36,3 +36,3 @@ }, | ||
}, | ||
"gitHead": "de9f84a22583fc741c29b341d14cd35ef4cca161" | ||
"gitHead": "f645f29edc1322153fd60af4640cbcab1d992dbd" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28529
17
185