@nswds/app 1.60.0 → 1.61.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/dist/globals.css CHANGED
@@ -3573,6 +3573,9 @@
3573
3573
  .opacity-50 {
3574
3574
  opacity: 50%;
3575
3575
  }
3576
+ .opacity-70 {
3577
+ opacity: 70%;
3578
+ }
3576
3579
  .opacity-80 {
3577
3580
  opacity: 80%;
3578
3581
  }
package/dist/index.cjs CHANGED
@@ -11980,7 +11980,7 @@ function FormatToggle({ format, setFormat }) {
11980
11980
 
11981
11981
  // package.json
11982
11982
  var package_default = {
11983
- version: "1.59.0"};
11983
+ version: "1.61.0"};
11984
11984
  function Heading({
11985
11985
  className,
11986
11986
  trim = "normal",
@@ -23807,6 +23807,23 @@ function StepNavigation({
23807
23807
  /* @__PURE__ */ jsxRuntime.jsx(StepIndicator, { className: "mt-2 lg:mt-4", array: section.links })
23808
23808
  ] }, section.title)) }) });
23809
23809
  }
23810
+ function SubmitButton({
23811
+ submitText = "Submit",
23812
+ activeSubmitText = "Submitting...",
23813
+ disabled,
23814
+ isSubmitting = false,
23815
+ icon,
23816
+ ...props
23817
+ }) {
23818
+ const IconComponent = icon ? Icons[icon] : null;
23819
+ return /* @__PURE__ */ jsxRuntime.jsx(Button2, { type: "submit", disabled, ...props, children: !isSubmitting ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
23820
+ IconComponent && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "mr-2" }),
23821
+ submitText
23822
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
23823
+ /* @__PURE__ */ jsxRuntime.jsx(Spinner, { "aria-label": activeSubmitText, size: "sm", className: "mr-2" }),
23824
+ activeSubmitText
23825
+ ] }) });
23826
+ }
23810
23827
  function SwitchGroup({ className, ...props }) {
23811
23828
  return /* @__PURE__ */ jsxRuntime.jsx(
23812
23829
  "div",
@@ -25078,6 +25095,7 @@ exports.Spinner = Spinner;
25078
25095
  exports.StepIndicator = StepIndicator;
25079
25096
  exports.StepNavigation = StepNavigation;
25080
25097
  exports.Strong = Strong;
25098
+ exports.SubmitButton = SubmitButton;
25081
25099
  exports.Switch = Switch2;
25082
25100
  exports.SwitchField = SwitchField;
25083
25101
  exports.SwitchGroup = SwitchGroup;