@gobolt/genesis 0.0.11 → 0.1.0
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 +6 -0
- package/dist/ClockCircleOutlined-BaXQuLIn.js +13 -0
- package/dist/{Compact-DBh6nSYB.js → Compact-Du9689ax.js} +8 -8
- package/dist/{ContextIsolator-CwuJooYf.js → ContextIsolator-BmfhJgG0.js} +2 -2
- package/dist/{DownOutlined-5-15jS0h.js → DownOutlined-Dcq69ZKM.js} +9 -9
- package/dist/{EllipsisOutlined-CJ2pgE2d.js → EllipsisOutlined-DGMph0Bj.js} +110 -110
- package/dist/{Keyframes-sPZXYuXt.js → Keyframes-C9_aCDvn.js} +1 -1
- package/dist/{Overflow-DdNKJLQh.js → Overflow-DWf4XIal.js} +31 -31
- package/dist/{Skeleton-B3vg9CbL.js → Skeleton-BVN4pcVe.js} +2 -2
- package/dist/TextArea-Bkf9hh7l.js +708 -0
- package/dist/{Typography-DqI7RslA.js → Typography-CoZ5qD-t.js} +3 -3
- package/dist/{button-B2Rgggx2.js → button-BwqpCxVM.js} +5 -5
- package/dist/components/Avatar/Avatar.js +3 -3
- package/dist/components/Avatar/__tests__/Avatar.test.js +1 -1
- package/dist/components/Avatar/styles.js +42 -42
- package/dist/components/Badge/Badge.js +3 -3
- package/dist/components/Badge/__tests__/Badge.test.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
- package/dist/components/Breadcrumb/styles.js +4 -4
- package/dist/components/Button/__tests__/Button.test.js +1 -1
- package/dist/components/Button/styles.js +1 -1
- package/dist/components/Card/__tests__/Card.test.js +1 -1
- package/dist/components/Card/styles.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +3 -3
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
- package/dist/components/Checkbox/styles.js +1 -1
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +8 -8
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +4 -4
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +6 -0
- package/dist/components/DatePicker/DatePicker.js +5 -0
- package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +10 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.js +19 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +4 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +5 -0
- package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +9 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +23 -0
- package/dist/components/DateRangePicker/index.d.ts +2 -0
- package/dist/components/DateRangePicker/index.js +4 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.js +3 -3
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +1 -1
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +3 -3
- package/dist/components/ErrorBoundaryFallback/styles.js +1 -1
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/__stories__/FormStory.js +4 -4
- package/dist/components/Form/__tests__/form.test.js +2 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/__tests__/Input.test.js +1 -1
- package/dist/components/Input/styles.js +1 -1
- package/dist/components/Layout/Content/ResponsiveContent.js +3 -3
- package/dist/components/Layout/MainLayout/MainLayout.js +1 -1
- package/dist/components/Layout/__tests__/Layout.test.js +1 -1
- package/dist/components/Message/Message.js +3 -3
- package/dist/components/Message/__tests__/Message.test.js +1 -1
- package/dist/components/Notification/Notification.js +3 -3
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +1 -1
- package/dist/components/Notification/__tests__/Notification.test.js +1 -1
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/Popover/__tests__/Popover.test.js +1 -1
- package/dist/components/Popover/styles.js +1 -1
- package/dist/components/Progress/Progress.js +3 -3
- package/dist/components/Progress/Progress.util.js +3 -3
- package/dist/components/Progress/ProgressText.js +3 -3
- package/dist/components/Progress/__tests__/Progress.test.js +1 -1
- package/dist/components/Progress/styles.js +3 -3
- package/dist/components/Radio/Radio.js +3 -3
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
- package/dist/components/Row/Row.js +1 -1
- package/dist/components/Row/RowActions/RowActions.js +3 -3
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +3 -3
- package/dist/components/Row/RowLabelValue/styles.js +1 -1
- package/dist/components/Row/__tests__/Row.test.js +1 -1
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +1 -1
- package/dist/components/SegmentedControls/styles.js +27 -27
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/__tests__/Select.test.js +1 -1
- package/dist/components/Select/styles.js +1 -1
- package/dist/components/Shapes/__tests__/Shapes.test.js +1 -1
- package/dist/components/Switch/__tests__/Switch.test.js +1 -1
- package/dist/components/Switch/styles.js +15 -15
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/__mocks__/table-mocks.js +3 -3
- package/dist/components/Table/__tests__/Table.test.js +1 -1
- package/dist/components/Table/styles.js +1 -1
- package/dist/components/Tabs/__tests__/Tabs.test.js +1 -1
- package/dist/components/Tabs/styles.js +1 -1
- package/dist/components/Tile/__tests__/Tile.test.js +1 -1
- package/dist/components/Toast/Toast.js +3 -3
- package/dist/components/Toast/__tests__/Toast.test.js +2 -2
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +1 -1
- package/dist/components/Tooltip/styles.js +1 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/__tests__/Typography.test.js +2 -2
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.js +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +46 -42
- package/dist/{context-Cx7GtZpz.js → context-DIFtNa4d.js} +70 -70
- package/dist/{dropdown-zGGFIyJ_.js → dropdown-Dp_PTQ2u.js} +60 -59
- package/dist/genesis/GenesisThemeBreakdown.js +86 -44
- package/dist/genesis/labs/Lab.stories.d.ts +6 -0
- package/dist/genesis/styles.js +2 -2
- package/dist/{index-CdiHBmVe.js → index-BPVue1Yd.js} +44 -44
- package/dist/{index-CRotrkWm.js → index-BQM5OniU.js} +7 -7
- package/dist/{index-BTGF--50.js → index-B_1Ge8na.js} +20 -19
- package/dist/{index-ByspLxrB.js → index-BbTV2Cw5.js} +32 -31
- package/dist/index-BeGv28kJ.js +5173 -0
- package/dist/{index-Dyl-ddV6.js → index-BpZSuIUV.js} +16 -16
- package/dist/{index-CodMmNWv.js → index-BvOLXELm.js} +3 -3
- package/dist/{index-hoPiccJv.js → index-CLSrpQRW.js} +9 -8
- package/dist/{index-D0P16DlX.js → index-CbVOl2U6.js} +26 -24
- package/dist/{index-DWUXwgXK.js → index-D0U6r5O7.js} +265 -294
- package/dist/{index-BW_7pvTr.js → index-DEu2PVzQ.js} +4 -4
- package/dist/{index-DmZOkMjs.js → index-DNQ-jnBx.js} +1207 -1514
- package/dist/index-DOsPeIWJ.js +1000 -0
- package/dist/{index-CSPlXIlA.js → index-DRGX1Wem.js} +7 -7
- package/dist/index-DWjq9XYj.js +899 -0
- package/dist/index.js +53 -49
- package/dist/motion-CUN72xsH.js +33 -0
- package/dist/providers/GenesisProvider.js +1 -1
- package/dist/providers/ToastProvider.js +3 -3
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.js +1 -1
- package/dist/{responsiveObserver-O1kw80RG.js → responsiveObserver-dCkpy7Cb.js} +1 -1
- package/dist/roundedArrow-DI_Q-xdU.js +65 -0
- package/dist/{setup-CKu7-AfI.js → setup-CUbCc8fQ.js} +2 -2
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +7 -7
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +3 -3
- package/dist/styles/theme/genesis-theme.js +211 -349
- package/dist/styles/theme/theme-tree/ThemeTree.js +114 -113
- package/dist/{styles-BSD221S5.js → styles-CWdUpZom.js} +12 -12
- package/dist/{styles-BDbHpHsc.js → styles-D1vKDy9V.js} +9 -9
- package/dist/{styles-D9iYILpv.js → styles-qerRs7Rn.js} +493 -492
- package/dist/test/setup.js +2 -2
- package/dist/{toArray-DGvPoJP_.js → toArray-U3Az44CO.js} +1 -1
- package/dist/{useBreakpoint-CAMzKscx.js → useBreakpoint-TkMv121M.js} +2 -2
- package/dist/{useCSSVarCls-C-MlZC6a.js → useCSSVarCls-Dau77fzS.js} +1 -1
- package/dist/useIcons-Ck4JP1m9.js +321 -0
- package/dist/{useLocale-DWRfeMSS.js → useLocale-CTfNpakL.js} +1 -1
- package/dist/{useMergedState-BoELfaU9.js → useMergedState-D6toxSxh.js} +1 -1
- package/dist/{useSize-CPo2bUE3.js → useSize-DSq4r6zy.js} +1 -1
- package/dist/{useVariants-Cin23jEC.js → useVariants-DrLzUVLU.js} +2 -2
- package/dist/{useZIndex-D81lkWy4.js → useZIndex-DhyHuZTN.js} +1 -1
- package/dist/utils/icon-util.js +38 -44
- package/package.json +2 -1
- package/dist/TextArea-CKWbFr0u.js +0 -1698
- package/dist/index-CqqwGTME.js +0 -956
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import L, { useContext as X, useRef as Z } from "react";
|
|
3
|
-
import { _ as ee, f as te, e as
|
|
3
|
+
import { _ as ee, f as te, e as I } from "./presets-Djh_L_6R.js";
|
|
4
4
|
import { i as ne } from "./isVisible-D3-B85BJ.js";
|
|
5
|
-
import { R as
|
|
5
|
+
import { R as $, H as oe, I as re, d as se, F as E, s as ae, t as k, C as A, c as ie, a as ue, z as ce, A as le } from "./index-BbTV2Cw5.js";
|
|
6
6
|
import { c as de } from "./reactNode-sKPeiqPL.js";
|
|
7
7
|
import "./index-DLdU7Tpd.js";
|
|
8
8
|
import { _ as U, a as g } from "./asyncToGenerator-CKP9bEZn.js";
|
|
9
|
-
var _ = ee({},
|
|
9
|
+
var _ = ee({}, $), fe = _.version, S = _.render, pe = _.unmountComponentAtNode, C;
|
|
10
10
|
try {
|
|
11
11
|
var me = Number((fe || "").split(".")[0]);
|
|
12
12
|
me >= 18 && (C = _.createRoot);
|
|
@@ -78,7 +78,7 @@ function O() {
|
|
|
78
78
|
}
|
|
79
79
|
const ge = (e, t) => {
|
|
80
80
|
if (process.env.NODE_ENV !== "production") {
|
|
81
|
-
const n = parseInt(r.version.split(".")[0], 10), o = Object.keys(
|
|
81
|
+
const n = parseInt(r.version.split(".")[0], 10), o = Object.keys($);
|
|
82
82
|
process.env.NODE_ENV !== "production" && oe(n < 19 || o.includes("createRoot"), "compatible", "antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.");
|
|
83
83
|
}
|
|
84
84
|
return Re(e, t), () => Ee(t);
|
|
@@ -140,11 +140,11 @@ const We = (e) => {
|
|
|
140
140
|
r.useEffect(() => {
|
|
141
141
|
c.current = s();
|
|
142
142
|
}, []);
|
|
143
|
-
const [d, h] = r.useState(null), [f, a] = r.useState([]), [m, v] = r.useState(0), [
|
|
143
|
+
const [d, h] = r.useState(null), [f, a] = r.useState([]), [m, v] = r.useState(0), [V, B] = r.useState(0), [F, P] = r.useState(0), [z, q] = r.useState(0), [H, M] = r.useState(!1), T = {
|
|
144
144
|
left: m,
|
|
145
|
-
top:
|
|
145
|
+
top: V,
|
|
146
146
|
width: F,
|
|
147
|
-
height:
|
|
147
|
+
height: z,
|
|
148
148
|
borderRadius: f.map((l) => `${l}px`).join(" ")
|
|
149
149
|
};
|
|
150
150
|
d && (T["--wave-color"] = d);
|
|
@@ -155,14 +155,14 @@ const We = (e) => {
|
|
|
155
155
|
borderLeftWidth: p,
|
|
156
156
|
borderTopWidth: b
|
|
157
157
|
} = l;
|
|
158
|
-
v(i ? n.offsetLeft : N(-parseFloat(p))),
|
|
158
|
+
v(i ? n.offsetLeft : N(-parseFloat(p))), B(i ? n.offsetTop : N(-parseFloat(b))), P(n.offsetWidth), q(n.offsetHeight);
|
|
159
159
|
const {
|
|
160
160
|
borderTopLeftRadius: R,
|
|
161
|
-
borderTopRightRadius:
|
|
161
|
+
borderTopRightRadius: G,
|
|
162
162
|
borderBottomLeftRadius: Y,
|
|
163
163
|
borderBottomRightRadius: J
|
|
164
164
|
} = l;
|
|
165
|
-
a([R,
|
|
165
|
+
a([R, G, J, Y].map((Q) => N(parseFloat(Q))));
|
|
166
166
|
}
|
|
167
167
|
if (r.useEffect(() => {
|
|
168
168
|
if (n) {
|
|
@@ -176,7 +176,7 @@ const We = (e) => {
|
|
|
176
176
|
}
|
|
177
177
|
}, []), !H)
|
|
178
178
|
return null;
|
|
179
|
-
const
|
|
179
|
+
const K = (o === "Checkbox" || o === "Radio") && (n == null ? void 0 : n.classList.contains(j));
|
|
180
180
|
return /* @__PURE__ */ r.createElement(ae, {
|
|
181
181
|
visible: !0,
|
|
182
182
|
motionAppear: !0,
|
|
@@ -197,9 +197,9 @@ const We = (e) => {
|
|
|
197
197
|
className: p
|
|
198
198
|
} = l;
|
|
199
199
|
return /* @__PURE__ */ r.createElement("div", {
|
|
200
|
-
ref:
|
|
201
|
-
className:
|
|
202
|
-
"wave-quick":
|
|
200
|
+
ref: k(u, i),
|
|
201
|
+
className: I(t, p, {
|
|
202
|
+
"wave-quick": K
|
|
203
203
|
}),
|
|
204
204
|
style: T
|
|
205
205
|
});
|
|
@@ -252,7 +252,7 @@ const We = (e) => {
|
|
|
252
252
|
component: o
|
|
253
253
|
} = e, {
|
|
254
254
|
getPrefixCls: s
|
|
255
|
-
} = X(A), u = Z(null), c = s("wave"), [, d] = we(c), h = Te(u,
|
|
255
|
+
} = X(A), u = Z(null), c = s("wave"), [, d] = we(c), h = Te(u, I(c, d), o);
|
|
256
256
|
if (L.useEffect(() => {
|
|
257
257
|
const a = u.current;
|
|
258
258
|
if (!a || a.nodeType !== 1 || n)
|
|
@@ -266,7 +266,7 @@ const We = (e) => {
|
|
|
266
266
|
};
|
|
267
267
|
}, [n]), !/* @__PURE__ */ L.isValidElement(t))
|
|
268
268
|
return t ?? null;
|
|
269
|
-
const f = ce(t) ?
|
|
269
|
+
const f = ce(t) ? k(le(t), u) : u;
|
|
270
270
|
return de(t, {
|
|
271
271
|
ref: f
|
|
272
272
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as S,
|
|
1
|
+
import { C as S, o as I } from "./index-BbTV2Cw5.js";
|
|
2
2
|
import * as r from "react";
|
|
3
3
|
import { e as O } from "./presets-Djh_L_6R.js";
|
|
4
4
|
import { o as A } from "./omit-B_u6A-HL.js";
|
|
5
|
-
import { S as b, u as j, L as F, a as z } from "./dropdown-
|
|
6
|
-
import { t as B } from "./toArray-
|
|
5
|
+
import { S as b, u as j, L as F, a as z } from "./dropdown-Dp_PTQ2u.js";
|
|
6
|
+
import { t as B } from "./toArray-U3Az44CO.js";
|
|
7
7
|
function T(t, o, a) {
|
|
8
8
|
return typeof a == "boolean" ? a : t.length ? !0 : B(o).some((s) => s.type === b);
|
|
9
9
|
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
2
|
import { useContext as Z, useMemo as fe, useState as de, useRef as pe } from "react";
|
|
3
3
|
import { e as G, d as te } from "./presets-Djh_L_6R.js";
|
|
4
|
-
import { C as H,
|
|
5
|
-
import { F as q } from "./context-
|
|
6
|
-
import { u as be, i as Oe, a as he
|
|
4
|
+
import { C as H, g as oe, j as me, m as ge, F as Ce, a as ee, o as ye, D as ve, t as se } from "./index-BbTV2Cw5.js";
|
|
5
|
+
import { F as q } from "./context-DIFtNa4d.js";
|
|
6
|
+
import { u as be, i as Oe, a as he } from "./index-DOsPeIWJ.js";
|
|
7
|
+
import { I as Q, u as xe, T as Ee } from "./TextArea-Bkf9hh7l.js";
|
|
7
8
|
import { p as Ie } from "./pickAttrs-CleuMJFR.js";
|
|
8
|
-
import { g as Pe } from "./useVariants-
|
|
9
|
-
import { u as Se } from "./useCSSVarCls-
|
|
10
|
-
import { u as re } from "./useSize-
|
|
9
|
+
import { g as Pe } from "./useVariants-DrLzUVLU.js";
|
|
10
|
+
import { u as Se } from "./useCSSVarCls-Dau77fzS.js";
|
|
11
|
+
import { u as re } from "./useSize-DSq4r6zy.js";
|
|
11
12
|
import "./index-DLdU7Tpd.js";
|
|
12
13
|
import { I as ae } from "./AntdIcon-nCNB0J1E.js";
|
|
13
14
|
import { o as we } from "./omit-B_u6A-HL.js";
|
|
14
15
|
import { R as _e } from "./SearchOutlined-DNj-7b_h.js";
|
|
15
16
|
import { c as ne } from "./reactNode-sKPeiqPL.js";
|
|
16
|
-
import { B as ze } from "./button-
|
|
17
|
-
import { u as Ne } from "./Compact-
|
|
17
|
+
import { B as ze } from "./button-BwqpCxVM.js";
|
|
18
|
+
import { u as Ne } from "./Compact-Du9689ax.js";
|
|
18
19
|
const je = (e) => {
|
|
19
20
|
const {
|
|
20
21
|
getPrefixCls: s,
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as l from "react";
|
|
2
2
|
import { e as O } from "./presets-Djh_L_6R.js";
|
|
3
|
-
import { u as X } from "./useMergedState-
|
|
3
|
+
import { u as X } from "./useMergedState-D6toxSxh.js";
|
|
4
4
|
import { K as Y } from "./KeyCode-DM2sFh3-.js";
|
|
5
|
-
import { g as Z } from "./
|
|
5
|
+
import { g as Z } from "./motion-CUN72xsH.js";
|
|
6
6
|
import { c as q } from "./reactNode-sKPeiqPL.js";
|
|
7
|
-
import {
|
|
8
|
-
import { i as ne, g as te, a as oe,
|
|
7
|
+
import { j as J, m as Q, k as ee, C as k } from "./index-BbTV2Cw5.js";
|
|
8
|
+
import { i as ne, g as te, a as oe, P as re, T as ae } from "./index-DWjq9XYj.js";
|
|
9
|
+
import "./index-D0U6r5O7.js";
|
|
10
|
+
import { g as ie } from "./roundedArrow-DI_Q-xdU.js";
|
|
9
11
|
import "./index-DLdU7Tpd.js";
|
|
10
|
-
import { P as
|
|
12
|
+
import { P as le } from "./presetColors-Cl8UP3Nw.js";
|
|
11
13
|
const P = (e) => e ? typeof e == "function" ? e() : e : null, se = (e) => {
|
|
12
14
|
const {
|
|
13
15
|
componentCls: t,
|
|
@@ -98,7 +100,7 @@ const P = (e) => e ? typeof e == "function" ? e() : e : null, se = (e) => {
|
|
|
98
100
|
componentCls: t
|
|
99
101
|
} = e;
|
|
100
102
|
return {
|
|
101
|
-
[t]:
|
|
103
|
+
[t]: le.map((o) => {
|
|
102
104
|
const n = e[`${o}6`];
|
|
103
105
|
return {
|
|
104
106
|
[`&${t}-${o}`]: {
|
|
@@ -130,7 +132,7 @@ const P = (e) => e ? typeof e == "function" ? e() : e : null, se = (e) => {
|
|
|
130
132
|
return Object.assign(Object.assign(Object.assign({
|
|
131
133
|
titleMinWidth: 177,
|
|
132
134
|
zIndexPopup: s + 30
|
|
133
|
-
},
|
|
135
|
+
}, ie(e)), oe({
|
|
134
136
|
contentRadius: d,
|
|
135
137
|
limitVerticalRadius: !0
|
|
136
138
|
})), {
|
|
@@ -167,9 +169,9 @@ const I = (e) => {
|
|
|
167
169
|
content: o,
|
|
168
170
|
prefixCls: n
|
|
169
171
|
} = e;
|
|
170
|
-
return !t && !o ? null : /* @__PURE__ */
|
|
172
|
+
return !t && !o ? null : /* @__PURE__ */ l.createElement(l.Fragment, null, t && /* @__PURE__ */ l.createElement("div", {
|
|
171
173
|
className: `${n}-title`
|
|
172
|
-
}, t), o && /* @__PURE__ */
|
|
174
|
+
}, t), o && /* @__PURE__ */ l.createElement("div", {
|
|
173
175
|
className: `${n}-inner-content`
|
|
174
176
|
}, o));
|
|
175
177
|
}, pe = (e) => {
|
|
@@ -183,15 +185,15 @@ const I = (e) => {
|
|
|
183
185
|
content: d,
|
|
184
186
|
children: u
|
|
185
187
|
} = e, f = P(s), m = P(d), g = O(t, o, `${o}-pure`, `${o}-placement-${a}`, n);
|
|
186
|
-
return /* @__PURE__ */
|
|
188
|
+
return /* @__PURE__ */ l.createElement("div", {
|
|
187
189
|
className: g,
|
|
188
190
|
style: r
|
|
189
|
-
}, /* @__PURE__ */
|
|
191
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
190
192
|
className: `${o}-arrow`
|
|
191
|
-
}), /* @__PURE__ */
|
|
193
|
+
}), /* @__PURE__ */ l.createElement(re, Object.assign({}, e, {
|
|
192
194
|
className: t,
|
|
193
195
|
prefixCls: o
|
|
194
|
-
}), u || /* @__PURE__ */
|
|
196
|
+
}), u || /* @__PURE__ */ l.createElement(I, {
|
|
195
197
|
prefixCls: o,
|
|
196
198
|
title: f,
|
|
197
199
|
content: m
|
|
@@ -202,8 +204,8 @@ const I = (e) => {
|
|
|
202
204
|
className: o
|
|
203
205
|
} = e, n = ue(e, ["prefixCls", "className"]), {
|
|
204
206
|
getPrefixCls: r
|
|
205
|
-
} =
|
|
206
|
-
return s(/* @__PURE__ */
|
|
207
|
+
} = l.useContext(k), a = r("popover", t), [s, d, u] = T(a);
|
|
208
|
+
return s(/* @__PURE__ */ l.createElement(pe, Object.assign({}, n, {
|
|
207
209
|
prefixCls: a,
|
|
208
210
|
hashId: d,
|
|
209
211
|
className: O(o, u)
|
|
@@ -216,7 +218,7 @@ var me = function(e, t) {
|
|
|
216
218
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
217
219
|
return o;
|
|
218
220
|
};
|
|
219
|
-
const ge = /* @__PURE__ */
|
|
221
|
+
const ge = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
220
222
|
var o, n, r, a, s, d;
|
|
221
223
|
const {
|
|
222
224
|
prefixCls: u,
|
|
@@ -233,9 +235,9 @@ const ge = /* @__PURE__ */ i.forwardRef((e, t) => {
|
|
|
233
235
|
styles: v,
|
|
234
236
|
classNames: C
|
|
235
237
|
} = e, $ = me(e, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]), {
|
|
236
|
-
popover:
|
|
238
|
+
popover: i,
|
|
237
239
|
getPrefixCls: j
|
|
238
|
-
} =
|
|
240
|
+
} = l.useContext(k), N = j("popover", u), [M, R, V] = T(N), A = j(), H = O(g, R, V, (o = i == null ? void 0 : i.classNames) === null || o === void 0 ? void 0 : o.root, C == null ? void 0 : C.root), L = O((n = i == null ? void 0 : i.classNames) === null || n === void 0 ? void 0 : n.body, C == null ? void 0 : C.body), [K, F] = X(!1, {
|
|
239
241
|
value: (r = e.open) !== null && r !== void 0 ? r : e.visible,
|
|
240
242
|
defaultValue: (a = e.defaultOpen) !== null && a !== void 0 ? a : e.defaultVisible
|
|
241
243
|
}), E = (c, h) => {
|
|
@@ -245,7 +247,7 @@ const ge = /* @__PURE__ */ i.forwardRef((e, t) => {
|
|
|
245
247
|
}, U = (c) => {
|
|
246
248
|
E(c);
|
|
247
249
|
}, _ = P(f), B = P(m);
|
|
248
|
-
return M(/* @__PURE__ */
|
|
250
|
+
return M(/* @__PURE__ */ l.createElement(ae, Object.assign({
|
|
249
251
|
placement: y,
|
|
250
252
|
trigger: x,
|
|
251
253
|
mouseEnterDelay: b,
|
|
@@ -257,13 +259,13 @@ const ge = /* @__PURE__ */ i.forwardRef((e, t) => {
|
|
|
257
259
|
body: L
|
|
258
260
|
},
|
|
259
261
|
styles: {
|
|
260
|
-
root: Object.assign(Object.assign(Object.assign(Object.assign({}, (s =
|
|
261
|
-
body: Object.assign(Object.assign({}, (d =
|
|
262
|
+
root: Object.assign(Object.assign(Object.assign(Object.assign({}, (s = i == null ? void 0 : i.styles) === null || s === void 0 ? void 0 : s.root), i == null ? void 0 : i.style), z), v == null ? void 0 : v.root),
|
|
263
|
+
body: Object.assign(Object.assign({}, (d = i == null ? void 0 : i.styles) === null || d === void 0 ? void 0 : d.body), v == null ? void 0 : v.body)
|
|
262
264
|
},
|
|
263
265
|
ref: t,
|
|
264
266
|
open: K,
|
|
265
267
|
onOpenChange: U,
|
|
266
|
-
overlay: _ || B ? /* @__PURE__ */
|
|
268
|
+
overlay: _ || B ? /* @__PURE__ */ l.createElement(I, {
|
|
267
269
|
prefixCls: N,
|
|
268
270
|
title: _,
|
|
269
271
|
content: B
|
|
@@ -273,7 +275,7 @@ const ge = /* @__PURE__ */ i.forwardRef((e, t) => {
|
|
|
273
275
|
}), q(p, {
|
|
274
276
|
onKeyDown: (c) => {
|
|
275
277
|
var h, S;
|
|
276
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ l.isValidElement(p) && ((S = p == null ? void 0 : (h = p.props).onKeyDown) === null || S === void 0 || S.call(h, c)), G(c);
|
|
277
279
|
}
|
|
278
280
|
})));
|
|
279
281
|
}), W = ge;
|