@transferwise/components 46.27.0 → 46.29.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.
Files changed (206) hide show
  1. package/build/i18n/th.json +2 -2
  2. package/build/index.js +344 -1147
  3. package/build/index.js.map +1 -1
  4. package/build/index.mjs +346 -1147
  5. package/build/index.mjs.map +1 -1
  6. package/build/main.css +16 -5
  7. package/build/styles/logo/Logo.css +16 -0
  8. package/build/styles/main.css +16 -5
  9. package/build/types/alert/Alert.d.ts +47 -58
  10. package/build/types/alert/Alert.d.ts.map +1 -1
  11. package/build/types/alert/index.d.ts +2 -1
  12. package/build/types/alert/index.d.ts.map +1 -1
  13. package/build/types/button/Button.d.ts +7 -9
  14. package/build/types/button/Button.d.ts.map +1 -1
  15. package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts +1 -1
  16. package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts.map +1 -1
  17. package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts +1 -1
  18. package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts.map +1 -1
  19. package/build/types/common/propsValues/sentiment.d.ts +0 -1
  20. package/build/types/common/propsValues/sentiment.d.ts.map +1 -1
  21. package/build/types/dateLookup/DateLookup.d.ts +75 -28
  22. package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
  23. package/build/types/dateLookup/DateLookup.messages.d.ts +42 -63
  24. package/build/types/dateLookup/DateLookup.messages.d.ts.map +1 -1
  25. package/build/types/dateLookup/dateHeader/DateHeader.d.ts +9 -22
  26. package/build/types/dateLookup/dateHeader/DateHeader.d.ts.map +1 -1
  27. package/build/types/dateLookup/dateHeader/index.d.ts +1 -1
  28. package/build/types/dateLookup/dateHeader/index.d.ts.map +1 -1
  29. package/build/types/dateLookup/dateTrigger/DateTrigger.d.ts +13 -31
  30. package/build/types/dateLookup/dateTrigger/DateTrigger.d.ts.map +1 -1
  31. package/build/types/dateLookup/dateTrigger/index.d.ts +1 -1
  32. package/build/types/dateLookup/dateTrigger/index.d.ts.map +1 -1
  33. package/build/types/dateLookup/dayCalendar/DayCalendar.d.ts +19 -2
  34. package/build/types/dateLookup/dayCalendar/DayCalendar.d.ts.map +1 -1
  35. package/build/types/dateLookup/dayCalendar/index.d.ts +1 -1
  36. package/build/types/dateLookup/dayCalendar/index.d.ts.map +1 -1
  37. package/build/types/dateLookup/dayCalendar/table/DayCalendarTable.d.ts +12 -2
  38. package/build/types/dateLookup/dayCalendar/table/DayCalendarTable.d.ts.map +1 -1
  39. package/build/types/dateLookup/dayCalendar/table/index.d.ts +1 -1
  40. package/build/types/dateLookup/dayCalendar/table/index.d.ts.map +1 -1
  41. package/build/types/dateLookup/getStartOfDay/getStartOfDay.d.ts +1 -1
  42. package/build/types/dateLookup/getStartOfDay/getStartOfDay.d.ts.map +1 -1
  43. package/build/types/dateLookup/getStartOfDay/index.d.ts +1 -1
  44. package/build/types/dateLookup/getStartOfDay/index.d.ts.map +1 -1
  45. package/build/types/dateLookup/index.d.ts +2 -1
  46. package/build/types/dateLookup/index.d.ts.map +1 -1
  47. package/build/types/dateLookup/monthCalendar/MonthCalendar.d.ts +17 -2
  48. package/build/types/dateLookup/monthCalendar/MonthCalendar.d.ts.map +1 -1
  49. package/build/types/dateLookup/monthCalendar/index.d.ts +1 -1
  50. package/build/types/dateLookup/monthCalendar/index.d.ts.map +1 -1
  51. package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts +10 -26
  52. package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts.map +1 -1
  53. package/build/types/dateLookup/monthCalendar/table/index.d.ts +1 -1
  54. package/build/types/dateLookup/monthCalendar/table/index.d.ts.map +1 -1
  55. package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts +15 -2
  56. package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts.map +1 -1
  57. package/build/types/dateLookup/yearCalendar/index.d.ts +1 -1
  58. package/build/types/dateLookup/yearCalendar/index.d.ts.map +1 -1
  59. package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts +10 -26
  60. package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts.map +1 -1
  61. package/build/types/dateLookup/yearCalendar/table/index.d.ts +1 -1
  62. package/build/types/dateLookup/yearCalendar/table/index.d.ts.map +1 -1
  63. package/build/types/dimmer/Dimmer.d.ts.map +1 -1
  64. package/build/types/index.d.ts +2 -2
  65. package/build/types/index.d.ts.map +1 -1
  66. package/build/types/inlineAlert/InlineAlert.d.ts +2 -4
  67. package/build/types/inlineAlert/InlineAlert.d.ts.map +1 -1
  68. package/build/types/inputs/SelectInput.d.ts.map +1 -1
  69. package/build/types/inputs/_BottomSheet.d.ts.map +1 -1
  70. package/build/types/loader/Loader.d.ts.map +1 -1
  71. package/build/types/logo/Logo.d.ts.map +1 -1
  72. package/build/types/phoneNumberInput/PhoneNumberInput.d.ts.map +1 -1
  73. package/build/types/popover/Popover.d.ts.map +1 -1
  74. package/build/types/segmentedControl/SegmentedControl.d.ts +2 -2
  75. package/build/types/segmentedControl/SegmentedControl.d.ts.map +1 -1
  76. package/build/types/select/Select.d.ts.map +1 -1
  77. package/build/types/statusIcon/StatusIcon.d.ts +1 -1
  78. package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
  79. package/build/types/stepper/deviceDetection.d.ts.map +1 -1
  80. package/build/types/uploadInput/uploadButton/UploadButton.d.ts.map +1 -1
  81. package/package.json +3 -3
  82. package/src/accordion/Accordion.story.tsx +1 -1
  83. package/src/alert/{Alert.spec.js → Alert.spec.tsx} +43 -40
  84. package/src/alert/Alert.story.tsx +1 -2
  85. package/src/alert/Alert.tsx +219 -0
  86. package/src/alert/index.ts +2 -0
  87. package/src/avatar/colors/colors.ts +1 -1
  88. package/src/body/Body.spec.tsx +1 -1
  89. package/src/body/Body.story.tsx +8 -8
  90. package/src/button/Button.tsx +6 -10
  91. package/src/checkbox/Checkbox.js +1 -1
  92. package/src/checkboxButton/CheckboxButton.spec.tsx +0 -1
  93. package/src/common/Option/Option.tsx +1 -1
  94. package/src/common/dateUtils/isWithinRange/isWithinRange.spec.ts +21 -0
  95. package/src/common/dateUtils/isWithinRange/isWithinRange.ts +2 -2
  96. package/src/common/dateUtils/moveToWithinRange/moveToWithinRange.ts +8 -4
  97. package/src/common/deviceDetection/deviceDetection.js +1 -1
  98. package/src/common/deviceDetection/deviceDetection.spec.js +4 -2
  99. package/src/common/propsValues/sentiment.ts +0 -10
  100. package/src/common/responsivePanel/ResponsivePanel.spec.js +11 -15
  101. package/src/dateLookup/DateLookup.state.spec.js +7 -0
  102. package/src/dateLookup/{DateLookup.story.js → DateLookup.story.tsx} +13 -14
  103. package/src/dateLookup/DateLookup.tests.story.tsx +70 -0
  104. package/src/dateLookup/{DateLookup.js → DateLookup.tsx} +115 -81
  105. package/src/dateLookup/dateHeader/{DateHeader.js → DateHeader.tsx} +15 -15
  106. package/src/dateLookup/dateTrigger/DateTrigger.spec.js +0 -22
  107. package/src/dateLookup/dateTrigger/{DateTrigger.js → DateTrigger.tsx} +15 -32
  108. package/src/dateLookup/dayCalendar/{DayCalendar.js → DayCalendar.tsx} +14 -21
  109. package/src/dateLookup/dayCalendar/table/{DayCalendarTable.js → DayCalendarTable.tsx} +26 -37
  110. package/src/dateLookup/getStartOfDay/{getStartOfDay.js → getStartOfDay.tsx} +1 -1
  111. package/src/dateLookup/index.ts +2 -0
  112. package/src/dateLookup/monthCalendar/{MonthCalendar.js → MonthCalendar.tsx} +19 -22
  113. package/src/dateLookup/monthCalendar/table/{MonthCalendarTable.js → MonthCalendarTable.tsx} +31 -30
  114. package/src/dateLookup/yearCalendar/{YearCalendar.js → YearCalendar.tsx} +18 -21
  115. package/src/dateLookup/yearCalendar/table/{YearCalendarTable.js → YearCalendarTable.tsx} +26 -28
  116. package/src/decision/Decision.spec.js +0 -1
  117. package/src/dimmer/Dimmer.tsx +6 -2
  118. package/src/i18n/th.json +2 -2
  119. package/src/index.ts +2 -2
  120. package/src/inlineAlert/InlineAlert.spec.tsx +0 -7
  121. package/src/inlineAlert/InlineAlert.story.tsx +8 -7
  122. package/src/inlineAlert/InlineAlert.tsx +19 -47
  123. package/src/inputs/InputGroup.tsx +3 -3
  124. package/src/inputs/SelectInput.tsx +2 -0
  125. package/src/inputs/_BottomSheet.tsx +21 -26
  126. package/src/inputs/_Popover.tsx +4 -4
  127. package/src/link/Link.story.tsx +16 -16
  128. package/src/loader/Loader.tsx +0 -1
  129. package/src/logo/Logo.css +16 -0
  130. package/src/logo/Logo.js +4 -9
  131. package/src/logo/Logo.less +16 -0
  132. package/src/logo/__snapshots__/Logo.spec.js.snap +104 -8
  133. package/src/main.css +16 -5
  134. package/src/main.less +0 -1
  135. package/src/moneyInput/MoneyInput.story.tsx +3 -3
  136. package/src/nudge/Nudge.spec.tsx +5 -5
  137. package/src/phoneNumberInput/PhoneNumberInput.tsx +2 -1
  138. package/src/phoneNumberInput/utils/cleanNumber/cleanNumber.ts +1 -1
  139. package/src/popover/Popover.tsx +2 -1
  140. package/src/promoCard/PromoCard.tsx +1 -1
  141. package/src/radioGroup/RadioGroup.spec.js +1 -1
  142. package/src/section/Section.story.tsx +2 -1
  143. package/src/segmentedControl/SegmentedControl.spec.tsx +88 -2
  144. package/src/segmentedControl/SegmentedControl.story.tsx +54 -16
  145. package/src/segmentedControl/SegmentedControl.tsx +21 -33
  146. package/src/select/Select.js +2 -3
  147. package/src/statusIcon/StatusIcon.tsx +14 -14
  148. package/src/stepper/deviceDetection.js +1 -2
  149. package/src/stepper/deviceDetection.spec.js +8 -3
  150. package/src/test-utils/index.js +1 -1
  151. package/src/test-utils/story-config.ts +1 -1
  152. package/src/title/Title.spec.tsx +1 -1
  153. package/src/typeahead/Typeahead.spec.js +4 -2
  154. package/src/upload/Upload.spec.js +8 -4
  155. package/src/uploadInput/uploadButton/UploadButton.tsx +1 -0
  156. package/build/styles/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +0 -5
  157. package/build/types/alert/withArrow/alertArrowPositions.d.ts +0 -9
  158. package/build/types/alert/withArrow/alertArrowPositions.d.ts.map +0 -1
  159. package/build/types/alert/withArrow/index.d.ts +0 -3
  160. package/build/types/alert/withArrow/index.d.ts.map +0 -1
  161. package/build/types/alert/withArrow/withArrow.d.ts +0 -11
  162. package/build/types/alert/withArrow/withArrow.d.ts.map +0 -1
  163. package/build/types/common/requirements.d.ts +0 -3
  164. package/build/types/common/requirements.d.ts.map +0 -1
  165. package/build/types/dynamicFieldDefinitionList/DynamicFieldDefinitionList.d.ts +0 -21
  166. package/build/types/dynamicFieldDefinitionList/DynamicFieldDefinitionList.d.ts.map +0 -1
  167. package/build/types/dynamicFieldDefinitionList/FormattedValue/FormattedValue.d.ts +0 -12
  168. package/build/types/dynamicFieldDefinitionList/FormattedValue/FormattedValue.d.ts.map +0 -1
  169. package/build/types/dynamicFieldDefinitionList/FormattedValue/index.d.ts +0 -2
  170. package/build/types/dynamicFieldDefinitionList/FormattedValue/index.d.ts.map +0 -1
  171. package/build/types/dynamicFieldDefinitionList/index.d.ts +0 -2
  172. package/build/types/dynamicFieldDefinitionList/index.d.ts.map +0 -1
  173. package/build/types/dynamicFieldDefinitionList/utils/createDefinitions.d.ts +0 -2
  174. package/build/types/dynamicFieldDefinitionList/utils/createDefinitions.d.ts.map +0 -1
  175. package/build/types/dynamicFieldDefinitionList/utils/text-format.d.ts +0 -2
  176. package/build/types/dynamicFieldDefinitionList/utils/text-format.d.ts.map +0 -1
  177. package/src/alert/Alert.js +0 -196
  178. package/src/alert/index.js +0 -1
  179. package/src/alert/withArrow/alertArrowPositions.ts +0 -9
  180. package/src/alert/withArrow/index.js +0 -2
  181. package/src/alert/withArrow/withArrow.js +0 -50
  182. package/src/alert/withArrow/withArrow.spec.js +0 -51
  183. package/src/dateLookup/index.js +0 -1
  184. package/src/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +0 -41
  185. package/src/dynamicFieldDefinitionList/DynamicFieldDefinitionList.spec.js +0 -21
  186. package/src/dynamicFieldDefinitionList/DynamicFieldDefinitionList.story.js +0 -134
  187. package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +0 -5
  188. package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +0 -73
  189. package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.less +0 -4
  190. package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.spec.js +0 -200
  191. package/src/dynamicFieldDefinitionList/FormattedValue/index.js +0 -1
  192. package/src/dynamicFieldDefinitionList/index.js +0 -1
  193. package/src/dynamicFieldDefinitionList/utils/createDefinitions.js +0 -33
  194. package/src/dynamicFieldDefinitionList/utils/createDefinitions.spec.js +0 -83
  195. package/src/dynamicFieldDefinitionList/utils/text-format.js +0 -46
  196. package/src/dynamicFieldDefinitionList/utils/text-format.spec.js +0 -43
  197. /package/src/dateLookup/{DateLookup.messages.js → DateLookup.messages.ts} +0 -0
  198. /package/src/dateLookup/dateHeader/{index.js → index.ts} +0 -0
  199. /package/src/dateLookup/dateTrigger/{index.js → index.ts} +0 -0
  200. /package/src/dateLookup/dayCalendar/{index.js → index.ts} +0 -0
  201. /package/src/dateLookup/dayCalendar/table/{index.js → index.ts} +0 -0
  202. /package/src/dateLookup/getStartOfDay/{index.js → index.ts} +0 -0
  203. /package/src/dateLookup/monthCalendar/{index.js → index.ts} +0 -0
  204. /package/src/dateLookup/monthCalendar/table/{index.js → index.ts} +0 -0
  205. /package/src/dateLookup/yearCalendar/{index.js → index.ts} +0 -0
  206. /package/src/dateLookup/yearCalendar/table/{index.js → index.ts} +0 -0
