@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.
- package/dist/cjs/index.js +3 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/autocompleteAddress/index.d.ts +0 -1
- package/dist/esm/components/autocompleteAddress/index.js +2 -6
- package/dist/esm/components/autocompleteAddress/index.js.map +1 -1
- package/dist/esm/components/dateSelector/index.js +1 -1
- package/dist/esm/lib/components/autocompleteAddress/index.d.ts +0 -1
- package/package.json +1 -1
- package/src/lib/components/autocompleteAddress/index.tsx +13 -16
- package/src/lib/components/dateSelector/style.module.scss +1 -0
|
@@ -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
|
|
package/package.json
CHANGED
|
@@ -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
|
-
{
|
|
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
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
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
|
};
|