@react-spectrum/searchfield 3.8.26 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/import.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import {SearchField as $a6a4ace9217ce6df$export$b94867ecbd698f21} from "./SearchField.mjs";
1
+ import {SearchField as $1d843ee4f682be60$re_export$SearchField} from "@adobe/react-spectrum/SearchField";
2
2
 
3
3
  /*
4
4
  * Copyright 2020 Adobe. All rights reserved.
@@ -14,5 +14,5 @@ import {SearchField as $a6a4ace9217ce6df$export$b94867ecbd698f21} from "./Search
14
14
 
15
15
 
16
16
 
17
- export {$a6a4ace9217ce6df$export$b94867ecbd698f21 as SearchField};
17
+ export {$1d843ee4f682be60$re_export$SearchField as SearchField};
18
18
  //# sourceMappingURL=module.js.map
package/dist/main.js CHANGED
@@ -1,11 +1,11 @@
1
- var $111fe330b4c1f3ac$exports = require("./SearchField.main.js");
1
+ var $dXiyv$adobereactspectrumSearchField = require("@adobe/react-spectrum/SearchField");
2
2
 
3
3
 
4
4
  function $parcel$export(e, n, v, s) {
5
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
6
  }
7
7
 
8
- $parcel$export(module.exports, "SearchField", () => $111fe330b4c1f3ac$exports.SearchField);
8
+ $parcel$export(module.exports, "SearchField", function () { return $dXiyv$adobereactspectrumSearchField.SearchField; });
9
9
  /*
10
10
  * Copyright 2020 Adobe. All rights reserved.
11
11
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/searchfield/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {SearchField} from './SearchField';\nexport type {SpectrumSearchFieldProps} from '@react-types/searchfield';\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/searchfield/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {SearchField} from '@adobe/react-spectrum/SearchField';\n\nexport type {SpectrumSearchFieldProps} from '@adobe/react-spectrum/SearchField';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,4 +1,4 @@
1
- import {SearchField as $a6a4ace9217ce6df$export$b94867ecbd698f21} from "./SearchField.module.js";
1
+ import {SearchField as $1d843ee4f682be60$re_export$SearchField} from "@adobe/react-spectrum/SearchField";
2
2
 
3
3
  /*
4
4
  * Copyright 2020 Adobe. All rights reserved.
@@ -14,5 +14,5 @@ import {SearchField as $a6a4ace9217ce6df$export$b94867ecbd698f21} from "./Search
14
14
 
15
15
 
16
16
 
17
- export {$a6a4ace9217ce6df$export$b94867ecbd698f21 as SearchField};
17
+ export {$1d843ee4f682be60$re_export$SearchField as SearchField};
18
18
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"mappings":";;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/searchfield/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {SearchField} from './SearchField';\nexport type {SpectrumSearchFieldProps} from '@react-types/searchfield';\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/searchfield/src/index.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {SearchField} from '@adobe/react-spectrum/SearchField';\n\nexport type {SpectrumSearchFieldProps} from '@adobe/react-spectrum/SearchField';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,2 @@
1
+ export { SearchField } from '@adobe/react-spectrum/SearchField';
2
+ export type { SpectrumSearchFieldProps } from '@adobe/react-spectrum/SearchField';
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@react-spectrum/searchfield",
3
- "version": "3.8.26",
3
+ "version": "3.9.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/module.js",
8
8
  "exports": {
9
- "source": "./src/index.ts",
10
- "types": [
11
- "./dist/types.d.ts",
12
- "./src/index.ts"
13
- ],
14
- "import": "./dist/import.mjs",
15
- "require": "./dist/main.js"
9
+ ".": {
10
+ "source": "./src/index.ts",
11
+ "types": "./dist/types/src/index.d.ts",
12
+ "import": "./dist/import.mjs",
13
+ "require": "./dist/main.js"
14
+ },
15
+ "./package.json": "./package.json"
16
16
  },
17
- "types": "dist/types.d.ts",
17
+ "types": "dist/types/src/index.d.ts",
18
18
  "source": "src/index.ts",
19
19
  "files": [
20
20
  "dist",
@@ -24,44 +24,22 @@
24
24
  "*.css"
25
25
  ],
26
26
  "targets": {
27
- "main": {
28
- "includeNodeModules": [
29
- "@adobe/spectrum-css-temp"
30
- ]
31
- },
32
- "module": {
33
- "includeNodeModules": [
34
- "@adobe/spectrum-css-temp"
35
- ]
36
- }
27
+ "types": false
37
28
  },
38
29
  "repository": {
39
30
  "type": "git",
40
31
  "url": "https://github.com/adobe/react-spectrum"
41
32
  },
42
33
  "dependencies": {
43
- "@react-aria/searchfield": "^3.8.12",
44
- "@react-spectrum/button": "^3.17.7",
45
- "@react-spectrum/form": "^3.7.22",
46
- "@react-spectrum/textfield": "^3.14.5",
47
- "@react-spectrum/utils": "^3.12.12",
48
- "@react-stately/searchfield": "^3.5.19",
49
- "@react-types/searchfield": "^3.6.8",
50
- "@react-types/textfield": "^3.12.8",
51
- "@spectrum-icons/ui": "^3.6.23",
34
+ "@adobe/react-spectrum": "3.47.0",
52
35
  "@swc/helpers": "^0.5.0"
53
36
  },
54
- "devDependencies": {
55
- "@adobe/spectrum-css-temp": "3.0.0-alpha.1",
56
- "@react-spectrum/test-utils-internal": "3.0.0-alpha.1"
57
- },
58
37
  "peerDependencies": {
59
- "@react-spectrum/provider": "^3.0.0",
60
38
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
61
39
  "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
62
40
  },
63
41
  "publishConfig": {
64
42
  "access": "public"
65
43
  },
66
- "gitHead": "8df187370053aa35f553cb388ad670f65e1ab371"
44
+ "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
67
45
  }
package/src/index.ts CHANGED
@@ -12,5 +12,6 @@
12
12
 
13
13
  /// <reference types="css-module-types" />
14
14
 
15
- export {SearchField} from './SearchField';
16
- export type {SpectrumSearchFieldProps} from '@react-types/searchfield';
15
+ export {SearchField} from '@adobe/react-spectrum/SearchField';
16
+
17
+ export type {SpectrumSearchFieldProps} from '@adobe/react-spectrum/SearchField';
@@ -1,90 +0,0 @@
1
- require("./searchfield.2a1341cb.css");
2
- var $1e139f06a0a4b696$exports = require("./search_vars_css.main.js");
3
- var $anRgD$reactspectrumutils = require("@react-spectrum/utils");
4
- var $anRgD$reactspectrumbutton = require("@react-spectrum/button");
5
- var $anRgD$spectrumiconsuiMagnifier = require("@spectrum-icons/ui/Magnifier");
6
- var $anRgD$react = require("react");
7
- var $anRgD$reactspectrumtextfield = require("@react-spectrum/textfield");
8
- var $anRgD$reactspectrumform = require("@react-spectrum/form");
9
- var $anRgD$reactspectrumprovider = require("@react-spectrum/provider");
10
- var $anRgD$reactariasearchfield = require("@react-aria/searchfield");
11
- var $anRgD$reactstatelysearchfield = require("@react-stately/searchfield");
12
-
13
-
14
- function $parcel$interopDefault(a) {
15
- return a && a.__esModule ? a.default : a;
16
- }
17
-
18
- function $parcel$export(e, n, v, s) {
19
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
20
- }
21
-
22
- $parcel$export(module.exports, "SearchField", () => $111fe330b4c1f3ac$export$b94867ecbd698f21);
23
- /*
24
- * Copyright 2020 Adobe. All rights reserved.
25
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
26
- * you may not use this file except in compliance with the License. You may obtain a copy
27
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
28
- *
29
- * Unless required by applicable law or agreed to in writing, software distributed under
30
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
31
- * OF ANY KIND, either express or implied. See the License for the specific language
32
- * governing permissions and limitations under the License.
33
- */
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
- const $111fe330b4c1f3ac$export$b94867ecbd698f21 = /*#__PURE__*/ (0, $anRgD$react.forwardRef)(function SearchField(props, ref) {
44
- props = (0, $anRgD$reactspectrumutils.useSlotProps)(props, 'searchfield');
45
- props = (0, $anRgD$reactspectrumprovider.useProviderProps)(props);
46
- props = (0, $anRgD$reactspectrumform.useFormProps)(props);
47
- let defaultIcon = /*#__PURE__*/ (0, ($parcel$interopDefault($anRgD$react))).createElement((0, ($parcel$interopDefault($anRgD$spectrumiconsuiMagnifier))), {
48
- "data-testid": "searchicon"
49
- });
50
- let { icon: icon = defaultIcon, isDisabled: isDisabled, UNSAFE_className: UNSAFE_className, placeholder: placeholder, ...otherProps } = props;
51
- let hasWarned = (0, $anRgD$react.useRef)(false);
52
- (0, $anRgD$react.useEffect)(()=>{
53
- if (placeholder && !hasWarned.current && process.env.NODE_ENV !== 'production') {
54
- console.warn('Placeholders are deprecated due to accessibility issues. Please use help text instead. See the docs for details: https://react-spectrum.adobe.com/react-spectrum/SearchField.html#help-text');
55
- hasWarned.current = true;
56
- }
57
- }, [
58
- placeholder
59
- ]);
60
- let state = (0, $anRgD$reactstatelysearchfield.useSearchFieldState)(props);
61
- let inputRef = (0, $anRgD$react.useRef)(null);
62
- let { clearButtonProps: clearButtonProps, ...result } = (0, $anRgD$reactariasearchfield.useSearchField)(props, state, inputRef);
63
- let clearButton = /*#__PURE__*/ (0, ($parcel$interopDefault($anRgD$react))).createElement((0, $anRgD$reactspectrumbutton.ClearButton), {
64
- ...clearButtonProps,
65
- preventFocus: true,
66
- UNSAFE_className: (0, $anRgD$reactspectrumutils.classNames)((0, ($parcel$interopDefault($1e139f06a0a4b696$exports))), 'spectrum-ClearButton'),
67
- isDisabled: isDisabled
68
- });
69
- let validationState = props.validationState || (result.isInvalid ? 'invalid' : undefined);
70
- return /*#__PURE__*/ (0, ($parcel$interopDefault($anRgD$react))).createElement((0, $anRgD$reactspectrumtextfield.TextFieldBase), {
71
- ...otherProps,
72
- ...result,
73
- validationState: validationState,
74
- UNSAFE_className: (0, $anRgD$reactspectrumutils.classNames)((0, ($parcel$interopDefault($1e139f06a0a4b696$exports))), 'spectrum-Search', 'spectrum-Textfield', {
75
- 'is-disabled': isDisabled,
76
- 'is-quiet': props.isQuiet,
77
- 'spectrum-Search--invalid': validationState === 'invalid' && !isDisabled,
78
- 'spectrum-Search--valid': validationState === 'valid' && !isDisabled
79
- }, UNSAFE_className),
80
- inputClassName: (0, $anRgD$reactspectrumutils.classNames)((0, ($parcel$interopDefault($1e139f06a0a4b696$exports))), 'spectrum-Search-input'),
81
- ref: ref,
82
- inputRef: inputRef,
83
- isDisabled: isDisabled,
84
- icon: icon,
85
- wrapperChildren: state.value !== '' && !props.isReadOnly ? clearButton : undefined
86
- });
87
- });
88
-
89
-
90
- //# sourceMappingURL=SearchField.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AAkBM,MAAM,0DAAc,CAAA,GAAA,uBAAS,EAAE,SAAS,YAAY,KAA+B,EAAE,GAAsB;IAChH,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,QAAQ,CAAA,GAAA,qCAAW,EAAE;IACrB,IAAI,4BACF,0DAAC,CAAA,GAAA,yDAAQ;QAAE,eAAY;;IAGzB,IAAI,QACF,OAAO,yBACP,UAAU,oBACV,gBAAgB,eAChB,WAAW,EACX,GAAG,YACJ,GAAG;IAEJ,IAAI,YAAY,CAAA,GAAA,mBAAK,EAAE;IACvB,CAAA,GAAA,sBAAQ,EAAE;QACR,IAAI,eAAe,CAAC,UAAU,OAAO,IAAI,QAAQ,GAAG,CAAC,QAAQ,KAAK,cAAc;YAC9E,QAAQ,IAAI,CAAC;YACb,UAAU,OAAO,GAAG;QACtB;IACF,GAAG;QAAC;KAAY;IAEhB,IAAI,QAAQ,CAAA,GAAA,kDAAkB,EAAE;IAChC,IAAI,WAAW,CAAA,GAAA,mBAAK,EAAoB;IACxC,IAAI,oBAAC,gBAAgB,EAAE,GAAG,QAAO,GAAG,CAAA,GAAA,0CAAa,EAAE,OAAO,OAAO;IAEjE,IAAI,4BACF,0DAAC,CAAA,GAAA,sCAAU;QACR,GAAG,gBAAgB;QACpB,cAAA;QACA,kBACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL;QAGJ,YAAY;;IAGhB,IAAI,kBAAkB,MAAM,eAAe,IAAK,CAAA,OAAO,SAAS,GAAG,YAAY,SAAQ;IAEvF,qBACE,0DAAC,CAAA,GAAA,2CAAY;QACV,GAAG,UAAU;QACb,GAAG,MAAM;QACV,iBAAiB;QACjB,kBACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL,mBACA,sBACA;YACE,eAAe;YACf,YAAY,MAAM,OAAO;YACzB,4BAA4B,oBAAoB,aAAa,CAAC;YAC9D,0BAA0B,oBAAoB,WAAW,CAAC;QAC5D,GACA;QAGJ,gBAAgB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;QACnC,KAAK;QACL,UAAU;QACV,YAAY;QACZ,MAAM;QACN,iBAAiB,AAAC,MAAM,KAAK,KAAK,MAAM,CAAC,MAAM,UAAU,GAAI,cAAc;;AAEjF","sources":["packages/@react-spectrum/searchfield/src/SearchField.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useSlotProps} from '@react-spectrum/utils';\nimport {ClearButton} from '@react-spectrum/button';\nimport Magnifier from '@spectrum-icons/ui/Magnifier';\nimport React, {forwardRef, ReactElement, Ref, useEffect, useRef} from 'react';\nimport {SpectrumSearchFieldProps} from '@react-types/searchfield';\nimport styles from '@adobe/spectrum-css-temp/components/search/vars.css';\nimport {TextFieldBase} from '@react-spectrum/textfield';\nimport {TextFieldRef} from '@react-types/textfield';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useSearchField} from '@react-aria/searchfield';\nimport {useSearchFieldState} from '@react-stately/searchfield';\n\n/**\n * A SearchField is a text field designed for searches.\n */\nexport const SearchField = forwardRef(function SearchField(props: SpectrumSearchFieldProps, ref: Ref<TextFieldRef>) {\n props = useSlotProps(props, 'searchfield');\n props = useProviderProps(props);\n props = useFormProps(props);\n let defaultIcon = (\n <Magnifier data-testid=\"searchicon\" />\n );\n\n let {\n icon = defaultIcon,\n isDisabled,\n UNSAFE_className,\n placeholder,\n ...otherProps\n } = props;\n\n let hasWarned = useRef(false);\n useEffect(() => {\n if (placeholder && !hasWarned.current && process.env.NODE_ENV !== 'production') {\n console.warn('Placeholders are deprecated due to accessibility issues. Please use help text instead. See the docs for details: https://react-spectrum.adobe.com/react-spectrum/SearchField.html#help-text');\n hasWarned.current = true;\n }\n }, [placeholder]);\n\n let state = useSearchFieldState(props);\n let inputRef = useRef<HTMLInputElement>(null);\n let {clearButtonProps, ...result} = useSearchField(props, state, inputRef);\n\n let clearButton = (\n <ClearButton\n {...clearButtonProps}\n preventFocus\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-ClearButton'\n )\n }\n isDisabled={isDisabled} />\n );\n\n let validationState = props.validationState || (result.isInvalid ? 'invalid' : undefined);\n\n return (\n <TextFieldBase\n {...otherProps}\n {...result}\n validationState={validationState}\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Search',\n 'spectrum-Textfield',\n {\n 'is-disabled': isDisabled,\n 'is-quiet': props.isQuiet,\n 'spectrum-Search--invalid': validationState === 'invalid' && !isDisabled,\n 'spectrum-Search--valid': validationState === 'valid' && !isDisabled\n },\n UNSAFE_className\n )\n }\n inputClassName={classNames(styles, 'spectrum-Search-input')}\n ref={ref}\n inputRef={inputRef}\n isDisabled={isDisabled}\n icon={icon}\n wrapperChildren={(state.value !== '' && !props.isReadOnly) ? clearButton : undefined} />\n );\n}) as (props: SpectrumSearchFieldProps & {ref?: Ref<TextFieldRef>}) => ReactElement;\n"],"names":[],"version":3,"file":"SearchField.main.js.map"}
@@ -1,85 +0,0 @@
1
- import "./searchfield.2a1341cb.css";
2
- import $kYtTO$search_vars_cssmodulejs from "./search_vars_css.mjs";
3
- import {useSlotProps as $kYtTO$useSlotProps, classNames as $kYtTO$classNames} from "@react-spectrum/utils";
4
- import {ClearButton as $kYtTO$ClearButton} from "@react-spectrum/button";
5
- import $kYtTO$spectrumiconsuiMagnifier from "@spectrum-icons/ui/Magnifier";
6
- import $kYtTO$react, {forwardRef as $kYtTO$forwardRef, useRef as $kYtTO$useRef, useEffect as $kYtTO$useEffect} from "react";
7
- import {TextFieldBase as $kYtTO$TextFieldBase} from "@react-spectrum/textfield";
8
- import {useFormProps as $kYtTO$useFormProps} from "@react-spectrum/form";
9
- import {useProviderProps as $kYtTO$useProviderProps} from "@react-spectrum/provider";
10
- import {useSearchField as $kYtTO$useSearchField} from "@react-aria/searchfield";
11
- import {useSearchFieldState as $kYtTO$useSearchFieldState} from "@react-stately/searchfield";
12
-
13
-
14
- function $parcel$interopDefault(a) {
15
- return a && a.__esModule ? a.default : a;
16
- }
17
- /*
18
- * Copyright 2020 Adobe. All rights reserved.
19
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
20
- * you may not use this file except in compliance with the License. You may obtain a copy
21
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
22
- *
23
- * Unless required by applicable law or agreed to in writing, software distributed under
24
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
25
- * OF ANY KIND, either express or implied. See the License for the specific language
26
- * governing permissions and limitations under the License.
27
- */
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
- const $a6a4ace9217ce6df$export$b94867ecbd698f21 = /*#__PURE__*/ (0, $kYtTO$forwardRef)(function SearchField(props, ref) {
38
- props = (0, $kYtTO$useSlotProps)(props, 'searchfield');
39
- props = (0, $kYtTO$useProviderProps)(props);
40
- props = (0, $kYtTO$useFormProps)(props);
41
- let defaultIcon = /*#__PURE__*/ (0, $kYtTO$react).createElement((0, $kYtTO$spectrumiconsuiMagnifier), {
42
- "data-testid": "searchicon"
43
- });
44
- let { icon: icon = defaultIcon, isDisabled: isDisabled, UNSAFE_className: UNSAFE_className, placeholder: placeholder, ...otherProps } = props;
45
- let hasWarned = (0, $kYtTO$useRef)(false);
46
- (0, $kYtTO$useEffect)(()=>{
47
- if (placeholder && !hasWarned.current && process.env.NODE_ENV !== 'production') {
48
- console.warn('Placeholders are deprecated due to accessibility issues. Please use help text instead. See the docs for details: https://react-spectrum.adobe.com/react-spectrum/SearchField.html#help-text');
49
- hasWarned.current = true;
50
- }
51
- }, [
52
- placeholder
53
- ]);
54
- let state = (0, $kYtTO$useSearchFieldState)(props);
55
- let inputRef = (0, $kYtTO$useRef)(null);
56
- let { clearButtonProps: clearButtonProps, ...result } = (0, $kYtTO$useSearchField)(props, state, inputRef);
57
- let clearButton = /*#__PURE__*/ (0, $kYtTO$react).createElement((0, $kYtTO$ClearButton), {
58
- ...clearButtonProps,
59
- preventFocus: true,
60
- UNSAFE_className: (0, $kYtTO$classNames)((0, ($parcel$interopDefault($kYtTO$search_vars_cssmodulejs))), 'spectrum-ClearButton'),
61
- isDisabled: isDisabled
62
- });
63
- let validationState = props.validationState || (result.isInvalid ? 'invalid' : undefined);
64
- return /*#__PURE__*/ (0, $kYtTO$react).createElement((0, $kYtTO$TextFieldBase), {
65
- ...otherProps,
66
- ...result,
67
- validationState: validationState,
68
- UNSAFE_className: (0, $kYtTO$classNames)((0, ($parcel$interopDefault($kYtTO$search_vars_cssmodulejs))), 'spectrum-Search', 'spectrum-Textfield', {
69
- 'is-disabled': isDisabled,
70
- 'is-quiet': props.isQuiet,
71
- 'spectrum-Search--invalid': validationState === 'invalid' && !isDisabled,
72
- 'spectrum-Search--valid': validationState === 'valid' && !isDisabled
73
- }, UNSAFE_className),
74
- inputClassName: (0, $kYtTO$classNames)((0, ($parcel$interopDefault($kYtTO$search_vars_cssmodulejs))), 'spectrum-Search-input'),
75
- ref: ref,
76
- inputRef: inputRef,
77
- isDisabled: isDisabled,
78
- icon: icon,
79
- wrapperChildren: state.value !== '' && !props.isReadOnly ? clearButton : undefined
80
- });
81
- });
82
-
83
-
84
- export {$a6a4ace9217ce6df$export$b94867ecbd698f21 as SearchField};
85
- //# sourceMappingURL=SearchField.module.js.map
@@ -1,85 +0,0 @@
1
- import "./searchfield.2a1341cb.css";
2
- import $kYtTO$search_vars_cssmodulejs from "./search_vars_css.module.js";
3
- import {useSlotProps as $kYtTO$useSlotProps, classNames as $kYtTO$classNames} from "@react-spectrum/utils";
4
- import {ClearButton as $kYtTO$ClearButton} from "@react-spectrum/button";
5
- import $kYtTO$spectrumiconsuiMagnifier from "@spectrum-icons/ui/Magnifier";
6
- import $kYtTO$react, {forwardRef as $kYtTO$forwardRef, useRef as $kYtTO$useRef, useEffect as $kYtTO$useEffect} from "react";
7
- import {TextFieldBase as $kYtTO$TextFieldBase} from "@react-spectrum/textfield";
8
- import {useFormProps as $kYtTO$useFormProps} from "@react-spectrum/form";
9
- import {useProviderProps as $kYtTO$useProviderProps} from "@react-spectrum/provider";
10
- import {useSearchField as $kYtTO$useSearchField} from "@react-aria/searchfield";
11
- import {useSearchFieldState as $kYtTO$useSearchFieldState} from "@react-stately/searchfield";
12
-
13
-
14
- function $parcel$interopDefault(a) {
15
- return a && a.__esModule ? a.default : a;
16
- }
17
- /*
18
- * Copyright 2020 Adobe. All rights reserved.
19
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
20
- * you may not use this file except in compliance with the License. You may obtain a copy
21
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
22
- *
23
- * Unless required by applicable law or agreed to in writing, software distributed under
24
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
25
- * OF ANY KIND, either express or implied. See the License for the specific language
26
- * governing permissions and limitations under the License.
27
- */
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
- const $a6a4ace9217ce6df$export$b94867ecbd698f21 = /*#__PURE__*/ (0, $kYtTO$forwardRef)(function SearchField(props, ref) {
38
- props = (0, $kYtTO$useSlotProps)(props, 'searchfield');
39
- props = (0, $kYtTO$useProviderProps)(props);
40
- props = (0, $kYtTO$useFormProps)(props);
41
- let defaultIcon = /*#__PURE__*/ (0, $kYtTO$react).createElement((0, $kYtTO$spectrumiconsuiMagnifier), {
42
- "data-testid": "searchicon"
43
- });
44
- let { icon: icon = defaultIcon, isDisabled: isDisabled, UNSAFE_className: UNSAFE_className, placeholder: placeholder, ...otherProps } = props;
45
- let hasWarned = (0, $kYtTO$useRef)(false);
46
- (0, $kYtTO$useEffect)(()=>{
47
- if (placeholder && !hasWarned.current && process.env.NODE_ENV !== 'production') {
48
- console.warn('Placeholders are deprecated due to accessibility issues. Please use help text instead. See the docs for details: https://react-spectrum.adobe.com/react-spectrum/SearchField.html#help-text');
49
- hasWarned.current = true;
50
- }
51
- }, [
52
- placeholder
53
- ]);
54
- let state = (0, $kYtTO$useSearchFieldState)(props);
55
- let inputRef = (0, $kYtTO$useRef)(null);
56
- let { clearButtonProps: clearButtonProps, ...result } = (0, $kYtTO$useSearchField)(props, state, inputRef);
57
- let clearButton = /*#__PURE__*/ (0, $kYtTO$react).createElement((0, $kYtTO$ClearButton), {
58
- ...clearButtonProps,
59
- preventFocus: true,
60
- UNSAFE_className: (0, $kYtTO$classNames)((0, ($parcel$interopDefault($kYtTO$search_vars_cssmodulejs))), 'spectrum-ClearButton'),
61
- isDisabled: isDisabled
62
- });
63
- let validationState = props.validationState || (result.isInvalid ? 'invalid' : undefined);
64
- return /*#__PURE__*/ (0, $kYtTO$react).createElement((0, $kYtTO$TextFieldBase), {
65
- ...otherProps,
66
- ...result,
67
- validationState: validationState,
68
- UNSAFE_className: (0, $kYtTO$classNames)((0, ($parcel$interopDefault($kYtTO$search_vars_cssmodulejs))), 'spectrum-Search', 'spectrum-Textfield', {
69
- 'is-disabled': isDisabled,
70
- 'is-quiet': props.isQuiet,
71
- 'spectrum-Search--invalid': validationState === 'invalid' && !isDisabled,
72
- 'spectrum-Search--valid': validationState === 'valid' && !isDisabled
73
- }, UNSAFE_className),
74
- inputClassName: (0, $kYtTO$classNames)((0, ($parcel$interopDefault($kYtTO$search_vars_cssmodulejs))), 'spectrum-Search-input'),
75
- ref: ref,
76
- inputRef: inputRef,
77
- isDisabled: isDisabled,
78
- icon: icon,
79
- wrapperChildren: state.value !== '' && !props.isReadOnly ? clearButton : undefined
80
- });
81
- });
82
-
83
-
84
- export {$a6a4ace9217ce6df$export$b94867ecbd698f21 as SearchField};
85
- //# sourceMappingURL=SearchField.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AAkBM,MAAM,0DAAc,CAAA,GAAA,iBAAS,EAAE,SAAS,YAAY,KAA+B,EAAE,GAAsB;IAChH,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,QAAQ,CAAA,GAAA,mBAAW,EAAE;IACrB,IAAI,4BACF,gCAAC,CAAA,GAAA,+BAAQ;QAAE,eAAY;;IAGzB,IAAI,QACF,OAAO,yBACP,UAAU,oBACV,gBAAgB,eAChB,WAAW,EACX,GAAG,YACJ,GAAG;IAEJ,IAAI,YAAY,CAAA,GAAA,aAAK,EAAE;IACvB,CAAA,GAAA,gBAAQ,EAAE;QACR,IAAI,eAAe,CAAC,UAAU,OAAO,IAAI,QAAQ,GAAG,CAAC,QAAQ,KAAK,cAAc;YAC9E,QAAQ,IAAI,CAAC;YACb,UAAU,OAAO,GAAG;QACtB;IACF,GAAG;QAAC;KAAY;IAEhB,IAAI,QAAQ,CAAA,GAAA,0BAAkB,EAAE;IAChC,IAAI,WAAW,CAAA,GAAA,aAAK,EAAoB;IACxC,IAAI,oBAAC,gBAAgB,EAAE,GAAG,QAAO,GAAG,CAAA,GAAA,qBAAa,EAAE,OAAO,OAAO;IAEjE,IAAI,4BACF,gCAAC,CAAA,GAAA,kBAAU;QACR,GAAG,gBAAgB;QACpB,cAAA;QACA,kBACE,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,wDAAK,GACL;QAGJ,YAAY;;IAGhB,IAAI,kBAAkB,MAAM,eAAe,IAAK,CAAA,OAAO,SAAS,GAAG,YAAY,SAAQ;IAEvF,qBACE,gCAAC,CAAA,GAAA,oBAAY;QACV,GAAG,UAAU;QACb,GAAG,MAAM;QACV,iBAAiB;QACjB,kBACE,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,wDAAK,GACL,mBACA,sBACA;YACE,eAAe;YACf,YAAY,MAAM,OAAO;YACzB,4BAA4B,oBAAoB,aAAa,CAAC;YAC9D,0BAA0B,oBAAoB,WAAW,CAAC;QAC5D,GACA;QAGJ,gBAAgB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,wDAAK,GAAG;QACnC,KAAK;QACL,UAAU;QACV,YAAY;QACZ,MAAM;QACN,iBAAiB,AAAC,MAAM,KAAK,KAAK,MAAM,CAAC,MAAM,UAAU,GAAI,cAAc;;AAEjF","sources":["packages/@react-spectrum/searchfield/src/SearchField.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useSlotProps} from '@react-spectrum/utils';\nimport {ClearButton} from '@react-spectrum/button';\nimport Magnifier from '@spectrum-icons/ui/Magnifier';\nimport React, {forwardRef, ReactElement, Ref, useEffect, useRef} from 'react';\nimport {SpectrumSearchFieldProps} from '@react-types/searchfield';\nimport styles from '@adobe/spectrum-css-temp/components/search/vars.css';\nimport {TextFieldBase} from '@react-spectrum/textfield';\nimport {TextFieldRef} from '@react-types/textfield';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useSearchField} from '@react-aria/searchfield';\nimport {useSearchFieldState} from '@react-stately/searchfield';\n\n/**\n * A SearchField is a text field designed for searches.\n */\nexport const SearchField = forwardRef(function SearchField(props: SpectrumSearchFieldProps, ref: Ref<TextFieldRef>) {\n props = useSlotProps(props, 'searchfield');\n props = useProviderProps(props);\n props = useFormProps(props);\n let defaultIcon = (\n <Magnifier data-testid=\"searchicon\" />\n );\n\n let {\n icon = defaultIcon,\n isDisabled,\n UNSAFE_className,\n placeholder,\n ...otherProps\n } = props;\n\n let hasWarned = useRef(false);\n useEffect(() => {\n if (placeholder && !hasWarned.current && process.env.NODE_ENV !== 'production') {\n console.warn('Placeholders are deprecated due to accessibility issues. Please use help text instead. See the docs for details: https://react-spectrum.adobe.com/react-spectrum/SearchField.html#help-text');\n hasWarned.current = true;\n }\n }, [placeholder]);\n\n let state = useSearchFieldState(props);\n let inputRef = useRef<HTMLInputElement>(null);\n let {clearButtonProps, ...result} = useSearchField(props, state, inputRef);\n\n let clearButton = (\n <ClearButton\n {...clearButtonProps}\n preventFocus\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-ClearButton'\n )\n }\n isDisabled={isDisabled} />\n );\n\n let validationState = props.validationState || (result.isInvalid ? 'invalid' : undefined);\n\n return (\n <TextFieldBase\n {...otherProps}\n {...result}\n validationState={validationState}\n UNSAFE_className={\n classNames(\n styles,\n 'spectrum-Search',\n 'spectrum-Textfield',\n {\n 'is-disabled': isDisabled,\n 'is-quiet': props.isQuiet,\n 'spectrum-Search--invalid': validationState === 'invalid' && !isDisabled,\n 'spectrum-Search--valid': validationState === 'valid' && !isDisabled\n },\n UNSAFE_className\n )\n }\n inputClassName={classNames(styles, 'spectrum-Search-input')}\n ref={ref}\n inputRef={inputRef}\n isDisabled={isDisabled}\n icon={icon}\n wrapperChildren={(state.value !== '' && !props.isReadOnly) ? clearButton : undefined} />\n );\n}) as (props: SpectrumSearchFieldProps & {ref?: Ref<TextFieldRef>}) => ReactElement;\n"],"names":[],"version":3,"file":"SearchField.module.js.map"}
@@ -1,53 +0,0 @@
1
-
2
- function $parcel$export(e, n, v, s) {
3
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
- }
5
-
6
- $parcel$export(module.exports, "focus-ring", () => $1e139f06a0a4b696$export$f39a09f249340e2a, (v) => $1e139f06a0a4b696$export$f39a09f249340e2a = v);
7
- $parcel$export(module.exports, "i18nFontFamily", () => $1e139f06a0a4b696$export$8c4ee2c50c22c514, (v) => $1e139f06a0a4b696$export$8c4ee2c50c22c514 = v);
8
- $parcel$export(module.exports, "is-quiet", () => $1e139f06a0a4b696$export$6d5c5433f0da4241, (v) => $1e139f06a0a4b696$export$6d5c5433f0da4241 = v);
9
- $parcel$export(module.exports, "spectrum-ClearButton", () => $1e139f06a0a4b696$export$b752ce409e5660c, (v) => $1e139f06a0a4b696$export$b752ce409e5660c = v);
10
- $parcel$export(module.exports, "spectrum-FocusRing-ring", () => $1e139f06a0a4b696$export$4109102f950813a6, (v) => $1e139f06a0a4b696$export$4109102f950813a6 = v);
11
- $parcel$export(module.exports, "spectrum-FocusRing", () => $1e139f06a0a4b696$export$24c7f46a6e3605dd, (v) => $1e139f06a0a4b696$export$24c7f46a6e3605dd = v);
12
- $parcel$export(module.exports, "spectrum-FocusRing--quiet", () => $1e139f06a0a4b696$export$2927016961429360, (v) => $1e139f06a0a4b696$export$2927016961429360 = v);
13
- $parcel$export(module.exports, "spectrum-Search", () => $1e139f06a0a4b696$export$713911d754e1e4ae, (v) => $1e139f06a0a4b696$export$713911d754e1e4ae = v);
14
- $parcel$export(module.exports, "spectrum-Search--invalid", () => $1e139f06a0a4b696$export$77a6151a0b46a6a3, (v) => $1e139f06a0a4b696$export$77a6151a0b46a6a3 = v);
15
- $parcel$export(module.exports, "spectrum-Search--loadable", () => $1e139f06a0a4b696$export$9c74d64afae3b2d4, (v) => $1e139f06a0a4b696$export$9c74d64afae3b2d4 = v);
16
- $parcel$export(module.exports, "spectrum-Search--valid", () => $1e139f06a0a4b696$export$aa81e3ab40f37567, (v) => $1e139f06a0a4b696$export$aa81e3ab40f37567 = v);
17
- $parcel$export(module.exports, "spectrum-Search-circleLoader", () => $1e139f06a0a4b696$export$70ae4353602451dc, (v) => $1e139f06a0a4b696$export$70ae4353602451dc = v);
18
- $parcel$export(module.exports, "spectrum-Search-input", () => $1e139f06a0a4b696$export$50e02603f2d97ae1, (v) => $1e139f06a0a4b696$export$50e02603f2d97ae1 = v);
19
- $parcel$export(module.exports, "spectrum-Search-validationIcon", () => $1e139f06a0a4b696$export$938f0981825eae6e, (v) => $1e139f06a0a4b696$export$938f0981825eae6e = v);
20
- $parcel$export(module.exports, "spectrum-Textfield", () => $1e139f06a0a4b696$export$2c8a10299d8b3418, (v) => $1e139f06a0a4b696$export$2c8a10299d8b3418 = v);
21
- var $1e139f06a0a4b696$export$f39a09f249340e2a;
22
- var $1e139f06a0a4b696$export$8c4ee2c50c22c514;
23
- var $1e139f06a0a4b696$export$6d5c5433f0da4241;
24
- var $1e139f06a0a4b696$export$b752ce409e5660c;
25
- var $1e139f06a0a4b696$export$4109102f950813a6;
26
- var $1e139f06a0a4b696$export$24c7f46a6e3605dd;
27
- var $1e139f06a0a4b696$export$2927016961429360;
28
- var $1e139f06a0a4b696$export$713911d754e1e4ae;
29
- var $1e139f06a0a4b696$export$77a6151a0b46a6a3;
30
- var $1e139f06a0a4b696$export$9c74d64afae3b2d4;
31
- var $1e139f06a0a4b696$export$aa81e3ab40f37567;
32
- var $1e139f06a0a4b696$export$70ae4353602451dc;
33
- var $1e139f06a0a4b696$export$50e02603f2d97ae1;
34
- var $1e139f06a0a4b696$export$938f0981825eae6e;
35
- var $1e139f06a0a4b696$export$2c8a10299d8b3418;
36
- $1e139f06a0a4b696$export$f39a09f249340e2a = `_7mdQq_focus-ring`;
37
- $1e139f06a0a4b696$export$8c4ee2c50c22c514 = `_7mdQq_i18nFontFamily`;
38
- $1e139f06a0a4b696$export$6d5c5433f0da4241 = `_7mdQq_is-quiet`;
39
- $1e139f06a0a4b696$export$b752ce409e5660c = `_7mdQq_spectrum-ClearButton`;
40
- $1e139f06a0a4b696$export$4109102f950813a6 = `_7mdQq_spectrum-FocusRing-ring`;
41
- $1e139f06a0a4b696$export$24c7f46a6e3605dd = `_7mdQq_spectrum-FocusRing ${$1e139f06a0a4b696$export$4109102f950813a6}`;
42
- $1e139f06a0a4b696$export$2927016961429360 = `_7mdQq_spectrum-FocusRing--quiet`;
43
- $1e139f06a0a4b696$export$713911d754e1e4ae = `_7mdQq_spectrum-Search`;
44
- $1e139f06a0a4b696$export$77a6151a0b46a6a3 = `_7mdQq_spectrum-Search--invalid`;
45
- $1e139f06a0a4b696$export$9c74d64afae3b2d4 = `_7mdQq_spectrum-Search--loadable`;
46
- $1e139f06a0a4b696$export$aa81e3ab40f37567 = `_7mdQq_spectrum-Search--valid`;
47
- $1e139f06a0a4b696$export$70ae4353602451dc = `_7mdQq_spectrum-Search-circleLoader`;
48
- $1e139f06a0a4b696$export$50e02603f2d97ae1 = `_7mdQq_spectrum-Search-input`;
49
- $1e139f06a0a4b696$export$938f0981825eae6e = `_7mdQq_spectrum-Search-validationIcon`;
50
- $1e139f06a0a4b696$export$2c8a10299d8b3418 = `_7mdQq_spectrum-Textfield`;
51
-
52
-
53
- //# sourceMappingURL=search_vars_css.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAdA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA6B,CAAC,eAAe,CAAC;AAC9C,2CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,2CAA2C;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAoC,CAAC,sBAAsB,CAAC;AAC5D,4CAA6C,CAAC,+BAA+B,CAAC;AAC9E,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAA2C,CAAC,6BAA6B,CAAC;AAC1E,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAA0C,CAAC,4BAA4B,CAAC;AACxE,4CAAmD,CAAC,qCAAqC,CAAC;AAC1F,4CAAuC,CAAC,yBAAyB,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/search/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n"],"names":[],"version":3,"file":"search_vars_css.main.js.map"}
@@ -1,55 +0,0 @@
1
-
2
- function $parcel$export(e, n, v, s) {
3
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
- }
5
- var $5589e2270a5c2f51$exports = {};
6
-
7
- $parcel$export($5589e2270a5c2f51$exports, "focus-ring", () => $5589e2270a5c2f51$export$f39a09f249340e2a, (v) => $5589e2270a5c2f51$export$f39a09f249340e2a = v);
8
- $parcel$export($5589e2270a5c2f51$exports, "i18nFontFamily", () => $5589e2270a5c2f51$export$8c4ee2c50c22c514, (v) => $5589e2270a5c2f51$export$8c4ee2c50c22c514 = v);
9
- $parcel$export($5589e2270a5c2f51$exports, "is-quiet", () => $5589e2270a5c2f51$export$6d5c5433f0da4241, (v) => $5589e2270a5c2f51$export$6d5c5433f0da4241 = v);
10
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-ClearButton", () => $5589e2270a5c2f51$export$b752ce409e5660c, (v) => $5589e2270a5c2f51$export$b752ce409e5660c = v);
11
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-FocusRing-ring", () => $5589e2270a5c2f51$export$4109102f950813a6, (v) => $5589e2270a5c2f51$export$4109102f950813a6 = v);
12
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-FocusRing", () => $5589e2270a5c2f51$export$24c7f46a6e3605dd, (v) => $5589e2270a5c2f51$export$24c7f46a6e3605dd = v);
13
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-FocusRing--quiet", () => $5589e2270a5c2f51$export$2927016961429360, (v) => $5589e2270a5c2f51$export$2927016961429360 = v);
14
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Search", () => $5589e2270a5c2f51$export$713911d754e1e4ae, (v) => $5589e2270a5c2f51$export$713911d754e1e4ae = v);
15
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Search--invalid", () => $5589e2270a5c2f51$export$77a6151a0b46a6a3, (v) => $5589e2270a5c2f51$export$77a6151a0b46a6a3 = v);
16
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Search--loadable", () => $5589e2270a5c2f51$export$9c74d64afae3b2d4, (v) => $5589e2270a5c2f51$export$9c74d64afae3b2d4 = v);
17
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Search--valid", () => $5589e2270a5c2f51$export$aa81e3ab40f37567, (v) => $5589e2270a5c2f51$export$aa81e3ab40f37567 = v);
18
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Search-circleLoader", () => $5589e2270a5c2f51$export$70ae4353602451dc, (v) => $5589e2270a5c2f51$export$70ae4353602451dc = v);
19
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Search-input", () => $5589e2270a5c2f51$export$50e02603f2d97ae1, (v) => $5589e2270a5c2f51$export$50e02603f2d97ae1 = v);
20
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Search-validationIcon", () => $5589e2270a5c2f51$export$938f0981825eae6e, (v) => $5589e2270a5c2f51$export$938f0981825eae6e = v);
21
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Textfield", () => $5589e2270a5c2f51$export$2c8a10299d8b3418, (v) => $5589e2270a5c2f51$export$2c8a10299d8b3418 = v);
22
- var $5589e2270a5c2f51$export$f39a09f249340e2a;
23
- var $5589e2270a5c2f51$export$8c4ee2c50c22c514;
24
- var $5589e2270a5c2f51$export$6d5c5433f0da4241;
25
- var $5589e2270a5c2f51$export$b752ce409e5660c;
26
- var $5589e2270a5c2f51$export$4109102f950813a6;
27
- var $5589e2270a5c2f51$export$24c7f46a6e3605dd;
28
- var $5589e2270a5c2f51$export$2927016961429360;
29
- var $5589e2270a5c2f51$export$713911d754e1e4ae;
30
- var $5589e2270a5c2f51$export$77a6151a0b46a6a3;
31
- var $5589e2270a5c2f51$export$9c74d64afae3b2d4;
32
- var $5589e2270a5c2f51$export$aa81e3ab40f37567;
33
- var $5589e2270a5c2f51$export$70ae4353602451dc;
34
- var $5589e2270a5c2f51$export$50e02603f2d97ae1;
35
- var $5589e2270a5c2f51$export$938f0981825eae6e;
36
- var $5589e2270a5c2f51$export$2c8a10299d8b3418;
37
- $5589e2270a5c2f51$export$f39a09f249340e2a = `_7mdQq_focus-ring`;
38
- $5589e2270a5c2f51$export$8c4ee2c50c22c514 = `_7mdQq_i18nFontFamily`;
39
- $5589e2270a5c2f51$export$6d5c5433f0da4241 = `_7mdQq_is-quiet`;
40
- $5589e2270a5c2f51$export$b752ce409e5660c = `_7mdQq_spectrum-ClearButton`;
41
- $5589e2270a5c2f51$export$4109102f950813a6 = `_7mdQq_spectrum-FocusRing-ring`;
42
- $5589e2270a5c2f51$export$24c7f46a6e3605dd = `_7mdQq_spectrum-FocusRing ${$5589e2270a5c2f51$export$4109102f950813a6}`;
43
- $5589e2270a5c2f51$export$2927016961429360 = `_7mdQq_spectrum-FocusRing--quiet`;
44
- $5589e2270a5c2f51$export$713911d754e1e4ae = `_7mdQq_spectrum-Search`;
45
- $5589e2270a5c2f51$export$77a6151a0b46a6a3 = `_7mdQq_spectrum-Search--invalid`;
46
- $5589e2270a5c2f51$export$9c74d64afae3b2d4 = `_7mdQq_spectrum-Search--loadable`;
47
- $5589e2270a5c2f51$export$aa81e3ab40f37567 = `_7mdQq_spectrum-Search--valid`;
48
- $5589e2270a5c2f51$export$70ae4353602451dc = `_7mdQq_spectrum-Search-circleLoader`;
49
- $5589e2270a5c2f51$export$50e02603f2d97ae1 = `_7mdQq_spectrum-Search-input`;
50
- $5589e2270a5c2f51$export$938f0981825eae6e = `_7mdQq_spectrum-Search-validationIcon`;
51
- $5589e2270a5c2f51$export$2c8a10299d8b3418 = `_7mdQq_spectrum-Textfield`;
52
-
53
-
54
- export {$5589e2270a5c2f51$exports as default};
55
- //# sourceMappingURL=search_vars_css.module.js.map
@@ -1,55 +0,0 @@
1
-
2
- function $parcel$export(e, n, v, s) {
3
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
- }
5
- var $5589e2270a5c2f51$exports = {};
6
-
7
- $parcel$export($5589e2270a5c2f51$exports, "focus-ring", () => $5589e2270a5c2f51$export$f39a09f249340e2a, (v) => $5589e2270a5c2f51$export$f39a09f249340e2a = v);
8
- $parcel$export($5589e2270a5c2f51$exports, "i18nFontFamily", () => $5589e2270a5c2f51$export$8c4ee2c50c22c514, (v) => $5589e2270a5c2f51$export$8c4ee2c50c22c514 = v);
9
- $parcel$export($5589e2270a5c2f51$exports, "is-quiet", () => $5589e2270a5c2f51$export$6d5c5433f0da4241, (v) => $5589e2270a5c2f51$export$6d5c5433f0da4241 = v);
10
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-ClearButton", () => $5589e2270a5c2f51$export$b752ce409e5660c, (v) => $5589e2270a5c2f51$export$b752ce409e5660c = v);
11
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-FocusRing-ring", () => $5589e2270a5c2f51$export$4109102f950813a6, (v) => $5589e2270a5c2f51$export$4109102f950813a6 = v);
12
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-FocusRing", () => $5589e2270a5c2f51$export$24c7f46a6e3605dd, (v) => $5589e2270a5c2f51$export$24c7f46a6e3605dd = v);
13
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-FocusRing--quiet", () => $5589e2270a5c2f51$export$2927016961429360, (v) => $5589e2270a5c2f51$export$2927016961429360 = v);
14
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Search", () => $5589e2270a5c2f51$export$713911d754e1e4ae, (v) => $5589e2270a5c2f51$export$713911d754e1e4ae = v);
15
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Search--invalid", () => $5589e2270a5c2f51$export$77a6151a0b46a6a3, (v) => $5589e2270a5c2f51$export$77a6151a0b46a6a3 = v);
16
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Search--loadable", () => $5589e2270a5c2f51$export$9c74d64afae3b2d4, (v) => $5589e2270a5c2f51$export$9c74d64afae3b2d4 = v);
17
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Search--valid", () => $5589e2270a5c2f51$export$aa81e3ab40f37567, (v) => $5589e2270a5c2f51$export$aa81e3ab40f37567 = v);
18
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Search-circleLoader", () => $5589e2270a5c2f51$export$70ae4353602451dc, (v) => $5589e2270a5c2f51$export$70ae4353602451dc = v);
19
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Search-input", () => $5589e2270a5c2f51$export$50e02603f2d97ae1, (v) => $5589e2270a5c2f51$export$50e02603f2d97ae1 = v);
20
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Search-validationIcon", () => $5589e2270a5c2f51$export$938f0981825eae6e, (v) => $5589e2270a5c2f51$export$938f0981825eae6e = v);
21
- $parcel$export($5589e2270a5c2f51$exports, "spectrum-Textfield", () => $5589e2270a5c2f51$export$2c8a10299d8b3418, (v) => $5589e2270a5c2f51$export$2c8a10299d8b3418 = v);
22
- var $5589e2270a5c2f51$export$f39a09f249340e2a;
23
- var $5589e2270a5c2f51$export$8c4ee2c50c22c514;
24
- var $5589e2270a5c2f51$export$6d5c5433f0da4241;
25
- var $5589e2270a5c2f51$export$b752ce409e5660c;
26
- var $5589e2270a5c2f51$export$4109102f950813a6;
27
- var $5589e2270a5c2f51$export$24c7f46a6e3605dd;
28
- var $5589e2270a5c2f51$export$2927016961429360;
29
- var $5589e2270a5c2f51$export$713911d754e1e4ae;
30
- var $5589e2270a5c2f51$export$77a6151a0b46a6a3;
31
- var $5589e2270a5c2f51$export$9c74d64afae3b2d4;
32
- var $5589e2270a5c2f51$export$aa81e3ab40f37567;
33
- var $5589e2270a5c2f51$export$70ae4353602451dc;
34
- var $5589e2270a5c2f51$export$50e02603f2d97ae1;
35
- var $5589e2270a5c2f51$export$938f0981825eae6e;
36
- var $5589e2270a5c2f51$export$2c8a10299d8b3418;
37
- $5589e2270a5c2f51$export$f39a09f249340e2a = `_7mdQq_focus-ring`;
38
- $5589e2270a5c2f51$export$8c4ee2c50c22c514 = `_7mdQq_i18nFontFamily`;
39
- $5589e2270a5c2f51$export$6d5c5433f0da4241 = `_7mdQq_is-quiet`;
40
- $5589e2270a5c2f51$export$b752ce409e5660c = `_7mdQq_spectrum-ClearButton`;
41
- $5589e2270a5c2f51$export$4109102f950813a6 = `_7mdQq_spectrum-FocusRing-ring`;
42
- $5589e2270a5c2f51$export$24c7f46a6e3605dd = `_7mdQq_spectrum-FocusRing ${$5589e2270a5c2f51$export$4109102f950813a6}`;
43
- $5589e2270a5c2f51$export$2927016961429360 = `_7mdQq_spectrum-FocusRing--quiet`;
44
- $5589e2270a5c2f51$export$713911d754e1e4ae = `_7mdQq_spectrum-Search`;
45
- $5589e2270a5c2f51$export$77a6151a0b46a6a3 = `_7mdQq_spectrum-Search--invalid`;
46
- $5589e2270a5c2f51$export$9c74d64afae3b2d4 = `_7mdQq_spectrum-Search--loadable`;
47
- $5589e2270a5c2f51$export$aa81e3ab40f37567 = `_7mdQq_spectrum-Search--valid`;
48
- $5589e2270a5c2f51$export$70ae4353602451dc = `_7mdQq_spectrum-Search-circleLoader`;
49
- $5589e2270a5c2f51$export$50e02603f2d97ae1 = `_7mdQq_spectrum-Search-input`;
50
- $5589e2270a5c2f51$export$938f0981825eae6e = `_7mdQq_spectrum-Search-validationIcon`;
51
- $5589e2270a5c2f51$export$2c8a10299d8b3418 = `_7mdQq_spectrum-Textfield`;
52
-
53
-
54
- export {$5589e2270a5c2f51$exports as default};
55
- //# sourceMappingURL=search_vars_css.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAdA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA6B,CAAC,eAAe,CAAC;AAC9C,2CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,2CAA2C;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAoC,CAAC,sBAAsB,CAAC;AAC5D,4CAA6C,CAAC,+BAA+B,CAAC;AAC9E,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAA2C,CAAC,6BAA6B,CAAC;AAC1E,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAA0C,CAAC,4BAA4B,CAAC;AACxE,4CAAmD,CAAC,qCAAqC,CAAC;AAC1F,4CAAuC,CAAC,yBAAyB,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/search/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n"],"names":[],"version":3,"file":"search_vars_css.module.js.map"}
@@ -1,223 +0,0 @@
1
- ._7mdQq_i18nFontFamily {
2
- font-synthesis: weight;
3
- font-family: adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
4
- }
5
-
6
- ._7mdQq_i18nFontFamily:lang(ar) {
7
- font-family: myriad-arabic, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
8
- }
9
-
10
- ._7mdQq_i18nFontFamily:lang(he) {
11
- font-family: myriad-hebrew, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
12
- }
13
-
14
- ._7mdQq_i18nFontFamily:lang(zh) {
15
- font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
16
- }
17
-
18
- ._7mdQq_i18nFontFamily:lang(zh-Hans) {
19
- font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
20
- }
21
-
22
- ._7mdQq_i18nFontFamily:lang(zh-Hant) {
23
- font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Microsoft JhengHei UI, Microsoft JhengHei, Heiti TC Light, sans-serif;
24
- }
25
-
26
- ._7mdQq_i18nFontFamily:lang(zh-SG), ._7mdQq_i18nFontFamily:lang(zh-CN) {
27
- font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
28
- }
29
-
30
- ._7mdQq_i18nFontFamily:lang(ko) {
31
- font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
32
- }
33
-
34
- ._7mdQq_i18nFontFamily:lang(ja) {
35
- font-family: adobe-clean-han-japanese, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, Osaka, YuGothic, Yu Gothic, メイリオ, Meiryo, MS Pゴシック, MS PGothic, sans-serif;
36
- }
37
-
38
- ._7mdQq_spectrum-FocusRing-ring {
39
- --spectrum-focus-ring-border-radius: var(--spectrum-textfield-border-radius, var(--spectrum-alias-border-radius-regular));
40
- --spectrum-focus-ring-gap: var(--spectrum-alias-input-focusring-gap);
41
- --spectrum-focus-ring-size: var(--spectrum-alias-input-focusring-size);
42
- --spectrum-focus-ring-border-size: 0px;
43
- --spectrum-focus-ring-color: var(--spectrum-high-contrast-focus-ring-color, var(--spectrum-alias-focus-ring-color, var(--spectrum-alias-focus-color)));
44
- }
45
-
46
- ._7mdQq_spectrum-FocusRing-ring:after {
47
- border-radius: calc(var(--spectrum-focus-ring-border-radius) + var(--spectrum-focus-ring-gap));
48
- content: "";
49
- margin: calc(-1 * var(--spectrum-focus-ring-border-size));
50
- pointer-events: none;
51
- transition: box-shadow var(--spectrum-global-animation-duration-100, .13s) ease-out, margin var(--spectrum-global-animation-duration-100, .13s) ease-out;
52
- display: block;
53
- position: absolute;
54
- inset: 0;
55
- }
56
-
57
- ._7mdQq_spectrum-FocusRing._7mdQq_focus-ring:after {
58
- margin: calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size));
59
- box-shadow: 0 0 0 var(--spectrum-focus-ring-size) var(--spectrum-focus-ring-color);
60
- }
61
-
62
- ._7mdQq_spectrum-FocusRing--quiet:after {
63
- border-radius: 0;
64
- }
65
-
66
- ._7mdQq_spectrum-FocusRing--quiet._7mdQq_focus-ring:after {
67
- margin: 0 0 calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size)) 0;
68
- box-shadow: 0 var(--spectrum-focus-ring-size) 0 var(--spectrum-focus-ring-color);
69
- }
70
-
71
- @media (forced-colors: active) {
72
- ._7mdQq_spectrum-FocusRing, ._7mdQq_spectrum-FocusRing-ring, ._7mdQq_spectrum-FocusRing--quiet {
73
- --spectrum-high-contrast-focus-ring-color: Highlight;
74
- }
75
-
76
- :is(._7mdQq_spectrum-FocusRing, ._7mdQq_spectrum-FocusRing-ring, ._7mdQq_spectrum-FocusRing--quiet):after {
77
- forced-color-adjust: none;
78
- }
79
- }
80
-
81
- ._7mdQq_spectrum-Search {
82
- --spectrum-textfield-border-radius: var(--spectrum-search-border-radius, var(--spectrum-alias-border-radius-regular));
83
- position: relative;
84
- }
85
-
86
- ._7mdQq_spectrum-Search ._7mdQq_spectrum-ClearButton {
87
- padding: var(--spectrum-search-clear-button-padding);
88
- --spectrum-clearbutton-medium-background-color-hover: var(--spectrum-search-clear-button-background-color-hover);
89
- --spectrum-clearbutton-medium-background-color-key-focus: var(--spectrum-search-clear-button-background-color-key-focus);
90
- --spectrum-clearbutton-medium-background-color-down: var(--spectrum-search-clear-button-background-color-down);
91
- background-clip: content-box;
92
- position: absolute;
93
- top: 0;
94
- }
95
-
96
- ._7mdQq_spectrum-Search ._7mdQq_spectrum-ClearButton:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
97
- right: 0;
98
- }
99
-
100
- ._7mdQq_spectrum-Search ._7mdQq_spectrum-ClearButton:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
101
- right: 0;
102
- }
103
-
104
- ._7mdQq_spectrum-Search ._7mdQq_spectrum-ClearButton:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
105
- left: 0;
106
- }
107
-
108
- ._7mdQq_spectrum-Search ._7mdQq_spectrum-ClearButton:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
109
- left: 0;
110
- }
111
-
112
- ._7mdQq_spectrum-Search._7mdQq_is-quiet ._7mdQq_spectrum-Search-input {
113
- padding-inline-end: var(--spectrum-global-dimension-size-350);
114
- }
115
-
116
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--invalid ._7mdQq_spectrum-ClearButton:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
117
- right: calc(var(--spectrum-icon-alert-medium-width, var(--spectrum-global-dimension-size-225)) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)));
118
- }
119
-
120
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--invalid ._7mdQq_spectrum-ClearButton:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
121
- right: calc(var(--spectrum-icon-alert-medium-width, var(--spectrum-global-dimension-size-225)) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)));
122
- }
123
-
124
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--invalid ._7mdQq_spectrum-ClearButton:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
125
- left: calc(var(--spectrum-icon-alert-medium-width, var(--spectrum-global-dimension-size-225)) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)));
126
- }
127
-
128
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--invalid ._7mdQq_spectrum-ClearButton:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
129
- left: calc(var(--spectrum-icon-alert-medium-width, var(--spectrum-global-dimension-size-225)) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)));
130
- }
131
-
132
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--valid ._7mdQq_spectrum-ClearButton:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
133
- right: calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)) / 2 + var(--spectrum-global-dimension-size-150));
134
- }
135
-
136
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--valid ._7mdQq_spectrum-ClearButton:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
137
- right: calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)) / 2 + var(--spectrum-global-dimension-size-150));
138
- }
139
-
140
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--valid ._7mdQq_spectrum-ClearButton:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
141
- left: calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)) / 2 + var(--spectrum-global-dimension-size-150));
142
- }
143
-
144
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--valid ._7mdQq_spectrum-ClearButton:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
145
- left: calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)) / 2 + var(--spectrum-global-dimension-size-150));
146
- }
147
-
148
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--loadable ._7mdQq_spectrum-ClearButton:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
149
- right: 0;
150
- }
151
-
152
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--loadable ._7mdQq_spectrum-ClearButton:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
153
- right: 0;
154
- }
155
-
156
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--loadable ._7mdQq_spectrum-ClearButton:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
157
- left: 0;
158
- }
159
-
160
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--loadable ._7mdQq_spectrum-ClearButton:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
161
- left: 0;
162
- }
163
-
164
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--loadable ._7mdQq_spectrum-Search-circleLoader:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
165
- right: calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)) / 2 + var(--spectrum-global-dimension-size-150));
166
- }
167
-
168
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--loadable ._7mdQq_spectrum-Search-circleLoader:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
169
- right: calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)) / 2 + var(--spectrum-global-dimension-size-150));
170
- }
171
-
172
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--loadable ._7mdQq_spectrum-Search-circleLoader:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
173
- left: calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)) / 2 + var(--spectrum-global-dimension-size-150));
174
- }
175
-
176
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--loadable ._7mdQq_spectrum-Search-circleLoader:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
177
- left: calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)) / 2 + var(--spectrum-global-dimension-size-150));
178
- }
179
-
180
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--loadable ._7mdQq_spectrum-Search-validationIcon {
181
- padding-inline-end: 0;
182
- }
183
-
184
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--loadable ._7mdQq_spectrum-Search-validationIcon:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
185
- right: calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)) / 2 + var(--spectrum-global-dimension-size-150));
186
- }
187
-
188
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--loadable ._7mdQq_spectrum-Search-validationIcon:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {
189
- right: calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)) / 2 + var(--spectrum-global-dimension-size-150));
190
- }
191
-
192
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--loadable ._7mdQq_spectrum-Search-validationIcon:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
193
- left: calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)) / 2 + var(--spectrum-global-dimension-size-150));
194
- }
195
-
196
- ._7mdQq_spectrum-Search._7mdQq_spectrum-Search--loadable ._7mdQq_spectrum-Search-validationIcon:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {
197
- left: calc(var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)) / 2 + var(--spectrum-global-dimension-size-150));
198
- }
199
-
200
- ._7mdQq_spectrum-Search-input._7mdQq_spectrum-Search-input {
201
- -webkit-appearance: none;
202
- outline-offset: -2px;
203
- text-indent: 0;
204
- padding-inline-end: var(--spectrum-global-dimension-size-350);
205
- display: block;
206
- }
207
-
208
- ._7mdQq_spectrum-Search-input._7mdQq_spectrum-Search-input::-webkit-search-cancel-button {
209
- -webkit-appearance: none;
210
- }
211
-
212
- ._7mdQq_spectrum-Search-input._7mdQq_spectrum-Search-input::-webkit-search-decoration {
213
- -webkit-appearance: none;
214
- }
215
-
216
- ._7mdQq_spectrum-Textfield._7mdQq_spectrum-Search--invalid ._7mdQq_spectrum-Search-input._7mdQq_spectrum-Search-input {
217
- padding-inline-end: calc(var(--spectrum-global-dimension-size-350) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)) + var(--spectrum-icon-alert-medium-width, var(--spectrum-global-dimension-size-225)) + var(--spectrum-textfield-icon-margin-left, var(--spectrum-global-dimension-size-150)));
218
- }
219
-
220
- ._7mdQq_spectrum-Textfield._7mdQq_spectrum-Search--valid ._7mdQq_spectrum-Search-input._7mdQq_spectrum-Search-input, ._7mdQq_spectrum-Textfield._7mdQq_spectrum-Search--loadable ._7mdQq_spectrum-Search-input._7mdQq_spectrum-Search-input {
221
- padding-inline-end: calc(var(--spectrum-global-dimension-size-350) + var(--spectrum-textfield-padding-x, var(--spectrum-global-dimension-size-150)) + var(--spectrum-icon-checkmark-medium-width) + var(--spectrum-textfield-icon-margin-left, var(--spectrum-global-dimension-size-150)));
222
- }
223
- /*# sourceMappingURL=searchfield.2a1341cb.css.map */
@@ -1 +0,0 @@
1
- {"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAQJ;;;;;AAIE;;;;;;;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAYA;;;;AAIA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAIA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAKA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAKA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAKA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAAA;;;;AAMF;;;;;;;;AAgBE;;;;AAAA;;;;AAKA;;;;AAIA","sources":["packages/@adobe/spectrum-css-temp/components/search/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n"],"names":[],"version":3,"file":"searchfield.2a1341cb.css.map"}
package/dist/types.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import { ReactElement, Ref } from "react";
2
- import { SpectrumSearchFieldProps } from "@react-types/searchfield";
3
- import { TextFieldRef } from "@react-types/textfield";
4
- /**
5
- * A SearchField is a text field designed for searches.
6
- */
7
- export const SearchField: (props: SpectrumSearchFieldProps & {
8
- ref?: Ref<TextFieldRef>;
9
- }) => ReactElement;
10
- export type { SpectrumSearchFieldProps } from '@react-types/searchfield';
11
-
12
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"mappings":";;;AAyBA;;GAEG;AACH,OAAO,MAAM,aAqEP,CAAC,KAAK,EAAE,wBAAwB,GAAG;IAAC,GAAG,CAAC,EAAE,IAAI,YAAY,CAAC,CAAA;CAAC,KAAK,YAAY,CAAC;AClFpF,YAAY,EAAC,wBAAwB,EAAC,MAAM,0BAA0B,CAAC","sources":["packages/@react-spectrum/searchfield/src/packages/@react-spectrum/searchfield/src/SearchField.tsx","packages/@react-spectrum/searchfield/src/packages/@react-spectrum/searchfield/src/index.ts","packages/@react-spectrum/searchfield/src/index.ts"],"sourcesContent":[null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {SearchField} from './SearchField';\nexport type {SpectrumSearchFieldProps} from '@react-types/searchfield';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -1,98 +0,0 @@
1
- /*
2
- * Copyright 2020 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
- import {classNames, useSlotProps} from '@react-spectrum/utils';
14
- import {ClearButton} from '@react-spectrum/button';
15
- import Magnifier from '@spectrum-icons/ui/Magnifier';
16
- import React, {forwardRef, ReactElement, Ref, useEffect, useRef} from 'react';
17
- import {SpectrumSearchFieldProps} from '@react-types/searchfield';
18
- import styles from '@adobe/spectrum-css-temp/components/search/vars.css';
19
- import {TextFieldBase} from '@react-spectrum/textfield';
20
- import {TextFieldRef} from '@react-types/textfield';
21
- import {useFormProps} from '@react-spectrum/form';
22
- import {useProviderProps} from '@react-spectrum/provider';
23
- import {useSearchField} from '@react-aria/searchfield';
24
- import {useSearchFieldState} from '@react-stately/searchfield';
25
-
26
- /**
27
- * A SearchField is a text field designed for searches.
28
- */
29
- export const SearchField = forwardRef(function SearchField(props: SpectrumSearchFieldProps, ref: Ref<TextFieldRef>) {
30
- props = useSlotProps(props, 'searchfield');
31
- props = useProviderProps(props);
32
- props = useFormProps(props);
33
- let defaultIcon = (
34
- <Magnifier data-testid="searchicon" />
35
- );
36
-
37
- let {
38
- icon = defaultIcon,
39
- isDisabled,
40
- UNSAFE_className,
41
- placeholder,
42
- ...otherProps
43
- } = props;
44
-
45
- let hasWarned = useRef(false);
46
- useEffect(() => {
47
- if (placeholder && !hasWarned.current && process.env.NODE_ENV !== 'production') {
48
- console.warn('Placeholders are deprecated due to accessibility issues. Please use help text instead. See the docs for details: https://react-spectrum.adobe.com/react-spectrum/SearchField.html#help-text');
49
- hasWarned.current = true;
50
- }
51
- }, [placeholder]);
52
-
53
- let state = useSearchFieldState(props);
54
- let inputRef = useRef<HTMLInputElement>(null);
55
- let {clearButtonProps, ...result} = useSearchField(props, state, inputRef);
56
-
57
- let clearButton = (
58
- <ClearButton
59
- {...clearButtonProps}
60
- preventFocus
61
- UNSAFE_className={
62
- classNames(
63
- styles,
64
- 'spectrum-ClearButton'
65
- )
66
- }
67
- isDisabled={isDisabled} />
68
- );
69
-
70
- let validationState = props.validationState || (result.isInvalid ? 'invalid' : undefined);
71
-
72
- return (
73
- <TextFieldBase
74
- {...otherProps}
75
- {...result}
76
- validationState={validationState}
77
- UNSAFE_className={
78
- classNames(
79
- styles,
80
- 'spectrum-Search',
81
- 'spectrum-Textfield',
82
- {
83
- 'is-disabled': isDisabled,
84
- 'is-quiet': props.isQuiet,
85
- 'spectrum-Search--invalid': validationState === 'invalid' && !isDisabled,
86
- 'spectrum-Search--valid': validationState === 'valid' && !isDisabled
87
- },
88
- UNSAFE_className
89
- )
90
- }
91
- inputClassName={classNames(styles, 'spectrum-Search-input')}
92
- ref={ref}
93
- inputRef={inputRef}
94
- isDisabled={isDisabled}
95
- icon={icon}
96
- wrapperChildren={(state.value !== '' && !props.isReadOnly) ? clearButton : undefined} />
97
- );
98
- }) as (props: SpectrumSearchFieldProps & {ref?: Ref<TextFieldRef>}) => ReactElement;