@unicom-cloud/ui 0.8.102 → 0.8.104

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 (48) hide show
  1. package/Copy.js +1 -1
  2. package/LiquidFill.js +1 -1
  3. package/Marquee.js +2 -2
  4. package/QrCode.js +1 -1
  5. package/Spin.js +6 -3
  6. package/Tour.js +1 -1
  7. package/badge/Count.js +12 -12
  8. package/badge/index.js +35 -35
  9. package/components/common/space/index.js +24 -24
  10. package/copy/index.js +1 -1
  11. package/divider/index.js +45 -31
  12. package/grid/Col.js +32 -32
  13. package/grid/Row.js +53 -44
  14. package/liquid-fill/index.js +1 -1
  15. package/liquid-fill/interface.js +1 -0
  16. package/marquee/index.js +143 -221
  17. package/marquee/interface.js +1 -0
  18. package/marquee-/index.js +260 -0
  19. package/marquee-/interface.js +1 -0
  20. package/package.json +1 -1
  21. package/qr-code/index.js +1 -1
  22. package/spin/DotLoading.js +3 -3
  23. package/spin/index.js +70 -57
  24. package/style.css +1 -1
  25. package/table/hook/useThResizable.js +1 -1
  26. package/table/th-resizable/index.js +1 -1
  27. package/tour/index.js +1 -1
  28. package/tour/interface.js +1 -0
  29. package/types/pc/config-provider/interface.d.ts +8 -8
  30. package/types/pc/divider/interface.d.ts +9 -1
  31. package/types/pc/grid/Row.d.ts +2 -1
  32. package/types/pc/index.d.ts +4 -4
  33. package/types/pc/liquid-fill/index.d.ts +2 -113
  34. package/types/pc/liquid-fill/interface.d.ts +113 -0
  35. package/types/pc/marquee/index.d.ts +3 -60
  36. package/types/pc/marquee/interface.d.ts +95 -0
  37. package/types/pc/marquee-/index.d.ts +8 -0
  38. package/types/pc/marquee-/interface.d.ts +56 -0
  39. package/types/pc/qr-code/index.d.ts +1 -31
  40. package/types/pc/qr-code/interface.d.ts +26 -33
  41. package/types/pc/spin/interface.d.ts +2 -3
  42. package/types/pc/tour/index.d.ts +2 -45
  43. package/types/pc/tour/interface.d.ts +46 -0
  44. package/types/pc/utils/responsiveObserve.d.ts +8 -4
  45. package/typography/Ellipsis.js +1 -1
  46. package/typography/Operations.js +1 -1
  47. package/utils/responsiveObserve.js +32 -25
  48. package/version/index.js +1 -1
package/Copy.js CHANGED
@@ -44,6 +44,7 @@ import "./dist/react-transition-group/src/SwitchTransition.js";
44
44
  import "./dist/react-transition-group/chunk/CPfP7aNL.js";
45
45
  import "./dist/react-transition-group/src/TransitionGroup.js";
46
46
  import "./components/common/utils/reactDOM.js";
47
+ import "uuid";
47
48
  import "@unicom-cloud/utils/file/saveAs";
48
49
  import "@unicom-cloud/utils/screenfull";
49
50
  import "@unicom-cloud/utils/tinycolor";
@@ -53,7 +54,6 @@ import "lodash/isPlainObject";
53
54
  import "react-is";
54
55
  import "@unicom-cloud/utils/tree";
55
56
  import "@unicom-cloud/utils/is";
56
- import "uuid";
57
57
  import "./dist/validate/src/index.js";
58
58
  import "@unicom-cloud/utils/constant/keyboardCode";
59
59
  import "./config-provider/context.js";
package/LiquidFill.js CHANGED
@@ -46,6 +46,7 @@ import "./dist/react-transition-group/src/ReplaceTransition.js";
46
46
  import "./dist/react-transition-group/src/SwitchTransition.js";
47
47
  import "./dist/react-transition-group/chunk/CPfP7aNL.js";
48
48
  import "./dist/react-transition-group/src/TransitionGroup.js";
49
+ import "uuid";
49
50
  import "@unicom-cloud/utils/file/saveAs";
50
51
  import "@unicom-cloud/utils/screenfull";
51
52
  import "@unicom-cloud/utils/tinycolor";
@@ -54,7 +55,6 @@ import "@unicom-cloud/utils/constant/ui.js";
54
55
  import "react-is";
55
56
  import "@unicom-cloud/utils/tree";
