@gobolt/genesis 0.0.8 → 0.0.10
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/README.md +10 -0
- package/dist/{AntdIcon-c395a1c4.js → AntdIcon-BoLh1dP8.js} +66 -68
- package/dist/CheckOutlined-CeTKr6II.js +13 -0
- package/dist/{CloseCircleFilled-ddc51e7e.js → CloseCircleFilled-DXCxlIQL.js} +8 -11
- package/dist/{CloseOutlined-14b8bba1.js → CloseOutlined-ClXDNn82.js} +9 -12
- package/dist/{Compact-c39ed20d.js → Compact-CGY560JF.js} +63 -65
- package/dist/ContextIsolator-D5x2Ih51.js +20 -0
- package/dist/{ExclamationCircleFilled-23ef9812.js → ExclamationCircleFilled-C0Kj5KQV.js} +16 -22
- package/dist/KeyCode-DM2sFh3-.js +517 -0
- package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
- package/dist/{Overflow-a570fa69.js → Overflow-PBZD-PFm.js} +63 -64
- package/dist/{DownOutlined-64a4732a.js → PurePanel-BqPLRtc2.js} +67 -70
- package/dist/{SearchOutlined-a9014e08.js → SearchOutlined-BP3Z2K6j.js} +8 -11
- package/dist/{TextArea-20825221.js → TextArea-DKwCct3i.js} +583 -588
- package/dist/Typography-aGoDUl4R.js +710 -0
- package/dist/bundle.css +1204 -0
- package/dist/{button-fa1c119c.js → button-CDQgO1OK.js} +274 -278
- package/dist/{collapse-345bc884.js → collapse-Dtpt-6W_.js} +2 -2
- package/dist/compact-item-DH13cl8A.js +61 -0
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Badge/Badge.js +63 -62
- package/dist/components/Badge/__tests__/Badge.test.js +11 -65
- package/dist/components/Badge/index.js +2 -21
- package/dist/components/Badge/styles.js +7 -8
- package/dist/components/Breadcrumb/Breadcrumb.js +8 -24
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +21 -7
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +13 -60
- package/dist/components/Breadcrumb/index.js +2 -25
- package/dist/components/Breadcrumb/styles.d.ts +10 -6
- package/dist/components/Breadcrumb/styles.js +787 -808
- package/dist/components/Button/Button.d.ts +6 -4
- package/dist/components/Button/Button.js +20 -40
- package/dist/components/Button/__tests__/Button.test.js +9 -54
- package/dist/components/Button/index.js +2 -20
- package/dist/components/Button/styles.d.ts +9 -5
- package/dist/components/Button/styles.js +19 -30
- package/dist/components/Checkbox/Checkbox.js +8 -38
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -62
- package/dist/components/Checkbox/index.js +2 -47
- package/dist/components/Checkbox/styles.d.ts +8 -1
- package/dist/components/Checkbox/styles.js +181 -188
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -4
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +19 -51
- package/dist/components/ErrorBoundaryFallback/index.d.ts +1 -0
- package/dist/components/ErrorBoundaryFallback/index.js +2 -49
- package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -3
- package/dist/components/ErrorBoundaryFallback/styles.js +34 -37
- package/dist/components/Form/Form.d.ts +18 -5
- package/dist/components/Form/Form.js +4 -45
- package/dist/components/Form/__stories__/FormStory.js +44 -81
- package/dist/components/Form/__tests__/form.test.d.ts +1 -0
- package/dist/components/Form/__tests__/form.test.js +18 -0
- package/dist/components/Form/index.js +2 -46
- package/dist/components/Form/styles.d.ts +3 -0
- package/dist/components/Form/styles.js +5 -0
- package/dist/components/Input/Input.js +6 -29
- package/dist/components/Input/__tests__/Input.test.js +21 -66
- package/dist/components/Input/index.js +2 -29
- package/dist/components/Input/styles.d.ts +5 -2
- package/dist/components/Input/styles.js +319 -332
- package/dist/components/Message/Message.d.ts +4 -4
- package/dist/components/Message/Message.js +53 -80
- package/dist/components/Message/__tests__/Message.test.js +24 -70
- package/dist/components/Message/index.js +2 -48
- package/dist/components/Message/styles.d.ts +4 -1
- package/dist/components/Message/styles.js +24 -18
- package/dist/components/Notification/Notification.d.ts +11 -10
- package/dist/components/Notification/Notification.js +306 -372
- package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
- package/dist/components/Notification/NotificationRightChevron.js +23 -0
- package/dist/components/Notification/__tests__/Notification.test.js +8 -69
- package/dist/components/Notification/index.js +2 -59
- package/dist/components/Notification/styles.d.ts +13 -3
- package/dist/components/Notification/styles.js +36 -20
- package/dist/components/Radio/Radio.js +20 -106
- package/dist/components/Radio/RadioGroup.js +18 -71
- package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +1 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +15 -70
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Radio/index.js +2 -56
- package/dist/components/Select/DropdownChevron.d.ts +2 -0
- package/dist/components/Select/DropdownChevron.js +23 -0
- package/dist/components/Select/Select.d.ts +9 -4
- package/dist/components/Select/Select.js +29 -41
- package/dist/components/Select/__tests__/Select.test.js +10752 -93
- package/dist/components/Select/index.js +2 -28
- package/dist/components/Select/styles.d.ts +20 -6
- package/dist/components/Select/styles.js +1381 -1370
- package/dist/components/Toast/Toast.d.ts +4 -4
- package/dist/components/Toast/Toast.js +8 -37
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +1 -0
- package/dist/components/Toast/__tests__/Toast.test.js +10 -55
- package/dist/components/Toast/index.js +2 -46
- package/dist/components/Toast/styles.d.ts +6 -1
- package/dist/components/Toast/styles.js +36 -21
- package/dist/components/Typography/Typography.d.ts +7 -4
- package/dist/components/Typography/Typography.js +2 -42
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +19 -56
- package/dist/components/Typography/index.js +2 -46
- package/dist/components/Typography/styles.d.ts +18 -4
- package/dist/components/Typography/styles.js +36 -43
- package/dist/components/index.d.ts +13 -5
- package/dist/components/index.js +24 -70
- package/dist/{context-3b8a39af.js → context-BMW3aJEf.js} +538 -548
- package/dist/genesis/GenesisThemeBreakdown.js +38 -55
- package/dist/genesis/GenesisThemeDemo.js +3 -53
- package/dist/genesis/styles.d.ts +6 -2
- package/dist/genesis/styles.js +496 -521
- package/dist/{index-e2b72ca8.js → index-1CBpubM3.js} +97 -102
- package/dist/index-BZAhCB_K.js +97 -0
- package/dist/{index-501fc13d.js → index-C0SmxWLS.js} +367 -392
- package/dist/index-C8haFnXI.js +1112 -0
- package/dist/index-CfDY25LP.js +873 -0
- package/dist/index-DPW8XdWj.js +952 -0
- package/dist/{index-8c8d2d0c.js → index-bKlRxQp4.js} +114 -114
- package/dist/index-oK7z6jnz.js +22795 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +31 -77
- package/dist/{isVisible-729780f5.js → isVisible-A-IfeFoT.js} +67 -94
- package/dist/{magic-string.es-b7491176.js → magic-string.es-D2FWSwU3.js} +56 -103
- package/dist/{pickAttrs-00ba4687.js → pickAttrs-B0YTfcV1.js} +1 -1
- package/dist/providers/GenesisProvider.d.ts +0 -5
- package/dist/providers/GenesisProvider.js +9 -59
- package/dist/providers/ThemeProvider.d.ts +1 -2
- package/dist/providers/ThemeProvider.js +11 -13
- package/dist/providers/ToastProvider.d.ts +11 -4
- package/dist/providers/ToastProvider.js +10 -39
- package/dist/providers/index.d.ts +2 -3
- package/dist/providers/index.js +4 -51
- package/dist/providers/useGenesis.d.ts +7 -0
- package/dist/providers/useGenesis.js +6 -0
- package/dist/setup-BvfREoHl.js +33891 -0
- package/dist/{styled-components.browser.esm-02f500bc.js → styled-components.browser.esm-CZ1XM4o4.js} +72 -134
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +15 -45
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +15 -45
- package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
- package/dist/styles/design-tokens/variables.d.ts +10 -10
- package/dist/styles/design-tokens/variables.js +1 -1
- package/dist/styles/global-styles.d.ts +1 -0
- package/dist/styles/global-styles.js +14 -31
- package/dist/styles/theme/genesis-theme.js +257 -212
- package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
- package/dist/styles/theme/index.js +4 -5
- package/dist/styles-CT_fyXBd.js +1808 -0
- package/dist/test/setup.js +3 -46
- package/dist/useLocale-DT-z_vQ6.js +16 -0
- package/dist/useVariants-DvhXfgJY.js +30 -0
- package/dist/utils/isAllEnglishString.js +1 -2
- package/dist/{presets-83ccb923.js → warning-C63HNL9U.js} +358 -356
- package/package.json +51 -43
- package/dist/CheckOutlined-52d9ac25.js +0 -29
- package/dist/ContextIsolator-b09b2c52.js +0 -20
- package/dist/EllipsisOutlined-60122660.js +0 -1115
- package/dist/InfoCircleFilled-c5f90c20.js +0 -16
- package/dist/RightOutlined-83515eb4.js +0 -16
- package/dist/compact-item-b8f85aa6.js +0 -75
- package/dist/index-0a886e53.js +0 -100
- package/dist/index-0b9ee239.js +0 -955
- package/dist/index-1a33c134.js +0 -1389
- package/dist/index-4003d75b.js +0 -3748
- package/dist/index-89035ea5.js +0 -3242
- package/dist/providers/ToastWrapper.d.ts +0 -7
- package/dist/providers/ToastWrapper.js +0 -56
- package/dist/setup-aaca7b6f.js +0 -21158
- package/dist/styles/theme/global-styles.d.ts +0 -1
- package/dist/styles/theme/global-styles.js +0 -36
- package/dist/useVariants-a0d64298.js +0 -30
- /package/dist/{presetColors-ccf8cb4c.js → presetColors-Cl8UP3Nw.js} +0 -0
- /package/dist/{reactNode-f4391605.js → reactNode-sKPeiqPL.js} +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { w as Ze, b as et,
|
|
1
|
+
import { w as Ze, b as et, r as tt, n as nt } from "./index-oK7z6jnz.js";
|
|
2
2
|
import * as a from "react";
|
|
3
3
|
import rt, { useState as se, useMemo as Ce, useCallback as Ie } from "react";
|
|
4
|
-
import { e as P, a as _, c as oe, _ as x, f as g } from "./
|
|
5
|
-
import { K as S, i as
|
|
6
|
-
import { R as Ne } from "./index-
|
|
7
|
-
import { unstable_batchedUpdates as at } from "react-dom";
|
|
4
|
+
import { e as P, a as _, c as oe, _ as x, f as g } from "./warning-C63HNL9U.js";
|
|
5
|
+
import { K as S, i as at } from "./index-CfDY25LP.js";
|
|
6
|
+
import { R as Ne } from "./index-bKlRxQp4.js";
|
|
8
7
|
const it = new S("antSlideUpIn", {
|
|
9
8
|
"0%": {
|
|
10
9
|
transform: "scaleY(0.8)",
|
|
@@ -82,7 +81,7 @@ const it = new S("antSlideUpIn", {
|
|
|
82
81
|
transformOrigin: "100% 0%",
|
|
83
82
|
opacity: 1
|
|
84
83
|
}
|
|
85
|
-
}),
|
|
84
|
+
}), dt = new S("antSlideRightOut", {
|
|
86
85
|
"0%": {
|
|
87
86
|
transform: "scaleX(1)",
|
|
88
87
|
transformOrigin: "100% 0%",
|
|
@@ -93,7 +92,7 @@ const it = new S("antSlideUpIn", {
|
|
|
93
92
|
transformOrigin: "100% 0%",
|
|
94
93
|
opacity: 0
|
|
95
94
|
}
|
|
96
|
-
}),
|
|
95
|
+
}), mt = {
|
|
97
96
|
"slide-up": {
|
|
98
97
|
inKeyframes: it,
|
|
99
98
|
outKeyframes: st
|
|
@@ -108,16 +107,16 @@ const it = new S("antSlideUpIn", {
|
|
|
108
107
|
},
|
|
109
108
|
"slide-right": {
|
|
110
109
|
inKeyframes: ct,
|
|
111
|
-
outKeyframes:
|
|
110
|
+
outKeyframes: dt
|
|
112
111
|
}
|
|
113
|
-
},
|
|
112
|
+
}, Kt = (e, s) => {
|
|
114
113
|
const {
|
|
115
114
|
antCls: l
|
|
116
115
|
} = e, i = `${l}-${s}`, {
|
|
117
116
|
inKeyframes: f,
|
|
118
|
-
outKeyframes:
|
|
119
|
-
} =
|
|
120
|
-
return [
|
|
117
|
+
outKeyframes: r
|
|
118
|
+
} = mt[s];
|
|
119
|
+
return [at(i, f, r, e.motionDurationMid), {
|
|
121
120
|
[`
|
|
122
121
|
${i}-enter,
|
|
123
122
|
${i}-appear
|
|
@@ -137,16 +136,16 @@ const it = new S("antSlideUpIn", {
|
|
|
137
136
|
};
|
|
138
137
|
var vt = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], b = void 0;
|
|
139
138
|
function yt(e, s) {
|
|
140
|
-
var l = e.prefixCls, i = e.invalidate, f = e.item,
|
|
139
|
+
var l = e.prefixCls, i = e.invalidate, f = e.item, r = e.renderItem, u = e.responsive, p = e.responsiveDisabled, m = e.registerSize, C = e.itemKey, I = e.className, B = e.style, H = e.children, q = e.display, c = e.order, $ = e.component, U = $ === void 0 ? "div" : $, K = P(e, vt), v = u && !q;
|
|
141
140
|
function X(R) {
|
|
142
|
-
|
|
141
|
+
m(C, R);
|
|
143
142
|
}
|
|
144
143
|
a.useEffect(function() {
|
|
145
144
|
return function() {
|
|
146
145
|
X(null);
|
|
147
146
|
};
|
|
148
147
|
}, []);
|
|
149
|
-
var J =
|
|
148
|
+
var J = r && f !== b ? r(f, {
|
|
150
149
|
index: c
|
|
151
150
|
}) : H, N;
|
|
152
151
|
i || (N = {
|
|
@@ -188,7 +187,7 @@ function gt(e) {
|
|
|
188
187
|
function pt() {
|
|
189
188
|
var e = a.useRef(null), s = function(i) {
|
|
190
189
|
e.current || (e.current = [], gt(function() {
|
|
191
|
-
|
|
190
|
+
tt.unstable_batchedUpdates(function() {
|
|
192
191
|
e.current.forEach(function(f) {
|
|
193
192
|
f();
|
|
194
193
|
}), e.current = null;
|
|
@@ -198,9 +197,9 @@ function pt() {
|
|
|
198
197
|
return s;
|
|
199
198
|
}
|
|
200
199
|
function M(e, s) {
|
|
201
|
-
var l = a.useState(s), i = g(l, 2), f = i[0],
|
|
200
|
+
var l = a.useState(s), i = g(l, 2), f = i[0], r = i[1], u = et(function(p) {
|
|
202
201
|
e(function() {
|
|
203
|
-
|
|
202
|
+
r(p);
|
|
204
203
|
});
|
|
205
204
|
});
|
|
206
205
|
return [f, u];
|
|
@@ -208,18 +207,18 @@ function M(e, s) {
|
|
|
208
207
|
var G = /* @__PURE__ */ rt.createContext(null), Rt = ["component"], St = ["className"], Et = ["className"], ht = function(s, l) {
|
|
209
208
|
var i = a.useContext(G);
|
|
210
209
|
if (!i) {
|
|
211
|
-
var f = s.component,
|
|
212
|
-
return /* @__PURE__ */ a.createElement(
|
|
210
|
+
var f = s.component, r = f === void 0 ? "div" : f, u = P(s, Rt);
|
|
211
|
+
return /* @__PURE__ */ a.createElement(r, _({}, u, {
|
|
213
212
|
ref: l
|
|
214
213
|
}));
|
|
215
214
|
}
|
|
216
|
-
var p = i.className,
|
|
215
|
+
var p = i.className, m = P(i, St), C = s.className, I = P(s, Et);
|
|
217
216
|
return /* @__PURE__ */ a.createElement(G.Provider, {
|
|
218
217
|
value: null
|
|
219
218
|
}, /* @__PURE__ */ a.createElement(W, _({
|
|
220
219
|
ref: l,
|
|
221
220
|
className: oe(p, C)
|
|
222
|
-
},
|
|
221
|
+
}, m, I)));
|
|
223
222
|
}, Oe = /* @__PURE__ */ a.forwardRef(ht);
|
|
224
223
|
Oe.displayName = "RawItem";
|
|
225
224
|
var wt = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"], be = "responsive", xe = "invalidate";
|
|
@@ -227,67 +226,67 @@ function _t(e) {
|
|
|
227
226
|
return "+ ".concat(e.length, " ...");
|
|
228
227
|
}
|
|
229
228
|
function Ct(e, s) {
|
|
230
|
-
var l = e.prefixCls, i = l === void 0 ? "rc-overflow" : l, f = e.data,
|
|
229
|
+
var l = e.prefixCls, i = l === void 0 ? "rc-overflow" : l, f = e.data, r = f === void 0 ? [] : f, u = e.renderItem, p = e.renderRawItem, m = e.itemKey, C = e.itemWidth, I = C === void 0 ? 10 : C, B = e.ssr, H = e.style, q = e.className, c = e.maxCount, $ = e.renderRest, U = e.renderRawRest, K = e.suffix, v = e.component, X = v === void 0 ? "div" : v, J = e.itemComponent, N = e.onVisibleChange, A = P(e, wt), E = B === "full", R = pt(), Z = M(R, null), Y = g(Z, 2), F = Y[0], Ke = Y[1], h = F || 0, De = M(R, /* @__PURE__ */ new Map()), fe = g(De, 2), le = fe[0], ze = fe[1], Me = M(R, 0), ue = g(Me, 2), Pe = ue[0], We = ue[1], $e = M(R, 0), ce = g($e, 2), L = ce[0], Ue = ce[1], Xe = M(R, 0), de = g(Xe, 2), T = de[0], Ae = de[1], Ye = se(null), me = g(Ye, 2), ee = me[0], ve = me[1], Fe = se(null), ye = g(Fe, 2), V = ye[0], Le = ye[1], O = a.useMemo(function() {
|
|
231
230
|
return V === null && E ? Number.MAX_SAFE_INTEGER : V || 0;
|
|
232
|
-
}, [V, F]), Te = se(!1), ge = g(Te, 2), Ve = ge[0], ke = ge[1], te = "".concat(i, "-item"), pe = Math.max(Pe, L),
|
|
233
|
-
var t =
|
|
234
|
-
return y ? F === null && E ? t =
|
|
235
|
-
}, [
|
|
236
|
-
return y ?
|
|
237
|
-
}, [
|
|
231
|
+
}, [V, F]), Te = se(!1), ge = g(Te, 2), Ve = ge[0], ke = ge[1], te = "".concat(i, "-item"), pe = Math.max(Pe, L), ne = c === be, y = r.length && ne, Re = c === xe, je = y || typeof c == "number" && r.length > c, w = Ce(function() {
|
|
232
|
+
var t = r;
|
|
233
|
+
return y ? F === null && E ? t = r : t = r.slice(0, Math.min(r.length, h / I)) : typeof c == "number" && (t = r.slice(0, c)), t;
|
|
234
|
+
}, [r, I, F, c, y]), re = Ce(function() {
|
|
235
|
+
return y ? r.slice(O + 1) : r.slice(w.length);
|
|
236
|
+
}, [r, w, y, O]), k = Ie(function(t, n) {
|
|
238
237
|
var o;
|
|
239
|
-
return typeof
|
|
240
|
-
}, [
|
|
238
|
+
return typeof m == "function" ? m(t) : (o = m && (t == null ? void 0 : t[m])) !== null && o !== void 0 ? o : n;
|
|
239
|
+
}, [m]), Ge = Ie(u || function(t) {
|
|
241
240
|
return t;
|
|
242
241
|
}, [u]);
|
|
243
|
-
function j(t,
|
|
244
|
-
V === t && (
|
|
242
|
+
function j(t, n, o) {
|
|
243
|
+
V === t && (n === void 0 || n === ee) || (Le(t), o || (ke(t < r.length - 1), N == null || N(t)), n !== void 0 && ve(n));
|
|
245
244
|
}
|
|
246
|
-
function Qe(t,
|
|
247
|
-
Ke(
|
|
245
|
+
function Qe(t, n) {
|
|
246
|
+
Ke(n.clientWidth);
|
|
248
247
|
}
|
|
249
|
-
function Se(t,
|
|
248
|
+
function Se(t, n) {
|
|
250
249
|
ze(function(o) {
|
|
251
|
-
var
|
|
252
|
-
return
|
|
250
|
+
var d = new Map(o);
|
|
251
|
+
return n === null ? d.delete(t) : d.set(t, n), d;
|
|
253
252
|
});
|
|
254
253
|
}
|
|
255
|
-
function Be(t,
|
|
256
|
-
Ue(
|
|
254
|
+
function Be(t, n) {
|
|
255
|
+
Ue(n), We(L);
|
|
257
256
|
}
|
|
258
|
-
function He(t,
|
|
259
|
-
Ae(
|
|
257
|
+
function He(t, n) {
|
|
258
|
+
Ae(n);
|
|
260
259
|
}
|
|
261
260
|
function ae(t) {
|
|
262
261
|
return le.get(k(w[t], t));
|
|
263
262
|
}
|
|
264
|
-
|
|
263
|
+
nt(function() {
|
|
265
264
|
if (h && typeof pe == "number" && w) {
|
|
266
|
-
var t = T,
|
|
267
|
-
if (!
|
|
265
|
+
var t = T, n = w.length, o = n - 1;
|
|
266
|
+
if (!n) {
|
|
268
267
|
j(0, null);
|
|
269
268
|
return;
|
|
270
269
|
}
|
|
271
|
-
for (var
|
|
272
|
-
var z = ae(
|
|
270
|
+
for (var d = 0; d < n; d += 1) {
|
|
271
|
+
var z = ae(d);
|
|
273
272
|
if (E && (z = z || 0), z === void 0) {
|
|
274
|
-
j(
|
|
273
|
+
j(d - 1, void 0, !0);
|
|
275
274
|
break;
|
|
276
275
|
}
|
|
277
276
|
if (t += z, // Only one means `totalWidth` is the final width
|
|
278
277
|
o === 0 && t <= h || // Last two width will be the final width
|
|
279
|
-
|
|
278
|
+
d === o - 1 && t + ae(o) <= h) {
|
|
280
279
|
j(o, null);
|
|
281
280
|
break;
|
|
282
281
|
} else if (t + pe > h) {
|
|
283
|
-
j(
|
|
282
|
+
j(d - 1, t - z - T + L);
|
|
284
283
|
break;
|
|
285
284
|
}
|
|
286
285
|
}
|
|
287
286
|
K && ae(0) + T > h && ve(null);
|
|
288
287
|
}
|
|
289
288
|
}, [h, le, L, T, k, w]);
|
|
290
|
-
var Ee = Ve && !!
|
|
289
|
+
var Ee = Ve && !!re.length, he = {};
|
|
291
290
|
ee !== null && y && (he = {
|
|
292
291
|
position: "absolute",
|
|
293
292
|
left: ee,
|
|
@@ -298,28 +297,28 @@ function Ct(e, s) {
|
|
|
298
297
|
responsive: y,
|
|
299
298
|
component: J,
|
|
300
299
|
invalidate: Re
|
|
301
|
-
}, qe = p ? function(t,
|
|
302
|
-
var o = k(t,
|
|
300
|
+
}, qe = p ? function(t, n) {
|
|
301
|
+
var o = k(t, n);
|
|
303
302
|
return /* @__PURE__ */ a.createElement(G.Provider, {
|
|
304
303
|
key: o,
|
|
305
304
|
value: x(x({}, D), {}, {
|
|
306
|
-
order:
|
|
305
|
+
order: n,
|
|
307
306
|
item: t,
|
|
308
307
|
itemKey: o,
|
|
309
308
|
registerSize: Se,
|
|
310
|
-
display:
|
|
309
|
+
display: n <= O
|
|
311
310
|
})
|
|
312
|
-
}, p(t,
|
|
313
|
-
} : function(t,
|
|
314
|
-
var o = k(t,
|
|
311
|
+
}, p(t, n));
|
|
312
|
+
} : function(t, n) {
|
|
313
|
+
var o = k(t, n);
|
|
315
314
|
return /* @__PURE__ */ a.createElement(W, _({}, D, {
|
|
316
|
-
order:
|
|
315
|
+
order: n,
|
|
317
316
|
key: o,
|
|
318
317
|
item: t,
|
|
319
318
|
renderItem: Ge,
|
|
320
319
|
itemKey: o,
|
|
321
320
|
registerSize: Se,
|
|
322
|
-
display:
|
|
321
|
+
display: n <= O
|
|
323
322
|
}));
|
|
324
323
|
}, we = {
|
|
325
324
|
order: Ee ? O : Number.MAX_SAFE_INTEGER,
|
|
@@ -328,12 +327,12 @@ function Ct(e, s) {
|
|
|
328
327
|
display: Ee
|
|
329
328
|
}, ie = $ || _t, Je = U ? /* @__PURE__ */ a.createElement(G.Provider, {
|
|
330
329
|
value: x(x({}, D), we)
|
|
331
|
-
}, U(
|
|
330
|
+
}, U(re)) : /* @__PURE__ */ a.createElement(W, _({}, D, we), typeof ie == "function" ? ie(re) : ie), _e = /* @__PURE__ */ a.createElement(X, _({
|
|
332
331
|
className: oe(!Re && i, q),
|
|
333
332
|
style: H,
|
|
334
333
|
ref: s
|
|
335
334
|
}, A), w.map(qe), je ? Je : null, K && /* @__PURE__ */ a.createElement(W, _({}, D, {
|
|
336
|
-
responsive:
|
|
335
|
+
responsive: ne,
|
|
337
336
|
responsiveDisabled: !y,
|
|
338
337
|
order: O,
|
|
339
338
|
className: "".concat(te, "-suffix"),
|
|
@@ -341,7 +340,7 @@ function Ct(e, s) {
|
|
|
341
340
|
display: !0,
|
|
342
341
|
style: he
|
|
343
342
|
}), K));
|
|
344
|
-
return
|
|
343
|
+
return ne ? /* @__PURE__ */ a.createElement(Ne, {
|
|
345
344
|
onResize: Qe,
|
|
346
345
|
disabled: !y
|
|
347
346
|
}, _e) : _e;
|
|
@@ -356,6 +355,6 @@ export {
|
|
|
356
355
|
ot as a,
|
|
357
356
|
st as b,
|
|
358
357
|
ft as c,
|
|
359
|
-
|
|
358
|
+
Kt as i,
|
|
360
359
|
it as s
|
|
361
360
|
};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as K } from "./warning-C63HNL9U.js";
|
|
2
2
|
import * as t from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
3
|
+
import { I as x } from "./AntdIcon-BoLh1dP8.js";
|
|
4
|
+
import { a as E, C as j } from "./index-oK7z6jnz.js";
|
|
5
|
+
import { K as r, i as D } from "./index-CfDY25LP.js";
|
|
6
|
+
import { u as $ } from "./isVisible-A-IfeFoT.js";
|
|
7
|
+
var z = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" }, L = function(n, s) {
|
|
8
|
+
return /* @__PURE__ */ t.createElement(x, K({}, n, {
|
|
9
|
+
ref: s,
|
|
10
|
+
icon: z
|
|
11
|
+
}));
|
|
12
|
+
}, S = /* @__PURE__ */ t.forwardRef(L);
|
|
13
|
+
process.env.NODE_ENV !== "production" && (S.displayName = "DownOutlined");
|
|
14
|
+
const U = new r("antMoveDownIn", {
|
|
8
15
|
"0%": {
|
|
9
16
|
transform: "translate3d(0, 100%, 0)",
|
|
10
17
|
transformOrigin: "0 0",
|
|
@@ -15,7 +22,7 @@ const S = new r("antMoveDownIn", {
|
|
|
15
22
|
transformOrigin: "0 0",
|
|
16
23
|
opacity: 1
|
|
17
24
|
}
|
|
18
|
-
}),
|
|
25
|
+
}), W = new r("antMoveDownOut", {
|
|
19
26
|
"0%": {
|
|
20
27
|
transform: "translate3d(0, 0, 0)",
|
|
21
28
|
transformOrigin: "0 0",
|
|
@@ -26,7 +33,7 @@ const S = new r("antMoveDownIn", {
|
|
|
26
33
|
transformOrigin: "0 0",
|
|
27
34
|
opacity: 0
|
|
28
35
|
}
|
|
29
|
-
}),
|
|
36
|
+
}), B = new r("antMoveLeftIn", {
|
|
30
37
|
"0%": {
|
|
31
38
|
transform: "translate3d(-100%, 0, 0)",
|
|
32
39
|
transformOrigin: "0 0",
|
|
@@ -37,7 +44,7 @@ const S = new r("antMoveDownIn", {
|
|
|
37
44
|
transformOrigin: "0 0",
|
|
38
45
|
opacity: 1
|
|
39
46
|
}
|
|
40
|
-
}),
|
|
47
|
+
}), H = new r("antMoveLeftOut", {
|
|
41
48
|
"0%": {
|
|
42
49
|
transform: "translate3d(0, 0, 0)",
|
|
43
50
|
transformOrigin: "0 0",
|
|
@@ -48,7 +55,7 @@ const S = new r("antMoveDownIn", {
|
|
|
48
55
|
transformOrigin: "0 0",
|
|
49
56
|
opacity: 0
|
|
50
57
|
}
|
|
51
|
-
}),
|
|
58
|
+
}), T = new r("antMoveRightIn", {
|
|
52
59
|
"0%": {
|
|
53
60
|
transform: "translate3d(100%, 0, 0)",
|
|
54
61
|
transformOrigin: "0 0",
|
|
@@ -59,7 +66,7 @@ const S = new r("antMoveDownIn", {
|
|
|
59
66
|
transformOrigin: "0 0",
|
|
60
67
|
opacity: 1
|
|
61
68
|
}
|
|
62
|
-
}),
|
|
69
|
+
}), _ = new r("antMoveRightOut", {
|
|
63
70
|
"0%": {
|
|
64
71
|
transform: "translate3d(0, 0, 0)",
|
|
65
72
|
transformOrigin: "0 0",
|
|
@@ -70,7 +77,7 @@ const S = new r("antMoveDownIn", {
|
|
|
70
77
|
transformOrigin: "0 0",
|
|
71
78
|
opacity: 0
|
|
72
79
|
}
|
|
73
|
-
}),
|
|
80
|
+
}), F = new r("antMoveUpIn", {
|
|
74
81
|
"0%": {
|
|
75
82
|
transform: "translate3d(0, -100%, 0)",
|
|
76
83
|
transformOrigin: "0 0",
|
|
@@ -81,7 +88,7 @@ const S = new r("antMoveDownIn", {
|
|
|
81
88
|
transformOrigin: "0 0",
|
|
82
89
|
opacity: 1
|
|
83
90
|
}
|
|
84
|
-
}),
|
|
91
|
+
}), q = new r("antMoveUpOut", {
|
|
85
92
|
"0%": {
|
|
86
93
|
transform: "translate3d(0, 0, 0)",
|
|
87
94
|
transformOrigin: "0 0",
|
|
@@ -92,45 +99,45 @@ const S = new r("antMoveDownIn", {
|
|
|
92
99
|
transformOrigin: "0 0",
|
|
93
100
|
opacity: 0
|
|
94
101
|
}
|
|
95
|
-
}),
|
|
102
|
+
}), N = {
|
|
96
103
|
"move-up": {
|
|
97
|
-
inKeyframes:
|
|
98
|
-
outKeyframes:
|
|
104
|
+
inKeyframes: F,
|
|
105
|
+
outKeyframes: q
|
|
99
106
|
},
|
|
100
107
|
"move-down": {
|
|
101
|
-
inKeyframes: S,
|
|
102
|
-
outKeyframes: L
|
|
103
|
-
},
|
|
104
|
-
"move-left": {
|
|
105
108
|
inKeyframes: U,
|
|
106
109
|
outKeyframes: W
|
|
107
110
|
},
|
|
108
|
-
"move-
|
|
111
|
+
"move-left": {
|
|
109
112
|
inKeyframes: B,
|
|
110
113
|
outKeyframes: H
|
|
114
|
+
},
|
|
115
|
+
"move-right": {
|
|
116
|
+
inKeyframes: T,
|
|
117
|
+
outKeyframes: _
|
|
111
118
|
}
|
|
112
|
-
},
|
|
119
|
+
}, Q = (e, n) => {
|
|
113
120
|
const {
|
|
114
|
-
antCls:
|
|
115
|
-
} = e,
|
|
121
|
+
antCls: s
|
|
122
|
+
} = e, o = `${s}-${n}`, {
|
|
116
123
|
inKeyframes: i,
|
|
117
|
-
outKeyframes:
|
|
118
|
-
} =
|
|
119
|
-
return [
|
|
124
|
+
outKeyframes: l
|
|
125
|
+
} = N[n];
|
|
126
|
+
return [D(o, i, l, e.motionDurationMid), {
|
|
120
127
|
[`
|
|
121
|
-
${
|
|
122
|
-
${
|
|
128
|
+
${o}-enter,
|
|
129
|
+
${o}-appear
|
|
123
130
|
`]: {
|
|
124
131
|
opacity: 0,
|
|
125
132
|
animationTimingFunction: e.motionEaseOutCirc
|
|
126
133
|
},
|
|
127
|
-
[`${
|
|
134
|
+
[`${o}-leave`]: {
|
|
128
135
|
animationTimingFunction: e.motionEaseInOutCirc
|
|
129
136
|
}
|
|
130
137
|
}];
|
|
131
138
|
};
|
|
132
|
-
function
|
|
133
|
-
return (n) => /* @__PURE__ */ t.createElement(
|
|
139
|
+
function V(e) {
|
|
140
|
+
return (n) => /* @__PURE__ */ t.createElement(E, {
|
|
134
141
|
theme: {
|
|
135
142
|
token: {
|
|
136
143
|
motion: !1,
|
|
@@ -139,23 +146,23 @@ function F(e) {
|
|
|
139
146
|
}
|
|
140
147
|
}, /* @__PURE__ */ t.createElement(e, Object.assign({}, n)));
|
|
141
148
|
}
|
|
142
|
-
const
|
|
149
|
+
const Z = (e, n, s, o, i) => V((f) => {
|
|
143
150
|
const {
|
|
144
|
-
prefixCls:
|
|
145
|
-
style:
|
|
146
|
-
} = f,
|
|
151
|
+
prefixCls: y,
|
|
152
|
+
style: w
|
|
153
|
+
} = f, c = t.useRef(null), [h, I] = t.useState(0), [M, P] = t.useState(0), [u, C] = $(!1, {
|
|
147
154
|
value: f.open
|
|
148
155
|
}), {
|
|
149
|
-
getPrefixCls:
|
|
150
|
-
} = t.useContext(
|
|
156
|
+
getPrefixCls: b
|
|
157
|
+
} = t.useContext(j), p = b(o || "select", y);
|
|
151
158
|
t.useEffect(() => {
|
|
152
|
-
if (
|
|
153
|
-
const g = new ResizeObserver((
|
|
154
|
-
const
|
|
155
|
-
|
|
159
|
+
if (C(!0), typeof ResizeObserver < "u") {
|
|
160
|
+
const g = new ResizeObserver((a) => {
|
|
161
|
+
const m = a[0].target;
|
|
162
|
+
I(m.offsetHeight + 8), P(m.offsetWidth);
|
|
156
163
|
}), v = setInterval(() => {
|
|
157
|
-
var
|
|
158
|
-
const
|
|
164
|
+
var a;
|
|
165
|
+
const m = i ? `.${i(p)}` : `.${p}-dropdown`, O = (a = c.current) === null || a === void 0 ? void 0 : a.querySelector(m);
|
|
159
166
|
O && (clearInterval(v), g.observe(O));
|
|
160
167
|
}, 10);
|
|
161
168
|
return () => {
|
|
@@ -163,15 +170,15 @@ const q = (e, n, o, a, i) => F((f) => {
|
|
|
163
170
|
};
|
|
164
171
|
}
|
|
165
172
|
}, []);
|
|
166
|
-
let
|
|
167
|
-
style: Object.assign(Object.assign({},
|
|
173
|
+
let d = Object.assign(Object.assign({}, f), {
|
|
174
|
+
style: Object.assign(Object.assign({}, w), {
|
|
168
175
|
margin: 0
|
|
169
176
|
}),
|
|
170
|
-
open:
|
|
171
|
-
visible:
|
|
172
|
-
getPopupContainer: () =>
|
|
177
|
+
open: u,
|
|
178
|
+
visible: u,
|
|
179
|
+
getPopupContainer: () => c.current
|
|
173
180
|
});
|
|
174
|
-
|
|
181
|
+
n && Object.assign(d, {
|
|
175
182
|
[n]: {
|
|
176
183
|
overflow: {
|
|
177
184
|
adjustX: !1,
|
|
@@ -179,28 +186,18 @@ const q = (e, n, o, a, i) => F((f) => {
|
|
|
179
186
|
}
|
|
180
187
|
}
|
|
181
188
|
});
|
|
182
|
-
const
|
|
183
|
-
paddingBottom:
|
|
189
|
+
const R = {
|
|
190
|
+
paddingBottom: h,
|
|
184
191
|
position: "relative",
|
|
185
|
-
minWidth:
|
|
192
|
+
minWidth: M
|
|
186
193
|
};
|
|
187
194
|
return /* @__PURE__ */ t.createElement("div", {
|
|
188
|
-
ref:
|
|
189
|
-
style:
|
|
190
|
-
}, /* @__PURE__ */ t.createElement(e, Object.assign({},
|
|
191
|
-
})
|
|
192
|
-
var N = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" };
|
|
193
|
-
const V = N;
|
|
194
|
-
var X = function(n, o) {
|
|
195
|
-
return /* @__PURE__ */ t.createElement(z, E({}, n, {
|
|
196
|
-
ref: o,
|
|
197
|
-
icon: V
|
|
198
|
-
}));
|
|
199
|
-
}, y = /* @__PURE__ */ t.forwardRef(X);
|
|
200
|
-
process.env.NODE_ENV !== "production" && (y.displayName = "DownOutlined");
|
|
201
|
-
const et = y;
|
|
195
|
+
ref: c,
|
|
196
|
+
style: R
|
|
197
|
+
}, /* @__PURE__ */ t.createElement(e, Object.assign({}, d)));
|
|
198
|
+
});
|
|
202
199
|
export {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
200
|
+
S as R,
|
|
201
|
+
Z as g,
|
|
202
|
+
Q as i
|
|
206
203
|
};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as t } from "./warning-C63HNL9U.js";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import {
|
|
4
|
-
var o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" }
|
|
5
|
-
|
|
6
|
-
var i = function(t, r) {
|
|
7
|
-
return /* @__PURE__ */ e.createElement(n, c({}, t, {
|
|
3
|
+
import { I as c } from "./AntdIcon-BoLh1dP8.js";
|
|
4
|
+
var o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" }, s = function(a, r) {
|
|
5
|
+
return /* @__PURE__ */ e.createElement(c, t({}, a, {
|
|
8
6
|
ref: r,
|
|
9
|
-
icon:
|
|
7
|
+
icon: o
|
|
10
8
|
}));
|
|
11
|
-
},
|
|
12
|
-
process.env.NODE_ENV !== "production" && (
|
|
13
|
-
const u = a;
|
|
9
|
+
}, n = /* @__PURE__ */ e.forwardRef(s);
|
|
10
|
+
process.env.NODE_ENV !== "production" && (n.displayName = "SearchOutlined");
|
|
14
11
|
export {
|
|
15
|
-
|
|
12
|
+
n as R
|
|
16
13
|
};
|