@opentripplanner/from-to-location-picker 2.0.0 → 2.1.1

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/esm/index.js CHANGED
@@ -14,7 +14,9 @@ var iconSize = "0.9em"; // HACK: We should flatten the messages loaded above bec
14
14
  var defaultMessages = flatten(defaultEnglishMessages);
15
15
 
16
16
  var FromToLocationPicker = function FromToLocationPicker(_ref) {
17
- var _ref$location = _ref.location,
17
+ var _ref$label = _ref.label,
18
+ label = _ref$label === void 0 ? null : _ref$label,
19
+ _ref$location = _ref.location,
18
20
  location = _ref$location === void 0 ? null : _ref$location,
19
21
  _ref$onFromClick = _ref.onFromClick,
20
22
  onFromClick = _ref$onFromClick === void 0 ? null : _ref$onFromClick,
@@ -51,7 +53,12 @@ var FromToLocationPicker = function FromToLocationPicker(_ref) {
51
53
  });
52
54
  };
53
55
 
54
- return /*#__PURE__*/React.createElement(S.FromToPickerSpan, null, /*#__PURE__*/React.createElement(S.LocationPickerSpan, null, showIcons && /*#__PURE__*/React.createElement(LocationIcon, {
56
+ var labelIfAny = label === true ? /*#__PURE__*/React.createElement("strong", null, /*#__PURE__*/React.createElement(FormattedMessage, {
57
+ defaultMessage: defaultMessages["otpUi.FromToLocationPicker.planATrip"],
58
+ description: "Label to prompt the user to plan a trip",
59
+ id: "otpUi.FromToLocationPicker.planATrip"
60
+ })) : label;
61
+ return /*#__PURE__*/React.createElement(React.Fragment, null, labelIfAny, /*#__PURE__*/React.createElement(S.FromToPickerSpan, null, /*#__PURE__*/React.createElement(S.LocationPickerSpan, null, showIcons && /*#__PURE__*/React.createElement(LocationIcon, {
55
62
  type: "from",
56
63
  size: iconSize
57
64
  }), /*#__PURE__*/React.createElement(S.Button, {
@@ -69,7 +76,7 @@ var FromToLocationPicker = function FromToLocationPicker(_ref) {
69
76
  defaultMessage: defaultMessages["otpUi.FromToLocationPicker.to"],
70
77
  description: "Text for the 'to' button of the picker",
71
78
  id: "otpUi.FromToLocationPicker.to"
72
- }))));
79
+ })))));
73
80
  };
74
81
 
75
82
  export default FromToLocationPicker; // Rename styled components for export
