@spectrum-web-components/search 1.1.0 → 1.2.0-beta.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.
Files changed (45) hide show
  1. package/package.json +7 -7
  2. package/sp-search.d.ts +6 -0
  3. package/sp-search.dev.js +5 -0
  4. package/sp-search.dev.js.map +7 -0
  5. package/sp-search.js +2 -0
  6. package/sp-search.js.map +7 -0
  7. package/src/Search.d.ts +26 -0
  8. package/src/Search.dev.js +128 -0
  9. package/src/Search.dev.js.map +7 -0
  10. package/src/Search.js +27 -0
  11. package/src/Search.js.map +7 -0
  12. package/src/index.d.ts +1 -0
  13. package/src/index.dev.js +3 -0
  14. package/src/index.dev.js.map +7 -0
  15. package/src/index.js +2 -0
  16. package/src/index.js.map +7 -0
  17. package/src/search-overrides.css.d.ts +2 -0
  18. package/src/search-overrides.css.dev.js +7 -0
  19. package/src/search-overrides.css.dev.js.map +7 -0
  20. package/src/search-overrides.css.js +4 -0
  21. package/src/search-overrides.css.js.map +7 -0
  22. package/src/search.css.d.ts +2 -0
  23. package/src/search.css.dev.js +7 -0
  24. package/src/search.css.dev.js.map +7 -0
  25. package/src/search.css.js +4 -0
  26. package/src/search.css.js.map +7 -0
  27. package/src/spectrum-search.css.d.ts +2 -0
  28. package/src/spectrum-search.css.dev.js +7 -0
  29. package/src/spectrum-search.css.dev.js.map +7 -0
  30. package/src/spectrum-search.css.js +4 -0
  31. package/src/spectrum-search.css.js.map +7 -0
  32. package/stories/search-sizes.stories.js +30 -0
  33. package/stories/search-sizes.stories.js.map +7 -0
  34. package/stories/search.stories.js +27 -0
  35. package/stories/search.stories.js.map +7 -0
  36. package/test/benchmark/test-basic.js +14 -0
  37. package/test/benchmark/test-basic.js.map +7 -0
  38. package/test/search-memory.test.js +8 -0
  39. package/test/search-memory.test.js.map +7 -0
  40. package/test/search-sizes.test-vrt.js +5 -0
  41. package/test/search-sizes.test-vrt.js.map +7 -0
  42. package/test/search.test-vrt.js +5 -0
  43. package/test/search.test-vrt.js.map +7 -0
  44. package/test/search.test.js +181 -0
  45. package/test/search.test.js.map +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/search",
3
- "version": "1.1.0",
3
+ "version": "1.2.0-beta.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -58,11 +58,11 @@
58
58
  "lit-html"
59
59
  ],
60
60
  "dependencies": {
61
- "@spectrum-web-components/base": "^1.1.0",
62
- "@spectrum-web-components/button": "^1.1.0",
63
- "@spectrum-web-components/icon": "^1.1.0",
64
- "@spectrum-web-components/icons-workflow": "^1.1.0",
65
- "@spectrum-web-components/textfield": "^1.1.0"
61
+ "@spectrum-web-components/base": "^1.2.0-beta.0",
62
+ "@spectrum-web-components/button": "^1.2.0-beta.0",
63
+ "@spectrum-web-components/icon": "^1.2.0-beta.0",
64
+ "@spectrum-web-components/icons-workflow": "^1.2.0-beta.0",
65
+ "@spectrum-web-components/textfield": "^1.2.0-beta.0"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@spectrum-css/search": "8.0.0-s2-foundations.18"
@@ -73,5 +73,5 @@
73
73
  "./sp-*.js",
74
74
  "./**/*.dev.js"
75
75
  ],
76
- "gitHead": "e3c6e52501451acc6fa85b10dd718267b80a01ab"
76
+ "gitHead": "809bd734313fe289067108bf1dea2a48cc103a9f"
77
77
  }
