etudes 7.3.0 → 8.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/{components → build/components}/Accordion.d.ts +3 -3
- package/{components → build/components}/Burger.d.ts +3 -3
- package/{components → build/components}/BurgerButton.d.ts +4 -4
- package/{components → build/components}/Button.d.ts +1 -1
- package/{components → build/components}/Carousel.d.ts +1 -1
- package/{components → build/components}/Collection.d.ts +1 -1
- package/{components → build/components}/Counter.d.ts +4 -4
- package/{components → build/components}/CoverImage.d.ts +4 -4
- package/{components → build/components}/CoverVideo.d.ts +4 -4
- package/{components → build/components}/Dial.d.ts +3 -3
- package/{components → build/components}/Dropdown.d.ts +2 -2
- package/{components → build/components}/FlatSVG.d.ts +37 -3
- package/{components → build/components}/Image.d.ts +4 -4
- package/{components → build/components}/MasonryGrid.d.ts +2 -2
- package/{components → build/components}/OptionButton.d.ts +3 -3
- package/{components → build/components}/Panorama.d.ts +2 -2
- package/{components → build/components}/PanoramaSlider.d.ts +8 -8
- package/build/components/RangeSlider.d.ts +21 -0
- package/{components → build/components}/SelectableButton.d.ts +3 -3
- package/{components → build/components}/Slider.d.ts +3 -3
- package/{components → build/components}/StepwiseSlider.d.ts +3 -3
- package/{components → build/components}/SwipeRegion.d.ts +3 -3
- package/{components → build/components}/TextField.d.ts +3 -3
- package/{components → build/components}/Video.d.ts +15 -4
- package/{components → build/components}/WithTooltip.d.ts +1 -1
- package/build/components/index.d.ts +25 -0
- package/build/etudes.js +7509 -0
- package/build/etudes.umd.cjs +37 -0
- package/build/hooks/index.d.ts +17 -0
- package/{hooks → build/hooks}/useClickOutsideEffect.d.ts +1 -1
- package/{hooks → build/hooks}/useDragEffect.d.ts +1 -1
- package/{hooks → build/hooks}/useDragValueEffect.d.ts +1 -1
- package/{hooks → build/hooks}/useImageSize.d.ts +1 -1
- package/{hooks → build/hooks}/useInterval.d.ts +1 -1
- package/{hooks → build/hooks}/useLoadImageEffect.d.ts +1 -1
- package/{hooks → build/hooks}/useLoadVideoMetadataEffect.d.ts +1 -1
- package/{hooks → build/hooks}/useRect.d.ts +1 -1
- package/{hooks → build/hooks}/useResizeEffect.d.ts +1 -1
- package/{hooks → build/hooks}/useScrollPositionEffect.d.ts +1 -1
- package/{hooks → build/hooks}/useSearchParamState.d.ts +1 -1
- package/{hooks → build/hooks}/useSize.d.ts +2 -2
- package/{hooks → build/hooks}/useTimeout.d.ts +1 -1
- package/{hooks → build/hooks}/useVideoSize.d.ts +1 -1
- package/build/index.d.ts +5 -0
- package/{operators → build/operators}/Conditional.d.ts +1 -1
- package/{operators → build/operators}/Each.d.ts +1 -1
- package/{operators → build/operators}/ExtractChild.d.ts +2 -2
- package/{operators → build/operators}/ExtractChildren.d.ts +1 -1
- package/{operators → build/operators}/Repeat.d.ts +1 -1
- package/build/operators/index.d.ts +5 -0
- package/{providers → build/providers}/ScrollPositionProvider.d.ts +2 -2
- package/build/providers/index.d.ts +1 -0
- package/{utils → build/utils}/asComponentDict.d.ts +1 -1
- package/{utils → build/utils}/asStyleDict.d.ts +1 -1
- package/{utils → build/utils}/cloneStyledElement.d.ts +1 -1
- package/{utils → build/utils}/styles.d.ts +1 -1
- package/package.json +39 -35
- package/components/Accordion.js +0 -224
- package/components/Burger.js +0 -100
- package/components/BurgerButton.js +0 -41
- package/components/Button.js +0 -15
- package/components/Carousel.js +0 -201
- package/components/Collection.js +0 -146
- package/components/Counter.js +0 -94
- package/components/CoverImage.js +0 -52
- package/components/CoverVideo.js +0 -53
- package/components/Dial.js +0 -93
- package/components/Dropdown.js +0 -155
- package/components/FlatSVG.js +0 -44
- package/components/Image.js +0 -47
- package/components/MasonryGrid.js +0 -257
- package/components/OptionButton.js +0 -17
- package/components/Panorama.js +0 -96
- package/components/PanoramaSlider.js +0 -117
- package/components/RangeSlider.d.ts +0 -21
- package/components/RangeSlider.js +0 -206
- package/components/SelectableButton.js +0 -21
- package/components/Slider.js +0 -204
- package/components/StepwiseSlider.js +0 -283
- package/components/SwipeRegion.js +0 -67
- package/components/TextField.js +0 -21
- package/components/Video.js +0 -70
- package/components/WithTooltip.js +0 -227
- package/hooks/useClickOutsideEffect.js +0 -29
- package/hooks/useDragEffect.js +0 -65
- package/hooks/useDragValueEffect.js +0 -85
- package/hooks/useImageSize.js +0 -44
- package/hooks/useInterval.js +0 -23
- package/hooks/useLoadImageEffect.js +0 -36
- package/hooks/useLoadVideoMetadataEffect.js +0 -32
- package/hooks/useMounted.js +0 -11
- package/hooks/usePrevious.js +0 -14
- package/hooks/useRect.js +0 -24
- package/hooks/useResizeEffect.js +0 -28
- package/hooks/useScrollPositionEffect.js +0 -38
- package/hooks/useSearchParamState.js +0 -54
- package/hooks/useSize.js +0 -23
- package/hooks/useTimeout.js +0 -29
- package/hooks/useVideoSize.js +0 -44
- package/hooks/useViewportSize.js +0 -20
- package/operators/Conditional.js +0 -13
- package/operators/Each.js +0 -10
- package/operators/ExtractChild.js +0 -25
- package/operators/ExtractChildren.js +0 -17
- package/operators/Repeat.js +0 -10
- package/providers/ScrollPositionProvider.js +0 -67
- package/utils/asClassNameDict.js +0 -3
- package/utils/asComponentDict.js +0 -18
- package/utils/asStyleDict.js +0 -3
- package/utils/cloneStyledElement.js +0 -14
- package/utils/index.js +0 -5
- package/utils/styles.js +0 -6
- /package/{hooks → build/hooks}/useMounted.d.ts +0 -0
- /package/{hooks → build/hooks}/usePrevious.d.ts +0 -0
- /package/{hooks → build/hooks}/useViewportSize.d.ts +0 -0
- /package/{utils → build/utils}/asClassNameDict.d.ts +0 -0
- /package/{utils → build/utils}/index.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { ComponentType, HTMLAttributes, ReactElement, Ref } from 'react';
|
|
2
|
+
import { CollectionItemProps, CollectionOrientation, CollectionProps, CollectionSelectionMode } from './Collection.js';
|
|
3
|
+
import { DropdownToggleProps } from './Dropdown.js';
|
|
4
4
|
/**
|
|
5
5
|
* Type describing the current item selection of {@link Accordion}, composed of
|
|
6
6
|
* a dictionary whose key corresponds the section index and value corresponds to
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
export type BurgerProps = HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
isActive?: boolean;
|
|
4
4
|
isSplit?: boolean;
|
|
@@ -13,7 +13,7 @@ export type BurgerProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
13
13
|
*
|
|
14
14
|
* @exports BurgerBar Component for each bar in the burger.
|
|
15
15
|
*/
|
|
16
|
-
export declare const Burger: import(
|
|
16
|
+
export declare const Burger: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
17
17
|
isActive?: boolean;
|
|
18
18
|
isSplit?: boolean;
|
|
19
19
|
isTailHidden?: boolean;
|
|
@@ -21,5 +21,5 @@ export declare const Burger: import("react").ForwardRefExoticComponent<HTMLAttri
|
|
|
21
21
|
onActivate?: () => void;
|
|
22
22
|
onDeactivate?: () => void;
|
|
23
23
|
onToggle?: (isActive: boolean) => void;
|
|
24
|
-
} & import(
|
|
24
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
25
25
|
export declare const BurgerBar: ({ ...props }: HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { BurgerProps } from './Burger.js';
|
|
3
3
|
export type BurgerButtonProps = Omit<HTMLAttributes<HTMLButtonElement> & BurgerProps, 'onToggle'> & {
|
|
4
4
|
onActivate?: () => void;
|
|
5
5
|
onDeactivate?: () => void;
|
|
@@ -11,7 +11,7 @@ export type BurgerButtonProps = Omit<HTMLAttributes<HTMLButtonElement> & BurgerP
|
|
|
11
11
|
*
|
|
12
12
|
* @exports BurgerButtonBar Component for each bar in the burger button.
|
|
13
13
|
*/
|
|
14
|
-
export declare const BurgerButton: import(
|
|
14
|
+
export declare const BurgerButton: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLButtonElement> & HTMLAttributes<HTMLDivElement> & {
|
|
15
15
|
isActive?: boolean;
|
|
16
16
|
isSplit?: boolean;
|
|
17
17
|
isTailHidden?: boolean;
|
|
@@ -23,5 +23,5 @@ export declare const BurgerButton: import("react").ForwardRefExoticComponent<Omi
|
|
|
23
23
|
onActivate?: () => void;
|
|
24
24
|
onDeactivate?: () => void;
|
|
25
25
|
onToggle?: (isActive: boolean) => void;
|
|
26
|
-
} & import(
|
|
26
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
27
27
|
export declare const BurgerButtonBar: ({ ...props }: HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentType, ForwardedRef, HTMLAttributes, ReactElement } from 'react';
|
|
2
2
|
export type CarouselOrientation = 'horizontal' | 'vertical';
|
|
3
3
|
export type CarouselProps<I> = HTMLAttributes<HTMLElement> & {
|
|
4
4
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare const Counter: import(
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { TextFieldProps } from './TextField.js';
|
|
3
|
+
export declare const Counter: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLElement>, "onChange"> & {
|
|
4
4
|
min?: number;
|
|
5
5
|
max?: number;
|
|
6
6
|
quantity?: number;
|
|
7
7
|
allowsInput?: boolean;
|
|
8
8
|
onChange?: (quantity: number) => void;
|
|
9
|
-
} & import(
|
|
9
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
10
|
export declare const CounterTextField: ({ ...props }: TextFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export declare const CounterAddButton: ({ children, ...props }: HTMLAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export declare const CounterSubtractButton: ({ children, ...props }: HTMLAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { ImageProps } from './Image.js';
|
|
3
3
|
export type CoverImageProps = Omit<HTMLAttributes<HTMLDivElement>, 'onLoadStart'> & Pick<ImageProps, 'alt' | 'loadingMode' | 'sizes' | 'src' | 'srcSet' | 'onLoadStart' | 'onLoadComplete' | 'onLoadError'> & {
|
|
4
4
|
/**
|
|
5
5
|
* The known aspect ratio of the image, expressed by width / height. If
|
|
@@ -7,12 +7,12 @@ export type CoverImageProps = Omit<HTMLAttributes<HTMLDivElement>, 'onLoadStart'
|
|
|
7
7
|
*/
|
|
8
8
|
aspectRatio?: number;
|
|
9
9
|
};
|
|
10
|
-
export declare const CoverImage: import(
|
|
10
|
+
export declare const CoverImage: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "onLoadStart"> & Pick<ImageProps, "onLoadStart" | "src" | "srcSet" | "sizes" | "onLoadComplete" | "onLoadError" | "alt" | "loadingMode"> & {
|
|
11
11
|
/**
|
|
12
12
|
* The known aspect ratio of the image, expressed by width / height. If
|
|
13
13
|
* unprovided, it will be inferred after loading the image.
|
|
14
14
|
*/
|
|
15
15
|
aspectRatio?: number;
|
|
16
|
-
} & import(
|
|
16
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
17
|
export declare const CoverImageViewport: ({ children, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export declare const CoverImageContent: ({ children, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { VideoProps } from './Video.js';
|
|
3
3
|
export type CoverVideoProps = HTMLAttributes<HTMLDivElement> & Pick<VideoProps, 'autoLoop' | 'autoPlay' | 'hasControls' | 'isMuted' | 'playsInline' | 'posterSrc' | 'src' | 'onPause' | 'onPlay' | 'onCanPlay' | 'onEnd' | 'onFullscreenChange' | 'onLoadMetadata' | 'onLoadMetadataComplete' | 'onLoadMetadataError' | 'onSizeChange'> & {
|
|
4
4
|
/**
|
|
5
5
|
* The known aspect ratio of the video, expressed by width / height. If
|
|
@@ -7,12 +7,12 @@ export type CoverVideoProps = HTMLAttributes<HTMLDivElement> & Pick<VideoProps,
|
|
|
7
7
|
*/
|
|
8
8
|
aspectRatio?: number;
|
|
9
9
|
};
|
|
10
|
-
export declare const CoverVideo: import(
|
|
10
|
+
export declare const CoverVideo: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & Pick<VideoProps, "onCanPlay" | "onPause" | "onPlay" | "src" | "onSizeChange" | "autoPlay" | "playsInline" | "autoLoop" | "hasControls" | "isMuted" | "posterSrc" | "onEnd" | "onFullscreenChange" | "onLoadMetadata" | "onLoadMetadataComplete" | "onLoadMetadataError"> & {
|
|
11
11
|
/**
|
|
12
12
|
* The known aspect ratio of the video, expressed by width / height. If
|
|
13
13
|
* unprovided, it will be inferred after loading the video.
|
|
14
14
|
*/
|
|
15
15
|
aspectRatio?: number;
|
|
16
|
-
} & import(
|
|
16
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
17
|
export declare const CoverVideoViewport: ({ children, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export declare const CoverVideoContent: ({ children, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes, SVGAttributes } from 'react';
|
|
2
2
|
export type DialProps = HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
/**
|
|
4
4
|
* Current angle reading of the compass, between 0.0 - 360.0 degrees,
|
|
@@ -39,7 +39,7 @@ export type DialProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
39
39
|
* @exports DialKnob
|
|
40
40
|
* @exports DialTrack
|
|
41
41
|
*/
|
|
42
|
-
export declare const Dial: import(
|
|
42
|
+
export declare const Dial: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
43
43
|
/**
|
|
44
44
|
* Current angle reading of the compass, between 0.0 - 360.0 degrees,
|
|
45
45
|
* inclusive.
|
|
@@ -72,6 +72,6 @@ export declare const Dial: import("react").ForwardRefExoticComponent<HTMLAttribu
|
|
|
72
72
|
* `stroke-width` of the `<circle>` element.
|
|
73
73
|
*/
|
|
74
74
|
trackThickness?: number;
|
|
75
|
-
} & import(
|
|
75
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
76
76
|
export declare const DialTrack: ({ ...props }: SVGAttributes<SVGCircleElement>) => import("react/jsx-runtime").JSX.Element;
|
|
77
77
|
export declare const DialKnob: ({ ...props }: SVGAttributes<SVGPathElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentType, HTMLAttributes, ReactElement, Ref } from 'react';
|
|
2
|
+
import { CollectionItemProps, CollectionOrientation, CollectionProps, CollectionSelection } from './Collection.js';
|
|
3
3
|
/**
|
|
4
4
|
* Base extendable type describing the data provided to each item in
|
|
5
5
|
* {@link Dropdown}.
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
export type FlatSVGProps = HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
/**
|
|
4
|
+
* Specifies how the SVG should be resized:
|
|
5
|
+
* - `none`: The SVG size attributes are stripped.
|
|
6
|
+
* - `preserve`: The SVG size attributes are unchanged.
|
|
7
|
+
* - `fill`: The SVG will fill the container, i.e. `width="100%"` and
|
|
8
|
+
* `height="100%"`.
|
|
9
|
+
* - `height`: Default: the SVG will maintain its aspect ratio and fill the height of
|
|
10
|
+
* the container, i.e. `width="auto"` and `height="100%"`.
|
|
11
|
+
* - `width`: The SVG will maintain its aspect ratio and fill the width of the
|
|
12
|
+
* container, i.e. `width="100%"` and `height="auto"`.
|
|
13
|
+
*/
|
|
14
|
+
fillMode?: 'none' | 'preserve' | 'fill' | 'height' | 'width';
|
|
3
15
|
/**
|
|
4
16
|
* The SVG string markup, i.e. "<svg>...</svg>".
|
|
5
17
|
*/
|
|
@@ -20,6 +32,11 @@ export type FlatSVGProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
20
32
|
* and all of its child nodes.
|
|
21
33
|
*/
|
|
22
34
|
shouldStripIds?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies whether the 'x' and 'y' attributes should be removed in the SVG
|
|
37
|
+
* root node.
|
|
38
|
+
*/
|
|
39
|
+
shouldStripPosition?: boolean;
|
|
23
40
|
/**
|
|
24
41
|
* Specifies whether the 'style' atribute and any <style> nodes should be
|
|
25
42
|
* removed in the SVG root node and all of its child nodes.
|
|
@@ -37,7 +54,19 @@ export type FlatSVGProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
37
54
|
* will attempt to sanitize the markup (i.e. stripping useless attributes)
|
|
38
55
|
* according to the props specified.
|
|
39
56
|
*/
|
|
40
|
-
export declare const FlatSVG: import(
|
|
57
|
+
export declare const FlatSVG: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
58
|
+
/**
|
|
59
|
+
* Specifies how the SVG should be resized:
|
|
60
|
+
* - `none`: The SVG size attributes are stripped.
|
|
61
|
+
* - `preserve`: The SVG size attributes are unchanged.
|
|
62
|
+
* - `fill`: The SVG will fill the container, i.e. `width="100%"` and
|
|
63
|
+
* `height="100%"`.
|
|
64
|
+
* - `height`: Default: the SVG will maintain its aspect ratio and fill the height of
|
|
65
|
+
* the container, i.e. `width="auto"` and `height="100%"`.
|
|
66
|
+
* - `width`: The SVG will maintain its aspect ratio and fill the width of the
|
|
67
|
+
* container, i.e. `width="100%"` and `height="auto"`.
|
|
68
|
+
*/
|
|
69
|
+
fillMode?: "none" | "preserve" | "fill" | "height" | "width";
|
|
41
70
|
/**
|
|
42
71
|
* The SVG string markup, i.e. "<svg>...</svg>".
|
|
43
72
|
*/
|
|
@@ -58,6 +87,11 @@ export declare const FlatSVG: import("react").ForwardRefExoticComponent<HTMLAttr
|
|
|
58
87
|
* and all of its child nodes.
|
|
59
88
|
*/
|
|
60
89
|
shouldStripIds?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Specifies whether the 'x' and 'y' attributes should be removed in the SVG
|
|
92
|
+
* root node.
|
|
93
|
+
*/
|
|
94
|
+
shouldStripPosition?: boolean;
|
|
61
95
|
/**
|
|
62
96
|
* Specifies whether the 'style' atribute and any <style> nodes should be
|
|
63
97
|
* removed in the SVG root node and all of its child nodes.
|
|
@@ -69,4 +103,4 @@ export declare const FlatSVG: import("react").ForwardRefExoticComponent<HTMLAttr
|
|
|
69
103
|
* whitelisted.
|
|
70
104
|
*/
|
|
71
105
|
whitelistedAttributes?: string[];
|
|
72
|
-
} & import(
|
|
106
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { Size } from 'spase';
|
|
3
3
|
export type ImageProps = Omit<HTMLAttributes<HTMLImageElement>, 'alt' | 'srcSet' | 'sizes' | 'src' | 'loading' | 'onLoadStart'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Optional alt text.
|
|
@@ -71,7 +71,7 @@ export type ImageProps = Omit<HTMLAttributes<HTMLImageElement>, 'alt' | 'srcSet'
|
|
|
71
71
|
*/
|
|
72
72
|
onSizeChange?: (size?: Size) => void;
|
|
73
73
|
};
|
|
74
|
-
export declare const Image: import(
|
|
74
|
+
export declare const Image: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLImageElement>, "onLoadStart" | "src" | "srcSet" | "sizes" | "alt" | "loading"> & {
|
|
75
75
|
/**
|
|
76
76
|
* Optional alt text.
|
|
77
77
|
*/
|
|
@@ -141,4 +141,4 @@ export declare const Image: import("react").ForwardRefExoticComponent<Omit<HTMLA
|
|
|
141
141
|
* @param size Size of the loaded image.
|
|
142
142
|
*/
|
|
143
143
|
onSizeChange?: (size?: Size) => void;
|
|
144
|
-
} & import(
|
|
144
|
+
} & import('react').RefAttributes<HTMLImageElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
export type MasonryGridOrientation = 'horizontal' | 'vertical';
|
|
3
3
|
export type MasonryGridProps = {
|
|
4
4
|
alignSections?: boolean;
|
|
@@ -25,4 +25,4 @@ export type MasonryGridProps = {
|
|
|
25
25
|
* rows*, whereas in a horizontally oriented grid, *number of sections* refers
|
|
26
26
|
* to the *number of columns*.
|
|
27
27
|
*/
|
|
28
|
-
export declare const MasonryGrid: import(
|
|
28
|
+
export declare const MasonryGrid: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & MasonryGridProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
export type CycleButtonProps = Omit<HTMLAttributes<HTMLButtonElement>, 'disabled' | 'onChange'> & {
|
|
3
3
|
index?: number;
|
|
4
4
|
isDisabled?: boolean;
|
|
@@ -8,7 +8,7 @@ export type CycleButtonProps = Omit<HTMLAttributes<HTMLButtonElement>, 'disabled
|
|
|
8
8
|
}[];
|
|
9
9
|
onChange?: (value: string, index: number) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const OptionButton: import(
|
|
11
|
+
export declare const OptionButton: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLButtonElement>, "disabled" | "onChange"> & {
|
|
12
12
|
index?: number;
|
|
13
13
|
isDisabled?: boolean;
|
|
14
14
|
options: string[] | {
|
|
@@ -16,4 +16,4 @@ export declare const OptionButton: import("react").ForwardRefExoticComponent<Omi
|
|
|
16
16
|
value: string;
|
|
17
17
|
}[];
|
|
18
18
|
onChange?: (value: string, index: number) => void;
|
|
19
|
-
} & import(
|
|
19
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { Size } from 'spase';
|
|
3
3
|
export type PanoramaHTMLAttributes = Omit<HTMLAttributes<HTMLDivElement>, 'onResize'>;
|
|
4
4
|
export type PanoramaProps = {
|
|
@@ -74,4 +74,4 @@ export type PanoramaProps = {
|
|
|
74
74
|
/**
|
|
75
75
|
* A component containing a pannable 360° panorama image. The angle supports two-way binding.
|
|
76
76
|
*/
|
|
77
|
-
export declare const Panorama: import(
|
|
77
|
+
export declare const Panorama: import('react').ForwardRefExoticComponent<PanoramaHTMLAttributes & PanoramaProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { Size } from 'spase';
|
|
3
|
+
import { PanoramaProps } from './Panorama.js';
|
|
4
4
|
export type PanoramaSliderProps = PanoramaProps & {
|
|
5
5
|
/**
|
|
6
6
|
* Field-of-view (0.0 - 360.0 degrees, inclusive) that represents the size of
|
|
@@ -33,7 +33,7 @@ export type PanoramaSliderProps = PanoramaProps & {
|
|
|
33
33
|
* backing {@link Panorama}.
|
|
34
34
|
* @exports PanoramaSliderTrack The slide track.
|
|
35
35
|
*/
|
|
36
|
-
export declare const PanoramaSlider: import(
|
|
36
|
+
export declare const PanoramaSlider: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & PanoramaProps & {
|
|
37
37
|
/**
|
|
38
38
|
* Field-of-view (0.0 - 360.0 degrees, inclusive) that represents the size of
|
|
39
39
|
* the reticle. 360 indicates the reticle covers the entire image. If this is
|
|
@@ -55,7 +55,7 @@ export declare const PanoramaSlider: import("react").ForwardRefExoticComponent<H
|
|
|
55
55
|
* is, this prop is ignored.
|
|
56
56
|
*/
|
|
57
57
|
viewportSize?: Size;
|
|
58
|
-
} & import(
|
|
59
|
-
export declare const PanoramaSliderTrack: import(
|
|
60
|
-
export declare const PanoramaSliderReticle: import(
|
|
61
|
-
export declare const PanoramaSliderIndicator: import(
|
|
58
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
59
|
+
export declare const PanoramaSliderTrack: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
60
|
+
export declare const PanoramaSliderReticle: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
61
|
+
export declare const PanoramaSliderIndicator: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
type Orientation = 'horizontal' | 'vertical';
|
|
3
|
+
type Range = [number, number];
|
|
4
|
+
export type RangeSliderProps = {
|
|
5
|
+
decimalPlaces?: number;
|
|
6
|
+
knobHeight?: number;
|
|
7
|
+
knobPadding?: number;
|
|
8
|
+
knobWidth?: number;
|
|
9
|
+
max: number;
|
|
10
|
+
min: number;
|
|
11
|
+
orientation?: Orientation;
|
|
12
|
+
range?: Range;
|
|
13
|
+
steps?: number;
|
|
14
|
+
onRangeChange?: (range: Range) => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const RangeSlider: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RangeSliderProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export declare const RangeSliderGutter: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export declare const RangeSliderLabel: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export declare const RangeSliderHighlight: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export declare const RangeSliderKnob: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
export type SelectableButtonProps = HTMLAttributes<HTMLButtonElement> & {
|
|
3
3
|
isDeselectable?: boolean;
|
|
4
4
|
isDisabled?: boolean;
|
|
@@ -8,7 +8,7 @@ export type SelectableButtonProps = HTMLAttributes<HTMLButtonElement> & {
|
|
|
8
8
|
onSelect?: () => void;
|
|
9
9
|
onToggle?: (isSelected: boolean) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const SelectableButton: import(
|
|
11
|
+
export declare const SelectableButton: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLButtonElement> & {
|
|
12
12
|
isDeselectable?: boolean;
|
|
13
13
|
isDisabled?: boolean;
|
|
14
14
|
isSelected?: boolean;
|
|
@@ -16,4 +16,4 @@ export declare const SelectableButton: import("react").ForwardRefExoticComponent
|
|
|
16
16
|
onDeselect?: () => void;
|
|
17
17
|
onSelect?: () => void;
|
|
18
18
|
onToggle?: (isSelected: boolean) => void;
|
|
19
|
-
} & import(
|
|
19
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
export type SliderOrientation = 'horizontal' | 'vertical';
|
|
3
3
|
export type SliderProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
/**
|
|
@@ -79,7 +79,7 @@ export type SliderProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
79
79
|
* @exports SliderTrack The component for the slide track on either side of the
|
|
80
80
|
* knob.
|
|
81
81
|
*/
|
|
82
|
-
export declare const Slider: import(
|
|
82
|
+
export declare const Slider: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
83
83
|
/**
|
|
84
84
|
* By default the position is a value from 0 - 1, 0 being the start of the
|
|
85
85
|
* slider and 1 being the end. Switching on this flag inverts this behavior,
|
|
@@ -143,7 +143,7 @@ export declare const Slider: import("react").ForwardRefExoticComponent<HTMLAttri
|
|
|
143
143
|
* Handler invoked when dragging begins.
|
|
144
144
|
*/
|
|
145
145
|
onDragStart?: () => void;
|
|
146
|
-
} & import(
|
|
146
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
147
147
|
export declare const SliderTrack: ({ ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
148
148
|
export declare const SliderKnob: ({ ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
149
149
|
export declare const SliderLabel: ({ ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
type Orientation = 'horizontal' | 'vertical';
|
|
3
3
|
export type StepwiseSliderProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
/**
|
|
@@ -104,7 +104,7 @@ export type StepwiseSliderProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
104
104
|
* @exports StepwiseSliderTrack The component for the slide track on either side
|
|
105
105
|
* of the knob.
|
|
106
106
|
*/
|
|
107
|
-
export declare const StepwiseSlider: import(
|
|
107
|
+
export declare const StepwiseSlider: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
108
108
|
/**
|
|
109
109
|
* By default the position is a value from 0 - 1, 0 being the start of the
|
|
110
110
|
* slider and 1 being the end. Switching on this flag inverts this behavior,
|
|
@@ -189,7 +189,7 @@ export declare const StepwiseSlider: import("react").ForwardRefExoticComponent<H
|
|
|
189
189
|
* Handler invoked when dragging begins.
|
|
190
190
|
*/
|
|
191
191
|
onDragStart?: () => void;
|
|
192
|
-
} & import(
|
|
192
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
193
193
|
export declare const StepwiseSliderTrack: ({ ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
194
194
|
export declare const StepwiseSliderKnob: ({ ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
195
195
|
export declare const StepwiseSliderLabel: ({ ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
export type SwipeContainerProps = HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
isEnabled?: boolean;
|
|
4
4
|
threshold?: number;
|
|
@@ -11,11 +11,11 @@ export type SwipeContainerProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
11
11
|
* An empty component with a backing `<div>` element that detects swipe
|
|
12
12
|
* gestures.
|
|
13
13
|
*/
|
|
14
|
-
export declare const SwipeRegion: import(
|
|
14
|
+
export declare const SwipeRegion: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
15
15
|
isEnabled?: boolean;
|
|
16
16
|
threshold?: number;
|
|
17
17
|
onSwipeDown?: () => void;
|
|
18
18
|
onSwipeLeft?: () => void;
|
|
19
19
|
onSwipeRight?: () => void;
|
|
20
20
|
onSwipeUp?: () => void;
|
|
21
|
-
} & import(
|
|
21
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
export type TextFieldProps = HTMLAttributes<HTMLInputElement> & {
|
|
3
3
|
emptyValue?: string;
|
|
4
4
|
isDisabled?: boolean;
|
|
@@ -10,7 +10,7 @@ export type TextFieldProps = HTMLAttributes<HTMLInputElement> & {
|
|
|
10
10
|
onUnfocus?: (value: string) => void;
|
|
11
11
|
onValueChange?: (value: string) => void;
|
|
12
12
|
};
|
|
13
|
-
export declare const TextField: import(
|
|
13
|
+
export declare const TextField: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLInputElement> & {
|
|
14
14
|
emptyValue?: string;
|
|
15
15
|
isDisabled?: boolean;
|
|
16
16
|
isRequired?: boolean;
|
|
@@ -20,4 +20,4 @@ export declare const TextField: import("react").ForwardRefExoticComponent<HTMLAt
|
|
|
20
20
|
onFocus?: (value: string) => void;
|
|
21
21
|
onUnfocus?: (value: string) => void;
|
|
22
22
|
onValueChange?: (value: string) => void;
|
|
23
|
-
} & import(
|
|
23
|
+
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { Size } from 'spase';
|
|
3
3
|
export type VideoProps = Omit<HTMLAttributes<HTMLVideoElement>, 'autoPlay' | 'controls' | 'loop' | 'muted' | 'playsInline' | 'poster' | 'onCanPlay' | 'onEnded' | 'onPause' | 'onPlay' | 'onTimeUpdate'> & {
|
|
4
4
|
autoLoop?: boolean;
|
|
5
5
|
autoPlay?: boolean;
|
|
@@ -19,7 +19,18 @@ export type VideoProps = Omit<HTMLAttributes<HTMLVideoElement>, 'autoPlay' | 'co
|
|
|
19
19
|
onSizeChange?: (size?: Size) => void;
|
|
20
20
|
onTimeUpdate?: (currentTime: number, duration: number) => void;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* A component for displaying video content.
|
|
24
|
+
*
|
|
25
|
+
* Note that this component will handle HLS streams automatically, but only if
|
|
26
|
+
* the browser supports it. If the browser does not support HLS streams, then
|
|
27
|
+
* you must include `hls.js` in your project and ensure that it is loaded before
|
|
28
|
+
* this component is rendered, i.e. by including it in the `<head>` of your
|
|
29
|
+
* HTML document.
|
|
30
|
+
*
|
|
31
|
+
* @see {@link https://www.npmjs.com/package/hls.js}
|
|
32
|
+
*/
|
|
33
|
+
export declare const Video: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLVideoElement>, "onCanPlay" | "onEnded" | "onPause" | "onPlay" | "onTimeUpdate" | "autoPlay" | "controls" | "loop" | "muted" | "playsInline" | "poster"> & {
|
|
23
34
|
autoLoop?: boolean;
|
|
24
35
|
autoPlay?: boolean;
|
|
25
36
|
hasControls?: boolean;
|
|
@@ -37,4 +48,4 @@ export declare const Video: import("react").ForwardRefExoticComponent<Omit<HTMLA
|
|
|
37
48
|
onPlay?: () => void;
|
|
38
49
|
onSizeChange?: (size?: Size) => void;
|
|
39
50
|
onTimeUpdate?: (currentTime: number, duration: number) => void;
|
|
40
|
-
} & import(
|
|
51
|
+
} & import('react').RefAttributes<HTMLVideoElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
2
|
type Alignment = 'tl' | 'tc' | 'tr' | 'cl' | 'cr' | 'bl' | 'bc' | 'br';
|
|
3
3
|
export type WithToolTipProps = Pick<HTMLAttributes<HTMLElement>, 'className' | 'style'> & PropsWithChildren<{
|
|
4
4
|
/**
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from './Accordion.js';
|
|
2
|
+
export * from './Burger.js';
|
|
3
|
+
export * from './BurgerButton.js';
|
|
4
|
+
export * from './Button.js';
|
|
5
|
+
export * from './Carousel.js';
|
|
6
|
+
export * from './Collection.js';
|
|
7
|
+
export * from './Counter.js';
|
|
8
|
+
export * from './CoverImage.js';
|
|
9
|
+
export * from './CoverVideo.js';
|
|
10
|
+
export * from './Dial.js';
|
|
11
|
+
export * from './Dropdown.js';
|
|
12
|
+
export * from './FlatSVG.js';
|
|
13
|
+
export * from './Image.js';
|
|
14
|
+
export * from './MasonryGrid.js';
|
|
15
|
+
export * from './OptionButton.js';
|
|
16
|
+
export * from './Panorama.js';
|
|
17
|
+
export * from './PanoramaSlider.js';
|
|
18
|
+
export * from './RangeSlider.js';
|
|
19
|
+
export * from './SelectableButton.js';
|
|
20
|
+
export * from './Slider.js';
|
|
21
|
+
export * from './StepwiseSlider.js';
|
|
22
|
+
export * from './SwipeRegion.js';
|
|
23
|
+
export * from './TextField.js';
|
|
24
|
+
export * from './Video.js';
|
|
25
|
+
export * from './WithTooltip.js';
|