package/esm/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.tsx"],"names":["flatten","LocationIcon","FormattedMessage","React","S","defaultEnglishMessages","iconSize","defaultMessages","FromToLocationPicker","location","onFromClick","onToClick","setLocation","showIcons","handleFromClick","locationType","reverseGeocode","handleToClick","Styled"],"mappings":"AAAA,OAAOA,OAAP,MAAoB,MAApB;AACA,OAAOC,YAAP,MAAyB,gCAAzB;AACA,SAASC,gBAAT,QAAiC,YAAjC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AAEA,OAAO,KAAKC,CAAZ,MAAmB,UAAnB,C,CAEA;;AAGA;AACA,OAAOC,sBAAP,MAAmC,mBAAnC;AAEA,IAAMC,QAAQ,GAAG,OAAjB,C,CAEA;AACA;AACA;AACA;;AACA,IAAMC,eAAuC,GAAGP,OAAO,CAACK,sBAAD,CAAvD;;AAEA,IAAMG,oBAAoB,GAAG,SAAvBA,oBAAuB,OAMgB;AAAA,2BAL3CC,QAK2C;AAAA,MAL3CA,QAK2C,8BALhC,IAKgC;AAAA,8BAJ3CC,WAI2C;AAAA,MAJ3CA,WAI2C,iCAJ7B,IAI6B;AAAA,4BAH3CC,SAG2C;AAAA,MAH3CA,SAG2C,+BAH/B,IAG+B;AAAA,8BAF3CC,WAE2C;AAAA,MAF3CA,WAE2C,iCAF7B,IAE6B;AAAA,4BAD3CC,SAC2C;AAAA,MAD3CA,SAC2C,+BAD/B,IAC+B;;AAC3C,MAAMC,eAAe,GAAG,SAAlBA,eAAkB,GAAM;AAC5B,QAAIJ,WAAJ,EAAiB;AACfA,MAAAA,WAAW;AACX;AACD;;AACDE,IAAAA,WAAW,CAAC;AACVH,MAAAA,QAAQ,EAARA,QADU;AAEVM,MAAAA,YAAY,EAAE,MAFJ;AAGVC,MAAAA,cAAc,EAAE;AAHN,KAAD,CAAX;AAKD,GAVD;;AAYA,MAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AAC1B,QAAIN,SAAJ,EAAe;AACbA,MAAAA,SAAS;AACT;AACD;;AACDC,IAAAA,WAAW,CAAC;AACVH,MAAAA,QAAQ,EAARA,QADU;AAEVM,MAAAA,YAAY,EAAE,IAFJ;AAGVC,MAAAA,cAAc,EAAE;AAHN,KAAD,CAAX;AAKD,GAVD;;AAYA,sBACE,oBAAC,CAAD,CAAG,gBAAH,qBACE,oBAAC,CAAD,CAAG,kBAAH,QACGH,SAAS,iBAAI,oBAAC,YAAD;AAAc,IAAA,IAAI,EAAC,MAAnB;AAA0B,IAAA,IAAI,EAAEP;AAAhC,IADhB,eAEE,oBAAC,CAAD,CAAG,MAAH;AAAU,IAAA,OAAO,EAAEQ;AAAnB,kBACE,oBAAC,gBAAD;AACE,IAAA,cAAc,EAAEP,eAAe,CAAC,iCAAD,CADjC;AAEE,IAAA,WAAW,EAAC,0CAFd;AAGE,IAAA,EAAE,EAAC;AAHL,IADF,CAFF,CADF,eAWE,oBAAC,CAAD,CAAG,kBAAH,QACGM,SAAS,iBAAI,oBAAC,YAAD;AAAc,IAAA,IAAI,EAAC,IAAnB;AAAwB,IAAA,IAAI,EAAEP;AAA9B,IADhB,eAEE,oBAAC,CAAD,CAAG,MAAH;AAAU,IAAA,OAAO,EAAEW;AAAnB,kBACE,oBAAC,gBAAD;AACE,IAAA,cAAc,EAAEV,eAAe,CAAC,+BAAD,CADjC;AAEE,IAAA,WAAW,EAAC,wCAFd;AAGE,IAAA,EAAE,EAAC;AAHL,IADF,CAFF,CAXF,CADF;AAwBD,CAvDD;;AAyDA,eAAeC,oBAAf,C,CAEA;;AACA,SAASJ,CAAC,IAAIc,MAAd","sourcesContent":["import flatten from \"flat\";\nimport LocationIcon from \"@opentripplanner/location-icon\";\nimport { FormattedMessage } from \"react-intl\";\nimport React from \"react\";\n\nimport * as S from \"./styled\";\n\n// eslint-disable-next-line prettier/prettier\nimport type { FromToPickerProps } from \"./types\";\n\n// Load the default messages.\nimport defaultEnglishMessages from \"../i18n/en-US.yml\";\n\nconst iconSize = \"0.9em\";\n\n// HACK: We should flatten the messages loaded above because\n// the YAML loaders behave differently between webpack and our version of jest:\n// - the yaml loader for webpack returns a nested object,\n// - the yaml loader for jest returns messages with flattened ids.\nconst defaultMessages: Record<string, string> = flatten(defaultEnglishMessages);\n\nconst FromToLocationPicker = ({\n location = null,\n onFromClick = null,\n onToClick = null,\n setLocation = null,\n showIcons = true\n}: FromToPickerProps): React.ReactElement => {\n const handleFromClick = () => {\n if (onFromClick) {\n onFromClick();\n return;\n }\n setLocation({\n location,\n locationType: \"from\",\n reverseGeocode: false\n });\n };\n\n const handleToClick = () => {\n if (onToClick) {\n onToClick();\n return;\n }\n setLocation({\n location,\n locationType: \"to\",\n reverseGeocode: false\n });\n };\n\n return (\n <S.FromToPickerSpan>\n <S.LocationPickerSpan>\n {showIcons && <LocationIcon type=\"from\" size={iconSize} />}\n <S.Button onClick={handleFromClick}>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.FromToLocationPicker.from\"]}\n description=\"Text for the 'from' button of the picker\"\n id=\"otpUi.FromToLocationPicker.from\"\n />\n </S.Button>\n </S.LocationPickerSpan>\n <S.LocationPickerSpan>\n {showIcons && <LocationIcon type=\"to\" size={iconSize} />}\n <S.Button onClick={handleToClick}>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.FromToLocationPicker.to\"]}\n description=\"Text for the 'to' button of the picker\"\n id=\"otpUi.FromToLocationPicker.to\"\n />\n </S.Button>\n </S.LocationPickerSpan>\n </S.FromToPickerSpan>\n );\n};\n\nexport default FromToLocationPicker;\n\n// Rename styled components for export\nexport { S as Styled };\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../src/index.tsx"],"names":["flatten","LocationIcon","FormattedMessage","React","S","defaultEnglishMessages","iconSize","defaultMessages","FromToLocationPicker","label","location","onFromClick","onToClick","setLocation","showIcons","handleFromClick","locationType","reverseGeocode","handleToClick","labelIfAny","Styled"],"mappings":"AAAA,OAAOA,OAAP,MAAoB,MAApB;AACA,OAAOC,YAAP,MAAyB,gCAAzB;AACA,SAASC,gBAAT,QAAiC,YAAjC;AACA,OAAOC,KAAP,MAAoC,OAApC;AAEA,OAAO,KAAKC,CAAZ,MAAmB,UAAnB,C,CAEA;;AAGA;AACA,OAAOC,sBAAP,MAAmC,mBAAnC;AAEA,IAAMC,QAAQ,GAAG,OAAjB,C,CAEA;AACA;AACA;AACA;;AACA,IAAMC,eAAuC,GAAGP,OAAO,CAACK,sBAAD,CAAvD;;AAEA,IAAMG,oBAAoB,GAAG,SAAvBA,oBAAuB,OAOU;AAAA,wBANrCC,KAMqC;AAAA,MANrCA,KAMqC,2BAN7B,IAM6B;AAAA,2BALrCC,QAKqC;AAAA,MALrCA,QAKqC,8BAL1B,IAK0B;AAAA,8BAJrCC,WAIqC;AAAA,MAJrCA,WAIqC,iCAJvB,IAIuB;AAAA,4BAHrCC,SAGqC;AAAA,MAHrCA,SAGqC,+BAHzB,IAGyB;AAAA,8BAFrCC,WAEqC;AAAA,MAFrCA,WAEqC,iCAFvB,IAEuB;AAAA,4BADrCC,SACqC;AAAA,MADrCA,SACqC,+BADzB,IACyB;;AACrC,MAAMC,eAAe,GAAG,SAAlBA,eAAkB,GAAM;AAC5B,QAAIJ,WAAJ,EAAiB;AACfA,MAAAA,WAAW;AACX;AACD;;AACDE,IAAAA,WAAW,CAAC;AACVH,MAAAA,QAAQ,EAARA,QADU;AAEVM,MAAAA,YAAY,EAAE,MAFJ;AAGVC,MAAAA,cAAc,EAAE;AAHN,KAAD,CAAX;AAKD,GAVD;;AAYA,MAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AAC1B,QAAIN,SAAJ,EAAe;AACbA,MAAAA,SAAS;AACT;AACD;;AACDC,IAAAA,WAAW,CAAC;AACVH,MAAAA,QAAQ,EAARA,QADU;AAEVM,MAAAA,YAAY,EAAE,IAFJ;AAGVC,MAAAA,cAAc,EAAE;AAHN,KAAD,CAAX;AAKD,GAVD;;AAYA,MAAME,UAAU,GAAGV,KAAK,KAAK,IAAV,gBAEjB,iDACE,oBAAC,gBAAD;AACE,IAAA,cAAc,EAAEF,eAAe,CAAC,sCAAD,CADjC;AAEE,IAAA,WAAW,EAAC,yCAFd;AAGE,IAAA,EAAE,EAAC;AAHL,IADF,CAFiB,GAUfE,KAVJ;AAYA,sBACE,0CACGU,UADH,eAEE,oBAAC,CAAD,CAAG,gBAAH,qBACE,oBAAC,CAAD,CAAG,kBAAH,QACGL,SAAS,iBAAI,oBAAC,YAAD;AAAc,IAAA,IAAI,EAAC,MAAnB;AAA0B,IAAA,IAAI,EAAER;AAAhC,IADhB,eAEE,oBAAC,CAAD,CAAG,MAAH;AAAU,IAAA,OAAO,EAAES;AAAnB,kBACE,oBAAC,gBAAD;AACE,IAAA,cAAc,EAAER,eAAe,CAAC,iCAAD,CADjC;AAEE,IAAA,WAAW,EAAC,0CAFd;AAGE,IAAA,EAAE,EAAC;AAHL,IADF,CAFF,CADF,eAWE,oBAAC,CAAD,CAAG,kBAAH,QACGO,SAAS,iBAAI,oBAAC,YAAD;AAAc,IAAA,IAAI,EAAC,IAAnB;AAAwB,IAAA,IAAI,EAAER;AAA9B,IADhB,eAEE,oBAAC,CAAD,CAAG,MAAH;AAAU,IAAA,OAAO,EAAEY;AAAnB,kBACE,oBAAC,gBAAD;AACE,IAAA,cAAc,EAAEX,eAAe,CAAC,+BAAD,CADjC;AAEE,IAAA,WAAW,EAAC,wCAFd;AAGE,IAAA,EAAE,EAAC;AAHL,IADF,CAFF,CAXF,CAFF,CADF;AA2BD,CAvED;;AAyEA,eAAeC,oBAAf,C,CAEA;;AACA,SAASJ,CAAC,IAAIgB,MAAd","sourcesContent":["import flatten from \"flat\";\nimport LocationIcon from \"@opentripplanner/location-icon\";\nimport { FormattedMessage } from \"react-intl\";\nimport React, { ReactElement } from \"react\";\n\nimport * as S from \"./styled\";\n\n// eslint-disable-next-line prettier/prettier\nimport type { FromToPickerProps } from \"./types\";\n\n// Load the default messages.\nimport defaultEnglishMessages from \"../i18n/en-US.yml\";\n\nconst iconSize = \"0.9em\";\n\n// HACK: We should flatten the messages loaded above because\n// the YAML loaders behave differently between webpack and our version of jest:\n// - the yaml loader for webpack returns a nested object,\n// - the yaml loader for jest returns messages with flattened ids.\nconst defaultMessages: Record<string, string> = flatten(defaultEnglishMessages);\n\nconst FromToLocationPicker = ({\n label = null,\n location = null,\n onFromClick = null,\n onToClick = null,\n setLocation = null,\n showIcons = true\n}: FromToPickerProps): ReactElement => {\n const handleFromClick = () => {\n if (onFromClick) {\n onFromClick();\n return;\n }\n setLocation({\n location,\n locationType: \"from\",\n reverseGeocode: false\n });\n };\n\n const handleToClick = () => {\n if (onToClick) {\n onToClick();\n return;\n }\n setLocation({\n location,\n locationType: \"to\",\n reverseGeocode: false\n });\n };\n\n const labelIfAny = label === true\n ? (\n <strong>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.FromToLocationPicker.planATrip\"]}\n description=\"Label to prompt the user to plan a trip\"\n id=\"otpUi.FromToLocationPicker.planATrip\"\n />\n </strong>\n )\n : label\n\n return (\n <>\n {labelIfAny}\n <S.FromToPickerSpan>\n <S.LocationPickerSpan>\n {showIcons && <LocationIcon type=\"from\" size={iconSize} />}\n <S.Button onClick={handleFromClick}>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.FromToLocationPicker.from\"]}\n description=\"Text for the 'from' button of the picker\"\n id=\"otpUi.FromToLocationPicker.from\"\n />\n </S.Button>\n </S.LocationPickerSpan>\n <S.LocationPickerSpan>\n {showIcons && <LocationIcon type=\"to\" size={iconSize} />}\n <S.Button onClick={handleToClick}>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.FromToLocationPicker.to\"]}\n description=\"Text for the 'to' button of the picker\"\n id=\"otpUi.FromToLocationPicker.to\"\n />\n </S.Button>\n </S.LocationPickerSpan>\n </S.FromToPickerSpan>\n </>\n );\n};\n\nexport default FromToLocationPicker;\n\n// Rename styled components for export\nexport { S as Styled };\n"],"file":"index.js"}
package/i18n/en-US.yml CHANGED
@@ -11,4 +11,5 @@
11
11
  otpUi:
12
12
  FromToLocationPicker:
13
13
  from: From here
14
+ planATrip: "Plan a trip:"
14
15
  to: To here
package/i18n/fr.yml ADDED
@@ -0,0 +1,15 @@
1
+ # Default messages for the FromToLocationPicker component.
2
+ # To use from a react-intl application:
3
+ # - merge the content of this file into the messages object
4
+ # that has your other localized strings,
5
+ # - flatten the ids, i.e. convert a structure such as
6
+ # otpUi > FromToLocationPicker > from
7
+ # into "otpUi.FromToLocationPicker.from" (see FromToLocationPicker story for an example),
8
+ # - pass the resulting object to the messages prop of IntlProvider.
9
+ #
10
+
11
+ otpUi:
12
+ FromToLocationPicker:
13
+ from: Départ
14
+ planATrip: "Planifier un trajet :"
15
+ to: Arrivée
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import React from "react";
1
+ import { ReactElement } from "react";
2
2
  import * as S from "./styled";
