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.
Files changed (86) hide show
  1. package/dist/UploadOutlined-9WKjHsqa.js +878 -0
  2. package/dist/components/ag-grid-table/index.js +57877 -38314
  3. package/dist/components/button/index.js +18 -18
  4. package/dist/components/checklist/checklist-item.js +3 -3
  5. package/dist/components/checklist/index.js +5 -5
  6. package/dist/components/date-picker/index.js +9 -5022
  7. package/dist/components/dragger/index.js +28 -28
  8. package/dist/components/dropdown/index.js +10 -11
  9. package/dist/components/form/index.js +8 -9
  10. package/dist/components/form-item/index.js +10 -10
  11. package/dist/components/input/index.js +8 -8
  12. package/dist/components/modal/index.js +18 -20
  13. package/dist/components/password-input/index.js +2 -2
  14. package/dist/components/progress/index.js +16 -18
  15. package/dist/components/progress-circle/index.js +3 -3
  16. package/dist/components/radio-button/index.js +8 -8
  17. package/dist/components/result-popup/index.js +13 -14
  18. package/dist/components/select/index.js +1 -1
  19. package/dist/components/side-menu/index.js +2 -2
  20. package/dist/components/side-menu/menu-item.js +4 -6
  21. package/dist/components/steps/index.js +9 -9
  22. package/dist/components/table/index.js +16 -9298
  23. package/dist/components/tabs/index.js +10 -10
  24. package/dist/components/tabs/tab.js +7 -8
  25. package/dist/components/tag/index.js +9 -258
  26. package/dist/components/timeline-horizontal/index.js +7 -7
  27. package/dist/components/upload/index.js +62 -77
  28. package/dist/index-WlPrqxgY.js +87 -0
  29. package/dist/main.js +69 -457
  30. package/package.json +4 -3
  31. package/dist/CheckCircleFilled-xt-0R96Z.js +0 -16
  32. package/dist/CheckOutlined-EgxCAgj_.js +0 -16
  33. package/dist/CloseCircleFilled-bIgIULWb.js +0 -16
  34. package/dist/CloseOutlined-Q3kC3EZS.js +0 -16
  35. package/dist/Compact-fdEKV_mF.js +0 -180
  36. package/dist/ExclamationCircleFilled-XzDBEGmA.js +0 -16
  37. package/dist/KeyCode-qFRXB1-n.js +0 -517
  38. package/dist/LoadingOutlined-6Ipqn0og.js +0 -16
  39. package/dist/Overflow-JFdXKgCr.js +0 -231
  40. package/dist/PurePanel-hLGnXbul.js +0 -60
  41. package/dist/SearchOutlined-rJTFGXUi.js +0 -16
  42. package/dist/TextArea-n3dknzTq.js +0 -716
  43. package/dist/UploadOutlined-D8jfLEgv.js +0 -27
  44. package/dist/asyncToGenerator-t4sKr8R4.js +0 -340
  45. package/dist/button-LN5ZDad8.js +0 -819
  46. package/dist/collapse-ilv4Tji1.js +0 -20
  47. package/dist/colors-opGg9oSz.js +0 -25
  48. package/dist/compact-item-jjuVmDBH.js +0 -61
  49. package/dist/context-h3WSVDPz.js +0 -2087
  50. package/dist/createFormattedComponent-FcpICAm8.js +0 -3260
  51. package/dist/index--6VfGMUo.js +0 -402
  52. package/dist/index-0mpuHoS5.js +0 -996
  53. package/dist/index-1KQbTQJ2.js +0 -4405
  54. package/dist/index-5Uo03BMk.js +0 -681
  55. package/dist/index-BFgxz47K.js +0 -89
  56. package/dist/index-D3LMPWyJ.js +0 -1437
  57. package/dist/index-DVS_nWxv.js +0 -3026
  58. package/dist/index-ELHBhuK9.js +0 -100
  59. package/dist/index-Fn8q8B3V.js +0 -107
  60. package/dist/index-GgkQrebz.js +0 -950
  61. package/dist/index-L-MzVDcK.js +0 -616
  62. package/dist/index-M3WnMjiA.js +0 -230
  63. package/dist/index-NQd_zMf0.js +0 -69
  64. package/dist/index-ZT64Ec6u.js +0 -267
  65. package/dist/index-aawDqn9q.js +0 -3337
  66. package/dist/index-k04G4nlS.js +0 -1416
  67. package/dist/index-s3u4YBl4.js +0 -8
  68. package/dist/index-vtDVJV8q.js +0 -19571
  69. package/dist/isVisible-Qi9l15Ty.js +0 -232
  70. package/dist/motion-0ToOu81j.js +0 -226
  71. package/dist/motion-NQme0FJ_.js +0 -32
  72. package/dist/omit-ylWA0ZLZ.js +0 -10
  73. package/dist/pickAttrs-zaQzRTqh.js +0 -42
  74. package/dist/progress-a1_pwKVT.js +0 -722
  75. package/dist/reactNode-R20zZQk1.js +0 -18
  76. package/dist/responsiveObserver-V1_1G14X.js +0 -71
  77. package/dist/roundedArrow-p1Pmd9av.js +0 -64
  78. package/dist/row-sPFiFm0C.js +0 -230
  79. package/dist/slide-mFXPRHku.js +0 -265
  80. package/dist/styleChecker-pZ3k2IiY.js +0 -37
  81. package/dist/useCSSVarCls-GwZT_WiF.js +0 -9
  82. package/dist/useClosable-4G12n4Bp.js +0 -15
  83. package/dist/useLocale-eThlLZJw.js +0 -16
  84. package/dist/useMergedState-qUafLuUa.js +0 -23
  85. package/dist/useVariants-s0IcneBD.js +0 -25
  86. package/dist/zoom-Ps8y0jNW.js +0 -174
