@itenthusiasm/custom-elements 0.0.1 → 0.0.3

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.
@@ -157,7 +157,7 @@ declare class ComboboxField extends HTMLElement implements ExposedInternals, Fie
157
157
  set filter(value: boolean);
158
158
  /** Activates a textbox that can be used to filter the list of `combobox` `option`s. @returns {boolean} */
159
159
  get filter(): boolean;
160
- set filterMethod(value: Extract<number | typeof Symbol.iterator | "length" | "toString" | "charAt" | "charCodeAt" | "concat" | "indexOf" | "lastIndexOf" | "localeCompare" | "match" | "replace" | "search" | "slice" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "substr" | "valueOf" | "codePointAt" | "includes" | "endsWith" | "normalize" | "repeat" | "startsWith" | "anchor" | "big" | "blink" | "bold" | "fixed" | "fontcolor" | "fontsize" | "italics" | "link" | "small" | "strike" | "sub" | "sup" | "padStart" | "padEnd" | "trimEnd" | "trimStart" | "trimLeft" | "trimRight" | "matchAll" | "replaceAll" | "at" | "isWellFormed" | "toWellFormed", "startsWith" | "includes">);
160
+ set filterMethod(value: Extract<number | typeof Symbol.iterator | "normalize" | "link" | "search" | "small" | "sub" | "sup" | "length" | "toString" | "concat" | "slice" | "indexOf" | "lastIndexOf" | "includes" | "at" | "charAt" | "charCodeAt" | "localeCompare" | "match" | "replace" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "substr" | "valueOf" | "codePointAt" | "endsWith" | "repeat" | "startsWith" | "anchor" | "big" | "blink" | "bold" | "fixed" | "fontcolor" | "fontsize" | "italics" | "strike" | "padStart" | "padEnd" | "trimEnd" | "trimStart" | "trimLeft" | "trimRight" | "matchAll" | "replaceAll" | "isWellFormed" | "toWellFormed", "startsWith" | "includes">);
161
161
  /**
162
162
  * Determines the method used to filter the `option`s as the user types.
163
163
  * - `startsWith`: {@link String.startsWith} will be used to filter the `option`s.
@@ -167,7 +167,7 @@ declare class ComboboxField extends HTMLElement implements ExposedInternals, Fie
167
167
  *
168
168
  * @returns {Extract<keyof String, "startsWith" | "includes">}
169
169
  */
170
- get filterMethod(): Extract<number | typeof Symbol.iterator | "length" | "toString" | "charAt" | "charCodeAt" | "concat" | "indexOf" | "lastIndexOf" | "localeCompare" | "match" | "replace" | "search" | "slice" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "substr" | "valueOf" | "codePointAt" | "includes" | "endsWith" | "normalize" | "repeat" | "startsWith" | "anchor" | "big" | "blink" | "bold" | "fixed" | "fontcolor" | "fontsize" | "italics" | "link" | "small" | "strike" | "sub" | "sup" | "padStart" | "padEnd" | "trimEnd" | "trimStart" | "trimLeft" | "trimRight" | "matchAll" | "replaceAll" | "at" | "isWellFormed" | "toWellFormed", "startsWith" | "includes">;
170
+ get filterMethod(): Extract<number | typeof Symbol.iterator | "normalize" | "link" | "search" | "small" | "sub" | "sup" | "length" | "toString" | "concat" | "slice" | "indexOf" | "lastIndexOf" | "includes" | "at" | "charAt" | "charCodeAt" | "localeCompare" | "match" | "replace" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "substr" | "valueOf" | "codePointAt" | "endsWith" | "repeat" | "startsWith" | "anchor" | "big" | "blink" | "bold" | "fixed" | "fontcolor" | "fontsize" | "italics" | "strike" | "padStart" | "padEnd" | "trimEnd" | "trimStart" | "trimLeft" | "trimRight" | "matchAll" | "replaceAll" | "isWellFormed" | "toWellFormed", "startsWith" | "includes">;
171
171
  set valueIs(value: "unclearable" | "clearable" | "anyvalue");
172
172
  /**
173
173
  * Indicates how a `combobox`'s value will behave.
@@ -241,3 +241,4 @@ import type { ListboxWithChildren } from "./types/helpers.js";
241
241
  declare const valueOnFocusKey: unique symbol;
242
242
  /** Internally used to determine if the `combobox`'s value is actively being modified through user's filter changes. */
