@aurora-ds/components 1.1.5 → 1.1.6
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/cjs/index.js +7 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1256,6 +1256,12 @@ const SKELETON_VARIANTS = theme.createVariants((theme) => ({
|
|
|
1256
1256
|
const Skeleton = ({ ref, variant = 'rectangular', animation = 'shimmer', width, height, className, style, ...rest }) => (jsxRuntime.jsx("span", { ref: ref, className: SKELETON_VARIANTS({ variant, animation: animation === false ? 'none' : animation }, className), style: { width, height, ...style }, "aria-hidden": true, ...rest }));
|
|
1257
1257
|
Skeleton.displayName = 'Skeleton';
|
|
1258
1258
|
|
|
1259
|
+
const FORM_STYLES = theme.createStyles(() => ({
|
|
1260
|
+
root: {
|
|
1261
|
+
display: 'contents',
|
|
1262
|
+
},
|
|
1263
|
+
}));
|
|
1264
|
+
|
|
1259
1265
|
/**
|
|
1260
1266
|
* Thin wrapper around `<form>`. Prevents the default browser submit and
|
|
1261
1267
|
* delegates to the `onSubmit` callback.
|
|
@@ -1271,7 +1277,7 @@ const Form = ({ children, onSubmit, 'aria-label': ariaLabel, 'aria-labelledby':
|
|
|
1271
1277
|
event.preventDefault();
|
|
1272
1278
|
onSubmit(event);
|
|
1273
1279
|
};
|
|
1274
|
-
return (jsxRuntime.jsx("form", { onSubmit: handleSubmit, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, noValidate: true, children: children }));
|
|
1280
|
+
return (jsxRuntime.jsx("form", { onSubmit: handleSubmit, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, className: FORM_STYLES.root, noValidate: true, children: children }));
|
|
1275
1281
|
};
|
|
1276
1282
|
Form.displayName = 'Form';
|
|
1277
1283
|
|