html-combobox-element 0.0.2 → 0.0.4
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/README.md +123 -0
- package/dist/cjs/combobox/Boolean.attribute.value.normalizer.d.ts +2 -0
- package/dist/cjs/combobox/Combobox.markup.d.ts +35 -0
- package/dist/cjs/combobox/Combobox.markup.js +178 -102
- package/dist/cjs/combobox/HTML.combobox.element.d.ts +60 -0
- package/dist/cjs/combobox/HTML.combobox.element.js +262 -113
- package/dist/cjs/combobox/HTML.combobox.option.element.d.ts +24 -0
- package/dist/cjs/combobox/HTML.combobox.option.element.js +70 -5
- package/dist/cjs/combobox/HTML.combobox.tag.element.d.ts +12 -0
- package/dist/cjs/combobox/HTML.combobox.tag.element.js +26 -7
- package/dist/cjs/combobox/index.d.ts +1 -0
- package/dist/cjs/index.d.ts +253 -0
- package/dist/cjs/index.js +0 -66
- package/dist/cjs/package.json +3 -0
- package/dist/esm/combobox/Combobox.markup.js +178 -102
- package/dist/esm/combobox/HTML.combobox.element.js +262 -113
- package/dist/esm/combobox/HTML.combobox.option.element.js +70 -5
- package/dist/esm/combobox/HTML.combobox.tag.element.js +26 -7
- package/dist/esm/index.js +0 -66
- package/dist/types/combobox/Boolean.attribute.value.normalizer.d.ts +0 -1
- package/dist/types/combobox/Combobox.markup.d.ts +13 -9
- package/dist/types/combobox/HTML.combobox.element.d.ts +10 -5
- package/dist/types/combobox/HTML.combobox.option.element.d.ts +11 -1
- package/dist/types/combobox/HTML.combobox.tag.element.d.ts +9 -2
- package/dist/types/combobox/index.d.ts +0 -1
- package/dist/types/index.d.ts +101 -62
- package/package.json +17 -3
- package/dist/types/combobox/Boolean.attribute.value.normalizer.d.ts.map +0 -1
- package/dist/types/combobox/Combobox.markup.d.ts.map +0 -1
- package/dist/types/combobox/HTML.combobox.element.d.ts.map +0 -1
- package/dist/types/combobox/HTML.combobox.option.element.d.ts.map +0 -1
- package/dist/types/combobox/HTML.combobox.tag.element.d.ts.map +0 -1
- package/dist/types/combobox/index.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/types.d.ts +0 -198
|
@@ -2,19 +2,38 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HTMLComboboxTagElement = void 0;
|
|
4
4
|
class HTMLComboboxTagElement extends HTMLElement {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
static EventInit = { bubbles: true, cancelable: true, composed: true };
|
|
6
|
+
get value() {
|
|
7
|
+
return this.getAttribute('value') || '';
|
|
7
8
|
}
|
|
8
9
|
connectedCallback() {
|
|
9
10
|
this.part.add('tag');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const control = this.querySelector('[part*="clear-tag"]');
|
|
12
|
+
if (!this.hasAttribute('visible')) {
|
|
13
|
+
super.setAttribute('tabindex', '0');
|
|
14
|
+
}
|
|
15
|
+
control?.addEventListener('focusout', HTMLComboboxTagElement.captureFocus);
|
|
16
|
+
control?.addEventListener('click', HTMLComboboxTagElement.onClearTag);
|
|
17
|
+
const root = this.getRootNode();
|
|
18
|
+
if (root?.host.hasAttribute('multiple')) {
|
|
19
|
+
if (!control) {
|
|
20
|
+
throw new Error(`A <button> with part="clear-tag" is required for <combo-box> with multiple attribute`);
|
|
15
21
|
}
|
|
16
22
|
}
|
|
17
23
|
}
|
|
24
|
+
disconnectedCallback() {
|
|
25
|
+
const control = this.querySelector('[part*="clear-tag"]');
|
|
26
|
+
control?.removeEventListener('focusout', HTMLComboboxTagElement.captureFocus);
|
|
27
|
+
control?.removeEventListener('click', HTMLComboboxTagElement.onClearTag);
|
|
28
|
+
}
|
|
29
|
+
static onClearTag(event) {
|
|
30
|
+
const target = event.target;
|
|
31
|
+
target?.parentElement?.dispatchEvent(new Event('tagcleared', HTMLComboboxTagElement.EventInit));
|
|
32
|
+
}
|
|
33
|
+
static captureFocus(event) {
|
|
34
|
+
event.stopPropagation();
|
|
35
|
+
event.preventDefault();
|
|
36
|
+
}
|
|
18
37
|
}
|
|
19
38
|
exports.HTMLComboboxTagElement = HTMLComboboxTagElement;
|
|
20
39
|
if (!window.customElements.get('box-tag')) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HTML.combobox.element.js';
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
export * from './combobox/index.js';
|
|
2
|
+
interface HTMLComboboxTagElement extends HTMLElement {
|
|
3
|
+
}
|
|
4
|
+
interface HTMLComboboxOptionElement extends HTMLOptionElement {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
interface HTMLComboboxElement extends HTMLSelectElement {
|
|
9
|
+
/** List of selected options value attribute */
|
|
10
|
+
valueAsArray: string[];
|
|
11
|
+
multiple: boolean;
|
|
12
|
+
/** The value of internal input
|
|
13
|
+
*
|
|
14
|
+
* Internal input is visible when either "searchable" or "filterable" attribute is presented */
|
|
15
|
+
query: string;
|
|
16
|
+
/** The placeholder of internal input
|
|
17
|
+
*
|
|
18
|
+
* Internal input is visible when either "searchable" or "filterable" attribute is presented
|
|
19
|
+
*
|
|
20
|
+
* When <combo-box> is empty, this value is also shown as <combo-box> placeholder itself
|
|
21
|
+
* */
|
|
22
|
+
placeholder: string;
|
|
23
|
+
/** When is true, the clear-all-button is shown in the <combo-box> itself,
|
|
24
|
+
* and the clear-button is shown for each selected tag.
|
|
25
|
+
*
|
|
26
|
+
* If multiple attribute is set to "true", this is also enabled.
|
|
27
|
+
*
|
|
28
|
+
* If multiple attribute is set to "false", i.e. the <combo-box> is used as a <select>,
|
|
29
|
+
* then setting this attribute to "true" will make the clear-button of selected tag visible
|
|
30
|
+
* */
|
|
31
|
+
clearable: boolean;
|
|
32
|
+
/** When is true, the internal input is shown.
|
|
33
|
+
*
|
|
34
|
+
* When user type something, available options are not filtered by this query.
|
|
35
|
+
* You have to set an "input" listener to the <combo-box> and filter options by yourself
|
|
36
|
+
*
|
|
37
|
+
* Setting both "searchable" and "filterable" make no sense, the "searchable" will have priority
|
|
38
|
+
* */
|
|
39
|
+
searchable: boolean;
|
|
40
|
+
/** When is true, the internal input is shown.
|
|
41
|
+
*
|
|
42
|
+
* When user type something, available options are filtered by this query.
|
|
43
|
+
*
|
|
44
|
+
* Setting both "filterable" and "searchable" make no sense, the "searchable" will have priority
|
|
45
|
+
* */
|
|
46
|
+
filterable: boolean;
|
|
47
|
+
selectedOptions: HTMLCollectionOf<HTMLComboboxOptionElement>;
|
|
48
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLComboboxElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
49
|
+
addEventListener<K extends keyof ComboboxEventMap>(type: K, listener: (this: HTMLComboboxElement, ev: ComboboxEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
50
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
51
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLComboboxElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
52
|
+
removeEventListener<K extends keyof ComboboxEventMap>(type: K, listener: (this: HTMLComboboxElement, ev: ComboboxEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
53
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
54
|
+
}
|
|
55
|
+
interface ComboboxEventMap extends HTMLElementEventMap {
|
|
56
|
+
"change": ComboboxEvent;
|
|
57
|
+
"blur": ComboboxFocusEvent;
|
|
58
|
+
"focus": ComboboxFocusEvent;
|
|
59
|
+
"focusin": ComboboxFocusEvent;
|
|
60
|
+
"focusout": ComboboxFocusEvent;
|
|
61
|
+
"input": ComboboxInputEvent;
|
|
62
|
+
"invalid": ComboboxEvent;
|
|
63
|
+
"selectionchange": ComboboxEvent;
|
|
64
|
+
"selectstart": ComboboxEvent;
|
|
65
|
+
}
|
|
66
|
+
/** Own attributes/properties of `<combo-box>`, shared by every JSX integration below. */
|
|
67
|
+
export interface ComboboxJsxAttributes {
|
|
68
|
+
/** The value of the internal input.
|
|
69
|
+
*
|
|
70
|
+
* The internal input is visible when either the `searchable` or `filterable` attribute is present.
|
|
71
|
+
*
|
|
72
|
+
* Setting ""
|
|
73
|
+
* */
|
|
74
|
+
query?: string;
|
|
75
|
+
/** A comma-separated list of descendant `<box-option>` value attributes to be selected by default.
|
|
76
|
+
*
|
|
77
|
+
* When the `multiple` attribute is present, only the first option will be selected.
|
|
78
|
+
*
|
|
79
|
+
* Alternatively, you can set default selections by adding the `selected` attribute directly to individual `<box-option>` elements. */
|
|
80
|
+
value?: string;
|
|
81
|
+
/** This Boolean attribute indicates that multiple options can be selected.
|
|
82
|
+
*
|
|
83
|
+
* When present, users can select multiple options. When absent, only one option can be selected at a time (the `<combo-box>` behaves like a `<select>`). */
|
|
84
|
+
multiple?: boolean;
|
|
85
|
+
/** The placeholder for the internal input.
|
|
86
|
+
*
|
|
87
|
+
* The internal input is visible when either the `searchable` or `filterable` attribute is present.
|
|
88
|
+
*
|
|
89
|
+
* When the `<combo-box>` is empty, this value is also shown as the `<combo-box>` placeholder itself. */
|
|
90
|
+
placeholder?: string;
|
|
91
|
+
/** When present, the clear-all button is shown in the `<combo-box>` itself, and the clear button is shown for each selected tag.
|
|
92
|
+
*
|
|
93
|
+
* This attribute is automatically enabled when the `multiple` attribute is present.
|
|
94
|
+
*
|
|
95
|
+
* When the `multiple` attribute is absent (single-select mode), setting `clearable` makes the clear button visible on the selected tag. */
|
|
96
|
+
clearable?: boolean;
|
|
97
|
+
/** When present, the internal input is shown.
|
|
98
|
+
*
|
|
99
|
+
* As the user types, available options are **not** filtered by the query. You must attach an `input` listener to the `<combo-box>` and filter options manually.
|
|
100
|
+
*
|
|
101
|
+
* Setting both `searchable` and `filterable` is not recommended—`searchable` takes precedence. */
|
|
102
|
+
searchable?: boolean;
|
|
103
|
+
/** When present, the internal input is shown.
|
|
104
|
+
*
|
|
105
|
+
* As the user types, available options are filtered by the query automatically.
|
|
106
|
+
*
|
|
107
|
+
* Setting both `filterable` and `searchable` is not recommended—`searchable` takes precedence. */
|
|
108
|
+
filterable?: boolean;
|
|
109
|
+
/** A Boolean attribute indicating that at least one option must be selected. */
|
|
110
|
+
required?: boolean;
|
|
111
|
+
disabled?: boolean;
|
|
112
|
+
}
|
|
113
|
+
export interface ComboboxOptionJsxAttributes {
|
|
114
|
+
value: string;
|
|
115
|
+
label?: string;
|
|
116
|
+
selected?: boolean;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Generic HTML/JSX passthrough attributes (class, style, event handlers, `data-*`, `aria-*`, ...).
|
|
120
|
+
*
|
|
121
|
+
* These are intentionally framework-agnostic: they don't reference React's, Preact's, Vue's
|
|
122
|
+
* or Solid's own type packages, so this file never requires any of them to be installed just
|
|
123
|
+
* to be imported. Every framework below layers `ComboboxJsxAttributes`/`ComboboxOptionJsxAttributes`
|
|
124
|
+
* on top of this instead of that framework's own `HTMLAttributes` type.
|
|
125
|
+
*/
|
|
126
|
+
export interface ComboboxCommonAttributes {
|
|
127
|
+
id?: string;
|
|
128
|
+
class?: string;
|
|
129
|
+
className?: string;
|
|
130
|
+
style?: unknown;
|
|
131
|
+
slot?: string;
|
|
132
|
+
title?: string;
|
|
133
|
+
tabIndex?: number;
|
|
134
|
+
hidden?: boolean;
|
|
135
|
+
children?: unknown;
|
|
136
|
+
ref?: unknown;
|
|
137
|
+
key?: string | number;
|
|
138
|
+
onChange?: (event: ComboboxEvent) => void;
|
|
139
|
+
onInput?: (event: ComboboxInputEvent) => void;
|
|
140
|
+
onFocus?: (event: ComboboxFocusEvent) => void;
|
|
141
|
+
onBlur?: (event: ComboboxFocusEvent) => void;
|
|
142
|
+
onInvalid?: (event: ComboboxEvent) => void;
|
|
143
|
+
[key: `data-${string}`]: unknown;
|
|
144
|
+
[key: `aria-${string}`]: unknown;
|
|
145
|
+
[key: `on${string}`]: ((event: any) => void) | undefined;
|
|
146
|
+
}
|
|
147
|
+
declare global {
|
|
148
|
+
interface HTMLElementTagNameMap {
|
|
149
|
+
'combo-box': HTMLComboboxElement;
|
|
150
|
+
'box-option': HTMLComboboxOptionElement;
|
|
151
|
+
'box-tag': HTMLComboboxTagElement;
|
|
152
|
+
}
|
|
153
|
+
interface ComboboxEvent extends Event {
|
|
154
|
+
readonly target: HTMLComboboxElement;
|
|
155
|
+
readonly currentTarget: HTMLComboboxElement;
|
|
156
|
+
}
|
|
157
|
+
interface ComboboxInputEvent extends InputEvent {
|
|
158
|
+
readonly target: HTMLComboboxElement;
|
|
159
|
+
readonly currentTarget: HTMLComboboxElement;
|
|
160
|
+
}
|
|
161
|
+
interface ComboboxFocusEvent extends FocusEvent {
|
|
162
|
+
readonly target: HTMLComboboxElement;
|
|
163
|
+
}
|
|
164
|
+
type ComboboxElementAttributes = ComboboxCommonAttributes & ComboboxJsxAttributes;
|
|
165
|
+
type ComboboxOptionElementAttributes = ComboboxCommonAttributes & ComboboxOptionJsxAttributes;
|
|
166
|
+
type ComboboxTagElementAttributes = ComboboxCommonAttributes;
|
|
167
|
+
namespace JSX {
|
|
168
|
+
interface IntrinsicElements {
|
|
169
|
+
'combo-box': ComboboxElementAttributes;
|
|
170
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
171
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
declare module 'react' {
|
|
176
|
+
namespace JSX {
|
|
177
|
+
interface IntrinsicElements {
|
|
178
|
+
'combo-box': ComboboxElementAttributes;
|
|
179
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
180
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
declare module 'react/jsx-runtime' {
|
|
185
|
+
namespace JSX {
|
|
186
|
+
interface IntrinsicElements {
|
|
187
|
+
'combo-box': ComboboxElementAttributes;
|
|
188
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
189
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
declare module 'react/jsx-dev-runtime' {
|
|
194
|
+
namespace JSX {
|
|
195
|
+
interface IntrinsicElements {
|
|
196
|
+
'combo-box': ComboboxElementAttributes;
|
|
197
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
198
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
declare module 'preact' {
|
|
203
|
+
namespace JSX {
|
|
204
|
+
interface IntrinsicElements {
|
|
205
|
+
'combo-box': ComboboxElementAttributes;
|
|
206
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
207
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
namespace JSXInternal {
|
|
211
|
+
interface IntrinsicElements {
|
|
212
|
+
'combo-box': ComboboxElementAttributes;
|
|
213
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
214
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
declare module 'preact/jsx-runtime' {
|
|
219
|
+
namespace JSX {
|
|
220
|
+
interface IntrinsicElements {
|
|
221
|
+
'combo-box': ComboboxElementAttributes;
|
|
222
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
223
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
declare module 'solid-js' {
|
|
228
|
+
namespace JSX {
|
|
229
|
+
interface IntrinsicElements {
|
|
230
|
+
'combo-box': ComboboxElementAttributes;
|
|
231
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
232
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
declare module 'solid-js/jsx-runtime' {
|
|
237
|
+
namespace JSX {
|
|
238
|
+
interface IntrinsicElements {
|
|
239
|
+
'combo-box': ComboboxElementAttributes;
|
|
240
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
241
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
declare module 'vue' {
|
|
246
|
+
namespace JSX {
|
|
247
|
+
interface IntrinsicElements {
|
|
248
|
+
'combo-box': ComboboxElementAttributes;
|
|
249
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
250
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/// <reference types="solid-js" />
|
|
3
|
-
/// <reference types="preact" />
|
|
4
|
-
/// <reference types="react" />
|
|
5
|
-
/// <reference types="vue" />
|
|
6
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
3
|
if (k2 === undefined) k2 = k;
|
|
8
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -19,65 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
19
15
|
};
|
|
20
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
17
|
__exportStar(require("./combobox/index.js"), exports);
|
|
22
|
-
// declare global {
|
|
23
|
-
// namespace React {
|
|
24
|
-
// namespace JSX {
|
|
25
|
-
// interface IntrinsicElements {
|
|
26
|
-
// 'combo-box': React.DetailedHTMLProps<Omit<React.HTMLAttributes<HTMLComboboxElement>, 'defaultValue'>,
|
|
27
|
-
// HTMLComboboxElement
|
|
28
|
-
// > & ComboboxJsxAttributes;
|
|
29
|
-
//
|
|
30
|
-
// 'box-option': React.DetailedHTMLProps<
|
|
31
|
-
// React.HTMLAttributes<HTMLComboboxOptionElement>,
|
|
32
|
-
// HTMLComboboxOptionElement>
|
|
33
|
-
// & ComboboxOptionJsxAttributes;
|
|
34
|
-
//
|
|
35
|
-
// 'box-tag': React.DetailedHTMLProps<React.HTMLAttributes<HTMLComboboxTagElement>, HTMLComboboxTagElement>;
|
|
36
|
-
// }
|
|
37
|
-
// }
|
|
38
|
-
// }
|
|
39
|
-
//
|
|
40
|
-
//
|
|
41
|
-
// namespace preact {
|
|
42
|
-
// namespace JSX {
|
|
43
|
-
// interface IntrinsicElements {
|
|
44
|
-
// 'combo-box': preact.HTMLAttributes<HTMLComboboxElement> & ComboboxJsxAttributes;
|
|
45
|
-
// 'box-option': preact.HTMLAttributes<HTMLComboboxOptionElement> & ComboboxOptionJsxAttributes;
|
|
46
|
-
// 'box-tag': preact.HTMLAttributes<HTMLComboboxTagElement>;
|
|
47
|
-
// }
|
|
48
|
-
// }
|
|
49
|
-
// }
|
|
50
|
-
//
|
|
51
|
-
// }
|
|
52
|
-
//
|
|
53
|
-
// declare module 'preact' {
|
|
54
|
-
// namespace JSX {
|
|
55
|
-
// interface IntrinsicElements {
|
|
56
|
-
// 'combo-box': preact.HTMLAttributes<HTMLComboboxElement> & ComboboxJsxAttributes;
|
|
57
|
-
// 'box-option': preact.HTMLAttributes<HTMLComboboxOptionElement> & ComboboxOptionJsxAttributes;
|
|
58
|
-
// 'box-tag': preact.HTMLAttributes<HTMLComboboxTagElement>;
|
|
59
|
-
// }
|
|
60
|
-
// }
|
|
61
|
-
// }
|
|
62
|
-
//
|
|
63
|
-
// // Solid
|
|
64
|
-
// declare module 'solid-js' {
|
|
65
|
-
// namespace JSX {
|
|
66
|
-
// interface IntrinsicElements {
|
|
67
|
-
// 'combo-box': HTMLAttributes<HTMLComboboxElement> & ComboboxJsxAttributes
|
|
68
|
-
// 'box-option': HTMLAttributes<HTMLComboboxOptionElement> & ComboboxOptionJsxAttributes
|
|
69
|
-
// 'box-tag': HTMLAttributes<HTMLElement>
|
|
70
|
-
// }
|
|
71
|
-
// }
|
|
72
|
-
// }
|
|
73
|
-
//
|
|
74
|
-
//
|
|
75
|
-
// declare global {
|
|
76
|
-
// namespace JSX {
|
|
77
|
-
// interface IntrinsicElements {
|
|
78
|
-
// 'combo-box': ComboboxJsxAttributes;
|
|
79
|
-
// 'box-option': ComboboxOptionJsxAttributes;
|
|
80
|
-
// 'box-tag': HTMLElement;
|
|
81
|
-
// }
|
|
82
|
-
// }
|
|
83
|
-
// }
|