@getflip/swirl-components 0.397.1 → 0.398.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components.json +37 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/swirl-chip.cjs.entry.js +1 -1
- package/dist/cjs/swirl-components.cjs.js +1 -1
- package/dist/cjs/swirl-search.cjs.entry.js +3 -2
- package/dist/collection/components/swirl-chip/swirl-chip.css +1 -0
- package/dist/collection/components/swirl-search/swirl-search.css +4 -0
- package/dist/collection/components/swirl-search/swirl-search.js +23 -2
- package/dist/components/assets/pdfjs/pdf.worker.min.mjs +1 -1
- package/dist/components/swirl-chip.js +1 -1
- package/dist/components/swirl-search.js +5 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/swirl-chip.entry.js +1 -1
- package/dist/esm/swirl-components.js +1 -1
- package/dist/esm/swirl-search.entry.js +3 -2
- package/dist/swirl-components/{p-24e956c7.entry.js → p-03764b63.entry.js} +1 -1
- package/dist/swirl-components/p-68f0deb0.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-search/swirl-search.d.ts +2 -1
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/vscode-data.json +7 -0
- package/dist/swirl-components/p-fbfae965.entry.js +0 -1
|
@@ -6,6 +6,7 @@ export class SwirlSearch {
|
|
|
6
6
|
this.clearButtonLabel = "Clear search term";
|
|
7
7
|
this.placeholder = "Search …";
|
|
8
8
|
this.variant = "filled";
|
|
9
|
+
this.clearable = true;
|
|
9
10
|
this.mediaQueryUnsubscribe = () => { };
|
|
10
11
|
this.clear = () => {
|
|
11
12
|
this.input.value = "";
|
|
@@ -56,7 +57,7 @@ export class SwirlSearch {
|
|
|
56
57
|
const className = classnames("search", `search--variant-${this.variant}`, {
|
|
57
58
|
"search--disabled": this.disabled,
|
|
58
59
|
});
|
|
59
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: 'a20b59680e46d8c0db48dc4e4219c9880660d693' }, h("span", { key: '3227a1ae642458cd4d011a6f51e7146ed60e9d90', class: className, ref: (el) => (this.iconEl = el) }, h("swirl-icon-search", { key: '6c7977231b43a3fa04eac25a7b0f6d786cc908bd', "aria-hidden": "true", class: "search__icon" }), h("input", { key: '773474215fde7a49dea748501fd74e99b25934bb', "aria-disabled": this.disabled ? "true" : undefined, "aria-label": this.label, autoComplete: "off", autoFocus: this.autoFocus, class: "search__input", disabled: this.disabled, id: this.inputId, inputMode: "search", name: this.inputName, onBlur: this.onBlur, onChange: this.onChange, onFocus: this.onFocus, onInput: this.onInput, placeholder: this.placeholder, ref: (el) => (this.input = el), type: "search", value: this.value }), !this.disabled && this.clearable && (h("button", { key: '24eefaf684a49e976232cb422b3f6fba2fc368cd', "aria-label": this.clearButtonLabel, class: "search__clear-button", onClick: this.clear, type: "button" }, h("swirl-icon-cancel", { key: '10c3dda4135ef1555935ee8d4a2dd17fa42d52de' }))))));
|
|
60
61
|
}
|
|
61
62
|
static get is() { return "swirl-search"; }
|
|
62
63
|
static get encapsulation() { return "scoped"; }
|
|
@@ -232,7 +233,7 @@ export class SwirlSearch {
|
|
|
232
233
|
"mutable": false,
|
|
233
234
|
"complexType": {
|
|
234
235
|
"original": "SwirlSearchVariant",
|
|
235
|
-
"resolved": "\"filled\" | \"outline\"",
|
|
236
|
+
"resolved": "\"filled\" | \"ghost\" | \"outline\"",
|
|
236
237
|
"references": {
|
|
237
238
|
"SwirlSearchVariant": {
|
|
238
239
|
"location": "local",
|
|
@@ -251,6 +252,26 @@ export class SwirlSearch {
|
|
|
251
252
|
"setter": false,
|
|
252
253
|
"reflect": false,
|
|
253
254
|
"defaultValue": "\"filled\""
|
|
255
|
+
},
|
|
256
|
+
"clearable": {
|
|
257
|
+
"type": "boolean",
|
|
258
|
+
"attribute": "clearable",
|
|
259
|
+
"mutable": false,
|
|
260
|
+
"complexType": {
|
|
261
|
+
"original": "boolean",
|
|
262
|
+
"resolved": "boolean",
|
|
263
|
+
"references": {}
|
|
264
|
+
},
|
|
265
|
+
"required": false,
|
|
266
|
+
"optional": true,
|
|
267
|
+
"docs": {
|
|
268
|
+
"tags": [],
|
|
269
|
+
"text": ""
|
|
270
|
+
},
|
|
271
|
+
"getter": false,
|
|
272
|
+
"setter": false,
|
|
273
|
+
"reflect": false,
|
|
274
|
+
"defaultValue": "true"
|
|
254
275
|
}
|
|
255
276
|
};
|
|
256
277
|
}
|