jsx-framework-test-pb 0.2.2 → 0.2.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/dist/jsx-dev-runtime.d.ts +5 -3
- package/dist/jsx-runtime.d.ts +5 -3
- package/dist/types.d.ts +103 -102
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DevElement, ElementProps } from './types';
|
|
1
|
+
import type { DevElement, ElementProps, JsxIntrinsicElements } from './types';
|
|
2
2
|
export declare const Fragment: symbol;
|
|
3
3
|
export declare function jsxDEV(type: string | Function | symbol, props: ElementProps, key?: string, isStaticChildren?: boolean, source?: {
|
|
4
4
|
fileName: string;
|
|
@@ -7,7 +7,9 @@ export declare function jsxDEV(type: string | Function | symbol, props: ElementP
|
|
|
7
7
|
}, self?: any): DevElement;
|
|
8
8
|
export declare namespace JSX {
|
|
9
9
|
type Element = import('./types').Element;
|
|
10
|
-
interface IntrinsicElements {
|
|
11
|
-
|
|
10
|
+
interface IntrinsicElements extends JsxIntrinsicElements {
|
|
11
|
+
}
|
|
12
|
+
interface ElementChildrenAttribute {
|
|
13
|
+
children: {};
|
|
12
14
|
}
|
|
13
15
|
}
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import type { Element, ElementProps } from './types';
|
|
1
|
+
import type { Element, ElementProps, JsxIntrinsicElements } from './types';
|
|
2
2
|
export declare const Fragment: symbol;
|
|
3
3
|
export declare function jsx(type: string | Function | symbol, props: ElementProps, key?: string): Element;
|
|
4
4
|
export declare const jsxs: typeof jsx;
|
|
5
5
|
export declare namespace JSX {
|
|
6
6
|
type Element = import('./types').Element;
|
|
7
|
-
interface IntrinsicElements {
|
|
8
|
-
|
|
7
|
+
interface IntrinsicElements extends JsxIntrinsicElements {
|
|
8
|
+
}
|
|
9
|
+
interface ElementChildrenAttribute {
|
|
10
|
+
children: {};
|
|
9
11
|
}
|
|
10
12
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface CSSProperties {
|
|
|
22
22
|
[key: string]: string | number;
|
|
23
23
|
}
|
|
24
24
|
export interface HTMLAttributes<T = HTMLElement> {
|
|
25
|
-
className?: string;
|
|
25
|
+
className?: string | false;
|
|
26
26
|
id?: string;
|
|
27
27
|
style?: CSSProperties;
|
|
28
28
|
title?: string;
|
|
@@ -243,113 +243,114 @@ export interface BaseHTMLAttributes extends HTMLAttributes<HTMLBaseElement> {
|
|
|
243
243
|
href?: string;
|
|
244
244
|
target?: string;
|
|
245
245
|
}
|
|
246
|
+
export interface JsxIntrinsicElements {
|
|
247
|
+
html: HTMLAttributes<HTMLHtmlElement>;
|
|
248
|
+
head: HTMLAttributes<HTMLHeadElement>;
|
|
249
|
+
body: HTMLAttributes<HTMLBodyElement>;
|
|
250
|
+
title: HTMLAttributes<HTMLTitleElement>;
|
|
251
|
+
meta: MetaHTMLAttributes;
|
|
252
|
+
link: LinkHTMLAttributes;
|
|
253
|
+
base: BaseHTMLAttributes;
|
|
254
|
+
a: AnchorHTMLAttributes;
|
|
255
|
+
abbr: HTMLAttributes<HTMLElement>;
|
|
256
|
+
address: HTMLAttributes<HTMLElement>;
|
|
257
|
+
article: HTMLAttributes<HTMLElement>;
|
|
258
|
+
aside: HTMLAttributes<HTMLElement>;
|
|
259
|
+
b: HTMLAttributes<HTMLElement>;
|
|
260
|
+
blockquote: HTMLAttributes<HTMLQuoteElement>;
|
|
261
|
+
br: HTMLAttributes<HTMLBRElement>;
|
|
262
|
+
cite: HTMLAttributes<HTMLElement>;
|
|
263
|
+
code: HTMLAttributes<HTMLElement>;
|
|
264
|
+
del: HTMLAttributes<HTMLModElement>;
|
|
265
|
+
div: HTMLAttributes<HTMLDivElement>;
|
|
266
|
+
em: HTMLAttributes<HTMLElement>;
|
|
267
|
+
figcaption: HTMLAttributes<HTMLElement>;
|
|
268
|
+
figure: HTMLAttributes<HTMLElement>;
|
|
269
|
+
footer: HTMLAttributes<HTMLElement>;
|
|
270
|
+
h1: HTMLAttributes<HTMLHeadingElement>;
|
|
271
|
+
h2: HTMLAttributes<HTMLHeadingElement>;
|
|
272
|
+
h3: HTMLAttributes<HTMLHeadingElement>;
|
|
273
|
+
h4: HTMLAttributes<HTMLHeadingElement>;
|
|
274
|
+
h5: HTMLAttributes<HTMLHeadingElement>;
|
|
275
|
+
h6: HTMLAttributes<HTMLHeadingElement>;
|
|
276
|
+
header: HTMLAttributes<HTMLElement>;
|
|
277
|
+
hr: HTMLAttributes<HTMLHRElement>;
|
|
278
|
+
i: HTMLAttributes<HTMLElement>;
|
|
279
|
+
ins: HTMLAttributes<HTMLModElement>;
|
|
280
|
+
kbd: HTMLAttributes<HTMLElement>;
|
|
281
|
+
li: HTMLAttributes<HTMLLIElement>;
|
|
282
|
+
main: HTMLAttributes<HTMLElement>;
|
|
283
|
+
mark: HTMLAttributes<HTMLElement>;
|
|
284
|
+
nav: HTMLAttributes<HTMLElement>;
|
|
285
|
+
ol: HTMLAttributes<HTMLOListElement>;
|
|
286
|
+
p: HTMLAttributes<HTMLParagraphElement>;
|
|
287
|
+
pre: HTMLAttributes<HTMLPreElement>;
|
|
288
|
+
q: HTMLAttributes<HTMLQuoteElement>;
|
|
289
|
+
s: HTMLAttributes<HTMLElement>;
|
|
290
|
+
section: HTMLAttributes<HTMLElement>;
|
|
291
|
+
small: HTMLAttributes<HTMLElement>;
|
|
292
|
+
span: HTMLAttributes<HTMLSpanElement>;
|
|
293
|
+
strong: HTMLAttributes<HTMLElement>;
|
|
294
|
+
sub: HTMLAttributes<HTMLElement>;
|
|
295
|
+
sup: HTMLAttributes<HTMLElement>;
|
|
296
|
+
u: HTMLAttributes<HTMLElement>;
|
|
297
|
+
ul: HTMLAttributes<HTMLUListElement>;
|
|
298
|
+
button: ButtonHTMLAttributes;
|
|
299
|
+
datalist: HTMLAttributes<HTMLDataListElement>;
|
|
300
|
+
fieldset: HTMLAttributes<HTMLFieldSetElement>;
|
|
301
|
+
form: FormHTMLAttributes;
|
|
302
|
+
input: InputHTMLAttributes;
|
|
303
|
+
label: LabelHTMLAttributes;
|
|
304
|
+
legend: HTMLAttributes<HTMLLegendElement>;
|
|
305
|
+
meter: HTMLAttributes<HTMLMeterElement>;
|
|
306
|
+
optgroup: HTMLAttributes<HTMLOptGroupElement>;
|
|
307
|
+
option: OptionHTMLAttributes;
|
|
308
|
+
output: HTMLAttributes<HTMLOutputElement>;
|
|
309
|
+
progress: HTMLAttributes<HTMLProgressElement>;
|
|
310
|
+
select: SelectHTMLAttributes;
|
|
311
|
+
textarea: TextareaHTMLAttributes;
|
|
312
|
+
audio: AudioHTMLAttributes;
|
|
313
|
+
canvas: CanvasHTMLAttributes;
|
|
314
|
+
img: ImgHTMLAttributes;
|
|
315
|
+
picture: HTMLAttributes<HTMLPictureElement>;
|
|
316
|
+
video: VideoHTMLAttributes;
|
|
317
|
+
caption: HTMLAttributes<HTMLTableCaptionElement>;
|
|
318
|
+
col: HTMLAttributes<HTMLTableColElement>;
|
|
319
|
+
colgroup: HTMLAttributes<HTMLTableColElement>;
|
|
320
|
+
table: TableHTMLAttributes;
|
|
321
|
+
tbody: HTMLAttributes<HTMLTableSectionElement>;
|
|
322
|
+
td: TdHTMLAttributes;
|
|
323
|
+
tfoot: HTMLAttributes<HTMLTableSectionElement>;
|
|
324
|
+
th: ThHTMLAttributes;
|
|
325
|
+
thead: HTMLAttributes<HTMLTableSectionElement>;
|
|
326
|
+
tr: HTMLAttributes<HTMLTableRowElement>;
|
|
327
|
+
details: HTMLAttributes<HTMLDetailsElement>;
|
|
328
|
+
dialog: HTMLAttributes<HTMLDialogElement>;
|
|
329
|
+
iframe: IframeHTMLAttributes;
|
|
330
|
+
menu: HTMLAttributes<HTMLMenuElement>;
|
|
331
|
+
script: HTMLAttributes<HTMLScriptElement>;
|
|
332
|
+
style: HTMLAttributes<HTMLStyleElement>;
|
|
333
|
+
summary: HTMLAttributes<HTMLElement>;
|
|
334
|
+
template: HTMLAttributes<HTMLTemplateElement>;
|
|
335
|
+
svg: SVGAttributes;
|
|
336
|
+
circle: SVGAttributes;
|
|
337
|
+
ellipse: SVGAttributes;
|
|
338
|
+
line: SVGAttributes;
|
|
339
|
+
path: SVGAttributes;
|
|
340
|
+
polygon: SVGAttributes;
|
|
341
|
+
polyline: SVGAttributes;
|
|
342
|
+
rect: SVGAttributes;
|
|
343
|
+
g: SVGAttributes;
|
|
344
|
+
defs: SVGAttributes;
|
|
345
|
+
[elemName: string]: any;
|
|
346
|
+
}
|
|
246
347
|
declare global {
|
|
247
348
|
namespace JSX {
|
|
248
349
|
type Element = import('./types').Element;
|
|
249
|
-
interface IntrinsicElements {
|
|
250
|
-
html: HTMLAttributes<HTMLHtmlElement>;
|
|
251
|
-
head: HTMLAttributes<HTMLHeadElement>;
|
|
252
|
-
body: HTMLAttributes<HTMLBodyElement>;
|
|
253
|
-
title: HTMLAttributes<HTMLTitleElement>;
|
|
254
|
-
meta: MetaHTMLAttributes;
|
|
255
|
-
link: LinkHTMLAttributes;
|
|
256
|
-
base: BaseHTMLAttributes;
|
|
257
|
-
a: AnchorHTMLAttributes;
|
|
258
|
-
abbr: HTMLAttributes<HTMLElement>;
|
|
259
|
-
address: HTMLAttributes<HTMLElement>;
|
|
260
|
-
article: HTMLAttributes<HTMLElement>;
|
|
261
|
-
aside: HTMLAttributes<HTMLElement>;
|
|
262
|
-
b: HTMLAttributes<HTMLElement>;
|
|
263
|
-
blockquote: HTMLAttributes<HTMLQuoteElement>;
|
|
264
|
-
br: HTMLAttributes<HTMLBRElement>;
|
|
265
|
-
cite: HTMLAttributes<HTMLElement>;
|
|
266
|
-
code: HTMLAttributes<HTMLElement>;
|
|
267
|
-
del: HTMLAttributes<HTMLModElement>;
|
|
268
|
-
div: HTMLAttributes<HTMLDivElement>;
|
|
269
|
-
em: HTMLAttributes<HTMLElement>;
|
|
270
|
-
figcaption: HTMLAttributes<HTMLElement>;
|
|
271
|
-
figure: HTMLAttributes<HTMLElement>;
|
|
272
|
-
footer: HTMLAttributes<HTMLElement>;
|
|
273
|
-
h1: HTMLAttributes<HTMLHeadingElement>;
|
|
274
|
-
h2: HTMLAttributes<HTMLHeadingElement>;
|
|
275
|
-
h3: HTMLAttributes<HTMLHeadingElement>;
|
|
276
|
-
h4: HTMLAttributes<HTMLHeadingElement>;
|
|
277
|
-
h5: HTMLAttributes<HTMLHeadingElement>;
|
|
278
|
-
h6: HTMLAttributes<HTMLHeadingElement>;
|
|
279
|
-
header: HTMLAttributes<HTMLElement>;
|
|
280
|
-
hr: HTMLAttributes<HTMLHRElement>;
|
|
281
|
-
i: HTMLAttributes<HTMLElement>;
|
|
282
|
-
ins: HTMLAttributes<HTMLModElement>;
|
|
283
|
-
kbd: HTMLAttributes<HTMLElement>;
|
|
284
|
-
li: HTMLAttributes<HTMLLIElement>;
|
|
285
|
-
main: HTMLAttributes<HTMLElement>;
|
|
286
|
-
mark: HTMLAttributes<HTMLElement>;
|
|
287
|
-
nav: HTMLAttributes<HTMLElement>;
|
|
288
|
-
ol: HTMLAttributes<HTMLOListElement>;
|
|
289
|
-
p: HTMLAttributes<HTMLParagraphElement>;
|
|
290
|
-
pre: HTMLAttributes<HTMLPreElement>;
|
|
291
|
-
q: HTMLAttributes<HTMLQuoteElement>;
|
|
292
|
-
s: HTMLAttributes<HTMLElement>;
|
|
293
|
-
section: HTMLAttributes<HTMLElement>;
|
|
294
|
-
small: HTMLAttributes<HTMLElement>;
|
|
295
|
-
span: HTMLAttributes<HTMLSpanElement>;
|
|
296
|
-
strong: HTMLAttributes<HTMLElement>;
|
|
297
|
-
sub: HTMLAttributes<HTMLElement>;
|
|
298
|
-
sup: HTMLAttributes<HTMLElement>;
|
|
299
|
-
u: HTMLAttributes<HTMLElement>;
|
|
300
|
-
ul: HTMLAttributes<HTMLUListElement>;
|
|
301
|
-
button: ButtonHTMLAttributes;
|
|
302
|
-
datalist: HTMLAttributes<HTMLDataListElement>;
|
|
303
|
-
fieldset: HTMLAttributes<HTMLFieldSetElement>;
|
|
304
|
-
form: FormHTMLAttributes;
|
|
305
|
-
input: InputHTMLAttributes;
|
|
306
|
-
label: LabelHTMLAttributes;
|
|
307
|
-
legend: HTMLAttributes<HTMLLegendElement>;
|
|
308
|
-
meter: HTMLAttributes<HTMLMeterElement>;
|
|
309
|
-
optgroup: HTMLAttributes<HTMLOptGroupElement>;
|
|
310
|
-
option: OptionHTMLAttributes;
|
|
311
|
-
output: HTMLAttributes<HTMLOutputElement>;
|
|
312
|
-
progress: HTMLAttributes<HTMLProgressElement>;
|
|
313
|
-
select: SelectHTMLAttributes;
|
|
314
|
-
textarea: TextareaHTMLAttributes;
|
|
315
|
-
audio: AudioHTMLAttributes;
|
|
316
|
-
canvas: CanvasHTMLAttributes;
|
|
317
|
-
img: ImgHTMLAttributes;
|
|
318
|
-
picture: HTMLAttributes<HTMLPictureElement>;
|
|
319
|
-
video: VideoHTMLAttributes;
|
|
320
|
-
caption: HTMLAttributes<HTMLTableCaptionElement>;
|
|
321
|
-
col: HTMLAttributes<HTMLTableColElement>;
|
|
322
|
-
colgroup: HTMLAttributes<HTMLTableColElement>;
|
|
323
|
-
table: TableHTMLAttributes;
|
|
324
|
-
tbody: HTMLAttributes<HTMLTableSectionElement>;
|
|
325
|
-
td: TdHTMLAttributes;
|
|
326
|
-
tfoot: HTMLAttributes<HTMLTableSectionElement>;
|
|
327
|
-
th: ThHTMLAttributes;
|
|
328
|
-
thead: HTMLAttributes<HTMLTableSectionElement>;
|
|
329
|
-
tr: HTMLAttributes<HTMLTableRowElement>;
|
|
330
|
-
details: HTMLAttributes<HTMLDetailsElement>;
|
|
331
|
-
dialog: HTMLAttributes<HTMLDialogElement>;
|
|
332
|
-
iframe: IframeHTMLAttributes;
|
|
333
|
-
menu: HTMLAttributes<HTMLMenuElement>;
|
|
334
|
-
script: HTMLAttributes<HTMLScriptElement>;
|
|
335
|
-
style: HTMLAttributes<HTMLStyleElement>;
|
|
336
|
-
summary: HTMLAttributes<HTMLElement>;
|
|
337
|
-
template: HTMLAttributes<HTMLTemplateElement>;
|
|
338
|
-
svg: SVGAttributes;
|
|
339
|
-
circle: SVGAttributes;
|
|
340
|
-
ellipse: SVGAttributes;
|
|
341
|
-
line: SVGAttributes;
|
|
342
|
-
path: SVGAttributes;
|
|
343
|
-
polygon: SVGAttributes;
|
|
344
|
-
polyline: SVGAttributes;
|
|
345
|
-
rect: SVGAttributes;
|
|
346
|
-
g: SVGAttributes;
|
|
347
|
-
defs: SVGAttributes;
|
|
348
|
-
[elemName: string]: any;
|
|
350
|
+
interface IntrinsicElements extends JsxIntrinsicElements {
|
|
349
351
|
}
|
|
350
352
|
interface ElementChildrenAttribute {
|
|
351
353
|
children: {};
|
|
352
354
|
}
|
|
353
355
|
}
|
|
354
356
|
}
|
|
355
|
-
export {};
|