@rachelallyson/hero-hook-form 2.15.0 → 2.15.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
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [2.15.1] - 2026-02-09
6
+
7
+ ### Fixed
8
+
9
+ - **SelectField / ServerActionForm select trigger** – HeroUI Select uses each item's `textValue` for the trigger (the text shown when an option is selected). `SelectField` and ServerActionForm's select case now pass `textValue={opt.label ?? String(opt.value)}` (or `option.label ?? String(option.value)`) so the trigger displays the label (e.g. "My Card") instead of the value (e.g. id). The form still stores the value; only the displayed text is corrected.
10
+
5
11
  ## [2.15.0] - 2026-02-02
6
12
 
7
13
  ### Added
package/dist/index.js CHANGED
@@ -2032,7 +2032,7 @@ function SelectField(props) {
2032
2032
  {
2033
2033
  key: String(opt.value),
2034
2034
  isDisabled: opt.disabled,
2035
- textValue: String(opt.value)
2035
+ textValue: opt.label ?? String(opt.value)
2036
2036
  },
2037
2037
  opt.label
2038
2038
  ))
@@ -3155,7 +3155,14 @@ function ServerActionField({
3155
3155
  setValue(selectedValue || "");
3156
3156
  }
3157
3157
  },
3158
- options.map((option) => /* @__PURE__ */ React21.createElement(SelectItem, { key: String(option.value) }, option.label))
3158
+ options.map((option) => /* @__PURE__ */ React21.createElement(
3159
+ SelectItem,
3160
+ {
3161
+ key: String(option.value),
3162
+ textValue: option.label ?? String(option.value)
3163
+ },
3164
+ option.label
3165
+ ))
3159
3166
  );
3160
3167
  }
3161
3168
  case "radio": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rachelallyson/hero-hook-form",
3
- "version": "2.15.0",
3
+ "version": "2.15.1",
4
4
  "description": "Typed form helpers that combine React Hook Form and HeroUI components.",
5
5
  "author": "Rachel Higley",
6
6
  "homepage": "https://rachelallyson.github.io/hero-hook-form/",