@easyv/react-components 0.3.11 → 0.3.13

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.
@@ -15,11 +15,11 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
15
15
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
16
  import { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
17
17
  import { DownOutlined, UpOutlined } from '@easyv/react-icons';
18
+ import classNames from 'classnames';
18
19
  import Input from "../Input";
19
20
  import { getSafeValue, evaluateExpression } from "./util";
20
21
  import { PointerDrag } from "./PointDrag";
21
22
  import "./index.less";
22
- import classNames from 'classnames';
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import { jsxs as _jsxs } from "react/jsx-runtime";
25
25
  var valueRegx = /^[0-9().+\-*/]+$/;
@@ -1,6 +1,10 @@
1
+ /// <reference types="react" />
1
2
  import type { InputNumberProps } from '@arco-design/web-react';
2
3
  interface XInputNumberProps extends Omit<InputNumberProps, 'value' | 'defaultValue' | 'onKeyDown' | 'formatter' | 'parser' | 'strictMode' | 'mode' | 'icons'> {
3
4
  value?: number;
4
5
  defaultValue?: number;
6
+ bordered?: boolean;
7
+ onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
8
+ onPressEnter?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
5
9
  }
6
10
  export { XInputNumberProps as InputNumberProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/react-components",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
4
4
  "description": "a react component library base on arco design",
5
5
  "license": "MIT",
6
6
  "sideEffects": [