@@ -1,232 +0,0 @@
1
- import * as s from "react";
2
- import x, { useContext as J, useEffect as K } from "react";
3
- import { H as L, g as R, _ as l, I as M, J as S, K as U, x as _, b as E, M as V, N, e as W } from "./index-1KQbTQJ2.js";
4
- import { c as q } from "./index-NQd_zMf0.js";
5
- function un(n) {
6
- var o = s.useRef();
7
- o.current = n;
8
- var e = s.useCallback(function() {
9
- for (var t, r = arguments.length, i = new Array(r), a = 0; a < r; a++)
10
- i[a] = arguments[a];
11
- return (t = o.current) === null || t === void 0 ? void 0 : t.call.apply(t, [o].concat(i));
12
- }, []);
13
- return e;
14
- }
15
- function z(n) {
16
- var o;
17
- return n == null || (o = n.getRootNode) === null || o === void 0 ? void 0 : o.call(n);
18
- }
19
- function G(n) {
20
- return z(n) instanceof ShadowRoot;
21
- }
22
- function Q(n) {
23
- return G(n) ? z(n) : null;
24
- }
25
- function X(n) {
26
- return n.replace(/-(.)/g, function(o, e) {
27
- return e.toUpperCase();
28
- });
29
- }
30
- function Y(n, o) {
31
- L(n, "[@ant-design/icons] ".concat(o));
32
- }
33
- function I(n) {
34
- return R(n) === "object" && typeof n.name == "string" && typeof n.theme == "string" && (R(n.icon) === "object" || typeof n.icon == "function");
35
- }
36
- function k() {
37
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
38
- return Object.keys(n).reduce(function(o, e) {
39
- var t = n[e];
40
- switch (e) {
41
- case "class":
42
- o.className = t, delete o.class;
43
- break;
44
- default:
45
- delete o[e], o[X(e)] = t;
46
- }
47
- return o;
48
- }, {});
49
- }
50
- function T(n, o, e) {
51
- return e ? /* @__PURE__ */ x.createElement(n.tag, l(l({
52
- key: o
53
- }, k(n.attrs)), e), (n.children || []).map(function(t, r) {
54
- return T(t, "".concat(o, "-").concat(n.tag, "-").concat(r));
55
- })) : /* @__PURE__ */ x.createElement(n.tag, l({
56
- key: o
57
- }, k(n.attrs)), (n.children || []).map(function(t, r) {
58
- return T(t, "".concat(o, "-").concat(n.tag, "-").concat(r));
59
- }));
60
- }
61
- function A(n) {
62
- return M(n)[0];
63
- }
64
- function $(n) {
65
- return n ? Array.isArray(n) ? n : [n] : [];
66
- }
67
- var Z = `
68
- .anticon {
69
- display: inline-block;
70
- color: inherit;
71
- font-style: normal;
72
- line-height: 0;
73
- text-align: center;
74
- text-transform: none;
75
- vertical-align: -0.125em;
76
- text-rendering: optimizeLegibility;
77
- -webkit-font-smoothing: antialiased;
78
- -moz-osx-font-smoothing: grayscale;
79
- }
80
-
81
- .anticon > * {
82
- line-height: 1;
83
- }
84
-
85
- .anticon svg {
86
- display: inline-block;
87
- }
88
-
89
- .anticon::before {
90
- display: none;
91
- }
92
-
93
- .anticon .anticon-icon {
94
- display: block;
95
- }
96
-
97
- .anticon[tabindex] {
98
- cursor: pointer;
99
- }
100
-
101
- .anticon-spin::before,
102
- .anticon-spin {
103
- display: inline-block;
104
- -webkit-animation: loadingCircle 1s infinite linear;
105
- animation: loadingCircle 1s infinite linear;
106
- }
107
-
108
- @-webkit-keyframes loadingCircle {
109
- 100% {
110
- -webkit-transform: rotate(360deg);
111
- transform: rotate(360deg);
112
- }
113
- }
114
-
115
- @keyframes loadingCircle {
116
- 100% {
117
- -webkit-transform: rotate(360deg);
118
- transform: rotate(360deg);
119
- }
120
- }
121
- `, nn = function(o) {
122
- var e = J(S), t = e.csp, r = e.prefixCls, i = Z;
123
- r && (i = i.replace(/anticon/g, r)), K(function() {
124
- var a = o.current, u = Q(a);
125
- U(i, "@ant-design-icons", {
126
- prepend: !0,
127
- csp: t,
128
- attachTo: u
129
- });
130
- }, []);
131
- }, on = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"], d = {
132
- primaryColor: "#333",
133
- secondaryColor: "#E6E6E6",
134
- calculated: !1
135
- };
136
- function en(n) {
137
- var o = n.primaryColor, e = n.secondaryColor;
138
- d.primaryColor = o, d.secondaryColor = e || A(o), d.calculated = !!e;
139
- }
140
- function rn() {
141
- return l({}, d);
142
- }
143
- var g = function(o) {
144
- var e = o.icon, t = o.className, r = o.onClick, i = o.style, a = o.primaryColor, u = o.secondaryColor, m = _(o, on), C = s.useRef(), f = d;
145
- if (a && (f = {
146
- primaryColor: a,
147
- secondaryColor: u || A(a)
148
- }), nn(C), Y(I(e), "icon should be icon definiton, but got ".concat(e)), !I(e))
149
- return null;
150
- var c = e;
151
- return c && typeof c.icon == "function" && (c = l(l({}, c), {}, {
152
- icon: c.icon(f.primaryColor, f.secondaryColor)
153
- })), T(c.icon, "svg-".concat(c.name), l(l({
154
- className: t,
155
- onClick: r,
156
- style: i,
157
- "data-icon": c.name,
158
- width: "1em",
159
- height: "1em",
160
- fill: "currentColor",
161
- "aria-hidden": "true"
162
- }, m), {}, {
163
- ref: C
164
- }));
165
- };
166
- g.displayName = "IconReact";
167
- g.getTwoToneColors = rn;
168
- g.setTwoToneColors = en;
169
- const w = g;
170
- function j(n) {
171
- var o = $(n), e = E(o, 2), t = e[0], r = e[1];
172
- return w.setTwoToneColors({
173
- primaryColor: t,
174
- secondaryColor: r
175
- });
176
- }
177
- function tn() {
178
- var n = w.getTwoToneColors();
179
- return n.calculated ? [n.primaryColor, n.secondaryColor] : n.primaryColor;
180
- }
181
- var an = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
182
- j(V.primary);
183
- var y = /* @__PURE__ */ s.forwardRef(function(n, o) {
184
- var e, t = n.className, r = n.icon, i = n.spin, a = n.rotate, u = n.tabIndex, m = n.onClick, C = n.twoToneColor, f = _(n, an), c = s.useContext(S), b = c.prefixCls, v = b === void 0 ? "anticon" : b, B = c.rootClassName, P = q(B, v, (e = {}, N(e, "".concat(v, "-").concat(r.name), !!r.name), N(e, "".concat(v, "-spin"), !!i || r.name === "loading"), e), t), p = u;
185
- p === void 0 && m && (p = -1);
186
- var O = a ? {
187
- msTransform: "rotate(".concat(a, "deg)"),
188
- transform: "rotate(".concat(a, "deg)")
189
- } : void 0, D = $(C), h = E(D, 2), F = h[0], H = h[1];
190
- return /* @__PURE__ */ s.createElement("span", W({
191
- role: "img",
192
- "aria-label": r.name
193
- }, f, {
194
- ref: o,
195
- tabIndex: p,
196
- onClick: m,
197
- className: P
198
- }), /* @__PURE__ */ s.createElement(w, {
199
- icon: r,
200
- primaryColor: F,
201
- secondaryColor: H,
202
- style: O
203
- }));
204
- });
205
- y.displayName = "AntdIcon";
206
- y.getTwoToneColor = tn;
207
- y.setTwoToneColor = j;
208
- const fn = y, dn = function(n) {
209
- if (!n)
210
- return !1;
211
- if (n instanceof Element) {
212
- if (n.offsetParent)
213
- return !0;
214
- if (n.getBBox) {
215
- var o = n.getBBox(), e = o.width, t = o.height;
216
- if (e || t)
217
- return !0;
218
- }
219
- if (n.getBoundingClientRect) {
220
- var r = n.getBoundingClientRect(), i = r.width, a = r.height;
221
- if (i || a)
222
- return !0;
223
- }
224
- }
225
- return !1;
226
- };
227
- export {
228
- fn as A,
229
- Q as g,
230
- dn as i,
231
- un as u
232
- };
@@ -1,226 +0,0 @@
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
- import * as o from "react";
3
- import A from "react";
4
- import { r as ae } from "./index-vtDVJV8q.js";
5
- var Ce = /* @__PURE__ */ function() {
6
- function e(t, n) {
7
- X(this, e), N(this, "name", void 0), N(this, "style", void 0), N(this, "_keyframe", !0), this.name = t, this.style = n;
8
- }
9
- return Q(e, [{
10
- key: "getName",
11
- value: function() {
12
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
13
- return n ? "".concat(n, "-").concat(this.name) : this.name;
14
- }
15
- }]), e;
16
- }();
17
- const F = /* @__PURE__ */ A.createContext(void 0);
18
- process.env.NODE_ENV !== "production" && (F.displayName = "zIndexContext");
19
- const re = F, f = 100, ie = 10, oe = f * ie, B = {
20
- Modal: f,
21
- Drawer: f,
22
- Popover: f,
23
- Popconfirm: f,
24
- Tooltip: f,
25
- Tour: f
26
- }, ue = {
27
- SelectLike: 50,
28
- Dropdown: 50,
29
- DatePicker: 50,
30
- Menu: 50,
31
- ImagePreview: 1
32
- };
33
- function se(e) {
34
- return e in B;
35
- }
36
- function Ne(e, t) {
37
- const [, n] = Y(), a = A.useContext(re), i = se(e);
38
- if (t !== void 0)
39
- return [t, t];
40
- let r = a ?? 0;
41
- return i ? (r += // Use preset token zIndex by default but not stack when has parent container
42
- (a ? 0 : n.zIndexPopupBase) + // Container offset
43
- B[e], r = Math.min(r, n.zIndexPopupBase + oe)) : r += ue[e], [a === void 0 ? t : r, r];
44
- }
45
- var q = /* @__PURE__ */ o.createContext(null), P = [];
46
- function ce(e, t) {
47
- var n = o.useState(function() {
48
- if (!h())
49
- return null;
50
- var u = document.createElement("div");
51
- return process.env.NODE_ENV !== "production" && t && u.setAttribute("data-debug", t), u;
52
- }), a = l(n, 1), i = a[0], r = o.useRef(!1), s = o.useContext(q), _ = o.useState(P), c = l(_, 2), v = c[0], m = c[1], S = s || (r.current ? void 0 : function(u) {
53
- m(function(E) {
54
- var d = [u].concat(Z(E));
55
- return d;
56
- });
57
- });
58
- function g() {
59
- i.parentElement || document.body.appendChild(i), r.current = !0;
60
- }
61
- function p() {
62
- var u;
63
- (u = i.parentElement) === null || u === void 0 || u.removeChild(i), r.current = !1;
64
- }
65
- return R(function() {
66
- return e ? s ? s(g) : g() : p(), p;
67
- }, [e]), R(function() {
68
- v.length && (v.forEach(function(u) {
69
- return u();
70
- }), m(P));
71
- }, [v]), [i, S];
72
- }
73
- var b;
74
- function de(e) {
75
- if (typeof document > "u")
76
- return 0;
77
- if (e || b === void 0) {
78
- var t = document.createElement("div");
79
- t.style.width = "100%", t.style.height = "200px";
80
- var n = document.createElement("div"), a = n.style;
81
- a.position = "absolute", a.top = "0", a.left = "0", a.pointerEvents = "none", a.visibility = "hidden", a.width = "200px", a.height = "150px", a.overflow = "hidden", n.appendChild(t), document.body.appendChild(n);
82
- var i = t.offsetWidth;
83
- n.style.overflow = "scroll";
84
- var r = t.offsetWidth;
85
- i === r && (r = n.clientWidth), document.body.removeChild(n), b = i - r;
86
- }
87
- return b;
88
- }
89
- function D(e) {
90
- var t = e.match(/^(.*)px$/), n = Number(t == null ? void 0 : t[1]);
91
- return Number.isNaN(n) ? de() : n;
92
- }
93
- function fe(e) {
94
- if (typeof document > "u" || !e || !(e instanceof Element))
95
- return {
96
- width: 0,
97
- height: 0
98
- };
99
- var t = getComputedStyle(e, "::-webkit-scrollbar"), n = t.width, a = t.height;
100
- return {
101
- width: D(n),
102
- height: D(a)
103
- };
104
- }
105
- function le() {
106
- return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
107
- }
108
- var ve = "rc-util-locker-".concat(Date.now()), k = 0;
109
- function me(e) {
110
- var t = !!e, n = o.useState(function() {
111
- return k += 1, "".concat(ve, "_").concat(k);
112
- }), a = l(n, 1), i = a[0];
113
- R(function() {
114
- if (t) {
115
- var r = fe(document.body).width, s = le();
116
- G(`
117
- html body {
118
- overflow-y: hidden;
119
- `.concat(s ? "width: calc(100% - ".concat(r, "px);") : "", `
120
- }`), i);
121
- } else
122
- O(i);
123
- return function() {
124
- O(i);
125
- };
126
- }, [t, i]);
127
- }
128
- var T = !1;
129
- function pe(e) {
130
- return typeof e == "boolean" && (T = e), T;
131
- }
132
- var z = function(t) {
133
- return t === !1 ? !1 : !h() || !t ? null : typeof t == "string" ? document.querySelector(t) : typeof t == "function" ? t() : t;
134
- }, he = /* @__PURE__ */ o.forwardRef(function(e, t) {
135
- var n = e.open, a = e.autoLock, i = e.getContainer, r = e.debug, s = e.autoDestroy, _ = s === void 0 ? !0 : s, c = e.children, v = o.useState(n), m = l(v, 2), S = m[0], g = m[1], p = S || n;
136
- process.env.NODE_ENV !== "production" && J(h() || !n, "Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."), o.useEffect(function() {
137
- (_ || n) && g(n);
138
- }, [n, _]);
139
- var u = o.useState(function() {
140
- return z(i);
141
- }), E = l(u, 2), d = E[0], V = E[1];
142
- o.useEffect(function() {
143
- var C = z(i);
144
- V(C ?? null);
145
- });
146
- var j = ce(p && !d, r), I = l(j, 2), w = I[0], U = I[1], y = d ?? w;
147
- me(a && n && h() && (y === w || y === document.body));
148
- var x = null;
149
- if (c && ee(c) && t) {
150
- var W = c;
151
- x = W.ref;
152
- }
153
- var H = te(x, t);
154
- if (!p || !h() || d === void 0)
155
- return null;
156
- var K = y === !1 || pe(), $ = c;
157
- return t && ($ = /* @__PURE__ */ o.cloneElement(c, {
158
- ref: H
159
- })), /* @__PURE__ */ o.createElement(q.Provider, {
160
- value: U
161
- }, K ? $ : /* @__PURE__ */ ae.createPortal($, y));
162
- });
163
- process.env.NODE_ENV !== "production" && (he.displayName = "Portal");
164
- function _e() {
165
- var e = ne({}, o);
166
- return e.useId;
167
- }
168
- var M = 0, L = _e();
169
- const be = L ? (
170
- // Use React `useId`
171
- function(t) {
172
- var n = L();
173
- return t || (process.env.NODE_ENV === "test" ? "test-id" : n);
174
- }
175
- ) : (
176
- // Use compatible of `useId`
177
- function(t) {
178
- var n = o.useState("ssr-id"), a = l(n, 2), i = a[0], r = a[1];
179
- return o.useEffect(function() {
180
- var s = M;
181
- M += 1, r("rc_unique_".concat(s));
182
- }, []), t || (process.env.NODE_ENV === "test" ? "test-id" : i);
183
- }
184
- ), ge = (e) => ({
185
- animationDuration: e,
186
- animationFillMode: "both"
187
- }), Ee = (e) => ({
188
- animationDuration: e,
189
- animationFillMode: "both"
190
- }), Re = function(e, t, n, a) {
191
- const r = (arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1) ? "&" : "";
192
- return {
193
- [`
194
- ${r}${e}-enter,
195
- ${r}${e}-appear
196
- `]: Object.assign(Object.assign({}, ge(a)), {
197
- animationPlayState: "paused"
198
- }),
199
- [`${r}${e}-leave`]: Object.assign(Object.assign({}, Ee(a)), {
200
- animationPlayState: "paused"
201
- }),
202
- [`
203
- ${r}${e}-enter${e}-enter-active,
204
- ${r}${e}-appear${e}-appear-active
205
- `]: {
206
- animationName: t,
207
- animationPlayState: "running"
208
- },
209
- [`${r}${e}-leave${e}-leave-active`]: {
210
- animationName: n,
211
- animationPlayState: "running",
212
- pointerEvents: "none"
213
- }
214
- };
215
- };
216
- export {
217
- oe as C,
218
- Ce as K,
219
- he as P,
220
- be as a,
221
- fe as b,
222
- de as g,
223
- Re as i,
224
- Ne as u,
225
- re as z
226
- };
@@ -1,32 +0,0 @@
1
- const n = () => ({
2
- height: 0,
3
- opacity: 0
4
- }), r = (t) => {
5
- const {
6
- scrollHeight: e
7
- } = t;
8
- return {
9
- height: e,
10
- opacity: 1
11
- };
12
- }, a = (t) => ({
13
- height: t ? t.offsetHeight : 0
14
- }), o = (t, e) => (e == null ? void 0 : e.deadline) === !0 || e.propertyName === "height", s = function() {
15
- return {
16
- motionName: `${arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "ant"}-motion-collapse`,
17
- onAppearStart: n,
18
- onEnterStart: n,
19
- onAppearActive: r,
20
- onEnterActive: r,
21
- onLeaveStart: a,
22
- onLeaveActive: n,
23
- onAppearEnd: o,
24
- onEnterEnd: o,
25
- onLeaveEnd: o,
26
- motionDeadline: 500
27
- };
28
- }, l = (t, e, i) => i !== void 0 ? i : `${t}-${e}`, g = s;
29
- export {
30
- l as g,
31
- g as i
32
- };
@@ -1,10 +0,0 @@
1
- import { _ as e } from "./index-1KQbTQJ2.js";
2
- function c(t, r) {
3
- var o = e({}, t);
4
- return Array.isArray(r) && r.forEach(function(a) {
5
- delete o[a];
6
- }), o;
7
- }
8
- export {
9
- c as o
10
- };
@@ -1,42 +0,0 @@
1
- import { _ as i } from "./index-1KQbTQJ2.js";
2
- var s = `accept acceptCharset accessKey action allowFullScreen allowTransparency
3
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
4
- charSet checked classID className colSpan cols content contentEditable contextMenu
5
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
6
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
7
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
8
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
9
- mediaGroup method min minLength multiple muted name noValidate nonce open
10
- optimum pattern placeholder poster preload radioGroup readOnly rel required
11
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
12
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
13
- summary tabIndex target title type useMap value width wmode wrap`, l = `onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
14
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
15
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
16
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
17
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
18
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
19
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`, d = "".concat(s, " ").concat(l).split(/[\s\n]+/), c = "aria-", u = "data-";
20
- function r(a, o) {
21
- return a.indexOf(o) === 0;
22
- }
23
- function m(a) {
24
- var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, e;
25
- o === !1 ? e = {
26
- aria: !0,
27
- data: !0,
28
- attr: !0
29
- } : o === !0 ? e = {
30
- aria: !0
31
- } : e = i({}, o);
32
- var t = {};
33
- return Object.keys(a).forEach(function(n) {
34
- // Aria
35
- (e.aria && (n === "role" || r(n, c)) || // Data
36
- e.data && r(n, u) || // Attr
37
- e.attr && d.includes(n)) && (t[n] = a[n]);
38
- }), t;
39
- }
40
- export {
41
- m as p
42
- };