56
57
  import "@unicom-cloud/utils/is";
57
- import "uuid";
58
58
  import "./dist/validate/src/index.js";
59
59
  import "./config-provider/context.js";
60
60
  import { default as fo } from "./liquid-fill/index.js";
package/Marquee.js CHANGED
@@ -46,6 +46,7 @@ import "./dist/react-transition-group/src/SwitchTransition.js";
46
46
  import "./dist/react-transition-group/chunk/CPfP7aNL.js";
47
47
  import "./dist/react-transition-group/src/TransitionGroup.js";
48
48
  import "./components/common/utils/resizeObserver.js";
49
+ import "uuid";
49
50
  import "@unicom-cloud/utils/file/saveAs";
50
51
  import "@unicom-cloud/utils/screenfull";
51
52
  import "@unicom-cloud/utils/tinycolor";
@@ -54,10 +55,9 @@ import "@unicom-cloud/utils/constant/ui.js";
54
55
  import "react-is";
55
56
  import "@unicom-cloud/utils/tree";
56
57
  import "@unicom-cloud/utils/is";
57
- import "uuid";
58
58
  import "./dist/validate/src/index.js";
59
59
  import "./config-provider/context.js";
60
- import { default as fo } from "./marquee/index.js";
60
+ import { default as fo } from "./marquee-/index.js";
61
61
  export {
62
62
  fo as default
63
63
  };
package/QrCode.js CHANGED
@@ -46,6 +46,7 @@ import "./dist/react-transition-group/src/ReplaceTransition.js";
46
46
  import "./dist/react-transition-group/src/SwitchTransition.js";
47
47
  import "./dist/react-transition-group/chunk/CPfP7aNL.js";
48
48
  import "./dist/react-transition-group/src/TransitionGroup.js";
49
+ import "uuid";
49
50
  import "@unicom-cloud/utils/file/saveAs";
50
51
  import "@unicom-cloud/utils/screenfull";
51
52
  import "@unicom-cloud/utils/tinycolor";
@@ -54,7 +55,6 @@ import "@unicom-cloud/utils/constant/ui.js";
54
55
  import "react-is";
55
56
  import "@unicom-cloud/utils/tree";
56
57
  import "@unicom-cloud/utils/is";
57
- import "uuid";
58
58
  import "./dist/validate/src/index.js";
59
59
  import "./config-provider/context.js";
60
60
  import { default as fo } from "./qr-code/index.js";
package/Spin.js CHANGED
@@ -1,14 +1,17 @@
1
1
  import "react/jsx-runtime";
2
2
  import "@unicom-cloud/icons/IconUiLoading";
3
+ import "@unicom-cloud/icons/IconUiLoadingDots";
4
+ import "@unicom-cloud/icons/IconUiLoadingInfinity";
5
+ import "@unicom-cloud/icons/IconUiLoadingRing";
6
+ import "@unicom-cloud/icons/IconUiLoadingSpinner";
3
7
  import "lodash/debounce";
4
8
  import "react";
5
9
  import "./config-provider/ConfigProvider.js";
6
10
  import "./components/common/hooks/useMergeProps.js";
7
11
  import "@unicom-cloud/utils/class-name";
8
12
  import "./components/common/utils/is.js";
9
- import "./spin/DotLoading.js";
10
13
  import "./config-provider/context.js";
11
- import { default as x } from "./spin/index.js";
14
+ import { default as g } from "./spin/index.js";
12
15
  export {
13
- x as default
16
+ g as default
14
17
  };
package/Tour.js CHANGED
@@ -52,6 +52,7 @@ import "./dist/react-transition-group/src/SwitchTransition.js";
52
52
  import "./dist/react-transition-group/chunk/CPfP7aNL.js";
53
53
  import "./dist/react-transition-group/src/TransitionGroup.js";
54
54
  import "./components/common/utils/resizeObserver.js";
55
+ import "uuid";
55
56
  import "@unicom-cloud/utils/file/saveAs";
56
57
  import "@unicom-cloud/utils/screenfull";
57
58
  import "@unicom-cloud/utils/tinycolor";
@@ -60,7 +61,6 @@ import "@unicom-cloud/utils/constant/ui.js";
60
61
  import "react-is";
61
62
  import "@unicom-cloud/utils/tree";
62
63
  import "@unicom-cloud/utils/is";
63
- import "uuid";
64
64
  import "./dist/validate/src/index.js";
65
65
  import "./config-provider/context.js";
