From db2061e8f7462ff69713b156802c3f7172b741aa Mon Sep 17 00:00:00 2001 From: janryWang Date: Fri, 22 Feb 2019 14:10:17 +0800 Subject: [PATCH] fix(next): replace fusion next package name --- packages/next/package.json | 1 + packages/next/src/components/button.js | 2 +- packages/next/src/components/formButtonGroup.js | 2 +- packages/next/src/components/layout.js | 4 ++-- packages/next/src/fields/array.js | 2 +- packages/next/src/fields/boolean.js | 2 +- packages/next/src/fields/checkbox.js | 2 +- packages/next/src/fields/date.js | 2 +- packages/next/src/fields/number.js | 2 +- packages/next/src/fields/password.js | 2 +- packages/next/src/fields/radio.js | 2 +- packages/next/src/fields/range.js | 2 +- packages/next/src/fields/rating.js | 2 +- packages/next/src/fields/string.js | 2 +- packages/next/src/fields/table.js | 2 +- packages/next/src/fields/time.js | 2 +- packages/next/src/fields/transfer.js | 2 +- packages/next/src/fields/upload.js | 2 +- packages/next/src/form.js | 4 ++-- packages/next/src/utils.js | 2 +- 20 files changed, 22 insertions(+), 21 deletions(-) diff --git a/packages/next/package.json b/packages/next/package.json index 0559bce5b61..647188ec95c 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -15,6 +15,7 @@ "npm": ">=3.0.0" }, "dependencies": { + "@alifd/next": "^1.13.1", "@uform/react": "^0.0.6", "@uform/utils": "^0.0.6", "classnames": "^2.2.6", diff --git a/packages/next/src/components/button.js b/packages/next/src/components/button.js index afb1c9e465e..c6e4974445f 100644 --- a/packages/next/src/components/button.js +++ b/packages/next/src/components/button.js @@ -1,6 +1,6 @@ import React from 'react' import { FormConsumer } from '@uform/react' -import { Button } from '@alife/next' +import { Button } from '@alifd/next' export const Submit = ({ showLoading, ...props }) => { return ( diff --git a/packages/next/src/components/formButtonGroup.js b/packages/next/src/components/formButtonGroup.js index b42f4d20e54..9c5fb60870f 100644 --- a/packages/next/src/components/formButtonGroup.js +++ b/packages/next/src/components/formButtonGroup.js @@ -1,6 +1,6 @@ import React, { Component } from 'react' import ReactDOM from 'react-dom' -import { Row, Col } from '@alife/next/lib/grid' +import { Row, Col } from '@alifd/next/lib/grid' import { FormConsumer } from '../form' import Sticky from 'react-stikky' import cls from 'classnames' diff --git a/packages/next/src/components/layout.js b/packages/next/src/components/layout.js index 88dd4fdd9e6..1971f842cbb 100644 --- a/packages/next/src/components/layout.js +++ b/packages/next/src/components/layout.js @@ -1,8 +1,8 @@ import React, { Component } from 'react' import { createVirtualBox } from '@uform/react' import { toArr } from '@uform/utils' -import { Row, Col } from '@alife/next/lib/grid' -import Card from '@alife/next/lib/card' +import { Row, Col } from '@alifd/next/lib/grid' +import Card from '@alifd/next/lib/card' import { FormConsumer, FormItem, FormProvider } from '../form' import styled from 'styled-components' import cls from 'classnames' diff --git a/packages/next/src/fields/array.js b/packages/next/src/fields/array.js index cedd06422ab..65c8fbbb525 100644 --- a/packages/next/src/fields/array.js +++ b/packages/next/src/fields/array.js @@ -1,7 +1,7 @@ import React from 'react' import { registerFormField } from '@uform/react' import { isFn } from '@uform/utils' -import { Button, Icon } from '@alife/next' +import { Button, Icon } from '@alifd/next' import styled from 'styled-components' export const CircleButton = styled.div` diff --git a/packages/next/src/fields/boolean.js b/packages/next/src/fields/boolean.js index 4a0c06b348a..c742488cbbb 100644 --- a/packages/next/src/fields/boolean.js +++ b/packages/next/src/fields/boolean.js @@ -1,6 +1,6 @@ import { connect, registerFormField } from '@uform/react' import { acceptEnum, mapStyledProps } from '../utils' -import { Switch } from '@alife/next' +import { Switch } from '@alifd/next' registerFormField( 'boolean', diff --git a/packages/next/src/fields/checkbox.js b/packages/next/src/fields/checkbox.js index 56f47070be0..bdacbe002d6 100644 --- a/packages/next/src/fields/checkbox.js +++ b/packages/next/src/fields/checkbox.js @@ -1,5 +1,5 @@ import { connect, registerFormField } from '@uform/react' -import { Checkbox } from '@alife/next' +import { Checkbox } from '@alifd/next' import { mapStyledProps, mapTextComponent } from '../utils' const { Group: CheckboxGroup } = Checkbox diff --git a/packages/next/src/fields/date.js b/packages/next/src/fields/date.js index d76ffd58c47..823ea9796ac 100644 --- a/packages/next/src/fields/date.js +++ b/packages/next/src/fields/date.js @@ -1,5 +1,5 @@ import { connect, registerFormField } from '@uform/react' -import { DatePicker } from '@alife/next' +import { DatePicker } from '@alifd/next' import { mapStyledProps, mapTextComponent } from '../utils' const { RangePicker, MonthPicker, YearPicker } = DatePicker diff --git a/packages/next/src/fields/number.js b/packages/next/src/fields/number.js index 1d98672a095..a346a1cf4cc 100644 --- a/packages/next/src/fields/number.js +++ b/packages/next/src/fields/number.js @@ -1,5 +1,5 @@ import { connect, registerFormField } from '@uform/react' -import { NumberPicker } from '@alife/next' +import { NumberPicker } from '@alifd/next' import { acceptEnum, mapStyledProps, mapTextComponent } from '../utils' registerFormField( diff --git a/packages/next/src/fields/password.js b/packages/next/src/fields/password.js index b500d74b25a..bd284faf7c0 100644 --- a/packages/next/src/fields/password.js +++ b/packages/next/src/fields/password.js @@ -1,6 +1,6 @@ import React from 'react' import { connect, registerFormField } from '@uform/react' -import { Input } from '@alife/next' +import { Input } from '@alifd/next' import styled from 'styled-components' var isNum = function(c) { diff --git a/packages/next/src/fields/radio.js b/packages/next/src/fields/radio.js index e6aba783d73..5057f842427 100644 --- a/packages/next/src/fields/radio.js +++ b/packages/next/src/fields/radio.js @@ -1,5 +1,5 @@ import { connect, registerFormField } from '@uform/react' -import { Radio } from '@alife/next' +import { Radio } from '@alifd/next' import { mapStyledProps, mapTextComponent } from '../utils' const { Group: RadioGroup } = Radio diff --git a/packages/next/src/fields/range.js b/packages/next/src/fields/range.js index 2f4699acfe8..e22a7780209 100644 --- a/packages/next/src/fields/range.js +++ b/packages/next/src/fields/range.js @@ -1,5 +1,5 @@ import { connect, registerFormField } from '@uform/react' -import { Range } from '@alife/next' +import { Range } from '@alifd/next' import { mapStyledProps } from '../utils' registerFormField( diff --git a/packages/next/src/fields/rating.js b/packages/next/src/fields/rating.js index dc75767e361..bfc8be1771d 100644 --- a/packages/next/src/fields/rating.js +++ b/packages/next/src/fields/rating.js @@ -1,5 +1,5 @@ import { connect, registerFormField } from '@uform/react' -import { Rating } from '@alife/next' +import { Rating } from '@alifd/next' import { mapStyledProps } from '../utils' registerFormField( diff --git a/packages/next/src/fields/string.js b/packages/next/src/fields/string.js index 88e2d12e826..ab3e0bde5f6 100644 --- a/packages/next/src/fields/string.js +++ b/packages/next/src/fields/string.js @@ -1,5 +1,5 @@ import { connect, registerFormField } from '@uform/react' -import { Input } from '@alife/next' +import { Input } from '@alifd/next' import { acceptEnum, mapStyledProps, mapTextComponent } from '../utils' registerFormField( diff --git a/packages/next/src/fields/table.js b/packages/next/src/fields/table.js index 8c4aa6c2ac6..5b6eeb86f3c 100644 --- a/packages/next/src/fields/table.js +++ b/packages/next/src/fields/table.js @@ -1,7 +1,7 @@ import React, { Component } from 'react' import { registerFormField } from '@uform/react' import { isFn, toArr } from '@uform/utils' -import { Icon } from '@alife/next' +import { Icon } from '@alifd/next' import { ArrayField, CircleButton } from './array' import styled from 'styled-components' diff --git a/packages/next/src/fields/time.js b/packages/next/src/fields/time.js index 54fcbfb7cc7..17e11a5cad0 100644 --- a/packages/next/src/fields/time.js +++ b/packages/next/src/fields/time.js @@ -1,5 +1,5 @@ import { connect, registerFormField } from '@uform/react' -import { TimePicker } from '@alife/next' +import { TimePicker } from '@alifd/next' import { mapStyledProps, mapTextComponent } from '../utils' registerFormField( diff --git a/packages/next/src/fields/transfer.js b/packages/next/src/fields/transfer.js index fd69b8d7f81..006f5473cab 100644 --- a/packages/next/src/fields/transfer.js +++ b/packages/next/src/fields/transfer.js @@ -1,5 +1,5 @@ import { connect, registerFormField } from '@uform/react' -import { Transfer } from '@alife/next' +import { Transfer } from '@alifd/next' import { mapStyledProps } from '../utils' registerFormField( diff --git a/packages/next/src/fields/upload.js b/packages/next/src/fields/upload.js index 032f378d79a..3e1b304be90 100644 --- a/packages/next/src/fields/upload.js +++ b/packages/next/src/fields/upload.js @@ -1,7 +1,7 @@ import React from 'react' import { connect, registerFormField } from '@uform/react' import { toArr, isArr, isEqual, mapStyledProps } from '../utils' -import { Button, Upload } from '@alife/next' +import { Button, Upload } from '@alifd/next' const { Card: UploadCard, Dragger: UploadDragger } = Upload const exts = [ diff --git a/packages/next/src/form.js b/packages/next/src/form.js index 546a756b017..49e725a2035 100644 --- a/packages/next/src/form.js +++ b/packages/next/src/form.js @@ -1,8 +1,8 @@ import React from 'react' import { registerFormWrapper, registerFieldMiddleware } from '@uform/react' import classNames from 'classnames' -import { ConfigProvider, Balloon, Icon } from '@alife/next' -import { Row, Col } from '@alife/next/lib/grid' +import { ConfigProvider, Balloon, Icon } from '@alifd/next' +import { Row, Col } from '@alifd/next/lib/grid' import LOCALE from './locale' import styled from 'styled-components' import { isFn, moveTo } from './utils' diff --git a/packages/next/src/utils.js b/packages/next/src/utils.js index fa961f80580..aecabf6aa7d 100644 --- a/packages/next/src/utils.js +++ b/packages/next/src/utils.js @@ -1,5 +1,5 @@ import React from 'react' -import { Select } from '@alife/next' +import { Select } from '@alifd/next' import styled from 'styled-components' import { isFn } from '@uform/utils' import MoveTo from 'moveto'