@bioturing/components 0.13.3 → 0.14.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/CodeBlock.js +277 -132
- package/dist/DSRoot.js +309 -149
- package/dist/DropdownMenu.js +6 -1
- package/dist/Modal.js +9 -6
- package/dist/PopupPanel.css +116 -0
- package/dist/PopupPanel.js +333 -0
- package/dist/ScrollArea.js +4 -1
- package/dist/Select.js +126 -11
- package/dist/Table.js +3 -2
- package/dist/ThemeProvider.js +273 -131
- package/dist/Toast.js +286 -138
- package/dist/Upload.js +43 -1
- package/dist/components/{src/components/DSRoot → DSRoot}/component.d.ts +1 -1
- package/dist/components/DSRoot/context.d.ts +7 -0
- package/dist/components/{src/components/DropdownMenu → DropdownMenu}/component.d.ts +6 -1
- package/dist/components/{src/components/Modal → Modal}/Modal.d.ts +16 -1
- package/dist/components/{src/components/Modal → Modal}/index.d.ts +1 -1
- package/dist/components/PopupPanel/component.d.ts +61 -0
- package/dist/components/PopupPanel/constants.d.ts +7 -0
- package/dist/components/{src/components/Select → Select}/component.d.ts +13 -1
- package/dist/components/{src/components/Table → Table}/component.d.ts +1 -1
- package/dist/components/VerticalCollapsiblePanel/index.d.ts +1 -0
- package/dist/components/{src/components/hooks → hooks}/base-ui.d.ts +2 -2
- package/dist/components/{src/components/hooks → hooks}/index.d.ts +1 -0
- package/dist/components/hooks/useCharts.d.ts +22 -0
- package/dist/components/{src/components/index.d.ts → index.d.ts} +1 -0
- package/dist/components/{src/components/utils → utils}/antdUtils.d.ts +5 -0
- package/dist/hooks.js +961 -0
- package/dist/index.css +116 -0
- package/dist/index.js +1193 -242
- package/dist/style.css +157 -7
- package/dist/tokens/and-theme/index.d.ts +1 -0
- package/dist/{components/src/tokens/index.d.ts → tokens/and-theme/tokens.d.ts} +2 -0
- package/dist/tokens/charts/index.d.ts +6 -0
- package/dist/tokens/charts/tokens.d.ts +455 -0
- package/dist/tokens/index.d.ts +2 -0
- package/dist/tokens/utils.d.ts +16 -0
- package/dist/utils.js +43 -1
- package/package.json +17 -6
- package/dist/assets/src/icons/custom/ANOVAAnalysis.d.ts +0 -7
- package/dist/assets/src/icons/custom/AUCell.d.ts +0 -7
- package/dist/assets/src/icons/custom/Alphabet.d.ts +0 -7
- package/dist/assets/src/icons/custom/BarChart.d.ts +0 -7
- package/dist/assets/src/icons/custom/BoxPlot.d.ts +0 -7
- package/dist/assets/src/icons/custom/BubbleHeatmap.d.ts +0 -7
- package/dist/assets/src/icons/custom/CDR3Spectratyping.d.ts +0 -7
- package/dist/assets/src/icons/custom/CancerPrediction.d.ts +0 -7
- package/dist/assets/src/icons/custom/Cell.d.ts +0 -7
- package/dist/assets/src/icons/custom/CellCellCommunication.d.ts +0 -7
- package/dist/assets/src/icons/custom/CellSearch.d.ts +0 -7
- package/dist/assets/src/icons/custom/CellTypeDeconvolution.d.ts +0 -7
- package/dist/assets/src/icons/custom/CellTypePrediction.d.ts +0 -7
- package/dist/assets/src/icons/custom/Cells.d.ts +0 -7
- package/dist/assets/src/icons/custom/Circos.d.ts +0 -7
- package/dist/assets/src/icons/custom/Clonotype.d.ts +0 -7
- package/dist/assets/src/icons/custom/CoexpressionPlot.d.ts +0 -7
- package/dist/assets/src/icons/custom/Composition.d.ts +0 -7
- package/dist/assets/src/icons/custom/DEG.d.ts +0 -7
- package/dist/assets/src/icons/custom/Digits.d.ts +0 -7
- package/dist/assets/src/icons/custom/DiversityAnalysis.d.ts +0 -7
- package/dist/assets/src/icons/custom/Embedding.d.ts +0 -7
- package/dist/assets/src/icons/custom/EnrichmentTest.d.ts +0 -7
- package/dist/assets/src/icons/custom/Eppendorf.d.ts +0 -7
- package/dist/assets/src/icons/custom/FileArrowRight.d.ts +0 -7
- package/dist/assets/src/icons/custom/FolderArrowRight.d.ts +0 -7
- package/dist/assets/src/icons/custom/Heatmap.d.ts +0 -7
- package/dist/assets/src/icons/custom/ImageSegmentation.d.ts +0 -7
- package/dist/assets/src/icons/custom/IntersectionPlot.d.ts +0 -7
- package/dist/assets/src/icons/custom/LouvainClustering.d.ts +0 -7
- package/dist/assets/src/icons/custom/MarkerGenes.d.ts +0 -7
- package/dist/assets/src/icons/custom/MixedView.d.ts +0 -7
- package/dist/assets/src/icons/custom/NeighborhoodAnalysis.d.ts +0 -7
- package/dist/assets/src/icons/custom/PenSize.d.ts +0 -7
- package/dist/assets/src/icons/custom/Pertubation.d.ts +0 -7
- package/dist/assets/src/icons/custom/Pseudotime.d.ts +0 -7
- package/dist/assets/src/icons/custom/RegionSegmentation.d.ts +0 -7
- package/dist/assets/src/icons/custom/ScatterPlotTissueImageView.d.ts +0 -7
- package/dist/assets/src/icons/custom/ScatterPlotView.d.ts +0 -7
- package/dist/assets/src/icons/custom/SegmentSelection.d.ts +0 -7
- package/dist/assets/src/icons/custom/SpatialCellProportion.d.ts +0 -7
- package/dist/assets/src/icons/custom/Species.d.ts +0 -7
- package/dist/assets/src/icons/custom/SubClustering.d.ts +0 -7
- package/dist/assets/src/icons/custom/TSNEUMAP.d.ts +0 -7
- package/dist/assets/src/icons/custom/TissueImageScatterPlotView.d.ts +0 -7
- package/dist/assets/src/icons/custom/TissueImageView.d.ts +0 -7
- package/dist/assets/src/icons/custom/TwoD.d.ts +0 -7
- package/dist/assets/src/icons/custom/VennDiagramAnalysis.d.ts +0 -7
- package/dist/assets/src/icons/custom/ViolinPlot.d.ts +0 -7
- package/dist/assets/src/icons/custom/index.d.ts +0 -49
- package/dist/assets/src/icons/index.d.ts +0 -2
- package/dist/assets/src/icons/phosphor.d.ts +0 -1
- package/dist/assets/src/index.d.ts +0 -2
- package/dist/assets/src/logos/BBrowserX.d.ts +0 -9
- package/dist/assets/src/logos/BioStudio.d.ts +0 -9
- package/dist/assets/src/logos/BioTuring.d.ts +0 -9
- package/dist/assets/src/logos/BioTuringAlpha.d.ts +0 -9
- package/dist/assets/src/logos/BioVinci.d.ts +0 -9
- package/dist/assets/src/logos/Lens.d.ts +0 -9
- package/dist/assets/src/logos/Pixel.d.ts +0 -9
- package/dist/assets/src/logos/SmartBulk.d.ts +0 -9
- package/dist/assets/src/logos/SpatialX.d.ts +0 -9
- package/dist/assets/src/logos/Talk2Data.d.ts +0 -9
- package/dist/assets/src/logos/Vinci.d.ts +0 -9
- package/dist/assets/src/logos/index.d.ts +0 -11
- package/dist/components/src/components/DropdownMenu/utils.d.ts +0 -5
- package/dist/components/{src/components/Badge → Badge}/component.d.ts +0 -0
- package/dist/components/{src/components/Badge → Badge}/index.d.ts +0 -0
- package/dist/components/{src/components/Breadcrumb → Breadcrumb}/component.d.ts +0 -0
- package/dist/components/{src/components/Breadcrumb → Breadcrumb}/index.d.ts +0 -0
- package/dist/components/{src/components/Breadcrumb → Breadcrumb}/types.d.ts +0 -0
- package/dist/components/{src/components/Breadcrumb → Breadcrumb}/useItemRender.d.ts +0 -0
- package/dist/components/{src/components/Button → Button}/component.d.ts +0 -0
- package/dist/components/{src/components/Button → Button}/index.d.ts +0 -0
- package/dist/components/{src/components/Checkbox → Checkbox}/component.d.ts +0 -0
- package/dist/components/{src/components/Checkbox → Checkbox}/index.d.ts +0 -0
- package/dist/components/{src/components/CodeBlock → CodeBlock}/component.d.ts +0 -0
- package/dist/components/{src/components/CodeBlock → CodeBlock}/index.d.ts +0 -0
- package/dist/components/{src/components/CodeBlock → CodeBlock}/types.d.ts +0 -0
- package/dist/components/{src/components/Collapse → Collapse}/component.d.ts +0 -0
- package/dist/components/{src/components/Collapse → Collapse}/index.d.ts +0 -0
- package/dist/components/{src/components/DSRoot → DSRoot}/index.d.ts +0 -0
- package/dist/components/{src/components/DropdownMenu → DropdownMenu}/index.d.ts +0 -0
- package/dist/components/{src/components/Empty → Empty}/component.d.ts +0 -0
- package/dist/components/{src/components/Empty → Empty}/index.d.ts +0 -0
- package/dist/components/{src/components/Field → Field}/component.d.ts +0 -0
- package/dist/components/{src/components/Field → Field}/index.d.ts +0 -0
- package/dist/components/{src/components/Form → Form}/component.d.ts +0 -0
- package/dist/components/{src/components/Form → Form}/index.d.ts +0 -0
- package/dist/components/{src/components/Form → Form}/item.d.ts +0 -0
- package/dist/components/{src/components/IconButton → IconButton}/component.d.ts +0 -0
- package/dist/components/{src/components/IconButton → IconButton}/index.d.ts +0 -0
- package/dist/components/{src/components/Input → Input}/component.d.ts +0 -0
- package/dist/components/{src/components/Input → Input}/index.d.ts +0 -0
- package/dist/components/{src/components/Modal → Modal}/ModalProvider.d.ts +0 -0
- package/dist/components/{src/components/Modal → Modal}/ModalService.d.ts +0 -0
- package/dist/components/{src/components/Modal → Modal}/constants.d.ts +0 -0
- package/dist/components/{src/components/Modal → Modal}/functions.d.ts +0 -0
- package/dist/components/{src/components/Popover → Popover}/component.d.ts +0 -0
- package/dist/components/{src/components/Popover → Popover}/index.d.ts +0 -0
- package/dist/components/{src/components/ScrollArea → PopupPanel}/index.d.ts +0 -0
- package/dist/components/{src/components/Radio → Radio}/component.d.ts +0 -0
- package/dist/components/{src/components/Radio → Radio}/index.d.ts +0 -0
- package/dist/components/{src/components/Radio → Radio}/interface.d.ts +0 -0
- package/dist/components/{src/components/ScrollArea → ScrollArea}/component.d.ts +0 -0
- package/dist/components/{src/components/Segmented → ScrollArea}/index.d.ts +0 -0
- package/dist/components/{src/components/Segmented → Segmented}/component.d.ts +0 -0
- package/dist/components/{src/components/Select → Segmented}/index.d.ts +0 -0
- package/dist/components/{src/components/Slider → Select}/index.d.ts +0 -0
- package/dist/components/{src/components/Slider → Slider}/component.d.ts +0 -0
- package/dist/components/{src/components/Spin → Slider}/index.d.ts +0 -0
- package/dist/components/{src/components/Spin → Spin}/component.d.ts +0 -0
- package/dist/components/{src/components/Splitter → Spin}/index.d.ts +0 -0
- package/dist/components/{src/components/Splitter → Splitter}/component.d.ts +0 -0
- package/dist/components/{src/components/Switch → Splitter}/index.d.ts +0 -0
- package/dist/components/{src/components/Switch → Switch}/component.d.ts +0 -0
- package/dist/components/{src/components/Table → Switch}/index.d.ts +0 -0
- package/dist/components/{src/components/Tag → Table}/index.d.ts +0 -0
- package/dist/components/{src/components/Tag → Tag}/component.d.ts +0 -0
- package/dist/components/{src/components/ThemeProvider → Tag}/index.d.ts +0 -0
- package/dist/components/{src/components/ThemeProvider → ThemeProvider}/component.d.ts +0 -0
- package/dist/components/{src/components/Tooltip → ThemeProvider}/index.d.ts +0 -0
- package/dist/components/{src/components/Toast → Toast}/component.d.ts +0 -0
- package/dist/components/{src/components/Toast → Toast}/function.d.ts +0 -0
- package/dist/components/{src/components/Toast → Toast}/index.d.ts +0 -0
- package/dist/components/{src/components/Toast → Toast}/types.d.ts +0 -0
- package/dist/components/{src/components/Tooltip → Tooltip}/component.d.ts +0 -0
- package/dist/components/{src/components/Tour → Tooltip}/index.d.ts +0 -0
- package/dist/components/{src/components/Tour → Tour}/component.d.ts +0 -0
- package/dist/components/{src/components/Transition → Tour}/index.d.ts +0 -0
- package/dist/components/{src/components/Transition → Transition}/component.d.ts +0 -0
- package/dist/components/{src/components/Truncate → Transition}/index.d.ts +0 -0
- package/dist/components/{src/components/Tree → Tree}/components.d.ts +0 -0
- package/dist/components/{src/components/Tree → Tree}/helpers.d.ts +0 -0
- package/dist/components/{src/components/Tree → Tree}/index.d.ts +0 -0
- package/dist/components/{src/components/Tree → Tree}/types.d.ts +0 -0
- package/dist/components/{src/components/Tree → Tree}/useTreeCommon.d.ts +44 -44
- /package/dist/components/{src/components/Tree → Tree}/useUniqueKeysTree.d.ts +0 -0
- /package/dist/components/{src/components/Truncate → Truncate}/component.d.ts +0 -0
- /package/dist/components/{src/components/Truncate → Truncate}/helpers.d.ts +0 -0
- /package/dist/components/{src/components/VerticalCollapsiblePanel → Truncate}/index.d.ts +0 -0
- /package/dist/components/{src/components/Upload → Upload}/component.d.ts +0 -0
- /package/dist/components/{src/components/Upload → Upload}/dragger.d.ts +0 -0
- /package/dist/components/{src/components/Upload → Upload}/hooks.d.ts +0 -0
- /package/dist/components/{src/components/Upload → Upload}/index.d.ts +0 -0
- /package/dist/components/{src/components/Upload → Upload}/item.d.ts +0 -0
- /package/dist/components/{src/components/Upload → Upload}/utils.d.ts +0 -0
- /package/dist/components/{src/components/VerticalCollapsiblePanel → VerticalCollapsiblePanel}/component.d.ts +0 -0
- /package/dist/components/{src/components/hooks → hooks}/antd.d.ts +0 -0
- /package/dist/components/{src/components/hooks → hooks}/useControlledState.d.ts +0 -0
- /package/dist/components/{src/components/utils → utils}/WithAntdTokens.d.ts +0 -0
- /package/dist/components/{src/components/utils → utils}/client.d.ts +0 -0
- /package/dist/components/{src/components/utils → utils}/cn.d.ts +0 -0
- /package/dist/components/{src/components/utils → utils}/index.d.ts +0 -0
- /package/dist/components/{src/components/utils → utils}/isTracebackError.d.ts +0 -0
- /package/dist/components/{src/components/utils → utils}/main.d.ts +0 -0
- /package/dist/components/{src/components/utils → utils}/reactToString.d.ts +0 -0
- /package/dist/components/{src/components/utils → utils}/types.d.ts +0 -0
- /package/dist/{components/src/index.d.ts → index.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -4,11 +4,13 @@ import * as __WEBPACK_EXTERNAL_MODULE__bioturing_assets_dd0c210d__ from "@biotur
|
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_select_005d200f__ from "antd/es/select";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_checkbox_80658bc3__ from "antd/es/checkbox";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__ from "@floating-ui/react";
|
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
9
|
+
import * as __WEBPACK_EXTERNAL_MODULE_es_toolkit_82663681__ from "es-toolkit";
|
|
7
10
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_app_useApp_90d95086__ from "antd/es/app/useApp";
|
|
8
11
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_modal_52965d33__ from "antd/es/modal";
|
|
9
12
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_config_provider_6a57beb3__ from "antd/es/config-provider";
|
|
10
13
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_theme_useToken_e8911485__ from "antd/es/theme/useToken";
|
|
11
|
-
import * as __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__ from "tailwind-merge";
|
|
12
14
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_modal_context_bc73863f__ from "antd/es/modal/context";
|
|
13
15
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_modal_components_NormalCancelBtn_54ff398c__ from "antd/es/modal/components/NormalCancelBtn";
|
|
14
16
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_modal_components_NormalOkBtn_897b50c4__ from "antd/es/modal/components/NormalOkBtn";
|
|
@@ -47,23 +49,114 @@ import * as __WEBPACK_EXTERNAL_MODULE_antd_es_form_hooks_useFormInstance_2ae8658
|
|
|
47
49
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_form_FormItem_940c64da__ from "antd/es/form/FormItem";
|
|
48
50
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_tour_6998cb50__ from "antd/es/tour";
|
|
49
51
|
import * as __WEBPACK_EXTERNAL_MODULE_prism_react_renderer_be33806e__ from "prism-react-renderer";
|
|
52
|
+
import * as __WEBPACK_EXTERNAL_MODULE__base_ui_components_react_popover_cdb87929__ from "@base-ui-components/react/popover";
|
|
53
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_use_resizable_ad29d4b1__ from "react-use-resizable";
|
|
50
54
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_badge_f5f828f9__ from "antd/es/badge";
|
|
51
55
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_radio_e6b5c17a__ from "antd/es/radio";
|
|
52
56
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_app_App_698582f4__ from "antd/es/app/App";
|
|
53
57
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_theme_57fdaa32__ from "antd/es/theme";
|
|
54
58
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_es_grid_ec1d1712__ from "antd/es/grid";
|
|
55
|
-
|
|
59
|
+
"use client";
|
|
60
|
+
function useControlledState(value, onChange, defaultValue) {
|
|
61
|
+
const [internalState, setInternalState] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(defaultValue);
|
|
62
|
+
const isControlled = void 0 !== value;
|
|
63
|
+
const setState = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((next)=>{
|
|
64
|
+
const nextValue = "function" == typeof next ? next(value) : next;
|
|
65
|
+
if ("function" == typeof onChange) onChange(nextValue);
|
|
66
|
+
if (!isControlled) setInternalState(next);
|
|
67
|
+
}, [
|
|
68
|
+
value,
|
|
69
|
+
onChange,
|
|
70
|
+
isControlled
|
|
71
|
+
]);
|
|
72
|
+
const state = isControlled ? value : internalState;
|
|
73
|
+
return [
|
|
74
|
+
state,
|
|
75
|
+
setState
|
|
76
|
+
];
|
|
77
|
+
}
|
|
78
|
+
function cx(...args) {
|
|
79
|
+
const classes = [];
|
|
80
|
+
for (const arg of args)if (arg) {
|
|
81
|
+
if ("string" == typeof arg || "number" == typeof arg) classes.push(String(arg));
|
|
82
|
+
else if (Array.isArray(arg)) classes.push(...cx(...arg));
|
|
83
|
+
else if ("object" == typeof arg) {
|
|
84
|
+
for (const [key, value] of Object.entries(arg))if (value) classes.push(key);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return classes;
|
|
88
|
+
}
|
|
89
|
+
function clsx(...args) {
|
|
90
|
+
return cx(...args).join(" ");
|
|
91
|
+
}
|
|
92
|
+
function cn(...args) {
|
|
93
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(cx(...args));
|
|
94
|
+
}
|
|
95
|
+
var constants_PopupPanelSize = /*#__PURE__*/ function(PopupPanelSize) {
|
|
96
|
+
PopupPanelSize["xsmall"] = "320px";
|
|
97
|
+
PopupPanelSize["small"] = "400px";
|
|
98
|
+
PopupPanelSize["medium"] = "480px";
|
|
99
|
+
PopupPanelSize["large"] = "640px";
|
|
100
|
+
PopupPanelSize["xlarge"] = "840px";
|
|
101
|
+
return PopupPanelSize;
|
|
102
|
+
}({});
|
|
103
|
+
const MainSelectInner = ({ mode, className, open: openProp, defaultOpen, onOpenChange, popupClassName, onDropdownVisibleChange, enhancePositioner, getPopupContainer, popupSize, popupRender, classNames, styles = {}, ...rest }, ref)=>{
|
|
104
|
+
var _classNames_popup;
|
|
105
|
+
const portalNode = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useFloatingPortalNode)({});
|
|
56
106
|
const isMultiple = "multiple" === mode || "tags" === mode;
|
|
107
|
+
const [open, setOpen] = useControlledState(openProp, onOpenChange || onDropdownVisibleChange, defaultOpen);
|
|
108
|
+
const { floatingStyles, refs } = (0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.useFloating)({
|
|
109
|
+
placement: "bottom-start",
|
|
110
|
+
transform: false,
|
|
111
|
+
open: enhancePositioner && open,
|
|
112
|
+
middleware: [
|
|
113
|
+
(0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.offset)({
|
|
114
|
+
mainAxis: 4
|
|
115
|
+
}),
|
|
116
|
+
(0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.autoPlacement)({
|
|
117
|
+
allowedPlacements: [
|
|
118
|
+
"bottom-start",
|
|
119
|
+
"bottom-end",
|
|
120
|
+
"bottom",
|
|
121
|
+
"top-start",
|
|
122
|
+
"top-end",
|
|
123
|
+
"top"
|
|
124
|
+
]
|
|
125
|
+
}),
|
|
126
|
+
(0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.shift)({
|
|
127
|
+
padding: 8
|
|
128
|
+
}),
|
|
129
|
+
(0, __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.size)({
|
|
130
|
+
padding: 8,
|
|
131
|
+
apply ({ availableHeight, availableWidth, elements }) {
|
|
132
|
+
elements.floating.style.setProperty("--available-width", availableWidth + "px");
|
|
133
|
+
elements.floating.style.setProperty("--available-height", availableHeight + "px");
|
|
134
|
+
}
|
|
135
|
+
})
|
|
136
|
+
],
|
|
137
|
+
whileElementsMounted: __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.autoUpdate
|
|
138
|
+
});
|
|
139
|
+
const dsPopupClassName = clsx("ds-select-popup", isMultiple && "ds-select-multiple", (null == classNames ? void 0 : null == (_classNames_popup = classNames.popup) ? void 0 : _classNames_popup.root) || popupClassName, enhancePositioner && "ds-select-popup-enhanced");
|
|
140
|
+
const popupWidth = popupSize && "string" == typeof popupSize && popupSize in constants_PopupPanelSize ? constants_PopupPanelSize[popupSize] : "number" == typeof popupSize ? popupSize + "px" : popupSize || "fit-content";
|
|
57
141
|
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd_es_select_005d200f__["default"], {
|
|
58
|
-
ref:
|
|
142
|
+
ref: (node)=>{
|
|
143
|
+
if (ref) if ("function" == typeof ref) ref(node);
|
|
144
|
+
else ref.current = node;
|
|
145
|
+
if (!node) return;
|
|
146
|
+
refs.setReference(null == node ? void 0 : node.nativeElement);
|
|
147
|
+
},
|
|
59
148
|
suffixIcon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__bioturing_assets_dd0c210d__.CaretDown, {
|
|
60
149
|
weight: "bold"
|
|
61
150
|
}),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
151
|
+
open: open,
|
|
152
|
+
onOpenChange: setOpen,
|
|
153
|
+
popupClassName: dsPopupClassName,
|
|
154
|
+
classNames: {
|
|
155
|
+
popup: {
|
|
156
|
+
root: dsPopupClassName
|
|
157
|
+
},
|
|
158
|
+
...classNames
|
|
159
|
+
},
|
|
67
160
|
...isMultiple ? {
|
|
68
161
|
menuItemSelectedIcon: ({ isSelected })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
69
162
|
className: "ant-select-checkbox-indicator",
|
|
@@ -75,10 +168,36 @@ const MainSelectInner = ({ mode, className, popupClassName, ...rest }, ref)=>{
|
|
|
75
168
|
})
|
|
76
169
|
} : {},
|
|
77
170
|
mode: mode,
|
|
78
|
-
className:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
171
|
+
className: clsx("ds-select", className),
|
|
172
|
+
styles: enhancePositioner ? (0, __WEBPACK_EXTERNAL_MODULE_es_toolkit_82663681__.toMerged)(styles, {
|
|
173
|
+
popup: {
|
|
174
|
+
root: {
|
|
175
|
+
transition: "none",
|
|
176
|
+
...floatingStyles,
|
|
177
|
+
"--ds-select-popup-width": popupWidth
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}) : styles,
|
|
181
|
+
getPopupContainer: getPopupContainer || (enhancePositioner ? ()=>portalNode || document.body : void 0),
|
|
182
|
+
popupRender: (menu)=>{
|
|
183
|
+
if (!enhancePositioner) return popupRender ? popupRender(menu) : menu;
|
|
184
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
|
|
185
|
+
children: [
|
|
186
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.FloatingOverlay, {
|
|
187
|
+
lockScroll: true,
|
|
188
|
+
onClick: ()=>setOpen(false)
|
|
189
|
+
}),
|
|
190
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
191
|
+
ref: (node)=>{
|
|
192
|
+
if (!node) return;
|
|
193
|
+
const popupEl = node.closest(".ds-select-dropdown");
|
|
194
|
+
refs.setFloating(popupEl);
|
|
195
|
+
},
|
|
196
|
+
children: popupRender ? popupRender(menu) : menu
|
|
197
|
+
})
|
|
198
|
+
]
|
|
199
|
+
});
|
|
200
|
+
},
|
|
82
201
|
...rest
|
|
83
202
|
});
|
|
84
203
|
};
|
|
@@ -87,23 +206,6 @@ const Select = Object.assign(MainSelect, {
|
|
|
87
206
|
Option: __WEBPACK_EXTERNAL_MODULE_antd_es_select_005d200f__["default"].Option,
|
|
88
207
|
OptGroup: __WEBPACK_EXTERNAL_MODULE_antd_es_select_005d200f__["default"].OptGroup
|
|
89
208
|
});
|
|
90
|
-
function cx(...args) {
|
|
91
|
-
const classes = [];
|
|
92
|
-
for (const arg of args)if (arg) {
|
|
93
|
-
if ("string" == typeof arg || "number" == typeof arg) classes.push(String(arg));
|
|
94
|
-
else if (Array.isArray(arg)) classes.push(...cx(...arg));
|
|
95
|
-
else if ("object" == typeof arg) {
|
|
96
|
-
for (const [key, value] of Object.entries(arg))if (value) classes.push(key);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return classes;
|
|
100
|
-
}
|
|
101
|
-
function clsx(...args) {
|
|
102
|
-
return cx(...args).join(" ");
|
|
103
|
-
}
|
|
104
|
-
function cn(...args) {
|
|
105
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_tailwind_merge_e05e3e95__.twMerge)(cx(...args));
|
|
106
|
-
}
|
|
107
209
|
"use client";
|
|
108
210
|
const useGetPrefixCls = ()=>{
|
|
109
211
|
const { getPrefixCls } = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE_antd_es_config_provider_6a57beb3__["default"].ConfigContext);
|
|
@@ -120,6 +222,48 @@ const useCls = ()=>{
|
|
|
120
222
|
const { getPrefixCls } = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE_antd_es_config_provider_6a57beb3__["default"].ConfigContext);
|
|
121
223
|
return (...args)=>cx(...args).map((cls)=>getPrefixCls(cls)).join(" ");
|
|
122
224
|
};
|
|
225
|
+
function splitCamelCase(text) {
|
|
226
|
+
const result = [];
|
|
227
|
+
let currentWord = "";
|
|
228
|
+
for (const char of text)if (char >= "A" && char <= "Z") {
|
|
229
|
+
if (currentWord) result.push(currentWord);
|
|
230
|
+
currentWord = char.toLowerCase();
|
|
231
|
+
} else currentWord += char;
|
|
232
|
+
if (currentWord) result.push(currentWord);
|
|
233
|
+
return result.length > 0 ? result : [
|
|
234
|
+
text
|
|
235
|
+
];
|
|
236
|
+
}
|
|
237
|
+
const parseAntdPlacement = (placement = "bottomLeft")=>{
|
|
238
|
+
const [position1, position2] = splitCamelCase(placement);
|
|
239
|
+
let primaryPlacement;
|
|
240
|
+
let align = "center";
|
|
241
|
+
if ("top" === position1 || "bottom" === position1) {
|
|
242
|
+
primaryPlacement = position1;
|
|
243
|
+
if (position2) switch(position2){
|
|
244
|
+
case "left":
|
|
245
|
+
align = "start";
|
|
246
|
+
break;
|
|
247
|
+
case "right":
|
|
248
|
+
align = "end";
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
} else if ("left" === position1 || "right" === position1) {
|
|
252
|
+
primaryPlacement = position1;
|
|
253
|
+
if (position2) switch(position2){
|
|
254
|
+
case "top":
|
|
255
|
+
align = "start";
|
|
256
|
+
break;
|
|
257
|
+
case "bottom":
|
|
258
|
+
align = "end";
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
} else primaryPlacement = "bottom";
|
|
262
|
+
return {
|
|
263
|
+
placement: primaryPlacement,
|
|
264
|
+
align
|
|
265
|
+
};
|
|
266
|
+
};
|
|
123
267
|
"use client";
|
|
124
268
|
const IconButtonImpl = (props, ref)=>{
|
|
125
269
|
const { label, size = "medium", negativeMargin = true, children, className, tooltipProps = {}, as, href, target, rel, download, hrefLang, referrerPolicy, ...rest } = props;
|
|
@@ -185,14 +329,17 @@ var constants_ModalSize = /*#__PURE__*/ function(ModalSize) {
|
|
|
185
329
|
return ModalSize;
|
|
186
330
|
}({});
|
|
187
331
|
"use client";
|
|
188
|
-
const Modal = ({ open: externalOpen, closeIcon, children, size, footer, width, style, styles, classNames, okButtonProps, cancelButtonProps, loading, onOk, onCancel,
|
|
332
|
+
const Modal = ({ open: externalOpen, closeIcon, children, size: sizeProp, footer, width, style, styles, classNames, okButtonProps, cancelButtonProps, loading, onOk, onCancel, okText, okType = "primary", confirmLoading, cancelText = "Close", hideOkButton = false, hideCancelButton = false, contentPadding, title, afterTitle, beforeCloseButton, afterCloseButton, defaultFixedHeaderFooter = false, centered = true, type = "default", defaultOpen = true, background: backgroundProp, bodyScrollable = true, ...rest })=>{
|
|
189
333
|
const defaultCloseIcon = void 0 === closeIcon ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__bioturing_assets_dd0c210d__.X, {
|
|
190
334
|
size: 16,
|
|
191
335
|
weight: "bold"
|
|
192
336
|
}) : closeIcon;
|
|
193
337
|
const defaultModalSize = "default" === type ? "medium" : "xsmall";
|
|
194
|
-
const
|
|
338
|
+
const size = sizeProp || defaultModalSize;
|
|
339
|
+
const modalWidth = width || constants_ModalSize[size];
|
|
340
|
+
const background = backgroundProp || (size && size in constants_ModalSize && parseInt(constants_ModalSize[size]) <= parseInt(constants_ModalSize.medium) ? "elevated" : "container");
|
|
195
341
|
const modalStyle = {
|
|
342
|
+
"--ds-modal-bg": `var(--ds-color-bg-${background})`,
|
|
196
343
|
...style,
|
|
197
344
|
..."fullscreen" === size ? {
|
|
198
345
|
top: 0,
|
|
@@ -209,7 +356,7 @@ const Modal = ({ open: externalOpen, closeIcon, children, size, footer, width, s
|
|
|
209
356
|
...null == styles ? void 0 : styles.body
|
|
210
357
|
}
|
|
211
358
|
};
|
|
212
|
-
const [
|
|
359
|
+
const [isContentOverflow, setIsContentOverflow] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
|
|
213
360
|
const cls = useCls();
|
|
214
361
|
const resizeObserverRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
|
|
215
362
|
const modalInnerRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((node)=>{
|
|
@@ -218,12 +365,12 @@ const Modal = ({ open: externalOpen, closeIcon, children, size, footer, width, s
|
|
|
218
365
|
if (!(modalBody instanceof HTMLElement)) return;
|
|
219
366
|
const resizeObserver = new ResizeObserver(()=>{
|
|
220
367
|
const hasOverflow = modalBody.scrollHeight > modalBody.clientHeight;
|
|
221
|
-
|
|
368
|
+
setIsContentOverflow(hasOverflow);
|
|
222
369
|
});
|
|
223
370
|
resizeObserverRef.current = resizeObserver;
|
|
224
371
|
resizeObserver.observe(modalBody);
|
|
225
372
|
const hasOverflow = modalBody.scrollHeight > modalBody.clientHeight;
|
|
226
|
-
|
|
373
|
+
setIsContentOverflow(hasOverflow);
|
|
227
374
|
}, [
|
|
228
375
|
cls
|
|
229
376
|
]);
|
|
@@ -299,7 +446,7 @@ const Modal = ({ open: externalOpen, closeIcon, children, size, footer, width, s
|
|
|
299
446
|
title: renderTitle(),
|
|
300
447
|
classNames: {
|
|
301
448
|
...classNames,
|
|
302
|
-
wrapper: cls("modal-wrap", "fullscreen" == size && "modal-fullscreen",
|
|
449
|
+
wrapper: cls("modal-wrap", "fullscreen" == size && "modal-fullscreen", isContentOverflow && "modal-content-overflow", false === bodyScrollable && "modal-no-body-scroll", (defaultFixedHeaderFooter || isContentOverflow || "fullscreen" == size) && "modal-fixed")
|
|
303
450
|
},
|
|
304
451
|
styles: modalStyles,
|
|
305
452
|
modalRender: (modal)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
@@ -559,7 +706,7 @@ const Empty = ({ image, size = "medium", className, ...rest })=>{
|
|
|
559
706
|
});
|
|
560
707
|
};
|
|
561
708
|
const Empty_component = Empty;
|
|
562
|
-
const InternalTable = ({ columns, locale, emptyDescription, loading, ...rest })=>{
|
|
709
|
+
const InternalTable = ({ columns, locale, emptyDescription, loading, scroll = {}, ...rest })=>{
|
|
563
710
|
const cls = useCls();
|
|
564
711
|
const modifiedColumns = columns ? columns.map((column)=>({
|
|
565
712
|
sortIcon: ({ sortOrder })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
@@ -613,7 +760,8 @@ const InternalTable = ({ columns, locale, emptyDescription, loading, ...rest })=
|
|
|
613
760
|
loading: spinProps,
|
|
614
761
|
locale: modifiedLocale,
|
|
615
762
|
scroll: {
|
|
616
|
-
x: "
|
|
763
|
+
x: "fit-content",
|
|
764
|
+
...scroll
|
|
617
765
|
},
|
|
618
766
|
...rest
|
|
619
767
|
});
|
|
@@ -648,134 +796,310 @@ const InternalTag = ({ className, active = false, color, style, closeIcon, closa
|
|
|
648
796
|
const component_Tag = Object.assign(InternalTag, {
|
|
649
797
|
CheckableTag: __WEBPACK_EXTERNAL_MODULE_antd_es_tag_1ccabaea__["default"].CheckableTag
|
|
650
798
|
});
|
|
651
|
-
const
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
799
|
+
const getTokensByTheme = (originTokens, theme)=>{
|
|
800
|
+
const tokens = {};
|
|
801
|
+
Object.entries(originTokens).forEach(([key, value])=>{
|
|
802
|
+
if (value && "object" == typeof value && "light" in value && "dark" in value) {
|
|
803
|
+
const tokenValue = value;
|
|
804
|
+
tokens[key] = tokenValue[theme];
|
|
805
|
+
} else if ("string" == typeof value) tokens[key] = value;
|
|
806
|
+
});
|
|
807
|
+
return tokens;
|
|
808
|
+
};
|
|
809
|
+
const getColorsByTheme = (colorsOrTokens, theme)=>{
|
|
810
|
+
if (Array.isArray(colorsOrTokens)) return colorsOrTokens.map((color)=>color[theme]);
|
|
811
|
+
return Object.values(getTokensByTheme(colorsOrTokens, theme));
|
|
812
|
+
};
|
|
813
|
+
function resolveColorTokens(colors) {
|
|
814
|
+
const resolved = {};
|
|
815
|
+
const raw = colors;
|
|
816
|
+
const resolve = (key)=>{
|
|
817
|
+
if (resolved[key]) return resolved[key];
|
|
818
|
+
const value = raw[key];
|
|
819
|
+
if (!value) return {
|
|
820
|
+
light: "",
|
|
821
|
+
dark: ""
|
|
822
|
+
};
|
|
823
|
+
if ("string" == typeof value) {
|
|
824
|
+
const match = value.match(/^\{(.+)\}$/);
|
|
825
|
+
if (!match) throw new Error(`Invalid reference token: ${String(key)}`);
|
|
826
|
+
const resolvedValue = resolve(match[1]);
|
|
827
|
+
resolved[key] = resolvedValue;
|
|
828
|
+
return resolvedValue;
|
|
829
|
+
}
|
|
830
|
+
const light = "string" == typeof value.light && /^\{.+\}$/.test(value.light) ? resolve(value.light.slice(1, -1)).light : value.light;
|
|
831
|
+
const dark = "string" == typeof value.dark && /^\{.+\}$/.test(value.dark) ? resolve(value.dark.slice(1, -1)).dark : value.dark;
|
|
832
|
+
resolved[key] = {
|
|
833
|
+
light,
|
|
834
|
+
dark
|
|
835
|
+
};
|
|
836
|
+
return resolved[key];
|
|
837
|
+
};
|
|
838
|
+
Object.keys(raw).forEach((key)=>{
|
|
839
|
+
resolve(key);
|
|
840
|
+
});
|
|
841
|
+
return Object.fromEntries(Object.entries(resolved).filter(([_, value])=>value && value.light && value.dark));
|
|
842
|
+
}
|
|
843
|
+
const antdColorTokens = {
|
|
844
|
+
colorText: {
|
|
845
|
+
light: "rgba(0, 0, 0, 0.88)",
|
|
846
|
+
dark: "rgba(255, 255, 255, 0.85)"
|
|
847
|
+
},
|
|
848
|
+
colorTextSecondary: {
|
|
849
|
+
light: "rgba(0, 0, 0, 0.65)",
|
|
850
|
+
dark: "rgba(255, 255, 255, 0.65)"
|
|
851
|
+
},
|
|
852
|
+
colorTextTertiary: {
|
|
853
|
+
light: "rgba(0, 0, 0, 0.45)",
|
|
854
|
+
dark: "rgba(255, 255, 255, 0.45)"
|
|
855
|
+
},
|
|
856
|
+
colorTextQuaternary: {
|
|
857
|
+
light: "rgba(0, 0, 0, 0.25)",
|
|
858
|
+
dark: "rgba(255, 255, 255, 0.25)"
|
|
859
|
+
},
|
|
860
|
+
colorPrimary: {
|
|
861
|
+
light: "#175CD3",
|
|
862
|
+
dark: "#2E90FA"
|
|
863
|
+
},
|
|
864
|
+
colorPrimaryBg: {
|
|
865
|
+
light: "#E9F2FF",
|
|
866
|
+
dark: "#152137"
|
|
867
|
+
},
|
|
868
|
+
colorPrimaryBgHover: {
|
|
869
|
+
light: "#D1E9FF",
|
|
870
|
+
dark: "#112545"
|
|
871
|
+
},
|
|
872
|
+
colorPrimaryBorder: {
|
|
873
|
+
light: "#84CAFF",
|
|
874
|
+
dark: "#1C3959"
|
|
875
|
+
},
|
|
876
|
+
colorPrimaryBorderHover: {
|
|
877
|
+
light: "#53B1FD",
|
|
878
|
+
dark: "#204C7C"
|
|
879
|
+
},
|
|
880
|
+
colorPrimaryHover: {
|
|
881
|
+
light: "#1570EF",
|
|
882
|
+
dark: "#50A0E8"
|
|
883
|
+
},
|
|
884
|
+
colorPrimaryActive: {
|
|
885
|
+
light: "#175CD3",
|
|
886
|
+
dark: "#2565AB"
|
|
887
|
+
},
|
|
888
|
+
colorPrimaryTextHover: {
|
|
889
|
+
light: "#1570EF",
|
|
890
|
+
dark: "#50A0E8"
|
|
891
|
+
},
|
|
892
|
+
colorPrimaryTextActive: {
|
|
893
|
+
light: "#175CD3",
|
|
894
|
+
dark: "#2565AB"
|
|
895
|
+
},
|
|
896
|
+
colorInfo: {
|
|
897
|
+
light: "#175CD3",
|
|
898
|
+
dark: "#2E90FA"
|
|
899
|
+
},
|
|
900
|
+
colorInfoBg: {
|
|
901
|
+
light: "#E9F2FF",
|
|
902
|
+
dark: "#152137"
|
|
903
|
+
},
|
|
904
|
+
colorInfoBgHover: {
|
|
905
|
+
light: "#D1E9FF",
|
|
906
|
+
dark: "#112545"
|
|
907
|
+
},
|
|
908
|
+
colorInfoBorder: {
|
|
909
|
+
light: "#84CAFF",
|
|
910
|
+
dark: "#1C3959"
|
|
911
|
+
},
|
|
912
|
+
colorInfoBorderHover: {
|
|
913
|
+
light: "#53B1FD",
|
|
914
|
+
dark: "#204C7C"
|
|
915
|
+
},
|
|
916
|
+
colorInfoHover: {
|
|
917
|
+
light: "#1570EF",
|
|
918
|
+
dark: "#50A0E8"
|
|
919
|
+
},
|
|
920
|
+
colorInfoActive: {
|
|
921
|
+
light: "#175CD3",
|
|
922
|
+
dark: "#2565AB"
|
|
923
|
+
},
|
|
924
|
+
colorInfoTextHover: {
|
|
925
|
+
light: "#1570EF",
|
|
926
|
+
dark: "#50A0E8"
|
|
927
|
+
},
|
|
928
|
+
colorInfoTextActive: {
|
|
929
|
+
light: "#175CD3",
|
|
930
|
+
dark: "#2565AB"
|
|
931
|
+
},
|
|
932
|
+
colorSuccess: {
|
|
933
|
+
light: "#4CB200",
|
|
934
|
+
dark: "#389E0D"
|
|
935
|
+
},
|
|
936
|
+
colorSuccessBg: {
|
|
937
|
+
light: "#F6FFF0",
|
|
938
|
+
dark: "#162100"
|
|
939
|
+
},
|
|
940
|
+
colorSuccessBgHover: {
|
|
941
|
+
light: "#D9F7BE",
|
|
942
|
+
dark: "#1D2B00"
|
|
943
|
+
},
|
|
944
|
+
colorSuccessBorder: {
|
|
945
|
+
light: "#B7EB8F",
|
|
946
|
+
dark: "#274916"
|
|
947
|
+
},
|
|
948
|
+
colorSuccessBorderHover: {
|
|
949
|
+
light: "#95DE64",
|
|
950
|
+
dark: "#306317"
|
|
951
|
+
},
|
|
952
|
+
colorSuccessHover: {
|
|
953
|
+
light: "#73D13D",
|
|
954
|
+
dark: "#52C41A"
|
|
955
|
+
},
|
|
956
|
+
colorSuccessActive: {
|
|
957
|
+
light: "#389E0D",
|
|
958
|
+
dark: "#237804"
|
|
959
|
+
},
|
|
960
|
+
colorSuccessTextHover: {
|
|
961
|
+
light: "#237804",
|
|
962
|
+
dark: "#52C41A"
|
|
963
|
+
},
|
|
964
|
+
colorSuccessTextActive: {
|
|
965
|
+
light: "#092B00",
|
|
966
|
+
dark: "#237804"
|
|
967
|
+
},
|
|
968
|
+
colorWarning: {
|
|
969
|
+
light: "#FA8C16",
|
|
970
|
+
dark: "#D48806"
|
|
971
|
+
},
|
|
972
|
+
colorWarningBg: {
|
|
973
|
+
light: "#FFF7E6",
|
|
974
|
+
dark: "#281800"
|
|
975
|
+
},
|
|
976
|
+
colorWarningBgHover: {
|
|
977
|
+
light: "#FFE7BA",
|
|
978
|
+
dark: "#3D2200"
|
|
979
|
+
},
|
|
980
|
+
colorWarningBorder: {
|
|
981
|
+
light: "#FFD591",
|
|
982
|
+
dark: "#443B16"
|
|
983
|
+
},
|
|
984
|
+
colorWarningBorderHover: {
|
|
985
|
+
light: "#FFC069",
|
|
986
|
+
dark: "#594E1A"
|
|
987
|
+
},
|
|
988
|
+
colorWarningHover: {
|
|
989
|
+
light: "#FFA940",
|
|
990
|
+
dark: "#E8B339"
|
|
991
|
+
},
|
|
992
|
+
colorWarningActive: {
|
|
993
|
+
light: "#D46B08",
|
|
994
|
+
dark: "#AA7714"
|
|
995
|
+
},
|
|
996
|
+
colorWarningTextHover: {
|
|
997
|
+
light: "#AD4E00",
|
|
998
|
+
dark: "#E8B339"
|
|
999
|
+
},
|
|
1000
|
+
colorWarningTextActive: {
|
|
1001
|
+
light: "#873800",
|
|
1002
|
+
dark: "#AA7714"
|
|
1003
|
+
},
|
|
1004
|
+
colorError: {
|
|
1005
|
+
light: "#D92D20",
|
|
1006
|
+
dark: "#CF3D33"
|
|
1007
|
+
},
|
|
1008
|
+
colorErrorBg: {
|
|
1009
|
+
light: "#FEF3F2",
|
|
1010
|
+
dark: "#291414"
|
|
1011
|
+
},
|
|
1012
|
+
colorErrorBgHover: {
|
|
1013
|
+
light: "#FEE4E2",
|
|
1014
|
+
dark: "#411A18"
|
|
1015
|
+
},
|
|
1016
|
+
colorErrorBorder: {
|
|
1017
|
+
light: "#FDA29B",
|
|
1018
|
+
dark: "#562222"
|
|
1019
|
+
},
|
|
1020
|
+
colorErrorBorderHover: {
|
|
1021
|
+
light: "#F97066",
|
|
1022
|
+
dark: "#772A24"
|
|
1023
|
+
},
|
|
1024
|
+
colorErrorHover: {
|
|
1025
|
+
light: "#F04438",
|
|
1026
|
+
dark: "#E5695A"
|
|
1027
|
+
},
|
|
1028
|
+
colorErrorActive: {
|
|
1029
|
+
light: "#D92D20",
|
|
1030
|
+
dark: "#A3332B"
|
|
1031
|
+
},
|
|
1032
|
+
colorErrorTextHover: {
|
|
1033
|
+
light: "#F04438",
|
|
1034
|
+
dark: "#E5695A"
|
|
1035
|
+
},
|
|
1036
|
+
colorErrorTextActive: {
|
|
1037
|
+
light: "#D92D20",
|
|
1038
|
+
dark: "#A3332B"
|
|
1039
|
+
},
|
|
1040
|
+
colorFill: {
|
|
1041
|
+
light: "rgba(0, 0, 0, 0.15)",
|
|
1042
|
+
dark: "rgba(255, 255, 255, 0.15)"
|
|
1043
|
+
},
|
|
1044
|
+
colorFillSecondary: {
|
|
1045
|
+
light: "rgba(0, 0, 0, 0.06)",
|
|
1046
|
+
dark: "rgba(255, 255, 255, 0.06)"
|
|
1047
|
+
},
|
|
1048
|
+
colorFillTertiary: {
|
|
1049
|
+
light: "rgba(0, 0, 0, 0.04)",
|
|
1050
|
+
dark: "rgba(255, 255, 255, 0.04)"
|
|
1051
|
+
},
|
|
1052
|
+
colorFillQuaternary: {
|
|
1053
|
+
light: "rgba(0, 0, 0, 0.02)",
|
|
1054
|
+
dark: "rgba(255, 255, 255, 0.02)"
|
|
1055
|
+
},
|
|
1056
|
+
colorFillAlter: {
|
|
1057
|
+
light: "rgba(0, 0, 0, 0.02)",
|
|
1058
|
+
dark: "rgba(255, 255, 255, 0.02)"
|
|
1059
|
+
},
|
|
1060
|
+
colorBorder: {
|
|
1061
|
+
light: "rgba(0, 0, 0, 0.16)",
|
|
1062
|
+
dark: "rgba(255, 255, 255, 0.16)"
|
|
1063
|
+
},
|
|
1064
|
+
colorBorderSecondary: {
|
|
1065
|
+
light: "rgba(0, 0, 0, 0.06)",
|
|
1066
|
+
dark: "rgba(255, 255, 255, 0.06)"
|
|
1067
|
+
},
|
|
1068
|
+
colorIcon: {
|
|
1069
|
+
light: "rgba(0, 0, 0, 0.58)",
|
|
1070
|
+
dark: "rgba(255, 255, 255, 0.58)"
|
|
1071
|
+
},
|
|
1072
|
+
colorIconHover: {
|
|
1073
|
+
light: "rgba(0, 0, 0, 0.88)",
|
|
1074
|
+
dark: "rgba(255, 255, 255, 0.88)"
|
|
1075
|
+
},
|
|
1076
|
+
colorBgContainer: {
|
|
1077
|
+
light: "#FFFFFF",
|
|
1078
|
+
dark: "#26262C"
|
|
1079
|
+
},
|
|
1080
|
+
colorBgElevated: {
|
|
1081
|
+
light: "#FFFFFF",
|
|
1082
|
+
dark: "#2F2F37"
|
|
1083
|
+
},
|
|
1084
|
+
colorBgLayout: {
|
|
1085
|
+
light: "#F5F5F5",
|
|
1086
|
+
dark: "#1A1A1E"
|
|
1087
|
+
},
|
|
1088
|
+
colorBgSpotlight: {
|
|
1089
|
+
light: "rgba(0, 0, 0, 0.85)",
|
|
1090
|
+
dark: "#505D5D"
|
|
1091
|
+
},
|
|
1092
|
+
colorBgMask: {
|
|
1093
|
+
light: "rgba(0, 0, 0, 0.45)",
|
|
1094
|
+
dark: "rgba(0, 0, 0, 0.45)"
|
|
1095
|
+
},
|
|
1096
|
+
colorBgBase: {
|
|
1097
|
+
light: "#FFFFFF",
|
|
1098
|
+
dark: "#13131A"
|
|
1099
|
+
},
|
|
1100
|
+
controlOutline: {
|
|
1101
|
+
light: "rgba(0, 0, 0, 0.12)",
|
|
1102
|
+
dark: "rgba(255, 255, 255, 0.12)"
|
|
779
1103
|
}
|
|
780
1104
|
};
|
|
781
1105
|
const sharedTokens = {
|
|
@@ -796,7 +1120,7 @@ const sharedTokens = {
|
|
|
796
1120
|
lineHeightSM: 16 / 12,
|
|
797
1121
|
fontWeightStrong: 600,
|
|
798
1122
|
boxShadow: "0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 6px rgba(0, 0, 0, 0.04), 0px 2px 10px rgba(0, 0, 0, 0.04)",
|
|
799
|
-
boxShadowSecondary: "0px 0px 1px
|
|
1123
|
+
boxShadowSecondary: "0px 0px 1px 0px var(--ds-color-border-modal), 0px 3px 6px 1px rgba(0, 0, 0, 0.08), 0px 6px 26px 2px rgba(0, 0, 0, 0.08), 0px 4px 52px 0px rgba(0, 0, 0, 0.05)",
|
|
800
1124
|
colorBgSpotlight: "rgba(0, 0, 0, 0.85)"
|
|
801
1125
|
};
|
|
802
1126
|
const sharedThemeConfig = {
|
|
@@ -837,14 +1161,14 @@ const sharedThemeConfig = {
|
|
|
837
1161
|
};
|
|
838
1162
|
const lightTheme = {
|
|
839
1163
|
token: {
|
|
840
|
-
...
|
|
1164
|
+
...getTokensByTheme(antdColorTokens, "light"),
|
|
841
1165
|
...sharedTokens
|
|
842
1166
|
},
|
|
843
1167
|
...sharedThemeConfig
|
|
844
1168
|
};
|
|
845
1169
|
const darkTheme = {
|
|
846
1170
|
token: {
|
|
847
|
-
...
|
|
1171
|
+
...getTokensByTheme(antdColorTokens, "dark"),
|
|
848
1172
|
...sharedTokens
|
|
849
1173
|
},
|
|
850
1174
|
...sharedThemeConfig
|
|
@@ -1038,48 +1362,6 @@ const Truncate = ({ children, position = "end", className, style, ...rest })=>{
|
|
|
1038
1362
|
})
|
|
1039
1363
|
});
|
|
1040
1364
|
};
|
|
1041
|
-
function splitCamelCase(text) {
|
|
1042
|
-
const result = [];
|
|
1043
|
-
let currentWord = "";
|
|
1044
|
-
for (const char of text)if (char >= "A" && char <= "Z") {
|
|
1045
|
-
if (currentWord) result.push(currentWord);
|
|
1046
|
-
currentWord = char.toLowerCase();
|
|
1047
|
-
} else currentWord += char;
|
|
1048
|
-
if (currentWord) result.push(currentWord);
|
|
1049
|
-
return result.length > 0 ? result : [
|
|
1050
|
-
text
|
|
1051
|
-
];
|
|
1052
|
-
}
|
|
1053
|
-
const parseAntdPlacement = (placement = "bottomLeft")=>{
|
|
1054
|
-
const [position1, position2] = splitCamelCase(placement);
|
|
1055
|
-
let primaryPlacement;
|
|
1056
|
-
let align = "center";
|
|
1057
|
-
if ("top" === position1 || "bottom" === position1) {
|
|
1058
|
-
primaryPlacement = position1;
|
|
1059
|
-
if (position2) switch(position2){
|
|
1060
|
-
case "left":
|
|
1061
|
-
align = "start";
|
|
1062
|
-
break;
|
|
1063
|
-
case "right":
|
|
1064
|
-
align = "end";
|
|
1065
|
-
break;
|
|
1066
|
-
}
|
|
1067
|
-
} else if ("left" === position1 || "right" === position1) {
|
|
1068
|
-
primaryPlacement = position1;
|
|
1069
|
-
if (position2) switch(position2){
|
|
1070
|
-
case "top":
|
|
1071
|
-
align = "start";
|
|
1072
|
-
break;
|
|
1073
|
-
case "bottom":
|
|
1074
|
-
align = "end";
|
|
1075
|
-
break;
|
|
1076
|
-
}
|
|
1077
|
-
} else primaryPlacement = "bottom";
|
|
1078
|
-
return {
|
|
1079
|
-
placement: primaryPlacement,
|
|
1080
|
-
align
|
|
1081
|
-
};
|
|
1082
|
-
};
|
|
1083
1365
|
"use client";
|
|
1084
1366
|
const DropdownMenu = ({ children, items, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange })=>{
|
|
1085
1367
|
const [open, setOpen] = (0, __WEBPACK_EXTERNAL_MODULE__base_ui_components_react_utils_d48cdb94__.useControlled)({
|
|
@@ -1138,7 +1420,12 @@ const DropdownMenu = ({ children, items, placement, openOnHover, open: outsideOp
|
|
|
1138
1420
|
className: clsx(cls("dropdown-menu-item")),
|
|
1139
1421
|
disabled: item.disabled,
|
|
1140
1422
|
"data-danger": item.danger,
|
|
1423
|
+
ref: item.ref,
|
|
1141
1424
|
onClick: item.onClick,
|
|
1425
|
+
onMouseEnter: item.onMouseEnter,
|
|
1426
|
+
onMouseLeave: item.onMouseLeave,
|
|
1427
|
+
onMouseOver: item.onMouseOver,
|
|
1428
|
+
onMouseOut: item.onMouseOut,
|
|
1142
1429
|
children: [
|
|
1143
1430
|
item.icon && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
1144
1431
|
className: cls("dropdown-menu-item-icon"),
|
|
@@ -1439,7 +1726,10 @@ const ScrollArea = ({ children, className, viewportClassName, thumbClassName, sc
|
|
|
1439
1726
|
children: [
|
|
1440
1727
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_5aaa6934__.ScrollArea.Viewport, {
|
|
1441
1728
|
className: clsx(cls("scroll-area-viewport"), viewportClassName),
|
|
1442
|
-
children:
|
|
1729
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_5aaa6934__.ScrollArea.Content, {
|
|
1730
|
+
className: clsx(cls("scroll-area-content")),
|
|
1731
|
+
children: children
|
|
1732
|
+
})
|
|
1443
1733
|
}),
|
|
1444
1734
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_5aaa6934__.ScrollArea.Scrollbar, {
|
|
1445
1735
|
className: clsx(cls("scroll-area-scrollbar"), scrollbarClassName),
|
|
@@ -1539,25 +1829,6 @@ const Breadcrumb = Object.assign(BreadcrumbInner, {
|
|
|
1539
1829
|
Separator
|
|
1540
1830
|
});
|
|
1541
1831
|
"use client";
|
|
1542
|
-
function useControlledState(value, onChange, defaultValue) {
|
|
1543
|
-
const [internalState, setInternalState] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(defaultValue);
|
|
1544
|
-
const isControlled = void 0 !== value;
|
|
1545
|
-
const setState = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((next)=>{
|
|
1546
|
-
const nextValue = "function" == typeof next ? next(value) : next;
|
|
1547
|
-
if ("function" == typeof onChange) onChange(nextValue);
|
|
1548
|
-
if (!isControlled) setInternalState(next);
|
|
1549
|
-
}, [
|
|
1550
|
-
value,
|
|
1551
|
-
onChange,
|
|
1552
|
-
isControlled
|
|
1553
|
-
]);
|
|
1554
|
-
const state = isControlled ? value : internalState;
|
|
1555
|
-
return [
|
|
1556
|
-
state,
|
|
1557
|
-
setState
|
|
1558
|
-
];
|
|
1559
|
-
}
|
|
1560
|
-
"use client";
|
|
1561
1832
|
const getUniqueKeysFromOriginals = (nodes, originalKeysToFind, map)=>{
|
|
1562
1833
|
if (!nodes) return [];
|
|
1563
1834
|
let keys = [];
|
|
@@ -2268,6 +2539,181 @@ const VerticalCollapsiblePanel = ({ children, title, defaultOpen = false, open:
|
|
|
2268
2539
|
]
|
|
2269
2540
|
});
|
|
2270
2541
|
};
|
|
2542
|
+
"use client";
|
|
2543
|
+
const PopupPanel = ({ children, placement, openOnHover = false, open: outsideOpen, onOpenChange: outsideOnOpenChange, content, title, trigger = "click", className, anchor, beforeCloseButton, afterCloseButton, afterTitle, size = "medium", footer, defaultOpen, resizable = false })=>{
|
|
2544
|
+
const [open, setOpen] = useControlledState(outsideOpen, outsideOnOpenChange, defaultOpen ?? false);
|
|
2545
|
+
const cls = useCls();
|
|
2546
|
+
const antdCssVarClassname = useAntdCssVarClassname();
|
|
2547
|
+
const headlessUIPlacement = parseAntdPlacement(placement);
|
|
2548
|
+
const triggerRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
|
|
2549
|
+
const [popupRef, setPopupRef] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(null);
|
|
2550
|
+
const [width, setWidth] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)();
|
|
2551
|
+
const [height, setHeight] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)();
|
|
2552
|
+
const callbackRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((node)=>{
|
|
2553
|
+
setPopupRef(node);
|
|
2554
|
+
}, []);
|
|
2555
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
2556
|
+
if (!popupRef) return;
|
|
2557
|
+
const observer = new ResizeObserver((entries)=>{
|
|
2558
|
+
for (const entry of entries){
|
|
2559
|
+
setWidth(entry.contentRect.width);
|
|
2560
|
+
setHeight(entry.contentRect.height);
|
|
2561
|
+
}
|
|
2562
|
+
});
|
|
2563
|
+
observer.observe(popupRef);
|
|
2564
|
+
return ()=>{
|
|
2565
|
+
observer.disconnect();
|
|
2566
|
+
};
|
|
2567
|
+
}, [
|
|
2568
|
+
popupRef
|
|
2569
|
+
]);
|
|
2570
|
+
const defaultCloseIcon = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__bioturing_assets_dd0c210d__.X, {
|
|
2571
|
+
size: 16
|
|
2572
|
+
}), []);
|
|
2573
|
+
const renderTitle = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
2574
|
+
className: cls("popup-panel-header"),
|
|
2575
|
+
children: [
|
|
2576
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_antd_es_flex_86593150__["default"], {
|
|
2577
|
+
align: "center",
|
|
2578
|
+
gap: 8,
|
|
2579
|
+
className: cls("popup-panel-title-wrapper"),
|
|
2580
|
+
children: [
|
|
2581
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_popover_cdb87929__.Popover.Title, {
|
|
2582
|
+
render: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2583
|
+
className: cls("grow", "truncate"),
|
|
2584
|
+
children: title
|
|
2585
|
+
})
|
|
2586
|
+
}),
|
|
2587
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
2588
|
+
className: "flex items-center gap-2",
|
|
2589
|
+
children: [
|
|
2590
|
+
beforeCloseButton,
|
|
2591
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_popover_cdb87929__.Popover.Close, {
|
|
2592
|
+
render: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(IconButton, {
|
|
2593
|
+
children: defaultCloseIcon
|
|
2594
|
+
})
|
|
2595
|
+
}),
|
|
2596
|
+
afterCloseButton
|
|
2597
|
+
]
|
|
2598
|
+
})
|
|
2599
|
+
]
|
|
2600
|
+
}),
|
|
2601
|
+
afterTitle ? afterTitle : null
|
|
2602
|
+
]
|
|
2603
|
+
}), [
|
|
2604
|
+
afterCloseButton,
|
|
2605
|
+
afterTitle,
|
|
2606
|
+
beforeCloseButton,
|
|
2607
|
+
cls,
|
|
2608
|
+
defaultCloseIcon,
|
|
2609
|
+
title
|
|
2610
|
+
]);
|
|
2611
|
+
const [resizing, setResizing] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
|
|
2612
|
+
const { getRootProps, getHandleProps, rootRef } = (0, __WEBPACK_EXTERNAL_MODULE_react_use_resizable_ad29d4b1__.useResizable)({
|
|
2613
|
+
initialWidth: width,
|
|
2614
|
+
initialHeight: height,
|
|
2615
|
+
onDragStart: ()=>setResizing(true),
|
|
2616
|
+
onDragEnd: ()=>setResizing(false)
|
|
2617
|
+
});
|
|
2618
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
2619
|
+
if (resizing) document.body.style.userSelect = "none";
|
|
2620
|
+
else document.body.style.userSelect = "";
|
|
2621
|
+
}, [
|
|
2622
|
+
resizing
|
|
2623
|
+
]);
|
|
2624
|
+
const onReverseHandleChangeVertical = (parent, values)=>{
|
|
2625
|
+
if (!parent.current) return;
|
|
2626
|
+
const { heightDiff } = values;
|
|
2627
|
+
parent.current.style.top = `${parseInt(parent.current.style.top || "0") - heightDiff}px`;
|
|
2628
|
+
};
|
|
2629
|
+
const onReverseHandleChangeHorizontal = (parent, values)=>{
|
|
2630
|
+
if (!parent.current) return;
|
|
2631
|
+
const { widthDiff } = values;
|
|
2632
|
+
parent.current.style.left = `${parseInt(parent.current.style.left || "0") - widthDiff}px`;
|
|
2633
|
+
};
|
|
2634
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_popover_cdb87929__.Popover.Root, {
|
|
2635
|
+
openOnHover: "hover" === trigger ? true : openOnHover,
|
|
2636
|
+
open: open,
|
|
2637
|
+
onOpenChange: (newOpen)=>{
|
|
2638
|
+
setOpen(newOpen);
|
|
2639
|
+
},
|
|
2640
|
+
delay: 100,
|
|
2641
|
+
children: [
|
|
2642
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_popover_cdb87929__.Popover.Trigger, {
|
|
2643
|
+
render: children,
|
|
2644
|
+
ref: triggerRef
|
|
2645
|
+
}),
|
|
2646
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_popover_cdb87929__.Popover.Portal, {
|
|
2647
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_popover_cdb87929__.Popover.Positioner, {
|
|
2648
|
+
className: cls("popup-panel-root"),
|
|
2649
|
+
side: headlessUIPlacement.placement,
|
|
2650
|
+
align: headlessUIPlacement.align,
|
|
2651
|
+
sideOffset: 4,
|
|
2652
|
+
anchor: anchor,
|
|
2653
|
+
style: {
|
|
2654
|
+
"--size-width": size ? constants_PopupPanelSize[size] : void 0
|
|
2655
|
+
},
|
|
2656
|
+
ref: callbackRef,
|
|
2657
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_popover_cdb87929__.Popover.Popup, {
|
|
2658
|
+
className: clsx(cls("popup-panel"), antdCssVarClassname, className),
|
|
2659
|
+
...getRootProps(),
|
|
2660
|
+
...resizing ? {
|
|
2661
|
+
"data-resizing": true
|
|
2662
|
+
} : {},
|
|
2663
|
+
children: [
|
|
2664
|
+
title && renderTitle(),
|
|
2665
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2666
|
+
className: cls("popup-panel-content"),
|
|
2667
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2668
|
+
className: cls("popup-panel-content-inner"),
|
|
2669
|
+
children: content
|
|
2670
|
+
})
|
|
2671
|
+
}),
|
|
2672
|
+
footer && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2673
|
+
className: cls("popup-panel-footer"),
|
|
2674
|
+
children: "function" == typeof footer ? footer({
|
|
2675
|
+
close: ()=>setOpen(false)
|
|
2676
|
+
}) : footer
|
|
2677
|
+
}),
|
|
2678
|
+
resizable && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
|
|
2679
|
+
children: [
|
|
2680
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2681
|
+
className: cls("resize-handle-top"),
|
|
2682
|
+
...getHandleProps({
|
|
2683
|
+
reverse: true,
|
|
2684
|
+
lockHorizontal: true,
|
|
2685
|
+
onResize: (values)=>onReverseHandleChangeVertical(rootRef, values)
|
|
2686
|
+
})
|
|
2687
|
+
}),
|
|
2688
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2689
|
+
className: cls("resize-handle-bottom"),
|
|
2690
|
+
...getHandleProps({
|
|
2691
|
+
lockHorizontal: true
|
|
2692
|
+
})
|
|
2693
|
+
}),
|
|
2694
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2695
|
+
className: cls("resize-handle-left"),
|
|
2696
|
+
...getHandleProps({
|
|
2697
|
+
reverse: true,
|
|
2698
|
+
lockVertical: true,
|
|
2699
|
+
onResize: (values)=>onReverseHandleChangeHorizontal(rootRef, values)
|
|
2700
|
+
})
|
|
2701
|
+
}),
|
|
2702
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2703
|
+
className: cls("resize-handle-right"),
|
|
2704
|
+
...getHandleProps({
|
|
2705
|
+
lockVertical: true
|
|
2706
|
+
})
|
|
2707
|
+
})
|
|
2708
|
+
]
|
|
2709
|
+
})
|
|
2710
|
+
]
|
|
2711
|
+
})
|
|
2712
|
+
})
|
|
2713
|
+
})
|
|
2714
|
+
]
|
|
2715
|
+
});
|
|
2716
|
+
};
|
|
2271
2717
|
const MainInputInner = (props, ref)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Input, {
|
|
2272
2718
|
ref: ref,
|
|
2273
2719
|
...props
|
|
@@ -2341,17 +2787,30 @@ const Radio = Object.assign(ForwardedRadio, {
|
|
|
2341
2787
|
Group: RadioGroup,
|
|
2342
2788
|
Button: RadioButton
|
|
2343
2789
|
});
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2790
|
+
"use client";
|
|
2791
|
+
const DSRootContext = __WEBPACK_EXTERNAL_MODULE_react__["default"].createContext({
|
|
2792
|
+
theme: "light"
|
|
2793
|
+
});
|
|
2794
|
+
const DSRootContextProvider = DSRootContext.Provider;
|
|
2795
|
+
const useDS = ()=>__WEBPACK_EXTERNAL_MODULE_react__["default"].useContext(DSRootContext);
|
|
2796
|
+
"use client";
|
|
2797
|
+
const DSRoot = ({ className, appendClassesTo = "html", children, theme, ...props })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(DSRootContextProvider, {
|
|
2798
|
+
value: {
|
|
2799
|
+
theme: theme
|
|
2800
|
+
},
|
|
2801
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ThemeProvider, {
|
|
2802
|
+
theme: theme,
|
|
2803
|
+
...props,
|
|
2804
|
+
appendClassesTo: appendClassesTo,
|
|
2805
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd_es_app_App_698582f4__["default"], {
|
|
2806
|
+
className: className,
|
|
2807
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Toast.Provider, {
|
|
2808
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(Modal_Modal.Provider, {
|
|
2809
|
+
children: [
|
|
2810
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Toast.List, {}),
|
|
2811
|
+
children
|
|
2812
|
+
]
|
|
2813
|
+
})
|
|
2355
2814
|
})
|
|
2356
2815
|
})
|
|
2357
2816
|
})
|
|
@@ -2367,6 +2826,498 @@ const antd_useModal = ()=>{
|
|
|
2367
2826
|
const { modal } = (0, __WEBPACK_EXTERNAL_MODULE_antd_es_app_useApp_90d95086__["default"])();
|
|
2368
2827
|
return modal;
|
|
2369
2828
|
};
|
|
2829
|
+
const rawChartColorTokens = {
|
|
2830
|
+
colorChartsRed300: {
|
|
2831
|
+
light: "#ea7158",
|
|
2832
|
+
dark: "#d63f38"
|
|
2833
|
+
},
|
|
2834
|
+
colorChartsRed400: {
|
|
2835
|
+
light: "#dc5032",
|
|
2836
|
+
dark: "#ed5958"
|
|
2837
|
+
},
|
|
2838
|
+
colorChartsRed500: {
|
|
2839
|
+
light: "#d13313",
|
|
2840
|
+
dark: "#fe6e73"
|
|
2841
|
+
},
|
|
2842
|
+
colorChartsRed600: {
|
|
2843
|
+
light: "#ba2e0f",
|
|
2844
|
+
dark: "#ff8a8a"
|
|
2845
|
+
},
|
|
2846
|
+
colorChartsRed700: {
|
|
2847
|
+
light: "#a82a0c",
|
|
2848
|
+
dark: "#ffa09e"
|
|
2849
|
+
},
|
|
2850
|
+
colorChartsRed800: {
|
|
2851
|
+
light: "#972709",
|
|
2852
|
+
dark: "#ffb3b0"
|
|
2853
|
+
},
|
|
2854
|
+
colorChartsRed900: {
|
|
2855
|
+
light: "#892407",
|
|
2856
|
+
dark: "#ffc4c0"
|
|
2857
|
+
},
|
|
2858
|
+
colorChartsRed1000: {
|
|
2859
|
+
light: "#7d2105",
|
|
2860
|
+
dark: "#ffd2cf"
|
|
2861
|
+
},
|
|
2862
|
+
colorChartsRed1100: {
|
|
2863
|
+
light: "#721e03",
|
|
2864
|
+
dark: "#ffe0dd"
|
|
2865
|
+
},
|
|
2866
|
+
colorChartsRed1200: {
|
|
2867
|
+
light: "#671c00",
|
|
2868
|
+
dark: "#ffecea"
|
|
2869
|
+
},
|
|
2870
|
+
colorChartsOrange300: {
|
|
2871
|
+
light: "#e07941",
|
|
2872
|
+
dark: "#c55305"
|
|
2873
|
+
},
|
|
2874
|
+
colorChartsOrange400: {
|
|
2875
|
+
light: "#cc5f21",
|
|
2876
|
+
dark: "#de6923"
|
|
2877
|
+
},
|
|
2878
|
+
colorChartsOrange500: {
|
|
2879
|
+
light: "#bc4d01",
|
|
2880
|
+
dark: "#f27c36"
|
|
2881
|
+
},
|
|
2882
|
+
colorChartsOrange600: {
|
|
2883
|
+
light: "#a84401",
|
|
2884
|
+
dark: "#f89256"
|
|
2885
|
+
},
|
|
2886
|
+
colorChartsOrange700: {
|
|
2887
|
+
light: "#983c02",
|
|
2888
|
+
dark: "#fca572"
|
|
2889
|
+
},
|
|
2890
|
+
colorChartsOrange800: {
|
|
2891
|
+
light: "#8a3603",
|
|
2892
|
+
dark: "#ffb68b"
|
|
2893
|
+
},
|
|
2894
|
+
colorChartsOrange900: {
|
|
2895
|
+
light: "#7e3103",
|
|
2896
|
+
dark: "#ffc6a4"
|
|
2897
|
+
},
|
|
2898
|
+
colorChartsOrange1000: {
|
|
2899
|
+
light: "#732c02",
|
|
2900
|
+
dark: "#ffd4bb"
|
|
2901
|
+
},
|
|
2902
|
+
colorChartsOrange1100: {
|
|
2903
|
+
light: "#692801",
|
|
2904
|
+
dark: "#ffe1cf"
|
|
2905
|
+
},
|
|
2906
|
+
colorChartsOrange1200: {
|
|
2907
|
+
light: "#602400",
|
|
2908
|
+
dark: "#ffede2"
|
|
2909
|
+
},
|
|
2910
|
+
colorChartsYellow300: {
|
|
2911
|
+
light: "#b2911c",
|
|
2912
|
+
dark: "#977001"
|
|
2913
|
+
},
|
|
2914
|
+
colorChartsYellow400: {
|
|
2915
|
+
light: "#9c7b0b",
|
|
2916
|
+
dark: "#b08400"
|
|
2917
|
+
},
|
|
2918
|
+
colorChartsYellow500: {
|
|
2919
|
+
light: "#8a6b05",
|
|
2920
|
+
dark: "#c59600"
|
|
2921
|
+
},
|
|
2922
|
+
colorChartsYellow600: {
|
|
2923
|
+
light: "#7b5f04",
|
|
2924
|
+
dark: "#d3a61c"
|
|
2925
|
+
},
|
|
2926
|
+
colorChartsYellow700: {
|
|
2927
|
+
light: "#6f5504",
|
|
2928
|
+
dark: "#dfb52c"
|
|
2929
|
+
},
|
|
2930
|
+
colorChartsYellow800: {
|
|
2931
|
+
light: "#654d03",
|
|
2932
|
+
dark: "#eac33a"
|
|
2933
|
+
},
|
|
2934
|
+
colorChartsYellow900: {
|
|
2935
|
+
light: "#5d4503",
|
|
2936
|
+
dark: "#f1cf65"
|
|
2937
|
+
},
|
|
2938
|
+
colorChartsYellow1000: {
|
|
2939
|
+
light: "#553f03",
|
|
2940
|
+
dark: "#f7db8a"
|
|
2941
|
+
},
|
|
2942
|
+
colorChartsYellow1100: {
|
|
2943
|
+
light: "#4d3901",
|
|
2944
|
+
dark: "#fce5a8"
|
|
2945
|
+
},
|
|
2946
|
+
colorChartsYellow1200: {
|
|
2947
|
+
light: "#483300",
|
|
2948
|
+
dark: "#ffefc9"
|
|
2949
|
+
},
|
|
2950
|
+
colorChartsGreen300: {
|
|
2951
|
+
light: "#67a353",
|
|
2952
|
+
dark: "#48851a"
|
|
2953
|
+
},
|
|
2954
|
+
colorChartsGreen400: {
|
|
2955
|
+
light: "#41902c",
|
|
2956
|
+
dark: "#5a9b29"
|
|
2957
|
+
},
|
|
2958
|
+
colorChartsGreen500: {
|
|
2959
|
+
light: "#1f8104",
|
|
2960
|
+
dark: "#69ae34"
|
|
2961
|
+
},
|
|
2962
|
+
colorChartsGreen600: {
|
|
2963
|
+
light: "#1a7302",
|
|
2964
|
+
dark: "#7dbd4c"
|
|
2965
|
+
},
|
|
2966
|
+
colorChartsGreen700: {
|
|
2967
|
+
light: "#176702",
|
|
2968
|
+
dark: "#8fca61"
|
|
2969
|
+
},
|
|
2970
|
+
colorChartsGreen800: {
|
|
2971
|
+
light: "#145d02",
|
|
2972
|
+
dark: "#9fd673"
|
|
2973
|
+
},
|
|
2974
|
+
colorChartsGreen900: {
|
|
2975
|
+
light: "#125502",
|
|
2976
|
+
dark: "#b2df8d"
|
|
2977
|
+
},
|
|
2978
|
+
colorChartsGreen1000: {
|
|
2979
|
+
light: "#104d01",
|
|
2980
|
+
dark: "#c5e7a8"
|
|
2981
|
+
},
|
|
2982
|
+
colorChartsGreen1100: {
|
|
2983
|
+
light: "#0f4601",
|
|
2984
|
+
dark: "#d5efbe"
|
|
2985
|
+
},
|
|
2986
|
+
colorChartsGreen1200: {
|
|
2987
|
+
light: "#0d4000",
|
|
2988
|
+
dark: "#e4f7d5"
|
|
2989
|
+
},
|
|
2990
|
+
colorChartsTeal300: {
|
|
2991
|
+
light: "#2ea597",
|
|
2992
|
+
dark: "#018977"
|
|
2993
|
+
},
|
|
2994
|
+
colorChartsTeal400: {
|
|
2995
|
+
light: "#1c8e81",
|
|
2996
|
+
dark: "#009d89"
|
|
2997
|
+
},
|
|
2998
|
+
colorChartsTeal500: {
|
|
2999
|
+
light: "#0d7d70",
|
|
3000
|
+
dark: "#00b09b"
|
|
3001
|
+
},
|
|
3002
|
+
colorChartsTeal600: {
|
|
3003
|
+
light: "#096f64",
|
|
3004
|
+
dark: "#40bfa9"
|
|
3005
|
+
},
|
|
3006
|
+
colorChartsTeal700: {
|
|
3007
|
+
light: "#06645a",
|
|
3008
|
+
dark: "#5fccb7"
|
|
3009
|
+
},
|
|
3010
|
+
colorChartsTeal800: {
|
|
3011
|
+
light: "#045b52",
|
|
3012
|
+
dark: "#77d7c3"
|
|
3013
|
+
},
|
|
3014
|
+
colorChartsTeal900: {
|
|
3015
|
+
light: "#03524a",
|
|
3016
|
+
dark: "#94e0d0"
|
|
3017
|
+
},
|
|
3018
|
+
colorChartsTeal1000: {
|
|
3019
|
+
light: "#014b44",
|
|
3020
|
+
dark: "#ace9db"
|
|
3021
|
+
},
|
|
3022
|
+
colorChartsTeal1100: {
|
|
3023
|
+
light: "#01443e",
|
|
3024
|
+
dark: "#c2f0e6"
|
|
3025
|
+
},
|
|
3026
|
+
colorChartsTeal1200: {
|
|
3027
|
+
light: "#003e38",
|
|
3028
|
+
dark: "#d7f7f0"
|
|
3029
|
+
},
|
|
3030
|
+
colorChartsBlue1300: {
|
|
3031
|
+
light: "#529ccb",
|
|
3032
|
+
dark: "#00819c"
|
|
3033
|
+
},
|
|
3034
|
+
colorChartsBlue1400: {
|
|
3035
|
+
light: "#3184c2",
|
|
3036
|
+
dark: "#0497ba"
|
|
3037
|
+
},
|
|
3038
|
+
colorChartsBlue1500: {
|
|
3039
|
+
light: "#0273bb",
|
|
3040
|
+
dark: "#08aad2"
|
|
3041
|
+
},
|
|
3042
|
+
colorChartsBlue1600: {
|
|
3043
|
+
light: "#0166ab",
|
|
3044
|
+
dark: "#44b9dd"
|
|
3045
|
+
},
|
|
3046
|
+
colorChartsBlue1700: {
|
|
3047
|
+
light: "#015b9d",
|
|
3048
|
+
dark: "#63c6e7"
|
|
3049
|
+
},
|
|
3050
|
+
colorChartsBlue1800: {
|
|
3051
|
+
light: "#015292",
|
|
3052
|
+
dark: "#79d2f0"
|
|
3053
|
+
},
|
|
3054
|
+
colorChartsBlue1900: {
|
|
3055
|
+
light: "#014a87",
|
|
3056
|
+
dark: "#98dcf5"
|
|
3057
|
+
},
|
|
3058
|
+
colorChartsBlue11000: {
|
|
3059
|
+
light: "#01437d",
|
|
3060
|
+
dark: "#b3e4f8"
|
|
3061
|
+
},
|
|
3062
|
+
colorChartsBlue11100: {
|
|
3063
|
+
light: "#003c75",
|
|
3064
|
+
dark: "#caedfc"
|
|
3065
|
+
},
|
|
3066
|
+
colorChartsBlue11200: {
|
|
3067
|
+
light: "#00366d",
|
|
3068
|
+
dark: "#ddf4ff"
|
|
3069
|
+
},
|
|
3070
|
+
colorChartsBlue2300: {
|
|
3071
|
+
light: "#688ae8",
|
|
3072
|
+
dark: "#486de8"
|
|
3073
|
+
},
|
|
3074
|
+
colorChartsBlue2400: {
|
|
3075
|
+
light: "#5978e3",
|
|
3076
|
+
dark: "#6384f5"
|
|
3077
|
+
},
|
|
3078
|
+
colorChartsBlue2500: {
|
|
3079
|
+
light: "#4066df",
|
|
3080
|
+
dark: "#7698fe"
|
|
3081
|
+
},
|
|
3082
|
+
colorChartsBlue2600: {
|
|
3083
|
+
light: "#3759ce",
|
|
3084
|
+
dark: "#8ea9ff"
|
|
3085
|
+
},
|
|
3086
|
+
colorChartsBlue2700: {
|
|
3087
|
+
light: "#314fbf",
|
|
3088
|
+
dark: "#a2b8ff"
|
|
3089
|
+
},
|
|
3090
|
+
colorChartsBlue2800: {
|
|
3091
|
+
light: "#2c46b1",
|
|
3092
|
+
dark: "#b1c5ff"
|
|
3093
|
+
},
|
|
3094
|
+
colorChartsBlue2900: {
|
|
3095
|
+
light: "#273ea5",
|
|
3096
|
+
dark: "#c3d1ff"
|
|
3097
|
+
},
|
|
3098
|
+
colorChartsBlue21000: {
|
|
3099
|
+
light: "#23379b",
|
|
3100
|
+
dark: "#d2dcff"
|
|
3101
|
+
},
|
|
3102
|
+
colorChartsBlue21100: {
|
|
3103
|
+
light: "#1f3191",
|
|
3104
|
+
dark: "#dfe6ff"
|
|
3105
|
+
},
|
|
3106
|
+
colorChartsBlue21200: {
|
|
3107
|
+
light: "#1b2b88",
|
|
3108
|
+
dark: "#ecf0ff"
|
|
3109
|
+
},
|
|
3110
|
+
colorChartsPurple300: {
|
|
3111
|
+
light: "#a783e1",
|
|
3112
|
+
dark: "#8d59de"
|
|
3113
|
+
},
|
|
3114
|
+
colorChartsPurple400: {
|
|
3115
|
+
light: "#9469d6",
|
|
3116
|
+
dark: "#a173ea"
|
|
3117
|
+
},
|
|
3118
|
+
colorChartsPurple500: {
|
|
3119
|
+
light: "#8456ce",
|
|
3120
|
+
dark: "#b088f5"
|
|
3121
|
+
},
|
|
3122
|
+
colorChartsPurple600: {
|
|
3123
|
+
light: "#7749bf",
|
|
3124
|
+
dark: "#bf9bf9"
|
|
3125
|
+
},
|
|
3126
|
+
colorChartsPurple700: {
|
|
3127
|
+
light: "#6b40b2",
|
|
3128
|
+
dark: "#cbabfc"
|
|
3129
|
+
},
|
|
3130
|
+
colorChartsPurple800: {
|
|
3131
|
+
light: "#6237a7",
|
|
3132
|
+
dark: "#d6baff"
|
|
3133
|
+
},
|
|
3134
|
+
colorChartsPurple900: {
|
|
3135
|
+
light: "#59309d",
|
|
3136
|
+
dark: "#dfc8ff"
|
|
3137
|
+
},
|
|
3138
|
+
colorChartsPurple1000: {
|
|
3139
|
+
light: "#512994",
|
|
3140
|
+
dark: "#e8d5ff"
|
|
3141
|
+
},
|
|
3142
|
+
colorChartsPurple1100: {
|
|
3143
|
+
light: "#4a238b",
|
|
3144
|
+
dark: "#efe2ff"
|
|
3145
|
+
},
|
|
3146
|
+
colorChartsPurple1200: {
|
|
3147
|
+
light: "#431d84",
|
|
3148
|
+
dark: "#f5edff"
|
|
3149
|
+
},
|
|
3150
|
+
colorChartsPink300: {
|
|
3151
|
+
light: "#da7596",
|
|
3152
|
+
dark: "#c64a70"
|
|
3153
|
+
},
|
|
3154
|
+
colorChartsPink400: {
|
|
3155
|
+
light: "#ce567c",
|
|
3156
|
+
dark: "#d56889"
|
|
3157
|
+
},
|
|
3158
|
+
colorChartsPink500: {
|
|
3159
|
+
light: "#c33d69",
|
|
3160
|
+
dark: "#e07f9d"
|
|
3161
|
+
},
|
|
3162
|
+
colorChartsPink600: {
|
|
3163
|
+
light: "#b1325c",
|
|
3164
|
+
dark: "#eb92ad"
|
|
3165
|
+
},
|
|
3166
|
+
colorChartsPink700: {
|
|
3167
|
+
light: "#a32952",
|
|
3168
|
+
dark: "#f5a2bb"
|
|
3169
|
+
},
|
|
3170
|
+
colorChartsPink800: {
|
|
3171
|
+
light: "#962249",
|
|
3172
|
+
dark: "#ffb0c8"
|
|
3173
|
+
},
|
|
3174
|
+
colorChartsPink900: {
|
|
3175
|
+
light: "#8b1b42",
|
|
3176
|
+
dark: "#ffc1d4"
|
|
3177
|
+
},
|
|
3178
|
+
colorChartsPink1000: {
|
|
3179
|
+
light: "#81143b",
|
|
3180
|
+
dark: "#ffd1de"
|
|
3181
|
+
},
|
|
3182
|
+
colorChartsPink1100: {
|
|
3183
|
+
light: "#780d35",
|
|
3184
|
+
dark: "#ffdfe8"
|
|
3185
|
+
},
|
|
3186
|
+
colorChartsPink1200: {
|
|
3187
|
+
light: "#6f062f",
|
|
3188
|
+
dark: "#ffecf1"
|
|
3189
|
+
},
|
|
3190
|
+
colorChartsStatusCritical: {
|
|
3191
|
+
light: "{colorChartsRed1000}",
|
|
3192
|
+
dark: "{colorChartsRed300}"
|
|
3193
|
+
},
|
|
3194
|
+
colorChartsStatusHigh: {
|
|
3195
|
+
light: "{colorChartsRed600}",
|
|
3196
|
+
dark: "{colorChartsRed500}"
|
|
3197
|
+
},
|
|
3198
|
+
colorChartsStatusMedium: {
|
|
3199
|
+
light: "{colorChartsOrange400}",
|
|
3200
|
+
dark: "{colorChartsOrange600}"
|
|
3201
|
+
},
|
|
3202
|
+
colorChartsStatusLow: {
|
|
3203
|
+
light: "{colorChartsYellow300}",
|
|
3204
|
+
dark: "{colorChartsYellow700}"
|
|
3205
|
+
},
|
|
3206
|
+
colorChartsStatusPositive: {
|
|
3207
|
+
light: "{colorChartsGreen300}",
|
|
3208
|
+
dark: "{colorChartsGreen500}"
|
|
3209
|
+
},
|
|
3210
|
+
colorChartsStatusInfo: {
|
|
3211
|
+
light: "{colorChartsBlue1400}",
|
|
3212
|
+
dark: "{colorChartsBlue1500}"
|
|
3213
|
+
},
|
|
3214
|
+
colorChartsStatusNeutral: antdColorTokens.colorTextSecondary,
|
|
3215
|
+
colorChartsThresholdNegative: antdColorTokens.colorError,
|
|
3216
|
+
colorChartsThresholdPositive: antdColorTokens.colorSuccess,
|
|
3217
|
+
colorChartsThresholdInfo: antdColorTokens.colorInfo,
|
|
3218
|
+
colorChartsThresholdNeutral: antdColorTokens.colorTextTertiary,
|
|
3219
|
+
colorChartsLineGrid: {
|
|
3220
|
+
light: "#DADADC",
|
|
3221
|
+
dark: "#434347"
|
|
3222
|
+
},
|
|
3223
|
+
colorChartsLineTick: "{colorChartsLineGrid}",
|
|
3224
|
+
colorChartsLineAxis: {
|
|
3225
|
+
light: "#C8C8CB",
|
|
3226
|
+
dark: "#73737A"
|
|
3227
|
+
},
|
|
3228
|
+
colorChartsLabelAxis: {
|
|
3229
|
+
light: "#7C7C83",
|
|
3230
|
+
dark: "#898990"
|
|
3231
|
+
},
|
|
3232
|
+
colorChartsPaletteCategorical1: "{colorChartsBlue2300}",
|
|
3233
|
+
colorChartsPaletteCategorical2: "{colorChartsPink500}",
|
|
3234
|
+
colorChartsPaletteCategorical3: "{colorChartsTeal300}",
|
|
3235
|
+
colorChartsPaletteCategorical4: "{colorChartsPurple500}",
|
|
3236
|
+
colorChartsPaletteCategorical5: "{colorChartsOrange300}",
|
|
3237
|
+
colorChartsPaletteCategorical6: "{colorChartsBlue2600}",
|
|
3238
|
+
colorChartsPaletteCategorical7: "{colorChartsPink800}",
|
|
3239
|
+
colorChartsPaletteCategorical8: "{colorChartsTeal600}",
|
|
3240
|
+
colorChartsPaletteCategorical9: "{colorChartsPurple800}",
|
|
3241
|
+
colorChartsPaletteCategorical10: "{colorChartsOrange600}",
|
|
3242
|
+
colorChartsPaletteCategorical11: "{colorChartsBlue2900}",
|
|
3243
|
+
colorChartsPaletteCategorical12: "{colorChartsPink1100}",
|
|
3244
|
+
colorChartsPaletteCategorical13: "{colorChartsTeal900}",
|
|
3245
|
+
colorChartsPaletteCategorical14: "{colorChartsPurple1100}",
|
|
3246
|
+
colorChartsPaletteCategorical15: "{colorChartsOrange900}",
|
|
3247
|
+
colorChartsPaletteCategorical16: "{colorChartsBlue21200}",
|
|
3248
|
+
colorChartsPaletteCategorical17: "{colorChartsPink400}",
|
|
3249
|
+
colorChartsPaletteCategorical18: "{colorChartsTeal1200}",
|
|
3250
|
+
colorChartsPaletteCategorical19: "{colorChartsPurple400}",
|
|
3251
|
+
colorChartsPaletteCategorical20: "{colorChartsOrange1200}",
|
|
3252
|
+
colorChartsPaletteCategorical21: "{colorChartsBlue2500}",
|
|
3253
|
+
colorChartsPaletteCategorical22: "{colorChartsPink700}",
|
|
3254
|
+
colorChartsPaletteCategorical23: "{colorChartsTeal500}",
|
|
3255
|
+
colorChartsPaletteCategorical24: "{colorChartsPurple700}",
|
|
3256
|
+
colorChartsPaletteCategorical25: "{colorChartsOrange500}",
|
|
3257
|
+
colorChartsPaletteCategorical26: "{colorChartsBlue2800}",
|
|
3258
|
+
colorChartsPaletteCategorical27: "{colorChartsPink1000}",
|
|
3259
|
+
colorChartsPaletteCategorical28: "{colorChartsTeal800}",
|
|
3260
|
+
colorChartsPaletteCategorical29: "{colorChartsPurple1000}",
|
|
3261
|
+
colorChartsPaletteCategorical30: "{colorChartsOrange800}",
|
|
3262
|
+
colorChartsPaletteCategorical31: "{colorChartsBlue21100}",
|
|
3263
|
+
colorChartsPaletteCategorical32: "{colorChartsPink300}",
|
|
3264
|
+
colorChartsPaletteCategorical33: "{colorChartsTeal1100}",
|
|
3265
|
+
colorChartsPaletteCategorical34: "{colorChartsPurple300}",
|
|
3266
|
+
colorChartsPaletteCategorical35: "{colorChartsOrange1100}",
|
|
3267
|
+
colorChartsPaletteCategorical36: "{colorChartsBlue2400}",
|
|
3268
|
+
colorChartsPaletteCategorical37: "{colorChartsPink600}",
|
|
3269
|
+
colorChartsPaletteCategorical38: "{colorChartsTeal400}",
|
|
3270
|
+
colorChartsPaletteCategorical39: "{colorChartsPurple600}",
|
|
3271
|
+
colorChartsPaletteCategorical40: "{colorChartsOrange400}",
|
|
3272
|
+
colorChartsPaletteCategorical41: "{colorChartsBlue2700}",
|
|
3273
|
+
colorChartsPaletteCategorical42: "{colorChartsPink900}",
|
|
3274
|
+
colorChartsPaletteCategorical43: "{colorChartsTeal700}",
|
|
3275
|
+
colorChartsPaletteCategorical44: "{colorChartsPurple900}",
|
|
3276
|
+
colorChartsPaletteCategorical45: "{colorChartsOrange700}",
|
|
3277
|
+
colorChartsPaletteCategorical46: "{colorChartsBlue21000}",
|
|
3278
|
+
colorChartsPaletteCategorical47: "{colorChartsPink1200}",
|
|
3279
|
+
colorChartsPaletteCategorical48: "{colorChartsTeal1000}",
|
|
3280
|
+
colorChartsPaletteCategorical49: "{colorChartsPurple1200}",
|
|
3281
|
+
colorChartsPaletteCategorical50: "{colorChartsOrange1000}"
|
|
3282
|
+
};
|
|
3283
|
+
const chartColorTokens = resolveColorTokens(rawChartColorTokens);
|
|
3284
|
+
const categoricalChartColorKeys = Object.keys(chartColorTokens).filter((key)=>key.startsWith("colorChartsPaletteCategorical"));
|
|
3285
|
+
const categoricalChartColorTokens = categoricalChartColorKeys.reduce((acc, key)=>{
|
|
3286
|
+
acc[key] = chartColorTokens[key];
|
|
3287
|
+
return acc;
|
|
3288
|
+
}, {});
|
|
3289
|
+
const categoricalChartsColors = categoricalChartColorKeys.map((key)=>chartColorTokens[key]);
|
|
3290
|
+
const useCharts = ()=>{
|
|
3291
|
+
const { theme } = useDS();
|
|
3292
|
+
const themedChartColorTokens = getTokensByTheme(chartColorTokens, theme);
|
|
3293
|
+
const axisLineColor = themedChartColorTokens["colorChartsLineAxis"];
|
|
3294
|
+
const splitLineColor = themedChartColorTokens["colorChartsLineGrid"];
|
|
3295
|
+
const axisLabelColor = themedChartColorTokens["colorChartsLabelAxis"];
|
|
3296
|
+
const categoricalColors = getColorsByTheme(categoricalChartColorTokens, theme);
|
|
3297
|
+
const echartsAxisConfig = {
|
|
3298
|
+
axisLine: {
|
|
3299
|
+
lineStyle: {
|
|
3300
|
+
color: axisLineColor
|
|
3301
|
+
}
|
|
3302
|
+
},
|
|
3303
|
+
splitLine: {
|
|
3304
|
+
lineStyle: {
|
|
3305
|
+
color: splitLineColor
|
|
3306
|
+
}
|
|
3307
|
+
},
|
|
3308
|
+
axisLabel: {
|
|
3309
|
+
color: axisLabelColor,
|
|
3310
|
+
fontFamily: "InterVariable"
|
|
3311
|
+
}
|
|
3312
|
+
};
|
|
3313
|
+
return {
|
|
3314
|
+
axisLineColor,
|
|
3315
|
+
splitLineColor,
|
|
3316
|
+
axisLabelColor,
|
|
3317
|
+
categoricalColors,
|
|
3318
|
+
echartsAxisConfig
|
|
3319
|
+
};
|
|
3320
|
+
};
|
|
2370
3321
|
var __webpack_exports__Affix = __WEBPACK_EXTERNAL_MODULE_antd__.Affix;
|
|
2371
3322
|
var __webpack_exports__Alert = __WEBPACK_EXTERNAL_MODULE_antd__.Alert;
|
|
2372
3323
|
var __webpack_exports__Anchor = __WEBPACK_EXTERNAL_MODULE_antd__.Anchor;
|
|
@@ -2421,4 +3372,4 @@ var __webpack_exports__useApp = __WEBPACK_EXTERNAL_MODULE_antd_es_app_useApp_90d
|
|
|
2421
3372
|
var __webpack_exports__useForm = __WEBPACK_EXTERNAL_MODULE_antd_es_form_Form_38f624ac__.useForm;
|
|
2422
3373
|
var __webpack_exports__useWatch = __WEBPACK_EXTERNAL_MODULE_antd_es_form_Form_38f624ac__.useWatch;
|
|
2423
3374
|
var __webpack_exports__version = __WEBPACK_EXTERNAL_MODULE_antd__.version;
|
|
2424
|
-
export { Badge, Breadcrumb, Button, Checkbox, CodeBlock, DSRoot, DefaultUpload, DropdownMenu, Empty, EmptyIcon, Field, Form, IconButton, Input, Modal_Modal as Modal, Popover, Radio, ScrollArea, Segmented, Select, Slider, Spin, Split, Splitter, Switch, Table, component_Tag as Tag, ThemeProvider, Toast, Tooltip, Tour, Transition, Tree, Truncate, Upload, VerticalCollapsiblePanel, WithAntdTokens, clsx, cn, cx, darkTheme, getUniqueKeysFromOriginals, isTracebackError, lightTheme, processTreeData, reactNodeToString, function_toast as toast, toastManager, useAnimationsFinished, useAntdCssVarClassname, useBreakpoint, useCls, useControlledState, useEnhancedEffect, useEventCallback, useGetPrefixCls, useLatestRef, useMessage, antd_useModal as useModal, useToken, useUniqueKeysTree, useUploadItemRender, __webpack_exports__Affix as Affix, __webpack_exports__Alert as Alert, __webpack_exports__Anchor as Anchor, __webpack_exports__App as App, __webpack_exports__AutoComplete as AutoComplete, __webpack_exports__Avatar as Avatar, __webpack_exports__BackTop as BackTop, __webpack_exports__Calendar as Calendar, __webpack_exports__Card as Card, __webpack_exports__Carousel as Carousel, __webpack_exports__Cascader as Cascader, __webpack_exports__Col as Col, __webpack_exports__Collapse as Collapse, __webpack_exports__ColorPicker as ColorPicker, __webpack_exports__ConfigProvider as ConfigProvider, __webpack_exports__DatePicker as DatePicker, __webpack_exports__Descriptions as Descriptions, __webpack_exports__Divider as Divider, __webpack_exports__Drawer as Drawer, __webpack_exports__Dropdown as Dropdown, __webpack_exports__Flex as Flex, __webpack_exports__FloatButton as FloatButton, __webpack_exports__Grid as Grid, __webpack_exports__InputNumber as InputNumber, __webpack_exports__Layout as Layout, __webpack_exports__List as List, __webpack_exports__Mentions as Mentions, __webpack_exports__Menu as Menu, __webpack_exports__Pagination as Pagination, __webpack_exports__Popconfirm as Popconfirm, __webpack_exports__Progress as Progress, __webpack_exports__QRCode as QRCode, __webpack_exports__Rate as Rate, __webpack_exports__Result as Result, __webpack_exports__Row as Row, __webpack_exports__Skeleton as Skeleton, __webpack_exports__Space as Space, __webpack_exports__Statistic as Statistic, __webpack_exports__Steps as Steps, __webpack_exports__Tabs as Tabs, __webpack_exports__TimePicker as TimePicker, __webpack_exports__Timeline as Timeline, __webpack_exports__Transfer as Transfer, __webpack_exports__TreeSelect as TreeSelect, __webpack_exports__Typography as Typography, __webpack_exports__Watermark as Watermark, __webpack_exports__message as message, __webpack_exports__notification as notification, __webpack_exports__theme as theme, __webpack_exports__unstableSetRender as unstableSetRender, __webpack_exports__useApp as useApp, __webpack_exports__useForm as useForm, __webpack_exports__useWatch as useWatch, __webpack_exports__version as version };
|
|
3375
|
+
export { Badge, Breadcrumb, Button, Checkbox, CodeBlock, DSRoot, DefaultUpload, DropdownMenu, Empty, EmptyIcon, Field, Form, IconButton, Input, Modal_Modal as Modal, Popover, PopupPanel, Radio, ScrollArea, Segmented, Select, Slider, Spin, Split, Splitter, Switch, Table, component_Tag as Tag, ThemeProvider, Toast, Tooltip, Tour, Transition, Tree, Truncate, Upload, VerticalCollapsiblePanel, WithAntdTokens, antdColorTokens, categoricalChartColorKeys, categoricalChartColorTokens, categoricalChartsColors, chartColorTokens, clsx, cn, cx, darkTheme, getUniqueKeysFromOriginals, isTracebackError, lightTheme, parseAntdPlacement, processTreeData, rawChartColorTokens, reactNodeToString, function_toast as toast, toastManager, useAnimationsFinished, useAntdCssVarClassname, useBreakpoint, useCharts, useCls, useControlledState, useEnhancedEffect, useEventCallback, useGetPrefixCls, useLatestRef, useMessage, antd_useModal as useModal, useToken, useUniqueKeysTree, useUploadItemRender, __webpack_exports__Affix as Affix, __webpack_exports__Alert as Alert, __webpack_exports__Anchor as Anchor, __webpack_exports__App as App, __webpack_exports__AutoComplete as AutoComplete, __webpack_exports__Avatar as Avatar, __webpack_exports__BackTop as BackTop, __webpack_exports__Calendar as Calendar, __webpack_exports__Card as Card, __webpack_exports__Carousel as Carousel, __webpack_exports__Cascader as Cascader, __webpack_exports__Col as Col, __webpack_exports__Collapse as Collapse, __webpack_exports__ColorPicker as ColorPicker, __webpack_exports__ConfigProvider as ConfigProvider, __webpack_exports__DatePicker as DatePicker, __webpack_exports__Descriptions as Descriptions, __webpack_exports__Divider as Divider, __webpack_exports__Drawer as Drawer, __webpack_exports__Dropdown as Dropdown, __webpack_exports__Flex as Flex, __webpack_exports__FloatButton as FloatButton, __webpack_exports__Grid as Grid, __webpack_exports__InputNumber as InputNumber, __webpack_exports__Layout as Layout, __webpack_exports__List as List, __webpack_exports__Mentions as Mentions, __webpack_exports__Menu as Menu, __webpack_exports__Pagination as Pagination, __webpack_exports__Popconfirm as Popconfirm, __webpack_exports__Progress as Progress, __webpack_exports__QRCode as QRCode, __webpack_exports__Rate as Rate, __webpack_exports__Result as Result, __webpack_exports__Row as Row, __webpack_exports__Skeleton as Skeleton, __webpack_exports__Space as Space, __webpack_exports__Statistic as Statistic, __webpack_exports__Steps as Steps, __webpack_exports__Tabs as Tabs, __webpack_exports__TimePicker as TimePicker, __webpack_exports__Timeline as Timeline, __webpack_exports__Transfer as Transfer, __webpack_exports__TreeSelect as TreeSelect, __webpack_exports__Typography as Typography, __webpack_exports__Watermark as Watermark, __webpack_exports__message as message, __webpack_exports__notification as notification, __webpack_exports__theme as theme, __webpack_exports__unstableSetRender as unstableSetRender, __webpack_exports__useApp as useApp, __webpack_exports__useForm as useForm, __webpack_exports__useWatch as useWatch, __webpack_exports__version as version };
|