@aurora-ds/components 0.22.2 → 0.22.4

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.
@@ -11,6 +11,8 @@ export type CardProps = {
11
11
  width?: CSSProperties['width'];
12
12
  /** Height of the card */
13
13
  height?: CSSProperties['height'];
14
+ /** Maximum height of the card */
15
+ maxHeight?: CSSProperties['maxHeight'];
14
16
  /** Gap between children (theme spacing key) */
15
17
  gap?: keyof ThemeContract['spacing'];
16
18
  /** Border radius of the card */
@@ -55,6 +57,7 @@ export type CardStyleParams = {
55
57
  padding?: keyof ThemeContract['spacing'];
56
58
  width?: CSSProperties['width'];
57
59
  height?: CSSProperties['height'];
60
+ maxHeight?: CSSProperties['maxHeight'];
58
61
  gap?: keyof ThemeContract['spacing'];
59
62
  radius: keyof ThemeContract['radius'];
60
63
  shadow: keyof ThemeContract['shadows'];
package/dist/cjs/index.js CHANGED
@@ -1973,6 +1973,7 @@ const BOX_STYLES = theme.createStyles((theme) => ({
1973
1973
  cursor,
1974
1974
  boxShadow: shadow ? theme.shadows[shadow] : undefined,
1975
1975
  boxSizing: 'border-box',
1976
+ transition: `background-color ${theme.transition.normal}, border-color ${theme.transition.normal}`,
1976
1977
  }),
1977
1978
  }));
1978
1979
 
@@ -2038,12 +2039,13 @@ Box.displayName = 'Box';
2038
2039
  * Card styles using createStyles from @aurora-ds/theme
2039
2040
  */
2040
2041
  const CARD_STYLES = theme.createStyles((theme) => ({
2041
- root: ({ direction, padding, width, height, gap, radius, shadow, align, justify, backgroundColor, borderColor }) => ({
2042
+ root: ({ direction, padding, width, height, maxHeight, gap, radius, shadow, align, justify, backgroundColor, borderColor }) => ({
2042
2043
  display: 'flex',
2043
2044
  flexDirection: direction,
2044
2045
  padding: padding ? theme.spacing[padding] : undefined,
2045
2046
  width,
2046
2047
  height,
2048
+ maxHeight,
2047
2049
  gap: gap ? theme.spacing[gap] : undefined,
2048
2050
  borderRadius: theme.radius[radius],
2049
2051
  boxShadow: theme.shadows[shadow],
@@ -2052,7 +2054,8 @@ const CARD_STYLES = theme.createStyles((theme) => ({
2052
2054
  alignItems: align,
2053
2055
  justifyContent: justify,
2054
2056
  boxSizing: 'border-box',
2055
- flexShrink: 0
2057
+ flexShrink: 0,
2058
+ transition: `background-color ${theme.transition.normal}, border-color ${theme.transition.normal}`,
2056
2059
  }),
2057
2060
  }));
2058
2061
 
@@ -2066,12 +2069,13 @@ const CARD_STYLES = theme.createStyles((theme) => ({
2066
2069
  * - `column`: Vertical layout (default)
2067
2070
  * - `row`: Horizontal layout
2068
2071
  */
2069
- const Card = ({ children, direction = 'column', padding = 'md', width, height, gap, radius = 'md', shadow = 'none', align, justify, backgroundColor = 'surface', borderColor = 'border', ariaLabel, ariaLabelledBy, ariaDescribedBy, role, tabIndex, onDragOver, onDragLeave, onDrop, onDragStart, onDragEnd, onDragEnter, draggable, }) => {
2072
+ const Card = ({ children, direction = 'column', padding = 'md', width, height, maxHeight, gap, radius = 'md', shadow = 'none', align, justify, backgroundColor = 'surface', borderColor = 'border', ariaLabel, ariaLabelledBy, ariaDescribedBy, role, tabIndex, onDragOver, onDragLeave, onDrop, onDragStart, onDragEnd, onDragEnter, draggable, }) => {
2070
2073
  return (jsxRuntime.jsx("div", { className: CARD_STYLES.root({
2071
2074
  direction,
2072
2075
  padding,
2073
2076
  width,
2074
2077
  height,
2078
+ maxHeight,
2075
2079
  gap,
2076
2080
  radius,
2077
2081
  shadow,