@unicom-cloud/ui 0.8.88 → 0.8.89

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.
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@unicom-cloud/ui","version":"0.8.88","dependencies":{"@unicom-cloud/icons":"latest"},"peerDependencies":{"dayjs":"^1.11.10","lodash":"^4.17.21","react":"^18.3.1","react-dom":"^18.3.1"},"peerDependenciesMeta":{},"type":"module","types":"types/pc/index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
1
+ {"name":"@unicom-cloud/ui","version":"0.8.89","dependencies":{"@unicom-cloud/icons":"latest"},"peerDependencies":{"dayjs":"^1.11.10","lodash":"^4.17.21","react":"^18.3.1","react-dom":"^18.3.1"},"peerDependenciesMeta":{},"type":"module","types":"types/pc/index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
package/space/index.js CHANGED
@@ -49,7 +49,7 @@ function h(t = 8) {
49
49
  if (x(t))
50
50
  return t;
51
51
  if (C(t))
52
- return t.map((o, r, e) => h(o));
52
+ return t.map((i, r, m) => h(i));
53
53
  switch (t) {
54
54
  case "mini":
55
55
  return 4;
@@ -63,32 +63,32 @@ function h(t = 8) {
63
63
  return 8;
64
64
  }
65
65
  }
66
- function z(t, o) {
66
+ function z(t, i) {
67
67
  const r = `${S}-space`, {
68
- className: e,
68
+ className: m,
69
69
  style: g,
70
70
  children: f,
71
71
  gap: u = "small",
72
- direction: m = "horizontal",
72
+ direction: e = "horizontal",
73
73
  wrap: s,
74
74
  justifyContent: p,
75
75
  alignItems: n,
76
76
  ...a
77
77
  } = t;
78
- let i = n;
79
- m === "horizontal" && (i || (i = "center")), m === "vertical" && (i || (i = "start"));
78
+ let o = n;
79
+ e === "horizontal" && (o || (o = "center"));
80
80
  const c = h(u), l = { ...g };
81
81
  return C(c) ? (l.rowGap = c[0], l.columnGap = c[1]) : l.gap = c, /* @__PURE__ */ $(
82
82
  "div",
83
83
  {
84
- ref: o,
84
+ ref: i,
85
85
  className: y(
86
86
  `${r}`,
87
87
  s && `${r}-wrap`,
88
- `${r}-${m}`,
88
+ `${r}-${e}`,
89
89
  p && `${r}-justify-content-${p}`,
90
- i && `${r}-align-items-${i}`,
91
- e
90
+ o && `${r}-align-items-${o}`,
91
+ m
92
92
  ),
93
93
  style: l,
94
94
  ...a,
@@ -98,40 +98,40 @@ function z(t, o) {
98
98
  }
99
99
  const N = d(z);
100
100
  N.displayName = "Space";
101
- function M(t, o) {
102
- return /* @__PURE__ */ $(N, { ref: o, ...t, direction: "vertical", children: t.children });
101
+ function M(t, i) {
102
+ return /* @__PURE__ */ $(N, { ref: i, ...t, direction: "vertical", children: t.children });
103
103
  }
104
104
  const j = d(M);
105
105
  j.displayName = "SpaceVertical";
106
- const v = {
106
+ const V = {
107
107
  gap: "small",
108
108
  direction: "horizontal"
109
109
  };
110
- function V(t, o) {
111
- const { getPrefixCls: r, componentConfig: e, rtl: g } = w(I), f = _(
110
+ function v(t, i) {
111
+ const { getPrefixCls: r, componentConfig: m, rtl: g } = w(I), f = _(
112
112
  t,
113
- v,
114
- e == null ? void 0 : e.Space
115
- ), { className: u, direction: m, wrap: s, size: p, align: n, ...a } = f;
113
+ V,
114
+ m == null ? void 0 : m.Space
115
+ ), { className: u, direction: e, wrap: s, size: p, align: n, ...a } = f;
116
116
  p && (a.gap = p), n && (a.alignItems = n);
117
- const i = r == null ? void 0 : r("space");
117
+ const o = r == null ? void 0 : r("space");
118
118
  return /* @__PURE__ */ $(
119
119
  N,
120
120
  {
121
- ref: o,
121
+ ref: i,
122
122
  className: y(
123
- `${i}`,
124
- s && `${i}-wrap`,
125
- `${i}-${m}`,
123
+ `${o}`,
124
+ s && `${o}-wrap`,
125
+ `${o}-${e}`,
126
126
  u
127
127
  ),
128
- direction: m,
128
+ direction: e,
129
129
  wrap: s,
130
130
  ...a
131
131
  }
132
132
  );
133
133
  }
134
- const G = d(V);
134
+ const G = d(v);
135
135
  G.displayName = "Space";
136
136
  export {
137
137
  j as SpaceVertical,
package/version/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const I = "2025-05-20 16:13:39", t = "1747728819053", E = "2.66.0";
1
+ const I = "2025-05-20 17:04:58", t = "1747731898454", E = "2.66.0";
2
2
  export {
3
3
  E as VERSION,
4
4
  I as VERSION_BUILD_DATE,