etudes 32.6.0 → 32.7.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.
- package/build/etudes.js +618 -552
- package/build/etudes.umd.cjs +1 -1
- package/build/primitives/Carousel.d.ts +4 -31
- package/package.json +1 -1
|
@@ -15,13 +15,13 @@ import { HTMLAttributes, Ref } from 'react';
|
|
|
15
15
|
* requirements for landmark regions, pass `aria-label` (or `aria-labelledby`)
|
|
16
16
|
* so the region has an accessible name.
|
|
17
17
|
*
|
|
18
|
-
* @exports Carousel.Viewport Component for the viewport.
|
|
19
18
|
* @exports Carousel.Content Component for the list holding all items.
|
|
20
|
-
* @exports Carousel.
|
|
19
|
+
* @exports Carousel.Item Component containing each item.
|
|
20
|
+
* @exports Carousel.Viewport Component for the viewport.
|
|
21
21
|
* @exports useCarouselItem Hook for reading the current item's index, exposure,
|
|
22
22
|
* and active state from within an item's subtree.
|
|
23
23
|
*/
|
|
24
|
-
export declare function Carousel({ ref, autoAdvanceInterval, children, dragSpeed,
|
|
24
|
+
export declare function Carousel({ ref, autoAdvanceInterval, children, dragSpeed, index, orientation, shouldTrackExposure, onAutoAdvancePause, onAutoAdvanceResume, onIndexChange, ...props }: Carousel.Props): import("react").JSX.Element;
|
|
25
25
|
export declare namespace Carousel {
|
|
26
26
|
var displayName: string;
|
|
27
27
|
}
|
|
@@ -48,12 +48,6 @@ export declare namespace Carousel {
|
|
|
48
48
|
* default value is `1`.
|
|
49
49
|
*/
|
|
50
50
|
dragSpeed?: number;
|
|
51
|
-
/**
|
|
52
|
-
* Minimum pixel distance the pointer must travel between pointer-down and
|
|
53
|
-
* pointer-up for the gesture to be classified as a drag. Movements within
|
|
54
|
-
* this threshold are treated as a click and are allowed to propagate.
|
|
55
|
-
*/
|
|
56
|
-
dragStartThreshold?: number;
|
|
57
51
|
/**
|
|
58
52
|
* Current item index.
|
|
59
53
|
*/
|
|
@@ -62,32 +56,11 @@ export declare namespace Carousel {
|
|
|
62
56
|
* Orientation of the carousel.
|
|
63
57
|
*/
|
|
64
58
|
orientation?: Orientation;
|
|
65
|
-
/**
|
|
66
|
-
* Resistance applied when the user drags past the first or last item. `0`
|
|
67
|
-
* lets the overshoot track the pointer 1:1 (no resistance); `1` clamps hard
|
|
68
|
-
* at the boundary (max resistance, no overshoot). Values in between produce
|
|
69
|
-
* a rubber-band effect—higher means more resistance.
|
|
70
|
-
*/
|
|
71
|
-
overscrollResistance?: number;
|
|
72
59
|
/**
|
|
73
60
|
* Whether to track item exposure (0-1, 0 meaning the item is fully scrolled
|
|
74
61
|
* out of view, 1 meaning the item is fully scrolled into view).
|
|
75
62
|
*/
|
|
76
63
|
shouldTrackExposure?: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Maximum gap in milliseconds between the last pointer move and the pointer
|
|
79
|
-
* release for the gesture to register as a swipe. If the pointer was held
|
|
80
|
-
* stationary longer than this before release, no swipe is detected and the
|
|
81
|
-
* release falls back to position-based snapping.
|
|
82
|
-
*/
|
|
83
|
-
swipeLiftWindow?: number;
|
|
84
|
-
/**
|
|
85
|
-
* Minimum axial pointer velocity (in pixels per millisecond) at release for
|
|
86
|
-
* the gesture to register as a swipe. A detected swipe advances the index
|
|
87
|
-
* by one in the swipe direction, regardless of how far the displacement has
|
|
88
|
-
* traveled.
|
|
89
|
-
*/
|
|
90
|
-
swipeVelocityThreshold?: number;
|
|
91
64
|
/**
|
|
92
65
|
* Handler invoked when auto advance pauses. This is invoked only when
|
|
93
66
|
* {@link autoAdvanceInterval} is greater than 0.
|
|
@@ -135,7 +108,7 @@ export declare namespace Carousel {
|
|
|
135
108
|
/**
|
|
136
109
|
* Component containing each item in a {@link Carousel}.
|
|
137
110
|
*/
|
|
138
|
-
const
|
|
111
|
+
const Item: {
|
|
139
112
|
({ children, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
140
113
|
displayName: string;
|
|
141
114
|
};
|