@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/README.md CHANGED
@@ -36,11 +36,9 @@ Add Ionicons to the `<head>` of `index.html`:
36
36
  ```html
37
37
  <script
38
38
  type="module"
39
- src="https://cdn.jsdelivr.net/npm/ionicons@latest/dist/ionicons/ionicons.esm.js"
40
- ></script>
41
- <script
42
- nomodule
43
- src="https://cdn.jsdelivr.net/npm/ionicons@latest/dist/ionicons/ionicons.js"
39
+ src="https://cdn.jsdelivr.net/npm/ionicons@8.1.0/dist/ionicons/ionicons.esm.js"
40
+ integrity="sha384-QeK0N4dchhCMcoF1OkHAcgwR00gJv1uQr15TCJ5CXEcLF0wm8HC4QbtQzJMCTO+c"
41
+ crossorigin="anonymous"
44
42
  ></script>
45
43
  ```
46
44
 
package/index.js CHANGED
@@ -3164,6 +3164,7 @@ function GoabPublicFormTaskList({
3164
3164
  return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form-task-list", { ..._props, children });
3165
3165
  }
3166
3166
  function GoabFormItem({
3167
+ label,
3167
3168
  error,
3168
3169
  helpText,
3169
3170
  publicFormSummaryOrder,
@@ -3175,11 +3176,13 @@ function GoabFormItem({
3175
3176
  return /* @__PURE__ */ jsxRuntime.jsxs(
3176
3177
  "goa-form-item",
3177
3178
  {
3179
+ label: typeof label === "string" ? label : void 0,
3178
3180
  error: typeof error === "string" ? error : void 0,
3179
3181
  helptext: typeof helpText === "string" ? helpText : void 0,
3180
3182
  "public-form-summary-order": publicFormSummaryOrder,
3181
3183
  ..._props,
3182
3184
  children: [
3185
+ label && typeof label !== "string" && /* @__PURE__ */ jsxRuntime.jsx("span", { slot: "label", children: label }),
3183
3186
  error && typeof error !== "string" && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "error", children: error }),
3184
3187
  helpText && typeof helpText !== "string" && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "helptext", children: helpText }),
3185
3188
  children