@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/esm/index.js CHANGED
@@ -1236,6 +1236,12 @@ const SKELETON_VARIANTS = createVariants((theme) => ({
1236
1236
  const Skeleton = ({ ref, variant = 'rectangular', animation = 'shimmer', width, height, className, style, ...rest }) => (jsx("span", { ref: ref, className: SKELETON_VARIANTS({ variant, animation: animation === false ? 'none' : animation }, className), style: { width, height, ...style }, "aria-hidden": true, ...rest }));
1237
1237
  Skeleton.displayName = 'Skeleton';
1238
1238
 
1239
+ const FORM_STYLES = createStyles(() => ({
1240
+ root: {
1241
+ display: 'contents',
1242
+ },
1243
+ }));
1244
+
1239
1245
  /**
1240
1246
  * Thin wrapper around `<form>`. Prevents the default browser submit and
1241
1247
  * delegates to the `onSubmit` callback.
@@ -1251,7 +1257,7 @@ const Form = ({ children, onSubmit, 'aria-label': ariaLabel, 'aria-labelledby':
1251
1257
  event.preventDefault();
1252
1258
  onSubmit(event);
1253
1259
  };
1254
- return (jsx("form", { onSubmit: handleSubmit, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, noValidate: true, children: children }));
1260
+ return (jsx("form", { onSubmit: handleSubmit, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, className: FORM_STYLES.root, noValidate: true, children: children }));
1255
1261
  };
1256
1262
  Form.displayName = 'Form';
1257
1263
 
@@ -2272,13 +2278,13 @@ const CARD_VARIANTS = createVariants((theme) => ({
2272
2278
  defaultVariants: { variant: 'elevated' },
2273
2279
  }), { id: 'card' });
2274
2280
 
2275
- const CardHeader = ({ label, icon, actions }) => {
2276
- return (jsxs(Stack, { alignItems: 'center', justifyContent: 'space-between', gap: 'sm', py: 'sm', px: 'md', children: [jsxs(Stack, { alignItems: 'center', gap: 'sm', flex: 1, minWidth: '0', children: [icon !== undefined && (jsx(Icon, { icon: icon, size: 'md', strokeColor: 'textSecondary' })), jsx(Text, { variant: 'span', fontSize: 'sm', fontWeight: 'semibold', color: 'textPrimary', children: label })] }), actions !== undefined && (jsx(Stack, { alignItems: 'center', gap: 'xs', flexShrink: 0, children: actions }))] }));
2281
+ const CardHeader = ({ label, icon, actions, flexDirection = 'row', gap = 'sm', alignItems = 'center', justifyContent = 'space-between', py = 'sm', px = 'md', ...rest }) => {
2282
+ return (jsxs(Stack, { flexDirection: flexDirection, alignItems: alignItems, justifyContent: justifyContent, gap: gap, py: py, px: px, ...rest, children: [jsxs(Stack, { alignItems: 'center', gap: 'sm', flex: 1, minWidth: '0', children: [icon !== undefined && (jsx(Icon, { icon: icon, size: 'md', strokeColor: 'textSecondary' })), jsx(Text, { variant: 'span', fontSize: 'sm', fontWeight: 'semibold', color: 'textPrimary', children: label })] }), actions !== undefined && (jsx(Stack, { alignItems: 'center', gap: 'xs', flexShrink: 0, children: actions }))] }));
2277
2283
  };
2278
2284
  CardHeader.displayName = 'Card.Header';
2279
2285
 
2280
- const CardBody = ({ children, py = 'md', px = 'md', }) => {
2281
- return (jsx(Box, { py: py, px: px, children: children }));
2286
+ const CardBody = ({ children, py = 'md', px = 'md', flexDirection = 'column', gap = 'sm', ...rest }) => {
2287
+ return (jsx(Stack, { flexDirection: flexDirection, gap: gap, py: py, px: px, ...rest, children: children }));
2282
2288
  };
2283
2289
  CardBody.displayName = 'Card.Body';
2284
2290