@thi.ng/hiccup-html 2.6.7 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-07-06T12:02:18Z
3
+ - **Last updated**: 2024-07-10T20:28:44Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,19 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ## [2.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.7.0) (2024-07-08)
13
+
14
+ #### 🚀 Features
15
+
16
+ - add/update block elements ([08f1728](https://github.com/thi-ng/umbrella/commit/08f1728))
17
+ - add: details(), dialog(), summary()
18
+ - update template(), add TemplateAttribs
19
+ - add inline elements ([9127bd6](https://github.com/thi-ng/umbrella/commit/9127bd6))
20
+ - add: dfn(), strikethrough(), variable(), wbr()
21
+ - add/update elements ([0df160f](https://github.com/thi-ng/umbrella/commit/0df160f))
22
+ - add: menu(), object(), output(), search()
23
+ - add new element specific attrib types
24
+
12
25
  ### [2.6.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.6.3) (2024-05-08)
13
26
 
14
27
  #### 🩹 Bug fixes
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
- - [Forms / inputs](#forms--inputs)
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
- in most cases include specialized type definitions for element-specific
46
- attributes, incl. enumerated attrib values (where applicable/useful) and
47
- all 420+ CSS property names (for use with the `style` attrib). See type
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
- #### Head / metadata
53
+ #### Block content
55
54
 
56
- [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/head.ts)
55
+ [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/blocks.ts)
57
56
 
58
- `base`, `head`, `link`, `linkCSS`, `meta`, `metaReferrer`,
59
- `metaRefresh`, `metaRobots`, `metaUTF8`, `metaViewport`, `metaXUA`,
60
- `script`, `style`, `title`
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
- #### Sections
71
+ #### Forms / inputs
63
72
 
64
- [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/sections.ts)
73
+ [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/forms.ts)
65
74
 
66
- `address`, `article`, `aside`, `body`, `footer`, `h1`..`h6`, `header`,
67
- `hgroup`, `html`, `main`, `nav`, `noscript`, `section`
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
- #### Text content
99
+ #### Head / metadata
70
100
 
71
- [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/blocks.ts)
101
+ [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/head.ts)
72
102
 
73
- `blockquote`, `div`, `figure`, `figcaption`, `hr`, `iframe`, `para`,
74
- `pre`
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
- #### Lists
118
+ #### Inline
77
119
 
78
- [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/lists.ts)
120
+ [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/inline.ts)
79
121
 
80
- `datalist`, `dd`, `dl`, `dt`, `li`, `ol`, `ul`
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
- #### Tables
146
+ #### Lists
83
147
 
84
- [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/table.ts)
148
+ [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/lists.ts)
85
149
 
86
- `caption`, `col`, `colgroup`, `table`, `tbody`, `td`, `tfoot`, `th`,
87
- `thead`, `tr`
150
+ - `datalist`
151
+ - `dd`
152
+ - `dl`
153
+ - `dt`
154
+ - `li`
155
+ - `menu`
156
+ - `ol`
157
+ - `ul`
88
158
 
89
- #### Inline
159
+ #### Media
90
160
 
91
- [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/inline.ts)
161
+ [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/media.ts)
92
162
 
93
- `abbr`, `anchor`, `br`, `cite`, `code`, `data`, `del`, `em`, `i`, `ins`,
94
- `kbd`, `mark`, `quote`, `small`, `span`, `strong`, `sub`, `sup`, `time`
163
+ - `audio`
164
+ - `canvas`
165
+ - `img`
166
+ - `object`
167
+ - `picture`
168
+ - `source`
169
+ - `track`
170
+ - `video`
95
171
 
96
- #### Forms / inputs
172
+ #### Sections
97
173
 
98
- [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/forms.ts)
174
+ [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/sections.ts)
99
175
 
100
- `button`, `checkbox`, `fieldset`, `form`, `inputColor`, `inputFile`,
101
- `inputNumber`, `inputPass`, `inputRange`, `inputSearch`, `inputText`,
102
- `label`, `legend`, `meter`, `option`, `optGroup`, `progress`, `radio`,
103
- `select`, `textArea`
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
- #### Media
197
+ #### Tables
106
198
 
107
- [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/media.ts)
199
+ [Source](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html/src/table.ts)
108
200
 
109
- `audio`, `canvas`, `img`, `picture`, `source`, `video`
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.51 KB
300
+ Package sizes (brotli'd, pre-treeshake): ESM: 1.63 KB
200
301
 
201
302
  ## Dependencies
202
303
 
package/blocks.d.ts CHANGED
@@ -3,7 +3,16 @@ export interface BlockquoteAttribs extends Attribs {
3
3
  cite: StringAttrib;
4
4
  }
5
5
  export declare const blockquote: import("./def.js").ElementFactory<Partial<BlockquoteAttribs>, any>;
6
- export declare const div: import("./def.js").ElementFactory<Partial<Attribs>, any>, figure: import("./def.js").ElementFactory<Partial<Attribs>, any>, figcaption: import("./def.js").ElementFactory<Partial<Attribs>, any>, para: import("./def.js").ElementFactory<Partial<Attribs>, any>, pre: import("./def.js").ElementFactory<Partial<Attribs>, any>, template: import("./def.js").ElementFactory<Partial<Attribs>, any>;
6
+ export interface DetailAttribs extends Attribs {
7
+ open: boolean;
8
+ name: StringAttrib;
9
+ }
10
+ export declare const details: import("./def.js").ElementFactory<Partial<DetailAttribs>, any>;
11
+ export interface DialogAttribs extends Attribs {
12
+ open: boolean;
13
+ }
14
+ export declare const dialog: import("./def.js").ElementFactory<Partial<DialogAttribs>, any>;
15
+ export declare const div: import("./def.js").ElementFactory<Partial<Attribs>, any>, figure: import("./def.js").ElementFactory<Partial<Attribs>, any>, figcaption: import("./def.js").ElementFactory<Partial<Attribs>, any>, para: import("./def.js").ElementFactory<Partial<Attribs>, any>, pre: import("./def.js").ElementFactory<Partial<Attribs>, any>, summary: import("./def.js").ElementFactory<Partial<Attribs>, any>;
7
16
  export declare const hr: import("./def.js").ElementFactory<Partial<Attribs>, never>;
8
17
  export interface IFrameAttribs extends Attribs, DimensionAttribs, ImportanceAttribs, LoadingAttribs, ReferrerAttribs {
9
18
  allow: StringAttrib;
@@ -23,4 +32,10 @@ export interface SlotAttribs extends Attribs {
23
32
  name: string;
24
33
  }
25
34
  export declare const slot: import("./def.js").ElementFactory<Partial<SlotAttribs>, any>;
35
+ export interface TemplateAttribs extends Attribs {
36
+ shadowrootmode: AttribVal<"open" | "closed">;
37
+ shadowrootclonable: BooleanAttrib;
38
+ shadowrootdelegatesfocus: BooleanAttrib;
39
+ }
40
+ export declare const template: import("./def.js").ElementFactory<Partial<TemplateAttribs>, any>;
26
41
  //# sourceMappingURL=blocks.d.ts.map
package/blocks.js CHANGED
@@ -1,18 +1,23 @@
1
1
  import { defElement, defElements } from "./def.js";
2
2
  const blockquote = defElement("blockquote");
3
- const [div, figure, figcaption, para, pre, template] = defElements([
3
+ const details = defElement("details");
4
+ const dialog = defElement("dialog");
5
+ const [div, figure, figcaption, para, pre, summary] = defElements([
4
6
  "div",
5
7
  "figure",
6
8
  "figcaption",
7
9
  "p",
8
10
  "pre",
9
- "template"
11
+ "summary"
10
12
  ]);
11
13
  const hr = defElement("hr");
12
14
  const iframe = defElement("iframe");
13
15
  const slot = defElement("slot");
16
+ const template = defElement("template");
14
17
  export {
15
18
  blockquote,
19
+ details,
20
+ dialog,
16
21
  div,
17
22
  figcaption,
18
23
  figure,
@@ -21,5 +26,6 @@ export {
21
26
  para,
22
27
  pre,
23
28
  slot,
29
+ summary,
24
30
  template
25
31
  };
package/forms.d.ts CHANGED
@@ -114,4 +114,10 @@ export interface ProgressAttribs extends Attribs {
114
114
  value: NumericAttrib;
115
115
  }
116
116
  export declare const progress: import("./def.js").ElementFactory<Partial<ProgressAttribs>, any>;
117
+ export interface OutputAttribs extends Attribs {
118
+ for: MultiStringAttrib;
119
+ form: StringAttrib;
120
+ name: StringAttrib;
121
+ }
122
+ export declare const output: import("./def.js").ElementFactory<Partial<OutputAttribs>, any>;
117
123
  //# sourceMappingURL=forms.d.ts.map
package/forms.js CHANGED
@@ -54,6 +54,7 @@ const select = defElement("select");
54
54
  const label = defElement("label");
55
55
  const meter = defElement("meter");
56
56
  const progress = defElement("progress");
57
+ const output = defElement("output");
57
58
  export {
58
59
  button,
59
60
  checkbox,
@@ -73,6 +74,7 @@ export {
73
74
  meter,
74
75
  optGroup,
75
76
  option,
77
+ output,
76
78
  progress,
77
79
  radio,
78
80
  select,
package/inline.d.ts CHANGED
@@ -22,7 +22,7 @@ export declare const quote: import("./def.js").ElementFactory<{
22
22
  export declare const time: import("./def.js").ElementFactory<{
23
23
  datetime: StringAttrib;
24
24
  } & Partial<Attribs>, any>;
25
- export declare const cite: import("./def.js").ElementFactory<Partial<Attribs>, any>, code: import("./def.js").ElementFactory<Partial<Attribs>, any>, em: import("./def.js").ElementFactory<Partial<Attribs>, any>, i: import("./def.js").ElementFactory<Partial<Attribs>, any>, kbd: import("./def.js").ElementFactory<Partial<Attribs>, any>, mark: import("./def.js").ElementFactory<Partial<Attribs>, any>, small: import("./def.js").ElementFactory<Partial<Attribs>, any>, span: import("./def.js").ElementFactory<Partial<Attribs>, any>, strong: import("./def.js").ElementFactory<Partial<Attribs>, any>, sub: import("./def.js").ElementFactory<Partial<Attribs>, any>, sup: import("./def.js").ElementFactory<Partial<Attribs>, any>;
25
+ export declare const cite: import("./def.js").ElementFactory<Partial<Attribs>, any>, code: import("./def.js").ElementFactory<Partial<Attribs>, any>, dfn: import("./def.js").ElementFactory<Partial<Attribs>, any>, em: import("./def.js").ElementFactory<Partial<Attribs>, any>, i: import("./def.js").ElementFactory<Partial<Attribs>, any>, kbd: import("./def.js").ElementFactory<Partial<Attribs>, any>, mark: import("./def.js").ElementFactory<Partial<Attribs>, any>, small: import("./def.js").ElementFactory<Partial<Attribs>, any>, span: import("./def.js").ElementFactory<Partial<Attribs>, any>, strikethrough: import("./def.js").ElementFactory<Partial<Attribs>, any>, strong: import("./def.js").ElementFactory<Partial<Attribs>, any>, sub: import("./def.js").ElementFactory<Partial<Attribs>, any>, sup: import("./def.js").ElementFactory<Partial<Attribs>, any>, variable: import("./def.js").ElementFactory<Partial<Attribs>, any>, wbr: import("./def.js").ElementFactory<Partial<Attribs>, any>;
26
26
  export interface EditAttribs extends Attribs {
27
27
  cite: StringAttrib;
28
28
  datetime: StringAttrib;
package/inline.js CHANGED
@@ -9,18 +9,38 @@ const quote = defElement("q");
9
9
  const time = defElement(
10
10
  "time"
11
11
  );
12
- const [cite, code, em, i, kbd, mark, small, span, strong, sub, sup] = defElements([
12
+ const [
13
+ cite,
14
+ code,
15
+ dfn,
16
+ em,
17
+ i,
18
+ kbd,
19
+ mark,
20
+ small,
21
+ span,
22
+ strikethrough,
23
+ strong,
24
+ sub,
25
+ sup,
26
+ variable,
27
+ wbr
28
+ ] = defElements([
13
29
  "cite",
14
30
  "code",
31
+ "dfn",
15
32
  "em",
16
33
  "i",
17
34
  "kbd",
18
35
  "mark",
19
36
  "small",
20
37
  "span",
38
+ "s",
21
39
  "strong",
22
40
  "sub",
23
- "sup"
41
+ "sup",
42
+ "var",
43
+ "wbr"
24
44
  ]);
25
45
  const [del, ins] = defElements(["del", "ins"]);
26
46
  export {
@@ -31,6 +51,7 @@ export {
31
51
  code,
32
52
  data,
33
53
  del,
54
+ dfn,
34
55
  em,
35
56
  i,
36
57
  ins,
@@ -39,8 +60,11 @@ export {
39
60
  quote,
40
61
  small,
41
62
  span,
63
+ strikethrough,
42
64
  strong,
43
65
  sub,
44
66
  sup,
45
- time
67
+ time,
68
+ variable,
69
+ wbr
46
70
  };
package/lists.d.ts CHANGED
@@ -9,5 +9,5 @@ export interface ListItemAttribs extends Attribs {
9
9
  }
10
10
  export declare const ol: import("./def.js").ElementFactory<Partial<OrderedListAttribs>, any>;
11
11
  export declare const li: import("./def.js").ElementFactory<Partial<ListItemAttribs>, any>;
12
- export declare const ul: import("./def.js").ElementFactory<Partial<Attribs>, any>, dl: import("./def.js").ElementFactory<Partial<Attribs>, any>, dt: import("./def.js").ElementFactory<Partial<Attribs>, any>, dd: import("./def.js").ElementFactory<Partial<Attribs>, any>, datalist: import("./def.js").ElementFactory<Partial<Attribs>, any>;
12
+ export declare const ul: import("./def.js").ElementFactory<Partial<Attribs>, any>, dl: import("./def.js").ElementFactory<Partial<Attribs>, any>, dt: import("./def.js").ElementFactory<Partial<Attribs>, any>, dd: import("./def.js").ElementFactory<Partial<Attribs>, any>, datalist: import("./def.js").ElementFactory<Partial<Attribs>, any>, menu: import("./def.js").ElementFactory<Partial<Attribs>, any>;
13
13
  //# sourceMappingURL=lists.d.ts.map
package/lists.js CHANGED
@@ -1,12 +1,13 @@
1
1
  import { defElement, defElements } from "./def.js";
2
2
  const ol = defElement("ol");
3
3
  const li = defElement("li");
4
- const [ul, dl, dt, dd, datalist] = defElements([
4
+ const [ul, dl, dt, dd, datalist, menu] = defElements([
5
5
  "ul",
6
6
  "dl",
7
7
  "dt",
8
8
  "dd",
9
- "datalist"
9
+ "datalist",
10
+ "menu"
10
11
  ]);
11
12
  export {
12
13
  datalist,
@@ -14,6 +15,7 @@ export {
14
15
  dl,
15
16
  dt,
16
17
  li,
18
+ menu,
17
19
  ol,
18
20
  ul
19
21
  };
package/media.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Attribs, AttribVal, BooleanAttrib, CORSAttribs, DimensionAttribs, ImportanceAttribs, LoadingAttribs, MultiStringAttrib, ReferrerAttribs, StringAttrib } from "./api.js";
1
+ import type { Attribs, AttribVal, BooleanAttrib, CORSAttribs, DimensionAttribs, ImportanceAttribs, LoadingAttribs, MultiStringAttrib, NumericAttrib, ReferrerAttribs, StringAttrib } from "./api.js";
2
2
  export interface CanvasAttribs extends Attribs, DimensionAttribs {
3
3
  }
4
4
  export declare const canvas: import("./def.js").ElementFactory<Partial<CanvasAttribs>, any>;
@@ -47,4 +47,13 @@ export interface TrackAttribs extends Attribs {
47
47
  srclang: StringAttrib;
48
48
  }
49
49
  export declare const track: import("./def.js").ElementFactory<Partial<TrackAttribs>, any>;
50
+ export interface ObjectAttribs extends Omit<Attribs, "data"> {
51
+ data: StringAttrib;
52
+ type: StringAttrib;
53
+ form: StringAttrib;
54
+ name: StringAttrib;
55
+ height: NumericAttrib;
56
+ width: NumericAttrib;
57
+ }
58
+ export declare const object: import("./def.js").ElementFactory<Partial<ObjectAttribs>, any>;
50
59
  //# sourceMappingURL=media.d.ts.map
package/media.js CHANGED
@@ -6,10 +6,12 @@ const source = defElement("source");
6
6
  const audio = defElement("audio");
7
7
  const video = defElement("video");
8
8
  const track = defElement("track");
9
+ const object = defElement("object");
9
10
  export {
10
11
  audio,
11
12
  canvas,
12
13
  img,
14
+ object,
13
15
  picture,
14
16
  source,
15
17
  track,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-html",
3
- "version": "2.6.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": "70f493d9ccc97c5df5dda7e808e96cd1691097fc\n"
114
+ "gitHead": "85719a1b26246ca7cc088c119fab269f8e2fd4a7\n"
115
115
  }
package/sections.d.ts CHANGED
@@ -7,7 +7,7 @@ export type BodyEventAttribs = EventAttribs<"onafterprint" | "onbeforeprint" | "
7
7
  export interface BodyAttribs extends Attribs, BodyEventAttribs {
8
8
  }
9
9
  export declare const body: import("./def.js").ElementFactory<Partial<BodyAttribs>, any>;
10
- export declare const address: import("./def.js").ElementFactory<Partial<Attribs>, any>, article: import("./def.js").ElementFactory<Partial<Attribs>, any>, aside: import("./def.js").ElementFactory<Partial<Attribs>, any>, footer: import("./def.js").ElementFactory<Partial<Attribs>, any>, header: import("./def.js").ElementFactory<Partial<Attribs>, any>, hgroup: import("./def.js").ElementFactory<Partial<Attribs>, any>, main: import("./def.js").ElementFactory<Partial<Attribs>, any>, nav: import("./def.js").ElementFactory<Partial<Attribs>, any>, noscript: import("./def.js").ElementFactory<Partial<Attribs>, any>, section: import("./def.js").ElementFactory<Partial<Attribs>, any>;
10
+ export declare const address: import("./def.js").ElementFactory<Partial<Attribs>, any>, article: import("./def.js").ElementFactory<Partial<Attribs>, any>, aside: import("./def.js").ElementFactory<Partial<Attribs>, any>, footer: import("./def.js").ElementFactory<Partial<Attribs>, any>, header: import("./def.js").ElementFactory<Partial<Attribs>, any>, hgroup: import("./def.js").ElementFactory<Partial<Attribs>, any>, main: import("./def.js").ElementFactory<Partial<Attribs>, any>, nav: import("./def.js").ElementFactory<Partial<Attribs>, any>, noscript: import("./def.js").ElementFactory<Partial<Attribs>, any>, search: import("./def.js").ElementFactory<Partial<Attribs>, any>, section: import("./def.js").ElementFactory<Partial<Attribs>, any>;
11
11
  export declare const h1: import("./def.js").ElementFactory<Partial<Attribs>, any>, h2: import("./def.js").ElementFactory<Partial<Attribs>, any>, h3: import("./def.js").ElementFactory<Partial<Attribs>, any>, h4: import("./def.js").ElementFactory<Partial<Attribs>, any>, h5: import("./def.js").ElementFactory<Partial<Attribs>, any>, h6: import("./def.js").ElementFactory<Partial<Attribs>, any>;
12
12
  export declare const comment: (...body: string[]) => string[];
13
13
  //# sourceMappingURL=sections.d.ts.map
package/sections.js CHANGED
@@ -11,6 +11,7 @@ const [
11
11
  main,
12
12
  nav,
13
13
  noscript,
14
+ search,
14
15
  section
15
16
  ] = defElements([
16
17
  "address",
@@ -22,6 +23,7 @@ const [
22
23
  "main",
23
24
  "nav",
24
25
  "noscript",
26
+ "search",
25
27
  "section"
26
28
  ]);
27
29
  const [h1, h2, h3, h4, h5, h6] = [1, 2, 3, 4, 5, 6].map(
@@ -51,5 +53,6 @@ export {
51
53
  main,
52
54
  nav,
53
55
  noscript,
56
+ search,
54
57
  section
55
58
  };
package/table.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Attribs, AttribVal, MultiStringAttrib, NumericAttrib } from "./api.js";
2
- export declare const table: import("./def.js").ElementFactory<Partial<Attribs>, any>, tbody: import("./def.js").ElementFactory<Partial<Attribs>, any>, tfoot: import("./def.js").ElementFactory<Partial<Attribs>, any>, thead: import("./def.js").ElementFactory<Partial<Attribs>, any>, tr: import("./def.js").ElementFactory<Partial<Attribs>, any>, caption: import("./def.js").ElementFactory<Partial<Attribs>, any>;
2
+ export declare const caption: import("./def.js").ElementFactory<Partial<Attribs>, any>, table: import("./def.js").ElementFactory<Partial<Attribs>, any>, tbody: import("./def.js").ElementFactory<Partial<Attribs>, any>, tfoot: import("./def.js").ElementFactory<Partial<Attribs>, any>, thead: import("./def.js").ElementFactory<Partial<Attribs>, any>, tr: import("./def.js").ElementFactory<Partial<Attribs>, any>;
3
3
  export interface TableCellAttribs extends Attribs {
4
4
  colspan: NumericAttrib;
5
5
  headers: MultiStringAttrib;
package/table.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defElement, defElements } from "./def.js";
2
- const [table, tbody, tfoot, thead, tr, caption] = defElements([
2
+ const [caption, table, tbody, tfoot, thead, tr] = defElements([
3
+ "caption",
3
4
  "table",
4
5
  "tbody",
5
6
  "tfoot",
6
7
  "thead",
7
- "tr",
8
- "caption"
8
+ "tr"
9
9
  ]);
10
10
  const td = defElement("td");
11
11
  const th = defElement("th");