@bioturing/components 0.13.3 → 0.14.1
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 +127 -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 +1194 -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, dropdownRender, 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,37 @@ 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
|
+
const renderMenu = ()=>popupRender ? popupRender(menu) : dropdownRender ? dropdownRender(menu) : menu;
|
|
184
|
+
if (!enhancePositioner) return renderMenu();
|
|
185
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
|
|
186
|
+
children: [
|
|
187
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__.FloatingOverlay, {
|
|
188
|
+
lockScroll: true,
|
|
189
|
+
onClick: ()=>setOpen(false)
|
|
190
|
+
}),
|
|
191
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
192
|
+
ref: (node)=>{
|
|
193
|
+
if (!node) return;
|
|
194
|
+
const popupEl = node.closest(".ds-select-dropdown");
|
|
195
|
+
refs.setFloating(popupEl);
|
|
196
|
+
},
|
|
197
|
+
children: renderMenu()
|
|
198
|
+
})
|
|
199
|
+
]
|
|
200
|
+
});
|
|
201
|
+
},
|
|
82
202
|
...rest
|
|
83
203
|
});
|
|
84
204
|
};
|
|
@@ -87,23 +207,6 @@ const Select = Object.assign(MainSelect, {
|
|
|
87
207
|
Option: __WEBPACK_EXTERNAL_MODULE_antd_es_select_005d200f__["default"].Option,
|
|
88
208
|
OptGroup: __WEBPACK_EXTERNAL_MODULE_antd_es_select_005d200f__["default"].OptGroup
|
|
89
209
|
});
|
|
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
210
|
"use client";
|
|
108
211
|
const useGetPrefixCls = ()=>{
|
|
109
212
|
const { getPrefixCls } = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE_antd_es_config_provider_6a57beb3__["default"].ConfigContext);
|
|
@@ -120,6 +223,48 @@ const useCls = ()=>{
|
|
|
120
223
|
const { getPrefixCls } = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE_antd_es_config_provider_6a57beb3__["default"].ConfigContext);
|
|
121
224
|
return (...args)=>cx(...args).map((cls)=>getPrefixCls(cls)).join(" ");
|
|
122
225
|
};
|
|
226
|
+
function splitCamelCase(text) {
|
|
227
|
+
const result = [];
|
|
228
|
+
let currentWord = "";
|
|
229
|
+
for (const char of text)if (char >= "A" && char <= "Z") {
|
|
230
|
+
if (currentWord) result.push(currentWord);
|
|
231
|
+
currentWord = char.toLowerCase();
|
|
232
|
+
} else currentWord += char;
|
|
233
|
+
if (currentWord) result.push(currentWord);
|
|
234
|
+
return result.length > 0 ? result : [
|
|
235
|
+
text
|
|
236
|
+
];
|
|
237
|
+
}
|
|
238
|
+
const parseAntdPlacement = (placement = "bottomLeft")=>{
|
|
239
|
+
const [position1, position2] = splitCamelCase(placement);
|
|
240
|
+
let primaryPlacement;
|
|
241
|
+
let align = "center";
|
|
242
|
+
if ("top" === position1 || "bottom" === position1) {
|
|
243
|
+
primaryPlacement = position1;
|
|
244
|
+
if (position2) switch(position2){
|
|
245
|
+
case "left":
|
|
246
|
+
align = "start";
|
|
247
|
+
break;
|
|
248
|
+
case "right":
|
|
249
|
+
align = "end";
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
} else if ("left" === position1 || "right" === position1) {
|
|
253
|
+
primaryPlacement = position1;
|
|
254
|
+
if (position2) switch(position2){
|
|
255
|
+
case "top":
|
|
256
|
+
align = "start";
|
|
257
|
+
break;
|
|
258
|
+
case "bottom":
|
|
259
|
+
align = "end";
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
} else primaryPlacement = "bottom";
|
|
263
|
+
return {
|
|
264
|
+
placement: primaryPlacement,
|
|
265
|
+
align
|
|
266
|
+
};
|
|
267
|
+
};
|
|
123
268
|
"use client";
|
|
124
269
|
const IconButtonImpl = (props, ref)=>{
|
|
125
270
|
const { label, size = "medium", negativeMargin = true, children, className, tooltipProps = {}, as, href, target, rel, download, hrefLang, referrerPolicy, ...rest } = props;
|
|
@@ -185,14 +330,17 @@ var constants_ModalSize = /*#__PURE__*/ function(ModalSize) {
|
|
|
185
330
|
return ModalSize;
|
|
186
331
|
}({});
|
|
187
332
|
"use client";
|
|
188
|
-
const Modal = ({ open: externalOpen, closeIcon, children, size, footer, width, style, styles, classNames, okButtonProps, cancelButtonProps, loading, onOk, onCancel,
|
|
333
|
+
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
334
|
const defaultCloseIcon = void 0 === closeIcon ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__bioturing_assets_dd0c210d__.X, {
|
|
190
335
|
size: 16,
|
|
191
336
|
weight: "bold"
|
|
192
337
|
}) : closeIcon;
|
|
193
338
|
const defaultModalSize = "default" === type ? "medium" : "xsmall";
|
|
194
|
-
const
|
|
339
|
+
const size = sizeProp || defaultModalSize;
|
|
340
|
+
const modalWidth = width || constants_ModalSize[size];
|
|
341
|
+
const background = backgroundProp || (size && size in constants_ModalSize && parseInt(constants_ModalSize[size]) <= parseInt(constants_ModalSize.medium) ? "elevated" : "container");
|
|
195
342
|
const modalStyle = {
|
|
343
|
+
"--ds-modal-bg": `var(--ds-color-bg-${background})`,
|
|
196
344
|
...style,
|
|
197
345
|
..."fullscreen" === size ? {
|
|
198
346
|
top: 0,
|
|
@@ -209,7 +357,7 @@ const Modal = ({ open: externalOpen, closeIcon, children, size, footer, width, s
|
|
|
209
357
|
...null == styles ? void 0 : styles.body
|
|
210
358
|
}
|
|
211
359
|
};
|
|
212
|
-
const [
|
|
360
|
+
const [isContentOverflow, setIsContentOverflow] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
|
|
213
361
|
const cls = useCls();
|
|
214
362
|
const resizeObserverRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
|
|
215
363
|
const modalInnerRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((node)=>{
|
|
@@ -218,12 +366,12 @@ const Modal = ({ open: externalOpen, closeIcon, children, size, footer, width, s
|
|
|
218
366
|
if (!(modalBody instanceof HTMLElement)) return;
|
|
219
367
|
const resizeObserver = new ResizeObserver(()=>{
|
|
220
368
|
const hasOverflow = modalBody.scrollHeight > modalBody.clientHeight;
|
|
221
|
-
|
|
369
|
+
setIsContentOverflow(hasOverflow);
|
|
222
370
|
});
|
|
223
371
|
resizeObserverRef.current = resizeObserver;
|
|
224
372
|
resizeObserver.observe(modalBody);
|
|
225
373
|
const hasOverflow = modalBody.scrollHeight > modalBody.clientHeight;
|
|
226
|
-
|
|
374
|
+
setIsContentOverflow(hasOverflow);
|
|
227
375
|
}, [
|
|
228
376
|
cls
|
|
229
377
|
]);
|
|
@@ -299,7 +447,7 @@ const Modal = ({ open: externalOpen, closeIcon, children, size, footer, width, s
|
|
|
299
447
|
title: renderTitle(),
|
|
300
448
|
classNames: {
|
|
301
449
|
...classNames,
|
|
302
|
-
wrapper: cls("modal-wrap", "fullscreen" == size && "modal-fullscreen",
|
|
450
|
+
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
451
|
},
|
|
304
452
|
styles: modalStyles,
|
|
305
453
|
modalRender: (modal)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
@@ -559,7 +707,7 @@ const Empty = ({ image, size = "medium", className, ...rest })=>{
|
|
|
559
707
|
});
|
|
560
708
|
};
|
|
561
709
|
const Empty_component = Empty;
|
|
562
|
-
const InternalTable = ({ columns, locale, emptyDescription, loading, ...rest })=>{
|
|
710
|
+
const InternalTable = ({ columns, locale, emptyDescription, loading, scroll = {}, ...rest })=>{
|
|
563
711
|
const cls = useCls();
|
|
564
712
|
const modifiedColumns = columns ? columns.map((column)=>({
|
|
565
713
|
sortIcon: ({ sortOrder })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
@@ -613,7 +761,8 @@ const InternalTable = ({ columns, locale, emptyDescription, loading, ...rest })=
|
|
|
613
761
|
loading: spinProps,
|
|
614
762
|
locale: modifiedLocale,
|
|
615
763
|
scroll: {
|
|
616
|
-
x: "
|
|
764
|
+
x: "fit-content",
|
|
765
|
+
...scroll
|
|
617
766
|
},
|
|
618
767
|
...rest
|
|
619
768
|
});
|
|
@@ -648,134 +797,310 @@ const InternalTag = ({ className, active = false, color, style, closeIcon, closa
|
|
|
648
797
|
const component_Tag = Object.assign(InternalTag, {
|
|
649
798
|
CheckableTag: __WEBPACK_EXTERNAL_MODULE_antd_es_tag_1ccabaea__["default"].CheckableTag
|
|
650
799
|
});
|
|
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
|
-
|
|
800
|
+
const getTokensByTheme = (originTokens, theme)=>{
|
|
801
|
+
const tokens = {};
|
|
802
|
+
Object.entries(originTokens).forEach(([key, value])=>{
|
|
803
|
+
if (value && "object" == typeof value && "light" in value && "dark" in value) {
|
|
804
|
+
const tokenValue = value;
|
|
805
|
+
tokens[key] = tokenValue[theme];
|
|
806
|
+
} else if ("string" == typeof value) tokens[key] = value;
|
|
807
|
+
});
|
|
808
|
+
return tokens;
|
|
809
|
+
};
|
|
810
|
+
const getColorsByTheme = (colorsOrTokens, theme)=>{
|
|
811
|
+
if (Array.isArray(colorsOrTokens)) return colorsOrTokens.map((color)=>color[theme]);
|
|
812
|
+
return Object.values(getTokensByTheme(colorsOrTokens, theme));
|
|
813
|
+
};
|
|
814
|
+
function resolveColorTokens(colors) {
|
|
815
|
+
const resolved = {};
|
|
816
|
+
const raw = colors;
|
|
817
|
+
const resolve = (key)=>{
|
|
818
|
+
if (resolved[key]) return resolved[key];
|
|
819
|
+
const value = raw[key];
|
|
820
|
+
if (!value) return {
|
|
821
|
+
light: "",
|
|
822
|
+
dark: ""
|
|
823
|
+
};
|
|
824
|
+
if ("string" == typeof value) {
|
|
825
|
+
const match = value.match(/^\{(.+)\}$/);
|
|
826
|
+
if (!match) throw new Error(`Invalid reference token: ${String(key)}`);
|
|
827
|
+
const resolvedValue = resolve(match[1]);
|
|
828
|
+
resolved[key] = resolvedValue;
|
|
829
|
+
return resolvedValue;
|
|
830
|
+
}
|
|
831
|
+
const light = "string" == typeof value.light && /^\{.+\}$/.test(value.light) ? resolve(value.light.slice(1, -1)).light : value.light;
|
|
832
|
+
const dark = "string" == typeof value.dark && /^\{.+\}$/.test(value.dark) ? resolve(value.dark.slice(1, -1)).dark : value.dark;
|
|
833
|
+
resolved[key] = {
|
|
834
|
+
light,
|
|
835
|
+
dark
|
|
836
|
+
};
|
|
837
|
+
return resolved[key];
|
|
838
|
+
};
|
|
839
|
+
Object.keys(raw).forEach((key)=>{
|
|
840
|
+
resolve(key);
|
|
841
|
+
});
|
|
842
|
+
return Object.fromEntries(Object.entries(resolved).filter(([_, value])=>value && value.light && value.dark));
|
|
843
|
+
}
|
|
844
|
+
const antdColorTokens = {
|
|
845
|
+
colorText: {
|
|
846
|
+
light: "rgba(0, 0, 0, 0.88)",
|
|
847
|
+
dark: "rgba(255, 255, 255, 0.85)"
|
|
848
|
+
},
|
|
849
|
+
colorTextSecondary: {
|
|
850
|
+
light: "rgba(0, 0, 0, 0.65)",
|
|
851
|
+
dark: "rgba(255, 255, 255, 0.65)"
|
|
852
|
+
},
|
|
853
|
+
colorTextTertiary: {
|
|
854
|
+
light: "rgba(0, 0, 0, 0.45)",
|
|
855
|
+
dark: "rgba(255, 255, 255, 0.45)"
|
|
856
|
+
},
|
|
857
|
+
colorTextQuaternary: {
|
|
858
|
+
light: "rgba(0, 0, 0, 0.25)",
|
|
859
|
+
dark: "rgba(255, 255, 255, 0.25)"
|
|
860
|
+
},
|
|
861
|
+
colorPrimary: {
|
|
862
|
+
light: "#175CD3",
|
|
863
|
+
dark: "#2E90FA"
|
|
864
|
+
},
|
|
865
|
+
colorPrimaryBg: {
|
|
866
|
+
light: "#E9F2FF",
|
|
867
|
+
dark: "#152137"
|
|
868
|
+
},
|
|
869
|
+
colorPrimaryBgHover: {
|
|
870
|
+
light: "#D1E9FF",
|
|
871
|
+
dark: "#112545"
|
|
872
|
+
},
|
|
873
|
+
colorPrimaryBorder: {
|
|
874
|
+
light: "#84CAFF",
|
|
875
|
+
dark: "#1C3959"
|
|
876
|
+
},
|
|
877
|
+
colorPrimaryBorderHover: {
|
|
878
|
+
light: "#53B1FD",
|
|
879
|
+
dark: "#204C7C"
|
|
880
|
+
},
|
|
881
|
+
colorPrimaryHover: {
|
|
882
|
+
light: "#1570EF",
|
|
883
|
+
dark: "#50A0E8"
|
|
884
|
+
},
|
|
885
|
+
colorPrimaryActive: {
|
|
886
|
+
light: "#175CD3",
|
|
887
|
+
dark: "#2565AB"
|
|
888
|
+
},
|
|
889
|
+
colorPrimaryTextHover: {
|
|
890
|
+
light: "#1570EF",
|
|
891
|
+
dark: "#50A0E8"
|
|
892
|
+
},
|
|
893
|
+
colorPrimaryTextActive: {
|
|
894
|
+
light: "#175CD3",
|
|
895
|
+
dark: "#2565AB"
|
|
896
|
+
},
|
|
897
|
+
colorInfo: {
|
|
898
|
+
light: "#175CD3",
|
|
899
|
+
dark: "#2E90FA"
|
|
900
|
+
},
|
|
901
|
+
colorInfoBg: {
|
|
902
|
+
light: "#E9F2FF",
|
|
903
|
+
dark: "#152137"
|
|
904
|
+
},
|
|
905
|
+
colorInfoBgHover: {
|
|
906
|
+
light: "#D1E9FF",
|
|
907
|
+
dark: "#112545"
|
|
908
|
+
},
|
|
909
|
+
colorInfoBorder: {
|
|
910
|
+
light: "#84CAFF",
|
|
911
|
+
dark: "#1C3959"
|
|
912
|
+
},
|
|
913
|
+
colorInfoBorderHover: {
|
|
914
|
+
light: "#53B1FD",
|
|
915
|
+
dark: "#204C7C"
|
|
916
|
+
},
|
|
917
|
+
colorInfoHover: {
|
|
918
|
+
light: "#1570EF",
|
|
919
|
+
dark: "#50A0E8"
|
|
920
|
+
},
|
|
921
|
+
colorInfoActive: {
|
|
922
|
+
light: "#175CD3",
|
|
923
|
+
dark: "#2565AB"
|
|
924
|
+
},
|
|
925
|
+
colorInfoTextHover: {
|
|
926
|
+
light: "#1570EF",
|
|
927
|
+
dark: "#50A0E8"
|
|
928
|
+
},
|
|
929
|
+
colorInfoTextActive: {
|
|
930
|
+
light: "#175CD3",
|
|
931
|
+
dark: "#2565AB"
|
|
932
|
+
},
|
|
933
|
+
colorSuccess: {
|
|
934
|
+
light: "#4CB200",
|
|
935
|
+
dark: "#389E0D"
|
|
936
|
+
},
|
|
937
|
+
colorSuccessBg: {
|
|
938
|
+
light: "#F6FFF0",
|
|
939
|
+
dark: "#162100"
|
|
940
|
+
},
|
|
941
|
+
colorSuccessBgHover: {
|
|
942
|
+
light: "#D9F7BE",
|
|
943
|
+
dark: "#1D2B00"
|
|
944
|
+
},
|
|
945
|
+
colorSuccessBorder: {
|
|
946
|
+
light: "#B7EB8F",
|
|
947
|
+
dark: "#274916"
|
|
948
|
+
},
|
|
949
|
+
colorSuccessBorderHover: {
|
|
950
|
+
light: "#95DE64",
|
|
951
|
+
dark: "#306317"
|
|
952
|
+
},
|
|
953
|
+
colorSuccessHover: {
|
|
954
|
+
light: "#73D13D",
|
|
955
|
+
dark: "#52C41A"
|
|
956
|
+
},
|
|
957
|
+
colorSuccessActive: {
|
|
958
|
+
light: "#389E0D",
|
|
959
|
+
dark: "#237804"
|
|
960
|
+
},
|
|
961
|
+
colorSuccessTextHover: {
|
|
962
|
+
light: "#237804",
|
|
963
|
+
dark: "#52C41A"
|
|
964
|
+
},
|
|
965
|
+
colorSuccessTextActive: {
|
|
966
|
+
light: "#092B00",
|
|
967
|
+
dark: "#237804"
|
|
968
|
+
},
|
|
969
|
+
colorWarning: {
|
|
970
|
+
light: "#FA8C16",
|
|
971
|
+
dark: "#D48806"
|
|
972
|
+
},
|
|
973
|
+
colorWarningBg: {
|
|
974
|
+
light: "#FFF7E6",
|
|
975
|
+
dark: "#281800"
|
|
976
|
+
},
|
|
977
|
+
colorWarningBgHover: {
|
|
978
|
+
light: "#FFE7BA",
|
|
979
|
+
dark: "#3D2200"
|
|
980
|
+
},
|
|
981
|
+
colorWarningBorder: {
|
|
982
|
+
light: "#FFD591",
|
|
983
|
+
dark: "#443B16"
|
|
984
|
+
},
|
|
985
|
+
colorWarningBorderHover: {
|
|
986
|
+
light: "#FFC069",
|
|
987
|
+
dark: "#594E1A"
|
|
988
|
+
},
|
|
989
|
+
colorWarningHover: {
|
|
990
|
+
light: "#FFA940",
|
|
991
|
+
dark: "#E8B339"
|
|
992
|
+
},
|
|
993
|
+
colorWarningActive: {
|
|
994
|
+
light: "#D46B08",
|
|
995
|
+
dark: "#AA7714"
|
|
996
|
+
},
|
|
997
|
+
colorWarningTextHover: {
|
|
998
|
+
light: "#AD4E00",
|
|
999
|
+
dark: "#E8B339"
|
|
1000
|
+
},
|
|
1001
|
+
colorWarningTextActive: {
|
|
1002
|
+
light: "#873800",
|
|
1003
|
+
dark: "#AA7714"
|
|
1004
|
+
},
|
|
1005
|
+
colorError: {
|
|
1006
|
+
light: "#D92D20",
|
|
1007
|
+
dark: "#CF3D33"
|
|
1008
|
+
},
|
|
1009
|
+
colorErrorBg: {
|
|
1010
|
+
light: "#FEF3F2",
|
|
1011
|
+
dark: "#291414"
|
|
1012
|
+
},
|
|
1013
|
+
colorErrorBgHover: {
|
|
1014
|
+
light: "#FEE4E2",
|
|
1015
|
+
dark: "#411A18"
|
|
1016
|
+
},
|
|
1017
|
+
colorErrorBorder: {
|
|
1018
|
+
light: "#FDA29B",
|
|
1019
|
+
dark: "#562222"
|
|
1020
|
+
},
|
|
1021
|
+
colorErrorBorderHover: {
|
|
1022
|
+
light: "#F97066",
|
|
1023
|
+
dark: "#772A24"
|
|
1024
|
+
},
|
|
1025
|
+
colorErrorHover: {
|
|
1026
|
+
light: "#F04438",
|
|
1027
|
+
dark: "#E5695A"
|
|
1028
|
+
},
|
|
1029
|
+
colorErrorActive: {
|
|
1030
|
+
light: "#D92D20",
|
|
1031
|
+
dark: "#A3332B"
|
|
1032
|
+
},
|
|
1033
|
+
colorErrorTextHover: {
|
|
1034
|
+
light: "#F04438",
|
|
1035
|
+
dark: "#E5695A"
|
|
1036
|
+
},
|
|
1037
|
+
colorErrorTextActive: {
|
|
1038
|
+
light: "#D92D20",
|
|
1039
|
+
dark: "#A3332B"
|
|
1040
|
+
},
|
|
1041
|
+
colorFill: {
|
|
1042
|
+
light: "rgba(0, 0, 0, 0.15)",
|
|
1043
|
+
dark: "rgba(255, 255, 255, 0.15)"
|
|
1044
|
+
},
|
|
1045
|
+
colorFillSecondary: {
|
|
1046
|
+
light: "rgba(0, 0, 0, 0.06)",
|
|
1047
|
+
dark: "rgba(255, 255, 255, 0.06)"
|
|
1048
|
+
},
|
|
1049
|
+
colorFillTertiary: {
|
|
1050
|
+
light: "rgba(0, 0, 0, 0.04)",
|
|
1051
|
+
dark: "rgba(255, 255, 255, 0.04)"
|
|
1052
|
+
},
|
|
1053
|
+
colorFillQuaternary: {
|
|
1054
|
+
light: "rgba(0, 0, 0, 0.02)",
|
|
1055
|
+
dark: "rgba(255, 255, 255, 0.02)"
|
|
1056
|
+
},
|
|
1057
|
+
colorFillAlter: {
|
|
1058
|
+
light: "rgba(0, 0, 0, 0.02)",
|
|
1059
|
+
dark: "rgba(255, 255, 255, 0.02)"
|
|
1060
|
+
},
|
|
1061
|
+
colorBorder: {
|
|
1062
|
+
light: "rgba(0, 0, 0, 0.16)",
|
|
1063
|
+
dark: "rgba(255, 255, 255, 0.16)"
|
|
1064
|
+
},
|
|
1065
|
+
colorBorderSecondary: {
|
|
1066
|
+
light: "rgba(0, 0, 0, 0.06)",
|
|
1067
|
+
dark: "rgba(255, 255, 255, 0.06)"
|
|
1068
|
+
},
|
|
1069
|
+
colorIcon: {
|
|
1070
|
+
light: "rgba(0, 0, 0, 0.58)",
|
|
1071
|
+
dark: "rgba(255, 255, 255, 0.58)"
|
|
1072
|
+
},
|
|
1073
|
+
colorIconHover: {
|
|
1074
|
+
light: "rgba(0, 0, 0, 0.88)",
|
|
1075
|
+
dark: "rgba(255, 255, 255, 0.88)"
|
|
1076
|
+
},
|
|
1077
|
+
colorBgContainer: {
|
|
1078
|
+
light: "#FFFFFF",
|
|
1079
|
+
dark: "#26262C"
|
|
1080
|
+
},
|
|
1081
|
+
colorBgElevated: {
|
|
1082
|
+
light: "#FFFFFF",
|
|
1083
|
+
dark: "#2F2F37"
|
|
1084
|
+
},
|
|
1085
|
+
colorBgLayout: {
|
|
1086
|
+
light: "#F5F5F5",
|
|
1087
|
+
dark: "#1A1A1E"
|
|
1088
|
+
},
|
|
1089
|
+
colorBgSpotlight: {
|
|
1090
|
+
light: "rgba(0, 0, 0, 0.85)",
|
|
1091
|
+
dark: "#505D5D"
|
|
1092
|
+
},
|
|
1093
|
+
colorBgMask: {
|
|
1094
|
+
light: "rgba(0, 0, 0, 0.45)",
|
|
1095
|
+
dark: "rgba(0, 0, 0, 0.45)"
|
|
1096
|
+
},
|
|
1097
|
+
colorBgBase: {
|
|
1098
|
+
light: "#FFFFFF",
|
|
1099
|
+
dark: "#13131A"
|
|
1100
|
+
},
|
|
1101
|
+
controlOutline: {
|
|
1102
|
+
light: "rgba(0, 0, 0, 0.12)",
|
|
1103
|
+
dark: "rgba(255, 255, 255, 0.12)"
|
|
779
1104
|
}
|
|
780
1105
|
};
|
|
781
1106
|
const sharedTokens = {
|
|
@@ -796,7 +1121,7 @@ const sharedTokens = {
|
|
|
796
1121
|
lineHeightSM: 16 / 12,
|
|
797
1122
|
fontWeightStrong: 600,
|
|
798
1123
|
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
|
|
1124
|
+
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
1125
|
colorBgSpotlight: "rgba(0, 0, 0, 0.85)"
|
|
801
1126
|
};
|
|
802
1127
|
const sharedThemeConfig = {
|
|
@@ -837,14 +1162,14 @@ const sharedThemeConfig = {
|
|
|
837
1162
|
};
|
|
838
1163
|
const lightTheme = {
|
|
839
1164
|
token: {
|
|
840
|
-
...
|
|
1165
|
+
...getTokensByTheme(antdColorTokens, "light"),
|
|
841
1166
|
...sharedTokens
|
|
842
1167
|
},
|
|
843
1168
|
...sharedThemeConfig
|
|
844
1169
|
};
|
|
845
1170
|
const darkTheme = {
|
|
846
1171
|
token: {
|
|
847
|
-
...
|
|
1172
|
+
...getTokensByTheme(antdColorTokens, "dark"),
|
|
848
1173
|
...sharedTokens
|
|
849
1174
|
},
|
|
850
1175
|
...sharedThemeConfig
|
|
@@ -1038,48 +1363,6 @@ const Truncate = ({ children, position = "end", className, style, ...rest })=>{
|
|
|
1038
1363
|
})
|
|
1039
1364
|
});
|
|
1040
1365
|
};
|
|
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
1366
|
"use client";
|
|
1084
1367
|
const DropdownMenu = ({ children, items, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange })=>{
|
|
1085
1368
|
const [open, setOpen] = (0, __WEBPACK_EXTERNAL_MODULE__base_ui_components_react_utils_d48cdb94__.useControlled)({
|
|
@@ -1138,7 +1421,12 @@ const DropdownMenu = ({ children, items, placement, openOnHover, open: outsideOp
|
|
|
1138
1421
|
className: clsx(cls("dropdown-menu-item")),
|
|
1139
1422
|
disabled: item.disabled,
|
|
1140
1423
|
"data-danger": item.danger,
|
|
1424
|
+
ref: item.ref,
|
|
1141
1425
|
onClick: item.onClick,
|
|
1426
|
+
onMouseEnter: item.onMouseEnter,
|
|
1427
|
+
onMouseLeave: item.onMouseLeave,
|
|
1428
|
+
onMouseOver: item.onMouseOver,
|
|
1429
|
+
onMouseOut: item.onMouseOut,
|
|
1142
1430
|
children: [
|
|
1143
1431
|
item.icon && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
1144
1432
|
className: cls("dropdown-menu-item-icon"),
|
|
@@ -1439,7 +1727,10 @@ const ScrollArea = ({ children, className, viewportClassName, thumbClassName, sc
|
|
|
1439
1727
|
children: [
|
|
1440
1728
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_5aaa6934__.ScrollArea.Viewport, {
|
|
1441
1729
|
className: clsx(cls("scroll-area-viewport"), viewportClassName),
|
|
1442
|
-
children:
|
|
1730
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_5aaa6934__.ScrollArea.Content, {
|
|
1731
|
+
className: clsx(cls("scroll-area-content")),
|
|
1732
|
+
children: children
|
|
1733
|
+
})
|
|
1443
1734
|
}),
|
|
1444
1735
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_5aaa6934__.ScrollArea.Scrollbar, {
|
|
1445
1736
|
className: clsx(cls("scroll-area-scrollbar"), scrollbarClassName),
|
|
@@ -1539,25 +1830,6 @@ const Breadcrumb = Object.assign(BreadcrumbInner, {
|
|
|
1539
1830
|
Separator
|
|
1540
1831
|
});
|
|
1541
1832
|
"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
1833
|
const getUniqueKeysFromOriginals = (nodes, originalKeysToFind, map)=>{
|
|
1562
1834
|
if (!nodes) return [];
|
|
1563
1835
|
let keys = [];
|
|
@@ -2268,6 +2540,181 @@ const VerticalCollapsiblePanel = ({ children, title, defaultOpen = false, open:
|
|
|
2268
2540
|
]
|
|
2269
2541
|
});
|
|
2270
2542
|
};
|
|
2543
|
+
"use client";
|
|
2544
|
+
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 })=>{
|
|
2545
|
+
const [open, setOpen] = useControlledState(outsideOpen, outsideOnOpenChange, defaultOpen ?? false);
|
|
2546
|
+
const cls = useCls();
|
|
2547
|
+
const antdCssVarClassname = useAntdCssVarClassname();
|
|
2548
|
+
const headlessUIPlacement = parseAntdPlacement(placement);
|
|
2549
|
+
const triggerRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useRef)(null);
|
|
2550
|
+
const [popupRef, setPopupRef] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(null);
|
|
2551
|
+
const [width, setWidth] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)();
|
|
2552
|
+
const [height, setHeight] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)();
|
|
2553
|
+
const callbackRef = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)((node)=>{
|
|
2554
|
+
setPopupRef(node);
|
|
2555
|
+
}, []);
|
|
2556
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
2557
|
+
if (!popupRef) return;
|
|
2558
|
+
const observer = new ResizeObserver((entries)=>{
|
|
2559
|
+
for (const entry of entries){
|
|
2560
|
+
setWidth(entry.contentRect.width);
|
|
2561
|
+
setHeight(entry.contentRect.height);
|
|
2562
|
+
}
|
|
2563
|
+
});
|
|
2564
|
+
observer.observe(popupRef);
|
|
2565
|
+
return ()=>{
|
|
2566
|
+
observer.disconnect();
|
|
2567
|
+
};
|
|
2568
|
+
}, [
|
|
2569
|
+
popupRef
|
|
2570
|
+
]);
|
|
2571
|
+
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, {
|
|
2572
|
+
size: 16
|
|
2573
|
+
}), []);
|
|
2574
|
+
const renderTitle = (0, __WEBPACK_EXTERNAL_MODULE_react__.useCallback)(()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
2575
|
+
className: cls("popup-panel-header"),
|
|
2576
|
+
children: [
|
|
2577
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_antd_es_flex_86593150__["default"], {
|
|
2578
|
+
align: "center",
|
|
2579
|
+
gap: 8,
|
|
2580
|
+
className: cls("popup-panel-title-wrapper"),
|
|
2581
|
+
children: [
|
|
2582
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_popover_cdb87929__.Popover.Title, {
|
|
2583
|
+
render: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2584
|
+
className: cls("grow", "truncate"),
|
|
2585
|
+
children: title
|
|
2586
|
+
})
|
|
2587
|
+
}),
|
|
2588
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
2589
|
+
className: "flex items-center gap-2",
|
|
2590
|
+
children: [
|
|
2591
|
+
beforeCloseButton,
|
|
2592
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_popover_cdb87929__.Popover.Close, {
|
|
2593
|
+
render: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(IconButton, {
|
|
2594
|
+
children: defaultCloseIcon
|
|
2595
|
+
})
|
|
2596
|
+
}),
|
|
2597
|
+
afterCloseButton
|
|
2598
|
+
]
|
|
2599
|
+
})
|
|
2600
|
+
]
|
|
2601
|
+
}),
|
|
2602
|
+
afterTitle ? afterTitle : null
|
|
2603
|
+
]
|
|
2604
|
+
}), [
|
|
2605
|
+
afterCloseButton,
|
|
2606
|
+
afterTitle,
|
|
2607
|
+
beforeCloseButton,
|
|
2608
|
+
cls,
|
|
2609
|
+
defaultCloseIcon,
|
|
2610
|
+
title
|
|
2611
|
+
]);
|
|
2612
|
+
const [resizing, setResizing] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(false);
|
|
2613
|
+
const { getRootProps, getHandleProps, rootRef } = (0, __WEBPACK_EXTERNAL_MODULE_react_use_resizable_ad29d4b1__.useResizable)({
|
|
2614
|
+
initialWidth: width,
|
|
2615
|
+
initialHeight: height,
|
|
2616
|
+
onDragStart: ()=>setResizing(true),
|
|
2617
|
+
onDragEnd: ()=>setResizing(false)
|
|
2618
|
+
});
|
|
2619
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
2620
|
+
if (resizing) document.body.style.userSelect = "none";
|
|
2621
|
+
else document.body.style.userSelect = "";
|
|
2622
|
+
}, [
|
|
2623
|
+
resizing
|
|
2624
|
+
]);
|
|
2625
|
+
const onReverseHandleChangeVertical = (parent, values)=>{
|
|
2626
|
+
if (!parent.current) return;
|
|
2627
|
+
const { heightDiff } = values;
|
|
2628
|
+
parent.current.style.top = `${parseInt(parent.current.style.top || "0") - heightDiff}px`;
|
|
2629
|
+
};
|
|
2630
|
+
const onReverseHandleChangeHorizontal = (parent, values)=>{
|
|
2631
|
+
if (!parent.current) return;
|
|
2632
|
+
const { widthDiff } = values;
|
|
2633
|
+
parent.current.style.left = `${parseInt(parent.current.style.left || "0") - widthDiff}px`;
|
|
2634
|
+
};
|
|
2635
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_popover_cdb87929__.Popover.Root, {
|
|
2636
|
+
openOnHover: "hover" === trigger ? true : openOnHover,
|
|
2637
|
+
open: open,
|
|
2638
|
+
onOpenChange: (newOpen)=>{
|
|
2639
|
+
setOpen(newOpen);
|
|
2640
|
+
},
|
|
2641
|
+
delay: 100,
|
|
2642
|
+
children: [
|
|
2643
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_popover_cdb87929__.Popover.Trigger, {
|
|
2644
|
+
render: children,
|
|
2645
|
+
ref: triggerRef
|
|
2646
|
+
}),
|
|
2647
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_popover_cdb87929__.Popover.Portal, {
|
|
2648
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_popover_cdb87929__.Popover.Positioner, {
|
|
2649
|
+
className: cls("popup-panel-root"),
|
|
2650
|
+
side: headlessUIPlacement.placement,
|
|
2651
|
+
align: headlessUIPlacement.align,
|
|
2652
|
+
sideOffset: 4,
|
|
2653
|
+
anchor: anchor,
|
|
2654
|
+
style: {
|
|
2655
|
+
"--size-width": size ? constants_PopupPanelSize[size] : void 0
|
|
2656
|
+
},
|
|
2657
|
+
ref: callbackRef,
|
|
2658
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE__base_ui_components_react_popover_cdb87929__.Popover.Popup, {
|
|
2659
|
+
className: clsx(cls("popup-panel"), antdCssVarClassname, className),
|
|
2660
|
+
...getRootProps(),
|
|
2661
|
+
...resizing ? {
|
|
2662
|
+
"data-resizing": true
|
|
2663
|
+
} : {},
|
|
2664
|
+
children: [
|
|
2665
|
+
title && renderTitle(),
|
|
2666
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2667
|
+
className: cls("popup-panel-content"),
|
|
2668
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2669
|
+
className: cls("popup-panel-content-inner"),
|
|
2670
|
+
children: content
|
|
2671
|
+
})
|
|
2672
|
+
}),
|
|
2673
|
+
footer && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2674
|
+
className: cls("popup-panel-footer"),
|
|
2675
|
+
children: "function" == typeof footer ? footer({
|
|
2676
|
+
close: ()=>setOpen(false)
|
|
2677
|
+
}) : footer
|
|
2678
|
+
}),
|
|
2679
|
+
resizable && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.Fragment, {
|
|
2680
|
+
children: [
|
|
2681
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2682
|
+
className: cls("resize-handle-top"),
|
|
2683
|
+
...getHandleProps({
|
|
2684
|
+
reverse: true,
|
|
2685
|
+
lockHorizontal: true,
|
|
2686
|
+
onResize: (values)=>onReverseHandleChangeVertical(rootRef, values)
|
|
2687
|
+
})
|
|
2688
|
+
}),
|
|
2689
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2690
|
+
className: cls("resize-handle-bottom"),
|
|
2691
|
+
...getHandleProps({
|
|
2692
|
+
lockHorizontal: true
|
|
2693
|
+
})
|
|
2694
|
+
}),
|
|
2695
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2696
|
+
className: cls("resize-handle-left"),
|
|
2697
|
+
...getHandleProps({
|
|
2698
|
+
reverse: true,
|
|
2699
|
+
lockVertical: true,
|
|
2700
|
+
onResize: (values)=>onReverseHandleChangeHorizontal(rootRef, values)
|
|
2701
|
+
})
|
|
2702
|
+
}),
|
|
2703
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
2704
|
+
className: cls("resize-handle-right"),
|
|
2705
|
+
...getHandleProps({
|
|
2706
|
+
lockVertical: true
|
|
2707
|
+
})
|
|
2708
|
+
})
|
|
2709
|
+
]
|
|
2710
|
+
})
|
|
2711
|
+
]
|
|
2712
|
+
})
|
|
2713
|
+
})
|
|
2714
|
+
})
|
|
2715
|
+
]
|
|
2716
|
+
});
|
|
2717
|
+
};
|
|
2271
2718
|
const MainInputInner = (props, ref)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Input, {
|
|
2272
2719
|
ref: ref,
|
|
2273
2720
|
...props
|
|
@@ -2341,17 +2788,30 @@ const Radio = Object.assign(ForwardedRadio, {
|
|
|
2341
2788
|
Group: RadioGroup,
|
|
2342
2789
|
Button: RadioButton
|
|
2343
2790
|
});
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2791
|
+
"use client";
|
|
2792
|
+
const DSRootContext = __WEBPACK_EXTERNAL_MODULE_react__["default"].createContext({
|
|
2793
|
+
theme: "light"
|
|
2794
|
+
});
|
|
2795
|
+
const DSRootContextProvider = DSRootContext.Provider;
|
|
2796
|
+
const useDS = ()=>__WEBPACK_EXTERNAL_MODULE_react__["default"].useContext(DSRootContext);
|
|
2797
|
+
"use client";
|
|
2798
|
+
const DSRoot = ({ className, appendClassesTo = "html", children, theme, ...props })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(DSRootContextProvider, {
|
|
2799
|
+
value: {
|
|
2800
|
+
theme: theme
|
|
2801
|
+
},
|
|
2802
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(ThemeProvider, {
|
|
2803
|
+
theme: theme,
|
|
2804
|
+
...props,
|
|
2805
|
+
appendClassesTo: appendClassesTo,
|
|
2806
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd_es_app_App_698582f4__["default"], {
|
|
2807
|
+
className: className,
|
|
2808
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Toast.Provider, {
|
|
2809
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(Modal_Modal.Provider, {
|
|
2810
|
+
children: [
|
|
2811
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Toast.List, {}),
|
|
2812
|
+
children
|
|
2813
|
+
]
|
|
2814
|
+
})
|
|
2355
2815
|
})
|
|
2356
2816
|
})
|
|
2357
2817
|
})
|
|
@@ -2367,6 +2827,498 @@ const antd_useModal = ()=>{
|
|
|
2367
2827
|
const { modal } = (0, __WEBPACK_EXTERNAL_MODULE_antd_es_app_useApp_90d95086__["default"])();
|
|
2368
2828
|
return modal;
|
|
2369
2829
|
};
|
|
2830
|
+
const rawChartColorTokens = {
|
|
2831
|
+
colorChartsRed300: {
|
|
2832
|
+
light: "#ea7158",
|
|
2833
|
+
dark: "#d63f38"
|
|
2834
|
+
},
|
|
2835
|
+
colorChartsRed400: {
|
|
2836
|
+
light: "#dc5032",
|
|
2837
|
+
dark: "#ed5958"
|
|
2838
|
+
},
|
|
2839
|
+
colorChartsRed500: {
|
|
2840
|
+
light: "#d13313",
|
|
2841
|
+
dark: "#fe6e73"
|
|
2842
|
+
},
|
|
2843
|
+
colorChartsRed600: {
|
|
2844
|
+
light: "#ba2e0f",
|
|
2845
|
+
dark: "#ff8a8a"
|
|
2846
|
+
},
|
|
2847
|
+
colorChartsRed700: {
|
|
2848
|
+
light: "#a82a0c",
|
|
2849
|
+
dark: "#ffa09e"
|
|
2850
|
+
},
|
|
2851
|
+
colorChartsRed800: {
|
|
2852
|
+
light: "#972709",
|
|
2853
|
+
dark: "#ffb3b0"
|
|
2854
|
+
},
|
|
2855
|
+
colorChartsRed900: {
|
|
2856
|
+
light: "#892407",
|
|
2857
|
+
dark: "#ffc4c0"
|
|
2858
|
+
},
|
|
2859
|
+
colorChartsRed1000: {
|
|
2860
|
+
light: "#7d2105",
|
|
2861
|
+
dark: "#ffd2cf"
|
|
2862
|
+
},
|
|
2863
|
+
colorChartsRed1100: {
|
|
2864
|
+
light: "#721e03",
|
|
2865
|
+
dark: "#ffe0dd"
|
|
2866
|
+
},
|
|
2867
|
+
colorChartsRed1200: {
|
|
2868
|
+
light: "#671c00",
|
|
2869
|
+
dark: "#ffecea"
|
|
2870
|
+
},
|
|
2871
|
+
colorChartsOrange300: {
|
|
2872
|
+
light: "#e07941",
|
|
2873
|
+
dark: "#c55305"
|
|
2874
|
+
},
|
|
2875
|
+
colorChartsOrange400: {
|
|
2876
|
+
light: "#cc5f21",
|
|
2877
|
+
dark: "#de6923"
|
|
2878
|
+
},
|
|
2879
|
+
colorChartsOrange500: {
|
|
2880
|
+
light: "#bc4d01",
|
|
2881
|
+
dark: "#f27c36"
|
|
2882
|
+
},
|
|
2883
|
+
colorChartsOrange600: {
|
|
2884
|
+
light: "#a84401",
|
|
2885
|
+
dark: "#f89256"
|
|
2886
|
+
},
|
|
2887
|
+
colorChartsOrange700: {
|
|
2888
|
+
light: "#983c02",
|
|
2889
|
+
dark: "#fca572"
|
|
2890
|
+
},
|
|
2891
|
+
colorChartsOrange800: {
|
|
2892
|
+
light: "#8a3603",
|
|
2893
|
+
dark: "#ffb68b"
|
|
2894
|
+
},
|
|
2895
|
+
colorChartsOrange900: {
|
|
2896
|
+
light: "#7e3103",
|
|
2897
|
+
dark: "#ffc6a4"
|
|
2898
|
+
},
|
|
2899
|
+
colorChartsOrange1000: {
|
|
2900
|
+
light: "#732c02",
|
|
2901
|
+
dark: "#ffd4bb"
|
|
2902
|
+
},
|
|
2903
|
+
colorChartsOrange1100: {
|
|
2904
|
+
light: "#692801",
|
|
2905
|
+
dark: "#ffe1cf"
|
|
2906
|
+
},
|
|
2907
|
+
colorChartsOrange1200: {
|
|
2908
|
+
light: "#602400",
|
|
2909
|
+
dark: "#ffede2"
|
|
2910
|
+
},
|
|
2911
|
+
colorChartsYellow300: {
|
|
2912
|
+
light: "#b2911c",
|
|
2913
|
+
dark: "#977001"
|
|
2914
|
+
},
|
|
2915
|
+
colorChartsYellow400: {
|
|
2916
|
+
light: "#9c7b0b",
|
|
2917
|
+
dark: "#b08400"
|
|
2918
|
+
},
|
|
2919
|
+
colorChartsYellow500: {
|
|
2920
|
+
light: "#8a6b05",
|
|
2921
|
+
dark: "#c59600"
|
|
2922
|
+
},
|
|
2923
|
+
colorChartsYellow600: {
|
|
2924
|
+
light: "#7b5f04",
|
|
2925
|
+
dark: "#d3a61c"
|
|
2926
|
+
},
|
|
2927
|
+
colorChartsYellow700: {
|
|
2928
|
+
light: "#6f5504",
|
|
2929
|
+
dark: "#dfb52c"
|
|
2930
|
+
},
|
|
2931
|
+
colorChartsYellow800: {
|
|
2932
|
+
light: "#654d03",
|
|
2933
|
+
dark: "#eac33a"
|
|
2934
|
+
},
|
|
2935
|
+
colorChartsYellow900: {
|
|
2936
|
+
light: "#5d4503",
|
|
2937
|
+
dark: "#f1cf65"
|
|
2938
|
+
},
|
|
2939
|
+
colorChartsYellow1000: {
|
|
2940
|
+
light: "#553f03",
|
|
2941
|
+
dark: "#f7db8a"
|
|
2942
|
+
},
|
|
2943
|
+
colorChartsYellow1100: {
|
|
2944
|
+
light: "#4d3901",
|
|
2945
|
+
dark: "#fce5a8"
|
|
2946
|
+
},
|
|
2947
|
+
colorChartsYellow1200: {
|
|
2948
|
+
light: "#483300",
|
|
2949
|
+
dark: "#ffefc9"
|
|
2950
|
+
},
|
|
2951
|
+
colorChartsGreen300: {
|
|
2952
|
+
light: "#67a353",
|
|
2953
|
+
dark: "#48851a"
|
|
2954
|
+
},
|
|
2955
|
+
colorChartsGreen400: {
|
|
2956
|
+
light: "#41902c",
|
|
2957
|
+
dark: "#5a9b29"
|
|
2958
|
+
},
|
|
2959
|
+
colorChartsGreen500: {
|
|
2960
|
+
light: "#1f8104",
|
|
2961
|
+
dark: "#69ae34"
|
|
2962
|
+
},
|
|
2963
|
+
colorChartsGreen600: {
|
|
2964
|
+
light: "#1a7302",
|
|
2965
|
+
dark: "#7dbd4c"
|
|
2966
|
+
},
|
|
2967
|
+
colorChartsGreen700: {
|
|
2968
|
+
light: "#176702",
|
|
2969
|
+
dark: "#8fca61"
|
|
2970
|
+
},
|
|
2971
|
+
colorChartsGreen800: {
|
|
2972
|
+
light: "#145d02",
|
|
2973
|
+
dark: "#9fd673"
|
|
2974
|
+
},
|
|
2975
|
+
colorChartsGreen900: {
|
|
2976
|
+
light: "#125502",
|
|
2977
|
+
dark: "#b2df8d"
|
|
2978
|
+
},
|
|
2979
|
+
colorChartsGreen1000: {
|
|
2980
|
+
light: "#104d01",
|
|
2981
|
+
dark: "#c5e7a8"
|
|
2982
|
+
},
|
|
2983
|
+
colorChartsGreen1100: {
|
|
2984
|
+
light: "#0f4601",
|
|
2985
|
+
dark: "#d5efbe"
|
|
2986
|
+
},
|
|
2987
|
+
colorChartsGreen1200: {
|
|
2988
|
+
light: "#0d4000",
|
|
2989
|
+
dark: "#e4f7d5"
|
|
2990
|
+
},
|
|
2991
|
+
colorChartsTeal300: {
|
|
2992
|
+
light: "#2ea597",
|
|
2993
|
+
dark: "#018977"
|
|
2994
|
+
},
|
|
2995
|
+
colorChartsTeal400: {
|
|
2996
|
+
light: "#1c8e81",
|
|
2997
|
+
dark: "#009d89"
|
|
2998
|
+
},
|
|
2999
|
+
colorChartsTeal500: {
|
|
3000
|
+
light: "#0d7d70",
|
|
3001
|
+
dark: "#00b09b"
|
|
3002
|
+
},
|
|
3003
|
+
colorChartsTeal600: {
|
|
3004
|
+
light: "#096f64",
|
|
3005
|
+
dark: "#40bfa9"
|
|
3006
|
+
},
|
|
3007
|
+
colorChartsTeal700: {
|
|
3008
|
+
light: "#06645a",
|
|
3009
|
+
dark: "#5fccb7"
|
|
3010
|
+
},
|
|
3011
|
+
colorChartsTeal800: {
|
|
3012
|
+
light: "#045b52",
|
|
3013
|
+
dark: "#77d7c3"
|
|
3014
|
+
},
|
|
3015
|
+
colorChartsTeal900: {
|
|
3016
|
+
light: "#03524a",
|
|
3017
|
+
dark: "#94e0d0"
|
|
3018
|
+
},
|
|
3019
|
+
colorChartsTeal1000: {
|
|
3020
|
+
light: "#014b44",
|
|
3021
|
+
dark: "#ace9db"
|
|
3022
|
+
},
|
|
3023
|
+
colorChartsTeal1100: {
|
|
3024
|
+
light: "#01443e",
|
|
3025
|
+
dark: "#c2f0e6"
|
|
3026
|
+
},
|
|
3027
|
+
colorChartsTeal1200: {
|
|
3028
|
+
light: "#003e38",
|
|
3029
|
+
dark: "#d7f7f0"
|
|
3030
|
+
},
|
|
3031
|
+
colorChartsBlue1300: {
|
|
3032
|
+
light: "#529ccb",
|
|
3033
|
+
dark: "#00819c"
|
|
3034
|
+
},
|
|
3035
|
+
colorChartsBlue1400: {
|
|
3036
|
+
light: "#3184c2",
|
|
3037
|
+
dark: "#0497ba"
|
|
3038
|
+
},
|
|
3039
|
+
colorChartsBlue1500: {
|
|
3040
|
+
light: "#0273bb",
|
|
3041
|
+
dark: "#08aad2"
|
|
3042
|
+
},
|
|
3043
|
+
colorChartsBlue1600: {
|
|
3044
|
+
light: "#0166ab",
|
|
3045
|
+
dark: "#44b9dd"
|
|
3046
|
+
},
|
|
3047
|
+
colorChartsBlue1700: {
|
|
3048
|
+
light: "#015b9d",
|
|
3049
|
+
dark: "#63c6e7"
|
|
3050
|
+
},
|
|
3051
|
+
colorChartsBlue1800: {
|
|
3052
|
+
light: "#015292",
|
|
3053
|
+
dark: "#79d2f0"
|
|
3054
|
+
},
|
|
3055
|
+
colorChartsBlue1900: {
|
|
3056
|
+
light: "#014a87",
|
|
3057
|
+
dark: "#98dcf5"
|
|
3058
|
+
},
|
|
3059
|
+
colorChartsBlue11000: {
|
|
3060
|
+
light: "#01437d",
|
|
3061
|
+
dark: "#b3e4f8"
|
|
3062
|
+
},
|
|
3063
|
+
colorChartsBlue11100: {
|
|
3064
|
+
light: "#003c75",
|
|
3065
|
+
dark: "#caedfc"
|
|
3066
|
+
},
|
|
3067
|
+
colorChartsBlue11200: {
|
|
3068
|
+
light: "#00366d",
|
|
3069
|
+
dark: "#ddf4ff"
|
|
3070
|
+
},
|
|
3071
|
+
colorChartsBlue2300: {
|
|
3072
|
+
light: "#688ae8",
|
|
3073
|
+
dark: "#486de8"
|
|
3074
|
+
},
|
|
3075
|
+
colorChartsBlue2400: {
|
|
3076
|
+
light: "#5978e3",
|
|
3077
|
+
dark: "#6384f5"
|
|
3078
|
+
},
|
|
3079
|
+
colorChartsBlue2500: {
|
|
3080
|
+
light: "#4066df",
|
|
3081
|
+
dark: "#7698fe"
|
|
3082
|
+
},
|
|
3083
|
+
colorChartsBlue2600: {
|
|
3084
|
+
light: "#3759ce",
|
|
3085
|
+
dark: "#8ea9ff"
|
|
3086
|
+
},
|
|
3087
|
+
colorChartsBlue2700: {
|
|
3088
|
+
light: "#314fbf",
|
|
3089
|
+
dark: "#a2b8ff"
|
|
3090
|
+
},
|
|
3091
|
+
colorChartsBlue2800: {
|
|
3092
|
+
light: "#2c46b1",
|
|
3093
|
+
dark: "#b1c5ff"
|
|
3094
|
+
},
|
|
3095
|
+
colorChartsBlue2900: {
|
|
3096
|
+
light: "#273ea5",
|
|
3097
|
+
dark: "#c3d1ff"
|
|
3098
|
+
},
|
|
3099
|
+
colorChartsBlue21000: {
|
|
3100
|
+
light: "#23379b",
|
|
3101
|
+
dark: "#d2dcff"
|
|
3102
|
+
},
|
|
3103
|
+
colorChartsBlue21100: {
|
|
3104
|
+
light: "#1f3191",
|
|
3105
|
+
dark: "#dfe6ff"
|
|
3106
|
+
},
|
|
3107
|
+
colorChartsBlue21200: {
|
|
3108
|
+
light: "#1b2b88",
|
|
3109
|
+
dark: "#ecf0ff"
|
|
3110
|
+
},
|
|
3111
|
+
colorChartsPurple300: {
|
|
3112
|
+
light: "#a783e1",
|
|
3113
|
+
dark: "#8d59de"
|
|
3114
|
+
},
|
|
3115
|
+
colorChartsPurple400: {
|
|
3116
|
+
light: "#9469d6",
|
|
3117
|
+
dark: "#a173ea"
|
|
3118
|
+
},
|
|
3119
|
+
colorChartsPurple500: {
|
|
3120
|
+
light: "#8456ce",
|
|
3121
|
+
dark: "#b088f5"
|
|
3122
|
+
},
|
|
3123
|
+
colorChartsPurple600: {
|
|
3124
|
+
light: "#7749bf",
|
|
3125
|
+
dark: "#bf9bf9"
|
|
3126
|
+
},
|
|
3127
|
+
colorChartsPurple700: {
|
|
3128
|
+
light: "#6b40b2",
|
|
3129
|
+
dark: "#cbabfc"
|
|
3130
|
+
},
|
|
3131
|
+
colorChartsPurple800: {
|
|
3132
|
+
light: "#6237a7",
|
|
3133
|
+
dark: "#d6baff"
|
|
3134
|
+
},
|
|
3135
|
+
colorChartsPurple900: {
|
|
3136
|
+
light: "#59309d",
|
|
3137
|
+
dark: "#dfc8ff"
|
|
3138
|
+
},
|
|
3139
|
+
colorChartsPurple1000: {
|
|
3140
|
+
light: "#512994",
|
|
3141
|
+
dark: "#e8d5ff"
|
|
3142
|
+
},
|
|
3143
|
+
colorChartsPurple1100: {
|
|
3144
|
+
light: "#4a238b",
|
|
3145
|
+
dark: "#efe2ff"
|
|
3146
|
+
},
|
|
3147
|
+
colorChartsPurple1200: {
|
|
3148
|
+
light: "#431d84",
|
|
3149
|
+
dark: "#f5edff"
|
|
3150
|
+
},
|
|
3151
|
+
colorChartsPink300: {
|
|
3152
|
+
light: "#da7596",
|
|
3153
|
+
dark: "#c64a70"
|
|
3154
|
+
},
|
|
3155
|
+
colorChartsPink400: {
|
|
3156
|
+
light: "#ce567c",
|
|
3157
|
+
dark: "#d56889"
|
|
3158
|
+
},
|
|
3159
|
+
colorChartsPink500: {
|
|
3160
|
+
light: "#c33d69",
|
|
3161
|
+
dark: "#e07f9d"
|
|
3162
|
+
},
|
|
3163
|
+
colorChartsPink600: {
|
|
3164
|
+
light: "#b1325c",
|
|
3165
|
+
dark: "#eb92ad"
|
|
3166
|
+
},
|
|
3167
|
+
colorChartsPink700: {
|
|
3168
|
+
light: "#a32952",
|
|
3169
|
+
dark: "#f5a2bb"
|
|
3170
|
+
},
|
|
3171
|
+
colorChartsPink800: {
|
|
3172
|
+
light: "#962249",
|
|
3173
|
+
dark: "#ffb0c8"
|
|
3174
|
+
},
|
|
3175
|
+
colorChartsPink900: {
|
|
3176
|
+
light: "#8b1b42",
|
|
3177
|
+
dark: "#ffc1d4"
|
|
3178
|
+
},
|
|
3179
|
+
colorChartsPink1000: {
|
|
3180
|
+
light: "#81143b",
|
|
3181
|
+
dark: "#ffd1de"
|
|
3182
|
+
},
|
|
3183
|
+
colorChartsPink1100: {
|
|
3184
|
+
light: "#780d35",
|
|
3185
|
+
dark: "#ffdfe8"
|
|
3186
|
+
},
|
|
3187
|
+
colorChartsPink1200: {
|
|
3188
|
+
light: "#6f062f",
|
|
3189
|
+
dark: "#ffecf1"
|
|
3190
|
+
},
|
|
3191
|
+
colorChartsStatusCritical: {
|
|
3192
|
+
light: "{colorChartsRed1000}",
|
|
3193
|
+
dark: "{colorChartsRed300}"
|
|
3194
|
+
},
|
|
3195
|
+
colorChartsStatusHigh: {
|
|
3196
|
+
light: "{colorChartsRed600}",
|
|
3197
|
+
dark: "{colorChartsRed500}"
|
|
3198
|
+
},
|
|
3199
|
+
colorChartsStatusMedium: {
|
|
3200
|
+
light: "{colorChartsOrange400}",
|
|
3201
|
+
dark: "{colorChartsOrange600}"
|
|
3202
|
+
},
|
|
3203
|
+
colorChartsStatusLow: {
|
|
3204
|
+
light: "{colorChartsYellow300}",
|
|
3205
|
+
dark: "{colorChartsYellow700}"
|
|
3206
|
+
},
|
|
3207
|
+
colorChartsStatusPositive: {
|
|
3208
|
+
light: "{colorChartsGreen300}",
|
|
3209
|
+
dark: "{colorChartsGreen500}"
|
|
3210
|
+
},
|
|
3211
|
+
colorChartsStatusInfo: {
|
|
3212
|
+
light: "{colorChartsBlue1400}",
|
|
3213
|
+
dark: "{colorChartsBlue1500}"
|
|
3214
|
+
},
|
|
3215
|
+
colorChartsStatusNeutral: antdColorTokens.colorTextSecondary,
|
|
3216
|
+
colorChartsThresholdNegative: antdColorTokens.colorError,
|
|
3217
|
+
colorChartsThresholdPositive: antdColorTokens.colorSuccess,
|
|
3218
|
+
colorChartsThresholdInfo: antdColorTokens.colorInfo,
|
|
3219
|
+
colorChartsThresholdNeutral: antdColorTokens.colorTextTertiary,
|
|
3220
|
+
colorChartsLineGrid: {
|
|
3221
|
+
light: "#DADADC",
|
|
3222
|
+
dark: "#434347"
|
|
3223
|
+
},
|
|
3224
|
+
colorChartsLineTick: "{colorChartsLineGrid}",
|
|
3225
|
+
colorChartsLineAxis: {
|
|
3226
|
+
light: "#C8C8CB",
|
|
3227
|
+
dark: "#73737A"
|
|
3228
|
+
},
|
|
3229
|
+
colorChartsLabelAxis: {
|
|
3230
|
+
light: "#7C7C83",
|
|
3231
|
+
dark: "#898990"
|
|
3232
|
+
},
|
|
3233
|
+
colorChartsPaletteCategorical1: "{colorChartsBlue2300}",
|
|
3234
|
+
colorChartsPaletteCategorical2: "{colorChartsPink500}",
|
|
3235
|
+
colorChartsPaletteCategorical3: "{colorChartsTeal300}",
|
|
3236
|
+
colorChartsPaletteCategorical4: "{colorChartsPurple500}",
|
|
3237
|
+
colorChartsPaletteCategorical5: "{colorChartsOrange300}",
|
|
3238
|
+
colorChartsPaletteCategorical6: "{colorChartsBlue2600}",
|
|
3239
|
+
colorChartsPaletteCategorical7: "{colorChartsPink800}",
|
|
3240
|
+
colorChartsPaletteCategorical8: "{colorChartsTeal600}",
|
|
3241
|
+
colorChartsPaletteCategorical9: "{colorChartsPurple800}",
|
|
3242
|
+
colorChartsPaletteCategorical10: "{colorChartsOrange600}",
|
|
3243
|
+
colorChartsPaletteCategorical11: "{colorChartsBlue2900}",
|
|
3244
|
+
colorChartsPaletteCategorical12: "{colorChartsPink1100}",
|
|
3245
|
+
colorChartsPaletteCategorical13: "{colorChartsTeal900}",
|
|
3246
|
+
colorChartsPaletteCategorical14: "{colorChartsPurple1100}",
|
|
3247
|
+
colorChartsPaletteCategorical15: "{colorChartsOrange900}",
|
|
3248
|
+
colorChartsPaletteCategorical16: "{colorChartsBlue21200}",
|
|
3249
|
+
colorChartsPaletteCategorical17: "{colorChartsPink400}",
|
|
3250
|
+
colorChartsPaletteCategorical18: "{colorChartsTeal1200}",
|
|
3251
|
+
colorChartsPaletteCategorical19: "{colorChartsPurple400}",
|
|
3252
|
+
colorChartsPaletteCategorical20: "{colorChartsOrange1200}",
|
|
3253
|
+
colorChartsPaletteCategorical21: "{colorChartsBlue2500}",
|
|
3254
|
+
colorChartsPaletteCategorical22: "{colorChartsPink700}",
|
|
3255
|
+
colorChartsPaletteCategorical23: "{colorChartsTeal500}",
|
|
3256
|
+
colorChartsPaletteCategorical24: "{colorChartsPurple700}",
|
|
3257
|
+
colorChartsPaletteCategorical25: "{colorChartsOrange500}",
|
|
3258
|
+
colorChartsPaletteCategorical26: "{colorChartsBlue2800}",
|
|
3259
|
+
colorChartsPaletteCategorical27: "{colorChartsPink1000}",
|
|
3260
|
+
colorChartsPaletteCategorical28: "{colorChartsTeal800}",
|
|
3261
|
+
colorChartsPaletteCategorical29: "{colorChartsPurple1000}",
|
|
3262
|
+
colorChartsPaletteCategorical30: "{colorChartsOrange800}",
|
|
3263
|
+
colorChartsPaletteCategorical31: "{colorChartsBlue21100}",
|
|
3264
|
+
colorChartsPaletteCategorical32: "{colorChartsPink300}",
|
|
3265
|
+
colorChartsPaletteCategorical33: "{colorChartsTeal1100}",
|
|
3266
|
+
colorChartsPaletteCategorical34: "{colorChartsPurple300}",
|
|
3267
|
+
colorChartsPaletteCategorical35: "{colorChartsOrange1100}",
|
|
3268
|
+
colorChartsPaletteCategorical36: "{colorChartsBlue2400}",
|
|
3269
|
+
colorChartsPaletteCategorical37: "{colorChartsPink600}",
|
|
3270
|
+
colorChartsPaletteCategorical38: "{colorChartsTeal400}",
|
|
3271
|
+
colorChartsPaletteCategorical39: "{colorChartsPurple600}",
|
|
3272
|
+
colorChartsPaletteCategorical40: "{colorChartsOrange400}",
|
|
3273
|
+
colorChartsPaletteCategorical41: "{colorChartsBlue2700}",
|
|
3274
|
+
colorChartsPaletteCategorical42: "{colorChartsPink900}",
|
|
3275
|
+
colorChartsPaletteCategorical43: "{colorChartsTeal700}",
|
|
3276
|
+
colorChartsPaletteCategorical44: "{colorChartsPurple900}",
|
|
3277
|
+
colorChartsPaletteCategorical45: "{colorChartsOrange700}",
|
|
3278
|
+
colorChartsPaletteCategorical46: "{colorChartsBlue21000}",
|
|
3279
|
+
colorChartsPaletteCategorical47: "{colorChartsPink1200}",
|
|
3280
|
+
colorChartsPaletteCategorical48: "{colorChartsTeal1000}",
|
|
3281
|
+
colorChartsPaletteCategorical49: "{colorChartsPurple1200}",
|
|
3282
|
+
colorChartsPaletteCategorical50: "{colorChartsOrange1000}"
|
|
3283
|
+
};
|
|
3284
|
+
const chartColorTokens = resolveColorTokens(rawChartColorTokens);
|
|
3285
|
+
const categoricalChartColorKeys = Object.keys(chartColorTokens).filter((key)=>key.startsWith("colorChartsPaletteCategorical"));
|
|
3286
|
+
const categoricalChartColorTokens = categoricalChartColorKeys.reduce((acc, key)=>{
|
|
3287
|
+
acc[key] = chartColorTokens[key];
|
|
3288
|
+
return acc;
|
|
3289
|
+
}, {});
|
|
3290
|
+
const categoricalChartsColors = categoricalChartColorKeys.map((key)=>chartColorTokens[key]);
|
|
3291
|
+
const useCharts = ()=>{
|
|
3292
|
+
const { theme } = useDS();
|
|
3293
|
+
const themedChartColorTokens = getTokensByTheme(chartColorTokens, theme);
|
|
3294
|
+
const axisLineColor = themedChartColorTokens["colorChartsLineAxis"];
|
|
3295
|
+
const splitLineColor = themedChartColorTokens["colorChartsLineGrid"];
|
|
3296
|
+
const axisLabelColor = themedChartColorTokens["colorChartsLabelAxis"];
|
|
3297
|
+
const categoricalColors = getColorsByTheme(categoricalChartColorTokens, theme);
|
|
3298
|
+
const echartsAxisConfig = {
|
|
3299
|
+
axisLine: {
|
|
3300
|
+
lineStyle: {
|
|
3301
|
+
color: axisLineColor
|
|
3302
|
+
}
|
|
3303
|
+
},
|
|
3304
|
+
splitLine: {
|
|
3305
|
+
lineStyle: {
|
|
3306
|
+
color: splitLineColor
|
|
3307
|
+
}
|
|
3308
|
+
},
|
|
3309
|
+
axisLabel: {
|
|
3310
|
+
color: axisLabelColor,
|
|
3311
|
+
fontFamily: "InterVariable"
|
|
3312
|
+
}
|
|
3313
|
+
};
|
|
3314
|
+
return {
|
|
3315
|
+
axisLineColor,
|
|
3316
|
+
splitLineColor,
|
|
3317
|
+
axisLabelColor,
|
|
3318
|
+
categoricalColors,
|
|
3319
|
+
echartsAxisConfig
|
|
3320
|
+
};
|
|
3321
|
+
};
|
|
2370
3322
|
var __webpack_exports__Affix = __WEBPACK_EXTERNAL_MODULE_antd__.Affix;
|
|
2371
3323
|
var __webpack_exports__Alert = __WEBPACK_EXTERNAL_MODULE_antd__.Alert;
|
|
2372
3324
|
var __webpack_exports__Anchor = __WEBPACK_EXTERNAL_MODULE_antd__.Anchor;
|
|
@@ -2421,4 +3373,4 @@ var __webpack_exports__useApp = __WEBPACK_EXTERNAL_MODULE_antd_es_app_useApp_90d
|
|
|
2421
3373
|
var __webpack_exports__useForm = __WEBPACK_EXTERNAL_MODULE_antd_es_form_Form_38f624ac__.useForm;
|
|
2422
3374
|
var __webpack_exports__useWatch = __WEBPACK_EXTERNAL_MODULE_antd_es_form_Form_38f624ac__.useWatch;
|
|
2423
3375
|
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 };
|
|
3376
|
+
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 };
|