@para-ui/core 3.0.86 → 4.0.0-alpha

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 (263) hide show
  1. package/AutoBox/index.js +18 -19
  2. package/AutoTips/index.js +5 -4
  3. package/Breadcrumbs/index.js +5 -4
  4. package/Button/SplitButton.d.ts +13 -0
  5. package/Button/index.d.ts +1 -1
  6. package/Button/index.js +54 -12
  7. package/ButtonGroup/index.js +6 -5
  8. package/Carousel/index.d.ts +5 -5
  9. package/Carousel/index.js +21 -9
  10. package/Cascader/Cascader.d.ts +99 -0
  11. package/Cascader/OptionList/CacheContent.d.ts +7 -0
  12. package/Cascader/OptionList/Column.d.ts +21 -0
  13. package/Cascader/OptionList/index.d.ts +4 -0
  14. package/Cascader/OptionList/useActive.d.ts +6 -0
  15. package/Cascader/context.d.ts +23 -0
  16. package/Cascader/hooks/useDisplayValues.d.ts +10 -0
  17. package/Cascader/hooks/useEntities.d.ts +10 -0
  18. package/Cascader/hooks/useMissingValues.d.ts +3 -0
  19. package/Cascader/index.d.ts +3 -58
  20. package/Cascader/index.js +28 -177
  21. package/Cascader/utils/commonUtil.d.ts +18 -0
  22. package/Cascader/utils/treeUtil.d.ts +55 -0
  23. package/Checkbox/index.d.ts +7 -0
  24. package/Checkbox/index.js +50 -29
  25. package/CheckboxGroup/index.d.ts +3 -1
  26. package/CheckboxGroup/index.js +48 -18
  27. package/Collapse/index.js +2 -2
  28. package/Collapse/motion.d.ts +0 -2
  29. package/CollapseBox/index.js +3 -3
  30. package/CollapseLayout/index.d.ts +5 -0
  31. package/CollapseLayout/index.js +144 -22
  32. package/ColorPicker/chromePicker/index.d.ts +9 -0
  33. package/ColorPicker/compactPicker/index.d.ts +9 -0
  34. package/ColorPicker/config.d.ts +5 -0
  35. package/ColorPicker/index.d.ts +4 -1
  36. package/ColorPicker/index.js +7 -3
  37. package/ColorPicker/sketchPicker/index.d.ts +11 -0
  38. package/ColorPicker/swatchesPicker/index.d.ts +9 -0
  39. package/ComboSelect/index.js +14 -12
  40. package/Container/index.js +2 -2
  41. package/CopyText/index.d.ts +33 -0
  42. package/CopyText/index.js +180 -0
  43. package/DatePicker/generatePicker/generateRangePicker.d.ts +9 -2
  44. package/DatePicker/generatePicker/generateSinglePicker.d.ts +8 -8
  45. package/DatePicker/generatePicker/index.d.ts +32 -26
  46. package/DatePicker/generatePicker/interface.d.ts +12 -0
  47. package/DatePicker/index.d.ts +12 -8
  48. package/DatePicker/index.js +367 -454
  49. package/DatePicker/util.d.ts +40 -4
  50. package/Desktop/index.d.ts +16 -3
  51. package/Desktop/index.js +177 -68
  52. package/Desktop/lang/en_US.d.ts +6 -0
  53. package/Desktop/lang/index.d.ts +13 -0
  54. package/Desktop/lang/zh_CN.d.ts +6 -0
  55. package/DragVerify/index.js +9 -100
  56. package/Drawer/index.js +8 -8
  57. package/Drawer/interface.d.ts +2 -2
  58. package/Dropdown/index.js +2 -2
  59. package/DynamicMultiBox/index.js +57 -41
  60. package/DynamicMultiBox/interface.d.ts +4 -4
  61. package/Empty/index.js +2 -2
  62. package/Form/index.d.ts +20 -26
  63. package/Form/index.js +48 -69
  64. package/FormItem/index.js +15 -15
  65. package/FunctionModal/index.js +11 -9
  66. package/GlobalContext/constant.d.ts +1 -1
  67. package/GlobalContext/index.js +2 -2
  68. package/Help/index.js +4 -3
  69. package/HelperText/index.js +2 -2
  70. package/InputLang/index.d.ts +5 -0
  71. package/InputLang/index.js +35 -29
  72. package/InputNumber/index.d.ts +5 -0
  73. package/InputNumber/index.js +95 -80
  74. package/Label/index.js +4 -3
  75. package/Loading/index.js +2 -2
  76. package/Menu/index.js +114 -39
  77. package/Menu/interface.d.ts +8 -0
  78. package/Message/index.d.ts +4 -4
  79. package/Message/index.js +13 -11
  80. package/Modal/index.js +29 -15
  81. package/MultiBox/index.js +9 -8
  82. package/Notification/index.d.ts +9 -1
  83. package/Notification/index.js +29 -15
  84. package/OperateBtn/index.js +28 -11
  85. package/PageHeader/index.js +270 -74
  86. package/PageHeader/interface.d.ts +17 -0
  87. package/Pagination/index.d.ts +4 -3
  88. package/Pagination/index.js +117 -95
  89. package/Pagination/lang/en_US.d.ts +3 -2
  90. package/Pagination/lang/index.d.ts +6 -4
  91. package/Pagination/lang/zh_CN.d.ts +3 -2
  92. package/ParauiProvider/index.js +4 -4
  93. package/PasswordRules/index.js +5 -5
  94. package/PopConfirm/index.d.ts +15 -5
  95. package/PopConfirm/index.js +62 -16
  96. package/Popover/index.js +4 -3
  97. package/Progress/index.js +10 -9
  98. package/Querying/index.js +7 -7
  99. package/README.md +40 -1120
  100. package/Radio/index.d.ts +7 -0
  101. package/Radio/index.js +49 -27
  102. package/RadioGroup/index.d.ts +3 -1
  103. package/RadioGroup/index.js +48 -21
  104. package/Search/index.d.ts +3 -15
  105. package/Search/index.js +21 -83
  106. package/Select/index.d.ts +7 -2
  107. package/Select/index.js +114 -91
  108. package/Select/lang/en_US.d.ts +1 -1
  109. package/Select/lang/index.d.ts +2 -2
  110. package/Select/lang/zh_CN.d.ts +1 -1
  111. package/SelectInput/index.js +8 -7
  112. package/Selector/index.js +30 -22
  113. package/SelectorPicker/index.d.ts +5 -0
  114. package/SelectorPicker/index.js +47 -32
  115. package/SelectorPicker/lang/en_US.d.ts +1 -0
  116. package/SelectorPicker/lang/index.d.ts +2 -0
  117. package/SelectorPicker/lang/zh_CN.d.ts +1 -0
  118. package/SingleBox/index.js +8 -7
  119. package/Slider/index.js +5 -5
  120. package/Status/index.d.ts +6 -5
  121. package/Status/index.js +27 -4
  122. package/Stepper/index.d.ts +9 -10
  123. package/Stepper/index.js +69 -29
  124. package/Styles/index.scss +4 -0
  125. package/Styles/scrollbar.scss +24 -24
  126. package/Styles/theme.scss +104 -57
  127. package/Switch/index.d.ts +34 -14
  128. package/Switch/index.js +97 -30
  129. package/Table/index.js +33 -27
  130. package/Table/interface.d.ts +3 -1
  131. package/Table/tableHeadInterface.d.ts +1 -1
  132. package/Table/tablePaginationInterface.d.ts +5 -5
  133. package/Tabs/index.d.ts +11 -1
  134. package/Tabs/index.js +49 -16
  135. package/Tag/TagGroup.d.ts +11 -7
  136. package/Tag/index.d.ts +22 -7
  137. package/Tag/index.js +1382 -53
  138. package/TextEditor/index.js +4 -3
  139. package/TextField/index.d.ts +5 -0
  140. package/TextField/index.js +50 -32
  141. package/TimePicker/index.d.ts +5 -0
  142. package/TimePicker/index.js +39 -23
  143. package/Timeline/TimelineItem.d.ts +1 -1
  144. package/Timeline/index.d.ts +5 -5
  145. package/Timeline/index.js +21 -18
  146. package/Title/index.d.ts +15 -3
  147. package/Title/index.js +95 -29
  148. package/ToggleButton/ToggleButtonGroup.d.ts +1 -0
  149. package/ToggleButton/index.d.ts +4 -0
  150. package/ToggleButton/index.js +14 -52
  151. package/Tooltip/index.js +28 -34
  152. package/Tooltip/interface.d.ts +4 -10
  153. package/Tooltip/utils.d.ts +1 -3
  154. package/Transfer/index.d.ts +3 -3
  155. package/Transfer/index.js +72 -68
  156. package/Tree/Tree.d.ts +2 -2
  157. package/Tree/index.js +10 -9
  158. package/Tree/utils/treeUtil.d.ts +0 -7
  159. package/Upload/index.js +16 -14
  160. package/_verture/{constant-66aa48a1.js → constant-0d9802f7.js} +1 -1
  161. package/_verture/{defineProperty-62acccfc.js → defineProperty-1d116156.js} +1 -1
  162. package/_verture/index-5c77417d.js +150 -0
  163. package/_verture/index-68db2bc3.js +10530 -0
  164. package/_verture/{index-9738004e.js → index-7ec72724.js} +44 -38
  165. package/_verture/index-d63bd287.js +327 -0
  166. package/_verture/{index-fa8a0124.js → index-e6f85fd5.js} +7 -8
  167. package/_verture/{index-77f9e0fb.js → index-e9007d6a.js} +6 -6
  168. package/_verture/{intl-4a9f1b44.js → intl-5c1ec055.js} +1 -1
  169. package/_verture/{modalContext-20780c9a.js → modalContext-c12ca3e8.js} +3 -3
  170. package/_verture/slicedToArray-a8206399.js +43 -0
  171. package/_verture/{toConsumableArray-81040c9e.js → toConsumableArray-8f4c9589.js} +1 -1
  172. package/_verture/typeof-adeedc13.js +11 -0
  173. package/_verture/typeof-b240b062.js +16 -0
  174. package/_verture/{utils-c9b9a157.js → utils-f0e81540.js} +8 -8
  175. package/index.d.ts +2 -2
  176. package/index.js +32 -27
  177. package/locale/en-US.d.ts +10 -6
  178. package/locale/index.d.ts +20 -12
  179. package/locale/index.js +33 -25
  180. package/locale/zh-CN.d.ts +10 -6
  181. package/package.json +25 -11
  182. package/umd/AutoBox.js +20 -21
  183. package/umd/AutoTips.js +31 -4
  184. package/umd/Breadcrumbs.js +7 -7
  185. package/umd/Button.js +7 -8
  186. package/umd/ButtonGroup.js +7 -8
  187. package/umd/Carousel.js +29 -1
  188. package/umd/Cascader.js +20 -21
  189. package/umd/Checkbox.js +7 -7
  190. package/umd/CheckboxGroup.js +7 -7
  191. package/umd/Collapse.js +19 -21
  192. package/umd/CollapseBox.js +1 -1
  193. package/umd/CollapseLayout.js +4 -4
  194. package/umd/ColorPicker.js +1 -1
  195. package/umd/ComboSelect.js +7 -7
  196. package/umd/Container.js +1 -1
  197. package/umd/CopyText.js +42 -0
  198. package/umd/DatePicker.js +7 -7
  199. package/umd/Desktop.js +7 -7
  200. package/umd/DragVerify.js +4 -4
  201. package/umd/Drawer.js +7 -8
  202. package/umd/Dropdown.js +3 -3
  203. package/umd/DynamicMultiBox.js +7 -7
  204. package/umd/Empty.js +1 -1
  205. package/umd/Form.js +6 -6
  206. package/umd/FormItem.js +6 -6
  207. package/umd/FunctionModal.js +7 -7
  208. package/umd/Help.js +7 -7
  209. package/umd/HelperText.js +1 -1
  210. package/umd/InputLang.js +7 -7
  211. package/umd/InputNumber.js +7 -7
  212. package/umd/Label.js +7 -7
  213. package/umd/Loading.js +4 -5
  214. package/umd/Menu.js +4 -4
  215. package/umd/Message.js +3 -4
  216. package/umd/Modal.js +7 -7
  217. package/umd/MultiBox.js +7 -7
  218. package/umd/Notification.js +5 -6
  219. package/umd/OperateBtn.js +7 -7
  220. package/umd/PageHeader.js +7 -7
  221. package/umd/Pagination.js +7 -7
  222. package/umd/ParauiProvider.js +1 -1
  223. package/umd/PasswordRules.js +3 -4
  224. package/umd/PopConfirm.js +7 -7
  225. package/umd/Popover.js +31 -4
  226. package/umd/Progress.js +4 -5
  227. package/umd/Querying.js +1 -1
  228. package/umd/Radio.js +7 -7
  229. package/umd/RadioGroup.js +7 -7
  230. package/umd/Search.js +7 -7
  231. package/umd/Select.js +7 -7
  232. package/umd/SelectInput.js +7 -7
  233. package/umd/Selector.js +7 -7
  234. package/umd/SelectorPicker.js +7 -7
  235. package/umd/SingleBox.js +7 -7
  236. package/umd/Slider.js +3 -3
  237. package/umd/Status.js +29 -1
  238. package/umd/Stepper.js +20 -20
  239. package/umd/Switch.js +7 -7
  240. package/umd/Table.js +7 -7
  241. package/umd/Tabs.js +7 -7
  242. package/umd/Tag.js +7 -8
  243. package/umd/TextEditor.js +19 -19
  244. package/umd/TextField.js +7 -7
  245. package/umd/TimePicker.js +7 -7
  246. package/umd/Timeline.js +1 -1
  247. package/umd/Title.js +42 -1
  248. package/umd/ToggleButton.js +7 -8
  249. package/umd/Tooltip.js +31 -4
  250. package/umd/Transfer.js +8 -8
  251. package/umd/Tree.js +7 -7
  252. package/umd/Upload.js +8 -8
  253. package/umd/locale.js +1 -1
  254. package/Cascader/lang/en_US.d.ts +0 -4
  255. package/Cascader/lang/index.d.ts +0 -9
  256. package/Cascader/lang/zh_CN.d.ts +0 -4
  257. package/Split/index.d.ts +0 -7
  258. package/Split/index.js +0 -123
  259. package/_verture/index-a369ca3f.js +0 -4
  260. package/_verture/index-beef914f.js +0 -340
  261. package/_verture/slicedToArray-76060636.js +0 -43
  262. package/_verture/typeof-498dd2b1.js +0 -11
  263. package/umd/Split.js +0 -1
