@thi.ng/hiccup-html 2.7.51 → 2.8.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.
Files changed (3) hide show
  1. package/forms.d.ts +5 -1
  2. package/forms.js +10 -12
  3. package/package.json +2 -2
package/forms.d.ts CHANGED
@@ -64,13 +64,17 @@ export interface InputSubmitAttribs extends InputAttribs {
64
64
  formnovalidate: BooleanAttrib;
65
65
  formtarget: StringAttrib;
66
66
  }
67
+ export interface InputHiddenAttribs extends Pick<InputAttribs, "data" | "form" | "id" | "name" | "value"> {
68
+ type: "hidden";
69
+ }
70
+ export declare const hidden: import("./def.js").ElementFactory<Partial<InputHiddenAttribs>, never>;
67
71
  export declare const button: import("./def.js").ElementFactory<Partial<InputAttribs>, any>;
68
72
  export declare const checkbox: import("./def.js").ElementFactory<Partial<InputCheckboxAttribs>, never>;
69
73
  export declare const radio: import("./def.js").ElementFactory<Partial<InputRadioAttribs>, never>;
70
74
  export declare const inputColor: import("./def.js").ElementFactory<Partial<InputAttribs>, never>;
71
75
  export declare const inputFile: import("./def.js").ElementFactory<Partial<InputFileAttribs>, never>;
72
- export declare const inputPass: import("./def.js").ElementFactory<Partial<InputTextAttribs>, never>;
73
76
  export declare const inputNumber: import("./def.js").ElementFactory<Partial<InputNumericAttribs>, never>;
77
+ export declare const inputPass: import("./def.js").ElementFactory<Partial<InputTextAttribs>, never>;
74
78
  export declare const inputRange: import("./def.js").ElementFactory<Partial<InputNumericAttribs>, never>;
75
79
  export declare const inputReset: import("./def.js").ElementFactory<Partial<InputAttribs>, never>;
76
80
  export declare const inputSearch: import("./def.js").ElementFactory<Partial<InputTextAttribs>, never>;
package/forms.js CHANGED
@@ -2,12 +2,13 @@ import { defElement } from "./def.js";
2
2
  const form = defElement("form");
3
3
  const fieldset = defElement("fieldset");
4
4
  const legend = defElement("legend");
5
+ const hidden = defElement("input", {
6
+ type: "hidden"
7
+ });
5
8
  const button = defElement("button");
6
9
  const checkbox = defElement(
7
10
  "input",
8
- {
9
- type: "checkbox"
10
- }
11
+ { type: "checkbox" }
11
12
  );
12
13
  const radio = defElement("input", {
13
14
  type: "radio"
@@ -18,13 +19,13 @@ const inputColor = defElement("input", {
18
19
  const inputFile = defElement("input", {
19
20
  type: "file"
20
21
  });
21
- const inputPass = defElement("input", {
22
- type: "password"
23
- });
24
22
  const inputNumber = defElement(
25
23
  "input",
26
24
  { type: "number" }
27
25
  );
26
+ const inputPass = defElement("input", {
27
+ type: "password"
28
+ });
28
29
  const inputRange = defElement(
29
30
  "input",
30
31
  { type: "range" }
@@ -34,15 +35,11 @@ const inputReset = defElement("input", {
34
35
  });
35
36
  const inputSearch = defElement(
36
37
  "input",
37
- {
38
- type: "search"
39
- }
38
+ { type: "search" }
40
39
  );
41
40
  const inputSubmit = defElement(
42
41
  "input",
43
- {
44
- type: "submit"
45
- }
42
+ { type: "submit" }
46
43
  );
47
44
  const inputText = defElement("input", {
48
45
  type: "text"
@@ -60,6 +57,7 @@ export {
60
57
  checkbox,
61
58
  fieldset,
62
59
  form,
60
+ hidden,
63
61
  inputColor,
64
62
  inputFile,
65
63
  inputNumber,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-html",
3
- "version": "2.7.51",
3
+ "version": "2.8.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",
@@ -114,5 +114,5 @@
114
114
  ],
115
115
  "year": 2020
116
116
  },
117
- "gitHead": "a780d4a5f6f5fc595c9d28527686f63534927d32"
117
+ "gitHead": "2085e9600e121134429c85f6d0ead46e3ce920ca"
118
118
  }