@unicom-cloud/ui 0.8.107 → 0.8.108

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 (137) hide show
  1. package/ColorPicker.js +15 -14
  2. package/Constant.js +4 -0
  3. package/Copy.js +4 -3
  4. package/Countdown.js +25 -0
  5. package/Grid.js +8 -10
  6. package/LiquidFill.js +4 -3
  7. package/List.js +7 -6
  8. package/Marquee.js +4 -3
  9. package/PageHeader.js +3 -2
  10. package/QrCode.js +4 -3
  11. package/RowCol.js +8 -0
  12. package/Segmented.js +14 -4
  13. package/Statistic.js +5 -4
  14. package/Tour.js +4 -3
  15. package/Transfer.js +4 -2
  16. package/anchor/Link.js +1 -1
  17. package/avatar/Group.js +1 -1
  18. package/button/index.js +52 -51
  19. package/calendar/Lunar.js +21 -21
  20. package/cascader/base/node.js +22 -20
  21. package/cascader/base/store.js +10 -10
  22. package/cascader/util.js +29 -27
  23. package/color-picker/Mode.js +8 -7
  24. package/color-picker/hooks/useColorPicker.js +56 -55
  25. package/color-picker/index.js +54 -53
  26. package/color-picker/utils.js +58 -57
  27. package/components/common/empty/index.js +2 -2
  28. package/components/common/flex/index.js +64 -55
  29. package/components/common/flex/interface.js +6 -6
  30. package/components/common/hooks/useInterval.js +6 -6
  31. package/components/common/space/index.js +53 -53
  32. package/components/common/utils/dayjs.js +75 -62
  33. package/components/common/utils/toArray.js +7 -5
  34. package/constant/index.js +4 -0
  35. package/copy/index.js +2 -1
  36. package/countdown/index.js +113 -0
  37. package/countdown/interface.js +1 -0
  38. package/countdown/util.js +29 -0
  39. package/descriptions/index.js +26 -26
  40. package/dropdown/Button.js +1 -1
  41. package/flex/index.js +30 -29
  42. package/form/FormItem.js +126 -122
  43. package/grid/Grid.js +40 -41
  44. package/grid/Item.js +37 -37
  45. package/grid/context.js +2 -3
  46. package/grid/index.js +6 -8
  47. package/hooks/useResponsiveState.js +54 -0
  48. package/index.js +614 -610
  49. package/input/InputElement.js +25 -24
  50. package/layout/Sider.js +1 -1
  51. package/liquid-fill/index.js +4 -3
  52. package/list/Item.js +21 -21
  53. package/list/index.js +53 -52
  54. package/marquee/index.js +20 -19
  55. package/marquee-/index.js +4 -3
  56. package/mentions/util.js +9 -8
  57. package/package.json +1 -1
  58. package/page-header/index.js +57 -56
  59. package/pagination/Pagination.js +89 -92
  60. package/qr-code/index.js +4 -3
  61. package/radio/Group.js +1 -1
  62. package/row-col/Col-.js +88 -0
  63. package/row-col/Col.js +159 -0
  64. package/row-col/Row.js +73 -0
  65. package/row-col/context.js +5 -0
  66. package/row-col/index.js +11 -0
  67. package/row-col/interface.js +1 -0
  68. package/segmented/index.js +257 -206
  69. package/select/Select.js +191 -191
  70. package/select/util.js +50 -50
  71. package/space/index.js +15 -13
  72. package/statistic/index.js +56 -55
  73. package/statistic/interface.js +4 -1
  74. package/style.css +1 -1
  75. package/table/hook/useColumns.js +27 -26
  76. package/table/hook/useStickyClassNames.js +9 -8
  77. package/table/hook/useThResizable.js +4 -3
  78. package/table/th-resizable/index.js +11 -10
  79. package/table/thead/index.js +18 -16
  80. package/timeline/Item.js +1 -1
  81. package/tour/index.js +4 -3
  82. package/transfer/index.js +93 -91
  83. package/trigger/index.js +66 -66
  84. package/types/common/flex/index.d.ts +3 -9
  85. package/types/common/flex/interface.d.ts +15 -4
  86. package/types/common/space/index.d.ts +3 -5
  87. package/types/common/space/interface.d.ts +2 -0
  88. package/types/common/utils/dayjs.d.ts +3 -1
  89. package/types/pc/button/interface.d.ts +2 -2
  90. package/types/pc/config-provider/interface.d.ts +16 -11
  91. package/types/pc/constant/index.d.ts +1 -0
  92. package/types/pc/countdown/interface.d.ts +65 -0
  93. package/types/pc/countdown/util.d.ts +7 -0
  94. package/types/pc/flex/index.d.ts +8 -6
  95. package/types/pc/flex/interface.d.ts +3 -10
  96. package/types/pc/form/FormItem.d.ts +1 -1
  97. package/types/pc/form/interface.d.ts +1 -1
  98. package/types/pc/grid/Grid.d.ts +1 -2
  99. package/types/pc/grid/Item.d.ts +1 -2
  100. package/types/pc/grid/context.d.ts +0 -5
  101. package/types/pc/grid/index.d.ts +4 -6
  102. package/types/pc/grid/interface.d.ts +7 -125
  103. package/types/pc/hooks/useResponsiveState.d.ts +3 -0
  104. package/types/pc/index.d.ts +7 -3
  105. package/types/pc/list/interface.d.ts +2 -1
  106. package/types/pc/pagination/PageOption.d.ts +0 -1
  107. package/types/pc/pagination/interface.d.ts +5 -6
  108. package/types/pc/{grid → row-col}/Col-.d.ts +1 -1
  109. package/types/pc/{grid → row-col}/Col.d.ts +1 -2
  110. package/types/pc/{grid → row-col}/Row.d.ts +1 -2
  111. package/types/pc/row-col/context.d.ts +6 -0
  112. package/types/pc/row-col/index.d.ts +7 -0
  113. package/types/pc/row-col/interface.d.ts +112 -0
  114. package/types/pc/segmented/index.d.ts +3 -7
  115. package/types/pc/segmented/interface.d.ts +38 -5
  116. package/types/pc/space/index.d.ts +5 -7
  117. package/types/pc/space/interface.d.ts +3 -10
  118. package/types/pc/statistic/index.d.ts +1 -1
  119. package/types/pc/statistic/interface.d.ts +1 -49
  120. package/types/pc/utils/names.d.ts +121 -113
  121. package/types/pc/utils/responsiveObserve.d.ts +8 -8
  122. package/typography/Ellipsis.js +5 -4
  123. package/typography/Operations.js +4 -3
  124. package/utils/dayjs.js +13 -11
  125. package/utils/index.js +244 -242
  126. package/utils/names.js +15 -10
  127. package/utils/responsiveObserve.js +43 -36
  128. package/version/index.js +1 -1
  129. package/grid/Col-.js +0 -86
  130. package/grid/Col.js +0 -169
  131. package/grid/Row.js +0 -96
  132. package/grid/hook/useResponsiveState.js +0 -35
  133. package/statistic/Countdown.js +0 -56
  134. package/statistic/util.js +0 -33
  135. package/types/pc/grid/hook/useResponsiveState.d.ts +0 -2
  136. package/types/pc/statistic/util.d.ts +0 -1
  137. /package/types/pc/{statistic/Countdown.d.ts → countdown/index.d.ts} +0 -0