package/build/main.css CHANGED
@@ -1857,11 +1857,6 @@ button.np-option {
1857
1857
  transition: opacity 150ms ease-in, height 150ms ease-in 150ms;
1858
1858
  opacity: 0;
1859
1859
  }
1860
- .formatted-value__h3-custom-alignment {
1861
- margin-bottom: 16px;
1862
- margin-bottom: var(--size-16);
1863
- line-height: 24px;
1864
- }
1865
1860
  .emphasis {
1866
1861
  font-weight: 600;
1867
1862
  font-weight: var(--font-weight-semi-bold);
@@ -3028,6 +3023,22 @@ a {
3028
3023
  .np-theme-personal--dark .np-logo-svg path {
3029
3024
  fill: var(--color-white);
3030
3025
  }
3026
+ .np-logo-svg--size-sm {
3027
+ display: block;
3028
+ }
3029
+ @media (min-width: 576px) {
3030
+ .np-logo-svg--size-sm {
3031
+ display: none;
3032
+ }
3033
+ }
3034
+ .np-logo-svg--size-md {
3035
+ display: none;
3036
+ }
3037
+ @media (min-width: 576px) {
3038
+ .np-logo-svg--size-md {
3039
+ display: block;
3040
+ }
3041
+ }
3031
3042
  .tw-modal--scrollable {
3032
3043
  max-height: 100%;
3033
3044
  /* mobile viewport bug fix */
@@ -8,3 +8,19 @@
8
8
  .np-theme-personal--dark .np-logo-svg path {
9
9
  fill: var(--color-white);
10
10
  }
11
+ .np-logo-svg--size-sm {
12
+ display: block;
13
+ }
14
+ @media (min-width: 576px) {
15
+ .np-logo-svg--size-sm {
16
+ display: none;
17
+ }
18
+ }
19
+ .np-logo-svg--size-md {
20
+ display: none;
21
+ }
22
+ @media (min-width: 576px) {
23
+ .np-logo-svg--size-md {
24
+ display: block;
25
+ }
26
+ }
@@ -1857,11 +1857,6 @@ button.np-option {
1857
1857
  transition: opacity 150ms ease-in, height 150ms ease-in 150ms;
1858
1858
  opacity: 0;
1859
1859
  }
1860
- .formatted-value__h3-custom-alignment {
1861
- margin-bottom: 16px;
1862
- margin-bottom: var(--size-16);
1863
- line-height: 24px;
1864
- }
1865
1860
  .emphasis {
1866
1861
  font-weight: 600;
1867
1862
  font-weight: var(--font-weight-semi-bold);
@@ -3028,6 +3023,22 @@ a {
3028
3023
  .np-theme-personal--dark .np-logo-svg path {
3029
3024
  fill: var(--color-white);
3030
3025
  }
3026
+ .np-logo-svg--size-sm {
3027
+ display: block;
3028
+ }
3029
+ @media (min-width: 576px) {
3030
+ .np-logo-svg--size-sm {
3031
+ display: none;
3032
+ }
3033
+ }
3034
+ .np-logo-svg--size-md {
3035
+ display: none;
3036
+ }
3037
+ @media (min-width: 576px) {
3038
+ .np-logo-svg--size-md {
3039
+ display: block;
3040
+ }
3041
+ }
3031
3042
  .tw-modal--scrollable {
3032
3043
  max-height: 100%;
3033
3044
  /* mobile viewport bug fix */
@@ -1,58 +1,47 @@
1
- import * as React from 'react';
2
-
3
- export interface AlertAction {
4
- "aria-label"?: string;
5
- href: string;
6
- target?: string;
7
- text: React.ReactNode;
8
- }
9
-
10
- export type AlertType = "negative" | "neutral" | "positive" | "warning" | "info" | "error" | "success";
11
-
12
- export type AlertVariant = "desktop" | "mobile";
13
-
14
- export interface AlertProps {
15
- /**
16
- * An optional call to action to sit under the main body of the alert. If your label is short, use aria-label to provide more context
17
- */
18
- action?: AlertAction;
19
- className?: string;
20
- /**
21
- * An optional icon. If not provided, we will default the icon to something appropriate for the type
22
- */
23
- icon?: React.ReactElement<any>;
24
- /**
25
- * Title for the alert component
26
- */
27
- title?: string;
28
- /**
29
- * The main body of the alert. Accepts plain text and bold words specified with **double stars
30
- */
31
- message?: any;
32
- /**
33
- * The presence of the onDismiss handler will trigger the visibility of the close button
34
- */
35
- onDismiss?: (...args: any[])=>any;
36
- /**
37
- * The type dictates which icon and colour will be used
38
- */
39
- type?: AlertType;
40
- variant?: AlertVariant;
41
- /**
42
- * @deprecated no arrow for `Alert` component anymore, consider to use [`InlineAlert`](https://transferwise.github.io/neptune-web/components/alerts/InlineAlert) component
43
- */
44
- arrow?: any;
45
- /**
46
- * @deprecated use `message` property instead
47
- */
48
- children?: any;
49
- /**
50
- * @deprecated use `onDismiss` instead
51
- */
52
- dismissible?: any;
53
- }
54
-
55
- declare const Alert: React.FC<AlertProps>;
56
-
57
- export default Alert;
58
-
1
+ /// <reference types="react" />
2
+ import { Sentiment, Size, Variant } from '../common';
3
+ export type AlertAction = {
4
+ 'aria-label'?: string;
5
+ href: string;
6
+ target?: string;
7
+ text: React.ReactNode;
8
+ };
9
+ /** @deprecated Use `"top" | "bottom"` instead. */
10
+ type AlertTypeDeprecated = `${Sentiment.SUCCESS | Sentiment.INFO | Sentiment.ERROR}`;
11
+ type AlertTypeResolved = `${Sentiment.POSITIVE | Sentiment.NEUTRAL | Sentiment.WARNING | Sentiment.NEGATIVE}`;
12
+ export type AlertType = AlertTypeResolved | AlertTypeDeprecated;
13
+ export declare enum AlertArrowPosition {
14
+ TOP_LEFT = "up-left",
15
+ TOP = "up-center",
16
+ TOP_RIGHT = "up-right",
17
+ BOTTOM_LEFT = "down-left",
18
+ BOTTOM = "down-center",
19
+ BOTTOM_RIGHT = "down-right"
20
+ }
21
+ export interface AlertProps {
22
+ /** An optional call to action to sit under the main body of the alert. If your label is short, use aria-label to provide more context */
23
+ action?: AlertAction;
24
+ className?: string;
25
+ /** An optional icon. If not provided, we will default the icon to something appropriate for the type */
26
+ icon?: React.ReactElement;
27
+ /** Title for the alert component */
28
+ title?: string;
29
+ /** The main body of the alert. Accepts plain text and bold words specified with **double stars*/
30
+ message?: string;
31
+ /** The presence of the onDismiss handler will trigger the visibility of the close button */
32
+ onDismiss?: React.MouseEventHandler<HTMLButtonElement>;
33
+ /** The type dictates which icon and colour will be used */
34
+ type?: AlertType;
35
+ variant?: `${Variant}`;
36
+ /** @deprecated Use `InlineAlert` instead. */
37
+ arrow?: `${AlertArrowPosition}`;
38
+ /** @deprecated Use `message` instead. Be aware `message` only accepts plain text or text with **bold** markdown. */
39
+ children?: React.ReactNode;
40
+ /** @deprecated Use `onDismiss` instead. */
41
+ dismissible?: boolean;
42
+ /** @deprecated Alert component doesn't support `size` anymore, please remove this prop. */
43
+ size?: `${Size}`;
44
+ }
45
+ export default function Alert({ arrow, action, children, className, dismissible, icon, onDismiss, message, size, title, type, variant, }: AlertProps): import("react").JSX.Element;
46
+ export {};
47
+ //# sourceMappingURL=Alert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/alert/Alert.js"],"names":[],"mappings":";AA8BA,gEA2FC"}
1
+ {"version":3,"file":"Alert.d.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C;IACvB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAChC,oHAAoH;IACpH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,2CAA2C;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,2FAA2F;IAC3F,IAAI,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC;CAClB;AAeD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,KAAK,EACL,MAAM,EACN,QAAQ,EACR,SAAS,EACT,WAAW,EACX,IAAI,EACJ,SAAS,EACT,OAAO,EACP,IAAI,EACJ,KAAK,EACL,IAAgB,EAChB,OAAmB,GACpB,EAAE,UAAU,+BA+GZ"}
@@ -1,2 +1,3 @@
1
- export { default } from "./Alert";
1
+ export { default } from './Alert';
2
+ export type { AlertProps, AlertAction, AlertArrowPosition, AlertType } from './Alert';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/alert/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
@@ -1,11 +1,10 @@
1
- import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType } from 'react';
2
- import { ControlTypeAccent, ControlTypeNegative, ControlTypePositive, PriorityPrimary, PrioritySecondary, PriorityTertiary, SizeExtraSmall, SizeSmall, SizeMedium, SizeLarge, LinkProps } from '../common';
1
+ /// <reference types="react" />
2
+ import { ControlTypeAccent, ControlTypeNegative, ControlTypePositive, PriorityPrimary, PrioritySecondary, PriorityTertiary, SizeExtraSmall, SizeSmall, SizeMedium, SizeLarge } from '../common';
3
3
  /** @deprecated */
4
4
  type DeprecatedTypes = 'primary' | 'pay' | 'secondary' | 'danger' | 'link';
5
5
  /** @deprecated */
6
6
  type DeprecatedSizes = SizeExtraSmall;
7
- export type CommonProps = {
8
- as?: ElementType;
7
+ type CommonProps = {
9
8
  block?: boolean;
10
9
  disabled?: boolean;
11
10
  loading?: boolean;
@@ -13,16 +12,15 @@ export type CommonProps = {
13
12
  priority?: PriorityPrimary | PrioritySecondary | PriorityTertiary;
14
13
  size?: SizeSmall | SizeMedium | SizeLarge | DeprecatedSizes;
15
14
  };
16
- export type ButtonProps = CommonProps & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type'> & {
15
+ type ButtonProps = CommonProps & Omit<React.ComponentPropsWithRef<'button'>, 'type'> & {
17
16
  as?: 'button';
18
17
  htmlType?: 'submit' | 'reset' | 'button';
19
18
  };
20
- export type AnchorProps = CommonProps & AnchorHTMLAttributes<HTMLAnchorElement> & Omit<LinkProps, 'href'> & {
19
+ type AnchorProps = CommonProps & React.ComponentPropsWithRef<'a'> & {
21
20
  as?: 'a';
22
- href?: string;
23
21
  };
24
22
  export type Props = ButtonProps | AnchorProps;
25
- export type ButtonReferenceType = HTMLButtonElement | HTMLAnchorElement;
26
- declare const Button: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<ButtonReferenceType>>;
23
+ type ButtonReferenceType = HTMLButtonElement | HTMLAnchorElement;
24
+ declare const Button: import("react").ForwardRefExoticComponent<(Omit<ButtonProps, "ref"> | Omit<AnchorProps, "ref">) & import("react").RefAttributes<ButtonReferenceType>>;
27
25
  export default Button;
28
26
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,WAAW,EAAc,MAAM,OAAO,CAAC;AAG5F,OAAO,EAIL,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,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BAAmB,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;AAEjE,QAAA,MAAM,MAAM,uJA4EX,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare function isWithinRange(date: Date, min: Date, max: Date): boolean;
1
+ export declare function isWithinRange(date: Date, min: Date | null, max: Date | null): boolean;
2
2
  //# sourceMappingURL=isWithinRange.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isWithinRange.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/isWithinRange/isWithinRange.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,WAE7D"}
1
+ {"version":3,"file":"isWithinRange.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/isWithinRange/isWithinRange.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI,WAE3E"}
@@ -1,2 +1,2 @@
1
- export declare function moveToWithinRange(date: Date, min: Date, max: Date): Date;
1
+ export declare function moveToWithinRange(date: Date, min: Date | null, max: Date | null): Date;
2
2
  //# sourceMappingURL=moveToWithinRange.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"moveToWithinRange.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/moveToWithinRange/moveToWithinRange.ts"],"names":[],"mappings":"AAGA,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,QAEjE"}
1
+ {"version":3,"file":"moveToWithinRange.d.ts","sourceRoot":"","sources":["../../../../../src/common/dateUtils/moveToWithinRange/moveToWithinRange.ts"],"names":[],"mappings":"AACA,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI,QAQ/E"}
@@ -17,5 +17,4 @@ export declare enum Sentiment {
17
17
  */
18
18
  SUCCESS = "success"
19
19
  }
20
- export type SentimentString = 'negative' | 'neutral' | 'positive' | 'warning' | 'pending' | 'info' | 'error' | 'success';
21
20
  //# sourceMappingURL=sentiment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sentiment.d.ts","sourceRoot":"","sources":["../../../../src/common/propsValues/sentiment.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IAEnB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,OAAO,YAAY;CACpB;AAED,MAAM,MAAM,eAAe,GACvB,UAAU,GACV,SAAS,GACT,UAAU,GACV,SAAS,GACT,SAAS,GACT,MAAM,GACN,OAAO,GACP,SAAS,CAAC"}
1
+ {"version":3,"file":"sentiment.d.ts","sourceRoot":"","sources":["../../../../src/common/propsValues/sentiment.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IAEnB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,OAAO,YAAY;CACpB"}
@@ -1,28 +1,75 @@
1
- import * as React from 'react';
2
-
3
- export type DateLookupSize = "sm" | "md" | "lg";
4
-
5
- export type DateLookupMonthFormat = "long" | "short";
6
-
7
- export interface DateLookupProps {
8
- id?: string;
9
- value?: Date;
10
- min?: Date;
11
- max?: Date;
12
- size?: DateLookupSize;
13
- placeholder?: string;
14
- label?: string;
15
- "aria-labelledby"?: string;
16
- monthFormat?: DateLookupMonthFormat;
17
- disabled?: boolean;
18
- onChange: (...args: any[])=>any;
19
- onFocus?: (...args: any[])=>any;
20
- onBlur?: (...args: any[])=>any;
21
- clearable?: boolean;
22
- }
23
-
24
- export default class DateLookup extends React.PureComponent<DateLookupProps, any> {
25
- render(): JSX.Element;
26
-
27
- }
28
-
1
+ import { PureComponent, KeyboardEvent } from 'react';
2
+ import { Size, MonthFormat, SizeSmall, SizeMedium, SizeLarge } from '../common';
3
+ export interface DateLookupProps {
4
+ id?: string;
5
+ value: Date | null;
6
+ min?: Date | null;
7
+ max?: Date | null;
8
+ size?: SizeSmall | SizeMedium | SizeLarge;
9
+ placeholder?: string;
10
+ label?: string;
11
+ 'aria-labelledby'?: string;
12
+ monthFormat?: `${MonthFormat}`;
13
+ disabled?: boolean;
14
+ clearable?: boolean;
15
+ onChange: (date: Date | null) => void;
16
+ onFocus?: () => void;
17
+ onBlur?: () => void;
18
+ }
19
+ interface DateLookupState {
20
+ selectedDate: Date | null;
21
+ originalDate: Date | null;
22
+ min: Date | null;
23
+ max: Date | null;
24
+ viewMonth: number;
25
+ viewYear: number;
26
+ open: boolean;
27
+ mode: 'day' | 'month' | 'year';
28
+ isMobile: boolean;
29
+ }
30
+ declare class DateLookup extends PureComponent<DateLookupProps, DateLookupState> {
31
+ props: DateLookupProps & Required<Pick<DateLookupProps, keyof typeof DateLookup.defaultProps>>;
32
+ static defaultProps: {
33
+ value: null;
34
+ min: null;
35
+ max: null;
36
+ size: Size.MEDIUM;
37
+ placeholder: string;
38
+ label: string;
39
+ monthFormat: MonthFormat.LONG;
40
+ disabled: false;
41
+ clearable: false;
42
+ };
43
+ element: import("react").RefObject<HTMLDivElement>;
44
+ dropdown: import("react").RefObject<HTMLDivElement>;
45
+ constructor(props: DateLookup['props']);
46
+ static getDerivedStateFromProps(props: DateLookup['props'], state: DateLookupState): {
47
+ selectedDate: Date | null;
48
+ min: Date | null;
49
+ max: Date | null;
50
+ viewMonth: number;
51
+ viewYear: number;
52
+ } | null;
53
+ componentDidUpdate(previousProps: DateLookupProps): void;
54
+ componentWillUnmount(): void;
55
+ open: () => void;
56
+ discard: () => void;
57
+ close: () => void;
58
+ handleKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
59
+ adjustDate: (daysToAdd: number, monthsToAdd: number, yearsToAdd: number) => void;
60
+ focusOn: (preferredElement: string, fallbackElement?: string) => void;
61
+ switchMode: (mode: 'day' | 'month' | 'year') => void;
62
+ switchToDays: () => void;
63
+ switchToMonths: () => void;
64
+ switchToYears: () => void;
65
+ handleSelectedDateUpdate: (selectedDate: Date) => void;
66
+ handleViewDateUpdate: ({ month, year }: {
67
+ month?: number | undefined;
68
+ year?: number | undefined;
69
+ }) => void;
70
+ getCalendar: () => import("react").JSX.Element;
71
+ handleClear: () => void;
72
+ render(): import("react").JSX.Element;
73
+ }
74
+ export default DateLookup;
75
+ //# sourceMappingURL=DateLookup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateLookup.d.ts","sourceRoot":"","sources":["../../../src/dateLookup/DateLookup.js"],"names":[],"mappings":";AAoBA;IAoBE;;;;;;aAqBC;IApCD,wBAaC;IAjBD,wCAAsB;IAEtB,yCAAuB;IAIrB;;;;;;;;;;MAUC;IA0BH,6CAMC;IAFC,uCAAyE;IAI3E,6BAGC;IAED,iBAOE;IAEF,oBAME;IAEF,kBAME;IAEF,oCA6CE;IAEF,wEAmBE;IAEF,+DAOE;IAEF,gCAIE;IAEF,yBAA+C;IAE/C,2BAAmD;IAEnD,0BAAiD;IAEjD,sDAME;IAEF;;;eAEE;IAEF,+CA8BE;IAEF,wBAGE;IAEF,sCAqCC;CACF"}
1
+ {"version":3,"file":"DateLookup.d.ts","sourceRoot":"","sources":["../../../src/dateLookup/DateLookup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEhE,OAAO,EACL,IAAI,EACJ,WAAW,EAGX,SAAS,EACT,UAAU,EACV,SAAS,EACV,MAAM,WAAW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,YAAY;;;;;;;;;;MAUkB;IAErC,OAAO,4CAA+B;IACtC,QAAQ,4CAA+B;gBAE3B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;IAetC,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,eAAe;;;;;;;IAwBlF,kBAAkB,CAAC,aAAa,EAAE,eAAe;IAQjD,oBAAoB;IAKpB,IAAI,aAOF;IAEF,OAAO,aAML;IAEF,KAAK,aAMH;IAEF,aAAa,UAAW,cAAc,cAAc,CAAC,UA6CnD;IAEF,UAAU,cAAe,MAAM,eAAe,MAAM,cAAc,MAAM,UAqBtE;IAEF,OAAO,qBAAsB,MAAM,oBAAoB,MAAM,UAO3D;IAEF,UAAU,SAAU,KAAK,GAAG,OAAO,GAAG,MAAM,UAI1C;IAEF,YAAY,aAAgC;IAE5C,cAAc,aAAkC;IAEhD,aAAa,aAAiC;IAE9C,wBAAwB,iBAAkB,IAAI,UAM5C;IAEF,oBAAoB;;;eAElB;IAEF,WAAW,oCA2CT;IAEF,WAAW,aAGT;IAEF,MAAM;CA2CP;AAED,eAAe,UAAU,CAAC"}
@@ -1,65 +1,44 @@
1
- declare namespace _default {
2
- namespace next {
3
- const id: string;
4
- const defaultMessage: string;
5
- const description: string;
6
- }
7
- namespace previous {
8
- const id_1: string;
9
- export { id_1 as id };
10
- const defaultMessage_1: string;
11
- export { defaultMessage_1 as defaultMessage };
12
- const description_1: string;
13
- export { description_1 as description };
14
- }
15
- namespace day {
16
- const id_2: string;
17
- export { id_2 as id };
18
- const defaultMessage_2: string;
19
- export { defaultMessage_2 as defaultMessage };
20
- const description_2: string;
21
- export { description_2 as description };
22
- }
23
- namespace month {
24
- const id_3: string;
25
- export { id_3 as id };
26
- const defaultMessage_3: string;
27
- export { defaultMessage_3 as defaultMessage };
28
- const description_3: string;
29
- export { description_3 as description };
30
- }
31
- namespace year {
32
- const id_4: string;
33
- export { id_4 as id };
34
- const defaultMessage_4: string;
35
- export { defaultMessage_4 as defaultMessage };
36
- const description_4: string;
37
- export { description_4 as description };
38
- }
39
- namespace twentyYears {
40
- const id_5: string;
41
- export { id_5 as id };
42
- const defaultMessage_5: string;
43
- export { defaultMessage_5 as defaultMessage };
44
- const description_5: string;
45
- export { description_5 as description };
46
- }
47
- namespace selected {
48
- const id_6: string;
49
- export { id_6 as id };
50
- const defaultMessage_6: string;
51
- export { defaultMessage_6 as defaultMessage };
52
- const description_6: string;
53
- export { description_6 as description };
54
- }
55
- namespace goTo20YearView {
56
- const id_7: string;
57
- export { id_7 as id };
58
- const defaultMessage_7: string;
59
- export { defaultMessage_7 as defaultMessage };
60
- const description_7: string;
61
- export { description_7 as description };
62
- }
63
- }
1
+ declare const _default: {
2
+ next: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ previous: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ day: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ month: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ year: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
27
+ twentyYears: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ selected: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
37
+ goTo20YearView: {
38
+ id: string;
39
+ defaultMessage: string;
40
+ description: string;
41
+ };
42
+ };
64
43
  export default _default;
65
44
  //# sourceMappingURL=DateLookup.messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateLookup.messages.d.ts","sourceRoot":"","sources":["../../../src/dateLookup/DateLookup.messages.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"DateLookup.messages.d.ts","sourceRoot":"","sources":["../../../src/dateLookup/DateLookup.messages.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAyCG"}
@@ -1,24 +1,11 @@
1
- export default DateHeader;
2
- declare function DateHeader({ label, onLabelClick, onPreviousClick, onNextClick, dateMode }: {
3
- label: any;
4
- onLabelClick: any;
5
- onPreviousClick: any;
6
- onNextClick: any;
7
- dateMode: any;
8
- }): import("react").JSX.Element;
9
- declare namespace DateHeader {
10
- namespace propTypes {
11
- const label: any;
12
- const onLabelClick: any;
13
- const onPreviousClick: any;
14
- const onNextClick: any;
15
- const dateMode: any;
16
- }
17
- namespace defaultProps {
18
- const label_1: null;
19
- export { label_1 as label };
20
- export function onLabelClick_1(): void;
21
- export { onLabelClick_1 as onLabelClick };
22
- }
1
+ /// <reference types="react" />
2
+ interface DateHeaderProps {
3
+ label?: string;
4
+ onLabelClick?: () => void;
5
+ onPreviousClick: () => void;
6
+ onNextClick: () => void;
7
+ dateMode: string;
23
8
  }
9
+ declare const DateHeader: React.FC<DateHeaderProps>;
10
+ export default DateHeader;
24
11
  //# sourceMappingURL=DateHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateHeader.d.ts","sourceRoot":"","sources":["../../../../src/dateLookup/dateHeader/DateHeader.js"],"names":[],"mappings":";AAYA;;;;;;gCA+CC;;;;;;;;;;;;QAYe,uCAAQ"}
1
+ {"version":3,"file":"DateHeader.d.ts","sourceRoot":"","sources":["../../../../src/dateLookup/dateHeader/DateHeader.tsx"],"names":[],"mappings":";AAWA,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqDzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,2 +1,2 @@
1
- export { default } from "./DateHeader";
1
+ export { default } from './DateHeader';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dateLookup/dateHeader/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dateLookup/dateHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
@@ -1,33 +1,15 @@
1
- export default DateTrigger;
2
- declare function DateTrigger({ selectedDate, size, placeholder, label, monthFormat, disabled, onClick, onClear, }: {
3
- selectedDate: any;
4
- size: any;
5
- placeholder: any;
6
- label: any;
7
- monthFormat: any;
8
- disabled: any;
9
- onClick: any;
10
- onClear: any;
11
- }): import("react").JSX.Element;
12
- declare namespace DateTrigger {
13
- namespace propTypes {
14
- const selectedDate: any;
15
- const size: any;
16
- const placeholder: any;
17
- const label: any;
18
- const monthFormat: any;
19
- const disabled: any;
20
- const onClick: any;
21
- const onClear: any;
22
- }
23
- namespace defaultProps {
24
- const selectedDate_1: null;
25
- export { selectedDate_1 as selectedDate };
26
- const size_1: Size;
27
- export { size_1 as size };
28
- const onClear_1: undefined;
29
- export { onClear_1 as onClear };
30
- }
1
+ /// <reference types="react" />
2
+ import { SizeSmall, SizeMedium, SizeLarge } from '../../common';
3
+ interface DateTriggerProps {
4
+ selectedDate: Date | null;
5
+ size: SizeSmall | SizeMedium | SizeLarge;
6
+ placeholder: string;
7
+ label: string;
8
+ monthFormat: 'short' | 'long';
9
+ disabled: boolean;
10
+ onClick: () => void;
11
+ onClear?: () => void;
31
12
  }
32
- import { Size } from "../../common/propsValues/size";
13
+ declare const DateTrigger: React.FC<DateTriggerProps>;
14
+ export default DateTrigger;
33
15
  //# sourceMappingURL=DateTrigger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateTrigger.d.ts","sourceRoot":"","sources":["../../../../src/dateLookup/dateTrigger/DateTrigger.js"],"names":[],"mappings":";AAWA;;;;;;;;;gCAmEC"}
1
+ {"version":3,"file":"DateTrigger.d.ts","sourceRoot":"","sources":["../../../../src/dateLookup/dateTrigger/DateTrigger.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAkB,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKhF,UAAU,gBAAgB;IACxB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0D3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,2 +1,2 @@
1
- export { default } from "./DateTrigger";
1
+ export { default } from './DateTrigger';
2
2
  //# sourceMappingURL=index.d.ts.map