etudes 10.2.0 → 11.0.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/components/{StepwiseSlider.d.ts → StepSlider.d.ts} +9 -9
- package/build/components/index.d.ts +1 -1
- package/build/etudes.js +359 -359
- package/build/etudes.umd.cjs +7 -7
- package/build/hooks/index.d.ts +7 -7
- package/build/hooks/{useClickOutsideEffect.d.ts → useClickOutside.d.ts} +1 -1
- package/build/hooks/{useDragEffect.d.ts → useDrag.d.ts} +1 -1
- package/build/hooks/{useDragValueEffect.d.ts → useDragValue.d.ts} +1 -1
- package/build/hooks/{useLoadImageEffect.d.ts → useImageLoader.d.ts} +5 -5
- package/build/hooks/useImageSize.d.ts +3 -3
- package/build/hooks/{useScrollPositionEffect.d.ts → usePosition.d.ts} +1 -1
- package/build/hooks/{useResizeEffect.d.ts → useSizeObserver.d.ts} +2 -2
- package/build/hooks/{useLoadVideoMetadataEffect.d.ts → useVideoMetadataLoader.d.ts} +5 -5
- package/build/hooks/useVideoSize.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
type Orientation = 'horizontal' | 'vertical';
|
|
3
|
-
export type
|
|
3
|
+
export type StepSliderProps = Omit<HTMLAttributes<HTMLDivElement>, 'aria-valuenow' | 'role'> & {
|
|
4
4
|
/**
|
|
5
5
|
* By default the position is a value from 0 - 1, 0 being the start of the
|
|
6
6
|
* slider and 1 being the end. Switching on this flag inverts this behavior,
|
|
@@ -87,7 +87,7 @@ export type StepwiseSliderProps = Omit<HTMLAttributes<HTMLDivElement>, 'aria-val
|
|
|
87
87
|
onDragStart?: () => void;
|
|
88
88
|
};
|
|
89
89
|
/**
|
|
90
|
-
* A "
|
|
90
|
+
* A "step" slider component supporting both horizontal and vertical
|
|
91
91
|
* orientations that automatically snaps to a set of predefined points on the
|
|
92
92
|
* slider when dragged. These points are referred to as "steps", indexed by an
|
|
93
93
|
* integer referred to as "index". This index can be two-way bound. The
|
|
@@ -99,13 +99,13 @@ export type StepwiseSliderProps = Omit<HTMLAttributes<HTMLDivElement>, 'aria-val
|
|
|
99
99
|
* the slider. While dragging, the slider still emits a position change event,
|
|
100
100
|
* where the position is a decimal ranging between 0.0 and 1.0, inclusive.
|
|
101
101
|
*
|
|
102
|
-
* @exports
|
|
103
|
-
* @exports
|
|
104
|
-
* @exports
|
|
102
|
+
* @exports StepSliderKnob The component for the knob.
|
|
103
|
+
* @exports StepSliderLabel The component for the label on the knob.
|
|
104
|
+
* @exports StepSliderTrack The component for the slide track on either side
|
|
105
105
|
* of the knob.
|
|
106
106
|
*/
|
|
107
|
-
export declare const
|
|
108
|
-
export declare const
|
|
109
|
-
export declare const
|
|
110
|
-
export declare const
|
|
107
|
+
export declare const StepSlider: import('react').ForwardRefExoticComponent<Readonly<StepSliderProps> & import('react').RefAttributes<HTMLDivElement>>;
|
|
108
|
+
export declare const StepSliderTrack: ({ ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
109
|
+
export declare const StepSliderKnob: ({ ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
110
|
+
export declare const StepSliderLabel: ({ ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
111
111
|
export {};
|
|
@@ -18,7 +18,7 @@ export * from './PanoramaSlider.js';
|
|
|
18
18
|
export * from './RangeSlider.js';
|
|
19
19
|
export * from './SelectableButton.js';
|
|
20
20
|
export * from './Slider.js';
|
|
21
|
-
export * from './
|
|
21
|
+
export * from './StepSlider.js';
|
|
22
22
|
export * from './SwipeRegion.js';
|
|
23
23
|
export * from './TextField.js';
|
|
24
24
|
export * from './Video.js';
|