@thi.ng/hiccup-html 2.4.15 → 2.5.0

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-03-13T14:04:31Z
3
+ - **Last updated**: 2024-03-27T09:53:45Z
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,12 @@ 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.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.5.0) (2024-03-27)
13
+
14
+ #### 🚀 Features
15
+
16
+ - add inputReset() & inputSubmit() ([2b9cde0](https://github.com/thi-ng/umbrella/commit/2b9cde0))
17
+
12
18
  ## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.4.0) (2024-01-23)
13
19
 
14
20
  #### 🚀 Features
package/README.md CHANGED
@@ -196,7 +196,7 @@ For Node.js REPL:
196
196
  const hiccupHtml = await import("@thi.ng/hiccup-html");
197
197
  ```
198
198
 
199
- Package sizes (brotli'd, pre-treeshake): ESM: 1.49 KB
199
+ Package sizes (brotli'd, pre-treeshake): ESM: 1.51 KB
200
200
 
201
201
  ## Dependencies
202
202
 
@@ -229,6 +229,7 @@ directory are using this package:
229
229
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-key-sequences.jpg" width="240"/> | rstream & transducer-based FSM for converting key event sequences into high-level commands | [Demo](https://demo.thi.ng/umbrella/rdom-key-sequences/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-key-sequences) |
230
230
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-lissajous.png" width="240"/> | rdom & hiccup-canvas interop test | [Demo](https://demo.thi.ng/umbrella/rdom-lissajous/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-lissajous) |
231
231
  | | Full umbrella repo doc string search w/ paginated results | [Demo](https://demo.thi.ng/umbrella/rdom-search-docs/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-search-docs) |
232
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rdom-web-components.png" width="240"/> | Defining & using basic Web Components (with shadow DOM) via @thi.ng/rdom & @thi.ng/meta-css | [Demo](https://demo.thi.ng/umbrella/rdom-web-components/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rdom-web-components) |
232
233
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/related-images.jpg" width="240"/> | Responsive image gallery with tag-based Jaccard similarity ranking | [Demo](https://demo.thi.ng/umbrella/related-images/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/related-images) |
233
234
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/render-audio.png" width="240"/> | Generative audio synth offline renderer and WAV file export | [Demo](https://demo.thi.ng/umbrella/render-audio/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/render-audio) |
234
235
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/rstream-system-bus.png" width="240"/> | Declarative component-based system with central rstream-based pubsub event bus | [Demo](https://demo.thi.ng/umbrella/rstream-system-bus/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/rstream-system-bus) |
package/forms.d.ts CHANGED
@@ -57,6 +57,13 @@ export interface InputNumericAttribs extends InputAttribs {
57
57
  step: NumericAttrib;
58
58
  value: NumericAttrib;
59
59
  }
60
+ export interface InputSubmitAttribs extends InputAttribs {
61
+ formaction: StringAttrib;
62
+ formenctype: StringAttrib;
63
+ formmethod: StringAttrib;
64
+ formnovalidate: BooleanAttrib;
65
+ formtarget: StringAttrib;
66
+ }
60
67
  export declare const button: import("./def.js").ElementFactory<Partial<InputAttribs>, any>;
61
68
  export declare const checkbox: import("./def.js").ElementFactory<Partial<InputCheckboxAttribs>, never>;
62
69
  export declare const radio: import("./def.js").ElementFactory<Partial<InputRadioAttribs>, never>;
@@ -65,7 +72,9 @@ export declare const inputFile: import("./def.js").ElementFactory<Partial<InputF
65
72
  export declare const inputPass: import("./def.js").ElementFactory<Partial<InputTextAttribs>, never>;
66
73
  export declare const inputNumber: import("./def.js").ElementFactory<Partial<InputNumericAttribs>, never>;
67
74
  export declare const inputRange: import("./def.js").ElementFactory<Partial<InputNumericAttribs>, never>;
75
+ export declare const inputReset: import("./def.js").ElementFactory<Partial<InputAttribs>, never>;
68
76
  export declare const inputSearch: import("./def.js").ElementFactory<Partial<InputTextAttribs>, never>;
77
+ export declare const inputSubmit: import("./def.js").ElementFactory<Partial<InputSubmitAttribs>, never>;
69
78
  export declare const inputText: import("./def.js").ElementFactory<Partial<InputTextAttribs>, never>;
70
79
  export declare const textArea: import("./def.js").ElementFactory<Partial<TextAreaAttribs>, never>;
71
80
  export interface OptionAttribs {
package/forms.js CHANGED
@@ -29,12 +29,21 @@ const inputRange = defElement(
29
29
  "input",
30
30
  { type: "range" }
31
31
  );
32
+ const inputReset = defElement("input", {
33
+ type: "reset"
34
+ });
32
35
  const inputSearch = defElement(
33
36
  "input",
34
37
  {
35
38
  type: "search"
36
39
  }
37
40
  );
41
+ const inputSubmit = defElement(
42
+ "input",
43
+ {
44
+ type: "submit"
45
+ }
46
+ );
38
47
  const inputText = defElement("input", {
39
48
  type: "text"
40
49
  });
@@ -55,7 +64,9 @@ export {
55
64
  inputNumber,
56
65
  inputPass,
57
66
  inputRange,
67
+ inputReset,
58
68
  inputSearch,
69
+ inputSubmit,
59
70
  inputText,
60
71
  label,
61
72
  legend,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-html",
3
- "version": "2.4.15",
3
+ "version": "2.5.0",
4
4
  "description": "100+ type-checked HTML5 element functions for @thi.ng/hiccup related infrastructure",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,14 +36,14 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.9.30"
39
+ "@thi.ng/api": "^8.9.31"
40
40
  },
41
41
  "devDependencies": {
42
- "@microsoft/api-extractor": "^7.42.3",
43
- "esbuild": "^0.20.1",
42
+ "@microsoft/api-extractor": "^7.43.0",
43
+ "esbuild": "^0.20.2",
44
44
  "rimraf": "^5.0.5",
45
45
  "typedoc": "^0.25.12",
46
- "typescript": "^5.4.2"
46
+ "typescript": "^5.4.3"
47
47
  },
48
48
  "keywords": [
49
49
  "browser",
@@ -111,5 +111,5 @@
111
111
  ],
112
112
  "year": 2020
113
113
  },
114
- "gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
114
+ "gitHead": "feb3b24654f2c931cd3c3308c1c0c807ee14d0e4\n"
115
115
  }