@jiovan-labs/ant-buddy-pro 2.0.0 → 2.0.1

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 (32) hide show
  1. package/README.md +1 -2
  2. package/README.zh-CN.md +55 -0
  3. package/README.zh-TW.md +55 -0
  4. package/dist/cjs/field/CountField/index.d.ts +2 -2
  5. package/dist/cjs/field/LabelField/index.d.ts +2 -2
  6. package/dist/cjs/field/ThumbToggle/index.d.ts +2 -2
  7. package/dist/cjs/form/AvatarUpload/index.d.ts +3 -3
  8. package/dist/cjs/form/AvatarUpload/index.js +6 -3
  9. package/dist/cjs/form/CronInput/index.js +6 -3
  10. package/dist/cjs/form/DivideSelect/index.js +17 -15
  11. package/dist/cjs/form/IconSelect/index.js +31 -23
  12. package/dist/cjs/form/TagInput/index.d.ts +1 -1
  13. package/dist/cjs/form/TagInput/index.js +2 -1
  14. package/dist/cjs/layout/SpaceBox/styles.js +5 -2
  15. package/dist/cjs/type/declaration.d.ts +1 -1
  16. package/dist/cjs/util/FieldUtils.d.ts +2 -2
  17. package/dist/cjs/util/PaginationUtils.js +4 -2
  18. package/dist/esm/field/CountField/index.d.ts +2 -2
  19. package/dist/esm/field/LabelField/index.d.ts +2 -2
  20. package/dist/esm/field/ThumbToggle/index.d.ts +2 -2
  21. package/dist/esm/form/AvatarUpload/index.d.ts +3 -3
  22. package/dist/esm/form/AvatarUpload/index.js +3 -3
  23. package/dist/esm/form/CronInput/index.js +3 -3
  24. package/dist/esm/form/DivideSelect/index.js +22 -16
  25. package/dist/esm/form/IconSelect/index.js +74 -68
  26. package/dist/esm/form/TagInput/index.d.ts +1 -1
  27. package/dist/esm/form/TagInput/index.js +1 -1
  28. package/dist/esm/layout/SpaceBox/styles.js +4 -2
  29. package/dist/esm/type/declaration.d.ts +1 -1
  30. package/dist/esm/util/FieldUtils.d.ts +2 -2
  31. package/dist/esm/util/PaginationUtils.js +2 -2
  32. package/package.json +6 -5
@@ -242,7 +242,7 @@ var TagInputField = /*#__PURE__*/React.forwardRef(function (props, ref) {
242
242
  _setTagContents(_contents);
243
243
  } else {
244
244
  if (warnExists && !proField) {
245
- messageInvoker.warning(ObjectUtils.firstNotNil(props === null || props === void 0 || (_props$localeProps = props.localeProps) === null || _props$localeProps === void 0 ? void 0 : _props$localeProps.tagExists, intlLocales.get([locale, 'tagExists']), intlLocales.get(['en_US', 'tagExists'])));
245
+ messageInvoker.warning(ObjectUtils.firstNotNil(props === null || props === void 0 || (_props$localeProps = props.localeProps) === null || _props$localeProps === void 0 ? void 0 : _props$localeProps.tagExists, intlLocales.get([locale, 'tagExists']), intlLocales.get(['en_US', 'tagExists']))).then(function () {});
246
246
  }
247
247
  }
248
248
  }
@@ -11,10 +11,12 @@ var buildFieldStyle = function buildFieldStyle(token) {
11
11
  return _defineProperty({}, "".concat(token.componentCls), _defineProperty(_defineProperty({
12
12
  display: 'inline-block'
13
13
  }, "&&-width-block", _defineProperty({
14
+ display: 'flex'
15
+ }, "> ".concat(token.antCls, "-space"), _defineProperty({
14
16
  width: '100%'
15
- }, "> ".concat(token.antCls, "-space"), {
17
+ }, "> ".concat(token.antCls, "-space-item"), {
16
18
  width: '100%'
17
- })), "&&-bound-border", {
19
+ }))), "&&-bound-border", {
18
20
  border: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
19
21
  borderRadius: token.borderRadius
20
22
  }));
@@ -1,7 +1,7 @@
1
1
  import { type TabsType } from 'antd/es/tabs';