3
3
  import type { FromToPickerProps } from "./types";
4
- declare const FromToLocationPicker: ({ location, onFromClick, onToClick, setLocation, showIcons }: FromToPickerProps) => React.ReactElement;
4
+ declare const FromToLocationPicker: ({ label, location, onFromClick, onToClick, setLocation, showIcons }: FromToPickerProps) => ReactElement;
5
5
  export default FromToLocationPicker;
6
6
  export { S as Styled };
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAG9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAajD,QAAA,MAAM,oBAAoB,iEAMvB,iBAAiB,KAAG,MAAM,YAiD5B,CAAC;AAEF,eAAe,oBAAoB,CAAC;AAGpC,OAAO,EAAE,CAAC,IAAI,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAGA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAG9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAajD,QAAA,MAAM,oBAAoB,wEAOvB,iBAAiB,KAAG,YAgEtB,CAAC;AAEF,eAAe,oBAAoB,CAAC;AAGpC,OAAO,EAAE,CAAC,IAAI,MAAM,EAAE,CAAC"}
package/lib/index.js CHANGED
@@ -34,6 +34,7 @@ const iconSize = "0.9em"; // HACK: We should flatten the messages loaded above b
34
34
  const defaultMessages = (0, _flat.default)(_enUS.default);
35
35
 
36
36
  const FromToLocationPicker = ({
37
+ label = null,
37
38
  location = null,
38
39
  onFromClick = null,
39
40
  onToClick = null,
@@ -66,7 +67,12 @@ const FromToLocationPicker = ({
66
67
  });
67
68
  };
68
69
 
69
- return /*#__PURE__*/_react.default.createElement(S.FromToPickerSpan, null, /*#__PURE__*/_react.default.createElement(S.LocationPickerSpan, null, showIcons && /*#__PURE__*/_react.default.createElement(_locationIcon.default, {
70
+ const labelIfAny = label === true ? /*#__PURE__*/_react.default.createElement("strong", null, /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
71
+ defaultMessage: defaultMessages["otpUi.FromToLocationPicker.planATrip"],
72
+ description: "Label to prompt the user to plan a trip",
73
+ id: "otpUi.FromToLocationPicker.planATrip"
74
+ })) : label;
75
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, labelIfAny, /*#__PURE__*/_react.default.createElement(S.FromToPickerSpan, null, /*#__PURE__*/_react.default.createElement(S.LocationPickerSpan, null, showIcons && /*#__PURE__*/_react.default.createElement(_locationIcon.default, {
70
76
  type: "from",
71
77
  size: iconSize
72
78
  }), /*#__PURE__*/_react.default.createElement(S.Button, {
@@ -84,7 +90,7 @@ const FromToLocationPicker = ({
84
90
  defaultMessage: defaultMessages["otpUi.FromToLocationPicker.to"],
85
91
  description: "Text for the 'to' button of the picker",
86
92
  id: "otpUi.FromToLocationPicker.to"
87
- }))));
93
+ })))));
88
94
  };
89
95
 