66
66
  import { default as co } from "./tour/index.js";
package/badge/Count.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { useState as d } from "react";
3
- import p from "../components/common/hooks/usePrevious.js";
4
- import { PqbCSSTransition as u } from "../components/common/utils/PqbCSSTransition.js";
5
- import f from "@unicom-cloud/utils/class-name";
6
- function S({ prefixCls: t, maxCount: r, count: e, className: n, style: a }) {
7
- const [o, m] = d(!1), i = p(e), l = e !== i;
2
+ import { useState as u } from "react";
3
+ import d from "../components/common/hooks/usePrevious.js";
4
+ import { PqbCSSTransition as p } from "../components/common/utils/PqbCSSTransition.js";
5
+ import c from "@unicom-cloud/utils/class-name";
6
+ function $({ prefixCls: t, maxCount: r, count: e, className: n, style: o }) {
7
+ const [a, m] = u(!1), i = d(e), l = e !== i;
8
8
  return /* @__PURE__ */ s(
9
- u,
9
+ p,
10
10
  {
11
- classNames: "badge-zoom",
11
+ classNames: `${t}-zoom`,
12
12
  in: e > 0,
13
13
  timeout: 300,
14
14
  appear: !0,
@@ -17,11 +17,11 @@ function S({ prefixCls: t, maxCount: r, count: e, className: n, style: a }) {
17
17
  onEntered: () => {
18
18
  m(!0);
19
19
  },
20
- children: /* @__PURE__ */ s("span", { className: n, style: a, children: /* @__PURE__ */ s(
20
+ children: /* @__PURE__ */ s("span", { className: n, style: o, children: /* @__PURE__ */ s(
21
21
  "span",
22
22
  {
23
- className: f({
24
- [`${t}-number-text`]: o && l
23
+ className: c({
24
+ [`${t}-number-text`]: a && l
25
25
  }),
26
26
  children: r && e > r ? `${r}+` : e
27
27
  },
@@ -31,5 +31,5 @@ function S({ prefixCls: t, maxCount: r, count: e, className: n, style: a }) {
31
31
  );
32
32
  }
33
33
  export {
34
- S as default
34
+ $ as default
35
35
  };
package/badge/index.js CHANGED
@@ -40,14 +40,14 @@ function Q(O, B) {
40
40
  dot: g,
41
41
  dotAnimation: C,
42
42
  maxCount: T,
43
- color: t,
43
+ color: e,
44
44
  dotStyle: w,
45
45
  offset: E,
46
46
  style: j,
47
47
  status: m,
48
48
  children: N,
49
49
  ...v
50
- } = R, p = H(null), e = D?.("badge"), a = { ...w || {} }, [x, y] = E || [];
50
+ } = R, p = H(null), t = D?.("badge"), a = { ...w || {} }, [x, y] = E || [];
51
51
  x && (a.marginRight = -x), y && (a.marginTop = y), L(B, () => ({
52
52
  dom: p.current,
53
53
  getRootDOMNode() {
@@ -59,42 +59,42 @@ function Q(O, B) {
59
59
  return /* @__PURE__ */ o(
60
60
  "span",
61
61
  {
62
- className: l(`${e}-custom-dot`, i),
62
+ className: l(`${t}-custom-dot`, i),
63
63
  style: a,
64
64
  children: n
65
65
  }
66
66
  );
67
- const r = t ? f.includes(t) : !1, c = !t || r ? {} : { backgroundColor: t };
68
- return u && !t && !m ? /* @__PURE__ */ o(
67
+ const r = e ? f.includes(e) : !1, c = !e || r ? {} : { backgroundColor: e };
68
+ return u && !e && !m ? /* @__PURE__ */ o(
69
69
  "span",
70
70
  {
71
- className: l(`${e}-text`, i),
71
+ className: l(`${t}-text`, i),
72
72
  style: a,
73
73
  children: u
74
74
  }
75
- ) : m || t && typeof n == "number" && n <= 0 ? /* @__PURE__ */ d("span", { className: `${e}-status-wrapper`, children: [
76
- !!b && /* @__PURE__ */ o("span", { className: `${e}-status-prefix-text`, children: b }),
75
+ ) : m || e && typeof n == "number" && n <= 0 ? /* @__PURE__ */ d("span", { className: `${t}-status-wrapper`, children: [
76
+ !!b && /* @__PURE__ */ o("span", { className: `${t}-status-prefix-text`, children: b }),
77
77
  /* @__PURE__ */ o(
78
78
  "span",
79
79
  {
80
80
  style: { ...c, ...a },
81
81
  className: l(
82
- `${e}-status-dot`,
82
+ `${t}-status-dot`,
83
83
  {
84
- [`${e}-dot-pulse`]: C,
85
- [`${e}-status-${m}`]: m,
86
- [`${e}-color-${t}`]: t && r
84
+ [`${t}-dot-pulse`]: C,
85
+ [`${t}-status-${m}`]: m,
86
+ [`${t}-color-${e}`]: e && r
87
87
  },
88
88
  i
89
89
  )
90
90
  }
91
91
  ),
92
- !!u && /* @__PURE__ */ o("span", { className: `${e}-status-text`, children: u })
93
- ] }) : (g || t) && typeof n == "number" && n > 0 ? /* @__PURE__ */ o(
92
+ !!u && /* @__PURE__ */ o("span", { className: `${t}-status-text`, children: u })
93
+ ] }) : (g || e) && typeof n == "number" && n > 0 ? /* @__PURE__ */ o(
94
94
  F,
95
95
  {
96
- classNames: "badge-zoom",
97
- in: g || !!t,
96
+ classNames: `${t}-zoom`,
97
+ in: g || !!e,
98
98
  timeout: 200,
99
99
  appear: !0,
100
100
  mountOnEnter: !0,
@@ -103,10 +103,10 @@ function Q(O, B) {
103
103
  "span",
104
104
  {
105
105
  className: l(
106
- `${e}-dot`,
106
+ `${t}-dot`,
107
107
  {
108
- [`${e}-dot-pulse`]: C,
109
- [`${e}-color-${t}`]: t && r
108
+ [`${t}-dot-pulse`]: C,
109
+ [`${t}-color-${e}`]: e && r
110
110
  },
111
111
  i
112
112
  ),
@@ -117,8 +117,8 @@ function Q(O, B) {
117
117
  ) : /* @__PURE__ */ o(
118
118
  h,
119
119
  {
120
- prefixCls: e,
121
- className: l(`${e}-number`, i),
120
+ prefixCls: t,
121
+ className: l(`${t}-number`, i),
122
122
  style: { ...c, ...a },
123
123
  maxCount: T,
124
124
  count: n
@@ -134,18 +134,18 @@ function Q(O, B) {
134
134
  "div",
135
135
  {
136
136
  className: l(
137
- `${e}-ribbon`,
138
- `${e}-ribbon-${M}`,
137
+ `${t}-ribbon`,
138
+ `${t}-ribbon-${M}`,
139
139
  {
140
- [`${e}-rtl`]: $,
141
- [`${e}-color-${r}`]: r && c
140
+ [`${t}-rtl`]: $,
141
+ [`${t}-color-${r}`]: r && c
142
142
  },
143
143
  s.className
144
144
  ),
145
145
  style: I,
146
146
  children: [
147
- /* @__PURE__ */ o("span", { className: `${e}-ribbon-text`, children: s.text }),
148
- /* @__PURE__ */ o("div", { className: `${e}-ribbon-corner` })
147
+ /* @__PURE__ */ o("span", { className: `${t}-ribbon-text`, children: s.text }),
148
+ /* @__PURE__ */ o("div", { className: `${t}-ribbon-corner` })
149
149
  ]
150
150
  }
151
151
  );
@@ -154,13 +154,13 @@ function Q(O, B) {
154
154
  "span",
155
155
  {
156
156
  className: l(
157
- e,
157
+ t,
158
158
  {
159
- [`${e}-status`]: m,
160
- [`${e}-no-children`]: !N,
161
- [`${e}-rtl`]: $
159
+ [`${t}-status`]: m,
160
+ [`${t}-no-children`]: !N,
161
+ [`${t}-rtl`]: $
162
162
  },
163
- !!s && `${e}-ribbon-wrapper`,
163
+ !!s && `${t}-ribbon-wrapper`,
164
164
  A
165
165
  ),
166
166
  ref: p,
@@ -176,7 +176,7 @@ function Q(O, B) {
176
176
  const S = q(Q);
177
177
  S.displayName = "Badge";
178
178
  S.Count = h;
179
- const se = f, ne = [
179
+ const st = f, nt = [
180
180
  "default",
181
181
  "processing",
182
182
  "success",
@@ -184,8 +184,8 @@ const se = f, ne = [
184
184
  "error"
185
185
  ];
186
186
  export {
187
- se as BADGE_COLORS,
188
- ne as BADGE_STATUS,
187
+ st as BADGE_COLORS,
188
+ nt as BADGE_STATUS,
189
189
  h as BadgeCount,
190
190
  S as default
191
191
  };
@@ -1,4 +1,4 @@
1
- import { jsx as o, jsxs as _ } from "react/jsx-runtime";
1
+ import { jsx as s, jsxs as _ } from "react/jsx-runtime";
2
2
  import { UI_COMMON_PREFIX as b } from "@unicom-cloud/utils/constant/ui";
3
3
  import O from "lodash/isArray";
4
4
  import R from "lodash/isNumber";
@@ -15,57 +15,57 @@ const u = {
15
15
  size: "small",
16
16
  direction: "horizontal"
17
17
  }, d = f(
18
- function(a, y) {
19
- const $ = E(a, U, {}), {
18
+ function(a, $) {
19
+ const y = E(a, U, {}), {
20
20
  className: N,
21
21
  style: S,
22
22
  children: h,
23
23
  gap: G,
24
- size: x,
24
+ size: w,
25
25
  direction: n = "horizontal",
26
- align: P,
27
- alignItems: V,
26
+ align: x,
27
+ alignItems: P,
28
28
  justifyContent: l,
29
- wrap: j,
29
+ wrap: V,
30
30
  split: p,
31
- rtl: w,
31
+ rtl: j,
32
32
  ...z
33
- } = $, e = `${b}-space`, r = G ?? x, m = V ?? P ?? (n === "horizontal" ? "center" : ""), A = F(
34
- e,
33
+ } = y, t = `${b}-space`, r = G ?? w, m = P ?? x ?? (n === "horizontal" ? "center" : ""), A = F(
34
+ t,
35
35
  {
36
- [`${e}-${n}`]: n,
37
- [`${e}-justify-content-${l}`]: l,
38
- [`${e}-align-items-${m}`]: m,
39
- [`${e}-wrap`]: j,
40
- [`${e}-rtl`]: w
36
+ [`${t}-${n}`]: n,
37
+ [`${t}-justify-content-${l}`]: l,
38
+ [`${t}-align-items-${m}`]: m,
39
+ [`${t}-rtl`]: j
41
40
  },
41
+ V ? `${t}-wrap` : `${t}-no-wrap`,
42
42
  N
43
- ), i = (t) => R(t) ? t : u[t] ?? u.small, C = {
43
+ ), i = (e) => R(e) ? e : u[e] ?? u.small, C = {
44
44
  ...(() => {
45
45
  if (typeof r == "string" || typeof r == "number")
46
46
  return {
47
47
  gap: `${i(r)}px`
48
48
  };
49
49
  if (O(r)) {
50
- const t = i(r[1]), s = i(r[0]);
50
+ const e = i(r[1]), o = i(r[0]);
51
51
  return {
52
- rowGap: `${t}px`,
53
- columnGap: `${s}px`
52
+ rowGap: `${e}px`,
53
+ columnGap: `${o}px`
54
54
  };
55
55
  }
56
56
  return {};
57
57
  })(),
58
58
  ...S
59
59
  }, v = L(h);
60
- return /* @__PURE__ */ o("div", { ref: y, className: A, style: C, ...z, children: v.map((t, s) => {
61
- const I = t?.key ?? s, M = p != null && s > 0;
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
62
  return /* @__PURE__ */ _(k, { children: [
63
- M && /* @__PURE__ */ o("div", { className: `${e}-item-split`, children: p }),
64
- /* @__PURE__ */ o("div", { className: `${e}-item`, children: t })
63
+ M && /* @__PURE__ */ s("div", { className: `${t}-item-split`, children: p }),
64
+ /* @__PURE__ */ s("div", { className: `${t}-item`, children: e })
65
65
  ] }, I);
66
66
  }) });
67
67
  }
68
- ), g = f((c, a) => /* @__PURE__ */ o(d, { ref: a, ...c, direction: "vertical" })), T = Object.assign(d, {
68
+ ), g = f((c, a) => /* @__PURE__ */ s(d, { ref: a, ...c, direction: "vertical" })), T = Object.assign(d, {
69
69
  displayName: "Space",
70
70
  Vertical: g
71
71
  });
package/copy/index.js CHANGED
@@ -44,6 +44,7 @@ import "../dist/react-transition-group/src/SwitchTransition.js";
44
44
  import "../dist/react-transition-group/chunk/CPfP7aNL.js";
45
45
  import "../dist/react-transition-group/src/TransitionGroup.js";
46
46
  import "../components/common/utils/reactDOM.js";
47
+ import "uuid";
47
48
  import "@unicom-cloud/utils/file/saveAs";
48
49
  import "@unicom-cloud/utils/screenfull";
49
50
  import "@unicom-cloud/utils/tinycolor";
@@ -53,7 +54,6 @@ import "lodash/isPlainObject";
53
54
  import "react-is";
54
55
  import "@unicom-cloud/utils/tree";
55
56
  import { isFunction as v } from "@unicom-cloud/utils/is";
56
- import "uuid";
57
57
  import "../dist/validate/src/index.js";
58
58
  import "@unicom-cloud/utils/constant/keyboardCode";
59
59
  import F from "../config-provider/context.js";
package/divider/index.js CHANGED
@@ -1,47 +1,61 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { forwardRef as l, useContext as v } from "react";
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { forwardRef as f, useContext as b, useMemo as D } from "react";
3
3
  import "../config-provider/ConfigProvider.js";
4
- import N from "../components/common/hooks/useMergeProps.js";
5
- import C from "@unicom-cloud/utils/class-name";
6
- import h from "../config-provider/context.js";
7
- const y = {
4
+ import g from "../components/common/hooks/useMergeProps.js";
5
+ import P from "@unicom-cloud/utils/class-name";
6
+ import w from "../config-provider/context.js";
7
+ const z = {
8
8
  type: "horizontal",
9
9
  orientation: "center"
10
10
  };
11
- function D(r, o) {
12
- const { getPrefixCls: m, componentConfig: p } = v(h), d = N(
13
- r,
14
- y,
15
- p?.Divider
16
- ), { children: e, style: f, className: x, type: n, orientation: i, ...$ } = d, t = m?.("divider"), u = C(
11
+ function S(n, a) {
12
+ const { getPrefixCls: u, componentConfig: x } = b(w), h = g(
13
+ n,
14
+ z,
15
+ x?.Divider
16
+ ), {
17
+ children: o,
18
+ style: m,
19
+ className: $,
20
+ type: p,
21
+ orientation: l,
22
+ borderStyle: r,
23
+ // 潘启宝添加
24
+ borderWidth: i,
25
+ // 潘启宝添加
26
+ ...v
27
+ } = h, s = p === "horizontal", t = u?.("divider"), N = P(
17
28
  t,
18
- `${t}-${n}`,
29
+ `${t}-${p}`,
19
30
  {
20
- [`${t}-with-text`]: e,
21
- [`${t}-with-text-${i}`]: e && i
31
+ [`${t}-with-text`]: o,
32
+ [`${t}-with-text-${l}`]: o && l
22
33
  },
23
- x
24
- );
25
- return /* @__PURE__ */ s(
34
+ $
35
+ ), C = D(() => {
36
+ const e = { ...m };
37
+ return r && (s ? e.borderBottomStyle = r : e.borderLeftStyle = r), i && (s ? e.borderBottomWidth = i : e.borderLeftWidth = i), e;
38
+ }, [r, i, s, m]);
39
+ return /* @__PURE__ */ c(
26
40
  "div",
27
41
  {
28
42
  role: "separator",
29
- ref: o,
30
- className: u,
31
- style: f,
32
- ...$,
33
- children: e && n === "horizontal" ? /* @__PURE__ */ s("span", { className: `${t}-text ${t}-text-${i}`, children: e }) : null
43
+ ref: a,
44
+ style: C,
45
+ className: N,
46
+ ...v,
47
+ children: o && s ? /* @__PURE__ */ c("span", { className: `${t}-text ${t}-text-${l}`, children: o }) : null
34
48
  }
35
49
  );
36
50
  }
37
- const a = l(
38
- D
51
+ const d = f(
52
+ S
39
53
  );
40
- a.displayName = "Divider";
41
- const c = l((r, o) => /* @__PURE__ */ s(a, { ref: o, type: "vertical", ...r }));
42
- c.displayName = "DividerVertical";
43
- a.Vertical = c;
54
+ d.displayName = "Divider";
55
+ const y = f((n, a) => /* @__PURE__ */ c(d, { ref: a, type: "vertical", ...n }));
56
+ y.displayName = "DividerVertical";
57
+ d.Vertical = y;
44
58
  export {
45
- c as DividerVertical,
46
- a as default
59
+ y as DividerVertical,
60
+ d as default
47
61
  };