Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
feat(dialog/notification): add dialog and notification components (#33)
Browse files Browse the repository at this point in the history
* upgrade eslint

* add basic dialog

* optimize dialog and small tweaks in other components

* add customized icon in dialog

* remove Markdown and use simple md style

* trim code in run renderModel

* add basic notification component

* optimize notification and dialog component

* add lineheight in basic ui-variables.less

* adjust the sequence of navbar items

* add topTips in dox loader

* remove message component

* remove redundant code in dox loader

* support button can be focused

* add removeFocus config in Button

* replace topTips with summary in dox loader

* use focus-trap and autoFocus prop in Button

* rename isAutoClose prop and use destruct assignment

* add destructuring-assignment rule in eslint
  • Loading branch information
Kimi-Gao committed Dec 4, 2018
1 parent e79f032 commit 4cfa535
Show file tree
Hide file tree
Showing 44 changed files with 1,860 additions and 701 deletions.
20 changes: 11 additions & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@
"jest": true
},
"globals": {
__CLIENT__: true,
__SERVER__: true,
__DEVELOPMENT__: true,
__DEVTOOLS__: true,
runtime: true,
jsdom: true,
prefixCls: true
"__CLIENT__": true,
"__SERVER__": true,
"__DEVELOPMENT__": true,
"__DEVTOOLS__": true,
"runtime": true,
"jsdom": true,
"prefixCls": true
},
"parser": "babel-eslint",
"rules": {
"jsx-quotes": ["error", "prefer-double"],
"react/jsx-no-bind": 0,
"react/no-did-update-set-state": 0
"no-unused-expressions": "off",
"react/jsx-no-bind": "off",
"react/no-did-update-set-state": "off",
"react/destructuring-assignment": "error"
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Tooltip.defaultProps = Object.assign(Tooltip.defaultProps || {}, {
})
```

Imperative API modules: [message][message-url], [xhr][xhr-url] also support global config, the components which use url-mode to load data and [Form][form-url] are all dependent on xhr. Please refer to their respective documentation for detailed configuration.
Imperative API modules: [notification][notification-url], [xhr][xhr-url] also support global config, the components which use url-mode to load data and [Form][form-url] are all dependent on xhr. Please refer to their respective documentation for detailed configuration.

> Those APIs will be stateful when global config is set and that's to say the final result is affected by the configuration. So try to configure it at a time and explain it to other developers.
Expand Down Expand Up @@ -128,7 +128,7 @@ MIT © [Kimi Gao](https://github.com/muwenzi)
[license-image]: https://img.shields.io/github/license/G-Explorer/earth-ui.svg?style=flat-square
[zh-CN-url]: https://github.com/G-Explorer/earth-ui/blob/master/README.zh-CN.md
[tooltip-url]: https://ui.muwenzi.com/components/Tooltip
[message-url]: https://ui.muwenzi.com/components/message
[notification-url]: https://ui.muwenzi.com/components/notification
[xhr-url]: https://ui.muwenzi.com/components/xhr
[form-url]: https://ui.muwenzi.com/components/Form
[dev-instructions-url]: https://github.com/G-Explorer/earth-ui/wiki/Local-development
Expand Down
4 changes: 2 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Tooltip.defaultProps = Object.assign(Tooltip.defaultProps || {}, {
})
```

命令式 API 模块:[message][message-url][xhr][xhr-url] 也支持全局配置,涉及 url 方式加载数据的组件以及 [Form][form-url] 均依赖 xhr,详细配置请参考其各自文档。
命令式 API 模块:[notification][notification-url][xhr][xhr-url] 也支持全局配置,涉及 url 方式加载数据的组件以及 [Form][form-url] 均依赖 xhr,详细配置请参考其各自文档。

> 全局配置后,这些 API 会变成有状态的,即最终结果受配置影响,所以尽量一次性配置并向其它开发者说明。
Expand Down Expand Up @@ -128,7 +128,7 @@ MIT © [Kimi Gao](https://github.com/muwenzi)
[license-image]: https://img.shields.io/github/license/G-Explorer/earth-ui.svg?style=flat-square
[en-url]: https://github.com/G-Explorer/earth-ui/blob/master/README.md
[tooltip-url]: https://ui.muwenzi.com/components/Tooltip
[message-url]: https://ui.muwenzi.com/components/message
[notification-url]: https://ui.muwenzi.com/components/notification
[xhr-url]: https://ui.muwenzi.com/components/xhr
[form-url]: https://ui.muwenzi.com/components/Form
[dev-instructions-url]: https://github.com/G-Explorer/earth-ui/wiki/Local-development
Expand Down

0 comments on commit 4cfa535

Please sign in to comment.