@wistia/vhs 2.75.3-beta.ef36fc60.f9e89ab → 2.76.0-beta.395ba357.66186f5
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JSX } from 'react';
|
|
1
|
+
import type { JSX, ComponentType } from 'react';
|
|
2
2
|
import type { DateRangeType } from '../RangeSelectorInput/utils';
|
|
3
3
|
type Preset = {
|
|
4
4
|
label?: string;
|
|
@@ -30,8 +30,8 @@ export type RangeSelectorProps = {
|
|
|
30
30
|
*/
|
|
31
31
|
footerText?: JSX.Element | string;
|
|
32
32
|
/**
|
|
33
|
-
* A function that receives a date range object and returns a string to be rendered in the
|
|
34
|
-
* button
|
|
33
|
+
* A function that receives a date range object and returns a string to be rendered in the
|
|
34
|
+
* trigger button
|
|
35
35
|
*/
|
|
36
36
|
format?: (dataRange: DateRangeType) => JSX.Element | string;
|
|
37
37
|
/**
|
|
@@ -51,9 +51,18 @@ export type RangeSelectorProps = {
|
|
|
51
51
|
* If true, the button will take up the full width of its container
|
|
52
52
|
*/
|
|
53
53
|
fullWidth?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* A custom width for the RangeSelector component (in px, %, or other CSS units)
|
|
56
|
+
*/
|
|
57
|
+
width?: number | string;
|
|
58
|
+
/**
|
|
59
|
+
* A custom React component to use as the trigger button. The component should accept onClick,
|
|
60
|
+
* children, and other standard button props.
|
|
61
|
+
*/
|
|
62
|
+
customTriggerComponent?: ComponentType<Record<string, any>>;
|
|
54
63
|
};
|
|
55
64
|
export declare const RangeSelector: {
|
|
56
|
-
({ align, buttonVariant, earliestDate, latestDate, format, fullWidth, footerText, onChange, presets, range, shouldPreventFuture, ...props }: RangeSelectorProps): JSX.Element;
|
|
65
|
+
({ align, buttonVariant, earliestDate, latestDate, format, fullWidth, footerText, onChange, presets, range, shouldPreventFuture, customTriggerComponent, width, ...props }: RangeSelectorProps): JSX.Element;
|
|
57
66
|
displayName: string;
|
|
58
67
|
};
|
|
59
68
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeSelector.d.ts","sourceRoot":"","sources":["../../../src/components/RangeSelector/RangeSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,GAAG,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"RangeSelector.d.ts","sourceRoot":"","sources":["../../../src/components/RangeSelector/RangeSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,GAAG,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAY5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAmKjE,KAAK,MAAM,GAAG;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE;QACL,GAAG,EAAE,IAAI,CAAC;QACV,KAAK,EAAE,IAAI,CAAC;KACb,CAAC;IACF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC/D;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,aAAa,KAAK,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAC5D;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,aAAa,KAAK,OAAO,CAAC;IAIjD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;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