package/Modal/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
1
+ import { _ as _defineProperty } from '../_verture/defineProperty-1d116156.js';
2
2
  import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
4
  import React__default from 'react';
@@ -9,16 +9,17 @@ import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js'
9
9
  import { d as defaultModalLocale } from '../_verture/index-e2881a53.js';
10
10
  import ReactDOM from 'react-dom';
11
11
  import clsx from 'clsx';
12
- import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
12
+ import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
13
+ import AutoTips from '../AutoTips/index.js';
13
14
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
14
15
  import CompleteIcon from '@para-ui/icons/CheckCircleF';
15
- import CloseCircleFilled from '@para-ui/icons/CloseCircleF';
16
+ import CloseCircleF from '@para-ui/icons/CloseCircleF';
16
17
  import InfoOutlined from '@para-ui/icons/WarningCircle';
17
18
  import WarningCircleF from '@para-ui/icons/WarningCircleF';
18
19
  import { UUID } from '@paraview/lib';
19
20
  import { getConfirmLocale } from '@para-ui/core/GlobalContext';
20
- import '../_verture/typeof-498dd2b1.js';
21
- import '../_verture/slicedToArray-76060636.js';
21
+ import '../_verture/typeof-adeedc13.js';
22
+ import '../_verture/slicedToArray-a8206399.js';
22
23
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
23
24
  import '@para-ui/icons/LoadingF';
24
25
  import '@para-ui/icons/Forbid';
@@ -26,12 +27,12 @@ import '../Tooltip/index.js';
26
27
  import 'rc-tooltip';
27
28
  import 'rc-tooltip/lib/placements';
28
29
  import '@para-ui/icons/Down';
29
- import '../_verture/index-77f9e0fb.js';
30
+ import '../_verture/index-e9007d6a.js';
30
31
  import 'rc-dropdown';
31
32
  import '../_verture/usePopupContainer-87febeb9.js';
32
33
  import 'dayjs';
33
34
 