@@ -1,89 +1,90 @@
1
1
  import s from "@unicom-cloud/utils/tinycolor";
2
- const R = (t) => t.sort((r, n) => r.percent - n.percent), H = (t, r, n) => Object.keys(t).reduce(
2
+ import c from "lodash/isArray";
3
+ const k = (t) => t.sort((n, r) => n.percent - r.percent), w = (t, n, r) => Object.keys(t).reduce(
3
4
  (e, o) => ({
4
5
  ...e,
5
- [o]: t[o] + (r[o] - t[o]) * n
6
+ [o]: t[o] + (n[o] - t[o]) * r
6
7
  }),
7
8
  { ...t }
8
- ), b = (t) => t.map(({ color: r, percent: n }) => `${r} ${n}%`).join(", "), w = (t) => `linear-gradient(to right, ${b(t)})`, G = (t) => Array.isArray(t) ? w(t) : t, k = (t, r, n, e) => e < 1 ? `rgba(${t}, ${r}, ${n}, ${e.toFixed(2)})` : `rgb(${t}, ${r}, ${n})`, q = (t, r, n, e) => e < 1 ? new s({ r: t, g: r, b: n, a: e }).toHexString() : new s({ r: t, g: r, b: n }).toHexString(), p = (t) => {
9
- const r = new s({
9
+ ), C = (t) => t.map(({ color: n, percent: r }) => `${n} ${r}%`).join(", "), I = (t) => `linear-gradient(to right, ${C(t)})`, q = (t) => c(t) ? I(t) : t, F = (t, n, r, e) => e < 1 ? `rgba(${t}, ${n}, ${r}, ${e.toFixed(2)})` : `rgb(${t}, ${n}, ${r})`, S = (t, n, r, e) => e < 1 ? new s({ r: t, g: n, b: r, a: e }).toHexString() : new s({ r: t, g: n, b: r }).toHexString(), l = (t) => {
10
+ const n = new s({
10
11
  h: t.h * 360,
11
12
  s: t.s * 100,
12
13
  v: t.v * 100
13
- }), n = r.toRgb(), e = r.toHex();
14
+ }), r = n.toRgb(), e = n.toHex();
14
15
  return {
15
16
  hsv: t,
16
- rgb: n,
17
+ rgb: r,
17
18
  hex: e
18
19
  };
19
- }, c = () => Math.random().toFixed(10).slice(2), A = (t, r) => t.map((n) => {
20
- const e = new s(n.color).toHsv_();
20
+ }, i = () => Math.random().toFixed(10).slice(2), j = (t, n) => t.map((r) => {
21
+ const e = new s(r.color).toHsv_();
21
22
  return {
22
- id: c(),
23
- color: p(e),
24
- alpha: r ? 100 : e.a,
25
- percent: n.percent
23
+ id: i(),
24
+ color: l(e),
25
+ alpha: n ? 100 : e.a,
26
+ percent: r.percent
26
27
  };
27
- }), F = (t, r, n) => {
28
- const e = t.findIndex((a) => a.percent === r);
28
+ }), P = (t, n, r) => {
29
+ const e = t.findIndex((a) => a.percent === n);
29
30
  if (e !== -1)
30
31
  return {
31
32
  ...t[e],
32
- id: n ?? c()
33
+ id: r ?? i()
33
34
  };
34
35
  const o = t.findIndex(
35
- (a) => a.percent > r
36
- ), l = o - 1, {
37
- color: d,
38
- alpha: g,
39
- percent: i
40
- } = t[l], {
41
- color: u,
42
- alpha: x,
43
- percent: f
44
- } = t[o], h = H(
36
+ (a) => a.percent > n
37
+ ), d = o - 1, {
38
+ color: g,
39
+ alpha: u,
40
+ percent: p
41
+ } = t[d], {
42
+ color: x,
43
+ alpha: f,
44
+ percent: m
45
+ } = t[o], h = w(
45
46
  {
46
- ...d.rgb,
47
- a: g
47
+ ...g.rgb,
48
+ a: u
48
49
  },
49
50
  {
50
- ...u.rgb,
51
- a: x
51
+ ...x.rgb,
52
+ a: f
52
53
  },
53
- (r - i) / (f - i)
54
- ), { r: m, g: $, b: y, a: v } = h;
54
+ (n - p) / (m - p)
55
+ ), { r: $, g: v, b: H, a: b } = h;
55
56
  return {
56
- id: n ?? c(),
57
- color: p(
57
+ id: r ?? i(),
58
+ color: l(
58
59
  new s({
59
- r: m,
60
- g: $,
61
- b: y
60
+ r: $,
61
+ g: v,
62
+ b: H
62
63
  }).toHsv_()
63
64
  ),
64
- alpha: v,
65
- percent: r
65
+ alpha: b,
66
+ percent: n
66
67
  };
67
- }, S = (t, r) => t.h === r.h && t.s === r.s && t.v === r.v, C = (t, r) => t.r === r.r && t.g === r.g && t.b === r.b && t.a === r.a, j = (t, r) => typeof t == "string" && typeof r == "string" ? t === r : Array.isArray(t) && Array.isArray(r) ? t.length === r.length && t.every((n, e) => {
68
- const o = r[e];
69
- return C(
70
- new s(n.color).toRgba(),
68
+ }, T = (t, n) => t.h === n.h && t.s === n.s && t.v === n.v, R = (t, n) => t.r === n.r && t.g === n.g && t.b === n.b && t.a === n.a, _ = (t, n) => typeof t == "string" && typeof n == "string" ? t === n : c(t) && c(n) ? t.length === n.length && t.every((r, e) => {
69
+ const o = n[e];
70
+ return R(
71
+ new s(r.color).toRgba(),
71
72
  new s(o.color).toRgba()
72
- ) && n.percent === o.percent;
73
+ ) && r.percent === o.percent;
73
74
  }) : !1;
74
75
  export {
75
- S as equalsHsv,
76
- C as equalsRgba,
77
- q as formatHex,
78
- k as formatRgba,
79
- F as getColorByGradients,
80
- p as getColorFromHsv,
81
- b as getGradientString,
82
- c as getRandomId,
83
- j as isEqualsColors,
84
- A as mapValueToGradientColor,
85
- H as mix,
86
- G as renderBackground,
87
- w as renderGradientBackground,
88
- R as sortGradientColors
76
+ T as equalsHsv,
77
+ R as equalsRgba,
78
+ S as formatHex,
79
+ F as formatRgba,
80
+ P as getColorByGradients,
81
+ l as getColorFromHsv,
82
+ C as getGradientString,
83
+ i as getRandomId,
84
+ _ as isEqualsColors,
85
+ j as mapValueToGradientColor,
86
+ w as mix,
87
+ q as renderBackground,
88
+ I as renderGradientBackground,
89
+ k as sortGradientColors
89
90
  };
@@ -2,7 +2,7 @@ import { jsxs as N, jsx as s } from "react/jsx-runtime";
2
2
  import $ from "@unicom-cloud/icons/IconUiEmpty";
3
3
  import { UI_COMMON_PREFIX as g } from "@unicom-cloud/utils/constant/ui";
4
4
  import { memo as x, forwardRef as u } from "react";
5
- import { SpaceVertical as C } from "../space/index.js";
5
+ import C from "../space/index.js";
6
6
  import r from "@unicom-cloud/utils/class-name";
7
7
  const E = (n, c) => {
8
8
  const {
@@ -24,7 +24,7 @@ const E = (n, c) => {
24
24
  }
25
25
  ) : o ? /* @__PURE__ */ s("div", { className: r(`${e}-icon`, `${t}-icon`), children: o }) : /* @__PURE__ */ s($, { className: r(`${e}-icon`, `${t}-icon`) });
26
26
  return /* @__PURE__ */ N(
27
- C,
27
+ C.Vertical,
28
28
  {
29
29
  ref: c,
30
30
  className: r(e, t, p),
@@ -1,64 +1,73 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
- import { UI_COMMON_PREFIX as j } from "@unicom-cloud/utils/constant/ui";
3
- import { forwardRef as x, useMemo as C } from "react";
4
- import I from "../hooks/useMergeProps.js";
5
- import P from "@unicom-cloud/utils/class-name";
2
+ import { UI_COMMON_PREFIX as G } from "@unicom-cloud/utils/constant/ui";
3
+ import { forwardRef as y } from "react";
4
+ import O from "../hooks/useMergeProps.js";
5
+ import I from "@unicom-cloud/utils/class-name";
6
6
  import "../utils/is.js";
7
- import { GAP_SIZE_MAP as y } from "./interface.js";
8
- import { isBoolean as V, isArray as _, isString as A } from "@unicom-cloud/utils/is";
9
- const O = (o) => A(o) && Object.keys(y).includes(o), m = (o, r, t) => {
10
- t !== void 0 && (O(t) ? o[r] = y[t] : o[r] = typeof t == "number" ? `${t}px` : t);
11
- }, S = (o = {}, r, t = "gap") => (r === void 0 || (_(r) ? (m(o, "rowGap", r[0]), m(o, "columnGap", r[1])) : m(o, t, r)), o), b = {
7
+ import { GAP_SIZE_MAP as x } from "./interface.js";
8
+ import { isBoolean as M, isArray as P, isString as S } from "@unicom-cloud/utils/is";
9
+ function p(e, i, t) {
10
+ if (t === void 0)
11
+ return;
12
+ S(t) && Object.keys(x).includes(t) ? e[i] = x[t] : e[i] = t;
13
+ }
14
+ function V(e = {}, i, t = "gap") {
15
+ return i === void 0 || (P(i) ? (p(e, "rowGap", i[0]), p(e, "columnGap", i[1] ?? i[0])) : p(e, t, i)), e;
16
+ }
17
+ const _ = {
12
18
  component: "div",
13
19
  gap: "small"
14
- }, a = x((o, r) => {
15
- const t = I(o, b, {}), {
16
- className: g,
17
- style: c,
18
- flex: l,
19
- gap: f,
20
- children: u,
21
- direction: e,
22
- justify: i,
23
- align: n,
24
- component: N = "div",
25
- wrap: s,
26
- rtl: w,
27
- ...F
28
- } = t, p = `${j}-flex`, G = C(() => {
29
- const M = {
30
- display: "flex",
31
- ...S({}, f),
32
- ...s !== void 0 && {
33
- flexWrap: V(s) ? s ? "wrap" : "nowrap" : s
34
- },
35
- ...!!n && { alignItems: n },
36
- ...!!i && { justifyContent: i },
37
- ...!!e && { flexDirection: e },
38
- ...!!l && { flex: l }
39
- };
40
- return { ...c, ...M };
41
- }, [f, s, n, i, e, l, c]);
42
- return /* @__PURE__ */ d(
43
- N,
20
+ }, m = y((e, i) => {
21
+ const t = O(e, _, {}), {
22
+ className: r,
23
+ style: $,
24
+ flex: u,
25
+ gap: j,
26
+ children: N,
27
+ direction: s,
28
+ justify: l,
29
+ align: f,
30
+ component: w = "div",
31
+ wrap: a,
32
+ rtl: F,
33
+ inline: c,
34
+ ...C
35
+ } = t, o = `${G}-flex`, n = {
36
+ display: c ? "inline-flex" : "flex"
37
+ };
38
+ return "wrap" in t && (n.flexWrap = M(a) ? a ? "wrap" : "nowrap" : a), "flex" in t && (n.flex = u), f && (n.alignItems = f), l && (n.justifyContent = l), s && (n.flexDirection = s), Object.assign(n, V({}, j), $), /* @__PURE__ */ d(
39
+ w,
44
40
  {
45
- ref: r,
46
- style: G,
47
- className: P(p, g, {
48
- [`${p}-rtl`]: w,
49
- [`${p}-${e}`]: e,
50
- [`${p}-${i}`]: i,
51
- [`${p}-${n}`]: n
52
- }),
53
- ...F,
54
- children: u
41
+ ref: i,
42
+ style: n,
43
+ className: I(
44
+ o,
45
+ {
46
+ [`${o}-rtl`]: F,
47
+ [`${o}-inline`]: c
48
+ },
49
+ !!s && `${o}-flex-direction-${s}`,
50
+ !!l && `${o}-justify-content-${l}`,
51
+ !!f && `${o}-align-items-${f}`,
52
+ r
53
+ ),
54
+ ...C,
55
+ children: N
55
56
  }
56
57
  );
57
- }), $ = x((o, r) => /* @__PURE__ */ d(a, { ref: r, ...o, direction: "column" }));
58
- a.Vertical = $;
59
- a.displayName = "Flex";
60
- $.displayName = "Flex.Vertical";
58
+ });
59
+ m.displayName = "Flex";
60
+ const g = y(
61
+ (e, i) => {
62
+ const { direction: t = "column", ...r } = e;
63
+ return /* @__PURE__ */ d(m, { ...r, ref: i, direction: t });
64
+ }
65
+ );
66
+ g.displayName = "FlexVertical";
67
+ const U = Object.assign(m, {
68
+ Vertical: g
69
+ });
61
70
  export {
62
- $ as FlexVertical,
63
- a as default
71
+ g as FlexVertical,
72
+ U as default
64
73
  };
@@ -1,9 +1,9 @@
1
- const p = {
2
- mini: "4px",
3
- small: "8px",
4
- medium: "12px",
5
- large: "20px"
1
+ const m = {
2
+ mini: 4,
3
+ small: 8,
4
+ medium: 16,
5
+ large: 24
6
6
  };
7
7
  export {
8
- p as GAP_SIZE_MAP
8
+ m as GAP_SIZE_MAP
9
9
  };
@@ -1,18 +1,18 @@
1
1
  import { useRef as l, useEffect as s } from "react";
2
- function o(t, e) {
2
+ function f(t, e) {
3
3
  const r = l(null), n = l(), u = () => {
4
- e !== null && (r.current = setInterval(() => {
4
+ e !== null && (r.current = window.setInterval(() => {
5
5
  n.current();
6
6
  }, e));
7
7
  }, c = () => {
8
- r.current && clearInterval(r.current);
9
- }, a = () => {
8
+ r.current && window.clearInterval(r.current);
9
+ }, o = () => {
10
10
  c(), u();
11
11
  };
12
12
  return s(() => {
13
13
  n.current = t;
14
- }, [t]), s(() => (u(), c), [e]), a;
14
+ }, [t]), s(() => (u(), c), [e]), o;
15
15
  }
16
16
  export {
17
- o as default
17
+ f as default
18
18
  };
@@ -1,53 +1,49 @@
1
- import { jsx as s, jsxs as _ } from "react/jsx-runtime";
2
- import { UI_COMMON_PREFIX as b } from "@unicom-cloud/utils/constant/ui";
3
- import O from "lodash/isArray";
4
- import R from "lodash/isNumber";
5
- import { forwardRef as f, Fragment as k } from "react";
6
- import E from "../hooks/useMergeProps.js";
7
- import F from "@unicom-cloud/utils/class-name";
8
- import { toArray as L } from "../utils/toArray.js";
9
- const u = {
10
- mini: 4,
11
- small: 8,
12
- medium: 16,
13
- large: 24
14
- }, U = {
1
+ import { jsx as s, jsxs as M } from "react/jsx-runtime";
2
+ import { UI_COMMON_PREFIX as _ } from "@unicom-cloud/utils/constant/ui";
3
+ import b from "lodash/isArray";
4
+ import O from "lodash/isNumber";
5
+ import { forwardRef as d, Fragment as R } from "react";
6
+ import { GAP_SIZE_MAP as f } from "../flex/interface.js";
7
+ import k from "../hooks/useMergeProps.js";
8
+ import E from "@unicom-cloud/utils/class-name";
9
+ import { toArray as F } from "../utils/toArray.js";
10
+ const L = {
15
11
  size: "small",
16
12
  direction: "horizontal"
17
- }, d = f(
18
- function(a, $) {
19
- const y = E(a, U, {}), {
20
- className: N,
21
- style: S,
22
- children: h,
23
- gap: G,
24
- size: w,
25
- direction: n = "horizontal",
26
- align: x,
27
- alignItems: P,
28
- justifyContent: l,
29
- wrap: V,
30
- split: p,
31
- rtl: j,
32
- ...z
33
- } = y, t = `${b}-space`, r = G ?? w, m = P ?? x ?? (n === "horizontal" ? "center" : ""), A = F(
13
+ }, l = d(
14
+ (a, n) => {
15
+ const g = k(a, L, {}), {
16
+ className: y,
17
+ style: N,
18
+ children: S,
19
+ gap: h,
20
+ size: G,
21
+ direction: i = "horizontal",
22
+ align: w,
23
+ alignItems: x,
24
+ justifyContent: p,
25
+ wrap: P,
26
+ split: m,
27
+ rtl: V,
28
+ ...j
29
+ } = g, t = `${_}-space`, r = h ?? G, u = x ?? w ?? (i === "horizontal" ? "center" : ""), z = E(
34
30
  t,
35
31
  {
36
- [`${t}-${n}`]: n,
37
- [`${t}-justify-content-${l}`]: l,
38
- [`${t}-align-items-${m}`]: m,
39
- [`${t}-rtl`]: j
32
+ [`${t}-${i}`]: i,
33
+ [`${t}-justify-content-${p}`]: p,
34
+ [`${t}-align-items-${u}`]: u,
35
+ [`${t}-rtl`]: V
40
36
  },
41
- V ? `${t}-wrap` : `${t}-no-wrap`,
42
- N
43
- ), i = (e) => R(e) ? e : u[e] ?? u.small, C = {
37
+ P ? `${t}-wrap` : `${t}-no-wrap`,
38
+ y
39
+ ), c = (e) => O(e) ? e : f[e] ?? f.small, A = {
44
40
  ...(() => {
45
41
  if (typeof r == "string" || typeof r == "number")
46
42
  return {
47
- gap: `${i(r)}px`
43
+ gap: `${c(r)}px`
48
44
  };
49
- if (O(r)) {
50
- const e = i(r[1]), o = i(r[0]);
45
+ if (b(r)) {
46
+ const e = c(r[1]), o = c(r[0]);
51
47
  return {
52
48
  rowGap: `${e}px`,
53
49
  columnGap: `${o}px`
@@ -55,22 +51,26 @@ const u = {
55
51
  }
56
52
  return {};
57
53
  })(),
58
- ...S
59
- }, v = L(h);
60
- return /* @__PURE__ */ s("div", { ref: $, className: A, style: C, ...z, children: v.map((e, o) => {
61
- const I = e?.key ?? o, M = p != null && o > 0;
62
- return /* @__PURE__ */ _(k, { children: [
63
- M && /* @__PURE__ */ s("div", { className: `${t}-item-split`, children: p }),
54
+ ...N
55
+ }, v = F(S);
56
+ return /* @__PURE__ */ s("div", { ref: n, className: z, style: A, ...j, children: v.map((e, o) => {
57
+ const C = e?.key ?? o, I = m != null && o > 0;
58
+ return /* @__PURE__ */ M(R, { children: [
59
+ I && /* @__PURE__ */ s("div", { className: `${t}-item-split`, children: m }),
64
60
  /* @__PURE__ */ s("div", { className: `${t}-item`, children: e })
65
- ] }, I);
61
+ ] }, C);
66
62
  }) });
67
63
  }
68
- ), g = f((c, a) => /* @__PURE__ */ s(d, { ref: a, ...c, direction: "vertical" })), T = Object.assign(d, {
69
- displayName: "Space",
70
- Vertical: g
64
+ );
65
+ l.displayName = "Space";
66
+ const $ = d(
67
+ (a, n) => /* @__PURE__ */ s(l, { ...a, ref: n, direction: "vertical" })
68
+ );
69
+ $.displayName = "SpaceVertical";
70
+ const T = Object.assign(l, {
71
+ Vertical: $
71
72
  });
72
- g.displayName = "Space.Vertical";
73
73
  export {
74
- g as SpaceVertical,
74
+ $ as SpaceVertical,
75
75
  T as default
76
76
  };