@unicom-cloud/ui 0.8.80 → 0.8.82

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 (256) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +2 -2
  4. package/BackTop.js +1 -1
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +2 -2
  9. package/Card.js +1 -1
  10. package/Carousel.js +1 -1
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +2 -2
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +5 -4
  17. package/Copy.js +1 -1
  18. package/DatePicker.js +7 -7
  19. package/Descriptions.js +1 -1
  20. package/Divider.js +1 -1
  21. package/Draggable.js +1 -1
  22. package/Dropdown.js +1 -1
  23. package/Empty.js +1 -1
  24. package/Icon.js +1 -1
  25. package/IconHover.js +1 -1
  26. package/Image.js +1 -1
  27. package/InputNumber.js +1 -1
  28. package/Layout.js +1 -1
  29. package/Link.js +1 -1
  30. package/List.js +2 -2
  31. package/Mentions.js +2 -2
  32. package/Menu.js +1 -1
  33. package/Message.js +1 -1
  34. package/Modal.js +1 -1
  35. package/Notice.js +1 -1
  36. package/Notification.js +5 -5
  37. package/OverflowEllipsis.js +1 -1
  38. package/PageHeader.js +1 -1
  39. package/Pagination.js +1 -1
  40. package/Popconfirm.js +1 -1
  41. package/Popover.js +1 -1
  42. package/Progress.js +1 -1
  43. package/Radio.js +1 -1
  44. package/Rate.js +1 -1
  45. package/ResizeBox.js +1 -1
  46. package/Result.js +1 -1
  47. package/Select.js +1 -1
  48. package/Skeleton.js +1 -1
  49. package/Slider.js +1 -1
  50. package/Space.js +1 -1
  51. package/Spin.js +1 -1
  52. package/Statistic.js +1 -1
  53. package/Steps.js +1 -1
  54. package/Switch.js +1 -1
  55. package/Table.js +1 -1
  56. package/Tabs.js +1 -1
  57. package/Tag.js +1 -1
  58. package/Tooltip.js +1 -1
  59. package/Transfer.js +2 -2
  60. package/Tree.js +1 -1
  61. package/TreeSelect.js +1 -1
  62. package/Trigger.js +1 -1
  63. package/Typography.js +1 -1
  64. package/affix/index.js +60 -57
  65. package/alert/index.js +53 -53
  66. package/anchor/Anchor.js +72 -72
  67. package/anchor/Link.js +27 -27
  68. package/auto-complete/index.js +2 -2
  69. package/avatar/Avatar.js +31 -31
  70. package/avatar/Group.js +25 -25
  71. package/back-top/index.js +24 -24
  72. package/badge/index.js +37 -37
  73. package/breadcrumb/index.js +26 -26
  74. package/button/Group.js +7 -7
  75. package/button/index.js +29 -29
  76. package/calendar/index.js +2 -2
  77. package/card/Grid.js +12 -12
  78. package/card/Meta.js +17 -17
  79. package/card/index.js +44 -44
  80. package/carousel/Arrow.js +19 -19
  81. package/carousel/Indicator.js +25 -25
  82. package/carousel/index.js +77 -77
  83. package/cascader/Cascader.js +2 -2
  84. package/cascader/index.js +1 -1
  85. package/cascader/util.js +1 -1
  86. package/checkbox/Checkbox.js +2 -2
  87. package/checkbox/Group.js +2 -2
  88. package/checkbox/GroupBlock.js +2 -2
  89. package/checkbox/index.js +2 -2
  90. package/chunk/{yLRv5RIK.js → CQI1gsQs.js} +181 -181
  91. package/chunk/CmMehQON.js +1464 -0
  92. package/chunk/Cplu5dtQ.js +730 -0
  93. package/chunk/{C5X4hOkx.js → D0338Pbq.js} +80 -80
  94. package/chunk/{DYspELhF.js → DXDbeIai.js} +223 -223
  95. package/chunk/{DEiyXzBZ.js → DfrB26fI.js} +63 -63
  96. package/chunk/{BG7YGUsx.js → dKvAiKxr.js} +119 -119
  97. package/chunk/{D73Vr7fa.js → w221i0nK.js} +2871 -2870
  98. package/collapse/Collapse.js +2 -2
  99. package/collapse/Item.js +2 -2
  100. package/collapse/index.js +1 -1
  101. package/color-picker/ControlBar.js +36 -36
  102. package/color-picker/InputAlpha.js +11 -11
  103. package/color-picker/InputHex.js +24 -24
  104. package/color-picker/InputRgb.js +23 -23
  105. package/color-picker/Palette.js +18 -18
  106. package/color-picker/Panel.js +2 -2
  107. package/color-picker/index.js +2 -2
  108. package/comment/index.js +31 -31
  109. package/config-provider/ConfigProvider.js +5 -4
  110. package/config-provider/context.js +2 -2
  111. package/config-provider/index.js +4 -3
  112. package/copy/index.js +28 -28
  113. package/date-picker/Picker.js +276 -276
  114. package/date-picker/{PickerRange.js → RangePicker.js} +2 -2
  115. package/date-picker/index.js +26 -27
  116. package/descriptions/index.js +33 -33
  117. package/divider/index.js +12 -12
  118. package/draggable/index.js +23 -23
  119. package/drawer/Drawer.js +81 -81
  120. package/dropdown/Button.js +1 -1
  121. package/dropdown/index.js +56 -56
  122. package/empty/index.js +1 -1
  123. package/form/Form.js +76 -76
  124. package/form/FormItem.js +64 -64
  125. package/grid/Col.js +53 -53
  126. package/grid/Row.js +34 -34
  127. package/grid/grid-item.js +29 -29
  128. package/grid/grid.js +50 -50
  129. package/icon/index.js +20 -19
  130. package/icon-hover/index.js +1 -1
  131. package/image/Image.js +86 -86
  132. package/image/ImagePreview.js +2 -2
  133. package/image/ImagePreviewArrow.js +22 -22
  134. package/image/ImagePreviewGroup.js +1 -1
  135. package/image/index.js +1 -1
  136. package/index.js +404 -402
  137. package/input/Group.js +8 -8
  138. package/input/Input.js +322 -322
  139. package/input/InputElement.js +1 -1
  140. package/input/Password.js +1 -1
  141. package/input/Search.js +1 -1
  142. package/input/Textarea.js +1 -1
  143. package/input-number/index.js +1 -1
  144. package/input-tag/InputTag.js +40 -40
  145. package/layout/Content.js +7 -7
  146. package/layout/Footer.js +9 -9
  147. package/layout/Header.js +7 -7
  148. package/layout/Sider.js +55 -55
  149. package/layout/index.js +32 -32
  150. package/link/index.js +35 -35
  151. package/list/Item.js +29 -29
  152. package/list/Meta.js +12 -12
  153. package/list/index.js +2 -2
  154. package/mentions/index.js +2 -2
  155. package/menu/Menu.js +2 -2
  156. package/menu/OverflowWrap.js +1 -1
  157. package/menu/index.js +2 -2
  158. package/message/index.js +1 -1
  159. package/message/useMessage.js +1 -1
  160. package/modal/Confirm.js +2 -2
  161. package/modal/Modal.js +2 -2
  162. package/modal/index.js +1 -1
  163. package/notice/index.js +1 -1
  164. package/notification/index.js +5 -5
  165. package/notification/useNotification.js +1 -1
  166. package/overflow-ellipsis/OverflowItem.js +12 -12
  167. package/overflow-ellipsis/index.js +24 -24
  168. package/package.json +1 -1
  169. package/page-header/index.js +38 -38
  170. package/pagination/PageItem.js +16 -16
  171. package/pagination/PageJumper.js +1 -1
  172. package/pagination/PageOption.js +2 -2
  173. package/pagination/Pagination.js +2 -2
  174. package/pagination/index.js +1 -1
  175. package/picker/Input.js +69 -69
  176. package/picker/InputRange.js +111 -111
  177. package/popconfirm/index.js +61 -61
  178. package/popover/index.js +35 -35
  179. package/progress/index.js +22 -22
  180. package/radio/Group.js +2 -2
  181. package/radio/GroupBlock.js +2 -2
  182. package/radio/Radio.js +2 -2
  183. package/radio/index.js +2 -2
  184. package/rate/index.js +49 -49
  185. package/resize-box/ResizeTrigger.js +34 -34
  186. package/resize-box/Split.js +56 -56
  187. package/resize-box/SplitGroup.js +55 -55
  188. package/resize-box/index.js +51 -51
  189. package/result/index.js +41 -41
  190. package/select/Option.js +1 -1
  191. package/select/Select.js +2 -2
  192. package/select/index.js +2 -2
  193. package/select/util.js +1 -1
  194. package/select-view/Core.js +125 -125
  195. package/skeleton/index.js +20 -20
  196. package/slider/Button.js +57 -57
  197. package/slider/index.js +116 -116
  198. package/space/index.js +46 -44
  199. package/spin/DotLoading.js +10 -10
  200. package/spin/index.js +44 -44
  201. package/statistic/Countdown.js +34 -34
  202. package/statistic/index.js +61 -61
  203. package/steps/index.js +55 -55
  204. package/style.css +1 -1
  205. package/switch/index.js +54 -54
  206. package/table/Table.js +2 -2
  207. package/table/index.js +1 -1
  208. package/tabs/Tab.js +2 -2
  209. package/tabs/TabContent.js +2 -2
  210. package/tabs/TabPane.js +12 -12
  211. package/tabs/index.js +2 -2
  212. package/tag/index.js +45 -45
  213. package/time-picker/Picker.js +76 -76
  214. package/time-picker/TimePicker.js +136 -136
  215. package/time-picker/index.js +8 -8
  216. package/timeline/Item.js +47 -47
  217. package/timeline/Timeline.js +41 -41
  218. package/tooltip/index.js +29 -29
  219. package/transfer/Item.js +2 -2
  220. package/transfer/List.js +2 -2
  221. package/transfer/index.js +2 -2
  222. package/tree/Animation.js +2 -2
  223. package/tree/Node.js +2 -2
  224. package/tree/NodeList.js +1 -1
  225. package/tree/Tree.js +2 -2
  226. package/tree/index.js +1 -1
  227. package/tree-select/List.js +1 -1
  228. package/tree-select/Select.js +2 -2
  229. package/tree-select/index.js +2 -2
  230. package/trigger/index.js +60 -60
  231. package/types/config-provider/ConfigProvider.d.ts +2 -2
  232. package/types/config-provider/context.d.ts +1 -1
  233. package/types/date-picker/index.d.ts +8 -9
  234. package/types/date-picker/interface.d.ts +9 -9
  235. package/types/index.d.ts +1 -1
  236. package/types/picker/Input.d.ts +2 -2
  237. package/types/space/index.d.ts +2 -1
  238. package/types/utils/names.d.ts +1 -1
  239. package/typography/Base.js +53 -53
  240. package/typography/Ellipsis.js +6 -6
  241. package/typography/Operations.js +28 -28
  242. package/typography/Paragraph.js +8 -8
  243. package/typography/Typography.js +7 -7
  244. package/typography/index.js +1 -1
  245. package/upload/TriggerNode.js +47 -47
  246. package/upload/Upload.js +184 -184
  247. package/utils/contextHolder.js +3 -3
  248. package/utils/index.js +1 -1
  249. package/utils/names.js +1 -1
  250. package/utils/setPrimaryColor.js +18 -13
  251. package/verification-code/VerificationCode.js +49 -49
  252. package/version/index.js +1 -1
  253. package/watermark/Watermark.js +24 -24
  254. package/chunk/CQvM33Vg.js +0 -724
  255. package/chunk/yhU2zeeu.js +0 -1461
  256. /package/types/date-picker/{PickerRange.d.ts → RangePicker.d.ts} +0 -0
