@aurora-ds/components 1.1.4 → 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 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
 
@@ -2292,13 +2298,13 @@ const CARD_VARIANTS = theme.createVariants((theme) => ({
2292
2298
  defaultVariants: { variant: 'elevated' },
2293
2299
  }), { id: 'card' });
2294
2300
 
2295
- const CardHeader = ({ label, icon, actions }) => {
2296
- return (jsxRuntime.jsxs(Stack, { alignItems: 'center', justifyContent: 'space-between', gap: 'sm', py: 'sm', px: 'md', children: [jsxRuntime.jsxs(Stack, { alignItems: 'center', gap: 'sm', flex: 1, minWidth: '0', children: [icon !== undefined && (jsxRuntime.jsx(Icon, { icon: icon, size: 'md', strokeColor: 'textSecondary' })), jsxRuntime.jsx(Text, { variant: 'span', fontSize: 'sm', fontWeight: 'semibold', color: 'textPrimary', children: label })] }), actions !== undefined && (jsxRuntime.jsx(Stack, { alignItems: 'center', gap: 'xs', flexShrink: 0, children: actions }))] }));
2301
+ const CardHeader = ({ label, icon, actions, flexDirection = 'row', gap = 'sm', alignItems = 'center', justifyContent = 'space-between', py = 'sm', px = 'md', ...rest }) => {
2302
+ return (jsxRuntime.jsxs(Stack, { flexDirection: flexDirection, alignItems: alignItems, justifyContent: justifyContent, gap: gap, py: py, px: px, ...rest, children: [jsxRuntime.jsxs(Stack, { alignItems: 'center', gap: 'sm', flex: 1, minWidth: '0', children: [icon !== undefined && (jsxRuntime.jsx(Icon, { icon: icon, size: 'md', strokeColor: 'textSecondary' })), jsxRuntime.jsx(Text, { variant: 'span', fontSize: 'sm', fontWeight: 'semibold', color: 'textPrimary', children: label })] }), actions !== undefined && (jsxRuntime.jsx(Stack, { alignItems: 'center', gap: 'xs', flexShrink: 0, children: actions }))] }));
2297
2303
  };
2298
2304
  CardHeader.displayName = 'Card.Header';
2299
2305
 
2300
- const CardBody = ({ children, py = 'md', px = 'md', }) => {
2301
- return (jsxRuntime.jsx(Box, { py: py, px: px, children: children }));
2306
+ const CardBody = ({ children, py = 'md', px = 'md', flexDirection = 'column', gap = 'sm', ...rest }) => {
2307
+ return (jsxRuntime.jsx(Stack, { flexDirection: flexDirection, gap: gap, py: py, px: px, ...rest, children: children }));
2302
2308
  };
2303
2309
  CardBody.displayName = 'Card.Body';
2304
2310