@shoplflow/base 0.32.26 → 0.32.28
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/index.cjs +8 -1
- package/dist/index.js +8 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1547,16 +1547,19 @@ var getStyleBySizeVar2 = (sizeVar) => {
|
|
|
1547
1547
|
switch (sizeVar) {
|
|
1548
1548
|
case "M":
|
|
1549
1549
|
return react$1.css`
|
|
1550
|
+
gap: 4px;
|
|
1550
1551
|
min-width: 72px;
|
|
1551
1552
|
min-height: 40px;
|
|
1552
1553
|
`;
|
|
1553
1554
|
case "S":
|
|
1554
1555
|
return react$1.css`
|
|
1556
|
+
gap: 2px;
|
|
1555
1557
|
min-width: 54px;
|
|
1556
1558
|
min-height: 32px;
|
|
1557
1559
|
`;
|
|
1558
1560
|
default:
|
|
1559
1561
|
return react$1.css`
|
|
1562
|
+
gap: 4px;
|
|
1560
1563
|
min-width: 72px;
|
|
1561
1564
|
min-height: 40px;
|
|
1562
1565
|
`;
|
|
@@ -1568,7 +1571,7 @@ var StyledButton = styled6__default.default.button`
|
|
|
1568
1571
|
justify-content: center;
|
|
1569
1572
|
height: fit-content;
|
|
1570
1573
|
width: fit-content;
|
|
1571
|
-
gap: 4px;
|
|
1574
|
+
/* gap: 4px; */
|
|
1572
1575
|
padding: 0 12px;
|
|
1573
1576
|
border-radius: 6px;
|
|
1574
1577
|
cursor: pointer;
|
|
@@ -6240,6 +6243,10 @@ var NumberCombobox = (_a) => {
|
|
|
6240
6243
|
onKeyDown: (event) => {
|
|
6241
6244
|
var _a2, _b2;
|
|
6242
6245
|
event.stopPropagation();
|
|
6246
|
+
if (!/^\d$/.test(event.key) && !["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"].includes(event.key)) {
|
|
6247
|
+
event.preventDefault();
|
|
6248
|
+
return;
|
|
6249
|
+
}
|
|
6243
6250
|
if (event.key === "ArrowUp" || event.key === "ArrowDown" || event.key === "-") {
|
|
6244
6251
|
event.preventDefault();
|
|
6245
6252
|
return;
|
package/dist/index.js
CHANGED
|
@@ -1520,16 +1520,19 @@ var getStyleBySizeVar2 = (sizeVar) => {
|
|
|
1520
1520
|
switch (sizeVar) {
|
|
1521
1521
|
case "M":
|
|
1522
1522
|
return css`
|
|
1523
|
+
gap: 4px;
|
|
1523
1524
|
min-width: 72px;
|
|
1524
1525
|
min-height: 40px;
|
|
1525
1526
|
`;
|
|
1526
1527
|
case "S":
|
|
1527
1528
|
return css`
|
|
1529
|
+
gap: 2px;
|
|
1528
1530
|
min-width: 54px;
|
|
1529
1531
|
min-height: 32px;
|
|
1530
1532
|
`;
|
|
1531
1533
|
default:
|
|
1532
1534
|
return css`
|
|
1535
|
+
gap: 4px;
|
|
1533
1536
|
min-width: 72px;
|
|
1534
1537
|
min-height: 40px;
|
|
1535
1538
|
`;
|
|
@@ -1541,7 +1544,7 @@ var StyledButton = styled6.button`
|
|
|
1541
1544
|
justify-content: center;
|
|
1542
1545
|
height: fit-content;
|
|
1543
1546
|
width: fit-content;
|
|
1544
|
-
gap: 4px;
|
|
1547
|
+
/* gap: 4px; */
|
|
1545
1548
|
padding: 0 12px;
|
|
1546
1549
|
border-radius: 6px;
|
|
1547
1550
|
cursor: pointer;
|
|
@@ -6213,6 +6216,10 @@ var NumberCombobox = (_a) => {
|
|
|
6213
6216
|
onKeyDown: (event) => {
|
|
6214
6217
|
var _a2, _b2;
|
|
6215
6218
|
event.stopPropagation();
|
|
6219
|
+
if (!/^\d$/.test(event.key) && !["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"].includes(event.key)) {
|
|
6220
|
+
event.preventDefault();
|
|
6221
|
+
return;
|
|
6222
|
+
}
|
|
6216
6223
|
if (event.key === "ArrowUp" || event.key === "ArrowDown" || event.key === "-") {
|
|
6217
6224
|
event.preventDefault();
|
|
6218
6225
|
return;
|