@abgov/react-components 8.0.0-dev.1 → 8.0.0-dev.3

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/index.mjs CHANGED
@@ -3162,6 +3162,7 @@ function GoabPublicFormTaskList({
3162
3162
  return /* @__PURE__ */ jsx("goa-public-form-task-list", { ..._props, children });
3163
3163
  }
3164
3164
  function GoabFormItem({
3165
+ label,
3165
3166
  error,
3166
3167
  helpText,
3167
3168
  publicFormSummaryOrder,
@@ -3173,11 +3174,13 @@ function GoabFormItem({
3173
3174
  return /* @__PURE__ */ jsxs(
3174
3175
  "goa-form-item",
3175
3176
  {
3177
+ label: typeof label === "string" ? label : void 0,
3176
3178
  error: typeof error === "string" ? error : void 0,
3177
3179
  helptext: typeof helpText === "string" ? helpText : void 0,
3178
3180
  "public-form-summary-order": publicFormSummaryOrder,
3179
3181
  ..._props,
3180
3182
  children: [
3183
+ label && typeof label !== "string" && /* @__PURE__ */ jsx("span", { slot: "label", children: label }),
3181
3184
  error && typeof error !== "string" && /* @__PURE__ */ jsx("div", { slot: "error", children: error }),
3182
3185
  helpText && typeof helpText !== "string" && /* @__PURE__ */ jsx("div", { slot: "helptext", children: helpText }),
3183
3186
  children