etudes 24.0.0 → 24.1.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/Burger.d.ts +2 -2
- package/build/components/BurgerButton.d.ts +2 -2
- package/build/components/CoverImage.d.ts +2 -2
- package/build/components/CoverVideo.d.ts +2 -2
- package/build/components/OptionButton.d.ts +4 -4
- package/build/components/PanoramaSlider.d.ts +3 -3
- package/build/components/SelectableButton.d.ts +2 -2
- package/build/etudes.js +3887 -3841
- package/build/etudes.umd.cjs +7 -7
- package/build/flows/Conditional.d.ts +1 -1
- package/build/flows/Each.d.ts +2 -2
- package/build/flows/Repeat.d.ts +2 -2
- package/build/flows/Switch.d.ts +1 -1
- package/build/hocs/WithTooltip.d.ts +4 -4
- package/build/hooks/useClickOutside.d.ts +1 -1
- package/build/hooks/useDrag.d.ts +1 -1
- package/build/hooks/useImageLoader.d.ts +1 -1
- package/build/hooks/useImageSize.d.ts +3 -3
- package/build/hooks/useInertiaDrag.d.ts +3 -3
- package/build/hooks/useInertiaDragValue.d.ts +3 -3
- package/build/hooks/useIntersectionObserver.d.ts +1 -1
- package/build/hooks/useKeyboardShortcut.d.ts +3 -3
- package/build/hooks/useMouseEnter.d.ts +1 -1
- package/build/hooks/useMouseLeave.d.ts +1 -1
- package/build/hooks/useOS.d.ts +1 -1
- package/build/hooks/usePosition.d.ts +1 -1
- package/build/hooks/useRect.d.ts +1 -1
- package/build/hooks/useSize.d.ts +1 -1
- package/build/hooks/useSizeObserver.d.ts +1 -1
- package/build/hooks/useSystemColorScheme.d.ts +1 -1
- package/build/hooks/useVideoMetadataLoader.d.ts +1 -1
- package/build/hooks/useVideoSize.d.ts +3 -3
- package/build/primitives/Accordion.d.ts +10 -10
- package/build/primitives/Button.d.ts +7 -7
- package/build/primitives/Carousel.d.ts +4 -4
- package/build/primitives/CodeInput.d.ts +6 -6
- package/build/primitives/Collection.d.ts +9 -9
- package/build/primitives/Counter.d.ts +2 -2
- package/build/primitives/Dial.d.ts +2 -2
- package/build/primitives/Dropdown.d.ts +10 -10
- package/build/primitives/FlatSVG.d.ts +3 -3
- package/build/primitives/Form.d.ts +4 -4
- package/build/primitives/Image.d.ts +2 -2
- package/build/primitives/MasonryGrid.d.ts +3 -3
- package/build/primitives/Panorama.d.ts +2 -2
- package/build/primitives/Picture.d.ts +4 -4
- package/build/primitives/RangeSlider.d.ts +2 -2
- package/build/primitives/Select.d.ts +5 -5
- package/build/primitives/Slider.d.ts +2 -2
- package/build/primitives/StepSlider.d.ts +2 -2
- package/build/primitives/SwipeRegion.d.ts +2 -2
- package/build/primitives/TextArea.d.ts +4 -4
- package/build/primitives/TextField.d.ts +3 -3
- package/build/primitives/Toggle.d.ts +4 -4
- package/build/primitives/Video.d.ts +2 -2
- package/build/utils/Styled.d.ts +2 -2
- package/build/utils/cloneStyledElement.d.ts +3 -3
- package/build/utils/getStyle.d.ts +1 -1
- package/build/utils/getSystemColorScheme.d.ts +1 -1
- package/build/utils/styles.d.ts +1 -1
- package/package.json +18 -18
|
@@ -3,7 +3,7 @@ export declare namespace Burger {
|
|
|
3
3
|
/**
|
|
4
4
|
* Type describing the props of {@link Burger}.
|
|
5
5
|
*/
|
|
6
|
-
type Props =
|
|
6
|
+
type Props = {
|
|
7
7
|
/**
|
|
8
8
|
* Specifies if the burger is in its activated state.
|
|
9
9
|
*/
|
|
@@ -21,7 +21,7 @@ export declare namespace Burger {
|
|
|
21
21
|
* Specifies the number of bars to display.
|
|
22
22
|
*/
|
|
23
23
|
numberOfBars?: 2 | 3;
|
|
24
|
-
}
|
|
24
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Three-striped burger component that transforms into an "X" when active.
|
|
@@ -4,7 +4,7 @@ export declare namespace BurgerButton {
|
|
|
4
4
|
/**
|
|
5
5
|
* Type describing the props of {@link BurgerButton}.
|
|
6
6
|
*/
|
|
7
|
-
type Props =
|
|
7
|
+
type Props = {
|
|
8
8
|
/**
|
|
9
9
|
* Handler invoked when the button is activated.
|
|
10
10
|
*/
|
|
@@ -19,7 +19,7 @@ export declare namespace BurgerButton {
|
|
|
19
19
|
* @param isActive The new active state of the button.
|
|
20
20
|
*/
|
|
21
21
|
onToggle?: (isActive: boolean) => void;
|
|
22
|
-
}
|
|
22
|
+
} & Omit<Burger.Props & ButtonHTMLAttributes<HTMLButtonElement>, 'onToggle'>;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Three-striped burger button component that transforms into an "X" when
|
|
@@ -12,13 +12,13 @@ export declare namespace CoverImage {
|
|
|
12
12
|
/**
|
|
13
13
|
* Type describing the props of {@link CoverImage}.
|
|
14
14
|
*/
|
|
15
|
-
type Props =
|
|
15
|
+
type Props = {
|
|
16
16
|
/**
|
|
17
17
|
* The known aspect ratio of the image, expressed by width / height. If
|
|
18
18
|
* unprovided, it will be inferred after loading the image.
|
|
19
19
|
*/
|
|
20
20
|
aspectRatio?: number;
|
|
21
|
-
}
|
|
21
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, 'onLoadStart'> & Pick<Picture.Props, 'alt' | 'loadingMode' | 'onLoadComplete' | 'onLoadError' | 'onLoadStart' | 'sources' | 'src'>;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* A component that displays an image with a fixed aspect ratio. The image is
|
|
@@ -4,13 +4,13 @@ export declare namespace CoverVideo {
|
|
|
4
4
|
/**
|
|
5
5
|
* Type describing the props of {@link CoverVideo}.
|
|
6
6
|
*/
|
|
7
|
-
type Props =
|
|
7
|
+
type Props = {
|
|
8
8
|
/**
|
|
9
9
|
* The known aspect ratio of the video, expressed by width / height. If
|
|
10
10
|
* unprovided, it will be inferred after loading the video.
|
|
11
11
|
*/
|
|
12
12
|
aspectRatio?: number;
|
|
13
|
-
}
|
|
13
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, 'onCanPlay' | 'onPause' | 'onPlay'> & Pick<Video.Props, 'autoLoop' | 'autoPlay' | 'hasControls' | 'isMuted' | 'onCanPlay' | 'onEnd' | 'onFullscreenChange' | 'onLoadMetadata' | 'onLoadMetadataComplete' | 'onLoadMetadataError' | 'onPause' | 'onPlay' | 'onSizeChange' | 'playsInline' | 'posterSrc' | 'src'>;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* A component that displays a video with a fixed aspect ratio. The video is
|
|
@@ -3,7 +3,7 @@ export declare namespace OptionButton {
|
|
|
3
3
|
/**
|
|
4
4
|
* Type describing the props of {@link OptionButton}.
|
|
5
5
|
*/
|
|
6
|
-
type Props =
|
|
6
|
+
type Props = {
|
|
7
7
|
/**
|
|
8
8
|
* The current index of the option.
|
|
9
9
|
*/
|
|
@@ -15,10 +15,10 @@ export declare namespace OptionButton {
|
|
|
15
15
|
/**
|
|
16
16
|
* The list of options to cycle through.
|
|
17
17
|
*/
|
|
18
|
-
options:
|
|
18
|
+
options: {
|
|
19
19
|
label: string;
|
|
20
20
|
value: string;
|
|
21
|
-
}[];
|
|
21
|
+
}[] | string[];
|
|
22
22
|
/**
|
|
23
23
|
* Handler invoked when the button is clicked.
|
|
24
24
|
*
|
|
@@ -26,7 +26,7 @@ export declare namespace OptionButton {
|
|
|
26
26
|
* @param index The index of the next option.
|
|
27
27
|
*/
|
|
28
28
|
onChange?: (value: string, index: number) => void;
|
|
29
|
-
}
|
|
29
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'aria-disabled' | 'aria-label' | 'disabled' | 'onChange'>;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* A button component that cycles through a list of options when clicked.
|
|
@@ -5,7 +5,7 @@ export declare namespace PanoramaSlider {
|
|
|
5
5
|
/**
|
|
6
6
|
* Type describing the props of {@link PanoramaSlider}.
|
|
7
7
|
*/
|
|
8
|
-
type Props =
|
|
8
|
+
type Props = {
|
|
9
9
|
/**
|
|
10
10
|
* Field-of-view (0.0 - 360.0 degrees, inclusive) that represents the size
|
|
11
11
|
* of the reticle. 360 indicates the reticle covers the entire image. If
|
|
@@ -19,7 +19,7 @@ export declare namespace PanoramaSlider {
|
|
|
19
19
|
* the component's height must be known, i.e. it is specified in the CSS).
|
|
20
20
|
* Defaults to `width`.
|
|
21
21
|
*/
|
|
22
|
-
autoDimension?: '
|
|
22
|
+
autoDimension?: 'height' | 'width';
|
|
23
23
|
/**
|
|
24
24
|
* Size of the viewport that this component is controlling. A viewport can
|
|
25
25
|
* be thought of as a DOM element containing an aspect-filled image. This is
|
|
@@ -27,7 +27,7 @@ export declare namespace PanoramaSlider {
|
|
|
27
27
|
* If it is, this prop is ignored.
|
|
28
28
|
*/
|
|
29
29
|
viewportSize?: Size;
|
|
30
|
-
};
|
|
30
|
+
} & Panorama.Props;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* A slider for a {@link Panorama}.
|
|
@@ -3,7 +3,7 @@ export declare namespace SelectableButton {
|
|
|
3
3
|
/**
|
|
4
4
|
* Type describing the props of {@link SelectableButton}.
|
|
5
5
|
*/
|
|
6
|
-
type Props =
|
|
6
|
+
type Props = {
|
|
7
7
|
/**
|
|
8
8
|
* Specifies if the button can be deselected.
|
|
9
9
|
*/
|
|
@@ -34,7 +34,7 @@ export declare namespace SelectableButton {
|
|
|
34
34
|
* @param isSelected The new selected state of the button.
|
|
35
35
|
*/
|
|
36
36
|
onToggle?: (isSelected: boolean) => void;
|
|
37
|
-
}
|
|
37
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'aria-disabled' | 'aria-label' | 'aria-selected' | 'disabled' | 'onClick' | 'onSelect' | 'onToggle'>;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* A button component that can be selected or deselected.
|