Skip to content

Commit

Permalink
chore: bump father plugin (#696)
Browse files Browse the repository at this point in the history
* chore: bump father version

* chore: update deps
  • Loading branch information
zombieJ authored Jan 28, 2025
1 parent 193afb5 commit d9662d5
Show file tree
Hide file tree
Showing 28 changed files with 43 additions and 43 deletions.
2 changes: 1 addition & 1 deletion docs/demo/combination-key-format.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint no-console:0 */
import React from 'react';
import InputNumber from 'rc-input-number';
import InputNumber from '@rc-component/input-number';
import '../../assets/index.less';

class Component extends React.Component {
Expand Down
2 changes: 1 addition & 1 deletion docs/demo/custom.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint no-console:0 */
import React from 'react';
import InputNumber from 'rc-input-number';
import InputNumber from '@rc-component/input-number';
import '../../assets/index.less';

class Component extends React.Component {
Expand Down
2 changes: 1 addition & 1 deletion docs/demo/debug.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint no-console:0 */
import React, { useEffect } from 'react';
import InputNumber from 'rc-input-number';
import InputNumber from '@rc-component/input-number';
import '../../assets/index.less';

export default () => {
Expand Down
2 changes: 1 addition & 1 deletion docs/demo/decimal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint no-console:0 */
import React from 'react';
import InputNumber from 'rc-input-number';
import InputNumber from '@rc-component/input-number';
import '../../assets/index.less';

export default class Demo extends React.Component {
Expand Down
2 changes: 1 addition & 1 deletion docs/demo/focus.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint no-console:0 */
import InputNumber, { InputNumberRef } from 'rc-input-number';
import InputNumber, { InputNumberRef } from '@rc-component/input-number';
import React from 'react';
import '../../assets/index.less';

Expand Down
2 changes: 1 addition & 1 deletion docs/demo/formatter.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint no-console:0 */
import React from 'react';
import InputNumber from 'rc-input-number';
import InputNumber from '@rc-component/input-number';
import '../../assets/index.less';

function getSum(str) {
Expand Down
4 changes: 2 additions & 2 deletions docs/demo/input-control.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint no-console:0 */
import React from 'react';
import type { ValueType} from 'rc-input-number'
import InputNumber from 'rc-input-number';
import type { ValueType} from '@rc-component/input-number'
import InputNumber from '@rc-component/input-number';
import '../../assets/index.less';

export default () => {
Expand Down
2 changes: 1 addition & 1 deletion docs/demo/precision.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint no-console:0 */
import React from 'react';
import InputNumber from 'rc-input-number';
import InputNumber from '@rc-component/input-number';
import '../../assets/index.less';

export default () => {
Expand Down
2 changes: 1 addition & 1 deletion docs/demo/simple.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint no-console:0 */
import InputNumber from 'rc-input-number';
import InputNumber from '@rc-component/input-number';
import React from 'react';
import '../../assets/index.less';

Expand Down
2 changes: 1 addition & 1 deletion docs/demo/small-step.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint no-console:0 */
import React from 'react';
import InputNum from 'rc-input-number';
import InputNum from '@rc-component/input-number';
import '../../assets/index.less';

export default () => {
Expand Down
2 changes: 1 addition & 1 deletion docs/demo/wheel.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint no-console:0 */
import InputNumber from 'rc-input-number';
import InputNumber from '@rc-component/input-number';
import React from 'react';
import '../../assets/index.less';

Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rc-input-number",
"version": "9.4.0",
"name": "@rc-component/input-number",
"version": "1.0.0",
"description": "React input-number component",
"keywords": [
"react",
Expand Down Expand Up @@ -34,7 +34,7 @@
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md",
"now-build": "npm run docs:build",
"prepare": "husky install",
"prepublishOnly": "npm run compile && np --yolo --no-publish",
"prepublishOnly": "npm run compile && rc-np",
"prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
"start": "dumi dev",
"test": "rc-test"
Expand All @@ -46,14 +46,14 @@
]
},
"dependencies": {
"@babel/runtime": "^7.10.1",
"@rc-component/mini-decimal": "^1.0.1",
"classnames": "^2.2.5",
"rc-input": "~1.7.1",
"rc-util": "^5.40.1"
"@rc-component/input": "~1.0.0",
"@rc-component/util": "^1.2.0"
},
"devDependencies": {
"@rc-component/father-plugin": "^1.0.1",
"@rc-component/father-plugin": "^2.0.2",
"@rc-component/np": "^1.0.3",
"@swc-node/jest": "^1.5.5",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^16.0.0",
Expand Down
14 changes: 7 additions & 7 deletions src/InputNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ import getMiniDecimal, {
ValueType,
} from '@rc-component/mini-decimal';
import clsx from 'classnames';
import { BaseInput } from 'rc-input';
import { useLayoutUpdateEffect } from 'rc-util/lib/hooks/useLayoutEffect';
import proxyObject from 'rc-util/lib/proxyObject';
import { composeRef } from 'rc-util/lib/ref';
import { BaseInput } from '@rc-component/input';
import { useLayoutUpdateEffect } from '@rc-component/util/lib/hooks/useLayoutEffect';
import proxyObject from '@rc-component/util/lib/proxyObject';
import { composeRef } from '@rc-component/util/lib/ref';
import * as React from 'react';
import useCursor from './hooks/useCursor';
import StepHandler from './StepHandler';
import { getDecupleSteps } from './utils/numberUtil';

import type { HolderRef } from 'rc-input/lib/BaseInput';
import { BaseInputProps } from 'rc-input/lib/interface';
import { InputFocusOptions, triggerFocus } from 'rc-input/lib/utils/commonUtils';
import type { HolderRef } from '@rc-component/input/lib/BaseInput';
import { BaseInputProps } from '@rc-component/input/lib/interface';
import { InputFocusOptions, triggerFocus } from '@rc-component/input/lib/utils/commonUtils';
import useFrame from './hooks/useFrame';

export type { ValueType };
Expand Down
4 changes: 2 additions & 2 deletions src/StepHandler.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable react/no-unknown-property */
import * as React from 'react';
import classNames from 'classnames';
import useMobile from 'rc-util/lib/hooks/useMobile';
import raf from 'rc-util/lib/raf';
import useMobile from '@rc-component/util/lib/hooks/useMobile';
import raf from '@rc-component/util/lib/raf';

/**
* When click and hold on a button - the speed of auto changing the value.
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useCursor.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useRef } from 'react';
import warning from 'rc-util/lib/warning';
import warning from '@rc-component/util/lib/warning';
/**
* Keep input cursor in the correct position if possible.
* Is this necessary since we have `formatter` which may mass the content?
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useFrame.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useRef, useEffect } from 'react';
import raf from 'rc-util/lib/raf';
import raf from '@rc-component/util/lib/raf';

/**
* Always trigger latest once when call multiple time
Expand Down
2 changes: 1 addition & 1 deletion tests/click.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { render, fireEvent, act } from '@testing-library/react';
import InputNumber, { InputNumberProps } from '../src';
import KeyCode from 'rc-util/lib/KeyCode';
import KeyCode from '@rc-component/util/lib/KeyCode';

jest.mock('@rc-component/mini-decimal/lib/supportUtil');
const { supportBigInt } = require('@rc-component/mini-decimal/lib/supportUtil');
Expand Down
2 changes: 1 addition & 1 deletion tests/cursor.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import KeyCode from 'rc-util/lib/KeyCode';
import KeyCode from '@rc-component/util/lib/KeyCode';
import { render, fireEvent } from './util/wrapper';
import InputNumber from '../src';

Expand Down
4 changes: 2 additions & 2 deletions tests/focus.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fireEvent, render } from '@testing-library/react';
import InputNumber, { InputNumberRef } from 'rc-input-number';
import { spyElementPrototypes } from 'rc-util/lib/test/domHook';
import InputNumber, { InputNumberRef } from '../src';
import { spyElementPrototypes } from '@rc-component/util/lib/test/domHook';
import React from 'react';

const getInputRef = () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/formatter.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import KeyCode from 'rc-util/lib/KeyCode';
import KeyCode from '@rc-component/util/lib/KeyCode';
import React from 'react';
import InputNumber from '../src';
import { fireEvent, render } from './util/wrapper';
Expand Down
2 changes: 1 addition & 1 deletion tests/github.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import KeyCode from 'rc-util/lib/KeyCode';
import KeyCode from '@rc-component/util/lib/KeyCode';
import React from 'react';
import InputNumber from '../src';
import { act, fireEvent, render, screen, waitFor } from './util/wrapper';
Expand Down
2 changes: 1 addition & 1 deletion tests/input.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import KeyCode from 'rc-util/lib/KeyCode';
import KeyCode from '@rc-component/util/lib/KeyCode';
import React from 'react';
import InputNumber, { InputNumberProps, InputNumberRef } from '../src';
import { fireEvent, render } from './util/wrapper';
Expand Down
2 changes: 1 addition & 1 deletion tests/keyboard.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import KeyCode from 'rc-util/lib/KeyCode';
import KeyCode from '@rc-component/util/lib/KeyCode';
import InputNumber from '../src';
import { fireEvent, render } from './util/wrapper';

Expand Down
2 changes: 1 addition & 1 deletion tests/mobile.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { render } from './util/wrapper';
import InputNumber from '../src';
import { renderToString } from 'react-dom/server';

jest.mock('rc-util/lib/isMobile', () => () => true);
jest.mock('@rc-component/util/lib/isMobile', () => () => true);

// Mobile touch experience is not user-friendly which not apply in antd.
// Let's hide operator instead.
Expand Down
2 changes: 1 addition & 1 deletion tests/precision.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import '@testing-library/jest-dom';
import { render, fireEvent } from '@testing-library/react';
import KeyCode from 'rc-util/lib/KeyCode';
import KeyCode from '@rc-component/util/lib/KeyCode';
import InputNumber from '../src';

describe('InputNumber.Precision', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/props.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import '@testing-library/jest-dom';
import { render, fireEvent } from '@testing-library/react';
import KeyCode from 'rc-util/lib/KeyCode';
import KeyCode from '@rc-component/util/lib/KeyCode';
import type { ValueType } from '../src'
import InputNumber from '../src';

Expand Down
2 changes: 1 addition & 1 deletion tests/wheel.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import KeyCode from 'rc-util/lib/KeyCode';
import KeyCode from '@rc-component/util/lib/KeyCode';
import InputNumber from '../src';
import { fireEvent, render } from './util/wrapper';

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"paths": {
"@/*": ["src/*"],
"@@/*": ["src/.umi/*"],
"rc-input-number": ["src/index.ts"]
"@rc-component/input-number": ["src/index.ts"]
}
}
}

0 comments on commit d9662d5

Please sign in to comment.