gasp-components 1.0.9 → 1.0.11
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/UploadOutlined-9WKjHsqa.js +878 -0
- package/dist/components/ag-grid-table/index.js +57877 -38314
- package/dist/components/button/index.js +18 -18
- package/dist/components/checklist/checklist-item.js +3 -3
- package/dist/components/checklist/index.js +5 -5
- package/dist/components/date-picker/index.js +9 -5022
- package/dist/components/dragger/index.js +28 -28
- package/dist/components/dropdown/index.js +10 -11
- package/dist/components/form/index.js +8 -9
- package/dist/components/form-item/index.js +10 -10
- package/dist/components/input/index.js +8 -8
- package/dist/components/modal/index.js +18 -20
- package/dist/components/password-input/index.js +2 -2
- package/dist/components/progress/index.js +16 -18
- package/dist/components/progress-circle/index.js +3 -3
- package/dist/components/radio-button/index.js +8 -8
- package/dist/components/result-popup/index.js +13 -14
- package/dist/components/select/index.js +1 -1
- package/dist/components/side-menu/index.js +2 -2
- package/dist/components/side-menu/menu-item.js +4 -6
- package/dist/components/steps/index.js +9 -9
- package/dist/components/table/index.js +16 -9298
- package/dist/components/tabs/index.js +10 -10
- package/dist/components/tabs/tab.js +7 -8
- package/dist/components/tag/index.js +9 -258
- package/dist/components/timeline-horizontal/index.js +7 -7
- package/dist/components/upload/index.js +62 -77
- package/dist/index-WlPrqxgY.js +87 -0
- package/dist/main.js +69 -457
- package/package.json +4 -3
- package/dist/CheckCircleFilled-xt-0R96Z.js +0 -16
- package/dist/CheckOutlined-EgxCAgj_.js +0 -16
- package/dist/CloseCircleFilled-bIgIULWb.js +0 -16
- package/dist/CloseOutlined-Q3kC3EZS.js +0 -16
- package/dist/Compact-fdEKV_mF.js +0 -180
- package/dist/ExclamationCircleFilled-XzDBEGmA.js +0 -16
- package/dist/KeyCode-qFRXB1-n.js +0 -517
- package/dist/LoadingOutlined-6Ipqn0og.js +0 -16
- package/dist/Overflow-JFdXKgCr.js +0 -231
- package/dist/PurePanel-hLGnXbul.js +0 -60
- package/dist/SearchOutlined-rJTFGXUi.js +0 -16
- package/dist/TextArea-n3dknzTq.js +0 -716
- package/dist/UploadOutlined-D8jfLEgv.js +0 -27
- package/dist/asyncToGenerator-t4sKr8R4.js +0 -340
- package/dist/button-LN5ZDad8.js +0 -819
- package/dist/collapse-ilv4Tji1.js +0 -20
- package/dist/colors-opGg9oSz.js +0 -25
- package/dist/compact-item-jjuVmDBH.js +0 -61
- package/dist/context-h3WSVDPz.js +0 -2087
- package/dist/createFormattedComponent-FcpICAm8.js +0 -3260
- package/dist/index--6VfGMUo.js +0 -402
- package/dist/index-0mpuHoS5.js +0 -996
- package/dist/index-1KQbTQJ2.js +0 -4405
- package/dist/index-5Uo03BMk.js +0 -681
- package/dist/index-BFgxz47K.js +0 -89
- package/dist/index-D3LMPWyJ.js +0 -1437
- package/dist/index-DVS_nWxv.js +0 -3026
- package/dist/index-ELHBhuK9.js +0 -100
- package/dist/index-Fn8q8B3V.js +0 -107
- package/dist/index-GgkQrebz.js +0 -950
- package/dist/index-L-MzVDcK.js +0 -616
- package/dist/index-M3WnMjiA.js +0 -230
- package/dist/index-NQd_zMf0.js +0 -69
- package/dist/index-ZT64Ec6u.js +0 -267
- package/dist/index-aawDqn9q.js +0 -3337
- package/dist/index-k04G4nlS.js +0 -1416
- package/dist/index-s3u4YBl4.js +0 -8
- package/dist/index-vtDVJV8q.js +0 -19571
- package/dist/isVisible-Qi9l15Ty.js +0 -232
- package/dist/motion-0ToOu81j.js +0 -226
- package/dist/motion-NQme0FJ_.js +0 -32
- package/dist/omit-ylWA0ZLZ.js +0 -10
- package/dist/pickAttrs-zaQzRTqh.js +0 -42
- package/dist/progress-a1_pwKVT.js +0 -722
- package/dist/reactNode-R20zZQk1.js +0 -18
- package/dist/responsiveObserver-V1_1G14X.js +0 -71
- package/dist/roundedArrow-p1Pmd9av.js +0 -64
- package/dist/row-sPFiFm0C.js +0 -230
- package/dist/slide-mFXPRHku.js +0 -265
- package/dist/styleChecker-pZ3k2IiY.js +0 -37
- package/dist/useCSSVarCls-GwZT_WiF.js +0 -9
- package/dist/useClosable-4G12n4Bp.js +0 -15
- package/dist/useLocale-eThlLZJw.js +0 -16
- package/dist/useMergedState-qUafLuUa.js +0 -23
- package/dist/useVariants-s0IcneBD.js +0 -25
- package/dist/zoom-Ps8y0jNW.js +0 -174
package/dist/index-ELHBhuK9.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import * as l from "react";
|
|
2
|
-
import U from "react";
|
|
3
|
-
import { c as _ } from "./index-NQd_zMf0.js";
|
|
4
|
-
import { C as X, t as Y, u as Z } from "./Compact-fdEKV_mF.js";
|
|
5
|
-
import { C as ee } from "./index-1KQbTQJ2.js";
|
|
6
|
-
function w(e) {
|
|
7
|
-
return ["small", "middle", "large"].includes(e);
|
|
8
|
-
}
|
|
9
|
-
function E(e) {
|
|
10
|
-
return e ? typeof e == "number" && !Number.isNaN(e) : !1;
|
|
11
|
-
}
|
|
12
|
-
const h = /* @__PURE__ */ U.createContext({
|
|
13
|
-
latestIndex: 0
|
|
14
|
-
}), te = h.Provider, se = (e) => {
|
|
15
|
-
let {
|
|
16
|
-
className: r,
|
|
17
|
-
index: a,
|
|
18
|
-
children: t,
|
|
19
|
-
split: n,
|
|
20
|
-
style: s
|
|
21
|
-
} = e;
|
|
22
|
-
const {
|
|
23
|
-
latestIndex: p
|
|
24
|
-
} = l.useContext(h);
|
|
25
|
-
return t == null ? null : /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement("div", {
|
|
26
|
-
className: r,
|
|
27
|
-
style: s
|
|
28
|
-
}, t), a < p && n && /* @__PURE__ */ l.createElement("span", {
|
|
29
|
-
className: `${r}-split`
|
|
30
|
-
}, n));
|
|
31
|
-
}, ne = se;
|
|
32
|
-
var le = function(e, r) {
|
|
33
|
-
var a = {};
|
|
34
|
-
for (var t in e)
|
|
35
|
-
Object.prototype.hasOwnProperty.call(e, t) && r.indexOf(t) < 0 && (a[t] = e[t]);
|
|
36
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
37
|
-
for (var n = 0, t = Object.getOwnPropertySymbols(e); n < t.length; n++)
|
|
38
|
-
r.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (a[t[n]] = e[t[n]]);
|
|
39
|
-
return a;
|
|
40
|
-
};
|
|
41
|
-
const j = /* @__PURE__ */ l.forwardRef((e, r) => {
|
|
42
|
-
var a, t;
|
|
43
|
-
const {
|
|
44
|
-
getPrefixCls: n,
|
|
45
|
-
space: s,
|
|
46
|
-
direction: p
|
|
47
|
-
} = l.useContext(ee), {
|
|
48
|
-
size: c = (s == null ? void 0 : s.size) || "small",
|
|
49
|
-
align: x,
|
|
50
|
-
className: I,
|
|
51
|
-
rootClassName: k,
|
|
52
|
-
children: A,
|
|
53
|
-
direction: S = "horizontal",
|
|
54
|
-
prefixCls: G,
|
|
55
|
-
split: R,
|
|
56
|
-
style: H,
|
|
57
|
-
wrap: D = !1,
|
|
58
|
-
classNames: f,
|
|
59
|
-
styles: v
|
|
60
|
-
} = e, F = le(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [d, m] = Array.isArray(c) ? c : [c, c], b = w(m), $ = w(d), M = E(m), W = E(d), z = Y(A, {
|
|
61
|
-
keepEmpty: !0
|
|
62
|
-
}), O = x === void 0 && S === "horizontal" ? "center" : x, o = n("space", G), [q, B, J] = Z(o), K = _(o, s == null ? void 0 : s.className, B, `${o}-${S}`, {
|
|
63
|
-
[`${o}-rtl`]: p === "rtl",
|
|
64
|
-
[`${o}-align-${O}`]: O,
|
|
65
|
-
[`${o}-gap-row-${m}`]: b,
|
|
66
|
-
[`${o}-gap-col-${d}`]: $
|
|
67
|
-
}, I, k, J), P = _(`${o}-item`, (a = f == null ? void 0 : f.item) !== null && a !== void 0 ? a : (t = s == null ? void 0 : s.classNames) === null || t === void 0 ? void 0 : t.item);
|
|
68
|
-
let y = 0;
|
|
69
|
-
const L = z.map((i, C) => {
|
|
70
|
-
var N, g;
|
|
71
|
-
i != null && (y = C);
|
|
72
|
-
const T = i && i.key || `${P}-${C}`;
|
|
73
|
-
return /* @__PURE__ */ l.createElement(ne, {
|
|
74
|
-
className: P,
|
|
75
|
-
key: T,
|
|
76
|
-
index: C,
|
|
77
|
-
split: R,
|
|
78
|
-
style: (N = v == null ? void 0 : v.item) !== null && N !== void 0 ? N : (g = s == null ? void 0 : s.styles) === null || g === void 0 ? void 0 : g.item
|
|
79
|
-
}, i);
|
|
80
|
-
}), Q = l.useMemo(() => ({
|
|
81
|
-
latestIndex: y
|
|
82
|
-
}), [y]);
|
|
83
|
-
if (z.length === 0)
|
|
84
|
-
return null;
|
|
85
|
-
const u = {};
|
|
86
|
-
return D && (u.flexWrap = "wrap"), !$ && W && (u.columnGap = d), !b && M && (u.rowGap = m), q(/* @__PURE__ */ l.createElement("div", Object.assign({
|
|
87
|
-
ref: r,
|
|
88
|
-
className: K,
|
|
89
|
-
style: Object.assign(Object.assign(Object.assign({}, u), s == null ? void 0 : s.style), H)
|
|
90
|
-
}, F), /* @__PURE__ */ l.createElement(te, {
|
|
91
|
-
value: Q
|
|
92
|
-
}, L)));
|
|
93
|
-
});
|
|
94
|
-
process.env.NODE_ENV !== "production" && (j.displayName = "Space");
|
|
95
|
-
const V = j;
|
|
96
|
-
V.Compact = X;
|
|
97
|
-
const ce = V;
|
|
98
|
-
export {
|
|
99
|
-
ce as S
|
|
100
|
-
};
|
package/dist/index-Fn8q8B3V.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { O as d, P as b, Q as O, R as i, U as j, V as m, W as z, T as h, I as S, X as T, Y as v, Z as u, u as B } from "./index-1KQbTQJ2.js";
|
|
2
|
-
import "react";
|
|
3
|
-
const C = (t) => {
|
|
4
|
-
const e = t != null && t.algorithm ? d(t.algorithm) : d(i), r = Object.assign(Object.assign({}, b), t == null ? void 0 : t.token);
|
|
5
|
-
return O(r, {
|
|
6
|
-
override: t == null ? void 0 : t.token
|
|
7
|
-
}, e, j);
|
|
8
|
-
};
|
|
9
|
-
function k(t) {
|
|
10
|
-
const {
|
|
11
|
-
sizeUnit: e,
|
|
12
|
-
sizeStep: r
|
|
13
|
-
} = t, o = r - 2;
|
|
14
|
-
return {
|
|
15
|
-
sizeXXL: e * (o + 10),
|
|
16
|
-
sizeXL: e * (o + 6),
|
|
17
|
-
sizeLG: e * (o + 2),
|
|
18
|
-
sizeMD: e * (o + 2),
|
|
19
|
-
sizeMS: e * (o + 1),
|
|
20
|
-
size: e * o,
|
|
21
|
-
sizeSM: e * o,
|
|
22
|
-
sizeXS: e * (o - 1),
|
|
23
|
-
sizeXXS: e * (o - 1)
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
const y = (t, e) => {
|
|
27
|
-
const r = e ?? i(t), o = r.fontSizeSM, s = r.controlHeight - 4;
|
|
28
|
-
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, r), k(e ?? t)), m(o)), {
|
|
29
|
-
// controlHeight
|
|
30
|
-
controlHeight: s
|
|
31
|
-
}), z(Object.assign(Object.assign({}, r), {
|
|
32
|
-
controlHeight: s
|
|
33
|
-
})));
|
|
34
|
-
}, M = y, n = (t, e) => new h(t).setAlpha(e).toRgbString(), a = (t, e) => new h(t).lighten(e).toHexString(), x = (t) => {
|
|
35
|
-
const e = S(t, {
|
|
36
|
-
theme: "dark"
|
|
37
|
-
});
|
|
38
|
-
return {
|
|
39
|
-
1: e[0],
|
|
40
|
-
2: e[1],
|
|
41
|
-
3: e[2],
|
|
42
|
-
4: e[3],
|
|
43
|
-
5: e[6],
|
|
44
|
-
6: e[5],
|
|
45
|
-
7: e[4],
|
|
46
|
-
8: e[6],
|
|
47
|
-
9: e[5],
|
|
48
|
-
10: e[4]
|
|
49
|
-
// 8: colors[9],
|
|
50
|
-
// 9: colors[8],
|
|
51
|
-
// 10: colors[7],
|
|
52
|
-
};
|
|
53
|
-
}, X = (t, e) => {
|
|
54
|
-
const r = t || "#000", o = e || "#fff";
|
|
55
|
-
return {
|
|
56
|
-
colorBgBase: r,
|
|
57
|
-
colorTextBase: o,
|
|
58
|
-
colorText: n(o, 0.85),
|
|
59
|
-
colorTextSecondary: n(o, 0.65),
|
|
60
|
-
colorTextTertiary: n(o, 0.45),
|
|
61
|
-
colorTextQuaternary: n(o, 0.25),
|
|
62
|
-
colorFill: n(o, 0.18),
|
|
63
|
-
colorFillSecondary: n(o, 0.12),
|
|
64
|
-
colorFillTertiary: n(o, 0.08),
|
|
65
|
-
colorFillQuaternary: n(o, 0.04),
|
|
66
|
-
colorBgElevated: a(r, 12),
|
|
67
|
-
colorBgContainer: a(r, 8),
|
|
68
|
-
colorBgLayout: a(r, 0),
|
|
69
|
-
colorBgSpotlight: a(r, 26),
|
|
70
|
-
colorBgBlur: n(o, 0.04),
|
|
71
|
-
colorBorder: a(r, 26),
|
|
72
|
-
colorBorderSecondary: a(r, 19)
|
|
73
|
-
};
|
|
74
|
-
}, $ = (t, e) => {
|
|
75
|
-
const r = Object.keys(T).map((s) => {
|
|
76
|
-
const l = S(t[s], {
|
|
77
|
-
theme: "dark"
|
|
78
|
-
});
|
|
79
|
-
return new Array(10).fill(1).reduce((g, A, c) => (g[`${s}-${c + 1}`] = l[c], g[`${s}${c + 1}`] = l[c], g), {});
|
|
80
|
-
}).reduce((s, l) => (s = Object.assign(Object.assign({}, s), l), s), {}), o = e ?? i(t);
|
|
81
|
-
return Object.assign(Object.assign(Object.assign({}, o), r), v(t, {
|
|
82
|
-
generateColorPalettes: x,
|
|
83
|
-
generateNeutralColorPalettes: X
|
|
84
|
-
}));
|
|
85
|
-
}, f = $;
|
|
86
|
-
function p() {
|
|
87
|
-
const [t, e, r] = B();
|
|
88
|
-
return {
|
|
89
|
-
theme: t,
|
|
90
|
-
token: e,
|
|
91
|
-
hashId: r
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
const H = {
|
|
95
|
-
/** @private Test Usage. Do not use in production. */
|
|
96
|
-
defaultConfig: u,
|
|
97
|
-
/** Default seedToken */
|
|
98
|
-
defaultSeed: u.token,
|
|
99
|
-
useToken: p,
|
|
100
|
-
defaultAlgorithm: i,
|
|
101
|
-
darkAlgorithm: f,
|
|
102
|
-
compactAlgorithm: M,
|
|
103
|
-
getDesignToken: C
|
|
104
|
-
};
|
|
105
|
-
export {
|
|
106
|
-
H as t
|
|
107
|
-
};
|