@thi.ng/hiccup-html 2.7.0 → 2.7.1
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/CHANGELOG.md +1 -1
- package/README.md +145 -44
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
|
|
17
17
|
- [About](#about)
|
|
18
18
|
- [Supported elements](#supported-elements)
|
|
19
|
+
- [Block content](#block-content)
|
|
20
|
+
- [Forms / inputs](#forms--inputs)
|
|
19
21
|
- [Head / metadata](#head--metadata)
|
|
20
|
-
- [Sections](#sections)
|
|
21
|
-
- [Text content](#text-content)
|
|
22
|
-
- [Lists](#lists)
|
|
23
|
-
- [Tables](#tables)
|
|
24
22
|
- [Inline](#inline)
|
|
25
|
-
- [
|
|
23
|
+
- [Lists](#lists)
|
|
26
24
|
- [Media](#media)
|
|
25
|
+
- [Sections](#sections)
|
|
26
|
+
- [Tables](#tables)
|
|
27
27
|
- [Compatibility](#compatibility)
|
|
28
28
|
- [Status](#status)
|
|
29
29
|
- [Support packages](#support-packages)
|
|
@@ -41,72 +41,173 @@
|
|
|
41
41
|
|
|
42
42
|
100+ type-checked HTML5 element functions for [@thi.ng/hiccup](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup) related infrastructure.
|
|
43
43
|
|
|
44
|
-
The following type-checked factory functions are provided **so far** and
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
definitions in
|
|
44
|
+
The following type-checked factory functions are provided **so far** and in most
|
|
45
|
+
cases include specialized type definitions for element-specific attributes,
|
|
46
|
+
incl. enumerated attrib values (where applicable/useful) and 420+ CSS property
|
|
47
|
+
names (for use with the `style` attrib). See type definitions in
|
|
49
48
|
[api.ts](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/api.ts)
|
|
50
49
|
and [`defElement()`](#defelement) below for more details.
|
|
51
50
|
|
|
52
51
|
### Supported elements
|
|
53
52
|
|
|
54
|
-
####
|
|
53
|
+
#### Block content
|
|
55
54
|
|
|
56
|
-
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/
|
|
55
|
+
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/blocks.ts)
|
|
57
56
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
- `blockquote`
|
|
58
|
+
- `details`
|
|
59
|
+
- `dialog`
|
|
60
|
+
- `div`
|
|
61
|
+
- `figcaption`
|
|
62
|
+
- `figure`
|
|
63
|
+
- `hr`
|
|
64
|
+
- `iframe`
|
|
65
|
+
- `para`
|
|
66
|
+
- `pre`
|
|
67
|
+
- `slot`
|
|
68
|
+
- `summary`
|
|
69
|
+
- `template`
|
|
61
70
|
|
|
62
|
-
####
|
|
71
|
+
#### Forms / inputs
|
|
63
72
|
|
|
64
|
-
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/
|
|
73
|
+
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/forms.ts)
|
|
65
74
|
|
|
66
|
-
|
|
67
|
-
|
|
75
|
+
- `button`
|
|
76
|
+
- `checkbox`
|
|
77
|
+
- `fieldset`
|
|
78
|
+
- `form`
|
|
79
|
+
- `inputColor`
|
|
80
|
+
- `inputFile`
|
|
81
|
+
- `inputNumber`
|
|
82
|
+
- `inputPass`
|
|
83
|
+
- `inputRange`
|
|
84
|
+
- `inputReset`
|
|
85
|
+
- `inputSearch`
|
|
86
|
+
- `inputSubmit`
|
|
87
|
+
- `inputText`
|
|
88
|
+
- `label`
|
|
89
|
+
- `legend`
|
|
90
|
+
- `meter`
|
|
91
|
+
- `optGroup`
|
|
92
|
+
- `option`
|
|
93
|
+
- `output`
|
|
94
|
+
- `progress`
|
|
95
|
+
- `radio`
|
|
96
|
+
- `select`
|
|
97
|
+
- `textArea`
|
|
68
98
|
|
|
69
|
-
####
|
|
99
|
+
#### Head / metadata
|
|
70
100
|
|
|
71
|
-
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/
|
|
101
|
+
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/head.ts)
|
|
72
102
|
|
|
73
|
-
|
|
74
|
-
`
|
|
103
|
+
- `base`
|
|
104
|
+
- `head`
|
|
105
|
+
- `link`
|
|
106
|
+
- `linkCSS`
|
|
107
|
+
- `meta`
|
|
108
|
+
- `metaReferrer`
|
|
109
|
+
- `metaRefresh`
|
|
110
|
+
- `metaRobots`
|
|
111
|
+
- `metaUTF8`
|
|
112
|
+
- `metaViewport`
|
|
113
|
+
- `metaXUA`
|
|
114
|
+
- `script`
|
|
115
|
+
- `style`
|
|
116
|
+
- `title`
|
|
75
117
|
|
|
76
|
-
####
|
|
118
|
+
#### Inline
|
|
77
119
|
|
|
78
|
-
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/
|
|
120
|
+
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/inline.ts)
|
|
79
121
|
|
|
80
|
-
|
|
122
|
+
- `abbr`
|
|
123
|
+
- `anchor`
|
|
124
|
+
- `br`
|
|
125
|
+
- `cite`
|
|
126
|
+
- `code`
|
|
127
|
+
- `data`
|
|
128
|
+
- `del`
|
|
129
|
+
- `dfn`
|
|
130
|
+
- `em`
|
|
131
|
+
- `i`
|
|
132
|
+
- `ins`
|
|
133
|
+
- `kbd`
|
|
134
|
+
- `mark`
|
|
135
|
+
- `quote`
|
|
136
|
+
- `small`
|
|
137
|
+
- `span`
|
|
138
|
+
- `strikethrough`
|
|
139
|
+
- `strong`
|
|
140
|
+
- `sub`
|
|
141
|
+
- `sup`
|
|
142
|
+
- `time`
|
|
143
|
+
- `variable`
|
|
144
|
+
- `wbr`
|
|
81
145
|
|
|
82
|
-
####
|
|
146
|
+
#### Lists
|
|
83
147
|
|
|
84
|
-
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/
|
|
148
|
+
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/lists.ts)
|
|
85
149
|
|
|
86
|
-
|
|
87
|
-
|
|
150
|
+
- `datalist`
|
|
151
|
+
- `dd`
|
|
152
|
+
- `dl`
|
|
153
|
+
- `dt`
|
|
154
|
+
- `li`
|
|
155
|
+
- `menu`
|
|
156
|
+
- `ol`
|
|
157
|
+
- `ul`
|
|
88
158
|
|
|
89
|
-
####
|
|
159
|
+
#### Media
|
|
90
160
|
|
|
91
|
-
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/
|
|
161
|
+
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/media.ts)
|
|
92
162
|
|
|
93
|
-
|
|
94
|
-
|
|
163
|
+
- `audio`
|
|
164
|
+
- `canvas`
|
|
165
|
+
- `img`
|
|
166
|
+
- `object`
|
|
167
|
+
- `picture`
|
|
168
|
+
- `source`
|
|
169
|
+
- `track`
|
|
170
|
+
- `video`
|
|
95
171
|
|
|
96
|
-
####
|
|
172
|
+
#### Sections
|
|
97
173
|
|
|
98
|
-
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/
|
|
174
|
+
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/sections.ts)
|
|
99
175
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
176
|
+
- `address`
|
|
177
|
+
- `article`
|
|
178
|
+
- `aside`
|
|
179
|
+
- `body`
|
|
180
|
+
- `comment`
|
|
181
|
+
- `footer`
|
|
182
|
+
- `h1`
|
|
183
|
+
- `h2`
|
|
184
|
+
- `h3`
|
|
185
|
+
- `h4`
|
|
186
|
+
- `h5`
|
|
187
|
+
- `h6`
|
|
188
|
+
- `header`
|
|
189
|
+
- `hgroup`
|
|
190
|
+
- `html`
|
|
191
|
+
- `main`
|
|
192
|
+
- `nav`
|
|
193
|
+
- `noscript`
|
|
194
|
+
- `search`
|
|
195
|
+
- `section`
|
|
104
196
|
|
|
105
|
-
####
|
|
197
|
+
#### Tables
|
|
106
198
|
|
|
107
|
-
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/
|
|
199
|
+
[Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/table.ts)
|
|
108
200
|
|
|
109
|
-
|
|
201
|
+
- `caption`
|
|
202
|
+
- `col`
|
|
203
|
+
- `colgroup`
|
|
204
|
+
- `table`
|
|
205
|
+
- `tbody`
|
|
206
|
+
- `td`
|
|
207
|
+
- `tfoot`
|
|
208
|
+
- `th`
|
|
209
|
+
- `thead`
|
|
210
|
+
- `tr`
|
|
110
211
|
|
|
111
212
|
### Compatibility
|
|
112
213
|
|
|
@@ -196,7 +297,7 @@ Browser ESM import:
|
|
|
196
297
|
|
|
197
298
|
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
198
299
|
|
|
199
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 1.
|
|
300
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 1.63 KB
|
|
200
301
|
|
|
201
302
|
## Dependencies
|
|
202
303
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hiccup-html",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "100+ type-checked HTML5 element functions for @thi.ng/hiccup related infrastructure",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
],
|
|
112
112
|
"year": 2020
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "85719a1b26246ca7cc088c119fab269f8e2fd4a7\n"
|
|
115
115
|
}
|