@typed/ui 0.3.5 → 0.3.7
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/cjs/Link.js +2 -2
- package/dist/cjs/Link.js.map +1 -1
- package/dist/cjs/Props.js.map +1 -1
- package/dist/cjs/hyperscript.js +484 -0
- package/dist/cjs/hyperscript.js.map +1 -0
- package/dist/cjs/index.js +0 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/Link.d.ts +2 -2
- package/dist/dts/Link.d.ts.map +1 -1
- package/dist/dts/Props.d.ts +7 -0
- package/dist/dts/Props.d.ts.map +1 -1
- package/dist/dts/dom-properties.d.ts +129 -0
- package/dist/dts/dom-properties.d.ts.map +1 -1
- package/dist/dts/hyperscript.d.ts +460 -0
- package/dist/dts/hyperscript.d.ts.map +1 -0
- package/dist/dts/index.d.ts +0 -4
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/esm/Link.js +2 -2
- package/dist/esm/Link.js.map +1 -1
- package/dist/esm/Props.js.map +1 -1
- package/dist/esm/hyperscript.js +470 -0
- package/dist/esm/hyperscript.js.map +1 -0
- package/dist/esm/index.js +0 -4
- package/dist/esm/index.js.map +1 -1
- package/hyperscript/package.json +6 -0
- package/package.json +20 -28
- package/src/Link.ts +4 -3
- package/src/Props.ts +10 -0
- package/src/dom-properties.ts +130 -0
- package/src/hyperscript.ts +646 -0
- package/src/index.ts +0 -5
- package/Anchor/package.json +0 -6
- package/Component/package.json +0 -6
- package/dist/cjs/Anchor.js +0 -17
- package/dist/cjs/Anchor.js.map +0 -1
- package/dist/cjs/Component.js +0 -6
- package/dist/cjs/Component.js.map +0 -1
- package/dist/dts/Anchor.d.ts +0 -15
- package/dist/dts/Anchor.d.ts.map +0 -1
- package/dist/dts/Component.d.ts +0 -16
- package/dist/dts/Component.d.ts.map +0 -1
- package/dist/esm/Anchor.js +0 -9
- package/dist/esm/Anchor.js.map +0 -1
- package/dist/esm/Component.js +0 -5
- package/dist/esm/Component.js.map +0 -1
- package/src/Anchor.ts +0 -18
- package/src/Component.ts +0 -24
|
@@ -0,0 +1,646 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hyperscript for @typed/template.
|
|
3
|
+
* @since 1.0.0
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Fx } from "@typed/fx/Fx"
|
|
7
|
+
import { fromFxEffect } from "@typed/fx/Fx"
|
|
8
|
+
import type { Placeholder } from "@typed/template/Placeholder"
|
|
9
|
+
import type { Renderable } from "@typed/template/Renderable"
|
|
10
|
+
import type { RenderEvent } from "@typed/template/RenderEvent"
|
|
11
|
+
import { RenderTemplate } from "@typed/template/RenderTemplate"
|
|
12
|
+
import type { Scope } from "effect"
|
|
13
|
+
import type { TypedPropertiesMap } from "./Props"
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @since 1.0.0
|
|
17
|
+
*/
|
|
18
|
+
export function h<
|
|
19
|
+
const TagName extends keyof TypedPropertiesMap,
|
|
20
|
+
const Props extends TypedPropertiesMap[TagName],
|
|
21
|
+
const Children extends ReadonlyArray<Renderable<any, any>>
|
|
22
|
+
>(
|
|
23
|
+
tagName: TagName,
|
|
24
|
+
properties: Props,
|
|
25
|
+
...children: Children
|
|
26
|
+
): Fx<
|
|
27
|
+
| Scope.Scope
|
|
28
|
+
| RenderTemplate
|
|
29
|
+
| Placeholder.Context<
|
|
30
|
+
Props[keyof Props] | Children[number]
|
|
31
|
+
>,
|
|
32
|
+
Placeholder.Error<
|
|
33
|
+
Props[keyof Props] | Children[number]
|
|
34
|
+
>,
|
|
35
|
+
RenderEvent
|
|
36
|
+
> {
|
|
37
|
+
return fromFxEffect(
|
|
38
|
+
RenderTemplate.with((render) => render(getTemplateStringsArrayFor(tagName), [properties, children]))
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const templateStringsArray = new Map<string, TemplateStringsArray>()
|
|
43
|
+
|
|
44
|
+
function getTemplateStringsArrayFor(tagName: string): TemplateStringsArray {
|
|
45
|
+
let template = templateStringsArray.get(tagName)
|
|
46
|
+
|
|
47
|
+
if (template === undefined) {
|
|
48
|
+
template = makeTemplateStringsArrayFor(tagName)
|
|
49
|
+
templateStringsArray.set(tagName, template)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return template
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function makeTemplateStringsArrayFor(tagName: string): TemplateStringsArray {
|
|
56
|
+
const template = [`<${tagName} ...`, `>`, `</${tagName}>`]
|
|
57
|
+
|
|
58
|
+
return Object.assign(template, { raw: template })
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @since 1.0.0
|
|
63
|
+
*/
|
|
64
|
+
export type HyperscriptForTagName<TagName extends keyof TypedPropertiesMap> = <
|
|
65
|
+
const Props extends TypedPropertiesMap[TagName],
|
|
66
|
+
const Children extends ReadonlyArray<Renderable<any, any>>
|
|
67
|
+
>(
|
|
68
|
+
properties: Props,
|
|
69
|
+
...children: Children
|
|
70
|
+
) => Fx<
|
|
71
|
+
Scope.Scope | RenderTemplate | Placeholder.Context<Props[keyof Props] | Children[number]>,
|
|
72
|
+
Placeholder.Error<Props[keyof Props] | Children[number]>,
|
|
73
|
+
RenderEvent
|
|
74
|
+
>
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @since 1.0.0
|
|
78
|
+
*/
|
|
79
|
+
export function createHyperscript<const TagName extends keyof TypedPropertiesMap>(
|
|
80
|
+
tagName: TagName
|
|
81
|
+
): HyperscriptForTagName<TagName> {
|
|
82
|
+
return <
|
|
83
|
+
const Props extends TypedPropertiesMap[TagName],
|
|
84
|
+
const Children extends ReadonlyArray<Renderable<any, any>>
|
|
85
|
+
>(
|
|
86
|
+
properties: Props,
|
|
87
|
+
...children: Children
|
|
88
|
+
): Fx<
|
|
89
|
+
| Scope.Scope
|
|
90
|
+
| RenderTemplate
|
|
91
|
+
| Placeholder.Context<
|
|
92
|
+
Props[keyof Props] | Children[number]
|
|
93
|
+
>,
|
|
94
|
+
Placeholder.Error<
|
|
95
|
+
Props[keyof Props] | Children[number]
|
|
96
|
+
>,
|
|
97
|
+
RenderEvent
|
|
98
|
+
> => {
|
|
99
|
+
return h(tagName, properties, ...children)
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @since 1.0.0
|
|
105
|
+
*/
|
|
106
|
+
export const a: HyperscriptForTagName<"a"> = createHyperscript("a")
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @since 1.0.0
|
|
110
|
+
*/
|
|
111
|
+
export const abbr: HyperscriptForTagName<"abbr"> = createHyperscript("abbr")
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @since 1.0.0
|
|
115
|
+
*/
|
|
116
|
+
export const address: HyperscriptForTagName<"address"> = createHyperscript("address")
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @since 1.0.0
|
|
120
|
+
*/
|
|
121
|
+
export const area: HyperscriptForTagName<"area"> = createHyperscript("area")
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @since 1.0.0
|
|
125
|
+
*/
|
|
126
|
+
export const article: HyperscriptForTagName<"article"> = createHyperscript("article")
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @since 1.0.0
|
|
130
|
+
*/
|
|
131
|
+
export const aside: HyperscriptForTagName<"aside"> = createHyperscript("aside")
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @since 1.0.0
|
|
135
|
+
*/
|
|
136
|
+
export const audio: HyperscriptForTagName<"audio"> = createHyperscript("audio")
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @since 1.0.0
|
|
140
|
+
*/
|
|
141
|
+
export const b: HyperscriptForTagName<"b"> = createHyperscript("b")
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @since 1.0.0
|
|
145
|
+
*/
|
|
146
|
+
export const base: HyperscriptForTagName<"base"> = createHyperscript("base")
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @since 1.0.0
|
|
150
|
+
*/
|
|
151
|
+
export const bdi: HyperscriptForTagName<"bdi"> = createHyperscript("bdi")
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @since 1.0.0
|
|
155
|
+
*/
|
|
156
|
+
export const bdo: HyperscriptForTagName<"bdo"> = createHyperscript("bdo")
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @since 1.0.0
|
|
160
|
+
*/
|
|
161
|
+
export const blockquote: HyperscriptForTagName<"blockquote"> = createHyperscript("blockquote")
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @since 1.0.0
|
|
165
|
+
*/
|
|
166
|
+
export const body: HyperscriptForTagName<"body"> = createHyperscript("body")
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @since 1.0.0
|
|
170
|
+
*/
|
|
171
|
+
export const br: HyperscriptForTagName<"br"> = createHyperscript("br")
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @since 1.0.0
|
|
175
|
+
*/
|
|
176
|
+
export const button: HyperscriptForTagName<"button"> = createHyperscript("button")
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @since 1.0.0
|
|
180
|
+
*/
|
|
181
|
+
export const canvas: HyperscriptForTagName<"canvas"> = createHyperscript("canvas")
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @since 1.0.0
|
|
185
|
+
*/
|
|
186
|
+
export const caption: HyperscriptForTagName<"caption"> = createHyperscript("caption")
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @since 1.0.0
|
|
190
|
+
*/
|
|
191
|
+
export const cite: HyperscriptForTagName<"cite"> = createHyperscript("cite")
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @since 1.0.0
|
|
195
|
+
*/
|
|
196
|
+
export const code: HyperscriptForTagName<"code"> = createHyperscript("code")
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @since 1.0.0
|
|
200
|
+
*/
|
|
201
|
+
export const col: HyperscriptForTagName<"col"> = createHyperscript("col")
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @since 1.0.0
|
|
205
|
+
*/
|
|
206
|
+
export const colgroup: HyperscriptForTagName<"colgroup"> = createHyperscript("colgroup")
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @since 1.0.0
|
|
210
|
+
*/
|
|
211
|
+
export const data: HyperscriptForTagName<"data"> = createHyperscript("data")
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @since 1.0.0
|
|
215
|
+
*/
|
|
216
|
+
export const datalist: HyperscriptForTagName<"datalist"> = createHyperscript("datalist")
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @since 1.0.0
|
|
220
|
+
*/
|
|
221
|
+
export const dd: HyperscriptForTagName<"dd"> = createHyperscript("dd")
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @since 1.0.0
|
|
225
|
+
*/
|
|
226
|
+
export const del: HyperscriptForTagName<"del"> = createHyperscript("del")
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @since 1.0.0
|
|
230
|
+
*/
|
|
231
|
+
export const details: HyperscriptForTagName<"details"> = createHyperscript("details")
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* @since 1.0.0
|
|
235
|
+
*/
|
|
236
|
+
export const dfn: HyperscriptForTagName<"dfn"> = createHyperscript("dfn")
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @since 1.0.0
|
|
240
|
+
*/
|
|
241
|
+
export const dialog: HyperscriptForTagName<"dialog"> = createHyperscript("dialog")
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @since 1.0.0
|
|
245
|
+
*/
|
|
246
|
+
export const div: HyperscriptForTagName<"div"> = createHyperscript("div")
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* @since 1.0.0
|
|
250
|
+
*/
|
|
251
|
+
export const dl: HyperscriptForTagName<"dl"> = createHyperscript("dl")
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @since 1.0.0
|
|
255
|
+
*/
|
|
256
|
+
export const dt: HyperscriptForTagName<"dt"> = createHyperscript("dt")
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @since 1.0.0
|
|
260
|
+
*/
|
|
261
|
+
export const em: HyperscriptForTagName<"em"> = createHyperscript("em")
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @since 1.0.0
|
|
265
|
+
*/
|
|
266
|
+
export const embed: HyperscriptForTagName<"embed"> = createHyperscript("embed")
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* @since 1.0.0
|
|
270
|
+
*/
|
|
271
|
+
export const fieldset: HyperscriptForTagName<"fieldset"> = createHyperscript("fieldset")
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* @since 1.0.0
|
|
275
|
+
*/
|
|
276
|
+
export const figcaption: HyperscriptForTagName<"figcaption"> = createHyperscript("figcaption")
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @since 1.0.0
|
|
280
|
+
*/
|
|
281
|
+
export const figure: HyperscriptForTagName<"figure"> = createHyperscript("figure")
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* @since 1.0.0
|
|
285
|
+
*/
|
|
286
|
+
export const footer: HyperscriptForTagName<"footer"> = createHyperscript("footer")
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* @since 1.0.0
|
|
290
|
+
*/
|
|
291
|
+
export const form: HyperscriptForTagName<"form"> = createHyperscript("form")
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* @since 1.0.0
|
|
295
|
+
*/
|
|
296
|
+
export const h1: HyperscriptForTagName<"h1"> = createHyperscript("h1")
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* @since 1.0.0
|
|
300
|
+
*/
|
|
301
|
+
export const h2: HyperscriptForTagName<"h2"> = createHyperscript("h2")
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* @since 1.0.0
|
|
305
|
+
*/
|
|
306
|
+
export const h3: HyperscriptForTagName<"h3"> = createHyperscript("h3")
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* @since 1.0.0
|
|
310
|
+
*/
|
|
311
|
+
export const h4: HyperscriptForTagName<"h4"> = createHyperscript("h4")
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* @since 1.0.0
|
|
315
|
+
*/
|
|
316
|
+
export const h5: HyperscriptForTagName<"h5"> = createHyperscript("h5")
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* @since 1.0.0
|
|
320
|
+
*/
|
|
321
|
+
export const h6: HyperscriptForTagName<"h6"> = createHyperscript("h6")
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* @since 1.0.0
|
|
325
|
+
*/
|
|
326
|
+
export const head: HyperscriptForTagName<"head"> = createHyperscript("head")
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* @since 1.0.0
|
|
330
|
+
*/
|
|
331
|
+
export const header: HyperscriptForTagName<"header"> = createHyperscript("header")
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* @since 1.0.0
|
|
335
|
+
*/
|
|
336
|
+
export const hgroup: HyperscriptForTagName<"hgroup"> = createHyperscript("hgroup")
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @since 1.0.0
|
|
340
|
+
*/
|
|
341
|
+
export const hr: HyperscriptForTagName<"hr"> = createHyperscript("hr")
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* @since 1.0.0
|
|
345
|
+
*/
|
|
346
|
+
export const html: HyperscriptForTagName<"html"> = createHyperscript("html")
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @since 1.0.0
|
|
350
|
+
*/
|
|
351
|
+
export const i: HyperscriptForTagName<"i"> = createHyperscript("i")
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* @since 1.0.0
|
|
355
|
+
*/
|
|
356
|
+
export const iframe: HyperscriptForTagName<"iframe"> = createHyperscript("iframe")
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* @since 1.0.0
|
|
360
|
+
*/
|
|
361
|
+
export const img: HyperscriptForTagName<"img"> = createHyperscript("img")
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* @since 1.0.0
|
|
365
|
+
*/
|
|
366
|
+
export const input: HyperscriptForTagName<"input"> = createHyperscript("input")
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* @since 1.0.0
|
|
370
|
+
*/
|
|
371
|
+
export const ins: HyperscriptForTagName<"ins"> = createHyperscript("ins")
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @since 1.0.0
|
|
375
|
+
*/
|
|
376
|
+
export const kbd: HyperscriptForTagName<"kbd"> = createHyperscript("kbd")
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* @since 1.0.0
|
|
380
|
+
*/
|
|
381
|
+
export const label: HyperscriptForTagName<"label"> = createHyperscript("label")
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* @since 1.0.0
|
|
385
|
+
*/
|
|
386
|
+
export const legend: HyperscriptForTagName<"legend"> = createHyperscript("legend")
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* @since 1.0.0
|
|
390
|
+
*/
|
|
391
|
+
export const li: HyperscriptForTagName<"li"> = createHyperscript("li")
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* @since 1.0.0
|
|
395
|
+
*/
|
|
396
|
+
export const link: HyperscriptForTagName<"link"> = createHyperscript("link")
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* @since 1.0.0
|
|
400
|
+
*/
|
|
401
|
+
export const main: HyperscriptForTagName<"main"> = createHyperscript("main")
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* @since 1.0.0
|
|
405
|
+
*/
|
|
406
|
+
export const map: HyperscriptForTagName<"map"> = createHyperscript("map")
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* @since 1.0.0
|
|
410
|
+
*/
|
|
411
|
+
export const mark: HyperscriptForTagName<"mark"> = createHyperscript("mark")
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* @since 1.0.0
|
|
415
|
+
*/
|
|
416
|
+
export const meta: HyperscriptForTagName<"meta"> = createHyperscript("meta")
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* @since 1.0.0
|
|
420
|
+
*/
|
|
421
|
+
export const meter: HyperscriptForTagName<"meter"> = createHyperscript("meter")
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* @since 1.0.0
|
|
425
|
+
*/
|
|
426
|
+
export const nav: HyperscriptForTagName<"nav"> = createHyperscript("nav")
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* @since 1.0.0
|
|
430
|
+
*/
|
|
431
|
+
export const noscript: HyperscriptForTagName<"noscript"> = createHyperscript("noscript")
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @since 1.0.0
|
|
435
|
+
*/
|
|
436
|
+
export const object: HyperscriptForTagName<"object"> = createHyperscript("object")
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* @since 1.0.0
|
|
440
|
+
*/
|
|
441
|
+
export const ol: HyperscriptForTagName<"ol"> = createHyperscript("ol")
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* @since 1.0.0
|
|
445
|
+
*/
|
|
446
|
+
export const optgroup: HyperscriptForTagName<"optgroup"> = createHyperscript("optgroup")
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* @since 1.0.0
|
|
450
|
+
*/
|
|
451
|
+
export const option: HyperscriptForTagName<"option"> = createHyperscript("option")
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* @since 1.0.0
|
|
455
|
+
*/
|
|
456
|
+
export const output: HyperscriptForTagName<"output"> = createHyperscript("output")
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @since 1.0.0
|
|
460
|
+
*/
|
|
461
|
+
export const p: HyperscriptForTagName<"p"> = createHyperscript("p")
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* @since 1.0.0
|
|
465
|
+
*/
|
|
466
|
+
export const param: HyperscriptForTagName<"param"> = createHyperscript("param")
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* @since 1.0.0
|
|
470
|
+
*/
|
|
471
|
+
export const picture: HyperscriptForTagName<"picture"> = createHyperscript("picture")
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* @since 1.0.0
|
|
475
|
+
*/
|
|
476
|
+
export const pre: HyperscriptForTagName<"pre"> = createHyperscript("pre")
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* @since 1.0.0
|
|
480
|
+
*/
|
|
481
|
+
export const progress: HyperscriptForTagName<"progress"> = createHyperscript("progress")
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* @since 1.0.0
|
|
485
|
+
*/
|
|
486
|
+
export const q: HyperscriptForTagName<"q"> = createHyperscript("q")
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* @since 1.0.0
|
|
490
|
+
*/
|
|
491
|
+
export const rp: HyperscriptForTagName<"rp"> = createHyperscript("rp")
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* @since 1.0.0
|
|
495
|
+
*/
|
|
496
|
+
export const rt: HyperscriptForTagName<"rt"> = createHyperscript("rt")
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* @since 1.0.0
|
|
500
|
+
*/
|
|
501
|
+
export const ruby: HyperscriptForTagName<"ruby"> = createHyperscript("ruby")
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* @since 1.0.0
|
|
505
|
+
*/
|
|
506
|
+
export const s: HyperscriptForTagName<"s"> = createHyperscript("s")
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* @since 1.0.0
|
|
510
|
+
*/
|
|
511
|
+
export const samp: HyperscriptForTagName<"samp"> = createHyperscript("samp")
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* @since 1.0.0
|
|
515
|
+
*/
|
|
516
|
+
export const script: HyperscriptForTagName<"script"> = createHyperscript("script")
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* @since 1.0.0
|
|
520
|
+
*/
|
|
521
|
+
export const section: HyperscriptForTagName<"section"> = createHyperscript("section")
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* @since 1.0.0
|
|
525
|
+
*/
|
|
526
|
+
export const select: HyperscriptForTagName<"select"> = createHyperscript("select")
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* @since 1.0.0
|
|
530
|
+
*/
|
|
531
|
+
export const small: HyperscriptForTagName<"small"> = createHyperscript("small")
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* @since 1.0.0
|
|
535
|
+
*/
|
|
536
|
+
export const source: HyperscriptForTagName<"source"> = createHyperscript("source")
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* @since 1.0.0
|
|
540
|
+
*/
|
|
541
|
+
export const span: HyperscriptForTagName<"span"> = createHyperscript("span")
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* @since 1.0.0
|
|
545
|
+
*/
|
|
546
|
+
export const strong: HyperscriptForTagName<"strong"> = createHyperscript("strong")
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* @since 1.0.0
|
|
550
|
+
*/
|
|
551
|
+
export const style: HyperscriptForTagName<"style"> = createHyperscript("style")
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* @since 1.0.0
|
|
555
|
+
*/
|
|
556
|
+
export const sub: HyperscriptForTagName<"sub"> = createHyperscript("sub")
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* @since 1.0.0
|
|
560
|
+
*/
|
|
561
|
+
export const summary: HyperscriptForTagName<"summary"> = createHyperscript("summary")
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* @since 1.0.0
|
|
565
|
+
*/
|
|
566
|
+
export const sup: HyperscriptForTagName<"sup"> = createHyperscript("sup")
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* @since 1.0.0
|
|
570
|
+
*/
|
|
571
|
+
export const table: HyperscriptForTagName<"table"> = createHyperscript("table")
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* @since 1.0.0
|
|
575
|
+
*/
|
|
576
|
+
export const tbody: HyperscriptForTagName<"tbody"> = createHyperscript("tbody")
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* @since 1.0.0
|
|
580
|
+
*/
|
|
581
|
+
export const td: HyperscriptForTagName<"td"> = createHyperscript("td")
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* @since 1.0.0
|
|
585
|
+
*/
|
|
586
|
+
export const template: HyperscriptForTagName<"template"> = createHyperscript("template")
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* @since 1.0.0
|
|
590
|
+
*/
|
|
591
|
+
export const textarea: HyperscriptForTagName<"textarea"> = createHyperscript("textarea")
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* @since 1.0.0
|
|
595
|
+
*/
|
|
596
|
+
export const tfoot: HyperscriptForTagName<"tfoot"> = createHyperscript("tfoot")
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* @since 1.0.0
|
|
600
|
+
*/
|
|
601
|
+
export const th: HyperscriptForTagName<"th"> = createHyperscript("th")
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* @since 1.0.0
|
|
605
|
+
*/
|
|
606
|
+
export const thead: HyperscriptForTagName<"thead"> = createHyperscript("thead")
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* @since 1.0.0
|
|
610
|
+
*/
|
|
611
|
+
export const time: HyperscriptForTagName<"time"> = createHyperscript("time")
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* @since 1.0.0
|
|
615
|
+
*/
|
|
616
|
+
export const title: HyperscriptForTagName<"title"> = createHyperscript("title")
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* @since 1.0.0
|
|
620
|
+
*/
|
|
621
|
+
export const tr: HyperscriptForTagName<"tr"> = createHyperscript("tr")
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* @since 1.0.0
|
|
625
|
+
*/
|
|
626
|
+
export const track: HyperscriptForTagName<"track"> = createHyperscript("track")
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* @since 1.0.0
|
|
630
|
+
*/
|
|
631
|
+
export const u: HyperscriptForTagName<"u"> = createHyperscript("u")
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* @since 1.0.0
|
|
635
|
+
*/
|
|
636
|
+
export const ul: HyperscriptForTagName<"ul"> = createHyperscript("ul")
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* @since 1.0.0
|
|
640
|
+
*/
|
|
641
|
+
export const video: HyperscriptForTagName<"video"> = createHyperscript("video")
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* @since 1.0.0
|
|
645
|
+
*/
|
|
646
|
+
export const wbr: HyperscriptForTagName<"wbr"> = createHyperscript("wbr")
|
package/src/index.ts
CHANGED
package/Anchor/package.json
DELETED
package/Component/package.json
DELETED
package/dist/cjs/Anchor.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Anchor = void 0;
|
|
7
|
-
var _RenderTemplate = /*#__PURE__*/require("@typed/template/RenderTemplate");
|
|
8
|
-
/**
|
|
9
|
-
* @since 1.0.0
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @since 1.0.0
|
|
14
|
-
*/
|
|
15
|
-
const Anchor = (props, ...children) => (0, _RenderTemplate.html)`<a ...${props}>${children}</a>`;
|
|
16
|
-
exports.Anchor = Anchor;
|
|
17
|
-
//# sourceMappingURL=Anchor.js.map
|
package/dist/cjs/Anchor.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.js","names":["_RenderTemplate","require","Anchor","props","children","html","exports"],"sources":["../../src/Anchor.ts"],"sourcesContent":[null],"mappings":";;;;;;AAIA,IAAAA,eAAA,gBAAAC,OAAA;AAJA;;;;AAcA;;;AAGO,MAAMC,MAAM,GAA2BA,CAACC,KAAK,EAAE,GAAGC,QAAQ,KAAK,IAAAC,oBAAI,UAASF,KAAK,IAAIC,QAAQ,MAAM;AAAAE,OAAA,CAAAJ,MAAA,GAAAA,MAAA"}
|
package/dist/cjs/Component.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Component.js","names":[],"sources":["../../src/Component.ts"],"sourcesContent":[null],"mappings":""}
|