@mackin.com/styleguide 7.0.4 → 7.0.5

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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1610,14 +1610,14 @@ const ErrorModal = (props) => {
1610
1610
  /** @jsx jsx */
1611
1611
  /** Use this instead of <form> directly. If we need to fight Chrome's autofill, we can do so at a global level. */
1612
1612
  const Form = React__namespace.forwardRef((props, ref) => {
1613
- const { inline, children, onSubmit } = props, rest = __rest(props, ["inline", "children", "onSubmit"]);
1613
+ const { inline, children, onSubmit, className } = props, rest = __rest(props, ["inline", "children", "onSubmit", "className"]);
1614
1614
  const theme = useThemeSafely();
1615
- return (react.jsx("form", Object.assign({}, rest, { ref: ref, className: "form", css: {
1615
+ return (react.jsx("form", Object.assign({}, rest, { ref: ref, css: {
1616
1616
  display: 'flex',
1617
1617
  flexDirection: props.inline ? 'row' : 'column',
1618
1618
  alignItems: props.inline ? 'flex-end' : 'normal',
1619
1619
  gap: theme.controls.gap
1620
- }, onSubmit: e => {
1620
+ }, className: mergeClassNames('form', props.className), onSubmit: e => {
1621
1621
  e.preventDefault();
1622
1622
  e.stopPropagation();
1623
1623
  if (onSubmit) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mackin.com/styleguide",
3
- "version": "7.0.4",
3
+ "version": "7.0.5",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",