@transferwise/components 0.0.0-experimental-ff4fa52 → 0.0.0-experimental-1413ac0
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/README.md +14 -1
- package/build/i18n/zh-HK.json +2 -2
- package/build/index.esm.js +182 -273
- package/build/index.esm.js.map +1 -1
- package/build/index.js +155 -246
- package/build/index.js.map +1 -1
- package/build/mocks.esm.js +40 -0
- package/build/mocks.esm.js.map +1 -0
- package/build/mocks.js +43 -0
- package/build/mocks.js.map +1 -0
- package/build/types/body/Body.d.ts +1 -1
- package/build/types/common/commonProps.d.ts +1 -1
- package/build/types/common/commonProps.d.ts.map +1 -1
- package/build/types/common/dateUtils/getDayNames/getDayNames.d.ts +1 -1
- package/build/types/common/dateUtils/getDayNames/getDayNames.d.ts.map +1 -1
- package/build/types/common/dateUtils/getDayNames/index.d.ts +2 -0
- package/build/types/common/dateUtils/getDayNames/index.d.ts.map +1 -0
- package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts +1 -1
- package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts.map +1 -1
- package/build/types/common/dateUtils/getMonthNames/index.d.ts +2 -0
- package/build/types/common/dateUtils/getMonthNames/index.d.ts.map +1 -0
- package/build/types/common/dateUtils/index.d.ts +6 -6
- package/build/types/common/dateUtils/index.d.ts.map +1 -1
- package/build/types/common/dateUtils/isDateValid/index.d.ts +2 -0
- package/build/types/common/dateUtils/isDateValid/index.d.ts.map +1 -0
- package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts +2 -2
- package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts.map +1 -1
- package/build/types/common/dateUtils/isMonthAndYearFormat/index.d.ts +2 -0
- package/build/types/common/dateUtils/isMonthAndYearFormat/index.d.ts.map +1 -0
- package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts +1 -1
- package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts.map +1 -1
- package/build/types/common/dateUtils/isWithinRange/index.d.ts +2 -0
- package/build/types/common/dateUtils/isWithinRange/index.d.ts.map +1 -0
- package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts +1 -1
- package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts.map +1 -1
- package/build/types/common/dateUtils/moveToWithinRange/index.d.ts +2 -0
- package/build/types/common/dateUtils/moveToWithinRange/index.d.ts.map +1 -0
- package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts +1 -1
- package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts.map +1 -1
- package/build/types/common/panel/Panel.d.ts +1 -1
- package/build/types/common/responsivePanel/ResponsivePanel.d.ts +1 -1
- package/build/types/dateInput/DateInput.d.ts +41 -35
- package/build/types/dateInput/DateInput.d.ts.map +1 -1
- package/build/types/dateInput/DateInput.messages.d.ts +33 -24
- package/build/types/dateInput/DateInput.messages.d.ts.map +1 -1
- package/build/types/dateInput/index.d.ts +1 -1
- package/build/types/dateInput/index.d.ts.map +1 -1
- package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts +1 -1
- package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts.map +1 -1
- package/build/types/dateInput/utils/convertToLocalMidnight/index.d.ts +1 -1
- package/build/types/dateInput/utils/convertToLocalMidnight/index.d.ts.map +1 -1
- package/build/types/dateInput/utils/explodeDate/explodeDate.d.ts +5 -2
- package/build/types/dateInput/utils/explodeDate/explodeDate.d.ts.map +1 -1
- package/build/types/dateInput/utils/explodeDate/index.d.ts +1 -1
- package/build/types/dateInput/utils/explodeDate/index.d.ts.map +1 -1
- package/build/types/dateInput/utils/index.d.ts +2 -2
- package/build/types/dateInput/utils/index.d.ts.map +1 -1
- package/build/types/decision/Decision.d.ts +39 -52
- package/build/types/decision/Decision.d.ts.map +1 -1
- package/build/types/decision/index.d.ts +1 -2
- package/build/types/decision/index.d.ts.map +1 -1
- package/build/types/dimmer/Dimmer.d.ts +1 -1
- package/build/types/index.d.ts +1 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/mocks.d.ts +9 -0
- package/build/types/mocks.d.ts.map +1 -0
- package/build/types/promoCard/PromoCard.d.ts +1 -2
- package/build/types/promoCard/PromoCard.d.ts.map +1 -1
- package/build/types/select/searchBox/SearchBox.d.ts +1 -1
- package/build/types/test-utils/window-mock.d.ts.map +1 -1
- package/package.json +17 -1
- package/src/common/commonProps.ts +1 -1
- package/src/common/dateUtils/getDayNames/{getDayNames.ts → getDayNames.js} +2 -5
- package/src/common/dateUtils/getDayNames/getDayNames.spec.js +1 -1
- package/src/common/dateUtils/getDayNames/index.js +1 -0
- package/src/common/dateUtils/getMonthNames/{getMonthNames.ts → getMonthNames.js} +3 -5
- package/src/common/dateUtils/getMonthNames/getMonthNames.spec.js +8 -9
- package/src/common/dateUtils/getMonthNames/index.js +1 -0
- package/src/common/dateUtils/index.js +6 -0
- package/src/common/dateUtils/isDateValid/index.js +1 -0
- package/src/common/dateUtils/isDateValid/isDateValid.js +6 -0
- package/src/common/dateUtils/isDateValid/{isDateValid.spec.ts → isDateValid.spec.js} +1 -1
- package/src/common/dateUtils/isMonthAndYearFormat/index.js +1 -0
- package/src/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js +4 -0
- package/src/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.spec.js +7 -3
- package/src/common/dateUtils/isWithinRange/index.js +1 -0
- package/src/common/dateUtils/isWithinRange/{isWithinRange.ts → isWithinRange.js} +1 -1
- package/src/common/dateUtils/isWithinRange/{isWithinRange.spec.ts → isWithinRange.spec.js} +1 -1
- package/src/common/dateUtils/moveToWithinRange/index.js +1 -0
- package/src/common/dateUtils/moveToWithinRange/{moveToWithinRange.ts → moveToWithinRange.js} +2 -2
- package/src/dateInput/{DateInput.tsx → DateInput.js} +97 -120
- package/src/dateInput/DateInput.spec.js +55 -6
- package/src/dateInput/DateInput.story.tsx +7 -9
- package/src/dateInput/utils/convertToLocalMidnight/{convertToLocalMidnight.ts → convertToLocalMidnight.js} +1 -1
- package/src/dateInput/utils/explodeDate/{explodeDate.ts → explodeDate.js} +1 -3
- package/src/dateLookup/dayCalendar/table/DayCalendarTable.js +0 -1
- package/src/decision/Decision.spec.js +53 -59
- package/src/decision/{Decision.story.js → Decision.story.tsx} +5 -5
- package/src/decision/Decision.tsx +136 -0
- package/src/decision/index.ts +1 -0
- package/src/i18n/zh-HK.json +2 -2
- package/src/index.ts +1 -0
- package/src/mocks.ts +48 -0
- package/src/promoCard/PromoCard.tsx +1 -2
- package/src/test-utils/window-mock.ts +7 -23
- package/src/tile/Tile.js +1 -1
- package/build/types/decision/decisionEnums.d.ts +0 -9
- package/build/types/decision/decisionEnums.d.ts.map +0 -1
- package/build/types/sizeSwapper/SizeSwapper.d.ts +0 -3
- package/build/types/sizeSwapper/SizeSwapper.d.ts.map +0 -1
- package/build/types/sizeSwapper/index.d.ts +0 -2
- package/build/types/sizeSwapper/index.d.ts.map +0 -1
- package/src/common/dateUtils/index.ts +0 -6
- package/src/common/dateUtils/isDateValid/isDateValid.ts +0 -13
- package/src/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.ts +0 -4
- package/src/decision/Decision.js +0 -148
- package/src/decision/decisionEnums.ts +0 -11
- package/src/decision/index.js +0 -2
- package/src/sizeSwapper/SizeSwapper.js +0 -69
- package/src/sizeSwapper/SizeSwapper.spec.js +0 -100
- package/src/sizeSwapper/SizeSwapper.story.js +0 -34
- package/src/sizeSwapper/index.js +0 -1
- /package/src/dateInput/{DateInput.messages.ts → DateInput.messages.js} +0 -0
- /package/src/dateInput/{index.ts → index.js} +0 -0
- /package/src/dateInput/utils/convertToLocalMidnight/{convertToLocalMidnight.spec.ts → convertToLocalMidnight.spec.js} +0 -0
- /package/src/dateInput/utils/convertToLocalMidnight/{index.ts → index.js} +0 -0
- /package/src/dateInput/utils/explodeDate/{explodeDate.spec.ts → explodeDate.spec.js} +0 -0
- /package/src/dateInput/utils/explodeDate/{index.ts → index.js} +0 -0
- /package/src/dateInput/utils/{index.ts → index.js} +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const defaultStubGlobal = (name, value) => {
|
|
2
|
+
Object.defineProperty(globalThis, name, {
|
|
3
|
+
value,
|
|
4
|
+
writable: true,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
function mockMatchMedia({
|
|
10
|
+
fn,
|
|
11
|
+
stubGlobal = defaultStubGlobal
|
|
12
|
+
}) {
|
|
13
|
+
stubGlobal('matchMedia', fn(query => {
|
|
14
|
+
const matches = /^\(min-width: (\d+)px\)$/u.exec(query);
|
|
15
|
+
const minWidth = matches != null ? Number(matches[1]) : undefined;
|
|
16
|
+
return {
|
|
17
|
+
matches: minWidth != null ? window.innerWidth >= minWidth : false,
|
|
18
|
+
media: query,
|
|
19
|
+
onchange: null,
|
|
20
|
+
addListener: fn(),
|
|
21
|
+
removeListener: fn(),
|
|
22
|
+
addEventListener: fn(),
|
|
23
|
+
removeEventListener: fn(),
|
|
24
|
+
dispatchEvent: fn()
|
|
25
|
+
};
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
function mockResizeObserver({
|
|
29
|
+
fn,
|
|
30
|
+
stubGlobal = defaultStubGlobal
|
|
31
|
+
}) {
|
|
32
|
+
stubGlobal('ResizeObserver', fn(() => ({
|
|
33
|
+
observe: fn(),
|
|
34
|
+
unobserve: fn(),
|
|
35
|
+
disconnect: fn()
|
|
36
|
+
})));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { mockMatchMedia, mockResizeObserver };
|
|
40
|
+
//# sourceMappingURL=mocks.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mocks.esm.js","sources":["../../src/mocks.ts"],"sourcesContent":[null],"names":["defaultStubGlobal","name","value","Object","defineProperty","globalThis","writable","enumerable","configurable"],"mappings":"AAAA,MAAeA,iBAAQ,GAAEA,CAAAC,IAAA,EAAAC,KAAa,KAAK;AAE3CC,EAAAA,MAAU,CAAgBC,cAAA,CAAAC,UAAA,EAAAJ,IAAA,EAAA;IACpBC;AACMI,IAAAA,QAAG,EAAA,IAAA;AACdC,IAAAA,UAAA,EAAA,IAAA;AAWeC,IAAAA,YAAA,EAAA,IAAA;AAoBA,GAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/mocks.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const defaultStubGlobal = (name, value) => {
|
|
4
|
+
Object.defineProperty(globalThis, name, {
|
|
5
|
+
value,
|
|
6
|
+
writable: true,
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
function mockMatchMedia({
|
|
12
|
+
fn,
|
|
13
|
+
stubGlobal = defaultStubGlobal
|
|
14
|
+
}) {
|
|
15
|
+
stubGlobal('matchMedia', fn(query => {
|
|
16
|
+
const matches = /^\(min-width: (\d+)px\)$/u.exec(query);
|
|
17
|
+
const minWidth = matches != null ? Number(matches[1]) : undefined;
|
|
18
|
+
return {
|
|
19
|
+
matches: minWidth != null ? window.innerWidth >= minWidth : false,
|
|
20
|
+
media: query,
|
|
21
|
+
onchange: null,
|
|
22
|
+
addListener: fn(),
|
|
23
|
+
removeListener: fn(),
|
|
24
|
+
addEventListener: fn(),
|
|
25
|
+
removeEventListener: fn(),
|
|
26
|
+
dispatchEvent: fn()
|
|
27
|
+
};
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
function mockResizeObserver({
|
|
31
|
+
fn,
|
|
32
|
+
stubGlobal = defaultStubGlobal
|
|
33
|
+
}) {
|
|
34
|
+
stubGlobal('ResizeObserver', fn(() => ({
|
|
35
|
+
observe: fn(),
|
|
36
|
+
unobserve: fn(),
|
|
37
|
+
disconnect: fn()
|
|
38
|
+
})));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.mockMatchMedia = mockMatchMedia;
|
|
42
|
+
exports.mockResizeObserver = mockResizeObserver;
|
|
43
|
+
//# sourceMappingURL=mocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mocks.js","sources":["../../src/mocks.ts"],"sourcesContent":[null],"names":["defaultStubGlobal","name","value","Object","defineProperty","globalThis","writable","enumerable","configurable"],"mappings":";;AAAA,MAAeA,iBAAQ,GAAEA,CAAAC,IAAA,EAAAC,KAAa,KAAK;AAE3CC,EAAAA,MAAU,CAAgBC,cAAA,CAAAC,UAAA,EAAAJ,IAAA,EAAA;IACpBC;AACMI,IAAAA,QAAG,EAAA,IAAA;AACdC,IAAAA,UAAA,EAAA,IAAA;AAWeC,IAAAA,YAAA,EAAA,IAAA;AAoBA,GAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -9,6 +9,6 @@ declare const Body: import("react").ForwardRefExoticComponent<HTMLAttributes<HTM
|
|
|
9
9
|
* Default value: `div`
|
|
10
10
|
*/
|
|
11
11
|
as?: "div" | "p" | "span" | undefined;
|
|
12
|
-
} & import("react").RefAttributes<HTMLSpanElement |
|
|
12
|
+
} & import("react").RefAttributes<HTMLSpanElement | HTMLParagraphElement | HTMLDivElement>>;
|
|
13
13
|
export default Body;
|
|
14
14
|
//# sourceMappingURL=Body.d.ts.map
|
|
@@ -13,7 +13,7 @@ export type AriaLabelProperty = {
|
|
|
13
13
|
};
|
|
14
14
|
export type LinkProps = {
|
|
15
15
|
href: string;
|
|
16
|
-
target?:
|
|
16
|
+
target?: React.HTMLAttributeAnchorTarget;
|
|
17
17
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
18
18
|
};
|
|
19
19
|
export type Heading = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonProps.d.ts","sourceRoot":"","sources":["../../../src/common/commonProps.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,WAAW,GAAG;IACxB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"commonProps.d.ts","sourceRoot":"","sources":["../../../src/common/commonProps.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,WAAW,GAAG;IACxB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC;IACzC,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export function getDayNames(locale: any, format?: string): string[];
|
|
2
2
|
//# sourceMappingURL=getDayNames.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDayNames.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/getDayNames/getDayNames.
|
|
1
|
+
{"version":3,"file":"getDayNames.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/getDayNames/getDayNames.js"],"names":[],"mappings":"AAEA,oEAQC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/getDayNames/index.js"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export function getMonthNames(locale: any, format?: string): string[];
|
|
2
2
|
//# sourceMappingURL=getMonthNames.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMonthNames.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/getMonthNames/getMonthNames.
|
|
1
|
+
{"version":3,"file":"getMonthNames.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/getMonthNames/getMonthNames.js"],"names":[],"mappings":"AAEO,sEAUN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/getMonthNames/index.js"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { getDayNames } from
|
|
2
|
-
export { moveToWithinRange } from
|
|
3
|
-
export { isWithinRange } from
|
|
4
|
-
export { getMonthNames } from
|
|
5
|
-
export { isDateValid } from
|
|
6
|
-
export { isMonthAndYearFormat } from
|
|
1
|
+
export { getDayNames } from "./getDayNames";
|
|
2
|
+
export { moveToWithinRange } from "./moveToWithinRange";
|
|
3
|
+
export { isWithinRange } from "./isWithinRange";
|
|
4
|
+
export { getMonthNames } from "./getMonthNames";
|
|
5
|
+
export { isDateValid } from "./isDateValid";
|
|
6
|
+
export { isMonthAndYearFormat } from "./isMonthAndYearFormat";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/dateUtils/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/dateUtils/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/isDateValid/index.js"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export function isDateValid(date: any): boolean;
|
|
2
|
+
export function validDateString(dateString: any): boolean;
|
|
3
3
|
//# sourceMappingURL=isDateValid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDateValid.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/isDateValid/isDateValid.
|
|
1
|
+
{"version":3,"file":"isDateValid.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/isDateValid/isDateValid.js"],"names":[],"mappings":"AAAO,gDAA4E;AAE5E,0DACkE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/isMonthAndYearFormat/index.js"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export function isMonthAndYearFormat(dateString: any): boolean;
|
|
2
2
|
//# sourceMappingURL=isMonthAndYearFormat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isMonthAndYearFormat.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.
|
|
1
|
+
{"version":3,"file":"isMonthAndYearFormat.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js"],"names":[],"mappings":"AAEO,+DAC0D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/isWithinRange/index.js"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export function isWithinRange(date: any, min: any, max: any): boolean;
|
|
2
2
|
//# sourceMappingURL=isWithinRange.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isWithinRange.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/isWithinRange/isWithinRange.
|
|
1
|
+
{"version":3,"file":"isWithinRange.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/isWithinRange/isWithinRange.js"],"names":[],"mappings":"AAAA,sEAEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/moveToWithinRange/index.js"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export function moveToWithinRange(date: any, min: any, max: any): any;
|
|
2
2
|
//# sourceMappingURL=moveToWithinRange.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveToWithinRange.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/moveToWithinRange/moveToWithinRange.
|
|
1
|
+
{"version":3,"file":"moveToWithinRange.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/moveToWithinRange/moveToWithinRange.js"],"names":[],"mappings":"AAGA,sEAEC"}
|
|
@@ -16,7 +16,7 @@ declare const Panel: import("react").ForwardRefExoticComponent<{
|
|
|
16
16
|
altAxis?: boolean | undefined;
|
|
17
17
|
open?: boolean | undefined;
|
|
18
18
|
onClose?: ((event: Event | SyntheticEvent) => void) | undefined;
|
|
19
|
-
position?: "
|
|
19
|
+
position?: "top" | "bottom" | "left" | "right" | undefined;
|
|
20
20
|
anchorRef: RefObject<Element>;
|
|
21
21
|
anchorWidth?: boolean | undefined;
|
|
22
22
|
} & {
|
|
@@ -5,7 +5,7 @@ declare const ResponsivePanel: import("react").ForwardRefExoticComponent<{
|
|
|
5
5
|
altAxis?: boolean | undefined;
|
|
6
6
|
open?: boolean | undefined;
|
|
7
7
|
onClose?: ((event: Event | import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
|
8
|
-
position?: "
|
|
8
|
+
position?: "top" | "bottom" | "left" | "right" | undefined;
|
|
9
9
|
anchorRef: import("react").RefObject<Element>;
|
|
10
10
|
anchorWidth?: boolean | undefined;
|
|
11
11
|
} & {
|
|
@@ -1,35 +1,41 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
export type DateInputSize = "sm" | "md" | "lg";
|
|
4
|
+
|
|
5
|
+
export type DateInputValue = string | Date;
|
|
6
|
+
|
|
7
|
+
export type DateInputMonthFormat = "long" | "short";
|
|
8
|
+
|
|
9
|
+
export type DateInputMode = "day-month-year" | "month-year";
|
|
10
|
+
|
|
11
|
+
export interface DateInputPlaceholders {
|
|
12
|
+
day?: React.ReactNode;
|
|
13
|
+
month?: React.ReactNode;
|
|
14
|
+
year?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DateInputProps {
|
|
18
|
+
"aria-label"?: string;
|
|
19
|
+
"aria-labelledby"?: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
size?: DateInputSize;
|
|
22
|
+
value?: DateInputValue;
|
|
23
|
+
onChange: (...args: any[])=>any;
|
|
24
|
+
onFocus?: (...args: any[])=>any;
|
|
25
|
+
onBlur?: (...args: any[])=>any;
|
|
26
|
+
dayLabel?: string;
|
|
27
|
+
dayAutoComplete?: string;
|
|
28
|
+
monthLabel?: string;
|
|
29
|
+
yearLabel?: string;
|
|
30
|
+
yearAutoComplete?: string;
|
|
31
|
+
monthFormat?: DateInputMonthFormat;
|
|
32
|
+
mode?: DateInputMode;
|
|
33
|
+
placeholders?: DateInputPlaceholders;
|
|
34
|
+
id?: string;
|
|
35
|
+
selectProps?: Object;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare const DateInput: React.FC<DateInputProps>;
|
|
39
|
+
|
|
40
|
+
export default DateInput;
|
|
41
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/dateInput/DateInput.
|
|
1
|
+
{"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/dateInput/DateInput.js"],"names":[],"mappings":";AAeA;;;;;;;;;;;;;;;;;;;gCA0QC"}
|
|
@@ -1,26 +1,35 @@
|
|
|
1
|
-
declare
|
|
2
|
-
monthLabel
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
}
|
|
6
|
-
dayLabel
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
defaultMessage
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
id
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace monthLabel {
|
|
3
|
+
const id: string;
|
|
4
|
+
const defaultMessage: string;
|
|
5
|
+
}
|
|
6
|
+
namespace dayLabel {
|
|
7
|
+
const id_1: string;
|
|
8
|
+
export { id_1 as id };
|
|
9
|
+
const defaultMessage_1: string;
|
|
10
|
+
export { defaultMessage_1 as defaultMessage };
|
|
11
|
+
}
|
|
12
|
+
namespace yearLabel {
|
|
13
|
+
const id_2: string;
|
|
14
|
+
export { id_2 as id };
|
|
15
|
+
const defaultMessage_2: string;
|
|
16
|
+
export { defaultMessage_2 as defaultMessage };
|
|
17
|
+
}
|
|
18
|
+
namespace dayPlaceholder {
|
|
19
|
+
const id_3: string;
|
|
20
|
+
export { id_3 as id };
|
|
21
|
+
const defaultMessage_3: string;
|
|
22
|
+
export { defaultMessage_3 as defaultMessage };
|
|
23
|
+
export const description: string;
|
|
24
|
+
}
|
|
25
|
+
namespace yearPlaceholder {
|
|
26
|
+
const id_4: string;
|
|
27
|
+
export { id_4 as id };
|
|
28
|
+
const defaultMessage_4: string;
|
|
29
|
+
export { defaultMessage_4 as defaultMessage };
|
|
30
|
+
const description_1: string;
|
|
31
|
+
export { description_1 as description };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
25
34
|
export default _default;
|
|
26
35
|
//# sourceMappingURL=DateInput.messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.messages.d.ts","sourceRoot":"","sources":["../../../src/dateInput/DateInput.messages.
|
|
1
|
+
{"version":3,"file":"DateInput.messages.d.ts","sourceRoot":"","sources":["../../../src/dateInput/DateInput.messages.js"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dateInput/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dateInput/index.js"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export function convertToLocalMidnight(date: any): Date;
|
|
2
2
|
//# sourceMappingURL=convertToLocalMidnight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertToLocalMidnight.d.ts","sourceRoot":"","sources":["../../../../../src/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.
|
|
1
|
+
{"version":3,"file":"convertToLocalMidnight.d.ts","sourceRoot":"","sources":["../../../../../src/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js"],"names":[],"mappings":"AAAO,wDAIN"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { convertToLocalMidnight } from
|
|
1
|
+
export { convertToLocalMidnight } from "./convertToLocalMidnight";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dateInput/utils/convertToLocalMidnight/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dateInput/utils/convertToLocalMidnight/index.js"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explodeDate.d.ts","sourceRoot":"","sources":["../../../../../src/dateInput/utils/explodeDate/explodeDate.
|
|
1
|
+
{"version":3,"file":"explodeDate.d.ts","sourceRoot":"","sources":["../../../../../src/dateInput/utils/explodeDate/explodeDate.js"],"names":[],"mappings":"AAAO;;;;EAMN"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { explodeDate } from
|
|
1
|
+
export { explodeDate } from "./explodeDate";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dateInput/utils/explodeDate/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dateInput/utils/explodeDate/index.js"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { explodeDate } from
|
|
2
|
-
export { convertToLocalMidnight } from
|
|
1
|
+
export { explodeDate } from "./explodeDate";
|
|
2
|
+
export { convertToLocalMidnight } from "./convertToLocalMidnight";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dateInput/utils/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dateInput/utils/index.js"],"names":[],"mappings":""}
|
|
@@ -1,52 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
description?: React.ReactNode;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
href?: string;
|
|
7
|
-
target?:
|
|
8
|
-
media
|
|
9
|
-
block: React.ReactNode;
|
|
10
|
-
list: React.ReactNode;
|
|
11
|
-
};
|
|
12
|
-
onClick?:
|
|
13
|
-
title: React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
* Display media in a circle in list presentation
|
|
41
|
-
*/
|
|
42
|
-
showMediaCircleInList?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Sets navigation options to be aligned with the parent container
|
|
45
|
-
*/
|
|
46
|
-
isContainerAligned?: boolean;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare const Decision: React.FC<DecisionProps>;
|
|
50
|
-
|
|
51
|
-
export default Decision;
|
|
52
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SizeSmall, SizeMedium } from '../common';
|
|
3
|
+
interface DecisionOption {
|
|
4
|
+
description?: React.ReactNode;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
href?: string;
|
|
7
|
+
target?: React.HTMLAttributeAnchorTarget;
|
|
8
|
+
media: {
|
|
9
|
+
block: React.ReactNode;
|
|
10
|
+
list: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
13
|
+
title: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare enum DecisionPresentation {
|
|
16
|
+
LIST = "LIST",
|
|
17
|
+
LIST_BLOCK = "LIST_BLOCK",
|
|
18
|
+
LIST_BLOCK_GRID = "LIST_BLOCK_GRID"
|
|
19
|
+
}
|
|
20
|
+
export declare enum DecisionType {
|
|
21
|
+
NAVIGATION = "NAVIGATION"
|
|
22
|
+
}
|
|
23
|
+
export interface DecisionProps {
|
|
24
|
+
/** A list of elements to be rendered */
|
|
25
|
+
options: DecisionOption[];
|
|
26
|
+
/** Handles the display mode of the component */
|
|
27
|
+
presentation?: `${DecisionPresentation}`;
|
|
28
|
+
/** Size currently affects only Tile dimension */
|
|
29
|
+
size?: SizeSmall | SizeMedium;
|
|
30
|
+
/** Decide which kind of element type needs to be rendered ex: Navigation Options or in the future Radio or Checkbox Options */
|
|
31
|
+
type?: `${DecisionType}`;
|
|
32
|
+
/** Display media in a circle in list presentation */
|
|
33
|
+
showMediaCircleInList?: boolean;
|
|
34
|
+
/** Sets navigation options to be aligned with the parent container */
|
|
35
|
+
isContainerAligned?: boolean;
|
|
36
|
+
}
|
|
37
|
+
declare const Decision: ({ options, presentation, size, type, showMediaCircleInList, isContainerAligned, }: DecisionProps) => import("react").JSX.Element | null;
|
|
38
|
+
export default Decision;
|
|
39
|
+
//# sourceMappingURL=Decision.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Decision.d.ts","sourceRoot":"","sources":["../../../src/decision/Decision.
|
|
1
|
+
{"version":3,"file":"Decision.d.ts","sourceRoot":"","sources":["../../../src/decision/Decision.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAoB,SAAS,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAKpE,UAAU,cAAc;IACtB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC;IACzC,KAAK,EAAE;QACL,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;KACvB,CAAC;IACF,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAC/C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,oBAAY,oBAAoB;IAC9B,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,eAAe,oBAAoB;CACpC;AAED,oBAAY,YAAY;IACtB,UAAU,eAAe;CAC1B;AAED,MAAM,WAAW,aAAa;IAC5B,yCAAyC;IACzC,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,iDAAiD;IACjD,YAAY,CAAC,EAAE,GAAG,oBAAoB,EAAE,CAAC;IACzC,iDAAiD;IACjD,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9B,+HAA+H;IAC/H,IAAI,CAAC,EAAE,GAAG,YAAY,EAAE,CAAC;IAEzB,qDAAqD;IACrD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC,sEAAsE;IACtE,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,QAAA,MAAM,QAAQ,sFAOX,aAAa,uCA+Ef,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decision/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decision/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
|