2
2
  import { type Placement as RcPlacement } from '@rc-component/select/es/BaseSelect';
3
3
  export type ActionStyleType = 'success' | 'info' | 'warning' | 'error';
4
- export type AxisDirectionType = 'horizontal' | 'vertical';
4
+ export type AxisOrientationType = 'horizontal' | 'vertical';
5
5
  export type BeforeAfterType = 'before' | 'after';
6
6
  export type ClickHoverType = 'click' | 'hover';
7
7
  export type CircleSquareShape = 'circle' | 'square';
@@ -2,6 +2,6 @@ import { type DefaultOptionType } from 'antd/es/select';
2
2
  import { type SegmentedLabeledOption } from 'antd/es/segmented';
3
3
  import { type ProSchemaValueEnumObj, type ProSchemaValueEnumMap } from '@ant-design/pro-components';
4
4
  export declare abstract class FieldUtils {
5
- static valueEnumToSelectOptions: (source?: ProSchemaValueEnumMap | ProSchemaValueEnumObj | ((params: any) => ProSchemaValueEnumMap | ProSchemaValueEnumObj) | undefined) => DefaultOptionType[] | undefined;
6
- static valueEnumToSegmentOptions: (source?: ProSchemaValueEnumMap | ProSchemaValueEnumObj | ((params: any) => ProSchemaValueEnumMap | ProSchemaValueEnumObj) | undefined) => SegmentedLabeledOption[] | undefined;
5
+ static valueEnumToSelectOptions: (source?: ProSchemaValueEnumObj | ProSchemaValueEnumMap | ((params: any) => ProSchemaValueEnumMap | ProSchemaValueEnumObj) | undefined) => DefaultOptionType[] | undefined;
6
+ static valueEnumToSegmentOptions: (source?: ProSchemaValueEnumObj | ProSchemaValueEnumMap | ((params: any) => ProSchemaValueEnumMap | ProSchemaValueEnumObj) | undefined) => SegmentedLabeledOption[] | undefined;
7
7
  }
@@ -24,7 +24,7 @@ _defineProperty(PaginationUtils, "reloadAfterDelete", function (actionRef) {
24
24
  }
25
25
  var pageInfo = actionRef.current.pageInfo;
26
26
  if (!pageInfo || deletedCount <= 0) {
27
- actionRef.current.reload();
27
+ actionRef.current.reload().then(function () {});
28
28
  return;
29
29
  }
30
30
  var current = pageInfo.current,
@@ -37,5 +37,5 @@ _defineProperty(PaginationUtils, "reloadAfterDelete", function (actionRef) {
37
37
  current: current - 1
38
38
  }));
39
39
  }
40
- actionRef.current.reload();
40
+ actionRef.current.reload().then(function () {});
41
41
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiovan-labs/ant-buddy-pro",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "title": "Ant Buddy Pro",
5
5
  "description": "Awesome components based on Ant Design & Ant ProComponents",
6
6
  "homepage": "https://jiovan-labs.github.io/ant-buddy-pro",
@@ -49,10 +49,11 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@ant-design/pro-components": "^3.1.15-9",
52
- "@jiovan-labs/react-condition": "^2.0.0",
53
- "@jiovan-labs/ts-lang-utils": "^2.0.0",
54
- "@jiovan-labs/ts-multi-map": "^2.0.0",
52
+ "@jiovan-labs/react-condition": "^2.0.1",
53
+ "@jiovan-labs/ts-lang-utils": "^2.0.1",
54
+ "@jiovan-labs/ts-multi-map": "^2.0.1",
55
55
  "ahooks": "^3.11.0",
56
+ "antd": "^6.7.0",
56
57
  "antd-img-crop": "^4.30.0",
57
58
  "antd-style": "^4.1.0",
58
59
  "cron-validate": "^1.5.3",
@@ -87,7 +88,7 @@
87
88
  "typescript-eslint": "^8.72.1"
88
89
  },
89
90
  "overrides": {
90
- "antd": "^6.3.7",
91
+ "antd": "^6.7.0",
91
92
  "less-loader": "^12.0.0",
92
93
  "react": "^19.3.1",
93
94
  "react-dom": "^19.3.1"