@thi.ng/hiccup-html 2.7.51 → 2.8.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/README.md +2 -2
- package/forms.d.ts +5 -1
- package/forms.js +10 -12
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 215 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -298,7 +298,7 @@ Browser ESM import:
|
|
|
298
298
|
|
|
299
299
|
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
300
300
|
|
|
301
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 1.
|
|
301
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 1.64 KB
|
|
302
302
|
|
|
303
303
|
## Dependencies
|
|
304
304
|
|
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.
|
|
3
|
+
"version": "2.8.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",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.12.
|
|
43
|
+
"@thi.ng/api": "^8.12.20"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"esbuild": "^0.28.0",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
],
|
|
115
115
|
"year": 2020
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "92be63f24030506f09d6d156804da2798c381dc4"
|
|
118
118
|
}
|