@wistia/vhs 2.30.0 → 2.31.0-beta.8018ce4f.e43b269
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/index.cjs.js +174 -170
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.esm.js +173 -169
- package/dist/index.esm.js.map +3 -3
- package/dist/src/components/RangeSelector/RangeSelector.d.ts +10 -7
- package/dist/src/components/RangeSelector/RangeSelector.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import type { DateRangeType } from '../RangeSelectorInput/utils';
|
|
2
|
+
type Preset = {
|
|
3
|
+
label?: string;
|
|
4
|
+
value: {
|
|
5
|
+
end: Date;
|
|
6
|
+
start: Date;
|
|
7
|
+
};
|
|
8
|
+
tooltipText?: string;
|
|
9
|
+
};
|
|
2
10
|
export type RangeSelectorProps = {
|
|
3
11
|
/**
|
|
4
12
|
* Align the popup to the left or the right of the tigger button
|
|
@@ -29,13 +37,7 @@ export type RangeSelectorProps = {
|
|
|
29
37
|
* Callback fired when the date range changes
|
|
30
38
|
*/
|
|
31
39
|
onChange?: (dateRange: DateRangeType) => unknown;
|
|
32
|
-
presets?:
|
|
33
|
-
label?: string;
|
|
34
|
-
value: {
|
|
35
|
-
end: Date;
|
|
36
|
-
start: Date;
|
|
37
|
-
};
|
|
38
|
-
}[];
|
|
40
|
+
presets?: Preset[];
|
|
39
41
|
/**
|
|
40
42
|
* The date range to be displayed in the picker
|
|
41
43
|
*/
|
|
@@ -49,4 +51,5 @@ export declare const RangeSelector: {
|
|
|
49
51
|
({ align, buttonVariant, earliestDate, latestDate, format, footerText, onChange, presets, range, shouldPreventFuture, }: RangeSelectorProps): JSX.Element;
|
|
50
52
|
displayName: string;
|
|
51
53
|
};
|
|
54
|
+
export {};
|
|
52
55
|
//# sourceMappingURL=RangeSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/RangeSelector/RangeSelector.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"RangeSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/RangeSelector/RangeSelector.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAqJjE,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,MAAM,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,aAAa,KAAK,OAAO,CAAC;IAIjD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,aAAa;6HAcvB,kBAAkB,GAAG,WAAW;;CAoJlC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wistia/vhs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.31.0-beta.8018ce4f.e43b269",
|
|
4
4
|
"packageManager": "yarn@4.0.0",
|
|
5
5
|
"description": "Visual Hype System",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
|
59
59
|
"@wistia/type-guards": "^0.0.8",
|
|
60
|
-
"@wistia/vhs-design-tokens": "
|
|
60
|
+
"@wistia/vhs-design-tokens": "1.4.2-beta.a8acd6e9.8d0344a",
|
|
61
61
|
"date-fns": "^2.30.0",
|
|
62
62
|
"escape-html": "^1.0.3",
|
|
63
63
|
"formik": "^2.4.5",
|