@shoplflow/base 0.32.25 → 0.32.27
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 +5 -1
- package/dist/index.js +5 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2699,7 +2699,7 @@ exports.SplitButtonStyleVariants = {
|
|
|
2699
2699
|
SECONDARY: "SECONDARY"
|
|
2700
2700
|
};
|
|
2701
2701
|
var informationStyle = react$1.css`
|
|
2702
|
-
background: ${exports.colorTokens.
|
|
2702
|
+
background: ${exports.colorTokens.neutral400_5};
|
|
2703
2703
|
& > span {
|
|
2704
2704
|
color: ${exports.colorTokens.neutral600};
|
|
2705
2705
|
}
|
|
@@ -6240,6 +6240,10 @@ var NumberCombobox = (_a) => {
|
|
|
6240
6240
|
onKeyDown: (event) => {
|
|
6241
6241
|
var _a2, _b2;
|
|
6242
6242
|
event.stopPropagation();
|
|
6243
|
+
if (!/^\d$/.test(event.key) && !["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"].includes(event.key)) {
|
|
6244
|
+
event.preventDefault();
|
|
6245
|
+
return;
|
|
6246
|
+
}
|
|
6243
6247
|
if (event.key === "ArrowUp" || event.key === "ArrowDown" || event.key === "-") {
|
|
6244
6248
|
event.preventDefault();
|
|
6245
6249
|
return;
|
package/dist/index.js
CHANGED
|
@@ -2672,7 +2672,7 @@ var SplitButtonStyleVariants = {
|
|
|
2672
2672
|
SECONDARY: "SECONDARY"
|
|
2673
2673
|
};
|
|
2674
2674
|
var informationStyle = css`
|
|
2675
|
-
background: ${colorTokens.
|
|
2675
|
+
background: ${colorTokens.neutral400_5};
|
|
2676
2676
|
& > span {
|
|
2677
2677
|
color: ${colorTokens.neutral600};
|
|
2678
2678
|
}
|
|
@@ -6213,6 +6213,10 @@ var NumberCombobox = (_a) => {
|
|
|
6213
6213
|
onKeyDown: (event) => {
|
|
6214
6214
|
var _a2, _b2;
|
|
6215
6215
|
event.stopPropagation();
|
|
6216
|
+
if (!/^\d$/.test(event.key) && !["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"].includes(event.key)) {
|
|
6217
|
+
event.preventDefault();
|
|
6218
|
+
return;
|
|
6219
|
+
}
|
|
6216
6220
|
if (event.key === "ArrowUp" || event.key === "ArrowDown" || event.key === "-") {
|
|
6217
6221
|
event.preventDefault();
|
|
6218
6222
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoplflow/base",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"react-datepicker": "^7.3.0",
|
|
91
91
|
"react-dom": "^18.2.0",
|
|
92
92
|
"simplebar-react": "^3.2.6",
|
|
93
|
-
"@shoplflow/
|
|
93
|
+
"@shoplflow/shopl-assets": "^0.11.0",
|
|
94
94
|
"@shoplflow/utils": "^0.6.5",
|
|
95
|
-
"@shoplflow/
|
|
95
|
+
"@shoplflow/hada-assets": "^0.1.3"
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|
|
98
98
|
"type-check": "tsc --noEmit",
|