@popsure/dirty-swan 0.57.5 → 0.57.7

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.
@@ -52,7 +52,7 @@ function isoStringtoCalendarDate(input) {
52
52
  return { year: year, month: month + 1, day: day };
53
53
  }
54
54
 
55
- var css_248z = ".style-module_container__3bJf5 {\n display: flex;\n}\n@media (max-width: 34rem) {\n .style-module_container__3bJf5 {\n flex-direction: column;\n }\n}\n\n.style-module_dayInput__1OBNv,\n.style-module_monthInput__2L_7o {\n width: 88px;\n flex: 1;\n}\n\n.style-module_yearInput__2C_H8 {\n width: 104px;\n}\n@media (max-width: 34rem) {\n .style-module_yearInput__2C_H8 {\n width: 100%;\n }\n}";
55
+ var css_248z = ".style-module_container__3bJf5 {\n display: flex;\n}\n@media (max-width: 34rem) {\n .style-module_container__3bJf5 {\n width: 100%;\n flex-direction: column;\n }\n}\n\n.style-module_dayInput__1OBNv,\n.style-module_monthInput__2L_7o {\n width: 88px;\n flex: 1;\n}\n\n.style-module_yearInput__2C_H8 {\n width: 104px;\n}\n@media (max-width: 34rem) {\n .style-module_yearInput__2C_H8 {\n width: 100%;\n }\n}";
56
56
  var styles = {"container":"style-module_container__3bJf5","dayInput":"style-module_dayInput__1OBNv","monthInput":"style-module_monthInput__2L_7o","yearInput":"style-module_yearInput__2C_H8"};
57
57
  styleInject(css_248z);
58
58
 
@@ -31,7 +31,6 @@ export interface AutocompleteAddressProps {
31
31
  manualAddressEntryTexts?: {
32
32
  preText?: string;
33
33
  cta?: string;
34
- ctaSearch?: string;
35
34
  };
36
35
  countryCode?: string;
37
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popsure/dirty-swan",
3
- "version": "0.57.5",
3
+ "version": "0.57.7",
4
4
  "author": "Vincent Audoire <vincent@getpopsure.com>",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -80,7 +80,6 @@ export interface AutocompleteAddressProps {
80
80
  manualAddressEntryTexts?: {
81
81
  preText?: string;
82
82
  cta?: string;
83
- ctaSearch?: string;
84
83
  };
85
84
  countryCode?: string;
86
85
  }
@@ -259,7 +258,7 @@ const AutocompleteAddress = ({
259
258
  )}
260
259
  </div>
261
260
  <div className={`wmx8`}>
262
- {!manualAddressEntry ? (
261
+ {manualAddressEntry === false ? (
263
262
  <div style={{ position: 'relative' }}>
264
263
  <Input
265
264
  className="w100"
@@ -344,20 +343,18 @@ const AutocompleteAddress = ({
344
343
  </>
345
344
  )}
346
345
  </div>
347
- <div className="p-p mt8">
348
- {manualAddressEntryTexts?.preText || 'Or '}
349
- <button
350
- className={'p-a p-p fw-bold c-pointer bg-transparent'}
351
- onClick={() => {
352
- manualAddressEntry ? setManualAddressEntry(false) : handleEnterAddressManually();
353
- }}
354
- type="button"
355
- >
356
- {manualAddressEntry
357
- ? manualAddressEntryTexts?.ctaSearch || 'search for address'
358
- : manualAddressEntryTexts?.cta || 'enter address manually'}
359
- </button>
360
- </div>
346
+ {manualAddressEntry === false && (
347
+ <div className="p-p mt8">
348
+ {manualAddressEntryTexts?.preText || 'Or '}
349
+ <button
350
+ className={'p-a p-p fw-bold c-pointer bg-transparent'}
351
+ onClick={handleEnterAddressManually}
352
+ type="button"
353
+ >
354
+ {manualAddressEntryTexts?.cta || 'enter address manually'}
355
+ </button>
356
+ </div>
357
+ )}
361
358
  </>
362
359
  );
363
360
  };
@@ -4,6 +4,7 @@
4
4
  display: flex;
5
5
 
6
6
  @include p-size-mobile {
7
+ width: 100%;
7
8
  flex-direction: column;
8
9
  }
9
10
  }