gantri-components 2.240.0 → 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.
|
@@ -15,6 +15,13 @@ export interface CarouselMetrics {
|
|
|
15
15
|
currentItemsPerPage: number;
|
|
16
16
|
gapPx: number;
|
|
17
17
|
leftPaddingPx: number;
|
|
18
|
+
/**
|
|
19
|
+
* Maximum item offset the track can scroll to without leaving empty space
|
|
20
|
+
* past the last item. Fractional when `itemsPerPage` is decimal (e.g.,
|
|
21
|
+
* 1.3 with 6 items → 4.7). Used by the carousel to clamp the last page's
|
|
22
|
+
* translateX so the last item is fully visible.
|
|
23
|
+
*/
|
|
24
|
+
maxScrollItems: number;
|
|
18
25
|
/** Effective step, defaulting to floor(itemsPerPage) when not provided. */
|
|
19
26
|
pageStep: number;
|
|
20
27
|
rightPaddingPx: number;
|
|
@@ -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;
|