package/dropdown/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as i, jsxs as S } from "react/jsx-runtime";
2
2
  import A from "lodash/get";
3
3
  import l, { forwardRef as W, useContext as z, useRef as j } from "react";
4
- import { a as F } from "../chunk/CQvM33Vg.js";
4
+ import { a as F } from "../chunk/Cplu5dtQ.js";
5
5
  import { u as G } from "../chunk/BFTV6myl.js";
6
6
  import { u as X } from "../chunk/CXPOj2uy.js";
7
7
  import Y, { EventsByTriggerNeed as Z } from "../trigger/index.js";
@@ -19,66 +19,66 @@ const ro = {
19
19
  icon: /* @__PURE__ */ i(Q, {}),
20
20
  unmountOnExit: !0
21
21
  };
22
- function so(x, R) {
23
- const { componentConfig: u } = z(F), d = G(
24
- x,
22
+ function so(B, R) {
23
+ const { componentConfig: u } = z(F), g = G(
24
+ B,
25
25
  ro,
26
26
  u == null ? void 0 : u["Dropdown.Button"]
27
27
  ), {
28
- className: w,
29
- style: a,
30
- children: B,
28
+ className: a,
29
+ style: c,
30
+ children: M,
31
31
  disabled: t,
32
- position: g = "br",
33
- type: b = "default",
32
+ position: b = "br",
33
+ type: h = "default",
34
34
  size: n,
35
- icon: M = /* @__PURE__ */ i(Q, {}),
35
+ icon: V = /* @__PURE__ */ i(Q, {}),
36
36
  onClick: f,
37
- buttonProps: V,
37
+ buttonProps: x,
38
38
  rightButtonProps: r,
39
39
  // 潘启宝添加
40
40
  buttonsRender: C,
41
41
  ...s
42
- } = d;
42
+ } = g;
43
43
  let p = /* @__PURE__ */ i(
44
44
  k,
45
45
  {
46
46
  disabled: t,
47
- type: b,
47
+ type: h,
48
48
  size: n,
49
49
  onClick: f,
50
- ...V,
51
- children: B
50
+ ...x,
51
+ children: M
52
52
  }
53
53
  ), e = /* @__PURE__ */ i(
54
54
  k,
55
55
  {
56
56
  disabled: t,
57
- type: b,
57
+ type: h,
58
58
  size: n,
59
- icon: M,
59
+ icon: V,
60
60
  ...r
61
61
  }
62
62
  );
63
63
  C && ([p, e] = C([p, e]));
64
- const h = t || !e || e.props && e.props.loading;
64
+ const y = t || !e || e.props && e.props.loading;
65
65
  return /* @__PURE__ */ S(
66
66
  k.Group,
67
67
  {
68
- className: w,
69
- style: a,
68
+ className: a,
69
+ style: c,
70
70
  ref: R,
71
- ...L(d),
71
+ ...L(g),
72
72
  children: [
73
73
  p,
74
74
  /* @__PURE__ */ i(
75
75
  O,
76
76
  {
77
77
  disabled: t,
78
- position: g,
78
+ position: b,
79
79
  ...s,
80
80
  triggerProps: {
81
- disabled: h,
81
+ disabled: y,
82
82
  ...s == null ? void 0 : s.triggerProps
83
83
  },
84
84
  children: e
@@ -90,65 +90,65 @@ function so(x, R) {
90
90
  }
91
91
  const q = W(so);
92
92
  q.displayName = "DropdownButton";
93
- function io(x, R) {
93
+ function io(B, R) {
94
94
  const u = {
95
95
  position: "bl",
96
96
  trigger: "hover",
97
97
  unmountOnExit: !0
98
- }, d = {
98
+ }, g = {
99
99
  left: 4,
100
100
  right: 4,
101
101
  top: 4,
102
102
  bottom: 4
103
- }, { getPrefixCls: w, componentConfig: a, rtl: B } = z(F), t = G(
104
- x,
103
+ }, { getPrefixCls: a, componentConfig: c, rtl: M } = z(F), t = G(
104
+ B,
105
105
  u,
106
- a == null ? void 0 : a.Dropdown
106
+ c == null ? void 0 : c.Dropdown
107
107
  ), {
108
- trigger: g,
109
- droplist: b,
108
+ trigger: b,
109
+ droplist: h,
110
110
  children: n,
111
- position: M,
111
+ position: V,
112
112
  disabled: f,
113
- unmountOnExit: V,
113
+ unmountOnExit: x,
114
114
  triggerProps: r,
115
115
  getPopupContainer: C,
116
116
  onVisibleChange: s,
117
117
  ...p
118
- } = t, e = w("dropdown"), h = j(null), [E, H] = X(!1, {
118
+ } = t, e = a == null ? void 0 : a("dropdown"), y = j(null), [E, H] = X(!1, {
119
119
  defaultValue: t.defaultPopupVisible,
120
120
  value: t.popupVisible
121
- }), _ = () => l.Children.only(b || /* @__PURE__ */ i("span", {})), N = (o) => {
122
- var c;
123
- H(o), s == null || s(o), (c = r == null ? void 0 : r.onVisibleChange) == null || c.call(r, o);
121
+ }), _ = () => l.Children.only(h || /* @__PURE__ */ i("span", {})), N = (o) => {
122
+ var m;
123
+ H(o), s == null || s(o), (m = r == null ? void 0 : r.onVisibleChange) == null || m.call(r, o);
124
124
  }, J = (o) => {
125
125
  o !== E && N(o);
126
126
  }, K = () => {
127
127
  const o = _();
128
128
  if (A(o, "type.__PQB_MENU__") || A(o, "props.isMenu")) {
129
- let c = !0;
130
- for (const y of l.Children.toArray(o.props.children))
131
- if (y != null) {
132
- c = !1;
129
+ let m = !0;
130
+ for (const D of l.Children.toArray(o.props.children))
131
+ if (D != null) {
132
+ m = !1;
133
133
  break;
134
134
  }
135
135
  return l.cloneElement(o, {
136
136
  prefixCls: U(`${e}-menu`, {
137
- [`${e}-menu-hidden`]: c
137
+ [`${e}-menu-hidden`]: m
138
138
  }),
139
139
  inDropdown: !0,
140
140
  selectable: !1,
141
- onClickMenuItem: (...y) => {
142
- var P, T, $;
143
- let D = null;
141
+ onClickMenuItem: (...D) => {
142
+ var w, T, $;
143
+ let P = null;
144
144
  const I = _();
145
- I.props.onClickMenuItem && (D = I.props.onClickMenuItem(
146
- ...y
145
+ I.props.onClickMenuItem && (P = I.props.onClickMenuItem(
146
+ ...D
147
147
  ));
148
- const m = (T = (P = h.current) == null ? void 0 : P.getRootElement) == null ? void 0 : T.call(P);
149
- ($ = m == null ? void 0 : m.focus) == null || $.call(m), D instanceof Promise ? D.finally(
148
+ const d = (T = (w = y.current) == null ? void 0 : w.getRootElement) == null ? void 0 : T.call(w);
149
+ ($ = d == null ? void 0 : d.focus) == null || $.call(d), P instanceof Promise ? P.finally(
150
150
  () => N(!1)
151
- ) : D !== !1 && N(!1);
151
+ ) : P !== !1 && N(!1);
152
152
  }
153
153
  });
154
154
  }
@@ -157,20 +157,20 @@ function io(x, R) {
157
157
  return /* @__PURE__ */ i(
158
158
  Y,
159
159
  {
160
- ref: h,
160
+ ref: y,
161
161
  classNames: "slideDynamicOrigin",
162
162
  childrenPrefix: e,
163
- trigger: g,
163
+ trigger: b,
164
164
  popup: K,
165
165
  mouseEnterDelay: 400,
166
166
  mouseLeaveDelay: 400,
167
167
  disabled: f,
168
- unmountOnExit: V,
169
- position: M,
168
+ unmountOnExit: x,
169
+ position: V,
170
170
  popupVisible: E,
171
- popupAlign: d,
171
+ popupAlign: g,
172
172
  getPopupContainer: C,
173
- alignPoint: g === "contextMenu",
173
+ alignPoint: b === "contextMenu",
174
174
  ...to(p, Z),
175
175
  ...L(p),
176
176
  ...eo(r, ["onVisibleChange"]),
@@ -181,7 +181,7 @@ function io(x, R) {
181
181
  className: U(
182
182
  {
183
183
  [`${e}-popup-visible`]: E,
184
- [`${[e]}-rtl`]: B
184
+ [`${[e]}-rtl`]: M
185
185
  },
186
186
  n.props.className
187
187
  ),
package/empty/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@unicom-cloud/icons/IconUiEmpty";
3
3
  import "react";
4
- import { E as e } from "../chunk/CQvM33Vg.js";
4
+ import { E as e } from "../chunk/Cplu5dtQ.js";
5
5
  import "../chunk/BFTV6myl.js";
6
6
  import "@unicom-cloud/utils/class-name";
7
7
  export {
package/form/Form.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { p as k } from "../chunk/Coz3rCng.js";
3
- import v from "lodash/isPlainObject";
4
- import O from "lodash/merge";
5
- import { forwardRef as A, useContext as $, useRef as _, useEffect as H, useImperativeHandle as U } from "react";
6
- import { a as W, b as X } from "../chunk/CQvM33Vg.js";
7
- import { u as B } from "../chunk/5_U1CBIu.js";
8
- import { u as G } from "../chunk/BFTV6myl.js";
9
- import J from "@unicom-cloud/utils/class-name";
10
- import { o as K } from "../chunk/BKKEev13.js";
11
- import { FormProviderContext as L, FormContext as Q } from "./context.js";
12
- import Y from "./useForm.js";
13
- import { ID_SUFFIX as Z } from "./util.js";
2
+ import { p as O } from "../chunk/Coz3rCng.js";
3
+ import A from "lodash/isPlainObject";
4
+ import _ from "lodash/merge";
5
+ import { forwardRef as H, useContext as V, useRef as U, useEffect as W, useImperativeHandle as X } from "react";
6
+ import { a as B, b as G } from "../chunk/Cplu5dtQ.js";
7
+ import { u as J } from "../chunk/5_U1CBIu.js";
8
+ import { u as K } from "../chunk/BFTV6myl.js";
9
+ import L from "@unicom-cloud/utils/class-name";
10
+ import { o as Q } from "../chunk/BKKEev13.js";
11
+ import { FormProviderContext as Y, FormContext as Z } from "./context.js";
12
+ import ee from "./useForm.js";
13
+ import { ID_SUFFIX as oe } from "./util.js";
14
14
  function f(a, u) {
15
- const i = u.replace(/[[.]/g, "_").replace(/\]/g, "");
16
- return a ? `${a}-${i}` : `${i}`;
15
+ const n = u.replace(/[[.]/g, "_").replace(/\]/g, "");
16
+ return a ? `${a}-${n}` : `${n}`;
17
17
  }
18
- const ee = {
18
+ const re = {
19
19
  layout: "horizontal",
20
20
  labelCol: { span: 5, offset: 0 },
21
21
  labelAlign: "right",
@@ -23,60 +23,60 @@ const ee = {
23
23
  requiredSymbol: !0,
24
24
  wrapper: "form",
25
25
  validateTrigger: "onChange"
26
- }, oe = (a, u) => {
27
- var h, S;
28
- const i = $(W), t = $(L), d = _(null), [l] = Y(
26
+ }, te = (a, u) => {
27
+ var h, S, $, y;
28
+ const n = V(B), t = V(Y), d = U(null), [l] = ee(
29
29
  a.form
30
- ), e = G(
30
+ ), e = K(
31
31
  a,
32
- ee,
33
- (h = i.componentConfig) == null ? void 0 : h.Form
32
+ re,
33
+ (h = n.componentConfig) == null ? void 0 : h.Form
34
34
  ), {
35
35
  layout: g,
36
- labelCol: y,
37
- wrapperCol: V,
38
- wrapper: R,
36
+ labelCol: R,
37
+ wrapperCol: w,
38
+ wrapper: I,
39
39
  id: F,
40
- requiredSymbol: w,
41
- labelAlign: I,
42
- disabled: M,
43
- colon: N,
44
- className: z,
45
- validateTrigger: T,
46
- prefixCls: x,
47
- validateMessages: E,
48
- ...P
49
- } = e, m = x || i.getPrefixCls("form"), q = i.rtl, b = "size" in e ? e.size : i.size, C = l.getInnerMethods(!0);
50
- B(() => {
40
+ requiredSymbol: M,
41
+ labelAlign: N,
42
+ disabled: z,
43
+ colon: T,
44
+ className: E,
45
+ validateTrigger: P,
46
+ prefixCls: q,
47
+ validateMessages: D,
48
+ ...j
49
+ } = e, m = q || ((S = n.getPrefixCls) == null ? void 0 : S.call(n, "form")), k = n.rtl, b = "size" in e ? e.size : n.size, C = l.getInnerMethods(!0);
50
+ J(() => {
51
51
  C.innerSetInitialValues(e.initialValues);
52
- }), H(() => {
52
+ }), W(() => {
53
53
  let o;
54
54
  return t.register && (o = t.register(e.id, l)), o;
55
- }, [e.id, l]), l.scrollToField = (o, n) => {
56
- const r = d.current, s = e.id;
55
+ }, [e.id, l]), l.scrollToField = (o, s) => {
56
+ const r = d.current, i = e.id;
57
57
  if (!r)
58
58
  return;
59
59
  let c = r.querySelector(
60
- `#${f(s, o)}`
60
+ `#${f(i, o)}`
61
61
  );
62
62
  c || (c = r.querySelector(
63
- `#${f(s, o)}${Z}`
64
- )), c && k(c, {
63
+ `#${f(i, o)}${oe}`
64
+ )), c && O(c, {
65
65
  behavior: "smooth",
66
66
  block: "nearest",
67
67
  scrollMode: "if-needed",
68
- ...n
68
+ ...s
69
69
  });
70
70
  }, C.innerSetCallbacks({
71
- onValuesChange: (o, n) => {
72
- var r, s;
73
- (r = e.onValuesChange) == null || r.call(e, o, n), (s = t.onFormValuesChange) == null || s.call(t, e.id, o);
71
+ onValuesChange: (o, s) => {
72
+ var r, i;
73
+ (r = e.onValuesChange) == null || r.call(e, o, s), (i = t.onFormValuesChange) == null || i.call(t, e.id, o);
74
74
  },
75
75
  onChange: e.onChange,
76
76
  onValidateFail: (o) => {
77
- const n = e.scrollToFirstError;
78
- if (n) {
79
- const r = v(n) ? n : {};
77
+ const s = e.scrollToFirstError;
78
+ if (s) {
79
+ const r = A(s) ? s : {};
80
80
  l.scrollToField(
81
81
  Object.keys(o)[0],
82
82
  r
@@ -85,44 +85,44 @@ const ee = {
85
85
  },
86
86
  onSubmitFailed: e.onSubmitFailed,
87
87
  onSubmit: (o) => {
88
- var r, s;
89
- const n = (r = e.onSubmit) == null ? void 0 : r.call(e, o);
90
- return (s = t.onFormSubmit) == null || s.call(t, e.id, o), n;
88
+ var r, i;
89
+ const s = (r = e.onSubmit) == null ? void 0 : r.call(e, o);
90
+ return (i = t.onFormSubmit) == null || i.call(t, e.id, o), s;
91
91
  },
92
92
  onReset: (o) => {
93
- var r, s;
94
- const n = (r = e.onReset) == null ? void 0 : r.call(e, o);
95
- return (s = t == null ? void 0 : t.onFormReset) == null || s.call(t, e.id, o), n;
93
+ var r, i;
94
+ const s = (r = e.onReset) == null ? void 0 : r.call(e, o);
95
+ return (i = t == null ? void 0 : t.onFormReset) == null || i.call(t, e.id, o), s;
96
96
  }
97
97
  });
98
- const D = {
99
- requiredSymbol: w,
100
- labelAlign: I,
101
- disabled: M,
102
- colon: N,
103
- labelCol: y,
104
- wrapperCol: V,
98
+ const v = {
99
+ requiredSymbol: M,
100
+ labelAlign: N,
101
+ disabled: z,
102
+ colon: T,
103
+ labelCol: R,
104
+ wrapperCol: w,
105
105
  layout: g,
106
106
  store: l,
107
107
  prefixCls: m,
108
- validateTrigger: T,
109
- validateMessages: O(
108
+ validateTrigger: P,
109
+ validateMessages: _(
110
110
  {},
111
- (S = i.locale.Form) == null ? void 0 : S.validateMessages,
112
- E
111
+ (y = ($ = n.locale) == null ? void 0 : $.Form) == null ? void 0 : y.validateMessages,
112
+ D
113
113
  ),
114
114
  getFormElementId: (o) => f(F, o)
115
- }, j = Q;
116
- return U(u, () => ({
115
+ }, x = Z;
116
+ return X(u, () => ({
117
117
  ...l,
118
118
  getRootDOMNode() {
119
119
  return d.current;
120
120
  }
121
- })), /* @__PURE__ */ p(X, { ...i, childrenName: "Form", size: b, children: /* @__PURE__ */ p(j.Provider, { value: D, children: /* @__PURE__ */ p(
122
- R,
121
+ })), /* @__PURE__ */ p(G, { ...n, childrenName: "Form", size: b, children: /* @__PURE__ */ p(x.Provider, { value: v, children: /* @__PURE__ */ p(
122
+ I,
123
123
  {
124
124
  ref: d,
125
- ...K(P, [
125
+ ...Q(j, [
126
126
  "form",
127
127
  "size",
128
128
  "initialValues",
@@ -135,12 +135,12 @@ const ee = {
135
135
  "onReset"
136
136
  ]),
137
137
  ...e.wrapperProps,
138
- className: J(
138
+ className: L(
139
139
  m,
140
140
  `${m}-${g}`,
141
141
  `${m}-size-${b}`,
142
- { [`${m}-rtl`]: q },
143
- z
142
+ { [`${m}-rtl`]: k },
143
+ E
144
144
  ),
145
145
  style: e.style,
146
146
  onSubmit: (o) => {
@@ -153,8 +153,8 @@ const ee = {
153
153
  children: e.children
154
154
  }
155
155
  ) }) });
156
- }, re = A(oe);
157
- re.displayName = "Form";
156
+ }, ne = H(te);
157
+ ne.displayName = "Form";
158
158
  export {
159
- re as default
159
+ ne as default
160
160
  };