@citygross/components 0.8.18 → 0.8.20
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/CouponCode/CouponCode.js +1 -0
- package/build/cjs/components/src/components/CouponCode/CouponCode.js.map +1 -1
- 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/es/components/src/components/CouponCode/CouponCode.js +1 -0
- package/build/es/components/src/components/CouponCode/CouponCode.js.map +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/package.json +2 -2
|
@@ -43,6 +43,7 @@ function CouponCode(_a) {
|
|
|
43
43
|
}, onKeyDown: function (event) {
|
|
44
44
|
if (event.key === 'Enter') {
|
|
45
45
|
onSubmit();
|
|
46
|
+
event.preventDefault();
|
|
46
47
|
}
|
|
47
48
|
}, onBlur: function () { return setCustomFocus(false); }, customFocus: customFocus })),
|
|
48
49
|
React__default["default"].createElement("div", null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CouponCode.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CouponCode.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -35,6 +35,7 @@ function CouponCode(_a) {
|
|
|
35
35
|
}, onKeyDown: function (event) {
|
|
36
36
|
if (event.key === 'Enter') {
|
|
37
37
|
onSubmit();
|
|
38
|
+
event.preventDefault();
|
|
38
39
|
}
|
|
39
40
|
}, onBlur: function () { return setCustomFocus(false); }, customFocus: customFocus })),
|
|
40
41
|
React.createElement("div", null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CouponCode.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CouponCode.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.20",
|
|
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": "df1f063d101dfddb8a57cf8dffe0126a642ec28d"
|
|
80
80
|
}
|