243
243
  declare const editingKey: unique symbol;
244
+ //# sourceMappingURL=ComboboxField.d.ts.map
@@ -310,7 +310,7 @@ class ComboboxField extends HTMLElement {
310
310
  }
311
311
 
312
312
  setAttributeFor(combobox, attrs["aria-activedescendant"], nextActiveOption.id);
313
- this.#searchTimeout = window.setTimeout(() => (this.#searchString = ""), 500);
313
+ this.#searchTimeout = setTimeout(() => (this.#searchString = ""), 500);
314
314
  }
315
315
  };
316
316
 
@@ -13,3 +13,4 @@ declare class ComboboxListbox extends HTMLElement {
13
13
  connectedCallback(): void;
14
14
  #private;
15
15
  }
16
+ //# sourceMappingURL=ComboboxListbox.d.ts.map
@@ -37,3 +37,4 @@ declare class ComboboxOption extends HTMLElement implements Omit<HTMLOptionEleme
37
37
  get filteredOut(): boolean;
38
38
  #private;
39
39
  }
40
+ //# sourceMappingURL=ComboboxOption.d.ts.map
@@ -25,3 +25,4 @@ declare class SelectEnhancer extends HTMLElement {
25
25
  get optionTag(): string;
26
26
  #private;
27
27
  }
28
+ //# sourceMappingURL=SelectEnhancer.d.ts.map
@@ -2,3 +2,4 @@ export { default as ComboboxField } from "./ComboboxField.js";
2
2
  export { default as ComboboxListbox } from "./ComboboxListbox.js";
3
3
  export { default as ComboboxOption } from "./ComboboxOption.js";
4
4
  export { default as SelectEnhancer } from "./SelectEnhancer.js";
5
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from "./Combobox/index.js";
2
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@itenthusiasm/custom-elements",
3
3
  "type": "module",
4
- "version": "0.0.1",
4
+ "version": "0.0.3",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",
7
7
  "description": "Robust, accessible, and progressively-enhanceable Web Components for common developer needs",
8
8
  "author": "Isaiah Thomason",
9
9
  "homepage": "https://github.com/ITenthusiasm/custom-elements#readme",
10
+ "scripts": {
11
+ "prepublishOnly": "npm run build --include-workspace-root --if-present",
12
+ "postpublish": "npm run clean --include-workspace-root --if-present"
13
+ },
10
14
  "repository": {
11
15
  "type": "git",
12
16
  "url": "git+https://github.com/ITenthusiasm/custom-elements.git"
@@ -28,11 +32,27 @@
28
32
  "framework-agnostic",
29
33
  "progressive-enhancement"
30
34
  ],
35
+ "files": [
36
+ "./**/README.md",
37
+ "./**/*.{js,css,d.ts}"
38
+ ],
31
39
  "exports": {
32
40
  "./*.js": "./*.js",
41
+ "./*.css": "./*.css",
33
42
  "./*.d.ts": {
34
43
  "types": "./*.d.ts"
35
44
  },
36
- "./*": "./*/index.js"
45
+ ".": {
46
+ "types": "./index.d.ts",
47
+ "default": "./index.js"
48
+ },
49
+ "./Combobox": {
50
+ "types": "./Combobox/index.d.ts",
51
+ "default": "./Combobox/index.js"
52
+ },
53
+ "./*": {
54
+ "types": "./*.d.ts",
55
+ "default": "./*.js"
56
+ }
37
57
  }
38
58
  }
package/types/dom.d.ts ADDED
@@ -0,0 +1 @@
1
+ import type {} from "../Combobox/types/dom.d.ts";
@@ -0,0 +1 @@
1
+ import type {} from "../Combobox/types/preact.d.ts";
@@ -0,0 +1 @@
1
+ import type {} from "../Combobox/types/react.d.ts";
@@ -0,0 +1 @@
1
+ import type {} from "../Combobox/types/solid.d.ts";
@@ -0,0 +1 @@
1
+ import type {} from "../Combobox/types/svelte.d.ts";
package/types/vue.d.ts ADDED
@@ -0,0 +1 @@
1
+ import type {} from "../Combobox/types/vue.d.ts";
package/utils/dom.d.ts CHANGED
@@ -8,3 +8,4 @@
8
8
  * @returns {void}
9
9
  */
10
10
  export function setAttributeFor(element: HTMLElement, attribute: string, value: string): void;
11
+ //# sourceMappingURL=dom.d.ts.map