@citygross/components 0.8.19 → 0.8.21
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/cjs/components/src/components/QuantitySelector/QuantitySelector.js +7 -1
- package/build/cjs/components/src/components/QuantitySelector/QuantitySelector.js.map +1 -1
- package/build/cjs/components/src/components/SideModal/SideModal.styles.js +1 -1
- package/build/es/components/src/components/QuantitySelector/QuantitySelector.js +7 -1
- package/build/es/components/src/components/QuantitySelector/QuantitySelector.js.map +1 -1
- package/build/es/components/src/components/SideModal/SideModal.styles.js +1 -1
- package/package.json +2 -2
|
@@ -29,13 +29,19 @@ function QuantitySelector(_a) {
|
|
|
29
29
|
inputRef.current.select();
|
|
30
30
|
}
|
|
31
31
|
}, onKeyDown: function (event) {
|
|
32
|
+
if (event.key === ',' || event.key === '.') {
|
|
33
|
+
event.preventDefault();
|
|
34
|
+
}
|
|
32
35
|
if (event.key === 'Enter' || event.key === 'Escape') {
|
|
33
36
|
event.currentTarget.blur();
|
|
34
37
|
}
|
|
35
38
|
}, onBlur: function () {
|
|
36
39
|
onBlur && onBlur();
|
|
37
40
|
setCustomFocus(false);
|
|
38
|
-
}, onChange: function (e) {
|
|
41
|
+
}, onChange: function (e) {
|
|
42
|
+
console.log(e.target.value);
|
|
43
|
+
onChange(e);
|
|
44
|
+
} }),
|
|
39
45
|
React__default["default"].createElement(QuantitySelector_styles.QuantityButton, { direction: "right", disabled: value >= maxValue, onClick: onAdd, tabIndex: -1 },
|
|
40
46
|
React__default["default"].createElement(QuantitySelector_styles.IconContainer, null,
|
|
41
47
|
React__default["default"].createElement(icons.Icons.Plus, { width: 16, height: 16 })))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuantitySelector.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QuantitySelector.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -14,7 +14,7 @@ var SideModalOverlay = styled__default["default"](framerMotion.motion.div)(templ
|
|
|
14
14
|
return props.maxHeight &&
|
|
15
15
|
"\n max-height: ".concat(props.maxHeight, ";\n ");
|
|
16
16
|
}, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; });
|
|
17
|
-
var SideModalContainer = styled__default["default"](framerMotion.motion.div)(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n height: 100dvh;\n background: ", ";\n width: 100%;\n overscroll-behavior: none;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n z-index: ", ";\n ", ";\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n\n @media (min-width: ", "px) {\n max-height: unset;\n width: ", "px;\n }\n"], ["\n height: 100dvh;\n background: ", ";\n width: 100%;\n overscroll-behavior: none;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n z-index: ", ";\n ", ";\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n\n @media (min-width: ", "px) {\n max-height: unset;\n width: ", "px;\n }\n"])), function (props) { return props.background; }, function (_a) {
|
|
17
|
+
var SideModalContainer = styled__default["default"](framerMotion.motion.div)(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n height: 100vh;\n @supports (height: 100dvh) {\n height: 100dvh;\n }\n background: ", ";\n width: 100%;\n overscroll-behavior: none;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n z-index: ", ";\n ", ";\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n\n @media (min-width: ", "px) {\n max-height: unset;\n width: ", "px;\n }\n"], ["\n height: 100vh;\n @supports (height: 100dvh) {\n height: 100dvh;\n }\n background: ", ";\n width: 100%;\n overscroll-behavior: none;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n z-index: ", ";\n ", ";\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n\n @media (min-width: ", "px) {\n max-height: unset;\n width: ", "px;\n }\n"])), function (props) { return props.background; }, function (_a) {
|
|
18
18
|
var maxWidth = _a.maxWidth;
|
|
19
19
|
return maxWidth && "max-width:".concat(maxWidth);
|
|
20
20
|
}, function (props) { return ((props === null || props === void 0 ? void 0 : props.slideFrom) === 'left' ? "left: 0px" : 'right: 0px'); }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.zIndex.modal; }, function (props) {
|
|
@@ -21,13 +21,19 @@ function QuantitySelector(_a) {
|
|
|
21
21
|
inputRef.current.select();
|
|
22
22
|
}
|
|
23
23
|
}, onKeyDown: function (event) {
|
|
24
|
+
if (event.key === ',' || event.key === '.') {
|
|
25
|
+
event.preventDefault();
|
|
26
|
+
}
|
|
24
27
|
if (event.key === 'Enter' || event.key === 'Escape') {
|
|
25
28
|
event.currentTarget.blur();
|
|
26
29
|
}
|
|
27
30
|
}, onBlur: function () {
|
|
28
31
|
onBlur && onBlur();
|
|
29
32
|
setCustomFocus(false);
|
|
30
|
-
}, onChange: function (e) {
|
|
33
|
+
}, onChange: function (e) {
|
|
34
|
+
console.log(e.target.value);
|
|
35
|
+
onChange(e);
|
|
36
|
+
} }),
|
|
31
37
|
React.createElement(QuantityButton, { direction: "right", disabled: value >= maxValue, onClick: onAdd, tabIndex: -1 },
|
|
32
38
|
React.createElement(IconContainer, null,
|
|
33
39
|
React.createElement(Icons.Plus, { width: 16, height: 16 })))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuantitySelector.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QuantitySelector.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -6,7 +6,7 @@ var SideModalOverlay = styled(motion.div)(templateObject_1 || (templateObject_1
|
|
|
6
6
|
return props.maxHeight &&
|
|
7
7
|
"\n max-height: ".concat(props.maxHeight, ";\n ");
|
|
8
8
|
}, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.xs; }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.lg; });
|
|
9
|
-
var SideModalContainer = styled(motion.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100dvh;\n background: ", ";\n width: 100%;\n overscroll-behavior: none;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n z-index: ", ";\n ", ";\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n\n @media (min-width: ", "px) {\n max-height: unset;\n width: ", "px;\n }\n"], ["\n height: 100dvh;\n background: ", ";\n width: 100%;\n overscroll-behavior: none;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n z-index: ", ";\n ", ";\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n\n @media (min-width: ", "px) {\n max-height: unset;\n width: ", "px;\n }\n"])), function (props) { return props.background; }, function (_a) {
|
|
9
|
+
var SideModalContainer = styled(motion.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 100vh;\n @supports (height: 100dvh) {\n height: 100dvh;\n }\n background: ", ";\n width: 100%;\n overscroll-behavior: none;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n z-index: ", ";\n ", ";\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n\n @media (min-width: ", "px) {\n max-height: unset;\n width: ", "px;\n }\n"], ["\n height: 100vh;\n @supports (height: 100dvh) {\n height: 100dvh;\n }\n background: ", ";\n width: 100%;\n overscroll-behavior: none;\n ", ";\n position: absolute;\n ", ";\n top: 0;\n z-index: ", ";\n ", ";\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n\n @media (min-width: ", "px) {\n max-height: unset;\n width: ", "px;\n }\n"])), function (props) { return props.background; }, function (_a) {
|
|
10
10
|
var maxWidth = _a.maxWidth;
|
|
11
11
|
return maxWidth && "max-width:".concat(maxWidth);
|
|
12
12
|
}, function (props) { return ((props === null || props === void 0 ? void 0 : props.slideFrom) === 'left' ? "left: 0px" : 'right: 0px'); }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.zIndex.modal; }, function (props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.21",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./build/cjs/components/src/index.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"react-slick": "^0.30.1",
|
|
77
77
|
"slick-carousel": "^1.8.1"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "4af297e0f5ff73f8d0b66d0be101542fc7d38658"
|
|
80
80
|
}
|