@antscorp/antsomi-ui 1.2.2-beta.1 → 1.2.2-beta.2

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.
Files changed (100) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/README.md +78 -78
  3. package/dist/index.js +1 -1
  4. package/dist/main.css +1 -0
  5. package/dist/types/components/atoms/Button/Button.d.ts +1 -1
  6. package/dist/types/components/atoms/Button/Button.stories.d.ts +32 -32
  7. package/dist/types/components/atoms/Button/__tests__/Button.test.d.ts +1 -1
  8. package/dist/types/components/atoms/Button/index.d.ts +10 -10
  9. package/dist/types/components/atoms/Button/test.d.ts +3 -3
  10. package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +1 -1
  11. package/dist/types/components/atoms/Checkbox/Checkbox.stories.d.ts +15 -15
  12. package/dist/types/components/atoms/Checkbox/__tests__/Checkbox.test.d.ts +1 -1
  13. package/dist/types/components/atoms/Checkbox/index.d.ts +1 -1
  14. package/dist/types/components/atoms/Divider/Divider.d.ts +1 -1
  15. package/dist/types/components/atoms/Divider/Divider.stories.d.ts +8 -8
  16. package/dist/types/components/atoms/Divider/index.d.ts +1 -1
  17. package/dist/types/components/atoms/Input/Input.d.ts +7 -7
  18. package/dist/types/components/atoms/Input/Input.stories.d.ts +19 -19
  19. package/dist/types/components/atoms/Input/__tests__/Input.test.d.ts +1 -1
  20. package/dist/types/components/atoms/Input/index.d.ts +1 -1
  21. package/dist/types/components/atoms/InputNumber/InputNumber.d.ts +6 -6
  22. package/dist/types/components/atoms/InputNumber/InputNumber.stories.d.ts +16 -16
  23. package/dist/types/components/atoms/InputNumber/__tests__/InputNumber.test.d.ts +1 -1
  24. package/dist/types/components/atoms/InputNumber/index.d.ts +1 -1
  25. package/dist/types/components/atoms/Radio/Radio.d.ts +1 -1
  26. package/dist/types/components/atoms/Radio/index.d.ts +1 -1
  27. package/dist/types/components/atoms/Space/Space.d.ts +1 -1
  28. package/dist/types/components/atoms/Space/index.d.ts +1 -1
  29. package/dist/types/components/atoms/Tag/Tag.d.ts +1 -1
  30. package/dist/types/components/atoms/Tag/index.d.ts +1 -1
  31. package/dist/types/components/atoms/Tooltip/Tooltip.d.ts +1 -1
  32. package/dist/types/components/atoms/Tooltip/index.d.ts +1 -1
  33. package/dist/types/components/atoms/Typography/Text.d.ts +1 -1
  34. package/dist/types/components/atoms/Typography/index.d.ts +1 -1
  35. package/dist/types/components/atoms/index.d.ts +10 -10
  36. package/dist/types/components/common/ConfigProvider/ConfigProvider.d.ts +10 -10
  37. package/dist/types/components/common/ConfigProvider/GlobalStyle.d.ts +5 -5
  38. package/dist/types/components/common/ConfigProvider/index.d.ts +1 -1
  39. package/dist/types/components/common/index.d.ts +1 -1
  40. package/dist/types/components/icons/CloseIcon.d.ts +3 -0
  41. package/dist/types/components/icons/EventIcon.d.ts +3 -3
  42. package/dist/types/components/icons/GPTIcon.d.ts +1 -0
  43. package/dist/types/components/icons/PlaneIcon.d.ts +1 -0
  44. package/dist/types/components/icons/UserIcon.d.ts +1 -0
  45. package/dist/types/components/icons/WarningIcon.d.ts +1 -0
  46. package/dist/types/components/icons/index.d.ts +6 -1
  47. package/dist/types/components/index.d.ts +4 -4
  48. package/dist/types/components/molecules/Alert/Alert.d.ts +1 -1
  49. package/dist/types/components/molecules/Alert/index.d.ts +1 -1
  50. package/dist/types/components/molecules/Cascader/Cascader.d.ts +1 -1
  51. package/dist/types/components/molecules/Cascader/index.d.ts +1 -1
  52. package/dist/types/components/molecules/ChatBox/ChatBox.d.ts +4 -0
  53. package/dist/types/components/molecules/ChatBox/ChatBox.stories.d.ts +0 -0
  54. package/dist/types/components/molecules/ChatBox/constants.d.ts +9 -0
  55. package/dist/types/components/molecules/ChatBox/index.d.ts +1 -0
  56. package/dist/types/components/molecules/ChatBox/styled.d.ts +8 -0
  57. package/dist/types/components/molecules/ChatBox/types.d.ts +13 -0
  58. package/dist/types/components/molecules/ChatBox/utils.d.ts +0 -0
  59. package/dist/types/components/molecules/CustomComponent/CustomComponent.d.ts +2 -2
  60. package/dist/types/components/molecules/CustomComponent/index.d.ts +1 -1
  61. package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +8 -8
  62. package/dist/types/components/molecules/DatePicker/DatePicker.stories.d.ts +4 -4
  63. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +28 -28
  64. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.stories.d.ts +5 -5
  65. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts +53 -53
  66. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/index.d.ts +3 -3
  67. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/styled.d.ts +7 -7
  68. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +14 -14
  69. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +15 -15
  70. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +15 -15
  71. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.stories.d.ts +9 -9
  72. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/constants.d.ts +4 -4
  73. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/index.d.ts +2 -2
  74. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/types.d.ts +17 -17
  75. package/dist/types/components/molecules/DatePicker/index.d.ts +3 -3
  76. package/dist/types/components/molecules/Dropdown/Dropdown.d.ts +1 -1
  77. package/dist/types/components/molecules/Dropdown/index.d.ts +1 -1
  78. package/dist/types/components/molecules/Modal/Modal.d.ts +1 -1
  79. package/dist/types/components/molecules/Modal/index.d.ts +1 -1
  80. package/dist/types/components/molecules/Select/Select.d.ts +15 -15
  81. package/dist/types/components/molecules/Select/Select.stories.d.ts +28 -28
  82. package/dist/types/components/molecules/Select/Test.d.ts +3 -3
  83. package/dist/types/components/molecules/Select/index.d.ts +2 -2
  84. package/dist/types/components/molecules/Select/styled.d.ts +4 -4
  85. package/dist/types/components/molecules/index.d.ts +9 -8
  86. package/dist/types/components/organism/Table/Table.d.ts +1 -1
  87. package/dist/types/components/organism/Table/index.d.ts +1 -1
  88. package/dist/types/components/organism/index.d.ts +1 -1
  89. package/dist/types/constants/index.d.ts +1 -1
  90. package/dist/types/constants/theme.d.ts +12 -12
  91. package/dist/types/hooks/index.d.ts +2 -2
  92. package/dist/types/index.d.ts +1 -1
  93. package/dist/types/locales/i18n.d.ts +73 -73
  94. package/dist/types/locales/translations.d.ts +37 -37
  95. package/dist/types/locales/types.d.ts +15 -15
  96. package/dist/types/test.d.ts +3 -3
  97. package/dist/types/types/index.d.ts +6 -6
  98. package/dist/types/utils/common.d.ts +8 -8
  99. package/dist/types/utils/handleError.d.ts +2 -2
  100. package/package.json +123 -122
