@thi.ng/rdom-forms 1.1.5 → 1.1.7

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 (2) hide show
  1. package/compile.js +3 -2
  2. package/package.json +5 -5
package/compile.js CHANGED
@@ -9,6 +9,7 @@ import {
9
9
  button,
10
10
  checkbox,
11
11
  fieldset,
12
+ hidden as $hidden,
12
13
  inputColor,
13
14
  inputFile,
14
15
  inputNumber,
@@ -208,8 +209,8 @@ const compileForm = defmulti(
208
209
  },
209
210
  custom: (val) => val.body,
210
211
  hidden: ($val) => {
211
- const { id, name, value } = $val;
212
- return inputText({ type: "hidden", id: id ?? name, name, value });
212
+ const { name, id = name, value } = $val;
213
+ return $hidden({ id, name, value });
213
214
  },
214
215
  toggle: ($val, opts) => {
215
216
  const val = $val;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rdom-forms",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Data-driven declarative & extensible HTML form generation",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -43,9 +43,9 @@
43
43
  "@thi.ng/api": "^8.12.19",
44
44
  "@thi.ng/checks": "^3.8.9",
45
45
  "@thi.ng/defmulti": "^3.0.96",
46
- "@thi.ng/hiccup-html": "^2.7.51",
47
- "@thi.ng/rdom": "^1.7.86",
48
- "@thi.ng/rstream": "^9.5.0"
46
+ "@thi.ng/hiccup-html": "^2.8.0",
47
+ "@thi.ng/rdom": "^1.7.88",
48
+ "@thi.ng/rstream": "^9.5.2"
49
49
  },
50
50
  "devDependencies": {
51
51
  "esbuild": "^0.28.0",
@@ -99,5 +99,5 @@
99
99
  "status": "alpha",
100
100
  "year": 2023
101
101
  },
102
- "gitHead": "a780d4a5f6f5fc595c9d28527686f63534927d32"
102
+ "gitHead": "2085e9600e121134429c85f6d0ead46e3ce920ca"
103
103
  }