@unicom-cloud/ui 0.8.77 → 0.8.79

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 (346) hide show
  1. package/Affix.js +3 -3
  2. package/Alert.js +3 -3
  3. package/AutoComplete.js +5 -5
  4. package/BackTop.js +5 -5
  5. package/Badge.js +3 -3
  6. package/Breadcrumb.js +4 -4
  7. package/Button.js +2 -2
  8. package/Calendar.js +4 -4
  9. package/Card.js +2 -2
  10. package/Carousel.js +2 -2
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +3 -3
  15. package/Comment.js +2 -2
  16. package/ConfigProvider.js +1 -1
  17. package/Copy.js +4 -4
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +2 -2
  20. package/Divider.js +2 -2
  21. package/Draggable.js +2 -2
  22. package/Dropdown.js +5 -5
  23. package/Empty.js +2 -2
  24. package/Icon.js +9 -5
  25. package/IconHover.js +2 -2
  26. package/Image.js +1 -1
  27. package/InputNumber.js +3 -3
  28. package/Layout.js +2 -2
  29. package/Link.js +3 -3
  30. package/List.js +4 -4
  31. package/Mentions.js +5 -5
  32. package/Menu.js +1 -1
  33. package/Message.js +3 -3
  34. package/Modal.js +1 -1
  35. package/Notice.js +9 -8
  36. package/Notification.js +3 -3
  37. package/OverflowEllipsis.js +2 -2
  38. package/PageHeader.js +3 -3
  39. package/Pagination.js +1 -1
  40. package/Popconfirm.js +3 -3
  41. package/Popover.js +3 -3
  42. package/Progress.js +2 -2
  43. package/Radio.js +1 -1
  44. package/Rate.js +3 -3
  45. package/ResizeBox.js +3 -3
  46. package/Result.js +2 -2
  47. package/Select.js +1 -1
  48. package/SelectView.js +5 -6
  49. package/Skeleton.js +2 -2
  50. package/Slider.js +4 -4
  51. package/Space.js +2 -2
  52. package/SpeechSynthesis.js +18 -20
  53. package/Spin.js +3 -3
  54. package/Statistic.js +3 -3
  55. package/Steps.js +2 -2
  56. package/Switch.js +7 -8
  57. package/Table.js +1 -1
  58. package/Tabs.js +1 -1
  59. package/Tag.js +3 -3
  60. package/Tooltip.js +3 -3
  61. package/Transfer.js +4 -4
  62. package/Tree.js +1 -1
  63. package/TreeSelect.js +1 -1
  64. package/Trigger.js +9 -10
  65. package/Typography.js +1 -1
  66. package/affix/index.js +17 -17
  67. package/alert/index.js +13 -13
  68. package/anchor/Anchor.js +40 -40
  69. package/anchor/Link.js +14 -14
  70. package/anchor/util.js +2 -2
  71. package/auto-complete/index.js +5 -5
  72. package/avatar/Avatar.js +17 -17
  73. package/avatar/Group.js +13 -13
  74. package/back-top/index.js +13 -13
  75. package/badge/Count.js +13 -13
  76. package/badge/index.js +21 -21
  77. package/breadcrumb/Item.js +25 -25
  78. package/breadcrumb/index.js +12 -12
  79. package/button/Group.js +6 -6
  80. package/button/index.js +30 -30
  81. package/calendar/Month.js +2 -2
  82. package/calendar/Year.js +1 -1
  83. package/calendar/index.js +4 -4
  84. package/card/Grid.js +13 -13
  85. package/card/Meta.js +13 -13
  86. package/card/index.js +29 -29
  87. package/carousel/Arrow.js +6 -6
  88. package/carousel/Indicator.js +27 -27
  89. package/carousel/index.js +24 -24
  90. package/cascader/Cascader.js +8 -8
  91. package/cascader/index.js +1 -1
  92. package/cascader/util.js +1 -1
  93. package/checkbox/Checkbox.js +4 -4
  94. package/checkbox/Group.js +4 -4
  95. package/checkbox/GroupBlock.js +3 -3
  96. package/checkbox/index.js +2 -2
  97. package/chunk/{ZrBrCzQX.js → B4WG1mhs.js} +6 -7
  98. package/chunk/{Cwm8LL5p.js → B4mZh-RK.js} +7245 -7249
  99. package/chunk/{CjqvxJml.js → BG7YGUsx.js} +32 -32
  100. package/chunk/{BhBEMwvI.js → BNevupAU.js} +18 -20
  101. package/chunk/BYdIoY50.js +17 -0
  102. package/chunk/{Cc_-i0o_.js → BZ3igxQN.js} +6 -7
  103. package/chunk/{uEGHykhe.js → BZ9g7J4R.js} +1 -1
  104. package/chunk/BsUZRQDT.js +23 -0
  105. package/chunk/{CBgu99gQ.js → C5X4hOkx.js} +130 -130
  106. package/chunk/{B0n0iRhF.js → CCKr5jj1.js} +1 -1
  107. package/chunk/{CNcLypMY.js → CQvM33Vg.js} +190 -189
  108. package/chunk/CXPOj2uy.js +19 -0
  109. package/chunk/{DAAff-FT.js → ClM74To2.js} +9 -10
  110. package/chunk/{RS6OAxzv.js → D-ap9qEk.js} +2 -2
  111. package/chunk/{tpmioyz1.js → DEiyXzBZ.js} +28 -28
  112. package/chunk/{CplLA01W.js → DEuVgCzp.js} +45 -52
  113. package/chunk/{BPQXH_5i.js → DYspELhF.js} +43 -43
  114. package/chunk/DxYoPlum.js +50 -0
  115. package/chunk/{BpYX5PN4.js → NPajzdOv.js} +2 -2
  116. package/chunk/{BBkdXHrJ.js → rT6qmv-Y.js} +1 -1
  117. package/chunk/{BC5fEyWK.js → yLRv5RIK.js} +61 -61
  118. package/chunk/{C_4I3haT.js → yhU2zeeu.js} +96 -96
  119. package/collapse/Collapse.js +4 -4
  120. package/collapse/Item.js +4 -4
  121. package/collapse/index.js +1 -1
  122. package/color-picker/ControlBar.js +22 -22
  123. package/color-picker/InputAlpha.js +1 -1
  124. package/color-picker/InputHex.js +1 -1
  125. package/color-picker/InputRgb.js +1 -1
  126. package/color-picker/Palette.js +1 -1
  127. package/color-picker/Panel.js +4 -4
  128. package/color-picker/index.js +3 -3
  129. package/comment/index.js +18 -18
  130. package/config-provider/ConfigProvider.js +2 -2
  131. package/config-provider/context.js +2 -2
  132. package/config-provider/index.js +2 -2
  133. package/copy/index.js +23 -23
  134. package/date-picker/Picker.js +41 -41
  135. package/date-picker/PickerRange.js +3 -3
  136. package/date-picker/index.js +1 -1
  137. package/descriptions/index.js +28 -28
  138. package/divider/index.js +15 -15
  139. package/draggable/Item.js +11 -11
  140. package/draggable/index.js +15 -15
  141. package/drawer/Drawer.js +31 -31
  142. package/dropdown/Button.js +1 -1
  143. package/dropdown/index.js +22 -22
  144. package/empty/index.js +2 -2
  145. package/form/Control.js +46 -46
  146. package/form/Form.js +12 -12
  147. package/form/FormItem.js +12 -12
  148. package/form/FormLabel.js +11 -11
  149. package/form/context.js +7 -6
  150. package/form/promisify.js +9 -10
  151. package/form/store.js +1 -1
  152. package/form/util.js +1 -1
  153. package/grid/Col.js +38 -38
  154. package/grid/Row.js +15 -15
  155. package/grid/grid-item.js +17 -17
  156. package/grid/grid.js +28 -28
  157. package/hooks/index.js +6 -6
  158. package/hooks/useInView.js +1 -1
  159. package/hooks/useIntersectionObserver.js +1 -1
  160. package/hooks/useKeyboardEvent.js +1 -1
  161. package/hooks/useMergeValue.js +1 -1
  162. package/hooks/useOverrideRef.js +1 -1
  163. package/hooks/usePrefersColorSchemeDark.js +1 -1
  164. package/hooks/useVerificationCode.js +30 -30
  165. package/icon/index.js +20 -16
  166. package/icon-hover/index.js +2 -2
  167. package/image/Image.js +22 -22
  168. package/image/ImageFooter.js +2 -2
  169. package/image/ImagePreview.js +11 -11
  170. package/image/ImagePreviewArrow.js +16 -16
  171. package/image/ImagePreviewGroup.js +2 -2
  172. package/image/ImagePreviewToolbar.js +7 -7
  173. package/image/TriggerForToolbar.js +7 -7
  174. package/image/index.js +1 -1
  175. package/index.js +547 -580
  176. package/input/Group.js +10 -10
  177. package/input/Input.js +213 -214
  178. package/input/InputElement.js +10 -11
  179. package/input/Password.js +4 -4
  180. package/input/Search.js +3 -3
  181. package/input/Textarea.js +7 -8
  182. package/input/useComposition.js +6 -6
  183. package/input-number/index.js +3 -3
  184. package/input-tag/InputTag.js +110 -111
  185. package/layout/Content.js +4 -4
  186. package/layout/Footer.js +6 -6
  187. package/layout/Header.js +8 -8
  188. package/layout/Sider.js +29 -29
  189. package/layout/index.js +16 -16
  190. package/link/index.js +27 -27
  191. package/list/Item.js +5 -5
  192. package/list/Meta.js +11 -11
  193. package/list/index.js +4 -4
  194. package/locale/en-US.js +1 -1
  195. package/locale/tr-TR.js +1 -1
  196. package/mentions/index.js +5 -5
  197. package/menu/Item.js +11 -11
  198. package/menu/ItemGroup.js +8 -8
  199. package/menu/Menu.js +5 -5
  200. package/menu/OverflowWrap.js +2 -2
  201. package/menu/index.js +2 -2
  202. package/message/index.js +3 -3
  203. package/message/useMessage.js +1 -1
  204. package/modal/Confirm.js +2 -2
  205. package/modal/Modal.js +7 -7
  206. package/modal/index.js +1 -1
  207. package/notice/index.js +9 -8
  208. package/notification/index.js +3 -3
  209. package/notification/useNotification.js +1 -1
  210. package/overflow-ellipsis/OverflowItem.js +6 -6
  211. package/overflow-ellipsis/index.js +27 -27
  212. package/package.json +1 -1
  213. package/page-header/index.js +3 -3
  214. package/pagination/PageItem.js +7 -7
  215. package/pagination/PageJumper.js +1 -1
  216. package/pagination/PageOption.js +3 -3
  217. package/pagination/Pagination.js +4 -4
  218. package/pagination/index.js +1 -1
  219. package/picker/Input.js +7 -7
  220. package/picker/InputRange.js +77 -77
  221. package/popconfirm/index.js +11 -11
  222. package/popover/index.js +21 -21
  223. package/progress/CircleProgress.js +14 -14
  224. package/progress/LineProgess.js +14 -14
  225. package/progress/StepProgress.js +9 -9
  226. package/progress/index.js +26 -26
  227. package/radio/Group.js +4 -4
  228. package/radio/GroupBlock.js +3 -3
  229. package/radio/Radio.js +4 -4
  230. package/radio/index.js +2 -2
  231. package/rate/index.js +16 -16
  232. package/resize-box/ResizeTrigger.js +27 -28
  233. package/resize-box/Split.js +21 -21
  234. package/resize-box/SplitGroup.js +40 -40
  235. package/resize-box/index.js +23 -23
  236. package/result/index.js +29 -29
  237. package/select/Option.js +2 -2
  238. package/select/Select.js +11 -12
  239. package/select/index.js +2 -2
  240. package/select/util.js +5 -5
  241. package/select-view/Core.js +104 -106
  242. package/select-view/index.js +22 -23
  243. package/skeleton/Image.js +14 -14
  244. package/skeleton/Text.js +16 -16
  245. package/skeleton/index.js +11 -11
  246. package/slider/Button.js +4 -4
  247. package/slider/Dot.js +9 -9
  248. package/slider/Input.js +20 -20
  249. package/slider/Tick.js +14 -14
  250. package/slider/index.js +103 -103
  251. package/slider/util.js +3 -3
  252. package/space/index.js +14 -14
  253. package/speech-synthesis/index.js +26 -28
  254. package/spin/DotLoading.js +1 -1
  255. package/spin/index.js +16 -16
  256. package/statistic/Countdown.js +17 -17
  257. package/statistic/index.js +32 -32
  258. package/steps/Step.js +8 -8
  259. package/steps/index.js +17 -17
  260. package/style.css +1 -1
  261. package/switch/index.js +32 -33
  262. package/table/Table.js +5 -5
  263. package/table/index.js +1 -1
  264. package/tabs/Tab.js +4 -4
  265. package/tabs/TabContent.js +3 -3
  266. package/tabs/TabPane.js +11 -11
  267. package/tabs/index.js +2 -2
  268. package/tabs/util.js +1 -1
  269. package/tag/index.js +16 -16
  270. package/time-picker/Picker.js +50 -50
  271. package/time-picker/TimeColumn.js +8 -8
  272. package/time-picker/TimePicker.js +32 -32
  273. package/time-picker/util.js +1 -1
  274. package/timeline/Item.js +15 -15
  275. package/timeline/Timeline.js +24 -24
  276. package/tooltip/index.js +23 -23
  277. package/transfer/Item.js +4 -4
  278. package/transfer/List.js +4 -4
  279. package/transfer/index.js +4 -4
  280. package/tree/Animation.js +3 -3
  281. package/tree/Node.js +3 -3
  282. package/tree/NodeList.js +2 -2
  283. package/tree/Tree.js +4 -4
  284. package/tree/index.js +1 -1
  285. package/tree-select/List.js +2 -2
  286. package/tree-select/Select.js +8 -9
  287. package/tree-select/index.js +2 -2
  288. package/trigger/getPopupStyle.js +18 -19
  289. package/trigger/index.js +32 -33
  290. package/types/button/index.d.ts +2 -2
  291. package/types/color-picker/colors.d.ts +1 -1
  292. package/types/date-picker/util.d.ts +1 -1
  293. package/types/icon/index.d.ts +3 -1
  294. package/types/index.d.ts +1 -1
  295. package/types/menu/context.d.ts +1 -1
  296. package/typography/Base.js +33 -35
  297. package/typography/EditContent.js +16 -16
  298. package/typography/Ellipsis.js +24 -26
  299. package/typography/Operations.js +1 -1
  300. package/typography/Paragraph.js +8 -8
  301. package/typography/Typography.js +7 -7
  302. package/typography/index.js +1 -1
  303. package/upload/TriggerNode.js +8 -8
  304. package/upload/Upload.js +64 -65
  305. package/upload/Uploader.js +12 -12
  306. package/upload/request.js +13 -12
  307. package/upload/request_.js +5 -6
  308. package/utils/PqbCSSTransition.js +1 -1
  309. package/utils/caseName.js +4 -3
  310. package/utils/className.js +4 -3
  311. package/utils/constant.js +3 -3
  312. package/utils/contextHolder.js +1 -1
  313. package/utils/copy.js +5 -4
  314. package/utils/fileToURL.js +4 -3
  315. package/utils/index.js +261 -298
  316. package/utils/is.js +78 -115
  317. package/utils/keyboardCode.js +4 -26
  318. package/utils/math.js +10 -32
  319. package/utils/react19Adapter.js +1 -1
  320. package/utils/reactDOM.js +1 -1
  321. package/utils/saveAs.js +4 -3
  322. package/utils/screenfull.js +4 -3
  323. package/utils/scrollIntoView.js +1 -1
  324. package/utils/setDarkTheme.js +1 -1
  325. package/utils/tree.js +7 -83
  326. package/utils/tween.js +1 -1
  327. package/utils/validate.js +1 -1
  328. package/verification-code/VerificationCode.js +25 -25
  329. package/version/index.js +1 -1
  330. package/virtual-list/VirtualList.js +1 -1
  331. package/watermark/Watermark.js +8 -8
  332. package/chunk/ATwvJ8j2.js +0 -6
  333. package/chunk/BFmckYou.js +0 -25
  334. package/chunk/Bl7BnD1R.js +0 -119
  335. package/chunk/Bmvhjhzq.js +0 -24
  336. package/chunk/BrOW642m.js +0 -130
  337. package/chunk/C0pRaDCf.js +0 -96
  338. package/chunk/CBzE-PUr.js +0 -23
  339. package/chunk/CUFsOxJ2.js +0 -10
  340. package/chunk/Ce1j9KTi.js +0 -6
  341. package/chunk/D0Dlbc2g.js +0 -41
  342. package/chunk/DRTWRsgI.js +0 -34
  343. package/chunk/DeV0v__J.js +0 -20
  344. package/chunk/DohlrJ4S.js +0 -50
  345. package/chunk/XTEsYGuF.js +0 -17
  346. package/chunk/yl4BU7Sd.js +0 -1068
