gasp-components 1.0.2 → 1.0.5
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/dist/{CheckCircleFilled-0BksJw0a.js → CheckCircleFilled-xt-0R96Z.js} +2 -2
- package/dist/{CheckOutlined-uqw1dAco.js → CheckOutlined-EgxCAgj_.js} +2 -2
- package/dist/{CloseCircleFilled-8_PrYv1M.js → CloseCircleFilled-bIgIULWb.js} +2 -2
- package/dist/{CloseOutlined--jpI9Qw3.js → CloseOutlined-Q3kC3EZS.js} +2 -2
- package/dist/{Compact-TeM9cQzE.js → Compact-fdEKV_mF.js} +8 -8
- package/dist/{ExclamationCircleFilled-oQquZDmr.js → ExclamationCircleFilled-XzDBEGmA.js} +2 -2
- package/dist/{LoadingOutlined-UnQfEWdX.js → LoadingOutlined-6Ipqn0og.js} +2 -2
- package/dist/{Overflow-iob2b5Wo.js → Overflow-JFdXKgCr.js} +29 -29
- package/dist/{PurePanel-v_Df1Vfh.js → PurePanel-hLGnXbul.js} +2 -2
- package/dist/{SearchOutlined-q1KYFUUD.js → SearchOutlined-rJTFGXUi.js} +2 -2
- package/dist/{TextArea-wGjKg4dQ.js → TextArea-n3dknzTq.js} +127 -127
- package/dist/{UploadOutlined-mJrPhk1_.js → UploadOutlined-D8jfLEgv.js} +2 -2
- package/dist/{asyncToGenerator-IDY-s0XG.js → asyncToGenerator-t4sKr8R4.js} +1 -1
- package/dist/{button-HD_w_Dw4.js → button-LN5ZDad8.js} +5 -5
- package/dist/{colors-AE8T-s8Y.js → colors-opGg9oSz.js} +4 -4
- package/dist/components/button/index.js +17 -17
- package/dist/components/checklist/checklist-item.js +3 -3
- package/dist/components/checklist/index.js +3 -3
- package/dist/components/date-picker/index.js +22 -22
- package/dist/components/dragger/index.js +24 -24
- package/dist/components/dropdown/index.js +26 -26
- package/dist/components/form/index.js +28 -28
- package/dist/components/form-item/index.js +27 -27
- package/dist/components/input/index.js +20 -20
- package/dist/components/modal/index.js +33 -33
- package/dist/components/password-input/index.js +18 -18
- package/dist/components/progress/index.js +32 -32
- package/dist/components/progress-circle/index.js +17 -17
- package/dist/components/radio-button/index.js +26 -26
- package/dist/components/radio-button-group/index.js +23 -23
- package/dist/components/result-popup/index.js +33 -33
- package/dist/components/select/index.js +23 -23
- package/dist/components/side-menu/index.js +26 -26
- package/dist/components/side-menu/menu-item.js +26 -26
- package/dist/components/steps/index.js +11 -11
- package/dist/components/table/index.js +36 -36
- package/dist/components/tabs/index.js +28 -28
- package/dist/components/tabs/tab.js +29 -29
- package/dist/components/tag/index.js +7 -7
- package/dist/components/timeline-horizontal/index.js +23 -23
- package/dist/components/upload/index.js +45 -45
- package/dist/{context-bcpLewuE.js → context-h3WSVDPz.js} +4 -4
- package/dist/{index-rkVmCQAx.js → index--6VfGMUo.js} +2 -2
- package/dist/{index-jLgkaVBu.js → index-0mpuHoS5.js} +11 -11
- package/dist/{index-s55NV9P0.js → index-1KQbTQJ2.js} +8 -8
- package/dist/{index-l6CkDOfg.js → index-5Uo03BMk.js} +8 -8
- package/dist/{index-GRzi0tN8.js → index-BFgxz47K.js} +20 -20
- package/dist/{index-s920fd6h.js → index-D3LMPWyJ.js} +93 -93
- package/dist/{index-zaNVwFVE.js → index-DVS_nWxv.js} +16 -16
- package/dist/{index-4vkKu-tY.js → index-ELHBhuK9.js} +18 -18
- package/dist/{index-fkwpjTCF.js → index-Fn8q8B3V.js} +1 -1
- package/dist/{index-iLZIQa0S.js → index-GgkQrebz.js} +1 -1
- package/dist/{index-gSJyqTth.js → index-L-MzVDcK.js} +82 -82
- package/dist/{index-OcSg2uhO.js → index-M3WnMjiA.js} +32 -32
- package/dist/{index-1dpL-ID6.js → index-ZT64Ec6u.js} +19 -19
- package/dist/{index-G4mS9Q1k.js → index-aawDqn9q.js} +21 -21
- package/dist/{index-08tmSZyi.js → index-k04G4nlS.js} +58 -58
- package/dist/{isVisible-dMm2KpVt.js → isVisible-Qi9l15Ty.js} +5 -5
- package/dist/main.d.ts +11 -2
- package/dist/main.js +321 -238
- package/dist/{motion-HJgOMAD9.js → motion-0ToOu81j.js} +12 -12
- package/dist/{omit-iDLobDmh.js → omit-ylWA0ZLZ.js} +1 -1
- package/dist/{pickAttrs-8tivSTLL.js → pickAttrs-zaQzRTqh.js} +1 -1
- package/dist/{progress-KLD42eXS.js → progress-a1_pwKVT.js} +23 -23
- package/dist/{responsiveObserver-HzrC-TmX.js → responsiveObserver-V1_1G14X.js} +3 -3
- package/dist/{roundedArrow-K_0MXOnG.js → roundedArrow-p1Pmd9av.js} +1 -1
- package/dist/{row-fxwx4hxc.js → row-sPFiFm0C.js} +25 -25
- package/dist/{slide-zQQNR_XQ.js → slide-mFXPRHku.js} +2 -2
- package/dist/{styleChecker-CIyuwreK.js → styleChecker-pZ3k2IiY.js} +1 -1
- package/dist/{useCSSVarCls-dgS8HrGW.js → useCSSVarCls-GwZT_WiF.js} +3 -3
- package/dist/{useClosable-UlLHff74.js → useClosable-4G12n4Bp.js} +1 -1
- package/dist/{useLocale-fOtLWNp9.js → useLocale-eThlLZJw.js} +1 -1
- package/dist/{useMergedState-L_aEbDOR.js → useMergedState-qUafLuUa.js} +7 -7
- package/dist/{useVariants-uVtKaOT2.js → useVariants-s0IcneBD.js} +5 -5
- package/dist/{zoom-AOeYf6vQ.js → zoom-Ps8y0jNW.js} +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as Q, p as X, N,
|
|
1
|
+
import { q as Q, p as X, N, u as Y, f as h, b as l, i as Z, z as R, K as G, a3 as O, H as J, s as ee, t as te, _ as ne } from "./index-1KQbTQJ2.js";
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import A from "react";
|
|
4
4
|
import { r as ae } from "./index-vtDVJV8q.js";
|
|
@@ -62,19 +62,19 @@ function ce(e, t) {
|
|
|
62
62
|
var u;
|
|
63
63
|
(u = i.parentElement) === null || u === void 0 || u.removeChild(i), r.current = !1;
|
|
64
64
|
}
|
|
65
|
-
return
|
|
65
|
+
return R(function() {
|
|
66
66
|
return e ? s ? s(g) : g() : p(), p;
|
|
67
|
-
}, [e]),
|
|
67
|
+
}, [e]), R(function() {
|
|
68
68
|
v.length && (v.forEach(function(u) {
|
|
69
69
|
return u();
|
|
70
70
|
}), m(P));
|
|
71
71
|
}, [v]), [i, S];
|
|
72
72
|
}
|
|
73
|
-
var
|
|
73
|
+
var b;
|
|
74
74
|
function de(e) {
|
|
75
75
|
if (typeof document > "u")
|
|
76
76
|
return 0;
|
|
77
|
-
if (e ||
|
|
77
|
+
if (e || b === void 0) {
|
|
78
78
|
var t = document.createElement("div");
|
|
79
79
|
t.style.width = "100%", t.style.height = "200px";
|
|
80
80
|
var n = document.createElement("div"), a = n.style;
|
|
@@ -82,9 +82,9 @@ function de(e) {
|
|
|
82
82
|
var i = t.offsetWidth;
|
|
83
83
|
n.style.overflow = "scroll";
|
|
84
84
|
var r = t.offsetWidth;
|
|
85
|
-
i === r && (r = n.clientWidth), document.body.removeChild(n),
|
|
85
|
+
i === r && (r = n.clientWidth), document.body.removeChild(n), b = i - r;
|
|
86
86
|
}
|
|
87
|
-
return
|
|
87
|
+
return b;
|
|
88
88
|
}
|
|
89
89
|
function D(e) {
|
|
90
90
|
var t = e.match(/^(.*)px$/), n = Number(t == null ? void 0 : t[1]);
|
|
@@ -110,7 +110,7 @@ function me(e) {
|
|
|
110
110
|
var t = !!e, n = o.useState(function() {
|
|
111
111
|
return k += 1, "".concat(ve, "_").concat(k);
|
|
112
112
|
}), a = l(n, 1), i = a[0];
|
|
113
|
-
|
|
113
|
+
R(function() {
|
|
114
114
|
if (t) {
|
|
115
115
|
var r = fe(document.body).width, s = le();
|
|
116
116
|
G(`
|
|
@@ -166,7 +166,7 @@ function _e() {
|
|
|
166
166
|
return e.useId;
|
|
167
167
|
}
|
|
168
168
|
var M = 0, L = _e();
|
|
169
|
-
const
|
|
169
|
+
const be = L ? (
|
|
170
170
|
// Use React `useId`
|
|
171
171
|
function(t) {
|
|
172
172
|
var n = L();
|
|
@@ -187,7 +187,7 @@ const Re = L ? (
|
|
|
187
187
|
}), Ee = (e) => ({
|
|
188
188
|
animationDuration: e,
|
|
189
189
|
animationFillMode: "both"
|
|
190
|
-
}),
|
|
190
|
+
}), Re = function(e, t, n, a) {
|
|
191
191
|
const r = (arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1) ? "&" : "";
|
|
192
192
|
return {
|
|
193
193
|
[`
|
|
@@ -217,10 +217,10 @@ export {
|
|
|
217
217
|
oe as C,
|
|
218
218
|
Ce as K,
|
|
219
219
|
he as P,
|
|
220
|
-
|
|
220
|
+
be as a,
|
|
221
221
|
fe as b,
|
|
222
222
|
de as g,
|
|
223
|
-
|
|
223
|
+
Re as i,
|
|
224
224
|
Ne as u,
|
|
225
225
|
re as z
|
|
226
226
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as i } from "./index-
|
|
1
|
+
import { _ as i } from "./index-1KQbTQJ2.js";
|
|
2
2
|
var s = `accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
3
3
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
4
4
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
2
|
import { useRef as ee, useEffect as ve } from "react";
|
|
3
|
-
import { C as Ce } from "./CheckCircleFilled-
|
|
4
|
-
import { C as he } from "./CheckOutlined-
|
|
5
|
-
import { C as ye } from "./CloseCircleFilled-
|
|
6
|
-
import { C as be } from "./CloseOutlined
|
|
3
|
+
import { C as Ce } from "./CheckCircleFilled-xt-0R96Z.js";
|
|
4
|
+
import { C as he } from "./CheckOutlined-EgxCAgj_.js";
|
|
5
|
+
import { C as ye } from "./CloseCircleFilled-bIgIULWb.js";
|
|
6
|
+
import { C as be } from "./CloseOutlined-Q3kC3EZS.js";
|
|
7
7
|
import { c as G } from "./index-NQd_zMf0.js";
|
|
8
|
-
import { o as Se } from "./omit-
|
|
9
|
-
import { f as $e,
|
|
10
|
-
import { T as _e } from "./index-
|
|
11
|
-
import { K as De } from "./motion-
|
|
8
|
+
import { o as Se } from "./omit-ylWA0ZLZ.js";
|
|
9
|
+
import { f as $e, b as ke, g as T, _ as te, x as Ee, e as xe, a2 as Y, h as Pe, m as we, r as Ne, d as re, D as ae, C as Oe } from "./index-1KQbTQJ2.js";
|
|
10
|
+
import { T as _e } from "./index-5Uo03BMk.js";
|
|
11
|
+
import { K as De } from "./motion-0ToOu81j.js";
|
|
12
12
|
var Ie = {
|
|
13
13
|
percent: 0,
|
|
14
14
|
prefixCls: "rc-progress",
|
|
@@ -117,12 +117,12 @@ var de = function(t) {
|
|
|
117
117
|
var r = te(te({}, Ie), t), o = r.id, n = r.prefixCls, a = r.steps, i = r.strokeWidth, c = r.trailWidth, l = r.gapDegree, u = l === void 0 ? 0 : l, d = r.gapPosition, g = r.trailColor, v = r.strokeLinecap, h = r.style, C = r.className, m = r.strokeColor, f = r.percent, k = Ee(r, Te), b = F / 2, S = Ae(o), p = "".concat(S, "-gradient"), E = b - i / 2, _ = Math.PI * 2 * E, j = u > 0 ? 90 + u / 2 : -90, x = _ * ((360 - u) / 360), W = T(a) === "object" ? a : {
|
|
118
118
|
count: a,
|
|
119
119
|
space: 2
|
|
120
|
-
},
|
|
120
|
+
}, N = W.count, D = W.space, R = ie(f), y = ie(m), $ = y.find(function(M) {
|
|
121
121
|
return M && T(M) === "object";
|
|
122
|
-
}), P = $ && T($) === "object",
|
|
122
|
+
}), P = $ && T($) === "object", O = P ? "butt" : v, K = Q(_, x, 0, 100, j, u, d, g, O, i), Z = je(), ge = function() {
|
|
123
123
|
var B = 0;
|
|
124
124
|
return R.map(function(L, I) {
|
|
125
|
-
var U = y[I] || y[y.length - 1], A = Q(_, x, B, L, j, u, d, U,
|
|
125
|
+
var U = y[I] || y[y.length - 1], A = Q(_, x, B, L, j, u, d, U, O, i);
|
|
126
126
|
return B += L, /* @__PURE__ */ s.createElement(le, {
|
|
127
127
|
key: I,
|
|
128
128
|
color: U,
|
|
@@ -131,7 +131,7 @@ var de = function(t) {
|
|
|
131
131
|
prefixCls: n,
|
|
132
132
|
gradientId: p,
|
|
133
133
|
style: A,
|
|
134
|
-
strokeLinecap:
|
|
134
|
+
strokeLinecap: O,
|
|
135
135
|
strokeWidth: i,
|
|
136
136
|
gapDegree: u,
|
|
137
137
|
ref: function(q) {
|
|
@@ -141,8 +141,8 @@ var de = function(t) {
|
|
|
141
141
|
});
|
|
142
142
|
}).reverse();
|
|
143
143
|
}, pe = function() {
|
|
144
|
-
var B = Math.round(
|
|
145
|
-
return new Array(
|
|
144
|
+
var B = Math.round(N * (R[0] / 100)), L = 100 / N, I = 0;
|
|
145
|
+
return new Array(N).fill(null).map(function(U, A) {
|
|
146
146
|
var X = A <= B - 1 ? y[0] : g, q = X && T(X) === "object" ? "url(#".concat(p, ")") : void 0, J = Q(_, x, I, L, j, u, d, X, "butt", i, D);
|
|
147
147
|
return I += (x - J.strokeDashoffset + D) * 100 / x, /* @__PURE__ */ s.createElement("circle", {
|
|
148
148
|
key: A,
|
|
@@ -166,16 +166,16 @@ var de = function(t) {
|
|
|
166
166
|
style: h,
|
|
167
167
|
id: o,
|
|
168
168
|
role: "presentation"
|
|
169
|
-
}, k), !
|
|
169
|
+
}, k), !N && /* @__PURE__ */ s.createElement("circle", {
|
|
170
170
|
className: "".concat(n, "-circle-trail"),
|
|
171
171
|
r: E,
|
|
172
172
|
cx: b,
|
|
173
173
|
cy: b,
|
|
174
174
|
stroke: g,
|
|
175
|
-
strokeLinecap:
|
|
175
|
+
strokeLinecap: O,
|
|
176
176
|
strokeWidth: c || i,
|
|
177
177
|
style: K
|
|
178
|
-
}),
|
|
178
|
+
}), N ? pe() : ge());
|
|
179
179
|
};
|
|
180
180
|
process.env.NODE_ENV !== "production" && (de.displayName = "Circle");
|
|
181
181
|
function w(e) {
|
|
@@ -290,7 +290,7 @@ const Fe = (e) => {
|
|
|
290
290
|
iconCls: r
|
|
291
291
|
} = e;
|
|
292
292
|
return {
|
|
293
|
-
[t]: Object.assign(Object.assign({},
|
|
293
|
+
[t]: Object.assign(Object.assign({}, Ne(e)), {
|
|
294
294
|
display: "inline-block",
|
|
295
295
|
"&-rtl": {
|
|
296
296
|
direction: "rtl"
|
|
@@ -671,13 +671,13 @@ const nt = ["normal", "exception", "active", "success"], fe = /* @__PURE__ */ s.
|
|
|
671
671
|
getPrefixCls: k,
|
|
672
672
|
direction: b,
|
|
673
673
|
progress: S
|
|
674
|
-
} = s.useContext(
|
|
674
|
+
} = s.useContext(Oe), p = k("progress", r), [E, _, j] = qe(p), x = s.useMemo(() => {
|
|
675
675
|
if (!u)
|
|
676
676
|
return null;
|
|
677
677
|
const y = V(e);
|
|
678
678
|
let $;
|
|
679
|
-
const P = v || ((K) => `${K}%`),
|
|
680
|
-
return v || f !== "exception" && f !== "success" ? $ = P(w(c), w(y)) : f === "exception" ? $ =
|
|
679
|
+
const P = v || ((K) => `${K}%`), O = d === "line";
|
|
680
|
+
return v || f !== "exception" && f !== "success" ? $ = P(w(c), w(y)) : f === "exception" ? $ = O ? /* @__PURE__ */ s.createElement(ye, null) : /* @__PURE__ */ s.createElement(be, null) : f === "success" && ($ = O ? /* @__PURE__ */ s.createElement(Ce, null) : /* @__PURE__ */ s.createElement(he, null)), /* @__PURE__ */ s.createElement("span", {
|
|
681
681
|
className: `${p}-text`,
|
|
682
682
|
title: typeof $ == "string" ? $ : void 0
|
|
683
683
|
}, $);
|
|
@@ -686,10 +686,10 @@ const nt = ["normal", "exception", "active", "success"], fe = /* @__PURE__ */ s.
|
|
|
686
686
|
const y = ae("Progress");
|
|
687
687
|
y.deprecated(!("successPercent" in e), "successPercent", "success.percent"), y.deprecated(!("width" in e), "width", "size"), (d === "circle" || d === "dashboard") && Array.isArray(l) && process.env.NODE_ENV !== "production" && y(!1, "usage", 'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'), e.success && "progress" in e.success && y.deprecated(!1, "success.progress", "success.percent");
|
|
688
688
|
}
|
|
689
|
-
const W = Array.isArray(i) ? i[0] : i,
|
|
689
|
+
const W = Array.isArray(i) ? i[0] : i, N = typeof i == "string" || Array.isArray(i) ? i : void 0;
|
|
690
690
|
let D;
|
|
691
691
|
d === "line" ? D = a ? /* @__PURE__ */ s.createElement(rt, Object.assign({}, e, {
|
|
692
|
-
strokeColor:
|
|
692
|
+
strokeColor: N,
|
|
693
693
|
prefixCls: p,
|
|
694
694
|
steps: a
|
|
695
695
|
}), x) : /* @__PURE__ */ s.createElement(et, Object.assign({}, e, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import d from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { u as h } from "./index-1KQbTQJ2.js";
|
|
3
3
|
const m = ["xxl", "xl", "lg", "md", "sm", "xs"], x = (n) => ({
|
|
4
4
|
xs: `(max-width: ${n.screenXSMax}px)`,
|
|
5
5
|
sm: `(min-width: ${n.screenSM}px)`,
|
|
@@ -7,7 +7,7 @@ const m = ["xxl", "xl", "lg", "md", "sm", "xs"], x = (n) => ({
|
|
|
7
7
|
lg: `(min-width: ${n.screenLG}px)`,
|
|
8
8
|
xl: `(min-width: ${n.screenXL}px)`,
|
|
9
9
|
xxl: `(min-width: ${n.screenXXL}px)`
|
|
10
|
-
}),
|
|
10
|
+
}), u = (n) => {
|
|
11
11
|
const e = n, t = [].concat(m).reverse();
|
|
12
12
|
return t.forEach((o, a) => {
|
|
13
13
|
const r = o.toUpperCase(), i = `screen${r}Min`, s = `screen${r}`;
|
|
@@ -24,7 +24,7 @@ const m = ["xxl", "xl", "lg", "md", "sm", "xs"], x = (n) => ({
|
|
|
24
24
|
}), n;
|
|
25
25
|
};
|
|
26
26
|
function f() {
|
|
27
|
-
const [, n] = h(), e = x(
|
|
27
|
+
const [, n] = h(), e = x(u(n));
|
|
28
28
|
return d.useMemo(() => {
|
|
29
29
|
const t = /* @__PURE__ */ new Map();
|
|
30
30
|
let o = -1, a = {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as a from "react";
|
|
2
2
|
import { createContext as B } from "react";
|
|
3
3
|
import { c as F } from "./index-NQd_zMf0.js";
|
|
4
|
-
import { u as q, r as y } from "./responsiveObserver-
|
|
5
|
-
import {
|
|
4
|
+
import { u as q, r as y } from "./responsiveObserver-V1_1G14X.js";
|
|
5
|
+
import { h as M, m as K, d as Q, C as U } from "./index-1KQbTQJ2.js";
|
|
6
6
|
const Y = /* @__PURE__ */ B({}), Z = Y, z = (t) => {
|
|
7
7
|
const {
|
|
8
8
|
componentCls: e
|
|
@@ -125,7 +125,7 @@ const Y = /* @__PURE__ */ B({}), Z = Y, z = (t) => {
|
|
|
125
125
|
};
|
|
126
126
|
return [ee(e), w(e, ""), w(e, "-xs"), Object.keys(o).map((n) => ne(e, o[n], n)).reduce((n, s) => Object.assign(Object.assign({}, n), s), {})];
|
|
127
127
|
}, se);
|
|
128
|
-
var
|
|
128
|
+
var ae = function(t, e) {
|
|
129
129
|
var o = {};
|
|
130
130
|
for (var n in t)
|
|
131
131
|
Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (o[n] = t[n]);
|
|
@@ -135,7 +135,7 @@ var ie = function(t, e) {
|
|
|
135
135
|
return o;
|
|
136
136
|
};
|
|
137
137
|
function I(t, e) {
|
|
138
|
-
const [o, n] =
|
|
138
|
+
const [o, n] = a.useState(typeof t == "string" ? t : ""), s = () => {
|
|
139
139
|
if (typeof t == "string" && n(t), typeof t == "object")
|
|
140
140
|
for (let r = 0; r < y.length; r++) {
|
|
141
141
|
const f = y[r];
|
|
@@ -148,11 +148,11 @@ function I(t, e) {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
|
-
return
|
|
151
|
+
return a.useEffect(() => {
|
|
152
152
|
s();
|
|
153
153
|
}, [JSON.stringify(t), e]), o;
|
|
154
154
|
}
|
|
155
|
-
const E = /* @__PURE__ */
|
|
155
|
+
const E = /* @__PURE__ */ a.forwardRef((t, e) => {
|
|
156
156
|
const {
|
|
157
157
|
prefixCls: o,
|
|
158
158
|
justify: n,
|
|
@@ -162,60 +162,60 @@ const E = /* @__PURE__ */ i.forwardRef((t, e) => {
|
|
|
162
162
|
children: d,
|
|
163
163
|
gutter: p = 0,
|
|
164
164
|
wrap: g
|
|
165
|
-
} = t, k =
|
|
165
|
+
} = t, k = ae(t, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]), {
|
|
166
166
|
getPrefixCls: A,
|
|
167
167
|
direction: N
|
|
168
|
-
} =
|
|
168
|
+
} = a.useContext(U), [L, V] = a.useState({
|
|
169
169
|
xs: !0,
|
|
170
170
|
sm: !0,
|
|
171
171
|
md: !0,
|
|
172
172
|
lg: !0,
|
|
173
173
|
xl: !0,
|
|
174
174
|
xxl: !0
|
|
175
|
-
}), [C, _] =
|
|
175
|
+
}), [C, _] = a.useState({
|
|
176
176
|
xs: !1,
|
|
177
177
|
sm: !1,
|
|
178
178
|
md: !1,
|
|
179
179
|
lg: !1,
|
|
180
180
|
xl: !1,
|
|
181
181
|
xxl: !1
|
|
182
|
-
}), j = I(s, C),
|
|
183
|
-
|
|
184
|
-
const u =
|
|
182
|
+
}), j = I(s, C), h = I(n, C), W = a.useRef(p), O = q();
|
|
183
|
+
a.useEffect(() => {
|
|
184
|
+
const u = O.subscribe((x) => {
|
|
185
185
|
_(x);
|
|
186
|
-
const
|
|
187
|
-
(!Array.isArray(
|
|
186
|
+
const i = W.current || 0;
|
|
187
|
+
(!Array.isArray(i) && typeof i == "object" || Array.isArray(i) && (typeof i[0] == "object" || typeof i[1] == "object")) && V(x);
|
|
188
188
|
});
|
|
189
|
-
return () =>
|
|
189
|
+
return () => O.unsubscribe(u);
|
|
190
190
|
}, []);
|
|
191
191
|
const H = () => {
|
|
192
192
|
const u = [void 0, void 0];
|
|
193
|
-
return (Array.isArray(p) ? p : [p, void 0]).forEach((
|
|
194
|
-
if (typeof
|
|
193
|
+
return (Array.isArray(p) ? p : [p, void 0]).forEach((i, G) => {
|
|
194
|
+
if (typeof i == "object")
|
|
195
195
|
for (let b = 0; b < y.length; b++) {
|
|
196
196
|
const S = y[b];
|
|
197
|
-
if (L[S] &&
|
|
198
|
-
u[G] =
|
|
197
|
+
if (L[S] && i[S] !== void 0) {
|
|
198
|
+
u[G] = i[S];
|
|
199
199
|
break;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
else
|
|
203
|
-
u[G] =
|
|
203
|
+
u[G] = i;
|
|
204
204
|
}), u;
|
|
205
205
|
}, c = A("row", o), [J, T, X] = oe(c), l = H(), D = F(c, {
|
|
206
206
|
[`${c}-no-wrap`]: g === !1,
|
|
207
|
-
[`${c}-${
|
|
207
|
+
[`${c}-${h}`]: h,
|
|
208
208
|
[`${c}-${j}`]: j,
|
|
209
209
|
[`${c}-rtl`]: N === "rtl"
|
|
210
210
|
}, r, T, X), m = {}, $ = l[0] != null && l[0] > 0 ? l[0] / -2 : void 0;
|
|
211
211
|
$ && (m.marginLeft = $, m.marginRight = $), [, m.rowGap] = l;
|
|
212
|
-
const [v, R] = l, P =
|
|
212
|
+
const [v, R] = l, P = a.useMemo(() => ({
|
|
213
213
|
gutter: [v, R],
|
|
214
214
|
wrap: g
|
|
215
215
|
}), [v, R, g]);
|
|
216
|
-
return J(/* @__PURE__ */
|
|
216
|
+
return J(/* @__PURE__ */ a.createElement(Z.Provider, {
|
|
217
217
|
value: P
|
|
218
|
-
}, /* @__PURE__ */
|
|
218
|
+
}, /* @__PURE__ */ a.createElement("div", Object.assign({}, k, {
|
|
219
219
|
className: D,
|
|
220
220
|
style: Object.assign(Object.assign({}, m), f),
|
|
221
221
|
ref: e
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./index-
|
|
1
|
+
import "./index-1KQbTQJ2.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import { K as t, i as e } from "./motion-
|
|
3
|
+
import { K as t, i as e } from "./motion-0ToOu81j.js";
|
|
4
4
|
const m = new t("antMoveDownIn", {
|
|
5
5
|
"0%": {
|
|
6
6
|
transform: "translate3d(0, 100%, 0)",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as u } from "./index-
|
|
1
|
+
import { f as u } from "./index-1KQbTQJ2.js";
|
|
2
2
|
const l = (o) => ({
|
|
3
3
|
// FIXME: This use link but is a operation unit. Seems should be a colorPrimary.
|
|
4
4
|
// And Typography use this to generate link style which should not do this.
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as V } from "./isVisible-
|
|
1
|
+
import { a as d, b as g, c as S } from "./index-1KQbTQJ2.js";
|
|
2
|
+
import { u as V } from "./isVisible-Qi9l15Ty.js";
|
|
3
3
|
function o(t) {
|
|
4
4
|
return t !== void 0;
|
|
5
5
|
}
|
|
6
6
|
function F(t, _) {
|
|
7
7
|
var a = _ || {}, n = a.defaultValue, e = a.value, h = a.onChange, s = a.postState, m = d(function() {
|
|
8
8
|
return o(e) ? e : o(n) ? typeof n == "function" ? n() : n : typeof t == "function" ? t() : t;
|
|
9
|
-
}), i = g(m, 2), f = i[0], v = i[1], u = e !== void 0 ? e : f, C = s ? s(u) : u, y = V(h), E = d([u]), l = g(E, 2),
|
|
9
|
+
}), i = g(m, 2), f = i[0], v = i[1], u = e !== void 0 ? e : f, C = s ? s(u) : u, y = V(h), E = d([u]), l = g(E, 2), c = l[0], M = l[1];
|
|
10
10
|
S(function() {
|
|
11
|
-
var r =
|
|
11
|
+
var r = c[0];
|
|
12
12
|
f !== r && y(f, r);
|
|
13
|
-
}, [
|
|
13
|
+
}, [c]), S(function() {
|
|
14
14
|
o(e) || v(e);
|
|
15
15
|
}, [e]);
|
|
16
|
-
var b = V(function(r,
|
|
17
|
-
v(r,
|
|
16
|
+
var b = V(function(r, p) {
|
|
17
|
+
v(r, p), M([u], p);
|
|
18
18
|
});
|
|
19
19
|
return [C, b];
|
|
20
20
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as r } from "./index-NQd_zMf0.js";
|
|
2
2
|
import { useContext as o } from "react";
|
|
3
|
-
import { V as i } from "./context-
|
|
3
|
+
import { V as i } from "./context-h3WSVDPz.js";
|
|
4
4
|
function g(e, t, n) {
|
|
5
5
|
return r({
|
|
6
6
|
[`${e}-status-success`]: t === "success",
|
|
@@ -13,10 +13,10 @@ function g(e, t, n) {
|
|
|
13
13
|
const m = (e, t) => t || e, u = ["outlined", "borderless", "filled"], f = function(e) {
|
|
14
14
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : void 0;
|
|
15
15
|
const n = o(i);
|
|
16
|
-
let
|
|
17
|
-
typeof e < "u" ?
|
|
18
|
-
const
|
|
19
|
-
return [
|
|
16
|
+
let s;
|
|
17
|
+
typeof e < "u" ? s = e : t === !1 ? s = "borderless" : s = n ?? "outlined";
|
|
18
|
+
const a = u.includes(s);
|
|
19
|
+
return [s, a];
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
22
|
m as a,
|