package/CHANGELOG.md ADDED
@@ -0,0 +1,72 @@
1
+ ### Changelog
2
+
3
+ All notable changes to this project will be documented in this file. Dates are displayed in UTC.
4
+
5
+ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
+
7
+ #### [v1.2.2](https://github.com/irisnikita/antsomi-ui/compare/v1.2.1...v1.2.2)
8
+
9
+ - chore(coverage): remove coverage folder [`cf97081`](https://github.com/irisnikita/antsomi-ui/commit/cf970817f0c71fab05161f7661e2c6fe17a33be1)
10
+ - docs(InputNumber.stories.tsx): write component document for InputNumber Component [`6eb027f`](https://github.com/irisnikita/antsomi-ui/commit/6eb027fc126b19f8f1cbd9d79154f01bc660821f)
11
+ - feat(Checkbox): create Checkbox component and write document, unit test [`6f5d5e2`](https://github.com/irisnikita/antsomi-ui/commit/6f5d5e29bc450ee8e4d5bdee4b8cd907a4169a25)
12
+
13
+ #### [v1.2.1](https://github.com/irisnikita/antsomi-ui/compare/v1.2.0...v1.2.1)
14
+
15
+ > 15 April 2023
16
+
17
+ - docs(InputNumber.stories.tsx): add storybook doc for InputNumber component [`c034a27`](https://github.com/irisnikita/antsomi-ui/commit/c034a2747b01fdef33f4e672716391ee1ae8ca3e)
18
+
19
+ #### [v1.2.0](https://github.com/irisnikita/antsomi-ui/compare/v1.2.0-beta.0...v1.2.0)
20
+
21
+ > 14 April 2023
22
+
23
+ #### [v1.2.0-beta.0](https://github.com/irisnikita/antsomi-ui/compare/v1.1.11...v1.2.0-beta.0)
24
+
25
+ > 14 April 2023
26
+
27
+ - chore(jestTest): config jest test for react component [`f84b44d`](https://github.com/irisnikita/antsomi-ui/commit/f84b44d595c8b6d2b023fe473ec31cb71cfedc9d)
28
+ - chore(locales): add translate config for project [`7332eba`](https://github.com/irisnikita/antsomi-ui/commit/7332eba57f8841b57bfdd1dc93653ff30e8a9fca)
29
+
30
+ #### [v1.1.11](https://github.com/irisnikita/antsomi-ui/compare/v1.1.10...v1.1.11)
31
+
32
+ > 9 April 2023
33
+
34
+ - feat(DatePickerAdvanced): add new DatePickerAdvanced component [`2966953`](https://github.com/irisnikita/antsomi-ui/commit/2966953a8b37978784f00759ffc637b74bddd402)
35
+ - style(GlobalStyle): change global style for date picker when hover [`4a31019`](https://github.com/irisnikita/antsomi-ui/commit/4a3101984c322d292824f71e8a85f2a6ec37eb00)
36
+ - feat(DatePicker.tsx): create DatePicker, AdvancePicker, AdvancedRangePicker component [`e62c8fa`](https://github.com/irisnikita/antsomi-ui/commit/e62c8fa7c88a32949f40b988e263d9d76d0d5a93)
37
+
38
+ #### [v1.1.10](https://github.com/irisnikita/antsomi-ui/compare/v1.1.9...v1.1.10)
39
+
40
+ > 31 March 2023
41
+
42
+ - chore: update package version to 1.1.10-beta.6 [`722e80c`](https://github.com/irisnikita/antsomi-ui/commit/722e80cf61fab78aba82c6252a8cb9dc731c8f7c)
43
+
44
+ #### [v1.1.9](https://github.com/irisnikita/antsomi-ui/compare/v1.1.6...v1.1.9)
45
+
46
+ > 29 March 2023
47
+
48
+ #### [v1.1.6](https://github.com/irisnikita/antsomi-ui/compare/v1.1.5...v1.1.6)
49
+
50
+ > 28 March 2023
51
+
52
+ - chore(Divider.stories.tsx): update links text in Vertical story of Divider component [`e3c3a78`](https://github.com/irisnikita/antsomi-ui/commit/e3c3a78ba368e711f981ab4bf5e2b996b0c7c4f9)
53
+
54
+ #### [v1.1.5](https://github.com/irisnikita/antsomi-ui/compare/v1.1.4...v1.1.5)
55
+
56
+ > 28 March 2023
57
+
58
+ - chore(Divider.stories.tsx): update links in Vertical story to have unique text [`ad7d462`](https://github.com/irisnikita/antsomi-ui/commit/ad7d46246d3d5078d8963321875503f9bcc55c62)
59
+
60
+ #### [v1.1.4](https://github.com/irisnikita/antsomi-ui/compare/v1.1.3...v1.1.4)
61
+
62
+ > 28 March 2023
63
+
64
+ - feat(Divider): add text to Vertical story [`d9288eb`](https://github.com/irisnikita/antsomi-ui/commit/d9288ebd1ea4221fcc74f0d7036981321afa1fa1)
65
+
66
+ #### v1.1.3
67
+
68
+ > 28 March 2023
69
+
70
+ - Create CHANGELOG.md [`5210493`](https://github.com/irisnikita/antsomi-ui/commit/5210493564763454f79b6cee9b7f7eb8f7049189)
71
+ - Init antosmi UI [`175bcd4`](https://github.com/irisnikita/antsomi-ui/commit/175bcd4b05dacb70bfa4c463c0ae53591e344673)
72
+ - chore(package): add and config commitlint [`a56d6c8`](https://github.com/irisnikita/antsomi-ui/commit/a56d6c80205dcb7d8a4b30f5e44f2daac832fedf)
package/README.md CHANGED
@@ -1,78 +1,78 @@
1
- <p align="center">
2
- <a href="https://ant.design">
3
- <img width="200" src="https://st-home.antsomi.com/wp-content/uploads/2020/04/Antsomi-CDP-365-logo.png">
4
- </a>
5
- </p>
6
-
7
- <h1 align="center">Antsomi UI</h1>
8
-
9
- <div align="center">
10
-
11
- An enterprise-class UI design language and React UI library.
12
-
13
- [![NPM version][npm-image]][npm-url] [![NPM downloads][download-image]][download-url] [![][bundlephobia-image]][bundlephobia-url]
14
-
15
- [npm-image]: https://img.shields.io/npm/v/@antscorp/antsomi-ui.svg?style=flat-square
16
- [npm-url]: https://www.npmjs.com/package/@antscorp/antsomi-ui
17
- [github-action-image]: https://github.com/ant-design/ant-design/workflows/%E2%9C%85%20test/badge.svg
18
- [github-action-url]: https://github.com/ant-design/ant-design/actions?query=workflow%3A%22%E2%9C%85+test%22
19
- [codecov-image]: https://img.shields.io/codecov/c/github/ant-design/ant-design/master.svg?style=flat-square
20
- [codecov-url]: https://codecov.io/gh/ant-design/ant-design/branch/master
21
- [download-image]: https://img.shields.io/npm/dm/@antscorp/antsomi-ui.svg?style=flat-square
22
- [download-url]: https://npmjs.org/package/antd
23
- [fossa-image]: https://app.fossa.io/api/projects/git%2Bgithub.com%2Fant-design%2Fant-design.svg?type=shield
24
- [fossa-url]: https://app.fossa.io/projects/git%2Bgithub.com%2Fant-design%2Fant-design?ref=badge_shield
25
- [help-wanted-image]: https://flat.badgen.net/github/label-issues/ant-design/ant-design/help%20wanted/open
26
- [help-wanted-url]: https://github.com/ant-design/ant-design/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22
27
- [twitter-image]: https://img.shields.io/twitter/follow/AntDesignUI.svg?label=Ant%20Design
28
- [twitter-url]: https://twitter.com/AntDesignUI
29
- [bundlesize-js-image]: https://img.badgesize.io/https:/unpkg.com/antd/dist/antd.min.js?label=antd.min.js&compression=gzip&style=flat-square
30
- [unpkg-js-url]: https://unpkg.com/browse/antd/dist/antd.min.js
31
- [bundlephobia-image]: https://badgen.net/bundlephobia/minzip/antd?style=flat-square
32
- [bundlephobia-url]: https://bundlephobia.com/package/@antscorp/antsomi-ui
33
- [issues-helper-image]: https://img.shields.io/badge/using-issues--helper-orange?style=flat-square
34
- [issues-helper-url]: https://github.com/actions-cool/issues-helper
35
- [renovate-image]: https://img.shields.io/badge/renovate-enabled-brightgreen.svg?style=flat-square
36
- [renovate-dashboard-url]: https://github.com/ant-design/ant-design/issues/32498
37
- [dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square
38
- [dumi-url]: https://github.com/umijs/dumi
39
-
40
- </div>
41
-
42
- [![](https://st-media-template.antsomi.com/upload/2023/03/22/9d157c08-5f33-4b60-a558-1da9dde42d61.png)](https://antsomi-docs.vercel.app/)
43
-
44
- ## ✨ Features
45
-
46
- - 🌈 Enterprise-class UI designed for web applications.
47
- - 📦 A set of high-quality React components out of the box.
48
- - 🛡 Written in TypeScript with predictable static types.
49
- - ⚙️ Whole package of design resources and development tools.
50
- - 🌍 Internationalization support for dozens of languages.
51
- - 🎨 Powerful theme customization based on CSS-in-JS.
52
-
53
- ## 📦 Install
54
-
55
- ```bash
56
- npm install @antscorp/antsomi-ui
57
- ```
58
-
59
- ```bash
60
- yarn add @antscorp/antsomi-ui
61
- ```
62
-
63
- ## 🔨 Usage
64
-
65
- ```jsx
66
- import React from 'react';
67
- import { Button } from '@antscorp/antsomi-ui';
68
-
69
- const App = () => (
70
- <>
71
- <Button type="primary">Click me</Button>
72
- </>
73
- );
74
- ```
75
-
76
- ### TypeScript
77
-
78
- `@antscorp/antsomi-ui` is written in TypeScript with complete definitions.
1
+ <p align="center">
2
+ <a href="https://ant.design">
3
+ <img width="200" src="https://st-home.antsomi.com/wp-content/uploads/2020/04/Antsomi-CDP-365-logo.png">
4
+ </a>
5
+ </p>
6
+
7
+ <h1 align="center">Antsomi UI</h1>
8
+
9
+ <div align="center">
10
+
11
+ An enterprise-class UI design language and React UI library.
12
+
13
+ [![NPM version][npm-image]][npm-url] [![NPM downloads][download-image]][download-url] [![][bundlephobia-image]][bundlephobia-url]
14
+
15
+ [npm-image]: https://img.shields.io/npm/v/@antscorp/antsomi-ui.svg?style=flat-square
16
+ [npm-url]: https://www.npmjs.com/package/@antscorp/antsomi-ui
17
+ [github-action-image]: https://github.com/ant-design/ant-design/workflows/%E2%9C%85%20test/badge.svg
18
+ [github-action-url]: https://github.com/ant-design/ant-design/actions?query=workflow%3A%22%E2%9C%85+test%22
19
+ [codecov-image]: https://img.shields.io/codecov/c/github/ant-design/ant-design/master.svg?style=flat-square
20
+ [codecov-url]: https://codecov.io/gh/ant-design/ant-design/branch/master
21
+ [download-image]: https://img.shields.io/npm/dm/@antscorp/antsomi-ui.svg?style=flat-square
22
+ [download-url]: https://npmjs.org/package/antd
23
+ [fossa-image]: https://app.fossa.io/api/projects/git%2Bgithub.com%2Fant-design%2Fant-design.svg?type=shield
24
+ [fossa-url]: https://app.fossa.io/projects/git%2Bgithub.com%2Fant-design%2Fant-design?ref=badge_shield
25
+ [help-wanted-image]: https://flat.badgen.net/github/label-issues/ant-design/ant-design/help%20wanted/open
26
+ [help-wanted-url]: https://github.com/ant-design/ant-design/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22
27
+ [twitter-image]: https://img.shields.io/twitter/follow/AntDesignUI.svg?label=Ant%20Design
28
+ [twitter-url]: https://twitter.com/AntDesignUI
29
+ [bundlesize-js-image]: https://img.badgesize.io/https:/unpkg.com/antd/dist/antd.min.js?label=antd.min.js&compression=gzip&style=flat-square
30
+ [unpkg-js-url]: https://unpkg.com/browse/antd/dist/antd.min.js
31
+ [bundlephobia-image]: https://badgen.net/bundlephobia/minzip/antd?style=flat-square
32
+ [bundlephobia-url]: https://bundlephobia.com/package/@antscorp/antsomi-ui
33
+ [issues-helper-image]: https://img.shields.io/badge/using-issues--helper-orange?style=flat-square
34
+ [issues-helper-url]: https://github.com/actions-cool/issues-helper
35
+ [renovate-image]: https://img.shields.io/badge/renovate-enabled-brightgreen.svg?style=flat-square
36
+ [renovate-dashboard-url]: https://github.com/ant-design/ant-design/issues/32498
37
+ [dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square
38
+ [dumi-url]: https://github.com/umijs/dumi
39
+
40
+ </div>
41
+
42
+ [![](https://st-media-template.antsomi.com/upload/2023/03/22/9d157c08-5f33-4b60-a558-1da9dde42d61.png)](https://antsomi-docs.vercel.app/)
43
+
44
+ ## ✨ Features
45
+
46
+ - 🌈 Enterprise-class UI designed for web applications.
47
+ - 📦 A set of high-quality React components out of the box.
48
+ - 🛡 Written in TypeScript with predictable static types.
49
+ - ⚙️ Whole package of design resources and development tools.
50
+ - 🌍 Internationalization support for dozens of languages.
51
+ - 🎨 Powerful theme customization based on CSS-in-JS.
52
+
53
+ ## 📦 Install
54
+
55
+ ```bash
56
+ npm install @antscorp/antsomi-ui
57
+ ```
58
+
59
+ ```bash
60
+ yarn add @antscorp/antsomi-ui
61
+ ```
62
+
63
+ ## 🔨 Usage
64
+
65
+ ```jsx
66
+ import React from 'react';
67
+ import { Button } from '@antscorp/antsomi-ui';
68
+
69
+ const App = () => (
70
+ <>
71
+ <Button type="primary">Click me</Button>
72
+ </>
73
+ );
74
+ ```
75
+
76
+ ### TypeScript
77
+
78
+ `@antscorp/antsomi-ui` is written in TypeScript with complete definitions.