90
96
  var _default = FromToLocationPicker; // Rename styled components for export
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.tsx"],"names":["iconSize","defaultMessages","defaultEnglishMessages","FromToLocationPicker","location","onFromClick","onToClick","setLocation","showIcons","handleFromClick","locationType","reverseGeocode","handleToClick"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;;;AAMA;;;;;;AADA;AAGA,MAAMA,QAAQ,GAAG,OAAjB,C,CAEA;AACA;AACA;AACA;;AACA,MAAMC,eAAuC,GAAG,mBAAQC,aAAR,CAAhD;;AAEA,MAAMC,oBAAoB,GAAG,CAAC;AAC5BC,EAAAA,QAAQ,GAAG,IADiB;AAE5BC,EAAAA,WAAW,GAAG,IAFc;AAG5BC,EAAAA,SAAS,GAAG,IAHgB;AAI5BC,EAAAA,WAAW,GAAG,IAJc;AAK5BC,EAAAA,SAAS,GAAG;AALgB,CAAD,KAMgB;AAC3C,QAAMC,eAAe,GAAG,MAAM;AAC5B,QAAIJ,WAAJ,EAAiB;AACfA,MAAAA,WAAW;AACX;AACD;;AACDE,IAAAA,WAAW,CAAC;AACVH,MAAAA,QADU;AAEVM,MAAAA,YAAY,EAAE,MAFJ;AAGVC,MAAAA,cAAc,EAAE;AAHN,KAAD,CAAX;AAKD,GAVD;;AAYA,QAAMC,aAAa,GAAG,MAAM;AAC1B,QAAIN,SAAJ,EAAe;AACbA,MAAAA,SAAS;AACT;AACD;;AACDC,IAAAA,WAAW,CAAC;AACVH,MAAAA,QADU;AAEVM,MAAAA,YAAY,EAAE,IAFJ;AAGVC,MAAAA,cAAc,EAAE;AAHN,KAAD,CAAX;AAKD,GAVD;;AAYA,sBACE,6BAAC,CAAD,CAAG,gBAAH,qBACE,6BAAC,CAAD,CAAG,kBAAH,QACGH,SAAS,iBAAI,6BAAC,qBAAD;AAAc,IAAA,IAAI,EAAC,MAAnB;AAA0B,IAAA,IAAI,EAAER;AAAhC,IADhB,eAEE,6BAAC,CAAD,CAAG,MAAH;AAAU,IAAA,OAAO,EAAES;AAAnB,kBACE,6BAAC,2BAAD;AACE,IAAA,cAAc,EAAER,eAAe,CAAC,iCAAD,CADjC;AAEE,IAAA,WAAW,EAAC,0CAFd;AAGE,IAAA,EAAE,EAAC;AAHL,IADF,CAFF,CADF,eAWE,6BAAC,CAAD,CAAG,kBAAH,QACGO,SAAS,iBAAI,6BAAC,qBAAD;AAAc,IAAA,IAAI,EAAC,IAAnB;AAAwB,IAAA,IAAI,EAAER;AAA9B,IADhB,eAEE,6BAAC,CAAD,CAAG,MAAH;AAAU,IAAA,OAAO,EAAEY;AAAnB,kBACE,6BAAC,2BAAD;AACE,IAAA,cAAc,EAAEX,eAAe,CAAC,+BAAD,CADjC;AAEE,IAAA,WAAW,EAAC,wCAFd;AAGE,IAAA,EAAE,EAAC;AAHL,IADF,CAFF,CAXF,CADF;AAwBD,CAvDD;;eAyDeE,oB,EAEf","sourcesContent":["import flatten from \"flat\";\nimport LocationIcon from \"@opentripplanner/location-icon\";\nimport { FormattedMessage } from \"react-intl\";\nimport React from \"react\";\n\nimport * as S from \"./styled\";\n\n// eslint-disable-next-line prettier/prettier\nimport type { FromToPickerProps } from \"./types\";\n\n// Load the default messages.\nimport defaultEnglishMessages from \"../i18n/en-US.yml\";\n\nconst iconSize = \"0.9em\";\n\n// HACK: We should flatten the messages loaded above because\n// the YAML loaders behave differently between webpack and our version of jest:\n// - the yaml loader for webpack returns a nested object,\n// - the yaml loader for jest returns messages with flattened ids.\nconst defaultMessages: Record<string, string> = flatten(defaultEnglishMessages);\n\nconst FromToLocationPicker = ({\n location = null,\n onFromClick = null,\n onToClick = null,\n setLocation = null,\n showIcons = true\n}: FromToPickerProps): React.ReactElement => {\n const handleFromClick = () => {\n if (onFromClick) {\n onFromClick();\n return;\n }\n setLocation({\n location,\n locationType: \"from\",\n reverseGeocode: false\n });\n };\n\n const handleToClick = () => {\n if (onToClick) {\n onToClick();\n return;\n }\n setLocation({\n location,\n locationType: \"to\",\n reverseGeocode: false\n });\n };\n\n return (\n <S.FromToPickerSpan>\n <S.LocationPickerSpan>\n {showIcons && <LocationIcon type=\"from\" size={iconSize} />}\n <S.Button onClick={handleFromClick}>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.FromToLocationPicker.from\"]}\n description=\"Text for the 'from' button of the picker\"\n id=\"otpUi.FromToLocationPicker.from\"\n />\n </S.Button>\n </S.LocationPickerSpan>\n <S.LocationPickerSpan>\n {showIcons && <LocationIcon type=\"to\" size={iconSize} />}\n <S.Button onClick={handleToClick}>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.FromToLocationPicker.to\"]}\n description=\"Text for the 'to' button of the picker\"\n id=\"otpUi.FromToLocationPicker.to\"\n />\n </S.Button>\n </S.LocationPickerSpan>\n </S.FromToPickerSpan>\n );\n};\n\nexport default FromToLocationPicker;\n\n// Rename styled components for export\nexport { S as Styled };\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../src/index.tsx"],"names":["iconSize","defaultMessages","defaultEnglishMessages","FromToLocationPicker","label","location","onFromClick","onToClick","setLocation","showIcons","handleFromClick","locationType","reverseGeocode","handleToClick","labelIfAny"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;;;AAMA;;;;;;AADA;AAGA,MAAMA,QAAQ,GAAG,OAAjB,C,CAEA;AACA;AACA;AACA;;AACA,MAAMC,eAAuC,GAAG,mBAAQC,aAAR,CAAhD;;AAEA,MAAMC,oBAAoB,GAAG,CAAC;AAC5BC,EAAAA,KAAK,GAAG,IADoB;AAE5BC,EAAAA,QAAQ,GAAG,IAFiB;AAG5BC,EAAAA,WAAW,GAAG,IAHc;AAI5BC,EAAAA,SAAS,GAAG,IAJgB;AAK5BC,EAAAA,WAAW,GAAG,IALc;AAM5BC,EAAAA,SAAS,GAAG;AANgB,CAAD,KAOU;AACrC,QAAMC,eAAe,GAAG,MAAM;AAC5B,QAAIJ,WAAJ,EAAiB;AACfA,MAAAA,WAAW;AACX;AACD;;AACDE,IAAAA,WAAW,CAAC;AACVH,MAAAA,QADU;AAEVM,MAAAA,YAAY,EAAE,MAFJ;AAGVC,MAAAA,cAAc,EAAE;AAHN,KAAD,CAAX;AAKD,GAVD;;AAYA,QAAMC,aAAa,GAAG,MAAM;AAC1B,QAAIN,SAAJ,EAAe;AACbA,MAAAA,SAAS;AACT;AACD;;AACDC,IAAAA,WAAW,CAAC;AACVH,MAAAA,QADU;AAEVM,MAAAA,YAAY,EAAE,IAFJ;AAGVC,MAAAA,cAAc,EAAE;AAHN,KAAD,CAAX;AAKD,GAVD;;AAYA,QAAME,UAAU,GAAGV,KAAK,KAAK,IAAV,gBAEjB,0DACE,6BAAC,2BAAD;AACE,IAAA,cAAc,EAAEH,eAAe,CAAC,sCAAD,CADjC;AAEE,IAAA,WAAW,EAAC,yCAFd;AAGE,IAAA,EAAE,EAAC;AAHL,IADF,CAFiB,GAUfG,KAVJ;AAYA,sBACE,4DACGU,UADH,eAEE,6BAAC,CAAD,CAAG,gBAAH,qBACE,6BAAC,CAAD,CAAG,kBAAH,QACGL,SAAS,iBAAI,6BAAC,qBAAD;AAAc,IAAA,IAAI,EAAC,MAAnB;AAA0B,IAAA,IAAI,EAAET;AAAhC,IADhB,eAEE,6BAAC,CAAD,CAAG,MAAH;AAAU,IAAA,OAAO,EAAEU;AAAnB,kBACE,6BAAC,2BAAD;AACE,IAAA,cAAc,EAAET,eAAe,CAAC,iCAAD,CADjC;AAEE,IAAA,WAAW,EAAC,0CAFd;AAGE,IAAA,EAAE,EAAC;AAHL,IADF,CAFF,CADF,eAWE,6BAAC,CAAD,CAAG,kBAAH,QACGQ,SAAS,iBAAI,6BAAC,qBAAD;AAAc,IAAA,IAAI,EAAC,IAAnB;AAAwB,IAAA,IAAI,EAAET;AAA9B,IADhB,eAEE,6BAAC,CAAD,CAAG,MAAH;AAAU,IAAA,OAAO,EAAEa;AAAnB,kBACE,6BAAC,2BAAD;AACE,IAAA,cAAc,EAAEZ,eAAe,CAAC,+BAAD,CADjC;AAEE,IAAA,WAAW,EAAC,wCAFd;AAGE,IAAA,EAAE,EAAC;AAHL,IADF,CAFF,CAXF,CAFF,CADF;AA2BD,CAvED;;eAyEeE,oB,EAEf","sourcesContent":["import flatten from \"flat\";\nimport LocationIcon from \"@opentripplanner/location-icon\";\nimport { FormattedMessage } from \"react-intl\";\nimport React, { ReactElement } from \"react\";\n\nimport * as S from \"./styled\";\n\n// eslint-disable-next-line prettier/prettier\nimport type { FromToPickerProps } from \"./types\";\n\n// Load the default messages.\nimport defaultEnglishMessages from \"../i18n/en-US.yml\";\n\nconst iconSize = \"0.9em\";\n\n// HACK: We should flatten the messages loaded above because\n// the YAML loaders behave differently between webpack and our version of jest:\n// - the yaml loader for webpack returns a nested object,\n// - the yaml loader for jest returns messages with flattened ids.\nconst defaultMessages: Record<string, string> = flatten(defaultEnglishMessages);\n\nconst FromToLocationPicker = ({\n label = null,\n location = null,\n onFromClick = null,\n onToClick = null,\n setLocation = null,\n showIcons = true\n}: FromToPickerProps): ReactElement => {\n const handleFromClick = () => {\n if (onFromClick) {\n onFromClick();\n return;\n }\n setLocation({\n location,\n locationType: \"from\",\n reverseGeocode: false\n });\n };\n\n const handleToClick = () => {\n if (onToClick) {\n onToClick();\n return;\n }\n setLocation({\n location,\n locationType: \"to\",\n reverseGeocode: false\n });\n };\n\n const labelIfAny = label === true\n ? (\n <strong>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.FromToLocationPicker.planATrip\"]}\n description=\"Label to prompt the user to plan a trip\"\n id=\"otpUi.FromToLocationPicker.planATrip\"\n />\n </strong>\n )\n : label\n\n return (\n <>\n {labelIfAny}\n <S.FromToPickerSpan>\n <S.LocationPickerSpan>\n {showIcons && <LocationIcon type=\"from\" size={iconSize} />}\n <S.Button onClick={handleFromClick}>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.FromToLocationPicker.from\"]}\n description=\"Text for the 'from' button of the picker\"\n id=\"otpUi.FromToLocationPicker.from\"\n />\n </S.Button>\n </S.LocationPickerSpan>\n <S.LocationPickerSpan>\n {showIcons && <LocationIcon type=\"to\" size={iconSize} />}\n <S.Button onClick={handleToClick}>\n <FormattedMessage\n defaultMessage={defaultMessages[\"otpUi.FromToLocationPicker.to\"]}\n description=\"Text for the 'to' button of the picker\"\n id=\"otpUi.FromToLocationPicker.to\"\n />\n </S.Button>\n </S.LocationPickerSpan>\n </S.FromToPickerSpan>\n </>\n );\n};\n\nexport default FromToLocationPicker;\n\n// Rename styled components for export\nexport { S as Styled };\n"],"file":"index.js"}
package/lib/types.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { ReactElement } from "react";
1
2
  export declare type Location = {
2
3
  lat: number;
3
4
  lon: number;
@@ -9,6 +10,10 @@ export declare type Location = {
9
10
  type?: string;
10
11
  };
11
12
  export declare type FromToPickerProps = {
13
+ /**
14
+ * Specifies the label to be rendered, or if set to true, renders the default label "Plan a trip:".
15
+ */
16
+ label?: boolean | ReactElement | string;
12
17
  /**
13
18
  * A specific location to associate with this. This is only used when combined
14
19
  * with the setLocation prop.
@@ -17,11 +22,11 @@ export declare type FromToPickerProps = {
17
22
  /**
18
23
  * Triggered when the user clicks on the "from" button.
19
24
  */
20
- onFromClick: () => void;
25
+ onFromClick?: () => void;
21
26
  /**
22
27
  * Triggered when the user clicks on the "to" button.
23
28
  */
24
- onToClick: () => void;
29
+ onToClick?: () => void;
25
30
  /**
26
31
  * Triggered when the user clicks either the "from" or "to" button and there
27
32
  * are no from/to specific handler functions defined as props.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,CAAC,EACb,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,OAAO,EACxB;;;;KAAA,KAAK,IAAI,CAAC;IACX;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,oBAAY,QAAQ,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,YAAY,GAAG,MAAM,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,CAAC,EACb,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,OAAO,EACxB;;;;KAAA,KAAK,IAAI,CAAC;IACX;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentripplanner/from-to-location-picker",
3
- "version": "2.0.0",
3
+ "version": "2.1.1",
4
4
  "description": "Location Picker Component",
5
5
  "author": "@binh-dam-ibigroup",
6
6
  "homepage": "https://github.com/opentripplanner/otp-ui/#readme",
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { ReactElement } from "react";
2
2
  import { IntlProvider } from "react-intl";
3
3
  import { action } from "@storybook/addon-actions";
4
4
 
@@ -14,19 +14,18 @@ export default {
14
14
  const onFromClick = action("onFromClick");
15
15
  const onToClick = action("onToClick");
16
16
 
17
- export const fromTo = (): React.ReactElement => (
18
- <IntlProvider locale="en-US">
19
- <FromToLocationPicker onFromClick={onFromClick} onToClick={onToClick} />
20
- </IntlProvider>
17
+ export const fromTo = (): ReactElement => (
18
+ <FromToLocationPicker onFromClick={onFromClick} onToClick={onToClick} />
21
19
  );
22
20
 
23
- export const smallTextSansSerif = (): React.ReactElement => (
24
- <IntlProvider locale="en-US">
25
- <span style={{ fontSize: "75%", fontFamily: "sans-serif" }}>
26
- Plan a trip:
27
- <FromToLocationPicker onFromClick={onFromClick} onToClick={onToClick} />
28
- </span>
29
- </IntlProvider>
21
+ export const smallTextSansSerif = (): ReactElement => (
22
+ <span style={{ fontSize: "75%", fontFamily: "sans-serif" }}>
23
+ <FromToLocationPicker
24
+ label
25
+ onFromClick={onFromClick}
26
+ onToClick={onToClick}
27
+ />
28
+ </span>
30
29
  );
31
30
 
32
31
  export const customStyleAndText = (): React.ReactElement => (
@@ -39,9 +38,10 @@ export const customStyleAndText = (): React.ReactElement => (
39
38
  >
40
39
  <div className="trimet-ambient">
41
40
  <FromToLocationPicker
42
- showIcons={false}
41
+ label={<i style={{ color: "#ffff00" }}>Your trip:</i>}
43
42
  onFromClick={onFromClick}
44
43
  onToClick={onToClick}
44
+ showIcons={false}
45
45
  />
46
46
  </div>
47
47
  </IntlProvider>
package/src/index.tsx CHANGED
@@ -1,7 +1,7 @@
1
1
  import flatten from "flat";
2
2
  import LocationIcon from "@opentripplanner/location-icon";
3
3
  import { FormattedMessage } from "react-intl";
4
- import React from "react";
4
+ import React, { ReactElement } from "react";
5
5
 
6
6
  import * as S from "./styled";
7
7
 
@@ -20,12 +20,13 @@ const iconSize = "0.9em";
20
20
  const defaultMessages: Record<string, string> = flatten(defaultEnglishMessages);
21
21
 
22
22
  const FromToLocationPicker = ({
23
+ label = null,
23
24
  location = null,
24
25
  onFromClick = null,
25
26
  onToClick = null,
26
27
  setLocation = null,
27
28
  showIcons = true
28
- }: FromToPickerProps): React.ReactElement => {
29
+ }: FromToPickerProps): ReactElement => {
29
30
  const handleFromClick = () => {
30
31
  if (onFromClick) {
31
32
  onFromClick();
@@ -50,29 +51,44 @@ const FromToLocationPicker = ({
50
51
  });
51
52
  };
52
53
 
54
+ const labelIfAny = label === true
55
+ ? (
56
+ <strong>
57
+ <FormattedMessage
58
+ defaultMessage={defaultMessages["otpUi.FromToLocationPicker.planATrip"]}
59
+ description="Label to prompt the user to plan a trip"
60
+ id="otpUi.FromToLocationPicker.planATrip"
61
+ />
62
+ </strong>
63
+ )
64
+ : label
65
+
53
66
  return (
54
- <S.FromToPickerSpan>
55
- <S.LocationPickerSpan>
56
- {showIcons && <LocationIcon type="from" size={iconSize} />}
57
- <S.Button onClick={handleFromClick}>
58
- <FormattedMessage
59
- defaultMessage={defaultMessages["otpUi.FromToLocationPicker.from"]}
60
- description="Text for the 'from' button of the picker"
61
- id="otpUi.FromToLocationPicker.from"
62
- />
63
- </S.Button>
64
- </S.LocationPickerSpan>
65
- <S.LocationPickerSpan>
66
- {showIcons && <LocationIcon type="to" size={iconSize} />}
67
- <S.Button onClick={handleToClick}>
68
- <FormattedMessage
69
- defaultMessage={defaultMessages["otpUi.FromToLocationPicker.to"]}
70
- description="Text for the 'to' button of the picker"
71
- id="otpUi.FromToLocationPicker.to"
72
- />
73
- </S.Button>
74
- </S.LocationPickerSpan>
75
- </S.FromToPickerSpan>
67
+ <>
68
+ {labelIfAny}
69
+ <S.FromToPickerSpan>
70
+ <S.LocationPickerSpan>
71
+ {showIcons && <LocationIcon type="from" size={iconSize} />}
72
+ <S.Button onClick={handleFromClick}>
73
+ <FormattedMessage
74
+ defaultMessage={defaultMessages["otpUi.FromToLocationPicker.from"]}
75
+ description="Text for the 'from' button of the picker"
76
+ id="otpUi.FromToLocationPicker.from"
77
+ />
78
+ </S.Button>
79
+ </S.LocationPickerSpan>
80
+ <S.LocationPickerSpan>
81
+ {showIcons && <LocationIcon type="to" size={iconSize} />}
82
+ <S.Button onClick={handleToClick}>
83
+ <FormattedMessage
84
+ defaultMessage={defaultMessages["otpUi.FromToLocationPicker.to"]}
85
+ description="Text for the 'to' button of the picker"
86
+ id="otpUi.FromToLocationPicker.to"
87
+ />
88
+ </S.Button>
89
+ </S.LocationPickerSpan>
90
+ </S.FromToPickerSpan>
91
+ </>
76
92
  );
77
93
  };
78
94
 
package/src/types.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { ReactElement } from "react";
2
+
1
3
  export type Location = {
2
4
  lat: number;
3
5
  lon: number;
@@ -10,6 +12,10 @@ export type Location = {
10
12
  };
11
13
 
12
14
  export type FromToPickerProps = {
15
+ /**
16
+ * Specifies the label to be rendered, or if set to true, renders the default label "Plan a trip:".
17
+ */
18
+ label?: boolean | ReactElement | string;
13
19
  /**
14
20
  * A specific location to associate with this. This is only used when combined
15
21
  * with the setLocation prop.
@@ -18,11 +24,11 @@ export type FromToPickerProps = {
18
24
  /**
19
25
  * Triggered when the user clicks on the "from" button.
20
26
  */
21
- onFromClick: () => void;
27
+ onFromClick?: () => void;
22
28
  /**
23
29
  * Triggered when the user clicks on the "to" button.
24
30
  */
25
- onToClick: () => void;
31
+ onToClick?: () => void;
26
32
  /**
27
33
  * Triggered when the user clicks either the "from" or "to" button and there
28
34
  * are no from/to specific handler functions defined as props.
@@ -217,8 +217,8 @@
217
217
  "affectsGlobalScope": true
218
218
  },
219
219
  "../../node_modules/react-intl/node_modules/@types/react/index.d.ts": {
220
- "version": "c6abad864e3fab7b534a2643ac5e8f5b5dee01aa3e88e141497ccf7f9b181b28",
221
- "signature": "c6abad864e3fab7b534a2643ac5e8f5b5dee01aa3e88e141497ccf7f9b181b28",
220
+ "version": "5a1b30146d105f86b15aaf11ff43af00c29972d18bc3b16c8b8f56aa47801733",
221
+ "signature": "5a1b30146d105f86b15aaf11ff43af00c29972d18bc3b16c8b8f56aa47801733",
222
222
  "affectsGlobalScope": true
223
223
  },
224
224
  "../../node_modules/@formatjs/ecma402-abstract/CanonicalizeLocaleList.d.ts": {
@@ -282,8 +282,8 @@
282
282
  "affectsGlobalScope": false
283
283
  },
284
284
  "../../node_modules/@formatjs/ecma402-abstract/types/number.d.ts": {
285
- "version": "8105c32b75be544cf48eabb59c6db9f869da0607e2206e427fdc4c685979a6a7",
286
- "signature": "8105c32b75be544cf48eabb59c6db9f869da0607e2206e427fdc4c685979a6a7",
285
+ "version": "4c32e274c22c133d96fa3bd1e66af0e213c88d37372598442247e1ea2b3f3616",
286
+ "signature": "4c32e274c22c133d96fa3bd1e66af0e213c88d37372598442247e1ea2b3f3616",
287
287
  "affectsGlobalScope": false
288
288
  },
289
289
  "../../node_modules/@formatjs/ecma402-abstract/NumberFormat/ComputeExponent.d.ts": {
@@ -372,8 +372,8 @@
372
372
  "affectsGlobalScope": false
373
373
  },
374
374
  "../../node_modules/@formatjs/ecma402-abstract/types/date-time.d.ts": {
375
- "version": "da430eb49c948b5e5436a59c791296a6ada26c9f6b7e2fc13e5bbde4228719e8",
376
- "signature": "da430eb49c948b5e5436a59c791296a6ada26c9f6b7e2fc13e5bbde4228719e8",
375
+ "version": "51dc756ec3df8a7599ef0d16268cf7cd429d5d226ceb53cf8f85657a4ade6c29",
376
+ "signature": "51dc756ec3df8a7599ef0d16268cf7cd429d5d226ceb53cf8f85657a4ade6c29",
377
377
  "affectsGlobalScope": false
378
378
  },
379
379
  "../../node_modules/@formatjs/ecma402-abstract/types/list.d.ts": {
@@ -432,8 +432,8 @@
432
432
  "affectsGlobalScope": false
433
433
  },
434
434
  "../../node_modules/intl-messageformat/src/formatters.d.ts": {
435
- "version": "440bce72a5425a259fb1a1b8f680e1b38781be5d64dd3efbcf9fc2cb1120b6a3",
436
- "signature": "440bce72a5425a259fb1a1b8f680e1b38781be5d64dd3efbcf9fc2cb1120b6a3",
435
+ "version": "1135099814b6525159e76fa51f295bf05942f0d9ef84c7030f0a7ad7563531f5",
436
+ "signature": "1135099814b6525159e76fa51f295bf05942f0d9ef84c7030f0a7ad7563531f5",
437
437
  "affectsGlobalScope": false
438
438
  },
439
439
  "../../node_modules/intl-messageformat/src/core.d.ts": {
@@ -462,19 +462,19 @@
462
462
  "affectsGlobalScope": false
463
463
  },
464
464
  "../../node_modules/@formatjs/intl/src/error.d.ts": {
465
- "version": "b31b426b5b87852699da22da5315902404fb985fbf7143e65c010d25a58b2827",
466
- "signature": "b31b426b5b87852699da22da5315902404fb985fbf7143e65c010d25a58b2827",
465
+ "version": "6fd49eaee0916183cccea31985df1f27b81a89eca283e64376c10926436d4fd1",
466
+ "signature": "6fd49eaee0916183cccea31985df1f27b81a89eca283e64376c10926436d4fd1",
467
467
  "affectsGlobalScope": false
468
468
  },
469
469
  "../../node_modules/@formatjs/intl/src/utils.d.ts": {
470
- "version": "60bc916d9674434696b05ba76a48dce0efddb5bb36ef64ee8adba51f92406bbb",
471
- "signature": "60bc916d9674434696b05ba76a48dce0efddb5bb36ef64ee8adba51f92406bbb",
470
+ "version": "248b709d3e86c12a409badb69a4f1ad132438b9189e00096668d097d8082d089",
471
+ "signature": "248b709d3e86c12a409badb69a4f1ad132438b9189e00096668d097d8082d089",
472
472
  "affectsGlobalScope": false
473
473
  },
474
474
  "../../node_modules/@formatjs/intl/src/types.d.ts": {
475
- "version": "73119c8607bdc477e1c00fd8abd205ae7c743594a98d3370e67afb2728847a25",
476
- "signature": "73119c8607bdc477e1c00fd8abd205ae7c743594a98d3370e67afb2728847a25",
477
- "affectsGlobalScope": false
475
+ "version": "7be0ff644833a7105ad4afa61705b1853e4cb6e52d86e449a7d9797f97a57263",
476
+ "signature": "7be0ff644833a7105ad4afa61705b1853e4cb6e52d86e449a7d9797f97a57263",
477
+ "affectsGlobalScope": true
478
478
  },
479
479
  "../../node_modules/@formatjs/intl/src/message.d.ts": {
480
480
  "version": "77cd04a35d49e967b0d566d44452671650a14915b9d7176fa89c5fa87e0e46fd",
@@ -522,8 +522,8 @@
522
522
  "affectsGlobalScope": false
523
523
  },
524
524
  "../../node_modules/react-intl/src/utils.d.ts": {
525
- "version": "771d2bcb81590403114c5c14c8aa6119572050d7fa8b169c6718cd1e5c8cc78b",
526
- "signature": "771d2bcb81590403114c5c14c8aa6119572050d7fa8b169c6718cd1e5c8cc78b",
525
+ "version": "df3a3f23c1125459b7dc5186d2c314d7da4c56cf17c0c637d6f59b06856d7cb2",
526
+ "signature": "df3a3f23c1125459b7dc5186d2c314d7da4c56cf17c0c637d6f59b06856d7cb2",
527
527
  "affectsGlobalScope": false
528
528
  },
529
529
  "../../node_modules/react-intl/src/types.d.ts": {
@@ -542,13 +542,8 @@
542
542
  "affectsGlobalScope": false
543
543
  },
544
544
  "../../node_modules/react-intl/src/components/provider.d.ts": {
545
- "version": "3e5febf5ca9c0380a3b6a155800a13a29887efd9da7e1bcf3a016b628a7ce559",
546
- "signature": "3e5febf5ca9c0380a3b6a155800a13a29887efd9da7e1bcf3a016b628a7ce559",
547
- "affectsGlobalScope": false
548
- },
549
- "../../node_modules/react-intl/src/components/createFormattedComponent.d.ts": {
550
- "version": "9d137a1f88aed0f776de971bc319754673efd28097b31006948d2ed54146db29",
551
- "signature": "9d137a1f88aed0f776de971bc319754673efd28097b31006948d2ed54146db29",
545
+ "version": "01b002cf26575fa47c3a33b200fee5a8300916ad9b94705d3cbc4fdfb0e75a51",
546
+ "signature": "01b002cf26575fa47c3a33b200fee5a8300916ad9b94705d3cbc4fdfb0e75a51",
552
547
  "affectsGlobalScope": false
553
548
  },
554
549
  "../../node_modules/react-intl/src/components/relative.d.ts": {
@@ -562,8 +557,8 @@
562
557
  "affectsGlobalScope": false
563
558
  },
564
559
  "../../node_modules/react-intl/src/components/message.d.ts": {
565
- "version": "dcd09bab5e0e3917472aa6d12709fd824f209340be9a6849d2620fe1662ca7c1",
566
- "signature": "dcd09bab5e0e3917472aa6d12709fd824f209340be9a6849d2620fe1662ca7c1",
560
+ "version": "4fd8fd85ee70843365438aaa5c2faeec87d3f9f186a505b5831f06f0a2c5b237",
561
+ "signature": "4fd8fd85ee70843365438aaa5c2faeec87d3f9f186a505b5831f06f0a2c5b237",
567
562
  "affectsGlobalScope": false
568
563
  },
569
564
  "../../node_modules/react-intl/src/components/dateTimeRange.d.ts": {
@@ -571,9 +566,14 @@
571
566
  "signature": "d4a08b08f4a2ecf0407180e99c8201d724c64ce7ce6137d9ed3b9b6f0f61662e",
572
567
  "affectsGlobalScope": false
573
568
  },
569
+ "../../node_modules/react-intl/src/components/createFormattedComponent.d.ts": {
570
+ "version": "9d137a1f88aed0f776de971bc319754673efd28097b31006948d2ed54146db29",
571
+ "signature": "9d137a1f88aed0f776de971bc319754673efd28097b31006948d2ed54146db29",
572
+ "affectsGlobalScope": false
573
+ },
574
574
  "../../node_modules/react-intl/index.d.ts": {
575
- "version": "665f100adac4de1464e52d92ca9e8a79f85e9f757a3909a6cfd5629bd9d7fe36",
576
- "signature": "665f100adac4de1464e52d92ca9e8a79f85e9f757a3909a6cfd5629bd9d7fe36",
575
+ "version": "516e2ded162ddc84294deb452dda9982b2a938e6df2d7f838ae0fd8b4ed38159",
576
+ "signature": "516e2ded162ddc84294deb452dda9982b2a938e6df2d7f838ae0fd8b4ed38159",
577
577
  "affectsGlobalScope": false
578
578
  },
579
579
  "./src/styled.ts": {
@@ -582,13 +582,13 @@
582
582
  "affectsGlobalScope": false
583
583
  },
584
584
  "./src/types.ts": {
585
- "version": "e41bdeac275c79a84433981a2d76110e29db79a298deee83565bf3a9be38beba",
586
- "signature": "e179318dd285ebfda1029012586a20206abcb87c453ee37b6bedf2bdd3f5bcf8",
585
+ "version": "637c4358cc9d9ef955f4fdf995f3d6c97d5bfed3c2cfdaa0056814884065fb93",
586
+ "signature": "d40d84c46150505d0c8547e9d8a6876278e13cd8e0bf0580808bc0313d11b5f3",
587
587
  "affectsGlobalScope": false
588
588
  },
589
589
  "./src/index.tsx": {
590
- "version": "39671e31484dc065d428cb79d94b1f75b99383f59dc3eb4daaa571a13db82a3a",
591
- "signature": "e289bc8014a8c5e7967fbf39a8a8ceb493462f424931209a47eff61849194478",
590
+ "version": "9142699d607a4438217c72218188a5008c70c940ded242a788e7151187bb9a2d",
591
+ "signature": "8e893e66f81915e242438df66dee47c917ee595e76c7f8769b1ad3c22292aede",
592
592
  "affectsGlobalScope": false
593
593
  },
594
594
  "./src/__unpublished__/messages.d.ts": {
@@ -626,11 +626,6 @@
626
626
  "signature": "6f1d39d26959517da3bd105c552eded4c34702705c64d75b03f54d864b6e41c2",
627
627
  "affectsGlobalScope": false
628
628
  },
629
- "../../node_modules/@types/braces/index.d.ts": {
630
- "version": "cfb42d1c8aa66607ef3b1e2cee85d28148358ba62dc5e5146b317dae7bfd9a96",
631
- "signature": "cfb42d1c8aa66607ef3b1e2cee85d28148358ba62dc5e5146b317dae7bfd9a96",
632
- "affectsGlobalScope": false
633
- },
634
629
  "../../node_modules/@types/color-name/index.d.ts": {
635
630
  "version": "f0cb4b3ab88193e3e51e9e2622e4c375955003f1f81239d72c5b7a95415dad3e",
636
631
  "signature": "f0cb4b3ab88193e3e51e9e2622e4c375955003f1f81239d72c5b7a95415dad3e",
@@ -856,21 +851,6 @@
856
851
  "signature": "9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5",
857
852
  "affectsGlobalScope": false
858
853
  },
859
- "../../node_modules/querystring/decode.d.ts": {
860
- "version": "ad7e61eca7f2f8bf47e72695f9f6663b75e41d87ef49abdb17c0cb843862f8aa",
861
- "signature": "ad7e61eca7f2f8bf47e72695f9f6663b75e41d87ef49abdb17c0cb843862f8aa",
862
- "affectsGlobalScope": false
863
- },
864
- "../../node_modules/querystring/encode.d.ts": {
865
- "version": "ecba2e44af95b0599c269a92628cec22e752868bce37396740deb51a5c547a26",
866
- "signature": "ecba2e44af95b0599c269a92628cec22e752868bce37396740deb51a5c547a26",
867
- "affectsGlobalScope": false
868
- },
869
- "../../node_modules/querystring/index.d.ts": {
870
- "version": "46a9fb41a8f3bc7539eeebc15a6e04b9e55d7537a081615ad3614220d34c3e0f",
871
- "signature": "46a9fb41a8f3bc7539eeebc15a6e04b9e55d7537a081615ad3614220d34c3e0f",
872
- "affectsGlobalScope": false
873
- },
874
854
  "../../node_modules/@types/node/url.d.ts": {
875
855
  "version": "dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9",
876
856
  "signature": "dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9",
@@ -946,11 +926,6 @@
946
926
  "signature": "393137c76bd922ba70a2f8bf1ade4f59a16171a02fb25918c168d48875b0cfb0",
947
927
  "affectsGlobalScope": false
948
928
  },
949
- "../../node_modules/@types/glob-base/index.d.ts": {
950
- "version": "d1ae472dde31ac39e68d52e1e21dcccba3989d146b7b8472f03525d0caad1775",
951
- "signature": "d1ae472dde31ac39e68d52e1e21dcccba3989d146b7b8472f03525d0caad1775",
952
- "affectsGlobalScope": false
953
- },
954
929
  "../../node_modules/@types/graceful-fs/index.d.ts": {
955
930
  "version": "3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba",
956
931
  "signature": "3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba",
@@ -1506,21 +1481,11 @@
1506
1481
  "signature": "96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538",
1507
1482
  "affectsGlobalScope": false
1508
1483
  },
1509
- "../../node_modules/@types/markdown-to-jsx/index.d.ts": {
1510
- "version": "9c138947e4cf970491111d971aa615db8353c7f0efc72bd84d8ad6e4743079c5",
1511
- "signature": "9c138947e4cf970491111d971aa615db8353c7f0efc72bd84d8ad6e4743079c5",
1512
- "affectsGlobalScope": false
1513
- },
1514
1484
  "../../node_modules/@types/mdast/index.d.ts": {
1515
1485
  "version": "9a6d65d77455efaaaeff945bea30c38b8fe0922b807ba45cd23792392f1bfe76",
1516
1486
  "signature": "9a6d65d77455efaaaeff945bea30c38b8fe0922b807ba45cd23792392f1bfe76",
1517
1487
  "affectsGlobalScope": false
1518
1488
  },
1519
- "../../node_modules/@types/micromatch/index.d.ts": {
1520
- "version": "9c36d6df17ca69a65a2a654d9bbd86d74c6d6055e566429cd0a1de82827680eb",
1521
- "signature": "9c36d6df17ca69a65a2a654d9bbd86d74c6d6055e566429cd0a1de82827680eb",
1522
- "affectsGlobalScope": false
1523
- },
1524
1489
  "../../node_modules/@types/minimist/index.d.ts": {
1525
1490
  "version": "e437d83044ba17246a861aa9691aa14223ff4a9d6f338ab1269c41c758586a88",
1526
1491
  "signature": "e437d83044ba17246a861aa9691aa14223ff4a9d6f338ab1269c41c758586a88",
@@ -1581,11 +1546,6 @@
1581
1546
  "signature": "98437d5a640b67c41534f0de2dcb64c75433dcdff54ff8f8432e613663619a2e",
1582
1547
  "affectsGlobalScope": false
1583
1548
  },
1584
- "../../node_modules/@types/reach__router/index.d.ts": {
1585
- "version": "3b280b52be6f8727fbdae05a2ad2c053dac5be97c42a5caa1740e64a2321e935",
1586
- "signature": "3b280b52be6f8727fbdae05a2ad2c053dac5be97c42a5caa1740e64a2321e935",
1587
- "affectsGlobalScope": false
1588
- },
1589
1549
  "../../node_modules/@types/react-syntax-highlighter/index.d.ts": {
1590
1550
  "version": "cffd3848b7af4922d70028c805b7df5e8f0eac4a8d2410b0f55b47ca62c6c3a8",
1591
1551
  "signature": "cffd3848b7af4922d70028c805b7df5e8f0eac4a8d2410b0f55b47ca62c6c3a8",
@@ -1932,6 +1892,7 @@
1932
1892
  "../../node_modules/intl-messageformat/index.d.ts"
1933
1893
  ],
1934
1894
  "../../node_modules/@formatjs/intl/src/utils.d.ts": [
1895
+ "../../node_modules/@formatjs/ecma402-abstract/index.d.ts",
1935
1896
  "../../node_modules/@formatjs/intl/src/types.d.ts"
1936
1897
  ],
1937
1898
  "../../node_modules/@styled-icons/styled-icon/index.d.ts": [
@@ -2124,15 +2085,9 @@
2124
2085
  "../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts": [
2125
2086
  "../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts"
2126
2087
  ],
2127
- "../../node_modules/@types/markdown-to-jsx/index.d.ts": [
2128
- "../../node_modules/@types/react/index.d.ts"
2129
- ],
2130
2088
  "../../node_modules/@types/mdast/index.d.ts": [
2131
2089
  "../../node_modules/@types/unist/index.d.ts"
2132
2090
  ],
2133
- "../../node_modules/@types/micromatch/index.d.ts": [
2134
- "../../node_modules/@types/braces/index.d.ts"
2135
- ],
2136
2091
  "../../node_modules/@types/node-fetch/index.d.ts": [
2137
2092
  "../../node_modules/@types/node-fetch/externals.d.ts",
2138
2093
  "../../node_modules/@types/node-fetch/node_modules/form-data/index.d.ts",
@@ -2345,9 +2300,6 @@
2345
2300
  "../../node_modules/@types/pixelmatch/index.d.ts": [
2346
2301
  "../../node_modules/@types/node/index.d.ts"
2347
2302
  ],
2348
- "../../node_modules/@types/reach__router/index.d.ts": [
2349
- "../../node_modules/@types/react/index.d.ts"
2350
- ],
2351
2303
  "../../node_modules/@types/react-syntax-highlighter/index.d.ts": [
2352
2304
  "../../node_modules/@types/react-syntax-highlighter/index.d.ts",
2353
2305
  "../../node_modules/@types/react/index.d.ts"
@@ -2479,6 +2431,7 @@
2479
2431
  "../../node_modules/intl-messageformat/src/formatters.d.ts"
2480
2432
  ],
2481
2433
  "../../node_modules/intl-messageformat/src/formatters.d.ts": [
2434
+ "../../node_modules/@formatjs/ecma402-abstract/index.d.ts",
2482
2435
  "../../node_modules/@formatjs/icu-messageformat-parser/index.d.ts"
2483
2436
  ],
2484
2437
  "../../node_modules/jest-diff/build/diffLines.d.ts": [
@@ -2495,10 +2448,6 @@
2495
2448
  "../../node_modules/jest-diff/build/cleanupSemantic.d.ts",
2496
2449
  "../../node_modules/jest-diff/build/types.d.ts"
2497
2450
  ],
2498
- "../../node_modules/querystring/index.d.ts": [
2499
- "../../node_modules/querystring/decode.d.ts",
2500
- "../../node_modules/querystring/encode.d.ts"
2501
- ],
2502
2451
  "../../node_modules/react-intl/index.d.ts": [
2503
2452
  "../../node_modules/@formatjs/ecma402-abstract/index.d.ts",
2504
2453
  "../../node_modules/@formatjs/icu-messageformat-parser/index.d.ts",
@@ -2884,6 +2833,9 @@
2884
2833
  "./src/styled.ts": [
2885
2834
  "../../node_modules/@types/styled-components/index.d.ts"
2886
2835
  ],
2836
+ "./src/types.ts": [
2837
+ "../../node_modules/@types/react/index.d.ts"
2838
+ ],
2887
2839
  "../location-icon/lib/index.d.ts": [
2888
2840
  "../../node_modules/@types/react/index.d.ts",
2889
2841
  "../location-icon/lib/styled.d.ts"
@@ -3067,6 +3019,7 @@
3067
3019
  "../../node_modules/intl-messageformat/index.d.ts"
3068
3020
  ],
3069
3021
  "../../node_modules/@formatjs/intl/src/utils.d.ts": [
3022
+ "../../node_modules/@formatjs/ecma402-abstract/index.d.ts",
3070
3023
  "../../node_modules/@formatjs/intl/src/types.d.ts"
3071
3024
  ],
3072
3025
  "../../node_modules/@styled-icons/styled-icon/index.d.ts": [
@@ -3259,15 +3212,9 @@
3259
3212
  "../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts": [
3260
3213
  "../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts"
3261
3214
  ],
3262
- "../../node_modules/@types/markdown-to-jsx/index.d.ts": [
3263
- "../../node_modules/@types/react/index.d.ts"
3264
- ],
3265
3215
  "../../node_modules/@types/mdast/index.d.ts": [
3266
3216
  "../../node_modules/@types/unist/index.d.ts"
3267
3217
  ],
3268
- "../../node_modules/@types/micromatch/index.d.ts": [
3269
- "../../node_modules/@types/braces/index.d.ts"
3270
- ],
3271
3218
  "../../node_modules/@types/node-fetch/index.d.ts": [
3272
3219
  "../../node_modules/@types/node-fetch/externals.d.ts",
3273
3220
  "../../node_modules/@types/node-fetch/node_modules/form-data/index.d.ts",
@@ -3480,9 +3427,6 @@
3480
3427
  "../../node_modules/@types/pixelmatch/index.d.ts": [
3481
3428
  "../../node_modules/@types/node/index.d.ts"
3482
3429
  ],
3483
- "../../node_modules/@types/reach__router/index.d.ts": [
3484
- "../../node_modules/@types/react/index.d.ts"
3485
- ],
3486
3430
  "../../node_modules/@types/react-syntax-highlighter/index.d.ts": [
3487
3431
  "../../node_modules/@types/react-syntax-highlighter/index.d.ts",
3488
3432
  "../../node_modules/@types/react/index.d.ts"
@@ -3614,6 +3558,7 @@
3614
3558
  "../../node_modules/intl-messageformat/src/formatters.d.ts"
3615
3559
  ],
3616
3560
  "../../node_modules/intl-messageformat/src/formatters.d.ts": [
3561
+ "../../node_modules/@formatjs/ecma402-abstract/index.d.ts",
3617
3562
  "../../node_modules/@formatjs/icu-messageformat-parser/index.d.ts"
3618
3563
  ],
3619
3564
  "../../node_modules/jest-diff/build/diffLines.d.ts": [
@@ -3630,10 +3575,6 @@
3630
3575
  "../../node_modules/jest-diff/build/cleanupSemantic.d.ts",
3631
3576
  "../../node_modules/jest-diff/build/types.d.ts"
3632
3577
  ],
3633
- "../../node_modules/querystring/index.d.ts": [
3634
- "../../node_modules/querystring/decode.d.ts",
3635
- "../../node_modules/querystring/encode.d.ts"
3636
- ],
3637
3578
  "../../node_modules/react-intl/index.d.ts": [
3638
3579
  "../../node_modules/@formatjs/ecma402-abstract/index.d.ts",
3639
3580
  "../../node_modules/@formatjs/icu-messageformat-parser/index.d.ts",
@@ -4015,6 +3956,9 @@
4015
3956
  "./src/styled.ts": [
4016
3957
  "../../node_modules/@types/styled-components/index.d.ts"
4017
3958
  ],
3959
+ "./src/types.ts": [
3960
+ "../../node_modules/@types/react/index.d.ts"
3961
+ ],
4018
3962
  "../location-icon/lib/index.d.ts": [
4019
3963
  "../../node_modules/@types/react/index.d.ts",
4020
3964
  "../location-icon/lib/styled.d.ts"
@@ -4088,7 +4032,6 @@
4088
4032
  "../../node_modules/@types/babel__generator/index.d.ts",
4089
4033
  "../../node_modules/@types/babel__template/index.d.ts",
4090
4034
  "../../node_modules/@types/babel__traverse/index.d.ts",
4091
- "../../node_modules/@types/braces/index.d.ts",
4092
4035
  "../../node_modules/@types/color-convert/conversions.d.ts",
4093
4036
  "../../node_modules/@types/color-convert/index.d.ts",
4094
4037
  "../../node_modules/@types/color-convert/route.d.ts",
@@ -4096,7 +4039,6 @@
4096
4039
  "../../node_modules/@types/cookie/index.d.ts",
4097
4040
  "../../node_modules/@types/flat/index.d.ts",
4098
4041
  "../../node_modules/@types/geojson/index.d.ts",
4099
- "../../node_modules/@types/glob-base/index.d.ts",
4100
4042
  "../../node_modules/@types/glob/index.d.ts",
4101
4043
  "../../node_modules/@types/graceful-fs/index.d.ts",
4102
4044
  "../../node_modules/@types/hast/index.d.ts",
@@ -4136,9 +4078,7 @@
4136
4078
  "../../node_modules/@types/js-levenshtein/index.d.ts",
4137
4079
  "../../node_modules/@types/json-schema/index.d.ts",
4138
4080
  "../../node_modules/@types/json5/index.d.ts",
4139
- "../../node_modules/@types/markdown-to-jsx/index.d.ts",
4140
4081
  "../../node_modules/@types/mdast/index.d.ts",
4141
- "../../node_modules/@types/micromatch/index.d.ts",
4142
4082
  "../../node_modules/@types/minimatch/index.d.ts",
4143
4083
  "../../node_modules/@types/minimist/index.d.ts",
4144
4084
  "../../node_modules/@types/node-fetch/externals.d.ts",
@@ -4206,7 +4146,6 @@
4206
4146
  "../../node_modules/@types/pretty-hrtime/index.d.ts",
4207
4147
  "../../node_modules/@types/prop-types/index.d.ts",
4208
4148
  "../../node_modules/@types/qs/index.d.ts",
4209
- "../../node_modules/@types/reach__router/index.d.ts",
4210
4149
  "../../node_modules/@types/react-syntax-highlighter/index.d.ts",
4211
4150
  "../../node_modules/@types/react/global.d.ts",
4212
4151
  "../../node_modules/@types/react/index.d.ts",
@@ -4252,9 +4191,6 @@
4252
4191
  "../../node_modules/jest-diff/build/index.d.ts",
4253
4192
  "../../node_modules/jest-diff/build/printDiffs.d.ts",
4254
4193
  "../../node_modules/jest-diff/build/types.d.ts",
4255
- "../../node_modules/querystring/decode.d.ts",
4256
- "../../node_modules/querystring/encode.d.ts",
4257
- "../../node_modules/querystring/index.d.ts",
4258
4194
  "../../node_modules/react-intl/index.d.ts",
4259
4195
  "../../node_modules/react-intl/node_modules/@types/react/global.d.ts",
4260
4196
  "../../node_modules/react-intl/node_modules/@types/react/index.d.ts",