package/form/Control.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var M = Object.defineProperty;
2
- var P = (p, g, e) => g in p ? M(p, g, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[g] = e;
3
- var s = (p, g, e) => P(p, typeof g != "symbol" ? g + "" : g, e);
2
+ var N = (p, g, e) => g in p ? M(p, g, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[g] = e;
3
+ var s = (p, g, e) => N(p, typeof g != "symbol" ? g + "" : g, e);
4
4
  import { jsx as m, jsxs as E } from "react/jsx-runtime";
5
- import W from "@unicom-cloud/icons/IconUiCheckCircleFill";
6
- import $ from "@unicom-cloud/icons/IconUiCloseCircleFill";
7
- import N from "@unicom-cloud/icons/IconUiExclamationCircleFill";
5
+ import P from "@unicom-cloud/icons/IconUiCheckCircleFill";
6
+ import W from "@unicom-cloud/icons/IconUiCloseCircleFill";
7
+ import $ from "@unicom-cloud/icons/IconUiExclamationCircleFill";
8
8
  import L from "@unicom-cloud/icons/IconUiLoading";
9
9
  import V from "lodash/get";
10
10
  import b from "lodash/isArray";
@@ -14,13 +14,13 @@ import F from "lodash/isFunction";
14
14
  import _ from "lodash/isNil";
15
15
  import j from "lodash/set";
16
16
  import I, { Component as z, isValidElement as A } from "react";
17
- import { p as G } from "../chunk/CUFsOxJ2.js";
17
+ import G from "@unicom-cloud/utils/class-name";
18
18
  import U from "../utils/warning.js";
19
19
  import { FormItemContext as O } from "./context.js";
20
20
  import { isFieldMatch as C, schemaValidate as k, isSyntheticEvent as q, ID_SUFFIX as B } from "./util.js";
21
21
  class x extends z {
22
22
  constructor(e, t) {
23
- var i, l, o;
23
+ var i, o, l;
24
24
  super(e);
25
25
  s(this, "context");
26
26
  // 校验信息
@@ -78,12 +78,12 @@ class x extends z {
78
78
  return e ? t.getInnerMethods(!0).innerGetFieldValue(e) : void 0;
79
79
  });
80
80
  s(this, "onStoreChange", (e, t) => {
81
- const i = b(t.field) ? t.field : [t.field], { field: l, shouldUpdate: o, dependencies: r } = this.props, a = (d) => {
82
- if (r && o && U(!0, "`shouldUpdate` of the `Form.Item` will be ignored."), r)
81
+ const i = b(t.field) ? t.field : [t.field], { field: o, shouldUpdate: l, dependencies: r } = this.props, a = (d) => {
82
+ if (r && l && U(!0, "`shouldUpdate` of the `Form.Item` will be ignored."), r)
83
83
  b(r) && r.some((n) => C(n, i)) && this.isTouched() && this.validateField();
84
- else if (o) {
84
+ else if (l) {
85
85
  let n = !1;
86
- F(o) ? n = o(t.prev, t.current, {
86
+ F(l) ? n = l(t.prev, t.current, {
87
87
  field: t.field,
88
88
  ...d
89
89
  }) : n = !y(t.prev, t.current), n && this.updateFormItem();
@@ -91,10 +91,10 @@ class x extends z {
91
91
  };
92
92
  switch (e) {
93
93
  case "reset":
94
- this.toggleTouched(!1), this.toggleValidateStatus(void 0), this.setErrors(null), this.setWarnings(null), r || o ? a() : this.updateFormItem();
94
+ this.toggleTouched(!1), this.toggleValidateStatus(void 0), this.setErrors(null), this.setWarnings(null), r || l ? a() : this.updateFormItem();
95
95
  break;
96
96
  case "innerSetValue":
97
- if (C(l, i)) {
97
+ if (C(o, i)) {
98
98
  this.toggleTouched(!0), this.updateFormItem();
99
99
  return;
100
100
  }
@@ -104,10 +104,10 @@ class x extends z {
104
104
  });
105
105
  break;
106
106
  case "setFieldValue":
107
- if (C(l, i)) {
107
+ if (C(o, i)) {
108
108
  this.toggleTouched(!0), t.data && "touched" in t.data && this.toggleTouched(t.data.touched), t.data && "warnings" in t.data && this.setWarnings(
109
109
  _(t.data.warnings) ? [] : [].concat(t.data.warnings)
110
- ), t.data && "errors" in t.data ? this.setErrors(t.data.errors) : y(V(t.prev, l), V(t.current, l)) || this.setErrors(null), this.updateFormItem();
110
+ ), t.data && "errors" in t.data ? this.setErrors(t.data.errors) : y(V(t.prev, o), V(t.current, o)) || this.setErrors(null), this.updateFormItem();
111
111
  return;
112
112
  }
113
113
  a();
@@ -119,16 +119,16 @@ class x extends z {
119
119
  if (!e) return;
120
120
  const { store: i } = this.context;
121
121
  i.getInnerMethods(!0).innerSetFieldValue(e, t);
122
- const o = {};
123
- j(o, e, t), (a = (r = this.props) == null ? void 0 : r.onValuesChange) == null || a.call(r, o, {
122
+ const l = {};
123
+ j(l, e, t), (a = (r = this.props) == null ? void 0 : r.onValuesChange) == null || a.call(r, l, {
124
124
  ...i.getFieldsValue()
125
125
  });
126
126
  });
127
127
  // 仅仅校验下值,不做任何状态变更
128
128
  s(this, "validateFieldOnly", () => {
129
- const { validateMessages: e } = this.context, { field: t, rules: i } = this.props, l = this.getFieldValue();
130
- return k(t, l, i, e).then(
131
- ({ error: o, warning: r }) => Promise.resolve({ error: o, value: l, warning: r, field: t })
129
+ const { validateMessages: e } = this.context, { field: t, rules: i } = this.props, o = this.getFieldValue();
130
+ return k(t, o, i, e).then(
131
+ ({ error: l, warning: r }) => Promise.resolve({ error: l, value: o, warning: r, field: t })
132
132
  );
133
133
  });
134
134
  /**
@@ -137,26 +137,26 @@ class x extends z {
137
137
  * @returns
138
138
  */
139
139
  s(this, "validateField", (e) => {
140
- const { validateTrigger: t, validateMessages: i } = this.context, { field: l, rules: o, validateTrigger: r } = this.props, a = this.getFieldValue(), d = () => {
140
+ const { validateTrigger: t, validateMessages: i } = this.context, { field: o, rules: l, validateTrigger: r } = this.props, a = this.getFieldValue(), d = () => {
141
141
  var c;
142
142
  const h = this.errors || ((c = this.warnings) == null ? void 0 : c.length);
143
143
  this.toggleValidateStatus("validating"), this.setErrors(null), this.setWarnings(null), h && this.updateFormItem();
144
- }, n = e ? (o || []).filter((h) => [].concat(
144
+ }, n = e ? (l || []).filter((h) => [].concat(
145
145
  h.validateTrigger || r || t
146
- ).indexOf(e) > -1) : o;
147
- return n && n.length && l ? (d(), k(l, a, n, i).then(
146
+ ).indexOf(e) > -1) : l;
147
+ return n && n.length && o ? (d(), k(o, a, n, i).then(
148
148
  ({ error: h, warning: c }) => {
149
149
  var u;
150
- return this.setErrors(h ? h[l] : null), this.setWarnings(c || null), this.toggleValidateStatus(
150
+ return this.setErrors(h ? h[o] : null), this.setWarnings(c || null), this.toggleValidateStatus(
151
151
  this.errors ? "error" : (u = this.warnings) != null && u.length ? "warning" : "success"
152
- ), this.updateFormItem(), Promise.resolve({ error: h, value: a, field: l });
152
+ ), this.updateFormItem(), Promise.resolve({ error: h, value: a, field: o });
153
153
  }
154
- )) : Promise.resolve({ error: null, value: a, field: l });
154
+ )) : Promise.resolve({ error: null, value: a, field: o });
155
155
  });
156
156
  // 每次 render 都会作为 onChange 传递给 children,需要保证引用地址不变
157
157
  // 所以 handleTrigger 需要声明在类上,并且直接作为 children.props.onChange
158
158
  s(this, "handleTrigger", (e, ...t) => {
159
- const i = this.childrenElement || this.props.children, { store: l } = this.context, { field: o, trigger: r, normalize: a, getValueFromEvent: d } = this.props, n = F(d) ? d(e, ...t) : e;
159
+ const i = this.childrenElement || this.props.children, { store: o } = this.context, { field: l, trigger: r, normalize: a, getValueFromEvent: d } = this.props, n = F(d) ? d(e, ...t) : e;
160
160
  let h = n;
161
161
  if (q(n)) {
162
162
  U(
@@ -165,9 +165,9 @@ class x extends z {
165
165
  ), n.stopPropagation();
166
166
  return;
167
167
  }
168
- typeof a == "function" && (h = a(n, l.getFieldValue(o), {
169
- ...l.getFieldsValue()
170
- })), this.toggleTouched(!0), this.innerSetFieldValue(o, h), this.validateField(r), A(i) && i.props && i.props[r] && (this.props.isFormList || i.props[r](h, ...t));
168
+ typeof a == "function" && (h = a(n, o.getFieldValue(l), {
169
+ ...o.getFieldsValue()
170
+ })), this.toggleTouched(!0), this.innerSetFieldValue(l, h), this.validateField(r), A(i) && i.props && i.props[r] && (this.props.isFormList || i.props[r](h, ...t));
171
171
  });
172
172
  s(this, "getChild", () => {
173
173
  const { children: e } = this.props, { store: t } = this.context;
@@ -184,8 +184,8 @@ class x extends z {
184
184
  )), this.childrenElement = i, i;
185
185
  });
186
186
  if ("initialValue" in e && this.hasFieldProps()) {
187
- const r = (l = (i = t == null ? void 0 : t.store) == null ? void 0 : i.getInnerMethods) == null ? void 0 : l.call(i, !0);
188
- (o = r == null ? void 0 : r.innerSetInitialValue) == null || o.call(r, e.field, e.initialValue);
187
+ const r = (o = (i = t == null ? void 0 : t.store) == null ? void 0 : i.getInnerMethods) == null ? void 0 : o.call(i, !0);
188
+ (l = r == null ? void 0 : r.innerSetInitialValue) == null || l.call(r, e.field, e.initialValue);
189
189
  }
190
190
  }
191
191
  componentDidMount() {
@@ -210,16 +210,16 @@ class x extends z {
210
210
  getValidateTrigger() {
211
211
  const e = this.props.validateTrigger || this.context.validateTrigger || "onChange", t = this.props.rules || [];
212
212
  let i = [];
213
- return t.map((l) => {
214
- i = i.concat(l.validateTrigger || e);
213
+ return t.map((o) => {
214
+ i = i.concat(o.validateTrigger || e);
215
215
  }), Array.from(new Set(i));
216
216
  }
217
217
  renderControl(e, t) {
218
218
  var T;
219
219
  const {
220
220
  field: i,
221
- trigger: l = "onChange",
222
- triggerPropName: o = "value",
221
+ trigger: o = "onChange",
222
+ triggerPropName: l = "value",
223
223
  validateStatus: r,
224
224
  formatter: a
225
225
  } = this.props, { store: d, disabled: n } = this.context, h = "disabled" in this.props ? this.props.disabled : n, c = I.Children.only(e), u = {
@@ -231,25 +231,25 @@ class x extends z {
231
231
  var f, w;
232
232
  this.validateField(S), (w = (f = c.props) == null ? void 0 : f[S]) == null || w.call(f, D);
233
233
  };
234
- }), u[l] = this.handleTrigger, h !== void 0 && !("disabled" in c.props) && (u.disabled = h);
234
+ }), u[o] = this.handleTrigger, h !== void 0 && !("disabled" in c.props) && (u.disabled = h);
235
235
  let v = V(d.getInnerMethods(!0).innerGetStore(), i);
236
- return F(a) && (v = a(v)), u[o] = v, !r && this.errors && (u.error = !0), I.cloneElement(c, u);
236
+ return F(a) && (v = a(v)), u[l] = v, !r && this.errors && (u.error = !0), I.cloneElement(c, u);
237
237
  }
238
238
  render() {
239
- const { noStyle: e, field: t, isFormList: i, hasFeedback: l } = this.props, o = this.getValidateStatus(), { prefixCls: r, getFormElementId: a } = this.context;
239
+ const { noStyle: e, field: t, isFormList: i, hasFeedback: o } = this.props, l = this.getValidateStatus(), { prefixCls: r, getFormElementId: a } = this.context;
240
240
  let d = this.getChild();
241
241
  const n = this.hasFieldProps() ? a == null ? void 0 : a(t) : void 0;
242
242
  return this.hasFieldProps() && !i && I.Children.count(d) === 1 && (d = this.renderControl(d, n)), e ? d : /* @__PURE__ */ m("div", { className: `${r}-item-control-wrapper`, children: /* @__PURE__ */ m("div", { className: `${r}-item-control`, id: n, children: /* @__PURE__ */ E("div", { className: `${r}-item-control-children`, children: [
243
243
  d,
244
- o && l && /* @__PURE__ */ E(
244
+ l && o && /* @__PURE__ */ E(
245
245
  "div",
246
246
  {
247
- className: `${r}-item-feedback ${r}-item-feedback-${o}`,
247
+ className: `${r}-item-feedback ${r}-item-feedback-${l}`,
248
248
  children: [
249
- o === "warning" && /* @__PURE__ */ m(N, {}),
250
- o === "success" && /* @__PURE__ */ m(W, {}),
251
- o === "error" && /* @__PURE__ */ m($, {}),
252
- o === "validating" && /* @__PURE__ */ m(L, {})
249
+ l === "warning" && /* @__PURE__ */ m($, {}),
250
+ l === "success" && /* @__PURE__ */ m(P, {}),
251
+ l === "error" && /* @__PURE__ */ m(W, {}),
252
+ l === "validating" && /* @__PURE__ */ m(L, {})
253
253
  ]
254
254
  }
255
255
  )
package/form/Form.js CHANGED
@@ -1,12 +1,12 @@
1
- import { jsx as d } from "react/jsx-runtime";
1
+ import { jsx as p } from "react/jsx-runtime";
2
2
  import { p as k } from "../chunk/Coz3rCng.js";
3
3
  import v from "lodash/isPlainObject";
4
4
  import O from "lodash/merge";
5
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/CNcLypMY.js";
6
+ import { a as W, b as X } from "../chunk/CQvM33Vg.js";
7
7
  import { u as B } from "../chunk/5_U1CBIu.js";
8
8
  import { u as G } from "../chunk/BFTV6myl.js";
9
- import { p as J } from "../chunk/CUFsOxJ2.js";
9
+ import J from "@unicom-cloud/utils/class-name";
10
10
  import { o as K } from "../chunk/BKKEev13.js";
11
11
  import { FormProviderContext as L, FormContext as Q } from "./context.js";
12
12
  import Y from "./useForm.js";
@@ -25,7 +25,7 @@ const ee = {
25
25
  validateTrigger: "onChange"
26
26
  }, oe = (a, u) => {
27
27
  var h, S;
28
- const i = $(W), t = $(L), p = _(null), [l] = Y(
28
+ const i = $(W), t = $(L), d = _(null), [l] = Y(
29
29
  a.form
30
30
  ), e = G(
31
31
  a,
@@ -40,8 +40,8 @@ const ee = {
40
40
  requiredSymbol: w,
41
41
  labelAlign: I,
42
42
  disabled: M,
43
- colon: z,
44
- className: N,
43
+ colon: N,
44
+ className: z,
45
45
  validateTrigger: T,
46
46
  prefixCls: x,
47
47
  validateMessages: E,
@@ -53,7 +53,7 @@ const ee = {
53
53
  let o;
54
54
  return t.register && (o = t.register(e.id, l)), o;
55
55
  }, [e.id, l]), l.scrollToField = (o, n) => {
56
- const r = p.current, s = e.id;
56
+ const r = d.current, s = e.id;
57
57
  if (!r)
58
58
  return;
59
59
  let c = r.querySelector(
@@ -99,7 +99,7 @@ const ee = {
99
99
  requiredSymbol: w,
100
100
  labelAlign: I,
101
101
  disabled: M,
102
- colon: z,
102
+ colon: N,
103
103
  labelCol: y,
104
104
  wrapperCol: V,
105
105
  layout: g,
@@ -116,12 +116,12 @@ const ee = {
116
116
  return U(u, () => ({
117
117
  ...l,
118
118
  getRootDOMNode() {
119
- return p.current;
119
+ return d.current;
120
120
  }
121
- })), /* @__PURE__ */ d(X, { ...i, childrenName: "Form", size: b, children: /* @__PURE__ */ d(j.Provider, { value: D, children: /* @__PURE__ */ d(
121
+ })), /* @__PURE__ */ p(X, { ...i, childrenName: "Form", size: b, children: /* @__PURE__ */ p(j.Provider, { value: D, children: /* @__PURE__ */ p(
122
122
  R,
123
123
  {
124
- ref: p,
124
+ ref: d,
125
125
  ...K(P, [
126
126
  "form",
127
127
  "size",
@@ -140,7 +140,7 @@ const ee = {
140
140
  `${m}-${g}`,
141
141
  `${m}-size-${b}`,
142
142
  { [`${m}-rtl`]: q },
143
- N
143
+ z
144
144
  ),
145
145
  style: e.style,
146
146
  onSubmit: (o) => {
package/form/FormItem.js CHANGED
@@ -4,28 +4,28 @@ import ge from "lodash/isArray";
4
4
  import he from "lodash/isFunction";
5
5
  import y from "lodash/isPlainObject";
6
6
  import w from "lodash/isUndefined";
7
- import { a as Ce } from "../chunk/CNcLypMY.js";
7
+ import { a as Ce } from "../chunk/CQvM33Vg.js";
8
8
  import Y from "../grid/index.js";
9
9
  import { u as ye } from "../chunk/BFTV6myl.js";
10
- import { P as ve } from "../chunk/BpYX5PN4.js";
11
- import { p as v } from "../chunk/CUFsOxJ2.js";
10
+ import { P as ve } from "../chunk/NPajzdOv.js";
11
+ import v from "@unicom-cloud/utils/class-name";
12
12
  import { o as we } from "../chunk/BKKEev13.js";
13
13
  import I from "./Control.js";
14
14
  import Fe from "./FormLabel.js";
15
15
  import { FormItemContext as J, FormListContext as $e, FormContext as Q } from "./context.js";
16
16
  import { VALIDATE_STATUS as T } from "./interface.js";
17
17
  import { formatValidateMsg as xe } from "./util.js";
18
- const Ie = Y.Row, X = Y.Col, Se = ({
18
+ const Ie = Y.Row, X = Y.Col, Ne = ({
19
19
  prefixCls: g,
20
20
  help: h,
21
21
  errors: e,
22
- warnings: S
22
+ warnings: N
23
23
  }) => {
24
24
  const C = e.map((p, d) => {
25
25
  if (p)
26
26
  return /* @__PURE__ */ i("div", { role: "alert", children: p.message }, d);
27
27
  }), c = [];
28
- S.map((p, d) => {
28
+ N.map((p, d) => {
29
29
  c.push(
30
30
  /* @__PURE__ */ i("div", { role: "alert", className: `${g}-message-help-warning`, children: p }, d)
31
31
  );
@@ -53,13 +53,13 @@ const Ie = Y.Row, X = Y.Col, Se = ({
53
53
  )
54
54
  }
55
55
  );
56
- }, Ne = {
56
+ }, Se = {
57
57
  trigger: "onChange",
58
58
  triggerPropName: "value"
59
59
  }, Pe = (g, h) => {
60
60
  var U, _, z;
61
- const e = ye(g, Ne), { getPrefixCls: S, prefixCls: C } = x(Ce), c = x(J), m = x($e), [u, p] = W(null), [d, A] = W(null), r = x(Q), l = r.prefixCls || S("form"), D = e.layout || r.layout, Z = e.labelAlign || r.labelAlign, N = fe(!1), ee = (s, t = {}) => {
62
- if (N.current)
61
+ const e = ye(g, Se), { getPrefixCls: N, prefixCls: C } = x(Ce), c = x(J), m = x($e), [u, p] = W(null), [d, A] = W(null), r = x(Q), l = r.prefixCls || N("form"), D = e.layout || r.layout, Z = e.labelAlign || r.labelAlign, S = fe(!1), ee = (s, t = {}) => {
62
+ if (S.current)
63
63
  return;
64
64
  const { errors: a, warnings: f } = t || {};
65
65
  p((b) => {
@@ -70,8 +70,8 @@ const Ie = Y.Row, X = Y.Col, Se = ({
70
70
  return f && f.length ? o[s] = f : delete o[s], o;
71
71
  });
72
72
  }, re = y(e.noStyle) && e.noStyle.showErrorTip && c.updateFormItem ? c.updateFormItem : ee;
73
- be(() => (N.current = !1, () => {
74
- N.current = !0, p(null), A(null);
73
+ be(() => (S.current = !1, () => {
74
+ S.current = !0, p(null), A(null);
75
75
  }), []);
76
76
  const te = {
77
77
  ...r,
@@ -217,7 +217,7 @@ const Ie = Y.Row, X = Y.Col, Se = ({
217
217
  children: [
218
218
  O(),
219
219
  /* @__PURE__ */ i(
220
- Se,
220
+ Ne,
221
221
  {
222
222
  prefixCls: l,
223
223
  help: e.help,
package/form/FormLabel.js CHANGED
@@ -4,40 +4,40 @@ import R from "lodash/isArray";
4
4
  import I from "lodash/isPlainObject";
5
5
  import U, { isValidElement as N } from "react";
6
6
  import g from "../tooltip/index.js";
7
- import { p as x } from "../chunk/CUFsOxJ2.js";
7
+ import x from "@unicom-cloud/utils/class-name";
8
8
  import y from "./IconSymbol.js";
9
9
  import { ID_SUFFIX as C } from "./util.js";
10
10
  const X = ({
11
- htmlFor: s,
12
- showColon: n,
11
+ htmlFor: i,
12
+ showColon: m,
13
13
  label: c,
14
- requiredSymbol: i,
14
+ requiredSymbol: n,
15
15
  required: F,
16
16
  rules: l,
17
17
  prefix: a,
18
18
  tooltip: o
19
19
  }) => {
20
- const $ = R(l) && l.some((e) => e && e.required), p = I(i) ? i.position : "end", f = (F || $) && !!i && /* @__PURE__ */ r("strong", { className: `${a}-form-item-symbol`, children: /* @__PURE__ */ r(y, {}) }), b = () => {
20
+ const $ = R(l) && l.some((e) => e && e.required), p = I(n) ? n.position : "end", f = (F || $) && !!n && /* @__PURE__ */ r("strong", { className: `${a}-form-item-symbol`, children: /* @__PURE__ */ r(y, {}) }), b = () => {
21
21
  if (!o)
22
22
  return null;
23
23
  const e = `${a}-form-item-tooltip`;
24
- let m = {}, d = /* @__PURE__ */ r(P, { className: e });
24
+ let s = {}, d = /* @__PURE__ */ r(P, { className: e });
25
25
  if (!I(o) || N(o))
26
- m = {
26
+ s = {
27
27
  content: o
28
28
  };
29
29
  else {
30
30
  const { icon: t, ...h } = o;
31
- m = h, t && (d = N(t) ? U.cloneElement(t, {
31
+ s = h, t && (d = N(t) ? U.cloneElement(t, {
32
32
  className: x(
33
33
  e,
34
34
  t.props.className
35
35
  )
36
36
  }) : t);
37
37
  }
38
- return /* @__PURE__ */ r(g, { ...m, children: d });
38
+ return /* @__PURE__ */ r(g, { ...s, children: d });
39
39
  };
40
- return c ? /* @__PURE__ */ u("label", { htmlFor: s && `${s}${C}`, children: [
40
+ return c ? /* @__PURE__ */ u("label", { htmlFor: i && `${i}${C}`, children: [
41
41
  p !== "end" && f,
42
42
  " ",
43
43
  c,
@@ -46,7 +46,7 @@ const X = ({
46
46
  " ",
47
47
  f
48
48
  ] }),
49
- n ? n === !0 ? ":" : n : ""
49
+ m ? m === !0 ? ":" : m : ""
50
50
  ] }) : null;
51
51
  };
52
52
  export {
package/form/context.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { createContext as t } from "react";
2
2
  import { N as e } from "../chunk/D0ZWT7db.js";
3
- const o = t({
3
+ import "@unicom-cloud/utils/constant/ui";
4
+ const i = t({
4
5
  layout: "horizontal",
5
6
  labelCol: { span: 5, offset: 0 },
6
7
  labelAlign: "right",
@@ -34,10 +35,10 @@ const o = t({
34
35
  innerGetStoreStatus: e
35
36
  })
36
37
  }
37
- }), i = t({}), s = t({}), a = t({});
38
+ }), s = t({}), a = t({}), n = t({});
38
39
  export {
39
- o as FormContext,
40
- i as FormItemContext,
41
- a as FormListContext,
42
- s as FormProviderContext
40
+ i as FormContext,
41
+ s as FormItemContext,
42
+ n as FormListContext,
43
+ a as FormProviderContext
43
44
  };
package/form/promisify.js CHANGED
@@ -1,9 +1,8 @@
1
- var f = Object.defineProperty;
2
- var c = (e, t, r) => t in e ? f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
1
+ var p = Object.defineProperty;
2
+ var c = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var n = (e, t, r) => c(e, typeof t != "symbol" ? t + "" : t, r);
4
- import "../chunk/DAAff-FT.js";
5
- import "../chunk/C0pRaDCf.js";
6
- import m from "lodash/isFunction.js";
4
+ import "../chunk/ClM74To2.js";
5
+ import { isFunction as m } from "@unicom-cloud/utils/is";
7
6
  class a extends Error {
8
7
  constructor(r) {
9
8
  super("form validate error, get errors by error.errors");
@@ -11,23 +10,23 @@ class a extends Error {
11
10
  this.errors = r;
12
11
  }
13
12
  }
14
- function b(e) {
13
+ function _(e) {
15
14
  return Object.defineProperty((...r) => {
16
15
  if (m(r[r.length - 1]))
17
16
  return e.apply(this, r);
18
17
  {
19
18
  const i = (s, l) => {
20
- const p = (o, u) => {
19
+ const u = (o, f) => {
21
20
  if (o)
22
21
  return l(new a(o));
23
- s(u);
22
+ s(f);
24
23
  };
25
- return r[r.length] = p, r.length++, e.apply(this, r);
24
+ return r[r.length] = u, r.length++, e.apply(this, r);
26
25
  };
27
26
  return new Promise(i);
28
27
  }
29
28
  }, "name", { value: e.name });
30
29
  }
31
30
  export {
32
- b as default
31
+ _ as default
33
32
  };
package/form/store.js CHANGED
@@ -9,7 +9,7 @@ import E from "lodash/isPlainObject";
9
9
  import _ from "lodash/merge";
10
10
  import w from "lodash/omit";
11
11
  import L from "lodash/setWith";
12
- import { d as I } from "../chunk/DAAff-FT.js";
12
+ import { d as I } from "../chunk/ClM74To2.js";
13
13
  import { SubmitStatus as d } from "./interface.js";
14
14
  import B from "./promisify.js";
15
15
  import { iterativelyGetKeys as T, cloneDeep as m, set as o } from "./util.js";
package/form/util.js CHANGED
@@ -1,4 +1,4 @@
1
- import { H as l } from "../chunk/CplLA01W.js";
1
+ import { H as l } from "../chunk/DEuVgCzp.js";
2
2
  import h from "lodash/cloneDeepWith";
3
3
  import g from "lodash/flatten";
4
4
  import v from "lodash/has";
package/grid/Col.js CHANGED
@@ -1,11 +1,11 @@
1
- import { jsx as H } from "react/jsx-runtime";
2
- import T from "lodash/isNumber";
3
- import q from "lodash/isPlainObject";
4
- import { forwardRef as C, useContext as S, useMemo as D } from "react";
5
- import { a as I } from "../chunk/CNcLypMY.js";
6
- import { u as J } from "../chunk/BFTV6myl.js";
7
- import { p as K } from "../chunk/CUFsOxJ2.js";
8
- import { RowContext as N } from "./context.js";
1
+ import { jsx as F } from "react/jsx-runtime";
2
+ import H from "lodash/isNumber";
3
+ import T from "lodash/isPlainObject";
4
+ import { forwardRef as q, useContext as S, useMemo as C } from "react";
5
+ import { a as D } from "../chunk/CQvM33Vg.js";
6
+ import { u as I } from "../chunk/BFTV6myl.js";
7
+ import J from "@unicom-cloud/utils/class-name";
8
+ import { RowContext as K } from "./context.js";
9
9
  const Q = {
10
10
  span: 24
11
11
  };
@@ -13,17 +13,17 @@ function v(i) {
13
13
  return typeof i == "string" && /\d+[px|%|em|rem|]{1}/.test(i) ? `0 0 ${i}` : i;
14
14
  }
15
15
  function U(i, w) {
16
- const { getPrefixCls: A, componentConfig: l, rtl: G } = S(I), L = J(
16
+ const { getPrefixCls: A, componentConfig: f, rtl: G } = S(D), L = I(
17
17
  i,
18
18
  Q,
19
- l == null ? void 0 : l["Grid.Col"]
20
- ), { gutter: p, div: $ } = S(N), {
19
+ f == null ? void 0 : f["Grid.Col"]
20
+ ), { gutter: p, div: $ } = S(K), {
21
21
  className: M,
22
- style: O,
23
- children: V,
24
- span: k,
25
- offset: u,
26
- order: a,
22
+ style: N,
23
+ children: O,
24
+ span: V,
25
+ offset: a,
26
+ order: u,
27
27
  pull: c,
28
28
  push: m,
29
29
  xs: x,
@@ -33,52 +33,52 @@ function U(i, w) {
33
33
  xl: P,
34
34
  xxl: b,
35
35
  xxxl: j,
36
- flex: d,
37
- ...z
36
+ flex: e,
37
+ ...k
38
38
  } = L;
39
- function B(r, o) {
39
+ function z(r, o) {
40
40
  const R = { xs: x, sm: g, md: y, lg: h, xl: P, xxl: b, xxxl: j };
41
41
  return Object.keys(R).forEach((n) => {
42
42
  const t = R[n];
43
- T(t) ? t >= 0 && (o[`${r}-${n}-${t}`] = !0) : q(t) && (o[`${r}-${n}-${t.span}`] = t.span, o[`${r}-${n}-offset-${t.offset}`] = t.offset, o[`${r}-${n}-order-${t.order}`] = t.order, o[`${r}-${n}-pull-${t.pull}`] = t.pull, o[`${r}-${n}-push-${t.push}`] = t.push);
43
+ H(t) ? t >= 0 && (o[`${r}-${n}-${t}`] = !0) : T(t) && (o[`${r}-${n}-${t.span}`] = t.span, o[`${r}-${n}-offset-${t.offset}`] = t.offset, o[`${r}-${n}-order-${t.order}`] = t.order, o[`${r}-${n}-pull-${t.pull}`] = t.pull, o[`${r}-${n}-push-${t.push}`] = t.push);
44
44
  }), o;
45
45
  }
46
46
  const s = A("col");
47
- let e = {
47
+ let d = {
48
48
  [`${s}`]: !$,
49
- [`${s}-order-${a}`]: a,
50
- [`${s}-${k}`]: !$ && !x && !g && !y && !h && !P && !b && !j,
51
- [`${s}-offset-${u}`]: u,
49
+ [`${s}-order-${u}`]: u,
50
+ [`${s}-${V}`]: !$ && !x && !g && !y && !h && !P && !b && !j,
51
+ [`${s}-offset-${a}`]: a,
52
52
  [`${s}-pull-${c}`]: c,
53
53
  [`${s}-push-${m}`]: m,
54
54
  [`${s}-rtl`]: G
55
55
  };
56
- e = B(s, e);
57
- const E = K(d ? s : e, M), f = {};
56
+ d = z(s, d);
57
+ const B = J(e ? s : d, M), l = {};
58
58
  if (Array.isArray(p) && !$) {
59
59
  const r = p[0] && p[0] / 2 || 0, o = p[1] && p[1] / 2 || 0;
60
- r && (f.paddingLeft = r, f.paddingRight = r), o && (f.paddingTop = o, f.paddingBottom = o);
60
+ r && (l.paddingLeft = r, l.paddingRight = r), o && (l.paddingTop = o, l.paddingBottom = o);
61
61
  }
62
- const F = D(
63
- () => v(d) ? { flex: v(d) } : {},
64
- [d]
62
+ const E = C(
63
+ () => v(e) ? { flex: v(e) } : {},
64
+ [e]
65
65
  );
66
- return /* @__PURE__ */ H(
66
+ return /* @__PURE__ */ F(
67
67
  "div",
68
68
  {
69
69
  ref: w,
70
- ...z,
70
+ ...k,
71
71
  style: {
72
- ...O,
73
- ...f,
74
- ...F
72
+ ...N,
73
+ ...l,
74
+ ...E
75
75
  },
76
- className: E,
77
- children: V
76
+ className: B,
77
+ children: O
78
78
  }
79
79
  );
80
80
  }
81
- const W = C(U);
81
+ const W = q(U);
82
82
  W.displayName = "Col";
83
83
  export {
84
84
  W as default