@sheinx/base 3.0.0 → 3.1.0-rc.1
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/cjs/input/input-number.js +1 -1
- package/cjs/input/input-number.type.d.ts +6 -0
- package/cjs/input/input-number.type.d.ts.map +1 -1
- package/esm/input/input-number.js +1 -1
- package/esm/input/input-number.type.d.ts +6 -0
- package/esm/input/input-number.type.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -48,7 +48,7 @@ var InputNumber = function InputNumber(props) {
|
|
|
48
48
|
onPlus = _useInputNumber.onPlus,
|
|
49
49
|
numberFormatProps = _objectWithoutProperties(_useInputNumber, _excluded2);
|
|
50
50
|
var forwardProps = _hooks.util.removeProps(commonProps, _objectSpread({}, numberFormatParams));
|
|
51
|
-
var addEnd = /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.default.Fragment, {
|
|
51
|
+
var addEnd = props.hideArrow ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.default.Fragment, {
|
|
52
52
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
53
53
|
className: inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.numberStep,
|
|
54
54
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
@@ -3,5 +3,11 @@ import { GetCommonProps, InputStyle, SimpleInputProps } from './input.type';
|
|
|
3
3
|
export type NumValueType = string | number | null | undefined;
|
|
4
4
|
export interface InputNumberProps extends GetCommonProps<SimpleInputProps, NumValueType>, Omit<NumberProps, 'value' | 'onChange'> {
|
|
5
5
|
jssStyle: InputStyle;
|
|
6
|
+
/**
|
|
7
|
+
* @en Whether to hide increase/decrease buttons
|
|
8
|
+
* @cn 是否隐藏增减按钮
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
hideArrow?: boolean;
|
|
6
12
|
}
|
|
7
13
|
//# sourceMappingURL=input-number.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-number.type.d.ts","sourceRoot":"","sources":["input-number.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE5E,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAE9D,MAAM,WAAW,gBACf,SAAQ,cAAc,CAAC,gBAAgB,EAAE,YAAY,CAAC,EACpD,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,UAAU,CAAC;IACzC,QAAQ,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"input-number.type.d.ts","sourceRoot":"","sources":["input-number.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE5E,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAE9D,MAAM,WAAW,gBACf,SAAQ,cAAc,CAAC,gBAAgB,EAAE,YAAY,CAAC,EACpD,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,UAAU,CAAC;IACzC,QAAQ,EAAE,UAAU,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -42,7 +42,7 @@ var InputNumber = function InputNumber(props) {
|
|
|
42
42
|
onPlus = _useInputNumber.onPlus,
|
|
43
43
|
numberFormatProps = _objectWithoutProperties(_useInputNumber, _excluded2);
|
|
44
44
|
var forwardProps = util.removeProps(commonProps, _objectSpread({}, numberFormatParams));
|
|
45
|
-
var addEnd = /*#__PURE__*/_jsx(React.Fragment, {
|
|
45
|
+
var addEnd = props.hideArrow ? null : /*#__PURE__*/_jsx(React.Fragment, {
|
|
46
46
|
children: /*#__PURE__*/_jsxs("div", {
|
|
47
47
|
className: inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.numberStep,
|
|
48
48
|
children: [/*#__PURE__*/_jsx("span", {
|
|
@@ -3,5 +3,11 @@ import { GetCommonProps, InputStyle, SimpleInputProps } from './input.type';
|
|
|
3
3
|
export type NumValueType = string | number | null | undefined;
|
|
4
4
|
export interface InputNumberProps extends GetCommonProps<SimpleInputProps, NumValueType>, Omit<NumberProps, 'value' | 'onChange'> {
|
|
5
5
|
jssStyle: InputStyle;
|
|
6
|
+
/**
|
|
7
|
+
* @en Whether to hide increase/decrease buttons
|
|
8
|
+
* @cn 是否隐藏增减按钮
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
hideArrow?: boolean;
|
|
6
12
|
}
|
|
7
13
|
//# sourceMappingURL=input-number.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-number.type.d.ts","sourceRoot":"","sources":["input-number.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE5E,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAE9D,MAAM,WAAW,gBACf,SAAQ,cAAc,CAAC,gBAAgB,EAAE,YAAY,CAAC,EACpD,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,UAAU,CAAC;IACzC,QAAQ,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"input-number.type.d.ts","sourceRoot":"","sources":["input-number.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE5E,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAE9D,MAAM,WAAW,gBACf,SAAQ,cAAc,CAAC,gBAAgB,EAAE,YAAY,CAAC,EACpD,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,UAAU,CAAC;IACzC,QAAQ,EAAE,UAAU,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.1.0-rc.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "ISC",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"module": "./esm/index.js",
|
|
11
11
|
"typings": "./cjs/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@sheinx/hooks": "3.0.
|
|
13
|
+
"@sheinx/hooks": "3.1.0-rc.1",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.2"
|