34
- var css_248z$1 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/2 下午7:00\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-confirm.paraui-v3-modal .paraui-v3-modal-body {\n padding: 0;\n}\n.paraui-v3-confirm .confirm-wrapper {\n width: 416px;\n outline: none;\n}\n.paraui-v3-confirm .confirm-content {\n position: relative;\n padding: 32px 32px 24px;\n}\n.paraui-v3-confirm .confirm-content-close {\n position: absolute;\n right: 16px;\n top: 16px;\n border: none;\n}\n.paraui-v3-confirm .confirm-content-close svg {\n font-size: 18px;\n}\n.paraui-v3-confirm .confirm-content-icon {\n float: left;\n margin-top: 3px;\n color: rgb(255, 161, 80);\n}\n.paraui-v3-confirm .confirm-content-icon svg {\n color: inherit;\n font-size: 16px;\n}\n.paraui-v3-confirm .confirm-content-icon--warn, .paraui-v3-confirm .confirm-content-icon-warning {\n color: rgb(255, 161, 80);\n}\n.paraui-v3-confirm .confirm-content-icon--error {\n color: rgb(235, 96, 84);\n}\n.paraui-v3-confirm .confirm-content-icon--success {\n color: rgb(83, 195, 27);\n}\n.paraui-v3-confirm .confirm-content-icon--info {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-confirm .confirm-content-body {\n margin: 0 16px 0 30px;\n color: rgb(46, 55, 67);\n font-size: 14px;\n}\n.paraui-v3-confirm .confirm-content-body .confirm-body-title {\n display: block;\n margin-bottom: 8px;\n font-weight: 700;\n font-size: 14px;\n}\n.paraui-v3-confirm .confirm-content-actions {\n margin-top: 24px;\n text-align: right;\n}\n.paraui-v3-confirm .confirm-content-actions > button + button {\n margin-left: 16px;\n}";
35
+ var css_248z$1 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/2 下午7:00\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-confirm.paraui-v4-modal .paraui-v4-modal-body {\n padding: 0;\n}\n.paraui-v4-confirm .confirm-wrapper {\n width: 416px;\n outline: none;\n}\n.paraui-v4-confirm .confirm-content {\n position: relative;\n padding: 32px 32px 24px;\n}\n.paraui-v4-confirm .confirm-content-close {\n position: absolute;\n right: 16px;\n top: 16px;\n border: none;\n}\n.paraui-v4-confirm .confirm-content-close svg {\n font-size: 18px;\n}\n.paraui-v4-confirm .confirm-content-icon {\n float: left;\n margin-top: 3px;\n color: rgb(255, 147, 38);\n}\n.paraui-v4-confirm .confirm-content-icon svg {\n color: inherit;\n font-size: 14px;\n}\n.paraui-v4-confirm .confirm-content-icon--warn, .paraui-v4-confirm .confirm-content-icon-warning {\n color: rgb(255, 147, 38);\n}\n.paraui-v4-confirm .confirm-content-icon--error {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-confirm .confirm-content-icon--success {\n color: rgb(19, 191, 76);\n}\n.paraui-v4-confirm .confirm-content-icon--info {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-confirm .confirm-content-body {\n margin: 0 16px 0 30px;\n color: rgba(29, 33, 38, 0.9);\n font-size: 14px;\n}\n.paraui-v4-confirm .confirm-content-body .confirm-body-title {\n display: block;\n margin-bottom: 8px;\n font-weight: 700;\n font-size: 500;\n}\n.paraui-v4-confirm .confirm-content-actions {\n margin-top: 24px;\n text-align: right;\n}\n.paraui-v4-confirm .confirm-content-actions > button + button {\n margin-left: 16px;\n}";
35
36
  styleInject(css_248z$1);
36
37
 
37
38
  //图标
@@ -39,7 +40,7 @@ var iconMap = {
39
40
  "success": jsx(CompleteIcon, {}),
40
41
  "warn": jsx(WarningCircleF, {}),
41
42
  "warning": jsx(WarningCircleF, {}),
42
- "error": jsx(CloseCircleFilled, {}),
43
+ "error": jsx(CloseCircleF, {}),
43
44
  "info": jsx(InfoOutlined, {})
44
45
  };
45
46
  //confirm modal
@@ -226,7 +227,7 @@ var Confirm = {
226
227
  destroyAll: destroyAllConfirm
227
228
  };
228
229
 
229
- var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/6/13 下午6:54\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-modal {\n color: rgb(46, 55, 67);\n font-size: 14px;\n line-height: 1.5715;\n pointer-events: none;\n position: relative;\n top: 100px;\n width: auto;\n max-width: calc(100vw - 32px);\n margin: 0 auto;\n padding-bottom: 24px;\n}\n.paraui-v3-modal.paraui-v3-modal-sm .paraui-v3-modal-content {\n width: 430px;\n max-height: 250px;\n}\n.paraui-v3-modal.paraui-v3-modal-md .paraui-v3-modal-content {\n width: 486px;\n max-height: 610px;\n}\n.paraui-v3-modal.paraui-v3-modal-lg .paraui-v3-modal-content {\n width: 948px;\n max-height: 610px;\n}\n.paraui-v3-modal.paraui-v3-modal-fullscreen {\n max-width: 100%;\n width: 100%;\n height: 100%;\n}\n.paraui-v3-modal.paraui-v3-modal-zoom-enter, .paraui-v3-modal.paraui-v3-modal-zoom-appear {\n transform: none;\n opacity: 0;\n animation-duration: 0.3s;\n user-select: none;\n}\n.paraui-v3-modal-mask {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1500;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n}\n.paraui-v3-modal-mask-hidden {\n display: none;\n}\n.paraui-v3-modal-wrap {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: auto;\n outline: 0;\n z-index: 1500;\n -webkit-overflow-scrolling: touch;\n}\n.paraui-v3-modal .paraui-v3-modal-content {\n display: flex;\n height: 100%;\n flex-direction: column;\n position: relative;\n border-radius: 4px;\n background-color: rgb(255, 255, 255);\n box-shadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.4);\n pointer-events: auto;\n overflow-y: auto;\n}\n.paraui-v3-modal .paraui-v3-modal-title {\n position: relative;\n height: 44px;\n padding: 12px 24px;\n font-size: 14px;\n color: rgb(46, 55, 67);\n font-weight: 700;\n line-height: 20px;\n border-bottom: 1px solid rgba(171, 176, 185, 0.2);\n overflow-wrap: break-word;\n}\n.paraui-v3-modal .paraui-v3-modal-title .paraui-v3-modal-close {\n position: absolute;\n top: 8px;\n right: 14px;\n z-index: 10;\n border: 0;\n}\n.paraui-v3-modal .paraui-v3-modal-title .paraui-v3-modal-close .paraui-v3-modal-close-icon {\n font-size: 20px;\n}\n.paraui-v3-modal .paraui-v3-modal-body {\n flex: auto;\n padding: 16px 24px;\n overflow-y: auto;\n overflow-wrap: break-word;\n}\n.paraui-v3-modal .paraui-v3-modal-footer {\n padding: 8px 24px 24px;\n text-align: right;\n}\n.paraui-v3-modal .paraui-v3-modal-footer > button + button {\n margin-left: 16px;\n}\n.paraui-v3-modal-open {\n overflow: hidden;\n}\n.paraui-v3-modal-centered {\n text-align: center;\n}\n.paraui-v3-modal-centered::before {\n display: inline-block;\n width: 0;\n height: 100%;\n vertical-align: middle;\n content: \"\";\n}\n.paraui-v3-modal-centered .paraui-v3-modal {\n top: 0;\n display: inline-block;\n padding-bottom: 0;\n text-align: left;\n vertical-align: middle;\n}\n@media (max-width: 767px) {\n .paraui-v3-modal .paraui-v3-modal {\n max-width: calc(100vw - 16px);\n margin: 8px auto;\n }\n .paraui-v3-modal .paraui-v3-modal-centered .paraui-v3-modal {\n flex: 1;\n }\n}\n\n.paraui-v3-modal-zoom-enter,\n.paraui-v3-modal-zoom-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n\n.paraui-v3-modal-zoom-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.paraui-v3-modal-zoom-enter.paraui-v3-modal-zoom-enter-active,\n.paraui-v3-modal-zoom-appear.paraui-v3-modal-zoom-appear-active {\n animation-name: paraui-v3ModalZoomIn;\n animation-play-state: running;\n}\n\n.paraui-v3-modal-zoom-leave.paraui-v3-modal-zoom-leave-active {\n animation-name: paraui-v3ModalZoomOut;\n animation-play-state: running;\n pointer-events: none;\n}\n\n.paraui-v3-modal-zoom-enter-prepare,\n.paraui-v3-modal-zoom-appear-prepare {\n transform: none;\n}\n\n.paraui-v3-modal-zoom-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n\n.paraui-v3-modal-fade-enter,\n.paraui-v3-modal-fade-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.paraui-v3-modal-fade-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.paraui-v3-modal-fade-enter.paraui-v3-modal-fade-enter-active,\n.paraui-v3-modal-fade-appear.paraui-v3-modal-fade-appear-active {\n animation-name: paraui-v3ModalFadeIn;\n animation-play-state: running;\n}\n\n.paraui-v3-modal-fade-leave.paraui-v3-modal-fade-leave-active {\n animation-name: paraui-v3ModalFadeOut;\n animation-play-state: running;\n pointer-events: none;\n}\n\n.paraui-v3-modal-fade-enter,\n.paraui-v3-modal-fade-appear {\n opacity: 0;\n animation-timing-function: linear;\n}\n\n.paraui-v3-modal-fade-leave {\n animation-timing-function: linear;\n}\n\n@keyframes paraui-v3ModalZoomIn {\n 0% {\n transform: scale(0.2);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n@keyframes paraui-v3ModalZoomOut {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.2);\n opacity: 0;\n }\n}\n@keyframes paraui-v3ModalFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes paraui-v3ModalFadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}";
230
+ var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/6/13 下午6:54\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-modal-close {\n color: rgb(92, 101, 115);\n}\n\n.paraui-v4-modal {\n color: rgba(29, 33, 38, 0.9);\n font-size: 14px;\n line-height: 1.5715;\n pointer-events: none;\n position: relative;\n top: 100px;\n width: auto;\n max-width: calc(100vw - 32px);\n margin: 0 auto;\n padding-bottom: 24px;\n}\n.paraui-v4-modal.paraui-v4-modal-sm .paraui-v4-modal-content {\n width: 430px;\n max-height: 250px;\n}\n.paraui-v4-modal.paraui-v4-modal-md .paraui-v4-modal-content {\n width: 486px;\n max-height: 610px;\n}\n.paraui-v4-modal.paraui-v4-modal-lg .paraui-v4-modal-content {\n width: 948px;\n max-height: 610px;\n}\n.paraui-v4-modal.paraui-v4-modal-fullscreen {\n max-width: 100%;\n width: 100%;\n height: 100%;\n}\n.paraui-v4-modal.paraui-v4-modal-zoom-enter, .paraui-v4-modal.paraui-v4-modal-zoom-appear {\n transform: none;\n opacity: 0;\n animation-duration: 0.3s;\n user-select: none;\n}\n.paraui-v4-modal-mask {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1500;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n}\n.paraui-v4-modal-mask-hidden {\n display: none;\n}\n.paraui-v4-modal-wrap {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: auto;\n outline: 0;\n z-index: 1500;\n -webkit-overflow-scrolling: touch;\n}\n.paraui-v4-modal .paraui-v4-modal-content {\n display: flex;\n height: 100%;\n flex-direction: column;\n position: relative;\n border-radius: 4px;\n background-color: white;\n pointer-events: auto;\n overflow-y: auto;\n}\n.paraui-v4-modal.paraui-v4-modal-without-mask .paraui-v4-modal-content {\n box-shadow: 0 2px 8px 0 rgb(234, 236, 241);\n}\n.paraui-v4-modal .paraui-v4-modal-title {\n position: relative;\n height: 50px;\n padding: 15px 20px;\n font-size: 14px;\n color: rgb(29, 33, 38);\n font-weight: 700;\n line-height: 20px;\n overflow-wrap: break-word;\n}\n.paraui-v4-modal .paraui-v4-modal-title .paraui-v4-modal-close {\n position: absolute;\n top: 11px;\n right: 15px;\n z-index: 10;\n border: 0;\n}\n.paraui-v4-modal .paraui-v4-modal-title .paraui-v4-modal-close .paraui-v4-modal-close-icon {\n font-size: 18px;\n}\n.paraui-v4-modal .paraui-v4-modal-title .paraui-v4-modal-title-text {\n width: calc(100% - 28px);\n}\n.paraui-v4-modal .paraui-v4-modal-body {\n flex: auto;\n padding: 0 20px;\n overflow-y: auto;\n overflow-wrap: break-word;\n}\n.paraui-v4-modal .paraui-v4-modal-footer {\n height: 72px;\n padding: 0 20px;\n text-align: right;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n}\n.paraui-v4-modal .paraui-v4-modal-footer > button + button {\n margin-left: 16px;\n}\n.paraui-v4-modal-open {\n overflow: hidden;\n}\n.paraui-v4-modal-centered {\n text-align: center;\n}\n.paraui-v4-modal-centered::before {\n display: inline-block;\n width: 0;\n height: 100%;\n vertical-align: middle;\n content: \"\";\n}\n.paraui-v4-modal-centered .paraui-v4-modal {\n top: 0;\n display: inline-block;\n padding-bottom: 0;\n text-align: left;\n vertical-align: middle;\n}\n@media (max-width: 767px) {\n .paraui-v4-modal .paraui-v4-modal {\n max-width: calc(100vw - 16px);\n margin: 8px auto;\n }\n .paraui-v4-modal .paraui-v4-modal-centered .paraui-v4-modal {\n flex: 1;\n }\n}\n\n.paraui-v4-modal-zoom-enter,\n.paraui-v4-modal-zoom-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n transform: scale(0);\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n}\n\n.paraui-v4-modal-zoom-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.paraui-v4-modal-zoom-enter.paraui-v4-modal-zoom-enter-active,\n.paraui-v4-modal-zoom-appear.paraui-v4-modal-zoom-appear-active {\n animation-name: paraui-v4ModalZoomIn;\n animation-play-state: running;\n}\n\n.paraui-v4-modal-zoom-leave.paraui-v4-modal-zoom-leave-active {\n animation-name: paraui-v4ModalZoomOut;\n animation-play-state: running;\n pointer-events: none;\n}\n\n.paraui-v4-modal-zoom-enter-prepare,\n.paraui-v4-modal-zoom-appear-prepare {\n transform: none;\n}\n\n.paraui-v4-modal-zoom-leave {\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n\n.paraui-v4-modal-fade-enter,\n.paraui-v4-modal-fade-appear {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.paraui-v4-modal-fade-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n\n.paraui-v4-modal-fade-enter.paraui-v4-modal-fade-enter-active,\n.paraui-v4-modal-fade-appear.paraui-v4-modal-fade-appear-active {\n animation-name: paraui-v4ModalFadeIn;\n animation-play-state: running;\n}\n\n.paraui-v4-modal-fade-leave.paraui-v4-modal-fade-leave-active {\n animation-name: paraui-v4ModalFadeOut;\n animation-play-state: running;\n pointer-events: none;\n}\n\n.paraui-v4-modal-fade-enter,\n.paraui-v4-modal-fade-appear {\n opacity: 0;\n animation-timing-function: linear;\n}\n\n.paraui-v4-modal-fade-leave {\n animation-timing-function: linear;\n}\n\n@keyframes paraui-v4ModalZoomIn {\n 0% {\n transform: scale(0.2);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n@keyframes paraui-v4ModalZoomOut {\n 0% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.2);\n opacity: 0;\n }\n}\n@keyframes paraui-v4ModalFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes paraui-v4ModalFadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}";
230
231
  styleInject(css_248z);
231
232
 
232
233
  //鼠标位置内部使用
@@ -284,7 +285,9 @@ var Modal = function Modal(props) {
284
285
  children = props.children,
285
286
  _props$closable = props.closable,
286
287
  closable = _props$closable === void 0 ? true : _props$closable,
287
- restProps = __rest(props, ["open", "visible", "closeIcon", "centered", "focusTriggerAfterClose", "title", "footer", "showActions", "actions", "header", "hideHeader", "showCancel", "maskClosable", "disableBackdropClick", "keyboard", "disableEscapeKeyDown", "fullScreen", "customizeSize", "style", "bodyStyle", "contentWidth", "contentHeight", "contentStyle", "size", "children", "closable"]);
288
+ _props$mask = props.mask,
289
+ mask = _props$mask === void 0 ? true : _props$mask,
290
+ restProps = __rest(props, ["open", "visible", "closeIcon", "centered", "focusTriggerAfterClose", "title", "footer", "showActions", "actions", "header", "hideHeader", "showCancel", "maskClosable", "disableBackdropClick", "keyboard", "disableEscapeKeyDown", "fullScreen", "customizeSize", "style", "bodyStyle", "contentWidth", "contentHeight", "contentStyle", "size", "children", "closable", "mask"]);
288
291
  var isFullScreen = fullScreen || size === 'fullScreen'; //是否全屏
289
292
  var intl = useFormatMessage('Modal', defaultModalLocale);
290
293
  var prefixCls = "".concat($prefixCls, "-modal");
@@ -311,6 +314,10 @@ var Modal = function Modal(props) {
311
314
  if (isFullScreen) return sizeMap['fullScreen'];
312
315
  return sizeMap[size];
313
316
  };
317
+ var getModalCls = function getModalCls() {
318
+ if (mask) return "".concat(prefixCls, "-with-mask");
319
+ return "".concat(prefixCls, "-without-mask");
320
+ };
314
321
  //自定义样式
315
322
  var getCStyle = function getCStyle() {
316
323
  return Object.assign(Object.assign({}, customizeSize), style);
@@ -319,7 +326,9 @@ var Modal = function Modal(props) {
319
326
  var getContentStyle = function getContentStyle() {
320
327
  return Object.assign(Object.assign(Object.assign({}, bodyStyle), {
321
328
  width: contentWidth,
322
- height: contentHeight
329
+ height: contentHeight,
330
+ maxHeight: 478,
331
+ minHeight: 118
323
332
  }), contentStyle);
324
333
  };
325
334
  //header
@@ -338,7 +347,11 @@ var Modal = function Modal(props) {
338
347
  })
339
348
  }));
340
349
  return jsxs(Fragment, {
341
- children: [title, closeNode]
350
+ children: [jsx(AutoTips, Object.assign({
351
+ className: "".concat(prefixCls, "-title-text")
352
+ }, {
353
+ children: title
354
+ })), closeNode]
342
355
  });
343
356
  };
344
357
  //footer
@@ -352,7 +365,7 @@ var Modal = function Modal(props) {
352
365
  confirmLoading = _props$confirmLoading === void 0 ? false : _props$confirmLoading;
353
366
  var okBtn = jsx(Button, Object.assign({
354
367
  variant: "contained",
355
- size: "medium",
368
+ size: "large",
356
369
  loading: confirmLoading,
357
370
  onClick: handleOk
358
371
  }, okButtonProps, {
@@ -362,7 +375,7 @@ var Modal = function Modal(props) {
362
375
  }));
363
376
  var cancelBtn = showCancel && jsx(Button, Object.assign({
364
377
  variant: "outlined",
365
- size: "medium",
378
+ size: "large",
366
379
  onClick: handleCancel
367
380
  }, cancelButtonProps, {
368
381
  children: cancelText !== null && cancelText !== void 0 ? cancelText : intl({
@@ -394,8 +407,9 @@ var Modal = function Modal(props) {
394
407
  //wrap cls
395
408
  var makeWrapClassName = clsx(props.wrapClassName, _defineProperty({}, "".concat(prefixCls, "-centered"), centered));
396
409
  //modal cls
397
- var makeModalClassName = clsx(props.className, "".concat($prefixCls, "-scrollbar-small"), makeSizeCls());
410
+ var makeModalClassName = clsx(props.className, "".concat($prefixCls, "-scrollbar-small"), makeSizeCls(), getModalCls());
398
411
  return jsx(Dialog, Object.assign({}, restProps, {
412
+ mask: mask,
399
413
  visible: open !== null && open !== void 0 ? open : visible,
400
414
  title: renderHeader(),
401
415
  footer: renderFooter(),
package/MultiBox/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { _ as _typeof } from '../_verture/typeof-498dd2b1.js';
2
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-81040c9e.js';
3
- import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
1
+ import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
2
+ import { _ as _toConsumableArray } from '../_verture/toConsumableArray-8f4c9589.js';
3
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-a8206399.js';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
5
5
  import { useState, useEffect } from 'react';
6
6
  import { TextField } from '../TextField/index.js';
@@ -8,7 +8,7 @@ import Label from '../Label/index.js';
8
8
  import HelperText from '../HelperText/index.js';
9
9
  import Delete from '@para-ui/icons/Delete';
10
10
  import PlusCircleF from '@para-ui/icons/PlusCircleF';
11
- import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
11
+ import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
12
12
  import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
13
13
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
14
14
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
@@ -16,17 +16,18 @@ import '../_verture/tslib.es6-55ed4bd2.js';
16
16
  import '@paraview/lib';
17
17
  import '@para-ui/icons/PreviewClose';
18
18
  import '@para-ui/icons/PreviewOpen';
19
- import '@para-ui/icons/CloseCircle';
19
+ import '@para-ui/icons/CloseCircleF';
20
20
  import '../AutoTips/index.js';
21
21
  import '../Tooltip/index.js';
22
22
  import 'rc-tooltip';
23
23
  import 'rc-tooltip/lib/placements';
24
24
  import 'clsx';
25
+ import '@para-ui/icons/Forbid';
25
26
  import '../Loading/index.js';
26
27
  import '@para-ui/icons/LoadingF';
27
28
  import '../_verture/useGlobalProps-1b846a65.js';
28
29
  import '@para-ui/core/GlobalContext';
29
- import '../_verture/index-77f9e0fb.js';
30
+ import '../_verture/index-e9007d6a.js';
30
31
  import 'rc-dropdown';
31
32
  import '../_verture/usePopupContainer-87febeb9.js';
32
33
  import 'dayjs';
@@ -38,7 +39,7 @@ var en = {
38
39
  };
39
40
 
40
41
  var zh = {
41
- add: '新增'
42
+ add: '添 加'
42
43
  };
43
44
 
44
45
  var localeJson = {
@@ -46,7 +47,7 @@ var localeJson = {
46
47
  en: en
47
48
  };
48
49
 
49
- var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-multi-box {\n width: 100%;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n}\n.paraui-v3-multi-box > .multi-box-content > .multi-box-content-item {\n display: flex;\n}\n.paraui-v3-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input {\n flex: 1;\n display: flex;\n align-items: center;\n align-items: flex-start;\n}\n.paraui-v3-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-text-field:first-child {\n margin-right: 12px;\n}\n.paraui-v3-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-text-field {\n flex: 1;\n}\n.paraui-v3-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-text-field .paraui-v3-helper-text {\n min-height: 12px;\n}\n.paraui-v3-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-separator {\n padding-bottom: 20px;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n margin: 0 12px;\n line-height: 1;\n}\n.paraui-v3-multi-box > .multi-box-content > .multi-box-content-item > .opera-box {\n display: flex;\n align-items: center;\n margin-left: 12px;\n}\n.paraui-v3-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n cursor: pointer;\n border-radius: 4px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v3-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box:hover svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box svg {\n font-size: 24px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-multi-box > .multi-box-add {\n text-align: center;\n border: 1px dashed;\n border-color: rgba(171, 176, 185, 0.4);\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n cursor: pointer;\n background-color: rgba(171, 176, 185, 0.12);\n color: rgb(54, 102, 214);\n font-size: 14px;\n}\n.paraui-v3-multi-box > .multi-box-add > svg {\n font-size: 16px;\n color: rgb(54, 102, 214);\n margin-right: 8px;\n}\n.paraui-v3-multi-box > .multi-box-add:hover {\n border-color: rgba(54, 102, 214, 0.4);\n background-color: rgba(54, 102, 214, 0.05);\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-separator > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-text-field:first-child {\n margin-right: 0;\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-small > .multi-box-add {\n height: 28px;\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-small > .multi-box-content > .multi-box-content-item > .opera-box {\n height: 28px;\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-small > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n width: 28px;\n height: 28px;\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-medium > .multi-box-add {\n height: 32px;\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-medium > .multi-box-content > .multi-box-content-item > .opera-box {\n height: 32px;\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-medium > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n width: 32px;\n height: 32px;\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-large > .multi-box-add {\n height: 36px;\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-large > .multi-box-content > .multi-box-content-item > .opera-box {\n height: 36px;\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-large > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n width: 36px;\n height: 36px;\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-disabled > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n cursor: not-allowed;\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-disabled > .multi-box-content > .multi-box-content-item > .opera-box > .del-box:hover {\n background-color: transparent;\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-disabled > .multi-box-content > .multi-box-content-item > .opera-box > .del-box:hover svg {\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-disabled > .multi-box-content > .multi-box-content-item > .opera-box > .del-box svg {\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-disabled > .multi-box-add {\n border-color: rgba(171, 176, 185, 0.4);\n cursor: not-allowed;\n background-color: rgba(171, 176, 185, 0.12);\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-disabled > .multi-box-add > svg {\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-multi-box.paraui-v3-multi-box-disabled > .multi-box-add:hover {\n border-color: rgba(171, 176, 185, 0.4);\n color: rgba(46, 55, 67, 0.4);\n}";
50
+ var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-multi-box {\n width: 100%;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item {\n display: flex;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input {\n flex: 1;\n display: flex;\n align-items: center;\n align-items: flex-start;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-text-field:first-child {\n margin-right: 10px;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-text-field {\n flex: 1;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-text-field .paraui-v4-helper-text {\n min-height: 10px;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-separator {\n padding-bottom: 20px;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n margin: 0 10px;\n line-height: 1;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .opera-box {\n display: flex;\n align-items: center;\n margin-left: 10px;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n cursor: pointer;\n border-radius: 4px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box:hover svg {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box svg {\n font-size: 20px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-multi-box > .multi-box-add {\n text-align: center;\n border: 1px dashed;\n border-color: rgb(212, 218, 227);\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n cursor: pointer;\n background-color: rgb(247, 248, 250);\n color: rgb(46, 101, 230);\n font-size: 14px;\n}\n.paraui-v4-multi-box > .multi-box-add > svg {\n font-size: 16px;\n color: rgb(46, 101, 230);\n margin-right: 10px;\n}\n.paraui-v4-multi-box > .multi-box-add:hover {\n border-color: rgb(87, 131, 235);\n background-color: rgb(240, 245, 255);\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-separator > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-text-field:first-child {\n margin-right: 0;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-disabled > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n cursor: not-allowed;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-disabled > .multi-box-content > .multi-box-content-item > .opera-box > .del-box:hover {\n background-color: transparent;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-disabled > .multi-box-content > .multi-box-content-item > .opera-box > .del-box:hover svg {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-disabled > .multi-box-content > .multi-box-content-item > .opera-box > .del-box svg {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-disabled > .multi-box-add {\n border-color: rgb(212, 218, 227);\n cursor: not-allowed;\n background-color: rgb(247, 248, 250);\n color: rgb(161, 168, 179);\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-disabled > .multi-box-add > svg {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-disabled > .multi-box-add:hover {\n border-color: rgb(212, 218, 227);\n color: rgb(161, 168, 179);\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-small > .multi-box-add {\n height: 28px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-small > .multi-box-content > .multi-box-content-item > .opera-box {\n height: 28px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-small > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n width: 28px;\n height: 28px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-medium > .multi-box-add {\n height: 32px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-medium > .multi-box-content > .multi-box-content-item > .opera-box {\n height: 32px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-medium > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n width: 32px;\n height: 32px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-large > .multi-box-add {\n height: 32px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-large > .multi-box-content > .multi-box-content-item > .opera-box {\n height: 32px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-large > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n width: 32px;\n height: 32px;\n}";
50
51
  styleInject(css_248z);
51
52
 
52
53
  var MultiBox = function MultiBox(props) {
@@ -12,6 +12,10 @@ export interface ConfigProps {
12
12
  top?: number;
13
13
  /** 消息从底部弹出时,距离底部的位置,单位像素 */
14
14
  bottom?: number;
15
+ /** 距离左侧的位置,单位像素 */
16
+ left?: number;
17
+ /** 距离右侧的位置,单位像素 */
18
+ right?: number;
15
19
  /** 默认自动关闭延时,单位秒 */
16
20
  duration?: number;
17
21
  /** 弹出位置 */
@@ -34,7 +38,7 @@ export interface ArgsProps {
34
38
  key?: string;
35
39
  /** 关闭时触发 */
36
40
  onClose?: () => void;
37
- /** 默认 4.5 秒后自动关闭,配置为 null 则不自动关闭 */
41
+ /** 默认 5 秒后自动关闭,配置为 null 则不自动关闭 */
38
42
  duration?: number | null;
39
43
  /** 自定义图标 */
40
44
  icon?: React.ReactNode;
@@ -52,6 +56,10 @@ export interface ArgsProps {
52
56
  top?: number;
53
57
  /** 消息从底部弹出时,距离底部的位置,单位像素 */
54
58
  bottom?: number;
59
+ /** 距离左侧的位置,单位像素 */
60
+ left?: number;
61
+ /** 距离右侧的位置,单位像素 */
62
+ right?: number;
55
63
  /** 渲染容器 */
56
64
  getContainer?: () => HTMLElement;
57
65
  /** 自定义关闭图标 */
@@ -1,25 +1,27 @@
1
- import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
1
+ import { _ as _defineProperty } from '../_verture/defineProperty-1d116156.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import React__default from 'react';
4
4
  import Notification from 'rc-notification';
5
5
  import WarningCircleF from '@para-ui/icons/WarningCircleF';
6
6
  import CompleteIcon from '@para-ui/icons/CheckCircleF';
7
7
  import CloseIcon from '@para-ui/icons/Close';
8
- import CloseCircleFilled from '@para-ui/icons/CloseCircleF';
8
+ import CloseCircleF from '@para-ui/icons/CloseCircleF';
9
9
  import clsx from 'clsx';
10
- import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
10
+ import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
11
11
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
12
- import '../_verture/typeof-498dd2b1.js';
12
+ import '../_verture/typeof-adeedc13.js';
13
13
 
14
- var css_248z = "@charset \"UTF-8\";\n/**\n * @author Hanz\n * @date 2022/1/13 上午10:30\n * @description 通知提醒框\n */\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-notification {\n position: fixed;\n margin: 0 24px 0 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n z-index: 9999;\n}\n.paraui-v3-notification-topLeft, .paraui-v3-notification-bottomLeft {\n margin-right: 0;\n margin-left: 24px;\n}\n.paraui-v3-notification-topLeft .paraui-v3-notification-fade-enter.paraui-v3-notification-fade-enter-active, .paraui-v3-notification-bottomLeft .paraui-v3-notification-fade-enter.paraui-v3-notification-fade-enter-active, .paraui-v3-notification-topLeft .paraui-v3-notification-fade-appear.paraui-v3-notification-fade-appear-active, .paraui-v3-notification-bottomLeft .paraui-v3-notification-fade-appear.paraui-v3-notification-fade-appear-active {\n animation-name: NotificationLeftFadeIn;\n}\n.paraui-v3-notification-hook-holder, .paraui-v3-notification-notice {\n position: relative;\n width: 430px;\n max-width: calc(100vw - 48px);\n margin-bottom: 16px;\n margin-left: auto;\n overflow: hidden;\n word-wrap: break-word;\n background: rgb(255, 255, 255);\n border-radius: 4px;\n box-shadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-notification-topLeft .paraui-v3-notification-hook-holder, .paraui-v3-notification-topLeft .paraui-v3-notification-notice, .paraui-v3-notification-bottomLeft .paraui-v3-notification-hook-holder, .paraui-v3-notification-bottomLeft .paraui-v3-notification-notice {\n margin-right: auto;\n margin-left: 0;\n}\n.paraui-v3-notification-hook-holder > .paraui-v3-notification-notice {\n margin-bottom: 0;\n box-shadow: none;\n}\n.paraui-v3-notification-notice {\n padding: 20px;\n line-height: 1.5715;\n}\n.paraui-v3-notification-notice-content {\n position: relative;\n}\n.paraui-v3-notification-notice-message {\n margin-bottom: 8px;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-weight: 700;\n line-height: 24px;\n}\n.paraui-v3-notification-notice-message-single-line-auto-margin {\n display: block;\n width: calc(264px - 100%);\n max-width: 4px;\n background-color: transparent;\n pointer-events: none;\n}\n.paraui-v3-notification-notice-message-single-line-auto-margin::before {\n display: block;\n content: \"\";\n}\n.paraui-v3-notification-notice-description {\n font-size: 14px;\n font-weight: 400;\n}\n.paraui-v3-notification-notice-closable .paraui-v3-notification-notice-message {\n padding-right: 24px;\n}\n.paraui-v3-notification-notice-with-icon .paraui-v3-notification-notice-message {\n margin-bottom: 4px;\n margin-left: 24px;\n}\n.paraui-v3-notification-notice-with-icon .paraui-v3-notification-notice-description {\n margin-left: 24px;\n}\n.paraui-v3-notification-notice-without-description .paraui-v3-notification-notice-message {\n margin-bottom: 0;\n}\n.paraui-v3-notification .paraui-v3-notification-notice-icon {\n position: absolute;\n top: 4px;\n font-size: 16px;\n line-height: 24px;\n}\n.paraui-v3-notification .paraui-v3-notification-notice-icon-success {\n color: rgb(83, 195, 27);\n}\n.paraui-v3-notification .paraui-v3-notification-notice-icon-info {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-notification .paraui-v3-notification-notice-icon-warning {\n color: rgb(255, 161, 80);\n}\n.paraui-v3-notification .paraui-v3-notification-notice-icon-error {\n color: rgb(235, 96, 84);\n}\n.paraui-v3-notification-notice-close {\n position: absolute;\n top: 16px;\n right: 22px;\n color: rgba(46, 55, 67, 0.7);\n outline: none;\n}\n.paraui-v3-notification-notice-close:hover {\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-notification .paraui-v3-notification-close-icon {\n font-size: 18px;\n cursor: pointer;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-notification-notice-btn {\n float: right;\n margin-top: 16px;\n}\n.paraui-v3-notification .notification-fade-effect {\n animation-duration: 0.24s;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n animation-fill-mode: both;\n}\n.paraui-v3-notification-fade-enter, .paraui-v3-notification-fade-appear {\n animation-duration: 0.24s;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n animation-fill-mode: both;\n opacity: 0;\n animation-play-state: paused;\n}\n.paraui-v3-notification-fade-leave {\n animation-duration: 0.24s;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.paraui-v3-notification-fade-enter.paraui-v3-notification-fade-enter-active, .paraui-v3-notification-fade-appear.paraui-v3-notification-fade-appear-active {\n animation-name: NotificationFadeIn;\n animation-play-state: running;\n}\n.paraui-v3-notification-fade-leave.paraui-v3-notification-fade-leave-active {\n animation-name: NotificationFadeOut;\n animation-play-state: running;\n}\n@keyframes NotificationFadeIn {\n 0% {\n left: 430px;\n opacity: 0;\n }\n 100% {\n left: 0;\n opacity: 1;\n }\n}\n@keyframes NotificationLeftFadeIn {\n 0% {\n right: 430px;\n opacity: 0;\n }\n 100% {\n right: 0;\n opacity: 1;\n }\n}\n@keyframes NotificationFadeOut {\n 0% {\n max-height: 150px;\n margin-bottom: 16px;\n opacity: 1;\n }\n 100% {\n max-height: 0;\n margin-bottom: 0;\n padding-top: 0;\n padding-bottom: 0;\n opacity: 0;\n }\n}";
14
+ var css_248z = "@charset \"UTF-8\";\n/**\n * @author Hanz\n * @date 2022/1/13 上午10:30\n * @description 通知提醒框\n */\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-notification {\n position: fixed;\n padding: 0;\n color: rgb(29, 33, 38);\n font-size: 14px;\n z-index: 9999;\n}\n.paraui-v4-notification-topLeft .paraui-v4-notification-fade-enter.paraui-v4-notification-fade-enter-active, .paraui-v4-notification-bottomLeft .paraui-v4-notification-fade-enter.paraui-v4-notification-fade-enter-active, .paraui-v4-notification-topLeft .paraui-v4-notification-fade-appear.paraui-v4-notification-fade-appear-active, .paraui-v4-notification-bottomLeft .paraui-v4-notification-fade-appear.paraui-v4-notification-fade-appear-active {\n animation-name: NotificationLeftFadeIn;\n}\n.paraui-v4-notification-hook-holder, .paraui-v4-notification-notice {\n position: relative;\n width: 440px;\n max-width: calc(100vw - 48px);\n margin-top: 20px;\n margin-left: auto;\n overflow: hidden;\n word-wrap: break-word;\n background: #fff;\n border-radius: 4px;\n box-shadow: 0px 2px 8px 0px rgb(234, 236, 241);\n}\n.paraui-v4-notification-hook-holder:first-child, .paraui-v4-notification-notice:first-child {\n margin-top: 0;\n}\n.paraui-v4-notification-topLeft .paraui-v4-notification-hook-holder, .paraui-v4-notification-topLeft .paraui-v4-notification-notice, .paraui-v4-notification-bottomLeft .paraui-v4-notification-hook-holder, .paraui-v4-notification-bottomLeft .paraui-v4-notification-notice {\n margin-right: auto;\n margin-left: 0;\n}\n.paraui-v4-notification-hook-holder > .paraui-v4-notification-notice {\n margin-bottom: 0;\n box-shadow: none;\n}\n.paraui-v4-notification-notice {\n padding: 16px;\n line-height: 1.5715;\n}\n.paraui-v4-notification-notice-content {\n position: relative;\n}\n.paraui-v4-notification-notice-message {\n margin-bottom: 10px;\n color: rgb(29, 33, 38);\n font-size: 14px;\n font-weight: 700;\n line-height: 20px;\n}\n.paraui-v4-notification-notice-message-single-line-auto-margin {\n display: block;\n width: calc(264px - 100%);\n max-width: 4px;\n background-color: transparent;\n pointer-events: none;\n}\n.paraui-v4-notification-notice-message-single-line-auto-margin::before {\n display: block;\n content: \"\";\n}\n.paraui-v4-notification-notice-description {\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n}\n.paraui-v4-notification-notice-closable .paraui-v4-notification-notice-message {\n padding-right: 24px;\n}\n.paraui-v4-notification-notice-with-icon .paraui-v4-notification-notice-message {\n margin-bottom: 10px;\n margin-left: 24px;\n}\n.paraui-v4-notification-notice-with-icon .paraui-v4-notification-notice-description {\n margin-left: 24px;\n}\n.paraui-v4-notification-notice-without-description .paraui-v4-notification-notice-message {\n margin-bottom: 0;\n}\n.paraui-v4-notification .paraui-v4-notification-notice-icon {\n position: absolute;\n top: 2px;\n font-size: 500;\n line-height: 24px;\n}\n.paraui-v4-notification .paraui-v4-notification-notice-icon-success {\n color: rgb(19, 191, 76);\n}\n.paraui-v4-notification .paraui-v4-notification-notice-icon-info {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-notification .paraui-v4-notification-notice-icon-warning {\n color: rgb(255, 147, 38);\n}\n.paraui-v4-notification .paraui-v4-notification-notice-icon-error {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-notification-notice-close {\n position: absolute;\n top: 16px;\n right: 16px;\n color: rgb(92, 101, 115);\n outline: none;\n}\n.paraui-v4-notification-notice-close:hover {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-notification .paraui-v4-notification-close-icon {\n font-size: 18px;\n cursor: pointer;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-notification .paraui-v4-notification-close-icon:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-notification-notice-btn {\n float: right;\n margin-top: 12px;\n}\n.paraui-v4-notification .notification-fade-effect {\n animation-duration: 0.24s;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n animation-fill-mode: both;\n}\n.paraui-v4-notification-fade-enter, .paraui-v4-notification-fade-appear {\n animation-duration: 0.24s;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n animation-fill-mode: both;\n opacity: 0;\n animation-play-state: paused;\n}\n.paraui-v4-notification-fade-leave {\n animation-duration: 0.24s;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.paraui-v4-notification-fade-enter.paraui-v4-notification-fade-enter-active, .paraui-v4-notification-fade-appear.paraui-v4-notification-fade-appear-active {\n animation-name: NotificationFadeIn;\n animation-play-state: running;\n}\n.paraui-v4-notification-fade-leave.paraui-v4-notification-fade-leave-active {\n animation-name: NotificationFadeOut;\n animation-play-state: running;\n}\n@keyframes NotificationFadeIn {\n 0% {\n left: 440px;\n opacity: 0;\n }\n 100% {\n left: 0;\n opacity: 1;\n }\n}\n@keyframes NotificationLeftFadeIn {\n 0% {\n right: 440px;\n opacity: 0;\n }\n 100% {\n right: 0;\n opacity: 1;\n }\n}\n@keyframes NotificationFadeOut {\n 0% {\n max-height: 150px;\n margin-bottom: 16px;\n opacity: 1;\n }\n 100% {\n max-height: 0;\n margin-bottom: 0;\n padding-top: 0;\n padding-bottom: 0;\n opacity: 0;\n }\n}";
15
15
  styleInject(css_248z);
16
16
 
17
17
  //通知框实例存储
18
18
  var notificationInstance = {};
19
19
  // 默认值
20
- var defaultDuration = 4.5; //默认 4.5 秒后自动关闭,配置为 null 则不自动关闭
21
- var defaultTop = 24;
22
- var defaultBottom = 24;
20
+ var defaultDuration = 5; //默认 5 秒后自动关闭,配置为 null 则不自动关闭
21
+ var defaultTop = 20;
22
+ var defaultBottom = 20;
23
+ var defaultLeft = 20;
24
+ var defaultRight = 20;
23
25
  var defaultPlacement = 'topRight';
24
26
  var defaultGetContainer;
25
27
  var prefixCls = "".concat($prefixCls, "-notification");
@@ -34,6 +36,8 @@ function setNotificationConfig(options) {
34
36
  placement = options.placement,
35
37
  bottom = options.bottom,
36
38
  top = options.top,
39
+ left = options.left,
40
+ right = options.right,
37
41
  getContainer = options.getContainer,
38
42
  closeIcon = options.closeIcon;
39
43
  if (duration !== undefined) {
@@ -48,6 +52,12 @@ function setNotificationConfig(options) {
48
52
  if (top !== undefined) {
49
53
  defaultTop = top;
50
54
  }
55
+ if (left !== undefined) {
56
+ defaultLeft = left;
57
+ }
58
+ if (right !== undefined) {
59
+ defaultRight = right;
60
+ }
51
61
  if (getContainer !== undefined) {
52
62
  defaultGetContainer = getContainer;
53
63
  }
@@ -62,32 +72,34 @@ function setNotificationConfig(options) {
62
72
  function getPlacementStyle(placement) {
63
73
  var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultTop;
64
74
  var bottom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultBottom;
75
+ var left = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : defaultLeft;
76
+ var right = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : defaultRight;
65
77
  var style;
66
78
  switch (placement) {
67
79
  case 'topLeft':
68
80
  style = {
69
- left: 0,
81
+ left: left,
70
82
  top: top,
71
83
  bottom: 'auto'
72
84
  };
73
85
  break;
74
86
  case 'topRight':
75
87
  style = {
76
- right: 0,
88
+ right: right,
77
89
  top: top,
78
90
  bottom: 'auto'
79
91
  };
80
92
  break;
81
93
  case 'bottomLeft':
82
94
  style = {
83
- left: 0,
95
+ left: left,
84
96
  top: 'auto',
85
97
  bottom: bottom
86
98
  };
87
99
  break;
88
100
  default:
89
101
  style = {
90
- right: 0,
102
+ right: right,
91
103
  top: 'auto',
92
104
  bottom: bottom
93
105
  };
@@ -101,11 +113,13 @@ function getNotificationInstance(args, callback) {
101
113
  placement = _args$placement === void 0 ? defaultPlacement : _args$placement,
102
114
  top = args.top,
103
115
  bottom = args.bottom,
116
+ left = args.left,
117
+ right = args.right,
104
118
  _args$getContainer = args.getContainer,
105
119
  getContainer = _args$getContainer === void 0 ? defaultGetContainer : _args$getContainer,
106
120
  _args$closeIcon = args.closeIcon,
107
121
  closeIcon = _args$closeIcon === void 0 ? defaultCloseIcon : _args$closeIcon;
108
- // const prefixCls = `${$prefixCls}-notification`;
122
+ var prefixCls = "".concat($prefixCls, "-notification");
109
123
  var cacheKey = "".concat(prefixCls, "-").concat(placement);
110
124
  var cacheInstance = notificationInstance[cacheKey];
111
125
  if (cacheInstance) {
@@ -131,7 +145,7 @@ function getNotificationInstance(args, callback) {
131
145
  Notification.newInstance({
132
146
  prefixCls: prefixCls,
133
147
  className: notificationCls,
134
- style: getPlacementStyle(placement, top, bottom),
148
+ style: getPlacementStyle(placement, top, bottom, left, right),
135
149
  getContainer: getContainer,
136
150
  closeIcon: closeIconToRender,
137
151
  maxCount: maxCount
@@ -148,7 +162,7 @@ function getNotificationInstance(args, callback) {
148
162
  var typeToIcon = {
149
163
  success: CompleteIcon,
150
164
  info: WarningCircleF,
151
- error: CloseCircleFilled,
165
+ error: CloseCircleF,
152
166
  warning: WarningCircleF
153
167
  };
154
168
  //创建通知框内容配置
@@ -1,32 +1,33 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
2
- import { r as regenerator } from '../_verture/index-beef914f.js';
1
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-a8206399.js';
2
+ import { r as regenerator } from '../_verture/index-d63bd287.js';
3
3
  import { a as __awaiter } from '../_verture/tslib.es6-55ed4bd2.js';
4
4
  import { jsxs, jsx, Fragment as Fragment$1 } from 'react/jsx-runtime';
5
5
  import { useState, Fragment } from 'react';
6
6
  import More from '@para-ui/icons/More';
7
7
  import { Button } from '../Button/index.js';
8
+ import { Tooltip } from '../Tooltip/index.js';
8
9
  import { Popover } from '../Popover/index.js';
9
10
  import AutoTips from '../AutoTips/index.js';
10
- import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
11
+ import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
11
12
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
12
13
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
13
- import '../_verture/typeof-498dd2b1.js';
14
+ import '../_verture/typeof-b240b062.js';
15
+ import '../_verture/typeof-adeedc13.js';
14
16
  import 'clsx';
15
17
  import '@para-ui/icons/LoadingF';
16
18
  import '@para-ui/icons/Forbid';
17
- import '../Tooltip/index.js';
18
- import 'rc-tooltip';
19
- import 'rc-tooltip/lib/placements';
20
19
  import '@para-ui/icons/Down';
21
- import '../_verture/index-77f9e0fb.js';
20
+ import '../_verture/index-e9007d6a.js';
22
21
  import 'rc-dropdown';
23
22
  import '../_verture/usePopupContainer-87febeb9.js';
24
23
  import 'dayjs';
25
24
  import '@paraview/lib';
26
25
  import '../_verture/useFormatMessage-703f8b20.js';
27
26
  import '@para-ui/core/GlobalContext';
27
+ import 'rc-tooltip';
28
+ import 'rc-tooltip/lib/placements';
28
29
 
29
- var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2022/4/13 10:48 AM\n* @description 表格操作按钮\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-operate-btn {\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n display: flex;\n align-items: center;\n}\n.paraui-v3-operate-btn > .operate-btn-line {\n display: inline-block;\n width: 1px;\n background-color: rgba(54, 102, 214, 0.2);\n margin: 0 12px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-small > .operate-btn-line {\n height: 12px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-small button svg {\n font-size: 18px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-medium > .operate-btn-line {\n height: 14px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-medium button svg {\n font-size: 24px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-large > .operate-btn-line {\n height: 16px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-large button > svg {\n font-size: 28px;\n}\n\n.paraui-v3-operate-btn-popover .operate-btn-list {\n padding: 8px 0;\n}\n.paraui-v3-operate-btn-popover .operate-btn-list > .operate-btn-list-item {\n padding: 0 12px;\n max-width: 120px;\n cursor: pointer;\n color: rgb(46, 55, 67);\n line-height: 36px;\n text-align: left;\n}\n.paraui-v3-operate-btn-popover .operate-btn-list > .operate-btn-list-item:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-operate-btn-popover .operate-btn-list > .operate-btn-list-item-disabled {\n cursor: not-allowed;\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-operate-btn-popover .operate-btn-list > .operate-btn-list-item-danger {\n color: rgb(235, 96, 84);\n}";
30
+ var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2022/4/13 10:48 AM\n* @description 表格操作按钮\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-operate-btn {\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n display: flex;\n align-items: center;\n}\n.paraui-v4-operate-btn > .operate-btn-line {\n display: inline-block;\n width: 1px;\n background-color: rgb(213, 224, 250);\n margin: 0 10px;\n}\n.paraui-v4-operate-btn.paraui-v4-operate-btn-small > .operate-btn-line {\n height: 12px;\n}\n.paraui-v4-operate-btn.paraui-v4-operate-btn-small button svg {\n font-size: 18px;\n}\n.paraui-v4-operate-btn.paraui-v4-operate-btn-medium > .operate-btn-line {\n height: 12px;\n}\n.paraui-v4-operate-btn.paraui-v4-operate-btn-medium button svg {\n font-size: 18px;\n}\n.paraui-v4-operate-btn.paraui-v4-operate-btn-large > .operate-btn-line {\n height: 12px;\n}\n.paraui-v4-operate-btn.paraui-v4-operate-btn-large button svg {\n font-size: 18px;\n}\n\n.paraui-v4-operate-btn-popover .operate-btn-list {\n padding: 4px 0;\n}\n.paraui-v4-operate-btn-popover .operate-btn-list > .operate-btn-list-item {\n padding: 0 10px;\n max-width: 120px;\n cursor: pointer;\n color: rgb(29, 33, 38);\n line-height: 30px;\n text-align: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.paraui-v4-operate-btn-popover .operate-btn-list > .operate-btn-list-item:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-operate-btn-popover .operate-btn-list > .operate-btn-list-item-disabled {\n cursor: not-allowed;\n color: rgb(161, 168, 179);\n}\n.paraui-v4-operate-btn-popover .operate-btn-list > .operate-btn-list-item-disabled:hover {\n background-color: white;\n}\n.paraui-v4-operate-btn-popover .operate-btn-list > .operate-btn-list-item-danger {\n color: rgb(244, 66, 66);\n}";
30
31
  styleInject(css_248z);
31
32
 
32
33
  var OperateBtn = function OperateBtn(props) {
@@ -148,14 +149,30 @@ var OperateBtn = function OperateBtn(props) {
148
149
  className: "operate-btn-list"
149
150
  }, {
150
151
  children: arr.map(function (item, index) {
152
+ if (item.disabled) {
153
+ return jsx(Tooltip, Object.assign({
154
+ disabled: true,
155
+ title: item.label || item.toolTipTitle
156
+ }, {
157
+ children: jsx("div", Object.assign({
158
+ className: handPopoverClass(item),
159
+ onClick: clickItem(item, index + showNum),
160
+ style: style
161
+ }, {
162
+ children: item.label || item.toolTipTitle
163
+ }), index)
164
+ }), index);
165
+ }
151
166
  return jsx("div", Object.assign({
152
167
  className: handPopoverClass(item),
153
168
  onClick: clickItem(item, index + showNum),
154
169
  style: style
155
170
  }, {
156
- children: jsx(AutoTips, {
171
+ children: jsx(AutoTips, Object.assign({
172
+ tipMaxWidth: 'none'
173
+ }, {
157
174
  children: item.label || item.toolTipTitle
158
- })
175
+ }))
159
176
  }), index);
160
177
  })
161
178
  }));