gantri-components 2.240.1 → 2.241.0

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.
@@ -51,6 +51,13 @@ export interface PictureProps {
51
51
  objectFit?: ResolutionAwareProp<Property.ObjectFit>;
52
52
  objectPosition?: ResolutionAwareProp<Property.ObjectPosition>;
53
53
  rounded?: boolean;
54
+ /**
55
+ * Custom border-radius for the picture container. Accepts any valid CSS
56
+ * border-radius value (`'8px'`, `'1.2rem'`, `'50%'`, …) or a responsive
57
+ * object (`{ sm, md, lg }`). When `rounded` is also set, `rounded` wins
58
+ * (it forces a perfect circle).
59
+ */
60
+ borderRadius?: ResolutionAwareProp<Property.BorderRadius>;
54
61
  className?: string;
55
62
  style?: CSSProperties;
56
63
  onClick?: () => void;
@@ -65,6 +72,7 @@ export interface StyledPictureContainerProps {
65
72
  $maxHeight?: PictureProps['maxHeight'];
66
73
  $minWidth?: PictureProps['minWidth'];
67
74
  $minHeight?: PictureProps['minHeight'];
75
+ $borderRadius?: PictureProps['borderRadius'];
68
76
  $placeholderColor?: PictureProps['placeholderColor'];
69
77
  $fill?: boolean;
70
78
  $rounded?: boolean;