etudes 8.4.0 → 9.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.
@@ -201,9 +201,9 @@ export type AccordionProps<I, S extends AccordionSection<I> = AccordionSection<I
201
201
  * are generated based on the provided `ItemComponent` while each section header
202
202
  * is optionally provided by `HeaderComponent` or generated automatically.
203
203
  */
204
- export declare const Accordion: <I, S extends AccordionSection<I> = AccordionSection<I>>(props: AccordionProps<I, S> & {
204
+ export declare const Accordion: <I, S extends AccordionSection<I> = AccordionSection<I>>(props: Readonly<AccordionProps<I, S> & {
205
205
  ref?: Ref<HTMLDivElement>;
206
- }) => ReactElement;
206
+ }>) => ReactElement;
207
207
  export declare const AccordionHeader: ({ children, ...props }: HTMLAttributes<HTMLButtonElement> & DropdownToggleProps) => import("react/jsx-runtime").JSX.Element;
208
208
  export declare const AccordionExpandIcon: ({ children, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
209
209
  export declare const AccordionCollapseIcon: ({ children, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
@@ -4,22 +4,11 @@ export type BurgerProps = HTMLAttributes<HTMLDivElement> & {
4
4
  isSplit?: boolean;
5
5
  isTailHidden?: boolean;
6
6
  numberOfBars?: 2 | 3;
7
- onActivate?: () => void;
8
- onDeactivate?: () => void;
9
- onToggle?: (isActive: boolean) => void;
10
7
  };
11
8
  /**
12
9
  * Three-striped burger component that transforms into an "X" when active.
13
10
  *
14
11
  * @exports BurgerBar Component for each bar in the burger.
15
12
  */
16
- export declare const Burger: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
17
- isActive?: boolean;
18
- isSplit?: boolean;
19
- isTailHidden?: boolean;
20
- numberOfBars?: 2 | 3;
21
- onActivate?: () => void;
22
- onDeactivate?: () => void;
23
- onToggle?: (isActive: boolean) => void;
24
- } & import('react').RefAttributes<HTMLDivElement>>;
13
+ export declare const Burger: import('react').ForwardRefExoticComponent<Readonly<BurgerProps> & import('react').RefAttributes<HTMLDivElement>>;
25
14
  export declare const BurgerBar: ({ ...props }: HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
- import { HTMLAttributes } from 'react';
1
+ import { ButtonHTMLAttributes } from 'react';
2
2
  import { BurgerProps } from './Burger.js';
3
- export type BurgerButtonProps = Omit<HTMLAttributes<HTMLButtonElement> & BurgerProps, 'onToggle'> & {
3
+ export type BurgerButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement> & BurgerProps, 'onToggle'> & {
4
4
  onActivate?: () => void;
5
5
  onDeactivate?: () => void;
6
6
  onToggle?: (isActive: boolean) => void;
@@ -11,17 +11,5 @@ 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('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLButtonElement> & HTMLAttributes<HTMLDivElement> & {
15
- isActive?: boolean;
16
- isSplit?: boolean;
17
- isTailHidden?: boolean;
18
- numberOfBars?: 2 | 3;
19
- onActivate?: () => void;
20
- onDeactivate?: () => void;
21
- onToggle?: (isActive: boolean) => void;
22
- }, "onToggle"> & {
23
- onActivate?: () => void;
24
- onDeactivate?: () => void;
25
- onToggle?: (isActive: boolean) => void;
26
- } & import('react').RefAttributes<HTMLButtonElement>>;
27
- export declare const BurgerButtonBar: ({ ...props }: HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const BurgerButton: import('react').ForwardRefExoticComponent<Readonly<BurgerButtonProps> & import('react').RefAttributes<HTMLButtonElement>>;
15
+ export declare const BurgerButtonBar: ({ ...props }: import('react').HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,9 @@
1
- import { HTMLAttributes } from 'react';
2
- export type ButtonProps = HTMLAttributes<HTMLElement> & {
1
+ import { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
2
+ import { LinkProps } from 'react-router';
3
+ type ButtonVariantProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'aria-disabled' | 'aria-label' | 'disabled' | 'type'>;
4
+ type LinkVariantProps = Omit<LinkProps, 'aria-disabled' | 'aria-label' | 'to'>;
5
+ type AnchorVariantProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'aria-disabled' | 'aria-label' | 'rel' | 'target'>;
6
+ export type ButtonProps = (AnchorVariantProps | LinkVariantProps | ButtonVariantProps) & {
3
7
  href?: string;
4
8
  isDisabled?: boolean;
5
9
  label?: string;
@@ -7,4 +11,5 @@ export type ButtonProps = HTMLAttributes<HTMLElement> & {
7
11
  to?: string;
8
12
  type?: HTMLButtonElement['type'];
9
13
  };
10
- export declare function Button({ children, className, href, isDisabled, label, opensInNewTab, to, type, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function Button({ children, className, href, isDisabled, label, opensInNewTab, to, type, ...props }: Readonly<ButtonProps>): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { ComponentType, ForwardedRef, HTMLAttributes, ReactElement } from 'react';
2
2
  export type CarouselOrientation = 'horizontal' | 'vertical';
3
- export type CarouselProps<I> = HTMLAttributes<HTMLElement> & {
3
+ export type CarouselProps<I> = Omit<HTMLAttributes<HTMLDivElement>, 'role' | 'onClick' | 'onPointerCancel' | 'onPointerDown' | 'onPointerLeave' | 'onPointerUp'> & {
4
4
  /**
5
5
  * Current item index.
6
6
  */
@@ -48,6 +48,6 @@ export type CarouselProps<I> = HTMLAttributes<HTMLElement> & {
48
48
  */
49
49
  ItemComponent: ComponentType<I>;
50
50
  };
51
- export declare const Carousel: <I extends HTMLAttributes<HTMLElement>>(props: CarouselProps<I> & {
51
+ export declare const Carousel: <I extends HTMLAttributes<HTMLElement>>(props: Readonly<CarouselProps<I> & {
52
52
  ref?: ForwardedRef<HTMLDivElement>;
53
- }) => ReactElement;
53
+ }>) => ReactElement;
@@ -166,6 +166,6 @@ export type CollectionProps<T> = HTMLAttributes<HTMLDivElement> & {
166
166
  * on the provided `ItemComponent`. This component supports different layouts in
167
167
  * both horizontal and vertical orientations.
168
168
  */
169
- export declare const Collection: <T>(props: CollectionProps<T> & {
169
+ export declare const Collection: <T>(props: Readonly<CollectionProps<T> & {
170
170
  ref?: Ref<HTMLDivElement>;
171
- }) => ReactElement;
171
+ }>) => ReactElement;
@@ -1,12 +1,13 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { TextFieldProps } from './TextField.js';
3
- export declare const Counter: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLElement>, "onChange"> & {
3
+ export type CounterProps = 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('react').RefAttributes<HTMLDivElement>>;
9
+ };
10
+ export declare const Counter: import('react').ForwardRefExoticComponent<Readonly<CounterProps> & import('react').RefAttributes<HTMLDivElement>>;
10
11
  export declare const CounterTextField: ({ ...props }: TextFieldProps) => import("react/jsx-runtime").JSX.Element;
11
12
  export declare const CounterAddButton: ({ children, ...props }: HTMLAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
12
13
  export declare const CounterSubtractButton: ({ children, ...props }: HTMLAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
@@ -7,12 +7,6 @@ export type CoverImageProps = Omit<HTMLAttributes<HTMLDivElement>, 'onLoadStart'
7
7
  */
8
8
  aspectRatio?: number;
9
9
  };
10
- export declare const CoverImage: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "onLoadStart"> & Pick<ImageProps, "onLoadStart" | "src" | "srcSet" | "sizes" | "onLoadComplete" | "onLoadError" | "alt" | "loadingMode"> & {
11
- /**
12
- * The known aspect ratio of the image, expressed by width / height. If
13
- * unprovided, it will be inferred after loading the image.
14
- */
15
- aspectRatio?: number;
16
- } & import('react').RefAttributes<HTMLDivElement>>;
10
+ export declare const CoverImage: import('react').ForwardRefExoticComponent<Readonly<CoverImageProps> & import('react').RefAttributes<HTMLDivElement>>;
17
11
  export declare const CoverImageViewport: ({ children, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
18
12
  export declare const CoverImageContent: ({ children, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1,18 +1,12 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { VideoProps } from './Video.js';
3
- export type CoverVideoProps = HTMLAttributes<HTMLDivElement> & Pick<VideoProps, 'autoLoop' | 'autoPlay' | 'hasControls' | 'isMuted' | 'playsInline' | 'posterSrc' | 'src' | 'onPause' | 'onPlay' | 'onCanPlay' | 'onEnd' | 'onFullscreenChange' | 'onLoadMetadata' | 'onLoadMetadataComplete' | 'onLoadMetadataError' | 'onSizeChange'> & {
3
+ export type CoverVideoProps = Omit<HTMLAttributes<HTMLDivElement>, 'onCanPlay' | 'onPause' | 'onPlay'> & 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
6
6
  * unprovided, it will be inferred after loading the video.
7
7
  */
8
8
  aspectRatio?: number;
9
9
  };
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
- /**
12
- * The known aspect ratio of the video, expressed by width / height. If
13
- * unprovided, it will be inferred after loading the video.
14
- */
15
- aspectRatio?: number;
16
- } & import('react').RefAttributes<HTMLDivElement>>;
10
+ export declare const CoverVideo: import('react').ForwardRefExoticComponent<Readonly<CoverVideoProps> & import('react').RefAttributes<HTMLDivElement>>;
17
11
  export declare const CoverVideoViewport: ({ children, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
18
12
  export declare const CoverVideoContent: ({ children, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
@@ -39,39 +39,6 @@ export type DialProps = HTMLAttributes<HTMLDivElement> & {
39
39
  * @exports DialKnob
40
40
  * @exports DialTrack
41
41
  */
42
- export declare const Dial: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
43
- /**
44
- * Current angle reading of the compass, between 0.0 - 360.0 degrees,
45
- * inclusive.
46
- */
47
- angle?: number;
48
- /**
49
- * Gap between each dashed line on the track.
50
- */
51
- trackGap?: number;
52
- /**
53
- * Length of the knob along the track expressed in degrees, between 0.0 and
54
- * 360.0 degrees, exclusive. If set to 0 or 360, the knob disappears.
55
- *
56
- * @example Suppose the compass were to be used to control a photosphere of an
57
- * image that is 1000 x 500, and the window size is 500 x 500, that
58
- * would mean the FOV is 500 / 1000 * 360 = 180 degrees.
59
- */
60
- knobLength?: number;
61
- /**
62
- * Radius of the compass.
63
- */
64
- radius?: number;
65
- /**
66
- * The thickness of the knob, which is equivalent to the `stroke-width` of the
67
- * `<path>` element.
68
- */
69
- knobThickness?: number;
70
- /**
71
- * The thickness of the circular track, which is equivalent to the
72
- * `stroke-width` of the `<circle>` element.
73
- */
74
- trackThickness?: number;
75
- } & import('react').RefAttributes<HTMLDivElement>>;
42
+ export declare const Dial: import('react').ForwardRefExoticComponent<Readonly<DialProps> & import('react').RefAttributes<HTMLDivElement>>;
76
43
  export declare const DialTrack: ({ ...props }: SVGAttributes<SVGCircleElement>) => import("react/jsx-runtime").JSX.Element;
77
44
  export declare const DialKnob: ({ ...props }: SVGAttributes<SVGPathElement>) => import("react/jsx-runtime").JSX.Element;
@@ -94,9 +94,9 @@ export type DropdownProps<T extends DropdownItemData = DropdownItemData> = HTMLA
94
94
  * supports both horizontal and vertical orientations. Provide `items` and
95
95
  * `ItemComponent` props to populate.
96
96
  */
97
- export declare const Dropdown: <T extends DropdownItemData = DropdownItemData>(props: DropdownProps<T> & {
97
+ export declare const Dropdown: <T extends DropdownItemData = DropdownItemData>(props: Readonly<DropdownProps<T> & {
98
98
  ref?: Ref<HTMLDivElement>;
99
- }) => ReactElement;
99
+ }>) => ReactElement;
100
100
  export declare const DropdownToggle: ({ children, ...props }: HTMLAttributes<HTMLButtonElement> & DropdownToggleProps) => import("react/jsx-runtime").JSX.Element;
101
101
  export declare const DropdownExpandIcon: ({ children, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
102
102
  export declare const DropdownCollapseIcon: ({ children, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export type FlatSVGProps = HTMLAttributes<HTMLDivElement> & {
2
+ export type FlatSVGProps = Omit<HTMLAttributes<HTMLElement>, 'role'> & {
3
3
  /**
4
4
  * Specifies how the SVG should be resized:
5
5
  * - `preserve`: Default: the SVG size attributes are unchanged.
@@ -21,12 +21,6 @@ export type FlatSVGProps = HTMLAttributes<HTMLDivElement> & {
21
21
  * all of its child nodes.
22
22
  */
23
23
  shouldStripClasses?: boolean;
24
- /**
25
- * Specifies whether extraneous attributes should be removed from the SVG root
26
- * node. The `whitelistedAttributes` prop defines what attributes should be
27
- * kept.
28
- */
29
- shouldStripExtraneousAttributes?: boolean;
30
24
  /**
31
25
  * Specifies whether the 'id' attribute should be removed in the SVG root node
32
26
  * and all of its child nodes.
@@ -36,71 +30,16 @@ export type FlatSVGProps = HTMLAttributes<HTMLDivElement> & {
36
30
  * Specifies whether the 'x' and 'y' attributes should be removed in the SVG
37
31
  * root node.
38
32
  */
39
- shouldStripPosition?: boolean;
33
+ shouldStripPositions?: boolean;
40
34
  /**
41
35
  * Specifies whether the 'style' atribute and any <style> nodes should be
42
36
  * removed in the SVG root node and all of its child nodes.
43
37
  */
44
38
  shouldStripStyles?: boolean;
45
- /**
46
- * Specifies attribute names to exclude from being stripped if
47
- * `shouldStripExtraneousAttributes` is enabled. By default, only `viewBox` is
48
- * whitelisted.
49
- */
50
- whitelistedAttributes?: string[];
51
39
  };
52
40
  /**
53
41
  * A component whose root element wraps an SVG markup. When wrapping the SVG, it
54
42
  * will attempt to sanitize the markup (i.e. stripping useless attributes)
55
43
  * according to the props specified.
56
44
  */
57
- export declare const FlatSVG: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
58
- /**
59
- * Specifies how the SVG should be resized:
60
- * - `preserve`: Default: the SVG size attributes are unchanged.
61
- * - `none`: The SVG size attributes are stripped.
62
- * - `fill`: The SVG will fill the container, i.e. `width="100%"` and
63
- * `height="100%"`.
64
- * - `height`: 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?: "preserve" | "none" | "fill" | "height" | "width";
70
- /**
71
- * The SVG string markup, i.e. "<svg>...</svg>".
72
- */
73
- svg: string;
74
- /**
75
- * Specifies whether the 'class' should be removed in the SVG root node and
76
- * all of its child nodes.
77
- */
78
- shouldStripClasses?: boolean;
79
- /**
80
- * Specifies whether extraneous attributes should be removed from the SVG root
81
- * node. The `whitelistedAttributes` prop defines what attributes should be
82
- * kept.
83
- */
84
- shouldStripExtraneousAttributes?: boolean;
85
- /**
86
- * Specifies whether the 'id' attribute should be removed in the SVG root node
87
- * and all of its child nodes.
88
- */
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;
95
- /**
96
- * Specifies whether the 'style' atribute and any <style> nodes should be
97
- * removed in the SVG root node and all of its child nodes.
98
- */
99
- shouldStripStyles?: boolean;
100
- /**
101
- * Specifies attribute names to exclude from being stripped if
102
- * `shouldStripExtraneousAttributes` is enabled. By default, only `viewBox` is
103
- * whitelisted.
104
- */
105
- whitelistedAttributes?: string[];
106
- } & import('react').RefAttributes<HTMLDivElement>>;
45
+ export declare const FlatSVG: import('react').ForwardRefExoticComponent<Readonly<FlatSVGProps> & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { Size } from 'spase';
3
- export type ImageProps = Omit<HTMLAttributes<HTMLImageElement>, 'alt' | 'srcSet' | 'sizes' | 'src' | 'loading' | 'onLoadStart'> & {
3
+ export type ImageProps = Omit<HTMLAttributes<HTMLImageElement>, 'alt' | 'loading' | 'sizes' | 'src' | 'srcSet' | 'onLoadStart'> & {
4
4
  /**
5
5
  * Optional alt text.
6
6
  */
@@ -71,74 +71,4 @@ export type ImageProps = Omit<HTMLAttributes<HTMLImageElement>, 'alt' | 'srcSet'
71
71
  */
72
72
  onSizeChange?: (size?: Size) => void;
73
73
  };
74
- export declare const Image: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLImageElement>, "onLoadStart" | "src" | "srcSet" | "sizes" | "alt" | "loading"> & {
75
- /**
76
- * Optional alt text.
77
- */
78
- alt?: string;
79
- /**
80
- * Loading mode for the image.
81
- */
82
- loadingMode?: "none" | "lazy" | "preload";
83
- /**
84
- * Descriptor for the `srcset` attribute of the `<img>` element. If `sizes` is
85
- * also provided, then each entry in this list must have a `width` value and
86
- * no `pixelDensity` value.
87
- */
88
- srcSet?: {
89
- /**
90
- * A URL specifying an image location.
91
- */
92
- src: string;
93
- /**
94
- * Optional intrinsic width (in pixels) of the image expressed as a positive
95
- * integer. If set, leave `pixelDensity` unspecified (only one of `width` or
96
- * `pixelDensity` can be specified).
97
- */
98
- width?: number;
99
- /**
100
- * Optional pixel density of the image expressed as a positive floating
101
- * number. If set, leave `width` unspecified (only one of `width` or
102
- * `pixelDensity` can be specified.
103
- */
104
- pixelDensity?: number;
105
- }[];
106
- /**
107
- * Descriptor for the `sizes` attribute of the `<img>` element.
108
- */
109
- sizes?: {
110
- /**
111
- * Optional media query condition (without brackets, i.e. `max-width:
112
- * 100px`). Note that this must be omitted for the last item in this list of
113
- * sizes.
114
- */
115
- mediaCondition?: string;
116
- /**
117
- * A CSS size value indicating the size of the image's slot on the page,
118
- * i.e. `100px`, `100vw`, `50%`, etc.
119
- */
120
- width: string;
121
- }[];
122
- /**
123
- * Fallback image URL for browsers that do not support the `srcset` attribute.
124
- */
125
- src?: string;
126
- /**
127
- * Handler invoked when image load begins.
128
- */
129
- onLoadStart?: () => void;
130
- /**
131
- * Handler invoked when image load completes.
132
- */
133
- onLoadComplete?: () => void;
134
- /**
135
- * Handler invoked when image load encounters an error.
136
- */
137
- onLoadError?: () => void;
138
- /**
139
- * Handler invoked when the size of the loaded image changes.
140
- *
141
- * @param size Size of the loaded image.
142
- */
143
- onSizeChange?: (size?: Size) => void;
144
- } & import('react').RefAttributes<HTMLImageElement>>;
74
+ export declare const Image: import('react').ForwardRefExoticComponent<Readonly<ImageProps> & import('react').RefAttributes<HTMLImageElement>>;
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  export type MasonryGridOrientation = 'horizontal' | 'vertical';
3
- export type MasonryGridProps = {
3
+ export type MasonryGridProps = Omit<HTMLAttributes<HTMLDivElement>, 'role'> & {
4
4
  alignSections?: boolean;
5
5
  horizontalSpacing?: number;
6
6
  isReversed?: 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('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & MasonryGridProps & import('react').RefAttributes<HTMLDivElement>>;
28
+ export declare const MasonryGrid: import('react').ForwardRefExoticComponent<Readonly<MasonryGridProps> & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
- import { HTMLAttributes } from 'react';
2
- export type CycleButtonProps = Omit<HTMLAttributes<HTMLButtonElement>, 'disabled' | 'onChange'> & {
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ export type CycleButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'aria-disabled' | 'aria-label' | 'disabled' | 'onChange'> & {
3
3
  index?: number;
4
4
  isDisabled?: boolean;
5
5
  options: string[] | {
@@ -8,12 +8,4 @@ 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('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLButtonElement>, "disabled" | "onChange"> & {
12
- index?: number;
13
- isDisabled?: boolean;
14
- options: string[] | {
15
- label: string;
16
- value: string;
17
- }[];
18
- onChange?: (value: string, index: number) => void;
19
- } & import('react').RefAttributes<HTMLButtonElement>>;
11
+ export declare const OptionButton: import('react').ForwardRefExoticComponent<Readonly<CycleButtonProps> & import('react').RefAttributes<HTMLButtonElement>>;
@@ -1,7 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { Size } from 'spase';
3
- export type PanoramaHTMLAttributes = Omit<HTMLAttributes<HTMLDivElement>, 'onResize'>;
4
- export type PanoramaProps = {
3
+ export type PanoramaProps = Omit<HTMLAttributes<HTMLDivElement>, 'aria-valuenow' | 'role'> & {
5
4
  /**
6
5
  * The current angle in degrees, 0.0 - 360.0, inclusive. When angle is 0 or
7
6
  * 360, the `zeroAnchor` position of the image is at the left bound of the
@@ -74,4 +73,4 @@ export type PanoramaProps = {
74
73
  /**
75
74
  * A component containing a pannable 360° panorama image. The angle supports two-way binding.
76
75
  */
77
- export declare const Panorama: import('react').ForwardRefExoticComponent<PanoramaHTMLAttributes & PanoramaProps & import('react').RefAttributes<HTMLDivElement>>;
76
+ export declare const Panorama: import('react').ForwardRefExoticComponent<Readonly<PanoramaProps> & import('react').RefAttributes<HTMLDivElement>>;
@@ -33,29 +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('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & PanoramaProps & {
37
- /**
38
- * Field-of-view (0.0 - 360.0 degrees, inclusive) that represents the size of
39
- * the reticle. 360 indicates the reticle covers the entire image. If this is
40
- * unspecified, the component will attempt to automatically calculate the FOV
41
- * using the `viewportSize` prop.
42
- */
43
- fov?: number;
44
- /**
45
- * Specifies which length (width or height) should be automatically
46
- * calculated. The counterpart must be known (if `width` is specified here,
47
- * the component's height must be known, i.e. it is specified in the CSS).
48
- * Defaults to `width`.
49
- */
50
- autoDimension?: "width" | "height";
51
- /**
52
- * Size of the viewport that this component is controlling. A viewport can be
53
- * thought of as a DOM element containing an aspect-filled image. This is used
54
- * to automatically calculate the FOV if `fov` prop is not specified. If it
55
- * is, this prop is ignored.
56
- */
57
- viewportSize?: Size;
58
- } & import('react').RefAttributes<HTMLDivElement>>;
36
+ export declare const PanoramaSlider: import('react').ForwardRefExoticComponent<Readonly<PanoramaSliderProps> & import('react').RefAttributes<HTMLDivElement>>;
59
37
  export declare const PanoramaSliderTrack: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
60
38
  export declare const PanoramaSliderReticle: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
61
39
  export declare const PanoramaSliderIndicator: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  type Orientation = 'horizontal' | 'vertical';
3
3
  type Range = [number, number];
4
- export type RangeSliderProps = {
4
+ export type RangeSliderProps = Omit<HTMLAttributes<HTMLDivElement>, 'aria-valuemax' | 'aria-valuemin' | 'role'> & {
5
5
  decimalPlaces?: number;
6
6
  knobHeight?: number;
7
7
  knobPadding?: number;
@@ -13,7 +13,7 @@ export type RangeSliderProps = {
13
13
  steps?: number;
14
14
  onRangeChange?: (range: Range) => void;
15
15
  };
16
- export declare const RangeSlider: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & RangeSliderProps & import('react').RefAttributes<HTMLDivElement>>;
16
+ export declare const RangeSlider: import('react').ForwardRefExoticComponent<Readonly<RangeSliderProps> & import('react').RefAttributes<HTMLDivElement>>;
17
17
  export declare const RangeSliderGutter: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
18
18
  export declare const RangeSliderLabel: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
19
19
  export declare const RangeSliderHighlight: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
- import { HTMLAttributes } from 'react';
2
- export type SelectableButtonProps = HTMLAttributes<HTMLButtonElement> & {
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ export type SelectableButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'aria-disabled' | 'aria-label' | 'aria-selected' | 'disabled' | 'onClick' | 'onSelect' | 'onToggle'> & {
3
3
  isDeselectable?: boolean;
4
4
  isDisabled?: boolean;
5
5
  isSelected?: boolean;
@@ -8,12 +8,4 @@ export type SelectableButtonProps = HTMLAttributes<HTMLButtonElement> & {
8
8
  onSelect?: () => void;
9
9
  onToggle?: (isSelected: boolean) => void;
10
10
  };
11
- export declare const SelectableButton: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLButtonElement> & {
12
- isDeselectable?: boolean;
13
- isDisabled?: boolean;
14
- isSelected?: boolean;
15
- label?: string;
16
- onDeselect?: () => void;
17
- onSelect?: () => void;
18
- onToggle?: (isSelected: boolean) => void;
19
- } & import('react').RefAttributes<HTMLButtonElement>>;
11
+ export declare const SelectableButton: import('react').ForwardRefExoticComponent<Readonly<SelectableButtonProps> & import('react').RefAttributes<HTMLButtonElement>>;
@@ -1,6 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  export type SliderOrientation = 'horizontal' | 'vertical';
3
- export type SliderProps = HTMLAttributes<HTMLDivElement> & {
3
+ export type SliderProps = Omit<HTMLAttributes<HTMLDivElement>, 'aria-orientation' | '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,
@@ -79,71 +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('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
83
- /**
84
- * By default the position is a value from 0 - 1, 0 being the start of the
85
- * slider and 1 being the end. Switching on this flag inverts this behavior,
86
- * where 0 becomes the end of the slider and 1 being the start.
87
- */
88
- isInverted?: boolean;
89
- /**
90
- * Specifies if the track is clickable to set the position of the knob.
91
- */
92
- isTrackInteractive?: boolean;
93
- /**
94
- * Indicates if position change events are dispatched only when dragging ends.
95
- * When disabled, aforementioned events are fired repeatedly while dragging.
96
- */
97
- onlyDispatchesOnDragEnd?: boolean;
98
- /**
99
- * Padding between the track and the knob in pixels.
100
- */
101
- trackPadding?: number;
102
- /**
103
- * Height of the knob in pixels.
104
- */
105
- knobHeight?: number;
106
- /**
107
- * Width of the knob in pixels.
108
- */
109
- knobWidth?: number;
110
- /**
111
- * Orientation of the slider.
112
- */
113
- orientation?: SliderOrientation;
114
- /**
115
- * The current position.
116
- */
117
- position?: number;
118
- /**
119
- * A function that returns the label to be displayed at a given slider
120
- * position.
121
- *
122
- * @param position The current slider position.
123
- *
124
- * @returns The label.
125
- */
126
- labelProvider?: (position: number) => string;
127
- /**
128
- * Handler invoked when position changes. This can either be invoked from the
129
- * `position` prop being changed or from the slider being dragged. Note that
130
- * if the event is emitted at the end of dragging due to
131
- * `onlyDispatchesOnDragEnd` set to `true`, the `isDragging` parameter here is
132
- * still `true`.
133
- *
134
- * @param position The current slider position.
135
- * @param isDragging Specifies if the position change is due to dragging.
136
- */
137
- onPositionChange?: (position: number, isDragging: boolean) => void;
138
- /**
139
- * Handler invoked when dragging ends.
140
- */
141
- onDragEnd?: () => void;
142
- /**
143
- * Handler invoked when dragging begins.
144
- */
145
- onDragStart?: () => void;
146
- } & import('react').RefAttributes<HTMLDivElement>>;
82
+ export declare const Slider: import('react').ForwardRefExoticComponent<Readonly<SliderProps> & import('react').RefAttributes<HTMLDivElement>>;
147
83
  export declare const SliderTrack: ({ ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
148
84
  export declare const SliderKnob: ({ ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
149
85
  export declare const SliderLabel: ({ ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;