jsx-framework-test-pb 0.0.7 → 0.0.8

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 (2) hide show
  1. package/dist/types.d.ts +302 -2
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -25,7 +25,307 @@ export interface HTMLAttributes<T = HTMLElement> {
25
25
  className?: string;
26
26
  id?: string;
27
27
  style?: CSSProperties;
28
- children?: ElementChild | ElementChild[];
29
- [key: string]: any;
28
+ title?: string;
29
+ lang?: string;
30
+ dir?: 'ltr' | 'rtl' | 'auto';
31
+ hidden?: boolean;
32
+ tabIndex?: number;
30
33
  class?: never;
34
+ [key: `data-${string}`]: string | number | boolean | undefined;
35
+ role?: string;
36
+ [key: `aria-${string}`]: string | number | boolean | undefined;
37
+ onClick?: (event: MouseEvent) => void;
38
+ onDoubleClick?: (event: MouseEvent) => void;
39
+ onMouseDown?: (event: MouseEvent) => void;
40
+ onMouseUp?: (event: MouseEvent) => void;
41
+ onMouseEnter?: (event: MouseEvent) => void;
42
+ onMouseLeave?: (event: MouseEvent) => void;
43
+ onMouseMove?: (event: MouseEvent) => void;
44
+ onMouseOver?: (event: MouseEvent) => void;
45
+ onMouseOut?: (event: MouseEvent) => void;
46
+ onChange?: (event: Event) => void;
47
+ onInput?: (event: Event) => void;
48
+ onSubmit?: (event: Event) => void;
49
+ onFocus?: (event: FocusEvent) => void;
50
+ onBlur?: (event: FocusEvent) => void;
51
+ onKeyDown?: (event: KeyboardEvent) => void;
52
+ onKeyUp?: (event: KeyboardEvent) => void;
53
+ onKeyPress?: (event: KeyboardEvent) => void;
54
+ onScroll?: (event: Event) => void;
55
+ onWheel?: (event: WheelEvent) => void;
56
+ onDrag?: (event: DragEvent) => void;
57
+ onDragEnd?: (event: DragEvent) => void;
58
+ onDragEnter?: (event: DragEvent) => void;
59
+ onDragLeave?: (event: DragEvent) => void;
60
+ onDragOver?: (event: DragEvent) => void;
61
+ onDragStart?: (event: DragEvent) => void;
62
+ onDrop?: (event: DragEvent) => void;
63
+ onTouchStart?: (event: TouchEvent) => void;
64
+ onTouchMove?: (event: TouchEvent) => void;
65
+ onTouchEnd?: (event: TouchEvent) => void;
66
+ onTouchCancel?: (event: TouchEvent) => void;
67
+ children?: ElementChild | ElementChild[];
68
+ }
69
+ export interface AnchorHTMLAttributes extends HTMLAttributes<HTMLAnchorElement> {
70
+ href?: string;
71
+ target?: '_blank' | '_self' | '_parent' | '_top';
72
+ rel?: string;
73
+ download?: string | boolean;
74
+ hrefLang?: string;
75
+ type?: string;
76
+ }
77
+ export interface ButtonHTMLAttributes extends HTMLAttributes<HTMLButtonElement> {
78
+ disabled?: boolean;
79
+ type?: 'button' | 'submit' | 'reset';
80
+ value?: string;
81
+ autoFocus?: boolean;
82
+ form?: string;
83
+ formAction?: string;
84
+ formEncType?: string;
85
+ formMethod?: string;
86
+ formNoValidate?: boolean;
87
+ formTarget?: string;
88
+ }
89
+ export interface FormHTMLAttributes extends HTMLAttributes<HTMLFormElement> {
90
+ action?: string;
91
+ method?: 'get' | 'post';
92
+ encType?: string;
93
+ target?: string;
94
+ noValidate?: boolean;
95
+ autoComplete?: 'on' | 'off';
96
+ }
97
+ export interface InputHTMLAttributes extends HTMLAttributes<HTMLInputElement> {
98
+ accept?: string;
99
+ alt?: string;
100
+ autoComplete?: string;
101
+ autoFocus?: boolean;
102
+ capture?: boolean | string;
103
+ checked?: boolean;
104
+ disabled?: boolean;
105
+ form?: string;
106
+ max?: number | string;
107
+ maxLength?: number;
108
+ min?: number | string;
109
+ minLength?: number;
110
+ multiple?: boolean;
111
+ name?: string;
112
+ pattern?: string;
113
+ placeholder?: string;
114
+ readOnly?: boolean;
115
+ required?: boolean;
116
+ size?: number;
117
+ src?: string;
118
+ step?: number | string;
119
+ type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time' | 'datetime-local' | 'month' | 'week' | 'checkbox' | 'radio' | 'file' | 'submit' | 'reset' | 'button' | 'hidden' | 'image' | 'color' | 'range';
120
+ value?: string | number;
121
+ }
122
+ export interface TextareaHTMLAttributes extends HTMLAttributes<HTMLTextAreaElement> {
123
+ autoComplete?: string;
124
+ autoFocus?: boolean;
125
+ cols?: number;
126
+ disabled?: boolean;
127
+ form?: string;
128
+ maxLength?: number;
129
+ minLength?: number;
130
+ name?: string;
131
+ placeholder?: string;
132
+ readOnly?: boolean;
133
+ required?: boolean;
134
+ rows?: number;
135
+ value?: string;
136
+ wrap?: 'hard' | 'soft' | 'off';
137
+ }
138
+ export interface SelectHTMLAttributes extends HTMLAttributes<HTMLSelectElement> {
139
+ autoComplete?: string;
140
+ autoFocus?: boolean;
141
+ disabled?: boolean;
142
+ form?: string;
143
+ multiple?: boolean;
144
+ name?: string;
145
+ required?: boolean;
146
+ size?: number;
147
+ value?: string | string[];
148
+ }
149
+ export interface OptionHTMLAttributes extends HTMLAttributes<HTMLOptionElement> {
150
+ disabled?: boolean;
151
+ label?: string;
152
+ selected?: boolean;
153
+ value?: string | number;
154
+ }
155
+ export interface ImgHTMLAttributes extends HTMLAttributes<HTMLImageElement> {
156
+ alt?: string;
157
+ crossOrigin?: 'anonymous' | 'use-credentials';
158
+ decoding?: 'async' | 'auto' | 'sync';
159
+ height?: number | string;
160
+ loading?: 'eager' | 'lazy';
161
+ sizes?: string;
162
+ src?: string;
163
+ srcSet?: string;
164
+ width?: number | string;
165
+ }
166
+ export interface LabelHTMLAttributes extends HTMLAttributes<HTMLLabelElement> {
167
+ htmlFor?: string;
168
+ form?: string;
169
+ }
170
+ export interface VideoHTMLAttributes extends HTMLAttributes<HTMLVideoElement> {
171
+ autoPlay?: boolean;
172
+ controls?: boolean;
173
+ crossOrigin?: string;
174
+ height?: number | string;
175
+ loop?: boolean;
176
+ muted?: boolean;
177
+ poster?: string;
178
+ preload?: string;
179
+ src?: string;
180
+ width?: number | string;
181
+ }
182
+ export interface AudioHTMLAttributes extends HTMLAttributes<HTMLAudioElement> {
183
+ autoPlay?: boolean;
184
+ controls?: boolean;
185
+ crossOrigin?: string;
186
+ loop?: boolean;
187
+ muted?: boolean;
188
+ preload?: string;
189
+ src?: string;
190
+ }
191
+ export interface TableHTMLAttributes extends HTMLAttributes<HTMLTableElement> {
192
+ cellPadding?: number | string;
193
+ cellSpacing?: number | string;
194
+ }
195
+ export interface TdHTMLAttributes extends HTMLAttributes<HTMLTableCellElement> {
196
+ colSpan?: number;
197
+ rowSpan?: number;
198
+ headers?: string;
199
+ }
200
+ export interface ThHTMLAttributes extends HTMLAttributes<HTMLTableCellElement> {
201
+ colSpan?: number;
202
+ rowSpan?: number;
203
+ scope?: 'col' | 'row' | 'colgroup' | 'rowgroup';
204
+ }
205
+ export interface IframeHTMLAttributes extends HTMLAttributes<HTMLIFrameElement> {
206
+ allow?: string;
207
+ allowFullScreen?: boolean;
208
+ height?: number | string;
209
+ loading?: 'eager' | 'lazy';
210
+ name?: string;
211
+ sandbox?: string;
212
+ src?: string;
213
+ srcDoc?: string;
214
+ width?: number | string;
215
+ }
216
+ export interface CanvasHTMLAttributes extends HTMLAttributes<HTMLCanvasElement> {
217
+ height?: number | string;
218
+ width?: number | string;
219
+ }
220
+ export interface SVGAttributes extends HTMLAttributes<SVGElement> {
221
+ viewBox?: string;
222
+ xmlns?: string;
223
+ fill?: string;
224
+ stroke?: string;
225
+ strokeWidth?: number | string;
226
+ strokeLinecap?: 'butt' | 'round' | 'square';
227
+ strokeLinejoin?: 'miter' | 'round' | 'bevel';
228
+ }
229
+ declare global {
230
+ namespace JSX {
231
+ type Element = import('./types').Element;
232
+ interface IntrinsicElements {
233
+ a: AnchorHTMLAttributes;
234
+ abbr: HTMLAttributes<HTMLElement>;
235
+ address: HTMLAttributes<HTMLElement>;
236
+ article: HTMLAttributes<HTMLElement>;
237
+ aside: HTMLAttributes<HTMLElement>;
238
+ b: HTMLAttributes<HTMLElement>;
239
+ blockquote: HTMLAttributes<HTMLQuoteElement>;
240
+ br: HTMLAttributes<HTMLBRElement>;
241
+ cite: HTMLAttributes<HTMLElement>;
242
+ code: HTMLAttributes<HTMLElement>;
243
+ del: HTMLAttributes<HTMLModElement>;
244
+ div: HTMLAttributes<HTMLDivElement>;
245
+ em: HTMLAttributes<HTMLElement>;
246
+ figcaption: HTMLAttributes<HTMLElement>;
247
+ figure: HTMLAttributes<HTMLElement>;
248
+ footer: HTMLAttributes<HTMLElement>;
249
+ h1: HTMLAttributes<HTMLHeadingElement>;
250
+ h2: HTMLAttributes<HTMLHeadingElement>;
251
+ h3: HTMLAttributes<HTMLHeadingElement>;
252
+ h4: HTMLAttributes<HTMLHeadingElement>;
253
+ h5: HTMLAttributes<HTMLHeadingElement>;
254
+ h6: HTMLAttributes<HTMLHeadingElement>;
255
+ header: HTMLAttributes<HTMLElement>;
256
+ hr: HTMLAttributes<HTMLHRElement>;
257
+ i: HTMLAttributes<HTMLElement>;
258
+ ins: HTMLAttributes<HTMLModElement>;
259
+ kbd: HTMLAttributes<HTMLElement>;
260
+ li: HTMLAttributes<HTMLLIElement>;
261
+ main: HTMLAttributes<HTMLElement>;
262
+ mark: HTMLAttributes<HTMLElement>;
263
+ nav: HTMLAttributes<HTMLElement>;
264
+ ol: HTMLAttributes<HTMLOListElement>;
265
+ p: HTMLAttributes<HTMLParagraphElement>;
266
+ pre: HTMLAttributes<HTMLPreElement>;
267
+ q: HTMLAttributes<HTMLQuoteElement>;
268
+ s: HTMLAttributes<HTMLElement>;
269
+ section: HTMLAttributes<HTMLElement>;
270
+ small: HTMLAttributes<HTMLElement>;
271
+ span: HTMLAttributes<HTMLSpanElement>;
272
+ strong: HTMLAttributes<HTMLElement>;
273
+ sub: HTMLAttributes<HTMLElement>;
274
+ sup: HTMLAttributes<HTMLElement>;
275
+ u: HTMLAttributes<HTMLElement>;
276
+ ul: HTMLAttributes<HTMLUListElement>;
277
+ button: ButtonHTMLAttributes;
278
+ datalist: HTMLAttributes<HTMLDataListElement>;
279
+ fieldset: HTMLAttributes<HTMLFieldSetElement>;
280
+ form: FormHTMLAttributes;
281
+ input: InputHTMLAttributes;
282
+ label: LabelHTMLAttributes;
283
+ legend: HTMLAttributes<HTMLLegendElement>;
284
+ meter: HTMLAttributes<HTMLMeterElement>;
285
+ optgroup: HTMLAttributes<HTMLOptGroupElement>;
286
+ option: OptionHTMLAttributes;
287
+ output: HTMLAttributes<HTMLOutputElement>;
288
+ progress: HTMLAttributes<HTMLProgressElement>;
289
+ select: SelectHTMLAttributes;
290
+ textarea: TextareaHTMLAttributes;
291
+ audio: AudioHTMLAttributes;
292
+ canvas: CanvasHTMLAttributes;
293
+ img: ImgHTMLAttributes;
294
+ picture: HTMLAttributes<HTMLPictureElement>;
295
+ video: VideoHTMLAttributes;
296
+ caption: HTMLAttributes<HTMLTableCaptionElement>;
297
+ col: HTMLAttributes<HTMLTableColElement>;
298
+ colgroup: HTMLAttributes<HTMLTableColElement>;
299
+ table: TableHTMLAttributes;
300
+ tbody: HTMLAttributes<HTMLTableSectionElement>;
301
+ td: TdHTMLAttributes;
302
+ tfoot: HTMLAttributes<HTMLTableSectionElement>;
303
+ th: ThHTMLAttributes;
304
+ thead: HTMLAttributes<HTMLTableSectionElement>;
305
+ tr: HTMLAttributes<HTMLTableRowElement>;
306
+ details: HTMLAttributes<HTMLDetailsElement>;
307
+ dialog: HTMLAttributes<HTMLDialogElement>;
308
+ iframe: IframeHTMLAttributes;
309
+ menu: HTMLAttributes<HTMLMenuElement>;
310
+ script: HTMLAttributes<HTMLScriptElement>;
311
+ style: HTMLAttributes<HTMLStyleElement>;
312
+ summary: HTMLAttributes<HTMLElement>;
313
+ template: HTMLAttributes<HTMLTemplateElement>;
314
+ svg: SVGAttributes;
315
+ circle: SVGAttributes;
316
+ ellipse: SVGAttributes;
317
+ line: SVGAttributes;
318
+ path: SVGAttributes;
319
+ polygon: SVGAttributes;
320
+ polyline: SVGAttributes;
321
+ rect: SVGAttributes;
322
+ g: SVGAttributes;
323
+ defs: SVGAttributes;
324
+ [elemName: string]: any;
325
+ }
326
+ interface ElementChildrenAttribute {
327
+ children: {};
328
+ }
329
+ }
31
330
  }
331
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsx-framework-test-pb",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",