@motech-development/breeze-ui 2.1.9 → 2.3.0

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/lib/index.cjs.js CHANGED
@@ -1823,7 +1823,7 @@ function formNormaliser(values) {
1823
1823
  ...values
1824
1824
  });
1825
1825
  }
1826
- const Form = ({ children, cancel = null, initialValues, loading = false, onPreSubmit = null, onSubmit, submitLabel, validationSchema })=>{
1826
+ function Form({ children, cancel = null, initialValues, loading = false, onPreSubmit, onSubmit, submitLabel, validationSchema }) {
1827
1827
  const doSubmit = async (values)=>{
1828
1828
  const payload = onPreSubmit ? await Promise.resolve(onPreSubmit(values)) : values;
1829
1829
  await Promise.resolve(onSubmit(payload));
@@ -1870,7 +1870,7 @@ const Form = ({ children, cancel = null, initialValues, loading = false, onPreSu
1870
1870
  })
1871
1871
  })
1872
1872
  });
1873
- };
1873
+ }
1874
1874
 
1875
1875
  const Link = (props)=>// eslint-disable-next-line react/jsx-props-no-spreading
1876
1876
  /*#__PURE__*/ jsxRuntime.jsx(BaseLink, {
@@ -2043,7 +2043,9 @@ const NotificationButton = styled__default.default(Button)`
2043
2043
  }
2044
2044
  `;
2045
2045
  const NotificationContainer = styled__default.default.div`
2046
- box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 5px 8px 0 rgba(0, 0, 0, 0.14),
2046
+ box-shadow:
2047
+ 0 3px 5px -1px rgba(0, 0, 0, 0.2),
2048
+ 0 5px 8px 0 rgba(0, 0, 0, 0.14),
2047
2049
  0 1px 14px 0 rgba(0, 0, 0, 0.12);
2048
2050
  `;
2049
2051
  const NotificationWrapper = styled__default.default.div`