@citygross/components 0.7.113 → 0.7.114
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/build/@types/index.d.ts +1 -0
- package/build/cjs/components/src/components/AddressBlock/AddressBlock.js +1 -0
- package/build/cjs/components/src/components/AddressBlock/AddressBlock.js.map +1 -1
- package/build/cjs/components/src/components/WarningLabel/WarningLabel.js +1 -0
- package/build/cjs/components/src/components/WarningLabel/WarningLabel.js.map +1 -1
- package/build/cjs/components/src/components/ZipCodeInput/ZipCodeInput.js +69 -0
- package/build/cjs/components/src/components/ZipCodeInput/ZipCodeInput.js.map +1 -0
- package/build/cjs/components/src/components/ZipCodeInput/ZipCodeInput.styles.js +32 -0
- package/build/cjs/components/src/components/ZipCodeInput/ZipCodeInput.styles.js.map +1 -0
- package/build/cjs/components/src/index.js +2 -0
- package/build/cjs/components/src/index.js.map +1 -1
- package/build/es/components/src/components/AddressBlock/AddressBlock.js +1 -0
- package/build/es/components/src/components/AddressBlock/AddressBlock.js.map +1 -1
- package/build/es/components/src/components/WarningLabel/WarningLabel.js +1 -0
- package/build/es/components/src/components/WarningLabel/WarningLabel.js.map +1 -1
- package/build/es/components/src/components/ZipCodeInput/ZipCodeInput.js +61 -0
- package/build/es/components/src/components/ZipCodeInput/ZipCodeInput.js.map +1 -0
- package/build/es/components/src/components/ZipCodeInput/ZipCodeInput.styles.js +23 -0
- package/build/es/components/src/components/ZipCodeInput/ZipCodeInput.styles.js.map +1 -0
- package/build/es/components/src/index.js +1 -0
- package/build/es/components/src/index.js.map +1 -1
- package/package.json +2 -2
package/build/@types/index.d.ts
CHANGED
|
@@ -71,3 +71,4 @@ export * from './components/MenuListItem/MenuListHeader';
|
|
|
71
71
|
export * from './components/MenuListItem/MenuListItem';
|
|
72
72
|
export * from './components/SlideInOutContainer/SlideInOutContainer';
|
|
73
73
|
export * from './components/SearchSuggestionChip/SearchSuggestionChip';
|
|
74
|
+
export * from './components/ZipCodeInput/ZipCodeInput';
|
|
@@ -85,6 +85,7 @@ require('../SearchListItem/SearchListItem.styles.js');
|
|
|
85
85
|
require('../MenuListItem/MenuListItem.styles.js');
|
|
86
86
|
require('../SlideInOutContainer/SlideInOutContainer.styles.js');
|
|
87
87
|
require('../SearchSuggestionChip/SearchSuggestionChip.styles.js');
|
|
88
|
+
require('../ZipCodeInput/ZipCodeInput.styles.js');
|
|
88
89
|
|
|
89
90
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
90
91
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -85,6 +85,7 @@ require('../SearchListItem/SearchListItem.styles.js');
|
|
|
85
85
|
require('../MenuListItem/MenuListItem.styles.js');
|
|
86
86
|
require('../SlideInOutContainer/SlideInOutContainer.styles.js');
|
|
87
87
|
require('../SearchSuggestionChip/SearchSuggestionChip.styles.js');
|
|
88
|
+
require('../ZipCodeInput/ZipCodeInput.styles.js');
|
|
88
89
|
|
|
89
90
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
90
91
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var ZipCodeInput_styles = require('./ZipCodeInput.styles.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
+
|
|
12
|
+
var ZipCodeInput = function (_a) {
|
|
13
|
+
var setZipCode = _a.setZipCode, verified = _a.verified, setVerified = _a.setVerified, backgroundColor = _a.backgroundColor, verifiedBackground = _a.verifiedBackground;
|
|
14
|
+
var inputRefs = React.useRef([]);
|
|
15
|
+
var createZipCode = function () {
|
|
16
|
+
var zipCode = 0;
|
|
17
|
+
inputRefs.current.forEach(function (i) {
|
|
18
|
+
if (zipCode === 0) {
|
|
19
|
+
zipCode = i.value;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
zipCode += i.value;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
return zipCode;
|
|
26
|
+
};
|
|
27
|
+
var clamp = function (min, max, val) {
|
|
28
|
+
return Math.max(min, Math.min(val, max));
|
|
29
|
+
};
|
|
30
|
+
var handleInput = function (index, e) {
|
|
31
|
+
var nextIndex = clamp(0, 5 - 1, index + 1);
|
|
32
|
+
var prevIndex = clamp(0, 5 - 1, index - 1);
|
|
33
|
+
if (e.key === 'Backspace' || e.key === 'Delete') {
|
|
34
|
+
inputRefs.current[index].value = null;
|
|
35
|
+
setVerified(false);
|
|
36
|
+
inputRefs.current[prevIndex].focus();
|
|
37
|
+
}
|
|
38
|
+
else if (e.key === 'ArrowLeft') {
|
|
39
|
+
inputRefs.current[prevIndex].focus();
|
|
40
|
+
}
|
|
41
|
+
else if (e.key === 'ArrowRight') {
|
|
42
|
+
inputRefs.current[nextIndex].focus();
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
if (inputRefs.current[index].value) {
|
|
46
|
+
if (e.key >= '1' && e.key <= '9') {
|
|
47
|
+
inputRefs.current[index].value = e.key;
|
|
48
|
+
inputRefs.current[nextIndex].focus();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
var counter = 0;
|
|
53
|
+
inputRefs.current.forEach(function (ref) {
|
|
54
|
+
if (ref.value) {
|
|
55
|
+
counter++;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
if (counter === 5) {
|
|
59
|
+
setVerified(true);
|
|
60
|
+
setZipCode(createZipCode());
|
|
61
|
+
inputRefs.current[index].blur();
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
return (React__default["default"].createElement(ZipCodeInput_styles.InputWrapper, null, Array.from(Array(5).keys()).map(function (index) { return (React__default["default"].createElement("div", { key: index },
|
|
65
|
+
React__default["default"].createElement(ZipCodeInput_styles.ZipCodeInputBox, { type: "number", onInput: function (e) { return (e.currentTarget.value = e.currentTarget.value.slice(0, 1)); }, onKeyUp: function (e) { return handleInput(index, e); }, verified: verified, backgroundColor: backgroundColor, verifiedBackground: verifiedBackground, marginLeft: index === 3, ref: function (ref) { return (inputRefs.current[index] = ref); } }))); })));
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
exports.ZipCodeInput = ZipCodeInput;
|
|
69
|
+
//# sourceMappingURL=ZipCodeInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZipCodeInput.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _tslib = require('../../../../_virtual/_tslib.js');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
11
|
+
|
|
12
|
+
var InputWrapper = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n justify-content: center;\n gap: ", "px;\n"], ["\n display: flex;\n justify-content: center;\n gap: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
13
|
+
var ZipCodeInputBox = styled__default["default"].input(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n font-weight: ", ";\n border: solid 1px\n ", ";\n border-radius: ", "px;\n text-align: center;\n background-color: ", ";\n margin-left: ", ";\n\n :focus {\n border: solid 1px ", ";\n outline: none;\n }\n\n ::-webkit-inner-spin-button,\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"], ["\n width: ", "px;\n height: ", "px;\n font-weight: ", ";\n border: solid 1px\n ", ";\n border-radius: ", "px;\n text-align: center;\n background-color: ", ";\n margin-left: ", ";\n\n :focus {\n border: solid 1px ", ";\n outline: none;\n }\n\n ::-webkit-inner-spin-button,\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.zipCodeInputSize; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.zipCodeInputSize; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.semiBold; }, function (props) {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
return props.verified === false
|
|
16
|
+
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark
|
|
17
|
+
: (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.greenMedium;
|
|
18
|
+
}, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxxs; }, function (props) {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
return props.verified === false
|
|
21
|
+
? props.backgroundColor
|
|
22
|
+
? props.backgroundColor
|
|
23
|
+
: (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white
|
|
24
|
+
: props.verifiedBackground
|
|
25
|
+
? props.verifiedBackground
|
|
26
|
+
: (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.greenLight;
|
|
27
|
+
}, function (props) { var _a; return props.marginLeft ? "".concat((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm, "px") : 0; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.alertBlue; });
|
|
28
|
+
var templateObject_1, templateObject_2;
|
|
29
|
+
|
|
30
|
+
exports.InputWrapper = InputWrapper;
|
|
31
|
+
exports.ZipCodeInputBox = ZipCodeInputBox;
|
|
32
|
+
//# sourceMappingURL=ZipCodeInput.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZipCodeInput.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -76,6 +76,7 @@ var MenuListHeader = require('./components/MenuListItem/MenuListHeader.js');
|
|
|
76
76
|
var MenuListItem = require('./components/MenuListItem/MenuListItem.js');
|
|
77
77
|
var SlideInOutContainer = require('./components/SlideInOutContainer/SlideInOutContainer.js');
|
|
78
78
|
var SearchSuggestionChip = require('./components/SearchSuggestionChip/SearchSuggestionChip.js');
|
|
79
|
+
var ZipCodeInput = require('./components/ZipCodeInput/ZipCodeInput.js');
|
|
79
80
|
|
|
80
81
|
|
|
81
82
|
|
|
@@ -184,4 +185,5 @@ exports.MenuListHeader = MenuListHeader.MenuListHeader;
|
|
|
184
185
|
exports.MenuListItem = MenuListItem.MenuListItem;
|
|
185
186
|
exports.SlideInOutContainer = SlideInOutContainer.SlideInOutContainer;
|
|
186
187
|
exports.SearchSuggestionChip = SearchSuggestionChip.SearchSuggestionChip;
|
|
188
|
+
exports.ZipCodeInput = ZipCodeInput.ZipCodeInput;
|
|
187
189
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -81,6 +81,7 @@ import '../SearchListItem/SearchListItem.styles.js';
|
|
|
81
81
|
import '../MenuListItem/MenuListItem.styles.js';
|
|
82
82
|
import '../SlideInOutContainer/SlideInOutContainer.styles.js';
|
|
83
83
|
import '../SearchSuggestionChip/SearchSuggestionChip.styles.js';
|
|
84
|
+
import '../ZipCodeInput/ZipCodeInput.styles.js';
|
|
84
85
|
|
|
85
86
|
function AddressBlock(_a) {
|
|
86
87
|
var _b = _a.deliverOption, deliverOption = _b === void 0 ? 'Address' : _b, icon = _a.icon, storeName = _a.storeName, customerName = _a.customerName, street = _a.street, zipCode = _a.zipCode, city = _a.city, doorCode = _a.doorCode, floor = _a.floor, deliveryInstructions = _a.deliveryInstructions, xsSpacing = _a.xsSpacing, lgSpacing = _a.lgSpacing;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -81,6 +81,7 @@ import '../SearchListItem/SearchListItem.styles.js';
|
|
|
81
81
|
import '../MenuListItem/MenuListItem.styles.js';
|
|
82
82
|
import '../SlideInOutContainer/SlideInOutContainer.styles.js';
|
|
83
83
|
import '../SearchSuggestionChip/SearchSuggestionChip.styles.js';
|
|
84
|
+
import '../ZipCodeInput/ZipCodeInput.styles.js';
|
|
84
85
|
|
|
85
86
|
function WarningLabel(_a) {
|
|
86
87
|
var children = _a.children, background = _a.background, toolTip = _a.toolTip;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
|
+
import { InputWrapper, ZipCodeInputBox } from './ZipCodeInput.styles.js';
|
|
3
|
+
|
|
4
|
+
var ZipCodeInput = function (_a) {
|
|
5
|
+
var setZipCode = _a.setZipCode, verified = _a.verified, setVerified = _a.setVerified, backgroundColor = _a.backgroundColor, verifiedBackground = _a.verifiedBackground;
|
|
6
|
+
var inputRefs = useRef([]);
|
|
7
|
+
var createZipCode = function () {
|
|
8
|
+
var zipCode = 0;
|
|
9
|
+
inputRefs.current.forEach(function (i) {
|
|
10
|
+
if (zipCode === 0) {
|
|
11
|
+
zipCode = i.value;
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
zipCode += i.value;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
return zipCode;
|
|
18
|
+
};
|
|
19
|
+
var clamp = function (min, max, val) {
|
|
20
|
+
return Math.max(min, Math.min(val, max));
|
|
21
|
+
};
|
|
22
|
+
var handleInput = function (index, e) {
|
|
23
|
+
var nextIndex = clamp(0, 5 - 1, index + 1);
|
|
24
|
+
var prevIndex = clamp(0, 5 - 1, index - 1);
|
|
25
|
+
if (e.key === 'Backspace' || e.key === 'Delete') {
|
|
26
|
+
inputRefs.current[index].value = null;
|
|
27
|
+
setVerified(false);
|
|
28
|
+
inputRefs.current[prevIndex].focus();
|
|
29
|
+
}
|
|
30
|
+
else if (e.key === 'ArrowLeft') {
|
|
31
|
+
inputRefs.current[prevIndex].focus();
|
|
32
|
+
}
|
|
33
|
+
else if (e.key === 'ArrowRight') {
|
|
34
|
+
inputRefs.current[nextIndex].focus();
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
if (inputRefs.current[index].value) {
|
|
38
|
+
if (e.key >= '1' && e.key <= '9') {
|
|
39
|
+
inputRefs.current[index].value = e.key;
|
|
40
|
+
inputRefs.current[nextIndex].focus();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
var counter = 0;
|
|
45
|
+
inputRefs.current.forEach(function (ref) {
|
|
46
|
+
if (ref.value) {
|
|
47
|
+
counter++;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
if (counter === 5) {
|
|
51
|
+
setVerified(true);
|
|
52
|
+
setZipCode(createZipCode());
|
|
53
|
+
inputRefs.current[index].blur();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
return (React.createElement(InputWrapper, null, Array.from(Array(5).keys()).map(function (index) { return (React.createElement("div", { key: index },
|
|
57
|
+
React.createElement(ZipCodeInputBox, { type: "number", onInput: function (e) { return (e.currentTarget.value = e.currentTarget.value.slice(0, 1)); }, onKeyUp: function (e) { return handleInput(index, e); }, verified: verified, backgroundColor: backgroundColor, verifiedBackground: verifiedBackground, marginLeft: index === 3, ref: function (ref) { return (inputRefs.current[index] = ref); } }))); })));
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { ZipCodeInput };
|
|
61
|
+
//# sourceMappingURL=ZipCodeInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZipCodeInput.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
var InputWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n gap: ", "px;\n"], ["\n display: flex;\n justify-content: center;\n gap: ", "px;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
5
|
+
var ZipCodeInputBox = styled.input(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n font-weight: ", ";\n border: solid 1px\n ", ";\n border-radius: ", "px;\n text-align: center;\n background-color: ", ";\n margin-left: ", ";\n\n :focus {\n border: solid 1px ", ";\n outline: none;\n }\n\n ::-webkit-inner-spin-button,\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"], ["\n width: ", "px;\n height: ", "px;\n font-weight: ", ";\n border: solid 1px\n ", ";\n border-radius: ", "px;\n text-align: center;\n background-color: ", ";\n margin-left: ", ";\n\n :focus {\n border: solid 1px ", ";\n outline: none;\n }\n\n ::-webkit-inner-spin-button,\n ::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n"])), function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.zipCodeInputSize; }, function (props) { var _a; return (_a = props.theme.constants) === null || _a === void 0 ? void 0 : _a.zipCodeInputSize; }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.weight.semiBold; }, function (props) {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
return props.verified === false
|
|
8
|
+
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.dark
|
|
9
|
+
: (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.greenMedium;
|
|
10
|
+
}, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxxs; }, function (props) {
|
|
11
|
+
var _a, _b;
|
|
12
|
+
return props.verified === false
|
|
13
|
+
? props.backgroundColor
|
|
14
|
+
? props.backgroundColor
|
|
15
|
+
: (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white
|
|
16
|
+
: props.verifiedBackground
|
|
17
|
+
? props.verifiedBackground
|
|
18
|
+
: (_b = props.theme.palette) === null || _b === void 0 ? void 0 : _b.greenLight;
|
|
19
|
+
}, function (props) { var _a; return props.marginLeft ? "".concat((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.sm, "px") : 0; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.alertBlue; });
|
|
20
|
+
var templateObject_1, templateObject_2;
|
|
21
|
+
|
|
22
|
+
export { InputWrapper, ZipCodeInputBox };
|
|
23
|
+
//# sourceMappingURL=ZipCodeInput.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZipCodeInput.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -72,4 +72,5 @@ export { MenuListHeader } from './components/MenuListItem/MenuListHeader.js';
|
|
|
72
72
|
export { MenuListItem } from './components/MenuListItem/MenuListItem.js';
|
|
73
73
|
export { SlideInOutContainer } from './components/SlideInOutContainer/SlideInOutContainer.js';
|
|
74
74
|
export { SearchSuggestionChip } from './components/SearchSuggestionChip/SearchSuggestionChip.js';
|
|
75
|
+
export { ZipCodeInput } from './components/ZipCodeInput/ZipCodeInput.js';
|
|
75
76
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.114",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./build/cjs/components/src/index.js",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"moment": "^2.29.1",
|
|
72
72
|
"react-loading-skeleton": "^2.2.0"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "653a9a391aca85f24aa635bf55b8dffd4b0acc09"
|
|
75
75
|
}
|