@baishuyun/ui-base 6.32.1 → 6.33.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/dist/AiRuntimeContainer/index.js +96 -113
- package/dist/Amap/index.js +1 -1
- package/dist/Calendar/{Calendar-CVRev8gA.js → Calendar-BNC0RpwL.js} +15 -15
- package/dist/Calendar/index.js +8 -8
- package/dist/Card/Card-Cdb5cVMG.js +83 -0
- package/dist/Card/index.js +2 -2
- package/dist/CheckBox/{CheckBox-DOdRLFKI.js → CheckBox-BXKoPSBh.js} +1 -1
- package/dist/CheckBox/{CheckBox-CtOSHKM0.js → CheckBox-DihUnPT-.js} +1 -1
- package/dist/CheckBox/index.js +3 -3
- package/dist/ColorPicker/{ColorPicker-CpvEY9_p.js → ColorPicker-BsGcotxi.js} +5 -5
- package/dist/ColorPicker/index.js +5 -5
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/DatePicker/{DatePicker-BrdDBHRB.js → DatePicker-DbcRkKy7.js} +15 -15
- package/dist/DatePicker/{DatePickerPanel-BHEUpHma.js → DatePickerPanel-DJdjyTxg.js} +2 -2
- package/dist/DatePicker/index.js +5 -5
- package/dist/DropDown/{DropDown-B3VFy5GF.js → DropDown-Bb4dkd_c.js} +17 -17
- package/dist/DropDown/index.js +6 -6
- package/dist/Editor/index.js +140 -140
- package/dist/FieldCard/{FieldCard-CCv4nLpH.js → FieldCard-BW1JOjtx.js} +2 -2
- package/dist/FieldCard/index.js +7 -7
- package/dist/Gantt/index.js +50 -50
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/{InputTag-C1WA6sDA.js → InputTag-3sZTy2HT.js} +2 -2
- package/dist/InputTag/index.js +4 -4
- package/dist/Kanban/index.js +35 -35
- package/dist/Loading/{Loading-Dm4i0lYd.js → Loading-CLUJfdln.js} +1 -1
- package/dist/Loading/index.js +3 -3
- package/dist/Modal/index.js +2 -2
- package/dist/NotFoundContent/index.js +1 -1
- package/dist/Overlay/index.js +1 -1
- package/dist/Radio/{Radio-C0OAW-K-.js → Radio-GeMs-7qt.js} +1 -1
- package/dist/Radio/index.js +2 -2
- package/dist/ScrollBar/{ScrollBar-IMTuAOF5.js → ScrollBar-B7R4brL_.js} +1 -1
- package/dist/ScrollBar/index.js +2 -2
- package/dist/Segmented/{Segmented-BMwjhsZw.js → Segmented-AHLqTK7U.js} +1 -1
- package/dist/Segmented/index.js +2 -2
- package/dist/Select/{Select-C_g3oAkv.js → Select-Bio92QMl.js} +48 -48
- package/dist/Select/{SelectInputSearch-BMJQw4ll.js → SelectInputSearch-Bt2i3y3d.js} +1 -1
- package/dist/Select/index.js +10 -10
- package/dist/Table/{Table-B8381Lni.js → Table-8JyKy6tq.js} +11 -11
- package/dist/Table/index.js +3 -3
- package/dist/Tabs/{Tabs-DQAgk4py.js → Tabs-BugUJglj.js} +11 -11
- package/dist/Tabs/index.js +3 -3
- package/dist/Tooltip/{Tooltip-N06Os8rG.js → Tooltip-N-w19uRu.js} +3 -3
- package/dist/Tooltip/index.js +3 -3
- package/dist/Tree/index.js +4 -4
- package/dist/components/Amap/AmapMarkerCluster/utils.d.ts +1 -1
- package/dist/components/Card/Card.type.d.ts +24 -1
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Card/style/index.d.ts +1 -0
- package/dist/components/Card/style/resolveCardThemeVars.d.ts +5 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +24 -24
- package/dist/style.css +1 -1
- package/dist/vendors/{Tree-f0FxoFIC.js → Tree-C8l3t4L6.js} +2 -2
- package/dist/vendors/{version-Dz0OP6QK.js → version-DJ_rbXnB.js} +1 -1
- package/package.json +2 -3
- package/dist/Card/Card-BT2LRubP.js +0 -69
- package/dist/vite-env.d.ts +0 -13
- /package/dist/Modal/{Modal-DXH8hz96.js → Modal-BeDIo3CM.js} +0 -0
- /package/dist/vendors/{animations-ISccYUE3.js → animations-DNlwdSQ2.js} +0 -0
- /package/dist/vendors/{cssVars-UpriQzph.js → cssVars-BbL_cmFM.js} +0 -0
- /package/dist/vendors/{mergeRefs-mEH9TBYV.js → mergeRefs-DSqdKcq6.js} +0 -0
- /package/dist/vendors/{useFloatingOverlay-B66lOL8v.js → useFloatingOverlay-DlLAeqUv.js} +0 -0
- /package/dist/vendors/{useLatchedPopupPortalRoot-CC6af8t-.js → useLatchedPopupPortalRoot-Cu3oUL9h.js} +0 -0
- /package/dist/vendors/{useLocale-3oUjPb-k.js → useLocale-DvhRopWF.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-CcKDWNGy.js";
|
|
2
2
|
import { a as t, i as n } from "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
3
|
-
import { t as r } from "../vendors/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as s } from "../vendors/
|
|
7
|
-
import { t as c } from "./SelectInputSearch-
|
|
8
|
-
import { n as l, t as u } from "../vendors/Tree-
|
|
9
|
-
import { n as d } from "../CheckBox/CheckBox-
|
|
10
|
-
import { t as f } from "../CheckBox/CheckBox-
|
|
3
|
+
import { t as r } from "../vendors/cssVars-BbL_cmFM.js";
|
|
4
|
+
import { t as i } from "../vendors/useLocale-DvhRopWF.js";
|
|
5
|
+
import { n as a, r as o } from "../vendors/animations-DNlwdSQ2.js";
|
|
6
|
+
import { t as s } from "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
|
|
7
|
+
import { t as c } from "./SelectInputSearch-Bt2i3y3d.js";
|
|
8
|
+
import { n as l, t as u } from "../vendors/Tree-C8l3t4L6.js";
|
|
9
|
+
import { n as d } from "../CheckBox/CheckBox-BXKoPSBh.js";
|
|
10
|
+
import { t as f } from "../CheckBox/CheckBox-DihUnPT-.js";
|
|
11
11
|
import { t as p } from "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
|
|
12
|
-
import { t as m } from "../ScrollBar/ScrollBar-
|
|
12
|
+
import { t as m } from "../ScrollBar/ScrollBar-B7R4brL_.js";
|
|
13
13
|
import { t as h } from "../vendors/useFloatingPortal-DJ1iKmW-.js";
|
|
14
14
|
import { first as g, isArray as _, isEmpty as v, isEqual as y, isNil as b, noop as x } from "lodash-es";
|
|
15
15
|
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
@@ -229,7 +229,7 @@ var Z = (e, t) => {
|
|
|
229
229
|
});
|
|
230
230
|
};
|
|
231
231
|
return r(e), n;
|
|
232
|
-
}, ve = ({ placeholder: t, mode: n, clearable: r, onClear:
|
|
232
|
+
}, ve = ({ placeholder: t, mode: n, clearable: r, onClear: i, disabled: o = !1, labelRender: s, options: c = [], type: l, prefix: u, suffixIcon: d, ghost: f, inputValueStyle: p, tagStyle: m }) => {
|
|
233
233
|
let h = M(null), g = P(o ? null : h), { isOpen: v, value: y, getCachedOptionByValue: x } = R(), { fieldNames: T } = z(), E = j(() => {
|
|
234
234
|
if (b(y)) return [];
|
|
235
235
|
let e = _(y) ? y : [y];
|
|
@@ -278,19 +278,19 @@ var Z = (e, t) => {
|
|
|
278
278
|
mode: "wait",
|
|
279
279
|
children: E?.length && r && g ? /* @__PURE__ */ C(le.div, {
|
|
280
280
|
className: "bsy-select-input-container__icon-motion",
|
|
281
|
-
...
|
|
281
|
+
...a,
|
|
282
282
|
children: /* @__PURE__ */ C(e, {
|
|
283
283
|
name: "cancel",
|
|
284
284
|
className: "icon bsy-select-input-clear",
|
|
285
285
|
role: "button",
|
|
286
286
|
"aria-label": "clear",
|
|
287
287
|
onClick: (e) => {
|
|
288
|
-
e.stopPropagation(),
|
|
288
|
+
e.stopPropagation(), i?.();
|
|
289
289
|
}
|
|
290
290
|
})
|
|
291
291
|
}, "cancel") : /* @__PURE__ */ C(le.div, {
|
|
292
292
|
className: "bsy-select-input-container__icon-motion",
|
|
293
|
-
...
|
|
293
|
+
...a,
|
|
294
294
|
children: d ? d(v, o) : /* @__PURE__ */ C(e, {
|
|
295
295
|
name: "arrow-down",
|
|
296
296
|
className: N("icon", { active: v })
|
|
@@ -306,11 +306,11 @@ ve.displayName = "BsySelectInput";
|
|
|
306
306
|
//#endregion
|
|
307
307
|
//#region src/components/Select/OptionList/SingleOptionList/SingleOptionList.tsx
|
|
308
308
|
var Q = D((e) => {
|
|
309
|
-
let { options: t, value: n, onSelect:
|
|
309
|
+
let { options: t, value: n, onSelect: r, searchValue: a = "", fieldNames: o, optionRender: s, optionStyle: c } = e, { t: u } = i(), { otherInputPosition: d } = z(), { otherOptionValue: f, setOtherOptionValue: p, onOtherInputChange: m, isSelectedOtherOption: h = !1 } = B(), g = M(null), _ = V(o);
|
|
310
310
|
return /* @__PURE__ */ C("ul", {
|
|
311
311
|
role: "listbox",
|
|
312
312
|
children: t.map((e, t) => {
|
|
313
|
-
let
|
|
313
|
+
let i = _.getValue(e), o = _.getLabel(e), v = e.systemField === !0, y = e.isOther === !0, b = e.disabled === !0, x = y && d === "inline" && o.length > 6 ? o.slice(0, 6) + "..." : o, S = y ? h : i === n;
|
|
314
314
|
return /* @__PURE__ */ w("li", {
|
|
315
315
|
role: "option",
|
|
316
316
|
"aria-selected": S,
|
|
@@ -326,7 +326,7 @@ var Q = D((e) => {
|
|
|
326
326
|
}),
|
|
327
327
|
style: c,
|
|
328
328
|
onClick: () => {
|
|
329
|
-
b || i
|
|
329
|
+
b || r(i, e);
|
|
330
330
|
},
|
|
331
331
|
children: [/* @__PURE__ */ C("div", {
|
|
332
332
|
title: o,
|
|
@@ -348,16 +348,16 @@ var Q = D((e) => {
|
|
|
348
348
|
p?.(t), m?.(t);
|
|
349
349
|
},
|
|
350
350
|
onPressEnter: () => {
|
|
351
|
-
!b && f && i
|
|
351
|
+
!b && f && r(i, e);
|
|
352
352
|
},
|
|
353
353
|
onBlur: () => {
|
|
354
|
-
!b && f && i
|
|
354
|
+
!b && f && r(i, e);
|
|
355
355
|
},
|
|
356
356
|
placeholder: u("context"),
|
|
357
357
|
"aria-label": u("otherOptionInput")
|
|
358
358
|
})
|
|
359
359
|
})]
|
|
360
|
-
}, `${
|
|
360
|
+
}, `${i}-${t}`);
|
|
361
361
|
})
|
|
362
362
|
});
|
|
363
363
|
});
|
|
@@ -365,7 +365,7 @@ Q.displayName = "BsySingleSelect";
|
|
|
365
365
|
//#endregion
|
|
366
366
|
//#region src/components/Select/OptionList/MultOptionList/MultOptionList.tsx
|
|
367
367
|
var ye = (e) => {
|
|
368
|
-
let { t } =
|
|
368
|
+
let { t } = i(), { options: n, searchValue: r = "", value: a, onSelect: o, fieldNames: s, optionRender: c } = e, u = V(s), d = a || [], p = n.filter((e) => !e.isOther), m = p.filter((e) => !e.disabled), h = m.map((e) => u.getValue(e)), g = m.length > 0 && m.every((e) => d.includes(u.getValue(e)));
|
|
369
369
|
return /* @__PURE__ */ C("div", {
|
|
370
370
|
className: "bsy-multiple-select",
|
|
371
371
|
children: /* @__PURE__ */ w("ul", {
|
|
@@ -383,7 +383,7 @@ var ye = (e) => {
|
|
|
383
383
|
style: { padding: "7px 10px" },
|
|
384
384
|
children: /* @__PURE__ */ C("span", {
|
|
385
385
|
className: "font-bold bsy-select-option--all",
|
|
386
|
-
children: t(
|
|
386
|
+
children: t(r ? "allSelectedBySearch" : "allSelect")
|
|
387
387
|
})
|
|
388
388
|
})
|
|
389
389
|
}), /* @__PURE__ */ C(f.Group, {
|
|
@@ -392,7 +392,7 @@ var ye = (e) => {
|
|
|
392
392
|
o(e, p.filter((t) => e.includes(u.getValue(t))));
|
|
393
393
|
},
|
|
394
394
|
children: p.map((e, t) => {
|
|
395
|
-
let n = u.getValue(e),
|
|
395
|
+
let n = u.getValue(e), i = u.getLabel(e), a = d.includes(n), o = e.systemField === !0, s = e.disabled === !0;
|
|
396
396
|
return /* @__PURE__ */ C("li", {
|
|
397
397
|
"aria-disabled": s,
|
|
398
398
|
className: N("flex items-center gap-[8px] min-h-[34px]", "rounded-[4px]", "bsy-multiple-select-item", {
|
|
@@ -407,8 +407,8 @@ var ye = (e) => {
|
|
|
407
407
|
disabled: s,
|
|
408
408
|
style: { padding: "7px 10px" },
|
|
409
409
|
children: c ? c(e, { index: t }, a) : /* @__PURE__ */ C(l, {
|
|
410
|
-
text:
|
|
411
|
-
highlight:
|
|
410
|
+
text: i,
|
|
411
|
+
highlight: r,
|
|
412
412
|
className: !s && e.emphasized ? "font-bold bsy-select-option--all" : void 0
|
|
413
413
|
})
|
|
414
414
|
})
|
|
@@ -456,10 +456,10 @@ var be = (e) => {
|
|
|
456
456
|
}
|
|
457
457
|
return e;
|
|
458
458
|
}, []), Se = (e) => {
|
|
459
|
-
let { options: t = [], searchValue: n = "", type:
|
|
459
|
+
let { options: t = [], searchValue: n = "", type: r, filterOption: a, optionRender: o, optionStyle: s, notFoundContent: c } = e, { t: l } = i(), { value: u, setIsOpen: d, setValue: f } = R(), { fieldNames: m } = z(), h = j(() => r === L.TREE ? xe(t, m) : t, [
|
|
460
460
|
t,
|
|
461
461
|
m,
|
|
462
|
-
|
|
462
|
+
r
|
|
463
463
|
]), g = j(() => new F(h, {
|
|
464
464
|
keys: [m.label],
|
|
465
465
|
ignoreLocation: !0,
|
|
@@ -472,8 +472,8 @@ var be = (e) => {
|
|
|
472
472
|
d?.(!1), f(e, t);
|
|
473
473
|
}, [d, f]), x = () => {
|
|
474
474
|
if (!a || v(n)) return t;
|
|
475
|
-
let e = g.search(n),
|
|
476
|
-
return
|
|
475
|
+
let e = g.search(n), i = new Set(e.map((e) => e.item[m.value]));
|
|
476
|
+
return r === L.TREE ? $(t, i, m) : t.filter((e) => i.has(e[m.value]));
|
|
477
477
|
};
|
|
478
478
|
return /* @__PURE__ */ C(S, { children: (() => {
|
|
479
479
|
let e = {
|
|
@@ -485,7 +485,7 @@ var be = (e) => {
|
|
|
485
485
|
className: "bsy-select-empty",
|
|
486
486
|
text: l("noDataFound")
|
|
487
487
|
}) : c;
|
|
488
|
-
switch (
|
|
488
|
+
switch (r) {
|
|
489
489
|
case L.SINGLE: return /* @__PURE__ */ C(Q, {
|
|
490
490
|
...e,
|
|
491
491
|
value: u,
|
|
@@ -510,7 +510,7 @@ var be = (e) => {
|
|
|
510
510
|
}
|
|
511
511
|
})() });
|
|
512
512
|
}, Ce = (e) => {
|
|
513
|
-
let { options: t = [], type: n = L.SINGLE, filterOption:
|
|
513
|
+
let { options: t = [], type: n = L.SINGLE, filterOption: r = !0, onSearch: a, showSearch: o, searchPlaceholder: s, onPopupScroll: l, notFoundContent: u, themeStyle: d } = e, { t: f } = i(), { searchValue: h = "", setSearchValue: g } = R(), _ = A(h), v = () => e.fetching ? /* @__PURE__ */ C(p, {
|
|
514
514
|
className: "bsy-select-empty",
|
|
515
515
|
text: f("dataSearching")
|
|
516
516
|
}) : t.length === 0 && !h ? u === void 0 ? /* @__PURE__ */ C(p, {
|
|
@@ -520,7 +520,7 @@ var be = (e) => {
|
|
|
520
520
|
searchValue: _,
|
|
521
521
|
options: t,
|
|
522
522
|
type: n,
|
|
523
|
-
filterOption:
|
|
523
|
+
filterOption: r,
|
|
524
524
|
optionRender: e.optionRender,
|
|
525
525
|
optionStyle: e.optionStyle,
|
|
526
526
|
notFoundContent: u
|
|
@@ -551,21 +551,21 @@ Ce.displayName = "BsySelectPanel";
|
|
|
551
551
|
var we = (e) => {
|
|
552
552
|
if (!e) return {};
|
|
553
553
|
let t = {}, n = e.colorPrimary;
|
|
554
|
-
|
|
555
|
-
let
|
|
554
|
+
r(t, "--bsy-select-color-primary", n), r(t, "--bsy-select-color-bg", e.colorBgContainer), r(t, "--bsy-select-color-bg-elevated", e.colorBgElevated ?? e.colorBgContainer), r(t, "--bsy-select-color-text", e.colorText), r(t, "--bsy-select-color-input-value", e.colorInputValue), r(t, "--bsy-select-color-text-placeholder", e.colorTextPlaceholder), r(t, "--bsy-select-color-icon", e.colorIcon), r(t, "--bsy-select-color-icon-hover", e.colorIconHover ?? n), r(t, "--bsy-select-color-border", e.colorBorder), r(t, "--bsy-select-color-border-hover", e.colorBorderHover ?? n), r(t, "--bsy-select-color-bg-disabled", e.colorBgDisabled), r(t, "--bsy-select-color-text-disabled", e.colorTextDisabled), r(t, "--bsy-select-color-border-disabled", e.colorBorderDisabled), r(t, "--bsy-select-item-hover-bg", e.itemHoverBg), r(t, "--bsy-select-item-active-bg", e.itemActiveBg), r(t, "--bsy-select-item-active-color", e.itemActiveColor ?? n), r(t, "--bsy-select-item-color-disabled", e.itemColorDisabled), r(t, "--bsy-select-item-system-color", e.itemSystemColor), r(t, "--bsy-select-color-highlight", e.colorHighlight ?? n), r(t, "--bsy-select-tag-bg", e.tagBg), r(t, "--bsy-select-tag-color", e.tagColor), r(t, "--bsy-select-tag-bg-disabled", e.tagBgDisabled), r(t, "--bsy-select-tag-color-disabled", e.tagColorDisabled);
|
|
555
|
+
let i = {
|
|
556
556
|
...n ? { colorPrimary: n } : {},
|
|
557
557
|
...e.checkbox
|
|
558
558
|
};
|
|
559
|
-
return Object.assign(t, d(
|
|
560
|
-
}, Te = ee((e,
|
|
561
|
-
let { options:
|
|
559
|
+
return Object.assign(t, d(i)), t;
|
|
560
|
+
}, Te = ee((e, r) => {
|
|
561
|
+
let { options: a = [], type: c = L.SINGLE, fieldNames: l, clearable: u = !0, disabled: d = !1, placeholder: f, labelRender: p, onOtherInputChange: m, onOpenChange: g, onPopupScroll: _, prefix: v, suffixIcon: b, ghost: x, inputValueStyle: S, tagStyle: T, zIndex: E, zIndexMask: ee, otherInputPosition: D = "bottom", getPopupContainer: k, theme: A } = e, re = Number.parseFloat(e.popupMinWidth ?? ""), ae = e.popupMatchSelectWidth ?? (Number.isFinite(re) ? re : !0), P = de[c], F = t(E), R = ee ?? F - 1, { t: z } = i(), B = te(), { onChange: V } = e, H = l || fe, [U, W] = oe(e, {
|
|
562
562
|
defaultValue: P === I.SINGLE ? void 0 : [],
|
|
563
563
|
defaultValuePropName: "defaultValue",
|
|
564
564
|
valuePropName: "value",
|
|
565
565
|
trigger: "__NO_CUSTOM_CHANGE__"
|
|
566
566
|
}), [ge, _e] = ie(""), G = M(/* @__PURE__ */ new Map()), [K, q] = ie(() => {
|
|
567
567
|
if (P === I.SINGLE) {
|
|
568
|
-
let e =
|
|
568
|
+
let e = a.every((e) => e[H.value] !== U), t = a.find((e) => e.isOther === !0);
|
|
569
569
|
return e && t ? U : void 0;
|
|
570
570
|
}
|
|
571
571
|
}), J = O((e, t) => {
|
|
@@ -599,11 +599,11 @@ var we = (e) => {
|
|
|
599
599
|
isSelectedOtherOption: !1,
|
|
600
600
|
shouldShowOtherInput: !1
|
|
601
601
|
};
|
|
602
|
-
let e =
|
|
602
|
+
let e = a.find((e) => e[H.value] === U);
|
|
603
603
|
return e ? {
|
|
604
604
|
isSelectedOtherOption: e.isOther === !0,
|
|
605
605
|
shouldShowOtherInput: e.isOther === !0
|
|
606
|
-
} :
|
|
606
|
+
} : a.find((e) => e.isOther === !0) && U ? {
|
|
607
607
|
isSelectedOtherOption: !0,
|
|
608
608
|
shouldShowOtherInput: !0
|
|
609
609
|
} : {
|
|
@@ -612,20 +612,20 @@ var we = (e) => {
|
|
|
612
612
|
};
|
|
613
613
|
}, [
|
|
614
614
|
U,
|
|
615
|
-
|
|
615
|
+
a,
|
|
616
616
|
H,
|
|
617
617
|
P
|
|
618
618
|
]), be = O(() => {
|
|
619
619
|
if (U) {
|
|
620
620
|
if (P === I.SINGLE) {
|
|
621
|
-
let e =
|
|
621
|
+
let e = a.every((e) => e[H.value] !== U), t = a.find((e) => e.isOther === !0);
|
|
622
622
|
if (e && t) return t[H.value];
|
|
623
623
|
}
|
|
624
624
|
return U;
|
|
625
625
|
} else return U;
|
|
626
626
|
}, [
|
|
627
627
|
U,
|
|
628
|
-
|
|
628
|
+
a,
|
|
629
629
|
H,
|
|
630
630
|
P
|
|
631
631
|
]), xe = j(() => ({
|
|
@@ -673,7 +673,7 @@ var we = (e) => {
|
|
|
673
673
|
x: 0,
|
|
674
674
|
y: 4
|
|
675
675
|
}
|
|
676
|
-
}), { portalRoot: je, portalMountKey: Me, handleExitComplete: Ne } =
|
|
676
|
+
}), { portalRoot: je, portalMountKey: Me, handleExitComplete: Ne } = s(Y, k), Pe = O(() => {
|
|
677
677
|
Q && (q(""), m?.("")), Z(!1), G.current.clear(), J(P === I.SINGLE ? void 0 : []);
|
|
678
678
|
}, [
|
|
679
679
|
Q,
|
|
@@ -682,7 +682,7 @@ var we = (e) => {
|
|
|
682
682
|
P,
|
|
683
683
|
Z
|
|
684
684
|
]);
|
|
685
|
-
return ne(
|
|
685
|
+
return ne(r, () => ({
|
|
686
686
|
getOtherOptionValue: () => K,
|
|
687
687
|
setOtherOptionValue: (e) => {
|
|
688
688
|
q(e), m?.(e);
|
|
@@ -719,7 +719,7 @@ var we = (e) => {
|
|
|
719
719
|
disabled: d,
|
|
720
720
|
placeholder: f || z("select"),
|
|
721
721
|
labelRender: p,
|
|
722
|
-
options:
|
|
722
|
+
options: a,
|
|
723
723
|
type: c,
|
|
724
724
|
prefix: v,
|
|
725
725
|
suffixIcon: b,
|
|
@@ -746,10 +746,10 @@ var we = (e) => {
|
|
|
746
746
|
},
|
|
747
747
|
...ke(),
|
|
748
748
|
id: B,
|
|
749
|
-
...
|
|
749
|
+
...o,
|
|
750
750
|
children: /* @__PURE__ */ C(Ce, {
|
|
751
751
|
...e,
|
|
752
|
-
options:
|
|
752
|
+
options: a,
|
|
753
753
|
onPopupScroll: _,
|
|
754
754
|
themeStyle: $
|
|
755
755
|
})
|
|
@@ -757,7 +757,7 @@ var we = (e) => {
|
|
|
757
757
|
})
|
|
758
758
|
})]
|
|
759
759
|
}, Me),
|
|
760
|
-
ye && D === "bottom" ? e.otherOptionRender ? e.otherOptionRender(K,
|
|
760
|
+
ye && D === "bottom" ? e.otherOptionRender ? e.otherOptionRender(K, a) : /* @__PURE__ */ C("div", {
|
|
761
761
|
className: "bsy-select-other-input",
|
|
762
762
|
children: /* @__PURE__ */ C("input", {
|
|
763
763
|
value: K || "",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-CcKDWNGy.js";
|
|
2
|
-
import { t } from "../vendors/useLocale-
|
|
2
|
+
import { t } from "../vendors/useLocale-DvhRopWF.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import { useRef as i } from "react";
|
|
5
5
|
//#region src/components/Select/SelectInputSearch/SelectInputSearch.tsx
|
package/dist/Select/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DJ_rbXnB.js";
|
|
2
2
|
import "../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import "../Icon/Icon-CcKDWNGy.js";
|
|
4
4
|
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
5
5
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
6
|
-
import "../vendors/useLocale-
|
|
7
|
-
import "../vendors/useLatchedPopupPortalRoot-
|
|
8
|
-
import { n as e, r as t, t as n } from "./Select-
|
|
9
|
-
import "./SelectInputSearch-
|
|
10
|
-
import "../vendors/Tree-
|
|
11
|
-
import "../CheckBox/CheckBox-
|
|
12
|
-
import "../CheckBox/CheckBox-
|
|
13
|
-
import "../Radio/Radio-
|
|
6
|
+
import "../vendors/useLocale-DvhRopWF.js";
|
|
7
|
+
import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
|
|
8
|
+
import { n as e, r as t, t as n } from "./Select-Bio92QMl.js";
|
|
9
|
+
import "./SelectInputSearch-Bt2i3y3d.js";
|
|
10
|
+
import "../vendors/Tree-C8l3t4L6.js";
|
|
11
|
+
import "../CheckBox/CheckBox-BXKoPSBh.js";
|
|
12
|
+
import "../CheckBox/CheckBox-DihUnPT-.js";
|
|
13
|
+
import "../Radio/Radio-GeMs-7qt.js";
|
|
14
14
|
import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
|
|
15
|
-
import "../ScrollBar/ScrollBar-
|
|
15
|
+
import "../ScrollBar/ScrollBar-B7R4brL_.js";
|
|
16
16
|
import "../vendors/useFloatingPortal-DJ1iKmW-.js";
|
|
17
17
|
export { e as Mode, n as Select, t as SelectType };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-CcKDWNGy.js";
|
|
2
|
-
import { t } from "../vendors/
|
|
3
|
-
import { t as n } from "../vendors/
|
|
2
|
+
import { t } from "../vendors/cssVars-BbL_cmFM.js";
|
|
3
|
+
import { t as n } from "../vendors/useLocale-DvhRopWF.js";
|
|
4
4
|
import { LoadingOutlined as r } from "@ant-design/icons";
|
|
5
5
|
import { clamp as i, groupBy as a, sumBy as o } from "lodash-es";
|
|
6
6
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
@@ -791,19 +791,19 @@ function we({ scrollRef: e, tableHeaderRef: t, bordered: n, hasFooter: r, header
|
|
|
791
791
|
//#region src/components/Table/style/resolveTableThemeVars.ts
|
|
792
792
|
var Te = (e) => {
|
|
793
793
|
if (!e) return {};
|
|
794
|
-
let
|
|
795
|
-
return n
|
|
794
|
+
let n = {};
|
|
795
|
+
return t(n, "--bsy-table-color-border", e.colorBorder), t(n, "--bsy-table-color-bg-header", e.colorBgHeader), t(n, "--bsy-table-color-bg-container", e.colorBgContainer), t(n, "--bsy-table-color-text", e.colorText), t(n, "--bsy-table-color-text-heading", e.colorTextHeading), t(n, "--bsy-table-color-bg-row-hover", e.colorBgRowHover), n;
|
|
796
796
|
}, Ee = Object.freeze([]), De = Object.freeze({
|
|
797
797
|
left: !0,
|
|
798
798
|
right: !0
|
|
799
|
-
}), Oe = Object.freeze([]), ke = Object.freeze([]), Ae = u(({ columns: e = Oe, dataSource:
|
|
800
|
-
let { t: oe } =
|
|
799
|
+
}), Oe = Object.freeze([]), ke = Object.freeze([]), Ae = u(({ columns: e = Oe, dataSource: t = ke, rowKey: r = "id", height: i, bordered: a = !0, emptyText: o, onRowClick: u, scroll: d, footerData: f, footerSummary: h, renderFooter: v, hasFooter: y = !1, onRow: b, onCell: x, rowHeightStyle: S = "low", resizable: C = !0, disabledResizeColumns: w = Ee, minColumnWidth: T, maxColumnWidth: D, onColumnResize: k, onColumnResizeEnd: ee, renderBody: j, estimateSize: M, virtualEnabled: N, dataProcessor: P, headerRowSpan: F, fixedShadowMask: te = De, onRenderEmpty: I, overlayScrollbarOptions: ne, wrapperStyle: L, theme: re }, ae) => {
|
|
800
|
+
let { t: oe } = n(), se = g(() => Te(re), [re]), R = _(null), ce = _(null), { elementWidth: z, hasYScroll: ue, scrollOffset: de, headerHeight: B, bodyMinHeight: V } = we({
|
|
801
801
|
scrollRef: R,
|
|
802
802
|
tableHeaderRef: ce,
|
|
803
803
|
bordered: a,
|
|
804
804
|
hasFooter: y,
|
|
805
805
|
headerRowSpan: F,
|
|
806
|
-
dataSourceLength:
|
|
806
|
+
dataSourceLength: t.length,
|
|
807
807
|
overlayScrollbarOptions: ne
|
|
808
808
|
}), { sizedColumns: H, flatColumns: U, isResizing: fe, resizingColumn: pe, handleResizeStart: he, resizeHandleRef: ge } = Se({
|
|
809
809
|
columns: e,
|
|
@@ -812,7 +812,7 @@ var Te = (e) => {
|
|
|
812
812
|
maxColumnWidth: D,
|
|
813
813
|
onColumnResize: k,
|
|
814
814
|
onColumnResizeEnd: ee
|
|
815
|
-
}), { className: _e, height: W } = A[S] || A.auto, { virtualRows: G, totalHeight: xe, paddingTop: Ce, paddingBottom: Ae, remeasure: K, rowRefCallback: q, isDynamicHeight: je, clearRowHeightCache: Me, enabled: Ne } = ye(
|
|
815
|
+
}), { className: _e, height: W } = A[S] || A.auto, { virtualRows: G, totalHeight: xe, paddingTop: Ce, paddingBottom: Ae, remeasure: K, rowRefCallback: q, isDynamicHeight: je, clearRowHeightCache: Me, enabled: Ne } = ye(t, g(() => ({
|
|
816
816
|
rowHeight: W,
|
|
817
817
|
dynamicHeight: S === "auto",
|
|
818
818
|
rowKey: r,
|
|
@@ -834,10 +834,10 @@ var Te = (e) => {
|
|
|
834
834
|
p(() => {
|
|
835
835
|
K?.();
|
|
836
836
|
}, [W, K]);
|
|
837
|
-
let { leftFixedColumns: J, normalColumns: Y, rightFixedColumns: X, fixedLeftWidth: Fe, fixedRightWidth: Z, totalColumnsWidth: Q, needSpacer: $ } = g(() => ie(H, z), [H, z]), Ie = g(() => be(
|
|
837
|
+
let { leftFixedColumns: J, normalColumns: Y, rightFixedColumns: X, fixedLeftWidth: Fe, fixedRightWidth: Z, totalColumnsWidth: Q, needSpacer: $ } = g(() => ie(H, z), [H, z]), Ie = g(() => be(t, G, Ne, P), [
|
|
838
838
|
Ne,
|
|
839
839
|
G,
|
|
840
|
-
|
|
840
|
+
t,
|
|
841
841
|
P
|
|
842
842
|
]), Le = g(() => {
|
|
843
843
|
let e = {};
|
|
@@ -847,7 +847,7 @@ var Te = (e) => {
|
|
|
847
847
|
i,
|
|
848
848
|
d
|
|
849
849
|
]), Re = !!(i || d?.y), ze, Be, Ve = !0;
|
|
850
|
-
if (!j &&
|
|
850
|
+
if (!j && t.length === 0 && typeof I == "function") {
|
|
851
851
|
let e = I();
|
|
852
852
|
l.isValidElement(e) && e.type === "tr" ? ze = e : e && (Be = e, Ve = !1);
|
|
853
853
|
}
|
package/dist/Table/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DJ_rbXnB.js";
|
|
2
2
|
import "../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import "../Icon/Icon-CcKDWNGy.js";
|
|
4
4
|
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
5
|
-
import "../vendors/useLocale-
|
|
6
|
-
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./Table-
|
|
5
|
+
import "../vendors/useLocale-DvhRopWF.js";
|
|
6
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./Table-8JyKy6tq.js";
|
|
7
7
|
export { e as COLUMN_DEFAULTS, _ as DEFAULT_CONFIG, h as HierarchyCell, v as TABLE_DOM, p as Table, p as default, m as TableBody, u as buildHierarchyTreeMeta, r as calculateFixedOffset, i as expandLeafColumns, n as getCellRowspan, f as getColumnsWidth, l as getRowKey, c as processRowspan, s as resolveTableThemeVars, g as shouldRenderCell, o as sortData, a as splitFixedColumns, t as useColumnResize, d as useTableVirtual };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-CcKDWNGy.js";
|
|
2
2
|
import { a as t, i as n } from "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
3
|
-
import { t as r } from "../vendors/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { t as r } from "../vendors/cssVars-BbL_cmFM.js";
|
|
4
|
+
import { t as i } from "../vendors/useLocale-DvhRopWF.js";
|
|
5
|
+
import { r as a } from "../vendors/animations-DNlwdSQ2.js";
|
|
6
6
|
import { t as o } from "../vendors/useFloatingPortal-DJ1iKmW-.js";
|
|
7
7
|
import { isString as s } from "lodash-es";
|
|
8
8
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -146,8 +146,8 @@ var F = ({ disabled: e, children: t }) => {
|
|
|
146
146
|
s(e);
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
|
-
}, L = ({ children: e, activeKey: t, className: n, style:
|
|
150
|
-
let { t: o } =
|
|
149
|
+
}, L = ({ children: e, activeKey: t, className: n, style: r, items: a }) => {
|
|
150
|
+
let { t: o } = i(), { type: s = T.LINE, disabled: u } = f(E), d = [T.LINE, T.CARD].includes(s), { listRef: p, wrapperRef: m, showControls: h, canScrollLeft: g, canScrollRight: v, translateX: y, scrollLeft: b, scrollRight: x } = F({
|
|
151
151
|
disabled: u,
|
|
152
152
|
children: e
|
|
153
153
|
}), { indicatorStyle: S, handleTabClick: C } = I({
|
|
@@ -163,7 +163,7 @@ var F = ({ disabled: e, children: t }) => {
|
|
|
163
163
|
};
|
|
164
164
|
return /* @__PURE__ */ l("div", {
|
|
165
165
|
className: _("relative max-h-[36px]", n),
|
|
166
|
-
style:
|
|
166
|
+
style: r,
|
|
167
167
|
children: [
|
|
168
168
|
h && /* @__PURE__ */ c("button", {
|
|
169
169
|
className: _("absolute left-0 top-0 bottom-0 z-10 w-8 flex items-center justify-center", { "cursor-not-allowed": !g || u }),
|
|
@@ -264,7 +264,7 @@ R.displayName = "BsyTabPanel";
|
|
|
264
264
|
//#region src/components/Tabs/style/resolveTabsThemeVars.ts
|
|
265
265
|
var z = (e, t) => {
|
|
266
266
|
let n = {};
|
|
267
|
-
return
|
|
267
|
+
return r(n, "--bsy-tabs-color-primary", e?.colorPrimary ?? t), r(n, "--bsy-tabs-ink-bar", e?.inkBarColor), r(n, "--bsy-tabs-color-text", e?.colorText), r(n, "--bsy-tabs-item-active-color", e?.itemActiveColor), r(n, "--bsy-tabs-item-bg", e?.itemBg), r(n, "--bsy-tabs-item-hover-bg", e?.itemHoverBg), r(n, "--bsy-tabs-item-active-bg", e?.itemActiveBg), r(n, "--bsy-tabs-item-active-gradient-from", e?.itemActiveGradientFrom), r(n, "--bsy-tabs-item-active-gradient-to", e?.itemActiveGradientTo), r(n, "--bsy-tabs-color-border", e?.colorBorder), r(n, "--bsy-tabs-color-icon", e?.colorIcon), r(n, "--bsy-tabs-color-icon-disabled", e?.colorIconDisabled), n;
|
|
268
268
|
}, B = (e) => {
|
|
269
269
|
let [t, n] = v(e, {
|
|
270
270
|
defaultValuePropName: "defaultActiveKey",
|
|
@@ -310,8 +310,8 @@ var V = "_active_s6wtd_11", H = "_icon_s6wtd_45", U = {
|
|
|
310
310
|
"bsy-tabs-select__panel": "_bsy-tabs-select__panel_s6wtd_21",
|
|
311
311
|
"bsy-tabs-select__panel-item": "_bsy-tabs-select__panel-item_s6wtd_32",
|
|
312
312
|
icon: H
|
|
313
|
-
}, W = (
|
|
314
|
-
let { color: s, theme: u } =
|
|
313
|
+
}, W = (r) => {
|
|
314
|
+
let { color: s, theme: u } = r, { t: d } = i(), f = t(), [p, { toggle: h, setLeft: g }] = x(!1), { refs: y, floatingStyles: b, getFloatingProps: E, getReferenceProps: D, referenceStyle: O } = o({
|
|
315
315
|
isOpen: p,
|
|
316
316
|
close: g,
|
|
317
317
|
offset: {
|
|
@@ -319,7 +319,7 @@ var V = "_active_s6wtd_11", H = "_icon_s6wtd_45", U = {
|
|
|
319
319
|
y: 4
|
|
320
320
|
},
|
|
321
321
|
zIndex: f
|
|
322
|
-
}), [k, A] = v(
|
|
322
|
+
}), [k, A] = v(r, {
|
|
323
323
|
trigger: "onChange",
|
|
324
324
|
defaultValuePropName: "defaultValue",
|
|
325
325
|
valuePropName: "value",
|
|
@@ -373,7 +373,7 @@ var V = "_active_s6wtd_11", H = "_icon_s6wtd_45", U = {
|
|
|
373
373
|
style: b,
|
|
374
374
|
...E(),
|
|
375
375
|
children: /* @__PURE__ */ c(C.div, {
|
|
376
|
-
...
|
|
376
|
+
...a,
|
|
377
377
|
children: /* @__PURE__ */ c("div", {
|
|
378
378
|
className: U["bsy-tabs-select__panel"],
|
|
379
379
|
children: j.map((e) => /* @__PURE__ */ c("div", {
|
package/dist/Tabs/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DJ_rbXnB.js";
|
|
2
2
|
import "../Icon/Icon-CcKDWNGy.js";
|
|
3
3
|
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
4
4
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
5
|
-
import "../vendors/useLocale-
|
|
5
|
+
import "../vendors/useLocale-DvhRopWF.js";
|
|
6
6
|
import "../vendors/useFloatingPortal-DJ1iKmW-.js";
|
|
7
|
-
import { i as e, n as t, r as n, t as r } from "./Tabs-
|
|
7
|
+
import { i as e, n as t, r as n, t as r } from "./Tabs-BugUJglj.js";
|
|
8
8
|
export { e as TABS_TYPE, n as TabPanel, r as TabSelect, t as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, i as t } from "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
2
|
-
import { t as n } from "../vendors/animations-
|
|
3
|
-
import { t as r } from "../vendors/useLatchedPopupPortalRoot-
|
|
4
|
-
import { n as i } from "../vendors/mergeRefs-
|
|
2
|
+
import { t as n } from "../vendors/animations-DNlwdSQ2.js";
|
|
3
|
+
import { t as r } from "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
|
|
4
|
+
import { n as i } from "../vendors/mergeRefs-DSqdKcq6.js";
|
|
5
5
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
6
|
import { Fragment as c, cloneElement as l, createContext as u, isValidElement as d, useCallback as f, useEffect as ee, useMemo as p, useRef as te, useState as ne } from "react";
|
|
7
7
|
import { useControllableValue as re } from "ahooks";
|
package/dist/Tooltip/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DJ_rbXnB.js";
|
|
2
2
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
3
|
-
import "../vendors/useLatchedPopupPortalRoot-
|
|
4
|
-
import { n as e, t } from "./Tooltip-
|
|
3
|
+
import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
|
|
4
|
+
import { n as e, t } from "./Tooltip-N-w19uRu.js";
|
|
5
5
|
export { e as TooltipFloatingContext, t as default };
|
package/dist/Tree/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DJ_rbXnB.js";
|
|
2
2
|
import "../Icon/Icon-CcKDWNGy.js";
|
|
3
|
-
import { t as e } from "../vendors/Tree-
|
|
4
|
-
import "../CheckBox/CheckBox-
|
|
5
|
-
import "../Radio/Radio-
|
|
3
|
+
import { t as e } from "../vendors/Tree-C8l3t4L6.js";
|
|
4
|
+
import "../CheckBox/CheckBox-BXKoPSBh.js";
|
|
5
|
+
import "../Radio/Radio-GeMs-7qt.js";
|
|
6
6
|
export { e as Tree };
|
|
@@ -22,4 +22,4 @@ export declare const renderDefaultClusterContent: (count: number) => string;
|
|
|
22
22
|
export declare const setMarkerContent: (marker: ManagedMarker, content: AmapMarkerClusterContent | undefined, signature?: string) => void;
|
|
23
23
|
export declare const setMarkerAnchor: (marker: ManagedMarker) => void;
|
|
24
24
|
export declare const setMarkerOffset: (AMap: typeof globalThis.AMap, marker: ManagedMarker, offset: AmapMarkerClusterMarkerOffset | undefined) => void;
|
|
25
|
-
export declare const cleanupMarkerRuntime: (marker: ManagedMarker) =>
|
|
25
|
+
export declare const cleanupMarkerRuntime: (marker: ManagedMarker) => any;
|
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
/** Card 组件级自定义主题 token */
|
|
3
|
+
export interface CardTheme {
|
|
4
|
+
/** 品牌主色。标题与箭头的悬停色未单独指定时跟随它,默认 #0265ff */
|
|
5
|
+
colorPrimary?: string;
|
|
6
|
+
/** 卡片背景,默认 #ffffff */
|
|
7
|
+
bg?: string;
|
|
8
|
+
/** 标题颜色,默认 #121111 */
|
|
9
|
+
titleColor?: string;
|
|
10
|
+
/** 标题悬停颜色;未指定时跟随 colorPrimary */
|
|
11
|
+
titleHoverColor?: string;
|
|
12
|
+
/** 折叠箭头颜色,默认 #666666 */
|
|
13
|
+
iconColor?: string;
|
|
14
|
+
/** 折叠箭头悬停背景,默认 #f0f6ff */
|
|
15
|
+
iconHoverBg?: string;
|
|
16
|
+
/** 折叠箭头悬停颜色;未指定时跟随 colorPrimary */
|
|
17
|
+
iconHoverColor?: string;
|
|
18
|
+
/** 卡片圆角,默认 10px */
|
|
19
|
+
borderRadius?: number | string;
|
|
20
|
+
}
|
|
2
21
|
/**
|
|
3
22
|
* Card组件的属性接口
|
|
4
23
|
*/
|
|
@@ -34,9 +53,13 @@ export interface CardProps {
|
|
|
34
53
|
*/
|
|
35
54
|
className?: string;
|
|
36
55
|
/**
|
|
37
|
-
*
|
|
56
|
+
* 自定义样式。与 theme 冲突时,style 中的同名 CSS 变量优先
|
|
38
57
|
*/
|
|
39
58
|
style?: React.CSSProperties;
|
|
59
|
+
/**
|
|
60
|
+
* 组件级自定义主题 token
|
|
61
|
+
*/
|
|
62
|
+
theme?: CardTheme;
|
|
40
63
|
styles?: {
|
|
41
64
|
/**
|
|
42
65
|
* 自定义头样式
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './Card';
|
|
2
|
-
export type { CardProps } from './Card.type';
|
|
2
|
+
export type { CardProps, CardTheme } from './Card.type';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { resolveCardThemeVars } from './resolveCardThemeVars';
|
|
@@ -7,6 +7,7 @@ export { OverlayProvider, useOverlayZIndex, OVERLAY_Z_BASE, OVERLAY_Z_STEP } fro
|
|
|
7
7
|
export type { OverlayProviderProps } from './Overlay';
|
|
8
8
|
export { LocalTheme } from './theme';
|
|
9
9
|
export { default as Card } from './Card';
|
|
10
|
+
export type { CardProps, CardTheme } from './Card';
|
|
10
11
|
export { default as Modal } from './Modal';
|
|
11
12
|
export { default as ColorPicker } from './ColorPicker';
|
|
12
13
|
export { default as Segmented } from './Segmented';
|