package/sp-search.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { Search } from './src/Search.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'sp-search': Search;
5
+ }
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ import { Search } from "./src/Search.dev.js";
3
+ import { defineElement } from "@spectrum-web-components/base/src/define-element.js";
4
+ defineElement("sp-search", Search);
5
+ //# sourceMappingURL=sp-search.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-search.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { Search } from './src/Search.dev.js'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-search', Search);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-search': Search;\n }\n}\n"],
5
+ "mappings": ";AAWA,SAAS,cAAc;AACvB,SAAS,qBAAqB;AAE9B,cAAc,aAAa,MAAM;",
6
+ "names": []
7
+ }
package/sp-search.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";import{Search as e}from"./src/Search.js";import{defineElement as a}from"@spectrum-web-components/base/src/define-element.js";a("sp-search",e);
2
+ //# sourceMappingURL=sp-search.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-search.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { Search } from './src/Search.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-search', Search);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-search': Search;\n }\n}\n"],
5
+ "mappings": "aAWA,OAAS,UAAAA,MAAc,kBACvB,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,YAAaD,CAAM",
6
+ "names": ["Search", "defineElement"]
7
+ }
@@ -0,0 +1,26 @@
1
+ import { CSSResultArray, PropertyValues, TemplateResult } from '@spectrum-web-components/base';
2
+ import { Textfield } from '@spectrum-web-components/textfield';
3
+ import '@spectrum-web-components/button/sp-clear-button.js';
4
+ import '@spectrum-web-components/icons-workflow/icons/sp-icon-search.js';
5
+ /**
6
+ * @element sp-search
7
+ * @slot help-text - default or non-negative help text to associate to your form element
8
+ * @slot negative-help-text - negative help text to associate to your form element when `invalid`
9
+ *
10
+ * @fires submit - The search form has been submitted.
11
+ */
12
+ export declare class Search extends Textfield {
13
+ static get styles(): CSSResultArray;
14
+ action: string;
15
+ label: string;
16
+ method?: 'get' | 'post' | 'dialog';
17
+ placeholder: string;
18
+ holdValueOnEscape: boolean;
19
+ form: HTMLFormElement;
20
+ private handleSubmit;
21
+ private handleKeydown;
22
+ reset(): Promise<void>;
23
+ protected renderField(): TemplateResult;
24
+ firstUpdated(changedProperties: PropertyValues): void;
25
+ willUpdate(): void;
26
+ }
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __decorateClass = (decorators, target, key, kind) => {
5
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
6
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
7
+ if (decorator = decorators[i])
8
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9
+ if (kind && result) __defProp(target, key, result);
10
+ return result;
11
+ };
12
+ import {
13
+ html,
14
+ nothing
15
+ } from "@spectrum-web-components/base";
16
+ import {
17
+ property,
18
+ query
19
+ } from "@spectrum-web-components/base/src/decorators.js";
20
+ import { ifDefined } from "@spectrum-web-components/base/src/directives.js";
21
+ import { Textfield } from "@spectrum-web-components/textfield";
22
+ import "@spectrum-web-components/button/sp-clear-button.js";
23
+ import "@spectrum-web-components/icons-workflow/icons/sp-icon-search.js";
24
+ import searchStyles from "./search.css.js";
25
+ const stopPropagation = (event) => event.stopPropagation();
26
+ export class Search extends Textfield {
27
+ constructor() {
28
+ super(...arguments);
29
+ this.action = "";
30
+ this.label = "Search";
31
+ this.placeholder = "Search";
32
+ }
33
+ static get styles() {
34
+ return [...super.styles, searchStyles];
35
+ }
36
+ handleSubmit(event) {
37
+ const applyDefault = this.dispatchEvent(
38
+ new Event("submit", {
39
+ cancelable: true,
40
+ bubbles: true
41
+ })
42
+ );
43
+ if (!applyDefault) {
44
+ event.preventDefault();
45
+ }
46
+ }
47
+ handleKeydown(event) {
48
+ const { code } = event;
49
+ if (code === "Escape" && this.holdValueOnEscape) {
50
+ return;
51
+ }
52
+ if (!this.value || code !== "Escape") {
53
+ return;
54
+ }
55
+ this.reset();
56
+ }
57
+ async reset() {
58
+ this.value = "";
59
+ await this.updateComplete;
60
+ this.focusElement.dispatchEvent(
61
+ new InputEvent("input", {
62
+ bubbles: true,
63
+ composed: true
64
+ })
65
+ );
66
+ this.focusElement.dispatchEvent(
67
+ new InputEvent("change", {
68
+ bubbles: true
69
+ })
70
+ );
71
+ }
72
+ renderField() {
73
+ return html`
74
+ <form
75
+ action=${this.action}
76
+ id="form"
77
+ method=${ifDefined(this.method)}
78
+ @submit=${this.handleSubmit}
79
+ @reset=${this.reset}
80
+ @keydown=${this.handleKeydown}
81
+ >
82
+ <sp-icon-search
83
+ size=${this.size}
84
+ class="icon magnifier icon-workflow icon-search"
85
+ ></sp-icon-search>
86
+ ${super.renderField()}
87
+ ${this.value ? html`
88
+ <sp-clear-button
89
+ id="button"
90
+ label="Reset"
91
+ tabindex="-1"
92
+ type="reset"
93
+ size=${ifDefined(this.size)}
94
+ @keydown=${stopPropagation}
95
+ ></sp-clear-button>
96
+ ` : nothing}
97
+ </form>
98
+ `;
99
+ }
100
+ firstUpdated(changedProperties) {
101
+ super.firstUpdated(changedProperties);
102
+ if (!this.hasAttribute("holdValueOnEscape")) {
103
+ this.inputElement.setAttribute("type", "search");
104
+ }
105
+ }
106
+ willUpdate() {
107
+ this.multiline = false;
108
+ }
109
+ }
110
+ __decorateClass([
111
+ property()
112
+ ], Search.prototype, "action", 2);
113
+ __decorateClass([
114
+ property()
115
+ ], Search.prototype, "label", 2);
116
+ __decorateClass([
117
+ property()
118
+ ], Search.prototype, "method", 2);
119
+ __decorateClass([
120
+ property()
121
+ ], Search.prototype, "placeholder", 2);
122
+ __decorateClass([
123
+ property({ type: Boolean })
124
+ ], Search.prototype, "holdValueOnEscape", 2);
125
+ __decorateClass([
126
+ query("#form")
127
+ ], Search.prototype, "form", 2);
128
+ //# sourceMappingURL=Search.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["Search.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n nothing,\n PropertyValues,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n query,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nimport { Textfield } from '@spectrum-web-components/textfield';\nimport '@spectrum-web-components/button/sp-clear-button.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-search.js';\n\nimport searchStyles from './search.css.js';\n\nconst stopPropagation = (event: Event): void => event.stopPropagation();\n\n/**\n * @element sp-search\n * @slot help-text - default or non-negative help text to associate to your form element\n * @slot negative-help-text - negative help text to associate to your form element when `invalid`\n *\n * @fires submit - The search form has been submitted.\n */\nexport class Search extends Textfield {\n public static override get styles(): CSSResultArray {\n return [...super.styles, searchStyles];\n }\n\n @property()\n public action = '';\n\n @property()\n public override label = 'Search';\n\n @property()\n public method?: 'get' | 'post' | 'dialog';\n\n @property()\n public override placeholder = 'Search';\n\n @property({ type: Boolean })\n public holdValueOnEscape!: boolean;\n\n @query('#form')\n public form!: HTMLFormElement;\n\n private handleSubmit(event: Event): void {\n const applyDefault = this.dispatchEvent(\n new Event('submit', {\n cancelable: true,\n bubbles: true,\n })\n );\n if (!applyDefault) {\n event.preventDefault();\n }\n }\n\n private handleKeydown(event: KeyboardEvent): void {\n const { code } = event;\n if (code === 'Escape' && this.holdValueOnEscape) {\n return;\n }\n if (!this.value || code !== 'Escape') {\n return;\n }\n this.reset();\n }\n\n public async reset(): Promise<void> {\n this.value = '';\n await this.updateComplete;\n this.focusElement.dispatchEvent(\n new InputEvent('input', {\n bubbles: true,\n composed: true,\n })\n );\n // The native `change` event on an `input` element is not composed,\n // so this synthetic replication of a `change` event must not be\n // either as the `Textfield` baseclass should only need to handle\n // the native variant of this interaction.\n this.focusElement.dispatchEvent(\n new InputEvent('change', {\n bubbles: true,\n })\n );\n }\n\n protected override renderField(): TemplateResult {\n return html`\n <form\n action=${this.action}\n id=\"form\"\n method=${ifDefined(this.method)}\n @submit=${this.handleSubmit}\n @reset=${this.reset}\n @keydown=${this.handleKeydown}\n >\n <sp-icon-search\n size=${this.size}\n class=\"icon magnifier icon-workflow icon-search\"\n ></sp-icon-search>\n ${super.renderField()}\n ${this.value\n ? html`\n <sp-clear-button\n id=\"button\"\n label=\"Reset\"\n tabindex=\"-1\"\n type=\"reset\"\n size=${ifDefined(this.size)}\n @keydown=${stopPropagation}\n ></sp-clear-button>\n `\n : nothing}\n </form>\n `;\n }\n\n public override firstUpdated(changedProperties: PropertyValues): void {\n super.firstUpdated(changedProperties);\n // if holdValueOnEscape is not set, default to search type\n if (!this.hasAttribute('holdValueOnEscape')) {\n this.inputElement.setAttribute('type', 'search');\n }\n }\n\n public override willUpdate(): void {\n this.multiline = false;\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,EACA;AAAA,OAGG;AACP;AAAA,EACI;AAAA,EACA;AAAA,OACG;AACP,SAAS,iBAAiB;AAE1B,SAAS,iBAAiB;AAC1B,OAAO;AACP,OAAO;AAEP,OAAO,kBAAkB;AAEzB,MAAM,kBAAkB,CAAC,UAAuB,MAAM,gBAAgB;AAS/D,aAAM,eAAe,UAAU;AAAA,EAA/B;AAAA;AAMH,SAAO,SAAS;AAGhB,SAAgB,QAAQ;AAMxB,SAAgB,cAAc;AAAA;AAAA,EAd9B,WAA2B,SAAyB;AAChD,WAAO,CAAC,GAAG,MAAM,QAAQ,YAAY;AAAA,EACzC;AAAA,EAoBQ,aAAa,OAAoB;AACrC,UAAM,eAAe,KAAK;AAAA,MACtB,IAAI,MAAM,UAAU;AAAA,QAChB,YAAY;AAAA,QACZ,SAAS;AAAA,MACb,CAAC;AAAA,IACL;AACA,QAAI,CAAC,cAAc;AACf,YAAM,eAAe;AAAA,IACzB;AAAA,EACJ;AAAA,EAEQ,cAAc,OAA4B;AAC9C,UAAM,EAAE,KAAK,IAAI;AACjB,QAAI,SAAS,YAAY,KAAK,mBAAmB;AAC7C;AAAA,IACJ;AACA,QAAI,CAAC,KAAK,SAAS,SAAS,UAAU;AAClC;AAAA,IACJ;AACA,SAAK,MAAM;AAAA,EACf;AAAA,EAEA,MAAa,QAAuB;AAChC,SAAK,QAAQ;AACb,UAAM,KAAK;AACX,SAAK,aAAa;AAAA,MACd,IAAI,WAAW,SAAS;AAAA,QACpB,SAAS;AAAA,QACT,UAAU;AAAA,MACd,CAAC;AAAA,IACL;AAKA,SAAK,aAAa;AAAA,MACd,IAAI,WAAW,UAAU;AAAA,QACrB,SAAS;AAAA,MACb,CAAC;AAAA,IACL;AAAA,EACJ;AAAA,EAEmB,cAA8B;AAC7C,WAAO;AAAA;AAAA,yBAEU,KAAK,MAAM;AAAA;AAAA,yBAEX,UAAU,KAAK,MAAM,CAAC;AAAA,0BACrB,KAAK,YAAY;AAAA,yBAClB,KAAK,KAAK;AAAA,2BACR,KAAK,aAAa;AAAA;AAAA;AAAA,2BAGlB,KAAK,IAAI;AAAA;AAAA;AAAA,kBAGlB,MAAM,YAAY,CAAC;AAAA,kBACnB,KAAK,QACD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAMe,UAAU,KAAK,IAAI,CAAC;AAAA,yCAChB,eAAe;AAAA;AAAA,0BAGlC,OAAO;AAAA;AAAA;AAAA,EAGzB;AAAA,EAEgB,aAAa,mBAAyC;AAClE,UAAM,aAAa,iBAAiB;AAEpC,QAAI,CAAC,KAAK,aAAa,mBAAmB,GAAG;AACzC,WAAK,aAAa,aAAa,QAAQ,QAAQ;AAAA,IACnD;AAAA,EACJ;AAAA,EAEgB,aAAmB;AAC/B,SAAK,YAAY;AAAA,EACrB;AACJ;AAtGW;AAAA,EADN,SAAS;AAAA,GALD,OAMF;AAGS;AAAA,EADf,SAAS;AAAA,GARD,OASO;AAGT;AAAA,EADN,SAAS;AAAA,GAXD,OAYF;AAGS;AAAA,EADf,SAAS;AAAA,GAdD,OAeO;AAGT;AAAA,EADN,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GAjBlB,OAkBF;AAGA;AAAA,EADN,MAAM,OAAO;AAAA,GApBL,OAqBF;",
6
+ "names": []
7
+ }
package/src/Search.js ADDED
@@ -0,0 +1,27 @@
1
+ "use strict";var d=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var s=(r,o,e,t)=>{for(var i=t>1?void 0:t?c(o,e):o,a=r.length-1,n;a>=0;a--)(n=r[a])&&(i=(t?n(o,e,i):n(i))||i);return t&&i&&d(o,e,i),i};import{html as p,nothing as h}from"@spectrum-web-components/base";import{property as l,query as m}from"@spectrum-web-components/base/src/decorators.js";import{ifDefined as u}from"@spectrum-web-components/base/src/directives.js";import{Textfield as b}from"@spectrum-web-components/textfield";import"@spectrum-web-components/button/sp-clear-button.js";import"@spectrum-web-components/icons-workflow/icons/sp-icon-search.js";import f from"./search.css.js";const v=r=>r.stopPropagation();export class Search extends b{constructor(){super(...arguments);this.action="";this.label="Search";this.placeholder="Search"}static get styles(){return[...super.styles,f]}handleSubmit(e){this.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))||e.preventDefault()}handleKeydown(e){const{code:t}=e;t==="Escape"&&this.holdValueOnEscape||!this.value||t!=="Escape"||this.reset()}async reset(){this.value="",await this.updateComplete,this.focusElement.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.focusElement.dispatchEvent(new InputEvent("change",{bubbles:!0}))}renderField(){return p`
2
+ <form
3
+ action=${this.action}
4
+ id="form"
5
+ method=${u(this.method)}
6
+ @submit=${this.handleSubmit}
7
+ @reset=${this.reset}
8
+ @keydown=${this.handleKeydown}
9
+ >
10
+ <sp-icon-search
11
+ size=${this.size}
12
+ class="icon magnifier icon-workflow icon-search"
13
+ ></sp-icon-search>
14
+ ${super.renderField()}
15
+ ${this.value?p`
16
+ <sp-clear-button
17
+ id="button"
18
+ label="Reset"
19
+ tabindex="-1"
20
+ type="reset"
21
+ size=${u(this.size)}
22
+ @keydown=${v}
23
+ ></sp-clear-button>
24
+ `:h}
25
+ </form>
26
+ `}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("holdValueOnEscape")||this.inputElement.setAttribute("type","search")}willUpdate(){this.multiline=!1}}s([l()],Search.prototype,"action",2),s([l()],Search.prototype,"label",2),s([l()],Search.prototype,"method",2),s([l()],Search.prototype,"placeholder",2),s([l({type:Boolean})],Search.prototype,"holdValueOnEscape",2),s([m("#form")],Search.prototype,"form",2);
27
+ //# sourceMappingURL=Search.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["Search.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n nothing,\n PropertyValues,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n query,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nimport { Textfield } from '@spectrum-web-components/textfield';\nimport '@spectrum-web-components/button/sp-clear-button.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-search.js';\n\nimport searchStyles from './search.css.js';\n\nconst stopPropagation = (event: Event): void => event.stopPropagation();\n\n/**\n * @element sp-search\n * @slot help-text - default or non-negative help text to associate to your form element\n * @slot negative-help-text - negative help text to associate to your form element when `invalid`\n *\n * @fires submit - The search form has been submitted.\n */\nexport class Search extends Textfield {\n public static override get styles(): CSSResultArray {\n return [...super.styles, searchStyles];\n }\n\n @property()\n public action = '';\n\n @property()\n public override label = 'Search';\n\n @property()\n public method?: 'get' | 'post' | 'dialog';\n\n @property()\n public override placeholder = 'Search';\n\n @property({ type: Boolean })\n public holdValueOnEscape!: boolean;\n\n @query('#form')\n public form!: HTMLFormElement;\n\n private handleSubmit(event: Event): void {\n const applyDefault = this.dispatchEvent(\n new Event('submit', {\n cancelable: true,\n bubbles: true,\n })\n );\n if (!applyDefault) {\n event.preventDefault();\n }\n }\n\n private handleKeydown(event: KeyboardEvent): void {\n const { code } = event;\n if (code === 'Escape' && this.holdValueOnEscape) {\n return;\n }\n if (!this.value || code !== 'Escape') {\n return;\n }\n this.reset();\n }\n\n public async reset(): Promise<void> {\n this.value = '';\n await this.updateComplete;\n this.focusElement.dispatchEvent(\n new InputEvent('input', {\n bubbles: true,\n composed: true,\n })\n );\n // The native `change` event on an `input` element is not composed,\n // so this synthetic replication of a `change` event must not be\n // either as the `Textfield` baseclass should only need to handle\n // the native variant of this interaction.\n this.focusElement.dispatchEvent(\n new InputEvent('change', {\n bubbles: true,\n })\n );\n }\n\n protected override renderField(): TemplateResult {\n return html`\n <form\n action=${this.action}\n id=\"form\"\n method=${ifDefined(this.method)}\n @submit=${this.handleSubmit}\n @reset=${this.reset}\n @keydown=${this.handleKeydown}\n >\n <sp-icon-search\n size=${this.size}\n class=\"icon magnifier icon-workflow icon-search\"\n ></sp-icon-search>\n ${super.renderField()}\n ${this.value\n ? html`\n <sp-clear-button\n id=\"button\"\n label=\"Reset\"\n tabindex=\"-1\"\n type=\"reset\"\n size=${ifDefined(this.size)}\n @keydown=${stopPropagation}\n ></sp-clear-button>\n `\n : nothing}\n </form>\n `;\n }\n\n public override firstUpdated(changedProperties: PropertyValues): void {\n super.firstUpdated(changedProperties);\n // if holdValueOnEscape is not set, default to search type\n if (!this.hasAttribute('holdValueOnEscape')) {\n this.inputElement.setAttribute('type', 'search');\n }\n }\n\n public override willUpdate(): void {\n this.multiline = false;\n }\n}\n"],
5
+ "mappings": "qNAYA,OAEI,QAAAA,EACA,WAAAC,MAGG,gCACP,OACI,YAAAC,EACA,SAAAC,MACG,kDACP,OAAS,aAAAC,MAAiB,kDAE1B,OAAS,aAAAC,MAAiB,qCAC1B,MAAO,qDACP,MAAO,kEAEP,OAAOC,MAAkB,kBAEzB,MAAMC,EAAmBC,GAAuBA,EAAM,gBAAgB,EAS/D,aAAM,eAAeH,CAAU,CAA/B,kCAMH,KAAO,OAAS,GAGhB,KAAgB,MAAQ,SAMxB,KAAgB,YAAc,SAd9B,WAA2B,QAAyB,CAChD,MAAO,CAAC,GAAG,MAAM,OAAQC,CAAY,CACzC,CAoBQ,aAAaE,EAAoB,CAChB,KAAK,cACtB,IAAI,MAAM,SAAU,CAChB,WAAY,GACZ,QAAS,EACb,CAAC,CACL,GAEIA,EAAM,eAAe,CAE7B,CAEQ,cAAcA,EAA4B,CAC9C,KAAM,CAAE,KAAAC,CAAK,EAAID,EACbC,IAAS,UAAY,KAAK,mBAG1B,CAAC,KAAK,OAASA,IAAS,UAG5B,KAAK,MAAM,CACf,CAEA,MAAa,OAAuB,CAChC,KAAK,MAAQ,GACb,MAAM,KAAK,eACX,KAAK,aAAa,cACd,IAAI,WAAW,QAAS,CACpB,QAAS,GACT,SAAU,EACd,CAAC,CACL,EAKA,KAAK,aAAa,cACd,IAAI,WAAW,SAAU,CACrB,QAAS,EACb,CAAC,CACL,CACJ,CAEmB,aAA8B,CAC7C,OAAOT;AAAA;AAAA,yBAEU,KAAK,MAAM;AAAA;AAAA,yBAEXI,EAAU,KAAK,MAAM,CAAC;AAAA,0BACrB,KAAK,YAAY;AAAA,yBAClB,KAAK,KAAK;AAAA,2BACR,KAAK,aAAa;AAAA;AAAA;AAAA,2BAGlB,KAAK,IAAI;AAAA;AAAA;AAAA,kBAGlB,MAAM,YAAY,CAAC;AAAA,kBACnB,KAAK,MACDJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAMeI,EAAU,KAAK,IAAI,CAAC;AAAA,yCAChBG,CAAe;AAAA;AAAA,wBAGlCN,CAAO;AAAA;AAAA,SAGzB,CAEgB,aAAaS,EAAyC,CAClE,MAAM,aAAaA,CAAiB,EAE/B,KAAK,aAAa,mBAAmB,GACtC,KAAK,aAAa,aAAa,OAAQ,QAAQ,CAEvD,CAEgB,YAAmB,CAC/B,KAAK,UAAY,EACrB,CACJ,CAtGWC,EAAA,CADNT,EAAS,GALD,OAMF,sBAGSS,EAAA,CADfT,EAAS,GARD,OASO,qBAGTS,EAAA,CADNT,EAAS,GAXD,OAYF,sBAGSS,EAAA,CADfT,EAAS,GAdD,OAeO,2BAGTS,EAAA,CADNT,EAAS,CAAE,KAAM,OAAQ,CAAC,GAjBlB,OAkBF,iCAGAS,EAAA,CADNR,EAAM,OAAO,GApBL,OAqBF",
6
+ "names": ["html", "nothing", "property", "query", "ifDefined", "Textfield", "searchStyles", "stopPropagation", "event", "code", "changedProperties", "__decorateClass"]
7
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './Search.js';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ export * from "./Search.dev.js";
3
+ //# sourceMappingURL=index.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["index.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nexport * from './Search.dev.js'\n"],
5
+ "mappings": ";AAWA,cAAc;",
6
+ "names": []
7
+ }
package/src/index.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";export*from"./Search.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["index.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nexport * from './Search.js';\n"],
5
+ "mappings": "aAWA,WAAc",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const styles: import("@spectrum-web-components/base").CSSResult;
2
+ export default styles;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ import { css } from "@spectrum-web-components/base";
3
+ const styles = css`
4
+ :host{--spectrum-search-border-color-default:var(--system-search-border-color-default);--spectrum-search-border-color-hover:var(--system-search-border-color-hover);--spectrum-search-border-color-focus:var(--system-search-border-color-focus);--spectrum-search-border-color-focus-hover:var(--system-search-border-color-focus-hover);--spectrum-search-border-color-key-focus:var(--system-search-border-color-key-focus);--spectrum-search-inline-size:var(--system-search-inline-size);--spectrum-search-min-inline-multiplier:var(--system-search-min-inline-multiplier);--spectrum-search-to-help-text:var(--system-search-to-help-text);--spectrum-search-top-to-text:var(--system-search-top-to-text);--spectrum-search-bottom-to-text:var(--system-search-bottom-to-text);--spectrum-search-focus-indicator-thickness:var(--system-search-focus-indicator-thickness);--spectrum-search-focus-indicator-gap:var(--system-search-focus-indicator-gap);--spectrum-search-focus-indicator-color:var(--system-search-focus-indicator-color);--spectrum-search-font-family:var(--system-search-font-family);--spectrum-search-font-weight:var(--system-search-font-weight);--spectrum-search-font-style:var(--system-search-font-style);--spectrum-search-line-height:var(--system-search-line-height);--spectrum-search-color-default:var(--system-search-color-default);--spectrum-search-color-hover:var(--system-search-color-hover);--spectrum-search-color-focus:var(--system-search-color-focus);--spectrum-search-color-focus-hover:var(--system-search-color-focus-hover);--spectrum-search-color-key-focus:var(--system-search-color-key-focus);--spectrum-search-border-width:var(--system-search-border-width);--spectrum-search-background-color:var(--system-search-background-color);--spectrum-search-color-disabled:var(--system-search-color-disabled);--spectrum-search-background-color-disabled:var(--system-search-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-border-color-disabled);--spectrum-search-border-radius:var(--system-search-border-radius);--spectrum-search-edge-to-visual:var(--system-search-edge-to-visual);--spectrum-search-block-size:var(--system-search-block-size);--spectrum-search-icon-size:var(--system-search-icon-size);--spectrum-search-text-to-icon:var(--system-search-text-to-icon)}:host([size=m]) #textfield{--spectrum-search-border-radius:var(--system-search-size-m-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-m-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-m-block-size);--spectrum-search-icon-size:var(--system-search-size-m-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-m-text-to-icon)}:host([size=s]) #textfield{--spectrum-search-border-radius:var(--system-search-size-s-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-s-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-s-block-size);--spectrum-search-icon-size:var(--system-search-size-s-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-s-text-to-icon)}:host([size=l]) #textfield{--spectrum-search-border-radius:var(--system-search-size-l-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-l-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-l-block-size);--spectrum-search-icon-size:var(--system-search-size-l-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-l-text-to-icon)}:host([size=xl]) #textfield{--spectrum-search-border-radius:var(--system-search-size-xl-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-xl-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-xl-block-size);--spectrum-search-icon-size:var(--system-search-size-xl-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-xl-text-to-icon)}:host([quiet]){--spectrum-search-background-color:var(--system-search-quiet-background-color);--spectrum-search-background-color-disabled:var(--system-search-quiet-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-quiet-border-color-disabled);--spectrum-search-border-radius:var(--system-search-quiet-border-radius);--spectrum-search-edge-to-visual:var(--system-search-quiet-edge-to-visual)}
5
+ `;
6
+ export default styles;
7
+ //# sourceMappingURL=search-overrides.css.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["search-overrides.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2025 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-search-border-color-default:var(--system-search-border-color-default);--spectrum-search-border-color-hover:var(--system-search-border-color-hover);--spectrum-search-border-color-focus:var(--system-search-border-color-focus);--spectrum-search-border-color-focus-hover:var(--system-search-border-color-focus-hover);--spectrum-search-border-color-key-focus:var(--system-search-border-color-key-focus);--spectrum-search-inline-size:var(--system-search-inline-size);--spectrum-search-min-inline-multiplier:var(--system-search-min-inline-multiplier);--spectrum-search-to-help-text:var(--system-search-to-help-text);--spectrum-search-top-to-text:var(--system-search-top-to-text);--spectrum-search-bottom-to-text:var(--system-search-bottom-to-text);--spectrum-search-focus-indicator-thickness:var(--system-search-focus-indicator-thickness);--spectrum-search-focus-indicator-gap:var(--system-search-focus-indicator-gap);--spectrum-search-focus-indicator-color:var(--system-search-focus-indicator-color);--spectrum-search-font-family:var(--system-search-font-family);--spectrum-search-font-weight:var(--system-search-font-weight);--spectrum-search-font-style:var(--system-search-font-style);--spectrum-search-line-height:var(--system-search-line-height);--spectrum-search-color-default:var(--system-search-color-default);--spectrum-search-color-hover:var(--system-search-color-hover);--spectrum-search-color-focus:var(--system-search-color-focus);--spectrum-search-color-focus-hover:var(--system-search-color-focus-hover);--spectrum-search-color-key-focus:var(--system-search-color-key-focus);--spectrum-search-border-width:var(--system-search-border-width);--spectrum-search-background-color:var(--system-search-background-color);--spectrum-search-color-disabled:var(--system-search-color-disabled);--spectrum-search-background-color-disabled:var(--system-search-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-border-color-disabled);--spectrum-search-border-radius:var(--system-search-border-radius);--spectrum-search-edge-to-visual:var(--system-search-edge-to-visual);--spectrum-search-block-size:var(--system-search-block-size);--spectrum-search-icon-size:var(--system-search-icon-size);--spectrum-search-text-to-icon:var(--system-search-text-to-icon)}:host([size=m]) #textfield{--spectrum-search-border-radius:var(--system-search-size-m-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-m-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-m-block-size);--spectrum-search-icon-size:var(--system-search-size-m-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-m-text-to-icon)}:host([size=s]) #textfield{--spectrum-search-border-radius:var(--system-search-size-s-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-s-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-s-block-size);--spectrum-search-icon-size:var(--system-search-size-s-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-s-text-to-icon)}:host([size=l]) #textfield{--spectrum-search-border-radius:var(--system-search-size-l-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-l-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-l-block-size);--spectrum-search-icon-size:var(--system-search-size-l-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-l-text-to-icon)}:host([size=xl]) #textfield{--spectrum-search-border-radius:var(--system-search-size-xl-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-xl-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-xl-block-size);--spectrum-search-icon-size:var(--system-search-size-xl-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-xl-text-to-icon)}:host([quiet]){--spectrum-search-background-color:var(--system-search-quiet-background-color);--spectrum-search-background-color-disabled:var(--system-search-quiet-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-quiet-border-color-disabled);--spectrum-search-border-radius:var(--system-search-quiet-border-radius);--spectrum-search-edge-to-visual:var(--system-search-quiet-edge-to-visual)}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";import{css as s}from"@spectrum-web-components/base";const e=s`
2
+ :host{--spectrum-search-border-color-default:var(--system-search-border-color-default);--spectrum-search-border-color-hover:var(--system-search-border-color-hover);--spectrum-search-border-color-focus:var(--system-search-border-color-focus);--spectrum-search-border-color-focus-hover:var(--system-search-border-color-focus-hover);--spectrum-search-border-color-key-focus:var(--system-search-border-color-key-focus);--spectrum-search-inline-size:var(--system-search-inline-size);--spectrum-search-min-inline-multiplier:var(--system-search-min-inline-multiplier);--spectrum-search-to-help-text:var(--system-search-to-help-text);--spectrum-search-top-to-text:var(--system-search-top-to-text);--spectrum-search-bottom-to-text:var(--system-search-bottom-to-text);--spectrum-search-focus-indicator-thickness:var(--system-search-focus-indicator-thickness);--spectrum-search-focus-indicator-gap:var(--system-search-focus-indicator-gap);--spectrum-search-focus-indicator-color:var(--system-search-focus-indicator-color);--spectrum-search-font-family:var(--system-search-font-family);--spectrum-search-font-weight:var(--system-search-font-weight);--spectrum-search-font-style:var(--system-search-font-style);--spectrum-search-line-height:var(--system-search-line-height);--spectrum-search-color-default:var(--system-search-color-default);--spectrum-search-color-hover:var(--system-search-color-hover);--spectrum-search-color-focus:var(--system-search-color-focus);--spectrum-search-color-focus-hover:var(--system-search-color-focus-hover);--spectrum-search-color-key-focus:var(--system-search-color-key-focus);--spectrum-search-border-width:var(--system-search-border-width);--spectrum-search-background-color:var(--system-search-background-color);--spectrum-search-color-disabled:var(--system-search-color-disabled);--spectrum-search-background-color-disabled:var(--system-search-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-border-color-disabled);--spectrum-search-border-radius:var(--system-search-border-radius);--spectrum-search-edge-to-visual:var(--system-search-edge-to-visual);--spectrum-search-block-size:var(--system-search-block-size);--spectrum-search-icon-size:var(--system-search-icon-size);--spectrum-search-text-to-icon:var(--system-search-text-to-icon)}:host([size=m]) #textfield{--spectrum-search-border-radius:var(--system-search-size-m-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-m-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-m-block-size);--spectrum-search-icon-size:var(--system-search-size-m-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-m-text-to-icon)}:host([size=s]) #textfield{--spectrum-search-border-radius:var(--system-search-size-s-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-s-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-s-block-size);--spectrum-search-icon-size:var(--system-search-size-s-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-s-text-to-icon)}:host([size=l]) #textfield{--spectrum-search-border-radius:var(--system-search-size-l-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-l-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-l-block-size);--spectrum-search-icon-size:var(--system-search-size-l-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-l-text-to-icon)}:host([size=xl]) #textfield{--spectrum-search-border-radius:var(--system-search-size-xl-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-xl-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-xl-block-size);--spectrum-search-icon-size:var(--system-search-size-xl-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-xl-text-to-icon)}:host([quiet]){--spectrum-search-background-color:var(--system-search-quiet-background-color);--spectrum-search-background-color-disabled:var(--system-search-quiet-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-quiet-border-color-disabled);--spectrum-search-border-radius:var(--system-search-quiet-border-radius);--spectrum-search-edge-to-visual:var(--system-search-quiet-edge-to-visual)}
3
+ `;export default e;
4
+ //# sourceMappingURL=search-overrides.css.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["search-overrides.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2025 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{--spectrum-search-border-color-default:var(--system-search-border-color-default);--spectrum-search-border-color-hover:var(--system-search-border-color-hover);--spectrum-search-border-color-focus:var(--system-search-border-color-focus);--spectrum-search-border-color-focus-hover:var(--system-search-border-color-focus-hover);--spectrum-search-border-color-key-focus:var(--system-search-border-color-key-focus);--spectrum-search-inline-size:var(--system-search-inline-size);--spectrum-search-min-inline-multiplier:var(--system-search-min-inline-multiplier);--spectrum-search-to-help-text:var(--system-search-to-help-text);--spectrum-search-top-to-text:var(--system-search-top-to-text);--spectrum-search-bottom-to-text:var(--system-search-bottom-to-text);--spectrum-search-focus-indicator-thickness:var(--system-search-focus-indicator-thickness);--spectrum-search-focus-indicator-gap:var(--system-search-focus-indicator-gap);--spectrum-search-focus-indicator-color:var(--system-search-focus-indicator-color);--spectrum-search-font-family:var(--system-search-font-family);--spectrum-search-font-weight:var(--system-search-font-weight);--spectrum-search-font-style:var(--system-search-font-style);--spectrum-search-line-height:var(--system-search-line-height);--spectrum-search-color-default:var(--system-search-color-default);--spectrum-search-color-hover:var(--system-search-color-hover);--spectrum-search-color-focus:var(--system-search-color-focus);--spectrum-search-color-focus-hover:var(--system-search-color-focus-hover);--spectrum-search-color-key-focus:var(--system-search-color-key-focus);--spectrum-search-border-width:var(--system-search-border-width);--spectrum-search-background-color:var(--system-search-background-color);--spectrum-search-color-disabled:var(--system-search-color-disabled);--spectrum-search-background-color-disabled:var(--system-search-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-border-color-disabled);--spectrum-search-border-radius:var(--system-search-border-radius);--spectrum-search-edge-to-visual:var(--system-search-edge-to-visual);--spectrum-search-block-size:var(--system-search-block-size);--spectrum-search-icon-size:var(--system-search-icon-size);--spectrum-search-text-to-icon:var(--system-search-text-to-icon)}:host([size=m]) #textfield{--spectrum-search-border-radius:var(--system-search-size-m-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-m-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-m-block-size);--spectrum-search-icon-size:var(--system-search-size-m-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-m-text-to-icon)}:host([size=s]) #textfield{--spectrum-search-border-radius:var(--system-search-size-s-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-s-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-s-block-size);--spectrum-search-icon-size:var(--system-search-size-s-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-s-text-to-icon)}:host([size=l]) #textfield{--spectrum-search-border-radius:var(--system-search-size-l-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-l-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-l-block-size);--spectrum-search-icon-size:var(--system-search-size-l-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-l-text-to-icon)}:host([size=xl]) #textfield{--spectrum-search-border-radius:var(--system-search-size-xl-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-xl-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-xl-block-size);--spectrum-search-icon-size:var(--system-search-size-xl-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-xl-text-to-icon)}:host([quiet]){--spectrum-search-background-color:var(--system-search-quiet-background-color);--spectrum-search-background-color-disabled:var(--system-search-quiet-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-quiet-border-color-disabled);--spectrum-search-border-radius:var(--system-search-quiet-border-radius);--spectrum-search-edge-to-visual:var(--system-search-quiet-edge-to-visual)}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
+ "names": ["css", "styles"]
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const styles: import("@spectrum-web-components/base").CSSResult;
2
+ export default styles;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ import { css } from "@spectrum-web-components/base";
3
+ const styles = css`
4
+ @media (forced-colors:active){#textfield #textfield,#textfield #textfield .input{--highcontrast-search-color-default:CanvasText;--highcontrast-search-color-hover:CanvasText;--highcontrast-search-color-focus:CanvasText;--highcontrast-search-color-disabled:GrayText}#textfield #button .spectrum-ClearButton-fill{forced-color-adjust:none;background-color:initial}}#textfield{--spectrum-search-button-inline-size:var(--spectrum-search-block-size);--spectrum-search-min-inline-size:calc(var(--spectrum-search-min-inline-multiplier)*var(--spectrum-search-block-size));--mod-textfield-font-family:var(--mod-search-font-family,var(--spectrum-search-font-family));--mod-textfield-font-weight:var(--mod-search-font-weight,var(--spectrum-search-font-weight));--mod-textfield-corner-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));--mod-textfield-border-width:var(--mod-search-border-width,var(--spectrum-search-border-width));--mod-textfield-focus-indicator-gap:var(--mod-search-focus-indicator-gap,var(--spectrum-search-focus-indicator-gap));--mod-textfield-focus-indicator-width:var(--mod-search-focus-indicator-thickness,var(--spectrum-search-focus-indicator-thickness));--mod-textfield-focus-indicator-color:var(--mod-search-focus-indicator-color,var(--spectrum-search-focus-indicator-color));--mod-textfield-text-color-default:var(--mod-search-color-default,var(--spectrum-search-color-default));--mod-textfield-text-color-hover:var(--mod-search-color-hover,var(--spectrum-search-color-hover));--mod-textfield-text-color-focus:var(--mod-search-color-focus,var(--spectrum-search-color-focus));--mod-textfield-text-color-focus-hover:var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover));--mod-textfield-text-color-keyboard-focus:var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus));--mod-textfield-text-color-disabled:var(--mod-search-color-disabled,var(--spectrum-search-color-disabled));--mod-textfield-border-color:var(--mod-search-border-color-default,var(--spectrum-search-border-color-default));--mod-textfield-border-color-hover:var(--mod-search-border-color-hover,var(--spectrum-search-border-color-hover));--mod-textfield-border-color-focus:var(--mod-search-border-color-focus,var(--spectrum-search-border-color-focus));--mod-textfield-border-color-focus-hover:var(--mod-search-border-color-focus-hover,var(--spectrum-search-border-color-focus-hover));--mod-textfield-border-color-keyboard-focus:var(--mod-search-border-color-key-focus,var(--spectrum-search-border-color-key-focus));--mod-textfield-border-color-disabled:var(--mod-search-border-color-disabled,var(--spectrum-search-border-color-disabled));--mod-textfield-background-color:var(--mod-search-background-color,var(--spectrum-search-background-color));--mod-textfield-background-color-disabled:var(--mod-search-background-color-disabled,var(--spectrum-search-background-color-disabled));inline-size:var(--mod-search-inline-size,var(--spectrum-search-inline-size));min-inline-size:var(--mod-search-min-inline-size,var(--spectrum-search-min-inline-size));display:inline-block;position:relative}#textfield .spectrum-HelpText{margin-block-start:var(--mod-search-to-help-text,var(--spectrum-search-to-help-text))}#button{position:absolute;inset-block-start:0;inset-inline-end:0}#button,#button .spectrum-ClearButton-fill{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius))}#textfield.is-disabled #button{display:none}#textfield{inline-size:100%}.icon-search{--spectrum-search-color:var(--highcontrast-search-color-default,var(--mod-search-color-default,var(--spectrum-search-color-default)));color:var(--spectrum-search-color);margin-block:auto;display:block;position:absolute;inset-block:0}#textfield.is-focused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus,var(--spectrum-search-color-focus)))}#textfield.is-keyboardFocused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus)))}#textfield.is-disabled .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}@media (hover:hover){#textfield:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-hover,var(--mod-search-color-hover,var(--spectrum-search-color-hover)))}#textfield.is-focused:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover)))}#textfield.is-disabled:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}}.input{appearance:none;block-size:var(--mod-search-block-size,var(--spectrum-search-block-size));font-style:var(--mod-search-font-style,var(--spectrum-search-font-style));line-height:var(--mod-search-line-height,var(--spectrum-search-line-height));padding-block-start:calc(var(--mod-search-top-to-text,var(--spectrum-search-top-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)));padding-block-end:calc(var(--mod-search-bottom-to-text,var(--spectrum-search-bottom-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}.input::-webkit-search-cancel-button,.input::-webkit-search-decoration{appearance:none}:host(:not([quiet])) #textfield .icon-search{inset-inline-start:var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual))}:host(:not([quiet])) #textfield .input{padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) - var(--mod-search-border-width,var(--spectrum-search-border-width)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}:host([quiet]){--spectrum-search-quiet-button-offset:var(--mod-search-quiet-button-offset,calc(var(--mod-search-block-size,var(--spectrum-search-block-size))/2 - var(--mod-search-icon-size,var(--spectrum-search-icon-size))/2))}:host([quiet]) #button .spectrum-ClearButton-icon{transform:translateX(var(--spectrum-search-quiet-button-offset))}:host([quiet]) #textfield .input{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));padding-block-start:var(--mod-search-top-to-text,var(--spectrum-search-top-to-text));padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--spectrum-search-quiet-button-offset))}:host{--spectrum-search-border-color-default:var(--system-search-border-color-default);--spectrum-search-border-color-hover:var(--system-search-border-color-hover);--spectrum-search-border-color-focus:var(--system-search-border-color-focus);--spectrum-search-border-color-focus-hover:var(--system-search-border-color-focus-hover);--spectrum-search-border-color-key-focus:var(--system-search-border-color-key-focus);--spectrum-search-inline-size:var(--system-search-inline-size);--spectrum-search-min-inline-multiplier:var(--system-search-min-inline-multiplier);--spectrum-search-to-help-text:var(--system-search-to-help-text);--spectrum-search-top-to-text:var(--system-search-top-to-text);--spectrum-search-bottom-to-text:var(--system-search-bottom-to-text);--spectrum-search-focus-indicator-thickness:var(--system-search-focus-indicator-thickness);--spectrum-search-focus-indicator-gap:var(--system-search-focus-indicator-gap);--spectrum-search-focus-indicator-color:var(--system-search-focus-indicator-color);--spectrum-search-font-family:var(--system-search-font-family);--spectrum-search-font-weight:var(--system-search-font-weight);--spectrum-search-font-style:var(--system-search-font-style);--spectrum-search-line-height:var(--system-search-line-height);--spectrum-search-color-default:var(--system-search-color-default);--spectrum-search-color-hover:var(--system-search-color-hover);--spectrum-search-color-focus:var(--system-search-color-focus);--spectrum-search-color-focus-hover:var(--system-search-color-focus-hover);--spectrum-search-color-key-focus:var(--system-search-color-key-focus);--spectrum-search-border-width:var(--system-search-border-width);--spectrum-search-background-color:var(--system-search-background-color);--spectrum-search-color-disabled:var(--system-search-color-disabled);--spectrum-search-background-color-disabled:var(--system-search-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-border-color-disabled);--spectrum-search-border-radius:var(--system-search-border-radius);--spectrum-search-edge-to-visual:var(--system-search-edge-to-visual);--spectrum-search-block-size:var(--system-search-block-size);--spectrum-search-icon-size:var(--system-search-icon-size);--spectrum-search-text-to-icon:var(--system-search-text-to-icon)}:host([size=m]) #textfield{--spectrum-search-border-radius:var(--system-search-size-m-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-m-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-m-block-size);--spectrum-search-icon-size:var(--system-search-size-m-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-m-text-to-icon)}:host([size=s]) #textfield{--spectrum-search-border-radius:var(--system-search-size-s-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-s-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-s-block-size);--spectrum-search-icon-size:var(--system-search-size-s-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-s-text-to-icon)}:host([size=l]) #textfield{--spectrum-search-border-radius:var(--system-search-size-l-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-l-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-l-block-size);--spectrum-search-icon-size:var(--system-search-size-l-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-l-text-to-icon)}:host([size=xl]) #textfield{--spectrum-search-border-radius:var(--system-search-size-xl-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-xl-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-xl-block-size);--spectrum-search-icon-size:var(--system-search-size-xl-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-xl-text-to-icon)}:host([quiet]){--spectrum-search-background-color:var(--system-search-quiet-background-color);--spectrum-search-background-color-disabled:var(--system-search-quiet-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-quiet-border-color-disabled);--spectrum-search-border-radius:var(--system-search-quiet-border-radius);--spectrum-search-edge-to-visual:var(--system-search-quiet-edge-to-visual)}:host{--mod-textfield-spacing-inline:var(--spectrum-alias-infieldbutton-full-height-m)}input::-webkit-search-cancel-button{display:none}@media (forced-colors:active){sp-clear-button{--spectrum-clearbutton-fill-background-color:transparent;--spectrum-clearbutton-fill-background-color-disabled:transparent;--spectrum-clearbutton-fill-background-color-down:transparent;--spectrum-clearbutton-fill-background-color-hover:transparent;--spectrum-clearbutton-fill-background-color-key-focus:transparent}}
5
+ `;
6
+ export default styles;
7
+ //# sourceMappingURL=search.css.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["search.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2025 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n @media (forced-colors:active){#textfield #textfield,#textfield #textfield .input{--highcontrast-search-color-default:CanvasText;--highcontrast-search-color-hover:CanvasText;--highcontrast-search-color-focus:CanvasText;--highcontrast-search-color-disabled:GrayText}#textfield #button .spectrum-ClearButton-fill{forced-color-adjust:none;background-color:initial}}#textfield{--spectrum-search-button-inline-size:var(--spectrum-search-block-size);--spectrum-search-min-inline-size:calc(var(--spectrum-search-min-inline-multiplier)*var(--spectrum-search-block-size));--mod-textfield-font-family:var(--mod-search-font-family,var(--spectrum-search-font-family));--mod-textfield-font-weight:var(--mod-search-font-weight,var(--spectrum-search-font-weight));--mod-textfield-corner-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));--mod-textfield-border-width:var(--mod-search-border-width,var(--spectrum-search-border-width));--mod-textfield-focus-indicator-gap:var(--mod-search-focus-indicator-gap,var(--spectrum-search-focus-indicator-gap));--mod-textfield-focus-indicator-width:var(--mod-search-focus-indicator-thickness,var(--spectrum-search-focus-indicator-thickness));--mod-textfield-focus-indicator-color:var(--mod-search-focus-indicator-color,var(--spectrum-search-focus-indicator-color));--mod-textfield-text-color-default:var(--mod-search-color-default,var(--spectrum-search-color-default));--mod-textfield-text-color-hover:var(--mod-search-color-hover,var(--spectrum-search-color-hover));--mod-textfield-text-color-focus:var(--mod-search-color-focus,var(--spectrum-search-color-focus));--mod-textfield-text-color-focus-hover:var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover));--mod-textfield-text-color-keyboard-focus:var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus));--mod-textfield-text-color-disabled:var(--mod-search-color-disabled,var(--spectrum-search-color-disabled));--mod-textfield-border-color:var(--mod-search-border-color-default,var(--spectrum-search-border-color-default));--mod-textfield-border-color-hover:var(--mod-search-border-color-hover,var(--spectrum-search-border-color-hover));--mod-textfield-border-color-focus:var(--mod-search-border-color-focus,var(--spectrum-search-border-color-focus));--mod-textfield-border-color-focus-hover:var(--mod-search-border-color-focus-hover,var(--spectrum-search-border-color-focus-hover));--mod-textfield-border-color-keyboard-focus:var(--mod-search-border-color-key-focus,var(--spectrum-search-border-color-key-focus));--mod-textfield-border-color-disabled:var(--mod-search-border-color-disabled,var(--spectrum-search-border-color-disabled));--mod-textfield-background-color:var(--mod-search-background-color,var(--spectrum-search-background-color));--mod-textfield-background-color-disabled:var(--mod-search-background-color-disabled,var(--spectrum-search-background-color-disabled));inline-size:var(--mod-search-inline-size,var(--spectrum-search-inline-size));min-inline-size:var(--mod-search-min-inline-size,var(--spectrum-search-min-inline-size));display:inline-block;position:relative}#textfield .spectrum-HelpText{margin-block-start:var(--mod-search-to-help-text,var(--spectrum-search-to-help-text))}#button{position:absolute;inset-block-start:0;inset-inline-end:0}#button,#button .spectrum-ClearButton-fill{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius))}#textfield.is-disabled #button{display:none}#textfield{inline-size:100%}.icon-search{--spectrum-search-color:var(--highcontrast-search-color-default,var(--mod-search-color-default,var(--spectrum-search-color-default)));color:var(--spectrum-search-color);margin-block:auto;display:block;position:absolute;inset-block:0}#textfield.is-focused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus,var(--spectrum-search-color-focus)))}#textfield.is-keyboardFocused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus)))}#textfield.is-disabled .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}@media (hover:hover){#textfield:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-hover,var(--mod-search-color-hover,var(--spectrum-search-color-hover)))}#textfield.is-focused:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover)))}#textfield.is-disabled:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}}.input{appearance:none;block-size:var(--mod-search-block-size,var(--spectrum-search-block-size));font-style:var(--mod-search-font-style,var(--spectrum-search-font-style));line-height:var(--mod-search-line-height,var(--spectrum-search-line-height));padding-block-start:calc(var(--mod-search-top-to-text,var(--spectrum-search-top-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)));padding-block-end:calc(var(--mod-search-bottom-to-text,var(--spectrum-search-bottom-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}.input::-webkit-search-cancel-button,.input::-webkit-search-decoration{appearance:none}:host(:not([quiet])) #textfield .icon-search{inset-inline-start:var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual))}:host(:not([quiet])) #textfield .input{padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) - var(--mod-search-border-width,var(--spectrum-search-border-width)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}:host([quiet]){--spectrum-search-quiet-button-offset:var(--mod-search-quiet-button-offset,calc(var(--mod-search-block-size,var(--spectrum-search-block-size))/2 - var(--mod-search-icon-size,var(--spectrum-search-icon-size))/2))}:host([quiet]) #button .spectrum-ClearButton-icon{transform:translateX(var(--spectrum-search-quiet-button-offset))}:host([quiet]) #textfield .input{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));padding-block-start:var(--mod-search-top-to-text,var(--spectrum-search-top-to-text));padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--spectrum-search-quiet-button-offset))}:host{--spectrum-search-border-color-default:var(--system-search-border-color-default);--spectrum-search-border-color-hover:var(--system-search-border-color-hover);--spectrum-search-border-color-focus:var(--system-search-border-color-focus);--spectrum-search-border-color-focus-hover:var(--system-search-border-color-focus-hover);--spectrum-search-border-color-key-focus:var(--system-search-border-color-key-focus);--spectrum-search-inline-size:var(--system-search-inline-size);--spectrum-search-min-inline-multiplier:var(--system-search-min-inline-multiplier);--spectrum-search-to-help-text:var(--system-search-to-help-text);--spectrum-search-top-to-text:var(--system-search-top-to-text);--spectrum-search-bottom-to-text:var(--system-search-bottom-to-text);--spectrum-search-focus-indicator-thickness:var(--system-search-focus-indicator-thickness);--spectrum-search-focus-indicator-gap:var(--system-search-focus-indicator-gap);--spectrum-search-focus-indicator-color:var(--system-search-focus-indicator-color);--spectrum-search-font-family:var(--system-search-font-family);--spectrum-search-font-weight:var(--system-search-font-weight);--spectrum-search-font-style:var(--system-search-font-style);--spectrum-search-line-height:var(--system-search-line-height);--spectrum-search-color-default:var(--system-search-color-default);--spectrum-search-color-hover:var(--system-search-color-hover);--spectrum-search-color-focus:var(--system-search-color-focus);--spectrum-search-color-focus-hover:var(--system-search-color-focus-hover);--spectrum-search-color-key-focus:var(--system-search-color-key-focus);--spectrum-search-border-width:var(--system-search-border-width);--spectrum-search-background-color:var(--system-search-background-color);--spectrum-search-color-disabled:var(--system-search-color-disabled);--spectrum-search-background-color-disabled:var(--system-search-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-border-color-disabled);--spectrum-search-border-radius:var(--system-search-border-radius);--spectrum-search-edge-to-visual:var(--system-search-edge-to-visual);--spectrum-search-block-size:var(--system-search-block-size);--spectrum-search-icon-size:var(--system-search-icon-size);--spectrum-search-text-to-icon:var(--system-search-text-to-icon)}:host([size=m]) #textfield{--spectrum-search-border-radius:var(--system-search-size-m-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-m-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-m-block-size);--spectrum-search-icon-size:var(--system-search-size-m-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-m-text-to-icon)}:host([size=s]) #textfield{--spectrum-search-border-radius:var(--system-search-size-s-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-s-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-s-block-size);--spectrum-search-icon-size:var(--system-search-size-s-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-s-text-to-icon)}:host([size=l]) #textfield{--spectrum-search-border-radius:var(--system-search-size-l-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-l-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-l-block-size);--spectrum-search-icon-size:var(--system-search-size-l-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-l-text-to-icon)}:host([size=xl]) #textfield{--spectrum-search-border-radius:var(--system-search-size-xl-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-xl-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-xl-block-size);--spectrum-search-icon-size:var(--system-search-size-xl-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-xl-text-to-icon)}:host([quiet]){--spectrum-search-background-color:var(--system-search-quiet-background-color);--spectrum-search-background-color-disabled:var(--system-search-quiet-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-quiet-border-color-disabled);--spectrum-search-border-radius:var(--system-search-quiet-border-radius);--spectrum-search-edge-to-visual:var(--system-search-quiet-edge-to-visual)}:host{--mod-textfield-spacing-inline:var(--spectrum-alias-infieldbutton-full-height-m)}input::-webkit-search-cancel-button{display:none}@media (forced-colors:active){sp-clear-button{--spectrum-clearbutton-fill-background-color:transparent;--spectrum-clearbutton-fill-background-color-disabled:transparent;--spectrum-clearbutton-fill-background-color-down:transparent;--spectrum-clearbutton-fill-background-color-hover:transparent;--spectrum-clearbutton-fill-background-color-key-focus:transparent}}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";import{css as r}from"@spectrum-web-components/base";const e=r`
2
+ @media (forced-colors:active){#textfield #textfield,#textfield #textfield .input{--highcontrast-search-color-default:CanvasText;--highcontrast-search-color-hover:CanvasText;--highcontrast-search-color-focus:CanvasText;--highcontrast-search-color-disabled:GrayText}#textfield #button .spectrum-ClearButton-fill{forced-color-adjust:none;background-color:initial}}#textfield{--spectrum-search-button-inline-size:var(--spectrum-search-block-size);--spectrum-search-min-inline-size:calc(var(--spectrum-search-min-inline-multiplier)*var(--spectrum-search-block-size));--mod-textfield-font-family:var(--mod-search-font-family,var(--spectrum-search-font-family));--mod-textfield-font-weight:var(--mod-search-font-weight,var(--spectrum-search-font-weight));--mod-textfield-corner-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));--mod-textfield-border-width:var(--mod-search-border-width,var(--spectrum-search-border-width));--mod-textfield-focus-indicator-gap:var(--mod-search-focus-indicator-gap,var(--spectrum-search-focus-indicator-gap));--mod-textfield-focus-indicator-width:var(--mod-search-focus-indicator-thickness,var(--spectrum-search-focus-indicator-thickness));--mod-textfield-focus-indicator-color:var(--mod-search-focus-indicator-color,var(--spectrum-search-focus-indicator-color));--mod-textfield-text-color-default:var(--mod-search-color-default,var(--spectrum-search-color-default));--mod-textfield-text-color-hover:var(--mod-search-color-hover,var(--spectrum-search-color-hover));--mod-textfield-text-color-focus:var(--mod-search-color-focus,var(--spectrum-search-color-focus));--mod-textfield-text-color-focus-hover:var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover));--mod-textfield-text-color-keyboard-focus:var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus));--mod-textfield-text-color-disabled:var(--mod-search-color-disabled,var(--spectrum-search-color-disabled));--mod-textfield-border-color:var(--mod-search-border-color-default,var(--spectrum-search-border-color-default));--mod-textfield-border-color-hover:var(--mod-search-border-color-hover,var(--spectrum-search-border-color-hover));--mod-textfield-border-color-focus:var(--mod-search-border-color-focus,var(--spectrum-search-border-color-focus));--mod-textfield-border-color-focus-hover:var(--mod-search-border-color-focus-hover,var(--spectrum-search-border-color-focus-hover));--mod-textfield-border-color-keyboard-focus:var(--mod-search-border-color-key-focus,var(--spectrum-search-border-color-key-focus));--mod-textfield-border-color-disabled:var(--mod-search-border-color-disabled,var(--spectrum-search-border-color-disabled));--mod-textfield-background-color:var(--mod-search-background-color,var(--spectrum-search-background-color));--mod-textfield-background-color-disabled:var(--mod-search-background-color-disabled,var(--spectrum-search-background-color-disabled));inline-size:var(--mod-search-inline-size,var(--spectrum-search-inline-size));min-inline-size:var(--mod-search-min-inline-size,var(--spectrum-search-min-inline-size));display:inline-block;position:relative}#textfield .spectrum-HelpText{margin-block-start:var(--mod-search-to-help-text,var(--spectrum-search-to-help-text))}#button{position:absolute;inset-block-start:0;inset-inline-end:0}#button,#button .spectrum-ClearButton-fill{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius))}#textfield.is-disabled #button{display:none}#textfield{inline-size:100%}.icon-search{--spectrum-search-color:var(--highcontrast-search-color-default,var(--mod-search-color-default,var(--spectrum-search-color-default)));color:var(--spectrum-search-color);margin-block:auto;display:block;position:absolute;inset-block:0}#textfield.is-focused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus,var(--spectrum-search-color-focus)))}#textfield.is-keyboardFocused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus)))}#textfield.is-disabled .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}@media (hover:hover){#textfield:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-hover,var(--mod-search-color-hover,var(--spectrum-search-color-hover)))}#textfield.is-focused:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover)))}#textfield.is-disabled:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}}.input{appearance:none;block-size:var(--mod-search-block-size,var(--spectrum-search-block-size));font-style:var(--mod-search-font-style,var(--spectrum-search-font-style));line-height:var(--mod-search-line-height,var(--spectrum-search-line-height));padding-block-start:calc(var(--mod-search-top-to-text,var(--spectrum-search-top-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)));padding-block-end:calc(var(--mod-search-bottom-to-text,var(--spectrum-search-bottom-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}.input::-webkit-search-cancel-button,.input::-webkit-search-decoration{appearance:none}:host(:not([quiet])) #textfield .icon-search{inset-inline-start:var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual))}:host(:not([quiet])) #textfield .input{padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) - var(--mod-search-border-width,var(--spectrum-search-border-width)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}:host([quiet]){--spectrum-search-quiet-button-offset:var(--mod-search-quiet-button-offset,calc(var(--mod-search-block-size,var(--spectrum-search-block-size))/2 - var(--mod-search-icon-size,var(--spectrum-search-icon-size))/2))}:host([quiet]) #button .spectrum-ClearButton-icon{transform:translateX(var(--spectrum-search-quiet-button-offset))}:host([quiet]) #textfield .input{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));padding-block-start:var(--mod-search-top-to-text,var(--spectrum-search-top-to-text));padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--spectrum-search-quiet-button-offset))}:host{--spectrum-search-border-color-default:var(--system-search-border-color-default);--spectrum-search-border-color-hover:var(--system-search-border-color-hover);--spectrum-search-border-color-focus:var(--system-search-border-color-focus);--spectrum-search-border-color-focus-hover:var(--system-search-border-color-focus-hover);--spectrum-search-border-color-key-focus:var(--system-search-border-color-key-focus);--spectrum-search-inline-size:var(--system-search-inline-size);--spectrum-search-min-inline-multiplier:var(--system-search-min-inline-multiplier);--spectrum-search-to-help-text:var(--system-search-to-help-text);--spectrum-search-top-to-text:var(--system-search-top-to-text);--spectrum-search-bottom-to-text:var(--system-search-bottom-to-text);--spectrum-search-focus-indicator-thickness:var(--system-search-focus-indicator-thickness);--spectrum-search-focus-indicator-gap:var(--system-search-focus-indicator-gap);--spectrum-search-focus-indicator-color:var(--system-search-focus-indicator-color);--spectrum-search-font-family:var(--system-search-font-family);--spectrum-search-font-weight:var(--system-search-font-weight);--spectrum-search-font-style:var(--system-search-font-style);--spectrum-search-line-height:var(--system-search-line-height);--spectrum-search-color-default:var(--system-search-color-default);--spectrum-search-color-hover:var(--system-search-color-hover);--spectrum-search-color-focus:var(--system-search-color-focus);--spectrum-search-color-focus-hover:var(--system-search-color-focus-hover);--spectrum-search-color-key-focus:var(--system-search-color-key-focus);--spectrum-search-border-width:var(--system-search-border-width);--spectrum-search-background-color:var(--system-search-background-color);--spectrum-search-color-disabled:var(--system-search-color-disabled);--spectrum-search-background-color-disabled:var(--system-search-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-border-color-disabled);--spectrum-search-border-radius:var(--system-search-border-radius);--spectrum-search-edge-to-visual:var(--system-search-edge-to-visual);--spectrum-search-block-size:var(--system-search-block-size);--spectrum-search-icon-size:var(--system-search-icon-size);--spectrum-search-text-to-icon:var(--system-search-text-to-icon)}:host([size=m]) #textfield{--spectrum-search-border-radius:var(--system-search-size-m-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-m-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-m-block-size);--spectrum-search-icon-size:var(--system-search-size-m-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-m-text-to-icon)}:host([size=s]) #textfield{--spectrum-search-border-radius:var(--system-search-size-s-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-s-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-s-block-size);--spectrum-search-icon-size:var(--system-search-size-s-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-s-text-to-icon)}:host([size=l]) #textfield{--spectrum-search-border-radius:var(--system-search-size-l-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-l-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-l-block-size);--spectrum-search-icon-size:var(--system-search-size-l-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-l-text-to-icon)}:host([size=xl]) #textfield{--spectrum-search-border-radius:var(--system-search-size-xl-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-xl-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-xl-block-size);--spectrum-search-icon-size:var(--system-search-size-xl-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-xl-text-to-icon)}:host([quiet]){--spectrum-search-background-color:var(--system-search-quiet-background-color);--spectrum-search-background-color-disabled:var(--system-search-quiet-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-quiet-border-color-disabled);--spectrum-search-border-radius:var(--system-search-quiet-border-radius);--spectrum-search-edge-to-visual:var(--system-search-quiet-edge-to-visual)}:host{--mod-textfield-spacing-inline:var(--spectrum-alias-infieldbutton-full-height-m)}input::-webkit-search-cancel-button{display:none}@media (forced-colors:active){sp-clear-button{--spectrum-clearbutton-fill-background-color:transparent;--spectrum-clearbutton-fill-background-color-disabled:transparent;--spectrum-clearbutton-fill-background-color-down:transparent;--spectrum-clearbutton-fill-background-color-hover:transparent;--spectrum-clearbutton-fill-background-color-key-focus:transparent}}
3
+ `;export default e;
4
+ //# sourceMappingURL=search.css.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["search.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2025 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n @media (forced-colors:active){#textfield #textfield,#textfield #textfield .input{--highcontrast-search-color-default:CanvasText;--highcontrast-search-color-hover:CanvasText;--highcontrast-search-color-focus:CanvasText;--highcontrast-search-color-disabled:GrayText}#textfield #button .spectrum-ClearButton-fill{forced-color-adjust:none;background-color:initial}}#textfield{--spectrum-search-button-inline-size:var(--spectrum-search-block-size);--spectrum-search-min-inline-size:calc(var(--spectrum-search-min-inline-multiplier)*var(--spectrum-search-block-size));--mod-textfield-font-family:var(--mod-search-font-family,var(--spectrum-search-font-family));--mod-textfield-font-weight:var(--mod-search-font-weight,var(--spectrum-search-font-weight));--mod-textfield-corner-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));--mod-textfield-border-width:var(--mod-search-border-width,var(--spectrum-search-border-width));--mod-textfield-focus-indicator-gap:var(--mod-search-focus-indicator-gap,var(--spectrum-search-focus-indicator-gap));--mod-textfield-focus-indicator-width:var(--mod-search-focus-indicator-thickness,var(--spectrum-search-focus-indicator-thickness));--mod-textfield-focus-indicator-color:var(--mod-search-focus-indicator-color,var(--spectrum-search-focus-indicator-color));--mod-textfield-text-color-default:var(--mod-search-color-default,var(--spectrum-search-color-default));--mod-textfield-text-color-hover:var(--mod-search-color-hover,var(--spectrum-search-color-hover));--mod-textfield-text-color-focus:var(--mod-search-color-focus,var(--spectrum-search-color-focus));--mod-textfield-text-color-focus-hover:var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover));--mod-textfield-text-color-keyboard-focus:var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus));--mod-textfield-text-color-disabled:var(--mod-search-color-disabled,var(--spectrum-search-color-disabled));--mod-textfield-border-color:var(--mod-search-border-color-default,var(--spectrum-search-border-color-default));--mod-textfield-border-color-hover:var(--mod-search-border-color-hover,var(--spectrum-search-border-color-hover));--mod-textfield-border-color-focus:var(--mod-search-border-color-focus,var(--spectrum-search-border-color-focus));--mod-textfield-border-color-focus-hover:var(--mod-search-border-color-focus-hover,var(--spectrum-search-border-color-focus-hover));--mod-textfield-border-color-keyboard-focus:var(--mod-search-border-color-key-focus,var(--spectrum-search-border-color-key-focus));--mod-textfield-border-color-disabled:var(--mod-search-border-color-disabled,var(--spectrum-search-border-color-disabled));--mod-textfield-background-color:var(--mod-search-background-color,var(--spectrum-search-background-color));--mod-textfield-background-color-disabled:var(--mod-search-background-color-disabled,var(--spectrum-search-background-color-disabled));inline-size:var(--mod-search-inline-size,var(--spectrum-search-inline-size));min-inline-size:var(--mod-search-min-inline-size,var(--spectrum-search-min-inline-size));display:inline-block;position:relative}#textfield .spectrum-HelpText{margin-block-start:var(--mod-search-to-help-text,var(--spectrum-search-to-help-text))}#button{position:absolute;inset-block-start:0;inset-inline-end:0}#button,#button .spectrum-ClearButton-fill{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius))}#textfield.is-disabled #button{display:none}#textfield{inline-size:100%}.icon-search{--spectrum-search-color:var(--highcontrast-search-color-default,var(--mod-search-color-default,var(--spectrum-search-color-default)));color:var(--spectrum-search-color);margin-block:auto;display:block;position:absolute;inset-block:0}#textfield.is-focused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus,var(--spectrum-search-color-focus)))}#textfield.is-keyboardFocused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus)))}#textfield.is-disabled .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}@media (hover:hover){#textfield:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-hover,var(--mod-search-color-hover,var(--spectrum-search-color-hover)))}#textfield.is-focused:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover)))}#textfield.is-disabled:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}}.input{appearance:none;block-size:var(--mod-search-block-size,var(--spectrum-search-block-size));font-style:var(--mod-search-font-style,var(--spectrum-search-font-style));line-height:var(--mod-search-line-height,var(--spectrum-search-line-height));padding-block-start:calc(var(--mod-search-top-to-text,var(--spectrum-search-top-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)));padding-block-end:calc(var(--mod-search-bottom-to-text,var(--spectrum-search-bottom-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}.input::-webkit-search-cancel-button,.input::-webkit-search-decoration{appearance:none}:host(:not([quiet])) #textfield .icon-search{inset-inline-start:var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual))}:host(:not([quiet])) #textfield .input{padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) - var(--mod-search-border-width,var(--spectrum-search-border-width)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}:host([quiet]){--spectrum-search-quiet-button-offset:var(--mod-search-quiet-button-offset,calc(var(--mod-search-block-size,var(--spectrum-search-block-size))/2 - var(--mod-search-icon-size,var(--spectrum-search-icon-size))/2))}:host([quiet]) #button .spectrum-ClearButton-icon{transform:translateX(var(--spectrum-search-quiet-button-offset))}:host([quiet]) #textfield .input{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));padding-block-start:var(--mod-search-top-to-text,var(--spectrum-search-top-to-text));padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--spectrum-search-quiet-button-offset))}:host{--spectrum-search-border-color-default:var(--system-search-border-color-default);--spectrum-search-border-color-hover:var(--system-search-border-color-hover);--spectrum-search-border-color-focus:var(--system-search-border-color-focus);--spectrum-search-border-color-focus-hover:var(--system-search-border-color-focus-hover);--spectrum-search-border-color-key-focus:var(--system-search-border-color-key-focus);--spectrum-search-inline-size:var(--system-search-inline-size);--spectrum-search-min-inline-multiplier:var(--system-search-min-inline-multiplier);--spectrum-search-to-help-text:var(--system-search-to-help-text);--spectrum-search-top-to-text:var(--system-search-top-to-text);--spectrum-search-bottom-to-text:var(--system-search-bottom-to-text);--spectrum-search-focus-indicator-thickness:var(--system-search-focus-indicator-thickness);--spectrum-search-focus-indicator-gap:var(--system-search-focus-indicator-gap);--spectrum-search-focus-indicator-color:var(--system-search-focus-indicator-color);--spectrum-search-font-family:var(--system-search-font-family);--spectrum-search-font-weight:var(--system-search-font-weight);--spectrum-search-font-style:var(--system-search-font-style);--spectrum-search-line-height:var(--system-search-line-height);--spectrum-search-color-default:var(--system-search-color-default);--spectrum-search-color-hover:var(--system-search-color-hover);--spectrum-search-color-focus:var(--system-search-color-focus);--spectrum-search-color-focus-hover:var(--system-search-color-focus-hover);--spectrum-search-color-key-focus:var(--system-search-color-key-focus);--spectrum-search-border-width:var(--system-search-border-width);--spectrum-search-background-color:var(--system-search-background-color);--spectrum-search-color-disabled:var(--system-search-color-disabled);--spectrum-search-background-color-disabled:var(--system-search-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-border-color-disabled);--spectrum-search-border-radius:var(--system-search-border-radius);--spectrum-search-edge-to-visual:var(--system-search-edge-to-visual);--spectrum-search-block-size:var(--system-search-block-size);--spectrum-search-icon-size:var(--system-search-icon-size);--spectrum-search-text-to-icon:var(--system-search-text-to-icon)}:host([size=m]) #textfield{--spectrum-search-border-radius:var(--system-search-size-m-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-m-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-m-block-size);--spectrum-search-icon-size:var(--system-search-size-m-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-m-text-to-icon)}:host([size=s]) #textfield{--spectrum-search-border-radius:var(--system-search-size-s-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-s-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-s-block-size);--spectrum-search-icon-size:var(--system-search-size-s-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-s-text-to-icon)}:host([size=l]) #textfield{--spectrum-search-border-radius:var(--system-search-size-l-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-l-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-l-block-size);--spectrum-search-icon-size:var(--system-search-size-l-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-l-text-to-icon)}:host([size=xl]) #textfield{--spectrum-search-border-radius:var(--system-search-size-xl-border-radius);--spectrum-search-edge-to-visual:var(--system-search-size-xl-edge-to-visual);--spectrum-search-block-size:var(--system-search-size-xl-block-size);--spectrum-search-icon-size:var(--system-search-size-xl-icon-size);--spectrum-search-text-to-icon:var(--system-search-size-xl-text-to-icon)}:host([quiet]){--spectrum-search-background-color:var(--system-search-quiet-background-color);--spectrum-search-background-color-disabled:var(--system-search-quiet-background-color-disabled);--spectrum-search-border-color-disabled:var(--system-search-quiet-border-color-disabled);--spectrum-search-border-radius:var(--system-search-quiet-border-radius);--spectrum-search-edge-to-visual:var(--system-search-quiet-edge-to-visual)}:host{--mod-textfield-spacing-inline:var(--spectrum-alias-infieldbutton-full-height-m)}input::-webkit-search-cancel-button{display:none}@media (forced-colors:active){sp-clear-button{--spectrum-clearbutton-fill-background-color:transparent;--spectrum-clearbutton-fill-background-color-disabled:transparent;--spectrum-clearbutton-fill-background-color-down:transparent;--spectrum-clearbutton-fill-background-color-hover:transparent;--spectrum-clearbutton-fill-background-color-key-focus:transparent}}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
+ "names": ["css", "styles"]
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const styles: import("@spectrum-web-components/base").CSSResult;
2
+ export default styles;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ import { css } from "@spectrum-web-components/base";
3
+ const styles = css`
4
+ @media (forced-colors:active){#textfield #textfield,#textfield #textfield .input{--highcontrast-search-color-default:CanvasText;--highcontrast-search-color-hover:CanvasText;--highcontrast-search-color-focus:CanvasText;--highcontrast-search-color-disabled:GrayText}#textfield #button .spectrum-ClearButton-fill{forced-color-adjust:none;background-color:initial}}#textfield{--spectrum-search-button-inline-size:var(--spectrum-search-block-size);--spectrum-search-min-inline-size:calc(var(--spectrum-search-min-inline-multiplier)*var(--spectrum-search-block-size));--mod-textfield-font-family:var(--mod-search-font-family,var(--spectrum-search-font-family));--mod-textfield-font-weight:var(--mod-search-font-weight,var(--spectrum-search-font-weight));--mod-textfield-corner-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));--mod-textfield-border-width:var(--mod-search-border-width,var(--spectrum-search-border-width));--mod-textfield-focus-indicator-gap:var(--mod-search-focus-indicator-gap,var(--spectrum-search-focus-indicator-gap));--mod-textfield-focus-indicator-width:var(--mod-search-focus-indicator-thickness,var(--spectrum-search-focus-indicator-thickness));--mod-textfield-focus-indicator-color:var(--mod-search-focus-indicator-color,var(--spectrum-search-focus-indicator-color));--mod-textfield-text-color-default:var(--mod-search-color-default,var(--spectrum-search-color-default));--mod-textfield-text-color-hover:var(--mod-search-color-hover,var(--spectrum-search-color-hover));--mod-textfield-text-color-focus:var(--mod-search-color-focus,var(--spectrum-search-color-focus));--mod-textfield-text-color-focus-hover:var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover));--mod-textfield-text-color-keyboard-focus:var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus));--mod-textfield-text-color-disabled:var(--mod-search-color-disabled,var(--spectrum-search-color-disabled));--mod-textfield-border-color:var(--mod-search-border-color-default,var(--spectrum-search-border-color-default));--mod-textfield-border-color-hover:var(--mod-search-border-color-hover,var(--spectrum-search-border-color-hover));--mod-textfield-border-color-focus:var(--mod-search-border-color-focus,var(--spectrum-search-border-color-focus));--mod-textfield-border-color-focus-hover:var(--mod-search-border-color-focus-hover,var(--spectrum-search-border-color-focus-hover));--mod-textfield-border-color-keyboard-focus:var(--mod-search-border-color-key-focus,var(--spectrum-search-border-color-key-focus));--mod-textfield-border-color-disabled:var(--mod-search-border-color-disabled,var(--spectrum-search-border-color-disabled));--mod-textfield-background-color:var(--mod-search-background-color,var(--spectrum-search-background-color));--mod-textfield-background-color-disabled:var(--mod-search-background-color-disabled,var(--spectrum-search-background-color-disabled));inline-size:var(--mod-search-inline-size,var(--spectrum-search-inline-size));min-inline-size:var(--mod-search-min-inline-size,var(--spectrum-search-min-inline-size));display:inline-block;position:relative}#textfield .spectrum-HelpText{margin-block-start:var(--mod-search-to-help-text,var(--spectrum-search-to-help-text))}#button{position:absolute;inset-block-start:0;inset-inline-end:0}#button,#button .spectrum-ClearButton-fill{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius))}#textfield.is-disabled #button{display:none}#textfield{inline-size:100%}.icon-search{--spectrum-search-color:var(--highcontrast-search-color-default,var(--mod-search-color-default,var(--spectrum-search-color-default)));color:var(--spectrum-search-color);margin-block:auto;display:block;position:absolute;inset-block:0}#textfield.is-focused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus,var(--spectrum-search-color-focus)))}#textfield.is-keyboardFocused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus)))}#textfield.is-disabled .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}@media (hover:hover){#textfield:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-hover,var(--mod-search-color-hover,var(--spectrum-search-color-hover)))}#textfield.is-focused:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover)))}#textfield.is-disabled:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}}.input{appearance:none;block-size:var(--mod-search-block-size,var(--spectrum-search-block-size));font-style:var(--mod-search-font-style,var(--spectrum-search-font-style));line-height:var(--mod-search-line-height,var(--spectrum-search-line-height));padding-block-start:calc(var(--mod-search-top-to-text,var(--spectrum-search-top-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)));padding-block-end:calc(var(--mod-search-bottom-to-text,var(--spectrum-search-bottom-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}.input::-webkit-search-cancel-button,.input::-webkit-search-decoration{appearance:none}:host(:not([quiet])) #textfield .icon-search{inset-inline-start:var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual))}:host(:not([quiet])) #textfield .input{padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) - var(--mod-search-border-width,var(--spectrum-search-border-width)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}:host([quiet]){--spectrum-search-quiet-button-offset:var(--mod-search-quiet-button-offset,calc(var(--mod-search-block-size,var(--spectrum-search-block-size))/2 - var(--mod-search-icon-size,var(--spectrum-search-icon-size))/2))}:host([quiet]) #button .spectrum-ClearButton-icon{transform:translateX(var(--spectrum-search-quiet-button-offset))}:host([quiet]) #textfield .input{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));padding-block-start:var(--mod-search-top-to-text,var(--spectrum-search-top-to-text));padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--spectrum-search-quiet-button-offset))}
5
+ `;
6
+ export default styles;
7
+ //# sourceMappingURL=spectrum-search.css.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["spectrum-search.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2025 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n @media (forced-colors:active){#textfield #textfield,#textfield #textfield .input{--highcontrast-search-color-default:CanvasText;--highcontrast-search-color-hover:CanvasText;--highcontrast-search-color-focus:CanvasText;--highcontrast-search-color-disabled:GrayText}#textfield #button .spectrum-ClearButton-fill{forced-color-adjust:none;background-color:initial}}#textfield{--spectrum-search-button-inline-size:var(--spectrum-search-block-size);--spectrum-search-min-inline-size:calc(var(--spectrum-search-min-inline-multiplier)*var(--spectrum-search-block-size));--mod-textfield-font-family:var(--mod-search-font-family,var(--spectrum-search-font-family));--mod-textfield-font-weight:var(--mod-search-font-weight,var(--spectrum-search-font-weight));--mod-textfield-corner-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));--mod-textfield-border-width:var(--mod-search-border-width,var(--spectrum-search-border-width));--mod-textfield-focus-indicator-gap:var(--mod-search-focus-indicator-gap,var(--spectrum-search-focus-indicator-gap));--mod-textfield-focus-indicator-width:var(--mod-search-focus-indicator-thickness,var(--spectrum-search-focus-indicator-thickness));--mod-textfield-focus-indicator-color:var(--mod-search-focus-indicator-color,var(--spectrum-search-focus-indicator-color));--mod-textfield-text-color-default:var(--mod-search-color-default,var(--spectrum-search-color-default));--mod-textfield-text-color-hover:var(--mod-search-color-hover,var(--spectrum-search-color-hover));--mod-textfield-text-color-focus:var(--mod-search-color-focus,var(--spectrum-search-color-focus));--mod-textfield-text-color-focus-hover:var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover));--mod-textfield-text-color-keyboard-focus:var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus));--mod-textfield-text-color-disabled:var(--mod-search-color-disabled,var(--spectrum-search-color-disabled));--mod-textfield-border-color:var(--mod-search-border-color-default,var(--spectrum-search-border-color-default));--mod-textfield-border-color-hover:var(--mod-search-border-color-hover,var(--spectrum-search-border-color-hover));--mod-textfield-border-color-focus:var(--mod-search-border-color-focus,var(--spectrum-search-border-color-focus));--mod-textfield-border-color-focus-hover:var(--mod-search-border-color-focus-hover,var(--spectrum-search-border-color-focus-hover));--mod-textfield-border-color-keyboard-focus:var(--mod-search-border-color-key-focus,var(--spectrum-search-border-color-key-focus));--mod-textfield-border-color-disabled:var(--mod-search-border-color-disabled,var(--spectrum-search-border-color-disabled));--mod-textfield-background-color:var(--mod-search-background-color,var(--spectrum-search-background-color));--mod-textfield-background-color-disabled:var(--mod-search-background-color-disabled,var(--spectrum-search-background-color-disabled));inline-size:var(--mod-search-inline-size,var(--spectrum-search-inline-size));min-inline-size:var(--mod-search-min-inline-size,var(--spectrum-search-min-inline-size));display:inline-block;position:relative}#textfield .spectrum-HelpText{margin-block-start:var(--mod-search-to-help-text,var(--spectrum-search-to-help-text))}#button{position:absolute;inset-block-start:0;inset-inline-end:0}#button,#button .spectrum-ClearButton-fill{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius))}#textfield.is-disabled #button{display:none}#textfield{inline-size:100%}.icon-search{--spectrum-search-color:var(--highcontrast-search-color-default,var(--mod-search-color-default,var(--spectrum-search-color-default)));color:var(--spectrum-search-color);margin-block:auto;display:block;position:absolute;inset-block:0}#textfield.is-focused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus,var(--spectrum-search-color-focus)))}#textfield.is-keyboardFocused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus)))}#textfield.is-disabled .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}@media (hover:hover){#textfield:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-hover,var(--mod-search-color-hover,var(--spectrum-search-color-hover)))}#textfield.is-focused:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover)))}#textfield.is-disabled:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}}.input{appearance:none;block-size:var(--mod-search-block-size,var(--spectrum-search-block-size));font-style:var(--mod-search-font-style,var(--spectrum-search-font-style));line-height:var(--mod-search-line-height,var(--spectrum-search-line-height));padding-block-start:calc(var(--mod-search-top-to-text,var(--spectrum-search-top-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)));padding-block-end:calc(var(--mod-search-bottom-to-text,var(--spectrum-search-bottom-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}.input::-webkit-search-cancel-button,.input::-webkit-search-decoration{appearance:none}:host(:not([quiet])) #textfield .icon-search{inset-inline-start:var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual))}:host(:not([quiet])) #textfield .input{padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) - var(--mod-search-border-width,var(--spectrum-search-border-width)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}:host([quiet]){--spectrum-search-quiet-button-offset:var(--mod-search-quiet-button-offset,calc(var(--mod-search-block-size,var(--spectrum-search-block-size))/2 - var(--mod-search-icon-size,var(--spectrum-search-icon-size))/2))}:host([quiet]) #button .spectrum-ClearButton-icon{transform:translateX(var(--spectrum-search-quiet-button-offset))}:host([quiet]) #textfield .input{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));padding-block-start:var(--mod-search-top-to-text,var(--spectrum-search-top-to-text));padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--spectrum-search-quiet-button-offset))}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";import{css as r}from"@spectrum-web-components/base";const e=r`
2
+ @media (forced-colors:active){#textfield #textfield,#textfield #textfield .input{--highcontrast-search-color-default:CanvasText;--highcontrast-search-color-hover:CanvasText;--highcontrast-search-color-focus:CanvasText;--highcontrast-search-color-disabled:GrayText}#textfield #button .spectrum-ClearButton-fill{forced-color-adjust:none;background-color:initial}}#textfield{--spectrum-search-button-inline-size:var(--spectrum-search-block-size);--spectrum-search-min-inline-size:calc(var(--spectrum-search-min-inline-multiplier)*var(--spectrum-search-block-size));--mod-textfield-font-family:var(--mod-search-font-family,var(--spectrum-search-font-family));--mod-textfield-font-weight:var(--mod-search-font-weight,var(--spectrum-search-font-weight));--mod-textfield-corner-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));--mod-textfield-border-width:var(--mod-search-border-width,var(--spectrum-search-border-width));--mod-textfield-focus-indicator-gap:var(--mod-search-focus-indicator-gap,var(--spectrum-search-focus-indicator-gap));--mod-textfield-focus-indicator-width:var(--mod-search-focus-indicator-thickness,var(--spectrum-search-focus-indicator-thickness));--mod-textfield-focus-indicator-color:var(--mod-search-focus-indicator-color,var(--spectrum-search-focus-indicator-color));--mod-textfield-text-color-default:var(--mod-search-color-default,var(--spectrum-search-color-default));--mod-textfield-text-color-hover:var(--mod-search-color-hover,var(--spectrum-search-color-hover));--mod-textfield-text-color-focus:var(--mod-search-color-focus,var(--spectrum-search-color-focus));--mod-textfield-text-color-focus-hover:var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover));--mod-textfield-text-color-keyboard-focus:var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus));--mod-textfield-text-color-disabled:var(--mod-search-color-disabled,var(--spectrum-search-color-disabled));--mod-textfield-border-color:var(--mod-search-border-color-default,var(--spectrum-search-border-color-default));--mod-textfield-border-color-hover:var(--mod-search-border-color-hover,var(--spectrum-search-border-color-hover));--mod-textfield-border-color-focus:var(--mod-search-border-color-focus,var(--spectrum-search-border-color-focus));--mod-textfield-border-color-focus-hover:var(--mod-search-border-color-focus-hover,var(--spectrum-search-border-color-focus-hover));--mod-textfield-border-color-keyboard-focus:var(--mod-search-border-color-key-focus,var(--spectrum-search-border-color-key-focus));--mod-textfield-border-color-disabled:var(--mod-search-border-color-disabled,var(--spectrum-search-border-color-disabled));--mod-textfield-background-color:var(--mod-search-background-color,var(--spectrum-search-background-color));--mod-textfield-background-color-disabled:var(--mod-search-background-color-disabled,var(--spectrum-search-background-color-disabled));inline-size:var(--mod-search-inline-size,var(--spectrum-search-inline-size));min-inline-size:var(--mod-search-min-inline-size,var(--spectrum-search-min-inline-size));display:inline-block;position:relative}#textfield .spectrum-HelpText{margin-block-start:var(--mod-search-to-help-text,var(--spectrum-search-to-help-text))}#button{position:absolute;inset-block-start:0;inset-inline-end:0}#button,#button .spectrum-ClearButton-fill{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius))}#textfield.is-disabled #button{display:none}#textfield{inline-size:100%}.icon-search{--spectrum-search-color:var(--highcontrast-search-color-default,var(--mod-search-color-default,var(--spectrum-search-color-default)));color:var(--spectrum-search-color);margin-block:auto;display:block;position:absolute;inset-block:0}#textfield.is-focused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus,var(--spectrum-search-color-focus)))}#textfield.is-keyboardFocused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus)))}#textfield.is-disabled .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}@media (hover:hover){#textfield:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-hover,var(--mod-search-color-hover,var(--spectrum-search-color-hover)))}#textfield.is-focused:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover)))}#textfield.is-disabled:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}}.input{appearance:none;block-size:var(--mod-search-block-size,var(--spectrum-search-block-size));font-style:var(--mod-search-font-style,var(--spectrum-search-font-style));line-height:var(--mod-search-line-height,var(--spectrum-search-line-height));padding-block-start:calc(var(--mod-search-top-to-text,var(--spectrum-search-top-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)));padding-block-end:calc(var(--mod-search-bottom-to-text,var(--spectrum-search-bottom-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}.input::-webkit-search-cancel-button,.input::-webkit-search-decoration{appearance:none}:host(:not([quiet])) #textfield .icon-search{inset-inline-start:var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual))}:host(:not([quiet])) #textfield .input{padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) - var(--mod-search-border-width,var(--spectrum-search-border-width)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}:host([quiet]){--spectrum-search-quiet-button-offset:var(--mod-search-quiet-button-offset,calc(var(--mod-search-block-size,var(--spectrum-search-block-size))/2 - var(--mod-search-icon-size,var(--spectrum-search-icon-size))/2))}:host([quiet]) #button .spectrum-ClearButton-icon{transform:translateX(var(--spectrum-search-quiet-button-offset))}:host([quiet]) #textfield .input{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));padding-block-start:var(--mod-search-top-to-text,var(--spectrum-search-top-to-text));padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--spectrum-search-quiet-button-offset))}
3
+ `;export default e;
4
+ //# sourceMappingURL=spectrum-search.css.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["spectrum-search.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2025 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n @media (forced-colors:active){#textfield #textfield,#textfield #textfield .input{--highcontrast-search-color-default:CanvasText;--highcontrast-search-color-hover:CanvasText;--highcontrast-search-color-focus:CanvasText;--highcontrast-search-color-disabled:GrayText}#textfield #button .spectrum-ClearButton-fill{forced-color-adjust:none;background-color:initial}}#textfield{--spectrum-search-button-inline-size:var(--spectrum-search-block-size);--spectrum-search-min-inline-size:calc(var(--spectrum-search-min-inline-multiplier)*var(--spectrum-search-block-size));--mod-textfield-font-family:var(--mod-search-font-family,var(--spectrum-search-font-family));--mod-textfield-font-weight:var(--mod-search-font-weight,var(--spectrum-search-font-weight));--mod-textfield-corner-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));--mod-textfield-border-width:var(--mod-search-border-width,var(--spectrum-search-border-width));--mod-textfield-focus-indicator-gap:var(--mod-search-focus-indicator-gap,var(--spectrum-search-focus-indicator-gap));--mod-textfield-focus-indicator-width:var(--mod-search-focus-indicator-thickness,var(--spectrum-search-focus-indicator-thickness));--mod-textfield-focus-indicator-color:var(--mod-search-focus-indicator-color,var(--spectrum-search-focus-indicator-color));--mod-textfield-text-color-default:var(--mod-search-color-default,var(--spectrum-search-color-default));--mod-textfield-text-color-hover:var(--mod-search-color-hover,var(--spectrum-search-color-hover));--mod-textfield-text-color-focus:var(--mod-search-color-focus,var(--spectrum-search-color-focus));--mod-textfield-text-color-focus-hover:var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover));--mod-textfield-text-color-keyboard-focus:var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus));--mod-textfield-text-color-disabled:var(--mod-search-color-disabled,var(--spectrum-search-color-disabled));--mod-textfield-border-color:var(--mod-search-border-color-default,var(--spectrum-search-border-color-default));--mod-textfield-border-color-hover:var(--mod-search-border-color-hover,var(--spectrum-search-border-color-hover));--mod-textfield-border-color-focus:var(--mod-search-border-color-focus,var(--spectrum-search-border-color-focus));--mod-textfield-border-color-focus-hover:var(--mod-search-border-color-focus-hover,var(--spectrum-search-border-color-focus-hover));--mod-textfield-border-color-keyboard-focus:var(--mod-search-border-color-key-focus,var(--spectrum-search-border-color-key-focus));--mod-textfield-border-color-disabled:var(--mod-search-border-color-disabled,var(--spectrum-search-border-color-disabled));--mod-textfield-background-color:var(--mod-search-background-color,var(--spectrum-search-background-color));--mod-textfield-background-color-disabled:var(--mod-search-background-color-disabled,var(--spectrum-search-background-color-disabled));inline-size:var(--mod-search-inline-size,var(--spectrum-search-inline-size));min-inline-size:var(--mod-search-min-inline-size,var(--spectrum-search-min-inline-size));display:inline-block;position:relative}#textfield .spectrum-HelpText{margin-block-start:var(--mod-search-to-help-text,var(--spectrum-search-to-help-text))}#button{position:absolute;inset-block-start:0;inset-inline-end:0}#button,#button .spectrum-ClearButton-fill{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius))}#textfield.is-disabled #button{display:none}#textfield{inline-size:100%}.icon-search{--spectrum-search-color:var(--highcontrast-search-color-default,var(--mod-search-color-default,var(--spectrum-search-color-default)));color:var(--spectrum-search-color);margin-block:auto;display:block;position:absolute;inset-block:0}#textfield.is-focused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus,var(--spectrum-search-color-focus)))}#textfield.is-keyboardFocused .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-key-focus,var(--spectrum-search-color-key-focus)))}#textfield.is-disabled .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}@media (hover:hover){#textfield:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-hover,var(--mod-search-color-hover,var(--spectrum-search-color-hover)))}#textfield.is-focused:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-focus,var(--mod-search-color-focus-hover,var(--spectrum-search-color-focus-hover)))}#textfield.is-disabled:hover .icon-search{--spectrum-search-color:var(--highcontrast-search-color-disabled,var(--mod-search-color-disabled,var(--spectrum-search-color-disabled)))}}.input{appearance:none;block-size:var(--mod-search-block-size,var(--spectrum-search-block-size));font-style:var(--mod-search-font-style,var(--spectrum-search-font-style));line-height:var(--mod-search-line-height,var(--spectrum-search-line-height));padding-block-start:calc(var(--mod-search-top-to-text,var(--spectrum-search-top-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)));padding-block-end:calc(var(--mod-search-bottom-to-text,var(--spectrum-search-bottom-to-text)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}.input::-webkit-search-cancel-button,.input::-webkit-search-decoration{appearance:none}:host(:not([quiet])) #textfield .icon-search{inset-inline-start:var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual))}:host(:not([quiet])) #textfield .input{padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) - var(--mod-search-border-width,var(--spectrum-search-border-width)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--mod-search-border-width,var(--spectrum-search-border-width)))}:host([quiet]){--spectrum-search-quiet-button-offset:var(--mod-search-quiet-button-offset,calc(var(--mod-search-block-size,var(--spectrum-search-block-size))/2 - var(--mod-search-icon-size,var(--spectrum-search-icon-size))/2))}:host([quiet]) #button .spectrum-ClearButton-icon{transform:translateX(var(--spectrum-search-quiet-button-offset))}:host([quiet]) #textfield .input{border-radius:var(--mod-search-border-radius,var(--spectrum-search-border-radius));padding-block-start:var(--mod-search-top-to-text,var(--spectrum-search-top-to-text));padding-inline-start:calc(var(--mod-search-edge-to-visual,var(--spectrum-search-edge-to-visual)) + var(--mod-search-icon-size,var(--spectrum-search-icon-size)) + var(--mod-search-text-to-icon,var(--spectrum-search-text-to-icon)));padding-inline-end:calc(var(--mod-search-button-inline-size,var(--spectrum-search-button-inline-size)) - var(--spectrum-search-quiet-button-offset))}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
+ "names": ["css", "styles"]
7
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ import { html } from "@spectrum-web-components/base";
3
+ import "@spectrum-web-components/search/sp-search.js";
4
+ import "@spectrum-web-components/field-label/sp-field-label.js";
5
+ import "@spectrum-web-components/help-text/sp-help-text.js";
6
+ import { ifDefined } from "@spectrum-web-components/base/src/directives.js";
7
+ export default {
8
+ component: "sp-search",
9
+ title: "Search/Sizes"
10
+ };
11
+ const template = ({
12
+ size
13
+ } = {}) => {
14
+ return html`
15
+ <sp-field-label for="name" size=${ifDefined(size)}>
16
+ What would you like to find?
17
+ </sp-field-label>
18
+ <sp-search id="name" size=${ifDefined(size)} value="Sized Search">
19
+ <sp-help-text size=${ifDefined(size)} slot="help-text">
20
+ Anything within reason...
21
+ </sp-help-text>
22
+ </sp-search>
23
+ `;
24
+ };
25
+ export const s = () => template({ size: "s" });
26
+ export const noSize = () => template();
27
+ export const m = () => template({ size: "m" });
28
+ export const l = () => template({ size: "l" });
29
+ export const XL = () => template({ size: "xl" });
30
+ //# sourceMappingURL=search-sizes.stories.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["search-sizes.stories.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2018 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/search/sp-search.js';\nimport '@spectrum-web-components/field-label/sp-field-label.js';\nimport '@spectrum-web-components/help-text/sp-help-text.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nexport default {\n component: 'sp-search',\n title: 'Search/Sizes',\n};\n\nconst template = ({\n size,\n}: {\n size?: 's' | 'm' | 'l' | 'xl';\n} = {}): TemplateResult => {\n return html`\n <sp-field-label for=\"name\" size=${ifDefined(size)}>\n What would you like to find?\n </sp-field-label>\n <sp-search id=\"name\" size=${ifDefined(size)} value=\"Sized Search\">\n <sp-help-text size=${ifDefined(size)} slot=\"help-text\">\n Anything within reason...\n </sp-help-text>\n </sp-search>\n `;\n};\n\nexport const s = (): TemplateResult => template({ size: 's' });\nexport const noSize = (): TemplateResult => template();\nexport const m = (): TemplateResult => template({ size: 'm' });\nexport const l = (): TemplateResult => template({ size: 'l' });\nexport const XL = (): TemplateResult => template({ size: 'xl' });\n"],
5
+ "mappings": ";AAWA,SAAS,YAA4B;AAErC,OAAO;AACP,OAAO;AACP,OAAO;AACP,SAAS,iBAAiB;AAE1B,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEA,MAAM,WAAW,CAAC;AAAA,EACd;AACJ,IAEI,CAAC,MAAsB;AACvB,SAAO;AAAA,0CAC+B,UAAU,IAAI,CAAC;AAAA;AAAA;AAAA,oCAGrB,UAAU,IAAI,CAAC;AAAA,iCAClB,UAAU,IAAI,CAAC;AAAA;AAAA;AAAA;AAAA;AAKhD;AAEO,aAAM,IAAI,MAAsB,SAAS,EAAE,MAAM,IAAI,CAAC;AACtD,aAAM,SAAS,MAAsB,SAAS;AAC9C,aAAM,IAAI,MAAsB,SAAS,EAAE,MAAM,IAAI,CAAC;AACtD,aAAM,IAAI,MAAsB,SAAS,EAAE,MAAM,IAAI,CAAC;AACtD,aAAM,KAAK,MAAsB,SAAS,EAAE,MAAM,KAAK,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ import "@spectrum-web-components/search/sp-search.js";
3
+ import { html } from "@spectrum-web-components/base";
4
+ export default {
5
+ component: "sp-search",
6
+ title: "Search"
7
+ };
8
+ export const Default = () => html`
9
+ <sp-search></sp-search>
10
+ <sp-search disabled></sp-search>
11
+ `;
12
+ export const autofocus = () => html`
13
+ <sp-search autofocus></sp-search>
14
+ `;
15
+ export const focusedOverflowing = () => html`
16
+ <sp-search
17
+ value="this is a really long search term that overflows the available space"
18
+ ></sp-search>
19
+ `;
20
+ export const Quiet = () => html`
21
+ <sp-search quiet></sp-search>
22
+ <sp-search quiet disabled></sp-search>
23
+ `;
24
+ export const holdValueOnEscape = () => html`
25
+ <sp-search holdValueOnEscape></sp-search>
26
+ `;
27
+ //# sourceMappingURL=search.stories.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["search.stories.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2018 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport '@spectrum-web-components/search/sp-search.js';\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nexport default {\n component: 'sp-search',\n title: 'Search',\n};\n\nexport const Default = (): TemplateResult => html`\n <sp-search></sp-search>\n <sp-search disabled></sp-search>\n`;\n\nexport const autofocus = (): TemplateResult => html`\n <sp-search autofocus></sp-search>\n`;\n\nexport const focusedOverflowing = (): TemplateResult => html`\n <sp-search\n value=\"this is a really long search term that overflows the available space\"\n ></sp-search>\n`;\n\nexport const Quiet = (): TemplateResult => html`\n <sp-search quiet></sp-search>\n <sp-search quiet disabled></sp-search>\n`;\n\nexport const holdValueOnEscape = (): TemplateResult => html`\n <sp-search holdValueOnEscape></sp-search>\n`;\n"],
5
+ "mappings": ";AAWA,OAAO;AACP,SAAS,YAA4B;AAErC,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEO,aAAM,UAAU,MAAsB;AAAA;AAAA;AAAA;AAKtC,aAAM,YAAY,MAAsB;AAAA;AAAA;AAIxC,aAAM,qBAAqB,MAAsB;AAAA;AAAA;AAAA;AAAA;AAMjD,aAAM,QAAQ,MAAsB;AAAA;AAAA;AAAA;AAKpC,aAAM,oBAAoB,MAAsB;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ import "@spectrum-web-components/search/sp-search.js";
3
+ import { html } from "lit";
4
+ import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
5
+ measureFixtureCreation(html`
6
+ <sp-search
7
+ placeholder="Search millions of images"
8
+ label="Search for an image"
9
+ @submit=${(event) => {
10
+ event.preventDefault();
11
+ }}
12
+ ></sp-search>
13
+ `);
14
+ //# sourceMappingURL=test-basic.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["test-basic.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport '@spectrum-web-components/search/sp-search.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-search\n placeholder=\"Search millions of images\"\n label=\"Search for an image\"\n @submit=${(event: Event) => {\n event.preventDefault();\n }}\n ></sp-search>\n`);\n"],
5
+ "mappings": ";AAYA,OAAO;AACP,SAAS,YAAY;AACrB,SAAS,8BAA8B;AAEvC,uBAAuB;AAAA;AAAA;AAAA;AAAA,kBAIL,CAAC,UAAiB;AACxB,QAAM,eAAe;AACzB,CAAC;AAAA;AAAA,CAER;",
6
+ "names": []
7
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ import { html } from "@open-wc/testing";
3
+ import "@spectrum-web-components/search/sp-search.js";
4
+ import { testForMemoryLeaks } from "../../../test/testing-helpers.js";
5
+ testForMemoryLeaks(html`
6
+ <sp-search></sp-search>
7
+ `);
8
+ //# sourceMappingURL=search-memory.test.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["search-memory.test.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { html } from '@open-wc/testing';\nimport '@spectrum-web-components/search/sp-search.js';\nimport { testForMemoryLeaks } from '../../../test/testing-helpers.js';\n\ntestForMemoryLeaks(html`\n <sp-search></sp-search>\n`);\n"],
5
+ "mappings": ";AAWA,SAAS,YAAY;AACrB,OAAO;AACP,SAAS,0BAA0B;AAEnC,mBAAmB;AAAA;AAAA,CAElB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ import * as stories from "../stories/search-sizes.stories.js";
3
+ import { regressVisuals } from "../../../test/visual/test.js";
4
+ regressVisuals("SearchSizesStories", stories);
5
+ //# sourceMappingURL=search-sizes.test-vrt.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["search-sizes.test-vrt.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/search-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('SearchSizesStories', stories as unknown as TestsType);\n"],
5
+ "mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,sBAAsB,OAA+B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ import * as stories from "../stories/search.stories.js";
3
+ import { regressVisuals } from "../../../test/visual/test.js";
4
+ regressVisuals("SearchStories", stories);
5
+ //# sourceMappingURL=search.test-vrt.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["search.test-vrt.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/search.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('SearchStories', stories as unknown as TestsType);\n"],
5
+ "mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,iBAAiB,OAA+B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,181 @@
1
+ "use strict";
2
+ import "@spectrum-web-components/search/sp-search.js";
3
+ import { elementUpdated, expect, html, litFixture } from "@open-wc/testing";
4
+ import { escapeEvent, spaceEvent } from "../../../test/testing-helpers.js";
5
+ import "@spectrum-web-components/shared/src/focus-visible.js";
6
+ import { spy } from "sinon";
7
+ import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
8
+ describe("Search", () => {
9
+ testForLitDevWarnings(
10
+ async () => await litFixture(html`
11
+ <sp-search></sp-search>
12
+ `)
13
+ );
14
+ it("loads accessibly", async () => {
15
+ const el = await litFixture(html`
16
+ <sp-search></sp-search>
17
+ `);
18
+ await elementUpdated(el);
19
+ await expect(el).to.be.accessible();
20
+ });
21
+ it("can be cleared", async () => {
22
+ const el = await litFixture(html`
23
+ <sp-search value="Test"></sp-search>
24
+ `);
25
+ await elementUpdated(el);
26
+ expect(el.value).to.equal("Test");
27
+ const root = el.shadowRoot ? el.shadowRoot : el;
28
+ const clearButton = root.querySelector("#button");
29
+ clearButton.click();
30
+ await elementUpdated(el);
31
+ expect(el.value).to.equal("");
32
+ });
33
+ it("captures keyboard events to the clear button", async () => {
34
+ const el = await litFixture(html`
35
+ <sp-search value="Test"></sp-search>
36
+ `);
37
+ await elementUpdated(el);
38
+ expect(el.value).to.equal("Test");
39
+ const root = el.shadowRoot ? el.shadowRoot : el;
40
+ const clearButton = root.querySelector("#button");
41
+ clearButton.dispatchEvent(escapeEvent());
42
+ await elementUpdated(el);
43
+ expect(el.value).to.equal("Test");
44
+ });
45
+ it('dispatches events when using the "clear" button', async () => {
46
+ const inputSpy = spy();
47
+ const changeSpy = spy();
48
+ const handleInput = (event) => {
49
+ const target = event.target;
50
+ inputSpy(target.value);
51
+ };
52
+ const handleChange = (event) => {
53
+ const target = event.target;
54
+ changeSpy(target.value);
55
+ };
56
+ const el = await litFixture(html`
57
+ <sp-search
58
+ value="Test"
59
+ @change=${handleChange}
60
+ @input=${handleInput}
61
+ ></sp-search>
62
+ `);
63
+ await elementUpdated(el);
64
+ expect(el.value).to.equal("Test");
65
+ const root = el.shadowRoot ? el.shadowRoot : el;
66
+ const clearButton = root.querySelector("#button");
67
+ inputSpy.resetHistory();
68
+ changeSpy.resetHistory();
69
+ clearButton.click();
70
+ await elementUpdated(el);
71
+ expect(el.value).to.equal("");
72
+ expect(inputSpy.calledOnce, "one input").to.be.true;
73
+ expect(inputSpy.calledWith(""), "was blank").to.be.true;
74
+ expect(changeSpy.calledOnce, "one change").to.be.true;
75
+ expect(changeSpy.calledWith(""), "was blank").to.be.true;
76
+ });
77
+ it('can be cleared via "Escape"', async () => {
78
+ const inputSpy = spy();
79
+ const changeSpy = spy();
80
+ const handleInput = (event) => {
81
+ const target = event.target;
82
+ inputSpy(target.value);
83
+ };
84
+ const handleChange = (event) => {
85
+ const target = event.target;
86
+ changeSpy(target.value);
87
+ };
88
+ const el = await litFixture(html`
89
+ <sp-search
90
+ value="Test"
91
+ @change=${handleChange}
92
+ @input=${handleInput}
93
+ ></sp-search>
94
+ `);
95
+ await elementUpdated(el);
96
+ expect(el.value).to.equal("Test");
97
+ el.focusElement.dispatchEvent(spaceEvent());
98
+ await elementUpdated(el);
99
+ expect(el.value).to.equal("Test");
100
+ inputSpy.resetHistory();
101
+ changeSpy.resetHistory();
102
+ el.focusElement.dispatchEvent(escapeEvent());
103
+ await elementUpdated(el);
104
+ expect(el.value).to.equal("");
105
+ expect(inputSpy.calledOnce, "one input").to.be.true;
106
+ expect(inputSpy.calledWith(""), "was blank").to.be.true;
107
+ expect(changeSpy.calledOnce, "one change").to.be.true;
108
+ expect(changeSpy.calledWith(""), "was blank").to.be.true;
109
+ });
110
+ it('cannot be cleared via "Escape" if holdValueOnEscape is true', async () => {
111
+ const inputSpy = spy();
112
+ const changeSpy = spy();
113
+ const handleInput = (event) => {
114
+ const target = event.target;
115
+ inputSpy(target.value);
116
+ };
117
+ const handleChange = (event) => {
118
+ const target = event.target;
119
+ changeSpy(target.value);
120
+ };
121
+ const el = await litFixture(html`
122
+ <sp-search
123
+ value="Test"
124
+ @change=${handleChange}
125
+ @input=${handleInput}
126
+ holdValueOnEscape
127
+ ></sp-search>
128
+ `);
129
+ await elementUpdated(el);
130
+ expect(el.value).to.equal("Test");
131
+ el.focusElement.dispatchEvent(spaceEvent());
132
+ await elementUpdated(el);
133
+ expect(el.value).to.equal("Test");
134
+ inputSpy.resetHistory();
135
+ changeSpy.resetHistory();
136
+ el.focusElement.dispatchEvent(escapeEvent());
137
+ await elementUpdated(el);
138
+ expect(el.value).to.equal("Test");
139
+ });
140
+ it("cannot be multiline", async () => {
141
+ const el = await litFixture(html`
142
+ <sp-search multiline></sp-search>
143
+ `);
144
+ await elementUpdated(el);
145
+ expect(el.multiline).to.be.false;
146
+ el.multiline = true;
147
+ await elementUpdated(el);
148
+ expect(el.multiline).to.be.false;
149
+ });
150
+ it("accepts `placeholder` and `label` properties", async () => {
151
+ const testString = "Search for images";
152
+ const el = await litFixture(html`
153
+ <sp-search></sp-search>
154
+ `);
155
+ await elementUpdated(el);
156
+ el.placeholder = testString;
157
+ el.label = testString;
158
+ await elementUpdated(el);
159
+ expect(el.focusElement.placeholder).to.equal(testString);
160
+ expect(el.focusElement.getAttribute("aria-label")).to.equal(testString);
161
+ });
162
+ it("can have default prevented", async () => {
163
+ const el = await litFixture(html`
164
+ <sp-search
165
+ @submit=${(event) => {
166
+ event.preventDefault();
167
+ }}
168
+ ></sp-search>
169
+ `);
170
+ await elementUpdated(el);
171
+ const searchForm = el.shadowRoot ? el.shadowRoot.querySelector("form") : el.querySelector("form");
172
+ const submitEvent = new Event("submit", {
173
+ cancelable: true,
174
+ bubbles: false,
175
+ composed: false
176
+ });
177
+ searchForm.dispatchEvent(submitEvent);
178
+ expect(submitEvent.defaultPrevented).to.be.true;
179
+ });
180
+ });
181
+ //# sourceMappingURL=search.test.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["search.test.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport '@spectrum-web-components/search/sp-search.js';\nimport { Search } from '@spectrum-web-components/search';\nimport { elementUpdated, expect, html, litFixture } from '@open-wc/testing';\nimport { escapeEvent, spaceEvent } from '../../../test/testing-helpers.js';\nimport '@spectrum-web-components/shared/src/focus-visible.js';\nimport { spy } from 'sinon';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\n\ndescribe('Search', () => {\n testForLitDevWarnings(\n async () =>\n await litFixture<Search>(html`\n <sp-search></sp-search>\n `)\n );\n it('loads accessibly', async () => {\n const el = await litFixture<Search>(html`\n <sp-search></sp-search>\n `);\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('can be cleared', async () => {\n const el = await litFixture<Search>(html`\n <sp-search value=\"Test\"></sp-search>\n `);\n\n await elementUpdated(el);\n expect(el.value).to.equal('Test');\n\n const root = el.shadowRoot ? el.shadowRoot : el;\n const clearButton = root.querySelector('#button') as HTMLButtonElement;\n clearButton.click();\n\n await elementUpdated(el);\n\n expect(el.value).to.equal('');\n });\n it('captures keyboard events to the clear button', async () => {\n const el = await litFixture<Search>(html`\n <sp-search value=\"Test\"></sp-search>\n `);\n\n await elementUpdated(el);\n expect(el.value).to.equal('Test');\n\n const root = el.shadowRoot ? el.shadowRoot : el;\n const clearButton = root.querySelector('#button') as HTMLButtonElement;\n clearButton.dispatchEvent(escapeEvent());\n\n await elementUpdated(el);\n\n expect(el.value).to.equal('Test');\n });\n it('dispatches events when using the \"clear\" button', async () => {\n const inputSpy = spy();\n const changeSpy = spy();\n const handleInput = (event: Event): void => {\n const target = event.target as HTMLInputElement;\n inputSpy(target.value);\n };\n const handleChange = (event: Event): void => {\n const target = event.target as HTMLInputElement;\n changeSpy(target.value);\n };\n const el = await litFixture<Search>(html`\n <sp-search\n value=\"Test\"\n @change=${handleChange}\n @input=${handleInput}\n ></sp-search>\n `);\n\n await elementUpdated(el);\n expect(el.value).to.equal('Test');\n\n const root = el.shadowRoot ? el.shadowRoot : el;\n const clearButton = root.querySelector('#button') as HTMLButtonElement;\n inputSpy.resetHistory();\n changeSpy.resetHistory();\n clearButton.click();\n\n await elementUpdated(el);\n\n expect(el.value).to.equal('');\n expect(inputSpy.calledOnce, 'one input').to.be.true;\n expect(inputSpy.calledWith(''), 'was blank').to.be.true;\n expect(changeSpy.calledOnce, 'one change').to.be.true;\n expect(changeSpy.calledWith(''), 'was blank').to.be.true;\n });\n it('can be cleared via \"Escape\"', async () => {\n const inputSpy = spy();\n const changeSpy = spy();\n const handleInput = (event: Event): void => {\n const target = event.target as HTMLInputElement;\n inputSpy(target.value);\n };\n const handleChange = (event: Event): void => {\n const target = event.target as HTMLInputElement;\n changeSpy(target.value);\n };\n const el = await litFixture<Search>(html`\n <sp-search\n value=\"Test\"\n @change=${handleChange}\n @input=${handleInput}\n ></sp-search>\n `);\n\n await elementUpdated(el);\n expect(el.value).to.equal('Test');\n el.focusElement.dispatchEvent(spaceEvent());\n\n await elementUpdated(el);\n expect(el.value).to.equal('Test');\n\n inputSpy.resetHistory();\n changeSpy.resetHistory();\n el.focusElement.dispatchEvent(escapeEvent());\n\n await elementUpdated(el);\n\n expect(el.value).to.equal('');\n expect(inputSpy.calledOnce, 'one input').to.be.true;\n expect(inputSpy.calledWith(''), 'was blank').to.be.true;\n expect(changeSpy.calledOnce, 'one change').to.be.true;\n expect(changeSpy.calledWith(''), 'was blank').to.be.true;\n });\n it('cannot be cleared via \"Escape\" if holdValueOnEscape is true', async () => {\n const inputSpy = spy();\n const changeSpy = spy();\n const handleInput = (event: Event): void => {\n const target = event.target as HTMLInputElement;\n inputSpy(target.value);\n };\n const handleChange = (event: Event): void => {\n const target = event.target as HTMLInputElement;\n changeSpy(target.value);\n };\n const el = await litFixture<Search>(html`\n <sp-search\n value=\"Test\"\n @change=${handleChange}\n @input=${handleInput}\n holdValueOnEscape\n ></sp-search>\n `);\n\n await elementUpdated(el);\n expect(el.value).to.equal('Test');\n el.focusElement.dispatchEvent(spaceEvent());\n\n await elementUpdated(el);\n expect(el.value).to.equal('Test');\n\n inputSpy.resetHistory();\n changeSpy.resetHistory();\n el.focusElement.dispatchEvent(escapeEvent());\n\n await elementUpdated(el);\n\n expect(el.value).to.equal('Test');\n });\n it('cannot be multiline', async () => {\n const el = await litFixture<Search>(html`\n <sp-search multiline></sp-search>\n `);\n\n await elementUpdated(el);\n\n expect(el.multiline).to.be.false;\n\n el.multiline = true;\n\n await elementUpdated(el);\n\n expect(el.multiline).to.be.false;\n });\n it('accepts `placeholder` and `label` properties', async () => {\n const testString = 'Search for images';\n const el = await litFixture<Search>(html`\n <sp-search></sp-search>\n `);\n\n await elementUpdated(el);\n el.placeholder = testString;\n el.label = testString;\n\n await elementUpdated(el);\n\n expect(el.focusElement.placeholder).to.equal(testString);\n expect(el.focusElement.getAttribute('aria-label')).to.equal(testString);\n });\n it('can have default prevented', async () => {\n const el = await litFixture<Search>(html`\n <sp-search\n @submit=${(event: Event) => {\n event.preventDefault();\n }}\n ></sp-search>\n `);\n\n await elementUpdated(el);\n const searchForm = (\n el.shadowRoot\n ? el.shadowRoot.querySelector('form')\n : el.querySelector('form')\n ) as HTMLFormElement;\n\n const submitEvent = new Event('submit', {\n cancelable: true,\n bubbles: false,\n composed: false,\n });\n searchForm.dispatchEvent(submitEvent);\n\n expect(submitEvent.defaultPrevented).to.be.true;\n });\n});\n"],
5
+ "mappings": ";AAWA,OAAO;AAEP,SAAS,gBAAgB,QAAQ,MAAM,kBAAkB;AACzD,SAAS,aAAa,kBAAkB;AACxC,OAAO;AACP,SAAS,WAAW;AACpB,SAAS,6BAA6B;AAEtC,SAAS,UAAU,MAAM;AACrB;AAAA,IACI,YACI,MAAM,WAAmB;AAAA;AAAA,aAExB;AAAA,EACT;AACA,KAAG,oBAAoB,YAAY;AAC/B,UAAM,KAAK,MAAM,WAAmB;AAAA;AAAA,SAEnC;AAED,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,kBAAkB,YAAY;AAC7B,UAAM,KAAK,MAAM,WAAmB;AAAA;AAAA,SAEnC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,KAAK,EAAE,GAAG,MAAM,MAAM;AAEhC,UAAM,OAAO,GAAG,aAAa,GAAG,aAAa;AAC7C,UAAM,cAAc,KAAK,cAAc,SAAS;AAChD,gBAAY,MAAM;AAElB,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,KAAK,EAAE,GAAG,MAAM,EAAE;AAAA,EAChC,CAAC;AACD,KAAG,gDAAgD,YAAY;AAC3D,UAAM,KAAK,MAAM,WAAmB;AAAA;AAAA,SAEnC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,KAAK,EAAE,GAAG,MAAM,MAAM;AAEhC,UAAM,OAAO,GAAG,aAAa,GAAG,aAAa;AAC7C,UAAM,cAAc,KAAK,cAAc,SAAS;AAChD,gBAAY,cAAc,YAAY,CAAC;AAEvC,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,KAAK,EAAE,GAAG,MAAM,MAAM;AAAA,EACpC,CAAC;AACD,KAAG,mDAAmD,YAAY;AAC9D,UAAM,WAAW,IAAI;AACrB,UAAM,YAAY,IAAI;AACtB,UAAM,cAAc,CAAC,UAAuB;AACxC,YAAM,SAAS,MAAM;AACrB,eAAS,OAAO,KAAK;AAAA,IACzB;AACA,UAAM,eAAe,CAAC,UAAuB;AACzC,YAAM,SAAS,MAAM;AACrB,gBAAU,OAAO,KAAK;AAAA,IAC1B;AACA,UAAM,KAAK,MAAM,WAAmB;AAAA;AAAA;AAAA,0BAGlB,YAAY;AAAA,yBACb,WAAW;AAAA;AAAA,SAE3B;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,KAAK,EAAE,GAAG,MAAM,MAAM;AAEhC,UAAM,OAAO,GAAG,aAAa,GAAG,aAAa;AAC7C,UAAM,cAAc,KAAK,cAAc,SAAS;AAChD,aAAS,aAAa;AACtB,cAAU,aAAa;AACvB,gBAAY,MAAM;AAElB,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,KAAK,EAAE,GAAG,MAAM,EAAE;AAC5B,WAAO,SAAS,YAAY,WAAW,EAAE,GAAG,GAAG;AAC/C,WAAO,SAAS,WAAW,EAAE,GAAG,WAAW,EAAE,GAAG,GAAG;AACnD,WAAO,UAAU,YAAY,YAAY,EAAE,GAAG,GAAG;AACjD,WAAO,UAAU,WAAW,EAAE,GAAG,WAAW,EAAE,GAAG,GAAG;AAAA,EACxD,CAAC;AACD,KAAG,+BAA+B,YAAY;AAC1C,UAAM,WAAW,IAAI;AACrB,UAAM,YAAY,IAAI;AACtB,UAAM,cAAc,CAAC,UAAuB;AACxC,YAAM,SAAS,MAAM;AACrB,eAAS,OAAO,KAAK;AAAA,IACzB;AACA,UAAM,eAAe,CAAC,UAAuB;AACzC,YAAM,SAAS,MAAM;AACrB,gBAAU,OAAO,KAAK;AAAA,IAC1B;AACA,UAAM,KAAK,MAAM,WAAmB;AAAA;AAAA;AAAA,0BAGlB,YAAY;AAAA,yBACb,WAAW;AAAA;AAAA,SAE3B;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,KAAK,EAAE,GAAG,MAAM,MAAM;AAChC,OAAG,aAAa,cAAc,WAAW,CAAC;AAE1C,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,KAAK,EAAE,GAAG,MAAM,MAAM;AAEhC,aAAS,aAAa;AACtB,cAAU,aAAa;AACvB,OAAG,aAAa,cAAc,YAAY,CAAC;AAE3C,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,KAAK,EAAE,GAAG,MAAM,EAAE;AAC5B,WAAO,SAAS,YAAY,WAAW,EAAE,GAAG,GAAG;AAC/C,WAAO,SAAS,WAAW,EAAE,GAAG,WAAW,EAAE,GAAG,GAAG;AACnD,WAAO,UAAU,YAAY,YAAY,EAAE,GAAG,GAAG;AACjD,WAAO,UAAU,WAAW,EAAE,GAAG,WAAW,EAAE,GAAG,GAAG;AAAA,EACxD,CAAC;AACD,KAAG,+DAA+D,YAAY;AAC1E,UAAM,WAAW,IAAI;AACrB,UAAM,YAAY,IAAI;AACtB,UAAM,cAAc,CAAC,UAAuB;AACxC,YAAM,SAAS,MAAM;AACrB,eAAS,OAAO,KAAK;AAAA,IACzB;AACA,UAAM,eAAe,CAAC,UAAuB;AACzC,YAAM,SAAS,MAAM;AACrB,gBAAU,OAAO,KAAK;AAAA,IAC1B;AACA,UAAM,KAAK,MAAM,WAAmB;AAAA;AAAA;AAAA,0BAGlB,YAAY;AAAA,yBACb,WAAW;AAAA;AAAA;AAAA,SAG3B;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,KAAK,EAAE,GAAG,MAAM,MAAM;AAChC,OAAG,aAAa,cAAc,WAAW,CAAC;AAE1C,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,KAAK,EAAE,GAAG,MAAM,MAAM;AAEhC,aAAS,aAAa;AACtB,cAAU,aAAa;AACvB,OAAG,aAAa,cAAc,YAAY,CAAC;AAE3C,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,KAAK,EAAE,GAAG,MAAM,MAAM;AAAA,EACpC,CAAC;AACD,KAAG,uBAAuB,YAAY;AAClC,UAAM,KAAK,MAAM,WAAmB;AAAA;AAAA,SAEnC;AAED,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,SAAS,EAAE,GAAG,GAAG;AAE3B,OAAG,YAAY;AAEf,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,SAAS,EAAE,GAAG,GAAG;AAAA,EAC/B,CAAC;AACD,KAAG,gDAAgD,YAAY;AAC3D,UAAM,aAAa;AACnB,UAAM,KAAK,MAAM,WAAmB;AAAA;AAAA,SAEnC;AAED,UAAM,eAAe,EAAE;AACvB,OAAG,cAAc;AACjB,OAAG,QAAQ;AAEX,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,aAAa,WAAW,EAAE,GAAG,MAAM,UAAU;AACvD,WAAO,GAAG,aAAa,aAAa,YAAY,CAAC,EAAE,GAAG,MAAM,UAAU;AAAA,EAC1E,CAAC;AACD,KAAG,8BAA8B,YAAY;AACzC,UAAM,KAAK,MAAM,WAAmB;AAAA;AAAA,0BAElB,CAAC,UAAiB;AACxB,YAAM,eAAe;AAAA,IACzB,CAAC;AAAA;AAAA,SAER;AAED,UAAM,eAAe,EAAE;AACvB,UAAM,aACF,GAAG,aACG,GAAG,WAAW,cAAc,MAAM,IAClC,GAAG,cAAc,MAAM;AAGjC,UAAM,cAAc,IAAI,MAAM,UAAU;AAAA,MACpC,YAAY;AAAA,MACZ,SAAS;AAAA,MACT,UAAU;AAAA,IACd,CAAC;AACD,eAAW,cAAc,WAAW;AAEpC,WAAO,YAAY,gBAAgB,EAAE,GAAG,GAAG;AAAA,EAC/C,CAAC;AACL,CAAC;",
6
+ "names": []
7
+ }