@wistia/vhs 2.76.5-beta.ddd9dd16.9b3d348 → 2.76.5-beta.ea71fcba.1ee06f6
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/dist/components/Slider/Slider.d.ts +5 -5
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/index.cjs +473 -501
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +415 -443
- package/dist/index.mjs.map +4 -4
- package/package.json +1 -1
- package/dist/components/MediaObject/MediaObject.d.ts +0 -36
- package/dist/components/MediaObject/MediaObject.d.ts.map +0 -1
- package/dist/components/MediaObject/index.d.ts +0 -2
- package/dist/components/MediaObject/index.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef, JSX } from 'react';
|
|
2
|
-
type
|
|
3
|
-
export type SliderProps =
|
|
2
|
+
type ComponentPropsWithoutRefWithoutDefaultValue = Omit<ComponentPropsWithoutRef<'div'>, 'defaultValue' | 'onChange'>;
|
|
3
|
+
export type SliderProps = ComponentPropsWithoutRefWithoutDefaultValue & {
|
|
4
4
|
/**
|
|
5
5
|
* aria-label for screen-readers to apply to the thumbs. Use an array for more than one thumb.
|
|
6
6
|
* The length of the array must match the number of thumbs in the value array.
|
|
@@ -29,7 +29,7 @@ export type SliderProps = ComponentPropsWithoutRefWithoutOnChange & {
|
|
|
29
29
|
* Don't pass a default value if the slider is controlled (i.e. if you already
|
|
30
30
|
* use the `value` prop).
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
defaultValue?: number[] | number | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* If `true` the thumbs can't be moved.
|
|
35
35
|
*/
|
|
@@ -53,12 +53,12 @@ export type SliderProps = ComponentPropsWithoutRefWithoutOnChange & {
|
|
|
53
53
|
*/
|
|
54
54
|
step?: number;
|
|
55
55
|
/**
|
|
56
|
-
* Like '
|
|
56
|
+
* Like 'defaultValue' but for controlled components.
|
|
57
57
|
*/
|
|
58
58
|
value?: number[] | number;
|
|
59
59
|
};
|
|
60
60
|
export declare const Slider: {
|
|
61
|
-
({ ariaLabel, ariaLabelledby, ariaValuetext, disabled,
|
|
61
|
+
({ ariaLabel, ariaLabelledby, ariaValuetext, disabled, defaultValue, max, min, onChange, step, value, "data-testid": passedDataTestId, ...otherProps }: SliderProps): JSX.Element;
|
|
62
62
|
displayName: string;
|
|
63
63
|
};
|
|
64
64
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAyF3D,KAAK,
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAyF3D,KAAK,2CAA2C,GAAG,IAAI,CACrD,wBAAwB,CAAC,KAAK,CAAC,EAC/B,cAAc,GAAG,UAAU,CAC5B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,2CAA2C,GAAG;IACtE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;IAC1C;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAC;IAC/C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,CAAC;IACvE;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,M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